Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_val.c |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | static const ASN1_TEMPLATE X509_VAL_seq_tt[] = { | - |
4 | { | - |
5 | .offset = | - |
6 | __builtin_offsetof ( | - |
7 | X509_VAL | - |
8 | , | - |
9 | notBefore | - |
10 | ) | - |
11 | , | - |
12 | .field_name = "notBefore", | - |
13 | .item = &ASN1_TIME_it, | - |
14 | }, | - |
15 | { | - |
16 | .offset = | - |
17 | __builtin_offsetof ( | - |
18 | X509_VAL | - |
19 | , | - |
20 | notAfter | - |
21 | ) | - |
22 | , | - |
23 | .field_name = "notAfter", | - |
24 | .item = &ASN1_TIME_it, | - |
25 | }, | - |
26 | }; | - |
27 | - | |
28 | const ASN1_ITEM X509_VAL_it = { | - |
29 | .itype = 0x1, | - |
30 | .utype = 16, | - |
31 | .templates = X509_VAL_seq_tt, | - |
32 | .tcount = sizeof(X509_VAL_seq_tt) / sizeof(ASN1_TEMPLATE), | - |
33 | .size = sizeof(X509_VAL), | - |
34 | .sname = "X509_VAL", | - |
35 | }; | - |
36 | - | |
37 | - | |
38 | X509_VAL * | - |
39 | d2i_X509_VAL(X509_VAL **a, const unsigned char **in, long len) | - |
40 | { | - |
41 | return never executed: (X509_VAL *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,return (X509_VAL *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_VAL_it); never executed: return (X509_VAL *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_VAL_it); | 0 |
42 | &X509_VAL_it); never executed: return (X509_VAL *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_VAL_it); | 0 |
43 | } | - |
44 | - | |
45 | int | - |
46 | i2d_X509_VAL(X509_VAL *a, unsigned char **out) | - |
47 | { | - |
48 | return never executed: ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_VAL_it);return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_VAL_it); never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_VAL_it); | 0 |
49 | } | - |
50 | - | |
51 | X509_VAL * | - |
52 | X509_VAL_new(void) | - |
53 | { | - |
54 | return never executed: (X509_VAL *)ASN1_item_new(&X509_VAL_it);return (X509_VAL *)ASN1_item_new(&X509_VAL_it); never executed: return (X509_VAL *)ASN1_item_new(&X509_VAL_it); | 0 |
55 | } | - |
56 | - | |
57 | void | - |
58 | X509_VAL_free(X509_VAL *a) | - |
59 | { | - |
60 | ASN1_item_free((ASN1_VALUE *)a, &X509_VAL_it); | - |
61 | } executed 1 time by 1 test: end of block Executed by:
| 1 |
Switch to Source code | Preprocessed file |