summaryrefslogtreecommitdiff
path: root/lib/vssh
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2021-12-02 02:19:51 -0500
committerJay Satiro <raysatiro@yahoo.com>2021-12-02 02:19:51 -0500
commit3467e89bb97e6c87c77e82a046c59cb4b2d29a74 (patch)
tree2049407fa084a1d5a5cada964f1b54d4af3b7cb7 /lib/vssh
parent34294a65b29b19ed3699f7cdd7ff98bdf02b1d48 (diff)
downloadcurl-3467e89bb97e6c87c77e82a046c59cb4b2d29a74.tar.gz
libssh2: fix error message for sha256 mismatch
- On mismatch error show sha256 fingerprint in base64 format. Prior to this change the fingerprint was mistakenly printed in binary.
Diffstat (limited to 'lib/vssh')
-rw-r--r--lib/vssh/libssh2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index 7466840ff..eb2f53a0d 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -698,7 +698,7 @@ static CURLcode ssh_check_fingerprint(struct Curl_easy *data)
failf(data,
"Denied establishing ssh session: mismatch sha256 fingerprint. "
- "Remote %s is not equal to %s", fingerprint, pubkey_sha256);
+ "Remote %s is not equal to %s", fingerprint_b64, pubkey_sha256);
state(data, SSH_SESSION_FREE);
sshc->actualcode = CURLE_PEER_FAILED_VERIFICATION;
return sshc->actualcode;