Function: nsm-protocol-check--verify-cert
nsm-protocol-check--verify-cert is a byte-compiled function defined in
nsm.el.gz.
Signature
(nsm-protocol-check--verify-cert HOST PORT STATUS SETTINGS)
Documentation
Check for warnings from the certificate verification status.
This is the most basic security check for a TLS connection. If
certificate verification fails, it means the server's identity
cannot be verified by the credentials received.
Source Code
;; Defined in /usr/src/emacs/lisp/net/nsm.el.gz
(defun nsm-protocol-check--verify-cert (_host _port status settings)
"Check for warnings from the certificate verification status.
This is the most basic security check for a TLS connection. If
certificate verification fails, it means the server's identity
cannot be verified by the credentials received."
(let ((warnings (plist-get status :warnings)))
(and warnings
(not (nsm-warnings-ok-p status settings))
(mapconcat #'gnutls-peer-status-warning-describe warnings "\n"))))