summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/seckey-cert.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index ac769b76a..80de445cb 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-18 Werner Koch <wk@g10code.com>
+
+ * seckey-cert.c (do_check): Use GCRYMPI_FMT_PGP for v3 keys.
+ Reported by Petr Cerny.
+
2008-03-13 Werner Koch <wk@g10code.com>
* passphrase.c (PROMPTSTRING): Change string to me more similar to
diff --git a/g10/seckey-cert.c b/g10/seckey-cert.c
index f0dde2caf..841421d94 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)