mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-29 02:22:45 +02:00
Fix a for a bug fix in the latest Libgcrypt.
* pkglue.c (mpi_from_sexp, pk_decrypt): Use GCRYMPI_FMT_USG for gcry_sexp_nth_mpi. This fixes a problem with a recent bug fix in Libgcrypt.
This commit is contained in:
parent
af497d52c3
commit
13290b0e0f
|
@ -1,3 +1,9 @@
|
||||||
|
2011-06-13 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
|
* pkglue.c (mpi_from_sexp, pk_decrypt): Use GCRYMPI_FMT_USG for
|
||||||
|
gcry_sexp_nth_mpi. This fixes a problem with a recent bug fix in
|
||||||
|
Libgcrypt.
|
||||||
|
|
||||||
2011-01-10 Werner Koch <wk@g10code.com>
|
2011-01-10 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* keygen.c (ask_user_id): Fix duplicate test for AMAIL by correct
|
* keygen.c (ask_user_id): Fix duplicate test for AMAIL by correct
|
||||||
|
|
|
@ -37,7 +37,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;
|
||||||
|
@ -293,7 +293,7 @@ pk_decrypt (int algo, gcry_mpi_t * result, gcry_mpi_t * data,
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
*result = gcry_sexp_nth_mpi (s_plain, 0, 0);
|
*result = gcry_sexp_nth_mpi (s_plain, 0, GCRYMPI_FMT_USG);
|
||||||
gcry_sexp_release (s_plain);
|
gcry_sexp_release (s_plain);
|
||||||
if (!*result)
|
if (!*result)
|
||||||
return -1; /* oops */
|
return -1; /* oops */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user