[openssh-commits] [openssh] branch master updated: Provide better error for non-supported private keys
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Jul 1 17:25:12 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new 0a75a95d5 Provide better error for non-supported private keys
0a75a95d5 is described below
commit 0a75a95d582028c5ce91f524c20365df9f2515f2
Author: Zoltan Fridrich <zfridric at redhat.com>
AuthorDate: Wed Apr 16 15:11:59 2025 +0200
Provide better error for non-supported private keys
Signed-off-by: Zoltan Fridrich <zfridric at redhat.com>
---
sshkey.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sshkey.c b/sshkey.c
index 9967ff539..7f389daa9 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -3464,6 +3464,9 @@ translate_libcrypto_error(unsigned long pem_err)
return SSH_ERR_LIBCRYPTO_ERROR;
}
case ERR_LIB_ASN1:
+#ifdef ERR_LIB_OSSL_DECODER
+ case ERR_LIB_OSSL_DECODER:
+#endif
return SSH_ERR_INVALID_FORMAT;
}
return SSH_ERR_LIBCRYPTO_ERROR;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list