OpenCoverage

x_req.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509/x_req.c
Switch to Source codePreprocessed file
LineSourceCount
1static int rinf_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,-
2 void *exarg)-
3{-
4 X509_REQ_INFO *rinf = (X509_REQ_INFO *)*pval;-
5-
6 if (operation == 1
operation == 1Description
TRUEevaluated 5963 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 21398 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
5963-21398
7 rinf->attributes = sk_X509_ATTRIBUTE_new_null();-
8 if (!rinf->attributes
!rinf->attributesDescription
TRUEnever evaluated
FALSEevaluated 5963 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-5963
9 return
never executed: return 0;
0;
never executed: return 0;
0
10 }
executed 5963 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
5963
11 return
executed 27361 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 27361 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
27361
12}-
13-
14static const ASN1_AUX X509_REQ_INFO_aux = {-
15((void *)0)-
16, 2, 0, 0, rinf_cb, -
17__builtin_offsetof (-
18X509_REQ_INFO-
19, -
20enc-
21)-
22}; static const ASN1_TEMPLATE X509_REQ_INFO_seq_tt[] = {-
23 { (0), (0), -
24 __builtin_offsetof (-
25 X509_REQ_INFO-
26 , -
27 version-
28 )-
29 , "version", (&(ASN1_INTEGER_it)) },-
30 { (0), (0), -
31 __builtin_offsetof (-
32 X509_REQ_INFO-
33 , -
34 subject-
35 )-
36 , "subject", (&(X509_NAME_it)) },-
37 { (0), (0), -
38 __builtin_offsetof (-
39 X509_REQ_INFO-
40 , -
41 pubkey-
42 )-
43 , "pubkey", (&(X509_PUBKEY_it)) },-
44-
45-
46-
47 { (((0x1 << 3)|(0x2<<6)) | ((0x1 << 1)|(0x1))), (0), -
48 __builtin_offsetof (-
49 X509_REQ_INFO-
50 , -
51 attributes-
52 )-
53 , "attributes", (&(X509_ATTRIBUTE_it)) }-
54} ; const ASN1_ITEM X509_REQ_INFO_it = { 0x1, 16, X509_REQ_INFO_seq_tt, sizeof(X509_REQ_INFO_seq_tt) / sizeof(ASN1_TEMPLATE), &X509_REQ_INFO_aux, sizeof(X509_REQ_INFO), "X509_REQ_INFO" };-
55-
56X509_REQ_INFO *d2i_X509_REQ_INFO(X509_REQ_INFO **a, const unsigned char **in, long len) { return
never executed: return (X509_REQ_INFO *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_INFO_it)));
(X509_REQ_INFO *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_INFO_it)));
never executed: return (X509_REQ_INFO *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_INFO_it)));
} int i2d_X509_REQ_INFO(X509_REQ_INFO *a, unsigned char **out) { return
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_INFO_it)));
ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_INFO_it)));
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_INFO_it)));
} X509_REQ_INFO *X509_REQ_INFO_new(void) { return
never executed: return (X509_REQ_INFO *)ASN1_item_new((&(X509_REQ_INFO_it)));
(X509_REQ_INFO *)ASN1_item_new((&(X509_REQ_INFO_it)));
never executed: return (X509_REQ_INFO *)ASN1_item_new((&(X509_REQ_INFO_it)));
} void X509_REQ_INFO_free(X509_REQ_INFO *a) { ASN1_item_free((ASN1_VALUE *)a, (&(X509_REQ_INFO_it))); }
never executed: end of block
0
57-
58static const ASN1_AUX X509_REQ_aux = {-
59((void *)0)-
60, 1, -
61__builtin_offsetof (-
62X509_REQ-
63, -
64references-
65)-
66, -
67__builtin_offsetof (-
68X509_REQ-
69, -
70lock-
71)-
72, 0, 0}; static const ASN1_TEMPLATE X509_REQ_seq_tt[] = {-
73 { ((0x1 << 12)), (0), -
74 __builtin_offsetof (-
75 X509_REQ-
76 , -
77 req_info-
78 )-
79 , "req_info", (&(X509_REQ_INFO_it)) },-
80 { ((0x1 << 12)), (0), -
81 __builtin_offsetof (-
82 X509_REQ-
83 , -
84 sig_alg-
85 )-
86 , "sig_alg", (&(X509_ALGOR_it)) },-
87 { (0), (0), -
88 __builtin_offsetof (-
89 X509_REQ-
90 , -
91 signature-
92 )-
93 , "signature", (&(ASN1_BIT_STRING_it)) }-
94} ; const ASN1_ITEM X509_REQ_it = { 0x1, 16, X509_REQ_seq_tt, sizeof(X509_REQ_seq_tt) / sizeof(ASN1_TEMPLATE), &X509_REQ_aux, sizeof(X509_REQ), "X509_REQ" };-
95-
96X509_REQ *d2i_X509_REQ(X509_REQ **a, const unsigned char **in, long len) { return
executed 23 times by 1 test: return (X509_REQ *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_it)));
Executed by:
  • libcrypto.so.1.1
(X509_REQ *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_it)));
executed 23 times by 1 test: return (X509_REQ *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_it)));
Executed by:
  • libcrypto.so.1.1
} int i2d_X509_REQ(X509_REQ *a, unsigned char **out) { return
executed 34 times by 1 test: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_it)));
Executed by:
  • libcrypto.so.1.1
ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_it)));
executed 34 times by 1 test: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_it)));
Executed by:
  • libcrypto.so.1.1
} X509_REQ *X509_REQ_new(void) { return
executed 12 times by 1 test: return (X509_REQ *)ASN1_item_new((&(X509_REQ_it)));
Executed by:
  • libcrypto.so.1.1
(X509_REQ *)ASN1_item_new((&(X509_REQ_it)));
executed 12 times by 1 test: return (X509_REQ *)ASN1_item_new((&(X509_REQ_it)));
Executed by:
  • libcrypto.so.1.1
} void X509_REQ_free(X509_REQ *a) { ASN1_item_free((ASN1_VALUE *)a, (&(X509_REQ_it))); }
executed 150 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
12-150
97-
98X509_REQ * X509_REQ_dup(X509_REQ *x) { return
never executed: return ASN1_item_dup((&(X509_REQ_it)), x);
ASN1_item_dup((&(X509_REQ_it)), x);
never executed: return ASN1_item_dup((&(X509_REQ_it)), x);
}
0
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2