Commit b9e37f55 authored by Paul Eggert's avatar Paul Eggert

Port :safe-renegotiation test to GnuTLS < 3.6.3

Problem reported by Robert Pluim in
https://lists.gnu.org/r/emacs-devel/2019-09/msg00127.html
* src/gnutls.c (Fgnutls_peer_status): Simplify test for
whether the :safe-renegotiation result is needed, so that it
works all the way back to GnuTLS 2.12.2.
parent 2180852c
Pipeline #3060 failed with stage
in 55 minutes and 55 seconds
......@@ -1520,12 +1520,7 @@ returned as the :certificate entry. */)
#endif
/* Renegotiation Indication */
#ifdef GNUTLS_TLS1_3
bool older_proto = proto < GNUTLS_TLS1_3;
#else
bool older_proto = true;
#endif
if (older_proto)
if (proto <= GNUTLS_TLS1_2)
result = nconc2
(result, list2 (intern (":safe-renegotiation"),
gnutls_safe_renegotiation_status (state) ? Qt : Qnil));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment