OpenCoverage

pk7_mime.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/pkcs7/pk7_mime.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags)-
6{-
7 return
executed 9 times by 1 test: return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, (&(PKCS7_it)));
Executed by:
  • libcrypto.so.1.1
i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags,
executed 9 times by 1 test: return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, (&(PKCS7_it)));
Executed by:
  • libcrypto.so.1.1
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:
  • libcrypto.so.1.1
9
9}-
10-
11int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags)-
12{-
13 return
never executed: return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)p7, in, flags, "PKCS7", (&(PKCS7_it)));
PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)p7, in, flags,
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-
17int 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
ctype_nid == 22Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
3-4
22 mdalgs = p7->d.sign->md_algs;
executed 3 times by 1 test: mdalgs = p7->d.sign->md_algs;
Executed by:
  • libcrypto.so.1.1
3
23 else-
24 mdalgs =
executed 4 times by 1 test: mdalgs = ((void *)0) ;
Executed by:
  • libcrypto.so.1.1
4
25 ((void *)0)
executed 4 times by 1 test: mdalgs = ((void *)0) ;
Executed by:
  • libcrypto.so.1.1
4
26 ;
executed 4 times by 1 test: mdalgs = ((void *)0) ;
Executed by:
  • libcrypto.so.1.1
4
27-
28 flags ^= 0x400;-
29-
30 return
executed 7 times by 1 test: return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, 0, mdalgs, (&(PKCS7_it)));
Executed by:
  • libcrypto.so.1.1
SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags,
executed 7 times by 1 test: return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, 0, mdalgs, (&(PKCS7_it)));
Executed by:
  • libcrypto.so.1.1
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:
  • libcrypto.so.1.1
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:
  • libcrypto.so.1.1
7
33}-
34-
35PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont)-
36{-
37 return
executed 7 times by 1 test: return (PKCS7 *)SMIME_read_ASN1(bio, bcont, (&(PKCS7_it)));
Executed by:
  • libcrypto.so.1.1
(PKCS7 *)SMIME_read_ASN1(bio, bcont, (&(PKCS7_it)));
executed 7 times by 1 test: return (PKCS7 *)SMIME_read_ASN1(bio, bcont, (&(PKCS7_it)));
Executed by:
  • libcrypto.so.1.1
7
38}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2