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 */
41f199
-  { "ssl_ciphers", DT_STR, R_NONE, UL &SslCiphers, UL 0 },
41f199
+  { "ssl_ciphers", DT_STR, R_NONE, UL &SslCiphers, UL "@SYSTEM" },
41f199
   /*
41f199
   ** .pp
41f199
   ** Contains a colon-seperated 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
41f199
     safe_strcat (priority, priority_size, "NORMAL");
41f199
 
41f199
+if (SslCiphers && strcmp(SslCiphers, "@SYSTEM"))
41f199
+{
41f199
   if (! option(OPTTLSV1_2))
41f199
   {
41f199
     nproto--;
41f199
@@ -313,6 +315,7 @@
41f199
     FREE (&priority);
41f199
     return -1;
41f199
   }
41f199
+}
41f199
 
41f199
   if ((err = gnutls_priority_set_direct (data->state, priority, NULL)) < 0)
41f199
   {