Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/x509v3/v3_pku.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | static int i2r_PKEY_USAGE_PERIOD(X509V3_EXT_METHOD *method, | - | ||||||
3 | PKEY_USAGE_PERIOD *usage, BIO *out, | - | ||||||
4 | int indent); | - | ||||||
5 | - | |||||||
6 | const 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 | - | |||||||
18 | static 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 | - | |||||||
37 | PKEY_USAGE_PERIOD *d2i_PKEY_USAGE_PERIOD(PKEY_USAGE_PERIOD **a, const unsigned char **in, long len) { return never executed: (PKEY_USAGE_PERIOD *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PKEY_USAGE_PERIOD_it)));return (PKEY_USAGE_PERIOD *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PKEY_USAGE_PERIOD_it))); never executed: } int i2d_PKEY_USAGE_PERIOD(PKEY_USAGE_PERIOD *a, unsigned char **out) { returnreturn (PKEY_USAGE_PERIOD *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, (&(PKEY_USAGE_PERIOD_it))); never executed: ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PKEY_USAGE_PERIOD_it)));return ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PKEY_USAGE_PERIOD_it))); never executed: } PKEY_USAGE_PERIOD *PKEY_USAGE_PERIOD_new(void) { returnreturn ASN1_item_i2d((ASN1_VALUE *)a, out, (&(PKEY_USAGE_PERIOD_it))); never executed: (PKEY_USAGE_PERIOD *)ASN1_item_new((&(PKEY_USAGE_PERIOD_it)));return (PKEY_USAGE_PERIOD *)ASN1_item_new((&(PKEY_USAGE_PERIOD_it))); never executed: } void PKEY_USAGE_PERIOD_free(PKEY_USAGE_PERIOD *a) { ASN1_item_free((ASN1_VALUE *)a, (&(PKEY_USAGE_PERIOD_it))); }return (PKEY_USAGE_PERIOD *)ASN1_item_new((&(PKEY_USAGE_PERIOD_it))); never executed: end of block | 0 | ||||||
38 | - | |||||||
39 | static 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
| 468-674 | ||||||
45 | BIO_write(out, "Not Before: ", 12); | - | ||||||
46 | ASN1_GENERALIZEDTIME_print(out, usage->notBefore); | - | ||||||
47 | if (usage->notAfter
| 207-467 | ||||||
48 | BIO_write(out, ", ", 2); executed 207 times by 1 test: BIO_write(out, ", ", 2); Executed by:
| 207 | ||||||
49 | } executed 674 times by 1 test: end of block Executed by:
| 674 | ||||||
50 | if (usage->notAfter
| 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:
| 436 | ||||||
54 | return executed 1142 times by 1 test: 1;return 1; Executed by:
executed 1142 times by 1 test: return 1; Executed by:
| 1142 | ||||||
55 | } | - | ||||||
Switch to Source code | Preprocessed file |