Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/rsa/rsa_prn.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | int RSA_print_fp(FILE *fp, const RSA *x, int off) | - | ||||||||||||
4 | { | - | ||||||||||||
5 | BIO *b; | - | ||||||||||||
6 | int ret; | - | ||||||||||||
7 | - | |||||||||||||
8 | if ((
| 0 | ||||||||||||
9 | ((void *)0)
| 0 | ||||||||||||
10 | ) { | - | ||||||||||||
11 | ERR_put_error(4,(116),(7),__FILE__,22); | - | ||||||||||||
12 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
13 | } | - | ||||||||||||
14 | BIO_ctrl(b,106,0x00,(char *)(fp)); | - | ||||||||||||
15 | ret = RSA_print(b, x, off); | - | ||||||||||||
16 | BIO_free(b); | - | ||||||||||||
17 | return never executed: ret;return ret; never executed: return ret; | 0 | ||||||||||||
18 | } | - | ||||||||||||
19 | - | |||||||||||||
20 | - | |||||||||||||
21 | int RSA_print(BIO *bp, const RSA *x, int off) | - | ||||||||||||
22 | { | - | ||||||||||||
23 | EVP_PKEY *pk; | - | ||||||||||||
24 | int ret; | - | ||||||||||||
25 | pk = EVP_PKEY_new(); | - | ||||||||||||
26 | if (pk ==
| 0-10 | ||||||||||||
27 | ((void *)0)
| 0-10 | ||||||||||||
28 | || !EVP_PKEY_set1_RSA(pk, (RSA *)x)
| 0-10 | ||||||||||||
29 | return never executed: 0;return 0; never executed: return 0; | 0 | ||||||||||||
30 | ret = EVP_PKEY_print_private(bp, pk, off, | - | ||||||||||||
31 | ((void *)0) | - | ||||||||||||
32 | ); | - | ||||||||||||
33 | EVP_PKEY_free(pk); | - | ||||||||||||
34 | return executed 10 times by 1 test: ret;return ret; Executed by:
executed 10 times by 1 test: return ret; Executed by:
| 10 | ||||||||||||
35 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |