summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-03-18 18:09:45 +0100
committerWerner Koch <wk@gnupg.org>2008-03-18 18:09:45 +0100
commit432cd50b97622c2b5585fb59762dbb7f3ae544d3 (patch)
tree3b7723adbafb92ea735a529975c46c2f6becc28a
parentFixed an email/DN bug. (diff)
downloadgnupg2-432cd50b97622c2b5585fb59762dbb7f3ae544d3.tar.xz
gnupg2-432cd50b97622c2b5585fb59762dbb7f3ae544d3.zip
Fix for v3 keys.
-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)