Fix for v3 keys.
authorWerner Koch <wk@gnupg.org>
Tue, 18 Mar 2008 17:09:45 +0000 (17:09 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 18 Mar 2008 17:09:45 +0000 (17:09 +0000)
g10/ChangeLog
g10/seckey-cert.c

index ac769b7..80de445 100644 (file)
@@ -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
index f0dde2c..841421d 100644 (file)
@@ -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)