summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2015-06-19 06:32:44 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2015-06-19 06:32:44 +0000
commit3105a6f8081842a943083b95e2af6b6b2122bfbb (patch)
tree1fed8f229d3c8594758fc69c1808a1f8b6707a1e
parent3f0ece0b2d2d6f20a010998b41dbcf33a8f2de4c (diff)
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.
-rw-r--r--lib/libcrypto/engine/eng_list.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libcrypto/engine/eng_list.c b/lib/libcrypto/engine/eng_list.c
index 7f3cb355153..30f09adc736 100644
--- a/lib/libcrypto/engine/eng_list.c
+++ b/lib/libcrypto/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;
}