* pubkey.c (gcry_pk_encrypt): Replaced the chain of if(!err) tests
authorWerner Koch <wk@gnupg.org>
Tue, 9 Dec 2003 13:17:03 +0000 (13:17 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 9 Dec 2003 13:17:03 +0000 (13:17 +0000)
commitec2f98eaa54748cbdbe4afd8971019cdf368e91e
tree2d90fdac6cc6575fda591224f7db4172ae5a90eb
parent4fb43522f25e8f2c5ac4f9bbfdafda9069612e2a
* pubkey.c (gcry_pk_encrypt): Replaced the chain of if(!err) tests
by straightforward gotos. Other cleanups.
(gcry_pk_decrypt): Ditto.
(gcry_pk_sign): Ditto.
(gcry_pk_verify): Ditto.
(gcry_pk_genkey): Ditto.  Use strtoul instead of strtol.
(gcry_pk_ctl): Use GPG_ERR_INV_ARG to indicate bad arguments.
cipher/ChangeLog
cipher/cipher.c
cipher/pubkey.c