mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-09 17:41:05 +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>
|
||||
|
||||
* keygen.c (ask_user_id): Fix duplicate test for AMAIL by correct
|
||||
@ -1351,7 +1357,7 @@
|
||||
* status.c (get_status_string): Ditto.
|
||||
* mainproc.c (proc_plaintext): Emit it if multiple messages are
|
||||
detected. Error out if more than one plaintext packet is
|
||||
encountered.
|
||||
encountered.
|
||||
* mainproc.c (literals_seen): New.
|
||||
|
||||
2007-02-26 Werner Koch <wk@g10code.com>
|
||||
|
@ -37,7 +37,7 @@ mpi_from_sexp (gcry_sexp_t sexp, const char * item)
|
||||
|
||||
list = gcry_sexp_find_token (sexp, item, 0);
|
||||
assert (list);
|
||||
data = gcry_sexp_nth_mpi (list, 1, 0);
|
||||
data = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG);
|
||||
assert (data);
|
||||
gcry_sexp_release (list);
|
||||
return data;
|
||||
@ -293,7 +293,7 @@ pk_decrypt (int algo, gcry_mpi_t * result, gcry_mpi_t * data,
|
||||
if (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);
|
||||
if (!*result)
|
||||
return -1; /* oops */
|
||||
|
Loading…
x
Reference in New Issue
Block a user