diff options
| author | bcook <> | 2015-06-19 06:32:43 +0000 |
|---|---|---|
| committer | bcook <> | 2015-06-19 06:32:43 +0000 |
| commit | 433691f86112f1eea8eb1872e9c9b8b423437151 (patch) | |
| tree | c971bf833f41d2154f6bb0284baace27ba942217 /src | |
| parent | fbe5affcc923697c9d3682f503229a15b024db33 (diff) | |
| download | openbsd-433691f86112f1eea8eb1872e9c9b8b423437151.tar.gz openbsd-433691f86112f1eea8eb1872e9c9b8b423437151.tar.bz2 openbsd-433691f86112f1eea8eb1872e9c9b8b423437151.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 '')
| -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 | ||
