mirror of
https://github.com/curl/curl.git
synced 2025-09-20 19:12:40 +03: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.
|
* 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. "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user