diff --git a/opensshlib/cipher-3des1.c b/opensshlib/cipher-3des1.c index 790faa2..30bd6bb 100644 --- a/opensshlib/cipher-3des1.c +++ b/opensshlib/cipher-3des1.c @@ -26,6 +26,8 @@ #include "ssherr.h" +#ifdef WITH_SSH1 + /* * This is used by SSH1: * @@ -155,3 +157,5 @@ evp_ssh1_3des(void) EVP_CIPHER_meth_set_flags(ssh1_3des, EVP_CIPH_CBC_MODE | EVP_CIPH_VARIABLE_LENGTH); return ssh1_3des; } + +#endif /* WITH_SSH1 */ diff --git a/opensshlib/cipher-bf1.c b/opensshlib/cipher-bf1.c index 8e3aac3..97c7de6 100644 --- a/opensshlib/cipher-bf1.c +++ b/opensshlib/cipher-bf1.c @@ -20,7 +20,7 @@ #include "includes.h" -#ifdef WITH_OPENSSL +#if defined(WITH_OPENSSL) && defined(WITH_SSH1) #include @@ -99,4 +99,4 @@ evp_ssh1_bf(void) EVP_CIPHER_meth_set_do_cipher(ssh1_bf, bf_ssh1_do_cipher); return (ssh1_bf); } -#endif /* WITH_OPENSSL */ +#endif /* WITH_OPENSSL && WITH_SSH1 */