OpenCoverage

rsa_prn.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/rsa/rsa_prn.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3int RSA_print_fp(FILE *fp, const RSA *x, int off)-
4{-
5 BIO *b;-
6 int ret;-
7-
8 if ((
(b = BIO_new(B...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
b = BIO_new(BIO_s_file())) ==
(b = BIO_new(B...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
9 ((void *)0)
(b = BIO_new(B...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
10 ) {-
11 ERR_put_error(4,(116),(7),__FILE__,22);-
12 return
never executed: return 0;
0;
never executed: return 0;
0
13 }-
14 BIO_ctrl(b,106,0x00,(char *)(fp));-
15 ret = RSA_print(b, x, off);-
16 BIO_free(b);-
17 return
never executed: return ret;
ret;
never executed: return ret;
0
18}-
19-
20-
21int RSA_print(BIO *bp, const RSA *x, int off)-
22{-
23 EVP_PKEY *pk;-
24 int ret;-
25 pk = EVP_PKEY_new();-
26 if (pk ==
pk == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-10
27 ((void *)0)
pk == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-10
28 || !EVP_PKEY_set1_RSA(pk, (RSA *)x)
!EVP_PKEY_set1...(pk, (RSA *)x)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-10
29 return
never executed: return 0;
0;
never executed: return 0;
0
30 ret = EVP_PKEY_print_private(bp, pk, off, -
31 ((void *)0)-
32 );-
33 EVP_PKEY_free(pk);-
34 return
executed 10 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 10 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
10
35}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2