Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/asn1/t_x509a.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | int | - | ||||||
7 | X509_CERT_AUX_print(BIO *out, X509_CERT_AUX *aux, int indent) | - | ||||||
8 | { | - | ||||||
9 | char oidstr[80], first; | - | ||||||
10 | int i; | - | ||||||
11 | if (!aux
| 0-3 | ||||||
12 | return executed 3 times by 1 test: 1;return 1; Executed by:
executed 3 times by 1 test: return 1; Executed by:
| 3 | ||||||
13 | if (aux->trust
| 0 | ||||||
14 | first = 1; | - | ||||||
15 | BIO_printf(out, "%*sTrusted Uses:\n%*s", | - | ||||||
16 | indent, "", indent + 2, ""); | - | ||||||
17 | for (i = 0; i < sk_num(((_STACK*) (1 ? (aux->trust) : (struct stack_st_ASN1_OBJECT*)0)))
| 0 | ||||||
18 | if (!first
| 0 | ||||||
19 | BIO_puts(out, ", "); never executed: BIO_puts(out, ", "); | 0 | ||||||
20 | else | - | ||||||
21 | first = 0; never executed: first = 0; | 0 | ||||||
22 | OBJ_obj2txt(oidstr, sizeof oidstr, | - | ||||||
23 | ((ASN1_OBJECT *)sk_value(((_STACK*) (1 ? (aux->trust) : (struct stack_st_ASN1_OBJECT*)0)), (i))), 0); | - | ||||||
24 | BIO_puts(out, oidstr); | - | ||||||
25 | } never executed: end of block | 0 | ||||||
26 | BIO_puts(out, "\n"); | - | ||||||
27 | } never executed: elseend of block | 0 | ||||||
28 | BIO_printf(out, "%*sNo Trusted Uses.\n", indent, ""); never executed: BIO_printf(out, "%*sNo Trusted Uses.\n", indent, ""); | 0 | ||||||
29 | if (aux->reject
| 0 | ||||||
30 | first = 1; | - | ||||||
31 | BIO_printf(out, "%*sRejected Uses:\n%*s", | - | ||||||
32 | indent, "", indent + 2, ""); | - | ||||||
33 | for (i = 0; i < sk_num(((_STACK*) (1 ? (aux->reject) : (struct stack_st_ASN1_OBJECT*)0)))
| 0 | ||||||
34 | if (!first
| 0 | ||||||
35 | BIO_puts(out, ", "); never executed: BIO_puts(out, ", "); | 0 | ||||||
36 | else | - | ||||||
37 | first = 0; never executed: first = 0; | 0 | ||||||
38 | OBJ_obj2txt(oidstr, sizeof oidstr, | - | ||||||
39 | ((ASN1_OBJECT *)sk_value(((_STACK*) (1 ? (aux->reject) : (struct stack_st_ASN1_OBJECT*)0)), (i))), 0); | - | ||||||
40 | BIO_puts(out, oidstr); | - | ||||||
41 | } never executed: end of block | 0 | ||||||
42 | BIO_puts(out, "\n"); | - | ||||||
43 | } never executed: elseend of block | 0 | ||||||
44 | BIO_printf(out, "%*sNo Rejected Uses.\n", indent, ""); never executed: BIO_printf(out, "%*sNo Rejected Uses.\n", indent, ""); | 0 | ||||||
45 | if (aux->alias
| 0 | ||||||
46 | BIO_printf(out, "%*sAlias: %s\n", indent, "", never executed: BIO_printf(out, "%*sAlias: %s\n", indent, "", aux->alias->data); | 0 | ||||||
47 | aux->alias->data); never executed: BIO_printf(out, "%*sAlias: %s\n", indent, "", aux->alias->data); | 0 | ||||||
48 | if (aux->keyid
| 0 | ||||||
49 | BIO_printf(out, "%*sKey Id: ", indent, ""); | - | ||||||
50 | for (i = 0; i < aux->keyid->length
| 0 | ||||||
51 | BIO_printf(out, "%s%02X", i ? ":" : "", never executed: BIO_printf(out, "%s%02X", i ? ":" : "", aux->keyid->data[i]); | 0 | ||||||
52 | aux->keyid->data[i]); never executed: BIO_printf(out, "%s%02X", i ? ":" : "", aux->keyid->data[i]); | 0 | ||||||
53 | BIO_write(out, "\n", 1); | - | ||||||
54 | } never executed: end of block | 0 | ||||||
55 | return never executed: 1;return 1; never executed: return 1; | 0 | ||||||
56 | } | - | ||||||
Switch to Source code | Preprocessed file |