* ac.c (gcry_ac_open): Make sure HANDLE gets initialized even when
authorWerner Koch <wk@gnupg.org>
Fri, 19 Dec 2003 09:20:41 +0000 (09:20 +0000)
committerWerner Koch <wk@gnupg.org>
Fri, 19 Dec 2003 09:20:41 +0000 (09:20 +0000)
commitf2541aa8a390d5f26512135bc2079c3aa0f5cc47
treef4e48ff1d0b50253d922d04bf0b6707e5b690855
parentadf881257f924c201555476be103f5920618fc8e
* ac.c (gcry_ac_open): Make sure HANDLE gets initialized even when
the function is not successful.
(gcry_ac_close): Allow a NULL handle.
(gcry_ac_key_destroy, gcry_ac_key_pair_destroy): Ditto.
(gcry_ac_key_get_grip): Return INV_OBJ on error.

* primegen.c (prime_generate_internal): Fixed error code for
failed malloc.  Replaced the !err if chain by gotos.
(gcry_prime_group_generator): Remove the extra sanity check.

* md.c: Minor code and comment cleanups.
cipher/ChangeLog
cipher/Manifest
cipher/ac.c
cipher/md.c
cipher/primegen.c