/src/openssl/crypto/cversion.c
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. |
3 | | * |
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 |
8 | | */ |
9 | | |
10 | | #include "internal/cryptlib.h" |
11 | | |
12 | | #include "buildinf.h" |
13 | | |
14 | | unsigned long OpenSSL_version_num(void) |
15 | 0 | { |
16 | 0 | return OPENSSL_VERSION_NUMBER; |
17 | 0 | } |
18 | | |
19 | | const char *OpenSSL_version(int t) |
20 | 0 | { |
21 | 0 | switch (t) { |
22 | 0 | case OPENSSL_VERSION: |
23 | 0 | return OPENSSL_VERSION_TEXT; |
24 | 0 | case OPENSSL_BUILT_ON: |
25 | 0 | return DATE; |
26 | 0 | case OPENSSL_CFLAGS: |
27 | 0 | return compiler_flags; |
28 | 0 | case OPENSSL_PLATFORM: |
29 | 0 | return PLATFORM; |
30 | 0 | case OPENSSL_DIR: |
31 | 0 | #ifdef OPENSSLDIR |
32 | 0 | return "OPENSSLDIR: \"" OPENSSLDIR "\""; |
33 | | #else |
34 | | return "OPENSSLDIR: N/A"; |
35 | | #endif |
36 | 0 | case OPENSSL_ENGINES_DIR: |
37 | 0 | #ifdef ENGINESDIR |
38 | 0 | return "ENGINESDIR: \"" ENGINESDIR "\""; |
39 | | #else |
40 | | return "ENGINESDIR: N/A"; |
41 | | #endif |
42 | | } |
43 | 0 | return "not available"; |
44 | 0 | } |