| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
| |
* tests/gpg/t-wait.c [HAVE_W32_SYSTEM] (sleep): Use Sleep.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
| |
* src/assuan-support.c (my_read, my_write): Use ssize_t.
(my_socket, my_connect): Use int instead of assuan_fd_t for older
libassuan.
* tests/gpg/t-encrypt-large.c (read_cb, write_cb): Use gpgme_ssize_t.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
| |
* src/util.h (assuan_pid_t): Typedef if not available.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/assuan-support.c (my_spawn, my_waitpid): Use assuan_pid_t.
(my_socket, my_connect): Use assuan_fd_t.
* src/engine-gpg.c (start): Remove unused PID.
* src/engine-spawn.c (engspawn_start): Likewise.
* src/gpgme-w32spawn.c: Add util.h for assuan types.
* src/version.c: Likewise.
* src/wait-user.c: Likewise.
* src/posix-io.c (_gpgme_io_spawn): Use assuan_pid_t.
* src/priv-io.h (_gpgme_io_spawn): Likewise.
* src/w32-io.c (_gpgme_io_spawn): Likewise.
* src/wait-private.c: Include util.h earlier.
--
GnuPG-bug-id: 7968
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* src/Makefile.am (gpgme_w32spawn_CFLAGS): Add AM_CFLAGS.
* src/gpgme-w32spawn.c (my_spawn): GetProcAddress returns an address
for the symbol. The correctness should be checked by human when
writing the code (not by the function prototype).
--
GnuPG-bug-id: 7968
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
| |
* src/stpcpy.c (__stpcpy): Supply function prototype.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* src/engine-gpg.c (gpg_new): Do not pass option --display if DISPLAY
is set to the empty string.
* src/engine-gpgsm.c (gpgsm_new): Likewiese for sending the display
option.
* src/engine-g13.c (g13_new): Ditto.
* src/engine-assuan.c (llass_new): Ditto.
* src/engine-uiserver.c (uiserver_new): Ditto.
--
GnuPG-bug-id: 7919
|
| |
|
|
| |
--
|
| |
|
|
| |
--
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* doc/gpgme.texi (section Data type gpgme_subkey_t): Amend documentation
of keygrip member.
* src/gpgme.h.in (_gpgme_subkey): Ditto.
--
GnuPG-bug-id: 7883
|
| |
|
|
|
| |
* src/engine-gpgsm.c (gpgsm_assuan_simple_command): More tracing
calls.
|
| |
|
|
| |
--
|
| |
|
|
|
|
|
|
|
| |
* configure.ac: Use || in shell level, instead of -o of test.
--
GnuPG-bug-id: 7807
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
| |
--
|
| | |
|
| |
|
|
|
|
|
| |
--
See
GnuPG-bug-id: 7807
|
| |
|
|
|
|
| |
--
See
GnuPG-bug-id: 7807
|
| |
|
|
|
|
|
|
|
|
| |
* src/engine-gpgsm.c (gpgsm_assuan_simple_command): Take care about
diag output.
--
GnuPG-bug-id: 7759
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/engine-gpgsm.c (prepare): Move the first part from...
(start): ... here.
(gpgsm_decrypt, gpgsm_delete, gpgsm_encrypt)
(gpgsm_export, gpgsm_export_ext, gpgsm_genkey)
(gpgsm_import, gpgsm_keylist, gpgsm_keylist_ext)
(gpgsm_sign, gpgsm_verify, gpgsm_getauditlog)
(gpgsm_passwd): Follow the change.
--
GnuPG-bug-id: 7759
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
| |
--
|
| |
|
|
|
|
|
|
|
| |
* src/gpgme.h.in: Use forward declarations for the key objects.
--
We may need to have one forward declaration anyway. Use them now for
all objects so that the order of definitions doesn't matter and we can
avoid huge diffs due to re-arranging the layout of the header.
|
| |
|
|
|
| |
* src/key.c (_gpgme_key_add_sig): Rename to ...
(_gpgme_key_add_uid_sig): this.
|
| |
|
|
|
|
|
| |
* tools/gnupg-key-manage.c: new.
* tools/Makefile.am: New.
* configure.ac: Add Makefile.
* Makefile.am (SUBDIRS): Add tools directory.
|
| |
|
|
|
|
|
|
|
|
| |
* src/engine-gpg.c (gpg_getdirect): Initialize ERR to zero to satisfy
the loop condition.
--
Fixes-commit: 0a64c7d0c6d0463cf2e06b3a01ef5be4d879bcf0
Signed-off-by: Collin Funk <[email protected]>
|
| |
|
|
|
|
| |
* src/keylist.c (parse_sec_field15): Remove duplicate '0' character.
Signed-off-by: Collin Funk <[email protected]>
|
| |
|
|
| |
--
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* src/posix-io.c (max_fds_fallback): New.
[_SC_OPEN_MAX] (_gpgme_io_subsystem_init): Set max_fds_fallback.
(get_max_fds): Use max_fds_fallback.
--
GnuPG-bug-id: 7694
Fixes-commit: e8e5434cc4f5cc3c322659792cc1850a5c5b26b8
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
* src/posix-io.c (_gpgme_io_select_poll): Emit the file descriptor
information just like _gpgme_io_select_select.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* src/posix-io.c (get_max_fds): Return type is int.
Ifdef-out TRACE.
Remove call to sysconf.
Use long for R and POS.
Use aligned buffer for struct linux_dirent64.
--
GnuPG-bug-id: 7694
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
| |
--
|
| |
|
|
| |
--
|
| | |
|
| |
|
|
| |
--
|
| |
|
|
|
|
|
|
| |
* src/json-common.h (GPGME_JSON_COMMON_H): Fix guard.
--
Reported-by: Collin Funk <[email protected]>
Fixes-commit: d7267db472a4e4f65c8139f68d9d976c64b79636
|
| |
|
|
|
| |
* src/json-core.c (json_core_process_request): Fix leak and worng
formatting in interactive mode in case of an error.
|
| |
|
|
|
|
|
|
| |
* src/gpgme-json.c: Factor large chunks of code out to ...
* src/json-core.c: new file and ...
* src/json-util.c: new file and ...
* src/json-common.h: new file.
* src/Makefile.am (gpgme_json_SOURCES): Add new files.
|
| |
|
|
|
|
|
| |
* src/engine-gpg.c (gpg_add_algo_usage_expire): Add "default" as
algorithm argument if algo is NULL or an empty string.
--
|
| |
|
|
|
|
|
|
|
|
| |
* src/engine-gpg.c (gpg_add_algo_usage_expire): Check flags for
GPGME_CREATE_GROUP flag.
--
With this change a cert-only group-owned key will be created if only the
group flag is set.
|
| |
|
|
|
|
| |
* src/gpgme.h.in (GPGME_CREATE_GROUP): New.
* src/engine-gpg.c (gpg_add_algo_usage_expire): Pass to engine.
* tests/run-genkey.c (parse_usage_string): Support here too.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* src/gpgme.h.in (struct _gpgme_subkey): Chnage timestamp and expires.
(struct _gpgme_key_sig): Ditto.
(struct _gpgme_new_signature): Ditto.
--
Note that unsigned long has always been used for gpgme_signature_t.
A change to time_t would be a real ABI change and require may users of
gpgme to adjust their code. The signed/unsigned change is sufficient
and mostly invisible.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/engine-gpg.c (append_args_from_signers): Detect exactly
specified keys and apped the '!' suffix.
--
Due to the ABI break which removed long long deprecated functions we
can also risk to introduce a slight semantic change in the way signer
keys are specified. The change is that iff a subkey-fingerprint with
the '!' suffix was used to lookup a signer's key we now use this
specific subkey and not any key gpg considers to be a good signing
subkey. Most people would have considered the old behaviour anyway as
a bug because it differs from what gpg uses at the command line.
GnuPG-bug-id: 3325
Suggested-by: Benjamin Kibbey
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpgme.h.in (struct _gpgme_subkey): New flag subkey_match.
* src/keylist.c (spacep): New.
(op_data_t): Add field requested_subkey.
(release_op_data): Free it.
(exact_match_pattern): New.
(maybe_setup_for_requested_subkey): New.
(gpgme_op_keylist_start): Call it here.
(gpgme_op_keylist_ext_start): Call it for each pattern until one
found.
(gpgme_op_keylist_next): Set the subkey_match field.
---
This is needed for
GnuPG-bug-id: 3325
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpgme.h.in (GPGME_DECRYPT_LISTONLY): New.
* src/decrypt.c (op_data_t): Add member list_only.
(_gpgme_decrypt_status_handler): Do not return NO_DATA in list_only
mode.
(_gpgme_op_decrypt_init_result): Add arg flags and set the list_only
flag.
(_gpgme_decrypt_start): Pss flags to the init function.
* src/decrypt-verify.c (decrypt_verify_start): Ditto.
* src/engine-gpg.c (gpg_decrypt): Add --list-only if flag is set.
* tests/run-decrypt.c (main): Add option --list-only.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/genrandom.c (getrandom_size_t): New.
(gpgme_op_random_value): New.
* src/gpgme.def: Add new function.
* src/libgpgme.vers: Ditto.
* src/gpgme.h.in: Add prototype.
* tests/run-genrandom.c: Add an option to use the new function.
--
The implementation is not optimized but sufficient for our use case.
Possible improvements for this and gpgme_op_random_bytes are a cache
for random bytes in the context so that we do not need to get out to
gpgme for just a few random bytes.
GnuPG-bug-id: 6694
|
| |
|
|
|
|
| |
* m4/libassuan.m4: Update from libassuan master.
Signed-off-by: NIIBE Yutaka <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/genrandom.c: New.
* src/Makefile.am: Add new file.
* src/engine-backend.h (struct engine_ops): Add func ptr getdirect.
Adjust all engine_ops.
* src/engine-gpg.c (gpg_getdirect): New.
(_gpgme_engine_ops_gpg): Connect new handler.
* src/gpgme.h.in (gpgme_random_mode_t): New.
(GPGME_RANDOM_MODE_NORMAL): New.
(GPGME_RANDOM_MODE_ZBASE32): New.
(gpgme_op_random_bytes): New public function
* src/libgpgme.vers: Add function.
* src/gpgme.def: Add function.
* tests/run-genrandom.c: New.
* tests/Makefile.am: Add new file.
--
This is a first take on this the mode parameter allows to extend the
function if ever needed. Due to the gpg calling and fd setup overhead
this function is not yet very fast but its purpose is to get
"approved" random bytes. We might eventually extend it to keep a
small internal cache of random numbers and get for example 128 random
bytes directly from gpg and deliver only the few required.
GnuPG-bug-id: 6694
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* src/engine.c (_gpgme_engine_op_trustlist): Remove.
* src/libgpgme.vers (gpgme_op_trustlist_end)
(gpgme_op_trustlist_next)
(gpgme_op_trustlist_start): Remove.
* src/gpgme.def: Ditto.
* src/key.c (otrust_to_string)
(validity_to_string)
(capabilities_to_string)
(get_keysig): Remove
|
| |
|
|
|
|
|
| |
--
This has no functional changes except for the recent beta numbering
fix.
|
| |
|
|
|
|
|
|
| |
--
The version 2.0 is technically an API and ABI break due to the removal
of long deprecated functions. Most user's won't notice this except
for the changed SO number.
|