mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
signkey: remove !! from SHA1 digest (#130)
Remove the "!!" chars from message when printing the key-fingerprint, as it's confusing users. They have been added when switching from MD5, but SHA1 can be considered as standard today. Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
This commit is contained in:
parent
210a983349
commit
4c8c879b38
@ -568,7 +568,7 @@ static char * sign_key_sha1_fingerprint(const unsigned char* keyblob,
|
|||||||
buflen = 7 + 3*SHA1_HASH_SIZE;
|
buflen = 7 + 3*SHA1_HASH_SIZE;
|
||||||
ret = (char*)m_malloc(buflen);
|
ret = (char*)m_malloc(buflen);
|
||||||
|
|
||||||
strcpy(ret, "sha1!! ");
|
strcpy(ret, "sha1 ");
|
||||||
|
|
||||||
for (i = 0; i < SHA1_HASH_SIZE; i++) {
|
for (i = 0; i < SHA1_HASH_SIZE; i++) {
|
||||||
unsigned int pos = 7 + 3*i;
|
unsigned int pos = 7 + 3*i;
|
||||||
|
Loading…
Reference in New Issue
Block a user