ssh: check md5 fingerprints case insensitively (regression)
Revert the change fromce8d09483e
but use the new function Reported-by: Kamil Dudka Bug:ce8d09483e (commitcomment-19666146)
This commit is contained in:
Родитель
a110a03b43
Коммит
50aded1cd4
|
@ -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. "
|
||||
|
|
Загрузка…
Ссылка в новой задаче