gpgme.git
21 years ago2003-05-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 4 May 2003 14:55:00 +0000 (14:55 +0000)]
2003-05-04  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (GpgmeError): Add deprecated values for
GPGME_Invalid_Type and GPGME_Invalid_Mode.

21 years agodoc/
Marcus Brinkmann [Wed, 30 Apr 2003 03:34:30 +0000 (03:34 +0000)]
doc/
2003-04-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Encrypting a Plaintext): Remove reference to
gpgme_get_op_info.
(Detailed Results): Subsection removed.

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

* gpgme.h (gpgme_get_op_info): Remove prototype.
* ops.h (_gpgme_set_op_info,
_gpgme_data_release_and_return_string, _gpgme_data_get_as_string,
_gpgme_data_append, _gpgme_data_append_string,
_gpgme_data_append_string_for_xml, _gpgme_data_append_for_xml,
_gpgme_data_append_percentstring_for_xml): Likewise.
(_gpgme_progress_status_handler): Change first arg to void *.
* progress.c (_gpgme_progress_status_handler): Likewise.
* conversion.c: Do not include <string.h>, <errno.h>, <ctype.h>,
and <sys/types.h>, but <string.h>.
(_gpgme_data_append): Remove function.
(_gpgme_data_append_string): Likewise.
(_gpgme_data_append_for_xml): Likewise.
(_gpgme_data_append_string_for_xml): Likewise.
(_gpgme_data_append_percentstring_for_xml): Likewise.
* data-mem.c (_gpgme_data_get_as_string): Likewise.
(_gpgme_data_release_and_return_string): Likewise.
* gpgme.c (gpgme_get_op_info): Likewise.
(_gpgme_set_op_info): Likewise.

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

* gpg/t-eventloop.c (main): Do not call print_op_info.
(print_op_info): Function removed.

21 years agoReally remove file.
Marcus Brinkmann [Wed, 30 Apr 2003 03:04:41 +0000 (03:04 +0000)]
Really remove file.

21 years agodoc/
Marcus Brinkmann [Wed, 30 Apr 2003 03:02:50 +0000 (03:02 +0000)]
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.

21 years agoReally add the file.
Marcus Brinkmann [Tue, 29 Apr 2003 22:34:46 +0000 (22:34 +0000)]
Really add the file.

21 years agodoc/
Marcus Brinkmann [Tue, 29 Apr 2003 22:24:37 +0000 (22:24 +0000)]
doc/
2003-04-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Listing Keys): Remove force_update argument from
gpgme_get_key.

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

* gpgme.h (gpgme_get_key): Remove force_update argument.
* key-cache.c: File removed.
* Makefile.am (libgpgme_la_SOURCES): Remove key-cache.c.
* ops.h (_gpgme_key_cache_add, _gpgme_key_cache_get): Remove
prototypes.
* keylist.c (_gpgme_op_keylist_event_cb): Don't call
_gpgme_key_cache_add.
(gpgme_get_key): New function.
* verify.c (gpgme_get_sig_key): Remove last argument to
gpgme_get_key invocation.

21 years agoAdd items.
Marcus Brinkmann [Tue, 29 Apr 2003 21:58:32 +0000 (21:58 +0000)]
Add items.

21 years agodoc/
Marcus Brinkmann [Tue, 29 Apr 2003 21:53:58 +0000 (21:53 +0000)]
doc/
2003-04-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Trust Item Management): Add data members of
GpgmeTrustItem type.
(Information About Trust Items): Add note about obsoleteness.
(Manipulating Trust Items): Add gpgme_trust_item_ref and
gpgme_trust_item_unref.

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

* gpgme.h (struct _gpgme_trust_item): New structure.
(GpgmeTrustItem): New type.
(gpgme_trust_item_ref, gpgme_trust_item_unref): New prototypes.
* context.h (struct trust_queue_item_s): Remove structure.
(struct gpgme_context_s): Remove trust_queue member.
* Makefile.am (libgpgme_la_SOURCES): Add trust-item.c.
* trust-item.c: New file.
* trustlist.c: Do not include <stdio.h> or <time.h>, but
"gpgme.h".
(struct trust_queue_item_s): Change to new type op_data_t.
(trust_status_handler): Change first argument to void *.
(trust_colon_handler): Likewise.
(_gpgme_op_trustlist_event_cb): Use op_data_t type.
(gpgme_op_trustlist_start): Use op_data_t and rework error
handling.
(gpgme_op_trustlist_next): Use op_data_t.
(gpgme_trust_item_release): Remove function.
(gpgme_trust_item_get_string_attr): Likewise.
(gpgme_trust_item_get_int_attr): Likewise.

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

* gpg/t-trustlist.c: Rewritten.

21 years ago2003-04-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Apr 2003 20:51:25 +0000 (20:51 +0000)]
2003-04-29  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-verify.c (main): Rewritten.
* gpg/t-decrypt-verify.c: Rewritten.
* gpgsm/t-verify.c (main): Rewritten.

21 years ago2003-04-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Apr 2003 20:50:15 +0000 (20:50 +0000)]
2003-04-29  Marcus Brinkmann  <marcus@g10code.de>

* verify.c (calc_sig_summary): Do not set GPGME_SIGSUM_SYS_ERROR
for bad signatures.

21 years ago2003-04-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 29 Apr 2003 00:54:11 +0000 (00:54 +0000)]
2003-04-28  Marcus Brinkmann  <marcus@g10code.de>

* context.h: Remove OPDATA_VERIFY_COLLECTING.
(struct gpgme_context_s): Remove member notation.
* gpgme.h: Make enum for GPGME_KEYLIST_MODE_* values.

21 years agodoc/
Marcus Brinkmann [Mon, 28 Apr 2003 23:59:03 +0000 (23:59 +0000)]
doc/
2003-04-28  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Verify): Rewritten to take into account new and
deprecated functions and data types.

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

* gpgme.h (struct _gpgme_sig_notation): New structure.
(GpgmeSigNotation): New type.
(struct _gpgme_signature): New structure.
(GpgmeSignature): New type.
(struct _gpgme_op_verify_result): New structure.
(GpgmeVerifyResult): New type.
(gpgme_op_verify_result): New prototype.
(gpgme_get_notation): Remove prototype.
* ops.h (_gpgme_op_verify_init_result): New prototype.
(_gpgme_verify_status_handler): Change first argument to void *.
* util.h (_gpgme_decode_percent_string, _gpgme_map_gnupg_error):
New prototypes.
* conversion.c (_gpgme_decode_percent_string): New function.
(gnupg_errors): New static global.
(_gpgme_map_gnupg_error): New function.
* gpgme.c (gpgme_release): Don't release CTX->notation.
(gpgme_get_notation): Remove function.
* decrypt-verify.c (_gpgme_op_decrypt_verify_start): Call
_gpgme_op_verify_init_result.
* verify.c: Do not include <stdio.h>, <assert.h> and "key.h", but
do include "gpgme.h".
(struct verify_result): Replace with ...
(op_data_t): ... this type.
(release_verify_result): Remove function.
(release_op_data): New function.
(is_token): Remove function.
(skip_token): Remove function.
(copy_token): Remove function.
(gpgme_op_verify_result): New function.
(calc_sig_summary): Rewritten.
(finish_sig): Remove function.
(parse_new_sig): New function.
(parse_valid_sig): New function.
(parse_notation): New function.
(parse_trust): New function.
(parse_error): New function.
(_gpgme_verify_status_handler): Rewritten.  Change first argument
to void *.
(_gpgme_op_verify_start): Rework error handling.  Call
_gpgme_op_verify_init_result.
(gpgme_op_verify): Do not release or clear CTX->notation.
(gpgme_get_sig_status): Rewritten.
(gpgme_get_sig_string_attr): Likewise.
(gpgme_get_sig_ulong_attr): Likewise.
(gpgme_get_sig_key): Likewise.

21 years ago2003-04-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 28 Apr 2003 21:28:22 +0000 (21:28 +0000)]
2003-04-28  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-decrypt.c (main): Rewritten.

21 years agodoc/
Marcus Brinkmann [Mon, 28 Apr 2003 21:17:15 +0000 (21:17 +0000)]
doc/
2003-04-28  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Decrypt): Descript gpgme_op_decrypt_result and
GpgmeDecryptResult.

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

* gpgme.h (struct _gpgme_op_decrypt_result): New structure.
(GpgmeDecryptResult): New type.
(gpgme_op_decrypt_result): New prototype.
* ops.h (_gpgme_op_decrypt_init_result): New prototype.
(_gpgme_decrypt_status_handler): Fix prototype.
(_gpgme_decrypt_start): Remove prototype.
* decrypt-verify.c: Do not include <stdio.h>, <stdlib.h>,
<string.h> and <assert.h>, "util.h" and "context.h", but
"gpgme.h".
(decrypt_verify_status_handler): Change first argument to void *,
and rework error handling.
(_gpgme_op_decrypt_verify_start): New function.
(gpgme_op_decrypt_verify_start): Rewrite using
_gpgme_op_decrypt_verify_start.
(gpgme_op_decrypt_verify): Likewise.
* decrypt.c: Include <string.h>, "gpgme.h" and "util.h".
(struct decrypt_result): Change to typedef op_data_t, rewritten.
(is_token): Remove function.
(release_op_data): New function.
(skip_token): Remove function.
(gpgme_op_decrypt_result): New function.
(_gpgme_decrypt_status_handler): Change first argument to void *.
Rework error handling.
(_gpgme_decrypt_start): Rename to ...
(decrypt_start): ... this.  Call _gpgme_op_decrypt_init_result.
(_gpgme_op_decrypt_init_result): New function.
(gpgme_op_decrypt_start): Use decrypt_start.
(gpgme_op_decrypt): Likewise.

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

* gpg/t-decrypt.c: Rewritten.

21 years ago2003-04-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 28 Apr 2003 20:23:20 +0000 (20:23 +0000)]
2003-04-28  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-signers.c (print_data): Rewritten.

21 years ago2003-04-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 27 Apr 2003 23:05:03 +0000 (23:05 +0000)]
2003-04-27  Marcus Brinkmann  <marcus@g10code.de>

* encrypt-sign.c: Do not include <stddef.h>, <stdio.h>,
<stdlib.h>, <string.h>, <assert.h> and "util.h", but "gpgme.h".
(_gpgme_op_encrypt_sign_start): Rename to ...
(encrypt_sign_start): ... this.
(gpgme_op_encrypt_sign_start): Use encrypt_sign_start, not
_gpgme_op_encrypt_sign_start.
(gpgme_op_encrypt_sign): Likewise.

21 years agoAdd item about passphrase handler.
Marcus Brinkmann [Sun, 27 Apr 2003 22:52:37 +0000 (22:52 +0000)]
Add item about passphrase handler.

21 years ago2003-04-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 27 Apr 2003 22:52:09 +0000 (22:52 +0000)]
2003-04-27  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-encrypt-sign.c (check_result): Rewritten.

21 years agodoc/
Marcus Brinkmann [Sun, 27 Apr 2003 22:24:37 +0000 (22:24 +0000)]
doc/
2003-04-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Encrypting a Plaintext): Add info about
GpgmeEncryptResult and gpgme_op_encrypt_result.

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

* gpgme.h (GpgmeEncryptResult): New data type.
(gpgme_op_encrypt_result): New prototype.
* ops.h (_gpgme_op_encrypt_init_result): New prototype.
(_gpgme_op_encrypt_status_handler): Fix prototype.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Call
_gpgme_op_encrypt_init_result.
* encrypt.c: Do not include <stdio.h>, <assert.h>, "util.h" and
"wait.h".  Include <errno.h> and "gpgme.h".
(SKIP_TOKEN_OR_RETURN): Remove macro.
(struct encrypt_result): Rename to ...
(op_data_t): ... new data type.  Rewrite for user result data.
(append_xml_encinfo): Remove function.
(release_op_data): New function.
(gpgme_op_encrypt_result): New function.
(_gpgme_op_encrypt_status_handler): Change first argument to void *.
Rewrite result parsing.
(_gpgme_op_encrypt_sym_status_handler): Change first argument to
void *.
(_gpgme_op_encrypt_init_result): New function.
(_gpgme_op_encrypt_start): Rename to ...
(encrypt_start): ... this.
(gpgme_op_encrypt_start): Use encrypt_start, not
gpgme_op_encrypt_start.
(gpgme_op_encrypt): Likewise.

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

* gpg/t-sign.c: Rewritten.
* gpgsm/t-sign.c: Rewritten.
* gpg/t-encrypt.c: Check for invalid recipients.
* gpgsm/t-encrypt.c: Likewise.

21 years agodoc/
Marcus Brinkmann [Sun, 27 Apr 2003 20:53:04 +0000 (20:53 +0000)]
doc/
2003-04-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Creating a Signature): Add info about
GpgmeNewSignature, GpgmeSignResult and gpgme_op_sign_result.
(Crypto Operations): Add GpgmeInvalidUserID.
(Algorithms): New chapter.

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

* gpgme.h (GpgmePubKeyAlgo, GpgmeHashAlgo, GpgmeInvalidUserID,
GpgmeNewSignature, GpgmeSignResult): New data types.
(gpgme_op_sign_result, gpgme_pubkey_algo_name,
gpgme_hash_algo_name): New prototypes.
* gpgme.c (gpgme_pubkey_algo_name): New function.
(gpgme_hash_algo_name): Likewise.
* ops.h (_gpgme_parse_inv_userid, _gpgme_op_sign_init_result): New
prototype.
(_gpgme_op_sign_status_handler): Fix prototype.
* op-support.c: Include <errno.h> and <string.h>.
(_gpgme_parse_inv_userid): New function.
* sign.c: Include <errno.h> and "gpgme.h", but not <stdio.h>,
<assert.h> and "util.h".
(SKIP_TOKEN_OR_RETURN): Remove macro.
(struct sign_result): Change to op_data_t type and rework it.
(release_sign_result): Rename to ...
(release_op_data): ... this and rewrite it.
(append_xml_info): Remove function.
(gpgme_op_sign_result): New function.
(parse_sig_created): New function.
(_gpgme_sign_status_handler): Change first argument to void *.
Rewrite the function to use the new result structure and functions.
(_gpgme_op_sign_init_result): New function.
(_gpgme_op_sign_start): Rename to ...
(sign_start): ... this.  Call _gpgme_op_sign_init_result.
(gpgme_op_sign_start): Use sign_start instead _gpgme_op_sign_start.
(gpgme_op_sign): Likewise.

21 years agoAdd some items to do.
Marcus Brinkmann [Sun, 27 Apr 2003 18:31:25 +0000 (18:31 +0000)]
Add some items to do.

21 years ago2003-04-27 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 27 Apr 2003 18:25:07 +0000 (18:25 +0000)]
2003-04-27  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-import.c (check_result): Really use FPR.
* gpgsm/t-import.c (check_result): Rewritten.

21 years agodoc/
Marcus Brinkmann [Sun, 27 Apr 2003 17:35:42 +0000 (17:35 +0000)]
doc/
2003-04-27  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Deleting Keys): Document
GPGME_Ambiguous_Specification.
(Error Values): Remove GPGME_Invalid_Type and GPGME_Invalid_Mode.
Add GPGME_Unknown_Reason, GPGME_Not_Found,
GPGME_Ambiguous_Specification, GPGME_Wrong_Key_Usage,
GPGME_Key_Revoked, GPGME_Key_Expired, GPGME_No_CRL_Known,
GPGME_CRL_Too_Old, GPGME_Policy_Mismatch, GPGME_No_Secret_Key,
GPGME_Key_Not_Trusted, GPGME_Issuer_Missing, GPGME_Chain_Too_Long,
GPGME_Unsupported_Algorithm, GPGME_Sig_Expired,
GPGME_Bad_Signature, GPGME_No_Public_Key.

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

* delete.c: Include <errno.h> and "gpgme.h", but not "util.h" or
"key.h".
(enum delete_problem): Move into function delete_status_handler.
(delete_status_handler): Change first argument to void *.  Parse
delete problem with strtol instead atoi.  Return better error
values.
(_gpgme_op_delete_start): Rename to ...
(delete_start): ... this.  Rework error handling.
(gpgme_op_delete_start): Use delete_start instead
_gpgme_op_delete_start.
(gpgme_op_delete): Likewise.
* gpgme.h (GpgmeDataType): Removed.

21 years agodoc/
Marcus Brinkmann [Fri, 25 Apr 2003 17:08:00 +0000 (17:08 +0000)]
doc/
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Importing Keys): Change GPGME_IMPORT_PRIVATE to
GPGME_IMPORT_SECRET.

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

* gpgme.h: Change GPGME_IMPORT_PRIVATE to GPGME_IMPORT_SECRET.
* import.c (parse_import_res): Parse unchanged field.

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

* gpg/t-import.c: Rewritten.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 16:11:25 +0000 (16:11 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Importing Keys): Remove note about gpgme_get_op_info.
(Detailed Results): Remove note about import.

21 years agodoc/
Marcus Brinkmann [Fri, 25 Apr 2003 15:56:24 +0000 (15:56 +0000)]
doc/
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Importing Keys): Add documentation for
GpgmeImportStatus, GpgmeImportResult and gpgme_op_import_result.

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

* gpgme.h: New enum for GPGME_IMPORT_NEW, GPGME_IMPORT_UID,
GPGME_IMPORT_SIG, GPGME_IMPORT_SUBKEY, GPGME_IMPORT_PRIVATE.
(GpgmeError): GPGME_Unknown_Reason, GPGME_Not_Found,
GPGME_Ambiguous_Specification, GPGME_Wrong_Key_Usage,
GPGME_Key_Revoked, GPGME_Key_Expired, GPGME_No_CRL_Known,
GPGME_CRL_Too_Old, GPGME_Policy_Mismatch, GPGME_No_Secret_Key,
GPGME_Key_Not_Trusted, GPGME_Issuer_Missing, GPGME_Chain_Too_Long,
GPGME_Unsupported_Algorithm, GPGME_Sig_Expired,
GPGME_Bad_Signature, GPGME_No_Public_Key): New error codes.
(struct _gpgme_import_status): New structure.
(GpgmeImportStatus): New type.
(struct _gpgme_op_import_result): New structure.
(GpgmeImportResult): New type.
(gpgme_op_import_result): New function.
* import.c: Include <errno.h> and "gpgme.h", but not "util.h".
(struct import_result): Change to type op_data_t.
(release_import_result): Rename to ...
(release_op_data): ... this.
(append_xml_impinfo): Function removed.
(gpgme_op_import_result): New function.
(parse_import): New function.
(parse_import_res): Likewise.
(import_status_handler): Change first argument to void *.  Rewrite
to use new functions.
(_gpgme_op_import_start): Rework error handling.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 14:46:03 +0000 (14:46 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* edit.c: Do not include <assert.h>, "util.h", but "gpgme.h".
(edit_resut): Change to typedef for op_data_t.
(edit_status_handler): Change first argument to void *.
Rework error handling.
(command_handler): Rework error handling.
(_gpgme_op_edit_start): Rename to ...
(edit_start): ... this.  Rework error handling.
(gpgme_op_edit_start): Rewrite using edit_start.
(gpgme_op_edit): Likewise.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 14:24:17 +0000 (14:24 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* ops.h (_gpgme_passphrase_start): Remove prototype.
* passphrase.c: Do not include <assert.h>, "util.h" or
"debug.h", but "gpgme.h".
(struct passphrase_result): Change to typedef for op_data_t.
(release_passphrase_result): Rename to release_op_data.
(_gpgme_passphrase_status_handler): Change first argument to void *.
Use new op_data_t type.
(_gpgme_passphrase_command_handler): Use new op_data_t type.
(_gpgme_passphrase_start): Remove function.
* decrypt.c (_gpgme_decrypt_start): Rewrite error handling.  Do
not call _gpgme_passphrase_start, but install command handler.
* encrypt.c (_gpgme_op_encrypt_start): Likewise.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise.
* sign.c (_gpgme_op_sign_start): Likewise.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 13:42:02 +0000 (13:42 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* context.h (struct gpgme_context_s): Remove member initialized,
use_cms and help_data_1.  Add member protocol.  Make use_armor and
use_textmode bit flags.  Make keylist_mode, include_certs,
signers_len and signers_size unsigned.
* gpgme.c (gpgme_new): Initialize CTX->protocol.
(gpgme_set_protocol): Do not check CTX.  Use CTX->protocol.
(gpgme_get_protocol): Likewise.
(gpgme_release): Do not release CTX->help_data_1.
* op-support.c (_gpgme_op_reset): Use CTX->protocol.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 13:25:56 +0000 (13:25 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* wait-private.c (_gpgme_wait_private_event_cb): Remove variable CTX.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 13:23:27 +0000 (13:23 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* data.c: Do not include <assert.h>, but "gpgme.h".
(_gpgme_data_inbound_handler): Expand _gpgme_data_append, because
it will go.  Do not assert DH.
(_gpgme_data_outbound_handler): Do not assert DH.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 13:18:13 +0000 (13:18 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* export.c: Do not include <stdlib.h>, "debug.h" and "util.h", but
"gpgme.h".
(export_status_handler): Change type of first argument to void *.
(_gpgme_op_export_start): Rename to ...
(export_start): ... this.  Rework error handling.
(gpgme_op_export_start): Rewritten to use export_start instead
_gpgme_op_export_start.
(gpgme_op_export): Likewise.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 12:48:48 +0000 (12:48 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Generating Keys): Fix documentation of ppublic and
secret arguments.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 12:38:55 +0000 (12:38 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-genkey.c: Rewritten.
* gpgsm/Makefile.am (noinst_PROGRAMS): Add t-genkey.
* gpg/t-genkey.c: Include <stdlib.h>.
(main): Check result->fpr before checking its length.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 11:31:14 +0000 (11:31 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (GpgmeError): Add GPGME_Busy, GPGME_No_Request.
(GPGME_No_Recipients, GPGME_Invalid_Recipient,
GPGME_No_Passphrase): New macros.

21 years ago2003-04-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 25 Apr 2003 10:59:52 +0000 (10:59 +0000)]
2003-04-25  Marcus Brinkmann  <marcus@g10code.de>

* key.c (gpgme_key_get_string_attr): Fix validity attribute.

21 years agoComplete genkey example.
Marcus Brinkmann [Thu, 24 Apr 2003 17:28:05 +0000 (17:28 +0000)]
Complete genkey example.

21 years agodoc/
Marcus Brinkmann [Thu, 24 Apr 2003 17:16:28 +0000 (17:16 +0000)]
doc/
2003-04-24  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Generating Keys): Document changed gpgme_op_genkey
and new gpgme_op_genkey_result function.  Document
GpgmeGenKeyResult data type.

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

* gpgme.h (struct _gpgme_op_genkey_result): New structure.
(GpgmeGenKeyResult): New type.
(gpgme_op_genkey): Drop last argument.
(gpgme_op_genkey_result): New function.
* genkey.c: Do not include "util.h", but "gpgme.h".
(struct genkey_result): Replace with ...
(op_data_t): ... this new type.
(release_genkey_result): Replace with ...
(release_op_data): ... this new function.
(gpgme_op_genkey_result): New function.
(genkey_status_handler): Rewritten using new op_data_t type.
(get_key_parameter): New function.
(_gpgme_op_genkey_start): Renamed to
(genkey_start): ... this and rewritten.
(gpgme_op_genkey_start): Use genkey_start instead
_gpgme_op_genkey_start.
(gpgme_op_genkey): Rewritten.  Remove FPR argument.

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

* gpg/t-genkey.c: Rewritten to match new semantics.

21 years ago2003-04-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 24 Apr 2003 15:58:49 +0000 (15:58 +0000)]
2003-04-24  Marcus Brinkmann  <marcus@g10code.de>

* context.h (struct gpgme_context_s): Remove member verbosity.
* gpgme.c (gpgme_new): Do not set member verbosity.
* engine.h (_gpgme_engine_set_verbosity): Remove prototype.
* engine.c (_gpgme_engine_set_verbosity): Remove function.
* engine-backend.h (struct engine_ops): Remove set_verbosity.
* engine-gpgsm.c (_gpgme_engine_ops_gpgsm): Remove set_verbosity member.
* rungpg.c (_gpgme_engine_ops_gpg): Likewise.
(gpg_set_verbosity): Remove function.
* decrypt.c (_gpgme_decrypt_start): Don't call
_gpgme_engine_set_verbosity.
* delete.c (_gpgme_op_delete_start): Likewise.
* edit.c (_gpgme_op_edit_start): Likewise.
* encrypt.c (_gpgme_op_encrypt_start): Likewise.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise.
* export.c (_gpgme_op_export_start): Likewise.
* genkey.c (_gpgme_op_genkey_start): Likewise.
* import.c (_gpgme_op_import_start): Likewise.
* keylist.c (gpgme_op_keylist_start): Likewise.
(gpgme_op_keylist_ext_start): Likewise.
* sign.c (_gpgme_op_sign_start): Likewise.
* verify.c (_gpgme_op_verify_start): Likewise.

21 years ago2003-04-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 24 Apr 2003 15:40:49 +0000 (15:40 +0000)]
2003-04-24  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libgpgme_la_SOURCES): Add key-cache.c.
* key.c (key_cache_initialized, key_cache_size,
key_cache_max_chain_length, ): Removed.
(struct key_cache_item_s, key_cache_lock, key_cache,
key_cache_unused_items, hash_key, _gpgme_key_cache_add,
_gpgme_key_cache_get, gpgme_get_key): Moved to ...
* key-cache.c: ... here.  New file.
* key.h (_gpgme_key_cache_init): Remove prototypes.
(_gpgme_key_cache_add,_gpgme_key_cache_get): Move to ...
* ops.h: ... here.
* version.c: Do not include "key.h".
(do_subsystem_inits): Do not call _gpgme_key_cache_init.

21 years agoPretty print.
Marcus Brinkmann [Thu, 24 Apr 2003 15:15:29 +0000 (15:15 +0000)]
Pretty print.

21 years ago2003-04-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 24 Apr 2003 15:11:45 +0000 (15:11 +0000)]
2003-04-24  Marcus Brinkmann  <marcus@g10code.de>

* mkstatus: Strip trailing comma.
* gpgme.h (GpgmeStatus): Pretty print.

21 years agodoc/
Marcus Brinkmann [Thu, 24 Apr 2003 14:33:13 +0000 (14:33 +0000)]
doc/
2003-04-24  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Error Values): Rename GPGME_No_Passphrase to
GPGME_Bad_Passphrase.
* gpgme.texi (Decrypt): Likewise.
(Decrypt and Verify): Likewise.
(Creating a Signature): Likewise.
(Encrypting a Plaintext): Likewise.

* gpgme.texi (Error Values): Rename GPGME_No_Recipients to
GPGME_No_UserID and GPGME_Invalid_Recipient to
GPGME_Invalid_UserID.
(Encrypting a Plaintext): Likewise.

* gpgme.texi (Error Values): Remove GPGME_Busy and GPGME_No_Request.
(Listing Keys): Likewise.
(Listing Trust Items): Likewise.

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

* gpgme.h (GpgmeError): Rename GPGME_No_Passphrase to
GPGME_Bad_Passphrase.
* passphrase.c (_gpgme_passphrase_status_handler): Use
GPGME_Bad_Passphrase instead GPGME_No_Passphrase.

* gpgme.h (GpgmeError): Rename GPGME_No_Recipients to
GPGME_No_UserID and GPGME_Invalid_Recipient to
GPGME_Invalid_UserID.
* encrypt.c (_gpgme_encrypt_status_handler): Use GPGME_No_UserID
instead GPGME_No_Recipients and GPGME_Invalid_UserID instead
GPGME_Invalid_Recipient.
(_gpgme_op_encrypt_start): Likewise.

* gpgme.h (GpgmeError): Remove GPGME_Busy and GPGME_No_Request.
* wait-user.c (_gpgme_wait_user_event_cb): Don't clear CTX->pending.
* wait-private.c (_gpgme_wait_private_event_cb): Likewise.
* wait-global.c (gpgme_wait): Likewise.
* verify.c (_gpgme_op_verify_start): Likewise.
(gpgme_get_sig_status): Don't check pending flag.
(gpgme_get_sig_string_attr): Likewise.
(gpgme_get_sig_ulong_attr): Likewise.
(gpgme_get_sig_key): Likewise.
* op-support.c (_gpgme_op_reset): Likewise.
* trustlist.c (gpgme_op_trustlist_start): Don't clear pending flag.
(gpgme_op_trustlist_next): Don't check or clear pending flag.
(gpgme_op_trustlist_end): Likewise.
* sign.c (_gpgme_op_sign_start): Likewise.
* context.h (struct gpgme_context_s): Remove member PENDING.
* decrypt.c (_gpgme_decrypt_start): Likewise.
* delete.c (_gpgme_op_delete_start): Likewise.
* edit.c (_gpgme_op_edit_start): Likewise.
* encrypt.c (_gpgme_op_encrypt_start): Likewise.
* encrypt-sign.c (_gpgme_op_encrypt_sign_start): Likewise.
* export.c (_gpgme_op_export_start): Likewise.
* genkey.c (_gpgme_op_genkey_start): Likewise.
* import.c (_gpgme_op_import_start): Likewise.
* key.c (gpgme_get_key): Likewise.
* keylist.c (gpgme_op_keylist_start): Likewise.
(gpgme_op_keylist_ext_start): Likewise.
(gpgme_op_keylist_next): Likewise.
(gpgme_op_keylist_end): Likewise.
* data-compat.c (gpgme_error_to_errno): Don't convert EBUSY.

21 years agoAdd news item for 0.3.15.
Marcus Brinkmann [Thu, 24 Apr 2003 13:46:27 +0000 (13:46 +0000)]
Add news item for 0.3.15.

21 years agoFix last change.
Marcus Brinkmann [Fri, 7 Feb 2003 01:15:08 +0000 (01:15 +0000)]
Fix last change.

21 years agodoc/
Marcus Brinkmann [Thu, 6 Feb 2003 20:09:24 +0000 (20:09 +0000)]
doc/
2003-02-06  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Cancelling an Operation): Removed.
(Passphrase Callback): Document new type for GpgmePassphraseCb.

gpgme/
2003-02-06  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (GpgmePassphraseCb): Change type to return GpgmeError,
and add argument for returning the result string.
(gpgme_cancel): Remove prototype.
* gpgme.c (gpgme_cancel): Remove function.
* context.h (struct gpgme_context_s): Remove member cancel.
* passphrase.c (_gpgme_passphrase_command_handler): Call the
passphrase callback in the new way.

tests/
2003-02-06  Marcus Brinkmann  <marcus@g10code.de>

* gpg/t-decrypt.c (passphrase_cb): Fix to new prototype.
* gpg/t-decrypt-verify.c (passphrase_cb): Likewise.
* gpg/t-edit.c (passphrase_cb): Likewise.
* gpg/t-encrypt-sign.c (passphrase_cb): Likewise.
* gpg/t-encrypt-sym.c (passphrase_cb): Likewise.
* gpg/t-sign.c (passphrase_cb): Likewise.
* gpg/t-signers.c (passphrase_cb): Likewise.

21 years ago2003-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 6 Feb 2003 11:45:05 +0000 (11:45 +0000)]
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* edit.c (_gpgme_edit_status_handler): Call the progress status
handler.

21 years ago2003-02-05 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 5 Feb 2003 10:40:05 +0000 (10:40 +0000)]
2003-02-05  Marcus Brinkmann  <marcus@g10code.de>

* wait-user.c (_gpgme_wait_user_remove_io_cb): Move check for no
I/O handlers left to ...
(_gpgme_user_io_cb_handler): ... here.

21 years ago2003-02-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Feb 2003 20:56:50 +0000 (20:56 +0000)]
2003-02-04  Marcus Brinkmann  <marcus@g10code.de>

* trustlist.c (trustlist_colon_handler): Release ITEM if name
could not be allocated.
(gpgme_trust_item_release): Only release name if it is allocated.
Reported by Marc Mutz <Marc.Mutz@uni-bielefeld.de>.

21 years ago2003-02-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Feb 2003 16:08:50 +0000 (16:08 +0000)]
2003-02-04  Marcus Brinkmann  <marcus@g10code.de>

* rungpg.c (read_status): If he status handler returns an error,
return it.
(status_handler): If read_status fails, just return the error.

21 years ago2003-02-01 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 4 Feb 2003 14:57:41 +0000 (14:57 +0000)]
2003-02-01  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (start): Handle all errors, not only most of
them.
(xtoi_1, xtoi_2): Remove macro.
(status_handler): Replace use of xtoi_2 with _gpgme_hextobyte.

21 years ago2003-02-01 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sat, 1 Feb 2003 18:53:06 +0000 (18:53 +0000)]
2003-02-01  Marcus Brinkmann  <marcus@g10code.de>

* assuan/: Update files to 2002-11-10 version of assuan.

gpgme/
2003-02-01  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (map_assuan_error): Replace
ASSUAN_Bad_Certificate_Path with ASSUAN_Bad_Certificate_Chain.
(gpgsm_new): Use assuan_pipe_connect instead assuan_pipe_connect2.

* util.h (DIMof): Remove macro.

* ops.h (_gpgme_op_event_cb, _gpgme_op_event_cb_user,
_gpgme_data_unread): Prototypes removed.

21 years ago2003-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 30 Jan 2003 23:02:14 +0000 (23:02 +0000)]
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* types.h: File removed.
* Makefile.am (libgpgme_la_SOURCES): Remove types.h.
* io.h (struct spawn_fd_item_s): Do not include "types.h".
* key.h: Likewise.
* context.h: Likewise.
* cengine-gpgsm.h: Likewise.
* engine.h: Include "gpgme.h" instead "types.h".  Add prototypes
for EngineStatusHandler, EngineColonLineHandler and
EngineCommandHandler.
(_gpgme_engine_set_status_handler): Change parameter type from
GpgmeStatusHandler to EngineStatusHandler.
(_gpgme_engine_set_command_handler): Change parameter type from
GpgmeCommandHandler to EngineCommandHandler.
(_gpgme_engine_set_colon_line_handler): Change parameter type from
GpgmeColonLineHandler to EngineColonLineHandler.
* engine-backend.h: Include "engine.h" instead "types.h".
(struct engine_ops): Change Gpgme*Handler parameters in members
set_command_handler, set_colon_line_handler and set_status_handler
to Engine*Handler.
* engine.c (_gpgme_engine_set_status_handler): Change parameter
type from GpgmeStatusHandler to EngineStatusHandler.
(_gpgme_engine_set_command_handler): Change parameter type from
GpgmeCommandHandler to EngineCommandHandler.
(_gpgme_engine_set_colon_line_handler): Change parameter type from
GpgmeColonLineHandler to EngineColonLineHandler.
* rungpg.c (struct gpg_object_s): Change type of member status.fnc
from GpgmeStatusHandler to EngineStatusHandler.  Change type of
member colon.fnc from GpgmeColonLineHandler to
EngineColonLineHandler.  Change type of member cmd.fnc from
GpgmeCommandHandler to EngineCommandHandler.
* engine-gpgsm.c (struct gpgsm_object_s): Likewise.
* rungpg.c (gpg_set_status_handler): Change parameter type from
GpgmeStatusHandler to EngineStatusHandler.
* engine-gpgsm.c (gpgsm_set_status_handler): Likewise.
(assuan_simple_command): Likewise.
* rungpg.c (gpg_set_colon_line_handler): Change parameter type
from GpgmeColonLineHandler to EngineColonLineHandler.
* engine-gpgsm.c (gpgsm_set_colon_line_handler): Likewise.
* rungpg.c (gpg_set_command_handler): Change parameter type from
GpgmeCommandHandler to EngineCommandHandler.

21 years ago2003-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 30 Jan 2003 22:40:05 +0000 (22:40 +0000)]
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* engine-gpgsm.c (status_handler): Do not close status fd at end
of function.

* ops.h (_gpgme_op_data_lookup): Add prototype.
* op-support.c: Include <stdlib.h>.
(_gpgme_op_data_lookup): New function.
* decrypt.c (_gpgme_release_decrypt_result): Function removed.
(struct decrypt_result_s): Rename to ...
(struct decrypt_resul): ... this.
(DecryptResult): New type.
(_gpgme_decrypt_status_handler): Don't use
test_and_allocate_result, but use _gpgme_op_data_lookup to
retrieve result data object.
* sign.c (_gpgme_release_sign_result): Function removed.
(release_sign_result): New function.
(struct sign_result_s): Rename to ...
(struct sign_result): ... this.
(SignResult): New type.
(_gpgme_sign_status_handler): Don't use
test_and_allocate_result, but use _gpgme_op_data_lookup to
retrieve result data object.
* encrypt.c (struct encrypt_result_s): Rename to ...
(struct encrypt_result): ... this.
(_gpgme_release_encrypt_result): Function removed.
(release_encrypt_result): New function.
(_gpgme_encrypt_status_handler): Don't use
test_and_allocate_result, but use _gpgme_op_data_lookup to
retrieve result data object.
* verify.c (struct verify_result_s): Rename to ...
(struct verify_result): ... this.  Remove member next.
(VerifyResult): New type.
(_gpgme_release_verify_result): Function removed.
(release_verify_result): New function.
(finish_sig): Change first argument to type VerifyResult.  Diddle
the type of the op_data structure.
(add_notation): Change first argument to type VerifyResult.
(_gpgme_verify_status_handler): Don't use
test_and_allocate_result, but use _gpgme_op_data_lookup to
retrieve result data object.
* passphrase.c (struct passphrase_result_s): Rename to ...
(struct passphrase_result): ... this.  Remove member next.
(PassphraseResult): New type.
(_gpgme_release_passphrase_result): Function removed.
(release_passphrase_result): New function.
(_gpgme_passphrase_status_handler): Don't use
test_and_allocate_result, but use _gpgme_op_data_lookup to
retrieve result data object.
(_gpgme_passphrase_command_handler): Likewise.
* keylist.c (struct keylist_result_s): Rename to ...
(struct keylist_result): ... this.  Remove member next.
(KeylistResult): New type.
(_gpgme_release_keylist_result): Function removed.
(release_keylist_result): New function.
(keylist_status_handler): Don't use
test_and_allocate_result, but use _gpgme_op_data_lookup to
retrieve result data object.
* edit.c (struct edit_result_s): Rename to ...
(struct edit_result): ... this.  Remove member next.
(EditResult): New type.
(_gpgme_release_edit_result): Function removed.
(release_edit_result): New function.
(edit_status_handler): Don't use
test_and_allocate_result, but use _gpgme_op_data_lookup to
retrieve result data object.
(command_handler): Likewise.
* types.h (DecryptResult, SignResult, EncryptResult,
PassphraseResult, ImportResult, DeleteResult, GenKeyResult,
KeylistResult, EditResult): Types removed.
* ops.h: Don't include "types.h", but "gpgme.h" and "context.h".
(test_and_allocate_result): Remove macro.
(_gpgme_release_decrypt_result): Remove prototype.
(_gpgme_decrypt_result): Remove prototype.
(_gpgme_release_sign_result): Remove prototype.
(_gpgme_release_encrypt_result): Remove prototype.
(_gpgme_release_passphrase_result): Remove prototype.
(_gpgme_release_import_result): Remove prototype.
(_gpgme_release_delete_result): Remove prototype.
(_gpgme_release_genkey_result): Remove prototype.
(_gpgme_release_keylist_result): Remove prototype.
(_gpgme_release_edit_result): Remove prototype.
(_gpgme_release_verify_result): Remove prototype.
* gpgme.c (_gpgme_release_result): Rewritten.
* context.h (enum ctx_op_data_type): New enum.
(struct ctx_op_data): New structure.
(struct gpgme_context_s): Replace the member result with a member
op_data.
(fail_on_pending_request): Remove macro.
* op-support.c (_gpgme_op_reset): Expand macro
fail_on_pending_request.
* util.h: Don't include "types.h" or "debug.h", but include "gpgme.h".

21 years agoFix comment indentation.
Marcus Brinkmann [Thu, 30 Jan 2003 22:01:01 +0000 (22:01 +0000)]
Fix comment indentation.

21 years ago2003-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 30 Jan 2003 17:28:10 +0000 (17:28 +0000)]
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* types.h (EngineObject): Move typedef to ...
* engine.h: ... here.
* types.h (GpgObject): Move typedef to ...
* rungpg.c: ... here.
* types.h (GpgsmObject): Move typedef to ...
* engine-gpgsm.c: ... here.

21 years ago2003-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 30 Jan 2003 17:12:07 +0000 (17:12 +0000)]
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* util.h (return_if_fail, return_null_if_fail,
return_val_if_fail): Remove macro.
* gpgme.c (gpgme_cancel): Don't use return_if_fail.
* key.c (gpgme_key_ref): Likewise.
* signers.c (gpgme_signers_enum): Likewise.
(gpgme_signers_clear): Likewise.

21 years agoSmall beautification.
Marcus Brinkmann [Thu, 30 Jan 2003 13:12:43 +0000 (13:12 +0000)]
Small beautification.

21 years agodoc/
Marcus Brinkmann [Thu, 30 Jan 2003 13:11:25 +0000 (13:11 +0000)]
doc/
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Engine Information): Rename member part to
file_name.

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

* engine-backend.h (struct engine_ops): Rename get_path to
get_file_name.
* gpgme.h (struct _gpgme_engine_info): Rename member path to
file_name.
* version.c: Do not include <stdio.h>, <stdlib.h>, context.h and
util.h.  Other clean ups.
(parse_version_number): Protect more seriously against
overflow.
(gpgme_get_engine_info): Move to ...
* engine.c (gpgme_get_engine_info): ... here.
(_gpgme_engine_get_info): Function removed.
(_gpgme_engine_get_path): Make static and rename to ...
(engine_get_file_name): .. this.
(_gpgme_engine_get_version): Make static and rename to ...
(engine_get_version): ... this.
(_gpgme_engine_get_req_version): Make static and rename to ...
(engine_get_req_version): ... this.
* engine.h (_gpgme_engine_get_path, _gpgme_engine_get_version,
_gpgme_engine_req_version, _gpgme_engine_get_info.): Remove
prototypes.

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

* t-engine-info.c: Use file_name instead path throughout.

21 years ago2003-01-30 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 30 Jan 2003 12:01:21 +0000 (12:01 +0000)]
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Protocols and Engines): Document
gpgme_get_protocol_name.

21 years agoAdd new interfaces.
Marcus Brinkmann [Thu, 30 Jan 2003 11:58:42 +0000 (11:58 +0000)]
Add new interfaces.

21 years agodoc/
Marcus Brinkmann [Thu, 30 Jan 2003 11:54:23 +0000 (11:54 +0000)]
doc/
2003-01-30  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Engine Information): Rewritten.

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

* gpgme.h (enum GpgmeProtocol): Remove GPGME_PROTOCOL_AUTO.
* gpgme.c (gpgme_set_protocol): Don't handle GPGME_PROTOCOL_AUTO.
(gpgme_get_protocol_name): New function.

* engine-backend.h (struct engine_ops): New member
get_req_version, remove member check_version.
* engine.h (_gpgme_Engine_get_version): New prototype.
* rungpg.c (gpg_get_req_version): New function.
(gpg_check_version): Function removed.
(_gpgme_engine_ops_gpg): Add gpg_get_req_version, remove
gpg_check_version.
* engine-gpgsm.c (gpgsm_get_req_version): New function.
(gpgsm_check_version): Function removed.
(_gpgme_engine_ops_gpgsm): Add gpgsm_get_req_version, remove
gpgsm_check_version.
* engine.c: Include ops.h.
 (_gpgme_engine_get_req_version): New function.
(gpgme_engine_check_version): Rewritten.
* version.c (gpgme_get_engine_info): Rewritten.
* gpgme.h (gpgme_engine_info): New structure.
(GpgmeEngineInfo): New type.

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

* Makefile.am (TESTS): Add t-engine-info.
* t-engine-info.c: New file.
* gpg/t-encrypt.c (main): Don't print engine info.
* gpg/t-eventloop.c (main): Likewise.
* gpg/t-encrypt-sign.c (main): Likewise.
* gpgsm/t-encrypt.c (main): Likewise.

21 years ago2003-01-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 29 Jan 2003 20:18:52 +0000 (20:18 +0000)]
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* bonobo/gpgme.c, bonobo/main.c, bonobo/main.h, bonobo/Makefile,
bonobo/Makefile.am, bonobo/Makefile.in: Dead files removed.
* configure.ac: Remove automake conditional BUILD_BONOBO
(AC_CONFIG_FILES): Remove bonobo/Makefile.
* Makefile.am (bonobo): Remove variable.
(SUBDIRS): Remove ${bonobo}.

21 years agoFix copyright year.
Marcus Brinkmann [Wed, 29 Jan 2003 20:03:24 +0000 (20:03 +0000)]
Fix copyright year.

21 years ago2003-01-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 29 Jan 2003 19:50:43 +0000 (19:50 +0000)]
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Remove all uses of GNUPG_CHECK_TYPEDEF, for byte,
ushort, ulong, u16 and u32.
* acinclude.m4 (GNUPG_CHECK_TYPEDEF): Remove macro.

gpgme/
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* types.h: Remove byte and ulong types.
* util.h (_gpgme_hextobyte): Change prototype to unsigned char
instead byte.
* conversion.c (_gpgme_hextobyte): Change argument to unsigned
char instead byte.
(_gpgme_decode_c_string): Likewise, and beautify.  Also support a
few more escaped characters.  Be more strict about buffer size.
(_gpgme_data_append_percentstring_for_xml): Change type of SRC,
BUF and DST to unsigned char instead byte.
* progress.c (_gpgme_progress_status_handler): Use unsigned char
instead byte.
* debug.c (trim_spaces): Likewise.

21 years ago2003-01-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 29 Jan 2003 16:10:35 +0000 (16:10 +0000)]
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* util.h (mk_error): Remove macro.
* conversion.c, data.c, data-compat.c, decrypt.c, delete.c,
edit.c, encrypt.c, encrypt-sign.c, engine.c, engine-gpgsm.c,
export.c, genkey.c, gpgme.c, import.c, key.c, keylist.c,
passphrase.c, progress.c, recipient.c, rungpg.c, sign.c,
signers.c, trustlist.c, verify.c, wait.c, wait-global.c,
wait-private (literally everywhere): Expand the mk_error macro.

21 years agoAdd some items, remove obsolete item about pipemode.
Marcus Brinkmann [Wed, 29 Jan 2003 15:41:25 +0000 (15:41 +0000)]
Add some items, remove obsolete item about pipemode.

21 years ago2003-01-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 29 Jan 2003 15:32:15 +0000 (15:32 +0000)]
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* context.h (wait_on_request_or_fail): Remove macro.

21 years agodoc/
Marcus Brinkmann [Wed, 29 Jan 2003 15:20:58 +0000 (15:20 +0000)]
doc/
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (I/O Callback Interface): Document new even
GPGME_EVENT_START.
(Waiting For Completion): Document new possible return values.
(I/O Callback Interface): Document return type of GpgmeIOCb.

gpgme/
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* context.h (gpgme_context_s): Remove member ERROR.
* types.h (GpgmeStatusHandler): Change return type to GpgmeError.
(GpgmeCommandHandler): Change return type to GpgmeError and add
new argument RESULT.
* gpgme.h (GpgmeIOCb): Change return type to GpgmeError.
(GpgmeEventIO): New event GPGME_EVENT_START.
(GpgmeIdleFunc): Remove type.
(gpgme_register_idle): Remove prototype.
* data.c: Include <assert.h>.
(_gpgme_data_inbound_handler): Change return type to GpgmeError.
Return any error instead ignoring it, don't close file descriptor
on error.
(_gpgme_data_outbound_handler): Likewise.
* decrypt.c: Do not include <stdio.h>, <string.h> and <assert.h>.
(_gpgme_decrypt_status_handler): Change return type to GpgmeError.
Return error instead setting ctx->error.  Return success at end of
function.
(gpgme_op_decrypt): Don't work around the old kludge anymore.
* decrypt-verify.c (decrypt_verify_status_handler): Change return
type to GpgmeError.  Return possible errors.
* delete.c: Do not include <stdio.h>, <string.h>, <time.h> and
<assert.h>.
(delete_status_handler): Change return type to GpgmeError.  Return
error instead setting ctx->error.  Return success at end of
function.
* edit.c: Do not include <stdio.h> and <string.h>.
(_gpgme_edit_status_handler): Change type to GpgmeError,
make static and rename to ...
(edit_status_handler): ... this.  Return error directly.
(command_handler): Change return type to GpgmeError, add result
argument.  Return error directly.
* encrypt.c (status_handler_finish): Remove function.
(_gpgme_encrypt_status_handler): Change return type to GpgmeError.
Return error directly.
(_gpgme_encrypt_sym_status_handler): Likewise.
* encrypt-sign.c (encrypt_sign_status_handler): Likewise.
* engine-gpgsm.c (close_notify_handler): Do not signal done event
anymore.
(status_handler): Change return type to GpgmeError.  Diddle things
around a bit to return errors directly.
(start): Send start event.
* export.c: Do not include <stdio.h>, <string.h> and <assert.h>.
(export_status_handler): Change return type to GpgmeError.  Don't
check ctx->error.
* genkey.c: Do not include <stdio.h> and <assert.h>.
(genkey_status_handler): Change return type to GpgmeError.  Don't
check ctx->error.  Return errors directly.
* gpgme.c (_gpgme_release_result): Do not initialize ctx->error.
(_gpgme_op_event_cb): Function removed.
(_gpgme_op_event_cb_user): Likewise.
* import.c: Do not include <stdio.h>, <string.h> and <assert.h>.
(import_status_handler): Change return type to GpgmeError.  Don't
check ctx->error.
* keylist.c (keylist_colon_handler, keylist_status_handler, finish_key):
Change return type to GpgmeError, return error directly.
* Makefile (libgpgme_la_SOURCES): Add wait-global.c,
wait-private.c and wait-user.c
* ops.h (test_and_allocate_result): Return error instead setting
ctx->error.
(_gpgme_data_inbound_handler, _gpgme_data_outbound_handler,
_gpgme_verify_status_handler, _gpgme_decrypt_status_handler,
_gpgme_sign_status_handler, _gpgme_encrypt_staus_handler,
_gpgme_passphrase_status_handler, _gpgme_progress_status_handler):
Change return type to GpgmeError.
(_gpgme_passphease_command_handler): Change return type to
GpgmeError and add new argument RESULT.
* op-support.c: Use new callback functions, and change private
data to ctx everywhere.
* passphrase.c (_gpgme_passphrase_status_handler): Change return
type to GpgmeError, return error directly.
(_gpgme_passphrase_command_handler): Change return type to
GpgmeError, add result argument.  Return results accordingly.
* progress.c (_gpgme_progress_status_handler): Change return type
to GpgmeError, return errors directly.
* rungpg.c (status_handler): Change return type to GpgmeError.
Return error directly.
(close_notify_handler): Don't send done event.
(colon_line_handler): Change return type to GpgmeError, return
errors directly.
* rungpg.c (start): Send start event.
* sign.c (_gpgme_sign_status_handler): Change return type to
GpgmeError, return errors directly.
* trustlist.c (trustlist_status_handler): Change return type to
GpgmeError.  Return 0.
(trustlist_colon_handler): Change return type GpgmeError.  Return
errors directly.
* verify.c (add_notation): Change return type to GpgmeError,
return errors directly.
(_gpgme_verify_status_handler): Likewise.
* wait.h (struct fd_table): Remove lock member.
(struct wait_item_s): Moved here from wait.c.
(struct tag): New structure.
(_gpgme_wait_event_cb): Remove prototype.
(_gpgme_wait_private_event_cb, _gpgme_wait_global_event_cb,
_gpgme_wait_user_add_io_cb, _gpgme_wait_user_remove_io_cb,
_gpgme_wait_user_event_io_cb): New prototypes.
* wait.c: Don't include <stdio.h>.
(ftd_global, ctx_done_list, ctx_done_list_size,
ctx_done_list_length, ctx_done_list_lock, idle_function): Remove
global variable.
(gpgme_register_idle, do_select, _gpgme_wait_event_cb): Remove
function.
(gpgme_wait): Move to file wait-global.c.
(_gpgme_add_io_cb): Take ctx as private argument, initialize ctx
member in wait item and tag.
(_gpgme_remove_io_cb): Take ctx from tag.  Don't use FDT lock.
(_gpgme_wait_one, _gpgme_wait_on_condition): Move to
wait-private.c.
(gpgme_fd_table_init): Don't initialize FDT->lock.
(gpgme_fd_table_deinit): Don't destroy FDT->lock.
(_gpgme_fd_table_put): Make static and rename to ...
(fd_table_put): ... this function.  Don't use FDT->lock.
(struct wait_item_s): Move to wait.h.
* wait-global.c: New file.
* wait-private.c: New file.
* wait-user.c: New file.

21 years ago2003-01-29 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 29 Jan 2003 13:52:08 +0000 (13:52 +0000)]
2003-01-29  Marcus Brinkmann  <marcus@g10code.de>

* key.c (gpgme_key_sig_get_string_attr): Use validity_to_string
instead otrust_to_string to calculate validity.

21 years ago2003-01-19 Miguel Coca <mcoca@gnu.org>
Marcus Brinkmann [Sun, 19 Jan 2003 22:05:40 +0000 (22:05 +0000)]
2003-01-19  Miguel Coca  <mcoca@gnu.org>

* w32-io.c (_gpgme_io_select): Add missing argument in calls to
DEBUG_BEGIN.
* w32-util.c: Include "sema.h".
(find_program_in_registry): Change DEBUG1 to DEBUG2, fixes compilation
error.

21 years ago2003-01-19 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 19 Jan 2003 21:51:07 +0000 (21:51 +0000)]
2003-01-19  Marcus Brinkmann  <marcus@g10code.de>

* rungpg.c (_gpgme_engine_ops_gpg): Remove gpg_start.
(gpg_start): Rename to ...
(start): ... this function.  Change arguments to GpgObject.
(gpg_decrypt): Call start.
(gpg_edit): Likewise.
(gpg_encrypt): Likewise.
(gpg_encrypt_sign): Likewise.
(gpg_export): Likewise.
(gpg_import): Likewise.
(gpg_keylist): Likewise.
(gpg_keylist_ext): Likewise.
(gpg_trustlist): Likewise.
(gpg_verify): Likewise.

* engine-gpgsm.c (_gpgme_engine_ops_encrypt): Remove gpgsm_start.
(gpgsm_start): Rename to ...
(struct gpgsm_object_s): Remove member command.
(gpgsm_release): Don't free command.
(start): ... this function.  Change arguments to GpgsmObject and
const char *.
(gpgsm_decrypt): Call start.
(gpgsm_delete): Likewise.
(gpgsm_encrypt): Likewise.
(gpgsm_export): Likewise.
(gpgsm_genkey): Likewise.
(gpgsm_import): Likewise.
(gpgsm_keylist): Likewise.
(gpgsm_keylist_ext): Likewise.
(gpgsm_verify): Likewise.

* decrypt.c (_gpgme_decrypt_start): Don't call
_gpgme_engine_start.
* delete.c (_gpgme_op_delete_start): Likewise.
* edit.c (_gpgme_op_edit_start): Likewise.
* encrypt.c (_gpgme_op_encrypt_start):
* encrypt-sign.c (_gpgme_op_encrypt_sign_start):
* export.c (_gpgme_op_export_start): Likewise.
* genkey.c (_gpgme_op_genkey_start): Likewise.
* import.c (_gpgme_op_import_start): Likewise.
* keylist.c (gpgme_op_keylist_ext_start): Likewise.
(gpgme_op_keylist_start): Likewise.
* sign.c (_gpgme_op_sign_start): Likewise.
* trustlist.c (gpgme_op_trustlist_start): Likewise.
* verify.c (_gpgme_op_verify_start): Likewise.

* engine-backend.h (struct engine_ops): Remove member start.

* engine.h (_gpgme_engine_start): Remove prototype.
* engine.c (_gpgme_engine_start): Remove function.

21 years ago* keylist.c (set_mainkey_capability): Handle 'd' and 'D' used
Werner Koch [Mon, 6 Jan 2003 21:06:23 +0000 (21:06 +0000)]
* keylist.c (set_mainkey_capability): Handle 'd' and 'D' used
since gpg 1.3 to denote disabled keys.

21 years ago2003-01-06 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 6 Jan 2003 14:07:56 +0000 (14:07 +0000)]
2003-01-06  Marcus Brinkmann  <marcus@g10code.de>

* data-mem.c: Include <string.h>.
* engine.c: Likewise.

21 years ago2003-01-06 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 5 Jan 2003 23:37:14 +0000 (23:37 +0000)]
2003-01-06  Marcus Brinkmann  <marcus@g10code.de>

* Makefile.am (libgpgme_la_DEPENDENCIES): Correct bug in last change.

21 years agodoc/
Marcus Brinkmann [Tue, 24 Dec 2002 13:08:56 +0000 (13:08 +0000)]
doc/
2002-12-24  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Verify): Drop R_STAT argument in gpgme_op_verify.
* gpgme.texi (Decrypt and Verify): Likewise for
gpgme_op_decrypt_verify.

gpgme/
2002-12-24  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h (gpgme_op_verify, gpgme_op_decrypt_verify): Drop R_STAT
argument.
* decrypt-verify.c (gpgme_op_decrypt_verify): Drop R_STAT
argument.
* verify.c (gpgme_op_verify): Drop R_STAT argument.
(_gpgme_intersect_stati): Function removed.
* ops.h (_gpgme_intersect_stati): Remove prototype.

tests/
2002-12-24  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/t-verify.c (main): Adjust caller of gpgme_op_verify.
* gpg/t-verify.c (main): Likewise.
* gpg/t-decrypt-verify.c (main): Likewise for
gpgme_op_decrypt_verify.

21 years ago2002-12-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 23:47:27 +0000 (23:47 +0000)]
2002-12-24  Marcus Brinkmann  <marcus@g10code.de>

* libgpgme.vers: New file.
* Makefile.am (EXTRA_DIST): Add libgpgme.vers.
(libgpgme_version_script_cmd): New variable.
(libgpgme_la_LDFLAGS): Add libgpgme_version_script_cmd here.
(libgpgme_la_DEPENDENCIES): New variable.

21 years ago2002-12-24 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 23:45:28 +0000 (23:45 +0000)]
2002-12-24  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: New conditional HAVE_LD_VERSION_SCRIPT.
Call AC_CANONICAL_HOST, use host instead target.

gpgme/
2002-12-24  Marcus Brinkmann  <marcus@g10code.de>

* libgpgme.vers: New file.
* Makefile.am (EXTRA_DIST): Add libgpgme.vers.
(libgpgme_version_script_cmd): New variable.
(libgpgme_la_LDFLAGS): Add libgpgme_version_script_cmd here.
(libgpgme_la_DEPENDENCIES): New variable.

21 years agoFix last change.
Marcus Brinkmann [Mon, 23 Dec 2002 23:44:22 +0000 (23:44 +0000)]
Fix last change.

21 years agoFingerprints of subkeys are available.
Marcus Brinkmann [Mon, 23 Dec 2002 22:51:33 +0000 (22:51 +0000)]
Fingerprints of subkeys are available.

21 years agoI believe this was fixed a while ago.
Marcus Brinkmann [Mon, 23 Dec 2002 22:49:09 +0000 (22:49 +0000)]
I believe this was fixed a while ago.

21 years agodoc/
Marcus Brinkmann [Mon, 23 Dec 2002 22:34:25 +0000 (22:34 +0000)]
doc/
2002-12-23  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Information About Keys): Document that
GPGME_ATTR_IS_SECRET is not representable as a string anymore.

21 years ago2002-12-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 22:31:03 +0000 (22:31 +0000)]
2002-12-23  Marcus Brinkmann  <marcus@g10code.de>

* key.c (gpgme_key_get_string_attr): Don't accept GPGME_ATTR_IS_SECRET.
(otrust_to_string): New function.
(gpgme_key_get_as_xml): Use it.
(validity_to_string): New function.
(gpgme_key_get_string_attr): Beautify using above functions.
(gpgme_key_get_ulong_attr): Likewise.

21 years ago2002-12-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 21:28:35 +0000 (21:28 +0000)]
2002-12-23  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Bump up to 0.4.1.

Released 0.4.0.

21 years agoAdded new items. gpgme-0-4-0
Marcus Brinkmann [Mon, 23 Dec 2002 21:19:23 +0000 (21:19 +0000)]
Added new items.

21 years ago2002-12-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 21:06:38 +0000 (21:06 +0000)]
2002-12-23  Marcus Brinkmann  <marcus@g10code.de>

* gpgsm/Makefile.am (./gpgsm.conf): Add a faked system time to
avoid certification's expiry.
* gpgsm/t-encrypt.c (main): Use the short certification name.

21 years ago2002-12-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 20:29:33 +0000 (20:29 +0000)]
2002-12-23  Marcus Brinkmann  <marcus@g10code.de>

* autogen.sh (automake_vers): Require 1.7 (really 1.7.1) for the
conditional source distribution bug fix.

21 years ago2002-12-23 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 17:47:01 +0000 (17:47 +0000)]
2002-12-23  Marcus Brinkmann  <marcus@g10code.de>

* data-mem.c (mem_release): Fix gcc warning.
* data-user.c (user_release): Likewise.

21 years ago2002-12-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 23 Dec 2002 17:12:48 +0000 (17:12 +0000)]
2002-12-22  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Key Signatures): New section.
(Listing Keys): Add gpgme_get_key.

21 years agoAdd 0.3 branch changes.
Marcus Brinkmann [Sun, 22 Dec 2002 13:55:00 +0000 (13:55 +0000)]
Add 0.3 branch changes.

21 years ago2002-12-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Sun, 8 Dec 2002 13:54:11 +0000 (13:54 +0000)]
2002-12-08  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac (LIBGPGME_LT_CURRENT): Increase by one.
(LIBGPGME_LT_AGE, LIBGPGME_LT_REVISION): Set to 0.

21 years agoFix bugs in last change.
Marcus Brinkmann [Fri, 6 Dec 2002 22:27:12 +0000 (22:27 +0000)]
Fix bugs in last change.

21 years agodoc/
Marcus Brinkmann [Fri, 6 Dec 2002 22:06:25 +0000 (22:06 +0000)]
doc/
2002-12-06  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.texi (Memory Based Data Buffers): New subsection.
(File Based Data Buffers): Likewise.
(Callback Based Data Buffers): Likewise.
(Manipulating Data Buffers): Update interfaces.  Add
gpgme_data_seek.
* gpgme.texi (Engine Version Check): Remove gpgme_chec_engine.

gpgme/
2002-12-06  Marcus Brinkmann  <marcus@g10code.de>

* data.h (gpgme_data_release_cb): Change return type to void.
(gpgme_data_read_cb): Change return type to ssize_t.
* data.c (gpgme_data_read): Likewise.
* data-stream.c (stream_read): Likewise.
* data-fd.c (fd_read): Likewise.
* data-mem.c (mem_read): Likewise.
(mem_release): Change return type to void.
* data-user.c (user_read): Change return type to ssize_t.
(user_release): Change return type to void.
* data-compat.c (old_user_read): Change return type to ssize_t.
* gpgme.h (GpgmeDataReadCb): Likewise.
(gpgme_data_read): Likewise.
(GpgmeDataSeekCb): Change return type to off_t.

21 years ago2002-12-04 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Wed, 4 Dec 2002 16:28:34 +0000 (16:28 +0000)]
2002-12-04  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h: Add prototype for gpgme_get_key.
* key.c (gpgme_get_key): New function.
* verify.c (gpgme_get_sig_key): Rewrite using gpgme_get_key.

* gpgme.h: Add prototypes for new interfaces
gpgme_key_sig_get_string_attr and gpgme_key_get_ulong_attr.
(enum GpgmeAttr): New attribute GPGME_ATTR_SIG_CLASS.
* gpgme.c (gpgme_set_keylist_mode): Allow GPGME_KEYLIST_MODE_SIGS.
* key.h (struct certsig_s): New members ALGO, NAME_PART,
EMAIL_PART, COMMENT_PART, NAME, SIG_STAT and SIG_CLASS.

* conversion.c (_gpgme_decode_c_string): Add new parameter LEN.
Use that to determine if allocation is desired or not.
* util.h: Adjust prototype of _gpgme_decode_c_string.
* keylist.c (keylist_colon_handler): Adjust caller of
_gpgme_decode_c_string.

* key.h (struct gpgme_key_s): New member last_uid.
* key.c (_gpgme_key_append_name): Rewritten using
_gpgme_decode_c_string and the last_uid pointer.
(my_isdigit): Macro removed.
(ALLOC_CHUNK): Likewise.
* keylist.c (set_userid_flags): Use last_uid member of KEY.

* context.h (struct user_id_s): New member last_certsig.
* key.h: Add prototype for _gpgme_key_add_certsig.
* key.c (_gpgme_key_add_certsig): New function.
(set_user_id_part): Move function before _gpgme_key_add_certsig.
(parse_user_id): Change first argument to SRC, add new arguments
NAME, EMAIL and COMMENT.  Change code to use these arguments
instead going through UID.  Move function before
_gpgme_add_certsig.
(parse_x509_user_id): Likewise.
(_gpgme_key_append_name): Adjust arguments to parse_x509_user_id
and parse_user_id invocation.
(one_certsig_as_xml): New function.
(one_uid_as_xml): Print signatures.
* context.h (struct gpgme_context_s): New member TMP_UID.
* keylist.c (keylist_colon_handler): Rewritten, implement "sig"
record entries.

* key.c (get_certsig): New function.
(gpgme_key_sig_get_string_attr): Likewise.
(gpgme_key_sig_get_ulong_attr): Likewise.

* keylist.c: Include <ctype.h>.
(my_isdigit): Macro removed.
(set_mainkey_trust_info): Use isdigit, not my_isdigit.
(set_userid_flags): Likewise.
(set_subkey_trust_info): Likewise.
(set_ownertrust): Likewise.
(finish_key): Move function up a bit and remove prototype.

* rungpg.c (gpg_keylist_ext): Correct precedence of signature
listing mode.
(gpg_keylist_ext): Implement signature listing mode.

21 years agoFix spelling of my name.
Marcus Brinkmann [Thu, 28 Nov 2002 20:20:46 +0000 (20:20 +0000)]
Fix spelling of my name.

21 years ago2002-11-28 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 28 Nov 2002 19:39:48 +0000 (19:39 +0000)]
2002-11-28  Marcus Brinkmann  <marcus@g10code.de>

* NEWS: Add note about moving "gpgmeplug" to the "cryptplug"
package.
* README: Remove instructions related to "gpgmeplug".
* configure.ac: Remove enable option "gpgmeplug" and automake
conditional BUILD_GPGMEPLUG, as well as the status info about it.
(GPGMEPLUG): Remove variable.
* Makefile.am (gpgmeplug): Remove variable.
(SUBDIRS): Remove ${gpgmeplug}.
* cryptplug.h, gpgme-openpgp.c, gpgmeplug.dox, gpgme-smime.c,
Makefile.am, gpgmeplug.c, ChangeLog: Files removed.
CVSk: ----------------------------------------------------------------------

22 years ago2002-11-25 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Mon, 25 Nov 2002 21:12:46 +0000 (21:12 +0000)]
2002-11-25  Marcus Brinkmann  <marcus@g10code.de>

* rungpg.c (_gpgme_gpg_spawn): Do not set parent fds to -1.
* posix-io.c (_gpgme_io_spawn): Call _gpgme_io_close instead close
for parent fds.
* w32-io.c (_gpgme_io_spawn): Call _gpgme_io_close instead
CloseHandle for parent fds.

22 years ago2002-11-22 Werner Koch <wk@gnupg.org>
Marcus Brinkmann [Fri, 22 Nov 2002 17:45:55 +0000 (17:45 +0000)]
2002-11-22  Werner Koch  <wk@gnupg.org>

* engine-gpgsm.c (_gpgme_gpgsm_new): Save the result of a first
setlocale before doing another setlocale.

22 years ago2002-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 22 Nov 2002 17:39:09 +0000 (17:39 +0000)]
2002-11-22  Marcus Brinkmann  <marcus@g10code.de>

* configure.ac: Disable GPGSM for all dosish systems.

22 years ago2002-11-22 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Fri, 22 Nov 2002 17:38:31 +0000 (17:38 +0000)]
2002-11-22  Marcus Brinkmann  <marcus@g10code.de>

* gpgme.h [_MSC_VER]: Define ssize_t as long.