mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
Fix for latest fix in Libgcrypt.
This commit is contained in:
parent
070df4ea58
commit
328ac58962
@ -1,3 +1,10 @@
|
|||||||
|
2011-06-13 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* pkglue.c (mpi_from_sexp): Use GCRYMPI_FMT_USG to avoid problems
|
||||||
|
with leading zeroed. The latest Libgcrypt does this now
|
||||||
|
correctly. Given that the default of gcry_sexp_nth_mpi would use
|
||||||
|
a signed MPI, which is not implemented, the assertion would fail.
|
||||||
|
|
||||||
2011-06-01 Marcus Brinkmann <mb@g10code.com>
|
2011-06-01 Marcus Brinkmann <mb@g10code.com>
|
||||||
|
|
||||||
* parse-packet.c (parse_pubkeyenc): Change type of N to size_t.
|
* parse-packet.c (parse_pubkeyenc): Change type of N to size_t.
|
||||||
|
@ -40,7 +40,7 @@ mpi_from_sexp (gcry_sexp_t sexp, const char * item)
|
|||||||
|
|
||||||
list = gcry_sexp_find_token (sexp, item, 0);
|
list = gcry_sexp_find_token (sexp, item, 0);
|
||||||
assert (list);
|
assert (list);
|
||||||
data = gcry_sexp_nth_mpi (list, 1, 0);
|
data = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
|
||||||
assert (data);
|
assert (data);
|
||||||
gcry_sexp_release (list);
|
gcry_sexp_release (list);
|
||||||
return data;
|
return data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user