doc/
authorMarcus Brinkmann <mb@g10code.com>
Wed, 30 Apr 2003 03:02:50 +0000 (03:02 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Wed, 30 Apr 2003 03:02:50 +0000 (03:02 +0000)
commit7493a6bebd85faf13fb7d2b2cf119de5e19514f7
tree2c2db615a0f8bebc9f15ac407f74d48ad8d42987
parent8066195d6c74bf7f808a4d7f65d2aaa412ba4ce3
doc/
2003-04-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Key Listing Mode): Add GPGME_KEYLIST_MODE_SIGS.
(Manipulating Keys): Add obsoleteness note.
(Key Signatures): Likewise.
(Information About Keys): Likewise.
(Key Management): Add new data types GpgmeSubkey, GpgmeKeySig,
GpgmeUserID, and all the information about GpgmeKey.

gpgme/
2003-04-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (struct _gpgme_key): New structure.
(GpgmeKey): Define using _gpgme_key.
(struct _gpgme_subkey): New structure.
(GpgmeSubKey): New type.
(struct _gpgme_key_sig): New structure.
(GpgmeKeySig): New type.
(struct _gpgme_user_id): New structure.
(GpgmeUserID): New type.
(struct _gpgme_op_keylist_result): New structure.
(GpgmeKeyListResult): New type.
(gpgme_op_keylist_result): New function.
(gpgme_key_get_as_xml): Remove prototype.
* context.h (struct gpgme_context_s): Remove members tmp_key,
tmp_uid, key_cond and key_queue.
(struct key_queue_item_s): Remove structure.
(struct user_id_s): Remove structure.
(struct gpgme_recipients_s): Replace with simple
GpgmeUserID list.
* gpgme.c (gpgme_release): Do not release CTX->tmp_key.
* ops.h (_gpgme_key_add_subkey, _gpgme_key_append_name,
_gpgme_key_add_sig, _gpgme_trust_item_new): New prototypes.
* rungpg.c (command_cb): Return GpgmeError instead int.
New variable ERR.  Use it to hold return value of cmd handler.
(gpg_delete): Access fingerprint of key directly.
(append_args_from_signers): Likewise.
(gpg_edit): Likewise.
(append_args_from_recipients): Use GpgmeUserID for recipient list.
* engine-gpgsm.c: Do not include "key.h".
(gpgsm_delete): Access fingerprint of key directly.
(gpgsm_sign): Likewise.
(set_recipients): Use GpgmeUserID for recipients.  Invert invalid
user ID flag.
* key.h: File removed.
* key.c: Completely reworked to use exposed GpgmeKey data types.
* keylist.c: Likewise.
* recipient.c: Completely reworked to use GpgmeUserID.

tests/
2003-04-30  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-keylist.c: Rewritten.
* gpgsm/t-keylist.c (main): Rewritten.
* gpg/t-edit.c (main): Do not use gpgme_key_get_as_xml.  Use
gpgme_key_unref instead gpgme_key_release.
* gpg/t-signers.c (main): Use gpgme_key_unref instead
gpgme_key_release.
20 files changed:
trunk/NEWS
trunk/doc/ChangeLog
trunk/doc/gpgme.texi
trunk/gpgme/ChangeLog
trunk/gpgme/context.h
trunk/gpgme/engine-gpgsm.c
trunk/gpgme/gpgme.c
trunk/gpgme/gpgme.h
trunk/gpgme/key.c
trunk/gpgme/keylist.c
trunk/gpgme/ops.h
trunk/gpgme/recipient.c
trunk/gpgme/rungpg.c
trunk/gpgme/trust-item.c
trunk/gpgme/trustlist.c
trunk/tests/ChangeLog
trunk/tests/gpg/t-edit.c
trunk/tests/gpg/t-keylist.c
trunk/tests/gpg/t-signers.c
trunk/tests/gpgsm/t-keylist.c