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.
This commit is contained in:
Darren Tucker 2016-10-28 13:38:19 +11:00
parent 79d078e7a4
commit d924640d4c
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,8 @@
#include "includes.h"
#ifdef WITH_SSH1
#include <sys/types.h>
#include <string.h>
#include <openssl/evp.h>
@ -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 */

View File

@ -20,6 +20,7 @@
#include "includes.h"
#ifdef WITH_SSH1
#if defined(WITH_OPENSSL) && !defined(OPENSSL_NO_BF)
#include <sys/types.h>
@ -101,3 +102,5 @@ evp_ssh1_bf(void)
return (&ssh1_bf);
}
#endif /* defined(WITH_OPENSSL) && !defined(OPENSSL_NO_BF) */
#endif /* WITH_SSH1 */