mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01: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
342
g10/ChangeLog
342
g10/ChangeLog
File diff suppressed because it is too large
Load Diff
@ -34,10 +34,10 @@ mpi_from_sexp (gcry_sexp_t sexp, const char * item)
|
|||||||
{
|
{
|
||||||
gcry_sexp_t list;
|
gcry_sexp_t list;
|
||||||
gcry_mpi_t data;
|
gcry_mpi_t data;
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user