From be31457f3071686b555a0f0b19e5dcf63d67fc27 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 3 Apr 2023 12:10:47 +0000 Subject: [PATCH] crypto: add `LIBSSH2_NO_MD5` to disable MD5 support Closes #927 --- src/crypto.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto.h b/src/crypto.h index 8462e8b8..890f209b 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -58,6 +58,10 @@ #include "mbedtls.h" #endif +#ifdef LIBSSH2_NO_MD5 +#undef LIBSSH2_MD5 +#endif + #define LIBSSH2_ED25519_KEY_LEN 32 #define LIBSSH2_ED25519_PRIVATE_KEY_LEN 64 #define LIBSSH2_ED25519_SIG_LEN 64