[Pkg-gnutls-commits] r1351 - in /packages/gnutls28/trunk/debian: changelog patches/30_correctly-set-the-odd-bits.patch patches/series

ametzler at users.alioth.debian.org ametzler at users.alioth.debian.org
Sat Dec 17 10:41:22 UTC 2011


Author: ametzler
Date: Sat Dec 17 10:41:21 2011
New Revision: 1351

URL: http://svn.debian.org/wsvn/pkg-gnutls/?sc=1&rev=1351
Log:
[30_correctly-set-the-odd-bits.patch] Post release fix from GIT head.

Added:
    packages/gnutls28/trunk/debian/patches/30_correctly-set-the-odd-bits.patch
Modified:
    packages/gnutls28/trunk/debian/changelog
    packages/gnutls28/trunk/debian/patches/series

Modified: packages/gnutls28/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls28/trunk/debian/changelog?rev=1351&op=diff
==============================================================================
--- packages/gnutls28/trunk/debian/changelog (original)
+++ packages/gnutls28/trunk/debian/changelog Sat Dec 17 10:41:21 2011
@@ -3,6 +3,7 @@
   * NOT RELEASED YET
   * [20_test-select.diff] Do not run gnulib test-select test anymore. The
     test fails on kfreebsd-i386, the gnutls library does not use select().
+  * [30_correctly-set-the-odd-bits.patch] Post release fix from GIT head.
 
  -- Andreas Metzler <ametzler at debian.org>  Wed, 14 Dec 2011 20:08:18 +0100
 

Added: packages/gnutls28/trunk/debian/patches/30_correctly-set-the-odd-bits.patch
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls28/trunk/debian/patches/30_correctly-set-the-odd-bits.patch?rev=1351&op=file
==============================================================================
--- packages/gnutls28/trunk/debian/patches/30_correctly-set-the-odd-bits.patch (added)
+++ packages/gnutls28/trunk/debian/patches/30_correctly-set-the-odd-bits.patch Sat Dec 17 10:41:21 2011
@@ -1,0 +1,34 @@
+From 7daf2300d81dbeeee870299ba3bf7d1ebe3a0d12 Mon Sep 17 00:00:00 2001
+From: Nikos Mavrogiannopoulos <nmav at gnutls.org>
+Date: Fri, 16 Dec 2011 05:02:45 +0100
+Subject: [PATCH] correctly set the odd bits.
+
+---
+ lib/nettle/mpi.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/nettle/mpi.c b/lib/nettle/mpi.c
+index 0ebdcf4..f1342ec 100644
+--- a/lib/nettle/mpi.c
++++ b/lib/nettle/mpi.c
+@@ -474,7 +474,7 @@ gen_group (mpz_t * prime, mpz_t * generator, unsigned int nbits, unsigned int *q
+ 
+       nettle_mpz_set_str_256_u (w, w_bytes, buffer);
+       /* always odd */
+-      mpz_setbit (q, 0);
++      mpz_setbit (w, 0);
+ 
+       ret = mpz_probab_prime_p (w, PRIME_CHECK_PARAM);
+       if (ret > 0)
+@@ -500,7 +500,7 @@ gen_group (mpz_t * prime, mpz_t * generator, unsigned int nbits, unsigned int *q
+ 
+       nettle_mpz_set_str_256_u (q, q_bytes, buffer);
+       /* always odd */
+-      mpz_setbit (w, 0);
++      mpz_setbit (q, 0);
+ 
+       ret = mpz_probab_prime_p (q, PRIME_CHECK_PARAM);
+       if (ret == 0)
+-- 
+1.7.2.5
+

Modified: packages/gnutls28/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls28/trunk/debian/patches/series?rev=1351&op=diff
==============================================================================
--- packages/gnutls28/trunk/debian/patches/series (original)
+++ packages/gnutls28/trunk/debian/patches/series Sat Dec 17 10:41:21 2011
@@ -1,2 +1,3 @@
 14_version_gettextcat.diff
 20_test-select.diff
+30_correctly-set-the-odd-bits.patch




More information about the Pkg-gnutls-commits mailing list