1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

SSH: check md5 fingerprint case sensitively

This commit is contained in:
Daniel Stenberg 2016-09-28 10:20:35 +02:00
parent b3ee26c5df
commit ce8d09483e

View File

@ -676,7 +676,7 @@ static CURLcode ssh_check_fingerprint(struct connectdata *conn)
* against a known fingerprint, if available. * against a known fingerprint, if available.
*/ */
if(pubkey_md5 && strlen(pubkey_md5) == 32) { if(pubkey_md5 && strlen(pubkey_md5) == 32) {
if(!fingerprint || !strequal(md5buffer, pubkey_md5)) { if(!fingerprint || strcmp(md5buffer, pubkey_md5)) {
if(fingerprint) if(fingerprint)
failf(data, failf(data,
"Denied establishing ssh session: mismatch md5 fingerprint. " "Denied establishing ssh session: mismatch md5 fingerprint. "