From: djm Date: Mon, 2 Sep 2024 12:18:35 +0000 (+0000) Subject: missing ifdef X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=61e673a836cd474224f42095ccf62712097df51f;p=openbsd missing ifdef --- diff --git a/usr.bin/ssh/sshd-session.c b/usr.bin/ssh/sshd-session.c index 172e02bc660..64502af3549 100644 --- a/usr.bin/ssh/sshd-session.c +++ b/usr.bin/ssh/sshd-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd-session.c,v 1.7 2024/09/02 12:13:56 djm Exp $ */ +/* $OpenBSD: sshd-session.c,v 1.8 2024/09/02 12:18:35 djm Exp $ */ /* * SSH2 implementation: * Privilege Separation: @@ -1334,7 +1334,9 @@ do_ssh2_kex(struct ssh *ssh) #endif kex->kex[KEX_C25519_SHA256] = kex_gen_server; kex->kex[KEX_KEM_SNTRUP761X25519_SHA512] = kex_gen_server; +#ifdef WITH_MLKEM kex->kex[KEX_KEM_MLKEM768X25519_SHA256] = kex_gen_server; +#endif kex->load_host_public_key=&get_hostkey_public_by_type; kex->load_host_private_key=&get_hostkey_private_by_type; kex->host_key_index=&get_hostkey_index;