OpenCoverage

store_init.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/store/store_init.c
Source codeSwitch to Preprocessed file
LineSourceCount
1/*-
2 * Copyright 2016-2018 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 <openssl/err.h>-
11#include "internal/store.h"-
12#include "store_locl.h"-
13-
14static CRYPTO_ONCE store_init = CRYPTO_ONCE_STATIC_INIT;-
15DEFINE_RUN_ONCE_STATIC(do_store_init)
never executed: end of block
0
16{-
17 return OPENSSL_init_crypto(0, NULL)
never executed: return OPENSSL_init_crypto(0, ((void *)0) ) && ossl_store_file_loader_init();
OPENSSL_init_c... ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
0
18 && ossl_store_file_loader_init();
never executed: return OPENSSL_init_crypto(0, ((void *)0) ) && ossl_store_file_loader_init();
ossl_store_file_loader_init()Description
TRUEnever evaluated
FALSEnever evaluated
0
19}-
20-
21int ossl_store_init_once(void)-
22{-
23 if (!RUN_ONCE(&store_init, do_store_init)) {
!(CRYPTO_THREA...ossl_ret_ : 0)Description
TRUEnever evaluated
FALSEnever evaluated
CRYPTO_THREAD_...re_init_ossl_)Description
TRUEnever evaluated
FALSEnever evaluated
0
24 OSSL_STOREerr(OSSL_STORE_F_OSSL_STORE_INIT_ONCE, ERR_R_MALLOC_FAILURE);-
25 return 0;
never executed: return 0;
0
26 }-
27 return 1;
never executed: return 1;
0
28}-
29-
30void ossl_store_cleanup_int(void)-
31{-
32 ossl_store_destroy_loaders_int();-
33}
executed 2076 times by 12 tests: end of block
Executed by:
  • asn1_internal_test
  • chacha_internal_test
  • ctype_internal_test
  • curve448_internal_test
  • libcrypto.so.1.1
  • modes_internal_test
  • poly1305_internal_test
  • rdrand_sanitytest
  • siphash_internal_test
  • sm2_internal_test
  • sm4_internal_test
  • x509_internal_test
2076
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.2