OpenCoverage

i2d_pr.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/asn1/i2d_pr.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp)-
3{-
4 if (a->ameth
a->amethDescription
TRUEevaluated 112 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
&& a->ameth->old_priv_encode
a->ameth->old_priv_encodeDescription
TRUEevaluated 108 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-112
5 return
executed 108 times by 1 test: return a->ameth->old_priv_encode(a, pp);
Executed by:
  • libcrypto.so.1.1
a->ameth->old_priv_encode(a, pp);
executed 108 times by 1 test: return a->ameth->old_priv_encode(a, pp);
Executed by:
  • libcrypto.so.1.1
108
6 }-
7 if (a->ameth
a->amethDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
&& a->ameth->priv_encode
a->ameth->priv_encodeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
) {
0-4
8 PKCS8_PRIV_KEY_INFO *p8 = EVP_PKEY2PKCS8(a);-
9 int ret = 0;-
10 if (p8 !=
p8 != ((void *)0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-4
11 ((void *)0)
p8 != ((void *)0)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-4
12 ) {-
13 ret = i2d_PKCS8_PRIV_KEY_INFO(p8, pp);-
14 PKCS8_PRIV_KEY_INFO_free(p8);-
15 }
executed 4 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
4
16 return
executed 4 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 4 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
4
17 }-
18 ERR_put_error(13,(163),(167),__FILE__,31);-
19 return
never executed: return -1;
-1;
never executed: return -1;
0
20}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2