OpenCoverage

ct_x509v3.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/ct/ct_x509v3.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2static char *i2s_poison(const X509V3_EXT_METHOD *method, void *val)-
3{-
4 return
executed 644 times by 1 test: return CRYPTO_strdup("NULL", __FILE__, 18);
Executed by:
  • libcrypto.so.1.1
CRYPTO_strdup("NULL", __FILE__, 18);
executed 644 times by 1 test: return CRYPTO_strdup("NULL", __FILE__, 18);
Executed by:
  • libcrypto.so.1.1
644
5}-
6-
7static void *s2i_poison(const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, const char *str)-
8{-
9 return
never executed: return ASN1_NULL_new();
ASN1_NULL_new();
never executed: return ASN1_NULL_new();
0
10}-
11-
12static int i2r_SCT_LIST(X509V3_EXT_METHOD *method, struct stack_st_SCT *sct_list,-
13 BIO *out, int indent)-
14{-
15 SCT_LIST_print(sct_list, out, indent, "\n", -
16 ((void *)0)-
17 );-
18 return
executed 2627 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 2627 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
2627
19}-
20-
21static int set_sct_list_source(struct stack_st_SCT *s, sct_source_t source)-
22{-
23 if (s !=
s != ((void *)0)Description
TRUEevaluated 2636 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3628 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
2636-3628
24 ((void *)0)
s != ((void *)0)Description
TRUEevaluated 2636 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3628 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
2636-3628
25 ) {-
26 int i;-
27-
28 for (i = 0; i < sk_SCT_num(s)
i < sk_SCT_num(s)Description
TRUEevaluated 3370 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2636 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
; i++) {
2636-3370
29 int res = SCT_set_source(sk_SCT_value(s, i), source);-
30-
31 if (res != 1
res != 1Description
TRUEnever evaluated
FALSEevaluated 3370 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-3370
32 return
never executed: return 0;
0;
never executed: return 0;
0
33 }-
34 }
executed 3370 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
3370
35 }
executed 2636 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
2636
36 return
executed 6264 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 6264 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
6264
37}-
38-
39static struct stack_st_SCT *x509_ext_d2i_SCT_LIST(struct stack_st_SCT **a,-
40 const unsigned char **pp,-
41 long len)-
42{-
43 struct stack_st_SCT *s = d2i_SCT_LIST(a, pp, len);-
44-
45 if (set_sct_list_source(s, SCT_SOURCE_X509V3_EXTENSION) != 1
set_sct_list_s...XTENSION) != 1Description
TRUEnever evaluated
FALSEevaluated 2499 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-2499
46 SCT_LIST_free(s);-
47 *a = -
48 ((void *)0)-
49 ;-
50 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
51 ((void *)0)
never executed: return ((void *)0) ;
0
52 ;
never executed: return ((void *)0) ;
0
53 }-
54 return
executed 2499 times by 1 test: return s;
Executed by:
  • libcrypto.so.1.1
s;
executed 2499 times by 1 test: return s;
Executed by:
  • libcrypto.so.1.1
2499
55}-
56-
57static struct stack_st_SCT *ocsp_ext_d2i_SCT_LIST(struct stack_st_SCT **a,-
58 const unsigned char **pp,-
59 long len)-
60{-
61 struct stack_st_SCT *s = d2i_SCT_LIST(a, pp, len);-
62-
63 if (set_sct_list_source(s, SCT_SOURCE_OCSP_STAPLED_RESPONSE) != 1
set_sct_list_s...RESPONSE) != 1Description
TRUEnever evaluated
FALSEevaluated 3765 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
0-3765
64 SCT_LIST_free(s);-
65 *a = -
66 ((void *)0)-
67 ;-
68 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
69 ((void *)0)
never executed: return ((void *)0) ;
0
70 ;
never executed: return ((void *)0) ;
0
71 }-
72 return
executed 3765 times by 1 test: return s;
Executed by:
  • libcrypto.so.1.1
s;
executed 3765 times by 1 test: return s;
Executed by:
  • libcrypto.so.1.1
3765
73}-
74-
75-
76const X509V3_EXT_METHOD v3_ct_scts[3] = {-
77-
78 { 951, 0, -
79 ((void *)0)-
80 ,-
81 -
82 ((void *)0)-
83 , (X509V3_EXT_FREE)SCT_LIST_free,-
84 (X509V3_EXT_D2I)x509_ext_d2i_SCT_LIST, (X509V3_EXT_I2D)i2d_SCT_LIST,-
85 -
86 ((void *)0)-
87 , -
88 ((void *)0)-
89 ,-
90 -
91 ((void *)0)-
92 , -
93 ((void *)0)-
94 ,-
95 (X509V3_EXT_I2R)i2r_SCT_LIST, -
96 ((void *)0)-
97 ,-
98 -
99 ((void *)0) -
100 },-
101-
102-
103 { 952, 0, (&(ASN1_NULL_it)),-
104 -
105 ((void *)0)-
106 , -
107 ((void *)0)-
108 , -
109 ((void *)0)-
110 , -
111 ((void *)0)-
112 ,-
113 i2s_poison, s2i_poison,-
114 -
115 ((void *)0)-
116 , -
117 ((void *)0)-
118 ,-
119 -
120 ((void *)0)-
121 , -
122 ((void *)0)-
123 ,-
124 -
125 ((void *)0) -
126 },-
127-
128-
129 { 954, 0, -
130 ((void *)0)-
131 ,-
132 0, (X509V3_EXT_FREE)SCT_LIST_free,-
133 (X509V3_EXT_D2I)ocsp_ext_d2i_SCT_LIST, (X509V3_EXT_I2D)i2d_SCT_LIST,-
134 -
135 ((void *)0)-
136 , -
137 ((void *)0)-
138 ,-
139 -
140 ((void *)0)-
141 , -
142 ((void *)0)-
143 ,-
144 (X509V3_EXT_I2R)i2r_SCT_LIST, -
145 ((void *)0)-
146 ,-
147 -
148 ((void *)0) -
149 },-
150};-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2