1 2021-12-20 Werner Koch <wk@gnupg.org>
4 + commit f74c65fd9bbb97a24b1a3bfe73706c6fcf95ad2a
7 gpg: Correctly set the ownertrust for a new key.
8 + commit 610528725290961ecc4a35d79ac9e4f2e07ed24e
9 * g10/keygen.c (do_generate_keypair): Use update_ownertrust.
12 + commit 69195ab2550ef1e8ccf8bfe2b6972e822d27c253
15 gpg: Add unfinished code for --export-secret-ssh-key.
16 + commit afe5fcda52e88438c7a7278117b2e03f510a9c1c
17 * g10/gpg.c (exportSecretSshKey): New.
18 (opts): Add --export-secret-ssh-key.
19 (main): Implement option.
20 * g10/export.c (do_export_stream): Factor keywrap key code out to ...
21 (get_keywrap_key): new.
22 (mb_write_uint32, mb_write_uint8)
23 (mb_write_data, mb_write_cstring)
24 (mb_write_string, mb_write_mpi): New.
25 (receive_raw_seckey_from_agent): New.
26 (export_secret_ssh_key): New.
28 gpg: Allow passing a keygrip as description to pinentry.
29 + commit ace15e1b09dc9fc83d71faeeb7805802ed5bcc82
30 * g10/keydb.h (FORMAT_KEYDESC_KEYGRIP): New.
31 * g10/passphrase.c (gpg_format_keydesc): Add new mode.
33 common: Add set_membuf_err.
34 + commit da391022160804785dad7d53b464e0448ab8aba0
35 * common/membuf.c (set_membuf_err): New.
37 wkd: Don't beg for donations.
38 + commit 038136ea48ae8963dd89c7e1999d640a112dd791
39 * tools/gpg-wks-server.c (send_congratulation_message): Remove
40 donation hint from message.
42 2021-12-20 Ingo Klöcker <dev@ingo-kloecker.de>
44 dirmngr: Ask keyservers to provide the key fingerprints.
45 + commit c7fa4c7f8bf375e3739ef8361f38b6b31113b8bf
46 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Add "fingerprint=on" to
49 2021-12-17 NIIBE Yutaka <gniibe@fsij.org>
51 dirmngr: Fix ldap-url.c.
52 + commit a9b95b20a8c358d9f8743acfa1076c3be4ff0ac1
53 * dirmngr/ldap-url.c (ldap_charray2str): Use memcpy instead of strncpy
54 when length is computed by strlen beforhand.
56 w32: Prepare for the case gcrypt.h will not include winsock2.h.
57 + commit e08225030dfb2090e756d26575f38c371e5a81cf
58 * common/dynload.h: Include specific headers only.
59 * common/exechelp-w32.c: Include <windows.h>.
60 * common/gettime.c: Likewise.
61 * common/utf8conv.c: Likewise.
62 * tests/gpgscm/ffi.c: Likewise.
63 * tools/gpgconf.c: Likewise.
64 * configure.ac: Check winsock2.h, removing gl_HEADER_SYS_SOCKET.
66 2021-12-10 NIIBE Yutaka <gniibe@fsij.org>
68 gpg: Emit compatible Ed25519 signature.
69 + commit 61ac580a2075564bc775b6764a239dad5e336251
70 * g10/pkglue.c (sexp_extract_param_sos_nlz): New.
71 * g10/pkglue.h: Add the declaration.
72 * g10/sign.c (do_sign): Use sexp_extract_param_sos_nlz for Ed25519.
74 2021-11-24 Jakub Jelen <jjelen@redhat.com>
76 gpg: Fix function prototype to match declaration.
77 + commit 426d82fcf1c133bfc1d5c931109d71db3f3815a9
78 * g10/test-stubs.c (keyserver_import_mbox): Fix prototype
80 kbx: Fix allocation check.
81 + commit 46efee8cb7009b0a0c04b42822d4579424c536e1
82 * kbx/kbxserver.c (cmd_search): Fix allocation check
84 homedir: Avoid memory leaks on errors.
85 + commit 6ee3eb420207c51bc4f2e6aa0871bc8c51f977f0
86 * common/homedir.c (unix_rootdir): Free allocated memory on error path
88 dirmngr: Avoid memory leaks on errors.
89 + commit 940af3f05231dd85138fd3415c7bb7a974bec950
90 * dirmngr/ldap-misc.c (ldap_parse_extfilter): Avoid direct return
91 without freeing resources on errors.
93 2021-11-24 NIIBE Yutaka <gniibe@fsij.org>
95 gpg: Fix format_keyid.
96 + commit a9be9f4e6e6d451698afa3d4780a53ed3718b30b
97 * g10/keyid.c (format_keyid): Allocate buffer earlier.
99 gpg: Fix key conversion for SSH.
100 + commit 07671917e476ad5ae8f5098630ef1cd531ff401a
101 * g10/export.c (key_to_sshblob): Use put_membuf with length counted
102 beforehand, and use memcmp instead of strncmp.
104 2021-11-22 Werner Koch <wk@gnupg.org>
106 gpg: New option --forbid-gen-key.
107 + commit c397ba3ac02e38b428d3e13d0bebac2a99b81f01
108 * g10/gpg.c (oForbidGenKey, opts): New option.
109 (mopt): New local struct
110 (gen_key_forbidden): New.
111 (main): Set and handle the option.
113 2021-11-19 Werner Koch <wk@gnupg.org>
115 gpgconf: Include output of --list-dirs in --show-configs.
116 + commit a0fb78ee0fba13fdbe22d8c3f408a78b847cee28
117 * tools/gpgconf.c (list_dirs): Add arg special.
118 (show_other_registry_entries): Print the Homedir.
119 (show_configs): List directories.
121 2021-11-18 Werner Koch <wk@gnupg.org>
123 gpg,gpgsm: Add option --min-rsa-length.
124 + commit 5f39db70c069a95731a8a1f65547e3314d6b1f85
125 * common/compliance.c (min_compliant_rsa_length): New.
126 (gnupg_pk_is_compliant): Take in account.
127 (gnupg_pk_is_allowed): Ditto.
128 (gnupg_set_compliance_extra_info): New.
129 * g10/gpg.c (oMinRSALength): New.
130 (opts): Add --min-rsa-length.
132 * g10/options.h (opt): Add field min_rsa_length.
133 * sm/gpgsm.c (oMinRSALength): New.
134 (opts): Add --min-rsa-length.
136 * sm/gpgsm.h (opt): Add field min_rsa_length.
138 2021-11-17 Werner Koch <wk@gnupg.org>
140 gpgconf: --show-configs now prints a bunch of Registry entries.
141 + commit 749bb80cb7685c12f3c65796559990952758f294
142 * tools/gpgconf.c (show_other_registry_entries): New.
143 (show_configs): Call it. Minor reformatting.
145 gpgconf: Extend --show-config to show envvars.
146 + commit 9172fbc08473afa2c295f7c77a8ae78efd4f77b7
147 * tools/gpgconf.c (my_copy_file): Add arg LISTP and record certain
149 (show_configs_one_file): New arg LISTP to be passed thru.
150 (show_configs): Show envars and regisiry values.
152 common,w32: New function read_w32_reg_string.
153 + commit 50539394802fb9478296d52527582697a6693b52
154 * common/w32-reg.c (get_root_key): Remove.
155 (read_w32_registry_string): Turn into a wrapper for the gpgrt
157 (read_w32_reg_string): New.
159 2021-11-15 Werner Koch <wk@gnupg.org>
161 sm: Detect circular chains in --list-chain.
162 + commit 74c5b350624b5636706bc39605857f10762371b1
163 * sm/keylist.c (list_cert_chain): Break loop for a too long chain.
165 2021-11-15 NIIBE Yutaka <gniibe@fsij.org>
168 scd:openpgp: Support longer data for INTERNAL_AUTHENTICATE.
169 + commit a575b0aba5424ed76b1067218beab748b56bde43
170 * scd/app-openpgp.c (do_auth): Use extended Lc, when supported.
172 2021-11-14 Werner Koch <wk@gnupg.org>
174 agent: Print the non-option warning earlier.
175 + commit bd5c775878fdfc151a3d996b335ea22d5247c963
176 * agent/gpg-agent.c (main): Move detection up.
178 2021-11-13 Werner Koch <wk@gnupg.org>
180 gpg: Remove stale ultimately trusted keys from the trustdb.
181 + commit 99ef78aa0ca7e48ceba400e1a43f8185cf9bbf71
182 * g10/tdbdump.c (export_ownertrust): Skip records marked with the
183 option --trusted-key.
184 (import_ownertrust): Clear the trusted-key flag.
185 * g10/tdbio.h (struct trust_record): Add field flags.
186 * g10/tdbio.c (tdbio_dump_record): Improve output.
187 (tdbio_read_record, tdbio_write_record): Handle flags.
188 * g10/trustdb.c (verify_own_keys): Clear stale trusted-keys and set
189 the flag for new --trusted-keys.
190 (tdb_update_ownertrust): Add arg as_trusted_key. Update callers.
192 keyboxd: New option --steal-socket.
193 + commit b0079ab39d31c74673e576149c7ac66d00c45c49
194 * kbx/keyboxd.c (oStealSocket): New const.
196 (steal_socket): New file global flag.
198 (create_server_socket): Implement option.
200 agent,dirmngr: New option --steal-socket.
201 + commit dd708f60d5cf571bd4f0312c1b291ec93c328047
202 * agent/gpg-agent.c (oStealSocket): New.
204 (steal_socket): New file global var.
206 (create_server_socket): Implement option.
208 * dirmngr/dirmngr.c (oStealSocket): New.
210 (steal_socket): New file global var.
211 (main): Set option. Add comment to eventually implement it.
213 2021-11-12 NIIBE Yutaka <gniibe@fsij.org>
215 gpg: Don't use malloc for kek_params.
216 + commit b124bca592e15dcf41b621be517bc4af9e1e9d4d
217 * g10/ecdh.c (pk_ecdh_default_params): Use stack for kek_params.
219 2021-11-12 Jakub Jelen <jjelen@redhat.com>
220 NIIBE Yutaka <gniibe@fsij.org>
222 kbx: Avoid use of uninitialized value.
223 + commit fae1d2e2ccde6cb46974433cf769c83134b0f57d
224 * kbx/backend-kbx.c (be_kbx_search): Initialize skipped_long_blobs
225 value which is passed to keybox_search and incremented there.
226 (be_kbx_seek): Likewise.
228 2021-11-12 Jakub Jelen <jjelen@redhat.com>
230 gpg: Avoid uninitialized revkey.fprlen.
231 + commit d24c5df52b55e86b49b48f153a1ada5a5081eda5
232 * g10/keygen.c (parse_revocation_key): Store the fingerprint length in
235 2021-11-12 Jakub Jelen <jjelen@redhat.com>
236 NIIBE Yutaka <gniibe@fsij.org>
238 agent: Avoid uninitialized buffer.
239 + commit ae3d0bb8e77ce1b2a096fff7d783c781c9f7a502
240 * agent/sexp-secret.c (fixup_when_ecc_private_key): Initialize buffer to
241 avoid its use on unexpected inputs.
243 2021-11-12 Jakub Jelen <jjelen@redhat.com>
245 agent: Correctly free memory on error path.
246 + commit 50f32eb0664d921242563f6602ce5a8f46557085
247 * agent/protect.c (merge_lists): Free memory on error.
249 scd: Avoid memory leak.
250 + commit c0b1bcc5c6b5558c9f1f665797979134ade66fd7
251 * scd/command.c (cmd_readkey): Free allocated memory on failure path.
253 tools: Avoid memory leak from gpgspilt.
254 + commit 50e6d63f12e700658f094bf1ff2fd25861690240
255 * tools/gpgsplit.c (write_part): Free memory when no longer needed.
257 2021-11-09 Bernhard M. Wiedemann <bwiedemann@suse.de>
259 wks: Do not mark key files as executable.
260 + commit 0c8bc154342bf54f7e6cce2075ee8e851dfd09b5
263 wks: Allow access to newly created dirs.
264 + commit 60be00b0336bebc319d3e444841526be87dfe3bc
267 2021-11-04 Werner Koch <wk@gnupg.org>
269 gpg: Fix indentation of --print-mds and --print-md sha512.
270 + commit d9deac7791904634848a4c178585f37205641124
271 * g10/gpg.c (print_hex): Fix indentation.
273 gpgconf: New command --show-configs.
274 + commit fa738173f9d8aa1ddd6b5e665d2f035dae2c0b1f
275 * tools/gpgconf.c (aShowConfigs): New.
276 (opts): Add --show-configs.
278 (show_version_gnupg): Add arg "prefix" and adjust caller.
280 (show_configs_one_file): New.New.
282 (main): Call show_configs.
284 2021-11-03 Ingo Klöcker <dev@ingo-kloecker.de>
286 gpgconf: Allow changing gpg's deprecated keyserver option.
287 + commit 0a7d772a5c43eddad6fb3238614b8af722453919
288 * tools/gpgconf-comp.c (known_options_gpg): Add "keyserver".
290 2021-11-02 NIIBE Yutaka <gniibe@fsij.org>
292 scd: Simplify the loop of DEVINFO.
293 + commit 49f7fcb90b5d4f33b9b65baec8774745aa2242c9
294 * scd/app.c (app_send_devinfo): Factor out lock/unlock.
296 2021-10-29 NIIBE Yutaka <gniibe@fsij.org>
298 scd: Fix the previous commit.
299 + commit 99e00ec6db33ce86b92106307d637769e0914833
302 scd: Modify DEVINFO behavior to support looping forever.
303 + commit 48e824b6ea69d21ccbc50aac125d8b442af66727
304 * scd/app.c (struct mrsw_lock): Add notify_cond member.
305 (notify_cond): Remove.
306 (card_list_r_lock, card_list_r_unlock): Rename.
307 (card_list_w_lock, card_list_w_unlock): Rename.
308 (card_list_signal, card_list_wait): New, fixing thinko about
309 notify/wakeup with MRSW lock.
310 (app_send_devinfo): Support looping.
311 (select_application): Notify app_send_devinfo thread for newly
313 (initialize_module_command): Initialize notify_cond member.
315 * scd/command.c (cmd_devinfo): Use new API of app_send_devinfo.
316 * scd/scdaemon.h (app_wait): Remove.
318 2021-10-27 Werner Koch <wk@gnupg.org>
320 common: Support MYPROC_SELF_EXE for Solaris.
321 + commit 50e43af3f1081ba3fe677b1030c5c62063461665
322 * common/homedir.c (MYPROC_SELF_EXE): Add case for SunOS.
324 2021-10-22 Werner Koch <wk@gnupg.org>
326 gpg: Fix printing of binary notations.
327 + commit 62f838ea1fcad1c008c783946559b607cae37674
328 * g10/keylist.c (show_notation): Print binary notation from BDAT.
330 2021-10-20 Werner Koch <wk@gnupg.org>
332 common: Silence warning from unix_rootdir on systems w/o /proc.
333 + commit 4cb44914b57a8db9d2f0d24e11d2b5e6fedc0a87
334 * common/homedir.c (unix_rootdir): Silence diagnostic in the common
336 (MYPROC_SELF_EXE): Support NetBSD.
338 common,w32: Do not always print "Garbled console data" warning.
339 + commit e293da3b214958ff86e7636d17b0b6e10264882e
340 * common/init.c (_init_common_subsystems): Silence message.
342 2021-10-15 NIIBE Yutaka <gniibe@fsij.org>
344 dns: Make reading resolv.conf more robust.
345 + commit 48359c723206254d3a22f08eb537a6acc2f04e01
346 * dirmngr/dns.c (dns_resconf_loadfile): Skip "search" which
349 2021-10-13 Werner Koch <wk@gnupg.org>
351 gpg: New option --override-compliance-check.
352 + commit fb26e144adfd93051501d58f5d0d4f8826ddf436
353 * g10/gpg.c (oOverrideComplianceCheck): New.
354 (opts): Add new option.
355 (main): Set option and add check for batch mode.
356 * g10/options.h (opt): Add flags.override_compliance_check.
358 * g10/sig-check.c (check_signature2): Factor complaince checking out
360 (check_key_verify_compliance): this. Turn error into a warning in
363 2021-10-12 Werner Koch <wk@gnupg.org>
366 + commit 9470d0338364b781d701ad8e81972c782b48aa2d
369 speedo: Put the keyboxd into the Windows installer.
370 + commit 10f52f9bf3bcc6cf29835c2f11ea91ab0d5e7cdc
371 * build-aux/speedo/w32/inst.nsi: Install keyboxd.
372 * Makefile.am (sign-release): Sign the wixlib only if generated.
373 * autogen.rc: Remove meanwhile obsolete option --with-regex.
375 tests: New way to make use of gpgconf.ctl in tests.
376 + commit bcd5feec0e916b864d004a47f36a41e2eba3b10e
377 * Makefile.am (all-local): New to setup symlinks.
378 (distclean-local): New.
379 * tests/Makefile.am: Remove the gpgconf related targets. Just keep
380 gpgconf.ctl.in in EXTRA_DIST
381 * tests/cms/Makefile.am (GNUPG_BUILD_ROOT):
382 * tests/gpgme/Makefile.am (GPGSCM_PATH):
383 * tests/openpgp/Makefile.am (GNUPG_BUILD_ROOT):
384 * tests/pkits/Makefile.am (GNUPG_BUILD_ROOT):
385 * tests/tpm2dtests/defs.scm (tools): Revert to the former values.
386 * tests/openpgp/defs.scm (tools): Ditto.
388 2021-10-10 Werner Koch <wk@gnupg.org>
390 Do not build keyxboxd if sqlite has been disabled.
391 + commit cf29c7dec0e845040a71aac383ee9f1dda901590
392 * configure.ac: Move clearing of build_keyboxd out of the conditional.
394 2021-10-06 Ingo Klöcker <dev@ingo-kloecker.de>
396 common: Respect gpgconf.ctl when looking up translations.
397 + commit e99b9890c28dae491653279791e52771be866188
398 * common/i18n.c (i18n_init): Use gnupg_localedir() instead of LOCALEDIR.
399 (i18n_localegettext): Ditto.
400 * tools/gpgconf-comp.c (my_dgettext): Ditto.
402 2021-10-06 Werner Koch <wk@gnupg.org>
404 dirmngr: New option --ignore-cert.
405 + commit 4b3e9a44b58e74b3eb4a59f88ee017fe7483a17d
406 * dirmngr/dirmngr.h (struct fingerprint_list_s): Add field binlen.
407 (opt): Add field ignored_certs.
408 * dirmngr/dirmngr.c: Add option --ignore-cert
409 (parse_rereadable_options): Handle that option.
410 (parse_ocsp_signer): Rename to ...
411 (parse_fingerprint_item): this and add two args.
412 * dirmngr/certcache.c (put_cert): Ignore all to be igored certs.
413 Change callers to handle the new error return.
415 dirmngr: Fix Let's Encrypt certificate chain validation.
416 + commit 68799378859739887549108bf765568ccbc328bc
417 * dirmngr/certcache.c (find_cert_bysubject): Return the first trusted
420 2021-10-05 NIIBE Yutaka <gniibe@fsij.org>
422 agent,dirmngr,kbx,scd,tpm2d: Use gnupg_sleep.
423 + commit 3918fa1a9488d56040d43e4af1254f9564266513
424 * agent/findkey.c (unprotect): Use gnupg_sleep.
425 * agent/gpg-agent.c (handle_connections): Likewise.
426 * dirmngr/crlfetch.c (handle_connections): Likewise.
427 * kbx/keyboxd.c (handle_connections): Likewise.
428 * tpm2d/tpm3daemon.c (handle_connections): Likewise.
429 * scd/scdaemon.c (handle_connections): Likewise.
430 * scd/command.c (cmd_lock): Likewise.
431 * dirmngr/ldap-wrapper.c (ldap_reaper_thread): Likewise.
432 (ldap_wrapper_wait_connections): Use gnupg_usleep.
434 agent: Fix calibrate_get_time use of clock_gettime.
435 + commit eeb25df6f8fc1e3cf18ec5578445f8fc281e41bc
436 * agent/protect.c (USE_CLOCK_GETTIME): New macro.
437 (calibrate_get_time): Only use clock_gettime if USE_CLOCK_GETTIME.
439 2021-10-01 Werner Koch <wk@gnupg.org>
441 tests: Use the new gpgconf.ctl based method.
442 + commit 84fcd8e6eb7e0786399e1f6461c3f60b0db2d070
443 * tests/openpgp/defs.scm: We expect that stuff is now installed.
444 (tools): Fix the names.
445 (intsalled?, bin-prefix): Remove.
446 (tool-hardcoded): Simplify.
447 (gpg-conf'): Simplify.
448 (GNUPG_BUILDDIR): Do not anymore set this envvar.
449 * tests/tpm2dtests/defs.scm: Ditto.
451 build: Prepare for using installed versions for tests.
452 + commit 399ebf6d873d4178c1d527aa4df34bf16a76360e
453 * tests/gpgconf.ctl.in: New.
454 * tests/Makefile.am (EXTRA_DIST): Add new file.
455 (TESTINST_DIRS): New.
457 (clean-local-testinst): New.
458 (check-recursive): New hook.
459 (bin/gpgconf.ctl): Run a test install.
460 * tests/cms/Makefile.am (TESTS_ENVIRONMENT): Set new envvar
462 * tests/gpgme/Makefile.am (TESTS_ENVIRONMENT): Ditto.
463 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Ditto.
464 * tests/pkits/Makefile.am (TESTS_ENVIRONMENT): Ditto.
465 * tests/tpm2dtests/Makefile.am (TESTS_ENVIRONMENT): Ditto.
467 common: Support gpgconf.ctl also for BSDs.
468 + commit dbe1b237a6525585b36ed84c8634d6436dddaad1
469 * common/homedir.c (MYPROC_SELF_EXE): New.
470 (unix_rootdir): Use it here. Also support GNUPG_BUILD_ROOT as
473 common: Add keyword sysconfdir to the optional gpgconf.ctl file.
474 + commit ec847cf17fa85b8684e88ccf04c6d4c75d59c3ba
475 * common/homedir.c (unix_rootdir): Add arg want_sysconfdir.
476 (gnupg_sysconfdir): Return it.
478 2021-09-30 NIIBE Yutaka <gniibe@fsij.org>
480 kbx: Let it include keybox.h to avoid multiple typedefs.
481 + commit ca54d3f148933baac1f0243f76e4961abca285b1
482 * kbx/backend.h: Include keybox.h.
484 2021-09-29 NIIBE Yutaka <gniibe@fsij.org>
486 gpg: Handle backsig for v5 signature.
487 + commit dd2e092339627c03cd0f506f3ef1be3e98d5ff83
488 * g10/getkey.c (merge_selfsigs_subkey): Check v5 signature correctly.
490 gpg: Ed448 and X448 are only for v5 (for subkey).
491 + commit 86cb04a23d2b0849cf684238d6d704aa45293214
492 * g10/keygen.c (generate_subkeypair): Specify
493 KEYGEN_FLAG_CREATE_V5_KEY for Ed448 or X448 key.
495 2021-09-28 NIIBE Yutaka <gniibe@fsij.org>
497 kbx: A 20 byte fingerprint is right filled in version 2 blob.
498 + commit 08a3a4db27dcc3d50038cf5bdba94a6f0b548b01
499 * kbx/keybox-blob.c (create_blob_header): Fix creating FPR20 key
500 in blob with 32-byte fingerprint.
502 gpg: Skip the packet when not used for AEAD.
503 + commit cc6152b802f2ab0ceaf3abb20caef6f7d806ffa3
504 * g10/free-packet.c (free_packet): Add the case for case
507 2021-09-20 Ingo Klöcker <dev@ingo-kloecker.de>
509 build: Fix several "include file not found" problems.
510 + commit e2069d563283ab295858d33a250f229aab240f75
511 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add KSBA_CFLAGS.
512 * kbx/Makefile.am (libkeybox_a_CFLAGS, libkeybox509_a_CFLAGS): Add
514 * tools/Makefile.am (gpgtar_CFLAGS, gpg_wks_server_CFLAGS,
515 gpg_wks_client_CFLAGS, gpg_pair_tool_CFLAGS): Add LIBGCRYPT_CFLAGS.
517 2021-09-20 giomba <giomba@linux.it>
519 po: Fixed Italian translation for key expiration.
520 + commit 548ff0398353c106f4e361a46818cd1716b825b8
521 * po/it.po: Fix italian translation.
523 2021-09-17 Werner Koch <wk@gnupg.org>
525 common: Support a gpgconf.ctl file under Unix.
526 + commit d4768bb982adb5c8410303334ee8d82ba0d71f3b
527 * common/homedir.c (unix_rootdir): New.
528 (gnupg_bindir): Use it.
529 (gnupg_libexecdir): Use it.
530 (gnupg_libdir): Use it.
531 (gnupg_datadir): Use it.
532 (gnupg_localedir): Use it.
534 common: New function substitute_envvars.
535 + commit 9c272dc245456d5403e3bd50553b4fdccb370e27
536 * common/stringhelp.c (substitute_envvars): New. Based on code in
538 * common/t-stringhelp.c: Include sysutils.h.
539 (test_substitute_envvars): New.
541 2021-09-14 Werner Koch <wk@gnupg.org>
543 gpg: Print a warning when importing a bad cv25519 secret key.
544 + commit dbfb7f809b89cfe05bdacafdb91a2d485b9fe2e0
545 * g10/import.c (transfer_secret_keys): Add simple check.
547 2021-09-13 Werner Koch <wk@gnupg.org>
549 common: New envvar GNUPG_EXEC_DEBUG_FLAGS.
550 + commit f2b01025c3da97068b699c1f51309e18730a4bdb
551 * common/exechelp-w32.c (gnupg_spawn_process_detached): Silence
552 breakaway messages and turn them again into debug messages.
554 2021-09-09 Werner Koch <wk@gnupg.org>
556 sm: Add LotW support to the key listing.
557 + commit 255d4d5815d00f8d1b45d93cc617c49d375e891b
558 * sm/certdump.c (parse_dn_part): Translate OID to "Callsign"
559 * sm/keylist.c (oidtranstbl): Some more OIDs.
561 2021-09-08 Ingo Klöcker <dev@ingo-kloecker.de>
563 build: Fix "ksba.h not found" problem.
564 + commit 08f227052fa3cc7089829a3b2ab8c4dda990b05b
565 * sm/Makefile.am (t_minip12_CFLAGS): Add KSBA_CFLAGS.
567 2021-09-07 Werner Koch <wk@gnupg.org>
569 agent: Fix segv in GET_PASSPHRASE (regression)
570 + commit af3b1901549baa8fbe8140d9fa75a4a2b7a77a7e
571 * agent/command.c (cmd_get_passphrase): Do not deref PI. PI is always
574 2021-08-27 NIIBE Yutaka <gniibe@fsij.org>
576 kbx: Fix checksum computation for no UBID entry on disk.
577 + commit 0b64c27446c6f17f9c108e0fa95639db12d376ff
578 * kbx/keybox-blob.c (create_blob_header): Fix the flag to match no
580 (create_blob_finish): Fix the length of data to be hashed.
582 common: Fix put_membuf.
583 + commit f271c6916469c0054c143adb4cee0588866a2a61
584 * common/membuf.c (put_membuf): Allow NULL for the second arg.
586 2021-08-26 NIIBE Yutaka <gniibe@fsij.org>
588 common: Fix get_signal_name for GNU/Linux.
589 + commit c4ba712736ddeda66055567874d573e79d22666b
590 * common/signal.c (get_signal_name): Use sigdescr_np if available.
591 * configure.ac: Check the function.
593 2021-08-24 Werner Koch <wk@gnupg.org>
596 + commit 3bf8d7e1b7e0482f698b54a6975bdd9aa354244e
599 dirmngr: Change the default keyserver.
600 + commit 55b5928099bafbd5409d3377a42259c11e394cd0
601 * configure.ac (DIRMNGR_DEFAULT_KEYSERVER): Change to
602 keyserver.ubuntu.com.
604 * dirmngr/certcache.c (cert_cache_init): Disable default pool cert.
605 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
606 * dirmngr/http.c (http_session_new): Ditto.
608 * dirmngr/server.c (make_keyserver_item): Use a different mapping for
611 2021-08-24 NIIBE Yutaka <gniibe@fsij.org>
613 gpg: Report the status of NO_SECKEY for decryption.
614 + commit 3ed5f566fc057975d0158bb637c72bd118aba7f8
615 * g10/mainproc.c (proc_encrypted): Fix the condition to report
616 NO_SECKEY even when the key was not considered by get_session_key.
618 2021-08-20 Werner Koch <wk@gnupg.org>
620 wkd: Properly unescape the user-id from a key listing.
621 + commit 87d238de3d9d537cacc9dd3c6d954845203ea2cb
622 * tools/wks-util.c (append_to_uidinfo_list): Unescape UID.
624 wkd: Fix client issue with leading or trailing spaces in user-ids.
625 + commit b4345f7521cb4c3f4af7894f5d6d840fda85e82f
626 * common/recsel.c (recsel_parse_expr): Add flag -t.
627 * common/stringhelp.c: Remove assert.h.
628 (strtokenize): Factor code out to do_strtokenize.
629 (strtokenize_nt): New.
630 (do_strtokenize): Add arg trim to support the strtokenize_nt.
631 * common/t-stringhelp.c (test_strtokenize_nt): New test cases.
633 * tools/wks-util.c (wks_list_key): Use strtokenize_nt and the recsel
636 2021-08-20 NIIBE Yutaka <gniibe@fsij.org>
638 scd: Don't release the context until list_finish for PC/SC.
639 + commit 1565baa93ae39a81c5b00ca4558cd24838b4ce54
640 * scd/apdu.c (apdu_dev_list_start): Increment PCSC.COUNT here.
641 (apdu_dev_list_finish): Decrement PCSC.COUNT.
643 2021-08-19 Werner Koch <wk@gnupg.org>
645 gpg: Return SUCCESS/FAILURE status also for --card-edit/name.
646 + commit c1a23c3664753656bd4d22aafe0fb89d9bac5147
647 * g10/card-util.c (change_name): Call write_sc_op_status.
649 2021-08-18 Werner Koch <wk@gnupg.org>
651 agent: Use the sysconfdir for a pattern file.
652 + commit 661c2ae96699e135294cfd98e1fbc385d35f5f0e
653 * agent/genkey.c (do_check_passphrase_pattern): Use make_filename.
655 agent: Ignore passphrase constraints for a generated passphrase.
656 + commit b89b1f35c29ceaebe39b31444936aa66c9297f2c
657 * agent/agent.h (PINENTRY_STATUS_PASSWORD_GENERATED): New.
658 (MAX_GENPIN_TRIES): Remove.
659 * agent/call-pinentry.c (struct entry_parm_s):
660 (struct inq_cb_parm_s): Add genpinhash and genpinhas_valid.
661 (is_generated_pin): New.
662 (inq_cb): Suppress constraints checking for a generated passphrase.
663 No more need for several tries to generate the passphrase.
664 (do_getpin): Store a generated passphrase/pin in the status field.
665 (agent_askpin): Suppress constraints checking for a generated
667 (agent_get_passphrase): Ditto.
668 * agent/command.c (cmd_get_passphrase): Ditto.
670 agent: Improve the GENPIN callback.
671 + commit 8ed79103474c17d8dce20c740fc9813ada5f79ac
672 * agent/call-pinentry.c (DEFAULT_GENPIN_BYTES): Replace by ...
673 (DEFAULT_GENPIN_BITS): this and increase to 150.
674 (generate_pin): Make sure that we use at least 128 bits.
676 agent: Fix for zero length help string in pinentry hints.
677 + commit 9fb646660258c2842edd6662688eafbc8d751ba7
678 * agent/call-pinentry.c: Remove unused assert.h.
679 (inq_cb): Fix use use of assuan_end_confidential in case of nested
682 (setup_formatted_passphrase): Escape the help string.
683 (setup_enforced_constraints): Ignore empty help strings.
685 common,w32: Replace log_debug by log_info for InProcessJobs.
686 + commit 629f4a5cffb737454aaf6a5965cfb6d7b03796fc
687 * common/exechelp-w32.c (gnupg_spawn_process_detached): Use log_info.
689 2021-08-13 Werner Koch <wk@gnupg.org>
691 agent: Make QT_QPA_PLATFORMTHEME=qt5ct work for the pient.
692 + commit 1305baf0994059f458b1d5ca28a355c12932fab3
693 * agent/call-pinentry.c (atfork_core): Pass DISPLAY.
695 agent: New option --check-sym-passphrase-pattern.
696 + commit 7c45a69eb988e9c0329d75900af0c5b1e47291b7
697 * agent/gpg-agent.c (oCheckSymPassphrasePattern): New.
698 (opts): Add --check-sym-passphrase-pattern.
699 (parse_rereadable_options): Set option.
700 (main): Return option info.
701 * tools/gpgconf-comp.c: Add new option.
702 * agent/agent.h (opt): Add var check_sym_passphrase_pattern.
703 (struct pin_entry_info_s): Add var constraints_flags.
704 (CHECK_CONSTRAINTS_NOT_EMPTY): New to replace a hardwired 1.
705 (CHECK_CONSTRAINTS_NEW_SYMKEY): New.
706 * agent/genkey.c (check_passphrase_pattern): Rename to ...
707 (do_check_passphrase_pattern): this to make code reading
708 easier. Handle the --check-sym-passphrase-pattern option.
709 (check_passphrase_constraints): Replace arg no_empty by a generic
710 flags arg. Also handle --check-sym-passphrase-pattern here.
711 * agent/command.c (cmd_get_passphrase): In --newsymkey mode pass
712 CHECK_CONSTRAINTS_NEW_SYMKEY flag.
713 * agent/call-pinentry.c (struct entry_parm_s): Add constraints_flags.
714 (struct inq_cb_parm_s): New.
715 (inq_cb): Use new struct for parameter passing. Pass flags to teh
716 constraints checking.
717 (do_getpin): Pass constraints flag down.
718 (agent_askpin): Take constrainst flag from the supplied pinentry
721 2021-08-12 Ingo Klöcker <dev@ingo-kloecker.de>
723 agent: Make --pinentry-formatted-passphrase a simple flag.
724 + commit 99601778f4a9dc1c9fee792361c959f5e0732cfd
725 * agent/agent.h (opt): Change type of pinentry_formatted_passphrase
726 to int (as for other flags).
727 * agent/call-pinentry.c (setup_formatted_passphrase): Remove no longer
728 needed translated strings. Write option without value to Assuan
730 * agent/gpg-agent.c (opts): Use ARGPARSE_s_n for
731 oPinentryFormattedPassphrase.
732 (parse_rereadable_options): Set option to 1.
734 2021-08-11 Werner Koch <wk@gnupg.org>
736 w32: Move socketdir to LCOAL_APPDATA.
737 + commit 0802cbb59b21e06e16b4fd8596934c5565e7f659
738 * common/homedir.c (is_gnupg_default_homedir): Use standard_homedir
739 instead of the constant which makes a difference on Windows.
740 (_gnupg_socketdir_internal) [W32]: Move the directory to LOCAL_APPDATA.
741 (gnupg_cachedir): Remove unsued function.
743 * common/sysutils.c (gnupg_rmdir): New.
744 * tools/gpgconf.c (main): s/rmdir/gnupg_rmdir/.
746 gpgconf,w32: Print more registry diagnostics with --list-dirs.
747 + commit 4cc534020669fa038f6a2107a55fe3b42fc065dc
748 * tools/gpgconf.c (list_dirs): Figure out classes with the key.
750 2021-08-10 Ingo Klöcker <dev@ingo-kloecker.de>
752 agent: Add checkpin inquiry for pinentry.
753 + commit 5976d293ef9bd953b6e9c61a45ad1f4e85a2743c
754 * agent/call-pinentry.c (inq_cb): Handle checkpin inquiry.
755 (setup_enforced_constraints): New.
756 (agent_get_passphrase): Call setup_enforced_constraints if new
757 passphrase is requested.
759 agent: New option --pinentry-formatted-passphrase.
760 + commit bf20a80f68449cc83b67c53ba9a0a84c45827ac4
761 * agent/agent.h (opt): Add field pinentry_formatted_passphrase.
762 * agent/call-pinentry.c (setup_formatted_passphrase): New.
763 (agent_get_passphrase): Pass option to pinentry.
764 * agent/gpg-agent.c (oPinentryFormattedPassphrase): New.
766 (parse_rereadable_options): Set option.
768 2021-08-05 NIIBE Yutaka <gniibe@fsij.org>
770 build: Simplify for string.h and getopt.h.
771 + commit 29d58e9de7838bcf32e358602abd4ed4498566f8
772 * configure.ac (AC_CHECK_HEADERS): Remove string.h and getopt.h.
773 * dirmngr/ks-engine-ldap.c: Remove including getopt.h.
774 * tools/make-dns-cert.c: Likewise.
777 + commit 100c954ab0d6df509df582cb22ef515171462654
778 * sm/decrypt.c (pwri_parse_pbkdf2): Use int for digest algo.
779 (pwri_decrypt): Use int for cipher algo and digest algo.
781 build: Remove duplication of AC_HEADER_TIME.
782 + commit 3f33c7ffcca09d4252d0418fdc2d31c0c8e486f4
783 * configure.ac: Have a single AC_HEADER_TIME.
785 build: Update checking headers.
786 + commit a89f13726d08413d4bddcb6afed402de1de9e4fd
787 * configure.ac (AC_CHECK_HEADERS): Remove pty.h utmp.h, util.h,
790 2021-08-02 Ingo Klöcker <dev@ingo-kloecker.de>
792 common: Pass XDG_SESSION_TYPE and QT_QPA_PLATFORM envvars to pinentry.
793 + commit 94d18320b2b0bb5e3fa2023df8ac57078b2f6ecb
794 * common/session-env.c (stdenvnames): Add XDG_SESSION_TYPE and
797 2021-07-29 Werner Koch <wk@gnupg.org>
799 sm,w32: Fix Unicode problem on key box creation.
800 + commit 7cdd06af479298748c79357dcb36ca1ba4d36bb1
801 * sm/keydb.c (maybe_create_keybox): Replace access by gnupg_access
803 tools: Extend gpg-check-pattern.
804 + commit 73c03e02322880c740310207dd2151cfd843792e
805 * tools/gpg-check-pattern.c: Major rewrite.
807 2021-07-22 NIIBE Yutaka <gniibe@fsij.org>
809 scd: Small clean up for card access.
810 + commit 5c8124b8b9554c7843feccf408648c9689bce243
811 * scd/app.c (app_get_challenge): Remove the check to ref_count.
812 * scd/command.c (send_client_notifications): Update comments.
814 scd: Fix direct use of card with no ctrl->card_ctx.
815 + commit 50ad29f9a72f5454067bd0ca34fc1a71ac06b831
816 * scd/app.c (maybe_switch_app): Remove check of ref_count.
818 2021-07-21 Ingo Klöcker <dev@ingo-kloecker.de>
820 agent: Add translatable text for Caps Lock hint.
821 + commit b2a6e5b5169602052ae87d38588bdd3bd76fddad
822 * agent/call-pinentry.c (start_pinentry): Add new default text.
824 2021-07-21 NIIBE Yutaka <gniibe@fsij.org>
826 scd: Fix access to list of cards (3/3).
827 + commit 0d6b4210cf31d1c3ca0e8b034537a158fe3caca8
828 * scd/app-common.h (card_reset): Simplify more.
829 (select_additional_application): Supply CARD.
830 (card_ref, card_unref): Remove.
831 (card_get, card_put): New.
832 * scd/app.c (card_reset): No locking/unlocking inside.
833 (app_switch_current_card): Fix comment.
834 (select_additional_application): No locking/unlocking inside.
835 (do_with_keygrip): New, unlocked version.
836 (card_get): New, with support of KEYGRIP.
837 (card_unref): Remove.
839 (app_write_learn_status, app_readcert: No locking/unlocking inside.
840 (app_readkey, app_getattr, app_setattr, app_sign, app_auth): Likewise.
841 (app_decipher, app_writecert, app_writekey): Likewise.
842 (app_genkey, app_get_challenge, app_change_pin): Likewise.
843 (app_check_pin, app_switch_active_app): Likewise.
844 * scd/command.c (do_reset): Use card_get/card_put.
845 (open_card_with_request): Use card_get/card_put, return CARD locked.
846 (cmd_serialno): Follow the change of open_card_with_request.
847 (cmd_switchapp): Use card_get/card_put.
848 (cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign): Likewise.
849 (cmd_pkauth, cmd_pkdecrypt, cmd_getattr): Likewise.
850 (cmd_setattr, cmd_writecert, cmd_writekey): Likewise.
851 (cmd_genkey, cmd_random, cmd_passwd): Likewise.
852 (cmd_checkpin, cmd_getinfo, cmd_restart): Likewise.
853 (cmd_disconnect, cmd_apdu, cmd_devinfo): Likewise.
855 scd: Fix access to list of cards (2/3).
856 + commit b436fb6766b400167e5d57ff1116600bb496b04f
857 * scd/app-common.h (card_reset, select_application): Simplify.
858 * scd/app.c (card_reset, select_application): Simplify.
859 * scd/command.c (do_reset): Follow the change.
860 (open_card, open_card_with_request): Follow the change.
862 scd: Fix access to list of cards (1/3).
863 + commit 216945a80e7b6b9d366493fa43fc7e99c830d81c
864 * scd/app.c (card_list_lock): Use MRSW lock.
865 (lock_r_card_list, unlock_r_card_list): New.
866 (lock_w_card_list, unlock_w_card_list): New.
867 (app_dump_state, app_send_devinfo): Use the MRSW lock.
868 (select_application, app_switch_current_card): Likewise.
869 (scd_update_reader_status_file): Likewise.
870 (initialize_module_command, send_card_and_app_list): Likewise.
871 (app_do_with_keygrip, app_wait): Likewise.
873 2021-07-08 Werner Koch <wk@gnupg.org>
875 kbx: Improve debugging of the search descriptions in keyboxd.
876 + commit b871824fefa114db931762243537663cc1095cfa
877 * kbx/frontend.c (dump_search_desc): New.
878 (kbxd_search): Actually log the search descriptions.
880 kbx: Fix keyboxd searching with multiple patterns.
881 + commit 101ba4f18aceb39c4d5f0e0a7e16e66827f8e612
882 * kbx/keybox-search-desc.h (struct keydb_search_desc): New flag
884 * common/userids.c (classify_user_id): Set flag.
885 * kbx/kbxserver.c (struct search_backing_store_s): New.
886 (cmd_search): use a backing store for the const pointers.
887 (kbxd_start_command_handler): Release the backing store.
889 2021-07-06 NIIBE Yutaka <gniibe@fsij.org>
891 scd: Detect external interference when PCSC_SHARED.
892 + commit 044e5a3c3801fde7fa3b26986825377016e73103
893 * scd/app-common.h (check_aid): New method.
894 * scd/app-openpgp.c (do_check_aid): New.
895 * scd/app-piv.c (do_check_aid): New.
896 * scd/app.c (check_external_interference): New.
897 (maybe_switch_app): Check interference to determine switching is
900 2021-06-29 Werner Koch <wk@gnupg.org>
902 artwork: Explain the license for the logo.
903 + commit 5f78ae696c10df43c2b2fc29765e28b85caf5376
906 2021-06-25 Werner Koch <wk@gnupg.org>
908 agent: Fix regression in agent_get_shadow_info_type.
909 + commit a6efde307f7beb199b543f78b61c317fa2708202
910 * agent/protect.c (agent_get_shadow_info_type): Return the correct
913 gpg: Let --fetch-key return an exit code on failure.
914 + commit 9579c7786278b75d9c58b7c21b2f3c8bc7849810
915 * g10/keyserver.c (keyserver_fetch): Return an error code.
916 * g10/gpg.c (main) <aFetchKeys>: Return 1 in case of no data.
918 2021-06-23 NIIBE Yutaka <gniibe@fsij.org>
920 scd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer.
921 + commit 25ae80b8eb6e9011049d76440ad7d250c1d02f7c
922 * scd/ccid-driver.c (intr_cb): Ignore LIBUSB_TRANSFER_OVERFLOW.
924 2021-06-22 Werner Koch <wk@gnupg.org>
926 tools: Extend ccidmon to print T=1 APDUs.
927 + commit 2c6b62b3572fe43cb6b89ec5fb0bc62385a4b230
928 * tools/ccidmon.c (print_as_ascii): New.
929 (print_t1_block): New.
930 (print_p2r_xfrblock): Print APDUs
931 (print_r2p_datablock): Ditto.
933 tests: Cope with broken Libgcrypt versions.
934 + commit 5df658233a3a0c05fac0b4d4889f033ea0d0e034
935 * common/t-sexputil.c (test_ecc_uncompress): Ignore unknwon curve
938 w32: Add fallback in case the Windows console can't cope with Unicode.
939 + commit edfe9453be5f8ba374da0ab860be863d66965c56
940 * common/ttyio.c (w32_write_console): Fallback to WriteConsoleA on
943 scd:p15: Prepare AODF parsing for other authentication types.
944 + commit e387cc97c82313457e4f79729a137e5871891bc1
945 * scd/app-p15.c (auth_type_t): New.
946 (struct aodf_object_s): Add field auth_type.
947 (read_ef_aodf): Distinguish between pin and authkey types. Include
948 the authtype in the verbose mode diags.
950 2021-06-21 Werner Koch <wk@gnupg.org>
952 dirmngr: Fix regression in KS_GET for mail address pattern.
953 + commit d5126efd895bc2af0a7e63dbf4aa782ce47ecc40
954 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Munge mail address pattern.
955 (ks_hkp_get): Allow for mail addresses.
958 Before the keyserver changes in 2.2.28 gpg passed dirmngr a pail
959 address as an exact pattern (e.g. "=foo@example.org"). Since 2.2.28
960 the mail address is detected gpg gpg and we see for example
961 "<foo@example.org>". This patch fixes this to turn a mail address
962 into an exact match again.
964 2021-06-18 Werner Koch <wk@gnupg.org>
966 scd:p15: Add pre-check for ascii-numeric PINs.
967 + commit 029924a46e08ffcda038d89f06abfb41c980a9ad
968 * scd/app-p15.c (verify_pin): acii-numerix is different than BCD.
970 scd:p15: Add basic support for AET JCOP cards.
971 + commit 544ec7872aed24c296ea34fac777eca287f7bb47
972 * scd/app-p15.c (CARD_TYPE_AET): New.
973 (cardtype2str): Add string.
974 (card_atr_list): Add corresponding ATR.
975 (app_local_s): New flag no_extended_mode. Turn two other flags into
977 (select_ef_by_path): Hack to handle the 3FFF thing.
978 (readcert_by_cdf): Do not use etxended mode for AET.
979 (app_select_p15): Set no_extended_mode.
981 scd:p15: Handle cards with bad encoded path objects.
982 + commit 7a8545c91b09277b0833dc0e5881ba5d1c8dbca3
983 * scd/app-p15.c (read_ef_prkdf, read_ef_pukdf)
984 (read_ef_cdf, read_ef_aodf): Allow for a zero length path and
985 correctly skip unsupported auth types.
987 scd: Improve reading of binary records.
988 + commit 44f977d0e332e77fb8a775c4837c00118bbe08cb
989 * scd/iso7816.c (iso7816_read_binary_ext): Handle the 0x6a86 SW the
991 * scd/apdu.c (apdu_get_atr): Modify debug messages.
992 * scd/app-p15.c (app_select_p15): Print FCI on error.
993 (read_p15_info): Clean up diag in presence of debug options.
995 2021-06-17 NIIBE Yutaka <gniibe@fsij.org>
997 scd: Fix RESET handling.
998 + commit 7718244168c948171ffd37d7e964cbcd172661c6
999 * scd/app.c (scd_update_reader_status_file): Clear ->reset_requested.
1001 2021-06-16 NIIBE Yutaka <gniibe@fsij.org>
1003 dirmngr: Fix build with --disable-ldap.
1004 + commit c6900f5723b4edc899aaea267ed599b5ad724142
1005 * dirmngr/dirmngr.c (parse_rereadable_options) [USE_LDAP]:
1008 2021-06-16 Werner Koch <wk@gnupg.org>
1010 sm: New option --ldapserver as an alias for --keyserver.
1011 + commit 89df86157e3580aae7e391382f4a5451a192fc68
1012 * sm/gpgsm.c (opts): Add option --ldapserver and make --keyserver an
1015 dirmngr: Allow to pass no filter args to dirmngr_ldap.
1016 + commit 14528ec66bd7dce28c7540fa9a34f35de54261c1
1017 * dirmngr/dirmngr_ldap.c (main): Handle no args case.
1019 dirmngr: Rewrite the LDAP wrapper tool.
1020 + commit 864ea251983977b91a7f6ff5964e497cf4b208dc
1021 * dirmngr/ldap-misc.c: New.
1022 * dirmngr/ldap-misc.h: New.
1023 * dirmngr/ks-engine-ldap.c: Include ldap-misc.h.
1024 (ldap_err_to_gpg_err, ldap_to_gpg_err): Move to ldap-misc.c.
1025 * dirmngr/ldap-wrapper.c (ldap_wrapper): Print list of args in debug
1027 * dirmngr/server.c (lookup_cert_by_pattern): Handle GPG_ERR_NOT_FOUND
1028 the saqme as GPG_ERR_NO_DATA.
1029 * dirmngr/ldap.c (run_ldap_wrapper): Add args tls_mode and ntds.
1030 Remove arg url. Adjust for changes in dirmngr_ldap.
1031 (url_fetch_ldap): Remove args host and port. Parse the URL and use
1032 these values to call run_ldap_wrapper.
1033 (attr_fetch_ldap): Pass tls flags to run_ldap_wrapper.
1034 (rfc2254_need_escape, rfc2254_escape): New.
1035 (extfilt_need_escape, extfilt_escape): New.
1036 (parse_one_pattern): Rename to ...
1037 (make_one_filter): this. Change for new dirmngr_ldap calling
1038 convention. Make issuer DN searching partly work.
1039 (escape4url, make_url): Remove.
1040 (start_cert_fetch_ldap): Change for new dirmngr_ldap calling
1042 * dirmngr/dirmngr_ldap.c: Major rewrite.
1044 * dirmngr/t-ldap-misc.c: New.
1045 * dirmngr/t-support.h (DIM, DIMof): New.
1046 * dirmngr/Makefile.am (dirmngr_ldap_SOURCES): Add ldap-misc.c
1047 (module_tests) [USE_LDAP]: Add t-ldap-misc.
1048 (t_ldap_parse_uri_SOURCES): Ditto.
1049 (t_ldap_misc_SOURCES): New.
1051 dirmngr: Remove useless code.
1052 + commit bcb99315627ec38aa5c9fe097075a82bdc8a2043
1053 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Remove the
1054 password_param thing because we set the password directly without an
1057 dirmngr: Fix default port for our redefinition of ldaps.
1058 + commit 58e4c82512a4b0828f78fc9f03dbcdbf77760b5c
1059 * dirmngr/server.c (make_keyserver_item): Fix default port for ldaps.
1060 Move a tmpstr out of the blocks.
1061 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Improve diagnostics.
1063 dirmngr: Use --ldaptimeout for OpenPGP LDAP keyservers.
1064 + commit 3e05f99e8db5c4039d352d5bd9dde01ed9653f2f
1065 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Use LDAP_OPT_TIMEOUT.
1067 * dirmngr/dirmngr.c (main): Move --ldaptimeout setting to ...
1068 (parse_rereadable_options): here.
1070 dirmngr: New option --ldapserver.
1071 + commit 52cf32ce2f904b2e6f53f406a90458f6ef148af9
1072 * dirmngr/dirmngr.c (opts): Add option --ldapserver.
1073 (ldapserver_list_needs_reset): New var.
1074 (parse_rereadable_options): Implement option.
1075 (main): Ignore dirmngr_ldapservers.conf if no --ldapserver is used.
1077 * dirmngr/server.c (cmd_ldapserver): Add option --clear and list
1078 configured servers if none are given.
1080 dirmngr: Allow for non-URL specified ldap keyservers.
1081 + commit eb3a629154de10a5414a5d2c2b9941ef8bf1eeaf
1082 * dirmngr/server.c (cmd_ldapserver): Strip an optional prefix.
1083 (make_keyserver_item): Handle non-URL ldap specs.
1084 * dirmngr/dirmngr.h (struct ldap_server_s): Add fields starttls,
1085 ldap_over_tls, and ntds.
1087 * dirmngr/ldapserver.c (ldapserver_parse_one): Add for an empty host
1088 string. Improve error messages for the non-file case. Support flags.
1089 * dirmngr/ks-action.c (ks_action_help): Handle non-URL ldap specs.
1090 (ks_action_search, ks_action_get, ks_action_put): Ditto.
1091 * dirmngr/ks-engine-ldap.c: Include ldapserver.h.
1092 (ks_ldap_help): Handle non-URL ldap specs.
1093 (my_ldap_connect): Add args r_host and r_use_tls. Rewrite to support
1094 URLs and non-URL specified keyservers.
1095 (ks_ldap_get): Adjust for changes in my_ldap_connect.
1096 (ks_ldap_search): Ditto.
1097 (ks_ldap_put): Ditto.
1099 gpg,sm: Simplify keyserver spec parsing.
1100 + commit bebc71d2291e93afb76792c5e210836857103c36
1101 * common/keyserver.h: Remove.
1102 * sm/gpgsm.h (struct keyserver_spec): Remove.
1103 (opt): Change keyserver to a strlist_t.
1104 * sm/gpgsm.c (keyserver_list_free): Remove.
1105 (parse_keyserver_line): Remove.
1106 (main): Store keyserver in an strlist.
1107 * sm/call-dirmngr.c (prepare_dirmngr): Adjust for the strlist. Avoid
1108 an ambiguity in dirmngr by adding a prefix if needed.
1110 * g10/options.h (struct keyserver_spec): Move definition from
1111 keyserver.h to here. Remove most fields.
1112 * g10/keyserver.c (free_keyserver_spec): Adjust.
1113 (cmp_keyserver_spec): Adjust.
1114 (parse_keyserver_uri): Simplify.
1115 (keyidlist): Remove fakev3 arg which does not make any sense because
1116 we don't even support v3 keys.
1118 dirmngr: Support pseudo URI scheme "opaque".
1119 + commit 1c96f4d663c020167ed3d39e513751641dfc3567
1120 * dirmngr/http.h (HTTP_PARSE_NO_SCHEME_CHECK): New.
1121 * dirmngr/http.c (http_parse_uri): Use this flag. Change all callers
1122 to use the new macro for better readability.
1123 (do_parse_uri): Add pseudo scheme "opaque".
1124 (uri_query_value): New.
1126 2021-06-11 Werner Koch <wk@gnupg.org>
1128 sm: Fix finding of issuer in use-keyboxd mode.
1129 + commit 6b76693ff54297456b724ba53f7e6283e2a5a126
1130 * sm/keydb.c (struct keydb_local_s): Add field saved_search_result.
1131 (keydb_push_found_state): Implement for keyboxd.
1132 (keydb_pop_found_state): Ditto.
1133 (keydb_get_cert): Do not release the cert so that the function can be
1134 used again to get the same cert. This is the same behaviour as in
1137 * sm/certchain.c, sm/import.c: Improve some error messages.
1139 2021-06-11 NIIBE Yutaka <gniibe@fsij.org>
1141 scd: Support clearing of Reset Code by ''.
1142 + commit 4e02db75e3a1da9012176f2cfe1638c8c0129f6f
1143 * scd/app-openpgp.c (do_change_pin): Allow null-string.
1145 2021-06-09 Werner Koch <wk@gnupg.org>
1147 gpgtar,w32: Fix file size computation.
1148 + commit 14e36bdbe1c39bc23e70db775e05319367ee8adb
1149 * tools/gpgtar-create.c (fillup_entry_w32): Move parentheses.
1151 2021-06-09 NIIBE Yutaka <gniibe@fsij.org>
1153 agent: Fix importing protected secret key.
1154 + commit 7a80004d5407c6c48b21d57ba6edb8e5a2db4995
1155 * agent/cvt-openpgp.c (do_unprotect): Only modify SKEY when it is
1156 correctly decrypted.
1158 2021-06-08 NIIBE Yutaka <gniibe@fsij.org>
1160 scd: Fix serial number detection for Yubikey 5.
1161 + commit c3a9ee0b658887ca9baa4514187b17857fdf6586
1162 * scd/app.c (app_new_register): Handle serial number correctly.
1164 2021-06-07 NIIBE Yutaka <gniibe@fsij.org>
1166 scd: Fix READER-PORT option handling for PC/SC.
1167 + commit ee5b6af370fbee1b08136e5dc384cf7996bcfc4c
1168 * scd/apdu.c (apdu_open_reader): READERNO should be -1 when
1169 READER-PORT is specified for PC/SC.
1171 2021-06-04 NIIBE Yutaka <gniibe@fsij.org>
1173 agent: Appropriate error code for importing key with no passwd.
1174 + commit 21ef425e222ddfa460b37dece63adb67ff2e4dd1
1175 * agent/cvt-openpgp.c (convert_from_openpgp_main): Return
1178 2021-06-03 NIIBE Yutaka <gniibe@fsij.org>
1180 gpg: Support KEYGRIP search with traditional keyring.
1181 + commit 9668ee097a1474299b8debecb1ee38620a327082
1182 * g10/keyring.c (keyring_search): Handle KEYDB_SEARCH_MODE_KEYGRIP.
1184 2021-06-02 Werner Koch <wk@gnupg.org>
1186 common: Allow for GCM decryption in de-vs mode.
1187 + commit c17dac5ac3ccb374e5a1276d4bc9b444c390a4c5
1188 * common/compliance.c (gnupg_cipher_is_allowed): Allow GCM for gpgsm
1191 * tests/cms/samplemsgs/pwri-sample.gcm.p7m: Remove duplicated authtag
1193 sm: Support AES-GCM decryption.
1194 + commit 4980fb3c6dde8c1dda975e8a36d6086c8456a631
1195 * tests/cms/samplemsgs/: Add sample messages.
1196 * sm/gpgsm.c (main): Use gpgrt_fcancel on decryption error.
1197 * sm/decrypt.c (decrypt_gcm_filter): New.
1198 (gpgsm_decrypt): Use this filter if requested. Check authtag.
1200 2021-05-28 Werner Koch <wk@gnupg.org>
1202 gpgconf: Make runtime changes with different homedir work.
1203 + commit 31c0aa2ff37f662c6391885d61ffd46ec3062e5a
1204 * tools/gpgconf-comp.c (dirmngr_runtime_change): Pass --homedir first.
1206 2021-05-28 NIIBE Yutaka <gniibe@fsij.org>
1208 agent: Fix calling handle_pincache_put.
1209 + commit 36f50b259cae0428264f4b7d60b82209e3dd8725
1210 * agent/call-scd.c (padding_info_cb): Fix the argument.
1212 scd: Fix zero-byte handling in ECC.
1213 + commit 5b1806454c03b3b493222f405ffced80a5d430ad
1214 * scd/app-openpgp.c (ecc_writekey): Don't remove zero-byte.
1216 2021-05-27 NIIBE Yutaka <gniibe@fsij.org>
1218 gpg: Ed448 and X448 are only for v5 for --full-gen-key.
1219 + commit 2b50f942672d9a2c325a818f21f69d3ee69255d3
1220 * g10/keygen.c (generate_keypair): Set pVERSION = 5, pSUBVERSION = 5,
1221 when it's Ed448 or X448.
1223 build: _DARWIN_C_SOURCE should be 1.
1224 + commit be81941e1aca75d9e1d0dd2e2b234ae6df53c05a
1225 * configure.ac (*-apple-darwin*): Set _DARWIN_C_SOURCE 1.
1227 2021-05-25 Werner Koch <wk@gnupg.org>
1229 gpg: Partial fix for Unicode problem in output files.
1230 + commit 30563ea29705016b08ff04fd8a833940ea94e4e8
1231 * g10/openfile.c (overwrite_filep): Use gnupg_access.
1233 2021-05-21 Werner Koch <wk@gnupg.org>
1235 common: Annotate leaked memory in homedir.c.
1236 + commit 260bbb4ab27eab0a8d4fb68592b0d1c20d80179c
1237 * g10/trustdb.c (how_to_fix_the_trustdb): Use gnupg_homedir.
1238 * common/homedir.c (standard_homedir): Annotate leaked memory.
1239 (gnupg_daemon_rootdir): Ditto.
1240 (gnupg_socketdir): Ditto.
1241 (gnupg_sysconfdir): Ditto.
1242 (gnupg_bindir): Ditto.
1243 (gnupg_libdir): Ditto.
1244 (gnupg_datadir): Ditto.
1245 (gnupg_localedir): Ditto.
1246 (gnupg_cachedir): Ditto.
1247 (gpg_agent_socket_name): Ditto.
1248 (dirmngr_socket_name): Ditto.
1249 (keyboxd_socket_name): Ditto.
1250 (get_default_pinentry_name): Ditto.
1251 (gnupg_module_name): Ditto.
1252 (default_homedir): Ditto. Make static.
1254 2021-05-20 Werner Koch <wk@gnupg.org>
1256 sm: Let --dump-cert --show-cert also print an OpenPGP fingerprint.
1257 + commit 52bbdc731fd54ff6d2744d7aca8e48e2c2389cc9
1258 * sm/keylist.c (list_cert_raw): Print the OpenPGP fpr.
1260 2021-05-20 Jakub Jelen <jjelen@redhat.com>
1262 card: Intialize pointer to avoid double free.
1263 + commit 98c52aeb31f4bf2604727aacad982fb51c04063f
1264 * tools/gpg-card.c (cmd_salut): Initialize data pointer
1266 scd: avoid memory leaks.
1267 + commit 27e7bde12ee2b67425ae7011d976d2544c90fd9a
1268 * scd/app-p15.c (send_certinfo): free labelbuf
1269 (do_sign): goto leave instead of return
1270 * scd/app-piv.c (do_sign): goto leave instead of return, fix typo in
1271 variable name, avoid using uninitialized variables
1272 * scd/command.c (cmd_genkey): goto leave instead of return
1274 kbx: Avoid uninitialized read.
1275 + commit fc5fac83b778f0ff61608c286448ab7fa14ccb2d
1276 * kbx/kbx-client-util.c (datastream_thread): Initialize pointer
1277 * kbx/keybox-dump.c (_keybox_dump_cut_records): free blob
1278 * kbx/kbxserver.c (kbxd_start_command_handler): do not free passed ctrl
1279 * kbx/keyboxd.c (check_own_socket): free sockname
1281 g10: Avoid memory leaks.
1282 + commit fa0771f609b5fcb104c64a11aefc501b7a91696d
1283 * g10/call-agent.c (card_keyinfo_cb): free keyinfo. Restructure to
1284 avoid backward gotos.
1285 * g10/keyedit.c (menu_set_keyserver_url): properly enclose the block
1286 * g10/keygen.c (gen_card_key): free pk and pkt
1288 dirmgr: Avoid double free.
1289 + commit 25aa353bf833fdae1a96158b49daf7588ae3b109
1290 * dirmgr/http.c (http_prepare_redirect): Avoid double free
1291 * dirmgr/ocsp.c (check_signature): Initialize pointer
1293 common: Avoid double-free.
1294 + commit 4704d1ce4e1e2ba9f986fb221346eda5c97f947b
1295 * common/name-value.c (do_nvc_parse): reset to null after ownership
1298 agent: Fix memory leaks.
1299 + commit 33a2362e566c0e0d7011abf2e5fa5704d7cb4206
1300 * agent/call-daemon.c (daemon_start): free wctp
1301 * agent/call-scd.c (agent_card_pksign): return error instead of noop
1302 (card_keyinfo_cb): free keyinfo. Restructure to avoid a goto backwards.
1303 * agent/protect.c (agent_get_shadow_info_type): allocate only as a last
1304 action. Catch xtrymalloc failure.
1305 (agent_is_tpm2_key): Free buf.
1307 sm: Avoid memory leaks and double double-free.
1308 + commit e6132bc9f41727ea1abe2d6298610223c11639a2
1309 * sm/certcheck.c (extract_pss_params): Avoid double free
1310 * sm/decrypt.c (gpgsm_decrypt): goto leave instead of return
1311 * sm/encrypt.c (encrypt_dek): release s_pkey
1312 * sm/server.c (cmd_export): free list
1313 (do_listkeys): free lists
1315 g10: Fix memory leaks.
1316 + commit 2af7bb2295cda5377546cedd0c906a3cff4d2427
1317 * g10/card-util.c (change_pin): free answer on errors
1318 (ask_card_keyattr): free answer on error
1319 * g10/cpr.c (do_get_from_fd): free string
1320 * g10/gpg.c (check_permissions): free dir on weird error
1321 * g10/import.c (append_new_uid): release knode
1322 * g10/keyedit.c (menu_set_keyserver_url): free answer
1323 (menu_set_keyserver_url): free user
1324 * g10/keygen.c (print_status_key_not_created): move allocation after
1326 (ask_expire_interval): free answer
1327 (card_store_key_with_backup): goto leave instaed of return
1328 * g10/keyserver.c (parse_keyserver_uri): goto fail instead of return
1329 * g10/revoke.c (gen_desig_revoke): release kdbhd
1330 (gen_desig_revoke): free answer
1331 * g10/tofu.c (ask_about_binding): free sqerr and response
1332 * g10/trustdb.c (ask_ownertrust): free pk
1334 dirmgr: clean up memory on error code paths.
1335 + commit 0d2c1e9046faf102809bc65329c22b6cf8d62ea0
1336 * dirmgr/crlcache.c (finish_sig_check): goto leave instead of return
1337 * dirmgr/http.c (send_request): free authstr and proxy_authstr
1338 * dirmgr/ldap.c (start_cert_fetch_ldap): free proxy
1339 * dirmgr/ocsp.c (check_signature): release s_hash
1341 agent: Avoid memory leaks in error code paths.
1342 + commit a95ddffdcd58383cce93677be5e7e11c5c229a98
1343 * agent/command.c (cmd_genkey): Use goto instead of return.
1344 * agent/cvt-openpgp.c (convert_from_openpgp_main): Ditto.
1345 * agent/genkey.c (agent_ask_new_passphrase): Fix typo to free correct
1347 (agent_genkey): Release memory
1348 * agent/gpg-agent.c (check_own_socket): Free sockname
1349 * agent/protect-tool.c (read_key): Free buf.
1350 (agent_askpin): Free passphrase
1352 2021-05-19 Werner Koch <wk@gnupg.org>
1354 dirmngr: For KS_SEARCH return the fingerprint also with LDAP.
1355 + commit a660e1060630e8d75ecb43abf69dbb73378c1df9
1356 * dirmngr/ks-engine-ldap.c (extract_keys): Return the fingerprint if
1358 (ks_ldap_search): Ditto.
1359 (extract_keys): Make sure to free the ldap values also in corner
1361 (my_ldap_value_free): New.
1362 (ks_ldap_get): Ditto.
1363 (ks_ldap_search): Ditto.
1364 (my_ldap_connect): Ditto.
1366 gpg: Improve speed of secret key listing.
1367 + commit 40da61b89b62dcb77847dc79eb159e885f52f817
1368 * agent/command.c (cmd_keyinfo): Factor some code out to ...
1369 (get_keyinfo_on_cards): ... new.
1370 (cmd_havekey): Add --list mode.
1371 * g10/gpg.h (struct server_control_s): Add new caching vars.
1372 * g10/gpg.c (gpg_deinit_default_ctrl): Release cache.
1373 * g10/call-agent.c (agent_probe_any_secret_key): Init and try to use
1375 (agent_genkey): Clear the cache.
1376 (agent_import_key): Ditto.
1378 * g10/keylist.c (list_all, list_one): Pass ctrl to
1379 agent_probe_any_secret_key.
1380 * g10/getkey.c (lookup): Ditto.
1382 2021-05-18 Werner Koch <wk@gnupg.org>
1384 gpg: Fix sending an OpenPGP key with umlaut to an LDAP keyserver.
1385 + commit b8e6e485ee0b3389992f5de4d717e2e9cca92a9e
1386 * g10/call-dirmngr.c (record_output): Rewrite.
1388 2021-05-18 Ingo Klöcker <dev@ingo-kloecker.de>
1390 scd:p15: Fix logic for appending product name to MANUFACTURER.
1391 + commit 65bc5ea95e608869fe57dae43e201ed47b98f9fe
1392 * scd/app-p15.c (do_getattr): Append product name to MANUFACTURER if
1393 manufacturer_id does not already contain a bracket and if we have a
1396 2021-05-17 Werner Koch <wk@gnupg.org>
1398 gpg: Use a more descriptive prompt for symmetric decryption.
1399 + commit 6dfae2f402a702ccd7f2c585b28cb356e9f26a26
1400 * g10/keydb.h (GETPASSWORD_FLAG_SYMDECRYPT): New.
1401 (passphrase_to_dek_ext): Remove this obsolete prototype.
1402 * g10/passphrase.c (passphrase_get): Add arg flags. Use new flag
1404 (passphrase_to_dek): Add arg flags and pass it on.
1405 * g10/mainproc.c (proc_symkey_enc): Use new flag.
1407 * sm/decrypt.c (pwri_decrypt): Use "passphrase".
1409 dirmngr: LDAP search by a mailbox now ignores revoked keys.
1410 + commit 1406f551f1e00a03eabf5b8bd3011bf6393ce318
1411 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Ignore revoked
1412 and disable keys in mail mode.
1414 sm: Ask for the password for password based decryption (pwri)
1415 + commit eeb65d3bbd7d461694d30009631739735a2b9bad
1416 * sm/decrypt.c (pwri_decrypt): Add arg ctrl. Ask for passphrase.
1418 * sm/export.c (export_p12): Mark string as translatable.
1419 * sm/import.c (parse_p12): Ditto.
1421 2021-05-14 Werner Koch <wk@gnupg.org>
1423 sm: Support decryption of password based encryption (pwri)
1424 + commit 02029f9eab87e9fd667829dfb083846275576398
1425 * sm/decrypt.c (pwri_parse_pbkdf2): New.
1426 (pwri_decrypt): New.
1427 (prepare_decryption): Support pwri.
1428 (gpgsm_decrypt): Test for PWRI. Move IS_DE_VS flag to DFPARM.
1430 2021-05-14 NIIBE Yutaka <gniibe@fsij.org>
1432 scd: Remove wrong assertion and add protection to PCSC.COUNT.
1433 + commit 58b330e935b9225d5a389c5d858a0e7304f573ad
1434 * scd/apdu.c (apdu_dev_list_finish): Fix for calling
1435 release_pcsc_context.
1437 2021-05-12 Werner Koch <wk@gnupg.org>
1438 Jakub Jelen <jjelen@redhat.com>
1440 agent: Use SHA-256 for SSH fingerprint by default.
1441 + commit 310b064f5271fe8566ebc996702ea1422875f425
1442 * agent/gpg-agent.c (parse_rereadable_options): Change default ssh
1446 2021-05-11 Werner Koch <wk@gnupg.org>
1448 A few minor code cleanups and typo fixes.
1449 + commit 965bb0693c0df04e6dbd57a8b471944367cf6c4e
1450 * agent/command-ssh.c (ssh_handler_request_identities): Remove double
1452 * g10/getkey.c (get_pubkey_byname): Remove double use of break.
1453 * g10/pkglue.c (pk_encrypt): Handle possible NULL-ptr access due to
1456 2021-05-11 NIIBE Yutaka <gniibe@fsij.org>
1458 gpg: Fix allocation for EXTRAHASH.
1459 + commit ac731dbbbd21f53d2f6bf69343e6bf553ebc9dad
1460 * g10/sign.c (clearsign_file): Fix the size to allocate.
1462 scd: Serialize READER_TABLE access for PC/SC.
1463 + commit 32baa9acfb153004bdb2509f9516482b78f256a4
1464 * scd/apdu.c (apdu_dev_list_start): Remove locking READER_TABLE_LOCK.
1465 Don't increment PCSC.COUNT here.
1466 (apdu_dev_list_finish): Don't decrement PCSC.COUNT here.
1467 (apdu_open_reader): Protect access with READER_TABLE_LOCK.
1469 2021-05-10 NIIBE Yutaka <gniibe@fsij.org>
1471 scd: Fix close_pcsc_reader.
1472 + commit ec5591dc4e1f1b0340b9043a410dc62b63a90416
1473 * scd/apdu.c (close_pcsc_reader): Don't touch .RDRNAME field.
1474 (apdu_dev_list_finish): Clear .RDRNAME field and replace call of
1475 close_pcsc_reader by release_pcsc_context. Add assertion.
1477 scd: Make sure releasing PC/SC context.
1478 + commit cccc9bd5db1f00c35dff192935e91d46cafb259f
1479 * scd/apdu.c (release_pcsc_context): New.
1480 (close_pcsc_reader): Use release_pcsc_context. Add assertion.
1481 (apdu_dev_list_start): Replace call of close_pcsc_reader
1482 into release_pcsc_context, add condition.
1484 2021-05-07 NIIBE Yutaka <gniibe@fsij.org>
1486 scd: Increment PCSC.COUNT correctly.
1487 + commit 0498ea8fbd57d0df3093301d551db6b287ccf622
1488 * scd/apdu.c (open_pcsc_reader): PCSC.COUNT should
1489 be incremented before possible call of close_pcsc_reader.
1491 scd: Fix memory leak for RDRNAME and serialize access.
1492 + commit 5d1b41310682a599a16bcb95e18f56e62299059e
1493 * scd/apdu.c (close_pcsc_reader): Move locking to...
1494 (apdu_close_reader): ... here, as it's also needed for CCID driver.
1495 Free RDRNAME when closed.
1497 scd: Fix declarations for PC/SC access.
1498 + commit 039aed9d401f3875eee0251d34be74de7a1daf84
1499 * scd/apdu.c (pcsc_begin_transaction, pcsc_transmit): Use HANDLE.
1501 2021-05-06 NIIBE Yutaka <gniibe@fsij.org>
1503 scd: Recover the partial match for PORTSTR for PC/SC.
1504 + commit 53bdc6288f9b474e53f06088130e304cee41b12d
1505 * scd/apdu.c (apdu_open_reader): Allow partial match of
1506 PORTSTR again just like 2.2 does.
1508 scd: When reader is specified, make sure only open once.
1509 + commit d6fe82d3d1699eb417f87b487048f95fee91e2cd
1510 * scd/apdu.c (apdu_open_reader): Make sure not to try multiple times,
1511 when PORTSTR is specified.
1513 2021-04-29 Werner Koch <wk@gnupg.org>
1515 scd: Fix PC/SC removed card problem.
1516 + commit 8d81fd7c01e8dfacc719ff190f8e364014e32fdf
1517 * scd/apdu.c (pcsc_cancel): New.
1518 (pcsc_init): Load new function.
1519 (connect_pcsc_card): Use it after a removed card error.
1521 2021-04-28 Werner Koch <wk@gnupg.org>
1523 scd: Fix problem with reader list becoming empty.
1524 + commit bb8e3996e44f4f057f0771b9b72c89feae00f1b1
1525 * scd/apdu.c (close_pcsc_reader): Do not decrement refcount if already
1526 zero. Always release context if or becomes zero.
1527 (apdu_dev_list_start): Unlock prior to close_pcsc_reader. For PC/SC
1528 increment the count. Always release the lock.
1529 (apdu_dev_list_finish): No more unlocking. Use close_pcsc_reader
1530 instead of code duplication.
1532 * scd/apdu.c (pcsc_error_string): Add an error code.
1533 * scd/scdaemon.c (scd_kick_the_loop): Fix a diagnostic.
1535 2021-04-27 Kirill Elagin <kirelagin@gmail.com>
1537 scd: Fix unblock PIN by a Reset Code with KDF.
1538 + commit f209d7d2db0e963a6ad1fa8c4f0c034ba0297842
1539 * scd/app-openpgp.c (do_change_pin): Use correct CHVNO=1 for
1540 pin2hash_if_kdf, for user's PIN.
1542 2021-04-26 Werner Koch <wk@gnupg.org>
1544 gpg: Fix mailbox based search via AKL keyserver method.
1545 + commit 4fcfac6feb2a6c2b14883ba406afc917e8d4be42
1546 * g10/keyserver.c (keyserver_import_name): Rename to ...
1547 (keyserver_import_mbox): this. And use mail search mode.
1548 * g10/getkey.c (get_pubkey_byname): Change the two callers.
1550 gpg: Do not use import-clean for LDAP keyserver imports.
1551 + commit 99db4b0c7fd128ea5b2e251fe854bd57f6322238
1552 * g10/options.h (opts): New field expl_import_only.
1553 * g10/import.c (parse_import_options): Set it.
1554 * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP.
1556 2021-04-25 Werner Koch <wk@gnupg.org>
1558 gpg: Auto import keys specified with --trusted-keys.
1559 + commit 100037ac0f558e8959fc065d4703c85c2962489e
1560 * g10/getkey.c (get_pubkey_with_ldap_fallback): New.
1561 * g10/trustdb.c (verify_own_keys): Use it.
1563 scd:p15: Fix last commit and improve D-TRUST detection.
1564 + commit cc5aa68b6310bdeaa1102bb0d6a33420920648e7
1565 * scd/app-p15.c (read_p15_info): Improve D-TRUST card detection.
1566 (do_getattr): Fix faulty code for the last commit. Append the product
1567 name to MANUFACTURER.
1569 scd:p15: Shorten the displayed s/n of RSCS cards.
1570 + commit 21e3f750bd7dde2ae9ece01b1abdd1b47ba4fb04
1571 * scd/app-p15.c (get_dispserialno): Add dedicated handling for RSCS.
1573 2021-04-23 Werner Koch <wk@gnupg.org>
1575 gpg: Replace an obsolete trustdb function.
1576 + commit 3cbc66410d62ad2f7e559095753a2385fe644d07
1577 * g10/trustdb.c (tdb_register_trusted_keyid): Make static.
1578 (tdb_register_trusted_key): Replace register_trusted_keyid by
1579 tdb_register_trusted_key.
1580 * g10/keygen.c (do_generate_keypair): Ditto.
1581 * g10/trust.c (register_trusted_keyid): Remove.
1583 gpg: Allow decryption w/o public key but with correct card inserted.
1584 + commit 50293ec2ebf2a997dbad9a47166d694efcc0709a
1585 * agent/command.c (cmd_readkey): Add option --no-data and special
1586 handling for $SIGNKEYID and $AUTHKEYID.
1587 * g10/call-agent.c (agent_scd_getattr): Create shadow keys for KEY-FPR
1589 * g10/skclist.c (enum_secret_keys): Automagically get a missing public
1590 key for the current card.
1592 agent: Require verbose level 2 for handler started/terminated notices.
1593 + commit 84c2d97cca76045bbe9d0598a10623d5d91e6530
1594 * agent/gpg-agent.c (do_start_connection_thread): Silence diags even
1597 2021-04-23 NIIBE Yutaka <gniibe@fsij.org>
1599 tools: Fix for --disable-tpm2d.
1600 + commit 97ba94e52b2390f43fc1ac7db98e8ee7a37ddfb1
1601 * tools/gpgconf-comp.c: Conditionalize with BUILD_WITH_TPM2D.
1603 2021-04-22 Werner Koch <wk@gnupg.org>
1605 scd: Fix PSO_CSV for 512 bit curves.
1606 + commit 9e24f2a45ce8038f662ec1a9893669e1d5604ec7
1607 * scd/iso7816.c (iso7816_pso_csv): Use BER-TLV instead of SIMPLE-TLV
1609 tests: Make sure that the build keyboxd is used.
1610 + commit d36c4dc95b72b780375d57311bdf4ae842fd54fa
1611 * tests/openpgp/defs.scm (create-gpghome): Add keyboxd-program.
1613 2021-04-21 Werner Koch <wk@gnupg.org>
1615 card: New option --shadow for command list.
1616 + commit 2fce99d73a6afc1a1a29041722a934bb81c7d739
1617 * tools/card-call-scd.c (scd_readkey): Add arg create_shadow.
1618 * tools/gpg-card.c (list_one_kinfo): Add arg create_shadow and pass it
1619 down to scd-readkey. Change all callers to convey this arg.
1620 (cmd_list): Add option --shadow.
1622 agent: Silence error messages for READKEY --card.
1623 + commit 8f2c9cb73538baab7da8107f2cceb2f6fc49642a
1624 * agent/command.c (cmd_readkey): Test for shadow key before creating
1627 gpg: Allow fingerprint based lookup with --locate-external-key.
1628 + commit ec36eca08cdbf6653e7362e8e0e6c5f2c75b4a60
1629 * g10/keyserver.c (keyserver_import_fprint_ntds): New.
1630 * g10/getkey.c (get_pubkey_byname): Detect an attempt to search by
1631 fingerprint in no_local mode.
1633 keyboxd: Fix searching for exact mail addresses.
1634 + commit f79e9540ca643b5cb912e7bfca2af56be428efed
1635 * kbx/kbxserver.c (cmd_search): Use the openpgp hack for calling
1637 * kbx/backend-sqlite.c (run_select_statement): Remove angle brackets
1638 in exact addrspec mode.
1639 * g10/call-keyboxd.c (keydb_search): Do not duplicate the left angle
1641 * sm/keydb.c (keydb_search): Ditto.
1643 gpg,sm: Ignore the log-file option from common.conf.
1644 + commit d153e4936e05ab3b15df3c092024d83ac9d6ca46
1645 * g10/gpg.c (main): Don't use the default log file from common.conf.
1646 * sm/gpgsm.c (main): Ditto.
1648 2021-04-20 Werner Koch <wk@gnupg.org>
1651 + commit cbbdb88627fe57ebf02b8b4bf9002d356e57e2e4
1654 Support log-file option from common.conf for all daemon.
1655 + commit 45918813f0599505e4f84bd44b09fb708b4e7f23
1656 * agent/gpg-agent.c: Include comopt.h.
1657 (main): Read log-file option from common.conf.
1658 (reread_configuration): Ditto.
1659 * dirmngr/dirmngr.c: Include comopt.h.
1660 (main): Read log-file option from common.conf.
1661 (reread_configuration): Ditto.
1662 * kbx/keyboxd.c: Include comopt.h.
1663 (main): Read log-file option from common.conf.
1664 (reread_configuration): Ditto.
1665 * scd/scdaemon.c: Include comopt.h.
1666 (main): Read log-file option from common.conf.
1668 gpgconf: Fix a diagnostic output.
1669 + commit b657d6c3bd8103d40d511a3293313a891a26a9f5
1670 * tools/gpgconf-comp.c (gc_component_launch): Fix diagnostic.
1671 * doc/examples/common.conf: Fix example.
1673 sm: New command --show-certs.
1674 + commit 51419d63415ae2aa029f8829099b6789b264edc5
1675 * sm/keylist.c (do_show_certs): New.
1676 (gpgsm_show_certs): New.
1677 * sm/gpgsm.c (aShowCerts): New.
1678 (opts): Add --show-certs.
1679 (main): Call gpgsm_show_certs.
1681 2021-04-19 Werner Koch <wk@gnupg.org>
1683 build: Fix build problems on macOS for gpgsm tests and gpg-card.
1684 + commit 5fe60576d50f7c857d0a865a9630212422fa1ad1
1685 * tools/gpg-card.c: Include ctype.h.
1686 * sm/Makefile.am (t_common_ldadd): Add LIBICONV.
1688 2021-04-19 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
1690 build: Allow selection of TSS library.
1691 + commit 93c88d0af36b70a406997b40c49bfc14c17b4cd2
1692 * configure.ac: New option --with-tss to force the use of a
1693 specific TSS library.
1695 gpg: Fix showpref to list AEAD feature.
1696 + commit 86f446fd446fcc7295ecf6b37a3f4cca45a165f1
1697 * g10/keyedit.c (show_prefs): Show 'AEAD' if flags.aead is set.
1699 2021-04-19 Werner Koch <wk@gnupg.org>
1701 gpg,gpgsm: Move use-keyboxd to the new conf file common.conf.
1702 + commit d13c5bc244ce1daed285424d920171fc2bcd7290
1703 * common/comopt.c, common/comopt.h: New.
1704 * common/Makefile.am: Add them.
1705 * g10/gpg.c: Include comopt.h.
1706 (main): Also parse common.conf.
1707 * sm/gpgsm.c: Include comopt.h.
1708 (main): Set a flag for the --no-logfile option. Parse common.conf.
1710 * tools/gpgconf-comp.c (known_options_gpg): Remove "use-keyboxd", add
1711 pseudo option "use_keyboxd".
1712 (known_pseudo_options_gpg): Add pseudo option "use_keyboxd".
1713 (known_options_gpgsm): Remove "use-keyboxd".
1715 * tests/openpgp/defs.scm (create-gpghome): Create common.conf.
1717 * doc/examples/common.conf: New.
1719 2021-04-16 Werner Koch <wk@gnupg.org>
1721 gpg: Lookup a missing public key of the current card via LDAP.
1722 + commit d7e707170fbe2956deb3d81e2802d21352079722
1723 * g10/getkey.c (get_seckey_default_or_card): Lookup a missing public
1724 key from the current card via LDAP.
1725 * g10/call-dirmngr.c: Include keyserver-intetnal.h.
1726 (gpg_dirmngr_ks_get): Rename arg quick into flags. Take care of the
1728 * g10/keyserver-internal.h (KEYSERVER_IMPORT_FLAG_QUICK): New.
1729 Replace the use of the value 1 for the former quick arg.
1730 (KEYSERVER_IMPORT_FLAG_LDAP): New.
1731 * g10/keyserver.c (keyserver_get_chunk): Increase the reserved line
1733 * dirmngr/ks-action.c (ks_action_get): Add arg ldap_only.
1734 * dirmngr/server.c (cmd_ks_get): Add option --ldap.
1736 scd:p15: Support attribute KEY-FPR.
1737 + commit 30f90fc8574be4c48ac8d3ff41479481414c0dee
1738 * scd/app-p15.c: Include openpgpdefs.h.
1739 (struct prkdf_object_s): Add fields have_keytime and ecdh_kdf.
1740 (read_p15_info): Set ecdh_kdf.
1741 (keygrip_from_prkdf): Flag that we have the keytime.
1742 (send_keypairinfo): Send the key time only if valid.
1743 (send_key_fpr_line): New.
1744 (send_key_fpr): New.
1745 (do_getattr): Add KEY-FPR.
1747 common: New module to compute openpgp fingerprints.
1748 + commit 2f2bdd9c0894eb43f719da8b529b4c7a46f742a0
1749 * common/openpgp-fpr.c: New.
1750 * common/Makefile.am (common_sources): Add it.
1752 2021-04-13 Werner Koch <wk@gnupg.org>
1754 gpg: Do not use self-sigs-only for LDAP keyserver imports.
1755 + commit 6c26e593df51475921410ac97e9227df6b258618
1756 * dirmngr/ks-engine-ldap.c (ks_ldap_get): Print a SOURCE status.
1757 * g10/options.h (opts): New field expl_import_self_sigs_only.
1758 * g10/import.c (parse_import_options): Set it.
1759 * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP.
1761 2021-04-13 Jakub Jelen <jjelen@redhat.com>
1763 common: Fix memory leaks.
1764 + commit a16f726f9404f173705cc3bef71daee38d2c094b
1765 * common/name-value.c (do_nvc_parse): Free NAME.
1766 * common/recsel.c (recsel_parse_expr): Release SE_HEAD and EXPR_BUFFER.
1768 kbx: Fix memory leak.
1769 + commit 51bbd99a3c9b09a78e766a312d97a1d40372c6cd
1770 * kbx/keybox-update.c (blob_filecopy): Goto leave instead of return.
1772 tools: Fix memory leaks.
1773 + commit 4c8be54cc430bbebd41fd7c452ff4ff9e8ff2bd5
1774 * tools/gpgsplit.c (write_part): Free BLOB on error.
1776 scd: Fix memory leaks.
1777 + commit 7cbe29c4fb4f593e194b6c25cb31633b4a6e0b2b
1778 * scd/apdu.c (apdu_dev_list_start): Free DL.
1779 * scd/app-nks.c (pubkey_from_pk_file): Fix typo in condition.
1781 agent,kbx: Add LIBASSUAN_CLFAGS.
1782 + commit cd66b2eb0d34b135175899362e191fff81588608
1783 * agent/Makefile.am (gpg_preset_passphrase_CFLAGS, t_protect_CFLAGS):
1784 Add LIBASSUAN_CFLAGS.
1785 * kbx/Makefile.am (libkeybox_a_CFLAGS, libkeybox509_a_CFLAGS):
1788 2021-04-12 Werner Koch <wk@gnupg.org>
1790 scd:p15: Match private keys with certificates also by labels.
1791 + commit ecb9265b8dc03a153044e19be804d4c2d2caa4e8
1792 * scd/app-p15.c (cdf_object_from_label): New.
1793 (cdf_object_from_certid): Fallback to label matching.
1794 (read_p15_info): Ditto.
1795 (keygrip_from_prkdf): Ditto. Replace duplicated code by a call to
1796 cdf_object_from_objid.
1798 2021-04-08 Werner Koch <wk@gnupg.org>
1800 scd:nks: Handle APP_READKEY_FLAG_INFO.
1801 + commit 63320ba2f8147ee86f4406c9590f6b28cad4771d
1802 * scd/app-nks.c (keygripstr_from_pk_file): Fix ignored error.
1804 (do_learn_status_core): Use it. Make sure not to mange the
1805 KEYPAIRINFO line if no usage is known.
1806 (do_readkey): Output the KEYPAIRINFO for the keygrip case.
1808 scd: Fix duplicate output of KEYPAIRINFO by readkey command.
1809 + commit 22fd48e48d007a0cba6c8a8f6ad6cb4fe7470534
1810 * scd/app-help.c (app_help_get_keygrip_string_pk): Make HEXKEYGRIP
1812 * scd/command.c (do_readkey): Remove duplicate output of keypairinfo
1815 2021-04-08 NIIBE Yutaka <gniibe@fsij.org>
1817 gpg: Ed448 and X448 are only for v5.
1818 + commit 36355394d865f5760075e62267d70f7a7d5dd671
1819 * g10/keygen.c (parse_key_parameter_part): Generate with version 5
1820 packet, when it's Ed448 or X448.
1822 scd: Fix CCID driver for SCM SPR332/SPR532.
1823 + commit ab66c4357595b8a10ca25fd735f439fe795919b2
1824 * scd/ccid-driver.c (ccid_vendor_specific_pinpad_setup): New.
1825 (ccid_vendor_specific_setup): Only send CLEAR_HALT.
1826 (ccid_transceive_secure): Each time, use send_escape_cmd.
1828 common: Fix gnupg_wait_processes, by skipping invalid PID.
1829 + commit d82dae5d2229a30dbc78aadc4d544d30dac76a1c
1830 * common/exechelp-posix.c (gnupg_wait_processes): Skip invalid PID.
1832 2021-04-07 Werner Koch <wk@gnupg.org>
1834 Release GnuPG 2.3.0.
1835 + commit c922a798a341261f1aafaf7c1c0217e4ce3e3acf
1838 2021-04-01 Werner Koch <wk@gnupg.org>
1840 gpgconf: Return a new pseudo option compliance_de_vs.
1841 + commit a78475fbb7b60ca96137fbe179d8b939cfe2cd89
1842 * tools/gpgconf-comp.c (known_pseudo_options_gpg): Add
1844 * g10/gpg.c (gpgconf_list): Returh that pseudo option.
1846 common: Make the compliance check more robust.
1847 + commit 1d1ec1146c04415c7051af62e133459a4537c945
1848 * common/compliance.c (get_compliance_cache): New.
1849 (gnupg_rng_is_compliant): Use per mode cache.
1850 (gnupg_gcrypt_is_compliant): Ditto.
1852 card: New flag --reread for LIST.
1853 + commit c727951a2440913bbab5b250c9bd2bb1d35ab0d7
1854 * tools/gpg-card.c (cmd_list): Add flag --reread.
1855 * tools/card-call-scd.c (scd_learn): New arg reread.
1857 * tools/card-call-scd.c (release_card_info): Fix releasing of the new
1860 scd: New flag --reread for LEARN.
1861 + commit ff87f4e578f412332ae59fdab016f0a5304baaf9
1862 * scd/command.c (cmd_learn): Add flag --reread.
1863 * scd/app-common.h (struct app_ctx_s): New field need_reset.
1864 * scd/app.c (write_learn_status_core): Set need_reset if we notice an
1865 error after returning from a reread. Change all callers of card
1866 functions to return GPG_ERR_CARD_RESET so that that app is not anymore
1869 scd:p15: New flag APP_LEARN_FLAG_REREAD.
1870 + commit e17d3f866057543d142d63379fd4f4a36d79147f
1871 * scd/app-p15.c (do_deinit): Factor code out to ...
1872 (release_lists, release_tokeninfo): new.
1873 (read_ef_tokeninfo): Reset all data before reading.
1874 (read_p15_info): Ditto.
1875 (do_learn_status): Implement reread flag.
1877 2021-03-31 Werner Koch <wk@gnupg.org>
1879 scd: Replace all assert macros by the log_assert macro.
1880 + commit 1c16878efd0bcf036f56abef93d64ac41ce9e95b
1883 build: Require automake 1.16.3.
1884 + commit 6ca540715139899137e1f86c7e1dcbd0288f15b3
1885 * configure.ac (min_automake_version): Bump to 1.16.3
1887 2021-03-31 NIIBE Yutaka <gniibe@fsij.org>
1889 build: Update gpg-error.m4.
1890 + commit 8d6152a4cfd8a4cf176c01f99e1d49eeecab4367
1891 * m4/gpg-error.m4: Update from libgpg-error.
1893 2021-03-30 Werner Koch <wk@gnupg.org>
1895 card: Print the key's label if available.
1896 + commit 0d6f276f61c583d776687029c715b1ee4280e4ed
1897 * tools/gpg-card.h (struct key_info_s): Add field 'label'.
1898 * tools/card-call-scd.c (learn_status_cb): Parse KEY-LABEL.
1899 (scd_learn): Always request KEY-LABEL.
1900 * tools/gpg-card.c (nullnone): New.
1901 (list_one_kinfo, list_card): Use it. Print the label.
1903 scd:p15: Return labels for keys and certificates.
1904 + commit 7f9126363265a6b6fe4223d68fc4e87678c4ddfc
1905 * scd/app-p15.c (send_certinfo): Extend certinfo.
1906 (do_getattr): Support KEY-LABEL.
1908 scd:p15: For CardOS make use of ISO7816_VERIFY_NOT_NEEDED.
1909 + commit 651c07a7301c33229af051d83edbf898bae52e8b
1910 * scd/app-p15.c (verify_pin): Take care of verify status.
1912 scd:p15: Return the creation time of the keys.
1913 + commit de4d3c99aa58ee06ae978d59e7e3aa7bace1c440
1914 * scd/app-p15.c (struct prkdf_object_s): Add keytime and keyalgostr.
1915 (keygrip_from_prkdf): Set them.
1916 (send_keypairinfo): Extend KEYPAIRINFO.
1918 2021-03-30 NIIBE Yutaka <gniibe@fsij.org>
1920 build: Fix for make distcheck, no EPS support.
1921 + commit d1bac0a3be7081a4bfc7f813f9d626e1396ad5c1
1922 * Makefile.am (AM_DISTCHECK_DVI_TARGET): Specify 'pdf'.
1923 * doc/Makefile.am (EXTRA_DIST, BUILT_SOURCES): Remove EPS files.
1924 (gnupg.dvi): Remove.
1926 2021-03-29 Werner Koch <wk@gnupg.org>
1928 scd:p15: Make RSA with SHA512 work with CardOS.
1929 + commit 592f48011790e30d4bcfd9093eb58b786c8c9a8b
1930 * scd/app-p15.c (do_sign): Rewrite.
1932 agent: Skip unknown unknown ssh curves seen on cards.
1933 + commit 2d2391dfc25cfe160581b1bb4b4b8fc4764ac304
1934 * agent/command-ssh.c (ssh_handler_request_identities): Skip unknown
1937 scd:p15: Support ECDSA and ECDH for CardOS.
1938 + commit a494b29af9cc9c4c8c8323bae20e845d5a390448
1939 * scd/iso7816.c (iso7816_pso_csv): New.
1940 * scd/app-help.c (app_help_pubkey_from_cert): Uncompress a point if
1943 * scd/app-p15.c (CARD_PRODUCT_RSCS): New.
1944 (struct prkdf_object_s): Add fields is_ecc, token_label, and
1946 (do_deinit): Free new fields.
1947 (cardproduct2str): New.
1948 (read_ef_prkdf): Set new is_ecc flag.
1949 (read_ef_tokeninfo): Store some data and move Tokeninfo diags to ...
1950 (read_p15_info): here. set the product info here after all data has
1952 (send_keypairinfo): Chnage the way the gpgusage flags are used.
1953 (make_pin_prompt): If the token has a label and the current cert has
1954 no CN, show the label as holder info.
1955 (do_sign): Support ECDSA. Take care of the gpgusage flags.
1956 (do_decipher): Support ECDH. Take care of the gpgusage flags.
1958 gpg: Allow ECDH with a smartcard returning just the x-ccordinate.
1959 + commit f129b0e97730b47d62482fba9599db39b526f3d2
1960 * g10/ecdh.c (extract_secret_x): Add extra safety check. Allow for
1963 2021-03-28 Werner Koch <wk@gnupg.org>
1965 gpgconf: Do not i18n an empty string to the PO files meta data.
1966 + commit 18d884f8411a0ca263a8aa588bb49eb0dae9ee19
1967 * tools/gpgconf-comp.c (my_dgettext): Ignore empty strings.
1969 2021-03-26 Werner Koch <wk@gnupg.org>
1971 tests: Make sure the built keyboxd is used by the tests.
1972 + commit a5e72b663b3649c939d32d6526b5e2b3347dedd9
1973 * tests/openpgp/defs.scm (tool): Add keyboxd.
1974 * tests/openpgp/setup.scm: Ditto.
1976 gpgconf: Fix another argv overflow if --homedir is used.
1977 + commit 057131159b445d2d49392e95c677ad7b4cd4ae9c
1978 * tools/gpgconf-comp.c (gc_component_check_options): Increase array.
1980 gpgconf: Fix argv overflow if --homedir is used.
1981 + commit d3d57a1bc88ece0c12c91f54b089482cce92c5a0
1982 * tools/gpgconf-comp.c (gc_component_launch): Fix crasg due to too
1984 (gpg_agent_runtime_change): Fix error message.
1985 (scdaemon_runtime_change): Ditto.
1986 (tpm2daemon_runtime_change): Ditto.
1987 (dirmngr_runtime_change): Ditto.
1988 (keyboxd_runtime_change): Ditto.
1990 agent: Add debug output for failed RSA signature verification.
1991 + commit 6de1ec3ba59fa54ab60b2923ba9caa77fc9d5281
1992 * agent/pksign.c (agent_pksign_do): Support ECC and DSA verification
1993 and print some debug info in the error case.
1995 common: New function to uncompress an ECC public key.
1996 + commit 935765b451aadc63fbba763a4a00f4efa0254436
1997 * common/sexputil.c (ec2os): New.
1998 (uncompress_ecc_q_in_canon_sexp): New.
2000 * common/t-sexputil.c (fail2): new.
2001 (test_ecc_uncompress): New.
2002 (main): Run new test.
2004 2021-03-26 NIIBE Yutaka <gniibe@fsij.org>
2006 scd: Fix PC/SC error handling at apdu_dev_list_start.
2007 + commit d4e5979c630c2960cf1fd5796f1060419e71cb04
2008 * scd/apdu.c (PCSC_E_NO_READERS_AVAILABLE): Add.
2009 (pcsc_error_to_sw): Handle PCSC_E_NO_READERS_AVAILABLE.
2010 (apdu_dev_list_start): Return error correctly.
2012 2021-03-24 Werner Koch <wk@gnupg.org>
2014 card: Add option --use-default-pin to command "login".
2015 + commit 73bad368dacf5334bf78af15b243d06fd1273849
2016 * tools/gpg-card.c (cmd_login): Add option.
2018 scd:p15: Make $SIGNKEY et al determination more fault tolerant.
2019 + commit 964363e788210f96a471e31ffa8fd17b534c0aa8
2020 * scd/app-p15.c (do_getattr): Change how we use gpgUsage to figure out
2023 2021-03-24 NIIBE Yutaka <gniibe@fsij.org>
2025 gpg: Fix v5 signature for clearsign.
2026 + commit 14ef703ad65850fa22d394c4d521ba602ff2cc8d
2027 * g10/sign.c (clearsign_file): Prepare EXTRAHASH.
2029 gpg: Support ECDH with v5 key.
2030 + commit 90a5b4e648b3c8a6fe645df7e61654dfdb3548be
2031 * g10/ecdh.c (build_kdf_params): Use the first 20 octets.
2032 * g10/pkglue.c (pk_encrypt): Remove length check to 20.
2033 * g10/pubkey-enc.c (get_it): Likewise.
2035 2021-03-23 Werner Koch <wk@gnupg.org>
2037 gpgconf: Fix listing of default_pubkey_algo.
2038 + commit a107b24ddb45c9eef432d456f302c1acea3af27c
2039 * tools/gpgconf-comp.c (known_options_gpg, known_options_gpgsm): No
2040 flags needed for pseudo options.
2041 (known_pseudo_options_gpg, known_pseudo_options_gpgsm): New.
2042 (gc_component): Add field known_pseudo_options.
2043 (struct read_line_wrapper_parm_s): New.
2044 (read_line_wrapper): New.
2045 (retrieve_options_from_program): Use read_line_wrapper to handle
2048 2021-03-22 Werner Koch <wk@gnupg.org>
2050 kbxd: Group the options.
2051 + commit ed82ef91459f72b955f4e342ab88a7a0949c436b
2052 * kbx/keyboxd.h (opt): Remove unused field 'batch'.
2053 * kbx/keyboxd.c (opts): Remove --batch. Add group descriptions.
2055 2021-03-22 NIIBE Yutaka <gniibe@fsij.org>
2057 gpg: Support exporting Ed448 SSH key.
2058 + commit 1524a942b645d9facbedd9ed4a472e343838b6a1
2059 * common/openpgp-oid.c (oid_ed448, openpgp_oidbuf_is_ed448): New.
2060 (openpgp_oid_is_ed448): New.
2061 * common/util.h (openpgp_oid_is_ed448): New.
2062 * g10/export.c (export_one_ssh_key): Support Ed448 key.
2064 gpg: Fix exporting SSH key.
2065 + commit 0b45c5a9941094bd4529c3bf5b1cb8ce2584b9a4
2066 * g10/export.c (export_one_ssh_key): Finish base 64 encoder before
2067 writing out the comment string.
2069 2021-03-19 Werner Koch <wk@gnupg.org>
2071 card: Support OpenPGP.1 and OpenPGP.2 for readcert and writecert.
2072 + commit 475644e049436c49de7620a1539515479ad2aa4f
2073 * tools/gpg-card.c (cmd_writecert): Allow the other key references.
2074 (cmd_readcert): Ditto.
2076 scd:openpgp: Allow reading and writing user certs for keys 1 and 2.
2077 + commit 37b1c5c2004c1147a13b388863aaa8f0caf7d71f
2078 * scd/iso7816.c (CMD_SELECT_DATA): New.
2079 (iso7816_select_data): New.
2080 * scd/app-openpgp.c (do_readcert): Allow OpenPGP.1 and OPENPGP.2
2081 (do_writecert): Ditto.
2082 (do_setattr): Add CERT-1 and CERT-2.
2084 scd:openpgp: Rename an internal variable.
2085 + commit bbdb48ec0ddd99ce23fcba42949c00a2594fb9a5
2086 * scd/app-openpgp.c (struct app_local_s): s/extcap_v3/is_v3/.
2087 s/max_certlen_3/max_certlen. Change users.
2089 scd:openpgp: Small speedup reading card properties.
2090 + commit d5fb5983232cf4d60cf6aa00d0ae5a16cf948e19
2091 * scd/app-openpgp.c (struct app_local_s): Add new flag.
2092 (get_cached_data): Force chace use if flag is set.
2093 (app_select_openpgp): Avoid reading DO 6E multiple times.
2095 2021-03-18 Werner Koch <wk@gnupg.org>
2097 scd:p15: Allow to use an auth object label with cmd CHECKPIN.
2098 + commit 85082a83c2c1bda50fe6b7aa2ac68cef4faca4c7
2099 * scd/app-p15.c (prepare_verify_pin): Allow for PRKDF to be NULL.
2100 (make_pin_prompt): Ditto.
2101 (verify_pin): Ditto.
2102 (do_check_pin): Allow using the Label to specify a PIN.
2104 card: Print PIN descriptions and fix number of printed retry counters.
2105 + commit 1ac189f2df6cedab3a133baca69558fdf6a908d4
2106 * tools/gpg-card.h (struct card_info_s): Add fields nmaxlen, nchvinfo,
2108 * tools/card-call-scd.c (release_card_info): Free chvlabels.
2109 (learn_status_cb): Parse CHV-LABEL. Set nmaxlen and nchvinfo.
2110 * tools/gpg-card.c (list_retry_counter): Print CHV labels.
2112 scd:p15: New attribute CHV-LABEL.
2113 + commit ef29a960bf06005c34093cd9a6bca5a202ed359a
2114 * scd/app-p15.c (parse_common_obj_attr): Map spaces in the lapel to
2116 (read_ef_aodf): Prettify printing of the type.
2117 (do_getattr): New attribute CHV-LABEL
2118 (do_learn_status): Emit CHV-LABEL.
2119 (verify_pin): Distinguish the PIN prompts.
2121 agent: Simplify a function.
2122 + commit 26215cb211ad93ad9cc51fb4f8257b9e3c254a4e
2123 * agent/findkey.c (agent_public_key_from_file): Use a membuf instead
2124 of handcounting space.
2126 2021-03-16 Werner Koch <wk@gnupg.org>
2128 scd:p15: Implement CHV-STATUS attribute.
2129 + commit bf1d7bc3697c7d650994ba94d3704af189594657
2130 * scd/command.c (send_status_direct): Return an error.
2131 * scd/app-p15.c (do_learn_status): Emit CHV-STATUS.
2132 (compare_aodf_objid): New.
2133 (do_getattr): Implement CHV-STATUS.
2135 card: Generalize the CHV counter printing.
2136 + commit e4c2d7be22ffb47b41a3b6c1152bd75dceed74e2
2137 * tools/gpg-card.c (list_retry_counter): New. Factored out from the
2139 (cmd_verify): Re-read the chv status.
2141 2021-03-16 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
2143 build: Check for the IBM TSS tools to run the tpm2d tests.
2144 + commit c0f50811fcf81e5ebe2df326342081cfdacfbbfc
2145 * configure.ac (TEST_LIBTSS): Make that conditional depend on the
2146 detection of tssstartup.
2148 build: Fix distcheck when tpm2dtests are run.
2149 + commit ad481666ea6ef3743041ec6d043a3e6901ebab33
2150 * tests/tpm2dtests/Makefile.am (EXTRA_DIST): Distribute test files.
2151 (CLEANFILES): Make sure to remove log files.
2153 2021-03-15 James Bottomley <James.Bottomley@HansenPartnership.com>
2155 tests:tpm2d: add missing start_sw_tpm.sh script.
2156 + commit a788f2e8306d80f7f3df34eb62ec7ce1a62d48e1
2157 * tests/tpm2dtests/start_sw_tpm.sh: New.
2158 * tests/tpm2dtests/Makefile.am: Add.
2160 2021-03-15 Werner Koch <wk@gnupg.org>
2162 gpg: New option --no-auto-trust-new-key.
2163 + commit 1523b5f76f6e600c4f2d153b49a807ff2dc8d268
2164 * g10/gpg.c (oNoAutoTrustNewKey): New.
2165 (opts): Add --no-auto-trust-new-key.
2167 * g10/options.h (opt): Add flags.no_auto_trust_new_key.
2169 build: new option to disable building of tpm2daemon.
2170 + commit 8d6123faa8cae0bad6f82c9021e9ac6686b2f55d
2171 * configure.ac (build_tpmd): New configure option --disable-tpm2d
2172 (BUILD_WITH_TPM2D): New.
2173 * Makefile.am (tests): Use conditionally BUILD_TPM2D instead of
2175 * build-aux/speedo.mk (speedo_pkg_gnupg_configure) [W32]: Do not build
2177 * autogen.rc: Ditto.
2179 2021-03-15 NIIBE Yutaka <gniibe@fsij.org>
2181 scd: Add handling of Ed448 key.
2182 + commit b743942a9719be59f1da67cd338248fe7ee5aeab
2183 * scd/app-openpgp.c (struct app_local_s): Add ecc.algo field.
2184 (send_key_attr): Use ecc.algo field.
2185 (ecc_read_pubkey): Use ecc.algo field.
2186 (ecc_writekey): Ed448 means EdDSA.
2187 (parse_algorithm_attribute): Set ecc.algo field from card.
2188 Add checking for Ed25519 for ECC_FLAG_DJB_TWEAK flag.
2190 scd: Fix count_sos_bits handling.
2191 + commit f482e4bd121ff2862bfb53a82f1d5c2cf3524a10
2192 * scd/app-openpgp.c (count_sos_bits): Handle an exceptional case.
2194 common: Fix the NBITS of Ed448in OIDTABLE.
2195 + commit 373b52e69a6ca609a663a0c4a018358fdf52dc7e
2196 common/openpgp-oid.c (oidtable): Ed448 uses 456-bit signature.
2198 2021-03-12 Werner Koch <wk@gnupg.org>
2200 scd: New option --pcsc-shared.
2201 + commit 5732e7a8e97cebf8e850c472e644e2a9b040836f
2202 * scd/scdaemon.h (opt): Add field opcsc_shared.
2203 * scd/scdaemon.c (opcscShared): New.
2204 (opts): Add "--pcsc-shared".
2206 * scd/apdu.c (connect_pcsc_card): Use it.
2207 (pcsc_get_status): Take flag in account.
2208 * scd/app-openpgp.c (cache_pin): Bypass in shared mode.
2209 (verify_chv2: Do not auto verify chv1 in shared mode.
2210 * scd/app-piv.c (cache_pin): By pass caceh in shared mode.
2212 2021-03-12 NIIBE Yutaka <gniibe@fsij.org>
2214 scd: Fix computing fingerprint for ECC with SOS.
2215 + commit 95156ef9bfb6a3a525454d50ae2f5b538ccbd774
2216 * scd/app-openpgp.c (count_sos_bits): New. Count as sos_write does.
2217 (store_fpr): For ECC, use count_sos_bits.
2219 gpg: Fix compute_fingerprint for ECC with SOS.
2220 + commit cfc1497efa8c98cf490f5efc9b280a6ec44514bd
2221 * g10/keyid.c (hash_public_key): Tweak NBITS just as sos_write does.
2223 2021-03-11 Valtteri Vuorikoski <vuori@notcom.org>
2225 scd:piv: Improve APT parser compatibility.
2226 + commit 8cad11d13b15b0ef672545b06450dfbea1fef18e
2227 * scd/app-piv.c (app_select_piv): Allow for full AID.
2229 2021-03-11 Werner Koch <wk@gnupg.org>
2231 gpg: New option --force-sign-key.
2232 + commit fe02ef04500c1b35cd27132fb99ac1961f555193
2233 * g10/gpg.c (oForceSignKey,opts): New option "--force-sign-key".
2235 * g10/options.h (opt): New flag flags.force_sign_key.
2236 * g10/keyedit.c (sign_uids): Use new flag.
2238 2021-03-11 James Bottomley via Gnupg-devel <gnupg-devel@gnupg.org>
2240 tpmd2: Add Support for the Intel TSS.
2241 + commit b9c560e3a400da83073b232ee12fae090b21d20c
2242 * configure.ac: Check for Intel TSS.
2243 * tpm2d/intel-tss.h: New.
2244 * tpm2d/tpm2.h (HAVE_INTEL_TSS): Use the Intel code.
2246 2021-03-10 James Bottomley <James.Bottomley@HansenPartnership.com>
2248 tpm2d: add tests for the tpm2daemon.
2249 + commit 6720f1343aef9342127380b155c19e12c92d65ac
2250 * configure.ac: Detect TPM emulator and enable tests.
2251 * tests/tpm2dtests/: New test suite.
2252 * tests/Makefile.am: Run tests.
2254 gpg: Add new command keytotpm to convert a private key to TPM format.
2255 + commit 92b601fceec7da64939591001dba94e202f6e6a0
2256 * agent/command.c (cmd_keytotpm): New.
2257 (agent/command.c): Register new command KEYTOTPM.
2258 * g10/call-agent.c (agent_keytotpm): New.
2259 * g10/keyedit.c (cmdKEYTOTPM): New command "keytotpm".
2260 (keyedit_menu): Implement.
2262 agent: Add new shadow key type and functions to call tpm2daemon.
2263 + commit 1f995b9ba42b76c1d83b484e5362548a54a70dab
2264 * agent/call-tpm2d.c: New.
2265 * divert-tpm2.c: New.
2266 * agent/Makefile.am: Add new files.
2267 * agent/agent.h (DAEMON_TPM2D): New. Add stub fucntions.
2268 * agent/call-daemon.c (GNUPG_MODULE_NAME_TPM2DAEMON): New.
2269 * agent/command.c (do_one_keyinfo): Handle tpmv2.
2270 * agent/gpg-agent.c (oTpm2daemonProgram): New.
2271 (opts): New option --tpm2daemon-program.
2272 (parse_rereadable_options): Handle option.
2273 * agent/pkdecrypt.c (agent_pkdecrypt): Divert to tpm2d.
2274 (agent_pksign_do): Ditto.
2277 A new shadow key type: "tpm2-v1" is introduced signalling that the
2278 shadowed key is handled by the tpm2daemon. A function to identify
2279 this type is introduced and diversions to the tpm2daemon functions are
2280 conditioned on this function for pkign and pkdecrypt where the same
2281 diversions to scd are currently done. The (info) field of the
2282 shadowed key stores the actual TPM key. The TPM key is encrypted so
2283 only the physical TPM it was created on can read it (so no special
2284 protection is required for the info filed), but if the (info) field
2285 becomes corrupt or damaged, the key will be lost (unlike the token
2286 case, where the key is actually moved inside the token).
2288 Note, this commit adds handling for existing TPM format shadow keys,
2289 but there is still no way to create them.
2293 * Add ChangeLog entries.
2294 * Some minor indentation fixes.
2295 * agent/Makefile.am (gpg_agent_SOURCES): Change to make distcheck
2297 * agent/agent.h [!HAVE_LIBTSS]: Do not return -EINVAL but an
2298 gpg_error_t. Mark args as unused.
2299 * agent/protect.c (agent_is_tpm2_key): Free BUF.
2301 tpm2d: Add tpm2daemon code.
2302 + commit 62a7854816b8f3661fb41f05463289e5b96663ee
2303 * tpm2d: New directory.
2304 * Makefile.am (SUBDIRS): Add directory.
2305 * configure.ac: Detect libtss and decide whether to build tpm2d.
2306 * am/cmacros.am: Add a define.
2307 * util.h (GNUPG_MODULE_NAME_TPM2DAEMON): New.
2308 * common/homedir.c (gnupg_module_name): Add tpm2d.
2309 * common/mapstrings.c (macros): Add "TPM2DAEMON".
2310 * tools/gpgconf.h (GC_COMPONENT_TPM2DAEMON): New.
2311 * tools/gpgconf-comp.c (known_options_tpm2daemon): New.
2312 (gc_component): Add TPM2.
2313 (tpm2daemon_runtime_change): New.
2314 * tpm2d/Makefile.am: New.
2315 * tpm2d/command.c: New.
2316 * tpm2d/ibm-tss.h: New.
2317 * tpm2d/tpm2.c: New.
2318 * tpm2d/tpm2.h: New.
2319 * tpm2d/tpm2daemon.c: New.
2320 * tpm2d/tpm2daemon.h: New.
2323 This commit adds and plumbs in a tpm2daemon to the build to mirror the
2324 operation of scdaemon. The architecture of the code is that
2325 tpm2daemon.c itself is pretty much a clone of scd/scdaemon.c just with
2326 updated function prefixes (this argues there could be some further
2327 consolidation of the daemon handling code). Note that although this
2328 commit causes the daemon to be built and installed, nothing actually
2329 starts it or uses it yet.
2334 command.c is copied from the command handler in scd.c except that the
2335 command implementation is now done in terms of tpm2 commands and the
2336 wire protocol is far simpler. The tpm2daemon only responds to 4
2339 IMPORT: import a standard s-expression private key and export it to
2340 TPM2 format. This conversion cannot be undone and the
2341 private key now can *only* be used by the TPM2. To anyone
2342 who gets hold of the private key now, it's just an
2343 encrypted binary blob.
2345 PKSIGN: create a signature from the tpm2 key. The TPM2 form private
2346 key is retrieved by KEYDATA and the hash to be signed by
2347 EXTRA. Note there is no hash specifier because the tpm2
2348 tss deduces the hash type from the length of the EXTRA
2349 data. This is actually a limitation of the tpm2 command
2350 API and it will be interesting to see how this fares if the
2351 tpm2 ever supports say sha3-256 hashes.
2353 PKDECRYPT: decrypt (RSA case) or derive (ECC case) a symmetric key.
2354 The tpm2 for private key is retrieved by KEYDATA and the
2355 information used to create the symmetric key by EXTRA.
2357 KILLTPM2D: stop the daemon
2359 All the tpm2 primitives used by command.c are in tpm2.h and all the
2360 tpm2 specific gunk is confined to tpm2.c, which is the only piece of
2361 this that actually does calls into the tss library.
2364 Changes from James' patch:
2366 - gpgconf: The displayed name is "TPM" and not "TPM2". That
2367 string is used by GUIs and should be something the user
2368 understands. For example we also use "network" instead
2370 - Removed some commented includes.
2371 - Use 16 as emulation of GPG_ERR_SOURCE_TPM2.
2372 - Silenced a C90 compiler warning and flags unused parameters.
2373 - Removed "if HAVE_LIBS" from tpm2/Makefile.am and add missing
2374 files so that make distcheck works.
2376 2021-03-10 Werner Koch <wk@gnupg.org>
2378 scd:p15: Support special extended usage flags for OpenPGP keys.
2379 + commit 08b5ac492afc6c6e7eaaa1f70d67c81cbda2c9be
2380 * scd/app-p15.c (struct gpgusage_flags_s): New.
2381 (struct prkdf_object_s): Add field gpgusage.
2382 (struct app_local_s): Add field any_gpgusage.
2383 (dump_gpgusage_flags): New.
2384 (read_p15_info): Parse athe gpgusage flags.
2385 (do_getattr): Take care of the gpgusage flags.
2387 2021-03-08 Werner Koch <wk@gnupg.org>
2389 sm: Init nPth which might be used by some helper code.
2390 + commit a4021d9be4aeac7429bf6a8e9f336dbb62cacfc4
2391 * sm/gpgsm.c: Include npth.h.
2394 w32: Cleanup use of pid_t in call-daemon.
2395 + commit 33c492dcb955bff01fffae31fb7750f88e07b8ff
2396 * agent/call-daemon.c (struct wait_child_thread_parm_s) [W32]: Do not
2397 use HANDLE for pid_t.
2398 (wait_child_thread): Ditto.
2400 w32: Change spawn functions to use Unicode version of CreateProcess.
2401 + commit cf2f6d8a3f0594c03c383b4989a3041e9c4536d7
2402 * common/exechelp-w32.c (gnupg_spawn_process): Change to use
2404 (gnupg_spawn_process_fd): Ditto.
2405 (gnupg_spawn_process_detached): Ditto.
2406 * g10/exec.c (w32_system): Ditto.
2408 2021-03-08 NIIBE Yutaka <gniibe@fsij.org>
2411 + commit fc99f77b14b6c2cdfb547607651922c16863dcf0
2412 * scd/app-openpgp.c (do_decipher): Support with no prefix.
2414 2021-03-05 Werner Koch <wk@gnupg.org>
2416 w32: Always use Unicode for console input and output.
2417 + commit 8c41b8aac3efb78178fe1eaf52d8d1bbc44941a8
2418 * common/init.c (_init_common_subsystems) [W32]: Set the codepage to
2419 UTF-8 for input and putput. Switch gettext to UTF-8.
2420 * tools/gpgconf.c (main): Display the input and output codepage if
2422 * g10/gpg.c (utf8_strings) [W32]: Make sure this is always set.
2424 w32: Free memory allocated by new function w32_write_console.
2425 + commit 31b708e268ebb725307856865f34a61670a35586
2426 * common/ttyio.c (w32_write_console): Free buffer.
2428 common,w32: Allow Unicode input and output with the console.
2429 + commit f165c8a737cc968554c9d78932c69869456108ff
2430 * common/ttyio.c (do_get) [W32]: Use ReadConsoleW.
2431 (w32_write_console): New.
2432 (tty_printf, tty_fprintf) [W32]: Use new function.
2434 common: Re-indent ttyio.c and remove EMX, RISCOS, and CE support.
2435 + commit 8622f53994249d8fb49a488cfe480ffbeb8cbfba
2436 * common/ttyio.c: Remove cruft like EMX and RISCOS support. Translate
2437 a few strings. Re-indent.
2439 2021-03-04 Werner Koch <wk@gnupg.org>
2441 common: Rename w32-misc.c to w32-cmdline.c.
2442 + commit 7262d602d802c4a3840097d5de217fcfb9728b49
2443 * common/w32-misc.c: Rename to ....
2444 * common/w32-cmdline.c: this.
2445 * common/Makefile.am: Adjust.
2447 common,w32: Implement globing of command line args.
2448 + commit 089c9439674e8ecbc64f0ba924e6fb447bbc2b9d
2449 * common/w32-misc.c [W32]: Include windows.h
2450 (struct add_arg_s): New.
2453 (parse_cmdstring): Add arg argvflags and set it.
2454 (w32_parse_commandline): Add arg r_itemsalloced. Add globing.
2456 * common/init.c (prepare_w32_commandline): Mark glob created items as
2459 * common/t-w32-cmdline.c : Include windows.h
2460 (test_all): Add simple glob test for Unix.
2461 (main): Add manual test mode for Windows.
2463 common,w32: Refine the command line parsing for \ in quotes.
2464 + commit 20c60076866904187a09393de596deef286116f8
2465 * common/t-w32-cmdline.c (test_all): Add new test cases.
2466 * common/w32-misc.c (strip_one_arg): Add arg endquote.
2467 (parse_cmdstring): Take care of backslashes in quotes.
2469 gpg: Prepare for globing with UTF-8.
2470 + commit 8e15506d6680bbee85bc01453da28fc90b4cb673
2471 * g10/gpg.c (_dowildcard): Remove.
2472 (my_strusage): Enable wildcards using our new system.
2474 common: First take on handling Unicode command line args.
2475 + commit deb6c94362c0f179de1cac18707aad2f51a21e10
2476 * common/w32-misc.c: New.
2477 * common/t-w32-cmdline.c: New.
2478 * common/init.c: Include w32help.h.
2479 (prepare_w32_commandline): New.
2480 (_init_common_subsystems) [W32]: Call prepare_w32_commandline.
2482 * common/Makefile.am (common_sources) [W32]: Add w32-misc.c
2483 (module_tests): Add t-w32-cmdline
2484 (t_w32_cmdline_LDADD): New.
2486 2021-03-01 Nicolas Fella via Gnupg-devel <gnupg-devel@gnupg.org>
2488 gpg: Keep temp files when opening images via xdg-open.
2489 + commit be2da244565822ad1f268f84dc88a23e5aa8d26a
2490 * g10/photoid.c (get_default_photo_command): Change parameter for
2493 2021-02-25 Werner Koch <wk@gnupg.org>
2495 scd:p15: Read out the access flags.
2496 + commit d51a5ca1084c69c0ed304126a7aaa0a648b2eba6
2497 * scd/app-p15.c (struct keyaccess_flags_s): New.
2498 (struct prkdf_object_s): Add field accessflags.
2499 (dump_keyusage_flags): New.
2500 (dump_keyaccess_flags): New.
2501 (parse_keyaccess_flags): New.
2502 (parse_common_key_attr): Return access flags.
2503 (read_ef_prkdf): Parse the access flags. Allow for ECkeys.
2504 (read_ef_pukdf): Ditto. Use new functions for printing.
2505 (read_p15_info): Use new fucntion for printing.
2507 sm: Do not print certain issuer not found diags in quiet mode.
2508 + commit a170f0e73f38e474b6d4463433fe344eca865fa5
2509 * sm/certchain.c (find_up_dirmngr): Print one diagnostic only in
2510 verbose mode. Do not print issuer not found diags in quiet mode.
2511 * sm/minip12.c (parse_bag_data): Add missing verbose condition.
2513 sm: Fix issuer certificate look error due to legacy error code.
2514 + commit 473b83d1b9efe51fcca68708580597dddf3f50b7
2515 * sm/certchain.c (find_up): Get rid of the legacy return code -1 and
2516 chnage var name rc to err.
2517 (gpgsm_walk_cert_chain): Change var name rc to err.
2518 (do_validate_chain): Get rid of the legacy return code -1.
2520 2021-02-24 Werner Koch <wk@gnupg.org>
2522 scd:p15: Get the label value of all objects for better diagnostics.
2523 + commit cfdaf2bcc85b3b6f16904006f239b400a3487ff8
2524 * scd/app-p15.c (struct cdf_object_s): Add fields authid, authidlen,
2526 (struct prkdf_object_s): Add field label.
2527 (struct aodf_object_s): Ditto.
2528 (release_cdflist): Free new fields.
2529 (release_prkdflist): Free new field.
2530 (release_aodf_object): Ditto.
2531 (parse_common_obj_attr): Return the label.
2532 (read_ef_prkdf): Store the label.
2533 (read_ef_pukdf): Ditto.
2534 (read_ef_cdf): Use parse_common_obj_attr and store authid and label.
2535 Print them im verbose mode.
2536 (read_ef_aodf): Store the label and print it.
2538 sm: Silence some output on --quiet.
2539 + commit 615d2e4fb15859320ea0ebec1bb457c692c57f0a
2540 * sm/encrypt.c (gpgsm_encrypt): Take care of --quiet.
2541 * sm/gpgsm.c: Include minip12.h.
2542 (set_debug): Call p12_set_verbosity.
2543 * sm/import.c (parse_p12): Dump keygrip only in debug mode.
2544 * sm/minip12.c (opt_verbose, p12_set_verbosity): New.
2545 (parse_bag_encrypted_data): Print info messages only in verbose mode.
2547 2021-02-23 Werner Koch <wk@gnupg.org>
2549 scd:p15: Make it code work again for D-Trust cards.
2550 + commit 33aaa37e5bc0beb75305cdf9d8be850daccaee5e
2551 * scd/app-p15.c (select_and_read_binary): Allow to skip the select.
2552 (select_and_read_record): Return the statusword. Silence error
2553 message for SW_FILE_STRUCT.
2554 (select_ef_by_path): Fix selection with a home_DF.
2555 (read_first_record): Fallback to read_binary for CardOS and return
2557 (read_ef_prkdf): Use info from read_first_record to decide whether to
2558 use record or binary mode.
2559 (read_ef_pukdf): Ditto.
2560 (read_ef_aodf): Ditto.
2561 (read_ef_cdf): Ditto. New arg cdftype for diagnostics.
2562 (read_p15_info): Pass cdftype.
2564 * scd/apdu.h (SW_FILE_STRUCT): New.
2565 * scd/apdu.c (apdu_strerror): Map that one to a string.
2566 * scd/iso7816.c (map_sw): and to a gpg-error.
2568 2021-02-22 Werner Koch <wk@gnupg.org>
2570 scd: Fix readkey --info in case a readkey command is available.
2571 + commit 2490f4e8e1d1feecb44aefa79bd71f5f8b06c9a4
2572 * scd/command.c (do_readkey): Make --info also work if a readkey
2573 command is available.
2575 * scd/app-p15.c (cdf_object_from_certid): Fix a but introduced with
2576 the previous commit.
2578 scd:p15: Extract extended usage flagsand act upon them.
2579 + commit 488eaedc9a332d8164dea22e469354fc10b0a253
2580 * scd/app-p15.c: Add a couple of oid constants.
2581 (struct cdf_object_s): Replace fields image and imagelen by cert.
2582 (struct prkdf_object_s): Add extusage flags
2583 (send_keypairinfo): Use them.
2584 (cdf_object_from_certid): Factor parts out to ...
2585 (cdf_object_from_objid): new function.
2586 (read_ef_prkdf): Move info printing to ...
2587 (read_p15_info): here. Fill the extusage flags.
2588 (readcert_by_cdf): Cache the ksba cert object instead of the binary
2590 * scd/app.c (select_additional_application): Fix a log_debug call.
2591 (scd_update_reader_status_file): Ditto.
2593 sm: Extend the list of known OIDs.
2594 + commit 4c9b509d2402f79668e502a9db5879280a4f683b
2595 * sm/keylist.c (oidtranstbl): Add a couple of OIDs and mark them for
2598 2021-02-19 Werner Koch <wk@gnupg.org>
2600 build: Remove now obsolete HAVE_NEWER_LIBGCRYPT AM conditional.
2601 + commit 5573ab714b92f6ee899a816998e56e1238f4c573
2602 * configure.ac (HAVE_NEWER_LIBGCRYPT): Remove conditional.
2603 * tools/Makefile.am (gpg_pair_tool_SOURCES): We build it always.
2605 scd: Minor tweak for easier backporting.
2606 + commit 6d4280b13ddc928ff6bc41bdf482030f0f814fdb
2607 * scd/app-common.h (APP_CARD): New. Use it in app-*.c to access
2610 2021-02-18 Werner Koch <wk@gnupg.org>
2612 po: Change translatability of a fallback string.
2613 + commit 0be4861762c21ebfb4c2e28bb9a3e5cfbc08e1a9
2614 * agent/call-pinentry.c (setup_genpin): Do not make the fallback
2617 speedo: Update w32 stuff from 2.2.
2618 + commit 919a969354d4021f2e64a948b4c224cd37323713
2619 * build-aux/speedo.mk: Update from 2.2. Add target w32-msi-release.
2620 * build-aux/speedo/w32/inst.nsi: Fix location of doc files.
2621 * build-aux/speedo/w32/wixlib.wxs: Add gpg-card and fix a wrong name.
2622 * Makefile.am (release): Support a WITH_MSI variable.
2623 (wixlibfile): Improve copying to archive.
2624 (release): Use AMTAR instead of TAR.
2626 2021-02-17 Werner Koch <wk@gnupg.org>
2628 dirmngr: Support new gpgNtds parameter in LDAP keyserver URLs.
2629 + commit ab7dc4b524c3e2ad5153acfdbfa879a9e62d2dbe
2630 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): Support a new gpgNtds
2632 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Do ldap_init always with
2633 hostname - which is NULL and thus the same if not given. Fix minor
2634 error in error code handling.
2636 2021-02-16 NIIBE Yutaka <gniibe@fsij.org>
2638 build: Update gpg-error.m4 again.
2639 + commit 3fa1fa747b61867076e344c3eb07a66826c1983a
2640 * m4/gpg-error.m4: Update from libgpg-error.
2642 2021-02-15 NIIBE Yutaka <gniibe@fsij.org>
2644 build: Update gpg-error.m4.
2645 + commit 985e85dc0e6c54aa465a2af610c5a04fc10649a0
2646 * m4/gpg-error.m4: Update from libgpg-error.
2648 2021-02-12 NIIBE Yutaka <gniibe@fsij.org>
2650 build: Update gpg-error.m4.
2651 + commit e1e3f1db4660b5416828aeb636a7f767fadcc7a4
2652 * m4/gpg-error.m4: Update from libgpg-error.
2654 build: Fix library dependency of g13 test program.
2655 + commit 83e0a9d6b990aa517bc338b578f7faf393ae1b0d
2656 * g13/Makefile.am (t_common_ldadd): Add GPG_ERROR_LIBS.
2658 2021-02-10 Werner Koch <wk@gnupg.org>
2660 gpg: Do not allow old cipher algorithms for encryption.
2661 + commit 825dd7220ff6079cbe2d0df7fde93526c077fb6d
2662 * g10/gpg.c: New option --allow-old-cipher-algos.
2663 (set_compliance_option): Set --rfc4880bis explictly to SHA256 and
2664 AES256. Allow old cipher algos for OpenPGP, rfc4880, and rfc2440.
2665 * g10/options.h (opt): Add flags.allow_old_cipher_algos.
2666 * g10/misc.c (print_sha1_keysig_rejected_note): Always print the note
2667 unless in --quiet mode.
2668 * g10/encrypt.c (setup_symkey): Disallow by default algos with a
2670 (encrypt_crypt): Ditto. Fallback by default to AES instead of 3DES.
2671 * g10/pkclist.c (algo_available): Take care of old cipher also.
2672 (select_algo_from_prefs): Use AES as implicit algorithm by default.
2674 * tests/openpgp/defs.scm (create-gpghome): Set allow-old-cipher-algos.
2676 Remove obsolete M4 macros.
2677 + commit 6e730c18816fbb3e074d93840396ed18f00ab7e2
2678 * m4/gnupg-pth.m4: Remove.
2679 * m4/libcurl.m4: Remove.
2681 Require GpgRT version 1.41.
2682 + commit 2b75b256054427119a284792540243c3471267d4
2683 * configure.ac (NEED_GPG_ERROR_VERSION): Rename to NEED_GPGRT_VERSION
2685 * common/sysutils.c (gnupg_access): Remove code for older gpgrt
2687 * kbx/backend-sqlite.c: Ditto.
2688 * sm/gpgsm.c (main): Ditto.
2690 2021-02-09 Werner Koch <wk@gnupg.org>
2692 build: Make make distcheck work again.
2693 + commit f9e4dae08d7caed741d35916c46b8302e098d521
2694 * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4
2696 tools: Remove the symcryptrun tool.
2697 + commit 209b7113f3493bd829ec5c90275ff95a273d9dd4
2698 * tools/symcryptrun.c: Remove.
2699 * tools/Makefile.am: Ditto.
2700 * doc/tools.texi: Remove man page.
2701 * configure.ac: Remove build option and tests used only by this tool.
2702 * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Do not build
2705 2021-02-05 NIIBE Yutaka <gniibe@fsij.org>
2707 gpg: Fix selection of key.
2708 + commit 390f597868a5b5934f21f81ebf6ff110b6792283
2709 * g10/getkey.c (pubkey_cmp): Handle the case of TRUST_EXPIRED.
2711 2021-02-02 Werner Koch <wk@gnupg.org>
2713 gpg: Remove support for PKA.
2714 + commit 7f3ce66ec56a5aea6170b7eb1bda5626eb208c83
2715 * g10/gpg.c (oPrintPKARecords): Remove.
2716 (opts): Remove --print-pka-records.
2717 (main): Remove "pka-lookups","pka-trust-increase" and other PKA stuff.
2718 * g10/options.h (EXPORT_DANE_FORMAT): Remove.
2719 (VERIFY_PKA_LOOKUPS, VERIFY_PKA_TRUST_INCREASE): Remove.
2720 (KEYSERVER_HONOR_PKA_RECORD): Remove.
2721 * g10/packet.h (pka_info_t): Remove.
2722 (PKT_signature): Remove flags.pka_tried and pka_info.
2723 * g10/parse-packet.c (register_known_notation): Remove
2724 "pka-address@gnupg.org".
2725 * g10/pkclist.c (check_signatures_trust): Remove PKA stuff.
2726 * g10/call-dirmngr.c (gpg_dirmngr_get_pka): Remove.
2727 * g10/export.c (parse_export_options): Remove "export-pka".
2728 (do_export): Adjust for this.
2729 (write_keyblock_to_output): Ditto.
2730 (do_export_stream): Ditto.
2731 (print_pka_or_dane_records): Rename to ...
2732 (print_dane_records): this and remove two args. Remove PKA printing.
2733 * g10/free-packet.c (free_seckey_enc, cp_pka_info): Adjust for removed
2735 * g10/getkey.c (get_pubkey_byname): Make AKL_PKA a dummy.
2736 * g10/keyserver.c: Remove "honor-pka-record".
2737 (keyserver_import_pka): Remove.
2738 * g10/mainproc.c (get_pka_address): Remove.
2739 (pka_uri_from_sig): Remove.
2740 (check_sig_and_print): Remove code for PKA.
2742 gpg: Remove more or less useless tool gpgcompose.
2743 + commit fde7d833573d358b2c5b5eb7d837bc27c6dcb3d1
2744 * g10/gpgcompose.c: Remove
2746 gpg: Remove experimental feature to export w/o user-ids.
2747 + commit 3491faa3bb62c1c96c6dd5947516128b2a966535
2748 * g10/options.h (IMPORT_DROP_UIDS, EXPORT_DROP_UIDS): Remove.
2749 * g10/import.c (parse_import_options): Remove option import-drop-uids.
2750 (import_one_real): Remove drop uids code.
2751 (remove_all_uids): Remove function.
2752 * g10/export.c (parse_export_options): Remove option export-drop-uids.
2753 (do_export_one_keyblock): Remove drop uids code.
2755 card: List keys of pkcs#15 cards.
2756 + commit a06c79b6143fc49e6f5169b8a9f53c691031d6ca
2757 * tools/gpg-card.c (list_p15): New.
2758 (list_card): Call it.
2760 scd:p15: Read PuKDF and minor refactoring.
2761 + commit 0c080ed5791ecf1606d1c2fddc0c55362fd171d3
2762 * scd/app-p15.c (pukdf_object_t): New.
2763 (struct app_local_s): Add field public_key_info.
2764 (release_pukdflist): New.
2765 (select_and_read_record): No diagnostic in case of not_found.
2766 (read_first_record): New. Factored out from the read_ef_ fucntions.
2767 (read_ef_pukdf): New. Basically a copy of read_ef_prkdf for now.
2768 (read_p15_info): Also read the public keys.
2770 (cardtype2str): New.
2771 (read_ef_tokeninfo): Print a string with the cardtype.
2773 2021-02-01 Werner Koch <wk@gnupg.org>
2775 sm: Add a few OIDs and merge OID tables.
2776 + commit 0737dc8187a0eb9ca4661e2ad45954c718daa451
2777 * sm/keylist.c (OID_FLAG_KP): New.
2778 (key_purpose_map): Merge into ...
2779 (oidtranstbl): this.
2780 (get_oid_desc): New arg 'matchflag'. Use function in place of direct
2781 access to key_purpose_map.
2783 2021-01-28 Werner Koch <wk@gnupg.org>
2785 Include the library version in the compliance checks.
2786 + commit 90c514868ff5fcf6d39490d4874ac3a31ba9e85f
2787 * common/compliance.c (gnupg_gcrypt_is_compliant): New.
2788 (gnupg_rng_is_compliant): Also check library version.
2789 * g10/mainproc.c (proc_encrypted): Use new function.
2790 (check_sig_and_print): Ditto.
2791 * sm/decrypt.c (gpgsm_decrypt): Ditto.
2792 * sm/encrypt.c (gpgsm_encrypt): Ditto.
2793 * sm/verify.c (gpgsm_verify): Ditto
2795 2021-01-27 Werner Koch <wk@gnupg.org>
2797 scd:p15: Make file selection more robust.
2798 + commit 1e197c29ed95d021f5693cd3652b6acb07d928ea
2799 * scd/app-p15.c: Include host2net.h.
2800 (DEFAULT_HOME_DF): New.
2801 (select_and_read_binary): Replace slot by app. Change callers. Use
2803 (select_and_read_record): ditto.
2804 (select_ef_by_path): Make use use the home_df.
2805 (parse_certid): Adjust for always set home_df.
2806 (print_tokeninfo_tokenflags): Ditto.
2807 (app_select_p15): Take the home_df from the FCI returned by select.
2809 scd: Define new status word.
2810 + commit 7620473cd007c074b0625a678caa6105a4c87142
2811 * scd/apdu.h (SW_NO_CURRENT_EF): New.
2813 scd:p15: Factor the commonKeyAttributes parser out.
2814 + commit 5bcbc8cee310067aa3cc48665b0fb0595c64ae4d
2815 * scd/app-p15.c (read_ef_prkdf): Fix detection of unsupported key
2816 objects. Factor some code out to ...
2817 (parse_common_key_attr): new.
2819 gpg: Fix ugly error message for an unknown symkey algorithm.
2820 + commit b08418d22cc898c9d135217e07ca77f3daf3c9e9
2821 * g10/mainproc.c (proc_symkey_enc): Do not continue with an unknown
2824 2021-01-26 Werner Koch <wk@gnupg.org>
2826 scd:p15: Factor the commonObjectAttributes parser out.
2827 + commit fb84674d6c645a423b8ed9835437d25e4893e183
2828 * scd/app-p15.c (parse_common_obj_attr): New.
2829 (read_ef_prkdf): Use new function.
2830 (read_ef_aodf): Ditto.
2832 scd:p15: First step towards real CardOS 5 support.
2833 + commit fc287c0552b0fe489c66bb493879f4330c34f287
2834 * scd/iso7816.c (iso7816_select_path): Add arg from_cdf.
2835 * scd/app-nks.c (do_readkey): Adjust for this change.
2837 * scd/app-p15.c (CARD_TYPE_CARDOS_53): New.
2839 (card_atr_list): Add standard ATR for CardOS 5.3.
2840 (select_and_read_binary): Remove the fallback to record read hack.
2841 (select_and_read_record): New.
2842 (select_ef_by_path): Rework and support CardOS feature.
2843 (read_ef_prkdf): Use read record for CardOS.
2844 (read_ef_cdf): Ditto.
2845 (read_ef_aodf): Ditto. Also fix bug in the detection of other
2846 unsupported attribute types.
2847 (verify_pin): Use IS_CARDOS_5 macro.
2848 (app_select_p15): Force direct method for CardOS.
2850 2021-01-25 Werner Koch <wk@gnupg.org>
2852 agent: Support ssh-agent extensions for environment variables.
2853 + commit 224e26cf7b67f22bb0140133eac6b4ad24f3b1b7
2854 * common/session-env.c (session_env_list_stdenvnames): Extend to allow
2855 return all names as one string.
2856 * agent/command-ssh.c (SSH_REQUEST_EXTENSION): New.
2857 (SSH_RESPONSE_EXTENSION_FAILURE): New.
2858 (request_specs): Add handler for the extension command.
2859 (ssh_handler_extension): New.
2861 2021-01-21 Werner Koch <wk@gnupg.org>
2863 scd:p15: Show the ATR as part of the TokenInfo diagnostics.
2864 + commit 60499d98940d4b7a1673b8584cafe0f7ac2901dd
2865 * scd/app-p15.c (read_ef_tokeninfo): Print the ATR in verbose mode.
2867 2021-01-19 Werner Koch <wk@gnupg.org>
2869 Require Libgcrypt 1.9.
2870 + commit 9500432b7ae10d98b30c58de4357e2ffb93bf795
2871 * configure.ac: Require at least Libgcrypt 1.9.0. Remove all
2872 GCRYPT_VERSION_NUMBER dependent code.
2874 2021-01-12 Werner Koch <wk@gnupg.org>
2876 tools: Add option --clock to watchgnupg.
2877 + commit 93d5d7ea2a8b110b3ad88be25f2f67d706361e44
2878 * tools/watchgnupg.c (print_fd_and_time) [ENABLE_LOG_CLOCK]: Use
2880 (print_version): New option --clock.
2882 2021-01-11 Werner Koch <wk@gnupg.org>
2884 gpg,w32: Fix gnupg_remove.
2885 + commit b6967d31912912ad3c0a2ff6bf6eb9822a194562
2886 * common/sysutils.c (map_w32_to_errno): New.
2887 (gnupg_w32_set_errno): New.
2888 (gnupg_remove) [w32]: Set ERRNO
2890 2021-01-06 Ingo Klöcker <dev@ingo-kloecker.de>
2892 I meant "SHA-2 digests" in the previous commit.
2893 + commit 7eef40cc1143fb19132786ebcca1c9a6c9a85e6e
2896 scd:nks: Add support for signing plain SHA-3 digests.
2897 + commit 8fe976d5b9a0f2902868737dd502c749565222a6
2898 * scd/app-nks.c (do_sign): Handle plain SHA-3 digests and verify
2899 encoding of ASN.1 encoded hashes.
2901 2020-12-30 Werner Koch <wk@gnupg.org>
2903 wkd: Minor permission fix for created files.
2904 + commit c008e8d20e12c8845403ad7dad499f6a196ecc6a
2905 * tools/wks-util.c (wks_cmd_install_key): Don't set u+x on the file.
2906 (ensure_policy_file): No need to make the policy file group writable.
2908 2020-12-21 Werner Koch <wk@gnupg.org>
2910 common: Remove superfluous debug output from dotlock.c.
2911 + commit fc0eaa9add3c9bc93d4404988be3e1eb8f88ffa2
2912 * common/dotlock.c (dotlock_create_unix): Remove debug output.
2914 doc: Explain LDAP keyserver parameters.
2915 + commit e0cbb97925a109fee7c0a7450bcac120f2766ed2
2918 2020-12-18 Werner Koch <wk@gnupg.org>
2920 dirmngr: Do not block threads in LDAP keyserver calls.
2921 + commit 355e2992c043dd3241a9e838255f01418490ef33
2922 * dirmngr/ks-engine-ldap.c: Wrap some ldap calls.
2924 2020-12-17 Werner Koch <wk@gnupg.org>
2926 gpg: New AKL method "ntds"
2927 + commit 4a3836e2b2f9a91995d5ce058820e1121298f548
2928 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Change the new
2929 support for KEYDB_SEARCH_MODE_MAIL.
2930 (ks_ldap_get): Add a debug.
2931 * g10/options.h (AKL_NTDS): New.
2932 * g10/keyserver.c (keyserver_import_ntds): New.
2933 (keyserver_get_chunk): Allow KEYDB_SEARCH_MODE_MAIL.
2934 * g10/getkey.c (parse_auto_key_locate): Support "ntds".
2935 (get_pubkey_byname): Ditto.
2937 dirmngr: Support "ldap:///" for the current AD user.
2938 + commit 1194e4f7e2dff620e0da87f212f3a35f8021b142
2939 * dirmngr/http.h (struct parsed_uri_s): Add field ad_current.
2940 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): Set it.
2941 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Take care of ad_current.
2943 dirmngr: Allow LDAP searches via fingerprint.
2944 + commit 2cadcce3e877c857bb8859574762b59b9c193b44
2945 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Add arg
2946 serverinfo and allow searching by fingerprint.
2947 (ks_ldap_get, ks_ldap_search): First connect then create teh filter.
2949 2020-12-15 Werner Koch <wk@gnupg.org>
2951 dirmngr: Store all version 2 schema attributes.
2952 + commit a2434ccabdd1956876b44e05e07c3c3630c50f8f
2953 * g10/call-dirmngr.c (ks_put_inq_cb): Emit "fpr" records.
2954 * dirmngr/ks-engine-ldap.c (extract_attributes): Add args
2955 extract-state and schemav2. Add data for the new schema version.
2956 remove the legacy code to handle UIDs in the "pub" line.
2957 (ks_ldap_put): Set new attributes for NTDS use the fingerprint as CN.
2959 2020-12-14 Werner Koch <wk@gnupg.org>
2961 dirmngr: Support the new Active Directory schema.
2962 + commit e9ddd61fe979b1b8e1a4801f7f916d0222397245
2963 * dirmngr/ks-engine-ldap.c (SERVERINFO_): New constants.
2964 (my_ldap_connect): Relace args pgpkeyattrp and real_ldapp by a new
2965 serverinfo arg. Set the new info flags.
2966 (ks_ldap_get): Adjust for change.
2967 (ks_ldap_search): Ditto.
2968 (ks_ldap_put): Ditto. Replace xmalloc by xtrymalloc. Change the DN
2969 for use with NTDS (aka Active Directory).
2970 * doc/ldap/gnupg-ldap-init.ldif (pgpSoftware): Update definition of
2972 * doc/ldap/gnupg-ldap-ad-init.ldif: New.
2973 * doc/ldap/gnupg-ldap-ad-schema.ldif: New.
2975 dirmngr: Do not store the useless pgpSignerID in the LDAP.
2976 + commit cc056eb534c1b8f7d1a90af3b9ecb9d6b2f322fa
2977 * dirmngr/ks-engine-ldap.c (extract_attributes): Do not store the
2979 * g10/call-dirmngr.c (ks_put_inq_cb): Do not emit sig records.
2981 dirmngr: Fix adding keys to an LDAP server.
2982 + commit 37a899d0e4fd49512d522e7f6f86b6968309fece
2983 * dirmngr/ks-engine-ldap.c (ks_ldap_put): Extract attribites into
2986 2020-12-11 NIIBE Yutaka <gniibe@fsij.org>
2988 scd:nks: Support READKEY with keygrip and for "NKS-IDLM" keyref.
2989 + commit 3b392630881350baabeba16fa760bad04be94d03
2990 * scd/app-nks.c (do_readkey): Allow KEYGRIP access.
2991 Support NKS-IDLM.XXXX keyref.
2993 scd:nks: Factor out pubkey retrieval from keygrip handling.
2994 + commit b7c087375d84c31ab8a645cd81e6b1e6185cb30d
2995 * scd/app-nks.c (pubkey_from_pk_file): New.
2996 (keygripstr_from_pk_file): Use pubkey_from_pk_file.
2998 2020-12-10 NIIBE Yutaka <gniibe@fsij.org>
3000 scd:nks: Add support of KEYGRIP for do_readcert.
3001 + commit 4020cd9d656264bec5e7fb5e45c5e06eff8656c3
3002 * scd/app-nks.c (do_readcert): Support KEYGRIP.
3004 scd:nks: Factor out iteration over filelist.
3005 + commit 6c4365847666cefac73ccc743a99fac473da2186
3006 * scd/app-nks.c (iterate_over_filelist): New.
3007 (do_with_keygrip): Use iterate_over_filelist.
3009 2020-12-09 Werner Koch <wk@gnupg.org>
3011 wks-client: Improve an error message.
3012 + commit c7c88648b71b8ce3a5507946afb91761fc6d931e
3013 * tools/gpg-wks-client.c (read_confirmation_request): Print trust
3016 2020-12-09 NIIBE Yutaka <gniibe@fsij.org>
3018 scd:ccid:spr532: Extend abort_cmd for initialization time.
3019 + commit a9aa30ed2c2c399c2baa6a5aa2624d8fdee6286f
3020 * scd/ccid-driver.c (abort_cmd): Add INIT argument to support
3021 synchronize until success, even ignoring timeout.
3022 (bulk_in): Normal use case of abort_cmd.
3023 (ccid_vendor_specific_init): Initial use case of abort_cmd.
3025 scd:ccid: Call libusb_clear_halt in ccid_vendor_specific_setup.
3026 + commit f50373027222f28ab9d37843178a5d44cc1e3cc0
3027 * scd/ccid-driver.c (ccid_vendor_specific_setup): Only for SPR532,
3028 call libusb_clear_halt.
3030 scd:ccid: Revert the addition of libusb_clear_halt for EP_INTR.
3031 + commit ffabc29d5eadfe81b9f62b7d4fe6e858b191354d
3032 * scd/ccid-driver.c (ccid_setup_intr): Don't call libusb_clear_halt.
3034 2020-12-08 NIIBE Yutaka <gniibe@fsij.org>
3036 scd:yubikey: Fix support of Yubikey NEO.
3037 + commit 946555ea3ceb823b95ed13654ae4fd667daa4337
3038 * scd/app-openpgp.c (get_public_key): Yubikey NEO also has this issue.
3040 agent: Allow decryption with card but no file.
3041 + commit eda3c688fc2e85c7cd63029cb9caf06552d203b4
3042 * agent/pkdecrypt.c (agent_pkdecrypt): Support decryption with card
3043 but without a stub key.
3045 agent: Clean up the API of agent_pkdecrypt.
3046 + commit 9beab36dfa39106f6efd1bb89551a581bcf9df60
3047 * agent/agent.h (agent_pkdecrypt): Use gpg_error_t type.
3048 * agent/pkdecrypt.c (agent_pkdecrypt): Use gpg_error_t type.
3050 agent: Allow pksign operation with card but no file.
3051 + commit cbb0e069f55bc45037bbd69d54ce23dae2af2ac6
3052 * agent/pksign.c (agent_pksign_do): Add support with no file.
3054 2020-12-07 Ingo Klöcker <dev@ingo-kloecker.de>
3056 gpg: Make quick-gen-key with algo "card" work for keys without keytime.
3057 + commit 255d33d65126df00bc036580d0b32735d7178c8b
3058 * g10/keygen.c (quick_generate_keypair): Set pCARDKEY flag if algostr
3059 is "card" or "card/...".
3061 2020-12-07 NIIBE Yutaka <gniibe@fsij.org>
3063 gpg,card: Allow no version information of Yubikey.
3064 + commit 1cd615afe3010d2c3919de489d7c9a78513c8694
3065 * g10/call-agent.c (learn_status_cb): Assume >= 2 when no version.
3066 * tools/card-call-scd.c (learn_status_cb): Likewise.
3068 2020-12-03 NIIBE Yutaka <gniibe@fsij.org>
3070 scd:nks: Fix caching keygrip (more).
3071 + commit 87d2c579cc38c1d2787945650125fb0e0336652c
3072 * scd/app-nks.c (keygripstr_from_pk_file): Distinguish by APP_ID.
3074 scd: Fix KEYINFO command with --data option.
3075 + commit 54b88ae4606265f3d51c1ca603dbf846f3dfd678
3076 * scd/command.c (cmd_keyinfo): Handle --data option correctly.
3078 scd:openpgp: Fix writing ECC key to card.
3079 + commit a25c99b156ca9acaa7712e9c09a6df0a7a23c833
3080 * scd/app-openpgp.c (build_privkey_template): Adding another argument
3081 of ecc_d_fixed_len to handle variable-size MPI.
3083 2020-12-02 Werner Koch <wk@gnupg.org>
3085 kbx: Better error message in case of a crippled Libgcrypt.
3086 + commit 63ed2054a1f3cfbdff5cda390952f10a512dab83
3087 * kbx/keybox-openpgp.c (keygrip_from_keyparm): Detect missing curve.
3089 2020-12-01 Jens Meißner <meissner@b1-systems.de>
3091 doc: Add parameters for batch generation of ECC keys.
3092 + commit 4f9ac5dac093300ac18fd3732bffdd2a3fc38776
3093 * doc/gpg.texi: Add parameters for batch generation of ECC keys.
3095 2020-11-30 Werner Koch <wk@gnupg.org>
3097 scd:nks: Minor additions to the basic IDLM application support.
3098 + commit 806547d9d243b26c2275fc00c645ee39d258b49b
3099 * scd/app-nks.c (filelist): Use special value -1 for IDLM pubkeys.
3100 (keygripstr_from_pk_file): Handle special value.
3101 (do_readcert): Ditto.
3102 (do_writecert): Ditto.
3104 2020-11-27 Werner Koch <wk@gnupg.org>
3106 card: Let the APDU command prints a description of the status word.
3107 + commit ad469609b101fe6c1128135180fef8eae13279ff
3108 * tools/card-call-scd.c (scd_apdu_strerror): New.
3109 * tools/gpg-card.c (cmd_apdu): Print a description.
3111 scd: New getinfo sub-command apdu_strerror.
3112 + commit 0e34683a6c4b037aa50ca0f97ddb9d5c4e499084
3113 * scd/apdu.c (apdu_strerror): Add missing status codes.
3114 * scd/command.c (cmd_getinfo): New sub-command apdu_strerror.
3116 card: Netkey improvement for passwd.
3117 + commit 5804db1a13d2cf8f4010d1257c586bed978c3173
3118 * tools/gpg-card.c (cmd_passwd) [Netkey]: No Standard/QES menu if the
3119 card does not support it. Print no error in cases the user canceled.
3121 2020-11-27 NIIBE Yutaka <gniibe@fsij.org>
3123 scd:ccid-driver: Fix pinpad error handling for cancel/timeout.
3124 + commit bb591222c3c5cb1a1750b1b1dd26d0bc53b347cb
3125 * scd/apdu.h (SW_HOST_UI_CANCELLED, SW_HOST_UI_TIMEOUT): New.
3126 * scd/ccid-driver.h (CCID_DRIVER_ERR_UI_CANCELLED): New.
3127 (CCID_DRIVER_ERR_UI_TIMEOUT): New.
3128 * scd/ccid-driver.c (bulk_in): Handle PIN input cancel/timeout error.
3129 * scd/iso7816.c (map_sw): Support SW_HOST_UI_CANCELLED and
3132 2020-11-26 Werner Koch <wk@gnupg.org>
3134 agent: Fix YK s/n and prettify the request card prompt for Yubikeys.
3135 + commit 7113263a00d8c9b09f0dfdb9590bfe2bab1bc776
3136 * agent/divert-scd.c (ask_for_card): Detect and re-format the Yubikey
3138 * scd/app.c (app_munge_serialno): Fix Yubikey s/n munging.
3139 (card_get_dispserialno): Ditto.
3140 * scd/app-openpgp.c (get_disp_serialno): Remove.
3141 (get_prompt_info): Use app_get_dispserialno.--
3143 scd: Do not try to use a non-enabled app after card switching.
3144 + commit d784e763495c8d53e29a2debdd9c0e0578f15a6a
3145 * scd/app.c (app_dump_state): Also print the refcount.
3146 (maybe_switch_app): Make sure the app exists on the card.
3148 scd: Add special serialno compare for OpenPGP cards.
3149 + commit 764c69a841abc1a4dff2fa86b4cd0b63ec737860
3150 * scd/app.c (is_same_serialno): New.
3151 (check_application_conflict): Use this.
3152 (select_application): Ditto.
3153 (app_switch_current_card): Ditto.
3154 * scd/app-openpgp.c (check_keyidstr): Ignore the card version and also
3155 compare case insensitive.
3157 2020-11-26 NIIBE Yutaka <gniibe@fsij.org>
3159 gpg: Report an error for receiving key from agent.
3160 + commit 605ab99912ac632363d1b4378a710229e40ca99e
3161 * g10/export.c (do_export_one_keyblock): Report an error.
3163 scd,nks: Fix caching keygrip.
3164 + commit 920154370834ad8d947aed19c9d914a27dde6baa
3165 * scd/app-nks.c (keygripstr_from_pk_file): Identify by cfid if
3168 2020-11-25 Werner Koch <wk@gnupg.org>
3170 scd:p15: Print the internal card type.
3171 + commit 00037f499db830c75fee2111dfbef72fa11bd98a
3172 * scd/app-p15.c (read_ef_tokeninfo): Print the internal card type.
3174 scd:p15: Improve support for some CardOS based cards.
3175 + commit c7b9a4ee439eca5a4bde4781f7d8983af3b9201e
3176 * scd/iso7816.c (iso7816_read_binary_ext): Add optional arg r_sw and
3178 (iso7816_read_record): Factor all code out to ...
3179 (iso7816_read_record_ext): new.
3180 * scd/app-p15.c (select_and_read_binary): Fallback to record reading.
3181 (read_ef_aodf): Clear EOF error.
3183 scd: Rework the handling of the displayed serial number.
3184 + commit 3a8250c02031080c6c8eebd5dea03f5f87f9ddd7
3185 * scd/app.c (app_new_register): Call app_munge_serialno for Yubikeys.
3186 (app_munge_serialno): Handle Yubikey serial numbers.
3187 (card_get_serialno): Remove special Yubikey treatment. Drop arg
3189 (app_get_serialno): Clear ERRNO on error.
3190 (card_get_dispserialno): New. Also change formatting of Yubikey and
3191 OpenPGP numbers to match those printed on the card.
3192 (app_get_dispserialno): New.
3193 * scd/app-openpgp.c (do_getattr): Use app_get_dispserialno.
3194 (yubikey_get_serialno): Remove.
3195 * scd/app-piv.c (get_dispserialno): Remove.
3196 (do_getattr): Use app_get_dispserialno.
3198 2020-11-25 NIIBE Yutaka <gniibe@fsij.org>
3200 scd: Fix an error return for READKEY.
3201 + commit c3a20c88fb30b0fc4ce50a01de97fae333003682
3202 * scd/command.c (cmd_readkey): Return when error.
3204 scd,nks: Fix SEGV for learn for older card.
3205 + commit 006944b856ee2202905290e8a2f5523a7877d444
3206 * scd/app-nks.c (keygripstr_from_pk_file): Set algostr.
3208 2020-11-20 NIIBE Yutaka <gniibe@fsij.org>
3210 gpg: Change API of agent_scd_serialno.
3211 + commit 777019faf0b8f10a897c3ee477d35f9b29f02224
3212 * g10/call-agent.c (agent_scd_serialno): Extend API to allow with
3214 * g10/card-util.c (card_status): Use NULL for agent_scd_serialno.
3215 (factory_reset): Likewise.
3216 * g10/skclist.c (build_sk_list): Likewise.
3218 Fix the previous comment changes help doc string.
3219 + commit cc8b99d18e26397028ca185e44d0886a94cc1bf6
3220 * scd/command.c (hlp_learn): Fix the doc string.
3222 2020-11-19 Werner Koch <wk@gnupg.org>
3224 gpgconf: Also print revision of libksba.
3225 + commit 4070f302e4decc8d54d1305cbd30f6dab052ef7e
3226 * dirmngr/dirmngr.c (get_revision_from_blurb): Fix detection of empty
3228 (gpgconf_versions): Print ksba revision.
3230 2020-11-19 NIIBE Yutaka <gniibe@fsij.org>
3232 agent: Fix creating shadow key on card key generation.
3233 + commit 8ddadbbdbbe20b9e87eb2bfa142577e26dae297e
3234 * agent/command.c (cmd_readkey): Fix handling --card option.
3236 gpg: Fix --card-edit command.
3237 + commit e45455d3020ca8f21c54112b6dfb1cc9bd3f2623
3238 * g10/card-util.c (get_info_for_key_operation): Revert the change.
3240 2020-11-18 NIIBE Yutaka <gniibe@fsij.org>
3242 build: Update to newer autoconf constructs.
3243 + commit d66fb3aa53a6c4a815fe35a15e3c61886c5df628
3244 * acinclude.m4 (GNUPG_CHECK_ENDIAN): Use AC_COMPILE_IFELSE instead of
3245 AC_TRY_COMPILE. Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3246 (GNUPG_BUILD_PROGRAM): Use AS_HELP_STRING instead of AC_HELP_STRING.
3247 * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
3248 Use AS_HELP_STRING instead of AC_HELP_STRING.
3249 (AC_ISC_POSIX): Replace by AC_SEARCH_LIBS.
3250 (AC_TYPE_SIGNAL): Remove.
3251 * m4/isc-posix.m4: Remove.
3252 * m4/codeset.m4: Update from gnulib.
3253 * m4/gettext.m4: Update from gnulib.
3254 * m4/lcmessage.m4: Update from gnulib.
3255 * m4/socklen.m4: Update from gnulib.
3256 * m4/ldap.m4: Use AS_HELP_STRING instead of AC_HELP_STRING.
3257 Use AC_LINK_IFELSE instead of AC_TRY_LINK.
3258 Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3259 * m4/gpg-error.m4: Update from libgpg-error.
3260 * m4/readline.m4: Update from libgpg-error.
3261 * m4/npth.m4: Update from npth.
3262 * m4/libassuan.m4: Update from libassuan.
3263 * m4/libgcrypt.m4: Update from libgcrypt.
3264 * m4/ksba.m4: Update from libksba.
3265 * m4/ntbtls.m4: Update from ntbtls.
3266 * common/signal.c [!HAVE_DOSISH_SYSTEM] (init_one_signal): Replace
3268 [!HAVE_DOSISH_SYSTEM] (got_fatal_signal, got_usr_signal): Likewise.
3270 build: Use modern Autoconf check for types.
3271 + commit aeeb8e975dc740cb79954de7fec4fcfe902d3a42
3272 * common/types.h: Use HAVE_TYPE_BYTE, HAVE_USHORT_TYPEDEF,
3273 HAVE_ULONG_TYPEDEF, HAVE_U16_TYPEDEF, and HAVE_TYPE_U32.
3274 * configure.ac (byte, ushort, ulong, u16, u32): Use AC_CHECK_TYPES.
3276 2020-11-13 Werner Koch <wk@gnupg.org>
3278 gpg: Fix the encrypt+sign hash algo preference selection for ECDSA.
3279 + commit e37c2e184448f64e285f925ab9636b5f21be99f7
3280 * g10/keydb.h (pref_hint): Change from union to struct and add field
3281 'exact'. Adjust callers.
3282 * g10/pkclist.c (algo_available): Take care of the exact hint.
3283 * g10/sign.c (sign_file): Rework the hash detection from
3286 2020-11-12 Werner Koch <wk@gnupg.org>
3288 gpgconf: Yet another fix for --apply-profile.
3289 + commit e546cc78b75978a696298f2fcc072faeb7f69be4
3290 * tools/gpgconf.c (main): Use gnupg_homedir instead of
3291 default_homedir. Check for existance of the directory.
3293 2020-11-11 Werner Koch <wk@gnupg.org>
3295 w32: Replace some fopen by es_fopen.
3296 + commit d574213ce21c495d9432eeb5956e8857826876c6
3297 * agent/protect-tool.c (read_file): Replace fopen by es_fopen.
3298 * dirmngr/dirmngr-client.c (read_pem_certificate): Ditto.
3299 (read_certificate): Ditto.
3300 * g10/keydb.c (rt_from_file): Ditto.
3301 * kbx/kbxutil.c (read_file): Ditto.
3302 * g10/plaintext.c (get_output_file) [__riscos__]: Remove code.
3304 2020-11-11 NIIBE Yutaka <gniibe@fsij.org>
3306 gpg: Fix the previous commit.
3307 + commit dd2703096f3ee7f4b6b96e2b649daf85aa8d6030
3308 * g10/delkey.c (do_delete_key): Fix the condition for the error.
3310 2020-11-10 NIIBE Yutaka <gniibe@fsij.org>
3312 gpg: In batch mode, delete-secret-key is not okay without --yes.
3313 + commit f9bbc751633f38f58fecb71c33aae735e9b30241
3314 * g10/delkey.c (do_delete_key): Emit an error when not --yes.
3316 gpg: Fix agent_delete_key interaction.
3317 + commit 9854369a729b9fde43eac2e2f7154f5187378787
3318 * g10/call-agent.c (agent_delete_key): Set up CTX.
3320 2020-11-09 Werner Koch <wk@gnupg.org>
3322 card: Run factory-reset in locked stated also in gpg-card.
3323 + commit 12fd10791f1dec4ec42810d7b92c69e1ae2327b9
3324 * tools/card-call-scd.c (scd_apdu): Add more pseudo APDUs.
3325 * tools/card-misc.c (send_apdu): Handle them.
3326 * tools/gpg-card.c (cmd_factoryreset): Use lock commands.
3328 card: Run factory-reset in locked stated.
3329 + commit 8fb0d5e3c775f40e321689b35431d81425406237
3330 * scd/command.c (reset_notify): Add option --keep-lock.
3331 (do_reset): Add arg keep_lock.
3332 (cmd_lock): Send progress status.
3333 * g10/call-agent.c (agent_scd_apdu): Add more pseudo APDUs.
3334 * g10/card-util.c (send_apdu): Ditto.
3335 (factory_reset): Use lock commands.
3337 gpg: Do not print rejected digest algo notes with --quiet.
3338 + commit e08e1d62d089a154ec5d7c80cd58e8e3b18d2d6b
3339 * g10/misc.c (print_digest_rejected_note): Do not print in quiet mode.
3340 (print_sha1_keysig_rejected_note): Ditto.
3342 2020-11-09 NIIBE Yutaka <gniibe@fsij.org>
3344 gpg: Fix SOS handling when exporting SSH key with libgcrypt 1.8.
3345 + commit bf3a9377d147d8a83d9c71ca5a7284897c913951
3346 * g10/export.c (key_to_sshblob): Fix SOS correctly.
3348 agent: Fix SOS handling with libgcrypt 1.8.
3349 + commit ba4f68416742eb241ec5490d16f88b0eb0bdc811
3350 * agent/cvt-openpgp.c (apply_protection): Handle opaque MPI.
3352 2020-11-06 Werner Koch <wk@gnupg.org>
3354 agent: Minor tweaks to the new genpin inquiry.
3355 + commit c896112fa3f7f3289b5198bfac992160feb0ad0a
3356 * agent/call-pinentry.c (generate_pin): Use STRING random which is
3357 sufficient for a passphrase.
3358 (inq_cb): s/rc/err/. Do not print two errors in case generate_pin
3359 fails. Lowercase strings as per GNU standards.
3360 (setup_genpin): Fix translation test.
3361 (setup_qualitybar): Ditto.
3363 2020-11-06 Andre Heinecke <aheinecke@gnupg.org>
3365 agent: Add genpin inquiry for pinentry.
3366 + commit 557ddbde32585c534626b57a595a2ccf28fd585e
3367 * agent/call-pinentry.c (agent_get_passphrase): Setup genpin.
3368 (do_getpin): Update with new name for inquire callback.
3369 (inq_quality): Rename to inq_cb and add genpin support.
3370 (inq_cb): Renamed form inq_quality.
3371 (generate_pin): New helper to generate a pin.
3372 (agent_askpin): Fix some typos.
3373 (setup_genpin): Provide new strings for pinentry.
3375 2020-11-05 Ben Kibbey <bjk@luxsci.net>
3377 gpg: Add canceled status message.
3378 + commit 31e47dfad0f40e31e8b3113b933696e8e4105136
3379 * common/status.h (STATUS_CANCELED_BY_USER): New.
3380 * g10/passphrase.c (passphrase_to_dek): Send STATUS_CANCELED_BY_USER
3381 instead of STATUS_MISSING_PASSPHRASE when canceled is set.
3383 2020-11-05 NIIBE Yutaka <gniibe@fsij.org>
3385 scd: Use lock_slot for apdu_send_direct.
3386 + commit f808012ac2cf67ec563da178d963f300a7f2564d
3387 * scd/apdu.c (apdu_send_direct): Use lock_slot.
3389 scd: Internal CCID driver: Fix a race condition on close.
3390 + commit 484bafda4dbf5ffe9e7c41ef24fbc5bd791a3b32
3391 * scd/ccid-driver.c (ccid_require_get_status): For VENDOR_SCM reader,
3392 return 0 only at the initial call.
3393 (bulk_in): Don't detect an error for VENDOR_SCM reader, just kicking
3394 the loop, to invoke scd_update_reader_status_file, which calls
3395 ccid_slot_status again.
3396 (ccid_slot_status): Move the call of ccid_vendor_specific_setup to...
3397 (ccid_get_atr): ... here.
3399 2020-11-04 Werner Koch <wk@gnupg.org>
3401 speedo,w32: Install gpg-check-pattern and example profiles.
3402 + commit f5a81953e172a7bb4d02f2dc0e398f379c39ec84
3403 * doc/examples/vsnfd.prf: Rename to VS-NfD.prf.
3404 * doc/examples/Automatic.prf: New.
3405 * doc/Makefile.am (examples): Adjust.
3406 * build-aux/speedo/w32/inst.nsi: Install gpg-check-pattern.exe and 3
3408 * build-aux/speedo/w32/wixlib.wxs: Add new files.
3410 g13: Include a now missing header file.
3411 + commit b7f4e2d71fe3dee680f834cfc3dd620352830147
3412 * g13/create.c: Include sysutuls.h
3414 gpgconf: Make sure the homedir exists for --apply-profile.
3415 + commit 7d95f2e7e7a09e3d433d449b117e3470f9dd38c7
3416 * tools/gpgconf.c (main) <aApplyDefaults, aApplyProfile>: Create the
3417 standard home directory.
3419 common: Fix duplicate implementation of try_make_homedir.
3420 + commit dabc314b71378f585fac2753149f3358e32ec621
3421 * g10/openfile.c (try_make_homedir): Move core of the code to ...
3422 * common/homedir.c (gnupg_maybe_make_homedir): new.
3423 * sm/keydb.c (try_make_homedir): Implement using new function.
3425 * common/homedir.c: Include i18n.h.
3426 * po/POTFILES.in: Add common/homedir.c.
3428 2020-11-04 Andre Heinecke <aheinecke@gnupg.org>
3430 w32: Add another pinentry search path.
3431 + commit c8f6f6bbc8b203e633d382aa84862807c1aeb3d1
3432 * common/homedir.c (get_default_pinentry_name): Try ../bin/pinentry.exe
3434 w32: Add windows subsystem variant of gpgconf.
3435 + commit e2659f4bf603693c43af0444239bc52744291edc
3436 * tools/Makefile.am (gpgconf-w32): New target. Builds gpgconf with
3438 * build-aux/speedo/w32/wixlib.wxs: Package it.
3440 2020-11-03 Werner Koch <wk@gnupg.org>
3442 w32: Fix strftime problem on Windows.
3443 + commit e8aae18b997b3fdbfac86c644be94044aa67224d
3444 * common/gettime.c: Include locale.h.
3445 (asctimestamp): Increase buffer. On Windows use setlocale.
3447 gpg: Switch to AES256 for symmetric encryption in de-vs mode.
3448 + commit d1f2a6d9f71cf50318f4891c84aeedb975553896
3449 * g10/gpg.c (set_compliance_option): For AES256 and SHA256 in de-vs
3451 * g10/encrypt.c (setup_symkey): Add extra compliance check.
3452 (encrypt_simple): Avoid printing a second error oncplinace failure.
3454 2020-11-02 Werner Koch <wk@gnupg.org>
3456 gpg: Allow setting notations with the empty string as value.
3457 + commit e1bafa3574ccd56d9f8f8c1deb3d8fb9fd7025cc
3458 * g10/misc.c (pct_expando): Catch special case of the empty string.
3459 Also map a NULL to the empty string.
3460 * g10/photoid.c (show_photos): Make an empty string used as command
3463 build: Remove m4 macro defs which are not anymore used.
3464 + commit 6397cf5fbe3bbc1f616431b011f76e031a387d4c
3465 * configure.ac (GNUPG_FUNC_MKDIR_TAKES_ONE_ARG): Do not use.
3466 * acinclude.m4 (GNUPG_FUNC_MKDIR_TAKES_ONE_ARG): Remove unused macro
3468 (GNUPG_CHECK_FAQPROG): Ditto.
3469 (GNUPG_CHECK_DOCBOOK_TO_TEXI): Ditto.
3470 (GNUPG_CHECK_MLOCK): Ditto.
3472 gpg: Do not use weak digest algos if selected by recipient prefs.
3473 + commit 15746d60d492f5792e4a179ab0a08801b4049695
3474 * g10/misc.c (is_weak_digest): New.
3475 (print_digest_algo_note): Use it here.
3476 * g10/sig-check.c (check_signature_end_simple): Use it.
3477 * g10/sign.c (hash_for): Do not use recipient_digest_algo if it is in
3478 the least of weak digest algorithm.
3480 2020-11-02 Ingo Klöcker <dev@ingo-kloecker.de>
3482 gpg: Fix iteration over signatures.
3483 + commit b004701adca89ba85f75e12a4d284297147fe4f2
3484 * g10/keyedit.c (keyedit_quick_revsig): Take signature of correct node
3486 2020-11-02 NIIBE Yutaka <gniibe@fsij.org>
3488 kbx: Don't put zero-byte for ECC.
3489 + commit 8211d0bc3ba5ed15d0668050c08a6e28228b08a4
3490 * kbx/keybox-openpgp.c (parse_key): Only put zero for non-ECC.
3492 gpg: Fix debug output for key_check_all_keysigs with opaque MPI.
3493 + commit 90c3d623ce37695a1eb29c0a7276b23490d14603
3494 * g10/key-check.c (key_check_all_keysigs): Handle opaque MPI.
3496 gpg: Fix check_signature2 for opaque MPI.
3497 + commit 029ba6dc961c683d6683c97667d3c0e103738aa4
3498 * g10/sig-check.c (check_signature2): Handle the case of opaque MPI.
3500 gpg: Change the API for checksum to use const qualifier.
3501 + commit 21d8927f794bd901b13feaaac6d31d463349a64f
3502 * g10/main.h (checksum): Use const.
3503 * g10/misc.c (checksum): Use const.
3505 gpg: Fix counting buffer size in check_signature2.
3506 + commit 3151210e455f14848921fac838a5064749258d9f
3507 * g10/sig-check.c (check_signature2): Use GCRYMPI_FMT_PGP.
3509 2020-10-30 NIIBE Yutaka <gniibe@fsij.org>
3511 gpg: Fix SOS handling with libgcrypt version <= 1.8.
3512 + commit 813e24108a139c8059dad8bc679b2ab76b807ed9
3513 * g10/misc.c (checksum_mpi): Don't depend new feature
3514 of gcry_mpi_print which supports opaque MPI.
3516 gpg: Fix first zero-byte case for SOS handling.
3517 + commit dd4fb1c8f668f78fbcf5052e80c5c40d4cdad20c
3518 * g10/export.c (transfer_format_to_openpgp): Check the first byte.
3519 * g10/pkglue.c (sexp_extract_param_sos): Likewise.
3521 2020-10-28 Werner Koch <wk@gnupg.org>
3523 gpg: New command --quick-revoke-sig.
3524 + commit 243f9176e799b2328f2e5bed93099bfc474fdc5a
3525 * g10/gpg.c (enum cmd_and_opt_values): Add aQuickRevSig.
3526 (opts): Add --quick-revoke-sig.
3528 * g10/keyedit.c (quick_find_keyblock): Add arg 'want_secret' and
3530 (keyedit_quick_revsig): new.
3531 * g10/revoke.c (get_default_sig_revocation_reason): New.
3532 * g10/keylist.c (cmp_signodes): Make global.
3534 2020-10-27 Werner Koch <wk@gnupg.org>
3536 gpg: Sort the signatures in standard key listings.
3537 + commit 742e2729f4bcadfeb93260107462f4faa108d3b2
3538 * g10/gpg.c (parse_list_options): Add "sort-sigs".
3539 (main): Make it the default.
3540 * g10/options.h (LIST_SORT_SIGS): New.
3541 * g10/keylist.c (cmp_signodes): New.
3542 (list_keyblock_print): Sort signatures and factor signature printing
3544 (list_signature_print): new.
3546 2020-10-27 NIIBE Yutaka <gniibe@fsij.org>
3548 scd: Handle canonical serialno and app specific serialno differently.
3549 + commit e59d2b3632d8c778bd2c4375a1c3ba9c786c4360
3550 * scd/app-common.h (card_get_serialno): Add IS_CANONICAL arg.
3551 * scd/app.c (app_send_devinfo): Use app specific serialno.
3552 (card_get_serialno): Support two different cases.
3553 (app_get_serialno): Return app specific serialno.
3554 (send_serialno_and_app_status): Return canonical serialno.
3555 * scd/command.c (cmd_serialno): Return app specific serialno.
3556 (cmd_learn): Return canonical serialno.
3558 2020-10-26 Werner Koch <wk@gnupg.org>
3560 g10: Make call to agent_scd_serialno more robust.
3561 + commit 0f780b1aebb1b1bde219401735a1c24c1f0a7978
3562 * g10/call-agent.c (agent_scd_serialno): Make sure that NULL is stored
3563 on error at r_serialno.
3564 * g10/card-util.c (card_status): Simplify freeing of seriaono.
3565 (factory_reset): Ditto.
3567 2020-10-26 NIIBE Yutaka <gniibe@fsij.org>
3569 scd: Flush the cache when writing cert data object.
3570 + commit 8264b10d33e46d2caac2f2c38ccb5f764c31ad77
3571 * scd/app-piv.c (do_writecert): Flush the cache of the data object.
3573 gpg: Fix double free on error.
3574 + commit a153d0f7691486efe0aadfb1e226544ae6d20ffd
3575 * g10/card-util.c (card_status): Check an error return.
3577 gpg,tools: Fix detecting OpenPGP card by serialno.
3578 + commit 157f1de64e437cecd75335e9f4077ba9835e3da0
3579 * tools/gpg-card.c (list_openpgp): Use ->apptype to determine card's
3581 * g10/card-util.c (get_info_for_key_operation): Likewise.
3582 (current_card_status): Even if its SERIALNO is not like OpenPGP card,
3583 it's OpenPGP card when app says so.
3585 scd: Internal CCID driver thing only for SPR532.
3586 + commit 31def32eeed8cff705ca827e4bbc0bfcc80c512f
3587 * scd/ccid-driver.c (ccid_vendor_specific_setup): New. Limit
3588 only for SPR532, excluding other readers by SCM.
3589 (ccid_slot_status): Use ccid_vendor_specific_setup.
3591 2020-10-24 NIIBE Yutaka <gniibe@fsij.org>
3593 scd: Internal CCID driver limiting only for SPR532.
3594 + commit 3c6b5dfa2a2379a5f5eaa052f7dbc73462097425
3595 * scd/ccid-driver.c (ccid_vendor_specific_init): Only do that for
3598 2020-10-23 Werner Koch <wk@gnupg.org>
3600 common: Allow building with released libgpg-error.
3601 + commit 32f336d9555f18464d72a5068c290ab82ee92617
3602 * common/sysutils.c (gnupg_access) [W32]: Fix for older libgpgrt.
3604 2020-10-23 NIIBE Yutaka <gniibe@fsij.org>
3606 scd: Handle Yubikey's multiple apps and serialno.
3607 + commit 2d4de4b6f06c87cd0f72b2a0d09950e1b50841b2
3608 * scd/app-common.h (yubikey_get_serialno): New.
3609 * scd/app-openpgp.c (yubikey_get_serialno): New.
3610 * scd/app.c (card_get_serialno): Use OpenPGP app's serialno,
3611 when it's enabled for Yubikey.
3612 (send_serialno_and_app_status): Use card_get_serialno, not
3613 directly accessing ->serialno.
3615 scd: Use app_get_serialno for app_getattr.
3616 + commit c8cc35dd2c106d91a793667690c0b200560d5d2d
3617 * scd/app.c (app_getattr): Use app_get_serialno.
3619 scd: Don't overwrite serialno for Yubikey.
3620 + commit 65c91e601ae93aee1a5fa399d4a5d4498ad76eda
3621 * scd/app-openpgp.c (app_select_openpgp): Keep ->serialno.
3623 scd,openpgp: Use app_get_serialno function to get SERIALNO.
3624 + commit 41505f0ae544535b524a409d87aa2540607fc9a4
3625 * scd/app-openpgp.c (check_keyidstr): Don't directly access
3626 app->serialno, but use app_get_serialno.
3627 (do_with_keygrip): Likewise.
3629 2020-10-21 Werner Koch <wk@gnupg.org>
3631 common: New functions gnupg_opendir et al.
3632 + commit 7e22e08e2ab09cd3c2317f5e80e8ee47d46eff4b
3633 * common/sysutils.h (struct gnupg_dirent_s): New.
3634 * common/sysutils.c: Include dirent.h.
3635 (struct gnupg_dir_s): New.
3636 (gnupg_opendir, gnupg_readdir, gnupg_closedir): New. Change all
3637 callers of opendir, readdir, and closedir to use these functions.
3639 w32: Make gnupg_remove and gnupg_rename_file Unicode aware.
3640 + commit 9a0197b6fe412cfc66b0cece521267180e454416
3641 * common/sysutils.c (w32_rename): New.
3642 (gnupg_rename_file) [W32]: Support Unicode.
3643 (gnupg_remove) [W32]: Support Unicode. Drop Windows-CE support.
3645 2020-10-20 Werner Koch <wk@gnupg.org>
3647 Replace all calls to stat by gnupg_stat.
3648 + commit 18e5dd7b03ced51611c9ba1345cf498a0aaf14a6
3649 * common/sysutils.c (gnupg_stat): New.
3650 * common/sysutils.h: Include sys/stat.h.
3652 Replace most calls to open by a new wrapper.
3653 + commit 4dcef0e17836e8725c31a3b76f2bf7144345c808
3654 * common/sysutils.c (any8bitchar) [W32]: New.
3655 (gnupg_open): New. Replace most calls to open by this.
3656 * common/iobuf.c (any8bitchar) [W32]: New.
3657 (direct_open) [W32]: Use CreateFileW if needed.
3659 w32: Allow Unicode filenames for dotlock.
3660 + commit b47c355b18d9537ccc3dd3e80cc1825b018ecff7
3661 * common/dotlock.c (any8bitchar) [W32]: New.
3662 (dotlock_create_w32): Use strconcat and CreateFileW.
3664 * common/t-dotlock.c: Source include dotlock.c and modify to allow
3665 manual testing on Windows.
3667 Replace all calls to access by gnupg_access.
3668 + commit c94ee1386e0d5cdac51086c4d5b92de59c09c9b5
3669 * common/sysutils.c (gnupg_access): New. Replace all calls to access
3671 * common/homedir.c (w32_shgetfolderpath): Change to return UTF-8
3673 (standard_homedir): Adjust for change.
3674 (w32_commondir, gnupg_cachedir): Ditto.
3676 2020-10-09 NIIBE Yutaka <gniibe@fsij.org>
3678 gpg,ecc: Fix SOS handling when receiving from agent.
3679 + commit 228836f79f64559c9582ac2d475e50af57684bf8
3680 * g10/export.c (transfer_format_to_openpgp): It's not simple opaque
3683 agent: Fix SEGV when debuging for cache enabled.
3684 + commit 33cb1655f1b7c597d1ebdcb38447648477e6ac9f
3685 * agent/cache.c (agent_get_cache): Avoid dereferencing NULL.
3687 2020-10-05 Werner Koch <wk@gnupg.org>
3689 gpgsm: Fix detection of too old keyboxd.
3690 + commit 4eb9ce847825e8c6a07ce27d303c56233e85d007
3691 * sm/keydb.c (warn_version_mismatch): Add arg ctrl and pass on.
3692 (create_new_context): Pass ctrl to warn function.
3694 dirmngr: Minor cleanup for better readability.
3695 + commit b258f8de7e9fc436d72c4d4ff8f98e9b86d2f3f5
3696 * dirmngr/ldap.c (start_default_fetch_ldap): Rename to
3697 start_cacert_fetch_ldap and remove arg attr. Instead use
3698 "cACertificate" directly.
3699 * dirmngr/crlfetch.c (ca_cert_fetch): Change the only caller.
3700 (start_cert_fetch_ldap): Rename arg for clarity.
3702 dirmngr: Add warning on the use of --add-servers.
3703 + commit 210575d8826ea61e4914e4b61eff7b875c972b85
3704 * tools/gpgconf-comp.c (known_options_dirmngr): Degrade add-servers to
3707 gpg: Switch to ed25519+cv25519 as default algo.
3708 + commit ff31dde456f32950f0df6c974b4c41f1d650d68f
3709 * g10/keygen.c (DEFAULT_STD_KEY_PARAM): Change to former future
3711 (ask_algo): Change default and also the way we indicate the default
3712 algo in the list of algos.
3713 (ask_curve): Indicate the default curve.
3715 keyboxd: Fix duplicates when listing keys by uid.
3716 + commit 194034f813a09a0021e6aa82d64ea0693b37c8d0
3717 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add fields
3718 lastubid_valid and lastubid.
3719 (run_sql_prepare): Add optional extra2 arg and chage callers.
3720 (run_select_statement): Add an ORDER BY clause to most SELECTs.
3721 (be_sqlite_search): Skip duplicated keyblocks in a search.
3723 2020-10-04 Werner Koch <wk@gnupg.org>
3725 build: Fix SENDMAIL define for a PATH with spaces.
3726 + commit 6c36b8bb23bb033aaae5f1dff3b38d8e0e44717c
3727 * configure.ac: Fix use of $PATH
3729 (cherry picked from commit 77e416741abb0a871733bd46cbc81329859de96e)
3731 2020-10-02 Werner Koch <wk@gnupg.org>
3733 gpgconf: New option --show-versions.
3734 + commit 357ad9ae29677c1676b56d2b81282e2f78ec8040
3735 * tools/gpgconf.c: Include exechelp.h. New option --show-versions.
3736 (get_revision_from_blurb): New.
3737 (show_version_gnupg): New.
3738 (show_version_libgcrypt): New.
3739 (show_version_gpgrt): New.
3740 (show_versions_via_dirmngr): New.
3741 (show_versions): New.
3742 * tools/gpgconf-comp.c (GPGNAME): Remove unused macro.
3743 * dirmngr/dirmngr.c (main): New internal option --gpgconf-versions.
3744 (get_revision_from_blurb): New.
3745 (gpgconf_versions): New.
3747 w32: Silence warning due to recent change of split_fields.
3748 + commit 371228a244232f2b74181e0aa3c44d698df840ce
3749 * common/compliance.c (gnupg_rng_is_compliant): Make fields const.
3751 gpg: Fix parameter parsing form ed448.
3752 + commit e824e27d36021a868c855244d22c7d40a88a396e
3753 * g10/keygen.c (parse_key_parameter_part): Set algo also for 448.
3755 2020-10-01 Andre Heinecke <aheinecke@gnupg.org>
3757 doc: Remove enable-extended-key-format in vsnfd.
3758 + commit d84862cf109c75ae30ed5e2531b4554083c6a558
3759 * doc/examples/vsnfd.prf: Remove enable-extended-key-format
3761 2020-09-30 NIIBE Yutaka <gniibe@fsij.org>
3763 scd: Internal CCID driver: More fix for SPR532.
3764 + commit 920f258eb6018ecec1d63bad6a0fb0772f72affa
3765 * scd/ccid-driver.c (bulk_in): Handle the case of missing intr_cb.
3767 scd: Report any error for LEARN command.
3768 + commit 862d9c6face9b4ad61f6e59bf1ba9b5f5d05c58c
3769 * scd/app-openpgp.c (do_learn_status): Report any error.
3771 2020-09-29 NIIBE Yutaka <gniibe@fsij.org>
3773 scd: Internal CCID driver fix.
3774 + commit 1444203ca32ccfa4bd5097d2d49565c4055c620b
3775 * scd/ccid-driver.c (intr_cb): More useful debug output.
3776 (ccid_slot_status): Remove redundant condition.
3778 scd: Internal CCID driver: Call libusb_clear_halt at ccid_setup_intr.
3779 + commit 6af978713e4c69d7814f47e709f1dfb3fe9076d1
3780 * scd/ccid-driver.c (ccid_setup_intr): Reset the endpoint.
3781 (ccid_vendor_specific_init): Don't call libusb_clear_halt.
3783 2020-09-28 NIIBE Yutaka <gniibe@fsij.org>
3785 scd: Internal CCID driver: Fix a failure path.
3786 + commit d561c936a217627bc29aac628a8d01f7003dcd28
3787 * scd/ccid-driver.c (ccid_open_usb_reader): On error, call
3788 libusb_release_interface.
3790 scd: Internal CCID: Handle LIBUSB_ERROR_TIMEOUT at ccid_get_atr.
3791 + commit b1e8072320c19246962beb6d67dc5784b5a72364
3792 * scd/ccid-driver.c (ccid_slot_status): Handle LIBUSB_ERROR_TIMEOUT.
3794 scd: Internal CCID: Clear the handle after use.
3795 + commit c5e8ef3ab980012b64f5894f437e2ff568b02f43
3796 * scd/apdu.c (close_ccid_reader): Clear the handle.
3797 (open_ccid_reader): Likewise.
3799 scd: Change handling of SPR532 card reader.
3800 + commit 684a52dffa8b7f79b26fe53b3ab10d7748a8fb37
3801 * scd/ccid-driver.c (ccid_vendor_specific_init): Put some workaround
3802 for SPR532 initialization.
3803 (ccid_slot_status): Send ESCape command after GetSlotStatus.
3805 2020-09-25 Werner Koch <wk@gnupg.org>
3807 keyboxd: Make use of the config table.
3808 + commit f8fbd9e7346ee0c3b09271ec2cdb589282eae1c9
3809 * kbx/backend-sqlite.c (DATABASE_VERSION): New.
3810 (table_definitions): Make column name of table config unique.
3811 (create_or_open_database): Read and set the database version.
3812 (get_config_value, set_config_value): New.
3814 2020-09-25 NIIBE Yutaka <gniibe@fsij.org>
3816 scd: For PC/SC, send the ESC command at init for SPR532 reader.
3817 + commit 93e3c97889120dd17d79b7c8dd04293553785c9b
3818 * scd/apdu.c (struct reader_table_s): Remove is_spr532.
3819 (pcsc_vendor_specific_init): Send the ESC command for SPR532.
3820 (pcsc_pinpad_verify, pcsc_pinpad_modify): Remove no_lc hack.
3822 scd: For SPR532, submit the ESCape command at initialization.
3823 + commit 4fae55f8ee11b3f710524e5e8b8a91b159949f2d
3824 * scd/ccid-driver.c (ccid_vendor_specific_init): Submit the ESC
3825 command for VENDOR_SCM.
3826 (ccid_transceive_secure): Don't submit the ESC command every time.
3828 2020-09-24 Werner Koch <wk@gnupg.org>
3830 gpg: New experimental import option "bulk-import"
3831 + commit d49a945b12d98fadd0d37f4e50b5e02799e16305
3832 * g10/options.h (IMPORT_BULK): New.
3833 * g10/import.c (parse_import_options): Add "bulk-import".
3834 * g10/call-keyboxd.c (in_transaction): New var.
3835 (gpg_keyboxd_deinit_session_data): Run a commit if in bulk import
3837 (create_new_context): Run a begin transaction if in bulk import mode.
3839 keyboxd: New command TRANSACTION.
3840 + commit c2b14f5d6852fb9efaca8aeec7961e9d036203e8
3841 * kbx/backend-sqlite.c (be_sqlite_rollback): New.
3842 (be_sqlite_commit): New.
3843 (be_sqlite_search): Take care of global transactions.
3844 (be_sqlite_store): Ditto.
3845 (be_sqlite_delete): Ditto.
3846 * kbx/frontend.c (kbxd_rollback, kbxd_commit): New.
3847 * kbx/keyboxd.h (opt): Add vars for transactions.
3848 * kbx/kbxserver.c (struct server_local_s): Add fields next_session and
3850 (session_list): New var.
3851 (cmd_transaction): New.
3852 (register_commands): Register command.
3853 (kbxd_start_command_handler): Store pids and track sessions. Do a
3856 tests: Integrate --use-keyboxd into the OpenPGP test suite.
3857 + commit b19a60c6f7e892635db9e22499a7a44087c86c41
3858 * tests/openpgp/all-tests.scm (all-tests): Replace extended-key-format
3859 mode with a new keyboxd mode.
3860 * tests/openpgp/defs.scm (create-gpghome): Ditto.
3861 * tests/openpgp/gpgv.scm: Adjust for keyboxd mode.
3862 * tests/openpgp/issue2419.scm: Fix to allow setting a log-file into
3863 gpg.conf for debugging.
3865 keyboxd: Implement multiple search descriptions.
3866 + commit 25ad3c22d79d06c16a5fc652b0a6e3ffd99ad2b6
3867 * kbx/kbx-client-util.c (kbx_client_data_simple): New.
3868 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add field descidx.
3869 (be_sqlite_search): Use that.
3870 * g10/call-keyboxd.c (keydb_search): Implement multi mode.
3872 keyboxd: Fix UDPATE keyblob SQL statement.
3873 + commit 1f89d50537b3b16165e921df60734ce6203650cb
3874 * kbx/backend-sqlite.c: Always use ?NNN for SQL parameters.
3876 tests: Fix convenience function to run gpg.
3877 + commit 97798eec4b77470b3aecdbee9729fa76b8550dfe
3878 * tests/openpgp/defs.scm (pipe:gpg): Remove stray dash.
3880 keyboxd: Remove unused variables.
3881 + commit 0ac003b4576392ca3e930304a98bbf8183ab5f8b
3882 * kbx/kbx-client-util.c (datastream_thread): No need to set PK_NO and
3885 keyboxd: Integrate into gpgconf.
3886 + commit acaeba2dbdb9bbd68a823c671d5c3577fef5d26d
3887 * common/asshelp.c (lock_spawning): Use a dedicated name for keyboxd.
3888 * common/homedir.c (keyboxd_socket_name): New.
3889 (gnupg_module_name): Put keyboxd into libexecdir.
3890 * tools/gpgconf-comp.c (known_options_keyboxd): New.
3891 (gc_component): Add entry for keyboxd.
3892 (keyboxd_runtime_change): New.
3893 (gc_component_launch): Support keyboxd.
3894 * tools/gpgconf.c (list_dirs): Emit new item keyboxd-socket.
3895 (main): Also remove keyboxd socket.
3897 2020-09-24 NIIBE Yutaka <gniibe@fsij.org>
3899 scd: Fix CCID internal driver for interrupt transfer.
3900 + commit 7cbb513a2dc150a90a30c53316970df2a439d494
3901 * scd/ccid-driver.c (intr_cb): Handle the case of multiple messages.
3903 2020-09-22 Werner Koch <wk@gnupg.org>
3905 gpg: Set the found-by flags in the keyblock in keyboxd mode.
3906 + commit 183509756179fadd95d1cc740047b94dc16bb279
3907 * g10/keydb-private.h (struct keydb_handle_s): Add fields to return
3908 the ordinals of the last found blob.
3909 * g10/call-keyboxd.c (keydb_get_keyblock): Pass them to the keyblock
3912 sm: Fix returning of the ephemeral flag in keyboxd mode.
3913 + commit b810320b1bf76209dc1087cb91ca34232d9268c3
3914 * sm/keydb.c (search_status_cb): Skip over the ubid.
3916 common: Fix name of keyboxd.
3917 + commit c81a7b09368a474de4e3572fbb527d1597408ab1
3918 * common/homedir.c (gnupg_module_name): Fix name.
3920 keyboxd: Extend PUBKEY_INFO status line with an uid ordinal.
3921 + commit 0e892bda4e0bf9db9116d7d5585d4e7b0d2eae57
3922 * kbx/backend-sqlite.c (table_definitions): Add column UINO to
3924 (be_sqlite_local_s): Add fields select_col_uidno and
3926 (run_select_statement): Also select subkey or uidno column.
3927 (be_sqlite_search): Return their values.
3928 (store_into_userid): Store the UIDNO.
3929 * kbx/backend-support.c (be_return_pubkey): Extend PUBKEY_INFO.
3931 kbx: Add bounds check to detect corrupt keyboxes.
3932 + commit e0a312bfd646485ae8a0ae5e26720fc1667c5490
3933 * kbx/keybox-dump.c (_keybox_dump_blob): Fix the fixmes.
3935 2020-09-21 Werner Koch <wk@gnupg.org>
3937 scd: Extend KEYPAIRINFO with an algorithm string.
3938 + commit 26da47ae53d51e16ae6867cd419ddbf124a94933
3939 * scd/app-openpgp.c (send_keypair_info): Emit the algo string as part
3941 * scd/command.c (do_readkey): Ditto.
3942 * scd/app-piv.c (do_readkey): Ditto.
3943 * scd/app-nks.c (do_learn_status_core): Ditto.
3944 (struct fid_cache_s): Add field algostr.
3945 (flush_fid_cache): Release it.
3946 (keygripstr_from_pk_file): Fill it and add it to the cache. Use a
3948 * scd/app-help.c (app_help_get_keygrip_string_pk): Add new arg
3949 r_algostr. Change all callers.
3951 sm: Implement delete key in keyboxd mode.
3952 + commit c772770574ea2d337f8745ff304b1b8acd8a2e4c
3953 * sm/keydb.c (keydb_delete): Implement keyboxd mode.
3954 (keydb_update_cert): Disable unused function.
3955 * kbx/backend-sqlite.c (be_sqlite_delete): Delete from issuer.
3957 2020-09-18 NIIBE Yutaka <gniibe@fsij.org>
3959 agent: Fix regression for access through the extra secket.
3960 + commit 8a84a71f3a58a3e943f238b70743cd6408477eba
3961 * agent/command.c (cmd_keyinfo): Allow KEYINFO command for one key.
3962 (cmd_scd): Allow SCD command to invoke GETINFO, GETATTR, and
3963 KEYINFO --list=encr sub commands.
3965 common,agent,dirmngr,g10,tools: Fix split_fields API.
3966 + commit dfdcf14738976c6b236f4fa1c3b68af351024b3c
3967 * common/stringhelp.h (split_fields): Use const * for the strings in
3969 (split_fields_colon): Likewise.
3970 * common/stringhelp.c (split_fields, split_fields_colon): Fix
3972 * agent/call-scd.c, agent/command.c: Follow the change.
3973 * common/t-stringhelp.c, dirmngr/loadswdb.c: Likewise.
3974 * g10/call-agent.c, tools/card-call-scd.c: Likewise.
3975 * tools/card-yubikey.c, tools/gpg-card.c: Likewise.
3976 * tools/gpg-card.h, tools/gpg-wks-client.c: Likewise.
3977 * tools/gpgconf-comp.c, tools/gpgconf.c: Likewise.
3978 * tools/wks-util.c: Likewise.
3980 2020-09-16 NIIBE Yutaka <gniibe@fsij.org>
3982 scd: Clear PIN cache when changing key attributes.
3983 + commit 8ff36630277f05fbe4e43c7d757eb90da8645e3f
3984 * scd/app-openpgp.c (change_keyattr): Clear all PINs.
3986 scd: Clear caching PIN at KDF setup.
3987 + commit f4c07fc3d3c32e96d4306f6daa60b6de7fba7dc5
3988 * scd/app-openpgp.c (do_setattr): Clear PINs.
3990 scd: Add better support for KDF feature.
3991 + commit 316a8cbc7523560d999e46eb524165db11682210
3992 * scd/app-openpgp.c (do_setattr): Handle kdf-seup "off" for Gnuk.
3994 gpg,scd: Fix handling of KDF feature.
3995 + commit 8dfd0ebfd8cf2b6bcecbd91c8f7fad6db583aa5a
3996 * g10/card-util.c (kdf_setup): Fix the default value.
3997 * scd/app-openpgp.c (do_setattr): Support kdf-setup "off" by
3998 Zeitcontrol. Make sure Gnuk and Yubikey work well.
4000 2020-09-15 NIIBE Yutaka <gniibe@fsij.org>
4002 scd: Fix the use case of verify_chv2 by CHECKPIN.
4003 + commit 6e51f2044aebb885ea81dae259db1b7f477b1c44
4004 * scd/app-openpgp.c (verify_chv2): Call verify_a_chv with chvno=1
4007 2020-09-11 Werner Koch <wk@gnupg.org>
4009 scd:piv: Avoid conflict when writing a cert.
4010 + commit fbc1b199fdc8fd9a4ab422f005b4eb521b594c5c
4011 * scd/app-piv.c (map_curve_name_to_oid): New.
4012 (my_cmp_public_key): New.
4013 (do_writecert): Replace simple memcmp by cmp_canon_sexp.
4015 common: New function cmp_canon_sexp.
4016 + commit b6ba6a79ce9336f1b53f16f3d1190dd009fb166e
4017 * common/sexputil.c (cmp_canon_sexp): New.
4018 (cmp_canon_sexp_def_tcmp): New.
4019 * common/t-sexputil.c (test_cmp_canon_sexp): Add a simple test.
4021 keyboxd: Implement lookup by short and long keyid.
4022 + commit 9a94db1f662a1c5973b57b25e25aeab1bc33250e
4023 * kbx/backend-sqlite.c: Change definition of column KID.
4024 (kid_from_mem): Remove.
4025 (kid_from_u32): Rewrite.
4026 (run_sql_bind_int64): Remove.
4027 (run_select_statement): Implement lookup by short keyid. Fix lookup
4029 (store_into_fingerprint): Adjust kid arg.
4031 keyboxd: Add ephemeral and revoked flag to the sqlite backend.
4032 + commit 616c60d93dfab27dde00e1489c6c51340ec93b6c
4033 * kbx/backend-support.c (be_return_pubkey): Add args is_ephemeral and
4034 is_revoked. Adjust callers.
4035 * kbx/backend-sqlite.c: Alter table pubkey to add new columns.
4036 (run_select_statement): Add new column to all selects.
4037 (be_sqlite_search): Return the new flags.
4039 2020-09-10 Andre Heinecke <aheinecke@gnupg.org>
4041 doc: Update and extend module overview.
4042 + commit d62797ebcc15ffac52664fe08759d18a92491ddc
4043 * doc/gnupg-module-overview.svg: Add examples of GPGME aware
4046 2020-09-10 Werner Koch <wk@gnupg.org>
4048 sm: Implement initial support for keyboxd.
4049 + commit ed6ebb696e4063dc664d7ee74fc492025881c459
4050 * sm/gpgsm.h (MAX_FINGERPRINT_LEN): New.
4051 * sm/keydb.c (struct keydb_local_s): Change definition of
4053 (keydb_get_cert): Implement keyboxd mode.
4054 (keydb_get_flags): Temporary hack for keyboxd mode. Needs to be
4056 (struct store_parm_s, store_inq_cb): New.
4057 (keydb_insert_cert): Implement keyboxd mode.
4058 (keydb_locate_writable): Make static.
4059 (keydb_search_reset): Implement keyboxd mode.
4060 (search_status_cb): New.
4061 (keydb_search): Implement keyboxd mode. Replace return code -1 by
4063 (keydb_set_cert_flags): Replace return code -1 by GPG_ERR_NOT_FOUND.
4064 * sm/keylist.c (list_cert_colon): Adjust for replacement of -1 by
4066 (list_internal_keys): Ditto.
4067 * sm/sign.c (add_certificate_list): Ditto.
4068 * sm/certchain.c (find_up_search_by_keyid): Ditto.
4069 (find_up_external, find_up, find_up_dirmngr): Ditto.
4070 (gpgsm_walk_cert_chain): Ditto.
4071 (get_regtp_ca_info): Ditto.
4072 * sm/certlist.c (gpgsm_add_to_certlist): Ditto.
4073 (gpgsm_find_cert): Ditto.
4074 * sm/delete.c (delete_one): Ditto.
4075 * sm/export.c (gpgsm_export): Ditto.
4076 (gpgsm_p12_export): Ditto.
4077 * sm/import.c (gpgsm_import_files): Ditto.
4079 keyboxd: Add basic support for X.509.
4080 + commit c9677d416e6ff190c589af35b514a01a787085fb
4081 * kbx/keybox-blob.c (x509_email_kludge): Rename to ...
4082 (_keybox_x509_email_kludge): this and make global.
4083 * kbx/backend.h: Include ksba.h.
4084 * kbx/backend-support.c (be_get_x509_serial): New.
4085 (be_get_x509_keygrip): New.
4086 * kbx/backend-sqlite.c (table_definitions): New table 'issuers'.
4087 (run_select_statement): Implements modes ISSUER, ISSUER_SN, SUBJECT.
4088 (store_into_userid): Add arg override_mbox.
4089 (store_into_issuer): New.
4090 (be_sqlite_store): Implement x509 part.
4092 keyboxd: Use D-lines instead of a separate thread.
4093 + commit 6fcc263c182fc49d9ba2d1bd7649b4af1e9f3e3a
4094 * kbx/kbx-client-util.c (kbx_client_data_new): Add arg 'dlines'.
4095 * g10/call-keyboxd.c (open_context): Set DLINES to true.
4096 * sm/keydb.c (open_context): Ditto.
4098 keyboxd: Add options --openpgp and --x509 to SEARCH.
4099 + commit 29977e21d18188e16e50fee95a95e05fdbd97caf
4100 * kbx/keyboxd.h (struct server_control_s): Replace the two request
4101 objects by just one. Add filter flags.
4102 * kbx/kbxserver.c (cmd_search): Add options --openpgp and --x509.
4103 (cmd_killkeyboxd): Do not return GPG_ERR_EOF.
4104 * kbx/frontend.c (kbxd_release_session_info): Adjust for the new
4106 (kbxd_search, kbxd_store, kbxd_delete): Ditto.
4107 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add filter flags.
4108 (run_sql_prepare): Add optional arg 'extra'. Change callers.
4109 (run_sql_bind_ntext): New.
4110 (run_sql_bind_text): Just call run_sql_bind_ntext.
4111 (run_select_statement): Add ctrl arg. Implement the filter flags.
4113 * g10/call-keyboxd.c (keydb_search): Use the --openpgp option.
4115 gpg-connect-agent: Catch signals so that SIGPIPE is ignored.
4116 + commit 3cf9bb4d73cfe78d3d48734e7c8a65d9a98112a5
4117 * dirmngr/server.c (cmd_killdirmngr): Return 0.
4118 * tools/gpg-connect-agent.c (main): Catch signals.
4120 dirmngr: Fix the pool keyserver case for a single host in the pool.
4121 + commit 5a87011c46b5b01659c3cbc3c7a04da94ae5ca9e
4122 * dirmngr/ks-engine-hkp.c (map_host): Set R_HOSTNAME also for
4123 localhost and if there is no pool.
4125 dirmngr: Align the gnutls use of CAs with the ntbtls code.
4126 + commit faabc49797df43c4904b6230f83e8c6677e88b22
4127 * dirmngr/http.c (http_session_new) <gnutls>: Use only the special
4128 pool certificate for the default keyserver.
4130 2020-09-10 NIIBE Yutaka <gniibe@fsij.org>
4132 scd: Flush KDF DO (0x00F9) when it's being set.
4133 + commit d4cb774ddd8830836c9c87a90db01f749ac8d67c
4134 * scd/app-openpgp.c (do_setattr): Call flush_cache_item always.
4136 2020-09-09 Werner Koch <wk@gnupg.org>
4138 agent: Keep some permissions of private-keys-v1.d.
4139 + commit 8ed85ef3de9cdeee86e281a8b46be1bd49a36e7a
4140 * common/sysutils.c (modestr_to_mode): Re-implement.
4141 (gnupg_chmod): Support keeping of permissions.
4143 kbx: Change X.509 S/N search definition.
4144 + commit adec6a84f6ee176764391da358ae150f92b1f1e4
4145 * kbx/keybox-search-desc.h (struct keydb_search_desc): Do not overload
4146 SNLLEN with a hex flag. Add SNHEX.
4147 * kbx/keybox-search.c (keybox_search): Adjust.
4148 * common/userids.c (classify_user_id): Adjust.
4149 * sm/keydb.c (keydb_search_desc_dump): Adjust.
4150 * g10/keydb.c (keydb_search_desc_dump): Adjust.
4152 2020-09-08 NIIBE Yutaka <gniibe@fsij.org>
4154 gpg,tools: Add handling of supported algorithms by a card.
4155 + commit 2bc1ec294422504e2d2e5d20716aba68f1c2b0d7
4156 * g10/call-agent.h (struct agent_card_info_s): Add supported_keyalgo.
4157 * g10/call-agent.c (learn_status_cb): Parse KEY-ATTR-INFO.
4158 (agent_release_card_info): Release supported_keyalgo.
4159 * tools/gpg-card.h (struct card_info_s): Add supported_keyalgo.
4160 * tools/card-call-scd.c (learn_status_cb): Parse KEY-ATTR-INFO.
4161 (release_card_info): Release supported_keyalgo.
4163 scd: Add a workaround for Yubikey.
4164 + commit 0db9c83555b4a8a0c52f96e96ec20dbfd3d75272
4165 * scd/app-openpgp.c (get_public_key): Handle wrong code for Yubikey.
4167 2020-09-07 NIIBE Yutaka <gniibe@fsij.org>
4169 scd: Fix handling 0x00FA to support OpenPGP card 3.4.
4170 + commit 270c49b8c6eaf99df7b417f9d0e45eba0acfb423
4171 * scd/app-openpgp.c (data_objects): It may be longer.
4173 2020-09-04 Werner Koch <wk@gnupg.org>
4175 gpg: Initialize a parameter to silence valgrind.
4176 + commit 65eb1569809a3c42e8afb064f6194fac2e34a03a
4177 * g10/keygen.c (read_parameter_file): Initialize nline.
4178 * g10/textfilter.c (copy_clearsig_text): Initialize bufsize.
4180 2020-09-04 NIIBE Yutaka <gniibe@fsij.org>
4182 scd: Support GET DATA response with no header for DO 0x00FA.
4183 + commit 43bbc25b0f57dec24412886ff46041e0b1f3de26
4184 * scd/app-openpgp.c (do_getattr): Support Gnuk, as well.
4186 scd: Parse "Algorithm Information" data object in scdaemon.
4187 + commit eba2563dabbb4f61537900289fbe3ae113904733
4188 * scd/app-openpgp.c (data_objects): 0x00FA for binary data.
4189 (do_getattr): Parse the data and send it in status lines.
4190 (get_algorithm_attribute_string): New.
4192 2020-09-03 Werner Koch <wk@gnupg.org>
4194 sm: New options to prepare the use of keyboxd.
4195 + commit 046f419f806036248c058c4bd44368f8596287b7
4196 * sm/Makefile.am (AM_CFLAGS): Add npth flags.
4197 (common_libs): Use npth version of the lib.
4198 (gpgsm_LDADD): Add npth libs.
4199 * sm/gpgsm.c (oUseKeyboxd, oKeyboxdProgram): New.
4200 (opts): New options --use-keyboxd and --keyboxd-program.
4202 (gpgsm_deinit_default_ctrl): New.
4204 * sm/server.c (gpgsm_server): Ditto.
4205 * sm/gpgsm.h (opt): Add fields use_keyboxd and keyboxd_program.
4206 (keydb_local_s): New type.
4207 (struct server_control_s): Add field keybd_local.
4208 * sm/keydb.c: Include assuan.h, asshelp.h, and kbx-client-util.h.
4209 (struct keydb_local_s): New.
4210 (struct keydb_handle): Add fields for keyboxd use.
4211 (gpgsm_keydb_deinit_session_data): New.
4212 (warn_version_mismatch): New.
4213 (create_new_context): New.
4214 (open_context): New.
4215 (keydb_new): Implement keyboxd mode.
4216 (keydb_release): Ditto.
4217 (keydb_get_resource_name): Ditto.
4219 * sm/keydb.c: Add stub support for all other functions.
4221 sm: Add arg ctrl to keydb_new.
4222 + commit a7d006293ec84532cc1972cd2f990198eadf1a1a
4223 * sm/keydb.c (keydb_new): Add arg and change all callers.
4225 2020-09-03 NIIBE Yutaka <gniibe@fsij.org>
4227 scd: Add handling of "Algorithm Information" DO.
4228 + commit 90d0072165cc5c6888f14462392a211de0c4b232
4229 * cd/app-openpgp.c (data_objects): Add 0x00FA.
4230 (do_getattr): Add KEY-ATTR-INFO.
4232 2020-09-02 Werner Koch <wk@gnupg.org>
4234 gpg: Fix segv importing certain keys.
4235 + commit 8ec9573e57866dda5efb4677d4454161517484bc
4236 * g10/key-check.c (key_check_all_keysigs): Initialize issuer.
4238 keyboxd: Restructure client access code.
4239 + commit 497db0b5bcd688c4e2144ba167bd2ac485069d1b
4240 * kbx/kbx-client-util.c: New.
4241 * kbx/kbx-client-util.h: New.
4242 * kbx/Makefile.am (client_sources): New.
4243 * g10/keydb.c (parse_keyblock_image): Rename to keydb_parse_keyblock
4245 * g10/call-keyboxd.c: Include kbx-client-util.h.
4246 (struct keyboxd_local_s): Remove struct datastream. Add field kcd.
4247 Remove per_session_init_done.
4248 (lock_datastream, unlock_datastream): Remove.
4249 (prepare_data_pipe, datastream_thread): Remove.
4250 (keydb_get_keyblock_do_parse): Remove.
4251 (gpg_keyboxd_deinit_session_data): Release the KCD object.
4252 (open_context): Use of kbx_client_data_new.
4253 (keydb_get_keyblock): Simplify.
4254 (keydb_search): Use kbx_client_data_cmd and _wait.
4256 keyboxd: Fix user id based queries.
4257 + commit 4d839f5a8083e1ddd4767c838f56a4079f846c6d
4258 * kbx/backend-sqlite.c (run_select_statement): Add the missing join
4259 for user id bases queries.
4261 common: New helper function gnupg_close_pipe.
4262 + commit 2042f5a4641f4e43137b7683077b4d733d216417
4263 * common/exechelp-posix.c (gnupg_close_pipe): New.
4264 * common/exechelp-w32.c (gnupg_close_pipe): New.
4266 2020-09-01 Werner Koch <wk@gnupg.org>
4268 Use only one copy of the warn_server_mismatch function.
4269 + commit 2cd8bae23d7382588cf096df3eed83e02331a2bf
4270 * common/asshelp.c (warn_server_version_mismatch): New. Actually a
4271 slightly modified version of warn_version_mismatch found in other
4273 * common/status.c (gnupg_status_strings): New.
4274 * g10/cpr.c (write_status_strings2): New.
4275 * g10/call-agent.c (warn_version_mismatch): Use the new unified
4276 warn_server_version_mismatch function.
4277 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
4278 * g10/call-keyboxd.c (warn_version_mismatch): Ditto.
4279 * sm/call-agent.c (warn_version_mismatch): Ditto.
4280 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
4281 * tools/card-call-scd.c (warn_version_mismatch): Ditto.
4283 2020-08-28 Werner Koch <wk@gnupg.org>
4285 sm: Fix a bug in the rfc2253 parser.
4286 + commit 16c1d8a14e98894408f30349cab68ff17ef6b35e
4287 * sm/certdump.c (parse_dn_part): Fix parser flaw.
4289 2020-08-28 NIIBE Yutaka <gniibe@fsij.org>
4291 common: Fix fallback handling to utf-8.
4292 + commit 393dcdd61c3b2da00a97176c647d9bd1c908ceba
4293 * common/utf8conv.c (handle_iconv_error): Set NO_TRANSLATION.
4295 2020-08-27 Werner Koch <wk@gnupg.org>
4297 scd: New option to APDU command to return the ATR as data.
4298 + commit a0a4744bd0640e587b33ec3dae819ec4054f0472
4299 * scd/command.c (cmd_apdu): Add new option --data-atr.
4300 * tools/gpg-card.c (cmd_apdu): Use that here. Also fix the --exlen
4301 option and do not print the statusword in atr mode.
4302 * tools/card-call-scd.c (scd_apdu): Detect atr mode anddon't assume a
4305 scd: Fix reading of the ATR for card type detection.
4306 + commit 95b5a852e269e602ade6a07ed468e9072c247b8c
4307 * scd/app.c (app_new_register): Do not use apdu_get_slot.
4309 dirmngr: Print the last alert message returned by NTBTLS.
4310 + commit 05358d73841149f64dc5d620f4b8855255e7f4da
4311 * dirmngr/http.c (send_request): Print the last TLS alert.
4313 2020-08-27 NIIBE Yutaka <gniibe@fsij.org>
4315 scd: Add heuristics to identify cardtype.
4316 + commit 9f148360a2bf04672b43ef7cec48e21d44b06ae1
4317 * scd/app-common.h (cardtype_t): Add CARDTYPE_GNUK and
4318 CARDTYPE_ZEITCONTROL.
4319 * scd/app.c (strcardtype): Handle CARDTYPE_GNUK and
4320 CARDTYPE_ZEITCONTROL.
4321 (app_new_register): Detect Gnuk and Zeit Control implementation
4322 by examining its ATR string.
4324 scd: Add condition for VERIFY with 0x82.
4325 + commit af189be481df02a77e088aa0a60a1fc02dfa12bf
4326 * scd/app-openpgp.c (verify_chv2): Check availability of keys in
4329 2020-08-26 Werner Koch <wk@gnupg.org>
4331 build: Silence gcc warning -Wformat-zero-length.
4332 + commit 90a87d96eaf5b97cd53cb0ee0495b646be7b84bb
4333 * configure.ac: Avoid useless gcc warning. We use an empty string
4334 quite often, for example in log_printhex.
4336 2020-08-25 Werner Koch <wk@gnupg.org>
4338 gpg: Remove left over debug output from recent change.
4339 + commit fc1a1857551c05135d54e2e620e609fda59d5bca
4340 * g10/import.c (collapse_subkeys): Remove debug out.
4342 examples: Simplify vsnfd.prf.
4343 + commit 40acc5ef3ef73494e67d88ea310503e5bf08bc36
4344 * doc/examples/vsnfd.prf: Remove default-new-key-algo option.
4346 sm: Do not require a default keyring for --gpgconf-list.
4347 + commit e7677da479c4fb5abd0339de807b27c0f487d2e0
4348 * sm/gpgsm.c (main): No default keyring for gpgconf mode.
4350 gpgconf: Silence warnings from parsing the options files.
4351 + commit ad1254b59d41e127879fc9f495d392316135b4a5
4352 * tools/gpgconf-comp.c (retrieve_options_from_program): Set verbose
4353 flag for the arg parser only in --verbose mode.
4355 agent: Allow using --gogconf-list even if HOME does not exist.
4356 + commit b17846e4fd02f65b24ada306855fb110c56c5e73
4357 * agent/gpg-agent.c (main): Do not create directories in gpgconf mode.
4359 gpgconf,w32: New debug command --show-codepages.
4360 + commit 32021dfa5bcaa056c18e4ec40fdcd0f8b7de382b
4361 * tools/gpgconf.c (aShowCodepages): New.
4362 (opts): New command --show-codepages.
4363 (main) [W32]: Implement
4365 gpg: Collapse duplicate subkeys.
4366 + commit 633c1fea5f0dc4cb270c22ee41c24e1ec0706204
4367 * g10/options.h (IMPORT_COLLAPSE_UIDS): New.
4368 (IMPORT_COLLAPSE_SUBKEYS): New.
4369 * g10/gpg.c (main): Make them the default.
4370 * g10/import.c (parse_import_options): New import options
4371 "no-collapse-uids" and "no-collapse_subkeys".
4372 (collapse_subkeys): New.
4373 (import_one_real): Collapse subkeys and allow disabling the collapsing
4374 using the new options.
4375 (read_key_from_file_or_buffer): Always collapse subkeys.
4376 * g10/keyedit.c (fix_keyblock): Call collapse_subkeys.
4378 2020-08-21 Werner Koch <wk@gnupg.org>
4380 gpgtar,w32: Handle Unicode file names.
4381 + commit 34e7703a962809921e83770f20f3eb66599265d1
4382 * tools/gpgtar.c (oUtf8Strings): New.
4383 (opts): Add option --utf8-strings.
4384 (parse_arguments): Set option.
4385 * tools/gpgtar.h (opt): Add field utf8strings.
4386 * tools/gpgtar-create.c (name_to_utf8): New.
4387 (fillup_entry_w32): Use that.
4388 (scan_directory): Ditto.
4389 (scan_directory) [W32]: Convert file name to utf8.
4390 (gpgtar_create): Convert pattern.
4392 common: Use gpgrt functions for mkdir and chdir.
4393 + commit eec70e539e44c288068f26f190d52a5718fd3a10
4394 * common/sysutils.c (gnupg_mkdir): Divert to gpgrt_mkdir.
4395 (gnupg_chdir): Divert to gpgrt_chdir
4397 common,w32: Do not assume the ANSI code during string conversion.
4398 + commit 5305ce17ff7a68ecc88c5ae8c4bec5897df6322f
4399 * common/utf8conv.c (get_w32_codepage): New.
4400 (wchar_to_native): Use instead oc CP_ACP.
4401 (native_to_wchar): Ditto.
4403 common: Strip trailing CR,LF from w32_strerror.
4404 + commit 33fd55ca6f3efc50c260469179788e9f725ddc58
4405 * common/stringhelp.c (w32_strerror): Strip trailing CR,LF.
4406 * common/iobuf.c (iobuf_get_filelength): Use -1 and not 0 for the
4407 arg to w32_strerror.
4409 2020-08-20 Werner Koch <wk@gnupg.org>
4411 gpgtar: Make --files-from and --null work as described.
4412 + commit e276f63e4a80e8d1cb1ba5621cedaeb0ccda956d
4413 * tools/gpgtar-create.c (gpgtar_create): Add args files_from and
4414 null_names. Improve reading from a file.
4415 * tools/gpgtar.c: Make global vars static.
4416 (main): Remove tests for --files-from and --null option combinations.
4417 Pass option variables to gpgtar_create.
4419 build: New configure option --disable-tests.
4420 + commit 32aac55875f324f8c3d85dad8483604eae65e3e8
4421 * configure.ac: Add option --disable-tests. Print warnings in the
4423 (DISABLE_TESTS): New am_conditional.
4425 gpg: Fix regression for non-default --passphrase-repeat option.
4426 + commit b8c4dd902df34faa4d23efb2bb4ac222c8bbdbdb
4427 * agent/command.c (cmd_get_passphrase): Take care of --repeat with
4430 2020-08-19 Werner Koch <wk@gnupg.org>
4432 gpg,gpgsm: Record the creation time of a private key.
4433 + commit 4031c42bfd0135874a5b362df175de93a19f1b51
4434 * sm/call-agent.c (gpgsm_agent_genkey): Pass --timestamp option.
4435 (gpgsm_agent_import_key): Ditto.
4436 * g10/call-agent.c (agent_genkey): Add arg timestamp and pass it on.
4437 (agent_import_key): Ditto.
4438 * g10/import.c (transfer_secret_keys): Pass the creation date to the
4440 * g10/keygen.c (common_gen): Ditto.
4442 2020-08-19 NIIBE Yutaka <gniibe@fsij.org>
4444 gpg: Fix condition of string_to_aead_algo.
4445 + commit 1d66b518ca83e8d315283682b1e504f1e171a0b1
4446 * g10/misc.c (string_to_aead_algo): Only compare if not NULL.
4448 dns: Fix memory use-after-free.
4449 + commit cc0d53905ce9306b51bace2682ae3d1d122c7881
4450 * dirmngr/dns.c (dns_res_stub): Fix RESCONF usage.
4452 common: Fix iobuf.c.
4453 + commit f58d441bee7e93e6344f833acc1412b3be2f6818
4454 * common/iobuf.c (iobuf_cancel): Initialize DUMMY.
4455 (do_iobuf_fdopen): Initialize LEN.
4456 (iobuf_read_line): Fix the loop condition.
4458 Silence compiler warnings.
4459 + commit f3e424d4e7273e60e69747ca4936149af7b6482a
4460 * common/openpgp-oid.c (map_openpgp_pk_to_gcry): Use cast for enum
4462 * dirmngr/dns-stuff.c (get_dns_srv): Use explicit conversion from
4464 * sm/gpgsm.c (parse_keyserver_line): Initialize ERR.
4466 scd: Fix possible uninitialized variables.
4467 + commit 4fa0a65676a29cb53ee242caf13c393f7573c9a3
4468 * scd/app-openpgp.c (do_change_pin): Initialize resultlen2.
4469 (do_change_pin): Don't call wipe_and_free on the error path.
4470 Initialize bufferlen2.
4472 2020-08-17 Werner Koch <wk@gnupg.org>
4474 agent: Allow to pass a timestamp to genkey and import.
4475 + commit 0da923a1240ac78d60c92cdd8488c4e405c3243b
4476 * agent/command.c (cmd_genkey): Add option --timestamp.
4477 (cmd_import_key): Ditto.
4478 * agent/genkey.c (store_key): Add arg timestamp and change callers.
4479 (agent_genkey): Ditto.
4480 * agent/findkey.c (write_extended_private_key): Add args timestamp and
4481 new key to write a Created line.
4482 (agent_write_private_key): Add arg timestamp.
4483 (agent_write_shadow_key): Ditto.
4484 agent/protect-tool.c (agent_write_private_key): Ditto as dummy arg.
4486 2020-08-14 Werner Koch <wk@gnupg.org>
4488 Add --chuid to gpg, gpg-card, and gpg-connect-agent.
4489 + commit 6bcb609e1b2a507caa2e1a078178709d808b590b
4490 * g10/gpg.c (oChUid): New.
4491 (opts): Add --chuid.
4492 (main): Implement --chuid. Delay setting of homedir until the new
4494 * sm/gpgsm.c (main): Delay setting of homedir until the new chuid is
4496 * tools/gpg-card.c (oChUid): New.
4497 (opts): Add --chuid.
4498 (changeuser): New helper var.
4499 (main): Implement --chuid.
4500 * tools/gpg-connect-agent.c (oChUid): New.
4501 (opts): Add --chuid.
4502 (main): Implement --chuid.
4504 2020-08-13 Werner Koch <wk@gnupg.org>
4506 gpg: Ignore personal_digest_prefs for ECDSA keys.
4507 + commit 53d84f98157070f24dc861f1a75980474d074ddb
4508 * g10/sign.c (hash_for): Simplify hash algo selection for ECDSA.
4510 2020-08-12 Werner Koch <wk@gnupg.org>
4512 scd: Log info about CCIDs with permission problems.
4513 + commit 2af884c64354182b1903d7a77df07e877f5ed7ba
4514 * scd/apdu.c (open_ccid_reader): Add arg r_cciderr.
4515 (apdu_open_reader): Print a note on EPERM of the USB device.
4517 scd: Map some error codes from libusb to ccid-driver error codes.
4518 + commit 9a8d7e41bba1926158a21ebdda542241493ef983
4519 * scd/ccid-driver.h (CCID_DRIVER_ERR_USB_*): New error codes.
4520 * scd/apdu.h: New SW_HOST error codes.
4521 * scd/apdu.c (host_sw_string): Print them
4522 * scd/ccid-driver.c (map_libusb_error): New.
4523 (ccid_open_usb_reader, bulk_in, abort_cmd): Map libusb error codes.
4524 * scd/iso7816.c (map_sw): Map new codes to gpg-error.
4526 common: Pass the WAYLAND_DISPLAY envvar along.
4527 + commit 3944430ffeaa032719fd82f8eaa118b3f326b8ed
4528 * common/session-env.c (stdenvnames): Add WAYLAND_DISPLAY.
4530 2020-08-10 Werner Koch <wk@gnupg.org>
4532 scd:piv: Allow signing using PSS.
4533 + commit cbf203801e021e0f4d4143ecc92296ae7d0f0dd7
4534 * scd/app-piv.c (do_sign): Allow for PSS.
4536 agent: Add option --pss to pksign to be used by smartcards.
4537 + commit bb096905b9ee1f5175efee1ab6c98045a26a2678
4538 * agent/command.c (cmd_sethash): Add option --pss and allow for
4540 * agent/agent.h (struct server_control_s): Add digest.is_pss and
4542 * agent/pksign.c (agent_pksign_do): Allow for PSS with cards.
4543 * scd/command.c (cmd_pksign): Add for --hash=none.
4545 2020-08-07 NIIBE Yutaka <gniibe@fsij.org>
4547 gpg: Fix trustdb for v5key.
4548 + commit 373c975859a55f942276d6078f27ee33570bf2d5
4549 * g10/keydb.h (fpr20_from_pk): New.
4550 * g10/keyid.c (fpr20_from_pk): New.
4551 * g10/tdbio.c (tdbio_search_trust_byfpr): Use fpr20_from_pk.
4552 * g10/trustdb.c (keyid_from_fpr20): New.
4553 (verify_own_keys): Use keyid_from_fpr20.
4554 (tdb_update_ownertrust): Use fpr20_from_pk.
4555 (update_min_ownertrust): Likewise.
4556 (update_validity): Likewise.
4558 gpg: Fix short key ID for v5key.
4559 + commit 20982bbd7539d2032f4d6249a2654c245445521d
4560 * g10/keyid.c (keyid_from_pk): Return keyid[0] for v5key.
4561 * g10/keyring.c (keyring_search): Handle short key ID for v5key.
4563 2020-08-06 Werner Koch <wk@gnupg.org>
4565 gpgsm: New option --chuid.
4566 + commit 646a30fd394a739ef653556b1a7b2eeebda95951
4567 * sm/gpgsm.c (oChUid, opts): New option --chuid.
4568 (main): Implement option.
4570 gpgconf: New option --chuid.
4571 + commit d10f45184c4482036c41f4818c84c0725a0c2c94
4572 * tools/gpgconf.c (oChUid, opts): New option --chuid.
4575 common: New helper function gnupg_chuid.
4576 + commit 8ff00ef0de871ca43076b00df4871c3165ced001
4577 * common/sysutils.c (try_set_envvar): New.
4580 2020-08-06 NIIBE Yutaka <gniibe@fsij.org>
4582 kbx: Support v5key for short kid and long kid.
4583 + commit df531848a9618131921d584baba81c128f94de68
4584 * kbx/keybox-search.c (has_short_kid): Support v5key.
4585 (has_long_kid): Likewise.
4587 2020-08-05 Werner Koch <wk@gnupg.org>
4589 gpg: Add level 16 to --gen-random.
4590 + commit d847f0651ab4304129145b55353501636b4e4728
4591 * g10/gpg.c (main): Add that hack.
4593 2020-08-04 Werner Koch <wk@gnupg.org>
4595 sm: Also show the SHA-256 fingerprint.
4596 + commit e7d70923901eeb6a2c26445aee9db7e78f6f7f3a
4597 * sm/keylist.c (list_cert_colon): Emit a new "fp2" record.
4598 (list_cert_raw): Print the SHA2 fingerprint.
4599 (list_cert_std): Ditto.
4601 2020-08-03 NIIBE Yutaka <gniibe@fsij.org>
4603 w32: Fix cast from intptr_t of _get_osfhandle.
4604 + commit 8e04cf969e95ccaa31bbaa7333938af1ea7476c6
4605 * common/exectool.c (gnupg_exec_tool_stream): Cast to unsigned long.
4607 2020-07-31 NIIBE Yutaka <gniibe@fsij.org>
4609 agent: Fix coercion for pinentry_pid handling.
4610 + commit da3a4c54a8ce8a7dc442c70bda9b7eda22d43e57
4611 * agent/call-pinentry.c (start_pinentry): Don't use pid_t.
4613 scd: Silence compiler warning.
4614 + commit 2a34a2afea5fcb5f4ed206afa110650db3dd7ef0
4615 * scd/app-openpgp.c (build_ecc_privkey_template): Fix allocation size.
4617 2020-07-30 NIIBE Yutaka <gniibe@fsij.org>
4619 w32: Add NETLIBS for sm/t-minip12.
4620 + commit c1f81eb9fc2544a417ebc2ce19b04541525da684
4621 * sm/Makefile.am (t_minip12_LDADD): Add NETLIBS.
4623 w32: More adding NETLIBS.
4624 + commit 5fa4427419c875e46d051ae6ed376d5ad6037401
4625 * common/Makefile.am (t_common_ldadd): Add $(NETLIBS).
4627 w32: Add link to $(NETLIB) for -lws2_32.
4628 + commit d69f5570ee5e1b099e39fdf64e18add23ff5c815
4629 * dirmngr/Makefile.am (dirmngr_LDADD): Add $(NETLIBS).
4630 * sm/Makefile.am (gpgsm_LDADD): Ditto.
4631 * tools/Makefile.am (gpg_wks_client_LDADD): Ditto.
4633 2020-07-27 NIIBE Yutaka <gniibe@fsij.org>
4635 kbx: Fix short KID and long KID handling for FPR32.
4636 + commit fa4a2bd7a1ba8d4bda5f9cec0826104f50142d4f
4637 * kbx/keybox-search.c (blob_cmp_fpr_part): For FPR32, it's
4638 the first part in the fingerprint.
4640 2020-07-17 NIIBE Yutaka <gniibe@fsij.org>
4642 scd: Fix closing reader and reeleasing context in PC/SC.
4643 + commit daa2cec6a543f06a2e408d97a80a5041027f16a9
4644 * scd/apdu.c (close_pcsc_reader): Unlock the reader_table_lock.
4645 (apdu_dev_list_finish): Release the context when no readers.
4647 Use gpgrt's new option parser for symcryptrun.
4648 + commit f484ac2b2d2ea176db1a70d961a778180147d9b2
4649 * tools/symcryptrun.c: Follow API change of the new option parser.
4651 scd: PC/SC: Don't release the context when it's in use.
4652 + commit 46d185f60397f68830bfdfb99627b29aea5016f1
4653 * scd/apdu.c (close_pcsc_reader): Check if it's not in the loop.
4655 gpg-card: Fix type of historyname.
4656 + commit 43000b0434b47a72608b41d67054ba42db21b699
4657 * tools/gpg-card.c (interactive_loop): Remove const qualifier.
4659 2020-07-16 Werner Koch <wk@gnupg.org>
4661 gpg: Do not close stdout after --export-ssh-key.
4662 + commit 5c514a274ca8ac6be875818237e2e1bbc0c6a2a5
4663 * g10/export.c (export_ssh_key): Do not close stdout.
4665 2020-07-16 NIIBE Yutaka <gniibe@fsij.org>
4667 common: Avoid undefined behavior of left shift operator.
4668 + commit 8abf065307ff4a7ea873fe59f76173bf17dac241
4669 * common/iobuf.c (block_filter): Handle an error earlier.
4670 Make sure it's unsigned.
4672 2020-07-15 NIIBE Yutaka <gniibe@fsij.org>
4674 regexp: Import change from JimTcl.
4675 + commit 91cb46d948db234be1ea8092f5db9e14294f1b79
4676 * regexp/jimregexp.h, regexp/jimregexp.c: Fix from JimTcl.
4678 2020-07-14 Werner Koch <wk@gnupg.org>
4680 agent: Fix regression with --newsymkey in loopback mode.
4681 + commit 0a6af6dc12998ef7b19673ad05d11e82f826de9d
4682 * agent/command.c (cmd_get_passphrase): Never repeat in loopback mode;
4683 same as with !OPT_NEWSYMKEY.
4685 2020-07-13 NIIBE Yutaka <gniibe@fsij.org>
4687 dirmngr: Handle EAFNOSUPPORT at connect_server.
4688 + commit 109d16e8f644da97ed9c00e6f9010a53097f587a
4689 * dirmngr/http.c (connect_server): Skip server with EAFNOSUPPORT.
4691 2020-07-10 NIIBE Yutaka <gniibe@fsij.org>
4693 gpg: For decryption, support use of a key with no 'encrypt' usage.
4694 + commit 31ae0718ba10c3b1b670ba6131b4995de24aa7a1
4695 * g10/pubkey-enc.c (get_session_key): Don't skip at no PUBKEY_USAGE_ENC.
4696 Emit information the key has no 'encrypt' usage.
4698 2020-07-08 Werner Koch <wk@gnupg.org>
4700 Do not use the pinentry's qualitybar.
4701 + commit 999d25d47d45a0f594c84d51c041da0b24d68c5d
4702 * agent/genkey.c (agent_ask_new_passphrase): No qualitybar.
4703 * g10/call-agent.c (agent_get_passphrase): Ditto.
4704 * sm/call-agent.c (gpgsm_agent_ask_passphrase): Ditto.
4706 gpg: Use integrated passphrase repeat entry also for -c.
4707 + commit a6a4bbf6debd925a23c22eea86a562f061fdfe6c
4708 * g10/call-agent.c (agent_get_passphrase): Add arg newsymkey.
4709 * g10/passphrase.c (passphrase_get): Add arg newsymkey.
4710 (passphrase_to_dek): Pass it on.
4712 agent: New option --newsymkey for GET_PASSPHRASE.
4713 + commit eace4bbe1ded8b01f9ad52ebc1871f2fd13c3a08
4714 * agent/call-pinentry.c (agent_get_passphrase): Add arg pininfo.
4715 * agent/genkey.c (check_passphrase_constraints): New arg no_empty.
4716 * agent/command.c (reenter_passphrase_cmp_cb): New.
4717 (cmd_get_passphrase): Add option --newsymkey.
4719 2020-07-07 Werner Koch <wk@gnupg.org>
4721 gpg: Fix flaw in symmetric algorithm selection in mixed mode.
4722 + commit 6864bba78e76a1ff72aec140ae9f4e752454c463
4723 * g10/encrypt.c (setup_symkey): Use default_cipher_algo function
4724 instead of the fallback s2k_cipher_algo. Fix error code.
4725 (encrypt_simple): Use setup_symkey.
4727 2020-07-03 Werner Koch <wk@gnupg.org>
4729 sm: Exclude rsaPSS from de-vs compliance mode.
4730 + commit 969abcf40cdfc65f3ee859c5e62889e1a8ccde91
4731 * common/compliance.h (PK_ALGO_FLAG_RSAPSS): New.
4732 * common/compliance.c (gnupg_pk_is_compliant): Add arg alog_flags and
4733 test rsaPSS. Adjust all callers.
4734 (gnupg_pk_is_allowed): Ditto.
4735 * sm/misc.c (gpgsm_ksba_cms_get_sig_val): New wrapper function.
4736 (gpgsm_get_hash_algo_from_sigval): New.
4737 * sm/certcheck.c (gpgsm_check_cms_signature): Change type of sigval
4738 arg. Add arg pkalgoflags. Use the PK_ALGO_FLAG_RSAPSS.
4739 * sm/verify.c (gpgsm_verify): Use the new wrapper and new fucntion to
4740 also get the algo flags. Pass algo flags along.
4742 2020-07-02 Werner Koch <wk@gnupg.org>
4744 scd:nks: Implement writecert for the Signature card v2.
4745 + commit c1663c690b29d2dea8bc782c42de5eca08a24cc9
4746 * scd/iso7816.c (CMD_UPDATE_BINARY): New.
4747 (iso7816_update_binary): New.
4748 * scd/app-nks.c (do_deinit): Factor some code out to...
4749 (flush_fid_cache): new.
4750 (do_writecert): New.
4751 (app_select_nks): Register new handler.
4753 dirmngr: Silence annoying warning for missing default ldap server file.
4754 + commit f55a05a69ba07eb2ed354a9275e71e94c5e362aa
4755 * dirmngr/dirmngr.c (parse_ldapserver_file): Add arg ignore_enoent.
4756 (main): Use that arg for the default file.
4758 Support a history file in gpg-card and gpg-connect-agent.
4759 + commit d70b8769c888f42896ae3ef4972bf82e9b5a0c32
4760 * common/gpgrlhelp.c (read_write_history): New.
4761 (gnupg_rl_initialize): Register new function.
4762 * common/ttyio.c (my_rl_rw_history): New var.
4763 (tty_private_set_rl_hooks): Add arg read_write_history.
4764 (tty_read_history): New.
4765 (tty_write_history): New.
4766 * tools/gpg-card.c (HISTORYNAME): New.
4767 (oNoHistory): New enum value.
4768 (opts): New option --no-history.
4770 (cmds): New command "history".
4771 (interactive_loop): Read and save the history.
4772 * tools/gpg-connect-agent.c (HISTORYNAME): New.
4773 (opts): New option --no-history.
4774 (main): Read and save the history. New command /history.
4776 2020-06-30 Werner Koch <wk@gnupg.org>
4778 scd:nks: Fix certificate read problem with TCOS signature card v2.
4779 + commit 07aef873ebc77241e9a2be225537319f6fc15a41
4780 * scd/app-nks.c (filelist): Add a dedicated key entry for ESIGN.
4781 (do_readcert): Test for the app_id.
4783 scd: Change how the removed card flag is set.
4784 + commit 58b091df831f61c8d3551114f2480d36e73de2da
4785 * scd/command.c (cmd_serialno): Set/clear card removed flags for all
4786 connections using the current card.
4788 card: Better detect removed cards. Add TCOS PIN menu.
4789 + commit fb10b6cba43f4ed8675093ac25f461de4dacdce9
4790 * tools/card-call-scd.c (scd_change_pin): Add arg 'nullpin'.
4791 * tools/gpg-card.h (struct card_info_s): Add field 'card_removed'.
4792 * tools/gpg-card.c (fixup_scd_errors): New.
4793 (maybe_set_card_removed): New.
4794 (list_one_kinfo): Change type of first arg to get access to INFO. Set
4796 (list_all_kinfo): Improve label alignment.
4797 (cmd_list): Check that the current card is still available.
4798 (cmd_passwd): Add option --nullpin and menu to chnage TCOS PINs.
4799 (dispatch_command): Handle card_removed flag.
4800 (interactive_loop): Ditto.
4802 2020-06-30 NIIBE Yutaka <gniibe@fsij.org>
4804 ecc: Support Ed448/X448 key generation.
4805 + commit 45398518fb76e2b859d2d48cf4cdbc11fbbda4fa
4806 * g10/keygen.c (ask_curve): Support Ed448/X448 keys.
4807 (generate_keypair): Support switch to X448 key.
4809 2020-06-29 Werner Koch <wk@gnupg.org>
4811 scd: Shorten cardio debug output for all zeroes.
4812 + commit 9b6f574928546e6905a92c3e74d72478f1585c66
4813 * scd/apdu.c (all_zero_p): New.
4816 sm: Fix regression in Friday's commit.
4817 + commit 4f1c257c03667497d642930884b65c4f2245adbd
4818 * sm/gpgsm.c (main): Set ERR also for encrypt.
4820 2020-06-26 Werner Koch <wk@gnupg.org>
4822 sm: Try not to output a partial new message after an error.
4823 + commit ccbb0cfeefed096a9841b6557d10eef12d55b721
4824 * sm/gpgsm.c (main) <aSign,aEncr>: Uses gpgrt_fcancel on error.
4826 sm: Print the serial number of a cert also in decimal.
4827 + commit 208a90197317fb9746ecf54a1d14acbeeddfbd18
4828 * sm/certdump.c: Include membuf.h.
4829 (gpgsm_print_serial_decimal): New.
4830 * sm/keylist.c (list_cert_raw): Print s/n also in decimal
4831 (list_cert_std): Ditto.
4833 2020-06-25 Werner Koch <wk@gnupg.org>
4835 scd:nks: Fix remaining tries warning in --reset mode.
4836 + commit 2429e8559844e27de478d7e90834a714b3748834
4837 * scd/app-nks.c (do_change_pin): Chnage computaion of 'remaining'.
4839 card: Add password change menu for NKS cards.
4840 + commit 28c069db3bb5a1065de69bcc0435c8415df87e5b
4841 * tools/gpg-card.c (cmd_passwd): Add menu for NKS. Add option
4844 sm: Fix support verification of nistp521 signatures.
4845 + commit 17a25c14f1ed1199898ad618c17204eafd5524c1
4846 * sm/certcheck.c (do_encode_md): Fix obvious bug.
4848 2020-06-24 James Bottomley <James.Bottomley@HansenPartnership.com>
4849 Werner Koch <wk@gnupg.org>
4851 agent: separate out daemon handling infrastructure for reuse.
4852 + commit f541e1d95a91d4764c7ed0df10c293bfd493dd41
4853 * agent/call-scd.c: Factor re-usable code out to ...
4854 * agent/call-daemon.c: new. Store infos in an array to allow for
4855 other backend daemons.
4856 * agent/Makefile.am (gpg_agent_SOURCES): Add new file.
4857 * agent/agent.h: Include assuan.h.
4858 (enum daemon_type): New.
4859 (opt): Replace scdaemon_program by daemon_program array. Replace
4860 scd_local by a array d_local. Change users accordingly.
4862 2020-06-24 Werner Koch <wk@gnupg.org>
4864 gpgconf: Fix regression in --launch and --kill from March.
4865 + commit 2d8f060679bafed27909a5ad54b7f74a9f8dd51b
4866 * tools/gpgconf.h (gc_component_id_t): Align order with gc_component
4869 2020-06-24 NIIBE Yutaka <gniibe@fsij.org>
4871 gpg,agent: Support Ed448 signing.
4872 + commit a763bb2580b0d586a80b8ccd3654f41e49604f4f
4873 * agent/pksign.c (do_encode_eddsa): First argument is NBITs,
4874 so that it can support Ed448, as well as Ed25519.
4875 (agent_pksign_do): Follow the change.
4876 * agent/sexp-secret.c (fixup_when_ecc_private_key): No fix-up needed
4877 for Ed448, it's only for classic curves.
4878 * common/openpgp-oid.c (oidtable): Add Ed448.
4879 * common/sexputil.c (get_pk_algo_from_key): Ed448 is only for EdDSA.
4880 * g10/export.c (match_curve_skey_pk): Ed448 is for EdDSA.
4881 * g10/keygen.c (gen_ecc): Support Ed448 with the name of "ed448".
4882 (ask_algo, parse_key_parameter_part): Handle "ed448".
4883 * g10/pkglue.c (pk_verify): Support Ed448.
4884 (pk_check_secret_key): Support Ed448.
4885 * g10/sign.c (hash_for): Defaults to SHA512 for Ed448.
4886 (make_keysig_packet): Likewise.
4888 2020-06-23 NIIBE Yutaka <gniibe@fsij.org>
4890 ecc: Use "cv448" to specify key using X448.
4891 + commit c94eea15d6847c08d2d9ff1c7608953f25fea67d
4892 * common/openpgp-oid.c (oidtable): Use "cv448".
4893 (oid_cv448): Rename from oid_x448.
4894 (openpgp_oidbuf_is_cv448, openpgp_oid_is_cv448): Likewise.
4895 * common/util.h (openpgp_oid_is_cv448): Follow the change.
4896 * g10/ecdh.c (pk_ecdh_generate_ephemeral_key): Likewise.
4897 * g10/keygen.c (gen_ecc, ask_algo): Use "cv448".
4898 (parse_key_parameter_part): Likewise.
4899 * g10/pkglue.c (get_data_from_sexp): Fix for debug output.
4901 2020-06-19 NIIBE Yutaka <gniibe@fsij.org>
4903 agent: Use get_pk_algo_from_key.
4904 + commit 4bdade5b0bea1816a2479c73abc71b41f09ba727
4905 * agent/findkey.c (key_parms_from_sexp, is_eddsa): Remove.
4906 (agent_pk_get_algo): Remove.
4907 * agent/pksign.c (agent_pksign_do): Use get_pk_algo_from_key.
4909 agent: Clean up for getting info from SEXP.
4910 + commit d2e4aa5ee4c5128547cc45c2e1ac35fdc5c00f45
4911 * agent/agent.h (agent_is_dsa_key, agent_is_eddsa_key): Remove.
4912 (agent_pk_get_algo): New.
4913 * agent/findkey.c (agent_pk_get_algo): New.
4914 * agent/pksign.c (do_encode_dsa): Use generic GCRY_PK_ECC.
4915 (agent_pksign_do): Use agent_pk_get_algo.
4917 agent: A little clean up.
4918 + commit abc6a3100a33122ba3673b578a2b364a6b45d252
4919 * agent/findkey.c (agent_is_eddsa_key): Remove dead case.
4921 2020-06-17 Werner Koch <wk@gnupg.org>
4923 agent: Fix regression in 'd' fixup code for shadowed keys.
4924 + commit d1e1c622d55e783ae5bf601249598f0da8d5e688
4925 * agent/sexp-secret.c (fixup_when_ecc_private_key): Ignore shadowed
4928 sm: Support verification of nistp521 signatures.
4929 + commit 596212e71abf33b30608348b782c093dace83110
4930 * sm/certcheck.c (do_encode_md): Take care of nistp521.
4932 2020-06-09 Werner Koch <wk@gnupg.org>
4934 gpg: Fix for new SOS changes when used with Libgcrypt < 1.8.6.
4935 + commit eeb599c9e261586a664430058b7cfad7025a503f
4936 * g10/free-packet.c (is_mpi_copy_broken): New.
4937 (my_mpi_copy): Mix gcry_mpi_copy.
4939 gpg: Extend the TRUST_ status lines.
4940 + commit 96f1ed5468002330ea21d9ad32ac3b464bb40b1a
4941 * g10/pkclist.c (write_trust_status): Add arg mbox.
4942 (check_signatures_trust): Appenmd mbox to the status lines.
4944 2020-06-09 NIIBE Yutaka <gniibe@fsij.org>
4946 gpg: Use bytes for ECDH.
4947 + commit da5e0bc31b4c6f16ed5ff9b35063f3b03eb7ff16
4948 * g10/ecdh.c (extract_secret_x): Use byte * instead of MPI.
4949 (prepare_ecdh_with_shared_point): Use char * instead of MPI.
4950 (pk_ecdh_encrypt_with_shared_point): Likewise.
4951 (pk_ecdh_decrypt): Likewise.
4952 * g10/pkglue.h (pk_ecdh_encrypt_with_shared_point, pk_ecdh_decrypt):
4954 * g10/pkglue.c (get_data_from_sexp): New.
4955 (pk_encrypt): Use get_data_from_sexp instead of get_mpi_from_sexp.
4956 Follow the change of pk_ecdh_encrypt_with_shared_point.
4957 * g10/pubkey-enc.c (get_it): Follow the change of pk_ecdh_decrypt.
4959 gpg: Add X448 support.
4960 + commit e9760eb9e70b9804c988dafe01851f6600869d9e
4961 * common/openpgp-oid.c (oidtable): Add X448.
4962 (oid_x448,openpgp_oidbuf_is_x448,openpgp_oid_is_x448): New.
4963 * common/util.h (openpgp_oid_is_x448): New.
4964 * g10/ecdh.c (gen_k): Add handling of opaque MPI and support
4966 (pk_ecdh_generate_ephemeral_key): X448 requires opaque MPI.
4967 * g10/keygen.c (gen_ecc): Add support for X448.
4968 (ask_algo, parse_key_parameter_part): Likewise.
4970 gpg,ecc: Handle external representation as SOS with opaque MPI.
4971 + commit f5bc94555458123f93d8b07816a68fb7485421e1
4972 * g10/pkglue.h (sexp_extract_param_sos): New.
4973 * g10/build-packet.c (sos_write): New.
4974 (do_key, do_pubkey_enc, do_signature): Use sos_write for ECC.
4975 * g10/export.c (cleartext_secret_key_to_openpgp): Use
4976 sexp_extract_param_sos.
4977 (transfer_format_to_openpgp): Use opaque MPI for ECC.
4978 * g10/keygen.c (ecckey_from_sexp): Use sexp_extract_param_sos.
4979 * g10/keyid.c (hash_public_key): Handle opaque MPI for SOS.
4980 * g10/parse-packet.c (sos_read): New.
4981 (parse_pubkeyenc,parse_signature,parse_key): Use sos_read for ECC.
4982 * g10/pkglue.c (sexp_extract_param_sos): New.
4983 (pk_verify): Handle opaque MPI for SOS.
4984 (pk_encrypt): Use sexp_extract_param_sos.
4985 * g10/seskey.c (encode_session_key): Use opaque MPI.
4986 * g10/sign.c (do_sign): Use sexp_extract_param_sos.
4988 2020-06-08 Werner Koch <wk@gnupg.org>
4990 gpg: If possible TRUST values now depend on signer's UID or --sender.
4991 + commit 5c2080f4670a768787f5cb4ed5c32e0946837883
4992 * g10/mainproc.c (check_sig_and_print): Add failsafe check for PK.
4993 Pass KEYBLOCK down do check_signatures_trust. Protect existsing error
4994 ocde in case the signature expired.
4995 * g10/pkclist.c (is_in_sender_list): New.
4996 (check_signatures_trust): Add args keyblock and pk. Add new uid based
4998 * g10/test-stubs.c, g10/gpgv.c: Adjust stubs.
5000 2020-06-08 NIIBE Yutaka <gniibe@fsij.org>
5002 agent: Fix the condition to detect leading 0x00 problem.
5003 + commit e2e5736842299ebfb8263b674d5cbfb9b784d70f
5004 * agent/sexp-secret.c (fixup_when_ecc_private_key): Use curve name
5005 to identify the issue.
5007 2020-06-05 NIIBE Yutaka <gniibe@fsij.org>
5009 agent,ecc: Use of opaque MPI for ECC, fixup 'd'.
5010 + commit 47c1c329ed823a562185f86e98ac903605104f11
5011 * agent/Makefile.am: Add sexp-secret.c.
5012 * agent/agent.h: New function declarations.
5013 * agent/sexp-secret.c: New.
5014 * agent/findkey.c (agent_key_from_file): Use sexp_sscan_private_key.
5015 * agent/protect-tool.c (read_and_unprotect): Fix up private part,
5016 calling fixup_when_ecc_private_key.
5018 agent: For ECC, use opaque MPI for key representation.
5019 + commit 2b118516240b4bddd34c68c23a99bea56682a509
5020 * agent/cvt-openpgp.c (scan_pgp_format): New with SOS support.
5021 (do_unprotect): Use scan_pgp_format, handle opaque MPI for ECC.
5022 (convert_from_openpgp_main): Use opaque MPI for ECC.
5023 (apply_protection): Set GCRYMPI_FLAG_USER1 flag for encrypted secret.
5024 (extract_private_key): Use "/qd" for ECC, opaque MPI.
5026 agent,ssh: Tighten condition for EdDSA.
5027 + commit a7d46c78e242e72f6ff681f6fe56ffc4dcb74a18
5028 * agent/command-ssh.c (ssh_key_to_blob): Prepare for non-prefixed
5029 point representation of EdDSA.
5031 agent: Remove duplicated code for EdDSA.
5032 + commit 2e988546c59ba25bf9e63521112c0c3c73b012f1
5033 * agent/command-ssh.c (ssh_receive_key): Curve is "Ed25519".
5034 Use sexp_key_construct always.
5036 agent: Clean up do_encode_md.
5037 + commit 4c0b12f817f15862111a01493aaadce943410ee9
5038 * agent/pksign.c (do_encode_md): Directly use sexp_build.
5040 2020-06-03 Werner Koch <wk@gnupg.org>
5042 doc: Minor enhancement for reproducibility.
5043 + commit 074ab108e768b2f946d789c1f3a7f14a65e07c52
5044 * doc/Makefile.am (defsincdate): In no repo mode and with
5045 SOURCE_DATE_EPOCH set, use that instead of blanking the date.
5047 card: Improve openpgp key writing in "writecert".
5048 + commit 4f6e0e12cbd3444b9e6ea5e4b92ea5b3072a3e17
5049 * tools/card-keys.c (struct export_key_status_parm_s): New.
5050 (export_key_status_cb): New.
5051 (get_minimal_openpgp_key): New.
5052 * tools/gpg-card.c (cmd_writecert): Allow writing a keyblock directly
5053 from an existing gpg key.
5055 gpg: Improve generation of keys stored on card (brainpool,cv25519).
5056 + commit 48251cf9a7d3776667342f4705ac3de89bd75534
5057 * g10/keygen.c (ask_key_flags_with_mask): Allow more than ECDH for
5059 (ask_algo): Tweak mapping of ECC to OpenPGP algos
5060 (parse_key_parameter_part): Ditto.
5061 (generate_subkeypair): Create the subkey with the time stored on the
5064 sm: Fix recently introduced regression in CSR creation.
5065 + commit 7558128e16d7fc20b9c40bf7e150ca08bbb4467f
5066 * sm/certreqgen.c (create_request): Also set SIGKEYLEN.
5068 2020-05-29 NIIBE Yutaka <gniibe@fsij.org>
5070 scd: Fix condition for C5 data object for newer Yubikey.
5071 + commit f3df8dbb696fed192501fa7f741c2e0e0936a3d5
5072 * scd/app-openpgp.c (compare_fingerprint): Relax the condition.
5074 2020-05-28 Werner Koch <wk@gnupg.org>
5076 card: Allow to store and retrieve keyblocks in OpenPGP cards.
5077 + commit 2d9592e78f4978307e378e07d6c170a28000a494
5078 * tools/gpg-card.c: Include tlv.h.
5079 (cmd_writecert): Add option --openpgp.
5080 (cmd_readcert): Ditto.
5082 card: New command "apdu"
5083 + commit ed0759f39be04dd6108237f5ed03c7cfd1cb4642
5084 * tools/card-call-scd.c (scd_apdu): Add optional arg 'options'.
5085 * tools/gpg-card.c (cmd_apdu): New.
5086 (enum cmdids): Add cmdAPDU.
5087 (dispatch_command): Add command "apdu".
5088 (interactive_loop): Ditto.
5090 2020-05-27 Werner Koch <wk@gnupg.org>
5092 card: Update card info after "generate".
5093 + commit 94d31660c6db22c3b539f440994d286f687c273f
5094 * tools/gpg-card.c (cmd_generate): Re-read the card on success.
5096 scd:openpgp: New KEY-STATUS attribute.
5097 + commit 21496761226c1020a98e3ec7dd2b9dd013d4386b
5098 * scd/app-openpgp.c (do_getattr): Return KEY-STATUS
5100 card: Add command "bye"
5101 + commit 08310849a28071fbca761fa4ca18702b39092947
5102 * tools/gpg-card.c: Add command "bye" as alias for "quit".
5103 * tools/gpg-connect-agent.c (main): Add "/quit" as alias for "/bye"
5105 card: Take care of removed and re-inserted cards.
5106 + commit 46a3de4b5acb37274ddd132499a3243e1f92b506
5107 * tools/gpg-card.c (cmd_list): Take care of the need_sn_cmd flag.
5108 (cmd_factoryreset): Clear that flag.
5109 (dispatch_command): Set flag after a reset and after a
5110 CARD_NOT_PRESENT error.
5112 2020-05-26 Werner Koch <wk@gnupg.org>
5114 card: Implement UID command and print capabilities.
5115 + commit c2a47475ba0f6bd1de80e92dd91949501256025e
5116 * tools/card-call-scd.c (learn_status_cb): Return the full value for
5117 UIF. Add info about SM, MCL3, and PD.
5118 * tools/gpg-card.h (struct card_info_s): Add corresponding fields.
5119 * tools/gpg-card.c (list_openpgp): Print capabilities. Print the
5120 permanent flag for UIF.
5121 (cmd_uif): Implement.
5123 scd:openpgp: Add attribute "UIF" for convenience.
5124 + commit 11f0700282c1eeaee8db6686c38aca0900271351
5125 * scd/app-openpgp.c (do_getattr): New attrubute "UIF".
5126 (do_learn_status): Use that.
5128 scd: Fix Yubikey app switching problem.
5129 + commit 20090886706e2af6723ca11e292272fc00cffe07
5130 * scd/app.c (select_all_additional_applications_internal): Re-select
5131 first app. Add arg 'ctrl'.
5133 2020-05-22 NIIBE Yutaka <gniibe@fsij.org>
5135 gpg: Clean up ECDH code path (5).
5136 + commit 510bda7d3754801be18a592694578589fe503fb8
5137 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Now, it's only for
5139 (pk_ecdh_decrypt): Use prepare_ecdh_with_shared_point and move decrypt
5140 code path in original pk_ecdh_encrypt_with_shared_point here.
5141 * g10/pkglue.h (pk_ecdh_encrypt_with_shared_point): Change API.
5142 * g10/pkglue.c (pk_encrypt): Follow the change.
5144 gpg: Clean up ECDH code path (4).
5145 + commit 64d93271bfce1968ebe61324b900875dbd6dd2eb
5146 * g10/ecdh.c (prepare_ecdh_with_shared_point): New.
5147 (pk_ecdh_encrypt_with_shared_point): Fixing error paths for closing
5148 the cipher handle, use prepare_ecdh_with_shared_point.
5150 gpg: Clean up ECDH code path (3).
5151 + commit 80c02d13d9994abae9e67c3554528352c621cd9b
5152 * g10/ecdh.c (derive_kek): New.
5153 (pk_ecdh_encrypt_with_shared_point): Use derive_kek.
5155 gpg: Clean up ECDH code path (2).
5156 + commit a973d9113840282468015eb26f07f2b32f977d70
5157 * g10/ecdh.c (build_kdf_params): New.
5158 (pk_ecdh_encrypt_with_shared_point): Use build_kdf_params, and check
5159 things before extract_secret_x.
5161 gpg: Clean up ECDH code path (1).
5162 + commit 960d37644cbbe2a234352d0bc58095e2b0371eec
5163 * g10/ecdh.c (extract_secret_x): New.
5164 (pk_ecdh_encrypt_with_shared_point): Use extract_secret_x.
5166 2020-05-20 NIIBE Yutaka <gniibe@fsij.org>
5168 dirmngr: dns: Fix allocation of string buffer in stack.
5169 + commit 30eef28bc0f5deaa1b4b7f04293a6527524280a9
5170 * dirmngr/dns.h (dns_strsection, dns_strclass)
5171 (dns_strtype): Change APIs.
5172 * dirmngr/dns.c (dns_p_lines): Use __dst for dns_strsection.
5173 (dns_rr_print): Use __dst for dns_strclass and dns_strtype.
5174 (dns_trace_dump): Likewise.
5175 (dns_ai_print): Use __dst for dns_strtype.
5176 (dns_strsection): Add an argument __dst for storage.
5177 (dns_strclass, dns_strtype): Likewise.
5178 (parse_packet): Use __dst for dns_strsection.
5179 (send_query): Use __dst for dns_strtype.
5180 (isection): Use __dst for dns_strsection.
5181 (iclass): Use __dst for dns_strclass.
5182 (itype): Use __dst for dns_strtype.
5184 2020-05-19 Werner Koch <wk@gnupg.org>
5186 sm: Create ECC certificates with AKI and SKI by default.
5187 + commit 44676819f2873705b78849e7b2fd22214b691642
5188 * sm/certreqgen.c (create_request): Create AKI and SKI by default.
5190 common: New function to extract Q from an ECC key.
5191 + commit 3cd9dac7e0976643c6e4b6537cf363b2b12d422f
5192 * common/sexputil.c (get_ecc_q_from_canon_sexp): New.
5194 2020-05-18 Werner Koch <wk@gnupg.org>
5196 sm: Support creation of EdDSA certificates.
5197 + commit 6dc3846d78192e393be73c16c72750734a9174d1
5198 * sm/misc.c (transform_sigval): Support EdDSA.
5199 * sm/certreqgen.c (create_request): Support EdDSA cert creation.
5200 * sm/certcheck.c (gpgsm_check_cert_sig): Map some ECC algo OIDs to
5202 * sm/call-agent.c (struct sethash_inq_parm_s): New.
5203 (sethash_inq_cb): New.
5204 (gpgsm_agent_pksign): Add mode to pass plain data for EdDSA.
5206 agent: Allow to use SETHASH for arbitrary data.
5207 + commit b18fb0264abdb6cb0a99ba0ba941dc9a6e35f74a
5208 * agent/agent.h (struct server_control_s): Add field digest.data.
5209 * agent/gpg-agent.c (agent_deinit_default_ctrl): Free that field.
5210 * agent/command.c (reset_notify): Ditto.
5211 (start_command_handler): ditto.
5212 (cmd_sethash): Add new option --inquire.
5213 * agent/call-scd.c (agent_card_pksign): For now return an error if
5214 inquire mode was used.
5215 * agent/command-ssh.c (ssh_handler_sign_request): Make sure
5216 digest.data is cleared.
5217 * agent/divert-scd.c (divert_pksign): Implement inquire mode.
5218 * agent/pksign.c (agent_pksign_do): Ditto.
5220 2020-05-13 Werner Koch <wk@gnupg.org>
5222 sm: Support import and verification of EdDSA certificates.
5223 + commit b1694987bb6484405d41d34046a5290176feadd0
5224 * sm/certdump.c (gpgsm_get_serial): New.
5225 * sm/certcheck.c (gpgsm_check_cert_sig): Support EdDSA signatures.
5227 2020-05-11 Werner Koch <wk@gnupg.org>
5229 sm: Support signing using ECDSA.
5230 + commit f44d395bdfec464b1e2a0a1aef39561e6e48a45c
5231 * sm/gpgsm.h (struct certlist_s): Add helper field pk_algo.
5232 * sm/sign.c (gpgsm_sign): Store the public key algo. Take the hash
5233 algo from the curve. Improve diagnostic output in verbose mode.
5235 2020-05-08 Werner Koch <wk@gnupg.org>
5237 sm: Allow decryption using dhSinglePass-stdDH-sha1kdf-scheme.
5238 + commit 68b857df13c8a4e6cae5e3a29fd065bf90764547
5239 * sm/decrypt.c (ecdh_decrypt): Support
5240 dhSinglePass-stdDH-sha1kdf-scheme. Factor key derive code out to ...
5241 (ecdh_derive_kek): new global function. Allow for hashs shorter than
5243 (hash_ecc_cms_shared_info): Make file-only.
5244 * sm/encrypt.c (ecdh_encrypt): Replace derive code by a call to the
5245 new ecdh_derive_kek. Add test code to create data using
5246 dhSinglePass-stdDH-sha1kdf-scheme.
5247 * sm/gpgsm.h (opt): Add member force_ecdh_sha1kdf.
5248 * sm/gpgsm.c: Add option --debug-force-ecdh-sha1kdf.
5250 sm: Print algorithm infos in data decryption mode.
5251 + commit 439c9b5cb55044f13d4af6563f4e791093d510b0
5252 * common/sexputil.c (cipher_mode_to_string): New.
5253 * sm/decrypt.c (prepare_decryption): Show cipher algo and mode.
5254 (gpgsm_decrypt): Show key algo and fingerprint
5256 sm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA.
5257 + commit 34b628db4618a8712536aea695f934b0286e7b18
5258 * common/sexputil.c (pubkey_algo_to_string): New.
5259 * sm/certcheck.c (do_encode_md): Replace GCRY_PK_ECDSA by GCRY_PK_ECC.
5260 * sm/certreqgen-ui.c (check_keygrip): Add all ECC algorithms.
5261 * sm/gpgsm.c (our_pk_test_algo): Also allow EdDSA.
5262 * sm/verify.c (gpgsm_verify): Map ECC algo to ECDSA. Use new pubkey
5265 sm: Improve readability of the data verification output.
5266 + commit a759fa963a42e0652134130029217270b6d5d00b
5267 * sm/verify.c (gpgsm_verify): Print the used algorithms.
5269 2020-05-07 Werner Koch <wk@gnupg.org>
5271 card: Allow listing of NKS cards.
5272 + commit 94966347452632f8140fae70f7fcbadcc2b81071
5273 * tools/card-call-scd.c (learn_status_cb): Always fill chvinfo.
5274 * tools/gpg-card.h (struct card_info_s): Increase size of chvinfo and
5276 * tools/gpg-card.c (list_nks): New.
5277 (print_a_version): Support single part version numbers.
5278 (list_card): Call list_nks.
5280 scd:nks: Add framework to support IDKey cards.
5281 + commit 1f6a39092fe4b5f02bc4741a0a23d102d30f4063
5282 * scd/app-nks.c (NKS_APP_IDLM): New.
5283 (struct app_local_s): Replace NKS_VERSION by the global APPVERSION.
5284 (do_learn_status): Always send CHV-STATUS.
5285 (find_fid_by_keyref): Basic support for IDLM only use.
5286 (do_learn_status_core): Ditto.
5287 (do_readcert): Ditto.
5288 (verify_pin): Ditto.
5289 (parse_pwidstr): Ditto.
5290 (do_with_keygrip): Ditto.
5291 (switch_application): Ditto.
5292 (app_select_nks): Fallback to IDLM.
5294 scd:nks: Get the PIN prompts right for the Signature Card.
5295 + commit aecc008acb64ebbb6c667c4a128af4e61da57f84
5296 * scd/app-nks.c (get_dispserialno): Move more to the top.
5297 (do_getattr): Add $DISPSERIALNO and SERIALNO. Make CHV-STATUS work
5299 (verify_pin): Use dedicated min. PIN lengths.
5300 (parse_pwidstr): Support NKS15
5302 sm: Print the key types as standard key algorithm strings.
5303 + commit 5c29d25e6c7c0a5a63ab4c46d4624217307adb78
5304 * sm/fingerprint.c (gpgsm_get_key_algo_info): Factor code out to ...
5305 (gpgsm_get_key_algo_info2): new.
5306 (gpgsm_pubkey_algo_string): New.
5307 * sm/keylist.c (list_cert_colon): Put curve into field 17
5308 (list_cert_raw): Print the unified key algotithm string instead of the
5310 (list_cert_std): Ditto.
5312 scd:nks: Support decryption using ECDH.
5313 + commit af45d884aa1c3eccbc6972a2e5197ece3fd1987a
5314 * scd/app-nks.c (struct fid_cache_s): Add field 'algo'.
5315 (keygripstr_from_pk_file): Add arg 'r_algo' to return the algo.
5316 (find_fid_by_keyref): Ditto.
5317 (get_dispserialno): New.
5319 (verify_pin): Provide better prompts.
5320 (do_decipher): Support ECDH.
5321 (parse_pwidstr): Add hack tospecify any pwid..
5322 (do_change_pin): Support Signature Card V2.0 (NKS15) style NullPIN.
5323 Provide a better prompt.
5325 sm: Support decryption of ECDH data using a smartcard.
5326 + commit ee6d29f1797e06977ae3d2edae9edc1165c6f144
5327 * sm/decrypt.c (ecdh_decrypt): Add arg nbits and detect bare secret.
5328 (prepare_decryption): Add arg nbits and pass on.
5329 (gpgsm_decrypt): Pass size of curve to prepare_decryption.
5331 2020-05-05 Werner Koch <wk@gnupg.org>
5333 scd: Extend an internal function to also return the algo.
5334 + commit 314859d7e7de5010ca1e9d90b83acf3bc8493631
5335 * scd/app-help.c (app_help_get_keygrip_string_pk): Add optional arg
5336 r_algo. Change all callers.
5337 (app_help_get_keygrip_string): Ditto.
5339 2020-05-04 Werner Koch <wk@gnupg.org>
5341 scd:nks: Add do_with_keygrip and implement a cache.
5342 + commit 1e72a1a218490c0fc07811a02ddad6cc38913f77
5343 * scd/app-nks.c (struct fid_cache_s): New.
5344 (struct app_local_s): Add field 'fid_cache'.
5345 (do_deinit): Release the cache.
5346 (keygripstr_from_pk_file): Implement the cache.
5347 (find_fid_by_keyref): New
5348 (do_sign, do_decipher): Use new function.
5349 (do_with_keygrip): New.
5351 sm: Support encryption using ECDH keys.
5352 + commit d5051e31a8fc07c339253c6b82426e0d0115a20a
5353 * sm/decrypt.c (hash_ecc_cms_shared_info): Make global.
5354 * sm/encrypt.c (ecdh_encrypt): New.
5355 (encrypt_dek): Add arg PK_ALGO and support ECDH.
5356 (gpgsm_encrypt): Pass PK_ALGO.
5358 2020-04-27 Werner Koch <wk@gnupg.org>
5360 sm: Add support to export ECC private keys.
5361 + commit 5da6925a334c68d736804d8f19a684a678409d99
5362 * sm/minip12.c [TEST]: Remove test code. Include util.h, tlv.h. and
5363 openpgpdefs.h. Remove the class and tag constants and replace them by
5365 (builder_add_oid, builder_add_mpi): New.
5366 (build_key_sequence): Rename to ...
5367 (build_rsa_key_sequence): this.
5368 (build_ecc_key_sequence): New.
5369 (p12_build): Call RSA or ECC builder.
5370 (p12_raw_build): Ditto.
5371 * sm/export.c (gpgsm_p12_export): Use correct armor header for ECC.
5372 (sexp_to_kparms): Support ECC.
5374 * sm/t-minip12.c: New to replace the former TEST code in minip12.h.
5376 2020-04-24 Werner Koch <wk@gnupg.org>
5378 common: Add an easy to use DER builder.
5379 + commit 5ea878274ef51c819368f021c69c518b9aef6f82
5380 * common/tlv-builder.c: New.
5381 * common/tlv.c: Remove stuff only used by GnuPG 1.
5382 (put_tlv_to_membuf, get_tlv_length): Move to ...
5383 * common/tlv-builder.c: here.
5384 * common/tlv.h (tlv_builder_t): New.
5386 2020-04-23 Werner Koch <wk@gnupg.org>
5388 sm: Support decryption of ECDH data.
5389 + commit 95d83cf906177fe9f00e88ae42d4c118c7db4371
5390 * sm/decrypt.c: Include tlv.h.
5391 (string_from_gcry_buffer): New.
5392 (hash_ecc_cms_shared_info): New.
5393 (ecdh_decrypt): New.
5394 (prepare_decryption): Support ECDH. Add arg pk_algo.
5395 (gpgsm_decrypt): Lift some variables from an inner code block.
5397 common: Add functions to help create DER objects.
5398 + commit 5d015b38eb9f828acf522fa89e4944f3b343678c
5399 * common/tlv.c (put_tlv_to_membuf): New.
5400 (get_tlv_length): New.
5401 * common/tlv.h: Include membuf.h.
5403 2020-04-21 Werner Koch <wk@gnupg.org>
5405 sm: Support import of PKCS#12 encoded ECC private keys.
5406 + commit 8dfef5197af9f655697e0095c6613137d51c91e7
5407 * sm/minip12.c: Include ksba.h.
5408 (oid_pcPublicKey): New const.
5409 (parse_bag_data): Add arg 'r-curve'. Support parsing of ECC private
5411 (p12_parse): Add arg 'r_curve'.
5412 * sm/import.c (parse_p12): Support ECC import.
5414 2020-04-17 Werner Koch <wk@gnupg.org>
5416 scd:nks: Allow retrieving certificates from a Signature Card v.20.
5417 + commit f05a32e5c9db7d0840c74fccc350a9e0ff5fb819
5418 * scd/app-nks.c: Major rework to support non-RSA cards.
5420 scd: Detect missing card in "getinfo all_active_apps".
5421 + commit 3633ca6e21f7feb97b6690025614575bb6909f8b
5422 * scd/app.c (send_card_and_app_list): Detect no app case.
5424 2020-04-16 Werner Koch <wk@gnupg.org>
5426 sm: Always allow authorityInfoAccess lookup if CRLs are also enabled.
5427 + commit bbb7edb8807b7d3c8bb5284d8fdf21adb67cd87d
5428 * sm/certchain.c (find_up): Disable external lookups in offline mode.
5429 Always allow AKI lookup if CRLs are also enabled.
5431 sm: Lookup missing issuers first using authorityInfoAccess.
5432 + commit f5efbd5a1169ca7700f430a4a26ba086e603c887
5433 * sm/call-dirmngr.c (gpgsm_dirmngr_lookup): Add optional arg URL and
5435 * sm/certchain.c (oidstr_caIssuers): New.
5436 (struct find_up_store_certs_s): Add additional fields.
5437 (find_up_store_certs_cb): Store the fingerprint.
5438 (find_up_via_auth_info_access): New.
5439 (find_up): Try the AIA URI first.
5441 dirmngr: Allow http URLs with "LOOKUP --url"
5442 + commit 7f1be1ea524ee53d8c7b628e0305b61ebad4ab25
5443 * dirmngr/crlfetch.c (read_cert_via_http): New.
5444 (fetch_cert_by_url): Implement http scheme.
5446 gpg: Make AEAD modes subject to compliance checks.
5447 + commit cec397e00240829495de2b487fe60d997d810c03
5448 * g10/decrypt-data.c (decrypt_data): Move aead algo detection up.
5450 2020-04-15 Werner Koch <wk@gnupg.org>
5452 gpg: Fix broken setting of AEAD algo.
5453 + commit df0edaf91a220f8c6dffbfd1f795e229858b096b
5454 * g10/main.h (DEFAULT_AEAD_ALGO): Set to OCB.
5456 sm,dirmngr: Restrict allowed parameters used with rsaPSS.
5457 + commit c0d5c673542b3d517c33fe1a9ab26bcda1a5a95f
5458 * sm/certcheck.c (extract_pss_params): Check the used PSS params.
5459 * dirmngr/crlcache.c (finish_sig_check): Ditto.
5460 * dirmngr/validate.c (check_cert_sig): Ditto.
5462 2020-04-15 NIIBE Yutaka <gniibe@fsij.org>
5464 regexp: Fix generation of _unicode_mapping.c.
5465 + commit 50b320952e99ea20f9b77c6c501280fe37fd2598
5466 * configure.ac (AWK_HEX_NUMBER_OPTION): Detect GNU Awk.
5467 * regexp/Makefile.am: Use AWK_HEX_NUMBER_OPTION.
5468 * regexp/parse-unidata.awk: Don't use strtonum.
5470 2020-04-14 Werner Koch <wk@gnupg.org>
5472 sm: Support rsaPSS verification also for CMS signatures.
5473 + commit 6c28d9343ea6df9cda1b69e77751a9e958eb3d70
5474 * sm/certcheck.c (gpgsm_check_cert_sig): Factor PSS parsing out to ...
5475 (extract_pss_params): new.
5476 (gpgsm_check_cms_signature): Implement PSS.
5478 2020-04-09 Werner Koch <wk@gnupg.org>
5480 dirmngr: Support rsaPSS also in the general validate module.
5481 + commit ba34f1415366d91d1831d717ec310ddda33f9cc4
5482 * dirmngr/validate.c (hash_algo_from_buffer): New.
5483 (uint_from_buffer): New.
5484 (check_cert_sig): Support rsaPSS.
5485 * sm/certcheck.c (gpgsm_check_cert_sig): Fix small memory leak on
5488 sm,dirmngr: Support rsaPSS signature verification.
5489 + commit b45ab0ca08f8d6f9831192210b9ab141f4e450cf
5490 * sm/certcheck.c (hash_algo_from_buffer): New.
5491 (uint_from_buffer): New.
5492 (gpgsm_check_cert_sig): Handle PSS.
5493 * dirmngr/crlcache.c (hash_algo_from_buffer): New.
5494 (uint_from_buffer): New.
5495 (start_sig_check): Detect PSS and extract hash algo. New arg to
5497 (finish_sig_check): New arg use_pss. Extract PSS args and use them.
5498 (crl_parse_insert): Pass use_pss flag along.
5500 common: New function to map hash algo names.
5501 + commit 5d5b70ae0f515290a3d64daa1d687fe8c8477f76
5502 * common/sexputil.c (hash_algo_to_string): New.
5504 scd:p15: Return a display S/N via Assuan.
5505 + commit bfedc760efdcf606da7c214e84d12a10ee4cbcc0
5506 * scd/app-p15.c (make_pin_prompt): Factor some code out to ...
5507 (get_dispserialno): this.
5508 (do_getattr): Use new fucntion for a $DISPSERIALNO.
5510 2020-04-08 NIIBE Yutaka <gniibe@fsij.org>
5512 gpg: ECDH: Accept longer padding.
5513 + commit fd79cadf7ba5ce45dfb5e266975f58bf5c7ce145
5514 * g10/pubkey-enc.c (get_it): Remove check which mandates shorter
5517 2020-04-07 Werner Koch <wk@gnupg.org>
5519 scd:p15: Show a pretty PIN prompt.
5520 + commit 9ec8d984be4676126843d5aa7dfd0b7d71eff13c
5521 * scd/app-p15.c (struct prkdf_object_s): New fields common_name and
5523 (release_prkdflist): Free them.
5524 (keygrip_from_prkdf): Parse cert and set them.
5525 (any_control_or_space): New.
5526 (make_pin_prompt): New.
5527 (verify_pin): Construct a pretty PIN prompt.
5528 (do_sign): Remove debug output.
5530 scd: Return GPG_ERR_BAD_PIN on 0x63Cn status word.
5531 + commit f28795b615c3042f6eb7c9d941e232d0da50efbc
5532 * scd/iso7816.c (map_sw): Detect 0x63Cn status code.
5534 scd: Factor common PIN status check out.
5535 + commit 60d018f6a91c4c90b8ecf13f88ac4256699f4007
5536 * scd/iso7816.h (ISO7816_VERIFY_ERROR): New.
5537 (ISO7816_VERIFY_NO_PIN): New.
5538 (ISO7816_VERIFY_BLOCKED): New.
5539 (ISO7816_VERIFY_NULLPIN): New.
5540 (ISO7816_VERIFY_NOT_NEEDED): New.
5541 * scd/iso7816.c (iso7816_verify_status): New.
5542 * scd/app-nks.c (get_chv_status): Use new function.
5543 * scd/app-piv.c (get_chv_status): Ditto.
5544 (verify_chv): Ditto.
5546 scd:p15: Fix decrypt followed by sign problem for D-Trust cards.
5547 + commit 42ddcc87f4bca40d605d133b6cdb4e761a49a1c9
5548 * scd/iso7816.c (iso7816_select_mf): New.
5549 * scd/app-p15.c (card_product_t): New.
5550 (struct app_local_s): Add field 'card_product'.
5551 (read_ef_tokeninfo): Detect D-Trust card.
5552 (prepare_verify_pin): Switch to D-Trust AID.
5553 (do_decipher): Restore a SE for D-TRust cards. Chnage the passing
5556 2020-04-06 NIIBE Yutaka <gniibe@fsij.org>
5558 tools: Use internal regexp routines.
5559 + commit 7ee2a9687da9560a5d17c7046c87c2f7a6733d5c
5560 * tools/gpg-check-pattern.c: Use jimregexp.h.
5562 2020-04-03 Werner Koch <wk@gnupg.org>
5564 scd:p15: Emit MANUFACTURER, $ENCRKEYID, $SIGNKEYID.
5565 + commit aa60645b997d23ac2958f75fd349c1cd7b8af902
5566 * scd/app-p15.c (read_ef_tokeninfo): Store manufacturer_id.
5567 (do_getattr): Implement MANUFACTURER, $ENCRKEYID and $SIGNKEYID.
5568 (send_keypairinfo): Also print usage flags.
5570 gpg,card: Use the new MANUFACTURER attribute.
5571 + commit 15352b0eac335e7993fcd7720106a3a7d22caae1
5572 * tools/gpg-card.h (struct card_info_s): Add manufacturer fields.
5573 * tools/card-call-scd.c (release_card_info): Release them.
5574 (learn_status_cb): Parse MANUFACTURER attribute.
5575 * tools/gpg-card.c (get_manufacturer): Remove.
5576 (list_card): Use the new attribute.
5577 * g10/call-agent.h (struct agent_card_info_s): Add manufacturer fields.
5578 * g10/call-agent.c (agent_release_card_info): Release them.
5579 (learn_status_cb): Parse MANUFACTURER attribute.
5580 * g10/card-util.c (get_manufacturer): Remove.
5581 (current_card_status): Use new attribute.
5583 scd:openpgp: New attribute "MANUFACTURER".
5584 + commit 541a6a903e79c9146a379f5c6c0fb34e6c2b42c4
5585 * scd/app-openpgp.c (get_manufacturer): New..
5586 (do_getattr): Add new attribute "MANUFACTURER".
5587 (do_learn_status): Always print it.
5589 2020-04-03 NIIBE Yutaka <gniibe@fsij.org>
5591 gpg: Add regular expression support.
5592 + commit ba247a114c75a84473c11c1484013b09fbb9bcd1
5593 * AUTHORS, COPYING.other: Update.
5594 * Makefile.am (SUBDIRS): Add regexp sub directory.
5595 * configure.ac (DISABLE_REGEX): Remove.
5596 * g10/Makefile.am (needed_libs): Add libregexp.a.
5597 * g10/trustdb.c: Remove DISABLE_REGEX support.
5598 * regexp/LICENSE, regexp/jimregexp.c, regexp/jimregexp.h,
5599 regexp/utf8.c, regexp/utf8.h: New from Jim Tcl.
5600 * regexp/UnicodeData.txt: New from Unicode.
5601 * regexp/Makefile.am, regexp/parse-unidata.awk: New.
5602 * tests/openpgp/Makefile.am: Remove DISABLE_REGEX support.
5603 * tools/Makefile.am: Remove DISABLE_REGEX support.
5605 2020-04-02 Werner Koch <wk@gnupg.org>
5607 scd:p15: Implement do_with_keygrip and capabilities.
5608 + commit 61c5b0767fac4c2d7fe95cdbc6d0f0a94878c813
5609 * scd/app-p15.c (prepare_verify_pin): Allow use without an AODF.
5610 (verify_pin): Ditto.
5611 (do_with_keygrip): Implement capability restrictions.
5613 scd:p15: Rename some variables and functions for clarity.
5614 + commit 8149742ddfea6c76898786cb7de7c92bbf8aab0a
5615 * scd/app-p15.c: Rename keyinfo to prkdf.
5617 scd: Use Gcrypt usage constants for the do_with_keygrip capabilities.
5618 + commit 5b7b42e2b2b7ba7b88f89ff4b4ee7baf0eef2a04
5619 * scd/command.c (cmd_keyinfo): Use Gcrypt constants for CAP.
5620 * scd/app-openpgp.c (do_with_keygrip): Adjust for them.
5621 * scd/app-piv.c (do_with_keygrip): Ditto.
5623 2020-04-02 NIIBE Yutaka <gniibe@fsij.org>
5625 scd: New command DEVINFO.
5626 + commit 2ccbcfec121f768574a59aa2ecff22d8b422d61b
5627 * scd/app.c (notify_cond): New condition variable.
5628 (app_send_devinfo, app_wait): New.
5629 (scd_update_reader_status_file): Kick NOTIFY_COND.
5630 (initialize_module_command): Initialize NOTIFY_COND.
5631 * scd/command.c (struct server_local_s): Add watching_status.
5633 (register_commands): Add DEVINFO command.
5634 (send_client_notifications): Write status change to DEVINFO channel.
5635 * scd/scdaemon.h (app_wait, app_send_devinfo): New.
5637 2020-04-01 Werner Koch <wk@gnupg.org>
5639 scd:p15: Cache the PIN.
5640 + commit 29f8f52bf8161c238c26389ab178caa98801234e
5641 * scd/app-p15.c (struct prkdf_object_s): Add flag pin_verified.
5642 (verify_pin): Make use of it.
5644 scd:p15: Run a keygrip_from_prkdf before verify_pin.
5645 + commit 132d82c1582009013af5c7bdb17cbaaa8807c70e
5646 * scd/app-p15.c (do_sign): Move keygrip_from_prkdf before PIN
5648 (do_decipher): Add keygrip_from_prkdf.
5650 scd:p15: Support decryption with CardOS 5 cards.
5651 + commit ca4391399c690a45270cca30f03ac564c394c1f6
5652 * scd/app-p15.c (do_decipher): New.
5654 scd:p15: Factor PIN verification out to a new function.
5655 + commit 375b1454875ff079efc122e33b1216b412eecfaf
5656 * scd/app-p15.c (do_sign): Factor code out to ...
5657 (prepare_verify_pin, verify_pin): new functions.
5659 sm: Fix a warning in an es_fopencooie function.
5660 + commit c7ff8c59b9252f8f27cabee3fea503f06c7d46ff
5661 * sm/certdump.c (format_name_writer): Take care of a flush request.
5663 2020-03-31 Werner Koch <wk@gnupg.org>
5665 scd:p15: Support signing with CardOS 5 cards.
5666 + commit 103c1576b73ed75b771a8ffd1c97628651b99797
5667 * scd/app-help.c (app_help_get_keygrip_string_pk): Add optional arg
5668 r_pkey and change all callers.
5669 (app_help_get_keygrip_string): Ditto.
5670 * scd/app-p15.c (struct cdf_object_s): Use bit flags
5671 (struct aodf_object_s): Ditto. Add field 'fid'.
5672 (struct prkdf_object_s): Ditto. Add fields keygrip, keyalgo, and
5674 (parse_certid): Allow a keygrip instead of a certid aka keyref.
5675 (read_ef_aodf): Store the FID.
5676 (keygripstr_from_prkdf): Rename to ...
5677 (keygrip_from_prkdf): this. Remove arg r_gripstr and implement cache.
5678 Change callers to directly use the values from the object. Also store
5679 the algo and length of the key ion the object.
5680 (keyref_from_keyinfo): New. Factored out code.
5681 (do_sign): Support SHA-256 and >2048 bit RSA keys.
5682 (do_with_keygrip): New.
5683 (app_select_p15): Register new function.
5685 scd:p15: Read certificates in extended mode.
5686 + commit 2bdd4fc7b6cfd9ac5410d20f1cee66567a6b24c5
5687 * scd/app-p15.c (readcert_by_cdf): Allow reading in extended mode.
5689 scd: Add function for binary read in extended mode.
5690 + commit c9ad81070a2bb1116d3f096a440c43e57e6f933a
5691 * scd/iso7816.c (iso7816_read_binary): Factor code out to ...
5692 (iso7816_read_binary_ext): new function. Add arg extended_mode.
5694 2020-03-30 Werner Koch <wk@gnupg.org>
5696 scd:p15: Detect CardOS 5 cards and print some basic infos.
5697 + commit 8a68d497f1dd0b124318eb47db9da0c4b64c8b8b
5698 * scd/app-p15.c (read_ef_odf): Detect the home_DF on the fly. Silence
5699 the garbage warning for null bytes.
5700 (print_tokeninfo_tokenflags): New.
5701 (read_ef_tokeninfo): Print manufacturer, label, and flags.
5702 (app_select_p15): No need to use the app_get_slot macro.
5703 (CARD_TYPE_CARDOS_50): New const.
5704 (card_atr_list): Detect CardOS 5.0
5706 agent: Print an error if gpg-protect reads the extended key format.
5707 + commit c5c21a064671dc8e461434d19cbde67b89df25e2
5708 * agent/protect-tool.c (read_key): Detect simple extended key format.
5710 sm: Fix possible NULL deref in error messages of --gen-key.
5711 + commit 9c5c7c6f602c84589cd5c93a85a27b416e744338
5712 * sm/certreqgen.c: Protect printing the liniernur in case of !R.
5714 2020-03-27 Werner Koch <wk@gnupg.org>
5716 sm: Consider certificates w/o CRL DP as valid.
5717 + commit 0b583a555e75fbb9140310390a267febd3329a12
5718 * sm/certchain.c (is_cert_still_valid): Shortcut if tehre is no DP.
5719 * common/audit.c (proc_type_verify): Print "n/a" if a cert has no
5721 * sm/gpgsm.h (opt): Add field enable_issuer_based_crl_check.
5722 * sm/gpgsm.c (oEnableIssuerBasedCRLCheck): New.
5723 (opts): Add option --enable-issuer-based-crl-check.
5726 scd:openpgp: Allow PKSIGN with keygrip also for OPENPGP.3.
5727 + commit 4c4999b8185ace55eb5f3a6fa7d3dc0a77267b63
5728 * scd/app-openpgp.c (check_keyidstr): Add optional arg r_use_auth to
5729 test also for OpenPGP.3.
5730 (do_sign): Enable that new mode.
5732 2020-03-27 NIIBE Yutaka <gniibe@fsij.org>
5734 gpgsm: Fix the previous commit.
5735 + commit e06a8e3e87f044a5bf6ee06f92cc4fd2a0914863
5738 2020-03-26 NIIBE Yutaka <gniibe@fsij.org>
5740 gpgsm: Support key generation with ECC.
5741 + commit 49ea53b755f0fef468055a1493e790735908f865
5742 * sm/certreqgen.c (pKEYCURVE): New.
5743 (read_parameters): Add pKEYCURVE handling.
5744 (proc_parameters): Support ECC key generation.
5746 gpgsm: Remove restriction of key generation (only RSA).
5747 + commit 238707db8b05a385af5419e606ea5110ace31d2b
5748 * sm/certreqgen.c (proc_parameters): Remove checking GCRY_PK_RSA.
5750 2020-03-19 Werner Koch <wk@gnupg.org>
5752 gpgconf: Take care of --homedir when reading/updating options.
5753 + commit c1844ca7520f9a67bff85ee4fbf49c6725668289
5754 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Remove unused var.
5755 (scdaemon_runtime_change): Ditto.
5756 (dirmngr_runtime_change): Ditto.
5757 (gc_component_check_options): Pass --homedir if needed.
5758 (retrieve_options_from_program): Take care of --homedir.
5760 2020-03-18 Werner Koch <wk@gnupg.org>
5762 gpg: Also allow a v5 fingerprint for --trusted-key.
5763 + commit 4287f89557b3bc9ab2876331e1bcb143d759fb47
5764 * g10/trustdb.c (tdb_register_trusted_key): Add case for 32 octet
5767 2020-03-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
5769 gpg: Update --trusted-key to accept fingerprint as well as long key id.
5770 + commit 810ea2cc684480c6aadceb2a10dd00f3fa67f2fb
5771 * g10/trustdb.c (tdb_register_trusted_key): accept fingerprint as well
5773 * doc/gpg.texi: document that --trusted-key can accept a fingerprint.
5775 2020-03-18 Werner Koch <wk@gnupg.org>
5778 gpg: Fix key expiration and usage for keys created at the Epoch.
5779 + commit 161a098be6f9d50fb5f7e120baee81e75d6eb5ad
5780 * g10/getkey.c (merge_selfsigs_main): Take a zero key creation time in
5783 2020-03-14 Werner Koch <wk@gnupg.org>
5785 gpgconf: Further simplify the gpgconf option processing.
5786 + commit 451cd1b3928172b312ca2597c3318e6e9e8be97d
5787 * common/gc-opt-flags.h (GC_OPT_FLAG_RUNTIME): Move to ...
5788 * tools/gpgconf-comp.c: here.
5789 (known_options_scdaemon): Remove "options".
5790 (known_options_dirmngr): Remove "options".
5791 (known_options_gpgsm): Remove "options".
5792 (known_options_gpg): Remove "options" and "keyserver".
5793 (struct gc_option_s): Rename active t gpgconf_list.
5794 (gc_component_list_options): Do not act upon active.
5795 (option_check_validity): Ditto.
5796 (is_known_option): Make it work correctly for unknown options.
5797 (retrieve_options_from_program): Use renamed flag gpgconf_list only to
5798 detect duplicated items from --gpgconf-list. Do not set runtime.
5799 Only e set the options if set by --gpgconf-list; never clear them.
5800 * agent/gpg-agent.c: Simplify the --gpgconf-list output.
5801 * dirmngr/dirmngr.c: Ditto.
5803 * kbx/keyboxd.c: Ditto.
5804 * scd/scdaemon.c: Ditto.
5805 * sm/gpgsm.c: Ditto.
5806 * tests/openpgp/gpgconf.scm: Use "compliance" instead of "keyserver"
5807 for the string arg test.
5809 gpg: New option --auto-key-import.
5810 + commit 6b306f45f4fbe36b90cec4685aabb267a61e283f
5811 * g10/gpg.c (opts): New options --auto-key-import,
5812 --no-auto-key-import, and --no-include-key-block.
5813 (gpgconf_list): Add them.
5814 * g10/options.h (opt): Add field flags.auto_key_import.
5815 * g10/mainproc.c (check_sig_and_print): Use flag to enable that
5817 * tools/gpgconf-comp.c: Give the new options a Basic config level.
5819 2020-03-13 Werner Koch <wk@gnupg.org>
5821 gpg: Make use of the included key block in a signature.
5822 + commit 6a4443c8425fd548020553b22d5a16ffad98371f
5823 * g10/import.c (read_key_from_file): Rename to ...
5824 (read_key_from_file_or_buffer): this and add new parameters. Adjust
5826 (import_included_key_block): New.
5827 * g10/packet.h (PKT_signature): Add field flags.key_block.
5828 * g10/parse-packet.c (parse_signature): Set that flags.
5829 * g10/sig-check.c (check_signature2): Add parm forced_pk and change
5831 * g10/mainproc.c (do_check_sig): Ditto.
5832 (check_sig_and_print): Try the included key block if no key is
5835 gpg: New option --include-key-block.
5836 + commit 865d485180240369a20d3be14d0c6499783df2b5
5837 * common/openpgpdefs.h (SIGSUBPKT_KEY_BLOCK): New.
5838 * g10/gpg.c (oIncludeKeyBlock): New.
5839 (opts): New option --include-key-block.
5841 * g10/options.h (opt): New flag include_key_block.
5842 * g10/parse-packet.c (dump_sig_subpkt): Support SIGSUBPKT_KEY_BLOCK.
5843 (parse_one_sig_subpkt): Ditto.
5844 (can_handle_critical): Ditto.
5845 * g10/sign.c (mk_sig_subpkt_key_block): New.
5846 (write_signature_packets): Call it for data signatures.
5848 gpg: Add property "fpr" for use by --export-filter.
5849 + commit 32493ce50ad880de7b548d7870c6040a8233a8f5
5850 * g10/export.c (push_export_filters): New.
5851 (pop_export_filters): New.
5852 (export_pubkey_buffer): Add args prefix and prefixlen. Adjust
5854 * g10/import.c (impex_filter_getval): Add property "fpr".
5855 * g10/main.h (struct impex_filter_parm_s): Add field hexfpr.
5857 2020-03-12 Werner Koch <wk@gnupg.org>
5859 gpgconf: Rewrite the gpgconf-comp module.
5860 + commit b4f1159a5bd7b2799d7d35e883e0632ebf3339c8
5861 * tools/gpgconf.h (gc_component_t): Change type to ...
5862 (gc_component_id_t): this.
5863 (GC_COMPONENT_ANY): New, so that we can use that in gpgconf-comp.c
5865 * tools/gpgconf-comp.c: Major rework.
5867 2020-03-06 Werner Koch <wk@gnupg.org>
5869 gpg: Re-group the options in the --help output.
5870 + commit 41eb5108ce59244d961df43bbf73b8aa6e95e9cd
5871 * g10/gpg.c (opts): Change oLoadExtensions, oStrict, and oNoStrict to
5872 use ARGPARSE_ignore and remove the code in the option switch.
5874 agent: Re-group the options in the --help output.
5875 + commit c693b7f4ade97357c33b410728bb741674255487
5876 * agent/gpg-agent.c (oGreeting): Remove non existant dummy option.
5878 gpgconf: Support reading global options (part 2).
5879 + commit 4423e9dcde5e1a8d73ff7386942fe3c0c4b917fc
5880 * tools/gpgconf-comp.c: Remove all regular option descriptions. They
5881 are now read in from the component. Also remove a few meanwhile
5883 * agent/gpg-agent.c: Add option description which were only set in
5885 * dirmngr/dirmngr.c: Ditto.
5886 * scd/scdaemon.c: Ditto.
5887 * sm/gpgsm.c: Ditto.
5890 2020-03-05 Werner Koch <wk@gnupg.org>
5892 gpgconf: Support reading global options (part 1).
5893 + commit d2425d1495f4fe4f5c3a79d7dc5571fda00849d8
5894 * tools/gpgconf.c (main): Set the coinfig directories.
5895 * tools/gpgconf-comp.c (gc_backend): Change the name of the config
5897 (struct gc_option): Add new field 'attr'.
5898 (retrieve_options_from_program): Rewrite to use gpgrt_argparser.
5900 2020-03-04 Werner Koch <wk@gnupg.org>
5902 common: Add xreallocarray function.
5903 + commit 6fa1808cb7639f0f3745b78c4b7ce902e42b228c
5904 * common/miscellaneous.c (xreallocarray): New func.
5905 * common/util.h (xtryreallocarray): New macro.
5907 2020-03-03 Werner Koch <wk@gnupg.org>
5909 gpgconf: Always use xmalloc.
5910 + commit 178b3772ff79148b496715da1b8ca5ba86caf2bc
5911 * tools/gpgconf-comp.c: Fix spelling of "cannot". Use log_assert
5912 instead of a plain assert.
5913 (gc_percent_escape, percent_deescape): Fail on malloc error.
5915 2020-02-28 NIIBE Yutaka <gniibe@fsij.org>
5917 scd: Fix the previous commit.
5918 + commit 19f70b5072b2ef80759ced83fe0dac9cf4dde830
5919 * scd/app-openpgp.c (do_setattr): Flush the KDF DO just before setting.
5921 scd: Improve setattr for KDF.
5922 + commit 3ba7c9bcf7f19b0a308499fcf3dbbb15da38799a
5923 * scd/app-openpgp.c (do_setattr): For setting KDF DO, support standard
5924 OpenPGP card, which needs to update PIN.
5926 scd: Fix pinpad handling when KDF enabled.
5927 + commit 11da441016222337284c519ff56aca34e3042373
5928 * scd/app-openpgp.c (do_getattr): Send the KDF DO information.
5930 2020-02-25 Werner Koch <wk@gnupg.org>
5932 gpg: Re-enable versioned config files.
5933 + commit 79f2318aa5c54c57220aa73251635d21cee0ccfa
5934 * g10/gpg.c (main): Use ARGPARSE_FLAG_USERVERS.
5936 gpg: Re-add checking of config file permissions.
5937 + commit 7e8f28653c1b4305758a61c064d793e32ba633d5
5938 * g10/gpg.c (main): Re-add permission checking of the user config
5939 file. Re-add code to check against the SE-Linux secured file list.
5940 (get_default_configname): Remove unused func.
5941 * configure.ac (SAFE_VERSION, SAFE_VERSION_DOT)
5942 (SAFE_VERSION_DASH): Remove.
5944 2020-02-22 Werner Koch <wk@gnupg.org>
5946 Use gpgrt's new option parser for the new keyboxd.
5947 + commit 833c04334a53530bd40d7dd815b6a0f1ffef296d
5948 * kbx/keyboxd.c: Switch to the new option parser and enable a global
5951 agent,dirmngr: Re-read the user specified config file.
5952 + commit 941a48f9b12b4c470686321bf4fd58c23b6cf86d
5953 * agent/gpg-agent.c (reread_configuration): Use a two-part config
5955 * dirmngr/dirmngr.c (reread_configuration): Ditto.
5957 Remove the now obsolete argparse code.
5958 + commit cdbe10b762f38449b86da69076209324b0c99982
5959 * tests/gpgscm/main.c: Switch to the new option parser.
5960 * common/argparse.c, common/argparse.h: Remove.
5961 * common/init.c (_init_common_subsystems): Do not call obsolete func.
5962 * common/Makefile.am (common_sources): Remove those files.
5964 2020-02-21 Werner Koch <wk@gnupg.org>
5966 Use gpgrt's new option parser for the remaining daemons.
5967 + commit ba463128ce65a0f347643f7246a8e097c5be19f1
5968 * scd/scdaemon.c: Switch to the new option parser and enable a global
5970 * dirmngr/dirmngr.c: Ditto.
5972 * g13/g13-syshelp.c: Ditto. Do not force verbose mode.
5973 * dirmngr/dirmngr_ldap.c: Switch to the new option parser.
5974 * dirmngr/dirmngr-client.c: Switch to the new option parser.
5976 Use gpgrt's new option parser for the tools.
5977 + commit 3bc004decd289810bc1b6ad6fb8f47e45c770ce6
5978 * agent/preset-passphrase.c: Switch to the new option parser.
5979 * agent/protect-tool.c: Ditto.
5980 * kbx/kbxutil.c: Ditto.
5981 * tools/gpg-card.c: Ditto.
5982 * tools/gpg-check-pattern.c: Ditto.
5983 * tools/gpg-connect-agent.c: Ditto.
5984 * tools/gpg-pair-tool.c: Ditto.
5985 * tools/gpg-wks-client.c: Ditto.
5986 * tools/gpg-wks-server.c: Ditto.
5987 * tools/gpgconf.c: Ditto.
5988 * tools/gpgsplit.c: Ditto.
5989 * tools/gpgtar.c: Ditto.
5991 2020-02-20 Werner Koch <wk@gnupg.org>
5993 Use gpgrt's new option parser for gpgc, gpgsm, and gpg-agent.
5994 + commit 2c823bd878fcdbcc4f6c34993e1d0539d9a6b237
5995 * g10/gpgv.c: Use new option parser.
5996 * sm/gpgsm.c: Ditto.
5997 * agent/gpg-agent.c: Ditto.
5998 (opts): Add option --no-options.
6000 gpg: Use gpgrt's new option parser to provide a global conf file.
6001 + commit 0e8f6e2aa98c212442001036fb5178cd6cd8af59
6002 * common/util.h: Remove argparse.h.
6003 * common/argparse.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS.
6004 * configure.ac (GPGRT_ENABLE_ARGPARSE_MACROS): Define.
6005 * agent/gpg-agent.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS and include
6006 argparse.h. Do this also for all main modules which use our option
6007 parser except for gpg. Replace calls to strusage by calls to
6008 gpgrt_strusage everywhere.
6010 * g10/gpg.c (opts): Change type to gpgrt_opt_t. Flag oOptions and
6011 oNoOptions with ARGPARSE_conffile and ARGPARSE_no_conffile.
6012 (main): Change type of pargs to gpgrt_argparse_t. Rework the option
6013 parser to make use of the new gpgrt_argparser.
6015 2020-02-19 Werner Koch <wk@gnupg.org>
6017 card: New option --info for command list and select by s/n.
6018 + commit ee911df979e9b53787162367865ca24682adae6e
6019 * tools/gpg-card.c (cmd_list): add option --info. Factor soem code
6021 (print_card_list): new.
6023 2020-02-19 NIIBE Yutaka <gniibe@fsij.org>
6025 gpg: Fix default-key selection when card is available.
6026 + commit 41913d76f7db4a7dabab26c1bc439c96ad86712f
6027 * g10/getkey.c (get_seckey_default_or_card): Handle the case
6028 when card key is not suitable for requested usage.
6030 2020-02-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
6033 + commit 0904b8ef348a52335c378bee6dc90a978885d66f
6034 No functional changes, just fixing minor spelling issues.
6038 Most of these were identified from the command line by running:
6041 --ignore-words-list fpr,stati,keyserver,keyservers,asign,cas,iff,ifset \
6042 --skip '*.po,ChangeLog*,help.*.txt,*.jpg,*.eps,*.pdf,*.png,*.gpg,*.asc' \
6043 doc g13 g10 kbx agent artwork scd tests tools am common dirmngr sm \
6044 NEWS README README.maint TODO
6046 2020-02-19 Nick Piper <nick.piper@cgi.com>
6048 doc: Correction of typo in documentation of KEY_CONSIDERED.
6049 + commit 0e1cbabc0ad4fe2ca9644fffb5cf27b1a8a1509f
6052 2020-02-17 NIIBE Yutaka <gniibe@fsij.org>
6054 scd: Disable pinpad if it's impossible by KDF DO.
6055 + commit 95c7498b76231d3297541172d878f6a26702539b
6056 * scd/app-openpgp.c (struct app_local_s): Add pinpad.disabled field.
6057 (do_getattr): Set pinpad.disabled field.
6058 (check_pinpad_request): Use the pinpad.disabled field.
6059 (do_setattr): Update pinpad.disabled field.
6061 2020-02-15 Werner Koch <wk@gnupg.org>
6063 gpgsm: Fix import of some CR,LF ternminated certificates.
6064 + commit 6248739799fd4a877529089375e2a4103d33e6f4
6065 * common/ksba-io-support.c (base64_reader_cb): Detect the END tag and
6066 don't just rely on the padding chars. This could happen only with
6067 CR+LF termnmated PEM files. Also move the detection into the invalid
6068 character detection branch for a minor parser speedup.
6070 2020-02-13 Werner Koch <wk@gnupg.org>
6072 build: New configure option --disable-keyboxd.
6073 + commit 6cac2bd0382eb7ed0d249f077522516e64fc1d8f
6074 * configure.ac: Add option --dsiable-keyboxd
6075 * kbx/Makefile.am: Do not build keyboxd in that case.
6077 scd: Print the main app name also for not fully supported cards.
6078 + commit 11d917c7796dc748e2d798d327a045ba295994f4
6079 * scd/app.c (send_serialno_and_app_status): Add fallback.
6081 card: Fix openpgp subkey listing.
6082 + commit e582d8f5b2c1bac8b6ccdfd6412b621a2584eb7f
6083 * tools/gpg-card.c (list_one_kinfo): Fix printing of the subkeys.
6085 gpg: New option --full-timestrings.
6086 + commit 86312b920a1d5817903d7175e9c2109bcf521b7c
6087 * g10/options.h (opt): Add flags.full_timestrings.
6088 * g10/gpg.c (oFullTimestrings): New.
6090 (main): Set new flag.
6091 * g10/keyid.c (dateonlystr_from_pk): New.
6092 (dateonlystr_from_sig): New.
6093 (datestr_from_pk): Divert to isotimestamp if requested.
6094 (datestr_from_sig): Ditto.
6095 (expirestr_from_pk): Ditto.
6096 (expirestr_from_sig): Ditto.
6097 (revokestr_from_pk): Ditto.
6098 * g10/import.c (impex_filter_getval): Use dateonlystr_from_sig and
6099 dateonlystr_from_pk.
6101 gpg: Changes to allow direct key generation from an OpenPGP card.
6102 + commit 14ac350f868ca71492c20c7b682d0b55b4893c9c
6103 * g10/call-agent.h (struct keypair_info_s): Add fields keytime and
6105 * g10/call-agent.c (struct keypairinfo_cb_parm_s): New.
6106 (scd_keypairinfo_status_cb): Rework to store parsed KEYPAIRINFO data.
6107 (agent_scd_keypairinfo): Change accordingly.
6108 (agent_scd_readkey): Add arg ctrl and change callers. Change return
6109 arg from an strlist_t to a keypair_info_t.
6110 (readkey_status_cb): Use KEYPAIRINFO instead of KEY-TIME.
6111 * g10/keygen.c (pSUBKEYCREATIONDATE): New.
6112 (pAUTHKEYCREATIONDATE): New.
6113 (get_parameter_u32): Allow for new parameters.
6114 (do_create_from_keygrip): For card keys use direct scd call which does
6115 not create a stub file.
6116 (ask_algo): Rework to use the new keypair_info_t as return from
6117 agent_scd_keypairinfo.
6118 (parse_key_parameter_part): Likewise. Also get and return the key
6119 creation time using a arg.
6120 (parse_key_parameter_string): New args r_keytime and r_subkeytime.
6121 (parse_algo_usage_expire): New arg r_keytime.
6122 (proc_parameter_file): Ignore the explict pCREATIONDATE for card keys.
6123 (quickgen_set_para): New arg keytime.
6124 (quick_generate_keypair): Get the keytimes and set the pCARDKEY flag.
6125 (generate_keypair): Likewise.
6126 (do_generate_keypair): Implement the cardkey with keytime thingy.
6127 (generate_subkeypair): Use the keytime parameters.
6128 * g10/keygen.c (pAUTHKEYCREATIONDATE): New. Not yet set but may come
6130 (get_parameter_u32): Take care of that.
6131 (do_generate_keypair): For cardkeys sign with the current time.
6133 card: Take the key creation time from the KEYPAIRINFO.
6134 + commit e63f8bee4044e0cc9ebc1f9c0f9f6b63660d45e8
6135 * tools/card-call-scd.c (learn_status_cb): Adjust for recent change.
6137 scd:openpgp: Return key creation time as part of KEYPARIINFO.
6138 + commit 1ad84aabb410e56bea074b82a06fe32b2897b660
6139 * scd/app-openpgp.c (send_keypair_info): Reaturn the key creation time
6140 as part of a KEYPAIRINFO.
6141 (do_readkey): Do not return the KEY-TIME anymore.
6143 agent: Allow signing with card key even without a stub key.
6144 + commit 638526d37fee0a1febac9d29fab384b913819fc9
6145 * agent/call-scd.c (agent_card_serialno): Allow NULL for R_SERIAL.
6146 (struct readkey_status_parm_s): New.
6147 (readkey_status_cb): New.
6148 (agent_card_readkey): Add optional arg R_KEYREF and change all
6150 * agent/findkey.c (key_parms_from_sexp): Allow also a "public-key".
6151 * agent/divert-scd.c (ask_for_card): Allow for SHADOW_INFO being NULL.
6152 * agent/pksign.c (agent_pksign_do): Fallback to sign with an on-card
6153 if there is no stub key yet. Create the stub key. Also fixed a
6154 misnaming between s_pkey and s_skey.
6156 2020-02-12 Werner Koch <wk@gnupg.org>
6158 gpg: Rename the struct card_key_info_s.
6159 + commit 8c63430d1a40a70ff8b4ddf1ed0fcabf9c0afbcc
6160 * g10/call-agent.h (struct card_key_info_s): Rename to ...
6161 (struct keypair_info_s): this.
6162 (keypair_info_t): New. Use this everywhere instead of
6164 * g10/call-agent.c (agent_scd_free_keyinfo): Rename to ..
6165 (free_keypair_info): this. Change all callers.
6167 card: Fix parsing of the received card_list.
6168 + commit 125c959677d55a8cf663c2dc248a3fc6f9be50bb
6169 * tools/card-call-scd.c (scd_cardlist): Allow for SERIALNO without any
6172 card: List more info for an OpenPGP key.
6173 + commit 1abfce82bd525de2976c31b83bb0e67e33364e58
6174 * tools/gpg-card.h (struct pubkey_s): Add field created.
6175 * tools/card-keys.c (parse_key_record): Set that field.
6176 * tools/gpg-card.c (print_shax_fpr): Print the fingerprint without
6177 spaces for easier c+p.
6178 (list_one_kinfo): Print the actual used fingerprint and creation date
6181 card: New option --no-key-lookup.
6182 + commit 2c6092bc5d794ae36cbf2f6b62337dc23f57bf3e
6183 * tools/gpg-card.h (opt): Add var no_key_lookup.
6184 * tools/gpg-card.c (oNoKeyLookup): New const.
6185 (opts): New option --no-key-lookup.
6186 (list_one_kinfo): Add arg no_key_lookup and implement.
6187 (list_all_kinfo): Add arg no_key_lookup.
6188 (list_openpgp, list_piv, list_card): Ditto.
6189 (cmd_list): New option --no-key-lookup.
6191 2020-02-11 Werner Koch <wk@gnupg.org>
6193 gpg: Improve key creation direct from the card.
6194 + commit 9c719c9c1ff34cc06a0fef2bfe29cfd7182753eb
6195 * g10/call-agent.c (readkey_status_cb): New.
6196 (agent_scd_readkey): Add new arg r_keytime and allow NULL for
6197 r_result. Change all callers.
6198 (agent_readkey): Minor code reformatting.
6199 * g10/keygen.c (pCARDKEY): New.
6200 (struct para_data_s): Add u.bool.
6201 (get_parameter_bool): New.
6202 (do_create_from_keygrip): Add arg cardkey and make use of it.
6203 (ask_algo): Add args r_cardkey and r_keytime. Read the keytime of the
6204 selected card key and return it.
6205 (generate_keypair): Store CARDKEY and KEYTIME.
6206 (do_generate_keypair): Pass CARDKEY to do_create_from_keygrip.
6207 (generate_subkeypair): Ditto.
6209 scd:openpgp: Send a KEY-TIME status with READKEY.
6210 + commit 77ea916533c5ca918b17ce83f6cc1b1afbd31e55
6211 * scd/app-openpgp.c (retrieve_fprtime_from_card): New.
6212 (do_readkey): Send a KEY_TIME status.
6214 card: First code to actually create openpgp keys.
6215 + commit 6bc7318ef55017e1aca6e52899fd0b223da7cfc1
6216 * tools/gpg-card.c (generate_all_openpgp_card_keys): Add demo key
6218 (generate_key): Allow generatiing one OpenPGP key.
6220 scd:openpgp: Optional allow for lowercase keyrefs.
6221 + commit 323548acd9defde0a8ea7d74c18cd4a1b339ff2e
6222 * scd/app-openpgp.c (do_readkey): Use case insensitive match of the
6224 (do_writekey, do_sign, do_auth, do_decipher): Ditto.
6226 scd:openpgp: Allow auto-changing of the key attributes in genkey.
6227 + commit d7d75da50543bc7259c5a6e6367b58cbca7f1b7b
6228 * scd/app-openpgp.c (struct app_local_s): Add field keyalgo.
6229 (parse_algorithm_attribute): Store the new keyalgo field.
6230 (change_keyattr): Change info message.
6231 (change_keyattr_from_string): Rewrite to also accept a keyref and a
6233 (do_genkey): Change the keyattr if a keyalgo string is given.
6235 common: Extend the openpgp_curve_to_oid function.
6236 + commit 24095101a5069f15a9aea7512498ac436a76814a
6237 * common/openpgp-oid.c (openpgp_curve_to_oid): Add optional arg R_NBITS.
6240 2020-02-10 Werner Koch <wk@gnupg.org>
6242 doc: Improve the warning section of the gpg man page.
6243 + commit 113a8288b85725f7726bb2952431deea745997d8
6244 * doc/gpg.texi: Update return valeu and warning sections.
6246 2020-02-10 Werner Koch <wk@gnupg.org>
6249 build: Always use EXTERN_UNLESS_MAIN_MODULE pattern.
6250 + commit 6aff8a132815a84bab69401c1e7de96ec549fbf2
6251 * common/util.h (EXTERN_UNLESS_MAIN_MODULE): Add the definion only
6252 here but now without the Norcroft-C. Change all other places where it
6254 * common/iobuf.h (iobuf_debug_mode): Declare unconditionally as
6256 * common/iobuf.c (iobuf_debug_mode): Define it here.
6257 * agent/gpg-agent.c (INCLUDED_BY_MAIN_MODULE): Define here and also in
6258 all main modules of all other programs.
6260 * g10/main.h: Put util.h before the local header files.
6262 2020-02-10 Werner Koch <wk@gnupg.org>
6264 gpg: Make really sure that --verify-files always returns an error.
6265 + commit 5681b8eaa44005afdd30211b47e5fb1a799583dd
6266 * g10/verify.c (verify_files): Track the first error code.
6268 card: Remove command "key-attr" and hack on "generate".
6269 + commit 438b7881ba0bf4e5fd8e5d5212601e5691f2aafe
6270 * tools/gpg-card.h (struct key_attr): Remove.
6271 (struct key_info_s): Remove key_attr. Add keyalgo and keyalgo_id.
6272 * tools/card-call-scd.c (learn_status_cb): Rework the key-attr info.
6273 * tools/gpg-card.c (list_one_kinfo): Always show the algorithm; if
6274 there is no key show the key attributes instead.
6275 (list_openpgp): Do not print the "Key attributes".
6276 (generate_key): Factor the repalce key pormpt out to ...
6277 (ask_replace_keys): new.
6278 (generate_openpgp): Rename to generate_all_openpgp_card_keys and add
6280 (generate_generic): Rename to generate_key. Prepare generation of a
6282 (cmd_generate): Revamp.
6283 (ask_card_rsa_keysize): Remove.
6284 (ask_card_keyattr): Remove.
6285 (do_change_keyattr): Remove.
6286 (cmd_keyattr): Remove.
6287 (enum cmdids): Remove cmdKEYATTR.
6289 (dispatch_command): Ditto.
6290 (interactive_loop): Ditto.
6292 scd:openpgp: Let the genkey function also accept a full keyref.
6293 + commit fb6ff7ead7dff33541b595f3e8d5342f9c7a6d6c
6294 * scd/app-openpgp.c (send_key_attr): Use log_assert.
6295 (do_genkey): Allow prefix.
6297 common: Extend the new get_keyalgo_string function.
6298 + commit 332a72f7340895e7db1e9c5f89046f722bb7465b
6299 * common/openpgp-oid.c (openpgp_oid_or_name_to_curve): New.
6300 (get_keyalgo_string): Use it.
6302 2020-02-09 Werner Koch <wk@gnupg.org>
6304 common: Remove duplicated call to a function.
6305 + commit d1c518cdc9330c2dd4034efc544de0dd6ec73ea1
6306 * common/openpgp-oid.c (openpgp_oid_to_str): Remove duplicated call.
6308 common: New function get_keyalgo_string.
6309 + commit 3a1fa13eedb969b561bae18cd3d7c2fb0b63d6ab
6310 * common/openpgp-oid.c (struct keyalgo_string_s): New.
6311 (keyalgo_strings): New.
6312 (keyalgo_strings_size, keyalgo_strings_used): New.
6313 (get_keyalgo_string): New.
6315 common: Add OpenPGP<->Gcrypt pubkey id mapping functions.
6316 + commit 49c891a9bfac24a1d95e76d33d44a49426247777
6317 * g10/misc.c (map_pk_gcry_to_openpgp): Move to ...
6318 * common/openpgp-oid.c (map_gcry_pk_to_openpgp): here and rename.
6319 Change all 4 callers.
6320 (map_openpgp_pk_to_gcry): New.
6322 card: Support brainpool curves in the generate command.
6323 + commit 9df9996b415ee671a0f22b6936745f829884eda2
6324 * tools/gpg-card.c (cmd_generate): Add brainpool curves and dummy name
6327 2020-02-03 Werner Koch <wk@gnupg.org>
6329 sm: New option --issuer-der for the listkey commands.
6330 + commit 2e5ab34496fe7e1b9bd2194ab59a58cf44ca9d1e
6331 * sm/server.c (do_listkeys): Implement new option.
6333 2020-01-21 Werner Koch <wk@gnupg.org>
6335 dirmngr: Fix building w/o LDAP support.
6336 + commit d8973975e7636ec0f007575a0bede92147d835f8
6337 * dirmngr/Makefile.am: Conditionally build dirmngr_ldap.
6339 gpg: Fix printing of keyring name (regression in master)
6340 + commit bf931299e846fa47bcabe3716ec82af7c3290ce5
6341 * g10/keydb.c (keydb_get_resource_name):
6343 2020-01-20 Werner Koch <wk@gnupg.org>
6345 tools: Let watchgnupg determine the socket name via gpgconf.
6346 + commit e0d9181ad11aaf7e68231db4b3708978a9a52fd6
6347 * tools/watchgnupg.c: Include sys/wait.h.
6348 (GNUPG_DEF_COPYRIGHT_LINE): Add a default value for standalone
6351 (main): Use a default socket name and add option --homedir.
6353 2020-01-17 Werner Koch <wk@gnupg.org>
6355 gpgconf,w32: Print a warning for a suspicious homedir.
6356 + commit 7f12fb55f9757cd68147eca8f162c85378538405
6357 * tools/gpgconf.c (list_dirs): Check whether the homedir has been
6358 taken from the registry.
6360 2020-01-17 NIIBE Yutaka <gniibe@fsij.org>
6362 gpg: Prefer card key on use in multiple subkeys situation.
6363 + commit 8748c50bfaa8df2b1e59c301d15fd6b9ddbd9c47
6364 * g10/call-agent.c (keyinfo_status_cb): Parse more fields.
6365 (agent_probe_secret_key): Use KEYINFO and returns bigger value
6366 representing the preference.
6367 * g10/getkey.c (finish_lookup): For subkeys, select one
6368 by using value of agent_probe_secret_key.
6370 gpg: Prepare enhancement of agent_probe_secret_key.
6371 + commit 853d5b7677ea01f65c9bc5160cd8509b62f486f7
6372 * g10/call-agent.c (agent_probe_secret_key): Change semantics of
6374 * g10/call-agent.h (agent_probe_secret_key): Change comment.
6375 * g10/delkey.c (do_delete_key): Follow the change.
6376 * g10/getkey.c (get_seckey, parse_def_secret_key): Likewise.
6377 (finish_lookup, have_secret_key_with_kid): Likewise.
6378 * g10/gpgv.c (agent_probe_secret_key): Likewise.
6379 * g10/keyedit.c (keyedit_menu, quick_find_keyblock): Likewise.
6380 (show_key_with_all_names_colon): Likewise.
6381 * g10/revoke.c (gen_desig_revoke, gen_revoke): Likewise
6382 * g10/test-stubs.c (agent_probe_secret_key): Likewise.
6384 2020-01-16 Werner Koch <wk@gnupg.org>
6386 card: Allow switching of cards and applications.
6387 + commit bd85f9232ad639d4acba443272147c4fc01b1b65
6388 * tools/card-call-scd.c (struct card_cardlist_parm_s): Add field
6390 (card_cardlist_cb): Handle the new with_apps flag.
6391 (scd_switchcard): New.
6392 (scd_switchapp): New.
6394 (scd_serialno): Pass --all also in --demand mode.
6396 * tools/gpg-card.c (cmd_list): Simplify switching of cards. Add
6397 switching of alls. Print a list of apps per card.
6399 scd: New commands SWITCHCARD and SWITCHAPP.
6400 + commit 718555874efcbad502112449c7d15025cb193628
6401 * scd/app.c: Include membuf.h.
6402 (app_switch_current_card): New.
6403 (send_card_and_app_list): Factor code out to ...
6404 (send_serialno_and_app_status): new.
6405 (app_send_card_list): New.
6406 (app_send_active_apps): New.
6407 (app_switch_active_app): New.
6408 * scd/command.c (cmd_switchcard): New.
6409 (cmd_switchapp): New.
6410 (register_commands): Register new commands.
6411 (cmd_getinfo): New sub-commands "active_apps" and "all_active_apps".
6413 scd:piv: Remove debug code from a recent commit.
6414 + commit dd61164410ee185750d1aa55ee0e33dcab8f4542
6415 * scd/app-piv.c (ask_and_prepare_chv): here.
6417 gpg: Print better debug info in case of broken sig subpackets.
6418 + commit 3ccad75d76b9c17b9495c48df8dd4be46d3b3105
6419 * g10/parse-packet.c (enum_sig_subpkt): Print a hexdump.
6421 2020-01-16 NIIBE Yutaka <gniibe@fsij.org>
6423 gpg: Use "SCD KEYINFO" to get available card keys.
6424 + commit 8edd4b8b8cdcbdcf1986214d6d17cadb604ddf54
6425 * g10/skclist.c (enum_secret_keys): Don't use agent_scd_cardlist and
6426 agent_scd_serialno, but agent_scd_keyinfo.
6428 gpg: Add agent_scd_keyinfo to retrieve available card keys.
6429 + commit 8240a70c31a8e1617de64c42168cf3299b85b39e
6430 * g10/call-agent.c (card_keyinfo_cb, agent_scd_free_keyinfo)
6431 (agent_scd_keyinfo): New.
6432 * g10/call-agent.h: Define new functions.
6434 gpg: default-key: Simply don't limit by capability.
6435 + commit 1aa2a0a46dc19e108b79dc129a3b0c5576d14671
6436 * g10/getkey.c (parse_def_secret_key): Remove the check.
6438 2020-01-15 NIIBE Yutaka <gniibe@fsij.org>
6440 gpg: Cert only key should be usable with --default-key.
6441 + commit 9287f9e87b215e79fdb7fb9dfdf2b47666e6ea2f
6442 * g10/getkey.c (parse_def_secret_key): Allow cert-only key.
6444 2020-01-13 Werner Koch <wk@gnupg.org>
6446 scd: Make the PIN cache robust against wrongdoing of gpg-agent.
6447 + commit 2dd6b4b998dd6e156e2e75ede0f40fb768c69f40
6448 * scd/app-openpgp.c (struct app_local_s): New field pincache.
6449 (cache_pin): Set it.
6450 (pin_from_cache): Consult it.
6451 * scd/app-piv.c (struct app_local_s): New field pincache.
6452 (cache_pin): Set it.
6453 (pin_from_cache): Consult it.
6455 scd:piv: Implement PIN cache.
6456 + commit 60502c3606ee425d07c84b175ab310368c12b0ad
6457 * scd/command.c (pincache_put): Add arg pinlen and change all callers
6459 * scd/app-piv.c (cache_pin): New.
6460 (pin_from_cache): New.
6461 (ask_and_prepare_chv): Add args no_cache and r_unpaddedpinlen. Take
6462 PIN from the cache. Return the unpadded length.
6463 (verify_chv): Add arg ctrl. Cache the PIN.
6464 (do_change_chv): Clear PIN cache.
6466 agent: Avoid multiple calls to scd for KEYINFO.
6467 + commit 2e86cca7f4181310bebfd795c059369ba03a8d8b
6468 * agent/command.c (struct server_local_s): Add last_card_keyinfo.
6469 (eventcounter): Add maybe_key_change.
6470 (cmd_genkey, cmd_scd, cmd_import_key, cmd_delete_key): Bump new
6472 (cmd_keyinfo): Cache the keyinfo from the card.
6473 (start_command_handler): Release the cache.
6475 agent: Replace free by xfree in recently added code.
6476 + commit aaef0fc3a743d06012c4a7fd8caa80d969863cc9
6477 * agent/call-scd.c (agent_card_free_keyinfo): Use xfree.
6479 gpg,sm: Avoid useless ASFW diagnostic in loopback mode.
6480 + commit 14aa797bb8f3f7d3f4ef66b8fcdac7439000b49a
6481 * common/sysutils.c (inhibit_set_foregound_window): New var.
6482 (gnupg_inhibit_set_foregound_window): New func.
6483 (gnupg_allow_set_foregound_window): Use var.
6484 * g10/gpg.c (main): Inhibit in loopback mode.
6485 * sm/gpgsm.c (main): Ditto.
6487 scd: Fix memory leak in command READKEY.
6488 + commit 2b843be5ac9f37c9faf2d9ab720eafceb3d534ad
6489 * scd/command.c (cmd_readcert): Replace xstrdup by xtrystrdup.
6490 (cmd_readkey): Ditto. Fix memory leak.
6492 scd: Make SERIALNO --all work correctly and use it.
6493 + commit 0e48aa084921c77944d4802c86ac33c607c519af
6494 * scd/app.c (maybe_switch_app): Factor reselect code out to ...
6495 (run_reselect): new.
6496 (app_write_learn_status): Tweak diagnostics.
6497 (app_do_with_keygrip): Run reselect if a card has more than one
6498 switchable application.
6500 * agent/call-scd.c (agent_card_serialno): Ditto.
6501 * tools/card-call-scd.c (start_agent): Use option --all with SERIALNO.
6502 (scd_serialno): Ditto.
6504 2020-01-13 NIIBE Yutaka <gniibe@fsij.org>
6506 agent: handle SSH operation by KEYGRIP.
6507 + commit 15028627a1655b7ad1835fbd0a32cf30debe807a
6508 * agent/command-ssh.c (card_key_available): Supply KEYINFO argument.
6509 Call agent_card_readkey by KEYGRIP of KEYINFO.
6510 Don't use $AUTHKEYID, but IDSTR of KEYINFO.
6511 (ssh_handler_request_identities): Follow the change of
6514 agent: Extend agent_card_getattr with KEYGRIP.
6515 + commit c31266716dd69fee7bd64cf1e33d7631cd328e72
6516 * agent/agent.h (struct card_key_info_s): KEYGRIP null terminated.
6517 (agent_card_getattr): Add KEYGRIP argument.
6518 * agent/call-scd.c (agent_card_getattr): Handle KEYGRIP argument.
6519 (card_keyinfo_cb): Make KEYGRIP null terminated.
6520 * agent/command.c (cmd_readkey): Follow the change.
6522 2020-01-10 NIIBE Yutaka <gniibe@fsij.org>
6524 scd: Implement direct access by KEYGRIP for GETATTR and READKEY.
6525 + commit 0cfded4bb1484366c785c268f2fb1061c7be5fdb
6526 * scd/app-openpgp.c (do_readkey): Handle KEYGRIP access.
6527 * scd/command.c (do_readkey): New.
6528 (cmd_readkey): Use do_readkey supporting KEYGRIP access.
6529 (cmd_getattr): Supporting KEYGRIP access.
6531 2020-01-09 Werner Koch <wk@gnupg.org>
6533 scd:openpgp: Implement PIN cache.
6534 + commit 63bda3aad8ec4163b0241f64e8b587d665d650c3
6535 * scd/app-openpgp.c (wipe_and_free, wipe_and_free_string): Use them
6536 everywere where we do a wipememory followed by a free.
6537 (pin2hash_if_kdf): Change interface. The input PIN is not anymore
6538 changed. Further there are no more assumptions about the length of
6539 the provided buffer.
6540 (cache_pin): Restructure.
6541 (chvno_to_keyref): New.
6542 (pin_from_cache): New.
6543 (verify_a_chv): Add arg CTRL. Adjust for changed pin2hash_if_kdf.
6544 Chache and retrieve the PIN here.
6545 (verify_chv2): Do not cache the PIN here.
6546 (build_enter_admin_pin_prompt): Add arg 'r_remaining'.
6547 (verify_chv3): Adjust for changed pin2hash_if_kdf. Implement the PIN
6549 (do_change_pin): Clear the PIN cache. Do not change the PIN here.
6550 Lots of adjustments to cope with the chnaged pin2hash_if_kdf.
6551 (do_sign): Do not cache the PIN here.
6553 scd: Use a scdaemon internal key to protect the PIN cache IPC.
6554 + commit ce5a7fb72b599de592a087867768ac1f81fd2989
6555 * agent/call-scd.c (handle_pincache_put): Do not decrypt.
6556 (handle_pincache_get): New.
6557 (inq_needpin): Call it.
6558 * scd/command.c (set_key_for_pincache): New.
6559 (pincache_put): Restructure and set key.
6560 (pincache_get): Ditto.
6562 2020-01-09 NIIBE Yutaka <gniibe@fsij.org>
6564 agent: SSH: SCD KEYINFO to list available keys.
6565 + commit 57b8ed61ab93dd5aa73159f6db8adeb83d54b85f
6566 * agent/agent.h (agent_card_cardlist): Remove.
6567 (agent_card_keyinfo): Add CAP argument.
6568 * agent/call-scd.c (card_cardlist_cb): Remove.
6569 (agent_card_cardlist): Remove.
6570 (agent_card_keyinfo): Support CAP constraint.
6571 * agent/command-ssh.c (card_key_list): Remove.
6572 (ssh_handler_request_identities): Use SCD KEYINFO command.
6573 * agent/command.c (cmd_keyinfo): Follow the API change.
6574 * agent/divert-scd.c (ask_for_card): Likewise.
6576 2020-01-07 Werner Koch <wk@gnupg.org>
6578 scd: First changes to implement a PIN cache.
6579 + commit fbf97a7856bd2f80a1714f63417c59d6c604d333
6580 * scd/command.c (pincache_put): New. Uses a dummy key for now.
6581 (pincache_get): New.
6582 * scd/app.c (select_application): Flush the PIN cache.
6583 (scd_update_reader_status_file): Ditto.
6584 (maybe_switch_app): Call the new prep_reselect function.
6585 (app_write_learn_status): Ditto.
6586 * scd/app-openpgp.c (cache_pin): New helper to cache a PIN.
6587 (verify_chv2): Call it.
6588 (verify_chv3): Call it.
6589 (clear_chv_status): Call it.
6590 (do_change_pin): Call it.
6592 * scd/app-common.h (struct app_ctx_s): Add function 'prep_select'.
6593 * scd/app-openpgp.c (do_prep_reselect): New stub function.
6594 (app_select_openpgp): Set new stub function.
6595 * scd/app-piv.c (do_prep_reselect): New stub function.
6596 (app_select_piv): Set new stub function.
6598 * scd/app-common.h (struct app_ctx_s): Add parameter ctrl to setattr,
6599 sign, auth, decipher, and check_pin. Change all implementations and
6600 callers to pass such a parameter.
6602 agent: First changes to support a PIN cache for scdaemon.
6603 + commit d5c00354bb02ae6cb2e3a72136a1a95cb2db7f3f
6604 * agent/agent.h (CACHE_MODE_PIN): New.
6605 * agent/cache.c (housekeeping): Special handling of new new mode.
6606 (agent_flush_cache): Ditto. Add arg 'pincache_only' and change
6608 (agent_put_cache): Support new mode.
6609 (agent_get_cache): Ditto.
6610 * agent/call-scd.c (wait_child_thread): Flush the entire PIN cache.
6612 (agent_card_killscd): Ditto.
6613 (handle_pincache_put): New. Uses a dummy encryption key for now.
6614 (pincache_put_cb): New.
6615 (inq_needpin): Prepare for PINCACHE_GET inquiry.
6616 (learn_status_cb): Handle the PINENTRY_PUT status line.
6617 (get_serialno_cb): Ditto
6618 (agent_card_pksign): Ditto.
6619 (padding_info_cb): Ditto.
6620 (agent_card_readcert): Ditto.
6621 (agent_card_readkey): Ditto.
6622 (agent_card_writekey): Ditto.
6623 (card_getattr_cb): Ditto.
6624 (card_cardlist_cb): Ditto.
6625 (card_keyinfo_cb): Ditto.
6626 (pass_status_thru): Ditto.
6628 kbx: Make sure the tables are joined in a select.
6629 + commit 41a882443622fe08ebaa75bf358e83630bbb8631
6630 * kbx/backend-sqlite.c (run_select_statement): Join the tables.
6632 2020-01-03 Werner Koch <wk@gnupg.org>
6634 scd: Minor fix for readibility.
6635 + commit c0625c15c1fb6d06202669eb8caff2710377952d
6636 * scd/command.c (open_card_with_request): Use NULL instead of
6639 2020-01-02 Werner Koch <wk@gnupg.org>
6641 kbx: Initial support for an SQLite backend.
6642 + commit f4da1455c7ab858ea9007d0813774c6d04cd4576
6643 * kbx/backend-sqlite.c: New.
6644 * kbx/Makefile.am (keyboxd_SOURCES): Add it.
6645 (keyboxd_CFLAGS, keyboxd_LDADD): Add SQLite flags.
6646 * kbx/backend.h (enum database_types): Add DB_TYPE_SQLITE.
6647 (be_sqlite_local_t): New typedef.
6648 (struct db_request_part_s): Add field besqlite.
6649 * kbx/backend-support.c (strdbtype): Add string for DB_TYPE_SQLITE.
6650 (be_generic_release_backend): Support SQLite.
6651 (be_release_request): Ditto.
6652 (be_find_request_part): Ditto.
6653 (is_x509_blob): Rename to ...
6654 (be_is_x509_blob): this and make global.
6655 * kbx/frontend.c (kbxd_set_database): Detect ".db" suffix and use that
6657 (kbxd_search): Support SQLite
6658 (kbxd_store): Ditto.
6659 (kbxd_delete): Ditto.
6660 * kbx/frontend.h (kbxd_store_modes): Move to ...
6661 * kbx/keyboxd.h (enum kbxd_store_modes): here.
6662 * kbx/keyboxd.c (main): USe pubring.db for now. This is a temporary
6665 * kbx/backend-kbx.c (be_kbx_delete): Remove unused var cert.
6667 2019-12-23 Werner Koch <wk@gnupg.org>
6669 gpg: Fix output of --with-secret if a pattern is given.
6670 + commit 59d49e4a0ac2ed27803507cb7d2c6af166527bd5
6671 * g10/keylist.c (list_one): Probe for a secret key in --with-secret
6674 kbx: Change keyboxd to work only with one database.
6675 + commit 8a556c23a29776b2b5aa1d563e779b6ae0139dff
6676 * kbx/frontend.c (the_database): New var.
6677 (db_desc_t): Remove.
6678 (kbxd_add_resource): Renamed to ...
6679 (kbxd_set_database): this. Simplify.
6680 (kbxd_search): Change to use only one database.
6681 (kbxd_store): Ditto.
6682 (kbxd_delete): Ditto.
6684 2019-12-19 NIIBE Yutaka <gniibe@fsij.org>
6686 scd: Enhance KEYINFO command to limit listing with capability.
6687 + commit b2a2df174b216881387ae849770d875cd74984c2
6688 * scd/app-common.h: Add CAPABILITY argument to the WITH_KEYGRIP.
6689 (app_do_with_keygrip): Likewise.
6690 * scd/app-openpgp.c (send_keyinfo_if_available): New.
6691 (do_with_keygrip): Support listing with CAPABILITY.
6692 * scd/app-piv.c (do_with_keygrip): Likewise.
6693 * scd/app.c (maybe_switch_app): Supply the argument.
6694 (app_do_with_keygrip): Add CAPABILITY argument.
6695 * scd/command.c (cmd_pksign, cmd_pkauth): Supply the argument.
6696 (cmd_pkdecrypt): Likewise.
6697 (cmd_keyinfo): Support listing with CAPABILITY.
6699 2019-12-06 Werner Koch <wk@gnupg.org>
6701 sm: Add special case for expired intermediate certificates.
6702 + commit d246f317c04862cacfefc899c98da182ee2805a5
6703 * sm/gpgsm.h (struct server_control_s): Add field 'current_time'.
6704 * sm/certchain.c (find_up_search_by_keyid): Detect a corner case.
6705 Also simplify by using ref-ed cert objects in place of an anyfound
6708 dirmngr: Tell gpg about WKD looks resulting from a cache.
6709 + commit 8a6ecc6ff52b9ec045e200cc200977707278f89c
6710 * dirmngr/server.c (proc_wkd_get): Print new NOTE status
6711 "wkd_cached_result".
6712 * g10/call-dirmngr.c (ks_status_cb): Detect this and print a not ein
6715 2019-12-04 Werner Koch <wk@gnupg.org>
6717 gpg: Use AKL for angle bracketed mail address with -r.
6718 + commit 1abb39fdaf44c2477719fbea43ef8042d8b9033e
6719 * g10/getkey.c (get_pubkey_byname): Extend is_mbox checking.
6720 (get_best_pubkey_byname): Ditto.
6722 2019-11-28 Werner Koch <wk@gnupg.org>
6724 gpg: Change the way v5 fingerprints are printed.
6725 + commit d2ff62dbdf891319e6db5850c6077c85e5eb784e
6726 * g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): Increase by one.
6727 * g10/keyid.c (format_hexfingerprint): Change v5 key formatting.
6729 gpg: Implement insert, update, and delete via keyboxd.
6730 + commit 7244666926929f3b2475d8cab50db3ff620cdbe3
6731 * g10/call-keyboxd.c (struct store_parm_s): New.
6732 (store_inq_cb): New.
6733 (keydb_update_keyblock): Implement the keyboxd part.
6734 (keydb_insert_keyblock): Ditto.
6735 (keydb_delete_keyblock): Ditto.
6736 (keydb_search_reset): Clear ubid flag. Also use the correct union
6737 member for building the search string.
6739 kbx: Add new command DELETE.
6740 + commit 490e0cd0bab8d8d06ffdc5b8977964d5a76a8df0
6741 * kbx/kbxserver.c (cmd_delete): New.
6742 * kbx/frontend.c (kbxd_delete): New.
6743 * kbx/backend-kbx.c (be_kbx_delete): New.
6745 kbx: Redefine the UBID which is now the primary fingerprint.
6746 + commit 915297705af6f1db74dacf0d6665b83eb0a58459
6747 * common/util.h (UBID_LEN): New. Use it at all places.
6748 * kbx/keybox-blob.c (create_blob_finish): Do not write the UBID item.
6749 * kbx/keybox-dump.c (print_ubib): Remove.
6750 (_keybox_dump_blob): Do not print the now removed ubid flag.
6751 * kbx/keybox-search-desc.h (struct keydb_search_desc): Use constants
6752 for the size of the ubid and grip.
6753 * kbx/keybox-search.c (blob_cmp_ubid): New.
6754 (has_ubid): Make it a simple wrapper around blob_cmp_ubid.
6755 (keybox_get_data): Add arg 'r_ubid'.
6757 * kbx/frontend.h (enum kbxd_store_modes): New.
6758 * kbx/kbxserver.c (cmd_store): Add new option --insert.
6760 * kbx/backend-cache.c (be_cache_initialize): New.
6761 (be_cache_add_resource): Call it here.
6762 * kbx/backend-kbx.c (be_kbx_seek): Remove args 'fpr' and 'fprlen'.
6763 (be_kbx_search): Get the UBID from keybox_get_data.
6764 * kbx/backend-support.c (be_fingerprint_from_blob): Replace by ...
6765 (be_ubid_from_blob): new. Change all callers.
6767 * kbx/frontend.c (kbxd_add_resource): Temporary disable the cache but
6768 use the new cache init function.
6769 (kbxd_store): Replace arg 'only_update' by 'mode'. Seek using the
6770 ubid. Take care of the mode.
6772 2019-11-27 Werner Koch <wk@gnupg.org>
6774 dirmngr: Replace no-strict-overflow pragma by wrapv pragma.
6775 + commit f59455d054a79068ebf480cd28f02993c1facf3b
6776 * dirmngr/dirmngr.c (time_for_housekeeping_p): Build with --fwrapv.
6777 Replace protecting macro.
6779 gpg: Move a keydb function to another file.
6780 + commit 61f41cdce5b60b9df05d6531ab1b7aab84ada659
6781 * g10/keydb.c (build_keyblock_image): Move to ...
6782 * g10/build-packet.c (build_keyblock_image): here.
6784 2019-11-26 Werner Koch <wk@gnupg.org>
6786 dirmngr: Rework of the LDAP code, part 1.
6787 + commit 264c15c72fe050f5e8d2f1cb2444a459df6fe99f
6788 * dirmngr/http.h (struct parsed_uri_s): Add flag is_ldap.
6789 * dirmngr/http.c (do_parse_uri): Set flag. Do not error out for a
6790 missing slashes in an http scheme if NO_SCHEME_CHECK is active.
6791 * dirmngr/t-http.c (main): Print new flag.
6792 * dirmngr/ks-engine-ldap.c (ks_ldap_help): Use flag instead of
6793 checking the scheme.
6794 * dirmngr/ldap-parse-uri.c (ldap_uri_p): Re-implement using
6796 * dirmngr/t-ldap-parse-uri.c (main): Add option --verbose.
6798 dirmngr: Make building with a TLS library mandatory.
6799 + commit 1009e4e5f71347a1fe194e59a9d88c8034a67016
6800 * configure.ac: Do not build dirmngr if no TLS is available.
6801 * dirmngr/http.c: Remove all uses of the USE_TLS macro.
6803 doc: Fixed variable naming.
6804 + commit 8fb14d3b3f9c5c27ff8b9f0e7e7207ec388687ff
6805 * kbx/keybox.h: Fix naming of arguments.
6806 * scd/ccid-driver.c (print_error) [TEST]: Add missing break. Note
6807 that this is anyway an impossible case.
6809 2019-11-25 Werner Koch <wk@gnupg.org>
6811 agent: Improve --debug-pinentry diagnostics.
6812 + commit c8783b3a204b371d44b8953429652101cf2e4d1b
6813 * agent/call-pinentry.c (atfork_cb): Factor code out to ...
6816 2019-11-23 Werner Koch <wk@gnupg.org>
6818 wkd: Let --install-key write a template policy file.
6819 + commit 50cd1a58f3a612704a0056386e1d5cd7cb28d57d
6820 * tools/wks-util.c (ensure_policy_file): New.
6821 (wks_cmd_install_key): Call it.
6823 2019-11-19 NIIBE Yutaka <gniibe@fsij.org>
6825 po: Apply removal of dirmngr/ldap-wrapper-ce.c.
6826 + commit 116dfb20013b73b950bbcee1d1f6c2a5d1d7ffdd
6827 * po/POTFILES.in: Update.
6829 2019-11-18 Werner Koch <wk@gnupg.org>
6831 dirmngr,gpg: Better diagnostic in case of bad TLS certificates.
6832 + commit d9c7935188483dae381c12e7eef19072bbade4b3
6833 * doc/DETAILS: Specify new status code "NOTE".
6834 * dirmngr/ks-engine-http.c (ks_http_fetch): Print a NOTE status for a
6835 bad TLS certificate.
6836 * g10/call-dirmngr.c (ks_status_cb): Detect this status.
6838 dirmngr: Forward http redirect warnings to gpg.
6839 + commit ae9acb8745c1654b446b3cd5b9322b235723d9cb
6840 * dirmngr/http.c: Include dirmngr-status.h
6841 (http_prepare_redirect): Emit WARNING status lines for redirection
6843 * dirmngr/http.h: Include fwddecl.h.
6844 (struct http_redir_info_s): Add field ctrl.
6845 * dirmngr/ks-engine-hkp.c (send_request): Set it.
6846 * dirmngr/ks-engine-http.c (ks_http_fetch): Set it.
6847 * g10/call-dirmngr.c (ks_status_cb): Detect the two new warnings.
6849 2019-11-15 NIIBE Yutaka <gniibe@fsij.org>
6851 scd,ccid: Fix detection of supported readers with pinpad.
6852 + commit 1cb9a831f6eedfa4c8950b8a7706ea77b74693f7
6853 * scd/ccid-driver.c (ccid_transceive_secure): When not supported,
6854 return CCID_DRIVER_ERR_NOT_SUPPORTED.
6856 2019-11-12 Werner Koch <wk@gnupg.org>
6858 dirmngr: Use IPv4 or IPv6 interface only if available.
6859 + commit 12def3a84e0358528347107dc88cfe740a54941f
6860 * dirmngr/dns-stuff.c (cached_inet_support): New variable.
6861 (dns_stuff_housekeeping): New.
6862 (check_inet_support): New.
6863 * dirmngr/http.c (connect_server): Use only detected interfaces.
6864 * dirmngr/dirmngr.c (housekeeping_thread): Flush the new cache.
6866 2019-11-12 Andre Heinecke <aheinecke@gnupg.org>
6868 dirmngr: Tune down err on missing ldapservers file.
6869 + commit 40daa0bc0bc87a521713d7dd1568f3874759a143
6870 * dirmngr/dirmngr.c (parse_ldapservers_file): Tune down error
6871 in case no such file exists.
6873 2019-11-11 Werner Koch <wk@gnupg.org>
6875 dirmngr: Remove cruft from dirmngr_ldap.
6876 + commit 4c295646ba0e175743e6be13457308c1e6d21dd3
6877 * configure.ac (USE_LDAPWRAPPER): Remove ac_define and conditional.
6878 * dirmngr/Makefile.am: Remove USE_LDAPWRAPPER and considere true.
6879 * dirmngr/ldap-wrapper-ce.c: Remove.
6880 * dirmngr/ldap-wrapper.c: Remove USE_LDAPWRAPPER stuff. Minor chnages
6882 * dirmngr/dirmngr_ldap.c: Remove USE_LDAPWRAPPER stuff. Remove
6884 (fetch_ldap) [W32]: Use ldap_sslinit.
6886 gpg: Forbid the creation of SHA-1 third-party key signatures.
6887 + commit dd18be979e138dd3712315ee390463e8ee1fe8c1
6888 * g10/sign.c (SIGNHINT_KEYSIG, SIGNHINT_SELFSIG): New.
6889 (do_sign): Add arg signhints and inhibit SHA-1 signatures. Change
6891 (complete_sig): Add arg signhints and pass on.
6892 (make_keysig_packet, update_keysig_packet): Set signhints.
6894 dirmngr: Rename an enum value for clarity.
6895 + commit eebd43d5b688e99131fcbf8f8292a485b91402a2
6896 * dirmngr/ldapserver.h: Rename LDAPSERVER_OPT.
6898 2019-11-09 Werner Koch <wk@gnupg.org>
6900 gpgsm: Allow sepcification of ldaps servers.
6901 + commit 6e1c99bc397382f1ea2ba9d61a64328410adc95f
6902 * sm/gpgsm.h (struct keyserver_spec): Add field use_ldaps.
6903 * sm/gpgsm.c (parse_keyserver_line): Parse flags.
6904 * sm/call-dirmngr.c (prepare_dirmngr): Send ldaps flag to the dirmngr.
6906 * dirmngr/dirmngr.h (struct ldap_server_s): Add field use_ldaps.
6907 * dirmngr/ldapserver.c (ldapserver_parse_one): Parse flags.
6908 * dirmngr/ldap.c (start_cert_fetch_ldap): Call wrapper with --tls.
6910 * dirmngr/dirmngr_ldap.c: New option --tls.
6911 (fetch_ldap): Make use of that option.
6913 2019-11-07 Werner Koch <wk@gnupg.org>
6915 gpg: Fix a potential loss of key sigs during import with self-sigs-only.
6916 + commit 6701a38f8e4a35ba715ad37743b8505bfd089541
6917 * g10/import.c (import_one_real): Don't do the final clean in the
6920 gpg: Add option --allow-weak-key-signatures.
6921 + commit e624c41dbafd33af82c1153188d14de72fcc7cd8
6922 * g10/gpg.c (oAllowWeakKeySignatures): New.
6923 (opts): Add --allow-weak-key-signatures.
6925 * g10/options.h (struct opt): Add flags.allow_weak_key_signatures.
6926 * g10/misc.c (print_sha1_keysig_rejected_note): New.
6927 * g10/sig-check.c (check_signature_over_key_or_uid): Print note and
6930 gpg: Print rfc4880bis note only in verbose mode.
6931 + commit f4047f56058cf9be2aa362fc439846ce930da8c7
6932 * g10/gpg.c (main): Change condition for an info diagnostic.
6934 2019-11-06 Werner Koch <wk@gnupg.org>
6936 gpg: Remove an unused variable.
6937 + commit fd88b8847a371a2927f52afceeeb457b64cce162
6938 * g10/delkey.c (do_delete_key): here.
6940 gpg: Do not require --batch when using --log-file.
6941 + commit 584b65ad7e937710a4fc6db42d6849bb3449d6ef
6942 * g10/gpg.c (main): Remove a long standing FIXME.
6944 2019-10-28 NIIBE Yutaka <gniibe@fsij.org>
6946 scd,ccid: Fix GEMPC_EZIO handling.
6947 + commit c6702d77d936b3e9d91b34d8fdee9599ab94ee1b
6948 * scd/ccid-driver.c (ccid_transceive_secure): Fix for 08e6:34c2.
6950 2019-10-17 NIIBE Yutaka <gniibe@fsij.org>
6952 gpg: More fix of get_best_pubkey_byname.
6953 + commit e2c2b0fb2d9b31fa1b61803d04919645a9149996
6954 * g10/getkey.c (get_best_pubkey_byname): Remove useless req_usage
6957 gpg: Fix two other cases in get_best_pubkey_byname.
6958 + commit 286d4c607574e91f590512a1385bb3320cf8da77
6959 * g10/getkey.c (pubkey_cmp): Handle a primary key with
6960 PUBKEY_USAGE_ENC, and make sure new key is for encryption.
6961 (get_best_pubkey_byname): Add comment for ranking.
6963 doc: Fix documentation about --locate-keys.
6964 + commit 627a990f8e306d4f34bc503b303dc8b13616029e
6965 * doc/gpg.texi (--locate-keys): Remove mentioning signing keys.
6967 2019-10-16 NIIBE Yutaka <gniibe@fsij.org>
6969 gpg: Fix get_best_pubkey_byname to consider the first match.
6970 + commit f2734381ae1431e395a0bed16df2f4d5d13aa2c5
6971 * g10/getkey.c (get_best_pubkey_byname): Always use PK0 to search
6972 by get_pubkey_byname. Add initial call to pubkey_cmp to fill
6973 BEST at first before the loop.
6975 2019-10-15 Werner Koch <wk@gnupg.org>
6977 gpg: Also delete key-binding signature when deleting a subkey.
6978 + commit d1bc12d1b66e0657969a8eb846bdcd9bee717a7c
6979 * g10/delkey.c (do_delete_key): Simplify and correct subkey deletion.
6981 2019-10-15 NIIBE Yutaka <gniibe@fsij.org>
6983 gpg: Put the first key in candidates correctly.
6984 + commit 44604209c1cfe18532d13eda63d8c1f86a6e12ec
6985 * g10/getkey.c (get_best_pubkey_byname): After the call of
6986 get_pubkey_byname, set up CTX with KEYDB_SEARCH_MODE_LONG_KID to enter
6989 scd,ccid: Add 08e6:34c2 (GEMPC_EZIO).
6990 + commit c933c15d587a1c0df3f4b3bf37d8d15164dd318f
6991 * scd/ccid-driver.c (ccid_transceive_secure): Add pinpad support
6992 for 08e6:34c2 which supports extended APDU exchange.
6994 2019-10-09 NIIBE Yutaka <gniibe@fsij.org>
6996 gpg: The first key should be in candidates.
6997 + commit 7535f1d47a35e30f736f0e842844555f7a4a9841
6998 * g10/getkey.c (get_best_pubkey_byname): Handle the first key
6999 as the initial candidate for the selection.
7001 2019-10-07 Werner Koch <wk@gnupg.org>
7003 kbx: Implement update for the STORE command.
7004 + commit f4bdf8e590877e9bfddfd19a4e4167f6531c9fb1
7005 * kbx/backend-kbx.c (be_kbx_update): New.
7006 * kbx/frontend.c (kbxd_store): Call it.
7008 2019-10-07 NIIBE Yutaka <gniibe@fsij.org>
7010 gpg: Fix a memory leak in get_best_pubkey_byname.
7011 + commit e28572116fe4c586ba9d1e8f27389bf3f06e036b
7012 * g10/getkey.c (get_best_pubkey_byname): Free the public key parts.
7014 2019-10-03 Werner Koch <wk@gnupg.org>
7016 gpg: Ignore all SHA-1 signatures in 3rd party key signatures.
7017 + commit 7d9aad63c4f1aefe97da61baf5acd96c12c0278e
7018 * g10/sig-check.c (check_signature_over_key_or_uid): No cut-off date
7019 and remove debug output.
7021 gpg: Be prepared for chosen-prefix SHA-1 collisions in key signatures.
7022 + commit c4f2d9e3e1d77d2f1f168764fcdfed32f7d1dfc4
7023 * g10/sig-check.c (check_signature_over_key_or_uid): Reject cewrtain
7024 SHA-1 based signatures.
7026 2019-10-01 Werner Koch <wk@gnupg.org>
7028 gpg: Read the UBID from the keybox and detect wrong blob type.
7029 + commit 63dbc817e7dcc6edc757281f09e1ca80500ab2d1
7030 * g10/keydb-private.h (struct keydb_handle_s): Add fields for UBID.
7031 * g10/call-keyboxd.c (search_status_cb): New.
7032 (keydb_search): Set new UBID fields.
7034 kbx: Add first version of STORE command to keyboxd.
7035 + commit c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7
7036 * kbx/Makefile.am (keyboxd_CFLAGS): -DKEYBOX_WITH_X509.
7037 (keyboxd_LDADD): Add libksba.
7038 * kbx/kbxserver.c (cmd_store): New.
7039 * kbx/frontend.c (kbxd_store): New.
7040 * kbx/backend-support.c (is_x509_blob): New.
7041 (be_fingerprint_from_blob): New.
7042 * kbx/backend-kbx.c (be_kbx_seek): Add args FPR and FPRLEN.
7043 (be_kbx_insert): New.
7045 common: New function hex2fixedbuf.
7046 + commit 61765136cf92be2884603bc3fac020a1c6ed91f4
7047 * common/convert.c (hex2fixedbuf): New.
7049 2019-09-30 Werner Koch <wk@gnupg.org>
7051 gpg: Fix --recv-key in case of a given fingerprint.
7052 + commit a605dbb430b1f73ef974ad54f74679dfc0eefb18
7053 * g10/keyserver.c (keyserver_retrieval_screener): Compare against
7056 gpg: Fix expand GPG groups when resolving a key.
7057 + commit ec81c437e71b4c630a799ed29447cc5e3db162cd
7058 * g10/expand-group.c (expand_group): Add arg prepend_input.
7059 * g10/pkclist.c (build_pk_list): Adjust for it.
7060 * g10/getkey.c (key_byname): Keep the expanded names in the CTX and
7061 don't premature free them.
7062 (get_pubkey_byname): Append the namelist to the extra_list.
7064 2019-09-27 Werner Koch <wk@gnupg.org>
7066 gpg: Fix a recently introduced printf format buglet.
7067 + commit b966a7c142ab6341f4149d55e2609dbb9914acec
7068 * g10/parse-packet.c (dump_sig_subpkt): Fix format error.
7070 kbx: Fix error code return in keyboxd.
7071 + commit 8e574130482167dc7d2e2888cc80ad6584345e3d
7072 * kbx/frontend.c (kbxd_add_resource): Print a diagnostic on error.
7073 * kbx/backend-kbx.c (be_kbx_add_resource): Acttually returh the error
7076 kbx: Store the UBIB in the blob.
7077 + commit 0af1c6447dc0f981ab7306e3bef520f37aded167
7078 * kbx/keybox-blob.c (create_blob_header): New blob flag UBIB.
7079 (create_blob_finish): Write the UBIB.
7080 * kbx/keybox-dump.c (print_ubib): New.
7081 (_keybox_dump_blob): Print UBIB flag.
7082 * kbx/keybox-search.c (has_ubid): Compare the stored UBIB if
7085 kbx,gpg: Allow lookup using a UBID.
7086 + commit 4be79b5abeae82b9840e6aa93874f743e13c6df7
7087 * common/userids.c (classify_user_id): Detect UBIDs.
7088 * kbx/backend-cache.c (blob_table_put): Store the public key type.
7089 (be_cache_search): Add search mode for UBIDs.
7090 * kbx/backend.h (struct db_request_part_s): Add cache.seqno_ubid.
7091 * g10/keydb.c (keydb_search_desc_dump): Fix printing of keygrip. Add
7093 * g10/call-keyboxd.c (keydb_search): Support search by UBID.
7095 kbx: First take on a cache for the keyboxd.
7096 + commit 280e9c9cfac31ae5ac874c928eee063cc922e27e
7097 * kbx/backend.h (enum database_types): Add DB_TYPE_CACHE.
7098 (struct db_request_part_s): Add seqno fields.
7099 (struct db_request_s): Add infos for the cache backend.
7100 * kbx/backend-support.c (struct backend_handle_s): Add 'backend_id'.
7101 (strdbtype): Support DB_TYPE_CACHE.
7102 (be_generic_release_backend): Ditto.
7103 (be_find_request_part): New.
7104 (be_return_pubkey): New arg UBID and chnage status name.
7105 * kbx/backend-cache.c: New.
7106 * kbx/backend-kbx.c (be_kbx_init_request_part): New.
7107 (be_kbx_search): Factor some code out to a support function.
7109 * kbx/frontend.c (kbxd_add_resource): Support DB_TYPE_CACHE.
7110 (kbxd_search): Support the NEXR operation with the cache.
7111 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_UBID): New.
7112 (struct keydb_search_desc): Add field u.ubid.
7113 * kbx/keybox-search.c (has_ubid): New.
7114 (keybox_search): Support the UBID search.
7116 2019-09-20 NIIBE Yutaka <gniibe@fsij.org>
7118 build: Build gpg-pair-tool only when there is newer libgcrypt.
7119 + commit bb5ed9fe1abfcbb6128325508366bc802eb576c5
7120 * configure.ac (HAVE_NEWER_LIBGCRYPT): New.
7121 * tools/Makefile.am: Conditionalize build of gpg-pair-tool.
7123 2019-09-19 NIIBE Yutaka <gniibe@fsij.org>
7125 tools: Fix gpg-pair-tool to follow new API.
7126 + commit 7c81e5cb97c77244be164daf7a80e29f6b6e437b
7129 tools: Don't prepare G in gpg-pair-tool.
7130 + commit b928de70e072fce15d7bba39f370d32dd8b74095
7131 * tools/gpg-pair-tool.c (create_dh_keypair): Use NULL for G.
7133 tools: Use new API of libgcrypt for gpg-pair-tool.
7134 + commit f22a00416149448172bf8110d466d65c87962cae
7135 * tools/gpg-pair-tool.c (create_dh_keypair): Just use
7136 gcry_random_bytes for secret. Call gcry_ecc_mul_point
7137 with G to get the public key.
7138 (compute_master_secret): Use gcry_ecc_mul_point.
7140 2019-09-17 NIIBE Yutaka <gniibe@fsij.org>
7142 scd,pcsc: Use HANDLE for context and card.
7143 + commit 49671b76eae2c7d1edb13ed927654d0c11d879f1
7144 * scd/apdu.c (HANDLE): New.
7146 2019-09-12 NIIBE Yutaka <gniibe@fsij.org>
7148 scd: Remove old fallback logic from CCID to PC/SC.
7149 + commit 980d0234d31699e51051e0cc6002ad177b6e7136
7150 * scd/apdu.c (apdu_dev_list_start): Return an error on failure.
7152 scd,pcsc: Support "reader-port" option for PC/SC reader.
7153 + commit 6d750fe7fc4224924f13ef578010a26cdbe0a67b
7154 * scd/apdu.c (apdu_open_reader): Skip use of a reader if it's not the
7155 one specified when it is specified.
7157 scd,pcsc: Remove the restriction of no-scanning in PC/SC.
7158 + commit c569e49d1764d2573aec5684f9cee397bdd8ccb1
7159 * scd/apdu.h (app_open_reader): Remove the last argument.
7160 * scd/apdu.c (app_open_reader): Ditto.
7161 * scd/app.c (select_application): Don't supply APP_EMPTY.
7163 2019-09-11 NIIBE Yutaka <gniibe@fsij.org>
7165 scd,pcsc: Fix examining the list of readers.
7166 + commit 92be4e87eec984a3f3737339c311761d2650c55a
7167 * scd/apdu.c (apdu_dev_list_start): Traverse the string+NUL carefully.
7169 scd,pcsc: Fix for initializing PC/SC.
7170 + commit 441106cdf0fdd310e3b36370186849167db11345
7171 * scd/apdu.c (pcsc_init): Load it at first.
7172 (apdu_open_reader): Check for the CCID internal driver.
7174 scd,pcsc: Support multiple card readers.
7175 + commit e8534f899915a039610973a84042cbe25a5e7ce2
7176 * scd/apdu.c (close_pcsc_reader, apdu_init): Clear pcsc.rdrname.
7177 (pcsc_init): Load of PC/SC module moved from ...
7178 (open_pcsc_reader): ... here.
7179 (apdu_dev_list_start): Add support for PC/SC.
7180 (apdu_dev_list_finish): Likewise.
7181 (apdu_open_reader): Likewise.
7183 scd,pcsc: Use a single context.
7184 + commit 1080e91efd60cb41c2d6dbafaee810e5967a3161
7185 * scd/apdu.c (pcsc): New variable.
7186 (struct reader_table_s): Remove pcsc.context from member.
7187 (pcsc_get_status, connect_pcsc_card): Use pcsc.context.
7188 (close_pcsc_reader): Release pcsc.context here with reference count.
7190 (open_pcsc_reader): Don't call pcsc_establish_context here. Call
7191 close_pcsc_reader instead of pcsc_release_context.
7192 (apdu_open_reader): Call pcsc_init if needed.
7193 (apdu_init): Initialize pcsc.count and pcsc.context.
7195 scd: Clean up the structure for future fix of PC/SC.
7196 + commit f44aa290c1368a3119b2323664c0f356195c4206
7197 * scd/apdu.c (struct dev_list): Rename from ccid_table, with void*.
7198 (open_ccid_reader): Follow the change.
7199 (apdu_dev_list_start, apdu_dev_list_finish): Likewise.
7200 (apdu_open_reader): Likewise.
7201 * scd/ccid-driver.c (ccid_dev_scan): Use void *.
7202 (ccid_dev_scan_finish, ccid_get_BAI, ccid_open_usb_reader): Likewise.
7203 * scd/ccid-driver.h: Change the APIs.
7205 2019-09-10 Werner Koch <wk@gnupg.org>
7207 gpg: First rough implementation of keyboxd access for key lookup.
7208 + commit ce9906b008c94c2aa4ac770a981d1e1e0b8aea47
7209 * g10/Makefile.am: Add nPth flags.
7210 * g10/gpg.c: Include npth.h.
7211 (gpg_deinit_default_ctrl): Deinit call-keyboxd local data.
7213 * g10/keydb-private.h (struct keydb_handle_s): Add field 'kbl' and
7214 remove the search result and the assuan context.
7215 * g10/call-keyboxd.c (struct keyboxd_local_s): Add more fields.
7216 (lock_datastream, unlock_datastream): New.
7217 (gpg_keyboxd_deinit_session_data): Adjust for changed data structures.
7218 (prepare_data_pipe): New.
7219 (open_context): Return kbl instead of an Assuan context. Init mutexes
7221 (close_context): Merge into ...
7222 (keydb_release): here. Adjust for changed data structures.
7223 (datastream_thread): New.
7224 (keydb_get_keyblock): Implement datastream stuff.
7225 (keydb_search): Ditto.
7227 * common/asshelp.c (wait_for_sock): Add arg connect_flags.
7228 (start_new_service): Set FDPASSING flag for the keyboxd.
7230 kbx: Allow fd-passing for the keyboxd.
7231 + commit 6c327b4dd6d8041b84f856ffc2a7d82b352d273f
7232 * kbx/kbxserver.c: Include host2net.h
7233 (struct server_local_s): Add field outstream.
7234 (prepare_outstream): New.
7236 (kbxd_write_data_line): Write to file descrptor. Disable the slow
7237 human reader friendly data line formatting.
7238 (cmd_search, cmd_next): Disable data logging.
7239 (kbxd_start_command_handler): Add OUTPUT command.
7240 * kbx/keyboxd.c (main): Enable log monitor.
7242 common: Allow a readlimit for iobuf_esopen.
7243 + commit 2f0fdab8aabdf408495163ef99b2d4d111f74692
7244 * common/iobuf.c (file_es_filter_ctx_t): Add fields use_readlimit and
7246 (file_es_filter): Implement them.
7247 (iobuf_esopen): Add new arg readlimit.
7248 * g10/decrypt-data.c (decrypt_data): Adjust for change.
7249 * g10/import.c (import_keys_es_stream): Ditto.
7251 2019-09-10 Andre Heinecke <aheinecke@gnupg.org>
7253 doc: Fix distchek for generated eps file.
7254 + commit c69a37dcbdc8db47489fbf744f58bb61399d223f
7255 * doc/Makefile.am (EXTRA_DIST, BUILT_SOURCES): Add
7256 gnupg-module-overview.eps, gnupg-card-architecture.eps
7257 (DISTCLEANFILES): Remove them.
7259 2019-09-09 Werner Koch <wk@gnupg.org>
7261 gpg: New option --use-keyboxd.
7262 + commit aba82684fe14289cf62b4694bc398f3a274b4762
7263 * g10/gpg.c (oUseKeyboxd,oKeyboxdProgram): New consts.
7264 (opts): New options --use-keyboxd and --keyboxd-program.
7265 (main): Implement them.
7266 * g10/keydb.c: Move some defs out to ...
7267 * g10/keydb-private.h: new file.
7268 * g10/keydb.c: prefix function names with "internal" and move original
7270 * g10/call-keyboxd.c: new file. Divert to the internal fucntion if
7271 --use-keyboxd is used. Add a CTRL arg to most fucntions and change
7273 * g10/Makefile.am (common_source): Add new files.
7274 (noinst_PROGRAMS): Do bot build gpgcompose.
7276 kbx: Fix keyboxd search first.
7277 + commit 5e00c1773d8fd44ba95b39a48e12b0ec94ac8cbe
7278 * kbx/kbxserver.c (cmd_next): Switch to mode next if needed.
7280 kbx: Allow searching from start.
7281 + commit 1545b948e1c8e8fa4873d434fb790a88ed96091c
7282 * kbx/kbxserver.c (cmd_search): Detect empty pattern.
7284 2019-09-06 Stephan Mueller <smueller@chronox.de>
7286 gpg: expand GPG groups when resolving a key.
7287 + commit e825aea2ba3529c333d7ec2c76e63998cb83d999
7288 * g10/expand-group.c: New
7289 * g10/pkclist.c: Extract expand_group and expand_id into expand-group.c.
7290 * g10/keydb.h: Add prototypes of expand_id and expand_group.
7291 * g10/getkey.c: Use expand_group before resolving key references.
7292 * g10/Makefile.am: Compile expand-group.c.
7294 2019-09-06 Werner Koch <wk@gnupg.org>
7296 gpg: Make --quiet work on --send-keys.
7297 + commit d9c4c3776b8ec3261e13693e230dd480b1127b18
7298 * g10/keyserver.c (keyserver_put): Act upon --quiet.
7300 2019-09-05 Werner Koch <wk@gnupg.org>
7302 gpg: Prepare parser for the new attestation certificates.
7303 + commit 209caaff66fbe96df144e6b1474435992e087fa4
7304 * common/openpgpdefs.h (SIGSUBPKT_ATTST_SIGS): New.
7305 * g10/keydb.h (IS_ATTST_SIGS): New.
7306 (IS_CERT): Include the new one.
7307 * g10/sign.c (mk_notation_policy_etc): Do not put notations into
7308 attestation key signatures.
7309 * g10/parse-packet.c (dump_sig_subpkt): Add new arg digest_algo.
7310 Print the attestation sigs.
7311 (parse_one_sig_subpkt): Support SIGSUBPKT_ATTST_SIGS.
7312 (can_handle_critical): Ditto.
7313 (enum_sig_subpkt): Pass digest algo to dump_sig_subpkt.
7315 gpg: Rework the signature subpacket iteration function.
7316 + commit e1d9be730ca07e10a20df5ef60d7562030f10676
7317 * g10/parse-packet.c (enum_sig_subpkt): Replace first arg by two args
7318 so that the entire signature packet is available. Change all callers.
7319 (parse_sig_subpkt): Ditto.
7321 scd: Implement auto-switching between Yubikey apps.
7322 + commit 7febb4f2476742936b829424ad23df662b37f4b4
7323 * scd/app.c (apptype_from_keyref): New.
7324 (maybe_switch_app): Add arg 'keyref' and use this also for switching.
7325 Change all callers to pass a keyref if needed.
7327 scd:openpgp: Avoid PIN caching issues after re-select.
7328 + commit 5d9eb060b764d45152edb266cd8a08f5724ad709
7329 * scd/app-openpgp.c (do_reselect): Clear PIN cache flags.
7331 scd:piv: Allow the keygrip as alternative to a keyref.
7332 + commit 947b44e835dec5967d400a9391d8746fb3f759df
7333 * scd/app-piv.c (find_dobj_by_keyref): Allow the keygrip as input.
7335 scd: Improve locking of app_do_with_keygrip.
7336 + commit c8d739a356d3dacdf63fa2d722d117401cf52caf
7337 * scd/app.c (app_do_with_keygrip): Lock once per card.
7339 scd: New debug flag "app".
7340 + commit 4e701953fec6efb10aaf34373e648b1dcafba054
7341 * scd/scdaemon.h (DBG_APP_VALUE, DBG_APP): New.
7342 * scd/scdaemon.c (debug_flags): Add "app".
7343 * scd/app.c (xstrapptype): New.
7344 (app_readcert, app_readkey, app_getattr): Add debug output.
7345 (app_setattr, app_sign, app_auth): Ditto.
7346 (app_writecert, app_writekey, app_change_pin): Ditto.
7347 (app_check_pin): Ditto.
7349 2019-09-05 NIIBE Yutaka <gniibe@fsij.org>
7351 agent: Fix ask_for_card to allow a key on multiple cards.
7352 + commit 9f39e0167d0642bcfb9bcabcbc7f8160b39a20ee
7353 * agent/divert-scd.c (ask_for_card): Don't use SERIALNO to select
7354 card, but use KEYGRIP.
7356 2019-09-04 Werner Koch <wk@gnupg.org>
7358 scd: New sub-command cmd_has_option for GETINFO.
7359 + commit fed9c93e05af4aeeb2fe9af81200fc7a745f2dec
7360 * scd/command.c (cmd_getinfo): Add cmd_has_option sub-command.
7362 scd: Add option --all to the SERIALNO command.
7363 + commit 9a0d8f2d8906d2f37c2755c4695b91c27c8acc2f
7364 * scd/command.c (cmd_serialno): Add option --all.
7365 (open_card_with_request): Implement that option.
7366 * scd/app.c (select_all_additional_applications_internal): New.
7367 (select_additional_application): Add mode to call new function.
7369 scd: Fix Error checking in additioal app selection.
7370 + commit fa258379424c6d48538b054b8dc7c1ab5c2d4290
7371 * scd/app.c (select_additional_application): Return error for unknown
7374 scd: Add option --multi to the LEARN command.
7375 + commit 5cf5a04bae03d622a42753735c60dfab3b24ade8
7376 * scd/app-common.h (APP_LEARN_FLAG_MULTI): New.
7377 * scd/command.c (cmd_learn): Add option --multi.
7378 * scd/app.c (app_write_learn_status): Factor some code out to ...
7379 (write_learn_status_core): new.
7380 (app_write_learn_status): Implement flag --multi.
7382 scd: Use a macro for the flag parameter of learn_status.
7383 + commit 2cdea776cd6db13c8f4ff45c89bd3292f216b186
7384 * scd/app-common.h (APP_LEARN_FLAG_KEYPAIRINFO): New flag macro..
7385 * scd/command.c (cmd_learn): Pass that flag instead of a plain number.
7386 * scd/app-nks.c (do_learn_status_core): Use new flag.
7387 * scd/app-p15.c (do_learn_status): Ditto.
7388 * scd/app-piv.c (do_learn_status): Ditto.
7389 * scd/app-sc-hsm.c (do_learn_status): Ditto.
7390 * scd/app.c (app_write_learn_status): Ditto.
7392 2019-08-23 Werner Koch <wk@gnupg.org>
7394 gpg,sm: Implement keybox compression run and release lock in gpgsm.
7395 + commit e64f0dfd72de548837f630bccd249a87451b89c5
7396 * g10/keydb.c (keydb_add_resource): Call keybox_compress.
7397 * sm/keydb.c (keydb_add_resource): Release the lock after a compress.
7399 kbx: Include deleted records into the --stats output.
7400 + commit 5ef0d7a795cf2462314ea0cb72c7efa7243ab405
7401 * kbx/keybox-dump.c (_keybox_dump_file): Take deleted records in
7404 kbx: Fix regression in compression trigger from July 18.
7405 + commit 30aaa4ba007210aa043c3d524415495a4d9fd17f
7406 * kbx/keybox-update.c (keybox_compress): Change condition back.
7407 Also use make_timestamp for CUT_TIME.
7409 gpg: Allow --locate-external-key even with --no-auto-key-locate.
7410 + commit d058d80ed0d5edeff6d85108054b1dfd45ddad7d
7411 * g10/getkey.c (akl_empty_or_only_local): New.
7412 * g10/gpg.c (DEFAULT_AKL_LIST): New.
7413 (main): Use it here.
7414 (main) <aLocateExtKeys>: Set default AKL if none is set.
7416 gpg: Silence some warning messages during -Kv.
7417 + commit d7aca1bef68589134b36395901b92496a7a37392
7418 * g10/options.h (glo_ctrl): Add flag silence_parse_warnings.
7419 * g10/keylist.c (list_all): Set that during secret key listsings.
7420 * g10/parse-packet.c (unknown_pubkey_warning): If new flag is set do
7421 not print info message normally emitted inh verbose mode.
7422 (can_handle_critical_notation, enum_sig_subpkt): Ditto.
7423 (parse_signature, parse_key, parse_attribute_subpkts): Ditto.
7425 gpg: Do not show two informational diagnostics with quiet.
7426 + commit f14ddeb89c4519cd7ccf52c4595b93ab11ccbda1
7427 * g10/trustdb.c (verify_own_keys): Silence informational diagnostic.
7429 gpgconf: Suggest the use of --gpgconf-test on --launch problems.
7430 + commit 2a45800b2f8043d2533403eaadf8736d15ad7017
7431 * tools/gpgconf-comp.c (gc_component_launch): Change suggestion.
7433 2019-08-22 Werner Koch <wk@gnupg.org>
7435 gpg: Extend --quick-gen-key for creating keys from a card.
7436 + commit d3f5d8544fdb43082ff34b106122bbf0619a0ead
7437 * g10/keygen.c (parse_key_parameter_part): Add arg R_KEYGRIP and
7438 support the special algo "card".
7439 (parse_key_parameter_string): Add args R_KEYGRIP and R_SUBKEYGRIP.
7440 Handle the "card" algo. Adjust callers.
7441 (parse_algo_usage_expire): Add arg R_KEYGRIP.
7442 (quickgen_set_para): Add arg KEYGRIP and put it into the parameter
7444 (quick_generate_keypair): Handle algo "card".
7445 (generate_keypair): Also handle the keygrips as returned by
7446 parse_key_parameter_string.
7447 (ask_algo): Support ed25519 from a card.
7449 2019-08-22 NIIBE Yutaka <gniibe@fsij.org>
7451 gpg: Factor export_ssh_key.
7452 + commit 6f760e6eb0e8820d386b33c28cb14210adfc6aef
7453 * g10/export.c (export_one_ssh_key): Factor out.
7454 (export_ssh_key): Use export_one_ssh_key.
7456 dns: Fix irrelevant use of tmpfile.
7457 + commit e00e68135c01351ed66fed3c4453a1b13c8d522f
7458 * dirmngr/dns.c (dns_trace_open): Don't use tmpfile.
7460 2019-08-21 Werner Koch <wk@gnupg.org>
7462 gpg: In a list of card keys show the standard keys.
7463 + commit ce403c74dbc9c027b823910f22338269e625f76f
7464 * g10/keygen.c (ask_algo): Identify the standard keys.
7466 scd:nks: Extend keypairinfo with usage flags.
7467 + commit 0d2c9ef29c1741845df2d56f0024f87eab42efb3
7468 * scd/app-nks.c (do_learn_status_core): Return usage.
7470 (cherry picked from commit 0a9053eff0406c6799ee201013194200c0ed3487)
7472 scd:nks: Support attributes $ENCRKEYID and $SIGNKEYID.
7473 + commit 671e54d62c39a9e196d13714cb67c2f3c38f2fa0
7474 * scd/app-nks.c (do_getattr): Add new attributes.
7476 gpg: New option --use-only-openpgp-card.
7477 + commit c97c2e578dd173ef5e7916a3aa539b3a65a7d86d
7478 * g10/gpg.c (opts): Add option.
7480 * g10/options.h: Add flags.use_only_openpgp_card.
7481 * g10/call-agent.c (start_agent): Implement option.
7483 2019-08-21 NIIBE Yutaka <gniibe@fsij.org>
7485 scd: Fix check_application_conflict.
7486 + commit 6fae96094c973be880919f3a7798ca69d9365b69
7487 * scd/scd/app.c (check_application_conflict): Compare APPTYPE.
7489 scd: Fix selecting additional APP.
7490 + commit 8dc19d35e854264cfe503cdbb9e5ccafa9bc97d0
7491 * scd/app.c (select_additional_application_internal): Factor out.
7492 (select_additional_application): Getting the lock and call
7493 select_additional_application_internal, set current_apptype, then.
7494 (select_application): Call select_additional_application_internal
7497 scd: Fix how select_additional_application is called.
7498 + commit 4781c4a86608b57f9d1daf55b9b2970130fe6120
7499 * scd/app.c (check_application_conflict): Check against current APP.
7500 (select_additional_application): Update current_apptype of CTRL.
7502 scd: Fix resetting CARD_CTX.
7503 + commit 09d000babb71990ef1b3f42017a67516bb994388
7504 * scd/app.c (deallocate_card): Don't call scd_clear_current_app.
7505 (card_reset): Reset ctrl->current_apptype.
7506 * scd/command.c (open_card_with_request): Likewise.
7507 (send_client_notifications): Likewise.
7508 (scd_clear_current_app): Remove.
7510 scd: Fix switching to another APP.
7511 + commit d4f135c34b332f1f833617a7f1ef0bdbff5eb589
7512 * scd/app.c (select_additional_application): Initialize card of APP.
7513 Break after the selection.
7514 Don't free APP if success.
7516 2019-08-20 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
7518 doc: fix minor spelling and tense errors.
7519 + commit b7793c3af32b2d99359022f805636953a50d8c68
7520 * doc/{gpg,gpgsm,wks}.texi: minor orthographic cleanup.
7522 doc: clarify CARD event counter.
7523 + commit cba6e1bd7242e8b8c6822f4e93368cb315b5524b
7524 * doc/gpg-agent.texi: improve documentation of CARD entry in
7525 GETEVENTCOUNTER description.
7527 2019-08-08 Andre Heinecke <aheinecke@intevation.de>
7529 speedo, w32: Add w32-wixlib target for MSI package.
7530 + commit 0b7088dc8035e8d5832c89085eea3b288de67710
7531 * Makefile.am (EXTRA_DIST): Add wixlib.wxs
7532 * build-aux/speedo.mk (w32-wixlib): New target.
7533 (w32-release): Build wixlib if WIXPREFIX is set.
7534 (help): Add documentation.
7535 * build-aux/speedo/w32/wixlib.wxs
7537 2019-08-08 Werner Koch <wk@gnupg.org>
7539 build: Sign all Windows binaries.
7540 + commit 4964691861796ad6e7bd59dd553a617f68676b2b
7541 * build-aux/speedo.mk (AUTHENTICODE_SIGNHOST): New.
7542 (AUTHENTICODE_TOOL): New.
7543 (AUTHENTICODE_FILES): New.
7544 (installer): Sign listed files.
7545 (AUTHENTICODE_SIGNHOST): New macro.
7546 (sign-installer): Use that macro instead of direct use of osslsigncode.
7548 2019-08-07 NIIBE Yutaka <gniibe@fsij.org>
7550 scd: Remove fallback mechanism to PC/SC.
7551 + commit 100642e776964219936e493315eb8b7c99742f41
7552 * scd/apdu.c [HAVE_LIBUSB] (apdu_open_reader): Simply let it fail.
7554 2019-08-06 NIIBE Yutaka <gniibe@fsij.org>
7556 agent: Fix an error path of agent_get_confirmation.
7557 + commit bb82ad018a7bf93bd704cf44e51cd086e41a4ad5
7558 * agent/call-pinentry.c (agent_get_confirmation): Make sure
7559 unlock_pinentry is always called.
7561 2019-08-06 Werner Koch <wk@gnupg.org>
7563 kbx: Add framework for the SEARCH command.
7564 + commit 5ea6250cc5761612d17ca4fb34eed096f26e2826
7565 * kbx/backend-kbx.c: New.
7566 * kbx/backend-support.c: New.
7567 * kbx/backend.h: New.
7568 * kbx/frontend.c: New.
7569 * kbx/frontend.h: New.
7570 * kbx/kbxserver.c: Implement SEARCH and NEXT command.
7571 * kbx/keybox-search-desc.h (enum pubkey_types): New.
7572 * kbx/keybox-search.c (keybox_get_data): New.
7573 * kbx/keyboxd.c (main): Add a standard resource.
7575 kbx: Allow writing using a estream.
7576 + commit 1f980d23af8b818ed8246ec6bf13b9c61b963ec0
7577 * kbx/keybox-file.c (_keybox_write_header_blob): New optional arg
7578 stream. Change callers.
7580 tools: New option --keyboxd for gpg-connect-agent.
7581 + commit 0611f548bcd3c772084d6c3111dc88a09a67f65a
7582 * configure.ac: New option --keyboxd-pgm.
7583 (KEYBOXD_NAME, KEYBOXD_DISP_NAME): New ac_defines.
7584 * common/util.h: Add substitutes for new error codes.
7585 (GNUPG_MODULE_NAME_KEYBOXD): New.
7586 * common/homedir.c (gnupg_module_name): Support
7587 GNUPG_MODULE_NAME_KEYBOXD.
7588 * common/asshelp.c (SECS_TO_WAIT_FOR_KEYBOXD): New.
7589 (wait_for_sock): Support keyboxd.
7590 (start_new_service): Ditto.
7591 (start_new_keyboxd): New.
7592 * tools/gpg-connect-agent.c: New options --keyboxd and
7594 (start_agent): Implement new option.
7596 2019-08-06 NIIBE Yutaka <gniibe@fsij.org>
7598 common: Fix line break handling, finding a space.
7599 + commit f588dd8d1766de48c90a5501cf2d537f256d003e
7600 * common/name-value.c (assert_raw_value): Correctly find a space.
7602 gpg: Don't report NO_SECKEY for valid key.
7603 + commit d8a49bbcd1b1d40ab0ddadac0dbb16a5d75c626e
7604 * g10/mainproc.c (proc_encrypted): Report status of STATUS_NO_SECKEY
7605 only when some error occurred.
7607 2019-08-05 Werner Koch <wk@gnupg.org>
7609 common: Remove code duplication for service starting.
7610 + commit e22ebf357050f98558b428502a565fc3dc256932
7611 * common/homedir.c (gpg_agent_socket_name): New.
7612 * common/asshelp.c (start_new_service): New. Based on
7613 start_new_gpg_agent.
7614 (start_new_gpg_agent): Divert to start_new_service.
7615 (start_new_dirmngr): Ditto.
7617 2019-08-05 NIIBE Yutaka <gniibe@fsij.org>
7619 sm: Support AES-256 key.
7620 + commit ef2424144a070c9199e40424ec8d9b5a9919aa72
7621 * sm/decrypt.c (prepare_decryption): Handle a case for AES-256.
7623 2019-08-02 Werner Koch <wk@gnupg.org>
7625 common: Change yet unused status_printf function.
7626 + commit d8a84594abe4be933756db07b987dc8bcd79c8b9
7627 * common/asshelp2.c (status_printf): Rename to status_no_printf.
7628 (status_printf): New.
7630 2019-07-26 NIIBE Yutaka <gniibe@fsij.org>
7632 sm: Fix error checking of decryption result.
7633 + commit 15fe78184cc66ce6e657a6e949a522d7821f8a1c
7634 * sm/call-agent.c (gpgsm_agent_pkdecrypt): Fix condition.
7636 2019-07-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
7638 gpg,gpgsm: Handle pkdecrypt responses with/without NUL terminators.
7639 + commit 3ba091ab8c93c87741a451f579d63dd500d7621d
7640 * g10/call-agent.c (agent_pkdecrypt): accept but do not require
7641 NUL-terminated data from the agent.
7642 * sm/call-agent.c (gpgsm_agent_pkdecrypt): accept but do not require
7643 NUL-terminated data from the agent.
7645 2019-07-25 NIIBE Yutaka <gniibe@fsij.org>
7647 gpg: photoid: Use standard spawn API.
7648 + commit fd9e6ae22eb93aa5140b56e1b0fa14e6402d6099
7649 * g10/photoid.c (exec_write, exec_read, exec_finish): Remove.
7650 (setup_input_file): Rename from make_tempdir.
7651 (expand_args): Drop support of 'o' and 'O'.
7652 (fill_command_argv, run_with_pipe, create_temp_file) New.
7653 (show_photo): New with gnupg_spawn_process_fd and gnupg_wait_process.
7654 (show_photos): Call show_photo.
7656 gpg: photoid: Move functions from exec.c.
7657 + commit c57c5004ec6cc7dc7b7a4f250516199a8a1e31fc
7658 * g10/exec.c (w32_system): Expose to public.
7659 (exec_write, exec_read, exec_finish, make_tempdir, expand_args): Move
7661 * g10/exec.h: Likewise.
7662 * g10/photoid.c (exec_write, exec_read, exec_finish, make_tempdir)
7663 (expand_args): Move here.
7665 scd: Handle CCID bwi of time extension.
7666 + commit 996c497a864d820af06333014b2c5f74d1054866
7667 * scd/ccid-driver.c (bulk_in): Increase timeout by the multiplier
7668 value as defined section 6.2.6 in CCID specification.
7670 scd: Fix bBWI value.
7671 + commit 858dc9564326e65e6d8771af160d4513aea1e4eb
7672 * scd/ccid-driver.c (ccid_transceive_apdu_level): Use bBWI=0 for APDU
7674 (ccid_transceive): Use bBWI=0 or the value returend by WTX for TPDU
7677 2019-07-24 NIIBE Yutaka <gniibe@fsij.org>
7679 common: Fix the previous commit.
7680 + commit 044379772fc5b0f39c6a36809722e702808b6ec3
7681 * common/asshelp.c [HAVE_W32_SYSTEM] (start_new_gpg_agent): Use
7682 gnupg_spawn_process_detached.
7683 (start_new_dirmngr): Likewise.
7685 common: Use gnupg_spawn_process_fd to invoke gpg-agent/dirmngr.
7686 + commit b1c56cf9e2bb51abfd47747128bd2a6285ed1623
7687 * common/asshelp.c (start_new_gpg_agent): Call gnupg_spawn_process_fd
7688 and gnupg_wait_process.
7689 (start_new_dirmngr): Likewise.
7691 common,w32: Fix cast from gnupg_fd_t to call _open_osfhandle.
7692 + commit a64411c607d5450e786c3207b9023394574c979b
7693 * common/sysutils.c (translate_sys2libc_fd): Use intptr_t.
7694 (gnupg_tmpfile): Likewise.
7696 2019-07-23 NIIBE Yutaka <gniibe@fsij.org>
7698 gpg: A little clean up.
7699 + commit 7bfbb9fa7e7693cd7f19a8d130aa0a9a82825d5d
7700 * g10/keyserver.c: Don't include exec.h.
7701 * g10/photoid.c (image_type_to_string): It's constant.
7702 * g10/photoid.h (image_type_to_string): Likewise.
7704 2019-07-22 NIIBE Yutaka <gniibe@fsij.org>
7706 scd: Error code map fix for older Yubikey.
7707 + commit 13bc0431ff1ce51246694208df611cc4561fb4b3
7708 * scd/iso7816.c (map_sw): Recognize 6A86.
7710 2019-07-19 NIIBE Yutaka <gniibe@fsij.org>
7712 gpg: The option --passphrase= can be empty.
7713 + commit fcd766719a6e8f18f4be4c0f91e12aa157ca5506
7714 * g10/gpg.c (opts): Use ARGPARSE_o_s for oPassphrase to allow
7717 card: Fix showing KDF object attribute.
7718 + commit 98f4eff7ffde106ae4f60739d1104282430ac14f
7719 * g10/call-agent.c (learn_status_cb): Parse the KDF DO.
7720 * g10/card-util.c (current_card_status): Show it correctly.
7722 scd: Support "[CHV3]" attribute for keyid string.
7723 + commit 57565d5f975d3c00853bb49678d63ee8b896b741
7724 * scd/app-openpgp.c (check_keyidstr0: Relax the check.
7726 card: Support disabling KDF functionality.
7727 + commit 9c0cd9d07546698ab66cedd06c503e6b698593f9
7728 * g10/card-util.c (kdf_setup): Can be "off".
7730 2019-07-18 Werner Koch <wk@gnupg.org>
7732 kbx: Allow "gpgsm --faked-system-time" to kick off a compression run.
7733 + commit 824ca6f042dc69edaf67bf9d4e875be75babab00
7734 * kbx/keybox-update.c (keybox_compress): Use make_timestamp.
7736 2019-07-18 NIIBE Yutaka <gniibe@fsij.org>
7738 gpg: More check for symmetric key encryption.
7739 + commit 44be675b759d27bac310c2de8bae1b7882a26b65
7740 * g10/dek.h (DEK): Use debugger friendly type of unsigned int.
7741 * g10/mainproc.c (symkey_decrypt_seskey): Add another check.
7743 2019-07-16 NIIBE Yutaka <gniibe@fsij.org>
7745 doc: Fix description of the field 11.
7746 + commit 4195ce15f4942245a29ef20ace42ad0f27e82ffd
7749 dirmngr: Don't add system CAs for SKS HKPS pool.
7750 + commit 75e0ec65170b7053743406e3f3b605febcf7312a
7751 * dirmngr/http.c [HTTP_USE_GNUTLS] (http_session_new): Clear
7754 2019-07-12 Werner Koch <wk@gnupg.org>
7756 scd: Remove useless GNUPG_SCD_MAIN_HEADER macro.
7757 + commit fb1c8978f57b8f92e2ea9d10afc1d133656c9706
7758 * scd/apdu.c (): Remove never set and useless macro.
7759 * scd/ccid-driver.c: Ditto.
7760 * scd/iso7816.c: Ditto.
7762 2019-07-12 NIIBE Yutaka <gniibe@fsij.org>
7764 doc: Dependencies for figures are only for maintainers.
7765 + commit 58bab1a8784b0dbae70b5d74757cd56484292d1c
7766 * doc/Makefile.am [MAINTAINER_MODE] (.svg.eps, etc.): Enable only
7767 when maintainer-mode.
7769 Fix a reference in comment.
7770 + commit 4e601c7643fcfa3d8babcce58daa4c6c6a42d338
7771 * common/openpgp-s2k.c: Fix.
7773 gpg: Don't try decryption by session key when NULL.
7774 + commit 89303b9998ea30d87b4c60dd48097dbe5e986a89
7775 * g10/mainproc.c (proc_encrypted): Only call get_session_key when
7776 PKENC_LIST is not NULL.
7777 Return GPG_ERR_BAD_KEY, instead of GPG_ERR_NO_SECKEY, when
7778 it's encrypted only by symmetric key.
7780 2019-07-11 NIIBE Yutaka <gniibe@fsij.org>
7782 agent: Relax the handling of pinentry error for keyboard grab.
7783 + commit 02d8b383833bac0382e910a2058b11b127acfd4d
7784 * agent/call-pinentry.c (start_pinentry): It's not fatal when
7785 pinentry doesn't support no-grab/grab option.
7787 scd: Fix internal CCID driver, so that -DTEST works.
7788 + commit b31060425226b45deb21915bf5cd8b6ba62bd098
7789 * scd/ccid-driver.c: Support a test program by ccid-driver.
7791 scd: Fix debug logging of the internal CCID driver.
7792 + commit 2536bf276189a474a3a1ca9716368cf5d991b0d6
7793 * scd/ccid-driver.c [GNUPG_MAJOR_VERSION] (DEBUGOUT): Use log_debug.
7795 gpg: Fix getting User ID.
7796 + commit 29c7fb4053d207c163802642babbdbb6f885727e
7797 * g10/getkey.c (user_id_db): Remove, as no use anymore.
7798 (get_user_id_string): Use cache_get_uid_bykid.
7799 (get_user_id_byfpr): Use cache_get_uid_byfpr.
7800 * g10/objcache.c (cache_get_uid_byfpr): New.
7801 * g10/objcache.h (cache_get_uid_byfpr): New.
7803 2019-07-10 NIIBE Yutaka <gniibe@fsij.org>
7805 gpg: Improve import slowness.
7806 + commit 33c17a8008c3ba3bb740069f9f97c7467f156b54
7807 * g10/import.c (read_block): Avoid O(N^2) append.
7808 (sec_to_pub_keyblock): Likewise.
7810 gpg: Fix keyring retrieval.
7811 + commit a7a043e82555a9da984c6fb01bfec4990d904690
7812 * g10/keyring.c (keyring_get_keyblock): Avoid O(N^2) append.
7814 2019-07-09 Werner Koch <wk@gnupg.org>
7816 gpg: Do not try the import fallback if the options are already used.
7817 + commit a29156d5a650702ad79fe11f45782bc4bc159c13
7818 * g10/import.c (import_one): Check options.
7820 gpg: Fix regression in option "self-sigs-only".
7821 + commit eec150eca78a053193a0994a96482791b5da36be
7822 * g10/import.c (read_block): Make sure KEYID is availabale also on a
7825 2019-07-09 NIIBE Yutaka <gniibe@fsij.org>
7827 sm: Fix card access.
7828 + commit 37d758e5f2b5d07dc937098cf48096cf35ea61e4
7829 * sm/call-agent.c (gpgsm_scd_pksign): Cast to integer for %b.
7831 scd: ccid-driver: Initial getting ATR more robustly.
7832 + commit c51a5685554a06e00ae1e99070b44613b2f8d417
7833 * scd/ccid-driver.c (send_power_off): New.
7834 (do_close_reader): Use send_power_off.
7835 (ccid_get_atr): Add error recovery.
7837 2019-07-08 NIIBE Yutaka <gniibe@fsij.org>
7839 scd: Fix keygrip search.
7840 + commit 39c40e572c5632f836d089dce49224f947244bf2
7841 * scd/app.c (app_do_with_keygrip): Break the entire loop.
7843 2019-07-05 Werner Koch <wk@gnupg.org>
7845 gpg: With --auto-key-retrieve prefer WKD over keyservers.
7846 + commit 96bf8f477805bae58cfb77af8ceba418ff8aaad9
7847 * g10/mainproc.c (check_sig_and_print): Print a hint on how to make
7848 use of the preferred keyserver. Remove keyserver lookup just by the
7849 keyid. Try a WKD lookup before a keyserver lookup.
7851 wkd: Change client/server limit back to 64 KiB.
7852 + commit b0e8724b102535c27a8c973ec038d340858a8eb8
7853 * tools/wks-receive.c (decrypt_data): Change limit.
7855 2019-07-05 NIIBE Yutaka <gniibe@fsij.org>
7857 sm: Return the last error for pubkey decryption.
7858 + commit 38b9da7de3350b1e56b85a058cdb1fdded78cf6d
7859 * sm/decrypt.c: Use TMP_RC for ksba_cms_get_issuer_serial,
7860 and return the last error when no key is available.
7861 Fix the error report with TMP_RC for second call of
7862 ksba_cms_get_issuer_serial.
7864 gpg: Return the last error for pubkey decryption.
7865 + commit 6cc4119ec03be61c78189a0bec99372035289b91
7866 * g10/mainproc.c (proc_encrypted): Check ->result against -1.
7867 When c->dek == NULL, put GPG_ERR_NO_SECKEY only when not set.
7868 * g10/pubkey-enc.c (get_session_key): Set k->result by the result of
7870 When no secret key is available for some reasons, return the last
7871 specific error, if any.
7873 2019-07-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
7875 dirmngr: fix handling of HTTPS redirections during HKP.
7876 + commit 064aeb14c9b869e114e9ec789526fad8da657230
7877 * dirmngr/ks-engine-hkp.c (send_request): Reinitialize HTTP session when
7878 following a HTTP redirection.
7880 2019-07-04 Werner Koch <wk@gnupg.org>
7882 gpg: Add "self-sigs-only" and "import-clean" to the keyserver options.
7883 + commit 23c978640812d123eaffd4108744bdfcf48f7c93
7884 * g10/gpg.c (main): Change default.
7886 gpg: Avoid printing false AKL error message.
7887 + commit 91a6ba32347a21c9029728eec96b8ff80f944629
7888 * g10/getkey.c (get_pubkey_byname): Add special traeatment for default
7891 gpg: New command --locate-external-key.
7892 + commit d00c8024e58822e0623b3fad99248ce68a8b7725
7893 * g10/gpg.c (aLocateExtKeys): New.
7894 (opts): Add --locate-external-keys.
7895 (main): Implement that.
7896 * g10/getkey.c (get_pubkey_byname): Implement GET_PUBKEY_NO_LOCAL.
7897 (get_best_pubkey_byname): Add arg 'mode' and pass on to
7898 get_pubkey_byname. Change callers.
7899 * g10/keylist.c (public_key_list): Add arg 'no_local'.
7900 (locate_one): Ditto. Pass on to get_best_pubkey_byname.
7902 gpg: Make the get_pubkey_byname interface easier to understand.
7903 + commit 9980f81da765f88a65604ab083563bf15ccdb425
7904 * g10/keydb.h (enum get_pubkey_modes): New.
7905 * g10/getkey.c (get_pubkey_byname): Repalce no_akl by a mode arg and
7908 2019-07-03 Werner Koch <wk@gnupg.org>
7910 dirmngr: Avoid endless loop in case of HTTP error 503.
7911 + commit 8b113bb148f273524682252233b3c65954e1419e
7912 * dirmngr/ks-engine-hkp.c (SEND_REQUEST_EXTRA_RETRIES): New.
7913 (handle_send_request_error): Use it for 503 and 504.
7914 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Pass a new var for
7917 dirmngr: Do not rewrite the redirection for the "openpgpkey" subdomain.
7918 + commit 37f0c55c7be3fc4912237f2bc72466aef6f8aa36
7919 * dirmngr/http.c (same_host_p): Consider certain subdomains to be the
7922 2019-07-02 Peter Lebbing <peter@digitalbrains.com>
7924 Mention --sender in documentation.
7925 + commit cf92f7d96f83e5af7d2c232c8450c2c7d900ade8
7928 2019-07-01 Werner Koch <wk@gnupg.org>
7930 gpg: Fallback to import with self-sigs-only on too large keyblocks.
7931 + commit 3a403ab04eeb45f12b34f9d9c421dac93eaf2160
7932 * g10/import.c (import_one): Rename to ...
7933 (import_one_real): this. Do not print and update stats on keyring
7935 (import_one): New. Add fallback code.
7937 gpg: New import and keyserver option "self-sigs-only"
7938 + commit 2e349bb6173789e0e9e42c32873d89c7bc36cea4
7939 * g10/options.h (IMPORT_SELF_SIGS_ONLY): New.
7940 * g10/import.c (parse_import_options): Add option "self-sigs-only".
7941 (read_block): Handle that option.
7943 gpg: Make read_block in import.c more flexible.
7944 + commit 894b72d796c826b1c7e1df788e16874cd051e672
7945 * g10/import.c: Change arg 'with_meta' to 'options'. Change callers.
7947 2019-07-01 NIIBE Yutaka <gniibe@fsij.org>
7949 tools: gpgconf: Killing order is children-first.
7950 + commit 7c877f942a344e7778005840ed7f3e20ace12f4a
7951 * tools/gpgconf-comp.c (gc_component_kill): Reverse the order.
7953 2019-06-28 NIIBE Yutaka <gniibe@fsij.org>
7955 agent: Close a dialog cleanly when gpg/ssh is killed for CONFIRM.
7956 + commit 374a0775546b6241ca2dd10836202c50300d8e91
7957 * agent/call-pinentry.c (watch_sock_start): Factor out
7959 (watch_sock_end): Likewise.
7960 (do_getpin): Use those functions.
7961 (agent_get_confirmation): Likewise.
7962 (popup_message_thread): Likewise.
7964 2019-06-25 Werner Koch <wk@gnupg.org>
7966 scd: Do not conflict if a card with another serialno is demanded.
7967 + commit 92ba831758cff0262504ac51e5df7a439844327c
7968 * scd/app.c (check_application_conflict): Add args to pass a serialno.
7969 * scd/command.c (open_card_with_request): Pass the serialno to
7970 check_application_conflict.
7972 scd: Return a stable list with "getinfo card_list".
7973 + commit c8e62965bc90eabff5c4b7cb349bd8e41584c01b
7974 * scd/app.c (compare_card_list_items): New.
7975 (app_send_card_list): Sort the card objects by slot.
7977 scd: Add an re-select mechanism to switch apps.
7978 + commit d803b3bb3c084b6bce4d2bd161db50dc45442e5b
7979 * scd/app-common.h (struct app_ctx_s): Add func ptr 'reselect'.
7980 * scd/app-piv.c (do_reselect): New.
7981 (app_select_piv): Move AID constant to file scope.
7982 * scd/app-openpgp.c (do_reselect): New.
7983 (app_select_openpgp): Move AID constant to file scope.
7984 * scd/app.c (apptype_from_name): New.
7985 (check_application_conflict): Check against all apps of the card.
7986 Always set current_apptype.
7987 (select_additional_application): New.
7988 (maybe_switch_app): New.
7989 (app_write_learn_status, app_readcert, app_readkey, app_getattr)
7990 (app_setattr, app_sign, app_auth, app_decipher, app_writecert)
7991 (app_writekey, app_genkey, app_change_pin, app_check_pin): Use it here.
7992 (app_do_with_keygrip): Force reselect on success.
7993 (app_new_register): Move setting of CURRENT_APPTYPE to ...
7994 (select_application): here so that it will be set to the requested
7996 * scd/command.c (open_card_with_request): Select additional
7997 application if possible.
7999 2019-06-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8001 spelling: Fix "synchronize"
8002 + commit d7d1ff45574ed935d07642964a529a358b11a1a7
8005 2019-06-21 Werner Koch <wk@gnupg.org>
8007 scd: Take the card look while running app->with_keygrip.
8008 + commit b304c006a3c9ba186fb2510859df7f02a0acad25
8009 * scd/app.c (app_do_with_keygrip): Lock the card.
8011 scd: Take the lock earlier in the function dispatchers.
8012 + commit 0400a4eb1782e7a4aea5b04492c93939c6b9799a
8013 * scd/app.c: Chnage all function dispatcher.
8015 scd: Add code to check whether app switching is possible.
8016 + commit 1b78e4951ed7a66ec71ca036e7680148a63143be
8017 * scd/app.c (check_conflict): Fold into ...
8018 (check_application_conflict): this and adjust callers. Return a
8019 different error code if it is possible to switch apps.
8021 scd: Track the currently selected app.
8022 + commit 91e2931caac9b914efa0a4524effaaa5948ebd00
8023 * scd/scdaemon.h (struct server_control_s): Add 'current_apptype'.
8024 * scd/command.c (scd_clear_current_app): New.
8025 * scd/app.c (app_new_register): Set it.
8026 (deallocate_card): Clear it.
8028 scd: Simplify inclusion of app-common.h.
8029 + commit 43dcf93407d6d2b87b6e7db74fd05fd237495bfe
8030 * scd/scdaemon.h: Include app-common.h. Remove inclusion of that
8031 header from all other files.
8032 (card_t, app_t): Move typedef to ...
8033 * scd/app-common.h: here. Use them in the defs.
8035 gpg: Very minor code cleanup.
8036 + commit 4256e9f0f1bf27ed2e93ca3890003ead208ef6df
8037 * g10/decrypt-data.c (decrypt_data): Remove superfluous test.
8039 scd: Use enums for cardtype and apptype.
8040 + commit 9551275857c1f9a75fee5736fa6c3cf361364f22
8041 * scd/app-common.h (cardtype_t): New.
8043 (struct card_ctx_s): Change type of cardtype.
8044 (struct app_ctx_s): Change type of apptype. Adjust all users.
8045 * scd/app.c (struct app_priority_list_s): Add field apptype.
8046 (strcardtype): New. Use as needed.
8047 (strapptype): New. Use as needed.
8049 2019-06-20 NIIBE Yutaka <gniibe@fsij.org>
8051 po: Update Japanese Translation.
8052 + commit 0ccb5ddef18f04b86855530838af4cbb9b8aa30b
8055 tools: Fix error handling for gpg-pair-tool.
8056 + commit d5287f43fd4def68901519a4c1d471b81ee86ed0
8057 * tools/gpg-pair-tool.c (read_message): Initialize ERR.
8059 2019-06-19 Werner Koch <wk@gnupg.org>
8061 scd: Split data structures into app and card related objects.
8062 + commit 5a5288d051a551a1a8f169225e62572f6ee8cb10
8063 * scd/app-common.h (struct card_ctx_s): New.
8064 (struct app_ctx_s): Factor card specific fields out to card_ctx_s.
8065 (app_get_slot): New.
8066 * scd/scdaemon.h (card_t): New.
8067 (struct server_control_s): Rename field app_ctx to card_ctx and change
8069 * scd/app-dinsig.c: Use app_get_slot and adjust for chang in card
8071 * scd/app-geldkarte.c: Ditto.
8072 * scd/app-nks.c: Ditto.
8073 * scd/app-openpgp.c: Ditto.
8074 * scd/app-p15.c: Ditto.
8075 * scd/app-sc-hsm.c: Ditto.
8076 * scd/app.c: Lost of changes to adjust for the changed data
8077 structures. Change all callers.
8078 (app_list_lock): Rename to card_list_lock.
8081 (lock_app): Rename to lock_card and change arg type.
8082 (unlock_app): Rename to unlock_card.
8083 (app_dump_state): Print card and app info.
8084 (app_reset): Rename to card_reset.
8085 (app_new_register): Change for the new data structure.
8086 (deallocate_card): Dealloc card and all apps.
8087 (app_ref): Rename to card_ref.
8088 (app_unref): Rename to card_unref.
8089 (app_unref_locked): Rename to card_unref_locked.
8090 (card_get_serialno): New.
8091 * scd/command.c (cmd_pkdecrypt): Actually use the looked up card and
8092 former app object and not the standard one from the context.
8094 2019-06-18 NIIBE Yutaka <gniibe@fsij.org>
8096 scd: KEYINFO: Send LF for --data.
8097 + commit c3dd53a65dc9ea2c4814e24079f0270c2fef14c6
8098 * scd/command.c (send_keyinfo): Send LF for --data.
8100 2019-06-17 Werner Koch <wk@gnupg.org>
8102 scd:piv: Add the do_with_keygrip feature.
8103 + commit e900bf29737b3f7a09f749a271f2c5d7b59c49eb
8104 * scd/app-piv.c (do_with_keygrip): New.
8105 (app_select_piv): Register function.
8107 scd: Add explict functions for 'app' reference counting.
8108 + commit c594dcfc93486cd26e193aa5c82bb8a8f30ab57b
8109 * scd/app.c (app_ref): New.
8111 (release_application): Renamed to ...
8112 (app_unref_locked): this and remove arg locked_already. Change
8113 callers to use this or app_ref.
8114 * scd/command.c (open_card_with_request):
8115 (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): Use app_ref and app_unref
8116 instead of accessing the counter directly.
8118 scd: Slight change to app->fnc.do_with_keygrip.
8119 + commit 70f7b262877b1e751d8557dc04a09a420e9d8a8f
8120 * scd/app-openpgp.c (do_with_keygrip): Return a real error code to
8121 avoid misinterpretation of the result. Also fix the case for a too
8124 scd: Use the correct gpg for the v1.0 OpenPGP card hack.
8125 + commit 479c2775d5df64432c1bf64faae7f9abd3042850
8126 * scd/app-openpgp.c (get_public_key): Use gnupg_module_name instead of
8129 2019-06-14 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8131 fix up 6562de7475b21cd03c7b1a83a591fa563c589f5b.
8132 + commit 6e46862abd2c2e82f245e381c3f08c5829fb61e6
8135 2019-06-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8137 doc/gpgsm: explain what "policy-file" refers to.
8138 + commit 6562de7475b21cd03c7b1a83a591fa563c589f5b
8139 A new user who sees "policy-file" and searches naively through the
8140 documentation to find it again won't be able to tell what this refers
8141 to, since "policies.txt" doesn't otherwise match the search string
8142 "policy". This gives them a fighting chance at finding the
8145 2019-06-07 NIIBE Yutaka <gniibe@fsij.org>
8147 gpgparsemail: Die on parse error, printing errno thing.
8148 + commit 1e9d61fb95e4813225a40f720231196abdb83992
8149 * tools/gpgparsemail.c (parse_message): Revert the change.
8150 * tools/rfc822parse.c (transition_to_body): Set ERRNO.
8151 (transition_to_header, insert_header): Likewise.
8153 2019-06-06 NIIBE Yutaka <gniibe@fsij.org>
8155 scd: Bring back --card-timeout option as deprecated.
8156 + commit 72fe8d652fce6cb9104bb07ef0fb811cbab3303a
8157 * doc/scdaemon.texi (card-timeout): Add.
8158 * scd/scdaemon.c (main): Revert the change.
8160 gpgparsemail: Die on parse error (not abort).
8161 + commit c13e459ffeffb8c5387c44b3c04bb92b7111a75b
8162 * tools/gpgparsemail.c (parse_message): Don't use ERRNO.
8163 * tools/rfc822parse.c (transition_to_body): Return -1.
8164 (transition_to_header, insert_header): Likewise.
8166 2019-06-04 Werner Koch <wk@gnupg.org>
8168 sm: Print a better diagnostic for encryption certificate selection.
8169 + commit 9bf650db022b6b65bbfa74c311cdc3e6b73d3b44
8170 * sm/certlist.c (gpgsm_add_to_certlist): Add diagnostic and fold two
8173 2019-06-04 NIIBE Yutaka <gniibe@fsij.org>
8175 g10: Block signals in g10_exit.
8176 + commit 537fbe13af6a70e105982c4b69c1bcc3908ffb08
8177 * g10/gpg.c (g10_exit): Block all signals before calling
8180 agent: Allow TERM="".
8181 + commit 0076bef2026a87c4c0e05bad7d322638b1de3f37
8182 * agent/call-pinentry.c (start_pinentry): When TERM is none,
8183 don't send OPTION ttytype to pinentry.
8185 agent: Add pinentry_loopback_confirm declaration.
8186 + commit 3a1bb0081087c0604ed681642114934ffe607fa1
8187 * agent/agent.h (pinentry_loopback_confirm): New.
8189 scd: Remove unsupported --card-timeout option.
8190 + commit 4262933ef6f7530b4ad55646250a6763de9bf103
8191 * doc/scdaemon.texi (card-timeout): Remove.
8192 * scd/scdaemon.c (main): Remove oCardTimeout handling.
8194 g10,agent: Support CONFIRM for --delete-key.
8195 + commit 20acc7c0226550530085a674ef1bb41ebfa39408
8196 * agent/call-pinentry.c (agent_get_confirmation): Add call of
8197 pinentry_loopback_confirm.
8198 (agent_popup_message_start): Likewise.
8199 (agent_popup_message_stop): Return if it's loopback mode.
8200 * agent/command.c (pinentry_loopback_confirm): New.
8202 * g10/call-agent.c (default_inq_cb): Support "CONFIRM" inquery
8203 when PINENTRY_MODE_LOOPBACK mode.
8204 (confirm_status_cb): New.
8205 (agent_delete_key): Supply confirm_status_cb to set the description
8206 string for confirmation.
8208 doc: Add a section for gpg-check-pattern.
8209 + commit eaf3b89d11156cc055644fc50761e1692e791e84
8210 * doc/Makefile.am: Add gpg-check-pattern.1.
8211 * doc/tools.texi (GPG-CHECK-PATTERN): New.
8213 2019-06-03 Werner Koch <wk@gnupg.org>
8215 Return better error code for some getinfo IPC commands.
8216 + commit f2ac6742d403a5a95d84ac7cdcf8913c39297bcb
8217 * agent/command.c (cmd_getinfo): Return GPG_ERR_FALSE as boolean False.
8218 * g13/server.c (cmd_getinfo): Ditto.
8219 * sm/server.c (cmd_getinfo): Ditto.
8221 2019-05-29 NIIBE Yutaka <gniibe@fsij.org>
8223 agent: Add A-flag for KEYINFO output for card.
8224 + commit 6790eaf9529209e36099d9520821a3b8ad02ccef
8225 * agent/command.c (do_one_keyinfo): Add ON_CARD argument to put
8227 (cmd_keyinfo): Call agent_card_keyinfo to offer additional information
8230 2019-05-28 Werner Koch <wk@gnupg.org>
8232 dirmngr: Allow for other hash algorithms than SHA-1 in OCSP.
8233 + commit 405f41007c35ef52bf85c7c2686dab01fdf2c950
8234 * dirmngr/ocsp.c (do_ocsp_request): Remove arg md. Add args r_sigval,
8235 r_produced_at, and r_md. Get the hash algo from the signature and
8236 create the context here.
8237 (check_signature): Allow any hash algo. Print a diagnostic if the
8238 signature does not verify.
8240 dirmngr: Improve finding OCSP cert.
8241 + commit 4699e294cc9e59f35262adca26ca291927acca9e
8242 * dirmngr/certcache.c (find_cert_bysubject): Add better debug output
8243 and try to locate by keyid.
8245 agent: Make an MD encoding function more robust.
8246 + commit a2a90717466a88756bbdc6b11577cfee061fc1a8
8247 * agent/pksign.c (do_encode_md): Use ascii_tolower and avoid
8248 uninitalized TMP in the error case.
8250 2019-05-28 NIIBE Yutaka <gniibe@fsij.org>
8252 agent: Remove unused agent_show_message.
8253 + commit 19415a265253a5ab72e79493d2f40c7e4441d81e
8254 * agent/call-pinentry.c (agent_show_message): Remove.
8255 * agent/genkey.c (take_this_one_anyway): Rename from
8256 take_this_one_anyway2. Remove a dead path calling agent_show_message.
8257 (check_passphrase_constraints): Use take_this_one_anyway.
8259 2019-05-27 Werner Koch <wk@gnupg.org>
8261 sm: Avoid confusing diagnostic for the default key.
8262 + commit 521e7d4644ed365ab2de3dfaa6c3728ca10ba79b
8263 * sm/certlist.c (cert_usage_p): Add arg 'silent' and change all
8265 (gpgsm_cert_use_sign_p): Add arg 'silent' and pass to cert_usage_p.
8267 * sm/sign.c (gpgsm_get_default_cert): Set SILENT when calling
8268 gpgsm_cert_use_sign_p
8270 gpg: Fixed i18n markup of some strings.
8271 + commit b6289af9738ddbc533defba0aefd950a9ca21ff1
8272 * g10/tofu.c: Removed some translation markups which either make no
8273 sense or are not possble.
8275 gpg: Allow deletion of subkeys with --delete-[secret-]key.
8276 + commit cc6069ac6ecd57dcbb808f28d54fd9f89dc55014
8277 * common/userids.c (classify_user_id): Do not set the EXACT flag in
8279 * g10/export.c (exact_subkey_match_p): Make static,
8280 * g10/delkey.c (do_delete_key): Implement subkey only deleting.
8282 2019-05-23 NIIBE Yutaka <gniibe@fsij.org>
8284 agent: Stop scdaemon after reload when disable_scdaemon.
8285 + commit 7158a5696dc84e1ebd2b523ab83a43a32423181d
8286 * agent/call-scd.c (agent_card_killscd): New.
8287 * agent/gpg-agent.c (agent_sighup_action): Call agent_card_killscd.
8289 g10: Copy expiredate from primary key when marked expired.
8290 + commit 265e6d670682e661cec89657c3330b0b388ca0a7
8291 * g10/getkey.c (merge_selfsigs): Update ->expiredate of subkey.
8293 2019-05-21 Werner Koch <wk@gnupg.org>
8295 gpg: Do not bail on an invalid packet in the local keyring.
8296 + commit 4c7d63cd5b02ebfd09933bebd1312e01958b3e20
8297 * g10/keydb.c (parse_keyblock_image): Treat invalid packet special.
8299 gpg: Do not allow creation of user ids larger than our parser allows.
8300 + commit 156788a43c20e38cd52f4f725395aff2c72142ff
8301 * g10/parse-packet.c: Move max packet lengths constants to ...
8302 * g10/packet.h: ... here.
8303 * g10/build-packet.c (do_user_id): Return an error if too data is too
8305 * g10/keygen.c (write_uid): Return an error for too large data.
8307 gpg: Unify the the use of the print_pubkey_info functions.
8308 + commit 126caa34bbdb36f40514643b9d6f5ead3240c735
8309 * g10/keylist.c (format_seckey_info): Remove.
8310 (print_pubkey_info, print_seckey_info): Remove.
8311 (format_key_info): New.
8312 (print_key_info): New.
8313 (print_key_info_log): New.
8314 * g10/card-util.c (current_card_status): Use print_key_info and remove
8315 the useless condition on KEYBLOCK.
8316 * g10/delkey.c (do_delete_key): Replace print_pubkey_info and
8317 print_seckey_info by print_key_info.
8318 * g10/keyedit.c (menu_addrevoker): Replace print_pubkey_info by
8320 * g10/pkclist.c (do_we_trust_pre): Ditto.
8321 * g10/revoke.c (gen_desig_revoke): Ditto.
8322 (gen_revoke): Ditto. Also use print_key_info_log instead of separate
8325 2019-05-21 NIIBE Yutaka <gniibe@fsij.org>
8327 scd: Fix for SCARD_IO_REQUEST structure.
8328 + commit 1eb93d9229c54baa5f1b7ccf7d105d3692c51a4d
8329 * scd/apdu.c (struct pcsc_io_request_s): Use pcsc_dword_t for Windows.
8331 agent: For SSH key, don't put NUL-byte at the end.
8332 + commit 479f7bf31ce405e558d844c3eb576b463a8697e5
8333 * agent/command-ssh.c (ssh_key_to_protected_buffer): Update
8334 the length by the second call of gcry_sexp_sprint.
8336 2019-05-20 Werner Koch <wk@gnupg.org>
8337 Matheus Afonso Martins Moreira
8339 gpg: Do not delete any keys if --dry-run is passed.
8340 + commit 110a4550179fd1faeee8d2f17a33ed7807a397ae
8341 * g10/delkey.c (do_delete_key): Don't delete the keyblock on dry runs.
8342 Do not clear the ownertrust. Do not let the agent delete the key.
8344 2019-05-17 Werner Koch <wk@gnupg.org>
8346 gpg: Fix using --decrypt along with --use-embedded-filename.
8347 + commit 386bacd9741639d7f5e83c81628d3cad78407197
8348 * g10/options.h (opt): Add flags.dummy_outfile.
8349 * g10/decrypt.c (decrypt_message): Set this global flag instead of the
8350 fucntion local flag.
8351 * g10/plaintext.c (get_output_file): Ignore opt.output if that was
8352 used as a dummy option aslong with --use-embedded-filename.
8354 gpg: Improve the photo image viewer selection.
8355 + commit 7e5847da0f3d715cb59d05adcd9107b460b6411b
8356 * g10/exec.c (w32_system): Add "!ShellExecute" special.
8357 * g10/photoid.c (get_default_photo_command): Use the new ShellExecute
8358 under Windows and fallbac to 'display' and 'xdg-open' in the Unix
8360 (show_photos): Flush stdout so that the output is shown before the
8363 2019-05-16 Werner Koch <wk@gnupg.org>
8365 kbx: Fix an endless loop under Windows due to an incomplete fix.
8366 + commit 6fc5df1e10129f3171d80cf731f310b9e8d97c26
8367 * kbx/keybox-search.c (keybox_search): We need to seek to the last
8368 position in all cases not just when doing a NEXT.
8370 gpgconf: Before --launch check that the config file is fine.
8371 + commit 50c2f76ae65d4ee793876865011fa97c85f38ac2
8372 * tools/gpgconf-comp.c (gc_component_launch): Check the conf file.
8373 * tools/gpgconf.c (gpgconf_failure): Call log_flush.
8375 scd: Remove unused cruft from GnuPG 1.x.
8376 + commit 79c99921e35921140c83d7c101829d95f038f3da
8377 * scd/apdu.c: Remove code used only by GnuPG 1.
8378 * scd/app-openpgp.c: Ditto.
8379 * scd/ccid-driver.c: Ditto.
8380 * scd/iso7816.c: Ditto.
8382 2019-05-16 NIIBE Yutaka <gniibe@fsij.org>
8384 agent,scd: Scan and load all public keys for availability.
8385 + commit dc35b25195e564affdea7969a7c4ea4e200ab45f
8386 * agent/divert-scd.c (ask_for_card): Scan by SERIALNO command.
8387 * scd/app-openpgp.c (do_with_keygrip): Make sure to load pubkey.
8389 2019-05-15 NIIBE Yutaka <gniibe@fsij.org>
8391 agent: Support scdaemon operation using KEYGRIP.
8392 + commit 1091f22511e1a8259eb5c998f5c207ee95723a4a
8393 * agent/agent.h (struct card_key_info_s): New.
8394 (divert_pksign, divert_pkdecrypt): New API.
8395 * agent/call-scd.c (card_keyinfo_cb): New.
8396 (agent_card_free_keyinfo, agent_card_keyinfo): New.
8397 * agent/divert-scd.c (ask_for_card): Having GRIP argument,
8398 ask scdaemon with agent_card_keyinfo.
8399 (divert_pksign, divert_pkdecrypt): Ditto.
8400 * agent/pkdecrypt.c (agent_pkdecrypt): Supply GRIP.
8401 * agent/pksign.c (agent_pksign_do): Ditto.
8403 scd: Don't put newline at the end of status.
8404 + commit 01730529f20882cd98882a61408e9bee960c86f1
8405 * scd/command.c (send_keyinfo): Remove newline.
8407 2019-05-15 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8409 gpg: enable OpenPGP export of cleartext keys with comments.
8410 + commit 392e59a3d487e174edcea570e69a0f946c55a19a
8411 * g10/export.c (cleartext_secret_key_to_openpgp): ignore trailing
8412 sublists in private-key S-expression.
8414 2019-05-15 Werner Koch <wk@gnupg.org>
8416 gpgconf: Support --homedir for --launch.
8417 + commit a4be077abdbf286e3dcdeb0553ba0e74b7e2df5f
8418 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Simplify because
8419 gnupg_homedir already returns abd absolute name.
8420 (scdaemon_runtime_change): Ditto.
8421 (dirmngr_runtime_change): Ditto.
8422 (gc_component_launch): Support --homedir.
8424 sm: Add a couple of debug calls to the keydb module.
8425 + commit 6e041b7b356c3adba714e98f4ecf0dd007375390
8426 * sm/gpgsm.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
8427 (DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
8428 * sm/gpgsm.c: new debug flags "lookup" and "clock"
8429 * sm/keydb.c: Add log_clock calls to most functions.
8430 (keydb_search_desc_dump): New.
8431 (keydb_search) [DBG_LOOKUP]: Print descrh decription.
8432 * sm/keylist.c (list_cert_std): Flush FP in debug mode to better
8433 syncronize the output with the debug output
8435 2019-05-15 NIIBE Yutaka <gniibe@fsij.org>
8437 scd: Fix return value for KEYINFO command.
8438 + commit 62c29af63203400947569c5965a8cf05a22fcd4c
8439 * scd/command.c (cmd_keyinfo): Return GPG_ERR_NOT_FOUND if none.
8441 2019-05-14 Werner Koch <wk@gnupg.org>
8443 kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.
8444 + commit 49b236af0ecbb6df67513feb4b63851f2e159ea2
8445 * kbx/keybox-init.c (keybox_lock) [W32]: Use _keybox_close_file
8446 instead of fclose so that a close is done if the file is opened by
8448 * kbx/keybox-search.c (keybox_search): Remember the last offset and
8449 use that in NEXT search mode if we had to re-open the file.
8451 sm: Change keydb code to use the keybox locking.
8452 + commit 22e274f839f9a6c9a511648f29cae497f6492c97
8453 * kbx/keybox-init.c (keybox_lock): New arg TIMEOUT. Change all
8454 callers to pass -1 when locking.
8455 * sm/keydb.c (struct resource_item): Remove LOCKANDLE.
8456 (struct keydb_handle): Add KEEP_LOCK.
8457 (keydb_add_resource): Use keybox locking instead of a separate dotlock
8458 for testing whether we can run a compress.
8459 (keydb_release): Reset KEEP_LOCK.
8460 (keydb_lock): Set KEEP_LOCK.
8461 (unlock_all): Take care of KEEP_LOCK.
8462 (lock_all): Use keybox_lock instead of dotlock fucntions.
8463 (keydb_delete): Remove arg UNLOCK.
8464 * sm/delete.c (delete_one): Adjust keydb_delete. Due to the KEEP_LOCK
8465 the keydb_release takes care of unlocking.
8467 2019-05-14 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8469 agent: correct length for uri and comment on 64-bit big-endian platforms
8470 + commit 5651b2c460a7898027c1765c2063c302606b5f85
8471 * agent/findkey.c (agent_public_key_from_file): pass size_t as int to
8472 gcry_sexp_build_array's %b.
8474 2019-05-14 Werner Koch <wk@gnupg.org>
8476 gpg: Do not print a hint to use the deprecated --keyserver option.
8477 + commit 7102d9b798b0985412007d3bf8b954959e4adec7
8478 * g10/keyserver.c (keyserver_search): Remove a specialized error
8481 2019-05-14 NIIBE Yutaka <gniibe@fsij.org>
8483 g10: Fix possible null dereference.
8484 + commit 802a2aa300bad3d4385d17a2deeb0966da4e737d
8485 * g10/armor.c (armor_filter): Access ->d in the internal loop.
8487 2019-05-13 Werner Koch <wk@gnupg.org>
8489 gpg: Change update_keysig_packet to replace SHA-1 by SHA-256.
8490 + commit 484d6ba5896acfa3dcf73d9536bcf5e006579b5f
8491 * g10/sign.c (update_keysig_packet): Convert digest algo when needed.
8493 gpg: Cleanup use of make_keysig_packet.
8494 + commit d07666412d4317460c6f03b3ffd03edf4a715ef7
8495 * g10/sign.c (make_keysig_packet): Remove obsolete arg diegst_algo
8496 which was always passed as 0. Change all callers.
8498 * g10/gpgcompose.c (signature): Warn when trying to set a digest algo.
8500 2019-05-13 NIIBE Yutaka <gniibe@fsij.org>
8502 build: Update m4/iconv.m4.
8503 + commit 1cd2aca03b8807c6f8e4929ace462bb606dcd53f
8504 * m4/iconv.m4: Update from gettext 0.20.1.
8506 2019-05-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8508 doc: correct documentation for gpgconf --kill.
8509 + commit 9662538be6afc8beee0f2654f9a8f234c5dac016
8510 * doc/tools.texi(gpgconf): Correct documentation for gpgconf --kill.
8512 2019-05-07 Werner Koch <wk@gnupg.org>
8514 agent: If a Label is make sure that label is part of the prompt.
8515 + commit 69e0b080f06b66eee96327617c6fbffe8a88d586
8516 * agent/findkey.c (has_comment_expando): New.
8517 (agent_key_from_file): Modify DESC_TEXT.
8519 agent: Allow the use of "Label:" in a key file.
8520 + commit 5388537806411c19ea84db8c4419f410be9ac616
8521 * agent/findkey.c (linefeed_to_percent0A): New.
8522 (read_key_file): Add optional arg 'keymeta' and change all callers.
8523 (agent_key_from_file): Prefer "Label:" over the comment for protected
8526 common: New functions nvc_delete_named and nvc_get_string.
8527 + commit b5985d0ca21ca376f22c050857bfda05592cebef
8528 * common/name-value.c (nvc_delete_named): New.
8529 (nvc_get_string): New.
8531 2019-05-07 NIIBE Yutaka <gniibe@fsij.org>
8533 scd: Support direct use of app with PKSIGN/PKAUTH/PKDECRYPT.
8534 + commit c856ee7312c9eeb7d79a30189a49f70986420364
8535 * scd/command.c (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): When length
8536 of keyidstr is 40, it is considered as a keygrip for direct use.
8538 2019-05-03 Werner Koch <wk@gnupg.org>
8540 agent: Put Token lines into the key files.
8541 + commit bdf252e76ada0056bec2ee7940255f32552328c5
8542 * agent/findkey.c (write_extended_private_key): Add args serialno and
8543 keyref. Write a Token line if that does not yet exist.
8544 (agent_write_private_key): Add args serialno and keyref and change all
8546 (agent_write_shadow_key): Skip leading spaces.
8547 * agent/keyformat.txt: Improve extended key format docs.
8549 common: In private key mode write "Key:" always last in name-value.
8550 + commit c9fa28bfad297b17e76341ffb40383ce92da5d44
8551 * common/name-value.c (nvc_write): Take care of Key. Factor some code
8553 (write_one_entry): new.
8555 gpg: Use just the addrspec from the Signer's UID.
8556 + commit bd6ecbb8f8e92fe4a7fed40fcf470eb83bda0927
8557 * g10/parse-packet.c (parse_signature): Take only rthe addrspec from a
8558 Signer's UID subpacket.
8560 2019-04-30 Werner Koch <wk@gnupg.org>
8562 sm: Add yet inactive options to support authenticode.
8563 + commit 5f3864fb647237f862bbe7e26763dffa0e945202
8564 * sm/gpgsm.c (opts): New options --authenticode and --attribute.
8565 * sm/gpgsm.h (opt): Add vars authenticode and attribute_list.
8566 * sm/sign.c (add_signed_attribute): New but inactive.
8567 (gpgsm_sign): Use new options.
8569 2019-04-29 Andre Heinecke <aheinecke@gnupg.org>
8571 common,w32: Breakaway detached childs when in job.
8572 + commit 03df28b18b92b3fd3d2ba1000903c088dc5b0fcf
8573 * common/exechelp-w32.c (gnupg_spawn_process_detached): Add
8574 CREATE_BREAKAWAY_FROM_JOB creation flag if required.
8576 2019-04-25 NIIBE Yutaka <gniibe@fsij.org>
8578 scd: Add new command: KEYINFO.
8579 + commit 874bc970ba6ec243ff474ef090242e0f7be6a7bc
8580 * scd/app-common.h (struct app_ctx_s): Add with_keygrip function.
8581 * scd/app-openpgp.c (do_with_keygrip): New.
8582 * scd/app.c (app_do_with_keygrip): New.
8583 * scd/command.c (cmd_keyinfo): New.
8584 (send_keyinfo): New.
8586 2019-04-23 NIIBE Yutaka <gniibe@fsij.org>
8588 po: Update Japanese Translation.
8589 + commit d5443b918dd3b8ccb3c4fdd8fe9d70d84aa312ff
8592 scd: Allow KEYGRIP as KEYIDSTR.
8593 + commit e769609cd3c12d2e26955538399172016f78d2d4
8594 * scd/app-openpgp.c (struct app_local_s): Add keygrip_str.
8595 (store_keygrip): New.
8596 (read_public_key): Call store_keygrip to hold keygrip.
8597 (get_public_key): Likewise.
8598 (send_keypair_info): Use stored keygrip_str.
8599 (check_keyidstr): Allow use of KEYGRIP.
8600 (do_check_pin): Allow use of KEYGRIP of signing slot.
8602 2019-04-22 NIIBE Yutaka <gniibe@fsij.org>
8604 scd: Factor out a function to check keyidstr.
8605 + commit b0f0791e4ade845b2a0e2a94dbda4f3bf1ceb039
8606 * scd/app-openpgp.c (check_keyidstr): New.
8607 (do_sign, do_auth, do_decipher, do_check_pin): Use check_keyidstr.
8609 2019-04-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8611 gpgconf: correct capitalization of "Tor"
8612 + commit ea7d85ff658c000f5f469e0a869af0e512e8c59f
8613 * tools/gpgconf-comp.cb (gc_options_dirmngr): correct capitalization
8616 2019-04-18 Andre Heinecke <aheinecke@intevation.de>
8618 g10: Fix double free when locating by mbox.
8619 + commit e57954ed278cb5e6e725005b1ecaf7ce70006ce0
8620 * g10/getkey.c (get_best_pubkey_byname): Set new.uid always
8623 2019-04-17 NIIBE Yutaka <gniibe@fsij.org>
8625 g10: Fix a memory leak.
8626 + commit a861f9343d6e6d18064e4e54aeb914c5a10b2095
8627 * g10/import.c (import): Care PNDING_PKT on error.
8629 2019-04-16 NIIBE Yutaka <gniibe@fsij.org>
8631 common: Fix AWK portability.
8632 + commit b6f0b0efa19e0434024bc16e246032b613fd448a
8633 * common/Makefile.am: Use pkg_namespace.
8634 * common/mkstrtable.awk: Use pkg_namespace. Regexp fix.
8636 2019-04-13 Werner Koch <wk@gnupg.org>
8638 gpg: New caching functions.
8639 + commit 64a5fd37271a3e454c0d59ac3500e1a1b232e4f7
8640 * g10/objcache.c: New.
8641 * g10/objcache.h: New.
8642 * g10/Makefile.am (common_source): Add them.
8643 * g10/gpg.c: Include objcache.h.
8644 (g10_exit): Call objcache_dump_stats.
8645 * g10/getkey.c: Include objcache.h.
8646 (get_primary_uid, release_keyid_list): Remove.
8647 (cache_user_id): Remove.
8648 (finish_lookup): Call the new cache_put_keyblock instead of
8650 (get_user_id_string): Remove code for mode 2.
8651 (get_user_id): Implement using cache_get_uid_bykid.
8653 2019-04-12 Werner Koch <wk@gnupg.org>
8655 gpg: Cache a once computed fingerprint in PKT_public_key.
8656 + commit 60f384592144de53c9a5f5e11d7f73ce863aa94f
8657 * g10/packet.h (PKT_public_key): Add fields fpr and fprlen.
8658 * g10/keyid.c (do_fingerprint_md): Remove.
8659 (compute_fingerprint): New.
8660 (keyid_from_pk): Simplify.
8661 (fingerprint_from_pk): Simplify.
8662 (hexfingerprint): Avoid using extra array.
8664 2019-04-11 Werner Koch <wk@gnupg.org>
8666 gpg: Accept also armored data from the WKD.
8667 + commit 1b1f649deaeba963ed7240b27f848004db0b051f
8668 * g10/keyserver.c (keyserver_import_wkd): Clear NO_ARMOR.
8670 gpg: Set a limit of 5 to the number of keys imported from the WKD.
8671 + commit 40595b57936e39ee2a4d58b1dd19edea7537a471
8672 * g10/import.c (import): Limit the number of considered keys to 5.
8673 (import_one): Return the first fingerprint in case of WKD.
8675 2019-04-11 Andre Heinecke <aheinecke@gnupg.org>
8677 speedo,w32: Install gpg-card.exe.
8678 + commit b30351496dd3056462c8db25c03fed6d2aa00e9b
8679 * build-aux/speedo/w32/inst.nsi: Install gpg-card.exe
8681 2019-04-05 Werner Koch <wk@gnupg.org>
8683 gpg: Fix printing of the user id during import.
8684 + commit ea32842d5c2e2d262d32791130d7eae5c8c3edcf
8685 * g10/getkey.c (struct keyid_list): Add field fprlen.
8686 (cache_user_id): Set and test it.
8687 (get_user_id_byfpr): Make static, add arg fprlen and use it.
8688 (get_user_id_byfpr_native): Add arg fprlen and change all callers.
8690 2019-04-04 Werner Koch <wk@gnupg.org>
8692 scd:piv: Fix RSA decryption.
8693 + commit 958172cc3acb7172bc5e1fa76efafe26695ed402
8694 * scd/app-piv.c (do_decipher): Fixup leading zero byte.
8696 2019-04-04 NIIBE Yutaka <gniibe@fsij.org>
8698 scd: Better handling of timeout and time extension.
8699 + commit f1cf799a37f320d33cae445c74f3fc1936dd9995
8700 * scd/ccid-driver.c (CCID_CMD_TIMEOUT_LONGER): Remove.
8701 (ccid_transceive): Don't use x4 blindly for bBWI, but use dynamically
8702 determined value. Use value from variable wait_more for bulk_in.
8703 Set wait_more by the value of time extension request.
8705 2019-04-03 Werner Koch <wk@gnupg.org>
8707 gpg: Improve the code to decrypt using PIV cards.
8708 + commit 2c9b68f28de1ce9a6a18d091caba01ddd4707774
8709 * g10/call-agent.c (agent_scd_keypairinfo): Add arg 'keyref'.
8710 * g10/keygen.c (ask_algo): Adjust.
8711 * g10/skclist.c (enum_secret_keys): Request the keyref directly.
8713 scd: New options --info and --info-only for READKEY.
8714 + commit 679b8f1c045476bd6e0a1f1565379263143994ee
8715 * scd/command.c (cmd_readkey): New options --info and --info-only.
8716 * scd/app.c (app_readkey): New arg 'flags'.
8717 * scd/app-common.h (APP_READKEY_FLAG_INFO): New.
8718 (struct app_ctx_s): New args 'ctrl' and 'flags' for member readkey.
8719 Change all implementers.
8720 * scd/app-nks.c (do_readkey): Stub implementation of
8721 APP_READKEY_FLAG_INFO.
8722 * scd/app-openpgp.c (do_readkey): Implement APP_READKEY_FLAG_INFO.
8723 * scd/app-piv.c (do_readkey): Ditto.
8725 gpg: Allow decryption using PIV cards.
8726 + commit ec6a6779236a89d4784a6bb7de0def9cc0f9e8a4
8727 * g10/call-agent.c (struct getattr_one_parm_s): New.
8728 (getattr_one_status_cb): New.
8729 (agent_scd_getattr_one): New.
8730 * g10/pubkey-enc.c (get_it): Allow the standard leading zero byte from
8732 * g10/skclist.c (enum_secret_keys): Handle non-OpenPGP cards.
8734 scd: New standard attributes $ENCRKEYID and $SIGNKEYID.
8735 + commit 2b1135cf920cf3d863813d60f032d476dcccfb58
8736 * g10/call-agent.c (agent_scd_keypairinfo): Use --keypairinfo.
8737 * sm/call-agent.c (gpgsm_agent_scd_keypairinfo): Ditto.
8738 * scd/app-openpgp.c (do_getattr): Add attributes "$ENCRKEYID" and
8740 * scd/app-piv.c (do_getattr): Ditto.
8742 gpg: Avoid endless loop if a card's serial number can't be read.
8743 + commit 1f688e0d1dba4dd7a311d416d06d654ed7b4290d
8744 * g10/skclist.c (enum_secret_keys): Move list forward on error.
8746 card: Allow card selection with LIST.
8747 + commit bcca3acb87c36213fef9311236ea949d006f759c
8748 * tools/card-call-scd.c (start_agent): Request serialno only whean
8750 (scd_serialno): Allow NULL for r_serialno.
8751 * tools/gpg-card.c (cmd_factoryreset): Use changed scd_serialno.
8753 (dispatch_command): Use cmd_list for cmdLIST.
8754 (interactive_loop): Ditto.
8756 gpg: Print modern style key info for non-decryptable keys.
8757 + commit 2d3392c147a24e49ee4658d4a50fafd68599fba3
8758 * g10/mainproc.c (print_pkenc_list): Simplify.
8760 2019-04-02 Werner Koch <wk@gnupg.org>
8762 gpg: Allow direct key generation from card with --full-gen-key.
8763 + commit a480182f9d7ec316648cb64248f7a0cc8f681bc3
8764 * g10/call-agent.c (agent_scd_readkey): New.
8765 * g10/keygen.c (ask_key_flags): Factor code out to ..
8766 (ask_key_flags_with_mask): new.
8767 (ask_algo): New mode 14.
8769 common: Extend function pubkey_algo_string.
8770 + commit f952226043824cbbeb8517126b5266926121c4e8
8771 * common/sexputil.c (pubkey_algo_string): Add arg R_ALGOID.
8772 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Adjust.
8773 * tools/gpg-card.c (list_one_kinfo): Ditto.
8775 dirmngr: Improve domaininfo cache update algorithm.
8776 + commit e100ace7f8a729bbe30d9f4ed157a7a229a04eb0
8777 * dirmngr/domaininfo.c (struct domaininfo_s): Add field keepmark.
8778 (insert_or_update): Implement new update algorithm.
8780 2019-04-01 Werner Koch <wk@gnupg.org>
8782 sm: Show the usage flags when generating a key from a card.
8783 + commit 9ed1aa56c4bbf44e00b731d6807ada9e95c91bd7
8784 * g10/call-agent.c (scd_keypairinfo_status_cb): Also store the usage
8786 * sm/call-agent.c (scd_keypairinfo_status_cb): Ditto.
8787 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Print the usage flags.
8789 gpg: Prepare card code to allow other than OpenPGP cards.
8790 + commit e47524c34a2a9f53c2507f67a0b41b460cee78b7
8791 * g10/call-agent.c (start_agent): Use card app auto selection.
8792 * g10/card-util.c (current_card_status): Print the Application type.
8793 (card_status): Put empty line between card listings.
8795 gpg: New card function agent_scd_keypairinfo.
8796 + commit 0fad61de159acf39e38a04f28f162f0beb0e77d6
8797 * g10/call-agent.c (scd_keypairinfo_status_cb)
8798 (agent_scd_keypairinfo): New. Taken from gpgsm.
8800 gpg: Remove two unused card related functions.
8801 + commit 334b16b868e771b983263ed20c200869e7e51198
8802 * g10/call-agent.c (inq_writekey_parms): Remove.
8803 (agent_scd_writekey): Remove.
8804 (agent_clear_pin_cache): Remove this stub.
8806 gpg: Remove unused arg in a card related function.
8807 + commit 3a4534d82682f69788da3cf4a445e38fbaf6b98e
8808 * g10/call-agent.c (agent_scd_setattr): Remove unused arg serialno.
8810 2019-03-29 Werner Koch <wk@gnupg.org>
8812 dirmngr: Better for error code for http status 413.
8813 + commit 21b674097442a54ae889a90d708639b257ba43db
8814 * dirmngr/ks-engine-hkp.c (send_request): New case for 413.
8815 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
8816 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
8818 2019-03-28 Werner Koch <wk@gnupg.org>
8820 scd: New option --application-priority.
8821 + commit 97feef8ee94a5e1cb9daba82f108eb62122c7910
8822 * scd/scdaemon.c (oApplicationPriority): New.
8823 (opts): Add "application_priority".
8824 (main): Process option.
8825 * scd/app.c (app_update_priority_list): New.
8826 (get_supported_applications): Take apps from global list.
8828 * tools/gpgconf-comp.c (gc_options_scdaemon): Add option.
8830 card: For passwd add a PIV menu and make the OpenPGP menu optional.
8831 + commit 80c069b5e1ad6fbd547de59f332eb3fabb68c572
8832 * tools/gpg-card.c (get_selection): New.
8833 (cmd_passwd): Reworked.
8835 card: Allow "yubikey disable" only for Yubikey-5 and later.
8836 + commit 2f761251c5730a9ad113fa58466addc9c2372da8
8837 * tools/card-yubikey.c (yubikey_commands): Add new arg INFO and test
8839 * tools/gpg-card.c (cmd_yubikey): Pass info to yubikey_commands.
8841 2019-03-27 Werner Koch <wk@gnupg.org>
8843 scd: Support reading the Yubikey 4 firmware version.
8844 + commit 5a3055eb722e61126748e83564e1bba42807d722
8845 * scd/app.c (app_new_register): Detect yk4 version numbers.
8847 2019-03-27 Trevor Bentley <trevor@yubico.com>
8849 gpg: Don't use EdDSA algo ID for ECDSA curves.
8850 + commit 4324560b2c0bb76a1769535c383424a042e505ae
8851 * g10/keygen.c (ask_curve): Change algo ID to ECDSA if it changed from
8854 2019-03-26 Werner Koch <wk@gnupg.org>
8856 sm: Allow decryption even if expired other keys are configured.
8857 + commit aa58d2a49b3d416d9d6a0691a89f2bc8bc8649ad
8858 * sm/gpgsm.c (main): Add special handling for bad keys in decrypt
8861 agent: Allow other ssh fingerprint algos in KEYINFO.
8862 + commit 3c7a1f3aea7f6e8137a93ef2166ff329688f5445
8863 * agent/command.c (cmd_keyinfo): Allow for --ssh-fpr=ALGO. Default to
8866 2019-03-25 Werner Koch <wk@gnupg.org>
8868 wkd: New command --print-wkd-url for gpg-wks-client.
8869 + commit 70c97a862aa586c314a64190d1e489a272e552ea
8870 * tools/gpg-wks-client.c (aPrintWKDURL): New.
8873 * tools/wks-util.c (wks_cmd_print_wkd_url): New.
8875 2019-03-25 Andre Heinecke <aheinecke@gnupg.org>
8877 sm, w32: Translate logger and status fd to handles.
8878 + commit e4e0804ed123516fa00f8a876a862b2c6d34ba5c
8879 * sm/gpgsm.c (main): Call translate_sys2libc_fd_int to
8882 2019-03-25 NIIBE Yutaka <gniibe@fsij.org>
8884 libdns: Don't use _[A-Z] which are reserved names.
8885 + commit 8d1b5982138c104f3c50663738892fa110193059
8886 * dirmngr/dns.c: Use the identifiers of "*_instance" instead of
8889 2019-03-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8891 doc: fix formatting error.
8892 + commit b30528f48780c9917ec8ba3b3d163fba5c740d92
8895 2019-03-22 Werner Koch <wk@gnupg.org>
8897 wkd: New command --print-wkd-hash for gpg-wks-client.
8898 + commit e847cf1df7aa55ac2af7efd39ca05882258acbfe
8899 * tools/gpg-wks-client.c (aPrintWKDHash): New.
8900 (opts) : Add "--print-wkd-hash".
8901 (main): Implement that command.
8902 (proc_userid_from_stdin): New.
8903 * tools/wks-util.c (wks_fname_from_userid): Add option HASH_ONLY.
8904 (wks_cmd_print_wkd_hash): New.
8906 scd: Refactor the app selection code.
8907 + commit 393269948c883afb770bb536f03045254d13b911
8908 * scd/app.c (app_priority_list): New.
8910 2019-03-18 Andre Heinecke <aheinecke@gnupg.org>
8912 speedo: Fix installer build with NSIS-3.
8913 + commit b98799ce964df1743478dc3d0cc503f51c4b6733
8914 * build-aux/speedo.mk: Add charset for nsis 3.
8916 2019-03-18 Werner Koch <wk@gnupg.org>
8918 gpg: Allow import of PGP desktop exported secret keys.
8919 + commit 5205512fc092c53c0a52c8379ef2a129ce6e58a9
8920 * g10/import.c (NODE_TRANSFER_SECKEY): New.
8921 (import): Add attic kludge.
8922 (transfer_secret_keys): Add arg only_marked.
8923 (resync_sec_with_pub_keyblock): Return removed seckeys via new arg
8925 (import_secret_one): New arg r_secattic. Change to take ownership of
8926 arg keyblock. Implement extra secret key import logic. Factor some
8929 (import_matching_seckeys): New.
8931 2019-03-15 Werner Koch <wk@gnupg.org>
8933 gpg: Avoid importing secret keys if the keyblock is not valid.
8934 + commit f799e9728bcadb3d4148a47848c78c5647860ea4
8935 * g10/keydb.h (struct kbnode_struct): Replace unused field RECNO by
8937 * g10/kbnode.c (alloc_node): Change accordingly.
8938 * g10/import.c (import_one): Add arg r_valid.
8939 (sec_to_pub_keyblock): Set tags.
8940 (resync_sec_with_pub_keyblock): New.
8941 (import_secret_one): Change return code to gpg_error_t. Return an
8942 error code if sec_to_pub_keyblock failed. Resync secret keyblock.
8944 gpg: During secret key import print "sec" instead of "pub".
8945 + commit f64477db86568bdc28c313bfeb8b95d8edf05a3c
8946 * g10/keyedit.c (show_basic_key_info): New arg 'print_sec'. Remove
8947 useless code for "sub" and "ssb".
8948 * g10/import.c (import_one): Pass FROM_SK to show_basic_key_info. Do
8949 not print the first keyinfo in FROM_SK mode.
8952 gpg: Simplify an interactive import status line.
8953 + commit f06b6fe47f56a15ac426665c3d9661d4b104696f
8954 * g10/cpr.c (write_status_printf): Escape CR and LF.
8955 * g10/import.c (print_import_check): Simplify by using
8956 write_status_printf and hexfingerprint.
8958 gpg: Fix recently introduced use after free.
8959 + commit 3e1f3df6183b2ed2cadf2af2383063891e2c53bd
8960 * g10/mainproc.c (proc_plaintext): Do not use freed memory.
8962 2019-03-14 Werner Koch <wk@gnupg.org>
8964 kbx: Unify the fingerprint search modes.
8965 + commit bdda31a26bc69b6ee72e964510db113645de76ef
8966 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_FPR16)
8967 (KEYDB_SEARCH_MODE_FPR20, KEYDB_SEARCH_MODE_FPR32): Remove. Switch
8968 all users to KEYDB_SEARCH_MODE_FPR along with the fprlen value.
8970 gpg: Make rfc4880bis the default.
8971 + commit caf4b3fc16e97eb175c46f45f5770d02becb862d
8972 * g10/gpg.c (set_compliance_option, main): Change CO_GNUPG to include
8973 rfc4880bis features.
8974 (main): Change rfc4880bis warning to a note.
8976 gpg: Implement v5 keys and v5 signatures.
8977 + commit 01c87d4ce23bc9fc44ec5301c2c6bf2ce615c375
8978 * g10/build-packet.c (gpg_mpi_write): New optional arg
8979 R_NWRITTEN. Allow NULL for OUT. Change all callers.
8980 (do_key): Support v5 keys.
8981 (build_sig_subpkt_from_sig): Support 32 byte fingerprints.
8982 * g10/parse-packet.c (parse_signature): First try to set the keyid
8983 from the issuer fingerprint.
8984 (parse_key): Support v5 keys.
8985 (create_gpg_control): Better make sure to always allocate the static
8986 size of the struct in case future compilers print warnings.
8987 * g10/keyid.c (hash_public_key): Add v5 support.
8988 (keyid_from_pk): Ditto.
8989 (keyid_from_fingerprint): Ditto.
8990 (fingerprint_from_pk): Ditto.
8991 * g10/keygen.c (KEYGEN_FLAG_CREATE_V5_KEY): New.
8992 (pVERSION, pSUBVERSION): New.
8993 (add_feature_v5): New.
8994 (keygen_upd_std_prefs): Call it.
8995 (do_create_from_keygrip): Add arg keygen_flags and support the v5
8997 (common_gen): Support the v5 flag.
8998 (parse_key_parameter_part): New flags v4 and v5.
8999 (parse_key_parameter_string): Add args for version and subversion.
9000 (read_parameter_file): New keywords "Key-Version" and
9002 (quickgen_set_para): Add arg 'version'.
9003 (quick_generate_keypair, generate_keypair): Support version parms.
9004 (do_generate_keypair): Support v5 key flag.
9005 (generate_subkeypair): Ditto.
9006 (generate_card_subkeypair): Preparse for keyflags.
9007 (gen_card_key): Ditto.
9008 * g10/sig-check.c (check_signature2): Add args extrahash and
9010 (check_signature_end): Ditto.
9011 (check_signature_end_simple): Ditto. Use them.
9012 * g10/mainproc.c (proc_plaintext): Put extra hash infor into the
9014 (do_check_sig): Add args extrahas and extrahashlen and pass them on.
9015 (issuer_fpr_raw): Support 32 byte fingerprint.
9016 (check_sig_and_print): get extra hash data and pass it on.
9018 kbx: Add support for 32 byte fingerprints.
9019 + commit f40e9d6a528521d12795e1a6cc15c849b216be92
9020 * common/userids.c (classify_user_id): Support 32 byte fingerprints.
9021 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_FPR32): New.
9022 (struct keydb_search_desc): Add field fprlen.
9023 * kbx/keybox-defs.h (struct _keybox_openpgp_key_info): Add field
9024 version and increase size of fpr to 32.
9025 * kbx/keybox-blob.c: Define new version 2 for PGP and X509 blobs.
9026 (struct keyboxblob_key): Add field fprlen and increase size of fpr.
9027 (pgp_create_key_part_single): Allow larger fingerprints.
9028 (create_blob_header): Implement blob version 2 and add arg want_fpr32.
9029 (_keybox_create_openpgp_blob): Detect the need for blob version 2.
9030 * kbx/keybox-search.c (blob_get_first_keyid): Support 32 byte
9032 (blob_cmp_fpr): Ditto.
9033 (blob_cmp_fpr_part): Ditto.
9034 (has_fingerprint): Add arg fprlen and pass on.
9035 (keybox_search): Support KEYDB_SEARCH_MODE_FPR32 and adjust for
9036 changed has_fingerprint.
9037 * kbx/keybox-openpgp.c (parse_key): Support version 5 keys.
9038 * kbx/keybox-dump.c (_keybox_dump_blob): Support blob version 2.
9040 * g10/delkey.c (do_delete_key): Support KEYDB_SEARCH_MODE_FPR32.
9041 * g10/export.c (exact_subkey_match_p): Ditto.
9042 * g10/gpg.c (main): Ditto.
9043 * g10/getkey.c (get_pubkey_byfprint): Adjust for changed
9044 KEYDB_SEARCH_MODE_FPR.
9045 * g10/keydb.c (keydb_search_desc_dump): Support
9046 KEYDB_SEARCH_MODE_FPR32 and adjust for changed KEYDB_SEARCH_MODE_FPR.
9047 (keydb_search): Add new arg fprlen and change all callers.
9048 * g10/keyedit.c (find_by_primary_fpr): Ditto.
9049 * g10/keyid.c (keystr_from_desc): Ditto.
9050 * g10/keyring.c (keyring_search): Ditto.
9051 * g10/keyserver.c (print_keyrec): Ditto.
9052 (parse_keyrec): Ditto.
9053 (keyserver_export): Ditto.
9054 (keyserver_retrieval_screener): Ditto.
9055 (keyserver_import): Ditto.
9056 (keyserver_import_fprint): Ditto.
9058 (keyserver_get_chunk): Ditto.
9060 * g10/keydb.c (keydb_search): Add new arg fprlen and change all
9063 * sm/keydb.c (keydb_search_fpr): Adjust for changed
9064 KEYDB_SEARCH_MODE_FPR.
9066 gpg: Implemented latest rfc4880bis version 5 packet hashing.
9067 + commit a21ca3a1eff4722dea778cca4abe14a873ccebdf
9068 * configure.ac (AC_CHECK_SIZEOF): Test size_t.
9069 * g10/sig-check.c (check_signature_end_simple): Support v5 signatures
9070 as per current rfc4880bis. For correctness also allow for N > 2^32.
9071 * g10/sign.c (pt_extra_hash_data_t): New.
9072 (hash_sigversion_to_magic): New arg EXTRAHASH.
9073 (write_plaintext_packet): New arg R_EXTRAHASH.
9074 (write_signature_packets): Pass EXTRAHASH.
9076 (sign_symencrypt_file): Ditto.
9078 2019-03-14 NIIBE Yutaka <gniibe@fsij.org>
9080 Fix the previous commit.
9081 + commit f199b627ce512c8495af5c9bd1c81127ccde3ca0
9082 * g10/ecdh.c (kek_params_table): Revert the change.
9083 * scd/app-openpgp.c (ecdh_params): Use CIPHER_ALGO_AES256
9086 2019-03-13 NIIBE Yutaka <gniibe@fsij.org>
9088 g10: Fix symmetric cipher algo constant for ECDH.
9089 + commit af3efd149f555d36a455cb2ea311ff81caf5124c
9090 * g10/ecdh.c (kek_params_table): Use CIPHER_ALGO_AES192 for
9091 ECC strength 384, according to RFC-6637.
9093 2019-03-11 Werner Koch <wk@gnupg.org>
9095 dirmngr: Avoid testing for Tor with --gpgconf-list.
9096 + commit 9f37e93dd741a5436ff412955628806ae84725ca
9097 * dirmngr/dirmngr.c (post_option_parsing): Do not call set_tor_mode.
9098 (dirmngr_sighup_action): Call it here.
9099 (main): Call it here unless in --gpgconf-list mode.
9101 2019-03-07 Werner Koch <wk@gnupg.org>
9103 common: Minor rework of tty_get.
9104 + commit b7de105e0a836bd4d7bd558f8e699d88ab0cafec
9105 * common/ttyio.c (do_get): Re-indent and remove the checking for char
9106 values larger than 0xa0. Use explicy control character checking.
9108 dirmngr: Add CSRF protection exception for protonmail.
9109 + commit 134c3c16523b1a267ebdd2df6339240fd9e1e3b3
9110 * dirmngr/http.c (same_host_p): Add exception table.
9112 2019-03-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9114 gpgv: Improve documentation for keyring choices.
9115 + commit 096c2aa705f85289ff8b610da1dd9181e4c904fd
9116 * doc/gpgv.texi: Improve documentation for keyring choices
9118 2019-03-06 Werner Koch <wk@gnupg.org>
9120 gpgtar: Make option -C work for archive creation.
9121 + commit b3a7a5140784b5a015107b5c5c73b15ae44e71dc
9122 * tools/gpgtar-create.c (gpgtar_create): Switch to the -C directory.
9124 agent: Re-introduce --enable-extended-key-format.
9125 + commit 91ae3e7fb66271691f6fe507262a62fc7e2663a3
9126 * agent/gpg-agent.c (oEnableExtendedKeyFormat): Re-introduce.
9127 (parse_rereadable_options): Handle it in a special way.
9128 * agent/protect.c (agent_protect): Be safe and set use_ocb only to 1
9130 * tools/gpgconf-comp.c: Add --enable-extended-key-format again.
9132 gpgtar: Improve error messages.
9133 + commit 72feb8fa8280aba674573a1afc955a92e8065242
9134 * tools/gpgtar.h (struct tarinfo_s): New.
9135 * tools/gpgtar.c (cmd, skip_crypto, files_from, null_names): Move
9136 global vars more to the top.
9137 (set_cmd): Rename 'cmd' to 'c'.
9138 * tools/gpgtar-list.c (parse_header): Add arg 'info' and improve error
9140 (read_header): Add arg 'info' and update counter.
9142 (gpgtar_list): Pass info object to read functions.
9143 (gpgtar_read_header): Add arg 'info'.
9144 * tools/gpgtar-extract.c (gpgtar_extract): add arg 'info' and pass on.
9145 (extract_regular): Add arg 'info' and update counter.
9147 agent: Default to extended key format.
9148 + commit 05eff1f6623c272fcabd4e238842afc832710324
9149 * agent/gpg-agent.c (oDisableExtendedKeyFormat, oNoop): New.
9150 (oEnableExtendedKeyFormat): Remove.
9151 (opts): Make --enable-extended-key-format a dummy option. Add
9152 disable-extended-key-format.
9153 (parse_rereadable_options): Implement oDisableExtendedKeyFormat.
9155 card: Allow PEM encoded certificates in "writecert".
9156 + commit 4e1f04a4cd30859507218395e630e886801ae2b7
9157 * tools/gpg-card.c (cmd_writecert): Convert from base64.
9159 card: Print the keyref also for non-initialized slots.
9160 + commit 772bba34ea089b3a00f0b1ea5138ba7422c95180
9161 * tools/gpg-card.c (list_one_kinfo): Add arg label_keyref and change
9164 2019-03-06 NIIBE Yutaka <gniibe@fsij.org>
9166 agent: Fix detection of exit of scdaemon.
9167 + commit 2abad7585a004586e27ead6ab8c9c57ce5ed1326
9168 * agent/call-scd.c (start_scd): Acquire START_SCD_LOCK for
9169 SCD_LOCAL_LIST. Move common case code to fast path.
9170 Release START_SCD_LOCK before calling unlock_scd.
9171 When new CTX is allocated, clear INVALID flag.
9172 (agent_reset_scd): Serialize the access to SCD_LOCAL_LIST by
9175 2019-03-05 Werner Koch <wk@gnupg.org>
9177 card: Print card version. Check for bad Yubikeys.
9178 + commit 8d4af54ddd039d47e9c4803559193fcca97f0a46
9179 * scd/app.c (app_new_register): Set card version for Yubikeys.
9180 (app_write_learn_status): Print CARDVERSION and APPVERSION.
9181 * tools/card-call-scd.c (learn_status_cb): Detect them.
9182 * tools/gpg-card.h (struct card_info_s): Add appversion and
9184 * tools/gpg-card.c (list_openpgp): Remove version printing from serial
9186 (print_a_version): New.
9187 (list_card): Print card and app version.
9188 (cmd_generate): Do not allow broken Yubikeys.
9190 scd: Rename a shared info field name.
9191 + commit 64caa6a08298119b10dc36ddd27b357cb47825b5
9192 * scd/app-piv.c (app_select_piv):
9193 * scd/app-common.h (struct app_ctx_s): Rename 'card_version' to
9194 'cardversion'. Rename all users. Add 'appversion'.
9196 scd:piv: Implement import of private keys for Yubikeys.
9197 + commit e897e1e255ef9870dfd1639d6f4e97bdf4e83b34
9198 * scd/app-piv.c (concat_tlv_list): Add arg 'secure' and adjust
9200 (writekey_rsa, writekey_ecc): New.
9202 (do_writecert): Provide a better error message for an empty cert.
9203 (app_select_piv): Register do_writekey.
9204 * scd/iso7816.c (iso7816_send_apdu): New.
9205 * scd/app-common.h (APP_WRITEKEY_FLAG_FORCE): New.
9206 * agent/command.c (cmd_keytocard): Make the timestamp optional.
9207 * tools/card-call-scd.c (inq_writekey_parms): Remove.
9208 (scd_writekey): Rewrite.
9209 * tools/gpg-card.c (cmd_writekey): New.
9210 (enum cmdids): Add cmdWRITEKEY.
9211 (dispatch_command, interactive_loop): Call cmd_writekey.
9213 gpg: Make invalid primary key algos obvious in key listings.
9214 + commit db87132b10664718b7db6ec1dad584b54d1fb265
9215 * g10/keylist.c (print_key_line): Print a warning for invalid algos.
9217 agent: Minor change to the KEYTOCARD command.
9218 + commit bcc89a6df24c79690436340f65c7ab13c65c2c45
9219 * agent/command.c (cmd_keytocard): Make timestamp optional. Use
9220 modern parser function.
9221 * agent/call-scd.c (agent_card_writekey): Rename an arg and for
9222 clarity return gpg_error_t instead of int.
9223 * agent/divert-scd.c (divert_writekey): Ditto.
9225 2019-03-01 Werner Koch <wk@gnupg.org>
9227 sm: Print Yubikey attestation extensions with --dump-cert.
9228 + commit 86c241a8c9a952ea8007066b70b04f435e2e483e
9229 * sm/keylist.c (oidtranstbl): Add Yubikey OIDs.
9230 (OID_FLAG_HEX): New.
9231 (print_hex_extn): New.
9232 (list_cert_raw): Make use of that flag.
9234 scd:piv: Add feature to read Yubikey attestation certificates.
9235 + commit 51df13d9ec8e89c4236e2f4a9ae3647963c30783
9236 * scd/app-piv.c (do_readcert): Add hack to read Yubikey attestaions.
9238 scd:piv: Allow writecert to only write matching certs.
9239 + commit 696d4c290dd4945b693263721f606b5049b9569d
9240 * scd/app-piv.c (do_readkey): Read the key from the cert here instead
9241 of letting the upper layer do this.
9242 (do_writecert): Check that the cert matches the key and that a key has
9243 already been generated.
9245 card: Remove the "admin" command.
9246 + commit 280baee72dcb0ca54ce99b524bc2125cbc38e0e4
9247 * tools/gpg-card.c (cmd_passwd): Remove arg allow_admin.
9248 (enum cmdids): Rename cmdAUTHENTICATE to cmdAUTH and cmdFACTORYRESET
9250 (cmds): Remove column 'admin_only'.
9251 (interactive_loop): Remove admin_only stuff.
9253 2019-02-28 Werner Koch <wk@gnupg.org>
9255 sm: Don't mark a cert as de-vs compliant if it leads to SHA-1 sigs.
9256 + commit 2c75af9f65d15653ed1bc191f1098ae316607041
9257 * sm/keylist.c (print_compliance_flags): Also check the diges_also.
9259 2019-02-27 NIIBE Yutaka <gniibe@fsij.org>
9261 agent: PKSIGN should return signature in same format for card.
9262 + commit 0173b249cfb7f02f94911ec759630d81f312e0bd
9263 * agent/pksign.c (agent_pksign_do):
9265 2019-02-26 Werner Koch <wk@gnupg.org>
9267 scd: Simplify the app_readkey parameters.
9268 + commit c2235d994dbb1d7ddba20f89a7c02f4a27b0610c
9269 * scd/app-help.c (app_help_pubkey_from_cert): New.
9270 * scd/command.c (cmd_readkey): Refactor to use that new function and
9271 handle the --advanced flag only here.
9272 * scd/app.c (app_readkey): Remove parm advanced.
9273 * scd/app-common.h (struct app_ctx_s): Remove parm advanced from the
9275 * scd/app-nks.c (do_readkey): Adjust for removed parm.
9276 * scd/app-piv.c (do_readkey): Ditto.
9277 * scd/app-openpgp.c (do_readkey): Ditto.
9279 conf: New option --show-socket.
9280 + commit ac485b4f253ad6bbd2bc648650b56d60fc82f89d
9281 * tools/gpgconf-comp.c (gc_component_t): Move this enum to ...
9282 * tools/gpgconf.h: here.
9283 * tools/gpgconf.c (oShowSocket): New.
9284 (opts): Add new option.
9285 (main): Implement new option.
9287 2019-02-26 NIIBE Yutaka <gniibe@fsij.org>
9289 libdns: Avoid using compound literals (8).
9290 + commit 371ae25f8f6f2d1ac030bf984bca479393a5ed43
9291 * dirmngr/dns.h (dns_quietinit): Remove.
9292 (dns_hints_i_new): Remove.
9294 libdns: Avoid using compound literals (7).
9295 + commit d661acd483236d34720a4959fc816d05f89c2cb7
9296 * dirmngr/dns.h (DNS_OPTS_INIT, dns_opts): Remove.
9297 * dirmngr/dns-stuff.c (libdns_res_open): Use zero-ed, and initialized
9298 automatic variable for opts.
9299 * dirmngr/dns.c (send_query, resolve_query, resolve_addrinfo):
9302 libdns: Avoid using compound literals (6).
9303 + commit 6501e59d3685bb58753c9caea729a4b0eca3942a
9304 * dirmngr/dns.h (dns_rr_i_new): Remove.
9305 (dns_rr_i_init): Remove unused second argument.
9306 * dirmngr/dns.c (dns_p_dump, dns_hints_query, print_packet)
9307 (parse_packet): Use automatic variable for struct dns_rr_i.
9308 (dns_d_cname): No need to call dns_rr_i_init after memset 0.
9309 (dns_rr_i_init): Remove unused second argument. Return nothing.
9310 * dirmngr/dns-stuff.c (resolve_addr_libdns, get_dns_cert_libdns)
9311 (getsrv_libdns): Follow the change of dns_rr_i_init.
9313 libdns: Avoid using compound literals (5).
9314 + commit a1ccfe2b37847cce0db2fb94a7365c9fa501eda4
9315 * dirmngr/dns.h (dns_rr_foreach): Don't use dns_rr_i_new.
9316 Call dns_rr_grep with NULL.
9317 * dirmngr/dns.c (dns_rr_grep): Support NULL for error_.
9319 libdns: Avoid using compound literals (4).
9320 + commit 7313a112f9c7ada61d24285313d2e2d069a672e8
9321 * dirmngr/dns.h (dns_d_new*): Remove.
9322 * dirmngr/dns.c (parse_packet): Use dns_d_init with automatic
9324 (parse_domain): Likewise.
9326 libdns: Avoid using compound literals (3).
9327 + commit 72efb7840258808cd892b90d871ea1cc1c31d7f5
9328 * dirmngr/dns.h (dns_p_new): Remove.
9329 * dirmngr/dns.c (dns_hosts_query): Use dns_p_init with automatic
9331 (dns_hints_query, dns_res_glue, parse_packet, query_hosts)
9332 (send_query, show_hints, echo_port): Likewise.
9334 libdns: Avoid using compound literals (2).
9335 + commit 455ef62d29a112de05897139716265d07e4c6ae3
9336 * dirmngr/dns.h (dns_strsection1, dns_strsection3): Remove.
9337 (dns_strclass1, dns_strclass3): Remove.
9338 (dns_strtype1, dns_strtype3): Remove.
9339 (dns_strsection, dns_strclass, dns_strtype): Directly use the
9341 * dirmngr/dns.c (dns_strsection): Use automatic variable.
9342 (dns_strclass, dns_strtype): Likewise.
9344 libdns: Avoid using compound literals.
9345 + commit 1c405499388fd5bed0968ab5c6c5d1b3373537b9
9346 * dirmngr/dns.c (dns_inet_pton, dns_so_tcp_keep): Use automatic
9348 (dns_poll, dns_send_nopipe): Likewise, adding const qualifier.
9350 2019-02-25 Werner Koch <wk@gnupg.org>
9352 scd: PIV: Always require a PIN for signing with 9C.
9353 + commit a481d17432bf7cca19ca71b6aa5ccd9aee2b3baa
9354 * scd/app-piv.c (verify_chv): Add arg 'force'.
9355 (do_sign): Use force for 0x9c.
9357 card: Rename gpg-card-tool to gpg-card.
9358 + commit 28de5c0ea53373c56a4405fe6b08d194682dd1de
9359 * tools/card-tool-keys.c: Rename to card-keys.c.
9360 * tools/card-tool-misc.c: Rename to card-misc.c.
9361 * tools/card-tool-yubikey.c: Rename to card-yubikey.c.
9362 * tools/card-tool.h: Rename to gpg-card.h.
9363 * tools/gpg-card-tool-w32info.rc: Rename to gpg-card-w32info.rc
9364 * doc/card-tool.texi: Rename top gpg-card.texi
9366 agent: Fix for suggested Libgcrypt use.
9367 + commit a12c3a566e2e4b10bc02976a2819070877ee895c
9368 * agent/divert-scd.c (divert_pkdecrypt): Skip a flags parameter.
9370 2019-02-25 NIIBE Yutaka <gniibe@fsij.org>
9372 gpgscm: Build well even if NDEBUG defined.
9373 + commit e140c6d4f581be1a60a34b67b16430452f3987e8
9374 * gpgscm/scheme.c (gc_reservation_failure): Fix adding ";".
9375 [!NDEBUG] (scheme_init_custom_alloc): Don't init seserved_lineno.
9377 2019-02-22 NIIBE Yutaka <gniibe@fsij.org>
9379 scd: internal driver: Submit SET_INTERFACE control transfer.
9380 + commit 611faf1579a56925994d53eb08e1290a4b3958cf
9381 * scd/ccid-driver.c (ccid_open_usb_reader): Alway submit SET_INTERFACE
9384 2019-02-21 Werner Koch <wk@gnupg.org>
9386 sm: Fix certificate creation with key on card.
9387 + commit c1000c673814e552923cf1361346d7dfeee55608
9388 * sm/certreqgen.c (create_request): Fix for certmode.
9390 card: Print usage info for each key.
9391 + commit 7317aeb3f448c98dcfa9c04f49b9a69d81c26776
9392 * tools/card-call-scd.c (learn_status_cb): Handle extended
9394 * tools/card-tool.h (struct key_info_s): Add field 'usage'.
9395 * tools/gpg-card-tool.c (list_one_kinfo): Show usage flags.
9397 scd: Extend KEYPAIRINFO by key usage info.
9398 + commit 5e21ef2d556ca65b7869bf16ab465f3511601e1e
9399 * scd/app-openpgp.c (send_keypair_info): Append usage string.
9400 * scd/app-piv.c (struct data_object_s): Remove column 'binary'. Add
9402 (dump_all_do): Adjust for removed 'binary'.
9403 (send_keypair_and_cert_info): Append usage string.
9405 card: Print the keyref in the listing.
9406 + commit 3384ba6c1c421cfa674dbd8294dc655d7320534e
9407 * tools/gpg-card-tool.c (list_one_kinfo): Print the keyref.
9409 scd: Don't let the "undefined" app cause a conflict error.
9410 + commit 5ecc7a02609dde65096ddb12e0ff8f6bce3b774a
9411 * scd/app.c (check_conflict): Ignore "undefined".
9413 sm: Prepare algo mapping to handle values > 255.
9414 + commit d7a54ca461ad75e4fab77a2f1b25986c7637762a
9415 * sm/misc.c (transform_sigval): Allow for larger values of MDALGO and
9418 2019-02-21 NIIBE Yutaka <gniibe@fsij.org>
9420 scd: Clear CHV status on timeout error.
9421 + commit 2013cb5ee667610de35f8b92c2f979f5caa09d4c
9422 * scd/app-openpgp.c (clear_chv_status): New.
9423 (do_change_pin): Use clear_chv_status.
9424 (do_sign): Call clear_chv_status on GPG_ERR_TIMEOUT.
9425 (do_auth, do_decipher): Likewise.
9427 scd: Handle ack button timeout as GPG_ERR_TIMEOUT.
9428 + commit bd15aa34ab8ad10adbb7540a8845b4a2600437b6
9429 * scd/apdu.h (SW_ACK_TIMEOUT): New.
9430 * scd/iso7816.c (map_sw): Return GPG_ERR_TIMEOUT for SW_ACK_TIMEOUT.
9432 tests: Add "disable-scdaemon" in gpg-agent.conf.
9433 + commit 64b7c6fd1945bc206cf56979633dfca8a7494374
9434 * tests/openpgp/defs.scm: Add "disable-scdaemon". Remove
9436 * tests/gpgme/gpgme-defs.scm, tests/gpgsm/gpgsm-defs.scm: Likewise.
9437 * tests/inittests, tests/pkits/inittests: Add "disable-scdaemon"
9439 2019-02-19 NIIBE Yutaka <gniibe@fsij.org>
9441 agent: Terminate pinentry process gracefully, by watching socket.
9442 + commit c395f8315362793409be54aca630ce6e903ea984
9443 * agent/call-pinentry.c (watch_sock): New.
9444 (do_getpin): Spawn the watching thread.
9446 agent: Minor change for pinentry status handling.
9447 + commit 99aa54323f97937613e02d8c2da91544e1fe7bcf
9448 * agent/call-pinentry.c (struct entry_parm_s): Add status.
9449 (do_getpin): Use param->status.
9450 (agent_askpin): Copy param->status. to pininfo.
9452 agent: Factor out the getpin interaction.
9453 + commit ada797f477f923bee36d67c8e49f728ae7adb9e9
9454 * agent/call-pinentry.c (do_getpin): New.
9455 (agent_askpin, agent_get_passphrase): Use do_getpin.
9457 2019-02-18 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
9459 sm: Support generation of card-based ed25519 CSR.
9460 + commit 3cbdf896e6919333b5423001ab58c01a04363386
9461 * sm/call-agent.c (gpgsm_scd_pksign): Allow SHA512. Create proper
9462 S-expression for EdDSA signature.
9463 * sm/certreqgen.c (create_request): Force use of SHA512 when
9464 using a ed25519 key.
9465 * sm/misc.c (transform_sigval): Insert OID for ed25519.
9467 2019-02-15 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
9469 sm: Support generation of card-based ECDSA CSR.
9470 + commit 74e9b579ca273fc07be090bb5fb7800a97b1b452
9471 * sm/call-agent.c (gpgsm_scd_pksign): Identify type of signing key
9472 and format resulting S-expression accordingly.
9473 * sm/misc.c (transform_sigval): Support ECDSA signatures.
9475 2019-02-14 Ingvar Hagelund <ingvar@redpill-linpro.com>
9477 po: Correct a simple typo in the Norwegian translation.
9478 + commit b89f1790e0b9f3196a2382a9b9ff5f461c58a449
9481 2019-02-13 Werner Koch <wk@gnupg.org>
9483 card: New command "yubikey".
9484 + commit 7e1cd2cd416f852fc039af310e3df1ce395d89a9
9485 * tools/card-tool-yubikey.c: New.
9486 * tools/Makefile.am (gpg_card_tool_SOURCES): Add it.
9487 * tools/card-call-scd.c (scd_apdu): Allow returning data.
9488 * tools/card-tool-misc.c (send_apdu): New. Move from gpg-card-tool.c
9489 and let it return data. Change all callers.
9491 * tools/gpg-card-tool.c (cmd_writecert): Prepend the certref with the
9492 current application type.
9495 2019-02-11 Werner Koch <wk@gnupg.org>
9497 scd: Implement decryption for PIV cards.
9498 + commit 43b14b4cc227311aa77b1fc1d9577c5f7d3eda86
9499 * scd/app-piv.c (do_decipher): New.
9501 scd: For PIV cards used NO_AUTH instead of BAD_PIN.
9502 + commit b2838694402ce0cfc2ef70451bf0e6677b875ca9
9503 * common/util.h (GPG_ERR_NO_AUTH, GPG_ERR_BAD_AUTH): Add replacement
9504 codes for gpgrt < 1.36.
9505 * scd/app-piv.c (auth_adm_key):
9506 (do_genkey, do_writecert): Use better error codes.
9508 2019-02-08 Werner Koch <wk@gnupg.org>
9510 scd: Implement RSA signing for PIV cards.
9511 + commit 53beea56afecde76f0f4ca93fc50ca59298a093e
9512 * scd/app-piv.c (concat_tlv_list): New.
9513 (get_key_algorithm_by_dobj): Rename args for clarity.
9514 (do_auth): factor all code out to ...
9515 (do_sign): new. Implement RSA signing.
9517 sm: In --gen-key with "key from card" show also the algorithm.
9518 + commit 0328976c94adc2c518c7a7763a35319a0000c5e2
9519 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Get and show algo.
9521 common: Provide function to get public key algo names in our format.
9522 + commit 03bf8e967adb2dd13329ba1089deb419d49e55c0
9523 * tools/card-tool-misc.c (pubkey_algo_string): Move to ...
9524 * common/sexputil.c (pubkey_algo_string): here.
9526 card: Make "generate" work for PIV cards.
9527 + commit a1cb4a940f308ba21ecc002b044efccf0c547784
9528 * tools/card-call-scd.c (scd_genkey_cb): Make createtime optional.
9529 (scd_genkey_cb): Ditto. Add arg algo.
9530 * tools/gpg-card-tool.c (cmd_generate): Add options and factor card
9531 specific code out to ...
9532 (generate_openpgp, generate_generic): new functions.
9534 scd: Allow generating ECC curves on PIV cards.
9535 + commit b349adc5c0d00d2fc405a45bd078f1580b5610cc
9536 * scd/app-piv.c (genkey_parse_ecc): New.
9537 (get_keygrip_by_tag): Call that one.
9538 (do_readkey): Call that one.
9539 * scd/command.c (cmd_genkey): Add option --algo.
9541 common: New functions get_option_value and ascii_strupr.
9542 + commit e2f18023b3b3b7e55b35218f65e37448d1011172
9543 * common/server-help.c (get_option_value): New.
9544 * common/stringhelp.c (ascii_strupr): New.
9546 2019-02-07 Werner Koch <wk@gnupg.org>
9548 card: Print the used algorithm of all keys.
9549 + commit b79bc877f2ad4d08e7de377cf4bf616b981b3c5f
9550 * tools/card-call-scd.c (scd_readkey): New.
9551 * tools/card-tool-misc.c (pubkey_algo_string): New.
9552 * tools/gpg-card-tool.c (list_one_kinfo): Print the algo.
9554 card: Fix a NULL-ptr deref in key listings.
9555 + commit df6ba6dfd235fddb7645bc16573da1a6a7e6b49d
9556 * tools/card-tool-keys.c (get_matching_keys): Fix segv.
9557 * tools/gpg-card-tool.c (main): Init info.
9559 scd: Store a new PIV public key in the certificate DO.
9560 + commit 5bf1212000f48243642ace0f708fd27446879b9e
9561 * scd/app-piv.c (struct genkey_result_s): Remove type and all users.
9562 (send_keypair_and_cert_info): Print certinfo only if we got a cert..
9563 (readcert_by_tag): Add arg r_mechanism and implement reading of public
9565 (get_keygrip_by_tag): Use a public key to compute the keygrip.
9566 (do_readcert): Make sure to only return a certificate.
9567 (do_readkey): Read public key from the DO if a certificate is missing.
9568 (get_key_algorithm_by_dobj): Get the algorithm also from a public key.
9569 (does_key_exist): String changes.
9570 (do_genkey): Remove result caching and store public key in the DO.
9572 card: Support reading and writing PIV certificates.
9573 + commit fcec5b40e589b2ef201efb89f22a952feb4a9069
9574 * scd/app-piv.c (add_tlv): New.
9576 (do_writecert): New.
9577 (do_setattr): Remove usused special mode 0.
9578 * tools/gpg-card-tool.c (cmd_writecert): Allow other cards than
9580 (cmd_readcert): Ditto.
9582 2019-02-06 Werner Koch <wk@gnupg.org>
9584 scd: Add genkey command to app-piv (rsa-only)
9585 + commit b5b1f721582df9d0379cb68b4faeceed32a56e49
9586 * scd/app-piv.c (struct genkey_result_s): new.
9587 (struct app_local_s): add member genkey_results.
9588 (do_deinit): Free that one.
9589 (flush_cached_data): Extend to delete all items.
9590 (keyref_from_dobj): New.
9592 (do_auth): Use keyref_from_dobj.
9593 (does_key_exist): New.
9594 (genkey_parse_rsa): New.
9597 scd: Make app_genkey and supporting ISO function more flexible.
9598 + commit 9a9cb0257aebb1480b999fdf9d90904083eb8e3c
9599 * scd/app.c (app_genkey): Add arg keytype.
9600 * scd/app-common.h (struct app_ctx_s): Fitto for the genkey member.
9601 * scd/command.c (cmd_genkey): Adjust for change.
9602 * scd/iso7816.c (do_generate_keypair): Replace arg read_only by new
9604 (iso7816_read_public_key): Adjust for this.
9605 (iso7816_generate_keypair): Add new args p1 and p2.
9606 * scd/app-openpgp.c (do_genkey): Adjust for changes.
9608 scd: Fix parameter name of app_change_key.
9609 + commit c26af8ac263ea006ed32e110a09271e4bfbf1f37
9610 * scd/app-common.h (APP_GENKEY_FLAG_FORCE): New.
9611 * scd/app.c (app_change_pin): Rename arg reset_mode to flags and
9612 change from int to unsigned int.
9614 scd: Implement PIN changing and unblocking for PIV cards.
9615 + commit e9e876cb5572670322aa1d3462d64c75c03974d9
9616 * scd/app-piv.c: Some refactoring
9617 (do_change_chv): Implement.
9619 2019-02-05 Werner Koch <wk@gnupg.org>
9621 scd: Allow standard keyref scheme for app-openpgp.
9622 + commit 3231ecdafd71ac47b734469b07170756979ede72
9623 * scd/app-openpgp.c (do_change_pin): Allow prefixing the CHVNO with
9625 * tools/card-call-scd.c (scd_change_pin): Change API to use strings.
9626 * tools/gpg-card-tool.c (cmd_passwd): Adjust for change.
9627 (cmd_unblock): Ditto.
9629 2019-01-31 Werner Koch <wk@gnupg.org>
9631 card: Implement non-interactive mode.
9632 + commit 1c0fa3e6f74692d5e9b5f08cda523f0fcec305eb
9633 * tools/card-tool.h (opt): Add field 'initialized'.
9634 * tools/card-call-scd.c (scd_learn): Set it.
9635 * tools/gpg-card-tool.c (main): Reworked.
9636 (dispatch_command): New.
9638 card: New command 'authenticate'.
9639 + commit da383257404cde9689bc58259ef3f46e9903bf34
9640 * tools/card-tool-misc.c (hex_to_buffer): New.
9641 * tools/gpg-card-tool.c (get_data_from_file): Change to allow returning
9643 (cmd_authenticate): New.
9644 (cmds): Add command "authenticate".
9646 scd: Add DES authentication for PIV card.
9647 + commit 1d57450f3e71b198e66e155a8ebbfab452f58ffc
9648 * scd/app-piv.c (flush_cached_data): New.
9649 (auth_adm_key): New.
9652 * scd/command.c (MAXLEN_SETATTRDATA): New.
9653 (cmd_setattr): Add an inquire option.
9655 2019-01-30 Werner Koch <wk@gnupg.org>
9657 card: Cache the results from gpg and gpgsm.
9658 + commit 0107984f9f55f84e4842642bceefd2181ec09dab
9659 * tools/card-tool-keys.c (keyblock_cache): New var.
9660 (release_keyblock): Factor code out to a new do_release_keyblock. Add
9662 (flush_keyblock_cache): New.
9663 (get_matching_keys): Use the cache.
9664 * tools/gpg-card-tool.c (cmds): Add command "reset".
9665 (interactive_loop): Implement reset.
9667 card: Print matching OpenPGP and X.509 data.
9668 + commit 833f27a6a7e059e38bccaf360f05e72e4403545a
9669 * tools/card-tool-keys.c: New.
9670 * tools/Makefile.am (gpg_card_tool_SOURCES): Add file.
9671 * tools/card-tool.h (struct pubkey_s, pubkey_t): New.
9672 (struct userid_s, userid_t): New.
9673 (struct keyblock_s, keyblock_t): New.
9674 * common/util.h (GNUPG_PROTOCOL_): New const
9675 * tools/gpg-card-tool.c (aTest): Add temporary command.
9676 (list_one_kinfo): Print info from gpg and gpgsm.
9678 gpg: Emit an ERROR status if no key was found with --list-keys.
9679 + commit 140fda8c61422ec055c3f7e214cc35706c4320dd
9680 * g10/keylist.c (list_one): Emit status line.
9682 common: Add kludge to allow silencing gnupg_exec_tool_stream.
9683 + commit 1fd3d864b4eceaf45b33e754e5d832b7ccc0d17f
9684 * common/exectool.c (read_and_log_buffer_t): Take care of a --quiet
9686 (gnupg_exec_tool_stream): Ditto.
9688 gpg: Allow generating Ed25519 key from an existing key.
9689 + commit 346a98fabe03adf2e202e36fc2aa24b1c2571154
9690 * g10/misc.c (map_pk_gcry_to_openpgp): Add EdDSA mapping.
9692 common: New function decode_c_string.
9693 + commit 6ecedd0b25b6b1a33be63b99f2a8256370000521
9694 * common/miscellaneous.c (decode_c_string): New.
9696 2019-01-29 Werner Koch <wk@gnupg.org>
9698 gpg: Implement searching keys via keygrip.
9699 + commit c128667b3cba749dd14262e032d4c260a2b0acd3
9700 * kbx/keybox-defs.h (struct _keybox_openpgp_key_info): Add field grip.
9701 * kbx/keybox-openpgp.c (struct keyparm_s): New.
9702 (keygrip_from_keyparm): New.
9703 (parse_key): Compute keygrip.
9704 * kbx/keybox-search.c (blob_openpgp_has_grip): New.
9705 (has_keygrip): Call it.
9707 common: Provide some convenient OpenPGP related constants.
9708 + commit f382984966a31a4cbe572bce5370590c5490ed1e
9709 * common/openpgpdefs.h (OPENPGP_MAX_NPKEY): New.
9710 (OPENPGP_MAX_NSKEY): New.
9711 (OPENPGP_MAX_NSIG): New.
9712 (OPENPGP_MAX_NENC): New.
9713 * g10/packet.h: Define PUBKEY_MAX using the new consts.
9715 common: New helper functions for OpenPGP curve OIDs.
9716 + commit 4a1558d0c7190cf13d35385e47291a7aa121be3e
9717 * common/openpgp-oid.c (openpgp_oidbuf_to_str): Factor most code out
9719 (openpgp_oidbuf_to_str): new.
9720 (openpgp_oidbuf_is_ed25519): New.
9721 (openpgp_oidbuf_is_cv25519): New.
9723 card: Support factory reset for Yubikey PIV application.
9724 + commit 79bed504e51034d960fcb858fb643901cad85913
9725 * scd/app-common.h (struct app_ctx_s): Add field cardtype.
9726 * scd/app.c (app_new_register): Set cardtype for yubikey.
9727 (app_getattr): Add CARDTYPE.
9728 (app_write_learn_status): Emit new attribute.
9729 * scd/app-piv.c (do_getattr): Add CHV-USAGE.
9730 (do_learn_status): Emit it.
9731 * tools/card-tool.h (struct card_info_s): Add field cardtype.
9732 * tools/card-call-scd.c (learn_status_cb): Parse "CARDTYPE".
9734 * tools/gpg-card-tool.c (list_piv): Print PIN usage policy.
9735 (list_card): Print card type.
9736 (cmd_factoryreset): Implement for Yubikey with PIV.
9738 card: Print keyinfo for PIV cards.
9739 + commit 9325c92284bb346d11c3591bb2ea88095989361a
9740 * scd/app-piv.c (do_learn_status): Print CHV-STATUS.
9741 * tools/card-tool.h (struct card_info_s): Rename chvretry to chvinfo.
9742 * tools/card-call-scd.c (learn_status_cb): Depend CHV-STATUS on app
9744 * tools/gpg-card-tool.c (list_piv): New.
9746 card: Make printing of key information more flexible.
9747 + commit 237880175f59d372011cd2e20bb49726eeccf058
9748 * tools/card-tool-misc.c: New.
9749 * tools/card-tool.h: Rewored data structures for key infos.
9750 * tools/gpg-card-tool.c: Ditto.
9751 * tools/card-call-scd.c: Ditto.
9753 2019-01-28 NIIBE Yutaka <gniibe@fsij.org>
9755 agent: Clear bogus pinentry cache, when it causes an error.
9756 + commit 02a2633a7f0b7d91aa48ea615fb3a0edfd6ed6bb
9757 * agent/agent.h (PINENTRY_STATUS_*): Expose to public.
9758 (struct pin_entry_info_s): Add status.
9759 * agent/call-pinentry.c (agent_askpin): Clearing the ->status
9760 before the loop, let the assuan_transact set ->status. When
9761 failure with PINENTRY_STATUS_PASSWORD_FROM_CACHE, it returns
9763 * agent/findkey.c (unprotect): Clear the pinentry cache,
9764 when it causes an error.
9766 2019-01-27 Werner Koch <wk@gnupg.org>
9768 card: Implement the bulk of OpenPGP stuff into gpg-card-tool.
9769 + commit 1c9251004592415b27988064ae20504dd1c37f57
9770 * tools/card-call-scd.c: New.
9771 * tools/card-tool.h: new.
9772 * tools/gpg-card-tool.c: Largely extended.
9774 2019-01-26 Werner Koch <wk@gnupg.org>
9776 gpg: Fix just changed agent_get_s2k_count.
9777 + commit 54f88afba4564e62e51fe6e22beabbdee75f91ac
9778 * g10/call-agent.c (agent_get_s2k_count): Actually return the count.
9780 gpg: Move S2K encoding function to a shared file.
9781 + commit ec13b1c562e34c0fcbc7b848ab6dc187b79cf2c1
9782 * g10/passphrase.c (encode_s2k_iterations): Move function to ...
9783 * common/openpgp-s2k.c: new file. Remove default intialization code.
9784 * common/openpgpdefs.h (S2K_DECODE_COUNT): New to keep only one copy.
9785 * g10/call-agent.c (agent_get_s2k_count): Change to return the count
9787 * agent/protect.c: Include openpgpdefs.h
9788 * g10/card-util.c (gen_kdf_data): Adjust for changes
9789 * g10/gpgcompose.c: Include call-agent.h.
9790 (sk_esk): Adjust for changes.
9791 * g10/passphrase (passphrase_to_dek): Adjust for changes.
9792 * g10/main.h (S2K_DECODE_COUNT): Remove macro.
9794 2019-01-25 Werner Koch <wk@gnupg.org>
9796 scd: Improve app selection for app "undefined".
9797 + commit 0415b80227c52620bece3ae7502f38f24a23e59d
9798 * scd/app.c (app_new_register): Don't bail out early in undefined
9801 scd: Fix flushing of CA-FPR data objects.
9802 + commit c9f4c1f0de06672c6ae2b793d86cc001d131f9a6
9803 * scd/app-openpgp.c (do_setattr): Add new table item to flush a
9806 2019-01-25 NIIBE Yutaka <gniibe@fsij.org>
9808 agent: Support --mode=ssh option for CLEAR_PASSPHRASE.
9809 + commit ae966bbe9b16ed68a51391afdde615339755e22d
9810 * agent/command.c (cmd_clear_passphrase): Add support for SSH.
9812 dirmngr: Fix initialization of assuan's nPth hook.
9813 + commit 1f8817475f59ede3f28f57edc10ba56bbdd08b49
9814 * dirmngr/dirmngr.c (main): Move assuan_set_system_hooks to...
9815 (thread_init): ... here.
9817 2019-01-24 Werner Koch <wk@gnupg.org>
9819 common: Extend function percent_data_escape.
9820 + commit 055f8854d3f49b8d06105d20f344f5ac10e4f6a6
9821 * common/percent.c (percent_data_escape): Add new args prefix and
9823 * agent/command.c (cmd_put_secret): Adjust for changed function
9825 * common/t-percent.c (test_percent_data_escape): Extend test for the
9827 (test_percent_data_escape_plus): new test for the plus escaping.
9829 2019-01-23 NIIBE Yutaka <gniibe@fsij.org>
9831 scd: Support PASSWD --clear for OpenPGP card.
9832 + commit fec75a3868da72196f76aca95c7ab07debb7dc04
9833 * scd/app-openpgp.c (do_change_pin): Implement handling
9834 APP_CHANGE_FLAG_CLEAR.
9836 2019-01-22 Werner Koch <wk@gnupg.org>
9838 gpg: Stop early when trying to create a primary Elgamal key.
9839 + commit f97dc55ff1b041071bc3cbe98aa761bf77bb7ac8
9840 * g10/misc.c (openpgp_pk_test_algo2): Add extra check.
9842 card-tool: Add skeleton for new tool.
9843 + commit e6d613711a327d63511601dd42aeff34e09ec95a
9844 * tools/gpg-card-tool.c: New.
9845 * tools/gpg-card-tool-w32info.rc: New.
9846 * tools/Makefile.am: Add new tool.
9848 common: Add generic status print function.
9849 + commit 03cf23b43ec5fea8a355d3ba2200e86a8efc589b
9850 * common/status.c (gnupg_set_status_fd): New.
9851 (gnupg_status_printf): New.
9852 * po/Makevars (XGETTEXT_OPTIONS): Add gnupg-status_printf.
9854 2019-01-21 Werner Koch <wk@gnupg.org>
9856 scd: Support CHV-STATUS and CHECKPIN for PIV.
9857 + commit fa9d703de5c70ae925e8ca6604073506f24d641a
9858 * scd/app-piv.c (parse_pin_keyref): New.
9859 (get_chv_status): New.
9860 (do_getattr): Add name CHV-STATUS.
9861 (verify_pin): Add arg keyref to support other PINs.
9862 (do_change_pin): New. Right now limited to --clear.
9863 (do_check_pin): New.
9864 (app_select_piv): Register new commands.
9866 scd: Add option --clear to PASSWD.
9867 + commit 29929e65521279eabc98a67c766fe485057405a9
9868 * scd/command.c (cmd_passwd): Add option --clear.
9869 (send_status_printf): New.
9870 * scd/app-common.h (APP_CHANGE_FLAG_CLEAR): New.
9871 * scd/app-nks.c (do_change_pin): Return an error if that option is
9873 * scd/app-openpgp.c (do_change_pin): Ditto.
9875 2019-01-20 Werner Koch <wk@gnupg.org>
9877 scd: Add very basic support for PIV cards.
9878 + commit ec56996029d95d4bd26e1badfe207232270c6247
9879 * scd/app-piv.c: New.
9880 * scd/Makefile.am (card_apps): Add app-piv.c
9881 * scd/app.c (app_new_register): Try to get a Yubikey serial number.
9882 Detect the PIV application.
9883 (get_supported_applications): Add "piv".
9885 scd: One new and one improved 7816 function.
9886 + commit 70bb5c7931598590b1acfae90bf4657f5911d2d3
9887 * scd/apdu.c (apdu_send_direct): New arg R_SW.
9888 * scd/command.c (cmd_apdu): Ditto.
9889 * scd/iso7816.c (iso7816_apdu_direct): New arg R_SW.
9890 (iso7816_general_authenticate): New.
9891 * scd/app-nks.c (get_chv_status, get_nks_version): Pass NULL for new
9894 2019-01-17 Werner Koch <wk@gnupg.org>
9896 ssh: Simplify the curve name lookup.
9897 + commit d93797c8a7892fe26672c551017468e9f8099ef6
9898 * agent/command-ssh.c (struct ssh_key_type_spec): Add field
9900 (ssh_key_types): Add some alternate curve names.
9901 (ssh_identifier_from_curve_name): Lookup also bey alternative names
9902 and return the canonical name.
9903 (ssh_key_to_blob): Simplify the ECDSA case by using gcry_pk_get_curve
9904 instead of the explicit mapping.
9905 (ssh_receive_key): Likewise. Use ssh_identifier_from_curve_name to
9906 validate the curve name. Remove the reverse mapping because since
9907 GnuPG-2.2 Libgcrypt 1.7 is required.
9908 (ssh_handler_request_identities): Log an error message.
9910 2019-01-16 NIIBE Yutaka <gniibe@fsij.org>
9912 gpg: Report STATUS_NO_SECKEY when it is examined.
9913 + commit dafffa95b2317bcb80fff1fd6d2bc7b4e6b1e206
9914 * g10/packet.h (struct pubkey_enc_list): Add result.
9915 * g10/mainproc.c (proc_pubkey_enc): Initialize ->result.
9916 (proc_encrypted): Report STATUS_NO_SECKEY status.
9917 * g10/pubkey-enc.c (get_session_key): Set ->result.
9919 2019-01-07 NIIBE Yutaka <gniibe@fsij.org>
9921 scd: Fix for USB INTERRUPT transfer.
9922 + commit 5ab3bc422a5cc1a646c168b547f2b6538b3a4ffa
9923 * scd/ccid-driver.c (intr_cb): When LIBUSB_TRANSFER_NO_DEVICE,
9924 just handle this event as failure.
9926 2019-01-03 Werner Koch <wk@gnupg.org>
9928 scd: Add two variants to the set of ISO7816 functions.
9929 + commit 405feca2bdeeb620dc406667a702035a123ae848
9930 * scd/iso7816.c (iso7816_select_application_ext): New.
9931 (iso7816_get_data_odd): New.
9933 scd: Support "READKEY --advanced" for all cards.
9934 + commit cca2b87e79cda212a33c13efdd2b2830295d2efe
9935 * scd/command.c (cmd_readkey): Reformat for advanced mode.
9937 2018-12-18 Werner Koch <wk@gnupg.org>
9939 wks: Do not use compression for the encrypted data.
9940 + commit 70a8db0333e3c22403b3647f8b5f924f6dace719
9941 * tools/gpg-wks-client.c (encrypt_response): Add arg -z0.
9942 * tools/gpg-wks-server.c (encrypt_stream): Ditto.
9944 2018-12-18 NIIBE Yutaka <gniibe@fsij.org>
9946 scd: Fix description string.
9947 + commit e6b7e0ff9990813ac9f11b2d9d92596d6379ebfe
9948 * scd/app-openpgp.c (data_objects): Capitalize the word for usage.
9950 2018-12-17 Werner Koch <wk@gnupg.org>
9952 Silence a few compiler warnings new with gcc 8.
9953 + commit 40c307fa8d0e813f2aa57806f25b8b0063cc2be3
9954 * dirmngr/dns.c: Include gpgrt.h. Silence -Warray-bounds also gcc.
9955 * tools/gpg-pair-tool.c (command_respond): Init two vars to silence
9958 2018-12-12 NIIBE Yutaka <gniibe@fsij.org>
9960 card: Suppress error message by agent_scd_cardlist.
9961 + commit ebf775eb16fef27bd1f27319a5483d04dcf95a9a
9962 * g10/call-agent.c (agent_scd_cardlist): Add
9963 FLAG_FOR_CARD_SUPPRESS_ERRORS.
9965 2018-12-11 Werner Koch <wk@gnupg.org>
9967 agent: Make the S2K calibration time runtime configurabe.
9968 + commit cbcc8c19541fe8407f3b6588fce1535c64cf6b25
9969 * agent/protect.c (s2k_calibration_time): New file global var.
9970 (calibrate_s2k_count): Use it here.
9971 (get_calibrated_s2k_count): Replace function static var by ...
9972 (s2k_calibrated_count): new file global var.
9973 (set_s2k_calibration_time): New function.
9974 * agent/gpg-agent.c (oS2KCalibration): New const.
9975 (opts): New option --s2k-calibration.
9976 (parse_rereadable_options): Parse that option.
9978 dirmngr: Retry another server from the pool on 502, 503, 504.
9979 + commit 05ef6282784495a77f4faf76c0de5bc85dfecf06
9980 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Add arg
9981 http_status and handle it.
9982 (ks_hkp_search): Get http_status froms end_request and pass on to
9983 handle_send_request_error.
9984 (ks_hkp_get): Ditto.
9985 (ks_hkp_put): Ditto.
9987 dirmngr: New function http_status2string.
9988 + commit dc61f4ecea5c9815cb00aeb25439978337c1fd64
9989 * dirmngr/http.c (http_status2string): New.
9991 gpg: In search-keys return "Not found" instead of "No Data".
9992 + commit e7252ae57f3c9da557f23295268f74dd25fee3a1
9993 * g10/keyserver.c (keyserver_search): Check for NO_DATA.
9995 2018-12-11 Tomi Leppänen <tomi.leppanen@jolla.com>
9997 tools: Use POSIX compatible arguments for find.
9998 + commit 2c35e67e3475ec38ff49953d79bd0f734d6db542
9999 * tools/addgnupghome (filelist): Remove bashism.
10001 2018-12-05 NIIBE Yutaka <gniibe@fsij.org>
10003 g10: Fix print_pubkey_info new line output.
10004 + commit e154fba30ba0d5f29040a33f5c1b5c25b441b69f
10005 * g10/keylist.c (print_pubkey_info): Reverse the condition.
10007 2018-12-04 Werner Koch <wk@gnupg.org>
10009 wks: Fix filter expression syntax flaw.
10010 + commit 0c36ec241d285545f286069843de4f663cd274a3
10011 * tools/wks-util.c (wks_get_key, wks_filter_uid): The filter
10012 expression needs a space before the value.
10013 (install_key_from_spec_file): Replace es_getline by es_read_line and
10014 remove debug output.
10016 gpg: Prepare revocation keys for use with v5 keys.
10017 + commit c6e2ee020784de63edfa83c76095e086eae49eef
10018 * g10/packet.h (struct revocation_key): Add field 'fprlen'.
10019 * g10/parse-packet.c (parse_revkeys): Set fprlen and allow for v5
10020 keys. Also fix reading of unitialized data at place where
10021 MAX_FINGERPRINT_LEN is used.
10022 * g10/revoke.c (gen_desig_revoke): Allow for v5 keys and use fprlen.
10023 Do an explicit compare to avoid reading unitialized data.
10024 * g10/sig-check.c (check_revocation_keys): Use the fprlen.
10025 * g10/getkey.c (merge_selfsigs_main): Do an explicit copy to avoid
10026 reading unitialized data.
10027 * g10/import.c (revocation_present): Use fprlen.
10028 * g10/keyedit.c (show_key_with_all_names): Use fprlen.
10029 (menu_addrevoker): Use fprlen. Allow for v5 keys.
10030 * g10/keygen.c (keygen_add_revkey): Use fprlen.
10031 (parse_revocation_key): Allow for v5 keys.
10032 * g10/keyid.c (keyid_from_fingerprint): Allow for v5 keys. Print a
10033 better error message in case of bogus fingerprints.
10034 * g10/keylist.c (print_revokers): Use fprlen.
10036 wks: Allow reading of --install-key arguments from stdin.
10037 + commit ba46a359b9d6549b74ec8401ea39bad434d87564
10038 * tools/wks-util.c (install_key_from_spec_file): New.
10039 (wks_cmd_install_key): Call it.
10040 * tools/gpg-wks-client.c (main): Allow --install-key w/o arguments.
10041 * tools/gpg-wks-server.c (main): Ditto.
10043 gpg: New list-option "show-only-fpr-mbox".
10044 + commit 0e8bf204791ebfd0c9a8e4b49fbadf998ec62e49
10045 * g10/gpg.c (parse_list_options): Add option "show-only-fpr-mbox".
10046 * g10/options.h (LIST_SHOW_ONLY_FPR_MBOX): New.
10047 * g10/keylist.c (list_keyblock_simple): New.
10048 (list_keyblock): Call it.
10049 (list_all): Do not print the keyring name in LIST_SHOW_ONLY_FPR_MBOX
10052 wks: Create sub-directories.
10053 + commit 73e5b0ec9b9ba5e04e55f8c42d81e23df7c3afe0
10054 * tools/wks-util.c (wks_compute_hu_fname): Stat and create directory
10057 wks: Add new commands --install-key and --remove-key to the client.
10058 + commit 602b1909632925d5a2e0778c102d66109795c627
10059 * tools/gpg-wks-client.c (aInstallKey, aRemoveKey, oDirectory): New.
10060 (opts): Add "--install-key", "--remove-key" and "-C".
10061 (parse_arguments): Parse them.
10062 (main): Check that the given directory exists. Implement the new
10065 wks: Move a few server functions to wks-util.
10066 + commit 99094c992c20dd22971beb3527cfda109cd1df89
10067 * tools/gpg-wks-server.c (write_to_file): Move to ...
10068 * tools/wks-util.c: here.
10069 * tools/gpg-wks-server.c (compute_hu_fname): Move to ...
10070 * tools/wks-util.c (wks_compute_hu_fname): here.
10071 * tools/gpg-wks-server.c (fname_from_userid): Move to ...
10072 * tools/wks-util.c (wks_fname_from_userid): here.
10073 * tools/gpg-wks-server.c (command_install_key): Move to ...
10074 * tools/wks-util.c (wks_cmd_install_key): here and change caller.
10075 * tools/gpg-wks-server.c (command_remove_key): Move to ...
10076 * tools/wks-util.c (wks_cmd_remove_key): here and change callers.
10078 2018-12-04 NIIBE Yutaka <gniibe@fsij.org>
10080 build: Remove --with-*-prefix from configure_opts.
10081 + commit 802b23289cc9b43a56e5032c2681eb21d4014784
10082 * autogen.rc (configure_opts): Remove --with-*-prefix.
10084 2018-12-01 Jussi Kivilinna <jussi.kivilinna@iki.fi>
10086 g10/mainproc: disable hash contexts when --skip-verify is used.
10087 + commit 73e74de0e33bbb76300f96a4174024779047df06
10088 * g10/mainproc.c (proc_plaintext): Do not enable hash contexts when
10089 opt.skip_verify is set.
10091 common/iobuf: fix memory wiping in iobuf_copy.
10092 + commit 654e353d9b20f10fa275e7ae10cc50480654f079
10093 * common/iobuf.c (iobuf_copy): Wipe used area of buffer instead of
10094 first sizeof(char*) bytes.
10096 common/mischelp: use platform memory zeroing function for wipememory.
10097 + commit 2a650772b4e1c78a4fd20bc88433930e5551fe9c
10098 * common/mischelp.h (wipememory): Replace macro with function
10100 (wipememory2): Remove.
10101 * common/mischelp.c (wipememory): New.
10102 * configure.ac (AC_CHECK_FUNCS): Check for 'explicit_bzero'.
10104 2018-11-30 Werner Koch <wk@gnupg.org>
10106 scd: Add strerror to new error message.
10107 + commit 3a90efb7cf13532cc82b45c11a7abdadfe0c81f1
10108 * agent/call-scd.c (wait_child_thread): Add %s.
10110 gpg: Improve error message about failed keygrip computation.
10111 + commit cd64af003d4b6b46b69dbd575f73d53359ae0bcc
10112 * g10/keyid.c (keygrip_from_pk): Print the fingerprint on failure.
10114 2018-11-28 NIIBE Yutaka <gniibe@fsij.org>
10116 scd: Serialize opening device by select_application.
10117 + commit 47106ac435e891ced67f0ad9bb6b2ee12098c880
10118 * scd/app.c (app_new_register): Don't lock APP_LIST_LOCK here.
10119 (select_application): Lock with APP_LIST_LOCK earlier.
10121 2018-11-27 NIIBE Yutaka <gniibe@fsij.org>
10123 agent: Better serialization for scdaemon access.
10124 + commit 483e63f9b5faead819ddd28308902ef43bf298ab
10125 * agent/call-scd.c (unlock_scd): Move lock before accessing IN_USE.
10126 (wait_child_thread): Add log_info for Windows, and fixed log_error
10129 2018-11-26 Andre Heinecke <aheinecke@intevation.de>
10131 w32: Fix linkage of gpg-pair-tool.
10132 + commit f12fcd907903742bde3ebb7ffef244c92d6d1611
10133 * tools/Makefile.am (gpg_pair_tool_LDADD): Add W32SOCKLIBS.
10135 2018-11-26 NIIBE Yutaka <gniibe@fsij.org>
10137 agent: Have a thread to wait for the child process of scdaemon.
10138 + commit 40c7923ea881881a48de8f303b0870ec5910e13d
10139 * agent/call-scd.c (wait_child_thread): New.
10140 (start_scd): Create a thread for wait_child_thread.
10141 (agent_scd_check_aliveness): Remove.
10143 agent: Defer calling assuan_release when it's still in use.
10144 + commit 9fb3f0f3f79e74166cce8e0781e97043f25890cc
10145 * agent/call-scd.c (struct scd_local_s): Remove LOCK, introduce IN_USE
10147 (unlock_scd): Call assuan_release when CTX is invalid.
10148 (start_scd): Set IN_USE.
10149 (agent_scd_check_aliveness): Don't call assuan_release when it's in use.
10151 agent: Clean up SCDaemon management.
10152 + commit f45d6124696cc92ccdec09841b8182679c377997
10153 * agent/call-scd.c (struct scd_local_s): Remove ctrl_backlink.
10154 (start_scd): Don't assign to the field.
10155 (agent_scd_check_aliveness): Fix typo in comment.
10157 2018-11-22 Werner Koch <wk@gnupg.org>
10159 dirmngr: Avoid possible CSRF attacks via http redirects.
10160 + commit fa1b1eaa4241ff3f0634c8bdf8591cbc7c464144
10161 * dirmngr/http.h (parsed_uri_s): Add fields off_host and off_path.
10162 (http_redir_info_t): New.
10163 * dirmngr/http.c (do_parse_uri): Set new fields.
10164 (same_host_p): New.
10165 (http_prepare_redirect): New.
10166 * dirmngr/t-http-basic.c: New test.
10167 * dirmngr/ks-engine-hkp.c (send_request): Use http_prepare_redirect
10168 instead of the open code.
10169 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
10171 2018-11-16 Werner Koch <wk@gnupg.org>
10173 gpg: Start using OCB mode by default with Libgcrypt 1.9.
10174 + commit 1e700961ddf4c54ec5a03a697fe00d7eb606fdff
10175 * g10/main.h (GCRYPT_VERSION_NUMBER): Fix type in condition.
10177 2018-11-15 NIIBE Yutaka <gniibe@fsij.org>
10179 card: Display UIF setting.
10180 + commit e955ca245ea08e68ae2397f1583c8728d72acbd8
10181 * g10/call-agent.h (agent_card_info_s): Add UIF fields.
10182 * g10/call-agent.c (learn_status_cb): Put UIF DOs info.
10183 * g10/card-util.c (current_card_status): Output for UIF.
10185 scd: Make "learn" report about KDF data object.
10186 + commit 05d163aebc04db109ec5e004eb04a4b3796f6421
10187 * scd/app-openpgp.c (do_learn_status): Report KDF attr.
10188 * g10/card-util.c (current_card_status): Output KDF for with_colons.
10190 card: Display if KDF is enabled or not.
10191 + commit a5542a4a702c2210facf58a98bc8d3d16089b6ab
10192 * g10/call-agent.h (kdf_do_enabled): New field.
10193 * g10/call-agent.c (learn_status_cb): Set kdf_do_enabled if available.
10194 * g10/card-util.c (current_card_status): Inform the availability.
10196 2018-11-14 Werner Koch <wk@gnupg.org>
10198 Remove the gpg-zip script.
10199 + commit 8b8ea802ca071c911158cab0203245a16a69125c
10200 * tools/gpg-zip.in: Remove.
10201 * m4/tar-ustar.m4: Remove.
10203 2018-11-14 NIIBE Yutaka <gniibe@fsij.org>
10205 agent: Simplify agent_popup_message_stop.
10206 + commit 804a77edd9472d44606641b7772550521e1ba271
10207 * agent/call-pinentry.c (agent_popup_message_stop): Just kill it.
10209 2018-11-13 Werner Koch <wk@gnupg.org>
10211 dirmngr: Support the new WKD draft with the openpgpkey subdomain.
10212 + commit 914fa3be22bf8848a97a7dd405a040d6ef31e2fd
10213 * dirmngr/server.c (proc_wkd_get): Implement new openpgpkey subdomain
10216 2018-11-13 NIIBE Yutaka <gniibe@fsij.org>
10218 build: Update libgcrypt.m4 and ntbtls.m4.
10219 + commit d58fe697acefd435ec01503dae574d6c99dfedae
10220 * m4/libgcrypt.m4: Update from master.
10221 * m4/ntbtls.m4: Update from master.
10223 2018-11-12 Andre Heinecke <aheinecke@intevation.de>
10225 dirmngr: Add FLUSHCRLs command.
10226 + commit 678e4706ee614a6b7e543e2a80072d75405dd4db
10228 * dirmngr/crlcache.c (crl_cache_flush): Also deinit the cache.
10229 * dirmngr/server.c (hlp_flushcrls, cmd_flushcrls): New.
10230 (register_commands): Add FLUSHCRLS.
10232 2018-11-12 Werner Koch <wk@gnupg.org>
10234 common: Prepare for parsing mail sub-addresses.
10235 + commit 6b9f772914624cc673ba26d49b6e3adc32dd7e0a
10236 * common/mbox-util.c (mailbox_from_userid): Add arg subaddress and
10237 implement. Change all callers to pass false for it.
10239 * common/t-mbox-util.c (run_mbox_no_sub_test): New.
10240 (run_filter): Add arg no_sub.
10241 (main): Call new test and add option --no-sub.
10243 2018-11-11 Werner Koch <wk@gnupg.org>
10245 common: Add --filter option to t-mbox-util.
10246 + commit b3095c95ef9d2d76b49a6ad1b946fca590380dc9
10247 * common/t-mbox-util.c (run_filter): New.
10248 (main): Add option parser.
10250 2018-11-09 Jussi Kivilinna <jussi.kivilinna@iki.fi>
10252 g10/mainproc: avoid extra hash contexts when decrypting AEAD input.
10253 + commit b46382dd47731231ff49b59c486110a25e08e985
10254 * g10/mainproc.c (mainproc_context): New member
10255 'seen_pkt_encrypted_aead'.
10256 (release_list): Clear 'seen_pkt_encrypted_aead'.
10257 (proc_encrypted): Set 'seen_pkt_encrypted_aead'.
10258 (have_seen_pkt_encrypted_aead): New.
10259 (proc_plaintext): Do not enable extra hash contexts when decryption
10262 2018-11-08 Jussi Kivilinna <jussi.kivilinna@iki.fi>
10264 g10/armor: optimize radix64 to binary conversion.
10265 + commit 643ec7c642dc75191e712963d2bb460ac247e09b
10266 * g10/armor.c (asctobin): Larger look-up table for fast path.
10267 (initialize): Update 'asctobin' initialization.
10268 (radix64_read): Add fast path for radix64 to binary conversion.
10270 g10/armor: optimize binary to radix64 conversion.
10271 + commit e8142cc69a2ae5a5d0a238bc9f88841067359af8
10272 * g10/armor.c (bintoasc): Change to read-only.
10273 (initialize): Use const pointer for 'bintoasc'.
10274 (armor_output_buf_as_radix64): New function for faster binary to
10275 radix64 conversion.
10276 (armor_filter): Use new conversion function.
10278 g10/armor: use libgcrypt's CRC24 implementation.
10279 + commit e486d4f0259f27906d2c2869cc01b3aa31aaa0a6
10280 * g10/armor.c (CRCINIT, CRCPOLY, CRCUPDATE, crc_table): Remove.
10281 (new_armor_context): Open libgcrypt CRC24 context.
10282 (release_armor_context): Close CRC24 context.
10283 (initialize): Remove CRC table generation.
10284 (get_afx_crc): New.
10285 (check_input, fake_packet, radix64_read, armor_filter): Update to use
10287 * g10/filter.h (armor_filter_context_t): Replace crc intermediate value
10288 with libgcrypt md context pointer.
10290 common/iobuf: optimize iobuf_read_line.
10291 + commit 2b5718c1f76851160115f455c3a9383b04521347
10292 * common/iobuf.c (iobuf_read_line): Add fast path for finding '\n'
10293 character in buffer.
10295 g10/armor: remove unused unarmor_pump code.
10296 + commit 47424881b27d4b3bae2925265b2008cda0c2933f
10297 * g10/armor.c (unarmor_state_e, unarmor_pump_s, unarmor_pump_new)
10298 (unarmor_pump_release, unarmor_pump): Remove.
10299 * g10/filter.h (UnarmorPump, unarmor_pump_new, unarmor_pump_release)
10300 (unarmor_pump): Remove.
10302 g10/armor: fix eof checks in radix64_read.
10303 + commit a571bb8df52d6f2727876e086790dd037c9948ad
10304 * g10/armor.c (radix64_read): Check EOF with '!afx->buffer_len' instead
10305 of 'c == -1', as 'c' is never set to this value.
10307 g10/decrypt-data: use iobuf_read for higher performance.
10308 + commit 5d6c080522e1666943b75c99124fb69b985b6941
10309 * g10/decrypt-data.c (fill_buffer): Use iobuf_read instead of iobuf_get
10312 g10/decrypt-data: use fill_buffer in more places.
10313 + commit e2b9095de35ac4d402b077d5484b4131700a9925
10314 * g10/decrypt-data.c (mdc_decode_filter, decode_filter): Use
10317 2018-11-08 NIIBE Yutaka <gniibe@fsij.org>
10319 gpgcompose: Fix --sk-esk.
10320 + commit 69930f6884a934207f7aa523cf6d2b8e22dfe666
10321 * g10/gpgcompose.c (sk_esk): Copy the result content correctly.
10322 Don't forget to free the result.
10324 g10: Fix log_debug formatting.
10325 + commit 7fc3decc2e038be905d47701c7ce196ed86a725b
10326 * g10/cipher-aead.c (do_flush): No cast is correct.
10327 * g10/decrypt-data.c (aead_underflow): No cast needed.
10328 Use "%j" for uint64_t for chunklen.
10330 2018-11-06 NIIBE Yutaka <gniibe@fsij.org>
10332 g10: Fix print_keygrip for smartcard.
10333 + commit 01b77ebbb71d47ba276d3a1af9595fdcd9b48f5f
10334 * g10/card-util.c (print_keygrip): Use tty_fprintf.
10336 2018-11-05 Werner Koch <wk@gnupg.org>
10338 wks: New option --with-colons for gpg-wks-client.
10339 + commit e3a1e80d13487c9336640a99b2f6d385d7d6f55c
10340 * tools/gpg-wks.h (opt): Add field with_colons.
10341 * tools/gpg-wks-client.c (oWithColons): New const.
10342 (opts, parse_arguments): Add option --with-colons.
10343 (main): Change aSupported to take several domains in --with-colons
10345 (command_send): Factor policy getting code out to ...
10346 (get_policy_and_sa): New function.
10347 (command_supported): Make use of new function.
10349 speedo: Remove obsolete configure option of gpgme.
10350 + commit d7323bb2d957fbeb8192c0ecbd99b1d14d302912
10351 * build-aux/speedo.mk (speedo_pkg_gpgme_configure): Remove
10352 --disable-w32-qt option.
10354 dirmngr: Fix LDAP port parsing.
10355 + commit a3a5a2451924640588e5ecc03a1d4ba6a6ba94a5
10356 * dirmngr/misc.c (host_and_port_from_url): Fix bad port parsing and a
10357 segv for a missing slash after the host name.
10359 2018-11-02 NIIBE Yutaka <gniibe@fsij.org>
10361 build: Update *.m4 from libraries.
10362 + commit 8e84efbe35633275e260712ba38a505e3f9d0898
10363 * m4/gpg-error.m4: Update from master.
10364 * m4/ksba.m4: Ditto.
10365 * m4/libassuan.m4: Ditto.
10366 * m4/libgcrypt.m4: Ditto.
10367 * m4/npth.m4: Ditto.
10368 * m4/ntbtls.m4: Ditto.
10370 2018-10-31 NIIBE Yutaka <gniibe@fsij.org>
10372 build: Update *.m4 from libraries.
10373 + commit fd7aee6a97134fdf48a496841241f8ae25736e61
10374 * m4/gpg-error.m4: Update from master.
10375 * m4/ksba.m4: Ditto.
10376 * m4/libassuan.m4: Ditto.
10377 * m4/libgcrypt.m4: Ditto.
10378 * m4/npth.m4: Ditto.
10379 * m4/ntbtls.m4: Ditto.
10381 2018-10-26 Werner Koch <wk@gnupg.org>
10383 build: By default build wks-tools on all Unix platforms.
10384 + commit b83fed64f8051279a8f36e024c1f12f7f13c4716
10387 wkd: Add option --directory to the server.
10388 + commit f248416bc9792e80bb0785302058131de49d7639
10389 * tools/gpg-wks-server.c (opts): Add '--directory',
10390 (main): Explain how to set correct permissions.
10391 (command_list_domains): Create an empty policy file and remove the
10392 warning for an empty policy file.
10394 2018-10-26 NIIBE Yutaka <gniibe@fsij.org>
10396 kbx: Increase size of field for fingerprint.
10397 + commit 4249e9a2bf028f007d1ddaac730f636e5c6da20f
10398 * kbx/keybox-search-desc.h (fpr): Increase the size.
10400 2018-10-25 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10402 all: fix more spelling errors.
10403 + commit a7c5d65eb50355274c1b5b047c02c653f518900a
10406 headers: fix spelling.
10407 + commit b39ece7d35401302879062d9d4bec25b1249ae7e
10410 2018-10-25 Werner Koch <wk@gnupg.org>
10412 dirmngr: Fix out of scope use of a var in the keyserver LDAP code.
10413 + commit 2b57a8159cdc3b212a4efc68787b40cafcd91ebe
10414 * dirmngr/ks-engine-ldap.c (extract_attributes): Don't use a variabale
10415 out of scope and cleanup the entire pgpKeySize block.
10417 2018-10-25 NIIBE Yutaka <gniibe@fsij.org>
10419 g10,scd: Improve UIF support.
10420 + commit 0240345728a84d8f235ce05889e83963e52742eb
10421 * g10/call-agent.c (learn_status_cb): Parse "bt" flag.
10422 * g10/call-agent.h: New member field "bt".
10423 * g10/card-util.c (uif): Limit its access only when it is supported.
10424 * scd/app-openpgp.c (do_setattr): Allow access to UIF objects only
10425 when there is a button.
10427 2018-10-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10429 all: fix spelling and typos.
10430 + commit 54eb375ff14e2a93cea70eab35719be4d25f51ca
10433 doc: fix spelling mistakes.
10434 + commit ef540d1af0649ebf1add190d0ab095e957658b7e
10437 2018-10-24 Werner Koch <wk@gnupg.org>
10439 agent: Fix possible uninitalized use of CTX in simple_pwquery.
10440 + commit bafcf7095159493a656382997f8b0d0bb11a20e8
10441 * common/simple-pwquery.c (agent_open): Clear CTX even on early error.
10443 agent: Fix possible release of unitialize var in a genkey error case.
10444 + commit 2bdc4b6ed97770ed15ec6c5afa02c2e44568a3bc
10445 * agent/command.c (cmd_genkey): Initialize 'value'.
10447 ssh: Fix possible infinite loop in case of an read error.
10448 + commit 7385e1babf6eef586c79ad23f8e541aaf608c4e5
10449 * agent/command-ssh.c (ssh_handler_add_identity): Handle other errors
10452 tools: Fix FILE memory leak in gpg-connect-agent.
10453 + commit 378719f25fe00d46393541f4a4f79e04484c3000
10454 * tools/gpg-connect-agent.c (do_open): dup the fileno and close the
10457 sm: Use the correct string in an error message.
10458 + commit 793fd8d876777c24c4d5072301fa530333d6e1d9
10459 * sm/gpgsm.c (main): Fix error message.
10461 gpg: Unfinished support for v5 signatures.
10462 + commit 64a1e86fc06d89c980a196c61d2b6d77d167565e
10463 * g10/parse-packet.c (parse_signature): Allow for v5 signatures.
10464 * g10/sig-check.c (check_signature_end_simple): Support the 64bit v5
10466 * g10/sign.c (hash_sigversion_to_magic): Ditto.
10467 (write_signature_packets): Request v5 sig for v5 keys. Remove useless
10469 (make_keysig_packet): Request v5 sig for v5 keys.
10471 2018-10-22 Werner Koch <wk@gnupg.org>
10473 dirmngr: Prepare for updated WKD specs with ?l= param.
10474 + commit 256a280c51f9ea862e4bfb0bb530c2a96f9088f9
10475 * dirmngr/server.c (proc_wkd_get): Tack the raw local address to the
10478 agent: Fix build regression for Windows.
10479 + commit 68b8096b6617cdad09c99d7eda2035176807e78f
10480 * agent/command-ssh.c (get_client_info): Turn client_uid into an int.
10481 Fix setting of it in case of a failed getsocketopt.
10482 * agent/command.c (start_command_handler): Fix setting of the pid and
10485 dirmngr: In verbose mode print the OCSP responder id.
10486 + commit 0a7f446c189201ca6e527af08b44da756b343209
10487 * dirmngr/ocsp.c (ocsp_isvalid): Print the responder id.
10489 2018-10-15 Werner Koch <wk@gnupg.org>
10491 tools: Replace duplicated code in mime-maker.
10492 + commit f03928b16c4fb00077d22d8ec141575ef6d26913
10493 * tools/rfc822parse.c (HEADER_NAME_CHARS): New. Taken from
10495 (rfc822_valid_header_name_p): New. Based on code from mime-maker.c.
10496 (rfc822_capitalize_header_name): New. Copied from mime-maker.c.
10497 (capitalize_header_name): Remove. Replace calls by new func.
10498 (my_toupper, my_strcasecmp): New.
10499 * tools/mime-maker.c: Include rfc822parse.h.
10500 (HEADER_NAME_CHARS, capitalize_header_name): Remove.
10501 (add_header): Replace check and capitalization by new functions.
10503 2018-10-15 NIIBE Yutaka <gniibe@fsij.org>
10505 scd: Fix signing authentication status.
10506 + commit 78f542e1f4495195db2e668f9cd41657fb1afc77
10507 * scd/app-openpgp.c (do_sign): Clear DID_CHV1 after signing.
10509 2018-10-12 NIIBE Yutaka <gniibe@fsij.org>
10511 agent: Fix message for ACK button.
10512 + commit 4ed941ff26783c4fabfe2079029f8e436eb7e340
10513 * agent/divert-scd.c (getpin_cb): Display correct message.
10515 2018-10-11 NIIBE Yutaka <gniibe@fsij.org>
10517 scd: Support "acknowledge button" feature.
10518 + commit 7a5a4c4cac8709f7c413e94cd0b40f4123baa1e5
10519 * scd/apdu.c (set_prompt_cb): New member function.
10520 (set_prompt_cb_ccid_reader): New function.
10521 (open_ccid_reader): Initialize with set_prompt_cb_ccid_reader.
10522 (apdu_set_prompt_cb): New.
10523 * scd/app.c (lock_app, unlock_app): Add call to apdu_set_prompt_cb.
10524 * ccid-driver.c (ccid_set_prompt_cb): New.
10525 (bulk_in): Call ->prompt_cb when timer extension.
10526 * scd/command.c (popup_prompt): New.
10528 agent: Support --ack option for POPUPPINPADPROMPT.
10529 + commit 827529339a4854886dbb5625238e7e01013efdcd
10530 * agent/divert-scd.c (getpin_cb): Support --ack option.
10532 2018-10-10 Werner Koch <wk@gnupg.org>
10534 gpg: Don't take the a TOFU trust model from the trustdb,
10535 + commit 150a33df41944d764621f037038683f3d605aa3f
10536 * g10/tdbio.c (tdbio_update_version_record): Never store a TOFU model.
10537 (create_version_record): Don't init as TOFU.
10538 (tdbio_db_matches_options): Don't indicate a change in case TOFU is
10539 stored in an old trustdb file.
10541 2018-10-08 Werner Koch <wk@gnupg.org>
10543 gpg: Fix extra check for sign usage of a data signature.
10544 + commit b6275f3bda8edff34274c5b921508567f491ab9c
10545 * g10/sig-check.c (check_signature_end_simple):
10547 gpg: Make --skip-hidden-recipients work again.
10548 + commit 79f165d7a8bcc26972712bb0f0cc554d5c3d4e42
10549 * g10/pubkey-enc.c (get_session_key): Take care of
10550 opt.skip_hidden_recipients.
10552 2018-10-02 Werner Koch <wk@gnupg.org>
10554 gpg: New options import-drop-uids and export-drop-uids.
10555 + commit 8e83493dae426fe36a0e0081198b10db1e103ff1
10556 * g10/options.h (IMPORT_DROP_UIDS): New.
10557 (EXPORT_DROP_UIDS): New.
10558 * g10/import.c (parse_import_options): Add option "import-drop-uids".
10559 (import_one): Don't bail out with that options and no uids found.
10560 Also remove all uids.
10561 (remove_all_uids): New.
10562 * g10/export.c (parse_export_options): Add option "export-drop-uids".
10563 (do_export_one_keyblock): Implement option.
10565 2018-10-02 NIIBE Yutaka <gniibe@fsij.org>
10567 common: Fix gnupg_reopen_std.
10568 + commit 50b02dba2060a8969da47b18d9c0ecdccbd30db4
10569 * common/sysutils.c (gnupg_reopen_std): Use fcntl instead of fstat.
10571 2018-09-27 NIIBE Yutaka <gniibe@fsij.org>
10573 g10,scd: Support UIF changing command.
10574 + commit 0cb65564e022fface5ada4de8e0c2c4c3d0ac8ad
10575 * g10/card-util.c (uif, cmdUIF): New.
10576 (card_edit): Add call to uif by cmdUIF.
10577 * scd/app-openpgp.c (do_getattr): Support UIF-1, UIF-2, and UIF-3.
10578 (do_setattr): Likewise.
10579 (do_learn_status): Learn UIF-1, UIF-2, and UIF-3.
10581 2018-09-18 NIIBE Yutaka <gniibe@fsij.org>
10583 g10: Fix memory leak for --card-status.
10584 + commit fe8b6339542f3b1228b5fd56fc710ea3b07a3a2b
10585 * g10/card-util.c (card_status): Release memory of serial number.
10587 2018-09-14 NIIBE Yutaka <gniibe@fsij.org>
10589 g10: Fix another memory leak.
10590 + commit 60c880bda5c9b821fd2968cf89c38c37be3c1a7b
10591 * g10/skclist.c (enum_secret_keys): Use SK_LIST instead of pubkey_t.
10593 g10: Fix memory leak (more).
10594 + commit 2eb481e8cc1c37378cf68a06557c4a7a625d315c
10595 * g10/skclist.c (enum_secret_keys): Free SERIALNO on update.
10597 g10: Fix memory leak in enum_secret_keys.
10598 + commit 64c5c45e2aa4a12d939680b9d51c8b26d61c5e9d
10599 * g10/skclist.c (enum_secret_keys): Don't forget to call
10600 free_public_key in the error return paths.
10602 2018-09-11 NIIBE Yutaka <gniibe@fsij.org>
10604 Revert "dirmngr: hkp: Avoid potential race condition when some hosts die."
10605 + commit 69bab1cba07a8259b85a7911c2824724667803a4
10606 This reverts commit 04b56eff118ec34432c368b87e724bce1ac683f9.
10608 dirmngr: Serialize access to hosttable.
10609 + commit 995aded58724a1a07704493b311be5222b3f82a2
10610 * dirmngr/dirmngr.h (ks_hkp_init): New.
10611 * dirmngr/dirmngr.c (main): Call ks_hkp_init.
10612 * dirmngr/ks-engine-hkp.c (ks_hkp_init): New.
10613 (ks_hkp_mark_host): Serialize access to hosttable.
10614 (ks_hkp_print_hosttable, make_host_part): Likewise.
10615 (ks_hkp_housekeeping, ks_hkp_reload): Likewise.
10617 2018-09-10 NIIBE Yutaka <gniibe@fsij.org>
10619 common: Use iobuf_get_noeof to avoid undefined behaviors.
10620 + commit f80346f42df4bdc7d0a9741c3922129aceae4f81
10621 * common/iobuf.c (block_filter): Use iobuf_get_noeof.
10623 agent: Fix error code check from npth_mutex_init.
10624 + commit adce73b86fd49d5bbb8884231a26cc7533d400e2
10625 * agent/call-pinentry.c (initialize_module_call_pinentry): It's an
10626 error when npth_mutex_init returns non-zero.
10628 2018-09-07 Werner Koch <wk@gnupg.org>
10630 dirmngr: Emit SOURCE status also on NO_DATA.
10631 + commit bee65edfbc8cc2c369e5941cc9d1a01a0519b388
10632 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Send SOURCE status also on
10634 (ks_hkp_get): Ditto.
10635 * g10/call-dirmngr.c (gpg_dirmngr_ks_search): Print "data source" info
10637 (gpg_dirmngr_ks_get): Ditto.
10639 2018-09-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10641 dirmngr: hkp: Avoid potential race condition when some hosts die.
10642 + commit 04b56eff118ec34432c368b87e724bce1ac683f9
10643 * dirmngr/ks-engine-hkp.c (select_random_host): Use atomic pass
10644 through the host table instead of risking out-of-bounds write.
10646 2018-09-07 NIIBE Yutaka <gniibe@fsij.org>
10648 g10: Fix memory leak.
10649 + commit 7c96cc67e108f3a9514a4222ffac2f9f9a2ab19e
10650 * g10/import.c (read_block): Call free_packet to skip the packet.
10652 2018-09-06 NIIBE Yutaka <gniibe@fsij.org>
10654 gpgscm: Suppress warnings for GCC > 6.
10655 + commit 99c17b970bc0ca7e0cff7fe031c6f9feb05af3ff
10656 * tests/gpgscm/scheme.c (CASE): Use unused attribute for GCC > 6.
10657 (FALLTHROUGH): New for fallthrough.
10658 (Eval_Cycle): Use FALLTHROUGH. Remove not-needed comment of
10661 Fix use of strncpy, which is actually good to use memcpy.
10662 + commit 625ced6e672daa892d334323cce6b3d42a6f929f
10663 * common/ssh-utils.c (get_fingerprint): Use memcpy.
10664 * g10/build-packet.c (string_to_notation): Use memcpy.
10666 2018-09-05 Werner Koch <wk@gnupg.org>
10668 kbx: Add framework for a public key daemon.
10669 + commit 512be1d04b98a9d6a9067bd34c16513089a0db9f
10670 * kbx/keyboxd.c: New.
10671 * kbx/keyboxd.h: New.
10672 * kbx/kbxserver.c: New.
10673 * kbx/keyboxd-w32info.rc: New.
10674 * kbx/Makefile.am (EXTRA_DIST): Add new rc file.
10675 (resource_objs): Ditto.
10676 (libexec_PROGRAMS): New.
10677 (common_libs, commonpth_libs): New.
10678 (kbxutil_LDADD): Use here.
10679 (keyboxd_SOURCES): New.
10680 (keyboxd_CFLAGS): New.
10681 (keyboxd_LDADD): New.
10682 (keyboxd_LDFLAGS): New.
10683 (keyboxd_DEPENDENCIES): new.
10684 ($(PROGRAMS)): Extend.
10686 common: New function status_printf.
10687 + commit d4489be467e7229e17fb17a0489bf711d6ce66d6
10688 * common/asshelp2.c (set_assuan_context_func): New.
10689 (status_printf): New.
10690 * po/Makevars (XGETTEXT_OPTIONS): Add status_printf
10692 2018-08-29 Werner Koch <wk@gnupg.org>
10694 gpg: Explain error message in key generation with --batch.
10695 + commit 1bfe766bcf3959135333900934f1a15c9b96c3cf
10696 * g10/keygen.c (generate_keypair): Show more info.
10698 gpg: Remove unused function get_pubkeys.
10699 + commit ed8fe21e6612401846fc4af8631f0136dc633c67
10700 * g10/getkey.c (get_pubkeys): Remove.
10701 (pubkey_free): Remove and use code directly ...
10702 (pubkeys_free): ... here.
10704 gpg: New option --known-notation.
10705 + commit 3da835713fb6220112d988e1953f3d84beabbf6a
10706 * g10/gpg.c (oKnownNotation): New const.
10707 (opts): Add option --known-notation.
10708 (main): Set option.
10709 * g10/parse-packet.c (known_notations_list): New local var.
10710 (register_known_notation): New.
10711 (can_handle_critical_notation): Rewrite to handle the new feature.
10712 Also print the name of unknown notations in verbose mode.
10714 2018-08-28 Werner Koch <wk@gnupg.org>
10716 gpg: Refresh expired keys originating from the WKD.
10717 + commit 7f172404bfcf719b9b1af4a182d4803525ebff7c
10718 * g10/getkey.c (getkey_ctx_s): New field found_via_akl.
10719 (get_pubkey_byname): Set it.
10720 (only_expired_enc_subkeys): New.
10721 (get_best_pubkey_byname): Add support to refresh expired keys from the
10724 gpg: Remove unused arg from a function.
10725 + commit db67ccb759426c1173761574b14bdfe6a76394c2
10726 * g10/getkey.c (get_best_pubkey_byname): Remove unused arg 'no_akl'.
10727 Change both callers.
10729 2018-08-27 Werner Koch <wk@gnupg.org>
10731 gpg: Prepare for longer card fingerprints.
10732 + commit 108702ccae8ff1e5fec3b8e710f06a03637244c7
10733 * g10/call-agent.h (agent_card_info_s): Rename the "*valid" fields to
10735 * g10/call-agent.c (unhexify_fpr): Change to take a FPRLEN and to
10736 return the actual length.
10737 (agent_release_card_info): Adjust for these changes.
10738 * g10/card-util.c (print_sha1_fpr): Rename to print_shax_fpr and add
10739 arg FPRLEN. Change all callers to pass the length.
10740 (print_sha1_fpr_colon): Rename to print_shax_fpr_colon and add arg
10741 FPRLEN. Change all callers to pass the length.
10742 (fpr_is_zero): Add arg FPRLEN.
10743 (fpr_is_ff): Ditto.
10744 (show_card_key_info): Use the new functions.
10745 * g10/skclist.c (enum_secret_keys): Use MAX_FINGERPRINT_LEN.
10747 2018-08-27 NIIBE Yutaka <gniibe@fsij.org>
10749 g10: Fix enum_secret_keys for card keys.
10750 + commit b823788d200902f34c632026934cf0e43152b73e
10751 * g10/skclist.c (enum_secret_keys): Since "KEY-FPR" returns
10752 fingerprint in binary, change it to hex string.
10754 g10: Prefer to available card keys for decryption.
10755 + commit 84cc55880a5815155328229beb309326472bfd82
10756 * g10/skclist.c (enum_secret_keys): Add logic to prefer
10757 decryption keys on cards.
10759 g10: Move enum_secret_keys to skclist.c.
10760 + commit 03a8de7def4195b9accde47c1dcb84279361936d
10761 * g10/getkey.c (enum_secret_keys): Move to...
10762 * g10/skclist.c (enum_secret_keys): ... here.
10764 g10: Fix comment of enum_secret_keys.
10765 + commit 6bb93fc295e712ddf9b461dfe650211caf16a844
10766 * g10/getkey.c (enum_secret_keys): Fix comment for usage of
10767 enum_secret_keys, following the previous change.
10769 g10: Enumerated keys for decryption should be unique.
10770 + commit 30153c65f0875f9a62838f6347bcdcedd6114d35
10771 * g10/getkey.c (enum_secret_keys): Collecting keys in the context,
10772 check duplicate to make sure returning only unique keys.
10773 * g10/pubkey-enc.c (get_session_key): Now, it's the responsibility of
10774 enum_secret_keys to free keys.
10776 g10: Change decryption key selection for public key encryption.
10777 + commit ce2f71760155b71a71418fe145a557c99bd52290
10778 * g10/mainproc.c (struct mainproc_context): It's now pubkey_enc_list.
10779 (do_proc_packets): Remove the first arg CTRL. Fix call of
10781 (release_list): Handle pubkey_enc_list.
10782 (proc_pubkey_enc): Remove the first arg CTRL. Simply put the packet
10783 to pubkey_enc_list.
10784 (print_pkenc_list): Remove the last arg FAILED.
10785 (proc_encrypted): Only call print_pkenc_list once.
10787 (proc_packets, proc_signature_packets, proc_signature_packets_by_fd)
10788 (proc_encryption_packets): Fix call of do_proc_packets.
10789 * g10/packet.h (struct pubkey_enc_list): Define.
10790 * g10/pubkey-enc.c (get_it): Change the second argument K.
10791 (get_session_key): Select session key by LIST, using enum_secret_keys.
10792 * g10/gpgv.c (get_session_key): Change the second argument K.
10793 * g10/test-stubs.c (get_session_key): Likewise.
10795 2018-08-10 NIIBE Yutaka <gniibe@fsij.org>
10797 g10: Fix undefined behavior when EOF in parsing packet for S2K.
10798 + commit 1b309d9f6199a91caa0ca0b97b92d599e00b736e
10799 * g10/parse-packet.c (parse_symkeyenc): Use iobuf_get_noeof.
10800 (parse_key): Likewise.
10802 2018-07-27 Werner Koch <wk@gnupg.org>
10804 gpg: Set a limit for a WKD import of 256 KiB.
10805 + commit e88f56f1937ac92f6a3b94e50b6db2649ec0be41
10806 * g10/call-dirmngr.c (MAX_WKD_RESULT_LENGTH): New.
10807 (gpg_dirmngr_wkd_get): Use it.
10809 dirmngr: Validate SRV records in WKD queries.
10810 + commit ebe727ef596eefebb5eff7d03a98649ffc7ae3ee
10811 * dirmngr/server.c (proc_wkd_get): Check the returned SRV record names
10812 to mitigate rogue DNS servers.
10814 common: New function to validate domain names.
10815 + commit ddee9f9409fb5a089883eab0fadef7b9b7e61e72
10816 * common/mbox-util.c (is_valid_domain_name): New.
10817 * common/t-mbox-util.c (run_dns_test): New test.
10819 2018-07-26 Jiří Keresteš <jiri.kerestes@trustica.cz>
10821 scd: Add support for Trustica Cryptoucan.
10822 + commit 967d3649d24aba623133808e8d01675dff389fbb
10825 2018-07-25 Werner Koch <wk@gnupg.org>
10827 dirmngr: Print a WARNING status for DNS config problems.
10828 + commit bd4048c533165fd82340354d7229fcc2220db5a5
10829 * dirmngr/dirmngr-status.h: New.
10830 * dirmngr/dirmngr.h: Include dirmngr-status.h and move some prototypes
10832 * dirmngr/t-support.c: New.
10833 * dirmngr/Makefile.am (dirmngr_SOURCES): Add dirmngr-status.h.
10834 (t_common_src): Add t-support.c.
10835 * dirmngr/server.c (dirmngr_status_printf): Bypass if CTRL is NULL.
10836 * dirmngr/dns-stuff.c: Include dirmngr-status.h.
10837 (libdns_init): Print WARNING status line. Change call callers to take
10838 and pass a CTRL argument.
10839 * g10/call-dirmngr.c (ks_status_cb): Print info for new WARNING
10842 2018-07-24 Werner Koch <wk@gnupg.org>
10844 gpg: Use 128 MiB as default AEAD chunk size.
10845 + commit 9aa1b368efd4edf51b6d056339bffb726de5162b
10846 * g10/gpg.c (oDebugAllowLargeChunks): New.
10847 (opts): New option --debug-allow-large-chunks.
10848 (main): Implement that option.
10850 2018-07-09 Werner Koch <wk@gnupg.org>
10852 gpg: Remove multiple subkey bindings during export-clean.
10853 + commit 76989d5bd89ed11f5b3656dc4748fcfc939a46dc
10854 * g10/key-clean.c (clean_one_subkey_dupsigs): New.
10855 (clean_all_subkeys): Call it.
10857 gpg: Let export-clean remove expired subkeys.
10858 + commit c2fd65ec8498a08ee36ca52d99b6b014f6db8d93
10859 * g10/key-clean.h (KEY_CLEAN_NONE, KEY_CLEAN_INVALID)
10860 (KEY_CLEAN_ENCR, KEY_CLEAN_AUTHENCR, KEY_CLEAN_ALL): New.
10861 * g10/key-clean.c (clean_one_subkey): New.
10862 (clean_all_subkeys): Add arg CLEAN_LEVEL.
10863 * g10/import.c (import_one): Call clean_all_subkeys with
10865 * g10/export.c (do_export_stream): Call clean_all_subkeys depedning on
10866 the export clean options.
10868 gpg: Split key cleaning function for clarity.
10869 + commit 6c3567196f7e72552f326ce07dccbcce31926e5d
10870 * g10/key-clean.c (clean_key): Rename to clean_all_uids and split
10871 subkey cleaning into ...
10872 (clean_all_subkeys): new. Call that always after the former clean_key
10875 2018-07-06 Werner Koch <wk@gnupg.org>
10877 gpg: Move key cleaning functions to a separate file.
10878 + commit 135e46ea480d749b8a9692f71d4d0bfdadd8ee2f
10879 * g10/trust.c (mark_usable_uid_certs, clean_sigs_from_uid)
10880 (clean_uid_from_key, clean_one_uid, clean_key): Move to ...
10881 * g10/key-clean.c: new file.
10882 * g10/key-clean.h: New.
10883 * g10/Makefile.am (gpg_sources): Add new files.
10884 * g10/export.c, g10/import.c, g10/keyedit.c, g10/trustdb.c: Include
10886 * g10/trustdb.h (struct key_item, is_in_klist): Move to ...
10887 * g10/keydb.h: here.
10889 2018-07-05 Werner Koch <wk@gnupg.org>
10891 po: Add flag options for xgettext.
10892 + commit cb71573f376235036c98143155e964a15cfcb250
10893 * po/Makevars (XGETTEXT_OPTIONS): Add --flag options.
10895 gpg: Prepare for signatures with ISSUER_FPR but without ISSUER.
10896 + commit f7526c7bc754acf68bde0b79c785e875a9365d60
10897 * g10/getkey.c (get_pubkey_for_sig): New.
10898 (get_pubkeyblock_for_sig): New.
10899 * g10/mainproc.c (issuer_fpr_raw): Give global scope.
10900 (check_sig_and_print): Use get_pubkeyblock_for_sig.
10901 * g10/pkclist.c (check_signatures_trust): Use get_pubkey_for_sig.
10902 * g10/sig-check.c (check_signature2): Ditto.
10903 (check_signature_over_key_or_uid): Ditto.
10905 tools: Add experimental code for a pairing protocol.
10906 + commit faf3c70c7715ba86eb56fdccc6cf831bf87b2ee0
10907 * configure.ac (GNUPG_CACHE_DIR): New const.
10908 * tools/Makefile.am (libexec_PROGRAMS): Add gpg-pair-tool.
10909 (gpg_pair_tool_SOURCES, gpg_pair_tool_CFLAGS)
10910 (gpg_pair_tool_LDADD): New.
10911 * tools/gpg-pair-tool.c: New.
10913 2018-07-04 Werner Koch <wk@gnupg.org>
10915 gpg: Ignore too large user ids during import.
10916 + commit 01cd66f9faf1623833e6afac84164de5a136ecff
10917 * g10/import.c (read_block): Add special treatment for bad user ids
10918 and comment packets.
10920 gpg: Extra check for sign usage when verifying a data signature.
10921 + commit 214b0077264e35c079e854a8b6374704aea45cd5
10922 * g10/sig-check.c (check_signature_end_simple): Check sign usage.
10924 2018-07-03 NIIBE Yutaka <gniibe@fsij.org>
10926 g10: Fix memory leak for PKT_signature.
10927 + commit 996febbab21eb9283b0634e51303a36b318734a6
10928 * g10/getkey.c (buf_to_sig): Free by free_seckey_enc.
10929 * g10/gpgcompose.c (signature): Likewise.
10930 * g10/sign.c (write_signature_packets): Likewise.
10932 2018-07-02 Werner Koch <wk@gnupg.org>
10934 agent: New commands PUT_SECRET and GET_SECRET.
10935 + commit 8a915cd9faf052b4faa3c415f2ac5aa8d6ea1efe
10936 * agent/agent.h (CACHE_MODE_DATA): New const.
10937 * agent/cache.c (DEF_CACHE_TTL_DATA): new.
10938 (housekeeping): Tweak for CACHE_MODE_DATA.
10939 (cache_mode_equal): Ditto.
10940 (agent_get_cache): Ditto.
10941 (agent_put_cache): Implement CACHE_MODE_DATA.
10942 * agent/command.c (MAXLEN_PUT_SECRET): New.
10944 (cmd_get_secret): New.
10945 (cmd_put_secret): New.
10946 (register_commands): Register new commands.
10948 common: New function percent_data_escape.
10949 + commit 58baf40af641f8cbf597e508a292e85ae94688f1
10950 * common/percent.c (percent_data_escape): New.
10951 * common/t-percent.c (test_percent_data_escape): New.
10953 agent: Fix segv running in --server mode.
10954 + commit 3978df943dc7a4781a23382be2d3b4a96a04f71f
10955 * agent/command.c (start_command_handler): Do not write to
10956 CLIENT_CREDS after an error.
10958 2018-07-02 NIIBE Yutaka <gniibe@fsij.org>
10960 libdns: For SOCKS connection, just fails.
10961 + commit 1aacd12471935a354cfd85ee1805edc7eb16e6c5
10962 * dirmngr/dns.c (dns_res_exec): If it's DNS_SO_SOCKS_CONN, don't
10963 iterate to other server, but return the error immediately.
10965 2018-06-21 Werner Koch <wk@gnupg.org>
10967 gpg: Print revocation reason for "rev" records.
10968 + commit 592deeddb9bf4ae9b3e236b439e2f39644eb6d46
10969 * g10/main.h: Add prototype.
10970 * g10/keylist.c (list_keyblock_print): Print revocation info.
10971 (list_keyblock_colon): Ditto.
10973 * g10/test-stubs.c (get_revocation_reason): New stub.
10974 * g10/gpgv.c (get_revocation_reason): New stub.
10976 gpg: Print revocation reason for "rvs" records.
10977 + commit b7cd2c2093ae1b47645be50fa1d431a028187cad
10978 * g10/import.c (get_revocation_reason): New.
10979 (list_standalone_revocation): Extend function.
10981 gpg: Let --show-keys print revocation certificates.
10982 + commit 386b9c4f25b28fd769d7563f2d86ac3a19cc3011
10983 * g10/import.c (list_standalone_revocation): New.
10984 (import_revoke_cert): Call new function.
10986 build: Remove duplicates from AC_CHECK_FUNCS.
10987 + commit 7e9aa307f76cdf2f624d43a35a8266e8b4e473f9
10988 * configure.ac (AC_CHECK_FUNCS): Fold most calls into one.
10990 2018-06-20 NIIBE Yutaka <gniibe@fsij.org>
10992 libdns: Let kernel to decide the local port.
10993 + commit 861f1da0731bf29dcb9221c4f22c76b40ec15a78
10994 * dirmngr/dns.c (LEAVE_SELECTION_OF_PORT_TO_KERNEL): New.
10995 (dns_socket): Don't select ephemeral port in user space.
10997 2018-06-19 Werner Koch <wk@gnupg.org>
10999 wks: Take name of sendmail from configure.
11000 + commit 08147f8bbdca40c98c2a094fa48fab15b8339c80
11001 * configure.ac (NAME_OF_SENDMAIL): New ac_define.
11002 * tools/send-mail.c (run_sendmail): Use it.
11004 2018-06-18 NIIBE Yutaka <gniibe@fsij.org>
11006 libdns: Fix for non-FQDN hostname.
11007 + commit a4a054bf14fa855715faee01a152755c4e2a74f7
11008 * dirmngr/dns.c (dns_resconf_open): Clear search[0] for non-FQDN
11011 2018-06-15 NIIBE Yutaka <gniibe@fsij.org>
11013 libdns: Fix connect and try next nameserver when ECONNREFUSED.
11014 + commit bcdbf8b8ebe9d61160e0b007dabe1b6462ffbc93
11015 * dirmngr/dns.c (dns_so_check): When EINVAL, release the association
11016 by connect with AF_UNSPEC and try again. Also try again for
11018 (dns_res_exec): Try next nameserver when ECONNREFUSED.
11020 libdns: Clear struct sockaddr_storage by zero.
11021 + commit 1c0b6681e4f322b88ac35d1f21c03d3cfc35fc23
11022 * dirmngr/dns.c (dns_resconf_pton): Clear SS.
11023 (dns_resconf_setiface): Clear ->IFACE.
11024 (dns_hints_root, send_query): Clear SS.
11026 2018-06-14 NIIBE Yutaka <gniibe@fsij.org>
11028 libdns: Sync to upstream.
11029 + commit 3e6ad302eaf3a4a9f3e60379133b3dfdbe0e1b2d
11030 * dirmngr/dns.c (dns_nssconf_loadfile): Handle exclamation mark.
11032 dirmngr: Fix recursive resolver mode.
11033 + commit 5b40338f12762cd74238c2d2b3101c33dd2d0ed3
11034 * dirmngr/dns-stuff.c (libdns_init): Initialize options.recurse.
11036 2018-06-12 Werner Koch <wk@gnupg.org>
11038 Some preparations to eventuallt use gpgrt_argparse.
11039 + commit cb52eb76b3ba0269742c5322e10a2b5151dafaf2
11040 * configure.ac (GNUPG_DEF_COPYRIGHT_LINE: New.
11041 * tools/watchgnupg.c (print_version): USe this macro.
11042 * common/init.c (_init_common_subsystems): Register argparse
11045 Require libgpg-error 1.29 and remove internal logging functions.
11046 + commit 440472663d608660343c54f09172c851f5127c9c
11047 * configure.ac (NEED_GPG_ERROR_VERSION): Set to 1.29
11048 * common/util.h: Remove replacement error codes.
11049 * common/logging.h: Remove fallback to internal logging functions.
11050 * common/logging.c: Remove.
11051 * common/Makefile.am (common_sources): Remove logging.c
11053 gpg: Do not import revocations with --show-keys.
11054 + commit fe621cc64b13b00914633630f28b4b417892d629
11055 * g10/import.c (import_revoke_cert): Add arg 'options'. Take care of
11058 2018-06-12 NIIBE Yutaka <gniibe@fsij.org>
11060 card: Fix memory leak for fetch-url sub command.
11061 + commit 8f99299a54a0ac09f9c90c1085b704db78973fda
11062 * g10/card-util.c (fetch_url): Release INFO.
11064 2018-06-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11066 gpg: Add new usage option for drop-subkey filters.
11067 + commit 2ddfb5bef920919443309ece9fa2930282bbce85
11068 * g10/import.c (impex_filter_getval): Add new "usage" property for
11069 drop-subkey filter.
11071 2018-06-11 Werner Koch <wk@gnupg.org>
11073 gpg: Set some list options with --show-keys.
11074 + commit d2bc66f241a66cc95140cbb3a07555f6301290ed
11075 * g10/gpg.c (main): Set some list options.
11077 2018-06-08 Werner Koch <wk@gnupg.org>
11079 gpg: Sanitize diagnostic with the original file name.
11080 + commit 13f135c7a252cc46cff96e75968d92b6dc8dce1b
11081 * g10/mainproc.c (proc_plaintext): Sanitize verbose output.
11083 2018-06-07 Werner Koch <wk@gnupg.org>
11085 gpg: Improve import's repair-key duplicate signature detection.
11086 + commit 26746fe65d14a00773473c2d0d271406a5105bca
11087 * g10/key-check.c (key_check_all_keysigs): Factor some code out to ...
11088 (remove_duplicate_sigs): new.
11089 (key_check_all_keysigs): Call remove_duplicate_sigs again after
11092 gpg: Fix import's repair-key duplicate signature detection.
11093 + commit 26bce2f01d2029ea2b8a8dbbe36118e3c83c5cba
11094 * g10/packet.h (PKG_siganture): Add field 'help_counter'.
11095 * g10/key-check.c (sig_comparison): Take care of HELP_COUNTER.
11096 (key_check_all_keysigs): De-duplicate on a per-block base.
11098 gpg: Improve verbose output during import.
11099 + commit 1bc6b5174248ba4d83d648ef6d6f4550540d1f20
11100 * g10/import.c (chk_self_sigs): Print the subkeyid in addition to the
11102 (delete_inv_parts): Ditto.
11104 2018-06-06 Werner Koch <wk@gnupg.org>
11106 agent: Add DBUS_SESSION_BUS_ADDRESS et al. to the startup list.
11107 + commit 7ffc1ac7dd95d4cc1897a4c36d5cd628741c12f2
11108 * agent/gpg-agent.c (agent_copy_startup_env): Replace explicit list
11109 with the standard list.
11111 gpg: Also detect a plaintext packet before an encrypted packet.
11112 + commit 344b548dc71657d0285d93f78f17a2663b5e586f
11113 * g10/mainproc.c (proc_encrypted): Print warning and later force an
11116 gpg: New command --show-keys.
11117 + commit 257661d6ae0ca376df758c38fabab2316d10e3a9
11118 * g10/gpg.c (aShowKeys): New const.
11119 (opts): New command --show-keys.
11120 (main): Implement command.
11121 * g10/import.c (import_keys_internal): Don't print stats in show-only
11123 (import_one): Be silent in show-only mode.
11125 2018-06-05 NIIBE Yutaka <gniibe@fsij.org>
11127 g10: Remove bogus comment.
11128 + commit d2e6b3ea1d70db1039a828fb3a978a4504f8f0c5
11129 * g10/mainproc.c (proc_pubkey_enc): Remove a comment.
11131 2018-05-31 Werner Koch <wk@gnupg.org>
11133 gpg: Print a hint on how to decrypt a non-mdc message anyway.
11134 + commit 874e391665405fc413a69f2ffacdb94bb08da7ff
11135 * g10/mainproc.c (proc_encrypted): Print a hint for legacy ciphers w/o
11136 MDC. Also print a dedicated status error code
11138 2018-05-30 Werner Koch <wk@gnupg.org>
11140 gpg: Ignore the multiple message override options.
11141 + commit d3d41146b33040eb65eaaaffcfc7b4211e60bd95
11142 * g10/gpg.c (oAllowMultisigVerification)
11143 (oAllowMultipleMessages, oNoAllowMultipleMessages): Remove.
11144 (opts): Turn --allow-multisig-verification, --allow-multiple-messages
11145 and --no-allow-multiple-messages into NOPs
11146 * g10/options.h (struct opt): Remove flags.allow_multiple_messages.
11147 * g10/mainproc.c (proc_plaintext): Assume allow_multiple_messages is
11150 gpg: Detect multiple literal plaintext packets more reliable.
11151 + commit 97183b5c0fae05fcda942caa7df14ee6a133d846
11152 * g10/mainproc.c (proc_encrypted): Bump LITERALS_SEEN.
11154 2018-05-29 Werner Koch <wk@gnupg.org>
11156 gpg: Remove PGP6 compliance mode.
11157 + commit b2c05d691247a79fb46f75b653cbc4bf518c1c2a
11158 * g10/gpg.c: Make --pgp6 an alias for --pgp7.
11159 * common/compliance.h (gnupg_compliance_mode): Remove CO_PGP6.
11160 * g10/options.h (PGP6): Remove. Adjust all users.
11162 gpg: Remove MDC options.
11163 + commit 253e8bdd9014cbe6dc06adce9d9dd2f8f4b31709
11164 * g10/gpg.c: Tuen options --force-mdc, --no-force-mdc, --disable-mdc
11165 and --no-disable-mdc into NOPs.
11166 * g10/encrypt.c (use_mdc): Simplify. MDC is now almost always used.
11167 (use_aead): Ignore MDC options. Print warning for missing MDC feature
11169 * g10/pkclist.c (warn_missing_mdc_from_pklist): Rename to ...
11170 (warn_missing_aead_from_pklist): this and adjust.
11172 gpg: Fix detection of the AEAD feature flag.
11173 + commit af4a5dbe575f304838db358aaeb45741f149d0a7
11174 * g10/getkey.c (fixup_uidnode): Use bitmask 0x02.
11176 2018-05-15 Werner Koch <wk@gnupg.org>
11178 gpg: Hard fail on a missing MDC even for legacy algorithms.
11179 + commit d1431901f0143cdc7af8d1a23387e0c6b5bb613f
11180 * g10/mainproc.c (proc_encrypted): Require an MDC or AEAD
11181 * tests/openpgp/defs.scm (create-gpghome): Use --ignore-mdc-error to
11182 allow testing with the current files.
11184 gpg: Turn --no-mdc-warn into a NOP.
11185 + commit 96350c5d5afcbc7f66c535e38b9fcc7355622855
11186 * g10/gpg.c (oNoMDCWarn): Remove.
11187 (opts): Make --no-mdc-warn a NOP.
11188 (main): Don't set var.
11189 * g10/options.h (struct opt): Remove 'no_mdc_var'.
11190 * g10/cipher-cfb.c (write_header): Assume opt.no_mdc_warn is false.
11191 * g10/mainproc.c (proc_encrypted): Ditto.
11193 2018-05-07 Ineiev <ineiev@gnu.org>
11195 doc: Update description of displayed trust values.
11196 + commit ed12a1dabaf928e8620fc26ca426c935e1a8a880
11197 * doc/trust-values.texi: New file.
11198 * doc/Makefile.am (EXTRA_DIST): Add trust-values.texi.
11199 * doc/gnupg.texi (Trust Values): New chapter.
11200 * doc/gpg.texi (OpenPGP Key Management): Update the description
11201 of how trust values are displayed, replace table with a reference
11203 * doc/gpg.texi (GPG Examples): Add @mansect trust values.
11205 2018-05-02 Werner Koch <wk@gnupg.org>
11208 + commit d31d149196832ed6b8849017d8bcd0852c6ca96c
11211 gpg: Fix minor memory leak in the compress filter.
11212 + commit d26363e4f1933781c86cbe87077fbf1b9a2b64d8
11213 * g10/compress.c (push_compress_filter2): Return an error if no filter
11215 (push_compress_filter): Ditto.
11216 (handle_compressed): Free CFX if no filter was pushed.
11217 * g10/import.c (read_block): Ditto.
11219 gpg: Fix "Too many open files" when using --multifile.
11220 + commit f7f3043653abe699602f910ddd09c1405675c7f6
11221 * common/miscellaneous.c (is_file_compressed): Don't cache the file.
11223 dirmngr: Implement timeout for dirmngr_ldap under Windows.
11224 + commit 007dde93cc3971cb51d08e8c082e172506ae7f80
11225 * dirmngr/dirmngr_ldap.c (alarm_thread) [W32]: New.
11226 (set_timeout): Implement for W32.
11228 build: New configure option to help with nPth debugging.
11229 + commit ddfd39e91a532fd31cd0c20c5d4cf9643acc58bd
11230 * configure.ac: Add option --enable-npth-debug
11232 2018-05-02 Andre Heinecke <aheinecke@intevation.de>
11234 common,w32: Hide spawned processes by default.
11235 + commit 3bd793256e2e4be52075d50ccf2df70c4a2e1a0f
11236 * common/exechelp-w32.c (gnupg_spawn_process): Use SW_HIDE
11237 instead of SW_MINIMIZE.
11239 2018-04-30 Werner Koch <wk@gnupg.org>
11241 dirmngr: Sleep in the ldap wrapper thread.
11242 + commit a598bbeeafa30f7854230eed212b76d5c5c77f86
11243 * dirmngr/ldap-wrapper.c (wrapper_list): Rename to reaper_list.
11244 (ldap_reaper_thread): Protect all list modification with a mutex. Use
11245 a condition var to wake up the reaper thread.
11247 2018-04-27 Werner Koch <wk@gnupg.org>
11249 dirmngr: Use the LDAP wrapper process also for Windows.
11250 + commit f9fbfc64e402bd41815a68426f55565fa6d5c726
11251 * dirmngr/ldap-wrapper.c: Revamp module to make use of es_poll for
11253 * configure.ac: Always use the ldap wrapper.
11255 dirmngr: Silence log output from dirmngr_ldap.
11256 + commit d22506a343cec61b7d1a48c970b63a8458b267ab
11257 * dirmngr/dirmngr_ldap.c: Remove assert.h.
11258 (main): Replace assert by log_assert.
11259 * dirmngr/ldap.c (run_ldap_wrapper): Use debug options to pass
11260 verbose options to dirmngr_ldap.
11261 (start_cert_fetch_ldap): Ditto.
11263 2018-04-26 Werner Koch <wk@gnupg.org>
11265 dirmngr: Lower the dead host resurrection time to 1.5h.
11266 + commit 5789afc840cf79ba2a8cebd9d772ef9c3868c5e9
11267 * dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): Decrease.
11268 (INITIAL_HOSTTABLE_SIZE): Increase because the old values was likely
11271 dirmngr: Fix handling of CNAMEed keyserver pools.
11272 + commit cc66108253c58583d6bad3d1e2da2b004701d0f0
11273 * dirmngr/ks-engine-hkp.c (map_host): Don't use the cname for HTTPHOST.
11274 * dirmngr/server.c (make_keyserver_item): Map keys.gnupg.net.
11276 2018-04-25 Werner Koch <wk@gnupg.org>
11278 dirmngr: Add the used TLS library to the debug output.
11279 + commit bb8894760fe87cf46a42599f11eab7e7c7a8eb71
11280 * dirmngr/http.c (send_request): Print the used TLS library in debug
11283 dirmngr: Allow redirection from https to http for CRLs.
11284 + commit 1de4462974113ac18cf98f903e97cd1127fa842f
11285 * dirmngr/ks-engine.h (KS_HTTP_FETCH_NOCACHE): New flag.
11286 (KS_HTTP_FETCH_TRUST_CFG): Ditto.
11287 (KS_HTTP_FETCH_NO_CRL): Ditto.
11288 (KS_HTTP_FETCH_ALLOW_DOWNGRADE): Ditto.
11289 * dirmngr/ks-engine-http.c (ks_http_fetch): Replace args send_no_cache
11290 and extra_http_trust_flags by a new flags arg. Allow redirectiong
11291 from https to http it KS_HTTP_FETCH_ALLOW_DOWNGRADE is set.
11292 * dirmngr/loadswdb.c (fetch_file): Call with KS_HTTP_FETCH_NOCACHE.
11293 * dirmngr/ks-action.c (ks_action_get): Ditto.
11294 (ks_action_fetch): Ditto.
11295 * dirmngr/crlfetch.c (crl_fetch): Call with the appropriate flags.
11297 dirmngr: Implement CRL fetching via https.
11298 + commit 705d8e9cf0d109005b3441766270c0e584f7847d
11299 * dirmngr/http.h (HTTP_FLAG_TRUST_CFG): New flag.
11300 * dirmngr/http.c (http_register_cfg_ca): New.
11301 (http_session_new) [HTTP_USE_GNUTLS]: Implement new trust flag.
11302 * dirmngr/certcache.c (load_certs_from_dir): Call new function.
11303 (cert_cache_deinit): Ditto.
11304 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
11305 * dirmngr/ks-engine-http.c (ks_http_fetch): Add new args
11306 'send_no_cache' and 'extra_http_trust_flags'. Change all callers to
11307 provide the default value.
11308 * dirmngr/crlfetch.c (crl_fetch): Rewrite to make use of
11311 2018-04-25 NIIBE Yutaka <gniibe@fsij.org>
11313 g10: Fix printing the keygrip with --card-status.
11314 + commit 71903eee89496e3f1d0a24536bced6ff16df6783
11315 * g10/card-util.c (current_card_status): Keygrip for Auth is 3.
11317 2018-04-24 Werner Koch <wk@gnupg.org>
11319 dirmngr: Fallback to CRL if no default OCSP responder is configured.
11320 + commit 460e3812be711bd18195053d74aa736215f21eee
11321 * dirmngr/server.c (cmd_isvalid): Use option second arg to trigger
11322 OCSP checkibng. Fallback to CRL if no default OCSP responder has been
11324 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Adjust accordingly.
11326 2018-04-20 Andre Heinecke <aheinecke@intevation.de>
11328 dirmngr: More binary I/O on Windows for CRLs.
11329 + commit 64c1fddb253061a9773c6c4ed2a9c5a54702d21b
11330 * dirmngr/crlcache.c (lock_db_file, crl_cache_insert): Open cache
11331 file in binary mode.
11333 doc: Remove unneccesary empty flags in vsndf.prf.
11334 + commit a44ed3d9a1ad5bd96694f10ea5523c517982017e
11335 * doc/examples/vsnfd.prf (max-cache-ttl): Remove empty flags.
11337 2018-04-16 emma peel <emma.peel@aktivix.org>
11339 po: more updates to Spanish translation.
11340 + commit acd6d5ff7436bb7fba171ced3294046a14fb777d
11343 po: correct attribution for Spanish translation.
11344 + commit 21b2e88a7e6c3d7313773c9ffb3e0d1fb2af45df
11347 po: correct label tags in Polish translation.
11348 + commit a5290dace7f85d66272af3e14f9f2bc43d2a4af8
11351 po: correct label tags in Finnish translation.
11352 + commit e12475429578add12a53fb2232cb45dc9e2aae1b
11355 2018-04-15 Werner Koch <wk@gnupg.org>
11357 build: New target "release" to automate the release process.
11358 + commit 3b1ee413a65bf566aa8e5f29a5a2cd5a94e66faa
11359 * Makefile.am (RELEASE_ARCHIVE_DIR): New.
11360 (RELEASE_SIGNING_KEY): New.
11361 (AM_DISTCHECK_CONFIGURE_FLAGS): Remove removed --enable-gpg2-is-gpg,
11362 (RELEASE_NAME, RELEASE_W32_STEM_NAME): New.
11363 (release, sign-release): New.
11365 2018-04-13 NIIBE Yutaka <gniibe@fsij.org>
11367 g10: Fix memory leak in check_sig_and_print.
11368 + commit f747b8f0734338baa1e608b193b213aca2c577e8
11369 * g10/mainproc.c (check_sig_and_print): Free the public key.
11371 g10: Push compress filter only if compressed.
11372 + commit c31abf84659dbda5503dd9f3aa3449520bcd1b84
11373 * g10/compress.c (handle_compressed): Fix memory leak.
11375 2018-04-12 Werner Koch <wk@gnupg.org>
11377 gpg: Extend the "sig" record in --list-mode.
11378 + commit 69c3e7acb744e1e5606a4d946e3b948704cfbbae
11379 * g10/getkey.c (get_user_id_string): Add arg R_NOUID. Change call
11381 (get_user_id): Add arg R_NOUID. Change call callers.
11382 * g10/mainproc.c (issuer_fpr_string): Make global.
11383 * g10/keylist.c (list_keyblock_colon): Print a '?' for a missing key
11384 also in --list-mode. Print the "issuer fpr" field also if there is an
11385 issuer fingerprint subpacket.
11387 gpg: Extend the ERRSIG status line with a fingerprint.
11388 + commit 23a714598c247d78cfda46a6dc338b17e17cc194
11389 * g10/mainproc.c (issuer_fpr_raw): New.
11390 (issuer_fpr_string): Re-implement using issuer_fpr_rtaw.
11391 (check_sig_and_print): Don't free ISSUER_FPR. Use ISSUER_FPR_RAW.
11392 Use write_status_printf. Extend ERRSIG status.
11394 gpg: Relax printing of STATUS_FAILURE.
11395 + commit e2bd152a928d79ddfb95fd2f7911c80a1a8d5a21
11396 * g10/gpg.c (g10_exit): Print STATUS_FAILURE only based on passed
11397 return code and not on the presence of any call to log_error.
11399 agent,dirmngr: Add "getenv" to the getinfo command.
11400 + commit bbb5bfacc0d1f179cfec94fd32fee01a09df0f1d
11401 * agent/command.c (cmd_getinfo): Add sub-command getenv.
11402 * dirmngr/server.c (cmd_getinfo): Ditto.
11404 2018-04-12 Andre Heinecke <aheinecke@intevation.de>
11406 build: Update getswdb version check to 2.2.
11407 + commit 327fece0aed2c9974659c72304f9fd1f461d460c
11408 * build-aux/getswdb.sh: Check for gnupg22_ver gnupg21_ver no
11411 2018-04-11 Werner Koch <wk@gnupg.org>
11413 gpg: New option --no-symkey-cache.
11414 + commit 789d240cb40ab36406a7c57ad49897e0bafbb41e
11415 * g10/gpg.c (oNoSymkeyCache): New.
11416 (opts): Add that option.
11418 * g10/options.h (struct opt): New field no_symkey_cache.
11419 * g10/passphrase.c (passphrase_to_dek): Implement that feature.
11421 2018-04-10 Werner Koch <wk@gnupg.org>
11423 agent: Improve the unknown ssh flag detection.
11424 + commit 9f69dbeb902ac447adbc92937cd451c4e909f234
11425 * agent/command-ssh.c (ssh_handler_sign_request): Simplify detection
11428 2018-04-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11430 agent: unknown flags on ssh signing requests cause an error.
11431 + commit 381c46818ffa4605d0ca39818fe317de445eb6de
11432 * agent/command-ssh.c (ssh_handler_sign_request): if a flag is passed
11433 during an signature request that we do not know how to apply, return
11434 GPG_ERR_UNKNOWN_OPTION.
11436 agent: change documentation reference for ssh-agent protocol.
11437 + commit 55435cdd4fe4fbfbcba1098bb715ecd6171ba2d8
11438 * agent/command-ssh.c: repoint documentation reference.
11440 2018-04-09 Werner Koch <wk@gnupg.org>
11443 + commit 6fbe2ddbaf5123ae444c95fdf8da67840f794c76
11446 gpg,w32: Fix empty homedir when only a drive letter is used.
11447 + commit 6da7aa1e7c80d214bd9dccb21744919ae191f2c8
11448 * common/homedir.c (copy_dir_with_fixup): New.
11449 (default_homedir): Use here.
11450 (gnupg_set_homedir): And here .
11452 doc: Document --key-edit:change-usage.
11453 + commit a4e26f2ee852003707857ab0635b783acb89a2f8
11454 * g10/keyedit.c (menu_changeusage): Make strings translatable.
11456 2018-04-06 Werner Koch <wk@gnupg.org>
11458 gpg: Check that a key may do certifications.
11459 + commit 1a5d95e7319e7e6f0dd11064a26cbbc371b05214
11460 * g10/sig-check.c (check_signature_end_simple): Check key usage for
11462 (check_signature_over_key_or_uid): Request usage certification.
11464 gpg: Emit FAILURE stati now in almost all cases.
11465 + commit 0336e5d1a7b9d46e06c838e6a98aecfcc9542882
11466 * g10/cpr.c (write_status_failure): Make it print only once.
11467 * g10/gpg.c (wrong_args): Bump error counter.
11468 (g10_exit): Print a FAILURE status if we ever did a log_error etc.
11469 (main): Use log_error instead of log_fatal at one place. Print a
11470 FAILURE status for a bad option. Ditto for certain exit points so
11471 that we can see different error locations.
11473 gpg: Re-indent sig-check.c and use signature class macros.
11474 + commit 5ba74a134db431530884f03eea5410a68dbfe0f5
11475 * g10/keydb.h (IS_BACK_SIG): New.
11476 * g10/sig-check.c: Re-indent and use macros.
11478 2018-04-06 NIIBE Yutaka <gniibe@fsij.org>
11480 agent: Support SSH signature flags.
11481 + commit 80b775bdbb852aa4a80292c9357e5b1876110c00
11482 * agent/command-ssh.c (SSH_AGENT_RSA_SHA2_256): New.
11483 (SSH_AGENT_RSA_SHA2_512): New.
11484 (ssh_handler_sign_request): Override SPEC when FLAGS
11487 2018-04-05 NIIBE Yutaka <gniibe@fsij.org>
11489 g10: Let card-edit/key-attr show message when change.
11490 + commit 870527df0dd704c994928348c8c2910030776680
11491 * g10/card-util.c (ask_card_rsa_keysize): Don't show message here.
11492 (ask_card_keyattr): Show message when change, also for ECC.
11494 2018-04-04 NIIBE Yutaka <gniibe@fsij.org>
11496 tests: Fix no gpg-agent upon removal of GNUPGHOME.
11497 + commit 83529e1bd14a6d39f2a8ecab9fb6aa4c1f344c73
11498 * tests/gpgscm/gnupg.scm (with-ephemeral-home-directory): Add
11500 * tests/gpgsm/export.scm: Use -no-atexit version and stop-agent.
11501 * tests/openpgp/decrypt-session-key.scm: Likewise.
11502 * tests/openpgp/decrypt-unwrap-verify.scm: Likewise.
11503 * tests/openpgp/defs.scm (have-opt-always-trust): Likewise.
11504 (setup-environment-no-atexit): New.
11505 (start-agent): Support no use of atexit.
11506 * tests/gpgsm/gpgsm-defs.scm (setup-gpgsm-environment-no-atexit): New.
11507 * tests/migrations/common.scm (untar-armored): Follow the change
11508 of with-ephemeral-home-directory.
11510 2018-04-03 NIIBE Yutaka <gniibe@fsij.org>
11512 scd: Writing KDF resets auth state.
11513 + commit cb1731c23cddfa524d3f51cfd82029bff853a073
11514 * scd/app-openpgp.c (do_setattr): Clear auth state.
11516 2018-04-02 NIIBE Yutaka <gniibe@fsij.org>
11518 g10: Fix filtering by PK->REQ_USAGE.
11519 + commit a17d2d1f690ebe5d005b4589a5fe378b6487c657
11520 * g10/getkey.c (get_pubkey_byfprint): Filter by PK->REQ_USAGE.
11522 2018-03-30 NIIBE Yutaka <gniibe@fsij.org>
11524 g10: Fix card-edit/kdf-setup for single salt.
11525 + commit 130ad98240c066383fa0a99bcf5e0ec72bc0dff9
11526 * g10/card-util.c (gen_kdf_data): Use SALT_USER.
11528 g10,scd: Support single salt for KDF data object.
11529 + commit 0c097575a9cd923f648fb5bb695893d46400c3ad
11530 * g10/card-util.c (gen_kdf_data): Support single salt.
11531 (kdf_setup): Can have argument for single salt.
11532 * scd/app-openpgp.c (pin2hash_if_kdf): Support single salt.
11534 g10: Add "key-attr" command for --card-edit.
11535 + commit 820380335a20391e0998fb1ba32ebfb9accedc5b
11536 * g10/card-util.c (key_attr): New explicit command.
11537 (generate_card_keys, card_generate_subkey): Don't ask key attr change.
11538 (card_edit): Add for cmdKEYATTR.
11540 scd: Support changing key attribute back to RSA.
11541 + commit 29692718768c28c524be6306081ab1852e75fe07
11542 * scd/app-openpgp.c (change_rsa_keyattr): Try usual RSA.
11544 2018-03-29 NIIBE Yutaka <gniibe@fsij.org>
11546 g10: Support key attribute change at --card-edit/generate.
11547 + commit a1515b3bbc10a210040dda3b482bcdb933fa8d7c
11548 * g10/card-util.c (ask_card_rsa_keysize): Drop support for magic
11549 number 25519 for ed25519/cv25519. Rename from ask_card_keyattr.
11550 (ask_card_keyattr): Support ECC, as well as RSA.
11551 (do_change_keyattr): Support ECC dropping magical number 25519.
11552 * g10/keygen.c (ask_curve): Allow call from outside, adding last arg
11554 (generate_keypair): Follow the change of ask_curve.
11555 (generate_subkeypair): Likewise.
11557 g10: check_pin_for_key_operation should be just before genkey.
11558 + commit 02d7bb819ff44cc90212568dd6ce24ae1dc5d17f
11559 * g10/card-util.c (generate_card_keys): Check PIN later.
11560 (card_generate_subkey): Likewise.
11562 2018-03-28 NIIBE Yutaka <gniibe@fsij.org>
11564 g10: Change ask_curve so that it can be used outside.
11565 + commit e610d51f0de11154050915b951bcc5c53c940f5e
11566 * g10/call-agent.h (struct key_attr): New.
11567 * g10/keygen.c (ask_curve): Return const char *. No allocation.
11568 (quick_generate_keypair): Follow the change.
11569 (generate_keypair, generate_subkeypair): Likewise.
11570 (parse_algo_usage_expire): Return const char *.
11572 2018-03-27 NIIBE Yutaka <gniibe@fsij.org>
11574 agent,scd: Use pointer to represent HANDLE.
11575 + commit 96918346beeca7a46de9f03f19502373994c21bc
11576 * agent/call-scd.c [HAVE_W32_SYSTEM] (start_scd): Format with %p.
11577 * scd/command.c [HAVE_W32_SYSTEM] (option_handler): Use void *.
11579 2018-03-27 Werner Koch <wk@gnupg.org>
11581 agent: Make the request origin a part of the cache items.
11582 + commit 02dce8c0cc57deb2095a9b06aeb8f4dea34eef7e
11583 * agent/cache.c (agent_put_cache): Add arg 'ctrl' and change all
11584 callers to pass it.
11585 (agent_get_cache): Ditto.
11587 * agent/cache.c (struct cache_items_s): Add field 'restricted'.
11588 (housekeeping): Adjust debug output.
11589 (agent_flush_cache): Ditto.
11590 (agent_put_cache): Ditto. Take RESTRICTED into account.
11591 (agent_get_cache): Ditto.
11593 2018-03-26 Werner Koch <wk@gnupg.org>
11595 gpg: Auto-fix a broken trustdb with just the version record.
11596 + commit eb68c2d3d1b03a18cd24406fa46d4c30cb13d9f7
11597 * g10/tdbio.c (get_trusthashrec): Create hashtable on error.
11599 gpg: Pass CTRL arg to get_trusthashrec.
11600 + commit a750ebebf35a392f1c72d6aee5618df0d9f25ff7
11601 * g10/tdbio.c (get_trusthashrec): Add arg CTRL.
11602 (tdbio_search_trust_byfpr): Ditto.
11603 (tdbio_search_trust_bypk): Ditto.
11605 gpg: Return better error codes in case of a too short trustdb.
11606 + commit 403aa70c52e56614d65490dea9344113f9cf3d29
11607 * g10/tdbio.c (tdbio_read_record): Return GPG_ERR_EOF.
11608 (tdbio_new_recnum): Never return on error.
11609 (lookup_hashtable): Print a more descriptive error in case of !TABLE.
11611 gpg: Fix trustdb updates without lock held.
11612 + commit 456a3a8e93ea14f821e0e98fb515f284ece98685
11613 * g10/tdbio.c (is_locked): Turn into a counter.
11614 (take_write_lock, release_write_lock): Implement recursive locks.
11616 gpg: Disable unused code parts in tdbio.c.
11617 + commit 5f00531463ebc0e606c502696962426007545bb7
11618 * g10/tdbio.c (in_transaction): Comment this var.
11619 (put_record_into_cache): Comment the transaction code.
11620 (tdbio_sync): Ditto
11622 2018-03-23 Werner Koch <wk@gnupg.org>
11624 sm: Add OPTION request-origin.
11625 + commit 137644c9cb58deaaba6850f2763d9c5f9241cb0b
11626 * sm/server.c: Include shareddefs.h.
11627 (option_handler): Add option.
11629 gpg,sm: New option --request-origin.
11630 + commit 2cd35df5db3c4dfe37616dcfb1fcc644959449ef
11631 * g10/gpg.c (oRequestOrigin): New const.
11632 (opts): New option --request-origin.
11633 (main): Parse that option.
11634 * g10/options.h (struct opt): Add field request_origin.
11635 * g10/call-agent.c (start_agent): Send option to the agent.
11636 * sm/gpgsm.c (oRequestOrigin): New const.
11637 (opts): New option --request-origin.
11638 (main): Parse that option.
11639 * sm/gpgsm.h (struct opt): Add field request_origin.
11640 * sm/call-agent.c (start_agent): Send option to the agent.
11642 agent: New OPTION pretend-request-origin.
11643 + commit 05c55ee260edc07cd19da56dfd00347bfe3f529c
11644 * common/shareddefs.h (request_origin_t): New.
11645 * common/agent-opt.c (parse_request_origin): New.
11646 (str_request_origin): New.
11647 * agent/command.c (option_handler): Implement new option.
11649 2018-03-23 NIIBE Yutaka <gniibe@fsij.org>
11651 build: Fix the manual source field.
11652 + commit 5400a5bb77bddcb14c94d9405312d6181322b090
11655 2018-03-22 Werner Koch <wk@gnupg.org>
11657 gpg: Implement --dry-run for --passwd.
11658 + commit 165bc38cefbc03515403b60b704cabf4dc0b71f4
11659 * g10/keyedit.c (change_passphrase): Take care of --dry-run.
11661 2018-03-22 NIIBE Yutaka <gniibe@fsij.org>
11663 scd: Support KDF DO setup.
11664 + commit 0152ba7c987443d641ce1091c79f90ef2cc46498
11665 * g10/call-agent.c (learn_status_cb): Parse the capability for KDF.
11666 * g10/card-util.c (gen_kdf_data, kdf_setup): New.
11667 (card_edit): New admin command cmdKDFSETUP to call kdf_setup.
11668 * scd/app-openpgp.c (do_getattr): Emit KDF capability.
11670 2018-03-21 Werner Koch <wk@gnupg.org>
11672 gpg: Fix out-of-bound read in subpacket enumeration.
11673 + commit 983f7b2acbd1e7580652bbeb0c3d64f9dd19d9e4
11674 * g10/parse-packet.c (enum_sig_subpkt): Check buflen before reading
11675 the type octet. Print diagnostic.
11677 Change license of argparse.c back to LGPLv2.1.
11678 + commit fa0ed1c7e2eee7c559026696e6b21acc882a97aa
11679 * common/argparse.c, common/argparse.h: Change license
11681 2018-03-19 NIIBE Yutaka <gniibe@fsij.org>
11683 scd: signal mask should be set just after npth_init.
11684 + commit 11bbd99477ef5ba5b7db0c17607b10af03c68afb
11685 * scd/scdaemon.c (setup_signal_mask): New.
11686 (main): Call setup_signal_mask.
11687 (handle_connections): Remove signal mask setup.
11689 2018-03-16 NIIBE Yutaka <gniibe@fsij.org>
11691 scd: Better user interaction for factory-reset.
11692 + commit 2c85e202bc30231b9555100dec0c490c60d7b88c
11693 * g10/card-util.c (factory_reset): Dummy PIN size is now 32-byte.
11694 Connect the card again at the last step.
11696 2018-03-15 NIIBE Yutaka <gniibe@fsij.org>
11698 scd: Fix suspend/resume handling for CCID driver.
11699 + commit fd23a0524d8060ed12d87c679b7823686614aaee
11700 * scd/ccid-driver.c (intr_cb): Try submitting INTERRUPT urb
11701 to see if it's suspend/resume.
11703 2018-03-13 NIIBE Yutaka <gniibe@fsij.org>
11705 scd: After fatal error, shutdown a reader.
11706 + commit c84bae69e9e02923f7180e09d161cb0b13257436
11707 * scd/apdu.c (pcsc_send_apdu): Notify main loop after
11710 scd: Fix for GNU/Linux suspend/resume.
11711 + commit 71e5282c25ba812c7091e587edd721839bc4c2ac
11712 * configure.ac (require_pipe_to_unblock_pselect): Default is "yes".
11713 * scd/scdaemon.c (scd_kick_the_loop): Minor clean up.
11715 2018-03-12 NIIBE Yutaka <gniibe@fsij.org>
11717 scd: Fix typo in previous commit.
11718 + commit 655f0b9ad0138e6f960bf4befaf0eea569256614
11721 2018-03-09 NIIBE Yutaka <gniibe@fsij.org>
11723 scd: More fix with PC/SC for Windows.
11724 + commit 1e27c0e04cd3280d498dc8b72d2e410f6287f656
11725 * scd/apdu.c (pcsc_get_status): Return status based on CURRENT_STATUS.
11728 2018-03-08 NIIBE Yutaka <gniibe@fsij.org>
11730 scd: Fix status check when using PC/SC.
11731 + commit f8b8b6aac2ca1cb34d7a346aee1d874e7650557b
11732 * scd/apdu.c (struct reader_table_s): Add field of current_state.
11733 (new_reader_slot): Initialize current_state.
11734 (pcsc_get_status): Keep the status in READER_TABLE array.
11735 Return SW_HOST_NO_READER when PCSC_STATE_CHANGED.
11736 * scd/scdaemon.c (handle_connections): Silence a warning.
11738 2018-03-06 Werner Koch <wk@gnupg.org>
11740 agent: Also evict cached items via a timer.
11741 + commit f060cb5c63923d6caec784f65f3bb0aadf52f795
11742 * agent/cache.c (agent_cache_housekeeping): New func.
11743 * agent/gpg-agent.c (handle_tick): Call it.
11745 2018-03-01 Werner Koch <wk@gnupg.org>
11747 gpg: Print the keygrip with --card-status.
11748 + commit fd595c9d3642dba437fbe0f6e25d7aaaae095f94
11749 * g10/call-agent.h (agent_card_info_s): Add fields grp1, grp2 and
11751 * g10/call-agent.c (unhexify_fpr): Allow for space as delimiter.
11752 (learn_status_cb): Parse KEYPARIINFO int the grpX fields.
11753 * g10/card-util.c (print_keygrip): New.
11754 (current_card_status): Print "grp:" records or with --with-keygrip a
11755 human readable keygrip.
11757 2018-02-28 Andre Heinecke <aheinecke@intevation.de>
11759 gpgconf, w32: Allow UNC paths.
11760 + commit e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb
11761 * tools/gpgconf-comp.c (get_config_filename): Allow UNC paths.
11763 2018-02-28 Werner Koch <wk@gnupg.org>
11765 gpg: Avoid writing a zero length last chunk in AEAD mode.
11766 + commit f2c09203b98b83669a460dc8161283de96022536
11767 * g10/cipher-aead.c (write_header): Do not call set_nonce_and_ad.
11768 (write_final_chunk): Do not increase chunkindex.
11769 (do_flush): Call set_nonce_and_ad immediately before the first
11770 encryption of a chunk. Bump up the chunkindex after writing the tag.
11771 (do_free): Do not insert a zero length last chunk.
11772 * g10/decrypt-data.c (aead_underflow): Fix the corresponding bug.
11774 gpg: Merge two functions in cipher-aead.c.
11775 + commit 047506a03d21739b5b922f6b3fd9f059b0b137c5
11776 * g10/cipher-aead.c (set_nonce, set_additional_data): Merge into ...
11777 (set_nonce_and_ad): new function.
11778 (write_auth_tag): Print error message here.
11779 (do_flush): Rename var newchunk to finalize.
11781 2018-02-27 Werner Koch <wk@gnupg.org>
11783 gpg: Simplify the AEAD decryption function.
11784 + commit 618b86325f776f7250ad2bb09680e4bb427d7e50
11785 * g10/decrypt-data.c (aead_set_nonce, aead_set_ad): Merge into ...
11786 (aead_set_nonce_and_ad): new single function. Change callers.
11787 (decrypt_data): Do not set the nonce and ad here.
11788 (aead_underflow): Get rid of the LAST_CHUNK_DONE hack.
11790 gpg: Factor common code out of the AEAD decryption function.
11791 + commit ad989373f1a46139ed0fbc4d4a91069b78617ad9
11792 * g10/decrypt-data.c (aead_underflow): Factor reading and checking
11793 code code out to ...
11794 (fill_buffer, aead_checktag): new functions.
11796 gpg: Rename cipher.c to cipher-cfb.c.
11797 + commit b703ba725dadca8298a0c69365225f9a7ff60ae2
11798 * g10/cipher.c: Rename to ...
11799 * g10/cipher-cfb.c: this.
11801 gpg: Fix corner cases in AEAD encryption.
11802 + commit ebb0fcf6e0bd6997eff4097ddda94955134212af
11803 * g10/cipher-aead.c (write_final_chunk): Do not bump up the chunk
11804 index if the previous chunk was empty.
11805 * g10/decrypt-data.c (aead_underflow): Likewise. Also handle a other
11806 corner cases. Add more debug output.
11808 2018-02-23 Werner Koch <wk@gnupg.org>
11810 gpg: Try to mitigate the problem of wrong CFB symkey passphrases.
11811 + commit cbc7bacf2ff95aebb427bb244c719143a9001f3c
11812 * g10/mainproc.c (symkey_decrypt_seskey): Check for a valid algo.
11814 2018-02-22 Michał Górny <mgorny@gentoo.org>
11816 dirmngr: Handle failures related to missing IPv6 gracefully.
11817 + commit ecfc4db3a2f8bc2652ba4ac4de5ca1cd13bfcbec
11818 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle two more
11821 2018-02-22 Werner Koch <wk@gnupg.org>
11823 build: Update swdb tags and include release info from 2.2.5.
11824 + commit 7853190cfe2953fdac066b4f3256edc206896144
11828 + commit 9581a65ccc10daededc05c55391a04022f794a4a
11831 gpg: Don't let gpg return failure on an invalid packet in a keyblock.
11832 + commit b375d50ee4ce52c9b0f0855ec155be027642fb05
11833 * g10/keydb.c (parse_keyblock_image): Use log_info instead of
11834 log_error for skipped packets.
11835 * g10/keyring.c (keyring_get_keyblock): Ditto.
11837 2018-02-22 NIIBE Yutaka <gniibe@fsij.org>
11839 g10: Select a secret key by checking availability under gpg-agent.
11840 + commit 88e766d3915c2919e9968148ebb30463d4a673e4
11841 * g10/getkey.c (finish_lookup): Add WANT_SECRET argument to confirm
11842 by agent_probe_secret_key.
11843 (get_pubkey_fromfile, lookup): Supply WANT_SECRET argument.
11845 2018-02-20 Werner Koch <wk@gnupg.org>
11847 wks: Add special mode to --install-key.
11848 + commit 685a5e1558b2252ac895637fb857f6f7bb85ea7b
11849 * tools/gpg-wks-client.c (get_key_status_parm_s)
11850 (get_key_status_cb, get_key): Move to ...
11851 * tools/wks-util.c: ...here.
11852 (get_key): Rename to wks_get_key.
11853 * tools/gpg-wks-server.c: Include userids.h.
11854 (command_install_key): Allow use of a fingerprint.
11856 wks: Implement server command --install-key.
11857 + commit ee474856ec16ff11d922d8503fb3ede77129c4aa
11858 * tools/wks-util.c (wks_filter_uid): Add arg 'binary'.
11859 * tools/gpg-wks-server.c (main): Expect 2 args for --install-key.
11860 (write_to_file): New.
11861 (check_and_publish): Factor some code out to ...
11862 (compute_hu_fname): ... new.
11863 (command_install_key): Implement.
11865 wks: Support alternative submission address.
11866 + commit 1877603761911ea5b1c15f4aef11a2cf86a8682c
11867 * tools/gpg-wks.h (policy_flags_s): Add field 'submission_address'.
11868 * tools/wks-util.c (wks_parse_policy): Parse that field.
11869 (wks_free_policy): New.
11870 * tools/gpg-wks-client.c (command_send): Also try to take the
11871 submission-address from the policy file. Free POLICY.
11872 * tools/gpg-wks-server.c (process_new_key): Free POLICYBUF.
11873 (command_list_domains): Free POLICY.
11875 2018-02-15 Werner Koch <wk@gnupg.org>
11877 kbx: Fix detection of corrupted keyblocks on 32 bit systems.
11878 + commit 5e3679ae395e7a7e44f218f07bbe487429f1b279
11879 * kbx/keybox-search.c (blob_cmp_fpr): Avoid overflow in OFF+LEN
11881 (blob_cmp_fpr_part): Ditto.
11882 (blob_cmp_name): Ditto.
11883 (blob_cmp_mail): Ditto.
11884 (blob_x509_has_grip): Ditto.
11885 (keybox_get_keyblock): Check OFF and LEN using a 64 bit var.
11886 (keybox_get_cert): Ditto.
11888 2018-02-15 NIIBE Yutaka <gniibe@fsij.org>
11890 gpg: Fix reversed messages for --only-sign-text-ids.
11891 + commit ca138d5bf36accde2fd755249b470a8dc8743c95
11892 * g10/keyedit.c (keyedit_menu): Fix messages.
11894 2018-02-14 Katsuhiro Ueno <uenobk@gmail.com>
11896 agent: Avoid appending a '\0' byte to the response of READKEY.
11897 + commit df97fe24807826ddc2af0e45e416fb81c5666f88
11898 * agent/command.c (cmd_readkey): Set pkbuflen to the length of the output
11899 without an extra '\0' byte.
11901 2018-02-14 Werner Koch <wk@gnupg.org>
11903 sm: Fix minor memory leak in --export-p12.
11904 + commit 80719612b7e92aff5887f2a68d550a24f350722c
11905 * sm/export.c (gpgsm_p12_export): Free KEYGRIP.
11907 2018-02-14 Katsuhiro Ueno <uenobk@gmail.com>
11909 sm: Fix a wrong key parameter in an exported private key file.
11910 + commit 29aac7798085ee38da5107698618890ae7593c96
11911 * sm/export.c (sexp_to_kparms): Fix the computation of array[6],
11912 which must be 'd mod (q-1)' but was 'p mod (q-1)'.
11914 2018-02-14 Werner Koch <wk@gnupg.org>
11916 common: Use new function to print status strings.
11917 + commit f19ff78f0fbfc2793d8a9ab0173486bf712871ac
11918 * common/asshelp2.c (vprint_assuan_status_strings): New.
11919 (print_assuan_status_strings): New.
11920 * agent/command.c (agent_write_status): Replace by call to new
11922 * dirmngr/server.c (dirmngr_status): Ditto.
11923 * g13/server.c (g13_status): Ditto.
11924 * g13/sh-cmd.c (g13_status): Ditto.
11925 * sm/server.c (gpgsm_status2): Ditto.
11926 * scd/command.c (send_status_info): Bump up N.
11928 2018-02-13 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
11930 scd: Improve KDF-DO support.
11931 + commit 25f3b69129015c54392636818c8846e236f5cb2c
11932 * scd/app-openpgp.c (pin2hash_if_kdf): Check the content of KDF DO.
11934 2018-02-12 NIIBE Yutaka <gniibe@fsij.org>
11936 scd: Fix handling for Data Object with no data.
11937 + commit 0a3bec2c2525935362f87dce93d7df2c8d498498
11938 * scd/app-openpgp.c (get_cached_data): Return NULL for Data Object
11941 2018-02-09 Andre Heinecke <aheinecke@intevation.de>
11943 doc: Add compliance de-vs to gpgsm in vsnfd.prf.
11944 + commit e0658b19d93b38ed9ebd07734c4678acdde1607d
11945 * doc/examples/vsnfd.prf: Set complaince mode for gpgsm.
11947 2018-02-07 NIIBE Yutaka <gniibe@fsij.org>
11949 scd: Use pipe to kick the loop on NetBSD.
11950 + commit 015fe1c47b91da340e9df6bed908e0747ae8c60b
11951 * configure.ac (HAVE_PSELECT_NO_EINTR): New.
11952 * scd/scdaemon.c (scd_kick_the_loop): Write to pipe.
11953 (handle_connections): Use pipe.
11955 2018-02-06 Werner Koch <wk@gnupg.org>
11957 gpg: Fix packet length checking in symkeyenc parser.
11958 + commit 8305739fe857ed3378f885bb43777fd518dd1060
11959 * g10/parse-packet.c (parse_symkeyenc): Move error printing to the
11960 end. Add additional check to cope for the 0je extra bytes needed for
11963 2018-01-29 NIIBE Yutaka <gniibe@fsij.org>
11965 tests: Fix for NetBSD with __func__.
11966 + commit 64aa98c8a05513d9c00f53a2b880d80f9035333e
11967 * tests/asschk.c: Don't define __func__ if available.
11969 2018-01-28 Werner Koch <wk@gnupg.org>
11971 gpg: Rename a misnomed arg in open_outfile.
11972 + commit 303310d05e708dd58dcf7b7d8e8634cd5085bc7e
11973 * g10/openfile.c (open_outfile): Rename inp_fd to out_fd.
11975 2018-01-27 Werner Koch <wk@gnupg.org>
11977 dirmngr: Improve assuan error comment for cmd keyserver.
11978 + commit f8e868d9dfb6fc1390e421e7993a1d076309ed83
11979 * dirmngr/server.c: Add error comment in case --resolve fails in
11982 2018-01-26 NIIBE Yutaka <gniibe@fsij.org>
11984 agent: Fix sending connecting process uid to pinentry.
11985 + commit 660eafa3a9f68e116e9b0597edc317d8ff90f9b2
11986 * agent/command-ssh.c (get_client_info): Use LOCAL_PEERCRED.
11988 agent: Fix last commit.
11989 + commit d7207b39b71d1b07c4cddac602f29ec583f6d1ad
11990 * configure.ac: Check ucred.h as well as sys/ucred.h.
11991 * agent/command-ssh.c: Add inclusion of ucred.h.
11993 agent: More fix for get_client_pid for portability.
11994 + commit 08e686a6a6d5bcb5410228b388745d09686b260c
11995 * configure.ac: Check sys/ucred.h instead of ucred.h.
11996 * agent/command-ssh.c: Include sys/ucred.h.
11998 2018-01-24 Werner Koch <wk@gnupg.org>
12000 gpg: New maintainer option --debug-set-iobuf-size.
12001 + commit db7661b5a297a58c95fa9873d43f31d697b8feb3
12002 * g10/gpg.c (opts): Add new option.
12003 (opt_set_iobuf_size): New var.
12004 (set_debug): Set the option.
12005 * tests/openpgp/armor.scm: Use this option to revert the buffer size
12006 to the one which used to exhibit the tested bugs.
12008 iobuf: Increase the size of the buffer. Add iobuf_set_buffer_size.
12009 + commit bfc11816444512b4ebcc6617d3c3b5988e753de3
12010 * common/iobuf.c (IOBUF_BUFFER_SIZE): Rename to
12011 DEFAULT_IOBUF_BUFFER_SIZE and increase to 64k.
12012 (iobuf_buffer_size): New var. Always use this instead of the macro.
12013 (iobuf_set_buffer_size): New.
12014 (struct file_filter_ctx_t): Add field delayed_rc.
12015 (file_filter) [!W32]: Try to fill the supplied buffer.
12017 gpg: Fix AEAD encryption for chunk sizes other than 64 KiB.
12018 + commit ff1bdc23d9f1693c1add7c1fe8d218b7bf743e31
12019 * g10/cipher-aead.c (do_flush): Init ERR. Fix remaining chunklen
12021 (do_free): Add dummy encryption. Close the cipher handle.
12022 * g10/decrypt-data.c (aead_underflow): Rewrite.
12024 gpg: Rename a variable in decrypt-data for clarity.
12025 + commit 83a15fa88e91d277811b6d030c4aa40c4fb3e6ad
12026 * g10/decrypt-data.c (decode_filter_context_s): Rename field 'defer'
12027 to 'holdback' and replace 'defer_filled' flag into 'holdbacklen'.
12030 2018-01-23 Werner Koch <wk@gnupg.org>
12032 gpg: New option --chunk-size.
12033 + commit f3ef8b0dcaede1c85da0dff8eeceda6a994f0b28
12034 * g10/gpg.c (opts): New option --chunk-size.
12035 (oChunkSize): New const.
12036 (build_list_aead_test_algo, build_list_aead_algo_name): New.
12037 (my_strusage): List AEAD algos.
12038 (main): Implement --chunk-size..
12039 * g10/options.h (struct opt): Add field 'chunk_size'.
12040 (DBG_IPC): Remove duplicated macro.
12041 * g10/main.h (DEFAULT_AEAD_ALGO): Depend on Libgcrypt version.
12042 * g10/misc.c (openpgp_aead_test_algo): Ditto.
12044 * g10/cipher-aead.c: Silence if not in debug mode.
12045 * g10/decrypt-data.c: Ditto.
12047 gpg: Copy the AEAD prefs to the user ID struct.
12048 + commit 112e02ee89b78369c1c50e672873e726cbfeb994
12049 * g10/getkey.c (fixup_uidnode): Copy the AEAD prefs.
12051 gpg: Clear the symmetric passphrase cache for encrypted session keys.
12052 + commit 278d87465685e0aa415e0333de1d27e79d1608f0
12053 * g10/mainproc.c (proc_symkey_enc): Clear the symmetric key cache on
12055 (proc_encrypted): Need to take are of the checksum error.
12057 gpg: Implement AEAD for SKESK packets.
12058 + commit 9aab9167bca38323973e853845ca95ae8e9b6871
12059 * g10/packet.h (PKT_symkey_enc): Add field aead_algo.
12060 * g10/build-packet.c (do_symkey_enc): Support version 5 packets.
12061 * g10/parse-packet.c (parse_symkeyenc): Ditto.
12062 * g10/encrypt.c (encrypt_symmetric): Force using a random session
12064 (encrypt_seskey): Add and support arg aead_algo.
12065 (write_symkey_enc): Ditto.
12066 (encrypt_simple): Adjust accordingly.
12067 (encrypt_filter): Ditto.
12068 * g10/gpgcompose.c (sk_esk): For now call encrypt_seskey without AEAD
12070 * g10/mainproc.c (symkey_decrypt_seskey): Support AEAD. Nver call BUG
12071 but return an error.
12072 (proc_symkey_enc): Call symkey_decrypt_seskey in a bug compatible way.
12074 * g10/import.c (check_prefs): Check AEAD preferences.
12075 * g10/keyedit.c (show_prefs): Print AEAD preferences.
12077 2018-01-22 Werner Koch <wk@gnupg.org>
12079 gpg: Unify AEAD parameter retrieval.
12080 + commit da3015e3c05030fe709c8f922486e73d06d1d16a
12081 * g10/pkclist.c (select_aead_from_pklist): Return the AEAD_algo.
12082 * g10/encrypt.c (use_aead): Return the AEAD algo.
12083 (encrypt_simple): Adjust for this change.
12084 (encrypt_crypt): Ditto.
12085 (encrypt_filter): Ditto.
12086 * g10/sign.c (sign_symencrypt_file): Ditto.
12088 * g10/misc.c (MY_GCRY_CIPHER_MODE_EAX): New.
12089 (openpgp_aead_algo_info): New.
12090 * g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): Remove.
12091 (write_header): Use new fucntion.
12092 * g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): Remove.
12093 (decrypt_data): Use new function. Also allow for chunkbytes other
12096 gpg: Refactor function encrypt_seskey.
12097 + commit 0131d4369a81a51bf7bb328cc81a3bb082ed1a94
12098 * g10/encrypt.c (encrypt_seskey): Allocate the buffer for the
12099 encrypted key and returns that buffer and its length.
12100 (encrypt_simple): Adjust for above change.
12101 (write_symkey_enc): Ditto.
12103 2018-01-22 NIIBE Yutaka <gniibe@fsij.org>
12105 scd: Support KDF Data Object of OpenPGPcard V3.3.
12106 + commit 91303b7df9c3e810cfcd4920f78bac6f8b7df2b2
12107 * scd/app-openpgp.c (do_getattr, do_setattr): Add KDF support.
12108 (pin2hash_if_kdf): New.
12109 (verify_a_chv): Add PINLEN arg. Use pin2hash_if_kdf.
12110 (verify_chv2, do_sign): Follow the change of verify_a_chv.
12111 (verify_chv3, do_change_pin): Use pin2hash_if_kdf.
12113 2018-01-21 Werner Koch <wk@gnupg.org>
12115 gpg: Support EAX if for latest Libgcrypt.
12116 + commit 7356d6ec50ea24bc9449187e1c2b3ecd717b789f
12117 * g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): New.
12118 (write_header): Use it.
12119 * g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): New.
12120 (decrypt_data): Use it.
12121 * g10/misc.c (openpgp_aead_test_algo): Allow EAX.
12123 gpg: First take on PKT_ENCRYPTED_AEAD.
12124 + commit 3f4ca85cb0cf58006417f4f7faafaa9a1f1bdf22
12125 * common/openpgpdefs.h (PKT_ENCRYPTED_AEAD): New const.
12126 * g10/dek.h (DEK): Increase size of use_aead to 4 bits.
12127 * g10/filter.h (cipher_filter_context_t): Add new fields for AEAD.
12128 * g10/packet.h (PKT_encrypted): Add fields aead_algo, cipher_algo, and
12130 * g10/build-packet.c (do_encrypted_aead): New.
12131 (build_packet): Call it.
12132 * g10/parse-packet.c (dump_sig_subpkt): Handle SIGSUBPKT_PREF_AEAD.
12133 (parse_one_sig_subpkt, can_handle_critical): Ditto.
12134 (parse_encrypted): Clear new PKT_ENCRYPTED fields.
12135 (parse_encrypted_aead): New.
12137 * g10/gpg.c (main): Take care of --rfc4880bis option when checking
12139 * g10/cipher-aead.c: Replace the stub by real code.
12140 * g10/decrypt-data.c (decode_filter_ctx_t): Add fields for use with
12142 (aead_set_nonce): New.
12143 (aead_set_ad): New.
12144 (decrypt_data): Support AEAD.
12145 (aead_underflow): New.
12146 (aead_decode_filter): New.
12147 * g10/encrypt.c (use_aead): Make that new fucntion work.
12148 (encrypt_simple): Use default_aead_algo() instead of EAX.
12149 * g10/mainproc.c (proc_encrypted): Support AEAD.
12150 (do_proc_packets): Support PKT_ENCRYPTED_AEAD.
12152 2018-01-18 Werner Koch <wk@gnupg.org>
12154 gpg: Fix the use of future-default with --quick-add-key.
12155 + commit e1e35db510c9222e7a7dc208c2e49df556954170
12156 * g10/keygen.c (parse_key_parameter_part): Add arg clear_cert.
12157 (parse_key_parameter_string): Add arg suggested_use and implement
12158 fallback. Change callers to pass 0 for new arg.
12159 (parse_algo_usage_expire): Pass the parsed USAGESTR to
12160 parse_key_parameter_string so that it can use it in case a subkey is
12163 2018-01-10 Werner Koch <wk@gnupg.org>
12165 gpg: Add stub function for encrypting AEAD.
12166 + commit 81d71818d054a5faa9153fd52a4b79bbbb71e9d5
12167 * g10/cipher.c (cipher_filter): Rename to cipher_filter_cfb.
12168 * g10/cipher-aead.c: New. Right now only with a stub function.
12169 * g10/Makefile.am (gpg_sources): Add file.
12170 * g10/encrypt.c (encrypt_simple): Push either cipher_filter_cfb or
12171 cipher_filter_aead.
12172 (encrypt_crypt): Ditto.
12173 (encrypt_filter): Ditto.
12174 * g10/sign.c (sign_symencrypt_file): Ditto.
12176 gpg: New option --force-aead.
12177 + commit 4e2ba546cdccbbc6d3e29867ee5671fd44d74e67
12178 * g10/dek.h (DEK): Turn fields use_mdc, algo_printed and symmetric
12179 into single bit vars. Make sure they are always set to 1 or 0.
12180 (DEK): New field use_aead.
12181 * g10/options.h (struct opt): New field force_aead.
12182 * g10/pkclist.c (select_aead_from_pklist): New.
12183 * g10/gpg.c (oForceAEAD): New const.
12184 (opts): New options "--force-aead".
12185 (main): Set new option.
12186 * g10/encrypt.c (use_aead): New.
12187 (encrypt_simple): Implement new flags DEK.use_aead.
12188 (encrypt_crypt): Ditto.
12189 (encrypt_filter): Ditto.
12190 * g10/sign.c (sign_symencrypt_file): Ditto.
12192 gpg: Add option and preference framework for AEAD.
12193 + commit 8217cd49364b9f81b390f7ca6a608dd946f93efc
12194 * common/openpgpdefs.h (aead_algo_t): New.
12195 (SIGSUBPKT_PREF_AEAD): New.
12196 * g10/gpg.c (oAEADAlgo, oPersonalAEADPreferences): New.
12197 (opts): New options --aead-algo and --personal-aead-preferences.
12198 (set_compliance_option): Clar aead algo.
12199 (main): Parse and check the new options
12200 * g10/options.h (struct opt): Add fields def_aead_algo and
12201 personal_aead_prefs.
12202 * g10/packet.h (PREFTYPE_AEAD): New enum value.
12203 (PKT_user_id): Add field flags.aead.
12204 (PKT_public_key): Add field flags.aead.
12205 * g10/pkclist.c (select_algo_from_prefs): Support PREFTYPE_AEAD.
12206 * g10/getkey.c (fixup_uidnode): Set AEAD flag.
12207 (merge_selfsigs): Ditto.
12208 * g10/kbnode.c (dump_kbnode): Show aead flag.
12209 * g10/keyedit.c (show_prefs): Ditto.
12210 (show_key_with_all_names_colon): Ditto.
12211 * g10/keygen.c (aead_presf, n_aead_prefs): New vars.
12212 (set_one_pref): Suppport PREFTYPE_AEAD.
12213 (keygen_set_std_prefs): Parse AEAD preferences.
12214 (keygen_get_std_prefs): Ditto.
12215 (add_feature_aead): New.
12216 (keygen_upd_std_prefs): Call that and build AEAD pref packet.
12217 * g10/main.h (DEFAULT_AEAD_ALGO): New const.
12218 * g10/misc.c (openpgp_aead_test_algo): New.
12219 (openpgp_aead_algo_name): New.
12220 (string_to_aead_algo): New.
12221 (default_aead_algo): New.
12223 2018-01-09 Andre Heinecke <aheinecke@intevation.de>
12225 doc: Note pinentry-mode for passphrase opts.
12226 + commit 6fb5713f4a6976900cc70c140e61043b6ef688d1
12227 * doc/gpg.texi (--passphrase, --passphrase-file, --passphrase-fd):
12228 Note that pinentry-mode needs to be loopback.
12230 2018-01-08 Werner Koch <wk@gnupg.org>
12232 gpg: Print all keys with --decrypt --list-only.
12233 + commit 339b3301ee8410fe3bbdebb66a6e83801d79d40d
12234 * g10/mainproc.c (proc_pubkey_enc): Use dedicated error code for
12235 list-only and put the key into PKENC_LIST.
12236 (print_pkenc_list): Take care of the new error code.
12238 2018-01-01 Werner Koch <wk@gnupg.org>
12240 gpg: Allow "futuredefault" as alias for "future-default".
12241 + commit 4d3c500f4793eb263940ff5ef87ec4ead63c9b4b
12242 * g10/keygen.c (parse_key_parameter_string): Allow "futuredefault" and
12243 use case-insensitive matching
12244 (quick_generate_keypair): Ditto.
12245 (parse_algo_usage_expire): Ditto.
12247 2017-12-29 Werner Koch <wk@gnupg.org>
12249 gpg: Allow the use of "cv25519" and "ed25519" in the keygen parms.
12250 + commit 412bb7a801f242d47a82712080cce6ddbb843166
12251 * g10/keygen.c (gen_ecc): Map curve names.
12253 2017-12-27 NIIBE Yutaka <gniibe@fsij.org>
12255 scd: Fix for inactive card at start by internal CCID driver.
12256 + commit 4f88b0f56134af2ce56d434b7acd47fcf9b6f7cf
12257 * scd/ccid-driver.c (do_close_reader): Set NULL on close.
12258 (bulk_in): Move DEBUGOUT and check by EP_INTR.
12259 (ccid_get_atr): Clear powered_off flag after initial status check.
12261 2017-12-22 Werner Koch <wk@gnupg.org>
12263 kbx: Simplify by removing custom memory functions.
12264 + commit f3ba66781a07af2e32f5887e6e15acdd4822a431
12265 * kbx/keybox-util.c (keybox_set_malloc_hooks): Remove.
12266 (_keybox_malloc, _keybox_calloc, keybox_realloc)
12267 (_keybox_free): Remove.
12268 (keybox_file_rename): Remove. Was not used.
12269 * sm/gpgsm.c (main): Remove call to keybox_set_malloc_hooks.
12270 * kbx/kbxutil.c (main): Ditto.
12271 * kbx/keybox-defs.h: Remove all separate includes. Include util.h.
12272 remove convenience macros.
12273 * common/logging.h (return_if_fail): New. Originally from
12274 keybox-defs.h but now using log_debug.
12275 (return_null_if_fail): Ditto.
12276 (return_val_if_fail): Ditto.
12277 (never_reached): Ditto.
12279 2017-12-20 Werner Koch <wk@gnupg.org>
12281 common: Use larger buffer for homedir in case of 64 bit UIDs.
12282 + commit 290348e349e8d56a856f187a08e913f2ed525b3c
12283 * common/homedir.c (_gnupg_socketdir_internal): Enlarge PREFIX by 6
12284 bytes for "/gnupg".
12287 + commit 558b17593ae97b8a07d06bf0d6af1a626b304501
12290 2017-12-19 Petr Pisar <petr.pisar@atlas.cz>
12292 po: Update Czech translation.
12293 + commit 43aaf60449036e870cc25b77fbb7312cf3fb534c
12296 2017-12-19 Ineiev <ineiev@gnu.org>
12298 po: Update Russian translation.
12299 + commit c7b8ec6c8e57797f0b77dbf7fca85fb600323328
12302 2017-12-19 Werner Koch <wk@gnupg.org>
12304 wks: New server options --check, --with-dir, with-file.
12305 + commit 7449063b1af2eef73d621a69cdb2fb713ab1ae6c
12306 * tools/gpg-wks-server.c (aCheck, oWithDir, oWithFile): New const.
12307 (opts): New options --check, --with-dir, and --with-file.
12308 (main): Call command_check_key.
12309 (command_list_domains): Implement option --with-dir.
12310 (fname_from_userid): New.
12311 (command_check_key): New.
12312 (command_remove_key): Implement existsing command.
12313 (command_revoke_key): Call command_remove_key as a simple
12316 2017-12-18 Werner Koch <wk@gnupg.org>
12318 conf: New option --status-fd.
12319 + commit 482e000b8a7e336f342a7fac3b7379257e944b6e
12320 * tools/gpgconf.c (oStatusFD): New const.
12321 (opts): New option --status-fd.
12322 (statusfp): New var.
12323 (set_status_fd): New.
12324 (gpgconf_write_status): New.
12325 (gpgconf_failure): New.
12326 (main): Set status fd and replace exit by gpgconf_failure.
12327 * tools/gpgconf-comp.c: Repalce exit by gpgconf_failure.
12328 (gc_process_gpgconf_conf): Print a few warning status messages.
12330 gpgconf: Show --compliance in expert mode.
12331 + commit d74c40cef0a97cd98aa05f13b1541a94eda502a6
12332 * tools/gpgconf-comp.c (gc_options_gpg): Set compliance to expert.
12333 (gc_options_gpgsm): Ditto.
12335 sm: Allow explicit setting of the default --compliance=gnupg.
12336 + commit 8c878ae4c9dfa9fe26aa15f4f9db3e86833575e9
12337 * sm/gpgsm.c (main): Allow setting of the default compliance.
12338 * tools/gpgconf-comp.c (gc_options_gpgsm): Add "compliance".
12340 2017-12-18 NIIBE Yutaka <gniibe@fsij.org>
12342 po: Update Japanese translation.
12343 + commit e3ddeff66e8c08a37ddf8b6510d69579c245e192
12344 * po/ja.po: Fix message with no "%s".
12346 po: Update Japanese translation.
12347 + commit 77e2fcb4ffbad8577a2cf41f17bf92dec6a93ad8
12348 * po/ja.po: Fix message with no "%s".
12350 2017-12-13 Werner Koch <wk@gnupg.org>
12352 gpg: Print a warning for too much data encrypted with 3DES et al.
12353 + commit 416cf9e9be5d2daf0ef629208031989699b3653f
12354 * g10/filter.h (cipher_filter_context_t): Remove unused filed
12355 'create_mdc'. Turn field 'header' into a bit field. Add new fields
12356 'short_blklen_warn' and 'short_blklen_count'.
12357 * g10/cipher.c (write_header): Print a warning if MDC is not used.
12358 (cipher_filter): Print a warning for long messages encrypted with a
12359 short block length algorithm.
12361 gpg: Simplify cipher:write_header.
12362 + commit b5333e13cbc9db354ed90762190bf70605a02d1f
12363 * g10/cipher.c (write_header): Use write_status_printf.
12365 gpg: Simplify default_recipient().
12366 + commit 9f641430dcdecbd7ee205d407cb19bb4262aa95d
12367 * g10/pkclist.c (default_recipient): Use hexfingerprint.
12369 gpg: Return an error from hexfingerprint on malloc error.
12370 + commit cd26c5482b10bee7658959ae913f2ddb83190587
12371 * g10/keyid.c (hexfingerprint): Return NULL on malloc failure. Chnage
12374 gpg: Remove some xmallocs.
12375 + commit 29119a6492eda5dd7920e45e7f2faa043d436591
12376 * g10/getkey.c (get_pubkeys): Do not use xmalloc.
12378 2017-12-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12380 gpg: default-preference-list: prefer SHA512.
12381 + commit 8ede3ae29a39641a2f98ad9a4cf61ea99085a892
12382 * g10/keygen.c (keygen_set_std_prefs): when producing default internal
12383 personal-digest-preferences, keep the same order. When publishing
12384 external preferences, state preference for SHA512 first.
12386 2017-12-12 Werner Koch <wk@gnupg.org>
12388 Change backlog from 5 to 64 and provide option --listen-backlog.
12389 + commit c81a447190d2763ac4c64b2e74e22e824da8aba3
12390 * agent/gpg-agent.c (oListenBacklog): New const.
12391 (opts): New option --listen-backlog.
12392 (listen_backlog): New var.
12393 (main): Parse new options.
12394 (create_server_socket): Use var instead of 5.
12395 * dirmngr/dirmngr.c: Likewise.
12396 * scd/scdaemon.c: Likewise.
12398 build: New configure option --enable-run-gnupg-user-socket.
12399 + commit 17efcd2a2acdc3b7f00711272aa51e5be2476921
12400 * configure.ac: (USE_RUN_GNUPG_USER_SOCKET): New ac_define.
12401 * common/homedir.c (_gnupg_socketdir_internal): Add extra directories.
12403 2017-12-11 Werner Koch <wk@gnupg.org>
12405 dirmngr: Check for WKD support at session end.
12406 + commit 20b52be9ca29b0bc843fc68a279cb72728ede72f
12407 * dirmngr/domaininfo.c (insert_or_update): Copy the name.
12408 * dirmngr/misc.c (copy_stream): Allow arg OUT to be NULL.
12409 * dirmngr/server.c (set_error): Protect CTX.
12410 (dirmngr_status): Protect against missing ASSUAN_CTX.
12411 (dirmngr_status_help): Ditto.
12412 (dirmngr_status_printf): Ditto.
12413 (cmd_wkd_get): Factor code out to ...
12414 (proc_wkd_get): new func. Support silent operation with no CTX.
12415 (task_check_wkd_support): New.
12417 dirmngr: Add a background task framework.
12418 + commit f2997adee0455c8c0fa391a853ec1b0c9fc43342
12419 * dirmngr/workqueue.c: New.
12420 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new file.
12421 * dirmngr/server.c (server_local_s): New field session_id.
12422 (cmd_wkd_get): Add a task.
12423 (task_check_wkd_support): New stub function.
12424 (cmd_getinfo): New sub-commands "session_id" and "workqueue".
12425 (start_command_handler): Add arg session_id and store it in
12427 (dirmngr_status_helpf): New.
12428 * dirmngr/dirmngr.h (wqtask_t): New type.
12429 * dirmngr/dirmngr.c (main): Pass 0 as session_id to
12430 start_command_handler.
12431 (start_connection_thread): Introduce a session_id and pass it to
12432 start_command_handler. Run post session tasks.
12433 (housekeeping_thread): Run global workqueue tasks.
12435 dirmngr: Limit the number of cached domains for WKD.
12436 + commit 7a663c296e687f12ccd9a21d414de780feb4dfcf
12437 * dirmngr/domaininfo.c (MAX_DOMAINBUCKET_LEN): New.
12438 (insert_or_update): Limit the length of a bucket chain.
12439 (domaininfo_print_stats): Print just one summary line.
12441 (cherry picked from commit 26f08343fbccdbaa177c3507a3c5e24a5cf94a2d)
12443 dirmngr: Keep track of domains used for WKD queries.
12444 + commit 6c1dcd79cf0977844179d9a7b189c10af5e42a7e
12445 * dirmngr/domaininfo.c: New file.
12446 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
12447 * dirmngr/server.c (cmd_wkd_get): Check whether the domain is already
12448 known and tell domaininfo about the results.
12450 Adjust for changed macro names in libgpg-error master.
12451 + commit 34defc9bce91d66fa8c9481ebe6e78b612e570dc
12452 * common/logging.h (GPGRT_LOGLVL_): New replacement macros for older
12453 libgpg-error versions.
12455 2017-12-08 NIIBE Yutaka <gniibe@fsij.org>
12457 agent: Fix description of shadow format.
12458 + commit 5c121d44443b0a96ec6ea82b90717e3dbafd2cc5
12459 * agent/keyformat.txt, agent/protect.c, agent/t-protect.c: Fix.
12461 2017-12-07 Werner Koch <wk@gnupg.org>
12463 build: Do not define logging.h constants for libgpg-error dev versions.
12464 + commit 2fedf8583bcc493f587c90bc9632d25dfd10bd10
12465 * common/logging.h [GPGRT_LOG_WITH_PREFIX]: Do not define the log
12468 2017-12-07 NIIBE Yutaka <gniibe@fsij.org>
12470 agent: Change intialization of assuan socket system hooks.
12471 + commit b9677ba16f6b386896781a751e4b2fc839e3ec81
12472 * agent/gpg-agent.c (initialize_modules): Add hook again.
12473 (main): Remove setting of the system houk but add scoket system hook
12474 setting after assuan initialization.
12476 2017-12-06 NIIBE Yutaka <gniibe@fsij.org>
12478 agent: Set assuan system hooks before call of assuan_sock_init.
12479 + commit 1524ba9656f0205d8c6ef504f773b832a7a12ab9
12480 * agent/gpg-agent.c (initialize_modules): Move assuan_set_system_hooks.
12481 (main): ... here, just before assuan_sock_init.
12483 2017-12-04 NIIBE Yutaka <gniibe@fsij.org>
12484 Damien Goutte-Gattat <dgouttegattat@incenp.org>
12486 g10: Fix regexp sanitization.
12487 + commit 0d0b9eb0d4f99e8d293a4ce4b90921a879905115
12488 * g10/trustdb.c (sanitize_regexp): Only escape operators.
12490 2017-11-27 Werner Koch <wk@gnupg.org>
12492 Use the gpgrt log functions if possible.
12493 + commit b56dfdfc1865ceb7c3c025d79996e049faee7fdf
12494 * common/logging.c: Do not build any code if we can use the gpgrt_log
12496 (log_logv_with_prefix): Rename to log_logv_prefix and change order of
12497 args so that this function matches its printf like counterpart
12498 gpgrt_logv_prefix. Change all callers.
12499 (log_debug_with_string): Rename to log_debug_string. Change all
12501 (log_printhex): Move first arg to end so that this function matches
12502 its printf like counterpart gpgrt_log_printhex. Change all callers.
12503 * common/logging.h: Divert to gpgrt/libgpg-error if we can use the
12504 gpgrt_log functions.
12505 (bug_at): Add inline versions if we can use the gpgrt_log functions.
12506 * configure.ac (GPGRT_ENABLE_LOG_MACROS): Add to AH_BOTTOM.
12507 (mycflags): Add -Wno-format-zero-length.
12509 2017-11-26 Werner Koch <wk@gnupg.org>
12511 gpg: Do not read from uninitialized memory with --list-packets.
12512 + commit 4cf3cc6e3d48c8400466ca29c3f1c22ed2da6c2c
12513 * g10/parse-packet.c (parse_plaintext): Fill up the allocated NAME.
12515 2017-11-24 Werner Koch <wk@gnupg.org>
12517 agent: New option --auto-expand-secmem.
12518 + commit 18af15249de5f826c3fa8d1d40e876734adcd0cf
12519 * agent/gpg-agent.c (oAutoExpandSecmem): New enum value.
12520 (opts): New option --auto-expand-secmem.
12521 (main): Implement that option.
12523 2017-11-22 Werner Koch <wk@gnupg.org>
12525 gpg: Fix memory leaking for long inputs via --command-fd.
12526 + commit ea28ea18f3ee6c9f5e69986f39848398b58e242e
12527 * g10/cpr.c (do_get_from_fd): Free the old buffer.
12529 2017-11-21 NIIBE Yutaka <gniibe@fsij.org>
12531 scd: Enable card removal check after select_application.
12532 + commit 0bb7fd0cab2d53cd0d44b21301b23edfe817e66b
12533 * scd/apdu.c (open_ccid_reader): Fix error handling of ccid_get_atr.
12534 * scd/app.c (select_application): Always kick the loop if new APP.
12535 * scd/ccid-driver.c (ccid_open_usb_reader): Don't setup at open.
12536 (ccid_slot_status): Setup interrupt transfer when !ON_WIRE.
12538 2017-11-20 Werner Koch <wk@gnupg.org>
12541 + commit 97f4feaaca8da4dcf1ca09a2016693155016f06b
12544 build: Use -Werror only for the check.
12545 + commit 04d9833e71cc9d0c087faec091c29b0b6cf69488
12546 * configure.ac: Do not add -Werror to mycflags.
12548 gpg-agent: Avoid getting stuck in shutdown pending state.
12549 + commit 7ffedfab8909a45a4b0347a5f7b52222e8439f1d
12550 * agent/gpg-agent.c (handle_connections): Always check inotify fds.
12552 2017-11-20 NIIBE Yutaka <gniibe@fsij.org>
12554 agent: Use clock or clock_gettime for calibration.
12555 + commit 760aa8aadafb747f33a1461ab0c2570b5ae43716
12556 * agent/protect.c (calibrate_get_time): Use clock or clock_gettime.
12558 build: Check -Wlogical-op flag availability with -Werror.
12559 + commit 3ecd1a41be7c880976987d13e88342c98f37e064
12560 * configure.ac: Use -Werror.
12562 build: BSD make support for yat2m.
12563 + commit e1984969cac06a88c7e6f5e49e5c3104d10a847d
12564 * configure.ac (YAT2M): Only define when found.
12565 * doc/Makefile.am: Portability fix.
12567 2017-11-17 Werner Koch <wk@gnupg.org>
12569 dirmngr: Fix double free of a hash context in the error case.
12570 + commit 2aa106d6a4e2b09c257e8d769895d93ebb7f7edf
12571 * dirmngr/crlcache.c: Clearly document that this fucntions takes
12573 (abort_sig_check): Allow NULL for MD.
12574 (crl_parse_insert): Immediately set MD to NULL. Remove check for md
12575 before a calling abort_sig_check.
12577 2017-11-15 Werner Koch <wk@gnupg.org>
12579 assuan: Fix exponential decay for first second.
12580 + commit 0cfdd3b57d592fb6baa7dafe8fde124e8a6c7798
12581 * common/asshelp.c (wait_for_sock): Round SECSLEFT.
12582 * dirmngr/dirmngr.c (main): Take care of --debug-wait also in dameon
12584 * common/sysutils.c (gnupg_usleep) [HAVE_NANOSLEEP]: Fix nanosleep use.
12586 common: Change log_clock to printf style.
12587 + commit 8704304699bcbc1c10d0315ec7d25a1ae05c9905
12588 * common/logging.c (log_clock): Use do_logv.
12590 common: Tweak new code to keep already translated strings.
12591 + commit 4a7fe9a596b639a0edb08502f20cb293129e5a33
12592 * common/asshelp.c (wait_for_sock): Replace NAME by WHICH and adjust
12593 caller. Revert to use the former strings.
12595 2017-11-15 Andre Heinecke <aheinecke@intevation.de>
12597 w32: Fix default registry path.
12598 + commit 4f5afaf1fdb5cb13859aca390ccb5a1ba1dba00c
12599 * configure.ac (GNUPG_REGISTRY_DIR): Remove leading backslash.
12601 2017-11-15 Werner Koch <wk@gnupg.org>
12603 gpg: Repurpose the ISO defined DO "sex" to "salutation".
12604 + commit 166f3f9ec40888e10cb0c51017944bfc57503fc1
12605 * g10/card-util.c (current_card_status): String changes.
12606 (change_sex): Description change.
12607 (cmds): Add "salutation"; keep "sex" as an alias.
12609 2017-11-15 Andre Heinecke <aheinecke@intevation.de>
12611 gpgtar: Prefer --set-filename over implicit name.
12612 + commit 878b8bfdcc3a8becfc46b9287a2d14cd3c875f28
12613 * tools/gpgtar-extract.c: Prefer opt.filename over filename
12614 for the directory prefix.
12616 2017-11-15 Werner Koch <wk@gnupg.org>
12618 gpg: Print AKL info only in verbose mode.
12619 + commit b062ea5bc25157c942047b3fe7f5182a06106340
12620 * g10/getkey.c (get_pubkey_byname): Print info only in verbose mode.
12622 2017-11-14 Werner Koch <wk@gnupg.org>
12624 dirmngr: Check for WKD support at session end.
12625 + commit d4e2302d8f4a1ff52d56da4f8e3a5d1c6303822d
12626 * dirmngr/domaininfo.c (insert_or_update): Copy the name.
12627 * dirmngr/misc.c (copy_stream): Allow arg OUT to be NULL.
12628 * dirmngr/server.c (set_error): Protect CTX.
12629 (dirmngr_status): Protect against missing ASSUAN_CTX.
12630 (dirmngr_status_help): Ditto.
12631 (dirmngr_status_printf): Ditto.
12632 (cmd_wkd_get): Factor code out to ...
12633 (proc_wkd_get): new func. Support silent operation with no CTX.
12634 (task_check_wkd_support): New.
12636 dirmngr: Add a background task framework.
12637 + commit 96a4fbecd1acf946dcde20bef4752c539dae196b
12638 * dirmngr/workqueue.c: New.
12639 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new file.
12640 * dirmngr/server.c (server_local_s): New field session_id.
12641 (cmd_wkd_get): Add a task.
12642 (task_check_wkd_support): New stub function.
12643 (cmd_getinfo): New sub-commands "session_id" and "workqueue".
12644 (start_command_handler): Add arg session_id and store it in
12646 (dirmngr_status_helpf): New.
12647 * dirmngr/dirmngr.h (wqtask_t): New type.
12648 * dirmngr/dirmngr.c (main): Pass 0 as session_id to
12649 start_command_handler.
12650 (start_connection_thread): Introduce a session_id and pass it to
12651 start_command_handler. Run post session tasks.
12652 (housekeeping_thread): Run global workqueue tasks.
12654 2017-11-14 Andre Heinecke <aheinecke@intevation.de>
12656 sm, w32: Fix initial keybox creation.
12657 + commit 5ecef193bc2144e6d51a6bd5727bfd08a0d28b66
12658 * sm/keydb.c (maybe_create_keybox): Open new keybox in bin mode.
12660 2017-11-14 Werner Koch <wk@gnupg.org>
12662 dirmngr: Limit the number of cached domains for WKD.
12663 + commit 26f08343fbccdbaa177c3507a3c5e24a5cf94a2d
12664 * dirmngr/domaininfo.c (MAX_DOMAINBUCKET_LEN): New.
12665 (insert_or_update): Limit the length of a bucket chain.
12666 (domaininfo_print_stats): Print just one summary line.
12668 2017-11-13 Werner Koch <wk@gnupg.org>
12670 dirmngr: Keep track of domains used for WKD queries.
12671 + commit 65038e6852185c20413d8f6602218ee636413b77
12672 * dirmngr/domaininfo.c: New file.
12673 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
12674 * dirmngr/server.c (cmd_wkd_get): Check whether the domain is already
12675 known and tell domaininfo about the results.
12677 gpg-agent: Avoid getting stuck in shutdown pending state.
12678 + commit 5d83eb9226c0ce608ec284d8c9bc22ce84a00c25
12679 * agent/gpg-agent.c (handle_connections): Always check inotify fds.
12681 2017-11-13 NIIBE Yutaka <gniibe@fsij.org>
12683 tests: Handle the case with DISABLE_REGEX.
12684 + commit 80b904543486a2f12087bc34a6049ede4eb75940
12685 * tests/openpgp/Makefile.am [DISABLE_REGEX] (EXTRA_DIST, XTESTS):
12687 * tests/openpgp/all-tests.scm (all-tests): Input file is Makefile.
12689 2017-11-13 Damien Goutte-Gattat <dgouttegattat@incenp.org>
12691 tests: Run the trust-pgp-4 test again.
12692 + commit a1fe3708d0894c138f6dd75d2a6bd22c64359172
12693 * tests/openpgp/Makefile.am (XTESTS): Add trust-pgp-4.scm.
12694 (EXTRA_DIST): Remove the test file from EXTRA_DIST.
12696 2017-11-09 NIIBE Yutaka <gniibe@fsij.org>
12697 Damien Goutte-Gattat <dgouttegattat@incenp.org>
12699 g10: Fix regexp sanitization.
12700 + commit ccf3ba92087e79abdeaa0208795829b431c6f201
12701 * g10/trustdb.c (sanitize_regexp): Only escape operators.
12703 2017-11-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12705 assuan: Use exponential decay for first 1s of spinlock.
12706 + commit 149041b0b917f4298239fe18b5ebd5ead71584a6
12707 * common/asshelp.c (wait_for_sock): instead of checking the socket
12708 every second, we check 10 times in the first second (with exponential
12711 assuan: Reorganize waiting for socket.
12712 + commit 0471ff9d3bf8d6b9a359f3c426d70d0935066907
12713 * common/asshelp.c (wait_for_sock): New function, collecting
12715 (start_new_gpg_agent) here and...
12716 (start_new_dirmngr) here.
12718 2017-11-07 Werner Koch <wk@gnupg.org>
12721 + commit 5bd515005032f9340bd73e4346bbd0aef8518074
12724 dirmngr: Reduce default LDAP timeout to 15 seconds.
12725 + commit 30f21f8b0fa6844a9bba3f24dc41b3ac32170109
12726 * dirmngr/dirmngr.c (DEFAULT_LDAP_TIMEOUT): Change to 15.
12727 * dirmngr/dirmngr_ldap.c (DEFAULT_LDAP_TIMEOUT): Ditto.
12729 (cherry picked from commit ab7ac827041b5cd97bbca7a75b0930072dd6611f)
12731 dirmngr: Reduce default LDAP timeout to 15 seconds.
12732 + commit ab7ac827041b5cd97bbca7a75b0930072dd6611f
12733 * dirmngr/dirmngr.c (DEFAULT_LDAP_TIMEOUT): Change to 15.
12734 * dirmngr/dirmngr_ldap.c (DEFAULT_LDAP_TIMEOUT): Ditto.
12736 speedo: Include software versions in the W32 README.
12737 + commit 23bfac6d1a8bd2d0af5a6fac3ba3a6e986d6c9e8
12738 (cherry picked from commit f9f72ffbfa9fd7d1a7a1823697d116d76155b407)
12740 2017-11-07 Ineiev <ineiev@gnu.org>
12742 po: Update Russian translation.
12743 + commit 1941287c9d2c9e666bad1bd330db169f0e3d6b6c
12746 2017-11-07 Werner Koch <wk@gnupg.org>
12748 speedo: Include software versions in the W32 README.
12749 + commit f9f72ffbfa9fd7d1a7a1823697d116d76155b407
12752 2017-11-07 NIIBE Yutaka <gniibe@fsij.org>
12754 po: Update Japanese translation.
12755 + commit 96d441b315ec5c9f329596cfda28ac13a8bfa21a
12758 agent: Use clock or clock_gettime for calibration.
12759 + commit 380bce13d94ff03c96e39ac1d834f382c5c730a1
12760 * agent/protect.c (calibrate_get_time): Use clock or clock_gettime.
12762 2017-11-06 Werner Koch <wk@gnupg.org>
12764 tests: Minor imporvement in agent invocation.
12765 + commit 42308224d1fce64c666aed2be5eb4ef42e8aced4
12766 * tests/openpgp/defs.scm (create-gpghome): Add s2k-count.
12768 agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".
12769 + commit 3607ab2cf382296cb398a92d5ec792239960bf7b
12770 * agent/command.c (cmd_getinfo): New sub-commands.
12771 * agent/protect.c (get_standard_s2k_count): Factor some code out to ...
12772 (get_calibrated_s2k_count): new.
12773 (get_standard_s2k_time): New.
12775 (cherry picked from commit 52d41c8b0f4af6278d18d8935399ddad16a26856)
12777 agent: New option --s2k-count.
12778 + commit 78a6d0ce88ae14d8324fbab3aee3286b17e49259
12779 * agent/agent.h (opt): New field 's2k_count'.
12780 * agent/gpg-agent.c (oS2KCount): New enum value.
12781 (opts): New option --s2k-count.
12782 (parse_rereadable_options): Set opt.s2k_count.
12784 agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".
12785 + commit 52d41c8b0f4af6278d18d8935399ddad16a26856
12786 * agent/command.c (cmd_getinfo): New sub-commands.
12787 * agent/protect.c (get_standard_s2k_count): Factor some code out to ...
12788 (get_calibrated_s2k_count): new.
12789 (get_standard_s2k_time): New.
12791 agent: New option --s2k-count.
12792 + commit f7212f1d11aad5d910d2c77b2e5c6ab31a0e786e
12793 * agent/agent.h (opt): New field 's2k_count'.
12794 * agent/gpg-agent.c (oS2KCount): New enum value.
12795 (opts): New option --s2k-count.
12796 (parse_rereadable_options): Set opt.s2k_count.
12798 2017-11-06 NIIBE Yutaka <gniibe@fsij.org>
12800 g10: Unattended key generation "Key-Grip" and "Subkey-Grip".
12801 + commit 680161647ad56d1ca92988f80bcc4d6fcb20b1eb
12802 * g10/keygen.c (pSUBKEYGRIP): New.
12803 (read_parameter_file): Add "Key-Grip" and "Subkey-Grip".
12804 (do_generate_keypair): Support pSUBKEYGRIP.
12806 g10: Simplify "factory-reset" procedure.
12807 + commit f183b9768b42a6792c55a6129488bd8fbf5e8e6d
12808 * g10/card-util.c (factory_reset): Simplify.
12810 2017-11-02 Ineiev <ineiev@gnu.org>
12812 po: Update Russian translation.
12813 + commit 6070f5a61d4d17ff437c69e1b708d49d107c22dc
12816 2017-11-02 Werner Koch <wk@gnupg.org>
12818 gpg: Introduce magic value 25519 to switch a card to ECC.
12819 + commit acb300543422c660c87ac2f0211a42f792a65cc4
12820 * g10/card-util.c (ask_card_keyattr): Handle special value 25519.
12821 (do_change_keyattr): Allow changing to cv25519/ed25519.
12822 (generate_card_keys): Ditto.
12823 (card_generate_subkey): Ditto.
12825 gpg: Rename two card related functions in card-util.
12826 + commit de3a740c2e1156e58d2f94faa85c051740c8988e
12827 * g10/card-util.c (ask_card_rsa_keysize): Rename to ask_card_keyattr.
12828 (do_change_rsa_keysize): Rename to do_change_keyattr.
12830 gpg: Unifiy the message for re-configuring cards.
12831 + commit 922bae8082f2f8d696ea0e7d7e9e4d986789bdfc
12832 * g10/card-util.c (ask_card_keyattr): Print "rsaNNNN".
12834 gpg: Introduce magic value 25519 to switch a card to ECC.
12835 + commit ea09b6cded9d31a8ebd91878553c3eaa2b76e817
12836 * g10/card-util.c (show_keysize_warning): Slightly change the text.
12837 (ask_card_keyattr): Handle special value 25519.
12838 (do_change_keyattr): Allow changing to cv25519/ed25519.
12839 (generate_card_keys): Ditto.
12840 (card_generate_subkey): Ditto.
12842 2017-11-02 NIIBE Yutaka <gniibe@fsij.org>
12844 agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
12845 + commit 3da47d19df89d302c0ea25921f4bd8ce55705afe
12846 * agent/learncard.c (agent_handle_learn): Find SERIALNO.
12848 agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
12849 + commit 5e96fe72e477d09e35ccee48af0fd9ab2b3ae409
12850 * agent/learncard.c (agent_handle_learn): Find SERIALNO.
12852 2017-11-01 NIIBE Yutaka <gniibe@fsij.org>
12854 common: Accept the Z-suffix for yymmddThhmmssZ format.
12855 + commit 0e5bd473a07f188615c4fce26b73bb452d689d68
12856 * common/gettime.c (isotime_p): Accept the Z suffix.
12858 2017-11-01 Werner Koch <wk@gnupg.org>
12860 gpg: Rename two card related functions in card-util.
12861 + commit f795f4529d8ab5a05db1cc1960abd34390bfae1b
12862 * g10/card-util.c (ask_card_rsa_keysize): Rename to ask_card_keyattr.
12863 (do_change_rsa_keysize): Rename to do_change_keyattr.
12865 2017-11-01 NIIBE Yutaka <gniibe@fsij.org>
12867 g10: Unattended key generation "Key-Grip" and "Subkey-Grip".
12868 + commit 6c63a04569c07c9c2817c7c530a92ccfa58155cc
12869 * g10/keygen.c (pSUBKEYGRIP): New.
12870 (read_parameter_file): Add "Key-Grip" and "Subkey-Grip".
12871 (do_generate_keypair): Support pSUBKEYGRIP.
12873 2017-10-30 NIIBE Yutaka <gniibe@fsij.org>
12875 g10: Simplify "factory-reset" procedure.
12876 + commit d63b7966cdd72548c60466c620de5cd6104a779e
12877 * g10/card-util.c (factory_reset): Simplify.
12879 2017-10-27 NIIBE Yutaka <gniibe@fsij.org>
12881 agent: Clean up pinentry access locking.
12882 + commit 3924e1442c6625a2b57573a1a634a5ec56b09a29
12883 * agent/agent.h (struct server_control_s): Rename PINENTRY_ACTIVE.
12884 * agent/call-pinentry.c (entry_owner): Remove.
12885 (agent_reset_query): Use thread private object of PINENTRY_ACTIVE.
12886 (unlock_pinentry): Add CTRL to arguments to access thread private.
12887 Check and decrement PINENTRY_ACTIVE for recursive use.
12888 (start_pinentry): Check and increment PINENTRY_ACTIVE for recursion.
12889 (agent_askpin): Follow the change of unlock_pinentry API.
12890 (agent_get_passphrase, agent_get_confirmation): Likewise.
12891 (agent_show_message, agent_popup_message_start): Likewise.
12892 (agent_popup_message_stop, agent_clear_passphrase): Likewise.
12894 agent: Allow recursive use of pinentry.
12895 + commit 4738256f2e0d22302377c9ec7b2ae3999338e6c6
12896 * agent/agent.h (struct server_control_s): Add pinentry_level.
12897 * agent/call-pinentry.c (agent_popup_message_stop): Not clear
12899 (unlock_pinentry): Handle recursion. Clear ENTRY_CTX here.
12900 (start_pinentry): Allow recursive use.
12902 agent: Clean up pinentry access locking.
12903 + commit fb7828676cc2c01047498898378711e049f73fee
12904 * agent/agent.h (struct server_control_s): Rename PINENTRY_ACTIVE.
12905 * agent/call-pinentry.c (entry_owner): Remove.
12906 (agent_reset_query): Use thread private object of PINENTRY_ACTIVE.
12907 (unlock_pinentry): Add CTRL to arguments to access thread private.
12908 Check and decrement PINENTRY_ACTIVE for recursive use.
12909 (start_pinentry): Check and increment PINENTRY_ACTIVE for recursion.
12910 (agent_askpin): Follow the change of unlock_pinentry API.
12911 (agent_get_passphrase, agent_get_confirmation): Likewise.
12912 (agent_show_message, agent_popup_message_start): Likewise.
12913 (agent_popup_message_stop, agent_clear_passphrase): Likewise.
12915 2017-10-26 NIIBE Yutaka <gniibe@fsij.org>
12917 agent: Allow recursive use of pinentry.
12918 + commit 3b66a256e3760e88066ca11b7b49d924e42aa46b
12919 * agent/agent.h (struct server_control_s): Add pinentry_level.
12920 * agent/call-pinentry.c (agent_popup_message_stop): Not clear
12922 (unlock_pinentry): Handle recursion. Clear ENTRY_CTX here.
12923 (start_pinentry): Allow recursive use.
12925 agent, tests: Support --disable-scdaemon build case.
12926 + commit 05cb87276c21c3a47226c75026fa46a955553dd9
12927 * agent/command.c (cmd_scd): Support !BUILD_WITH_SCDAEMON.
12928 * tests/openpgp/defs.scm (create-gpghome): Likewise.
12929 * tests/gpgsm/gpgsm-defs.scm (create-gpgsmhome): Likewise.
12931 Fix comment of configure.
12932 + commit b13972dfbf7224478652038725ab0d2cb41b7303
12933 * configure.ac (BUILD_WITH_DIRMNGR): Comment fix.
12935 agent, tests: Support --disable-scdaemon build case.
12936 + commit bf26c08b95389718ba07f12789d372c6f438134f
12937 * agent/command.c (cmd_scd): Support !BUILD_WITH_SCDAEMON.
12938 * tests/openpgp/defs.scm (create-gpghome): Likewise.
12939 * tests/gpgsm/gpgsm-defs.scm (create-gpgsmhome): Likewise.
12941 Fix comment of configure.
12942 + commit 3549dce4f5a726f5350ac2f20d83ba9f84cc23b4
12943 * configure.ac (BUILD_WITH_DIRMNGR): Comment fix.
12945 2017-10-24 Werner Koch <wk@gnupg.org>
12947 gpg: Avoid superfluous sig check info during import.
12948 + commit 84af859e391a757877c9a1d78e35face983e6d23
12949 * g10/key-check.c (print_info): New.
12950 (key_check_all_keysigs): Print sig checking results only in debug
12951 mode. Prettify the stats info and suppress them in quiet mode.
12953 build: New configure option --enable-werror.
12954 + commit 812fe29bff42cf7dbd07e0becc55b2ada340dd97
12955 * configure.ac: Implement that option.
12957 build: Do not mess with CFLAGS in configure.
12958 + commit e417aaf69817fcb4a73c38077853dc940a2deabc
12959 * configure.ac: Do not mess with the user provided CFLAGS.
12961 2017-10-24 Rainer Perske <rainer.perske@uni-muenster.de>
12963 sm: Do not expect X.509 keyids to be unique.
12964 + commit 1067403c8a7fb51decf30059e46901b5ee9f5b37
12965 * sm/certlist.c (gpgsm_find_cert): Add arg allow_ambiguous and use it.
12966 * sm/call-dirmngr.c (inq_certificate): Pass true to ALLOW_AMBIGUOUS
12967 (run_command_inq_cb): Ditto.
12968 * sm/gpgsm.c (main): Pass false.
12969 * sm/server.c (cmd_passwd): Pass false.
12971 2017-10-24 Werner Koch <wk@gnupg.org>
12973 gpgconf: Ignore non-installed components with --apply-profile.
12974 + commit 6e808ae4700dc5e95bf4cc2d5c063df582c234d0
12975 * tools/gpgconf-comp.c (retrieve_options_from_program): Add arg
12977 (gc_component_retrieve_options): Use this if we want to process all
12980 gpg: Improve the "secret key available" notice in keyedit.c.
12981 + commit 560d85ecff4246133d185dc29395f07c918b5556
12982 * g10/keyedit.c (KEYEDIT_NEED_SUBSK): New.
12983 (cmds): Add this flag to keytocard, bkuptocard, expire, and passwd.
12984 (keyedit_menu): Check whether only subkeys are available and take care
12985 of that in the command check and in the HELP listing. Also print a
12986 different notice if only subkeys are available.
12988 gpg: Remove unused flags from keyedit.c.
12989 + commit 016538d82867c40a21bc7cbf44ec386f4699077f
12990 * g10/keyedit.c (KEYEDIT_NOT_SK, KEYEDIT_ONLY_SK): Remove.
12991 (cmds): Remove them.
12993 2017-10-19 Werner Koch <wk@gnupg.org>
12995 gpg: Fix creating on-disk subkey with on-card primary key.
12996 + commit 44fb3fbc85b32552c91f32f099b6b246c12ce0cc
12997 * g10/keygen.c (generate_subkeypair): Ignore error code issued for
12998 trying to verify a card based key.
13000 gpg: Print sec/sbb with --import-option import-show or show-only.
13001 + commit 2c7dccca9b617780a3ea760adf460bb3b77f90f3
13002 * g10/import.c (import_one): Pass FROM_SK to list_keyblock_direct.
13004 gpg: Make --dry-run and show-only work for secret keys.
13005 + commit 68c8619114fd5f24cb6bfb9e0f25c428a8805323
13006 * g10/import.c (import_secret_one): Check for dry-run before
13009 2017-10-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
13011 dirmngr: Do not follow https-to-http redirects.
13012 + commit 1ba308aa0356a57c21c4c8c2dac75b4d62b8aac3
13013 * dirmngr/ks-engine-http.c (ks_http_fetch): Forbid redirects from
13014 a https URI to a http URI.
13016 2017-10-19 NIIBE Yutaka <gniibe@fsij.org>
13018 g10: Fix find_and_check_key for multiple keyrings.
13019 + commit d07de3862710d88bc80d6f6c5ca8da5cf38ff0eb
13020 * g10/pkclist.c (find_and_check_key): Call get_validity on a specific
13023 2017-10-19 Werner Koch <wk@gnupg.org>
13025 gpg: Keep a lock during the read-update/insert cycle in import.
13026 + commit 7c73db3d31c6457dfbdc82a8dc89951c023f0603
13027 * g10/keydb.c (keydb_handle): New field 'keep_lock'.
13028 (keydb_release): Clear that flag.
13029 (keydb_lock): New function.
13030 (unlock_all): Skip if KEEP_LOCK is set.
13031 * g10/getkey.c (get_keyblock_byfprint_fast): Call keep_lock if
13034 gpg: Improve keydb handling in the main import function.
13035 + commit 8448347b5bdee56e6f9938a93ea92fe4d3c8800c
13036 * g10/getkey.c (get_pubkey_byfprint_fast): Factor most code out to ...
13037 (get_keyblock_byfprint_fast): .. new function.
13038 * g10/import.c (revocation_present): s/int rc/gpg_error_t err/.
13039 (import_one): Use get_keyblock_byfprint_fast to get the keyblock and a
13040 handle. Remove the now surplus keyblock fetch in the merge branch.
13042 gpg: Simplify keydb handling of the main import function.
13043 + commit 752cae6dd2ee8982a34c796a3f168ae538f7938c
13044 * g10/import.c (import_keys_internal): Return gpg_error_t instead of
13045 int. Change var names.
13046 (import_keys_es_stream): Ditto.
13047 (import_one): Ditto. Use a single keydb_new and simplify the use of
13050 sm: Fix colon listing of fields > 12 in crt records.
13051 + commit 1bf5cbd3ef01b7f5fdcfa30c882047b924dcf3f0
13052 * sm/keylist.c (print_capabilities): Move colon printing ...
13053 (list_cert_colon): to here.
13055 2017-10-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13057 agent: Send pinentry the uid of connecting process where possible.
13058 + commit 28aa6890588cc108639951bb4bef03ac17743046
13059 * agent/agent.h (server_control_s): Add field 'client_uid'.
13060 * agent/call-pinentry.c (start_pinentry): Add uid field to assuan
13061 option "owner" sent to pinentry.
13062 * agent/command-ssh.c (peer_info_s): New static struct.
13063 (get_client_pid): Rename to...
13064 (get_client_info): Here, and extract uid in addition to pid.
13065 (start_command_handler_ssh): Use get_client_info() instead of
13067 * agent/command.c (start_command_handler): Try assuan_get_peercred,
13068 and only fall back to assuan_get_pid when assuan_get_peercred fails.
13070 2017-10-19 NIIBE Yutaka <gniibe@fsij.org>
13072 g10: Fix find_and_check_key for multiple keyrings.
13073 + commit 995c46ea77cff5b99b2fca17b547d6525a4f227e
13074 * g10/pkclist.c (find_and_check_key): Call get_validity on a specific
13077 2017-10-18 Werner Koch <wk@gnupg.org>
13079 gpg: Keep a lock during the read-update/insert cycle in import.
13080 + commit 645f30ad310a518a863eb7bd3e11251a7e7f2eca
13081 * g10/keydb.c (keydb_handle): New field 'keep_lock'.
13082 (keydb_release): Clear that flag.
13083 (keydb_lock): New function.
13084 (unlock_all): Skip if KEEP_LOCK is set.
13085 * g10/getkey.c (get_keyblock_byfprint_fast): Call keep_lock if
13088 gpg: Improve keydb handling in the main import function.
13089 + commit 3bb06531d38b85be295308e826a50a1a7ba935ec
13090 * g10/getkey.c (get_pubkey_byfprint_fast): Factor most code out to ...
13091 (get_keyblock_byfprint_fast): .. new function.
13092 * g10/import.c (revocation_present): s/int rc/gpg_error_t err/.
13093 (import_one): Use get_keyblock_byfprint_fast to get the keyblock and a
13094 handle. Remove the now surplus keyblock fetch in the merge branch.
13096 gpg: Simplify keydb handling of the main import function.
13097 + commit d353287f721ffb56627d55bef04cc770ff0a8681
13098 * g10/import.c (import_keys_internal): Return gpg_error_t instead of
13099 int. Change var names.
13100 (import_keys_es_stream): Ditto.
13101 (import_one): Ditto. Use a single keydb_new and simplify the use of
13104 gpg: Fix wrong Tofu DB consistency check.
13105 + commit 18e5946aef458cd95fdce4a04e144747b52b0472
13106 * g10/tofu.c (build_conflict_set): Do not assume MAX_FINGERPRINT_LEN
13107 is the size of the fingerprint.
13109 2017-10-17 Werner Koch <wk@gnupg.org>
13111 gpg,sm: New option --with-key-screening.
13112 + commit 825abec0e7f38667a34dce3025fc2f3a05001dde
13113 * common/pkscreening.c: New.
13114 * common/pkscreening.h: New.
13115 * common/Makefile.am (common_sources): Add them.
13116 * g10/gpg.c (opts): New option --with-key-screening.
13117 * g10/options.h (struct opt): New field with_key_screening.
13118 * g10/keylist.c: Include pkscreening.h.
13119 (print_pk_screening): New.
13120 (list_keyblock_print): Call it.
13121 (print_compliance_flags): Call it.
13122 * sm/gpgsm.c (opts): New option --with-key-screening.
13123 * sm/gpgsm.h (scruct opt): New field with_key_screening.
13124 * sm/keylist.c: Include pkscreening.h.
13125 (print_pk_screening): New.
13126 (print_compliance_flags): Call it. Add new arg cert.
13127 (list_cert_colon): Pass arg cert
13128 (list_cert_std): Call print_pk_screening.
13129 * sm/fingerprint.c (gpgsm_get_rsa_modulus): New.
13131 sm: Fix colon listing of fields > 12 in crt records.
13132 + commit 69e579d78545aee5096a5d170e1cb9e511a09a90
13133 * sm/keylist.c (print_capabilities): Move colon printing ...
13134 (list_cert_colon): to here.
13136 2017-10-06 Neal H. Walfield <neal@g10code.com>
13138 gpg: Fix comparison.
13139 + commit 1ed21eee79749b976b4a935f2279b162634e9c5e
13140 * g10/gpgcompose.c (literal_name): Complain if passed zero arguments,
13143 2017-09-28 Werner Koch <wk@gnupg.org>
13145 gpg: Workaround for junk after --trusted-key.
13146 + commit b509d81cab030cca6abf0d878e1fc884eda344e6
13147 * g10/trust.c (register_trusted_key): Cut off everthing starting as a
13150 2017-09-27 Werner Koch <wk@gnupg.org>
13152 gpg: Prepare for a longer fingerprint.
13153 + commit ecbbafb88d920e713439b6b1b8e1b41a6f8d0e38
13154 * g10/card-util.c (change_cafpr): Use MAX_FINGERPRINT_LEN.
13155 * g10/cipher.c (write_header): Use snprintf.
13156 * g10/gpg.h (MAX_FINGERPRINT_LEN): Change to 32.
13157 (MAX_FORMATTED_FINGERPRINT_LEN): Change to 59
13158 * g10/keyid.c (format_hexfingerprint): Add v5 fingerprint format.
13159 * g10/tofu.c (get_policy): Use MAX_FINGERPRINT_LEN for the buffer but
13160 keep the raw length for now.
13162 common: Add constant KEYGRIP_LEN.
13163 + commit 76c80021d4da0755dbb04bd5d42f32015cba0b9a
13164 * common/util.h (KEYGRIP_LEN): New.
13165 * g10/call-agent.c (agent_probe_any_secret_key): Use that constant.
13166 * g10/keyid.c (keygrip_from_pk): Ditto.
13168 gpg: Let --debug clock time sign and verify.
13169 + commit 6aa4478c78cb34cf3d0ae5c752525110947bd247
13170 * configure.ac (ENABLE_LOG_CLOCK): New ac_define and option.
13171 * common/logging.c (log_clock): Use ENABLE_LOG_CLOCK to enable
13172 timestamp printing.
13173 * g10/call-agent.c (agent_pksign): Time signing.
13174 * g10/sig-check.c (check_signature_end_simple): Time verification.
13176 2017-09-26 NIIBE Yutaka <gniibe@fsij.org>
13178 g10: Select a secret key by checking availability under gpg-agent.
13179 + commit 0a76611294998ae34b9d9ebde484ef8ad3a9a3a6
13180 * g10/getkey.c (finish_lookup): Add WANT_SECRET argument to confirm
13181 by agent_probe_secret_key.
13182 (get_pubkey_fromfile, lookup): Supply WANT_SECRET argument.
13184 2017-09-20 NIIBE Yutaka <gniibe@fsij.org>
13186 agent: Fix cancellation handling for scdaemon.
13187 + commit 9f5e50e7c85aa8b847d38010241ed570ac114fc3
13188 * agent/call-scd.c (cancel_inquire): Remove.
13189 (agent_card_pksign, agent_card_pkdecrypt, agent_card_writekey)
13190 (agent_card_scd): Don't call cancel_inquire.
13192 scd: Distinguish cancel by user and protocol error.
13193 + commit 2396055c096884d521c26b76f26263a146207c24
13194 * scd/apdu.h (SW_HOST_CANCELLED): New.
13195 * scd/apdu.c (host_sw_string): Support SW_HOST_CANCELLED.
13196 (pcsc_error_to_sw): Return SW_HOST_CANCELLED for PCSC_E_CANCELLED.
13197 * scd/iso7816.c (map_sw): Return GPG_ERR_INV_RESPONSE for
13198 SW_HOST_ABORTED and GPG_ERR_CANCELED for SW_HOST_CANCELLED.
13200 2017-09-19 NIIBE Yutaka <gniibe@fsij.org>
13202 common: Accept the Z-suffix for yymmddThhmmssZ format.
13203 + commit ba8afc4966cca1f6aaf9b2a9bfc3220782306c2b
13204 * common/gettime.c (isotime_p): Accept the Z suffix.
13206 2017-09-19 Werner Koch <wk@gnupg.org>
13209 + commit 355ca9e9498740fb6294eec451507b4891ae01ec
13212 2017-09-19 NIIBE Yutaka <gniibe@fsij.org>
13214 common: Fix gnupg_wait_processes.
13215 + commit eeb3da6eb717ed6a1a1069a7611eb37503e8672d
13216 * common/exechelp-posix.c (gnupg_wait_processes): Loop for r_exitcodes
13217 even if we already see an error.
13219 2017-09-18 Werner Koch <wk@gnupg.org>
13221 dirmngr: Use system certs if --hkp-cacert is not used.
13222 + commit df692a6167be5486f9a29da003a00292fd895176
13223 * dirmngr/certcache.c (any_cert_of_class): New var.
13224 (put_cert): Set it.
13225 (cert_cache_deinit): Clear it.
13226 (cert_cache_any_in_class): New func.
13227 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Add hack to
13228 override empty list of HKP certs.
13230 wks: Create a new user id if provider wants mailbox-only.
13231 + commit 50c8b6c88f5d9f4b6c4e9c03aee31fe29afa94b8
13232 * tools/gpg-wks-client.c (get_key): Add arg 'exact'.
13233 (add_user_id): New.
13234 (command_send): Create new user id.
13236 wks: Send only the newest UID to the server.
13237 + commit 7f7f5d06fa5aa3a3c5ab8d2e59ee76207bfdeaa0
13238 * tools/wks-util.c (list_key_status_cb): Rename to key_status_cb.
13239 (wks_filter_uid): New.
13240 (wks_list_key): Allow FPR to be NULL. Return an error if no
13241 fingerprint was found.
13242 * tools/gpg-wks-server.c (process_new_key)
13243 (check_and_publish): Remove now useless extra check for FPR.
13244 * tools/gpg-wks-client.c (command_check): Ditto.
13245 (command_send): Filter out the newest uid.
13247 wks: Print the UID creation time with gpg-wks-client --check.
13248 + commit a0035986a8615df056182bb9af775b8b7b22003d
13249 * tools/gpg-wks.h (uidinfo_list_s): Add field 'created'.
13250 * tools/wks-util.c (append_to_uidinfo_list): Add arf 'created'.
13251 (wks_list_key): Pass timestamp to append_to_uidinfo_list.
13252 * tools/gpg-wks-client.c (command_check): Print UID creation time.
13254 wks: Use dedicated type to convey user ids.
13255 + commit 4e0696de897cac6a34d55a69d8889faf26f1a923
13256 * tools/gpg-wks.h (uidinfo_list_s, uidinfo_list_t): New.
13257 * tools/wks-util.c (append_to_uidinfo_list): New.
13258 (free_uidinfo_list): New.
13259 (wks_list_key): Change arg r_mboxes to uidinfo_list_t. Use
13260 append_to_uidinfo_list.
13261 * tools/gpg-wks-server.c (sserver_ctx_s): Replace strlist_t by
13263 (process_new_key): Ditto.
13264 (check_and_publish): Ditto.
13265 (command_receive_cb): Replace free_strlist by free_uidinfo_list.
13266 * tools/gpg-wks-client.c (command_check): Replace strlist_t by
13267 uidinfo_list_t. Also print user id in verbose mode.
13269 2017-09-13 Werner Koch <wk@gnupg.org>
13271 gpgv: Initialize compliance checker.
13272 + commit 006ca124ed95845d43af8c14d7ab2bc085b47b4c
13273 * g10/gpgv.c (main): Call gnupg_initialize_compliance.
13275 2017-09-12 Werner Koch <wk@gnupg.org>
13277 wks: Add hack for the broken posteo system.
13278 + commit a821b4f5567d02c3329c2b94a73dcbe12e6699a2
13279 * tools/gpg-wks-client.c (command_send): Additional hack for posteo.
13280 Check the protocol-version flag.
13282 wks: Add new policy flag protocol-version.
13283 + commit 332c9eaa2a3c7cae90b389cdaa2c149c5595fb4d
13284 * tools/gpg-wks.h (policy_flags_s): Add field protocol_version.
13285 * tools/wks-util.c (wks_parse_policy): Add new policy flag.
13287 gpg: Fix "Fix key generation with only an email part".
13288 + commit 8b5a2474f21dd4f1aa2a283e2f57d75e42742af5
13289 * g10/keygen.c (proc_parameter_file): Don't check the result of
13292 wks: Use unencrypted draft-1 mode for posteo.de.
13293 + commit c65a7bba7331975d20910f90cf648b6ecc5410f0
13294 * tools/gpg-wks-client.c (command_send): Allow sending in draft-1
13297 tools: New function mime_maker_add_body_data.
13298 + commit 7d15ee88980f88ca62fc7de9492dd08e54d0f0f1
13299 * tools/mime-maker.c (mime_maker_add_body_data): New.
13301 2017-09-11 Alon Bar-Lev <alon.barlev@gmail.com>
13303 sm: Move qualified.txt from datadir into sysconfdir.
13304 + commit 384a3748d9022b7ae3f629c13f92e204565fea3d
13305 * doc/Makefile.am: Move qualified.txt into examples.
13306 * doc/qualified.txt: Move into examples, remove trailing spaces.
13307 * doc/examples/README: Document qualified.txt.
13308 * doc/gpgsm.texi: Move qualified.txt from datadir into sysconfdir.
13309 * sm/qualified.c (read_list): Move qualified.txt from datadir into
13312 2017-09-11 NIIBE Yutaka <gniibe@fsij.org>
13314 tests: Fix a test which specifies expiration date.
13315 + commit a172759b5088ae086c0caa2e7d4d0ea346b28a90
13316 * tests/openpgp/quick-key-manipulation.scm: Fix expiration time
13319 scd: Fix for large ECC keys.
13320 + commit 827abe01a72a50eab1cdcde78985b42a4a8480fb
13321 * scd/app-openpgp.c (do_decipher): Support larger length.
13323 2017-09-11 Werner Koch <wk@gnupg.org>
13325 gpg: Fix key generation with only an email part.
13326 + commit 7089dcc54099a4909ce7d386c07ab87e1398e2eb
13327 * g10/keygen.c (proc_parameter_file): Special case the email only
13330 2017-09-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13332 agent: compile-time configuration of s2k calibration.
13333 + commit 926d07c5fa05de05caef3a72b6fe156606ac0549
13334 * configure.ac: add --with-agent-s2k-calibration=MSEC, introduces
13335 AGENT_S2K_CALIBRATION (measured in milliseconds)
13336 * agent/protect.c (calibrate_s2k_count): Calibrate based on
13337 AGENT_S2K_CALIBRATION.
13339 gpg: default to AES-256.
13340 + commit 73ff075204df09db5248170a049f06498cdbb7aa
13341 * g10/main.h (DEFAULT_CIPHER_ALGO): Prefer AES256 by default.
13343 gpg: default to 3072-bit RSA keys.
13344 + commit 909fbca19678e6e36968607e8a2348381da39d8c
13345 * agent/command.c (hlp_genkey): update help text to suggest the use of
13347 * doc/wks.texi: Make example match default generation.
13348 * g10/keygen.c (DEFAULT_STD_KEY_PARAM): update to
13349 rsa3072/cert,sign+rsa3072/encr, and fix neighboring comment,
13350 (gen_rsa, get_keysize_range): update default from 2048 to 3072).
13351 * g10/keyid.c (pubkey_string): update comment so that first example
13352 is the default 3072-bit RSA.
13354 gpgsm: default to 3072-bit keys.
13355 + commit 7955262151a5c755814dd23414e6804f79125355
13356 * doc/gpgsm.texi, doc/howto-create-a-server-cert.texi: : update
13357 default to 3072 bits.
13358 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): update default to
13360 * sm/certreqgen.c (proc_parameters): update default to 3072 bits.
13361 * sm/gpgsm.c (main): print correct default_pubkey_algo.
13363 2017-09-08 NIIBE Yutaka <gniibe@fsij.org>
13365 tests: Fix a test which specifies expiration date.
13366 + commit 17f764dd4972a063fe09c4b9d2846e8efcb25c7a
13367 * tests/openpgp/quick-key-manipulation.scm: Fix expiration time
13370 2017-08-29 NIIBE Yutaka <gniibe@fsij.org>
13372 scd: Fix for large ECC keys.
13373 + commit ff7ccd284c327a5b1c89603f157089177dac9d13
13374 * scd/app-openpgp.c (do_decipher): Support larger length.
13376 2017-08-28 Werner Koch <wk@gnupg.org>
13379 + commit 9d80fb8e000189e61c173c39f1e1ca417566a7fc
13382 2017-08-27 Werner Koch <wk@gnupg.org>
13383 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
13385 scd: Convey the correct length for Le.
13386 + commit 45d5f5800afe6613f338a26f361cb5e03e861129
13387 * scd/app-openpgp.c (determine_rsa_response): Round bits up.
13389 2017-08-24 Werner Koch <wk@gnupg.org>
13391 gpg: Fix memory leak while running --check-trustdb.
13392 + commit 13821e15fb9bdddfce79d88731c0f151724b2371
13393 * g10/trustdb.c (update_min_ownertrust): Free PK.
13395 gpg: Fix memory leak in sig-check.
13396 + commit b065a696344eac3007dbd5642143ecaaeebab43a
13397 * g10/sig-check.c (check_signature_over_key_or_uid): Remove useless
13398 condition. Actually free when SIGNER was allocated by us.
13400 build: Remove obsolete option from autogen.rc.
13401 + commit 02a5df614a369519ad7781f95dc977e24a0d4277
13402 * autogen.rc: Remove --enable-gpg2-is-gpg.
13404 2017-08-23 Werner Koch <wk@gnupg.org>
13406 gpgconf: Swap "auto-key-retrieve" and "no-auto-key-retrieve".
13407 + commit 565e486b8028f9e3cc51ebc5202666b598042175
13408 * g10/gpg.c (gpgconf_list): Announce "auto-key-retrieve".
13409 (main): Simplify setting of KEYSERVER_AUTO_KEY_RETRIEVE.
13410 * tools/gpgconf-comp.c: Make "no-auto-key-retrieve" invisible. Make
13411 "auto-key-retrieve" an expert option.
13413 tests: Do not run trust-pgp-4.scm.
13414 + commit b917cb66b79597520788cd9264889942247a3377
13415 * tests/openpgp/Makefile.am (XTESTS): Remove test.
13416 (EXTRA_DIST): Add test file.
13418 build: Change SWDB tag "gnupg21" to "gnupg22".
13419 + commit 008ae0bd868cb49ad4d67fc8c71707cd2a162137
13420 * configure.ac (GNUPG_SWDB_TAG): New ac_define. Set it to "gnupg22".
13421 * tools/gpgconf.c (query_swdb): Use it.
13422 * build-aux/speedo.mk: Change tag "gnupg21" to "gnupg22".
13423 * Makefile.am (distcheck-hook): Ditto.
13425 2017-08-23 Åka Sikrom <a4@hush.com>
13427 po: Update Norwegian translation.
13428 + commit fd0e5b60bed1cfc2aed7b2e13cc449f355eac051
13431 2017-08-23 Andre Heinecke <aheinecke@intevation.de>
13433 agent: Fix string translation for Windows.
13434 + commit 6158811304937b592601ef30c29c5a5cdbaa88ea
13435 * agent/agent.h (L_): Define agent_Lunderscore when simple
13438 2017-08-22 NIIBE Yutaka <gniibe@fsij.org>
13440 po: Update Japanese translation.
13441 + commit e6fa6b0ce823effd721c807b2b292287af91c642
13444 2017-08-21 Damien Goutte-Gattat <dgouttegattat@incenp.org>
13446 tests: Add tests for the PGP trust model.
13447 + commit c23a69970ba38edae9d3b2603825d18fbb732423
13448 * tests/openpgp/trust-pgp-1.scm: New file.
13449 * tests/openpgp/trust-pgp-2.scm: New file.
13450 * tests/openpgp/trust-pgp-3.scm: New file.
13451 * tests/openpgp/trust-pgp-4.scm: New file.
13452 * tests/openpgp/trust-pgp/common.scm: New file.
13453 * tests/openpgp/trust-pgp/scenario1.asc: New file.
13454 * tests/openpgp/trust-pgp/scenario2.asc: New file.
13455 * tests/openpgp/trust-pgp/scenario3.asc: New file.
13456 * tests/openpgp/trust-pgp/scenario4.asc: New file.
13457 * tests/openpgp/trust-pgp/alice.sec.asc: New file.
13458 * tests/openpgp/trust-pgp/bobby.sec.asc: New file.
13459 * tests/openpgp/trust-pgp/carol.sec.asc: New file.
13460 * tests/openpgp/trust-pgp/david.sec.asc: New file.
13461 * tests/openpgp/trust-pgp/frank.sec.asc: New file.
13462 * tests/openpgp/trust-pgp/grace.sec.asc: New file.
13463 * tests/openpgp/trust-pgp/heidi.sec.asc: New file.
13464 * tests/openpgp/Makefile.am (XTESTS): Add new tests.
13465 (TEST_FILES): Add new files.
13466 (EXTRA_DIST): Add new common file.
13468 tests: Move some functions into a common module.
13469 + commit cbe54b28bf3610204e12c50c0606df37337a1156
13470 * tests/openpgp/tofu.scm (gettrust): Moved to the common defs.scm
13472 (checktrust): Likewise.
13473 * tests/openpgp/defs.scm (gettrust): New function.
13474 (checktrust): Likewise.
13476 gpgconf: Make WoT settings configurable by gpgconf.
13477 + commit 0161225457e0609509d0d5f4b80a60a1071b4b48
13478 * tools/gpgconf-comp.c (gc_options_gpg): Add max-cert-depth,
13479 completes-needed, and marginals-needed options.
13480 * g10/gpg.c (gpgconf_list): Likewise.
13482 2017-08-21 Justus Winter <justus@g10code.com>
13484 gpgscm: Fix -Wimplicit-fallthrough warnings.
13485 + commit 6e596b2a745ae7a75a69038cf00ab4bbae1cebaa
13486 * tests/gpgscm/scheme.c (CASE): Rearrange so that the case statement
13488 (Eval_Cycle): Improve fallthrough annotations.
13490 2017-08-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13492 gpg: default to --no-auto-key-retrieve.
13493 + commit e6f84116abca2ed49bf14b2e28c3c811a3717227
13494 * g10/gpg.c (main): remove KEYSERVER_AUTO_KEY_RETRIEVE from the
13495 default keyserver options.
13496 * doc/gpg.texi: document this change.
13498 2017-08-10 Justus Winter <justus@g10code.com>
13500 tests: Improve documentation.
13501 + commit 23107ba20f8b4eb5482b480ad6a8af6b39d2bfeb
13502 * tests/openpgp/README: Add quickstart instructions, how to use
13503 shell.scm, remove no longer used MKDATA.
13505 2017-08-09 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
13507 g10: Write status error on error of --quick-revoke-uid.
13508 + commit 977fc5f0eb9fdee19e66bea8cd2eb5414789b485
13509 * g10/keyedit.c (keyedit_quick_revuid): Write status error on error.
13511 2017-08-09 Werner Koch <wk@gnupg.org>
13514 + commit e8ffa9a6ca5d76660b67207cd1157068e48483de
13517 po: Update German translation.
13518 + commit 2059dbf201963c6f229698ae80c6c774b1f686c8
13521 2017-08-08 Werner Koch <wk@gnupg.org>
13523 build: New configure option --enable-all-tests.
13524 + commit fb21aa8b50367e2afa13bad73fc21d6f01a97e18
13525 * configure.ac: New option --enable-all-tests.
13526 * tests/gpgscm/ffi.c (ffi_init): New gloabl var *run-all-tests*.
13527 * tests/openpgp/all-tests.scm (all-tests): Use that var instead
13528 of *maintainer-mode*.
13529 * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add --enable-all-tests.
13531 gpgscm: Make the test summary stand out.
13532 + commit 0bd19dae1161a71053d794e4f75e66f70445f9f0
13533 * tests/gpgscm/tests.scm (test-pool): Add delimiter lines.
13535 sm: Always print the keygrip in colon mode.
13536 + commit 0a8e20c4c639f0c491e2af5ac5fb97005196422b
13537 * sm/keylist.c (list_cert_colon): Always print the keygrip as
13538 described in the manual.
13540 2017-08-08 Justus Winter <justus@g10code.com>
13542 gpg: Add option '--disable-dirmngr'.
13543 + commit c4506f624ed6854aa0ba1629aa2d1d43eb26900d
13544 * doc/gpg.texi: Document new option.
13545 * g10/call-dirmngr.c (create_context): Fail if option is given.
13546 * g10/gpg.c (cmd_and_opt_values): New value.
13547 (opts): New option.
13548 (gpgconf_list): Add new option.
13549 (main): Handle new option.
13550 * g10/options.h (struct opt): New field 'disable_dirmngr'.
13551 * tools/gpgconf-comp.c (gc_options_gpg): New option.
13553 2017-08-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13555 systemd-user: Drop redundant After=*.socket.
13556 + commit 81074c3b0211854a2dc94600dc892224201536f5
13557 * doc/examples/systemd-user/*.service: Drop redundant After=*.socket
13560 systemd-user: Drop RefuseManualStart=true.
13561 + commit 407da18254dfebcacfaee16952ef0b617b1626ea
13562 * doc/examples/systemd-user/*.service: drop RefuseManualStart=true
13564 2017-08-07 Justus Winter <justus@g10code.com>
13566 tests: Do not run all tests unless in maintainer mode.
13567 + commit b0112dbca91e720a4ff622ad0e88d99eba56203a
13568 * configure.ac: Leak the maintainer mode flag into 'config.h'.
13569 * tests/gpgscm/ffi.c: Pass it into the scheme environment.
13570 * tests/openpgp/all-tests.scm: Only run tests against non-default
13571 configurations (keyring, extended-key-format) in maintainer mode.
13573 2017-08-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13576 + commit a611cba142470c52f3303c512f77ae7d195cc41f
13577 * doc/gpg.texi: s/occured/occurred/
13580 + commit f011d8763a009612c858a287cf7cc6a1f1a6d32a
13581 * agent/gpg-agent.c: Correct spelling in comment.
13583 2017-08-05 Werner Koch <wk@gnupg.org>
13585 gpg: Install gpg by default under the name gpg.
13586 + commit a69464b0b6dac88b360a13d3faf19dd7f2a0e02b
13587 * configure.ac: Remove option --enable-gpg2-is-gpg. Add option
13588 --enable-gpg-is-gpg2.
13589 * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Remove
13590 --enable-gpg2-is-gpg.
13592 gpg: gpgconf needs to support the now default --auto-key-retrieve.
13593 + commit 69e97d909d586160cc0631c9a6f4d3f24bb0c682
13594 * tools/gpgconf-comp.c (gc_options_gpg): Re-add "auto-key_retrieve".
13596 2017-08-04 Werner Koch <wk@gnupg.org>
13598 gpg: Fix memory leak in parse_auto_key_locate.
13599 + commit b70e86fd1050fc6da07a177ed142ae9882b4dd0d
13600 * g10/getkey.c (parse_auto_key_locate): Fix freeing of OPTIONS.
13602 tests: Adjust tests for changed --auto-key-locate default.
13603 + commit 0767eada1479c0fa9d4b75781a8c2afb67bdbf90
13604 * tests/openpgp/defs.scm (create-gpghome): Disable new defaults.
13606 gpg: Make --no-auto-key-retrieve gpgconf-igurable.
13607 + commit 9bb13a0e819334681caca38c9074bd7bfc04e45e
13608 * g10/gpg.c (gpgconf_list): Print no-auto-key-retrieve instead of
13610 * tools/gpgconf-comp.c (gc_options_gpg): Replace auto-key-retrieve by
13611 no-auto-key-retrieve and chnage level from invisible to advanced.
13613 gpg: Default to --auto-key-locate "local,wkd" and --auto-key-retrieve.
13614 + commit 7e1fe791d188b078398bf83c9af992cb1bd2a4b3
13615 * g10/gpg.c (main): Add KEYSERVER_AUTO_KEY_RETRIEVE to the default
13616 keyserver options. Set the default for --auto-key-locate to
13617 "local,wkd". Reset that default iff --auto-key-locate has been given
13618 in the option file or in the commandline.
13619 * g10/getkey.c (parse_auto_key_locate): Work on a copy of the arg.
13621 agent: Make --no-grab the default.
13622 + commit 3d78ae4d3de08398fabae5821045a3a1da6dadbe
13623 * agent/gpg-agent.c (oGrab): New const.
13624 (opts): New option --grab. Remove description for --no-grab.
13625 (parse_rereadable_options): Make --no-grab the default.
13626 (finalize_rereadable_options): Allow --grab to override --no-grab.
13627 (main) <gpgconflist>: Add "grab".
13628 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add "grab".
13630 gpg: Avoid double fingerprint printing with import-show.
13631 + commit b54d75fb1dcfa2cebb3a2497b81ffb49acac2056
13632 * g10/import.c (import_one) <IMPORT_SHOW>: Take care of fingerprint
13635 gpg: New import option show-only.
13636 + commit d9fabcc1989d7235ea0294874803295a30f8711b
13637 * g10/options.h (IMPORT_DRY_RUN): New.
13638 * g10/import.c (parse_import_options): Add "show-only".
13639 (import_one): use that as alternative to opt.dry_run.
13641 2017-08-03 Werner Koch <wk@gnupg.org>
13643 wks: Allow gpg-wks-client --supported with just the domain name.
13644 + commit 6cba56d436b56ea5e60042144a8a75a2e80007c8
13645 * tools/gpg-wks-client.c (command_supported): Hack for missing local
13648 2017-08-02 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
13650 g10: Always save standard revocation certificate in file.
13651 + commit dcfb01959802b27869528dda1d9a4f5e79574bb5
13652 * g10/revoke.c (gen_standard_revocation): Set opt.outfile to NULL
13653 temporarily to create certificate in right place.
13655 2017-08-01 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
13657 Revert "g10: Always save standard revocation certificate in file."
13658 + commit 624cd2d0bf6cc6dd1b79654295dc76f5b2d6d70b
13659 This reverts commit ebc65ff459e6c228fb7406e375819a9fe5637abe.
13661 g10: Always save standard revocation certificate in file.
13662 + commit ebc65ff459e6c228fb7406e375819a9fe5637abe
13663 * g10/main.h (open_outfile): New parameter NO_OUTFILE.
13664 * g10/openfile.c (open_outfile): New parameter NO_OUTFILE. If given,
13665 never use opt.outfile.
13666 * g10/revoke.c (create_revocation): If FILENAME is true, also set
13667 NO_OUTFILE to true (for standard revocation certificates).
13668 * g10/dearmor.c, g10/encrypt.c, g10/export.c, g10/revoke.c,
13669 g10/sign.c: Adjust all other callers.
13671 artwork: Add icons.
13672 + commit a8d0b8d2333ddab703d1e346e06c106eeeedfd53
13673 * artwork/icons/index.css: New file.
13674 * artwork/icons/index.html: New file.
13675 * artwork/icons/lock-12.png: New file.
13676 * artwork/icons/lock-128.png: New file.
13677 * artwork/icons/lock-16.png: New file.
13678 * artwork/icons/lock-24.png: New file.
13679 * artwork/icons/lock-256.png: New file.
13680 * artwork/icons/lock-32.png: New file.
13681 * artwork/icons/lock-48.png: New file.
13682 * artwork/icons/lock-64.png: New file.
13683 * artwork/icons/lock-wing-12.png: New file.
13684 * artwork/icons/lock-wing-128.png: New file.
13685 * artwork/icons/lock-wing-16.png: New file.
13686 * artwork/icons/lock-wing-24.png: New file.
13687 * artwork/icons/lock-wing-256.png: New file.
13688 * artwork/icons/lock-wing-32.png: New file.
13689 * artwork/icons/lock-wing-48.png: New file.
13690 * artwork/icons/lock-wing-64.png: New file.
13691 * artwork/icons/lock-wing.svg: New file.
13692 * artwork/icons/lock.svg: New file.
13693 * artwork/icons/wing-12.png: New file.
13694 * artwork/icons/wing-128.png: New file.
13695 * artwork/icons/wing-16.png: New file.
13696 * artwork/icons/wing-24.png: New file.
13697 * artwork/icons/wing-256.png: New file.
13698 * artwork/icons/wing-32.png: New file.
13699 * artwork/icons/wing-48.png: New file.
13700 * artwork/icons/wing-64.png: New file.
13701 * artwork/icons/wing.svg: New file.
13703 2017-08-01 Werner Koch <wk@gnupg.org>
13705 gpg,sm: Error out on compliance mismatch while decrypting.
13706 + commit 4e117f206beb38287ddcd3251fb7baabadfbddbb
13707 * g10/pubkey-enc.c (get_session_key): Bail out if the algo is not
13708 allowed in the current compliance mode.
13709 * sm/decrypt.c (gpgsm_decrypt): Ditto.
13711 2017-08-01 NIIBE Yutaka <gniibe@fsij.org>
13714 + commit fde9a8cc6c849fb21f3e6782dbd5c6bc863357eb
13715 * tools/rfc822parse.c: Fix.
13717 po: Update Japanese translation.
13718 + commit 02b571947b9442604faa7509478cd8577c2c0b9c
13721 2017-07-31 Werner Koch <wk@gnupg.org>
13723 dirmngr,w32: Fix http connection timeout problem.
13724 + commit 482fd5758c1b7e1b33c4cb50656e586a3ae16815
13725 * dirmngr/http.c (connect_with_timeout) [W32]: Take care of EAGAIN.
13727 Explain the "server is older than xxx warning".
13728 + commit 4ad5bc1b6d72483123963c894ee1412b2ceb99b4
13729 * g10/call-agent.c (warn_version_mismatch): Print a note on how to
13730 restart the servers.
13731 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
13732 * sm/call-agent.c (warn_version_mismatch): Ditto.
13733 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
13735 2017-07-28 Werner Koch <wk@gnupg.org>
13738 + commit 7d335ff496b129ee6f33c4ca25bd7a6631a4b590
13741 po: Update German translation.
13742 + commit 339f672dad94b4e0000fd2d3a1f272a4861c91c3
13745 agent: Make --ssh-fingerprint-digest re-readable.
13746 + commit 6c9899bede6ecb2ccf7336d12724090f36a6aa3d
13747 * agent/gpg-agent.c (main): Move oSSHFingerprintDigest to ...
13748 (parse_rereadable_options): here.
13749 (opts): Change its description.
13750 (main) <aGPGConfList>: Include this option.
13751 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add option at expert
13754 gpg,sm: String changes for compliance diagnostics.
13755 + commit efe187e8a2b583defdcd9d4b96e3dc83f95bef0d
13758 agent: For OCB key files return Bad Passprase instead of Checksum Error.
13759 + commit 5cf95157c5db88dd599ac4d48f619782179b1438
13760 * agent/protect.c (do_decryption): Map error checksum to bad
13761 passpharse protection
13763 * agent/call-pinentry.c (unlock_pinentry): Don't munge the error
13764 source for corrupted protection.
13766 gpg: Minor rework for better readibility of get_best_pubkey_byname.
13767 + commit 1c35e29af95c46475f297d2bd70a5f3bd49d45b1
13768 * g10/getkey.c (get_best_pubkey_byname): Change return type to
13769 gpg_error_t. Use var name err instead of rc. Move a
13770 gpg_error_from_syserror closer to the call.
13772 gpg: Fix segv in get_best_pubkey_byname.
13773 + commit 6496dc1f9d2aef3bf8cf950da2434c96f7a0145c
13774 * g10/getkey.c (get_best_pubkey_byname): Init NEW.
13776 agent: Minor cleanup (mostly for documentation).
13777 + commit 5516ef47a22dfdf9cdf56107f34d2bda9e46deec
13778 * agent/command.c (cmd_pksign): Change var name 'rc' to 'err'.
13779 * agent/findkey.c (read_key_file): Ditto. Change return type to
13780 gpg_error_t. On es_fessk failure return a correct error code.
13781 (agent_key_from_file): Change var name 'rc' to 'err'.
13782 * agent/pksign.c (agent_pksign_do): Ditto. Change return type to
13783 gpg_error_t. Return a valid erro code on malloc failure.
13784 (agent_pksign): Ditto. Change return type to gpg_error_t. replace
13785 xmalloc by xtrymalloc.
13786 * agent/protect.c (calculate_mic): Change return type to gpg_error_t.
13787 (do_decryption): Ditto. Do not init RC.
13788 (merge_lists): Change return type to gpg_error_t.
13789 (agent_unprotect): Ditto.
13790 (agent_get_shadow_info): Ditto.
13792 2017-07-27 Werner Koch <wk@gnupg.org>
13794 gpg: Tweak compliance checking for verification.
13795 + commit 6502bb0d2af5784918ebb74242fff6f0a72844bf
13796 * common/compliance.c (gnupg_pk_is_allowed): Rework to always allow
13798 * g10/mainproc.c (check_sig_and_print): Print a con-compliant warning.
13799 * g10/sig-check.c (check_signature2): Use log_error instead of
13802 gpg,sm: Allow encryption (with warning) to any key in de-vs mode.
13803 + commit 1bd22a85b4f06324037b3500d2fa8af62733c926
13804 * g10/encrypt.c (encrypt_crypt): Do not abort for a non-compliant key.
13805 * sm/encrypt.c (gpgsm_encrypt): Ditto.
13807 gpg,sm: Fix compliance checking for decryption.
13808 + commit a0d0cbee7654ad7582400efaa92d493cd8e669e9
13809 * common/compliance.c (gnupg_pk_is_compliant): Remove the Elgamal
13810 signing check. We don't support Elgamal signing at all.
13811 (gnupg_pk_is_allowed) <de-vs>: Revert encryption/decryption for RSA.
13812 Check the curvenames for ECDH.
13813 * g10/pubkey-enc.c (get_session_key): Print only a warning if the key
13815 * sm/decrypt.c (gpgsm_decrypt): Ditto. Use the same string as in gpg
13816 so that we have only one translation.
13818 gpg: Avoid output to the tty during import.
13819 + commit fcb62fe20f45290bf95703ec3bf4d0b361fa4339
13820 * g10/key-check.c (key_check_all_keysigs): Add arg mode and change all
13821 output calls to use it.
13822 * g10/keyedit.c (keyedit_print_one_sig): Add arg fp and chnage all
13823 output calls to use it.
13824 (keyedit_menu): Adjust for changes.
13825 * g10/gpgcompose.c (keyedit_print_one_sig): Add dummy arg fp.
13826 * g10/import.c (import_one): Call key_check_all_keysigs with output to
13829 2017-07-26 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
13831 g10: Make sure exactly one fingerprint is output with --quick-gen-key.
13832 + commit 94eea0ed2c8b47cb0fe02b22cbe668705a5fe0d0
13833 * g10/keygen.c (do_generate_keypair): Only set fpr in
13834 list_keyblock_direct invocation if neither --fingerprint nor
13835 --with-fingerprints are given.
13837 2017-07-26 Werner Koch <wk@gnupg.org>
13839 doc: Add man pages form gpg-wks-server and gpg-wks-client.
13840 + commit be636c3cfca178927b09ef4154c3e555d6f5b1c4
13841 * doc/wks.texi: New.
13842 * doc/gnupg.texi: Include wks.texi.
13843 * doc/Makefile.am (gnupg_TEXINFOS): Add wks.texi.
13844 (myman_pages): Add new man pages.
13846 wks: Fix program names in the usage diagnostics.
13847 + commit c76398da5b15df2086f68bc26b7fde75219976c7
13848 * tools/gpg-wks-client.c (my_strusage): Add case 12.
13849 * tools/gpg-wks-server.c (my_strusage): Add case 12:
13851 2017-07-26 Andre Heinecke <aheinecke@intevation.de>
13853 doc: Update vsnfd profile example.
13854 + commit 4f569c69075fddbaea588544a6625c28cb4cb8f4
13855 * doc/examples/vsnfd.prf: Use rsa3072
13857 2017-07-26 Werner Koch <wk@gnupg.org>
13859 dirmngr: Do not use a blocking connect in Tor mode.
13860 + commit c5e5748480952e5bcedb16f6ce6ef7e435acb3c7
13861 * dirmngr/http.c (http_raw_connect): Disable the timeout in Tor mode.
13862 (send_request): Ditto.
13864 dirmngr: Auto-enable Tor on startup or reload.
13865 + commit fd68bdb61ec4f8441da6d3023a8da4315df54cec
13866 * dirmngr/dirmngr.c (dirmngr_use_tor): Test for Tor availibility.
13868 agent,dirmngr: Check for homedir removal also using stat(2).
13869 + commit d50c2eff8d6931586c527edb3dea98dbc6facdec
13870 * agent/gpg-agent.c (have_homedir_inotify): New var.
13871 (reliable_homedir_inotify): New var.
13872 (main): Set reliable_homedir_inotify.
13873 (handle_tick): Call stat on the homedir.
13874 (handle_connections): Mark availibility of the inotify watch.
13875 * dirmngr/dirmngr.c (handle_tick): Call stat on the homedir.
13876 (TIMERTICK_INTERVAL_SHUTDOWN): New.
13877 (handle_connections): Depend tick interval on the shutdown state.
13879 agent: Lengthen timertick interval on Unix to 4 seconds.
13880 + commit f4ec7697a9c2d7587794d3bd75efbb0b51d6562f
13881 * agent/gpg-agent.c (TIMERTICK_INTERVAL): Same value for Windows and
13884 2017-07-25 Werner Koch <wk@gnupg.org>
13886 common: Strip trailing slashes from the homedir.
13887 + commit 24c7aa0d58e3768690dd8ebef0e8e01af7e80f83
13888 * common/homedir.c (default_homedir): Strip trailing slashes.
13889 (gnupg_set_homedir): Ditto.
13891 w32: Also change the directory on daemon startup.
13892 + commit 0ef50340ef68b2541d9a1aafa71f5400aef4dc7e
13893 * agent/gpg-agent.c (main): Always to the chdir.
13894 * dirmngr/dirmngr.c (main): Ditto.
13895 * scd/scdaemon.c (main): Ditto.
13897 common: New functions gnupg_daemon_rootdir and gnupg_chdir.
13898 + commit 226f143ca01cf335c7c4e3e94c96fb9d271eccc9
13899 * common/sysutils.c (gnupg_chdir): New.
13900 * common/homedir.c (gnupg_daemon_rootdir): New.
13901 * agent/gpg-agent.c (main): Use these functions instead chdir("/").
13902 * dirmngr/dirmngr.c (main): Ditto.
13903 * scd/scdaemon.c (main): Ditto.
13905 gpg: Update key origin info during import merge.
13906 + commit 166d0d7a2439f30c0a250faadc16ce3453447d71
13907 * g10/import.c (update_key_origin): New.
13908 (merge_blocks): Add arg curtime.
13909 (import_one): Pass curtime to merge_blocks. Call update_key_origin.
13911 gpg: Store key origin for new userids during import merge.
13912 + commit 84c993d9325fc000acac7950b2dfeefa5976df3b
13913 * g10/import.c (apply_meta_data): Rename to ...
13914 (insert_key_origin): this. Factor code out to ...
13915 (insert_key_origin_pk, insert_key_origin_uid): new funcs.
13916 (import_one): Move insert_key_origin behind clean_key.
13917 (merge_blocks): Add args options, origin, and url.
13918 (append_uid): Rename to ...
13919 (append_new_uid): this. Add args options, curtime, origin, and url.
13920 Call insert_key_origin_uid for new UIDs.
13922 2017-07-25 NIIBE Yutaka <gniibe@fsij.org>
13924 dirmngr: Add annotation for fallthrough.
13925 + commit d40b4a41a8d60292fd4b5b951a19883e31090179
13926 * dirmngr/dns.c: Add /* FALL THROUGH */ to clarify.
13928 2017-07-24 Werner Koch <wk@gnupg.org>
13930 gpg: Extend --key-origin to take an optional URL arg.
13931 + commit 87b5421ca84bbea68217c9ed771ee8c0a98a4d0c
13932 * g10/getkey.c (parse_key_origin): Parse appended URL.
13933 * g10/options.h (struct opt): Add field 'key_origin_url'.
13934 * g10/gpg.c (main) <aImport>: Pass that option to import_keys.
13935 * g10/import.c (apply_meta_data): Extend for file and url.
13936 * g10/keyserver.c (keyserver_fetch): Pass the url to
13937 import_keys_es_stream.
13939 gpg: Store key origin info for new keys from a keyserver.
13940 + commit 2ca0381d077d766593db26f4215b8eddee8d7963
13941 * g10/keyserver.c (keyserver_get_chunk): Use KEYORG_KS if request was
13942 done by fingerprint.
13943 * g10/import.c (apply_meta_data): Implement that.
13945 gpg: Store key origin info for new DANE and WKD retrieved keys.
13946 + commit e7068bf92ec5ca5d440346d43a382c1f625b924d
13947 * g10/import.c (apply_meta_data): Remove arg 'merge'. Add arg 'url'.
13948 Implement WKD and DANE key origin.
13949 (import_keys_internal): Add arg 'url' and change all callers.
13950 (import_keys_es_stream): Ditto.
13952 (import_one): Ditto.
13953 * g10/keylist.c (list_keyblock_print): Fix update URL printing.
13954 * g10/call-dirmngr.c (gpg_dirmngr_wkd_get): Add arg 'r_url' to return
13955 the SOURCE. Pass ks_status_cb to assuan_transact.
13956 * g10/keyserver.c (keyserver_import_wkd): Get that URL and pass it to
13957 the import function.
13959 gpg: Filter keys received via DANE.
13960 + commit f6f0dd4d5ea85e0b16e96d7678b1d508182049a8
13961 * g10/keyserver.c (keyserver_import_cert): Use an import filter in
13964 dirmngr: Print a SOURCE status for WKD requests.
13965 + commit e97548223948222a5c22acdf3775c7f93c1e17a9
13966 * dirmngr/server.c (cmd_wkd_get): Print a SOURCE status.
13968 dirmngr: New function dirmngr_status_printf.
13969 + commit 9b88cfa0962f28894658cff8777fe7a217c6f700
13970 * dirmngr/server.c (dirmngr_status_printf): New.
13972 2017-07-24 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
13974 g10: Make sure to emit NEED_PASSPHRASE on --import of secret key.
13975 + commit 872137b5921dd297e7d2c1def6e3868b7595feb5
13976 * call-agent.h (agent_import_key): Add keyid parameters.
13977 * call-agent.c (agent_import_key): Set keyid parameters.
13978 * import.c (transfer_secret_keys): Pass keyid parameters.
13980 w32: Change directory on daemon startup.
13981 + commit 78ebc62604d77600b9865950610717d28c6027a2
13982 * agent/gpg-agent.c [HAVE_W32_SYSTEM]: Include <direct.h>.
13983 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
13984 * dirmngr/dirmngr.c [HAVE_W32_SYSTEM]: Include <direct.h>.
13985 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
13986 * scd/scdaemon.c [HAVE_W32_SYSTEM]: Include <direct.h>.
13987 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
13989 g10: Make sure to emit NEED_PASSPHRASE on --export-secret-key.
13990 + commit d8e46f10698da0bee4cd58d95f1f9832bdda0c5f
13991 * call-agent.h (agent_export_key): Add keyid parameters.
13992 * call-agent.c (agent_export_key): Set keyid parameters.
13993 * export.c (receive_seckey_from_agent): Pass keyid parameters.
13995 2017-07-24 NIIBE Yutaka <gniibe@fsij.org>
13997 scd: Use unsigned int for fields.
13998 + commit 45e40487fb7bb51228c96c8966e38c643a9b9ba5
13999 * scd/app-openpgp.c (data_objects): Use unsigned ints.
14001 dirmngr: More minor fix.
14002 + commit ade4b2744c848e07b87afa4f186256c2a2ef1d13
14003 * dirmngr/http.c (send_request): Care the case of !USE_TLS.
14005 dirmngr: More minor fixes.
14006 + commit 789401e9557db13422f47a8c09e693f3cee0132b
14007 * dirmngr/http.c (http_verify_server_credentials): Duplicated const.
14008 * dirmngr/ldap.c (parse_one_pattern): Add comment.
14010 dirmngr: Minor fix for Windows.
14011 + commit 274602820cfbb15c7cdb4525acd9793bdb472e78
14012 * dirmngr/http.c (connect_with_timeout): Use FD2INT.
14014 agent: Minor fix for Windows.
14015 + commit 328fca187253c069e3630bd387a71f6d16e9820a
14016 * agent/command-ssh.c (serve_mmapped_ssh_request): Add const
14019 2017-07-21 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14021 g10: Avoid caching passphrase for failed symmetric encryption.
14022 + commit e4c720fa3b31ebd3e9d764c6eab02729cf06124c
14023 * g10/mainproc.c (proc_encrypted): If error code is GPG_ERR_CIPHER_ALGO,
14024 assume the symmetric passphrase was wrong and invalidate the cache.
14026 2017-07-21 Werner Koch <wk@gnupg.org>
14028 gpg: Extend --quick-set-expire to allow subkey expiration setting.
14029 + commit b55b72bb815ad5870456b89c3a011fa00991b4a8
14030 * g10/keyedit.c (keyedit_quick_set_expire): Add new arg subkeyfprs.
14031 (menu_expire): Rename arg force_mainkey to unattended and allow
14032 unattended changing of subkey expiration.
14033 * g10/gpg.c (main): Extend --quick-set-expire.
14035 gpg: Fix possible double free of the card serialno.
14036 + commit e888f7af6571ecd3994fd55cc18c9e2df7fd0c60
14037 * g10/free-packet.c (copy_public_key): Copy fields serialno and
14040 gpg: Use macros to check the signature class.
14041 + commit 5818ff0ae314af08548fcc23df2b807736144a00
14042 * g10/import.c: Use the extistin macros for better readability.
14044 2017-07-21 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14046 g10: Clean keyblock on initial commit.
14047 + commit 609bbdf3614fbadeba7a6cbdfdf5004b23516a64
14048 * g10/import.c (import_one): If option import-clean is set,
14049 also clean on initial import, not only for merge.
14051 2017-07-21 NIIBE Yutaka <gniibe@fsij.org>
14053 scd: Fix SEGV in CCID driver.
14054 + commit d8a55da715ce8447b0686f321fa43d00be34a467
14055 * scd/ccid-driver.c (intr_cb): Only kick the loop for removal.
14056 (bulk_in): Don't set POWERED_OFF when interrupt transfer is enabled.
14058 g10: Don't limit at the frontend side for card capability.
14059 + commit a76b6cf9709c0a2a89fa2887075491b80f3d9608
14060 * g10/card-util.c (MAX_GET_DATA_FROM_FILE): New.
14061 (get_data_from_file): Use MAX_GET_DATA_FROM_FILE.
14062 (change_url, change_login, change_private_do): Don't limit.
14064 scd: Add debug message for v3 card.
14065 + commit 892e86b0dc69193ddff018bf9b3938509dd72cb3
14066 * scd/app-openpgp.c (show_caps): Output more messages.
14068 2017-07-20 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14070 doc: Clarify wording of export-attributes.
14071 + commit cea4313644b531ef87b8c8e4bfddde4388cbbe0d
14072 * doc/gpg.texi: Clarify wording of export-attributes.
14074 2017-07-20 Werner Koch <wk@gnupg.org>
14076 gpg: New option --with-key-origin.
14077 + commit 165cdd8121bbf80bfe2da071539d3578630f198f
14078 * g10/getkey.c (parse_key_origin): Factor list out as ...
14079 (key_origin_list): new struct.
14080 (key_origin_string): New.
14081 * g10/gpg.c (oWithKeyOrigin): New const.
14082 (opts): New option --with-key-origin.
14083 (main): Implement option.
14084 * g10/options.h (struct opt): New flag with_key_origin.
14085 * g10/keylist.c (list_keyblock_print): Print key origin info.
14086 (list_keyblock_colon): Ditto.
14088 common: New function print_utf9_string.
14089 + commit bddc2e04f1ddc18be20efc0f0508be401b345f42
14090 * common/miscellaneous.c (print_utf8_string): New.
14092 gpg: Make function mk_datestr public.
14093 + commit 3ee314dde16d1d69ddf840cdb8b5aa186c592262
14094 * g10/keydb.h (MK_DATESTR_SIZE): New.
14095 * g10/keyid.c (mk_datestr): Make public. Add arg bufsize and use
14096 snprintf. Change arg atime to u32.
14097 (datestr_from_pk): Simplify.
14098 (datestr_from_sig): Ditto.
14099 (expirestr_from_pk): Ditto.
14100 (expirestr_from_sig): Ditto.
14101 (revokestr_from_pk): Ditto.
14103 2017-07-20 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14105 g10: Return proper error when gpg-agent fails to start during probe.
14106 + commit 9998b162b47931fb8a8ed961d53418d505358888
14107 * g10/getkey.c (lookup): Return immediately on any other error than
14108 GPG_ERR_NO_SECKEY from agent_probe_any_secret_key.
14110 2017-07-20 NIIBE Yutaka <gniibe@fsij.org>
14112 scd: Support longer data length for special DOs for v3 card.
14113 + commit 69614d55018ddb8678d8904a52e648931f480d72
14114 * scd/app-openpgp.c (data_objects): Special DOs like "Login Data",
14115 "URL", "Private DO N" can be longer size >= 256.
14116 (struct app_local_s): Define bits for v3 card.
14117 (get_cached_data): Use extcap.max_special_do for special DOs.
14118 (app_select_openpgp): Detect if extcap_v3, kdf_do, and other bits.
14120 common: logstream fix.
14121 + commit 84146b3ec44943f06c66a603de19094b930ad446
14122 * common/logging.c (set_file_fd): Don't close es_stderr.
14124 dnsmngr: Fix use of CPP.
14125 + commit cc12cf386b620e658fa93a0bd40477bc16d85d98
14126 * dirmngr/dns.c (HAVE_STATIC_ASSERT, HAVE___ATOMIC_FETCH_ADD)
14127 (DNS_HAVE_SOCKADDR_UN, HAVE_SOCK_NONBLOCK): Don't use defined
14128 to be expanded for expression evaluation.
14130 2017-07-19 Justus Winter <justus@g10code.com>
14132 dirmngr: Forbid redirects from .onion to clearnet URIs.
14133 + commit e7fc6e3bf0eb6ffe53e1f099d28ce45cef4a8a87
14134 * dirmngr/ks-engine-hkp.c (send_request): Forbid redirects from .onion
14136 * dirmngr/ks-engine-http.c (ks_http_fetch): Likewise.
14138 2017-07-19 Werner Koch <wk@gnupg.org>
14140 gpg: Avoid asking by fpr and then by keyid during auto-key-retrieve.
14141 + commit 2e5459457473eb4b3e7b2b14815cb94faa66e8bb
14142 * g10/mainproc.c (check_sig_and_print): Track key server request via
14145 2017-07-19 Justus Winter <justus@g10code.com>
14147 dirmngr: Implement TLS over http proxies.
14148 + commit da91d2106a17c796ddb066a34db92d33b21c81f7
14149 * dirmngr/http.c (send_request): If a http proxy is to be used, and we
14150 want to use TLS, try to use the CONNECT method to get a connection to
14153 dirmngr: Log http response in debug mode.
14154 + commit e7eabe66b6409c1f5225b751ea5c2d456a3856e6
14155 * dirmngr/http.c (parse_response): Log http response in debug mode.
14157 dirmngr: Amend TLS handling.
14158 + commit 1ba220e68149fdb197accf4a15b0a11126c8b431
14159 * dirmngr/http.c (http_wait_response): Get the 'use_tls' flag from the
14160 write cookie, not from the URI.
14162 dirmngr: Fix connecting to http proxies.
14163 + commit 46a4a0c0e77e19f9589088bb87357c33142c3f04
14164 * dirmngr/http.c (send_request): Do not use the 'srvtag' intended for
14165 the target host to connect to the http proxy.
14167 dirmngr: Fix handling of proxy URIs.
14168 + commit 73d4781e4595634548269bafe46aeb7674c5b219
14169 * dirmngr/http.c (send_request): We do not support socks4.
14171 2017-07-19 NIIBE Yutaka <gniibe@fsij.org>
14173 gpgconf: Make vars read-only explicitly.
14174 + commit 99791184ac4c7486ccdefc150b9921cd923428b9
14175 * tools/gpgconf-comp.c (gc_backend, gc_arg_type, gc_level, gc_flag)
14176 (gc_component): Add const qualifier.
14178 Fix usage of ARGPARSE_OPTS.
14179 + commit fa63db89f9581186ed758c502d4e69914b774157
14180 * agent/gpg-agent.c, agent/preset-passphrase.c,
14181 dirmngr/dirmngr-client.c, dirmngr/dirmngr_ldap.c, kbx/kbxutil.c,
14182 tools/gpg-check-pattern.c, tools/gpgconf.c, tools/gpgsplit.c,
14183 tools/symcryptrun.c: Use ARGPARSE_end.
14185 2017-07-18 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14187 common: Allow abbreviations of standard options.
14188 + commit f17862d47d184d7f6ef883778cf63801365599a0
14189 * argparse.h (ARGPARSE_SHORTOPT_HELP, ARGPARSE_SHORTOPT_VERSION,
14190 ARGPARSE_SHORTOPT_WARRANTY, ARGPARSE_SHORTOPT_DUMP_OPTIONS): New
14192 (ARGPARSE_end): Add some placeholders for standard options.
14193 * argparse.c (arg_parse): Fill in missing standard options so
14194 default machinery works. Check for standard options in new way.
14195 Do not write out standard options for --dump-options.
14197 2017-07-18 Justus Winter <justus@g10code.com>
14199 gpgscm,w32: Fix testing for absolute paths.
14200 + commit 2e1342b78b020f5b28359b08a4f63cf11479602f
14201 * tests/gpgscm/main.c (path_absolute_p): New function.
14202 (load): Use new function.
14204 dirmngr: Honor http keyserver URLs.
14205 + commit b231959728a0056094134e0fca8cc916c24ef37e
14206 * dirmngr/http.c (parse_uri): Keep an unmodified copy of the URI.
14207 * dirmngr/http.h (struct parsed_uri_s): New field 'original'.
14208 * dirmngr/ks-action.c (ks_action_get): Properly handle http and https
14211 dirmngr: Fix memory leak.
14212 + commit ebb35ed7110d1a29061dfb4ccb9038645b20d7f4
14213 * dirmngr/http.c (parse_uri): Properly free partial results.
14215 dirmngr: Fix memory leak.
14216 + commit 3d670fa973a03ea88b5f9459b3222a951136dd7a
14217 * dirmngr/http.c (http_release_parsed_uri): Free 'params'.
14219 2017-07-17 Werner Koch <wk@gnupg.org>
14221 gpg,sm: Check compliance of the RNG.
14222 + commit a149afe338d61d86985c533cde5e7dbcd31e8698
14223 * common/compliance.c (gnupg_rng_is_compliant): New.
14224 * g10/call-agent.c (start_agent) [W32]: Check rng compliance.
14225 * sm/call-agent.c (start_agent) [W32]: Ditto.
14226 * g10/encrypt.c (encrypt_simple, encrypt_crypt): Check that the RNG is
14228 * sm/encrypt.c (gpgsm_encrypt): Ditto.
14229 * g10/sign.c (do_sign): Ditto.
14230 * sm/sign.c (gpgsm_sign): Ditto.
14232 agent: New GETINFO sub-command jent_active.
14233 + commit bbbd0db34b4e387f8dc089fb7d69fdcf2ed91a01
14234 * agent/command.c (cmd_getinfo): Implement it for gcrypt >= 1.8.
14236 common: New function split_fields_colon.
14237 + commit 849467870ee1c10e0a7b1e89cfc9e8214e4963fe
14238 * common/stringhelp.c (split_fields_colon): New.
14239 * common/t-stringhelp.c (test_split_fields_colon): New test.
14240 (main): Call that test.
14242 2017-07-14 Justus Winter <justus@g10code.com>
14244 tests: Improve 'shell.scm' script.
14245 + commit 58eafd11ed5501c0b72fcb553eb3e097ad29b3c6
14246 * tests/openpgp/defs.scm (create-file): Unlink file first.
14247 * tests/openpgp/shell.scm: Ask whether to import legacy test keys or
14248 not, and whether to drop 'batch' from the configuration. Add paths to
14249 all the programs to 'PATH'.
14251 gpgscm: Library improvements.
14252 + commit b4d25082fd4502ec01d511c22fecd60d513b81f4
14253 * tests/gpgscm/repl.scm (prompt-yes-no?): New function.
14254 * tests/gpgscm/tests.scm (pathsep-split): Likewise.
14255 (pathsep-join): Likewise.
14256 (with-path): Use the new function.
14258 gpgscm: Fail early if the test setup fails.
14259 + commit 7a6e6ad2880bbff54a75ff608d0ec97d6c405733
14260 * tests/gpgscm/tests.scm (make-environment-cache): Check status code
14263 gpg: Fix importing keys.
14264 + commit 956da89193370d5aa970cff5b77f605534481a02
14265 * g10/import.c (import_one): Fix error handling.
14267 2017-07-13 Werner Koch <wk@gnupg.org>
14269 gpg: Pass key origin values to import functions.
14270 + commit 330212efb927c119bb5135856f8582c0e4e2e6b7
14271 * g10/import.c (import_keys_stream): Remove this unused function.
14272 (import_keys_internal): Add arg origin.
14273 (import_keys): Ditto.
14274 (import_keys_es_stream): Ditto.
14276 (import_one): Ditto.
14277 (apply_meta_data): New stub.
14278 (import_secret_one): Pass 0 for ORIGIN.
14279 * g10/keyserver.c (keyserver_get_chunk): For now pass 0 for ORIGIN.
14280 (keyserver_fetch): Add arg origin.
14281 (keyserver_import_cert): Pass KEYORG_DANE for ORIGIN.
14282 (keyserver_import_wkd): Pass KEYORG_WKD for ORIGIN.
14283 * g10/gpg.c (main): Pass OPT.KEY_ORIGIN to import_keys and
14285 * g10/card-util.c (fetch_url): Pass KEYORG_URL for ORIGIN.
14287 gpg: New option --key-origin.
14288 + commit fa1155e89ebb4b16ee95549b8ab72672df3a0c54
14289 * g10/keydb.h (KEYORG_): Rename to KEYORG_.
14290 * g10/packet.h (PKT_user_id): Rename field keysrc to keyorg. Adjust
14292 (PKT_public_key): Ditto.
14293 (PKT_ring_trust): Ditto.
14294 * g10/options.h (struct opt): Add field key_origin.
14295 * g10/getkey.c (parse_key_origin): New.
14296 * g10/gpg.c (oKeyOrigin): New.
14297 (opts): Add "keys-origin".
14298 (main): Set option.
14300 2017-07-13 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14302 doc: Document gnupg version requirement for gpg-preset-passphrase.
14303 + commit 877a321d011deb3e8501aa9cc5e9f9cd0b19dddf
14306 2017-07-13 Justus Winter <justus@g10code.com>
14308 gpgscm: Make loading of modules less verbose.
14309 + commit f78fe1a4ec9d343199e1f424dd09e2937c913412
14310 * tests/gpgscm/main.c (load): Increase logging threshold.
14312 gpgscm: Make it impossible to catch '*interpreter-exit*'.
14313 + commit bce02a8b0f0e51775a4ee5536ccf35efc1f15ca6
14314 * tests/gpgscm/init.scm (throw'): Make it impossible to catch
14315 '*interpreter-exit*'. This fixes 'exit' (and with it 'fail') inside
14316 'catch' statements.
14318 2017-07-10 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14320 tofu: Compare squares instead of square roots.
14321 + commit d24594976686983c7186cbe4e78153888a13b6e4
14322 * g10/Makefile.am (tofu_source) [USE_TOFU]: Remove sqrtu32.h and
14324 * g10/sqrtu32.h, g10/sqrtu32.c: Removed files.
14325 * g10/tofu.c: Compare squares instead of square roots.
14327 speedo: Provide a vagrantfile to test speedo in an isolated VM.
14328 + commit 1455b406e63dd262938e49da5f83c05c17c60a8d
14329 * build-aux/Vagrantfile: New file.
14331 2017-07-06 Neal H. Walfield <neal@g10code.com>
14333 doc: Improve TOFU documentation.
14334 + commit 243b2a570c30586e19b8c88e43b282d62d8eb77c
14335 * doc/gpg.texi: Improve TOFU documentation.
14337 2017-07-05 Werner Koch <wk@gnupg.org>
14339 agent: Use MAX_PASSPHRASE_LEN (255) also for the loopback.
14340 + commit 3681ee7dc1e9d8c94fdb046d7be0bbcfeba1cfe9
14341 * agent/call-pinentry.c (agent_get_passphrase): Reduce maximum
14342 passphrase length as conveyed to the loopback to MAX_PASSPHRASE_LEN.
14343 * agent/genkey.c (agent_ask_new_passphrase): Extend the maximum
14344 passphrase as conveyed to the loopback to MAX_PASSPHRASE_LEN.
14346 doc: Update yat2m to take care of SOURCE_DATE_EPOCH.
14347 + commit 139de02b93773615bdd95e04a7f0c1ad73b4f6fb
14348 * doc/yat2m.c (main): Set a default for OPT_DATE.
14350 doc: Prefer an installed version of yat2m.
14351 + commit f6faa058749846de18cb34f1cc79867bb0029922
14352 * configure.ac (YAT2M): Check for tool.
14353 * doc/Makefile.am (yat2m-stamp): Use installed tool if possible.
14355 2017-07-01 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14357 doc: Document obsolete option in gpgsm. Closes T2231.
14358 + commit 7fb724c61655c6f75c61572d65a46e21ae112574
14359 * doc/gpgsm.texi: Mark --prefer-system-dirmngr as obsolete.
14361 2017-06-28 Werner Koch <wk@gnupg.org>
14363 agent: Fix option --debug-wait.
14364 + commit ecd6c0160f49ae83001dfd150df6b1238fc479d5
14365 * agent/gpg-agent.c (opts): Typo fix.
14367 2017-06-26 Justus Winter <justus@g10code.com>
14369 agent: Support unprotected ssh keys.
14370 + commit 273964798592cd479c111f47e8ce46d5b1999d6a
14371 * agent/command-ssh.c (ssh_key_to_protected_buffer): If the empty
14372 passphrase is supplied, do not protect the key.
14374 tests: Improve test.
14375 + commit b49b1a87ac2695e3892fb001878da59fbc92fa37
14376 * tests/openpgp/ssh-export.scm: Split output at any whitespace.
14378 2017-06-23 Werner Koch <wk@gnupg.org>
14380 agent: Shutdown on removal of the home directory.
14381 + commit 1ead1ca818bddabc3bca22c195be667993eb3e2e
14382 * common/sysutils.c (gnupg_inotify_watch_delete_self): New.
14383 * agent/gpg-agent.c (handle_connections): Rename my_inotify_fd to
14385 (handle_connections): Add home_inotify_fd to watch the home directory.
14387 build: Add missing LIBASSUAN_CFLAGS to dirmngr/.
14388 + commit 815ecdf08a4285c75892cf9ab72feb13f3bcf590
14389 * dirmngr/Makefile.am (t_http_CFLAGS): Add LIBASSUAN_CFLAGS.
14390 (t_ldap_parse_uri_CFLAGS): Ditto.
14391 (t_dns_stuff_CFLAGS): Ditto.
14393 gpg,gpgsm: Emit status code ENCRYPTION_COMPLIANCE_MODE.
14394 + commit f31dc2540acf7cd7f09fd94658e815822222bfcb
14395 * common/status.h (STATUS_ENCRYPTION_COMPLIANCE_MODE): New.
14396 * g10/encrypt.c (encrypt_crypt): Emit new status code.
14397 * sm/encrypt.c (gpgsm_encrypt): Ditto.
14399 2017-06-21 Justus Winter <justus@g10code.com>
14401 gpg: Close cached keydb handle in gpgv.
14402 + commit a68a98233ab83f0c7b90e6e588b882085fe59d91
14403 * g10/gpgv.c (main): Close cached handle.
14405 tests: Add test for gpgv.
14406 + commit 62274d3c309d8948405c2f966bef507638b4d5c6
14407 * tests/openpgp/Makefile.am (XTESTS): Add the new test.
14408 * tests/openpgp/gpgv.scm: New file.
14409 * tests/openpgp/signed-messages.scm: Likewise.
14410 * tests/openpgp/verify.scm: Move the signed messages to the new file
14413 gpg: Fix printing keyserver URLs and notation data.
14414 + commit 890a3a70f2e1340d90c7f499358467979b182719
14415 * g10/keylist.c (show_keyserver_url): Print to 'fp', not to 'stdout'.
14416 (show_notation): Likewise.
14418 2017-06-20 Justus Winter <justus@g10code.com>
14420 dirmngr: Properly handle SRV records.
14421 + commit 48aae8167dcae80d43b08167a88d9eb170781a04
14422 * dirmngr/ks-engine-hkp.c (enum ks_protocol): New type.
14423 (struct hostinfo_s): New flags indicating whether we already did a
14424 A lookup, or a SRV lookup per protocol. Turn 'port' into an array.
14425 (create_new_hostinfo): Initialize new fields.
14426 (add_host): Update the port for the given protocol.
14427 (map_host): Simplify hosttable lookup misses. Check the SRV records
14428 for both protocols on demand, do the A lookup just once. Return the
14431 dirmngr: Refactor variable-sized array code.
14432 + commit fc4834d213af031b456c49c1ba5b5ef8873d1f18
14433 * dirmngr/ks-engine-hkp.c (struct hostinfo_s): Add explicit length and
14435 (MAX_POOL_SIZE): New macro.
14436 (create_new_hostinfo): Initialize new fields.
14437 (host_in_pool_p): Adapt.
14438 (select_random_host): Likewise.
14439 (add_host): Likewise. Move the resizing logic here.
14440 (hostinfo_sort_pool): New function.
14441 (map_host): Simplify. Move the resizing logic away from here.
14442 (ks_hkp_mark_host): Adapt.
14443 (ks_hkp_print_hosttable): Likewise.
14445 gpg: Fix error handling.
14446 + commit badc1cdae52bd434e5fac2e4275575afeccc2837
14447 * g10/keygen.c (generate_subkeypair): Handle errors from pinentry.
14449 2017-06-19 Werner Koch <wk@gnupg.org>
14451 gpg,gpgsm: Fix compliance check for DSA and avoid an assert.
14452 + commit 3621dbe52584bc8b417f61b5370ebaa5598db956
14453 * common/compliance.c (gnupg_pk_is_compliant): Swap P and Q for DSA
14454 check. Explicitly check for allowed ECC algos.
14455 (gnupg_pk_is_allowed): Swap P and Q for DSA check.
14456 * g10/mainproc.c (proc_encrypted): Simplify SYMKEYS check. Replace
14457 assert by debug message.
14459 2017-06-19 Justus Winter <justus@g10code.com>
14461 gpgscm: Limit the number of parallel jobs.
14462 + commit 61ef43546ba9f0209692a1569d2f033436566a02
14463 * ffi.c (do_wait_processes): Suppress the timeout error.
14464 * tests.scm (semaphore): New definition.
14465 (test-pool): Only run a bounded number of tests in parallel.
14466 (test::started?): New function.
14467 (run-tests-parallel): Do not report results, do not start the tests.
14468 (run-tests-sequential): Adapt.
14469 (run-tests): Parse the number of parallel jobs.
14471 gpgscm: Improve option parsing.
14472 + commit e555e7ed7de20fbbb1e3b005c32e292f29cc4a58
14473 * tests/gpgscm/tests.scm (flag): Accept arguments of the form
14476 gpgscm: Improve error handling of foreign functions.
14477 + commit 6639aedaee051e8104d7f63b9a5812abf79440ed
14478 * tests/gpgscm/ffi.scm (ffi-fail): Do not needlessly join the error
14481 gpgscm: Improve error reporting.
14482 + commit 4c8be58fd46bb16332e84ab8ce978087dc5c68a3
14483 * tests/gpgscm/init.scm (throw'): Guard against 'args' being atomic.
14484 * tests/gpgscm/scheme.c (Eval_Cycle): Remove any superfluous colons in
14487 tests: Run the OpenPGP tests using the new extended key format.
14488 + commit b766d3d1034e6068a91755ada68f7f7dbe2943b6
14489 * tests/openpgp/all-tests.scm: Generalize a bit, and also add a
14490 variant that uses the new extended key format.
14491 * tests/openpgp/defs.scm (create-gpghome): Conditionally enable the
14492 new extended key format.
14494 2017-06-19 Werner Koch <wk@gnupg.org>
14496 Change license of some files to LGPLv2.1.
14497 + commit 3419a339d9c4e800bf30e9021e05982d8c1021c1
14498 * COPYING.LIB: Rename to COPYING.LGPL3.
14499 * COPYING.LGPL21: New.
14500 * COPYING.GPL2: New.
14501 * Makefile.am: Distribute them.
14502 * AUTHORS: Update license pointers. Add BSI as copyright holder.
14503 * common/compliance.c, common/compliance.h: Add BSI copyright notice.
14504 Break overlong lines.
14505 * dirmngr/loadswdb.c: Add BSI copyright notices.
14506 * dirmngr/server.c: Ditto.
14507 * tools/call-dirmngr.c: Change license to LGPLv2.1. Add BSI
14509 * tools/call-dirmngr.h: Ditto.
14510 * tools/gpg-wks-client.c: Ditto.
14511 * tools/gpg-wks-server.c: Ditto.
14512 * tools/gpg-wks.h: Ditto.
14513 * tools/mime-maker.c: Ditto.
14514 * tools/mime-maker.h: Ditto.
14515 * tools/mime-parser.c: Ditto.
14516 * tools/mime-parser.h: Ditto.
14517 * tools/send-mail.c: Ditto.
14518 * tools/send-mail.h: Ditto.
14519 * tools/wks-receive.c: Ditto.
14520 * tools/wks-util.c: Ditto.
14521 * tools/rfc822parse.c, tools/rfc822parse.h: Change license to LGPLv2.1.
14523 2017-06-19 Justus Winter <justus@g10code.com>
14525 gpg: Disable compliance module for other GnuPG components.
14526 + commit 6e23416fe61d4130918f2d1bf6e1f98d102c4610
14527 * common/compliance.c (gnupg_{pk,cipher,digest}_is_compliant): Return
14528 false if the module is not initialized.
14529 (gnupg_{pk,cipher,digest}_is_allowed): Return true if the module is
14531 (gnupg_status_compliance_flag): Do not assert that the module is
14533 (gnupg_parse_compliance_option): Likewise.
14534 (gnupg_compliance_option_string): Likewise.
14536 2017-06-14 Justus Winter <justus@g10code.com>
14538 gpg: Check and fix keys on import.
14539 + commit 9b12b45aa5e67d4d422bf75a3879df1d52dbe67f
14540 * doc/gpg.texi: Document the new import option.
14541 * g10/gpg.c (main): Make the new option default to yes.
14542 * g10/import.c (parse_import_options): Parse the new option.
14543 (import_one): Act on the new option.
14544 * g10/options.h (IMPORT_REPAIR_KEYS): New macro.
14546 gpg: Refactor key checking and fixing.
14547 + commit 404fa8211b6188a0abe83ef43a4b44d528c0b035
14548 * g10/Makefile.am (gpg_sources): Add new files.
14549 * g10/gpgcompose.c (keyedit_print_one_sig): New stub.
14550 * g10/keyedit.c (sig_comparison): Move to new module.
14551 (check_all_keysigs): Likewise.
14552 (fix_keyblock): Adapt callsite.
14553 (keyedit_menu): Likewise.
14554 * g10/key-check.c: New file.
14555 * g10/key-check.h: Likewise.
14557 2017-06-13 Justus Winter <justus@g10code.com>
14559 gpg: Refactor keyedit module.
14560 + commit 8095d16b3ef6b5f01ec351824855708149f1c1c3
14561 * g10/Makefile.am (gpg_SOURCES): Add new file.
14562 * g10/keyedit.c (NODFLG_*): Move flags to the new header file.
14563 (print_one_sig): Export symbol and rename accordingly.
14564 (print_and_check_one_sig): Adapt accordingly.
14565 (check_all_keysigs): Likewise.
14566 * g10/keyedit.h: New file.
14567 * g10/main.h: Drop declarations, include new header.
14569 dirmngr: Implement querying nameservers over IPv6.
14570 + commit 15d2a009931f44a60b9df6325f837add208459d6
14571 * dirmngr/dns.c (dns_so_check): Reinitialize sockets on address family
14573 (enum dns_res_state): New states for querying over IPv6.
14574 (dns_res_exec): Implement the new states by copying and modifying the
14575 IPv4 variants. Branch to their respective counterparts if the current
14576 list of resolvers using the current address family is exhausted.
14578 2017-06-13 Werner Koch <wk@gnupg.org>
14580 gpg: Disable keydb handle caching only for W32.
14581 + commit e80925171ddb20c7e76c1db88c15ce2d9b09db86
14582 * g10/getkey.c (getkey_end) [!W32]: Re-enable caching.
14584 common: Fix -Wswitch warning.
14585 + commit 7c91b48f0e80266cf7491c2bb7d8aabc12362643
14586 * common/compliance.c (gnupg_digest_is_allowed): Don't include
14587 GCRY_MD_WHIRLPOOL because it is not a digest_algo_t.
14589 2017-06-11 Neal H. Walfield <neal@g10code.com>
14591 gpg: Send gpgcompose --help output to stdout, not stderr.
14592 + commit 7aeac20f12ed257d3d159b304afeeac7f406c9d2
14593 * g10/gpgcompose.c (show_help): Send gpgcompose --help output to
14594 stdout, not stderr.
14596 gpg: Improve some output of gpgcompose.
14597 + commit cb0484e0762a1ce05d00d949f4b70162e2f7b82c
14600 gpg: Support 'gpgcompose --encrypted-pop --help'
14601 + commit 4ddf4e114c8df06d89144e857b7601de0b7e5a7c
14602 * g10/gpgcompose.c (encrypted_pop_options): New variable.
14603 (encrypted_pop): Support the --help option.
14605 gpg: Remove dead code.
14606 + commit 8a9066865688cf17594b2bdde4b260b0ef36d68e
14607 * g10/gpgcompose.c (filter_pop): F->PKTTYPE will never be
14609 (encrypted_pop): Likewise and there is no option --encrypted-mdc-pop.
14611 2017-06-08 Marcus Brinkmann <mb@g10code.com>
14613 artwork: Add new banner.
14614 + commit bc5503b2bf273b51d5dc59617e596f1cfb742fbc
14615 * artwork/banner/banner-full.png: New file.
14616 * artwork/banner/banner-rectangle.png: New file.
14617 * artwork/banner/banner.svg: New file.
14618 * artwork/banner/Bungee-Regular.ttf: New file.
14619 * artwork/banner/Raleway-license.txt: New file.
14620 * artwork/banner/banner-half.png: New file.
14621 * artwork/banner/banner-skyscraper.png: New file.
14622 * artwork/banner/Bungee-license.txt: New file.
14623 * artwork/banner/Raleway-ExtraBold.ttf: New file.
14624 * artwork/banner/Raleway-SemiBold.ttf: New file.
14626 2017-06-08 Justus Winter <justus@g10code.com>
14628 common,gpg,sm: Restrict the use of algorithms according to CO_DE_VS.
14629 + commit a64a55e10420cf11e00062b590dffe5d0c3e8192
14630 * common/compliance.c (gnupg_pk_is_allowed): New function.
14631 (gnupg_cipher_is_allowed): Likewise.
14632 (gnupg_digest_is_allowed): Likewise.
14633 * common/compliance.h (enum pk_use_case): New definition.
14634 (gnupg_pk_is_allowed): New prototype.
14635 (gnupg_cipher_is_allowed): Likewise.
14636 (gnupg_digest_is_allowed): Likewise.
14637 * g10/decrypt-data.c (decrypt_data): Restrict use of algorithms using
14638 the new predicates.
14639 * g10/encrypt.c (encrypt_crypt): Likewise.
14640 * g10/gpg.c (main): Likewise.
14641 * g10/pubkey-enc.c (get_session_key): Likewise.
14642 * g10/sig-check.c (check_signature2): Likewise.
14643 * g10/sign.c (do_sign): Likewise.
14644 * sm/decrypt.c (gpgsm_decrypt): Likewise.
14645 * sm/encrypt.c (gpgsm_encrypt): Likewise.
14646 * sm/gpgsm.c (main): Likewise.
14647 * sm/sign.c (gpgsm_sign): Likewise.
14648 * sm/verify.c (gpgsm_verify): Likewise.
14650 gpg: Fix computation of compliance with CO_DE_VS.
14651 + commit b03fab09e188f7bb10237d4f20455e4026737e4e
14652 * g10/mainproc.c (proc_encrypted): Symmetric encryption is also in
14653 compliance with CO_DE_VS.
14655 2017-06-08 Werner Koch <wk@gnupg.org>
14657 dirmngr: Implement HTTP connect timeouts of 15 or 2 seconds.
14658 + commit 9b43220b8ad1a5c1cd51de3bbfff7ccbcc3fa877
14659 * dirmngr/dirmngr.c (oConnectTimeout, oConnectQuickTimeout): New
14661 (opts): New options --connect-timeout and --connect-quick-timeout.
14662 (DEFAULT_CONNECT_TIMEOUT): New.
14663 (DEFAULT_CONNECT_QUICK_TIMEOUT): New.
14664 (parse_rereadable_options): Handle new options.
14665 (post_option_parsing): New. Use instead of direct calls to
14666 set_debug() and set_tor_mode ().
14667 (main): Setup default timeouts.
14668 (dirmngr_init_default_ctrl): Set standard connect timeout.
14669 * dirmngr/dirmngr.h (opt): New fields connect_timeout and
14670 connect_quick_timeout.
14671 (server_control_s): New field timeout.
14672 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass timeout to
14674 * dirmngr/ks-engine-hkp.c (send_request): Call
14675 http_session_set_timeout.
14676 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
14677 * dirmngr/server.c (cmd_wkd_get, cmd_ks_search, cmd_ks_get)
14678 (cmd_ks_fetch): Implement --quick option.
14680 dirmngr: Allow a timeout for HTTP and other TCP connects.
14681 + commit 5b9025cfa1f9b1c67ddf2f6bf87d863e780cf157
14682 * dirmngr/http.c: Include fcntl.h.
14683 (http_session_s): Add field 'connect_timeout'.
14684 (http_session_new): Clear that.
14685 (http_session_set_timeout): New function.
14686 (my_wsagetlasterror) [W32]: New.
14687 (connect_with_timeout): New function.
14688 (connect_server): Add arg 'timeout' and call connect_with_timeout.
14689 (send_request): Add arg 'timeout' and pass it to connect_server.
14690 (http_raw_connect): Add arg 'timeout'.
14691 (http_open): Pass TIMEOUT from the session to connect_server.
14693 gpg: Avoid failure exit when scdaemon is disabled but not needed.
14694 + commit 17e5afd80f247c356f03c71e8b61da424ffedabb
14695 * g10/call-agent.c (warn_version_mismatch): Use log_info if error is
14698 2017-06-07 Justus Winter <justus@g10code.com>
14700 common: Add cipher mode to compliance predicate.
14701 + commit e051e396156211449568afa0ca7505dc13eaa3b4
14702 * common/compliance.c (gnupg_cipher_is_compliant): Add mode parameter.
14703 * common/compliance.h (gnupg_cipher_is_compliant): Likewise.
14704 * g10/mainproc.c (proc_encrypted): Adapt callsite.
14705 * sm/decrypt.c (gpgsm_decrypt): Likewise.
14707 common,gpg,sm: Initialize compliance module.
14708 + commit 21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb
14709 * common/compliance.c (gnupg_initialize_compliance): New function.
14710 * common/compliance.h (gnupg_initialize_compliance): New prototype.
14711 * g10/gpg.c (main): Use the new function.
14712 * sm/gpgsm.c (main): Likewise.
14714 common,gpg: Move the compliance option printer.
14715 + commit f440cf73eab0b0e75e3cb2e8c9e70a77f20ef1dc
14716 * common/compliance.c (gnupg_compliance_option_string): New function.
14717 * common/compliance.h (gnupg_compliance_option_string): New prototype.
14718 * g10/encrypt.c (write_pubkey_enc_from_list): Update callsite.
14719 * g10/gpg.c (main): Likewise.
14720 * g10/keyedit.c (keyedit_menu): Likewise.
14721 * g10/pkclist.c (build_pk_list): Likewise.
14722 * g10/main.h (compliance_option_string): Remove prototype.
14723 * g10/misc.c (compliance_option_string): Remove function.
14725 common,gpg,sm: Move the compliance option parser.
14726 + commit 842d233d408457cfa9a8473a6748472956f44e84
14727 * common/compliance.c (gnupg_parse_compliance_option): New function.
14728 * common/compliance.h (struct gnupg_compliance_option): New type.
14729 (gnupg_parse_compliance_option): New prototype.
14730 * g10/gpg.c (parse_compliance_option): Remove function.
14731 (compliance_options): New variable.
14732 (main): Adapt callsite.
14733 * sm/gpgsm.c (main): Use the new common function.
14734 * sm/gpgsm.h (opt): New field 'compliance'.
14736 gpg: Improve compliance with CO_DE_VS.
14737 + commit 027ce4ba37be1d052bca2f6109fe810ef57f4038
14738 * g10/gpg.c (set_compliance_option): The specification, section 4.1.1,
14739 forbids the use of encryption without integrity protection.
14741 2017-06-07 Andre Heinecke <aheinecke@intevation.de>
14743 speedo: Fix a minor memleak in the installer.
14744 + commit 13dc75a4e7cc2959003c08940fc53c6ece7b77e4
14745 * build-aux/speedo/w32/g4wihelp.c (path_remove): Free path_new on
14748 2017-06-06 Andre Heinecke <aheinecke@intevation.de>
14750 speedo: Fix source tar call ambiguity.
14751 + commit 96acbdd7265f504d06783adfd6322a6675c41c0a
14752 * build-aux/speedo.mk (dist-source): Expand exclude-vc to
14755 2017-06-01 Justus Winter <justus@g10code.com>
14757 gpg: Report compliance with CO_DE_VS.
14758 + commit be8ca8852629786266db4d3d69b2c2fb03bd6365
14759 * common/compliance.c (gnupg_pk_is_compliant): Add DSA with certain
14761 (gnupg_cipher_is_compliant): New function.
14762 (gnupg_digest_is_compliant): Likewise.
14763 * common/compliance.h (gnupg_cipher_is_compliant): New prototype.
14764 (gnupg_digest_is_compliant): Likewise.
14765 * common/status.h (STATUS_DECRYPTION_COMPLIANCE_MODE): New status.
14766 (STATUS_VERIFICATION_COMPLIANCE_MODE): Likewise.
14767 * doc/DETAILS: Document the new status lines.
14768 * g10/mainproc.c (proc_encrypted): Compute compliance with CO_DE_VS
14769 and report that using the new status line.
14770 (check_sig_and_print): Likewise.
14771 * sm/decrypt.c (gpgsm_decrypt): Likewise.
14772 * sm/verify.c (gpgsm_verify): Likewise.
14774 common: Improve checking for compliance with CO_DE_VS.
14775 + commit 3b70f62423041e614332b90d782576ee6868a030
14776 * common/compliance.c (gnupg_pk_is_compliant): Only certain RSA key
14777 sizes are compliant.
14779 gpg,common: Move the compliance framework.
14780 + commit 8a012280e0f0a462c094d106355aa436fceb1b76
14781 * common/Makefile.am (common_sources): Add new files.
14782 * common/compliance.c: New file. Move 'gnupg_pk_is_compliant' here,
14783 and tweak it to not rely on types private to gpg.
14784 * common/compliance.h: New file. Move the compliance enum here.
14785 * g10/keylist.c (print_compliance_flags): Adapt callsite.
14786 * g10/main.h (gnupg_pk_is_compliant): Remove prototype.
14787 * g10/misc.c (gnupg_pk_is_compliant): Remove function.
14788 * g10/options.h (opt): Use the new compliance enum.
14789 * sm/keylist.c (print_compliance_flags): Use the common functions.
14791 2017-05-31 Justus Winter <justus@g10code.com>
14793 gpg: Fix compliance computation.
14794 + commit 02af509dfc2b893720aa0c7b380fd7736b2bafd0
14795 * g10/misc.c (gnupg_pk_is_compliant): Compare against CO_RFC2440, not
14796 RFC2440 which is actually a predicate.
14799 + commit f9cb15b385f64f7c9403670f03632f81a874f213
14800 * sm/verify.c (gpgsm_verify): Simplify by using a newer gcrypt
14803 doc: Improve documentation.
14804 + commit 485b5a6e6dfe7aa545afa926e060d516ae911e42
14805 * doc/gpgsm.texi: Mention that '--with-key-data' implies
14808 2017-05-31 NIIBE Yutaka <gniibe@fsij.org>
14810 agent: Fix error from do_encryption.
14811 + commit c03e0eb01dc4632432d0472a6f8051142082bea4
14812 * agent/protect.c (do_encryption): Don't mask failure of OUTBUF
14815 scd: Fix error code on failure at usb_init.
14816 + commit 8defb21d34410d000c8b776e0e3a1edd04762638
14817 * scd/ccid-driver.c (ccid_dev_scan): Return GPG_ERR_ENODEV.
14819 scd: Handle a failure of libusb_init.
14820 + commit 5c33649782bf255af5a55f16eac5e85f059b00bf
14821 * scd/ccid-driver.c (ccid_get_reader_list, ccid_dev_scan): Handle
14824 2017-05-30 Andre Heinecke <aheinecke@intevation.de>
14826 gpg: Disable keydb handle caching.
14827 + commit d3d640b9cc98dd0d06b49a2e4d46eb67af96fe29
14828 * g10/getkey.c (getkey_end): Disable caching of the open keydb
14831 2017-05-30 NIIBE Yutaka <gniibe@fsij.org>
14833 agent: Fix memory leaks.
14834 + commit 996544626ea416c173a940db47f47f9e5cbd844c
14835 * agent/divert-scd.c (ask_for_card): Free WANT_KID and WANT_SN_DISP.
14836 * agent/gpg-agent.c (create_server_socket): Free UNADDR.
14838 2017-05-25 Werner Koch <wk@gnupg.org>
14840 dirmngr: This towel should better detect a changed resolv.conf.
14841 + commit de3a0988ef9addccd6b5c7950fb8797afbc3978d
14842 * dirmngr/dns-stuff.c (resolv_conf_changed_p): Fix initialization time
14845 dirmngr: Re-init libdns resolver on towel change of resolv.conf.
14846 + commit b5f356e9fba2d99909f8f54d7b7e6836bed87b68
14847 * dirmngr/dns-stuff.c: Include sys/stat.h.
14848 (RESOLV_CONF_NAME): New macro to replace a string.
14849 (resolv_conf_changed_p): New.
14850 (libdns_init): Call new function
14851 (libdns_res_open): Ditto.
14853 2017-05-24 Justus Winter <justus@g10code.com>
14855 agent: Make digest algorithms for ssh fingerprints configurable.
14856 + commit 525f2c482abb6bc2002eb878b03558fb43e6b004
14857 * agent/agent.h (opt): New field 'ssh_fingerprint_digest'.
14858 * agent/command-ssh.c (data_sign, ssh_identity_register): Honor the
14859 option for strings used to communicate with the user.
14860 * agent/findkey.c (agent_modify_description): Likewise.
14861 * agent/gpg-agent.c (cmd_and_opt_values): New value.
14862 (opts): New option '--ssh-fingerprint-digest'.
14863 (parse_rereadable_options): Set the default to MD5 for now.
14864 (main): Handle the new option.
14865 * doc/gpg-agent.texi: Document the new option.
14867 agent: Write both ssh fingerprints to 'sshcontrol' file.
14868 + commit a5f046d99a084b6a95268f03c1b588e8b78083cb
14869 * agent/command-ssh.c (add_control_entry): Hand in the key, write both
14870 the MD5- and the SHA256-based fingerprint to the 'sshcontrol' file
14871 when adding ssh keys.
14872 (ssh_identity_register): Adapt callsite.
14874 common: Correctly render SHA256-based ssh fingerprints.
14875 + commit 3a07a69dfc87b4fff610740d3dde8e23f0d2f8bc
14876 * common/ssh-utils.c (dummy_realloc): New function.
14877 (dummy_free): Likewise.
14878 (get_fingerprint): Prepend the fingerprint with the name of the digest
14879 algorithm. Correctly render SHA256-based ssh fingerprints.
14880 * common/t-ssh-utils.c (sample_keys): Add SHA256 hashes for the keys.
14881 (main): Add an option to dump the keys to gather fingerprints, also
14882 print the SHA256 fingerprint for keys given as arguments, and check
14883 the SHA256 fingerprints of the test keys.
14885 common: Support different digest algorithms for ssh fingerprints.
14886 + commit 3ac1a9d3a018816233a855faff059b4e0657a0f1
14887 * common/ssh-utils.c (get_fingerprint): Add and honor 'algo' parameter.
14888 (ssh_get_fingerprint{,_string}): Likewise.
14889 * common/ssh-utils.h (ssh_get_fingerprint{,_string}): Update prototypes.
14890 * common/t-ssh-utils.c (main): Adapt accordingly.
14891 * agent/command-ssh.c (agent_raw_key_from_file): Likewise.
14892 (ssh_identity_register): Likewise.
14893 * agent/command.c (do_one_keyinfo): Likewise.
14894 * agent/findkey.c (modify_description): Likewise.
14896 2017-05-22 NIIBE Yutaka <gniibe@fsij.org>
14898 agent: Add const qualifier for read-only table.
14899 + commit 509e4a4d7491daf496b21e5892f4f63ab90e8e21
14900 * agent/call-pinentry.c (start_pinentry): Add const to tbl.
14901 * agent/command-ssh.c (request_specs): Add const.
14902 (ssh_key_types): Likewise.
14903 (request_spec_lookup): Add const to the return value and SPEC.
14904 (ssh_request_process): Likewise.
14905 * agent/protect.c (protect_info): Add const.
14906 (agent_unprotect): Add const to algotable.
14908 g10: Fix default-key selection for signing, possibly by card.
14909 + commit fbb2259d22e6c6eadc2af722bdc52922da348677
14910 * g10/call-agent.c (warn_version_mismatch): Revert.
14911 (start_agent): Suppress version mismatch if relevant.
14912 * g10/getkey.c (get_seckey_default_or_card): New.
14913 * g10/skclist.c (build_sk_list): Use get_seckey_default_or_card.
14915 2017-05-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14917 doc: Fix spellings.
14918 + commit 3713f67026467f63f80649c92ac4cc7973589855
14921 docs: Point to https://dev.gnupg.org/ .
14922 + commit 705da1eb23aef92c42d6d657b20a0984b104f72f
14923 Replace mentions of bugs.gnupg.org with https://dev.gnupg.org/. Since
14924 the project has transitioned to a better workflow for supporting
14925 contributions, we should ensure that our documentation points to the
14928 2017-05-17 Justus Winter <justus@g10code.com>
14930 gpgscm: Fix checking for opcode arguments.
14931 + commit aae50e0b6a61549e226e0c7785260ad517f0ffff
14932 * tests/gpgscm/scheme.c (Eval_Cycle): Update 'pcd' after dispatching
14935 tests: Fix agent teardown in release builds.
14936 + commit 0e1729bb993648deca84a2664ae78edc848d7003
14937 * tests/openpgp/defs.scm (start-agent,stop-agent): Use gpg-conf which
14938 will properly use the '--build-prefix' argument to make gpgconf use
14939 tools from the build directory.
14941 2017-05-17 NIIBE Yutaka <gniibe@fsij.org>
14943 g10: Fix gpgcompose.c.
14944 + commit ae95a7f5335e605fcd71fbe4a18ed384c88d590a
14945 * g10/gpgcompose.c (show_help): Check return value.
14947 g10: Suppress error for card availability check.
14948 + commit a8dd96826f8484c0ae93c954035b95c2a75c80f2
14949 * g10/call-agent.c (start_agent): Add semantics for card; Suppress
14950 error for card check.
14951 (warn_version_mismatch): Ignore an error for scdaemon.
14952 (agent_scd_serialno): Call start_agent with
14953 FLAG_FOR_CARD_SUPPRESS_ERRORS.
14955 2017-05-16 Justus Winter <justus@g10code.com>
14957 tests: Configure the environments to use scdaemon from build tree.
14958 + commit 386a7bbb245dd3ab7c4156a554adbe75d82bdf49
14959 * tests/gpgme/gpgme-defs.scm: Use the scdaemon from the build tree
14960 when writing a 'gpg-agent.conf'.
14961 * tests/gpgsm/gpgsm-defs.scm: Likewise.
14962 * tests/openpgp/defs.scm: Likewise.
14964 2017-05-15 Werner Koch <wk@gnupg.org>
14967 + commit 9574820329128f0ea8a98f9bfc0e77c73c3e0ec0
14970 po: Update German translation.
14971 + commit 4bd079dbdb44067688377156413dd32a82a89d22
14974 gpg: Do not mark ", " translatable.
14975 + commit 2d381b0f0ba97657e9fb2971eca6648bb77dd2cc
14976 * g10/tofu.c (ask_about_binding): Remove useless translation markers.
14978 2017-05-15 Andre Heinecke <aheinecke@intevation.de>
14980 dirmngr,w32: Fix ldap crl read on windows.
14981 + commit abe3a9043f86b48b92ddcec47197e032e35a6f4f
14983 * dirmngr/ldap-wrapper-ce.c (outstream_cookie_s): Add buffer_read_pos.
14984 (buffer_get_data): Use seperate read pos.
14986 2017-05-15 Werner Koch <wk@gnupg.org>
14988 common: Let format_text return an error.
14989 + commit 00b7767bc6fe309aa20375c859ebf708cfc7b9ea
14990 * common/stringhelp.c (format_text): Return NULL on error.
14991 * common/t-stringhelp.c (test_format_text): Adjust for change.
14992 * g10/gpgcompose.c (show_help): Abort on out of core.
14993 * g10/tofu.c (ask_about_binding): Abort on format_text error.
14994 (show_statistics): Ditto.
14995 (show_warning): Ditto.
14997 2017-05-11 Justus Winter <justus@g10code.com>
14999 tests: Also run all OpenPGP tests using keyrings.
15000 + commit bc01d62dc5d520e138499df5d80fb50f9e87e3e8
15001 * tests/openpgp/all-tests.scm: Run each test twice, once with public
15002 keys stored in a keybox, once with a keyring.
15003 * tests/openpgp/defs.scm (create-gpghome): Create a public keyring to
15004 make GnuPG use that instead of creating a keybox if '--use-keyring' is
15006 * tests/openpgp/setup.scm: Fix flag handling and usage.
15008 tests: Make it possible to run all tests using our infrastructure.
15009 + commit f4365790daa1d1400c7f0fe73ac9a6d25f0c6d0a
15010 * Makefile.am (TESTS_ENVIRONMENT): New variable.
15011 (check-all): New phony target to run all tests.
15012 * tests/gpgme/gpgme-defs.scm (have-gpgme?): New function that tests
15013 whether the GPGME test suite is available instead of exiting the
15015 * tests/gpgscm/init.scm (export): New macro.
15016 * tests/gpgscm/tests.scm (run-tests): New function.
15017 (load-tests): Likewise.
15018 * tests/gpgme/run-tests.scm: Simplify and move the parsing of the list
15019 of tests to 'all-tests.scm'.
15020 * tests/gpgsm/run-tests.scm: Likewise.
15021 * tests/migrations/run-tests.scm: Likewise.
15022 * tests/openpgp/run-tests.scm: Likewise.
15023 * tests/gpgme/Makefile.am: To select the tests to run, use the
15024 variable 'TESTS'. This harmonizes the interface with the automake
15026 * tests/gpgsm/Makefile.am: Likewise.
15027 * tests/migrations/Makefile.am: Likewise.
15028 * tests/openpgp/Makefile.am: Likewise.
15029 * tests/openpgp/README: Likewise.
15030 * agent/all-tests.scm: New file.
15031 * common/all-tests.scm: Likewise.
15032 * g10/all-tests.scm: Likewise.
15033 * g13/all-tests.scm: Likewise.
15034 * tests/gpgme/all-tests.scm: Likewise.
15035 * tests/gpgsm/all-tests.scm: Likewise.
15036 * tests/migrations/all-tests.scm: Likewise.
15037 * tests/openpgp/all-tests.scm: Likewise.
15038 * tests/run-tests.scm: Likewise.
15040 tests: Move the makefile parser.
15041 + commit 78d6a25a2db22ad2ae30d57ca980c0400cfef726
15042 * tests/gpgme/gpgme-defs.scm (parse-makefile, parse-makefile-expand):
15044 * tests/gpgscm/makefile.scm: ... here.
15045 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add new file.
15047 gpgscm: Make it possible to set the logfile name.
15048 + commit 29ef34cc4cb23e7b743dbf4cc8e5761f06076b9a
15049 * tests/gpgscm/tests.scm (test): Only set the default log filename
15050 when it has not been set before.
15052 2017-05-10 NIIBE Yutaka <gniibe@fsij.org>
15054 g10, sm, dirmngr, common: Add comment for fall through.
15055 + commit 0ce94a9698104d9bfc73d5a37478189564c96eb4
15056 * common/b64dec.c (b64dec_proc): Comment to clarify.
15057 * dirmngr/cdblib.c (cdb_make_put): Use same pattern to clarify.
15058 * dirmngr/dirmngr-client.c (read_pem_certificate): Likewise.
15059 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Likewise.
15060 * g10/armor.c (unarmor_pump): Likewise.
15061 * g10/gpg.c (main): Likewise.
15062 * g10/import.c (read_block): Likewise.
15063 * g10/keygen.c (make_backsig): Likewise.
15064 * g10/pkclist.c (check_signatures_trust): Likewise.
15065 * sm/gpgsm.c (main): Likewise.
15067 g10: Stop compiler warning for t-stutter.
15068 + commit 98b759119c81c5b39f34f8a9a7b6a57e91ad6470
15069 * g10/t-stutter.c (do_test): Refer current_test_group_failed.
15071 2017-05-08 Justus Winter <justus@g10code.com>
15073 gpg: Properly account for ring trust packets.
15074 + commit 22739433e98be80e46fe7d01d52a9627c1aebaae
15075 * g10/keyring.c (keyring_get_keyblock): Use the parser's packet count
15076 instead of counting ourself.
15077 * g10/packet.h (struct parse_packet_ctx_s): New field
15078 'n_parsed_packets'.
15079 (init_parse_packet): Initialize new field.
15080 * g10/parse-packet.c (parse): Count packets.
15082 2017-05-04 Justus Winter <justus@g10code.com>
15084 tests: Support tests that are expected to fail.
15085 + commit d6b46462f8c5c705ffb7cf8af03465a926aa11d3
15086 * tests/gpgscm/tests.scm (test-pool): Rework reporting. Filter using
15087 the computed test status instead of the return value. Also print the
15088 new categories 'failed expectedly' and 'passed unexpectedly'.
15089 (test): If a test ends with a bang (!), it is expected to fail. Adapt
15090 status, status-string, and xml accordingly.
15092 tests: Add function to dump packets.
15093 + commit eab0138e3179f247180a639a91570e5ee2c6ad0e
15094 * tests/openpgp/defs.scm (gpg-dump-packets): New function.
15096 2017-05-03 Andre Heinecke <aheinecke@intevation.de>
15098 speedo,w32: Fix silent user mode installation.
15099 + commit d378cc34a8d3d5053cf0c5ac7aa731c1bcefee22
15100 * build-aux/speedo/w32/inst.nsi (AddToPath): Move account
15102 (PrintNonAdminWarning): Remove is_user_install variable.
15104 2017-05-03 Justus Winter <justus@g10code.com>
15106 gpgscm: Create and re-use frame objects.
15107 + commit 8a168a6d4052ec31fed77c79bb96ffdd32bf9646
15108 * tests/gpgscm/scheme-private.h (struct scheme): New field
15110 * tests/gpgscm/scheme.c (enum scheme_types): New type 'T_FRAME'.
15111 (type_to_string): Handle new type.
15112 (settype): New macro.
15113 (gc_disable): Make sure there is at least one frame in the free list.
15114 (mark): Handle frame objects.
15115 (finalize_cell): Likewise.
15116 (dump_stack_initialize): Initialize free list.
15117 (dump_stack_free): Simplify.
15118 (frame_length): New variable.
15119 (dump_stack_make_frame): New function.
15120 (frame_slots): Likewise.
15121 (frame_payload): New macro.
15122 (dump_stack_allocate_frame): New function.
15123 (dump_stack_deallocate_frame): Likewise.
15124 (dump_stack_preallocate_frame): Likewise.
15125 (_s_return): Unpack frame object and deallocate it.
15126 (s_save): Wrap state in an frame object.
15127 (dump_stack_mark): Mark the free list.
15129 gpgscm: Merge opexe_0.
15130 + commit 9c6407d17e0cb9f4a370b1b83e7816577ec7d29d
15131 * tests/gpgscm/scheme-private.h (struct scheme): Remove field 'op'.
15132 * tests/gpgscm/scheme.c (opexe_0): Inline into 'Eval_Cycle'.
15133 (_Error_1): Return the opcode to evaluate next.
15134 (Error_1): Do not return, but set the opcode and goto dispatch.
15135 (Error_0): Likewise.
15136 (s_goto): Likewise.
15137 (s_return): Likewise.
15138 (s_return_enable_gc): Likewise.
15139 (s_thread_to): Remove superfluous cast.
15140 (_s_return): Return the opcode to evaluate next.
15141 (scheme_init_custom_alloc): Adapt to removal of field 'op'.
15143 2017-05-03 Andre Heinecke <aheinecke@intevation.de>
15145 speedo,w32: Allow installation as normal user.
15146 + commit cacfd4bce94704b531f68ee76fb40789e44fde67
15147 * build-aux/speedo/w32/g4wihelp.c (ENV_HK_USER, ENV_REG_USER):
15149 (path_add): Handle is_user_install variable. Don't abort
15150 if Path reg key does not exist. Fix crash if Path reg key
15151 does not contain a semicolon.
15152 (path_remove): Handle is_user_install variable. Fix crash
15153 if Path reg key does not exist.
15154 * build-aux/speedo/w32/inst.nsi: Remove obsolete HAVE_STARTMENU
15155 this was double guarded with WITH_GUI. Add Multiuser plugin and
15156 defines for this. Use SHCTX instead of HKLM / HKCU.
15157 (PrintNonAdminWarning): Only Warn and don't abort.
15159 2017-05-02 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15161 g10: Remove skeleton options files.
15162 + commit 201f86803017c1db373023f7b506d4a0dc644bbc
15163 * build-aux/speed/w32/inst.nsi: stop installing skeleton files.
15164 * doc/gpg.texi: stop documenting skeleton files.
15165 * g10/Makefile.am: stop installing skeleton files.
15166 * g10/openfile.c (copy_options_file): Remove.
15167 (try_make_homedir): do not call copy_options_file.
15169 2017-04-27 NIIBE Yutaka <gniibe@fsij.org>
15171 g10: For signing, prefer available card key when no -u option.
15172 + commit 97a2394ecafaa6f58e4a1f70ecfd04408dc15606
15173 * g10/skclist.c (build_sk_list): Ask gpg-agent if card is available.
15174 Then, use the card key if any.
15176 2017-04-26 NIIBE Yutaka <gniibe@fsij.org>
15178 g10: Minor clean up.
15179 + commit 2262a80c5f44433a08bc0e21b77d9efe51596f21
15180 * g10/main.h (complete_sig): Remove declaration.
15181 * g10/sign.c (complete_sig): Make it static.
15183 2017-04-25 NIIBE Yutaka <gniibe@fsij.org>
15186 dirmngr: Fix aliasing problem in dns.c.
15187 + commit 247932f367f856e7ce91528e14f0aaf838150857
15188 * dirmngr/dns.c (dns_ai_setent): Care about aliasing.
15190 2017-04-25 NIIBE Yutaka <gniibe@fsij.org>
15192 tests: Remove *.conf.tmpl from Makefile.
15193 + commit 7851d73fd7f424f9a649690e1cb3055feb792c51
15194 * tests/openpgp/Makefile.am (TEST_FILES): Remove gpg.conf.tmpl
15195 and gpg-agent.conf.tmpl.
15197 g10: invalidate the fd cache for keyring.
15198 + commit 116cfd60779fbb3540da629db54dc2e148f4a3a2
15199 * g10/keyring.c (keyring_search_reset): Don't keep the FD cache.
15201 2017-04-24 Andre Heinecke <aheinecke@intevation.de>
15203 w32: Enable wildcard expansion with mingw-w64.
15204 + commit 2e71bf30f038ca0e142acbb6f650ce029105f8a2
15205 * g10/gpg.c: Define _dowildcard = -1;
15207 2017-04-24 Justus Winter <justus@g10code.com>
15209 tests: Fix Python detection.
15210 + commit ef1922b3b19df0aa7f8c15d503c603f76fc13f82
15211 * tests/gpgme/gpgme-defs.scm (python): Fix Python detection.
15213 gpgscm: Refactor cell finalization.
15214 + commit d2f6798621d751cd6ae6f091c4a2af4569c5b8aa
15215 * tests/gpgscm/scheme.c (finalize_cell): Use switch, return whether
15216 the cell may be freed.
15217 (gc): Update callsite.
15219 gpgscm: Tweak error message display.
15220 + commit 78547bfe8a885579438a17abadca02b62cce2844
15221 * tests/gpgscm/init.scm (throw'): If the first argument to the error
15222 is a string, display it as such.
15224 tests: Deduplicate and simplify code.
15225 + commit 06a177ceea529269a7404740c60416bd6a4567b1
15226 * tests/gpgme/gpgme-defs.scm (create-file): Move...
15227 * tests/gpgsm/gpgsm-defs.scm (create-file): ... likewise...
15228 * tests/openpgp/defs.scm (create-file): Here.
15229 (create-gpghome): Use 'create-file'.
15230 * tests/openpgp/gpg-agent.conf.tmpl: Delete file.
15231 * tests/openpgp/gpg.conf.tmpl: Likewise.
15234 + commit 9ae63b9caefdf3e925c5928667fcd9227132d27f
15235 * tests/gpgscm/t-child.scm: Use 'string-length' on the string.
15237 gpgscm: Improve syntax checking.
15238 + commit 4aab0e6ac7f2887a6f38f0cb95365dd7c30b4b18
15239 * tests/gpgscm/scheme.c (opexe_0): Make sure closure arguments are
15242 gpgscm: Emit JUnit-style XML reports.
15243 + commit ee715201ae784e840b6136393289e6dbd6f4c540
15244 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add new file.
15245 * tests/gpgscm/lib.scm (string-translate): New function.
15246 * tests/gpgscm/main.c (main): Load new file.
15247 * tests/gpgscm/tests.scm (dirname): New function.
15248 (test-pool): Record execution times, emit XML report.
15249 (test): Record execution times, record log file name, emit XML report.
15250 (run-tests-parallel): Write XML report.
15251 (run-tests-sequential): Likewise.
15252 * tests/gpgscm/xml.scm: New file.
15253 * tests/gpgme/Makefile.am (CLEANFILES): Add 'report.xml'.
15254 * tests/gpgsm/Makefile.am: Likewise.
15255 * tests/migrations/Makefile.am: Likewise.
15256 * tests/openpgp/Makefile.am: Likewise.
15258 gpgscm: Make logging less verbose and more useful.
15259 + commit 679920781a25ae5c0e49d4bd78e6926fd661778f
15260 * tests/gpgscm/tests.scm (call-with-io): When being verbose, include
15261 the pid in the output, and avoid duplicating the command arguments.
15263 gpgscm: Make test framework less functional.
15264 + commit a71f4142e13e2cc26ef0cd62f56a1ccb7ce678ee
15265 * tests/gpgscm/tests.scm (test-pool, tests): Previously, these methods
15266 updated objects by creating new updated copies of the object being
15267 manipulated. This made the code awkward without any benefit,
15268 therefore I change it to just update the object.
15270 gpgscm: Move 'trace' and 'stringify'.
15271 + commit f03d6897be904da58cad76b4bd07729922b47616
15272 * tests/gpgscm/tests.scm (trace, stringify): Move...
15273 * tests/gpgscm/lib.scm: ... here.
15275 gpgscm: Avoid fruitless garbage collection cycles.
15276 + commit 245860ecaf8b9e82ca577385abd453ac92ffcd26
15277 * tests/gpgscm/scheme-private.h (CELL_MINRECOVER): New macro.
15278 * tests/gpgscm/scheme.c (_get_cell): Move the heuristic to get more
15280 (gc): ... here where every caller benefits from the optimization.
15282 2017-04-20 NIIBE Yutaka <gniibe@fsij.org>
15284 g13: Fix for Solaris.
15285 + commit 10519270d36586c536bfb6c4cda8ac17c01f4976
15286 * configure.ac: Check sys/mkdev.h.
15287 * g13/sh-dmcrypt.c: Include sys/mkdev.h.
15289 2017-04-18 NIIBE Yutaka <gniibe@fsij.org>
15291 dirmngr: Fix final close of LISTEN_FD.
15292 + commit 4b2581dc0ea1d03e70023bb0748aa0c21c0a2173
15293 * dirmngr/dirmngr.c (handle_connections): Close LISTEN_FD.
15295 dirmngr: Fix API difference for Windows.
15296 + commit 0d0a7efa8fa0accc1da851917376e2328ef33c96
15297 * dirmngr/http.c (read_server, write_server): Use assuan_fd_t.
15298 (http_wait_response): Use FD2INT to get unsigned integer fd.
15299 (read_server, write_server): Likewise.
15300 (simple_cookie_read, simple_cookie_write): Use assuan_fd_t.
15302 2017-04-17 NIIBE Yutaka <gniibe@fsij.org>
15304 agent: More minor change.
15305 + commit 9296aed4bd2ad09d23339e658264e557c5312585
15306 * agent/command.c (cmd_pksign): Remove redundant assignment.
15308 agent: Minor cleanup.
15309 + commit 45c52cca1401b930878a8f901b63cfbb22e9e327
15310 * agent/command-ssh.c (ssh_key_to_protected_buffer): Not touch ERR.
15311 * agent/command.c (cmd_genkey, cmd_import_key): Clean up.
15313 tests: Minor memory fix.
15314 + commit b9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a
15315 * tests/openpgp/fake-pinentry.c (get_passphrase): Free the memory.
15317 g10: Fix parse_ring_trust.
15318 + commit 256e861bce3dc9aba8fab4df47a40cae3bede175
15319 * g10/parse-packet.c (parse_ring_trust): Fix condition.
15322 + commit 0dec0cc281dfa26db89f8cc5ee002dea5c2b2e81
15323 * g10/export.c (cleartext_secret_key_to_openpgp): No initialization.
15324 (do_export_one_keyblock): Initialize with GPG_ERR_NOT_FOUND.
15325 * g10/getkey.c (get_best_pubkey_byname): Add non-null check.
15326 * g10/tofu.c (tofu_set_policy): ERR initialize to 0.
15328 g10: Fix import/export filter property match.
15329 + commit af5f8ecf51f5e1f33e832d4946d02313b78a0536
15330 * g10/import.c (impex_filter_getval): Fix to "else if".
15332 2017-04-14 NIIBE Yutaka <gniibe@fsij.org>
15334 agent: Clean up error initialize/return.
15335 + commit 36c4e540f1a4992675ee6e0acca1231325457079
15336 * agent/call-pinentry.c (start_pinentry): Return RC.
15337 * agent/command-ssh.c (ssh_handler_request_identities): Don't set ERR.
15338 * agent/findkey.c (try_unprotect_cb): Return ERR.
15339 (unprotect): Don't set RC.
15340 * agent/gpg-agent.c (handle_connections): Don't set fd.
15342 dirmngr: More fix for test program.
15343 + commit adb77d095b3958482863a17c83746f33945638dc
15344 * dirmngr/t-http.c (main): Care about no TLS.
15346 dirmngr: More fix for Windows.
15347 + commit 4771bad610eb59e701fe8e53468e2af22d45eeb0
15348 * dirmngr/http.c (simple_cookie_read, simple_cookie_write): Only
15349 valid with HTTP_USE_NTBTLS.
15350 (_my_socket_new): Simply cast to int since it's for debug.
15351 (_my_socket_ref, _my_socket_unref): Likewise.
15353 2017-04-13 NIIBE Yutaka <gniibe@fsij.org>
15355 dirmngr: Fix http.c for sockaddr_storage.
15356 + commit 86dcb03134fd4957d51ebaa06b7991239f9ee56a
15357 dirmngr/http.c (use_socks): Use sockaddr_storage.
15358 (my_sock_new_for_addr, connect_server): Likewise.
15360 dirmngr: Fix alignment of ADDR.
15361 + commit 892b33bb2c57785927ea6652091191da2deed464
15362 * dirmngr/dns-stuff.h (dns_addrinfo_s): Use struct sockaddr_storage
15363 for size and alignment.
15364 * dirmngr/dns-stuff.c (resolve_name_libdns): Follow the change.
15365 (resolve_dns_name): Use struct sockaddr_storage.
15366 (resolve_addr_standard, resolve_dns_addr): Likewise.
15367 (resolve_dns_addr): Likewise.
15369 dirmngr: Fix thread key type.
15370 + commit 37018adce6ea4920b34d59afcfe4f55f716b3086
15371 * dirmngr/dirmngr.c (my_tlskey_current_fd): Use npth_key_t.
15373 common, g10: Fix enumeration types.
15374 + commit 74258278efacd7069e8c1df8ff6fc3f4675d713e
15375 * common/openpgpdefs.h (CIPHER_ALGO_PRIVATE10, PUBKEY_ALGO_PRIVATE10)
15376 (DIGEST_ALGO_PRIVATE10, COMPRESS_ALGO_PRIVATE10): New.
15377 * g10/misc.c (map_pk_gcry_to_openpgp): Add type conversion.
15378 (map_cipher_openpgp_to_gcry, openpgp_cipher_algo_name)
15379 (openpgp_pk_test_algo2, map_md_openpgp_to_gcry)
15380 (pubkey_get_npkey): Add default handling.
15382 dirmngr: More fix for Windows.
15383 + commit 5af104b541ed430a54eb0163a1d29e1d043f9377
15384 * dirmngr/dns.c (socket_fd_t, STDCALL): New.
15385 (dns_te_initname): Use.
15387 2017-04-12 NIIBE Yutaka <gniibe@fsij.org>
15389 dirmngr: Fix type of sock.
15390 + commit 6755b3b505f79a5a233b18e85f57a0d3a455e664
15391 * dirmngr/http.c (send_request): Use assuan_fd_t for SOCK.
15393 tools: Fix condition for gpg-connect-agent.
15394 + commit f52f6af834cc488d11612e349e4af023d69a45f4
15395 * tools/gpg-connect-agent.c (start_agent): Add paren.
15397 dirmngr: Fix possible null reference.
15398 + commit 7ae1857c90ab43ad9e31f0fb6dbd37f25cc37278
15399 * dirmngr/dns.c (dns_error_t dns_trace_fput): Check NULL.
15401 common: Simplify format_text.
15402 + commit 7b4edf14bb16fbe786e55b829a208960396ce8df
15403 * common/stringhelp.c (format_text): Don't allow IN_PLACE formatting.
15404 * common/stringhelp.h: Change the API with no IN_PLACE.
15405 * common/t-stringhelp.c (test_format_text): Follow the change.
15406 * g10/gpgcompose.c (show_help): Likewise.
15407 * g10/tofu.c (format_conflict_msg_part1, ask_about_binding)
15408 (show_statistics, show_warning): Likewise.
15410 gpgscm: Fix test program.
15411 + commit 7f9032d4a8ce53ce1a972bd3c1f8d20b3776756b
15412 * tests/gpgscm/t-child.c (main): Fix for setmode.
15414 dirmngr: Fix plus1_ns.
15415 + commit 60d9a9e6b4ae3af029596d14732c02f49203326d
15416 * dirmngr/dns.c (plus1_ns): Fix the initial implementation.
15418 scd: Handle unexpected suspend/resume by CCID driver.
15419 + commit f053f99ed0b0c6de7b7c4a07cbd7f7d213ddf0db
15420 * scd/ccid-driver.c (bulk_in): Handle unexpected failure.
15422 dirmngr: Fix dns-stuff.c in another way.
15423 + commit bd0c94939faf8ccfc117fb595e9bc0105edcafa4
15424 * dirmngr/dns-stuff.c (T_CERT): Define our own.
15426 Revert "dirmngr: Fix dns-stuff.c."
15427 + commit 0b904ddea8bddaa2fd7893a9dce1df1cb5e36b00
15428 This reverts commit 1538523156be568046f632d1775eae30ea8bd556.
15430 dirmngr: Fix dns-stuff.c.
15431 + commit 1538523156be568046f632d1775eae30ea8bd556
15432 * dirmngr/dns-stuff.c: Don't include arpa/nameser.h.
15434 agent: Simplify stream_read_cstring.
15435 + commit c64763c3a74ecc61c2f6c5edb679a2a3879d79e7
15436 * agent/command-ssh.c (stream_read_cstring): Just call
15437 stream_read_string.
15439 dirmngr: Use a function to increment network short.
15440 + commit 64904ce627b6b0661acf15b5b70103c4842bb0f3
15441 * dirmngr/dns.c (plus1_ns): New.
15442 (dns_p_push): Use it.
15444 g10: Minor clean up for export.c.
15445 + commit 05218829589f6d4b09933fa19f568c2019367d5c
15446 * g10/export.c (export_ssh_key): Check IDENTIFIER for error.
15447 Release base64 thing on error of get_membuf.
15449 2017-04-11 NIIBE Yutaka <gniibe@fsij.org>
15451 g13: Include sys/sysmacros.h if available.
15452 + commit c3cc9551dcc89cc25c0a0ec16d8eb12c1c221638
15453 * configure.ac: Add test for sys/sysmacros.h.
15454 * g13/sh-dmcrypt.c: Include sys/sysmacros.h.
15456 2017-04-11 Justus Winter <justus@g10code.com>
15458 tests: Fix distcheck.
15459 + commit 00be2a92625e832e8dd621f2a8f72b124c6d50ca
15460 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add 'gnupg.scm'.
15462 tests: Avoid relying on implicit gpg commands.
15463 + commit cde626e7f7349a73d58ec3236ab3b43dec852bb5
15464 * tests/openpgp/armdetach.scm: Always use an explicit command instead
15465 of relying on gpg to guess what we want.
15466 * tests/openpgp/armdetachm.scm: Likewise.
15467 * tests/openpgp/armencrypt.scm: Likewise.
15468 * tests/openpgp/armencryptp.scm: Likewise.
15469 * tests/openpgp/armor.scm: Likewise.
15470 * tests/openpgp/armsignencrypt.scm: Likewise.
15471 * tests/openpgp/armsigs.scm: Likewise.
15472 * tests/openpgp/clearsig.scm: Likewise.
15473 * tests/openpgp/compression.scm: Likewise.
15474 * tests/openpgp/conventional-mdc.scm: Likewise.
15475 * tests/openpgp/conventional.scm: Likewise.
15476 * tests/openpgp/decrypt-dsa.scm: Likewise.
15477 * tests/openpgp/decrypt.scm: Likewise.
15478 * tests/openpgp/detach.scm: Likewise.
15479 * tests/openpgp/detachm.scm: Likewise.
15480 * tests/openpgp/ecc.scm: Likewise.
15481 * tests/openpgp/encrypt-dsa.scm: Likewise.
15482 * tests/openpgp/encrypt-multifile.scm: Likewise.
15483 * tests/openpgp/encrypt.scm: Likewise.
15484 * tests/openpgp/encryptp.scm: Likewise.
15485 * tests/openpgp/seat.scm: Likewise.
15486 * tests/openpgp/signencrypt-dsa.scm: Likewise.
15487 * tests/openpgp/signencrypt.scm: Likewise.
15488 * tests/openpgp/sigs-dsa.scm: Likewise.
15489 * tests/openpgp/sigs.scm: Likewise.
15491 tests: Make tests more robust.
15492 + commit 1b28d9dbe0260b2a4645c4b5caae11d9f375c942
15493 * tests/openpgp/defs.scm (have-opt-always-trust): Execute in empty
15494 ephemeral home directory. This prevents gpg from picking up the
15495 configuration from the current gnupghome (if any).
15496 * tests/migrations/common.scm (untar-armored): Likewise.
15498 tests: Move common functionality.
15499 + commit ccd2187212c12b84c86a10fd4417a16536243179
15500 * tests/openpgp/defs.scm (with-home-directory,
15501 with-ephemeral-home-directory): Move...
15502 * tests/gpgscm/gnupg.scm: ... to this new file.
15503 * tests/gpgscm/main.c (main): Load the new file.
15505 2017-04-11 NIIBE Yutaka <gniibe@fsij.org>
15507 dirmngr: Fix build for Windows.
15508 + commit 3133402241167ccad70fa888a47ffcbe04e7b4c5
15509 * dirmngr/ldap-wrapper-ce.c (outstream_cookie_writer): Use
15512 g10,tools: Fix bzlib.h include order.
15513 + commit 03d77b60befa4e2f8437a80ac429cca3e54688f8
15514 * g10/compress-bz2.c: Include bzlib.h after gcrypt.h.
15515 * tools/gpgsplit.c: Likewise.
15517 g10: Minor clean up for TOFU.
15518 + commit f079822b2ce06c18b7ea45efed2d29b54e38f04d
15519 * g10/tofu.c (ask_about_binding): Fix for qualifier.
15521 common: Portability fix for logging.c.
15522 + commit 456c5cdb2d72bba77e2a30c8fdb1c1cebbe9b1d2
15523 * common/logging.c (S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Avoid
15524 duplicated definition.
15526 tools: Portability fix for gpgparsemail.
15527 + commit a1446163d584cdc3003c7d5b5fc6d74737c1732d
15528 * tools/rfc822parse.c (my_stpcpy): Rename from stpcpy.
15530 2017-04-10 Justus Winter <justus@g10code.com>
15532 gpgscm: Fix opcode dispatch.
15533 + commit 1b6adab41d386b587f65e5c6f14a63859ac1226b
15534 * tests/gpgscm/scheme.c (opexe_0): Consider 'op', not 'sc->op'. The
15535 former is the opcode we are currently executing.
15537 gpgscm: Mmap script files.
15538 + commit c7f0d90592fd0348a3818ac897f91e6859584146
15539 * tests/gpgscm/main.c (load): Try to mmap the script.
15540 * tests/gpgscm/scheme.c (scheme_load_memory): New function, a
15541 generalization of 'scheme_load_string'.
15542 * tests/gpgscm/scheme.h (scheme_load_memory): New prototype.
15544 gpgscm: Refactor checking for opcode arguments.
15545 + commit f3d1f6867792deeb9a2a63744ee9b076c41c58f3
15546 * tests/gpgscm/scheme.c (op_code_info): Fix type, add forward
15548 (check_arguments): New function.
15549 (Eval_cycle): Use the new function.
15551 gpgscm: Improve syntax dispatch.
15552 + commit b628e62b5b9f7ed5cbb1bfe34727b5ee8129f7d4
15553 * tests/gpgscm/scheme.c (assign_syntax): Add opcode parameter, store
15555 (syntaxnum): Add sc parameter, retrieve opcode from tag.
15556 (opexe_0): Adapt callsite.
15557 (scheme_init_custom_alloc): Likewise.
15559 gpgscm: Make tags mandatory.
15560 + commit a1ad5d6a30cf72d9b7e7bb449985dc69d5e01c4b
15561 * tests/gpgscm/opdefines.h: Make tags mandatory.
15562 * tests/gpgscm/scheme.c: Likewise.
15563 * tests/gpgscm/scheme.h: Likewise.
15565 gpgscm: Add and use opcode for reversing a list in place.
15566 + commit e1bb9326dc381ae2711a81ab621e21a66388bcbd
15567 * tests/gpgscm/lib.scm (string-split-pln): Use 'reverse!'.
15568 (string-rtrim): Likewise.
15569 * tests/gpgscm/opdefines.h (reverse!): New opcode.
15570 * tests/gpgscm/scheme.c (opexe_0): Handle new opcode.
15572 gpgscm: Deduplicate code.
15573 + commit 3e91019a92b9bb3bb5a8cd62336b4cf65964e45b
15574 * tests/gpgscm/scheme.c (oblist_add_by_name): Deduplicate.
15575 (new_slot_spec_in_env): Likewise.
15577 gpgscm: Move dispatch table into rodata.
15578 + commit 7dff6248bddd5583988ac562318cf0d76a409d0e
15579 * tests/gpgscm/opdefines.h: Use 0 instead of NULL.
15580 * tests/gpgscm/scheme.c (op_code_info): Use char arrays instead of
15581 pointers, make arity parameters smaller.
15583 (_OP_DEF): Likewise.
15584 (dispatch_table): Likewise.
15585 (procname): Likewise.
15586 (Eval_cycle): Likewise.
15587 (scheme_init_custom_alloc): Likewise.
15589 gpgscm: Use more threaded code.
15590 + commit 6f217d116d1a12c6093bb253dbfa349bc81bc90b
15591 * tests/gpgscm/scheme.c (opexe_0): Use 's_thread_to' instead of
15592 's_goto' wherever possible.
15594 gpgscm: Remove now obsolete dispatcher function from the opcodes.
15595 + commit e7ed9822e20ee4bbb4cdd9eca8121b4ade87e5ce
15596 * tests/gpgscm/opdefines.h: Remove now obsolete dispatcher function
15598 * tests/gpgscm/scheme-private.h (_OP_DEF): Adapt.
15599 * tests/gpgscm/scheme.c (dispatch_func): Remove type declaration.
15600 (op_code_info): Remove 'func'.
15602 (Eval_Cycle): Always call 'opexe_0'.
15604 gpgscm: Merge 'opexe_6'.
15605 + commit ddf444828b9b3f75d964473a2c0e77f75f094cf4
15606 * tests/gpgscm/scheme.c (opexe_6): Merge into 'opexe_0'.
15607 * tests/gpgscm/opdefines.h: Adapt.
15609 gpgscm: Merge 'opexe_5'.
15610 + commit 1379df44537b67b7c2fbc0fb5bc6f7945a5d7ebb
15611 * tests/gpgscm/scheme.c (opexe_5): Merge into 'opexe_0'.
15612 * tests/gpgscm/opdefines.h: Adapt.
15614 gpgscm: Merge 'opexe_4'.
15615 + commit 4f835104b9475e7d585d859b85e7d0d4cfe9aab3
15616 * tests/gpgscm/scheme.c (opexe_4): Merge into 'opexe_0'.
15617 * tests/gpgscm/opdefines.h: Adapt.
15619 gpgscm: Merge 'opexe_3'.
15620 + commit d591ab65d37ee467ca91ad851ab236f2985c1ee2
15621 * tests/gpgscm/scheme.c (opexe_3): Merge into 'opexe_0'.
15622 * tests/gpgscm/opdefines.h: Adapt.
15624 gpgscm: Merge 'opexe_2'.
15625 + commit 6cad38228f6ebfdc8e52960223b492597aff26a0
15626 * tests/gpgscm/scheme.c (opexe_2): Merge into 'opexe_0'.
15627 * tests/gpgscm/opdefines.h: Adapt.
15629 gpgscm: Merge 'opexe_1'.
15630 + commit 154af876f05b773bf3a860fcb4cc41066da27beb
15631 * tests/gpgscm/scheme.c (opexe_1): Merge into 'opexe_0'.
15632 * tests/gpgscm/opdefines.h: Adapt.
15634 2017-04-10 NIIBE Yutaka <gniibe@fsij.org>
15636 agent: Use "ll" length specifier when time_t is larger.
15637 + commit 170660ed11b56145dea4865e751ae5aff1681fe2
15638 * agent/command.c (cmd_keytocard): Use KEYTOCARD_TIMESTAMP_FORMAT.
15640 scd: Relax a condition for p15 driver.
15641 + commit 7501f2e9c4e6fd94a191b381d52ec2fe1d103e29
15642 * scd/app-p15.c (read_ef_aodf): Fix.
15644 scd: Relax a condition for p15 driver.
15645 + commit 3c1ad96f1ce838daf2d861b33e6611f6d3043d25
15646 * scd/app-p15.c (read_ef_aodf): Remove possibly redundant condition.
15648 scd: Remove "special transport" support.
15649 + commit 34199ef677bb40eadf0da696a111f7036bc3187e
15650 * scd/ccid-driver.c (transports, my_sleep, prepare_special_transport)
15652 (ccid_dev_scan, ccid_dev_scan_finish, ccid_get_BAI): Only for USB.
15653 (ccid_open_reader, do_close_reader, bulk_out, bulk_in, abort_cmd)
15654 (ccid_poll, ccid_transceive): Likewise.
15656 2017-04-07 Justus Winter <justus@g10code.com>
15658 gpgscm: Allocate small integers in the rodata section.
15659 + commit 8640fa880d7050917f4729f2c0cb506e165ee446
15660 * tests/gpgscm/Makefile.am (gpgscm_SOURCES): Add new file.
15661 * tests/gpgscm/scheme-private.h (struct cell): Move number to the top
15662 of the union so that we can initialize it.
15663 (struct scheme): Remove 'integer_segment'.
15664 * tests/gpgscm/scheme.c (initialize_small_integers): Remove function.
15665 (small_integers): New variable.
15666 (MAX_SMALL_INTEGER): Compute.
15667 (mk_small_integer): Adapt.
15668 (mark): Avoid marking objects already marked. This allows us to run
15669 the algorithm over objects in the rodata section if they are already
15671 (scheme_init_custom_alloc): Remove initialization.
15672 (scheme_deinit): Remove deallocation.
15673 * tests/gpgscm/small-integers.h: New file.
15675 gpgscm: Make global data constant when possible.
15676 + commit c9c3fe883271868d3b2dd287d295cf6a8f8ffc05
15677 * tests/gpgscm/scheme-private.h (struct scheme): Make 'vptr' const.
15678 * tests/gpgscm/scheme.c (num_zero): Statically initialize and turn
15680 (num_one): Likewise.
15681 (charnames): Change type so that it can be stored in rodata.
15682 (is_ascii_name): Adapt slightly.
15683 (assign_proc): Make argument const char *.
15684 (op_code_info): Make some fields const char *.
15685 (tests): Make const.
15686 (dispatch_table): Make const. At least it can be made read-only after
15688 (Eval_Cycle): Adapt slightly.
15689 (vtbl): Make const.
15691 gpgscm: Remove arbitrary limit on number of cell segments.
15692 + commit 56638c28adc1bbe9fc052b92549a50935c0fe99c
15693 * tests/gpgscm/scheme-private.h (struct scheme): Remove fixed-size
15694 arrays for cell segments, replace them with a pointer to the new
15695 'struct cell_segment' instead.
15696 * tests/gpgscm/scheme.c (struct cell_segment): New definition.
15697 (_alloc_cellseg): Allocate the header within the segment, return a
15698 pointer to the header.
15699 (_dealloc_cellseg): New function.
15700 (alloc_cellseg): Insert the segments into a list.
15701 (_get_cell): Allocate a new segment if less than a quarter of
15702 CELL_SIGSIZE is recovered during garbage collection.
15703 (initialize_small_integers): Adapt callsite.
15704 (gc): Walk the list of segments.
15705 (scheme_init_custom_alloc): Remove initialization of removed field.
15706 (scheme_deinit): Adapt deallocation.
15708 gpgscm: Fix compact vector encoding.
15709 + commit bf8b5e9042b3d86d419b2ac1987a9298c9d21500
15710 * tests/gpgscm/scheme-private.h (struct cell): Use uintptr_t for
15711 '_flags'. This way, '_flags' has the size of a machine word.
15713 2017-04-07 Werner Koch <wk@gnupg.org>
15715 gpg: Fix printing of offline taken subkey.
15716 + commit 547bc01d57528ecc27b3b5e16797967a7f88fecf
15717 * g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32.
15719 2017-04-07 NIIBE Yutaka <gniibe@fsij.org>
15721 scd: Internal CCID reader cleanup.
15722 + commit cc420d34880e2a050b39f969873974cfc35fa5c3
15723 * scd/ccid-reader.c (scan_usb_device): Only for scan mode, so, rename
15724 from scan_or_find_usb_device.
15725 (scan_devices): Likewise. Remove support of special transport types.
15726 (ccid_get_reader_list): Simplify.
15727 (abort_cmd): Fix error return.
15728 (send_escape_cmd): Fix for RESULTLEN == NULL.
15729 (ccid_transceive_secure): Remove unnecessary var updates.
15731 scd: Don't keep CCID reader open when card is not available.
15732 + commit 3c93595d701c59cbc9b67a7fd0bcde7ee0fada1a
15733 * scd/apdu.c (open_ccid_reader): Fail if no ATR.
15735 agent: Serialize access to passphrase cache.
15736 + commit ebe12be034f052cdec871f0d8ad1bfab85d7b943
15737 * agent/cache.c (encryption_lock): Remove.
15738 (cache_lock): New. Now, we have coarse grain lock to serialize
15739 entire cache access.
15740 (initialize_module_cache): Use CACHE_LOCK.
15741 (init_encryption, new_data): Remove ENCRYPTION_LOCK.
15742 (agent_flush_cache, agent_put_cache, agent_get_cache): Lock the cache.
15744 2017-04-06 Justus Winter <justus@g10code.com>
15746 gpgscm: Avoid mutating integer.
15747 + commit f1dc34f502a68673e7a29f3fcf57b8dc6a4fac89
15748 * tests/gpgscm/scheme.c (opexe_5): Do not modify the integer in-place
15749 while printing an vector. Integer objects may be shared, so they must
15752 gpgscm: Initialize unused slots in vectors.
15753 + commit b83903f59ec5d49ac579f263da70ebc8dc3645b5
15754 * tests/gpgscm/scheme.c (get_vector_object): Initialize unused slots
15755 at the end of vectors.
15757 tests: Fix distcheck.
15758 + commit 23f00f109ddba595db4f73a6182750177c7dd75d
15759 * tests/Makefile.am (SUBDIRS): Add 'pkits' again. Simply dropping it
15760 makes 'make distcheck' unhappy.
15761 * tests/pkits/Makefile.am (TESTS): Remove all tests.
15763 tests: Disable 'pkits' test suite.
15764 + commit af1c1a57e46a00a32d83c1a58c5f3ef6f4a1c1d1
15765 * tests/Makefile.am (SUBDIRS): Drop 'pkits'.
15766 * tests/pkits/common.sh: Fix locating 'PKITS_data.tar.bz2'.
15767 * tests/pkits/inittests: Likewise.
15769 tests: Make test more robust.
15770 + commit 94645311f8a3e9ae33643512f87fbef41bf0556f
15771 * tests/openpgp/4gb-packet.scm: Skip if we do not have BZIP2.
15772 * tests/openpgp/defs.scm (have-compression-algo?): New function.
15774 2017-04-05 Justus Winter <justus@g10code.com>
15776 tests: Fix setup of ephemeral home directories.
15777 + commit 01e84d429aeeb1450012ff0576a6a24de50693c6
15778 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Set
15779 GNUPGHOME and cwd to the ephemeral directory before calling the setup
15782 2017-04-04 Justus Winter <justus@g10code.com>
15784 tests: Fix setup of ephemeral home directories.
15785 + commit 32b75fb7743f35936d7014fce33c90ba97dfa374
15786 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Create
15787 configuration files when we enter the context.
15788 * tests/openpgp/setup.scm: Do not use an ephemeral home directory.
15789 Tests should always use the cwd.
15790 * tests/gpgsm/setup.scm: Likewise.
15791 * tests/gpgsm/export.scm: Add explicit constructor function.
15792 * tests/openpgp/decrypt-session-key.scm: Likewise.
15793 * tests/openpgp/decrypt-unwrap-verify.scm: Likewise.
15795 gpgscm: Fix copying values.
15796 + commit 6261611d3786f19fd84ccc79f45a89cadac518e8
15797 * tests/gpgscm/scheme.c (copy_value): New function.
15798 (mk_tagged_value): Use new function.
15799 (opexe_4): Likewise for OP_SAVE_FORCED.
15801 gpgscm: Simplify get-output-string operation.
15802 + commit a80d4a9b50ad47eae1f8c740dd73804311e38783
15803 * tests/gpgscm/scheme.c (opexe_4): Simplify 'get-output-string'.
15805 gpgscm: Simplify substring operation.
15806 + commit d858096c99705ccf2e115475f81c4cf88edbeebf
15807 * tests/gpgscm/scheme.c (opexe_2): Simplify 'substring'.
15809 2017-04-04 NIIBE Yutaka <gniibe@fsij.org>
15811 agent: Minor fix for get_client_pid.
15812 + commit 5744d2038bd17b8b1be4e73d0ad3bc41772efe96
15813 * agent/command-ssh.c (get_client_pid): Use 0 to initialize.
15815 2017-04-03 Werner Koch <wk@gnupg.org>
15818 + commit e7eb9b12deaf7ebe26967bfb56e980b7efeebdc3
15821 dirmngr: New option --disable-ipv6.
15822 + commit 3533b854408fa93734742b2ee12b62aa0d55ff28
15823 * dirmngr/dirmngr.h (struct opt): Add field 'disable_ipv6'.
15824 * dirmngr/dirmngr.c (oDisableIPv6): New const.
15825 (opts): New option --disable-ipv6.
15826 (parse_rereadable_options): Set that option.
15827 * dirmngr/dns-stuff.c (opt_disable_ipv6): New var.
15828 (set_dns_disable_ipv6): New.
15829 (resolve_name_standard): Make use of it.
15830 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Take care of
15832 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
15833 (send_request): Ditto.
15834 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
15835 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
15837 dirmngr,w32: Silence the 'certificate already cached' message.
15838 + commit fce36d7ec87be14b874813db277781c87a64ea87
15839 * dirmngr/certcache.c (load_certs_from_w32_store): Silenece an info
15842 dirmngr: Handle EIO which is sometimes returned by cookie functions.
15843 + commit cc32ddbcba8c53d3e2cad952d72f62dc73911042
15844 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle EIO.
15846 dirmngr: Always print a warning for a missing /etc/hosts.
15847 + commit 35c843c815306f36d1efbc52f5e2f6bac3f67aec
15848 * dirmngr/dns-stuff.c (libdns_init): No Windows specific handling of a
15849 missing /etc/hosts.
15851 dirmngr: Do not assume that /etc/hosts exists.
15852 + commit 5d873f288e86edfb684f4dd57ac36466b06494a4
15853 * dirmngr/dns-stuff.c (libdns_init): Do not bail out.
15855 po: Update the German translation.
15856 + commit c7be01dae914c183dd99bd531a388c794d858c61
15859 gpgconf: Add --enable-extended-key-format for the agent.
15860 + commit d23052b04ebb0ac731aa351650c4084f080c640b
15861 * tools/gpgconf-conf.c: Add option.
15862 * agent/gpg-agent.c (main) <aGPGConfList>: Add option.
15864 2017-04-03 Justus Winter <justus@g10code.com>
15866 gpgscm: Slightly improve the procedure dispatch.
15867 + commit 90932bdad607d06f4f040e3457caddba79ba8b7e
15868 * tests/gpgscm/scheme.c (procnum): Procedures always have an integer
15869 number, so we can safely use the cheaper 'ivalue_unchecked'.
15871 2017-04-03 Werner Koch <wk@gnupg.org>
15873 gpg: Handle critical marked 'Reason for Revocation'.
15874 + commit 3f6d949011f485613bb4bd3e06a2643be79cce40
15875 * g10/parse-packet.c (can_handle_critical): Add
15876 SIGSUBPKT_REVOC_REASON.
15878 2017-04-02 Werner Koch <wk@gnupg.org>
15880 agent: Use OCB for key protection with --enable-extended-key-format.
15881 + commit d24375271b97e45deaeb1ef0a8434c64066ba2e8
15882 * agent/protect.c (PROT_DEFAULT_TO_OCB): Remove macro.
15883 (agent_protect): Make the default protection mode depend on the extend
15886 2017-04-01 Werner Koch <wk@gnupg.org>
15888 kbx: Unify blob reading functions.
15889 + commit 0039d7107bcdfce6f3b02b46ff0495cfba07882a
15890 * kbx/keybox-file.c (_keybox_read_blob): Remove.
15891 (_keybox_read_blob2): Rename to ....
15892 (_keybox_read_blob): this. Make arg options. Change all callers.
15893 * kbx/keybox-search.c (keybox_search): Factor fopen call out to ...
15895 (keybox_seek): Als use open_file.
15897 2017-03-31 Werner Koch <wk@gnupg.org>
15899 gpg: Avoid multiple open calls to the keybox file.
15900 + commit 5556eca5acd46983bff0b38a1ffbc2f07fbaba9f
15901 * g10/keydb.h (KEYDB_HANDLE): Move typedef to ...
15903 (struct server_control_s): Add field 'cached_getkey_kdb'.
15904 * g10/gpg.c (gpg_deinit_default_ctrl): Release that keydb handle.
15905 * g10/getkey.c (getkey_end): Cache keydb handle.
15906 (get_pubkey): Use cached keydb handle.
15907 * kbx/keybox-search.c (keybox_search_reset): Use lseek instead of
15910 gpg: Pass CTRL also to getkey_end.
15911 + commit aca5f494a88776d4974bfa9b0b65cb60c1b42040
15912 * g10/getkey.c (getkey_end): Add arg CTRL. Change all callers.
15914 gpg: Print more stats for the keydb and the signature cache.
15915 + commit 3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8
15916 * g10/sig-check.c (sig_check_dump_stats): New.
15917 (cache_stats): New struct.
15918 (check_key_signature2): Update stats.
15919 * g10/gpg.c (g10_exit): Call new function.
15920 * g10/keydb.c (kid_not_found_cache_count): Replace by ...
15921 (kid_not_found_stats): ... new struct. Change users.
15922 (keydb_stats): New struct. Update the counters.
15923 (keydb_dump_stats): Print all stats.
15925 gpg: Assert that an opaque parameter is really what we expect.
15926 + commit 52ba5e67cad4311d0ddbc4f2979e20afd0161d1f
15927 * g10/gpg.h (SERVER_CONTROL_MAGIC): New const.
15928 (server_control_s): Add field 'magic'.
15929 * g10/gpg.c (gpg_init_default_ctrl): Init MAGIC.
15930 * g10/import.c (impex_filter_getval): Assert MAGIC.
15932 2017-03-30 Justus Winter <justus@g10code.com>
15934 gpg: Consistent use of preprocessor conditionals.
15935 + commit 5e89144cbca36c1e7eb814b3aad4b7c46cd4efbf
15936 * g10/parse-packet.c: Use '#if' instead of '#ifdef' when checking
15937 DEBUG_PARSE_PACKET. This fixes the build with '#define
15938 DEBUG_PARSE_PACKET 0'.
15940 common: Avoid undefined behavior.
15941 + commit 214fa9012296d796b78f1a3106d656639cf50aef
15942 * common/iobuf.c (iobuf_read_line): Do not consider 'length' if
15945 2017-03-30 Werner Koch <wk@gnupg.org>
15947 gpg: Remove the use of the signature information from a KBX.
15948 + commit a6142dbdbc5783043deb847dc64998c421860941
15949 * g10/keydb.c (keyblock_cache): Remove field SIGSTATUS.
15950 (keyblock_cache_clear): Adjust for that removal.
15951 (parse_keyblock_image): Remove arg SIGSTATUS. Remove the signature
15952 cache setting; this is now done in the parser.
15953 (keydb_get_keyblock): Do not set SIGSTATUS.
15954 (build_keyblock_image): Remove arg SIGSTATUS and simplify. Change
15956 * kbx/keybox-blob.c: Explain that the signature information is not
15958 (_keybox_create_openpgp_blob): Remove arg SIGSTATUS and change
15960 * kbx/keybox-search.c (keybox_get_keyblock): Remove arg R_SIGSTATUS
15961 and change callers.
15962 * kbx/keybox-update.c (keybox_insert_keyblock): Likewise.
15964 gpg: Fix actual leak and possible leaks in the packet parser.
15965 + commit 7bf24e8146116a30c4c9d7b6dbf8bbb27fc35971
15966 * g10/packet.h (struct parse_packet_ctx_s): Change LAST_PKT deom a
15967 pointer to its struct.
15968 (init_parse_packet): Adjust for LAST_PKT not being a pointer.
15969 * g10/parse-packet.c (parse): Ditto. Free the last packet before
15970 storing a new one in case of a deep link.
15971 (parse_ring_trust): Adjust for LAST_PKT not being a pointer.
15972 * g10/free-packet.c (free_packet): Ditto.
15973 * g10/t-keydb-get-keyblock.c (do_test): Release keyblock.
15975 gpg: Fix export porting of zero length user ID packets.
15976 + commit 64665404e43051fa50ee030766347e24b7d1e4d5
15977 * g10/build-packet.c (do_user_id): Avoid indeterminate length header.
15979 gpg: Revamp reading and writing of ring trust packets.
15980 + commit a8895c99a7d0750132477d80cd66caaf3a709113
15981 * g10/parse-packet.c (parse_trust): Rename to ...
15982 (parse_ring_trust): this. Change args and implement new ring trust
15984 (parse): Add special ring trust packet handling.
15985 * g10/packet.h (PKT_user_id): New fields KEYUPDATE, UPDATEURL, and
15987 (PKT_public_key): Ditto.
15988 (RING_TRUST_SIG, RING_TRUST_KEY, RING_TRUST_UID): New consts.
15989 (PKT_ring_trust): New.
15990 (struct packet_struct): Remove member RING_TRUST.
15991 (strcu parse_packet_ctx_s): Add field SKIP_META.
15992 (init_parse_packet): Init SKIPT_META.
15993 * g10/free-packet.c (release_public_key_parts): Free UDPATEURL.
15994 (free_user_id): Ditto.
15995 * g10/mainproc.c (list_node): Remove printing of non-documented "rtv"
15997 * g10/build-packet.c (build_packet_and_meta): New.
15998 (do_ring_trust): New.
15999 * g10/export.c (write_keyblock_to_output): Use build_packet_and_meta
16001 (do_export_one_keyblock): Ditto.
16002 * g10/import.c (read_block): Add arg WITH_META. Skip ring trust
16003 packets if that ism not set.
16004 (import): Call read_block WITH_META in restore mode.
16005 * g10/keydb.h (KEYSRC_UNKNOWN, KEYSRC_FILE, KEYSRC_KS, KEYSRC_PREF_KS)
16006 (KEYSRC_WKD, KEYSRC_WKD_SD, KEYSRC_DANE): New constants. They are not
16008 * g10/keydb.c (parse_keyblock_image): Allow ring trust packets.
16009 (build_keyblock_image): Ditto. Use build_packet_and_meta.
16010 * g10/keyring.c (keyring_get_keyblock): Remove specila treatment of
16011 ring trust packets.
16012 (write_keyblock): Use build_packet_and_meta. Remove special treatment
16013 of ring trust packets and initialization of the signature caches.
16015 2017-03-29 Werner Koch <wk@gnupg.org>
16017 gpg: Extend free_packet to handle a packet parser context.
16018 + commit afa86809087909a8ba2f9356588bf90cc923529c
16019 * g10/packet.h (struct parse_packet_ctx_s): Add fields LAST_PKT and
16021 (init_parse_packet): Clear them.
16022 (deinit_parse_packet): New macro. Change all users if
16023 init_parse_packet to also call this macro.
16024 * g10/free-packet.c (free_packet): Add arg PARSECTX and handle shallow
16025 packet copies in the context. Change all callers.
16026 * g10/parse-packet.c (parse): Store certain packets in the parse
16029 gpg: Change parse_packet to take a context.
16030 + commit 0526c99164d3531b5ec763ffc672407eb24b2296
16031 * g10/packet.h (struct parse_packet_ctx_s): New.
16032 (parse_packet_ctx_t): New type.
16033 (init_parse_packet): New macro.
16034 * g10/parse-packet.c (parse_packet, dbg_parse_packet): Change to take
16035 a parse context. Change all callers to provide a context instead of
16036 directly supplying the input stream.
16037 (search_packet, dbg_search_packet): Ditto.
16038 (copy_all_packets, dbg_copy_all_packets): Init an use a parse context.
16039 (copy_some_packets, dbg_copy_some_packets): Ditto.
16040 (skip_some_packets, dbg_skip_some_packets): Ditto.
16042 gpg: Export ring trust packets in backup mode.
16043 + commit f5b565a5b8de3f2a3d98bc1a655e18333aee223b
16044 * g10/export.c (write_keyblock_to_output): Export ring trust packets.
16046 2017-03-28 Justus Winter <justus@g10code.com>
16048 tests,w32: Fix importing the extra key for GPGME's keylist test.
16049 + commit b20780658ebb1e1245db18c04db3e815399cf706
16050 * tests/gpgme/wrap.scm: Qualify the tests name with the extension for
16051 executables (if any).
16053 2017-03-28 Werner Koch <wk@gnupg.org>
16055 gpg: Prepare for listing last_update and key origin data.
16056 + commit 4af389c9721fa534ed06a64b80705b631575c775
16057 * g10/keylist.c (list_keyblock_colon): Add empty fields 19 and 20.
16059 2017-03-28 Justus Winter <justus@g10code.com>
16061 tests: Fix distcheck.
16062 + commit 5128cd74c029d57491a79ca9e918c81facdf1b76
16063 * tests/openpgp/Makefile.am (sample_msgs): Add all missing sample
16066 tests: Add test for '--decrypt --unwrap'.
16067 + commit 211d71f19c24da94f4c58014606125c1a29d86a2
16068 * tests/openpgp/Makefile.am (XTESTS): Add new test.
16069 * tests/openpgp/decrypt-unwrap-verify.scm: New file.
16071 g10: Fix memory leak.
16072 + commit 6d3edfd972c1114f43f6b35773dc25e0256f48f4
16073 * g10/decrypt-data.c (decrypt_data): Free 'filename'.
16075 2017-03-27 Justus Winter <justus@g10code.com>
16077 common: Fix connecting to the agent.
16078 + commit caf00915532e6e8e509738962964edcd14fb0654
16079 * common/homedir.c (_gnupg_socketdir_internal): Fix error handling.
16081 2017-03-27 NIIBE Yutaka <gniibe@fsij.org>
16083 g10: Support specifying SERIALNO for --card-status.
16084 + commit c1e6302b347caf852a056b9c721469ccb51f44da
16085 * g10/gpg.c (main): Allow an argument for --card-status.
16086 * g10/card-util.c (current_card_status): Rename from card_status.
16087 (card_status): New, which supports multiple cards.
16088 (get_one_name): Use current_card_status.
16090 scd: Change the order of applications when accessed.
16091 + commit d58275703f035e8cfd58cd1c2d0d5ac7dc59e110
16092 * scd/app.c (select_application): Move the app to top.
16094 scd: Fix timeout handling for key generation.
16095 + commit 0848cfcce738150b53bfb65b78efc1e6dc9f3d26
16096 * scd/ccid-driver.c (CCID_CMD_TIMEOUT): Back to original value.
16097 (CCID_CMD_TIMEOUT_LONGER): New.
16098 (ccid_transceive): Add kludge for key generation.
16100 2017-03-24 Werner Koch <wk@gnupg.org>
16102 gpg: Improve check for already compressed packets.
16103 + commit 0b3770c421a35b64823a805fa8d49ddd5c653d50
16104 * common/miscellaneous.c (is_openpgp_compressed_packet): New.
16105 (is_file_compressed): Rerad 2 more bytes and call new function.
16107 agent: New option --enable-extended-key-format.
16108 + commit 2c237c13628a88ba23742da34ea18d3e205d7c53
16109 * agent/gpg-agent.c (oEnableExtendedKeyFormat): New const.
16110 (opts): New option --enable-extended-key-format.
16111 (parse_rereadable_options): Set option
16112 * agent/findkey.c (write_extended_private_key): Add arg 'update'.
16113 (agent_write_private_key): Implement new option.
16115 agent: New option --stub-only for DELETE_KEY.
16116 + commit 6fab7bba879d7794e32112cf3eddd8d87130a5d7
16117 * agent/findkey.c (agent_delete_key): Add arg 'only_stubs'.
16118 * agent/command.c (cmd_delete_key): Add option --stub-only.
16120 2017-03-23 Werner Koch <wk@gnupg.org>
16122 common: Implicitly do a gpgconf --create-socketdir.
16123 + commit 26086b362ff47d21b1abefaf674a6464bf0a8921
16124 * common/homedir.c (_gnupg_socketdir_internal): Create the
16127 tests: Use gpgconf to stop the agent.
16128 + commit 2c9d9ac55ea455a5ec26428989dced0311ed46cc
16129 * tests/openpgp/defs.scm (stop-agent): Swap order of actions. Kill
16130 all daemons using gpgconf.
16131 * tools/gpgconf.c (main) <aRemoveSocketDir>: Try to remove known
16132 socketfails on rmdir failure. Do no fail for ENONET.
16134 2017-03-23 Justus Winter <justus@g10code.com>
16136 gpgscm: Make test cleanup more robust.
16137 + commit 178b6314ab2d2268873067314744c8af74dc331e
16138 * tests/gpgscm/tests.scm (mkdtemp-autoremove): New function that
16139 cleans up at interpreter shutdown.
16140 (run-tests-parallel): Use the new function.
16141 (run-tests-sequential): Likewise.
16142 (make-environment-cache): Execute setup with an temporary working
16145 2017-03-21 Justus Winter <justus@g10code.com>
16147 tests: Test '--quick-set-primary-uid'.
16148 + commit fde885bbc47a4bf14a8570ac62e68adc8cf47a6e
16149 * tests/openpgp/quick-key-manipulation.scm: Test
16150 '--quick-set-primary-uid'.
16152 tests,w32: Use GetTempPath to get the path for temporary files.
16153 + commit d17840c3f40111beaf97d96ad3ca52047976e221
16154 * tests/gpgscm/ffi.c (do_get_temp_path): New function.
16155 (ffi_init): Make function available.
16156 * tests/gpgscm/tests.scm (mkdtemp): Use the new function.
16158 2017-03-21 Werner Koch <wk@gnupg.org>
16160 gpg: New command --quick-set-primary-uid.
16161 + commit 74c1f30ad6616186f0ab9dbaf34db6c17b1e40c4
16162 * g10/gpg.c (aQuickSetPrimaryUid): New const.
16163 (opts): New command --quick-set-primary-uid.
16164 (main): Implement it.
16165 * g10/keyedit.c (keyedit_quick_adduid): Factor some code out to ...
16166 (quick_find_keyblock): new func.
16167 (keyedit_quick_revuid): Use quick_find_keyblock.
16168 (keyedit_quick_set_primary): New.
16170 2017-03-21 Justus Winter <justus@g10code.com>
16172 dirmngr: Fix error handling.
16173 + commit 483c1288a8f86dc6bf93d0d3f2865ecc246aecba
16174 * dirmngr/dns-stuff.c (libdns_init): Convert error before printing it.
16176 dirmngr: Load the hosts file into libdns.
16177 + commit 88f1505f0613894d5544290a170119eb538921e5
16178 * dirmngr/dns-stuff.c (libdns_init): Actually load the hosts file into
16181 tests: Create temporary directories in '/tmp'.
16182 + commit 06f1f163e96f1039304fd3cf565cf9de1ca45849
16183 * tests/gpgscm/tests.scm (mkdtemp): Create temporary directories in
16184 '/tmp' on UNIX, or in '%Temp' on Windows.
16185 * tests/migrations/common.scm (run-test): Turn error into a warning.
16186 * tests/openpgp/defs.scm (start-agent): Likewise.
16188 2017-03-20 Justus Winter <justus@g10code.com>
16190 tests: Remove debugging remnants.
16191 + commit ceb4b245752bb1fb43fde7e99f8d904ab8a9b5e2
16192 * tests/gpgme/gpgme-defs.scm (run-python-tests?): Remove 'trace's.
16194 tests: Fail if we cannot create the socket directory.
16195 + commit d75d20909d9f60d33ffd210def92278c0f383aad
16196 * tests/migrations/common.scm (run-test): Turn warning into an error.
16197 * tests/openpgp/defs.scm (start-agent): Likewise.
16199 2017-03-20 Werner Koch <wk@gnupg.org>
16201 gpg: Add new field no 18 to the colon listing.
16202 + commit fe0b37e123ded51cc5f4cb5e3547fdfbce37a43e
16203 * g10/misc.c (gnupg_pk_is_compliant): New.
16204 * g10/keylist.c (print_compliance_flags): New.
16205 (list_keyblock_colon): Call it here.
16206 * sm/keylist.c (print_compliance_flags): New.
16207 (list_cert_colon): Call it here.
16209 gpg: Remove unused stuff.
16210 + commit e2c63a13e2fa4ce39af8471a34c06d73ff3ee6f6
16211 * g10/OPTIONS: Remove.
16212 * g10/options.h (struct opt): Remove 'shm_coprocess'.
16214 2017-03-17 Neal H. Walfield <neal@g10code.com>
16216 tests: Add test for issue 2959.
16217 + commit fb9d68d636490ca88925051f48b08963c324aed1
16218 * tests/openpgp/tofu.scm: Add test for --tofu-default-policy=ask.
16220 gpg: Make sure the conflict set includes the current key.
16221 + commit b1106b4d640325c60a7212a4a44e4f67c0e3312d
16222 * g10/tofu.c (get_trust): Sanity check CONFLICT_SET after calling
16223 get_policy. If POLICY is 'auto' and the default policy is 'ask', make
16224 sure CONFLICT_SET includes the current key.
16226 2017-03-17 Werner Koch <wk@gnupg.org>
16228 dirmngr: Ignore warning alerts in the GNUTLS handshake.
16229 + commit 69c521df422a6c9a6b0a93e45c9373a8b6ceb28e
16230 * dirmngr/http.c (send_request) [GNUTLS]: Don't bail out on warning
16233 2017-03-17 Justus Winter <justus@g10code.com>
16235 gpgscm: Simplify hash tables.
16236 + commit 6a3f857224eab108ae38e6259194b01b0ffdad8b
16237 * tests/gpgscm/scheme.c (oblist_add_by_name): We now always get a
16238 slot. Simplify accordingly.
16239 (oblist_find_by_name): Always return the slot.
16240 (vector_elem_slot): New function.
16241 (new_slot_spec_in_env): We now always get a slot. Remove parameter
16242 'env'. Simplify accordingly.
16243 (find_slot_spec_in_env): Always return a slot.
16244 (new_slot_in_env): Adapt callsite.
16245 (opexe_0): Likewise.
16246 (opexe_1): Likewise.
16247 (scheme_define): Likewise.
16249 gpgscm: Remove framework for immediate values.
16250 + commit 38c955599f7c6c20faeec57d8e1df7d2c0eeba18
16251 * tests/gpgscm/scheme.c (IMMEDIATE_TAG): Remove macro.
16252 (is_immediate): Likewise.
16253 (set_immediate): Likewise.
16254 (clr_immediate): Likewise.
16255 (enum scheme_types): Set the LSB in every value.
16256 (fill_vector): Adapt.
16257 (vector_elem): Likewise.
16258 (set_vector_elem): Likewise.
16260 (gc): Test for the LSB to tell typeflags apart from pointers stored in
16261 the same memory location.
16263 2017-03-16 NIIBE Yutaka <gniibe@fsij.org>
16265 agent,g10: Remove redundant SERIALNO request.
16266 + commit 8c8ce8711d9c938fcb982b0341e6b052742cb887
16267 * agent/learncard.c (agent_handle_learn): Don't call
16268 agent_card_serialno. Get the serialno in status response.
16269 * g10/call-agent.c (agent_scd_learn): Don't request "SCD SERIALNO".
16270 (agent_scd_serialno): New.
16271 (card_cardlist_cb, agent_scd_cardlist): New.
16273 2017-03-15 Justus Winter <justus@g10code.com>
16275 tests: Fix using tools from the build directory.
16276 + commit a98459d3f4ec3d196fb0adb0e90dadf40abc8c81
16277 * tests/openpgp/defs.scm (gpg-conf'): Explicitly pass the build prefix
16279 (gpg-components): ... instead of only here.
16281 tests: Dump the tools that the tests are going to use.
16282 + commit c7833eca38fdb8d9ba7b59438ea87d651b8bf7ba
16283 * tests/openpgp/setup.scm: Dump the tools that the tests are going to
16284 use. This will help us diagnose problems with the tests picking the
16285 wrong paths in the future.
16287 build: Remove '--disable-tools' configuration option.
16288 + commit 6993e42088c191f18468317ba2b5b8fbc8c3edff
16289 * Makefile.am (SUBDIRS): Unconditionally include 'tools'.
16290 * configure.ac: Remove '--disable-tools' configuration option.
16292 2017-03-15 NIIBE Yutaka <gniibe@fsij.org>
16294 g10: Fix check of serialno.
16295 + commit 61785b679c542bbd789395fa632eb8b5133b01ad
16296 * g10/card-util.c (card_status): Fix.
16298 g10: Remove unused function.
16299 + commit ed3248219e921ee24f6f1b2985abb7e0945d70e9
16300 * g10/call-agent.c (select_openpgp): Remove.
16302 tests: Fix running python condition.
16303 + commit a672ddec03f96475866d712b28be18b3fab43aef
16304 * tests/gpgme/gpgme-defs.scm (run-python-tests?): We need Python.
16306 2017-03-14 Justus Winter <justus@g10code.com>
16308 tests: Skip Python tests if the bindings are not built.
16309 + commit d82abbb1b6e80d5980e6259ddcfc770e65a6b1b3
16310 * tests/gpgme/wrap.scm (python): Move variable...
16311 * tests/gpgme/gpgme-defs.scm (python): ... here.
16312 (run-python-tests?): New function.
16313 * tests/gpgme/run-tests.scm: Only run Python tests if the bindings can
16314 be located in GPGME's build directory.
16316 2017-03-13 Werner Koch <wk@gnupg.org>
16318 gpg: Flush stdout before printing stats with --check-sigs.
16319 + commit 9a77b3b6e41f97b1209ad61c04b3dd33242ecae8
16320 * g10/keylist.c (print_signature_stats): Flush stdout.
16321 (list_keyblock_colon): Use es_flush instead of fflush.
16323 2017-03-09 Justus Winter <justus@g10code.com>
16325 tests: Run the tests for the Python bindings of GPGME.
16326 + commit 046a15a88c83b40a753b4ad7ecc1456efa5b527f
16327 * tests/gpgme/gpgme-defs.scm (create-file): Write lines.
16328 (create-gpgmehome): Extend function to create the right environment
16329 for the Python tests.
16330 * tests/gpgme/run-tests.scm: Make an environment cache for the Python
16331 tests and enable them.
16332 * tests/gpgme/wrap.scm: Do not hardcode the path of the Python
16335 tests: Rework environment setup.
16336 + commit cca91a3f8f7e3e36b7149fc93f7b6df11d21eb1d
16337 * tests/gpgscm/tests.scm (test::scm): Add a setup argument.
16338 (test::binary): Likewise.
16339 (run-tests-parallel): Remove setup parameter.
16340 (run-tests-sequential): Likewise.
16341 (make-environment-cache): New function that handles the cache
16343 * tests/gpgme/run-tests.scm: Adapt accordingly.
16344 * tests/gpgsm/run-tests.scm: Likewise.
16345 * tests/migrations/run-tests.scm: Likewise.
16346 * tests/openpgp/run-tests.scm: Likewise.
16348 2017-03-08 Werner Koch <wk@gnupg.org>
16350 wks: Put stdout into binary mode for Windows at another place.
16351 + commit ed5575ec550ff16b0b901a23c6aa3eb3d47b0575
16352 * tools/wks-util.c (wks_send_mime): Set stdout to binary.
16354 wks: Put stdout into binary mode for Windows.
16355 + commit 5c83759364272b19ceafbef46d057f0430a12698
16356 * tools/send-mail.c (send_mail_to_file): Call es_set_binary.
16358 2017-03-08 Justus Winter <justus@g10code.com>
16360 build: Use macOS' compatibility macros to enable all features.
16361 + commit dd60e868d2bf649a33dc96e207ffd3b8ae4d35af
16362 * configure.ac: On macOS, use the compatibility macros to expose every
16363 feature of the libc. This is the equivalent of _GNU_SOURCE on GNU
16366 g10: Move more flags into the flag bitfield.
16367 + commit 2649fdfff5d9e227025956e015b67502fd4962c4
16368 * g10/packet.h (PKT_user_id): Move 'is_primary', 'is_revoked', and
16369 'is_expired' into the flags bitfield, and drop the prefix.
16370 * g10/call-dirmngr.c: Adapt accordingly.
16371 * g10/export.c: Likewise.
16372 * g10/getkey.c: Likewise.
16373 * g10/import.c: Likewise.
16374 * g10/kbnode.c: Likewise.
16375 * g10/keyedit.c: Likewise.
16376 * g10/keylist.c: Likewise.
16377 * g10/keyserver.c: Likewise.
16378 * g10/mainproc.c: Likewise.
16379 * g10/pkclist.c: Likewise.
16380 * g10/pubkey-enc.c: Likewise.
16381 * g10/tofu.c: Likewise.
16382 * g10/trust.c: Likewise.
16383 * g10/trustdb.c: Likewise.
16385 2017-03-08 Werner Koch <wk@gnupg.org>
16387 dirmngr: Do not put a keyserver into a new dirmngr.conf.
16388 + commit 8f028642239fa992c6c059e3c1b4421a1813c827
16389 * g10/dirmngr-conf.skel: Do not define keyservers.
16391 doc: Add a note to the trust model direct.
16392 + commit f0257b4a86b73f5b956028e68590b6d2a23ea4da
16393 * doc/gpg.texi (GPG Configuration Options): Add note. Chnage Index
16394 from trust-mode:foo to trust-model:foo.
16396 2017-03-07 Justus Winter <justus@g10code.com>
16398 Revert "build: Improve CFLAGS handling."
16399 + commit b71384c8054ce2f245ccfae02b8ee81e1adfc512
16400 This reverts commit 4b57359ef3ce0b87e15889e12ef0fcd23f62dcb4.
16402 build: Improve CFLAGS handling.
16403 + commit 4b57359ef3ce0b87e15889e12ef0fcd23f62dcb4
16404 * configure.ac: Strip any flags matching '-Werror' from CFLAGS before
16405 running the tests, and add them back later on.
16407 2017-03-07 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
16409 gpgscm: Use system strlwr if available.
16410 + commit c22a2a89d3bd3d08b3abb8e4e33df32b480338ec
16411 * tests/gpgscm/scheme.c: Define local strlwr only when HAVE_STRLWR is
16412 not defined in config.h.
16413 * tests/gpgscm/scheme-config.h: Remove hack.
16415 2017-03-07 Justus Winter <justus@g10code.com>
16417 gpg: Do not allow the user to revoke the last valid UID.
16418 + commit 591b6a9d879cbcabb089d89a26d3c3e0306054e1
16419 * g10/keyedit.c (keyedit_quick_revuid): Merge self signatures, then
16420 make sure that we do not revoke the last valid UID.
16421 (menu_revuid): Make sure that we do not revoke the last valid UID.
16422 * tests/openpgp/quick-key-manipulation.scm: Demonstrate that
16423 '--quick-revoke-uid' can not be used to revoke the last valid UID.
16425 2017-03-07 NIIBE Yutaka <gniibe@fsij.org>
16427 tools: Removal of -Icommon.
16428 + commit 80fb1a8a05b2194af16027555b09bbd5d48ec9ac
16429 * tools/gpg-wks-server.c: Follow the change.
16431 More change for common.
16432 + commit d6c7bf1f8ab8899faba2fb81a35b096921c38f3c
16433 * g10, scd, test, tools: Follow the change of removal of -Icommon.
16435 Remove -I option to common.
16436 + commit 70aca95d6816082b289fceca8eabfcf718a6b701
16437 * dirmngr/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/common.
16438 * g10/Makefile.am (AM_CPPFLAGS): Ditto.
16439 * g13/Makefile.am (AM_CPPFLAGS): Ditto.
16440 * kbx/Makefile.am (AM_CPPFLAGS): Ditto.
16441 * scd/Makefile.am (AM_CPPFLAGS): Ditto.
16442 * sm/Makefile.am (AM_CPPFLAGS): Ditto.
16443 * tools/Makefile.am (AM_CPPFLAGS): Ditto.
16444 * Throughout: Follow the change.
16446 2017-03-07 Justus Winter <justus@g10code.com>
16448 tests: Avoid overflowing signed 32 bit time_t.
16449 + commit de3838372ae3cdecbd83eea2c53c8e2656d93052
16450 * tests/openpgp/quick-key-manipulation.scm: Use expiration times in
16451 the year 2038 instead of 2105 to avoid overflowing 32 bit time_t.
16452 time_t is used internally to parse the expiraton time from the iso
16455 2017-03-07 NIIBE Yutaka <gniibe@fsij.org>
16457 agent: Resolve conflict of util.h.
16458 + commit 176e07ce10d892fa7c7b96725b38b2fec9a1f916
16459 * agent/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/common.
16460 * agent/call-pinentry.c, agent/call-scd.c: Follow the change.
16461 * agent/command-ssh.c, agent/command.c, agent/cvt-openpgp.c: Ditto.
16462 * agent/divert-scd.c, agent/findkey.c, agent/genkey.c: Ditto.
16463 * agent/gpg-agent.c, agent/pksign.c, agent/preset-passphrase.c: Ditto.
16464 * agent/protect-tool.c, agent/protect.c, agent/trustlist.c: Ditto.
16465 * agent/w32main.c: Ditto.
16467 agent: Add include files.
16468 + commit bf03925751abb739f2fd9d631694d3dd33decf92
16469 * agent/command-ssh.c: Add sys/socket.h and sys/un.h.
16471 agent: Fix get_client_pid for portability.
16472 + commit f7f806afa5083617f4aba02fc3b285b06a7d73d4
16473 * configure.ac: Simply check getpeerucred and ucred.h, and structure
16475 * agent/command-ssh.c: Include ucred.h.
16476 (get_client_pid) [HAVE_STRUCT_SOCKPEERCRED_PID]: Use sockpeercred
16477 structure for OpenBSD.
16478 [LOCAL_PEERPID]: Use LOCAL_PEERPID for macOS.
16479 [LOCAL_PEEREID]: Use LOCAL_PEEREID for NetBSD.
16480 [HAVE_GETPEERUCRED]: Use getpeerucred for OpenSolaris.
16482 common: Fix warning for portability.
16483 + commit b9ab733fc0dd2ca2a7eaac0bde3a817c07af36c5
16484 * common/localename.c (do_nl_locale_name): We don't use CATEGORY.
16486 tools: More portable for openpty use.
16487 + commit ce37ada87139ef418401f9f35439007a8c04a856
16488 * configure.ac (AC_CHECK_HEADERS): Add util.h libutil.h and termios.h.
16489 * tools/symcryptrun.c: Include those headers.
16491 scd: Close THE_EVENT handle.
16492 + commit cc933a96f8e83bc66fb69ed33d9593acdd60c929
16493 * scd/scdaemon.c (handle_connections): Close the handle.
16495 2017-03-06 Justus Winter <justus@g10code.com>
16497 tests: Harmonize temporary and socket directory handling.
16498 + commit 7e19786a5ddef637d1d9d21593fecf5a36b6f372
16499 * tests/gpgscm/tests.scm (mkdtemp): Do not magically obey the
16500 environment variable 'TMP', make sure to always return an absolute
16502 * tests/gpgme/Makefile.am (TMP): Drop variable.
16503 (TESTS_ENVIRONMENT): Drop 'TMP'.
16504 * tests/gpgme/gpgme-defs.scm (create-gpgmehome): Start the agent. Do
16505 not create private key store, the agent does that for us.
16506 * tests/gpgsm/Makefile.am (TMP): Drop variable.
16507 (TESTS_ENVIRONMENT): Drop 'TMP'.
16508 * tests/gpgme/gpgme-defs.scm (create-gpgsmhome): Start the agent. Do
16509 not create private key store, the agent does that for us.
16510 * tests/migrations/Makefile.am (TMP): Drop variable.
16511 (TESTS_ENVIRONMENT): Drop 'TMP'.
16512 * tests/migrations/common.scm (gpgconf): New variable.
16513 (run-test): Create and remove socket directory.
16514 * tests/migrations/extended-pkf.scm (src-tarball): Remove variable.
16515 (setup): Remove function.
16516 (trigger-migration): Likewise.
16517 Use 'run-test' to execute the test.
16518 * tests/migrations/from-classic.scm (src-tarball): Remove variable.
16519 (setup): Remove function.
16520 Use 'run-test' to execute the tests.
16521 * tests/openpgp/Makefile.am (TMP): Drop variable.
16522 (TESTS_ENVIRONMENT): Drop 'TMP'.
16523 * tests/openpgp/README: Do not mention 'TMP'.
16524 * tests/openpgp/defs.scm (with-home-directory): New macro.
16525 (create-legacy-gpghome): Do not create private key store, the agent
16527 (start-agent): Make sure to terminate the right agent with 'atexit'.
16529 gpgscm: Fix creation of temporary directories.
16530 + commit 171e4314ebd3ff74af3dcdc8bd68e1100e8910ea
16531 * tests/gpgscm/ffi.c (do_mkdtemp): Use a larger buffer for the
16534 2017-03-06 Werner Koch <wk@gnupg.org>
16536 wks: Set published keys world-readable.
16537 + commit e3589110e01dc6ad04463351ec2ce17201556d09
16538 * tools/gpg-wks-server.c (check_and_publish): Set the permissions.
16540 gpg: Fix attempt to double free an UID structure.
16541 + commit 4a130bbc2c2f4be6e8c6357512a943f435ade28f
16542 * g10/getkey.c (get_best_pubkey_byname): Set released .UID to NULL.
16544 2017-03-06 NIIBE Yutaka <gniibe@fsij.org>
16546 scd: Fix compiler warnings for app-openpgp.c.
16547 + commit e6ca015ae182a6dbb0466441efc17c99683e9375
16548 * scd/app-openpgp.c (retrieve_key_material): Remove touching I.
16549 (do_change_pin): Make sure going to leave if PINVALUE == 0.
16550 (rsa_writekey): Emit simpler log.
16552 scd: More cleanup of old code.
16553 + commit 9bf39ed75ddbd35908bcd0996f55325ff801619a
16554 * scd/app-dinsig.c (do_sign): Remove assignment to HASHALGO.
16555 * scd/app-p15.c (parse_keyusage_flags): Remove assign to MASK.
16556 (read_ef_aodf): Likewise.
16557 (read_ef_cdf): Change the control to parse_error.
16558 * scd/app-sc-hsm.c (parse_keyusage_flags): Remove assign to MASK.
16559 (read_ef_prkd): Remove assign to S.
16560 (read_ef_prkd): Check if PRKDF is not null.
16561 (read_ef_cd): Likewise for CDF.
16563 scd: Clean up old code.
16564 + commit cb6337329d3c858c695a7e56e2fc31d9d50ca3fe
16565 * scd/apdu.c (CT_init, CT_data, CT_close): Remove.
16566 (ct_error_string, ct_activate_card, close_ct_reader, reset_ct_reader)
16567 (ct_get_status, ct_send_apdu, open_ct_reader): Remove.
16568 (new_reader_slot) [NEED_PCSC_WRAPPER]: Remove fd and pid handling.
16569 (writen, readn): Remove.
16570 (pcsc_get_status, pcsc_send_apdu, control_pcsc, close_pcsc_reader)
16571 (reset_pcsc_reader, open_pcsc_reader): Only DIRECT version.
16572 (apdu_open_one_reader): Remove CT_api handling.
16573 (apdu_get_status_internal, send_le): Fix to stop warnings.
16575 scd: Fix API of select_file/_path.
16576 + commit 0703de01c8fbc417a99ecf8e950fc306b8c8ac9c
16577 * scd/iso7816.c (iso7816_select_file, iso7816_select_path): Remove
16579 * scd/app-dinsig.c (do_readcert): Follow the change.
16580 * scd/app-help.c (app_help_read_length_of_cert): Likewise.
16581 * scd/app-nks.c (keygripstr_from_pk_file, do_readcert, do_readkey)
16582 (switch_application): Likewise.
16583 * scd/app-p15.c (select_and_read_binary, select_ef_by_path)
16584 (micardo_mse, app_select_p15): Likewise.
16585 * scd/app.c (app_new_register): Likewise.
16587 agent: For SSH, robustly handling scdaemon's errors.
16588 + commit 4ce4f2f683a17be3ddb93729f3f25014a97934ad
16589 * agent/command-ssh.c (card_key_list): Return 0 when
16590 agent_card_serialno returns an error.
16591 (ssh_handler_request_identities): Handle errors for card listing
16592 and proceed to other cases.
16594 2017-03-03 Werner Koch <wk@gnupg.org>
16596 dirmngr: Fix commit de6d8313.
16597 + commit 67c203b6bf8d6dd489ceef3391f609986e7b7a49
16598 * dirmngr/http-common.c (get_default_keyserver): Fix assert.
16600 2017-03-03 NIIBE Yutaka <gniibe@fsij.org>
16602 scd: Fix scd_kick_the_loop.
16603 + commit f9acc7d18bb90f47dafe7e32ae92f567756d6b12
16604 * scd/scdaemon.c (notify_fd): Remove.
16605 (the_event) [W32]: New.
16606 (main_thread_pid) [!W32]: New.
16607 (handle_signal): Handle SIGCONT.
16608 (scd_kick_the_loop): Use signal on UNIX and event on Windows.
16609 (handle_connections): Likewise.
16611 2017-03-03 Werner Koch <wk@gnupg.org>
16613 gpg: Fix possible segv when attribute packets are filtered.
16614 + commit 5f6f3f5cae8a95ed469129f9677782c17951dab3
16615 * g10/import.c (impex_filter_getval): Handle PKT_ATTRIBUTE the same as
16617 (apply_drop_sig_filter): Ditto.
16619 gpg: Add new variables to the import and export filters.
16620 + commit 1813f3be23bdab5a42070424c47cb8daa9d9e6b7
16621 * g10/import.c (impex_filter_getval): Add new variables "expired",
16622 "revoked", and "disabled".
16624 2017-03-02 Werner Koch <wk@gnupg.org>
16626 tools: Fix compile error with older gcc versions.
16627 + commit b1f48da02b474e985161aa2778d7b602a13c4292
16628 * tools/mime-parser.h: Include rfc822parse.h.
16629 (struct rfc822parse_context): Remove duplicate definition.
16631 dirmngr: Rearrange files to fix de6d831.
16632 + commit 1890896fe698c55d15160a53aa6c5c22dc424031
16633 * dirmngr/http-common.c: New.
16634 * dirmngr/http-common.h: New.
16635 * dirmngr/Makefile.am (dirmngr_SOURCES): Add them.
16636 (t_http_SOURCES): Add them.
16637 (t_ldap_parse_uri_SOURCES): Add them.
16638 * dirmngr/misc.c (get_default_keyserver): Move to ...
16639 * dirmngr/http-common.c: here.
16640 * dirmngr/http.c: Include http-common.h instead of misc.h.
16641 * dirmngr/http-ntbtls.c: Ditto.
16643 dirmngr: Let --gpgconf-list return the default keyserver.
16644 + commit de6d8313f6df32aaa151bee74e1db269ac1e0fed
16645 * dirmngr/misc.c (get_default_keyserver): New.
16646 * dirmngr/http.c: Include misc.h
16647 (http_session_new): Use get_default_keyserver instead of hardwired
16648 "hkps.pool.sks-keyservers.net".
16649 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
16650 * dirmngr/dirmngr.c (main) <aGPGCongList>: Return default keyserver.
16652 2017-03-02 Justus Winter <justus@g10code.com>
16654 gpg: Always initialize the trust db when generating keys.
16655 + commit 0c4d0620d327e8a2069532a5519afefe867a47d6
16656 * g10/gpg.c (main): Always initialize the trust db when generating
16658 * g10/keygen.c (do_generate_keypair): We can now assume that there is
16661 gpg: Fix (quick) key generation with --always-trust.
16662 + commit 4735ab96aa5577d40ba7b3f72d863057198cc6a7
16663 * g10/keygen.c (do_generate_keypair): Only update the ownertrust if we
16664 do have a trust database.
16665 * g10/trustdb.c (have_trustdb): New function.
16666 * g10/trustdb.h (have_trustdb): New prototype.
16667 * tests/openpgp/quick-key-manipulation.scm: Remove workaround.
16669 2017-03-02 Werner Koch <wk@gnupg.org>
16671 agent: Improve error message for the KEYTOCARD command.
16672 + commit d6f0f368763006abf08818bfefcd32ecedb5c20a
16673 * agent/command.c (cmd_keytocard): Always use leave_cmd. Simplify
16674 timestamp checking and do an early test with an appropriate error
16677 2017-03-02 Justus Winter <justus@g10code.com>
16679 g10: Signal an error when trying to revoke non-existant UID.
16680 + commit 62d21a4ab4029b32ea129f1cf3a0e1f22e2fb7b0
16681 * g10/keyedit.c (keyedit_quick_revuid): Signal an error when trying to
16682 revoke non-existant UID.
16683 * tests/openpgp/quick-key-manipulation.scm: Test that.
16685 tests: Log information about ssh, add comments to test.
16686 + commit 74cb3b230c1f99afc5fd09bccc24186a63b154b0
16687 * tests/openpgp/ssh-import.scm (ssh-version-string): New variable, and
16688 log the binary and version used in the test.
16689 (ssh-supports?): Document how we test what algorithms are supported by
16690 ssh, and log ssh-keygen's replies.
16692 common,tools: Always escape newlines when escaping data.
16693 + commit e064c75b08a523f738108428fe0c417a46e66238
16694 * common/stringhelp.c (do_percent_escape): Always escape newlines.
16695 * tools/gpgconf-comp.c (gc_percent_escape): Likewise.
16697 2017-03-01 Werner Koch <wk@gnupg.org>
16700 + commit 4a28c212b35739ce951bd41cfc6ef1a215846b2e
16703 build: Add kludge for "make distcheck" in a release build.
16704 + commit 246b27921b5dc34f367d879402725784aaee2494
16705 * configure.ac: New option --enable-gnupg-builddir-envvar.
16706 (ENABLE_GNUPG_BUILDDIR_ENVVAR): New ac_define.
16707 * common/homedir.c (gnupg_set_builddir_from_env): Consider
16708 ENABLE_GNUPG_BUILDDIR_ENVVAR.
16709 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Rename to ...
16710 (AM_DISTCHECK_CONFIGURE_FLAGS): this to be future proof. Add option
16711 --enable-gnupg-builddir-envvar.
16713 2017-03-01 Yuri Chornoivan <yurchor@ukr.net>
16715 po: Update Ukrainian translation.
16716 + commit c7f2a59833728e99e00449da2ddb10cf66693e7e
16719 2017-03-01 Ineiev <ineiev@gnu.org>
16721 po: Update Russian translation.
16722 + commit 280c724fe26bfd861ac74abc71e221795d8947f0
16725 2017-03-01 Werner Koch <wk@gnupg.org>
16727 gpg: Make --export-options work with --export-secret-keys.
16728 + commit 891ab23411b7f20ef37d8bde81d9857b083235df
16729 * g10/export.c (export_seckeys): Add arg OPTIONS and pass it to
16731 (export_secsubkeys): Ditto.
16732 * g10/gpg.c (main): Pass opt.export_options to export_seckeys and
16735 gpg: Allow creating keys using an existing ECC key.
16736 + commit 2bbdeb8ee87a6c7ec211be16391a11b7c6030bed
16737 * common/sexputil.c (get_pk_algo_from_canon_sexp): Remove arg R_ALGO.
16738 Change to return the algo id. Reimplement using get_pk_algo_from_key.
16739 * g10/keygen.c (check_keygrip): Adjust for change.
16740 * sm/certreqgen-ui.c (check_keygrip): Ditto.
16742 2017-02-28 Werner Koch <wk@gnupg.org>
16744 gpg: Do not require a trustdb for decryption.
16745 + commit e182542e90cbeff4f2ac6c8d71061356d7cdcdea
16746 * g10/trustdb.c (init_trustdb): Add and implement arg NO_CREATE.
16747 Change to return an error code. Change all callers to to pass False
16749 (tdb_get_ownertrust): New arg NO_CREATE. Call init_trustdb to test
16750 for a non-existing trustdb. Change all callers to to pass False for
16752 (tdb_get_min_ownertrust): Ditto.
16753 * g10/trust.c (get_ownertrust_with_min): Add arg NO_CREATE. Call
16754 init_trustdb for a quick check.
16755 (get_ownertrust_info): Add arg NO_CREATE.
16756 (get_ownertrust_string): Ditto.
16757 * g10/gpgv.c (get_ownertrust_info): Adjust stub.
16758 * g10/test-stubs.c (get_ownertrust_info): Ditto.
16759 * g10/mainproc.c (list_node): Call get_ownertrust_info with NO_CREATE
16761 * g10/pubkey-enc.c (get_it): Ditto.
16763 2017-02-28 Justus Winter <justus@g10code.com>
16765 gpgscm: Improve parsing.
16766 + commit e4583ae14e52482ab390c102d071755f91ab211d
16767 * tests/gpgscm/scheme.c (port_increment_current_line): Avoid creating
16768 the same integer if the delta is zero. This happens a lot during
16769 parsing, and puts pressure on the memory allocator.
16771 gpgscm: Fix calculating the line number.
16772 + commit 058c97f9fc485405246b1adfcc905c1891550652
16773 * tests/gpgscm/scheme.c (opexe_5): Only increment the line number on
16776 gpg,tools: Make auto-key-retrieve configurable via gpgconf.
16777 + commit d379a0174cca595204b32da9a66c513a1304e6d0
16778 * g10/gpg.c (gpgconf_list): Add 'auto-key-retrieve'.
16779 * tools/gpgconf-comp.c (gc_options_gpg): Likewise.
16781 tests: Improve support for gpgconf.
16782 + commit 41900175cf046dd9abe3d7a6805f6a403d68df15
16783 * tests/openpgp/defs.scm: Improve high-level inteface to gpgconf.
16784 * tests/openpgp/gpgconf.scm: Adapt.
16785 * tests/openpgp/tofu.scm: Use it to select the trust model.
16787 gpg,tools: Make trust-model configurable via gpgconf.
16788 + commit ebeccd73eb85f9027f0985d77dfe901266c6ddef
16789 * g10/gpg.c (gpgconf_list): Add 'trust-model'.
16790 * tools/gpgconf-comp.c (gc_options_gpg): Likewise.
16792 gpgscm: Track source locations in every kind of ports.
16793 + commit 7cc57e2c63d0fa97569736419db5c76117e7685b
16794 * tests/gpgscm/scheme-private.h (struct port): Move location
16795 information out of the union.
16796 * tests/gpgscm/scheme.c (mark): All ports need marking now.
16797 (gc): Likewise all ports on the load stack.
16798 (port_clear_location): Adapt accordingly. Also, add an empty function
16799 for !SHOW_ERROR_LINE.
16800 (port_increment_current_line): Likewise.
16801 (port_reset_current_line): Drop function in favor of...
16802 (port_init_location): ... this new function.
16803 (file_push): Simplify.
16804 (file_pop): Likewise.
16805 (port_rep_from_filename): Likewise.
16806 (port_rep_from_file): Likewise.
16807 (port_rep_from_string): Also initialize the location.
16808 (port_rep_from_scratch): Likewise.
16809 (port_close): Simplify and generalize.
16810 (skipspace): Likewise.
16812 (_Error_1): Generalize.
16813 (opexe_5): Likewise.
16814 (scheme_deinit): Simplify and generalize.
16815 (scheme_load_named_file): Likewise.
16816 (scheme_load_string): Also initialize the location.
16818 2017-02-28 Werner Koch <wk@gnupg.org>
16820 gpgv,w32: Fix --status-fd.
16821 + commit 8a67dc4c4324b617b5a3fea51c59c674488544d6
16822 * g10/gpgv.c (main): Use translate_sys2libc_fd_int for --status-fd.
16824 w32: Make pipes really pollable.
16825 + commit 1192449207f41b26be8950b04df84a52c8a2a886
16826 * common/exectool.c (gnupg_exec_tool_stream) [W32]: Use _get_osfhandle
16827 to print the fd for the command line.
16828 * common/exechelp-w32.c (create_pipe_and_estream): Use es_sysopen so
16829 that the streams are actually pollable.
16831 2017-02-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
16833 dirmngr: Avoid warnings during non-ntbtls build.
16834 + commit f5782e11a560fd590221042391254c810a42e45f
16835 * dirmngr/t-http.c (my_http_tls_verify_cb): Avoid warnings when not
16838 trustdb: Respect --quiet during --import-ownertrust.
16839 + commit ddf01a67d6388d988f1db50a06facb21c14d9426
16840 * g10/tdbdump.c (import_ownertrust): If opt.quiet is set, do not send
16843 2017-02-26 Manish Goregaokar <manish@mozilla.com>
16846 + commit 64ec21bebd3f136722e608649906b59c6add6947
16847 I already have copyright assignment with the FSF for GDB. I don't
16848 think I'll need to do the DCO thing.
16850 2017-02-24 Werner Koch <wk@gnupg.org>
16852 gpgv: New options --log-file and --debug.
16853 + commit 7af5d61c6e210210c777be9e6e87720dd4a055d9
16854 * g10/gpgv.c (oLoggerFile, oDebug): New consts.
16855 (opts): Add options --log-file and --debug.
16856 (main): Implement options.
16858 2017-02-24 Andre Heinecke <aheinecke@intevation.de>
16860 speedo,w32: Fix gpg-wks-client installation.
16861 + commit 49b4a676148523b51beca3ae929e9d78ed7ba110
16862 * build-aux/speedo/w32/inst.nsi: gpg-wks-client is an exe.
16864 2017-02-23 Werner Koch <wk@gnupg.org>
16866 dirmngr: Add new debug flag "extprog"
16867 + commit 22b69b9edfdf6e6172239cbd1075ffe29077d339
16868 * dirmngr/dirmngr.h (DBG_EXTPROG_VALUE, DBG_EXTPROG): New macros.
16869 * dirmngr/dirmngr.c (debug_flags): Add flag "extprog".
16870 (handle_connections): Use a macro instead of -1 for an invalid socket.
16871 * dirmngr/loadswdb.c (verify_status_cb): Debug the gpgv call.
16873 wks: Make sure that the draft 2 request is correctly detected.
16874 + commit d30e17ac62dea8913b7f353971d546b6b1a09bd5
16875 * tools/gpg-wks.h (WKS_DRAFT_VERSION): New.
16876 * tools/wks-receive.c (new_part): Move test wks draft version to ...
16877 (t2body): new callback.
16878 (wks_receive): Register this callback.
16879 * tools/gpg-wks-server.c (send_confirmation_request): Emit draft
16881 (send_congratulation_message): Ditto.
16882 * tools/gpg-wks-client.c (decrypt_stream_parm_s): New.
16883 (decrypt_stream_status_cb): Check DECRYTPION_KEY status.
16884 (decrypt_stream): Get infor from new callback.
16885 (process_confirmation_request): New arg 'mainfpr'. Check that it
16886 matches the decryption key.
16887 (read_confirmation_request): Check that the decryption key has been
16889 (command_send): Use macro from draft version header.
16890 (send_confirmation_response): Emit draft version header.
16892 wks: New callback for the mime parser.
16893 + commit a2090250829fe8989be2afc8cf41ba2a022072fc
16894 * tools/mime-parser.c (mime_parser_context_s): New field 't2body'.
16895 (parse_message_cb): Call that callback.
16896 (mime_parser_set_t2body): New.
16898 gpg: Emit new status DECRYPTION_KEY.
16899 + commit effa80e0b5fd8cf9e31a984afe391c2406edee8b
16900 * common/status.h (STATUS_DECRYPTION_KEY): New.
16901 * g10/pubkey-enc.c (get_it): Emit that status.
16903 dirmngr,w32: Make https with ntbtls work.
16904 + commit a42bf00b4edce789999aa3bdfce235cf726463ae
16905 * dirmngr/http.c (simple_cookie_functions): New.
16906 (send_request) [HTTP_USE_NTBTLS, W32]: Use es_fopencookie.
16907 (cookie_read): Factor some code out to ...
16908 (read_server): new.
16909 (simple_cookie_read, simple_cookie_write) [W32]: New.
16911 2017-02-22 Werner Koch <wk@gnupg.org>
16913 scd,agent: Improve the OpenPGP PIN prompt texts.
16914 + commit f98c8cb013033c08e98ebedcc0e084fbd2a85b0c
16915 * scd/app-openpgp.c (get_prompt_info): Change texts.
16916 * agent/call-pinentry.c (struct entry_features): New.
16917 (getinfo_features_cb): New.
16918 (start_pinentry): Set new fucntion as status callback.
16919 (build_cmd_setdesc): New. Replace all snprintf for SETDESC by this
16922 2017-02-22 Andre Heinecke <aheinecke@intevation.de>
16924 scd: Nitpicks on the improved card prompts.
16925 + commit 143ca039e1e81140ae520cc1025f8e25c01acc80
16926 * src/app-openpgp.c (get_prompt_info): Change wording and order
16929 2017-02-22 Werner Koch <wk@gnupg.org>
16931 scd: Improve the prompts for OpenPGP cards.
16932 + commit e3944f34e3220f96fb1be449eb6f3d7360bc2d0b
16933 * scd/app-openpgp.c (get_disp_name): New.
16934 (get_disp_serialno): New.
16935 (get_prompt_info): New.
16936 (build_enter_admin_pin_prompt): Rework the prompt texts. Factor some
16938 (get_remaining_tries): New.
16939 (verify_a_chv): Print a remaining counter also for the standard PIN.
16940 Rework the prompt texts.
16942 * agent/divert-scd.c (ask_for_card): Pretty format an OpenPGP serial
16945 agent: Prepend the description to a PIN prompt.
16946 + commit 6488ffb767733a2cf92ca5ba3e61fc0c53e0f673
16947 * agent/divert-scd.c (has_percent0A_suffix): New.
16948 (getpin_cb): Prepend DESC_TEXT to the prompt.
16949 * agent/findkey.c (modify_description): Rename to ...
16950 (agent_modify_description): this. MAke global. Add kludge to remove
16951 empty parentheses from the end.
16952 (agent_key_from_file, agent_delete_key): Adjust for above change.
16953 * agent/pksign.c (agent_pksign_do): Modify DESC_TEXT also when
16954 diverting to a card.
16956 agent: Prepare to pass an additional parameter to the getpin callback.
16957 + commit 78d875a0f83bc046279b951aea76cd74f3c44fd8
16958 * agent/call-scd.c (writekey_parm_s, inq_needpin_s): Merge into ...
16959 (inq_needpin_parm_s): new struct. Add new field 'getpin_cb_desc'.
16960 Change users to set all fields.
16961 (inq_needpin): Pass GETPIN_CB_DESC to the GETPIN_CB.
16962 (agent_card_pksign): Add arg 'desc_text' and change arg 'getpin_cb' to
16963 take an additional arg 'desc_text'.
16964 (agent_card_pkdecrypt): Ditto.
16965 (agent_card_writekey): Change arg 'getpin_cb' to take an additional
16967 (agent_card_scd): Ditto.
16968 * agent/divert-scd.c (getpin_cb): Add new arg 'desc_text'.
16969 (divert_pksign): Add new arg 'desc_text' and pass is to
16971 (divert_pkdecrypt): Add new arg 'desc_text' and pass is to
16972 agent_card_pkdecrypt.
16973 * agent/pkdecrypt.c (agent_pkdecrypt): Pass DESC_TEXT to
16975 * agent/pksign.c (agent_pksign_do): Pass DESC_TEXT to
16978 2017-02-22 NIIBE Yutaka <gniibe@fsij.org>
16980 tests: No spelling fix for test text.
16981 + commit ef424353f342f80ca6d18ede8b63c1b02215d105
16982 * tests/openpgp/verify.scm (msg_ed25519_rshort): Revert the spelling
16985 2017-02-21 Werner Koch <wk@gnupg.org>
16987 dirmngr: Add special treatment for the standard hkps pool to ntbtls.
16988 + commit 831d014550863026dfefa774c961a21bd20c1e48
16989 * dirmngr/validate.h (VALIDATE_FLAG_SYSTRUST): Remove
16990 (VALIDATE_FLAG_EXTRATRUST): Remove
16991 (VALIDATE_FLAG_TRUST_SYSTEM): New.
16992 (VALIDATE_FLAG_TRUST_CONFIG): New.
16993 (VALIDATE_FLAG_TRUST_HKP): New.
16994 (VALIDATE_FLAG_TRUST_HKPSPOOL): New.
16995 (VALIDATE_FLAG_MASK_TRUST): New.
16996 * dirmngr/validate.c (check_header_constants): New.
16997 (validate_cert_chain): Call new function. Simplify call to
16999 * dirmngr/crlcache.c (crl_parse_insert): Pass
17000 VALIDATE_FLAG_TRUST_CONFIG to validate_cert_chain
17001 * dirmngr/server.c (cmd_validate): Use VALDIATE_FLAG_TRUST_SYSTEM and
17002 VALIDATE_FLAG_TRUST_CONFIG.
17003 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Check provided TLS
17004 context. Set trustclass flags using the new VALIDATE_FLAG_TRUST
17007 * dirmngr/certcache.c (cert_cache_init): Load the standard pool
17008 certificate prior to the --hkp-cacerts.
17010 dirmngr: Load --hkp-cacert values into the certificate cache.
17011 + commit d1625a9a82b1e5d96bbbf2132c49c53108565ae1
17012 * dirmngr/dirmngr.c (hkp_cacert_filenames): New var.
17013 (parse_rereadable_options): Store filenames from --hkp-cacert in the
17015 (main, dirmngr_sighup_action): Pass that var to cert_cache_init.
17016 * dirmngr/certcache.c (cert_cache_init): Add arg 'hkp_cacert' and load
17018 (load_certs_from_file): Use autodetect so that PEM and DER encodings
17021 dirmngr: Load "sks-keyservers.netCA.pem" into the cache.
17022 + commit 9741aa24d9056b56cd5366ff5379bd8a3e6118df
17023 * dirmngr/certcache.c (load_certs_from_file): Always build this
17024 function. Add args 'trustclasses' and 'no_error'. Pass TRUSTCLASSES
17026 (load_certs_from_system): Pass CERTTRUST_CLASS_SYSTEM to
17027 load_certs_from_file.
17028 (cert_cache_init): Try to load "sks-keyservers.netCA.pem". Don't make
17029 function fail in an out-of-core condition.
17031 dirmngr: Implement trust classes for the cert cache.
17032 + commit 50b9828eacc39c1ca75cb8313db896e4bdc8b270
17033 * dirmngr/certcache.h (CERTTRUST_CLASS_SYSTEM): New.
17034 (CERTTRUST_CLASS_CONFIG): New.
17035 (CERTTRUST_CLASS_HKP): New.
17036 (CERTTRUST_CLASS_HKPSPOOL): New.
17037 * dirmngr/certcache.c (MAX_EXTRA_CACHED_CERTS): Rename to ...
17038 (MAX_NONPERM_CACHED_CERTS): this.
17039 (total_extra_certificates): Rename to ...
17040 (total_nonperm_certificates): this.
17041 (total_config_certificates): Remove.
17042 (total_trusted_certificates): Remove.
17043 (total_system_trusted_certificates): Remove.
17044 (cert_item_s): Remove field 'flags'. Add fields 'permanent' and
17046 (clean_cache_slot): Clear new fields.
17047 (put_cert): Change for new cert_item_t structure.
17048 (load_certs_from_dir): Rename arg 'are_trusted' to 'trustclass'
17049 (load_certs_from_file): Use CERTTRUST_CLASS_ value for put_cert.
17050 (load_certs_from_w32_store): Ditto.
17051 (cert_cache_init): Ditto.
17052 (cert_cache_print_stats): Rewrite.
17053 (is_trusted_cert): Replace arg 'with_systrust' by 'trustclasses'.
17055 * dirmngr/validate.c (allowed_ca): Pass CERTTRUST_CLASS_CONFIG to
17057 (validate_cert_chain): Pass CERTTRUST_CLASS_ values to
17060 dirmngr: New Assuan option "http-crl".
17061 + commit 493c142e582ff5ef1b5fdfcb9653715ef43e83e9
17062 * dirmngr/dirmngr.h (server_control_s): New flag 'http_no_crl'.
17063 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Set this flag.
17064 * dirmngr/server.c (option_handler): New option "http-crl"
17065 * dirmngr/http.h (HTTP_FLAG_NO_CRL): New flag.
17066 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Consult this flag.
17067 * dirmngr/ks-engine-hkp.c (send_request): Set flag depending on CTRL.
17068 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
17070 * dirmngr/t-http.c (main): New option --no-crl.
17072 dirmngr: Add a magic field to the http structs.
17073 + commit 39c745038181edd097e188434b3f9c971ed3987f
17074 * dirmngr/http.c (HTTP_SESSION_MAGIC): New.
17075 (http_session_s): New field 'magic'.
17076 (HTTP_CONTEXT_MAGIC): New.
17077 (http_context_s): New field 'magic'.
17078 (my_ntbtls_verify_cb): Assert MAGIC.
17079 (fp_onclose_notification): Ditto.
17080 (session_unref): Ditto. Reset MAGIC.
17081 (http_session_new): Set MAGIC.
17082 (http_open): Ditto.
17083 (http_raw_connect): Ditto.
17084 (http_close): Assert MAGIC. Reset MAGIC.
17086 * dirmngr/t-http.c (my_http_tls_verify_cb): MArk HTTP_FLAGS unused.
17088 2017-02-21 NIIBE Yutaka <gniibe@fsij.org>
17090 g10: Support primary key generation by keygrip.
17091 + commit 3fc69224b7b22ad1df1395ebcb21549384839cd1
17092 * g10/keygen.c (para_name): Add pKEYGRIP.
17093 (generate_keypair): Use pKEYGRIP for key generation.
17094 (do_generate_keypair): Call do_create_from_keygrip with pKEYGRIP.
17096 2017-02-20 Werner Koch <wk@gnupg.org>
17098 dirmngr: Setup a log handler for ntbtls.
17099 + commit a022baa4a487eec769411255a64088450c4c8a49
17100 * dirmngr/dirmngr.c (my_ntbtls_log_handler) [HTTP_USE_NTBTLS]: New.
17101 (main) [HTTP_USE_NTBTLS]: Register log handler.
17103 common: New function log_logv_with_prefix.
17104 + commit 3e9512e557d95c7dc36835365b127b25f6a5cdd9
17105 * common/logging.c (do_logv): Add arg 'prefmt' and print it. Chnage
17106 call callers to pass NULL.
17107 (log_logv_with_prefix): New.
17109 dirmngr.c: Make http.c build without any TLS support.
17110 + commit e174893262d8de0f52faa8abe4fc0402719a35d8
17111 * dirmngr/http.c (http_session_new): Remove used of tls_prority.
17113 dirmngr: Make t-http.c work again with gnutls - second try.
17114 + commit 81ea24b8637ac08e44e9e44816689413c2ae7e08
17115 * dirmngr/t-http.c: Always include ksba.h.
17117 dirmngr: Make t-http.c work again with gnutls.
17118 + commit f923873863fd863d71349f20f5568f80aecc020b
17119 * dirmngr/Makefile.am (t_http_CFLAGS, t_http_LDADD): Add KSBA flags
17122 2017-02-19 Werner Koch <wk@gnupg.org>
17124 dirmngr: First take on ntbtls cert verification.
17125 + commit 64fffd0ce2a4fd9cba152cf07497b585410cc652
17126 * dirmngr/http-ntbtls.c: New.
17127 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
17128 * dirmngr/dirmngr.h (SERVER_CONTROL_MAGIC): New.
17129 (server_conrol_s): Add field 'magic',
17130 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Set MAGIC.
17131 (dirmngr_deinit_default_ctrl): Set MAGIC to deadbeef.
17132 * dirmngr/http.c (my_ntbtls_verify_cb): New.
17133 (http_session_new) [HTTP_USE_NTBTLS]: Remove all CA setting code.
17134 (send_request) [HTTP_USE_NTBTLS]: Set the verify callback. Do not call
17135 the verify callback after the handshake.
17136 * dirmngr/ks-engine-hkp.c (send_request): Pass
17137 gnupg_http_tls_verify_cb to http_session_new.
17138 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
17140 * dirmngr/t-http.c (my_http_tls_verify_cb): New.
17141 (main): Rename option --gnutls-debug to --tls-debug.
17142 (main) [HTTP_USE_NTBTLS]: Create a session.
17144 2017-02-18 Werner Koch <wk@gnupg.org>
17146 dirmngr: Add per-session verify callback to http.c.
17147 + commit a74902cccde539ee2bd216caec0da6eb54b67c1b
17148 * dirmngr/http.h (http_verify_cb_t): New type.
17149 * dirmngr/http.c (http_session_s): Add fields flags, verify_cb, and
17151 (http_session_new): Remove arg tls_priority. Add args verify_cb and
17152 verify-cb_value. Store them in the session object.
17153 (send_request): Use per-session verify callback.
17154 (http_verify_server_credentials) [HTTP_USE_NTBTLS]: Return
17155 GPG_ERR_NOT_IMPLEMENTED.
17156 * dirmngr/ks-engine-hkp.c (send_request): Adjust for changed
17158 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
17159 * dirmngr/t-http.c (main): Ditto.
17161 * dirmngr/server.c (do_get_cert_local): Replace xmalloc by malloc.
17163 2017-02-17 Werner Koch <wk@gnupg.org>
17165 dirmngr: Strip the default https port from the Host: header.
17166 + commit cd32ebd152a522e362469ab969d91f8d49f28a60
17167 * dirmngr/http.c (send_request): Strip the default https port.
17169 dirmngr: Add option --no-crl to the VALIDATE cmd.
17170 + commit f07811ee2c0a8044551e2ec063eda61cff7f6e39
17171 * dirmngr/validate.h: Remove enums VALIDATE_MODE_*.
17172 (VALIDATE_FLAG_SYSTRUST, VALIDATE_FLAG_EXTRATRUST)
17173 (VALIDATE_FLAG_CRL, VALIDATE_FLAG_RECURSIVE)
17174 (VALIDATE_FLAG_OCSP, VALIDATE_FLAG_TLS)
17175 (VALIDATE_FLAG_NOCRLCHECK): New constants.
17176 * dirmngr/validate.c (validate_cert_chain): Change arg 'mode' to
17177 'flags'. Change code accordingly. Remove NO-CRL in TLS mode kludge.
17178 * dirmngr/crlcache.c (crl_parse_insert): Change to use flag values for
17179 the validate_cert_chain call.
17180 * dirmngr/server.c (cmd_validate): Ditto. Add new option --no-crl.
17182 dirmngr: Add options --tls and --systrust to the VALIDATE cmd.
17183 + commit 070211eb990f5ea41271eba432b6a6b485cef7c7
17184 * dirmngr/certcache.h (certlist_s, certlist_t): New.
17185 * dirmngr/certcache.c (read_certlist_from_stream): New.
17186 (release_certlist): New.
17187 * dirmngr/server.c (MAX_CERTLIST_LENGTH): New.
17188 (cmd_validate): Add options --tls and --systrust. Implement them
17189 using a kludge for now.
17190 * dirmngr/validate.c (validate_cert_chain): Support systrust
17191 checking. Add kludge to disable the CRL checking for tls mode.
17193 dirmngr: Remove use of hardcoded numbers in validate.
17194 + commit ed99af030d19305dd7cd41c41ac581306cb91fd5
17195 * dirmngr/validate.c (enum cert_usage_modes): New.
17196 (cert_usage_p): Change type of arg MODE. Use enums instead of
17197 hardwired values. Use a switch instead of tricky bit tests.
17198 (cert_use_cert_p, cert_use_ocsp_p, cert_use_crl_p): Adjust.
17200 * dirmngr/validate.c (cert_usage_p): Rename to check_cert_usage.
17201 (cert_use_cert_p): Rename to check_cert_use_cert.
17202 (cert_use_ocsp_p): Rename to check_cert_use_ocsp.
17203 (cert_use_crl_p): Rename to check_cert_use_crl.
17205 * dirmngr/validate.h (VALIDATE_MODE_CERT_SYSTRUST): New.
17206 (VALIDATE_MODE_TLS, VALIDATE_MODE_TLS_SYSTRUST): New.
17208 2017-02-17 NIIBE Yutaka <gniibe@fsij.org>
17210 agent: No cards is not an error.
17211 + commit dea4b3c742acbd195d6ab12b279b4dda315f2582
17212 * agent/command-ssh.c (card_key_list): Care the case of no cards.
17214 agent: Send back all public keys for available cards.
17215 + commit 3f4f64b6ac0d7160fd9e1301f95820894b219c3f
17216 * agent/call-scd.c (card_cardlist_cb, agent_card_cardlist): New.
17217 * agent/command-ssh.c (card_key_list): New.
17218 (ssh_handler_request_identities): Call card_key_list and loop for the
17219 list to send public keys for all available cards.
17221 2017-02-17 Justus Winter <justus@g10code.com>
17223 gpgscm: Guard use of tagged expressions.
17224 + commit aab6ba0bb60528b9e816e430be51170cf39611b0
17225 * tests/gpgscm/init.scm (vm-history-print): Check that the tag added
17226 to expressions when parsing source files matches the expected format.
17227 * tests/gpgscm/lib.scm (assert): Likewise.
17229 2017-02-17 NIIBE Yutaka <gniibe@fsij.org>
17231 scd: Fix RESET command handling (more).
17232 + commit 99d4dfe83661d05ef3a20ed04e6cec5647536738
17233 * scd/app-common.h (struct app_ctx_s): Add reset_requested.
17234 * scd/app.c (app_reset): Locking APP, set reset_requested.
17235 (deallocate_app): Release the lock.
17236 (release_application): Add LOCKED_ALREADY argument.
17237 (scd_update_reader_status_file): Hold the lock when accessing APP.
17238 When reset_requested is set, close the reader and deallocate APP.
17239 * scd/command.c (open_card_with_request, cmd_restart): Follow the
17240 change of release_application.
17241 (send_client_notifications): Here it calls release_application holding
17244 2017-02-16 Werner Koch <wk@gnupg.org>
17246 dirmngr,w32: Load all system provided certificates.
17247 + commit 7006352da773d82c47797bbf11e570ecafac6501
17248 * dirmngr/certcache.c (CERTOPENSYSTEMSTORE) [W32]: New type.
17249 (CERTENUMCERTIFICATESINSTORE) [W32]: New type.
17250 (CERTCLOSESTORE) [W32]: New type.
17251 (load_certs_from_file) [W32]: Do not build.
17252 (load_certs_from_w32_store) [W32]: New.
17253 (load_certs_from_system) [W32]: Call new function.
17255 dirmngr: Load all system provided certificates.
17256 + commit 9a1a5ca0bc2cfb17ccf632de3e134b6d789c6855
17257 * configure.ac: Add option --default-trust-store.
17258 (DEFAULT_TRUST_STORE_FILE): New ac_define.
17259 * dirmngr/certcache.c: Include ksba-io-support.h.
17260 (total_trusted_certificates, total_system_trusted_certificates): New.
17261 (put_cert): Manage the new counters.
17262 (cert_cache_deinit): Reset them.
17263 (cert_cache_print_stats): Print them.
17264 (is_trusted_cert): Add arg WITH_SYSTRUST. Change all callers to pass
17266 (load_certs_from_file): New.
17267 (load_certs_from_system): New.
17268 (cert_cache_init): Load system certificates.
17270 common: Rename remaining symbols in ksba-io-support.
17271 + commit e1dfd862367cf91b66abe86bd73664409354bb14
17272 * common/ksba-io-support.c (gpgsm_reader_eof_seen): Rename to ...
17273 (gnupg_ksba_reader_eof_seen): this. Change all callers.
17274 (gpgsm_destroy_reader): Rename to ...
17275 (gnupg_ksba_destroy_reader): this. Change all callers.
17276 (gpgsm_finish_writer): Rename to ...
17277 (gnupg_ksba_finish_writer): this. Change all callers.
17278 (gpgsm_destroy_writer): Rename to ...
17279 (gnupg_ksba_destroy_writer): this. Change all callers.
17280 * common/ksba-io-support.c (struct base64_context_s): Rename to ...
17281 (gnupg_ksba_io_s): this.
17282 * common/ksba-io-support.h (base64_context_s): Ditto.
17283 (Base64Context): Rename this typedef to ...
17284 (gnupg_ksba_io_t): this. Change all users.
17286 common: Remove gpgsm dependencies from ksba-io-support.
17287 + commit 28c31524be84f20b34573c78bd3a94a81e4b1d61
17288 * common/ksba-io-support.c: Include ksba-io-support.h instead of
17289 ../sm/gpgsm.h. Include util.h.
17290 (writer_cb_parm_s): Remove const from 'pem_name'.
17291 (gpgsm_destroy_writer): Free 'pem_name'.
17292 (gpgsm_create_reader): Rename to ...
17293 (gnupg_ksba_create_reader): this. Replace args CTRL and
17294 ALLOW_MULTI_PEM by a new arg FLAGS. Change the code to evaluate
17295 FLAGS. Change all callers to pass the FLAGS.
17296 (gpgsm_create_writer): Rename to ...
17297 (gnupg_ksba_create_writer): this. Replace arg CTRL by new arg FLAGS.
17298 Add arg PEM_NAME. Evaluate FLAGS. Store a copy of PEM_NAME. Change
17299 all callers to pass the FLAGS and PEM_NAME.
17301 common: Change license of ksba-io-support.c.
17302 + commit 919e76b407ac557b0f518ec03f3cc59e9e5740c9
17303 * common/ksba-io-support.c: Change from GPLv3+ to LGPLv3+/GPLv2+.
17305 sm,common: Move ksba reader and writer support to common/.
17306 + commit 04bfa6fe6597b8ffcec61cbcacdc7eb137444e80
17307 * sm/base64.c: Rename to ...
17308 * common/ksba-io-support.c: this.
17309 * common/ksba-io-support.h: New.
17310 * common/Makefile.am (common_sources): Add new files.
17311 * sm/Makefile.am (gpgsm_SOURCES): Remove base64.c
17313 dirmngr: Prepare certcache for forthcoming changes.
17314 + commit 5c4e67afd6385b48065de6a0f2dd0bfd936ab90b
17315 * dirmngr/certcache.c (cert_item_s): Rename 'flags.loaded' to
17316 'flags.config'. Add 'flags.systrust'.
17317 (total_loaded_certificates): Rename to total_config_certificates.
17318 (put_cert): Rename args for clarity. Set SYSTRUST flag.
17319 (load_certs_from_dir): Make sure put_cert does not set the SYSTRUST
17322 dirmngr: Replace stpcpy chains by strconcat.
17323 + commit aef60abe6a1772e18634984a94bd70f57d57ccdd
17324 * dirmngr/certcache.c (find_cert_bysn): Use strconcat.
17325 (find_cert_bysubject): Ditto.
17326 * dirmngr/http.c (store_header): Ditto.
17327 * dirmngr/ldap.c (make_url): Ditto.
17328 * dirmngr/server.c (get_cert_local_ski): Ditto.
17329 (do_get_cert_local): Use xstrconcat.
17331 2017-02-16 NIIBE Yutaka <gniibe@fsij.org>
17333 scd: Minor fixes to silence compiler warnings.
17334 + commit 7a666ccb44f43c4efbaa51c1ca16fc0b37c3399d
17335 * scd/app.c (app_reset): Initialize ERR.
17336 * scd/scdaemon.c (scd_kick_the_loop, handle_connections): Catch the
17339 2017-02-15 Werner Koch <wk@gnupg.org>
17341 libdns: Workaround for bracketed numerical addresses.
17342 + commit a3509e12b6626a585ce7da6ceed8cfddcba2460f
17343 * dirmngr/dns-stuff.c (resolve_name_libdns): Work around an
17344 incompatibility between the glibc resolver and libdns.
17346 dirmngr: Do PTR lookups only for 'keyserver --hosttable'.
17347 + commit a75325faf163275674a91971e75f1018035ca348
17348 * dirmngr/ks-engine-hkp.c (hostinfo_s): Remove fields v4addr and
17349 v5addr and add fields iporname and iporname_valid.
17350 (create_new_hostinfo): Clear them.
17351 (add_host): Remove the code to set the v4addr and v6addr fields.
17352 (ks_hkp_print_hosttable): Remove printing of the fields. Compute the
17353 iporname field and display it.
17354 (ks_hkp_reload): Force re-computing of the iporname field in
17355 ks_hkp_print_hosttable.
17357 dirmngr: Avoid PTR lookup for hosts in a pool.
17358 + commit da2ba20868093e3054d18adc2b1bc56cb23e4ba7
17359 * dirmngr/ks-engine-hkp.c (add_host): Don't to a PTR lookup for hosts
17362 2017-02-15 Justus Winter <justus@g10code.com>
17364 tests,build: Fix distcheck.
17365 + commit 2f7b6cb279ea0ee27364fbb2b12df47e76166a39
17366 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add 'time.scm'.
17368 tests: Test and document other ways to create keys.
17369 + commit 90d383f1eb07fc823518dea10eb15ca390f5cf8e
17370 * doc/gpg.texi: Clarify usage and expiration arguments for key
17372 * tests/openpgp/quick-key-manipulation.scm: Test all variants.
17374 tests: Check expiration times of created keys.
17375 + commit 127e1e532da4083ccd3c307555b6177fab16f408
17376 * tests/gpgscm/ffi.c (do_get_time): New function.
17377 (ffi_init): Expose new function.
17378 * tests/gpgscm/ffi.scm (get-time): Document new function.
17379 * tests/gpgscm/time.scm: New file.
17380 * tests/openpgp/quick-key-manipulation.scm: Use the new facilities to
17381 check the expiration times of created keys.
17382 * tests/openpgp/tofu.scm: Use the new module.
17384 2017-02-15 NIIBE Yutaka <gniibe@fsij.org>
17386 scd: Fix RESET command handling.
17387 + commit e2792813a55e091c51be7b1b089a71beb6466f1d
17388 * scd/app.c (release_application_internal): Remove.
17389 (release_application): Merge release_application_internal.
17390 (app_reset): Kick the loop and let close the reader. Sleep is
17391 required here to wait closing.
17392 (scd_update_reader_status_file): When APP is no use, close it.
17394 2017-02-14 Werner Koch <wk@gnupg.org>
17396 gpg: Make --export-ssh-key work for the primary key.
17397 + commit b456e5be91dc064fc9509ea86edab113721ed299
17398 * g10/export.c (export_ssh_key): Also check the primary key.
17400 2017-02-13 Werner Koch <wk@gnupg.org>
17402 dirmngr: Do a DNS lookup even if it is missing from nsswitch.conf.
17403 + commit dee026d761ae3d7594c3dbc5b3fa842df53cc189
17404 * dirmngr/dns-stuff.c (libdns_init): Do not print error message for a
17405 missing nsswitch.conf. Make sure that tehre is a DNS entry.
17407 gpgconf: No ENOENT warning with --change-options et al.
17408 + commit 30dac0486b6357e84fbe79c612eea940b654e4d1
17409 * tools/gpgconf-comp.c (retrieve_options_from_program): Check ERRNO
17410 before printing a warning.
17412 gpg: Print a warning if no command has been given.
17413 + commit 810adfd47801fc01e45fb71af9f05c91f7890cdb
17414 * g10/gpg.c (main): Print in the default case.
17416 2017-02-13 Justus Winter <justus@g10code.com>
17418 g13: Fix build on macOS.
17419 + commit f8ce31a7bf1ee85e5010b628a66e6f69486e5213
17420 * g13/Makefile.am (t_common_ldadd): Add iconv.
17422 2017-02-13 NIIBE Yutaka <gniibe@fsij.org>
17424 scd: Fix use case of PC/SC.
17425 + commit da4c132cca2c6df81243c9660b7348268a848f88
17426 * scd/apdu.c (apdu_open_reader): Add an argument APP_EMPTY.
17427 When CCID driver fails to open, try PC/SC if APP is nothing.
17428 * scd/app.c (select_application): Supply arg if APP is nothing.
17430 2017-02-10 Werner Koch <wk@gnupg.org>
17432 gpg: Fix memory leak in the error case of signature creation.
17433 + commit 5996c7bf99f3a681393fd9589276399ebc956cff
17434 * g10/sign.c (write_signature_packets): Free SIG. Also replace
17435 xcalloc by xtrycalloc.
17437 2017-02-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
17439 common: Avoid warning about implicit declaration of gnupg_fd_valid.
17440 + commit 8810314e377a9cb6612150a57cf99260ed0bb9f6
17441 * common/logging.c: Add #include "sysutils.h".
17443 2017-02-08 Justus Winter <justus@g10code.com>
17445 gpg,common: Make sure that all fd given are valid.
17446 + commit 6823ed46584e753de3aba48a00ab738ab009a860
17447 * common/sysutils.c (gnupg_fd_valid): New function.
17448 * common/sysutils.h (gnupg_fd_valid): New declaration.
17449 * common/logging.c (log_set_file): Use the new function.
17450 * g10/cpr.c (set_status_fd): Likewise.
17451 * g10/gpg.c (main): Likewise.
17452 * g10/keylist.c (read_sessionkey_from_fd): Likewise.
17453 * g10/passphrase.c (set_attrib_fd): Likewise.
17454 * tests/openpgp/Makefile.am (XTESTS): Add the new test.
17455 * tests/openpgp/issue2941.scm: New file.
17457 2017-02-07 Justus Winter <justus@g10code.com>
17459 tests: Skip key types not supported by OpenSSH.
17460 + commit 56aa85f88f6b35fb03a2dc1a95882d49a74290e3
17461 * tests/openpgp/ssh-import.scm (path): New variable.
17462 (ssh,ssh-keygen,ssh-version,ssh-supports?): Likewise.
17464 2017-02-07 Werner Koch <wk@gnupg.org>
17466 wks: Add WKS-Phase headers to the server messages.
17467 + commit b30ac663cec82c89ca9a3e87e65b36d2552f1533
17468 * tools/gpg-wks-server.c (send_confirmation_request): Add custom
17470 (send_congratulation_message): Ditto.
17472 2017-02-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
17474 po: Manual updates of nl translation.
17475 + commit aa3f08794bfc809821e2fc30a09a5ae23925c645
17476 * po/nl.po: Apply several minor manual cleanups to nl.po that were
17477 previously applied to all the other localizations.
17479 po: Copied missing nl.po translation from the 2.0 branch.
17480 + commit 8a9d4b55b09d04482b46055f0a60f01b86738df3
17481 * po/nl.po: Copy from 2.0 branch.
17483 gpg: Fix aliases --list-key, --list-sig, and --check-sig.
17484 + commit f31120a5aa40b6e4e89d41d1d5d34e0f7da173b4
17485 * g10/gpg.c (opts): Define commands with ARGPARSE_c
17486 instead of ARGPARSE_s_n.
17488 2017-02-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
17490 doc: Clarify abbreviation of --help.
17491 + commit f2b276dffbe2435b17abf2b3c51684d3636f3f11
17492 * doc/gpg.texi: clarify abbreviation of --help.
17494 2017-02-03 Werner Koch <wk@gnupg.org>
17496 agent: Tell pinentry the hostname the agent is running on.
17497 + commit 042fe711c76f6377cedb8f83a73ba386cee34bb7
17498 * agent/call-pinentry.c [!W32]: Incluse utsname.h
17499 (start_pinentry): Pass nodename to OPTION/owner.
17501 agent: Tell the Pinentry the client's pid.
17502 + commit 309f464a5952c7d7504b875bf4853914b1242346
17503 * configure.ac: Check for SO_PEERCRED et al.
17504 * agent/agent.h (server_control_s): Add field 'client_pid'.
17505 * agent/command.c (start_command_handler): Set CLIENT_PID.
17506 * agent/command-ssh.c (get_client_pid): New.
17507 (start_command_handler_ssh): Set CLIENT_PID.
17508 * agent/call-pinentry.c (start_pinentry): Tell Pinentry the client-pid.
17510 gpg: More diagnostics for a launched pinentry.
17511 + commit 7052a0d77cf8f3a445b252a809d29be445788625
17512 * agent/call-pinentry.c (start_pinentry): Call getinfo/ttyinfo.
17513 * g10/server.c (gpg_proxy_pinentry_notify): Simplify the output so
17514 that we do not change the code when adding new fields to
17517 2017-02-02 Neal H. Walfield <neal@g10code.com>
17519 gpg: Don't assume that strtoul interprets "" as 0.
17520 + commit 407f5f9baea5591f148974240a87dfb43e5efef3
17521 * g10/tofu.c (show_statistics): If there are not records, return 0
17524 tests: Improve description of test.
17525 + commit 64be8e1e8607944687f3ae45ec64aa30bf4fdf6f
17526 * tests/openpgp/issue2929.scm: Improve description of test.
17528 Revert "Revert "tests: Add test demonstrating issue2929.""
17529 + commit e596b21f4b78dd27489e677699cc4ba648051b3f
17530 This reverts commit 59048b0f1aa77313573a1004cd3a9f02692a7521.
17532 gpg: Ensure TOFU bindings associated with UTKs are registered as usual.
17533 + commit 769272ba87f282a69e8d5f9bb27c86e6bec4496b
17534 * g10/tofu.c (get_trust): Call get_policy before short-circuiting the
17535 policy lookup for ultimately trusted keys to make sure the binding is
17536 added to the bindings table, if necessary.
17538 gpg: If there is a TOFU conflict, elide the too few message warning.
17539 + commit a08c781739e7561093f32b732c4991f2bd817ec2
17540 * g10/tofu.c (tofu_get_validity): If there was a conflict, don't also
17541 print out a warning about too few messages.
17543 gpg: Only print out TOFU statistics for conflicts in interactive mode.
17544 + commit 027b81b35fe36692005b8dba22d9eb2db05e8c80
17545 * g10/tofu.c (get_trust): Add arguments POLICYP and CONFLICT_SETP. If
17546 they are not NULL, return the policy and conflict set (if there is
17547 one), respectively. Update callers. If MAY_ASK is FALSE, don't print
17548 out the statistics.
17549 (tofu_register_encryption): If there is a conflict and we haven't yet
17550 printed the statistics about the conflicting bindings, do so now.
17551 (tofu_get_validity): Likewise.
17553 gpg: Add newline to output.
17554 + commit 74268180e5a3acc827f3a369f1fe5971f3bbe285
17555 * g10/tofu.c (ask_about_binding): Add newline to output.
17557 gpg: Remove period at end of warning.
17558 + commit 6f9d8a956b2ca0f5a0eb7acc656fc17af2f2de47
17559 * g10/tofu.c (tofu_register_encryption): Remove period at end of
17562 2017-02-01 Werner Koch <wk@gnupg.org>
17564 dirmngr: New option --no-use-tor and internal changes.
17565 + commit 7440119e729d3fdedda8a9b44b70f8959beea8d7
17566 * dirmngr/dns-stuff.c (disable_dns_tormode): New.
17567 * dirmngr/dirmngr.c (oNoUseTor): New const.
17568 (opts): New option --no-use-tor.
17569 (tor_mode): New var.
17570 (parse_rereadable_options): Change to use TOR_MODE.
17571 (dirmngr_use_tor): New.
17572 (set_tor_mode): Call disable_dns_tormode. Implement oNoUseTor.
17573 * dirmngr/dirmngr.h (opt): Remove field 'use_tor'. Replace all
17574 references by a call to dirmngr_use_tor().
17575 * dirmngr/server.c (cmd_getinfo): Distinguish between default and
17578 2017-02-01 NIIBE Yutaka <gniibe@fsij.org>
17580 scd: Fix regression tracking the connection count.
17581 + commit 8ddc9268f6aedef0e178b174b89245c33d8189dd
17582 * scd/scdaemon.c (get_active_connection_count): New.
17583 (start_connection_thread): Bump ACTIVE_CONNECTIONS up and down.
17584 * scd/command.c (cmd_getinfo): Add subcommand "connections".
17586 2017-01-31 Justus Winter <justus@g10code.com>
17588 gpgscm: Tune the hash tables.
17589 + commit 2e78aa6ff770849415f8eb71ca70c8886e9564c8
17590 * tests/gpgscm/scheme.c (oblist_initial_value): Increase the size of
17591 the hash table based on the number of symbols used after initializing
17593 (new_frame_in_env): Increase the size of the hash table based on the
17594 number of variables in the global environement.
17596 gpgscm: Optimize environment lookups and insertions.
17597 + commit b85d509a8f5c2e6200b8051ca1593c019abce90b
17598 * tests/gpgscm/scheme.c (pointercmp): New function.
17599 (new_slot_spec_in_env): Add and use slot for insertions.
17600 (find_slot_spec_in_env): New variant of 'find_slot_in_env' that
17601 returns the slot on failures.
17602 (find_slot_in_env): Express using the new function.
17603 (new_slot_in_env): Update callsite.
17604 (opexe_0): Optimize lookup-or-insert.
17605 (opexe_1): Likewise.
17606 (scheme_define): Likewise.
17608 gpgscm: Fix build with list environments.
17609 + commit 874424ee3cc795eae9972b6259a2cc4dcdbb868e
17610 * tests/gpgscm/scheme.c (new_slot_spec_in_env): Provide preallocation
17611 inforomation if USE_ALIST_ENV.
17613 gpgscm: Optimize symbol lookups and insertions.
17614 + commit cea6d114b60deaecfbc2eb1aedbdfb7e6700922f
17615 * tests/gpgscm/scheme.c (oblist_find_by_name): Keep the list of
17616 symbols sorted, return the slot where a new symbol must be inserted on
17618 (oblist_add_by_name): Add the new symbol at the given slot.
17619 (mk_symbol): Adjust callsite.
17620 (gensym): Likewise.
17621 (assign_syntax): Likewise.
17623 gpgscm: Fix build with object list.
17624 + commit 8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00
17625 * tests/gpgscm/scheme.c (oblist_add_by_name): Provide preallocation
17626 information if USE_OBJECT_LIST.
17628 gpgscm: Remove unused functions.
17629 + commit 2076cdaf6b93bc73223819895cc7a67323d8cee7
17630 * tests/gpgscm/scheme.c (check_cell_alloced): Remove function.
17631 (check_range_alloced): Likewise.
17633 2017-01-31 Werner Koch <wk@gnupg.org>
17635 dirmngr: Require --allow-version-check even if --use-tor is used.
17636 + commit b0e8376e19072ec3c590273c69ab3e8e5edfdaca
17637 * dirmngr/dirmngr.c (housekeeping_thread): Load swdb only if the
17640 2017-01-31 NIIBE Yutaka <gniibe@fsij.org>
17642 scd: Remove --debug-disable-ticker option.
17643 + commit e17fa5c75d76af4d4684ee810cb446ecd5110560
17644 * scd/scdaemon.c (ticker_disabled): Remove.
17645 (handle_tick, need_tick): Remove.
17646 (handle_connections): Don't check ticker_disabled.
17648 scd: Fix SERIALNO for multiple devices.
17649 + commit f08d37af049bf1718b301644020658dd2bb07638
17650 * scd/app.c (select_application): Fix the logic if periodical check is
17651 needed. If it is needed for newly found device(s), kick the loop.
17652 (scd_update_reader_status_file): Return value if select(2) should be
17653 called with timeout.
17654 * scd/ccid-driver.c (ccid_require_get_status): Don't return 0 for
17655 token with no interrupt transfer for now.
17656 * scd/command.c (open_card_with_request): Fix scan by SERIALNO.
17657 * scd/scdaemon.c (update_usb): Remove.
17658 (handle_connections): Evaluate need_tick after handle_tick.
17660 2017-01-30 Justus Winter <justus@g10code.com>
17662 gpgscm: Use a compact vector representation.
17663 + commit 49e2ae65e892f93be7f87cfaae3392b50a99e4b1
17664 * tests/gpgscm/scheme-private.h (struct cell): Add a compact vector
17666 * tests/gpgscm/scheme.c (vector_length): Use new representation.
17667 (vector_size): New macro.
17668 (get_vector_object): Use the new representation.
17669 (fill_vector): Likewise.
17670 (vector_elem): Likewise.
17671 (set_vector_elem): Likewise.
17673 (gc): Likewise. Be careful not to confuse immediate values for type
17675 (finalize_cell): Vectors now require finalization.
17677 gpgscm: Provide framework for immediate values.
17678 + commit e343984fc50e87830905614dc87f83f810551ad1
17679 * tests/gpgscm/scheme.c (IMMEDIATE_TAG): New macro.
17680 ({is,set,clr}_immediate): Likewise.
17681 (enum scheme_types): Make type tags disjoint from immediate values.
17682 (TYPE_BITS): We need one more bit now.
17683 (ADJ,T_MASKTYPE): Compute values.
17685 gpgscm: Fix setting the line of the first gc reservation.
17686 + commit d27a4435bd8c0f0971d51ddf454422fc77d48271
17687 * tests/gpgscm/scheme.c (_gc_disable): Negate guard.
17689 gpgscm: Introduce macro for the vector length.
17690 + commit 489edf84c9a9c2122cef1b4e678154521525b54a
17691 * tests/gpgscm/scheme.c (vector_length): New macro.
17692 (get_vector_object): Use the new macro.
17693 (oblist_add_by_name): Likewise.
17694 (oblist_find_by_name): Likewise.
17695 (oblist_all_symbols): Likewise.
17696 (mk_vector): Likewise.
17698 (new_slot_spec_in_env): Likewise.
17699 (find_slot_spec_in_env): Likewise.
17700 (opexe_2): Likewise.
17701 (opexe_5): Likewise.
17703 Revert "tests: Add test demonstrating issue2929."
17704 + commit 59048b0f1aa77313573a1004cd3a9f02692a7521
17705 This reverts commit 5aafa56dffefe3fac55b9d0555c7c86e8a07f072.
17707 2017-01-30 NIIBE Yutaka <gniibe@fsij.org>
17709 scd: Fix GetSlotStatus.
17710 + commit 2a025039c1817c7f75c35a898884849a8e5dc926
17711 * scd/apdu.c (get_status_reader): Add ON_WIRE arg, here.
17712 (ct_get_status, pcsc_get_status_direct, pcsc_get_status_wrapped)
17713 (pcsc_get_status, get_status_ccid, my_rapdu_get_status): Likewise.
17714 (reset_pcsc_reader_wrapped, open_pcsc_reader_wrapped): Follow the
17716 (apdu_get_status_internal): It's lower-level driver which judge
17717 it's not needed. Otherwise, it can't detect the removal.
17718 * scd/ccid-driver.c (ccid_slot_status): After the POWERED_OFF check,
17719 we can skip sending GetSlotStatus packet on wire, when no need.
17721 scd: Don't send GET_STATUS packet if not needed.
17722 + commit 7c8eee4d396a751d41fd1ee1e1b87b851fca172a
17723 * scd/apdu.c (apdu_get_status_internal): Add ON_WIRE arg.
17724 (apdu_connect): Call apdu_get_status_internal with ON_WIRE enabled.
17725 (apdu_get_status): For periodical check, call apdu_get_status_internal
17726 with ON_WIRE disabled.
17728 scd: Fix cancel INTERRUPT transfer.
17729 + commit 216afba0d99582d0fbae1d6e925f4ddb349d9de3
17730 * scd/ccid-driver.c (do_close_reader): Don't lock events, but check the
17731 return value of libusb_cancel_transfer.
17733 2017-01-27 NIIBE Yutaka <gniibe@fsij.org>
17735 scd: More changes on watching removal of card/reader.
17736 + commit f3d9b2582bcaa1936b4fed5ec42a889b02df2f42
17737 * scd/app-common.h (struct app_ctx_s): Rename field to
17738 periodical_check_needed.
17739 * scd/scdaemon.c (update_usb): Rename from update_fdset_for_usb.
17740 Don't use libusb_get_pollfds any more.
17741 (scd_kick_the_loop): New.
17742 (need_tick): Follow the rename.
17743 (handle_connections): No libusb event handling here.
17744 * scd/app.c (app_new_register): Follow the change of rename.
17745 (select_application, scd_update_reader_status_file): Likewise.
17746 * scd/ccid-driver.c (ccid_usb_thread_is_alive): New.
17747 (intr_cb): Call scd_kick_the_loop.
17748 (ccid_usb_thread): New. Thread to invoke INTERRUPT callback.
17749 (ccid_open_usb_reader): Add thread invocation.
17750 (ccid_require_get_status): Remove
17751 LIBUSB_WORKS_EXPECTED_FOR_INTERRUPT_ENDP.
17752 (do_close_reader): Carefully handle handle->transfer.
17753 (get_escaped_usb_string): Insert npth_unprotect/npth_protect.
17754 (do_close_reader, bulk_out, bulk_in, abort_cmd, ccid_slot_status)
17755 (ccid_transceive, ccid_transceive_secure): Likewise.
17757 scd: Fix release of transfer object.
17758 + commit f92fe33f11c44f14fd31682259fcd231e8fa9e75
17759 * scd/ccid-driver.c (intr_cb): Handle LIBUSB_TRANSFER_CANCELLED.
17760 (do_close_reader): When callback is active, call
17761 libusb_cancel_transfer and wait callback is fired off.
17763 scd: Improve watching USB device removal.
17764 + commit 25cc8575da9a9b8bf60c64c8059cb5f73cc52e1d
17765 * scd/apdu.c(struct reader_table_s): Add require_get_status.
17766 (apdu_connect): Change return value meaning. Call apdu_reset here.
17767 * scd/app.c (app_new_register): Add require_get_status.
17768 (select_application): Use the return value of apdu_connect.
17769 (scd_update_reader_status_file): Call update_fdset_for_usb with
17770 checking all_have_intr_endp.
17771 (app_list_start, app_list_finish): Remove.
17772 * scd/ccid-driver.c (struct ccid_driver_s): Add transfer.
17773 (intr_cb): Don't call libusb_transfer in this callback.
17774 (ccid_require_get_status): New.
17775 (do_close_reader): Call libusb_transfer here.
17776 * scd/scdaemon.c (update_fdset_for_usb): Remove the first argument.
17778 scd: Wake up the select when new USB scan.
17779 + commit 031e3fa7b9a6770a4de1a184555250feeba0d26f
17780 * scd/scdaemon.c (update_fdset_for_usb): Wake up the select(2).
17781 (handle_connections): Use a kind of "self-pipe" technique.
17783 2017-01-26 NIIBE Yutaka <gniibe@fsij.org>
17785 scd: Only submit apdu_get_status when needed.
17786 + commit 881dcdfd84ebad36bff20c895e629025bed9d94e
17787 * scd/apdu.c (apdu_dev_list_finish): Return Boolean value if
17788 all device support INTERRUPT transfer.
17789 * scd/ccid-driver.c (ccid_dev_scan_finish): Likewise.
17790 * scd/app.c (app_new_register): Fix initial value of card_status.
17791 (select_application): Call update_fdset_for_usb.
17792 (scd_update_reader_status_file): Ditto.
17793 * scd/scdaemon.c (update_fdset_for_usb, need_tick): New.
17794 (handle_connections): Call handle_tick when select returns.
17795 Let select watch USB file descriptors, too.
17796 Call libusb_handle_events_timeout_completed for INTERRUPT transfer.
17798 scd: Fix APP reference counting.
17799 + commit 9b06633c811e8815c07d744f20b45405cb082367
17800 * scd/app.c (scd_update_reader_status_file): Don't call another
17801 release_application_internal.
17802 * scd/command.c (open_card_with_request): Don't require APPTYPE !=
17805 scd: Add INTERRUPT endp support to CCID driver.
17806 + commit bb5ceb78c333129a44c0144f2cf49b17ede898f1
17807 * scd/app.c (scd_update_reader_status_file): Fix releas of APP.
17808 * scd/ccid-driver.c (struct ccid_driver_s): Add INTR_BUF.
17809 (intr_cb, ccid_setup_intr): New.
17810 (ccid_open_usb_reader): Call ccid_setup_intr.
17811 (ccid_slot_status): Return CCID_DRIVER_ERR_NO_READER when removed.
17813 2017-01-25 Justus Winter <justus@g10code.com>
17815 gpg: Fix searching for mail addresses in keyrings.
17816 + commit 3f4f20ee6eff052c88647b820d9ecfdbd8df0f40
17817 * g10/keyring.c (compare_name): Fix KEYDB_SEARCH_MODE_MAIL* searches
17818 in keyrings when the UID is a plain addr-spec.
17820 tests,w32: Fix GPGME tests requiring a pinentry.
17821 + commit 02a39f0d1ed717f6fc33392e6ce4ab421c3bcbba
17822 * tests/gpgme/gpgme-defs.scm: Use our fake pinentry, and configure it
17823 to supply the correct passphrase.
17825 tests,w32: Fix gpgsm signature verification test.
17826 + commit 7d5a0ed792133d875fcedb6e23a9a3682f1a23f9
17827 * tests/gpgsm/verify.scm: Use 'call-with-binary-output-file' to avoid
17828 automatic line-ending conversion.
17830 agent: Fix double free.
17831 + commit e175152ef7515921635bf1e00383e812668d13fc
17832 * agent/cache.c (agent_store_cache_hit): Make sure the update is
17835 tests: Skip GPGME tests that are not built.
17836 + commit 5f2da5d439debf44615a97de788d8f720b517972
17837 * tests/gpgme/wrap.scm: Skip tests that are not built.
17839 tests,w32: Fix locating GPGME's tests on Windows.
17840 + commit 6ecd8b3e71632bbcca524ad735c83bdc2a4c4a4a
17841 * tests/gpgme/run-tests.scm: Qualify the test with the executable
17844 2017-01-24 Werner Koch <wk@gnupg.org>
17846 gpg: Print a warning on Tor problems.
17847 + commit 770b75a746836773909af25ccb9b480e61cea677
17848 * dirmngr/ks-engine-hkp.c (tor_not_running_p): New.
17849 (map_host): Call that to print a warning.
17850 (handle_send_request_error): Ditto and avoid marking the host dead.
17851 Also print a tor_config_problem warning. Add arg CTRL; adjust callers
17852 to pass that new arg.
17853 * g10/call-dirmngr.c (ks_status_cb): Detect and print the new
17856 dirmngr: Simplify error returning inside http.c.
17857 + commit 51e5a5e5a46279809848b4ab4419f35045336010
17858 * dirmngr/http.c (connect_server): Change to return an gpg_error_t
17859 and to store socket at the passed address.
17860 (http_raw_connect, send_request): Adjust accordingly.
17862 dirmngr: New option --disable-ipv4.
17863 + commit 72736af86a501592d974d46ff754a63959e183bd
17864 * dirmngr/dirmngr.c (oDisableIPv4): New const.
17865 (opts): New option --disable-ipv4.
17866 (parse_rereadable_options): Set that option.
17867 * dirmngr/dirmngr.h (opt): New field 'disable_ipv4'.
17868 * dirmngr/dns-stuff.c (opt_disable_ipv4): bew var.
17869 (set_dns_disable_ipv4): New.
17870 (resolve_name_standard): Skip v4 addresses when OPT_DISABLE_IPV4 is
17872 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
17873 (send_request): Pass HTTP_FLAG_IGNORE_IPv4 if opt.disable_v4 is set.
17874 * dirmngr/crlfetch.c (crl_fetch): Ditto.
17875 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Ditto.
17876 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
17877 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
17879 2017-01-24 Justus Winter <justus@g10code.com>
17881 tools: Use platform abstraction for I/O.
17882 + commit 73d6572bd0f260c5aa1e191a1ba4859ec6fa262c
17883 * tools/gpg-connect-agent.c (main): Use a gpgrt_stream_t for
17884 'script_fp'. Adapt accordingly.
17886 tools: Use platform abstraction for I/O.
17887 + commit 77b8aff4e1bb641f497e63230a5006ab70e6c3a8
17888 * tools/gpgconf-comp.c (retrieve_options_from_file): Use a
17889 gpgrt_stream_t for 'list_file'. Adapt accordingly.
17890 (copy_file): Likewise for 'src' and 'dst'.
17891 (change_options_file): Likewise for 'src_file' and 'dest_file'.
17892 (change_options_program): Likewise for 'src_file' and 'dest_file'.
17893 (gc_process_gpgconf_conf): Likewise for 'config'.
17895 tools: Use platform abstraction for renaming files.
17896 + commit bfd75e9492fc4edd86f4049a62304943a7b2a29a
17897 * tools/gpgconf-comp.c (gc_component_change_options): Use
17898 'gnupg_rename_file'. Also, block signals across all renames in an
17899 attempt to make the whole process atomic.
17901 tools: Add comments explaining the functions parameters.
17902 + commit 82e309ad06884e54693f4856412984331febdda0
17903 * tools/gpgconf-comp.c (change_options_file): Add comments explaining
17904 the functions parameters.
17905 (change_options_program): Likewise.
17907 tools: Improve error handling.
17908 + commit b0348fdb26637b0bcbd68a96c1746a1613b309af
17909 * tools/gpgconf-comp.c (gp_component_change_options): Improve error
17910 handling when reading from stdin.
17912 tools: Fix memory leak.
17913 + commit 5b28f025085b386e0ec49535d4cd3f875a414eb0
17914 * tools/gpgconf-comp.c (change_options_file): Fix leak.
17916 tests: Add test demonstrating issue2929.
17917 + commit 5aafa56dffefe3fac55b9d0555c7c86e8a07f072
17918 * tests/openpgp/Makefile.am (XTESTS): Add new test.
17919 * tests/openpgp/issue2929.scm: New file.
17921 tests: Enable gpgconf test.
17922 + commit 628ff843466b42309f850b8d65b13cf5f586b81f
17923 * tests/openpgp/Makefile.am (XTESTS): Re-add gpgconf.scm.
17925 2017-01-23 Werner Koch <wk@gnupg.org>
17928 + commit f8289b1d28f501d2f37bf9ccb5e42f7fb27b4688
17931 build: Change make distcheck configure and temp. remove gpgconf.scm.
17932 + commit 25e029823813e190a18b601af60efcb1fb3b84af
17933 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Also test gpgtar and
17934 wks-tools. Disable ntbtls.
17935 * tests/openpgp/Makefile.am (XTESTS): Temporary remove gpgconf.scm.
17937 Fix format string errors and some missing error case initialization.
17938 + commit af5979a42b9468ffe0f3ac6de5a77d982c5cf8a0
17939 * common/logging.c (do_logv): Remove extra parentheses in comparison.
17941 * dirmngr/dns-stuff.c (resolve_addr_libdns): Init RES so that
17942 dns_res_close is given a defined value in the error case.
17944 * dirmngr/http.c (cookie_read, cookie_write) [HTTP_USE_NTBTLS]: Fix
17945 format string char.
17947 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Remove duplicate "const".
17948 * dirmngr/ks-engine-http.c (ks_http_help): Ditto.
17949 * dirmngr/ks-engine-kdns.c (ks_kdns_help): Ditto.
17950 * dirmngr/ks-engine-ldap.c (ks_ldap_help): Ditto.
17952 * scd/app-p15.c (send_keypairinfo, do_getattr): Fix format string
17954 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Init PID for the
17956 (scdaemon_runtime_change): Ditto.
17957 (dirmngr_runtime_change): Ditto.
17959 * tools/gpgconf.c (query_swdb): Init VALUE_SIZE_UL.
17961 dirmngr: On SIGHUP mark all keyservers alive.
17962 + commit 3ca3da8fc4ef802b8cceec5fde398a07b4888848
17963 * dirmngr/ks-engine-hkp.c (ks_hkp_reload): New.
17964 * dirmngr/dirmngr.c (dirmngr_sighup_action): Call it.
17966 2017-01-23 Gaetan Bisson <bisson@archlinux.org>
17968 libdns: Hack to skip negation term.
17969 + commit d4c0187dd93163f12e9f953366adef81ecf526a6
17970 * dirmngr/dns.c (dns_nssconf_loadfile): Skip negation terms in
17971 nsswitch.conf parser.
17973 2017-01-23 Werner Koch <wk@gnupg.org>
17975 dirmngr: Print debug message only with --debug.
17976 + commit 9ae0b81e4ff08712da642456d0164f81924a91e4
17977 * dirmngr/dns-stuff.c (libdns_init): Call log_debug only if opt_debug
17980 2017-01-23 Phil Pennock <gnupg-devel@spodhuis.org>
17982 dirmngr: Handle missing nsswitch.conf.
17983 + commit 88ade475c56ac3712d6bd6d41ae38e1421dcb320
17984 * dirmngr/dns-stuff.c (libdns_init): Fallback to files,dns.
17986 2017-01-23 Damien Goutte-Gattat <dgouttegattat@incenp.org>
17988 gpg: Fix misleading log message when checking regexp.
17989 + commit a85731ada2d361eacddc5ae92f80d34792dd4b5e
17990 * src/trustdb.c (check_regexp): Correctly print whether the
17991 regexp matched or not.
17993 2017-01-23 Werner Koch <wk@gnupg.org>
17995 gpg: New export and import options "backup" and "restore".
17996 + commit 953d4ec6afd1b42feb7465ee57e48d72f033019a
17997 * g10/export.c (parse_export_options): Add "backup" and its alias
17999 (do_export_one_keyblock): Export ring trust packets in backup mode.
18000 * g10/import.c (parse_import_options): Add "restore" and its alias
18002 (read_block): Import ring trust packets.
18004 2017-01-23 NIIBE Yutaka <gniibe@fsij.org>
18006 scd: Fix INTERRUPT transfer.
18007 + commit 21c9ebb908c2ad2e322e7a13e59e5880494c4d67
18008 * scd/ccid-driver.c (find_endpoint): Don't return Bulk endpoint as
18009 Interrupt endpoint.
18010 (ccid_poll): Call libusb_interrupt_transfer.
18012 2017-01-19 Werner Koch <wk@gnupg.org>
18014 build: Print a commit id in the generated ChangeLog.
18015 + commit e926f30a1cda75f6334b79c303b5134f0441a3dc
18016 * build-aux/gitlog-to-changelog: Print an extra line with the commit
18019 common: Fix buffer copy code again.
18020 + commit e031b3c16cfec583c4322c84d299b355f0849c77
18021 * common/exectool.c (my_error_from_errno): Remove.
18022 (copy_buffer_do_copy): Do without var RC.
18023 (copy_buffer_flush): Ditto. Use ERRNO instead of es_write return
18025 (gnupg_exec_tool): Correctly return errors from es_read.
18027 2017-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
18029 gpg: Allow to freeze faked system time.
18030 + commit 3daeef702b2e6a42f0f396b828f86ffc3f33fc88
18031 * g10/gpg.c (main): If the parameter for --faked-system-time
18032 ends with a '!', freeze time at the specified point.
18033 * common/gettime.c (gnupg_set_time): Allow to freeze the time
18034 at an arbitrary time instead of only the current time.
18035 * doc/gpg.texi: Update documentation for --faked-system-time.
18037 2017-01-19 Werner Koch <wk@gnupg.org>
18039 common: Clarify use of vars in buffer copy code.
18040 + commit 55c9212a2338bf0b07c8cf3a69bcedaa28d48d43
18041 * common/exectool.c (my_error_from_errno): New.
18042 (copy_buffer_do_copy): Use separate vars for errno values and
18043 gpg-error values for clarity. s/assert/log_assert/.
18044 (copy_buffer_flush): Ditto.
18045 (gnupg_exec_tool_stream): Use gpg_err_code when testing.
18047 2017-01-19 NIIBE Yutaka <gniibe@fsij.org>
18049 dirmngr: Add setup of CA for NTBTLS.
18050 + commit 367349b4dcc97718f8ae1163d1389d2a46fc3453
18051 * dirmngr/http.c [HTTP_USE_NTBTLS] (http_session_new): Add CA by
18052 ntbtls_set_ca_chain.
18054 2017-01-18 Justus Winter <justus@g10code.com>
18056 common: Fix flushing copy buffers.
18057 + commit 34fa2d79a07a079be472c3ff486debfdac8c6070
18058 * common/exectool.c (copy_buffer_flush): Write and flush the data, but
18059 do not hide EAGAIN from the caller.
18060 (gnupg_exec_tool_stream): Retry on EAGAIN.
18062 2017-01-18 Werner Koch <wk@gnupg.org>
18064 agent: Reduce sleep time in the progress callback.
18065 + commit 3d356d165aed7d76a3ea811b1d24ed0a05ac90d4
18066 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Reduce sleep time
18067 from 100ms to 1ms or use gpgrt_yield when build against a recent
18070 gpgconf: Allow "all" for --launch, --kill, and --reload.
18071 + commit 2312248b2e3adffa52d8a3ac4f24fe2c88f0f569
18072 * tools/gpgconf-comp.c (gc_component_launch): Allow -1 for COMPONENT.
18073 (gc_component_kill): Ditto.
18074 (gc_component_reload): For robustness change the condition to < 0.
18075 * tools/gpgconf.c (main) <aLaunch, aKill, aReload>: Support argument
18078 gpg: Remove unused definitions.
18079 + commit 701f54eccf3da3319dd6d74f46b852c64d90bc52
18080 * g10/keydb.h (rt_UNKNOWN, rt_RING): Remove constants.
18081 (keyblock_pos_struct, KBPOS): Remove struct and type.
18083 2017-01-18 NIIBE Yutaka <gniibe@fsij.org>
18085 scd: Cleanup SERIALNO protocol.
18086 + commit 79cea89774e6327b6785e22b7057f9e3e188ac2b
18087 * scd/app.c (app_get_serial_and_stamp): Remove.
18088 (app_get_serialno): New.
18089 (app_write_learn_status): Use send_status_direct.
18090 (app_getattr): Use app_get_serialno for SERIALNO and
18091 send with send_status_direct.
18092 * scd/app-openpgp.c (do_getattr): Likewise.
18093 * scd/command.c (cmd_serialno): Don't send TIMESTAMP of 0.
18094 (cmd_learn): Likewise. Don't inquire with TIMESTAMP of 0.
18096 scd: Add "card_list" sub command for GETINFO.
18097 + commit 8b1f24a29ebc7651437c01990215a55b1136dae0
18098 * scd/app.c (app_send_card_list): New.
18099 * scd/command.c (cmd_getinfo): Fix "status" sub command.
18100 Add "card_list" sub command.
18102 2017-01-17 Werner Koch <wk@gnupg.org>
18104 build: Handle packages with dashes in --find-version.
18105 + commit a09f258b1412209763222e2e81bab79663e4d685
18106 * autogen.sh (--find-version): Improve version extraction.
18107 * (--help): Extend.
18109 gpg: Clean bogus subkey binding when cleaning a key.
18110 + commit 356323768a1a29138581d0aceed0336ab8be0d5c
18111 * g10/trust.c (clean_key): Also clean bogus subkey bindings.
18113 gpg: Sync print of additional sig data in --edit-key.
18114 + commit 766c25018b288a7185c6da6adac0dec01a64e94a
18115 * g10/keylist.c (show_policy_url): Implement MODE -1.
18116 (show_keyserver_url): Ditto.
18117 (show_notation): Ditto.
18118 * g10/keyedit.c (print_one_sig): Print policy URL, keyserver URL and
18119 notation data to the tty.
18121 common: Remove unused function tty_print_string.
18122 + commit bae42e543799a428e59bad870aed9719dd6e6e45
18123 * common/ttyio.c (tty_print_string): Rename to ...
18124 (do_print_string): this. Make local. Simplify FP case by using
18125 print_utf8_buffer. Change caller.
18127 gpg: Prepare some key cleaning function for use with secret key packets.
18128 + commit adbfbf608e75cdd72ae7b3a538b91bc0e236a18f
18129 * g10/trust.c (mark_usable_uid_certs): Allow use of secret key packets.
18130 (clean_sigs_from_uid): Ditto.
18131 (clean_uid_from_key): Ditto.
18132 (clean_one_uid): Ditto.
18133 (clean_key): Ditto.
18135 2017-01-16 Werner Koch <wk@gnupg.org>
18137 dirmngr: Implement hkps lookups using literal addresses.
18138 + commit e6aebfe3d0f16c483296fd125b66a44017fe15f4
18139 * dirmngr/ks-engine-hkp.c (map_host): For literal addresses do a
18142 dirmngr: Allow reverse DNS lookups in Tor-mode.
18143 + commit 9850124c7bdf0a0e7c1866abc85f3437257d7095
18144 * dirmngr/dns-stuff.c (resolve_dns_name): Move up in the file.
18145 (resolve_addr_libdns): New.
18146 (resolve_dns_addr): Divert to resolve_dns_addr.
18148 dirmngr: Avoid network queries for literal IP addresses.
18149 + commit daae97bc14742c75408c4eb05808a2102cfe2bcf
18150 * dirmngr/dns-stuff.c (resolve_name_libdns): USe flags AI_NUMERICHOST
18151 for literal IP addresses.
18152 (resolve_name_standard): Ditto.
18154 dirmngr: Fix URL creation for literal IPv6 addresses in HKP.
18155 + commit 82646bbf1a5a7d745da81b239a12667a51703dc1
18156 * dirmngr/dns-stuff.c (is_ip_address): Make the return value depend on
18157 the address family.
18158 * dirmngr/ks-engine-hkp.c (map_host): Rename arg R_POOLNAME to
18159 R_HTTPHOST because that is its purpose. Note that the former
18160 behaviour of storing a NULL to indicate that it is not a pool has not
18162 (make_host_part): Ditto.
18163 (make_host_part): Make sure that literal v6 addresses are correclty
18164 marked in the constructed URL.
18166 2017-01-16 Justus Winter <justus@g10code.com>
18168 tests: Improve GPGHOME handling.
18169 + commit 8b1611a9605b636db3e07a9d81016a11b318724c
18170 * tests/openpgp/defs.scm (GPGHOME): New variable.
18171 * tests/openpgp/ssh-import.scm: Remove redundant code, use 'path-join'.
18172 * tests/openpgp/tofu.scm: Likewise.
18174 2017-01-16 NIIBE Yutaka <gniibe@fsij.org>
18176 agent: Ask specific SERIALNO for pksign/pkdecrypt.
18177 + commit 0801f49b0dc7102943f0e9fa51061f50f5708ca6
18178 * agent/call-scd.c (agent_card_serialno): Add DEMAND argument.
18179 * agent/command-ssh.c (card_key_available): Follow the change.
18180 * agent/learncard.c (agent_handle_learn): Likewise.
18181 * agent/divert-scd.c (ask_for_card): Use DEMAND argument.
18183 scd: Add --demand option for SERIALNO.
18184 + commit 2e6f1c99d4f66a23a752092397e20a84964edf48
18185 * scd/app.c (select_application): Add SERIALNO_BIN and SERIALNO_BIN_LEN
18186 arguments. Return matched APP with a serial number when specified.
18187 * scd/command.c (open_card): Modify for the implicit open only.
18188 (open_card_with_request): New for explicit open and support match with a
18190 (cmd_serialno): Support --demand option.
18191 (cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkauth)
18192 (cmd_pkdecrypt, cmd_getattr, cmd_setattr, cmd_writecert, cmd_writekey)
18193 (cmd_genkey, cmd_random, cmd_passwd, cmd_checkpin, cmd_apdu): Follow
18194 the change of open_card.
18196 2017-01-12 Werner Koch <wk@gnupg.org>
18198 build: Make autogen.sh more POSIX friendly (next try)
18199 + commit 3db76c9277d918dec9721a6439f4db3b3c06aba3
18200 * autogen.sh: Fix dd count to 5.
18202 gpg: Rename a var to avoid a shadowing warning.
18203 + commit c99a09f111c5980ae034faaea61a00d9ad60463c
18204 * g10/keygen.c (keygen_set_std_prefs): Rename variable.
18206 tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.
18207 + commit 5c0777e1ca02ff1767755c417b64d6f78e02f475
18208 * configure.ac (AC_CHECK_HEADERS): Add stdint.h.
18209 * common/t-gettime.c: Include stdint.h.
18210 (UINTMAX_C): Define replacement.
18211 (test_isotime2epoch): Use UINTMAX_C for the >32 bit constants.
18213 build: Make autogen.sh more POSIX friendly.
18214 + commit 3c00b52f7cb0fbd756c0bbe5134b8f2d69c60dd1
18215 * autogen.sh: Replace non POSIX "cp -a" and "head -c".
18217 libdns: Silence -Wstrict-prototypes on some function ptrs.
18218 + commit 97372b39cd9b4c84a083eadbf072fff77799617f
18219 * dirmngr/dns.c (dns_rrtype): Ignore -Wstrict-prototypes warning.
18221 libdns: Provide replacement for EPROTO.
18222 + commit 0fadff9cdde47e42f7e428bc903b3626c67ba9c0
18223 * dirmngr/dns.c (EPROTO) ![EPROTO]: Define to EPROTONOSUPPORT.
18225 2017-01-11 Werner Koch <wk@gnupg.org>
18227 dirmngr: After a connection failure log a hint if Tor is not running.
18228 + commit 20dfcfe08c618d23134d5d6efef7676b090f30d3
18229 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Check whether
18232 dirmngr: Mark hosts dead on ENETDOWN.
18233 + commit 76fb2febde10da8237bbe7613830b51af2a45139
18234 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Take care of
18237 dirmngr: Fix Tor access for v6 addresses.
18238 + commit 09aeac41c97bc8ecb44a09886c7fdbd9a6ec5c7f
18239 * dirmngr/http.c (use_socks): New.
18240 (my_sock_new_for_addr): New.
18241 (connect_server): Replace assuan_sock_new by my_sock_new_for_addr.
18243 dirmngr: Remove warnings about unused global variables.
18244 + commit 915864e7f0315b0c96315d0bcd48b1b93592353a
18245 * dirmngr/crlcache.c (oidstr_issuingDistributionPoint): Comment.
18246 * dirmngr/ocsp.c (oidstr_certHash): Comment.
18248 dirmngr: Implement debug option "network" for http.
18249 + commit da894c48ec3393e7c815f575daa5a52ab37cc102
18250 * dirmngr/dirmngr.c (parse_rereadable_options): Set http debugging.
18252 dirmngr: Add debug code to http.c.
18253 + commit 02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a
18254 * dirmngr/http.c (opt_verbose, opt_debug): New vars.
18255 (http_set_verbose): New function.
18256 (_my_socket_new): Add debug output.
18257 (_my_socket_ref, _my_socket_unref, session_unref): Call log_debug if
18258 OPT_DEBUG has ben set to 2 in a debugger.
18259 (http_session_new, http_session_ref): Ditto.
18260 (send_request, http_start_data): Print debug output for the request.
18261 (parse_response): Change to use log_debug_string for the response.
18263 common: New function log_debug_with_string.
18264 + commit 088d71d3671e74eb088386026f0e439a7e3b5543
18265 * common/logging.c (do_logv): Factor some code out to ...
18266 (print_prefix): new.
18267 (log_logv): Add arg EXTRASTRING and print it. Change all callers to
18269 (log_debug_with_string): New. Uses EXTRASTRING.
18271 2017-01-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18273 common: Avoid unnecessary ambiguity in argparse.
18274 + commit 7249ab0f95d1f6cb8ee61eefedc79801bb56398f
18275 * common/argparse.c (find_long_option): Avoid unnecessary ambiguity.
18277 2017-01-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18279 systemd-user: Enable "systemctl --user reload {dirmngr,gpg-agent}"
18280 + commit a20a450ac4ef10847fd59a5fd3acbbd2bfcaa6a2
18281 * doc/examples/systemd-user/*.service: Add ExecReload directives to
18282 indicate the canonical way to reload the services.
18284 GnuPG recommends reloading the agent and dirmngr with "gpgconf
18285 --reload". if anyone is running them as systemd user services, they
18286 might ask them to reload in the systemd way, so teach systemd the
18289 2017-01-10 Justus Winter <justus@g10code.com>
18291 tests: Improve gpgconf test.
18292 + commit 88e42ef08d65d4d1bc29c6cea48df19ca0d5e2bd
18293 * tests/openpgp/defs.scm (valgrind): New variable.
18294 (gpg-config): Fix clearing an option.
18295 * tests/openpgp/gpgconf.scm: Also toggle 'quiet'.
18297 tools: Fix memory leaks and improve error handling.
18298 + commit 1f5caf90bfaaaf7b9d8c06c12087aeeae3748032
18299 * tools/gpgconf-comp.c (gc_option_free): New function.
18300 (gc_components_free): Likewise.
18301 (gc_components_init): Likewise.
18302 (retrieve_options_from_program): Use 'xfree', fix memory leak.
18303 (change_options_program): Improve error handling.
18304 (gc_component_change_options): Fix memory leaks.
18305 * tools/gpgconf.c (main): Initialize components.
18306 * tools/gpgconf.h (gc_components_init): New prototype.
18308 tests: Add test for gpgconf.
18309 + commit c8cfc62125aceee0ca48aab5c8a9fea1ec1ef652
18310 * tests/openpgp/Makefile.am (XTESTS): Add new test.
18311 * tests/openpgp/defs.scm (percent-encode): New function.
18312 (gpg-conf): Generalize so that we can feed stdin.
18313 (gpg-config): New function.
18314 * tests/openpgp/gpgconf.scm: New file.
18316 common: Fix fallback code.
18317 + commit bfd6a490129ffc7c7ac8776bf5a5da3b1ddf6d42
18318 * common/logging.c (_log_assert): Fix the variant for compilers that
18319 do not support __FUNCTION__.
18320 * common/logging.h (_log_assert): Likewise.
18322 2017-01-09 Werner Koch <wk@gnupg.org>
18324 dirmngr: Use "pgpkey-hkps" and "pgpkey-hkp" for SRV record lookups.
18325 + commit 0cc975d8a1cd54115938202432e43263b8893ea4
18326 * dirmngr/ks-engine-hkp.c (map_host): Chnage arg NO_SRV to SRVTAG.
18327 (make_host_part): Rewrite.
18329 dirmngr: Do not use a SRV record for HKP if a port was specified.
18330 + commit c2cbe2f87c480c62239dc4c2cbb352acd98cd267
18331 * dirmngr/http.h (parsed_uri_s): Add field EXPLICIT_PORT.
18332 * dirmngr/http.c (do_parse_uri): That it.
18333 * dirmngr/ks-engine-hkp.c (map_host): Add arg NO_SRV.
18334 (make_host_part): Ditto.
18335 (ks_hkp_resolve): Set NO_SRV from EXPLICIT_PORT.
18336 (ks_hkp_search): Ditto.
18337 (ks_hkp_get): Ditto.
18338 (ks_hkp_put): Ditto.
18340 2017-01-08 Werner Koch <wk@gnupg.org>
18342 dirmngr: Implement experimental SRV record lookup for WKD.
18343 + commit 88dc3af3d4ae1afe1d5e136bc4c38bc4e7d4cd10
18344 * dirmngr/server.c (cmd_wkd_get): Support SRV records.
18346 dirmngr: Improve debug output for TLS.
18347 + commit 714faea4fa7f30d42e9986358214a99aa8fa57b3
18348 * dirmngr/misc.c (dump_cert): Also print SubjectAltNames.
18350 dirmngr: Change internal SRV lookup API.
18351 + commit 16078f3deea5b82ea26e2f01dbd3ef3a5ce25410
18352 * dirmngr/dns-stuff.c (get_dns_srv): Add args SERVICE and PROTO.
18353 * dirmngr/http.c (connect_server): Simplify SRV lookup.
18354 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
18355 * dirmngr/t-dns-stuff.c (main): Adjust for changed get_dns_srv.
18357 dirmngr: Strip root zone suffix from libdns SRV results.
18358 + commit 9fa94aa10778bbd680315e93b23175423e338c40
18359 * dirmngr/dns-stuff.c (getsrv_libdns): Strip trailing dot from the
18362 2017-01-06 Werner Koch <wk@gnupg.org>
18364 agent,w32: Fix annoying output to DebugView.
18365 + commit 8d774904c8066d8c0f19cfffe2d568979bb8c470
18366 * agent/gpg-agent.c (startup_fd_list): Do not define for W32.
18367 (main) [W32]: Do not call get_all_open_fds.
18369 2017-01-06 NIIBE Yutaka <gniibe@fsij.org>
18371 scd: Fix for --disable-ccid for scdaemon.
18372 + commit 858e14cd794e2a6125d51e652a754bbe26def997
18373 * scd/apdu.c (apdu_dev_list_finish): Don't call ccid_dev_scan_finish
18375 (apdu_open_reader): Only increment when it's zero.
18377 scd: Fix for --disable-ccid-driver.
18378 + commit 62268a2732dddca7a05ca4cf45d0e4338c7dc3c4
18379 * scd/apdu.c [HAVE_LIBUSB] (apdu_dev_list_start): Conditionalize.
18380 [HAVE_LIBUSB] (apdu_dev_list_finish, apdu_open_reader): Likewise.
18382 scd: Support multiple readers by CCID driver.
18383 + commit 8a41e73c31adb86d4a7dca4da695e5ad1347811f
18384 * scd/apdu.c (new_reader_slot): Lock is now in apdu_dev_list_start.
18385 (close_pcsc_reader_direct, close_ccid_reader): RDRNAME is handled...
18386 (apdu_close_reader): ... by this function now.
18387 (apdu_prepare_exit): Likewise.
18388 (open_ccid_reader): Open with dev_list.
18389 (apdu_dev_list_start, apdu_dev_list_finish): New.
18390 (apdu_open_one_reader): New.
18391 (apdu_open_reader): Support multiple readers.
18392 * scd/app.c (select_application): With SCAN, opening all readers
18393 available, and register as new APP.
18394 (app_write_learn_status): app->ref_count == 0 is valid for APP which is
18396 (app_list_start, app_list_finish): New.
18397 * scd/ccid-driver.c (struct ccid_driver_s): Remove RID and BCD_DEVICE.
18399 (parse_ccid_descriptor): BCD_DEVICE is now on the arguments.
18400 (ccid_dev_scan, ccid_dev_scan_finish): New.
18401 (ccid_get_BAI, ccid_compare_BAI, ccid_open_usb_reader): New.
18402 (ccid_open_reader): Support multiple readers.
18403 (ccid_set_progress_cb, ccid_close_reader): No RID any more.
18405 2017-01-05 Werner Koch <wk@gnupg.org>
18407 Silence two -Wlogical-op warnings.
18408 + commit 6170eb809033c9d144abf3b1f31f8b936878cdd4
18409 * common/tlv.c (parse_ber_header): Avoid compiler warning about a
18410 duplicate condition.
18411 * tools/gpgtar-create.c (pattern_valid_p): Likewise.
18413 2017-01-05 Justus Winter <justus@g10code.com>
18415 tests: New test for --{show,override}-session-key.
18416 + commit 168c8c9d79a817c1f08a9ef976dab377f8c4c69e
18417 * tests/openpgp/Makefile.am (XTESTS): Add new test.
18418 * tests/openpgp/decrypt-session-key.scm: New file.
18421 + commit 4ded213698123a425393b89a800fda2a4ec5229d
18422 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Make
18423 hygienic, use define-macro, do not change to the ephemeral home
18425 * tests/gpgsm/setup.scm: Change to the ephemeral home directory.
18426 * tests/openpgp/setup.scm: Likewise.
18428 2017-01-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18430 g10: avoid warning when --disable-tofu.
18431 + commit 38671cfe5a2a40bb991619f4cb992c42b5f1e8cd
18432 If configured with --disable-tofu, we see compiler warnings about an
18433 unused variable. This should remove those warnings.
18435 2017-01-04 Justus Winter <justus@g10code.com>
18437 tests,w32: Fix locating the components.
18438 + commit 28e149609da44fab600f6a11b385d1c8ca8e7eb9
18439 * tests/openpgp/defs.scm (percent-decode): New function.
18440 (bin-prefix): New variable.
18441 (installed?): Likewise.
18442 (tool-hardcoded): Use the new variables.
18443 (gpg-conf): Use the new function to decode the values.
18444 (gpg-components): Do not use '--build-prefix' when 'installed?'.
18446 2017-01-03 Werner Koch <wk@gnupg.org>
18448 dirmngr: Make sure Tor mode is also set for DNS on SIGHUP.
18449 + commit 969512401603639e4467ede7d892f1b02582c2c9
18450 * dirmngr/dns-stuff.c (enable_dns_tormode): Always succeed.
18451 (reload_dns_stuff): Reset tor port.
18452 * dirmngr/dirmngr.c (set_tor_mode): Also enable Tor mode for DNS.
18453 (main): Remove warning that Tor mode may not fully work.
18454 * dirmngr/server.c (cmd_dns_cert): Remove explicit Tor for DNS
18456 * dirmngr/t-dns-stuff.c (main): Remove option --new-circuit and error
18457 checking for enable_dns_tormode.
18459 dirmngr: New debug message on correctly initialized libdns.
18460 + commit 0004d52ba2f1245c84f95a151342ad99fd72ca3d
18461 * dirmngr/dns-stuff.c (libdns_init): Add debug level diagnostic on
18464 2017-01-02 Justus Winter <justus@g10code.com>
18466 common: Turn assertions into expressions.
18467 + commit a1e0d4a1e75fc6e6c3392a4e1d1d27005b38d6cc
18468 * common/logging.h (log_assert): Turn this into an expression so it
18469 can be used in expressions.
18471 tests: Fix faked time in the TOFU test.
18472 + commit 6d065198337b5242889723481bfa9ce81aa108bb
18473 * tests/openpgp/tofu.scm (GPG): Fix time delta.
18475 2017-01-02 Werner Koch <wk@gnupg.org>
18477 g13: Improve printing of debug infos.
18478 + commit 5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49
18479 * g13/g13tuple.c (all_printable): Make it work.
18481 Replace use of variable-length-arrays.
18482 + commit 6b84ecbf312d98ac8cce9fe5facdc815bc742fa1
18483 * common/t-iobuf.c (main): Replace variable-length-array.
18484 * g10/gpgcompose.c (mksubpkt_callback): Ditto.
18485 (encrypted): Ditto.
18486 * g10/t-stutter.c (log_hexdump): Ditto.
18487 (oracle_test): Ditto.
18488 * g10/tofu.c (get_policy): Ditto. Use "%zu" for size_t.
18489 * scd/app-openpgp.c (ecc_writekey): Replace variable-length-array.
18490 Check for zero length OID_LEN.
18492 2017-01-02 Justus Winter <justus@g10code.com>
18494 gpgscm: Fail if too many arguments are given.
18495 + commit b0e14bd6ff8401b12b2b39f75aef94d3ad28017f
18496 * tests/gpgscm/scheme.c (opexe_0): Enable check.
18497 * tests/gpgscm/tests.scm (test::report): Remove superfluous argument.
18499 gpgscm: Add 'finally', rework all macros.
18500 + commit b79274a3b7e58f88e9a8c1dc1fb24dd3e983543c
18501 * tests/gpgscm/init.scm (finally): New macro.
18502 * tests/gpgscm/tests.scm (letfd): Rewrite.
18503 (with-working-directory): Likewise.
18504 (with-temporary-working-directory): Likewise.
18505 (lettmp): Likewise.
18507 gpgscm: Use boxed values for source locations.
18508 + commit e8b843508dac96e9d0a3140954dd5a3618669cec
18509 * tests/gpgscm/scheme-private.h (struct port): Use boxed values for
18510 filename and current line. This allows us to use the same Scheme
18511 object for labeling all expressions in a file.
18512 * tests/gpgscm/scheme.c (file_push): Use boxed type for filename.
18513 (mark): Mark location objects of port objects.
18514 (gc): Mark location objects in the load stack.
18515 (port_clear_location): New function.
18516 (port_reset_current_line): Likewise.
18517 (port_increment_current_line): Likewise.
18518 (file_pop): Adapt accordingly.
18519 (port_rep_from_filename): Likewise.
18520 (port_rep_from_file): Likewise.
18521 (port_close): Likewise.
18522 (skipspace): Likewise.
18524 (_Error_1): Likewise.
18525 (opexe_0): Likewise.
18526 (opexe_5): Likewise.
18527 (scheme_deinit): Likewise.
18528 (scheme_load_file): Likewise.
18529 (scheme_load_named_file): Likewise.
18531 2017-01-02 Werner Koch <wk@gnupg.org>
18533 dirmngr: Strip root zone suffix from libdns cname results.
18534 + commit b200e636ab20d2aa93d9f71f3789db5a04af0a56
18535 * dirmngr/dns-stuff.c (resolve_name_libdns): Strip trailing dot.
18536 (get_dns_cname_libdns): Ditto.
18538 2016-12-30 NIIBE Yutaka <gniibe@fsij.org>
18540 scd: Fix select_application.
18541 + commit 337690441fcb19343fe56b139f5649bed7d25c83
18542 * scd/app.c (select_application): Fix the condition for open.
18544 scd: Fix card removal monitor.
18545 + commit f300e12a793d59deb1a369713384eaabfa39b3e6
18546 * scd/app.c (app_reset): Call send_client_notification with REMOVAL.
18547 (scd_update_reader_status_file): Likewise.
18548 * scd/command.c (send_client_notifications): Distinguish removal.
18550 2016-12-29 NIIBE Yutaka <gniibe@fsij.org>
18552 scd: Improve internal CCID driver.
18553 + commit cdc8d0bd933b958db878861587322bc541b580b3
18554 * scd/ccid-driver.c (scan_or_find_usb_device): Don't scan for
18555 configuration but use active configuration. Support alt_setting.
18556 (scan_or_find_devices): Support alt_setting.
18557 (ccid_open_reader): Support alt_setting.
18559 scd: Fix a race condition for new_reader_slot.
18560 + commit c48cf7e32ffa02ebdf00265543344c611bef0431
18561 * scd/apdu.c (reader_table_lock, apdu_init): New.
18562 (new_reader_slot): Serialize by reader_table_lock.
18563 * scd/app.c (lock_app, unlock_app, app_new_register): Fix error code
18565 (initialize_module_command): Call apdu_init.
18566 * scd/scdaemon.c (main): Handle error for initialize_module_command.
18568 2016-12-28 NIIBE Yutaka <gniibe@fsij.org>
18570 scd: APP centric approach for device management.
18571 + commit 4cc9fc5eb9bd91d943c185d59da4a2b4cb885ee6
18572 * scd/app.c (lock_app): Rename from lock_reader and use internal field
18574 (unlock_app): Likewise.
18575 (app_dump_state): Use APP.
18576 (application_notify_card_reset): Remove.
18577 (check_conflict): Change API for APP, instead of SLOT.
18578 (check_application_conflict): Likewise.
18579 (release_application_internal): New.
18581 (app_new_register): New.
18582 (select_application): Change API for APP, instead of SLOT.
18583 (deallocate_app, release_application): Modify for manage link.
18584 (report_change): New.
18585 (scd_update_reader_status_file): Moved from command.c and
18586 use APP list, instead of VREADER.
18587 (initialize_module_command): Moved from command.c.
18589 * scd/command.c (TEST_CARD_REMOVAL): Remove.
18590 (IS_LOCKED): Simplify.
18591 (vreader_table): Remove.
18592 (vreader_slot, update_card_removed): Remove.
18593 (do_reset): Call app_reset.
18594 (get_current_reader): Remove.
18595 (open_card): Add SCAN arg.
18596 (cmd_serialno): No retry, since retry is done in lower layer in apdu.c.
18597 No do_reset, since it is done in lower layer.
18598 Add clearing card_removed flag.
18599 (cmd_disconnect): Call apdu_disconnect.
18600 (send_client_notifications): Modify for APP.
18601 (update_reader_status_file): Remove.
18603 scd: Simplify monitoring card removal.
18604 + commit f9882d8336feea96e3b5e250e9093f8cca01e08b
18605 * scd/apdu.c (struct reader_table_s): Remove any_status, last_status,
18606 status, and change_counter field.
18607 (new_reader_slot, dump_reader_status, ct_activate_card, open_ct_reader)
18608 (connect_pcsc_card, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
18609 (open_ccid_reader, apdu_reset): Follow the change.
18610 (ct_dump_reader_status): Remove.
18611 (apdu_get_status_internal, apdu_get_status): Remove CHANGED arg.
18612 (apdu_connect): Follow the change.
18613 * scd/command.c (struct vreader_s): Remove reset_failed, any, and
18615 (cmd_getinfo, update_reader_status_file): Follow the change.
18617 2016-12-27 NIIBE Yutaka <gniibe@fsij.org>
18619 scd: Improve internal CCID driver.
18620 + commit c7ec9c42246033e14ebad679d11f3b1fbeed23b7
18621 * scd/ccid-driver.c (scan_or_find_usb_device): Fix return value.
18622 Support device with multiple CCID interfaces. Fix the case with
18623 READERNO. Support partial string match of "reader-port" like PC/SC
18626 2016-12-23 NIIBE Yutaka <gniibe@fsij.org>
18628 dirmngr: Fix for --disable-libdns usage.
18629 + commit d26c51825e2255fe58305cbc1cd74fa43f80d93e
18630 * dirmngr/dns-stuff.c (enable_recursive_resolver, set_dns_nameserver)
18631 (reload_dns_stuff): Conditionalize with USE_LIBDNS.
18632 (get_h_errno_as_gpg_error): Map HOST_NOT_FOUND to GPG_ERR_NO_NAME.
18634 2016-12-22 Neal H. Walfield <neal@g10code.com>
18636 tools: Show a clearer error message if a server doesn't support WKS.
18637 + commit 1909e994cb87d6c6866a465f0c20a456d4df46cc
18638 * tools/gpg-wks-client.c (command_send): If we fail to lookup the
18639 submission address, print a better error message. If it is because
18640 the corresponding file doesn't exist, provide the hint that the server
18641 probably doesn't support WKS.
18643 2016-12-22 Werner Koch <wk@gnupg.org>
18645 wks: Let the client ignore missing policy flags.
18646 + commit e917dfcd973a3ebbf5eb584e819ffa89f932bfef
18647 * tools/gpg-wks-client.c (command_send): Ignore missing policy flags.
18649 2016-12-22 NIIBE Yutaka <gniibe@fsij.org>
18651 scd: Clean up internal API for APP.
18652 + commit 8431f5a7e88e1f42d75c4a4b61f4aa9b35457204
18653 * scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
18654 app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
18655 the second argument.
18656 * scd/app.c: Supply CTRL to lock_reader calls.
18657 * scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
18658 cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
18661 2016-12-21 Justus Winter <justus@g10code.com>
18663 gpgscm: Guard use of union member.
18664 + commit 6e96cdd41a0e55b672309431062f37c4a4a9f485
18665 * tests/gpgscm/scheme.c (opexe_5): Check that we have a file port
18666 before accessing filename. Fixes a crash on 32-bit architectures.
18668 2016-12-20 Werner Koch <wk@gnupg.org>
18670 tests: Avoid skipping exectool tests.
18671 + commit 6204f8104fea42d706a68e77e2dc0bca4704bddc
18672 * common/t-exectool.c (test_executing_true): Try also /usr/bin/true.
18673 (test_executing_false): Try also /usr/bin/false.
18675 2016-12-20 Justus Winter <justus@g10code.com>
18677 tests: Add test suite for gpgsm.
18678 + commit 36c14139285982def6ad942d4b2d8bef7ed4ea76
18679 * configure.ac (AC_CONFIG_FILES): Add new file.
18680 * tests/Makefile.am (SUBDIRS): Add new directory.
18681 * tests/gpgsm/32100C27173EF6E9C4E9A25D3D69F86D37A4F939: New file.
18682 * tests/gpgsm/Makefile.am: Likewise.
18683 * tests/gpgsm/cert_dfn_pca01.der: Likewise.
18684 * tests/gpgsm/cert_dfn_pca15.der: Likewise.
18685 * tests/gpgsm/cert_g10code_test1.der: Likewise.
18686 * tests/gpgsm/decrypt.scm: Likewise.
18687 * tests/gpgsm/encrypt.scm: Likewise.
18688 * tests/gpgsm/export.scm: Likewise.
18689 * tests/gpgsm/gpgsm-defs.scm: Likewise.
18690 * tests/gpgsm/import.scm: Likewise.
18691 * tests/gpgsm/plain-1.cms.asc: Likewise.
18692 * tests/gpgsm/plain-2.cms.asc: Likewise.
18693 * tests/gpgsm/plain-3.cms.asc: Likewise.
18694 * tests/gpgsm/plain-large.cms.asc: Likewise.
18695 * tests/gpgsm/run-tests.scm: Likewise.
18696 * tests/gpgsm/setup.scm: Likewise.
18697 * tests/gpgsm/shell.scm: Likewise.
18698 * tests/gpgsm/sign.scm: Likewise.
18699 * tests/gpgsm/verify.scm: Likewise.
18701 tests: Add macro managing ephemeral home directories.
18702 + commit c067a012c764218b94ce8de2914615a895a75f3e
18703 * tests/openpgp/defs.scm (with-ephemeral-home-directory): New macro.
18704 * tests/openpgp/setup.scm: Use the new macro.
18706 tests: Move argument parser.
18707 + commit a30c0a6972cabde3858108e9020e900696094843
18708 * tests/gpgme/gpgme-defs.scm (flag): Move...
18709 * tests/gpgscm/tests.scm: ... over here.
18711 tests: Add missing encrypted sample, cleanup samples handling.
18712 + commit e2ed3c1597daf3188ddce049cc3c50113d56f1b9
18713 * tests/openpgp/Makefile.am (TEST_FILES): Add new file.
18714 * tests/openpgp/defs.scm (plain-files): Add 'plain-large'.
18715 (all-files): New variable.
18716 (create-sample-files): New function.
18717 (create-legacy-gpghome): Use new function.
18718 * tests/openpgp/plain-large.asc: New file.
18720 2016-12-20 Werner Koch <wk@gnupg.org>
18723 + commit ade32464a25fdb35cc0f39e46d303ceba68ea8f6
18726 sm: Remove wrong example from gpgsm --help.
18727 + commit 13465e708bb67e816e4fb3a37c117ad91dc6383f
18728 * sm/gpgsm.c (opts): Remove group 303.
18730 dirmngr: New option --resolver-timeout.
18731 + commit 81c012787fabf734d9c952c6f18ecac21929d4d8
18732 * dirmngr/dns-stuff.c (DEFAULT_TIMEOUT): New.
18733 (opt_timeout): New var.
18734 (set_dns_timeout): New.
18735 (libdns_res_open): Set the default timeout.
18736 (libdns_res_wait): Use configurable timeout.
18737 (resolve_name_libdns): Ditto.
18739 * dirmngr/dirmngr.c (oResolverTimeout): New const.
18740 (opts): New option --resolver-timeout.
18741 (parse_rereadable_options): Set that option.
18742 (main) <aGPGConfList>: Add --nameserver and --resolver-timeout.
18743 * tools/gpgconf-comp.c (gc_options_dirmngr): Add --resolver-timeout
18746 * dirmngr/http.c (connect_server): Fix yesterday introduced bug in
18749 2016-12-19 Werner Koch <wk@gnupg.org>
18751 dirmngr: Fix problems with the getsrv function.
18752 + commit af8b68fae39b1378c769e0de6ba6437ea1aac7e3
18753 * dirmngr/dns-stuff.c (opt_debug, opt_verbose): New vars.
18754 (set_dns_verbose): New func.
18755 (libdns_switch_port_p): Add debug output.
18756 (resolve_dns_name): Ditto.
18757 (get_dns_cert): Ditto.
18758 (get_dns_cname): Ditto.
18759 (getsrv_libdns, getsrv_standard): Change SRVCOUNT to an unsigend int.
18760 (getsrv): Rename to ...
18761 ((get_dns_srv): this. Add arg R_COUNT and return an error. Add debug
18763 * dirmngr/http.c: Adjust for chnaged getsrv().
18764 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
18765 * dirmngr/t-dns-stuff.c (main): Ditto. Call set_dns_verbose.
18766 * dirmngr/dirmngr.c (parse_rereadable_options): Call set_dns_verbose.
18768 build: Add target to sign the windows installer.
18769 + commit 284ec54495dddc9eb0232e959cf994234097578a
18770 * build-aux/speedo.mk (w32-sign-installer): New.
18771 (AUTHENTICODE_KEY): New.
18772 (installer-from-source): Use cp instead of mv. Factor code out to ...
18773 (MKSWDB_commands): new macro.
18774 (sign-installer): New.
18776 2016-12-19 Justus Winter <justus@g10code.com>
18778 tests: Use the common test framework for the migration tests.
18779 + commit 65a0d6a24e6299682793f213a9d2bae17c5b12d9
18780 * tests/migrations/Makefile.am (reqired_pgms): Add 'gpgscm'.
18781 (TESTS_ENVIRONMENT): Populate.
18782 (TESTS): Rename to 'XTESTS'.
18783 (xcheck): New target.
18784 (EXTRA_DIST): Add new files.
18785 (CLEANFILES): Remove log files.
18786 * tests/migrations/common.scm: Honor 'verbose', fix paths.
18787 * tests/migrations/run-tests.scm: New file.
18788 * tests/migrations/setup.scm: Likewise.
18790 tests: Use sequential test runner if only one test is given.
18791 + commit 0bf16d702665a269ce5ef724c927fbbd8f7f1ce9
18792 * tests/openpgp/run-tests.scm: Use sequential test runner if only one
18795 2016-12-19 Werner Koch <wk@gnupg.org>
18797 dirmngr,w32: Hack around a select problem.
18798 + commit d51499fdc522a696f23c6776c3ab248742f4e06a
18799 * dirmngr/dns.c (FD_SETSIZE): Bump up to 1024.
18800 (dns_poll): Return an error instead of hitting an assertion failure.
18802 2016-12-19 Neal H. Walfield <neal@g10code.com>
18804 test: Extend TOFU tests to also check the days with signatures.
18805 + commit aec89a7297bae30f79a63fdc830530e82bab6170
18806 * tests/openpgp/tofu.scm (GPGTIME): Define the "standard" base time.
18807 (faketime): New function.
18808 (days->seconds): Likewise.
18809 (GPG): Use faketime.
18810 (check-counts): Also check the number of expected days with signatures
18811 and encryptions. Update callers. Extend tests.
18813 2016-12-19 Justus Winter <justus@g10code.com>
18815 tests: New test for --delete-[secret-]keys.
18816 + commit a1afc450e182af02ad5e6f6ba79e9dc4332ca2bc
18817 * tests/openpgp/Makefile.am (XTESTS): Add new test.
18818 * tests/openpgp/defs.scm (keys): New variable.
18819 (have-public-key?): New function.
18820 (have-secret-key?): Likewise.
18821 (have-secret-key-file?): Likewise.
18822 * tests/openpgp/delete-keys.scm: New file.
18823 * tests/openpgp/quick-key-manipulation.scm: Move the accessors to
18826 gpgscm: Change associativity of ::.
18827 + commit a45dc0849da0d944ec8c759bc8e3e733b1eb0079
18828 * tests/gpgscm/scheme.c (mk_atom): Change associativity of the ::
18829 infix-operator. This makes it possible to naturally express accessing
18830 nested structures (e.g. a::b::c).
18832 gpgscm: Display location when assertions fail.
18833 + commit 3949cbd1128585c9b810713aeffaa1455fb5aed9
18834 * tests/gpgscm/lib.scm (assert): Use location information if
18837 gpgscm: Make exception handling more robust.
18838 + commit df00745d6eed7034b218a0c482a46d975425798a
18839 * tests/gpgscm/init.scm (throw'): Check that args is a list.
18841 2016-12-19 Andre Heinecke <aheinecke@intevation.de>
18843 speedo,w32: Use nsExec::ExecToLog to avoid popups.
18844 + commit 026bbf0d5ee4510967e5f1dd3db2dee4687b0612
18845 * build-aux/speedo/w32/inst.nsi: Use ExecToLog instead of
18848 2016-12-19 Werner Koch <wk@gnupg.org>
18850 Remove unused debug flags and add "dns" and "network".
18851 + commit e384405b6e251629fb36bcbba4f5f9ac15a39d10
18852 * g10/options.h (DBG_CARD_IO_VALUE, DBG_CARD_IO): Remove.
18853 * g10/gpg.c (debug_flags): Remove "cardio".
18854 * agent/agent.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
18855 * agent/gpg-agent.c (debug_flags): Remove "command".
18856 * scd/scdaemon.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
18857 * scd/scdaemon.c (debug_flags): Remove "command".
18858 * dirmngr/dirmngr.h (DBG_DNS_VALUE, DBG_DNS): New.
18859 (DBG_NETWORK_VALUE, DNG_NETWORK): New.
18860 * dirmngr/dirmngr.c (debug_flags): Add "dns" and "network".
18862 2016-12-17 Werner Koch <wk@gnupg.org>
18864 dirmngr: Fix setup of libdns for W32.
18865 + commit e77b924fec1082faae48cdd2ff8474874a22bdf7
18866 * configure.ac (DNSLIB) {W32]: Add -liphlpapi.
18867 * dirmngr/dns-stuff.c [W32]: Include iphlpapi.h and define
18868 WIN32_LEAN_AND_MEAN.
18869 (libdns_init) [W32]: Use GetNetworkParams to get the nameserver.
18870 * dirmngr/t-dns-stuff.c (init_sockets): New.
18873 2016-12-16 Werner Koch <wk@gnupg.org>
18875 dirmngr: Auto-switch from Tor port to Torbrowser port.
18876 + commit 024dbd7162fc1a7694176ebad3c21ee3ea67c024
18877 * dirmngr/dns-stuff.c (libdns_tor_port): New var.
18878 (set_dns_nameserver): Clear that var.
18879 (libdns_init): Init var to the default port.
18880 (libdns_switch_port_p): New func.
18881 (resolve_dns_name): Use function to switch the port
18882 (get_dns_cert): Ditto.
18884 (get_dns_cname): Ditto.
18886 dirmngr: Use one context for all libdns queries.
18887 + commit c4e8a3194d6b92f596a6483e486c645de7d2ddd1
18888 * dirmngr/dns-stuff.c (libdns_reinit_pending): New var.
18889 (enable_recursive_resolver): Set var.
18890 (set_dns_nameserver): Ditto.
18891 (libdns_init): Avoid double initialization.
18892 (libdns_deinit): New.
18893 (reload_dns_stuff): New.
18894 (libdns_res_open): Act upon LIBDNS_REINIT_PENDING.
18895 * dirmngr/t-dns-stuff.c (main): Call reload_dns_stuff to release
18897 * dirmngr/dirmngr.c (cleanup): Ditto.
18898 (dirmngr_sighup_action): Call reload_dns_stuff to set
18899 LIBDNS_REINIT_PENDING.
18901 dirmngr: Pass Tor credentials to libdns.
18902 + commit ddb48086833f8b86f0f0d69b21a23f245090ea7a
18903 * dirmngr/dns-stuff.c (tor_credentials): Replace by ...
18904 (tor_socks_user, tor_socks_password): new vars.
18905 (enable_dns_tormode): Set these new vars.
18906 (libdns_res_open): Tell libdns the socks credentials.
18908 dirmngr: Factor common libdns code out.
18909 + commit 59d3c3e4baffff52548fb5d1766ebf02dd8e1bec
18910 * dirmngr/dns-stuff.c (libdns_res_open): New. Replace all libdns_init
18911 and dns-res_open by a call to this func.
18912 (libdns_res_submit): New wrapper. Replace all dns_res_sumbit calls.
18913 (libdns_res_wait): New function.
18914 (resolve_name_libdns): Replace loop by libdns_res_wait.
18915 (get_dns_cert_libdns): Ditto.
18916 (getsrv_libdns): Ditto.
18918 gpg,sm: A few more option for --gpgconf-list.
18919 + commit 48671f295ff233765689b6a73021f83ab845a28f
18920 * g10/gpg.c (gpgconf_list): Add --compliance and
18921 --default-new-key-algo.
18922 (parse_compliance_option):
18923 * sm/gpgsm.c (main) <gpgconf-list>: Add --enable-crl-checks.
18925 gpgconf: New command --apply-profile.
18926 + commit 76cd64a5baf6057b199c01f7999b327f1f4a87bc
18927 * tools/gpgconf.c (aApplyProfile): New.
18928 (opts): New command --apply-profile.
18929 (main): Implement that command.
18930 * tools/gpgconf-comp.c (option_check_validity): Add arg VERBATIM.
18931 (change_options_program): Ditto.
18932 (change_one_value): Ditto.
18933 (gc_component_change_options): Ditto.
18934 (gc_apply_profile): New.
18936 gpgconf: Fix --apply-defaults.
18937 + commit 6ca3c28da46873416822bf6ab7893db6c56a49d6
18938 * tools/gpgconf-comp.c: Skip pinentry also in process_all mode.
18940 2016-12-16 Justus Winter <justus@g10code.com>
18942 doc: Mention extra information in pinentry status lines.
18943 + commit 12a5265afa7f87ad92fb571e0882e57b07a3c267
18944 * doc/DETAILS: Mention that 'PINENTRY_LAUNCHED may carry extra
18947 sm: Fix agent communication.
18948 + commit 3c7d6a1769ed6cc90d86247a814a0dce341512a3
18949 * sm/call-agent.c (gpgsm_agent_pksign): Fix passing the control handle
18951 (gpgsm_scd_pksign): Likewise.
18952 (gpgsm_agent_reaedkey): Likewise.
18954 2016-12-16 Neal H. Walfield <neal@g10code.com>
18957 + commit a165fa09be4bfbeb97ebe25d551a9045255e5028
18958 * doc/gpg.texi: Remove comment about options being parsed in-order.
18961 g10: Use total days, not total messages to compute TOFU validity.
18962 + commit 4a2c210b75d4266e289712e73a42c286aabb07f0
18963 * g10/tofu.c (write_stats_status): Use the number of days with
18964 signatures / encryptions to compute the validity, not the total number
18965 of signatures / encryptions.
18966 (BASIC_TRUST_THRESHOLD): Adjust given the new semantics.
18967 (FULL_TRUST_THRESHOLD): Likewise.
18969 g10: Extend TOFU_STATS to emit <sign-days> and <encyrption-days>
18970 + commit 94f6b9010d2e80a75ccbb21426faf0b30195f1ab
18971 * doc/DETAILS: Add SIGN-DAYS and ENCRYPT-DAYS to the TOFU_STATS status
18973 * g10/tofu.c (write_stats_status): Take additional parameters
18974 signature_days and encryption_days. Update callers. Include them in
18975 the tfs record and TOFU status lines.
18976 (show_statistics): Compute the number of days on which we saw a
18977 message signed by FINGERPRINT, and the number of days on which we
18978 encrypted a message to it.
18980 2016-12-16 Justus Winter <justus@g10code.com>
18982 doc: Improve section on unattended key generation.
18983 + commit ca02a8b78fca8815388a859962584d75169ae3ee
18984 * doc/gpg.texi: Improve the subsection on unattended key generation by
18985 suggesting the quick key manipulation interface as an alternative, and
18986 by suggesting alternatives to '%pubring' and '%secring'. Simplify
18987 examples accordingly.
18989 doc: Add documentation for programmatic use of GnuPG.
18990 + commit 116a78eb869c4c589228bd0d6deff7c7a9f92dfb
18991 * doc/gpg.texi: New subsections on programmatic use of GnuPG,
18992 ephemeral home directories, and the quick key manipulation interface.
18994 2016-12-16 Neal H. Walfield <neal@g10code.com>
18996 g10: On a TOFU conflict, write the conflicting keys to the status fd.
18997 + commit fea9da4a8afab6f3a49cdbbcc4a7a21f27a6d3e8
18998 * g10/tofu.c (ask_about_binding): Emit all of the conflicting keys and
18999 their statistics on the status fd.
19000 (get_trust): Likewise, if we don't call ask_about_binding.
19001 (show_statistics): Have the caller pass the policy as returned by
19002 get_policy. Add argument only_status_fd and don't emit any output on
19003 stdout if it is set. Update callers.
19005 g10: Add missing space.
19006 + commit 6caa2d0ba2bfc0ae93878738b0169483f6b6b462
19007 * g10/tofu.c (tofu_register_encryption): Add missing space.
19009 2016-12-15 Justus Winter <justus@g10code.com>
19011 g10: Avoid translating simple error messages.
19012 + commit 6b16b02109f4bb5b934e456667ff4c0ba7bc85fd
19013 * g10/gpg.c (main): Avoid translating arguments to 'wrong_args'.
19015 g10: Rework the --quick-* interface.
19016 + commit 41ad04d403de05abe54280d2a84aa51a603194e4
19017 * g10/gpg.c (opts): Rename options.
19018 (main): Update errors.
19019 * doc/gpg.texi: Update accordingly.
19021 g10: Rename 'card-edit' to 'edit-card'.
19022 + commit 6e4396723e9e5865015ebf7033628fa3919cf7d1
19023 * g10/gpg.c (opts): Rename option.
19024 * g10/call-agent.c (agent_scd_learn): Update comment.
19025 * doc/gpg.texi: Update accordingly.
19027 g10: Spell out --desig-revoke.
19028 + commit 3c691097ca144e9a1d4c9185636c59a848bec85c
19029 * g10/gpg.c (opts): Rename option.
19030 * doc/gpg.texi: Update accordingly.
19032 g10: Shorten unreasonably long option.
19033 + commit c252627c6fd93bc305c5a5a2f013c3de2d45c6b0
19034 * g10/gpg.c (opts): Rename 'generate-revocation-certificate' to
19035 'generate-revocation'.
19036 * doc/gpg.texi: Update accordingly.
19037 * po: Update translations.
19039 doc: Add aliases of all changed options.
19040 + commit bc6b76ef26f31c54ae1c29c761b8ecc437fcf565
19041 * doc/gpg.texi: Add the old version of every option that was updated
19042 with the last change set.
19043 * doc/gpgsm.texi: Likewise.
19045 2016-12-15 Werner Koch <wk@gnupg.org>
19047 dirmngr: First patch to re-enable Tor support.
19048 + commit 2d1760ffe2ff46b77bd0f38db8b781d9564ae999
19049 * dirmngr/dns-stuff.c (SOCKS_PORT, TOR_PORT, TOR_PORT2): New
19051 (libdns_init): Start adding tor support.
19052 (resolve_name_libdns): Pass socks hosts to dns_res_open.
19053 (get_dns_cert_libdns): Ditto.
19054 (getsrv_libdns): Ditto.
19055 (get_dns_cname_libdns): Ditto.
19057 2016-12-15 Justus Winter <justus@g10code.com>
19059 build: Fix distcheck.
19060 + commit 0e2055c7d30d987a7a74923a7080b80cce470601
19061 * tests/gpgme/Makefile.am (CLEANFILES): New variable, clean test logs.
19063 2016-12-14 Justus Winter <justus@g10code.com>
19065 tests: Reuse GPGME's tests.
19066 + commit 948cca9c99e701a1668bb5fd6e25f07e35381b4d
19067 * configure.ac (AC_CONFIG_FILES): Add new Makefile.
19068 * tests/Makefile.am (SUBDIRS): Add new directory.
19069 * tests/gpgme/Makefile.am: New file.
19070 * tests/gpgme/gpgme-defs.scm: Likewise.
19071 * tests/gpgme/run-tests.scm: Likewise.
19072 * tests/gpgme/setup.scm: Likewise.
19073 * tests/gpgme/wrap.scm: Likewise.
19075 common: Support locating components in the build tree.
19076 + commit ca1e9749bfb069d90aa44efbf6f3d611b6104c1b
19077 * common/homedir.c (gnupg_build_directory): New variable.
19078 (gnupg_module_name_called): Likewise.
19079 (gnupg_set_builddir): New function.
19080 (gnupg_set_builddir_from_env): Likewise.
19081 (gnupg_module_name): Support locating components in the build tree.
19082 * common/util.h (gnupg_set_builddir): New prototype.
19083 * tests/openpgp/defs.scm (tools): Drop 'gpg and 'gpg-agent.
19084 (tool): Rename to 'tool-hardcoded.
19085 (gpg-conf): New function, with accessors for the results.
19086 (gpg-components): New variable.
19087 (tool): New function.
19088 * tools/gpgconf.c (enum cmd_and_opt_values): New key.
19089 (opts): New option '--build-prefix'.
19090 (main): Handle new option.
19092 tests: Rework check for trust models.
19093 + commit 55dc81125abc43cd3cc8db951fc3b8a81767942d
19094 * tests/openpgp/defs.scm (gpg-has-option?): New function.
19095 (have-opt-always-trust): Use a simpler test for that option. This way
19096 that is less distracting when we run the tests with verbose=3.
19098 2016-12-14 Werner Koch <wk@gnupg.org>
19100 dirmngr: New configure option --disable-libdns.
19101 + commit d34a2bb410c7c770d26430d69ff77bd83fc407f1
19102 * configure.ac: Add option --disable-libdns
19103 (USE_LIBDNS): New ac_subst and am_conditional.
19104 (USE_C99_CFLAGS): Set only if libdns is used.
19105 * dirmngr/Makefile.am (dirmngr_SOURCES): Move dns.c and dns.h to ...
19106 (dirmngr_SOURCES) [USE_LIBDNS0: here.
19107 (t_common_src): Ditto.
19108 * dirmngr/dirmngr.c (oRecursiveResolver): New constant.
19109 (opts): New option "--recursive-resolver".
19110 (parse_rereadable_options): Set option.
19111 * dirmngr/t-dns-stuff.c (main): Add option --recursive-resolver.
19112 * dirmngr/server.c (cmd_getinfo): Depend output of "dnsinfo" on the
19114 * dirmngr/dns-stuff.c: Include dns.h only if USE_DNSLIB is defined.
19115 Also build and call dnslib functions only if USE_DNSLIB is defined.
19116 (recursive_resolver): New var.
19117 (enable_recursive_resolver): New func.
19118 (recursive_resolver_p): New func.
19120 dirmngr: Implement CERT record lookup via libdns.
19121 + commit 3c2a7918eac024b5e1258ea9b272b4e8a1f1af43
19122 * dirmngr/dns-stuff.c (get_dns_cert_libdns): New.
19123 (get_dns_cert_standard): Fix URL malloc checking.
19125 dirmngr: Implement CNAME and SRV record lookup via libdns.
19126 + commit 4c13e4e3debe0e55e86ae29c095f2d86eb0a6f11
19127 * dirmngr/dns-stuff.c (dns_free): New macro.
19128 (libdns): Move var to the top.
19129 (libdns_error_to_gpg_error): Map error codes to the new gpg-error
19131 (resolve_name_libdns): Restructure code.
19132 (getsrv_libdns): New.
19133 (get_dns_cname_libdns): New.
19135 dirmngr: Fix bugs in the standard resolver code.
19136 + commit 4a030f682ef48542ed324b28207f2c2b4847dbef
19137 * dirmngr/dns-stuff.c: Include dirmngr-err.h to set the correct error
19139 (get_h_errno_as_gpg_error): New.
19140 (get_dns_cert_libdns): Fix error code.
19141 (getsrv_libdns): Add arg R_COUNT and return an error code.
19142 (getsrv_standard): Ditto. Fix handling of res_query errors and
19143 provide the correct size for the return buffer.
19144 (getsrv): Adjust for changed worker functions.
19145 (get_dns_cname_standard): Fix handling of res_query errors and provide
19146 the correct size for the return buffer.
19148 dirmngr: Require a c99 compiler.
19149 + commit 392966aed9b2a5e1456c671e5d13b561a27e4bb2
19150 * configure.ac (USE_C99_CFLAGS): New ac_subst. Set to -std=gnu99 for
19152 * dirmngr/Makefile.am (AM_CFLAGS): Add USE_C99_CFLAGS.
19153 (t_http_CFLAGS): Ditto.
19154 (t_ldap_parse_uri_CFLAGS): Ditto.
19155 (t_dns_stuff_CFLAGS): Ditto.
19157 doc: Add license notes for libdns.
19158 + commit d84f5a88233c073a82fd47728574b001343784ee
19159 * COPYING.other: New.
19160 * Makefile.am (EXTRA_DIST): Add it.
19161 * AUTHORS: Add info on libdns.
19162 * build-aux/speedo/w32/pkg-copyright.txt: Add license terms.
19164 common: Add replacements for error codes from gpg-error 1.26.
19165 + commit aae68a3ccd3d9870162b3ffd49eae08d5bf1b1e1
19168 2016-12-14 Justus Winter <justus@g10code.com>
19170 dirmngr: New libdns snapshot.
19171 + commit f8ab2c4c70ad15c4b2e45492606fb94ddaccdac7
19174 dirmngr: Add basic libdns support.
19175 + commit f6acd0426453d3a18536ca69d63baa0d971082ef
19176 * dirmngr/dns.c: New file.
19177 * dirmngr/dns.h: New file.
19178 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new files.
19179 * dirmngr/dns-stuff.c: Include dns.h.xxx use libdns
19180 (libdns): New global var for the libdns state.
19181 (libdns_error_to_gpg_error): New.
19182 (libdns_init): New.
19183 (resolve_name_libdns): New.
19184 (get_dns_cert_libdns): New stub.
19185 (getsrv_libdns): New stub.
19186 (get_dns_cname_libdns): New stub.
19188 dirmngr,build: Remove support for ADNS.
19189 + commit 2e734a3ce159de8fb60df2bd5d454f98ca710717
19190 * autogen.rc: Remove '--with-adns' argument.
19191 * configure.ac: Remove check for ADNS.
19192 * dirmngr/dns-stuff.c: Remove all code that uses ADNS.
19193 * dirmngr/server.c (cmd_getinfo): Update status line.
19194 * doc/dirmngr.texi: Do not mention ADNS.
19196 2016-12-14 NIIBE Yutaka <gniibe@fsij.org>
19198 dirmngr: Improve ntbtls support.
19199 + commit 57aa42ce9b28bc17ac24491d595766fbf80762af
19200 * dirmngr/http.c [HTTP_USE_NTBTLS] (close_tls_session): Release.
19201 (send_request): Call ntbtls_set_transport.
19202 (cookie_read, cookie_write): Implement.
19203 (cookie_close): Add initial implementation for ntbtls.
19205 2016-12-13 Justus Winter <justus@g10code.com>
19207 g10,sm: Spell out --passwd.
19208 + commit c1c35fb887061de05661f3411eda97546e1a52d7
19209 * g10/gpg.c (opts): Spell out option.
19210 * sm/gpgsm.c (opts): Likewise.
19211 * doc/gpg.texi: Update accordingly.
19212 * doc/gpgsm.texi: Likewise.
19214 g10: Spell out --gen-revoke.
19215 + commit ec1bd3ae685e95563e38077ab3c1655fd55dea07
19216 * g10/gpg.c (opts): Spell out option.
19217 * doc/gpg.texi: Update accordingly.
19218 * po: Update translations.
19220 g10: Spell out --full-gen-key.
19221 + commit 09163a6390bd9713f3a7946de739765b30ef6f64
19222 * g10/gpg.c (opts): Spell out option.
19224 * g10/keygen.c (generate_keypair): Likewise.
19225 * doc/gpg.texi: Update accordingly.
19227 g10,sm: Spell out --gen-key.
19228 + commit 892c827e72b1396e3b58e2f8869cc48328a2b59c
19229 * g10/gpg.c (opts): Spell out option.
19230 * sm/gpgsm.c (opts): Likewise.
19231 * doc/gpg.texi: Update accordingly.
19233 g10,sm: Spell out --check-sigs.
19234 + commit 9147737f1c6894f38b855f3cf38cd33122a1ae2a
19235 * g10/gpg.c (opts): Spell out option.
19236 * sm/gpgsm.c (opts): Likewise.
19237 * doc/gpg.texi: Update accordingly.
19239 g10,sm: Spell out --list-sigs.
19240 + commit a6d6e4afe488bc05ee730e85da6a9505c6cd245a
19241 * g10/gpg.c (opts): Spell out option.
19242 * sm/gpgsm.c (opts): Likewise.
19243 * doc/gpg.texi: Update accordingly.
19245 g10: Hyphenate --clearsign.
19246 + commit 04754ce3a704b1e6d38cb9a28dacf2821dc3f15f
19247 * g10/gpg.c (opts): Hyphenate option.
19248 * doc/gpg.texi: Update accordingly.
19249 * po: Update translations.
19250 * tests/openpgp: Update tests.
19252 g10: Spell out --recv-keys.
19253 + commit ca598152345b40f3a236227dfc63ae04ddf777d7
19254 * g10/gpg.c (opts): Spell out option.
19255 * doc/gpg.texi: Update accordingly.
19257 g10: Create expiring keys in quick key generation mode.
19258 + commit dd3dde07a9a46130ac01d849f8edf0566e44f11f
19259 * doc/gpg.texi: Document that fact.
19260 * g10/keygen.c (quick_generate_keypair): Use a default value.
19261 * tests/openpgp/quick-key-manipulation.scm: Test that fact.
19263 gpgscm: Print failed and skipped tests.
19264 + commit 429891a704057437517cb0b45d11392b40fa1ee8
19265 * tests/gpgscm/tests.scm (test-pool::report): Print failed and skipped
19268 gpgscm: Generalize the test runner.
19269 + commit d43dabf4607d3bcfc217eb9aea34d093f5aa698f
19270 * tests/gpgscm/tests.scm (test::scm) Add explicit name argument.
19271 (test::binary): Likewise. Also, add missing unquote.
19272 * tests/openpgp/run-tests.scm: Adapt accordingly.
19274 gpgscm: Move the test runner to the Scheme library.
19275 + commit 1a176b92a8aad42056ed2c4e1f49a5feb40770cf
19276 * tests/openpgp/run-tests.scm: Move most of the code...
19277 * tests/gpgscm/tests.scm: ... here.
19279 tests: Refactor test runner.
19280 + commit fe36e63763c9c595bb057ac50160d2aff7c7a63f
19281 * tests/openpgp/run-tests.scm (locate-test): New function.
19282 (test): Factor-out the code starting the child process.
19283 (test::binary): New function.
19285 gpgscm: Improve library functions.
19286 + commit e3876f16eb237bdeb9f79aca2e7db5e9e2d86686
19287 * tests/gpgscm/tests.scm (absolute-path?): New function.
19288 (canonical-path): Use the new function.
19289 * tests/gpgscm/lib.scm (string-split-pln): New function.
19290 (string-indexp, string-splitp): Likewise.
19291 (string-splitn): Express using the above function.
19292 (string-ltrim, string-rtrim): Fix corner case.
19293 (list->string-reversed): New function.
19294 (read-line): Fix performance.
19296 2016-12-12 Werner Koch <wk@gnupg.org>
19298 gpg: Fix memory leak in ecc key generation.
19299 + commit 98433c70431dfbde99b0e89416856d1eef9ebc88
19300 * g10/keygen.c (ecckey_from_sexp): Release curve.
19302 gpg: Do not use a fixed string for --gpgconf-list:default_pubkey_algo.
19303 + commit f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1
19304 * g10/keygen.c (get_default_pubkey_algo): New.
19305 (parse_key_parameter_string): Use it.
19306 * g10/gpg.c (gpgconf_list): Take value from new function.
19308 gpg: Fix algo string parsing of --quick-addkey.
19309 + commit 522e6f798db9f3f3a9e0123fdc389a86ac69dedf
19310 * g10/keygen.c (parse_key_parameter_string): Fix handling of PART==1.
19311 (parse_key_parameter_part): Use default key size if only "rsa", "dsa",
19314 2016-12-09 Justus Winter <justus@g10code.com>
19316 g10: Create keys that expire in simple key generation mode.
19317 + commit d568a1561642ed9b7b7b6282b86c56786d10a956
19318 * g10/keygen.c (default_expiration_interval): New variable.
19319 (generate_keypair): Use the new default.
19321 tests: Add a test for '--quick-addkey'.
19322 + commit b778d8deedf344c8116362633925b8153c7f1bf1
19323 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-addkey'.
19325 tests: New test using all available compression algorithms.
19326 + commit 59f1562c25119a4fe27411e6350f2149d6147148
19327 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19328 * tests/openpgp/compression.scm: New file.
19329 * tests/openpgp/defs.scm (all-compression-algos): New variable.
19331 g10: List compression algorithms using human-readable names.
19332 + commit c8100fc0faadf8ba35e4df32b4760cc975e3a83d
19333 * g10/gpg.c (list_config): List all enabled compression algorithms
19334 under the key 'compressname'.
19336 g10: Fix memory leak.
19337 + commit 3de9bad359e28ced4a2539e411d222ffd82a4a62
19338 * g10/sign.c (do_sign): Release old signature data.
19340 2016-12-08 Werner Koch <wk@gnupg.org>
19342 common: Skip the Byte Order Mark in conf files.
19343 + commit 5c7d58222834793629a30248e72b6ea96e832dc4
19344 * common/argparse.c (optfile_parse): Detect and skip the UTF-8 BOM.
19346 Fix 2 compiler warnings.
19347 + commit cb4c7abb774e2d95806d8b0ec6ea5cd130c1b5b8
19348 * dirmngr/loadswdb.c: Set ERR on malloc failure.
19349 * g10/passphrase.c (passphrase_to_dek): Initialize all fields of
19352 wks: New option --status-fd for gpg-wks-client.
19353 + commit 4a04277ad112e0966296133795f93cf6a3daa48e
19354 * tools/wks-util.c: Include status.h.
19355 (statusfp): New global var.
19356 (wks_set_status_fd): New func.
19357 (wks_write_status): New func.
19358 * tools/gpg-wks-client.c: Include status.h.
19359 (oStatusFD): New constant.
19360 (opts): New option --status-fd.
19361 (parse_arguments): Handle that option.
19362 (main): Return STATUS_SUCCESS or STATUS_FAILURE.
19364 2016-12-08 Justus Winter <justus@g10code.com>
19366 gpgscm: Better error reporting.
19367 + commit e7429b1ced0c69fa7901f888f8dc25f00fc346a4
19368 * tests/gpgscm/ffi.scm: Move the customized exception handling and
19370 * tests/gpgscm/init.scm: ... here.
19371 (throw): Record the current history.
19372 (throw'): New function that is history-aware.
19373 (rethrow): New function.
19374 (*error-hook*): Use the new throw'.
19375 * tests/gpgscm/main.c (load): Fix error handling.
19376 (main): Save and use the 'sc->retcode' as exit code.
19377 * tests/gpgscm/repl.scm (repl): Print call history.
19378 * tests/gpgscm/scheme.c (_Error_1): Make a snapshot of the history,
19379 use it to provide a accurate location of the expression causing the
19380 error at runtime, and hand the history trace to the '*error-hook*'.
19381 (opexe_5): Tag all lists at parse time with the current location.
19382 * tests/gpgscm/tests.scm: Update calls to 'throw', use 'rethrow'.
19384 gpgscm: Keep a history of calls for error messages.
19385 + commit 404e8a4136bbbab39df7dd5119841e131998cc15
19386 * tests/gpgscm/init.scm (vm-history-print): New function.
19387 * tests/gpgscm/opdefines.h: New opcodes 'CALLSTACK_POP', 'APPLY_CODE',
19389 * tests/gpgscm/scheme-private.h (struct history): New definition.
19390 (struct scheme): New field 'history'.
19391 * tests/gpgscm/scheme.c (gc): Mark objects in the history.
19392 (history_free): New function.
19393 (history_init): Likewise.
19394 (history_mark): Likewise.
19395 (add_mod): New macro.
19396 (sub_mod): Likewise.
19397 (tailstack_clear): New function.
19398 (callstack_pop): Likewise.
19399 (callstack_push): Likewise.
19400 (tailstack_push): Likewise.
19401 (tailstack_flatten): Likewise.
19402 (callstack_flatten): Likewise.
19403 (history_flatten): Likewise.
19404 (opexe_0): New variable 'callsite', keep track of the expression if it
19405 is a call, implement the new opcodes, record function applications in
19407 (opexe_6): Implement new opcode.
19408 (scheme_init_custom_alloc): Initialize history.
19409 (scheme_deinit): Free history.
19410 * tests/gpgscm/scheme.h (USE_HISTORY): New macro.
19412 gpgscm: Add flag TAIL_CONTEXT.
19413 + commit 01256694f006405c54bc2adef63ef0c8f07da9ee
19414 * tests/gpgscm/scheme.c (S_FLAG_TAIL_CONTEXT): New macro. This flag
19415 indicates that the interpreter is evaluating an expression in a tail
19416 context (see R5RS, section 3.5).
19417 (opexe_0): Clear and set the flag according to the rules layed out in
19419 (opexe_1): Likewise.
19421 gpgscm: Add flags to the interpreter.
19422 + commit a4a69163d9d7e4d9f3339eb5cda0afb947180b26
19423 * tests/gpgscm/scheme-private.h (struct scheme): Add field 'flags'.
19424 * tests/gpgscm/scheme.c (S_OP_MASK): New macro.
19425 (S_FLAG_MASK, s_set_flag, s_clear_flag, s_get_flag): Likewise.
19426 (_s_return): Unpack the encoded opcode and flags.
19427 (s_save): Encode the flags along with the opcode. Use normal
19428 integers to encode the result.
19429 (scheme_init_custom_alloc): Initialize 'op' and 'flags'.
19431 gpgscm: Implement tags.
19432 + commit fcf5aea44627def43425d03881e20902e7c0331e
19433 * tests/gpgscm/opdefines.h: Add opcodes to create and retrieve tags.
19434 * tests/gpgscm/scheme.c (T_TAGGED): New macro.
19435 (mk_tagged_value): New function.
19436 (has_tag): Likewise.
19437 (get_tag): Likewise.
19439 (opexe_4): Implement new opcodes.
19440 * tests/gpgscm/scheme.h (USE_TAGS): New macro.
19442 2016-12-08 Werner Koch <wk@gnupg.org>
19444 gpg: Fix the fix out-of-bounds access.
19445 + commit a75790b74095828f967c012eff7033f570d93077
19446 * g10/tofu.c (build_conflict_set): Revert to int* and fix calloc.
19448 wks: New option --check for gpg-wks-client.
19449 + commit d8c5e8ccfdb53cc327f7520fc7badc31d0c9c666
19450 * tools/call-dirmngr.c (wkd_get_key): New.
19451 * tools/gpg-wks-client.c (aCheck): New constant.
19452 (opts): New option "--check".
19453 (main): Call command_check.
19454 (command_check): New.
19456 tools: Move a function from gpg-wks-server to wks-util.c.
19457 + commit c3138decd77d788906885b638b344d0d1faf32c0
19458 * tools/gpg-wks-server.c (list_key_status_cb): Remove.
19459 (list_key): Move to ...
19460 * tools/wks-util.c (wks_list_key): here and rename. Add new args
19461 R_FPR and R_MBOXES and remove the CTX.
19462 (list_key_status_cb): New.
19463 * tools/wks-util.c: Include ccparray.h, exectool.h, and mbox-util.h.
19464 * tools/gpg-wks-server.c (process_new_key): Replace list_key by
19466 (check_and_publish): Ditto.
19468 2016-12-08 Justus Winter <justus@g10code.com>
19470 gpgscm: Generalize 'for-each-p'.
19471 + commit a2bedc8ac6fcdcd1de0a9fa3d540006481387dff
19472 * tests/gpgscm/tests.scm (for-each-p): Generalize to N lists like
19474 (for-each-p'): Likewise.
19476 g10: Fix out-of-bounds access.
19477 + commit 3b5b94ceab7c0ed9501c5cf54b4efa17fcd7300a
19478 * g10/tofu.c (build_conflict_set): Use 'char'.
19480 2016-12-08 Werner Koch <wk@gnupg.org>
19482 tools: Fix use of uninitialized var in mime-maker.
19483 + commit dd03667ab1062bba3b9413c3f8007d63302d1b31
19484 * tools/mime-maker.c (ensure_part): Make sure to set R_PARENT on
19486 (add_missing_headers): Ensure that ERR is set on success.
19488 * tools/wks-util.c (wks_parse_policy): Fix indentation.
19490 tools: Fix memleak in gpgconf.
19491 + commit b265969154741bf9f93167699fe7ddda1d485265
19492 * tools/gpgconf.c (main): Free SOCKETDIR.
19494 gpg: Fix portability problem.
19495 + commit c3008bffac68b6f31e9ae9bad837cdce5de7c0db
19496 * g10/tofu.c (build_conflict_set): Replace variable dynamic array.
19498 2016-12-07 Justus Winter <justus@g10code.com>
19500 tests: Add test for '--quick-set-expire'.
19501 + commit dec2ae31a46a0f41886c7ad228865cc573f2dea9
19502 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-set-expire'.
19504 tests: Improve quick key manipulation test.
19505 + commit 92df40a3a2ae471fbba00d6d7040230404931fd4
19506 * tests/openpgp/quick-key-manipulation.scm: Do not update the trust
19507 database, rather be more specific when filtering the user ids.
19509 2016-12-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
19511 agent: Respect --enable-large-secmem.
19512 + commit 8636ad5023a1bdc527add40a5508f8c5b7c35221
19513 * agent/gpg-agent.c (main): Initialize secmem to the configured buffer
19516 2016-12-06 Justus Winter <justus@g10code.com>
19518 tests: Add test importing a revocation certificate.
19519 + commit e352ead43fbb0180e1f1c71bf1a000d1954eb777
19520 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19521 * tests/openpgp/import-revocation-certificate.scm: New file.
19522 * tests/openpgp/samplemsgs/revoke-2D727CC768697734.asc: Likewise.
19524 tests: Rename 'error' to 'fail'.
19525 + commit 5b5d881f47c82f320abf440c20b7a1bac078a987
19526 * tests/gpgscm/tests.scm (error): Rename to 'fail'. 'error' is a
19527 primitive function (an opcode) of the TinySCHEME vm, and 'error' is
19528 also defined by R6RS. Better avoid redefining that. Fix all call
19530 * tests/openpgp/4gb-packet.scm: Adapt.
19531 * tests/openpgp/decrypt-multifile.scm: Likewise.
19532 * tests/openpgp/ecc.scm: Likewise.
19533 * tests/openpgp/export.scm: Likewise.
19534 * tests/openpgp/gpgtar.scm: Likewise.
19535 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
19536 * tests/openpgp/import.scm: Likewise.
19537 * tests/openpgp/issue2015.scm: Likewise.
19538 * tests/openpgp/issue2346.scm: Likewise.
19539 * tests/openpgp/issue2419.scm: Likewise.
19540 * tests/openpgp/key-selection.scm: Likewise.
19541 * tests/openpgp/mds.scm: Likewise.
19542 * tests/openpgp/multisig.scm: Likewise.
19543 * tests/openpgp/setup.scm: Likewise.
19544 * tests/openpgp/signencrypt.scm: Likewise.
19545 * tests/openpgp/ssh-import.scm: Likewise.
19546 * tests/openpgp/tofu.scm: Likewise.
19547 * tests/openpgp/verify.scm: Likewise.
19549 tests: Remove debugging display.
19550 + commit 89ac071eb4c7539e98c7dc17e11f57c620b54e90
19551 * tests/openpgp/tofu.scm: Remove debugging display.
19553 2016-12-06 Neal H. Walfield <neal@g10code.com>
19555 tests: Update distributed files.
19556 + commit 87972fdef2cd853fb97624d0765686674a19e3c4
19557 * tests/openpgp/Makefile.am (TEST_FILES): Remove tofu-keys.asc,
19558 tofu-keys-secret.asc, tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and
19559 tofu-EE37CF96-1.txt. Add tofu/conflicting/1C005AF3.gpg,
19560 tofu/conflicting/1C005AF3-secret.gpg, tofu/conflicting/1C005AF3-1.txt,
19561 tofu/conflicting/1C005AF3-2.txt, tofu/conflicting/1C005AF3-3.txt,
19562 tofu/conflicting/1C005AF3-4.txt, tofu/conflicting/1C005AF3-5.txt,
19563 tofu/conflicting/B662E42F.gpg, tofu/conflicting/B662E42F-secret.gpg,
19564 tofu/conflicting/B662E42F-1.txt, tofu/conflicting/B662E42F-2.txt,
19565 tofu/conflicting/B662E42F-3.txt, tofu/conflicting/B662E42F-4.txt,
19566 tofu/conflicting/B662E42F-5.txt, tofu/conflicting/BE04EB2B.gpg,
19567 tofu/conflicting/BE04EB2B-secret.gpg, tofu/conflicting/BE04EB2B-1.txt,
19568 tofu/conflicting/BE04EB2B-2.txt, tofu/conflicting/BE04EB2B-3.txt,
19569 tofu/conflicting/BE04EB2B-4.txt, tofu/conflicting/BE04EB2B-5.txt and
19570 tofu/conflicting/README.
19572 doc: Improve the text in the gpg manual.
19573 + commit 7572d270fcda1614648c6f08d711d5096ffebbe6
19574 * doc/gpg.texi: Improve the text.
19576 g10: Avoid a memory leak.
19577 + commit 6102099985c1b82b6c0bba0464c1f913cc673e96
19578 * g10/gpg.c (main): Free KB when we're done with it.
19580 tests: Change (interactive-shell) to start an interactive shell.
19581 + commit db6d8cfdc118131f497596ef1ffc121949377754
19582 * tests/gpgscm/tests.scm (interactive-shell): Start an interactive
19585 tests: Check the signature count in the TOFU TFS record.
19586 + commit 17c717d7c92d9a52101fea7e396fc133322a8786
19587 * tests/openpgp/tofu.scm: Check the signature count in the TOFU TFS
19590 tests: Replace data used by the TOFU conflict test.
19591 + commit d5b18d6c55d65e8df2dd112651e3b9b3d9e6e27a
19592 * tests/openpgp/tofu-2183839A-1.txt: Remove file.
19593 * tests/openpgp/tofu-BC15C85A-1.txt: Remove file.
19594 * tests/openpgp/tofu-EE37CF96-1.txt: Remove file.
19595 * tests/openpgp/tofu-keys-secret.asc: Remove file.
19596 * tests/openpgp/tofu-keys.asc: Remove file.
19597 * tests/openpgp/tofu/conflicting/1C005AF3.gpg: New file.
19598 * tests/openpgp/tofu/conflicting/1C005AF3-secret.gpg: New file.
19599 * tests/openpgp/tofu/conflicting/1C005AF3-1.txt: New file.
19600 * tests/openpgp/tofu/conflicting/1C005AF3-2.txt: New file.
19601 * tests/openpgp/tofu/conflicting/1C005AF3-3.txt: New file.
19602 * tests/openpgp/tofu/conflicting/1C005AF3-4.txt: New file.
19603 * tests/openpgp/tofu/conflicting/1C005AF3-5.txt: New file.
19604 * tests/openpgp/tofu/conflicting/B662E42F.gpg: New file.
19605 * tests/openpgp/tofu/conflicting/B662E42F-secret.gpg: New file.
19606 * tests/openpgp/tofu/conflicting/B662E42F-1.txt: New file.
19607 * tests/openpgp/tofu/conflicting/B662E42F-2.txt: New file.
19608 * tests/openpgp/tofu/conflicting/B662E42F-3.txt: New file.
19609 * tests/openpgp/tofu/conflicting/B662E42F-4.txt: New file.
19610 * tests/openpgp/tofu/conflicting/B662E42F-5.txt: New file.
19611 * tests/openpgp/tofu/conflicting/BE04EB2B.gpg: New file.
19612 * tests/openpgp/tofu/conflicting/BE04EB2B-secret.gpg: New file.
19613 * tests/openpgp/tofu/conflicting/BE04EB2B-1.txt: New file.
19614 * tests/openpgp/tofu/conflicting/BE04EB2B-2.txt: New file.
19615 * tests/openpgp/tofu/conflicting/BE04EB2B-3.txt: New file.
19616 * tests/openpgp/tofu/conflicting/BE04EB2B-4.txt: New file.
19617 * tests/openpgp/tofu/conflicting/BE04EB2B-5.txt: New file.
19618 * tests/openpgp/tofu/conflicting/README: New file.
19619 * tests/openpgp/tofu.scm: Update accordingly.
19621 g10: Remove dead code.
19622 + commit bd9ebe1404c1395edd0e029023a9e780c90f6d73
19623 * g10/tofu.c (tofu_set_policy_by_keyid): Remove function.
19625 2016-12-05 Werner Koch <wk@gnupg.org>
19627 gpg: New option --quick-set-expire.
19628 + commit 41b3d0975de65d1654f5e37c626d7c9b7c9a7a4d
19629 * g10/gpg.c (aQuickSetExpire): New.
19630 (opts): New option --quick-set-expire.
19631 (main): Implement option.
19632 * g10/keyedit.c (menu_expire): Add args FORCE_MAINKEY and
19633 NEWEXPIRATION. Change semantics of the return value. Change caller.
19634 (keyedit_quick_set_expire): New.
19636 2016-12-05 Justus Winter <justus@g10code.com>
19638 tests: New test for '--enarmor' and '--dearmor'.
19639 + commit fae4d06b0ccaa9803e0c0da56c327b0bcfffcac5
19640 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19641 * tests/openpgp/enarmor.scm: New file.
19643 2016-12-03 Werner Koch <wk@gnupg.org>
19645 gpg: Fix error code arg in ERRSIG status line.
19646 + commit ef10c348bffc7dad19e1832bebc453755d209420
19647 * g10/mainproc.c (check_sig_and_print): Use gpg_err_code to return an
19648 error code in ERRSIG.
19650 2016-12-02 Werner Koch <wk@gnupg.org>
19652 gpg: New option --default-new-key-algo.
19653 + commit ce29272e24e7b718b8fca9b84bc728e65f3dea24
19654 * common/openpgp-oid.c (openpgp_is_curve_supported): Add optional arg
19655 R_ALGO and change all callers.
19656 * common/util.h (GPG_ERR_UNKNOWN_FLAG): New error code.
19657 * g10/options.h (struct opt): Add field DEF_NEW_KEY_ALGO.
19658 * g10/gpg.c (oDefaultNewKeyAlgo): New enum.
19659 (opts): New option "--default-new-key-algo".
19660 (main): Set the option.
19661 * g10/keygen.c: Remove DEFAULT_STD_ FUTURE_STD_ constants and replace
19663 (DEFAULT_STD_KEY_PARAM, FUTURE_STD_KEY_PARAM): new string constants.
19664 (get_keysize_range): Remove arg R_DEF and return that value instead.
19665 Change all callers.
19666 (gen_rsa): Use get_keysize_range instead of the removed
19667 DEFAULT_STD_KEYSIZE.
19668 (parse_key_parameter_part): New function.
19669 (parse_key_parameter_string): New function.
19670 (quick_generate_keypair): Refactor using parse_key_parameter_string.
19671 (generate_keypair): Ditto.
19672 (parse_algo_usage_expire): Ditto.
19674 2016-12-02 Neal H. Walfield <neal@g10code.com>
19676 g10: Improve debugging output.
19677 + commit cd532bb7b866e104304e2443cc942799c385daa5
19678 * g10/tofu.c (string_to_long): Improve debugging output.
19679 (string_to_ulong): Likewise.
19681 2016-12-01 Neal H. Walfield <neal@g10code.com>
19683 g10: In the TOFU module, make strings easier to translate.
19684 + commit bd1a1d8582abcfd7f29812942fa70f88d0aec7cf
19685 * g10/tofu.c: Remove dead code.
19686 (time_ago_str): Simplify implementation since we only want the most
19688 (format_conflict_msg_part1): Use ngettext.
19689 (ask_about_binding): Likewise and only emit full sentences.
19690 (show_statistics): Likewise.
19692 2016-12-01 Werner Koch <wk@gnupg.org>
19694 dirmngr: Add option --standard-resolver.
19695 + commit 304566d3327ef0a85188cce3109d46d5ff47177a
19696 * dirmngr/dirmngr.c (oStandardResolver): New constant.
19697 (opts): New option --standard-resolver.
19698 (parse_rereadable_options): Set option.
19699 * dirmngr/dns-stuff.c: Refactor all code to support the new option.
19700 (standard_resolver): New var.
19701 (enable_standard_resolver, standard_resolver_p): New func.
19702 * dirmngr/http.c (connect_server): Remove USE_DNS_SRV build
19704 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
19705 * dirmngr/server.c (cmd_getinfo) <dnsinfo>: Take care of new option
19706 * configure.ac (HAVE_ADNS_IF_TORMODE): Remove var ADNSLIB. ac_define
19707 USE_ADNS in the adns checking code. Remove options --disable-dns-srv
19708 and --disable-dns-cert. Always look for the system resolver. Print
19709 warning if no system resolver was found.
19710 (USE_DNS_CERT, USE_DNS_SRV): Remove ac_defines.
19711 (HAVE_SYSTEM_RESOLVER): New ac_define.
19712 (USE_DNS_SRV): Remove am_conditional; not used anyway.
19714 gpg: Let only Dirmngr decide whether CERT is supported.
19715 + commit 86efc3ee53abaf1e22b53c1b360c51829e476115
19716 * g10/getkey.c (parse_auto_key_locate): Do not build parts depending
19719 2016-12-01 Justus Winter <justus@g10code.com>
19721 tests,build: Fix distcheck.
19722 + commit fbdfe6a514a95fb46f2b811a13709024e2baf252
19723 * tests/openpgp/Makefile.am (sample_msgs): Add messages required for
19724 the new test 'verify-multifile.scm'.
19726 tests: Add test for '--verify --multifile'.
19727 + commit 12af8e84a32df728462da09a00a8bec24a487720
19728 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19729 * tests/openpgp/verify-multifile.scm: New file.
19731 2016-11-30 Justus Winter <justus@g10code.com>
19733 tests: Add test for '--encrypt --multifile'.
19734 + commit 3c0569e99498c7470ebdb639b4c5ae829af92761
19735 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19736 * tests/openpgp/encrypt-multifile.scm: New file.
19738 2016-11-29 Werner Koch <wk@gnupg.org>
19740 agent,dirmngr: Tiny restructuring.
19741 + commit aa6ab9e0bc67fe9ce5601047e84ea4a875e8eb64
19742 * agent/gpg-agent.c (handle_connections): Add a comment.
19743 * dirmngr/dirmngr.c (main): Move assuan_sock_close of the listening
19745 (handle_connections): here. Add a comment why we keep the
19746 listening socket open during a shutdown.
19748 agent,dirmngr: Handle corner case in shutdown mode.
19749 + commit 854adc8ae19749e44cb79dfa0c5401f48012b13a
19750 * agent/gpg-agent.c (handle_connections): Keep on selecting on the
19751 inotify fd even when a shutdown is pending.
19752 * dirmngr/dirmngr.c (handle_connections): Ditto. Also simplifyy the
19753 use of the HAVE_INOTIFY_INIT cpp conditional.
19755 gpgsm: Allow decryption with a card returning a PKCS#1 stripped key.
19756 + commit 8489b12211098ad58c008cfb74b5cb91849cf68d
19757 * sm/decrypt.c (prepare_decryption): Handle a 16 byte session key.
19759 agent,w32: Initialize nPth in server mode.
19760 + commit 81d6e98cdf4caa3aa92398fc3b8bed397b40f58d
19761 * agent/gpg-agent.c (main) [W32]: Call initialize_modules in server
19764 gpg: Make --decrypt with output '-&nnnn' work.
19765 + commit a5910e00ace882b8a17169faf4607163ab454af9
19766 * g10/plaintext.c (get_output_file): Check and open special filename
19767 before falling back to stdout.
19769 gpg,sm: Merge the two versions of check_special_filename.
19770 + commit 60b4982836a00ef6b2a97d16f735b3f6b74dce62
19771 * sm/gpgsm.c (check_special_filename): Move to ..
19772 * common/sysutils.c (check_special_filename): here. Add arg
19774 (allow_special_filenames): New local var.
19775 (enable_special_filenames): New public functions.
19776 * sm/gpgsm.c (allow_special_filenames): Remove var.
19777 (main): Call enable_special_filenames instead of setting the var.
19778 (open_read, open_es_fread, open_es_fwrite): Call
19779 check_special_filename with 0 for NOTRANSLATE.
19780 * common/iobuf.c (special_names_enabled): Remove var.
19781 (iobuf_enable_special_filenames): Remove func.
19782 (check_special_filename): Remove func.
19783 (iobuf_is_pipe_filename): Call new version of the function with
19786 * g10/gpg.c (main): Call enable_special_filenames instead of
19787 iobuf_enable_special_filenames.
19788 * g10/gpgv.c (main): Ditto.
19790 2016-11-29 Justus Winter <justus@g10code.com>
19792 g10: Fix memory leak.
19793 + commit 52385a2ba1bf7e53f500ffde5fd34f28e69cf76b
19794 * g10/decrypt.c (decrypt_messages): Properly decrease the reference
19795 count of the armor filters after pushing them.
19797 tools,build: Build WKS tools against libintl.
19798 + commit 9fb5e9c14557f7567cbc7c50b9881b7d7bfa2f12
19799 * tools/Makefile.am (gpg_wks_server_LDADD): Link against libintl.
19800 (gpg_wks_client_LDADD): Likewise.
19802 2016-11-29 Neal H. Walfield <neal@g10code.com>
19804 Improve some comments.
19805 + commit 522f74f7e377135cf098b6b0b9b35284c1dfc963
19808 g10: Extend TOFU_STATS to always show the validity.
19809 + commit 2f27cb12e30c9f6e780354eecc3ff0039ed52c63
19810 * doc/DETAILS (TOFU_STATS): Rename the VALIDITY field to SUMMARY. Add
19811 a new field called VALIDITY.
19812 * g10/tofu.c (write_stats_status): Update output accordingly.
19814 2016-11-29 Justus Winter <justus@g10code.com>
19816 tests: Add test for '--decrypt --multifile'.
19817 + commit bde4fddadc75ad6071e3fc6c0980905de14c03cb
19818 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19819 * tests/openpgp/decrypt-multifile.scm: New file.
19821 gpgscm: Avoid truncating pointers.
19822 + commit e062bc4da8062b822ee85096d9adfcbca8dcb56a
19823 * tests/gpgscm/scheme.c (_alloc_cellseg): Avoid truncating pointers on
19824 systems where sizeof(unsigned long) < sizeof(void *).
19826 2016-11-29 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
19828 dirmngr: Lazily launch ldap reaper thread.
19829 + commit f6728d13e8e544dbd4b9351ed981613e5504293f
19830 * dirmngr/dirmngr.c (main): Avoid calling ldap_wrapper_launch_thread()
19832 * dirmngr/ldap-wrapper.c (ldap_wrapper): Call
19833 ldap_wrapper_launch_thread() just in time (before any attempt to use
19834 an ldap subprocess).
19836 2016-11-29 Werner Koch <wk@gnupg.org>
19838 build: Remove more keywords from the generated ChangeLog.
19839 + commit ecc126a7cef371e3b88e65715ba37fb77e92ea0f
19840 * build-aux/gitlog-to-changelog (parse_amend_file): Generalize keyword
19843 2016-11-28 Justus Winter <justus@g10code.com>
19845 tests: Add test for the ssh key export.
19846 + commit 47b8b9e2ce5af7fba117ae0b00e10bec414dcfb0
19847 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19848 (sample_keys): Add new files.
19849 * tests/openpgp/samplekeys/authenticate-only.pub.asc: New file.
19850 * tests/openpgp/samplekeys/authenticate-only.sec.asc: Likewise.
19851 * tests/openpgp/ssh-export.scm: Likewise.
19853 g10: Fix iteration over getkey results.
19854 + commit 4db9a425644dccaf81b51ebc97b32a9cc21941a4
19855 * g10/getkey.c (getkey_next): Only ask 'lookup' for the exact match if
19856 our caller requested the key. Fixes a crash in 'lookup'.
19858 tests: Rename ssh test.
19859 + commit cc1d21342659a7def5d662d0547579f9e0d3b109
19860 * tests/openpgp/ssh.scm: Rename to 'ssh-import.scm'.
19861 * tests/openpgp/Makefile (XTESTS): Likewise.
19863 2016-11-25 NIIBE Yutaka <gniibe@fsij.org>
19865 scd: Support OpenPGP card V3 for RSA.
19866 + commit b89e63e5c326af71470124b410e6429cbd2b5c43
19867 * scd/app-openpgp.c (struct app_local_s): Remove max_cmd_data and
19868 max_rsp_data fields as Extended Capabilities bits are different.
19869 (get_cached_data) Use extcap.max_certlen_3.
19870 (get_one_do): Don't use exmode=1.
19871 (determine_rsa_response): New.
19872 (get_public_key, do_genkey): Call determine_rsa_response.
19873 (do_sign): Use keyattr[0].rsa.n_bits / 8, instead of max_rsp_data.
19874 (do_auth): Use keyattr[2].rsa.n_bits / 8, instead of max_rsp_data.
19875 (do_decipher): Likewise with Use keyattr[1].rsa.n_bits / 8.
19876 (show_caps): Remove max_cmd_data and max_rsp_data.
19877 (app_select_openpgp): Likewise.
19879 2016-11-23 Justus Winter <justus@g10code.com>
19881 gpgscm: Make 'reverse' compatible with 'reverse_in_place'.
19882 + commit 005d326d19ba28005182205f25edc4f7499ec0b5
19883 * tests/gpgscm/scheme.c (reverse): Update prototype, add terminator
19885 (opexe_4): Update callsite.
19887 gpgscm: Clean sweeped cells.
19888 + commit 3fb9954c43425775a517060959dad01fa00238f7
19889 * tests/gpgscm/scheme.c (gc): Zero typeflag and car of free cells.
19891 gpgscm: Fix initialization of 'sink'.
19892 + commit 7856e3efaad7614979bc0b91379a0a4dcbc739d5
19893 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Also initialize
19896 2016-11-23 Neal H. Walfield <neal@g10code.com>
19898 g10: Avoid gratuitously loading a keyblock when it is already available.
19899 + commit 03a65a53231cc3132a50a1871e81a512c44da169
19900 * g10/trust.c (get_validity): Add new, optional parameter KB. Only
19901 load the keyblock if KB is NULL. Update callers.
19902 (get_validity): Likewise.
19903 * g10/trustdb.c (tdb_get_validity_core): Likewise.
19905 2016-11-22 Neal H. Walfield <neal@g10code.com>
19907 g10: Use es_fopen instead of open.
19908 + commit bfeafe2d3f9bbaa7f11f3ad870a446141c038b0d
19909 * g10/tofu.c: Don't include <utime.h>, <fcntl.h> or <unistd.h>.
19910 (busy_handler): Replace use of open with es_fopen.
19912 g10: If the set of UTKs changes, invalidate any changed policies.
19913 + commit 44c17bcb003a3330f595a6ab144e8439b7b630cb
19914 * g10/trustdb.c (tdb_utks): New function.
19915 * g10/tofu.c (check_utks): New function.
19917 * tests/openpgp/tofu.scm: Modify test to check the effective policy of
19918 keys whose effective policy changes when we change the set of UTKs.
19920 2016-11-22 NIIBE Yutaka <gniibe@fsij.org>
19922 scd: Fix receive buffer size.
19923 + commit 5c2db9dedfe9dbb14ffec24751ca23a69cead94e
19924 * scd/apdu.c (send_le): Fix the size, adding two for status
19927 2016-11-22 Justus Winter <justus@g10code.com>
19930 + commit a3b258d1d15953816e0567511ecc527a4ccdd626
19931 * tests/gpgscm/scheme.c (opexe_0): Reduce code duplication.
19933 gpgscm: Fix property lists.
19934 + commit d8df80427238cdbb9ae0f6dae8bc7e9c24f6e265
19935 * tests/gpgscm/opdefines.h (put, get): Check arguments. Also rename
19936 to 'set-symbol-property' and 'symbol-property', the names used by
19937 Guile, because put and get are too unspecific.
19938 * tests/gpgscm/scheme.c (hasprop): Only symbols have property lists.
19939 (get_property): New function.
19940 (set_property): Likewise.
19941 (opexe_4): Use the new functions.
19943 gpgscm: Fix installation of error handler.
19944 + commit 7b4e2ea274ace22245264f1759279390d0300a62
19945 * tests/gpgscm/ffi.scm: Set '*error-hook*' again so that the
19946 interpreter will use our function.
19948 gpgscm: Use a static pool of cells for small integers.
19949 + commit 66834eb838a8892d088f6b7332084a64d9f15008
19950 * tests/gpgscm/scheme-private.h (struct scheme): New fields for the
19951 static integer cells.
19952 * tests/gpgscm/scheme.c (_alloc_cellseg): New function.
19953 (alloc_cellseg): Use the new function.
19954 (MAX_SMALL_INTEGER): New macro.
19955 (initialize_small_integers): New function.
19956 (mk_small_integer): Likewise.
19957 (mk_integer): Return a small integer if possible.
19958 (_s_return): Do not free 'op' if it is a small integer.
19959 (s_save): Use a small integer to box the opcode.
19960 (scheme_init_custom_alloc): Initialize small integers.
19961 (scheme_deinit): Free chunk of small integers.
19962 * tests/gpgscm/scheme.h (USE_SMALL_INTEGERS): New macro.
19964 tests: Delay querying the avaliable algorithms.
19965 + commit 893a3f7fb46021961914a8acdf1292a80e3eba93
19966 * tests/openpgp/defs.scm: Set verbosity earlier, turn 'all-*-algos'
19968 * tests/openpgp/conventional-mdc.scm: Force the promises.
19969 * tests/openpgp/conventional.scm: Likewise.
19970 * tests/openpgp/encrypt-dsa.scm: Likewise.
19971 * tests/openpgp/encrypt.scm: Likewise.
19972 * tests/openpgp/gpgtar.scm: Likewise.
19973 * tests/openpgp/sigs.scm: Likewise.
19975 g10: Fix memory leak.
19976 + commit 6ce14a805f1da687dfb8535db57730d5c7403db7
19977 * g10/tofu.c (tofu_notice_key_changed): Remove spurious duplicate call
19978 to 'hexfingerprint'.
19980 2016-11-21 Neal H. Walfield <neal@g10code.com>
19982 g10: Cache the effective policy. Recompute it when required.
19983 + commit 037f9de09298a31026ea2ab5fbd4a599b11cc34f
19984 * g10/tofu.c (initdb): Add column effective_policy to the bindings
19986 (record_binding): New parameters effective_policy and set_conflict.
19987 Save the effective policy. If SET_CONFLICT is set, then set conflict
19988 according to CONFLICT. Otherwise, preserve the current value of
19989 conflict. Update callers.
19990 (get_trust): Don't compute the effective policy here...
19991 (get_policy): ... do it here, if it was not cached. Take new
19992 parameters, PK, the public key, and NOW, the time that the operation
19993 started. Update callers.
19994 (show_statistics): New parameter PK. Pass it to get_policy. Update
19996 (tofu_notice_key_changed): New function.
19997 * g10/gpgv.c (tofu_notice_key_changed): New stub.
19998 * g10/import.c (import_revoke_cert): Take additional argument CTRL.
19999 Pass it to keydb_update_keyblock.
20000 * g10/keydb.c (keydb_update_keyblock): Take additional argument CTRL.
20002 [USE_TOFU]: Call tofu_notice_key_changed.
20003 * g10/test-stubs.c (tofu_notice_key_changed): New stub.
20004 * tests/openpgp/tofu.scm: Assume that manually setting a binding's
20005 policy to auto does not cause the tofu engine to forget about any
20008 g10: Correctly parameterize ngettext.
20009 + commit 182efc5b5d20ac0d43501a22f349a23dc06a27a4
20010 * g10/tofu.c (ask_about_binding): Correctly parameterize ngettext.
20012 g10: Don't use the same variable for multiple SQL compiled statements.
20013 + commit 7142b293c870d73ce0146bfb90e6a556e0079650
20014 * g10/tofu.c (struct tofu_dbs_s): Remove unused field
20015 record_binding_update2. Replace register_insert with
20016 register_signature and register_encryption.
20017 (tofu_register_signature): Don't use dbs->s.register_insert, but
20018 dbs->s.register_signature.
20019 (tofu_register_encryption): Don't use dbs->s.register_insert, but
20020 dbs->s.register_encryption.
20022 g10: Add a convenience function for checking if a key is a primary key.
20023 + commit 91a0483c5db8ee4510981448a705981ee1cce199
20024 * g10/keydb.h (pk_is_primary): New function.
20025 * g10/tofu.c (get_trust): Use it.
20026 (tofu_register_signature): Likewise.
20027 (tofu_register_encryption): Likewise.
20028 (tofu_set_policy): Likewise.
20029 (tofu_get_policy): Likewise.
20031 2016-11-21 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20033 doc: Ship example gpg-agent-browser.socket in examples/systemd-user/.
20034 + commit 0540cfbee455b197edd89b602a4b47ebf0be8588
20035 * doc/Makefile.am: Ship gpg-agent-browser.socket alongside the other
20036 systemd user service example files.
20038 2016-11-21 NIIBE Yutaka <gniibe@fsij.org>
20040 agent: Fix npth + daemon mode problem.
20041 + commit 9a707a223a3d45ccf245dee7989ca144e4e6bb49
20042 * agent/gpg-agent.c (main): Remove duplicated initialization in daemon
20045 2016-11-18 Werner Koch <wk@gnupg.org>
20048 + commit 0a641ad25d8c3b91dc32bb9f3f1ae49ae539a4f7
20051 2016-11-18 Ineiev <ineiev@gnu.org>
20053 po: Update Russian translation.
20054 + commit 11aaa9c6d4ed3e47de45b4aee925ab1065120988
20057 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
20059 g10: Fix flags to open for lock of ToFU.
20060 + commit 1c0b140cccfb884c6d07785c3284b9df06dccd3c
20061 * g10/tofu.c (busy_handler): Fix the flags and utime is not needed.
20063 2016-11-18 Werner Koch <wk@gnupg.org>
20065 dirmngr: Use a longer timer tick interval.
20066 + commit 833eef974ad4721b9b3e247bae9c890476a936ce
20067 * dirmngr/dirmngr.c (TIMERTICK_INTERVAL): Always use 60 seconds like
20068 we did for WindowsCE.
20070 2016-11-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20072 dirmngr: More w32 system daemon cleanup.
20073 + commit b3a917201207898059c048dd101344765201b03c
20074 * dirmngr/dirmngr.c (handle_tick): Remove w32 tests for
20075 shutdown_pending; no longer needed.
20077 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
20079 g10: Fix creating a lock for ToFU.
20080 + commit b2e1b17efa952afcf7aeec8b15e9d0088dba587a
20081 * g10/tofu.c (busy_handler): Add third argument which is mandatory for
20084 scd: Don't limit to ST-2xxx for PC/SC.
20085 + commit b6066ab18a67195817babaf9eccf896c2b3c7b0e
20086 * scd/apdu.c (pcsc_vendor_specific_init): Only check vender ID.
20088 2016-11-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20090 dirmngr: Use a default keyserver if none is explicitly set.
20091 + commit 8fb482252436b3b4b0b33663d95d1d17188ad1d9
20092 * configure.ac: Define DIRMNGR_DEFAULT_KEYSERVER.
20093 * dirmngr/server.c (ensure_keyserver): Use it if no keyservers are set.
20094 * doc/dirmngr.texi: Document this behavior.
20096 dirmngr: Add system CAs if no hkp-cacert is given.
20097 + commit 7c1613d41566f7d8db116790087de323621205fe
20098 * dirmngr/dirmngr.c (http_session_new): If the user isn't talking to
20099 the HKPS pool, and they have not specified any hkp-cacert, then we
20100 should default to the system CAs, rather than nothing.
20101 * doc/dirmngr.texi: Document choice of CAs.
20103 dirmngr: Register hkp-cacert even if the file doesn't exist yet.
20104 + commit c4e02a3b7ad6ee1da6bfc439921378bdbd5c029c
20105 * dirmngr/dirmngr.c (parse_readable_options): If we're unable to turn
20106 an argument for hkp-cacert into an absolute filename, terminate
20108 * dirmngr/http.c (http_register_tls_ca): Show a warning if file is not
20109 immediately accessible, but register it anyway.
20111 2016-11-17 Justus Winter <justus@g10code.com>
20113 gpgscm: Re-enable the garbage collector in case of errors.
20114 + commit 4f189325a409bb08f7a8eabfac3f4579288cf5c5
20115 * tests/gpgscm/scheme.c (opexe_0): Enable gc before calling 'Error_1'.
20117 gpgscm: Fix string.
20118 + commit fc53a4d06eaf891143ab4efec9caffe31ebc2bc0
20119 * tests/gpgscm/scheme.c (type_to_string): Fix string.
20121 2016-11-17 Werner Koch <wk@gnupg.org>
20123 dirmngr: Auto-sownload the swdb.lst.
20124 + commit bd91f92ace09263e3a91177f2a1644379baeb08a
20125 * dirmngr/dirmngr.h (struct opt): Add field allow_version_check.
20126 * dirmngr/dirmngr.c (oAllowVersionCheck): New.
20127 (opts): Add --allow-version-check.
20128 (network_activity_seen): New variable.
20129 (parse_rereadable_options): Set opt.allow_version_check.
20130 (main) <aGPGConfList>: Do not anymore set the no change flag for
20131 Windows. Add allow-version-check.
20132 (netactivity_action): Set network_activity_seen.
20133 (housekeeping_thread): Call dirmngr_load_swdb.
20134 * tools/gpgconf-comp.c (gc_options_dirmngr): Add allow-version-check.
20135 Make "use-tor" available at Basic level.
20137 dirmngr: Improve downloading of swdb.lst.
20138 + commit c45ca316a54665915ae08399484db271566db7c0
20139 * dirmngr/loadswdb.c (time_of_saved_swdb): Aslo return the "verified"
20141 (dirmngr_load_swdb): Avoid unnecessary disk or network access witout
20142 FORCE. Do not update swdb.lst if it did not change.
20144 gpgconf: Change the displayed names of the components.
20145 + commit d8da5bc50b856db3445435780311c9f8e52a5144
20148 2016-11-16 Werner Koch <wk@gnupg.org>
20150 dirmngr: Add command to only load the swdb.
20151 + commit 52c10a280af6ce06eb1732ff35b095f2b8d24b9f
20152 * dirmngr/loadswdb.c: New.
20153 * dirmngr/Makefile.am (dirmngr_SOURCES): Add that file.
20154 * dirmngr/server.c: Remove includes cpparray.h and exectool.h.
20155 (cmd_loadswdb): New.
20156 (parse_version_number,parse_version_string): Remove.
20157 (my_mktmpdir, cmp_version): Remove.
20158 (fetch_into_tmpdir): Remove.
20159 (struct verify_swdb_parm_s): Remove.
20160 (verify_swdb_status_cb): Remove.
20161 (cmd_versioncheck): Remove.
20162 (register_commands): Register LOADSWDB. Remove VERSIONCHECK.
20164 scd,dirmngr: Keep the standard fds when daemonizing.
20165 + commit 4839e6d002a8ad1f7d3260792c3c9641e258f342
20166 * dirmngr/dirmngr.c (main): Before calling setsid do not close the
20167 standard fds but connect them to /dev/null.
20168 * scd/scdaemon.c (main): Ditto. Noet that the old test for a log
20169 stream was even reverted.
20171 common: Rename keybox_file_rename to gnupg_rename_file.
20172 + commit c4506a3f15bba5d257cb4c6738800c5e00ecc9a2
20173 * kbx/keybox-util.c (keybox_file_rename): Rename to ...
20174 * common/sysutils.c (gnupg_rename_file): this. Change all callers.
20176 wks: Always build gpg-wks-client.
20177 + commit c564790df723beef031d83802bd7830737bd330a
20178 * tools/Makefile.am (gpg_wks_client): Remove macro.
20179 (libexec_PROGRAMS): Add gpg-wks-client.
20181 gpg: New option --override-session-key-fd.
20182 + commit 43bfaf2c5417ede621c0a07721952ea549a7a139
20183 * g10/gpg.c (oOverrideSessionKeyFD): New.
20184 (opts): Add option --override-session-key-fd.
20185 (main): Handle that option.
20186 (read_sessionkey_from_fd): New.
20188 2016-11-15 Werner Koch <wk@gnupg.org>
20190 gpgv: New option --enable-special-filenames.
20191 + commit 500e594c2da530e69a63fc1a40d173458682fa0e
20192 * g10/gpgv.c (oEnableSpecialFilenames): New.
20193 (opts): Add option --enable-special-filenames.
20194 (main): Implement that option.
20196 gpg: Add new compliance mode "de-vs".
20197 + commit b47603a0ac24902c5bb000f8ef27cfb99aceeb81
20198 * g10/options.h (CO_DE_VS): New.
20199 (GNUPG): Also allow CO_DE_VS.
20200 * g10/gpg.c (oDE_VS): New.
20201 (parse_compliance_option): Add "de-vs".
20202 (set_compliance_option): Set "de-vs".
20203 * g10/misc.c (compliance_option_string): Return a description string.
20204 (compliance_failure): Ditto.
20205 * g10/keygen.c (ask_algo): Take care of CO_DE_VS.
20206 (get_keysize_range): Ditto.
20207 (ask_curve): Add new field to CURVES and trun flags into bit flags.
20208 Allow only Brainpool curves in CO_DE_VS mode.
20210 gpg: Use usual free semantics for packet structure free functions.
20211 + commit 8ea3b4c4102dc67ed83d4419b7171e422fc01047
20212 * g10/free-packet.c (free_attributes): Turn function into a nop for a
20214 (free_user_id): Ditto.
20215 (free_compressed): Ditto.
20216 (free_encrypted): Ditto.
20217 (free_plaintext): Ditto.
20218 (release_public_key_parts): Avoid extra check for NULL.
20219 * g10/getkey.c (get_best_pubkey_byname): Ditto.
20221 2016-11-15 Justus Winter <justus@g10code.com>
20223 g10: Optimize key iteration.
20224 + commit 12834e84aca9d74800245f0f2f2e6b5123e76173
20225 * g10/getkey.c (get_best_pubkey_byname): Use the node returned by
20226 'getkey_next' instead of doing another lookup.
20228 g10: Fix memory leak.
20229 + commit d20107f6da094edd782947abb357abae5129a12c
20230 * g10/getkey.c (finish_lookup): Clarify that we do not return a
20232 (lookup): Clarify the relation between RET_KEYBLOCK and RET_FOUND_KEY.
20233 Check arguments. Actually release the node if it is not returned.
20235 g10: Fix iteration over getkey results.
20236 + commit 1d03cc77e1706f7da653153ad4b58c61e4fd2573
20237 * g10/getkey.c (getkey_next): Fix invocation of 'lookup'. If we want
20238 to use RET_FOUND_KEY, RET_KEYBLOCK must be valid.
20240 g10: Fix use-after-free.
20241 + commit bd60742925414e0ef2a497df827c1913ea211a44
20242 * g10/getkey.c (pubkey_cmp): Make a copy of the user id.
20243 (get_best_pubkey_byname): Free the user ids.
20245 2016-11-15 Werner Koch <wk@gnupg.org>
20247 sm: New stub option --compliance.
20248 + commit 26c7c1d72c5f2acb3edb58d610c09a635c87bdbf
20249 * sm/gpgsm.c (oCompliance): New.
20250 (opts): Add "--compliance".
20251 (main): Implement as stub.
20253 2016-11-15 NIIBE Yutaka <gniibe@fsij.org>
20255 g10: Fix memory leak.
20256 + commit 1f7639ebbe58af1b581b0be7809da9ee55482992
20257 * g10/keyedit.c (menu_adduid): Don't copy 'sig'.
20259 2016-11-15 Werner Koch <wk@gnupg.org>
20261 gpg: New option --compliance.
20262 + commit f86b1a15ad4bb7bcc1e9f7d209aabcb23641f7df
20263 * g10/gpg.c (oCompliance): New.
20264 (opts): Add "--compliance".
20265 (parse_tofu_policy): Use a generic description string for "help".
20266 (parse_compliance_option): New.
20267 (main): Add option oCompliance. Factor out code for compliance
20269 (set_compliance_option): new.
20271 2016-11-15 Justus Winter <justus@g10code.com>
20273 g10: Fix memory leak.
20274 + commit 809d67e74014cb563efd965744fd11f87bbae743
20275 * g10/keyedit.c (menu_adduid): Deallocate 'sig'.
20277 gpgscm: Mark cells requiring finalization.
20278 + commit 64a58e23c38db8658423bbe26fcd650330e24a88
20279 * tests/gpgscm/scheme.c (T_FINALIZE): New macro.
20280 (mk_port): Use the new macro.
20281 (mk_foreign_object): Likewise.
20282 (mk_counted_string): Likewise.
20283 (mk_empty_string): Likewise.
20284 (gc): Only call 'finalize_cell' for cells with the new flag.
20286 gpgscm: Recover more cells.
20287 + commit 93cc322ac06d3045a24aece90091f7f80f3dacb8
20288 * tests/gpgscm/scheme.c (_s_return): Recover the cell holding the
20291 2016-11-14 Justus Winter <justus@g10code.com>
20293 g10: Fix memory leak.
20294 + commit 2cd281c4def1ea881b92b9aba18c1892f89c1870
20295 * g10/mainproc.c (check_sig_and_print): Free 'pk'.
20297 gpgscm: Avoid cell allocation overhead.
20298 + commit 83c184a66b73f312425b01008f0495610e5329a4
20299 * tests/gpgscm/scheme-private.h (struct scheme): New fields
20300 'inhibit_gc', 'reserved_cells', and 'reserved_lineno'.
20301 * tests/gpgscm/scheme.c (GC_ENABLED): New macro.
20302 (USE_GC_LOCKING): Likewise.
20303 (gc_reservations): Likewise.
20304 (gc_reservation_failure): New function.
20305 (_gc_disable): Likewise.
20306 (gc_disable): New macro.
20307 (gc_enable): Likewise.
20308 (gc_enabled): Likewise.
20309 (gc_consume): Likewise.
20310 (get_cell_x): Consume reserved cell if garbage collection is disabled.
20311 (_get_cell): Assert that gc is enabled.
20312 (get_cell): Only record cell in the list of recently allocated cells
20314 (get_vector_object): Likewise.
20315 (gc): Assert that gc is enabled.
20316 (s_return): Add comment, adjust call to '_s_return'.
20317 (s_return_enable_gc): New macro.
20318 (_s_return): Add flag 'enable_gc' and re-enable gc if set.
20319 (oblist_add_by_name): Use the new facilities to protect the
20321 (new_frame_in_env): Likewise.
20322 (new_slot_spec_in_env): Likewise.
20323 (s_save): Likewise.
20324 (opexe_0): Likewise.
20325 (opexe_1): Likewise.
20326 (opexe_2): Likewise.
20327 (opexe_5): Likewise.
20328 (opexe_6): Likewise.
20329 (scheme_init_custom_alloc): Initialize the new fields.
20331 2016-11-14 NIIBE Yutaka <gniibe@fsij.org>
20333 scd: Fix status info encoding.
20334 + commit 4ee4d0b02172cf56d9582bb99e32a65c75315b25
20335 * scd/command.c (send_status_info): Do percent plus encoding correctly.
20337 2016-11-12 Werner Koch <wk@gnupg.org>
20339 agent: Improve concurrency when Libgcrypt 1.8 is used.
20340 + commit 6bf698197222bf6081c249c815aebb075e8ec820
20341 * agent/gpg-agent.c (thread_init_once): Tell Libgcrypt to reinit the
20343 (agent_libgcrypt_progress_cb): Do not sleep if Libgcrypt is recent
20346 2016-11-11 Werner Koch <wk@gnupg.org>
20348 agent: Kludge to mitigate blocking calls in Libgcrypt.
20349 + commit 4473db1ef24031ff4e26c9a9de95dbe898ed2b97
20350 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Sleep for 100ms on
20353 dirmngr: Prepare to trigger jobs by network activity.
20354 + commit 7b04a43c05834b937b32a596f1941e9728add5fa
20355 * dirmngr/http.c (netactivity_cb): New.
20356 (http_register_netactivity_cb): New.
20357 (notify_netactivity): New.
20358 (connect_server): Call that function.
20359 * dirmngr/dirmngr.c (main): Call http_register_netactivity_cb.
20360 (netactivity_action): New stub handler.
20362 2016-11-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20364 agent: Clean up comments.
20365 + commit e51912f467fda963c7abcfcd4082d6eb084ba5be
20366 * agent/agent.h: Clean up comments.
20368 2016-11-10 Werner Koch <wk@gnupg.org>
20370 gpg,sm: Add STATUS_ERROR keydb_search and keydb_add-resource.
20371 + commit 5d13581f4737c18430f6572dd4ef486d1ad80dd1
20372 * g10/keydb.c (keydb_add_resource): Make ANY_REGISTERED
20373 file-global. Write a STATUS_ERROR.
20374 (maybe_create_keyring_or_box): Check for non-accessible but existant
20376 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
20377 but continue to return NOT_FOUND.
20378 * sm/keydb.c (keydb_add_resource): Rename ANY_PUBLIC to ANY_REGISTERED
20379 and make file-global. Write a STATUS_ERROR.
20380 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
20381 but continue to return NOT_FOUND. Also add new arg CTRL and change
20382 all callers to pass it down.
20384 sm: Remove unused arg SECRET from keydb functions.
20385 + commit c8044c6e335f044d7386b9e8869bc4a0d3adff70
20386 * sm/keydb.c (struct resource_item): Remove field 'secret'.
20387 (keydb_add_resource): Remove arg 'secret' and change all callers.
20388 (keydb_new): Ditto.
20390 2016-11-10 Justus Winter <justus@g10code.com>
20392 gpgscm: Recover cells from the list of recently allocated cells.
20393 + commit ee08677d63a900cea85228024861a4f5c5a87c69
20394 * tests/gpgscm/scheme.c (ok_to_freely_gc): Recover cells.
20396 gpgscm: Recover cells used to maintain interpreter state.
20397 + commit e0cbd3389e2dd6ec19ee3a4c7bad81fa0f1907f5
20398 * tests/gpgscm/scheme.c (free_cell): New function.
20399 (free_cons): Likewise.
20400 (_s_return): Use the new function to recover cells used to save the
20401 state of the interpreter in 's_save'. This reduces the need to do a
20402 garbage collection considerably.
20404 gpgscm: Reduce opcode dispatch overhead.
20405 + commit d3a98ff5bc972a4c9b01b9e5338a4a59b5b4ac48
20406 * tests/gpgscm/scheme.c (s_thread_to): New macro.
20408 (opexe_[0-6]): Use 'CASE' instead of 'case' statements, replace
20409 's_goto' with 's_thread_to' where applicable.
20411 gpgscm: Make the compile-hook configurable.
20412 + commit 568cfcde45a0d6c456d8f8be1ea0e408416badad
20413 * tests/gpgscm/scheme-private.h (struct scheme): Make field
20414 'COMPILE_HOOK' optional.
20415 * tests/gpgscm/scheme.c (opexe_0): Fix guard.
20416 (scheme_init_custom_alloc): Conditionally initialize 'COMPILE_HOOK'.
20417 * tests/gpgscm/scheme.h (USE_COMPILE_HOOK): Define to 1 by default.
20419 gpgscm: Drop obsolete commented-out code.
20420 + commit 9ee184bc0afaea06785d836ed175b851b9ae532f
20421 * tests/gpgscm/scheme.c (opexe_5): Drop obsolete code.
20423 gpgscm: Remove dubious stack implementation.
20424 + commit d7c5799c282a03dcce0e3d327075233353cb76cc
20425 * tests/gpgscm/scheme-private.h (struct scheme): Remove related fields.
20426 * tests/gpgscm/scheme.c: Drop all !USE_SCHEME_STACK code.
20427 * tests/gpgscm/scheme.h (USE_SCHEME_STACK): Remove macro.
20429 2016-11-10 Werner Koch <wk@gnupg.org>
20431 gpg: Improve error message for --quick-gen-key.
20432 + commit 088d955bd8a6ec8bbf76c8a4c01eb08499d1d9fa
20433 * g10/keygen.c (parse_algo_usage_expire): Use a different error
20434 message for an unknown algorithm name.
20436 dirmngr: Improve concurrency in the non-adns case.
20437 + commit c7ea98cd3d44abf00e32c081e5049ad1d0b1f12c
20438 * dirmngr/dns-stuff.c (map_adns_status_to_gpg_error): New.
20439 (resolve_name_adns, get_dns_cert, get_dns_cname): Use that function.
20440 (getsrv) [!USE_ADNS]: Call res_query outside of nPth.
20442 2016-11-08 Justus Winter <justus@g10code.com>
20444 tests: Fix environment setup.
20445 + commit 1062953d5132af674aacfc6372e3e9f066c5d145
20446 * tests/openpgp/defs.scm (setup-legacy-environment): Do not call
20447 'setup-environment' because that will start the agent, and hence
20448 register the atexit function twice.
20450 Fixes: a55393cb5f4b331cb3a715c7d9a8b91f7606f337
20452 tests: Log and display output from tests when run in parallel.
20453 + commit 2a7615c48ed79e6b28710cc293ce30c812b2e5b0
20454 * tests/openpgp/run-tests.scm (test): Add field 'logfd'.
20455 (test::new, test::set-*): Adapt accordingly.
20456 (test::set-logfd): New function.
20457 (test::open-log-file): Likewise.
20458 (test::run-sync): Use the new function.
20459 (test::run-async): Likewise.
20460 (test::report): Replay the log.
20461 (run-tests-parallel): Reverse the results to restore the original
20464 tests: Simplify test.
20465 + commit 4dd4801bfa4c3f7ba279b3d171a8ed299dbffaaa
20466 * tests/openpgp/issue2417.scm: Simplify.
20468 gpgscm: Expose seek and associated constants.
20469 + commit 591d61d80f4f81176f7e236df794922df9e001a1
20470 * tests/gpgscm/ffi.c (do_seek): New function.
20471 (ffi_init): Expose 'seek' and 'SEEK_{SET,CUR,END}'.
20472 * tests/gpgscm/lib.scm: Document the new function.
20474 gpgscm: Fix error message.
20475 + commit d4454837cd60981c2863955b11c9e1cc8f9e3833
20476 * tests/gpgscm/ffi.c (do_wait_processes): Fix and improve error
20479 tests,w32: Make cleanup more robust.
20480 + commit dd13b2a561e31045fd3d3576bab99543cd4eb6cc
20481 * tests/openpgp/run-tests.scm (run-tests-parallel): Catch errors when
20482 removing the working directory. On Windows this can fail if there is
20483 still a process using one of the files there.
20484 (run-tests-sequential): Likewise.
20486 common,w32: Simplify locking.
20487 + commit 7cbb0803847b8db618d39ff50ae6015e409ab1ae
20488 * common/asshelp.c (lock_spawning): Use the same code on Windows that
20489 we use on all other platforms.
20490 (unlock_spawning): Likewise.
20492 2016-11-07 Justus Winter <justus@g10code.com>
20494 tests: Write a log file for each test.
20495 + commit 26df829fa22f027ca4a5eaf155cdaa2123afbdd5
20496 * tests/openpgp/Makefile.am (CLEANFILES): Delete logs.
20497 * tests/openpgp/run-tests.scm (test::run-sync): Write logs.
20499 gpgscm: Generalize splice to write to multiple sinks.
20500 + commit abe0cc7a21d2b0b5c77cc525b999d1ede2d29185
20501 * tests/gpgscm/ffi.c (ordinal_suffix): New function.
20502 (do_splice): Generalize splice to write to multiple sinks.
20503 * tests/gpgscm/lib.scm (splice): Document this fact.
20505 gpgscm: Drop 'len' argument from splice.
20506 + commit 4d98a72b88cf167295e1ecd6125b9c7a11b6239f
20507 * tests/gpgscm/ffi.c (do_splice): Drop 'len' argument, no-one uses it.
20508 * tests/gpgscm/lib.scm (splice): Document foreign function.
20510 tests: Move environment creation and teardown into each test.
20511 + commit a55393cb5f4b331cb3a715c7d9a8b91f7606f337
20512 * tests/gpgscm/tests.scm (log): New function.
20513 * tests/openpgp/run-tests.scm (run-tests-parallel): Do not run the
20514 startup and teardown scripts.
20515 (run-tests-sequential): Likewise.
20516 * tests/openpgp/setup.scm: Move all functions...
20517 * tests/openpgp/defs.scm: ... here and make them less verbose.
20518 (setup-environment): New function.
20519 (setup-legacy-environment): Likewise.
20520 (start-agent): Make less verbose, run 'stop-agent' at interpreter
20522 (stop-agent): Make less verbose.
20523 * tests/openpgp/finish.scm: Drop file.
20524 * tests/openpgp/Makefile.am (EXTRA_DIST): Drop removed file.
20525 * tests/openpgp/4gb-packet.scm: Use 'setup-environment' or
20526 'setup-legacy-environment' as appropriate.
20527 * tests/openpgp/armdetach.scm: Likewise.
20528 * tests/openpgp/armdetachm.scm: Likewise.
20529 * tests/openpgp/armencrypt.scm: Likewise.
20530 * tests/openpgp/armencryptp.scm: Likewise.
20531 * tests/openpgp/armor.scm: Likewise.
20532 * tests/openpgp/armsignencrypt.scm: Likewise.
20533 * tests/openpgp/armsigs.scm: Likewise.
20534 * tests/openpgp/clearsig.scm: Likewise.
20535 * tests/openpgp/conventional-mdc.scm: Likewise.
20536 * tests/openpgp/conventional.scm: Likewise.
20537 * tests/openpgp/decrypt-dsa.scm: Likewise.
20538 * tests/openpgp/decrypt.scm: Likewise.
20539 * tests/openpgp/default-key.scm: Likewise.
20540 * tests/openpgp/detach.scm: Likewise.
20541 * tests/openpgp/detachm.scm: Likewise.
20542 * tests/openpgp/ecc.scm: Likewise.
20543 * tests/openpgp/encrypt-dsa.scm: Likewise.
20544 * tests/openpgp/encrypt.scm: Likewise.
20545 * tests/openpgp/encryptp.scm: Likewise.
20546 * tests/openpgp/export.scm: Likewise.
20547 * tests/openpgp/finish.scm: Likewise.
20548 * tests/openpgp/genkey1024.scm: Likewise.
20549 * tests/openpgp/gpgtar.scm: Likewise.
20550 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
20551 * tests/openpgp/import.scm: Likewise.
20552 * tests/openpgp/issue2015.scm: Likewise.
20553 * tests/openpgp/issue2417.scm: Likewise.
20554 * tests/openpgp/issue2419.scm: Likewise.
20555 * tests/openpgp/key-selection.scm: Likewise.
20556 * tests/openpgp/mds.scm: Likewise.
20557 * tests/openpgp/multisig.scm: Likewise.
20558 * tests/openpgp/quick-key-manipulation.scm: Likewise.
20559 * tests/openpgp/seat.scm: Likewise.
20560 * tests/openpgp/shell.scm: Likewise.
20561 * tests/openpgp/signencrypt-dsa.scm: Likewise.
20562 * tests/openpgp/signencrypt.scm: Likewise.
20563 * tests/openpgp/sigs-dsa.scm: Likewise.
20564 * tests/openpgp/sigs.scm: Likewise.
20565 * tests/openpgp/ssh.scm: Likewise.
20566 * tests/openpgp/tofu.scm: Likewise.
20567 * tests/openpgp/use-exact-key.scm: Likewise.
20568 * tests/openpgp/verify.scm: Likewise.
20569 * tests/openpgp/version.scm: Likewise.
20570 * tests/openpgp/issue2346.scm: Likewise and simplify.
20572 tests: Do not allow tests to be run in a shared environment.
20573 + commit ac078469cbafe85cf771fca84f376740850d10b0
20574 * tests/openpgp/README: Update.
20575 * tests/openpgp/run-tests.scm (run-tests-parallel-shared): Drop
20577 (run-tests-parallel-isolated): Rename to 'run-tests-parallel'.
20578 (run-tests-sequential-shared): Drop function.
20579 (run-tests-sequential-isolated): Rename to 'run-tests-sequential'.
20582 + commit 37751d2b194bc33539f5b9ea0e02e9f209d2bcf6
20583 * tests/openpgp/Makefile.am: Drop dependency on 'mk-tdata'.
20585 Fixes: 70215ff470c82d144e872057dfa5a478cc9195f2
20587 2016-11-07 Werner Koch <wk@gnupg.org>
20589 wks: Encrypt all client mails also the target key,
20590 + commit 56e1864aa337f36317534db521fd4434d70e0784
20591 * tools/gpg-wks-client.c (encrypt_response): Add arg FINGERPRINT.
20592 (send_confirmation_response): Ditto.
20593 (process_confirmation_request): Parse out fingerprint and pass
20594 send_confirmation_response.
20596 2016-11-07 Justus Winter <justus@g10code.com>
20598 tests,tools: Reimplement 'mk-tdata' in Scheme.
20599 + commit 70215ff470c82d144e872057dfa5a478cc9195f2
20600 * tests/openpgp/defs.scm (tools): Drop 'mk-tdata'.
20601 * tests/openpgp/setup.scm (make-test-data): New function.
20602 * tests/openpgp/verify.scm: Avoid 'mk-tdata'.
20603 * tools/Makefile.am (noinst_PROGRAMS): Drop 'mk-tdata'.
20604 * tools/mk-tdata.c: Drop file.
20606 gpgscm,w32: Provide schemish file handling for binary files.
20607 + commit 413cc50345557e0a516f33b98e8aab19bbc8b4fe
20608 * tests/gpgscm/lib.scm (call-with-binary-input-file): New function.
20609 (call-with-binary-output-file): Likewise.
20611 gpgscm: Add support for pseudo-random numbers.
20612 + commit 6e677f9b55fdb610e93134042ee41ee5c641cbdf
20613 * tests/gpgscm/ffi.c (do_getpid): New function.
20614 (do_srandom): Likewise.
20615 (random_scaled): Likewise.
20616 (do_random): Likewise.
20617 (do_make_random_string): Likewise.
20618 (ffi_init): Expose the new functions.
20619 * tests/gpgscm/lib.scm: Document the new functions.
20622 + commit 5840353d8bbcd9e75374f3bdb2547ffa7bbea897
20623 * g10/getkey.c (get_best_pubkey_byname): If 'get_pubkey_byname' does
20624 not return a getkey context, then it can return at most one key,
20625 therefore there is nothing to rank. Also, always initialize '*retctx'
20626 to be on the safe side.
20628 Fixes: ab89164be02012f1bf159c971853b8610e966301
20630 2016-11-04 Justus Winter <justus@g10code.com>
20632 gpgscm: Fix printing strings containing zero bytes.
20633 + commit 1f45878a72f23d4bae08d73b614096b485f35274
20634 * tests/gpgscm/scheme.c (atom2str): Fix computing the length of Scheme
20635 strings. Scheme strings can contain zero bytes.
20637 gpgscm: Implement 'atexit'.
20638 + commit 43f8006f5c75e3d15fe200e2fa41587a73bfb07b
20639 * tests/gpgscm/ffi.scm (throw): Run *run-atexit-handlers* when
20640 terminating the interpreter.
20641 (*atexit-handlers*): New variable.
20642 (*run-atexit-handlers*): New function.
20643 (atexit): Likewise.
20644 * tests/gpgscm/main.c (main): Run *run-atexit-handlers* at normal
20645 interpreter shutdown.
20647 2016-11-04 NIIBE Yutaka <gniibe@fsij.org>
20649 scd: Fix length error for READKEY.
20650 + commit cd00b07ec26c3408e6aee66957b08c6fd319b700
20651 * scd/app-openpgp.c (do_readkey): Decrement the length.
20653 scd: Add --advanced option for READKEY.
20654 + commit f9da935c3eb302e75a80def51128fb6f669661d7
20655 * scd/command.c (cmd_readkey) : Support ADVANCED arg.
20656 * scd/app.c (app_readcert): Add ADVANCED arg.
20657 * scd/app-openpgp.c (do_readkey): Implement ADVANCED arg.
20658 * scd/app-nks.c (do_readkey): Error return with GPG_ERR_NOT_SUPPORTED.
20660 2016-11-03 Werner Koch <wk@gnupg.org>
20662 agent: Extend the PINENTRY_LAUNCHED inquiry and status.
20663 + commit c1ea0b577a468030d2b006317ba27fc1746c4b14
20664 * agent/call-pinentry.c (start_pinentry): Get flavor and version and
20665 pass it to agent_inq_pinentry_launched.
20666 * agent/command.c (agent_inq_pinentry_launched): Add arg EXTRA.
20667 * g10/server.c (gpg_proxy_pinentry_notify): Print a new diagnostic.
20669 2016-11-03 Justus Winter <justus@g10code.com>
20671 g10: Improve and unify key selection for -r and --locate-keys.
20672 + commit ab89164be02012f1bf159c971853b8610e966301
20673 * g10/getkey.c (struct pubkey_cmp_cookie): New type.
20674 (key_is_ok, uid_is_ok, subkey_is_ok): New functions.
20675 (pubkey_cmp): Likewise.
20676 (get_best_pubkey_byname): Likewise.
20677 * g10/keydb.h (get_best_pubkey_byname): New prototype.
20678 * g10/keylist.c (locate_one): Use the new function.
20679 * g10/pkclist.c (find_and_check_key): Likewise.
20680 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20681 (TEST_FILES): Add new files.
20682 * tests/openpgp/key-selection.scm: New file.
20683 * tests/openpgp/key-selection/0.asc: Likewise.
20684 * tests/openpgp/key-selection/1.asc: Likewise.
20685 * tests/openpgp/key-selection/2.asc: Likewise.
20686 * tests/openpgp/key-selection/3.asc: Likewise.
20687 * tests/openpgp/key-selection/4.asc: Likewise.
20689 gpgscm,tests: Add new functions to the test environment.
20690 + commit 1ec07cbc209f247fd85704f5701564e31aa56d0b
20691 * tests/gpgscm/lib.scm (first, last, powerset): New functions.
20692 * tests/gpgscm/tests.scm (interactive-shell): New function.
20693 * tests/openpgp/Makefile.am (EXTRA_DIST): Add new file.
20694 * tests/openpgp/README: Document 'interactive-shell'.
20695 * tests/openpgp/shell.scm: New file.
20697 2016-11-03 Werner Koch <wk@gnupg.org>
20699 gpgconf: Add a new field to the --query-swdb output.
20700 + commit d10b67b9bc32e8feff1be86e6646fc23e58fe45d
20701 * tools/gpgconf.c (query_swdb): Insert new field with the installed
20702 version. Check that the supplied version does not contain a colon.
20704 2016-11-02 Werner Koch <wk@gnupg.org>
20706 gpgconf: Add command --query-swdb.
20707 + commit 0ed6a6df5aa421a9c5cdb1e63867f0deee79af9e
20708 * tools/gpgconf.c (aQuerySWDB): New.
20709 (opts): Add --query-swdb.
20710 (valid_swdb_name_p): New.
20712 (main): Implement command --query-swdb.
20714 common: Improve compare_string_versions.
20715 + commit 488b183811fc25c1ae49b4730491accf1adf518e
20716 * common/stringhelp.c: Include limits.h.
20717 (compare_version_strings): Change semantics to behave like strcmp.
20718 Include the patch lebel in the comparison. Allow checking a single
20720 * common/t-stringhelp.c (test_compare_version_strings): Adjust test
20721 vectors and a few new vectors.
20722 * g10/call-agent.c (warn_version_mismatch): Adjust to new sematics.
20723 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
20724 * sm/call-agent.c (warn_version_mismatch): Ditto.
20725 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
20727 2016-11-02 Justus Winter <justus@g10code.com>
20729 gpgscm: Fix inclusion of readline header.
20730 + commit 60ad1a7f37ffc10e601e69a3e2d2bb14af510257
20731 * tests/gpgscm/ffi.c: Define magic macro to prevent the completion
20732 function from redefined.
20734 2016-11-02 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20736 build: Fix misspelled dirmngr.
20737 + commit 5e693ddfbe44d149ce0d9393d699c613ad5ea706
20740 Spelling: correct spelling of "passphrase".
20741 + commit 68b59bbc42ba9ec69496758743924d54a95742f0
20742 There were several different variant spellings of "passphrase". This
20743 should fix them all for all English text.
20745 I did notice that po/it.po contains multiple instances of
20746 "passhprase", which also looks suspect to me, but i do not know
20747 Italian, so i did not try to correct it.
20749 2016-11-02 Justus Winter <justus@g10code.com>
20751 g10,w32: Fix build on Windows.
20752 + commit 5d4f1408d0dd055d412ae44bb4a0f28f74617f05
20753 * g10/tofu.c (begin_transaction): Use the new 'gnupg_usleep'.
20755 2016-10-31 Werner Koch <wk@gnupg.org>
20757 common: New function gnupg_usleep.
20758 + commit ad491ceec6145b3781a05dc7b4a36052abeeb4b4
20759 * configure.ac (HAVE_NANOSLEEP): Test for nanosleep.
20760 * common/sysutils.c: Always include time.h.
20761 (gnupg_usleep): New.
20763 2016-10-31 Andre Heinecke <aheinecke@intevation.de>
20765 w32: Fix PKG_CONFIG_LIBDIR in --build-w32.
20766 + commit 3b6b8fe32af7568ff51066d4c2e3679df6dea86f
20767 * autogen.sh: Point pkg-config to the right location.
20769 2016-10-31 Neal H. Walfield <neal@g10code.com>
20771 g10: Avoid gratuitious SQLite aborts and starving writers.
20772 + commit 7a634e48b13c5d5d295b8fed9b429e1b2109a333
20773 * g10/tofu.c: Include <time.h>, <utime.h>, <fcntl.h> and <unistd.h>.
20774 (tofu_dbs_s): Add fields want_lock_file and want_lock_file_ctime.
20775 (begin_transaction): Only yield if DBS->WANT_LOCK_FILE_CTIME has
20776 changed since we took the lock. Don't use gpgrt_yield to yield, but
20777 sleep for 100ms. After taking the batch lock, update
20778 DBS->WANT_LOCK_FILE_CTIME. Also take the batch lock the first time we
20779 take the real lock. When taking the real lock, use immediate not
20780 deferred mode to avoid gratuitious aborts.
20781 (end_transaction): When dropping the outermost real lock, drop the
20783 (busy_handler): New function.
20784 (opendbs): Set the busy handler to it when opening the DB. Initialize
20785 CTRL->TOFU.DBS->WANT_LOCK_FILE.
20786 (tofu_closedbs): Free DBS->WANT_LOCK_FILE.
20788 2016-10-30 Neal H. Walfield <neal@g10code.com>
20790 g10: Avoid reading in keys when possible.
20791 + commit eec365a02bd35d2d5c9e4d2c8d18bcd9180cf859
20792 * g10/tofu.c (build_conflict_set): If CONFLICT_SET contains a single
20793 element, don't bother to check for cross sigs. Add parameter PK.
20796 g10: Fix bit setting.
20797 + commit 614ca00676bb8ca12b5107fec0e4ef8818445254
20798 * g10/tofu.c (build_conflict_set): Fix bit setting.
20800 2016-10-28 Werner Koch <wk@gnupg.org>
20802 gpg: Enable the Issuer Fingerprint from rfc4880bis.
20803 + commit b6f08dbb0b45059cdbbb5d9be9725e437f42a8cc
20804 * g10/build-packet.c (build_sig_subpkt_from_sig): Always write the new
20805 Issuer Fingerprint sub-packet.
20806 * g10/mainproc.c (check_sig_and_print): Always consider that
20809 2016-10-27 Werner Koch <wk@gnupg.org>
20811 dirmngr: Fix signature checking.
20812 + commit 5a1f6a0062488aaf345b1c73ba98a540e673d619
20813 * dirmngr/server.c: Include cpparray.h.
20814 (verify_swdb_parm_s): New.
20815 (verify_swdb_status_cb): New.
20816 (cmd_versioncheck): Use gpgv to correclty verify the signature.
20817 Rename some variable to comply with GNU standards.
20819 gpg: Verify multiple detached signatures with different hash algos.
20820 + commit 8fced66be35db5ac2a6bfdb9bccb2c0e582d8256
20821 * g10/mainproc.c (proc_tree): Loose check. Enable all algos.
20823 common: Add GNUPG_MODULE_NAME_GPGV.
20824 + commit ece9ade4b44fb3d5d120cfd32b23632e5efd2134
20825 * common/util.h (GNUPG_MODULE_NAME_GPGV): New.
20826 * common/homedir.c (gnupg_module_name): Implement.
20828 2016-10-27 Justus Winter <justus@g10code.com>
20830 g10: Fix iteration over getkey results.
20831 + commit 8ea72a776a88f3c851e812d258355be80caa1bc1
20832 * g10/getkey.c (getkey_next): Return the public key in PK even if
20833 RET_KEYBLOCK is NULL.
20835 g10: Assert preconditions.
20836 + commit 66a0091d74768ab3a4a5342d3645e1834c59045a
20837 * g10/getkey.c (get_pubkey_byname): Assert preconditions.
20839 2016-10-27 Werner Koch <wk@gnupg.org>
20841 dirmngr: Do not implement --supervised in Windows.
20842 + commit cf20b23c146c9e499263654644035796475de097
20843 * dirmngr/dirmngr.c (opts) [W32]: Remove --supervised.
20844 (main) [W32]: Ditto.
20846 common: Remove debug output from gnupg_get_socket_name.
20847 + commit a9c8b5fbe7ae241bf45bdee15884abc7891aedf9
20848 * common/sysutils.c (gnupg_get_socket_name): Remove debug message and
20849 use my_error_from_syserror.
20851 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
20853 dirmngr: ADNS error handling fix.
20854 + commit 45dfc02b47f798f5a3b9973ca6a9f5a907d7e665
20855 * dirmngr/dns-stuff.c (resolve_name_adns, get_dns_cert, get_dns_cname):
20856 Use gpg_error and gpg_err_code_from_errno to compose the error value.
20858 2016-10-27 Werner Koch <wk@gnupg.org>
20860 gpg: Convey --quick option to dirmngr for --auto-key-retrieve.
20861 + commit a15ed5a1fd5307b3ec1822daf3b138b187db0b5e
20862 * g10/call-dirmngr.c (gpg_dirmngr_ks_get): Add arg 'quick'.
20863 (gpg_dirmngr_wkd_get): Ditto.
20864 * g10/keyserver.c (keyserver_get): Add arg 'quick'.
20865 (keyserver_get_chunk): Add arg 'quick'.
20866 (keyserver_import_fprint): Ditto. Change callers to pass 0 for it.
20867 (keyserver_import_keyid): Ditto.
20868 (keyserver_import_wkd): Ditto.
20869 * g10/mainproc.c (check_sig_and_print): Call the 3 fucntions with
20872 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
20874 common: Fix gnupg_inotify_has_name, differently.
20875 + commit 8b3d0d1a36cab83dafb98ccb7895144edb95e298
20876 * common/sysutils.c (gnupg_inotify_has_name): Use void * to stop the
20879 dirmngr: More ADNS error fix.
20880 + commit 6f1d8123d61b3efac94b4c61ee75bd947790ba42
20881 * dirmngr/dns-stuff.c (get_dns_cert, getsrv, get_dns_cname): Fix return
20884 dirmngr: Fix error return for ADNS.
20885 + commit 8a9341b42cd1891090d45cc068bff84b2b3edb50
20886 * dirmngr/dns-stuff.c (resolve_name_adns): Use RET for return value.
20888 g10: Fix ECDH, clarifying the format.
20889 + commit ca0ee4e381d0b6a57e4ddc8f4bb2390eb97a2540
20890 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Returns error when
20891 it's short. Clarify the format. Handle other prefixes correctly.
20893 scd: Add 0x41 prefix for x-coordinate only result.
20894 + commit 6bbd97d6c771b2e2c7cfcff6d5a823f0fb44d443
20895 * scd/app-openpgp.c (do_decipher): When it's x-coordinate only, add the
20898 2016-10-27 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
20900 g10: ECDH shared point format.
20901 + commit b648f28f9f8b889f1217a649ded1d45f261bb2bf
20902 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Improve handling of
20903 ECDH shared point format.
20905 2016-10-27 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20907 dirmngr: Implement --supervised command (for systemd, etc).
20908 + commit 75f8aaf5bc2dc7fcffe2987a572d489155c91eb9
20909 * dirmngr/dirmngr.c (main): Add new --supervised command, which is a
20910 mode designed for running under a process supervision system like
20912 * doc/dirmngr.texi: document --supervised option.
20914 agent,common: move get_socket_name() into common.
20915 + commit 6316b28e896957adb76a61a41d2e1c2a08d9f716
20916 * agent/gpg-agent.c (get_socket_name): move to ...
20917 * common/sysutils.c (gnupg_get_socket_name): ... here.
20919 dirmngr: report actual socket name.
20920 + commit 6bb6ac56cca8135666387a0b9d88dd6b50311418
20921 * dirmngr/dirmngr.[ch] (dirmngr_get_current_socket_name): new function
20922 to report known socket name.
20923 * dirmngr/server.c (cmd_getinfo): use dirmngr_get_current_socket_name
20924 to report correct socket name.
20926 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
20928 common: Fix gnupg_inotify_has_name.
20929 + commit bc28f320fa6f5b9fcdb73dba5e6c582daf7992c5
20930 * common/sysutils.c (gnupg_inotify_has_name): Take care of the
20933 dirmngr: Fix help string and argument.
20934 + commit 96414baf36b8e6385b71847c789d489ebe176a93
20935 * dirmngr/server.c (hlp_versioncheck): Add a newline.
20936 (cmd_versioncheck): Fix argument.
20938 2016-10-26 Werner Koch <wk@gnupg.org>
20940 dirmngr: Fix hang due to deferred thread initialization.
20941 + commit d1ccab5176d7719328b287544b54b85e0277b146
20942 * dirmngr/dirmngr.c (main): Call ldap_wrapper_launch_thread after
20945 agent: Avoid double error message.
20946 + commit b77f95a4a675fd20f6eeb611f4e7b519eceb4ad3
20947 * agent/gpg-agent.c (map_supervised_sockets): Shorten error message.
20948 Remove unneeded diagnostic.
20950 common: Use GPG_ERR_INV_VALUE instead of GPG_ERR_EINVAL.
20951 + commit ece13f177d948013b6f3df926406c0cd947abc25
20952 * common/sysutils.c (gnupg_inotify_watch_socket): Return
20953 GPG_ERR_INV_VALUE for a missing socket name and set proper error
20956 tests: Improve portability of fake-pinentry.
20957 + commit 21b318452abbfe21c45c2a67dae0e3a81cff1090
20958 * tests/openpgp/fake-pinentry.c: Make all functions static.
20959 (get_passphrase): s/unlink/remove/ because that is standard C.
20960 (spacep): Rename to whitespace and change all callers.
20961 (main): Move macro out of if-then chain.
20963 2016-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20965 agent: --supervised mode improvements.
20966 + commit 27f6d5b9f4b6057ddeb9ace87a1e7e61ebac63e6
20967 * agent/gpg-agent.c (map_supervised_socket): if the agent is running
20968 in --supervised mode and is not actually given LISTEN_FDNAMES
20969 directives, require at least fd 3 to be open for listening.
20971 common: avoid segfault.
20972 + commit 3b5f5e0eb02ecbdcf59722755f22a9d2f88de6e6
20973 * common/sysutils.c (gnupg_inotify_watch_socket): return EINVAL if
20974 socket_name is NULL, rather than segfaulting
20976 2016-10-25 Justus Winter <justus@g10code.com>
20978 agent,tests,w32: Fix relaying pinentry user data, fix fake-pinentry.
20979 + commit 852b8f0b89d447536dfdf6cd4ea91615c75491ce
20980 * agent/call-pinentry.c (start_pinentry): Also send the user data
20981 using an Assuan 'OPTION' command.
20982 * tests/openpgp/fake-pinentry.c (get_passphrase): Fix updating
20984 (spacep): Include newline characters.
20985 (rstrip): New function.
20986 (main): Handle Windows line endings. Handle the userdata option, and
20987 restart with the new options.
20989 tests: Do not autostart gpg-agents on teardown.
20990 + commit f88f11a25665dca7490a09088aa24edf396e4c40
20991 * tests/openpgp/defs.c (stop-agent): Use '--no-autostart' when calling
20994 2016-10-25 Werner Koch <wk@gnupg.org>
20996 dirmngr: Allow command VERSIONCHECK to handle 3 part version numbers.
20997 + commit b120f358c25cc846ca9d841d47e71ca1a7fe02e4
20998 * dirmngr/server.c (parse_version_string): Add arg MICRO and set it.
20999 (cmp_version): Extend to handle the MICRO part.
21000 (confucius_mktmpdir): Rename to my_mktmpdir.
21001 (my_mktmpdir): xstrconcat does not fail; use strconcat.
21002 (fetch_into_tmpdir): Improve error checking.
21004 common: Use strconcat in gnupg_setenv.
21005 + commit 7983f8758703071710c11bf2a255efcd71836b65
21006 * common/sysutils.c (gnupg_setenv): Replace malloc+stpcpy by
21007 strconcat. Indent cpp conditionals.
21008 (gnupg_unsetenv): Indent cpp conditionals.
21010 2016-10-24 Werner Koch <wk@gnupg.org>
21012 gpg: Replace two sprintf calls.
21013 + commit 9d6146d6f9870fbfcec15cdc4becaf094d5a90e0
21014 * g10/keygen.c (print_status_key_created): Use snprintf for now.
21015 (ask_expire_interval): Replace xmalloc and sprintf by xasprintf.
21017 agent: Minor cleanup for recent change in findkey.c.
21018 + commit 8c40b3b98d3ddeda79fde981e6539c5b3b09d9a2
21019 * agent/findkey.c (agent_write_private_key): Avoid label name error.
21021 agent: Slightly change structure of cmd_readkey.
21022 + commit fdb653a33ea1a24d1159880624dbbcc0867865b5
21023 * agent/command.c (cmd_readkey): Avoid a leave label in the middle of
21024 the code. Remove the special return.
21026 2016-10-24 Kai Michaelis <kai@gnupg.org>
21028 dirmngr: Fix segfault in VERSIONCHECK.
21029 + commit 5e7dfd979d2d91800d90c3ce9a66755df3217682
21030 * dirmngr/server.c (cmd_versioncheck): The VERSIONCHECK command crashes
21031 when called without program version.
21033 2016-10-24 NIIBE Yutaka <gniibe@fsij.org>
21035 scd: Use canonical curve name of libgcrypt.
21036 + commit b1828c17fc475def1ee9e06f083f513f568c241b
21037 * scd/app-openpgp.c (send_key_attr): Use curve instead of OID.
21038 (ecdh_params): New.
21039 (ecc_read_pubkey): Use ecdh_params. Use curve name.
21040 (ecc_writekey): Likewise.
21041 (ecc_curve): Rename from ecc_oid.
21042 (parse_algorithm_attribute): Use ecc_curve.
21043 * g10/call-agent.c (learn_status_cb): Use openpgp_is_curve_supported to
21044 intern the curve name string.
21045 * g10/card-util.c (card_status): Conver curve name to alias for print.
21047 common: Fix openpgp_is_curve_supported.
21048 + commit 945e7ab0ddedf5f58afd97d81e101939de5b5d89
21049 * common/openpgp-oid.c (openpgp_is_curve_supported): Support both of
21050 canonical name of the curve and alias.
21052 g10: Fix card keygen for decryption.
21053 + commit acef0951646b47c87ccc1c616f0105a068e7ed86
21054 * g10/keygen.c (do_generate_keypair): Fix arguments.
21056 2016-10-22 NIIBE Yutaka <gniibe@fsij.org>
21058 g10: More card key generation change.
21059 + commit 987bbb2276aeb6bee2793e8406e223717b605009
21060 * g10/keygen.c (gen_card_key): Add back ALGO as the second argument.
21061 Don't get ALGO by KEY-ATTR by this function. It's caller to provide
21062 ALGO. Don't do that by both of caller and callee.
21063 (generate_keypair): Only put paramerters needed. Use parameters
21064 for ALGO to call gen_card_key.
21065 (generate_card_subkeypair): Get ALGO and call gen_card_key with it.
21067 2016-10-21 Andre Heinecke <aheinecke@intevation.de>
21069 g10: Write first keybox record in binary mode.
21070 + commit f7e50634be71ce3028726f23edf14454109a04a8
21071 * g10/keydb.c (maybe_create_keyring_or_box): Open in binary mode.
21073 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
21075 g10,scd: Fix ECC keygen.
21076 + commit d2653b1a6db90aed073194a51fd61023d69773ec
21077 * g10/keygen.c (generate_keypair): For card key generation, fill
21078 parameters by KEY-ATTR.
21080 * scd/app-openpgp.c (ecc_read_pubkey): OID should be freed at last,
21081 after its reference by OIDBUF is finished.
21082 (ecc_writekey): Likewise.
21084 scd: Fix segfault changing key attr.
21085 + commit 693e657ff04756737dce025203c0deba480ea8de
21086 * asc/app-openpgp.c (change_keyattr_from_string): Release after
21089 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
21090 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
21092 g10: Don't ask keysize for for non-RSA card.
21093 + commit dafce6f698bec6e9d4c0125b90754d0687294e86
21094 * g10/card-util.c (card_status): Bug fix for keyno.
21095 (ask_card_rsa_keysize, do_change_rsa_keysize): Rename.
21096 (generate_card_keys): Only ask keysize when RSA.
21097 (card_generate_subkey): Likewise.
21099 g10: Support ECC for gen_card_key.
21100 + commit 161cb22f13bcd8cbdb08558d9926b2168a8297ac
21101 * g10/keygen.c (gen_card_key): Remove the first argument of ALGO.
21102 (do_generate_keypair, generate_card_subkeypair): Follow the change.
21104 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
21106 Fix use cases of snprintf.
21107 + commit 6e85ac77af594035137950d801d8a1bacce548a3
21108 * agent/call-pinentry.c, agent/call-scd.c, agent/command.c,
21109 build-aux/speedo/w32/g4wihelp.c, common/get-passphrase.c,
21110 dirmngr/dirmngr.c, g10/call-agent.c, g10/cpr.c, g10/keygen.c,
21111 g10/openfile.c, g10/passphrase.c, scd/app-openpgp.c, scd/scdaemon.c,
21112 sm/call-agent.c, sm/call-dirmngr.c, sm/certreqgen.c: Fix assuming C99.
21114 agent: Fix saving with FORCE=1.
21115 + commit 1ffd475f99eaff4e40950eda88702f8db9288eb5
21116 * agent/findkey.c (agent_write_private_key): Recover from an error of
21117 GPG_ERR_ENOENT when FORCE=1 and it is opened with "rb+".
21119 2016-10-20 Justus Winter <justus@g10code.com>
21121 tests: Simplify test.
21122 + commit 71158d8d5f823888abc8588caa6497860ce59c06
21123 * tests/openpgp/quick-key-manipulation.scm: Avoid creating a temporary
21124 home directory, just make the uids unique.
21126 tests: Flush stdout in the fake pinentry.
21127 + commit ca9597f080f70a8435daaeb5449bef0462a1402a
21128 * tests/openpgp/fake-pinentry.c (reply): Flush stdout.
21130 common,w32: Fix setting environment variables on Windows.
21131 + commit 8c7c4faf3de28ca70a60e6b15f51c1b206e0ddd9
21132 * common/sysutils.c (gnupg_setenv): Also update the environment block
21133 maintained by the C runtime.
21134 (gnupg_unsetenv): Likewise.
21135 * tests/gpgscm/ffi.c (do_setenv): Fix error handling.
21137 tests,w32: Cope with Windows line endings.
21138 + commit bf37916a23bd0929fc4a5f28c9a41f43c5a473f6
21139 * tests/openpgp/issue2015.scm: Rstrip line before comparison.
21141 tests: Create and remove socket directories.
21142 + commit 2d794779e0fd9d9a1efc98e7bd77a296a25f4293
21143 * tests/openpgp/defs.scm (start-agent): Move function here and create
21144 the socket directory prior to starting the agent.
21145 (stop-agent): Move function here and remove the socket directory.
21146 * tests/openpgp/finish.scm: Adapt.
21147 * tests/openpgp/setup.scm: Likewise.
21149 2016-10-20 NIIBE Yutaka <gniibe@fsij.org>
21151 agent, g10: Fix keygen.
21152 + commit 9a34e2142b426b98c73fd888102ea1596bbce62a
21153 * agent/command.c (cmd_readkey): Get length after card_readkey.
21154 * g10/keygen.c (gen_card_key): Fix off-by-one error.
21156 scd: GENKEY updates the public key in APP.
21157 + commit b680f79cc112c4831293e259d7db2921bcd783a4
21158 * scd/app-openpgp.c (rsa_read_pubkey, ecc_read_pubkey): New.
21159 (read_public_key): New.
21160 (get_public_key, do_genkey): Use read_public_key.
21162 g10: smartcard keygen change.
21163 + commit 980c037bedb968ddf155dd334c0a70b918a17759
21164 * g10/call-agent.c (scd_genkey_cb_append_savedbytes): Remove.
21165 (scd_genkey_cb): Only handle KEY-CREATED-AT and PROGRESS.
21166 (agent_scd_genkey): Remove INFO argument. CREATETIME is now in/out
21168 (agent_readkey): Use READKEY --card instead of SCD READKEY.
21169 * g10/keygen.c (gen_card_key): Use READKEY --card command of the agent
21170 to retrieve public key information from card and let the agent make
21171 a file for private key with shadow info.
21173 agent: Add --card option for READKEY.
21174 + commit 82cbab906a3e72a98fdc16096f2f0451465969a2
21175 * agent/findkey.c (agent_write_shadow_key): New.
21176 * agent/command-ssh.c (card_key_available): Use agent_write_shadow_key.
21177 * agent/learncard.c (agent_handle_learn): Likewise.
21178 * agent/command.c (cmd_readkey): Add --card option.
21180 2016-10-19 Kai Michaelis <kai@gnupg.org>
21182 dirmngr: improve VERSIONCHECK.
21183 + commit 72a99f582dad4cb4c3b05b97c7ebb8d537f10b79
21184 Replace strtok_r() and code formatting. Use code from libgpg-error for
21185 version comparison.
21187 2016-10-18 Justus Winter <justus@g10code.com>
21189 common: Fix copying data to estreams.
21190 + commit 8dce5ee55a0268d196023224dcf3020306922490
21191 * common/exectool.c (copy_buffer_do_copy): Correctly account for
21192 partially written data in the event of errors.
21194 common,w32: Communicate with child in non-blocking mode.
21195 + commit 05a1e412332dd980353a4e3e59bc75ba40bae7fc
21196 * common/exechelp-w32.c (gnupg_spawn_process): Open streams in
21197 non-blocking mode if requested.
21199 common,w32: Extend gnupg_create_inbound_pipe et al.
21200 + commit f2d39a6d051413289c717b9cd2dc387a270b8e7c
21201 * common/exechelp-w32.c (do_create_pipe): Rename, add arguments, and
21202 create a stream if reqested.
21203 (gnupg_create_inbound_pipe): Use the extended function to open the
21204 stream if requested.
21205 (gnupg_create_outbound_pipe): Likewise.
21206 (gnupg_create_pipe): Update call site.
21208 common,w32: Make use of default_errsource in exechelp.
21209 + commit 727ca74bb942464217e678012cccbfc347ae08a5
21210 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
21211 Use them instead of gpg_error and gpg_error_from_syserror.
21213 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
21214 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
21216 scd: Support ECC key generation.
21217 + commit 34439da2d62b964a914ace66bae7e38f619582a4
21218 * scd/app-openpgp.c (get_public_key): Fix a message.
21219 (change_keyattr_from_string, ecc_writekey): Call mpi_release sooner.
21220 (do_genkey): Add ECC support.
21222 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
21224 scd: minor cleanup to merge other works.
21225 + commit f1845f25dbea79c191427710fa56ed01e63a045b
21226 * scd/iso7816.c (do_generate_keypair): Use const char * for DATA.
21227 (iso7816_generate_keypair, iso7816_read_public_key): Likewise.
21228 * scd/app-openpgp.c (get_public_key): Follow the change.
21229 (do_genkey): Ditto. Use ERR instead of RC. Use u32 for CREATED_AT.
21231 2016-10-17 Justus Winter <justus@g10code.com>
21233 gpgscm: Initialize nesting stack.
21234 + commit c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794
21235 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
21238 2016-10-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21240 doc: Document how to manually shut down gpg-agent.
21241 + commit 869c06efa791bbc8330becdb3f13f7cf9506257e
21242 * doc/gpg-agent.texi: document "gpgconf --kill gpg-agent" for manual
21245 This was requested in a side-comment in https://bugs.debian.org/840669
21247 doc: Point gpg-agent(1) at the right gpg manpage in SEE ALSO.
21248 + commit c53ce53ab1fa6a328c368f2a15e3ccd803f03ee2
21249 * doc/gpg-agent.texi (SEE ALSO): refer to @gpgname, instead of
21250 hard-coding "gpg2".
21252 2016-10-17 NIIBE Yutaka <gniibe@fsij.org>
21254 scd: Fix keytocard for ECC.
21255 + commit 25428be52168fa9c581b7f11c95a5c63b25343b7
21256 * scd/app-openpgp.c (build_ecc_privkey_template): Size can be greater
21257 than 128 when it comes with public key for curve of larger field.
21259 gpgconf: Fix for --homedir.
21260 + commit 70a8584ec4389209762eb65bb77f20f7881577be
21261 * tools/gpgconf-comp.c (gpg_agent_runtime_change,
21262 scdaemon_runtime_change, dirmngr_runtime_change): Provide the homedir
21263 arguments by --homedir when it's not default.
21265 2016-10-16 Werner Koch <wk@gnupg.org>
21267 agent: Use straightforward names for the default socket names.
21268 + commit 0b0f9a3788cb5d3c26cec16cd24acc973069d280
21269 * configure.ac (GPG_AGENT_SOCK_NAME): Change name to *.extra.
21270 (GPG_AGENT_EXTRA_SOCK_NAME): Change name to *browser.
21272 2016-10-15 Werner Koch <wk@gnupg.org>
21274 agent: Move inotify code to common and improve it.
21275 + commit 2f7d4c38c9e7bcc14e6e0bf219d688c40a4afecb
21276 * common/sysutils.c: Include sys/inotify.h.
21277 (my_error_from_syserror, my_error): New.
21278 (gnupg_inotify_watch_socket): New.
21279 (gnupg_inotify_has_name): New.
21280 * agent/gpg-agent.c: Do not include sys/inotify.h.
21281 (my_inotify_is_name): Remove.
21282 (handle_connections): Remove HAVE_INOTIFY_INIT protected code and use
21285 2016-10-14 Kai Michaelis <kai@gnupg.org>
21287 dirmngr: use gnupg_mkdtemp instead of mkstemp.
21288 + commit c318561ef4c97f0c2767aef377531d58174060a1
21289 MinGW on debian does not support mkstemp.
21291 dirmngr: add VERSIONCHECK command.
21292 + commit f99c5fa1c970dc1122ac62371eb8d758f380ed57
21293 Given an application name and version VERSIONCHECK fetches the software
21294 version list from version.gnupg.org, verifies the signature and returns
21295 whenever the given version is older (UPDATE), current (CURRENT) or newer
21298 2016-10-13 Neal H. Walfield <neal@g10code.com>
21300 tests: Use shorter filenames.
21301 + commit 0c56ad5a8d89d69a9ed00571720b3b105f955214
21302 * tests/openpgp/tofu/cross-sigs/
21303 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg: Rename from this...
21304 * tests/openpgp/tofu/cross-sigs/EC38277E-1.gpg: .. to this.
21305 * tests/openpgp/tofu/cross-sigs/
21306 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: Rename from this...
21307 * tests/openpgp/tofu/cross-sigs/EC38277E-1.txt: .. to this.
21308 * tests/openpgp/tofu/cross-sigs/
21309 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: Rename from this...
21310 * tests/openpgp/tofu/cross-sigs/EC38277E-2.gpg: .. to this.
21311 * tests/openpgp/tofu/cross-sigs/
21312 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: Rename from this...
21313 * tests/openpgp/tofu/cross-sigs/EC38277E-2.txt: .. to this.
21314 * tests/openpgp/tofu/cross-sigs/
21315 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: Rename from this...
21316 * tests/openpgp/tofu/cross-sigs/EC38277E-3.txt: .. to this.
21317 * tests/openpgp/tofu/cross-sigs/
21318 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: Rename from
21320 * tests/openpgp/tofu/cross-sigs/EC38277E-secret.gpg: .. to this.
21321 * tests/openpgp/tofu/cross-sigs/
21322 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: Rename from this...
21323 * tests/openpgp/tofu/cross-sigs/871C2247-1.gpg: .. to this.
21324 * tests/openpgp/tofu/cross-sigs/
21325 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: Rename from this...
21326 * tests/openpgp/tofu/cross-sigs/871C2247-1.txt: .. to this.
21327 * tests/openpgp/tofu/cross-sigs/
21328 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: Rename from this...
21329 * tests/openpgp/tofu/cross-sigs/871C2247-2.gpg: .. to this.
21330 * tests/openpgp/tofu/cross-sigs/
21331 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: Rename from this...
21332 * tests/openpgp/tofu/cross-sigs/871C2247-2.txt: .. to this.
21333 * tests/openpgp/tofu/cross-sigs/
21334 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: Rename from this...
21335 * tests/openpgp/tofu/cross-sigs/871C2247-3.gpg: .. to this.
21336 * tests/openpgp/tofu/cross-sigs/
21337 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: Rename from this...
21338 * tests/openpgp/tofu/cross-sigs/871C2247-3.txt: .. to this.
21339 * tests/openpgp/tofu/cross-sigs/
21340 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: Rename from this...
21341 * tests/openpgp/tofu/cross-sigs/871C2247-4.gpg: .. to this.
21342 * tests/openpgp/tofu/cross-sigs/
21343 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: Rename from
21345 * tests/openpgp/tofu/cross-sigs/871C2247-secret.gpg: .. to this.
21346 * tests/openpgp/Makefile.am (TEST_FILES): Update accordingly.
21348 g10: Be more careful when checking if a binding is signed by a UTK.
21349 + commit 95d0f3e5eebd85dcf226dca14891a1215bfe93ae
21350 * g10/tofu.c (signed_by_utk): When checking if a key is signed by an
21351 ultimately trusted key, only consider the signatures on the specified
21353 * tests/openpgp/tofu.scm: Add test for the above.
21355 tests: Add test data to TEST_FILES.
21356 + commit d2d936fbe86d61b89cead95df633b2b575690e05
21357 * tests/openpgp/Makefile.am (TEST_FILES): Add new test data.
21359 g10: Be more careful when checking cross signatures.
21360 + commit 4c0389f8eb19ae7dfd9c5d784a629b386d93cc5c
21361 * g10/tofu.c (cross_sigs): When checking cross signatures, only
21362 consider the signatures on the specified user id.
21363 * tests/openpgp/tofu.scm: Add test for the above.
21364 * tests/openpgp/tofu/cross-sigs/
21365 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg:
21367 * tests/openpgp/tofu/cross-sigs/
21368 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: New file.
21369 * tests/openpgp/tofu/cross-sigs/
21370 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: New file.
21371 * tests/openpgp/tofu/cross-sigs/
21372 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: New file.
21373 * tests/openpgp/tofu/cross-sigs/
21374 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: New file.
21375 * tests/openpgp/tofu/cross-sigs/
21376 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: New file.
21377 * tests/openpgp/tofu/cross-sigs/
21378 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: New file.
21379 * tests/openpgp/tofu/cross-sigs/
21380 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: New file.
21381 * tests/openpgp/tofu/cross-sigs/
21382 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: New file.
21383 * tests/openpgp/tofu/cross-sigs/
21384 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: New file.
21385 * tests/openpgp/tofu/cross-sigs/
21386 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: New file.
21387 * tests/openpgp/tofu/cross-sigs/
21388 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: New file.
21389 * tests/openpgp/tofu/cross-sigs/
21390 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: New file.
21391 * tests/openpgp/tofu/cross-sigs/
21392 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: New file.
21393 * tests/openpgp/tofu/cross-sigs/README: New file.
21395 g10: Still check if the key is an UTK or cross signed in batch mode.
21396 + commit e09166c77273f459c8f87cab9224f85808af2cba
21397 * g10/tofu.c (get_trust): If POLICY is ask, but we can't ask, don't
21398 bail immediately. Instead, check if the key in question is an
21399 ultimately trusted key or cross signed.
21401 g10: If an sqlite operation fails, map the error code to GPG_ERR_GENERAL
21402 + commit 5bf92e51dfdfb4f4746ecd817d8d2240ed27ea74
21403 * g10/tofu.c (get_policy): If an sqlite operation fails, map the error
21404 code to GPG_ERR_GENERAL.
21405 (ask_about_binding): Likewise.
21406 (build_conflict_set): Likewise.
21407 (get_trust): Likewise.
21408 (show_statistics): Likewise.
21409 (tofu_register_signature): Likewise.
21410 (tofu_register_encryption): Likewise.
21412 tests: Remove support for deprecated functionality.
21413 + commit 2282c3b761413dfa894300e70084bbd58908c0b1
21414 * tests/openpgp/tofu.scm: Don't remove tofu.d. It's deprecated.
21416 2016-10-12 Neal H. Walfield <neal@g10code.com>
21418 g10: When changing a TOFU binding's policy, update the conflict info.
21419 + commit 3ad17e72fa81d18c95732ddcd4def244f52bb5b1
21420 * g10/tofu.c (record_binding): Take an additional argument, CONFLICT.
21421 Set the binding's conflict accordingly. Update callers.
21423 g10: Make a singular string singular.
21424 + commit ca84f65c7cf2c6a08a01018519965a82e6c52cac
21425 * g10/tofu.c (ask_about_binding): Make the singular string singular.
21427 g10: Correctly determine whether a binding has a conflict.
21428 + commit 6fdf37f0831949cb279de6dc6b247ab2ed53fe5a
21429 * g10/tofu.c (build_conflict_set): A binding has a conflict is
21430 conflict is *not* NULL, not if it is NULL.
21432 g10: Fix a column's type in TOFU DB.
21433 + commit 78eda335fd1c29038b74b9cc912b6a4515fccd9f
21434 * g10/tofu.c (initdb): Change policy from a boolean to an integer.
21436 2016-10-07 Justus Winter <justus@g10code.com>
21438 tests: Rework test environment setup.
21439 + commit cbbf0a7a8da1757fea29cff0daaa42a6bbb95b26
21440 * tests/openpgp/setup.scm: Import one keyring at a time. This works
21441 around a yet to be investigated hang on Windows. It is also much
21444 tests: Improve handling of Windows newlines.
21445 + commit 1f76f8d8bc65fad98927c977baf4d5e36dafe52b
21446 * tests/gpgscm/lib.scm (string-split-newlines): New function.
21447 * tests/openpgp/default-key.scm: Use new function.
21448 * tests/openpgp/defs.scm: Likewise.
21449 * tests/openpgp/export.scm: Likewise.
21450 * tests/openpgp/import.scm: Likewise.
21452 gpgscm: Improve test of low-level functions.
21453 + commit 11eac7eb2fa3392a9aa052f8f5bb9875129ab84b
21454 * tests/gpgscm/t-child.c: Print large amounts of data.
21455 * tests/gpgscm/t-child.scm: Test that this works.
21457 gpgscm: Improve path handling.
21458 + commit dff266059813d22d1e2ba7e77279999cd41ceb75
21459 * tests/gpgscm/ffi.c (ffi_init): New Scheme variable '*win32*'.
21460 * tests/gpgscm/tests.scm (canonical-path): Correctly handle paths with
21461 drive letter on Windows. Use 'path-join'.
21462 (path-expand): Use 'path-join'.
21464 tools: Fix error handling.
21465 + commit 5afbfdfd59540cb882d891ff1f4afa73fe48f99a
21466 * tools/gpgtar-create.c (gpgtar_create): Do not crash if opening the
21469 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
21471 agent: Fix get_socket_name.
21472 + commit fb3b3e1e7a4219f61a834fd07809898918611c2f
21473 * agent/gpg-agent.c (get_socket_name): Fix the size of copying.
21475 2016-10-07 Werner Koch <wk@gnupg.org>
21477 gpg: Put extra parens around bit tests.
21478 + commit 5d43d28aa3c44c3a27fde823f467b0c4be1a58c2
21479 * g10/options.h (DBG_MPI): New.
21480 * g10/gpg.c (set_debug): Use macro or extra parens for binary operator.
21481 * g10/parse-packet.c (set_packet_list_mode): Use dbg macro.
21483 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
21485 agent, dirmngr, scd: Fix init_common_subsystems.
21486 + commit fc0b392e766af8127094e8b529d25abb84ad1d65
21487 * common/init.c (_init_common_subsystems): Don't call
21488 gpgrt_set_syscall_clamp in this function.
21489 * agent/gpg-agent.c, dirmngr/dirmngr.c, scd/scdaemon.c: Call
21490 gpgrt_set_syscall_clamp after npth_init.
21492 2016-10-06 Justus Winter <justus@g10code.com>
21494 common: Avoid pointer arithmetic on string literals.
21495 + commit 4aadc751f201f8f97c9c1f454e3a29803cce3edb
21496 * common/gettime.c (rfctimestamp): Use indexing instead.
21497 * common/signal.c (got_fatal_signal): Likewise.
21499 g10: Fix singular term.
21500 + commit b0d2526bc4e5c663eeffe04500420c70cee98712
21501 * g10/tofu.c (ask_about_binding): Fix singular message.
21503 g10: Use appropriate variant of 'abs'.
21504 + commit 73000d1ce0317210f5a9e5262404cc90258041ff
21505 * g10/tofu.c (ask_about_binding): Use 'labs' instead of 'abs'.
21507 sm: Remove statement without effect.
21508 + commit 2d446759bd43ae38fbce9a18c955285ca535bc08
21509 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Remove statement without
21512 g10: Fix testing for debug flag.
21513 + commit 6b626824c8e30b41c47724b5ccbf761937499512
21514 * g10/parse-packet.c (set_packet_list_mode): Fix testing for debug
21517 tools: Improve error handling.
21518 + commit 32f81f56a8be6d13dea0a64d24f52343c7e72c84
21519 * tools/gpg-wks-server.c (copy_key_as_binary): Initialize 'argv'.
21521 gpgscm: Update callsite of 'gnupg_spawn_process'.
21522 + commit 07cfb3b27a77491eae818d57f6eb660e75fa013f
21523 * tests/gpgscm/ffi.c (do_spawn_process): Adapt to the changes to
21524 'gnupg_spawn_process'.
21526 2016-10-05 Werner Koch <wk@gnupg.org>
21528 wks: Send key encrypted as required by draft -02.
21529 + commit 8ce800d21919eaaba7ed4f04f712292be310fd66
21530 * tools/gpg-wks-client.c (get_key): Encrypt.
21531 (encrypt_response): Take care of --fake-submission-addr.
21533 wks: Add option --fake-submission-addr to gpg-wks-client.
21534 + commit e514a5b725f0c997cef4362808b2778a3faa9cf8
21535 * tools/gpg-wks-client.c (oFakeSubmissionAddr): New.
21536 (opts): Add option --fake-submission-addr.
21537 (fake_submission_addr): New variable.
21538 (parse_arguments): Set it.
21539 (command_send): Use --fake-submission-addr.
21541 agent: Another minor fix to map_supervised_sockets.
21542 + commit 1cedc32c95c2e3c3ab98af23ddc2845d51e596c1
21543 * agent/gpg-agent.c (map_supervised_sockets): Remove debug message.
21544 Provide correct fd in the second error case.
21546 agent: Fix npth + supervised mode problem.
21547 + commit f57dc2b1e6f28d164f882373535dbcb0d632ca17
21548 * agent/gpg-agent.c (main): Initialize modules in supervised mode.
21550 2016-10-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21552 agent: Fix error handling in map_supervised_sockets.
21553 + commit a2127c71dbf87c1710b43d91a733dd4c9b2953bc
21554 * agent/gpg-agent.c (map_supervised_sockets): the file descriptor to
21555 close on error is fd, not i.
21557 2016-10-04 Werner Koch <wk@gnupg.org>
21559 agent: Streamline the supervised mode code.
21560 + commit 1a9c8d78ece2f31fdb1a8e2be049aa71053061fa
21561 * agent/gpg-agent.c (get_socket_path): Rename to ...
21562 (get_socket_name): this. This is to comply with the GNU coding guide.
21563 Use xtrymalloc instead of malloc. Do not build for W32.
21564 (map_supervised_sockets): Use strtokenize and set the the socket names
21566 (main): Adjust for above change. Do not close the socket.
21568 agent: Adjust cleanup for supervised mode. Fix for W32.
21569 + commit afcfae7959f39e7d85309b9496e1f1cf9acd5cc2
21570 * agent/gpg-agent.c (opts) [W32]: Remove option --supervised.
21571 (is_supervised): Move from main() to global.
21572 (inhibit_socket_removal): New.
21573 (cleanup): Take care of supervise mode and INHIBIT_SOCKET_REMOVAL.
21574 (check_own_socket_thread): Set INHIBIT_SOCKET_REMOVAL instead of
21575 seting the socket names to empty.
21577 agent: Adjust supervised mode for the new default socket names.
21578 + commit dc059af1ff007842e2633e686c87d05daf1d45e3
21579 * agent/gpg-agent.c (main): In supervised mode do not provide default
21580 socket names. Unset DISPLAY and INSIDE_EMACS. Use log_error and
21583 2016-10-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21585 agent: Implement --supervised command (for systemd, etc).
21586 + commit 9f92b62a51d2d60f038fdbe01602865c5933fa95
21587 * agent/gpg-agent.c (get_socket_path): New function for POSIX systems
21588 to return the path for a provided unix-domain socket.
21589 (map_supervised_sockets): New function to inspect $LISTEN_FDS and
21590 $LISTEN_FDNAMES and map them to the specific functionality offered by
21592 (main): Add --supervised command. When used, listen on already-open
21593 file descriptors instead of opening our own.
21594 * doc/gpg-agent.texi: Document --supervised option.
21596 2016-10-04 Justus Winter <justus@g10code.com>
21598 build,w32: Unconditionally build tests.
21599 + commit 4a232d23a8f51bebf9ee382e480248b4bde30f28
21600 * configure.ac (run_tests, RUN_TESTS, RUN_GPG_TESTS): Remove
21601 variables. They are misleadingly named, as they inhibit building the
21602 tests. There is no reason not to build the tests even when
21603 cross-compiling, as they are only run if one does 'make check'.
21604 * Makefile: Adapt accordingly.
21605 * tests/Makefile.am: Adapt accordingly. Avoid building 'asschk' on
21606 Windows as it uses non-portable functions.
21608 tests,w32: Do not expose 'glob' to gpgscm.
21609 + commit 41b510f9c510f8fd1b59eb0c5dd2e2b2deaf0a1b
21610 * tests/gpgscm/ffi.c (do_glob): Remove function.
21611 (ffi_init): Likewise.
21613 tests,w32: Avoid using 'glob'.
21614 + commit 949e70115eb2c04bd09da6477f6c433e6fd9a366
21615 * tests/openpgp/setup.scm: Avoid 'glob' which is not available on
21618 tools: Ignore existing directories in gpgtar.
21619 + commit fbc83c0cdd390473c044953fb774571ffc636c6d
21620 * tools/gpgtar-extract.c (extract_directory): Ignore existing
21621 directories now that we have '--directory'.
21623 2016-10-04 NIIBE Yutaka <gniibe@fsij.org>
21625 agent, dirmngr, scd: npth_init must be after fork.
21626 + commit eda17649f8bd3b8ce7bfc00a3c11cbcae63c845d
21627 * agent/gpg-agent.c (thread_init_once, initialize_modules): New.
21628 (main): Make sure no daemonizing-fork call after npth_init, and no npth
21629 calls before npth_init, with care of npth calls by assuan hooks.
21630 * dirmngr/dirmngr.c (thread_init): New.
21631 (main): Make sure npth_init must not be called before daemonizing fork.
21632 * scd/scdaemon.c (main): Likewise.
21634 2016-09-30 Werner Koch <wk@gnupg.org>
21636 agent: Remove the warning for the GKR hijacking.
21637 + commit a43739a2456a38c01704d8a52dca441055e29bc6
21638 * g10/call-agent.c (check_hijacking): Remove.
21639 (start_agent): Remove call.
21641 agent: Create the extra sockets in the standard socket dir.
21642 + commit 80cc16e0728256f6b07a12980e1f3512cf2324fa
21643 * agent/gpg-agent.c (main): Take the socketdir in account for the
21645 * tools/gpgconf.c (list_dirs): Add "agent-extra-socket" and
21646 "agent-browser-socket".
21648 agent: Kludge to allow disabling of the extra sockets.
21649 + commit 95cf7afff074613825f4442fa131145a2c0d3cf7
21650 * agent/gpg-agent.c (main): Check for special socket names.
21652 wks: Avoid long trustdb checks.
21653 + commit de67055aff916455cec89fab1d95177d3b383008
21654 * tools/wks-receive.c (verify_signature): Use --always-trust.
21656 2016-09-30 Justus Winter <justus@g10code.com>
21658 build: Fix build against libiconv.
21659 + commit 6054e8aaecbd355bb7559697eecaadf2225189b8
21660 * agent/Makefile.am: Add INCICONV and LIBICONV.
21661 * common/Makefile.am: Likewise.
21662 * tools/Makefile.am: Likewise.
21664 agent: Enable restricted, browser, and ssh socket by default.
21665 + commit e11686f973b35869d7b299ce4726003ac22e2e3a
21666 * agent/gpg-agent.c (main): Provide defaults for 'extra-socket' and
21667 'browser-socket', enable ssh socket by default, but do not emit the
21668 'SSH_AUTH_SOCK' variable unless it has been explicitly requested.
21669 * configure.ac (GPG_AGENT_{EXTRA,BROWSER}_SOCK_NAME): New definitions.
21670 * doc/gpg-agent.texi: Update documentation.
21672 w32: Fix STARTTLS on LDAP connections.
21673 + commit 8d37018050373a47566bf8ea0d894da20ed292c7
21674 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix build against
21677 2016-09-29 Werner Koch <wk@gnupg.org>
21679 wks: Partly implement draft-koch-openpgp-webkey-service-02.
21680 + commit 33800280da55a859e08dfa57f29144c89dd1bead
21681 * tools/gpg-wks.h (WKS_RECEIVE_DRAFT2): New.
21682 * tools/wks-receive.c: Include rfc822parse.h.
21683 (struct receive_ctx_s): Add fields PARSER, DRAFT_VERSION_2, and
21684 MULTIPART_MIXED_SEEN.
21685 (decrypt_data): Add --no-options.
21686 (verify_signature): Ditto.
21687 (new_part): Check for Wks-Draft-Version header. Take care of text
21689 (wks_receive): Set Parser and pass a flag value to RESULT_CB.
21690 * tools/gpg-wks-client.c (read_confirmation_request): New.
21691 (main) <aRead>: Call read_confirmation_request instead of
21692 process_confirmation_request.
21693 (command_receive_cb): Ditto. Add arg FLAGS..
21694 (decrypt_stream_status_cb, decrypt_stream): New.
21695 (command_send): Set header Wks-Draft-Version.
21696 * tools/gpg-wks-server.c (struct server_ctx_s): Add field
21698 (sign_stream_status_cb, sign_stream): New.
21699 (command_receive_cb): Set draft flag.
21700 (send_confirmation_request): Rework to implement protocol draft
21703 * tools/gpg-wks.h (DBG_MIME_VALUE, DBG_PARSER_VALUE): New.
21704 (DBG_MIME, DBG_PARSER, DBG_CRYPTO): New. Use instead of a plain
21705 opt.debug where useful.
21706 * tools/gpg-wks-client.c (debug_flags): Add "mime" and "parser".
21707 * tools/gpg-wks-server.c (debug_flags): Ditto.
21709 tools: Convey signeddata also to the part_data callback in mime-parser.
21710 + commit c738f92c195d91662ddc7848cc3c92c7f091f1f8
21711 * tools/mime-parser.c (mime_parser_parse): Factor some code out to ...
21712 (process_part_data): new.
21713 ((mime_parser_parse): Also call process_part_data for signed data.
21715 tools: Allow retrieval of signed data from mime-maker.
21716 + commit f776757ea94542e2f425840dddaf3e65b0ff7757
21717 * tools/mime-maker.c (find_part): New.
21718 (mime_maker_get_part): New.
21720 tools: Change mime-maker to write out CR,LF.
21721 + commit 29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5
21722 * tools/mime-maker.c (struct part_s): Add field PARTID.
21723 (struct mime_maker_context_s): Add field PARTID_COUNTER.
21724 (dump_parts): Print part ids.
21725 (mime_maker_add_header): Assign PARTID.
21726 (mime_maker_add_container): Ditto.
21727 (mime_maker_get_partid): New.
21728 (write_ct_with_boundary): Remove.
21729 (add_header): Strip trailing white spaces.
21730 (write_header): Remove trailing spaces trimming. Add arg BOUNDARY.
21731 Handle emdedded LFs.
21732 (write_gap, write_boundary, write_body): New.
21733 (write_tree): Use new functions.
21735 tools: Simplify the mime-maker container creation.
21736 + commit 95d60c6ce9e8a7a7741553af957978c1f91547c5
21737 * tools/mime-maker.c (struct part_s): Remove field MEDIATYPE.
21738 (release_parts): Ditto.
21739 (dump_parts): Print a body line only if tehre is a body.
21740 (mime_maker_add_header): Check for body or container.
21741 (mime_maker_add_container): Remove arg MEDIATYPE. Change all callers.
21742 (mime_maker_end_container): New.
21744 tools: Give mime parser callbacks access to the rfc822 parser.
21745 + commit 4ac138c84d0f344ca9442f90c96f0e1f76062a4a
21746 * tools/mime-parser.c (mime_parser_context_s): Add field MSG.
21747 (parse_message_cb): Set it.
21748 (mime_parser_rfc822parser): New.
21749 * tools/mime-parser.h: Declare rfc822parse_t for the new prototype.
21751 2016-09-29 Justus Winter <justus@g10code.com>
21753 dirmngr: Fix STARTTLS on LDAP connections.
21754 + commit 9e6f8a55ed04f876635792125858ee76a948802a
21755 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix unfortunate typo.
21757 2016-09-28 Werner Koch <wk@gnupg.org>
21759 gpg: Improve WKD by importing only the requested UID.
21760 + commit cbf2ac66692daa7a324108724698d60d6c7e473f
21761 * g10/keyserver.c: Include mbox-util.h.
21762 (keyserver_import_wkd): Do not use the global import options but
21763 employ an import filter.
21765 gpg: Reject import if an import filter removed all user ids.
21766 + commit 80393661bdfa7ae0288644513575e8a5d708b084
21767 * g10/import.c (any_uid_left): New.
21768 (import_one): Check that a UID is left.
21770 gpg: Make import filter data object more flexible.
21771 + commit c9237bf2ba2c49588576dcece756ebf5fe89aada
21772 * g10/main.h (import_filter_t): New.
21773 * g10/import.c (struct import_filter_s): Declare struct.
21774 (import_keep_uid, import_drop_sig): Replace by ...
21775 (import_filter): new. Adjust all users.
21776 (cleanup_import_globals): Move code to ...
21777 (release_import_filter): new.
21778 (save_and_clear_import_filter): New.
21779 (restore_import_filter): New.
21781 gpg: Make sure that internal key import is done with a binary stream.
21782 + commit 829949f3823c2306022928ce782f9c9d9c5f1cc8
21783 * g10/import.c (import_keys_internal): Open stream in binary mode.
21785 2016-09-27 Justus Winter <justus@g10code.com>
21787 build: Do not link gpg-connect-agent against npth.
21788 + commit 20a16833ee2bb05f735377f705899302bcf2b4d3
21789 * tools/Makefile.am: Do not link gpg-connect-agent against npth.
21791 build: Fix check for resolver library on macOS.
21792 + commit 2e64ccb0f96d615b1eb87e37f230a5d761aa9c36
21793 * configure.ac: Check for the mangled name of 'dn_skipname' first.
21795 common: Correctly handle modules relying on npth.
21796 + commit 2b23a321ac0b07beeac1dfa8d71f223e66c49b71
21797 * common/Makefile.am (common_sources): Drop 'call-gpg.{c,h}'.
21798 (with_npth_sources): New variable.
21799 (libcommonpth_a_SOURCES): Use the new variable.
21801 2016-09-27 NIIBE Yutaka <gniibe@fsij.org>
21803 agent, sm: Set CTX after start_agent.
21804 + commit 4e4843e735f32b5e79a51d8062da55bfaab6ad77
21805 * g10/call-agent.c (agent_keytocard): Assign parm.ctx after start_agent.
21806 * sm/call-agent.c (gpgsm_agent_pksign, gpgsm_scd_pksign)
21807 (gpgsm_agent_readkey, gpgsm_agent_scd_serialno)
21808 (gpgsm_agent_scd_keypairinfo, gpgsm_agent_marktrusted)
21809 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation)
21810 (gpgsm_agent_ask_passphrase, gpgsm_agent_keywrap_key)
21811 (gpgsm_agent_export_key): Likewise.
21813 dirmngr: Removal of no-libgcrypt.o.
21814 + commit 836b72363168cbb0051fc2356f61788468db211c
21815 * dirmngr/Makefile.am (dirmngr_ldap_LDADD): Remove no-libgcrypt.o.
21817 agent: Allow only specific digest size for ECDSA.
21818 + commit 98bc6f480ac973dccce90378dc021a2e24e58704
21819 * agent/pksign.c (do_encode_dsa): Fix validation of digest size.
21821 2016-09-22 Neal H. Walfield <neal@g10code.com>
21823 g10: When adding a user id, make sure the keyblock has been prepared.
21824 + commit df5353b95eefc13135e7df50a7c197f270d6080d
21825 * g10/keyedit.c (keyedit_quick_adduid): Call merge_keys_and_selfsig on
21826 KEYBLOCK before adding the user id.
21827 * tests/openpgp/quick-key-manipulation.scm: Make sure that the key
21828 capabilities don't change when adding a user id.
21829 (key-data): New function.
21831 2016-09-20 Justus Winter <justus@g10code.com>
21833 tests: Add documentation, make interactive debugging possible.
21834 + commit 7e0379a75475abfd15e0623913795779ff0f40d7
21835 * tests/openpgp/README: Add documentation about debugging and
21836 interfacing with GnuPG.
21837 * tests/openpgp/run-tests.scm (test::run-sync): Hand stdin to the
21838 child so that we can use a repl in the tests.
21840 tests: Port the quick key manipulation test to Scheme.
21841 + commit 6c4c0e3ac2aeafba7a2b7c2dd92a18be8aec92b1
21842 * tests/openpgp/Makefile.am (XTESTS): Add new test.
21843 * tests/openpgp/quick-key-manipulation.scm: New file.
21845 tests: Remove list of tests from the test runner.
21846 + commit 49fae88fd170f2bdc12a1794a2637260e3c73a73
21847 * tests/openpgp/run-tests.scm: Drop hardcoded list.
21849 tests: Reduce runtime of excessive test.
21850 + commit 988a04b98d42ff9cc9e62007ebcc0e4c03f4047d
21851 * tests/openpgp/conventional-mdc.scm: Use only two plaintexts when
21852 iterating over all cipher algorithms.
21855 + commit 285d193f1e1464495bce57bd0f323468515b4513
21856 * dirmngr/dns-stuff.c (get_dns_cert): Fix type in fallback code.
21858 2016-09-20 Andre Heinecke <aheinecke@intevation.de>
21860 dirmngr: Open file CRL's in binary mode.
21861 + commit 4644c27514f34f5efc555d43672a25088a611a72
21862 * dirmngr/crlcache.c (crl_cache_load): Open file in binary mode.
21864 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
21866 doc: Fix a xref usage.
21867 + commit b9b4ff857034df51e055ceddce567ca97e94e075
21870 2016-09-20 Ineiev <ineiev@gnu.org>
21872 doc: Do not end section names with "."
21873 + commit 8078d8246fa38c3e478fc9a542117468780ace00
21876 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
21878 doc: minor fix for @xref.
21879 + commit 9c1b3bc25a1b38c4eda31bf12ccc10d94bb05212
21880 * doc/yat2m.c (proc_texi_cmd): Captalize "see" for xref.
21882 2016-09-20 Justus Winter <justus@g10code.com>
21884 doc: Implement simple '@ref'erences.
21885 + commit 91d5e6f805aaf24a3f1f03a95998f757dce04cb2
21886 * doc/yat2m.c (proc_texi_cmd): Handle '@ref'.
21888 2016-09-20 Ineiev <ineiev@gnu.org>
21890 doc: Fix full stops.
21891 + commit 0eaab1af48f600b636183321e4a4e9c6bc361610
21892 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
21893 doc/instguide.texi, doc/scdaemon.texi, doc/specify-user-id.texi,
21894 doc/tools.texi: Fix.
21897 + commit 32bcf8b73ede9c8f1469821a54dedc6be75241d2
21898 * doc/debugging.texi, doc/dirmngr.texi, doc/gpg-agent.texi,
21899 doc/gpg.texi, doc/tools.texi: Fix.
21901 doc: Improve markup.
21902 + commit 377624207e9b2895ce00dfc4d1163d72f349841f
21903 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
21904 doc/howto-create-a-server-cert.texi, doc/scdaemon.texi,
21905 doc/specify-user-id.texi, doc/tools.texi: Fix.
21907 doc: Replace rfc0123 with RFC-0123.
21908 + commit 9d2b7bff12b268638465da222ca7cc9042bba072
21909 * doc/gpg.texi, doc/gpgsm.texi, doc/specify-user-id.texi: Fix.
21911 doc: Add missing description of datafile.
21912 + commit 789916281c25e737d8fb44add5ca61f8fd25de2f
21913 * doc/gpg.texi: Fix.
21915 doc: Replace UTF8 with UTF-8.
21916 + commit 00d6d8bc8772e48b6f200d359e11eb93ab65f51f
21917 * doc/gpg.texi: Fix.
21920 + commit f25e04005af5831053ba194a09e3afa48d1e162b
21921 * doc/dirmngr.texi, doc/gpg.texi, doc/gpgsm.texi,
21922 doc/howto-create-a-server-cert.texi,
21923 doc/scdaemon.texi, doc/tools.texi: Fix.
21925 doc: Eliminate inconsistent UK English.
21926 + commit 825c1dfb3ee4c1704f42eaf064161b9731c20134
21927 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/scdaemon.texi,
21928 doc/tools.texi: Fix.
21930 doc: Use the right reference commands.
21931 + commit f32689f833838a742243e94c900e98f5b59a5811
21932 * doc/debugging.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
21933 doc/tools.texi: Fix.
21935 doc: Fix "Not(e) that you can(not) abbreviate".
21936 + commit 20a27d8a57c4c990fcada4278a1ce2e6fc9043e9
21937 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
21938 doc/scdaemon.texi, doc/tools.texi: Fix.
21941 + commit fa346508fe323e61cf157ee30c13301e1d2117c0
21942 * doc/debugging.texi, doc/dirmngr.texi, doc/glossary.texi
21943 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi
21944 * doc/instguide.texi, doc/opt-homedir.texi, doc/scdaemon.texi
21945 * doc/specify-user-id.texi, doc/tools.texi: Fix.
21947 doc: Fix Martin Hellman's name.
21948 + commit 858af2b3473e436af53470d53cdac334edce9f09
21949 * doc/contrib.texi: Fix.
21951 2016-09-19 Justus Winter <justus@g10code.com>
21953 tests: Refine the repl function.
21954 + commit 884e78efe1f3ba50513bf81c8b4804d22b25eac4
21955 * tests/gpgscm/repl.scm (repl): Add an argument 'environment'.
21956 (interactive-repl): Add an optional argument 'environment'.
21958 tests: Implement interpreter shutdown using exceptions.
21959 + commit 9a0659a65c52378de1c4736a0eddf8518eb20948
21960 * tests/gpgscm/ffi.c (ffi_init): Rename 'exit' to '_exit'.
21961 * tests/gpgscm/ffi.scm (*interpreter-exit*): New variable.
21962 (throw): New function.
21963 (exit): New function.
21965 tests: Correctly handle exceptions in resource handling macros.
21966 + commit 58007e52593e6b0f838de2e464ceeacf22757018
21967 * tests/gpgscm/tests.scm (letfd): Correctly release resources when an
21968 exception is thrown.
21969 (with-working-directory): Likewise.
21970 (with-temporary-working-directory): Likewise.
21971 (lettmp): Likewise.
21973 tests: Refine exception handling.
21974 + commit ab483eff9a8254adf127cdee178e14ba74f0a2b3
21975 * tests/gpgscm/init.scm (catch): Bind all arguments to '*error*' in
21976 the error handler, update and fix comment.
21977 (*error-hook*): Revert to original definition.
21978 * tests/gpgscm/tests.scm (tr:do): Adapt accordingly.
21979 * tests/openpgp/issue2419.scm: Likewise.
21981 tests: Use descriptive temporary file names.
21982 + commit 83a406b38a21d0eeb4963db824a27783c212d2fb
21983 * tests/gpgscm/ffi.c (do_get_isotime): New function.
21984 (ffi_init): Add parameter 'scriptname', bind new function and
21986 * tests/gpgscm/ffi.h (ffi_init): Update prototype.
21987 * tests/gpgscm/main.c (main): Hand in the script name.
21988 * tests/gpgscm/tests.scm (mkdtemp): Use current time and script name
21989 for the names of temporary directories.
21991 2016-09-19 Werner Koch <wk@gnupg.org>
21993 gpg: Fix regression in fingerprint printing.
21994 + commit 998643666c016dbacf10f813c22efc97deadec65
21995 * g10/keylist.c (list_keyblock_print): Do not depend calling
21996 print_fingerprint on opt.keyid_format.
21998 dirmngr: Silence diagnostics about starting housekeeping.
21999 + commit 5bf1facc973eb6e0bfab0f8f17129534dec56e04
22000 * dirmngr/dirmngr.c (housekeeping_thread): Print info only in very
22003 2016-09-19 Justus Winter <justus@g10code.com>
22005 g10: Fix memory leak.
22006 + commit 086d219d96caa3501048aff82a282481e07c195b
22007 * g10/tofu.c (build_conflict_set): Free 'kb_all'.
22009 2016-09-19 Werner Koch <wk@gnupg.org>
22011 doc: Update license information.
22012 + commit 3899041cd2877ce9584c7bd149f232f35a07c399
22013 * tests/fake-pinentries/COPYING: Rename to ...
22014 * COPYING.CC0: this. Add a note on the scope of this license.
22015 * COPYING.LIB: Add a note on the scope of this license.
22016 * AUTHORS (License): Mention CC) license.
22018 gpgscm: Fix gcrypt version check.
22019 + commit 47baeac50ccaaf06dc8b0cebece50f47754de6ca
22020 * tests/gpgscm/main.c (main): Check against required and not installed
22023 gpg: Avoid malloc failure due to no key signatures.
22024 + commit 18bbefa27f9e47e1062ee4d7af09487632795ba7
22025 * g10/keyedit.c (check_all_keysigs): Check early for no key
22026 signatures. Use xtrycalloc.
22028 2016-09-17 NIIBE Yutaka <gniibe@fsij.org>
22030 Fix comment and format.
22031 + commit 7305d27f36148a7fb8c2f4ef5b94774cbd21b18e
22032 * agent/protect-tool.c (main): Fix comment.
22033 * doc/DETAILS (colon listings): Fix list.
22034 * tests/openpgp/multisig.test: Fix comment.
22036 2016-09-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22039 + commit 0d67241e317b172a258a910c02d90639e2b08fce
22040 * NEWS, acinclude.m4, agent/command-ssh.c, agent/command.c,
22041 agent/gpg-agent.c, agent/keyformat.txt, agent/protect-tool.c,
22042 common/asshelp.c, common/b64enc.c, common/recsel.c, doc/DETAILS,
22043 doc/HACKING, doc/Notes, doc/TRANSLATE, doc/dirmngr.texi,
22044 doc/faq.org, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
22045 doc/instguide.texi, g10/armor.c, g10/gpg.c, g10/keyedit.c,
22046 g10/mainproc.c, g10/pkclist.c, g10/tofu.c, g13/sh-cmd.c,
22047 g13/sh-dmcrypt.c, kbx/keybox-init.c, m4/pkg.m4, sm/call-dirmngr.c,
22048 sm/gpgsm.c, tests/Makefile.am, tests/gpgscm/Manual.txt,
22049 tests/gpgscm/scheme.c, tests/openpgp/gpgv-forged-keyring.scm,
22050 tests/openpgp/multisig.test, tests/openpgp/verify.scm,
22051 tests/pkits/README, tools/applygnupgdefaults,
22052 tools/gpg-connect-agent.c, tools/mime-maker.c, tools/mime-parser.c:
22053 minor spelling cleanup.
22055 move some file encodings to UTF-8.
22056 + commit 215180d1ce6c93e2b4969d746c83ac4c055d25ef
22057 * dirmgnr/cdblib.c: comment used unnecesary hyphenation
22058 * dirmngr/crlcache.h: comment was iso-8859-1
22059 * doc/contrib.text: list contributors using UTF-8 (now we can
22060 acknowledge many more people using their preferred orthography)
22062 At least one other files remains in a non-UTF-8 encoding, which i'm
22063 not sure what to do with:
22065 - build-aux/speedo/w32/inst.nsi is ISO-8859-1, but maybe Windows needs
22068 2016-09-16 Neal H. Walfield <neal@g10code.com>
22070 g10: On failure, propagate the return code.
22071 + commit 6e930f0e4077bc7aa3d28b1ba649a82d62427d87
22072 * g10/tofu.c (tofu_register_encryption): If get_trust fails, set RC.
22074 g10: Don't ignore failure. On failure, rollback.
22075 + commit 221b0bd0e5946edaea7135bc3b6f3c5c0fc6dbca
22076 * g10/tofu.c (tofu_set_policy): If record_binding fails, fail. If the
22077 function fails, rollback the transaction.
22079 g10: Load the key block if the supplied user id list is NULL.
22080 + commit c2e563421e4fd4f0910642aa7b171bcf0b374b01
22081 * g10/tofu.c (tofu_register_encryption): Load the key block if
22082 USER_ID_LIST is NULL.
22084 g10: Use the accessor functions for accessing and comparing key ids.
22085 + commit af196342bf44ce6dc42111d37539dec7ee3b3d82
22086 * g10/tofu.c (get_trust): Use the pk_main_keyid accessor function.
22087 (tofu_register_signature): Likewise.
22088 (tofu_register_encryption): Likewise.
22089 (tofu_set_policy): Likewise and also use pk_keyid and keyid_cmp.
22091 2016-09-16 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22093 po: convert localizations to UTF-8.
22094 + commit 4ab8107063b641ed74fc4c9bf98304bcea573178
22095 * po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po: convert to UTF-8
22097 This was an automated conversion process, using:
22099 for x in po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po; do
22100 cs=$(grep charset= $x | cut -f2 -d= | cut -f1 -d\\)
22101 iconv -f $cs -t UTF-8 < $x >$x.tmp
22102 sed "s/$cs/UTF-8/" < $x.tmp > $x
22106 2016-09-16 NIIBE Yutaka <gniibe@fsij.org>
22108 scd: Add support of ECC pubkey attribute.
22109 + commit dd06d33655bc872a6310edac8e448419479d3312
22110 * scd/app-openpgp.c (ECC_FLAG_PUBKEY): New.
22111 (send_key_attr, get_public_key, ecc_writekey, do_auth, do_decipher)
22112 (parse_algorithm_attribute): Check ECC_FLAG_DJB_TWEAK.
22113 (build_ecc_privkey_template): Add ECC_Q and ECC_Q_LEN.
22114 Support offering public key when ECC_FLAG_PUBKEY sets.
22115 (ecc_writekey): Supply ECC_Q and ECC_Q_LEN.
22116 (parse_algorithm_attribute): Parse pubkey-required byte.
22118 2016-09-15 Justus Winter <justus@g10code.com>
22120 g10: Add missing header.
22121 + commit c0e620cee86b5dacc941964bd187bba0dfa90eea
22122 * g10/trustdb.c: Include 'mbox-util.h'.
22124 2016-09-15 Neal H. Walfield <neal@g10code.com>
22126 g10: Only consider bindings matching the signer's user id.
22127 + commit 3f7f7447316f57d002d683af4ad30ac5730b9ebe
22128 * g10/trustdb.c (tdb_get_validity_core): If the signer's user id
22129 subpacket is present, only consider matching user ids.
22131 g10: Don't include the signature when printing a binding's validity.
22132 + commit dcc64663051f8af82abc11e2699649c3b35936db
22133 * g10/mainproc.c (check_sig_and_print): When printing information
22134 about a binding don't include the current signature.
22136 2016-09-15 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22138 tests/fake-pinentries: fake pinentries for downstream developers.
22139 + commit 3248182d1b5a03098ee797c980fa0f0ec06e716f
22140 * tests/fake-pinentries/README.txt and
22141 tests/fake-pinentries/fake-pinentry.{sh,py,pl,php}}: New public
22142 domain (CC0) files to encourage better test suite practices from
22143 downstream developers.
22144 * tests/fake-pinentries/COPYING (new): a copy of
22145 https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
22147 spelling: conenction should be connection.
22148 + commit 167273ee9d3c04f29835aa2d12fde52eebf61efb
22149 * dirmngr/server.c, sm/server.c: s/conenction/connection/
22151 spelling: correct achived to achieved.
22152 + commit 7fafc3c49901c118b47d4d13a41fb3575c1f9e4b
22155 2016-09-15 NIIBE Yutaka <gniibe@fsij.org>
22157 tests/gpgscm: Fix use of pointer.
22158 + commit 68eb5fbd37c31ed7c0c916656131eea7bb58d13d
22159 * tests/gpgscm/scheme-private.h (struct scheme): Use (void *) for
22161 * tests/gpgscm/scheme.c (alloc_cellseg): Use (void *) for cp. Use
22162 (void *) for coercion of address calculation.
22164 2016-09-14 Neal H. Walfield <neal@g10code.com>
22166 g10: Fix whitespace.
22167 + commit 9799b5d18f8fd29872b75c4d70d370af2b4e9a89
22168 * g10/tofu.c (show_statistics): Fix whitespace.
22170 g10: Correctly compute the euclidean distance.
22171 + commit 05b2b13efd8ecea86d31af863cbf82c8b38dc94f
22172 * g10/tofu.c (write_stats_status): Correctly compute the euclidean
22174 (show_statistics): Likewise.
22176 g10: Change the default TOFU policy for UTKs to good.
22177 + commit ca91caabb5798f67c69ee96657c7cb402e7db0df
22178 * g10/tofu.c (get_trust): Change the default TOFU policy for UTKs to
22181 g10: Add missing static qualifier.
22182 + commit 9d62b79e62ef2690e6522fe1621140fbfc10695c
22183 * g10/tofu.c (cross_sigs): Add missing static qualifier.
22185 g10: Default to the "good" TOFU policy for keys signed by a UTK.
22186 + commit 8df8aa13c795e400324a782fbaea578c8f2a1398
22187 * g10/tofu.c (signed_by_utk): New function.
22188 (get_trust): If a key is signed by an ultimately trusted key, then
22189 set any bindings to good.
22191 2016-09-14 Werner Koch <wk@gnupg.org>
22193 gpg: Emit a new error status line in --quick-adduid.
22194 + commit f4e11f2e9e8f58fd5f0df3148e6d7ccef0f84232
22195 * g10/keyedit.c (menu_adduid): Emit an ERROR status for an existsing
22198 gpg: Allow use of "default" algo for--quick-addkey.
22199 + commit 0fd332bc1f6f1f10c96da0cc91203925d3ac81eb
22200 * g10/keygen.c (quick_generate_keypair): Write a status error.
22201 (parse_algo_usage_expire): Set a default curve.
22203 2016-09-13 Werner Koch <wk@gnupg.org>
22205 gpg: Improve usability of --quick-gen-key.
22206 + commit 30a011cfd6ec172cc460e59f0904a26fe2d68632
22207 * g10/keygen.c (FUTURE_STD_): New constants.
22208 (parse_expire_string): Handle special keywords.
22209 (parse_algo_usage_expire): Allow "future-default". Simplify call to
22210 parse_expire_string.
22211 (quick_generate_keypair): Always allow an expiration date. Replace
22212 former "test-default" by "future-default".
22214 2016-09-12 Werner Koch <wk@gnupg.org>
22216 gpg: Avoid mixing up status and colon line output.
22217 + commit 31fc420727f45dd081f8ad5d056da6675dad29f2
22218 * g10/keylist.c (list_keyblock_colon): Avoid calling functions which
22219 trigger a status line output before having printed a LF.
22221 2016-09-12 Justus Winter <justus@g10code.com>
22223 tests: Simplify tofu test.
22224 + commit aa81e32df7189c3eb44d4c602fd63f5b3f6a9e49
22225 * tests/openpgp/tofu.scm: Simplify now that we only have one db
22228 2016-09-10 Ben Kibbey <bjk@luxsci.net>
22230 Portability build fix.
22231 + commit eddcba038025cdbd58aaf67cafd6d83f0ea042d5
22232 * kbx/Makefile.am: Add NETLIBS.
22233 * dirmngr/Makefile.am: Ditto for dirmngr_ldap.
22235 Fix symbol conflict.
22236 + commit 937ec53eff290c3d916faebc23218c9272671c02
22237 * g10/gpgcompose.c: Rename struct siginfo to signinfo.
22239 2016-09-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22241 gpg: print fingerprint regardless of keyid-format.
22242 + commit d757009a24eb856770fc3a3729e2f21f54d2a618
22243 * g10/keylist.c (print_fingerprint): use compact format independent of
22244 keyid-format; (print_key_line): always print the fingerprint
22246 2016-09-08 Werner Koch <wk@gnupg.org>
22248 gpg: Remove option --yes from gpgv.
22249 + commit 30a9f53a0f2af6b98c26b8ddc0b4b87c38416f2a
22250 * g10/gpgv.c (opts): Remove --yes.
22251 (main): Always set opt.ANSWER_YES.
22253 gpg: Add options --output and --yes to gpgv.
22254 + commit a8363b7d0bcc77b55226d5fe8f972214c968ddc3
22255 * g10/gpgv.c (oOutput, oAnswerYes): New.
22256 (opts): Add --output and --yes.
22257 (main): Implement options.
22259 gpg: Make --output work with --verify.
22260 + commit bbe940c095f2bca7a1ca5f8e68ca1af98350a885
22261 * g10/mainproc.c (proc_plaintext): Handle opt.output.
22263 2016-09-07 Werner Koch <wk@gnupg.org>
22265 dirmngr: Terminate on deletion of the socket file (Linux only).
22266 + commit 6308c300196ae85fd82ed383217219e0206640a4
22267 * dirmngr/dirmngr.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
22268 (oDisableCheckOwnSocket): New.
22269 (opts): Add --disable-check-own-socket.
22270 (disable_check_own_socket): New var.
22271 (parse_rereadable_options): Set that var.
22272 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
22273 (handle_connections) [HAVE_INOTIFY_INIT]: New.
22275 2016-09-07 Neal H. Walfield <neal@g10code.com>
22277 g10: Use the time a signature was seen, not the embedded time, for stats
22278 + commit bde29a46cedbbd2a5dfe7c91a6277c0a4ff50825
22279 * g10/tofu.c (ask_about_binding): Use the time that a signature was
22280 seen, not allegedly generated, when generating statistics.
22282 tests: Don't use --tofu-db-format.
22283 + commit a937eef2d4e80cd43095802176d3db5e7fd94008
22284 * tests/openpgp/tofu.scm: Remove use of --tofu-db-format, which is
22287 g10: Check for a new binding a bit later.
22288 + commit ee06b3f7889bd99c28ac68f4781bda77d67eed00
22289 * g10/tofu.c (build_conflict_set): Check for the current key after
22290 looking for conflicts and removing any '!'.
22292 g10: Change TOFU code to respect --faked-system-time.
22293 + commit 7b3e8572e3bb8a65d20577a48009251fdc7b1910
22294 * g10/tofu.c (record_binding): New parameter now. Update callers.
22295 Don't use SQLite's strftime('%s','now') to get the current time, use
22297 (ask_about_binding): Likewise.
22298 (get_trust): New parameter now. Update callers.
22299 (show_statistics): Likewise.
22300 (tofu_register_signature): Don't use SQLite's strftime('%s','now') to
22301 get the current time, use gnupg_get_time().
22302 (tofu_register_encryption): Likewise.
22304 g10: Use the correct conversion function.
22305 + commit 56c18408d4955713d9c4e634367c7912d6564651
22306 * g10/tofu.c (show_statistics): Use string_to_ulong, not
22309 2016-09-07 Werner Koch <wk@gnupg.org>
22311 gpg: Fix format string issues in tofu.
22312 + commit 97a67d42dc946b2d6ed81723d86e37002b5931b3
22313 * g10/tofu.c (write_stats_status): Use ulong for MESSSAGES. Fix
22314 format strings. Simplify by using the new write_status_printf.
22316 2016-09-06 Neal H. Walfield <neal@g10code.com>
22318 g10: Make sure some functions are passed a primary key.
22319 + commit 13ddc17ddb266d74033d5739fec932034fa85c72
22320 * g10/tofu.c (get_trust): Make sure the caller provides a primary key.
22321 (tofu_register_signature): Likewise.
22323 g10: Tweak TOFU's verbosity.
22324 + commit ee19eacd1d688d3a98cd66e5ef2f42079eb829f1
22325 * g10/tofu.c (time_ago_str): Only show the most significant unit.
22326 * g10/tofu.c (show_statistics): Tweak the output.
22328 g10: Only show the TOFU warning once per key.
22329 + commit 67cef405cbfad2e53fc388dd6591ee4f7cb0d973
22330 * g10/tofu.c (show_statistics): Return whether to call show_warning.
22331 Move the warning from here...
22332 (show_warning): ... to this new function.
22333 (tofu_get_validity): If show_statistics returns a non-zero value, call
22336 g10: Record and show statistics for encrypted messages when using TOFU.
22337 + commit 875ac9216f1383851a82bd240cadb17c7112f6a8
22338 * g10/tofu.c: Include "sqrtu32.h".
22339 (struct tofu_dbs_s.s): Rename get_trust_gather_other_keys to
22340 get_trust_gather_signature_stats. Add new field
22341 get_trust_gather_encryption_stats.
22342 (initdb): Create the encryptions table.
22343 (ask_about_binding): Show the encryption statistics too.
22344 (tofu_register): Rename from this...
22345 (tofu_register_signature): ... to this and update callers.
22346 (tofu_register_encryption): New function.
22347 (write_stats_status): Add parameters encryption_count,
22348 encryption_first_done and encryption_most_recent. Update callers.
22349 Compute the trust using the euclidean distance of the signature and
22350 signature count. Compare with twice the threshold. Include
22351 encryption count information in the TFS and TOFU_STATS lines.
22352 (show_statistics): Also get information about the encrypted messages.
22353 * g10/trustdb.c (tdb_get_validity_core): Use it.
22355 g10: Simplify the binding statistics shown for a TOFU conflict.
22356 + commit a9e6db6c7e23d9f4b8de59f5cabbf9eb6a59e626
22357 * g10/tofu.c (ask_about_binding): Simplify binding statistics.
22359 2016-09-06 Justus Winter <justus@g10code.com>
22361 gpgscm: Fix detection of unbalanced parenthesis.
22362 + commit f2249b737055f84842778285bbeff5e61fa55225
22363 * tests/gpgscm/main.c (load): Print error message.
22364 * tests/gpgscm/scheme.c (opexe_0): Correctly report nesting level when
22368 + commit 213b3cf465fb091dc0a205d1a08b88b950ffb85f
22369 * tests/openpgp/multisig.scm: Add missing parenthesis.
22371 2016-09-06 Werner Koch <wk@gnupg.org>
22373 agent: Terminate on deletion of the socket file (Linux only).
22374 + commit 650356148af43ea619bec12e599a4981b147d5f8
22375 * configure.ac (AC_CHECK_FUNCS): Chec for inotify_init.
22376 * agent/gpg-agent.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
22377 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
22378 (handle_connections) [HAVE_INOTIFY_INIT]: New.
22380 2016-09-05 Justus Winter <justus@g10code.com>
22382 tests: Speed up the test suite.
22383 + commit 46c4333c372f0e1ad2aadc411490c2a330b4c5a6
22384 * tests/openpgp/run-tests.scm (test::run-sync): Pass additional
22385 arguments to the test.
22386 (test::run-sync-quiet): Likewise.
22387 (test::run-async): Likewise.
22388 (run-tests-{parallel,sequential}-isolated): Create a tarball of the
22389 gnupghome, then extract it for each test.
22390 * tests/openpgp/setup.scm: Refactor into functions, add an interface
22391 to tar-up the created environment, and untar it multiple times.
22393 common: Restore a simpler variant of 'gnupg_wait_process'.
22394 + commit c97bde2dfeab23a84b4788d998934ac49ff5b797
22395 * common/exechelp-posix.c (gnupg_wait_process): Use the code prior to
22398 common: Fix error handling.
22399 + commit 845e2cc201d6a2cdb151e39e29516d26cb49311c
22400 * common/exechelp-posix.c (store_result): Use xtrymalloc.
22401 (gnupg_wait_processes): Likewise, and check result.
22403 2016-09-05 Neal H. Walfield <neal@g10code.com>
22405 g10: Don't add user attributes to the TOFU DB.
22406 + commit 9082bde01cc18e32504ce39d55ea6dd3c05dddec
22407 * g10/trustdb.c (tdb_get_validity_core): Skip user attributes.
22409 2016-09-05 Werner Koch <wk@gnupg.org>
22411 agent: Silence --debug IPC output for connections from self.
22412 + commit 0b99d1fd2a80b8efaacc731027d2b2ecd9eca699
22413 * agent/command.c (server_local_s): Add fields 'greeting_seen' and
22414 'connect_from_self'.
22415 (io_monitor): Do not log connections from self.
22416 (start_command_handler): Set flag 'connect_from_self'.
22417 * agent/gpg-agent.c (check_own_socket_thread): Disable logging.
22418 (do_start_connection_thread): Do not log conection start and
22419 termination if IPC debugging is enabled.
22421 agent: Small improvement of the server's local state.
22422 + commit 2eeb5551c37659fdd59e8537fc77a9e7fb6a9204
22423 * agent/command.c (sserver_local_s): Change flags to use only one bit.
22424 (option_handler): Make an atoi return 1 or 0.
22426 2016-09-05 Neal H. Walfield <neal@g10code.com>
22428 g10: Refactor cross sig check code.
22429 + commit 1f1f56e606c1cb28eec68c60bd8bcb7ab30805de
22430 * g10/tofu.c (BINDING_NEW): New enum value.
22431 (BINDING_CONFLICT): Likewise.
22432 (BINDING_EXPIRED): Likewise.
22433 (BINDING_REVOKED): Likewise.
22434 (ask_about_binding): Move cross sig check from here...
22435 (get_trust): ... and the conflict set building from here...
22436 (build_conflict_set): ... to this new function.
22437 (format_conflict_msg_part1): Replace parameter conflict with
22438 conflict_set. Drop parameter fingerprint. Update callers.
22439 (ask_about_binding): Drop unused parameter conflict and redundant
22440 parameter bindings_with_this_email_count. Rename parameter
22441 bindings_with_this_email to conflict_set. Update callers.
22443 2016-09-05 Justus Winter <justus@g10code.com>
22445 tests: Update README.
22446 + commit 65a7563edbbab8f93fe901f932065687508788de
22447 * tests/openpgp/README: Update.
22449 tests: Pass flags to test driver.
22450 + commit 059c79d8b447a3baa9ad0b4d3367bdb64dd2ef3b
22451 * tests/openpgp/Makefile.am (xcheck): Pass flags to 'run-tests.scm'.
22453 common: Improve waiting for processes on POSIX.
22454 + commit e33111fcdac08ed2ddfbdf59b1f790569b42f695
22455 * common/exechelp-posix.c (struct terminated_child): New definition.
22456 (terminated_children): New variable.
22457 (store_result): New function.
22458 (get_result): Likewise.
22459 (gnupg_wait_process): Store results that were not requested and
22460 consider previously stored results.
22462 waitpid(2) may return information about terminated children that we
22463 did not yet request, and there is no portable way to wait for a
22464 specific set of children. As a workaround, we store the results of
22465 children for later use.
22467 2016-09-05 Werner Koch <wk@gnupg.org>
22469 dirmngr: Exclude D lines from the IPC debug output.
22470 + commit de623474db3ba402c9bbd872ab6f932f46cbdde9
22471 * dirmngr/dirmngr.h: Include asshelp.h.
22472 * dirmngr/server.c (server_local_s): Add inhibit_dara_logging fields.
22473 (data_line_write): Implement logging inhibit.
22474 (data_line_cookie_close): Print non-logged D lines.
22475 (cmd_wkd_get, cmd_ks_get, cmd_ks_fetch): Do not log D lines.
22476 (dirmngr_assuan_log_monitor): New.
22477 * dirmngr/dirmngr.c (main): Register monitor function.
22479 common: Add an assuan logging monitor.
22480 + commit 0ac671f8a2b65a4b339f615c6420287a549779fa
22481 * common/asshelp.c (my_log_monitor): New var.
22482 (my_libassuan_log_handler): Run that monitor.
22483 (setup_libassuan_logging): Add arg to set a log monitor and change all
22486 gpg: New export filter drop-subkey.
22487 + commit 0a4a03e5310946b0866a0f6a34031eda7a240162
22488 * g10/import.c (impex_filter_getval): Add properties for key packets.
22489 * g10/export.c (export_drop_subkey): New var.
22490 (cleanup_export_globals): Release that var.
22491 (parse_and_set_export_filter): Add filter "drop-subkey".
22492 (apply_drop_subkey_filter): New.
22493 (do_export_stream): Run that filter.
22495 common: Add string operator gt,ge,le,lt to recsel.
22496 + commit 959cd8903fd012e63dbb156db56708dd3934b5df
22497 * common/recsel.c (recsel_parse_expr): Add them.
22498 (recsel_dump): Print them.
22499 (recsel_select): Evaluate them.
22501 gpg: Use a common filter_getval for import and export.
22502 + commit c8e0d37f4152d1341ef562a190fce93a0386a759
22503 * g10/import.c (filter_getval): Rename to ...
22504 (impex_filter_getval): this. Make global.
22505 (apply_keep_uid_filter, apply_drop_sig_filter): Adjust.
22506 * g10/export.c (filter_getval): Remove.
22507 (apply_drop_sig_filter): Use impex_filter_getval.
22509 2016-09-03 NIIBE Yutaka <gniibe@fsij.org>
22511 scd: Fix an action after card removal.
22512 + commit f9e49c80e706a27d5e30d4b3237ff26367a67130
22513 * scd/command.c (update_card_removed): Call apdu_close_reader here.
22515 2016-09-02 Werner Koch <wk@gnupg.org>
22517 wks: Add framework for policy flags.
22518 + commit 46362cbc0e2260e989820795a6e4245c72335172
22519 * tools/call-dirmngr.c (wkd_get_policy_flags): New.
22520 * tools/gpg-wks.h (struct policy_flags_s, policy_flags_t): New.
22521 * tools/wks-util.c (wks_parse_policy): New.
22522 * tools/gpg-wks-client.c (command_send): Get the policy flags to show
22524 * tools/gpg-wks-server.c (get_policy_flags): New.
22525 (process_new_key): get policy flag and add a stub for "auth-submit".
22526 (command_list_domains): Check policy flags.
22528 dirmngr: Add --policy-flags option to WKD_GET.
22529 + commit 505ee45106d6aa2902bbdd6326f8eb7527c273c4
22530 * dirmngr/server.c (cmd_wkd_get): Add new option.
22532 common: Check read errors in name-value.c.
22533 + commit fc445b36fafc8a4cc3ce5a675ac42df7a9d9a02a
22534 * common/name-value.c: Check for read errors.
22536 2016-09-02 NIIBE Yutaka <gniibe@fsij.org>
22538 scd: Release the card reader after card removal.
22539 + commit 8fe81055762d9c9e6f03fb7853a985c94ef73ac3
22540 * scd/command.c (update_reader_status_file): Call apdu_close_reader.
22542 scd: Clean up unused shutdown method.
22543 + commit d1ae7103352fbda2a05f098379cd3043a0ab5566
22544 * scd/apdu.c (shutdown_ccid_reader, apdu_shutdown_reader): Remove.
22545 (reset_ccid_reader): Don't set shutdown_reader.
22546 * scd/ccid-driver.c (ccid_shutdown_reader): Remove.
22548 agent: invoke scdaemon with --homedir.
22549 + commit 8b6c0bae33bdc36892f4595806665ce61f77dfd2
22550 * agent/call-scd.c (start_scd): Supply --homedir option when it's not
22553 po: Update Japanese translation.
22554 + commit afdfc954b35370fbf03aaf8dc0e496410923aa4e
22557 2016-09-01 Neal H. Walfield <neal@g10code.com>
22559 g10: End transaction earlier.
22560 + commit 85fad6c34c08b2850580e0644faba62d3a501b84
22561 * g10/tofu.c (ask_about_binding): End the transaction earlier.
22563 g10: Don't consider cross-signed keys to be in conflict.
22564 + commit b410a3cb7683fc7c2a253e23130c44df42a6203c
22565 * g10/tofu.c (cross_sigs): New function.
22566 (ask_about_binding): If apparently conflicting keys are cross signed,
22567 then don't mark them as conflicting.
22569 2016-09-01 Werner Koch <wk@gnupg.org>
22571 gpg: Avoid homedir creation by --list-config.
22572 + commit 38d369de13acb95208a0ed8d1cf82ac19173688f
22573 * g10/gpg.c (main): Do not register a key for the list config
22576 gpg: Simplify code to print VALIDSIG.
22577 + commit fde9fa81d3d3b25a929b532cc1960d9d9f454a0c
22578 * g10/mainproc.c (check_sig_and_print): Use hexfingerprint and
22579 write_status_printf.
22581 gpg: Add new function write_status_printf.
22582 + commit 6bdadae00512b4907826f6754cdb220d06e1ac6d
22583 * g10/cpr.c (write_status_printf): New.
22585 gpg: Fix printing of pubkey algo in --verbose signature verify.
22586 + commit 37e3c897252babc203447be9d2f286a4507875ad
22587 * g10/sig-check.c (check_signature2): Replace arg PK by R_PK and
22588 change the semantics. Also clear the other R_ args on function entry,
22589 use gpg_error() and change retturn type to gpg_error_t.
22590 * g10/mainproc.c (do_check_sig): Add arg R_PK.
22591 (list_node): Pass NULL for new arg.
22592 (check_sig_and_print): Rework to make use of the returned PK.
22594 2016-09-01 Neal H. Walfield <neal@g10code.com>
22596 g10: When asking about a TOFU binding conflict, default to unknown.
22597 + commit 3d44e5e8a8d1d8bf6cf5d387f50d75f84d804412
22598 * g10/tofu.c (ask_about_binding): Default to unknown.
22600 g10: Add support for TRUST_NEVER.
22601 + commit f2e5cb6ffb55e49a05d452cd85e45f6f67c20abb
22602 * g10/pkclist.c (do_we_trust): Handle TRUST_NEVER, which can be
22603 returned by the TOFU trust model.
22604 (do_we_trust_pre): Print a different message if TRUSTLEVEL is
22606 (check_signatures_trust): Improve comment.
22609 + commit 0cb0ea1633955fb7acd33fe993a4ae4e96e83ae3
22610 * g10/tofu.c (show_statistics): Improve the text (key and user id, not
22613 g10: Remove unused parameter.
22614 + commit 00c2850393ecc320f591f511c3534286964780c2
22615 * g10/tofu.c (show_statistics): Remove unused parameter sig_exclude.
22618 2016-09-01 Werner Koch <wk@gnupg.org>
22620 gpg: Copy the correct digest for use by TOFU.
22621 + commit 3e67b50490aef087b5769bb35145d23f6657780f
22622 * g10/mainproc.c (do_check_sig): Use the current digest algo.
22624 2016-09-01 Neal H. Walfield <neal@g10code.com>
22626 g10: Be careful to not be in a transaction during long operations.
22627 + commit 4cbd2a690c5e5ed2dff49c1f4fc867b31fca689a
22628 * g10/tofu.c (begin_transaction): New parameter only_batch. If set,
22629 only start a batch transaction if there is none and one has been
22630 requested. Update callers.
22631 (tofu_suspend_batch_transaction): New function.
22632 (tofu_resume_batch_transaction): Likewise.
22633 (ask_about_binding): Take a ctrl_t, not a tofu_dbs_t. Update
22634 callers. Gather statistics within a transaction. Suspend any batch
22635 transaction when getting user input.
22636 (get_trust): Take a ctrl_t, not a tofu_dbs_t. Update callers.
22637 Enclose in a transaction.
22638 (tofu_get_validity): Use a batch transaction, not a normal
22641 2016-09-01 Werner Koch <wk@gnupg.org>
22643 tests: Run test requiring the network only in maintainer-mode.
22644 + commit babeb6f8a9b1f8341652145bad58be6cd49e0712
22645 * dirmngr/Makefile.am (noinst_PROGRAMS, TESTS): Add module_net_tests.
22646 (module_tests): Move t-dns-test to ...
22647 (module_net_tests): here.
22649 2016-08-31 Werner Koch <wk@gnupg.org>
22651 wks: Send a final message to the user.
22652 + commit 04c042f3f2a631bc6e772c33f8da5e7aa7b1902a
22653 * tools/gpg-wks-server.c (send_congratulation_message): New.
22654 (check_and_publish): Call it.
22656 wks: Relax permission check for the top directory.
22657 + commit e4eac16330449f3893c11820c15e07d58fb807ff
22658 * tools/gpg-wks-server.c: Allow S_IXOTH for the top directory.
22660 2016-08-31 Neal H. Walfield <neal@g10code.com>
22662 g10: On a TOFU conflict, show whether the uids are expired or revoked.
22663 + commit edfb6934caf16c6afcfd82d684d8ae9c79674d10
22664 * g10/tofu.c (struct signature_stats): Add fields is_expired and
22666 (signature_stats_prepend): Clear *stats when allocating it.
22667 (ask_about_binding): Also show whether the user ids are expired or
22670 doc: Add a help text for tofu.conflict.
22671 + commit b69b2cb082e39a7eb56082fa80219f6f14fbd2b4
22672 * doc/help.txt (.gpg.tofu.conflict): New help text.
22674 g10: Always trust ultimately trusted keys.
22675 + commit 28c235ae757e9036b0b96efc28931fa5cc74f7ee
22676 * g10/tofu.c (get_trust): Always return TRUST_ULTIMATE for ultimately
22679 g10: Fix error detection.
22680 + commit 5b48960a8a2555db7bf992261de9e922838c9913
22681 * g10/tofu.c: first_seen == 0 is not an error.
22683 g10: Update a key's TOFU policy in a transaction.
22684 + commit e4d5e3cb0d10e8f77c7100d42cfdb32051de1c18
22685 * g10/tofu.c (tofu_set_policy): Do the update in a transaction.
22686 * g10/gpg.c (main): Do a TOFU policy update in a batch transaction.
22688 g10: Fix the show old policy functionality when changing a TOFU policy.
22689 + commit 247eef005cf4c34e9a82227e4ab7823e04911be4
22690 * g10/tofu.c (record_binding): Fix the show old policy functionality.
22692 g10: Drop unused argument.
22693 + commit 70df5a8fd781d8774d835384ca28c4d8518bb9d0
22694 * g10/tofu.c (begin_transaction): Remove unused option only_batch.
22696 gpg: Move state local to tofu.c to a private structure.
22697 + commit 268f6b7a3403d036882b4af384ba7ab2f8c8355f
22698 * g10/gpg.h (struct server_control_s.tofu): Move fields in_transaction
22699 and batch_update_started from here...
22700 * g10/tofu.c (struct tofu_dbs_s): ... to here.
22702 gpg: Avoid name spaces clash with future sqlite versions (2).
22703 + commit b8184d2d74e5ddd5eb68836b53fe5568110e14dd
22704 * g10/gpgsql.h (gpgsql_arg_type): Rename SQLITE_ARG_END to
22705 GPGSQL_ARG_END, SQLITE_ARG_INT to GPGSQL_ARG_INT, SQLITE_ARG_LONG_LONG
22706 to GPGSQL_ARG_LONG_LONG, SQLITE_ARG_STRING to GPGSQL_ARG_STRING, and
22707 SQLITE_ARG_BLOB to GPGSQL_ARG_BLOB.
22709 2016-08-31 Werner Koch <wk@gnupg.org>
22711 gpg: Fix regression in gpgv's printing of the keyid.
22712 + commit 76304a971fe507ea659b952932ea899463ab7166
22713 * g10/keyid.c (keystr): Take care of KF_NONE != KF_DEFAULT.
22715 2016-08-30 Neal H. Walfield <neal@g10code.com>
22717 g10: Improve TOFU batch update code.
22718 + commit 371ae66e9d5c7524431773c4a479fcae1ea3b652
22719 * g10/gpg.h (tofu): Rename field batch_update_ref to
22720 batch_updated_wanted.
22721 * g10/tofu.c (struct tofu_dbs_s): Rename field batch_update to
22722 in_batch_transaction.
22723 (begin_transaction): Only end an extant batch transaction if we are
22724 not in a normal transaction. When ending a batch transaction, really
22725 end it. Update ctrl->tofu.batch_update_started when starting a batch
22727 (end_transaction): Only release a batch transaction if ONLY_BATCH is
22728 true. When releasing a batch transaction, assert that there is no
22729 open normal transaction. Only allow DBS to be NULL if ONLY_BATCH is
22731 (tofu_begin_batch_update): Don't update
22732 ctrl->tofu.batch_update_started.
22733 (opendbs): Call end_transaction unconditionally.
22735 g10: If a key has no valid user ids, change TOFU to return TRUST_NEVER.
22736 + commit d0451440c036106895a291f9ca1c53c2d5159f8f
22737 * g10/tofu.c (tofu_get_validity): If a key has no valid (non-expired)
22738 user ids, change TOFU to return TRUST_NEVER.
22740 g10: Change tofu_register & tofu_get_validity to process multiple uids.
22741 + commit 6052c147091935fc0321ba24f4a44146df70ef01
22742 * g10/tofu.c (tofu_register): Take a list of user ids, not a single
22743 user id. Only register the bindings, don't compute the trust. Thus,
22744 change return type to an int and remove the may_ask parameter. Update
22746 (tofu_get_validity): Take a list of user ids, not a single user id.
22747 Update callers. Observe signatures made by expired user ids, but
22748 don't include them in the trust calculation.
22750 g10: Support nested transactions on the TOFU DB.
22751 + commit 33e97813d72996d22a295773c64261f5588ce9dd
22752 * g10/gpg.h (struct server_control_s): New field in_transaction.
22753 * g10/tofu.c (struct tofu_dbs_s): Remove fields savepoint_inner and
22754 savepoint_inner_commit.
22755 (begin_transaction): Increment CTRL->TOFU.IN_TRANSACTION. Name the
22756 savepoint according to the nesting level.
22757 (end_transaction): Name the savepoint according to the nesting level.
22758 Decrement CTRL->TOFU.IN_TRANSACTION.
22759 (rollback_transaction): Likewise. Only ever rollback a non-batch
22761 (opendbs): Assert that there are no outstanding transactions.
22763 g10: Print the info text in more situations.
22764 + commit 4c2abb221b29c9e8e0876fe986472b562ee1c99f
22765 * g10/tofu.c (ask_about_binding): Print the info text when the policy
22766 is ask and there are multiple bindings with the email address.
22768 g10: Print the formatted text.
22769 + commit 0858f141a8b8d0c098a0c6097176b7225c4a9db8
22770 * g10/tofu.c (ask_about_binding): Print the formatted text, not the
22773 g10: When showing a user id's trust, pass the current signature.
22774 + commit 8dda861ad80228da76cd5c97467008c87b8b6eee
22775 * g10/mainproc.c (check_sig_and_print): Consistently pass SIG to
22778 2016-08-29 Werner Koch <wk@gnupg.org>
22780 w32: Fix build regression due to 2aa0701.
22781 + commit 8b3e691ffbaaa218d309d5aaf8f37532308558ff
22782 * common/logging.c (fun_writer): Always declare 'name_for_err'.
22784 gpgconf: Print the plain socket directory with --list-dirs.
22785 + commit 8e3fa5a4b205c534de2142e5d071712f957cf06a
22786 * tools/gpgconf.c (list_dirs): Add plain socketdir out.
22788 common: Add a default socket name feature.
22789 + commit 2aa0701013f703ad93e17da3345c493c08aa04ee
22790 * common/logging.c (log_set_socket_dir_cb): New.
22791 (socket_dir_cb): New.
22792 (set_file_fd): Allow "socket://".
22793 (fun_writer): Implement default socket name.
22794 * common/init.c (_init_common_subsystems): Register default socket.
22796 gpg: Make decryption of -R work w/o --try-secret-key or --default-key.
22797 + commit bdbd03608b6f508ac4732f9986a046de8a85a311
22798 * g10/getkey.c (enum_secret_keys): At state 3 enumerate the keys in all
22799 cases not just when --try-all-secrets is used.
22801 2016-08-25 Werner Koch <wk@gnupg.org>
22803 gpg: Fix false negatives in Ed25519 signature verification.
22804 + commit 0a5a854510fda6e6990938a3fca424df868fe676
22805 * g10/pkglue.c (pk_verify): Fix Ed25519 signatrue values.
22806 * tests/openpgp/verify.scm (msg_ed25519_rshort): New
22807 (msg_ed25519_sshort): New.
22808 ("Checking that a valid Ed25519 signature is verified as such"): New.
22810 common: Rename an odd named function.
22811 + commit 74a082bc10960b2d65d4d1e31152f988a40a2225
22812 * common/openpgp-oid.c (oid_crv25519): Rename to oid_cv25519.
22813 (openpgp_oid_is_crv25519): Rename to openpgp_oid_is_cv25519. Change
22816 gpg: New option --with-tofu-info.
22817 + commit 19d12be3cea5b4ee8153287a2f2442913a5e07a1
22818 * g10/gpg.c (oWithTofuInfo): New.
22819 (opts): Add --with-tofu-info.
22820 (main): Set opt.with_tofu_info.
22821 * g10/options.h (struct opt): Add field WITH_TOFU_INFO.
22822 * g10/tofu.c (show_statistics): Add optional arg OUTFP and enter
22823 special mode if not NULL. Change all callers.
22824 (tofu_write_tfs_record): New.
22825 * g10/keylist.c (list_keyblock_colon): Do not print the tofu policy as
22826 part of the "uid" record. Print a new "tfs" record if the new option
22828 * tests/openpgp/tofu.scm (getpolicy): Change from UID to TFS record.
22830 2016-08-24 Werner Koch <wk@gnupg.org>
22832 gpg: Change TOFU_STATS to return timestamps.
22833 + commit 0f1f02acc1cdcc2cf74a97b05507bb1f062f8af2
22834 * g10/tofu.c (write_stats_status): Add arg FP to print a colon
22835 formated line. Adjust for changed TOFU_STATS interface.
22836 (show_statistics): Let the query return timestamps and use
22837 gnupg_get-time to compute the "time ago" values.
22839 common: Guarantee that gnupg_get_time does not return an error.
22840 + commit 5eb2682686b32bd82096924eeabd0c5bd347adfd
22841 * common/gettime.c (gnupg_get_time): Abor if time() failed.
22842 (gnupg_get_isotime): Remove now useless check.
22843 (make_timestamp): Remove check becuase we already checked this modulo
22844 the faked time thing.
22846 wks: Add command --supported to gpg-wks-client.
22847 + commit 460568d341851ac79dd100e00e4eafcac1318148
22848 * tools/gpg-wks-client.c (aSupported): New.
22849 (opts): Add --supported.
22850 (parse_arguments): Ditto.
22851 (main): Call command_supported.
22852 (command_supported): New.
22854 2016-08-22 Werner Koch <wk@gnupg.org>
22856 wks: Install gpg-wks-client under libexec.
22857 + commit c47386a11a32c5ed3b5a31fad5c3e9a9a020ca7b
22858 * tools/Makefile.am (bin_PROGRAMS): Move gpg-wks-client to ...
22859 (libexec_PROGRAMS): ...here.
22861 common: Remove unused vars in simple-pwquery.
22862 + commit 62f3e0027724b23c0de5be6d1e66cfdeef7e7bc9
22863 * common/simple-pwquery.c (agent_send_option): Remove unused vars.
22864 (simple_query): Ditto.
22865 (agent_open): Ditto. Return RC on error.
22866 (simple_pwquery): Remove unused vars. Remove shadowing of 'p'.
22868 2016-08-18 Werner Koch <wk@gnupg.org>
22871 + commit 6bee88dd067e03e7767ceacf6a849d9ba38cc11d
22874 po: Update German translation.
22875 + commit 0a32153316855224acda268edb60b80d4e64b12f
22878 2016-08-18 Åka Sikrom <a4@hush.com>
22880 po: Update Norwegian translation.
22881 + commit ec88d7c8a9af864fad8ab5e0b9c4eb90ddcdd630
22884 2016-08-18 Ineiev <ineiev@gnu.org>
22886 po: Update Russian translation.
22887 + commit 6f6bfbf175653faa5cf560a7174e81a599247e80
22890 2016-08-18 Werner Koch <wk@gnupg.org>
22892 gpg: Add import filter "drop-sig".
22893 + commit 1b55e864421f88b8c8088639682767076abbeab0
22894 * g10/import.c (import_drop_sig): New variable.
22895 (cleanup_import_globals): Release that.
22896 (parse_and_set_import_filter): Add filter "drop-sig".
22897 (filter_getval): Implement properties for drop-sig.
22898 (apply_drop_sig_filter): New.
22899 (import_one): Apply that filter.
22901 dirmngr: Remove all system daemon features.
22902 + commit d83ba4897bf217d1045c58d1b99e52bd31c58812
22903 * dirmngr/dirmngr.h (opts): Remove fields 'system_service' and
22905 * common/homedir.c (dirmngr_sys_socket_name): Remove.
22906 (dirmngr_user_socket_name): Rename to ...
22907 (dirmngr_socket_name): this. Change call callers.
22908 * common/asshelp.c (start_new_dirmngr): Remove the system socket
22910 * tools/gpgconf.c (list_dirs): Do not print "dirmngr-sys-socket".
22911 * sm/server.c (gpgsm_server): Adjust for removed system socket feature.
22912 * dirmngr/server.c (cmd_getinfo): Ditto.
22913 (cmd_killdirmngr): Remove check for system daemon.
22914 (cmd_reloaddirmngr): Ditto.
22915 * dirmngr/dirmngr.c (USE_W32_SERVICE): Remove macro.
22916 (aService): Remove.
22917 (opts): Remove --service.
22918 (w32_service_control): Remove.
22919 (real_main, call_real_main) [W32]: Remove wrapper.
22920 (main): Remove Windows system service feature. Remove system dameon
22921 feature. Use only the "~/.gnupg/dirmngr_ldapservers.conf" file.
22922 * dirmngr/certcache.c (load_certs_from_dir): Remove warning in the
22923 system dameon case.
22924 * dirmngr/crlcache.c (DBDIR_D): Always use "~/.gnupg/crls.d".
22925 * dirmngr/ocsp.c (validate_responder_cert): Do not call
22926 validate_cert_chain which was used only in system daemon mode.
22927 * dirmngr/validate.c (validate_cert_chain): Always use the code.
22929 gpg: New option --sender.
22930 + commit de6e3217cde81df370926571e0fd65e468619803
22931 * g10/options.h (struct opt): Add field 'sender_list'.
22932 * g10/gpg.c: Include mbox-util.h.
22934 (opts): Add option "--sender".
22935 (main): Parse option.
22937 2016-08-16 Werner Koch <wk@gnupg.org>
22939 agent: Allow import of overly large keys.
22940 + commit b5d63e81d5c472647decc7687cef91fee0378eb8
22941 * agent/command.c (MAXLEN_KEYDATA): Double the size.
22943 2016-08-14 Werner Koch <wk@gnupg.org>
22945 g13: Allow the use of a g13tab label for --mount.
22946 + commit f02ceb6c6e94c6fbfaeeafe728397be38107de4d
22947 * g13/mount.c (g13_mount_container): Do not run the first access check
22948 if syshelp is required.
22950 g13: Implement --umount for dm-crypt.
22951 + commit b781113cf1391926dedf8dc943624d3bb9726318
22952 * g13/g13.c (main): Implement command --umount.
22953 * g13/mount.c (g13_umount_container): use the syshelper if needed.
22954 * g13/backend.c (be_umount_container): New.
22955 * g13/be-dmcrypt.c (be_dmcrypt_umount_container): New.
22956 * g13/call-syshelp.c (call_syshelp_run_umount): New.
22957 * g13/sh-cmd.c (cmd_umount): New.
22958 (register_commands): Register UMOUNT.
22959 * g13/sh-dmcrypt.c (sh_dmcrypt_umount_container): New.
22961 2016-08-13 Werner Koch <wk@gnupg.org>
22963 g13: Fix double free bug.
22964 + commit c9a0bccc77c93c08d6980a1718dfaf238a559eb9
22965 * g13/sh-cmd.c (cmd_mount, cmd_resume): Do not xfree TIUPLES.
22967 g13: Consider g13tab for a mount command.
22968 + commit 700920640211168ae1c97d0adef74ba8615d90bb
22969 * g13/sh-cmd.c (cmd_getkeyblob): New.
22970 (register_commands): Register it.
22971 * g13/call-syshelp.c (getkeyblob_data_cb): New.
22972 (call_syshelp_get_keyblob): New.
22973 * g13/mount.c: Include callsyshelp.h.
22974 (g13_mount_container): Ask syshelp whether the filename is managed by
22975 g13tab. Call syshelp to get the encrypted keyblob in this case.
22977 g13: Move some function around.
22978 + commit 37e932658cbd873ac96ff7e2067a97dffc2e0507
22979 * g13/keyblob.c (g13_keyblob_decrypt): Move to ...
22980 * g13/server.c: to here.
22981 * g13/suspend.c, g13/mount.c: Include server.h.
22982 * g13/Makefile.am (g13_syshelp_SOURCES): Add keyblob.c
22984 g13: New command --find-device.
22985 + commit b57f55321295846d47144bd6b39fbbcac0127421
22986 * common/status.h (STATUS_BLOCKDEV: New.
22987 * g13/call-syshelp.c: Include "call-syshelp.h".
22988 (finddevice_status_cb, call_syshelp_find_device): New.
22989 * g13/g13.c (aFindDevice): New.
22990 (opts): Add "--find-device".
22991 (main): Implement --find-device.
22992 * g13/sh-cmd.c (cmd_finddevice): New.
22993 (register_commands): Register new command.
22995 2016-08-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22997 Avoid leading ": " in the log output when there are no prefixes.
22998 + commit 3a75ff65fba24ea2d024bd8fef633ab7d8f7d520
22999 * common/logging.c (do_logv): When no prefixes have been requested,
23000 omit the ": " separator, since there is nothing on the left-hand
23003 Call log_set_prefix() with human-readable labels.
23004 + commit 61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e
23005 * agent/preset-passphrase.c, agent/protect-tool.c, dirmngr/dirmngr.c
23006 * dirmngr/t-http.c, g10/gpg.c, g10/gpgv.c, g13/g13-syshelp.c
23007 * g13/g13.c, kbx/kbxutil.c, scd/scdaemon.c, sm/gpgsm.c
23008 * tests/gpgscm/main.c, tools/gpg-check-pattern.c
23009 * tools/gpg-connect-agent.c, tools/gpgconf.c, tools/gpgtar.c
23010 * tools/symcryptrun.c: Invoke log_set_prefix() with
23011 human-readable labels.
23013 2016-08-11 Werner Koch <wk@gnupg.org>
23015 gpg: New option --input-size-hint.
23016 + commit 70b5d7c43a57a44dad60c2c700a263610748d8f4
23017 * g10/options.h: Include stdint.h.
23018 (struct opt): Add field 'input_size_hint'.
23019 * g10/gpg.c (oInputSizeHint): New.
23020 (opts): Add --input-size-hint.
23021 (main): Set opt.input_size_hint.
23022 * g10/progress.c (write_status_progress): Use the hint.
23024 common: New function string_to_u64.
23025 + commit 0698324cde3e0cef7eeb6cfd1640c5eefdf13698
23026 * common/stringhelp.c (string_to_u64): New.
23027 * dirmngr/http.c (longcounter_t): Remove.
23028 (struct cookie_s): Change content_length to uint64_t.
23029 (parse_response): Use string_to_u64.
23031 2016-08-11 Justus Winter <justus@g10code.com>
23033 common: Remove compatibility code.
23034 + commit 72fa314b71e4ce8780f59b16d32cabf5d4bd5451
23035 * common/Makefile.am: Drop deleted files.
23036 * common/w32-afunix.c: Delete file.
23037 * common/w32-afunix.h: Likewise.
23039 common: Rework the simple password query module.
23040 + commit 14479e2515439c73e385f37e8c2b3fc517b038b9
23041 * common/simple-pwquery.c (writen, readline): Drop.
23042 (agent_send_option, agent_send_all_options, agent_open): Just use
23044 (simple_pw_set_socket): Simplify.
23045 (default_inq_cb): New function.
23046 (simple_pwquery, simple_query): Just use libassuan.
23047 * agent/Makefile.am (gpg_preset_passphrase_LDADD): Add libassuan.
23048 * tools/Makefile.am (symcryptrun_LDADD): Likewise.
23050 common: Remove simple password query error codes.
23051 + commit 9e6503b7ce019aa417099ded1dda87b68c33f912
23052 * common/simple-pwquery.h: Remove mapping function. Move all
23053 definitions of status codes...
23054 * common/simple-pwquery.c: ... here, and define them to meaningful gpg
23056 * agent/preset-passphrase.c (preset_passphrase): Use error code as-is.
23057 (forget_passphrase): Likewise.
23058 * tools/symcryptrun.c (confucius_get_pass): Likewise.
23060 2016-08-10 Werner Koch <wk@gnupg.org>
23062 gpg: Print the signer's UID during verification.
23063 + commit ed5c1b0b8a4790c4fb36a3129387f7c2ef5db302
23064 * g10/parse-packet.c (parse_signature): Sanitize the value stored in
23066 * g10/mainproc.c (issuer_fpr_string): New.
23067 (check_sig_and_print): Print the signers' UID. Print the issuer
23068 fingerprint in --rfc4880bis mode.
23070 common: New function try_make_printable_string.
23071 + commit f2ea7e539c9a22081e3159dcbca84f57f30724ca
23072 * common/stringhelp.c (sanitize_buffer): Remove. Move code to ...
23073 * common/miscellaneous.c (try_make_printable_string): new.
23074 (make_printable_string): Call try_make_printable_string.
23076 2016-08-10 Justus Winter <justus@g10code.com>
23078 tests: Fix distcheck.
23079 + commit a6acf1f6b39c5a607f61f643a5d21309ba58685d
23080 * tests/openpgp/issue2417.scm: Copy configuration.
23082 2016-08-10 Werner Koch <wk@gnupg.org>
23084 gpg: Remove tofu database format "split".
23085 + commit 5b59999ce0dd1650ebe47a74a30ded6af00eeed3
23086 * g10/options.h (struct opt): Remove field tofu_db_format.
23087 * g10/gpg.h (server_control_s): Add fields tofu.batch_update_ref and
23088 tofu.batch_update_started.
23089 * g10/gpg.c (parse_tofu_db_format): Remove.
23090 (main): Make option --tofu-db-format obsolete.
23091 * g10/tofu.c: Major rework. Remove the pretty complicated and slower
23092 split format and with that all the caching. Use the dbs struct
23093 directly. Move global vars for batch update into CTRL. Change
23094 calling conventions of some function to take CTRL or DBS pointers
23095 instead of the former low-level database pointer.
23097 2016-08-10 Justus Winter <justus@g10code.com>
23099 g10: Fix opening of trust database.
23100 + commit a27410a251cd25ca96cd6743969c4db0a0fd553f
23101 * g10/tdbio.c (tdbio_set_dbname): This function explicitly checks for
23102 the file size, but handled the case of a zero-sized file incorrectly
23103 by returning success. Fix this by initializing the database in that
23105 * tests/openpgp/Makefile.am (XTESTS): Add new test.
23106 * tests/openpgp/issue2417.scm: New file.
23108 tests: Fix distcheck.
23109 + commit 194b1e979c7c547afd0dfea5b2496bdfa34b20f1
23110 * tests/openpgp/Makefile.am (EXTRA_DIST): Explicitly add setup and
23111 teardown scripts now that they no longer are included in the list of
23114 tests: Improve temporary directory handling.
23115 + commit d9240a3a4688c263632b4168ae2e04363bc91a3a
23116 * tests/gpgscm/ffi.c (ffi_init): Rename 'mkdtemp'.
23117 * tests/gpgscm/tests.scm (mkdtemp): New function that uses a sensible
23118 location and template if no arguments are given.
23119 (with-temporary-working-directory): Simplify accordingly.
23120 (make-temporary-file): Likewise.
23121 * tests/openpgp/run-tests.scm (run-tests-parallel-isolated): Likewise.
23122 (run-tests-sequential-isolated): Likewise.
23124 gpgscm: Make the name of foreign functions more unique.
23125 + commit efe973dab7f69e2b1309446b2fbcd47ce0305399
23126 * tests/gpgscm/ffi-private.h (ffi_define_function_name): Add another
23129 tests: Run each test in a clean environment.
23130 + commit e13f1ea8fff3964dc3008432f5c0f26aaa2eaa35
23131 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Drop obsolete
23132 variables, add 'srcdir', use absolute paths.
23133 (TESTS): Rename to 'XTESTS' to avoid emitting the automake test
23134 runner. Drop 'setup.scm' and 'finish.scm'.
23135 (xcheck): New target that runs 'run-tests.scm', our Scheme test suite
23136 runner. It will run each test in a clean environment, isolated from
23138 (EXTRA_DIST): Adapt accordingly.
23139 * tests/openpgp/README: Likewise.
23141 tests: Make ssh test more robust.
23142 + commit b2b21580b68f3a9069562f99675b389a0d044713
23143 * tests/openpgp/ssh.scm: Drop the 'MD5:' which was not printed by
23144 previous ssh versions.
23146 2016-08-10 NIIBE Yutaka <gniibe@fsij.org>
23148 agent: SSH support fix.
23149 + commit f14795d57f6c81709e9225dd3c5dfd3495cf1b2b
23150 * agent/command-ssh.c (ssh_handler_request_identities): Keep error
23153 2016-08-09 Werner Koch <wk@gnupg.org>
23155 agent: Fix regression in recent ssh changes.
23156 + commit e630f904993725c54ec63be00369589b7b7234d2
23157 * agent/command-ssh.c (sexp_key_construct): Lowercase the algo name.
23159 gpg: Extend the PROGRESS line to give the used unit.
23160 + commit 16feb1e0ea9b5d3966f22f4ae047335b9d1b60e1
23161 * g10/progress.c (write_status_progress): Print the units parameter.
23163 2016-08-09 Ben Kibbey <bjk@luxsci.net>
23165 Cleanup initialization of libgcrypt.
23166 + commit 49829c29e541546084950b8a153067db371d101a
23167 * common/init.c (init_common_subsystems): Initialize libgcrypt.
23168 * dirmngr/Makefile.am (dirmngr_ldap): Link with libgcrypt.
23170 2016-08-09 NIIBE Yutaka <gniibe@fsij.org>
23172 agent: SSH support improvement.
23173 + commit ebf24e3b29766595204355d82f435a3e675bfbbc
23174 * agent/command-ssh.c (ssh_handler_request_identities): Skip a key with
23175 error, not giving up to handle the request itself.
23176 * agent/cvt-openpgp.c (extract_private_key): Support "ecdsa" key.
23178 2016-08-08 Werner Koch <wk@gnupg.org>
23180 gpg: Cleanup of dek_to_passphrase function (part 2).
23181 + commit 491d6fdabb3d95905cd96d905e1f965ce8ff07e1
23182 * g10/passphrase.c (passphrase_get): Remove arg KEYID. Change arg
23184 (passphrase_to_dek): Remove args KEYID and PUBKEY_ALGO. Split arg
23185 MODE into CREATE and NOCACHE. Change all callers and adjust stubs.
23186 (passphrase_clear_cache): Remove args KEYID and ALGO. They are not
23187 used. Change caller.
23189 gpg: Cleanup of dek_to_passphrase function (part 1).
23190 + commit 5b614973fe2d4b5ef402a3057c31c3ef3042a483
23191 * g10/passphrase.c (passphrase_to_dek_ext): Remove args CUSTDESC and
23192 CUSTPROMPT. Merge into the passphrase_to_dek wrapper.
23193 (passphrase_get): Remove args CUSTOM_DESCRIPTION and CUSTOM_PROMPT.
23195 2016-08-08 NIIBE Yutaka <gniibe@fsij.org>
23197 agent: More clean up of SSH support.
23198 + commit 591a8373a5d9567db9b1a1a48205e8a206c7b669
23199 * common/util.h (get_pk_algo_from_key): New.
23200 * common/sexputil.c (get_pk_algo_from_key): The implementation.
23201 * agent/gpg-agent.c: Remove include of openpgpdefs.h.
23202 * agent/command-ssh.c (struct ssh_key_type_spec): Use integer ALGO.
23203 (ssh_key_types): Update with GCRY_PK_*.
23204 (make_cstring, sexp_extract_identifier): Remove.
23205 (sexp_key_construct): Use gcry_pk_algo_name to get ALGO string.
23206 (ssh_key_to_blob): Use cadr to get value list.
23207 (ssh_key_type_lookup): Lookup with integer ALGO.
23208 (ssh_receive_key): Follow the change of ssh_key_type_lookup.
23209 (ssh_send_key_public): Likewise. Use get_pk_algo_from_key to get ALGO.
23211 tests: Add openpgp/gpgv-forged-keyring.scm.
23212 + commit 7dcad0d3503ac0d75e09efb16246dd78518986fc
23213 * tests/openpgp/gpgv-forged-keyring.scm: New.
23214 * tests/openpgp/forged-keyring.gpg: New.
23215 * tests/openpgp/Makefile.am (TESTS): Add gpgv-forged-keyring.scm.
23216 * tests/openpgp/defs.scm (tools): Add GPGV.
23219 2016-08-06 Werner Koch <wk@gnupg.org>
23221 agent: Fix long standing regression tracking the connection count.
23222 + commit 40d16029ed8b334c371fa7f24ac762d47302826e
23223 * agent/gpg-agent.c (get_agent_active_connection_count): New.
23224 (do_start_connection_thread, start_connection_thread_ssh): Bump
23225 ACTIVE_CONNECTIONS up and down.
23226 * agent/command.c (cmd_getinfo): Add subcommand "connections".
23228 2016-08-06 NIIBE Yutaka <gniibe@fsij.org>
23230 agent: Clean up SSH support.
23231 + commit 894789c3299dc47a8c1ccaaa7070382f0fae0262
23232 * agent/command-ssh.c (file_to_buffer): Remove.
23233 (ssh_handler_request_identities): Use agent_public_key_from_file.
23235 2016-08-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23237 gpg: Avoid publishing the GnuPG version by default.
23238 + commit c9387e41db7520d176edd3d6613b85875bdeb32c
23239 * g10/gpg.c (main): initialize opt.emit_version to 0
23240 * doc/gpg.texi: document different default for --emit-version
23242 2016-08-04 Werner Koch <wk@gnupg.org>
23244 gpg: Make sure that keygrips are printed for each subkey.
23245 + commit c8cc804f56bfefba46641f2c7078fcd67b494bae
23246 * g10/keylist.c (list_keyblock_colon): Print an emprty grip in case of
23249 gpg: Always print the fingerprint in colons mode.
23250 + commit 54a1ed20e203dcafeacbe21eb147efa08255dbf5
23251 * g10/keylist.c (list_keyblock_colon): Remove arg FPR. Always print
23252 fingerprint records. For secret keys always print keygrip records.
23254 tests: Use gpgconf to set the ssh socket envvar.
23255 + commit 0c2a745a2bc21e8f439930f7c0e5d1521c2fd44c
23256 * tests/openpgp/ssh.scm ("SSH_AUTH_SOCK"): Use gpgconf.
23258 gpgconf: Add limited support for -0.
23259 + commit db6f3eb926619dfe6ed2a9be197c51f9a1b6198c
23260 * tools/gpgconf.h (opt): Add field 'null'.
23261 * tools/gpgconf.c: Add option --null/-0.
23262 (list_dirs): Use it here.
23264 2016-08-04 Justus Winter <justus@g10code.com>
23266 tests: Update list of tests in Scheme test runner.
23267 + commit 05cb30052cdf1d308ff7da901cfa5a809cd49479
23268 * tests/openpgp/run-tests.scm: Add missing tests.
23270 tests: Fix path to fake-pinentry.
23271 + commit 3566544d04a4b81e5dd8a2883304673b2cc2f108
23272 * tests/openpgp/defs.scm: Correctly compute the path to fake-pinentry.
23274 2016-08-04 NIIBE Yutaka <gniibe@fsij.org>
23276 po: Update Japanese translation.
23277 + commit 89234f7f3643bad2daddc94569f1d651ec5c835e
23280 po: update Japanese translation.
23281 + commit 573e0f36190346e0263bea3ae12a389f4f598d55
23284 g10: Fix checking key for signature validation.
23285 + commit 6f284e6ed63f514b15fe610f490ffcefc87a2164
23286 * g10/sig-check.c (check_signature2): Not only subkey, but also primary
23287 key should have flags.valid=1.
23289 2016-08-03 Justus Winter <justus@g10code.com>
23291 kbx: Add missing header file.
23292 + commit e3358b246d9380008a4ba7c8f2fe03659901adaf
23293 * kbx/keybox-update.c: Add missing header file.
23295 2016-08-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23297 More cleanup of "allow to".
23298 + commit dc107b78509807db375d3a382eb3376cd2183357
23299 * README, agent/command.c, agent/keyformat.txt, common/i18n.c,
23300 common/iobuf.c, common/keyserver.h, dirmngr/cdblib.c,
23301 dirmngr/ldap-wrapper.c, doc/DETAILS, doc/TRANSLATE,
23302 doc/announce-2.1.txt, doc/gpg.texi, doc/gpgsm.texi,
23303 doc/scdaemon.texi, doc/tools.texi, doc/whats-new-in-2.1.txt,
23304 g10/export.c, g10/getkey.c, g10/import.c, g10/keyedit.c, m4/ksba.m4,
23305 m4/libgcrypt.m4, m4/ntbtls.m4, po/ca.po, po/cs.po, po/da.po,
23306 po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po,
23307 po/fr.po, po/gl.po, po/hu.po, po/id.po, po/it.po, po/ja.po,
23308 po/nb.po, po/pl.po, po/pt.po, po/ro.po, po/ru.po, po/sk.po,
23309 po/sv.po, po/tr.po, po/uk.po, po/zh_CN.po, po/zh_TW.po,
23310 scd/app-p15.c, scd/ccid-driver.c, scd/command.c, sm/gpgsm.c,
23311 sm/sign.c, tools/gpgconf-comp.c, tools/gpgtar.h: replace "Allow to"
23314 In standard English, the normal construction is "${XXX} allows ${YYY}
23315 to" -- that is, the subject (${XXX}) of the sentence is allowing the
23316 object (${YYY}) to do something. When the object is missing, the
23317 phrasing sounds awkward, even if the object is implied by context.
23318 There's almost always a better construction that isn't as awkward.
23320 These changes should make the language a bit clearer.
23322 dirmngr: Emit correct spelling of "superseded".
23323 + commit 436b28c23194fa77919967338d5a61a82d242153
23324 * dirmngr/crlcache.c (list_one_crl_entry): Spell superseded correctly.
23325 * dirmngr/ocsp.c (ocsp_invalid): Likewise.
23327 This might break some tools which parse the existing output and expect
23328 misspellings, but i'm not sure there are many such tools, and we
23329 should use standardized orthography going forward.
23331 Fix spelling and grammar.
23332 + commit cd45cf782b91ff0f6b023913963e5258ffcbf464
23333 * agent/learncard.c: s/coccured/occurred/
23334 * doc/dirmngr.texi: s/ommitted/omitted/, s/orginally/originally/,
23335 s/reponses/responses/i
23336 * doc/gpg-agent.texi, doc/dirmngr.texi, doc/gpg.texi: Fix "allows
23337 to" to more conventional english usage.
23338 * doc/tools.texi, g10/gpgcommpose.c, tests/openpgp/armor.scm,
23339 tests/openpgp/armor.test: s/occured/occurred/
23340 * tools/gpgsplit.c: s/calcualting/calculating/
23341 * sm/server.c: s/formated/formatted/
23343 2016-08-03 Werner Koch <wk@gnupg.org>
23345 gpg,gpgsm: Block signals during keyring/keybox update.
23346 + commit 48a2c93a1886589d1a0e2a4a2173e0e81311200b
23347 * kbx/keybox-util.c (keybox_file_rename): Add arg BLOCK_SIGNALS.
23348 * kbx/keybox-update.c (rename_tmp_file): Block all signals when doing
23350 * g10/keyring.c (rename_tmp_file): Block all signals during the double
23353 common: New file utilproto.c.
23354 + commit 3a2421c94015432caa49e166bc5bf5c4f80ab7c7
23355 * common/util.h: Factor prototypes from signal.c out to ...
23356 * common/utilproto.h: new.
23357 * common/Makefile.am (common_sources): Add new file.
23359 2016-08-01 Justus Winter <justus@g10code.com>
23361 gpgsm: Fix machine-readable key listing.
23362 + commit 40365b28c3fdf087fd58401f5a6f42f9d7d29d20
23363 * sm/keylist.c (list_cert_colon): Drop superfluous colon.
23365 tests: Distribute standalone test runner.
23366 + commit c971ff0823d9a649b32fd9f169a12abc3095246e
23367 * tests/openpgp/Makefile.am (EXTRA_DIST): Add missing file
23370 2016-07-28 Justus Winter <justus@g10code.com>
23372 tests: Fix distcheck.
23373 + commit 9e799b0e4f131126b80a5d3272c36d52b8ba1720
23374 * tests/openpgp/Makefile.am (sample_msgs): New variable.
23375 (EXTRA_DIST): Also ship the sample msgs.
23377 2016-07-27 Fredrik Fornwall <fredrik@fornwall.net>
23379 build: Fix check for Android.
23380 + commit 583a464c62ce8f7d70f5fdab2c7ea73ec3348d69
23381 * configure.ac: Match other Android targets as well.
23383 2016-07-26 Justus Winter <justus@g10code.com>
23385 common: Fix iobuf_peek corner case.
23386 + commit b2572b0c386fd12ac6581fcce72f8d48cbfd27c7
23387 Previously, iobuf_peek on a file smaller than 'buflen' would hang.
23389 * common/iobuf.c (underflow): Generalize by adding a target parameter.
23390 (iobuf_peek): Use this to prevent looping here.
23391 * tests/openpgp/Makefile.am (TESTS): Add new test.
23392 * tests/openpgp/setup.scm (dearmor): Move function...
23393 * tests/openpgp/defs.scm (dearmor): ... here.
23394 * tests/openpgp/issue2419.scm: New file.
23395 * tests/openpgp/samplemsgs/issue2419.asc: Likewise.
23397 gpgscm: Do not shadow common function name in catch macro.
23398 + commit 046338b8494c036a5e717130d3eadce0291126fc
23399 * tests/gpgscm/init.scm (catch): Do not shadow 'exit'.
23401 tests: Fix distcheck.
23402 + commit 66c0dab3c722c2766828515120775b106286334e
23403 * tests/openpgp/Makefile.am (samplekeys): Add missing key.
23405 gpgscm: Make the verbose setting more useful.
23406 + commit f17aecbcd98103fcd2ece537be96930f354de656
23407 * tests/gpgscm/ffi.c (do_get_verbose): New function.
23408 (do_set_verbose): Likewise.
23409 (ffi_init): Turn *verbose* into a function, add *set-verbose!*.
23410 * tests/gpgscm/tests.scm (call): Adapt accordingly.
23411 (call-with-io): Dump output if *verbose* is high.
23412 (pipe-do): Adapt accordingly.
23413 * tests/openpgp/defs.scm: Set verbosity according to environment.
23414 * tests/openpgp/run-tests.scm (test): Adapt accordingly.
23416 common: Avoid excessive stack use.
23417 + commit b3610badf691178bbbf0831af9aa6b6658c1948a
23418 * common/exectool.c (copy_buffer_shred): Make passing NULL a nop.
23419 (gnupg_exec_tool_stream): Allocate copy buffers from the heap.
23421 common: Rework resource cleanup when handling errors.
23422 + commit 35132a8b119dbc3393ceb0d0874917905d1a6354
23423 * common/exectool.c (gnupg_exec_tool_stream): Rework error handling.
23425 common: Add unit test for exectool.
23426 + commit fe40e9c53dc0710ff73e72d05ba8040874465b55
23427 * common/Makefile.am: Build new test.
23428 * common/t-exectool.c: New file.
23430 2016-07-25 Justus Winter <justus@g10code.com>
23432 g10: Fix key import statistics.
23433 + commit 4ba11251aff578394000bf480f47160f0879c763
23434 'transfer_secret_keys' collects statistics on a subkey-basis, while
23435 the other code does not. This leads to inflated numbers when
23436 importing secret keys. E.g. 'count' is incremented by the main
23437 parsing loop in 'import', and again in 'transfer_secret_keys', leading
23438 to a total of 3 if one key with two secret subkeys is imported.
23440 * g10/import.c (import_secret_one): Adjust to the fact that
23441 'transfer_secret_keys' collects subkey statistics.
23442 * tests/openpgp/Makefile.am (TESTS): Add new test.
23443 * tests/openpgp/issue2346.scm: New file.
23444 * tests/openpgp/samplekeys/issue2346.gpg: Likewise.
23446 2016-07-22 Justus Winter <justus@g10code.com>
23448 gpgscm: Make function more general.
23449 + commit 9ee23a715d5dad6bf568a2deb1c55bf15601cf51
23450 * tests/gpgscm/tests.scm (in-srcdir): Accept more path fragments.
23452 g10: Properly ignore legacy keys in the keyring cache.
23453 + commit d9839c9d303a01dc1032a6de311e034fe14e81da
23454 * g10/keyring.c (keyring_rebuild_cache): Properly ignore legacy keys
23455 in the keyring cache.
23456 * tests/migrations/Makefile.am (TESTS): Add new test.
23457 * tests/migrations/common.scm (GPG-no-batch): New variable.
23458 (run-test): New function.
23459 * tests/migrations/issue2276.scm: New file.
23460 * tests/migrations/issue2276.tar.asc: Likewise.
23462 2016-07-21 Justus Winter <justus@g10code.com>
23464 g10: Fix error handling.
23465 + commit 45bb9a2a46e11bc13c6b39e7b4748b7de199018e
23466 * g10/tofu.c (show_statistics): Fix error handling, 0 is a valid
23469 g10: Drop superfluous begin transaction.
23470 + commit 8a6f8e1e397a2d676b211f2dbc6df4a80b67442d
23471 * g10/tofu.c (record_binding): We only need a transaction for the
23474 gpgscm: Make assert macro more accurate.
23475 + commit 699c6c9f4b44441ab3db7f942df5b81f4cd88b06
23476 * tests/gpgscm/lib.scm (assert): Print the representation of the
23479 gpgscm: Make error message more useful.
23480 + commit 7207b2fe45bcf884e029366a2677a570234bed2e
23481 * tests/gpgscm/scheme.c (opexe_0): Include names of missing function
23482 parameters in the error message.
23485 + commit 1af2fd44f0a66fd0d94c224319db0b128d42a288
23486 * g10/tofu.c (tofu_closedbs): Fix freeing database handles up to the
23487 cache limit. Previously, this would crash if db_cache_count == count.
23489 2016-07-20 NIIBE Yutaka <gniibe@fsij.org>
23491 scd: Fix card removal/reset on multiple contexts.
23492 + commit 1598a4476466822e7e9c757ac471089d3db4b545
23493 * scd/app.c (application_notify_card_reset): Add message for debug.
23494 *scd/command.c (update_card_removed): Call release_application and set
23496 (struct server_local_s): Remove app_ctx_marked_for_release.
23497 (do_reset): Don't mark release but call release_application here.
23498 (open_card): Remove app_ctx_marked_for_release handling.
23499 (update_reader_status_file): Don't set SLOT here, so that it can be
23500 released the APP by application_notify_card_reset in
23501 update_card_removed.
23503 2016-07-19 Justus Winter <justus@g10code.com>
23505 agent: Add known keys to sshcontrol.
23506 + commit 270f7f7b8b235cc93516566702e2a1d256605cca
23507 * agent/command-ssh.c (ssh_identity_register): Add a key to sshcontrol
23508 even if it is already in the private key store.
23509 * tests/openpgp/ssh.scm: Test this.
23511 tests: Add test for ssh support.
23512 + commit d7a405de8325aa945ab791dcd3bc48272af33b86
23513 * tests/gpgscm/tests.scm (path-expand): New function.
23514 * tests/openpgp/Makefile.am (TESTS): Add new test.
23515 (sample_keys): Add new keys.
23516 (CLEANFILES): Clean ssh socket and control file.
23517 * tests/openpgp/fake-pinentry.c (main): Add a default passphrase.
23518 * tests/openpgp/gpg-agent.conf.tmpl: Enable ssh support.
23519 * tests/openpgp/samplekeys/ssh-dsa.key: New file.
23520 * tests/openpgp/samplekeys/ssh-ecdsa.key: Likewise.
23521 * tests/openpgp/samplekeys/ssh-ed25519.key: Likewise.
23522 * tests/openpgp/samplekeys/ssh-rsa.key: Likewise.
23523 * tests/openpgp/ssh.scm: Likewise.
23525 2016-07-19 NIIBE Yutaka <gniibe@fsij.org>
23527 scd: Fix race conditions for release_application.
23528 + commit 0c1fd4e9884ed7c1edd1819762b9e8a77f606ed3
23529 * scd/command.c (do_reset, cmd_restart): Reset app_ctx before calling
23530 release_application.
23532 2016-07-18 Justus Winter <justus@g10code.com>
23534 agent: Fix passphrase cache lookups.
23535 + commit f474249366e8e143c8e6eb7f7b1a74056e46fa1f
23536 CACHE_MODE_ANY is supposed to match any cache mode except
23537 CACHE_MODE_IGNORE, but the code used '==' to compare cache modes.
23539 * agent/cache.c (cache_mode_equal): New function.
23540 (agent_set_cache): Use the new function to compare cache modes.
23541 (agent_get_cache): Likewise.
23542 * tests/openpgp/Makefile.am (TESTS): Add new test.
23543 * tests/openpgp/issue2015.scm: New file.
23545 2016-07-15 Justus Winter <justus@g10code.com>
23547 build: Always build gpgtar.
23548 + commit 7f4dd24b880323a5b772719dafae829c288303a8
23549 We use gpgtar to unpack test data, hence we always build it. If the
23550 user opts out, we simply don't install it.
23552 * configure.ac: Add comment.
23553 * tests/migrations/Makefile.am (required_pgms): Make sure gpgtar is
23555 * tools/Makefile.am: Always build gpgtar, but do not install it if the
23556 user used '--disable-gpgtar'.
23558 2016-07-15 Werner Koch <wk@gnupg.org>
23560 wks: Publish as binary file.
23561 + commit b7b37716b9d2cd1b71b5f7f0e4fb2c1a43eee90a
23562 * tools/gpg-wks-server.c (copy_key_as_binary): New.
23563 (check_and_publish): Use new function instead of rename.
23565 2016-07-15 Justus Winter <justus@g10code.com>
23567 gpgscm: Fix linking.
23568 + commit c49c43d7e4229fd9f1bc55e17fa32fdc334dbef6
23569 * tests/gpgscm/Makefile.am: Add -lintl.
23571 g10: Fix building without trust models.
23572 + commit d21efa398874be4a15e8283c5fc382fb90f562fd
23573 * g10/pkclist.c (write_trust_status): Fall back to the previous
23576 tests: Check for gpgtar.
23577 + commit 12a887050a560c4cacaf95e4cdb0cc42d8b87aa1
23578 * tests/migrations/extended-pkf.scm: Skip test if gpgtar is not built.
23579 * tests/migrations/from-classic.scm: Likewise.
23580 * tests/openpgp/gpgtar.scm: Fix check for gpgtar.
23582 2016-07-14 Werner Koch <wk@gnupg.org>
23585 + commit 09c448202ffb4c26d7ec2028351a78e2d3680396
23588 po: Update the German translation.
23589 + commit 23c2491f94b94fa231bde8187eb958432555eff1
23592 2016-07-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
23594 dirmngr: fix handling of HTTP redirections.
23595 + commit 60428c24fb29cb633c9392abb777bc4da88dbfba
23596 * dirmngr/ks-engine-http.c (ks_http_fetch): Reinitialize HTTP session
23597 when following a HTTP redirection.
23599 2016-07-14 Werner Koch <wk@gnupg.org>
23601 gpg: Remove options --print-dane-records and --print-pka-records.
23602 + commit 1e9bc66a9a60de668890452d504eea3c3c614f7e
23603 * g10/gpg.c (main): Remove options but print a dedicated warning.
23604 * g10/options.h (struct opt): Remove fields 'print_dane_records' and
23605 'print_pka_records'.
23606 * g10/keylist.c (list_keyblock): Do not call list_keyblock_pka.
23607 (list_keyblock_pka): Remove.
23609 2016-07-14 Åka Sikrom <a4@hush.com>
23611 po: Complete update of the Norwegian translation.
23612 + commit d6d7e4d218a1e2e2a88bc893b00967b032d194f8
23615 2016-07-14 Yuri Chornoivan <yurchor@ukr.net>
23617 Update Ukrainian translation.
23618 + commit 9427288ebb32141c196996315f93535fd7744901
23621 2016-07-14 Ineiev <ineiev@gnu.org>
23623 Update Russian translation.
23624 + commit 39c88870359bc75e9f72e08a7466fcff01bdc655
23627 2016-07-14 Werner Koch <wk@gnupg.org>
23629 gpg: Fix regression since 2.1 in --search-key with a fingerprint.
23630 + commit 0342369ce001b9dba04dc79e7a4eb66fbda278e7
23631 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Prefix fingerprint with 0x.
23633 gpgscm: Use kludge to avoid improper use of ffi_schemify_name.
23634 + commit fb14bf0a95e361b0991067e3aea2902d54be811d
23635 * tests/gpgscm/ffi.c (ffi_schemify_name): Use xstrdup instead of
23638 build: Require latest released libraries.
23639 + commit c98995efefbdebea8f53d54ba2df4217dfd31ad4
23640 * agent/protect.c (OCB_MODE_SUPPORTED): Remove macro.
23641 (do_encryption): Always support OCB.
23642 (do_decryption): Ditto.
23643 (agent_unprotect): Ditto.
23644 * dirmngr/server.c (is_tor_running): Unconditionally build this.
23646 2016-07-13 Werner Koch <wk@gnupg.org>
23648 build: Update config.{guess,sub} to {2016-05-15,2016-06-20}.
23649 + commit 66b634f27f10e4c0cb21c3f201998497d0bb24ca
23650 * build-aux/config.guess: Update.
23651 * build-aux/config.sub: Update.
23653 gpg: Fix regression due to the new --mimemode options.
23654 + commit 3b8ed7650d2d63b01ec80ecf9e493b80e3ac7ef8
23655 * g10/gpg.c (opts): Re-add oTextmodeShort.
23657 2016-07-13 Daiki Ueno <ueno@gnu.org>
23659 gpg: Make --try-all-secrets work for hidden recipients.
23660 + commit 82b90eee100cf1c9680517059b2d35e295dd992a
23661 * g10/getkey.c (enum_secret_keys): Really enumerate all secret
23662 keys if --try-all-secrets is specified.
23664 2016-07-13 Werner Koch <wk@gnupg.org>
23666 gpg: Do not print a the short keyid if the high word is zero.
23667 + commit 7b96a8d736934e65bb2adbc17059f84dfeaf95fb
23668 * g10/keyid.c (format_keyid): Always returh long keyid ifor KF_LONG.
23670 gpg: New option --mimemode.
23671 + commit e148c3caa90fbadba32bdbfea9513392e3aea598
23672 * g10/gpg.c (oMimemode): New.
23673 (opts): Add --mimemode.
23674 (main): Use --mimemode only in rfc4880bis compliance mode.
23675 * g10/options.h (struct opt): Add field "mimemode".
23676 * g10/build-packet.c (do_plaintext): Allow for mode 'm'.
23677 * g10/encrypt.c (encrypt_simple, encrypt_crypt): Use 'm' if requested.
23678 * g10/plaintext.c (handle_plaintext): Handle 'm' mode.
23679 * g10/sign.c (write_plaintext_packet): Handle 'm' mode.
23680 (sign_file, sign_symencrypt_file): Use 'm' if requested.
23682 wks: Use correct key for the confirmation.
23683 + commit 95810929f75bd718dbdf2cd1c0181137a45e2456
23684 * tools/gpg-wks-client.c (send_confirmation_response): Actually
23685 encrypt to the recipient.
23687 wks: New server command --list-domains.
23688 + commit 44ecc33b4a7147d9c112a72f55a42b65cef4fe67
23689 * tools/gpg-wks-server.c (aListDomains): New.
23690 (opts): Add --list-domains.
23691 (parse_arguments): Implement.
23692 (main): Ditto. Use only one final diagnostic message.
23693 (command_list_domains): New.
23694 (check_and_publish): Remove directory creation.
23695 (get_domain_list): New.
23696 (expire_pending_confirmations): Rewrite using a list of directories.
23697 (command_cron): Get domain list and pass to
23698 expire_pending_confirmations.
23700 2016-07-13 NIIBE Yutaka <gniibe@fsij.org>
23702 agent: Fix envvars for UPDATESTARTUPTTY.
23703 + commit 7be218177701af316db75057c99ca674d53cf585
23704 agent/command.c (cmd_updatestartuptty): Use session_env_list_stdenvnames
23707 2016-07-12 Werner Koch <wk@gnupg.org>
23710 + commit acb27915f8646a875b6bb507ff46cd1bc330c02b
23711 * g13/g13tuple.c (create_tupledesc): Init refcount to 1.
23713 wks: Add --cron command to gpg-wks-server.
23714 + commit 38eb5f81d223616e3ee34bdfb41c387ce4e7df22
23715 * tools/gpg-wks-server.c (PENDING_TTL): New.
23716 (expire_one_domain, expire_pending_confirmations): New.
23717 (command_cron): New.
23718 (main): Implement --cron.
23720 wks: Try to send an encrypted confirmation back.
23721 + commit 5de41c4ecef32add89044b8a550a47cce8c6d61e
23722 * tools/gpg-wks-client.c (encrypt_response_status_cb): New.
23723 (encrypt_response): New.
23724 (send_confirmation_response): Encrypt the response.
23726 * tools/gpg-wks-server.c (send_confirmation_request): Use freeing of
23729 wks: Also create DANE record.
23730 + commit d3837e0435921bfa5587a50738f5924a5fdf976a
23731 * tools/gpg-wks-server.c (copy_key_as_dane): New.
23732 (check_and_publish): Also publish as DANE record.
23734 gpg: Extend import-option import-export to print PKA or DANE.
23735 + commit 9b075575cdc5851b019aed5ca5d5e18416beec8e
23736 * g10/export.c (do_export_stream): Move PKA and DANE printing helper
23738 (print_pka_or_dane_records): this fucntion.
23739 (write_keyblock_to_output): Add arg OPTIOSN and call
23740 print_pka_or_dane_records if requested.
23742 gpg: Move a function from import.c to export.c.
23743 + commit 0f5b105d96780a29cc58893285e6c38482e0cc2d
23744 * g10/import.c (write_keyblock_to_output): Move to ...
23745 * g10/export.c (write_keyblock_to_output): here. Add arg WITH_ARMOR.
23746 Also make sure never to export ring trust packets.
23748 2016-07-11 Werner Koch <wk@gnupg.org>
23750 gpgconf: Enhance --list-dirs.
23751 + commit 7732b332886792b2bbf47ecf7430e953f1c55a2c
23752 * tools/gpgconf.c (main) <aListDir>: Factor code out to ...
23753 (list_dirs): new. Rewrite to use a table. Allow selection of a
23754 items. Add "agent-ssh-socket".
23756 2016-07-09 NIIBE Yutaka <gniibe@fsij.org>
23758 gpgv: Tweak default options for extra security.
23759 + commit e32c575e0f3704e7563048eea6d26844bdfc494b
23760 * g10/gpgv.c (main): Set opt.no_sig _cache, so that it doesn't depend on
23761 cached status. Similarly, set opt.flags.require_cross_cert for backsig
23762 validation for subkey signature.
23764 2016-07-07 Werner Koch <wk@gnupg.org>
23766 gpg: Add export options "export-pka" and "export-dane".
23767 + commit cbe467e794f3be81b8da2bcb1732b5514b13b71d
23768 * g10/options.h (EXPORT_PKA_FORMAT): New.
23769 * g10/keylist.c (list_keyblock_pka): Do not use DANE flag.
23770 * g10/export.c: Include zb32.h.
23771 (parse_export_options): Add options "export-pka" and "export-dane".
23772 (do_export): Do not armor if either of these option is set.
23773 (print_pka_or_dane_records): New.
23774 (do_export_stream): Implement new options.
23776 gpg: Split a too large export function.
23777 + commit b05878f32aa507aa9087d7c992b630840b5ad71c
23778 * g10/export.c (do_export_stream): Factor some code out to ...
23779 (do_export_one_keyblock): new.
23781 2016-07-07 Justus Winter <justus@g10code.com>
23783 gpgscm: Capture output of spawned processes.
23784 + commit 2f61aa0ff11b194d20307751ab686c87cd47dd56
23785 * tests/gpgscm/tests.scm (call-check): Capture stdout and stderr, and
23786 return stdout if the child exited successfully, or include stderr in
23788 * tests/openpgp/version.scm: Demonstrate this by checking the stdout.
23790 2016-07-06 Werner Koch <wk@gnupg.org>
23792 doc: Escape file names in generated macros.
23793 + commit 511c2522b95333226a5e45e538fed29dd44c9be3
23794 * doc/mkdefsinc.c (print_filename): New.
23795 (main): Use it here.
23797 wks: Let the server take the encrytion key from the file.
23798 + commit e5896da666551da5322b2ae5458d429b9e60241e
23799 * tools/gpg-wks-server.c (encrypt_stream): Change arg 'fingerprint' to
23801 (store_key_as_pending): Add arg 'r_fname' to make of the keyfile.
23802 (send_confirmation_request): Add arg 'keyfile'.
23803 (process_new_key): Pass on the name of the keyfile.
23805 gpg: New options --recipient-file and --hidden-recipient-file.
23806 + commit a479804c86bc24bfab101f39464db3ecfbaedf6d
23807 * g10/gpg.c (oRecipientFile, oHiddenRecipientFile): New.
23808 (opts): Add options --recipient-file and --hidden-recipient-file.
23809 (main): Implement them. Also remove duplicate code from similar
23811 * g10/keydb.h (PK_LIST_FROM_FILE): New.
23812 (PK_LIST_SHIFT): Bump up.
23813 * g10/pkclist.c (expand_group): Take care of PK_LIST_FROM_FILE.
23814 (find_and_check_key): Add and implement arg FROM_FILE.
23815 (build_pk_list): Pass new value for new arg.
23816 * g10/getkey.c (get_pubkey_fromfile): New.
23817 * g10/gpgv.c (read_key_from_file): New stub.
23818 * g10/test-stubs.c (read_key_from_file): New stub.
23819 * g10/server.c (cmd_recipient): Add flag --file.
23820 * g10/import.c (read_key_from_file): New.
23822 * tests/openpgp/defs.scm (key-file1): New.
23824 * tests/openpgp/setup.scm: Add their private keys and import the
23826 * tests/openpgp/encrypt.scm: Add new test.
23828 gpg: New option --no-keyring.
23829 + commit 073be51a866cb5600479c504a44ae5ac94a449a2
23830 * g10/gpg.c (oNoKeyring): New.
23831 (opts): Add "--no-keyring".
23832 (main): Do not register any keyring if the option is used.
23834 gpg: Document use of node flags in import.c and remove unused args.
23835 + commit fdfde91595109e51a5b8fafd292244ad41dfb83d
23836 * g10/import.c (NODE_GOOD_SELFSIG): New. Use instead of 1.
23837 (NODE_BAD_SELFSIG): New. Use instead of 2.
23838 (NODE_DELETION_MARK): New. Use instead of 4.
23839 (NODE_FLAG_A): New. Use to mark new nodes in merge_blocks.
23840 (chk_self_sigs): Remove unused args FNAME and PK.
23841 (import_one): Adjust call. Simplify error return because
23842 chk_self_sigs does not return an error code.
23843 (append_uid, append_key, merge_sigs, merge_keysigs): Remove unsued
23844 args FNAME and KEYID.
23845 (merge_blocks, import_one, import_secret_one)
23846 (import_revoke_cert): Remove unused arg FNAME.
23848 gpg: Get rid of an unused arg in a function in getkey.c.
23849 + commit 7e0c48eb6f18a80142ca2a0f76fe8d270a4e5b33
23850 * g10/getkey.c (pk_from_block): Remove unused arg CTX. Change all
23853 gpg: Change calling convention for a function in getkey.c.
23854 + commit 9385dfeb9dd6d83608a10c7896c341f585a25a2b
23855 * g10/getkey.c (merge_selfsigs): Remove arg CTX. Add args REQ_USAGE
23857 (finish_lookup): Adjust caller. Set LOOKUP_NOT_SELECTED here...
23858 (lookup): and not here.
23860 2016-07-05 Werner Koch <wk@gnupg.org>
23862 gpg: Fix possible out-of-bounds read in is_armored.
23863 + commit 5d1a9c4dc823b418db6c4686da55ee3abdf023b0
23864 * g10/armor.c (check_input): Call is_armored only if LEN >= 2.
23865 (unarmor_pump): Use a 2 byte buffer for is_armored.
23867 2016-07-05 Justus Winter <justus@g10code.com>
23869 tests: Honor environment variable 'TMP'.
23870 + commit 8270580a5a70874beeffcdd16221937db4bcdc93
23871 This fixes problems with long socket names, e.g. when doing distcheck.
23873 * tests/gpgscm/tests.scm (path-join): New function.
23874 (with-temporary-working-directory): Honor 'TMP'.
23875 (make-temporary-file): Likewise.
23876 * tests/migrations/Makefile.am (TMP): Default to '/tmp'.
23877 (TESTS_ENVIRONMENT): Set 'TMP'.
23878 * tests/openpgp/Makefile.am (TMP): Default to '/tmp'.
23879 (TESTS_ENVIRONMENT): Set 'TMP'.
23881 gpgscm: Improve robustness and compatibility.
23882 + commit f26fe4f73e8430d93c03d95a8a24fdabd078bb20
23883 * tests/gpgscm/ffi.c (do_getenv): Avoid gccism.
23884 (do_mkdtemp): Handle errors.
23886 tests/migrations: Fix distcheck.
23887 + commit b70d08827ddb56423ad610b4ebaaaf9cc763512f
23888 * tests/migrations/Makefile.am (TESTS): Rename test.
23889 (TEST_FILES): Update list.
23890 (EXTRA_DIST): Add common.scm.
23891 * tests/migrations/common.scm (GPGTAR): New variable.
23892 (dearmor): Rename and untar archive.
23893 * tests/migrations/extended-private-key-format.scm: Rename.
23895 * tests/migrations/extended-pkf.tar.asc: New file.
23896 * tests/migrations/extended-private-key-format.gpghome: Delete.
23897 * tests/migrations/from-classic.gpghome: Likewise.
23898 * tests/migrations/from-classic.scm (setup): Update.
23899 * tests/migrations/from-classic.tar.asc: New file.
23901 tools/gpgtar: Provide --create and --extract.
23902 + commit 0b8a3358798b7028be872a923da2e275da67d592
23903 * tools/gpgtar.c (cmd_and_opt_values): New values.
23904 (opts): New actions.
23905 (parse_arguments): Handle new actions.
23906 * tests/openpgp/gpgtar.scm: Test new interface.
23908 g10: Fix out-of-bounds read.
23909 + commit a6b87981f7ddef42b25703723162c647e312b125
23910 * g10/armor.c (use_armor_filter): We need two bytes for 'is_armored'.
23912 2016-07-04 Werner Koch <wk@gnupg.org>
23914 wks: Add command --read to gpg-wks-client.
23915 + commit 8c8ae043b8d65cb79e0e99c5bdbdcbf34714bd0c
23916 * tools/gpg-wks-client.c (aRead): New.
23917 (opts): Add command "--read".
23918 (main): Implement that.
23920 tests: Add a gettime test for sizeof (time_t) > 4.
23921 + commit 27d158ead4a2b9c52269ef28d050a49c786c7d13
23922 * common/t-gettime.c (test_isotime2epoch): Add 4 more tests.
23924 2016-07-03 Werner Koch <wk@gnupg.org>
23926 gpg: Avoid spurious failures on keyblocks with no or only deleted nodes.
23927 + commit 9177a897732b3cebf3f15c97c1f613f71b6318fe
23928 * g10/import.c (write_keyblock_to_output): Clear ERR on success.
23930 wks: Let the client only export the requested UID.
23931 + commit 1bfed0bbc5ec9d60d4fb3a0f5c865923ed3563e7
23932 * tools/gpg-wks-client.c (get_key): Export only the requested uid.
23934 tools: Call sendmail directly from the wks tools.
23935 + commit 7705f310f1406fe49b45e16c371b09863313f24f
23936 * tools/send-mail.c, tools/send-mail.h: New.
23937 * tools/wks-util.c: New.
23938 * tools/Makefile.am (gpg_wks_server_SOURCES): Add them.
23939 (gpg_wks_client_SOURCES): Ditto.
23940 * tools/gpg-wks.h (opt): Add fields use_sendmail and output.
23941 * tools/gpg-wks-client.c: Add options --send and --output. Rename
23942 command --send to --create.
23943 (command_send, send_confirmation_response): Output via wks_send_mime.
23944 * tools/gpg-wks-server.c: Add options --send and --output.
23945 (send_confirmation_request): Output via wks_send_mime.
23946 (check_and_publish): Add hack for name-value bug.
23948 2016-07-02 Werner Koch <wk@gnupg.org>
23950 tools: Add options to gpg-wks-server.
23951 + commit c619035d9cd0c9cef62facf5365321289051f9a0
23952 * tools/gpg-wks.h (opt): Add 'default_from' and 'extra_headers'.
23953 * tools/gpg-wks-server.c (oFrom, oHeader): New.
23954 (parse_arguments): Set them and check args.
23955 (get_submission_address): New.
23956 (send_confirmation_request): Set correct From address. Add extra
23958 (process_new_key): Return an error code.
23960 tools: Extend mime-maker.c:mime_maker_add_header.
23961 + commit 0e36a1d1fb79c2b75c081616eed00075190b38aa
23962 * tools/mime-maker.c (add_header): Check header name and allow
23964 (mime_maker_add_header): Add mode for a syntax check.
23966 doc: Describe filter expressions.
23967 + commit 442efa9b3ff211c692b6967a944b3d9371ad1bb7
23968 * doc/gpg.texi: Remove some superfluous .E.
23969 (FILTER EXPRESSIONS): New.
23971 yat2m: Fix table formatting.
23972 + commit aae3cdb61555db4efb26f522030c8303a731d4a9
23973 * doc/yat2m.c (proc_texi_cmd): Use .TQ for @itemx. Print a .P at the
23974 end of a level 0 table.
23976 2016-07-01 Werner Koch <wk@gnupg.org>
23978 gpg: New option --export-filter.
23979 + commit 7bfc86c938d11c14ea78b196c82ceba2a2f5317d
23980 * g10/gpg.c (oExportFilter): New.
23981 (opts): Add --export-filter.
23982 (main): Handle option.
23983 * g10/export.c: Include recsel.h, init.h, and mbox-util.h.
23984 (export_keep_uid): New global var.
23985 (cleanup_export_globals): New.
23986 (parse_and_set_export_filter): New.
23987 (filter_getval): New.
23988 (apply_keep_uid_filter): New.
23989 (do_export_stream): Apply filter if set.
23991 gpg: New option --import-filter.
23992 + commit 5137bf73ccc98a72c2eeac148e4d4b5d58f0a854
23993 * g10/gpg.c (oImportFilter): New.
23994 (opts): Add --import-filter.
23995 (main): Handle option.
23996 * g10/import.c: Include recsel.h, init.h, and mbox-util.h.
23997 (import_keep_uid): New global var.
23998 (cleanup_import_globals): New.
23999 (parse_and_set_import_filter): New.
24000 (filter_getval): New.
24001 (apply_keep_uid_filter): New.
24002 (import_one): Apply filter if set.
24004 gpg: Allow to cache the mbox in a user id struct.
24005 + commit f015552374d69e28292a12f2b91ab34d65c9b457
24006 * g10/packet.h (PKT_user_id): Add field 'mbox'.
24007 * g10/free-packet.c (free_user_id): Free that.
24009 gpg: Make sure a user ID packet has always a terminating Nul in memory.
24010 + commit d8bce478be3ae9e401841a77d189ef3c81ccb757
24011 * g10/keygen.c (write_uid): Avoid overflow.
24013 common: Add function to select records etc.
24014 + commit 681c6ef757a73fc1a63a552186e038db179494aa
24015 * common/recsel.c, common/recsel.h: New.
24016 * common/t-recsel.c: New.
24018 common: Smart up register_mem_cleanup_func.
24019 + commit 6446a6b3dfd3b2e68b4285870f902ed1f86b0866
24020 * common/init.c (register_mem_cleanup_func): Avoid double registration.
24022 2016-07-01 Justus Winter <justus@g10code.com>
24024 common: Annotate semi-static allocation.
24025 + commit 49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87
24026 * common/argparse.c (optfile_parse): Allow string arguments to leak.
24028 g10: Fix memory leak.
24029 + commit 78aeb236fe4ff3a6d51b3095148e7086f2a6e9a8
24030 * g10/keyserver.c (parse_keyserver_uri): Free URI.
24032 tools/gpgtar: Annotate semi-static allocation.
24033 + commit cff63da930b6b3f0253668911e0931713b2b584a
24034 * tools/gpgtar.c (shell_parse_argv): Annotate argument vector as
24037 g10: Fix memory leak.
24038 + commit c454922ffa71929c810c6ff048d902498575302f
24039 * g10/import.c (transfer_secret_keys): Release curve from the previous
24042 g10: Fix build with disabled kbnode cache.
24043 + commit ff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614
24044 * g10/kbnode.c (release_unused_nodes): Fix build with disabled kbnode
24047 g10: Fix memory leak.
24048 + commit 44d4c695722d96b3bbef16f2843f62413b9670cd
24049 * g10/trustdb.c (tdb_get_validity_core): Fix kbnode leak.
24051 g10: Fix memory leak.
24052 + commit 5fafd18d474da7b763f5b82c73b6ca4288e136d7
24053 * g10/keygen.c (keygen_set_std_prefs): Fix memory leak.
24055 Fix trivial memory leaks in tests.
24056 + commit 6bfbc368f90b274192d3751274816091675f5109
24057 * dirmngr/t-ldap-parse-uri.c (check_ldap_escape_filter): Free result.
24058 * g10/t-stutter.c (main): Free file name.
24060 2016-06-30 Justus Winter <justus@g10code.com>
24062 tools: Fix trivial memory leak.
24063 + commit 8f39185d7bfa0bc749f9ccf4a041d2da4eba24ff
24064 * tools/gpg-connect-agent.c (main): Fix trivial memory leak.
24066 g10: Fix memory leak.
24067 + commit 401db0eebbcd28dca8f4059706bfbd18d8cc7528
24068 * g10/export.c (do_export_stream): Free secret parameters.
24070 g10: Fix memory leak.
24071 + commit eb4cdbefb05795b77a8a72189eff246b84442caf
24072 * g10/keygen.c (read_parameter_file): Free 'line'.
24074 g10: Fix memory leak.
24075 + commit 1de362af9094e0a1a0be60f77fbea7c5190a4dcc
24076 * g10/sign.c (mk_notation_policy_etc): Free 'mbox'.
24078 common: Fix memory leak.
24079 + commit 6b9a89e4c7d6f19de62e0a908a8d80c98bf99819
24080 * g10/textfilter.c (copy_clearsig_text): Free buffer.
24082 common: Fix memory leak.
24083 + commit d2d19063d3adf29340aeb39f14e1b1e9aacf41e7
24084 * common/iobuf.c (iobuf_set_partial_body_length_mode): Only create
24085 context if necessary.
24087 common: Fix memory leak.
24088 + commit 9037c23979866e6e085b3e32f973bcba590a2635
24089 * common/simple-pwquery.c (agent_open): Free socket path.
24091 g10: Fix keybox-related memory leaks.
24092 + commit 29beea6462cca32d3278b0f7f9364ff4342327b8
24093 * g10/keydb.c (keydb_release): Clear keyblock cache.
24094 (keydb_get_keyblock): Revert previous change.
24095 * kbx/keybox-blob.c (create_blob_finish): Free previous buffer, free
24096 fixups after applying them.
24097 (_keybox_release_blob): Free buffer. Currently, the buffer has been
24098 extracted before the keybox is released, but this is the right thing
24101 g10: Fix memory leak.
24102 + commit 5869f518cbd8b41b4c9880fc593216b9efeea430
24103 * g10/compress.c (release_context): Free buffers.
24105 g10: Fix memory leak.
24106 + commit 84f262102be19334534cccc66ed7eceea2714527
24107 * g10/sign.c (write_plaintext_packet): Free packet.
24109 g10: Fix memory leak.
24110 + commit abae8a9dc8a00cf46291ccb40644b3a7aa477307
24111 * g10/mainproc.c (release_list): Do not exit early if list is NULL,
24112 there are other resources that must be released.
24114 gpgscm: Fix reallocating string ports.
24115 + commit 5003caa8fdc80afd5748835c06621014f83e6ec4
24116 * tests/gpgscm/scheme.c (realloc_port_string): Use memcpy because
24117 Scheme strings may contain 0s.
24119 gpgscm: Free memory backing string ports.
24120 + commit 599ad21104e622acbd1230d90d6a23abf9145499
24121 * tests/gpgscm/scheme.c (finalize_cell): Free memory backing string
24124 gpgscm: Use the allocator from libgcrypt.
24125 + commit d4ede89981c769b0626ab2b37615da1d12a3b078
24126 * tests/gpgscm/main.c (main): Use the allocator from libgcrypt.
24129 + commit dbcb342eaf1738798a5378d9ecd83c7946140d54
24130 * g10/keyedit.c (keyedit_quick_revuid): Fix call to
24131 'check_trustdb_stale'.
24133 2016-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24135 g10: Implement gpg --quick-revuid.
24136 + commit 55d112eeb0743e90be46d15dbae67368ee7d4b50
24137 * g10/revoke.c (get_default_uid_revocation_reason): New.
24138 * g10/keyedit.c (menu_revuid): Break out creation of uid revocation
24139 into new function core_revuid.
24140 * g10/keyedit.c (keyedit_quick_revuid): New. Selects key and
24141 uid, invokes core_revuid.
24142 * g10/gpg.c (main): Handle --quick-revuid argument.
24143 * doc/gpg.texi: Document --quick-revuid.
24145 2016-06-29 Werner Koch <wk@gnupg.org>
24147 tools: Add gpg-wks-client and gpg-wks-server.
24148 + commit 5d6c83deaa11327366b0038928200b9f9f85b426
24149 * configure.ac: Add option --enable-wks-tools
24150 * tools/gpg-wks-client.c: New.
24151 * tools/gpg-wks-server.c: New.
24152 * tools/gpg-wks.h: new.
24153 * tools/wks-receive.c: New.
24154 * tools/call-dirmngr.c, tools/call-dirmngr.h: New.
24156 build: Improve GNUPG_BUILD_PROGRAM macro.
24157 + commit d8ee0d79a702c92a257884bab86183d32d16ff0e
24158 * acinclude.m4 (GNUPG_BUILD_PROGRAM): Allow for dash in options.
24160 tools: Add modules for MIME parsing and creating.
24161 + commit c334fa8df0e3901857e1a277d3277a873ae4af74
24162 * tools/mime-maker.c: New.
24163 * tools/mime-maker.h: New.
24164 * tools/mime-parser.c: New.
24165 * tools/mime-parser.h: New.
24167 2016-06-28 Justus Winter <justus@g10code.com>
24169 gpgscm: Fix memory leaks.
24170 + commit 9c67958c4737b34c60ef2076f57234eec155eb36
24171 * tests/gpgscm/ffi-private.h (ffi_schemify_name): Fix prototype.
24172 (ffi_define_function_name): Free schemified name.
24173 (ffi_define_function): Likewise.
24174 (ffi_define_constant): Likewise.
24175 (ffi_define_variable_pointer): Likewise.
24176 * tests/gpgscm/ffi.c (do_wait_processes): Free arrays.
24177 (ffi_schemify_name): Fix type.
24178 * tests/gpgscm/main.c (main): Free 'sc'.
24180 gpgscm: Free file names.
24181 + commit 6cb2be91a7cc8a9b8ec42f3956adbb19347318e3
24182 * tests/gpgscm/scheme.c (scheme_load_named_file): Free file name.
24184 gpgscm: Fix buffer overflow.
24185 + commit 56cebdc30c10eaec179a6911e308074264d876ae
24186 * tests/gpgscm/scheme.c (store_string): Avoid writing past allocated
24189 g10: Fix memory leaks.
24190 + commit c57501cc5fa84dbaf560c0fc18853c9540e918af
24191 * g10/keydb.c (keydb_get_keyblock): Free 'sigstatus' and 'iobuf'.
24192 * g10/t-keydb-get-keyblock.c: Fix trivial memory leaks.
24193 * g10/t-keydb.c: Likewise.
24195 common: Fix memory leaks.
24196 + commit c14ef10fc347d966a1efcb5c2000cbf3aaafa905
24197 * common/ccparray.c (ccparray_put): Free old array.
24198 * common/stringhelp.c (do_make_filename): Free 'home'.
24199 * common/t-convert.c: Fix trivial memory leaks.
24200 * common/t-iobuf.c: Likewise.
24201 * common/t-mbox-util.c: Likewise.
24202 * common/t-name-value.c: Likewise.
24203 * common/t-stringhelp.c: Likewise.
24204 * common/t-strlist.c: Likewise.
24206 2016-06-28 Werner Koch <wk@gnupg.org>
24208 dirmngr: add option to retrieve extra WKS info.
24209 + commit b1e8e0d4b945e077966fb98175191aed056bd957
24210 * dirmngr/server.c (cmd_wkd_get): Add option --submission-address.
24212 gpg: Add hack to --quick-gen-key to create Curve25519 keys.
24213 + commit 20ca075d9605e27e25a780bcc465c7371400ca61
24214 * g10/keygen.c (quick_generate_keypair): Add special algo string
24217 common: New function rfctimestamp.
24218 + commit 1ddf5b846fc058171af5f2784dad866b73eb0205
24219 * common/gettime.c (rfctimestamp): New.
24221 common: Add missing header file for clarity.
24222 + commit 781e614e3b4586da27e54caca39b6a7ed42fc7c7
24223 * common/zb32.c: Include zb32.h.
24225 2016-06-28 Justus Winter <justus@g10code.com>
24227 tools/gpgtar: Fix handling of '-'.
24228 + commit 4819f687c48c7972c39ae29c7af1e891a4d57360
24229 * tools/gpgtar-extract.c (gpgtar_extract): Use stdin if file is '-'.
24230 * tools/gpgtar-list.c (gpgtar_list): Likewise.
24232 common: Close input stream.
24233 + commit d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa
24234 * common/exechelp-posix.c (gnupg_spawn_process): Also close the input
24235 stream in the child.
24237 common: Fix copying data from the spawned child.
24238 + commit 8f79c31b4d465eeaf81c8046c35bb8c34512dd8d
24239 Fixes intermittent gpgtar failures.
24241 * common/exectool.c (copy_buffer_do_copy): Initialize 'nwritten'.
24242 (gnupg_exec_tool_stream): Loop until all data is copied.
24244 2016-06-28 NIIBE Yutaka <gniibe@fsij.org>
24246 g10: Fix --list-packets.
24247 + commit 52f65281f9743c42a48bf5a3354c9ab0ecdb681a
24248 * g10/gpg.c (main): Call set_packet_list_mode after assignment of
24250 * g10/mainproc.c (do_proc_packets): Don't stop processing with
24251 --list-packets as the comment says.
24252 * g10/options.h (list_packets): Fix the comment.
24253 * g10/parse-packet.c: Fix the condition for opt.list_packets.
24255 2016-06-25 Werner Koch <wk@gnupg.org>
24257 build: Add aclocal macro from pkg-config.
24258 + commit b6872353bae778d11730f5d0afd2192750777647
24261 yat2m: Silence lint warnings and fix a printf format bug.
24262 + commit 22b9bea1c3d0e944aa539a87d79e47d92ca5309f
24263 * doc/yat2m.c (ATTR_PRINTF, ATTR_NR_PRINTF, ATTR_MALLOC): New.
24264 (die, err, inf, xmalloc, xcalloc): New prototypes with attributes.
24265 (get_section_buffer): Take care of !N_SECTIONS.
24266 (proc_texi_cmd): Cast precision format arg.
24267 (proc_texi_buffer): Do not set IN_CMD when not used afterwards.
24269 2016-06-24 Werner Koch <wk@gnupg.org>
24271 gpg: New import option "import-export".
24272 + commit 7bca3be65e510eda40572327b87922834ebe07eb
24273 * g10/import.c (parse_import_options): Add option "import-export".
24274 (write_keyblock_to_output): New.
24275 (import_one): Implement option.
24277 2016-06-23 Werner Koch <wk@gnupg.org>
24279 gpg: New import option "import-show".
24280 + commit 1e5959ec059ba41f4de1e2f953300bc040efc16f
24281 * g10/options.h (IMPORT_SHOW): New.
24282 * g10/import.c (parse_import_options): Add "import-show".
24283 (import_one): Implement that.
24285 gpg: Do not print the validity after key generation.
24286 + commit 09c6f7135150efbbeb459d4ae0189a81e9d180f8
24287 * g10/keylist.c (struct keylist_context): Add field NO_VALIDITY.
24288 (list_keyblock_print): Take care of it.
24289 (list_keyblock_direct): Add arg NO_VALIDITY.
24290 * g10/keygen.c (do_generate_keypair): Merge keyblock and print w/o
24293 common: Fix possible small memory leak in b64dec.c.
24294 + commit c229ba4d8b9b16052ee0b9573bed7905be602cdf
24295 * common/b64dec.c (b64dec_finish): Always release TITLE.
24297 2016-06-23 Justus Winter <justus@g10code.com>
24299 tests/openpgp: Fake the system time for the tofu test.
24300 + commit e584d6468a2e72cd01e55f46104f9f96b56c0b66
24301 The keys in the tofu test are set to expire on 2016-09-17. Fake the
24302 system time for this test.
24304 This commit includes changes to the old test as well, for those who
24305 need to backport it.
24307 * tests/openpgp/gpg-agent.conf.tmpl: Drop trailing newlines.
24308 * tests/openpgp/tofu.scm: Fake system time.
24309 * tests/openpgp/tofu.test: Likewise.
24311 gpgscm: Handle exceptions in the transformation monad.
24312 + commit 145910afc077e7a5df6cc8b10e180dfa6ce38cc3
24313 * tests/gpgscm/tests.scm (pipe:do): Raise errors.
24314 (tr:spawn): Catch and return errors.
24315 (tr:call-with-content): Likewise.
24316 (tr:{open,write-to,pipe-do,assert-identity,assert-weak-identity}):
24319 tests/openpgp: Improve tests.
24320 + commit 1e822654c1dcfc23a9ef689f4e18c0ebba18baca
24321 * tests/openpgp/multisig.scm: Simplify test.
24322 * tests/openpgp/setup.scm (dearmor): Use pipe.
24324 gpgscm: Add types for special objects.
24325 + commit 332fa86982dc811640ac8643332d8375816e5b81
24326 * tests/gpgscm/scheme.c (enum scheme_types): Add types for boolean,
24327 nil, eof, and the sink object.
24328 (type_to_string): Handle new types.
24329 (scheme_init_custom_alloc): Give special objects a type.
24331 gpgscm: Fix Scheme initialization.
24332 + commit e6e56adf208f194ecafda29bb1c1c06655348432
24333 This potentially causes a crash if the garbage collector marks an eof
24336 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize
24339 2016-06-23 Werner Koch <wk@gnupg.org>
24341 common: Add dedicated private key functions to name-value.c.
24342 + commit 3ead21da80da4570e77036cc05303914c9b1f364
24343 * common/name-value.c (struct name_value_container): Add field
24344 'private_key_mode'.
24345 (my_error): New. Use instead of gpg_error.
24346 (nvc_new_private_key): New.
24347 (nve_release): Add arg 'private_key_mode'.
24348 (nvc_release): Call nve_release with private_key_mode flag.
24349 (nvc_delete): Ditto.
24350 (_nvc_add): Do no special case "Key:" in non-private_key_mode.
24351 (nvc_get_private_key): Return error in non-private_key_mode.
24352 (nvc_set_private_key): Ditto.
24353 (nvc_parse): Factor all code out to ...
24354 (do_nvc_parse): new. Add arg 'for_private_key'.
24355 (nvc_parse_private_key): New.
24356 * agent/findkey.c (write_extended_private_key): Replace nvc_parse by
24357 nvc_parse_private_key.
24358 (read_key_file): Ditto.
24360 * common/t-name-value.c (private_key_mode): New variable.
24361 (my_nvc_new): New. Replace all callers.
24362 (test_key_extraction): Take mode in account.
24363 (run_tests): Ditto.
24364 (run_modification_tests): Ditto.
24366 (main): Add option --parse and rename --parse to --parse-key.
24368 common: Rename external symbols in name-value.c.
24369 + commit d74d23d860c1e5039bd595c31c846782c5cb8025
24370 * common/name-value.c, common/name-value.h: Rename symbol prefixes
24371 from "pkc_" to "nvc_" and from "pke_" to "nve_". Change all callers.
24373 common: Rename private-keys.c to name-value.c.
24374 + commit b841a883a2a66807aa427e65d49067584bedfbe2
24375 * common/private-keys.c: Rename to name-value.c.
24376 * common/private-keys.h: Rename to name-value.h. Chage all users.
24377 * common/t-private-keys.c: Rename to t-name-value.c.
24378 * common/Makefile.am: Adjust accordingly.
24380 common: Add PGP armor decoding to b64dec.
24381 + commit 3694579bc4eef27ed53e1845bf03be38c299ce76
24382 * common/b64dec.c (decoder_states): Add new states.
24383 (b64dec_proc): Handle PGP armored format.
24385 2016-06-23 NIIBE Yutaka <gniibe@fsij.org>
24387 g10: Fix regression of card-edit/fetch.
24388 + commit 6f5ff1cfe449cf1f4cb7287bc57570eb794216b2
24389 * g10/card-util.c (fetch_url): Call keyserver_fetch instead of
24390 keyserver_import_fprint.
24392 2016-06-21 Justus Winter <justus@g10code.com>
24394 tests/migrations: Convert to Scheme and re-enable.
24395 + commit f548383d9af912bf93217068cc8aa99a9a6eda93
24396 * configure.ac: Re-enable.
24397 * tests/Makefile.am: Likewise.
24398 * tests/migrations/Makefile.am (TESTS): Use Scheme tests.
24399 * tests/migrations/common.scm: New file.
24400 * tests/migrations/extended-private-key-format.scm: Likewise.
24401 * tests/migrations/from-classic.scm: Likewise.
24402 * tests/migrations/extended-private-key-format.test: Drop file.
24403 * tests/migrations/from-classic.test: Drop file.
24405 gpgscm: Add more file handling functions.
24406 + commit c5e0ca5a59ebd91b67944ca125cc8cd73a9d243e
24407 * tests/gpgscm/ffi.c (do_glob): New function.
24408 (ffi_init): Define new function.
24409 * tests/gpgscm/tests.scm (basename-suffix): New function.x
24411 tests/openpgp: Port the remaining tests to Scheme.
24412 + commit 0340fcdac864109e3dd6edee759efc96e4d3f84e
24413 * tests/openpgp/Makefile.am (TESTS): Add new tests.
24414 * tests/openpgp/defs.scm (gpg-with-colons): New function.
24415 (get-config): Use new function.
24416 * tests/openpgp/export.scm: New file.
24417 * tests/openpgp/tofu.scm: Likewise.
24419 gpgscm: Improve test framework.
24420 + commit 65081c31e7536d8fb5effcc2c9aeeffc120c9a69
24421 * tests/gpgscm/lib.scm (echo): Move...
24422 * tests/gpgscm/tests.scm (echo): ... here.
24423 (info, error, skip): And use echo here.
24424 (file-exists?): New function.
24425 (tr:spawn): Check that source exists and if the sink has been created.
24426 (tr:call-with-content): Hand in optional arguments.
24428 gpgscm: Use native string searching functions.
24429 + commit 5fbbc4b334a73150e709a4802cac99abd8ada61d
24430 * tests/gpgscm/ffi-private.h: Handle character arguments.
24431 * tests/gpgscm/ffi.c (do_string_index): New function.
24432 (do_string_rindex): Likewise.
24433 (do_string_contains): Likewise.
24434 (ffi_init): Define new functions.
24435 * tests/gpgscm/ffi.scm (ffi-define): New macro.
24436 * tests/gpgscm/lib.scm (string-index): Use native function,
24437 demonstrate behavior.
24438 (string-rindex): Likewise.
24439 (string-contains?): Likewise.
24440 Demonstrate behavior of various other functions.
24441 (read-all): Rework so that it can handle large files.
24443 gpgscm: Improve error reporting.
24444 + commit d99949fc8cf541018267964629992d55c97ca9ab
24445 * tests/gpgscm/scheme.c (type_to_string): New function.
24446 (Eval_Cycle): Include actual type in error message.
24448 gpgscm: Make memory allocation failures fatal.
24449 + commit 616582071a2c76c4fb529d4da549aa95ee5d78d6
24450 * tests/gpgscm/scheme.c (Eval_Cycle): Exit if we run out of memory.
24452 2016-06-21 Werner Koch <wk@gnupg.org>
24454 sm: Do not install cacert and other root certificates.
24455 + commit c19b2061274cd50838e62a2acbdc7e7d24888e7e
24456 * doc/Makefile.am (dist_pkgdata_DATA): Move qualified.txt and
24457 com-certs.pem to ...
24458 (EXTRA_DIST): here.
24460 2016-06-20 Werner Koch <wk@gnupg.org>
24462 gpg: Add experimental support for an issuer fpr.
24463 + commit 955baf04364721457cd99aad21942523cd50498c
24464 * common/openpgpdefs.h (SIGSUBPKT_ISSUER_FPR): New.
24465 * g10/build-packet.c (build_sig_subpkt_from_sig): Add arg PKSK and
24466 insert the issuer fpr if needed.
24467 * g10/sign.c (write_signature_packets): Pass signing key.
24468 (make_keysig_packet): Ditto.
24469 (update_keysig_packet): Ditto.
24470 * g10/parse-packet.c (dump_sig_subpkt): Print issuer fpr.
24471 (parse_one_sig_subpkt): Detect issuer fpr.
24472 (can_handle_critical): Add issuer fpr.
24473 * g10/mainproc.c (check_sig_and_print): Try to get key via fingerprint.
24474 * g10/gpgv.c (keyserver_import_fprint): New stub.
24475 * g10/test-stubs.c (keyserver_import_fprint): New stub.
24477 gpg: New option --rfc4880bis.
24478 + commit ee2d9061d7abc36b857165a8395203a97380baa2
24479 * g10/options.h (struct opt): Add field flags.rfc4880bis.
24480 * g10/gpg.c (oRFC4880bis): new.
24481 (opts): add --rfc4880bis.
24482 (main): Implement that and print a warning.
24484 2016-06-19 Niibe Yutaka <gniibe@fsij.org>
24486 scd: Reset nonnull_nad to zero for VENDOR_GEMPC.
24487 + commit 971064f8b7ad676326b2a468f688037a303717df
24488 * (parse_ccid_descriptor): nonnull_nad = 0 for all GEMPC device.
24490 2016-06-17 Werner Koch <wk@gnupg.org>
24492 tests: Make make distcheck work again.
24493 + commit ce1689ea0720552ac900d7b2c4139caf24452018
24494 * Makefile.am (tests): Remove test code which would led to doubling
24495 calls to for e.g. "make distclean".
24496 * tests/Makefile.am: Typo fixes.
24497 * tests/gpgscm/Makefile.am (EXTRA_DIST): Fix name of License file.
24499 (check): Replace by check-local because check is a standard automake
24501 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Replace gmake0sim by
24502 automake generated macro.
24503 (EXTRA_DIST): Add defs.scm
24505 gpgscm: Silence compiler warnings.
24506 + commit dfe5282e5859409849a17d68b2b3a046370f65bd
24507 * tests/gpgscm/scheme.c (mk_integer): Rename arg NUM to N.
24508 (fill_vector): Ditto.
24509 (mark): Rename var NUM to N.
24510 (set_slot_in_env): Mark SC as unused.
24511 (is_any): Mark P as unused.
24513 Add license notices for TinySCHEME.
24514 + commit dc1db12d2c4f9f12bc3f7de37f76293b316c3f35
24515 * tests/gpgscm/COPYING: Rename to ...
24516 * tests/gpgscm/LICENSE.TinySCHEME: this.
24517 * AUTHORS: Add a note about TinySCHEME.
24518 * build-aux/speedo/w32/pkg-copyright.txt: Add TinySCHEME notice.
24520 2016-06-17 Justus Winter <justus@g10code.com>
24522 tests/openpgp: Reimplement tests in Scheme.
24523 + commit 9609cb20e4caee739b9fc4fd36797029d2970041
24524 * Makefile.am: Build the test infrastructure on Windows.
24525 * tests/openpgp/Makefile.am (required_pgms): Add gpgscm.
24526 (TESTS_ENVIRONMENT): Make sure gpgscm and the libraries are found.
24527 (TESTS): Replace tests with the new Scheme implementations.
24528 * tests/openpgp/4gb-packet.scm: New file.
24529 * tests/openpgp/README: Likewise.
24530 * tests/openpgp/armdetach.scm: Likewise.
24531 * tests/openpgp/armdetachm.scm: Likewise.
24532 * tests/openpgp/armencrypt.scm: Likewise.
24533 * tests/openpgp/armencryptp.scm: Likewise.
24534 * tests/openpgp/armor.scm: Likewise.
24535 * tests/openpgp/armsignencrypt.scm: Likewise.
24536 * tests/openpgp/armsigs.scm: Likewise.
24537 * tests/openpgp/clearsig.scm: Likewise.
24538 * tests/openpgp/conventional-mdc.scm: Likewise.
24539 * tests/openpgp/conventional.scm: Likewise.
24540 * tests/openpgp/decrypt-dsa.scm: Likewise.
24541 * tests/openpgp/decrypt.scm: Likewise.
24542 * tests/openpgp/default-key.scm: Likewise.
24543 * tests/openpgp/defs.scm: Likewise.
24544 * tests/openpgp/detach.scm: Likewise.
24545 * tests/openpgp/detachm.scm: Likewise.
24546 * tests/openpgp/ecc.scm: Likewise.
24547 * tests/openpgp/encrypt-dsa.scm: Likewise.
24548 * tests/openpgp/encrypt.scm: Likewise.
24549 * tests/openpgp/encryptp.scm: Likewise.
24550 * tests/openpgp/finish.scm: Likewise.
24551 * tests/openpgp/genkey1024.scm: Likewise.
24552 * tests/openpgp/gpgtar.scm: Likewise.
24553 * tests/openpgp/import.scm: Likewise.
24554 * tests/openpgp/mds.scm: Likewise.
24555 * tests/openpgp/multisig.scm: Likewise.
24556 * tests/openpgp/run-tests.scm: Likewise.
24557 * tests/openpgp/seat.scm: Likewise.
24558 * tests/openpgp/setup.scm: Likewise.
24559 * tests/openpgp/signencrypt-dsa.scm: Likewise.
24560 * tests/openpgp/signencrypt.scm: Likewise.
24561 * tests/openpgp/sigs-dsa.scm: Likewise.
24562 * tests/openpgp/sigs.scm: Likewise.
24563 * tests/openpgp/use-exact-key.scm: Likewise.
24564 * tests/openpgp/verify.scm: Likewise.
24565 * tests/openpgp/version.scm: Likewise.
24567 tests/gpgscm: Add a TinySCHEME-based test driver.
24568 + commit d2ce3f9eee34e380536049c0c9d26ed66273f094
24569 * configure.ac: Add new component.
24570 * tests/Makefile.am: Likewise.
24571 * tests/gpgscm/Makefile.am: New file.
24572 * tests/gpgscm/ffi-private.h: Likewise.
24573 * tests/gpgscm/ffi.c: Likewise.
24574 * tests/gpgscm/ffi.h: Likewise.
24575 * tests/gpgscm/ffi.scm: Likewise.
24576 * tests/gpgscm/lib.scm: Likewise.
24577 * tests/gpgscm/main.c: Likewise.
24578 * tests/gpgscm/private.h: Likewise.
24579 * tests/gpgscm/repl.scm: Likewise.
24580 * tests/gpgscm/scheme-config.h: Likewise.
24581 * tests/gpgscm/t-child.c: Likewise.
24582 * tests/gpgscm/t-child.scm: Likewise.
24583 * tests/gpgscm/tests.scm: Likewise.
24585 tests/gpgscm: Foreign objects support for TinySCHEME.
24586 + commit 56c36f2932fe2baf8e46efdea4315cf33f3c0338
24587 * tests/gpgscm/scheme-private.h (struct cell): Add 'foreign_object'.
24588 (is_foreign_object): New prototype.
24589 (get_foreign_object_{vtable,data}): Likewise.
24590 * tests/gpgscm/scheme.c (enum scheme_types): New type.
24591 (is_foreign_object): New function.
24592 (get_foreign_object_{vtable,data}): Likewise.
24593 (mk_foreign_object): Likewise.
24594 (finalize_cell): Free foreign objects.
24595 (atom2str): Pretty-print foreign objects.
24596 (vtbl): Add new functions.
24597 * tests/gpgscm/scheme.h (struct foreign_object_vtable): New type.
24598 (mk_foreign_object): New prototype.
24599 (struct scheme_interface): Add new functions.
24601 Patch from Thomas Munro,
24602 https://sourceforge.net/p/tinyscheme/patches/13/
24604 tests/gpgscm: Dynamically allocate string buffer.
24605 + commit 8e5ad9aabdd57457f76078924d33acb94b75a877
24606 * tests/gpgscm/scheme-config.h (strbuff{,_size}): Make buffer dynamic.
24607 * tests/gpgscm/scheme.c (expand_strbuff): New function.
24608 (putcharacter): Adapt length test.
24609 (readstrexp): Expand buffer if necessary.
24610 (scheme_init_custom_alloc): Initialize buffer.
24611 (scheme_deinit): Free buffer.
24613 Patch from Thomas Munro,
24614 https://sourceforge.net/p/tinyscheme/patches/11/
24616 tests/gpgscm: Make exception value available.
24617 + commit 3b100da9ada9171d873a796eaf3351d4fceed394
24618 * tests/gpgscm/init.scm (throw): Hand exception value to the handler.
24619 (catch): And bind it to *error*.
24621 tests/gpgscm: Add package macro.
24622 + commit 2907381f4a7b422823b2304ebe550acbb2f66480
24623 * tests/gpgscm/init.scm: Add package macro from manual.
24625 tests/gpgscm: Expose function to open streams as Scheme ports.
24626 + commit 55275b8e2b43a3420d85a1a931e02febaa1113e7
24627 * tests/gpgscm/scheme.c (vtbl): Add 'port_from_file' to the vtable.
24628 * tests/gpgscm/scheme.h (struct scheme_interface): New field
24629 'mk_port_from_file'.
24631 tests/gpgscm: Nicer error message.
24632 + commit 13bba1357478815a85f5c0db3607ebb6cd574f56
24633 * tests/gpgscm/scheme.c (opexe_0): Include the value that we tried to
24634 evaluate as function-like in the error message.
24636 tests/gpgscm: Fix error hook.
24637 + commit e02c1ccae13e4eb55afef8de4f29022c709404eb
24638 * tests/gpgscm/init.scm (*error-hook*): Fix error hook so that the
24639 whole error message is displayed.
24641 tests/gpgscm: Handle unhandled enumeration values.
24642 + commit 133f25703a47e9bbc28c4532934f405ecdeb2de0
24643 * tests/gpgscm/scheme.c (opexe_{3,4}): Handle unhandled enumeration
24644 values in the opcode dispatching code.
24646 tests/gpgscm: Verbatim import of latest TinySCHEME.
24647 + commit cb989504cdd4f0ff902d31af871dc3ee0d9419ac
24648 Revision 110 from svn://svn.code.sf.net/p/tinyscheme/code/trunk
24650 * tests/gpgscm/COPYING: New file.
24651 * tests/gpgscm/Manual.txt: Likewise.
24652 * tests/gpgscm/init.scm: Likewise.
24653 * tests/gpgscm/opdefines.h: Likewise.
24654 * tests/gpgscm/scheme-private.h: Likewise.
24655 * tests/gpgscm/scheme.c: Likewise.
24656 * tests/gpgscm/scheme.h: Likewise.
24658 2016-06-17 Werner Koch <wk@gnupg.org>
24660 scd: Make option --homedir work.
24661 + commit 4e41745b3ea3bb8ffc50af6bafeb1de9c928812f
24662 * scd/scdaemon.c (opts): Add --homedir.
24664 2016-06-16 Werner Koch <wk@gnupg.org>
24667 + commit b3df4e2ac6aa9b4154e923f71b4221533043e5ac
24670 2016-06-16 Yuri Chornoivan <yurchor@ukr.net>
24672 po: Update Ukrainian translation.
24673 + commit d4ce1b04431cf02ebc1bdc7150ad587d599f2a95
24676 2016-06-16 Ineiev <ineiev@gnu.org>
24678 po: Update Russian translation.
24679 + commit 2273e4f999325cdc9d275507cd07c7e95d62a377
24682 2016-06-16 Werner Koch <wk@gnupg.org>
24684 po: Update German translation.
24685 + commit 69f1b0b041c251abb66f000db173a602693bb18f
24688 Add missing files so that make distcheck works again,
24689 + commit 4d7d292cd5b616b209dfd4302a1deffe11b7be0e
24690 * tests/openpgp/Makefile.am (CLEANFILES): Add created file
24692 * tools/Makefile.am (EXTRA_DIST): Add no-libgcrypt.c.
24694 tools: Fix typo in function name of symcryptrun.
24695 + commit e44dd878df58dab27c9cd411d80c4c81501e649a
24696 * tools/symcryptrun.c (main): Fix typo.
24698 2016-06-15 Niibe Yutaka <gniibe@fsij.org>
24700 g10: Fix another race condition for trustdb access.
24701 + commit 35a3ce2acf78a95fecbccfd8db0560cca24232df
24702 * g10/tdbio.c (create_version_record): Call create_hashtable to always
24703 make hashtable, together with the version record.
24704 (get_trusthashrec): Remove call to create_hashtable.
24706 2016-06-14 Werner Koch <wk@gnupg.org>
24708 gpg: Print the subkey's curve and not the primary key curve.
24709 + commit b56aebe76657ce6efa9c6819d5a8c2a31c2bbbba
24710 * g10/keylist.c (list_keyblock_colon): Use PK2 for the subkey's curve.
24712 ldap: Improve info output for v3 fallback.
24713 + commit b7e3dfcf139284d30921cf44e7bab43d4244cc37
24714 * dirmngr/dirmngr_ldap.c (fetch_ldap): Do not use log_debug in an
24715 unprotected section. Replace log_debug by log_info in verbose mode.
24717 2016-06-14 Andre Heinecke <aheinecke@intevation.de>
24719 dirmngr: Try ldap protocol V3 as fallback.
24720 + commit f989b6ee0db96c36f13f093cbbcfd1d5b472d03c
24721 * dirmngr/dirmngr_ldap.c (fetch_ldap): Try V3 Protocol in case
24722 default Protocol gives error.
24724 dirmngr: Print ldap error if bind fails.
24725 + commit 5faddcb2927a997e05fb34eb270982096d1fe3a4
24726 * dirmngr/dirmngr_ldap.c (fetch_ldap): Use ldap_err2string on bind
24729 2016-06-14 Werner Koch <wk@gnupg.org>
24731 gpgsm: Allow ciphers AES192 and SERPENT256.
24732 + commit 5f9bd7a9e1ed4edcbb6c4e908d4bea5cd7dc9e68
24733 * sm/gpgsm.c (main): Add AES192 cipher. Allow SERPENT256.
24735 doc: Add files and envvars to a new index.
24736 + commit 2423238ee4c8a8c531dfe9e45c95f2760b638faa
24737 * doc/gnupg.texi: Define new index "ef".
24738 (Environment Index): New.
24740 gpg: Avoid endless loop in a tofu error case.
24741 + commit f980cd2e0e4694a38038f518f290017087d4ce33
24742 * g10/tofu.c (get_trust): Do not jump to out.
24744 gpg: Split tofu's get_trust function into several smaller ones.
24745 + commit 1affdf1efc42ed22dc023c92ca5134d5bcbf2686
24746 * g10/tofu.c (get_trust): Factor code out to ...
24747 (format_conflict_msg_part1): new and to ...
24748 (ask_about_binding): new.
24750 2016-06-13 Werner Koch <wk@gnupg.org>
24752 gpg: Un-deprecate option --auto-key-retrieve.
24753 + commit 9e126af215143fddbdc3949681abb9ffdb9153bb
24754 * g10/gpg.c (main): Remove deprecation warning.
24756 gpg: New option --disable-signer-uid, create Signer's UID sub-packet.
24757 + commit 61e7fd68c05ed185728e9da45f7a44a2323065ad
24758 * g10/gpg.c (oDisableSignerUID): New.
24759 (opts): New option '--disable-signer-uid'.
24760 (main): Set option.
24761 * g10/options.h (opt): Add field flags.disable_signer_uid.
24762 * g10/sign.c: Include mbox-util.h.
24763 (mk_notation_policy_etc): Embed the signer's uid.
24764 * g10/mainproc.c (check_sig_and_print): Do not use WKD for auto key
24765 retrieval if --disable-signer-uid is used.
24767 gpg: Try Signer's User ID sub-packet with --auto-key-retrieve.
24768 + commit 08c82b1b55d28ffd09b859205b7686bcefae5011
24769 * g10/packet.h (PKT_signature): Add field 'signers_uid'.
24770 * g10/parse-packet.c (parse_signature): Set this field.
24771 * g10/free-packet.c (free_seckey_enc): Free field.
24772 (copy_signature): Copy field.
24773 * g10/mainproc.c (akl_has_wkd_method): New.
24774 (check_sig_and_print): Extend NEWSIG status. If WKD is enabled try to
24775 locate a missing key via the signature's Signer's User ID sub-packet.
24776 Do this right before trying a keyserver lookup.
24778 2016-06-11 Werner Koch <wk@gnupg.org>
24780 gpg: Remove C-99ism, re-indent, and simplify one function.
24781 + commit 334e993a71d3abb7d30cb5ee05d578cecf0c3f67
24782 * g10/call-agent.c (struct keyinfo_data): Rename to
24783 keyinfo_data_parm_s.
24784 (agent_get_keyinfo): Replace C-99 style init.
24785 (keyinfo_status_cb): Use new fucntion split_fields.
24786 * g10/export.c (match_curve_skey_pk): Add missings returns error
24788 (cleartext_secret_key_to_openpgp): Better clear PK->PKEY first.
24790 common: New function split_fields.
24791 + commit 5ba99d9302cd86aee99958b71075d5288bb430aa
24792 * common/stringhelp.c (split_fields): New.
24793 * common/t-stringhelp.c: Include assert.h.
24794 (test_split_fields): New.
24797 2016-06-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24799 g10: Export cleartext keys as cleartext.
24800 + commit c41c46fa84cabbed74a13ded51fc3a817a919367
24801 * g10/export.c (do_export_stream): If a key is stored by the agent in
24802 cleartext, then try to export it as cleartext.
24803 * tests/openpgp/export.test: For secret keys that are stored in
24804 cleartext, test should try to export without pinentry interaction.
24806 g10: Allow receiving cleartext secret keys from agent.
24807 + commit a3cb72af79ee645eda212f31ab0b266f2c3d9f29
24808 * g10/export.c (match_curve_skey_pk): New function, testing whether an
24809 OpenPGP public key and an S-expression use the same curve.
24810 * g10/export.c (cleartext_secret_key_to_openpgp): New function,
24811 filling in the secret key parameters of a PKT_public_key object from
24812 a corresponding cleartext S-expression.
24813 * g10/export.c, g10/main.h (receive_seckey_from_agent): Add cleartext
24814 parameter, enabling retrieval of the secret key, unlocked.
24815 * g10/export.c (do_export_stream): Send cleartext as 0, keeping current
24817 * g10/keygen.c (card_store_key_with_backup): Use cleartext=0 to ensure
24818 that smartcard backups are all passphrase-locked.
24820 g10: Add openpgp_protected flag to agent secret key export functions.
24821 + commit 7de74320767d15d915942a98ff47c00175a078ed
24822 * g10/call-agent.c, g10/call-agent.h (agent_export_key): Add
24823 openpgp_protected flag.
24824 * g10/export.c (receive_seckey_from_agent): Request openpgp_protected
24825 secret keys from agent.
24826 * agent/command.c (hlp_export_key): EXPORT_KEY help text: add a
24827 brief description of the effect of --openpgp.
24829 g10: report whether key in agent is passphrase-protected or not.
24830 + commit 00f30cc01c79bbdff5cdc3be795f009f15d3845e
24831 * g10/call-agent.c, g10/call-agent.h (agent_get_keyinfo): add
24832 r_cleartext parameter to report whether a key is stored without
24833 passphrase protection.
24834 * g10/gpgv.c, g10/test-stubs.c: augment dummy agent_get_keyinfo to
24836 * g10/export.c, g10/keyedit.c, g10/keygen.c, g10/keylist.c,
24837 g10/sign.c: pass NULL to agent_get_keyinfo since we do not yet
24838 need to know whether agent is passphrase-protected.
24840 2016-06-08 Werner Koch <wk@gnupg.org>
24842 Explicitly restrict socket permissions.
24843 + commit 8127043d549a5843ea1ba2dc6da4906fc2258d53
24844 * agent/gpg-agent.c (create_server_socket): Call chmod before listen.
24845 * scd/scdaemon.c (create_server_socket): Ditto.
24846 * dirmngr/dirmngr.c (main): Ditto.
24848 w32: Fix recent build regression.
24849 + commit 6790115fd9059e066b4e6feb6b1e3876a1c1d522
24850 * common/homedir.c (_gnupg_socketdir_internal) [W32]: Add definition
24852 * g10/gpg.c (main) [W32]: Fix use og gnupg_homedir.
24854 * agent/gpg-agent.c (remove_socket): Remove unused var P.
24855 * scd/scdaemon.c (cleanup): Ditto.
24857 gpgconf: New commands --create-socketdir and --remove-socketdir.
24858 + commit cf4910419e09daf414f76ca2c8ab685c3d488ec1
24859 * tools/gpgconf.c: Include unistd.h.
24860 (aCreateSocketDir, aRemoveSocketDir): New.
24861 (opts): Add --create-socketdir and --remove-socketdir.
24862 (main): Implement them.
24864 Implement /run/user/UID/gnupg based sockets.
24865 + commit aab8a0b05292b0d06e3001a0b289224cb7156dbd
24866 * common/homedir.c: Include sys/stat.h and zb32.h.
24867 (w32_portable_app, w32_bin_is_bin): Change type from int to byte.
24868 (non_default_homedir): New.
24869 (is_gnupg_default_homedir): New.
24870 (default_homedir): Set non_default_homedir.
24871 (gnupg_set_homedir): Set non_default_homedir and make
24872 the_gnupg_homedir and absolute directory name.
24873 (gnupg_homedir): Return an absolute directory name.
24874 (_gnupg_socketdir_internal): New.
24875 (gnupg_socketdir): Implement /run/user/ based sockets.
24876 * tools/gpg-connect-agent.c (get_var_ext): Replace now obsolete
24877 make_filename by xstrdup.
24878 * tools/gpgconf.c (main): Sue gnupg_homedir for the "homedir:" output.
24880 gpgconf: Add option --homedir.
24881 + commit def512eb67c8a380f3b873cee0f156deef0b6dda
24882 * tools/gpgconf.c (opts): Add --homedir.
24883 (main): Set homedir.
24885 Do not use no-libgcrypt dummy for tools.
24886 + commit 173fa97102fec68670a46ae1b460231e2a183c81
24887 * tools/Makefile.am (gpgconf_SOURCES): Remove no-libgcrypt.c.
24888 (gpgconf_LDADD): Add LIBGCRYPT_LIBS.
24889 (gpg_connect_agent_LDADD): Ditto.
24890 (gpgtar_LDADD): Ditto.
24891 * dirmngr/Makefile.am (dirmngr_client_LDADD): Ditto.
24892 (t_common_ldadd): Ditto. Remove no-libgcrypt.o.
24894 Do not try to remove the enclosing directory of sockets.
24895 + commit 0faf8951544f43790c412777a926c969540174bd
24896 * agent/gpg-agent.c (remove_socket): Do not remove the enclosing
24898 * scd/scdaemon.c (cleanup): Ditto.
24900 2016-06-07 Werner Koch <wk@gnupg.org>
24902 common: New function gnupg_socketdir.
24903 + commit 36550dde998fa1d497098050ca2d4e1a952ed6b6
24904 * common/homedir.c (gnupg_socketdir): New.
24905 * agent/gpg-agent.c (create_socket_name): Use new function instead of
24907 (check_own_socket): Ditto.
24908 (check_for_running_agent): Ditto.
24909 * agent/preset-passphrase.c (main): Ditto.
24910 * common/asshelp.c (start_new_gpg_agent): Ditto.
24911 * scd/scdaemon.c (create_socket_name): Ditto.
24912 * tools/gpgconf.c (main): Ditto.
24913 * tools/symcryptrun.c (main): Ditto.
24915 common: Remove homedir arg from start_new_{dirmngr,gpg_agent}.
24916 + commit fb88f37c40dc156fa0b5bfba4ac85f1e553fd7e9
24917 * common/asshelp.c (start_new_gpg_agent): Remove arg 'homedir' in
24918 favor of gnupg_homedir (). Change all callers.
24919 (start_new_dirmngr): Ditto.
24920 * common/get-passphrase.c (gnupg_prepare_get_passphrase): Remove arg
24923 Replace use of opt.homedir by accessor functions.
24924 + commit 22a7ef01aa2c0eb77bcc40174d09104acc35cab1
24925 * common/homedir.c (the_gnupg_homedir): New var.
24926 (gnupg_set_homedir): New.
24927 (gnupg_homedir): New.
24928 * g10/options.h (struct opt): Remove 'homedir' and replace all users
24929 by the new accessor functions.
24930 * g13/g13-common.h (struct opt): Ditto.
24931 * scd/scdaemon.h (struct opt): Ditto.
24932 * sm/gpgsm.h (struct opt): Ditto.
24933 * dirmngr/dirmngr.h (struct opt): Ditto.
24934 * agent/preset-passphrase.c (opt_homedir): Ditto.
24935 * agent/protect-tool.c (opt_homedir): Ditto.
24937 2016-06-07 NIIBE Yutaka <gniibe@fsij.org>
24939 po: Update Japanese translation.
24940 + commit 650abbab716750d6087a457a25fa2efaaa3567cd
24943 gpg: Fix command line parsing of --quick-addkey and --quick-gen-key.
24944 + commit abeeb84a94be815a16e678b319cb5c8bffde2811
24945 * g10/gpg.c (main): Compose a block by curly braces.
24947 2016-06-06 Werner Koch <wk@gnupg.org>
24949 gpg: Use --keyid-format=none by default.
24950 + commit 7257ea2d450238afa4d162fab8001f74782fe43f
24951 * g10/gpg.c (main): Init keyid_format to KF_NONE.
24952 * g10/keyid.c (format_keyid): Ditto.
24953 (keystrlen): Ditto.
24955 gpg: Add option --with-subkey-fingerprint.
24956 + commit 1d1cb86694fb2223de1da0b3bfffb5c62f505847
24957 * g10/gpg.c (oWithSubkeyFingerprint): New.
24958 (opts): Add --with-subkey-fingerprint[s].
24959 (main): Set that option.
24960 * g10/options.h (struct opt): Add 'with_subkey_fingerprint'.
24961 * g10/keylist.c (list_keyblock_print): Print subkey fingerprint.
24962 (print_fingerprint): Tweak printing to use compact format if
24965 gpg: Implement --keyid-format=none.
24966 + commit b047388d57443f584f1c1d6333aac5218b685042
24967 * g10/gpg.c (main): Add option "none" to --keyid-format.
24968 * g10/options.h (KF_NONE): New.
24969 * g10/keyid.c (format_keyid): Implement that.
24970 (keystr): Use format "long" is KF_NONE is in use.
24971 (keystr_with_sub): Ditto.
24972 * g10/keylist.c (list_keyblock_print): Adjust indentaion for KF_NONE.
24973 Factor some code out to ...
24974 (print_key_line): new.
24975 (print_fingerprint): Add mode 20.
24976 * g10/mainproc.c (list_node): Use print_key_line. Replace MAINKEY by
24977 flags.primary in the PK. Fix putting a " revoked..." string into the
24979 * g10/pkclist.c (do_edit_ownertrust): Use print_key_line. This
24980 slightly changes the putput format.
24981 * g10/revoke.c (gen_standard_revoke): Use print_key_line. This may
24982 also put "expires: " into the output.
24984 2016-06-04 Werner Koch <wk@gnupg.org>
24986 w32: Require --enable-build-timestamp for the BUILD_HOSTNAME.
24987 + commit 79b7a8a9e0d41b743ceaee20dc47294359fe0d44
24988 * configure.ac (BUILD_HOSTNAME): Set to "<anon>" bey default.
24989 * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Add
24990 --enable-build-timestamp.
24992 2016-06-02 Werner Koch <wk@gnupg.org>
24994 gpg: Add the fingerprint to KEY_CREATED for subkeys.
24995 + commit 8d976a6b07c5a356631791b46b590328c1451f31
24996 * g10/keygen.c (print_status_key_created): Make more robust by
24997 allowing a NULL for PK.
24998 (generate_subkeypair): Use print_status_key_created.
24999 (generate_card_subkeypair): Ditto.
25001 gpg: Try to use the passphrase from the primary for --quick-addkey.
25002 + commit 1b460f049e5c1c102d8b55ad28781688252c5a6b
25003 * agent/command.c (cmd_genkey): Add option --passwd-nonce.
25004 (cmd_passwd): Return a PASSWD_NONCE in verify mode.
25005 * g10/call-agent.c (agent_genkey): Add arg 'passwd_nonce_addr' and do
25006 not send a RESET if given.
25007 (agent_passwd): Add arg 'verify'.
25008 * g10/keygen.c (common_gen): Add optional arg 'passwd_nonce_addr'.
25009 (gen_elg, gen_dsa, gen_ecc, gen_rsa, do_create): Ditto.
25010 (generate_subkeypair): Use sepeare hexgrip var for the to be created
25011 for hexgrip feature. Verify primary key first. Make use of the
25012 passwd nonce. Allow for a static passphrase.
25014 gpg: Extend the --quick-gen-key command.
25015 + commit 01285f909e43e8d6a48fbcc77bb5af53d567d8a2
25016 * g10/keygen.c (quickgen_set_para): Add arg 'use'.
25017 (quick_generate_keypair): Add args 'algostr', 'usagestr', and
25018 'expirestr'. Implement primary only key mode.
25019 (parse_algo_usage_expire): Set NBITS for the default algo.
25020 * g10/gpg.c (main): Extend --quick-gen-key command.
25022 gpg: Improve the new parse_subkey_algostr_usagestr fucntion.
25023 + commit dcc4cd83821667be22e502af86139bb4bd41bdf7
25024 * g10/keygen.c (parse_usagestr): Allow "cert".
25025 (generate_subkeypair): Factor expire parsing out to ...
25026 (parse_subkey_algostr_usagestr): here. Rename to ...
25027 (parse_algo_usage_expire): this. Add arg 'for_subkey'. Set CERT for
25028 primary key and check that it is not set for subkeys.
25030 gpg: New command --quick-addkey.
25031 + commit 8f2a053a0ffa0430d01a53b4d491a3f0fff683eb
25032 * g10/keygen.c (DEFAULT_STD_SUBKEYUSE): New.
25033 (ask_keysize): Factor code out to ...
25034 (get_keysize_range, fixup_keysize): new.
25035 (parse_parameter_usage): Factor parsing out to ...
25036 (parse_usagestr): new. Allow use of "encr" as alias for "encrypt".
25037 (parse_subkey_algostr_usagestr): New.
25038 (generate_subkeypair): Add new args. Implement unattended mode.
25040 * g10/keyedit.c (keyedit_quick_sign): Factor some code out to ...
25041 (find_by_primary_fpr): new.
25042 (keyedit_quick_addkey): New.
25043 * g10/gpg.c (aQuickAddKey): New.
25044 (opts): Add --quick-addkey.
25047 gpg: Do not abort on certain invalid packets.
25048 + commit d837f6b0eadb14ea08c1c6030b4d6adaaee8778e
25049 * g10/build-packet.c (write_fake_data): Check for non-opaque data.
25050 * g10/seskey.c (do_encode_md): Return NULL instead of abort.
25052 common: New function openpgp_is_curve_supported.
25053 + commit 072acb69be55e366e2da921e3953404765fa3928
25054 * common/openpgp-oid.c: Include openpgpdefs.h.
25055 (oidtable): Add field pubkey_algo.
25056 (openpgp_is_curve_supported): New.
25058 2016-06-01 NIIBE Yutaka <gniibe@fsij.org>
25060 g10: Allow User ID length >= 256.
25061 + commit db1ecc8212defdd183abbb6b1407fcc8d2dc9552
25062 * build-packet.c (do_user_id): Call write_header2 with HDRLEN not set.
25064 2016-05-31 Werner Koch <wk@gnupg.org>
25066 gpg: New status code NOTATION_FLAGS.
25067 + commit 67a4bc8d536f6997f14daff4c039abd48a172100
25068 * common/status.h (STATUS_NOTATION_FLAGS: New.
25069 * g10/packet.h (struct notation): Add flags.human.
25070 (notation_t): New typedef.
25071 * g10/build-packet.c (sig_to_notation): Set flags.human.
25072 * g10/keylist.c (show_notation): Write STATUS_NOTATION_FLAGS.
25074 2016-05-28 Werner Koch <wk@gnupg.org>
25076 common: Add a status callback to gnupg_exec_tool_stream.
25077 + commit 239a4d53916b47b5b0f0167a9b2c7a8915bb9c52
25078 * common/exectool.h (exec_tool_status_cb_t): New.
25079 * common/exectool.c: Include missing exectool.h.
25080 (read_and_log_buffer_t): Replace array by pointer.
25081 (gnupg_exec_tool_stream): Add args 'status_cb' and 'status_cb_value'.
25082 Change all callers to pass NULL for them. Malloc buffer for
25084 (read_and_log_stderr): Implement status_fd feature.
25086 2016-05-27 Werner Koch <wk@gnupg.org>
25088 common: Allow a second input stream for gnupg_exec_tool_stream.
25089 + commit 44a32455c8e41400ea96db4507c8a42bdb65b3b6
25090 * common/exechelp-posix.c (do_exec): Add arg 'except' and pass to
25092 (gnupg_spawn_process): Add arg 'except'. Change callers to pass NULL
25094 * common/exechelp-w32.c (gnupg_spawn_process): Add dummy arg 'except'.
25095 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
25096 * common/exectool.c (copy_buffer_do_copy): Allow NULL for SINK.
25097 (gnupg_exec_tool_stream): Add arg 'inextra'. Change callers to pass
25098 NULL for it. Allow NULL for OUTPUT.
25100 common: Simplify the fd closing patch 512c56a.
25101 + commit e6d9a2d07ed7aeac3944d8a7d1317c4a117356b4
25102 * common/exechelp-posix.c (get_max_fds): Use /proc/self.
25104 common: Speedup closing fds before an exec.
25105 + commit 512c56af43027149e8beacf259746b8d7bf9b1a2
25106 * common/exechelp-posix.c [__linux__]: Include dirent.h.
25107 (get_max_fds) [__linux__]: Return the actual used highest fd.
25109 tools: Improve debug output of rfc822parse.
25110 + commit ad75ca9c963bebbe02aae8d73e199a705764ae82
25111 * tools/rfc822parse.c (show_event): Add missing events.
25113 build: Remove obsolete tests for funopen and fopencookie.
25114 + commit d755bcb89dbeaf6c7c1eca73ccabdf89b536c535
25115 * configure.ac (AC_CHECK_FUNCS): Remove tests for funopen.
25117 common: Extend gnupg_create_inbound_pipe et al.
25118 + commit 5d991e333a1885adc40abd9d00c01fec4bd5d9d7
25119 * common/exechelp-posix.c (gnupg_create_inbound_pipe): Add args 'r_fp'
25121 (gnupg_create_outbound_pipe): Ditto.
25122 * common/exechelp-w32.c (gnupg_create_inbound_pipe): Add non yet
25123 functional args 'r_fp' and 'nonblock'.
25124 (gnupg_create_outbound_pipe): Ditto.
25125 * common/exechelp-w32ce.c (gnupg_create_inbound_pipe): Ditto.
25126 (gnupg_create_outbound_pipe): Ditto.
25128 common: Make use of default_errsource in exechelp.
25129 + commit 96c7901ec1c79be732570811223d3ea54875abfe
25130 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
25131 Use them instead of gpg_error and gpg_error_from_syserror.
25132 (create_pipe_and_estream): Remove arg ERRSOURCE and fix use of
25133 OUTBOUND which has a wrong name. Adjust callers.
25134 (gnupg_spawn_process): Remove arg ERRSOURCE and replace by use of
25136 * common/exechelp-w32.c (gnupg_spawn_process): Ditto.
25137 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
25138 * common/exectool.c (gnupg_exec_tool_stream): Do not pass
25139 GPG_ERROR_FROM_SYSERROR.
25140 * tools/gpgconf-comp.c (gc_component_check_options): Ditto.
25141 (retrieve_options_from_program): Ditto.
25143 gpg: Keep current and total of PROGESS status lines small enough.
25144 + commit 6c957c3d880c069bb843cc58fdcebb9fc344727e
25145 * g10/progress.c (progress_filter): Factor status wrote out to...
25146 (write_status_progress): New. Scale values down.
25148 2016-05-27 NIIBE Yutaka <gniibe@fsij.org>
25150 configure: Detection of libusb on FreeBSD.
25151 + commit b3e043ba905fdf2efcdadbd7022ac53f4408b748
25152 * configure.ac (LIBUSB_LIBS): Use LIBUSB_NAME for AC_CHECK_LIB.
25154 2016-05-25 Werner Koch <wk@gnupg.org>
25156 build: Switch to new URL for swdb.lst.
25157 + commit 74028096e06d2904f77b74b373750264e5b7b1ea
25160 2016-05-24 Werner Koch <wk@gnupg.org>
25162 gpgtar: Simplify code by using ccparray.
25163 + commit 91bc7833836f19256d56984c94cacf44853ff5c8
25164 * tools/gpgtar-create.c (gpgtar_create): Use ccparray functions.
25165 * tools/gpgtar-extract.c (gpgtar_extract): Ditto.
25166 * tools/gpgtar-list.c (gpgtar_list): Ditto.
25168 common: Add simple dynamic array function.
25169 + commit 2421f7f7ed74ed20372efd63a2efd58d3b55005c
25170 * common/ccparray.c: New.
25171 * common/ccparray.h: New.
25172 * common/t-ccparray.c: New.
25173 * common/Makefile.am (common_sources): Add files.
25174 (module_tests): Add test file.
25175 (t_ccparray_LDADD): New.
25177 2016-05-23 Justus Winter <justus@g10code.com>
25179 tests: Test the pinentry interactions when exporting keys.
25180 + commit b9d1e099c3ec3163c86afe627ecbe028db1facf6
25181 * tests/openpgp/export.test: Test pinentry interactions.
25183 tests: Add support for a passphrase queue to fake pinentry.
25184 + commit 4994153924e0948a657edddaef54a39a6001beff
25185 * tests/openpgp/fake-pinentry.c (get_passphrase): New function.
25186 (main): Add option --passphrasefile and read passphrases from it.
25188 tests: Add logging to fake pinentry.
25189 + commit 41b10c66ec1dd33633386f4fc8013ddeab7737ca
25190 * tests/openpgp/fake-pinentry.c (log_stream): New variable.
25191 (reply): New function.
25192 (spacep,skip_options,option_value): Copy from common.
25193 (main): Parse arguments, add --logfile option, write logfile.
25195 tests: Add export test.
25196 + commit a54e89a58576108fcae10ceeb4fc65822aecc170
25197 * tests/openpgp/Makefile.am (TESTS): Add new file.
25198 * tests/openpgp/export.test: New file.
25200 2016-05-21 Werner Koch <wk@gnupg.org>
25202 gpg: Speed up key listing in Tofu mode.
25203 + commit 78bb08425af5b1edb7f3ef0119013529b3a9e4ba
25204 * g10/tofu.c (get_trust): Add arg PK. Uses this instead of a an extra
25205 lookup of the public key by fingerrpint.
25206 (tofu_register): Pass PK to get_trust.
25207 (tofu_get_validity): Ditto.
25209 *g10/tofu.c (tofu_register): Remove unused FINGERPRINT_PP.
25211 gpg: Avoid name spaces clash with future sqlite versions.
25212 + commit b1ba460d8f3358342c2ee2927114d36e767a439f
25213 * g10/sqlite.c: Rename to gpgsql.c. Change function prefixes to
25215 * g10/sqlite.h: Rename to gpgsql.h.
25216 * g10/tofu.c: Adjust for changes.
25218 gpg: Explicitly close a combined Tofu DB.
25219 + commit 006a6126131ffd59d9a47889ac031f932ecc5d0b
25220 * g10/tofu.c (tofu_closedbs): Close combined DB.
25222 gpg: Store the Tofu meta handle for databases in CTRL.
25223 + commit 754b1c463034a634a678d8efc76c27fd46aad9b9
25224 * g10/gpg.h (struct tofu_dbs_s, tofu_dbs_t): New declarations.
25225 (struct server_control_s): Add field tofu.dbs.
25226 * g10/tofu.c (struct dbs): Rename to tofu_dbs_s. Replace all users by
25228 (opendbs): Add arg CTRL. Cache the DBS in CTRL.
25229 (closedbs): Rename to tofu_closedbs and make global. Add arg CTRL.
25230 (tofu_register): Add arg CTRL. Change all callers. Do not call
25232 (tofu_get_validity): Ditto.
25233 (tofu_set_policy): Ditto.
25234 (tofu_get_policy): Ditto.
25235 (tofu_set_policy_by_keyid): Add arg CTRL.
25236 * g10/gpg.c (gpg_deinit_default_ctrl): Call tofu_closedbs.
25238 gpg: Pass CTRL object down to the trust functions.
25239 + commit 027c4e55522b8e18711a3331932a9869ab89ca26
25242 gpg: Fix the TOFU_STATS_LONG status.
25243 + commit fd973ee1c18aa8fe764e09ba4dff589309b2d78d
25244 * g10/tofu.c (show_statistics): Print TOFU STATS with formatting
25247 2016-05-19 Werner Koch <wk@gnupg.org>
25249 gpg: Print "[ never ]" instead of err for validity.
25250 + commit 437c97ab6a34ff1936001dd05209193b4466a81d
25251 * g10/trust.c (uid_trust_string_fixed): Handle NEVER.
25253 2016-05-18 Werner Koch <wk@gnupg.org>
25255 dirmngr: Adjust the WKD lookup to specs version -01.
25256 + commit cf97769906337d65289ad58225a5ecc53c715550
25257 * dirmngr/server.c (cmd_wkd_get): Remove second occurrence of the
25260 2016-05-17 Werner Koch <wk@gnupg.org>
25262 gpg: Emit new status line KEY_CONSIDERED.
25263 + commit ff71521d9698c7c5df94831a1398e948213af433
25264 * common/status.h (STATUS_KEY_CONSIDERED): New.
25265 * g10/getkey.c: Include status.h.
25266 (LOOKUP_NOT_SELECTED, LOOKUP_ALL_SUBKEYS_EXPIRED): New.
25267 (finish_lookup): Add arg R_FLAGS. Count expired and revoked keys and
25268 set flag. Check a requested usage before checking for expiraion or
25270 (print_status_key_considered): New.
25271 (lookup): Print new status.
25273 2016-05-11 NIIBE Yutaka <gniibe@fsij.org>
25275 g10: Fix signature checking.
25276 + commit 83a90a916e8e2f8e44c3b11d11e1dd75f65a87fb
25277 * g10/sig-check.c (check_signature_over_key_or_uid): Fix call to
25280 2016-05-10 Werner Koch <wk@gnupg.org>
25282 gpg: Allow unattended deletion of secret keys.
25283 + commit ac9ff644b12c4dfa55d466af8ae6af54d1646893
25284 * agent/command.c (cmd_delete_key): Make the --force option depend on
25285 --disallow-loopback-passphrase.
25286 * g10/call-agent.c (agent_delete_key): Add arg FORCE.
25287 * g10/delkey.c (do_delete_key): Pass opt.answer_yes to
25290 2016-05-09 Werner Koch <wk@gnupg.org>
25292 gpg: Fix buglet in the check_all_keysigs function.
25293 + commit 693838f0125d5d0c963fa3771b1bd117702af697
25294 * g10/keyedit.c (sig_comparison): Actually compare the pubkey
25297 gpg: Request a "save" after cmd "check" fixed something.
25298 + commit d33b35f7481caa0dcb25f9fa7d6c5bb27895297a
25299 * g10/keyedit.c (keyedit_menu) <cmdCHECK>: Set modified.
25301 2016-05-09 NIIBE Yutaka <gniibe@fsij.org>
25303 po: Update Japanese translation.
25304 + commit ff870d59f067d3c5415e231c02a50d5dceac7e48
25307 2016-05-04 Werner Koch <wk@gnupg.org>
25310 + commit 00df5b1236cac5c7a48638a4613278c5aab486f8
25313 speedo,w32: Remove the installation directory page.
25314 + commit fb1e9df48465c2f77a65dddd257572fdc79d9450
25315 * build-aux/speedo/w32/inst.nsi (MUI_PAGE_DIRECTORY): Remove.
25317 gpg: Fix const char pointer mismatch with gettext.
25318 + commit 920b1421b35d1404b8360bd8feac0be659840543
25319 * g10/tofu.c (get_trust): Use const char *.
25321 speedo: Build sqlite with static-libgcc.
25322 + commit edce430b039b313cc2d79402a7bd21347490c3be
25323 * build-aux/speedo/patches/sqlite.patch: New.
25324 * Makefile.am (EXTRA_DIST): Add file.
25326 speedo: Also try patch files w/o version number.
25327 + commit 9ea258fa5b45bb5454ee3f5906df5d5eebdec0dd
25328 * build-aux/speedo.mk (SPKG_template): Try such a patch file.
25330 2016-05-04 Andre Heinecke <aheinecke@intevation.de>
25332 speedo,w32: Install sqlite.
25333 + commit 2b78223d7587c68e2e27a3d7b365219228da7947
25334 * build-aux/speedo/w32/inst.nsi (-sqlite, -un.sqlite): New.
25336 speedo,w32: Fix uninstallation.
25337 + commit 5ec76fd0c300b52366cf8d1407fe1c8de3a8a9d4
25338 * build-aux/speedo/w32/inst.nsi (-un.gnupg): Delete distsigkey and
25341 speedo,w32: Install localisation.
25342 + commit 3f58fc64666101e160e9b13fedb6cdaebeb91a7a
25343 * build-aux/speedo/w32/inst.nsi (-libgpg-error, GnuPG): Install l10n.
25344 (-un.libgpg-error, -un.gnupg): Uninstall l10n files.
25346 2016-05-04 Werner Koch <wk@gnupg.org>
25348 tests: Disable the migrations tests.
25349 + commit d696eb396a9c88319358da4333feb653994d5408
25350 * tests/Makefile.am (SUBDIRS): Remove migrations.
25351 * configure.ac (AC_CONFIG_FILES): Remove migrations Makefile.
25353 2016-05-04 Ineiev <ineiev@gnu.org>
25355 po: Update Russian translation.
25356 + commit 4fd13ab78dd228d8ff85659cddc2076af8728ebe
25359 2016-05-04 Werner Koch <wk@gnupg.org>
25361 po: Update German translation.
25362 + commit 75f31cdd42eed3555952ac478055d52af841f702
25365 Some minor string changes and fixed a printf format.
25366 + commit d00625dae60f26617d2e1bd4f22c6b35a4e92c91
25367 * g10/build-packet.c (notation_value_to_human_readable_string): Use
25370 build: Update config.{guess,sub} to 2016-04-02 and 2016-03-30.
25371 + commit 04cc7c3786d91881f83a72799dab058476602a31
25372 * build-aux/config.guess: Update.
25373 * build-aux/config.sub: Update.
25375 agent: Make --allow-loopback-pinentry the default.
25376 + commit 3ef0938cfd8637e9801369f142eb8dd564f2ca61
25377 * agent/gpg-agent.c (oNoAllowLoopbackPinentry): New.
25378 (opts): Add --no-allow-loopback-pinentry. Hide
25379 description of --allow-loopback-pinentry.
25380 (parse_rereadable_options): Set opt.allow_loopback_pinentry by
25382 (main): Replace allow-loopback-pinentry by no-allow-loopback-pinentry
25383 in the gpgconf list.
25384 * tools/gpgconf-comp.c (gc_options_gpg_agent): Ditto.
25386 2016-05-03 Werner Koch <wk@gnupg.org>
25388 common: Print https URLs in help messages.
25389 + commit 9e28617e260261de3972c20698b5a01561330e1c
25390 * common/argparse.c (strusage): Print https URLS.
25392 tests: Silence output of some tests.
25393 + commit 33aacc3d4bbd6a82d7e7ceca058970879741b7da
25394 * common/t-exechelp.c (print_open_fds): Silence non-verbose output.
25395 (test_close_all_fds): Ditto.
25396 * common/t-session-env.c (show_stdnames): Indent output.
25397 * g10/test.c (TEST): Silence non-verbose okay output.
25398 (exit_tests): Ditto.
25399 * tools/gpg-zip.in (tar_verbose_opt): Add option --quiet.
25400 * tests/openpgp/gpgtar.test (GPGZIP): Pass option --quiet.
25401 * tests/openpgp/mds.test: Indent MD5 notice.
25402 * tests/openpgp/version.test: Indent --version output.
25404 gpg: Emit status lines TOFU_STATS and TOFU_STATS_LONG.
25405 + commit 83865be35cff5355a5c4575cc3b50609819b0baa
25406 * g10/tofu.c (NO_WARNING_THRESHOLD): Rename to BASIC_TRUST_THRESHOLD.
25407 (FULL_TRUST_THRESHOLD): New.
25408 (write_stats_status): New.
25409 (show_statistics): Call new function. Print TOFU_STATS_LONG.
25411 2016-05-02 Werner Koch <wk@gnupg.org>
25413 gpg: Extend TRUST_foo status lines with the trust model.
25414 + commit ae1889320b822d48f7118a29391605e9ac992701
25415 * g10/trustdb.h (TRUST_FLAG_TOFU_BASED): New.
25416 * g10/trustdb.c (trust_model_string): Lowercase the strings. Add arg
25417 "model" and change callers to call with OPT.TRUST_MODEL.
25418 * g10/tofu.c (tofu_wot_trust_combine): Set TRUST_FLAG_TOFU_BASED.
25419 * g10/pkclist.c (write_trust_status): New.
25420 (check_signatures_trust): Call new function.
25422 gpg: Improve line wrapping for a tofu message.
25423 + commit 5cef6118580fe658a27d32e85696d88775ad417a
25424 * g10/tofu.c (time_ago_str): Mark non-breakable spaces.
25425 (show_statistics): Remove marks.
25427 gpg: Re-format some tofu messages.
25428 + commit d73e83c3b678add11a5754e199e528aeb39ec8ce
25429 * common/status.h (STATUS_TOFU_USER, STATUS_TOFU_STATS)
25430 (STATUS_TOFU_STATS_SHORT, STATUS_TOFU_STATS_LONG): New.
25431 * g10/tofu.c (NO_WARNING_THRESHOLD): New.
25432 (record_binding, tofu_register): Take care of --dry-run.
25433 (show_statistics): Print STATUS_TOFU_USER. Reformat some messages.
25434 Fix the ngettext/strcmp thing. Use log_string instead of log_info.
25435 Use NO_WARNING_THRESHOLD constant.
25436 (get_trust): Use format_text and print a compact fingerprint.
25438 2016-05-02 NIIBE Yutaka <gniibe@fsij.org>
25440 scd: More fix of error return path.
25441 + commit 6677d8b61446eb5760a30a2488c992d6e895a9ed
25442 * scd/command.c (open_card): Return GPG_ERR_ENODEV on the failure of
25445 2016-04-29 Werner Koch <wk@gnupg.org>
25447 common: Extend log_string to indent lines.
25448 + commit 35f4b6aafdf1889ed1ae569af5852f47738fe993
25449 * common/logging.c (do_logv): Add indentation when called via
25452 gpg: Factor some code code out of tofu.c.
25453 + commit dcad99c98616a6031ddfde313c920339e4012378
25454 * g10/tofu.c (string_to_long): New.
25455 (string_to_ulong): New.
25456 (get_single_unsigned_long_cb): Replace strtol/strtoul by new function.
25457 (get_single_long_cb): Ditto.
25458 (signature_stats_collect_cb): Ditto.
25459 (get_policy): Ditto.
25460 (show_statistics): Ditto. Uese es_free instead of free.
25462 gpg: Remove all assert.h and s/assert/log_assert/.
25463 + commit 64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c
25466 common: Improve log_assert.
25467 + commit 9740dff9f4d18ba764dc7173d4902e94e3f0c2e8
25468 * common/logging.c (bug_at): Do not i18n the string.
25469 (_log_assert): New.
25470 * common/logging.h (log_assert): Use new function and pass line
25473 2016-04-28 NIIBE Yutaka <gniibe@fsij.org>
25475 scd: Fix error return path.
25476 + commit cb4fee8bb645745ff199f7428e19226d5bc63dab
25477 * scd/ccid-driver.c (bulk_in): Remove EAGAIN handling.
25478 Handle LIBUSB_ERROR_NO_DEVICE to return CCID_DRIVER_ERR_NO_READER.
25480 2016-04-27 NIIBE Yutaka <gniibe@fsij.org>
25482 scd: Fix memory leaks.
25483 + commit 508b0deb70d39d388149be9a63fab24cc956a239
25484 * scd/ccid-driver.c (scan_or_find_usb_device): Return on
25485 LIBUSB_ERROR_NO_MEM. Free CONFIG before return except on error.
25486 (scan_or_find_devices): Free device list.
25488 2016-04-27 Werner Koch <wk@gnupg.org>
25490 gpg: Add experimental AKL method "wkd" and option --with-wkd-hash.
25491 + commit 87de9e19edf0311ca0342e15ef44ebe40e32861e
25492 * g10/getkey.c (parse_auto_key_locate): Add method "wkd".
25493 (get_pubkey_byname): Implement that method. Also rename a variable.
25494 * g10/call-dirmngr.c (gpg_dirmngr_wkd_get): New.
25495 * g10/keyserver.c (keyserver_import_wkd): New.
25496 * g10/test-stubs.c (keyserver_import_wkd): Add stub.
25497 * g10/gpgv.c (keyserver_import_wkd): Ditto.
25498 * g10/options.h (opt): Add field 'with_wkd_hash'.
25501 * g10/gpg.c (oWithWKDHash): New.
25502 (opts): Add option --with-wkd-hash.
25503 (main): Set that option.
25504 * g10/keylist.c (list_keyblock_print): Implement that option.
25506 dirmngr: Add experimental command WKD_GET.
25507 + commit c83c6f212e9bc98a9ea8dd8102bc16edd1a03050
25508 * dirmngr/server.c (cmd_wkd_get): New.
25509 (register_commands): Add command WKD_GET.
25511 dirmngr: Use system provided root CAs with KS_FETCH.
25512 + commit c3aeda82b8d00b87a5af72b4075c487c10dfdf6b
25513 * dirmngr/ks-engine-http.c (ks_http_fetch): Use HTTP_FLAG_TRUST_SYS.
25515 2016-04-26 Werner Koch <wk@gnupg.org>
25517 http: Allow to request system defined CAs for TLS.
25518 + commit fd765df6a7883c3d841abeb657330a1aab4b7756
25519 * dirmngr/http.h (HTTP_FLAG_TRUST_DEF, HTTP_FLAG_TRUST_SYS): New.
25520 * dirmngr/http.c (http_session_new): Add arg "flags".
25521 * dirmngr/ks-engine-hkp.c (send_request): Use new flag
25522 HTTP_FLAG_TRUST_DEF for the new arg of http_session_new.
25523 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
25524 * dirmngr/t-http.c (main): Ditto.
25526 2016-04-25 Werner Koch <wk@gnupg.org>
25528 common: Minor fixes for the new private-keys.c.
25529 + commit b7fa4960c292ef1a290d32b7f46bb741bbfc0923
25530 * common/private-keys.c (my_error_from_syserror): New. Use it in
25531 place of gpg_error_from_syserror.
25532 (_pkc_add, pkc_lookup, pke_next_value): Use ascii_strcasecmp.
25533 (pkc_parse): Use xtrystrdup and append_to_strlist_try as intended.
25535 (_pkc_add): Add braces around if-statement.
25537 common: Use new function to print a failure of xtrymalloc.
25538 + commit 8776abbe02935e720018f3ef6ffd48f21435ff8b
25539 * common/miscellaneous.c (xoutofcore): New.
25540 * common/strlist.c (append_to_strlist): Use instead of abort.
25541 (append_to_strlist_try): Use xtrymalloc instead of xmalloc.
25543 2016-04-21 Justus Winter <justus@g10code.com>
25545 common: Add support for the new extended private key format.
25546 + commit 12af2630cf4d1a39179179925fac8f2cce7504ff
25547 * agent/findkey.c (write_extended_private_key): New function.
25548 (agent_write_private_key): Detect if an existing file is in extended
25549 format and update the key within if it is.
25550 (read_key_file): Handle the new format.
25551 * agent/keyformat.txt: Document the new format.
25552 * common/Makefile.am: Add the new files.
25553 * common/private-keys.c: New file.
25554 * common/private-keys.h: Likewise.
25555 * common/t-private-keys.c: Likewise.
25556 * common/util.h (alphap, alnump): New macros.
25557 * tests/migrations: Add test demonstrating that we can cope with the
25560 common: Add 'free_strlist_wipe' which wipes memory.
25561 + commit c6d1f2f08c68efe7e80887219064a8ce6365128f
25562 * common/strlist.c (free_strlist_wipe): New function.
25563 * common/strlist.h (free_strlist_wipe): New prototype.
25565 common: Add 'append_to_strlist_try' which can fail.
25566 + commit 95303ee11df12f284e98d02dba993eda9e425383
25567 * common/strlist.c (append_to_strlist): Use the new function.
25568 (append_to_strlist_try): New function.
25569 * common/strlist.h (append_to_strlist_try): New prototype.
25571 agent: Convert key format document to org.
25572 + commit 342cc488890241b41e49f50886617115342721d6
25573 * agent/keyformat.txt: Convert to org mode.
25575 tests: Make migration test more robust and silent.
25576 + commit 0c35e09278514f1e3377a4b0a9b1f44dd39b1bf4
25577 * tests/migrations/from-classic.test: Fix in-tree build, silence test.
25579 2016-04-21 Werner Koch <wk@gnupg.org>
25581 w32: Use --enable-gpg2-is-gpg by default.
25582 + commit d81de224ecd542922dda649a492dd9550509d7bc
25583 * autogen.rc: Add option also for plain Windows.
25585 w32: Replace libiconv DLL by iconv feature of libgpg-error.
25586 + commit bd4d65615b3a5360d455b99e77bd113ad90f1539
25587 * configure.ac: Do nor require libiconv for W32.
25588 * common/utf8conv.c [W32]: Do not incluce iconv.h. Request
25589 libgpg-error iconv macros.
25590 (jnlib_iconv): Use ICONV_CONST macro.
25591 * build-aux/speedo/w32/inst.nsi [!WITH_GUI]: Do not install libiconv.
25592 * build-aux/speedo.mk (speedo_spkgs) [!WITH_GUI]: Likewise.
25594 2016-04-20 Justus Winter <justus@g10code.com>
25596 agent: Sanitize permissions of the private key directory.
25597 + commit f8adf1a3234655877a4f985d627d98567507002c
25598 * agent/gpg-agent.c (create_private_keys_directory): Set permissions.
25599 * common/sysutils.c (modestr_to_mode): New function.
25600 (gnupg_mkdir): Use new function.
25601 (gnupg_chmod): New function.
25602 * common/sysutils.h (gnupg_chmod): New prototype.
25603 * tests/migrations/from-classic.test: Test migration with existing
25606 tests: Test the migration from a classic GnuPG home directory.
25607 + commit defbc70b4a16264e067daf76678ecfb9d030dee4
25608 * configure.ac: Add new directory.
25609 * tests/Makefile.am (SUBDIRS): Likewise.
25610 * tests/migrations/Makefile.am: New file.
25611 * tests/migrations/from-classic.gpghome/pubring.gpg.asc: Likewise.
25612 * tests/migrations/from-classic.gpghome/secring.gpg.asc: Likewise.
25613 * tests/migrations/from-classic.gpghome/trustdb.gpg.asc: Likewise.
25614 * tests/migrations/from-classic.test: Likewise.
25616 2016-04-20 Werner Koch <wk@gnupg.org>
25618 speedo: Use swdb.lst to define the SQLite version.
25619 + commit 2385b9f1ddc4938e45c01a12a804f4b77d253305
25620 * build-aux/speedo.mk: Change sqlite to use our mirror and the
25622 * build-aux/speedo/w32/inst.nsi: gpg is now build and installed as
25625 2016-04-19 Werner Koch <wk@gnupg.org>
25627 gpg: Improve UID selction of --quick-sign-key.
25628 + commit d02de6c0a4a55a2720cfa5caddcbfc4ce988a2ec
25629 * g10/keyedit.c (keyedit_quick_sign): Improve UID selection and print
25630 error for non-found userids.
25632 gpg: Avoid debug like output at start of --edit-key.
25633 + commit 085b19fc9aa7f2f9b82a97824b117e71390964ec
25634 * g10/keyedit.c (check_all_keysigs): Print info only after something
25637 2016-04-15 Andre Heinecke <aheinecke@intevation.de>
25639 dirmngr: Fix https never reported in general help.
25640 + commit 6272f24312f2efe8707a7712858c85cd5a42e6fa
25641 * dirmngr/ks-engine-http.c (ks_hkp_help): Also print https
25642 when supported and no uri provided.
25644 dirmngr: Fix https incorrectly reported in help.
25645 + commit a0642856b25622c81d3464979c47ff2a30af58fa
25646 * dirmngr/ks-engine-http.c (ks_hkp_help): Only print https if tls
25649 2016-04-14 Werner Koch <wk@gnupg.org>
25651 agent: Fix regression due to recent commit 4159567.
25652 + commit 8c3fb2360f154a971d2a390e4937acb22a44a8c2
25653 * agent/protect.c (do_encryption): Fix CBC hashing.
25655 agent: Allow gpg-protect-tool to handle openpgp-native protection.
25656 + commit 6df75ec70afeb1a5ad9a00557e1245e1514c37b5
25657 * agent/protect-tool.c (read_and_unprotect): Add arg ctrl and pass to
25659 (main): Allocate a simple CTRL object and pass it to
25660 read_and_unprotect.
25661 (convert_from_openpgp_native): Remove stub.
25662 (agent_key_available, agent_get_cache): New stubs.
25663 (agent_askpin): New emulation for the one in call-pinentry.c.
25664 (agent_write_private_key): New to dump key.
25665 * agent/Makefile.am (gpg_protect_tool_SOURCES): Add cvt-openpgp.c
25667 tests: Set fake-pinentry's stdout and stdin to _IOLBF.
25668 + commit 94504b3d5af126abb591dedda1ca0f0970822f55
25669 * tests/openpgp/fake-pinentry.c (main): Call setvbuf. Show passphrase
25670 at startup. Increase buffer.
25672 2016-04-12 Werner Koch <wk@gnupg.org>
25674 agent: Implement new protection mode openpgp-s2k3-ocb-aes.
25675 + commit 4159567f7ed7a1139fdc3a6c92988e1648ad84ab
25676 * agent/protect.c (agent_protect): Add arg use_ocb. Change all caller
25677 to pass -1 for default.
25678 * agent/protect-tool.c: New option --debug-use-ocb.
25679 (oDebugUseOCB): New.
25680 (opt_debug_use_ocb): New.
25681 (main): Set option.
25682 (read_and_protect): Implement option.
25684 * agent/protect.c (OCB_MODE_SUPPORTED): New macro.
25685 (PROT_DEFAULT_TO_OCB): New macro.
25686 (do_encryption): Add args use_ocb, hashbegin, hashlen, timestamp_exp,
25687 and timestamp_exp_len. Implement OCB.
25688 (agent_protect): Change to support OCB.
25689 (do_decryption): Add new args is_ocb, aadhole_begin, and aadhole_len.
25691 (merge_lists): Allow NULL for sha1hash.
25692 (agent_unprotect): Change to support OCB.
25693 (agent_private_key_type): Remove debug output.
25695 indent: Help Emacs not to get confused by conditional compilation.
25696 + commit 7faf131c8b8710419df3dc13a1228d1977c55f53
25697 * agent/protect.c (calibrate_get_time) [W32]: Use separate function
25698 calls for W32 and W32CE.
25700 2016-04-07 Justus Winter <justus@g10code.com>
25702 g10: Fix exporting secret keys of certain sizes.
25703 + commit 02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8
25704 * g10/build-packet.c (do_key): Do not use the header length specified
25705 by the public key packet from the keyring, but let 'write_header2'
25706 compute the required length.
25708 2016-04-06 Justus Winter <justus@g10code.com>
25710 Revert "g10: Support armored keyrings in gpgv."
25711 + commit 76ca869197e304daa5a8dd96ea43113ec7b28354
25712 This reverts commit abb352de51bc964c06007fce43ed6f6caea87c15.
25714 2016-04-05 Justus Winter <justus@g10code.com>
25716 dirmngr: Autodetect PEM format in dirmngr-client.
25717 + commit 9354293b8c9f234939bc04182f15e2fe512e914e
25718 * dirmngr/dirmngr-client.c (init_asctobin): New function.
25719 (main): Move the initialization code to the new function.
25720 (read_pem_certificate): Initialize base64 table.
25721 (read_certificate): Try to decode certificates given in files as PEM
25724 2016-04-05 Werner Koch <wk@gnupg.org>
25726 build: Fix for: Build gpgcompose only in maintainer mode.
25727 + commit f45ed07a0fffa3adbc75b9d5726108a066927599
25728 * g10/Makefile.am (noinst_PROGRAMS): Always add module_tests.
25730 doc: Install gpg and gpgv man pages under the correct name.
25731 + commit 4dc4fb1c14b3096bb1cdc5923c0d1eb419036805
25732 * doc/mkdefsinc.c (main): Add double include guard. Set variable
25733 gpgtwohack. Define macros gpgname and gpgvname.
25734 * doc/gpg.texi: Remove macro definition for gpgname. Use Texinfo var
25735 gpgtwohack to prepare the man pages. Use @gpgname everywhere.
25736 * doc/gpgv.texi: Likewise.
25737 * doc/Makefile.am (myman_pages): Remove gpg2.1 and gpgv2.1 but add
25738 them depending on USE_GPG2_HACK.
25740 build: Build gpgcompose only in maintainer mode.
25741 + commit 4b5341dc333983a15f649601fdddc42ba9161433
25742 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose only in maintainer
25745 gpg: Replace use of "gpg2" by GPG_NAME.
25746 + commit 7b58a1118d98543ed6854447d7b403877638ba54
25749 2016-04-04 Werner Koch <wk@gnupg.org>
25751 Now build "gpg" binary but install as "gpg2"
25752 + commit 96bcd4220f1f1313afe12097d8dc62342ac8de0d
25753 * configure.ac (USE_GPG2_HACK): New ac_define am_conditional.
25754 * common/homedir.c (gnupg_module_name): Replace use of macro
25755 NAME_OF_INSTALLED_GPG.
25756 * g10/keygen.c (generate_keypair): Ditto.
25757 * g10/Makefile.am (bin_PROGRAMS): Remove.
25758 (noinst_PROGRAMS): Add gpg or gpg2 and gpgv or gpg2.
25759 (gpg2_hack_list): New.
25760 (use_gpg2_hack): New.
25761 (gpg2_SOURCES): Rename to gpg_SOURCES.
25762 (gpgv2_SOURCES): Rename to gpgv_SOURCES.
25763 (gpg2_LDADD): Rename to gpg_LDADD.
25764 (gpgv2_LDADD): Rename to gpgv_LDADD.
25765 (gpg2_LDFLAGS): Rename to gpg_LDFLAGS.
25766 (gpgv2_LDFLAGS): Rename to gpgv2_LDFLAGS.
25767 (install-exec-hook): Remove WinCE specific rules and add new rules.
25768 (uninstall-local): Uninstall gpg/gpg2 and gpgv/gpgv2.
25769 * tests/openpgp/Makefile.am (required_pgms): s/gpg2/gpg/.
25770 * tests/openpgp/defs.inc: Ditto.
25771 * tests/openpgp/gpgtar.test: Ditto.
25772 * tests/openpgp/mkdemodirs: Ditto.
25773 * tests/openpgp/signdemokey: Ditto.
25775 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Remove obsolete
25776 --enable-mailto, add --enable-gpg2-is-gpg.
25778 tests: Add missing file.
25779 + commit c6ed863491ec3a1e0fcf9cbe2c93c87468306c29
25780 * tests/openpgp/Makefile.am (TEST_FILES): Add plain-largeo.asc.
25782 2016-04-04 Justus Winter <justus@g10code.com>
25784 g10: Support armored keyrings in gpgv.
25785 + commit abb352de51bc964c06007fce43ed6f6caea87c15
25786 * doc/gpgv.texi: Document the feature.
25787 * g10/Makefile.am (gpgv2_SOURCES): Add dearmor.c.
25788 * g10/dearmor.c (dearmor_file): Add sink argument.
25789 * g10/gpg.c (main): Adapt accordingly.
25790 * g10/gpgv.c (make_temp_dir): New function.
25791 (main): De-armor keyrings.
25792 * g10/main.h (dearmor_file): Adapt prototype.
25794 tests: Fix default key test.
25795 + commit dd5902cc45bae7582f8a0bc91a0a7f4d8ae45d8c
25796 * tests/openpgp/default-key.test: Avoid using the option
25797 '--trust-model' unconditionally.
25799 2016-04-01 Justus Winter <justus@g10code.com>
25801 build: Check for conflicting trust model options.
25802 + commit 6060ea898fda499211c9d5030fff41d58f899fb0
25803 * configure.ac: Disable TOFU if configured without trust models, and
25804 check for conflicting options.
25806 g10: Remove option --always-trust if compiled without trust models.
25807 + commit b74185b6eaeaae4754726ff203e11977777f568c
25808 * g10/gpg.c (opts): Remove option --always-trust if compiled without
25811 2016-03-31 Justus Winter <justus@g10code.com>
25813 speedo,w32: Build libsqlite3.
25814 + commit e7171f559590422cc52dbcb8d78d94569b31012f
25815 * build-aux/speedo.mk (speedo_spkgs): Add libsqlite3 on w32.
25816 (libsqlite3_ver): New variable.
25817 (speedo_pkg_libsqlite3_tar): Likewise.
25819 g10: Use gpg-error abstraction of sched_yield.
25820 + commit 8be9dab2dd2f83ca922c01542c63b404e34bdfd9
25821 * g10/tofu.c (begin_transaction): Use 'gpgrt_yield'.
25823 2016-03-29 Werner Koch <wk@gnupg.org>
25825 gpg: Fix NULL-segv for missing tofu DB.
25826 + commit e2c5781788f765815532410a77077ddbb72513e9
25827 * g10/tofu.c (opendb): Guard call to timeout function.
25829 2016-03-22 Werner Koch <wk@gnupg.org>
25831 gpg: Improve message when asking for key capabilities.
25832 + commit fc30c079a348436868968850dabf653b91f82419
25833 * g10/keygen.c (ask_key_flags): Improve message.
25835 gpg: Remove the extra prompt for Curve25519.
25836 + commit 7f919063d3e426104fe58ae779a9a066140014c1
25837 * g10/keygen.c (MY_USE_ECDSADH): New macro local to ask_curve.
25838 (ask_curve): Use a fixed table of curve names and reserve a slot for
25839 Curve448. Simplify CurveNNNN/EdNNNN switching.
25840 (ask_curve): Remove the Curve25519 is non-standard prompt.
25842 2016-03-19 Werner Koch <wk@gnupg.org>
25844 gpg: Silence trustdb computation with --quiet.
25845 + commit af9a4afbf0b518c8acff98e50135b2beb6c722c3
25846 * g10/trustdb.c (validate_keys): Do not print log_info stuff in quiet
25849 2016-03-17 Werner Koch <wk@gnupg.org>
25851 sm: Always create a keybox header when creating a new keybox.
25852 + commit 1aad5c6277ea3852ff57bbf680f61c9136ce4d5c
25853 * sm/keydb.c (maybe_create_keybox): Create the header blob.
25855 2016-03-17 Neal H. Walfield <neal@g10code.com>
25857 doc: Improve documentation of --enable-large-rsa.
25858 + commit 1dc7f55a4095ee42ce2d8c3eb41b7162edf2ca2e
25859 * doc/gpg.texi (--enable-large-rsa): Improve text.
25861 2016-03-17 NIIBE Yutaka <gniibe@fsij.org>
25863 agent: allow removal of the shadowed key.
25864 + commit 8588c2dbc4c4d1b53796f3dbe8489b932dca7a60
25865 * agent/findkey.c (agent_delete_key): Remove the key when asked.
25867 2016-03-16 NIIBE Yutaka <gniibe@fsij.org>
25869 g10: Add const qualifier.
25870 + commit b752d2c93778e6a1c1de3eddf8fc725b0ddd354e
25871 * g10/gpgcompose.c (show_help): Those are strings not to be modified.
25873 2016-03-15 Werner Koch <wk@gnupg.org>
25875 gpg: Do not rely on a certain evaluation order.
25876 + commit 60b34f96f4f390670462d719c0d797e622cee4d4
25877 * g10/keyedit.c (print_and_check_one_sig): Call check_key_signature
25878 before derefing IS_SELFSIG.
25880 2016-03-14 Werner Koch <wk@gnupg.org>
25882 scd: Add manufacturer id 0x000a.
25883 + commit 834b84c0ee4990393daa5e44afbab5b0aaed0758
25884 * g10/card-util.c (get_manufacturer): Add it.
25886 2016-03-10 Kevin J. McCarthy <kevin@8t8.us>
25888 g10: Silence message if --quiet is given.
25889 + commit 4f578cb2fc192f44070bb0d18dffaa3863ed0d92
25890 * g10/getkey.c (parse_def_secret_key): Silence message if --quiet is
25893 2016-03-08 Neal H. Walfield <neal@g10code.com>
25895 gpg: Add a new test.
25896 + commit b17577eac6b7599a4bab6fd3ecb04715aa01367c
25897 * g10/Makefile.am (EXTRA_DIST): Add t-stutter-data.asc.
25898 (module_tests): Add t-stutter.
25899 (t_stutter_SOURCES): New variable.
25900 (t_stutter_LDADD): New variable.
25902 2016-03-07 Justus Winter <justus@g10code.com>
25904 sm: Implement pinentry loopback and reading passphrases from fd.
25905 + commit eea139c56ef55081d8cd8df2a35ce507386e0f17
25906 * doc/gpgsm.texi: Document '--pinentry-mode' and '--passphrase-fd'.
25907 * sm/Makefile.am (gpgsm_SOURCES): Add new files
25908 * sm/call-agent.c (struct default_inq_parm_s): New definition.
25909 (start_agent): Pass in the pinentry mode.
25910 (default_inq_cb): Handle 'PASSPHRASE' and 'NEW_PASSPHRASE' inquiries.
25911 Adapt all call sites to the new callback cookie.
25912 * sm/gpgsm.c (cmd_and_opt_values): Add new values.
25913 (opts): Add new options.
25914 (main): Handle new options.
25915 * sm/gpgsm.h (struct opt): Add field 'pinentry_mode'.
25916 * sm/passphrase.c: New file.
25917 * sm/passphrase.h: Likewise.
25919 sm: Remove unused argument '--fixed-passphrase'.
25920 + commit 53ed98eda77ff2dcf390cebd0cec9f2665661863
25921 * doc/gpgsm.texi: Drop description.
25922 * sm/gpgsm.c (cmd_and_opt_values): Drop enum value.
25923 (opts): Drop argument.
25924 (main): Drop argument handling.
25925 * sm/gpgsm.h (struct opt): Drop field 'fixed_passphrase'.
25927 kbx: Avoid undefined behavior.
25928 + commit a68ca5a90457ac97eee4efd7fdea596d27c54697
25929 * kbx/keybox-file.c (_keybox_read_blob2): Cast to unsigned int before
25932 2016-03-07 NIIBE Yutaka <gniibe@fsij.org>
25934 scd: Bug fix for a device with multiple interfaces.
25935 + commit 7a32f87cccddb40521bfdd4eb2d0dc9c88fb3fe5
25936 * scd/ccid-driver.c (scan_or_find_usb_device): Use IFC_NO when
25937 accessing interface information.
25939 2016-03-04 Justus Winter <justus@g10code.com>
25941 build: Make libusb a hard requirement if the ccid driver is requested.
25942 + commit e997552161b2dd8aabf350adee14e208e1545aef
25943 * configure.ac: Print an error message and die if the internal ccid
25944 driver is requested but no suitable libusb is found.
25946 g10: Drop superfluous declaration.
25947 + commit 1e4b7823008daea1a22a6f0f9b379fdec37a4cd4
25948 * g10/main.h (disable_core_dumps): Drop declaration.
25950 g10: Guard code against errors.
25951 + commit 40f6529ceeea806fc011135a9fa3a3590a9534ac
25952 * g10/keygen.c (do_generate_keypair): Check for errors, in which case
25955 2016-03-03 Justus Winter <justus@g10code.com>
25957 dirmngr: Add more missing CFLAGS.
25958 + commit 9f0ba5089e664447c36cee3d9249f95e4ea39957
25959 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
25961 (t_dns_stuff_CFLAGS): Likewise.
25963 tests/openpgp: Skip gpgtar test if it has not been built.
25964 + commit a883d4c0f8125e809c144ec69e76c9f522102d8f
25965 * tests/openpgp/gpgtar.test: Check if executable exists.
25967 2016-03-02 Neal H. Walfield <neal@g10code.com>
25969 gpg: Add new program gpgcompose.
25970 + commit d040628ddf2c09ddc9581ff365680a568ad24278
25971 * g10/packet.h: Include "util.h".
25972 * g10/encrypt.c (encrypt_seskey): Don't mark as static.
25973 * g10/gpgcompose.c: New file.
25974 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose.
25975 (gpg2_SOURCES): Split everything but gpg.c into...
25976 (gpg_sources): ... this new variable.
25977 (gpgcompose_SOURCES): New variable.
25978 (gpgcompose_LDADD): Likewise.
25979 (gpgcompose_LDFLAGS): Likewise.
25981 gpg: More robustly detect valid non-armored OpenPGP messages.
25982 + commit 605276ef8cd449bfd574ae6c498fa5d7d265c5c7
25983 * g10/armor.c (is_armored): More robustly detect valid non-armored
25986 common: Provide a function for mapping packet types to strings.
25987 + commit 24e0f1d56e6f56e7fb52b5c6bdb100131e12dfe3
25988 * common/openpgpdefs.h (pkttype_str): New function.
25990 gpg: Rename pop_filter to iobuf_pop_filter and export it.
25991 + commit 1463f9b9624fae97cc89df3aa4546655ee893f7c
25992 * common/iobuf.c (pop_filter): Rename from this...
25993 (iobuf_pop_filter): ... to this. Don't mark it as static.
25995 gpg: Split write_pubkey_enc_from_list.
25996 + commit 7eac4942b537c4b3710d34e6adb9c5d36338f38b
25997 * g10/encrypt.c (write_pubkey_enc_from_list): Split the body of this
25998 function out into...
25999 (write_pubkey_enc): ... this new function.
26001 gpg: Allow the caller to write the contents of a plaintext packet.
26002 + commit 2fdb950471bd36f046672254ff26ca94797cc9f1
26003 * g10/build-packet.c (do_plaintext): Change the semantics such that if
26004 PT->BUF is NULL, it is the caller's responsibility to write the
26005 content (and disable partial body length mode, if appropriate).
26007 gpg: Add a new function for creating binary notations.
26008 + commit 1a624586149f9e34206e5d5e1ba0b7d2b7004c80
26009 * g10/build-packet.c (blob_to_notation): New function.
26011 gpg: Refactor the printing of binary notations.
26012 + commit fd2d00ccf558b1ac1184967d8702ef01cd60bf60
26013 * g10/build-packet.c (sig_to_notation): Break printing of binary
26015 (notation_value_to_human_readable_string): ... this new function.
26016 Provide a small preview of the binary data substituting non-printable
26017 characters with '?'.
26019 2016-03-02 Uldis Anšmits <uldis.ansmits@tieto.com>
26021 tests/openpgp: Make tests more portable.
26022 + commit 1cdb744d91ab33563fc0b3156fb05694caa55278
26023 * tests/openpgp/default-key.test: Avoid 'grep -q'.
26024 * tests/openpgp/gpgtar.test: Avoid 'grep -qe' and 'diff -q'.
26025 * tests/openpgp/use-exact-key.test: Avoid 'grep -q'.
26027 2016-03-02 Justus Winter <justus@g10code.com>
26029 common: Consolidate Assuan server argument handling.
26030 + commit e77c85577d1bdd77ad3b81907145fd68f2653c01
26031 * common/Makefile.am (common_sources): Add new files.
26032 * common/server-help.c: New file.
26033 * common/server-help.h: Likewise.
26034 * agent/command.c: Drop argument handling primitives in favor of using
26035 the consolidated ones.
26036 * dirmngr/server.c: Likewise.
26037 * g10/server.c: Likewise.
26038 * g13/server.c: Likewise.
26039 * scd/command.c: Likewise.
26040 * sm/server.c: Likewise.
26042 2016-03-01 Justus Winter <justus@g10code.com>
26044 dirmngr: Add missing CFLAGS.
26045 + commit 9a1778abcae0a7afe33be8e02b6d9a909463cd54
26046 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
26047 'GPG_ERROR_CFLAGS'.
26048 (t_dns_stuff_CFLAGS): Likewise.
26050 tools: Drop superfluous include.
26051 + commit 3a1d142f9b71721a631cf2037665e9def60aa384
26052 * tools/gpgtar.c: Do not include unused 'npth.h'.
26054 2016-02-26 Werner Koch <wk@gnupg.org>
26056 gpg: Prettify a 2 octet hex output.
26057 + commit 2de0d41219a522e01f050d475b3ddecb9173fc7d
26058 * g10/sig-check.c (check_key_signature2): Wrap line and use %02x.
26060 2016-02-25 Neal H. Walfield <neal@g10code.com>
26062 gpg: Show debugging info if a sig with an unsupported sig class is used.
26063 + commit 87515e39295e4b7eaec1641c38e1ac32e8d39a91
26064 * g10/sig-check.c (check_key_signature2): If SIG->CLASS is
26065 unsupported, show some debugging information. Don't use BUG to fail.
26066 Just return GPG_ERR_BAD_SIGNATURE.
26068 gpg: More carefully encode a packet's length.
26069 + commit 960f5e26f2cda3ac6e6b30548fa808a690c39ffc
26070 * g10/build-packet.c (write_header2): Make sure the length bits are
26071 cleared. Fail if HDRLEN is set and the specified length can't be
26072 encoded in the available space.
26074 gpg: Avoid directly twiddling bits.
26075 + commit 105a5629c7e938ec7b3c9c338ebe7bdfee4cfdad
26076 * g10/build-packet.c (do_plaintext): Use ctb_new_format_p to check the
26078 (write_header2): Likewise.
26080 gpg: Add some asserts.
26081 + commit c9636a1acc952eb8e1355089bc2e229dece98165
26082 * g10/build-packet.c (ctb_new_format_p): New function.
26083 (ctb_pkttype): New function.
26084 (do_user_id): Add some asserts.
26085 (do_key): Likewise.
26086 (do_symkey_enc): Likewise.
26087 (do_pubkey_enc): Likewise.
26088 (do_plaintext): Likewise.
26089 (do_encrypted): Likewise.
26090 (do_encrypted_mdc): Likewise.
26091 (do_compressed): Likewise.
26092 (do_signature): Likewise.
26093 (do_signature): Likewise.
26094 (write_header2): Likewise.
26096 gpg: Avoid an unnecessary copy.
26097 + commit 512bc72e1f8544341529174142273d857f45540c
26098 * g10/build-packet.c (sig_to_notation): Avoid an unnecessary copy of
26099 the data: the size of the packet is fixed.
26101 2016-02-23 Neal H. Walfield <neal@g10code.com>
26103 common: Reduce buffer size.
26104 + commit 75861b663bbb37214143c2ff7b1b4d1d10ba2657
26105 * common/iobuf.c (iobuf_copy): Change buffer size from 1 MB to 32 KB.
26107 common: Improve a function's documentation and comments.
26108 + commit 14d27b2cadf9b0bb413f2b8bad2d81c1d370c2e7
26109 * common/iobuf.c (iobuf_set_partial_body_length_mode): Fix
26110 documentation and comment. Add an assert.
26112 common: Add log_assert.
26113 + commit f57a91afb69c58f9d8d9632801650f28c7dc1e0d
26114 * common/logging.h (log_assert): New macro.
26116 gpg: Use higher-level functions.
26117 + commit 33ac735a781325c4d47cdf6216813866ab93562e
26118 * g10/build-packet.c (do_symkey_enc): Use iobuf_write instead of
26119 iobuf_put in a loop. Use iobuf_copy instead of iobuf_read and
26120 iobuf_write in a loop. Move the memory wiping from here...
26121 * common/iobuf.c (iobuf_copy): ... to here.
26123 common: Check for an error before reading.
26124 + commit 8066f8a3470f9d2f3682a28641a7b09eca29a105
26125 * common/iobuf.c (iobuf_copy): If DEST has a pending error, don't
26128 common: More accurately name function.
26129 + commit 903466e124841cb29f518afa6b7706d490737ac3
26130 * common/iobuf.c (iobuf_set_partial_block_mode): Rename from this...
26131 (iobuf_set_partial_body_length_mode): ... to this. Update callers.
26133 2016-02-23 Werner Koch <wk@gnupg.org>
26135 g13: Add commands --suspend and --remove.
26136 + commit f7968db30b0e0ccae038e354568accb0a05d877c
26137 * g13/g13.c (aSuspend, aResume): New.
26138 (opts): Add commands --suspend and --resume.
26139 (main): Implement dummy command aUmount. Implement commands aResume
26141 * g13/sh-cmd.c (cmd_suspend): New.
26143 (register_commands): Add commands RESUME and SUSPEND.
26144 * g13/server.c (cmd_suspend): New.
26146 (register_commands): Add commands RESUME and SUSPEND.
26147 * g13/be-dmcrypt.c (be_dmcrypt_suspend_container): New.
26148 (be_dmcrypt_resume_container): New.
26149 * g13/backend.c (be_suspend_container): New.
26150 (be_resume_container): New.
26151 * g13/suspend.c, g13/suspend.h: New.
26152 * g13/mount.c (parse_header, read_keyblob_prefix, read_keyblob)
26153 (decrypt_keyblob, g13_is_container): Move to ...
26154 * g13/keyblob.c: new file.
26155 (keyblob_read): Rename to g13_keyblob_read and make global.
26156 (keyblob_decrypt): Rename to g13_keyblob_decrypt and make global.
26157 * g13/sh-dmcrypt.c (check_blockdev): Add arg expect_busy.
26158 (sh_dmcrypt_suspend_container): New.
26159 (sh_dmcrypt_resume_container): New.
26160 * g13/call-syshelp.c (call_syshelp_run_suspend): New.
26161 (call_syshelp_run_resume): New.
26163 g13: Run mount after dmsetup.
26164 + commit f26867928c451443769fecc41c3283e077e8c49f
26165 * g13/g13-syshelp.c (main): Reject userids with a slash.
26166 * g13/sh-dmcrypt.c (sh_dmcrypt_mount_container): Run mount if a
26167 mountpoint is known.
26169 2016-02-23 Justus Winter <justus@g10code.com>
26171 tests/openpgp: Qualify executables with extension.
26172 + commit ede0061febe5b2edde6a1a79d599e3c7c0faed5a
26173 * tests/openpgp/Makefile.am (required_pgms): Qualify executables with
26176 tests/openpgp: Reimplement 'pinentry.sh' in c.
26177 + commit 01dcc2cf2f2f00235ffa7d0718ecb468370980cc
26178 * tests/openpgp/Makefile.am: Build new program.
26179 * tests/openpgp/defs.inc: Use the new program.
26180 * tests/openpgp/fake-pinentry.c: New file.
26182 tests/openpgp: Avoid dependency on source files.
26183 + commit 785a7f463ec4e937304ce1263c5e6a46e8079137
26184 * tests/openpgp/plain-largeo.asc: New file.
26185 * tests/openpgp/version.test: Dearmor the new file instead of relying
26186 on the source being present.
26188 tests/openpgp: Fix file removal.
26189 + commit 629284120ff359b98a178b6cddf0e005e5f4db1a
26190 * tests/openpgp/version.test: Fix file removal.
26192 common/exechelp: Provide a way to wait for multiple processes.
26193 + commit 5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81
26194 * common/exechelp-posix.c (gnupg_wait_process): Generalize to
26195 'gnupg_wait_processes'.
26196 * common/exechelp-w32.c (gnupg_wait_process): Likewise.
26197 * common/exechelp-w32ce.c (gnupg_wait_process): New function stub.
26198 * common/exechelp.h (gnupg_wait_process): New prototype.
26200 common/exechelp: Add general pipe function.
26201 + commit 9f4a8d4ea173b4b4cb4d4f06b4004d43e2f4b97a
26202 * common/exechelp-posix.c (gnupg_create_pipe): New function.
26203 * common/exechelp-w32.c (INHERIT_{READ,WRITE,BOTH}): New macros.
26204 (create_inheritable_pipe): Generalize so that both ends can be
26206 (do_create_pipe): Rename argument accordingly.
26207 (gnupg_create_{in,out}bound_pipe): Use new flags.
26208 (gnupg_create_pipe): New function.
26209 (gnupg_spawn_process): Use new flags.
26210 * common/exechelp-w32ce.c (gnupg_create_pipe): New stub.
26211 * common/exechelp.h (gnupg_create_pipe): New prototype.
26213 common/exechelp: Mute the Windows version.
26214 + commit 54acc87c1e0b100accbfd02cfce59a897f2f0ce1
26215 * common/exechelp-w32.c (gnupg_wait_process): Do not print an error if
26216 the exit code can be returned. This makes the Windows version behave
26217 like the POSIX version.
26219 common/exechelp: Avoid magic numbers.
26220 + commit 709e2a7e9a3197e8ded4be0b05c138e8d5adbca6
26221 * common/exechelp-w32.c (do_create_pipe): Use symbolic names.
26223 common/exechelp: Disable debugging by default.
26224 + commit 5d8f7b16c8490d6951772fa98c1f075a952cc571
26225 * common/exechelp-w32.c (DEBUG_W32_SPAWN): Set to 0.
26227 common/exechelp: Fix handle leak.
26228 + commit dd670366d7aedb07e9420d1f8575197acfae1914
26229 * common/exechelp-w32.c (gnupg_spawn_process_detached): Close process
26232 common/exechelp: Fix opening the 'nul' device.
26233 + commit 8857590006266da200427f2d4f9e8c27fbc89ed9
26234 * common/exechelp-w32.c (gnupg_spawn_process): Fix opening the 'nul'
26237 common/exechelp: Fix error handling.
26238 + commit f5a4b6a3a39a2b78d33769184d6133d5e256e02c
26239 * common/exechelp-w32.c (gnupg_spawn_process): Close the right handle.
26241 common/exechelp: Fix pipe creation.
26242 + commit b0125ae9850973b89010517b1dbce04125a51d51
26243 * common/exechelp-w32.c (gnupg_spawn_process): Fix the creation of the
26246 tools/mk-tdata: Fix data generation on Windows.
26247 + commit 661ba477e01b796db161fa612b46c353393c6b10
26248 * tools/mk-tdata.c (main): Set stdout to binary mode to avoid newline
26251 2016-02-19 Neal H. Walfield <neal@g10code.com>
26253 gpg: Systematically detect and fix signatures that are out of order.
26254 + commit 2d1d795481bc011447284f8ce0a3ae96a08daf17
26255 * g10/keyedit.c (sig_comparison): New function.
26256 (fix_key_signature_order): Merge functionality into...
26257 (check_all_keysigs): ... this function. Rewrite to eliminate
26258 duplicates and use a systematic approach to detecting and moving
26259 signatures that are out of order instead of a heuristic.
26260 (fix_keyblock): Don't call fix_key_signature_order. Call
26261 check_all_keysigs instead after collapsing the uids.
26263 gpg: Split check_key_signature2.
26264 + commit 44cdb9d73f1a0b7d2c8483a119b9c4d6caabc1ec
26265 * g10/sig-check.c (hash_uid_node): Rename from this...
26266 (hash_uid_packet): ... to this. Take a PKT_user_id instead of a
26268 (check_key_signature2): Split the basic signature checking
26269 functionality into...
26270 (check_signature_over_key_or_uid): ... this new function.
26272 gpg: Split print_and_check_one_sig.
26273 + commit 5fbd80579aea0f75ca1d2700515c5b8747a75c7d
26274 * g10/keyedit.c (print_and_check_one_sig): Split the print
26275 functionality into...
26276 (print_one_sig): ... this new function.
26278 gpg: Split the function check_signature_end.
26279 + commit ac5aea95455372145f3f06df2b4c1584d759d660
26280 * g10/sig-check.c (check_signature_end): Break the basic signature
26282 (check_signature_end_simple): ... this new function.
26284 gpg: Use format_keyid rather than manually formatting the keyid.
26285 + commit 10671c3a4c18ea26035a5819a9f2b8fd6c7e41ea
26286 * g10/keyedit.c (menu_addrevoker): Use format_keyid rather than
26287 manually formatting the keyid.
26288 * g10/keygen.c (card_write_key_to_backup_file): Likewise.
26290 gpg: Initialize the primary key when generating a key.
26291 + commit bf9d1248c80205795e26156f67aff0b3f796cfce
26292 * g10/keygen.c (do_generate_keypair): Initialize
26293 pri_psk->flags.primary, pri_psk->keyid and pri_psk->main_keyid.
26295 gpg: Add accessor & utility functions for pk->keyid and pk->main_keyid.
26296 + commit c45633a571bf663bc7f3610fc481acded6acfc19
26297 * g10/keydb.h (keyid_cmp): New function.
26298 * g10/keyid.c (pk_keyid): New function.
26299 (pk_main_keyid): New function.
26300 (keyid_copy): New function.
26301 (pk_keyid_str): New function.
26302 * g10/packet.h (PKT_public_key): Update comments for main_keyid and
26305 2016-02-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
26307 gpgparsemail: Allow weirdly-mixed pkcs7 signatures.
26308 + commit 7e7f35a2d7d40267a4dd30791df77420efeebfa7
26309 * tools/gpgparsemail.c: Add and check info->signing_protocol_2.
26311 gpg: Clean up dangling agent_open and agent_closed declarations.
26312 + commit 813df2fe6656e55bea4d0be07cc964a140218412
26313 * g10/keydb.h: Remove agent_open, agent_close declarations/
26314 * g10/migrate.c: #include <unistd.h> for access()
26316 2016-02-16 Werner Koch <wk@gnupg.org>
26318 w32: Make scdaemon build again due to libusb problem.
26319 + commit e1ceff16765b0342531709cf97d03ef0158c29d5
26320 * configure.ac: Add hack to disable libusb for Windows. Also use
26321 $host instead of $target in the switch
26324 The new test for libusb does not support cross-compiling. As a quick
26325 workaround we disable libusb for Windows because we can't use it anyway.
26327 w32: Do not error out if gpgconf is not installed.
26328 + commit 44b02e1beb4f38f26551d932827d5317fddd27c2
26329 * common/homedir.c (check_portable_app): Remove error message.
26331 2016-02-16 Neal H. Walfield <neal@g10code.com>
26333 gpg: Make ASCII armor decoding more robust to encoding errors.
26334 + commit 2f02ed75a9671a7aae36968d5a1618f71b491325
26335 * g10/armor.c (radix64_read): If the = is followed by the string "3D",
26336 check if the following four characters are valid radix 64 and are
26337 followed by a new line. If so, warn and ignore the '3D'.
26339 2016-02-16 Werner Koch <wk@gnupg.org>
26341 doc: Add a gnupg-module-overview picture.
26342 + commit a1c11283af759c1045a8bb75815db325f415ded4
26343 * doc/gnupg-module-overview.svg: New.
26344 * doc/debugging.texi (Component interaction): New.
26345 * doc/Makefile.am (EXTRA_DIST): Add PNG and PDF versions of
26346 gnupg-module-overview.svg. Remove two eps files.
26347 (BUILT_SOURCES): Add gnupg-module-overview.pdf and .png. Remove
26348 gnupg-card-architecture.epsl
26349 (gnupg_TEXINFOS): Add gnupg-module-overview.svg
26351 (DISTCLEANFILES): Remove build eps files.
26353 2016-02-15 NIIBE Yutaka <gniibe@fsij.org>
26355 common, g10: Fix indentation to silence GCC-6.
26356 + commit ea9cfcfbf76de232221f31787c53d5f46361a9f0
26357 * common/iobuf.c (iobuf_ioctl): Fix.
26358 * g10/encrypt.c (encrypt_filter): Likewise.
26359 * g10/keyring.c (prepare_search): Likewise.
26361 dirmngr: fix for memory alignment.
26362 + commit 6fbe12a51e8fe2649ffe5a8a02aa93026a8f02cd
26363 * dirmngr/dns-stuff.c (get_dns_cert): Cast through void *.
26364 (getsrv, get_dns_cname): Make sure it's aligned for HEADER.
26366 2016-02-14 Werner Koch <wk@gnupg.org>
26368 gpg: Add hidden key-edit subcommand "change-usage".
26369 + commit 9b28b82e7c40d1eacc446d5932cd613c56378ed8
26370 * g10/keyedit.c (cmdCHANGEUSAGE): New.
26371 (cmds): Add command "change-usage".
26372 (keyedit_menu): Handle that command.
26373 (menu_changeusage): New.
26374 * g10/keygen.c (keygen_add_key_flags): New.
26375 (ask_key_flags): Add optional arg current.
26377 2016-02-14 Neal H. Walfield <neal@g10code.com>
26379 gpg: Improve API documentation.
26380 + commit 9663b088480cef6734a3c5892d5ddbbd60ecc1a4
26381 * g10/seskey.c (make_session_key): Improve documentation.
26382 (encode_session_key): Improve documentation.
26383 * g10/encrypt.c (encrypt_seskey): Remove gratuitous initialization.
26384 * g10/dek.h (DEK): Improve documenation.
26386 gpg: Fix calc_header_length when LEN is 0 and improve documentation.
26387 + commit 5cdde08ea869ef02111f618ad782d392a296eb7f
26388 * g10/build-packet.c (calc_header_length): Return the correct haeder
26389 size when LEN is 0. Fix documentation.
26391 gpg: Fix format_keyid when dynamically allocating the buffer.
26392 + commit c0268c449d0f3d23be5ec7b92fe92e7e078166cf
26393 * g10/keyid.c (format_keyid): Return a char *, not a const char *. If
26394 BUFFER is NULL, then set LEN to the static buffer's size.
26396 common: Fix comment.
26397 + commit ad43dc6cfc2b610a4e34fe55811bd937f9c3238b
26398 * common/iobuf.c (iobuf_flush_temp): Fix comment.
26400 2016-02-13 Werner Koch <wk@gnupg.org>
26402 g13: Require a confirmation before g13 is used for DM-Crypt.
26403 + commit 86f3bb144ad75461eb9b7ac1e59046ac75efccac
26404 * g13/g13-syshelp.c (g13_syshelp_i_know_what_i_am_doing):
26405 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Call it.
26406 (sh_dmcrypt_mount_container): Call it.
26408 g13: Second chunk of code to support dm-crypt.
26409 + commit b0e6ab1109d05fc664f46e17d721fe9b01d38115
26410 * g13/be-dmcrypt.c, g13/be-dmcrypt.h: New.
26411 * g13/Makefile.am (g13_SOURCES): Add them.
26412 * g13/backend.c: Include be-dmcrypt.h and call-syshelp.h.
26413 (no_such_backend): Rename to _no_such_backend and provide replacement
26415 (be_is_supported_conttype): Support DM-Crypt.
26416 (be_take_lock_for_create): Call set_segvice for DM-Crypt.
26417 (be_create_new_keys): Make it a dummy for DM-Crypt.
26418 (be_create_container): Call be_dmcrypt_create_container.
26419 (be_mount_container): call be_dmcrypt_mount_container.
26420 * g13/g13-syshelp.c (main): Enable verbose mode.
26421 * g13/g13tuple.c (get_tupledesc_data): New.
26422 * g13/g13tuple.h (unref_tupledesc): New.
26423 * g13/g13.h (server_control_): Add field "recipients".
26424 * g13/g13.c (main): Fix setting of recipients via cmdline.
26425 (g13_deinit_default_ctrl): Release recipients list.
26426 (g13_request_shutdown): New. Replace all direct update of
26427 shutdown_pending by calls this function.
26428 * g13/server.c (server_local_s): Remove field recipients which is now
26430 (reset_notify, cmd_recipient, cmd_create): Adjust for this change.
26431 * g13/create.c (encrypt_keyblob): Rename to g13_encrypt_keyblob.
26432 (g13_create_container): Support DM-Crypt.
26433 * g13/mount.c (parse_header): Allow for meta data copies.
26434 (g13_mount_container): Support DM-Crypt.
26435 * g13/sh-cmd.c (cmd_create): Make it work.
26437 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Make it work.
26438 (sh_dmcrypt_mount_container): New.
26440 g13: Improve dump_keyblob.
26441 + commit 13f745b50dc7031755faadb2d3476a6b6aafc739
26442 * g13/g13tuple.c: Include keyblob.h.
26443 (find_tuple_uint): Factor code out to ...
26444 (convert_uint): new.
26445 (all_printable): New.
26446 * g13/mount.c (dump_keyblob: Move and rename to ...
26447 * g13/g13tuple.c (dump_tupledesc): here. Revamp and pretyy print uint
26450 g13: Define 3 new tags.
26451 + commit 59fc3507d18072833559f227ecab8aa00cad9466
26452 * g13/keyblob.h (KEYBLOB_TAG_CONT_NSEC): New.
26453 (KEYBLOB_TAG_ENC_NSEC): New.
26454 (KEYBLOB_TAG_ENC_OFF): New.
26456 g13: Rename utils.c to g13tuple.c.
26457 + commit 82d12156ef5f948d44934ed44d79d24cc9e94366
26458 * g13/utils.c: Rename to g13tuple.c.
26459 * g13/utils.h: Rename to g13tuple.h. Change all users.
26460 * g13/Makefile.am: Adjust accordingly
26462 g13: Add functions to handle uint in a keyblob.
26463 + commit 4f152f3276b6d40d2568a27e74903dd18b41d752
26464 * g13/utils.c (append_tuple_uint): New.
26465 (find_tuple_uint): New.
26466 * g13/t-utils.c: New.
26467 * g13/Makefile.am (noinst_PROGRAMS, TESTS): New.
26468 (module_tests, t_common_ldadd): New.
26469 (t_utils_SOURCES, t_utils_LDADD): New.
26471 g13: Re-factor high level create code.
26472 + commit dc1dbc43a6bfb2f3e6a1cc2ca089e0318b3af0ed
26473 * g13/create.c (g13_create_container): Factor some code out to ...
26474 * g13/backend.c (be_take_lock_for_create): new.
26476 g13: Return an error for non-existing device.
26477 + commit 3087197008d2b12bf9f0d7d1f2aca500db816e7c
26478 * g13/sh-cmd.c (cmd_device): Set ERR.
26480 g13: Fix releasing of a syshelp context.
26481 + commit 6390beca54f55e8d36ff767b99ae9ff68b15f10e
26482 * g13/call-syshelp.c (call_syshelp_release): Allow a NULL arg.
26484 g13: Switch over to common/exectool.c.
26485 + commit c5d7045dafcfb569c11c90c04ea7a75328c80084
26486 * g13/sh-exectool.c: Remove. It has been replaced by common/exectool.c.
26487 * g13/Makefile.am (g13_syshelp_SOURCES): Remove sh-exectool.c
26488 * g13/sh-blockdev.c: Include exectool.h. Change sh_exec_tool to
26490 * g13/sh-dmcrypt.c: Ditto.
26492 common: Make gnupg_exec_tool conform to spec.
26493 + commit d19d6e1856c9a1acbf48e8b2e39b3d9171aa9f7f
26494 * common/exectool.c (gnupg_exec_tool): Allocate extra byte. Allow
26495 zero length read. Append hidden byte. Release memory on error.
26497 g13: First chunk of code to support dm-crypt.
26498 + commit 81494fd30d3815502247a721f50d9eadf86a73fa
26499 * g13/call-syshelp.c, g13/call-syshelp.h: New.
26500 * g13/g13-syshelp.c, g13/g13-syshelp.h: New.
26501 * g13/sh-cmd.c: New.
26502 * g13/sh-blockdev.c: New.
26503 * g13/sh-exectool.c: New.
26504 * g13/sh-dmcrypt.c: New.
26505 * g13/Makefile.am (sbin_PROGRAMS): Add g13-syshelp.c
26506 (g13_syshelp_SOURCES): New.
26507 (g13_syshelp_LDADD): New.
26509 * g13/g13.c (opts): Add option --type.
26510 (g13_deinit_default_ctrl): New.
26511 (main): Implement that option. Call g13_deinit_default_ctrl.
26512 * g13/g13.h (struct call_syshelp_s): New declaration.
26513 (server_control_s): Add field syshelp_local.
26514 * g13/keyblob.h (KEYBLOB_TAG_CREATED): New.
26515 (KEYBLOB_TAG_ALGOSTR): New.
26516 (KEYBLOB_TAG_HDRCOPY): New.
26517 * g13/backend.c (be_parse_conttype_name): New.
26518 (be_get_detached_name): Add CONTTYPE_DM_CRYPT.
26520 tests: Remove some harmless warnings in regression tests.
26521 + commit d711f5c7697cd4bc5dc6d9fd01706cabc771dad2
26522 * tests/openpgp/gpg-agent.conf.tmpl: Remove --use-standard-socket.
26524 2016-02-12 Neal H. Walfield <neal@g10code.com>
26526 common: Change simple_query to ignore status messages.
26527 + commit acac103ba5772ae738ce5409d17feab80596cde6
26528 * common/simple-pwquery.c (simple_query): Ignore status messages.
26530 2016-02-12 NIIBE Yutaka <gniibe@fsij.org>
26532 g10: Make sure to have the directory for trustdb.
26533 + commit d9f9b3be036747c9f55060aed47896f951bfb853
26534 * g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE. Check
26535 the directory and create it if none before calling take_write_lock.
26537 2016-02-02 Neal H. Walfield <neal@g10code.com>
26539 doc: Note that rngd can also be used to quickly generate insecure keys.
26540 + commit 75311cfe18071b94c66121a9785b133b6df345a3
26541 * doc/gpg-agent.texi (Agent Options): Add comment to the description
26542 of --debug-quick-random that rngd can also be used to quickly generate
26545 2016-01-27 Werner Koch <wk@gnupg.org>
26547 scd: Fix size_t/int mismatch in libusb.
26548 + commit 3d952a2fe5da9d84c20d3debdcc1e425b08781c6
26549 * scd/ccid-driver.c (bulk_in, abort_cmd, ccid_poll): Change msglen to
26552 scd: Fix detection of libusb.
26553 + commit 1b90b52a56b4f808ad29a7ef79aeafc03c7424b4
26554 * configure.ac (HAVE_LIBUSB): Clear if no header file was found.
26555 (LIBUSB_LIBS): Ditto.
26557 dirmngr: Build fix for FreeBSD (EAI macros)
26558 + commit 4d67144142f04184b835e50314eb21b882b9e00a
26559 * dirmngr/dns-stuff.c (map_eai_to_gpg_error): Map EAI_NODATA and
26560 EAI_ADDRFAMILY only if defined.
26562 2016-01-27 NIIBE Yutaka <gniibe@fsij.org>
26564 scd: Migrate to new API of libusb 1.0.
26565 + commit d0d97089706286fafd3c8ff56f3b5bf7ac07c6e0
26566 * configure.ac (LIBUSB_CPPFLAGS): New.
26567 * scd/Makefile.am (AM_CPPFLAGS): Add LIBUSB_CPPFLAGS.
26568 * scd/ccid-driver.c: Use libusb 1.0 API.
26570 2016-01-26 Werner Koch <wk@gnupg.org>
26573 + commit e9e5e83ec14459c2fc9060c54fc8e7381b541acd
26576 2016-01-26 Andre Heinecke <aheinecke@intevation.de>
26578 gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32.
26579 + commit 3e50236d4ecc3601b2641bf4273a0ff64bb5fdc4
26580 * common/utf8conv.c (wchar_to_utf8): Factor code out to ...
26581 (wchar_to_cp): new.
26582 (utf8_to_wchar): Factor code out to ...
26583 (cp_to_wchar): new.
26584 (wchar_to_native): New.
26585 (native_to_wchar): New.
26586 * tools/gpgtar-create.c (fillup_entry_w32): Use native_to_wchar.
26587 (scan_directory): Use wchar_to_native.
26589 2016-01-26 NIIBE Yutaka <gniibe@fsij.org>
26591 g10: Fix segfault on unsupported curve.
26592 + commit b8bb16c6c08d3c2947f1ff67419b36eb203c5c1a
26593 * g10/call-agent.c (learn_status_cb): Don't use NULL for strcmp.
26595 sm: small fix for GCC 6.
26596 + commit d33a34004bef028068538f099c32a0e292a004c3
26597 * sm/export.c (insert_duptable): Use unsigned 0.
26599 2016-01-25 Werner Koch <wk@gnupg.org>
26600 Daiki Ueno <ueno@gnu.org>
26602 gpg: Print PROGRESS status lines during key generation.
26603 + commit fbe1cf67aadc5a33cf815ddbcfc9669e43caa123
26604 * g10/call-agent.c (cache_nonce_status_cb): Rewrite by using
26605 has_leading_keyword. Handle PROGRESS lines.
26607 2016-01-25 Werner Koch <wk@gnupg.org>
26609 agent: Send PROGRESS status lines to the client.
26610 + commit ee87c653bf4b495714e8e6b024d0a8ace3a33452
26611 * agent/gpg-agent.c (struct progress_dispatch_s): New.
26612 (progress_dispatch_list): New.
26613 (main): Register libgcrypt pogress handler.
26614 (agent_libgcrypt_progress_cb): New.
26615 (agent_set_progress_cb): New.
26616 (unregister_progress_cb): New.
26617 (agent_deinit_default_ctrl): Call unregister.
26618 * agent/command.c (progress_cb): New.
26619 (start_command_handler): Register progress callback.
26621 speedo: Allow use of SHA-256 checksums.
26622 + commit 039a55716b8abd22ce23a96dce34cf2dc4be1862
26623 * build-aux/getswdb.sh: Add option --find-sha256sum.
26624 * build-aux/speedo.mk (libgpg_error_sha2): New var. Also for all
26627 (SETVARS, SETVARS_W64): Prefer sha256sum over sha1sum.
26628 (installer-from-source): Create swdb fragment.
26630 2016-01-22 Werner Koch <wk@gnupg.org>
26632 dirmngr: Indicate that serial numbers are hexadecimal.
26633 + commit 12c665b36cdc4b7189549698fc4cc1b3523b18f5
26634 * dirmngr/misc.c (hexify_data): Add arg with_prefix. Adjust all
26636 * dirmngr/crlcache.c (cache_isvalid): Print "0x" in front of the S/N.
26638 dirmngr: Provide the keyserver pool name even if there is no CNAME.
26639 + commit 77bceb2902dd489443073d91836ea54376c60bf6
26640 * dirmngr/ks-engine-hkp.c (map_host): Fix setting of r_poolname.
26642 2016-01-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
26645 dirmngr: Use sks-keyservers CA by default for the hkps pool.
26646 + commit afb8696126ff0babaab23e884ff5da008281e3b7
26647 * dirmngr/Makefile.am (dist_pkgdata_DATA): Add sks-keyservers.netCA.pem.
26648 * dirmngr/http.c (http_session_new): Add optional arg
26649 intended_hostname and set a default cert.
26650 * dirmngr/ks-engine-hkp.c (send_request): Pass httphost to
26653 2016-01-22 Werner Koch <wk@gnupg.org>
26655 gpg: Allow new user ids with only the mail address.
26656 + commit fc0c71dfe5ea8f1c683101948c23f5d2064ee4cd
26657 * g10/keygen.c (ask_user_id): Allow empty name.
26659 2016-01-21 Werner Koch <wk@gnupg.org>
26661 gpg: Improve header text of the auto-created revocations.
26662 + commit bb99b40bd1e624f58ca806ca16dc73d4d594a30a
26663 * g10/revoke.c (gen_standard_revoke): Improve header text for the
26664 file. Add info output.
26666 gpg: Make --auto-key-retrieve work with dirmngr configured server.
26667 + commit 09117e769a093467cb47154f36d7dda613313e33
26668 * g10/call-dirmngr.c (gpg_dirmngr_ks_list): Make R_KEYSERVER optional.
26669 * g10/keyserver.c (keyserver_any_configured): New.
26670 (keyserver_put): Remove arg keyserver because this will always receive
26671 opt.keyserver which is anyway used when connecting dirmngr. Do not
26672 check opt.keyserver.
26673 (keyserver_import_cert): Replace opt.keyserver by
26674 keyserver_any_configured.
26675 * g10/mainproc.c (check_sig_and_print): Ditto.
26676 * g10/import.c (revocation_present): Ditto.
26677 * g10/getkey.c (get_pubkey_byname): Ditto.
26678 * g10/gpgv.c (keyserver_any_configured): Add stub.
26679 * g10/test-stubs.c (keyserver_any_configured): Add stub.
26681 2016-01-20 Werner Koch <wk@gnupg.org>
26683 gpg: Silence message about ignoring revoked user ids.
26684 + commit bdb61351776c038d668310d9b5e5c32588ef6519
26685 * g10/trustdb.c (tdb_get_validity_core): Print message only in debug
26688 agent: New option --pinentry-timeout.
26689 + commit 499743387f4d07847a2842358bc54f9237e0c2a7
26690 * agent/gpg-agent.c (oPinentryTimeout): New.
26691 (opts): Add new option.
26692 (parse_rereadable_options): PArse that option.
26693 (main): Tell gpgconf about this option.
26694 * agent/call-pinentry.c (start_pinentry): Send option to Pinentry.
26695 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add Option.
26697 2016-01-19 Werner Koch <wk@gnupg.org>
26699 gpg: Streamline use of error messages in tofu.c.
26700 + commit cfa41890bb5ff306c07dad295136601fe47566a7
26701 * g10/tofu.c: Make use of print_further_info to reduce the number of
26702 different error messages to be translated. Also streamline some
26705 common: Add substitute code for libgpg-error < 1.22.
26706 + commit 8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f
26707 * common/util.h (GPG_ERR_DB_CORRUPTED): New.
26709 gpg: Add function print_further_info.
26710 + commit d96e76d15f61812b950b64a60bc47117785a9dac
26711 * g10/misc.c (print_further_info): New.
26713 2016-01-18 Werner Koch <wk@gnupg.org>
26715 g10: Improve strings printed by tofu.c.
26716 + commit 79778a8dd5f61a6b7abeeb44b75d82932db788b7
26717 * g10/tofu.c: Include ttyio.h. Change many strings to help
26718 translating. Make use of ngettext wehere needed.
26720 (TIME_AGO_UNIT_SMALL_NAME): Remove this and all similar *_NAME macros.
26721 (time_ago_unit): Remove.
26722 (get_trust): Use tty_prints and cpr_get only for the actual prompt.
26724 (show_statistics): Use two English strings for singular and plural.
26726 * po/POTFILES.in: Add tofu.c.
26728 gpg: Use "days" in "...newer than..." diagnostics.
26729 + commit 9309bda9581715d304305c8c5116f2cbb31aec77
26730 * g10/sig-check.c (check_signature_metadata_validity): Use days if
26733 Use ngettext for some strings.
26734 + commit 437965e5622612941ed0fa55584811c65069242e
26735 * scd/app-openpgp.c (build_enter_admin_pin_prompt): Use ngettext for
26737 (do_genkey): Ditto.
26738 * g10/keyedit.c (check_all_keysigs, menu_delsig, menu_clean): Ditto.
26739 * g10/keylist.c (print_signature_stats): Ditto.
26740 * g10/keyserver.c (keyserver_refresh): Ditto.
26741 * g10/sig-check.c (check_signature_metadata_validity): Ditto.
26742 * g10/sign.c (do_sign): Ditto.
26743 * g10/trustdb.c (reset_trust_records): Ditto.
26744 (validate_keys): Use a table like diagnostic output.
26746 2016-01-15 Werner Koch <wk@gnupg.org>
26748 kbx,w32: Use shorter retry intervals for keybox_file_rename.
26749 + commit 3cccd5a83b96e4558642dcdf5d974f64ebdb9817
26750 * kbx/keybox-util.c (keybox_file_rename): Restart retry intervals
26753 2016-01-14 Werner Koch <wk@gnupg.org>
26755 w32: Fix deadlock introduced by keybox_file_rename.
26756 + commit 663c5d129a8f400cc6eb8ab7b91772d6e578152d
26757 * g10/keyring.c (keyring_lock) [W32]: Flush the close cache before
26759 * kbx/keybox-init.c (keybox_lock) [W32]: Close the file before
26762 gpg: Detect race between pubring.gpg and pubring.kbx use.
26763 + commit 3b1248e007a6bf830a3230ee2d9cc548205ec31a
26764 * g10/keydb.c (maybe_create_keyring_or_box): Detect race condition.
26766 kbx: New function keybox_file_rename to replace rename.
26767 + commit 8241ed59d05e06252647b26477ed5c2f84895a26
26768 * kbx/keybox-util.c: Include windows.h.
26769 (keybox_file_rename): New.
26770 * kbx/keybox-update.c (rename_tmp_file): Replace remove+rename by
26771 keybox_file_rename.
26772 * g10/keyring.c (rename_tmp_file): Ditto.
26774 kbx: Add function keybox_tmp_names to avoid code duplication.
26775 + commit f5cceef115f0307664956d01c48b1b397fdad4b3
26776 * kbx/keybox-update.c (create_tmp_file): Move some code to...
26777 * kbx/keybox-util.c (keybox_tmp_names): new.
26778 * g10/keyring.c: Include keybox.h.
26779 (create_tmp_file): Replace parts by keybox_tmp_names.
26781 gpg: Make --list-options show-usage the default.
26782 + commit 360534bde770f4845669de223154216d249b954b
26783 * g10/gpg.c (main): Add LIST_SHOW_USAGE.
26785 2016-01-13 Werner Koch <wk@gnupg.org>
26787 kbx: Change return type of search functions to gpg_error_t.
26788 + commit c7ca0f73dbe7c080b79f93f90f00ba2396fc4bd0
26789 * kbx/keybox-search.c (keybox_search_reset): Change return type to
26791 (keybox_search): Ditto. Also handle GPG_ERR_EOF.
26792 * sm/keydb.c (keydb_search_reset): Ditto.
26794 gpg: Improve error code from lock_all.
26795 + commit 9b6c91469a804c60289a2ed21334dfd856c294bb
26796 * g10/keydb.c (lock_all): Do not clobber RC during failur cleanup.
26798 kbx: Improve and fix keybox_lock.
26799 + commit 8f1368d5e3f7654ad9cb100053535f728dff2344
26800 * kbx/keybox-init.c (keybox_lock): Make sure ERR is initialized. Get
26801 error codes from dotlock functions.
26803 common: Make sure dotlock functions set a proper ERRNO.
26804 + commit 4aceebf36f103eb380e21d12a1f08b7d6ea7cc8e
26805 * common/dotlock.c (map_w32_to_errno): New.
26806 (read_lockfile): Return a proper ERRNO.
26807 (dotlock_create_unix): Do not let log functions clobber ERRNO.
26808 (dotlock_take_unix): Ditto.
26809 (dotlock_release_unix): Ditto.
26810 (dotlock_create_w32): Set proper ERRNO.
26811 (dotlock_take_w32): Ditto.
26812 (dotlock_release_w32): Ditto.
26814 kbx: Implement keybox_lock for use by gpg.
26815 + commit 160862978628b07ed5150ec2c8abad6af1656bc3
26816 * kbx/keybox-defs.h: Include dotlock.h and logging.h.
26817 (CONST_KB_NAME): Remove. Replace usage by KB_NAME.
26818 (struct keybox_name): Add field "lockhd".
26819 * kbx/keybox-init.c (keybox_register_file): Init LOCKHD.
26820 (keybox_lock): Chnage to return gpg_error_t. Implement locking.
26822 gpg: Make sure to mark a duplicate registered keybox as primary.
26823 + commit 9dc355ad3ae0026ab04c424dc984d748b8fad393
26824 * kbx/keybox-init.c (keybox_register_file): Change interface to return
26825 the token even if the file has already been registered.
26826 * g10/keydb.c (primary_keyring): Rename to primary_keydb.
26827 (maybe_create_keyring_or_box): Change return type to gpg_error_t.
26828 (keydb_add_resource): Ditto. s/rc/err/.
26829 (keydb_add_resource): Mark an already registered as primary.
26830 * sm/keydb.c (maybe_create_keybox): Change return type to gpg_error_t.
26831 (keydb_add_resource): Ditto. s/rc/err/.
26832 (keydb_add_resource): Adjust for changed keybox_register_file.
26834 2016-01-13 NIIBE Yutaka <gniibe@fsij.org>
26836 Fix to support git worktree.
26837 + commit 96237b9a63a50aed1884cb06f84279b977d6a8fa
26838 * autogen.sh, Makefile.am, doc/Makefile.am: Use -e for testing .git.
26840 2016-01-12 Werner Koch <wk@gnupg.org>
26842 ssh: Accept OpenSSH *cert-v01 key variants.
26843 + commit e2f984b4afffaa89bdeba2f5d447b5681237177e
26844 * agent/command-ssh.c (SPEC_FLAG_WITH_CERT): New.
26845 (ssh_key_types): Add OpenSSH cert types.
26846 (stream_read_string): Allow a dummy read.
26847 (ssh_receive_mpint_list): Pass SPEC by reference.
26848 (ssh_receive_mpint_list): New arg CERT and use it.
26849 (ssh_receive_key): Read certificate into an estream object and modify
26850 parser to make use of that object.
26852 2016-01-12 NIIBE Yutaka <gniibe@fsij.org>
26854 common: Fix iobuf API of filter function for alignment.
26855 + commit 4b4639b0b04dc82c550fa711dd7193e13fc4a428
26856 * common/iobuf.h: Fix comment.
26858 common: Fix iobuf API of filter function for alignment.
26859 + commit 3f52c7da3940ec06572270d511000dc7fe9c27d2
26860 * common/iobuf.h (IOBUFCTRL_DESC): Change the call semantics.
26861 * common/iobuf.c (iobuf_desc): Add the second argument DESC.
26862 (print_chain, iobuf_close, do_open, iobuf_sockopen, iobuf_ioctl)
26863 (iobuf_push_filter2, pop_filter, iobuf_write_temp): Change calls
26865 (file_filter, file_es_filter, sock_filter, block_filter): Fill the
26867 * common/t-iobuf.c (every_other_filter, double_filter): Likewise.
26868 * g10/armor.c, g10/cipher.c, g10/compress-bz2.c, g10/compress.c,
26869 g10/decrypt-data.c, g10/encrypt.c, g10/mdfilter.c, g10/progress.c,
26870 g10/textfilter.c: Likewise.
26872 2016-01-11 Werner Koch <wk@gnupg.org>
26874 gpg: Fix NULL de-ref for ambiguous key check in --export-ssh-keys.
26875 + commit b280aa6423c9492e8c5a9afa57339d06d957996d
26876 * g10/getkey.c: Allow arg RET_KEYBLOCK to be NULL.
26878 2016-01-09 Werner Koch <wk@gnupg.org>
26880 tools: Remove gpgkey2ssh.
26881 + commit eb9c021631174fde4c1c444bbc533a7a46d570cd
26882 * tools/gpgkey2ssh.c: Remove.
26883 * tools/Makefile.am (bin_PROGRAMS): Ditto.
26885 2016-01-08 Werner Koch <wk@gnupg.org>
26887 gpg: Support ECDSA keys with --export-ssh-key.
26888 + commit b2da3951a395366bf1644bc4c4eb42d657effe17
26889 * g10/export.c (key_to_sshblob): Add hack for ECDSA.
26891 gpg: New command --export-ssh-key.
26892 + commit 4970868d8d84d3a64b067e5aafc9f097621758d3
26893 * g10/export.c: Include membuf.h and host2net.h.
26894 (key_to_sshblob): New.
26895 (export_ssh_key): New.
26896 * g10/gpg.c (aExportSshKey): New.
26897 (opts): Add command.
26898 (main): Implement that command.
26900 gpg: Add an exact search flag to the PK struct.
26901 + commit 34bca9cd4b8517795833cb754b0d5b1dd33b08ed
26902 * g10/getkey.c (merge_selfsigs_subkey): Clear exact flag.
26903 (finish_lookup): Set exact flag.
26904 * g10/packet.h (PKT_public_key): Add field flags.exact.
26906 Print warnings if old daemon versions are used.
26907 + commit 2aa42baaf3dd7c3ae613ae0c61760a17c8adfcd0
26908 * common/status.h (STATUS_WARNING): New.
26909 * g10/call-agent.c (warn_version_mismatch): New.
26910 (start_agent): Call warn function.
26911 * g10/call-dirmngr.c: Include status.h.
26912 (warn_version_mismatch): New.
26913 (create_context): Call warn function.
26914 * sm/call-agent.c (warn_version_mismatch): New.
26915 (start_agent): Call warn function.
26916 (gpgsm_agent_learn): Call warn function.
26917 * sm/call-dirmngr.c (warn_version_mismatch): New.
26918 (prepare_dirmngr): Call warn function.
26920 common: New function compare_version_strings.
26921 + commit 4d7ac43ff71fdadfd2e04621f74840a82fbe788a
26922 * common/stringhelp.c (parse_version_number): New.
26923 (parse_version_string): New.
26924 (compare_version_strings): New.
26925 * common/t-stringhelp.c (test_compare_version_strings): New.
26926 (main): Call test. Return ERRCOUNT instead of 0.
26928 common: New function get_assuan_server_version.
26929 + commit 496643291e1e346434e9c98405c5a370957eb7d3
26930 * common/asshelp.c: Include membuf.h.
26931 (get_assuan_server_version): New.
26932 * g10/call-agent.c (agent_get_version): Use new function.
26934 common: New put_membuf_cb to replace static membuf_data_cb.
26935 + commit 833ba5faa1340aff80a205acbb701d4ae1d594d0
26936 * common/membuf.c (put_membuf_cb): New.
26937 * agent/call-scd.c (membuf_data_cb): Remove. Change callers to use
26939 * common/get-passphrase.c (membuf_data_cb): Ditto.
26940 * g10/call-agent.c (membuf_data_cb): Ditto.
26941 * sm/call-agent.c (membuf_data_cb): Ditto.
26943 2016-01-07 Werner Koch <wk@gnupg.org>
26945 gpg: Return an error code from keygrip_from_pk.
26946 + commit 8fd406c317ad7c2e375ae4f7d20656dadf6d7fcc
26947 * g10/keyid.c (keygrip_from_pk): Return an error code.
26949 gpg: Avoid warnings about possible NULL deref.
26950 + commit 8a56a38387c10c02ba0790c655dd5c1d08e4a724
26951 * g10/getkey.c (cache_public_key): Protect deref of CE which actually
26953 * g10/keygen.c (quickgen_set_para): s/sprintf/snprintf/.
26954 * g10/tofu.c (end_transaction, rollback_transaction): Allow NULL for
26956 * g10/trustdb.c (update_min_ownertrust): Remove useless clearling of
26959 gpg: Fix warnings about useless assignments.
26960 + commit 008aa6e6d4b213c3a0d15509eb46cf168b6f2c94
26961 * g10/armor.c (parse_hash_header): Remove duplicate var assignment.
26962 * g10/getkey.c (cache_user_id): Ditto.
26963 * g10/keygen.c (ask_curve): Ditto. This also fixes a small memory
26966 * g10/keygen.c (proc_parameter_file): Remove useless assignment or
26968 (generate_keypair): Ditto.
26969 * g10/getkey.c (finish_lookup, lookup): Ditto.
26970 * g10/card-util.c (change_pin): Ditto.
26971 * g10/gpg.c (main) <aVerify>: Ditto.
26972 * g10/import.c (import): Ditto.
26973 (print_import_check): Ditto
26974 * g10/keyring.c (do_copy): Ditto.
26975 * g10/tdbio.c (tdbio_read_record): Ditto.
26976 * g10/trustdb.c (tdb_update_ownertrust): Ditto.
26977 (update_validity): Ditto.
26979 * g10/server.c (cmd_passwd): Remove useless call to skip_options.
26981 sm: Avoid warnings about useless assignments.
26982 + commit 126aebbb82667d160c8c4435898efeb3b43c4ec8
26983 * sm/call-dirmngr.c (prepare_dirmngr): Remove setting of ERR.
26984 (unhexify_fpr): Remove useless computation on N.
26985 * sm/certchain.c (do_validate_chain): Remove clearing of RC. Remove
26986 useless setting of RC.
26987 * sm/fingerprint.c (gpgsm_get_keygrip): Remove setting of RC.
26988 * sm/gpgsm.c (build_list): Replace final stpcpy by strcpy.
26989 * sm/keydb.c (keydb_clear_some_cert_flags): Remove clearing of RC.
26990 * sm/server.c (cmd_getauditlog): Comment unused skip_options.
26992 kbx: Avoid warnings about useless assignments.
26993 + commit 0de7d61437bd0bfbe645d5eed7a62df03129fb32
26994 * kbx/keybox-dump.c (_keybox_dump_blob): Remove setting of IN_RANGE
26995 and the last increment of P.
26997 gpg: Fix DNS cert lookup returning an URL.
26998 + commit a41638acf4808caa619f4f3f4c0dcd12be00d6f8
26999 * g10/call-dirmngr.c (dns_cert_status_cb): Store URL status in the URL
27000 param. The old code was entirely buggy (c+p error).
27002 2016-01-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
27004 Fix keystrlen to work when OPT.KEYID_FORMAT is KF_DEFAULT.
27005 + commit 2c3e67430d9b523c85c81ae562223fd51e3608cc
27006 * g10/keyid.c (keystrlen): If opt.keyid_format is KF_DEFAULT unset,
27007 default to KF_SHORT.
27008 (format_keyid): Default to KF_SHORT, not KF_0xLONG.
27010 2016-01-06 Werner Koch <wk@gnupg.org>
27012 gpg: Silence some regression tests.
27013 + commit c7389ae90fa4a70766400cc241ff6a45aa750324
27014 * g10/test.c (TEST): Print diagnostics only in verbose mode.
27016 gpg: Avoid using an uninitialized SALT on premature EOF.
27017 + commit 85cc7449fb00ac85b0c2eecd22bd38b23f33edf5
27018 * g10/parse-packet.c (parse_key): Check for premature end of salt.
27020 gpg: Silence warnings found by static analyzer.
27021 + commit 09accc0e3d74e6289bed40b5bfc6479981cabfe4
27022 * g10/keyedit.c (change_passphrase): Remove useless init of ANY.
27023 (keyedit_quick_adduid): Remove useless setting of ERR.
27024 * g10/parse-packet.c (parse_key): Remove PKTLEN from condition because
27025 it has been checked before the loop.
27026 (parse_plaintext): Remove useless init of PKTLEN.
27028 kbx: Avoid faulty fclose in an error case.
27029 + commit db82b6131d437bf6ba34db0e08b7dfa9edb11e45
27030 * kbx/keybox-update.c (blob_filecopy): Do not close an uninitialized
27031 file pointer after a failure to create a temp file.
27032 * kbx/keybox-openpgp.c (next_packet): Remove duplicate assignment of
27035 dirmngr: Silence one regression test.
27036 + commit 6deafb92abe100ff67e3a0a230a39e8c0ad41900
27037 * dirmngr/t-dns-stuff.c (main): Do not print info during standard
27040 common: Avoid warnings about useless assignments.
27041 + commit e64317c15e9960f3173d374e589f7c3565a4ad08
27042 * common/b64enc.c (b64enc_finish): Remove var assignment which is not
27044 * common/iobuf.c (file_filter): Ditto.
27045 * common/tlv.c (do_find_tlv): Ditto.
27046 * common/userids.c (classify_user_id): Ditto.
27048 tests: Use info and error instead of a plain echo.
27049 + commit 1fbfa1bf0a6ad0dc7ed67d12252643c2c6c7370a
27050 * tests/openpgp/4gb-packet.test: Use error and info.
27052 common: Do not deref vars in tests after a fail().
27053 + commit 0a00115ee2049ab2357b7a14a51c7da185ffcabd
27054 * common/t-convert.c (test_bin2hex): Turn if conditions into if-else
27055 chains to avoid accessing unchecked data.
27056 (test_bin2hexcolon): Ditto.
27057 * common/t-mapstrings.c (test_map_static_macro_string): Ditto.
27058 * common/t-stringhelp.c (test_percent_escape): Ditto.
27059 (test_make_filename_try): Ditto.
27060 (test_make_absfilename_try): Ditto.
27061 * common/t-timestuff.c (test_timegm): Ditto.
27063 2016-01-05 Werner Koch <wk@gnupg.org>
27065 gpg: Align notes about minimal keysize with actual checks.
27066 + commit e70f7a54f29d727def2cfe9ea5ab9d461b4ce842
27067 * g10/keygen.c (ask_keysize): Use 768 for the minimal value for DSA in
27068 export mode. Improve readability.
27070 2016-01-05 NIIBE Yutaka <gniibe@fsij.org>
27072 agent: Fix RSA verification for card.
27073 + commit ff3b607fc879b70665c187500022cc63e2a0cd86
27074 * agent/pksign.c (agent_pksign_do): Use S-exp of public key, instead
27077 2016-01-04 Neal H. Walfield <neal@g10code.com>
27079 gpg: Fix double free.
27080 + commit 575c15a090913d86cf8d75b2bc4471e371f234b9
27081 * g10/getkey.c (get_pubkeys): Fix double free.
27083 2015-12-24 NIIBE Yutaka <gniibe@fsij.org>
27085 agent: IMPORT_KEY with --force option fix.
27086 + commit 79b51bb8727bd3485229ac8ff5987558156d5d83
27087 * agent/cvt-openpgp.c (convert_from_openpgp_main): Add an option not
27088 to check existing key.
27089 (convert_from_openpgp): Ditto.
27090 (convert_from_openpgp_native): Call convert_from_openpgp_main with
27092 * agent/command.c (cmd_import_key): Call with dontcare_exist=force.
27094 g10: Use --force when importing key for bkuptocard.
27095 + commit 5ca57f1a697e875bae5a5c73f1a580c42ca75343
27096 * g10/call-agent.c (agent_import_key): Add an argument FORCE.
27097 * g10/import.c (transfer_secret_keys): Likewise.
27098 (import_secret_one): Call transfer_secret_keys with FORCE=0.
27099 * g10/keyedit.c (keyedit_menu): Call with FORCE=1.
27101 g10: Remove subcommand checkbkupkey for --key-edit.
27102 + commit 44aee35e69540510617aea4b886ef845590960fe
27103 * g10/keyedit.c (keyedit_menu): Remove cmdCHECKBKUPKEY support.
27105 g10: Allow relative path for specifying the file for bkuptocard.
27106 + commit ee433d2b00c93b5a4e4ed54b9fb5806361df1b71
27107 * g10/keyedit.c (keyedit_menu): Assume the file is under GNUPGHOME.
27108 Also support tilda expansion.
27110 g10: fix regression of bkuptocard subcommand in --edit-key.
27111 + commit 40959add1ba0efc1f4aa87fa075fa42423eff73c
27112 * g10/keyedit.c (keyedit_menu): Call transfer_secret_keys.
27113 * g10/import.c (transfer_secret_keys): Make it global function.
27116 agent: Support --force option for IMPORT_KEY.
27117 + commit e684c634df814b12d399dcdc375c35d3e9a137af
27118 * agent/command.c (cmd_keywrap_key): New option --force.
27120 2015-12-23 Werner Koch <wk@gnupg.org>
27122 gpg: Rename struct pubkey to pukey_s and add pubkey_t.
27123 + commit a9cbdcfd9c364557787f4a173cc59f14c067946e
27124 * g10/keydb.h (struct pubkey): Rename to pubkey_s.
27125 (pubkey_t): New. Change all struct pubkey_s to use this type.
27126 * g10/getkey.c (get_pubkeys): Rename arg keys to r_keys.
27128 gpg: Simplify status message code from commit b30c15bf.
27129 + commit 363ed2e892adc97fae97111bb56b64f9f809e8d5
27130 * g10/keygen.c (card_write_key_to_backup_file): Simplify by using
27133 gpg: Add standard free() semantic to pubkey_free.
27134 + commit 04c9cddda95f2a8ca5c0cf10bb3dd6accf56cf45
27135 * g10/getkey.c (pubkey_free): Check for NULL arg.
27137 gpg: Fix use of assert from commit dc417bf0.
27138 + commit ef7b7e91600f35b4d682a6267001a8d30f0fa49f
27139 * g10/keydb.c (keydb_update_keyblock): De-ref after the assert. Use
27142 gpg: Do not translate debug output.
27143 + commit b0c9867fb74d5a00335e6606d5bdcc5342ce26cd
27144 * g10/getkey.c (parse_def_secret_key): Do not make strings passed to
27145 log_debug translatable.
27147 2015-12-23 NIIBE Yutaka <gniibe@fsij.org>
27149 scd: Fix commit b30c15bf (again).
27150 + commit aecf1a3c57ca8bf8050a3743b62fe142ccf9eb22
27151 * g10/keygen.c (do_generate_keypair): Clear the variable S.
27153 2015-12-22 Neal H. Walfield <neal@g10code.com>
27156 + commit 5c759924fb92b6de7ab3baed7871e5114ebd2505
27157 * g10/keygen.c (card_write_key_to_backup_file): Change n to a size_t.
27159 gpg: Fix error message.
27160 + commit 4654384fe7a4dcee113dacf27c398b13dea5d0be
27161 * g10/getkey.c (parse_def_secret_key): Fix error message.
27163 gpg: Don't check for ambiguous keys.
27164 + commit 7195b94345b0bb937477dc47fc5ec27fb108a099
27165 * g10/gpg.c (struct result): Move from here...
27166 * g10/keydb.h (struct pubkey): ... to here. Update users.
27167 * g10/gpg.c (check_user_ids): Move from here...
27168 * g10/getkey.c (get_pubkeys): ... to here. Update users. Use
27169 get_pubkey_byname to look up the keys (this also prunes invalid keys).
27170 (pubkey_free): New function.
27171 (pubkeys_free): New function.
27172 * g10/gpg.c (main): Don't check for ambiguous key specifications.
27174 gpg: Lazily evaluate --default-key.
27175 + commit dc52995d85048ed12ae8b9f330e9ca41a4030aae
27176 * g10/gpg.c (main): If --encrypt-to-default-key is specified, don't
27177 add --default-key's value to REMUSR here...
27178 * g10/pkclist.c (build_pk_list): ... do it here.
27179 * tests/openpgp/Makefile.am (TESTS): Add default-key.test.
27180 * tests/openpgp/default-key.test: New file.
27182 gpg: Remove unused parameter.
27183 + commit ffe0b7a6dd6bfaec62f81f511b3caf08978bb269
27184 * g10/pkclist.c (build_pk_list): Remove parameter use, which is always
27185 called set to PUBKEY_USAGE_ENC. Update callers.
27187 gpg: Improve check for ambiguous keys.
27188 + commit 4103850c2e51274984f69443dee34295cbb8c282
27189 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
27190 encryption-only keys when a signing key is needed and vice-versa.
27192 gpg: Fix TOCTTOU when updating keyblocks.
27193 + commit dc417bf0c555a7416d0aedde6645fd1087660f92
27194 * g10/keydb.c (keydb_update_keyblock): Don't replace the record at the
27195 current offset. After taking the lock, extract the fingerprint from
27196 the keyblock, find it and then replace it.
27198 Only add the user supplied CFLAGS after running any autoconf tests.
27199 + commit 02eb9fc9d5863abcfed6af704e618f8cac7cc2e8
27200 * configure.ac: Only add the user supplied CFLAGS after running any
27203 gpg: Suppress a warning.
27204 + commit 1cceba163b17b5e9fd7c89e5b40e3d7e1cffc885
27205 * dirmngr/dns-stuff.c (enable_dns_tormode): Reference new_circuit to
27206 avoid a warning when ADNS is not available.
27208 gpg: Remove dead code.
27209 + commit 4143cc1c3783c54a6f733f08a4739e4e5fb0c8b3
27210 * kbx/keybox-defs.h (struct keybox_found_s): Remove unused fields
27211 offset and n_packets.
27213 gpg: Display the key that is invalid, not the search description.
27214 + commit 7fe4be0416cdc9269011bc4213b8a22d6ced295c
27215 * g10/getkey.c (parse_def_secret_key): Display the key that is
27216 invalid, not the search description.
27218 gpg: Mark more options as coming from the config file (when this holds)
27219 + commit 478ca6c75bbf529f95974224dfb7d71bd5860a96
27220 * g10/gpg.c (main): When --default-key or --encrypt-to-default-key is
27221 taken from the config file, note this.
27223 gpg: Use enums instead of defines.
27224 + commit ee8a8ec1cf4605e5af427f9c8b01b3609c82cbe7
27225 * g10/keydb.h (PK_LIST_ENCRYPT_TO): Change from a macro to an enum.
27226 (PK_LIST_HIDDEN): Likewise.
27227 (PK_LIST_CONFIG): Likewise.
27228 (PK_LIST_SHIFT): Likewise.n
27230 2015-12-21 NIIBE Yutaka <gniibe@fsij.org>
27232 po: Update Japanese translation.
27233 + commit d8392299f311f8cfcf8bc02679dd3ae7ef8cc6d7
27236 g10: clean up of headers for card.
27237 + commit ab9a9bce77d014159c68460f5a7c263fb72f3c1c
27238 * g10/main.h (save_unprotected_key_to_card): Remove.
27239 * g10/options.h (ctapi_driver, pcsc_driver, disable_ccid): Remove.
27241 2015-12-21 Werner Koch <wk@gnupg.org>
27243 common: New file fwddecl.h.
27244 + commit 98f9e14323bf806f674b3cc259e19ef6219b4378
27245 * common/util.h (server_control_s, ctrl_t): Move to ...
27246 * common/fwddecl.h: New file.
27247 * common/call-gpg.h: Replace typedef by fwddecl.h. Change include
27248 protection macro name.
27249 * common/Makefile.am (common_sources): Add fwddecl.h.
27251 2015-12-18 Werner Koch <wk@gnupg.org>
27253 build: Add required macro for pkg-config.
27254 + commit af142854a73567836a0ca44ad62900469c23d531
27255 * configure.ac (PKG_PROG_PKG_CONFIG): New.
27257 2015-12-18 NIIBE Yutaka <gniibe@fsij.org>
27259 g10: Remove deprecated internal functions.
27260 + commit 72eaff1aa610f3c89a755f212760157e1932d847
27261 * g10/keygen.c (do_ask_passphrase, generate_raw_key)
27262 (gen_card_key_with_backup, save_unprotected_key_to_card): Remove.
27264 g10: Fix a regression for generating card key with backup.
27265 + commit b30c15bf7c5336c4abb1f9dcd974cd77ba6c61a7
27266 * g10/main.h (receive_seckey_from_agent): Declare.
27267 * g10/keygen.c (card_write_key_to_backup_file): New.
27268 (card_store_key_with_backup): New.
27269 (do_generate_keypair): Create a key on host for encryption key when
27270 backup is requested. Then, call card_store_key_with_backup.
27272 2015-12-17 NIIBE Yutaka <gniibe@fsij.org>
27274 g10: factor out a function for secret key retrieval.
27275 + commit e644aa7f5943174e3f7ba9408af71531fd125a0b
27276 * g10/export.c (receive_seckey_from_agent): New.
27277 (do_export_stream): Use it.
27279 2015-12-16 Neal H. Walfield <neal@g10code.com>
27281 gpg: When checking for ambiguous keys, ignore invalid keys.
27282 + commit fc010b6c7fe14e609734e448775fa384421bdef1
27283 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
27284 disabled, revoked and expired keys (if appropriate for the provided
27287 2015-12-15 Werner Koch <wk@gnupg.org>
27289 common: Use default_errsource for call-gpg and exectool.
27290 + commit 4ffe44c5874ed655d82adfa7a85439fab91cde03
27291 * common/call-gpg.c (my_error_from_syserror, my_error_from_errno): New.
27292 Use these wrappers.
27293 * common/exectool.c (my_error_from_syserror): New. Use these
27296 gpg: Reduce number of strings to translate.
27297 + commit 345ec7323d643528d2f904765708b5ecfe51f57b
27298 * g10/getkey.c (parse_def_secret_key): Do not make debug messages
27299 translatable. Make use of print_reported_error.
27301 gpg: New function to printed a detailed error code.
27302 + commit 2ea1aebc924c3f0b2269f83cb1b80c75d9fa069c
27303 * g10/misc.c (print_reported_error): New.
27305 2015-12-15 Neal H. Walfield <neal@g10code.com>
27307 gpg: Improve the keyblock cache's transparency.
27308 + commit f369efd6712148dc7ed40dba6d1ff5b0e169431a
27309 * kbx/keybox-search.c (keybox_seek): New function.
27310 * g10/keydb.c (keydb_search): When reading from the cache, seek to
27311 just after the cached record.
27313 gpg: Improve the keyblock cache's transparency.
27314 + commit 2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41
27315 * kbx/keybox-search.c (keybox_offset): New function.
27316 * g10/keydb.c (struct keyblock_cache): Add fields resource and offset.
27317 (keyblock_cache_clear): Reset HD->KEYBLOCK_CACHE.RESOURCE and
27318 HD->KEYBLOCK_CACHE.OFFSET.
27319 (keydb_search): Don't use the cached result if it comes before the
27320 current file position. When caching an entry, also record the
27321 position at which it was found.
27323 gpg: Use more descriptive names.
27324 + commit 0ea186db645da2b51a7e71f46793d447f2de5e3d
27325 * g10/keyring.c (KR_NAME): Rename this...
27326 (KR_RESOURCE): ... to this. Update users.
27327 (struct keyring_name): Rename this...
27328 (struct keyring_resource): ... to this. Update users.
27329 (struct off_item): Rename this...
27330 (struct key_present): ... to this. Update users.
27331 (OffsetHashTable): Rename this...
27332 (key_present_hash_t): ... to this. Update users.
27333 (kr_offtbl): Rename this...
27334 (key_present_hash): ... to this. Update users.
27335 (kr_offtbl_ready): Rename this...
27336 (key_present_hash_ready): ... to this. Update users.
27337 (KEY_PRESENT_HASH_BUCKETS): New define. Replace use of literals
27339 (new_offset_item): Rename this...
27340 (key_present_value_new): ... to this. Update users.
27341 (release_offset_items): Drop dead code.
27342 (new_offset_hash_table): Rename this...
27343 (key_present_hash_new): ... to this. Update users.
27344 (release_offset_hash_table): Drop dead code.
27345 (lookup_offset_hash_table): Rename this...
27346 (key_present_hash_lookup): ... to this. Update users.
27347 (update_offset_hash_table): Rename this...
27348 (key_present_hash_update): ... to this. Drop unused parameter off.
27350 (update_offset_hash_table_from_kb): Rename this...
27351 (key_present_hash_update_from_kb): ... to this. Drop unused parameter
27354 2015-12-15 NIIBE Yutaka <gniibe@fsij.org>
27356 sm: Handle gcry_pk_encrypt return value.
27357 + commit 4ee881bff4c8fdfa4b3b7a4b7afab611471e97f1
27358 * sm/encrypt.c (encrypt_dek): Don't ignore failure of gcry_pk_encrypt.
27360 2015-12-14 Werner Koch <wk@gnupg.org>
27362 common: Change license of isascii.c to all-premissive,
27363 + commit 7baca033070e7811f75e2021100adf8e6a48907f
27364 * common/isascii.c: Change.
27366 common: Change license of some modules to LGPLv3+/GPLv2+.
27367 + commit 7d129a7391115ff1d6a3541078a37a630ab7819f
27368 * common/status.c: Change from GPLv3 to LGPLv3+/GPLv2+.
27369 * common/status.h: Ditto.
27370 * common/yesno.c: Ditto.
27371 * common/common-defs.h: Ditto.
27372 * common/gettime.h: Ditto.
27373 * common/keyserver.h: Ditto.
27375 common: Change license for exectool to LGPLv3+/GPLv2+.
27376 + commit 467e18b74b4790dcbdf3c816206d2fbaf170a12a
27377 * common/exectool.c, common/exectool.h: Change license.
27379 common: Rename sh-exectool to exectool.
27380 + commit d80e1bc430bf64debdb6b08f0b7e5c42836781fa
27381 * common/sh-exectool.c: Rename to exectool.c.
27382 * common/sh-exectool.h: Rename to exectool.h.
27383 * common/Makefile.am (common_sources): Adjust for rename.
27384 * common/exectool.c (sh_exec_tool_stream): Rename to
27385 gnupg_exec-tool-stream.
27386 (sh_exec_tool): Rename to gnupg_exec_tool.
27387 * tools/gpgtar-create.c (gpgtar_create): Adjust for changes.
27388 * tools/gpgtar-extract.c: Adjust for changes.
27389 * tools/gpgtar-list.c: Adjust for changes.
27391 2015-12-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
27393 gpg: Print ownertrust in TOFU+PGP trust model.
27394 + commit f5aa51aaacfe13ab9528aa9b88d8ce8eb61362fc
27395 * g10/keyedit.c: Print ownertrust in TOFU+PGP trust model.
27397 2015-12-14 Neal H. Walfield <neal@g10code.com>
27399 gpg: Fix --default-key checks.
27400 + commit e573e6188dada4d70f6897aa2fda3c3af8c50441
27401 * g10/getkey.c (parse_def_secret_key): Don't just check if a secret
27402 key is available for the public key, also consider subkeys. Also
27403 check that the key has the signing capability, is not revoked, is not
27404 expired and is not disabled. Print a warning if there was a least one
27405 value passed to --default-key and all were ignored.
27407 2015-12-14 NIIBE Yutaka <gniibe@fsij.org>
27409 scd: Fix regression for generating RSA keys on card.
27410 + commit d40975cbe8ff86fcc4a1b4963fdffc66ddee85ce
27411 * scd/app-openpgp.c (do_genkey): Strip leading zeros for fingerprint
27414 2015-12-12 Werner Koch <wk@gnupg.org>
27416 gpg: Use a regular type instead of a void* for import stats.
27417 + commit 4d3395ef1fcde0b8c454c09956863959d590ede6
27418 * g10/import.c (struct stats_s): Rename to import_stats_s. Change all
27420 * g10/main.h (import_stats_t): New. Change fucntions to use this
27421 instead of a void pointer.
27423 Remove replacements for libgpg-error < 1.21.
27424 + commit f0ae40b0c901e5f5c04c6ed5b2ab96ab7340b2bd
27425 * common/util.h: Remove replacement macros for libgpg-error<1.21.
27426 * common/types.h: Ditto.
27427 * common/mischelp.h: Ditto.
27428 * common/t-mapstrings.c: Include t-support.h before stringhelp.h
27429 * common/t-stringhelp.c: Ditto.
27430 * common/t-support.h: Always include gpg-error.h.
27431 * kbx/keybox-search.c: Do not include stringhelp.h so that keybox-defs
27434 2015-12-11 Neal H. Walfield <neal@g10code.com>
27436 gpg: Fix buffer overflow.
27437 + commit 1605e34fc365edd473aac15c9b4e5aadc1d95cf5
27438 * g10/keydb.c (keydb_search_desc_dump): Fix buffer overflow.
27440 2015-12-11 Justus Winter <justus@g10code.com>
27442 agent: Improve error handling.
27443 + commit 25f0f053cd306200a6211b5cf397838a59835ee7
27444 * agent/pksign.c (agent_pksign_do): Improve error handling.
27446 Fix required libgpg-error version.
27447 + commit d6e01493cad6ff32f356185c7a2d2b5c2b86a937
27448 * configure.ac (NEED_GPG_ERROR_VERSION): We need version 1.21 for the
27451 2015-12-11 Neal H. Walfield <neal@g10code.com>
27453 gpg: Don't error out if a key occurs multiple times in the keyring.
27454 + commit 6dc37c5fb60acbfd5ba2ab979852383eac8944e0
27455 * g10/gpg.c (check_user_ids): Don't error out if a key occurs multiple
27456 times in the keyring. Instead, print a warning. When printing out
27457 fingerprint prints, use format_hexfingerprint to format them.
27459 2015-12-10 Daniel Hoffend <dh@dotlan.net>
27461 scd: Fix removal of unplugged usb readers on Windows.
27462 + commit d1a97585c5e73fbc7d4cf90e38f76ffc5aea305f
27463 * scd/apdu.c (pcsc_error_to_sw): map PCSC_E_NO_SERVICE and
27464 PCSC_E_SERVICE_STOPPED to the internal SW_HOST_NO_READER error code.
27466 2015-12-07 Justus Winter <justus@g10code.com>
27468 tests: Add some more gpgtar tests.
27469 + commit 1c8eae95a8b3b89bc0f49cb5f4938101634583dc
27470 * tests/openpgp/gpgtar.test: Add more tests.
27472 dirmngr: Initialize http status code.
27473 + commit 71726b627dcff015dc12568021b31d8ccede788a
27474 * dirmngr/ks-action.c (ks_action_search): Initialize 'http_status' as
27475 it is unused if LDAP is used to search for keys.
27477 2015-12-04 Daiki Ueno <ueno@gnu.org>
27479 gpg: Write ERROR status on delete-key cancellation.
27480 + commit b5cd68852d0e3485c9e13a8ddb70f05f36a65cb9
27481 * g10/delkey.c (do_delete_key): Write ERROR status code with the error
27482 location "delete_key.secret", when the user cancelled the operation on
27485 2015-12-04 Justus Winter <justus@g10code.com>
27487 dirmngr: Stricter handling of http error codes.
27488 + commit 6d64ef869dfbcb7aaa802b80ed648393147e40d8
27489 * dirmngr/ks-action.c (ks_action_search): Only retry if the keyserver
27490 responded with a '404 Not Found'.
27491 * dirmngr/ks-engine-hkp.c (send_request): Return http status code.
27492 (ks_hkp_search): Likewise.
27493 (ks_hkp_{get,put}): Adapt call to 'send_request'.
27494 * dirmngr/ks-engine.h (ks_hkp_search): Update prototype.
27496 dirmngr: Really search all keyservers for patterns.
27497 + commit 6ac57a482f7ae02db1bee4e4b861288fc6905adc
27498 * dirmngr/ks-action.c (ks_action_search): Search all configured
27499 keyservers for the given patterns.
27501 dirmngr: Handle http status '501 Not Implemented'.
27502 + commit a8308ba5231682ce7c7d591a17e7e940fbd63189
27503 * dirmngr/ks-engine-hkp.c (send_request): Handle status 501 and return
27504 GPG_ERR_NOT_IMPLEMENTED.
27506 tools/gpgtar: Implement symmetric encryption.
27507 + commit 582e684a48eb4f3716cecf7dc73eb93046efcfad
27508 * tests/openpgp/gpgtar.test: Add test case.
27509 * tools/gpgtar-create.c (gpgtar_create): Pass '--symmetric' flag to
27511 * tools/gpgtar.c (parse_arguments): We do handle the argument now.
27513 tools/gpgtar: Implement signing.
27514 + commit 45c814f348c89acd8d21d0607ffcf68e5c5c399e
27515 * tests/openpgp/gpgtar.test: Test signing.
27516 * tools/gpgtar-create.c (gpgtar_create): Add 'sign' option, add the
27517 appropriate gpg arguments to implement signing and selecting the local
27519 * tools/gpgtar.c (parse_options): We do handle '--local-user' now.
27520 (main): Handle signing, encrypting, and doing both when creating an
27522 * tools/gpgtar.h (gpgtar_create): Update prototype.
27524 tools/gpgtar: Use the new exectool helper.
27525 + commit 0c0dafd8e89bb702e856c661c1561e10cdcaf37f
27526 * tools/Makefile.am: gpgtar now requires neither npth nor libassuan.
27527 * tools/gpgtar-create.c (gpgtar_create): Use the new 'sh-exectool'
27529 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
27530 * tools/gpgtar-list.c (gpgtar_list): Likewise.
27531 * tools/gpgtar.c (main): Set default gpg program. Drop the
27532 initialization of npth and libassuan.
27534 common: Add a stream interface to 'sh-exectool'.
27535 + commit a81aca6e1c2a4529d416d1989f15d7338d2ee81e
27536 * common/sh-exectool.c (struct copy_buffer): Add infrastructure for
27537 copying between streams.
27538 (copy_buffer_{init,shred,do_copy,flush}): New functions.
27539 (sh_exec_tool_stream): Rework 'sh_exec_tool' to operate on streams.
27540 (nop_free): New function.
27541 (sh_exec_tool): Express this in terms of 'sh_exec_tool_stream'.
27542 * common/sh-exectool.h (sh_exec_tool_stream): New prototype.
27544 common: Add header file and build the new code.
27545 + commit d955cb5e0700c6d2b6b26cb210b5a176d22d4235
27546 * common/Makefile.am (common_sources): Add new files.
27547 * common/sh-exectool.h: New file.
27549 2015-12-04 Werner Koch <wk@gnupg.org>
27551 common: Add code to execute a helper.
27552 + commit 2ae07f826aa551db8adf714158fce962790a6b54
27553 * common/sh-exectool.c: New file.
27556 + commit 9fadfdb3109f7ea42aaaa9d745b64c6c90cb8233
27559 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
27561 po: Japanese translation.
27562 + commit 762fcc027b0b4cc88c1f633804de619273d6a8b9
27565 2015-12-04 Werner Koch <wk@gnupg.org>
27567 speedo,w32: Improve installer.
27568 + commit 0fe3614d9afe42ecf80bbc932366ceeaba0a0ecc
27569 * build-aux/speedo/w32/inst.nsi (SEC_gnupg): Install dirmngr.conf and
27571 (un.gnupglast): Stop dirmngr.
27573 gpg: Do not pre-check keys given on the command line.
27574 + commit 28311d1fa56bfbd801103a8475597459132874f4
27575 * g10/keydb.h (PK_LIST_ENCRYPT_TO, PK_LIST_HIDDEN, PK_LIST_CONFIG)
27576 (PK_LIST_SHIFT): New.
27577 * g10/pkclist.c (build_pk_list): Use them here.
27578 * g10/gpg.c (check_user_ids, main): Ditto.
27580 * g10/gpg.c (main): Set PK_LIST_CONFIG for REMUSR and LOCUSR.
27581 (check_user_ids): Skip check for command line specified options.
27583 dirmngr: Add command to print the resolver version.
27584 + commit 4ff2cae7dee36ffee854c5f05c3e8ee9eb0308dd
27585 * dirmngr/server.c (cmd_getinfo): Add sub-command "dnsinfo".
27587 gpg: Allow "help" as value for --tofu-policy.
27588 + commit 59f6192cb766612ad215bc6a3af13d5b137139e4
27589 * g10/gpg.c (parse_tofu_policy): Add keyword "help".
27590 (parse_tofu_db_format): Ditto.
27592 Do not translate messages printed with log_debug.
27593 + commit 218a52787a87be6b7481a39f87d212d6ef594e97
27594 * common/asshelp.c (start_new_gpg_agent): Do not i18n string.
27595 (start_new_dirmngr): Ditto.
27596 * g10/mainproc.c (proc_encrypted): Ditto. Print only if debug is
27599 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
27601 scd: Fix for removing the prefix.
27602 + commit f03976f1101f539a2782cd9e87d640fc32a022db
27603 * scd/app-openopg.c (do_decipher): Fix the condition.
27605 scd: Simplify saving application context.
27606 + commit 9639af5f16a7ed908cbce2415330b9fcd88edc90
27607 * scd/app.c (lock_table): Remove LAST_APP field.
27608 (lock_reader, app_dump_state, application_notify_card_reset)
27609 (release_application): Follow the change.
27610 (check_conflict): New.
27611 (check_application_conflict): Lock the slot and call check_conflict.
27612 (select_application): Call check_conflict and not use LAST_APP.
27614 scd: More fix for Curve25519 prefix handling.
27615 + commit f747adfa21551e083bc947540c64c94a96dcc059
27616 * scd/app-openpgp.c (do_decipher): Handle trancated cipher text.
27617 Also fix xfree bug introduced.
27619 2015-12-03 Werner Koch <wk@gnupg.org>
27621 scd: Another fix for Curve25519 prefix handling.
27622 + commit e28f2e7a2f265af8bbdb4979e9679b4396dccdd5
27623 * scd/app-openpgp.c (do_decipher): Check 0x02 also for 16+1 byte long
27625 (do_decipher): Fix integer arithmetic in void pointer.
27626 (do_decipher): Add missing memcpy.
27628 build: Avoid dependecy problems in "make distcheck".
27629 + commit 0f61599ed0bd1cc6842067d040bb58ec0a451715
27630 * doc/Makefile.am (gnupg.texi): Depend on defs.inc.
27632 build: Change how caller provided CFLAGS are used by configure.
27633 + commit 4e9957250eee3521dc979912a4818e58ffddc5b8
27634 * configure.ac: Append instead of prepend caller provided CFLAGS.
27636 gpg: Add variant of 'key "%s" not found: %s' error message.
27637 + commit 5e2c5e9ec5b75fae886e1294adbdb7ad2ac12827
27638 * g10/gpg.c (check_user_ids): Change error message.
27639 * g10/delkey.c (do_delete_key): Ditto.
27641 gpg: Make keyidlist more robust in case of errors.
27642 + commit 50a568e7380752454c029eac2b57d8803b1cb287
27643 * g10/keyserver.c (keyidlist): Clear *KLIST on error.
27645 gpg: Take care of keydb_new returning NULL.
27646 + commit a28ac99efead8be73ea1704abe1611ccc4811c54
27647 * g10/keydb.c (keydb_new): Print an error message if needed. Also use
27648 xtrycalloc because we return an error anyway.
27649 * g10/delkey.c (do_delete_key): Handle error retruned by keydb_new.
27650 * g10/export.c (do_export_stream): Ditto.
27651 * g10/getkey.c (get_pubkey): Ditto.
27652 (get_pubkey_fast): Ditto.
27653 (get_pubkeyblock): Ditto.
27654 (get_seckey): Ditto.
27655 (key_byname): Ditto.
27656 (get_pubkey_byfprint): Ditto.
27657 (get_pubkey_byfprint_fast): Ditto.
27658 (parse_def_secret_key): Ditto.
27659 (have_secret_key_with_kid): Ditto.
27660 * g10/import.c (import_one): Ditto.
27661 (import_revoke_cert): Ditto.
27662 * g10/keyedit.c (keyedit_quick_adduid): Ditto.
27663 * g10/keygen.c (quick_generate_keypair): Ditto.
27664 (do_generate_keypair): Ditto.
27665 * g10/trustdb.c (validate_keys): Ditto.
27666 * g10/keyserver.c (keyidlist): Ditto.
27667 * g10/revoke.c (gen_desig_revoke): Ditto.
27668 (gen_revoke): Ditto.
27669 * g10/gpg.c (check_user_ids): Ditto.
27670 (main): Do not print an error message for keydb_new error.
27671 * g10/keylist.c (list_all): Use actual error code returned by
27674 * g10/t-keydb-get-keyblock.c (do_test): Abort on keydb_new error.
27675 * g10/t-keydb.c (do_test): Ditto.
27677 * g10/keyring.c (keyring_new): Actually return an error so that the
27678 existing keydb_new error checking makes sense for a keyring resource.
27679 (keyring_rebuild_cache): Take care of keyring_new returning an error.
27681 gpg: Change some error messages.
27682 + commit 9fcc047d921bde95b6807325b7fd2b697e89907f
27683 * g10/getkey.c (parse_def_secret_key): Change error message. Replace
27684 log_debug by log_info.
27685 * g10/gpg.c (check_user_ids): Make function static. Change error
27687 (main): Change error messages.
27688 * g10/revoke.c (gen_revoke): Ditto.
27690 2015-12-03 NIIBE Yutaka <gniibe@fsij.org>
27692 scd: Fix "Conflicting usage" bug.
27693 + commit f42c50dbf00c2e6298ca6830cbe6d36805fa54a3
27694 * scd/apdu.c (apdu_close_reader): Call CLOSE_READER method even if we
27695 got an error from apdu_disconnect.
27696 * scd/app-common.h (no_reuse): Remove.
27697 * scd/app.c (application_notify_card_reset): Deallocate APP here.
27698 (select_application, release_application): Don't use NO_REUSE.
27700 scd: Fix for Curve25519 prefix handling.
27701 + commit 11b2691eddc42e91651e4f95dd2731255a3e9211
27702 * scd/app-openpgp.c (do_decipher): More condition for AES decipher.
27703 Handle the prefix in cipher text. Always add the prefix in result.
27705 2015-12-03 Neal H. Walfield <neal@g10code.com>
27707 gpg: Use the matching key if the search description is exact.
27708 + commit cedbd4709eed6fead9d1b271f96860c00547c77c
27709 * g10/gpg.c (check_user_ids): If the search description is for an
27710 exact match (a keyid or fingerprint that ends in '!'), then use the
27711 matching key, not the primary key.
27712 * tests/openpgp/Makefile.am (TESTS): Add use-exact-key.test.
27713 (priv_keys): Add privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc,
27714 privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc,
27715 privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc,
27716 privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc and
27717 privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc.
27719 samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc.
27720 * tests/openpgp/privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc:
27722 * tests/openpgp/privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc:
27724 * tests/openpgp/privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc:
27726 * tests/openpgp/privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc:
27728 * tests/openpgp/privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc:
27730 * tests/openpgp/samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc:
27732 * tests/openpgp/use-exact-key.test: New file.
27733 * tests/openpgp/version.test: Install the new private keys.
27735 2015-12-02 Werner Koch <wk@gnupg.org>
27737 build: Require at least Libassuan 2.4.1.
27738 + commit 69db3285e4612ad24462149a4d64cc32c090a491
27739 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.4.1.
27740 * agent/gpg-agent.c (create_server_socket): Remove check for
27741 libassuan >= 2.3.0 and >= 2.1.4.
27742 (main): Remove check for libassuan >= 2.1.4.
27743 * scd/scdaemon.c (create_server_socket): Remove check for
27744 libassuan >= 2.1.4.
27745 * dirmngr/dirmngr.c (set_tor_mode): Remove check for
27746 libassuan >= 2.3.0.
27747 * dirmngr/http.c (http_raw_connect, send_request): Remove checks for
27748 libassuan >= 2.3.0.
27750 2015-12-02 Neal H. Walfield <neal@g10code.com>
27752 gpg: Improve documentation.
27753 + commit 28195f8d27aa0fc9daf5b74fb24de87c36e04739
27754 * g10/tofu.c (initdb): Improve documentation.
27756 gpg: Fix type mismatch resulting in a buffer overflow.
27757 + commit c73d75103cbd34975e2bd28e9924caee05eaf829
27758 * g10/tofu.c (record_binding): Change policy_old's type from an enum
27759 tofu_policy to a long: this variable is passed by reference and a long
27762 2015-12-02 Werner Koch <wk@gnupg.org>
27764 dirmngr: Switch to an onion address if Tor is running.
27765 + commit 28e2513721ff0cec920564d4087f3600cce8672e
27766 * dirmngr/dirmngr.h (opt): Turn field 'keyserver' into an strlist.
27767 * dirmngr/dirmngr.c (parse_rereadable_options): Allow multiple
27768 --keyserver options.
27769 * dirmngr/server.c (server_local_s): Add field 'tor_state'.
27770 (release_uri_item_list): New.
27771 (release_ctrl_keyservers): Use it.
27772 (start_command_handler): Release list of keyservers.
27773 (is_tor_running): New.
27774 (cmd_getinfo): Re-implement "tor" subcommand using new fucntion.
27775 (ensure_keyserver): Rewrite.
27776 * g10/dirmngr-conf.skel: Add two keyserver options.
27778 http: Enhance parser to detect .onion addresses.
27779 + commit 17ac843871d5f350f26edff0187f94ced923f534
27780 * dirmngr/http.h (parsed_uri_s): Add flag 'onion'.
27781 * dirmngr/http.c (do_parse_uri): Set that flag.
27782 * dirmngr/t-http.c (main): Print flags.
27784 2015-12-02 Neal H. Walfield <neal@g10code.com>
27786 common,gpg: Fix processing of search descriptions ending in '!'.
27787 + commit 10cca02c4c70eee993d4df0a1d20ae841992efe9
27788 * g10/gpg.c (check_user_ids): If the search description describes a
27789 keyid or fingerprint and ends in a '!', include the '!' in the
27790 rewritten description.
27791 * common/userids.c (classify_user_id): Accept keyids and fingerprints
27794 2015-12-01 Justus Winter <justus@g10code.com>
27796 dirmngr: Improve error handling.
27797 + commit 9c34711539fc2c34aea8da0fd49ae6aa28991518
27798 * dirmngr/dns-stuff.c (getsrv): Avoid looking at 'header' before
27799 checking for errors, but silently ignore errors when looking up SRV
27802 2015-12-01 Werner Koch <wk@gnupg.org>
27804 build: Let configure show the the status of Tor support.
27805 + commit 3be12d1e1b8334fb2bba307ec9efbc004f1dbf8d
27806 * configure.ac (show_tor_support): New
27808 2015-11-30 Werner Koch <wk@gnupg.org>
27810 doc: Make make distcheck work again.
27811 + commit 4ecb5db804003c10c57bdc0dc7f1d9649c5ba6f8
27812 * doc/Makefile.am (DISTCLEANFILES): Add gpgkey2ssh.1
27814 yat2m: Add keyword @url.
27815 + commit b4756a54a55fcd51717c149e19191a2eeaa6a919
27816 * doc/yat2m.c (proc_texi_cmd): Add keyword @url.
27818 doc: Build man pages with the same date as the info files.
27819 + commit 081c902f16a2f251df4593f090b3978dfa473a26
27820 * doc/Makefile.am (yat2m-stamp): Use option --date.
27822 yat2m: New option --date.
27823 + commit 75eb071354d1f862bac09c56c8ab81dae8883270
27824 * doc/yat2m.c (opt_date): new.
27825 (isodatestring): Use it if set.
27826 (main): New option --date.
27828 2015-11-27 Werner Koch <wk@gnupg.org>
27830 gpg: Avoid extra translation strings.
27831 + commit 686f31c3d5aee0d2825265869ae92ca95cdcabae
27832 * g10/keyedit.c (menu_expire): Use only one prompt.
27834 kbx: Include gpg-error prior to mischelp.h.
27835 + commit 436a154ea85e4dffbde7c3b316fbfca1b066aa2a
27836 * kbx/keybox-init.c: Change order of includes.
27838 gpg,w32: Fix a format string error.
27839 + commit 7c856f99144b84ac30e0c9a192f09dc36d93190a
27840 * g10/keyring.c (keyring_search): Fix format string for off_t.
27842 Silence compiler warnings related to not using assuan_fd_t.
27843 + commit 501436ab0f9d8e7d56b2f5e344006be5f5a3c653
27844 * common/call-gpg.c (start_gpg): Use assuan_fd_t. Note that the
27845 declaration was already fixed by a previous change.
27846 * dirmngr/server.c (cmd_getinfo): Use assuan_fd_t.
27848 Avoid incompatible pointer assignment warnings on Windows.
27849 + commit 64e87083394d38998feab359caac917bcc6139d3
27850 * common/logging.c (fun_writer): Use gpgrt_ssize_t instead of ssize_t.
27851 * dirmngr/server.c (data_line_cookie_write): Ditto.
27852 * sm/certdump.c (format_name_writer): Ditto.
27853 * sm/server.c (data_line_cookie_write): Ditto.
27854 * dirmngr/http.c (cookie_read, cookie_write): Ditto.
27856 dirmngr: Avoid a declarations after statements.
27857 + commit 100f34e869df899a695f5e5ef1b8e092baf91751
27858 * tools/gpgtar.c (parse_arguments): Use a block for a local varibale
27861 dirmngr: Avoid casting away a const from an char**.
27862 + commit 6501741d2c1beb8060198a39a1aa950cb11b386f
27863 * dirmngr/ldap.c (start_cert_fetch_ldap): Do not use pointers from
27866 dirmngr: Allow testing for a running Tor via "getinfo tor".
27867 + commit da5a232199ef93be219e933a7eaf4ccfc6d24d61
27868 * dirmngr/server.c (cmd_getinfo): Print an S line if Tor is not
27871 2015-11-26 Werner Koch <wk@gnupg.org>
27873 g13: Fix commit 1a045b13.
27874 + commit 82f6abb4807c89388052ab442368d9e09fb84aea
27875 * g13/g13.c (main): Use existsing function.
27877 common: Fix off-by-one access in the new format_text.
27878 + commit 61941a984964308b09c7fc1b3438fb99d0b3c917
27879 * common/stringhelp.c (format_text): Use existsing fucntion to trim
27880 trailing spaces. Fix off-by-one access.
27882 dirmngr: Improve output of "getinfo tor".
27883 + commit d226e67856e7197c581dcd2cef0f1e687bee0ac9
27884 * dirmngr/server.c (cmd_getinfo): Print a message along with OK.
27886 dirmngr: Let Libassuan employ nPth wrappers for connect.
27887 + commit f95cff1cc9e7a4d9f6b7c45188ec47e70f9874dc
27888 * dirmngr/http.c (my_unprotect, my_protect): Remove.
27889 (connect_server): Do not use these wrappers.
27891 2015-11-26 Justus Winter <justus@g10code.com>
27893 tools/gpgtar: Add '--dry-run'.
27894 + commit 676b2d7081291f7e47a66755ab07af259fea130b
27895 * tools/gpgtar-extract.c (extract_{regular,directory}): Honor
27897 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
27898 (opts): Add '--dry-run'.
27899 (parse_arguments): Handle '--dry-run'.
27900 * tools/gpgtar.h (opt): Add field 'dry_run'.
27902 tools/gpgtar: Handle '--gpg-args'.
27903 + commit 69a8440f44fa025e33a4cc32d17695c9ac385043
27904 * tools/gpgtar-create.c (gpgtar_create): Use given arguments.
27905 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
27906 * tools/gpgtar-list.c (gpgtar_list): Likewise.
27907 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
27908 (opts): Add 'gpg-args'.
27909 (parse_arguments): Handle arguments.
27910 * tools/gpgtar.h (opt): Add field 'gpg_arguments'.
27911 * tests/openpgp/gpgtar.test: Simplify accordingly.
27913 common: Make the GPG arguments configurable in call-gpg.
27914 + commit 1a045b1324efabe7423a8d00245f01718ed72556
27915 * common/call-gpg.c (start_gpg): Add parameter 'gpg_arguments'.
27916 (_gpg_encrypt, gpg_encrypt_blob, gpg_encrypt_stream): Likewise.
27917 (_gpg_decrypt, gpg_decrypt_blob, gpg_decrypt_stream): Likewise.
27918 * common/call-gpg.h: Adapt prototypes.
27919 * g13/create.c (encrypt_keyblob): Adapt callsite.
27920 * g13/g13-common.h (opt): Add field 'gpg_arguments'.
27921 * g13/g13.c (main): Construct default arguments.
27922 * g13/mount.c (decrypt_keyblob): Adapt callsite.
27923 * tools/gpgtar-create.c (gpgtar_create): Likewise.
27924 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
27925 * tools/gpgtar-list.c (gpgtar_list): Likewise.
27927 tools/gpgtar: Handle '--tar-args' for compatibility with gpg-zip.
27928 + commit 2eb3248058330dd5c37560d9887db5b5266c54fe
27929 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
27930 (opts): Add new group for tar options, rearrange a little, add
27932 (tar_opts): New variable.
27933 (shell_parse_stringlist): New function.
27934 (shell_parse_argv): Likewise.
27935 (parse_arguments): Add option argument, handle '--tar-args'.
27936 (main): Fix invokation of 'parse_arguments'.
27937 * tests/openpgp/gpgtar.test: Simplify decryption.
27939 tools/gpgtar: Rework argument parsing.
27940 + commit 35c0c8b211bc891335e822379b33ea34fbc1f84f
27941 * tools/gpgtar.c (main): Move argument parsing into its own function.
27943 2015-11-25 Justus Winter <justus@g10code.com>
27945 tests: Add tests for gpgtar and gpg-zip.
27946 + commit 556e8c44267fe3b829ca06286e9b5637ca1a6a73
27947 * tests/openpgp/Makefile.am (TESTS): Add new file.
27948 * tests/openpgp/gpgtar.test: New file.
27950 tools/gpgtar: Handle '--directory' argument.
27951 + commit 127aba9a4d6c1aabb4a18a74b16d3bddc6eb5c54
27952 * tools/gpgtar-extract.c (gpgtar_extract): Only generate a directory
27953 name if none is given via arguments.
27954 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
27955 (opts): Add argument.
27956 (main): Parse argument.
27957 * tools/gpgtar.h (opt): New field 'directory'.
27959 tools/gpgtar: Handle '--gpg' argument.
27960 + commit 89e104eb38c3a6896892ff09db11cb1bae2bb0d3
27961 * tools/gpgtar-create.c (gpgtar_create): Use given gpg program.
27962 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
27963 * tools/gpgtar-list.c (gpgtar_list): Likewise.
27964 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
27965 (opts): Add argument.
27966 (main): Handle argument.
27967 * tools/gpgtar.h (opt): Add field 'gpg_program'.
27969 tools/gpgtar: Improve error handling.
27970 + commit f76fb047c15914ba44dc9423d235484758bcd721
27971 * tools/gpgtar-create.c (gpgtar_create): Return an error code, fix
27973 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
27974 * tools/gpgtar-list.c (read_header): Return an error code.
27975 (gpgtar_list): Return an error code, fix error handling.
27976 (gpgtar_read_header): Return an error code.
27977 * tools/gpgtar.c: Add missing include.
27978 (main): Print an generic error message if a command failed and no
27979 error has been printed yet.
27980 * tools/gpgtar.h (gpgtar_{create,extract,list,read_header}): Fix the
27981 prototypes accordingly.
27983 tools: Add encryption and decryption support to gpgtar.
27984 + commit 40dbee86f3043aff8a8c2055521e270318e33068
27985 * tools/Makefile.am: Amend CFLAGS and LDADD.
27986 * tools/gpgtar-create.c (gpgtar_create): Add encrypt flag and encrypt
27987 stream if requested.
27988 * tools/gpgtar-extract.c (gpgtar_extract): Likewise for decryption.
27989 * tools/gpgtar-list.c (gpgtar_list): Likewise.
27990 * tools/gpgtar.c (main): Initialize npth and assuan. Parse recipient
27991 and local user, and note which flags are currently ignored. Adapt
27992 calls to gpgtar_list and friends.
27993 (tar_and_encrypt): Drop stub function and prototype.
27994 (decrypt_and_untar): Likewise.
27995 (decrypt_and_list): Likewise.
27996 * tools/gpgtar.h (gpgtar_{create,extract,list}): Add encryption or
27997 decryption argument.
27999 common: Add stream interface to call-pgp.
28000 + commit 03bf88f32c8d203d5b3bfbbc48cc45e6c08cc187
28001 * common/call-gpg.c (struct writer_thread_parms): Add field 'stream'.
28002 (writer_thread_main): Support reading from a stream.
28003 (start_writer): Add stream argument.
28004 (struct reader_thread_parms): Add field 'stream'.
28005 (reader_thread_main): Support writing to a stream.
28006 (start_reader): Add stream argument.
28007 (_gpg_encrypt): Add stream api.
28008 (gpg_encrypt_blob): Adapt accordingly.
28009 (gpg_encrypt_stream): New function.
28010 (_gpg_decrypt): Add stream api.
28011 (gpg_decrypt_blob): Adapt accordingly.
28012 (gpg_decrypt_stream): New function.
28013 * common/call-gpg.h (gpg_encrypt_stream): New prototype.
28014 (gpg_decrypt_stream): Likewise.
28016 common: Refactor the call-gpg code.
28017 + commit cb18d802308bde4e28219417bb4d107a4c0001b4
28018 * common/call-gpg.c (gpg_{en,de}crypt_blob): Move most of the code
28019 into two new functions, _gpg_encrypt and _gpg_decrypt.
28021 g13: Move 'call-gpg.c' to common.
28022 + commit ba1a5cc17d43d9cba32447876f06a8ab8f97e5ae
28023 * common/Makefile.am (common_sources): Add files.
28024 * g13/call-gpg.c: Move to 'common' and adapt slightly. Add a
28025 parameter to let callees override the gpg program to execute.
28026 * g13/call-gpg.h: Likewise.
28027 * g13/Makefile.am (g13_SOURCES): Drop files.
28028 * g13/create.c (encrypt_keyblob): Hand in the gpg program to execute.
28029 * g13/mount.c (decrypt_keyblob): Likewise.
28031 2015-11-24 Neal H. Walfield <neal@g10code.com>
28033 gpg: When comparing keyids, use the keyid, not the fingerprint's suffix.
28034 + commit e9c16fee2576c772de9d4fb5d53fee28e4b84202
28035 * g10/keyedit.c (menu_select_key): Use spacep and hexdigitp instead of
28036 inline tests. Don't compare P to the suffix of the fingerprint. If P
28037 appears to be a keyid, do an exact compare against the keyid. If it
28038 appears to be a fingerprint, do an exact compare against the
28041 2015-11-23 Neal H. Walfield <neal@g10code.com>
28043 gpg: Reflow long texts.
28044 + commit 19362a8dd7ee986c082a5afc5a446f939991ec0f
28045 * common/stringhelp.c (format_text): New function.
28046 * common/t-stringhelp.c (stresc): New function.
28047 (test_format_text): New function. Test format_text.
28048 * g10/tofu.c (get_trust): Use format_text to reflow long texts.
28049 (show_statistics): Likewise.
28051 common: Extend utf8_charcount to include the string's length.
28052 + commit 5b84b0d660c8329e184d98682665aaea7e1703d2
28053 * common/stringhelp.c (utf8_charcount): Take additional parameter,
28054 len. Process at most LEN bytes.
28056 2015-11-23 Justus Winter <justus@g10code.com>
28058 dirmngr: Fix http lookups when libadns is used.
28059 + commit b75e1b3d8b1643640d046f7f8e89adf5b1caa7a3
28060 * dirmngr/dns-stuff.c (resolve_name_adns): Fill in the port.
28062 dirmngr: Fix SRV record lookups when using the system resolver.
28063 + commit 946faaff04f3340ed6db9e89c5036dc5f9beca6a
28064 * dirmngr/dns-stuff.c (getsrv): Fix error handling.
28066 dirmngr: Honor ports specified in SRV records.
28067 + commit 73c1a86ad937d7be027eece991c69aaeb6a1f092
28068 * dirmngr/ks-engine-hkp.c (struct hostinfo_s): New field 'port'.
28069 (create_new_hostinfo): Initialize 'port'.
28070 (add_host): Add host parameter and update the hosttable entry.
28071 (map_host): Return port if known, adjust calls to 'add_host'.
28072 (make_host_part): Let 'map_host' specify the port if known.
28074 dirmngr: Support hkp server pools using SRV records.
28075 + commit c9f5aa15793b3c05c1b92af401b23ab34d3e6196
28076 * dirmngr/ks-engine-hkp.c (map_host): Handle SRV records.
28078 dirmngr: Refactor 'map_host'.
28079 + commit 3f52f6bcacfe3877d30a21464e93e9240bc75085
28080 * dirmngr/ks-engine-hkp.c (add_host): New function.
28081 (map_host): Use the new function.
28083 dirmngr: Fix pool detection.
28084 + commit 23ea641ba2a063cc99c82869061703d48bc674b2
28085 * dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.
28087 dirmngr: Refactor 'map_host'.
28088 + commit 2b43a0515868b8720009e48d7a1f32d571767f14
28089 * dirmngr/ks-engine-hkp.c (arecords_is_pool): New function.
28090 (map_host): Use the new function.
28092 dirmngr: Start dirmngr on demand.
28093 + commit a9e0b1dd6c106e243e3fbbaa1838b56a1f1c8584
28094 * common/asshelp.h: Include 'util.h'.
28095 * dirmngr/dirmngr-client.c (main): Use 'start_new_dirmngr' to connect
28097 (start_dirmngr): Drop now unused declaration and function.
28099 2015-11-23 Neal H. Walfield <neal@g10code.com>
28101 gpg: If sqlite is not available, don't build things depending on it.
28102 + commit 770c06ed4e6c1097d6e305a0a9427c3c783b787c
28103 * configure.ac: Define the automake conditional SQLITE3.
28104 * tests/openpgp/Makefile.am (TESTS): Move the sqlite3 dependent tests
28106 (sqlite3_dependent_tests): ... this new variable. If SQLITE3 is not
28107 defined, then clear this variable.
28109 gpg: Allow updating the expiration time of multiple subkeys at once.
28110 + commit b64b33bb80a8cf5dcc1fdbc62023d019fe2c8cb1
28111 * g10/keyedit.c (menu_expire): Allow updating the expiration time of
28112 multiple subkeys at once.
28114 gpg: Don't crash if key is not passed an argument.
28115 + commit 19f099463c82c119288a05eaefc42bf09d617377
28116 * g10/keyedit.c (menu_select_key): Don't crash if P is NULL.
28118 2015-11-20 Neal H. Walfield <neal@g10code.com>
28120 gpg: Fail if the search description passed to --gen-revoke is ambiguous.
28121 + commit 178af9c3f56d385fe28a9e5e8bde0ab34c0b260e
28122 * g10/revoke.c (gen_revoke): Error out if the search description is
28125 gpg: Refactor print_seckey_info.
28126 + commit f8a65ac96b27a0963892892ce6e93b37b8df1ad7
28127 * g10/keylist.c (print_seckey_info): Break formatting functionality
28129 (format_seckey_info): ... this new function.
28131 gpg: Improve an error message.
28132 + commit 46e128d44a0456dc603bc9e25a4c5d8da903b078
28133 * g10/revoke.c (gen_revoke): Provide a more descriptive error message
28134 if searching for a key fails.
28136 2015-11-19 Justus Winter <justus@g10code.com>
28138 dirmngr: Improve error handling.
28139 + commit 6b14df5525777ee0330a34a7b335359f562616a4
28140 * dirmngr/crlcache.c (crl_cache_cert_isvalid): Add missing break.
28142 dirmngr: Fix memory leak.
28143 + commit b223cde311e4e02f7983e33fe3d7214287dfb678
28144 * dirmngr/ldap.c (start_cert_fetch_ldap): Avoid leaking all malloc'ed
28147 agent: Improve error handling.
28148 + commit a1650b1edf80c2526c0576547b3a574e8d30f1fa
28149 * agent/trustlist.c (istrusted_internal): Initialize 'err'.
28151 common: Avoid undefined behavior.
28152 + commit eb957ffc4797fb019c505510295af244baf5be38
28153 * common/iobuf.c (iobuf_esopen): Initialize 'len' as 'file_es_filter'
28154 will make use of it.
28156 g10: Avoid undefined behavior.
28157 + commit 52f7f195b119dc01bdf3ae200fdc8e04a0bb9bcb
28158 * g10/trust.c (clean_one_uid): Avoid a computation involving an
28159 uninitialized value.
28161 scd: Improve error handling.
28162 + commit 6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d
28163 * scd/app-openpgp.c (get_public_key): Improve error handling.
28165 2015-11-18 Justus Winter <justus@g10code.com>
28167 dirmngr: Gracefully handle premature termination of TLS streams.
28168 + commit eb54fca4bf3ef8e0cd50b01df5b40e0d6d318d7e
28169 * dirmngr/http.c (close_tls_session): New function.
28170 (session_unref): Use the new function to close the TLS stream.
28171 (cookie_read): If the stream terminated prematurely, close it and
28172 return a short read.
28174 2015-11-17 Neal H. Walfield <neal@g10code.com>
28175 Michael Mönch <michael.moench@marktjagd.de>
28177 tools: Fix option parsing for gpg-zip.
28178 + commit 84ebf15b06e435453b2f58775f97a3a1c61a7e55
28179 * tools/gpg-zip.in: Correctly set GPG when --gpg is specified.
28180 Correctly set TAR when --tar is specified. Pass TAR_ARGS to tar.
28182 2015-11-17 Neal H. Walfield <neal@g10code.com>
28184 gpg: Allow selecting subkeys using a keyid.
28185 + commit 0b86c7463c8c057496b38e06c00f0ae4288dad49
28186 * g10/keyedit.c (menu_select_key): Take an additional argument, p.
28187 Update callers. If P is a hex string, then assume that P is a key id
28188 or fingerprint and select subkeys with matching key ids or
28190 * doc/gpg.texi: Update documentation for the key subcommand.
28192 2015-11-17 Justus Winter <justus@g10code.com>
28194 dirmngr: Fix specifying keyservers by IP address.
28195 + commit 1e3dbb15affd6d75a477aa17715d8e5470988c08
28196 * dirmngr/ks-engine-hkp.c (map_host): Update the original 'hosttable'
28197 entry instead of creating another one.
28199 2015-11-17 Neal H. Walfield <neal@g10code.com>
28201 gpg: Change keydb_search to not return legacy keys.
28202 + commit 58e4a492e2c8e908d16135486ed601f602f1e38d
28203 * g10/keyring.c (keyring_search): Take new argument, ignore_legacy.
28204 If set, skip any legacy keys. Update callers.
28205 * g10/keydb.c (keydb_search): Skip any legacy keys.
28206 (keydb_search_first): Don't skip legacy keys. Treat them
28208 (keydb_search_next): Likewise.
28209 (keydb_search_fpr): Likewise.
28210 * g10/export.c (do_export_stream): Likewise.
28211 * g10/getkey.c (lookup): Likewise.
28212 (have_secret_key_with_kid): Likewise.
28213 * g10/keylist.c (list_all): Likewise.
28214 (keyring_rebuild_cache): Likewise.
28215 * g10/keyserver.c (keyidlist): Likewise.
28216 * g10/trustdb.c (validate_key_list): Likewise.
28218 gpg: Correctly handle an error.
28219 + commit 848726f5c02faddb0b0fd24ce1a66893f5325675
28220 * g10/keyring.c (keyring_search): If a compare function returns an
28221 error, treat it as an error.
28223 gpg: Correctly handle keyblocks followed by legacy keys.
28224 + commit ad9befab12376b3a49cde410996ac9f0013d0871
28225 * g10/keyring.c (keyring_get_keyblock): If we encounter a legacy
28226 packet after already having some non-legacy packets, then treat the
28227 legacy packet as a keyblock boundary, not as part of the keyblock.
28228 * g10/t-keydb-get-keyblock.c: New file.
28229 * g10/t-keydb-get-keyblock.gpg: New file.
28230 * g10/Makefile.am (EXTRA_DIST): Add t-keydb-get-keyblock.gpg.
28231 (module_tests): Add t-keydb-get-keyblock.
28232 (t_keydb_get_keyblock_SOURCES): New variable.
28233 (t_keydb_get_keyblock_LDADD): Likewise.
28235 gpg: Make debugging search descriptors easier.
28236 + commit 11ec4785df1646643966d872b1b53ef675092c98
28237 * g10/keydb.c (dump_search_desc): Rename from this...
28238 (keydb_search_desc_dump): ... to this. Only process a single search
28239 descriptor. Improve output. Don't mark as static. Update callers.
28241 gpg: Add function format_keyid.
28242 + commit a052c30d31c0f6b532fea081f4a9bee083f5440f
28243 * g10/options.h (opt.keyid_format): Add new value KF_DEFAULT.
28244 * g10/keyid.c (format_keyid): New function.
28247 gpg: Use a more appropriate error code.
28248 + commit eae982ed6d69644258afe9c4ad1be553853d8403
28249 * g10/gpg.c (check_user_ids): Return a more appropriate error code if
28250 a user id is ambiguous.
28252 2015-11-17 Justus Winter <justus@g10code.com>
28254 Fix typos found using codespell.
28255 + commit a9e0905342e847e8961ec4fe9b3aaedf05e33423
28256 * agent/cache.c: Fix typos.
28257 * agent/call-pinentry.c: Likewise.
28258 * agent/call-scd.c: Likewise.
28259 * agent/command-ssh.c: Likewise.
28260 * agent/command.c: Likewise.
28261 * agent/divert-scd.c: Likewise.
28262 * agent/findkey.c: Likewise.
28263 * agent/gpg-agent.c: Likewise.
28264 * agent/w32main.c: Likewise.
28265 * common/argparse.c: Likewise.
28266 * common/audit.c: Likewise.
28267 * common/audit.h: Likewise.
28268 * common/convert.c: Likewise.
28269 * common/dotlock.c: Likewise.
28270 * common/exechelp-posix.c: Likewise.
28271 * common/exechelp-w32.c: Likewise.
28272 * common/exechelp-w32ce.c: Likewise.
28273 * common/exechelp.h: Likewise.
28274 * common/helpfile.c: Likewise.
28275 * common/i18n.h: Likewise.
28276 * common/iobuf.c: Likewise.
28277 * common/iobuf.h: Likewise.
28278 * common/localename.c: Likewise.
28279 * common/logging.c: Likewise.
28280 * common/openpgp-oid.c: Likewise.
28281 * common/session-env.c: Likewise.
28282 * common/sexputil.c: Likewise.
28283 * common/sysutils.c: Likewise.
28284 * common/t-sexputil.c: Likewise.
28285 * common/ttyio.c: Likewise.
28286 * common/util.h: Likewise.
28287 * dirmngr/cdblib.c: Likewise.
28288 * dirmngr/certcache.c: Likewise.
28289 * dirmngr/crlcache.c: Likewise.
28290 * dirmngr/dirmngr-client.c: Likewise.
28291 * dirmngr/dirmngr.c: Likewise.
28292 * dirmngr/dirmngr_ldap.c: Likewise.
28293 * dirmngr/dns-stuff.c: Likewise.
28294 * dirmngr/http.c: Likewise.
28295 * dirmngr/ks-engine-hkp.c: Likewise.
28296 * dirmngr/ks-engine-ldap.c: Likewise.
28297 * dirmngr/ldap-wrapper.c: Likewise.
28298 * dirmngr/ldap.c: Likewise.
28299 * dirmngr/misc.c: Likewise.
28300 * dirmngr/ocsp.c: Likewise.
28301 * dirmngr/validate.c: Likewise.
28302 * g10/encrypt.c: Likewise.
28303 * g10/getkey.c: Likewise.
28304 * g10/gpg.c: Likewise.
28305 * g10/gpgv.c: Likewise.
28306 * g10/import.c: Likewise.
28307 * g10/keydb.c: Likewise.
28308 * g10/keydb.h: Likewise.
28309 * g10/keygen.c: Likewise.
28310 * g10/keyid.c: Likewise.
28311 * g10/keylist.c: Likewise.
28312 * g10/keyring.c: Likewise.
28313 * g10/mainproc.c: Likewise.
28314 * g10/misc.c: Likewise.
28315 * g10/options.h: Likewise.
28316 * g10/packet.h: Likewise.
28317 * g10/parse-packet.c: Likewise.
28318 * g10/pkclist.c: Likewise.
28319 * g10/pkglue.c: Likewise.
28320 * g10/plaintext.c: Likewise.
28321 * g10/server.c: Likewise.
28322 * g10/sig-check.c: Likewise.
28323 * g10/sqlite.c: Likewise.
28324 * g10/tdbio.c: Likewise.
28325 * g10/test-stubs.c: Likewise.
28326 * g10/tofu.c: Likewise.
28327 * g10/trust.c: Likewise.
28328 * g10/trustdb.c: Likewise.
28329 * g13/create.c: Likewise.
28330 * g13/mountinfo.c: Likewise.
28331 * kbx/keybox-blob.c: Likewise.
28332 * kbx/keybox-file.c: Likewise.
28333 * kbx/keybox-init.c: Likewise.
28334 * kbx/keybox-search-desc.h: Likewise.
28335 * kbx/keybox-search.c: Likewise.
28336 * kbx/keybox-update.c: Likewise.
28337 * scd/apdu.c: Likewise.
28338 * scd/app-openpgp.c: Likewise.
28339 * scd/app-p15.c: Likewise.
28340 * scd/app.c: Likewise.
28341 * scd/ccid-driver.c: Likewise.
28342 * scd/command.c: Likewise.
28343 * scd/iso7816.c: Likewise.
28344 * sm/base64.c: Likewise.
28345 * sm/call-agent.c: Likewise.
28346 * sm/call-dirmngr.c: Likewise.
28347 * sm/certchain.c: Likewise.
28348 * sm/gpgsm.c: Likewise.
28349 * sm/import.c: Likewise.
28350 * sm/keydb.c: Likewise.
28351 * sm/minip12.c: Likewise.
28352 * sm/qualified.c: Likewise.
28353 * sm/server.c: Likewise.
28354 * tools/gpg-check-pattern.c: Likewise.
28355 * tools/gpgconf-comp.c: Likewise.
28356 * tools/gpgkey2ssh.c: Likewise.
28357 * tools/gpgparsemail.c: Likewise.
28358 * tools/gpgtar.c: Likewise.
28359 * tools/rfc822parse.c: Likewise.
28360 * tools/symcryptrun.c: Likewise.
28362 2015-11-16 Neal H. Walfield <neal@g10code.com>
28364 gpg: Fix error checking and improve error reporting.
28365 + commit 8e2bea22b0927f4f95a248cc7517f407a705d8a8
28366 * g10/gpg.c (check_user_ids): Differentiate between a second result
28367 and an error. If the key specification is ambiguous or an error
28368 occurs, set RC appropriately.
28370 2015-11-14 Werner Koch <wk@gnupg.org>
28372 gpg: Use only one fingerprint formatting function.
28373 + commit 3689c2105aab6a4304e9464c5b20207d69b9a133
28374 * g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): New.
28375 * g10/keyid.c (hexfingerprint): Add optional args BUFFER and BUFLEN.
28376 Change all callers.
28377 (format_hexfingerprint): New.
28378 * g10/keylist.c (print_fingerprint): Change to use hexfingerprint.
28379 * g10/tofu.c (fingerprint_format): Remove. Replace calls by
28380 format_hexfingerprint.
28382 2015-11-13 Werner Koch <wk@gnupg.org>
28384 gpg: Simplify the tofu interface by using the public key packet.
28385 + commit e7d7160ab7cd4e6b460bfe36fd3a7275adadb4e2
28386 * g10/tofu.c (fingerprint_str): Remove.
28387 (tofu_register): Take a public key instead of a fingerprint as arg.
28388 Use hexfingerprint() to get a fpr from the PK.
28389 (tofu_get_validity): Ditto.
28390 (tofu_set_policy, tofu_get_policy): Simplify by using hexfingerprint.
28391 * g10/trustdb.c (tdb_get_validity_core): Pass the primary key PK to
28392 instead of the fingerprint to the tofu functions.
28394 gpg: Make trusted-key override for Tofu robust against swapped tofu.db.
28395 + commit 7de8376430625c1f6f3a58ae16276deca8ff6a82
28396 * g10/tofu.c (get_trust): For the UTK check lookup the key by
28399 gpg: Fix regression in --locate-keys (in 2.1.9).
28400 + commit 7e59fb21f728b5f54468cd35b1415a2f86003d4f
28401 * g10/getkey.c (getkey_ctx_s): Add field "extra_list".
28402 (get_pubkey_byname): Store strings in the context.
28403 (getkey_end): Free EXTRA_LIST.
28405 2015-11-12 Werner Koch <wk@gnupg.org>
28407 gpg: Print a new EXPORTED status line.
28408 + commit 2038adf16d0e7eeb614043aae17b16a867de6b70
28409 * common/status.h (STATUS_EXPORTED): New.
28410 * g10/export.c (print_status_exported): New.
28411 (do_export_stream): Call that function.
28413 gpg: Print export statistics to the status-fd.
28414 + commit e3c48335f9c5081c6080bceafa7a04140403427a
28415 * common/status.h (STATUS_EXPORT_RES): New.
28416 * g10/main.h (export_stats_t): New.
28417 * g10/export.c (export_stats_s): New.
28418 (export_new_stats, export_release_stats): New.
28419 (export_print_stats): New.
28420 (export_pubkeys, export_seckeys, export_secsubkeys)
28421 (export_pubkey_buffer, do_export): Add arg "stats".
28422 (do_export_stream): Add arg stats and update it.
28423 * g10/gpg.c (main) <aExport, aExportSecret, aExportSecretSub>: Create,
28424 pass, and print a stats object to the export function calls.
28426 * g10/export.c (export_pubkeys_stream): Remove unused function.
28428 dirmngr: Do not block during ADNS calls.
28429 + commit a3b26d6c0839ec18d1dc226bb537d5067c86d574
28430 * dirmngr/dns-stuff.c: Include npth.h
28431 (my_unprotect, my_protect): New wrapper.
28432 (resolve_name_adns): Put unprotect/protect around adns calls.
28433 (get_dns_cert): Ditto.
28435 (get_dns_cname): Ditto.
28437 dirmngr: New option --nameserver.
28438 + commit a2cc1d57552ccac7b2f9a0c6423b171b2a168b2a
28439 * dirmngr/dirmngr.c (oNameServer): New.
28440 (opts): Add --nameserver.
28441 (parse_rereadable_options): Act upon oNameServer.
28442 * dirmngr/dns-stuff.c (DEFAULT_NAMESERVER): New.
28443 (tor_nameserver): New.
28444 (set_dns_nameserver): New.
28445 (my_adns_init): Make name server configurable.
28447 2015-11-11 Neal H. Walfield <neal@g10code.com>
28449 gpg: Fix cache consistency problem.
28450 + commit 7546e818791988c00b8635dab5b899265d8d9f42
28451 g10/keyring.c (keyring_search): Only mark the cache as completely
28452 filled if we start the scan from the beginning of the keyring.
28454 2015-11-10 Neal H. Walfield <neal@g10code.com>
28456 gpg: Default to the the PGP trust model.
28457 + commit 67c701d1e53f56305e3b8771c683c45bb9672305
28458 * g10/trustdb.c (init_trustdb): If we can't read the trust model from
28459 the trust DB, default to TM_PGP, not TM_TOFU_PGP.
28461 gpg: Default to the flat TOFU DB format.
28462 + commit 951f277b6bf8178560105538d38e2a07a96865bd
28463 * g10/tofu.c (opendbs): If the TOFU DB format is set to auto and there
28464 is no TOFU DB, default to the flat format.
28466 2015-11-09 Werner Koch <wk@gnupg.org>
28468 dirmngr: Change to new ADNS Tor mode init scheme.
28469 + commit 288c9919dc45496b2380eeac487a8539692d6842
28470 * dirmngr/dns-stuff.c (tor_credentials): New.
28471 (enable_dns_tormode): Add arg new_circuit and update tor_credentials.
28472 (my_adns_init): Rework to set Tor mode using a config file options and
28473 always use credentials.
28474 * dirmngr/server.c (cmd_dns_cert): Improve error message.
28475 * dirmngr/t-dns-stuff.c (main): Add option --new-circuit.
28477 dirmngr: Improve detection of ADNS.
28478 + commit f92e95175e90120362a7d6376fb32307e11267b5
28479 * configure.ac (HAVE_ADNS_FREE): New ac_define.
28481 2015-11-09 NIIBE Yutaka <gniibe@fsij.org>
28483 scd: Add reder information to --card-status.
28484 + commit bce0e3f71df0709a7d323a688ddf2690c1727a6c
28485 * g10/call-agent.h, g10/call-agent.c (agent_release_card_info)
28486 g10/card-util.c (card_status): Add READER.
28487 * scd/apdu.c (close_ccid_reader, open_ccid_reader): Handle RDRNAME.
28488 (apdu_get_reader_name): New.
28489 * scd/ccid-driver.c (ccid_open_reader): Add argument to RDRNAME_P.
28490 * scd/command.c (cmd_learn): Return READER information.
28492 2015-11-06 Werner Koch <wk@gnupg.org>
28494 gpg: Avoid new strings.
28495 + commit 2242658efe0c975a46c3316bc9171ddbce085e2c
28496 * g10/decrypt-data.c (decrypt_data): Use already translated strings.
28498 common: Fix commit f99830b.
28499 + commit 20125333e7b822e8c70ac8cef986649f0654eb56
28500 * common/userids.c (classify_user_id): Avoid underflow. Use spacep to
28503 2015-11-06 Neal H. Walfield <neal@g10code.com>
28505 gpg: Fix formatting string.
28506 + commit 28e198201e580b39bceb9c151df07fc0e936a91d
28507 * g10/decrypt-data.c (decrypt_data): Fix formatting string.
28509 gpg: Add new option --only-sign-text-ids.
28510 + commit a74aeb5dae1f673fcd98b39a6a0496f3c622709a
28511 * g10/options.h (opt): Add field only_sign_text_ids.
28512 * g10/gpg.c (enum cmd_and_opt_values): Add value oOnlySignTextIDs.
28513 (opts): Handle oOnlySignTextIDs.
28515 * g10/keyedit.c (sign_uids): If OPT.ONLY_SIGN_TEXT_IDS is set, don't
28516 select non-text based IDs automatically.
28517 (keyedit_menu): Adapt the prompt asking to sign all user ids according
28518 to OPT.ONLY_SIGN_TEXT_IDS.
28519 * doc/gpg.texi: Document the new option --only-sign-text-ids.
28521 common: When classifying keyids and fingerprints, reject trailing junk.
28522 + commit f99830b72812395da5451152bdd2f2d90a7cb7fb
28523 * common/userids.c (classify_user_id): Trim any trailing whitespace.
28524 Before assuming that a hexstring corresponds to a key id or
28525 fingerprint, make sure that it is NUL terminated.
28527 gpg: Check for ambiguous or non-matching key specs.
28528 + commit e8c53fca954d33366e3494a6d4eecc3868282bcc
28529 * g10/gpg.c (check_user_ids): New function.
28530 (main): Check that any user id specifications passed to --local-user
28531 and --remote-user correspond to exactly 1 user. Check that any user
28532 id specifications passed to --default-key correspond to at most 1
28533 user. Warn if any user id specifications passed to --local-user or
28534 --default-user are possible ambiguous (are not specified by long keyid
28536 * g10/getkey.c (parse_def_secret_key): Don't warn about possible
28537 ambiguous key descriptions here.
28539 common: Add new function strlist_rev.
28540 + commit f38bac8883ea2e9ed8e2836f97a953efb85e774c
28541 * common/strlist.c (strlist_rev): New function.
28542 * common/t-strlist.c: New file.
28543 * common/Makefile.am (common_sources): Add strlist.c and strlist.h.
28544 (module_tests): Add t-strlist.
28545 (t_strlist_LDADD): New variable.
28547 common: Include required, but not included headers in t-support.h.
28548 + commit 23e163473f050d1f2c08f589beb9dab283b7d624
28549 * common/t-support.h: Include <stdlib.h> and <stdio.h>.
28551 2015-11-05 Neal H. Walfield <neal@g10code.com>
28553 gpg: Indicate which characters are invalid.
28554 + commit a958ffd148a46f3757d1c309bb13555638044640
28555 * g10/keygen.c (ask_user_id): Indicate which characters are invalid.
28557 gpg: Add support for unwrapping the outer level of encryption.
28558 + commit ec409e62aea6cc829299be794f9d035d033cb51b
28559 * g10/decrypt-data.c (decrypt_data): If OPT.UNWRAP_ENCRYPTION is set,
28560 copy the data to the output file instead of continuing to process it.
28561 * g10/gpg.c (enum cmd_and_opt_values): Add new value oUnwrap.
28562 (opts): Handle oUnwrap.
28564 * g10/options.h (opt): Add field unwrap_encryption.
28565 * g10/plaintext.c (handle_plaintext): Break the output file selection
28566 functionality into ...
28567 (get_output_file): ... this new function.
28569 common: Add a function for copying data from one iobuf to another.
28570 + commit fd4b9e232805b2e30b29903568c95cc0aad8bbec
28571 * common/iobuf.c (iobuf_copy): New function.
28573 doc: Note that gpgkey2ssh is deprecated.
28574 + commit 2b0e0a53b4db8c44e299f57a9f4f9fc1b825e707
28575 * doc/tools.texi (gpgkey2ssh): Note that gpgkey2ssh is deprecated.
28577 tools: Fix gpgkey2ssh's most gratuitous errors. Use gpg2, not gpg.
28578 + commit cd2d685230ecafb7df504ef2b16cf1ec9a014300
28579 * tools/gpgkey2ssh.c (main): Add support for --help. Replace the most
28580 gratuitous asserts with error messages. Invoke gpg2, not gpg.
28582 2015-11-05 Neal H. Walfield <neal@g10code.com>
28583 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
28585 doc: Add documentation for gpgkey2ssh.
28586 + commit 2b27acc3435e73fad7460b551a36b4064cdd58be
28587 * doc/tools.texi: Add documentation for gpgkey2ssh.
28589 2015-11-04 Neal H. Walfield <neal@g10code.com>
28591 gpg: Print a better error message for --multifile --sign --encrypt.
28592 + commit 6897bbf1aa9bf0a61b186ea1a9bcb463fb1fd10e
28593 * g10/gpg.c (main): Print a better error message for --multifile
28596 gpg: Add --encrypt-to-default-key.
28597 + commit de9b2340153d70b083494d1a277a384dcf43bff0
28598 * g10/getkey.c (parse_def_secret_key): Drop the static qualifier and
28599 export the function.
28600 * g10/gpg.c (enum cmd_and_opt_values): Add value oEncryptToDefaultKey.
28601 (opts): Handle oEncryptToDefaultKey.
28603 * g10/options.h (opt): Add field encrypt_to_default_key.
28605 gpg: Allow multiple --default-key options. Take the last available key.
28606 + commit e16d7168c54e5f7bc2f0037806ee4f730930eaf0
28607 * g10/getkey.c (parse_def_secret_key): New function.
28608 (get_seckey_default): Add parameter ctrl. Update callers. Use
28609 parse_def_secret_key to get the default secret key, if any.
28610 (getkey_byname): Likewise.
28611 (enum_secret_keys): Likewise.
28612 * g10/options.h (opt): Change def_secret_key's type from a char * to a
28614 * g10/gpg.c (main): When processing --default-key, add the key to
28615 OPT.DEF_SECRET_KEY.
28616 * g10/gpgv.c (get_session_key): Add parameter ctrl. Update callers.
28617 * g10/mainproc.c (proc_pubkey_enc): Likewise.
28618 (do_proc_packets): Likewise.
28619 * g10/pkclist.c (default_recipient): Likewise.
28620 * g10/pubkey-enc.c (get_session_key): Likewise.
28621 * g10/sign.c (clearsign_file): Likewise.
28622 (sign_symencrypt_file): Likewise.
28623 * g10/skclist.c (build_sk_list): Likewise.
28624 * g10/test-stubs.c (get_session_key): Likewise.
28626 2015-11-04 NIIBE Yutaka <gniibe@fsij.org>
28628 scd: Fix error handling with libusb-compat library.
28629 + commit 1e94a672efb8bf66f416bc63bf6670e509a21fe5
28630 * scd/ccid-driver.c (bulk_out): Use LIBUSB_ERRNO_NO_SUCH_DEVICE.
28632 scd: fix change_keyattr.
28633 + commit c5a9fedba66361ddd9f596528882750068543298
28634 * scd/app-openpgp.c (change_keyattr_from_string): Fix parsing.
28636 2015-11-03 Werner Koch <wk@gnupg.org>
28638 gpg: Change out of core error message.
28639 + commit 44ad9f29d43f40bbc1840454880f4af3df1c5295
28640 * g10/tofu.c (fingerprint_str): Die with the error code returned by
28641 the failed function.
28642 (time_ago_str): Ditto. Do not make a comma translatable.
28643 (fingerprint_format): Use "%zu" for a size_t.
28645 gpg: Make translation easier.
28646 + commit 62b8cd5495dcac9a0f8a3d88c7bd4cd80997fd3f
28647 * g10/import.c (import_secret_one): Split info string for easier
28650 2015-11-03 Neal H. Walfield <neal@g10code.com>
28652 gpg: Also show when the most recently signed message was observed.
28653 + commit 621afac37e5555fd68054531e611ead444b62928
28654 * g10/tofu.c (show_statistics): Also show when the most recently
28655 signed message was observed.
28657 gpg: Split a utility function out of a large function.
28658 + commit 36326112290b6eef47c9dada30dddbdf408680e4
28659 * g10/tofu.c (show_statistics): Break the time delta to string code
28661 (time_ago_str): ... this new function.
28663 gpg: Fix message formatting.
28664 + commit c8ef9f9a64d13ea8b9b4ade62525243abe2976ba
28665 * g10/tofu.c (get_trust): Fix message formatting.
28667 gpg: Don't store formatting fingerprints in the TOFU DB.
28668 + commit 8ae3946d28c43e30ef692ba6cf1a7fa4ed65ecc5
28669 * g10/tofu.c (fingerprint_pp): Split this function into...
28670 (fingerprint_str): ... this function...
28671 (fingerprint_format): ... and this function.
28672 (record_binding): Store the unformatted fingerprint in the DB. Only
28673 use the formatting fingerprint when displaying a message to the user.
28674 (get_trust): Likewise.
28675 (show_statistics): Likewise.
28676 (tofu_register): Likewise.
28677 (tofu_get_validity): Likewise.
28678 (tofu_set_policy): Likewise.
28679 (tofu_get_policy): Likewise.
28681 2015-11-02 NIIBE Yutaka <gniibe@fsij.org>
28683 g10: notify a user when importing stub is skipped.
28684 + commit 06f3eadb22986d9ebde9efff2794eb1d45d6c6d4
28685 * g10/import.c (transfer_secret_keys): Return GPG_ERR_NOT_PROCESSED
28686 when stub_key_skipped.
28687 (import_secret_one): Notify a user, suggesting --card-status.
28689 2015-10-31 Neal H. Walfield <neal@g10code.com>
28691 gpg: Consider newlines to be whitespace in an SQL statement.
28692 + commit 18cd09246f5dcddcafb8662afd84fa046e36de3f
28693 * g10/sqlite.c (sqlite3_stepx): When making sure that there is no
28694 second SQL statement, ignore newlines.
28696 2015-10-30 Werner Koch <wk@gnupg.org>
28698 common: Improve t-zb32 to be used for manual encoding.
28699 + commit d89a9fca46d9bba497dde0793b57217c800b0e8d
28700 * common/t-support.h (no_exit_on_fail, errcount): New.
28701 (fail): Bump errcount.
28702 * common/t-zb32.c (main): Add options to allow manual use.
28704 common: Add separate header for zb32.c.
28705 + commit 5aadb4b62d26e1bfb40a1ce444a81c2a5a56159c
28706 * common/util.h (zb32_encode): Move prototype to ...
28707 * common/zb32.h: new. Include this for all callers of zb32_encode.
28709 2015-10-29 Neal H. Walfield <neal@g10code.com>
28711 gpg: Display the correct error message.
28712 + commit 641df615da4937b0073c420a0503c5810c237972
28713 * g10/trustdb.c (validate_keys): If tdbio_update_version_record fails,
28714 RC does not contain the error code. Save the error code in rc2 and
28717 gpg: Eliminate a memory leak.
28718 + commit d68bdc553a206e54234d5d53ad35c4ba34133118
28719 * g10/trustdb.c (validate_key_list): Don't leak the keyblocks on
28722 gpg: Remove unused prototype.
28723 + commit ef052591ba51ee16bafc3c5b79d837ed8f01b520
28724 g10/keyring.h (keyring_locate_writable): Remove unused prototype.
28726 gpg: Eliminate a memory leak.
28727 + commit 89eee5f6b7ca3da7ebdcc3e5d069701d0834b39e
28728 * g10/gpg.c (main): Don't leak OPT.DEF_RECIPIENT.
28730 gpg: Fix keyring support.
28731 + commit 99c84b49b787dab8da26cf61eed24dd4a2b77fd9
28732 * g10/keydb.c (keydb_rebuild_caches): Only mark the cached as prepared
28733 if it is actually prepared, which it only is if the resource is a
28736 gpg: Change sqlite3_stepx to pass the sqlite3_stmt * to the callback.
28737 + commit 421827424fe87855307fe3e803b42ffa02738600
28738 * g10/sqlite.h (enum sqlite_arg_type): Add SQLITE_ARG_BLOB.
28739 (sqlite3_stepx_callback): New declaration.
28740 (sqlite3_stepx): Change the callback's type to sqlite3_stepx_callback,
28741 which passes an additional parameter, the sqlite3_stmt *. Update
28744 gpg: Move sqlite helper functions into their own file.
28745 + commit 351f4213e192aa11500c0c590d11183edbe326c5
28746 * g10/tofu.c (sqlite3_exec_printf): Move from here...
28747 * g10/sqlite.c (sqlite3_exec_printf): ... to this new file. Don't
28749 * g10/tofu.c (sqlite3_stepx): Move from here...
28750 * g10/sqlite.c (sqlite3_stepx): ... to this new file. Don't
28752 * g10/tofu.c (enum sqlite_arg_type): Move from here...
28753 * g10/sqlite.h (enum sqlite_arg_type): ... to this new file.
28755 2015-10-29 NIIBE Yutaka <gniibe@fsij.org>
28757 doc: Don't install gpg-zip.1.
28758 + commit d25e29ad9374da1c11ccfc38f392dbab2d707042
28759 * doc/Makefile.am (myman_pages): Remove gpg-zip.1.
28760 (DISTCLEANFILES): Add gpg-zip.1.
28762 2015-10-28 Werner Koch <wk@gnupg.org>
28764 sm: Allow combination of usage flags --gen-key.
28765 + commit 8b6c83dcb086ef09b2676e4d5b0111c88b7b8bf8
28766 * sm/certreqgen.c (create_request): Re-implement building of the
28767 key-usage extension.
28769 2015-10-28 Damien Goutte-Gattat <dgouttegattat@incenp.org>
28771 doc: Document some changed default options.
28772 + commit e095a3fcf2ccc6cc4e258111dc395558069a1164
28773 * doc/gpg.texi: Update the description of some options which are
28774 now enabled by default.
28776 2015-10-28 Werner Koch <wk@gnupg.org>
28778 dirmngr: Fix NULL-deref while loading a CRL.
28779 + commit fa15a71daff8414bf4112bc2826dc495ff2fb01f
28780 * dirmngr/crlcache.c (crl_parse_insert): Set error before leaping to
28783 dirmngr: Minor cleanup of the SRV RR code.
28784 + commit 949a5cfdabcafab93c1ac092c0459b59318805b9
28785 * dirmngr/dns-stuff.c: Include unistd.h.
28786 (getsrv): Run srand only once.
28787 * dirmngr/t-dns-stuff.c (main): Allow passing another name for --srv
28788 and change output format.
28790 dirmngr: Add a getaddrinfo wrapper backend using ADNS.
28791 + commit e026efb4363bc6e3c41ed533daf06f103ebd2e32
28792 * dirmngr/dns-stuff.c: Replace all use of default_errsource.
28793 (my_adns_init): Move to top.
28794 (resolve_name_adns): New.
28795 (resolve_dns_name) [USE_ADNS]: Divert to new func.
28797 2015-10-26 Werner Koch <wk@gnupg.org>
28799 gpg: Do not call an extra get_validity if no-show-uid-validity is used.
28800 + commit a6c2c098435a703ca02abf651ff4fa45e5a4db9a
28801 * g10/mainproc.c (check_sig_and_print): Do not call the informational
28802 get_validity if we are not going to use it.
28804 2015-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
28806 gpg: Ensure all weak digest rejection notices are shown.
28807 + commit 91015d021b3dcbe21ad0e580a4f34c523abf9e72
28808 * g10/main.h: Add rejection_shown flag to each weakhash struct
28809 * g10/misc.c (print_digest_algo_note, additional_weak_digest): Do not
28810 treat MD5 separately; (print_digest_rejected_note): Use
28811 weakhash.rejection_shown instead of static shown.
28812 * g10/options.h (opt): Change from additional_weak_digests to
28814 * g10/sig-check.c: Do not treat MD5 separately.
28815 * g10/gpg.c (main): Explicitly set MD5 as weak.
28816 * g10/gpgv.c (main): Explicitly set MD5 as weak.
28818 2015-10-26 Werner Koch <wk@gnupg.org>
28820 w32: Make it build again if Tofu support is not available.
28821 + commit 0d37a40fc34519e93af3ceffff2cd726d29576d3
28822 * g10/keylist.c (public_key_list) [!USE_TOFU]: Do not call tofu
28825 dirmngr: Support Tor hidden services.
28826 + commit 4524a2a3714f263d56bb7db349c169b456994fd9
28827 * dirmngr/dns-stuff.c (is_onion_address): New.
28828 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add field "onion".
28829 (map_host): Special case onion addresses.
28830 (ks_hkp_print_hosttable): Print an 'O' for an onion address.
28831 * dirmngr/http.c (connect_server): Special case onion addresses.
28833 dirmngr,w32: Remove gethostbyname hack and make it build again.
28834 + commit 7735bbe539af35ce16e270946d5ae798c5989d6e
28835 * dirmngr/http.c (connect_server) [W32]: Remove gethostbyname hack;
28836 we require getaddrinfo anyway.
28837 * dirmngr/dns-stuff.c (AI_ADDRCONFIG): Add replacement if not defined.
28838 (map_eai_to_gpg_error) [W32]: Take care of unsupported codes.
28840 2015-10-26 Neal H. Walfield <neal@g10code.com>
28842 gpg: Make sure we only have a single SQL statement.
28843 + commit c18fb0d99b633bb267dead6e7c46229f4b780bc3
28844 * g10/tofu.c (sqlite3_stepx): Make sure SQL only contains a single SQL
28847 gpg: When the TOFU DB is in batch mode, periodically drop the locks.
28848 + commit 5b0ed7674dc718ee98e0c80aa93ce014f2b51411
28849 * g10/tofu.c: Include <sched.h>.
28850 (batch_update_started): New variable.
28851 (begin_transaction): If we've been in batch mode for a while, then
28852 commit any extant batch transactions.
28853 (tofu_begin_batch_update): If we are not in batch mode, initialize
28854 batch_update_started.
28856 2015-10-25 Werner Koch <wk@gnupg.org>
28858 dirmngr: Add workaround for broken getaddrinfo.
28859 + commit 5e7ac031f513ad3b60e4f092fa72b3bec0676515
28860 * dirmngr/dns-stuff.c (resolve_name_standard): On failure retry by
28861 first resolving the CNAME.
28862 (get_dns_cname): New.
28864 * dirmngr/t-dns-stuff.c (main): Add option --cname.
28866 dirmngr: Better handle systems without IPv6 or IPv4.
28867 + commit 0e3c9f184a5fb3e41277700d690febc2eee9600a
28868 * dirmngr/dns-stuff.c (resolve_name_standard): Use AI_ADDRCONFIG.
28870 dirmngr: Replace use of getnameinfo by resolve_dns_addr.
28871 + commit 927f34603d942868af6a7bd0f347681bbad76a94
28872 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Remove.
28873 (map_host): Use resolve_dns_addr.
28875 dirmngr: Implement a getnameinfo wrapper.
28876 + commit 816505958ac4308ee0dfe787d1b706982428b6cc
28877 * dirmngr/dns-stuff.h (DNS_NUMERICHOST): New.
28878 (DNS_WITHBRACKET): New.
28879 * dirmngr/dns-stuff.c (resolve_name_standard): Factor code out to...
28880 (map_eai_to_gpg_error): new.
28881 (resolve_addr_standard): New.
28882 (resolve_dns_addr): New.
28884 * dirmngr/ks-engine-hkp.c (is_ip_address): Move to ...
28885 * dirmngr/dns-stuff.c (is_ip_address): here. Add support for non
28886 bracketed v6 addresses.
28888 * dirmngr/t-dns-stuff.c: Remove header netdb.h.
28889 (main): Add option --bracket. Use resolve_dns_name instead of
28892 2015-10-23 Neal H. Walfield <neal@g10code.com>
28894 gpg: Provide an interface to patch TOFU updates.
28895 + commit 7f65e84ac035e8f7a25639a6b09eb6000115e337
28896 * g10/tofu.c (struct db): Rename begin_transaction to savepoint_batch.
28897 Rename end_transaction to savepoint_batch_commit. Update users.
28898 Remove field rollback. Add fields savepoint_inner and
28899 savepoint_inner_commit. Add field batch_update.
28900 (dump_cache): New function.
28901 (batch_update): New variable.
28902 (begin_transaction). New function.
28903 (end_transaction): New function.
28904 (rollback_transaction): New function.
28905 (tofu_begin_batch_update): New function.
28906 (tofu_end_batch_update): New function.
28907 (closedb): End any pending batch transaction.
28908 (closedbs): Assert that none of the DBs have a started batch
28909 transaction if we not in batch mode.
28910 (record_binding): Use the begin_transaction, end_transaction and
28911 rollback_transaction functions instead of including the SQL inline.
28912 Also start a batch mode transaction if we are using the flat format.
28913 (tofu_register): Use the begin_transaction, end_transaction and
28914 rollback_transaction functions instead of including the SQL inline.
28915 * g10/gpgv.c (tofu_begin_batch_update): New function.
28916 (tofu_end_batch_update): New function.
28917 * g10/test-stubs.c (tofu_begin_batch_update): New function.
28918 (tofu_end_batch_update): New function.
28920 gpg: Cache prepared SQL queries and open DB connections.
28921 + commit 297cf8660ce346638e42934d84d746768f8bb10a
28922 * g10/tofu.c: Include <stdarg.h>.
28923 (prepares_saved) [DEBUG_TOFU_CACHE]: New variable.
28924 (queries) [DEBUG_TOFU_CACHE]: New variable.
28925 (struct db): Add fields prevp, begin_transaction, end_transaction,
28926 rollback, record_binding_get_old_policy, record_binding_update,
28927 record_binding_update2, get_policy_select_policy_and_conflict,
28928 get_trust_bindings_with_this_email, get_trust_gather_other_user_ids,
28929 get_trust_gather_other_keys, register_already_seen, and
28931 [DEBUG_TOFU_CACHE]: Add field hits.
28932 (STRINGIFY): New macro.
28933 (STRINGIFY2): New macro.
28934 (enum sqlite_arg_type): New enum.
28935 (sqlite3_stepx): New function.
28936 (combined_db): Remove variable.
28937 (opendb): Don't cache the combined db.
28938 (struct dbs): New struct. Update users to use this as the head of the
28939 local DB list rather than overloading struct db.
28940 (unlink_db): New function.
28941 (link_db): New function.
28942 (db_cache): New variable.
28943 (db_cache_count): New variable.
28944 (DB_CACHE_ENTRIES): Define.
28945 (getdb): If the dbs specific cache doesn't include the DB, look at
28946 DB_CACHE. Only if that also doesn't include the DB open the
28948 (closedb): New function.
28949 (opendbs): Don't open the combined DB. Just return an initialized
28951 (closedbs): Don't close the dbs specific dbs. Attach them to the
28952 front of DB_CACHE. If DB_CACHE contains more than DB_CACHE_ENTRIES,
28953 close enough dbs from the end of the DB_CACHE list such that DB_CACHE
28954 only contains DB_CACHE_ENTRIES. Don't directly close the dbs, instead
28955 use the new closedb function.
28956 [DEBUG_TOFU_CACHE]: Print out some statistics.
28957 (record_binding): Use sqlite3_stepx instead of sqlite3_exec or
28958 sqlite3_exec_printf.
28959 (get_policy): Likewise.
28960 (get_trust): Likewise.
28961 (tofu_register): Likewise.
28963 gpg: Return the DBs meta-handle rather than the sqlite3 handle.
28964 + commit cd879d4bd69a578be5a1ff96497f8c1181885563
28965 * g10/tofu.c (getdb): Return a struct db * instead of an sqlite *.
28968 gpg: Use the proper type.
28969 + commit 3c4c89cc35280164b509977c5288b0a06d6f530e
28970 * g10/options.h: Include "tofu.h".
28971 (opt.tofu_default_policy): Change type to enum tofu_policy.
28972 * g10/gpgv.c (enum tofu_policy): Don't redeclare.
28973 * g10/test-stubs.c (enum tofu_policy): Likewise.
28975 2015-10-22 Werner Koch <wk@gnupg.org>
28977 dirmngr: Implement Tor mode for SRV RRs.
28978 + commit 8b06d7f41aec6cb993445935dba7c60e033d026a
28979 * dirmngr/dns-stuff.c (get_dns_cert): Factor adns init out to...
28980 (my_adns_init): new.
28981 (getsrv)[USE_ADNS]: Use my_adns_init.
28982 (getsrv)[!USE_ADNS]: Return an error if Tor mode is active.
28984 * dirmngr/t-dns-stuff.c: Add option --use-tor.
28986 dirmngr: Do not use MAXDNAME.
28987 + commit e03a4a94bb67d4a6c958b37671f83456e203f325
28988 * dirmngr/dns-stuff.c (getsrv): Replace MAXDNAME.
28989 * dirmngr/dns-stuff.h (MAXDNAME): Remove.
28990 (struct srventry): Use a fixed value instead of MAXDNAME.
28991 * dirmngr/http.c (connect_server): Use DIMof instead of MAXDNAME.
28992 Malloc a helper array.
28994 Move SRV RR code from common/ to dirmngr/.
28995 + commit 41bb01ae792af78edd28bf1b735cacc0b3ac428a
28996 * common/srv.c: Merge into dirmngr/dns-stuff.c. Delete file.
28997 * common/srv.h: Merge into dirmngr/dns-stuff.h. Delete file.
28998 * common/Makefile.am (common_sources): Remove srv.c and srv.h.
28999 * g10/keyserver.c: Do not include srv.h. The code using it is anyway
29001 * dirmngr/http.c: Remove header srv.h and stubs.
29002 * dirmngr/t-dns-stuff.c: Add option --srv.
29004 2015-10-21 Werner Koch <wk@gnupg.org>
29006 dirmngr: Use the new DNS wrapper for the HTTP module.
29007 + commit 1e34007c972c1d7730cfcacd88f6bbebba7dec1d
29008 * dirmngr/t-http.c (main): Init assuan sockets.
29009 * dirmngr/http.c: Include dns-stuff.h.
29010 (connect_server)[!HAVE_GETADDRINFO]: Remove all code.
29011 (connect_server): Change to use resolve_dns_name.
29013 dirmngr: Allow use of http.c if USE_NPTH is not defined.
29014 + commit b6af3377e14fad35b9c6041b11888cabce6e8a56
29015 * dirmngr/http.c (send_request): Always set the gnutls pull/push
29017 (my_npth_read): Rename to ...
29018 (my_gnutls_read) .. this. Use system read if !USE_NPTH.
29019 (my_npth_write): Rename to ...
29020 (my_gnutls_write) .. this. Use system write if !USE_NPTH.
29022 dirmngr: Check that getaddrinfo is available.
29023 + commit 6fafda979df8e7e117f8e6929bcce89513a6e746
29024 * dirmngr/Makefile.am (t_http_SOURCES): Add dns-stuff.c.
29025 (t_ldap_parse_uri_SOURCES): Ditto.
29026 * dirmngr/dns-stuff.c: Bail out if neither ADNS nor getaddrinfo is
29029 dirmngr: Use the new DNS wrapper for the HKP engine.
29030 + commit afbe87fa2d259b665b2d67a038a8535cfcfee094
29031 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change arg type to
29033 (map_host): Replace getaddrinfo by resolve_dns_name.
29035 dirmngr: Implement a getaddrinfo wrapper.
29036 + commit 8bccbf477878fd99baa96e11db9db99aaf1e8d91
29037 * dirmngr/dns-stuff.h: Include some header files.
29038 (dns_addinfo_t, dns_addrinfo_s): New.
29039 * dirmngr/dns-stuff.c: Always include DNS related headers.
29040 (free_dns_addrinfo): New.
29041 (resolve_name_standard): New.
29042 (resolve_dns_name): New.
29044 * dirmngr/t-dns-stuff.c: Include netdb.h.
29045 (main): Keep old default mode with no args but else print outout of
29046 resolve_dns_name. Revamp option parser.
29048 common: Add more replacement error codes.
29049 + commit ffe60eb3d2b8f7d6c506804ce4645d695c91f237
29050 * common/util.h (GPG_ERR_SERVER_FAILED): New.
29051 (GPG_ERR_NO_KEY): New.
29052 (GPG_ERR_NO_NAME): New.
29054 2015-10-21 Neal H. Walfield <neal@g10code.com>
29056 gpg: If the saved trust model is unknown, default to tofu+pgp.
29057 + commit 9afeb4cca10c3632495fe71b23df99a4878bd3a5
29058 * g10/trustdb.c (init_trustdb): If the saved trust model is unknown,
29059 default to tofu+pgp instead of pgp.
29061 gpg: Don't accidentally free UTK_LIST.
29062 + commit 8c3b7915d675ca5346c17244654d5c6ab583ac44
29063 * g10/trustdb.c (validate_keys): Don't free UTK_LIST.
29065 gpg: When evaluating trust reg exps, treat tofu+pgp like pgp.
29066 + commit cbaca254ac818c49c18d4480d3c7bd246cc57ae8
29067 * g10/trustdb.c (validate_one_keyblock): When checking trust regular
29068 expressions, treat the tofu+pgp trust model the same as the pgp trust
29071 gpg: If a key is ultimate trusted, return that in the tofu model.
29072 + commit df57390d68482c5b3fa5ff3a42a29ae1b6cbb23c
29073 * g10/tofu.c (get_trust): If the policy is auto or none, check if the
29074 key is ultimately trusted. If so, return that.
29075 (tofu_register): If the key is ultimately trusted, don't show any
29077 (tofu_get_validity): Likewise.
29079 gpg: Keep the trust DB up to date for the tofu and tofu+pgp models.
29080 + commit d05ff81732e20e6f9d6d7a6281a96a312b001abb
29081 * g10/trustdb.c (init_trustdb): Recognize tofu and tofu+pgp as
29082 possibly saved trust models. Also register the ultimately trusted
29083 keys if the trust model is tofu or tofu+pgp.
29084 (check_trustdb): Don't skip if the trust model is tofu or tofu+pgp.
29085 (update_trustdb): Likewise.
29086 (tdb_check_trustdb_stale): Likewise.
29087 (validate_keys): If the trust model is TOFU, just write out the
29088 ultimately trusted keys.
29090 gpg: Factor out code into a standalone function.
29091 + commit 243f90afba87e99ca42e2451ac5cc59d00a044ac
29092 * g10/trustdb.c (tdb_keyid_is_utk): New function.
29095 dirmngr: Allow building with libassuan < 2.3.
29096 + commit a79045e38d239a7f6e787cf7c1132772c737cc0e
29097 * dirmngr/http.c (send_request): Use newer assuan function only if
29100 2015-10-21 Neal H. Walfield <neal@g10code.com>
29101 Andre Heinecke <aheinecke@intevation.de>
29103 gpg: Make the tofu DB check and initialization atomic.
29104 + commit 85bd7d9491f8cc13c2b03f19b4f70ea13b45c704
29105 * g10/tofu.c (initdb): Make the version check and the database
29106 initialization atomic.
29108 2015-10-21 Werner Koch <wk@gnupg.org>
29110 build: Make --disable-g13 the default.
29111 + commit 485e0a221deb5c68f29b6a7a110b349dbe41c027
29112 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --enable-g13. Remove
29113 --enable-gpgtar because that is enabled anyway.
29114 * configure.ac: Do not build g13 by default.
29116 dirmngr: Rename file dns-cert.c.
29117 + commit 5055b617a94587580bc16a56bb82333077b05693
29118 * dirmngr/dns-cert.c: Rename to dirmngr/dns-stuff.c.
29119 * dirmngr/dns-cert.h: Rename to dirmngr/dns-stuff.h and change
29121 * dirmngr/t-dns-cert.c: Rename to dirmngr/t-dns-stuff.c.
29122 * dirmngr/Makefile.am: Adjust.
29124 common: Add status code for use by g13.
29125 + commit 42571a38344e39f747315f754700a8181b8744fe
29126 * common/status.h (STATUS_PLAINTEXT_FOLLOWS): New.
29128 2015-10-20 Werner Koch <wk@gnupg.org>
29130 dirmngr: Prefer ADNS over system resolver.
29131 + commit 58ebe50bdf4837e9ab2d3f8c6e5fcf28c66f26e9
29132 * configure.ac (HAVE_ADNS_IF_TORMODE): New ac_define.
29133 (USE_DNS_CERT): Prefer ADNS over the system resolver.
29134 * dirmngr/dns-cert.c (tor_mode): New global var.
29135 (enable_dns_tormode): New func.
29136 (get_dns_cert): Use DNS resolver at 8.8.8.8 in tor-mode.
29137 * dirmngr/server.c (cmd_dns_cert): If supported allow DNS requests.
29139 w32: Allow building again.
29140 + commit c83b627174f46e841f1ccc018322fe499969c267
29141 * dirmngr/http.c (connect_server): Fix called function name.
29143 build: Allow building without SQLlite support.
29144 + commit 734c61dc9d4915605816803182c9adcc1594e008
29145 * configure.ac: Add option --dsiable-tofu and --disable-sqlite.
29146 (NEED_SQLITE_VERSION): New var.
29147 (USE_TOFU): New ac_define and am_conditional.
29148 * autogen.sh (build-w32): Add PKG_CONFIG_LIBDIR to configure so that
29149 pkg-config find the correct .pc file.
29151 * g10/Makefile.am (tofu_source): New. Build only if enabled.
29152 * g10/gpg.c (parse_trust_model)[!USE_TOFU]: Disable tofu models.
29153 (parse_tofu_policy)[!USE_TOFU]: Disable all.
29154 (parse_tofu_db_format)[!USE_TOFU]: Disable all.
29155 (main) <aTOFUPolicy>[!USE_TOFU]: Skip.
29156 * g10/keyedit.c (show_key_with_all_names_colon)[!USE_TOFU]: Do not
29157 call tofu functions.
29158 * g10/keylist.c (list_keyblock_colon)[!USE_TOFU]: Ditto.
29159 * g10/trustdb.c (tdb_get_validity_core)[!USE_TOFU]: Skip tofu
29162 2015-10-20 Neal H. Walfield <neal@g10code.com>
29164 gpg: Don't die immediately if the TOFU DB is locked.
29165 + commit 26d457c218c2e93b2e2cf316f0c1074c70894d0f
29166 * g10/tofu.c (opendb): Don't die immediately if the DB is locked.
29168 gpg: Improve output.
29169 + commit bc9ff6c85e2d89be4ee873b8a72a214759a66157
29170 * g10/tofu.c (get_trust): Also show the binding when indicating a
29173 gpg: Synchronize translation template.
29174 + commit 251c070f91e2c65baa3f1195f14a176440a8aafa
29175 * g10/tofu.c (show_statistics): Synchronize translation template.
29177 gpg: When showing conflicts, also show bindings with no recorded sigs.
29178 + commit d3eca517745a862432fcfeaa729e5333b15ffa6a
29179 * g10/tofu.c (signature_stats_collect_cb): If the time_ago column is
29180 NULL, then both time_ago and count should be 0.
29181 (get_trust): Reverse the direction of the join so that we also get
29182 statistics about bindings without any signatures.
29185 + commit 445f94bc81b20959a667a4ad80ea6c73059540bf
29186 * g10/tofu.c (show_statistics): Improve text.
29188 gpg: Use the right variable to display the information.
29189 + commit 4957e3236796979b58f35628351505ea5f4e936a
29190 * g10/tofu.c (get_trust): Use the right variable to display the
29193 gpg: Make failing to create a directory a soft error.
29194 + commit eb8a0b051faa03584b3820200e10301936e82f51
29195 * g10/tofu.c (getdb): Don't exit if we can't create the directory.
29196 Just return an error.
29198 common: Make sure tilde expansion works for the mkdir functions.
29199 + commit c3bb9fccb7963a0918b9ec6a4f10d568fac7c125
29200 * common/mkdir_p.c (gnupg_amkdir_p): Use make_filename_try on the
29201 first directory component as well.
29203 gpg: Remove unused prototype digest_algo_from_sig.
29204 + commit d1a0b520b15bb941cdbf66c2e832c617af778ac8
29205 * g10/packet.h (digest_algo_from_sig): Remove prototype without a
29206 corresponding implementation.
29208 2015-10-19 Werner Koch <wk@gnupg.org>
29210 dirmngr: Allow building with libassuan < 2.3.
29211 + commit 4e42ad300b3de9fab25095a9e82431b1ea2740e7
29212 * dirmngr/dirmngr.c (set_tor_mode): Use newer assuan function only if
29214 * dirmngr/http.c (http_raw_connect): Ditto.
29216 2015-10-19 Neal H. Walfield <neal@g10code.com>
29218 gpg: Fix --desig-revoke.
29219 + commit c37621166e9cc2a818de73bc99287a393dbb5744
29220 * g10/revoke.c (gen_desig_revoke): Add additional parameter ctrl.
29221 Check that the secret key is available. If not, display an error
29224 gpg: Improve function documentation and some comments.
29225 + commit a608ee750dd83bf77a5fb4f0ab5bcf812436ba4d
29226 * g10/main.h: Improve function documentation.
29227 * g10/packet.h.h: Improve function documentation.
29228 * g10/sig-check.c: Improve function documentation and some comments.
29230 gpg: Improve and regularize naming of signature checking functions.
29231 + commit 0433e667029508d6933e8798d3d95bcdde70a7aa
29232 * g10/packet.h (signature_check): Rename from this...
29233 (check_signature): ... to this. Update users.
29234 (signature_check2): Rename from this...
29235 (check_signature2): ... to this. Update users.
29236 * g10/sig-check.c (do_check): Rename from this...
29237 (check_signature_end): ... to this. Update users.
29238 (do_check_messages): Rename from this...
29239 (check_signature_metadata_validity): ... to this. Update users.
29241 gpg: Mark local function as static.
29242 + commit 547a1b3fb881bb8581d03dbf4eacf49163eaa4b5
29243 * g10/tdbio.c (put_record_into_cache): Mark as static.
29245 2015-10-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
29247 gpg: Print warning when rejecting weak digests.
29248 + commit b98939812abf6c643c752ce7c325f98039a1a9e2
29249 * g10/misc.c (print_md5_rejected_note): Rename to ..
29250 (print_digest_rejected_note): this. Parameterize function to take an
29251 enum gcry_md_algos.
29252 * g10/sig-check.c: Use print_digest_rejected_note() when rejecting
29255 gpg: Add option --weak-digest to gpg and gpgv.
29256 + commit 76afaed65e3b0ddfa4923cb577ada43217dd4b18
29257 * g10/options.h: Add additional_weak_digests linked list to opts.
29258 * g10/main.h: Declare weakhash linked list struct and
29259 additional_weak_digest() function to insert newly-declared weak
29261 * g10/misc.c: (additional_weak_digest): New function.
29262 (print_digest_algo_note): Check for deprecated digests; use proper
29263 gcry_md_algos type.
29264 * g10/sig-check.c: (do_check): Reject weak digests in addition to MD5.
29265 * g10/gpg.c: Add --weak-digest option to gpg.
29266 * doc/gpg.texi: Document gpg --weak-digest option.
29267 * g10/gpgv.c: Add --weak-digest option to gpgv.
29268 * doc/gpgv.texi: Document gpgv --weak-digest option.
29270 2015-10-19 Werner Koch <wk@gnupg.org>
29272 dirmngr: Make --use-tor work - still leaks DNS.
29273 + commit 6983fd131f648ba4acd57b266de9868911874d14
29274 * dirmngr/dirmngr.c (set_tor_mode): New.
29275 (main, reread_configuration): Call it.
29276 * dirmngr/http.c (http_raw_connect, send_request): Check whether TOR
29277 mode is enabled if the FORCE_TOR flag is given.
29279 dirmngr: Use Assuan socket wrappers for http.c.
29280 + commit 8c609eaf35b547f02979ef0b206520dd0853b294
29281 * dirmngr/http.c: Include assuan.h. Changed all code taking a socket
29282 descriptor from int to assuan_fd_t.
29283 (my_unprotect, my_protect): New.
29284 (my_connect): Remove.
29285 (_my_socket_new, _my_socket_unref): use assuan_sock_close.
29286 (connect_server): Use assuan_sock_connect, assuan_sock_new, and
29288 * dirmngr/Makefile.am (t_common_ldadd): Add LIBASSUAN_LIBS.
29290 2015-10-19 Neal H. Walfield <neal@g10code.com>
29292 gpg: Fix formatting.
29293 + commit 253afa244487dd8129816615ac2865c9fe812aaf
29294 * g10/tofu.c (get_trust): Fix formatting.
29296 gpg: Don't forget to free some memory.
29297 + commit e56a116f9a1171ccf8b3293887a217953a46fc20
29298 * g10/tofu.c (tofu_register): Free SIG_DIGEST before returning.
29300 gpg: If a conflict occurs in batch mode, record that.
29301 + commit 55d88454652543c98d74376977d855e394df6c92
29302 * g10/tofu.c (get_trust): If a conflict occurs when MAY_ASK is false,
29303 set conflict to the key. When prompting the user, don't show the
29304 conflicting key if the conflicting key is the current key.
29306 2015-10-18 Werner Koch <wk@gnupg.org>
29308 gpg: Silence two more warnings.
29309 + commit c2c400714854d5a127a6966200d345d0d6cfc7d4
29310 * g10/trustdb.c (tdb_get_validity_core): Silence a warning.
29311 * g10/tofu.c (tofu_register): Move SIG_DIGEST computation to the top
29312 so that it is not uninitialized in case of an early error.
29314 gpg: Fix harmless compiler warnings.
29315 + commit 558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd
29316 * g10/tofu.h (_tofu_GET_POLICY_ERROR): New. This avoids warnings
29317 about undefined enum values in a switch.
29318 * g10/trustdb.h (_tofu_GET_TRUST_ERROR): New.
29319 * g10/tofu.c (TIME_AGO_FUTURE_IGNORE): Move to the top.
29320 (opendbs): Avoid compiler warning (use braces).
29321 (GET_POLICY_ERROR): Replace define by enum _tofu_GET_POLICY_ERROR.
29322 (get_policy): Remove assert.
29323 (GET_TRUST_ERROR): Replace by _tofu_GET_TRUST_ERROR macro.
29324 (show_statistics): Undef MIN_SECS et al. after use.
29326 common: Avoid warning about const char ** assignment.
29327 + commit e64c805b0c270d859ddf2c35d573110cf25e8d48
29328 * common/mkdir_p.c (gnupg_amkdir_p): Also strdup first item. Return
29329 an error on malloc failure.
29330 (gnupg_mkdir_p): Fix type of dirs and tmp_dirs.
29332 Move http module from common/ to dirmngr/.
29333 + commit 5aa1b392b1bf6fcf4cd380862c5affac39a4f34d
29334 * common/http.c: Move to ../dirmngr/.
29335 * common/http.h: Move to ../dirmngr/.
29336 * common/t-http.c: Move to ../dirmngr/.
29337 * common/tls-ca.pem: Move to ../dirmngr/.
29338 * common/Makefile.am: Do not build libcommontls.a libcommontlsnpth.a.
29339 Remove http.c related stuff.
29340 * po/POTFILES.in: Move http.c to dirmngr/.
29341 * dirmngr/Makefile.am (EXTRA_DIST): Add tls-ca.pem.
29342 (module_maint_tests): New.
29343 (noinst_PROGRAMS): Add module_maint_tests.
29344 (dirmngr_SOURCES): Add http.c and http.h.
29345 (dirmngr_LDADD): Remove libcommontlsnpth.
29346 (t_common_ldadd): Ditto.
29347 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
29348 (t_ldap_parse_uri_SOURCES): Add http.c.
29349 (t_ldap_parse_uri_CFLAGS): Build without npth.
29350 ($(PROGRAMS)): Do not require libcommontls.a libcommontlsnpth.a.
29351 * dirmngr/dirmngr.h, dirmngr/ks-engine.h: Fix include of http.h.
29353 2015-10-18 Neal H. Walfield <neal@g10code.com>
29356 + commit 128a456e775edf393d47e40bb9ae8b62434e2978
29357 * g10/tofu.c (get_trust): Fix assert.
29359 g10: Add TOFU support.
29360 + commit f77913e0ff7be4cd9c6337a70ac715e6f4a43572
29361 * configure.ac: Check for sqlite3.
29362 (SQLITE3_CFLAGS): AC_SUBST it.
29363 (SQLITE3_LIBS): Likewise.
29364 * g10/Makefile.am (AM_CFLAGS): Add $(SQLITE3_CFLAGS).
29365 (gpg2_SOURCES): Add tofu.h and tofu.c.
29366 (gpg2_LDADD): Add $(SQLITE3_LIBS).
29367 * g10/tofu.c: New file.
29368 * g10/tofu.h: New file.
29369 * g10/options.h (trust_model): Define TM_TOFU and TM_TOFU_PGP.
29370 (tofu_db_format): Define.
29371 * g10/packet.h (PKT_signature): Add fields digest and digest_len.
29372 * g10/gpg.c: Include "tofu.h".
29373 (cmd_and_opt_values): Declare aTOFUPolicy, oTOFUDefaultPolicy,
29376 (parse_trust_model): Recognize the tofu and tofu+pgp trust models.
29377 (parse_tofu_policy): New function.
29378 (parse_tofu_db_format): New function.
29379 (main): Initialize opt.tofu_default_policy and opt.tofu_db_format.
29380 Handle aTOFUPolicy, oTOFUDefaultPolicy and oTOFUDBFormat.
29381 * g10/mainproc.c (do_check_sig): If the signature is good, copy the
29382 hash to SIG->DIGEST and set SIG->DIGEST_LEN appropriately.
29383 * g10/trustdb.h (get_validity): Add arguments sig and may_ask. Update
29385 (tdb_get_validity_core): Add arguments sig and may_ask. Update
29387 * g10/trust.c (get_validity) Add arguments sig and may_ask. Pass them
29388 to tdb_get_validity_core.
29389 * g10/trustdb.c: Include "tofu.h".
29390 (trust_model_string): Handle TM_TOFU and TM_TOFU_PGP.
29391 (tdb_get_validity_core): Add arguments sig and may_ask. If
29392 OPT.TRUST_MODEL is TM_TOFU or TM_TOFU_PGP, compute the TOFU trust
29393 level. Combine it with the computed PGP trust level, if appropriate.
29394 * g10/keyedit.c: Include "tofu.h".
29395 (show_key_with_all_names_colon): If the trust mode is tofu or
29396 tofu+pgp, then show the trust policy.
29397 * g10/keylist.c: Include "tofu.h".
29398 (public_key_list): Also show the PGP stats if the trust model is
29400 (list_keyblock_colon): If the trust mode is tofu or
29401 tofu+pgp, then show the trust policy.
29402 * g10/pkclist.c: Include "tofu.h".
29403 * g10/gpgv.c (get_validity): Add arguments sig and may_ask.
29404 (enum tofu_policy): Define.
29405 (tofu_get_policy): New stub.
29406 (tofu_policy_str): Likewise.
29407 * g10/test-stubs.c (get_validity): Add arguments sig and may_ask.
29408 (enum tofu_policy): Define.
29409 (tofu_get_policy): New stub.
29410 (tofu_policy_str): Likewise.
29411 * doc/DETAILS: Describe the TOFU Policy field.
29412 * doc/gpg.texi: Document --tofu-set-policy, --trust-model=tofu,
29413 --trust-model=tofu+pgp, --tofu-default-policy and --tofu-db-format.
29414 * tests/openpgp/Makefile.am (TESTS): Add tofu.test.
29415 (TEST_FILES): Add tofu-keys.asc, tofu-keys-secret.asc,
29416 tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and tofu-EE37CF96-1.txt.
29417 (CLEANFILES): Add tofu.db.
29418 (clean-local): Add tofu.d.
29419 * tests/openpgp/tofu.test: New file.
29420 * tests/openpgp/tofu-2183839A-1.txt: New file.
29421 * tests/openpgp/tofu-BC15C85A-1.txt: New file.
29422 * tests/openpgp/tofu-EE37CF96-1.txt: New file.
29423 * tests/openpgp/tofu-keys.asc: New file.
29424 * tests/openpgp/tofu-keys-secret.asc: New file.
29426 2015-10-16 Neal H. Walfield <neal@g10code.com>
29428 common: Prefix the mkdir functions with gnupg_. Make args const.
29429 + commit 93e855553eba03f5c31682e0aaf39f18f29860b7
29430 * common/mkdir_p.h (mkdir_p): Rename from this...
29431 (gnupg_mkdir_p): ... to this. Change directory_component's type from
29432 char * to const char *.
29433 (amkdir_p): Rename from this...
29434 (gnupg_amkdir_p): ... to this. Change directory_component's type from
29435 char * to const char *.
29436 * common/mkdir_p.c (mkdir_p): Rename from this...
29437 (gnupg_mkdir_p): ... to this. Change directory_component's type from
29438 char * to const char *.
29439 (amkdir_p): Rename from this...
29440 (gnupg_amkdir_p): ... to this. Change directory_component's type from
29441 char * to const char *.
29443 2015-10-14 NIIBE Yutaka <gniibe@fsij.org>
29445 cleanup: Fix confusion between gpg_error_t and gpg_err_code_t.
29446 + commit 3de5ef759895837fe499cff7fb1fa7798e6d5754
29447 * dirmngr/crlcache.c (hash_dbfile): Use gpg_error_t for ERR.
29448 * kbx/keybox-update.c (keybox_set_flags): Call
29449 gpg_err_code_from_syserror.
29451 2015-10-13 NIIBE Yutaka <gniibe@fsij.org>
29453 po: Update Japanese translation.
29454 + commit 0b4ebc398cc8aad3f25f84034cd6b129e55f1368
29457 2015-10-12 Werner Koch <wk@gnupg.org>
29459 gpg: Try hard to use MDC also for sign+symenc.
29460 + commit 4584125802be11833a5b289e864b45eedc2b45fd
29461 * g10/encrypt.c (use_mdc): Make it a global func.
29462 * g10/sign.c (sign_symencrypt_file): Use that function to decide
29463 whether to use an MDC.
29464 * tests/openpgp/conventional-mdc.test: Add a simple test case.
29466 2015-10-09 Werner Koch <wk@gnupg.org>
29469 + commit 086b8738f71ba26d36287db81f6d78116053ba66
29472 2015-10-09 NIIBE Yutaka <gniibe@fsij.org>
29474 agent: simplify agent_get_passphrase.
29475 + commit 5a12c45666cd16bc750d7f0e63620c295feb77ea
29476 * agent/call-pinentry.c (agent_get_passphrase): Simplify.
29478 agent: fix agent_askpin.
29479 + commit 818fa4f71e1056831b35d0f8aff715c0e1d537e6
29480 * agent/call-pinentry.c (agent_askpin): Fix off-by-one error.
29482 agent: Fix function return type for check_cb and agent_askpin.
29483 + commit f70f6695368444d8058305ab696e5e5a1bace18c
29484 * agent/call-pinentry.c (unlock_pinentry): Return gpg_error_t.
29485 (start_pinentry, setup_qualitybar): Likewise.
29486 (agent_askpin): Fix return value check of check_cb.
29487 * agent/command-ssh.c (reenter_compare_cb): Return gpg_error_t.
29488 (ssh_identity_register): Fix return value check of agent_askpin.
29489 * agent/cvt-openpgp.c (try_do_unprotect_cb): Return gpg_error_t.
29490 * agent/findkey.c (try_unprotect_cb): Likewise.
29491 * agent/genkey.c (reenter_compare_cb): Return gpg_error_t.
29492 (agent_ask_new_passphrase): Fix return value check of agent_askpin.
29494 2015-10-08 Andre Heinecke <aheinecke@intevation.de>
29496 dirmngr: Default to http protocol for http-proxy.
29497 + commit ea079d283de6bf4ac70d7530fac70938e7c5e8f5
29498 * common/http.c (send_request): Fix handling for hostname:port string.
29500 2015-10-08 Werner Koch <wk@gnupg.org>
29502 common: Allow building of mkdir_p.c for Windows.
29503 + commit 4c298525903f844eee95ecbcdc45f5ac034fa148
29504 * common/mkdir_p.c: Change license and comment debug statements.
29505 (amkdir_p, mkdir_p): Fail on malloc error and use default_errsource to
29506 build an error code. Change return value to gpg_error_t.
29507 (amkdir_p): Use gnupg_mkdir.
29509 * common/membuf.c: Include util.h first to avoid redefined macro
29512 gpg: Add option --print-dane-records.
29513 + commit d7b8e76f9930750d669405dee3108c9bc8e87b91
29514 * g10/options.h (opt): Add field "print_dane_records".
29515 * g10/gpg.c (oPrintDANERecords): new.
29516 (opts): Add --print-dane-records.
29517 (main): Set that option.
29518 * g10/export.c (do_export): Remove EXPORT_DANE_FORMAT handling.
29519 (do_export_stream): Add EXPORT_DANE_FORMAT handling.
29520 * g10/keylist.c (list_keyblock_pka): Implement DANE record printing.
29522 * g10/gpgv.c (export_pubkey_buffer): New stub.
29523 * g10/test-stubs.c (export_pubkey_buffer): New stub.
29525 gpg: Pass CTRL parameter to all key listing functions.
29526 + commit b6d621583fc9cbda6f9376a24f2f4cf11499a4fd
29527 * g10/keylist.c (public_key_list): Add arg CTRL.
29528 (secret_key_list): Ditto.
29529 (list_all, list_one): Ditto.
29530 (locate_one): Ditto.
29531 (list_keyblock_pka): Ditto.
29532 (list_keyblock): Ditto.
29533 (list_keyblock_direct): Ditto.
29534 * g10/keygen.c (proc_parameter_file): Add arg CTRL.
29535 (read_parameter_file): Ditto.
29536 (quick_generate_keypair): Ditto.
29537 (do_generate_keypair): Ditto.
29538 (generate_keypair): Pass arg CTRL.
29539 * g10/gpg.c (main): Pass arg CTRL to quick_generate_keypair.
29541 2015-10-07 Werner Koch <wk@gnupg.org>
29543 gpg: Remove unfinished experimental code to export as S-expressions.
29544 + commit a400958323d93036dca9c63135b167012ea64f8b
29545 * g10/options.h (EXPORT_SEXP_FORMAT): Remove.
29546 (EXPORT_DANE_FORMAT): New.
29547 * g10/export.c (parse_export_options): Remove "export-sexp-format".
29548 (export_seckeys): Adjust for removed option.
29549 (export_secsubkeys): Ditto.
29550 (do_export): Prepare for DANE format.
29551 (build_sexp, build_sexp_seckey): Remove.
29552 (do_export_stream): Remove use of removed functions.
29554 2015-10-06 Werner Koch <wk@gnupg.org>
29556 gpg: Add new --auto-key-locate mechanism "dane".
29557 + commit 9ac31f91b10059474da1c9580fb99e94278d4c11
29558 * g10/call-dirmngr.c (gpg_dirmngr_dns_cert): Allow fetching via DANE.
29559 * g10/keyserver.c (keyserver_import_cert): Add arg "dane_mode".
29560 * g10/options.h (AKL_DANE): New.
29561 * g10/getkey.c (get_pubkey_byname): Implement AKL_DANE.
29562 (parse_auto_key_locate): Ditto.
29564 dirmngr: Addlow fetching keys using OpenPGP DANE.
29565 + commit 264a81d82737369ee8beef771cf2bd2cd874320a
29566 * dirmngr/server.c (cmd_dns_cert): Add option --dane.
29568 dirmngr: Improve DNS code to retrieve arbitrary records.
29569 + commit 211b8084ee4391baec35e8c5bd75a9ecbcb889a7
29570 * dirmngr/dns-cert.c (get_dns_cert): Add hack to retrieve arbitrary
29572 * dirmngr/dns-cert.h (DNS_CERTTYPE_RRBASE): New.
29573 (DNS_CERTTYPE_RR61): New.
29575 dirmngr: Change DNS code to make additions easier.
29576 + commit 6cf80dc77ec5df3722924301ff4be2475966937b
29577 * dirmngr/dns-cert.c (get_dns_cert) [!USE_ADNS]: Change loop to allow
29578 adding more resource types.
29580 dirmngr: Make commands RELOADDIRMNGR and KILLDIRMNGR work properly.
29581 + commit 7faf45effcd47d2d04d35090a1e01a1dbb99ec70
29582 * dirmngr/server.c (cmd_killdirmngr): Set assuan close flag.
29583 (cmd_reloaddirmngr): Use check_owner_permission.
29585 dirmngr: Do tilde expansion for --hkp-cacert.
29586 + commit 9db6547a00cded92c00c8f8382b1b605be1027d2
29587 * dirmngr/dirmngr.c (parse_rereadable_options): Do tilde expansion and
29588 check for cert file existance in option --hkp-cacert.
29590 gpg: Fail decryption for AES etc message w/o MDC.
29591 + commit 625e292108cc0fd9077769587a8c22abe7805e33
29592 * g10/mainproc.c (proc_encrypted): Fail for modern messages w/o MDC.
29594 2015-10-06 NIIBE Yutaka <gniibe@fsij.org>
29596 agent: Fix verification of signature for smartcard.
29597 + commit 4a5bd1720f5a3dbb26f5daeb03725cae29be7e24
29598 * agent/pksign.c (agent_pksign_do): Use public key smartcard.
29600 agent: Fix non-allocation for pinentry_loopback.
29601 + commit ce2a84b58833fd308d5fe11756721f39c953280a
29602 * agent/call-pinentry.c (agent_get_passphrase): Don't allocate, it will
29603 be allocated by pinentry_loopback.
29605 2015-10-05 Werner Koch <wk@gnupg.org>
29607 gpg: Install a dirmngr.conf file.
29608 + commit f3959f14b6c496c726bbca5230becb7b6844a234
29609 * g10/dirmngr-conf.skel: New.
29610 * g10/Makefile.am (EXTRA_DIST): Add file.
29611 (install-data-local, uninstall-local): Install that file.
29612 * g10/openfile.c (copy_options_file): Add arg "name", return a value,
29613 simplify with xstrconcat, and factor warning message out to:
29614 (try_make_homedir): here. Also install dirmngr.conf.
29615 * g10/options.skel: Remove --keyserver entry.
29617 gpg: Deprecate the --keyserver option.
29618 + commit ae471fa978589fb61ecb0f89bbfe4d43cf2d5eac
29619 * g10/keyserver.c (keyserver_refresh): Change return type to
29620 gpg_error_t. Use gpg_dirmngr_ks_list to print the name of the
29622 (keyserver_search): Do not print the "no keyserver" error
29623 message. The same error is anyway returned from dirmngr.
29624 * g10/call-dirmngr.c (ks_status_parm_s): Add field "keyword".
29625 (ks_status_cb): Handle other status keywords.
29626 (gpg_dirmngr_ks_list): New.
29627 * tools/gpgconf-comp.c (gc_options_gpg): Deprecate "keyserver".
29628 (gc_options_dirmngr): Add "Keyserver" group and "keyserver".
29630 dirmngr: Add option --keyserver.
29631 + commit a48e6de603c3a312f02b1b5fdb813032eeae9074
29632 * dirmngr/dirmngr.c (oKeyServer): New.
29633 (opts): Add "keyserver".
29634 (parse_rereadable_options): Parse that options
29635 (main): Add option to the gpgconf list.
29636 * dirmngr/dirmngr.h (opt): Add field "keyserver".
29637 * dirmngr/server.c (ensure_keyserver): New.
29638 (make_keyserver_item): New. Factored out from
29639 (cmd_keyserver): here. Call ensure_keyserver.
29640 (cmd_ks_search): Call ensure_keyserver.
29641 (cmd_ks_get): Ditto.
29642 (cmd_ks_fetch): Ditto.
29643 (cmd_ks_put): Ditto.
29645 dirmngr: Make clear that --use-tor is not yet ready for use.
29646 + commit 438730323a5d9bbf8dd5cd60d479b6c03f8721d0
29647 * dirmngr/dirmngr.c (main): Print a warning if --use-tor has been
29649 * tools/gpgconf-comp.c (gc_options_dirmngr): Make --use-tor invisible.
29651 gpgconf: Change displayed name of Dirmngr to "Key Acquirer".
29652 + commit c6400c1aa82239f1c154ca27596600cae964515d
29653 * tools/gpgconf-comp.c (gc_component): Change printed name.
29655 2015-10-02 Werner Koch <wk@gnupg.org>
29657 dirmngr: Fix use-after-free due to a realloc shrinking.
29658 + commit 75c64c2b6d77856b90903cc3b7c6a2f62ff8eb7b
29659 * dirmngr/ks-engine-hkp.c (map_host): Do not use original pointer
29662 agent: Fix alignment problem with the second passphrase struct.
29663 + commit ddf9dd135acd2b3635bb986f6dfc0e4e446d5fad
29664 * agent/genkey.c (agent_ask_new_passphrase): Use a separate malloc for
29665 PI2. Check return value of the malloc function.
29666 * agent/command-ssh.c (ssh_identity_register): Use a separate malloc
29669 2015-10-01 Werner Koch <wk@gnupg.org>
29671 gpg: Fix a practical hang after use of --faked-system-time.
29672 + commit 2acceba5cc299796c7b5b1851a9baeb75d9f32a1
29673 * g10/sign.c (update_keysig_packet): Bail out if we would need to long
29674 for a new timestamp.
29676 gpg: Print more info with "check selfsig".
29677 + commit 2c60663a72f090573c4869e305b098b4b1fb23bd
29678 * g10/keyedit.c (print_and_check_one_sig): Print more Some sigsub
29681 gpg: Add debug helper to --edit-keys's check sub-command.
29682 + commit 13a3f65968f4a8205ca664cc46b1a53de4dc489b
29683 * g10/keyedit.c (print_and_check_one_sig): Add arg "extended" and
29684 print an asterisk for the chosen selfsig.
29685 (check_all_keysigs): Add arg "only_selfsig"
29686 (keyedit_menu) <cmdCHECK>: Add optional arg "selfsig".
29688 2015-10-01 NIIBE Yutaka <gniibe@fsij.org>
29690 common: Fix strsplit.
29691 + commit a9895a5a72a851c5fcc70f16d5f8f588cc885751
29692 * common/stringhelp.c (strsplit): Fix arguments order.
29694 2015-09-30 Neal H. Walfield <neal@g10code.com>
29696 common: Add mkdir_p.
29697 + commit c8584a1e559bc720412e1a2fc546a54ff4517205
29698 * common/mkdir_p.c: New file.
29699 * common/mkdir_p.h: New file.
29700 * common/Makefile.am (common_sources): Add mkdir_p.c and mkdir_p.h.
29702 common: Remove unused files.
29703 + commit 5576146ede40b42bc632fd9697dd429a4d1409cf
29704 * common/xmalloc.c: Remove file.
29705 * common/xmalloc.h: Remove file.
29707 common: Include <gpg-error.h>.
29708 + commit 270d3f55f9193ebda5e1b642d58daf905019914d
29709 * common/logging.h: Include <gpg-error.h>.
29711 2015-09-29 Neal H. Walfield <neal@g10code.com>
29713 g10: Remove unused struct cmp_help_context_s.
29714 + commit 8ab63e4b5018044ecfb0b9910412487066886826
29715 * g10/sig-check.c (struct cmp_help_context_s) Remove unused struct.
29717 g10: Avoid an unnecessary copy.
29718 + commit 12443eafa6e19b94a8b554126423e2a5ccc2dd7e
29719 * g10/sig-check.c (signature_check2): Avoid copying PK to RET_PK.
29720 Instead, directly use the provided storage. If none is provided
29723 2015-09-29 NIIBE Yutaka <gniibe@fsij.org>
29725 ssh: Fix fingerprint computation for EdDSA key.
29726 + commit 5c067d54d349fdfb3243634789c8841515d2c28f
29727 * common/ssh-utils.c (get_fingerprint): Handle the prefix of 0x40.
29728 * common/t-ssh-utils.c (sample_keys): Add a new key.
29730 agent: RSA signature verification by gpg-agent.
29731 + commit cfbe6ba9cf1414e9aa4977e2bbaecaa43154b2ae
29732 * g10/sign.c (do_sign): Let verify signature by gpg-agent.
29733 * agent/pksign.c (agent_pksign_do): Call gcry_pk_verify for RSA.
29735 2015-09-28 Werner Koch <wk@gnupg.org>
29737 common: Provide two new error code replacements.
29738 + commit f1effdc5ecd0cc52a28db7ae28a5c28f33486542
29739 * common/util.h (GPG_ERR_FALSE, GPG_ERR_TRUE): Rew replcements.
29741 common: Change calling convention for gnupg_spawn_process.
29742 + commit 83811e3f1f0c615b2b63bafdb49a35a0fc198088
29743 * common/exechelp.h (GNUPG_SPAWN_NONBLOCK): New.
29744 (GNUPG_SPAWN_RUN_ASFW, GNUPG_SPAWN_DETACHED): Macro to replace the
29746 * common/exechelp.h (gnupg_spawn_process): Change function to not take
29747 an optional stream for stdin but to return one.
29748 * common/exechelp-posix.c (gnupg_spawn_process): Implement change.
29749 (create_pipe_and_estream): Add args outbound and nonblock.
29750 * common/exechelp-w32.c (gnupg_spawn_process): Implement change.
29752 2015-09-28 NIIBE Yutaka <gniibe@fsij.org>
29754 scd: Handle error correctly.
29755 + commit 6bb7206e357acfd7276a8f1334c0f0c9cc6ed100
29756 * scd/apdu.c (apdu_connect): Initialize variables and check an error
29757 of apdu_get_status_internal.
29759 2015-09-22 Werner Koch <wk@gnupg.org>
29761 ssh: Add 256, 384 and 521 bit test keys for the fingerprint.
29762 + commit 12ff806d1b63d08cb43d131065d51353495d9346
29763 * common/t-ssh-utils.c (sample_keys): Add 3 new keys.
29765 ssh: Fix fingerprint computation for 384 bit ECDSA keys.
29766 + commit 2167951b275bae51cf669c02547e2e7ea8fbe2ee
29767 * common/ssh-utils.c (get_fingerprint): Fix hashed string.
29769 2015-09-19 NIIBE Yutaka <gniibe@fsij.org>
29771 agent: Fix importing ECC key.
29772 + commit 1542dc604b9c3e6a6a99750c48f7800e72584a89
29773 * agent/cvt-openpgp.c (convert_from_openpgp_main): Only encrypted
29774 parameters are stored as opaque.
29775 (apply_protection): ARRAY members are all normal, non-opaque MPI.
29776 (extract_private_key): Get public key as normal, non-opaque MPI.
29777 Remove support of ECC key with '(flags param)'.
29778 Remove support of "ecdsa" and "ecdh" keys of our experiment.
29780 scd: Fix KEYTOCARD handling for ECC key.
29781 + commit 708b7eccdef8d274bd5578b9a5fd908e9685c795
29782 * scd/app-openpgp.c (ecc_writekey): Only public key can be native
29785 2015-09-19 Neal H. Walfield <neal@g10code.com>
29787 common: Add new function strlist_length.
29788 + commit 8499c4f84a664bedbdf5a5689cb02420909f1968
29789 * common/strlist.c (strlist_length): New function.
29791 2015-09-18 Werner Koch <wk@gnupg.org>
29793 gpgconf: Change displayed name of Dirmngr to "Network Manager".
29794 + commit 819bba75aaed11ecef2e274add173718358212b9
29795 * tools/gpgconf-comp.c (gc_component): Change printed name.
29797 dirmngr: Add option --use-tor as a stub.
29798 + commit c091816b4a90d7eea6f8601ec1522a0a006794e8
29799 * dirmngr/dirmngr.h (opt): Add field "use_tor".
29800 * dirmngr/dirmngr.c (oUseTor): New.
29801 (opts): Add --use-tor.
29802 (parse_rereadable_options): Set option.
29803 (main): Tell gpgconf about that option.
29805 * dirmngr/crlfetch.c (crl_fetch): Pass TOR flag to the http module and
29806 return an error if LDAP is used in TOR mode.
29807 (ca_cert_fetch): Return an error in TOR mode.
29808 (start_cert_fetch): Ditto.
29809 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass TOR flag to the
29811 * dirmngr/ks-engine-hkp.c (send_request): Ditto.
29812 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
29813 * dirmngr/ks-engine-ldap.c (ks_ldap_get): Return an error in TOR mode.
29814 (ks_ldap_search): Ditto.
29815 (ks_ldap_put): Ditto.
29816 * dirmngr/ocsp.c (do_ocsp_request): Ditto. Also pass TOR flag to the
29819 * dirmngr/server.c (option_handler): Add "honor-keyserver-url-used".
29820 (cmd_dns_cert): Return an error in TOR mode.
29821 (cmd_getinfo): Add subcommand "tor"
29822 * tools/gpgconf-comp.c (gc_options_dirmngr): Add TOR group.
29824 gpg: Report a conflict between honor-keyserver-url and TOR.
29825 + commit d5a3142b8f2e5603357182f34f0b081b47eda23c
29826 * g10/call-dirmngr.c (create_context): Send option and print a verbose
29829 http: Add flag to force use of TOR (part 1)
29830 + commit b4bc1c8b10c7a794fa108678b80f76366a65c47d
29831 * common/http.h (HTTP_FLAG_FORCE_TOR): New.
29832 * common/http.c (http_raw_connect, send_request): Detect flag and
29833 return an error for now.
29835 2015-09-17 NIIBE Yutaka <gniibe@fsij.org>
29837 po: Update Japanese translation.
29838 + commit f986b23e13eaa2d7705733b4bf6b5210311f181a
29841 scd: Fix ccid-driver timeout for OpenPGPcard v2.1.
29842 + commit 6510df3a7cd2b5bf44fac1e4d50ee54b8c897daa
29843 * scd/ccid-driver.c (CCID_CMD_TIMEOUT): New.
29844 (ccid_transceive_apdu_level, ccid_transceive): Use.
29846 2015-09-16 Werner Koch <wk@gnupg.org>
29848 agent: New option --pinentry-invisible-char.
29849 + commit 93d257c81952cbb08a744a9cea6749639aa32cd7
29850 * agent/gpg-agent.c (oPinentryInvisibleChar): New.
29851 (opts): Add option.
29852 (parse_rereadable_options): Set option.
29853 * agent/agent.h (opt): Add field pinentry_invisible_char.
29854 * agent/call-pinentry.c (start_pinentry): Pass option to pinentry.
29856 g13: Move some code to a separate module.
29857 + commit 9e65bbd255c43f0e59f35b0003052234d69042be
29858 * g13/g13-common.c, g13/g13-common.h: New.
29859 * g13/Makefile.am (g13_SOURCES): Add new files.
29860 * g13/g13.c (g13_errors_seen): Move to g13-common.c.
29861 (cmdline_conttype): New.
29862 (main): Use g13_init_signals and g13_install_emergency_cleanup.
29863 (emergency_cleanup, g13_exit): Move to g13-common.c.
29864 * g13/g13.h: Move OPT and some other code to g13-common.h.
29866 gpg: Fix skip function dummy parameter.
29867 + commit 8eb3a1797a1e7cb59a8342a8aa917756fe67949f
29868 * g10/trustdb.c (search_skipfnc): Fix dummy argument
29870 gpg: Change last commit to avoid extra translations.
29871 + commit f71ed902def81f9408d9094289d8a97abaa0f609
29872 * g10/keyedit.c (keyedit_menu): Do not print usage hints in expert
29875 2015-09-16 Neal H. Walfield <neal@g10code.com>
29877 g10: Improve error message.
29878 + commit 172af881a1cfe82dfec1c43102d6c464e67ef230
29879 * g10/keyedit.c (keyedit_menu): When complaining that a user ID or key
29880 must be selected, indicate what command to use to do this.
29882 g10: Be more careful when merging self-signed data.
29883 + commit 6845737736d3264d7ee8b7364d908951010084c9
29884 * g10/getkey.c (merge_selfsigs_main): Stop looking for self-signed
29885 data belonging to the public key when we encounter an attribute packet
29886 or a subkey packet, not just a user id packet. When looking for
29887 self-signed data belonging to a user id packet, stop when we see a
29888 user attribute packet.
29890 g10: Simplify some complicated boolean expressions.
29891 + commit c31e089129c0102c1710522d71fbe1880e84d68e
29892 * g10/getkey.c (finish_lookup): Simplify logic.
29894 g10: Also mark revoked and expired keys as unusable.
29895 + commit 77c2ad4a817c129b899708399ed2078a52b452b8
29896 * g10/getkey.c (skip_unusable): Also mark the key as unusable if it
29897 has been revoked or has expired.
29899 g10: Release resources when returning an error in get_seckey.
29900 + commit 1b601de06a57c78537a336093d2531d8c58bc0d2
29901 * g10/getkey.c (get_seckey): If the key doesn't have a secret key,
29904 g10: Improve documentation and comments for getkey.c.
29905 + commit cab581c486e1987445092b1afdf2cba1f62d017d
29906 * g10/getkey.c: Improve documentation and comments for most
29907 functions. Move documentation for public functions from here...
29908 * g10/keydb.h: ... to here.
29910 g10: Remove unused function have_any_secret_key.
29911 + commit 7333e704efde6923d4b914b37e9a92c4a5bab156
29912 * g10/getkey.c (have_any_secret_key): Remove function.
29914 g10: Bring cache semantics closer to non-cache semantics.
29915 + commit 5e233e12f55be00f5659c63bc32fbdca2ec93136
29916 * g10/getkey.c (get_pubkey_fast): When reading from the cache, only
29917 consider primary keys.
29919 g10: Break out of the loop earlier.
29920 + commit 3940f10af7915b080bf4ed25ceb7e20b52e3cd3e
29921 * g10/getkey.c (have_secret_key_with_kid): Once we find the relevent
29922 key or subkey, stop searching.
29924 g10: Don't skip legacy keys if the search mode is KEYDB_SEARCH_MODE_NEXT
29925 + commit 50affffe93a07643f2610c7a5f3d6f61988855e8
29926 * g10/getkey.c (lookup): Also don't skip legacy keys if the search
29927 mode is KEYDB_SEARCH_MODE_NEXT.
29929 g10: Remove unused function get_seckeyblock_byfprint.
29930 + commit efbaa8f891812e13ae9e689299aa2cd51781ccb3
29931 * g10/keydb.h (get_seckeyblock_byfprint): Remove prototype.
29932 * g10/getkey.c (get_seckeyblock_byfprint): Remove function.
29934 g10: Remove unused function get_seckey_byfprint.
29935 + commit e2b300801ed7143fa924df5442ec2b61079c0bbb
29936 * g10/keydb.h (get_seckey_byfprint): Remove prototype.
29937 * g10/getkey.c (get_seckey_byfprint): Remove function.
29939 g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
29940 + commit 80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5
29941 * g10/keydb.h (get_seckey_byname): Rename from this...
29942 (get_seckey_default): ... to this. Drop the parameter name. Update
29944 * g10/getkey.c (get_seckey_byname): Rename from this...
29945 (get_seckey_default): ... to this. Drop the parameter name. Drop the
29946 code which assumed that NAME is not NULL.
29948 g10: Eliminate the redundant function get_keyblock_byfprint.
29949 + commit dc69804ab0576fbc87297215d63b37a680d74d4d
29950 * g10/keydb.h (get_keyblock_byfprint): Remove prototype. Replace use
29951 of this function with get_pubkey_byfprint.
29952 * g10/getkey.c (get_pubkey_byname): Remove function.
29954 g10: Simplify semantics of get_pubkey_byname.
29955 + commit 911fcca36d61afd061e9e6dc0584bb069353db89
29956 * g10/getkey.c (get_pubkey_byname): If R_KEYBLOCK is not NULL, return
29957 the keyblock in R_KEYBLOCK independent of whether PK is set or not.
29959 g10: Eliminate the redundant function get_pubkey_byname.
29960 + commit b4672e4d48fb1e1e4d17551c4c828763d1dfbb57
29961 * g10/getkey.c (get_pubkey_byname): Remove function.
29962 (lookup): Replace use of get_pubkey_byname by get_pubkey_byfprint.
29964 g10: Eliminate the redundant function get_pubkey_end.
29965 + commit 65e58ae6748c280c8633d2ca5f227ebe1220805d
29966 * g10/keydb.h (get_pubkey_end): Remove declaration. Replace use of
29967 function with getkey_end.
29968 * g10/getkey.c (get_pubkey_byname): Remove function.
29970 g10: Eliminate the redundant function get_pubkey_next.
29971 + commit be6743b2e19241f66148bf89c3442d8e2ebcd63e
29972 * g10/keydb.h (get_pubkey_next): Remove prototype.
29973 * g10/getkey.c (get_pubkey_next): Remove function.
29974 * g10/keylist.c (locate_one): Use getkey_next instead of
29977 kbx: Change skipfnc's prototype so that we can provide all information.
29978 + commit 9acbeac23668a1d0dabca27d7825430d76e095c2
29979 * kbx/keybox-search-desc.h (struct keydb_search_desc.skipfnc): Change
29980 third parameter to be the index of the user id packet in the keyblock
29981 rather than the packet itself. Update users.
29983 g10: Remove unused prototype (get_pubkey_byfpr).
29984 + commit 83e17ab1b4cf4420f2abaf9e1f4017a9473fb281
29985 * g10/keydb.h (get_pubkey_byfpr): Remove unused prototype.
29987 g10: Remove unused function (get_pubkey_bynames).
29988 + commit b06f96ba4f57f55194efcd37a0e3a2aa5450b974
29989 * g10/keydb.h (get_pubkey_bynames): Remove prototype.
29990 * g10/getkey.c (get_pubkey_bynames): Remove function.
29992 g10: Simplify code. Turn struct getkey_ctx_s.found_key into an argument
29993 + commit d47e84946ee010917cfc3501062721b74afbb771
29994 * g10/getkey.c (struct getkey_ctx_s): Remove field found_key.
29995 (lookup): Add argument ret_found_key. If not NULL, set it to the
29996 found key. Update callers.
29997 (pk_from_block): Add argument found_key. Use it instead of
29998 CTX->FOUND_KEY. Update callers.
29999 (finish_lookup): Return a KBNODE (the found key) instead of an int.
30000 Don't set CTX->FOUND_KEY. Return the found key instead.
30002 g10: Remove unused field struct getkey_ctx_s.kbpos.
30003 + commit c110e186e07fb1035dc757d322274f939df1c86d
30004 * g10/getkey.c (struct getkey_ctx_s): Remove field kbpos.
30005 (getkey_end): Don't clear CTX->KBPOS.
30007 g10: Simplify code: remove field struct getkey_ctx_s.keyblock.
30008 + commit 3798f73c07f33576bd02ba4a3256c626bd80752f
30009 * g10/getkey.c (struct getkey_ctx_s): Remove field keyblock.
30010 (finish_lookup): Add parameter keyblock. Update caller to pass this.
30011 (lookup): Add new local variable keyblock. Use this instead of
30012 ctx->keyblock for referencing the keyblock.
30014 2015-09-16 NIIBE Yutaka <gniibe@fsij.org>
30016 agent: Fix registering SSH Key of Ed25519.
30017 + commit 7d5999f0964c9412c0e18eb1adefdb729be68cd4
30018 * agent/command-ssh.c (stream_read_string): Add the prefix of 0x40.
30020 2015-09-15 NIIBE Yutaka <gniibe@fsij.org>
30022 po: Update Japanese translation.
30023 + commit faee25e670cfeb0d0166d7c59cc6a0b3842ee34d
30026 2015-09-10 Werner Koch <wk@gnupg.org>
30029 + commit 311816f6cf9d411dba060603e3c5d01c72824645
30032 tests: Silence the 5gb-packet test.
30033 + commit 7a0c3cc760367024305d23e2124ea4cbc7e802df
30034 * tests/openpgp/4gb-packet.test: Send output to /dev/null.
30036 g10: Fix make distcheck problem.
30037 + commit e92a8ab021672b19e5cd397fa555fcc8a3401e8b
30038 * g10/test.c: Include string.h.
30039 (prepend_srcdir): New. Taken from Libgcrypt.
30041 * g10/t-keydb.c (do_test): Malloc the filename.
30042 * g10/Makefile.am (AM_CPPFLAGS): Remove -DSOURCE_DIR
30043 (EXTRA_DIST): Add t-keydb-keyring.kbx.
30045 g10: Improve portability of the new test driver.
30046 + commit fbf24cd09abcdc3dec21db4114ab2db99ce21e4c
30047 * g10/test.c: Include stdio.h and stdlib.h.
30049 (print_results): Rename to exit_tests.
30050 (main): Remove atexit and call exit_tests. Set verbose.
30051 (ASSERT, ABORT): Call exit_tests instead of exit.
30053 2015-09-09 Werner Koch <wk@gnupg.org>
30055 dirmngr: Allow sending much larger keyblocks.
30056 + commit 19545e3a2d2990cba6d62f98cdb1f665b38ba4f1
30057 * dirmngr/server.c (MAX_CERT_LENGTH): Increase to 16k.
30058 (MAX_KEYBLOCK_LENGTH): Increase to 20M.
30060 2015-09-07 NIIBE Yutaka <gniibe@fsij.org>
30062 scd: Force key attribute change for writekey.
30063 + commit f10b427d0e2be333776fee2df8150145da36e587
30064 * scd/app-openpgp.c (change_rsa_keyattr): New.
30065 (change_keyattr_from_string): Use change_rsa_keyattr.
30066 (rsa_writekey): Call change_rsa_keyattr when different size.
30067 (ecc_writekey): Try to change key attribute.
30069 scd: KEYNO cleanup.
30070 + commit fd689e85423d0d80d725f0315c52d94f0e9766f8
30071 * scd/app-openpgp.c (get_public_key, send_keypair_info, do_readkey)
30072 (change_keyattr, change_keyattr_from_string, ecc_writekey, do_genkey)
30073 (compare_fingerprint, check_against_given_fingerprint): KEYNO starts
30076 2015-09-02 Neal H. Walfield <neal@g10code.com>
30078 g10: Remove unused field req_algo.
30079 + commit bd0c902f1de46eda03a065da41487e7e01ab4c50
30080 * g10/packet.h (PKT_public_key): Remove unused field req_algo. Remove
30082 * g10/getkey.c (struct getkey_ctx_s): Remove unused field req_algo.
30085 g10: Use a symbolic constant instead of a literal.
30086 + commit 1f03d4cd940fed26fc3ffa1742728d68c55ee5d1
30087 * g10/trustdb.c (KEY_HASH_TABLE_SIZE): Define.
30088 (new_key_hash_table): Use KEY_HASH_TABLE_SIZE instead of a literal.
30089 (release_key_hash_table): Likewise.
30090 (test_key_hash_table): Likewise.
30091 (add_key_hash_table): Likewise.
30093 g10: Add test for keydb as well as new testing infrastructure.
30094 + commit ee7ec1256b24dc340656c331ef92fc59cad817b6
30095 * g10/Makefile.am (EXTRA_DIST): Add test.c.
30096 (AM_CPPFLAGS): Add -DSOURCE_DIR="\"$(srcdir)\"".
30097 (module_tests): Add t-keydb.
30098 (t_keydb_SOURCES): New variable.
30099 (t_keydb_LDADD): Likewise.
30100 * g10/t-keydb.c: New file.
30101 * g10/t-keydb-keyring.kbx: New file.
30102 * g10/test-stubs.c: New file.
30103 * g10/test.c: New file.
30105 g10: Make the keyblock cache per-handle rather than global.
30106 + commit 60bc518645d3acfd4dcb79e61a2be6ce001e93aa
30107 * g10/keydb.c (keyblock_cache): Don't declare this variable. Instead...
30108 (struct keyblock_cache): ... turn its type into this first class
30110 (struct keydb_handle): ... and instantiate it once per database
30111 handle. Update all users.
30112 (keydb_rebuild_caches): Don't invalidate the keyblock cache.
30114 g10: If iobuf_seek fails when reading from the cache, do a hard read.
30115 + commit f076fa190e09eab5c586650d81e241e0bb85ce25
30116 * g10/keydb.c (keydb_get_keyblock): If the iobuf_seek fails when
30117 reading from the cache, then simply clear the cache and try reading
30120 iobuf: Reduce verbosity of test.
30121 + commit 219de84df9a8408fffedbb2600f5eb4c441950b6
30122 * common/t-iobuf.c (main): Reduce verbosity.
30124 iobuf: Add the IOBUF_INPUT_TEMP type to improve input temp handling.
30125 + commit f2d75ac7dc58f5ea59b231be6b83fea939b43ab8
30126 * common/iobuf.h (enum iobuf_use): Add new member, IOBUF_INPUT_TEMP.
30127 * common/iobuf.c (iobuf_temp_with_content): Create the iobuf as an
30128 IOBUF_INPUT_TEMP, not an IOBUF_INPUT buffer. Assert that LENGTH ==
30130 (iobuf_push_filter2): If A is an IOBUF_INPUT_TEMP, then make the new
30131 filter an IOBUF_INPUT filter and set its buffer size to
30133 (underflow): If A is an IOBUF_INPUT_TEMP, then just return EOF; don't
30134 remove already read data.
30135 (iobuf_seek): If A is an IOBUF_INPUT_TEMP, don't discard the buffered
30137 (iobuf_alloc): Allow USE == IOBUF_INPUT_TEMP.
30138 (pop_filter): Allow USE == IOBUF_INPUT_TEMP.
30139 (iobuf_peek): Allow USE == IOBUF_INPUT_TEMP.
30140 (iobuf_writebyte): Fail if USE == IOBUF_INPUT_TEMP.
30141 (iobuf_write): Fail if USE == IOBUF_INPUT_TEMP.
30142 (iobuf_writestr): Fail if USE == IOBUF_INPUT_TEMP.
30143 (iobuf_flush_temp): Fail if USE == IOBUF_INPUT_TEMP.
30145 iobuf: Rename IOBUF_TEMP to IOBUF_OUTPUT_TEMP.
30146 + commit 5ff5e72b9c275fbd978136b1028bbf251af26e57
30147 * common/iobuf.h (enum iobuf_use): Rename IOBUF_TEMP to
30148 IOBUF_OUTPUT_TEMP. Update users.
30150 iobuf: Use a first-class enum.
30151 + commit 24259d856b6cbdd679035512a8fb7c042de8f02e
30152 * common/iobuf.h (enum iobuf_use): Name the IOBUF_OUTPUT, etc. enum.
30153 (struct iobuf_struct): Change the field use's type to it.
30156 + commit 8522cdc2264804d0677b7c0a447a0b45cf4195e3
30157 * common/t-iobuf.c (content_filter): If there is nothing to read,
30158 don't forget to set *LEN to 0.
30159 (main): Fix checks.
30161 2015-09-01 Werner Koch <wk@gnupg.org>
30163 agent: Protect commit 135b1e3 against misbehaving Libgcrypt.
30164 + commit 9ba4ccdaf5e128fbea51ff142c63d4b359c7264d
30165 * agent/command-ssh.c (ssh_key_to_blob): Check DATALEN.
30167 gpg: Remove option --no-sig-create-check.
30168 + commit f9c83d84e7d33df76898975f5ac852efa9c4882a
30169 * g10/gpg.c (opts): Remove --no-sig-create-check.
30170 * g10/options.h (struct opt): Remove field no_sig_create_check.
30171 * g10/sign.c (do_sign): Always check unless it is RSA and we are using
30174 common: Assume an utf-8 locale on iconv errors.
30175 + commit 99c9bf7defd6c1ac9cc49c84e6c78eeb886a6952
30176 * common/utf8conv.c (handle_iconv_error): Use utf-8 as fallback.
30178 common: Fix regression in building argpase.c standalone.
30179 + commit bc23e69b70191f887dcb937007833d0187af181f
30180 * common/argparse.c (is_native_utf8) [GNUPG_MAJOR_VERSION]: New.
30182 2015-08-31 Neal H. Walfield <neal@g10code.com>
30184 g10: Don't leak memory if we fail to initialize a new database handle.
30185 + commit 04a6b903d0354be2c69c7f2c98987de17d68416e
30186 * g10/keydb.c (keydb_new): If we fail to open a keyring or keybox
30187 correctly release all resources.
30189 g10: Improve interface documentation of the keydb API.
30190 + commit 360b699e9b4b8f99bd790b3cd158cd6f0fd7c131
30191 * g10/keydb.c: Improve code comments and documentation of internal
30192 interfaces. Improve documentation of public APIs and move that to...
30193 * g10/keydb.h: ... this file.
30195 g10: Don't cache search results if the search didn't scan the whole DB.
30196 + commit efd1ead9e779eb3bd37384258e08ad921a934612
30197 * g10/keydb.c (struct keydb_handle): Add new field is_reset.
30198 (keydb_new): Initialize hd->is_reset to 1.
30199 (keydb_locate_writable): Set hd->is_reset to 1.
30200 (keydb_search): Set hd->is_reset to 0. Don't cache a key not found if
30201 the search started from the beginning of the database.
30203 g10: Have keydb_search_first call keydb_search_reset before searching.
30204 + commit 11d8ffc939a4d20cfb0082b2d966b1e1a7d61f8d
30205 * g10/keydb.c (keydb_search_first): Reset the handle before starting
30208 g10: Remove unused parameter.
30209 + commit 0377db4b3581561b1ffc5bb7c3b4d698e8993b3a
30210 * g10/keydb.h (keydb_locate_writable): Remove unused parameter
30211 reserved. Update users.
30213 2015-08-31 NIIBE Yutaka <gniibe@fsij.org>
30215 agent: Fix SSH public key for EdDSA.
30216 + commit 135b1e32f01beaceba8a4ecc774e23b56aca1d24
30217 * agent/command-ssh.c (ssh_key_to_blob): Remove the prefix 0x40.
30219 2015-08-26 Neal H. Walfield <neal@g10code.com>
30221 g10: Simplify cache. Only include data that is actually used.
30222 + commit fad91071cadff43d77ce2e524dfb03999ba6678e
30223 * g10/keydb.c (struct kid_list_s): Rename from this...
30224 (struct kid_not_found_cache_bucket): ... to this. Update users.
30225 Remove field state.
30226 (kid_list_t): Remove type.
30227 (KID_NOT_FOUND_CACHE_BUCKETS): Define. Use this instead of a literal.
30228 (kid_found_table): Rename from this...
30229 (kid_not_found_cache_bucket): ... to this. Update users.
30230 (kid_found_table_count): Rename from this...
30231 (kid_not_found_cache_count): ... to this. Update users.
30232 (kid_not_found_p): Only return whether a key with the specified key id
30233 is definitely not in the database.
30234 (kid_not_found_insert): Remove parameter found. Update callers.
30235 (keydb_search): Only insert a key id in the not found cache if it is
30236 not found. Rename local variable once_found to already_in_cache.
30238 2015-08-25 Werner Koch <wk@gnupg.org>
30240 Add configure option --enable-build-timestamp.
30241 + commit 9d07f6930aaa40dce92104e8c99241713d92eed2
30242 * configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default.
30244 gpg: Emit ERROR status for key signing failures.
30245 + commit 51b9b8fba4ee326013c2cc911c70cde4c5f81fc7
30246 * g10/keyedit.c (sign_uids): Write an ERROR status for a signing
30248 (menu_adduid, menu_addrevoker, menu_revsig): Ditto.
30249 (menu_revuid, menu_revkey, menu_revsubkey): Ditto.
30251 gpg: Print a new FAILURE status after most commands.
30252 + commit 9cdff09743c473a12359bfdb914578ede0e4e3e2
30253 * common/status.h (STATUS_FAILURE): New.
30254 * g10/cpr.c (write_status_failure): New.
30255 * g10/gpg.c (main): Call write_status_failure for all commands which
30256 print an error message here.
30257 * g10/call-agent.c (start_agent): Print an STATUS_ERROR if we can't
30258 set the pinentry mode.
30260 2015-08-24 Neal H. Walfield <neal@g10code.com>
30262 agent: Raise the maximum password length. Don't hard code it.
30263 + commit 348a6ebb63523305ce9f47d0f3e8a9086c338fed
30264 * agent/agent.h (MAX_PASSPHRASE_LEN): Define.
30265 * agent/command-ssh.c (ssh_identity_register): Use it instead of a
30266 hard-coded literal.
30267 * agent/cvt-openpgp.c (convert_from_openpgp_main): Likewise.
30268 * agent/findkey.c (unprotect): Likewise.
30269 * agent/genkey.c (agent_ask_new_passphrase): Likewise.
30271 2015-08-24 Werner Koch <wk@gnupg.org>
30273 sm: Support secret key export via the Assuan interface.
30274 + commit 3cf02192a890d04f8f558cb72d46f9bd7a378322
30275 * sm/server.c (cmd_export): Add options --secret, --raw, and --pkcs12.
30277 2015-08-23 Werner Koch <wk@gnupg.org>
30279 dirmngr: Allow sending of Zack's key.
30280 + commit 84f4c8811fc5bdd78693c4dc289389a8337cc257
30281 * dirmngr/server.c (MAX_KEYBLOCK_LENGTH): Increase to 1 MiB.
30283 gpg: Fix regression in packet parser from Aug 19.
30284 + commit 88317ae8c829bfeb1689415efbd32b7a232d7bd0
30285 * g10/parse-packet.c (parse): Use an int to compare to -1. Use
30288 gpg: Show not found keys with --locate-key --verbose.
30289 + commit 00def10d365a88ce2d034ea9a5d6be4b03285fa4
30290 * g10/keylist.c (locate_one): Print a diagnostic for a not-found key.
30292 2015-08-21 Neal H. Walfield <neal@g10code.com>
30294 common: Don't incorrectly reject 4 GB - 1 sized packets.
30295 + commit 09f2a7bca624d0492e1d7ab29ce19542249c13ff
30296 * g10/parse-packet.c (parse): Don't reject 4 GB - 1 sized packets.
30297 Add the constraint that the type must be 63.
30298 * kbx/keybox-openpgp.c (next_packet): Likewise.
30299 * tests/openpgp/4gb-packet.asc: New file.
30300 * tests/openpgp/4gb-packet.test: New file.
30301 * tests/openpgp/Makefile.am (TESTS): Add 4gb-packet.test.
30302 (TEST_FILES): Add 4gb-packet.asc.
30304 common: Don't assume on-disk layout matches in-memory layout.
30305 + commit 4f37820334fadd8c5036ea6c42f3dc242665c4a9
30306 * g10/packet.h (PKT_signature): Change revkey's type from a struct
30307 revocation_key ** to a struct revocation_key *. Update users.
30309 common: Don't incorrectly copy packets with partial lengths.
30310 + commit b3226cadf9bbef4a367072396e5b0abf37afff2d
30311 * g10/parse-packet.c (parse): We don't handle copying packets with a
30312 partial body length to an output stream. If this occurs, log an error
30315 common: Check parameters more rigorously.
30316 + commit 0143d5c1ca4d12ac252c14f01931f48131591065
30317 * g10/parse-packet.c (dbg_copy_all_packets): Check that OUT is not
30319 (copy_all_packets): Likewise.
30321 common: Don't continuing processing on error.
30322 + commit 48e792cc951a9d00fad0691ef7411c9e22cf675a
30323 * g10/parse-packet.c (dbg_parse_packet): Also return if parse returns
30325 (parse_packet): Likewise.
30326 (dbg_search_packet): Likewise.
30327 (search_packet): Likewise.
30329 common: Better respect the packet's length when reading it.
30330 + commit 73af66a0aada8f30d8f400fdc4f69e233fb53089
30331 * g10/parse-packet.c (parse_signature): Make sure PKTLEN doesn't
30332 underflow. Be more careful that a read doesn't read more data than
30333 PKTLEN says is available.
30335 2015-08-20 Werner Koch <wk@gnupg.org>
30337 po: Add lost translation of validity strings.
30338 + commit 0d5a4138f27187e7828ef8216758edc9b48b2c64
30339 * po/POTFILES.in (trust.c): Add missing file.
30340 * po/de.po: Changed German validity strings.
30341 * doc/help.de.txt: Ditto.
30343 2015-08-20 Neal H. Walfield <neal@g10code.com>
30345 g10/parse-packet.c:parse: Try harder to not ignore an EOF.
30346 + commit 0add91ae1ca3718e8140af09294c595f47c958d3
30347 * g10/parse-packet.c (parse): Be more robust: make sure to process any
30350 g10/parse-packet.c: Replace literal with symbolic expression.
30351 + commit 24a72dffa75a04611c98343140c4eb0fbfe2a59f
30352 * g10/parse-packet.c (dump_hex_line): Use sizeof rather than the
30355 Add documentation for g10/parse-packet.c.
30356 + commit 026feff4a8e3090fb152af72c73aaa80c78e4551
30357 * g10/packet.h: Add documentation for functions defined in
30359 * g10/parse-packet.c: Improve comments for many functions.
30361 g10/packet.h: Remove unused argument from enum_sig_subpkt.
30362 + commit c46e8bfe9a1ae3f1e5327d0451cffd6e4567b449
30363 * g10/packet.h (enum_sig_subpkt): Remove argument RET_N. Update
30365 * g10/parse-packet.c (enum_sig_subpkt): Remove argument RET_N.
30367 g10/parse-packet.c:mpi_read: Detect EOF and correct boundary conditions.
30368 + commit c271feb53664dbf2b4ccbae90a31b8e726481e2d
30369 * g10/parse-packet.c (mpi_read): Improve documentation. Correctly
30370 handle an EOF. On overflow, correctly return the number of bytes read
30373 common/iobuf.c: Make control flow more obvious.
30374 + commit 49f922286fa8adb2d2ca730eb7bbe67e684b20de
30375 * common/iobuf.c (iobuf_read): Make control flow more obvious.
30376 (iobuf_get_filelength): Likewise.
30377 (iobuf_get_fd): Likewise.
30378 (iobuf_seek): Likewise.
30380 common/iobuf.c: Add some sanity checks to catch programmer bugs.
30381 + commit c5da750cf3d53277fe6d86776bfe0d2304b05151
30382 * common/iobuf.c (iobuf_alloc): Check that BUFSIZE is not 0.
30383 (iobuf_readbyte): Check that A is an input filter. Check that the
30384 amount of read data is at most the amount of buffered data.
30385 (iobuf_read): Check that A is an input filter.
30386 (iobuf_writebyte): Check that A is not an input filter.
30387 (iobuf_writestr): Check that A is not an input filter.
30388 (iobuf_flush_temp): Check that A is not an input filter.
30390 common/iobuf.c:iobuf_write_temp: Elide redundant code.
30391 + commit e291b631c3b1aedf529078190cd51e2acfcd1d92
30392 * common/iobuf.c (iobuf_write_temp): Don't repeat iobuf_flush_temp.
30395 common/iobuf.c: Have iobuf_writestr use iobuf_write, not iobuf_writebyte
30396 + commit a6d4bca3b576c3c5dba1aa6e8c1039089e14147b
30397 * common/iobuf.c (iobuf_write): Don't write a byte at a time. Use
30400 common/iobuf: Improve documentation and code comments.
30401 + commit 1bfd1e43246c16e20f819bf5381ca21abde54458
30402 common/iobuf.h: Improve documentation and code comments.
30403 common/iobuf.c: Likewise.
30405 common/iobuf.c: Adjust buffer size of filters in front of temp filters.
30406 + commit 0d40c4e83f6fbfea2f494f1f88412d3132ff98bd
30407 * common/iobuf.c (iobuf_push_filter2): If the head filter is a temp
30408 filter, use IOBUF_BUFFER_SIZE for the new filter.
30410 common/iobuf.c: Buffered data should not be processed by new filters.
30411 + commit 827cc922d84d8113d4f13ebbed1314e03da5f7d2
30412 * common/iobuf.c (iobuf_push_filter2): If the pipeline is an output or
30413 temp pipeline, the new filter shouldn't assume ownership of the old
30414 head's internal buffer: the data was written before the filter was
30416 * common/t-iobuf.c (double_filter): New function.
30417 (main): Add test cases for the above bug.
30419 common/iobuf.c: Flush the pipeline in iobuf_temp_to_buffer.
30420 + commit 616181f3c757160af8539869a6d929faca4962c4
30421 * common/iobuf.c (iobuf_temp_to_buffer): Flush each filter in the
30422 pipeline and copy the data from the last (not the first) filter's
30425 common/iobuf.c: Combine iobuf_open, iobuf_create and iobuf_openrw.
30426 + commit 15ae99f887f4694de8468625d455d487d283f719
30427 * common/iobuf.c (do_open): New function, which is a generalization of
30428 iobuf_open, iobuf_Create, iobuf_openrw.
30429 (iobuf_open): Call do_open.
30430 (iobuf_create): Likewise.
30431 (iobuf_openrw): Likewise.
30433 common/iobuf.h: Remove iobuf_open_fd_or_name.
30434 + commit 8402815d8e0e04a44362968f88b3d484d2395402
30435 * common/iobuf.h (iobuf_open_fd_or_name): Remove prototype. Replace
30436 use with either iobuf_open or iobuf_fdopen_nc, as appropriate.
30437 * common/iobuf.c (iobuf_open): Remove function.
30439 common/iobuf.c: Rename iobuf_flush and make it a static function.
30440 + commit 6d49a2b6691f2dd0d8ac34a15f18cc2a0c3ba5d3
30441 * common/iobuf.h (iobuf_flush): Remove prototype.
30442 * common/iobuf.c (filter_flush): New static prototype.
30443 (iobuf_flush): Rename...
30444 (filter_flush): ... to this. Make static. Simplify code. Update
30447 common/iobuf.c: Don't abort freeing a pipeline if freeing a filter fails
30448 + commit 1f94646a86348128f585301fcd605e5e703fd77d
30449 * common/iobuf.c (iobuf_cancel): Don't abort freeing a pipeline if
30450 freeing a filter fails. This needs to a memory leak. Instead, keep
30451 freeing and return the error code of the first filter that fails.
30453 common/iobuf.c: Improve iobuf_peek.
30454 + commit a250f73783c06d7789ac65a395d9247f4ab44c26
30455 * common/iobuf.c (underflow): Take additional parameter
30456 clear_pending_eof. If not set, don't clear a pending eof when
30457 returning EOF. Update callers.
30458 (iobuf_peek): Fill the internal buffer, if needed, to be able to
30459 better satisfy any request.
30461 common/iobuf.c: When requested, fill the buffer even if it is not empty.
30462 + commit c7ad36eb0d7f872fc15e793aa1d0b6b89bc471d6
30463 * common/iobuf.c (underflow): Don't require that the buffer be empty.
30464 When called, fill any available space.
30466 common/t-iobuf.c: Add a test case for multiple EOFs.
30467 + commit e76c75d8726558dc9084710253f0f6780e06fad3
30468 common/t-iobuf.c (main): Add a test case for multiple EOFs in an INPUT
30471 common/iobuf.c: Better respect boundary conditions in iobuf_read_line.
30472 + commit 4e32c602f5c40cca5f8f40e642ccb10d3f8c5614
30473 * common/iobuf.c (iobuf_read_line): Be more careful with boundary
30475 * common/iobuf.h: Include <gpg-error.h>.
30476 * common/t-iobuf.c: New file.
30477 * common/Makefile.am (module_tests): Add t-iobuf.
30478 (t_mbox_util_LDADD): New variable.
30480 common/iobuf.c: Fix filter type for iobuf_temp_with_content.
30481 + commit fa9fda23c2c8cf6982b7263f6882ed8687d98c16
30482 * common/iobuf.c (iobuf_temp_with_content): Set the filter type to
30483 IOBUF_INPUT, not IOBUF_TEMP, which is only for output filters that
30484 write into a dynamic buffer.
30486 common/iobuf.h: Remove unimplemented prototypes.
30487 + commit 75fd86bbd175e085a93c1ad62f50ae936494b307
30488 * common/iobuf.h (iobuf_unread): Remove unimplemented prototype.
30489 (iobuf_clear_eof): Likewise.
30490 (iobuf_append): Likewise.
30492 common/iobuf.c: Refactor code to not need the desc field.
30493 + commit 679acc671e621847f50d6b4dca10a22c62500b9a
30494 * common/iobuf.h (struct iobuf_struct): Remove field desc.
30495 * common/iobuf.c (iobuf_desc): New function. When a filter's
30496 description is needed, use this instead of the filter's desc field.
30498 common/iobuf.h: Clarify semantics of nofast. Simplify implementation.
30499 + commit 12fc56bcb51d984a6e86fc1eb7952f9976c67043
30500 * common/iobuf.h (struct iobuf_struct): Clarify semantics of nofast.
30501 Simplify use of nofast to implement just these semantics.
30503 common/iobuf.c: Remove dead code (directfp).
30504 + commit e8c0b6abf88309c23a70df0abbd38d42fa22a786
30505 * common/iobuf.h (struct iobuf_struct): Remove field directfp. Remove
30508 common/iobuf.c: Remove dead code (opaque).
30509 + commit f05d60b3813a97e316a067680d7598b74621a522
30510 * common/iobuf.h (struct iobuf_struct): Remove field opaque. Remove
30513 common/iobuf.h: Replace further use of literals with symbolic constants.
30514 + commit c06eabac8e85f7f79414363836f093415e8da62e
30515 * common/iobuf.c: Move BLOCK_FILTER_INPUT,
30516 BLOCK_FILTER_OUTPUT_BLOCK_FILTER_TEMP from here...
30517 * common/iobuf.h: ... to here and rename to IOBUF_INPUT, IOBUF_OUTPUT
30518 and IOBUF_TEMP, respectively. Where appropriate, use these macros
30519 instead of a literal.
30521 2015-08-17 Werner Koch <wk@gnupg.org>
30523 gpg: Avoid linking to Libksba.
30524 + commit 91357b7722f2bf0d3765ec72855bdc96732df9d6
30525 * kbx/keybox.h (KEYBOX_WITH_X509): Do not define.
30526 * sm/Makefile.am (AM_CPPFLAGS): Define it here.
30527 (common_libs): Change to libkeybox509.a
30528 * g10/Makefile.am (AM_CFLAGS): remove KSBA_CFLAGS.
30529 (gpg2_LDADD, gpgv2_LDADD): Remove KSBA_LIBS
30530 * kbx/Makefile.am (noinst_LIBRARIES): Add libkeybox509.a.
30531 (libkeybox509_a_SOURCES): New.
30532 (libkeybox_a_CFLAGS): New.
30533 (libkeybox509_a_CFLAGS): New.
30534 (kbxutil_CFLAGS): New.
30535 * kbx/keybox-search.c (has_keygrip) [!KEYBOX_WITH_X509]: Declare args
30538 2015-08-16 Ben Kibbey <bjk@luxsci.net>
30540 Fix pinentry loopback and passphrase contraints.
30541 + commit bba74cdd95ea98b5a7c3a12823b229341e91504e
30542 * agent/command.c (cmd_get_passphrase): Don't repeat passphrase for
30543 pinentry loopback mode.
30544 * agent/genkey.c (check_passphrase_constraints): Immediately return when
30545 pinentry mode is loopback.
30547 Fix sending INQUIRE_MAXLEN for symmetric data.
30548 + commit 93f5295df512269dd8fecbd649b11cbacf78e864
30549 * g10/passphrase.c (passphrase_to_dek_ext): Write the status message.
30551 2015-08-15 Ben Kibbey <bjk@luxsci.net>
30553 Inform a user about inquire length limit.
30554 + commit f126ca61565922b3b938c3486614b9bd7e6e454c
30555 * common/status.h (INQUIRE_MAXLEN): New.
30556 * g10/call-agent.c (default_inquire_cb): Send STATUS_INQUIRE_MAXLEN.
30557 client when inquiring a passphrase over pinentry-loopback.
30559 Allow --gen-key to inquire a passphrase.
30560 + commit 233b5fedabd80a34452e748132e65b5944310428
30561 * g10/gpg.c (main): test for --command-fd during --gen-key parse.
30563 When --command-fd is set then imply --batch to let gpg inquire a
30564 passphrase rather than requiring a pinentry.
30566 2015-08-11 Werner Koch <wk@gnupg.org>
30569 + commit b5e081973b56b21214fc0c65ba9015dd026328b4
30572 2015-08-10 NIIBE Yutaka <gniibe@fsij.org>
30574 agent: fix ECC key handling.
30575 + commit 8704c70108218a60f8fb2ee0e558ca8ed125600d
30576 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
30577 (convert_transfer_key): CURVE is the name of curve.
30579 2015-08-08 Neal H. Walfield <neal@g10code.com>
30581 common/iobuf.c: Replace use of literals with symbolic constants.
30582 + commit c80643c5ecbee89f343ef087313870cee1334fe4
30583 * common/iobuf.c (BLOCK_FILTER_INPUT): Define. Where appropriate, use
30584 this instead of a literal.
30585 (BLOCK_FILTER_OUTPUT): Likewise.
30586 (BLOCK_FILTER_TEMP): Likewise.
30588 2015-08-07 Werner Koch <wk@gnupg.org>
30590 gpg: Allow gpgv to work with a trustedkeys.kbx file.
30591 + commit 5b7a80b1ab91d2f199065e5dd14e85f42918975d
30592 * g10/keydb.h (KEYDB_RESOURCE_FLAG_GPGVDEF): New.
30593 * g10/keydb.c (keydb_add_resource): Take care of new flag.
30594 * g10/gpgv.c (main): Use new flag.
30596 agent: Add option --force to the DELETE_KEY command.
30597 + commit a68c5c5c7fe4ec8665e252e5062292f6c7b94fdd
30598 * agent/findkey.c (agent_delete_key): Add arg "force".
30599 * agent/command.c (cmd_delete_key): Add option --force.
30601 common: Change alias for Curve25519 to "cv25519".
30602 + commit 9f31ab3d216ed74d6f392a62e3f95e0591174119
30603 * common/openpgp-oid.c (oidtable): Change alias.
30605 2015-08-06 Werner Koch <wk@gnupg.org>
30607 gpg: Remove duplicated printing of the curve name in "sub" lines.
30608 + commit fb754dc6170d12edf3d35c48340b8d7b1ded20f7
30609 * g10/keylist.c (list_keyblock_print): Do not print extra curve name.
30611 gpg: Add commands "fpr *" and "grip" to --edit-key.
30612 + commit fbb6c25ab5dbb5f2b1f1eb342ca7caa3f955d8c9
30613 * g10/keyedit.c (cmdGRIP): New.
30614 (cmds): Add command "grip".
30615 (keyedit_menu) <cmdFPR>: Print subkeys with argument "*".
30616 (keyedit_menu) <cmdGRIP>: Print keygrip.
30617 (show_key_and_fingerprint): Add arg "with_subkeys".
30618 (show_key_and_grip): New.
30619 * g10/keylist.c (print_fingerprint): Add mode 4.
30621 gpg: Adjust UID line indentation for common key algos.
30622 + commit 969542c8c2f48a60c1d68b7bf70b0c00374bacba
30623 * g10/keylist.c (list_keyblock_print): Change UID line indentation
30624 * g10/mainproc.c (list_node): Ditto.
30626 2015-08-06 NIIBE Yutaka <gniibe@fsij.org>
30628 Curve25519 support.
30629 + commit e5891a82c39997b65ce9ff90eb6120db7bedd399
30630 * agent/cvt-openpgp.c (get_keygrip): Handle Curve25519.
30631 (convert_secret_key, convert_transfer_key): Ditto.
30632 * common/openpgp-oid.c (oidtable): Add Curve25519.
30633 (oid_crv25519, openpgp_oid_is_crv25519): New.
30634 * common/util.h (openpgp_oid_is_crv25519): New.
30635 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Handle the case
30636 with Montgomery curve which uses x-only coordinate.
30637 * g10/keygen.c (gen_ecc): Handle Curve25519.
30638 (ask_curve): Change the API and second arg is to return subkey algo.
30639 (generate_keypair, generate_subkeypair): Follow chage of ask_curve.
30640 * g10/keyid.c (keygrip_from_pk): Handle Curve25519.
30641 * g10/pkglue.c (pk_encrypt): Handle Curve25519.
30642 * g10/pubkey-enc.c (get_it): Handle the case with Montgomery curve.
30643 * scd/app-openpgp.c (ECC_FLAG_DJB_TWEAK): New.
30644 (send_key_attr): Work with general ECC, Ed25519, and Curve25519.
30645 (get_public_key): Likewise.
30646 (ecc_writekey): Handle flag_djb_tweak.
30648 common: extend API of openpgp_oid_to_curve for canonical name.
30649 + commit a6e40530898622fbc5d76557a7da5e69368ecaa4
30650 * common/openpgp-oid.c (openpgp_oid_to_curve): Add CANON argument.
30651 * common/util.h: Update.
30652 * g10/import.c (transfer_secret_keys): Follow the change.
30653 * g10/keyid.c (pubkey_string): Likewise.
30654 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Likewise.
30655 * parse-packet.c (parse_key): Likewise.
30656 * scd/app-openpgp.c (send_key_attr, get_public_key): Likewise.
30658 2015-08-05 NIIBE Yutaka <gniibe@fsij.org>
30661 + commit d088d2c81690a89051349ddc8a82fe222625f4e0
30662 * scd/app-openpgp.c (ecc_oid): Call with OIDBUF.
30664 scd: Fix ECC support.
30665 + commit 0751571cac0f5aef2862c34a184f7f09ad9cb203
30666 * scd/app-openpgp.c (send_key_attr): Send KEYNO.
30667 (get_public_key): Fix SEXP composing.
30668 (ecc_writekey): Fix OID length calculation.
30669 (ecc_oid): Prepend the length before query.
30670 (parse_algorithm_attribute): Handle the case the curve is not available.
30672 2015-08-04 Werner Koch <wk@gnupg.org>
30674 gpg: Fix duplicate key import due to legacy key in keyring.
30675 + commit 4a326d7c9a3b09efcccf4de00d6c003829ad89e8
30676 * g10/keydb.c (keydb_search_fpr): Skip legacy keys.
30678 gpg: Properly handle legacy keys while looking for a secret key.
30679 + commit f05a63b10428df2878b1bb6fde57a2fc2aa99105
30680 * g10/getkey.c (have_secret_key_with_kid): Skip legacy keys.
30682 2015-07-31 Werner Koch <wk@gnupg.org>
30684 gpg: Fix endless loop for expired keys given by fpr.
30685 + commit 328a6b6459a5ce4a70b374262f221ada20c40878
30686 * g10/getkey.c (lookup): Disable keydb caching when continuing a
30689 2015-07-29 Werner Koch <wk@gnupg.org>
30691 gpg: Do not return "Legacy Key" from lookup if a key is expired.
30692 + commit 23d8609f4b5ec3432323a676fd7ef225c0ef71a1
30693 * g10/getkey.c (lookup): Map GPG_ERR_LEGACY_KEY.
30695 gpg: Indicate secret keys and cards in a key-edit listing.
30696 + commit 8b2b988309cbc5af339beb0a55ff71d7464eb646
30697 * g10/keyedit.c (sign_uids): Add arg "ctrl".
30698 (show_key_with_all_names_colon): Ditto.
30699 (show_key_with_all_names): Ditto.
30701 * g10/keyedit.c (show_key_with_all_names): Print key record
30702 indicators by checking with gpg-agent.
30703 (show_key_with_all_names): Ditto. May now also print sec/sbb.
30705 2015-07-28 Werner Koch <wk@gnupg.org>
30707 gpg: Remove the edit-key toggle command.
30708 + commit 7ef09afd1a6a37c7f22e7c3d898f0c917b08f940
30709 * g10/keyedit.c (cmds): Remove helptext from "toggle".
30710 (keyedit_menu): Remove "toggle" var and remove the sub/pub check
30713 common,w32: Avoid unused var warning about msgcache.
30714 + commit 4bc75337f31374b7424d7bdebf839dd91ec80c0a
30715 * common/i18n.c (USE_MSGCACHE): New.
30716 (msgcache) [!USE_MSGCACHE]: Do not define.
30717 (i18n_localegettext): Repalce #if conditions by USE_MSGCACHE.
30719 w32: Try more places to find an installed Pinentry.
30720 + commit 18f1e627c697d75175b79fe095305fa775f20841
30721 * common/homedir.c (get_default_pinentry_name): Re-implement to
30722 support several choices for Windows.
30724 2015-07-26 Werner Koch <wk@gnupg.org>
30726 scd: Fix size_t/unsigned int mismatch.
30727 + commit 55e64f47a52d76e097a01eb4044a88a4e10d6a87
30728 * scd/app-openpgp.c (ecc_writekey): Use extra var n.
30730 Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros.
30731 + commit d382242fb6789973ce8d246ec154a4a1468c24c0
30732 * common/util.h: Provide replacement for GPGRT_ATTR_ macros when using
30733 libgpg-error < 1.20.
30734 * common/mischelp.h: Ditto.
30735 * common/types.h: Ditto.
30737 2015-07-25 NIIBE Yutaka <gniibe@fsij.org>
30739 scd: support any curves defined by libgcrypt.
30740 + commit ef080d5c7fb7f3b75c3c57c011f78a312b8e13a9
30741 * g10/call-agent.h (struct agent_card_info_s): Add curve field.
30742 * g10/call-agent.c (learn_status_cb): Use curve name.
30743 * g10/card-util.c (card_status): Show pubkey name.
30744 * scd/app-openpgp.c (struct app_local_s): Record OID and flags.
30745 (store_fpr): Use ALGO instead of key type.
30746 (send_key_attr): Use curve name instead of OID.
30747 (get_public_key): Clean up by OID to curve name.
30748 (ecc_writekey): Support any curves in libgcrypt.
30749 (do_genkey, do_auth, ): Follow the change.
30751 (parse_algorithm_attribute): Show OID here.
30753 2015-07-23 Peter Wu <peter@lekensteyn.nl>
30755 build: ignore scissor line for the commit-msg hook.
30756 + commit d24165bce2823c2f5dcb39b7b84c9aa00802a8ee
30757 * build-aux/git-hooks/commit-msg: Stop processing more lines when the
30758 scissor line is encountered.
30760 2015-07-23 NIIBE Yutaka <gniibe@fsij.org>
30762 scd: Format change to specify "rsa2048" for KEY-ATTR.
30763 + commit dbf4534f49a1fe3823bd6d6d7bb4d9df863b4789
30764 * g10/card-util.c (do_change_keysize): Put "rsa".
30765 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
30766 Change the command format.
30767 (rsa_writekey): Check key type.
30768 (do_writekey): Remove "ecdh" and "ecdsa" support which was available
30769 in experimental libgcrypt before 1.6.0.
30771 2015-07-22 Werner Koch <wk@gnupg.org>
30773 Avoid a leading double slash in make_filename.
30774 + commit 69d2c9b09bd9d0b86b9f2feb585037a2c11795b0
30775 * common/stringhelp.c (do_make_filename): Special case leading '/'.
30777 2015-07-21 NIIBE Yutaka <gniibe@fsij.org>
30779 scd: change_keyattr_from_string for ECC.
30780 + commit 9901be395684dd1b35d83685a719291347684ab1
30781 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
30783 (rsa_writekey): Don't change key attribute.
30785 2015-07-17 NIIBE Yutaka <gniibe@fsij.org>
30787 scd: Use openpgpdefs.h for constants.
30788 + commit f5d356fb5bbbd0e05a753612455253e4bc335266
30789 * scd/app-openpgp.c: Include openpgpdefs.h.
30791 2015-07-16 Neal H. Walfield <neal@g10code.com>
30793 Don't segfault if the first 'auto-key-locate' option is 'clear'.
30794 + commit f2ee673c99825d5189631031ddec2dbf54dbd482
30795 * g10/getkey.c (free_akl): If AKL is NULL, just return.
30797 2015-07-10 NIIBE Yutaka <gniibe@fsij.org>
30799 agent: Support non-NLS build.
30800 + commit b3286af36d452fc801be573a057b0838d53a2edd
30801 * agent/agent.h: Use ENABLE_NLS and define L_() macro.
30803 2015-07-09 NIIBE Yutaka <gniibe@fsij.org>
30805 scd: Remove unused files.
30806 + commit 67b2dc7636e47baefd5aafe0eb45b4730f974481
30807 * scd/Makefile.am (sc_copykeys_*): Remove.
30808 * scd/sc-copykeys.c: Remove.
30809 * scd/pcsc-wrapper.c: Remove.
30810 * scd/{card-common.h,card-dinsig.c,card-p15.c,card.c}: Remove.
30812 2015-07-08 NIIBE Yutaka <gniibe@fsij.org>
30814 g10: Use canonical name for curve.
30815 + commit 5b46726931049e060d8fbfa879db7907078a9aed
30816 * g10/import.c (transfer_secret_keys): Use canonical name.
30817 * common/openpgp-oid.c (openpgp_curve_to_oid): Return NULL on error.
30818 * g10/keyid.c (pubkey_string): Follow change of openpgp_curve_to_oid.
30819 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
30820 * g10/parse-packet.c (parse_key): Ditto.
30822 2015-07-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
30824 drop long-deprecated gpgsm-gencert.sh.
30825 + commit 1be2cebf7ff5837c8b548b4f4afbf1b8b28211bc
30826 * tools/gpgsm-gencert.sh: remove deprecated script entirely. It is
30827 fully replaced by gpgsm --gen-key
30828 * doc/tools.texi: remove gpgsm-gencert.sh documentation
30829 * .gitignore: no longer ignore gpgsm-gencert.sh manpage
30830 * doc/Makefile.am: quit making the manpage
30831 * tools/Makefile.am: quit distributing the script
30832 * doc/howto-create-a-server-cert.texi: overhaul documentation to use
30833 gpgsm --gen-key and tweak explanations
30835 2015-07-02 NIIBE Yutaka <gniibe@fsij.org>
30837 po: Update Japanese translation.
30838 + commit 3502b3cc0f5ff92ab89a0da8b1e344a8ad615737
30841 scd: Support AES decryption for OpenPGPcard v3.0.
30842 + commit 45c49a0030c7a01ec011ce810ddb3aaef734e9bf
30843 * scd/app-openpgp.c (do_decipher): Support AES decryption.
30845 2015-07-01 Werner Koch <wk@gnupg.org>
30848 + commit a499eeb6a6545d87ac9f1b64e32017bfdb4f67e6
30851 2015-07-01 Daiki Ueno <ueno@gnu.org>
30853 agent: Unset INSIDE_EMACS on gpg-agent startup.
30854 + commit f1490a3a0ecf4a5a03373c9563f7709630232ee3
30855 * agent/gpg-agent.c (main): Unset INSIDE_EMACS envvar.
30857 2015-07-01 Werner Koch <wk@gnupg.org>
30859 common: Implement i18n_localegettext.
30860 + commit a65447f0d64d0c53ddbdcfc988f26ecc9a8a6f08
30861 * common/i18n.c (msg_cache_s, msg_cache_head_s): New.
30863 (i18n_localegettext): Implement locale dependent lookup.
30865 2015-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
30867 Pass DBUS_SESSION_BUS_ADDRESS for gnome3.
30868 + commit 816824953c91959c23a57c047bdba6a902ffdde6
30869 * common/session-env.c (stdenvnames): Add DBUS_SESSION_BUS_ADDRESS.
30871 2015-06-30 Werner Koch <wk@gnupg.org>
30873 Flag the L_() function with attribute format_arg.
30874 + commit 232af382e563fcbe15589a3ccae7d6908a17c44d
30875 * agent/agent.h (LunderscorePROTO): New.
30876 * common/util.h (GNUPG_GCC_ATTR_FORMAT_ARG): New.
30877 * common/i18n.h (GNUPG_GCC_ATTR_FORMAT_ARG): New. Use for
30878 i18n_localegettext. Expand LunderscorePROTO.
30879 * agent/genkey.c (check_passphrase_constraints): Use xtryasprintf
30880 again to keep the old translations.
30882 agent: Use different translation func for Pinentry strings.
30883 + commit e76d4c05b24211f3981ab69cddb3fccc17d21e0e
30884 * po/Makevars (XGETTEXT_OPTIONS): Add keyword "L_".
30885 * common/i18n.c (i18n_localegettext): New stub.
30886 * common/i18n.h: Expand the LunderscoreIMPL macro.
30887 * agent/agent.h (L_): New.
30888 (LunderscoreIMPL): New.
30889 * agent/call-pinentry.c (setup_qualitybar): Add arg ctrl anc change
30891 * agent/findkey.c (try_unprotect_cb): Add local var ctrl.
30892 * agent/genkey.c (check_passphrase_constraints): Replace xtryasprintf
30893 by xtrystrdup to avoid gcc warning. Unfortinately this changes the
30895 (agent_ask_new_passphrase): Cleanup the use of initial_errtext.
30897 gpg: Make show-sig-subpackets work again.
30898 + commit 010e4281c3e15e2f86589dd1da419531ead519ef
30899 * g10/gpg.c (parse_list_options): Fix offset for subpackets.
30901 2015-06-29 Werner Koch <wk@gnupg.org>
30903 agent: Prepare for Libassuan with Cygwin support.
30904 + commit b6076579311029aa76c00377d9a804b1578bf58f
30905 * agent/gpg-agent.c (create_server_socket): Add arg "cygwin". Call
30906 assuan_sock_set_flag if Assuan version is recent enough.
30907 (main): Create ssh server socket with Cygwin flag set.
30909 2015-06-29 Neal H. Walfield <neal@gnu.org>
30911 Show passphrase constraints errors as password prompt errors.
30912 + commit 2778c6f8f40d73272075ce04c07097f65c94054e
30913 * agent/agent.h (check_passphrase_constraints): Add parameter
30914 failed_constraint and remove parameter silent. Update callers.
30915 * agent/genkey.c (check_passphrase_constraints): Add parameter
30916 failed_constraint and remove parameter silent. If FAILED_CONSTRAINT
30917 is not NULL and OPT.ENFORCE_PASSPHRASE_CONSTRAINTS is FALSE, save the
30918 error text in *FAILED_CONSTRAINT and don't call take_this_one_anyway
30919 or take_this_one_anyway2. If FAILED_CONSTRAINT is NULL, act as if
30921 (agent_ask_new_passphrase): Change initial_errtext's type from a const
30922 char * to a char *. Pass it to check_passphrase_constraints. If it
30923 contains malloc's memory, free it.
30925 2015-06-29 Neal H. Walfield <neal@g10code.com>
30927 Improve documentation for default-cache-ttl and default-cache-ttl-ssh.
30928 + commit 0416aed4abf6cea94458d2e38eb4a5e6bfea2d8b
30929 * doc/gpg-agent.texi (Agent Options): Improve documentation for
30930 default-cache-ttl and default-cache-ttl-ssh.
30932 Don't raise max-cache-ttl to default-cache-ttl.
30933 + commit 60cf69ff9d61a2cd37fc4468f232fd41aa70a651
30934 * agent/gpg-agent.c (finalize_rereadable_options): Don't raise
30935 max-cache-ttl to default-cache-ttl. Likewise for max-cache-ttl-ssh
30936 and default-cache-ttl-ssh.
30938 Improve the description of old packets with an indeterminate length.
30939 + commit 68c217f457a772984d0afbdd341f18de7c867505
30940 * g10/parse-packet.c (parse): Make the description more accurate when
30941 listing packets: old format packets don't support partial lengths,
30942 only indeterminate lengths (RFC 4880, Section 4.2).
30944 2015-06-29 Werner Koch <wk@gnupg.org>
30946 agent: Add --verify to the PASSWD command.
30947 + commit 9bca96dbc5c32bdd00196462fde8c9ab94aeb28d
30948 * agent/command.c (cmd_passwd): Add option --verify.
30950 agent,w32: Do not create a useless socket with --enable-putty-support.
30951 + commit 7a387331645736eaeaaef57770beef5fa741bc22
30952 * agent/agent.h (opt): Remove field ssh_support.
30953 * agent/gpg-agent.c (ssh_support): New. Replace all opt.ssh_support
30955 (main): Do not set ssh_support along with setting putty_support.
30957 gpgsm: Add command option "offline".
30958 + commit 2c9c46e2a2b8f9a1bdc1ef46a135b5fc7d1a8073
30959 * sm/server.c (option_handler): Add "offline".
30960 (cmd_getinfo): Ditto.
30961 * sm/certchain.c (is_cert_still_valid):
30962 (do_validate_chain):
30963 * sm/gpgsm.c (gpgsm_init_default_ctrl): Default "offline" to the value
30964 of --disable-dirmngr.
30965 * sm/call-dirmngr.c (start_dirmngr_ext): Better also check for
30968 2015-06-26 NIIBE Yutaka <gniibe@fsij.org>
30970 scd: Support button flag and AES key data for OpenPGPcard v3.0.
30971 + commit d2fdf2e1b6cd447bb1c36df0ac7d8e669802fa22
30972 * scd/app-openpgp.c (do_getattr, show_caps, app_select_openpgp):
30973 Support button and symmetric decryption.
30974 (do_setattr): Support setting AESKEY.
30976 2015-06-25 Andre Heinecke <aheinecke@intevation.de>
30978 sm: Fix cert storage for ephemeral certs.
30979 + commit 5e1a844ae9b6730b4b8a2c9178ea9bc121560c28
30980 * sm/keydb.c (keydb_store_cert): Clear ephemeral flag for
30981 existing certs if store should not be ephemeral.
30983 2015-06-23 Werner Koch <wk@gnupg.org>
30985 Allow use of debug flag names for all tools.
30986 + commit 54a0ed3d9b10a3c6dfb3d6a4d20b693a3183f8f6
30987 * g13/g13.c: Make use of debug_parse_flag.
30988 * scd/scdaemon.c: Ditto.
30989 * sm/gpgsm.c: Ditto
30990 * agent/gpg-agent.c: Ditto. But do not terminate on "help"
30991 * dirmngr/dirmngr.c: Ditto.
30993 common: Improve fucntion parse_debug_flag.
30994 + commit 8195e55d0c134a45f7c9bd95c8b5741781841c18
30995 * common/miscellaneous.c (parse_debug_flag): Add hack not to call
30996 exit. Add "none" and "all" flags.
30998 2015-06-23 NIIBE Yutaka <gniibe@fsij.org>
31000 scd: pinpad workaround for PC/SC implementations.
31001 + commit 5e1d2fe6555d06f9dcd2daac713b2edfbc0428a5
31002 * scd/adpu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Bigger buffer
31003 for TPDU card reader.
31005 2015-06-22 Werner Koch <wk@gnupg.org>
31007 gpg: Allow debug flag names for --debug.
31008 + commit 4698e5b203bd983503b5fd784fcd09dd3bc3a15e
31009 * g10/gpg.c (opts): Change arg for oDebug to a string.
31010 (debug_flags): New; factored out from set_debug.
31011 (set_debug): Remove "--debug-level help". Use parse_debug_flag to
31012 print the used flags.
31013 (main): Use parse_debug_flag for oDebug.
31015 common: Add function parse_debug_flag.
31016 + commit 22147952b744958ec46d356e942540356ff7d93e
31017 * common/miscellaneous.c (parse_debug_flag): New.
31018 * common/util.h (struct debug_flags_s): New.
31020 common: Add function strtokenize.
31021 + commit d37f47081d41584efc0c397432811f9cfa5d5867
31022 * common/stringhelp.c: Include assert.h.
31023 (strtokenize): New.
31024 * common/t-stringhelp.c (test_strtokenize): New.
31026 gpg: Fix regression due to recent commit 6500f33.
31027 + commit e0873a3372800d51c90ca656450f937dbae9c169
31028 * g10/keydb.c (kid_list_s): Keep a state in the table.
31029 (kid_not_found_table): Rename to kid_found_table.
31030 (n_kid_not_found_table): Rename to kid_found_table_count.
31031 (kid_not_found_p): Return found state.
31032 (kid_not_found_insert): Add arg found.
31033 (keydb_search): Store found state in the table.
31035 2015-06-22 NIIBE Yutaka <gniibe@fsij.org>
31037 scd: Fix Cherry ST-2000 support for pinpad input.
31038 + commit 444e9232aa9e00aacd939cbf7bdb881b550dfebe
31039 * scd/apdu.c (pcsc_vendor_specific_init): Set pinmax to 15.
31040 * scd/ccid-driver.c (ccid_transceive_secure): Add zero for the
31043 2015-06-20 Werner Koch <wk@gnupg.org>
31045 gpg: Print number of good signatures with --check-sigs.
31046 + commit 0948c4f217308ffa0ec61ce189d387fd61b02bbd
31047 * g10/keylist.c (keylist_context): Add field good_sigs.
31048 (list_keyblock_print): Updated good_sigs.
31049 (print_signature_stats): Print number of good signatures and use
31050 log_info instead of tty_printf.
31052 gpg: Improve speed of --check-sigs and --lish-sigs.
31053 + commit 6500f338a35f4148606480c79f3a0c1b0d15f13a
31054 * g10/keydb.c (kid_list_t): New.
31055 (kid_not_found_table, n_kid_not_found_table): New.
31056 (kid_not_found_p, kid_not_found_insert, kid_not_found_flush): New.
31057 (keydb_insert_keyblock): Flush the new cache.
31058 (keydb_delete_keyblock): Ditto.
31059 (keydb_update_keyblock): Ditto.
31060 (keydb_search): Use the new cache.
31061 (keydb_dump_stats): New.
31062 * g10/gpg.c (g10_exit): Dump keydb stats.
31064 2015-06-19 Werner Koch <wk@gnupg.org>
31066 gpg: Add more log_clock calls to keydb.c.
31067 + commit 53e9b86085ac70ede8a0b1de9018ccbfe55b0932
31068 * g10/keydb.c (keydb_get_keyblock): Add log_clock calls.
31070 gpg: Print available debug flags using "--debug-level help".
31071 + commit 663a31f1ea2fc5a43c822e916cf20fece5243851
31072 * g10/gpg.c (set_debug): Add "help" option and use a table for the
31075 gpg: Fix export problem in case an old keyring has PGP-2 keys.
31076 + commit c5604eeee4b64a44a1ca1d517ace14fc1cbda298
31077 * g10/export.c (do_export_stream): Skip legacy keys.
31079 2015-06-18 Werner Koch <wk@gnupg.org>
31081 dirmngr: Fix the cleanup zombies fix (685b782).
31082 + commit c97198371b7307e64afdd323231977b2247f64ec
31083 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Do not close the
31084 stdout reader after EOF from read_log_data.
31085 * dirmngr/crlcache.c (crl_cache_reload_crl): Close the reader before
31086 the next iteration.
31088 2015-06-17 Werner Koch <wk@gnupg.org>
31090 agent: Print a warning for obsolete options.
31091 + commit 010d26a85bfe15c4aa12eefeab851dbde0609c26
31092 * g10/misc.c (obsolete_scdaemon_option): Move to
31093 * common/miscellaneous.c (obsolete_option): ... here.
31094 * agent/gpg-agent.c (main): Use obsolete_option for the 3 obsolete
31097 2015-06-16 Werner Koch <wk@gnupg.org>
31099 dirmngr: Cleanup zombies and fix hang on shutdown.
31100 + commit 685b782a18adb90bbf78956682e4e7f89fed678c
31101 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Move nfds computation
31102 into the loop. Check the queue also on timeout. Close log_fd and
31103 reader context on EOF or error.
31105 dirmngr: Avoid accessing uninitialized memory in log callback.
31106 + commit 82c72e2db7bc5b633768d59822f2e2a353fa6e32
31107 * dirmngr/dirmngr.c (pid_suffix_callback): Clear int_and_ptr_u before
31109 (start_connection_thread): Ditto.
31110 (handle_connections): Ditto.
31112 2015-06-16 Neal H. Walfield <neal@g10code.com>
31114 Don't prompt for the password multiple times in pinentry loopback mode.
31115 + commit eac081ba1278855fa223b031b527498fec558bc7
31116 * g10/gpg.c (main): If OPT.PINENTRY_MODE is PINENTRY_MODE_LOOPBACK,
31117 clear OPT.PASSPHRASE_REPEAT.
31119 2015-06-16 NIIBE Yutaka <gniibe@fsij.org>
31121 po: Update Japanese Translation.
31122 + commit 15540f6233bd041b06708862a6d9535cbcabe330
31125 2015-06-15 Werner Koch <wk@gnupg.org>
31127 doc: Add defs.inc to BUILT_SOURCES.
31128 + commit ef273a9afc7840b75cfb9b8af78d117b7d672c6a
31131 2015-06-11 Werner Koch <wk@gnupg.org>
31134 + commit 9b7bdfae82f74a147a5dbf0fac0f78cde77a207b
31137 agent: Fix --extra-socket on Windows.
31138 + commit 985918aab025cf0ac9db411b88a47c4b985e5e95
31139 * agent/gpg-agent.c (start_connection_thread): Rename to ...
31140 (do_start_connection_thread): this. Factor nonce checking out to ...
31141 (start_connection_thread_std): this,
31142 (start_connection_thread_extra): this,
31143 (start_connection_thread_browser): and this.
31145 agent: Add experimental option --browser-socket.
31146 + commit 008435b95cbca19adc217178dc9d793eca584345
31147 * agent/agent.h (opt): Add field "browser_socket".
31148 * agent/command.c (cmd_setkeydesc): Use a different message for
31150 * agent/gpg-agent.c (oBrowserSocket): New.
31151 (opts): Add --browser-socket.
31152 (socket_name_browser, redir_socket_name_browser): New.
31153 (socket_nonce_browser): New.
31154 (cleanup): Cleanup browser socket.
31155 (main): Implement option.
31156 (start_connection_thread_browser): New.
31157 (handle_connections): Add arg listen_fd_browser and use it.
31159 2015-06-10 Daiki Ueno <ueno@gnu.org>
31161 agent: Add option --allow-emacs-pinentry.
31162 + commit 691dae270b3b741178912599724d69adabdb48b9
31163 * agent/agent.h (opt): Add field allow_emacs_pinentry.
31164 * agent/call-pinentry.c (start_pinentry): Act upon new var.
31165 * agent/gpg-agent.c (oAllowEmacsPinentry): New.
31166 (opts): Add option --allow-emacs-pinentry.
31167 (parse_rereadable_options): Set this option.
31168 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add new option.
31170 2015-06-09 Werner Koch <wk@gnupg.org>
31172 doc: Do not used fixed file names in the manuals.
31173 + commit 25331bba5554a39d226d32433add7784b2e170b8
31174 * doc/mkdefsinc.c: New.
31175 * doc/Makefile.am: Include cmacros.am.
31176 (EXTRA_DIST): Add mkdefsinc.c defsincdate.
31177 (BUILT_SOURCES): Add defsincdate
31178 (CLEANFILES): Add mkdefsinc and defs.inc.
31179 (mkdefsinc): New rule.
31180 (yat2m-stamp): Depend on defs.inc.
31181 ($(myman_pages) gnupg.7): Ditto.
31182 (gnupg.texi): Remove rule to touch itself.
31184 (defsincdate): New.
31186 * doc/gnupg.texi: Remove inclusion of version.texi. Include defs.inc.
31187 Also include defs.inc in all files used to build man files. Change
31188 fixed directory names to those from defs.inc.
31190 dirmngr: Avoid crash due to an empty crls.d/DIR.txt.
31191 + commit 255dadd76d5a2101d2c5450741326b67253fa9ea
31192 * dirmngr/crlcache.c (check_dir_version): Avoid segv.
31194 2015-06-08 Werner Koch <wk@gnupg.org>
31196 doc: Change the manual source to be only for GnuPG 2.1.
31197 + commit abbefdd04d7ee30218506caeae1fd858569c9f0a
31200 Convey envvar INSIDE_EMACS to the pinentry.
31201 + commit c672572bd50966187cc823585efed673b66ff942
31202 * common/session-env.c (stdenvnames): Add it.
31204 agent: Add command "getinfo std_env_names".
31205 + commit 8425db6a26bf66dad16dfbc26be9af7d272f31d3
31206 * agent/command.c (cmd_getinfo): Add new sub-command.
31208 2015-06-05 NIIBE Yutaka <gniibe@fsij.org>
31210 scd: do_decipher change for OpenPGPcard v3.0.
31211 + commit cf508a1f7f4c8926dc554be68a2d46f5ce272ac0
31212 * scd/app-openpgp.c (do_decipher): Add a header for ECDH.
31214 2015-06-04 Werner Koch <wk@gnupg.org>
31216 gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c.
31217 + commit a4a15195c2a3729025a3ba3439ac8860083fceeb
31218 * g10/tdbio.c (lookup_hashtable): Return GPG_ERR_NOT_FOUND.
31219 * g10/tdbdump.c (import_ownertrust): Test for GPG_ERR_NOT_FOUND.
31220 * g10/trustdb.c (read_trust_record): Ditto.
31221 (tdb_get_ownertrust, tdb_get_min_ownertrust): Ditto.
31222 (tdb_update_ownertrust, update_min_ownertrust): Ditto.
31223 (tdb_clear_ownertrusts, update_validity): Ditto.
31224 (tdb_cache_disabled_value): Ditto.
31226 gpg: Cleanup error code path in case of a bad trustdb.
31227 + commit f170240ef735edc481f60e51527cbb5ee1acfd55
31228 * g10/tdbio.c (tdbio_read_record): Fix returning of the error.
31230 gpg: Fix output in case of a corrupted trustdb.
31231 + commit bf06d04f53296f4b4b73b9360cf1571559bb2295
31232 * g10/tdbdump.c (list_trustdb): Add arg FP and change callers to pass
31234 * g10/tdbio.c (upd_hashtable): On a corrupted trustdb call
31235 list_trustdb only in verbose > 1 mode and let it dump to stderr.
31237 2015-05-29 NIIBE Yutaka <gniibe@fsij.org>
31239 scd: Fix key template of ECC.
31240 + commit e5c69e87beebe99d362ac721ce4ea6b057a30a99
31241 * scd/app-openpgp.c (build_ecc_privkey_template): Use correct value.
31243 2015-05-28 NIIBE Yutaka <gniibe@fsij.org>
31245 g10: Fix a race condition initially creating trustdb.
31246 + commit fe5c6edaed78839303d67e01e141cfc6b5de9aec
31247 * g10/tdbio.c (take_write_lock, release_write_lock): New.
31248 (put_record_into_cache, tdbio_sync, tdbio_end_transaction): Use
31249 new lock functions.
31250 (tdbio_set_dbname): Fix the race.
31251 (open_db): Don't call dotlock_create.
31253 2015-05-27 NIIBE Yutaka <gniibe@fsij.org>
31255 g10: Remove g10/signal.c.
31256 + commit 6cb18a8f975b7ff7ca79c1fb0cddcd4b66be90fb
31257 * g10/signal.c: Remove.
31258 * g10/main.h: Remove old function API.
31259 * g10/tdbio.c: Use new API, even in the dead code.
31261 2015-05-20 Werner Koch <wk@gnupg.org>
31263 agent: Cleanup caching code for command GET_PASSPHRASE.
31264 + commit 23d2ef83cda644c6a83499f9327350d3371e8a17
31265 * agent/command.c (cmd_get_passphrase): Read from the user cache.
31267 2015-05-19 Neal H. Walfield <neal@g10code.com>
31269 agent: When the password cache is cleared, also clear the ext. cache.
31270 + commit 3a9305439b75ccd4446378d4fd87da087fd9c892
31271 * agent/agent.h (agent_clear_passphrase): New declaration.
31272 * agent/call-pinentry.c (agent_clear_passphrase): New function.
31273 * agent/command.c (cmd_clear_passphrase): Call agent_clear_passphrase.
31275 agent: Modify agent_clear_passphrase to support an ext. password cache.
31276 + commit e201c20f25e7bed29088186c5f717d43047a0f4b
31277 * agent/agent.h (agent_get_passphrase): Add arguments keyinfo and
31278 cache_mode. Update callers.
31279 * agent/call-pinentry.c (agent_get_passphrase): Add arguments keyinfo
31280 and cache_mode. If KEYINFO and CACHE_MODE describe a cachable key,
31281 then send SETKEYINFO to the pinentry.
31283 2015-05-19 NIIBE Yutaka <gniibe@fsij.org>
31285 g10: detects public key encryption packet error properly.
31286 + commit c771963140cad7c1c25349bcde27e427effc0058
31287 g10/mainproc.c (proc_pubkey_enc): Only allow relevant algorithms for
31290 2015-05-15 Werner Koch <wk@gnupg.org>
31292 build: Make --disable-gpgsm work.
31293 + commit 43ea8f5d884dd108bb27d8e1610fa28802295a06
31294 * Makefile.am: Always build kbx/
31295 * g10/Makefile.am (AM_CFLAGS): Include KSBA_CFLAGS.
31297 2015-05-12 Werner Koch <wk@gnupg.org>
31300 + commit a67ead6525d7597a9e0b152c5971f6290f7912f3
31303 speedo: Add make option SELFCHECK=0 to build a new release.
31304 + commit 21b0701e2e044894c53ff59d22c5c6a172780c25
31305 * build-aux/getswdb.sh: Add option --skip-selfcheck.
31306 * build-aux/speedo.mk: Add option SELFCHECK.
31308 2015-05-11 Werner Koch <wk@gnupg.org>
31310 common: Cope with AIX problem on number of open files.
31311 + commit 987532b038a2d9b9e76c0de425ee036ca2bffa1b
31312 * common/exechelp-posix.c: Limit returned value for too hight values.
31314 gpg-connect-agent: Fix quoting of internal percent+ function.
31315 + commit 26e2eb98d3d8405b335b43c8e86deacf622cd957
31316 * tools/gpg-connect-agent.c (get_var_ext) <percent, percent+): Also
31319 agent: Add option --no-allow-external-cache.
31320 + commit d7293cb317acc40cc9e5189cef33fe9d8b47e62a
31321 * agent/agent.h (opt): Add field allow_external_cache.
31322 * agent/call-pinentry.c (start_pinentry): Act upon new var.
31323 * agent/gpg-agent.c (oNoAllowExternalCache): New.
31324 (opts): Add option --no-allow-external-cache.
31325 (parse_rereadable_options): Set this option.
31327 agent: Add strings for use by future Pinentry versions.
31328 + commit 02d5e1205489aa5027a87a64552eaf15984dc22d
31329 * agent/call-pinentry.c (start_pinentry): Add more strings.
31331 agent: Add option --debug-pinentry.
31332 + commit 14232c3870c5ef5d2fa15e8ed3f302b1ba29d25c
31333 * agent/gpg-agent.c (oDebugPinentry): New.
31334 (opts): Add --debug-pinentry.
31335 (parse_rereadable_options): Set that option.
31336 * agent/call-pinentry.c (start_pinentry): Pass option to
31339 2015-05-08 Werner Koch <wk@gnupg.org>
31341 gpg: Avoid cluttering stdout with trustdb info in verbose mode.
31342 + commit b03a2647299a6c8764a2574590cbaccdff9e497d
31343 * g10/trustdb.c (validate_keys): Call dump_key_array only in debug
31346 gpg: Fix wrong output in list mode.
31347 + commit 7039f87375b3c89d6e63837b811ed2be71c8d9db
31348 * g10/parse-packet.c (parse_gpg_control): Replace puts by es_fputs to
31351 gpg: New command --quick-adduid.
31352 + commit 64e809b791645f343feb69112baba8e2700e454b
31353 * g10/keygen.c (ask_user_id): Factor some code out to ...
31354 (uid_already_in_keyblock): new.
31355 (generate_user_id): Add arg UIDSTR. Fix leaked P.
31356 * g10/keyedit.c (menu_adduid): Add new arg uidstring. Adjust caller.
31357 (keyedit_quick_adduid): New.
31358 * g10/gpg.c (aQuickAddUid): New.
31359 (opts): Add command --quick-adduid.
31360 (main): Implement that.
31362 gpg: Add push/pop found state feature to keydb.
31363 + commit 3c439c0447f8a7468a61bbdc4c9a101ef2451dcb
31364 * g10/keydb.c (keydb_handle): Add field saved_found.
31365 (keydb_new): Init new field.
31366 (keydb_push_found_state, keydb_pop_found_state): New.
31367 * g10/keyring.c (kyring_handle): Add field saved_found.
31368 (keyring_push_found_state, keyring_pop_found_state): New.
31370 gpg: Minor code merging in keyedit.
31371 + commit b772e459fa91cdc7facd95227ebc0faba20a7003
31372 * g10/keyedit.c (fix_keyblock): Rename to fix_key_signature_order.
31373 (fix_keyblock): New. Call fix_key_signature_order and other fix
31375 (keyedit_menu): Factor code out to new fix_keyblock.
31376 (keyedit_quick_sign): Ditto. Check for primary fpr before calling
31379 2015-05-07 Werner Koch <wk@gnupg.org>
31381 agent: Minor change for 56b5c9f.
31382 + commit 436f2060721e997479a9dd5be8dfc73627dd49c9
31383 * agent/call-pinentry.c (agent_askpin): Move option setting to ...
31384 (start_pinentry): here. Fix error code check.
31386 2015-05-07 Kristian Fiskerstrand <kf@sumptuouscapital.com>
31388 dirmngr: Fix segfault in ldap engine.
31389 + commit d0d4984cfec54dee727b9e9d33d09e33c6f2e182
31390 (ks-engine-ldap.c) Fix segfault caused by missing check whether uri is
31393 2015-05-07 Neal H. Walfield <neal@g10code.com>
31395 agent: Improve support for externally cached passwords.
31396 + commit 56b5c9f94f2e55d096be585ed061ccf1c9ec0de6
31397 * agent/call-pinentry.c (PINENTRY_STATUS_PASSWORD_FROM_CACHE): New
31399 (pinentry_status_cb): Add it to *FLAGS if PASSWORD_FROM_CACHE was
31401 (agent_askpin): Pass "OPTION allow-external-password-cache" to the
31402 pinentry. Always pass SETKEYINFO to the pinentry. If there is no
31403 stable identifier, then use "--clear". If the password is incorrect
31404 and PINENTRY_STATUS_PASSWORD_FROM_CACHE is set in *PINENTRY_STATUS,
31405 then decrement PININFO->FAILED_TRIES.
31407 agent: Or in the value; don't overwrite the variable.
31408 + commit 74944330ba7229ed0cbe23cc0f573962a444bd07
31409 * agent/call-pinentry.c (pinentry_status_cb): Or in
31410 PINENTRY_STATUS_CLOSE_BUTTON; don't overwrite *FLAG.
31412 agent: Avoid magic numbers. Use more accurate names.
31413 + commit d3b5cad2346bd5747789dc62d7804fa5c15f4f3b
31414 * agent/call-pinentry.c (PINENTRY_STATUS_CLOSE_BUTTON): New constant.
31415 (PINENTRY_STATUS_PIN_REPEATED): Likewise.
31416 (close_button_status_cb): Rename from this...
31417 (pinentry_status_cb): ... to this. Use the constants.
31418 (agent_askpin): Rename local variable from close_button to
31419 pinentry_status. Use symbolic constants rather than magic numbers.
31421 2015-05-07 Werner Koch <wk@gnupg.org>
31423 gpg: Improve 'General key info' line of --card-status.
31424 + commit 874ef16e70ab750db7b153f17a7e859a0db6a2f1
31425 * g10/keylist.c (print_pubkey_info): Print either "pub" or "sub".
31427 * g10/getkey.c (get_pubkey_byfprint): Add optional arg R_KEYBLOCK.
31428 * g10/keyid.c (keyid_from_fingerprint): Adjust for change.
31429 * g10/revoke.c (gen_desig_revoke): Adjust for change.
31430 * g10/card-util.c (card_status): Simplify by using new arg. Align
31433 * g10/card-util.c (card_status): Remove not used GnuPG-1 code.
31435 gpg: Fix regression not displaying the card serial number.
31436 + commit 173b26c8f83a3c623165a96c315bf9ed4b90edcc
31437 * g10/call-agent.c (keyinfo_status_cb): Detect KEYINFO.
31439 2015-05-06 Werner Koch <wk@gnupg.org>
31441 speedo,w32: Install a native pinentry.
31442 + commit 154abaf3c97dae43ba972e4482680a287f3e5c39
31443 * build-aux/speedo.mk: Always build pinentry for w32.
31444 (speedo_pkg_pinentry_configure): Adjust to modern pinentry.
31445 * build-aux/speedo/w32/inst.nsi: Install native pinentry under the
31446 name pinentry-basic.exe.
31448 2015-05-01 NIIBE Yutaka <gniibe@fsij.org>
31450 g10: fix cmp_public_key.
31451 + commit f77fd572db658959fa40aa8c181be919e688b707
31452 * g10/free-packet.c (cmp_public_keys): Compare opaque
31453 data at the first entry of the array when it's unknown algo.
31455 2015-04-30 NIIBE Yutaka <gniibe@fsij.org>
31457 scd: PC/SC reader selection by partial string match.
31458 + commit 01a2a61bc4b34817c4216888265f65d59a33dad3
31459 * scd/apdu.c (open_pcsc_reader_direct): Partial string match.
31461 2015-04-24 Werner Koch <wk@gnupg.org>
31463 common: Remove JNLIB from boiler plate (jnlib merge).
31464 + commit 172b6193488f433a206fd88f85d8c4a5d1eb7fdf
31465 * common/README.jnlib: Remove.
31467 common: Rename log and gcc attribute macros (jnlib merge).
31468 + commit 26d7e0d7accf269c15fb4bc23e5e80580bfb7fe3
31469 * common/logging.h: Rename JNLIB_LOG_* to GPGRT_LOG_*.
31470 * common/mischelp.h: Rename JNLIB_GCC_* to GPGRT_GCC_*.
31472 common: Remove two JNLIB_ macros (jnlib merge).
31473 + commit 575230d91bba95697518da418ea0e8712f889a0f
31474 * configure.ac: Merge seperate jnlib checks.
31475 (HAVE_JNLIB_LOGGING): Remove.
31476 * common/logging.c, common/simple-pwquery.c (JNLIB_NEED_AFLOCAL):
31477 Rename to GNUPG_COMMON_NEED_AFLOCAL. Change all tests.
31479 common: Remove libjnlib-config.h (jnlib merge).
31480 + commit 17bcd087082d01c48c60ff20d7f9a40f34c6969f
31481 * common/libjnlib-config.h: Remove.
31482 * common/common-defs.h (getenv) [HAVE_GETENV]: New. From removed
31484 (getpid) [HAVE_W32CE_SYSTEM]: New. From removed header.
31485 * common/argparse.c: Include util.h and common-defs.h. Replace
31486 jnlib_ macro names for non-GNUPG builds by x* names.
31487 * common/dotlock.c: Ditto.
31488 * common/logging.c: Include util.h and common-defs.h. Replace jnlib_
31489 symbol names by x* names.
31490 * common/strlist.c: Ditto.
31491 * common/utf8conv.c: Ditto.
31492 * common/w32-reg.c: Ditto.
31493 * common/mischelp.c: Ditto. Also remove _jnlib_free.
31494 * common/stringhelp.c: Ditto.
31495 (JNLIB_LOG_WITH_PREFIX): Do not depend on this macro.
31496 * common/logging.h (JNLIB_LOG_WITH_PREFIX): Do not depend on this
31499 2015-04-23 Werner Koch <wk@gnupg.org>
31501 gpg: Move all DNS access to Dirmngr.
31502 + commit 154f3ed2bf64de801ae0f9796338a2767ec6357b
31503 * common/dns-cert.h: Move to ../dirmngr/.
31504 * common/dns-cert.c: Move to ../dirmngr/. Change args to return the
31506 * common/t-dns-cert.c: Move to ../dirmngr/.
31507 * common/pka.c, common/pka.h, common/t-pka.c: Remove.
31509 * dirmngr/server.c (data_line_cookie_write): Factor code out to
31510 data_line_write and make it a wrapper for that.
31511 (data_line_write): New.
31512 (cmd_dns_cert): New.
31513 (register_commands): Register new command.
31515 * g10/Makefile.am (LDADD): Remove DNSLIBS.
31516 * g10/call-dirmngr.c (dns_cert_parm_s): New.
31517 (dns_cert_data_cb, dns_cert_status_cb): New.
31518 (gpg_dirmngr_dns_cert): New.
31519 (gpg_dirmngr_get_pka): New.
31520 * g10/gpgv.c (gpg_dirmngr_get_pka): New dummy function.
31521 * g10/keyserver.c (keyserver_import_cert): Replace get_dns_cert by
31522 gpg_dirmngr_dns_cert.
31523 (keyserver_import_pka): Replace get_pka_info by gpg_dirmngr_get_pka.
31524 * g10/mainproc.c: Include call-dirmngr.h.
31525 (pka_uri_from_sig): Add CTX arg. Replace get_pka_info by
31526 gpg_dirmngr_get_pka.
31528 common: Minor change of hex2str to allow for embedded nul.
31529 + commit ce11cc39ea7e011040debc9339a2310a714efe7e
31530 * common/convert.c (hex2str): Set ERRNO. Return adjusted COUNT.
31532 2015-04-23 NIIBE Yutaka <gniibe@fsij.org>
31534 common: removal of t-support.c from t_jnlib_src.
31535 + commit a7264e3a6a83189a9e43edf5e99f5ac7ee42a2ab
31536 * common/Makefile.am (t_jnlib_src): Remove t-support.c.
31538 2015-04-21 Werner Koch <wk@gnupg.org>
31540 gpg: Make keyserver-option http_proxy work.
31541 + commit c4d98734c5df39f57a71f0ec1c0c80e82ff08508
31542 * g10/options.h (opt): Add field keyserver_options.http_proxy.
31543 * g10/keyserver.c (warn_kshelper_option): Add arg noisy.
31544 (parse_keyserver_options): Parse into new http_proxy field.
31545 * g10/call-dirmngr.c (create_context): Send the http-proxy option.
31547 common: Make proper use of http proxy parameter.
31548 + commit 54e55149f2af96eff08bfd6f70ef13d007fb58c7
31549 * common/http.c (is_hostname_port): New.
31550 (send_request): Fix proxy name parsing.
31552 dirmngr: Add http proxy support for keyservers.
31553 + commit a0dead5edce07838cf5ff3ec7205a3bff2a6ef70
31554 * dirmngr/dirmngr.h (server_control_s): Add field http_proxy.
31555 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Copy http_proxy value
31557 (dirmngr_deinit_default_ctrl): New.
31558 (main): Call dirmngr_deinit_default_ctrl.
31559 * dirmngr/server.c (start_command_handler): Ditto.
31560 (option_handler): Add option "http-proxy".
31561 * dirmngr/crlfetch.c (crl_fetch): Take http_proxy from CTRL.
31562 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
31563 * dirmngr/ks-engine-hkp.c (send_request): Add proxy support.
31564 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
31566 gpg: Do not use honor-keyserver-url sub-option by default.
31567 + commit 727fe4f8d7d5fc3eac0b0aa6fafa4a314686d7dc
31570 gpg: Make preferred keyservers work.
31571 + commit ae0d65f86413a82a40cf68e08aaeca405eee8c78
31572 * g10/call-dirmngr.c (dirmngr_local_s): Add field set_keyservers_done.
31573 (create_context): Move keyserver setting to ...
31574 (open_context): here.
31575 (clear_context_flags): New.
31576 (gpg_dirmngr_ks_get): Add arg override_keyserver.
31577 * g10/keyserver.c (keyserver_refresh): Improve diagnostics.
31578 (keyserver_get_chunk): Ditto. Pass OVERRIDE_KEYSERVER to ks_get.
31580 gpg: Update sub-options of --keyserver-options.
31581 + commit da1990bac71f6447d8ebd169c3b3b186e9f287d9
31582 * g10/options.h (KEYSERVER_HTTP_PROXY): New.
31583 (KEYSERVER_USE_TEMP_FILES, KEYSERVER_KEEP_TEMP_FILES): Remove.
31584 (KEYSERVER_TIMEOUT): New.
31585 * common/keyserver.h (KEYSERVER_TIMEOUT): Remove.
31586 * g10/keyserver.c (keyserver_opts): Remove obsolete "use-temp-files"
31587 and "keep-temp-files". Add "http-proxy" and "timeout".
31588 (parse_keyserver_options): Remove 1.2 compatibility option
31589 "honor-http_proxy". Remove "use-temp-files" and "keep-temp-files"
31592 2015-04-14 Werner Koch <wk@gnupg.org>
31594 agent: Send the new SETKEYINFO command to the Pinentry.
31595 + commit 2180845959839705200e3172dbafc94b70b9007f
31596 * agent/call-pinentry.c (agent_askpin): Add args keyinfo and
31597 cache_mode. Change all callers to pass (NULL,0) for them. Send
31598 SETKEYINFO command.
31599 * agent/findkey.c (unprotect): Pass the keygrip and the cache_mode for
31602 2015-04-14 NIIBE Yutaka <gniibe@fsij.org>
31604 scd: better handling of extended APDU.
31605 + commit 971d558e862db878a7310e06ed7116dbe36886ab
31606 * scd/apdu.c (send_le): Bug fix for not append Z when lc<0&&le<0.
31607 * scd/app-common.h (struct app_ctx_s): Use bit fields for flags.
31608 * scd/ccid-driver.c (CCID_MAX_BUF): New. Only for OpenPGPcard.
31609 (struct ccid_driver_s): New field of max_ccid_msglen.
31611 (parse_ccid_descriptor): Initialize max_ccid_msglen.
31612 (ccid_transceive_apdu_level): Implement sending extended APDU in
31613 chain of CCID message.
31615 2015-04-13 Werner Koch <wk@gnupg.org>
31617 gpg: Fix NULL-segv due to invalid imported data.
31618 + commit 25fce93ba19d997e234a674d5cc98df82c5b5496
31619 * g10/free-packet.c (my_mpi_copy): New.
31620 (copy_public_key, copy_signature): Use instead of mpi_copy.
31622 2015-04-13 Neal H. Walfield <neal@g10code.com>
31624 dirmngr: If LDAP is not enable, don't build the LDAP bits.
31625 + commit 5cde5bf37339cdeb0bd0a33d39477382eafebede
31626 * dirmngr/Makefile.am (dirmngr_SOURCES): Only include
31627 ks-engine-ldap.c, ldap-parse-uri.c and ldap-parse-uri.h if USE_LDAP
31629 (module_tests): Only add t-ldap-parse-uri if USE_LDAP is TRUE.
31630 * dirmngr/ks-action.c: Only include "ldap-parse-uri.h" if USE_LDAP is
31632 (ks_action_help): Don't invoke LDAP functionality if USE_LDAP is not
31634 (ks_action_search): Likewise.
31635 (ks_action_get): Likewise.
31636 (ks_action_put): Likewise.
31637 * dirmngr/server.c: Only include "ldap-parse-uri.h" if USE_LDAP is
31639 (cmd_keyserver): Don't invoke LDAP functionality if USE_LDAP is not
31642 2015-04-13 Werner Koch <wk@gnupg.org>
31644 common: Do without nested fucntions to support non-gcc.
31645 + commit 454f60399c7318fffd3de2afadd58c7a490178bd
31646 * common/t-stringhelp.c (test_strsplit): Remove nested function.
31648 2015-04-11 Werner Koch <wk@gnupg.org>
31651 + commit b1e1959d59a12b53c016ca9c95aee3a62c0bfc00
31654 2015-04-11 Yuri Chornoivan <yurchor@ukr.net>
31656 po: Update Ukrainian translation.
31657 + commit 896f438967b66b4836419aa737c706ced6b6454a
31660 2015-04-11 Ineiev <ineiev@gnu.org>
31662 po: Update and review Russian translation.
31663 + commit b69d7064f30c38ffe18e71de6a0fc14b5da0452f
31666 2015-04-10 Werner Koch <wk@gnupg.org>
31668 dirmngr,w32: Make it build for Windows.
31669 + commit c8bb5000d4c86a055348dc08352f573c599743a7
31670 * dirmngr/Makefile.am (t_common_ldadd): Add missing libs.
31672 Remove obsolete directories from AM_CPPFLAGS.
31673 + commit 67158ff155ef52fd54a6bbe680551c0e12b31e69
31676 dirmngr,w32: Replace functions not available under Windows.
31677 + commit 0fb224c2c5e0c6770d4a6044d62d84f6bbc1b26b
31678 * dirmngr/ks-engine-ldap.c (extract_attributes): Replace isoptime and
31681 common: Add new function gnupg_gmtime.
31682 + commit 5d60c7f7e05a06e46e23bafe61cef09ad32aa998
31683 * common/gettime.c (gnupg_gmtime): New.
31684 (gnupg_get_isotime): Use it. Also take care of an gmtime_t returning
31687 common: Add new function isodate_human_to_tm.
31688 + commit f6670100b7a15b2071c2e4062f5c5a678f2a30f6
31689 * common/gettime.c (isotime_human_p): Add arg date_only.
31690 (isodate_human_to_tm): New.
31691 * common/t-gettime.c (test_isodate_human_to_tm): New.
31692 (main): Call new test.
31694 dirmngr,w32: Avoid name clash with existing function.
31695 + commit 6ad95fe6f1f130c8f6d139a9bd57fc4a0d38292b
31696 * dirmngr/ks-engine-ldap.c (ldap_connect): Rename to my_ldap_connect.
31698 gpgparsemail: Fix last commit (3f2bdac)
31699 + commit 9433661419043431a6cfc7d84c8450e0b2f6c353
31700 * tools/rfc822parse.c (parse_field): Replace break by goto.
31702 2015-04-09 Werner Koch <wk@gnupg.org>
31704 gpgparsemail: Fix case of zero length continuation lines.
31705 + commit 3fbeba64a8bfb2b673230c124a3d616b6568fd2f
31706 * tools/rfc822parse.c (parse_field): Loop after continuation line.
31708 2015-04-08 Werner Koch <wk@gnupg.org>
31710 sm: Fix certificate lookup in dirmngr cache.
31711 + commit 6619ead2cfd2abcb95b66dc70622fdeef624fb8a
31712 * sm/call-dirmngr.c (get_cached_cert): Fix typo in LOOKUP command.
31714 2015-04-06 Werner Koch <wk@gnupg.org>
31716 gpg: Print the user id in --fast-list-mode.
31717 + commit c2383407bba5eefea486464a31e02846124c9da5
31718 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Change.
31720 gpg: Prepare to pass additional context to the list functions.
31721 + commit 67a58118ab6171c0cf28b65a39973062690d1313
31722 * g10/keylist.c (struct sig_stats): Rename to keylist_context and add
31724 (keylist_context_release): New.
31725 (list_all): Set listctx.check_sigs and call release func.
31727 (locate_one): Ditto.
31728 (list_keyblock_print): Use .check_sigs field. Repalce arg opaque by
31730 (list_keyblock): Ditto. Make static.
31731 (list_keyblock_direct): New.
31732 * g10/keygen.c (do_generate_keypair): Replace list_keyblock by
31733 list_keyblock_direct.
31735 gpg: Merge duplicated code for get_user_id et al.
31736 + commit f577d5c1a747d673fa1d5c012ce3e3b78b699c6a
31737 * g10/getkey.c (get_user_id_string): Add args mode and r_LEN.
31738 (get_user_id_string_native): Add new args.
31739 (get_long_user_id_string, get_user_id): Rewrite using
31740 get_user_id_string.
31742 gpg: Add new option --debug-iolbf.
31743 + commit c581ed717ad2cc4be90c46253baa44a0d3ba5b80
31744 * g10/gpg.c (oDebugIOLBF): new.
31745 (opts): Add --debug-iolbf.
31746 (main): Set option.
31748 Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG.
31749 + commit 24a75201da6be72edf85b96dbc0c01c747d02c6a
31750 * g10/options.h (DBG_EXTPROG_VALUE): Separate from DBG_IPC_VALUE.
31752 Fix use of DBG_CACHE and DBG_LOOKUP.
31753 + commit 2f099eb62ac6491675bbcccaca4e076b2d8e7ea0
31754 * dirmngr/dirmngr.h (DBG_LOOKUP_VALUE): Change to 8192.
31755 * g10/options.h (DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
31756 * g10/getkey.c: Use DBG_LOOKUP instead of DBG_CACHE at most places.
31758 gpg: Rename a debug macro.
31759 + commit 4de8a58e44262a25564e2acef8c8865d1755982e
31760 * g10/options.h (DBG_CIPHER_VALUE): Rename to DBG_CRYPTO_VALUE.
31761 (DBG_CIPHER): Rename to DBG_CRYPTO.
31763 2015-04-05 Werner Koch <wk@gnupg.org>
31765 gpg: Fix DoS while parsing mangled secret key packets.
31766 + commit d901efcebaefaf6eae4a9b9aa8f0c2c055d3518a
31767 * g10/parse-packet.c (parse_key): Check PKTLEN before calling mpi_read
31770 2015-04-03 NIIBE Yutaka <gniibe@fsij.org>
31772 g10: Fix keytocard.
31773 + commit f82c4a6d0d76e716b6a7b22ca964fa2da1f962a0
31774 g10/call-agent.h (agent_scd_learn): Add FORCE option.
31775 g10/call-agent.c (agent_scd_learn): Implement FORCE option.
31776 g10/keygen.c (gen_card_key): Follow the change of option.
31777 g10/card-util.c (change_pin, card_status, factory_reset): Likewise.
31778 g10/keyedit.c (keyedit_menu): Update private key storage by
31781 agent: Add --force option for LEARN.
31782 + commit 4ffadb74b3ada8a5d69ef8d87f4326df9bd97e97
31783 * agent/command.c (cmd_learn): Handle --force option.
31784 (cmd_keytocard): Don't update key storage file.
31785 * agent/agent.h (agent_handle_learn): Add FORCE.
31786 * agent/learncard.c (agent_handle_learn): Implement FORCE to update
31789 2015-03-31 Neal H. Walfield <neal@g10code.com>
31791 dirmngr: Don't use alloca.
31792 + commit d0ff2ee04187fbedacbe4d3884ee75d957a0b8c6
31793 * dirmngr/ks-engine-ldap.c (ks_ldap_put): Replace use of alloca with
31796 dirmngr: Simplify truncation of long strings in debug code.
31797 + commit 802eec0ca49b92104c92f18c9a6a04c34de74168
31798 * dirmngr/ks-engine-ldap.c (modlist_dump): Simplify truncation of long
31801 dirmngr: Use a better error code.
31802 + commit 7f6d7948c1e56e09c1bdaa5143e1b5558c4376dd
31803 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): On error, return
31804 GPG_ERR_GENERAL, not GPG_ERR_ASS_GENERAL.
31806 dirmngr: Better encapsulate the keyservers variable.
31807 + commit 348c520040a31f5c322183c0654a34978e2baf6f
31808 * dirmngr/dirmngr.h (struct server_control_s): Move field keyservers
31810 * dirmngr/server.c (struct server_local_s): ... to here. Update
31812 * dirmngr/ks-action.h (ks_action_resolve): Add argument keyservers.
31813 (ks_action_search): Likewise.
31814 (ks_action_get): Likewise.
31815 (ks_action_put): Likewise.
31816 * dirmngr/ks-action.c (ks_action_resolve): Add argument keyservers.
31817 Use it instead of ctrl->keyservers.
31818 (ks_action_search): Likewise.
31819 (ks_action_get): Likewise.
31820 (ks_action_put): Likewise.
31822 2015-03-28 Neal H. Walfield <neal@g10code.de>
31824 gpg: Only use the last specified keyserver.
31825 + commit f26ba14028d34845ae10aae552b90681907e377d
31826 * g10/gpg.c (main): Only use the last specified keyserver.
31828 2015-03-25 Werner Koch <wk@gnupg.org>
31830 dirmngr: Fix resource leaks and check rare errors.
31831 + commit bec10ae4b5a870303c800cdf3cd906044613fc2d
31832 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Fix resource
31834 (ks_ldap_search): Check error from es_fopenmem. Use LDAP_ERR where
31836 (modlist_dump): Check error from es_fopenmem.
31837 (uncescape): s/int/size_t/. Use existing macros.
31838 (extract_attributes): Use existing trim function.
31839 (ks_ldap_put): Do not segv on error from modlist_dump.
31841 dirmngr: Minor cleanups.
31842 + commit 6c701af121782c2feb4ee51e559a7420df00471f
31843 * dirmngr/ks-engine-ldap.c [__riscos__]: Remove doubled util.h.
31844 (ldap_to_gpg_err): s/GPG_ERR_GENERAL/GPG_ERR_INTERNAL/.
31845 (tm2ldaptime): Use snprintf.
31846 (ldap_connect): Get error code prior to log_error and and use modern
31847 function. Use xfree, xtrustrdup etc.
31848 (modlist_lookup): Use GNUPG_GCC_A_USED.
31849 (modlist_free): Use xfree.
31851 common: Add macro GNUPG_GCC_A_USED.
31852 + commit 99ef9cd7f589b51921bfbe8d52735c104ef260e3
31853 * common/util.h (GNUPG_GCC_A_USED): New.
31855 sm: Change default algos to SHA256 (CSR) and AES128 (bulk encryption).
31856 + commit 1e4d8ddbe3ad7ee8f1c1d1798694d91f792776c0
31857 * sm/certreqgen.c (create_request): Change default hash algo.
31858 * sm/gpgsm.c (DEFAULT_CIPHER_ALGO): Change default bulk cipher algo.
31860 2015-03-24 Werner Koch <wk@gnupg.org>
31862 gpg,w32: Handle forward slash in --keyring option.
31863 + commit bdd22e3a0846d38a0b6cdb822476ad2f15d03455
31864 * g10/keydb.c (keydb_add_resource): Allow forward slash under Windows.
31866 2015-03-23 Neal H. Walfield <neal@g10code.de>
31868 Improve documentation for ks_hkp_get.
31869 + commit 7a56b6b3aa8b7a07bd80a3fcd5114bd1af359fa3
31870 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Improvement documentation.
31872 Improve documenation of http_parse_uri.
31873 + commit 00a16cf49336ee0b4ce21eb05a79db955af053e0
31874 * common/http.c (http_parse_uri): Improve documentation.
31876 Add support to talking to LDAP key servers.
31877 + commit 51341badb623927f2a358588c725a356fc77dbe7
31878 * g10/call-dirmngr.c (record_output): New function.
31879 (ks_put_inq_cb): Use it here to generate a --with-colons like output
31880 instead of a custom format.
31881 * dirmngr/ks-action.c: Include "ldap-parse-uri.h".
31882 (ks_action_help): If the provided URI is an LDAP URI, then use
31883 ldap_parse_uri to parse. Call ks_ldap_help.
31884 (ks_action_search): If passed an LDAP URI, then call ks_ldap_search.
31885 (ks_action_get): Likewise.
31886 (ks_action_put): Likewise. Also, change data from a 'const void *' to
31887 a 'void *' and add info and infolen parameters. Add note that
31888 function may modify DATA.
31889 * dirmngr/ks-action.h (ks_action_put): Update declaration accordingly.
31890 * dirmngr/server.c: Include "ldap-parse-uri.h".
31891 (cmd_keyserver): If ITEM->URI is an LDAP URI, parse it using
31893 (hlp_ks_put): Improve documentation.
31894 (cmd_ks_put): Also pass info and infolen to ks_action_put. Improve
31896 * dirmngr/ks-engine.h (ks_ldap_help): New declaration.
31897 (ks_ldap_search): Likewise.
31898 (ks_ldap_get): Likewise.
31899 (ks_ldap_put): Likewise.
31900 * dirmngr/ks-engine-ldap.c: New file.
31901 * dirmngr/Makefile.am (dirmngr_SOURCES): Add ks-engine-ldap.c,
31902 ldap-parse-uri.c and ldap-parse-uri.h.
31903 (dirmngr_LDADD) [USE_LDAP]: Add $(ldaplibs).
31905 Import _gpgme_parse_timestamp from gpgme as parse_timestamp.
31906 + commit 81e83060856f02f6cfc7b48f8032e0cf14fc6c68
31907 * common/gettime.h (parse_timestamp): New declaration.
31908 * common/gettime.c (_win32_timegm): New function imported from
31909 gpgme/src/conversion.c:_gpgme_timegm.
31910 (parse_timestamp): New function imported from
31911 gpgme/src/conversion.c:_gpgme_parse_timestamp.
31913 Move copy_stream function to misc.c.
31914 + commit 9e79a15f74c428624b0049a3f6a077c1bc7c731d
31915 * dirmngr/ks-action.c (copy_stream): Move function from here...
31916 * dirmngr/misc.c (copy_stream): ... to here and drop the static
31918 * dirmngr/misc.h (copy_stream): Add declaration.
31920 Move armor_data to misc.c.
31921 + commit 63552852bf191985b4b55aa524bc397c5b1d1515
31922 * dirmngr/ks-engine-hkp.c (armor_data): Move function from here...
31923 * dirmngr/misc.c (armor_data): ... to here and drop static qualifier.
31924 * dirmngr/misc.h: New declaration.
31926 Add new LDAP utility functions.
31927 + commit 1a75b7c39f0a84f518711438565645a34fb2673f
31928 * dirmngr/Makefile.am (module_tests): New variable.
31929 (noinst_PROGRAMS): New primary. Set it to $(module_tests).
31930 (TESTS): New variable. Set it to $(module_tests).
31931 (t_common_src): New variable.
31932 (t_common_ldadd): Likewise.
31933 (t_ldap_parse_uri_SOURCES): New primary.
31934 (t_ldap_parse_uri_LDADD): Likewise.
31935 * dirmngr/ldap-parse-uri.c: New file.
31936 * dirmngr/ldap-parse-uri.h: Likewise.
31937 * dirmngr/t-ldap-parse-uri.c: Likewise.
31938 * dirmngr/t-support.h: Likewise.
31940 Add new function uri_query_lookup.
31941 + commit e23b3ba5ffd3134a72da176a039e4d6c4f3ff595
31942 * common/http.h (uri_query_lookup): New declaration.
31943 * common/http.c (uri_query_lookup): The corresponding implementation.
31945 Add new function strlist_find.
31946 + commit 79907ad256f5b84f36cbebdc92e5a05d9e266557
31947 * common/strlist.h (strlist_find): New declaration.
31948 * common/strlist.c (strlist_find): New function.
31950 common: Add new helper function, strsplit.
31951 + commit b18ffcb81a3839dbf09603d70ebb8b80f65892d3
31952 * common/stringhelp.h (strsplit): New declaration.
31953 * common/stringhelp.c (strsplit): New function.
31954 * common/t-stringhelp.c (test_strsplit): New function.
31955 (main): Call it here.
31957 2015-03-20 Werner Koch <wk@gnupg.org>
31959 gpg: Consider a mailbox only userid in mail search mode.
31960 + commit bebab54027d8c63574a2680c60481cfe9b88c240
31961 * kbx/keybox-search.c: Include mbox-util.h.
31962 (blob_cmp_mail): Improve OpenPGP uid parsing.
31964 common: Add function is_valid_mailbox_mem.
31965 + commit a0eb2e4e8cef9ca6a5dfbae6440fa6cd583d0805
31966 * common/mbox-util.c (mem_count_chr): New.
31968 (has_invalid_email_chars): Change args to work on a buffer.
31969 (is_valid_mailbox_mem): New.
31970 (is_valid_mailbox): Rewrite to use is_valid_mailbox_mem.
31972 gpg: Find keys using mail addresses with garbage after the '>'
31973 + commit 783a4a98378fa1aa222d5cb7427dd37151feb08b
31974 * kbx/keybox-search.c (blob_cmp_mail): Stop comparing at the '>'.
31976 common: Fix syntax error when building with gnutls.
31977 + commit 5136e39c6466de90697153ea253c4b540c1f7d1a
31978 * common/http.c (send_request): Add missing comma.
31980 2015-03-19 Werner Koch <wk@gnupg.org>
31982 gpg: Emit status line NEWSIG before signature verification starts.
31983 + commit e7ddaad0fd2c8774a1d3367adfaa68014eaf65de
31984 * g10/mainproc.c (check_sig_and_print): Emit STATUS_NEWSIG.
31986 agent: Compute correct MPI length header for protected ECC keys.
31987 + commit cf83ff01fce3ddcbde6d97dffa0db6f277588e25
31988 * agent/cvt-openpgp.c (apply_protection): Strip leading zeroes from
31989 opaque MPIs to comply with the OpenPGP spec.
31991 hkps: Fix host name verification when using pools.
31992 + commit dc10d466bff53821f23d2cb4814c259d40c5d9c5
31993 * common/http.c (send_request): Set the requested for SNI.
31994 * dirmngr/ks-engine-hkp.c (map_host): Return the poolname and not
31995 the selecting a host.
31997 Define replacement error codes from libgpg-error 1.19.
31998 + commit 28bb3ab686c1c994f67a92b6846b3726c58a0bc3
31999 * common/util.h: Add GPG_ERR_LDAP codes for libgpg-error < 1.19.
32001 2015-03-17 Andre Heinecke <aheinecke@intevation.de>
32003 gpgtar: Fix extracting files with !(size % 512)
32004 + commit 6cbbb0bec98e1acefc4c7163cc41a507469db920
32005 * tools/gpgtar-extract.c (extract_regular): Handle size multiples
32008 2015-03-17 Werner Koch <wk@gnupg.org>
32010 common: Add feature to ease using argparse's usage().
32011 + commit 9078b75a73600fc6b7b5502ceee8de032bb9c446
32012 * common/argparse.c (show_help): Take care of flag value
32015 common: Allow standalone build of argparse.c.
32016 + commit eb5f2c0af6691229300ac120ee44815cb27ed38e
32017 * common/argparse.h: Remove types.h - not required.
32018 * common/argparse.c: Change to allow standalone use.
32020 2015-03-16 Werner Koch <wk@gnupg.org>
32022 gpg: Create all MPIs with RFC-4880 correct length headers.
32023 + commit ab17f7b6c392782718f57eaea94fc18a0ff49389
32024 * g10/build-packet.c (gpg_mpi_write): Strip leading zeroes.
32026 gpg: Allow printing of MPI values in --list-mode.
32027 + commit bcc8250bc5b9a357c6d1444f03e334edec573ede
32028 * g10/parse-packet.c (set_packet_list_mode): Set mpi_print_mode.
32029 * g10/misc.c (mpi_print): Do not print an extra leading zero.
32031 gpg: Fix broken write of opaque MPI length header.
32032 + commit 8bc1debfefb7cd4b0be724317793d59dea37d677
32033 * g10/build-packet.c (gpg_mpi_write): Use a char array for the length.
32035 2015-03-15 Werner Koch <wk@gnupg.org>
32037 gpg: Fix possible dead code elimination.
32038 + commit 1a9f13bc663daa75c5009f6a0bf7d7483f12cce0
32039 * g10/encrypt.c: Change condition for detecting a real file.
32041 g13: Fix pointer wrap check.
32042 + commit 4bc3a2e954afc2ba7dbe79ba5f740184b7d4cd73
32043 * g13/utils.c (find_tuple, next_tuple): Cast pointer to size_t before
32044 doing an overflow check.
32046 agent: Remove useless conditions in command.c.
32047 + commit 3a35c9740ab792068ec4b3732ecfaa17bf4fc7f0
32048 * agent/command.c (cmd_setkeydesc): Remove NULL check.
32049 (cmd_get_passphrase): Ditto.
32050 (cmd_clear_passphrase): Ditto.
32051 (cmd_get_confirmation): Ditto.
32052 (cmd_getval): Ditto.
32053 (cmd_putval): Ditto.
32055 agent: Fix length test in sshcontrol parser.
32056 + commit 3529dd8bb5bafc4e02915648d5f409bd27a9cc37
32057 * agent/command-ssh.c (ssh_search_control_file): Check S before
32060 agent: Remove useless conditions.
32061 + commit 95415bdec77a608e6052ba3e2a5d857a8e8f7689
32062 * agent/genkey.c (agent_ask_new_passphrase): Remove useless condition.
32063 * agent/command-ssh.c (ssh_identity_register): Ditto.
32065 gpg: Remove useless condition.
32066 + commit c59b410cf1d5676de7061e5a183c01227aa8e760
32067 * g10/keylist.c (list_keyblock_colon): Remove useless condition (PK).
32068 (list_keyblock_print): Likewise.
32070 scd: Fix possible NULL deref in apdu.c.
32071 + commit ef0a3abf7305133d071bf1a94a7f461082f9a9aa
32072 * scd/apdu.c (control_pcsc_direct): Take care of BUFLEN being NULL.
32073 (control_pcsc_wrapped): Ditto.
32075 common: Make openpgp_oid_to_str more robust.
32076 + commit 35db798c2df7f31b52a9dd9d55ea60ae1f325be9
32077 * common/openpgp-oid.c (openpgp_oid_to_str): Take care of
32078 gcry_mpi_get_opaque returning NULL. Remove useless condition !BUF.
32080 2015-03-11 Werner Koch <wk@gnupg.org>
32082 agent: Improve error reporting from Pinentry.
32083 + commit efde50f92af241d8357db83e280a6ece62f6397f
32084 * agent/call-pinentry.c (unlock_pinentry): Add error logging. Map
32085 error source of uncommon errors to Pinentry.
32087 2015-03-10 Werner Koch <wk@gnupg.org>
32089 gpg: Change --print-pka-records into an option.
32090 + commit 7b5b52f3268b093eebbac3f199fb69bf246d9cd1
32091 * g10/gpg.c (aPrintPKARecords): Rename to oPrintPKARecords and do not
32092 use it as a command.
32093 * g10/keylist.c (list_keyblock): List PKA rceords also for secret
32096 gpg: Add --list-gcrypt-config and "curve" item for --list-config.
32097 + commit 14af2be022ccaf826db048fc16959d0222ff1134
32098 * common/openpgp-oid.c (curve_supported_p): New.
32099 (openpgp_enum_curves): New.
32100 * common/t-openpgp-oid.c (test_openpgp_enum_curves): New.
32101 (main): Add option --verbose.
32102 * g10/gpg.c (opts): Add --list-gcrypt-config.
32103 (list_config): Add items "curve" and "curveoid". Remove unused code.
32105 2015-03-09 NIIBE Yutaka <gniibe@fsij.org>
32107 scd: fix for 64-bit arch.
32108 + commit bb5a1b7c738d74d5b46340ec7b50000a2d343ca9
32109 * agent/pksign.c (agent_pksign_do): Use int.
32110 * scd/app-openpgp.c (get_public_key): Likewise.
32112 2015-03-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
32114 gpg: avoid chatter about trustdb when --quiet.
32115 + commit 82146af85b65498a69b28913593dc1ffeb6b6fed
32116 * g10/trustdb.c (tdb_check_trustdb_stale): avoid log_info() when
32119 2015-02-26 Werner Koch <wk@gnupg.org>
32121 gpg: Lowercase mailbox for PKA lookups.
32122 + commit c071be698efadef1ad01fd3d329d1b486a372927
32123 * common/stringhelp.c (ascii_strlwr): New.
32124 * common/mbox-util.c (mailbox_from_userid): Downcase result.
32126 gpg: Fix memory leak due to PKA lookup.
32127 + commit 91baea2dcde6c1e5ca9e8fa7020d9ab4551d1bca
32128 * g10/keyserver.c (keyserver_import_pka): Move the xfree.
32130 2015-02-25 Werner Koch <wk@gnupg.org>
32132 gpg: Switch to a hash and CERT record based PKA system.
32133 + commit 2fc27c8696f5cf2ddf3212397ea49bff115d617b
32134 * common/dns-cert.c (get_dns_cert): Make r_key optional.
32135 * common/pka.c: Rewrite for the new hash based lookup.
32136 * common/t-pka.c: New.
32137 * configure.ac: Remove option --disable-dns-pka.
32138 (USE_DNS_PKA): Remove ac_define.
32139 * g10/getkey.c (parse_auto_key_locate): Always include PKA.
32141 common: Allow requesting a specific certtype with get_dns_cert()
32142 + commit af60152a4632ef26ca950a424429b15b6c69038d
32143 * common/dns-cert.c (get_dns_cert): Add arg want_certtype. Change all
32145 (CERTTYPE_): Move constants to ...
32146 * common/dns-cert.h: here as DNS_CERTTYPE_.
32148 Move new mailbox.c source file to common/.
32149 + commit 9913253610bac69e9503800e85696491e018e327
32150 * g10/mailbox.c: Move to ...
32151 * common/mbox-util.c: new file.
32152 * common/mbox-util.h: New. Include where needed.
32153 * g10/t-mailbox.c: Move to ...
32154 * common/t-mbox-util.c: new file.
32156 2015-02-24 Werner Koch <wk@gnupg.org>
32158 gpg: Add command --print-pka-records.
32159 + commit e2d93402801a2cb822c723e891fd98233fdb3fd5
32160 * g10/gpg.c (main): Add command --print-pka-records.
32161 * g10/options.h (struct opt): Add field "print_pka_records".
32162 * g10/keylist.c (list_keyblock_pka): New.
32163 (list_keyblock): Call it if new option is set.
32164 (print_fingerprint): Add mode 10.
32166 gpg: Add function to extract the mailbox.
32167 + commit 93fa3d5c1760f3fee5412fb29d58fbd60db16ea9
32168 * g10/misc.c (has_invalid_email_chars, is_valid_mailbox)
32169 (is_valid_user_id): Move to ...
32170 * g10/mailbox.c: new file.
32171 (string_has_ctrl_or_space, has_dotdot_after_at): New.
32172 (has_invalid_email_chars): New.
32174 * g10/t-mailbox.c: New.
32175 * g10/Makefile.am (module_tests): Add t-mailbox.
32176 (t_mailbox_SOURCES, t_mailbox_LDADD): New.
32178 2015-02-23 Werner Koch <wk@gnupg.org>
32180 gpg: Add option to print fingerprints in ICAO spelling.
32181 + commit ae09515b9d3aae653b62a32ea5b4a9b9e557fc52
32182 * g10/gpg.c: Add option --with-icao-spelling.
32183 * g10/options.h (struct opt): Add with_icao_spelling.
32184 * g10/keylist.c (print_icao_hexdigit): New.
32185 (print_fingerprint): Print ICAO spelling.
32187 gpg: Skip legacy keys while searching keyrings.
32188 + commit a8116aacd91b7e775762a62c268fab6cc3c77438
32189 * g10/getkey.c (search_modes_are_fingerprint): New.
32190 (lookup): Skip over legacy keys.
32192 common: Fix regression due to commit 2183683b.
32193 + commit d9f6eea6115df7959564123eb99d633ce5bba42e
32194 * common/dns-cert.c (get_dns_cert): Remove cruft.
32196 2015-02-19 Werner Koch <wk@gnupg.org>
32198 gpg: Replace remaining uses of stdio by estream.
32199 + commit d2a70fd8348d6c11d1960caf2afe0701833dad6a
32200 * g10/sign.c (sign_file): Use log_printf instead of stderr.
32201 * g10/tdbdump.c (export_ownertrust): Use estream fucntions.
32202 (import_ownertrust): Ditto.
32203 * g10/tdbio.c (tdbio_dump_record): Ditto. Change arg to estream_t.
32205 gpg: Fix segv due to NULL value stored as opaque MPI.
32206 + commit 76c8122adfed0f0f443cce7bda702ba2b39661b3
32207 * g10/build-packet.c (gpg_mpi_write): Check for NULL return from
32208 gcry_mpi_get_opaque.
32209 (gpg_mpi_write_nohdr, do_key): Ditto.
32210 * g10/keyid.c (hash_public_key): Ditto.
32212 2015-02-12 Werner Koch <wk@gnupg.org>
32214 scd: Fix regression in 2.1.2 (due to commit 2183683)
32215 + commit 07a71da479daaac43b8c5b1034a1e66f96bdbc48
32216 * scd/apdu.c (pcsc_vendor_specific_init): Replace use of
32217 bufNN_to_uint by direct code.
32219 2015-02-12 Andre Heinecke <aheinecke@intevation.de>
32221 dirmngr: Initialize cache from sysconfig dir.
32222 + commit 070d7bf940efa60db2b0734273b9b3736d18338a
32223 * dirmngr/certcache.c (cert_cache_init): Load certificates
32224 from sysconfig dir instead of the homeidr.
32225 * dirmngr/dirmngr.c (main): Removed parsing of obsolete
32226 homedir_data option.
32227 * dirmngr/dirmngr.h (opt): Removed homedir_data.
32228 * doc/dirmngr.texi: Update and clarify certs directory doc.
32230 2015-02-11 Werner Koch <wk@gnupg.org>
32233 + commit fc17562cc4f8d531ae7f0887cf2a96dcc224b021
32236 dirmngr: Avoid warning about unused function.
32237 + commit 8219c87c301ec669f07528e8d8108655f7b705be
32238 * dirmngr/dirmngr.c (my_gnutls_log): Build only if gnutls is used.
32240 build: Update standard build-aux files.
32241 + commit 81e93e251e52e427a29556de75640c7933bb5aad
32244 Use inline functions to convert buffer data to scalars.
32245 + commit 2183683bd633818dd031b090b5530951de76f392
32246 * common/host2net.h (buf16_to_ulong, buf16_to_uint): New.
32247 (buf16_to_ushort, buf16_to_u16): New.
32248 (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New.
32250 2015-02-09 Werner Koch <wk@gnupg.org>
32252 gpg: Prevent an invalid memory read using a garbled keyring.
32253 + commit f0f71a721ccd7ab9e40b8b6b028b59632c0cc648
32254 * g10/keyring.c (keyring_get_keyblock): Whitelist allowed packet
32256 * g10/keydb.c (parse_keyblock_image): Ditto.
32258 gpg: Fix a NULL-deref in export due to invalid packet lengths.
32259 + commit 0835d2f44ef62eab51fce6a927908f544e01cf8f
32260 * g10/build-packet.c (write_fake_data): Take care of a NULL stored as
32263 gpg: Fix a NULL-deref due to empty ring trust packets.
32264 + commit 39978487863066e59bb657f5fe4e8baab510da7e
32265 * g10/parse-packet.c (parse_trust): Always allocate a packet.
32267 2015-02-04 Werner Koch <wk@gnupg.org>
32269 gpg-agent: Use "pinentry-basic" as fallback.
32270 + commit 0de5c6a9a783ed9dc69cecbf34eadcaace4be243
32271 * common/homedir.c (get_default_pinentry_name): New.
32272 (gnupg_module_name): Use that for the default pinentry.
32273 (gnupg_module_name_flush_some): New.
32274 * agent/gpg-agent.c (agent_sighup_action): Flush some module names.
32275 * agent/call-pinentry.c (start_pinentry): Do not modify
32276 opt.pinentry_program.
32278 w32: Add manifest to gpg.
32279 + commit 05428d12561bc7eb872a81444918dfe706477a41
32280 * g10/gpg.w32-manifest.in: New.
32281 * g10/gpg-w32info.rc: Add manifest.
32282 * g10/Makefile.am (EXTRA_DIST): Add manifest.
32283 (gpg-w32info.o): Depend on manifest.
32284 * configure.ac (BUILD_VERSION): New.
32285 (AC_CONFIG_FILES): Add manifest.
32287 2015-02-03 Werner Koch <wk@gnupg.org>
32289 Update copyright years.
32290 + commit 3f67426a89bf4b37e1d2662fddc3eb4fa474c4ad
32291 * common/w32info-rc.h.in (W32INFO_COMPANYNAME): Change to "The GnuPG
32294 2015-02-02 Werner Koch <wk@gnupg.org>
32296 w32: Change default Windows install dir and add bin to PATH.
32297 + commit 8872657b2a52dd9698224b80e5672e23c5405eda
32298 * build-aux/speedo.mk (WITH_GUI): New macro. The Windows installer is
32299 now build by default without any GUI stuff.
32300 * build-aux/speedo/w32/inst.nsi: Change standard installation
32302 (AddToPath, un.RemoveFromPath): New.
32303 (gnupginst): Add bin directory to the PATH.
32305 2015-02-01 Werner Koch <wk@gnupg.org>
32307 w32: Allow for Unicocde installation directory.
32308 + commit 616633b7713081ecc39419494879947cc7f163d0
32309 * common/homedir.c (w32_rootdir): Use Unicode fucntion not only for
32312 2015-01-30 Joshua Rogers <git@internot.info>
32314 kbx: Fix resource leak.
32315 + commit 7db6c82cec49b7c56c403a8ea98364086baf75f3
32316 * kbx/keybox-update.c (blob_filecopy): Fix resource leak. On error
32317 return, 'fp' and 'newfp' was never closed.
32319 2015-01-29 Werner Koch <wk@gnupg.org>
32321 agent: Fix use of imported but unprotected openpgp keys.
32322 + commit 6ab0fac575a8b04152a199cb300a08436b096753
32323 * agent/agent.h (PRIVATE_KEY_OPENPGP_NONE): New.
32324 * agent/command.c (do_one_keyinfo): Implement it.
32325 * agent/findkey.c (agent_key_from_file): Ditto.
32326 (agent_key_info_from_file): Ditto.
32327 (agent_delete_key): Ditto.
32328 * agent/protect.c (agent_private_key_type): Add detection for openpgp
32331 2015-01-29 NIIBE Yutaka <gniibe@fsij.org>
32333 po: Update Japanese Translation.
32334 + commit 6c368533f5211bed62e8638f522cef65c7ba4b87
32337 2015-01-28 Werner Koch <wk@gnupg.org>
32339 gpg: Limit the size of key packets to a sensible value.
32340 + commit 382ba4b137b42d5f25a7e256bb7c053ee5ac7b64
32341 * g10/parse-packet.c (MAX_KEY_PACKET_LENGTH): New.
32342 (MAX_UID_PACKET_LENGTH): New.
32343 (MAX_COMMENT_PACKET_LENGTH): New.
32344 (MAX_ATTR_PACKET_LENGTH): New.
32345 (parse_key): Limit the size of a key packet to 256k.
32346 (parse_user_id): Use macro for the packet size limit.
32347 (parse_attribute): Ditto.
32348 (parse_comment): Ditto.
32350 gpg: Fix buffering problem in --list-config.
32351 + commit d8eea25b8b7becbfa3f059be6f5966a2f1aa7112
32352 * g10/gpg.c (list_config): Replace print_sanitized_string2 by
32353 es_write_sanitized.
32355 * common/stringhelp.c (print_sanitized_buffer2): Remove.
32356 (print_sanitized_buffer, print_sanitized_utf8_buffer): Remove.
32357 (print_sanitized_utf8_buffer, print_sanitized_utf8_string): Remove.
32358 (print_sanitized_string): Remove.
32360 * sm/certdump.c (print_dn_part, print_dn_parts): Remove arg FP.
32361 (pretty_print_sexp, gpgsm_print_name2, gpgsm_print_name): Remove.
32363 Add a hook to be called right after main.
32364 + commit 0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181
32365 * common/init.c (early_system_init): New stub function.
32367 gpg: Allow predefined names as answer to the keygen.algo prompt.
32368 + commit b1d5ed6ac842469afcb84868d0f6641dc286a6c7
32369 * g10/keygen.c (ask_algo): Add list of strings.
32371 agent: Add some extra robustness to extract_private_key.
32372 + commit 795965437732e50f6216d7f5db0e6174e90548a9
32373 * agent/cvt-openpgp.c (extract_private_key): Add arg "arraysize".
32374 Make sure that R_FLAGS and R_CURVE are set to NULL.
32376 2015-01-28 NIIBE Yutaka <gniibe@fsij.org>
32378 scd: Fix varargs call for 64-bit arch on ECC keys.
32379 + commit f6d3c6e5263d84b94ebe13df9ff39b02109a2acb
32380 * scd/app-openpgp.c (store_fpr): Remove CARD_VERSION from the
32382 (rsa_writekey): Follow the change.
32383 (do_genkey): Likewise.
32384 (ecc_writekey): Likewise. Cast to size_t.
32386 2015-01-27 Werner Koch <wk@gnupg.org>
32388 gpg: Fix segv introduced to commit 4d7c9b0.
32389 + commit 6eebc56687935f3e993eac374b9f4cc5ad3bcf2b
32390 * g10/keygen.c (get_parameter_passphrase): Take care of R == NULL.
32392 2015-01-27 NIIBE Yutaka <gniibe@fsij.org>
32394 agent: Fix agent_public_key_from_file for ECC.
32395 + commit 9453d645d4a489f038829c80343c124fff62d635
32396 * agent/cvt-openpgp.c (extract_private_key): New.
32397 (convert_to_openpgp): Use extract_private_key.
32398 * agent/findkey.c (agent_public_key_from_file): Use
32399 extract_private_key.
32401 2015-01-26 Werner Koch <wk@gnupg.org>
32403 sm: Simplify fix ed8383c6.
32404 + commit 6c87d1ce66d8e93e6c0f16c06116e9179f6158ba
32405 * sm/minip12.c (p12_build): Release PWBUF only at the end.
32407 2015-01-25 Joshua Rogers <git@internot.info>
32409 ccid: Remove incorrect expression leading to errors.
32410 + commit 274d7b17a90908a90ba6ad295c08a79b287fc231
32411 * scd/ccid-driver.c (send_escape_cmd): Fix setting of 'rc'.
32413 2015-01-23 Werner Koch <wk@gnupg.org>
32415 gpgconf: Fix validity check for UINT32 values.
32416 + commit 3f6abb57a7b5e54b593c5775c8f7a07d61119705
32417 * tools/gpgconf-comp.c (option_check_validity): Enable check for
32420 2015-01-22 Werner Koch <wk@gnupg.org>
32422 gpg: Improve skipping of PGP-2 keys.
32423 + commit 09e8f35d3808d6e49f891360c341aae3869e8650
32424 * g10/keydb.c (keydb_search_first, keydb_search_next): Skip legacy
32426 * g10/keyring.c (keyring_get_keyblock): Handle GPG_ERR_LEGACY_KEY.
32427 (prepare_search): Ditto.
32428 (keyring_rebuild_cache): Skip legacy keys.
32429 * g10/keyserver.c (keyidlist): Ditto.
32430 * g10/trustdb.c (validate_key_list): Ditto.
32432 gpg: Add dedicated error code for PGP-2 keys.
32433 + commit 6f3d11d8837b00e3a1c4fa881066855c0321d6b2
32434 * g10/parse-packet.c (parse_key): Return GPG_ERR_LEGACY_KEY for PGP2
32436 * g10/import.c (read_block): Simplify by checking GPG_ERR_LEGACY_KEY.
32437 * g10/getkey.c (lookup): Silence error message for PGP-2 keys.
32439 * common/util.h (GPG_ERR_LEGACY_KEY): Add replacement for older
32442 gpg: Replace remaining old error code macros by GPG_ERR_.
32443 + commit 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993
32444 * g10/gpg.h (g10_errstr): Remove macro and change all occurrences by
32446 (G10ERR_): Remove all macros and change all occurrences by their
32447 GPG_ERR_ counterparts.
32449 gpg: Remove an unused variable.
32450 + commit a23c30fb59c0a216763a7972028995d3be42a844
32451 * g10/getkey.c (getkey_ctx_s): Remove last_rc.
32453 2015-01-21 Werner Koch <wk@gnupg.org>
32455 dirmngr: Fix TLS build problems.
32456 + commit 091c35ec726a4fa4691c2665b13adee6a34b5b66
32457 * dirmngr/Makefile.am (AM_CFLAGS): Add flags for TLS libs.
32459 gpg: Support --passphrase with --quick-gen-key.
32460 + commit 4d7c9b0e9aceedd924d600978bc1b6cae7d5c456
32461 * g10/keygen.c: Include shareddefs.h.
32462 (quick_generate_keypair): Support static passphrase.
32463 (get_parameter_passphrase): New.
32464 (do_generate_keypair): Use it.
32466 gpg: Re-enable the "Passphrase" parameter for batch key generation.
32467 + commit aa99ebde778b7b563f35025f1b48954757f840be
32468 * agent/command.c (cmd_genkey): Add option --inq-passwd.
32469 * agent/genkey.c (agent_genkey): Add new arg override_passphrase.
32470 * g10/call-agent.c (inq_genkey_parms): Handle NEWPASSWD keyword.
32471 (agent_genkey): Add arg optional arg "passphrase".
32472 * g10/keygen.c (common_gen, gen_elg, gen_dsa, gen_ecc)
32473 (gen_rsa, do_create): Add arg "passphrase" and pass it through.
32474 (do_generate_keypair): Make use of pPASSPHRASE.
32475 (release_parameter_list): Wipe out a passphrase parameter.
32477 2015-01-19 Werner Koch <wk@gnupg.org>
32479 kbx: Minor cleanup for the previous fix.
32480 + commit 7be1b7d8017cb7ebf1a3855edec0ef5e342cc9c5
32481 * kbx/keybox-search.c (blob_get_keyid): Rename to
32482 blob_get_first_keyid. Check number of keys and remove blob type check.
32484 2015-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
32486 kbx: Call skipfnc callback to filter out keys.
32487 + commit c5956592c171e6fe988e74161aa99636b7f12e4b
32488 * kbx/keybox-search.c (blob_get_keyid): New.
32489 (keybox-search): Call skipfnc callback function.
32491 2015-01-13 Andreas Schwier <andreas.schwier@cardcontact.de>
32493 scd: Allow for certificates > 1024 with PC/SC.
32494 + commit 16a1330fa16f6b23e2661c0175c431ab40da45ff
32495 * scd/pcsc-wrapper.c (handle_transmit): Enlarge buffer to 4096 too
32496 allow for larger certificates.
32498 2015-01-08 NIIBE Yutaka <gniibe@fsij.org>
32500 dirmngr: Fix error code path of map_host.
32501 + commit 657a26f3af1b3f817d6cde2d091273d332571247
32502 * dirmngr/ks-engine-hkp.c (map_host): Fix error return.
32504 2015-01-08 Joshua Rogers <git@internot.info>
32506 scd: fix get_public_key for OpenPGPcard v1.0.
32507 + commit 100b322f5da3066bab5a2b0eb234c631c581c0e4
32508 * scd/app-openpgp.c (get_public_key): correctly close 'fp' upon use.
32510 2015-01-07 NIIBE Yutaka <gniibe@fsij.org>
32512 dirmngr: fix LDAP query PATTERNS limit check.
32513 + commit 22b15fccffe613f455f9748c048c8e451724a842
32514 * dirmngr/ldap.c (start_cert_fetch_ldap): fix ARGC limitation.
32516 scd: fix merge failure.
32517 + commit 602f17b5a775f02e0e33a54d3155929dc00e4f53
32518 * scd/apdu.c (pcsc_pinpad_verify): Remove wrong lines inserted by
32521 2015-01-05 Werner Koch <wk@gnupg.org>
32523 sm,g13: Init local vars to avoid compiler warnings.
32524 + commit 9bf40849a9f86204e113712c4cc285f1ac16127a
32525 * sm/misc.c (transform_sigval): Init RSA_S_LEN.
32526 * g13/mount.c (read_keyblob): Init HEADERLEN.
32528 gpg: Remove unused args from a function.
32529 + commit 616e511f278bf9af04dc66bbb8b05b37bf541f37
32530 * g10/keyserver.c (parse_keyserver_uri): Remove args configname and
32531 configlineno. Change all callers.
32533 gpg: Clear a possible rest of the KDF secret buffer.
32534 + commit 56e688823345bbcfef220b13eb418854f8798b16
32535 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Fix order of args.
32537 build: Require automake 1.14.
32538 + commit 445bb17d5fe6b53db078082fb033dbc67eea8307
32539 * configure.ac (AM_INIT_AUTOMAKE): Add serial-tests.
32541 2015-01-04 Werner Koch <wk@gnupg.org>
32543 agent: Make --allow-loopback-pinentry gpgconf changeable.
32544 + commit ac2cb47fc5c0be539aaa07fd141acdbc0934800f
32547 2014-12-22 Joshua Rogers <git@internot.info>
32549 tools: Free variable before return.
32550 + commit cf88337f8a4f8c98aca4b1da5921d18567b4f474
32551 * tools/gpgconf-comp.c: Free 'dest_filename' before it is returned
32554 2014-12-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
32556 sm: Avoid double-free on iconv failure.
32557 + commit ed8383c618e124cfa708c9ee87563fcdf2f4649c
32558 * sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
32559 double-free of pwbuf.
32561 scd: Avoid double-free on error condition in scd.
32562 + commit b0b3803e8c2959dd67ca96debc54b5c6464f0d41
32563 * scd/command.c (cmd_readkey): avoid double-free of cert
32565 avoid future chance of using uninitialized memory.
32566 + commit 367b073ab5f439ccf0750461d10c69f36998bd62
32567 * common/iobuf.c: (iobuf_open): initialize len
32569 avoid double-close in unusual dotlock situations.
32570 + commit 628b111fa679612e23c0d46505b1ecbbf091897d
32571 * common/dotlock.c: (dotlock_create_unix) avoid double-close()
32572 in unusual situations.
32574 gpgkey2ssh: clean up varargs.
32575 + commit 351bca9047d748c3c4f7e9a3cdc476af127b1da3
32576 * tools/gpgkey2ssh.c (key_to_blob) : ensure that va_end is called.
32578 2014-12-22 Werner Koch <wk@gnupg.org>
32580 doc: Fix memory leak in yat2m.
32581 + commit 6056d2467310260ddc0db2fe65b737ace6febcaa
32582 * doc/yat2m.c (write_th): Free NAME.
32584 dirmngr: Fix memory leak.
32585 + commit 5a556e4e88bcbc926c0922070acaf5f7b25d18fb
32586 * dirmngr/server.c (cmd_ks_search, cmd_ks_get): Fix memory leak.
32588 * dirmngr/ks-engine-hkp.c (ks_hkp_mark_host): Remove double check.
32590 dirmngr: Remove un-needed check.
32591 + commit 0d5cb55402c44fb5f731ecf85705f845f3091aa7
32592 * dirmngr/crlfetch.c (crl_fetch): Check that URL is not NULL.
32594 dirmngr,gpgsm: Return NULL on fail.
32595 + commit abd5f6752d693b7f313c19604f0723ecec4d39a6
32596 * dirmngr/ldapserver.c (ldapserver_parse_one): Set SERVER to NULL.
32597 * sm/gpgsm.c (parse_keyserver_line): Ditto.
32599 2014-12-22 NIIBE Yutaka <gniibe@fsij.org>
32602 + commit bdc8efbdd124d836c36cf482216e375421f72891
32603 * agent/divert-scd.c (divert_pkdecrypt): Support ECDH.
32604 * scd/app-openpgp.c (get_algo_byte, store_fpr): Support ECDH.
32605 (send_key_attr): Support ECDH. Fix EdDSA algorithm value.
32606 (retrieve_key_material): Initialize fields.
32607 (get_public_key, ecc_writekey, do_writekey): Support ECDH.
32608 (ecdh_writekey): Remove.
32609 (do_decipher): Support ECDH.
32610 (parse_algorithm_attribute): Support ECDH. Fix EdDSA.
32612 2014-12-19 Werner Koch <wk@gnupg.org>
32614 agent: Make sure --max-cache-ttl is >= --default-cache-ttl.
32615 + commit 76140141699b545f7a988bf5fc101063917e8ce3
32616 * agent/gpg-agent.c (finalize_rereadable_options): New.
32617 (main, reread_configuration): Call it.
32619 agent: Keep the session environment for restricted connections.
32620 + commit 14601eacb51f6c8a60d3d57aee1be11debd94c68
32621 * agent/command-ssh.c (setup_ssh_env): Move code to ...
32622 * agent/gpg-agent.c (agent_copy_startup_env): .. new function. Change
32624 * agent/command.c (start_command_handler): Call that fucntion for
32625 restricted connections.
32627 agent: Fix string prepended to remotely initiated prompts.
32628 + commit aad8963f7b9d13b319abd413db8f42ec467db913
32629 * agent/command.c (cmd_setkeydesc): Use %0A and not \n. Make
32632 2014-12-18 Werner Koch <wk@gnupg.org>
32634 build: Remove option to build without agent.
32635 + commit abec64f3cb04e49ca48cc476a5830a920e2ebf8f
32636 * configure.ac (build-agent): Set to yes.
32638 2014-12-17 Werner Koch <wk@gnupg.org>
32640 gpgconf: Exit with failure if --launch fails.
32641 + commit 5cb6df8996623c00eaa2a39e3037101585442f7e
32642 * tools/gpgconf-comp.c (gc_component_launch): Return an error code.
32643 * tools/gpgconf.c (main): Exit if launch failed.
32645 2014-12-16 Werner Koch <wk@gnupg.org>
32648 + commit 08c00cd4fe432d6852ad1d5c34a234c56aa3617c
32651 po: Update the German translation.
32652 + commit 4ba740bd4734c43e7876f6f6380cc5963789d510
32655 2014-12-16 Petr Pisar <petr.pisar@atlas.cz>
32657 po: Update Czech translation.
32658 + commit 30560491fe42562f4bbdb17d3213f7210f549a0f
32661 2014-12-16 Werner Koch <wk@gnupg.org>
32663 gpg: Show private DO information in the card status.
32664 + commit ce9212924039fba4e479760bba86c61b0d91c469
32665 * g10/call-agent.c (agent_release_card_info): Free private_do.
32666 (learn_status_cb): Parse PRIVATE-DO-n stati.
32668 2014-12-16 Ineiev <ineiev@gnu.org>
32670 po: Update Russian translation.
32671 + commit 5ab5b3fa6921f08dd0a498fe0381735e803d01e3
32674 2014-12-16 Jedi <jedi@jedi.org>
32676 po: Update zh_TW translation.
32677 + commit 668dc6b32cb97608ef65b85d917c86f5aec896ce
32680 2014-12-15 Werner Koch <wk@gnupg.org>
32682 gpg: Add sub-command "factory-reset" to --card-edit.
32683 + commit dd65e21cb4934b40e6f2f7a8095f39fd6d9971bc
32684 * common/util.h (GPG_ERR_OBJ_TERM_STATE): New.
32685 * scd/iso7816.c (map_sw): Add this error code.
32686 * scd/app-openpgp.c (do_getattr): Return the life cycle indicator.
32687 * scd/app.c (select_application): Allow a return value of
32688 GPG_ERR_OBJ_TERM_STATE.
32689 * scd/scdaemon.c (set_debug): Print the DBG_READER value.
32690 * g10/call-agent.c (start_agent): Print a status line for the
32692 (agent_scd_learn): Make arg "info" optional.
32693 (agent_scd_apdu): New.
32694 * g10/card-util.c (send_apdu): New.
32695 (factory_reset): New.
32696 (card_edit): Add command factory-reset.
32698 gpg: Fix regression in notation data regression.
32699 + commit fc9a35d2dec2f838abac831fd88dca494773e082
32700 * g10/misc.c (pct_expando): Reorder conditions for clarity.
32701 * g10/sign.c (write_signature_packets): Fix notation data creation.
32703 gpg: Avoid extra LF in notaion data listing.
32704 + commit b4e402cb5c6d7fc507e8d5131969145b49640e50
32705 * g10/keylist.c (show_notation): Use log_printf.
32707 2014-12-12 Werner Koch <wk@gnupg.org>
32709 scd: Fix possibly inhibited checkpin of the admin pin.
32710 + commit 68b4e7c9e4de0dc3580ca5af3cfd0f20a2691b5e
32711 * scd/app-openpgp.c (do_check_pin): Do not check a byte of a released
32714 gpg: Let --card--status create a shadow key (card key stub).
32715 + commit f3f9f9b2844c35f7942ee904d5222523615cdad4
32716 * agent/command.c (cmd_learn): Add option --sendinfo.
32717 * agent/learncard.c (agent_handle_learn): Add arg "send" andsend
32718 certifciate only if that is set.
32719 * g10/call-agent.c (agent_scd_learn): Use --sendinfo. Make INFO
32721 (agent_learn): Remove.
32722 * g10/keygen.c (gen_card_key): Replace agent_learn by agent_scd_learn.
32724 gpg: Fix possible read of unallocated memory.
32725 + commit 193815030d20716d9a97850013ac3cc8749022c9
32726 * g10/parse-packet.c (can_handle_critical): Check content length
32727 before calling can_handle_critical_notation.
32729 2014-12-11 Werner Koch <wk@gnupg.org>
32731 build: Replace deprecated autconf macro.
32732 + commit 1d8ebe4d54eef37da65e7bd5d7386bc04f344447
32733 * m4/intl.m4: s/AM_PROG_MKDIR_P/AC_PROG_MKDIR_P/
32736 2014-12-08 Werner Koch <wk@gnupg.org>
32738 dirmngr: Improve dead host detection.
32739 + commit e8c0ed779579293b3f4592d9337bc15ee0fc3fdd
32740 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Mark host dead
32741 also for 2 other error messages.
32743 http: Improve diagnostic messages.
32744 + commit 6d5f12834124ba5ee0e54261531abf95c36c116c
32745 * common/http.c (send_request): Print TLS alert info
32746 (connect_server): Detect bogus DNS entry.
32748 gpg: Obsolete some keyserver helper options.
32749 + commit 5bf93f4ea7a11381dd256b5fd4e5913366828265
32750 * g10/options.h (opt): Remove keyserver_options.other.
32751 * g10/gpg.c (main): Obsolete option --honor-http-proxt.
32752 * g10/keyserver.c (add_canonical_option): Replace by ...
32753 (warn_kshelper_option): New.
32754 (parse_keyserver_uri): Obsolete "x-broken-http".
32756 dirmngr: Return a proper error for all dead hosts.
32757 + commit b72ece6d74d3e385e818ead748eba0cb111b95b3
32758 * dirmngr/ks-engine-hkp.c (map_host): Change to return an gpg_error_t.
32759 Return an error code for all dead hosts.
32760 (make_host_part): Change to return an gpg_error_t. Change all
32763 gpg: Write a status line for a failed --send-keys.
32764 + commit 66ab8f807c96b778f2a2c82b58d3e15ac295e1b2
32765 * g10/keyserver.c (keyserver_put): Write an status error.
32767 2014-12-08 NIIBE Yutaka <gniibe@fsij.org>
32769 scd: Fix for EdDSA.
32770 + commit c50c11d5751f46ddb38244a5a07d8274e1e10922
32771 * scd/app-openpgp.c (get_algo_byte): It catches 22.
32772 (store_fpr): It's MPI usually, but it's opaque bytes for EdDSA.
32774 2014-12-05 Andre Heinecke <aheinecke@intevation.de>
32776 Document no-allow-mark-trusted option.
32777 + commit f4ed04fca8885301b567ec004ffff0d6e24f4611
32778 doc: Document no-allow-mark-trusted for gpg-agent
32780 * doc/gpg-agent.texi: Change allow-mark-trusted doc to
32781 no-allow-mark-trusted.
32784 Since rev. 78a56b14 allow-mark-trusted is the default option
32785 and was replaced by no-allow-mark-trusted to disable the
32786 interactive prompt.
32788 2014-12-05 NIIBE Yutaka <gniibe@fsij.org>
32790 scd: Fix for NIST P-256.
32791 + commit 8720125f5a283ede34e52c2493b8a9b0226ae62c
32792 * g10/card-util.c (card_store_subkey): Error check.
32793 * scd/app-opengpg.c (ecc_writekey): Support NIST P-256.
32794 (do_writekey): Error check.
32796 2014-12-04 Werner Koch <wk@gnupg.org>
32798 gpg: Allow import of large keys.
32799 + commit 63e7891f0f9f0228d93c6cd979fbf2797da2b67d
32800 * g10/import.c (import): Skip too large keys.
32801 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 2MB to 5MB.
32803 2014-12-03 Werner Koch <wk@gnupg.org>
32805 gpg: Remove option aliases --[no-]throw-keyid and --notation-data.
32806 + commit 17b4662984b4669d8dcbbd6705ccfbe6c263319c
32807 * g10/gpg.c (opts): Remove them.
32808 * g10/options.h (opt): s/throw_keyid/throw_keyids/ and change users.
32810 2014-12-02 Werner Koch <wk@gnupg.org>
32812 agent: Replace some sprintf.
32813 + commit fabcf1440a6900b9471f11e4f2a015e9f2d1a74c
32814 * agent/call-scd.c (agent_card_pksign): Replace sprintf by bin2hex.
32815 * agent/command-ssh.c (ssh_identity_register): Ditto.
32816 * agent/pkdecrypt.c (agent_pkdecrypt): Replace sprintf by
32819 2014-12-01 Werner Koch <wk@gnupg.org>
32821 tools: Improve watchgnupg portability.
32822 + commit 0367a4b8cfbf1f197e093ca2b83b27e0a409c3c7
32823 * configure.ac (AC_CHECK_HEADERS): Check for sys.select.h
32824 * tools/watchgnupg.c: Include it.
32826 gpg: Fix export bug using exact search with only one key in the keybox.
32827 + commit f1c3eb4b16ca43b5d3712a3b54c22d17ce85af47
32828 * g10/export.c (do_export_stream): Disable caching.
32829 * g10/keyserver.c (keyidlist): Ditto.
32831 scd: Implement socket redirection.
32832 + commit 2f90b7c21b2f84ca2bf5f4555da9233e84606b4e
32833 * scd/scdaemon.c (ENAMETOOLONG): New.
32834 (redir_socket_name): New.
32835 (cleanup): Take care of a redirected socket.
32836 (main): Pass redir_socket_name to create_server_socket.
32837 (create_socket_name): Remove superfluous length check.
32838 (create_server_socket): Add arg r_redir_name and implement
32839 redirection. Replace assert for older Assuan by an error message.
32841 dirmngr: Implement socket redirection.
32842 + commit eede0e59bf6281777da7391752ae4191f3e51204
32843 * dirmngr/dirmngr.c (ENAMETOOLONG): new.
32844 (redir_socket_name): New.
32845 (main): Add Assuan socket redirection.
32846 (cleanup): Adjust cleanup for redirection.
32848 2014-11-28 Werner Koch <wk@gnupg.org>
32850 agent: Implement socket redirection.
32851 + commit e1f515b19c7f63b6d0b0253319b9fc41dabed657
32852 * agent/gpg-agent.c (ENAMETOOLONG): New.
32853 (redir_socket_name, redir_socket_name_extra)
32854 (redir_socket_name_ssh): New.
32855 (remove_socket): Take care of the redir names.
32856 (main): Pass the redir names to create_server_socket.
32857 (create_socket_name): Remove length check - that is anyway done later.
32858 (create_server_socket): Add arg r_redir_name and implement redirection
32859 if Libassuan is at least 2.14.
32861 gpg: Change another BUG() call to a regular error message.
32862 + commit e59b1cc7471dd161a627b290c645ef7bd0d9d42c
32863 * g10/mainproc.c (proc_tree): Replace BUG by a proper error messages.
32865 Add option --no-autostart.
32866 + commit 7aee3579be6e24a1aa280e75615fc3a11ceef960
32867 * g10/gpg.c: Add option --no-autostart.
32868 * sm/gpgsm.c: Ditto.
32869 * g10/options.h (opt): Add field autostart.
32870 * sm/gpgsm.h (opt): Ditto.
32871 * g10/call-agent.c (start_agent): Print note if agent was not
32873 * sm/call-agent.c (start_agent): Ditto.
32874 * g10/call-dirmngr.c (create_context): Likewise.
32875 * sm/call-dirmngr.c (start_dirmngr_ext): Ditto.
32877 2014-11-27 Мирослав Николић <wk@gnupg.org>
32879 gpg-agent: Add restricted connection feature.
32880 + commit f173cdcdfbfd083b035516a406c2c754f38a0ace
32881 * agent/agent.h (opt): Add field extra_socket.
32882 (server_control_s): Add field restricted.
32883 * agent/command.c: Check restricted flag on many commands.
32884 * agent/gpg-agent.c (oExtraSocket): New.
32885 (opts): Add option --extra-socket.
32886 (socket_name_extra): New.
32887 (cleanup): Cleanup that socket name.
32888 (main): Implement oExtraSocket.
32889 (create_socket_name): Add arg homedir and change all callers.
32890 (create_server_socket): Rename arg is_ssh to primary and change
32892 (start_connection_thread): Take ctrl as arg.
32893 (start_connection_thread_std): New.
32894 (start_connection_thread_extra): New.
32895 (handle_connections): Add arg listen_fd_extra and replace the
32896 connection starting code by parameterized loop.
32897 * common/asshelp.c (start_new_gpg_agent): Detect the use of the
32898 restricted mode and don't fail on sending the pinentry environment.
32900 * common/util.h (GPG_ERR_FORBIDDEN): New.
32902 agent: Make auditing of the option list easier.
32903 + commit ccee34736b57a42ec4bdcb0d3181bdc6a08b0fff
32904 * agent/gpg-agent.c (opts): Use ARGPARSE_ macros.
32906 2014-11-26 Kristian Fiskerstrand <kf@sumptuouscapital.com>
32908 dirmngr: Only report hkps scheme when available.
32909 + commit 68a7ccc0c870cce6ab9fefb1aa6fd100e1de129b
32910 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Make use of TLS macros.
32912 2014-11-26 Werner Koch <wk@gnupg.org>
32914 gpg: Change a bug() call to a regular error message.
32915 + commit 1c2140346d6ef9c35e303099d2d15be57869b4d5
32916 * g10/decrypt-data.c (decrypt_data): Return an error code instead of
32919 2014-11-25 Werner Koch <wk@gnupg.org>
32921 Fix buffer overflow in openpgp_oid_to_str.
32922 + commit 8445ef24fc31e1fe0291e17f90f9f06b536e34da
32923 * common/openpgp-oid.c (openpgp_oid_to_str): Fix unsigned underflow.
32925 * common/t-openpgp-oid.c (BADOID): New.
32926 (test_openpgp_oid_to_str): Add test cases.
32928 2014-11-24 Werner Koch <wk@gnupg.org>
32930 gpg: Fix use of uninit.value in listing sig subpkts.
32931 + commit 596ae9f5433ca3b0e01f7acbe06fd2e424c42ae8
32932 * g10/parse-packet.c (dump_sig_subpkt): Print regex subpacket
32935 gpg: Fix off-by-one read in the attribute subpacket parser.
32936 + commit 0988764397f99db4efef1eabcdb8072d6159af76
32937 * g10/parse-packet.c (parse_attribute_subpkts): Check that the
32938 attribute packet is large enough for the subpacket type.
32940 gpg: Fix batch generation of ECC keys.
32941 + commit b716e6a69919b89c7887d6c7c9b97e58d18fdf95
32942 * g10/keygen.c (get_parameter_algo): Map ECC algorithm strings
32945 2014-11-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
32947 Distinguish between ARGPARSE_AMBIGUOUS_{OPTION,COMMAND}
32948 + commit eed16ccebf8fd1fdf9709affbd5c831f6957b8ae
32949 * common/argparse.c (initialize): Use correct value.
32951 gpg: Refer to --throw-keyids instead of --throw-keyid.
32952 + commit a3cf781e3bc144aff60e007b9ba59bff7b1b2c9e
32953 * g10/encrypt.c: adjust error message
32955 2014-11-21 Werner Koch <wk@gnupg.org>
32957 gpg: Track number of skipped v3 keys on import.
32958 + commit 44c9cc18968b3e1d7568ec41ebf28a07285c61bb
32959 * g10/import.c (stats_s): Add field v3keys.
32960 (import): Update this field.
32961 (import_print_stats): Print v3 key count.
32962 (read_block): Skip v3 keys and return a count for them.
32964 gpg: Fix regression in parse_key.
32965 + commit 94a54425144e412bc83e44b7c6323282f49f650f
32966 * g10/parse-packet.c (parse): Better return just the gpg_err_code.
32967 (parse_key): Return the error code.
32969 speedo: Add simple logos to the installer.
32970 + commit 9a85b91e925ac0798d56820353bf5858b212277f
32971 * build-aux/speedo/w32/README.txt: Include GnuPG Readme.
32972 * build-aux/speedo/w32/gnupg-logo-150x57.bmp: New.
32973 * build-aux/speedo/w32/gnupg-logo-164x314.bmp: New.
32974 * build-aux/speedo/w32/inst.nsi: Add logos.
32975 * build-aux/speedo.mk ($(bdir)/NEWS.tmp): Extract news items.
32977 2014-11-20 Werner Koch <wk@gnupg.org>
32979 gpg: Fix hash detection for ECDSA.
32980 + commit f80c2dd78d522f12b2c7afbd5c0763a97d87d2bd
32981 * g10/sign.c (sign_file): Use DSA or ECDSA and not DSA|EdDSA.
32983 Fix linker problem on OS X.
32984 + commit cd2c6f36fe5d1d1d45546f5168aead5cbe6487e0
32985 * common/init.c (default_errsource): Move to the .data segmemt.
32987 2014-11-19 Werner Koch <wk@gnupg.org>
32989 gpg-connect-agent: Add convenience option --uiserver.
32990 + commit 164a6a9dd4af26668dd0d01061688bf1ceff44bf
32993 Add "gpgconf --kill dirmngr" and avoid useless launch before a kill.
32994 + commit 0e7dd40342bd56810c27db1c38c1928f56f43bfd
32995 * common/asshelp.c (start_new_gpg_agent): Add arg autostart. Change
32996 all callers to use 1 for it.
32997 (start_new_dirmngr): Ditto.
32998 * tools/gpg-connect-agent.c: Add option --no-autostart.
32999 (main): Default autostart to 1.
33000 (start_agent): Implement no-autostart.
33001 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Use --no-autostart.
33002 (scdaemon_runtime_change): Ditto.
33003 (dirmngr_runtime_change): New.
33005 po: Copied missing translations from the 2.0 branch.
33006 + commit 329ece46bf83871f01eb833d5ebec6da36bfcce0
33007 * po/LINGUAS: Add new translations.
33009 2014-11-17 Werner Koch <wk@gnupg.org>
33011 gpg: Fix a NULL-deref for invalid input data.
33012 + commit 32e85668b82f6fbcb824eea9548970804fb41d9e
33013 * g10/mainproc.c (proc_encrypted): Take care of canceled passpharse
33016 2014-11-13 Werner Koch <wk@gnupg.org>
33018 gpg: Make the use of "--verify FILE" for detached sigs harder.
33019 + commit 69384568f66a48eff3968bb1714aa13925580e9f
33020 * g10/openfile.c (open_sigfile): Factor some code out to ...
33021 (get_matching_datafile): new function.
33022 * g10/plaintext.c (hash_datafiles): Do not try to find matching file
33024 * g10/mainproc.c (check_sig_and_print): Print a warning if a possibly
33025 matching data file is not used by a standard signatures.
33027 gpg: Fix a missing LF in debug output.
33028 + commit 22748338da9a78d20aefe3656ba40b0f9d34a681
33029 * g10/kbnode.c (dump_kbnode): Print a LF.
33031 gpg: Remove PGP-2 related cruft.
33032 + commit e30cb8f61792e3808f7c8f343fc8545e6c81fe74
33033 * g10/armor.c (parse_hash_header,carmor_filter): Ignore MD5 in hash
33035 (fake_packet): Remove pgp-2 workaround for white space stripping.
33036 * g10/filter.h (armor_filter_context_t): Remove field pgp2mode.
33037 * g10/options.h (opt): Remove field pgp2_workarounds.
33038 * g10/gpg.c (main): Do not set this field.
33039 * g10/gpgv.c (main): Ditto.
33040 * g10/mainproc.c (proc_encrypted): Use SHA-1 as fallback s2k hash
33041 algo. Using MD5 here is useless.
33042 (proc_plaintext): Remove PGP-2 related woraround
33043 (proc_tree): Remove another workaround but keep the one for PGP-5.
33045 2014-11-12 Werner Koch <wk@gnupg.org>
33047 gpg: Improve perceived speed of secret key listings.
33048 + commit 81e177be10273885573f5d1fd88a1ee23479f4ab
33049 * g10/keylist.c (list_keyblock): Flush stdout for secret keys.
33051 gpg: Fix regression in --refresh-keys.
33052 + commit eecbed004ca1e9ca23c3892c3a5e6dd174ddf93b
33053 * g10/keyserver.c (keyserver_get): Factor all code out to ...
33054 (keyserver_get_chunk): new. Extimate line length.
33055 (keyserver_get): Split up requests into chunks.
33057 gpg: Add import options "keep-ownertrust".
33058 + commit ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39
33059 * g10/options.h (IMPORT_KEEP_OWNERTTRUST): New.
33060 * g10/import.c (parse_import_options): Add "keep-ownertrust".
33061 (import_one): Act upon new option.
33063 2014-11-11 Werner Koch <wk@gnupg.org>
33065 Remove use of gnulib (part 2)
33066 + commit b8cdfac353ad96d4ef025c066c16dbde34805661
33067 * configure.ac (strpbrk): Add to AC_CHECK_FUNCS.
33068 (gl_EARLY): Remove.
33069 * common/stringhelp.c (strpbrk) [!HAVE_STRPBRK]: New.
33070 * common/sysutils.c (gnupg_mkdtemp): New. Based on code from
33072 (gnupg_setenv): Rewrite.
33073 (gnupg_unsetenv): Rewrite.
33074 * g10/exec.c: Include sysutils.h and replace mkdtemp by gnupg_mkdtemp.
33075 * g13/be-encfs.c: Ditto.
33076 * g13/mount.c: Ditto.
33077 * tools/symcryptrun.c (confucius_mktmpdir): Ditto.
33079 Remove use of gnulib (part 1)
33080 + commit 1adf719b2d8e2d5b912bf6655731e7e586402654
33081 * gl/: Remove entire tree.
33082 * configure.ac: Remove gnulib tests and the gl/ Makefile.
33083 (setenv): Add to AC_CHECK_FUNCS.
33084 * autogen.rc (extra_aclocal_flags): Set to empty.
33085 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I gl/m4
33086 (SUBDIRS): Remove gl/.
33087 * agent/Makefile.am (common_libs): Remove ../gl/gnulib.a
33088 * common/Makefile.am (t_common_ldadd): Ditto.
33089 * dirmngr/Makefile.am (dirmngr_LDADD): Ditto.
33090 (dirmngr_ldap_LDADD, dirmngr_client_LDADD): Ditto.
33091 * g10/Makefile.am (needed_libs): Ditto.
33092 * g13/Makefile.am (g13_LDADD): Ditto.
33093 * kbx/Makefile.am (kbxutil_LDADD): Ditto.
33094 ($(PROGRAMS)): Ditto.
33095 * scd/Makefile.am (scdaemon_LDADD): Ditto.
33096 * sm/Makefile.am (common_libs): Ditto.
33097 * tools/Makefile.am (common_libs, commonpth_libs): Ditto.
33099 * agent/gpg-agent.c: Remove "mkdtemp.h"
33100 * g10/exec.c: Ditto.
33101 * scd/scdaemon.c: Ditto.
33102 * tools/symcryptrun.c: Ditto.
33103 * common/sysutils.c: Remove "setenv.h"
33105 * common/t-timestuff.c: Use putenv if setenv is not available.
33107 2014-11-07 Werner Koch <wk@gnupg.org>
33109 gpg: Remove warning message for non-implemented search modes.
33110 + commit 7362c8c6e60939588e817384ae2e29195cb3f518
33111 * kbx/keybox-search.c (keybox_search): Silently ignore.
33112 * doc/specify-user-id.texi: Docuement '@", '+', and '.' search
33115 w32: Fix http access module.
33116 + commit f0f5cb6b3e525f696b8820c517190e1d84f3b885
33117 * common/http.c (write_server) [W32]: Rework to use send() instead of
33118 write even when build with npth.
33119 (cookie_read) [W32]: Rework to use recv() instead of read even when
33122 build: Add method to use a custom swdb.lst and use adns with Windows.
33123 + commit c7c79e31937e2d2fdb4042641786c229e31fbfae
33124 * build-aux/getswdb.sh: Add option --skip-verify.
33125 * build-aux/speedo.mk: Add config var CUSTOM_SWDB. Tage adns version
33126 from swdb and build for Windows with adns.
33128 build: Improve test for ADNS.
33129 + commit f7e1be24c8fcf588d4e48aa53a85b22bd035e3b0
33130 * configure.ac <adns>: Use adns_free as probe function for libadns.
33131 (HAVE_ADNS_FREE): Remove bogus tests to set this and remove the macro.
33132 (ADNSLIBS): Do not ac_subst - it is only used within configure.
33134 2014-11-05 Werner Koch <wk@gnupg.org>
33136 speedo: Append the date to the Windows installer.
33137 + commit 8ec0b384a86bd7f67a60ab43ff1540e80c3f729d
33138 * build-aux/speedo.mk (BUILD_DATESTR): New.
33139 (dist-source, installer): Use it.
33142 + commit e22b459b910762f77245283746de34c67ebc72da
33145 Avoid sign extension when shifting the MSB.
33146 + commit 91b826a38880fd8a989318585eb502582636ddd8
33147 * sm/fingerprint.c (gpgsm_get_short_fingerprint): Cast MSB before
33149 * g10/build-packet.c (delete_sig_subpkt): Ditto.
33151 2014-11-04 Werner Koch <wk@gnupg.org>
33153 Remove all expired common CA certificates.
33154 + commit 46fa1e0fe9f7407f12aa854e5cdb54624af3e89b
33155 * doc/com-certs.pem: Remove certifciates.
33157 2014-11-02 Werner Koch <wk@gnupg.org>
33159 gpg: Avoid extra pinentries for each subkey in --export-secret-keys.
33160 + commit f8c993fbe28bf02f1d7aadec823a9dfc935398fa
33161 * agent/command.c (cmd_export_key): Actually implement the cache_nonce
33163 * g10/export.c (do_export_stream): Make use of a cache_nonce.
33165 gpg: Fix endless loop in keylisting with fingerprint.
33166 + commit d95f05c314adfecbe0af9073f964030010442f9b
33167 * g10/getkey.c (getkey_next): Disable cache.
33169 gpg: Minor cleanup for key listing related code.
33170 + commit 440e8f517008107a9fe1b72cb659b97b7d840de6
33171 * g10/getkey.c (get_pubkey_next): Divert to getkey_next.
33172 (get_pubkey_end): Move code to getkey_end.
33173 * g10/keydb.c (keydb_search_reset): Add a debug statement.
33174 (dump_search_desc): Add arg HD and print the handle.
33176 gpg: Do not show an useless passphrase prompt in batch mode.
33177 + commit a929f36693567e57eca89fb48f23cada8ce7291a
33178 * g10/keygen.c: Remove unused PASSPHRASE related code.
33179 (proc_parameter_file): Remove useless asking for a passphrase in batch
33182 2014-10-31 Werner Koch <wk@gnupg.org>
33184 gpg: Remove superfluous check for Libgcrypt >= 1.4.0.
33185 + commit f4df71aa2d544ec46a2ded3055ffb21b9842129e
33186 * g10/gpg.c (main): Remove check.
33188 kbx: Let keydb_search skip unwanted blobs.
33189 + commit 935edf88ab29b2f63afc2a0e3af1b33c92033ab7
33190 * kbx/keybox.h (keybox_blobtype_t): New.
33191 * kbx/keybox-defs.h (BLOBTYPE_*): Replace by KEYBOX_BLOBTYPE_*.
33192 * kbx/keybox-search.c (keybox_search): Add arg want_blobtype and skip
33193 non-matching blobs.
33194 * sm/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_X509 to keybox_search.
33195 * g10/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_PGP to keybox_search.
33197 gpg: Fix --rebuild-keydb-caches.
33198 + commit 28ae8ad70b3b802e67344468a4765eee6e291c68
33199 * g10/parse-packet.c (parse_key): Store even unsupported packet
33201 * g10/keyring.c (keyring_rebuild_cache): Do not copy keys with
33202 versions less than 4.
33204 gpg: Fix testing for secret key availability.
33205 + commit 433208a5536608c2b40525eebadbbdeb7780d7f2
33206 * g10/getkey.c (have_secret_key_with_kid): Do not change the search
33209 build: Avoid distributing backup files etc.
33210 + commit b47fe2b14e2a610706bdeff9dbd9a5f7bd6f6b3a
33211 * Makefile.am (EXTRA_DIST): Do not include directories.
33213 2014-10-30 Werner Koch <wk@gnupg.org>
33215 tests: Speed up the genkey1024.test by using not so strong random.
33216 + commit 9546aa3cc87fc83a40768a12fbbceb19496ce129
33217 * agent/gpg-agent.c (oDebugQuickRandom): New.
33218 (opts): New option --debug-quick-random.
33219 (main): Use new option.
33220 * common/asshelp.c (start_new_gpg_agent): Add hack to pass an
33221 additional argument for the agent name.
33222 * tests/openpgp/defs.inc: Pass --debug-quick-random to the gpg-agent
33223 starting parameters.
33224 * tests/openpgp/version.test: Ditto.
33226 2014-10-29 Werner Koch <wk@gnupg.org>
33228 common: Check option arguments for a valid range.
33229 + commit 0d73a242cb53522669cf712b5ece7d1ed05d003a
33230 * common/argparse.h (ARGPARSE_INVALID_ARG): New.
33231 * common/argparse.c: Include limits h and errno.h.
33232 (initialize): Add error strings for new error constant.
33233 (set_opt_arg): Add range checking.
33235 Fix stdint.h problem for Apple.
33236 + commit f5592fcff308007322a201c970a6d5e8763c9fe3
33237 * gl/stdint_.h [__APPLE__]: Include hack.
33239 2014-10-27 Werner Koch <wk@gnupg.org>
33241 speedo: Fixes for native build.
33242 + commit 158fe900183daf745821dea7a70cf1c673cd8de0
33243 * build-aux/speedo.mk (TARGETOS): Init with empty string.
33244 (speedo_pkg_gnupg_configure): Use --enable-gpg2-is-gpg only for w32.
33245 (INST_VERSION, INST_PROD_VERSION): Create only for w32.
33247 2014-10-24 Werner Koch <wk@gnupg.org>
33249 agent: Support pinentries with integrated repeat passphrase feature.
33250 + commit c9aadcb3a248632c07391ff3d829bece9320a901
33251 * agent/agent.h (struct pin_entry_info_s): Add fields repeat_okay and
33253 * agent/call-pinentry.c (close_button_status_cb): Rewrite and check
33254 for PIN_REPEAT. Change users to check only the relevant bit.
33255 (agent_askpin): Support repeat logic of new Pinentries.
33257 * agent/command-ssh.c (ssh_identity_register): Use the new repeat
33259 * agent/genkey.c (agent_ask_new_passphrase): Ditto.
33261 2014-10-19 Werner Koch <wk@gnupg.org>
33263 gpg: Silence "packet with obsolete versoin" warnings.
33264 + commit 472a4a0d82add2d17154fa38e0074eaea56c28c1
33265 * g10/parse-packet.c (parse_key): Print warning only in very verbose
33268 gpg: Make card key generation work again.
33269 + commit 1b8decc4767f0c55867327bdf3113204efcd19a7
33270 * g10/call-agent.c (agent_scd_learn): Rename from agent_learn.
33271 (agent_learn): New.
33272 * g10/keygen.c (gen_card_key): Call new agent-learn.
33274 2014-10-17 Werner Koch <wk@gnupg.org>
33276 dirmngr: Allow building without LDAP support.
33277 + commit 6d9491842d5da597980eaa59e1e3e2137965fe09
33278 * configure.ac: Add option --disable-ldap.
33279 (USE_LDAP): New ac_define and am_conditional.
33280 * dirmngr/Makefile.am: Take care of USE_LDAP.
33281 * dirmngr/dirmngr.c (!USE_LDAP): Make all ldap options dummy options
33282 and do not call any ldap function.
33283 * dirmngr/server.c (!USE_LDAP): Do not call any ldap function.
33284 * dirmngr/crlfetch.c (!USE_LDAP): Ditto.
33286 w32: Set SYSROOT to help finding config scripts.
33287 + commit a13705f4c18db56765f4af31376e81241dbabebe
33288 * autogen.sh <build-w32>: Set SYSROOT.
33290 gpg: Remove all support for v3 keys and always create v4-signatures.
33291 + commit 8fd150b05b744fe9465057c12529d5e6b6b02785
33292 * g10/build-packet.c (do_key): Remove support for building v3 keys.
33293 * g10/parse-packet.c (read_protected_v3_mpi): Remove.
33294 (parse_key): Remove support for v3-keys. Add dedicated warnings for
33296 * g10/keyid.c (hash_public_key): Remove v3-key support.
33297 (keyid_from_pk): Ditto.
33298 (fingerprint_from_pk): Ditto.
33300 * g10/options.h (opt): Remove fields force_v3_sigs and force_v4_certs.
33301 * g10/gpg.c (cmd_and_opt_values): Remove oForceV3Sigs, oNoForceV3Sigs,
33302 oForceV4Certs, oNoForceV4Certs.
33303 (opts): Turn --force-v3-sigs, --no-force-v3-sigs, --force-v4-certs,
33304 --no-force-v4-certs int dummy options.
33305 (main): Remove setting of the force_v3_sigs force_v4_certs flags.
33306 * g10/revoke.c (gen_revoke, create_revocation): Always create v4 certs.
33307 * g10/sign.c (hash_uid): Remove support for v3-signatures
33308 (hash_sigversion_to_magic): Ditto.
33309 (only_old_style): Remove this v3-key function.
33310 (write_signature_packets): Remove support for creating v3-signatures.
33311 (sign_file): Ditto.
33312 (sign_symencrypt_file): Ditto.
33313 (clearsign_file): Ditto. Remove code to emit no Hash armor line if
33314 only v3-keys are used.
33315 (make_keysig_packet): Remove arg SIGVERSION and force using
33316 v4-signatures. Change all callers to not pass a value for this arg.
33317 Remove all v3-key related code.
33318 (update_keysig_packet): Remove v3-signature support.
33319 * g10/keyedit.c (sign_uids): Always create v4-signatures.
33321 * g10/textfilter.c (copy_clearsig_text): Remove arg pgp2mode and
33324 2014-10-13 Werner Koch <wk@gnupg.org>
33326 gpg: Remove extra RSA import status line.
33327 + commit fab89f159bcb36ea7285af661d5756eefa981822
33328 * g10/import.c (stats_s): Remove field "imported_rsa".
33329 (import_print_stats): Do not print separate value for RSA.
33330 (import_one): Remove the RSA counter.
33332 gpg: Fix informative printing of user ids.
33333 + commit 21c0ea6bafafbcc4a2e07f0ac76275cc0229e9a0
33334 * g10/getkey.c (keyid_list): Add field "fpr".
33335 (cache_user_id): Store fpr and check for dups only by fpr.
33336 (get_pubkey_byfpr): New.
33337 (get_user_id_string): Make static and use xasprintf.
33338 (get_long_user_id_string): Use xasprintf.
33339 (get_user_id_byfpr): New.
33340 (get_user_id_byfpr_native): New.
33341 * g10/keyid.c (fingerprint_from_pk): Make arg RET_LEN optional.
33342 * g10/import.c (import_one): Use get_user_id_byfpr_native.
33344 gpg: Allow importing keys with duplicated long key ids.
33345 + commit c60814a5ce13932d933b363abc0c60c12783ae2f
33346 * g10/keydb.c (keydb_handle): Add field no_caching.
33347 (keyblock_cache): Repalce field kid by fpr.
33348 (keydb_disable_caching): New.
33349 (keydb_search): Use the fingerprint as cache index.
33351 * g10/import.c (import_one): Use the fingerprint and not the kid to
33352 lookup the key. Call keydb_disable_caching beofre re-searching for
33355 * tests/openpgp/import.test: Add a test case.
33357 tests: Speed up conventional encryption tests for gpg.
33358 + commit 2543f0ab9c7b4247347688863f898667bae31984
33359 * tests/openpgp/conventional-mdc.test: Add an s2k-count option.
33360 * tests/openpgp/conventional.test: Ditto.
33362 2014-10-12 Werner Koch <wk@gnupg.org>
33364 gpg: Minor change for better readability.
33365 + commit 2d68dc437e7de92619abe3a019b0a7606487b6bf
33366 * g10/build-packet.c (write_version): Remove.
33367 (do_pubkey_enc, do_onepass_sig): Write version directly.
33369 2014-10-10 Werner Koch <wk@gnupg.org>
33371 doc: Fix a man page rendering problem.
33372 + commit 5b5e5a6027ae1743719e112aa4e9055f1b8133a7
33373 * doc/gpg-agent.texi (Agent Configuration): Fix rendering of the
33374 sshcontrol example.
33376 2014-10-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
33378 gpg: Add build and runtime support for larger RSA keys.
33379 + commit 6cabb7a2a18f871b8c3d5de58bcdc5aaa5b201af
33380 * configure.ac: Added --enable-large-secmem option.
33381 * g10/options.h: Add opt.flags.large_rsa.
33382 * g10/gpg.c: Contingent on configure option: adjust secmem size,
33383 add gpg --enable-large-rsa, bound to opt.flags.large_rsa.
33384 * g10/keygen.c: Adjust max RSA size based on opt.flags.large_rsa
33385 * doc/gpg.texi: Document --enable-large-rsa.
33387 2014-10-09 Werner Koch <wk@gnupg.org>
33389 gpg: Skip overlong keys and a print a warning.
33390 + commit 2ca90f78cee91c43b8d538d1cb92728f8e1452d5
33391 * kbx/keybox-search.c (keybox_search): Add arg r_skipped and skip too
33393 * sm/keydb.c (keydb_search): Call keybox_search with a dummy param.
33394 * g10/keydb.c (struct keydb_handle): Add field skipped_long_blobs.
33395 (keydb_search_reset): Reset that field.
33396 (keydb_search): Update that field.
33397 (keydb_get_skipped_counter): New.
33398 * g10/keylist.c (list_all): Print count of skipped keys.
33400 gpg: Sync keylist output and warning messages.
33401 + commit 60e21d8b85888b8c9ea15c70268f98d780fdf5fb
33402 * g10/keylist.c (list_all): Flush stdout before logging.
33403 * g10/misc.c (print_pubkey_algo_note): Ditto.
33404 (print_cipher_algo_note): Ditto.
33405 (print_digest_algo_note): Ditto.
33406 (print_md5_rejected_note): Ditto.
33408 kbx: Fix handling of overlong keys.
33409 + commit b6507bb80e4e4aa5c85a918fdcf5c28cccb75081
33410 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 10^6 to 2MiB.
33411 (_keybox_read_blob2): Skip too long record records.
33412 (_keybox_write_blob): Do not accept too long record.
33413 * kbx/keybox-dump.c (file_stats_s): Add field skipped_long_blobs.
33414 (_keybox_dump_file): Print new counter.
33415 (_keybox_dump_file): Skip too long records.
33418 To test this feature you may set the limit back to 1MiB and use key
33419 F7F0E70F307D56ED which is in my local copy close to 2MiB. Without
33420 this patch it was possible to import the key but access to that key
33421 and all keys stored after it was not possible.
33423 gpg: Take care to use pubring.kbx if it has ever been used.
33424 + commit ec332d58efc50f6508b87fc9f51db68c39cee044
33425 * kbx/keybox-defs.h (struct keybox_handle): Add field for_openpgp.
33426 * kbx/keybox-file.c (_keybox_write_header_blob): Set openpgp header
33428 * kbx/keybox-blob.c (_keybox_update_header_blob): Add arg for_openpgp
33429 and set header flag.
33430 * kbx/keybox-init.c (keybox_new): Rename to do_keybox_new, make static
33431 and add arg for_openpgp.
33432 (keybox_new_openpgp, keybox_new_x509): New. Use them instead of the
33434 * kbx/keybox-update.c (blob_filecopy): Add arg for_openpgp and set the
33435 openpgp header flags.
33437 * g10/keydb.c (rt_from_file): New. Factored out and extended from
33438 keydb_add_resource.
33439 (keydb_add_resource): Switch to the kbx file if it has the openpgp
33442 * kbx/keybox-dump.c (dump_header_blob): Print header flags.
33444 2014-10-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
33446 Avoid unnecessary library linkage.
33447 + commit 27fe067efea883629354450a042ad09e47d90ff8
33448 * dirmngr/Makefile.am: Avoid $(DNSLIBS) for dirmngr_ldap
33449 * g10/Makefile.am: $(LIBREADLINE) is only for gpg2; gpgv2 does not
33450 need $(LIBASSUAN_LIBS)
33451 * sm/Makefile.am: gpgsm does not need $(ZLIBS)
33452 * tools/Makefile.am: gpgconf does not need $(NPTH_LIBS)
33454 2014-10-08 Werner Koch <wk@gnupg.org>
33456 gpg: Avoid error exit if keygrip computations fails in a key listing.
33457 + commit 3ae6afc1336d42bd95fa0b7f5f83bd299ae26b97
33458 * g10/keyid.c (keygrip_from_pk): Use log_info and clear array on error.
33460 2014-10-03 Werner Koch <wk@gnupg.org>
33462 Release 2.1.0-beta864.
33463 + commit 0943c7cc23371943e9670a2f35c318d847cbac6a
33466 gpg: Allow creating a cert-only primary key.
33467 + commit bc8583f247898a1fa45f6de834d34b335ab1952c
33468 * g10/keygen.c (ask_key_flags): Allow a 'c' in direct entry.
33470 build: Add configure options --disable-{ntb,gnu}tls.
33471 + commit 6522a68d8d11e15ee77102e6830f251c2d9f440d
33472 * configure.ac: Add --disable-ntbtls and --disable-gnutls.
33474 2014-10-03 Andre Heinecke <aheinecke@intevation.de>
33476 gpg: Check gpg-agent version before 2.1 migration.
33477 + commit a6fcdbc9e0fc0e45a3badc23813e689e83059b61
33478 * g10/call-agent.c, g10/call-agent.h (agent_get_version): New.
33479 * g10/migrate.c (migrate_secring): Abort migration if
33480 agent_get_version returns not at least 2.1.0
33482 2014-10-03 Werner Koch <wk@gnupg.org>
33484 po: Update German translation.
33485 + commit b15d5d42adf31c0797797ebe19c471ab6f52c668
33488 Remove support for the GPG_AGENT_INFO envvar.
33489 + commit 9c380384dafb213334f8834178c5ceb0bf33db6e
33490 * agent/agent.h (opt): Remove field use_standard_socket.
33491 * agent/command.c (cmd_killagent): Always allow killing.
33492 * agent/gpg-agent.c (main): Turn --{no,}use-standard-socket and
33493 --write-env-file into dummy options. Always return true for
33494 --use-standard-socket-p. Do not print the GPG_AGENT_INFO envvar
33495 setting or set that envvar.
33496 (create_socket_name): Simplify by removing non standard socket
33498 (check_for_running_agent): Ditto.
33499 * common/asshelp.c (start_new_gpg_agent): Remove GPG_AGENT_INFO use.
33500 * common/simple-pwquery.c (agent_open): Ditto.
33501 * configure.ac (GPG_AGENT_INFO_NAME): Remove.
33502 * g10/server.c (gpg_server): Do not print the AgentInfo comment.
33503 * g13/server.c (g13_server): Ditto.
33504 * sm/server.c (gpgsm_server): Ditto.
33505 * tools/gpgconf.c (main): Simplify by removing non standard socket
33508 2014-10-02 Werner Koch <wk@gnupg.org>
33510 gpg: Fix regression removing SHA256.
33511 + commit 688a903b4b3ad348c0d09e9d3fab8a12f4f94311
33512 * g10/misc.c (map_md_openpgp_to_gcry): Always use SHA256.
33514 First changes for future use of NTBTLS.
33515 + commit f2361e6d582d4343d71d294ed1da654afe7750ee
33516 * configure.ac (NEED_NTBTLS_ABI, NEED_NTBTLS_VERSION): New.
33517 (HTTP_USE_NTBTLS): New. Prefer over GNUTLS.
33518 * m4/ntbtls.m4: New.
33519 * m4/Makefile.am (EXTRA_DIST): Add new file.
33520 * common/http.c: Add conditionals to eventually use NTBTLS.
33522 build: Update m4 scripts.
33523 + commit 6bc0cd6202033be113999dbf27be4014bdf2c784
33524 * m4/gpg-error.m4: Update from Libgpg-error git master.
33525 * m4/libgcrypt.m4: Update from Libgcrypt git master.
33526 * configure.ac: Declare SYSROOT a precious variable. Add extra error
33527 message for library configuration mismatches.
33529 2014-09-29 Werner Koch <wk@gnupg.org>
33531 doc: Remove GnuPG-1 related parts from gpg.texi.
33532 + commit edd191e5b006dc6ace1d41672e7201cbe58c41c9
33533 * doc/Makefile.am (YAT2M_OPTIONS): Add 2.1 to the source info.
33534 * doc/gpg.texi: Remove gpg1 related texts.
33536 2014-09-27 Werner Koch <wk@gnupg.org>
33538 gpg: Default to SHA-256 for all signature types on RSA keys.
33539 + commit d33246700578cddd1cb8ed8164cfbba50aba4ef3
33540 * g10/main.h (DEFAULT_DIGEST_ALGO): Use SHA256 in --gnupg and SHA1 in
33541 strict RFC or PGP modes.
33542 * g10/sign.c (make_keysig_packet): Use DEFAULT_DIGEST_ALGO also for
33543 RSA key signatures.
33544 * configure.ac: Do not allow to disable sha256.
33546 gpg: Simplify command --gen-key and add --full-gen-key.
33547 + commit f3625bb018fa8d5bc754f982996f8788386f0a9d
33548 * g10/gpg.c (aFullKeygen): New.
33549 (opts): Add command --full-key-gen.
33550 (main): Implement it.
33551 * g10/keygen.c (DEFAULT_STD_ALGO): Replace wrong GCRY_PK_RSA although
33552 the value is identical.
33553 (DEFAULT_STD_CURVE): New.
33554 (DEFAULT_STD_SUBALGO): New.
33555 (DEFAULT_STD_SUBKEYSIZE): New.
33556 (DEFAULT_STD_SUBCURVE): New.
33557 (quick_generate_keypair): Use new macros here.
33558 (generate_keypair): Add arg "full" and fix call callers. Do not ask
33559 for keysize in non-full node.
33560 (ask_user_id): Add arg "full" and simplify for non-full mode.
33562 2014-09-26 Werner Koch <wk@gnupg.org>
33564 gpg: Add shortcut for setting key capabilities.
33565 + commit 7ff4ea2160e87a16bf701552d3b9c7ab1c42f9ec
33566 * g10/keygen.c (ask_key_flags): Add shortcut '='.
33567 * doc/help.txt (gpg.keygen.flags): New.
33569 2014-09-25 Werner Koch <wk@gnupg.org>
33571 gpg: Do not always print dashes in obsolete_option.
33572 + commit 20c6da50d4f6264d26d113d7de606971f719a0ca
33573 * g10/gpg.c (main): Pass option names to obsolete_option without
33575 * g10/misc.c (obsolete_option, obsolete_scdaemon_option): Print double
33576 dash only for command line options.
33578 2014-09-25 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
33580 gpg: Warn about (but don't fail) on scdaemon options in gpg.conf.
33581 + commit 371c2b14b0347209efd23b4e54e1981a12d7aeab
33582 * g10/gpg.c: Add config options that should belong in scdaemon.conf
33583 * g10/main.h, g10/misc.c (obsolete_scdaemon_option): New.
33585 2014-09-22 Werner Koch <wk@gnupg.org>
33587 speedo: Check that wget and gpgv are installed.
33588 + commit 59b6f6f16e095162358ac2001aeb2c058de2fd1e
33589 * build-aux/getswdb.sh: Check for required tools.
33591 speedo: Autodetect sha1sum tools.
33592 + commit 2427bc5bc76b00cfe790e1f370113f5b4199e8fa
33593 * build-aux/getswdb.sh: Add option --find-sha1sum.
33594 * build-aux/speedo.mk (check-tools): New phony target. Not yet used.
33595 (SHA1SUM): New var. Use it instead of sha1sum.
33597 gpg: Create default keyring with .kbx suffix.
33598 + commit bc2f5c1d1afbe8ba413e594639fd05f19df32f75
33599 * g10/keydb.c (maybe_create_keyring_or_box): Rename arg for clarity.
33600 (keydb_add_resource): Fix order of args to maybe_create_keyring_or_box
33601 and check and create .kbx.
33603 2014-09-20 Werner Koch <wk@gnupg.org>
33605 gpg: --delete-secret-key - check that a secret key exists.
33606 + commit 1d33d03f0bb576601f5eef1a548cbc519f251b17
33607 * g10/delkey.c (do_delete_key): Check availibility of a secret key.
33609 gpg: Make algorithm selection prompt for ECC more clear.
33610 + commit cf648fc5c8cb20bfea4fd303631ba311bbaf3659
33611 * g10/keygen.c (ask_algo): Change 9 to "ECC and ECC".
33613 2014-09-18 Werner Koch <wk@gnupg.org>
33615 Release 2.1.0-beta834.
33616 + commit 93f158df381af86036332c4314c2d4a64eab3e62
33619 speedo: Distribute needed files.
33620 + commit 72a16d80d4505aa0ff509aae41f848bbe42ed129
33621 * Makefile.am (EXTRA_DIST): Add speedo stuff.
33623 build: Enable gpgtar by default.
33624 + commit 345a8374f31e637a99e6438e527670cf6845ca05
33627 common: Do not build maintainer modules in non-maintainer mode.
33628 + commit 927db789c19cbe5656ff980841ee37dd3a8989e7
33629 * common/Makefile.am (module_maint_tests): Use only in maintainer
33631 (t_common_cflags): New.
33633 common: Remove superfluous statements.
33634 + commit cad181b5ece3ab6910575c82c731ce2b47271a09
33635 * common/exechelp-posix.c: Remove weak pragmas.
33636 * common/sexputil.c (make_canon_sexp_from_rsa_pk): Remove double
33639 g13: Avoid segv after pipe creation failure.
33640 + commit 6e7bcabd781a3ca9ad7dd90d962fb2a239feab4a
33641 * g13/call-gpg.c (gpg_encrypt_blob): Init some vars in case of an
33643 (gpg_decrypt_blob): Ditto.
33645 scd: Fix int/short mismatch in format string of app-p15.c.
33646 + commit b17e8bbf20239e840763f98d3e62f16efdc82ba3
33647 * scd/app-p15.c (parse_certid): Use snprintf and cast value.
33648 (send_certinfo): Ditto.
33649 (send_keypairinfo): Ditto.
33650 (do_getattr): Ditto.
33652 agent: Init a local variable in the error case.
33653 + commit f82a6e0f08725008c5bbf702a5f4c175ea09f01c
33654 * agent/pksign.c (do_encode_md): Init HASH on error.
33656 agent: Remove left over debug output.
33657 + commit 4f35ef499ac913036b7b69296a62afe8159b90b8
33658 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Remove debug
33661 agent: Silence compiler warning for a debug message.
33662 + commit ba6f8b3d9ec83b35c4f3839853567491fee2f99c
33663 * agent/call-pinentry.c (agent_query_dump_state): Use %p for
33666 sm: Silence compiler warnings.
33667 + commit 34b2e8c7dcb0edb28f99edbd788d73491334e3c0
33668 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Remove unused var I.
33669 * sm/certreqgen.c (proc_parameters): Init PUBLIC to avoid compiler
33672 gpg: Silence a compiler warning.
33673 + commit 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4
33674 * g10/parse-packet.c (enum_sig_subpkt): Replace hack.
33676 gpg: Replace a hash algo test function.
33677 + commit 327134934d79d141d92170ad3b4a6ef3cb718ee0
33678 * g10/gpg.c (print_mds): Replace openpgp_md_test_algo.
33680 speedo: Various fixes.
33681 + commit 2f065d7ab6c514013eb8504281f50284764c26ec
33682 * build-aux/speedo.mk: Take zlib and bzip2 from ftp.gnupg.org. Minor
33685 2014-09-17 Werner Koch <wk@gnupg.org>
33687 gpg: Print a warning if the subkey expiration may not be what you want.
33688 + commit ae3d1bbb65b65cf3c57bb14886be120f5e31635d
33689 * g10/keyedit.c (subkey_expire_warning): New.
33690 (keyedit_menu): Call it when needed.
33692 gpg: Improve passphrase caching.
33693 + commit 457bce5cd39146df047e4740162125c32c738789
33694 * agent/cache.c (last_stored_cache_key): New.
33695 (agent_get_cache): Allow NULL for KEY.
33696 (agent_store_cache_hit): New.
33697 * agent/findkey.c (unprotect): Call new function and try to use the
33700 * g10/revoke.c (create_revocation): Add arg CACHE_NONCE and pass to
33701 make_keysig_packet.
33702 (gen_standard_revoke): Add arg CACHE_NONCE and pass to
33704 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke with
33707 2014-09-12 Werner Koch <wk@gnupg.org>
33709 gpg: Use algorithm id 22 for EdDSA.
33710 + commit 83c2d2396cc9fa6bdd887a560830fc0f48b01b08
33711 * common/openpgpdefs.h (PUBKEY_ALGO_EDDSA): Change to 22.
33712 * g10/keygen.c (ask_curve): Reword the Curve25519 warning note.
33714 2014-09-11 Werner Koch <wk@gnupg.org>
33716 gpg: Stop early on bogus old style comment packets.
33717 + commit 3d250d21d36e8a0935b645f1ed5134ef9083530e
33718 * g10/parse-packet.c (parse_key): Take care of too short packets for
33719 old style commet packets.
33721 2014-09-10 Werner Koch <wk@gnupg.org>
33723 dirmngr: Support https for KS_FETCH.
33724 + commit 84419f42da0fd436a9e0e669730157e74ce38b77
33725 * dirmngr/ks-engine-hkp.c (cert_log_cb): Move to ...
33726 * dirmngr/misc.c (cert_log_cb): here.
33727 * dirmngr/ks-engine-http.c (ks_http_fetch): Support 307-redirection
33730 dirmngr: Fix the ks_fetch command for the http scheme.
33731 + commit 3b20cc21de86ac8a475bdefd3aebb02a12fb8d0b
33732 * common/http.c (http_session_ref): Allow for NULL arg.
33734 2014-09-08 Werner Koch <wk@gnupg.org>
33736 gpg: Fix memory leak in ECC encryption.
33737 + commit 98f65291d7abecc1e4d618125f33b6ce759e0892
33738 * g10/pkglue.c (pk_encrypt): Fix memory leak and streamline error
33741 2014-09-02 Werner Koch <wk@gnupg.org>
33743 gpg: Fix export of NIST ECC keys.
33744 + commit bf2fc12b83b45953f7afa403b8d91c36d0b50ec9
33745 * common/openpgp-oid.c (struct oidtable): New.
33746 (openpgp_curve_to_oid): Rewrite and allow OID as input.
33747 (openpgp_oid_to_curve): Make use of the new table.
33749 agent: Fix import of OpenPGP EdDSA keys.
33750 + commit afe85582ddc2ebc285728bf6417f8929fd0b3281
33751 * agent/cvt-openpgp.c (get_keygrip): Special case EdDSA.
33752 (convert_secret_key): Ditto.
33753 (convert_transfer_key): Ditto.
33754 (apply_protection): Handle opaque MPIs.
33756 (do_unprotect): Check FLAG_OPAQUE instead of FLAG_USER1 before
33757 unpacking an opaque mpi.
33759 2014-09-01 Kyle Butt <kylebutt@gmail.com>
33761 gpg: Fix export of ecc secret keys by adjusting check ordering.
33762 + commit 4054d86abcb7ad953ed9e988b1765cb9266faefd
33763 * g10/export.c (transfer_format_to_openpgp): Move the check against
33764 PUBKEY_MAX_NSKEY to after the ECC code adjusts the number of
33767 2014-09-01 Werner Koch <wk@gnupg.org>
33769 agent: Allow key unprotection using AES-256.
33770 + commit c913e09ebdbb1a1e9838a0a5897448841f5e9bc3
33771 * agent/protect.c (PROT_CIPHER): Rename to GCRY_CIPHER_AES128 for
33773 (do_decryption): Add args prot_cipher and prot_cipher_keylen. USe
33774 them instead of the hardwired values.
33775 (agent_unprotect): Change to use a table of protection algorithms.
33776 Add AES-256 variant.
33778 2014-08-28 Werner Koch <wk@gnupg.org>
33780 gpg: Do not show "MD5" and triplicated "RSA" in --version.
33781 + commit be98b5960ebd48929c399b0b91c95bfc0cb9749b
33782 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
33783 (build_list_md_test_algo): Ignore MD5.
33785 gpg: Do not show "MD5" and triplicated "RSA" in --version.
33786 + commit 40ad42dbe3c67d8103aedb6b584f4bedc5f93307
33787 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
33788 (build_list_md_test_algo): Ignore MD5.
33790 2014-08-26 Werner Koch <wk@gnupg.org>
33792 gpg: Remove CAST5 from the default prefs and order SHA-1 last.
33793 + commit 15cfd9a3bcdd561091a28c8f989c616b87348463
33794 * g10/keygen.c (keygen_set_std_prefs): Update prefs.
33796 Switch to the libgpg-error provided estream.
33797 + commit 519305feb888b529c005b40445d041a088a2f8fc
33798 * configure.ac (NEED_GPG_ERROR_VERSION): Reguire 1.14.
33799 (GPGRT_ENABLE_ES_MACROS): Define.
33800 (estream_INIT): Remove.
33801 * m4/estream.m4: Remove.
33802 * common/estream-printf.c, common/estream-printf.h: Remove.
33803 * common/estream.c, common/estream.h: Remove.
33804 * common/init.c (_init_common_subsystems): Call gpgrt initialization.
33806 gpg: Allow for positional parameters in the passphrase prompt.
33807 + commit a731c22952278c12c601b73d7581fda3a15a4b5b
33808 * g10/passphrase.c (passphrase_get): Replace sprintf by xasprintf.
33810 2014-08-20 Werner Koch <wk@gnupg.org>
33812 gpg: Fix "can't handle public key algorithm" warning.
33813 + commit cb680c5ea540738692a5c74951802b0fdc658e85
33814 * g10/parse-packet.c (unknown_pubkey_warning): Check for encr/sign
33817 2014-08-19 Werner Koch <wk@gnupg.org>
33819 speedo: Get version numbers from online database.
33820 + commit 31649e72fd106a990614ce3cf720640a841ba722
33821 * build-aux/getswdb.sh: New.
33822 * build-aux/speedo.mk: Get release version numbers from swdb.lst.
33824 build: Create VERSION file via autoconf.
33825 + commit 4fc1c712e986f280057b1bce7ca4696ba6d95dfc
33826 * Makefile.am (dist-hook): Remove creation of VERSION.
33827 (EXTRA_DIST): Add VERSION.
33828 * configure.ac: Let autoconf create VERSION.
33830 2014-08-18 Werner Koch <wk@gnupg.org>
33832 gpg: Install the current release signing pubkey.
33833 + commit e5da80bc1888bf8801e69c9ff99f7f47550f7a09
33834 * g10/distsigkey.gpg: New.
33836 agent: Return NO_SECKEY instead of ENONET for PKSIGN and others.
33837 + commit 3981ff15f3c0829ba22cd37794353502d996683c
33838 * agent/pksign.c (agent_pksign_do): Replace ENONET by NO_SECKEY.
33839 * agent/findkey.c (agent_key_from_file): No diagnostic for NO_SECKEY.
33840 * agent/pkdecrypt.c (agent_pkdecrypt): Replace checking for ENOENT.
33842 kbx: Make user id and signature data optional for OpenPGP.
33843 + commit e4aa006e4807285ffdd881e4e05af3bc47c5c964
33844 * kbx/keybox-blob.c (_keybox_create_openpgp_blob): Remove restriction.
33846 gpg: Change default cipher for --symmetric from CAST5 to AES-128.
33847 + commit 57df1121c18b004dd763b35eabf7b51fc9e8ec38
33848 * g10/main.h (DEFAULT_CIPHER_ALGO): Chhange to AES or CAST5 or 3DES
33849 depending on configure option.
33850 * g10/gpg.c (main): Set opt.s2k_cipher_algo to DEFAULT_CIPHER_ALGO.
33852 yat2m: Support @set and @value.
33853 + commit 425d0750168f6b66a5d78a857cf21375a8f129eb
33854 * doc/yat2m.c (variablelist): New.
33855 (set_variable): New.
33856 (macro_set_p): Also check the variables.
33857 (proc_texi_cmd): Support the @value command.
33858 (parse_file): Support the @set command.
33859 (top_parse_file): Release variablelist.
33861 yat2m: Support the $* command for man page rendering.
33862 + commit 7e51ef0f77962f5fb215da53817caf28899ca190
33865 2014-08-17 Werner Koch <wk@gnupg.org>
33867 estream: Change license from GPL to LPGL.
33868 + commit af1196512f505e8a3a338f9b72394fa3585a5234
33869 * common/estream-printf.c, common/estream-printf.h: Change license.
33870 * common/estream.c, common/estream.h: Ditto.
33872 2014-08-14 Werner Koch <wk@gnupg.org>
33874 Release 2.1.0-beta783.
33875 + commit a13198d9bcee368a8de7a401feb017efc83ff795
33878 po: Update the German (de) translation.
33879 + commit fe9ff33b9dc8793957998341cf4bcf5e50827b41
33882 sm: Create homedir and lock empty keybox creation.
33883 + commit c4b60cdae8dbf68206fd105fd09adeb61a9dafe4
33884 * sm/gpgsm.h (opt): Add field "no_homedir_creation".
33885 * sm/gpgsm.c (main): Set it if --no-options is used.
33886 * sm/keydb.c (try_make_homedir): New. Similar to the one from
33888 (maybe_create_keybox): New. Similar to the one from g10/keydb.c.
33889 (keydb_add_resource): Replace some code by maybe_create_keybox.
33891 gpg: Screen keyserver responses.
33892 + commit c23c18c1543d1ff58f0f78baaa6a8e319c659ecb
33893 * g10/main.h (import_screener_t): New.
33894 * g10/import.c (import): Add screener callbacks to param list.
33895 (import_one): Ditto.
33896 (import_secret_one): Ditto.
33897 (import_keys_internal): Ditto.
33898 (import_keys_stream): Ditto.
33899 * g10/keyserver.c (struct ks_retrieval_screener_arg_s): New.
33900 (keyserver_retrieval_screener): New.
33901 (keyserver_get): Pass screener to import_keys_es_stream().
33903 scd: Minor changes to app-sc-hsm.
33904 + commit a61b28df1f29b1e306115282ec1ce580fa54945a
33905 * scd/app-sc-hsm.c: Re-indendet some parts and set some vars to NULL
33906 after xfree for improbed robustness.
33907 (read_ef_prkd): Replace serial operator by blocks for better
33909 (apply_PKCS_padding): Rewrite for easier auditing.
33910 (strip_PKCS15_padding): Ditto. Add stricter check on SRCLEN.
33912 gpg: Disable an MD5 workaround for pgp2 by default.
33913 + commit ae29b52119aa419989b773b2d6abb6e287dfc81b
33914 * g10/sig-check.c (do_check): Move some code to ...
33915 * g10/misc.c (print_md5_rejected_note): new function.
33916 * g10/mainproc.c (proc_tree, proc_plaintext): Enable MD5 workaround
33917 only if option --allow-weak-digest-algos is used.
33919 gpg: Remove options --pgp2 and --rfc1991.
33920 + commit 2b8d8369d59249b89526c18c5ac276e6445dc35e
33921 * g10/gpg.c (oRFC1991, oPGP2): Remove
33922 (opts): Remove --pgp2 and --rfc1991.
33923 * g10/options.h (CO_PGP2, CO_RFC1991): Remove. Remove all users.
33924 (RFC2440, PGP2): Remove. Remove all code only enabled by these
33926 * tests/openpgp/clearsig.test: Remove --rfc1991 test.
33928 build: Fix autogen.sh base version hack.
33929 + commit 49c9a958e0b786850309bca555d4465c97d337e1
33930 * autogen.sh <find-version>: Fix.
33932 gpg: Remove --compress-keys and --compress-sigs feature.
33933 + commit 71b55e91f02cdb65a8884892f71c4c7bf8a75247
33934 * g10/gpg.c (oCompressKeys, oCompressSigs): Remove.
33935 (opts): Turn --compress-keys and --compress-signs in NOPs.
33936 * g10/options.h (opt): Remove fields compress_keys and compress_sigs.
33937 * g10/export.c (do_export): Remove compress_keys feature.
33938 * g10/sign.c (sign_file): Remove compress_sigs feature.
33940 2014-08-13 Werner Koch <wk@gnupg.org>
33942 gpg: Add list-option "show-usage".
33943 + commit 7d0492075ea638607309b3ea6a792b0e95ea7d98
33944 * g10/gpg.c (parse_list_options): Add "show-usage".
33945 * g10/options.h (LIST_SHOW_USAGE): New.
33946 * g10/keyid.c (usagestr_from_pk): Add arg FILL. Change caller.
33947 * g10/keylist.c (list_keyblock_print): Print usage info.
33949 2014-08-12 Werner Koch <wk@gnupg.org>
33951 gpg: Make --with-colons work again for --search-keys.
33952 + commit a57c33c855c6757c8770529ee71f0f90744cd7a6
33953 * g10/keyserver.c (search_line_handler): Replace log_debug by
33956 2014-08-08 NIIBE Yutaka <gniibe@fsij.org>
33958 po: Update Japanese translation.
33959 + commit 2d9f76e07082fc231303ac2c6ae1aea3c98fa2e4
33962 2014-07-25 Werner Koch <wk@gnupg.org>
33964 scd: Minor and editorial changes to app-sc-hsm.c.
33965 + commit 2e936915cf2f830e60d974d607b08822645f5753
33966 * scd/app-sc-hsm.c (select_and_read_binary): Use SW_ macro.
33967 (parse_certid): Remove useless test.
33968 (send_certinfo, send_keypairinfo): Shrink malloc to the needed size.
33969 (do_getattr): Ditto.
33970 (verify_pin): Use SW_ macro.
33971 (do_decipher): Replace OFS variable and extend comment.
33973 scd: Add a new status word code.
33974 + commit e49c851ff54d5ecf856411bf6cdee721695ea172
33975 * scd/apdu.h (SW_REF_DATA_INV): New.
33976 * scd/apdu.c (apdu_strerror): Add string.
33978 2014-07-25 Andreas Schwier <andreas.schwier@cardcontact.de>
33980 scd: Support for SmartCard-HSM.
33981 + commit 8eb9224f32ddf1c9e1490c4d9688a177f8b6ae64
33982 * scd/app-sc-hsm.c: New.
33983 * scd/app.c (select_application, get_supported_applications): Register
33986 2014-07-25 Werner Koch <wk@gnupg.org>
33988 gpg: Switch to an EdDSA format with prefix byte.
33989 + commit 557cc11a605dd280d03c52d8b546deed8c4c714d
33990 * g10/keygen.c (gen_ecc): USe "comp" for EdDSA.
33992 2014-07-23 Werner Koch <wk@gnupg.org>
33994 agent: Show just one warning with all failed passphrase constraints.
33995 + commit b3378b3a56fc90ba8ae38e6298b23a378305af32
33996 * agent/genkey.c (check_passphrase_constraints): Build a final warning
33999 agent: Only one confirmation prompt for an empty passphrase.
34000 + commit a24510d53bb23e3a680ed2c306e576268c07060d
34001 * agent/genkey.c (check_passphrase_constraints): Moev empty passphrase
34002 check to the front.
34004 gpg: Add command --quick-gen-key.
34005 + commit ea186540db5b418bc6f6e5ca90337672c9981c88
34006 * g10/gpg.c (aQuickKeygen): New.
34007 * g10/misc.c (is_valid_user_id): New stub.
34008 * g10/keygen.c (quickgen_set_para): New.
34009 (quick_generate_keypair): New.
34011 common: Add cpr_get_answer_is_yes_def()
34012 + commit 75127bc4561787aa9bc1cf976658e20192446d7f
34013 * g10/cpr.c (cpr_get_answer_is_yes): Factor code out to ....
34014 (cpr_get_answer_is_yes_def): ...new.
34016 gpg: Make --quick-sign-key promote local key signatures.
34017 + commit 17404b2fccbc74c4f0b2364cc08e9dcc64175cf8
34018 * g10/keyedit.c (sign_uids): Promote local sigs in quick mode.
34020 2014-07-22 Werner Koch <wk@gnupg.org>
34022 scd: Do not use the pcsc-wrapper.
34023 + commit bc6b452129178658da7241903ca2174c79281752
34024 * scd/apdu.c (NEED_PCSC_WRAPPER): Do not define.
34025 * scd/Makefile.am (libexec_PROGRAMS): Remove gnupg-pcsc-wrapper
34026 (gnupg_pcsc_wrapper_SOURCES): Remove.
34027 (gnupg_pcsc_wrapper_LDADD): Remove.
34028 (gnupg_pcsc_wrapper_CFLAGS): Remove.
34030 2014-07-21 Werner Koch <wk@gnupg.org>
34032 gpg: Improve --list-packets output for faulty packets.
34033 + commit 5b34e347b612765f31061d077b7c343e08662ba9
34034 * g10/parse-packet.c: Add list_mode output for certain failures.
34036 gpg: Cap size of attribute packets at 16MB.
34037 + commit bab9cdd971f35ff47e153c00034c95e7ffeaa09a
34038 * g10/parse-packet.c (parse_attribute): Avoid xmalloc failure and cap
34041 2014-07-03 Werner Koch <wk@gnupg.org>
34043 Release 2.1.0-beta751.
34044 + commit 5ae34f574baca2b98a09fd982c941855558408e1
34047 gpg: Make show-uid-validity the default.
34048 + commit 5214d8f02bf65fb0a4af15ff80cf1369ccd4c167
34051 tests: Fix end-of-all-ticks test for Western locales.
34052 + commit 3533860ee316918dd47501c53e910bfd0032b39d
34053 * common/t-timestuff.c (test_timegm): Use timegm if available.
34054 (main): Set TX to UTC if timegm is not available.
34056 2014-07-03 Kristian Fiskerstrand <kf@sumptuouscapital.com>
34058 gpg: Spelling error.
34059 + commit b51af333bdf77c042c9fe748616e80d1f5e4d3f9
34062 2014-06-30 Werner Koch <wk@gnupg.org>
34064 gpg: Auto-create revocation certificates.
34065 + commit 03018ef9eec75e4d91ea53c95547a77dedef8f80
34066 * configure.ac (GNUPG_OPENPGP_REVOC_DIR): New config define.
34067 * g10/revoke.c (create_revocation): Add arg "leadin".
34068 (gen_standard_revoke): New.
34069 * g10/openfile.c (get_openpgp_revocdir): New.
34070 (open_outfile): Add MODE value 3.
34071 * g10/keyid.c (hexfingerprint): New.
34072 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke.
34074 estream: Fix minor glitch in "%.*s" format.
34075 + commit aa5b4392aac99382d96be94782ae745e0a42484a
34076 * common/estream-printf.c (pr_string): Take care of non-nul terminated
34079 gpg: Rearrange code in gen_revoke.
34080 + commit 3a01b220715b3d1a90d94353e4980ab5a1ea8f26
34081 * g10/revoke.c (gen_revoke): Factor some code out to ...
34082 (create_revocation): new.
34084 gpg: Create exported secret files and revocs with mode 700.
34085 + commit c434de4d83ccfaca8bde51de5c2ac8d9656e4e18
34086 * common/iobuf.c (direct_open): Add arg MODE700.
34087 (iobuf_create): Ditto.
34088 * g10/openfile.c (open_outfile): Add arg RESTRICTEDPERM. Change call
34089 callers to pass 0 for it.
34090 * g10/revoke.c (gen_desig_revoke, gen_revoke): Here pass true for new
34092 * g10/export.c (do_export): Pass true for new arg if SECRET is true.
34094 common: Minor code cleanup for a legacy OS.
34095 + commit 35fdfaa0b94342c53eb82eea155a37ad4009fa9f
34096 * common/iobuf.c (direct_open) [__riscos__]: Simply cpp conditionals.
34098 2014-06-27 Werner Koch <wk@gnupg.org>
34100 speedo: Fix the w32 installer name.
34101 + commit adad1872b448593275d8cae06dffe376bee067b5
34104 po: Update some strings of the French (fr) translation.
34105 + commit 1ef7870fc96f6dd8137e9bfabf9b06787f75dffd
34108 po: Update the German (de) translation.
34109 + commit c2e3eb98884785e6794dc79c1a53d75945f4c1ab
34112 agent: Adjust for changed npth_eselect under W32.
34113 + commit a1dff86da8ebaab6e154360f538ca9d43a6c4934
34114 * agent/gpg-agent.c (handle_connections) [W32]: Make events_set an
34115 unsigned int to match the changed prototype.
34117 dirmngr: Use the homedir based socket also under W32.
34118 + commit 5e1f9b5e1427688ac340f0829e02bece7f0caf9c
34119 * common/homedir.c (dirmngr_user_socket_name): Use same code for all
34122 2014-06-27 Yuri Chornoivan <yurchor@ukr.net>
34124 po: Update and enable Ukrainian (uk) translation.
34125 + commit 2c4025576105a9deb78e1cfb22c11af4af09c4fa
34128 Fix typos in messages.
34129 + commit e56a2d6a56d95c0f169506a8dc74a845c22b699d
34132 2014-06-27 Werner Koch <wk@gnupg.org>
34134 build: Remove unused options.
34135 + commit 2540a4b674a17b45ec33f43f26e830e74ff0afed
34136 * configure.ac: Remove option --build-agent-only.
34137 (FAKE_CURL, GPGKEYS_CURL): Remove check for cURL
34138 (GPGKEYS_MAILTO): Remove ac_subst but keep the currently unused
34140 (GPGKEYS_KDNS): Remove ac_subst.
34141 * autogen.rc (final_info): Remove suggestion to use the removed option
34144 2014-06-27 NIIBE Yutaka <gniibe@fsij.org>
34146 scd: Add pinpad support for REINER SCT cyberJack go.
34147 + commit 73ba75ad8b933beddd2c3f4b66937b56faa0a2d8
34148 * scd/ccid-driver.h (VENDOR_REINER, CYBERJACK_GO): New.
34149 * scd/ccid-driver.c (ccid_transceive_secure): Handle the case for
34150 VENDOR_REINER. Original work was by Alina Friedrichsen (tiny change).
34152 2014-06-27 Werner Koch <wk@gnupg.org>
34154 scd: Support reader Gemalto IDBridge CT30.
34155 + commit 24be0f24d3a9325a04de10ae0e5e277bf28a74fe
34156 * scd/ccid-driver.h (GEMPC_CT30): New product id.
34157 * scd/ccid-driver.c (parse_ccid_descriptor): Add quirk for that
34160 2014-06-26 Werner Koch <wk@gnupg.org>
34162 gpg: Limit keysize for unattended key generation to useful values.
34163 + commit 03f0b51fe454f8dbe77c302897f7a5899c4c5380
34164 * g10/keygen.c (gen_elg): Enforce keysize 1024 to 4096.
34165 (gen_rsa): Enforce keysize 1024 to 4096.
34166 (gen_dsa): Enforce keysize 768 to 3072.
34168 Enable DNS SRV records again.
34169 + commit c0d1e7fca95629e1cddd7d129fa51b9a6556cb70
34170 * configure.ac (GPGKEYS_HKP, GPGKEYS_FINGER): Remove ac_subst.
34171 (use_dns_srv): Make test work.
34173 agent: Fix export of RSA keys to OpenPGP.
34174 + commit 9a034acf8ab6f85c65ccc75a4fd7b8dd47b73e3a
34175 * agent/cvt-openpgp.c (convert_transfer_key): Fix sexp build format
34178 gpg,gpgsm: Simplify wrong_args function.
34179 + commit 572502bd2c0637429bca547ba882629640477495
34182 speedo: "make clean-gnupg" may not remove the source.
34183 + commit c029a184d6a1a96c6de234835fff97d4e946b19c
34184 * build-aux/speedo.mk (clean-$(1)): Take care of gnupg.
34186 gpgsm: Fix default config name.
34187 + commit 2480b0253166712a2f20b92f34c8e4c2db0fc26f
34190 2014-06-25 Werner Koch <wk@gnupg.org>
34192 doc: Improve the rendering of the manual.
34193 + commit b5f95c1b566f9530127f3f34e10d120a951cf428
34196 doc: Update for modern makeinfo.
34197 + commit f149e05427a370f5985bc3fb142370b043f19924
34198 * doc/texi.css: Remove.
34199 * doc/Makefile.am (AM_MAKEINFOFLAGS): Use --css-ref.
34201 gpg: Allow key-to-card upload for cert-only keys.
34202 + commit f171fd226e84311f92545ca0494771db07ba777d
34203 * g10/card-util.c (card_store_subkey): Allo CERT usage for key 0.
34205 2014-06-24 Werner Koch <wk@gnupg.org>
34207 doc: Add conditionals for GnuPG-1.
34208 + commit 2c8e00137a340d04f0836f75e138dd85f8c9eff7
34211 2014-06-20 Werner Koch <wk@gnupg.org>
34213 gpg: Make export of ECC keys work again.
34214 + commit f4fcaa29367daacfe0ca209fa83dfa8640ace276
34215 * agent/cvt-openpgp.c (convert_to_openpgp): Use the curve name instead
34216 of the curve parameters.
34217 * g10/export.c (canon_pubkey_algo): Rename to ...
34218 (canon_pk_algo): this. Support ECC.
34219 (transfer_format_to_openpgp): Expect curve name.
34221 gpg: Avoid infinite loop in uncompressing garbled packets.
34222 + commit d6ca407a27877174c10adfae9dc601bea996cf27
34223 * g10/compress.c (do_uncompress): Limit the number of extra FF bytes.
34225 2014-06-17 Kristian Fiskerstrand <kf@sumptuouscapital.com>
34227 gpg: Fix a couple of spelling errors.
34228 + commit 3f17b74aa57ac1ea2f3aa93dec4889778a21afeb
34231 2014-06-17 Werner Koch <wk@gnupg.org>
34233 speedo: Support building from dist-source generated tarball.
34234 + commit 47e63dc00169030b6ff01ab67e73e52aec1395db
34237 2014-06-13 Werner Koch <wk@gnupg.org>
34239 http: Print human readable GNUTLS status.
34240 + commit 5bf04522e353675e4c3eda118fee2580756704a2
34241 * common/http.c (send_gnutls_bye): Take care of EAGAIN et al.
34242 (http_verify_server_credentials): Print a human readable status.
34244 2014-06-12 Werner Koch <wk@gnupg.org>
34246 gpg: Improve the output of --list-packets.
34247 + commit d8314e31c58ea0827d0e2361dabcdf869ab08fce
34248 * g10/parse-packet.c (parse): Print packet meta info in list mode.
34250 2014-06-11 Werner Koch <wk@gnupg.org>
34252 speedo: Improve building of the w32 installer.
34253 + commit 6eeb31abee82cb2016bf054cd302af64f6dfdc2e
34254 * build-aux/speedo.mk: Change name of build directory to PLAY.
34255 Improve the dist-source target.
34256 * build-aux/speedo/w32/gdk-pixbuf-loaders.cache: Add a blank
34257 line (plus comment).
34258 * build-aux/speedo/w32/inst.nsi: Change name of file to gnupg-w32-*.
34259 Install more tools.
34261 2014-06-10 Werner Koch <wk@gnupg.org>
34263 speedo: Revamped speedo and include a w32 installer.
34264 + commit e06d5d1a3b4a5c446a27d64cd2da0e48ccec5601
34265 * build-aux/speedo/: New.
34266 * build-aux/speedo/w32/: New.
34268 build: Add more options to autogen.sh.
34269 + commit 0399d87f7aaf2f2126a63899004c5c7bffd4346b
34270 * autogen.sh: Add options --print-host and --print-build.
34272 w32: Fix build problem with dirmngr.
34273 + commit 141d69cb2a94a752244e89f49611923a2f184dfd
34274 * dirmngr/ks-engine-hkp.c (EAI_SYSTEM) [W32]: Add replacement
34277 gpg: Use more specific reason codes for INV_RECP.
34278 + commit 45ed901c466bd72118c2844069f566e190d847d6
34279 * g10/pkclist.c (find_and_check_key, build_pk_list): Use more specific
34280 reasons codes for INV_RECP.
34282 2014-06-06 Werner Koch <wk@gnupg.org>
34284 Improve the beta number generation.
34285 + commit b67e4e523e6d19d384e23c5bb03010caebd150e7
34286 * autogen.sh: Add option --find-version
34287 * configure.ac: Rework the setting of the mym4_ variables.
34289 2014-06-05 Werner Koch <wk@gnupg.org>
34291 Remove keyserver helper code.
34292 + commit 23712e69d3f97df9d789325f1a2f2f61e7d5bbb4
34293 * configure.ac: Remove keyserver helper related stuff.
34294 * Makefile.am (SUBDIRS): Remove keyserver.
34295 * keyserver/Makefile.am: Remove.
34297 gpg: Require confirmation for --gen-key with experimental curves.
34298 + commit 9c9e26d41e7d65711da8dbf1afa452254749621c
34299 * g10/keygen.c (ask_curve): Add arg both. Require confirmation for
34302 gpg: Auto-migrate existing secring.gpg.
34303 + commit 4f0625889b768eabdec52696bf15059a9e8d9c02
34304 * g10/migrate.c: New.
34305 * g10/import.c (import_old_secring): New.
34306 (import_one): Add arg silent.
34307 (transfer_secret_keys): Add arg batch.
34308 (import_secret_one): Add args batch and for_migration.
34309 * g10/gpg.c (main): Call migration function.
34311 2014-06-04 Werner Koch <wk@gnupg.org>
34313 gpgsm: Fix commit be07ed65.
34314 + commit 09a2d4ec74d352dcb4f006aab60b07bc4f5f1a37
34315 * sm/server.c (option_handler): Use "with-secret".
34317 2014-06-03 Werner Koch <wk@gnupg.org>
34319 Add new option --with-secret.
34320 + commit be07ed65e169a7ec3fbecdb1abf988fc0245d9ff
34321 * g10/gpg.c: Add option --with-secret.
34322 * g10/options.h (struct opt): Add field with_secret.
34323 * g10/keylist.c (public_key_list): Pass opt.with_secret to list_all
34325 (list_all, list_one): Add arg mark_secret.
34326 (list_keyblock_colon): Add arg has_secret.
34327 * sm/gpgsm.c: Add option --with-secret.
34328 * sm/server.c (option_handler): Add option "with-secret".
34329 * sm/gpgsm.h (server_control_s): Add field with_secret.
34330 * sm/keylist.c (list_cert_colon): Take care of with_secret. Also move
34331 the token string from the wrong field 14 to 15.
34333 gpgsm: New commands --export-secret-key-{p8,raw}
34334 + commit 0beec2f0f255a71f9d5a4a0729d0259f673e8838
34335 * sm/gpgsm.c: Add new commands.
34336 * sm/minip12.c (build_key_sequence): Add arg mode.
34337 (p12_raw_build): New.
34338 * sm/export.c (export_p12): Add arg rawmode. Call p12_raw_build.
34339 (gpgsm_p12_export): Ditto.
34340 (print_short_info): Print the keygrip.
34342 2014-06-02 Werner Koch <wk@gnupg.org>
34344 gpg: Avoid NULL-deref in default key listing.
34345 + commit 958e5f292fa3f8e127f54bc088c56780c564dcae
34346 * g10/keyid.c (hash_public_key): Take care of NULL keys.
34347 * g10/misc.c (pubkey_nbits): Ditto.
34349 gpg: Simplify default key listing.
34350 + commit f3249b1c4d0f2e9e0e8956042677e47fc9c6f6c0
34351 * g10/mainproc.c (list_node): Rework.
34353 gpg: Graceful skip reading of corrupt MPIs.
34354 + commit d9cde7ba7d4556b216f062d0cf92d60cbb204b00
34355 * g10/parse-packet.c (mpi_read): Change error message on overflow.
34357 gpgsm: Handle re-issued CA certificates in a better way.
34358 + commit 715285bcbc12c024dbd9b633805189c09173e317
34359 * sm/certchain.c (find_up_search_by_keyid): Consider all matching
34361 (find_up): Add some debug messages.
34363 gpgsm: Add a way to save a found state.
34364 + commit 42c043a8ad542c131917879c9b458f234b4bb645
34365 * kbx/keybox-defs.h (keybox_found_s): New.
34366 (keybox_handle): Factor FOUND out to above. Add saved_found.
34367 * kbx/keybox-init.c (keybox_release): Release saved_found.
34368 (keybox_push_found_state, keybox_pop_found_state): New.
34370 * sm/keydb.c (keydb_handle): Add field saved_found.
34371 (keydb_new): Init it.
34372 (keydb_push_found_state, keydb_pop_found_state): New.
34374 gpg: Fix bug parsing a zero length user id.
34375 + commit 99972bd6e9abea71f270284f49997de5f00208af
34376 * g10/getkey.c (get_user_id): Do not call xmalloc with 0.
34378 * common/xmalloc.c (xmalloc, xcalloc): Take extra precaution not to
34379 pass 0 to the arguments.
34381 2014-05-19 Werner Koch <wk@gnupg.org>
34383 dirmngr: Print certificates on failed TLS verification.
34384 + commit 9e1c99f8009f056c39a7465b91912c136b248e8f
34385 * dirmngr/ks-engine-hkp.c (cert_log_cb): New.
34386 (send_request): Set callback.
34388 http: Add callback to help logging of server certificates.
34389 + commit 45f15b2d767d4068f79fd5b123e9eeae08a0616d
34390 * common/http.c (http_session_s): Add field cert_log_cb.
34391 (http_session_set_log_cb): New.
34392 (http_verify_server_credentials): Call callback.
34394 2014-05-16 Werner Koch <wk@gnupg.org>
34396 keyserver: Improve support for hkps pools.
34397 + commit d2d9d4fb60e3f2160af6252335364d3aac4b7d17
34398 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add fields cname, v4addr, and
34400 (create_new_hostinfo): Clear them.
34401 (my_getnameinfo): Add args numeric and r_isnumeric.
34402 (is_ip_address): New.
34403 (map_host): Add arg r_host. Rewrite the code to handle pools in a
34405 (ks_hkp_print_hosttable): Change format of help info output.
34406 (make_host_part): Add arg optional r_httphost.
34407 (send_request): Add arg httphost.
34408 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Get httphost and pass it to
34411 http: Allow overriding of the Host header.
34412 + commit 8b90d79818355b81ce223e1cb96cd0c939096fe2
34413 * common/http.c (http_open): Add arg httphost.
34414 (http_open_document): Pass NULL for httphost.
34415 (send_request): Add arg httphost. If given, use HTTPHOST instead of
34416 SERVER. Use https with a proxy if requested.
34417 (http_verify_server_credentials): Do not stop at the first error
34419 * dirmngr/ocsp.c (do_ocsp_request): Adjust call to http_open.
34420 * keyserver/curl-shim.c (curl_easy_perform): Ditto.
34421 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
34422 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Ditto.
34424 2014-05-14 Werner Koch <wk@gnupg.org>
34426 gpg: Fix uninitialized access to search descindex with gpg keyboxes.
34427 + commit 25036ec6abbc0c9d0003dcfe227724038c35a304
34428 * kbx/keybox-search.c (keybox_search): Add arg R_DESCINDEX. Chnage
34430 * g10/keydb.c (keydb_search): Always set DESCINDEX.
34432 w32: Make make_absfilename work with drive letters.
34433 + commit 71fa6a35107d4d4547eb9155d7c2612b6a6a16fb
34434 * common/stringhelp.c (do_make_filename) [HAVE_DRIVE_LETTERS]: Fix.
34436 gpg: Remove useless diagnostic in MDC verification.
34437 + commit 455a4a2212302c05095e736b127f647e95714fe7
34438 * g10/decrypt-data.c (decrypt_data): Do not distinguish between a bad
34439 MDC packer header and a bad MDC.
34441 gpg: Fix glitch entering a full expiration time.
34442 + commit b2945c451d3d3f25ba11a9fe88c6cbf3f88c2fb5
34443 * g10/keygen.c (ask_expire_interval): Get the current time after the
34446 2014-05-08 Werner Koch <wk@gnupg.org>
34448 agent: Fix import of non-protected gpg keys.
34449 + commit 4aeb02562c9db4b96366220b781e2b4fa2d6fd3b
34450 * agent/cvt-openpgp.c (do_unprotect): Return an s-exp also for
34451 non-protected keys.
34452 (convert_from_openpgp_main): Do not call agent_askpin for a
34455 Make more use of *_NAME macros.
34456 + commit cb2aeb4e1157fc0d7dc25d94115973422dc1a800
34457 * configure.ac (GPG_DISP_NAME, GPGSM_DISP_NAME): New.
34458 (GPG_AGENT_DISP_NAME, SCDAEMON_DISP_NAME): New.
34459 (DIRMNGR_DISP_NAME, G13_DISP_NAME): New.
34460 (GPGCONF_DISP_NAME): New.
34461 (SCDAEMON_SOCK_NAME): New.
34462 * common/argparse.c (show_help): Map description string.
34464 2014-05-08 NIIBE Yutaka <gniibe@fsij.org>
34466 agent: Fix auth key comment handling.
34467 + commit fb24808db9af9dfe36f9f6d7fc24e0b903ecc12c
34468 * agent/command-ssh.c (ssh_send_key_public): Handle the case with no
34471 2014-05-07 Werner Koch <wk@gnupg.org>
34473 Make -jN work again.
34474 + commit 57011da53e43f9c8a6c7e7314166c3e17ff8627a
34475 * common/Makefile.am ($(PROGRAMS)): New rule
34476 (t_http_LDADD): Use libcommontls.a without directory prefix.
34477 * dirmngr/Makefile.am ($(PROGRAMS)): New rule.
34479 gpg: Print the key algorithm/curve with signature info.
34480 + commit 359c643d747c890f73f68b42e0aeb896016f05fd
34481 * g10/mainproc.c (check_sig_and_print): Print the name and curve.
34483 gpg: Fix memleak in signature verification of bogus keys.
34484 + commit e73edfb1759d05121ea66f67c775e763bf47d737
34485 * g10/mainproc.c (check_sig_and_print): Factor common code out to ...
34486 (print_good_bad_signature): here.
34488 gpg: Mark experimental algorithms in the key listing.
34489 + commit 09055aa0f7993aaf4dcffdd80d8192945ae6080a
34490 * g10/keylist.c (list_keyblock_print): Remove duplicate curve name.
34491 Print a note for experimental algorithms.
34492 * g10/misc.c (print_pubkey_algo_note): Fix warning message.
34494 gpg: Finish experimental support for Ed25519.
34495 + commit 8fee6c1ce6d116fe7909dbe1184d95bc91305484
34496 * agent/cvt-openpgp.c (try_do_unprotect_arg_s): Add field "curve".
34497 (get_keygrip): Add and use arg CURVE.
34498 (convert_secret_key): Ditto.
34499 (convert_transfer_key): Ditto.
34500 (get_npkey_nskey): New.
34501 (prepare_unprotect): Replace gcrypt functions by
34502 get_npkey_nskey. Allow opaque MPIs.
34503 (do_unprotect): Use CURVE instead of parameters.
34504 (convert_from_openpgp_main): Ditto.
34505 (convert_to_openpgp): Simplify.
34506 * g10/import.c (one_mpi_from_pkey): Remove.
34507 (transfer_secret_keys): Rewrite to use the curve instead of the
34509 * g10/parse-packet.c (parse_key): Mark protected MPIs with USER1 flag.
34511 * common/openpgp-oid.c (openpgp_curve_to_oid): Allow the use of
34512 "NIST P-256" et al.
34513 * g10/keygen.c (ask_curve): Add arg ALGO.
34514 (generate_keypair): Rewrite the ECC key logic.
34516 * tests/openpgp/ecc.test: Provide the "ecc" passphrase.
34518 kbx: Add experimental support for EDDSA.
34519 + commit bdb9c2b314400da9155b8a924e22e486793dda89
34520 * kbx/keybox-openpgp.c (parse_key): Use algo constants and add
34521 experimental support for EdDSA.
34523 agent: Remove greeting message.
34524 + commit a63ed9875830e5b3b4d48b7d97d24c18de36b326
34525 * agent/gpg-agent.c (main): Remove greeting. Make --no-greeting a
34528 2014-05-06 Werner Koch <wk@gnupg.org>
34530 Use "samethread" mode keyword for some es_fopenmem.
34531 + commit 6477e51919ef97f0f9cc05d10cdc7aa2b89faafe
34532 * dirmngr/ks-engine-hkp.c (armor_data): Add mode keyword.
34533 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
34534 * scd/atr.c (atr_dump): Ditto.
34536 2014-05-05 Werner Koch <wk@gnupg.org>
34538 dirmngr: Add support for hkps keyservers.
34539 + commit 60e2fc7d38d8b37d1de944cf230e410c2ce37d5e
34540 * dirmngr/dirmngr.c: Include gnutls.h.
34541 (opts): Add --gnutls-debug and --hkp-cacert.
34542 (opt_gnutls_debug, my_gnutls_log): New.
34543 (set_debug): Set gnutls log level.
34544 (parse_rereadable_options): Register a CA file.
34545 (main): Init GNUTLS.
34546 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Support hkps.
34547 (send_request): Ditto.
34549 http: Add reference counting to the session object.
34550 + commit ea0f5481f01eacedff264bf08144164aa989ec4d
34551 * common/http.c (http_session_t): Add field "refcount".
34552 (_my_socket_new, _my_socket_ref, _my_socket_unref): Add debug code.
34553 (send_request, my_npth_read, my_npth_write): Use SOCK object for the
34555 (http_session_release): Factor all code out to ...
34556 (session_unref): here. Deref SOCK.
34557 (http_session_new): Init refcount and transport ptr.
34558 (http_session_ref): New. Ref and unref all assignments.
34560 2014-05-02 Werner Koch <wk@gnupg.org>
34562 http: Add HTTP_FLAG_FORCE_TLS and http_get_tls_info.
34563 + commit 0e59195642eb26263b8e0b9200290538631d35cd
34564 * common/http.c (http_parse_uri): Factor code out to ...
34565 (parse_uri): here. Add arg FORCE_TLS.
34566 (do_parse_uri): Ditto. Implement flag.
34567 (http_get_tls_info): New.
34568 (http_register_tls_ca): Allow clearing of the list.
34569 (send_request): Use a default verification function.
34570 * common/http.h (HTTP_FLAG_FORCE_TLS): New.
34571 * common/t-http.c (main): Add several command line options.
34573 common: Fix test for openpgp_oid_is_ed25519.
34574 + commit 2def230231abd34f6012df284ab468321ffedc10
34575 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): Add correct
34578 http: Revamp TLS API.
34579 + commit 8412a5825c225c8ff14de3ffaad2e55e040b2eca
34580 * configure.ac (NEED_GNUTLS_VERSION): New.
34581 (HTTP_USE_GNUTLS, LIBGNUTLS_CFLAGS, LIBGNUTLS_LIBS): New ac_subst.
34583 * common/http.h (http_session_t): New.
34584 * common/http.c: Remove compatibility for gnutls < 3.0.
34585 (http_session_s): New.
34586 (cookie_s): Replace gnutls_session_t by http_session_t.
34587 (tls_callback, tls_ca_certlist): New variables.
34588 (my_socket_unref): Add preclose args.
34589 (my_npth_read, my_npth_write): New.
34590 (make_header_line): Fix bug using int* instead of char*.
34591 (http_register_tls_callback): New.
34592 (http_register_tls_ca): New.
34593 (http_session_new): New.
34594 (http_session_release): New.
34595 (http_get_header_names): New.
34596 (escape_data): Add hack to escape in forms mode.
34597 (send_request) [HTTP_USE_GNUTLS]: Support SNI.
34598 (send_request) [HTTP_USE_GNUTLS]: Fix use of make_header_line.
34599 (send_gnutls_bye): New.
34600 (cookie_close): Make use of preclose feature.
34601 (http_verify_server_credentials): New.
34602 (main) [TEST]: Remove test code.
34603 * common/t-http.c: New.
34604 * common/tls-ca.pem: New.
34605 * common/Makefile.am (tls_sources): New. Move http code to here.
34606 (libcommontls_a_SOURCES): New.
34607 (libcommontlsnpth_a_SOURCES): New.
34608 (EXTRA_DIST): Add tls-ca.pem
34609 (module_maint_tests): Add t-http.
34610 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
34612 * dirmngr/Makefile.am (dirmngr_LDADD): Add libcommontlsnpth.
34614 common: Cleanup the use of USE_NPTH and HAVE_NPTH macros.
34615 + commit 84289e85c72ae58c321dfdb96816700a6b7f7122
34616 * configure.ac (HAVE_NPTH): New ac_define.
34617 * common/estream.c: Use USE_NPTH instead of HAVE_NPTH.
34618 * common/http.c: Ditto. Replace remaining calls to pth by npth calls.
34619 (connect_server): Remove useless _().
34620 * common/exechelp-posix.c, common/exechelp-w32.c
34621 * common/exechelp-w32ce.c: Use HAVE_PTH to include npth.h.
34622 * common/init.c (_init_common_subsystems): Remove call to pth_init.
34623 * common/sysutils.c (gnupg_sleep): Use npth_sleep.
34624 * scd/ccid-driver.c (my_sleep): Ditto.
34626 2014-04-30 Werner Koch <wk@gnupg.org>
34628 estream: Implement "samethread" mode keyword.
34629 + commit 8416c875a729426eae05ed1ca9f1ebcb933c246a
34630 * src/estream.c (estream_internal): Add field SAMETHREAD.
34631 (init_stream_lock, lock_stream, trylock_stream, unlock_stream): Use it.
34632 (parse_mode): Add arg SAMETHREAD and parse that keyword.
34633 (es_initialize): Rename to ...
34634 (init_stream_obj): this. Add arg SAMETHREAD.
34635 (es_create): Add arg SAMETHREAD. Call init_stream_lock after
34637 (doreadline): Call es_create with samethread flag.
34638 (es_fopen, es_mopen, es_fopenmem, es_fopencookie, do_fdopen)
34639 (do_fpopen, do_w32open): Implement "samethread" keyword.
34640 (es_freopen): Take samthread flag from old stream.
34641 (es_tmpfile): Call es)_create w/o samethread.
34643 estream: Fix deadlock in es_fileno.
34644 + commit ecea94461ed40f3f6ef662c2501e1d56ec284022
34645 * src/estream.c (es_fileno_unlocked): Call the unlocked functions.
34647 estream: Add debug code to the lock functions.
34648 + commit aeb81727c77dfea3bf5d2d689ffbdc897f2938a7
34649 * common/estream.c (dbg_lock_0, dbg_lock_1, dbg_lock_1): New.
34651 estream: Replace locking macros by functions.
34652 + commit 39e91a5f0a666aad2fef7a840b2cd03949bb1be4
34653 * common/estream.c: Replace most macros.
34655 2014-04-28 NIIBE Yutaka <gniibe@fsij.org>
34658 + commit 21dab64030c95a909767bf6d8f99e8476f9df8a2
34659 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
34660 (convert_transfer_key): Follow newer (>= 1.6) libgcrypt API, which
34661 does not distinguish the detail.
34662 (do_unprotect, convert_from_openpgp_main): Don't call
34663 map_pk_openpgp_to_gcry, as it's the value of libgcrypt API already and
34664 not the value defined by OpenPGP.
34665 (convert_to_openpgp): It's "ecc".
34666 * agent/gpg-agent.c (map_pk_openpgp_to_gcry): Remove.
34667 * g10/call-agent.c (agent_pkdecrypt): Fix off-by-one error.
34668 * g10/pubkey-enc.c (get_it): Fix swapping the fields error.
34670 2014-04-22 Werner Koch <wk@gnupg.org>
34672 gpg: Pass --homedir to gpg-agent.
34673 + commit fdd938a5bbecb5b70f564ae3afb4e17905404bb2
34674 * agent/gpg-agent.c (main): Make sure homedir is absolute.
34675 * common/asshelp.c (lock_spawning): Create lock file with an absolute
34677 (start_new_gpg_agent): Use an absolute name for the socket and pass
34678 option --homedir to the agent.
34679 (start_new_dirmngr): Use an absolute name for the --homedir.
34681 common: Add functions make_absfilename and make_absfilename_try.
34682 + commit 71a54313adf7b57b7b27bb9ad07b142a34306260
34683 * common/stringhelp.c (do_make_filename): Add modes 2 and 3.
34684 (make_absfilename): New.
34685 (make_absfilename_try): New.
34687 common: Add function gnupg_getcwd.
34688 + commit 1a87edab6657a257876ab2f8790f2937feba7066
34689 * tools/gpg-connect-agent.c (gnu_getcwd): Move to ...
34690 * common/sysutils.c (gnupg_getcwd): .. here.
34691 * tools/gpg-connect-agent.c (get_var_ext): Use gnupg_getcwd.
34693 gpg: Print a warning if GKR has hijacked gpg-agent.
34694 + commit ffa39be5ebfc1059a737905ee317c9b6f3d2a77e
34695 * g10/call-agent.c (check_hijacking): New.
34696 (start_agent): Call it.
34697 (membuf_data_cb, default_inq_cb): Move more to the top.
34699 2014-04-17 Werner Koch <wk@gnupg.org>
34701 gpg: New %U expando for the photo viewer.
34702 + commit e184a11f94e2d41cd9266484542631bec23628b5
34703 * g10/photoid.c (show_photos): Set namehash.
34704 * g10/misc.c (pct_expando): Add "%U" expando.
34706 common: Add z-base-32 encoder.
34707 + commit b8a91ebf46a927801866e99bb5a66ab00651424e
34708 * common/zb32.c: New.
34709 * common/t-zb32.c: New.
34710 * common/Makefile.am (common_sources): Add zb82.c
34711 (module_tests): Add t-zb32.
34713 2014-04-16 Werner Koch <wk@gnupg.org>
34715 Two minor code cleanups and one NULL deref on error fix.
34716 + commit a34afa8f2053d75f276d6d28dbf1a43db0fd9768
34717 * common/estream.c (es_freopen): Remove useless check for STREAM.
34718 * kbx/keybox-blob.c (_keybox_create_x509_blob): Remove useless check
34720 * tools/sockprox.c (run_proxy): Do not fclose(NULL).
34722 2014-04-15 Werner Koch <wk@gnupg.org>
34724 gpg: Re-enable secret key deletion.
34725 + commit db3b528239c9d56bc71fd2283e07a3f1d91e4fd0
34726 * g10/call-agent.c (agent_delete_key): New.
34727 * g10/keydb.h (FORMAT_KEYDESC_DELKEY): New.
34728 * g10/passphrase.c (gpg_format_keydesc): Support new format.
34729 * g10/delkey.c (do_delete_key): Add secret key deletion.
34731 gpg: Re-indent a file.
34732 + commit d25d00b89efed461d344028d0e2e2be38cc77628
34733 * g10/delkey.c: Re-indent.
34734 (do_delete_key, delete_keys): Change return type top gpg_error_t.
34736 gpg: Fix regression in secret key export.
34737 + commit c4d983239a3f0a18c77f0a5aeba520a81a1b86e8
34738 * agent/cvt-openpgp.c (convert_to_openpgp): Fix use
34739 gcry_sexp_extract_param.
34740 * g10/export.c (do_export_stream): Provide a proper prompt to the
34743 gpg: Change pinentry prompt to talk about "secret key".
34744 + commit e549799db66be30cdd68a3e6cdca9c6a050466d1
34745 * g10/passphrase.c (gpg_format_keydesc): Add mode 2. Change strings.
34746 * g10/keydb.h (FORMAT_KEYDESC_NORMAL, FORMAT_KEYDESC_IMPORT)
34747 (FORMAT_KEYDESC_EXPORT): New. Use them for clarity.
34749 agent: Add command DELETE_KEY.
34750 + commit e3a4ff89a0b106e678bf9d0a4d47917123071140
34751 * agent/command.c (cmd_delete_key): New.
34752 * agent/findkey.c (modify_description): Add '%C' feature.
34753 (remove_key_file): New.
34754 (agent_delete_key): New.
34755 * agent/command-ssh.c (search_control_file): Make arg R_DISABLE
34758 * configure.ac: Require libgpg-error 1.13.
34760 2014-04-09 NIIBE Yutaka <gniibe@fsij.org>
34762 scd: EdDSA support.
34763 + commit 3132bd90dc8db9c7fd19ba201918e95891306dc5
34764 * scd/app-openpgp.c (KEY_TYPE_EDDSA, CURVE_ED25519): New.
34765 (struct app_local_s): Add eddsa.
34766 (get_algo_byte, store_fpr): Support KEY_TYPE_EDDSA.
34767 (get_ecc_key_parameters, get_curve_name): Support CURVE_ED25519.
34768 (send_key_attr, get_public_key): Support KEY_TYPE_EDDSA.
34769 (build_ecc_privkey_template): Rename as it supports both of
34771 (ecc_writekey): Rename. Support CURVE_ED25519, too.
34772 (do_writekey): Follow the change of ecc_writekey.
34773 (do_auth): Support KEY_TYPE_EDDSA.
34774 (parse_ecc_curve): Support CURVE_ED25519. Bug fix for other curves.
34775 (parse_algorithm_attribute): Bug fix for ECDH. Support EdDSA.
34777 2014-04-08 Werner Koch <wk@gnupg.org>
34779 dirmngr: Fix compiler warning.
34780 + commit db85feceaf43ebd6d44421bb14fcb60495804ae0
34781 * common/mischelp.h (JNLIB_GCC_HAVE_PUSH_PRAGMA): New.
34782 * dirmngr/dirmngr.c (handle_tick): Factor time check out to ...
34783 (time_for_housekeeping_p): new.
34785 gpgconf: Add command --launch.
34786 + commit b4cf4686f7349be9558217f20e51157398cd88a0
34787 * tools/gpgconf.c: Add command --launch.
34788 * tools/gpgconf-comp.c (gc_component_launch): New.
34790 scd: Silent compiler warnings about unused variables.
34791 + commit 36dfc37e438660632d3a2bf5d5526be9005fa8c5
34792 * scd/app-openpgp.c (build_ecdsa_privkey_template): Mark unused arg.
34793 (ecdh_writekey): Mark unused args.
34795 2014-04-08 NIIBE Yutaka <gniibe@fsij.org>
34797 agent: Support EdDSA.
34798 + commit 5ff6d0c25e6d0f422b17809b954e9e87cb137347
34799 * agent/pksign.c (agent_pksign_do): Handle EdDSA signature.
34801 g10: EdDSA support.
34802 + commit 40c3b0741e593d0658dda0c707c4f32e80648dd1
34803 * g10/keyid.c (keygrip_from_pk): Compute keygrip of EdDSA key.
34804 * g10/keygen.c (generate_subkeypair): Ed25519 is for EdDSA.
34805 * common/openpgp-oid.c (oid_ed25519): Update.
34807 2014-04-04 NIIBE Yutaka <gniibe@fsij.org>
34809 agent: EdDSA support for SSH.
34810 + commit 513c67b7461a2451247ef2b2fc64e0470a16edf1
34811 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Signature is
34812 two 32-byte opaque data which should not be interpreted as number.
34814 2014-03-27 Werner Koch <wk@gnupg.org>
34816 gpg: Add commands --quick-sign-key and --quick-lsign-key.
34817 + commit b6786cc3ec0bb582323adf94c2ee624bcfbeb466
34818 * g10/gpg.c (main): Add commands --quick-sign-key and
34820 * g10/keyedit.c (sign_uids): Add args FP and QUICK.
34821 (keyedit_quick_sign): New.
34822 (show_key_with_all_names): Add arg NOWARN.
34824 Change some keyedit functions to allow printing to arbitrary streams.
34825 + commit 4f50ec98ddd57253cae66e2321f0cc98ee189a09
34826 * common/ttyio.c (tty_print_string): Add optional arg FP. Change all
34828 (tty_print_utf8_string2): Ditto.
34829 * g10/keyedit.c (show_prefs): Ditto.
34830 (show_key_with_all_names_colon): Ditto.
34831 (show_names): Ditto.
34832 * g10/keylist.c (print_revokers): Ditto.
34833 (print_fingerprint): Ditto.
34835 2014-03-23 Werner Koch <wk@gnupg.org>
34837 agent: Replace es_mopen by es_fopenmem for ssh.
34838 + commit 5c2a50cdc90e85b1fc380851ccfbe9186969b658
34839 * agent/command-ssh.c (ssh_read_key_public_from_blob): Use
34841 (ssh_handler_request_identities): Ditto.
34842 (ssh_request_process): Ditto.
34844 2014-03-22 Werner Koch <wk@gnupg.org>
34846 agent: Put ssh key type as comment into sshcontrol.
34847 + commit fc3e70c11342267c1062e4244955d19ecd72e0f6
34848 * agent/command-ssh.c (ssh_key_type_spec): Add field name.
34849 (ssh_key_types): Add human readable names.
34850 (add_control_entry): Add arg SPEC and print key type as comment.
34851 (ssh_identity_register): Add arg SPEC.
34852 (ssh_handler_add_identity): Add var SPEC and pass ssh_receive_key.
34854 agent: Support the Ed25519 signature algorithm for ssh.
34855 + commit 072432883ededa15bf35f80102e0572746ba4af1
34856 * agent/command-ssh.c (SPEC_FLAG_IS_EdDSA): New.
34857 (ssh_key_types): Add entry for ssh-ed25519.
34858 (ssh_identifier_from_curve_name): Move to the top.
34859 (stream_read_skip): New.
34860 (stream_read_blob): New.
34861 (ssh_signature_encoder_rsa): Replace MPIS array by an s-exp and move
34862 the s-exp parsing to here.
34863 (ssh_signature_encoder_dsa): Ditto.
34864 (ssh_signature_encoder_ecdsa): Ditto.
34865 (ssh_signature_encoder_eddsa): New.
34866 (sexp_key_construct): Rewrite.
34867 (ssh_key_extract): Rename to ...
34868 (ssh_key_to_blob): .. this and rewrite most of it.
34869 (ssh_receive_key): Add case for EdDSA.
34870 (ssh_convert_key_to_blob, key_secret_to_public): Remove.
34871 (ssh_send_key_public): Rewrite.
34872 (ssh_handler_request_identities): Simplify.
34873 (data_sign): Add rename args. Add new args HASH and HASHLEN. Make
34874 use of es_fopenmen and es_fclose_snatch. Remove parsing into MPIs
34875 which is now doe in the sgnature encoder functions.
34876 (ssh_handler_sign_request): Take care of Ed25519.
34877 (ssh_key_extract_comment): Rewrite using gcry_sexp_nth_string.
34879 agent: Cleanups to prepare implementation of Ed25519.
34880 + commit a77ed0f266d03e234027dda4de5a7f3dd6787b1e
34881 * agent/cvt-openpgp.c: Remove.
34882 (convert_to_openpgp): Use gcry_sexp_extract_param.
34883 * agent/findkey.c (is_eddsa): New.
34884 (agent_is_dsa_key, agent_is_eddsa_key): Check whether ecc means EdDSA.
34885 * agent/pksign.c (agent_pksign_do): Add args OVERRIDEDATA and
34888 * common/ssh-utils.c (is_eddsa): New.
34889 (get_fingerprint): Take care or EdDSA.
34891 2014-03-18 Werner Koch <wk@gnupg.org>
34893 tools: Fix NULL deref in gpg-connect-agent.
34894 + commit 6376227a31b3076321ce16ad626b333057bda53d
34895 * tools/gpg-connect-agent.c (handle_inquire): Do not pass NULL to
34898 dirmngr: Resurrect hosts in the HKP hosttable.
34899 + commit 6c058fac65c7e9d1ffb72686f0f02644f172da22
34900 * dirmngr/dirmngr.c (HOUSEKEEPING_INTERVAL): New.
34901 (housekeeping_thread): New.
34902 (handle_tick): Call new function.
34903 * dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): New.
34904 (struct hostinfo_s): Add field died_at and set it along with the dead
34906 (ks_hkp_print_hosttable): Print that info.
34907 (ks_hkp_housekeeping): New.
34909 common: New function elapsed_time_string.
34910 + commit 04e304278c9302831bc81e7fe9049c588ead029a
34911 * common/gettime.c (elapsed_time_string): New.
34913 2014-03-17 Werner Koch <wk@gnupg.org>
34915 gpg: Reject signatures made with MD5.
34916 + commit f90cfe6b66269de0154d810c5cee1fe9a5af475c
34917 * g10/gpg.c: Add option --allow-weak-digest-algos.
34918 (main): Set option also in PGP2 mode.
34919 * g10/options.h (struct opt): Add flags.allow_weak_digest_algos.
34920 * g10/sig-check.c (do_check): Reject MD5 signatures.
34921 * tests/openpgp/defs.inc: Add allow_weak_digest_algos to gpg.conf.
34923 gpg: Make --auto-key-locate work again with keyservers.
34924 + commit 1e2e39c5758ffaf62f8bb85b4a86dc49c41f3a68
34925 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Allow exact search mode.
34926 * g10/keyserver.c (keyserver_import_name): Implement.
34927 (keyserver_get): Use exact mode for name based import.
34928 (keyserver_get): Add args R_FPR and R_FPRLEN. Change all callers.
34930 gpg: New mechanism "clear" for --auto-key-locate.
34931 + commit 1d642d3ca890daa65ee5dd949a00747da6b49015
34932 * g10/getkey.c (parse_auto_key_locate): Implement "clear".
34934 2014-03-14 Werner Koch <wk@gnupg.org>
34936 gpg-connect-agent: Make it easier to connect to the dirmngr.
34937 + commit 2223eaefaf53aa7217ac593b83e4294148a4db5d
34938 * tools/gpg-connect-agent.c: Add options --dirmngr and
34941 dirmngr: Make use of IPv4 and IPV6 more explicit.
34942 + commit 59b4fb5f4927908af06bb80ecd86adbf6e54ba14
34943 * common/http.c (connect_server): Handle the new flags.
34944 * common/http.h (HTTP_FLAG_IGNORE_IPv4, HTTP_FLAG_IGNORE_IPv4): New.
34945 * dirmngr/ks-engine-hkp.c (map_host): Add arg r_httpflags.
34946 (make_host_part): Ditto.
34947 (send_request): Add arg httpflags.
34948 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Handle httpflags.
34950 dirmngr: Do not use brackets around legacy IP addresses.
34951 + commit d7fbefeb82833db9eea8b15dc7889ecf0b7ffab4
34952 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change args to take a
34953 complete addrinfo. Bracket only v6 addresses. Change caller.
34955 gpg: Print the actual used keyserver address.
34956 + commit a401f768ca8e218eef7a5c87a8f99cb1d6b4aaeb
34957 * dirmngr/ks-engine-hkp.c (ks_hkp_search, ks_hkp_get): Print SOURCE
34959 * g10/call-dirmngr.c (ks_status_parm_s): New.
34960 (ks_search_parm_s): Add field stparm.
34961 (ks_status_cb): New.
34962 (ks_search_data_cb): Send source to the data callback.
34963 (gpg_dirmngr_ks_search): Change callback prototope to include the
34964 SPECIAL arg. Adjust all users. Use ks_status_cb.
34965 (gpg_dirmngr_ks_get): Add arg r_source and use ks_status_cb.
34966 * g10/keyserver.c (search_line_handler): Adjust callback and print
34967 "data source" disgnostic.
34968 (keyserver_get): Print data source diagnostic.
34970 dirmngr: Default to a user socket name and enable autostart.
34971 + commit 5d321eb00be0774418de1a05678ac0ec44d7193b
34972 * common/homedir.c (dirmngr_socket_name): Rename to
34973 dirmngr_sys_socket_name.
34974 (dirmngr_user_socket_name): New.
34975 * common/asshelp.c (start_new_dirmngr): Handle sys and user dirmngr
34977 * dirmngr/dirmngr.c (main): Ditto.
34978 * dirmngr/server.c (cmd_getinfo): Ditto.
34979 * sm/server.c (gpgsm_server): Ditto.
34980 * dirmngr/dirmngr-client.c (start_dirmngr): Likewise.
34981 * tools/gpgconf.c (main): Print "dirmngr-sys-socket" with --list-dirs.
34983 * configure.ac (USE_DIRMNGR_AUTO_START): Set by default.
34985 2014-03-12 Werner Koch <wk@gnupg.org>
34987 gpg: Add option --dirmngr-program.
34988 + commit 6dd5d99a61f24aff862ccba9f7410d7f1af87c05
34989 * g10/gpg.c: Add option --dirmngr-program.
34990 * g10/options.h (struct opt): Add field dirmngr_program.
34991 * g10/call-dirmngr.c (create_context): Use new var.
34993 * dirmngr/dirmngr.c: Include gc-opt-flags.h.
34994 (main): Remove GC_OPT_FLAG_*.
34995 * tools/gpgconf-comp.c (GC_OPT_FLAG_NO_CHANGE): Move macro to ...
34996 * common/gc-opt-flags.h: here.
34998 dirmngr: Detect dead keyservers and try another one.
34999 + commit fb56a273b1f2b3a99dc1d1a0850378ab7625e6b9
35000 * dirmngr/ks-action.c (ks_action_resolve): Rename var for clarity.
35001 (ks_action_search, ks_action_put): Ditto.
35002 (ks_action_get): Consult only the first server which retruned some
35005 * dirmngr/ks-engine-hkp.c (SEND_REQUEST_RETRIES): New.
35006 (map_host): Add arg CTRL and call dirmngr_tick.
35007 (make_host_part): Add arg CTRL.
35008 (mark_host_dead): Allow the use of an URL.
35009 (handle_send_request_error): New.
35010 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Mark host dead and retry on
35013 http: Add a flag to the URL parser indicating a literal v6 address.
35014 + commit 3d9e0eb02ce2b2e153e25deb0fc4b27b45f5026a
35015 * common/http.h (struct parsed_uri_t): Add field v6lit.
35016 * common/http.c (do_parse_uri): Set v6lit.
35018 2014-03-12 NIIBE Yutaka <gniibe@fsij.org>
35020 scd: writekey support of ECC.
35021 + commit 781b94174310dceffa075719420b74b29fe41764
35022 * scd/app-openpgp.c (CURVE_SEC_P256K1, get_algo_byte): New.
35023 (store_fpr): Support ECC keys with varargs.
35024 (get_ecc_key_parameters, get_curve_name): Support secp256k1.
35025 (parse_ecc_curve): Likewise.
35026 (build_ecdsa_privkey_template, rsa_writekey, ecdsa_writekey): New.
35027 (ecdh_writekey): New. Not implemented yet.
35028 (do_writekey): Call rsa_writekey, ecdsa_writekey, or ecdh_writekey.
35029 (do_genkey): Follow the change of store_fpr.
35031 2014-03-11 Werner Koch <wk@gnupg.org>
35033 dirmngr: Put brackets around IP addresses in the hosttable.
35034 + commit 0b2cca807d5a4a3664145032271141da853e7bac
35035 * dirmngr/ks-engine-hkp.c (EAI_OVERFLOW): Provide a substitute.
35036 (my_getnameinfo): New.
35037 (map_host): Use it.
35039 dirmngr: Add command option to mark hosts as dead or alive.
35040 + commit a3dee2889106fcab112c1c96b32e04d8154875e7
35041 * dirmngr/server.c (cmd_killdirmngr): Factor some code out to ...
35042 (check_owner_permission): here.
35043 (cmd_keyserver): Add options --dead and --alive.
35044 * dirmngr/ks-engine-hkp.c (host_in_pool_p): New.
35045 (ks_hkp_mark_host): New.
35047 dirmngr: Make Assuan output of keyblocks easier readable.
35048 + commit 71b55c945542e695161ddbd783f87c5f534012a5
35049 * dirmngr/server.c (data_line_cookie_write): Print shorter data lines
35052 dirmngr: Fix HKP host selection code.
35053 + commit 3c35b46a32ac7584f3807b611cde78b199c527d6
35054 * dirmngr/server.c (cmd_keyserver): Add option --resolve and change
35055 --print-hosttable to --hosttable.
35056 * dirmngr/ks-action.c (ks_printf_help): New.
35057 (ks_action_resolve): New.
35058 * dirmngr/ks-engine-hkp.c (select_random_host): Fix selection.
35059 (ks_hkp_print_hosttable): Print to assuan stream.
35060 (map_host): Remove debug code. Add arg FORCE_SELECT. Return numeric
35061 IP addr if it can't be resolved.
35062 (make_host_part): Add arg FORCE_SELECT; change callers to pass false.
35063 (ks_hkp_resolve): New.
35065 List readline support in configure summary.
35066 + commit f30d8b018871495327cbf711b73b04278a34f3e1
35067 * m4/readline.m4: Set gnupg_cv_have_readline.
35068 * configure.ac: Add readline support to summary output.
35070 2014-03-11 NIIBE Yutaka <gniibe@fsij.org>
35072 agent: API change of agent_key_from_file.
35073 + commit ac5a1a3ccb7c3e6393bc83d73b545dec9b70e7d1
35074 * agent/findkey.c (agent_key_from_file): Always return S-expression.
35075 * agent/command.c (cmd_passwd): Distinguish by SHADOW_INFO.
35076 (cmd_export_key): Likewise. Free SHADOW_INFO.
35077 (cmd_keytocard): Likewise. Release S_SKEY.
35078 * agent/pkdecrypt.c (agent_pkdecrypt): Likewise.
35079 * agent/pksign.c (agent_pksign_do): Likewise. Use the S-expression to
35082 2014-03-10 Werner Koch <wk@gnupg.org>
35084 Backport useful code from fixes for bug 1447.
35085 + commit 57d26f39afb3c75e24a8d240d7af32b9d2b9775a
35086 * configure.ac: Cehck for inet_ntop.
35087 * m4/libcurl.m4: Provide a #define for the version of the curl
35090 scd: acquire lock in new_reader_slot.
35091 + commit 9ab9f414fb919f0bc87c301c3e36180715d0aa4e
35092 * scd/apdu.c (new_reader_slot): Acquire lock.
35093 (open_ct_reader, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
35094 (open_ccid_reader, open_rapdu_reader): Release lock.
35095 (lock_slot, trylock_slot, unlock_slot): Move more to the top.
35097 Do not require libiconv for Android.
35098 + commit b278043a8f38e2706ccf617d2ac5661b33791d6b
35099 * configure.ac (require_iconv): New. Set to false for android.
35100 (AM_ICONV): Run only if required.
35102 2014-03-07 Werner Koch <wk@gnupg.org>
35104 dirmmgr: Use a portability wrapper for struct timeval.
35105 + commit feda379595e06583bc5b3610dec74890de29cb8e
35106 * dirmngr/dirmngr_ldap.c [W32]: Include winber.h.
35107 (my_ldap_timeval_t): New.
35109 Silence more warnings about unused vars and args.
35110 + commit 4387ecb11cdb2addf738eb922c1b9f14c6c76efc
35111 * dirmngr/cdblib.c (cdb_init) [W32]: Remove unused var.
35112 * dirmngr/dirmngr-client.c (start_dirmngr): s/int/assuan_fd_t/.
35113 * dirmngr/dirmngr.c (w32_service_control): Mark unused args.
35114 (call_real_main): New.
35115 (main) [W32]: Use new function to match prototype.
35116 (real_main) [W32]: Mark unused vars.
35117 (handle_signal) [W32]: Do not build the function at all.
35118 (handle_connections) [W32]: Do not define signo.
35119 * dirmngr/ldap-wrapper-ce.c (outstream_reader_cb): Remove used vars.
35120 * g10/tdbio.c (ftruncate) [DOSISH]: Define only if not yet defined.
35122 dirmngr: Simplify strtok macro.
35123 + commit 35266076e3452590931e58f188815859dff6de3c
35124 * dirmngr/ldap-url.c (ldap_utf8_strtok): Remove unused r3d arg.
35125 (ldap_str2charray): Remove lasts.
35127 Use attribute __gnu_printf__ also in estream header files.
35128 + commit 72133b54de89e593d8193b106e9369cf90d2e1c0
35129 * common/estream-printf.h: Use attribute gnu_printf.
35130 * common/estream.h: Ditto.
35132 Use attribute __gnu_printf__ with our estream-printf functions.
35133 + commit 36372dcb2f75a659b7ace0e9c46f07bb431d009c
35134 * common/mischelp.h (JNLIB_GCC_A_PRINTF): Use __gnu_printf__
35135 (JNLIB_GCC_A_NR_PRINTF): Ditto.
35137 w32: Silence warnings about unused vars.
35138 + commit 094aa2589e3920d400be93ae2823a6c4b23db623
35139 * agent/gpg-agent.c (main) [W32]: Mark unused vars.
35140 * sm/gpgsm.c (run_protect_tool) [W32]: Ditto.
35141 * g10/trustdb.c (check_regexp) [DISABLE_REGEX]: Ditto.
35142 * scd/scdaemon.c (main) [W32]: Ditto.
35143 (handle_connections) [W32]: Ditto.
35144 (handle_signal) [W32]: Do not build the function at all.
35145 * scd/apdu.c (pcsc_send_apdu_direct): Ditto.
35146 (connect_pcsc_card): s/long/pcsc_dword_t/.
35147 (open_pcsc_reader_direct): Remove var listlen.
35149 w32: Fix a potential problem in gpgconf's gettext.
35150 + commit a0fc42598f51ef4a958fc3c2fed7f4b8df2da3fd
35151 * tools/gpgconf-comp.c (my_dgettext) [USE_SIMPLE_GETTEXT]: Make sure
35152 to return something even DOMAIN is not given.
35154 Silence several warnings when building under Windows.
35155 + commit 3032fc3ad78ac9ed857570844547afed520d635a
35156 * agent/call-scd.c (start_scd): Replace int by assuan_fd_t.
35157 (start_pinentry): Ditto.
35158 * common/asshelp.c (start_new_gpg_agent): Replace int by assuan_fd_t.
35159 * common/dotlock.c (GNUPG_MAJOR_VERSION): Include stringhelp.h for
35160 prototypes on Windows and some other platforms.
35161 * common/logging.c (fun_writer): Declare addrbuf only if needed.
35162 * g10/decrypt.c (decrypt_message_fd) [W32]: Return not_implemented.
35163 * g10/encrypt.c (encrypt_crypt) [W32]: Return error if used in server
35165 * g10/dearmor.c (dearmor_file, enarmor_file): Replace GNUPG_INVALID_FD
35166 by -1 as temporary hack for Windows.
35167 * g10/export.c (do_export): Ditto.
35168 * g10/revoke.c (gen_desig_revoke, gen_revoke): Ditto.
35169 * g10/sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
35170 * g10/server.c (cmd_verify, gpg_server) [W32]: Return an error.
35172 w32: Include winsock2.h to silence warnings.
35173 + commit cb0dcc340836a64e2d33b27f1be7bc888c084f12
35176 gl: Avoid warning about shadowing an arg.
35177 + commit 84fd36f8baa2b800ea47ff74935f5aaf0e55c299
35178 * gl/setenv.c (KNOWN_VALUE): s/value/_v/.
35180 common: Fix build problem with Sun Studio compiler.
35181 + commit 0fc71f7277c6f833f838bbd384f1a22d0c333e8e
35182 * common/estream.c (ESTREAM_MUTEX_UNLOCK): Use int dummy dummy
35184 (ESTREAM_MUTEX_INITIALIZE): Ditto.
35186 gpg: Do not require a trustdb with --always-trust.
35187 + commit d8f0b83e4f04641e5e9adbdd8abada15380f981c
35188 * g10/tdbio.c (tdbio_set_dbname): Add arg R_NOFILE.
35189 * g10/trustdb.c (trustdb_args): Add field no_trustdb.
35190 (init_trustdb): Set that field.
35191 (revalidation_mark): Take care of a nonexistent trustdb file.
35192 (read_trust_options): Ditto.
35193 (tdb_get_ownertrust): Ditto.
35194 (tdb_get_min_ownertrust): Ditto.
35195 (tdb_update_ownertrust): Ditto.
35196 (update_min_ownertrust): Ditto.
35197 (tdb_clear_ownertrusts): Ditto.
35198 (tdb_cache_disabled_value): Ditto.
35199 (tdb_check_trustdb_stale): Ditto.
35200 (tdb_get_validity_core): Ditto.
35201 * g10/gpg.c (main): Do not create a trustdb with most commands for
35202 trust-model always.
35204 gpg: Print a "not found" message for an unknown key in --key-edit.
35205 + commit dfb25d47a9fcfd7c7c084ea58744724cd5315086
35206 * g10/keyedit.c (keyedit_menu): Print message.
35208 gpg: Protect against rogue keyservers sending secret keys.
35209 + commit db1f74ba5338f624f146a3cb41a346e46b15c8f9
35210 * g10/options.h (IMPORT_NO_SECKEY): New.
35211 * g10/keyserver.c (keyserver_spawn, keyserver_import_cert): Set new
35213 * g10/import.c (import_secret_one): Deny import if flag is set.
35215 agent: Fix UPDATESTARTUPTTY for ssh.
35216 + commit 90688b29f3701f4d3e2a5a49c5544fe8d2a84b2d
35217 * agent/command-ssh.c (setup_ssh_env): Fix env setting.
35219 gpgv: Init Libgcrypt to avoid syslog warning.
35220 + commit 7c4bfa599fa69c3a942c8deea83737a4c5a0806e
35221 * g10/gpgv.c (main): Check libgcrypt version and disable secure
35224 Improve libcurl detection.
35225 + commit 5ca482d5f949444ffd453de158ee186ab07fc9b6
35226 * m4/libcurl.m4: Do not use AC_PATH_PROG if --with-libcurl as been
35227 given. Suggested by John Marshall.
35229 gpg: Remove legacy keyserver examples from the template conf file.
35230 + commit 0ab752cc2d46bbd0077bed889676169b7aeb1eb6
35231 * g10/options.skel: Update.
35233 (cherry picked from commit f3c5cc8bcd37e38b5d65db6a50466e22d03d1f0c)
35235 w32: Define WINVER only if needed.
35236 + commit 76b1940ad6f5f058c4a6bec35902da9f6d4e27b0
35237 * common/sysutils.c (WINVER): Define only if less that 5.0.
35239 w32: Remove unused code.
35240 + commit 63b7658a29809249d7aeb0423bf8c5a693eee0c7
35241 * jnlib/w32-reg.c (write_w32_registry_string): Remove.
35243 agent: Make --allow-mark-trusted the default.
35244 + commit 9942a149ff2ab919c1b2916c7bc347e578a56b14
35245 * agent/gpg-agent.c (opts, main): Add option --no-allow-mark-trusted.
35246 Put this option into the gpgconf-list.
35247 (main): Enable opt.allow_mark_trusted by default.
35248 * tools/gpgconf-comp.c (gc_options_gpg_agent): Replace
35249 allow-mark-trusted by no-allow-mark-trusted.
35251 * agent/trustlist.c (agent_marktrusted): Always set the "relax" flag.
35253 ssh: Add support for Putty.
35254 + commit 5105c8d2d344fd7301d456d8c13c7e90a54f7e98
35255 * agent/gpg-agent.c [W32]: Include Several Windows header.
35256 (opts): Change help text for enable-ssh-support.
35257 (opts, main): Add option --enable-putty-support
35258 (putty_support, PUTTY_IPC_MAGIC, PUTTY_IPC_MAXLEN): New for W32.
35259 (agent_init_default_ctrl): Add and asssert call.
35260 (putty_message_proc, putty_message_thread): New.
35261 (handle_connections) [W32]: Start putty message thread.
35262 * common/sysutils.c (w32_get_user_sid): New for W32 only
35263 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add
35264 --enable-ssh-support and --enable-putty-support. Make the
35265 configuration group visible at basic level.
35266 * agent/command-ssh.c (serve_mmapped_ssh_request): New for W32 only.
35268 agent: Fix binary vs. text mode problem in ssh.
35269 + commit 179012ddd48e63ca83e8f5c24537a2db45c3e122
35270 * agent/command-ssh.c (file_to_buffer)
35271 (ssh_handler_request_identities): Open streams in binary mode.
35272 (start_command_handler_ssh): Factor some code out to ..
35273 (setup_ssh_env): new function.
35275 Fix syntax error for building on APPLE.
35276 + commit 4ad123d6fe341da7768e43360375e17fa89e8e0d
35277 * scd/pcsc-wrapper.c [__APPLE__]: Fix syntax error.
35279 Ignore obsolete option --disable-keypad.
35280 + commit d2a6be24af0bf220bb448fdd50c0196faddee0f4
35281 * scd/scdaemon.c (opts): Ignore --disable-keypad.
35283 Allow marking options as ignored.
35284 + commit 8fc9de8d6bf663f7c8419b42dab01f590a694d59
35285 * jnlib/argparse.h (ARGPARSE_OPT_IGNORE): New.
35286 (ARGPARSE_TYPE_MASK): New, for internal use.
35287 (ARGPARSE_ignore): New.
35288 * jnlib/argparse.c (optfile_parse, arg_parse): Replace remaining
35289 constants by macros.
35290 (optfile_parse): Implement ARGPARSE_OPT_IGNORE.
35291 (arg_parse): Exclide ignore options from --dump-options.
35293 2014-03-06 Werner Koch <wk@gnupg.org>
35295 common: Fix recent commit 55656208.
35296 + commit 191e32026f02054b1edb4f02536875462fd0b6b3
35297 * common/membuf.c (get_membuf_shrink): Fix use of LEN.
35299 2014-03-06 NIIBE Yutaka <gniibe@fsij.org>
35302 + commit 5ed8e9335fb886d7ddc86728d8481e5e47485531
35303 * g10/trust.c (register_trusted_keyid, register_trusted_key)
35304 (update_ownertrust): Call functions with tdb_.
35306 2014-02-26 Werner Koch <wk@gnupg.org>
35308 common: Replace all macros in strusage() returned strings.
35309 + commit 0f38c87f427a155ab5684e18e3b73956f81edfab
35310 * common/argparse.c (writechar): Remove.
35311 (writestrings): Simplify.
35312 (strusage): Use map_static_macro_string.
35314 common: New function map_static_macro_string.
35315 + commit c72762f9acf3eef5c466ba76e895d7654df12ff7
35316 * common/mapstrings.c: New.
35317 * common/t-mapstrings.c: New.
35318 * common/t-support.h (DIM, DIMof): Define if not defined.
35319 * common/Makefile.am: Add new files.
35321 common: New function get_membuf_shrink.
35322 + commit 556562086acd2bc2f8e3aa3126ebf155715e042b
35323 * common/membuf.c (get_membuf_shrink): New.
35325 agent: Fixed unresolved symbol under Windows.
35326 + commit 55c3e5f448c26360eda31e05b1f62249119f73d9
35327 * agent/gpg-agent.c (main): s/ttyname/gnupg_ttyname/.
35329 common: Require an installed libiconv.
35330 + commit 380a2aa18e0c048cfefa1cb4102dfbf902a1962b
35331 * common/utf8conv.c: Remove dynload.h.
35332 (load_libiconv): Remove. Remove all calls to it.
35334 2014-02-10 Werner Koch <wk@gnupg.org>
35336 gpg: Silent more compiler warnings due to some configure options.
35337 + commit 47e6b6bad1dff493f4102a5549a7bb54466684c2
35338 * g10/keygen.c (generate_keypair, gen_card_key)
35339 (gen_card_key_with_backup) [!ENABLE_CARD_SUPPORT]: Mark unused args.
35341 tests: Avoid segv if dns cert lookup is not configured.
35342 + commit 672f4aeba8bf55839911e1fe805af6b2873853f7
35343 * common/dns-cert.c (get_dns_cert) [!USE_DNS_CERT]: Reset return args.
35345 gpg: Cleanup compiler warnings due to some configure options.
35346 + commit 7901c5c2a3b7b24e9a4eaab590b0a54e9695c3e4
35347 * g10/photoid.c (show_photos) [DISABLE_PHOTO_VIEWER]: Mark args as
35349 * tools/gpgconf-comp.c (my_dgettext): Mark DOMAIN as unused if NLS is
35352 gpg: Allow building without any trust model support.
35353 + commit 62fb86c6589f7f74dad4741db31b3aefa0848420
35354 * configure.ac: Add option --disable-trust-models
35355 (NO_TRUST_MODELS): New ac_define and am_conditional.
35356 * g10/Makefile.am (trust_source): New.
35357 (gpg2_SOURCES): Factor some files out to above. Add trust.c.
35358 * g10/gpg.c [NO_TRUST_MODELS]: Disable options --export-ownertrust,
35359 --import-ownertrust, --update-trustdb, --check-trustdb, --fix-trustdb,
35360 --list-trustdb, --trustdb-name, --auto-check-trustdb,
35361 --no-auto-check-trustdb, and --force-ownertrust.
35362 (parse_trust_model) [NO_TRUST_MODELS]: Do not build.
35363 (main) [NO_TRUST_MODELS]: Set trust_model to always and exclude all
35364 trustdb related option code.
35365 * g10/keyedit.c (cmds) [NO_TRUST_MODELS]: Remove menu items "trust",
35366 "enable", and "disable".
35367 * g10/keylist.c (public_key_list) [NO_TRUST_MODELS]: Do not print
35370 * g10/trust.c: New.
35371 * g10/trustdb.c (struct key_item): Move to trustdb.h.
35372 (register_trusted_keyid): Rename to tdb_register_trusted_keyid.
35373 (register_trusted_key): Rename to tdb_register_trusted_key.
35374 (trust_letter, uid_trust_string_fixed, trust_value_to_string)
35375 (string_to_trust_value, get_ownertrust_with_min, get_ownertrust_info)
35376 (get_ownertrust_string, get_validity_info, get_validity_string)
35377 (clean_sigs_from_uid, clean_uid_from_key, clean_key): Move to trust.c.
35378 (mark_usable_uid_certs): Move to trust.c and make global.
35379 (is_in_klist): Move as inline to trustdb.h.
35380 (trustdb_check_or_update): Rename to tdb_check_or_update
35381 (revalidation_mark): Rename to tdb_revalidation_mark.
35382 (get_ownertrust): Rename to tdb_get_ownertrust.
35383 (get_min_ownertrust): Rename to tdb_get_min_ownertrust.
35384 (update_ownertrust): Rename to tdb_update_ownertrust.
35385 (clear_ownertrusts): Rename to tdb_clear_ownertrusts.
35386 (cache_disabled_value): Rename to tdb_cache_disabled_value.
35387 (check_trustdb_stale): Rename to tdb_check_trustdb_stale.
35388 (get_validity): Rename to tdb_get_validity_core, add arg MAIN_PK and
35389 factor some code out to ...
35390 * trust.c (get_validity): ...new.
35391 (check_or_update_trustdb): New wrapper.
35392 (revalidation_mark): New wrapper.
35393 (get_ownertrust): New wrapper.
35394 (get_ownertrust_with_min): New wrapper.
35395 (update_ownertrust): New wrapper.
35396 (clear_ownertrusts): New wrapper.
35397 (cache_disabled_value): New wrapper.
35398 (check_trustdb_stale): New wrapper.
35400 * tests/openpgp/defs.inc (opt_always): New. Use in all tests instead
35403 tests: Handle disabled algorithms.
35404 + commit ea7f895319e89150e5613b6d20f21410f99d6f22
35405 * tests/openpgp/mds.test: Skip disabled algorithms.
35406 * tests/openpgp/signencrypt-dsa.test: Ditto.
35407 * tests/openpgp/sigs-dsa.test: Ditto.
35409 2014-02-07 Werner Koch <wk@gnupg.org>
35411 Silence annoying ABI change warning.
35412 + commit 111f082487dc7a2a50375e24203de31b000e0dea
35413 * configure.ac [GCC]: Pass -Wno-psabi for gcc >= 4.6. Avoid some gcc
35414 option tests for gcc >= 4.6
35416 Allow disabling of card support.
35417 + commit 8e0ba4ecd3897c748ac2f06028406604ae7baced
35418 * configure.ac: Add option --disable-card-support. Also add
35419 am_conditional and do not build scd if card support is enabled.
35421 gpg: List only available algos in --gen-key.
35422 + commit 357b142e7225e5c7f1e0f9768f48e833d5804b6a
35423 * g10/keygen.c (ask_algo, ask_curve): Take care of GPG_USE_<algo>.
35425 gpg: Change --print-mds to output enabled OpenPGP algos.
35426 + commit 54a11729fb71ba06e318fe229d0a230686ed4dc8
35427 * g10/gpg.c (print_mds): Use opengpg_md_test_algo. Test also for MD5
35430 gpg: Avoid compiler warnings for disabled algos.
35431 + commit aa76a1660613ece3fc0d774856abcbe0bb158300
35432 * g10/misc.c (map_cipher_openpgp_to_gcry): Add case for disabled algo.
35433 (openpgp_pk_test_algo2): Ditto.
35434 (map_md_openpgp_to_gcry): Ditto.
35436 2014-02-05 Werner Koch <wk@gnupg.org>
35438 gpg: Change format for the key size in --list-key and --edit-key.
35439 + commit 2c814806d759e5cf611200e8210137cf8502a672
35440 * g10/gpg.c (oLegacyListMode, opts, main): Add --legacy-list-mode.
35441 * g10/options.h (struct opt): Add field legacy_list_mode.
35442 * g10/keydb.h (PUBKEY_STRING_SIZE): New.
35443 * g10/keyid.c (pubkey_string): New.
35444 * g10/import.c (import_one, import_secret_one): Use pubkey_string.
35445 * g10/keylist.c (print_seckey_info): Ditto.
35446 (print_pubkey_info, print_card_key_info): Ditto.
35447 (list_keyblock_print): Ditto.
35448 * g10/mainproc.c (list_node): Ditto.
35449 * g10/pkclist.c (do_edit_ownertrust, build_pk_list): Ditto.
35450 * g10/keyedit.c (show_key_with_all_names): Ditto. Also change the
35452 (show_basic_key_info): Ditto.
35453 * common/openpgp-oid.c (openpgp_curve_to_oid): Also allow "ed25519".
35454 (openpgp_oid_to_curve): Downcase "ed25519"
35456 2014-01-31 Werner Koch <wk@gnupg.org>
35458 gpg: Add configure options to disable algorithms.
35459 + commit 2ba818de1aa311ba8eb27012d69e93dd16e7d4ed
35460 * acinclude.m4 (GNUPG_GPG_DISABLE_ALGO): New.
35461 * configure.ac: Add --enable-gpg-* options to disable non MUS
35463 * g10/misc.c (map_cipher_openpgp_to_gcry): Implement these options.
35464 (openpgp_pk_test_algo2): Ditto.
35465 (map_md_openpgp_to_gcry): Ditto.
35466 (openpgp_cipher_test_algo, openpgp_md_test_algo): Simplify.
35468 gpg: Improve --version algo info output.
35469 + commit 71540d40414dc8b304b45dc476e5e5650a2db20a
35470 * g10/misc.c (openpgp_pk_algo_name): Return a different string for
35471 each ECC algorithm.
35472 * g10/gpg.c (build_list_pk_test_algo): New wrapper to cope with the
35473 different algo type enums.
35474 (build_list_pk_algo_name): Ditto.
35475 (build_list_cipher_test_algo): Ditto.
35476 (build_list_cipher_algo_name): Ditto.
35477 (build_list_md_test_algo): Ditto.
35478 (build_list_md_algo_name): Ditto.
35479 (my_strusage): Use them.
35480 (list_config): Ditto. Add "pubkeyname".
35481 (build_list): Add letter==1 hack.
35483 gpg: Start using OpenPGP digest algo ids.
35484 + commit bf50604a0d50b974c1d4b8ccf5d774489f996cae
35485 * g10/misc.c (print_pubkey_algo_note): Use enum typedef for the arg.
35486 (print_cipher_algo_note): Ditto.
35487 (print_digest_algo_note): Ditto.
35488 (map_md_openpgp_to_gcry): New.
35489 (openpgp_md_test_algo): Rewrite.
35490 (openpgp_md_algo_name): Rewrite to do without Libgcrypt.
35491 * g10/cpr.c (write_status_begin_signing): Remove hardwired list of
35494 gpg: Use only OpenPGP cipher algo ids.
35495 + commit 16a6311adefff0139056714521214f845315b7f8
35496 * g10/misc.c (map_cipher_openpgp_to_gcry): Use explicit mapping and
35497 use enums for the arg and return value.
35498 (map_cipher_gcry_to_openpgp): Ditto.
35499 (openpgp_cipher_blocklen): Use constant macros.
35500 (openpgp_cipher_test_algo): Use mapping function and prepare to
35501 disable algorithms.
35502 (openpgp_cipher_algo_name): Do not use Libgcrypt.
35504 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Replace
35505 CGRY_CIPHER_* by CIPHER_ALGO_*.
35507 * common/openpgpdefs.h (cipher_algo_t): Remove unused
35510 2014-01-30 Werner Koch <wk@gnupg.org>
35512 gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id.
35513 + commit b7f8dec6325f1c80640f878ed3080bbc194fbc78
35514 * common/sexputil.c (get_pk_algo_from_canon_sexp): Change to return a
35516 * g10/keygen.c (check_keygrip): Adjust for change.
35517 * sm/certreqgen-ui.c (check_keygrip): Likewise.
35519 * agent/pksign.c (do_encode_dsa): Remove bogus map_pk_openpgp_to_gcry.
35521 * g10/misc.c (map_pk_openpgp_to_gcry): Remove.
35522 (openpgp_pk_test_algo): Change to a wrapper for openpgp_pk_test_algo2.
35523 (openpgp_pk_test_algo2): Rewrite.
35524 (openpgp_pk_algo_usage, pubkey_nbits): Add support for EdDSA.
35525 (openpgp_pk_algo_name): Rewrite to remove need for gcry calls.
35526 (pubkey_get_npkey, pubkey_get_nskey): Ditto.
35527 (pubkey_get_nsig, pubkey_get_nenc): Ditto.
35528 * g10/keygen.c(do_create_from_keygrip): Support EdDSA.
35529 (common_gen, gen_ecc, ask_keysize, generate_keypair): Ditto.
35530 * g10/build-packet.c (do_key): Ditto.
35531 * g10/export.c (transfer_format_to_openpgp): Ditto.
35532 * g10/getkey.c (cache_public_key): Ditto.
35533 * g10/import.c (transfer_secret_keys): Ditto.
35534 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
35535 * g10/mainproc.c (proc_pubkey_enc): Ditto.
35536 * g10/parse-packet.c (parse_key): Ditto,
35537 * g10/sign.c (hash_for, sign_file, make_keysig_packet): Ditto.
35538 * g10/keyserver.c (print_keyrec): Use openpgp_pk_algo_name.
35539 * g10/pkglue.c (pk_verify, pk_encrypt, pk_check_secret_key): Use only
35540 OpenPGP algo ids and support EdDSA.
35541 * g10/pubkey-enc.c (get_it): Use only OpenPGP algo ids.
35542 * g10/seskey.c (encode_md_value): Ditto.
35544 2014-01-29 Werner Koch <wk@gnupg.org>
35546 gpg: Remove cipher.h and put algo ids into a common file.
35547 + commit ea8a1685f75d27f5277d42ea7390ad5aeaf51b1f
35548 * common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
35549 (compress_algo_t): New.
35550 * agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
35551 * g10/cipher.h (DEK): Move to ...
35552 * g10/dek.h: new file.
35553 * g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
35554 (PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
35555 (PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
35556 (PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
35557 * g10/packet.h: here.
35558 * g10/cipher.h: Remove. Remove from all files.
35559 * g10/filter.h, g10/packet.h: Include dek.h.
35560 * g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
35562 include: Remove this directory.
35563 + commit 25b4c2acbd01f9b4c2c364f44c53b73498ed8469
35564 * include/cipher.h: Move to ...
35565 * g10/cipher.h: here.
35566 * agent/gpg-agent.c: Adjust header file name.
35568 * include/host2net.h: Move to ...
35569 * common/host2net.h: here. Change license to LGPLv3/GPLv2. Adjust
35570 notices to reflect that only me worked on that file.
35572 * include/types.h: Remove.
35573 * common/types.h: Include inttypes.h. Add byte typedef and comments
35575 * common/iobuf.h: Adjust header file name.
35577 * include/_regex.h: Remove this unused file.
35579 * include/Makefile.am: Remove.
35580 * Makefile.am (SUBDIRS): Remove "include".
35581 * configure.ac (AC_CONFIG_FILES): Remove include/Makefile.
35582 * include/ChangeLog-2011: Move to ...
35583 * common/ChangeLog-2011.include: here.
35584 * common/Makefile.am (EXTRA_DIST): Add file.
35586 * include/zlib-riscos.h: Move this repo only file to ...
35587 * g10/zlib-riscos.h: here.
35589 * include/: Remove.
35591 2014-01-17 Werner Koch <wk@gnupg.org>
35593 Remove unused u64 type definitions.
35594 + commit 362a30d8c2f529cd44687066f9c33cab7b43bedc
35595 * configure.ac: Remove check for uint64 and UINT64_C.
35596 * include/types.h: Remove u64 stuff.
35597 * common/types.h: Ditto.
35599 2014-01-16 NIIBE Yutaka <gniibe@fsij.org>
35601 agent: Not remove SSH socket when already running.
35602 + commit 0ee66a6f66d7389e381fffa5f9eedbc8de9add10
35603 * agent/gpg-agent.c (main): Defer setting of socket_name_ssh to avoid
35604 removal of the socket when it will die in create_server_socket for
35607 agent: Fix agent_is_eddsa_key.
35608 + commit 9c731bbedfd8bded5efd886304c5ca6655768c45
35609 * agent/findkey.c (agent_is_eddsa_key): Implemented.
35611 2014-01-15 NIIBE Yutaka <gniibe@fsij.org>
35614 + commit c5e41f539b9a21cbad10c7dae95572a4445d31c3
35615 * common/openpgp-oid.c (openpgp_curve_to_oid): Add secp256k1.
35616 (openpgp_oid_to_curve): Likewise.
35618 * g10/keygen.c (ask_curve): Add secp256k1.
35620 2014-01-10 Werner Koch <wk@gnupg.org>
35622 autogen.sh: Add rule for 64 bit windows.
35623 + commit aedfa95bcc49156f2bc6ae5d0f385705d4fbdd32
35626 Turn autogen.sh into a generic script.
35627 + commit e7973d36d88178b4b0a977e3fcc0d62600777618
35628 * autogen.sh: Revamp.
35630 * Makefile.am (EXTRA_DIST): Add autogen.rc.
35632 Rename scripts/ to build-aux/
35633 + commit 99a48b2fcdf7c33fe553511c12f2ebb8eea5c634
35634 * scripts/: Rename to build-aux/
35635 * Makefile.am: Adjust accordingly.
35636 * configure.ac (AC_CONFIG_AUX_DIR): Change to build-aux.
35638 2014-01-09 Werner Koch <wk@gnupg.org>
35640 Improve the speedo make script.
35641 + commit a55ffb9da9a844bd2bd73a4a2ea65bf18b21c57f
35642 * scripts/gpg-w32-dev/README: Remove
35643 * scripts/gpg-w32-dev/GNUmakefile, scripts/gpg-w32-dev/speedo.mk:
35645 * scripts/speedo.mk: this.
35647 gpgsplit: Allow building without zlib support.
35648 + commit 00d5d2204cefb0f4b953e0c00448f16aab2d39c7
35649 * tools/gpgsplit.c [!HAVE_ZLIB]: Do not include zlib.h.
35650 (handle_zlib): Build only if HAVE_ZLIB is defined.
35651 (write_part): Support zlib and zip only if HAVE_ZLIB is defined.
35653 w32: Fix backslash quoting in registry name.
35654 + commit fa318406c9bdb60aee1e1b410e4c9e0b3eb1392e
35655 * configure.ac (GNUPG_REGISTRY_DIR): Double backslashes.
35658 + commit 477aabaf753f987987f7a2e1f999a499ea3bd103
35659 * configure.ac (HAVE_ZLIB): Define only if found.
35661 Add --enable-silent-rules stuff.
35662 + commit aba53e9f96d0c9b270edef0806976a56326249c4
35663 * configure.ac: Add AM_SILENT_RULES.
35665 2014-01-08 Werner Koch <wk@gnupg.org>
35667 w32: Add macro for the registry key.
35668 + commit 75ba215ebd8be7e14b26bb53ef3c7d41e4ce1e02
35669 * configure.ac (GNUPG_REGISTRY_DIR) [W32]: New ac-define.
35670 * common/homedir.c (default_homedir): Use it.
35671 * common/logging.c (do_logv): Use it.
35673 2013-12-11 Werner Koch <wk@gnupg.org>
35675 gpg: Change --show-session-key to print the session key earlier.
35676 + commit 101a54add351ff62793cbfbf3877787c4791f833
35677 * g10/cpr.c (write_status_strings): New.
35678 (write_status_text): Replace code by a call to write_status_strings.
35679 * g10/mainproc.c (proc_encrypted): Remove show_session_key code.
35680 * g10/decrypt-data.c (decrypt_data): Add new show_session_key code.
35682 2013-12-05 Werner Koch <wk@gnupg.org>
35684 gpg: Change OID of Ed25519 and add Brainpool oids.
35685 + commit 59207a86e5f40c77fed296b642bf76692e8eef65
35686 * common/openpgp-oid.c (openpgp_curve_to_oid): Change OID for
35687 Ed25519. Add brainpool OIDs.
35688 (openpgp_oid_to_curve): Ditto.
35690 2013-11-29 Werner Koch <wk@gnupg.org>
35692 common: Add put_membuf_printf.
35693 + commit 159d42ee6ab21d97f40ee129445f37209b875739
35694 * common/membuf.c (put_membuf_printf): New.
35696 2013-11-27 Werner Koch <wk@gnupg.org>
35698 gpg: Change armor Version header to emit only the major version.
35699 + commit e951782e937ce290be0d89d83e84b3daea997587
35700 * g10/options.h (opt): Rename field no_version to emit_version.
35701 * g10/gpg.c (main): Init opt.emit_vesion to 1. Change --emit-version
35702 to bump up opt.emit_version.
35703 * g10/armor.c (armor_filter): Implement different --emit-version
35706 2013-11-18 Werner Koch <wk@gnupg.org>
35708 Make use of the *_NAME etc macros.
35709 + commit cc9a0b69b698ba436eaf777e5020532845b56236
35710 Replace hardwired strings at many places with new macros from config.h
35711 and use the new strusage macro replacement feature.
35713 * common/asshelp.c (lock_spawning) [W32]: Change the names of the spawn
35715 * agent/command.c (cmd_import_key): Use asprintf to create the prompt.
35717 Add strusage macro replacement feature.
35718 + commit 798daaa1ddf73f64cf840fbdc1f4c5b9c4b4ec13
35719 * common/argparse.c (writechar): New.
35720 (writestrings): Add macro replacement feature.
35721 (show_help): Remove specialized @EMAIL@ replacement.
35722 * configure.ac (GNUPG_NAME, GPG_NAME, GPGSM_NAME): Define.
35723 (GPG_AGENT_NAME, DIRMNGR_NAME, G13_NAME, GPGCONF_NAME): Define.
35724 (GPGTAR_NAME, GPG_AGENT_INFO_NAME, GPG_AGENT_SOCK_NAME): Define.
35725 (GPG_AGENT_SSH_SOCK_NAME, DIRMNGR_INFO_NAME): Define.
35726 (DIRMNGR_SOCK_NAME): Define.
35728 2013-11-15 Werner Koch <wk@gnupg.org>
35730 kbx: Implement update operation for OpenPGP keyblocks.
35731 + commit 5499942571a88a1223a7318992605c6d29858866
35732 * kbx/keybox-update.c (keybox_update_keyblock): Implement.
35733 * kbx/keybox-search.c (get_blob_flags): Move to ...
35734 * kbx/keybox-defs.h (blob_get_type): here.
35735 * kbx/keybox-file.c (_keybox_read_blob2): Fix calling without R_BLOB.
35736 * g10/keydb.c (build_keyblock_image): Allow calling without
35738 (keydb_update_keyblock): Implement for keybox.
35740 * kbx/keybox-dump.c (_keybox_dump_blob): Fix printing of the unhashed
35741 size. Print "does not expire" also on 64 bit platforms.
35743 gpg: Rework ECC support and add experimental support for Ed25519.
35744 + commit 402aa0f94854bb00475c934be5ca6043a4632126
35745 * agent/findkey.c (key_parms_from_sexp): Add algo name "ecc".
35746 (agent_is_dsa_key): Ditto.
35747 (agent_is_eddsa_key): New. Not finished, though.
35748 * agent/pksign.c (do_encode_eddsa): New.
35749 (agent_pksign_do): Use gcry_log_debug functions.
35750 * agent/protect.c (agent_protect): Parse a flags parameter.
35751 * g10/keygen.c (gpg_curve_to_oid): Move to ...
35752 * common/openpgp-oid.c (openpgp_curve_to_oid): here and rename.
35753 (oid_ed25519): New.
35754 (openpgp_oid_is_ed25519): New.
35755 (openpgp_oid_to_curve): New.
35756 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): New.
35757 * g10/build-packet.c (gpg_mpi_write): Write the length header also for
35759 (gpg_mpi_write_nohdr): New.
35760 (do_key): Use gpg_mpi_write_nohdr depending on algorithm.
35761 (do_pubkey_enc): Ditto.
35762 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Use
35763 gpg_mpi_write_nohdr.
35764 * g10/export.c (transfer_format_to_openpgp):
35765 * g10/keygen.c (ecckey_from_sexp): Return the error.
35766 (gen_ecc): Repalce arg NBITS by CURVE.
35767 (read_parameter_file): Add keywords "Key-Curve" and "Subkey-Curve".
35769 (generate_keypair, generate_subkeypair): Use ask_curve.
35770 (do_generate_keypair): Also pass curve name.
35771 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Print
35773 * g10/parse-packet.c (mpi_read): Remove workaround for
35775 (parse_key): Fix ECC case. Print the curve name.
35776 * g10/pkglue.c (mpi_from_sexp): Rename to get_mpi_from_sexp.
35777 (pk_verify, pk_check_secret_key): Add special case for Ed25519.
35778 * g10/seskey.c (encode_md_value): Ditto.
35779 * g10/sign.c (do_sign, hash_for, sign_file): Ditto.
35781 kbx: Fix possible segv in kbxdump.
35782 + commit 9ae48b173c93f4747a9826beb1fbd023c4362c22
35783 * kbx/keybox-dump.c (_keybox_dump_blob): Check length before get32.
35785 Require Libgcrypt 1.6.
35786 + commit b27161cd0c76ae6e2381f60c3a502cde3a2aaa21
35787 * agent/pksign.c (do_encode_dsa): Remove Libgcrypt version check
35789 2013-11-13 NIIBE Yutaka <gniibe@fsij.org>
35791 scd: more pinpad input fix for PC/SC.
35792 + commit abd922e79b2ff63a5a763a30d4a06a91f93d0b12
35793 * scd/apdu.c (check_pcsc_pinpad): Set default values here.
35794 (pcsc_pinpad_verify, pcsc_pinpad_modify): Remove setting default
35795 values, as it's too late.
35797 2013-11-11 NIIBE Yutaka <gniibe@fsij.org>
35799 scd: more pinpad fix.
35800 + commit 037dea9dd5eac7a74df0e12cb437e71fb0732afa
35801 * scd/apdu.c (check_pcsc_pinpad): Set ->minlen and ->maxlen only when
35802 those are specified.
35803 (pcsc_pinpad_modify): Remove old check code.
35805 2013-10-29 NIIBE Yutaka <gniibe@fsij.org>
35807 scd: pinpad fix for PC/SC on Windows.
35808 + commit 32989ad2b152d18198d718bc2c7232ce3e79c72f
35809 * scd/apdu.c (SCARD_CTL_CODE): Fix for Windows.
35811 2013-10-28 Werner Koch <wk@gnupg.org>
35813 doc: Change yat2m to allow arbitrary condition names.
35814 + commit a15c35f37ed2b58805adc213029998aa3e52f038
35815 * doc/yat2m.c (MAX_CONDITION_NESTING): New.
35816 (gpgone_defined): Remove.
35817 (condition_s, condition_stack, condition_stack_idx): New.
35818 (cond_is_active, cond_in_verbatim): New.
35819 (add_predefined_macro, set_macro, macro_set_p): New.
35820 (evaluate_conditions, push_condition, pop_condition): New.
35821 (parse_file): Rewrite to use the condition stack.
35822 (top_parse_file): Set prefined macros.
35823 (main): Change -D to define arbitrary macros.
35825 2013-10-25 NIIBE Yutaka <gniibe@fsij.org>
35827 scd: fix pinpad input on Windows.
35828 + commit de7e15c6b80164a351586e9087aad86420c8b89e
35829 * scd/apdu.c (open_pcsc_reader_direct): Don't call
35830 pcsc_vendor_specific_init here, but...
35831 (connect_pcsc_card): Call it here.
35833 2013-10-23 NIIBE Yutaka <gniibe@fsij.org>
35835 po: Update Japanese translation.
35836 + commit b66158cac7347e4c56c79ab7b5416ae5b3f4a0a2
35839 2013-10-16 NIIBE Yutaka <gniibe@fsij.org>
35841 scd: add pinpad readers information for PC/SC service.
35842 + commit 5efcc2b8fee8de31d255d09037f0a1e6209eab32
35843 * scd/apdu.c (pcsc_vendor_specific_init): Add information for Cherry
35844 ST-2xxx, Reiner cyberJack, Vasco DIGIPASS, FSIJ Gnuk Token, and KAAN
35847 2013-10-15 NIIBE Yutaka <gniibe@fsij.org>
35849 scd: remove pin length check.
35850 + commit e0ab665a792ada6470cb8885b8427acc3c960998
35851 * scd/apdu.c (pcsc_pinpad_verify): Remove old check code for pin
35854 2013-10-04 Werner Koch <wk@gnupg.org>
35856 gpg: Limit the nesting level of I/O filters.
35857 + commit e6175055fbca958b7fa43aaf84359574ca7f3ebb
35858 * common/iobuf.c (MAX_NESTING_FILTER): New.
35859 (iobuf_push_filter2): Limit the nesting level.
35861 * g10/mainproc.c (mainproc_context): New field ANY. Change HAVE_DATA
35862 and ANY_SIG_SIGN to bit fields of ANY. Add bit field
35864 (proc_compressed): Avoid printing multiple Bad Data messages.
35865 (check_nesting): Return GPG_ERR_BAD_DATA instead of UNEXPECTED_DATA.
35867 2013-10-02 Werner Koch <wk@gnupg.org>
35869 gpg: Fix bug with deeply nested compressed packets.
35870 + commit 0899f6d4be0406c9efbf9c3f342825804f359b5a
35871 * g10/mainproc.c (MAX_NESTING_DEPTH): New.
35872 (proc_compressed): Return an error code.
35873 (check_nesting): New.
35874 (do_proc_packets): Check packet nesting depth. Handle errors from
35877 2013-09-08 Werner Koch <wk@gnupg.org>
35879 Switch to deterministic DSA.
35880 + commit 6466db10fb22a4f24df4edad9c5cb33ec67321bd
35881 * agent/pksign.c (rfc6979_hash_algo_string): New.
35882 (do_encode_dsa) [Libgcrypt >= 1.6]: Make use of RFC-6979.
35884 2013-08-30 Werner Koch <wk@gnupg.org>
35886 scd: Suppress gcc warning about possible uninitialized use.
35887 + commit 244587ea41d4c75cb5570356f09a6705864a7e8d
35888 * scd/app-nks.c (parse_pwidstr): Always init r_pwid.
35890 gpg: Use 2048 as the default keysize in batch mode.
35891 + commit 4c3b35b067a4e7002bb6473b879b551014bb7857
35892 * g10/keygen.c (gen_elg, gen_dsa, gen_rsa): Set default keysize to
35895 gpgtar: Fix building for systems with a separate libintl.
35896 + commit 12990efb45ee7c425167aad19fe759d5609c5182
35897 * tools/Makefile.am (gpgtar_LDADD): Add LIBINTL and LIBICONV.
35899 scd: Use vendor and product id macros also in apdu.c.
35900 + commit fc31d730d8506b069de1d3529ed26660856bf07f
35901 * scd/ccid-driver.c: Move vendor and product ids to ...
35902 * scd/ccid-driver.h: here.
35903 * scd/apdu.c (CCID_DRIVER_INCLUDE_USB_IDS): Define to include ids.
35904 (pcsc_vendor_specific_init): Use vendor and product id macros.
35906 2013-08-30 NIIBE Yutaka <gniibe@fsij.org>
35908 scd: PC/SC pinpad input improvement.
35909 + commit 95a3bffeaf07e8bf9487d4b165c336d166236fc1
35910 * scd/apdu.c (struct reader_table_s): Add members: PINMIN, PINMAX, and
35911 PINPAD_VERLEN_SUPPORTED.
35912 (CM_IOCTL_VENDOR_IFD_EXCHANGE, FEATURE_GET_TLV_PROPERTIES,
35913 PCSCv2_PART10_PROPERTY_*): New.
35914 (new_reader_slot): Initialize pinpad_varlen_supported, pinmin, pinmax.
35915 (pcsc_vendor_specific_init): New.
35916 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Call
35917 pcsc_vendor_specific_init.
35918 (check_pcsc_pinpad): Not detect here but use the result of
35919 pcsc_vendor_specific_init.
35920 (pcsc_pinpad_verify, pcsc_pinpad_modify): Specify bNumberMessage.
35922 2013-08-29 Jonas Borgström <jonas@borgstrom.se>
35924 scd: add support for RSA_CRT and RSA_CRT_N key import.
35925 + commit cc67918c088e90c1d9a507af5f6288e8faa93d87
35926 * scd/app-openpgp.c (do_writekey): Added RSA_CRT and RSA_CRT_N support.
35928 2013-08-29 Werner Koch <wk@gnupg.org>
35930 kbx: Add a few macros for easier readability.
35931 + commit 3adfaa9beee4502479b5673c7dfd386680a920c5
35932 * kbx/keybox-update.c (FILECOPY_INSERT)
35933 (FILECOPY_DELETE, FILECOPY_UPDATE): New macros. Replace numbers by
35936 2013-08-28 Werner Koch <wk@gnupg.org>
35938 Fix commit 04e2c83f.
35939 + commit fdbf76eee6a4e81b040d423926b71af7b491fb4a
35940 * agent/command-ssh.c (stream_read_string): Do not assign to a NULL
35943 gpg: Make decryption with the OpenPGP card work.
35944 + commit 780ba3233618393835970bac4cf8aab713f4d7fa
35945 * scd/app-common.h (APP_DECIPHER_INFO_NOPAD): New.
35946 * scd/app-openpgp.c (do_decipher): Add arg R_INFO.
35947 * scd/app-nks.c (do_decipher): Add arg R_INFO as a dummy.
35948 * scd/app.c (app_decipher): Add arg R_INFO.
35949 * scd/command.c (cmd_pkdecrypt): Print status line "PADDING".
35950 * agent/call-scd.c (padding_info_cb): New.
35951 (agent_card_pkdecrypt): Add arg R_PADDING.
35952 * agent/divert-scd.c (divert_pkdecrypt): Ditto.
35953 * agent/pkdecrypt.c (agent_pkdecrypt): Ditto.
35954 * agent/command.c (cmd_pkdecrypt): Print status line "PADDING".
35955 * g10/call-agent.c (padding_info_cb): New.
35956 (agent_pkdecrypt): Add arg R_PADDING.
35957 * g10/pubkey-enc.c (get_it): Use padding info.
35959 agent: Fix two compiler warnings.
35960 + commit 04e2c83f189cc56342e1be784bdc63761ccdb5bb
35961 * agent/command.c (cmd_preset_passphrase, pinentry_loopback): Use %zu
35963 * scd/ccid-driver.c (ccid_get_atr): Ditto.
35964 * agent/command-ssh.c (stream_read_string): Init arg STRING_SIZE to
35965 avoid maybe_unitialized warning.
35967 2013-08-27 NIIBE Yutaka <gniibe@fsij.org>
35969 scd: fix parsing login-data DO.
35970 + commit b6d54f1196d5f110fd94dfd661e74dbc60ca9811
35971 * scd/app-openpgp.c (parse_login_data): Release RELPTR. Fix parsing.
35973 scd: fix Vega for Alpha reader.
35974 + commit 54cbab29c700db2df74e808f16db49170e6c42f1
35975 * scd/ccid-driver.c (ccid_vendor_specific_init): Fix error handling
35976 and size of command.
35978 2013-08-21 Werner Koch <wk@gnupg.org>
35980 scd: Make SPRx32 pinpad work with PC/SC on Windows.
35981 + commit 5c5e52df4b92e23045ac87abac09357de58920d4
35982 * scd/apdu.c (CM_IOCTL_GET_FEATURE_REQUEST): Use SCARD_CTL_CODE.
35983 (SCARD_CTL_CODE): Define if not defined.
35984 (reader_table_s): Add is_spr532.
35985 (new_reader_slot): Clear it.
35986 (check_pcsc_pinpad): Set it.
35987 (pcsc_pinpad_verify, pcsc_pinpad_modify): Add fix for SPR532.
35989 scd: Improve --enable-pinpad-varlen.
35990 + commit 7bde2bf3b0ddb5d3515a44879e1a7ddb581a5c0b
35991 * tools/gpgconf-comp.c (gc_options_scdaemon): Add
35992 enable-pinpad-varlen.
35993 * scd/apdu.c (check_pcsc_pinpad): Detect SPRx32 reader.
35995 2013-08-08 Werner Koch <wk@gnupg.org>
35997 agent: Extend cmd KEYINFO to return data from sshcontrol.
35998 + commit 50c98c7ed6b542857ee2f902eca36cda37407737
35999 * agent/command-ssh.c (struct control_file_s): Rename to
36000 ssh_control_file_s.
36001 (ssh_open_control_file, ssh_close_control_file)
36002 (ssh_read_control_file, ssh_search_control_file): New.
36003 (control_file_t): Rename and move to ...
36004 * agent/agent.h (ssh_control_file_t): here.
36005 * agent/command.c (do_one_keyinfo): Add args is_ssh, ttl, disabled,
36006 and confirm. Rename unknown keytype indicator from '-' to 'X'. Extend
36008 (cmd_keyinfo): Add options --ssh-list and --with-ssh.
36010 2013-08-02 Werner Koch <wk@gnupg.org>
36012 gpg: No need to create a trustdb when encrypting with --always-trust.
36013 + commit 498b9a95dc65c43240835d64cc92d8fb43014d53
36014 * g10/gpg.c (main): Special case setup_trustdb for --encrypt.
36016 2013-08-01 Werner Koch <wk@gnupg.org>
36018 w32: Fix recent patch 9ff72e4.
36019 + commit ca6fe88c0068f8d45ef39df0fc7b161998a91fe9
36020 * common/homedir.c (check_portable_app): Fix the name of the control
36023 agent: Include missing prototype.
36024 + commit ef6a6d973c2bcc54006c04dc41f978ff01005c97
36025 * agent/protect.c: Include cvt-openpgp.h.
36027 w32: Add code to support a portable use of GnuPG.
36028 + commit 9ff72e4e7e4f56c241a525479a94ed4c95efc23f
36029 * common/homedir.c (w32_bin_is_bin, w32_portable_app) [W32]: New.
36030 (check_portable_app) [W32]: New.
36031 (standard_homedir, default_homedir) [W32]: Support the portable flag.
36032 (w32_rootdir, w32_commondir) [W32]: Ditto.
36033 (gnupg_bindir, gnupg_cachedir, dirmngr_socket_name) [W32]: Ditto.
36034 * common/logging.h (JNLIB_LOG_NO_REGISTRY): New.
36035 * common/logging.c (no_registry): New variable.
36036 (log_set_prefix, log_get_prefix): Set/get that variable.
36037 (do_logv): Do not check the registry if that variable is set.
36039 Silence compiler warning about deprecated Libgcrypt symbols.
36040 + commit db4651734fe91935b17876dc9194329b00066eff
36041 * configure.ac (AH_BOTTOM): Define GCRYPT_NO_DEPRECATED.
36043 dirmngr: Define missing LDAP constant.
36044 + commit ef2e2e54020c3475bf2129c3ec8360c7bad3a6c9
36045 * dirmngr/ldap-url.c (LDAP_SCOPE_DEFAULT): Define if missing.
36047 scd: Fix a syntax error for Apple and Windows.
36048 + commit 25b0357bf0a4861a751cfbc3e0335ae05c8b2b1b
36049 * scd/apdu.c (pcsc_dword_t) [W32]: Fix syntax error.
36051 common: Fix a build error when using adns.
36052 + commit ffa7472db551f12f66b9789c31fabb5fc80cc13a
36053 * common/dns-cert.c (get_dns_cert) [USE_ADNS]: Fix synatx error.
36055 2013-07-31 Werner Koch <wk@gnupg.org>
36057 common: Comment out unused code.
36058 + commit f101f34fffee4a02e7a5f62b59667e45e50e8325
36059 * common/w32-reg.c (write_w32_registry_string): Comment out.
36061 dirmngr: Remove unused file.
36062 + commit 2830fcb83c99289a49da0e111766daf2d9a1fa3b
36063 * dirmngr/get-path.c: Remove.
36065 2013-06-27 Werner Koch <wk@gnupg.org>
36067 sm: Remove cruft from source files.
36068 + commit f254497e09fa4e0e24e63d14f7316fc31c938844
36069 * sm/keydb.c, sm/keydb.h: Remove disabled code parts.
36071 Prepare for newer automake versions.
36072 + commit 043e2728c813299fafcf62cd125ecf872b26179e
36073 * configure.ac (AM_INIT_AUTOMAKE): Replace 2 argument form by the
36074 option form. Add options from the top Makefile.
36075 (AM_CONFIG_HEADER): Rename to AC_CONFIG_HEADER.
36076 * Makefile.am (AUTOMAKE_OPTIONS): Remove.
36078 * kbx/Makefile.am: Remove INCLUDES. Include cmacros.am. FActor some
36079 AM_CPPFLAGS options to AM_CFLAGS.
36081 2013-06-26 Werner Koch <wk@gnupg.org>
36083 Fix Makefile regression.
36084 + commit 136f190a2f20c6ec4d5c3ca3ac7f0440c14e4dc2
36085 * agent/Makefile.am (gpg_agent_DEPENDENCIES): Remove cruft from wrong
36086 resolve conflict 2013-04-25.
36087 (gpg_agent_DEPENDENCIES): Remove obsolete gpg_agent_res_deps
36088 (gpg_agent_LDFLAGS): Remove obsolete gpg_agent_res_ldflags.
36090 2013-05-22 Werner Koch <wk@gnupg.org>
36092 Implement unattended OpenPGP secret key import.
36093 + commit 7777e68d0482c942f527e91c04adbcfb40bc8bef
36094 * agent/command.c (cmd_import_key): Add option --unattended.
36095 * agent/cvt-openpgp.c (convert_transfer_key): New.
36096 (do_unprotect): Factor some code out to ...
36097 (prepare_unprotect): new function.
36098 (convert_from_openpgp): Factor all code out to ...
36099 (convert_from_openpgp_main): this. Add arg 'passphrase'. Implement
36100 openpgp-native protection modes.
36101 (convert_from_openpgp_native): New.
36102 * agent/t-protect.c (convert_from_openpgp_native): New dummy fucntion
36103 * agent/protect-tool.c (convert_from_openpgp_native): Ditto.
36104 * agent/protect.c (agent_unprotect): Add arg CTRL. Adjust all
36105 callers. Support openpgp-native protection.
36106 * g10/call-agent.c (agent_import_key): Add arg 'unattended'.
36107 * g10/import.c (transfer_secret_keys): Use unattended in batch mode.
36109 New debug functions log_printcanon and log_printsexp.
36110 + commit cb6a64bb78296c8e9f72df0c482ff847e89a1541
36111 * common/sexputil.c (sexp_to_string, canon_sexp_to_string): New.
36112 (log_printcanon, log_printsexp): New.
36114 agent: Fix length detection of canonical formatted openpgp keys.
36115 + commit 0f0e0559f9b160824f10dc17b389268cdb53aea4
36116 * agent/command.c (cmd_import_key): Pass 0 instead of KEYLEN to
36117 gcry_sexp_canon_len.
36119 agent: New option --disable-check-own-socket.
36120 + commit f2d8a14e1b12534eba69d595a62c78f92331e11b
36121 * agent/gpg-agent.c (oDisableCheckOwnSocket): New.
36122 (disable_check_own_socket): New.
36123 (parse_rereadable_options): Set new option.
36124 (check_own_socket): Implement new option.
36126 2013-05-07 Werner Koch <wk@gnupg.org>
36128 w32: Add icons and version information.
36129 + commit 88e24341e57c96e31a25e92e09d67989e64cc1c1
36130 * common/gnupg.ico: New. Take from artwork/gnupg-favicon-1.ico.
36131 * agent/gpg-agent-w32info.rc: New.
36132 * g10/gpg-w32info.rc: New.
36133 * scd/scdaemon-w32info.rc: New.
36134 * sm/gpgsm-w32info.rc: New.
36135 * tools/gpg-connect-agent-w32info.rc: New.
36136 * common/w32info-rc.h.in: New.
36137 * configure.ac (BUILD_REVISION, BUILD_FILEVERSION, BUILD_TIMESTAMP)
36138 (BUILD_HOSTNAME): New.
36139 (AC_CONFIG_FILES): Add w32info-rc.h.
36140 * am/cmacros.am (.rc.o): New rule.
36141 * agent/Makefile.am, common/Makefile.am, g10/Makefile.am
36142 * scd/Makefile.am, sm/Makefile.am, tools/Makefile.am: Add stuff to
36143 build resource files.
36145 2013-05-07 Ian Abbott <abbotti@mev.co.uk>
36147 doc: fix some Texinfo warnings.
36148 + commit 2c3fc4719b92d9e3ac32efd134a930e1cc126032
36149 * doc/gpg.texi: Fix syntax and add missing menu entries.
36150 * doc/gpgsm.texi: Fix subsectioning.
36152 2013-04-22 Werner Koch <wk@gnupg.org>
36154 Fix potential heap corruption in "gpg -v --version".
36155 + commit 151b78cc26d728e9eb42620e0caf8c6f4bd7f839
36156 * g10/gpg.c (build_list): Rewrite to cope with buffer overflow in
36159 2013-04-19 Werner Koch <wk@gnupg.org>
36161 gpgsm: Remove non-implemented commands from --help.
36162 + commit d6798d261cbe6519ef5b3ebb474e2ad348442c0c
36163 * sm/gpgsm.c (opts): Removed commands --clearsign, --symmetric,
36164 --send-keys, and --recv-keys.
36166 2013-04-19 Daiki Ueno <ueno@gnu.org>
36168 Make sure to call fflush if estream_t is backed with stdio.
36169 + commit e498180d5647d3427a7d7e6c82a9f09cf1ba439d
36170 * common/estream.c (es_func_fp_write): Call fflush after fwrite.
36172 2013-04-19 Werner Koch <wk@gnupg.org>
36174 doc: Formatting fixes.
36175 + commit ff6115227a1ced14e2fb3d160a12181b9dfbc502
36176 * doc/Makefile.am (.fig.jpg): Correct to use -L jpeg.
36177 * doc/gpg.texi: Fix cross reference for --options.
36178 * doc/gpgsm.texi: Likewise.
36179 * doc/gpl.texi: Fix enumerate and re-indent examples.
36181 2013-04-01 NIIBE Yutaka <gniibe@fsij.org>
36183 scd: move SCDaemon to libexecdir.
36184 + commit 021767d8aa11aac8ac87dc3a31969ee6cfa65966
36185 * common/homedir.c (gnupg_module_name): It's now libexecdir.
36186 * scd/Makefile.am (libexec_PROGRAMS): Add scdaemon
36187 (bin_PROGRAMS): Remove scdaemon.
36189 2013-03-29 Werner Koch <wk@gnupg.org>
36191 copyright assignments are not anymore required.
36192 + commit 07227279c44e3af0939f90025a0d22b782d0f185
36195 2013-03-26 NIIBE Yutaka <gniibe@fsij.org>
36197 scd: PC/SC status fix.
36198 + commit 64b1a2cf6f18348544a2d2cd4d49fd27bf01c150
36199 * scd/apdu.c (pcsc_get_status_direct): Check PCSC_STATE_MUTE only when
36200 PCSC_STATE_PRESENT.
36202 * scd/pcsc-wrapper.c (handle_status): Ditto.
36204 scd: PC/SC cleanup (more).
36205 + commit b9aceaa442914beb4f5359283053b43ba5a46b4c
36206 * scd/apdu.c (control_pcsc_direct, control_pcsc_wrapped, control_pcsc)
36207 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify): Use
36210 scd: call update_card_removed only when detecting removal.
36211 + commit 1062893832bb15eaac853f52e1cb673e5e03790a
36212 * scd/command.c (update_reader_status_file): Add condition
36215 2013-03-22 NIIBE Yutaka <gniibe@fsij.org>
36217 scd: PC/SC cleanup.
36218 + commit ee95c23fcdc6673db0fc7287ab2197915d9b55b3
36219 * scd/apdu.c (pcsc_dword_t): New. It was named as DWORD (double-word)
36220 when a word was 16-bit.
36221 (struct reader_table_s): Fixes for types.
36222 (struct pcsc_readerstate_s) [__APPLE__]: Enable #pragma pack(1).
36223 Throughout: Fixes for types.
36225 * scd/pcsc-wrapper.c: Likewise.
36227 2013-03-21 NIIBE Yutaka <gniibe@fsij.org>
36230 + commit a75a08d6e30e93e1793aa78a15d473a3ea7623cb
36231 * po/LINGUAS: Enable ja.po.
36233 scd: change default value of pinpad maxlen.
36234 + commit ca66f5c779af74d0eb7221afd7a9707201931e50
36235 * scd/apdu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Default value
36236 of maxlen for pinpad input is now 15 (was: 25).
36238 * scd/ccid-driver.c (ccid_transceive_secure): Likewise.
36240 2013-03-20 Werner Koch <wk@gnupg.org>
36242 Add code to allow for late memory cleanup.
36243 + commit 2739834206f23833161898a73427b8a9c6d5d26d
36244 * common/init.c (mem_cleanup_item_t): New.
36245 (run_mem_cleanup): New.
36246 (_init_common_subsystems): Add an atexit for it.
36247 (register_mem_cleanup_func): New.
36249 * g10/kbnode.c (cleanup_registered): New.
36250 (release_unused_nodes): New.
36251 (alloc_node): Call register_mem_cleanup_func.
36253 kbx: Remove unused macro.
36254 + commit 44159b681f8f09000fabfc3ee294d5821578d3a6
36255 * kbx/keybox.h (KEYBOX_WITH_OPENPGP): Remove unused macro.
36257 2013-03-19 Werner Koch <wk@gnupg.org>
36259 gpg: Print indicator for unknown key capability.
36260 + commit c4dbd1b2de8ae3847a040444e86500848868bcf4
36261 * g10/keylist.c (print_capabilities): Print '?' for unknown usage.
36263 2013-03-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
36265 gpg: Allow setting of all zero key flags.
36266 + commit b693ec02c467696bf9d7324dd081e279f9965151
36267 * g10/keygen.c (do_add_key_flags): Do not check for empty key flags.
36269 2013-03-19 Werner Koch <wk@gnupg.org>
36271 gpg: Distinguish between missing and cleared key flags.
36272 + commit 4bde12206c5bf199dc6e12a74af8da4558ba41bf
36273 * include/cipher.h (PUBKEY_USAGE_NONE): New.
36274 * g10/getkey.c (parse_key_usage): Set new flag.
36276 2013-03-15 NIIBE Yutaka <gniibe@fsij.org>
36278 scd: ccid-driver supporting larger APDU.
36279 + commit 76dc5c08dc2686eef32e1bd221c60fe91201246f
36280 * scd/ccid-driver.c (ccid_transceive_apdu_level): Support larger
36283 scd: fix missing close paren.
36284 + commit 006782068e4d2a9413770400494421a2e9726ee7
36285 * scd/app-openpgp.c (du_auth): Fix.
36287 2013-03-09 NIIBE Yutaka <gniibe@fsij.org>
36289 scd: support ECDSA signing.
36290 + commit 73ad742deacfe2bf7d6efc7cc30f9ced2d83521a
36291 * scd/app-openpgp.c (do_sign): Only prepend message digest block
36292 for RSA or do_auth.
36293 (do_auth): Remove message digest block for ECDSA.
36295 2013-03-08 NIIBE Yutaka <gniibe@fsij.org>
36297 scd: support ECDSA public key.
36298 + commit 010bc7f4f06d8affb98950e1adc76c68bfcc9abb
36299 * scd/app-openpgp.c (key_type_t): New.
36300 (CURVE_NIST_P256, CURVE_NIST_P384, CURVE_NIST_P521): New.
36301 (struct app_local_s): Change keyattr to have key_type and union.
36302 (get_ecc_key_parameters, get_curve_name): New.
36303 (send_key_attr, get_public_key): Support ECDSA.
36304 (build_privkey_template, do_writekey, do_genkey): Follow the change
36305 of the member KEY_ATTR.
36306 (parse_historical): New.
36307 (parse_algorithm_attribute): Support ECDSA.
36309 2013-03-05 Werner Koch <wk@gnupg.org>
36311 Require libgpg-error 1.11.
36312 + commit 5bac5040dc93343e1e89916b263390b0e52040bf
36313 * configure.ac: Require libgpg-error 1.11.
36314 * common/util.h (GPG_ERR_NO_KEYSERVER, GPG_ERR_INV_CURVE)
36315 (GPG_ERR_UNKNOWN_CURVE): Remove fallback definitions.
36317 2013-02-28 NIIBE Yutaka <gniibe@fsij.org>
36319 agent: pksign result conversion to sexp to upper layer.
36320 + commit ef1983d58b913306e9bf02a7189e530123839c59
36321 * agent/agent.h (divert_pksign): Add R_SIGLEN argument.
36322 * agent/divert-scd.c (divert_pksign): Return length at R_SIGLEN.
36323 * agent/call-scd.c (agent_card_pksign): Move composition of
36325 * agent/pksign.c (agent_pksign_do): ... here.
36327 2013-02-22 Werner Koch <wk@gnupg.org>
36329 Use has_leading_keyword in the assuan callbacks.
36330 + commit 585d5c62eece23911a768d97d11f159be138b13d
36331 * agent/call-pinentry.c (inq_quality): Use has_leading_keyword.
36332 * agent/call-scd.c (inq_needpin, inq_writekey_parms): Ditto.
36333 * g10/call-agent.c (inq_writecert_parms, keyinfo_status_cb): Ditto.
36334 (inq_genkey_parms, inq_ciphertext_cb, inq_import_key_parms): Ditto.
36335 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
36336 * sm/call-agent.c (default_inq_cb, inq_ciphertext_cb): Ditto.
36337 (inq_genkey_parms, istrusted_status_cb, learn_status_cb): Ditto.
36338 (keyinfo_status_cb, inq_import_key_parms): Ditto.
36339 * sm/call-dirmngr.c (inq_certificate, isvalid_status_cb): Ditto.
36340 (lookup_status_cb, run_command_inq_cb, run_command_status_cb): Ditto.
36342 Remove some unused variables.
36343 + commit c6b8f05517228c6aeab28d2bf5da7724c059bb1a
36344 * tools/gpgconf-comp.c (gc_process_gpgconf_conf): Remove unused
36346 * agent/command-ssh.c (ssh_signature_encoder_ecdsa): Mark unused arg.
36347 * g13/g13.c (main): Comment variable of yet unimplemented options.
36349 gpg: Fix a memory leak in batch key generation.
36350 + commit 161674118d568025896026ede5e03d26bdfdfa68
36351 * g10/keygen.c (append_to_parameter): New.
36352 (proc_parameter_file): Use new func to extend the parameter list.
36354 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
36355 gcry_kdf_derive failed.
36356 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
36357 passphrase_to_dek failed.
36359 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
36360 + commit baee681d2406530c45fd6d4bde77193ba23ac263
36361 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
36363 common: Add func has_leading_keyword.
36364 + commit 2838385e76c8c7108bc949d5a1d1c947051bd5be
36365 * common/stringhelp.c (has_leading_keyword): New.
36367 Remove build hacks for FreeBSD.
36368 + commit 21f5a9ec27c0794141a835a5bb3c69495ee554a6
36369 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
36372 2013-02-22 NIIBE Yutaka <gniibe@fsij.org>
36374 agent: fix two bugs.
36375 + commit 3c3648e720b8014828573bd708c88ba4775014e3
36376 * agent/command.c (cmd_keytocard): Decrement KEYDATALEN.
36377 * agent/findkey.c (agent_public_key_from_file): Increment for ELEMS.
36379 gpg: fix keytocard and support ECC card for key attribute.
36380 + commit 7d376ffa321d4af6e62a2bc64ef2b8574b122b1a
36381 * g10/call-agent.c (agent_keytocard): Supply PARM arg.
36382 * g10/card-util.c (card_status): Support ECC.
36383 (card_store_subkey): Don't assume RSA.
36385 2013-02-21 Werner Koch <wk@gnupg.org>
36387 gpg: Fix a memory leak in batch key generation.
36388 + commit 273bb38cd7b517460cb3de67662e96e910104675
36389 * g10/keygen.c (append_to_parameter): New.
36390 (proc_parameter_file): Use new func to extend the parameter list.
36392 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
36393 gcry_kdf_derive failed.
36394 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
36395 passphrase_to_dek failed.
36397 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
36398 + commit 18a261b65fd77a9e434b13483ceaaaf2176f1197
36399 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
36401 common: Add func has_leading_keyword.
36402 + commit 4af0c62b15c51056dc293c8e3b907e7c41fbf08c
36403 * common/stringhelp.c (has_leading_keyword): New.
36405 2013-02-20 Werner Koch <wk@gnupg.org>
36407 Remove build hacks for FreeBSD.
36408 + commit 8e5766c38f3ac376fb8e7c7f2b0f65de23d84cbe
36409 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
36412 2013-02-12 NIIBE Yutaka <gniibe@fsij.org>
36414 gpg: Implement card_store_subkey again.
36415 + commit b90506ea220860c89128f002bd593d0462a08d73
36416 * g10/call-agent.h (agent_keytocard): New.
36417 * g10/call-agent.c (agent_keytocard): New.
36418 * g10/card-util.c (replace_existing_key_p): Returns 1 when replace.
36419 (card_generate_subkey): Check return value of replace_existing_key_p.
36420 (card_store_subkey): Implement again using agent_keytocard.
36422 agent: Add KEYTOCARD command.
36423 + commit 30f8a3c8736451d8c06ef72521a8da5eabf23016
36424 * agent/agent.h (divert_writekey, agent_card_writekey): New.
36425 * agent/call-scd.c (inq_writekey_parms, agent_card_writekey): New.
36426 * agent/command.c (cmd_keytocard, hlp_keytocard): New.
36427 (register_commands): Add cmd_keytocard.
36428 * agent/divert-scd.c (divert_writekey): New.
36430 Japanese: update po and doc.
36431 + commit 595ab0da666c43a1315a72a1346ee149998d8771
36432 * doc/help.ja.txt, po/ja.po: Updated.
36434 2013-02-08 NIIBE Yutaka <gniibe@fsij.org>
36436 scd: Rename 'keypad' to 'pinpad'.
36437 + commit 7253093addfd82a8dd25cd80e3ba820a85e3c9a7
36438 * NEWS: Mention scd changes.
36440 * agent/divert-scd.c (getpin_cb): Change message.
36442 * agent/call-scd.c (inq_needpin): Change the protocol to
36443 POPUPPINPADPROMPT and DISMISSPINPADPROMPT.
36444 * scd/command.c (pin_cb): Likewise.
36446 * scd/apdu.c (struct reader_table_s): Rename member functions.
36447 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify,
36448 check_ccid_pinpad, ccid_pinpad_operation, apdu_check_pinpad
36449 apdu_pinpad_verify, apdu_pinpad_modify): Rename.
36451 * scd/apdu.h (SW_HOST_NO_PINPAD, apdu_check_pinpad)
36452 (apdu_pinpad_verify, apdu_pinpad_modify): Rename.
36454 * scd/iso7816.h (iso7816_check_pinpad): Rename.
36456 * scd/iso7816.c (map_sw): Use SW_HOST_NO_PINPAD.
36457 (iso7816_check_pinpad): Rename.
36458 (iso7816_verify_kp, iso7816_change_reference_data_kp): Follow
36461 * scd/ccid-driver.h (CCID_DRIVER_ERR_NO_PINPAD): Rename.
36462 * scd/ccid-driver.c (ccid_transceive_secure): Use it.
36464 * scd/app-dinsig.c (verify_pin): Follow the change.
36465 * scd/app-nks.c (verify_pin): Follow the change.
36467 * scd/app-openpgp.c (check_pinpad_request): Rename.
36468 (parse_login_data, verify_a_chv, verify_chv3, do_change_pin): Follow
36471 * scd/scdaemon.c (oDisablePinpad, oEnablePinpadVarlen): Rename.
36473 * scd/scdaemon.h (opt): Rename to disable_pinpad,
36474 enable_pinpad_varlen.
36476 * tools/gpgconf-comp.c (gc_options_scdaemon): Rename to
36479 2013-02-07 Werner Koch <wk@gnupg.org>
36481 gpg: Add pinentry-mode feature.
36482 + commit 21feecd48f990b2569cb4b385dea3e57b9501525
36483 * g10/gpg.c: Include shareddefs.h.
36484 (main): Add option --pinentry-mode.
36485 * g10/options.h (struct opt): Add field pinentry_mode.
36486 * g10/passphrase.c: Include shareddefs.h.
36487 (have_static_passphrase): Take care of loopback pinentry_mode.
36488 (read_passphrase_from_fd): Ditto.
36489 (get_static_passphrase): New.
36490 (passphrase_to_dek_ext): Factor some code out to ...
36491 (emit_status_need_passphrase): new.
36492 * g10/call-agent.c (start_agent): Send the pinentry mode.
36493 (default_inq_cb): Take care of the PASSPHRASE inquiry. Return a
36495 (agent_pksign): Add args keyid, mainkeyid and pubkey_algo.
36496 (agent_pkdecrypt): Ditto.
36497 * g10/pubkey-enc.c (get_it): Pass new args.
36498 * g10/sign.c (do_sign): Pass new args.
36500 * g10/call-agent.c (struct default_inq_parm_s): New. Change all
36501 similar structs to reference this one. Change all users and inquire
36502 callback to use this struct, instead of NULL or some undefined but not
36503 used structs. This change will help to eventually get rid of global
36506 2013-02-06 Werner Koch <wk@gnupg.org>
36508 agent: Move a typedef to common and provide parse_pinentry_mode.
36509 + commit 8b2b8dfe5c4cd346bbea2c228e75737bbeeca4c4
36510 * common/agent-opt.c: New.
36511 * common/shareddefs.h: New.
36512 * common/Makefile.am: Add new files.
36513 * agent/agent.h: Include shareddefs.h.
36514 (pinentry_mode_t): Factor out to shareddefs.h.
36515 * agent/command.c (option_handler): Use parse_pinentry_mode.
36517 agent: Return a better error code if no passphrase was given.
36518 + commit 4483a4f0ea030046137ba04905eb5220c14a2161
36519 * agent/protect.c (hash_passphrase): Handle an empty passphrase.
36521 2013-02-05 NIIBE Yutaka <gniibe@fsij.org>
36523 scd: Fix check_keypad_request.
36524 + commit c27315fc6466cceb862c9e67755a8e044e9b7688
36525 * scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
36527 SCD: Add vendor specific initalization.
36528 + commit e791ac6683bfb90d5e40c0103324784bd58535c9
36529 * scd/ccid-driver.c (ccid_vendor_specific_init): New.
36530 (ccid_open_reader): Call ccid_vendor_specific_init.
36532 SCD: Support P=N format for login data.
36533 + commit 0407e642f796fb2780a77b7a1a86731d0de27e5d
36534 * scd/app-openpgp.c (parse_login_data): Support P=N format.
36536 SCD: Better interoperability.
36537 + commit bd5eded73a1268afdf81482f8408e5f640abf9c4
36538 * scd/apdu.c: Fill bTeoPrologue[2] field.
36540 SCD: Defaults to use pinpad if the reader has the capability.
36541 + commit a9ff97a10f7ae5a703ed1bccba294473ecc88d5d
36542 * scd/app-openpgp.c (struct app_local_s): Remove VARLEN.
36543 (parse_login_data): "P=0" means to disable pinpad.
36544 (check_keypad_request): Default is to use pinpad if available.
36546 SCD: handle keypad request on the card.
36547 + commit 334ba6efa5a05d8849fae213128a0505e7615e13
36548 * scd/app-openpgp.c: Add 2013.
36549 (struct app_local_s): Add keypad structure.
36550 (parse_login_data): Add parsing keypad request on the card.
36551 (check_keypad_request): New.
36552 (verify_a_chv, verify_chv3, do_change_pin): Call check_keypad_request
36553 to determine use of keypad.
36555 SCD: Minor fix of ccid-driver.
36556 + commit d5bf83a24cf3871b7d8cfe61049f70e1e206d09a
36557 * scd/ccid-driver.c (VENDOR_VEGA): Fix typo.
36559 SCD: Add support of Covadis VEGA_ALPHA reader.
36560 + commit 82e1e837c29225cd55642b193cc04ce6191d19bb
36561 * scd/ccid-driver.c: Add 2013.
36562 (VENDER_VEGA, VEGA_ALPHA):New.
36563 (ccid_transceive_secure): VEGA_ALPHA is same firmware as GEMPC_PINPAD.
36564 Change bNumberMessage to 0x01, as it works better (was: 0xff).
36566 SCD: Support fixed length PIN input for keypad (PC/SC).
36567 + commit 3aae780f9debaeb3560ff866b7e09d0923481c57
36568 * scd/apdu.c (pcsc_keypad_verify): SUpport fixed length PIN input for
36570 (pcsc_keypad_modify): Likewise.
36571 * scd/ccid-driver.c (ccid_transceive_secure): Clean up.
36573 SCD: Support fixed length PIN input for keypad.
36574 + commit 40a914a2e3052847b49c4b5e8ac8538e97efd18a
36575 * scd/iso7816.h (struct pininfo_s): Remove MODE and add FIXEDLEN.
36576 * scd/app-dinsig.c (verify_pin): Initialize FIXEDLEN to unknown.
36577 * scd/app-nks.c (verify_pin): Likewise.
36578 * scd/app-openpgp.c (verify_a_chv, verify_chv3, do_change_pin):
36580 * scd/apdu.c (check_pcsc_keypad): Add comment.
36581 (pcsc_keypad_verify, pcsc_keypad_modify): PC/SC driver only support
36582 readers with the feature of variable length input (yet).
36583 (apdu_check_keypad): Set FIXEDLEN.
36584 * scd/ccid-driver.c (ccid_transceive_secure): Add GEMPC_PINPAD
36586 Support fixed length PIN input for keypad.
36588 SCD: API cleanup for keypad handling.
36589 + commit b526f6e223604b7c1852ef2aab9fc1ea691b1181
36590 * scd/iso7816.h (struct pininfo_s): Rename from iso7816_pininfo_s.
36591 Change meaning of MODE.
36592 (pininfo_t): Rename from iso7816_pininfo_t.
36593 * scd/sc-copykeys.c: Include "iso7816.h".
36594 * scd/scdaemon.c, scd/command.c: Likewise.
36595 * scd/ccid-driver.c: Include "scdaemon.h" and "iso7816.h".
36596 (ccid_transceive_secure): Follow the change of PININFO_T.
36597 * scd/app.c: Include "apdu.h" after "iso7816.h".
36598 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
36599 (iso7816_change_reference_data_kp): Follow the change of API.
36600 * scd/apdu.c (struct reader_table_s): Change API of CHECK_KEYPAD,
36601 KEYPAD_VERIFY, KEYPAD_MODIFY to have arg of PININFO_T.
36602 (check_pcsc_keypad, check_ccid_keypad): Likewise.
36603 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify): Likewise.
36604 (pcsc_keypad_verify, pcsc_keypad_modify, ct_send_apdu)
36605 (pcsc_send_apdu_direct, pcsc_send_apdu_wrapped, pcsc_send_apdu)
36606 (send_apdu_ccid, ccid_keypad_operation, my_rapdu_send_apdu, send_apdu)
36607 (send_le): Follow the change of API.
36608 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
36609 (apdu_keypad_modify): Change the API.
36610 * scd/app-dinsig.c, scd/app-nks.c, scd/app-openpgp.c: Follow the
36613 SCD: Clean up. Remove PADLEN for keypad input.
36614 + commit ca89277cb4cb9558da97a71a4cb070cb77c9b536
36615 * scd/apdu.c (struct pininfo_s): Use iso7816_pininfo_s.
36616 (struct reader_table_s): Remove last arg from check_keypad method.
36617 (check_pcsc_keypad, check_pcsc_keypad): Remove PIN_PADLEN.
36618 (pcsc_keypad_verify, pcsc_keypad_modify): Don't check PIN_PADLEN.
36619 (send_apdu_ccid, ccid_keypad_operation): Remove PIN_PADLEN.
36620 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify):
36623 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
36624 (apdu_keypad_modify): Remove PIN_PADLEN.
36626 * scd/ccid-driver.c (ccid_transceive_secure): Remove PIN_PADLEN.
36628 * scd/ccid-driver.h (ccid_transceive_secure): Remove PIN_PADLEN.
36630 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
36631 (iso7816_change_reference_data_kp): Remove PADLEN.
36633 * scd/iso7816.h (struct iso7816_pininfo_s): Remove PADLEN, PADCHAR.
36635 SCD: Add option enable-keypad-varlen and support for GEMPC_PINPAD.
36636 + commit d9f6cc7502793ed41928042cc2f968c8c7effc22
36637 * scd/scdaemon.h (opt): Add enable_keypad_varlen.
36638 * scd/scdaemon.c (cmd_and_opt_values): Add oEnableKeypadVarlen.
36639 (opts, main): Add oEnableKeypadVarlen.
36640 * scd/ccid-driver.c (GEMPC_PINPAD): New.
36641 (ccid_transceive_secure): Add enable_varlen handling.
36642 Enable GEMPC_PINPAD.
36644 2013-01-30 Werner Koch <wk@gnupg.org>
36646 Remove unused status codes.
36647 + commit 50a7badbdacac8ba472b35090c1aab4568434d04
36648 * common/status.h (STATUS_BEGIN_STREAM, STATUS_END_STREAM)
36649 (STATUS_SIEXPIRED): Remove unused codes.
36651 gpg: Add status line PINENTRY_LAUNCHED.
36652 + commit 1cd6445eec4c3642ad92afb02f3563a01cc10c10
36653 * common/status.h (STATUS_PINENTRY_LAUNCHED): New.
36654 * g10/server.c (server_local_s): Add field allow_pinentry_notify.
36655 (option_handler): Add option "allow-pinentry-notify".
36656 (gpg_proxy_pinentry_notify): New.
36657 * g10/call-agent.c (default_inq_cb): Factor code out to the new
36660 2013-01-25 NIIBE Yutaka <gniibe@fsij.org>
36662 agent: Fix a bug of handling return code from npth_join.
36663 + commit 19994466449a93704d38d429ca1ea36f63da0bf0
36664 * agent/call-pinentry.c (agent_popup_message_stop): Fix npth_join
36667 2013-01-11 Christian Aistleitner <christian@quelltextlich.at>
36669 gpg: Fix honoring --cert-digest-algo when recreating a cert.
36670 + commit 60c58766aeb847b769372fa981f79abac6014500
36671 * g10/sign.c (update_keysig_packet): Override original signature's
36672 digest algo in hashed data and for hash computation.
36674 2013-01-11 Werner Koch <wk@gnupg.org>
36676 Fix spurious cruft from configure summary output.
36677 + commit 7a638c094fa1aa7ed1d9caf085af9980a2664d64
36678 * configure.ac (build_scdaemon_extra): Remove $tmp cruft.
36680 2013-01-11 NIIBE Yutaka <gniibe@fsij.org>
36682 SCD: Hold lock for pinpad input.
36683 + commit 4dddf32c83f52483d95d7770232e9e808558e702
36684 * scd/apdu.c (apdu_check_keypad, apdu_keypad_verify)
36685 (apdu_keypad_modify): Hold lock to serialize communication.
36687 2013-01-08 Werner Koch <wk@gnupg.org>
36689 kbx: Switch from MD5 to SHA-1 for the checksum.
36690 + commit b11f84b858bad867f1062977a7aba30299157e90
36691 * kbx/keybox-blob.c (put_membuf): Use a NULL buf to store zero bytes.
36692 (create_blob_finish): Write just the needed space.
36693 (create_blob_finish): Switch to SHA-1.
36694 * kbx/keybox-dump.c (print_checksum): New.
36695 (_keybox_dump_blob): Print the checksum and the verification status.
36697 gpg: Cache keybox searches.
36698 + commit 492792378dc7a79316ef742b2ffaa46c6cda282a
36699 * common/iobuf.c (iobuf_seek): Fix for temp streams.
36700 * g10/pubkey-enc.c (get_session_key, get_it): Add some log_clock calls.
36701 * g10/keydb.c (dump_search_desc): New.
36702 (enum_keyblock_states, struct keyblock_cache): New.
36703 (keyblock_cache_clear): New.
36704 (keydb_get_keyblock, keydb_search): Implement a keyblock cache.
36705 (keydb_update_keyblock, keydb_insert_keyblock, keydb_delete_keyblock)
36706 (keydb_rebuild_caches, keydb_search_reset): Clear the cache.
36708 Make log_clock easier to read.
36709 + commit 5c565512b8af73bee2a176530663154b9277ef1c
36710 * common/logging.c (log_clock): Print in microseconds.
36712 gpg: Remove a function wrapper.
36713 + commit f3f5721e6843a08d1011875400f385b8cd5fe226
36714 * g10/keydb.h (keydb_search): Remove macro.
36715 * g10/keydb.c (keydb_search2): Rename to keydb_search. Change all
36718 2013-01-08 NIIBE Yutaka <gniibe@fsij.org>
36720 SCD: Support not-so-smart card readers.
36721 + commit a776f660363d20b6cc023609c4547e0aa8825d97
36722 * scd/ccid-driver.c (struct ccid_driver_s): Add auto_voltage,
36723 auto_param, and auto_pps.
36724 (parse_ccid_descriptor): Set auto_voltage, auto_param, and auto_pps.
36725 Support non-autoconf readers.
36726 (update_param_by_atr): New.
36727 (ccid_get_atr): Use 5V for PowerOn when auto_voltage is not supported.
36728 Use 0x10 when nonnull_nad for SetParameters.
36729 Call update_param_by_atr for parsing ATR, and use param for
36731 Send PPS if reader requires it and card is negotiable.
36732 When bNadValue in the return values of SetParameters == 0,
36733 clear handle->nonnull_nad flag.
36735 2013-01-07 Werner Koch <wk@gnupg.org>
36737 gpg: Set the node flags while retrieving a keyblock.
36738 + commit f6d7b3f1ee5eed32bc3257c99cb878091d26c482
36739 * g10/keydb.c (parse_keyblock_image): Add args PK_NO and UID_NO and
36740 set the note flags accordingly.
36741 (keydb_get_keyblock): Transfer PK_NO and UID_NO to parse_keyblock_image.
36742 * kbx/keybox-search.c (blob_cmp_fpr, blob_cmp_fpr_part)
36743 (blob_cmp_name, blob_cmp_mail): Return the key/user number.
36744 (keybox_search): Set the key and user number into the found struct.
36745 (keybox_get_keyblock): Add args R_PK_NO and R_UID_NO and set them from
36748 New function log_clock.
36749 + commit 0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f
36750 * common/logging.c (log_clock): New.
36751 * g10/gpg.c (set_debug): Print clock debug flag.
36752 * g10/options.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
36754 gpg: Allow searching for user ids in a keybox.
36755 + commit fb31462e7e92d4b19256e6fd40b1b6ffcef2676c
36756 * kbx/keybox-search.c (blob_cmp_name): Add arg X509 and adjust for PGP
36757 use. Change callers.
36758 (blob_cmp_mail): Add arg X509 and find the mailbox offset for PGP.
36760 (has_subject_or_alt): Rename to has_username.
36761 (has_username): Allow blobtype PGP.
36764 gpg: Allow generation of more than 4096 keys in one run.
36765 + commit 7d00e52bd58d9e40c18dcc0122b2c236ef3318f5
36766 * g10/getkey.c (cache_public_key): Make room in the cache if needed.
36768 2013-01-07 NIIBE Yutaka <gniibe@fsij.org>
36770 Update Japanese Translation.
36771 + commit bb51edc31e6595e38fcbd91d470de57d3a1a7150
36772 * po/ja.po: Fix wrong translations for designated revocation.
36773 Reported by Hideki Saito.
36778 2013-01-05 NIIBE Yutaka <gniibe@fsij.org>
36780 Update Japanese Translation.
36781 + commit 05a4458e5721a0afd600f0ec908e739fa83d58f2
36782 * po/ja.po: Fix fuzzy translations.
36784 2013-01-03 NIIBE Yutaka <gniibe@fsij.org>
36786 Update Japanese Translation.
36787 + commit 709a8f8125b9ba5e1ad1e6268cca5ac96d478f63
36788 * po/ja.po: Update with POT.
36790 Update Japanese Translation.
36791 + commit 0fae789c4125dd8492ed25bd6728b5ac98f19729
36792 * po/ja.po: Start from the new one of 2.0.
36794 2012-12-28 Werner Koch <wk@gnupg.org>
36796 gpg: Add signature cache support to the keybox.
36797 + commit 79f08fb0699f4a065e3a29bc7676a90534d7ba60
36798 * g10/keydb.c (parse_keyblock_image): Add arg SIGSTATUS.
36799 (keydb_get_keyblock): Handle it.
36800 (build_keyblock_image): Add arg SIGSTATUS.
36801 (keydb_insert_keyblock): Handle it.
36802 * kbx/keybox-blob.c (pgp_create_sig_part): Add arg SIGSTATUS.
36803 (_keybox_create_openpgp_blob): Ditto.
36804 * kbx/kbxutil.c (import_openpgp): Adjust for above change.
36805 * kbx/keybox.h (KEYBOX_FLAG_SIG_INFO): New.
36806 * kbx/keybox-search.c (_keybox_get_flag_location): Handle new flag.
36807 (keybox_get_keyblock): Add arg R_SIGSTATUS.
36808 * kbx/keybox-update.c (keybox_insert_keyblock): Add arg SIGSTATUS.
36810 kbxutil: Improve format of the Sig-Expire lines.
36811 + commit 564d10ea5cd29685a00a4096d69ae2476b60506f
36812 * kbx/keybox-dump.c (_keybox_dump_blob): Print the expirate timestamp.
36814 gpg: First working support for keyboxes.
36815 + commit a9863834244fc2a58d8950977243702d12e420a1
36816 * g10/getkey.c (get_pubkey_fast): Improve the assertion.
36817 * kbx/keybox.h: Include iobuf.h.
36818 * kbx/keybox-blob.c (keyboxblob_uid): Add field OFF.
36819 (KEYBOX_WITH_OPENPGP): Remove use of this macro.
36820 (pgp_create_key_part_single): New.
36821 (pgp_temp_store_kid): Change to use the keybox-openpgp parser.
36822 (pgp_create_key_part): Ditto.
36823 (pgp_create_uid_part): Ditto.
36824 (pgp_create_sig_part): Ditto.
36825 (pgp_create_blob_keyblock): Ditto.
36826 (_keybox_create_openpgp_blob): Ditto.
36827 * kbx/keybox-search.c (keybox_get_keyblock): New.
36828 * kbx/keybox-update.c (keybox_insert_keyblock): New.
36829 * g10/keydb.c (parse_keyblock_image):
36830 (keydb_get_keyblock): Support keybox.
36831 (build_keyblock_image): New.
36832 (keydb_insert_keyblock): Support keybox.
36834 * kbx/kbxutil.c (import_openpgp, main): Add option --dry-run and print
36835 a kbx file to stdout.
36837 * kbx/keybox-file.c (_keybox_read_blob2): Allow keyblocks up to 10^6
36840 kbxutil: Print algo number and fold similar lines.
36841 + commit f7495f1004071a0ceac394007bb37f88d7a3467f
36842 * kbx/keybox-defs.h (_keybox_openpgp_key_info): Add field ALGO.
36843 * kbx/keybox-openpgp.c (parse_key): Store algo.
36844 * kbx/kbxutil.c (dump_openpgp_key): Print algo number.
36845 * kbx/keybox-dump.c (_keybox_dump_blob): Print identical Sig-Expire
36846 value lines with a range of indices.
36848 2012-12-27 Werner Koch <wk@gnupg.org>
36850 gpg: First patches to support a keybox storage backend.
36851 + commit 91e61d52539b1808e209c43e51465c76cebb06f9
36852 * kbx/keybox-defs.h (_keybox_write_header_blob): Move prototype to ..
36853 * kbx/keybox.h: here.
36854 * kbx/keybox-init.c (keybox_lock): Add dummy function
36855 * g10/keydb.c: Include keybox.h.
36856 (KeydbResourceType): Add KEYDB_RESOURCE_TYPE_KEYBOX.
36857 (struct resource_item): Add field kb.
36858 (maybe_create_keyring_or_box): Add error descriptions to diagnostics.
36859 Add arg IS_BOX. Write a header for a new keybox file.
36860 (keydb_add_resource): No more need for the force flag. Rename the
36861 local variable "force" to "create". Add URL scheme "gnupg-kbx". Add
36862 magic test to detect a keybox file. Add basic support for keybox.
36863 (keydb_new, keydb_get_resource_name, keydb_delete_keyblock)
36864 (keydb_locate_writable, keydb_search_reset, keydb_search2): Add
36865 support for keybox.
36866 (lock_all, unlock_all): Ditto.
36867 * g10/Makefile.am (needed_libs): Add libkeybox.a.
36868 (gpg2_LDADD, gpgv2_LDADD): Add KSBA_LIBS as a workaround.
36870 * g10/keydb.h (KEYDB_RESOURCE_FLAG_PRIMARY)
36871 KEYDB_RESOURCE_FLAG_DEFAULT, KEYDB_RESOURCE_FLAG_READONLY): New.
36872 * g10/gpg.c, g10/gpgv.c (main): Use new constants.
36874 2012-12-20 Werner Koch <wk@gnupg.org>
36876 gpg: Import only packets which are allowed in a keyblock.
36877 + commit f0b33b6fb8e0586e9584a7a409dcc31263776a67
36878 * g10/import.c (valid_keyblock_packet): New.
36879 (read_block): Store only valid packets.
36881 2012-12-19 Werner Koch <wk@gnupg.org>
36883 gpg: Make commit 2b3cb2ee actually work.
36884 + commit d61f7402f2b0f6dd288e403ed9408fd65e617f85
36885 * g10/sign.c (update_keysig_packet): Use digest_algo.
36887 (cherry-picked from commit d23ec86095714d388acac14b515445fe69f019e9)
36889 gpg: Suppress "public key already present" in quiet mode.
36890 + commit 8325d616593187ff227853de0295e3269b96edcb
36891 * g10/pkclist.c (find_and_check_key, build_pk_list): Print a
36892 diagnostic only in non-quiet mode.
36894 2012-12-18 Werner Koch <wk@gnupg.org>
36896 common: Add meta option ignore-invalid-option.
36897 + commit 41d564333d35c923f473aa90625d91f8fe18cd0b
36898 * common/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New.
36899 (initialize): Init field IIO_LIST.
36900 (ignore_invalid_option_p): New.
36901 (ignore_invalid_option_add): New.
36902 (ignore_invalid_option_clear): New.
36903 (optfile_parse): Implement meta option.
36905 2012-12-13 Werner Koch <wk@gnupg.org>
36906 Hans of Guardian <hans@guardianproject.info>
36908 utf8conv.c: Add hacks for Android.
36909 + commit 6177fb3c87f485fb654bbba492d04508755718b3
36910 * common/utf8conv.c [HAVE_ANDROID_SYSTEM]: Do not include iconv.h.
36911 (iconv_open, iconv_close, load_libiconv) [HAVE_ANDROID_SYSTEM]: New
36913 (set_native_charset) [HAVE_ANDROID_SYSTEM]: Force use of "utf-8".
36914 (jnlib_iconv_open) [HAVE_ANDROID_SYSTEM]: Act the same as under W32.
36915 (jnlib_iconv) [HAVE_ANDROID_SYSTEM]: Ditto.
36916 (jnlib_iconv_close) [HAVE_ANDROID_SYSTEM]: Ditto.
36918 2012-12-13 NIIBE Yutaka <gniibe@fsij.org>
36920 SCD: Fix the process of writing key or generating key.
36921 + commit e7dca3e83ebd6df0a7ea55e97c3cd6e91be90af5
36922 * scd/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME.
36924 2012-12-12 Werner Koch <wk@gnupg.org>
36926 ssh: Support ECDSA keys.
36927 + commit 649b31c663b8674bc874b4ef283d714a13dc8cfe
36928 * agent/command-ssh.c (SPEC_FLAG_IS_ECDSA): New.
36929 (struct ssh_key_type_spec): Add fields CURVE_NAME and HASH_ALGO.
36930 (ssh_key_types): Add types ecdsa-sha2-nistp{256,384,521}.
36931 (ssh_signature_encoder_t): Add arg spec and adjust all callers.
36932 (ssh_signature_encoder_ecdsa): New.
36933 (sexp_key_construct, sexp_key_extract, ssh_receive_key)
36934 (ssh_convert_key_to_blob): Support ecdsa.
36935 (ssh_identifier_from_curve_name): New.
36936 (ssh_send_key_public): Retrieve and pass the curve_name.
36937 (key_secret_to_public): Ditto.
36938 (data_sign): Add arg SPEC and change callers to pass it.
36939 (ssh_handler_sign_request): Get the hash algo from SPEC.
36940 * common/ssh-utils.c (get_fingerprint): Support ecdsa.
36942 * agent/protect.c (protect_info): Add flag ECC_HACK.
36943 (agent_protect): Allow the use of the "curve" parameter.
36944 * agent/t-protect.c (test_agent_protect): Add a test case for ecdsa.
36946 * agent/command-ssh.c (ssh_key_grip): Print a better error code.
36948 2012-12-11 Werner Koch <wk@gnupg.org>
36950 ssh: Rewrite a function for better maintainability.
36951 + commit f76a0312c3794afd81fe1e172df15eb0612deae0
36952 * agent/command-ssh.c (ssh_signature_encoder_dsa): Rewrite.
36954 2012-12-10 Werner Koch <wk@gnupg.org>
36956 ssh: Improve key lookup for many keys.
36957 + commit d2777f84be0ded5906a9bec3bc23cfed0a9be02f
36958 * agent/command-ssh.c: Remove dirent.h.
36959 (control_file_s): Add struct item.
36960 (rewind_control_file): New.
36961 (search_control_file): Factor code out to ...
36962 (read_control_file_item): New.
36963 (ssh_handler_request_identities): Change to iterate over entries in
36966 ssh: Cleanup sshcontrol file access code.
36967 + commit 25fb53ab4ae7e1c098500229c776d29b82713a20
36968 * agent/command-ssh.c (SSH_CONTROL_FILE_NAME): New macro to replace
36969 the direct use of the string.
36970 (struct control_file_s, control_file_t): New.
36971 (open_control_file, close_control_file): New. Use them instead of
36972 using fopen/fclose directly.
36974 agent: Add envvar "gnupg_SSH_AUTH_SOCK_by"
36975 + commit 36ba7845995dd3caf8faeec3e09b3ffb879fc29b
36976 * agent/gpg-agent.c (main): Pass new envar gnupg_SSH_AUTH_SOCK_by to
36977 an invoked process.
36979 config: Update npth.m4.
36980 + commit ceab60b59d907354d323ace09d7b3f2d36d330fb
36981 * m4/npth.m4: Take from current npth master.
36983 2012-12-04 NIIBE Yutaka <gniibe@fsij.org>
36985 Revert SCD changes of 2010-05-03.
36986 + commit 1e1326aeb8923782138e133f091afec41d969c40
36987 * scd/apdu.c (pcsc_no_service): Remove.
36988 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Remove
36989 pcsc_no_service support.
36990 (apdu_open_reader): Remove R_NO_SERVICE.
36991 * scd/apdu.h (apdu_open_reader): Remove R_NO_SERVICE.
36992 * scd/command.c (reader_disabled): Remove.
36993 (get_current_reader): Follow the change of R_NO_SERVICE.
36994 (open_card, cmd_serialno, scd_command_handler): Remove reader_disabled
36996 * scd/sc-copykeys.c (main): Follow the change of R_NO_SERVICE.
36998 Don't keep opening unavailable card reader.
36999 + commit baf7b09e124f9eb4ca4b8ee02474ee7710a95a40
37000 * scd/command.c (update_reader_status_file): Don't call
37001 get_current_reader.
37003 2012-11-30 David Shaw <dshaw@jabberwocky.com>
37005 Refresh sample keys.
37006 + commit b8eb2ab56971a309353ae2682bc6ef1357e9ac53
37009 Adjust awk to not add trailing whitespace.
37010 + commit 3f8ad564674431b4c0c6cff259f02248c80a6ef9
37011 * mksamplekeys: Tweak awk script to not add trailing whitespace to
37012 blank lines (makes git pre-commit hook unhappy)
37014 2012-11-29 David Shaw <dshaw@jabberwocky.com>
37016 The keyserver search menu should honor --keyid-format.
37017 + commit 7602d9e3edda99b0b65ba928eef435dab04ecd09
37018 * keyserver.c (print_keyrec): Honor --keyid-format when getting back
37019 full fingerprints from the keyserver (the comment in the code was
37020 correct, the code was not).
37022 2012-11-27 Werner Koch <wk@gnupg.org>
37024 Fix printing of ECC algo names in hkp keyserver listings.
37025 + commit 3d2da6c82163ffbc2e827abc4144dc3197ed53db
37026 * g10/keyserver.c (print_keyrec): Map OpenPGP algorithm ids.
37028 2012-11-26 Ben Kibbey <bjk@luxsci.net>
37030 Check for inet_addr() in -lnsl.
37031 + commit 66331e138ec17e176cc3f45bb095820866d5358c
37032 * configure.ac: Check for inet_addr() in libnsl.
37034 2012-11-20 Werner Koch <wk@gnupg.org>
37036 Do not use a broken ttyname.
37037 + commit 835698b72bc509565aad52b0753f1c56c1a8f062
37038 * configure.ac (HAVE_BROKEN_TTYNAME): New ac_define set for Android
37040 * common/util.h (gnupg_ttyname): New macro. Change all callers of
37041 ttyname to use this macro instead.
37042 (ttyname) [W32]: Rename to _gnupg_ttyname and use also if
37043 HAVE_BROKEN_TTYNAME is defined.
37044 * common/simple-pwquery.c (agent_send_all_options): Keep on using
37045 ttyname unless HAVE_BROKEN_TTYNAME is set. This is because this file
37046 may be used standalone.
37048 2012-11-16 Werner Koch <wk@gnupg.org>
37050 Fix non-portable use of chmod in autogen.sh.
37051 + commit e7bc5012c568da9ceb0a80a8f3fe3edf3dac9564
37052 * autogen.sh: Remove option -c from chmod.
37054 Improve parsing of the GIT revision number.
37055 + commit 011faa0c68cf0c628ef581193166e9ac9bf22b71
37056 * configure.ac (mmm4_revision): Use git rev-parse.
37058 Add an OpenPGP card vendor.
37059 + commit ac775780fef3ef63f896e822add9ff6ea7e5119c
37060 * g10/card-util.c (get_manufacturer): Add Yubico.
37062 2012-11-06 Werner Koch <wk@gnupg.org>
37064 agent: Use wipememory instead of memset in one place.
37065 + commit 9f0e9ea80ca30269770eb955e33b54401bff917f
37066 * agent/command.c (clear_outbuf): Use wipememory. Suggested by Ben
37069 Allow decryption with card keys > 3072 bits.
37070 + commit 905b6a36d3ca21b2f619721e1de892398e5eb759
37071 * scd/command.c (MAXLEN_SETDATA): New.
37072 (cmd_setdata): Add option --append.
37073 * agent/call-scd.c (agent_card_pkdecrypt): Use new option for long
37076 * scd/app-openpgp.c (struct app_local_s): Add field manufacturer.
37077 (app_select_openpgp): Store manufacturer.
37078 (do_decipher): Print a note for broken cards.
37080 2012-11-02 NIIBE Yutaka <gniibe@fsij.org>
37082 agent: Fix wrong use of gcry_sexp_build_array.
37083 + commit 8f8c29d24ca13f987e6c118702b428a2051b7072
37084 * findkey.c (agent_public_key_from_file): Fix use of
37085 gcry_sexp_build_array.
37087 2012-10-31 NIIBE Yutaka <gniibe@fsij.org>
37089 SCD: Upon error, open_pcsc_reader_wrapped does same as _direct.
37090 + commit 8df89f3e9cf0255f11011c2f1df0d419a5c23a8c
37091 * scd/apdu.c (PCSC_E_NO_SERVICE): New.
37092 (open_pcsc_reader_direct): Use PCSC_E_NO_SERVICE.
37093 (open_pcsc_reader_wrapped): Set pcsc_no_service.
37095 2012-08-24 Werner Koch <wk@gnupg.org>
37097 Update and enable French translation.
37098 + commit 76055d49d1c8b8e4f6245e6729cae81b1eaecbf6
37099 * po/fr.po: Update.
37100 * po/LINGUAS: Enable fr.
37102 2012-08-24 David Prévot <taffit@debian.org>
37104 Fix typos spotted during translations.
37105 + commit ba591e2f14c0d85ba15346ffd04b9e7d72ec89dc
37106 * agent/genkey.c: s/to to/to/
37107 * sm/*.c: s/failed to allocated/failed to allocate/
37108 * sm/certlist.c, ./dirmngr/validate.c: s/should have not/should not have/
37109 * g10/seskey.c: missing closing parenthesis
37110 * dirmngr/crlcache.c: s/may has/may have/
37114 * g10/gpg.c, kbx/kbxutil.c, sm/gpgsm.c: uppercase after Syntax
37115 * dirmngr/dirmngr_ldap: no period in Syntax
37116 * dirmngr/dirmngr-client.c: infinitive for option description:
37117 s/certificates are expected/expect certificates/
37119 Keep previous msgids of translated messages.
37120 + commit bf95408fc33709d154cd41566d33af3ec3c48886
37121 * po/Makefile.in.in: Use --previous with msgmerge.
37123 2012-08-24 Hans-Christoph Steiner <hans@eds.org>
37125 Fix build system for Android by disabling tests since its x-compiled.
37126 + commit 1da04bfb3f5714a0fa6d0b779d0d2ae4e9544b8f
37127 * configure.ac (HAVE_ANDROID_SYSTEM, RUN_TESTS): New.
37128 (AH_BOTTOM) [__ANDROID__]: Do not re-define ttyname.
37129 * Makefile.am: Depend tests on new RUN_TESTS conditional.
37131 2012-08-24 Werner Koch <wk@gnupg.org>
37133 Fix left over use of jnlib on some platforms.
37134 + commit 8156a38674421deef6c2eb3e91e0186fe7fe4b26
37135 * tools/watchgnupg.c: Take mischelp.h from common/ and not jnlib/.
37137 2012-06-25 NIIBE Yutaka <gniibe@fsij.org>
37139 scd: handle reader/token removal.
37140 + commit ca8eec8e28abb8473d02dbaf8d61cfb1094c5c50
37141 * scd/apdu.c (pcsc_error_to_sw): PCSC_E_UNKNOWN_READER means
37144 2012-06-05 Werner Koch <wk@gnupg.org>
37146 Change all quotes in strings and comments to the new GNU standard.
37147 + commit 096e7457ec636bcfcf128678660eb2f2e19f113a
37148 The asymmetric quotes used by GNU in the past (`...') don't render
37149 nicely on modern systems. We now use two \x27 characters ('...').
37151 The proper solution would be to use the correct Unicode symmetric
37152 quotes here. However this has the disadvantage that the system
37153 requires Unicode support. We don't want that today. If Unicode is
37154 available a generated po file can be used to output proper quotes. A
37155 simple sed script like the one used for en@quote is sufficient to
37158 The changes have been done by applying
37160 sed -i "s/\`\([^'\`]*\)'/'\1'/g"
37162 to most files and fixing obvious problems by hand. The msgid strings in
37163 the po files were fixed with a similar command.
37165 2012-05-24 Werner Koch <wk@gnupg.org>
37167 Print the hash algorithm in colon mode key listing.
37168 + commit fc00d3fcb201476b3495f47138fa35b71c52f403
37169 * g10/keylist.c (list_keyblock_colon): Print digest_algo.
37171 Fix type conflict warning.
37172 + commit f8a8c71c41bc1893df8af6ce522876ccbf6240a9
37173 * g10/keylist.c: Change min_cert_level to a byte.
37175 2012-05-11 Werner Koch <wk@gnupg.org>
37177 Switch to the new automagic beta numbering scheme.
37178 + commit 68777b40dcf215305a325185f6bd9cfd6dcc0542
37179 * configure.ac: Add all the require m4 magic.
37181 2012-05-08 Werner Koch <wk@gnupg.org>
37183 Add tweaks for the not anymore patented IDEA algorithm.
37184 + commit b4d9f8dbc8e074cd91bbd3e2e54e2b77c9268d1a
37185 * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2
37186 compatibility mode.
37187 * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers.
37188 * common/status.h (STATUS_RSA_OR_IDEA): Remove. Do not emit this
37192 + commit 59b77f9ea7dfa4d5c74573d2186c9a3e129ab3bf
37193 * po/de.po: Update.
37195 common: Remove generated files only during maintainer-clean.
37196 + commit d800fa5ce6102e069305f8e1a5d55d18ac3a1993
37197 * common/Makefile.am (CLEANFILES): Rename to MAINTAINERCLEANFILES.
37199 2012-04-30 Werner Koch <wk@gnupg.org>
37201 agent: Fix deadlock in trustlist due to the switch to npth.
37202 + commit 0f02fba19df16c82ca1ad44a8cb09f952d755598
37203 * agent/trustlist.c (clear_trusttable): New.
37204 (agent_reload_trustlist): Use new function.
37205 (read_trustfiles): Require to be called with lock held.
37206 (agent_istrusted): Factor all code out to ...
37207 (istrusted_internal): new. Add ALREADY_LOCKED arg. Make sure the
37208 table islocked. Do not print TRUSTLISTFLAG stati if called internally.
37209 (agent_marktrusted): Replace calls to agent_reload_trustlist by
37212 2012-04-26 NIIBE Yutaka <gniibe@fsij.org>
37214 make DNS and URI fields work in gpgsm --gen-key.
37215 + commit 8d7522837c6dba3065d24594bcdbe7b99a702cde
37216 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Actually set mb_uri and
37217 mb_dns.avoid buffer strncpy-induced buffer overrun
37219 2012-04-26 Jim Meyering <jim@meyering.net>
37221 avoid buffer strncpy-induced buffer overrun.
37222 + commit 20c9ac4df34e25f7085bb4e4ab5ea7223932f5c4
37223 * dirmngr/crlcache.c (open_dir): Ensure that both this_update
37224 and next_update member strings are NUL-terminated.
37226 remove doubled words in a comment.
37227 + commit 6e3882785a629b361c57c8b9d5cad51fb234ac23
37230 2012-04-20 Werner Koch <wk@gnupg.org>
37232 Change license for some files in common to LGPLv3+/GPLv2+.
37233 + commit 37df3d5f593f76ddbf1b9dc6de0173b7bb85c0ad
37234 Having the LGPL on the common GnuPG code helps to share code
37235 between GnuPG and related projects (like GPGME and Libassuan). This
37236 is good for interoperability and to reduces bugs.
37238 * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
37239 * common/b64enc.c, common/convert.c, common/dns-cert.c
37240 * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
37241 * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
37242 * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
37243 * common/helpfile.c, common/homedir.c, common/http.c, common/http.h
37244 * common/i18n.c, common/init.c, common/init.h, common/iobuf.c
37245 * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
37246 * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
37247 * common/percent.c, common/pka.c, common/pka.h, common/session-env.c
37248 * common/session-env.h, common/sexp-parse.h, common/sexputil.c
37249 * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
37250 * common/ssh-utils.h, common/sysutils.c, common/sysutils.h
37251 * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
37252 * common/userids.c, common/userids.h, common/xasprintf.c: Change
37253 license to LGPLv3+/GPLv2+/
37255 2012-04-10 Ben Kibbey <bjk@luxsci.net>
37257 Fix killing PID -1.
37258 + commit bee0ac28c9c8027540ae56900b9f85e0bd555f1d
37259 When the KILLSCD command had been sent a race condition would occur
37260 causing PID -1 getting killed, which on Linux seems to terminate all
37261 applications for the current user.
37263 2012-04-05 Werner Koch <wk@gnupg.org>
37265 Do not mix test result with progress lines.
37266 + commit f1e1387bee286c7434f0462185048872bcdb4484
37267 This makes parsing of the results easier. Fixes bug#1400.
37269 * tests/openpgp/defs.inc (progress_cancel, progress_end)
37270 (progress_new): New.
37271 * tests/openpgp/conventional-mdc.test: Use progress functions
37272 * tests/openpgp/conventional.test: Ditto.
37273 * tests/openpgp/encrypt-dsa.test: Ditto.
37274 * tests/openpgp/encrypt.test: Ditto.
37275 * tests/openpgp/sigs.test: Ditto.
37277 2012-04-04 Ben Kibbey <bjk@luxsci.net>
37279 Mention status messages in the documentation.
37280 + commit 99fc61f1cf09c7f72a9037d91d3cf0cd2e035ae6
37281 Note INQUIRE_MAXLEN.
37283 Document PASSWD --preset.
37284 + commit a577f06c4aecc0af5b492e15812e9150c747cbe4
37287 Document GENKEY options.
37288 + commit 108e8f622ef9cfa256707debec1d379ce3cf21ca
37291 Document PRESET_PASSPHRASE.
37292 + commit 96e107fc29db625b247022ae1bf2cbe90b939c5d
37295 Document CLEAR_PASSPHRASE.
37296 + commit 26b59d78c43d72fa28609fb2c0d80fb377393127
37297 And describe the --mode=normal option.
37299 2012-03-27 Werner Koch <wk@gnupg.org>
37301 Fix timegm regression test.
37302 + commit 17499e761e8cd0fe867b5b5f3e42a71b6d45f954
37303 * common/t-timestuff.c (test_timegm): Change test to use January and
37304 not February or December+1. Bug spotted by Daniel Kahn Gillmor.
37306 Print warning for arguments not considered an option.
37307 + commit de01c51ecb3918f427aa76281351749c8ad07ed6
37308 GnuPG requires that options are given before other arguments. This
37309 can sometimes be confusing. We now print a warning if we found an
37310 argument looking alike a long option without being preceded by the
37311 stop option. This is bug#1343.
37313 * common/argparse.h (ARGPARSE_FLAG_STOP_SEEN): New.
37314 * common/argparse.c (arg_parse): Set new flag.
37315 * g10/gpg.c (main): Print the warning.
37316 * agent/gpg-agent.c (main): Ditto.
37317 * dirmngr/dirmngr.c (main): Ditto.
37318 * g13/g13.c (main): Ditto.
37319 * scd/scdaemon.c (main): Ditto.
37320 * sm/gpgsm.c (main): Ditto.
37321 * tools/gpg-connect-agent.c (main): Ditto.
37322 * tools/gpgconf.c (main): Ditto.
37324 2012-03-26 Werner Koch <wk@gnupg.org>
37326 Allow compress algorithm 0.
37327 + commit 7ddbcb6b6ab8b26c8e609fcd95c2c8a89bc20a7d
37328 * g10/mainproc.c (proc_compressed): Remove superfluous check for
37329 compress algorithm 0. Reported by pfandrade. This is bug#1326.
37331 Add mksamplekeys script.
37332 + commit 7441e622ffb3296686bd0d7f04b4051466aaad38
37333 * doc/mksamplekeys: New.
37335 2012-02-28 Marcus Brinkmann <mb@g10code.com>
37337 Replace npth_yield in busy wait by npth_usleep.
37338 + commit 8f8c6594147608b1021c16fc3561feb96da5d55a
37339 * dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): Call
37340 npth_usleep instead of npth_yield.
37342 2012-02-16 Marcus Brinkmann <mb@g10code.com>
37344 Check for lber and link dirmngr_ldap to it.
37345 + commit 76ff42ef8d1232dd36bf48c1020b0b9b2afb1c7d
37346 * configure.ac (LBER_LIBS, HAVE_LBER): New variables, check for lber.
37347 * dirmngr/Makefile.am (dirmngr_lda_LDADD): Add $(LBER_LIBS).
37349 2012-02-07 Werner Koch <wk@gnupg.org>
37351 agent: Add pin length field to the shadowed private key format.
37352 + commit b817ae7df947093384a25797999a9aa187e20f9c
37353 This is not yet fully implemented. It will eventually allow to
37354 support pinpad equipped readers which do not support variable length
37356 * agent/protect.c (parse_shadow_info): Add optional arg R_PINLEN and
37357 parse pinlen info. Change all callers to pass NULL for it.
37359 Use new status printing functions.
37360 + commit 12ea5c904c0008a2adec2e8bbe45dac629548e7d
37361 * agent/command.c (cmd_geteventcounter): Get rid of static buffers.
37362 * scd/command.c (cmd_serialno, cmd_learn): Simplify by using
37363 print_assuan_status.
37365 agent: New function agent_print_status.
37366 + commit e78585cd0f553d92f332e33810ab636758bc88a2
37367 * common/asshelp2.c (vprint_assuan_status): New.
37368 (print_assuan_status): Re-implement using above func.
37369 * agent/command.c (agent_print_status): New.
37371 po: Add Ukrainian translation.
37372 + commit 8d8d740bfd73d8764a03220c0b0c949e03fea351
37375 common: Replace macro based function calls by using DEFAULT_ERRSOURCE.
37376 + commit 13ec74481ce0137f7a60b3256cc4840073c77efa
37377 * common/dns-cert.h (get_dns_cert): Remove macro.
37378 * common/dns-cert.c (_get_dns_cert): Rename to get_dns_cert. Replace
37379 arg ERRSOURCE by global DEFAULT_ERRSOURCE.
37380 * common/http.h (http_parse_uri, http_raw_connect, http_open)
37381 (http_open_document, http_wait_response): Remove macros.
37382 * common/http.c (_http_parse_uri, _http_raw_connect, _http_open)
37383 (_http_open_document, _http_wait_response): Remove underscore from
37384 symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
37385 * common/ssh-utils.h (ssh_get_fingerprint)
37386 (ssh_get_fingerprint_string): Remove macros.
37387 * common/ssh-utils.h (_ssh_get_fingerprint)
37388 (_ssh_get_fingerprint_string): Remove underscore from symbols.
37389 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
37390 * common/tlv.h (parse_ber_header, parse_sexp): Remove macros.
37391 * common/tlv.c: Include util.h.
37392 (_parse_ber_header, _parse_sexp): Remove underscore from symbols.
37393 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
37395 2012-02-06 Werner Koch <wk@gnupg.org>
37397 Add replacement hack for Android's broken ttyname.
37398 + commit 115a6ed55d1f6be33f66de6734359fa590ca3749
37399 * configure.ac (HAVE_TTYNAME) [__ANDROID__]: Add hack.
37401 agent: Simplify printing of INQUIRE_MAXLEN.
37402 + commit 7981cdd1345d51fd917b2375691ead60c24db2cd
37403 * agent/command.c: Include asshelp.h.
37404 (cmd_pkdecrypt, cmd_genkey, cmd_preset_passphrase)
37405 (pinentry_loopback): Use print_assuan_status for INQUIRE_MAXLEN.
37407 common: Add function print_assuan_status.
37408 + commit 1a0df8506050448f16c63666850e3ae6d94a971b
37409 * common/asshelp2.c: New.
37410 (print_assuan_status): New function.
37411 * common/Makefile.am (common_sources): Add asshelp2.c.
37413 common: Add a global variable to for the default error source.
37414 + commit eb0faef81dae2cba1f62056fdc4dc2a7d58ac86a
37415 For the shared code parts it is cumbersome to pass an error sourse
37416 variable to each function. Its value is always a constant for a given
37417 binary and thus a global variable makes things a lot easier than the
37418 former macro stuff.
37419 * common/init.c (default_errsource): New global var.
37420 (init_common_subsystems): Rename to _init_common_subsystems. Set
37422 * common/init.h: Assert value of GPG_ERR_SOURCE_DEFAULT.
37423 (init_common_subsystems): New macro.
37424 * common/util.h (default_errsource): Add declaration.
37425 * kbx/keybox-defs.h: Add some GPG_ERR_SOURCE_DEFAULT trickery.
37427 2012-02-03 Ben Kibbey <bjk@luxsci.net>
37429 Also let GENKEY and PKDECRYPT send the INQUIRE_MAXLEN status message.
37430 + commit ecda65498ac60dfde50fbbc71cd0cc321d7175a9
37431 * agent/command.c (cmd_pkdecrypt): Send the INQUIRE_MAXLEN status
37432 message before doing the inquire.
37433 (cmd_genkey): Ditto.
37435 2012-02-02 Ben Kibbey <bjk@luxsci.net>
37437 Inform the client of the preset passphrase length.
37438 + commit 3f7788f2e035eb939abb27b3a53854ec0fc6178c
37439 * agent/command.c (cmd_preset_passphrase): Send the INQUIRE_MAXLEN
37440 status message before inquiring the passphrase.
37442 2012-02-01 David Shaw <dshaw@jabberwocky.com>
37444 Honor --cert-digest-algo when recreating a cert.
37445 + commit 2b3cb2ee94625498e7a7f939216c9bcddef6ec20
37446 * g10/sign.c (update_keysig_packet): Honor --cert-digest-algo when
37449 This is used by various things in --edit-key like setpref, primary,
37450 etc. Suggested by Christian Aistleitner.
37452 2012-01-27 Werner Koch <wk@gnupg.org>
37454 gl: Add support for Android to stdint.h replacement.
37455 + commit bdde44ae8d4709e33c09781c3d37a5da2c7a5e0d
37456 * gl/stdint_.h: When included from Bionic <sys/types.h>, just include
37457 the system's <stdint.h>.
37459 gpg-connect-tool: Take the string "true" as a true condition.
37460 + commit 2871422d9a889cb632f59efda4d9cd170fc9fca7
37461 * tools/gpg-connect-agent.c (main): Handle strings "true" and "yes" in
37462 conditions as expected.
37464 2012-01-26 Ben Kibbey <bjk@luxsci.net>
37466 Return GPG_ERR_CARD_NOT_PRESENT when pinentry-mode=loopback.
37467 + commit cf748e8736b984194345bfd74887b35d3d23fa37
37468 Since there isn't a way to prompt the user to insert the smartcard when
37469 pinentry-mode=loopback, return GPG_ERR_CARD_NOT_PRESENT instead of
37470 GPG_ERR_NO_PIN_ENTRY.
37472 * agent/divert-scd.c (ask_for_card): Return GPG_ERR_CARD_NOT_PRESENT
37473 when pinentry-mode=loopback.
37475 Also check for GPG_ERR_ASS_CANCELED during an inquire.
37476 + commit 3da10eefcb09a520f11e4fae7f59a33f80ffba69
37477 Fix pinentry-mode=loopback when cancelling an inquire from scdaemon.
37478 This is similar to commit 4f21f8d but for both protocol command
37479 cancellation and pinentry cancellation.
37481 * agent/call-scd.c (agent_card_pkdecrypt): Check for
37482 GPG_ERR_ASS_CANCELED.
37483 (agent_card_pksign): Ditto.
37485 2012-01-25 Werner Koch <wk@gnupg.org>
37487 nPth is now a hard requirement for GnuPG.
37488 + commit 001352077cdc7e402421c77328bea1a052005673
37489 * configure.ac: Remove cruft to allow building without npth.
37491 Require libassuan 2.1.0.
37492 + commit c254d0f0d13a54777a62dad8f78a8f287d6ae565
37493 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.1.0. This is due to
37496 Fix strerror vs. gpg_strerror usage.
37497 + commit 2be7818c6d916a69ffdf88cce32960949a56e893
37498 This bug was introduced by the migration to npth.
37499 * agent/gpg-agent.c (handle_connections): Use strerror.
37501 Add missing variable.
37502 + commit a55d2e16f1090264338dc3ad0b2afca28db27c09
37503 * agent/gpg-agent.c (handle_connections) [!W32]: Add missing variable.
37505 2012-01-25 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
37507 Port LDAP wrapper to NPTH.
37508 + commit 4074f966276be10a794fd63a7f443b9d974d3982
37509 * agent/gpg-agent.c (handle_connections): Handle error.
37510 * dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c: Port to NPTH.
37512 Port Windows code to NPTH.
37513 + commit ccbb4c3652ee72386b8889358b829e256e1ebcda
37514 * agent/gpg-agent.c (get_agent_ssh_socket_name): Use
37515 INVALID_HANDLE_VALUE instead of 0.
37516 (handle_signal) [!HAVE_W32_SYSTEM]: Don't define.
37517 (handle_connections): Port Windows code to NPTH.
37518 * dirmngr/dirmngr.c (handle_connections): Port Windows code to NPTH.
37519 * g13/g13.c (handle_connections): Port Windows code to NPTH.
37520 * scd/scdaemon.c (handle_connections): Port Windows code to NPTH.
37523 + commit 7a7a59782766a8bde0c3e7156d14bb2b0e4a3951
37524 * configure.ac: Don't check for PTH but for NPTH.
37525 (AH_BOTTOM): Remove PTH_SYSCALL_SOFT.
37526 (have_pth): Rename to ...
37527 (have_npth): ... this.
37528 (USE_GNU_NPTH): Rename to ...
37529 (USE_GNU_PTH): ... this.
37530 * m4/npth.m4: New file.
37531 * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c,
37532 agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c,
37533 agent/trustlist.c, common/Makefile.am, common/estream.c,
37534 common/exechelp-posix.c, common/exechelp-w32.c,
37535 common/exechelp-w32ce.c, common/http.c, common/init.c,
37536 common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c,
37537 dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c,
37538 dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am,
37539 g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am,
37540 scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c,
37541 scd/scdaemon.c, tools/Makefile.am: Port to npth.
37543 2012-01-25 Werner Koch <wk@gnupg.org>
37545 Require gitlog-to-changelog to be installed.
37546 + commit 495dc68586356891b82a2d2b6367c4131fd17f08
37547 * Makefile.am (GITLOG_TO_CHANGELOG): New.
37548 (gen-ChangeLog): Use installed version of gitlog-to-changelog.
37550 2012-01-20 David Shaw <dshaw@jabberwocky.com>
37552 Changes to --min-cert-level should cause a trustdb rebuild (issue 1366)
37553 + commit deee8147aab086161c91e6aa6fb41d7148a630f6
37554 * g10/gpgv.c, g10/trustdb.c (read_trust_options): Add min_cert_level
37556 * g10/trustdb.c (check_trustdb_stale): Request a rebuild if
37557 pending_check_trustdb is true (set when we detect a trustdb
37558 parameter has changed).
37560 * g10/keylist.c (public_key_list): Use 'l' in the "tru" with-colons
37561 listing for min_cert_level not matching.
37563 * g10/tdbio.c (tdbio_update_version_record, create_version_record,
37564 tdbio_db_matches_options, tdbio_dump_record, tdbio_read_record,
37565 tdbio_write_record): Add a byte for min_cert_level in the tdbio
37568 2012-01-20 Werner Koch <wk@gnupg.org>
37570 estream: Fix unclean usage of realloc.
37571 + commit e97e2ced6cf3ee295a3cc9f8968969a1910380ea
37572 * common/estream-printf.c (_ESTREAM_PRINTF_MALLOC): Remove.
37573 (_ESTREAM_PRINTF_FREE): Remove.
37574 (_ESTREAM_PRINTF_REALLOC): New.
37575 (fixed_realloc) [!_ESTREAM_PRINTF_REALLOC]): New.
37576 (estream_vasprintf): Use my_printf_realloc instead of my_printf_malloc
37577 and my_printf_free.
37578 (dynamic_buffer_out): Use my_printf_realloc instead of realloc.
37580 Do not copy default merge commit log entries into the ChangeLog.
37581 + commit 7589e43b21c8d80c5a57ecb6eb78dfcd0b5dac46
37582 * scripts/gitlog-to-changelog: Skip merge commits.
37584 2012-01-18 Ben Kibbey <bjk@luxsci.net>
37586 Add the INQUIRE_MAXLEN status message.
37587 + commit ae981dd8f454e2a8bbc6429bed5abc5e87cc83d5
37588 This status message is used to inform the client of the maximum length
37589 of an inquired passphrase and is used in pinentry-mode=loopback.
37591 * agent/command.c (pinentry_loopback): Send the INQUIRE_MAXLEN status
37592 message before doing the inquire.
37594 2012-01-16 Jim Meyering <meyering@redhat.com>
37596 yat2m: don't dereference pointer to freed memory.
37597 + commit 4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa
37598 * doc/yat2m.c (top_parse_file): Correct macrolist-freeing loop.
37600 gpg-agent: fix lc-messages handling not to change Xauthority setting.
37601 + commit 37801918cb916ae8c641e003f204dcc70cccb29c
37602 * agent/gpg-agent.c (main): Supply omitted "break" statement for
37603 lc-messages option. Otherwise, control would fall through to the
37604 following oXauthority case and use the same value there.
37606 2012-01-15 Werner Koch <wk@gnupg.org>
37609 + commit 75a402fc25e4ec9659723dd58306aff3415736f4
37612 2012-01-14 Ben Kibbey <bjk@luxsci.net>
37614 Fix scdaemon pinentry inquire cancelation.
37615 + commit 4f21f8d6e109eae111d2da91f4c946afda4174e4
37616 Similar to commit 29af488 but also fixes PKDECRYPT and PKSIGN.
37618 * agent/call-scd.c (agent_card_pkdecrypt): Check for GPG_ERR_CANCELED
37619 when returning from the PKDECRYPT operation of scdaemon and cancel the
37621 (agent_card_pksign): Ditto.
37622 (cancel_inquire): New.
37624 2012-01-11 Werner Koch <wk@gnupg.org>
37626 gpg: Fix segv with RSA_S keys.
37627 + commit 30ec869b8c63f1edcc58110ed20b83b0e77248f8
37628 * g10/misc.c (pubkey_get_npkey, pubkey_get_nskey)
37629 (pubkey_get_nsig, pubkey_get_nenc): Map all RSA algo ids to
37632 estream: Avoid printing leading zeroes by %p on 32 bit systems.
37633 + commit b42bc48dfb4b6d4f745eb02d8de4f4dcffdacf48
37634 * common/estream-printf.c (pr_pointer): Synchronize definition of
37635 AULONG with its use.
37637 2012-01-11 David Shaw <dshaw@jabberwocky.com>
37639 Refresh sample keys.
37640 + commit 860861279bc17dd80eecc9631c4ae5d161a335fd
37643 2012-01-10 David Shaw <dshaw@jabberwocky.com>
37645 Adapt HKP fix for fingerprint/long keyid retrievals for dirmngr.
37646 + commit 3f59561cee635c6801e0a59d3abff1c064fcbdbe
37647 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Use the longest valid keyid form
37649 2012-01-06 Werner Koch <wk@gnupg.org>
37651 gpg: Make the double space in the middle of a fingerprint optional.
37652 + commit 957fe728466893bc63f5ccad197d3e245dca4bf3
37653 This change might help to c+p a fingerprint from an HTML page without
37654 being enclosed in a "pre" tag.
37655 * common/userids.c (classify_user_id): Skip a second blank in the
37656 middle of a fingerprint.
37658 gpg: Allow use of a standard space separated fingerprint.
37659 + commit 372fb4fc0661014ccd9275c89e6da2208f87155f
37660 * common/userids.c (classify_user_id): Check for space separated GPG
37663 2012-01-06 NIIBE Yutaka <gniibe@fsij.org>
37665 Merge ccid_driver_improvement branch.
37666 + commit 5988c8bfb7eafaca53c8abeb793f189acd3177c6
37667 * scd/apdu.c (ccid_keypad_operation): Rename from ccid_keypad_verify.
37668 (open_ccid_reader): Use ccid_keypad_operation for verify and modify.
37670 * scd/ccid-driver.c (VENDOR_VASCO, VASCO_920): New.
37671 (ccid_transceive_apdu_level): Permit sending packet where
37672 apdulen <= 289. Support receiving packets in a chain.
37673 (ccid_transceive_secure): Maximum is 15 for VASCO DIGIPASS 920.
37674 Support keypad_modify method such as CHANGE_REFERENCE_DATA: 0x24.
37676 2012-01-03 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
37678 Silence gcc warning.
37679 + commit ed432f030e604f7b2fd4a79c2110d92b9cde7501
37680 * sm/call-dirmngr.c (get_cached_cert): Make sure buflen is initialized.
37682 Revert last change, add comment about link() return values.
37683 + commit ff2095ad7b4be7eaf9468b6ef39fd979527ecc4f
37684 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Do not check
37685 return value of link().
37687 Fix compiler warnings.
37688 + commit 0dce26778ef8abd4fc40de689d7ec9b720d26430
37689 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Check return
37691 * g13/g13.c: Make sure err is initialized.
37692 * scd/scdaemon.c (main) [!USE_GCRY_THREAD_CBS]: Do not define ERR.
37694 Fix last change: Only set gcrypt thread callback for older versions.
37695 + commit 61ccd8d92d9d3b8ba0eca3c2969d7f6f37e16405
37696 * dirmngr/dirmngr.c, g13/g13.c: Rename FIX_GCRY_PTH_INIT to
37697 USE_GCRY_THREAD_CBS.
37699 2012-01-03 Werner Koch <wk@gnupg.org>
37701 Terminate csh commands with a semicolon also for dirmngr.
37702 + commit 682df45d15661ed3544e2ed34bcb636200cc40f9
37703 * dirmngr/dirmngr.c (main): Terminate csh style output with a semicolon.
37705 Terminate csh commands with a semicolon.
37706 + commit d01d9ff11f46cbd61b7b8c0e04431e4f0c4a8580
37709 * agent/gpg-agent.c (main): Terminate csh style output with a semicolon.
37710 * scd/scdaemon.c: Ditto.
37712 2012-01-02 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
37714 Only set gcrypt thread callback for older version of gcrypt.
37715 + commit a2d9e48fcca6cfc2dfadef6dbd3579a30314676b
37716 * agent/gpg-agent.c, dirmngr/dirmngr.c, g13/g13.c, scd/scdaemon.c
37717 (USE_GCRY_THREAD_CBS): New macro, defined if
37718 GCRY_THREAD_OPTION_VERSION is 0.
37719 (fixed_gcry_pth_init) [!USE_GCRY_THREAD_CBS]: Don't define.
37720 (main) [!USE_GCRY_THREAD_CBS]: Do not install thread callbacks.
37722 2011-12-28 David Shaw <dshaw@jabberwocky.com>
37724 Use the longest key ID available when talking to a HKP server.
37725 + commit c6aaf024651c7d55ac9fb77a53c084efb3adc1a9
37726 This is issue 1340. Now that PKSD is dead, and SKS supports long key
37727 IDs, this is safe to do. Patch from Daniel Kahn Gillmor
37728 <dkg@fifthhorseman.net>.
37730 2011-12-20 Werner Koch <wk@gnupg.org>
37732 Post-release version number update.
37733 + commit 97d1c884e62bba94e42bb5b2bb13cd3880334c31
37736 Release 2.1.0beta3.
37737 + commit 604c130a85d4203b9d84137a42673aeaff1c0bd1
37740 Prepare for the beta3 release.
37741 + commit 8e47f1e576f70d4dbe966523057fe3078006ae8b
37744 po: Update the German translation.
37745 + commit 6f02c143440865781b4e3c1753e24e55a0de40e4
37748 Add the STEED Self-Signing Nonthority certificate.
37749 + commit fe2f1826991e8130f727ee15df1a4651f679752f
37750 * doc/com-certs.pem: Install it when creating a keybox.
37752 faq: Add section on US export restrictions.
37753 + commit 779611494dbd187d09b05d2eb10faabd31a70156
37756 Require Libassuan 2.0.3.
37757 + commit 366512abe44d9e71bb2c699c29477afa6ac71cdd
37758 * configure.ac: Require Libassuan 2.0.3.
37759 * agent/call-scd.c (ASSUAN_CONVEY_COMMENTS): Remove macro replacement.
37760 * agent/command.c (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Remove
37762 (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Ditto.
37763 * scd/command.c (cmd_killscd) [ASSUAN_FORCE_CLOSE]: Ditto.
37765 2011-12-20 NIIBE Yutaka <gniibe@fsij.org>
37767 Add error log and debug log for pcsc_keypad_verify and pcsc_keypad_modify.
37768 + commit 07f20f313a0b13e5c93168a8a62ff1cbb94a4514
37769 * scd/apdu.c (pcsc_keypad_verify): Add debug log and error log.
37770 (pcsc_keypad_modify): Likewise.
37772 2011-12-19 Werner Koch <wk@gnupg.org>
37773 Ben Kibbey <bjk@luxsci.net>
37775 scd: Fix for card change returning GPG_ERR_CARD_RESET.
37776 + commit f4b7f7146349c388a2f3ce224ff2006606c66232
37777 * scd/apdu.c (apdu_connect): Do not test for zero atrlen.
37779 2011-12-16 NIIBE Yutaka <gniibe@fsij.org>
37781 Don't kill pinentry by SIGKILL but let it quit by SIGINT.
37782 + commit f6251c0d0af92331388f5e9bcd1750cbadcaca8f
37783 * agent/call-pinentry.c (agent_popup_message_stop): To pinentry, send
37784 SIGINT (was: SIGKILL).
37786 2011-12-15 David Shaw <dshaw@jabberwocky.com>
37788 Merge fix for issue 1331 from 1.4.
37789 + commit a98260c39f1c0ccdad004784cbc9440376766082
37790 * photoid.c (generate_photo_id): Check for the JPEG magic numbers
37791 instead of JFIF since some programs generate an EXIF header first.
37793 2011-12-15 Werner Koch <wk@gnupg.org>
37795 scd: Prefer application Geldkarte over DINSIG.
37796 + commit 27089564b6453deaf7b4ffe7cc5f5f290b6d892b
37797 * scd/app.c (select_application): Reorder application tests.
37799 scd: Add option --dump-atr to command APDU.
37800 + commit b22d62bd1481dfe13d60a6d16b09b9297944f063
37801 * scd/atr.c: Rewrite.
37802 * scd/Makefile.am (scdaemon_SOURCES): Add atr.c and atr.h.
37803 * scd/command.c (cmd_apdu): Add option --dump-atr.
37805 estream: New function es_fclose_snatch.
37806 + commit 7737a2c269657189a583cde7f214f20871d264f8
37807 * common/estream.c (cookie_ioctl_function_t): New type.
37808 (es_fclose_snatch): New function.
37809 (COOKIE_IOCTL_SNATCH_BUFFER): New constant.
37810 (struct estream_internal): Add field FUNC_IOCTL.
37811 (es_initialize): Clear FUNC_IOCTL.
37812 (es_func_mem_ioctl): New function.
37813 (es_fopenmem, es_fopenmem_init): Init FUNC_IOCTL.
37815 2011-12-14 Werner Koch <wk@gnupg.org>
37817 scd: Skip S/N reading for the "undefined" application.
37818 + commit 792e137ec7997a0ff5c54ff970611238d28d4ba8
37819 * scd/app.c (select_application): Skip serial number reading.
37821 scd: Add more status word values for documentation.
37822 + commit 0bac31ee9f74a25d76b08c3e0355a338908f083a
37825 scd: Add the "undefined" stub application.
37826 + commit dcd64131c60efd0189aa05d5dbce6b93547b04e3
37827 * scd/app.c (select_application): Implement the "undefined"
37830 agent: Pass comment lines from scd verbatim thru gpg-agent.
37831 + commit 45cf9de341405a228e331bd3893cbcd6b72306be
37832 * agent/call-scd.c (pass_status_thru): Pass comment lines verbatim.
37833 * tools/gpg-connect-agent.c (help_cmd_p): New.
37834 (main): Treat an "SCD HELP" the same as "HELP".
37836 scd: Fix resetting and closing of the reader.
37837 + commit 2d91febbd8d30beb7eb33f7aa80ffd5691d1d3cc
37838 * scd/command.c (update_card_removed): Do no act on an invalid VRDR.
37839 (do_reset): Ignore apdu_reset error codes for no and inactive card.
37840 Close the reader before setting the slot to -1.
37841 (update_reader_status_file): Notify the application before closing the
37844 scd: Add debug option for reader function calls.
37845 + commit 07ea8c56b507b06d4bd70e94fa51914659afac4b
37846 * scd/scdaemon.h (DBG_READER_VALUE, DBG_READER): New.
37847 * scd/apdu.c (apdu_open_reader, apdu_close_reader)
37848 (apdu_shutdown_reader, apdu_connect, apdu_disconnect)
37849 (apdu_reset, apdu_get_atr, apdu_get_status): Add debug code.
37850 (apdu_activate): Remove this unused function.
37852 2011-12-13 Werner Koch <wk@gnupg.org>
37854 scd: New option --debug-assuan-log-cats.
37855 + commit 00c760f628f4cf0fc11e79d305c172f98123f815
37856 * scd/scdaemon.c (oDebugAssuanLogCats): New.
37857 (opts): Add option --debug-assuan-log-cats.
37858 (main): Implement option.
37859 * common/asshelp.c (set_libassuan_log_cats): New.
37861 scd: Introduce a virtual reader table.
37862 + commit 24e121ef261731069868ca403b818f1168237f53
37863 The vreader table makes the code more clear by explicitly talking
37864 about APDU slots and reader indices. It also accommodates for future
37867 * scd/scdaemon.h (server_control_s): Remove READER_SLOT.
37868 * scd/scdaemon.c (scd_init_default_ctrl): Do not init READER_SLOT.
37869 * scd/app.c (check_application_conflict): Add arg SLOT.
37870 * scd/command.c (slot_status_s): Rename to vreader_s.
37871 (server_local_s): Add field VREADER_IDX as replacement for
37872 the READER_SLOT in server_control_s. Change all users.
37873 (slot_table): Rename to vreader_table. Change all users.
37874 (vreader_slot): New.
37875 (do_reset, cmd_apdu): Map vreader to apdu slot.
37876 (get_reader_slot): Rename to get_current_reader. Return -1 on error.
37877 (open_card): Map vreader toapdu slot. Pass slot to
37878 check_application_conflict.
37879 (scd_command_handler): Init VREADER_IDX.
37880 (update_reader_status_file): Reset SLOT field on error.
37882 2011-12-12 Werner Koch <wk@gnupg.org>
37884 scd: Retry command SERIALNO for an inactive card.
37885 + commit 11164662788036c4b15d30555ea33ec0b6f5a670
37886 * scd/command.c (cmd_serialno): Retry once for an inactive card.
37888 Fix detection of card removal and insertion.
37889 + commit cd29dc0f1cf7f3bd7938ffa65bf13f9a75d8c156
37890 * scd/apdu.c (apdu_connect): Return status codes for no card available
37892 * scd/command.c (TEST_CARD_REMOVAL): Also test for GPG_ERR_CARD_RESET.
37893 (open_card): Map apdu_connect status to GPG_ERR_CARD_RESET.
37895 gitlog-to-changelog: New option --tear-off.
37896 + commit ea0a21410b8fa460882c0f8de90b9291345fd4fc
37897 * scripts/gitlog-to-changelog: Add option --tear-off.
37898 * Makefile.am (gen-ChangeLog): Use that option.
37900 2011-12-07 Werner Koch <wk@gnupg.org>
37902 gpgsm: Add new validation model "steed".
37903 + commit 8a12a2000d82acfa881e8c18d028290100bf5e43
37904 * sm/gpgsm.h (VALIDATE_FLAG_STEED): New.
37905 * sm/gpgsm.c (gpgsm_parse_validation_model): Add model "steed".
37906 * sm/server.c (option_handler): Allow validation model "steed".
37907 * sm/certlist.c (gpgsm_cert_has_well_known_private_key): New.
37908 * sm/certchain.c (do_validate_chain): Handle the
37909 well-known-private-key attribute. Support the "steed" model.
37910 (gpgsm_validate_chain): Ditto.
37911 * sm/verify.c (gpgsm_verify): Return "steed" in the trust status line.
37912 * sm/keylist.c (list_cert_colon): Print the new 'w' flag.
37914 Correct punctuation in the ChangeLog summary line.
37915 + commit 14e4fdc9f97d6f12bf563adfff1e3157305d7795
37916 * Makefile.am (gen-ChangeLog): Supply --append-dot.
37918 Allow comments which will not show up in the ChangeLog.
37919 + commit cd3732841de32ce5c7841e6e158df3a5f1102f86
37920 * scripts/gitlog-to-changelog: Ignore lines after a "--" line.
37922 2011-12-06 Werner Koch <wk@gnupg.org>
37924 gpgsm: Allow specification of an AuthorityKeyIdentifier.
37925 + commit 596b84a4de58def2155d3fe56462f6607f135b69
37926 * sm/certreqgen.c (pAUTHKEYID): New.
37927 (read_parameters): Add keyword Authority-Key-Id.
37928 (proc_parameters): Check its value.
37929 (create_request): Insert an Authority-Key-Id.
37931 gpgsm: Allow arbitrary extensions for cert creation.
37932 + commit 5cdad8ff000152b4bd01953646bb87fe8703c70d
37933 * sm/certreqgen.c (pSUBJKEYID, pEXTENSION): New.
37934 (read_parameters): Add new keywords.
37935 (proc_parameters): Check values of new keywords.
37936 (create_request): Add SubjectKeyId and extensions.
37937 (parse_parameter_usage): Support "cert" and the encrypt alias "encr".
37939 gpgsm: Fix storing of the serial number.
37940 + commit 3f284e40502d8181b0b3ea66c77cd7c1252ea781
37941 * sm/certreqgen.c (create_request): Fix hex-bin conversion.
37943 2011-12-05 Werner Koch <wk@gnupg.org>
37946 + commit 9274d4d18281b3364fa8abaa821dddf124b105d7
37947 * agent/command.c (start_command_handler): Remove use of removed var.
37949 Amend the agent code with more comments.
37950 + commit 477360e8cdc458b0a36e9c7fb52a35f27766255d
37951 * agent/command.c (server_local_s): Remove unused field MESSAGE_FD.
37953 2011-12-02 Werner Koch <wk@gnupg.org>
37955 Support the Cherry ST-2000 card reader.
37956 + commit 239659d3a0b8c0c378734ca3d1e9210a02e24da7
37957 * scd/ccid-driver.c (SCM_SCR331, SCM_SCR331DI, SCM_SCR335)
37958 (SCM_SCR3320, SCM_SPR532, CHERRY_ST2000): New constants.
37959 (parse_ccid_descriptor): Use them.
37960 (scan_or_find_usb_device, ccid_transceive_secure): Handle Cherry
37961 ST-2000. Suggested by Matthias-Christian Ott.
37963 Avoid possible double free in export.c.
37964 + commit 96dc146fa17a7853277dbf3dc771c585a815c247
37965 * g10/export.c (transfer_format_to_openpgp): Avoid possible double
37966 free of LIST. Reported by NIIBE Yutaka.
37968 2011-12-02 NIIBE Yutaka <gniibe@fsij.org>
37970 Fix pinpad input support for passphrase modification.
37971 + commit bf37c32367ba149559385ee90b6435cef8bd6412
37972 * apdu.c (pcsc_keypad_verify): Have dummy Lc field with value 0.
37973 (pcsc_keypad_modify): Likewise.
37974 (pcsc_keypad_modify): It's only for ISO7816_CHANGE_REFERENCE_DATA.
37975 bConfirmPIN value is determined by the parameter p0.
37977 * app-openpgp.c (do_change_pin): The flag use_keypad should be 0 when
37978 reset_mode is on, or resetcode is on. use_keypad only makes sense for
37979 iso7816_change_reference_data_kp.
37981 * iso7816.h (iso7816_put_data_kp): Remove.
37982 (iso7816_reset_retry_counter_kp): Remove.
37983 (iso7816_reset_retry_counter_with_rc_kp): Remove.
37984 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
37986 * iso7816.c (iso7816_put_data_kp): Remove.
37987 (iso7816_reset_retry_counter_kp): Remove.
37988 (iso7816_reset_retry_counter_with_rc_kp): Remove.
37989 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
37991 2011-12-01 Werner Koch <wk@gnupg.org>
37993 Add hook to check the commit log syntax.
37994 + commit 29e96e6b9a8e68e6554dd48bc2ce68ae9525d29f
37995 * autogen.sh: Install commit-msg hook for git.
37997 Generate the ChangeLog from commit logs.
37998 + commit 2336b09779d313c1594acf6df3bd8a8486e90458
37999 * scripts/gitlog-to-changelog: New script. Taken from gnulib.
38000 * scripts/git-log-fix: New file.
38001 * scripts/git-log-footer: New file.
38002 * doc/HACKING: Describe the ChangeLog policy
38003 * ChangeLog: New file.
38004 * Makefile.am (EXTRA_DIST): Add new files.
38005 (gen-ChangeLog): New.
38006 (dist-hook): Run gen-ChangeLog.
38008 Rename all ChangeLog files to ChangeLog-2011.
38010 2011-12-01 Werner Koch <wk@gnupg.org>
38012 NB: Changes done before December 1st, 2011 are described in
38013 per directory files named ChangeLog-2011. See doc/HACKING for
38017 Copyright (C) 2011 Free Software Foundation, Inc.
38019 Copying and distribution of this file and/or the original GIT
38020 commit log messages, with or without modification, are
38021 permitted provided the copyright notice and this notice are