OpenCoverage

dsa_prn.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/dsa/dsa_prn.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3int DSA_print_fp(FILE *fp, const DSA *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(10,(105),(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 = DSA_print(b, x, off);-
16 BIO_free(b);-
17 return
never executed: return ret;
ret;
never executed: return ret;
0
18}-
19-
20int DSAparams_print_fp(FILE *fp, const DSA *x)-
21{-
22 BIO *b;-
23 int ret;-
24-
25 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
26 ((void *)0)
(b = BIO_new(B...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
27 ) {-
28 ERR_put_error(10,(101),(7),__FILE__,37);-
29 return
never executed: return 0;
0;
never executed: return 0;
0
30 }-
31 BIO_ctrl(b,106,0x00,(char *)(fp));-
32 ret = DSAparams_print(b, x);-
33 BIO_free(b);-
34 return
never executed: return ret;
ret;
never executed: return ret;
0
35}-
36-
37-
38int DSA_print(BIO *bp, const DSA *x, int off)-
39{-
40 EVP_PKEY *pk;-
41 int ret;-
42 pk = EVP_PKEY_new();-
43 if (pk ==
pk == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-9
44 ((void *)0)
pk == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-9
45 || !EVP_PKEY_set1_DSA(pk, (DSA *)x)
!EVP_PKEY_set1...(pk, (DSA *)x)Description
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-9
46 return
never executed: return 0;
0;
never executed: return 0;
0
47 ret = EVP_PKEY_print_private(bp, pk, off, -
48 ((void *)0)-
49 );-
50 EVP_PKEY_free(pk);-
51 return
executed 9 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 9 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
9
52}-
53-
54int DSAparams_print(BIO *bp, const DSA *x)-
55{-
56 EVP_PKEY *pk;-
57 int ret;-
58 pk = EVP_PKEY_new();-
59 if (pk ==
pk == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-13
60 ((void *)0)
pk == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-13
61 || !EVP_PKEY_set1_DSA(pk, (DSA *)x)
!EVP_PKEY_set1...(pk, (DSA *)x)Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-13
62 return
never executed: return 0;
0;
never executed: return 0;
0
63 ret = EVP_PKEY_print_params(bp, pk, 4, -
64 ((void *)0)-
65 );-
66 EVP_PKEY_free(pk);-
67 return
executed 13 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 13 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
13
68}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2