Function: nsm-protocol-check--same-cert

nsm-protocol-check--same-cert is a byte-compiled function defined in nsm.el.gz.

Signature

(nsm-protocol-check--same-cert HOST PORT STATUS SETTINGS)

Documentation

Check for certificate fingerprint mismatch.

If the fingerprints saved do not match the fingerprint of the certificate presented, the TLS session may be under a man-in-the-middle attack.

Source Code

;; Defined in /usr/src/emacs/lisp/net/nsm.el.gz
(defun nsm-protocol-check--same-cert (_host _port status settings)
  "Check for certificate fingerprint mismatch.

If the fingerprints saved do not match the fingerprint of the
certificate presented, the TLS session may be under a
man-in-the-middle attack."
  (and (not (nsm-fingerprint-ok-p status settings))
       (format-message
        "fingerprint has changed")))