OpenCoverage

x_sig.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/x_sig.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3static const ASN1_TEMPLATE X509_SIG_seq_tt[] = {-
4 {-
5 .offset = -
6 __builtin_offsetof (-
7 X509_SIG-
8 , -
9 algor-
10 )-
11 ,-
12 .field_name = "algor",-
13 .item = &X509_ALGOR_it,-
14 },-
15 {-
16 .offset = -
17 __builtin_offsetof (-
18 X509_SIG-
19 , -
20 digest-
21 )-
22 ,-
23 .field_name = "digest",-
24 .item = &ASN1_OCTET_STRING_it,-
25 },-
26};-
27-
28const ASN1_ITEM X509_SIG_it = {-
29 .itype = 0x1,-
30 .utype = 16,-
31 .templates = X509_SIG_seq_tt,-
32 .tcount = sizeof(X509_SIG_seq_tt) / sizeof(ASN1_TEMPLATE),-
33 .size = sizeof(X509_SIG),-
34 .sname = "X509_SIG",-
35};-
36-
37-
38X509_SIG *-
39d2i_X509_SIG(X509_SIG **a, const unsigned char **in, long len)-
40{-
41 return
never executed: return (X509_SIG *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_SIG_it);
(X509_SIG *)ASN1_item_d2i((ASN1_VALUE **)a, in, len,
never executed: return (X509_SIG *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_SIG_it);
0
42 &X509_SIG_it);
never executed: return (X509_SIG *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, &X509_SIG_it);
0
43}-
44-
45int-
46i2d_X509_SIG(X509_SIG *a, unsigned char **out)-
47{-
48 return
executed 142 times by 5 tests: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_SIG_it);
Executed by:
  • libcrypto.so.44.0.1
  • pkcs7test
  • servertest
  • ssltest
  • tlstest
ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_SIG_it);
executed 142 times by 5 tests: return ASN1_item_i2d((ASN1_VALUE *)a, out, &X509_SIG_it);
Executed by:
  • libcrypto.so.44.0.1
  • pkcs7test
  • servertest
  • ssltest
  • tlstest
142
49}-
50-
51X509_SIG *-
52X509_SIG_new(void)-
53{-
54 return
never executed: return (X509_SIG *)ASN1_item_new(&X509_SIG_it);
(X509_SIG *)ASN1_item_new(&X509_SIG_it);
never executed: return (X509_SIG *)ASN1_item_new(&X509_SIG_it);
0
55}-
56-
57void-
58X509_SIG_free(X509_SIG *a)-
59{-
60 ASN1_item_free((ASN1_VALUE *)a, &X509_SIG_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