diff options
Diffstat (limited to 'crypto_desc.c')
-rw-r--r-- | crypto_desc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto_desc.c b/crypto_desc.c index b370728..5e0e960 100644 --- a/crypto_desc.c +++ b/crypto_desc.c @@ -31,8 +31,9 @@ void crypto_init() { }; const struct ltc_hash_descriptor *reghashes[] = { - /* we need sha1 for hostkey stuff regardless */ +#if DROPBEAR_SHA1_HMAC &sha1_desc, +#endif #if DROPBEAR_MD5_HMAC &md5_desc, #endif @@ -46,9 +47,9 @@ void crypto_init() { &sha512_desc, #endif NULL - }; + }; int i; - + for (i = 0; regciphers[i] != NULL; i++) { if (register_cipher(regciphers[i]) == -1) { dropbear_exit("Error registering crypto"); |