Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_init.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | static pthread_t ssl_init_thread; | - | ||||||
5 | - | |||||||
6 | static void | - | ||||||
7 | OPENSSL_init_ssl_internal(void) | - | ||||||
8 | { | - | ||||||
9 | ssl_init_thread = pthread_self(); | - | ||||||
10 | SSL_load_error_strings(); | - | ||||||
11 | SSL_library_init(); | - | ||||||
12 | } executed 63 times by 13 tests: end of block Executed by:
| 63 | ||||||
13 | - | |||||||
14 | int | - | ||||||
15 | OPENSSL_init_ssl(uint64_t opts, const void *settings) | - | ||||||
16 | { | - | ||||||
17 | static pthread_once_t once = | - | ||||||
18 | 0 | - | ||||||
19 | ; | - | ||||||
20 | - | |||||||
21 | if (pthread_equal(pthread_self(), ssl_init_thread)
| 63-311 | ||||||
22 | return executed 311 times by 10 tests: 1;return 1; Executed by:
executed 311 times by 10 tests: return 1; Executed by:
| 311 | ||||||
23 | - | |||||||
24 | OPENSSL_init_crypto(opts, settings); | - | ||||||
25 | - | |||||||
26 | if (pthread_once(&once, OPENSSL_init_ssl_internal) != 0
| 0-63 | ||||||
27 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
28 | - | |||||||
29 | return executed 63 times by 13 tests: 1;return 1; Executed by:
executed 63 times by 13 tests: return 1; Executed by:
| 63 | ||||||
30 | } | - | ||||||
Switch to Source code | Preprocessed file |