diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-04-19 09:53:14 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-04-19 13:19:35 +1000 |
commit | cec338967a666b7c8ad8b88175f2faeddf268116 (patch) | |
tree | 58621f1a29103297fc98cf4564fe043607a8b288 /cipher.c | |
parent | a575ddd58835759393d2dddd16ebe5abdb56485e (diff) |
Omit 3des-cbc if OpenSSL built without DES.
Patch from hongxu.jia at windriver.com, ok djm@
Diffstat (limited to 'cipher.c')
-rw-r--r-- | cipher.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -82,7 +82,9 @@ struct sshcipher { | |||
82 | 82 | ||
83 | static const struct sshcipher ciphers[] = { | 83 | static const struct sshcipher ciphers[] = { |
84 | #ifdef WITH_OPENSSL | 84 | #ifdef WITH_OPENSSL |
85 | #ifndef OPENSSL_NO_DES | ||
85 | { "3des-cbc", 8, 24, 0, 0, CFLAG_CBC, EVP_des_ede3_cbc }, | 86 | { "3des-cbc", 8, 24, 0, 0, CFLAG_CBC, EVP_des_ede3_cbc }, |
87 | #endif | ||
86 | { "aes128-cbc", 16, 16, 0, 0, CFLAG_CBC, EVP_aes_128_cbc }, | 88 | { "aes128-cbc", 16, 16, 0, 0, CFLAG_CBC, EVP_aes_128_cbc }, |
87 | { "aes192-cbc", 16, 24, 0, 0, CFLAG_CBC, EVP_aes_192_cbc }, | 89 | { "aes192-cbc", 16, 24, 0, 0, CFLAG_CBC, EVP_aes_192_cbc }, |
88 | { "aes256-cbc", 16, 32, 0, 0, CFLAG_CBC, EVP_aes_256_cbc }, | 90 | { "aes256-cbc", 16, 32, 0, 0, CFLAG_CBC, EVP_aes_256_cbc }, |