# HG changeset patch # User Matt Johnston # Date 1422454447 -28800 # Node ID a37f8730eb0f28f5fc0d744d8e5a93c55b101134 # Parent 3a32727986ee9f287ea271c8dc574070c0ef930a Keep sha1 default diff -r 3a32727986ee -r a37f8730eb0f common-algo.c --- a/common-algo.c Wed Jan 28 22:05:24 2015 +0800 +++ b/common-algo.c Wed Jan 28 22:14:07 2015 +0800 @@ -177,18 +177,18 @@ }; algo_type sshhashes[] = { +#ifdef DROPBEAR_SHA1_96_HMAC + {"hmac-sha1-96", 0, &dropbear_sha1_96, 1, NULL}, +#endif +#ifdef DROPBEAR_SHA1_HMAC + {"hmac-sha1", 0, &dropbear_sha1, 1, NULL}, +#endif #ifdef DROPBEAR_SHA2_256_HMAC {"hmac-sha2-256", 0, &dropbear_sha2_256, 1, NULL}, #endif #ifdef DROPBEAR_SHA2_512_HMAC {"hmac-sha2-512", 0, &dropbear_sha2_512, 1, NULL}, #endif -#ifdef DROPBEAR_SHA1_96_HMAC - {"hmac-sha1-96", 0, &dropbear_sha1_96, 1, NULL}, -#endif -#ifdef DROPBEAR_SHA1_HMAC - {"hmac-sha1", 0, &dropbear_sha1, 1, NULL}, -#endif #ifdef DROPBEAR_MD5_HMAC {"hmac-md5", 0, (void*)&dropbear_md5, 1, NULL}, #endif