aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2014-12-08 20:57:40 +0100
committerLars Magne Ingebrigtsen2014-12-08 20:57:49 +0100
commite0e2f363e86f8581191640324296fdebd2520d7c (patch)
treeb704784901d70a909c0c42470a9a9ac630f37927
parent28057ef3b598529cb15afcee57ef16ef6aa3bf2f (diff)
downloademacs-e0e2f363e86f8581191640324296fdebd2520d7c.tar.gz
emacs-e0e2f363e86f8581191640324296fdebd2520d7c.zip
Fatal GnuTLS errors are now silent by default
Fixes: debbugs:16253 (emacs_gnutls_handle_error): Fatal errors should be on level 1, so that they are not messaged by default.
-rw-r--r--etc/NEWS4
-rw-r--r--src/ChangeLog2
-rw-r--r--src/gnutls.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 2cd41dfc564..56036f8e533 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -310,6 +310,10 @@ plain text parts, if display of HTML email is possible; customize the
310** In sh-mode, you can now use `sh-shell' as a file-local variable to 310** In sh-mode, you can now use `sh-shell' as a file-local variable to
311specify the type of shell in use (bash, csh, etc). 311specify the type of shell in use (bash, csh, etc).
312 312
313** TLS
314---
315*** Fatal TLS errors are now silent by default.
316
313** URL 317** URL
314 318
315*** The URL package accepts now the protocols "ssh", "scp" and "rsync". 319*** The URL package accepts now the protocols "ssh", "scp" and "rsync".
diff --git a/src/ChangeLog b/src/ChangeLog
index 64d8052014f..314c653326b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -7,6 +7,8 @@
7 the connection. 7 the connection.
8 (gnutls_certificate_details): Put :signature-algorithm back again, 8 (gnutls_certificate_details): Put :signature-algorithm back again,
9 which was removed by mistake. 9 which was removed by mistake.
10 (emacs_gnutls_handle_error): Fatal errors should be on level 1, so
11 that they are not messaged by default (bug#16253).
10 12
11 * gnutls.c: Add Windows specs for gnutls_dh_get_prime_bits. 13 * gnutls.c: Add Windows specs for gnutls_dh_get_prime_bits.
12 14
diff --git a/src/gnutls.c b/src/gnutls.c
index 9ddc8e1e201..16f2f6c8f96 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -571,7 +571,7 @@ emacs_gnutls_handle_error (gnutls_session_t session, int err)
571 if (fn_gnutls_error_is_fatal (err)) 571 if (fn_gnutls_error_is_fatal (err))
572 { 572 {
573 ret = 0; 573 ret = 0;
574 GNUTLS_LOG2 (0, max_log_level, "fatal error:", str); 574 GNUTLS_LOG2 (1, max_log_level, "fatal error:", str);
575 } 575 }
576 else 576 else
577 { 577 {