OpenCoverage

x_exten.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_exten.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static const ASN1_TEMPLATE X509_EXTENSION_seq_tt[] = {-
4 {-
5 .offset = -
6 __builtin_offsetof (-
7 X509_EXTENSION-
8 , -
9 object-
10 )-
11 ,-
12 .field_name = "object",-
13 .item = &ASN1_OBJECT_it,-
14 },-
15 {-
16 .flags = (0x1),-
17 .offset = -
18 __builtin_offsetof (-
19 X509_EXTENSION-
20 , -
21 critical-
22 )-
23 ,-
24 .field_name = "critical",-
25 .item = &ASN1_BOOLEAN_it,-
26 },-
27 {-
28 .offset = -
29 __builtin_offsetof (-
30 X509_EXTENSION-
31 , -
32 value-
33 )-
34 ,-
35 .field_name = "value",-
36 .item = &ASN1_OCTET_STRING_it,-
37 },-
38};-
39-
40const ASN1_ITEM X509_EXTENSION_it = {-
41 .itype = 0x1,-
42 .utype = 16,-
43 .templates = X509_EXTENSION_seq_tt,-
44 .tcount = sizeof(X509_EXTENSION_seq_tt) / sizeof(ASN1_TEMPLATE),-
45 .size = sizeof(X509_EXTENSION),-
46 .sname = "X509_EXTENSION",-
47};-
48-
49static const ASN1_TEMPLATE X509_EXTENSIONS_item_tt = {-
50 .flags = (0x2 << 1),-
51 .tag = 0,-
52 .offset = 0,-
53 .field_name = "Extension",-
54 .item = &X509_EXTENSION_it,-
55};-
56-
57const ASN1_ITEM X509_EXTENSIONS_it = {-
58 .itype = 0x0,-
59 .utype = -1,-
60 .templates = &X509_EXTENSIONS_item_tt,-
61 .tcount = 0,-
62 .funcs = -
63 ((void *)0)-
64 ,-
65 .size = 0,-
66 .sname = "X509_EXTENSIONS",-
67};-
68-
69-
70X509_EXTENSION *-
71d2i_X509_EXTENSION(X509_EXTENSION **a, const unsigned char **in, long len)-
72{-
73 return
never executed: return (X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSION_it);
(X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
never executed: return (X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSION_it);
0
74 &X509_EXTENSION_it);
never executed: return (X509_EXTENSION *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSION_it);
0
75}-
76-
77int-
78i2d_X509_EXTENSION(X509_EXTENSION *a, unsigned char **out)-
79{-
80 return
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSION_it);
ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSION_it);
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSION_it);
0
81}-
82-
83X509_EXTENSION *-
84X509_EXTENSION_new(void)-
85{-
86 return
executed 13 times by 1 test: return (X509_EXTENSION *)ASN1_item_new(&X509_EXTENSION_it);
Executed by:
  • verifytest
(X509_EXTENSION *)ASN1_item_new(&X509_EXTENSION_it);
executed 13 times by 1 test: return (X509_EXTENSION *)ASN1_item_new(&X509_EXTENSION_it);
Executed by:
  • verifytest
13
87}-
88-
89void-
90X509_EXTENSION_free(X509_EXTENSION *a)-
91{-
92 ASN1_item_free((ASN1_VALUE *)a, &X509_EXTENSION_it);-
93}
executed 1 time by 1 test: end of block
Executed by:
  • freenull
1
94-
95X509_EXTENSIONS *-
96d2i_X509_EXTENSIONS(X509_EXTENSIONS **a, const unsigned char **in, long len)-
97{-
98 return
never executed: return (X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSIONS_it);
(X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
never executed: return (X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSIONS_it);
0
99 &X509_EXTENSIONS_it);
never executed: return (X509_EXTENSIONS *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_EXTENSIONS_it);
0
100}-
101-
102int-
103i2d_X509_EXTENSIONS(X509_EXTENSIONS *a, unsigned char **out)-
104{-
105 return
executed 10 times by 2 tests: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSIONS_it);
Executed by:
  • tlsexttest
  • tlstest
ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSIONS_it);
executed 10 times by 2 tests: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_EXTENSIONS_it);
Executed by:
  • tlsexttest
  • tlstest
10
106}-
107-
108X509_EXTENSION *-
109X509_EXTENSION_dup(X509_EXTENSION *x)-
110{-
111 return
never executed: return ASN1_item_dup(&X509_EXTENSION_it, x);
ASN1_item_dup(&X509_EXTENSION_it, x);
never executed: return ASN1_item_dup(&X509_EXTENSION_it, x);
0
112}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2