2001-11-16 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 16 Nov 2001 00:20:11 +0000 (00:20 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 16 Nov 2001 00:20:11 +0000 (00:20 +0000)
commit550bc31b44b631368af398fb083f55bc2ffdae6b
tree0aa9f1c0caf6b10b73bfba0e1d864261ae5f0897
parent4374f7c57f4f9790c023d1ab892a28f6578d6ae7
2001-11-16  Marcus Brinkmann  <marcus@g10code.de>

* passphrase.c: New file.
* Makefile.am (libgpgme_la_SOURCES): Add passphrase.c.
* ops.h (_gpgme_passphrase_result): Add prototypes from
passphrase.c.
* types.h: Likewise.
* context.h: Add member passphrase to result.
* gpgme.c (_gpgme_release_result): Release passphrase member.

* decrypt.c: Some formatting and variable name changes (like
CTX instead C).
(struct decrypt_result_s): Remove members now found in
passphrase result.
(_gpgme_release_decrypt_result): Don't release removed members.
(decrypt_status_handler): Call _gpgme_passphrase_status_handler,
and don't handle the cases catched there.
(command_handler): Removed.
(gpgme_op_decrypt_start): Don't set command handler, but invoke
_gpgme_passphrase_start which does it.
(gpgme_op_decrypt): Invoke _gpgme_passphrase_result and drop the
cases covered by it.

* sign.c Some formatting and variable name changes (like
CTX instead C).
(struct sign_result_s): Remove members now found in
passphrase result.
(_gpgme_release_sign_result): Don't release removed members.
(sign_status_handler): Call _gpgme_passphrase_status_handler,
and don't handle the cases catched there.
(command_handler): Removed.
(gpgme_op_sign_start): Don't set command handler, but invoke
_gpgme_passphrase_start which does it.
(gpgme_op_sign): Invoke _gpgme_passphrase_result and drop the
cases covered by it.
gpgme/ChangeLog
gpgme/Makefile.am
gpgme/context.h
gpgme/decrypt.c
gpgme/gpgme.c
gpgme/ops.h
gpgme/passphrase.c [new file with mode: 0644]
gpgme/sign.c
gpgme/types.h