(is_prime): Free A2. Fixed bug #423.

This commit is contained in:
Werner Koch 2005-03-07 12:39:09 +00:00
parent 4df22ba030
commit 37f8183d05
6 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,7 @@
2005-01-17 Werner Koch <wk@g10code.com>
* README: Updated for SHA1 checkums.
* configure.ac: Make --without-included-zlib work as
expected. Reported by Norihiko Murase.

6
README
View File

@ -108,13 +108,13 @@
b) If you don't have any of the above programs, you have to verify
the MD5 checksum:
the SHA1 checksum:
$ md5sum gnupg-x.y.z.tar.gz
$ sha1sum gnupg-x.y.z.tar.gz
This should yield an output _similar_ to this:
fd9351b26b3189c1d577f0970f9dcadc gnupg-x.y.z.tar.gz
fd935112345678b26b3189c1d577f0970f9dcadc gnupg-x.y.z.tar.gz
Now check that this checksum is _exactly_ the same as the one
published via the announcement list and probably via Usenet.

View File

@ -1,3 +1,7 @@
2005-03-07 Werner Koch <wk@g10code.com>
* primegen.c (is_prime): Free A2. Fixed bug #423.
2004-03-29 Werner Koch <wk@gnupg.org>
* elgamal.c (verify): s/exp/exponent/ to shutup a compiler

View File

@ -497,6 +497,7 @@ is_prime( MPI n, int steps, int *count )
mpi_free( z );
mpi_free( nminus1 );
mpi_free( q );
mpi_free (a2);
return rc;
}

View File

@ -1,3 +1,7 @@
2005-02-21 Werner Koch <wk@g10code.com>
* seckey-cert.c (do_check): Detect card diversion protection.
2005-02-09 David Shaw <dshaw@jabberwocky.com>
* mainproc.c (proc_symkey_enc): Set a flag to indicate that a

View File

@ -49,7 +49,7 @@ do_check( PKT_secret_key *sk, const char *tryagain_text, int *canceled )
CIPHER_HANDLE cipher_hd=NULL;
PKT_secret_key *save_sk;
if( sk->protect.s2k.mode == 1001 ) {
if( sk->protect.s2k.mode == 1001 || sk->protect.s2k.mode == 1002 ) {
log_info(_("secret key parts are not available\n"));
return G10ERR_GENERAL;
}