pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/wmbiff



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sat Oct  1 13:03:10 UTC 2016

Modified Files:
        pkgsrc/mail/wmbiff: distinfo
        pkgsrc/mail/wmbiff/patches: patch-ac

Log Message:
Fix GNU TLS fallout.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/mail/wmbiff/distinfo
cvs rdiff -u -r1.8 -r1.9 pkgsrc/mail/wmbiff/patches/patch-ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/wmbiff/distinfo
diff -u pkgsrc/mail/wmbiff/distinfo:1.17 pkgsrc/mail/wmbiff/distinfo:1.18
--- pkgsrc/mail/wmbiff/distinfo:1.17    Tue Nov  3 23:27:24 2015
+++ pkgsrc/mail/wmbiff/distinfo Sat Oct  1 13:03:10 2016
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2015/11/03 23:27:24 agc Exp $
+$NetBSD: distinfo,v 1.18 2016/10/01 13:03:10 joerg Exp $
 
 SHA1 (wmbiff-0.4.26.tar.gz) = cb2fc49bc741209c22d8a50f0f164e34c4a9332d
 RMD160 (wmbiff-0.4.26.tar.gz) = f5ccb17fb6846283cb7cde7996310a65600a8883
@@ -6,5 +6,5 @@ SHA512 (wmbiff-0.4.26.tar.gz) = e9fb1c9b
 Size (wmbiff-0.4.26.tar.gz) = 200237 bytes
 SHA1 (patch-aa) = 0a4607f2e5d6d3066d9b9994665b659dfbcc003b
 SHA1 (patch-ab) = d84f1c4333d7c192748f5170460563ae7fe0955d
-SHA1 (patch-ac) = 338ead6affeec348315c5cedd5cf413e7652abac
+SHA1 (patch-ac) = 8c7da1f23d72c3530d33f1faa141d39a7a8b84da
 SHA1 (patch-wmbiff_gnutls-common.c) = 645e2c2f463d20cf063f4a2ab0c6268daaa0cc85

Index: pkgsrc/mail/wmbiff/patches/patch-ac
diff -u pkgsrc/mail/wmbiff/patches/patch-ac:1.8 pkgsrc/mail/wmbiff/patches/patch-ac:1.9
--- pkgsrc/mail/wmbiff/patches/patch-ac:1.8     Thu Jan 17 15:55:31 2013
+++ pkgsrc/mail/wmbiff/patches/patch-ac Sat Oct  1 13:03:10 2016
@@ -1,4 +1,4 @@
-$NetBSD: patch-ac,v 1.8 2013/01/17 15:55:31 joerg Exp $
+$NetBSD: patch-ac,v 1.9 2016/10/01 13:03:10 joerg Exp $
 
 --- wmbiff/tlsComm.c.orig      2004-10-11 00:29:47.000000000 +0000
 +++ wmbiff/tlsComm.c
@@ -35,3 +35,33 @@ $NetBSD: patch-ac,v 1.8 2013/01/17 15:55
        }
  
        if (gnutls_x509_crt_init(&cert) < 0) {
+@@ -495,27 +497,9 @@ struct connection_state *initialize_gnut
+       }
+ 
+       assert(gnutls_init(&scs->tls_state, GNUTLS_CLIENT) == 0);
++      assert(gnutls_set_default_priority(&scs->tls_state) == 0);
++
+       {
+-              const int protocols[] = { GNUTLS_TLS1, GNUTLS_SSL3, 0 };
+-              const int ciphers[] =
+-                      { GNUTLS_CIPHER_RIJNDAEL_128_CBC, GNUTLS_CIPHER_3DES_CBC,
+-                      GNUTLS_CIPHER_RIJNDAEL_256_CBC,
+-                      GNUTLS_CIPHER_ARCFOUR, 0
+-              };
+-              const int compress[] = { GNUTLS_COMP_ZLIB, GNUTLS_COMP_NULL, 0 };
+-              const int key_exch[] = { GNUTLS_KX_RSA, GNUTLS_KX_DHE_DSS,
+-                      GNUTLS_KX_DHE_RSA, 0
+-              };
+-              /* mutt with gnutls doesn't use kx_srp or kx_anon_dh */
+-              const int mac[] = { GNUTLS_MAC_SHA, GNUTLS_MAC_MD5, 0 };
+-              assert(gnutls_protocol_set_priority(scs->tls_state, protocols) ==
+-                         0);
+-              assert(gnutls_cipher_set_priority(scs->tls_state, ciphers) == 0);
+-              assert(gnutls_compression_set_priority(scs->tls_state, compress) ==
+-                         0);
+-              assert(gnutls_kx_set_priority(scs->tls_state, key_exch) == 0);
+-              assert(gnutls_mac_set_priority(scs->tls_state, mac) == 0);
+-              /* no client private key */
+               if (gnutls_certificate_allocate_credentials(&scs->xcred) < 0) {
+                       DMA(DEBUG_ERROR, "gnutls memory error\n");
+                       exit(1);



Home | Main Index | Thread Index | Old Index