OpenCoverage

v3_pku.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509v3/v3_pku.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method,-
3 PKEY_USAGE_PERIOD *usage, BIO *out,-
4 int indent);-
5-
6const X509V3_EXT_METHOD v3_pkey_usage_period = {-
7 84, 0, (&(PKEY_USAGE_PERIOD_it)),-
8 0, 0, 0, 0,-
9 0, 0, 0, 0,-
10 (X509V3_EXT_I2R)i2r_PKEY_USAGE_PERIOD, -
11 ((void *)0)-
12 ,-
13 -
14 ((void *)0)-
15-
16};-
17-
18static const ASN1_TEMPLATE PKEY_USAGE_PERIOD_seq_tt[] = {-
19 { (((0x1 << 3)|(0x2<<6)) | ((0x1))), (0), -
20 __builtin_offsetof (-
21 PKEY_USAGE_PERIOD-
22 , -
23 notBefore-
24 )-
25 , "notBefore", (&(ASN1_GENERALIZEDTIME_it)) },-
26 { (((0x1 << 3)|(0x2<<6)) | ((0x1))), (1), -
27 __builtin_offsetof (-
28 PKEY_USAGE_PERIOD-
29 , -
30 notAfter-
31 )-
32 , "notAfter", (&(ASN1_GENERALIZEDTIME_it)) }-
33} ; const ASN1_ITEM PKEY_USAGE_PERIOD_it = { 0x1, 16, PKEY_USAGE_PERIOD_seq_tt, sizeof(PKEY_USAGE_PERIOD_seq_tt) / sizeof(ASN1_TEMPLATE), -
34 ((void *)0)-
35 , sizeof(PKEY_USAGE_PERIOD), "PKEY_USAGE_PERIOD" };-
36-
37PKEY_USAGE_PERIOD *d2i_PKEY_USAGE_PERIOD(PKEY_USAGE_PERIOD **a, const unsigned char **in, long len) { return
never executed: return (PKEY_USAGE_PERIOD *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PKEY_USAGE_PERIOD_it)));
(PKEY_USAGE_PERIOD *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PKEY_USAGE_PERIOD_it)));
never executed: return (PKEY_USAGE_PERIOD *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PKEY_USAGE_PERIOD_it)));
} int i2d_PKEY_USAGE_PERIOD(PKEY_USAGE_PERIOD *a, unsigned char **out) { return
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PKEY_USAGE_PERIOD_it)));
ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PKEY_USAGE_PERIOD_it)));
never executed: return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PKEY_USAGE_PERIOD_it)));
} PKEY_USAGE_PERIOD *PKEY_USAGE_PERIOD_new(void) { return
never executed: return (PKEY_USAGE_PERIOD *)ASN1_item_new((&(PKEY_USAGE_PERIOD_it)));
(PKEY_USAGE_PERIOD *)ASN1_item_new((&(PKEY_USAGE_PERIOD_it)));
never executed: return (PKEY_USAGE_PERIOD *)ASN1_item_new((&(PKEY_USAGE_PERIOD_it)));
} void PKEY_USAGE_PERIOD_free(PKEY_USAGE_PERIOD *a) { ASN1_item_free((ASN1_VALUE *)a, (&(PKEY_USAGE_PERIOD_it))); }
never executed: end of block
0
38-
39static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method,-
40 PKEY_USAGE_PERIOD *usage, BIO *out,-
41 int indent)-
42{-
43 BIO_printf(out, "%*s", indent, "");-
44 if (usage->notBefore
usage->notBeforeDescription
TRUEevaluated 674 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 468 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
468-674
45 BIO_write(out, "Not Before: ", 12);-
46 ASN1_GENERALIZEDTIME_print(out, usage->notBefore);-
47 if (usage->notAfter
usage->notAfterDescription
TRUEevaluated 207 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 467 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
207-467
48 BIO_write(out, ", ", 2);
executed 207 times by 1 test: BIO_write(out, ", ", 2);
Executed by:
  • libcrypto.so.1.1
207
49 }
executed 674 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
674
50 if (usage->notAfter
usage->notAfterDescription
TRUEevaluated 436 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 706 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
436-706
51 BIO_write(out, "Not After: ", 11);-
52 ASN1_GENERALIZEDTIME_print(out, usage->notAfter);-
53 }
executed 436 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
436
54 return
executed 1142 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 1142 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1142
55}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2