mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
CBC mode cleanup (#95)
* Fix CBC mode can't be fully disabled * Fix CBC mode can't be the only mode
This commit is contained in:
parent
d3d0d60076
commit
61267f8503
@ -184,12 +184,18 @@ algo_type sshciphers[] = {
|
||||
#if DROPBEAR_TWOFISH128
|
||||
{"twofish128-cbc", 0, &dropbear_twofish128, 1, &dropbear_mode_cbc},
|
||||
#endif
|
||||
#endif /* DROPBEAR_ENABLE_CBC_MODE */
|
||||
|
||||
#if DROPBEAR_3DES
|
||||
#if DROPBEAR_ENABLE_CTR_MODE
|
||||
{"3des-ctr", 0, &dropbear_3des, 1, &dropbear_mode_ctr},
|
||||
#endif
|
||||
#if DROPBEAR_3DES
|
||||
#if DROPBEAR_ENABLE_CBC_MODE
|
||||
{"3des-cbc", 0, &dropbear_3des, 1, &dropbear_mode_cbc},
|
||||
#endif
|
||||
#endif /* DROPBEAR_3DES */
|
||||
|
||||
#if DROPBEAR_ENABLE_CBC_MODE
|
||||
#if DROPBEAR_BLOWFISH
|
||||
{"blowfish-cbc", 0, &dropbear_blowfish, 1, &dropbear_mode_cbc},
|
||||
#endif
|
||||
|
@ -27,7 +27,7 @@
|
||||
#define LTC_DES
|
||||
#endif
|
||||
|
||||
#if DROPBEAR_ENABLE_CTR_MODE
|
||||
#if DROPBEAR_ENABLE_CBC_MODE
|
||||
#define LTC_CBC_MODE
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user