Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/crypto_init.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | int OpenSSL_config(const char *); | - | ||||||||||||
4 | int OpenSSL_no_config(void); | - | ||||||||||||
5 | - | |||||||||||||
6 | static pthread_t crypto_init_thread; | - | ||||||||||||
7 | - | |||||||||||||
8 | static void | - | ||||||||||||
9 | OPENSSL_init_crypto_internal(void) | - | ||||||||||||
10 | { | - | ||||||||||||
11 | crypto_init_thread = pthread_self(); | - | ||||||||||||
12 | OPENSSL_cpuid_setup(); | - | ||||||||||||
13 | ERR_load_crypto_strings(); | - | ||||||||||||
14 | OpenSSL_add_all_ciphers(); | - | ||||||||||||
15 | OpenSSL_add_all_digests(); | - | ||||||||||||
16 | } executed 290 times by 31 tests: end of block Executed by:
| 290 | ||||||||||||
17 | - | |||||||||||||
18 | int | - | ||||||||||||
19 | OPENSSL_init_crypto(uint64_t opts, const void *settings) | - | ||||||||||||
20 | { | - | ||||||||||||
21 | static pthread_once_t once = | - | ||||||||||||
22 | 0 | - | ||||||||||||
23 | ; | - | ||||||||||||
24 | - | |||||||||||||
25 | if (pthread_equal(pthread_self(), crypto_init_thread)
| 290-15337 | ||||||||||||
26 | return executed 15337 times by 30 tests: 1;return 1; Executed by:
executed 15337 times by 30 tests: return 1; Executed by:
| 15337 | ||||||||||||
27 | - | |||||||||||||
28 | if (pthread_once(&once, OPENSSL_init_crypto_internal) != 0
| 0-290 | ||||||||||||
29 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
30 | - | |||||||||||||
31 | if ((
| 3-287 | ||||||||||||
32 | (
| 0-3 | ||||||||||||
33 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
34 | - | |||||||||||||
35 | if ((
| 0-290 | ||||||||||||
36 | (
| 0 | ||||||||||||
37 | ((void *)0)
| 0 | ||||||||||||
38 | ) == 0)
| 0 | ||||||||||||
39 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
40 | - | |||||||||||||
41 | return executed 290 times by 31 tests: 1;return 1; Executed by:
executed 290 times by 31 tests: return 1; Executed by:
| 290 | ||||||||||||
42 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |