| Line | Source | Count |
| 1 | static ENGINE *engine_list_head = | - |
| 2 | ((void *)0) | - |
| 3 | ; | - |
| 4 | static ENGINE *engine_list_tail = | - |
| 5 | ((void *)0) | - |
| 6 | ; | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | static void engine_list_cleanup(void) | - |
| 15 | { | - |
| 16 | ENGINE *iterator = engine_list_head; | - |
| 17 | | - |
| 18 | while (iterator != | TRUE | evaluated 2327 times by 1 test | | FALSE | evaluated 1963 times by 1 test |
| 1963-2327 |
| 19 | ((void *)0)| TRUE | evaluated 2327 times by 1 test | | FALSE | evaluated 1963 times by 1 test |
| 1963-2327 |
| 20 | ) { | - |
| 21 | ENGINE_remove(iterator); | - |
| 22 | iterator = engine_list_head; | - |
| 23 | }executed 2327 times by 1 test: end of block | 2327 |
| 24 | return;executed 1963 times by 1 test: return; | 1963 |
| 25 | } | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | static int engine_list_add(ENGINE *e) | - |
| 32 | { | - |
| 33 | int conflict = 0; | - |
| 34 | ENGINE *iterator = | - |
| 35 | ((void *)0) | - |
| 36 | ; | - |
| 37 | | - |
| 38 | if (e == | TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 39 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 40 | ) { | - |
| 41 | ERR_put_error(38,(120),((3|64)),__FILE__,54); | - |
| 42 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 43 | } | - |
| 44 | iterator = engine_list_head; | - |
| 45 | while (iterator| TRUE | evaluated 131188 times by 1 test | | FALSE | evaluated 2844 times by 1 test |
&& !conflict| TRUE | evaluated 131187 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1-131188 |
| 46 | conflict = ( | - |
| 47 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( | - |
| 48 | iterator->id | - |
| 49 | ) && __builtin_constant_p ( | - |
| 50 | e->id | - |
| 51 | ) && (__s1_len = __builtin_strlen ( | - |
| 52 | iterator->id | - |
| 53 | ), __s2_len = __builtin_strlen ( | - |
| 54 | e->id | - |
| 55 | ), (!((size_t)(const void *)(( | - |
| 56 | iterator->id | - |
| 57 | ) + 1) - (size_t)(const void *)( | - |
| 58 | iterator->id | - |
| 59 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(( | - |
| 60 | e->id | - |
| 61 | ) + 1) - (size_t)(const void *)( | - |
| 62 | e->id | - |
| 63 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp ( | - |
| 64 | iterator->id | - |
| 65 | , | - |
| 66 | e->id | - |
| 67 | ) : (__builtin_constant_p ( | - |
| 68 | iterator->id | - |
| 69 | ) && ((size_t)(const void *)(( | - |
| 70 | iterator->id | - |
| 71 | ) + 1) - (size_t)(const void *)( | - |
| 72 | iterator->id | - |
| 73 | ) == 1) && (__s1_len = __builtin_strlen ( | - |
| 74 | iterator->id | - |
| 75 | ), __s1_len < 4) ? (__builtin_constant_p ( | - |
| 76 | e->id | - |
| 77 | ) && ((size_t)(const void *)(( | - |
| 78 | e->id | - |
| 79 | ) + 1) - (size_t)(const void *)( | - |
| 80 | e->id | - |
| 81 | ) == 1) ? __builtin_strcmp ( | - |
| 82 | iterator->id | - |
| 83 | , | - |
| 84 | e->id | - |
| 85 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - |
| 86 | e->id | - |
| 87 | ); int __result = (((const unsigned char *) (const char *) ( | - |
| 88 | iterator->id | - |
| 89 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
| 90 | iterator->id | - |
| 91 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
| 92 | iterator->id | - |
| 93 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( iterator->id ))[3] - __s2[3]); | 0 |
| 94 | iterator->id never executed: __result = (((const unsigned char *) (const char *) ( iterator->id ))[3] - __s2[3]); | 0 |
| 95 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( iterator->id ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p ( | 0 |
| 96 | e->id | - |
| 97 | ) && ((size_t)(const void *)(( | - |
| 98 | e->id | - |
| 99 | ) + 1) - (size_t)(const void *)( | - |
| 100 | e->id | - |
| 101 | ) == 1) && (__s2_len = __builtin_strlen ( | - |
| 102 | e->id | - |
| 103 | ), __s2_len < 4) ? (__builtin_constant_p ( | - |
| 104 | iterator->id | - |
| 105 | ) && ((size_t)(const void *)(( | - |
| 106 | iterator->id | - |
| 107 | ) + 1) - (size_t)(const void *)( | - |
| 108 | iterator->id | - |
| 109 | ) == 1) ? __builtin_strcmp ( | - |
| 110 | iterator->id | - |
| 111 | , | - |
| 112 | e->id | - |
| 113 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - |
| 114 | iterator->id | - |
| 115 | ); int __result = (((const unsigned char *) (const char *) ( | - |
| 116 | e->id | - |
| 117 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
| 118 | e->id | - |
| 119 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
| 120 | e->id | - |
| 121 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( e->id ))[3] - __s2[3]); | 0 |
| 122 | e->id never executed: __result = (((const unsigned char *) (const char *) ( e->id ))[3] - __s2[3]); | 0 |
| 123 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( e->id ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp ( | 0 |
| 124 | iterator->id | - |
| 125 | , | - |
| 126 | e->id | - |
| 127 | )))); }) | - |
| 128 | == 0); | - |
| 129 | iterator = iterator->next; | - |
| 130 | }executed 131187 times by 1 test: end of block | 131187 |
| 131 | if (conflict| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2844 times by 1 test |
) { | 1-2844 |
| 132 | ERR_put_error(38,(120),(103),__FILE__,63); | - |
| 133 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
| 134 | } | - |
| 135 | if (engine_list_head == | TRUE | evaluated 1963 times by 1 test | | FALSE | evaluated 881 times by 1 test |
| 881-1963 |
| 136 | ((void *)0)| TRUE | evaluated 1963 times by 1 test | | FALSE | evaluated 881 times by 1 test |
| 881-1963 |
| 137 | ) { | - |
| 138 | | - |
| 139 | if (engine_list_tail| TRUE | never evaluated | | FALSE | evaluated 1963 times by 1 test |
) { | 0-1963 |
| 140 | ERR_put_error(38,(120),(110),__FILE__,69); | - |
| 141 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 142 | } | - |
| 143 | engine_list_head = e; | - |
| 144 | e->prev = | - |
| 145 | ((void *)0) | - |
| 146 | ; | - |
| 147 | | - |
| 148 | | - |
| 149 | | - |
| 150 | engine_cleanup_add_last(engine_list_cleanup); | - |
| 151 | }executed 1963 times by 1 test: end of block else { | 1963 |
| 152 | | - |
| 153 | if ((| TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
engine_list_tail == | TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
| 0-881 |
| 154 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
| 0-881 |
| 155 | )| TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
engine_list_tail->next != | TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
| 0-881 |
| 156 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
| 0-881 |
| 157 | )| TRUE | never evaluated | | FALSE | evaluated 881 times by 1 test |
) { | 0-881 |
| 158 | ERR_put_error(38,(120),(110),__FILE__,81); | - |
| 159 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 160 | } | - |
| 161 | engine_list_tail->next = e; | - |
| 162 | e->prev = engine_list_tail; | - |
| 163 | }executed 881 times by 1 test: end of block | 881 |
| 164 | | - |
| 165 | | - |
| 166 | | - |
| 167 | e->struct_ref++; | - |
| 168 | ; | - |
| 169 | | - |
| 170 | engine_list_tail = e; | - |
| 171 | e->next = | - |
| 172 | ((void *)0) | - |
| 173 | ; | - |
| 174 | returnexecuted 2844 times by 1 test: return 1; 1;executed 2844 times by 1 test: return 1; | 2844 |
| 175 | } | - |
| 176 | | - |
| 177 | static int engine_list_remove(ENGINE *e) | - |
| 178 | { | - |
| 179 | ENGINE *iterator; | - |
| 180 | | - |
| 181 | if (e == | TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 182 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 183 | ) { | - |
| 184 | ERR_put_error(38,(121),((3|64)),__FILE__,103); | - |
| 185 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 186 | } | - |
| 187 | | - |
| 188 | iterator = engine_list_head; | - |
| 189 | while (iterator| TRUE | evaluated 2847 times by 1 test | | FALSE | evaluated 1 time by 1 test |
&& (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 2844 times by 1 test |
iterator != e)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 2844 times by 1 test |
) | 1-2847 |
| 190 | iterator = iterator->next;executed 3 times by 1 test: iterator = iterator->next; | 3 |
| 191 | if (iterator == | TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2844 times by 1 test |
| 1-2844 |
| 192 | ((void *)0)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2844 times by 1 test |
| 1-2844 |
| 193 | ) { | - |
| 194 | ERR_put_error(38,(121),(105),__FILE__,112) | - |
| 195 | ; | - |
| 196 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
| 197 | } | - |
| 198 | | - |
| 199 | if (e->next| TRUE | evaluated 880 times by 1 test | | FALSE | evaluated 1964 times by 1 test |
) | 880-1964 |
| 200 | e->next->prev = e->prev;executed 880 times by 1 test: e->next->prev = e->prev; | 880 |
| 201 | if (e->prev| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2843 times by 1 test |
) | 1-2843 |
| 202 | e->prev->next = e->next;executed 1 time by 1 test: e->prev->next = e->next; | 1 |
| 203 | | - |
| 204 | if (engine_list_head == e| TRUE | evaluated 2843 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1-2843 |
| 205 | engine_list_head = e->next;executed 2843 times by 1 test: engine_list_head = e->next; | 2843 |
| 206 | if (engine_list_tail == e| TRUE | evaluated 1964 times by 1 test | | FALSE | evaluated 880 times by 1 test |
) | 880-1964 |
| 207 | engine_list_tail = e->prev;executed 1964 times by 1 test: engine_list_tail = e->prev; | 1964 |
| 208 | engine_free_util(e, 0); | - |
| 209 | returnexecuted 2844 times by 1 test: return 1; 1;executed 2844 times by 1 test: return 1; | 2844 |
| 210 | } | - |
| 211 | | - |
| 212 | | - |
| 213 | ENGINE *ENGINE_get_first(void) | - |
| 214 | { | - |
| 215 | ENGINE *ret; | - |
| 216 | | - |
| 217 | if (!(CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_)| TRUE | evaluated 4272 times by 1 test | | FALSE | never evaluated |
? do_engine_lock_init_ossl_ret_ : 0)| TRUE | never evaluated | | FALSE | evaluated 4272 times by 1 test |
) { | 0-4272 |
| 218 | ERR_put_error(38,(195),((1|64)),__FILE__,135); | - |
| 219 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 220 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 221 | ; never executed: return ((void *)0) ; | 0 |
| 222 | } | - |
| 223 | | - |
| 224 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 225 | ret = engine_list_head; | - |
| 226 | if (ret| TRUE | evaluated 4266 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) { | 6-4266 |
| 227 | ret->struct_ref++; | - |
| 228 | ; | - |
| 229 | }executed 4266 times by 1 test: end of block | 4266 |
| 230 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 231 | returnexecuted 4272 times by 1 test: return ret; ret;executed 4272 times by 1 test: return ret; | 4272 |
| 232 | } | - |
| 233 | | - |
| 234 | ENGINE *ENGINE_get_last(void) | - |
| 235 | { | - |
| 236 | ENGINE *ret; | - |
| 237 | | - |
| 238 | if (!(CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_)| TRUE | never evaluated | | FALSE | never evaluated |
? do_engine_lock_init_ossl_ret_ : 0)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 239 | ERR_put_error(38,(196),((1|64)),__FILE__,154); | - |
| 240 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 241 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 242 | ; never executed: return ((void *)0) ; | 0 |
| 243 | } | - |
| 244 | | - |
| 245 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 246 | ret = engine_list_tail; | - |
| 247 | if (ret| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 248 | ret->struct_ref++; | - |
| 249 | ; | - |
| 250 | } never executed: end of block | 0 |
| 251 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 252 | return never executed: return ret; ret;never executed: return ret; | 0 |
| 253 | } | - |
| 254 | | - |
| 255 | | - |
| 256 | ENGINE *ENGINE_get_next(ENGINE *e) | - |
| 257 | { | - |
| 258 | ENGINE *ret = | - |
| 259 | ((void *)0) | - |
| 260 | ; | - |
| 261 | if (e == | TRUE | never evaluated | | FALSE | evaluated 3755 times by 1 test |
| 0-3755 |
| 262 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 3755 times by 1 test |
| 0-3755 |
| 263 | ) { | - |
| 264 | ERR_put_error(38,(115),((3|64)),__FILE__,173); | - |
| 265 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 266 | } | - |
| 267 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 268 | ret = e->next; | - |
| 269 | if (ret| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 3753 times by 1 test |
) { | 2-3753 |
| 270 | | - |
| 271 | ret->struct_ref++; | - |
| 272 | ; | - |
| 273 | }executed 2 times by 1 test: end of block | 2 |
| 274 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 275 | | - |
| 276 | ENGINE_free(e); | - |
| 277 | returnexecuted 3755 times by 1 test: return ret; ret;executed 3755 times by 1 test: return ret; | 3755 |
| 278 | } | - |
| 279 | | - |
| 280 | ENGINE *ENGINE_get_prev(ENGINE *e) | - |
| 281 | { | - |
| 282 | ENGINE *ret = | - |
| 283 | ((void *)0) | - |
| 284 | ; | - |
| 285 | if (e == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 286 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 287 | ) { | - |
| 288 | ERR_put_error(38,(116),((3|64)),__FILE__,193); | - |
| 289 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 290 | } | - |
| 291 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 292 | ret = e->prev; | - |
| 293 | if (ret| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 294 | | - |
| 295 | ret->struct_ref++; | - |
| 296 | ; | - |
| 297 | } never executed: end of block | 0 |
| 298 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 299 | | - |
| 300 | ENGINE_free(e); | - |
| 301 | return never executed: return ret; ret;never executed: return ret; | 0 |
| 302 | } | - |
| 303 | | - |
| 304 | | - |
| 305 | int ENGINE_add(ENGINE *e) | - |
| 306 | { | - |
| 307 | int to_return = 1; | - |
| 308 | if (e == | TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 309 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 310 | ) { | - |
| 311 | ERR_put_error(38,(105),((3|64)),__FILE__,214); | - |
| 312 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 313 | } | - |
| 314 | if ((| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
e->id == | TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 315 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 316 | )| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
e->name == | TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 317 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 318 | )| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
) { | 0-2845 |
| 319 | ERR_put_error(38,(105),(108),__FILE__,218); | - |
| 320 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 321 | } | - |
| 322 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 323 | if (!engine_list_add(e)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2844 times by 1 test |
) { | 1-2844 |
| 324 | ERR_put_error(38,(105),(110),__FILE__,223); | - |
| 325 | to_return = 0; | - |
| 326 | }executed 1 time by 1 test: end of block | 1 |
| 327 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 328 | returnexecuted 2845 times by 1 test: return to_return; to_return;executed 2845 times by 1 test: return to_return; | 2845 |
| 329 | } | - |
| 330 | | - |
| 331 | | - |
| 332 | int ENGINE_remove(ENGINE *e) | - |
| 333 | { | - |
| 334 | int to_return = 1; | - |
| 335 | if (e == | TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 336 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 2845 times by 1 test |
| 0-2845 |
| 337 | ) { | - |
| 338 | ERR_put_error(38,(123),((3|64)),__FILE__,235); | - |
| 339 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 340 | } | - |
| 341 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 342 | if (!engine_list_remove(e)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2844 times by 1 test |
) { | 1-2844 |
| 343 | ERR_put_error(38,(123),(110),__FILE__,240); | - |
| 344 | to_return = 0; | - |
| 345 | }executed 1 time by 1 test: end of block | 1 |
| 346 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 347 | returnexecuted 2845 times by 1 test: return to_return; to_return;executed 2845 times by 1 test: return to_return; | 2845 |
| 348 | } | - |
| 349 | | - |
| 350 | static void engine_cpy(ENGINE *dest, const ENGINE *src) | - |
| 351 | { | - |
| 352 | dest->id = src->id; | - |
| 353 | dest->name = src->name; | - |
| 354 | | - |
| 355 | dest->rsa_meth = src->rsa_meth; | - |
| 356 | | - |
| 357 | | - |
| 358 | dest->dsa_meth = src->dsa_meth; | - |
| 359 | | - |
| 360 | | - |
| 361 | dest->dh_meth = src->dh_meth; | - |
| 362 | | - |
| 363 | | - |
| 364 | dest->ec_meth = src->ec_meth; | - |
| 365 | | - |
| 366 | dest->rand_meth = src->rand_meth; | - |
| 367 | dest->ciphers = src->ciphers; | - |
| 368 | dest->digests = src->digests; | - |
| 369 | dest->pkey_meths = src->pkey_meths; | - |
| 370 | dest->destroy = src->destroy; | - |
| 371 | dest->init = src->init; | - |
| 372 | dest->finish = src->finish; | - |
| 373 | dest->ctrl = src->ctrl; | - |
| 374 | dest->load_privkey = src->load_privkey; | - |
| 375 | dest->load_pubkey = src->load_pubkey; | - |
| 376 | dest->cmd_defns = src->cmd_defns; | - |
| 377 | dest->flags = src->flags; | - |
| 378 | }executed 368 times by 1 test: end of block | 368 |
| 379 | | - |
| 380 | ENGINE *ENGINE_by_id(const char *id) | - |
| 381 | { | - |
| 382 | ENGINE *iterator; | - |
| 383 | char *load_dir = | - |
| 384 | ((void *)0) | - |
| 385 | ; | - |
| 386 | if (id == | TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
| 0-736 |
| 387 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
| 0-736 |
| 388 | ) { | - |
| 389 | ERR_put_error(38,(106),((3|64)),__FILE__,282); | - |
| 390 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 391 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 392 | ; never executed: return ((void *)0) ; | 0 |
| 393 | } | - |
| 394 | if (!(CRYPTO_THREAD_run_once(&engine_lock_init, do_engine_lock_init_ossl_)| TRUE | evaluated 736 times by 1 test | | FALSE | never evaluated |
? do_engine_lock_init_ossl_ret_ : 0)| TRUE | never evaluated | | FALSE | evaluated 736 times by 1 test |
) { | 0-736 |
| 395 | ERR_put_error(38,(106),((1|64)),__FILE__,286); | - |
| 396 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 397 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 398 | ; never executed: return ((void *)0) ; | 0 |
| 399 | } | - |
| 400 | | - |
| 401 | CRYPTO_THREAD_write_lock(global_engine_lock); | - |
| 402 | iterator = engine_list_head; | - |
| 403 | while (iterator| TRUE | evaluated 736 times by 1 test | | FALSE | evaluated 368 times by 1 test |
&& (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368-736 |
| 404 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 405 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 406 | ) && __builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 407 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 408 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 409 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 410 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 411 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 412 | ), (!((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 413 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 414 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 415 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 416 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 417 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 418 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 419 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 420 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 421 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 422 | , | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 423 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 424 | ) : (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 425 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 426 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 427 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 428 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 429 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 430 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 431 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 432 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 433 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 434 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 435 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 436 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 437 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 438 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 439 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 440 | , | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 441 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 442 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 443 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 444 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 445 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 446 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 447 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 448 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 449 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 450 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( id ))[3] - __s2[3]); | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 451 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( id ))[3] - __s2[3]); | 0-368 |
| 452 | ))[3] - __s2[3]);| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( id ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 453 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 454 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 455 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 456 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 457 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 458 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 459 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 460 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 461 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 462 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 463 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 464 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 465 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 466 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 467 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 468 | , | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 469 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 470 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 471 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 472 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 473 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 474 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 475 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 476 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 477 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 478 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( iterator->id ))[3] - __s2[3]); | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 479 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( iterator->id ))[3] - __s2[3]); | 0-368 |
| 480 | ))[3] - __s2[3]);| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( iterator->id ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 481 | id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 482 | , | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 483 | iterator->id| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 484 | )))); }) | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 485 | != 0)| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
) | 368 |
| 486 | iterator = iterator->next;executed 368 times by 1 test: iterator = iterator->next; | 368 |
| 487 | if (iterator != | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 488 | ((void *)0)| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 489 | ) { | - |
| 490 | | - |
| 491 | | - |
| 492 | | - |
| 493 | | - |
| 494 | | - |
| 495 | if (iterator->flags & (int)0x0004| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
) { | 0-368 |
| 496 | ENGINE *cp = ENGINE_new(); | - |
| 497 | if (cp == | TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 498 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 499 | ) | - |
| 500 | iterator = never executed: iterator = ((void *)0) ; | 0 |
| 501 | ((void *)0) never executed: iterator = ((void *)0) ; | 0 |
| 502 | ; never executed: iterator = ((void *)0) ; | 0 |
| 503 | else { | - |
| 504 | engine_cpy(cp, iterator); | - |
| 505 | iterator = cp; | - |
| 506 | }executed 368 times by 1 test: end of block | 368 |
| 507 | } else { | - |
| 508 | iterator->struct_ref++; | - |
| 509 | ; | - |
| 510 | } never executed: end of block | 0 |
| 511 | } | - |
| 512 | CRYPTO_THREAD_unlock(global_engine_lock); | - |
| 513 | if (iterator != | TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 514 | ((void *)0)| TRUE | evaluated 368 times by 1 test | | FALSE | evaluated 368 times by 1 test |
| 368 |
| 515 | ) | - |
| 516 | returnexecuted 368 times by 1 test: return iterator; iterator;executed 368 times by 1 test: return iterator; | 368 |
| 517 | | - |
| 518 | | - |
| 519 | | - |
| 520 | if ( | - |
| 521 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 522 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 523 | ) && __builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 524 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 525 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 526 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 527 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 528 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 529 | ), (!((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 530 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 531 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 532 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 533 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 534 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 535 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 536 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 537 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 538 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 539 | , | TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 540 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 541 | ) : (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 542 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 543 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 544 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 545 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 546 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 547 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 548 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 549 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 550 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 551 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 552 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 553 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 554 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 555 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 556 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 557 | , | TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 558 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 559 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 560 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 561 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 562 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 563 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 564 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 565 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 566 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 567 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( id ))[3] - __s2[3]); | TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 568 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( id ))[3] - __s2[3]); | 0-368 |
| 569 | ))[3] - __s2[3]);| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( id ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 570 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 571 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 572 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 573 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 574 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 575 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 576 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 577 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 578 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 579 | ) && ((size_t)(const void *)((| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 580 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 581 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 582 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 583 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 584 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 585 | , | TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 586 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 587 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 588 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 589 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 590 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 591 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 592 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 593 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 594 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 595 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "dynamic" ))[3] - __s2[3]); | TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 596 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "dynamic" ))[3] - __s2[3]); | 0-368 |
| 597 | ))[3] - __s2[3]);| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "dynamic" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 598 | id| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 599 | , | TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 600 | "dynamic"| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 601 | )))); })| TRUE | evaluated 368 times by 1 test | | FALSE | never evaluated |
| 0-368 |
| 602 | ) { | - |
| 603 | if (OPENSSL_issetugid()| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 604 | || (| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
load_dir = getenv("OPENSSL_ENGINES")) == | TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 605 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 606 | ) | - |
| 607 | load_dir = "/usr/local/lib/engines-1.1"; never executed: load_dir = "/usr/local/lib/engines-1.1"; | 0 |
| 608 | iterator = ENGINE_by_id("dynamic"); | - |
| 609 | if (!iterator| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
|| !ENGINE_ctrl_cmd_string(iterator, "ID", id, 0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
|| | 0-368 |
| 610 | !ENGINE_ctrl_cmd_string(iterator, "DIR_LOAD", "2", 0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
|| | 0-368 |
| 611 | !ENGINE_ctrl_cmd_string(iterator, "DIR_ADD",| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 612 | load_dir, 0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
|| | 0-368 |
| 613 | !ENGINE_ctrl_cmd_string(iterator, "LIST_ADD", "1", 0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
|| | 0-368 |
| 614 | !ENGINE_ctrl_cmd_string(iterator, "LOAD", | TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 615 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
| 0-368 |
| 616 | , 0)| TRUE | never evaluated | | FALSE | evaluated 368 times by 1 test |
) | 0-368 |
| 617 | goto never executed: goto notfound; notfound;never executed: goto notfound; | 0 |
| 618 | returnexecuted 368 times by 1 test: return iterator; iterator;executed 368 times by 1 test: return iterator; | 368 |
| 619 | } | - |
| 620 | notfound: code before this statement never executed: notfound: | 0 |
| 621 | ENGINE_free(iterator); | - |
| 622 | ERR_put_error(38,(106),(116),__FILE__,335); | - |
| 623 | ERR_add_error_data(2, "id=", id); | - |
| 624 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 625 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 626 | ; never executed: return ((void *)0) ; | 0 |
| 627 | | - |
| 628 | } | - |
| 629 | | - |
| 630 | int ENGINE_up_ref(ENGINE *e) | - |
| 631 | { | - |
| 632 | int i; | - |
| 633 | if (e == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 634 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 635 | ) { | - |
| 636 | ERR_put_error(38,(190),((3|64)),__FILE__,345); | - |
| 637 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 638 | } | - |
| 639 | CRYPTO_UP_REF(&e->struct_ref, &i, global_engine_lock); | - |
| 640 | return never executed: return 1; 1;never executed: return 1; | 0 |
| 641 | } | - |
| | |