Lines Matching defs:fingerprint
655 const char *fingerprint = NULL;
662 /* The fingerprint points to static storage (!), don't free() it. */
663 fingerprint = libssh2_hostkey_hash(sshc->ssh_session,
673 fingerprint = (char *) hash;
677 if(!fingerprint) {
679 "Denied establishing ssh session: sha256 fingerprint "
686 /* The length of fingerprint is 32 bytes for SHA256.
688 if(Curl_base64_encode(fingerprint, 32, &fingerprint_b64,
696 failf(data, "sha256 fingerprint could not be encoded");
702 infof(data, "SSH SHA256 fingerprint: %s", fingerprint_b64);
710 * hostkey fingerprint */
715 /* Before we authenticate we check the hostkey's sha256 fingerprint
716 * against a known fingerprint, if available.
721 "Denied establishing ssh session: mismatch sha256 fingerprint. "
736 const char *fingerprint = NULL;
738 fingerprint = libssh2_hostkey_hash(sshc->ssh_session,
741 if(fingerprint) {
742 /* The fingerprint points to static storage (!), don't free() it. */
745 msnprintf(&md5buffer[i*2], 3, "%02x", (unsigned char) fingerprint[i]);
748 infof(data, "SSH MD5 fingerprint: %s", md5buffer);
753 if(!fingerprint || !strcasecompare(md5buffer, pubkey_md5)) {
754 if(fingerprint) {
756 "Denied establishing ssh session: mismatch md5 fingerprint. "
761 "Denied establishing ssh session: md5 fingerprint "
1020 * Before we authenticate we should check the hostkey's fingerprint