| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/engine/eng_init.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | - | |||||||||||||||||||
| 4 | - | |||||||||||||||||||
| 5 | int | - | ||||||||||||||||||
| 6 | engine_unlocked_init(ENGINE *e) | - | ||||||||||||||||||
| 7 | { | - | ||||||||||||||||||
| 8 | int to_return = 1; | - | ||||||||||||||||||
| 9 | - | |||||||||||||||||||
| 10 | if ((
| 0 | ||||||||||||||||||
| 11 | - | |||||||||||||||||||
| 12 | - | |||||||||||||||||||
| 13 | to_return = e->init(e); never executed: to_return = e->init(e); | 0 | ||||||||||||||||||
| 14 | if (to_return
| 0 | ||||||||||||||||||
| 15 | - | |||||||||||||||||||
| 16 | - | |||||||||||||||||||
| 17 | e->struct_ref++; | - | ||||||||||||||||||
| 18 | e->funct_ref++; | - | ||||||||||||||||||
| 19 | - | |||||||||||||||||||
| 20 | - | |||||||||||||||||||
| 21 | } never executed: end of block | 0 | ||||||||||||||||||
| 22 | return never executed: to_return;return to_return;never executed: return to_return; | 0 | ||||||||||||||||||
| 23 | } | - | ||||||||||||||||||
| 24 | - | |||||||||||||||||||
| 25 | - | |||||||||||||||||||
| 26 | - | |||||||||||||||||||
| 27 | int | - | ||||||||||||||||||
| 28 | engine_unlocked_finish(ENGINE *e, int unlock_for_handlers) | - | ||||||||||||||||||
| 29 | { | - | ||||||||||||||||||
| 30 | int to_return = 1; | - | ||||||||||||||||||
| 31 | - | |||||||||||||||||||
| 32 | - | |||||||||||||||||||
| 33 | - | |||||||||||||||||||
| 34 | - | |||||||||||||||||||
| 35 | - | |||||||||||||||||||
| 36 | - | |||||||||||||||||||
| 37 | - | |||||||||||||||||||
| 38 | e->funct_ref--; | - | ||||||||||||||||||
| 39 | ; | - | ||||||||||||||||||
| 40 | if ((
| 0 | ||||||||||||||||||
| 41 | if (unlock_for_handlers
| 0 | ||||||||||||||||||
| 42 | CRYPTO_lock(2|8,30,__FILE__,99); never executed: CRYPTO_lock(2|8,30,__FILE__,99); | 0 | ||||||||||||||||||
| 43 | to_return = e->finish(e); | - | ||||||||||||||||||
| 44 | if (unlock_for_handlers
| 0 | ||||||||||||||||||
| 45 | CRYPTO_lock(1|8,30,__FILE__,102); never executed: CRYPTO_lock(1|8,30,__FILE__,102); | 0 | ||||||||||||||||||
| 46 | if (!to_return
| 0 | ||||||||||||||||||
| 47 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||
| 48 | } never executed: end of block | 0 | ||||||||||||||||||
| 49 | - | |||||||||||||||||||
| 50 | - | |||||||||||||||||||
| 51 | if (!engine_free_util(e, 0)
| 0 | ||||||||||||||||||
| 52 | ERR_put_error(38,(0xfff),(106),__FILE__,109); | - | ||||||||||||||||||
| 53 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||
| 54 | } | - | ||||||||||||||||||
| 55 | return never executed: to_return;return to_return;never executed: return to_return; | 0 | ||||||||||||||||||
| 56 | } | - | ||||||||||||||||||
| 57 | - | |||||||||||||||||||
| 58 | - | |||||||||||||||||||
| 59 | int | - | ||||||||||||||||||
| 60 | ENGINE_init(ENGINE *e) | - | ||||||||||||||||||
| 61 | { | - | ||||||||||||||||||
| 62 | int ret; | - | ||||||||||||||||||
| 63 | - | |||||||||||||||||||
| 64 | if (e ==
| 0 | ||||||||||||||||||
| 65 | ((void *)0)
| 0 | ||||||||||||||||||
| 66 | ) { | - | ||||||||||||||||||
| 67 | ERR_put_error(38,(0xfff),((3|64)),__FILE__,122); | - | ||||||||||||||||||
| 68 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||
| 69 | } | - | ||||||||||||||||||
| 70 | CRYPTO_lock(1|8,30,__FILE__,125); | - | ||||||||||||||||||
| 71 | ret = engine_unlocked_init(e); | - | ||||||||||||||||||
| 72 | CRYPTO_lock(2|8,30,__FILE__,127); | - | ||||||||||||||||||
| 73 | return never executed: ret;return ret;never executed: return ret; | 0 | ||||||||||||||||||
| 74 | } | - | ||||||||||||||||||
| 75 | - | |||||||||||||||||||
| 76 | - | |||||||||||||||||||
| 77 | int | - | ||||||||||||||||||
| 78 | ENGINE_finish(ENGINE *e) | - | ||||||||||||||||||
| 79 | { | - | ||||||||||||||||||
| 80 | int to_return = 1; | - | ||||||||||||||||||
| 81 | - | |||||||||||||||||||
| 82 | if (e ==
| 0-477998 | ||||||||||||||||||
| 83 | ((void *)0)
| 0-477998 | ||||||||||||||||||
| 84 | ) | - | ||||||||||||||||||
| 85 | return executed 477998 times by 33 tests: 1;return 1;Executed by:
executed 477998 times by 33 tests: return 1;Executed by:
| 477998 | ||||||||||||||||||
| 86 | CRYPTO_lock(1|8,30,__FILE__,139); | - | ||||||||||||||||||
| 87 | to_return = engine_unlocked_finish(e, 1); | - | ||||||||||||||||||
| 88 | CRYPTO_lock(2|8,30,__FILE__,141); | - | ||||||||||||||||||
| 89 | if (!to_return
| 0 | ||||||||||||||||||
| 90 | ERR_put_error(38,(0xfff),(106),__FILE__,143); | - | ||||||||||||||||||
| 91 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||
| 92 | } | - | ||||||||||||||||||
| 93 | return never executed: to_return;return to_return;never executed: return to_return; | 0 | ||||||||||||||||||
| 94 | } | - | ||||||||||||||||||
| Switch to Source code | Preprocessed file |