diff options
author | bcook <> | 2015-06-19 06:32:43 +0000 |
---|---|---|
committer | bcook <> | 2015-06-19 06:32:43 +0000 |
commit | 80918513819fd0de40e68e2c83a3429fef4eedc9 (patch) | |
tree | c971bf833f41d2154f6bb0284baace27ba942217 /src | |
parent | 6fa9edbb1e8e7fb30f0939202e9fe1997b17524f (diff) | |
download | openbsd-80918513819fd0de40e68e2c83a3429fef4eedc9.tar.gz openbsd-80918513819fd0de40e68e2c83a3429fef4eedc9.tar.bz2 openbsd-80918513819fd0de40e68e2c83a3429fef4eedc9.zip |
Return the failing engine ID in the error stack.
Noted by doug@ in an earlier revision of the dynamic engine removal patch, but
I had forgotten to include it in the latest version.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/engine/eng_list.c | 6 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/engine/eng_list.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/libcrypto/engine/eng_list.c b/src/lib/libcrypto/engine/eng_list.c index 7f3cb35515..30f09adc73 100644 --- a/src/lib/libcrypto/engine/eng_list.c +++ b/src/lib/libcrypto/engine/eng_list.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: eng_list.c,v 1.19 2015/06/19 06:05:11 bcook Exp $ */ | 1 | /* $OpenBSD: eng_list.c,v 1.20 2015/06/19 06:32:43 bcook Exp $ */ |
2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL | 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -380,8 +380,10 @@ ENGINE_by_id(const char *id) | |||
380 | } | 380 | } |
381 | CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE); | 381 | CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE); |
382 | 382 | ||
383 | if (iterator == NULL) | 383 | if (iterator == NULL) { |
384 | ENGINEerr(ENGINE_F_ENGINE_BY_ID, ENGINE_R_NO_SUCH_ENGINE); | 384 | ENGINEerr(ENGINE_F_ENGINE_BY_ID, ENGINE_R_NO_SUCH_ENGINE); |
385 | ERR_asprintf_error_data("id=%s", id); | ||
386 | } | ||
385 | return iterator; | 387 | return iterator; |
386 | } | 388 | } |
387 | 389 | ||
diff --git a/src/lib/libssl/src/crypto/engine/eng_list.c b/src/lib/libssl/src/crypto/engine/eng_list.c index 7f3cb35515..30f09adc73 100644 --- a/src/lib/libssl/src/crypto/engine/eng_list.c +++ b/src/lib/libssl/src/crypto/engine/eng_list.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: eng_list.c,v 1.19 2015/06/19 06:05:11 bcook Exp $ */ | 1 | /* $OpenBSD: eng_list.c,v 1.20 2015/06/19 06:32:43 bcook Exp $ */ |
2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL | 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -380,8 +380,10 @@ ENGINE_by_id(const char *id) | |||
380 | } | 380 | } |
381 | CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE); | 381 | CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE); |
382 | 382 | ||
383 | if (iterator == NULL) | 383 | if (iterator == NULL) { |
384 | ENGINEerr(ENGINE_F_ENGINE_BY_ID, ENGINE_R_NO_SUCH_ENGINE); | 384 | ENGINEerr(ENGINE_F_ENGINE_BY_ID, ENGINE_R_NO_SUCH_ENGINE); |
385 | ERR_asprintf_error_data("id=%s", id); | ||
386 | } | ||
385 | return iterator; | 387 | return iterator; |
386 | } | 388 | } |
387 | 389 | ||