OpenCoverage

cversion.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/cversion.c
Source codeSwitch to Preprocessed file
LineSourceCount
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-
14unsigned long OpenSSL_version_num(void)-
15{-
16 return OPENSSL_VERSION_NUMBER;
executed 9 times by 1 test: return 0x10102000L;
Executed by:
  • libcrypto.so.1.1
9
17}-
18-
19const char *OpenSSL_version(int t)-
20{-
21 switch (t) {-
22 case OPENSSL_VERSION:
never executed: case 0:
0
23 return OPENSSL_VERSION_TEXT;
never executed: return "OpenSSL 1.1.2-dev xx XXX xxxx";
0
24 case OPENSSL_BUILT_ON:
never executed: case 2:
0
25 return DATE;
never executed: return "built on: Mon Feb 25 18:21:11 2019 UTC";
0
26 case OPENSSL_CFLAGS:
never executed: case 1:
0
27 return compiler_flags;
never executed: return compiler_flags;
0
28 case OPENSSL_PLATFORM:
never executed: case 3:
0
29 return PLATFORM;
never executed: return "platform: linux-x86_64";
0
30 case OPENSSL_DIR:
never executed: case 4:
0
31#ifdef OPENSSLDIR-
32 return "OPENSSLDIR: \"" OPENSSLDIR "\"";
never executed: return "OPENSSLDIR: \"" "/usr/local/ssl" "\"";
0
33#else-
34 return "OPENSSLDIR: N/A";-
35#endif-
36 case OPENSSL_ENGINES_DIR:
never executed: case 5:
0
37#ifdef ENGINESDIR-
38 return "ENGINESDIR: \"" ENGINESDIR "\"";
never executed: return "ENGINESDIR: \"" "/usr/local/lib/engines-1.1" "\"";
0
39#else-
40 return "ENGINESDIR: N/A";-
41#endif-
42 }-
43 return "not available";
never executed: return "not available";
0
44}-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.2