mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
Make SHA1 optional, implement SHA256 fingerprints
SHA256 is always compiled and only enable SHA1 when needed. Fingerprints are always SHA256: base64 format, md5 and sha1 are removed. dbrandom now uses sha256 its hash function.
This commit is contained in:
@@ -341,7 +341,7 @@ static void printpubkey(sign_key * key, int keytype) {
|
||||
err = base64_encode(buf_getptr(buf, len), len, base64key, &base64len);
|
||||
|
||||
if (err != CRYPT_OK) {
|
||||
fprintf(stderr, "base64 failed");
|
||||
dropbear_exit("base64 failed");
|
||||
}
|
||||
|
||||
typestring = signkey_name_from_type(keytype, NULL);
|
||||
|
||||
Reference in New Issue
Block a user