diff options
author | Werner Koch <[email protected]> | 2006-06-30 09:42:08 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-06-30 09:42:08 +0000 |
commit | 6c208fea3275e7d9244842811e8a5eefeb255e5f (patch) | |
tree | b98d77626ae598b03138f84ff2b1682c7e8733db /g10/misc.c | |
parent | Remove stale lockfiles if created on the same node. (diff) | |
download | gnupg-6c208fea3275e7d9244842811e8a5eefeb255e5f.tar.gz gnupg-6c208fea3275e7d9244842811e8a5eefeb255e5f.zip |
A couple of fixes. gpg2's key generation does now work.
Diffstat (limited to '')
-rw-r--r-- | g10/misc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/g10/misc.c b/g10/misc.c index de0a029a4..33b97792c 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -297,7 +297,6 @@ checksum_mpi (gcry_mpi_t a) u16 csum; byte *buffer; unsigned int nbytes; - unsigned int nbits; if ( gcry_mpi_print (GCRYMPI_FMT_PGP, NULL, 0, &nbytes, a) ) BUG (); @@ -308,9 +307,7 @@ checksum_mpi (gcry_mpi_t a) gcry_xmalloc_secure (nbytes) : gcry_xmalloc (nbytes)); if ( gcry_mpi_print (GCRYMPI_FMT_PGP, buffer, nbytes, NULL, a) ) BUG (); - nbits = gcry_mpi_get_nbits (a); - csum = checksum_u16 (nbits); - csum += checksum (buffer, nbytes); + csum = checksum (buffer, nbytes); xfree (buffer); return csum; } |