Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509/x_req.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | static 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
| 5963-21398 | ||||||
7 | rinf->attributes = sk_X509_ATTRIBUTE_new_null(); | - | ||||||
8 | if (!rinf->attributes
| 0-5963 | ||||||
9 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||
10 | } executed 5963 times by 1 test: end of block Executed by:
| 5963 | ||||||
11 | return executed 27361 times by 1 test: 1;return 1; Executed by:
executed 27361 times by 1 test: return 1; Executed by:
| 27361 | ||||||
12 | } | - | ||||||
13 | - | |||||||
14 | static const ASN1_AUX X509_REQ_INFO_aux = { | - | ||||||
15 | ((void *)0) | - | ||||||
16 | , 2, 0, 0, rinf_cb, | - | ||||||
17 | __builtin_offsetof ( | - | ||||||
18 | X509_REQ_INFO | - | ||||||
19 | , | - | ||||||
20 | enc | - | ||||||
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 | - | |||||||
56 | X509_REQ_INFO *d2i_X509_REQ_INFO(X509_REQ_INFO **a, const unsigned char **in, long len) { return never executed: (X509_REQ_INFO *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_INFO_it)));return (X509_REQ_INFO *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_INFO_it))); never executed: } int i2d_X509_REQ_INFO(X509_REQ_INFO *a, unsigned char **out) { returnreturn (X509_REQ_INFO *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_INFO_it))); never executed: ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_INFO_it)));return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_INFO_it))); never executed: } X509_REQ_INFO *X509_REQ_INFO_new(void) { returnreturn ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_INFO_it))); never executed: (X509_REQ_INFO *)ASN1_item_new((&(X509_REQ_INFO_it)));return (X509_REQ_INFO *)ASN1_item_new((&(X509_REQ_INFO_it))); never executed: } void X509_REQ_INFO_free(X509_REQ_INFO *a) { ASN1_item_free((ASN1_VALUE *)a, (&(X509_REQ_INFO_it))); }return (X509_REQ_INFO *)ASN1_item_new((&(X509_REQ_INFO_it))); never executed: end of block | 0 | ||||||
57 | - | |||||||
58 | static const ASN1_AUX X509_REQ_aux = { | - | ||||||
59 | ((void *)0) | - | ||||||
60 | , 1, | - | ||||||
61 | __builtin_offsetof ( | - | ||||||
62 | X509_REQ | - | ||||||
63 | , | - | ||||||
64 | references | - | ||||||
65 | ) | - | ||||||
66 | , | - | ||||||
67 | __builtin_offsetof ( | - | ||||||
68 | X509_REQ | - | ||||||
69 | , | - | ||||||
70 | lock | - | ||||||
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 | - | |||||||
96 | X509_REQ *d2i_X509_REQ(X509_REQ **a, const unsigned char **in, long len) { return executed 23 times by 1 test: (X509_REQ *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_it)));return (X509_REQ *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_it))); Executed by:
executed 23 times by 1 test: } int i2d_X509_REQ(X509_REQ *a, unsigned char **out) { returnreturn (X509_REQ *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(X509_REQ_it))); Executed by:
executed 34 times by 1 test: ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_it)));return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_it))); Executed by:
executed 34 times by 1 test: } X509_REQ *X509_REQ_new(void) { returnreturn ASN1_item_i2d((ASN1_VALUE *)a, out, (&(X509_REQ_it))); Executed by:
executed 12 times by 1 test: (X509_REQ *)ASN1_item_new((&(X509_REQ_it)));return (X509_REQ *)ASN1_item_new((&(X509_REQ_it))); Executed by:
executed 12 times by 1 test: } void X509_REQ_free(X509_REQ *a) { ASN1_item_free((ASN1_VALUE *)a, (&(X509_REQ_it))); }return (X509_REQ *)ASN1_item_new((&(X509_REQ_it))); Executed by:
executed 150 times by 1 test: end of block Executed by:
| 12-150 | ||||||
97 | - | |||||||
98 | X509_REQ * X509_REQ_dup(X509_REQ *x) { return never executed: ASN1_item_dup((&(X509_REQ_it)), x);return ASN1_item_dup((&(X509_REQ_it)), x); never executed: }return ASN1_item_dup((&(X509_REQ_it)), x); | 0 | ||||||
Switch to Source code | Preprocessed file |