From 38015f4e46d8dbeea522dc7ee664522d4f47fc75 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 10 Apr 2023 09:21:30 +0000 Subject: [PATCH] crypto: add `LIBSSH2_NO_DSA` to disable DSA support See also: be31457f3071686b555a0f0b19e5dcf63d67fc27 Closes #942 --- src/crypto.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/crypto.h b/src/crypto.h index 503a825b..b5d6e0e6 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -63,6 +63,11 @@ #define LIBSSH2_MD5 0 #endif +#ifdef LIBSSH2_NO_DSA +#undef LIBSSH2_DSA +#define LIBSSH2_DSA 0 +#endif + #define LIBSSH2_ED25519_KEY_LEN 32 #define LIBSSH2_ED25519_PRIVATE_KEY_LEN 64 #define LIBSSH2_ED25519_SIG_LEN 64