OpenCoverage

ssl_init.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/ssl/ssl_init.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static pthread_t ssl_init_thread;-
5-
6static void-
7OPENSSL_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:
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • libssl.so.46.0.1
  • servertest
  • ssl_versions
  • ssltest
  • tls_ext_alpn
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
63
13-
14int-
15OPENSSL_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)
pthread_equal(...l_init_thread)Description
TRUEevaluated 311 times by 10 tests
Evaluated by:
  • cipherstest
  • clienttest
  • configtest
  • servertest
  • ssl_versions
  • ssltest
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
FALSEevaluated 63 times by 13 tests
Evaluated by:
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • libssl.so.46.0.1
  • servertest
  • ssl_versions
  • ssltest
  • tls_ext_alpn
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
)
63-311
22 return
executed 311 times by 10 tests: return 1;
Executed by:
  • cipherstest
  • clienttest
  • configtest
  • servertest
  • ssl_versions
  • ssltest
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
1;
executed 311 times by 10 tests: return 1;
Executed by:
  • cipherstest
  • clienttest
  • configtest
  • servertest
  • ssl_versions
  • ssltest
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
311
23-
24 OPENSSL_init_crypto(opts, settings);-
25-
26 if (pthread_once(&once, OPENSSL_init_ssl_internal) != 0
pthread_once(&...internal) != 0Description
TRUEnever evaluated
FALSEevaluated 63 times by 13 tests
Evaluated by:
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • libssl.so.46.0.1
  • servertest
  • ssl_versions
  • ssltest
  • tls_ext_alpn
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
)
0-63
27 return
never executed: return 0;
0;
never executed: return 0;
0
28-
29 return
executed 63 times by 13 tests: return 1;
Executed by:
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • libssl.so.46.0.1
  • servertest
  • ssl_versions
  • ssltest
  • tls_ext_alpn
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
1;
executed 63 times by 13 tests: return 1;
Executed by:
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • libssl.so.46.0.1
  • servertest
  • ssl_versions
  • ssltest
  • tls_ext_alpn
  • tls_prf
  • tlsexttest
  • tlstest
  • verifytest
63
30}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2