Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/pkcs7/pk7_mime.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | int | - | ||||||
6 | i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) | - | ||||||
7 | { | - | ||||||
8 | return never executed: i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags,return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, &PKCS7_it); never executed: return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, &PKCS7_it); | 0 | ||||||
9 | &PKCS7_it); never executed: return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, &PKCS7_it); | 0 | ||||||
10 | } | - | ||||||
11 | - | |||||||
12 | int | - | ||||||
13 | PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) | - | ||||||
14 | { | - | ||||||
15 | return never executed: PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *) p7, in, flags,return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *) p7, in, flags, "PKCS7", &PKCS7_it); never executed: return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *) p7, in, flags, "PKCS7", &PKCS7_it); | 0 | ||||||
16 | "PKCS7", &PKCS7_it); never executed: return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *) p7, in, flags, "PKCS7", &PKCS7_it); | 0 | ||||||
17 | } | - | ||||||
18 | - | |||||||
19 | int | - | ||||||
20 | SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) | - | ||||||
21 | { | - | ||||||
22 | struct stack_st_X509_ALGOR *mdalgs; | - | ||||||
23 | int ctype_nid = OBJ_obj2nid(p7->type); | - | ||||||
24 | if (ctype_nid == 22
| 0 | ||||||
25 | mdalgs = p7->d.sign->md_algs; never executed: mdalgs = p7->d.sign->md_algs; | 0 | ||||||
26 | else | - | ||||||
27 | mdalgs = never executed: mdalgs = ((void *)0) ; | 0 | ||||||
28 | ((void *)0) never executed: mdalgs = ((void *)0) ; | 0 | ||||||
29 | ; never executed: mdalgs = ((void *)0) ; | 0 | ||||||
30 | - | |||||||
31 | flags ^= 0x400; | - | ||||||
32 | - | |||||||
33 | - | |||||||
34 | return never executed: SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags,return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, 0, mdalgs, &PKCS7_it); never executed: return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, 0, mdalgs, &PKCS7_it); | 0 | ||||||
35 | ctype_nid, 0, mdalgs, &PKCS7_it); never executed: return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, 0, mdalgs, &PKCS7_it); | 0 | ||||||
36 | } | - | ||||||
37 | - | |||||||
38 | PKCS7 * | - | ||||||
39 | SMIME_read_PKCS7(BIO *bio, BIO **bcont) | - | ||||||
40 | { | - | ||||||
41 | return never executed: (PKCS7 *)SMIME_read_ASN1(bio, bcont, &PKCS7_it);return (PKCS7 *)SMIME_read_ASN1(bio, bcont, &PKCS7_it); never executed: return (PKCS7 *)SMIME_read_ASN1(bio, bcont, &PKCS7_it); | 0 | ||||||
42 | } | - | ||||||
Switch to Source code | Preprocessed file |