Imported Upstream version 2.3.1
[platform/upstream/gpg2.git] / ChangeLog
index 3a05660..0a9c775 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,187 @@
+2021-04-20  Werner Koch  <wk@gnupg.org>
+
+       Release 2.3.1.
+       + commit cbbdb88627fe57ebf02b8b4bf9002d356e57e2e4
+
+
+       Support log-file option from common.conf for all daemon.
+       + commit 45918813f0599505e4f84bd44b09fb708b4e7f23
+       * agent/gpg-agent.c: Include comopt.h.
+       (main): Read log-file option from common.conf.
+       (reread_configuration): Ditto.
+       * dirmngr/dirmngr.c: Include comopt.h.
+       (main): Read log-file option from common.conf.
+       (reread_configuration): Ditto.
+       * kbx/keyboxd.c: Include comopt.h.
+       (main): Read log-file option from common.conf.
+       (reread_configuration): Ditto.
+       * scd/scdaemon.c: Include comopt.h.
+       (main): Read log-file option from common.conf.
+
+       gpgconf: Fix a diagnostic output.
+       + commit b657d6c3bd8103d40d511a3293313a891a26a9f5
+       * tools/gpgconf-comp.c (gc_component_launch): Fix diagnostic.
+       * doc/examples/common.conf: Fix example.
+
+       sm: New command --show-certs.
+       + commit 51419d63415ae2aa029f8829099b6789b264edc5
+       * sm/keylist.c (do_show_certs): New.
+       (gpgsm_show_certs): New.
+       * sm/gpgsm.c (aShowCerts): New.
+       (opts): Add --show-certs.
+       (main): Call gpgsm_show_certs.
+
+2021-04-19  Werner Koch  <wk@gnupg.org>
+
+       build: Fix build problems on macOS for gpgsm tests and gpg-card.
+       + commit 5fe60576d50f7c857d0a865a9630212422fa1ad1
+       * tools/gpg-card.c: Include ctype.h.
+       * sm/Makefile.am (t_common_ldadd): Add LIBICONV.
+
+2021-04-19  Damien Goutte-Gattat via Gnupg-devel  <gnupg-devel@gnupg.org>
+
+       build: Allow selection of TSS library.
+       + commit 93c88d0af36b70a406997b40c49bfc14c17b4cd2
+       * configure.ac: New option --with-tss to force the use of a
+       specific TSS library.
+
+       gpg: Fix showpref to list AEAD feature.
+       + commit 86f446fd446fcc7295ecf6b37a3f4cca45a165f1
+       * g10/keyedit.c (show_prefs): Show 'AEAD' if flags.aead is set.
+
+2021-04-19  Werner Koch  <wk@gnupg.org>
+
+       gpg,gpgsm: Move use-keyboxd to the new conf file common.conf.
+       + commit d13c5bc244ce1daed285424d920171fc2bcd7290
+       * common/comopt.c, common/comopt.h: New.
+       * common/Makefile.am: Add them.
+       * g10/gpg.c: Include comopt.h.
+       (main): Also parse common.conf.
+       * sm/gpgsm.c: Include comopt.h.
+       (main): Set a flag for the --no-logfile option.  Parse common.conf.
+
+       * tools/gpgconf-comp.c (known_options_gpg): Remove "use-keyboxd", add
+       pseudo option "use_keyboxd".
+       (known_pseudo_options_gpg): Add pseudo option "use_keyboxd".
+       (known_options_gpgsm): Remove "use-keyboxd".
+
+       * tests/openpgp/defs.scm (create-gpghome): Create common.conf.
+
+       * doc/examples/common.conf: New.
+
+2021-04-16  Werner Koch  <wk@gnupg.org>
+
+       gpg: Lookup a missing public key of the current card via LDAP.
+       + commit d7e707170fbe2956deb3d81e2802d21352079722
+       * g10/getkey.c (get_seckey_default_or_card): Lookup a missing public
+       key from the current card via LDAP.
+       * g10/call-dirmngr.c: Include keyserver-intetnal.h.
+       (gpg_dirmngr_ks_get): Rename arg quick into flags.  Take care of the
+       new LDAP flag.
+       * g10/keyserver-internal.h (KEYSERVER_IMPORT_FLAG_QUICK): New.
+       Replace the use of the value 1 for the former quick arg.
+       (KEYSERVER_IMPORT_FLAG_LDAP): New.
+       * g10/keyserver.c (keyserver_get_chunk): Increase the reserved line
+       length.
+       * dirmngr/ks-action.c (ks_action_get): Add arg ldap_only.
+       * dirmngr/server.c (cmd_ks_get): Add option --ldap.
+
+       scd:p15: Support attribute KEY-FPR.
+       + commit 30f90fc8574be4c48ac8d3ff41479481414c0dee
+       * scd/app-p15.c: Include openpgpdefs.h.
+       (struct prkdf_object_s): Add fields have_keytime and ecdh_kdf.
+       (read_p15_info): Set ecdh_kdf.
+       (keygrip_from_prkdf): Flag that we have the keytime.
+       (send_keypairinfo): Send the key time only if valid.
+       (send_key_fpr_line): New.
+       (send_key_fpr): New.
+       (do_getattr): Add KEY-FPR.
+
+       common: New module to compute openpgp fingerprints.
+       + commit 2f2bdd9c0894eb43f719da8b529b4c7a46f742a0
+       * common/openpgp-fpr.c: New.
+       * common/Makefile.am (common_sources): Add it.
+
+2021-04-13  Werner Koch  <wk@gnupg.org>
+
+       gpg: Do not use self-sigs-only for LDAP keyserver imports.
+       + commit 6c26e593df51475921410ac97e9227df6b258618
+       * dirmngr/ks-engine-ldap.c (ks_ldap_get): Print a SOURCE status.
+       * g10/options.h (opts): New field expl_import_self_sigs_only.
+       * g10/import.c (parse_import_options): Set it.
+       * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP.
+
+2021-04-13  Jakub Jelen  <jjelen@redhat.com>
+
+       common: Fix memory leaks.
+       + commit a16f726f9404f173705cc3bef71daee38d2c094b
+       * common/name-value.c (do_nvc_parse): Free NAME.
+       * common/recsel.c (recsel_parse_expr): Release SE_HEAD and EXPR_BUFFER.
+
+       kbx: Fix memory leak.
+       + commit 51bbd99a3c9b09a78e766a312d97a1d40372c6cd
+       * kbx/keybox-update.c (blob_filecopy): Goto leave instead of return.
+
+       tools: Fix memory leaks.
+       + commit 4c8be54cc430bbebd41fd7c452ff4ff9e8ff2bd5
+       * tools/gpgsplit.c (write_part): Free BLOB on error.
+
+       scd: Fix memory leaks.
+       + commit 7cbe29c4fb4f593e194b6c25cb31633b4a6e0b2b
+       * scd/apdu.c (apdu_dev_list_start): Free DL.
+       * scd/app-nks.c (pubkey_from_pk_file): Fix typo in condition.
+
+       agent,kbx: Add LIBASSUAN_CLFAGS.
+       + commit cd66b2eb0d34b135175899362e191fff81588608
+       * agent/Makefile.am (gpg_preset_passphrase_CFLAGS, t_protect_CFLAGS):
+       Add LIBASSUAN_CFLAGS.
+       * kbx/Makefile.am (libkeybox_a_CFLAGS, libkeybox509_a_CFLAGS):
+       Likewise.
+
+2021-04-12  Werner Koch  <wk@gnupg.org>
+
+       scd:p15: Match private keys with certificates also by labels.
+       + commit ecb9265b8dc03a153044e19be804d4c2d2caa4e8
+       * scd/app-p15.c (cdf_object_from_label): New.
+       (cdf_object_from_certid): Fallback to label matching.
+       (read_p15_info): Ditto.
+       (keygrip_from_prkdf): Ditto.  Replace duplicated code by a call to
+       cdf_object_from_objid.
+
+2021-04-08  Werner Koch  <wk@gnupg.org>
+
+       scd:nks: Handle APP_READKEY_FLAG_INFO.
+       + commit 63320ba2f8147ee86f4406c9590f6b28cad4771d
+       * scd/app-nks.c (keygripstr_from_pk_file): Fix ignored error.
+       (get_nks_tag): New.
+       (do_learn_status_core): Use it.  Make sure not to mange the
+       KEYPAIRINFO line if no usage is known.
+       (do_readkey): Output the KEYPAIRINFO for the keygrip case.
+
+       scd: Fix duplicate output of KEYPAIRINFO by readkey command.
+       + commit 22fd48e48d007a0cba6c8a8f6ad6cb4fe7470534
+       * scd/app-help.c (app_help_get_keygrip_string_pk): Make HEXKEYGRIP
+       parm optional.
+       * scd/command.c (do_readkey): Remove duplicate output of keypairinfo
+       lines.
+
+2021-04-08  NIIBE Yutaka  <gniibe@fsij.org>
+
+       gpg: Ed448 and X448 are only for v5.
+       + commit 36355394d865f5760075e62267d70f7a7d5dd671
+       * g10/keygen.c (parse_key_parameter_part): Generate with version 5
+       packet, when it's Ed448 or X448.
+
+       scd: Fix CCID driver for SCM SPR332/SPR532.
+       + commit ab66c4357595b8a10ca25fd735f439fe795919b2
+       * scd/ccid-driver.c (ccid_vendor_specific_pinpad_setup): New.
+       (ccid_vendor_specific_setup): Only send CLEAR_HALT.
+       (ccid_transceive_secure): Each time, use send_escape_cmd.
+
+       common: Fix gnupg_wait_processes, by skipping invalid PID.
+       + commit d82dae5d2229a30dbc78aadc4d544d30dac76a1c
+       * common/exechelp-posix.c (gnupg_wait_processes): Skip invalid PID.
+
 2021-04-07  Werner Koch  <wk@gnupg.org>
 
        Release GnuPG 2.3.0.