From d924640d4c355d1b5eca1f4cc60146a9975dbbff Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 28 Oct 2016 13:38:19 +1100 Subject: [PATCH] Skip ssh1 specfic ciphers. cipher-3des1.c and cipher-bf1.c are specific to sshv1 so don't even try to compile them when Protocol 1 is not enabled. --- cipher-3des1.c | 3 +++ cipher-bf1.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cipher-3des1.c b/cipher-3des1.c index 6a0f1f37b..9fcc2785a 100644 --- a/cipher-3des1.c +++ b/cipher-3des1.c @@ -20,6 +20,8 @@ #include "includes.h" +#ifdef WITH_SSH1 + #include #include #include @@ -153,3 +155,4 @@ evp_ssh1_3des(void) ssh1_3des.flags = EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH; return &ssh1_3des; } +#endif /* WITH_SSH1 */ diff --git a/cipher-bf1.c b/cipher-bf1.c index 7d51f5198..c205b077c 100644 --- a/cipher-bf1.c +++ b/cipher-bf1.c @@ -20,6 +20,7 @@ #include "includes.h" +#ifdef WITH_SSH1 #if defined(WITH_OPENSSL) && !defined(OPENSSL_NO_BF) #include @@ -101,3 +102,5 @@ evp_ssh1_bf(void) return (&ssh1_bf); } #endif /* defined(WITH_OPENSSL) && !defined(OPENSSL_NO_BF) */ + +#endif /* WITH_SSH1 */