bring back mlkem768x25519-sha256 stubs

should fix C89 compile
This commit is contained in:
Damien Miller committed 2026-06-15 11:44:49 +10:00
1 parent b35a6a153f
commit ebdaacf490
1 file changed
+23 -2
+23 -2
View File
@@ -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 */