Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/asn1/a_digest.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | - | |||||||||||||
7 | - | |||||||||||||
8 | int ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data, | - | ||||||||||||
9 | unsigned char *md, unsigned int *len) | - | ||||||||||||
10 | { | - | ||||||||||||
11 | int i; | - | ||||||||||||
12 | unsigned char *str, *p; | - | ||||||||||||
13 | - | |||||||||||||
14 | i = i2d(data, | - | ||||||||||||
15 | ((void *)0) | - | ||||||||||||
16 | ); | - | ||||||||||||
17 | if ((
| 0 | ||||||||||||
18 | ((void *)0)
| 0 | ||||||||||||
19 | ) { | - | ||||||||||||
20 | ERR_put_error(13,(184),((1|64)),__FILE__,31); | - | ||||||||||||
21 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
22 | } | - | ||||||||||||
23 | p = str; | - | ||||||||||||
24 | i2d(data, &p); | - | ||||||||||||
25 | - | |||||||||||||
26 | if (!EVP_Digest(str, i, md, len, type,
| 0 | ||||||||||||
27 | ((void *)0)
| 0 | ||||||||||||
28 | )
| 0 | ||||||||||||
29 | CRYPTO_free(str, __FILE__, 38); | - | ||||||||||||
30 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
31 | } | - | ||||||||||||
32 | CRYPTO_free(str, __FILE__, 41); | - | ||||||||||||
33 | return never executed: 1;return 1; never executed: return 1; | 0 | ||||||||||||
34 | } | - | ||||||||||||
35 | - | |||||||||||||
36 | - | |||||||||||||
37 | - | |||||||||||||
38 | int ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *asn, | - | ||||||||||||
39 | unsigned char *md, unsigned int *len) | - | ||||||||||||
40 | { | - | ||||||||||||
41 | int i; | - | ||||||||||||
42 | unsigned char *str = | - | ||||||||||||
43 | ((void *)0) | - | ||||||||||||
44 | ; | - | ||||||||||||
45 | - | |||||||||||||
46 | i = ASN1_item_i2d(asn, &str, it); | - | ||||||||||||
47 | if (!str
| 0-46877 | ||||||||||||
48 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
49 | - | |||||||||||||
50 | if (!EVP_Digest(str, i, md, len, type,
| 0-46877 | ||||||||||||
51 | ((void *)0)
| 0-46877 | ||||||||||||
52 | )
| 0-46877 | ||||||||||||
53 | CRYPTO_free(str, __FILE__, 58); | - | ||||||||||||
54 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
55 | } | - | ||||||||||||
56 | CRYPTO_free(str, __FILE__, 61); | - | ||||||||||||
57 | return executed 46877 times by 1 test: 1;return 1; Executed by:
executed 46877 times by 1 test: return 1; Executed by:
| 46877 | ||||||||||||
58 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |