2001-11-15 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Thu, 15 Nov 2001 21:32:09 +0000 (21:32 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 15 Nov 2001 21:32:09 +0000 (21:32 +0000)
commitc3f863696d96a6ccc89671b6677ad180031e0852
tree58276553a6b8a5f7d028e1ce06654001e2364a37
parente5d088e717ccd8b2a4190d1532cb95a1f3cecdf1
2001-11-15  Marcus Brinkmann  <marcus@g10code.de>

* verify.c (_gpgme_release_verify_result): Rename RES to RESULT.
Rename R2 to NEXT_RESULT.
(intersect_stati): Rename RES to RESULT.
(gpgme_get_sig_status): Likewise.  Do not check return_type, but
the member verify of result.
(gpgme_get_sig_key): Likewise.

* sign.c (_gpgme_release_sign_result): Rename RES to RESULT.  If
RESULT is zero, return.
(sign_status_handler, command_handler): Do not check return_type,
but the member sign of result.
(gpgme_op_sign): Likewise.  Drop assertion.

* encrypt.c (_gpgme_release_encrypt_result): Rename RES to RESULT.
If RESULT is zero, return.
(encrypt_status_handler): Do not check return_type, but the member
encrypt of result.
(gpgme_op_encrypt): Likewise.  Drop assertion.

* decrypt.c (_gpgme_release_decrypt_result): Rename RES to RESULT.
(create_result_struct): Do not set result_type.
(command_handler, decrypt_status_handler): Do not check
return_type, but the member decrypt of result.
(gpgme_op_decrypt): Likewise.  Drop assertion.

* context.h (enum ResultType): Removed.
(struct gpgme_context_s): Remove member result_type.
(struct result): Replaces union result.
* gpgme.c: Include string.h.
(_gpgme_release_result): Release all members of c->result, which
is now a struct.  Zero out all members of the struct afterwards.
trunk/gpgme/ChangeLog
trunk/gpgme/context.h
trunk/gpgme/decrypt.c
trunk/gpgme/encrypt.c
trunk/gpgme/gpgme.c
trunk/gpgme/sign.c
trunk/gpgme/verify.c