Blame SOURCES/mutt-1.9.0-ssl_ciphers.patch

50ed20
diff -ur mutt-1.9.0.orig/init.h mutt-1.9.0/init.h
50ed20
--- mutt-1.9.0.orig/init.h	2017-09-04 16:48:21.409528002 +0200
50ed20
+++ mutt-1.9.0/init.h	2017-09-04 16:49:26.505093636 +0200
50ed20
@@ -3510,7 +3510,7 @@
50ed20
   */
50ed20
 #  endif /* defined HAVE_SSL_PARTIAL_CHAIN */
50ed20
 # endif /* defined USE_SSL_OPENSSL */
04e29a
-  { "ssl_ciphers", DT_STR, R_NONE, {.p=&SslCiphers}, {.p=0} },
04e29a
+  { "ssl_ciphers", DT_STR, R_NONE, {.p=&SslCiphers}, {.p="@SYSTEM"} },
50ed20
   /*
50ed20
   ** .pp
04e29a
   ** Contains a colon-separated list of ciphers to use when using SSL.
50ed20
diff -ur mutt-1.9.0.orig/mutt_ssl_gnutls.c mutt-1.9.0/mutt_ssl_gnutls.c
50ed20
--- mutt-1.9.0.orig/mutt_ssl_gnutls.c	2017-09-04 16:48:21.403528134 +0200
50ed20
+++ mutt-1.9.0/mutt_ssl_gnutls.c	2017-09-04 16:51:16.081679141 +0200
50ed20
@@ -286,6 +286,8 @@
50ed20
   else
04e29a
     mutt_buffer_strcpy (priority, "NORMAL");
50ed20
 
50ed20
+if (SslCiphers && strcmp(SslCiphers, "@SYSTEM"))
50ed20
+{
04e29a
   if (!option (OPTTLSV1_3))
50ed20
   {
50ed20
     nproto--;
50ed20
@@ -313,6 +315,7 @@
04e29a
     mutt_error (_("All available protocols for TLS/SSL connection disabled"));
04e29a
     goto cleanup;
50ed20
   }
50ed20
+}
50ed20
 
04e29a
   if ((err = gnutls_priority_set_direct (data->state, mutt_b2s (priority), NULL)) < 0)
50ed20
   {