~nutznboltz-deactivatedaccount/ubuntu/precise/gnutls26/fix-lp926350

« back to all changes in this revision

Viewing changes to debian/patches/20_gcrypt15compat.diff

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
Tags: 2.12.11-1
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Description: gcrypt: replace occurences of gcry_sexp_nth_mpi (..., 0)
2
 
 with gcry_sexp_nth_mpi (..., GCRYMPI_FMT_USG) to fix errors with gcrypt 1.5.0
3
 
Author: Andreas Metzler <ametzler@debian.org>
4
 
Forwarded: http://lists.gnu.org/archive/html/gnutls-devel/2011-07/msg00020.html
5
 
 
6
 
--- gnutls26-2.10.5.orig/lib/pk-libgcrypt.c
7
 
+++ gnutls26-2.10.5/lib/pk-libgcrypt.c
8
 
@@ -112,7 +112,7 @@ _wrap_gcry_pk_encrypt (gnutls_pk_algorit
9
 
       goto cleanup;
10
 
     }
11
 
 
12
 
-  res = gcry_sexp_nth_mpi (list, 1, 0);
13
 
+  res = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
14
 
   gcry_sexp_release (list);
15
 
   if (res == NULL)
16
 
     {
17
 
@@ -202,7 +202,7 @@ _wrap_gcry_pk_decrypt (gnutls_pk_algorit
18
 
       goto cleanup;
19
 
     }
20
 
 
21
 
-  res = gcry_sexp_nth_mpi (s_plain, 0, 0);
22
 
+  res = gcry_sexp_nth_mpi (s_plain, 0, GCRYMPI_FMT_USG);
23
 
   if (res == NULL)
24
 
     {
25
 
       gnutls_assert ();
26
 
@@ -327,7 +327,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_
27
 
            goto cleanup;
28
 
          }
29
 
 
30
 
-       res[0] = gcry_sexp_nth_mpi (list, 1, 0);
31
 
+       res[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
32
 
        gcry_sexp_release (list);
33
 
 
34
 
        list = gcry_sexp_find_token (s_sig, "s", 0);
35
 
@@ -338,7 +338,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_
36
 
            goto cleanup;
37
 
          }
38
 
 
39
 
-       res[1] = gcry_sexp_nth_mpi (list, 1, 0);
40
 
+       res[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
41
 
        gcry_sexp_release (list);
42
 
 
43
 
        ret = _gnutls_encode_ber_rs (signature, res[0], res[1]);
44
 
@@ -360,7 +360,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_
45
 
            goto cleanup;
46
 
          }
47
 
 
48
 
-       res[0] = gcry_sexp_nth_mpi (list, 1, 0);
49
 
+       res[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
50
 
        gcry_sexp_release (list);
51
 
 
52
 
        ret = _gnutls_mpi_dprint (res[0], signature);
53
 
@@ -559,7 +559,7 @@ _dsa_generate_params (bigint_t * resarr,
54
 
       return GNUTLS_E_INTERNAL_ERROR;
55
 
     }
56
 
 
57
 
-  resarr[0] = gcry_sexp_nth_mpi (list, 1, 0);
58
 
+  resarr[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
59
 
   gcry_sexp_release (list);
60
 
 
61
 
   list = gcry_sexp_find_token (key, "q", 0);
62
 
@@ -570,7 +570,7 @@ _dsa_generate_params (bigint_t * resarr,
63
 
       return GNUTLS_E_INTERNAL_ERROR;
64
 
     }
65
 
 
66
 
-  resarr[1] = gcry_sexp_nth_mpi (list, 1, 0);
67
 
+  resarr[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
68
 
   gcry_sexp_release (list);
69
 
 
70
 
   list = gcry_sexp_find_token (key, "g", 0);
71
 
@@ -581,7 +581,7 @@ _dsa_generate_params (bigint_t * resarr,
72
 
       return GNUTLS_E_INTERNAL_ERROR;
73
 
     }
74
 
 
75
 
-  resarr[2] = gcry_sexp_nth_mpi (list, 1, 0);
76
 
+  resarr[2] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
77
 
   gcry_sexp_release (list);
78
 
 
79
 
   list = gcry_sexp_find_token (key, "y", 0);
80
 
@@ -592,7 +592,7 @@ _dsa_generate_params (bigint_t * resarr,
81
 
       return GNUTLS_E_INTERNAL_ERROR;
82
 
     }
83
 
 
84
 
-  resarr[3] = gcry_sexp_nth_mpi (list, 1, 0);
85
 
+  resarr[3] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
86
 
   gcry_sexp_release (list);
87
 
 
88
 
 
89
 
@@ -604,7 +604,7 @@ _dsa_generate_params (bigint_t * resarr,
90
 
       return GNUTLS_E_INTERNAL_ERROR;
91
 
     }
92
 
 
93
 
-  resarr[4] = gcry_sexp_nth_mpi (list, 1, 0);
94
 
+  resarr[4] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
95
 
 
96
 
   gcry_sexp_release (list);
97
 
   gcry_sexp_release (key);
98
 
@@ -653,7 +653,7 @@ _rsa_generate_params (bigint_t * resarr,
99
 
       return GNUTLS_E_INTERNAL_ERROR;
100
 
     }
101
 
 
102
 
-  resarr[0] = gcry_sexp_nth_mpi (list, 1, 0);
103
 
+  resarr[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
104
 
   gcry_sexp_release (list);
105
 
 
106
 
   list = gcry_sexp_find_token (key, "e", 0);
107
 
@@ -664,7 +664,7 @@ _rsa_generate_params (bigint_t * resarr,
108
 
       return GNUTLS_E_INTERNAL_ERROR;
109
 
     }
110
 
 
111
 
-  resarr[1] = gcry_sexp_nth_mpi (list, 1, 0);
112
 
+  resarr[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
113
 
   gcry_sexp_release (list);
114
 
 
115
 
   list = gcry_sexp_find_token (key, "d", 0);
116
 
@@ -675,7 +675,7 @@ _rsa_generate_params (bigint_t * resarr,
117
 
       return GNUTLS_E_INTERNAL_ERROR;
118
 
     }
119
 
 
120
 
-  resarr[2] = gcry_sexp_nth_mpi (list, 1, 0);
121
 
+  resarr[2] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
122
 
   gcry_sexp_release (list);
123
 
 
124
 
   list = gcry_sexp_find_token (key, "p", 0);
125
 
@@ -686,7 +686,7 @@ _rsa_generate_params (bigint_t * resarr,
126
 
       return GNUTLS_E_INTERNAL_ERROR;
127
 
     }
128
 
 
129
 
-  resarr[3] = gcry_sexp_nth_mpi (list, 1, 0);
130
 
+  resarr[3] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
131
 
   gcry_sexp_release (list);
132
 
 
133
 
 
134
 
@@ -698,7 +698,7 @@ _rsa_generate_params (bigint_t * resarr,
135
 
       return GNUTLS_E_INTERNAL_ERROR;
136
 
     }
137
 
 
138
 
-  resarr[4] = gcry_sexp_nth_mpi (list, 1, 0);
139
 
+  resarr[4] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
140
 
   gcry_sexp_release (list);
141
 
 
142
 
 
143
 
@@ -710,7 +710,7 @@ _rsa_generate_params (bigint_t * resarr,
144
 
       return GNUTLS_E_INTERNAL_ERROR;
145
 
     }
146
 
 
147
 
-  resarr[5] = gcry_sexp_nth_mpi (list, 1, 0);
148
 
+  resarr[5] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
149
 
 
150
 
   gcry_sexp_release (list);
151
 
   gcry_sexp_release (key);