mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
SSH: check md5 fingerprint case sensitively
This commit is contained in:
parent
b3ee26c5df
commit
ce8d09483e
@ -676,7 +676,7 @@ static CURLcode ssh_check_fingerprint(struct connectdata *conn)
|
||||
* against a known fingerprint, if available.
|
||||
*/
|
||||
if(pubkey_md5 && strlen(pubkey_md5) == 32) {
|
||||
if(!fingerprint || !strequal(md5buffer, pubkey_md5)) {
|
||||
if(!fingerprint || strcmp(md5buffer, pubkey_md5)) {
|
||||
if(fingerprint)
|
||||
failf(data,
|
||||
"Denied establishing ssh session: mismatch md5 fingerprint. "
|
||||
|
Loading…
Reference in New Issue
Block a user