mirror of
https://github.com/curl/curl.git
synced 2026-06-12 06:54:15 +03:00
ssh: check md5 fingerprints case insensitively (regression)
Revert the change fromce8d09483ebut use the new function Reported-by: Kamil Dudka Bug:ce8d09483e (commitcomment-19666146)
This commit is contained in:
parent
a110a03b43
commit
50aded1cd4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 || strcmp(md5buffer, pubkey_md5)) {
|
||||
if(!fingerprint || !strcasecompare(md5buffer, pubkey_md5)) {
|
||||
if(fingerprint)
|
||||
failf(data,
|
||||
"Denied establishing ssh session: mismatch md5 fingerprint. "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue