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