[openssh-commits] [openssh] branch master updated: repair build for libcrypto without ed25519 support

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Jul 26 14:28:19 AEST 2025


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 260309895 repair build for libcrypto without ed25519 support
260309895 is described below

commit 2603098959eff55cbe188c3dfcbe5302808a80fc
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Sat Jul 26 14:27:53 2025 +1000

    repair build for libcrypto without ed25519 support
---
 ssh-pkcs11.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index 34e430875..4ab1fa90e 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1212,7 +1212,9 @@ pkcs11_fetch_x509_pubkey(struct pkcs11_provider *p, CK_ULONG slotidx,
 	int			 i, success = -1;
 	const u_char		*cp;
 	char			*subject = NULL;
+#ifdef OPENSSL_HAS_ED25519
 	size_t			len;
+#endif /* OPENSSL_HAS_ED25519 */
 #ifdef OPENSSL_HAS_ECC
 	int			r, nid;
 #endif
@@ -1350,6 +1352,7 @@ pkcs11_fetch_x509_pubkey(struct pkcs11_provider *p, CK_ULONG slotidx,
 		/* success */
 		success = 0;
 #endif /* OPENSSL_HAS_ECC */
+#ifdef OPENSSL_HAS_ED25519
 	} else if (EVP_PKEY_base_id(evp) == EVP_PKEY_ED25519) {
 		if ((key = sshkey_new(KEY_UNSPEC)) == NULL ||
 		    (key->ed25519_pk = calloc(1, ED25519_PK_SZ)) == NULL)
@@ -1370,6 +1373,7 @@ pkcs11_fetch_x509_pubkey(struct pkcs11_provider *p, CK_ULONG slotidx,
 			goto out;
 		/* success */
 		success = 0;
+#endif /* OPENSSL_HAS_ED25519 */
 	} else {
 		error("unknown certificate key type");
 		goto out;

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list