OpenCoverage

x_val.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_val.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static 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-
28const 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-
38X509_VAL *-
39d2i_X509_VAL(X509_VAL **a, const unsigned char **in, long len)-
40{-
41 return
never executed: return (X509_VAL *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_VAL_it);
(X509_VAL *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
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-
45int-
46i2d_X509_VAL(X509_VAL *a, unsigned char **out)-
47{-
48 return
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_VAL_it);
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-
51X509_VAL *-
52X509_VAL_new(void)-
53{-
54 return
never executed: return (X509_VAL *)ASN1_item_new(&X509_VAL_it);
(X509_VAL *)ASN1_item_new(&X509_VAL_it);
never executed: return (X509_VAL *)ASN1_item_new(&X509_VAL_it);
0
55}-
56-
57void-
58X509_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:
  • freenull
1
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2