[openssh-commits] [openssh] branch master updated: bring back mlkem768x25519-sha256 stubs

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Jun 15 11:44:53 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 ebdaacf49 bring back mlkem768x25519-sha256 stubs
ebdaacf49 is described below

commit ebdaacf4907033af1cbf1fef593436081dcd67a7
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Mon Jun 15 11:43:52 2026 +1000

    bring back mlkem768x25519-sha256 stubs
    
    should fix C89 compile
---
 kexmlkem768x25519.c | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/kexmlkem768x25519.c b/kexmlkem768x25519.c
index 1a5d16c41..e2c2c0a86 100644
--- a/kexmlkem768x25519.c
+++ b/kexmlkem768x25519.c
@@ -25,8 +25,6 @@
 
 #include "includes.h"
 
-#ifdef USE_MLKEM768X25519
-
 #include <sys/types.h>
 
 #include <stdio.h>
@@ -45,6 +43,8 @@
 
 #include "crypto_api.h"
 
+#ifdef USE_MLKEM768X25519
+
 int
 kex_kem_mlkem768x25519_keypair(struct kex *kex)
 {
@@ -237,4 +237,25 @@ kex_kem_mlkem768x25519_dec(struct kex *kex,
 	sshbuf_free(buf);
 	return r;
 }
+#else /* USE_MLKEM768X25519 */
+int
+kex_kem_mlkem768x25519_keypair(struct kex *kex)
+{
+	return SSH_ERR_SIGN_ALG_UNSUPPORTED;
+}
+
+int
+kex_kem_mlkem768x25519_enc(struct kex *kex,
+   const struct sshbuf *client_blob, struct sshbuf **server_blobp,
+   struct sshbuf **shared_secretp)
+{
+	return SSH_ERR_SIGN_ALG_UNSUPPORTED;
+}
+
+int
+kex_kem_mlkem768x25519_dec(struct kex *kex,
+    const struct sshbuf *server_blob, struct sshbuf **shared_secretp)
+{
+	return SSH_ERR_SIGN_ALG_UNSUPPORTED;
+}
 #endif /* USE_MLKEM768X25519 */

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


More information about the openssh-commits mailing list