diff options
author | 2015-06-19 06:32:43 +0000 | |
---|---|---|
committer | 2015-06-19 06:32:43 +0000 | |
commit | 4e014655d96c46f6c203d4e7550f6c44280c9309 (patch) | |
tree | 2711f7fb95d87c9196c1aeefe9e41b26783d6db4 /lib/libssl/src | |
parent | Add standard headers, C++ support to tls.h. (diff) | |
download | wireguard-openbsd-4e014655d96c46f6c203d4e7550f6c44280c9309.tar.xz wireguard-openbsd-4e014655d96c46f6c203d4e7550f6c44280c9309.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 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/crypto/engine/eng_list.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/engine/eng_list.c b/lib/libssl/src/crypto/engine/eng_list.c index 7f3cb355153..30f09adc736 100644 --- a/lib/libssl/src/crypto/engine/eng_list.c +++ b/lib/libssl/src/crypto/engine/eng_list.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eng_list.c,v 1.19 2015/06/19 06:05:11 bcook Exp $ */ +/* $OpenBSD: eng_list.c,v 1.20 2015/06/19 06:32:43 bcook Exp $ */ /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL * project 2000. */ @@ -380,8 +380,10 @@ ENGINE_by_id(const char *id) } CRYPTO_w_unlock(CRYPTO_LOCK_ENGINE); - if (iterator == NULL) + if (iterator == NULL) { ENGINEerr(ENGINE_F_ENGINE_BY_ID, ENGINE_R_NO_SUCH_ENGINE); + ERR_asprintf_error_data("id=%s", id); + } return iterator; } |