Skip to content

Commit fde4606

Browse files
add macro guard for no curve25519 build
1 parent ca912b0 commit fde4606

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfssh/internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ typedef struct HandshakeInfo {
685685
#ifndef WOLFSSH_NO_ECDH
686686
ecc_key ecc;
687687
#endif
688-
#ifndef WOLFSSH_NO_CURVE25519_SHA256
688+
#if !defined(WOLFSSH_NO_CURVE25519_SHA256) || \
689+
!defined(WOLFSSH_NO_CURVE25519_MLKEM768_SHA256)
689690
curve25519_key curve25519;
690691
#endif
691692
} privKey;

0 commit comments

Comments
 (0)