From 8be3fe2a9352ccfde6515112aaa25cc9704c84d9 Mon Sep 17 00:00:00 2001 From: wk Date: Tue, 18 Mar 2008 17:09:45 +0000 Subject: [PATCH] Fix for v3 keys. git-svn-id: svn://cvs.gnupg.org/gnupg/trunk@4709 8a63c251-dffc-0310-8ec6-d64dca2275b1 --- g10/ChangeLog | 5 +++++ g10/seckey-cert.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/g10/ChangeLog b/g10/ChangeLog index ac769b76..80de445c 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2008-03-18 Werner Koch + + * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys. + Reported by Petr Cerny. + 2008-03-13 Werner Koch * passphrase.c (PROMPTSTRING): Change string to me more similar to diff --git a/g10/seckey-cert.c b/g10/seckey-cert.c index f0dde2ca..841421d9 100644 --- a/g10/seckey-cert.c +++ b/g10/seckey-cert.c @@ -209,7 +209,7 @@ do_check( PKT_secret_key *sk, const char *tryagain_text, int mode, csum += checksum (buffer, ndata); gcry_mpi_release (sk->skey[i]); - err = gcry_mpi_scan( &sk->skey[i], GCRYMPI_FMT_USG, + err = gcry_mpi_scan( &sk->skey[i], GCRYMPI_FMT_PGP, buffer, ndata, &ndata ); xfree (buffer); if (err) -- 2.11.4.GIT