OpenCoverage

a_time.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/a_time.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4const ASN1_ITEM ASN1_TIME_it = {-
5 .itype = 0x5,-
6 .utype = 0x4000 | 0x8000,-
7 .templates = -
8 ((void *)0)-
9 ,-
10 .tcount = 0,-
11 .funcs = -
12 ((void *)0)-
13 ,-
14 .size = sizeof(ASN1_STRING),-
15 .sname = "ASN1_TIME",-
16};-
17-
18-
19ASN1_TIME *-
20d2i_ASN1_TIME(ASN1_TIME **a, const unsigned char **in, long len)-
21{-
22 return
never executed: return (ASN1_TIME *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &ASN1_TIME_it);
(ASN1_TIME *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
never executed: return (ASN1_TIME *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &ASN1_TIME_it);
0
23 &ASN1_TIME_it);
never executed: return (ASN1_TIME *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &ASN1_TIME_it);
0
24}-
25-
26int-
27i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **out)-
28{-
29 return
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, &ASN1_TIME_it);
ASN1_item_i2d((ASN1_VALUE *)a, out, &ASN1_TIME_it);
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, &ASN1_TIME_it);
0
30}-
31-
32ASN1_TIME *-
33ASN1_TIME_new(void)-
34{-
35 return
executed 58 times by 3 tests: return (ASN1_TIME *)ASN1_item_new(&ASN1_TIME_it);
Executed by:
  • asn1time
  • pkcs7test
  • rfc5280time
(ASN1_TIME *)ASN1_item_new(&ASN1_TIME_it);
executed 58 times by 3 tests: return (ASN1_TIME *)ASN1_item_new(&ASN1_TIME_it);
Executed by:
  • asn1time
  • pkcs7test
  • rfc5280time
58
36}-
37-
38void-
39ASN1_TIME_free(ASN1_TIME *a)-
40{-
41 ASN1_item_free((ASN1_VALUE *)a, &ASN1_TIME_it);-
42}
executed 39 times by 3 tests: end of block
Executed by:
  • asn1time
  • freenull
  • rfc5280time
39
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2