# HG changeset patch # User Matt Johnston # Date 1125647022 0 # Node ID c3dbd3e1a8ce5318e59a02478ffe7b37831b86bc # Parent b3cca2d9ee3c3a03b6f115cb0e8c7ee26394fbc1 Change the preferred algorithm order diff -r b3cca2d9ee3c -r c3dbd3e1a8ce common-algo.c --- a/common-algo.c Fri Sep 02 07:14:50 2005 +0000 +++ b/common-algo.c Fri Sep 02 07:43:42 2005 +0000 @@ -84,13 +84,6 @@ /* The following map ssh names to internal values */ algo_type sshciphers[] = { -#ifdef DROPBEAR_TWOFISH256_CBC - {"twofish256-cbc", 0, (void*)&dropbear_twofish256, 1}, - {"twofish-cbc", 0, (void*)&dropbear_twofish256, 1}, -#endif -#ifdef DROPBEAR_TWOFISH128_CBC - {"twofish128-cbc", 0, (void*)&dropbear_twofish128, 1}, -#endif #ifdef DROPBEAR_AES128_CBC {"aes128-cbc", 0, (void*)&dropbear_aes128, 1}, #endif @@ -100,6 +93,13 @@ #ifdef DROPBEAR_AES256_CBC {"aes256-cbc", 0, (void*)&dropbear_aes256, 1}, #endif +#ifdef DROPBEAR_TWOFISH256_CBC + {"twofish256-cbc", 0, (void*)&dropbear_twofish256, 1}, + {"twofish-cbc", 0, (void*)&dropbear_twofish256, 1}, +#endif +#ifdef DROPBEAR_TWOFISH128_CBC + {"twofish128-cbc", 0, (void*)&dropbear_twofish128, 1}, +#endif #ifdef DROPBEAR_BLOWFISH_CBC {"blowfish-cbc", 0, (void*)&dropbear_blowfish, 1}, #endif