[Pkg-gnutls-commits] r1131 - in /packages/gnutls26/branches/branch2.11.x/debian: changelog patches/20_gcrypt15compat.diff patches/series

ametzler at users.alioth.debian.org ametzler at users.alioth.debian.org
Mon Jul 25 18:08:39 UTC 2011


Author: ametzler
Date: Mon Jul 25 18:08:38 2011
New Revision: 1131

URL: http://svn.debian.org/wsvn/pkg-gnutls/?sc=1&rev=1131
Log:
[20_gcrypt15compat.diff] Fix compatibility with gcrypt 1.5.

Added:
    packages/gnutls26/branches/branch2.11.x/debian/patches/20_gcrypt15compat.diff
Modified:
    packages/gnutls26/branches/branch2.11.x/debian/changelog
    packages/gnutls26/branches/branch2.11.x/debian/patches/series

Modified: packages/gnutls26/branches/branch2.11.x/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls26/branches/branch2.11.x/debian/changelog?rev=1131&op=diff
==============================================================================
--- packages/gnutls26/branches/branch2.11.x/debian/changelog (original)
+++ packages/gnutls26/branches/branch2.11.x/debian/changelog Mon Jul 25 18:08:38 2011
@@ -1,10 +1,12 @@
-gnutls26 (2.12.7-3) UNRELEASED; urgency=low
-
-  * NOT RELEASED YET
-  [Simon Josefsson]
+gnutls26 (2.12.7-3) experimental; urgency=low
+
+  [ Simon Josefsson ]
   * Fix Debian BTS URL in --with-packager-bug-reports option.
 
- -- Andreas Metzler <ametzler at debian.org>  Sun, 26 Jun 2011 15:56:33 +0200
+  [ Andreas Metzler ]
+  * [20_gcrypt15compat.diff] Fix compatibility with gcrypt 1.5.
+
+ -- Andreas Metzler <ametzler at debian.org>  Mon, 25 Jul 2011 19:59:36 +0200
 
 gnutls26 (2.12.7-2) experimental; urgency=low
 

Added: packages/gnutls26/branches/branch2.11.x/debian/patches/20_gcrypt15compat.diff
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls26/branches/branch2.11.x/debian/patches/20_gcrypt15compat.diff?rev=1131&op=file
==============================================================================
--- packages/gnutls26/branches/branch2.11.x/debian/patches/20_gcrypt15compat.diff (added)
+++ packages/gnutls26/branches/branch2.11.x/debian/patches/20_gcrypt15compat.diff Mon Jul 25 18:08:38 2011
@@ -1,0 +1,151 @@
+Description: gcrypt: replace occurences of gcry_sexp_nth_mpi (..., 0)
+ with gcry_sexp_nth_mpi (..., GCRYMPI_FMT_USG) to fix errors with gcrypt 1.5.0
+Author: Andreas Metzler <ametzler at debian.org>
+Forwarded: http://lists.gnu.org/archive/html/gnutls-devel/2011-07/msg00020.html
+
+--- gnutls26-2.12.7.orig/lib/gcrypt/pk.c
++++ gnutls26-2.12.7/lib/gcrypt/pk.c
+@@ -112,7 +112,7 @@ _wrap_gcry_pk_encrypt (gnutls_pk_algorit
+       goto cleanup;
+     }
+ 
+-  res = gcry_sexp_nth_mpi (list, 1, 0);
++  res = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+   if (res == NULL)
+     {
+@@ -202,7 +202,7 @@ _wrap_gcry_pk_decrypt (gnutls_pk_algorit
+       goto cleanup;
+     }
+ 
+-  res = gcry_sexp_nth_mpi (s_plain, 0, 0);
++  res = gcry_sexp_nth_mpi (s_plain, 0, GCRYMPI_FMT_USG);
+   if (res == NULL)
+     {
+       gnutls_assert ();
+@@ -327,7 +327,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_
+             goto cleanup;
+           }
+ 
+-        res[0] = gcry_sexp_nth_mpi (list, 1, 0);
++        res[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+         gcry_sexp_release (list);
+ 
+         list = gcry_sexp_find_token (s_sig, "s", 0);
+@@ -338,7 +338,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_
+             goto cleanup;
+           }
+ 
+-        res[1] = gcry_sexp_nth_mpi (list, 1, 0);
++        res[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+         gcry_sexp_release (list);
+ 
+         ret = _gnutls_encode_ber_rs (signature, res[0], res[1]);
+@@ -360,7 +360,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_
+             goto cleanup;
+           }
+ 
+-        res[0] = gcry_sexp_nth_mpi (list, 1, 0);
++        res[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+         gcry_sexp_release (list);
+ 
+         ret = _gnutls_mpi_dprint (res[0], signature);
+@@ -559,7 +559,7 @@ _dsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[0] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+   list = gcry_sexp_find_token (key, "q", 0);
+@@ -570,7 +570,7 @@ _dsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[1] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+   list = gcry_sexp_find_token (key, "g", 0);
+@@ -581,7 +581,7 @@ _dsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[2] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[2] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+   list = gcry_sexp_find_token (key, "y", 0);
+@@ -592,7 +592,7 @@ _dsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[3] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[3] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+ 
+@@ -604,7 +604,7 @@ _dsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[4] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[4] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+ 
+   gcry_sexp_release (list);
+   gcry_sexp_release (key);
+@@ -660,7 +660,7 @@ _rsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[0] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+   list = gcry_sexp_find_token (key, "e", 0);
+@@ -671,7 +671,7 @@ _rsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[1] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+   list = gcry_sexp_find_token (key, "d", 0);
+@@ -682,7 +682,7 @@ _rsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[2] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[2] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+   list = gcry_sexp_find_token (key, "p", 0);
+@@ -693,7 +693,7 @@ _rsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[3] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[3] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+ 
+@@ -705,7 +705,7 @@ _rsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[4] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[4] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+   gcry_sexp_release (list);
+ 
+ 
+@@ -717,7 +717,7 @@ _rsa_generate_params (bigint_t * resarr,
+       return GNUTLS_E_INTERNAL_ERROR;
+     }
+ 
+-  resarr[5] = gcry_sexp_nth_mpi (list, 1, 0);
++  resarr[5] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
+ 
+   gcry_sexp_release (list);
+   gcry_sexp_release (key);

Modified: packages/gnutls26/branches/branch2.11.x/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls26/branches/branch2.11.x/debian/patches/series?rev=1131&op=diff
==============================================================================
--- packages/gnutls26/branches/branch2.11.x/debian/patches/series (original)
+++ packages/gnutls26/branches/branch2.11.x/debian/patches/series Mon Jul 25 18:08:38 2011
@@ -1,3 +1,4 @@
 14_version_gettextcat.diff
 16_unnecessarydep.diff
 17_ignoretestsuitteerrors.diff
+20_gcrypt15compat.diff




More information about the Pkg-gnutls-commits mailing list