Blame SOURCES/mutt-1.9.0-ssl_ciphers.patch

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