eng_list.c (160815) | eng_list.c (215697) |
---|---|
1/* crypto/engine/eng_list.c */ 2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL 3 * project 2000. 4 */ 5/* ==================================================================== 6 * Copyright (c) 1999-2001 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 398 unchanged lines hidden (view full) --- 407 !ENGINE_ctrl_cmd_string(iterator, "DIR_LOAD", "2", 0) || 408 !ENGINE_ctrl_cmd_string(iterator, "DIR_ADD", 409 load_dir, 0) || 410 !ENGINE_ctrl_cmd_string(iterator, "LOAD", NULL, 0)) 411 goto notfound; 412 return iterator; 413 } 414notfound: | 1/* crypto/engine/eng_list.c */ 2/* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL 3 * project 2000. 4 */ 5/* ==================================================================== 6 * Copyright (c) 1999-2001 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 398 unchanged lines hidden (view full) --- 407 !ENGINE_ctrl_cmd_string(iterator, "DIR_LOAD", "2", 0) || 408 !ENGINE_ctrl_cmd_string(iterator, "DIR_ADD", 409 load_dir, 0) || 410 !ENGINE_ctrl_cmd_string(iterator, "LOAD", NULL, 0)) 411 goto notfound; 412 return iterator; 413 } 414notfound: |
415 ENGINE_free(iterator); |
|
415 ENGINEerr(ENGINE_F_ENGINE_BY_ID,ENGINE_R_NO_SUCH_ENGINE); 416 ERR_add_error_data(2, "id=", id); 417 return NULL; 418 /* EEK! Experimental code ends */ 419#endif 420 } 421 422int ENGINE_up_ref(ENGINE *e) 423 { 424 if (e == NULL) 425 { 426 ENGINEerr(ENGINE_F_ENGINE_UP_REF,ERR_R_PASSED_NULL_PARAMETER); 427 return 0; 428 } 429 CRYPTO_add(&e->struct_ref,1,CRYPTO_LOCK_ENGINE); 430 return 1; 431 } | 416 ENGINEerr(ENGINE_F_ENGINE_BY_ID,ENGINE_R_NO_SUCH_ENGINE); 417 ERR_add_error_data(2, "id=", id); 418 return NULL; 419 /* EEK! Experimental code ends */ 420#endif 421 } 422 423int ENGINE_up_ref(ENGINE *e) 424 { 425 if (e == NULL) 426 { 427 ENGINEerr(ENGINE_F_ENGINE_UP_REF,ERR_R_PASSED_NULL_PARAMETER); 428 return 0; 429 } 430 CRYPTO_add(&e->struct_ref,1,CRYPTO_LOCK_ENGINE); 431 return 1; 432 } |