2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include "internal/cryptlib.h"
14 unsigned long OpenSSL_version_num(void)
16 return OPENSSL_VERSION_NUMBER;
19 const char *OpenSSL_version(int t)
23 return OPENSSL_VERSION_TEXT;
24 case OPENSSL_BUILT_ON:
27 return compiler_flags;
28 case OPENSSL_PLATFORM:
32 return "OPENSSLDIR: \"" OPENSSLDIR "\"";
34 return "OPENSSLDIR: N/A";
36 case OPENSSL_ENGINES_DIR:
38 return "ENGINESDIR: \"" ENGINESDIR "\"";
40 return "ENGINESDIR: N/A";
43 return "not available";