Function: nsm-save-fingerprint-maybe
nsm-save-fingerprint-maybe is a byte-compiled function defined in
nsm.el.gz.
Signature
(nsm-save-fingerprint-maybe HOST PORT STATUS &rest _)
Documentation
Save the certificate's fingerprint.
In order to detect man-in-the-middle attacks, when
network-security-level is high, this function will save the
fingerprint of the certificate for check functions to check.
Source Code
;; Defined in /usr/src/emacs/lisp/net/nsm.el.gz
(defun nsm-save-fingerprint-maybe (host port status &rest _)
"Save the certificate's fingerprint.
In order to detect man-in-the-middle attacks, when
`network-security-level' is `high', this function will save the
fingerprint of the certificate for check functions to check."
(when (>= (nsm-level network-security-level) (nsm-level 'high))
;; Save the host fingerprint so that we can check it the
;; next time we connect.
(nsm-save-host host port status 'fingerprint nil 'always)))