Branch Coverage

deps/libgit2/src/libgit2/streams/openssl_dynamic.c
Criterion Covered Total %
branch 0 66 0.0


line true false branch
101 0 0 if (*err)
105 0 0 if ((symbol = dlsym(openssl_handle, name)) == NULL && required) {
0 0 if ((symbol = dlsym(openssl_handle, name)) == NULL && required) {
107 0 0 git_error_set(GIT_ERROR_SSL, "could not load ssl function '%s': %s", name, msg ? msg : "unknown error");
125 0 0 (openssl_handle = dlopen("libssl.1.1.dylib", RTLD_NOW)) == NULL &&
126 0 0 (openssl_handle = dlopen("libssl.so.1.0.0", RTLD_NOW)) == NULL &&
127 0 0 (openssl_handle = dlopen("libssl.1.0.0.dylib", RTLD_NOW)) == NULL &&
211 0 0 if (err)
215 0 0 if (!OPENSSL_init_ssl) {
218 0 0 if (!SSL_library_init ||
0 0 if (!SSL_library_init ||
219 0 0 !SSL_load_error_strings ||
220 0 0 !CRYPTO_num_locks ||
221 0 0 !CRYPTO_set_locking_callback ||
222 0 0 !CRYPTO_THREADID_set_callback ||
229 0 0 if (!SSL_CTX_set_options)
232 0 0 if (TLS_method)
235 0 0 if (!BIO_meth_new) {
252 0 0 if (!ASN1_STRING_get0_data) {
253 0 0 if (!ASN1_STRING_data) {
261 0 0 if ((!OPENSSL_sk_num && !sk_num) ||
0 0 if ((!OPENSSL_sk_num && !sk_num) ||
0 0 if ((!OPENSSL_sk_num && !sk_num) ||
262 0 0 (!OPENSSL_sk_value && !sk_value) ||
0 0 (!OPENSSL_sk_value && !sk_value) ||
263 0 0 (!OPENSSL_sk_free && !sk_free)) {
268 0 0 if (git_runtime_shutdown_register(dynamic_shutdown) != 0)
281 0 0 if (OPENSSL_sk_num)
283 0 0 else if (sk_num)
292 0 0 if (OPENSSL_sk_value)
294 0 0 else if (sk_value)
303 0 0 if (OPENSSL_sk_free)
305 0 0 else if (sk_free)