Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 292759 Details for
Bug 390735
gnutls-2.10.5 misuses libgcrypt (1.5.0), causing random failures (libvirt, probably others)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix libgcrypt api usage
gnutls-2.10.5-gcrypt-mpi.patch (text/plain), 4.80 KB, created by
Marien Zwart (RETIRED)
on 2011-11-16 14:09:07 UTC
(
hide
)
Description:
fix libgcrypt api usage
Filename:
MIME Type:
Creator:
Marien Zwart (RETIRED)
Created:
2011-11-16 14:09:07 UTC
Size:
4.80 KB
patch
obsolete
>diff --git a/lib/pk-libgcrypt.c b/lib/pk-libgcrypt.c >index 5e0b159..7c3ea09 100644 >--- a/lib/pk-libgcrypt.c >+++ b/lib/pk-libgcrypt.c >@@ -112,7 +112,7 @@ _wrap_gcry_pk_encrypt (gnutls_pk_algorithm_t algo, > goto cleanup; > } > >- res = gcry_sexp_nth_mpi (list, 1, 0); >+ res = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > if (res == NULL) > { >@@ -202,7 +202,7 @@ _wrap_gcry_pk_decrypt (gnutls_pk_algorithm_t algo, > goto cleanup; > } > >- res = gcry_sexp_nth_mpi (s_plain, 0, 0); >+ res = gcry_sexp_nth_mpi (s_plain, 0, GCRYMPI_FMT_USG); > if (res == NULL) > { > gnutls_assert (); >@@ -327,7 +327,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_t algo, gnutls_datum_t * signature, > goto cleanup; > } > >- res[0] = gcry_sexp_nth_mpi (list, 1, 0); >+ res[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > list = gcry_sexp_find_token (s_sig, "s", 0); >@@ -338,7 +338,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_t algo, gnutls_datum_t * signature, > goto cleanup; > } > >- res[1] = gcry_sexp_nth_mpi (list, 1, 0); >+ res[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > ret = _gnutls_encode_ber_rs (signature, res[0], res[1]); >@@ -360,7 +360,7 @@ _wrap_gcry_pk_sign (gnutls_pk_algorithm_t algo, gnutls_datum_t * signature, > goto cleanup; > } > >- res[0] = gcry_sexp_nth_mpi (list, 1, 0); >+ res[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > ret = _gnutls_mpi_dprint (res[0], signature); >@@ -559,7 +559,7 @@ _dsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[0] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > list = gcry_sexp_find_token (key, "q", 0); >@@ -570,7 +570,7 @@ _dsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[1] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > list = gcry_sexp_find_token (key, "g", 0); >@@ -581,7 +581,7 @@ _dsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[2] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[2] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > list = gcry_sexp_find_token (key, "y", 0); >@@ -592,7 +592,7 @@ _dsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[3] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[3] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > >@@ -604,7 +604,7 @@ _dsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[4] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[4] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > > gcry_sexp_release (list); > gcry_sexp_release (key); >@@ -653,7 +653,7 @@ _rsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[0] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[0] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > list = gcry_sexp_find_token (key, "e", 0); >@@ -664,7 +664,7 @@ _rsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[1] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[1] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > list = gcry_sexp_find_token (key, "d", 0); >@@ -675,7 +675,7 @@ _rsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[2] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[2] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > list = gcry_sexp_find_token (key, "p", 0); >@@ -686,7 +686,7 @@ _rsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[3] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[3] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > >@@ -698,7 +698,7 @@ _rsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[4] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[4] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > gcry_sexp_release (list); > > >@@ -710,7 +710,7 @@ _rsa_generate_params (bigint_t * resarr, int *resarr_len, int bits) > return GNUTLS_E_INTERNAL_ERROR; > } > >- resarr[5] = gcry_sexp_nth_mpi (list, 1, 0); >+ resarr[5] = gcry_sexp_nth_mpi (list, 1, GCRYMPI_FMT_USG); > > gcry_sexp_release (list); > gcry_sexp_release (key);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 390735
: 292759