summaryrefslogtreecommitdiff
path: root/ssh-pkcs11.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-01-21 02:05:38 +0000
committerDamien Miller <djm@mindrot.org>2019-01-21 13:07:04 +1100
commit662be40c62339ab645113c930ce689466f028938 (patch)
tree79efa36e956fa50cf52d1094675bf1acdae2ed82 /ssh-pkcs11.c
parentce46c3a077dfb4c531ccffcfff03f37775725b75 (diff)
downloadopenssh-git-662be40c62339ab645113c930ce689466f028938.tar.gz
upstream: always print the caller's error message in ossl_error(),
even when there are no libcrypto errors to report. OpenBSD-Commit-ID: 09ebaa8f706e0eccedd209775baa1eee2ada806a
Diffstat (limited to 'ssh-pkcs11.c')
-rw-r--r--ssh-pkcs11.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index c4fe6094..de65144f 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11.c,v 1.38 2019/01/21 02:01:03 djm Exp $ */
+/* $OpenBSD: ssh-pkcs11.c,v 1.39 2019/01/21 02:05:38 djm Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
* Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@@ -84,8 +84,9 @@ ossl_error(const char *msg)
{
unsigned long e;
+ error("%s: %s", __func__, msg);
while ((e = ERR_get_error()) != 0)
- error("%s: %s: %.100s", __func__, msg,
+ error("%s: libcrypto error: %.100s", __func__,
ERR_error_string(e, NULL));
}
#endif /* HAVE_EC_KEY_METHOD_NEW */