1 2022-12-16 Werner Koch <wk@gnupg.org>
4 + commit c0556edb80518720b0d884251685fe008c8f0429
7 common: Fix translations in --help for gpgrt < 1.47.
8 + commit 30a98b0b2197709a1a89fda467951e2c269e6a26
9 * common/mapstrings.c (map_static_macro_string): Add hack.
11 gpg: Do not continue the export after a cancel for the primary key.
12 + commit 49d16f4f6edf872babf04ae383974d891871a33b
13 * g10/export.c (do_export_one_keyblock): Handle a cancel for the
16 gpg: Replace use of PRIu64 in log_debug.
17 + commit f297803a67cd6cff0d766dfe86798bbca602c083
18 * g10/cipher-aead.c (do_flush): Use %llu and a cast.
19 * g10/decrypt-data.c (aead_underflow): Ditto.
21 Update NEWS for 2.4.0.
22 + commit fc8b811283d73251ddc97c649f0babe3005bb20b
25 2022-12-16 NIIBE Yutaka <gniibe@fsij.org>
27 tests: Fix make check with GPGME.
28 + commit c19ea75f10d6278569619f90977ce7c820e9319d
29 * tests/gpgme/Makefile.am: Create directories for logs.
31 2022-12-12 Werner Koch <wk@gnupg.org>
33 agent: Allow arguments to "scd serialno" in restricted mode.
34 + commit f9ea5dc831f9dd42877cd4e8bed9288b45250447
35 * agent/command.c (cmd_scd): Allow it.
37 2022-12-09 Werner Koch <wk@gnupg.org>
39 scd:p15: Skip deleted records.
40 + commit 061efac03ff9b471138c76c61edb9f2c709a82ab
41 * scd/app-p15.c (select_and_read_record): Special case deleted
42 records. Support 3 byte TLVs.
43 (read_ef_prkdf): Skip deleted records.
44 (read_ef_pukdf): Ditto.
46 (read_ef_aodf): Ditto.
48 2022-12-09 NIIBE Yutaka <gniibe@fsij.org>
50 build: Remove Windows CE support.
51 + commit f32d0c9c0ff7a62d17e6c46e0e21fe00be22c114
52 * agent/Makefile.am [HAVE_W32CE_SYSTEM]: Remove.
53 * am/cmacros.am [HAVE_W32CE_SYSTEM]: Remove.
54 * autogen.sh: Remove W32ce_ variables.
55 * configure.ac: Likewise.
56 * dirmngr/Makefile.am (extra_bin_ldflags): Remove.
57 * g10/Makefile.am [HAVE_W32CE_SYSTEM]: Remove.
58 * kbx/Makefile.am: Likewise.
59 * sm/Makefile.am (extra_bin_ldflags): Remove.
60 * tools/Makefile.am (extra_bin_ldflags): Remove.
62 2022-12-06 Werner Koch <wk@gnupg.org>
64 wkd: Do not send/install/mirror expired user ids.
65 + commit 278f85d1bc6cd012b3b2e87536e50954b21d2d91
66 * tools/gpg-wks.h (struct uidinfo_list_s): Add fields expired and
68 * tools/wks-util.c (append_to_uidinfo_list): Add args expired and
70 (set_expired_revoked): New.
71 (wks_list_key): Set expired and revoked.
72 (wks_cmd_install_key): Skip expired uids.
73 * tools/gpg-wks-client.c (command_check): Print flags.
74 (command_send): Ignore expired keys.
75 (mirror_one_key): Ditto.
77 * g10/export.c (do_export_stream): Silence warning.
79 2022-12-05 Werner Koch <wk@gnupg.org>
81 gpgsm: Print the revocation time also with --verify.
82 + commit 58819c024a11dd89b01dd00ab7becba64feec7c7
83 * sm/certchain.c (is_cert_still_valid): Print revocation reason.
85 gpgsm: Fix "problem re-searching certificate" case.
86 + commit 1c2bdd80b18fa43190ed7daff57a741e2a73cae2
87 * sm/keydb.c (keydb_set_cert_flags): Fix error test.
89 gpgsm: Print revocation date and reason in cert listings.
90 + commit b6abaed2b5f6a6e52069f370c61006abdc81cdf5
91 * dirmngr/ocsp.c (ocsp_isvalid): Add args r_revoked_at and
93 * dirmngr/server.c (cmd_isvalid): Emit a new REVOCATIONINFO status.
94 (cmd_checkocsp): Ditto.
96 * sm/call-dirmngr.c (struct isvalid_status_parm_s): Add new fields.
97 (isvalid_status_cb): Parse REVOCATIONINFO.
98 (gpgsm_dirmngr_isvalid): Add args r_revoked_at and
101 * sm/gpgsm.h (struct server_control_s): Add fields revoked_art and
103 * sm/keylist.c (list_cert_raw): Print revocation date.
104 (list_cert_std): Ditto.
106 gpgsm: Silence the "non-critical certificate policy not allowed".
107 + commit 4f1b9e3abb337470e5e4809b3a7f2df33f5a63a4
108 * sm/certchain.c (check_cert_policy): Print non-critical policy
109 warning only in verbose mode.
111 gpgsm: Always use the chain model if the root-CA requests this.
112 + commit 7fa1d3cc821dca1ea8e1c80a0bdd527177c185ee
113 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Do not use
114 option --force-default-responder.
115 * sm/certchain.c (is_cert_still_valid): Rename arg for clarity.
116 (gpgsm_validate_chain): Always switch to chain model.
118 2022-12-02 Werner Koch <wk@gnupg.org>
120 gpg: New export option "mode1003".
121 + commit 1a85ee9a431bd2243e0ad79ce5eefa78e274a491
122 * agent/command.c (cmd_export_key): Add option --mode1003.
123 (command_has_option): Ditto.
124 * g10/build-packet.c (do_key): Implement mode 1003.
125 * g10/parse-packet.c (parse_key): Ditto.
126 * g10/options.h (EXPORT_MODE1003): New.o
127 * g10/call-agent.c (agent_export_key): Add arg mode1003.
128 * g10/export.c (parse_export_options): Add "mode1003"
129 (secret_key_to_mode1003): New.
130 (receive_seckey_from_agent): Add arg mode1003.
131 (do_export_one_keyblock): Pass option down.
133 gpg: Remove a mostly duplicated function.
134 + commit 1d88e14de751b19ae5637c4f6b0a1882c2f3b554
135 * g10/export.c (receive_seckey_from_agent): Add arg r_key.
136 (do_export_one_keyblock): Pass NULL for new arg.
137 (receive_raw_seckey_from_agent): Remove.
138 (export_secret_ssh_key): Use receive_seckey_from_agent.
139 * g10/keygen.c (card_store_key_with_backup): Pass NULL for new arg.
141 2022-12-02 NIIBE Yutaka <gniibe@fsij.org>
143 tests: Simplify fake-pinentry to use the option only.
144 + commit 0a93b5b96a3bfcca52a8288e9847f06e495b461e
145 * tests/openpgp/fake-pinentry.c (parse_pinentry_user_data): New.
146 (main): Don't use PINENTRY_USER_DATA env var.
148 tests: Fix fake-pinentry for Windows.
149 + commit 7c6b014d3bc6ea4237dd46c99f3a3d570796851b
150 * tests/openpgp/fake-pinentry.c (main): Override PINENTRY_USER_DATA,
153 tests: Fix make check-all.
154 + commit 7663fdd983d2ebc4a4f86e4f2ec6d518e036b90f
155 * Makefile.am (TESTS_ENVIRONMENT): Add GNUPG_IN_TEST_SUITE.
157 2022-12-01 Werner Koch <wk@gnupg.org>
159 agent: Fix import of protected v5 keys.
160 + commit e094616cb75d7a4b551ae3db9ea1d5073e3237b6
161 * agent/cvt-openpgp.c (convert_from_openpgp_main): Take care of
164 gpgsm: Change default algo to AES-256.
165 + commit 2d8ac55d26e70f34c75ae892d84db90454b23c79
166 * sm/gpgsm.c (DEFAULT_CIPHER_ALGO): Change.
168 2022-12-01 NIIBE Yutaka <gniibe@fsij.org>
170 tests: Put a workaround for semihosted environment.
171 + commit 1b434111a18680a97e9997af71c261058cabc5fa
172 * tests/openpgp/defs.scm [*win32*]: Use --build-prefix option.
174 tests: More fix for semihosted environment.
175 + commit 594c3274d669ddebd145bef33013a66d3e03e27d
176 * common/all-tests.scm: Conditionalize by *win32*.
177 * tests/cms/Makefile.am (GPGSM): Add missing GPGSM.
178 * tests/pkits/Makefile.am (TESTS_ENVIRONMENT): Add EXEEXT.
180 tests: Support semihosted environment.
181 + commit f182c284fb2c093f8dbfc6a4b815762f36cc5217
182 * Makefile.am (check-all): Add EXEEXT.
183 * agent/all-tests.scm: Append EXEEXT.
184 * common/all-tests.scm: Likewise.
185 * g10/all-tests.scm: Likewise.
186 * g13/all-tests.scm: Likewise.
188 tests: Fix tests under cms.
189 + commit a9a1ee8726335c28398b41d39a5881c0f9bcb5de
190 * tests/cms/all-tests.scm: Remove merge mistake.
192 tests,w32: Fix for semihosted environment.
193 + commit e1e26a49bf2c8c74360594ced29286c7dca468e9
194 * tests/cms/Makefile.am (OLD_TESTS_ENVIRONMENT): Add EXEEXT.
196 2022-11-30 NIIBE Yutaka <gniibe@fsij.org>
198 w32: Fix for tests on semihosted environment.
199 + commit 50c65153605042863fda59fe2ec837f1a7b14658
200 * Makefile.am (all-local): Make links with EXEEXT.
202 w32: Fix gnupg_unsetenv.
203 + commit 8e8971403f7510f4d7c746fc0ffcdef73c0baf8b
204 * common/sysutils.c (gnupg_unsetenv): Don't use nonstandard extension
205 of "NAME", but "NAME=".
207 2022-11-29 Werner Koch <wk@gnupg.org>
209 wkd: New option --add-revocs and some fixes.
210 + commit c3f9f2d497b174ceb12c2dde35225a6ba016c835
211 * tools/gpg-wks.h (opt): Add add_revocs.
212 * tools/wks-util.c (wks_get_key): Add arg 'binary'.
213 (wks_armor_key): New.
214 (wks_find_add_revocs): New.
215 (wks_cmd_install_key): Get key in binary mode and add revocations if
217 * tools/gpg-wks-client.c (oAddRevocs): New.
218 (opts): Add --add-revocs.
219 (parse_arguments): Set option,
220 (command_send): Get key in binary mode, add revocations if enabled,
221 and explictly armor key. Remove kludge to skip the Content-type line
224 (mirror_one_keys_userid): Always filter the key to get rid of the
225 armor as received from dirmngr. Add revocations from the local
228 wkd: Make use of --debug extprog.
229 + commit 34fafa50f19c708abc9119aa6369425c47317da5
230 * tools/wks-util.c (debug_gpg_invocation): New.
231 (get_key_status_cb): Enable debug output.
232 (wks_get_key): Show gpg invocation.
233 (wks_list_key): Ditto.
234 (wks_filter_uid): Ditto.
236 2022-11-28 Werner Koch <wk@gnupg.org>
238 gpg: New export-filter export-revocs.
239 + commit c985b52e71a83d14099f00f80e3588bd3ad28b98
240 * g10/options.h (EXPORT_REVOCS): New.
241 * g10/export.c (export_select_filter): New.
242 (struct export_filter_attic_s): Add field.
243 (cleanup_export_globals): Cleanup.
244 (parse_export_options): Add option "export-revocs".
245 (parse_and_set_export_filter): Parse the select type.
246 (do_export_revocs): New.
247 (do_export_stream): Add a way to select things for export.
249 2022-11-28 NIIBE Yutaka <gniibe@fsij.org>
251 gpg: Fix double-free in gpg --card-edit.
252 + commit a4698d0fb20a11bcb5f5e4485ee334af02b48ee1
253 * g10/card-util.c (change_name): Don't free ISONAME here.
255 2022-11-28 Werner Koch <wk@gnupg.org>
257 gpg: Make --require-compliance work with out --status-fd.
258 + commit 2aacd843ad6bab248f7d2bfc727d44a7f95811e5
259 * g10/mainproc.c (proc_encrypted): Set complaince_de_vs also if
260 require-compliance is set.
262 2022-11-25 Werner Koch <wk@gnupg.org>
264 gpg: New option --list-filter.
265 + commit 1324dc3490b02c4ff818655db1474c594f04e4ec
266 * g10/gpg.c (oListFilter): New.
267 (opts): Add --list-filter.
268 (main): Parse oListFilter.
269 * g10/keylist.c: Include init.h and recsel.h.
270 (struct list_filter_s, list_filter): New.
271 (release_list_filter): New.
272 (cleanup_keylist_globals): New.
273 (parse_and_set_list_filter): New.
274 (list_keyblock): Implement --list-filter type "select".
276 * g10/import.c (impex_filter_getval): Add scope support and new
277 property names "key-size", "algostr", "origin", "lastupd", and "url".
279 dirmngr: Silence ocsp debug output.
280 + commit d70779bdc60c40c895dcdcb846c10a7b9703263b
281 * dirmngr/ocsp.c (check_signature_core): No debug output
283 2022-11-24 NIIBE Yutaka <gniibe@fsij.org>
285 tests: Fix to support --enable-all-tests and variants.
286 + commit 1246e16432b4240ad81c0bd757d7458b609dfd96
287 * tests/gpgscm/tests.scm (test::scm): Add VARIANT argument.
288 (tests::new): Likewise.
289 (open-log-file, report): Support VARIANT.
290 * tests/gpgme/all-tests.scm (setup-c, setup-py): Follow the change.
291 * tests/cms/all-tests.scm: Likewise.
292 * tests/cms/run-tests.scm: Likewise.
293 * tests/migrations/all-tests.scm: Likewise.
294 * tests/migrations/run-tests.scm: Likewise.
295 * tests/openpgp/all-tests.scm: Likewise.
296 * tests/openpgp/run-tests.scm: Likewise.
298 tests:w32: Fix for non-dot file name for Windows.
299 + commit 7071f3076287f2967ab512eed46b868970702fac
300 * tests/migrations/from-classic.scm (assert-migrated): Handle the case
303 tests:gpgscm:w32: Fix for GetTempPath.
304 + commit 7fe524e1828ec80f1d776711614e5620a42779f8
305 * tests/gpgscm/ffi.c (do_get_temp_path): Remove the last backslash.
307 tests: Keep .log files in objdir.
308 + commit 1372b17731872d6db732b7623b27ea3e90db6331
309 * tests/gpgscm/tests.scm (open-log-file): Keep the log file in objdir.
311 tests: Use 233 for invalid value of FD.
312 + commit 7ab2e4386ffe6e435129f84860e1d90779268197
313 * tests/openpgp/issue2941.scm: Use 233.
315 2022-11-18 NIIBE Yutaka <gniibe@fsij.org>
317 w32: Fix gnupg_tmpfile for possible failure.
318 + commit ce5bed2800e59d5866b60648ee6487e5fcb72012
319 * common/sysutils.c (gnupg_tmpfile): Use different value for next
322 2022-11-17 Werner Koch <wk@gnupg.org>
324 scd: Redact --debug cardio output of a VERIFY APDU.
325 + commit 9f7ff43672478b213582125a7d288c96c5bb73b9
326 * scd/apdu.c (pcsc_send_apdu) [DBG_CARD_IO]: Detect and redact a
328 (send_apdu_ccid): Ditto.
330 2022-11-16 NIIBE Yutaka <gniibe@fsij.org>
332 common: Remove Windows CE support in common.
333 + commit 18a3ce1c9bd767e88d426cf618441a3313888473
334 * common/Makefile.am (HAVE_W32CE_SYSTEM): Remove conditional build.
335 (common_sources): Remove exechelp-w32ce.c.
336 * common/asshelp.c [HAVE_W32CE_SYSTEM]: Remove the support.
337 * common/common-defs.h [HAVE_W32CE_SYSTEM]: Likewise.
338 * common/dotlock.c [HAVE_W32CE_SYSTEM]: Likewise.
339 * common/exechelp-posix.c [HAVE_W32CE_SYSTEM]: Likewise.
340 * common/exechelp-w32.c [HAVE_W32CE_SYSTEM]: Likewise.
341 * common/gettime.c [HAVE_W32CE_SYSTEM]: Likewise.
342 * common/exechelp-w32ce.c: Remove.
343 * po/POTFILES.in: Update to remove common/exechelp-w32ce.c.
345 2022-11-15 Werner Koch <wk@gnupg.org>
347 gpgsm: Fix colon outout of ECC encryption certificates.
348 + commit f5c3f13609361dfeb03722161b1fc93f5a33dcae
349 * sm/keylist.c (print_capabilities): Add arg algo and use it to check
350 for ECC capabilities.
351 (list_cert_colon): Call with algo.
353 scd:nks: Fix ECC signing if key not given by keygrip.
354 + commit 2c4757352da6363842887f786e3bc26f27a40591
355 * scd/app-nks.c (keygripstr_from_pk_file): Set r_algo if not in cache.
357 dirmngr: Fix verification of ECDSA signed CRLs.
358 + commit 868dabb4027a03f4ce39be3c143b480bccde1a63
359 * dirmngr/crlcache.c (finish_sig_check): Use raw value for the data.
361 2022-11-10 Werner Koch <wk@gnupg.org>
363 agent: Allow trustlist on Windows in Unicode homedirs.
364 + commit 80ccded0421e45098a839b713f38f709b7567a96
365 * agent/trustlist.c (agent_marktrusted): Use gnupg_access.
367 gpg: Fix verification of cleartext signatures with overlong lines.
368 + commit 976e9d608367f481f21ab13ec6125dc8ab3ad345
369 * g10/armor.c (fake_packet): Indicate truncated lines by inserting a
371 (armor_filter): Replace assert by log_assert.
373 2022-11-09 NIIBE Yutaka <gniibe@fsij.org>
375 gpg: Move w32_system function.
376 + commit 8afa9735a6968ccd4be4e22a98d5b775df0c695a
377 * g10/exec.h (w32_system): Not exposed.
378 * g10/exec.c (w32_system): Move to ...
379 * g10/photoid.c: here.
381 2022-11-04 Werner Koch <wk@gnupg.org>
383 gpg: New option --quick-update-pref.
384 + commit d40d23b233f0b2e6fc25937f1632ac5b9d4f61e5
385 * g10/gpg.c (aQuickUpdatePref): New.
386 (opts): Add --quick-update-pref.
388 * g10/keyedit.c (keyedit_quick_update_pref): New.
389 (menu_set_preferences): Add arg 'unattended' and adjust caller.
391 gpg: New list-options show-pref and show-pref-verbose.
392 + commit 811cfa34cb3e7166f0cf1f94565504dee21cd9f5
393 * g10/options.h (LIST_SHOW_PREF): New.
394 (LIST_SHOW_PREF_VERBOSE): New.
395 * g10/gpg.c (parse_list_options): Add new options.
396 * g10/keyedit.c (show_prefs): Factor code out to ...
397 * g10/keylist.c (show_preferences): new.
398 (list_keyblock_print): Call show_preferences.
400 tests: Add tests to check that OCB is only used for capable keys.
401 + commit 1be272d04e767c467d4ad79ca3a1cb96ee9ce4e1
402 * tests/openpgp/samplekeys/ed25519-cv25519-sample-2.asc: New.
403 * tests/openpgp/samplekeys/ed25519-cv25519-sample-1.asc: Add AEAD
405 * tests/openpgp/defs.scm (tr:gpgstatus): New.
406 (create-legacy-gpghome): Also import .key private keys.
407 * tests/openpgp/encrypt.scm: Add OCB tests.
409 2022-11-02 Werner Koch <wk@gnupg.org>
411 gpg: Make --list-packets work w/o --no-armor for plain OCB packets.
412 + commit 82c4f26b67e9eaaaae14e8d914fb6bb86dcbfb7e
413 * g10/armor.c (is_armored): Add PKT_ENCRYPTED_AEAD.
415 tests: Add symmetric decryption tests.
416 + commit e284f62b1c6d710eb0c22cb2924a98350766ed5b
417 * tests/openpgp/decrypt-sym.scm: New.
418 * tests/openpgp/samplemsgs/enc-sym-cfb-1.asc: New.
419 * tests/openpgp/samplemsgs/enc-sym-cfb-2.asc: New.
420 * tests/openpgp/samplemsgs/enc-sym-ocb-1.asc: New.
421 * tests/openpgp/samplemsgs/enc-sym-ocb-2.asc: New.
423 tests: Add tr:assert-same function.
424 + commit 9b24d8ab5018c20dc6c917b5a89b3b1fcda3e6f9
425 * tests/gpgscm/tests.scm (tr:assert-same-string): New.
426 * tests/openpgp/shell.scm: Option to drop into a REPL.
428 agent: Avoid blanks in the ssh key's comment.
429 + commit bd612f23607d2c4d4adbe3a3ddc28a1711f5308b
430 * agent/command-ssh.c (card_key_available): Replace blanks.
432 2022-11-02 NIIBE Yutaka <gniibe@fsij.org>
434 build: Update m4 files.
435 + commit 2c1aaed621918d3808e904a34ddcfcb79eb89d96
436 * m4/ksba.m4: Update from libksba master.
437 * m4/libassuan.m4: Update from libassuan master.
438 * m4/libgcrypt.m4: Update from libgcrypt master.
439 * m4/npth.m4: Update from npth master.
440 * m4/ntbtls.m4: Update from npth master.
442 2022-10-31 Werner Koch <wk@gnupg.org>
444 gpg: Merge --rfc4880bis features into --gnupg.
445 + commit 4583f4fe2e11b3dd070066628c3f16776cc74f72
446 * g10/gpg.c (oRFC4880bis): Remove.
447 (opts): Make --rfc4880bis a Noop.
448 (compliance_options): Make rfc4880bis to gnupg.
449 (set_compliance_option): Remove rfc4880bis stuff.
450 (main): Ditto. Note that this now activates the --mimemode option.
451 * g10/keygen.c (keygen_set_std_prefs): Remove rfc4880bis protection.
452 (keygen_upd_std_prefs): Always announce support for v5 keys.
453 (read_parameter_file): Activate the v4 and v5 keywords.
455 gpg: Allow only OCB for AEAD encryption.
456 + commit 5a2cef801d3506bedd700db1a5d88b7a75c4083b
457 * g10/gpg.c (opts): New option--force-ocb as alias for force-aead.
458 Turn --aead-algo and --personal-aead-preferences into dummy options.
459 (build_list_md_test_algo, build_list_aead_algo_name): Remove.
460 (my_strusage): Remove output of AEAD algos.
461 (main): Remove code from the --aead options.
462 * g10/encrypt.c (encrypt_seskey): Make file local.
463 (use_aead): Remove requirement for rfc4880bis. Always return
465 * g10/main.h (DEFAULT_AEAD_ALGO): Removed unused macro.
466 * g10/misc.c (default_aead_algo): Remove.
467 * g10/pkclist.c (select_aead_from_pklist): Return AEAD_ALGO_OCB or 0.
468 (select_algo_from_prefs): Remove personal AEAD algo setting.
469 * g10/keygen.c (keygen_set_std_prefs): Remove AEAD preference option
471 * g10/options.h (opt): Remove def_aead_algo and personal_aead_prefs.
473 gpg: New option --compatibility-flags.
474 + commit 03f04dfb9a03f0b10dfd7e01ee06df7495b95667
475 * g10/gpg.c (oCompatibilityFlags): New.
477 (compatibility_flags): New list.
478 (main): Set flags and print help.
479 * g10/options.h (opt): Add field compatibility_flags.
481 2022-10-28 Werner Koch <wk@gnupg.org>
483 gpgsm: Also announce AES256-CBC in signatures.
484 + commit b71a14238dd2e2a62111cba492a494f562da3f6c
485 * sm/sign.c (gpgsm_sign): Add new capability.
487 gpg: Fix trusted introducer for user-ids with only the mbox.
488 + commit 0ef54e644f1945337c5c492dbcad898baee83026
489 * g10/trustdb.c (check_regexp): Kludge to match user-ids with only an
492 gpg: Import stray revocation certificates.
493 + commit 7aaedfb10767c74f3e6868dd1563cbbf1282ab2f
494 * g10/kbnode.c (new_kbnode2): New.
495 * g10/import.c (delete_inv_parts): New arg r_otherrevsigs to store
496 misplaced revocations.
497 (import_revoke_cert): Allow to pass an entire list.
498 (import_one): Import revocations found by delete_inv_parts.
500 2022-10-28 NIIBE Yutaka <gniibe@fsij.org>
502 agent: Automatically convert to extended key format by KEYATTR.
503 + commit ed6eb9019248dbbd36f16e5b412f5a115057bcfc
504 * agent/command.c (cmd_keyattr): Reject when disabled extended key
505 format. Handle the case when key is in non-extended format.
507 2022-10-25 Werner Koch <wk@gnupg.org>
509 card: New commands "gpg" and "gpgsm".
510 + commit 9c4691c73e9ebd0126cf4c456b83b6ad6eeaed74
511 * tools/gpg-card.c: Include exechelp.h
513 (enum cmdids): Add cmdGPG and cmdGPGSM.
514 (cmds): Add commands "gpg" and "gpgsm"
515 (dispatch_command, interactive_loop): Call them.
517 card: Also show fingerprints of known X.509 certificates.
518 + commit f3198f9d705afe3cd26f4ee7ca42633e62fadc6a
519 * tools/gpg-card.c (list_one_kinfo): Show fpr.
521 scd:nks: Support non-ESIGN signing with the Signature Card v2.
522 + commit 8361e13ef212f5be35b613084916b5ebad2714c6
523 * scd/app-nks.c (do_sign): Handle ECC for NKS cards
525 gpgsm: Allow ECC encryption keys with just keyAgreement specified.
526 + commit 6bd0dd762c0d6b6860894152cb51e23b0a55bfba
527 * sm/certlist.c (cert_usage_p): Allow keyAgreement for ECC.
528 * sm/fingerprint.c (gpgsm_is_ecc_key): New.
530 gpgsm: Use macro constants for cert_usage_p.
531 + commit 50efcf2eb0d158dd829f8cda90ac81d0b515d46d
532 * sm/certlist.c (USE_MODE_): New. Use them for easier reading.
534 2022-10-24 NIIBE Yutaka <gniibe@fsij.org>
536 build: Update gpg-error.m4.
537 + commit b9d05774f565a895a41764310308984a33be3c84
538 * m4/gpg-error.m4: Update from libgpg-error 1.46.
540 2022-10-20 NIIBE Yutaka <gniibe@fsij.org>
542 agent,common,dirmngr,tests,tools: Remove spawn PREEXEC argument.
543 + commit de01fb8131fd8d11de50e21b7351af99a3515a94
544 * common/exechelp-posix.c (do_exec): Remove PREEXEC argument.
545 (gnupg_spawn_process): Likewise.
546 (gnupg_spawn_process_fd): Follow the change of do_exec.
547 (gnupg_spawn_process_detached): Likewise.
548 * common/exechelp-w32.c (gnupg_spawn_process): Remove PREEXEC.
549 * common/exechelp.h (gnupg_spawn_process): Remove PREEXEC.
550 * agent/genkey.c (do_check_passphrase_pattern): Follow the change.
551 * common/exectool.c (gnupg_exec_tool_stream): Likewise.
552 * dirmngr/ldap-wrapper.c (ldap_wrapper): Likewise.
553 * tests/gpgscm/ffi.c (do_spawn_process): Likewise.
554 * tools/gpgconf-comp.c (gc_component_check_options): Likewise.
555 (retrieve_options_from_program): Likewise.
556 * tools/gpgconf.c (show_versions_via_dirmngr): Likewise.
557 * tools/gpgtar-create.c (gpgtar_create): Likewise.
558 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
559 * tools/gpgtar-list.c (gpgtar_list): Likewise.
561 2022-10-18 NIIBE Yutaka <gniibe@fsij.org>
563 gpg: Move NETLIBS after GPG_ERROR_LIBS.
564 + commit 0f13ccd0e070ef87380662fe54304a784fb2cd80
565 * g10/Makefile.am (LDADD): Remove NETLIBS.
566 (gpg_LDADD, gpgv_LDADD): Add NETLIBS after GPG_ERROR_LIBS.
567 ((t_keydb_LDADD, t_keydb_get_keyblock_LDADD): Likewise.
568 (t_stutter_LDADD): Likewise.
570 2022-10-14 NIIBE Yutaka <gniibe@fsij.org>
572 gpg: Use GCRY_KDF_ONESTEP_KDF with newer libgcrypt in future.
573 + commit cf2d52cfc3ee4e557bdd093a29dc6409c1000b1a
574 * g10/ecdh.c (derive_kek): Use GCRY_KDF_ONESTEP_KDF.
576 common,w32: Fix struct stat on Windows.
577 + commit fe28e088a9c2d4945b720b045b4fa74d2de3d895
578 * common/sysutils.c [HAVE_W32_SYSTEM] (gnupg_stat): Select
579 appropriate structure.
581 agent,w32: Support Win32-OpenSSH emulation by gpg-agent.
582 + commit c51139f2bc546c6bd4548e24a604f2178a2b8366
583 * agent/agent.h (start_command_handler_ssh_stream): New.
584 * agent/command-ssh.c (start_command_handler_ssh_stream): New.
585 * agent/gpg-agent.c (oWin32OpenSSHSupport): New.
586 (W32_DEFAILT_AGENT_PIPE_NAME): New.
587 (main): Add oWin32OpenSSHSupport support.
588 (win32_openssh_thread): New.
589 (handle_connections): Spawn win32_openssh_thread.
590 * configure.ac (NEED_GPGRT_VERSION): Require libgpg-error 1.46.
592 common: Don't use FD2INT for POSIX-only code.
593 + commit 5f1ce6cef5fe2d4e0fa973316744f9a23af6a39c
594 * common/iobuf.c [!HAVE_W32_SYSTEM] (iobuf_get_filelength): Use fp.
596 dirmngr: Fix build with no LDAP support.
597 + commit 7011286ce6e1fb56c2989fdafbd11b931c489faa
598 * dirmngr/server.c [USE_LDAP] (start_command_handler): Conditionalize.
600 2022-10-13 Werner Koch <wk@gnupg.org>
603 + commit 6f12f952dad1783710ded2f152f058065b5941fb
606 2022-10-13 Alexander Kulbartsch <alexander.kulbartsch@gnupg.com>
608 wkd: gpg-wks-client --send checks if build with sendmail support.
609 + commit 55eef71dbed7b98dc5b1a3750d10c8cb0df2cff2
610 * tools/gpg-wks-client.c (main): Return GPG_ERR_NOT_IMPLEMENTED if
611 gnupg was build without sendmail support. (NAME_OF_SENDMAIL=="")
613 2022-10-12 Werner Koch <wk@gnupg.org>
615 agent: Introduce attribute "Remote-list" to KEYINFO.
616 + commit 1383aa475059e212fcd61c85046bfc80fcb8e708
617 * agent/command.c (do_one_keyinfo): Add arg list_mode. Check
618 attribute Remote-list.
619 (cmd_keyinfo): Change semantics to return nothing in restricted list
622 2022-10-07 Werner Koch <wk@gnupg.org>
624 wkd: Implement --blacklist option for gpg-wks-client.
625 + commit b0b4e24c4fa80c10d310a229f5a0c65a57ad9393
626 * tools/gpg-wks-client.c (blacklist_array, blacklist_array_len): New.
627 (parse_arguments): Install blacklist.
629 (cmp_blacklist, add_blacklist, is_in_blacklist): New.
630 (mirror_one_key): Check list.
631 * tools/gpg-wks.h (opt): Remove field blacklist.
633 wkd: Restrict gpg-wks-client --mirror to the given domains.
634 + commit 0a151548b623813d48516a4629b7c3884875a384
635 * tools/gpg-wks-client.c (domain_matches_mbox): New.
636 (mirror_one_key): Skip non-matching domains.
637 (command_mirror): Change args to allow for several domains.
639 wkd: Silence gpg-wks-client diagnostics from gpg.
640 + commit 4364283f757fceab454d48d461a9f88c31247a07
641 * tools/gpg-wks-client.c (add_user_id): PAss --quiet to gpg unless we
642 are running in double verbose mode.
643 (decrypt_stream): Ditto
644 (encrypt_response): Ditto.
645 (mirror_one_keys_userid): Ditto.
646 * tools/wks-util.c (wks_get_key): Ditto.
647 (wks_list_key): Ditto.
648 (wks_filter_uid): Ditto.
650 common: Protect against a theoretical integer overflow in tlv.c.
651 + commit 94d13f53a3b4c49472db1b17f12844c94a69aba4
652 * common/tlv.c (parse_ber_header): Protect agains integer overflow.
654 2022-10-07 NIIBE Yutaka <gniibe@fsij.org>
656 gpg: Fix wrong use of FD2INT with iobuf_fdopen_nc.
657 + commit d68a803c4760415204fb3e7af4c0195ee2cd09ad
658 * g10/decrypt.c (decrypt_message_fd): Use INPUT_FD directly.
659 * g10/encrypt.c (encrypt_crypt): Use FILEFD directly.
661 2022-10-06 Werner Koch <wk@gnupg.org>
663 wkd: New command --mirror for gpg-wks-client.
664 + commit 7ccd489aa2e5c5ef6c4554c9f04dd74394b43409
665 * tools/gpg-wks-client.c (aMirror,oBlacklist,oNoAutostart): New.
666 (opts): Add ----mirror, --no-autostart, and --blacklist.
667 (parse_arguments): Parse new options.
668 (main): Parse common.conf. Implement aMirror.
669 (mirror_one_key_parm): New.
670 (mirror_one_keys_userid, mirror_one_key): New.
671 (command_mirror): New.
673 * tools/gpg-wks.h (struct uidinfo_list_s): Add fields flags.
674 * tools/wks-util.c (wks_cmd_install_key): Factor some code out to ...
675 (wks_install_key_core): new.
677 * tools/call-dirmngr.c (wkd_dirmngr_ks_get): New.
679 2022-10-05 Werner Koch <wk@gnupg.org>
681 dirmngr: Support paged LDAP mode for KS_GET.
682 + commit 7a01e806eac4cd7a65eaf3e17dcd2f117ec2d327
683 * dirmngr/ks-engine-ldap.c (PAGE_SIZE): New.
684 (struct ks_engine_ldap_local_s): Add several new fields.
685 (ks_ldap_clear_state): Release them.
686 (search_and_parse): Factored out from ks_ldap_get and extended to
687 support the paged mode.
688 (ks_ldap_get): Implement the pages mode for --first and --next.
689 * dirmngr/server.c (cmd_ks_get): Provide a dummy passphrase in --first
691 * dirmngr/Makefile.am (dirmngr_LDADD): Add LBER_LIBS.
693 2022-10-04 Werner Koch <wk@gnupg.org>
695 dirmngr: New options --first and --next for KS_GET.
696 + commit 4de98d4468f37bfb8352426830d5d5642ded7536
697 * dirmngr/server.c (cmd_ks_get): Add option --first and --next.
698 (start_command_handler): Free that new ldap state.
699 * dirmngr/ks-engine-ldap.c (struct ks_engine_ldap_local_s): New.
700 (ks_ldap_new_state, ks_ldap_clear_state): New.
701 (ks_ldap_free_state): New.
702 (return_one_keyblock): New. Mostly factored out from ....
703 (ks_ldap_get): here. Implement --first/--next feature.
705 * dirmngr/ks-action.c (ks_action_get): Rename arg ldap_only to
707 * dirmngr/ks-engine.h (KS_GET_FLAG_ONLY_LDAP): New.
708 (KS_GET_FLAG_FIRST): New.
709 (KS_GET_FLAG_NEXT): New.
711 * dirmngr/dirmngr.h (struct server_control_s): Add member
713 (struct ks_engine_ldap_local_s): New forward reference.
715 2022-09-30 Werner Koch <wk@gnupg.org>
717 gpg: Show just keyserver and port with --send-keys.
718 + commit 3390951ffd692fed61d5baa03385a66db3d95607
719 * g10/call-dirmngr.c (ks_status_cb): Mangle the keyserver url
721 2022-09-29 Werner Koch <wk@gnupg.org>
723 dirmngr: Minor fix for baseDN fallback.
724 + commit 11aa5a93a754fe978d0f35d7fbeb4767b6b6df05
725 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Avoid passing data
727 (interrogate_ldap_dn): Stylistic change.
729 gpg: Avoid to emit a compliance mode line if libgcrypt is non-compliant.
730 + commit 2e22184ba5ac85b1da0209c1a4c72e2459b5c6eb
731 * g10/encrypt.c (check_encryption_compliance): Check gcrypt compliance
732 before emitting an ENCRYPTION_COMPLIANCE_MODE status.
734 gpg: Fix assertion failure due to errors in encrypt_filter.
735 + commit 46f9b0071f54191cbf05ae23b24961ac6f43de4e
736 * common/iobuf.c (iobuf_copy): Use log_assert. Explicitly cast error
738 * g10/build-packet.c (do_plaintext): Check for iobuf_copy error.
740 * g10/encrypt.c (encrypt_filter): Immediately set header_okay.
742 gpg: Make --require-compliance work for -se.
743 + commit a51067a21f688086bd8e44234a88ae367582cc76
744 * g10/encrypt.c (encrypt_crypt, encrypt_filter): Factor common code
746 (create_dek_with_warnings): new
747 (check_encryption_compliance): and new.
749 * g10/encrypt.c (encrypt_filter): Add the compliance check.
751 2022-09-29 NIIBE Yutaka <gniibe@fsij.org>
753 dirnmgr: Fix the function prototype.
754 + commit 530d709607e54465ce47c1fc7d2554ea3b0bea6b
755 * dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): It's with
758 dirmngr: Change interrogate_ldap_dn for better memory semantics.
759 + commit 4b2066afb4988c32a030330acf51b7b0dc190041
760 * dirmngr/ks-engine-ldap.c (interrogate_ldap_dn): Return BASEDN found,
762 (my_ldap_connect): Follow the change, removing needless allocation.
764 2022-09-29 Joey Berkovitz <joeyberkovitz@gmail.com>
766 dirmngr: Interrogate LDAP server when base DN specified.
767 + commit 3257385378bb3f19ebf089538f0efe2154487989
768 * dirmngr/ks-engine-ldap.c (my_ldap_connect): interrogate LDAP
769 server when basedn specified.
771 2022-09-28 Werner Koch <wk@gnupg.org>
773 dirmngr: Fix lost flags during LDAP upload.
774 + commit 536b5cd6630506bb4bece61eb34b1d0a1c611231
775 * dirmngr/ldapserver.c (ldapserver_parse_one): Turn LINE into a const.
776 Use strtokenize instead of strtok style parsing.
778 gpg: Silence some diagnostics.
779 + commit 1b0c17dfab5093dea378e4b2d4649cec5be0c84d
780 * g10/parse-packet.c (enum_sig_subpkt): Show "buffer shorter than
781 subpacket" only in debug mode.
782 (parse_signature): Show "signature packet without timestamp / keyid"
783 only in souble verbose mode.
785 * g10/sig-check.c (check_signature_metadata_validity): Use ISO
786 timestamp in UTC for the signature expired note.
788 dirmngr: New server flag "areconly" (A-record-only)
789 + commit d65a0335e5cb947dc527d62eccf7c2a3cdbcc788
790 * dirmngr/dirmngr.h (struct ldap_server_s): Add field areconly.
791 * dirmngr/ldapserver.c (ldapserver_parse_one): Parse "areconly"
792 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Implement this flag.
793 * dirmngr/dirmngr_ldap.c: Add option --areconly
794 (connect_ldap): Implement option.
795 * dirmngr/ldap.c (run_ldap_wrapper): Add and pass that option.
797 2022-09-26 Werner Koch <wk@gnupg.org>
799 dirmngr: Support gpgMailbox for mode MAILSUB and MAILEND.
800 + commit acabbc0078d809d8f636c59dcb8735ab55ddecf9
801 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Use gpgMailbox if
802 server supports this.
804 gpg: Don't consider unknown keys as non-compliant while decrypting.
805 + commit 1b2ac21c4cf763be25bdd98c84d9b79b85a38315
806 * g10/mainproc.c (proc_encrypted): Change compliance logic.
808 2022-09-26 NIIBE Yutaka <gniibe@fsij.org>
810 dirmngr: Factor out interrogate_ldap_dn function.
811 + commit 993820c315216584e23d36299920007abfeb3a32
812 * dirmngr/ks-engine-ldap.c (interrogate_ldap_dn): New.
814 2022-09-21 Werner Koch <wk@gnupg.org>
816 tools: Need to set the dir for common.conf.
817 + commit ed54fd53d1dc786c350b0c41e71afe349518f580
818 * tools/gpg-connect-agent.c (main): Set dirs.
819 * tools/gpg-card.c (main): Ditto.
821 2022-09-16 Werner Koch <wk@gnupg.org>
823 dirmngr: Fix CRL DP error fallback to other schemes.
824 + commit 0c8299e2b56ef2e1d241a7cf4bf630993e4ec39f
825 * dirmngr/crlcache.c (crl_cache_reload_crl): Rework the double loop.
826 Remove the unused issuername_uri stuff.
828 2022-09-16 NIIBE Yutaka <gniibe@fsij.org>
830 dirmngr:dns,doc,gpg: Fix for noreturn for C11.
831 + commit d5e29991c0c700d606d4ee4158cfd248bc1d3fd9
832 * dirmngr/dns.c: Use __noreturn__.
833 * doc/yat2m.c: Likewise.
834 * g10/main.h: Likewise.
836 2022-09-15 NIIBE Yutaka <gniibe@fsij.org>
838 build: Use LDAP_DEPRECATED to detect ldap library.
839 + commit ddc6f7d194918791ac9dff0e5af4b80933189afd
840 * m4/ldap.m4: Define LDAP_DEPRECATED when test.
842 2022-09-14 Werner Koch <wk@gnupg.org>
844 tests: Restrict the use of gpgconf.ctl to make check.
845 + commit 50d12860ef21e8480474fd94a0b4465d0339086d
846 * common/homedir.c (unix_rootdir): Add ".enable" statement to
848 * tests/gpgconf.ctl.in: Use this statement.
849 * tests/cms/Makefile.am (OLD_TESTS_ENVIRONMENT): Enable .enable.
850 (TESTS_ENVIRONMENT): Ditto.
851 * tests/gpgme/Makefile.am (TESTS_ENVIRONMENT): Ditto.
852 * tests/migrations/Makefile.am (TESTS_ENVIRONMENT): Ditto.
853 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Ditto.
854 * tests/pkits/Makefile.am (TESTS_ENVIRONMENT): Ditto.
855 * tests/tpm2dtests/Makefile.am (TESTS_ENVIRONMENT): Ditto.
857 2022-09-14 NIIBE Yutaka <gniibe@fsij.org>
859 common: Fix for GPG_ERR_SOURCE_DEFAULT check.
860 + commit e70e09c3d5e7f010f2b9a8c5749710e93ef223be
861 * common/init.h: Remove GPG_ERR_SOURCE_UNKNOWN check.
863 kbx: Fix for GPG_ERR_SOURCE_DEFAULT.
864 + commit d55728539f0edfa660dc24775d3dfd1471aebd3b
865 * kbx/keybox-defs.h (GPG_ERR_SOURCE_DEFAULT): Define here, when not
867 * kbx/kbxutil.c: Let keybox-defs.h include gpg-error.h.
869 dirmngr: Fix for USE_LDAP.
870 + commit 598884699dfc5966cd70f32c77fb454f26df63ff
871 * dirmngr/ks-action.c [USE_LDAP] (ks_action_help): Recover variables.
872 * dirmngr/server.c [USE_LDAP] (dirmngr/server.c): Likewise.
874 common: Fix t-recsel.
875 + commit 0b532627e8323a0c7c28e8ed23afd849b7f8b853
876 * common/t-recsel.c (main): Don't need to call init_common_subsystems.
878 dirmngr:dns: Fixes for function prototypes.
879 + commit 23d7b7cfb0f9a0f57efe6f7b676a2c538f286b81
880 * dirmngr/dns.c (dns_a_parse0, dns_a_push0, dns_a_cmp0): New.
881 (dns_a_print0, dns_aaaa_parse0, dns_aaaa_cmp0): New.
882 (dns_aaaa_print0, dns_mx_parse0, dns_mx_push0, dns_mx_cmp0): New.
883 (dns_mx_print0, dns_mx_cname0, dns_ns_parse0, dns_ns_push0): New.
884 (dns_ns_cmp0, dns_ns_print0, dns_ns_cname0, dns_cname_parse0): New.
885 (dns_cname_push0, dns_cname_cmp0, dns_cname_print0): New.
886 (dns_cname_cname0, dns_soa_parse0, dns_soa_push0): New.
887 (dns_soa_cmp0, dns_soa_print0, dns_srv_parse0, dns_srv_push0): New.
888 (dns_srv_cmp0, dns_srv_print0, dns_srv_cname0, dns_opt_parse0): New.
889 (dns_opt_push0, dns_opt_cmp0, dns_opt_print0, dns_ptr_parse0): New.
890 (dns_ptr_push0, dns_ptr_cmp0, dns_ptr_print0, dns_ptr_cname0): New.
891 (dns_sshfp_parse0, dns_sshfp_push0, dns_sshfp_cmp0): New.
892 (dns_sshfp_print0, dns_txt_parse0, dns_txt_push0, dns_txt_cmp0): New.
893 (struct dns_rrtype): Add function prototypes.
894 (dns_rrtypes): Use "0" variant of functions.
895 (DNS_PRAGMA_PUSH, DNS_PRAGMA_POP): Remove.
897 agent,dirmngr,gpg,scd: Clean up for modern compiler.
898 + commit 3d7dbf16618db4d0dc602daadbde098d4a14b528
899 * agent/protect.c (agent_get_shadow_info_type): It's a write only
900 variable, useful for debugging.
901 * g10/key-check.c (key_check_all_keysigs): Likewise.
902 * g10/keyedit.c (show_basic_key_info, menu_expire): Likewise.
903 * scd/app-sc-hsm.c (read_ef_prkd): Likewise.
904 * dirmngr/crlfetch.c (fetch_next_ksba_cert): Initialize the vars.
905 * dirmngr/ks-action.c (ks_action_help): Remove unused variables.
906 * dirmngr/server.c (make_keyserver_item): Likewise.
907 * dirmngr/validate.c (check_cert_sig): Initialize the variable.
908 * scd/app-p15.c (select_and_read_record): Likewise.
909 * tests/gpgscm/scheme.c (scheme_init_new): A function with no args.
911 2022-09-13 NIIBE Yutaka <gniibe@fsij.org>
913 tools:gpg-auth: Enhance it to support use case for login.
914 + commit e133bcb1cdf24f44741b48934108b596f8be8055
915 * tools/Makefile.am: gpg-auth is one in libexec_PROGRAMS.
916 * tools/gpg-auth.c: Support use by root for login user.
918 gpg,common,scd,sm: Function prototype fixes for modern compiler.
919 + commit 87d4338ed1d258817d02701127431dc4029fd722
920 * common/gettime.c (gnupg_get_time): It has no arguments.
921 * common/signal.c (gnupg_block_all_signals): Likewise.
922 (gnupg_unblock_all_signals): Likewise.
923 * common/utf8conv.c (get_native_charset): Likewise.
924 * g10/cpr.c (is_status_enabled, cpr_enabled): Likewise.
925 * g10/getkey.c (getkey_disable_caches): Likewise.
926 * g10/keygen.c (ask_expiredate): Likewise.
927 * g10/passphrase.c (have_static_passphrase): Likewise.
928 (get_last_passphrase): Likewise.
929 * g10/tdbio.c (tdbio_is_dirty, tdbio_sync): Likewise.
930 (tdbio_get_dbname, open_db, tdbio_db_matches_options): Likewise.
931 (tdbio_read_nextcheck): Likewise.
932 * g10/trustdb.c (how_to_fix_the_trustdb): Likewise.
933 * scd/scdaemon.c (scd_get_socket_name): Likewise.
934 * sm/passphrase.c (have_static_passphrase): Likewise.
936 2022-09-09 Ingo Klöcker <dev@ingo-kloecker.de>
938 sm: Fix reporting of bad passphrase error.
939 + commit a47b3a4087349f3873eb04a83dc2a0f512cacf86
940 * sm/minip12.c (p12_parse): Set badpass flag to result in ctx.
942 Revert "common: Add a default OpenPGP ECC mapping."
943 + commit 07b0786939c8316130314dfadc4933077ff6e36d
944 This reverts commit 8e63e813c7404e1dae1def98e0f45d148f71082d.
946 The change broke adding existing ECDH encryption subkeys to a key.
948 2022-09-07 Werner Koch <wk@gnupg.org>
950 agent: Don't start in --supervised mode if no-autostart is enabled.
951 + commit abf7d3c54546d4200eb88924beefc4d6b0f2dc90
952 * agent/gpg-agent.c (main): Print an error message if no-autostart is
955 gpg: Support key flags for RENC, TIME, and GROUP.
956 + commit 0988e49c45d0fb73d0b536aa027bd114f9dc65a7
957 * g10/packet.h (PUBKEY_USAGE_RENC): New.
958 (PUBKEY_USAGE_TIME): New.
959 (PUBKEY_USAGE_GROUP): New.
960 * g10/getkey.c (parse_key_usage): Set the new key flags.
961 * g10/keyedit.c (show_key_with_all_names_colon): Show the new key
963 * g10/keyid.c (usagestr_from_pk): Ditto
964 * g10/keylist.c (print_capabilities): Ditto.
965 * g10/keygen.c (parse_usagestr): Parse line and set new flags.
966 (quickgen_set_para): Show flags.
968 2022-09-06 NIIBE Yutaka <gniibe@fsij.org>
970 tools:gpg-auth: Support use of pinpad.
971 + commit dc9227ca577dc7e34ca45de54a4903aecf31fb64
972 * tools/gpg-auth.c (getpin): Use comment.
973 (inq_needpin): Support "POPUPPINPADPROMPT" protocol response.
975 common: Fix to determine ECC curve for SSH.
976 + commit f7e0b0c8a56ae03b0c3214c247ae61a939802617
977 * common/ssh-utils.c (ssh_public_key_in_base64): Use standard name for
980 2022-09-05 NIIBE Yutaka <gniibe@fsij.org>
982 tools:gpg-auth: Show SSH key comment when asking PIN.
983 + commit 7a22f764d51881d0dd2151633b7615c8db664a61
984 * tools/gpg-auth.c (authenticate): Put key_list->comment to assuan
986 (getpin): Show SSH key comment if any.
988 2022-09-02 NIIBE Yutaka <gniibe@fsij.org>
991 + commit 3e5f99e6483d4298effe3731d3b60bc7ffbacf04
992 * tools/gpg-auth.c (my_strusage): Fix usage string.
993 (main): Use gpg-agent to get scdaemon socket.
994 (authenticate): Return GPG_ERR_NOT_FOUND when no success.
995 (ga_scd_connect): Use DBG_IPC.
996 (inq_needpin): Change API for getpin.
997 (put_second_field_cb): New, to get the second field.
998 (scd_get_pubkey): Use put_second_field_cb.
999 (ga_filter_by_authorized_keys): Put NULL at the PREV->next.
1000 (getpin): Flush the standard output.
1001 Include the last terminating NUL.
1004 tools:gpg-auth: New tool for authentication.
1005 + commit d49788ef9f82913df4031fc3ea9ee6d98132bf16
1006 * tools/Makefile.am (bin_PROGRAMS): Add gpg-auth.
1007 (gpg_auth_SOURCES, gpg_auth_LDADD):
1008 * tools/gpg-auth.c: New.
1010 2022-09-01 Werner Koch <wk@gnupg.org>
1012 common: Make nvc_lookup more robust.
1013 + commit cd7570f02efe0bc416cbc5dbce3e5e79b4f10011
1014 * common/name-value.c (nvc_first): Allow for NULL arg.
1015 (nvc_lookup): Allow for PK being NULL.
1017 2022-08-31 Werner Koch <wk@gnupg.org>
1019 dirmngr: New option --debug-cache-expired-certs.
1020 + commit 17073c9abcfb0546e40f3fa6af655c87305f71b5
1021 * dirmngr/dirmngr.h (opt): Add debug_cache_expired_certs:
1022 * dirmngr/dirmngr.c (oDebugCacheExpiredCerts): New.
1024 (parse_rereadable_options): Set option.
1025 * dirmngr/certcache.c (put_cert): Handle the option.
1027 2022-08-26 NIIBE Yutaka <gniibe@fsij.org>
1029 dirmngr: Reject certificate which is not valid into cache.
1030 + commit 0662b9444b5be61f6019ec301314f245c8f8fa3f
1031 * dirmngr/certcache.c (put_cert): When PERMANENT, reject the
1032 certificate which is obviously invalid.
1034 2022-08-25 NIIBE Yutaka <gniibe@fsij.org>
1036 scd: Add npth_unprotect/npth_protect for blocking operations.
1037 + commit 6df8608c3ebefaee191bb51fe702b7f1682c47c5
1038 * scd/ccid-driver.c (ccid_open_usb_reader): Name the thread.
1039 (ccid_vendor_specific_setup, ccid_open_usb_reader): Wrap
1040 blocking operations by npth_unprotect/npth_protect.
1042 2022-08-22 Werner Koch <wk@gnupg.org>
1044 scd: Add a libusb debug level.
1045 + commit f4b01ddc6a55acea49273e35f19e97ef9ef88d28
1046 * scd/ccid-driver.c (USE_LIBUSB_DEBUG_CB): New const.
1047 (debug_libusb_cb): new.
1048 (ccid_set_debug_level): Use it.
1050 common: New common option no-autostart.
1051 + commit 203dcc19eb48228c60036691fe87fb37e29369a4
1052 * common/comopt.c (opts): Add "no-autostart".
1053 (parse_comopt): Set it.
1054 * common/comopt.h (comopt): Add no_autostart.
1056 * g10/gpg.c (main): Take care of the new option.
1057 * sm/gpgsm.c (main): Ditto.
1058 * tools/gpg-connect-agent.c (INCLUDED_BY_MAIN_MODULE): Add.
1059 (main): Parse common options and handle new option.
1060 * tools/gpg-card.c (main): Ditto.
1061 (cmd_yubikey): Fix minor error reporting issue.
1063 * common/util.h (GNUPG_MODULE_NAME_CARD): New const.
1064 * common/homedir.c (gnupg_module_name): Support it.
1066 2022-08-16 Andre Heinecke <aheinecke@gnupg.org>
1068 dirmngr: Fix NTBTLS include for test.
1069 + commit bca00f1fba02bb738cb81b80784dd8fdd68b6629
1070 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add NTBTLS.
1072 2022-08-16 Werner Koch <wk@gnupg.org>
1074 gpg: Fix --card-status to handle lowercase APPTYPEs.
1075 + commit 287597cb2263c724a4c60995c92f9c86a7e06a25
1076 * g10/card-util.c (current_card_status): Use ascii_strcasecmp.
1078 2022-08-12 Werner Koch <wk@gnupg.org>
1080 gpg: Improve --edit-key setpref.
1081 + commit 1908fa8b835cc46cb62afb8dcd26cdd0c93bc9fd
1082 * g10/keygen.c (keygen_set_std_prefs): Allow extra spaces before
1083 preference elements. Detect the bracketed versions of the strings.
1086 2022-08-11 Werner Koch <wk@gnupg.org>
1088 agent: New option --need-attr for KEYINFO.
1089 + commit 989eae648c8f3d2196517e8fc9cce247b21f9629
1090 * agent/command.c (do_one_keyinfo): New arg need_Attr.
1091 (cmd_keyinfo): New option --need-attr.
1093 * agent/findkey.c (public_key_from_file): Use nvc_get_boolean.
1095 common: New function nvc_get_boolean.
1096 + commit 40f0fcfaa476152088762cf5677770d3403d6055
1097 * common/name-value.c (nvc_get_boolean): New.
1099 2022-08-09 Ingo Klöcker <dev@ingo-kloecker.de>
1101 gpg: Emit an ERROR status if --quick-set-primary-uid fails.
1102 + commit 2cbb5760d758d971757b1b96109d8d09482a0f1c
1103 * g10/keyedit.c (keyedit_quick_set_primary): Issue a status error.
1105 2022-08-08 Ingo Klöcker <dev@ingo-kloecker.de>
1107 gpg: Look up user ID to mark as primary by UID hash.
1108 + commit 82c53efd63654f3009652149e31a068301b298e7
1109 * g10/keyedit.c (find_userid_by_namehash, find_userid): Add argument
1110 want_valid. Skip invalid user IDs if valid is wanted.
1111 (keyedit_quick_revuid): Ask find_userid() for any matching user ID.
1112 (keyedit_quick_set_primary): Use find_userid() to find the user ID to
1114 * tests/openpgp/quick-key-manipulation.scm: Change second call of the
1115 quick-set-primary-uid test to specify the user ID by its hash.
1117 2022-08-04 Werner Koch <wk@gnupg.org>
1119 gpg: Fix wrong error message for keytocard.
1120 + commit 189102ac17dc40a74932e48a1607f25421c28aa4
1121 * g10/call-agent.c (agent_keytocard): Emit SC_OP_FAILURE.
1123 2022-08-03 Werner Koch <wk@gnupg.org>
1125 common: Silence warnings from AllowSetForegroundWindow.
1126 + commit 4ef8516a79f96c6a8898f04831d61c2655f756ef
1127 * common/sysutils.c (gnupg_allow_set_foregound_window): Print warning
1128 only with debug flag set.
1130 dirmngr: Fix failed malloc error message.
1131 + commit b067285d595a084adaf514a214954a92ee87329d
1132 * dirmngr/ocsp.c (check_signature): Fix error printing of xtrymalloc.
1134 gpgconf: Add config file for Windows Registry dumps.
1135 + commit 5fb2306b97601c2021ecaab5d109c924a1608cce
1136 * tools/gpgconf.c (show_registry_entries_from_file): New.
1137 (show_configs): Call it.
1138 * doc/examples/gpgconf.rnames: New.
1139 * doc/Makefile.am (examples): Add it.
1141 2022-08-02 Werner Koch <wk@gnupg.org>
1143 gpg: Make symmetric + pubkey encryption de-vs compliant.
1144 + commit e542c4af182d1c6d6ecb4dc902eb331889edb27f
1145 * g10/mainproc.c (proc_encrypted): Make symmetric + pubkey encryption
1148 * g10/mainproc.c (struct symlist_item): New.
1149 (struct mainproc_context): Add field symenc_list.
1150 (release_list): Free that list.
1151 (proc_symkey_enc): Record infos from symmetric session packet.
1152 (proc_encrypted): Check symkey packet algos
1154 gpgconf: Improve registry dumping.
1155 + commit ea7aba6e605d0469fc5c9cf38bafa7eb46e69c22
1156 * common/w32-reg.c (read_w32_reg_string): Add arg r_hklm_fallback and
1158 (show_configs): Indicate whether the HKLM fallback was used.
1159 * tools/gpgconf.c (show_other_registry_entries): Fix the Outlook Addin
1160 Registry key. Indicate whether the HKLM fallback was used.
1162 2022-08-01 Werner Koch <wk@gnupg.org>
1164 tests: Install links for tpm2daemon.
1165 + commit 10f42f313ca7c1815005acfab9076e3ff9961fcc
1166 * Makefile.am (all-local): Install missing symlinks.
1168 common: Add a default OpenPGP ECC mapping.
1169 + commit 8e63e813c7404e1dae1def98e0f45d148f71082d
1170 * common/openpgp-oid.c (map_gcry_pk_to_openpgp): Map ECC to ECDSA
1171 which is similar to what we do at opther places in gpg.
1173 2022-07-28 Werner Koch <wk@gnupg.org>
1175 gpg: For de-vs use SHA-256 instead of SHA-1 as implicit preference.
1176 + commit eb675fbc4e4db52c3276bc0748b49df8a213fbc4
1177 * g10/pkclist.c (select_algo_from_prefs): Change implicit hash
1180 2022-07-27 Werner Koch <wk@gnupg.org>
1182 wkd: Bind the address to the nonce.
1183 + commit 4c8792fa10b67187607c60da4789d6f233795583
1184 * tools/gpg-wks-server.c (make_pending_fname): New.
1185 (store_key_as_pending, check_and_publish): Use here.
1186 (process_new_key): Pass addrspec to store_key_as_pending.
1187 (expire_one_domain): Expire also the new files.
1189 2022-07-25 Werner Koch <wk@gnupg.org>
1191 wkd: Fix path traversal attack on gpg-wks-server.
1192 + commit 8a63a8c8257e5c585ec6fee49f38050dbf20354b
1193 * tools/gpg-wks-server.c (check_and_publish): Check for invalid
1194 characters in sender controlled data.
1195 * tools/wks-util.c (wks_fname_from_userid): Ditto.
1196 (wks_compute_hu_fname): Ditto.
1197 (ensure_policy_file): Ditto.
1199 2022-07-22 NIIBE Yutaka <gniibe@fsij.org>
1201 build: Update gpg-error.m4.
1202 + commit 2791169aa9dd7469a835bc0f4b096619255aa79e
1203 * gpg-error.m4: Update from libgpg-error.
1205 2022-07-18 NIIBE Yutaka <gniibe@fsij.org>
1207 build: Update config.guess, config.sub, and config.rpath.
1208 + commit 7e44f883664e23503b5507852a342939c9aced8a
1209 * build-aux/config.guess: Update from upstream.
1210 * build-aux/config.sub: Ditto.
1211 * build-aux/config.rpath: Update from gettext 0.21.
1213 2022-07-13 NIIBE Yutaka <gniibe@fsij.org>
1215 scd:openpgp: Fix workaround for Yubikey heuristics.
1216 + commit f34b9147eb3070bce80d53febaa564164cd6c977
1217 * scd/app-openpgp.c (parse_algorithm_attribute): Handle the case
1218 of firmware 5.4, too.
1220 2022-07-11 Werner Koch <wk@gnupg.org>
1223 + commit bc5328f5119aa6f6233c4387660f163b77bb9ce1
1226 2022-07-05 NIIBE Yutaka <gniibe@fsij.org>
1228 gpg,build: Fix message for newer gettext.
1229 + commit 424aa3543de0c832f4b7da5f6d116616b09924ee
1230 * g10/keyserver.c (keyserver_refresh): Use ngettext.
1232 2022-06-29 Werner Koch <wk@gnupg.org>
1234 gpgconf: New short options -V and -X.
1235 + commit 15a8834b0b4a7261a89238143421e56f1a335e8a
1236 * tools/gpgconf.c: Assign short options -X and -V
1237 (show_version_gnupg): Print the vsd version if available.
1239 2022-06-28 NIIBE Yutaka <gniibe@fsij.org>
1241 agent: Don't assume "OPENPGP.3" key means "Use-for-ssh:".
1242 + commit 39422f1d63e2d9691d8fe4bfceb0d1e43cd914bd
1243 * agent/command-ssh.c: Fix comments.
1244 * agent/findkey.c (public_key_from_file): Remove "OPENPGP.3" check.
1246 2022-06-27 Werner Koch <wk@gnupg.org>
1248 agent: Do not consider --min-passphrase-len for the magic wand.
1249 + commit ae2f1f0785e429d6dbb577a1fcf9a880aaff8e49
1250 * agent/call-pinentry.c (generate_pin): Lock to exactly 30 octets.
1251 * g10/gpg.c (main) <aGenRandom>: Add Level 30.
1253 2022-06-23 NIIBE Yutaka <gniibe@fsij.org>
1255 agent: Flush before calling ftruncate.
1256 + commit 99d2931887e5ba0db9007024b3420b110603d5be
1257 * agent/findkey.c (write_extended_private_key): Make sure
1260 agent: KEYATTR only allows access to attribute.
1261 + commit 26d5a6e862c68bf7355ade48e036732fb52561e9
1262 * agent/command.c (cmd_keyattr): Check the ATTRNAME.
1264 agent: Fix KEYATTR command for --delete option.
1265 + commit 2c47c6662793ad2220a97e8aff1acb0aca4099bf
1266 * agent/command.c (cmd_keyattr): Write the result.
1268 2022-06-22 NIIBE Yutaka <gniibe@fsij.org>
1270 agent: Add KEYATTR command.
1271 + commit 30b54a0ebbaa8ac491710ad1b4f2fbd1b5814bce
1272 * agent/agent.h (agent_raw_key_from_file): Add R_KEYMETA argument.
1273 (agent_update_private_key): New.
1274 * agent/command-ssh.c (data_sign): Follow the change of the function
1275 agent_raw_key_from_file.
1276 * agent/command.c (do_one_keyinfo): Likewise.
1278 (register_commands): Add an entry of cmd_keyattr.
1279 * agent/findkey.c (agent_update_private_key): New.
1280 (agent_raw_key_from_file): Add R_KEYMETA argument.
1282 agent,gpg,tools: Fix use of log_get_fd.
1283 + commit fe535cf26592d6af53d5aea15b3fdc1d79ba0f80
1284 * agent/call-daemon.c (daemon_start): Don't put file descriptor from
1285 log_get_fd to no_close_list.
1286 * agent/call-pinentry.c (start_pinentry): Likewise.
1287 * common/call-gpg.c (start_gpg): Likewise.
1288 * call-syshelp.c (start_syshelp): Likewise.
1289 * tools/gpg-connect-agent.c (main): Likewise.
1291 2022-06-20 Werner Koch <wk@gnupg.org>
1293 sm: Improve pkcs#12 debug output.
1294 + commit 52f9e13c0cb3b42c469e2d00352ab36948ca1e55
1295 * sm/minip12.c (parse_shrouded_key_bag): Fix offset diagnostic.
1296 (parse_cert_bag): Ditto.
1297 (parse_bag_data): Remove debug output. Pass startoffset. Fix offset
1300 sm: Rework the PKCS#12 parser to support DFN issued keys.
1301 + commit a4e04375e84ecb7ea0d02e153cb27988fca4c2d0
1302 * sm/minip12.c (struct p12_parse_ctx_s): New. Use this instead of
1303 passing several parameters to most functions.
1304 (parse_pag_data): Factor things out to ...
1305 parse_shrouded_key_bag): new.
1306 (parse_cert_bag): New.
1307 (parse_bag_data): New.
1308 (p12_parse): Setup the parse context.
1310 2022-06-17 Werner Koch <wk@gnupg.org>
1312 agent: Improve "Insert the card" message.
1313 + commit be5d06dae23972a503e6eed555b3a254151be366
1314 * agent/findkey.c (prompt_for_card): Don't print "(null").
1316 2022-06-15 Werner Koch <wk@gnupg.org>
1318 agent,ssh: Fix for make not-inserted OpenPGP.3 keys available for SSH.
1319 + commit 2766b9e56c778d3cbed93aeec5821363a4277c52
1320 * agent/command-ssh.c (ssh_send_available_keys): Do not bump
1321 key_counter for ignored keys. Also use opt.debug instead of
1322 opt.verbose and fix a memory leak.
1324 2022-06-14 Werner Koch <wk@gnupg.org>
1326 agent: New option --no-user-trustlist and --sys-trustlist-name.
1327 + commit 1530d04725d475bf29328eab40b42f72ff8aa06b
1328 * agent/gpg-agent.c (oNoUserTrustlist,oSysTrustlistName): New.
1329 (opts): Add new option names.
1330 (parse_rereadable_options): Parse options.
1331 (finalize_rereadable_options): Reset allow-mark-trusted for the new
1333 * agent/agent.h (opt): Add fields no_user_trustlist and
1335 * agent/trustlist.c (make_sys_trustlist_name): New.
1336 (read_one_trustfile): Use here.
1337 (read_trustfiles): Use here. Implement --no-user-trustlist.
1339 g10: Fix garbled status messages in NOTATION_DATA.
1340 + commit 34c649b3601383cd11dbc76221747ec16fd68e1b
1341 * g10/cpr.c (write_status_text_and_buffer): Fix off-by-one
1343 2022-06-14 Jakub Jelen <jjelen@redhat.com>
1345 keygen: Fix reading AEAD preference.
1346 + commit 4dbef2addca8c76fb4953fd507bd800d2a19d3ec
1347 * g10/keygen.c (keygen_set_std_prefs): Use the right variable when
1348 reading AEAD preference string
1350 2022-06-13 Werner Koch <wk@gnupg.org>
1352 gpgsm: New option --compatibility-flags.
1353 + commit f0b373cec93bb01f02b9c0a3ab1f3e242b381c3f
1354 * sm/gpgsm.c (oCompatibilityFlags): New option.
1355 (compatibility_flags): new.
1356 (main): Parse and print them in verbose mode.
1357 * sm/gpgsm.h (opt): Add field compat_glags.:
1358 (COMPAT_ALLOW_KA_TO_ENCR): New.
1359 * sm/keylist.c (print_capabilities): Take care of the new flag.
1360 * sm/certlist.c (cert_usage_p): Ditto.
1362 common: New function parse_compatibility_flags.
1363 + commit ce63eaa4f8f3f41aafcaddd8d658dacd522334a8
1364 * common/miscellaneous.c (parse_compatibility_flags): New.
1365 * common/util.h (struct compatibility_flags_s): New.
1367 2022-06-10 NIIBE Yutaka <gniibe@fsij.org>
1369 scd: Support specifying keygrip for learn command.
1370 + commit dd600bbc84ddba56b4455cea97e048d681b083ce
1371 * scd/command.c (cmd_learn): Allow keygrip argument.
1373 scd,openpgp: Support READCERT by keygrip.
1374 + commit 273b8ec1931d3aeef530e9262b2447e94d4b350a
1375 * scd/app-openpgp.c (do_readcert): Allow use of keygrip.
1377 2022-06-03 Werner Koch <wk@gnupg.org>
1379 common,w32: Use LoadLibraryEx to fix a warning in mingw.
1380 + commit 59c481bb86464953e526298bfe73c3466387c46d
1381 * common/dynload.h (dlopen): Use LoadLibraryEx and remove Windows CE
1384 w32: Allow Unicode filenames for iobuf_cancel.
1385 + commit 4ee2009083cb6f279c6f8aa4397462e887d5818e
1386 * common/iobuf.c (iobuf_cancel): Use gnupg_remove
1387 * common/mischelp.c (same_file_p): Allow for Unicode names.
1389 2022-06-02 Werner Koch <wk@gnupg.org>
1391 tools: Minor fix to gpg-connect-agent options.
1392 + commit d89557fe95bf8dd92594871093814c6b0b39f4a2
1393 * tools/gpg-connect-agent.c (enum cmd_and_opt_values): Move
1394 oUnBuffered more to the top so that oNoop won't not get the value 'v'.
1396 2022-06-02 NIIBE Yutaka <gniibe@fsij.org>
1398 agent: Support --format=ssh option for READKEY.
1399 + commit d7a3c455c5e29b19b66772f86dda925064e34896
1400 * agent/command.c (cmd_readkey): Handle --format=ssh to return key
1403 tools: Add a way to cancell INQUIRE for gpg-connect-agent.
1404 + commit 5a327e8001c4698330fabc83421277a590d5b085
1405 * tools/gpg-connect-agent.c (handle_inquire): When the helper program
1406 exit status is not 0, it means cancellation, now.
1408 tools: Add --unbuffered option to gpg-connect-agent.
1409 + commit 24d02b8a32757e8c86f2a4fbca82dac4506a94d1
1410 * tools/gpg-connect-agent.c (cmd_and_opt_values): Add oUnBuffered.
1411 (opts, opt): Likewise.
1412 (main): When unbuffered, set gpgrt_stdin/stdout accordingly.
1414 2022-06-01 Werner Koch <wk@gnupg.org>
1416 scd:nks: Don't flag the ESIGN keypair EF as encryption capable.
1417 + commit 3a2fb1c30633373d17880469e0b84ab2a9524585
1418 * scd/app-nks.c (filelist): Tweak 0x4531.
1420 scd:nks: Some code cleanup.
1421 + commit b92b3206e72b635fd815eaf85e7acc67c2a52ffe
1422 * scd/app-nks.c (find_fid_by_keyref): Factor keyref parsing out to ...
1423 (parse_keyref): new.
1424 (do_readcert): Use new function instead of partly duplicated code.
1425 Make detection of keygrip more robust.
1426 (do_readkey): Make detection of keygrip more robust.
1427 (do_with_keygrip): Use get_nks_tag.
1429 2022-05-29 Werner Koch <wk@gnupg.org>
1431 scd:nks: Support the Telesec ESIGN application.
1432 + commit 07eaf006c2763a6b40d2734b1c6704da466e0ed0
1433 * scd/app-nks.c (find_fid_by_keyref): Disable the cache for now.
1434 (readcert_from_ef): Considere an all zero certificate as not found.
1435 (do_sign): Support ECC and the ESIGN application.
1437 2022-05-28 Werner Koch <wk@gnupg.org>
1439 gpg: Setup the 'usage' filter property for export.
1440 + commit 7aabd94b8103432b42cd909e911bf0c645e0298c
1441 * g10/export.c (do_export_stream): Merge the key to get the properties
1444 2022-05-27 NIIBE Yutaka <gniibe@fsij.org>
1446 agent: New field "Prompt" to prevent asking card key insertion.
1447 + commit 9f1dcfc7a7b47ab8221e75eaa1872bbf2a72980c
1448 * agent/findkey.c (prompt_for_card): Add "Prompt" field handling.
1450 2022-05-26 NIIBE Yutaka <gniibe@fsij.org>
1452 agent,ssh: Support "Use-for-ssh" flag in private key.
1453 + commit d86b6c28fcca50a723694bf7a11743d6fd5689cb
1454 * agent/findkey.c (public_key_from_file): Support "Use-for-ssh"
1455 when it's in extended format.
1457 agent,ssh: Make not-inserted OpenPGP.3 keys available for SSH.
1458 + commit 193fcc2f7a8cca5240ce50499c54f99235a87e1c
1459 * agent/agent.h (agent_ssh_key_from_file): New.
1460 * agent/command-ssh.c (get_ssh_keyinfo_on_cards): New.
1461 (ssh_send_available_keys): Loop on the GNUPG_PRIVATE_KEYS_DIR.
1462 Support keys by agent_ssh_key_from_file.
1463 (ssh_handler_request_identities): Move card key handling to
1464 ssh_send_available_keys.
1465 * agent/findkey.c (public_key_from_file): New. Adding handling
1467 (agent_public_key_from_file): Use public_key_from_file.
1468 (agent_ssh_key_from_file): New.
1470 agent: Fix get_keyinfo_on_cards.
1471 + commit c07c79a1d795ac8f50981637fe32383abb3e969d
1472 * agent/command.c (get_keyinfo_on_cards): Make it static. Don't
1473 return bogus value on error. Return NULL when scdaemon is disabled.
1475 agent: Handle USAGE information in KEYINFO.
1476 + commit 295a6a7591972442a9ef4f8964baf9cdbe297cdd
1477 * agent/agent.h (struct card_key_info_s): Add USAGE field.
1478 * agent/call-scd.c (card_keyinfo_cb): Parse USAGE field.
1479 Allow optional SERIALNO, IDSTR, and USAGE fields.
1480 Fix releasing on possible allocation error.
1482 scd: Return USAGE information for KEYINFO command.
1483 + commit 5264d3f58e8a8362900c3518bdd683ff9a23cccc
1484 * scd/command.c (hlp_keyinfo): Update.
1485 (send_keyinfo): Add a USAGE argument.
1486 * scd/scdaemon.h (send_keyinfo): Add a USAGE argument.
1487 * scd/app-nks.c (set_usage_string): New.
1488 (do_learn_status_core, do_readkey): Use set_usage_string.
1489 (do_with_keygrip): Add USAGE to call send_keyinfo,
1490 using set_usage_string.
1491 * scd/app-openpgp.c (get_usage_string): New.
1492 (send_keypair_info): Use get_usage_string.
1493 (send_keyinfo_if_available): Add USAGE to call send_keyinfo,
1494 using get_usage_string.
1495 * scd/app-p15.c (set_usage_string): New.
1496 (send_keypairinfo): Use set_usage_string.
1497 (do_with_keygrip): Add USAGE to call send_keyinfo,
1498 using set_usage_string.
1499 * scd/app-piv.c (do_with_keygrip): Add USAGE to call send_keyinfo.
1501 scd,piv: Fix status report of KEYPAIRINFO.
1502 + commit 64c8786105687da3531608ba8440a702087475e5
1503 * scd/app-piv.c (do_readkey): Use "-" for usage when not available.
1505 2022-05-25 NIIBE Yutaka <gniibe@fsij.org>
1507 agent,scd: Make sure to set CONFIDENTIAL flag in Assuan.
1508 + commit 052f58422dca1044aba7acb4cf57416e7a8cb01f
1509 * agent/call-scd.c (inq_needpin): Call assuan_begin_confidential
1510 and assuan_end_confidential, and wipe the memory after use.
1511 * agent/command.c (cmd_preset_passphrase): Likewise.
1512 (cmd_put_secret): Likewise.
1513 * scd/command.c (pin_cb): Likewise.
1515 agent: Add missing assuan_end_confidential call.
1516 + commit 8e859331eafc8e7cfd0f366248134531fea0d074
1517 * agent/command.c (send_back_passphrase): Fix.
1519 2022-05-24 NIIBE Yutaka <gniibe@fsij.org>
1521 scd: Support automatic card selection for READCERT with keygrip.
1522 + commit ea97683d58205363d48fd41ef5559926be46681e
1523 * scd/command.c (cmd_readcert): Select by KEYGRIP.
1525 2022-05-20 NIIBE Yutaka <gniibe@fsij.org>
1527 agent: Fix a bug accessing after release when opt.verbose.
1528 + commit 1b0c4c2778249a6fe25a2c517d9fc05a1f162f1c
1529 * agent/command-ssh.c (ssh_handler_request_identities): Don't release
1530 KEY_PUBLIC too early.
1532 agent: Factor out handling scanning over ssh keys.
1533 + commit ef3e5fd403777d5c047ac91de75f32895058ff88
1534 * agent/command-ssh.c (ssh_send_available_keys): New.
1535 (ssh_handler_request_identities): Use ssh_send_available_keys.
1537 agent: Show "Label:" field of private key when prompt the insertion.
1538 + commit 5986310866527e37c6df118b1582177934522e39
1539 * agent/findkey.c (prompt_for_card): Use "Label:" field.
1540 (agent_key_from_file): Use KEYMETA.
1542 agent: Move confirmation handling into findkey.c.
1543 + commit 6a37240cf279b27cddcc88de93098c55f3f26701
1544 * agent/agent.h (divert_tpm2_pksign, divert_tpm2_pkdecrypt): Fix API.
1545 (divert_pksign, divert_pkdecrypt): Likewise.
1546 * agent/divert-scd.c (ask_for_card): Remove.
1547 (divert_pksign, divert_pkdecrypt): Don't call ask_for_card.
1548 * agent/divert-tpm2.c (divert_tpm2_pksign, divert_tpm2_pkdecrypt):
1549 Remove DESC_TEXT argument.
1550 * agent/findkey.c (prompt_for_card): New (was: ask_for_card).
1551 (agent_key_from_file): Call prompt_for_card when it's a key
1553 * agent/pkdecrypt.c (agent_pkdecrypt): Follow the change of API.
1554 * agent/pksign.c (agent_pksign_do): Likewise.
1556 2022-05-19 NIIBE Yutaka <gniibe@fsij.org>
1558 agent: Pop up dialog window for confirmation, when specified so.
1559 + commit 598b3fdfaa09b9071ceeb81f68052f3d35064292
1560 * agent/findkey.c (agent_key_from_file): Support "Confirm:".
1562 agent: Supply GRIP=NULL for agent_key_from_file, for real use.
1563 + commit 09357d7eae3efd8db1df79ef191f12038e905c6c
1564 * agent/findkey.c (agent_key_from_file): Change the semantics of
1565 GRIP. Now, it's NULL for use by PKDECRYPT and PKSIGN/PKAUTH.
1566 * agent/pkdecrypt.c (agent_pkdecrypt): Set GRIP=NULL.
1567 * agent/pksign.c (agent_pksign_do): Likewise.
1569 2022-05-17 NIIBE Yutaka <gniibe@fsij.org>
1571 scd: Fix use of SCardListReaders for PC/SC.
1572 + commit 1b1684cf6192d9edb90a54ebe4a0e66b3d59a44b
1573 * scd/apdu.c (apdu_dev_list_start): Initialize NREADER.
1575 2022-05-11 NIIBE Yutaka <gniibe@fsij.org>
1577 scd: Fail when no good algorithm attribute.
1578 + commit 53eddf9b9ea01210f71b851b5cb92a5f1cdb6f7d
1579 * scd/app-openpgp.c (parse_algorithm_attribute): Return the error.
1580 (change_keyattr): Follow the change.
1581 (app_select_openpgp): Handle the error of parse_algorithm_attribute.
1583 2022-05-10 NIIBE Yutaka <gniibe@fsij.org>
1585 dirmngr: Fix for Windows.
1586 + commit 14068dfc74fffa9cdf2fd49712f4ffcfe6405ba0
1587 * dirmngr/http.c (EHOSTUNREACH, EAFNOSUPPORT): Define when not
1589 [HTTP_USE_GNUTLS] (my_gnutls_read): Use recv for Windows.
1590 [HTTP_USE_GNUTLS] (my_gnutls_write): Use send for Windows.
1592 tests: Enable tests with keyboxd only when it's configured.
1593 + commit 09df630e4be7c44b89183181c1643f50ad606ae2
1594 * tests/gpgscm/tests.scm (in-objdir): Move from...
1595 * g13/all-tests.scm: ... here.
1596 * tests/openpgp/all-tests.scm (keyboxd-enabled?): New.
1597 (tests): Enable when keyboxd-enabled?.
1599 2022-05-06 Werner Koch <wk@gnupg.org>
1601 scd:p15: Improve the displayed S/N for Technology Nexus cards.
1602 + commit 3d7d7e8bfd1259e00104b6d52c86d5554fe5b9dd
1603 * scd/app-p15.c (any_control_or_space_mem): New.
1604 (get_dispserialno): Add new code.
1606 scd:p15: Fix the the sanity check of the displayed S/N.
1607 + commit 6f612fd5f6d884bbc4645d55378d6ee01942109f
1608 * scd/app-p15.c (any_control_or_space): Fix loop.
1610 2022-05-06 NIIBE Yutaka <gniibe@fsij.org>
1612 scd: Add workaround for ECC attribute on Yubikey.
1613 + commit 054d14887ef8fa1cbadef4ed2ea28213f25f5d25
1614 * scd/app-openpgp.c (parse_algorithm_attribute): Skip possibly bogus
1615 octet in a key attribute.
1617 2022-05-05 Werner Koch <wk@gnupg.org>
1619 scd:p15: Fix reading certificates without length info.
1620 + commit bbcca7357b017377fa311c507a940b32f62dcfa1
1621 * scd/app-p15.c (readcert_by_cdf): Do not use extended mode if the CDF
1622 object has no length info. Add debug output when reading a cert.
1623 (read_p15_info): No more need to disable extended mode for GeNUA cards.
1625 scd: New debug flags "card".
1626 + commit 7dc5693926222d97a3dfe55b426d2b41204daa79
1627 * scd/scdaemon.c (debug_flags): Add "card".
1628 * scd/scdaemon.h (DBG_CARD_VALUE, DBG_CARD): New.
1630 scd:openpgp: Fix a segv for cards supporting unknown curves.
1631 + commit 385f4841330e277949ddf2f13939b97481d2d29c
1632 * common/openpgp-oid.c (get_keyalgo_string): Do not strdup NULL.
1634 2022-05-02 NIIBE Yutaka <gniibe@fsij.org>
1636 gpgscm: Fix handling an error for chdir.
1637 + commit 4fe8859541d0facd5c3aadbdff5202ee5bb563a8
1638 * tests/gpgscm/ffi.c (do_chdir): Use gpg_error_from_syserror.
1640 tests: Fix plain invocation of "make check".
1641 + commit 792374edb67698d46f003f1548e674f0c6ef8d44
1642 * tests/openpgp/run-tests.scm: Check if *args* is null or not.
1644 tests: Add a test for Ed25519 keys for non-protected secret.
1645 + commit 602c37ac0678d690a5b68d6c1749b8daa3d5f328
1646 * tests/openpgp/issue5120.scm: New.
1648 2022-04-27 NIIBE Yutaka <gniibe@fsij.org>
1650 kbx: Fix a race condition which results no status report.
1651 + commit bd5dbdb8131cde182c79070e12f9e64a549643cd
1652 * kbx/keyboxd.h (kbxd_status_printf): New.
1653 * kbx/backend-support.c (be_return_pubkey): Use kbxd_status_printf.
1654 * kbx/kbxserver.c (kbxd_status_printf): New.
1655 * kbxd_start_command_handler (kbxd_start_command_handler): Don't
1656 use set_assuan_context_func, because the function pointer is
1657 shared by multiple threads.
1659 2022-04-26 Ingo Klöcker <dev@ingo-kloecker.de>
1661 gpg: Look up user ID to revoke by UID hash.
1662 + commit 35b17550706c8b7479ae96654feb97c05263cfc9
1663 * g10/keyedit.c (find_userid_by_namehash, find_userid): New.
1664 (keyedit_quick_revuid): Use find_userid() instead of iterating over the
1665 nodes of the keyblock.
1666 * tests/openpgp/quick-key-manipulation.scm: Add test for revoking a
1667 user ID specified by its hash.
1669 2022-04-26 NIIBE Yutaka <gniibe@fsij.org>
1671 tests: Avoid auto-removal when test fails.
1672 + commit f27a70ecc268f9318dbf87d23c451a3bad464ed1
1673 * tests/gpgscm/init.scm (*exit-status*): New.
1674 (exit): Set *exit-status*.
1675 * tests/gpgscm/tests.scm (mkdtemp-autoremove): Check
1676 exit-status and only remove the directory if not zero.
1678 tests: Support single invocation with variant.
1679 + commit ba2f2085a95be47a06ac6ba75a4c7def7c6599b2
1680 * tests/openpgp/run-tests.scm: Add GPGSCM_TEST_VARIANT support.
1682 dirmngr: Fix for C90 compiler.
1683 + commit d6eb2761330508d1c19f99ccdefefb1febbb81c4
1684 * dirmngr/dirmngr.c (main): Declaration before a statement.
1686 tests: Let make check-all work again.
1687 + commit 03e8668dbb27d83fb6064681ace560eb7154c569
1688 * Makefile.am (TESTS_ENVIRONMENT): Add GNUPG_BUILD_ROOT.
1690 tests: Use module_tests for testing agent/.
1691 + commit a9754879d127fd492606327b7397350f094f3ff4
1692 * agent/Makefile.am (module_test): New.
1693 * agent/all-tests.scm: Use module_tests instead of TESTS.
1695 tests: Skip testsing g13 when it's not enabled.
1696 + commit adf24ce6182839f6c54106cc2a8d2dc81b815793
1697 * g13/all-tests.scm: Skip the test by examining $objdir/Makefile.
1699 tests: Fix check-all for tests/openpgp.
1700 + commit 16720e1f54db31f3f890756ec6b2280630569fa0
1701 * tests/openpgp/Makefile.am: Revert the change by DISABLE_REGEXP.
1702 * tests/openpgp/all-tests.scm: Likewise.
1704 2022-04-25 Werner Koch <wk@gnupg.org>
1707 + commit 3a8164e69c3e753cf671a5c86305715232cc9c95
1710 gpg: Avoid NULL ptr access due to corrupted packets.
1711 + commit f6caf5b17366efa93f806f22e7441eb27f4d382c
1712 * g10/parse-packet.c (parse_signature): Do not create an opaque MPI
1713 with NULL and length > 0
1716 2022-04-25 Todd Zullinger <tmz@pobox.com>
1718 sm: Use gpg_err_code() instead of -1.
1719 + commit beb79f2705ad24665f54c9ea2042a73b1f16f6bc
1720 * sm/verify.c (gpgsm_verify): use gpg_err_code instead of 'rc == -1'
1723 2022-04-25 Werner Koch <wk@gnupg.org>
1725 Deprecate the --supervised options.
1726 + commit ca5d5142c6d6eaba4572a086f8473e4aebdd3f9e
1727 * agent/gpg-agent.c (main): Mark --supervised as deprecated.
1728 * dirmngr/dirmngr.c (main): Ditto.
1730 gpg: Emit an ERROR status as hint for a bad passphrase.
1731 + commit 0f8623d518d49541c1d54676d400916546ff38f4
1732 * g10/mainproc.c (proc_symkey_enc): Issue new error code.
1733 (proc_encrypted): Ditto.
1735 2022-04-25 NIIBE Yutaka <gniibe@fsij.org>
1737 common:iobuf: Exclude cases with IOBUF_INPUT_TEMP/IOBUF_OUTPUT_TEMP.
1738 + commit 2fc91e15c6bebb203162cc8445e68ee4ff934885
1739 * common/iobuf.c (iobuf_read): Handle a case with IOBUF_INPUT_TEMP.
1740 (iobuf_write): Handle a case with IOBUF_OUTPUT_TEMP.
1742 scd: Fix hard-coded constant for RSA auth.
1743 + commit 2848fe4c84e5ee20ccd90f0ef4c9f78c6801e1f6
1744 * scd/app-openpgp.c (do_auth): Allow larger data for RSA-4096.
1746 2022-04-22 Ingo Klöcker <dev@ingo-kloecker.de>
1748 gpg: Fix line end in error message.
1749 + commit 8b3a24e5176f64b101d2b073f2901852d8ecc691
1750 * g10/keyedit.c (menu_adduid): Move linefeed character to the format
1753 2022-04-22 NIIBE Yutaka <gniibe@fsij.org>
1755 agent: Not writing password into file.
1756 + commit e529c54fe3a83c1108347363a793c1cb9b790175
1757 * agent/genkey.c (do_check_passphrase_pattern): Use stream to invoke
1758 pattern check program.
1760 scd: Don't inhibit SSH authentication for larger data if it can.
1761 + commit e8fb8e2b3e66d5ea8a3dc90afdc14611abf2c3da
1762 * scd/app-openpgp.c (do_auth): Use command chaining if available.
1764 2022-04-21 Werner Koch <wk@gnupg.org>
1767 + commit a4b25bcfe1f9f740fe1451efc07c32959a2f8d86
1770 2022-04-20 Werner Koch <wk@gnupg.org>
1772 dirmngr: Changes to the linking order.
1773 + commit 89dc9f1e6916ebd123852534b8cada2fc3555688
1774 * dirmngr/Makefile.am: Tweak library order.
1776 w32: Do no use Registry item DefaultLogFile for the main tools.
1777 + commit 22fef189b1113581994972c06ecb216a888f3d74
1778 * g10/gpg.c (main): Set LOG_NO_REGISTRY.
1779 * sm/gpgsm.c (main): Ditto.
1780 * tools/gpg-connect-agent.c (main): Ditto.
1781 * tools/gpgconf.c (main): Ditto.
1782 (show_other_registry_entries): Print "DefaultLogFile".
1784 2022-04-14 Werner Koch <wk@gnupg.org>
1786 gpg: Replace an assert by a log_fatal.
1787 + commit 41fb46007e65be76cffbe2a19135facc3db912c5
1788 * g10/build-packet.c (do_signature): Use log_fatal.
1790 ssh: Returned faked response for the new session-bind extension.
1791 + commit 46d62d80a2b8b1ba4fc8b8698de7495f79a417cf
1792 * agent/command-ssh.c (SSH_OPT_CONSTRAIN_MAXSIGN): New.
1793 (SSH_OPT_CONSTRAIN_EXTENSION): New.
1794 (ssh_handler_add_identity): Ignore them.
1795 (ssh_handler_extension): Take success for session-bind.
1797 scd: Renamed a constant in ccid-driver.c.
1798 + commit dd727ec968af8e80d26087ee1eacdb192a21322d
1799 * scd/ccid-driver.c (MAX_DEVICE): Rename to CCID_MAX_DEVICE.
1801 scd: Minor code reorganization.
1802 + commit 6294ae282da1a504e7e28e759560814ed9c0b0b7
1803 * scd/ccid-driver.c: Move struct defines to the top.
1805 scd: Fix memory leak in ccid-driver.
1806 + commit 8ac92f0e807a3dfb6da46fdea1f9f2c89cc5ebc2
1807 * scd/ccid-driver.c (ccid_dev_scan): Use loop var and not the count.
1809 tests: Fix warning in common/t-ssh-utils.c.
1810 + commit 61038be8134c01300af0b2ec7d7a351ce45585af
1811 * common/t-ssh-utils.c (main): Remove continue.
1813 2022-04-14 NIIBE Yutaka <gniibe@fsij.org>
1815 tests: Fix common/t-ssh-utils.
1816 + commit 5e508ffcab185eb8149e2fb2833ce15820140368
1817 * common/t-ssh-utils.c (main): Accept an error with MD5 in_fips_mode.
1819 2022-04-14 Jakub Jelen <jjelen@redhat.com>
1821 tests: Honor FIPS mode.
1822 + commit 1f0651dbfbabb80adf5685da0049f15da97f6175
1823 * common/t-ssh-utils.c (FLAGS_NOFIPS): New.
1824 (sample_keys): Add flags member.
1825 (main): Detect if libgcrypt is in FIPS mode, try SHA256 fingerprints
1826 first and expect the MD5 ones will fail.
1828 2022-04-13 Werner Koch <wk@gnupg.org>
1830 scd:p15: Improve the PIN prompt for Genua cards.
1831 + commit 618aa8689a9b0b295d21130e472ed6aa739a52e5
1832 * scd/app-p15.c (CARD_PRODUCT_GENUA): New.
1833 (cardproduct2str): Add it.
1834 (read_p15_info): Detect and set GENUA
1835 (make_pin_prompt): Take holder string from the AODF.
1837 2022-04-11 Werner Koch <wk@gnupg.org>
1839 sm: Print diagnostic about CRL problems due to Tor mode.
1840 + commit 137e59a6a5c5cd89091471811bf7c7c67de5890d
1841 * dirmngr/crlfetch.c (crl_fetch, crl_fetch_default)
1842 (ca_cert_fetch, start_cert_fetch): Factor Tor error out to ...
1843 (no_crl_due_to_tor): new. Print status note.
1845 * dirmngr/ks-engine-ldap.c (ks_ldap_get)
1846 (ks_ldap_search, ks_ldap_put): Factor Tor error out to ...
1847 (no_ldap_due_to_tor): new. Print status note.
1849 * dirmngr/ocsp.c (do_ocsp_request): Print status note.
1850 * sm/misc.c (gpgsm_print_further_info): New.
1851 * sm/call-dirmngr.c (warning_and_note_printer): New.
1852 (isvalid_status_cb): Call it.
1853 (lookup_status_cb): Ditto.
1854 (run_command_status_cb): Ditto.
1856 * common/asshelp2.c (vprint_assuan_status): Strip a possible trailing
1859 scd: Support for GeNUA cards.
1860 + commit 0dcc24985235668caf218a58f593c348f6f6fb4f
1861 * scd/app-p15.c (read_p15_info): Disable extended mode for Genua
1864 2022-04-08 Werner Koch <wk@gnupg.org>
1866 gpg: Remove restrictions for the name part of a user-id.
1867 + commit 8945f1aedfd703661c300f326e70c1bf132bc656
1868 * g10/keygen.c (ask_user_id): Allow for the name to start with a
1869 digit. Allow names shorter than 5.
1871 2022-04-07 NIIBE Yutaka <gniibe@fsij.org>
1873 agent: Fix for possible support of Cygwin OpenSSH.
1874 + commit 90000819641c9011b0c0c19f5404a88bf8c34acc
1875 * agent/command-ssh.c (start_command_handler_ssh): Use es_sysopen.
1877 2022-04-06 NIIBE Yutaka <gniibe@fsij.org>
1879 w32: Exclude tests with HOME.
1880 + commit b47a23f5fac551727d24f65765e21485ed2bb02c
1881 * common/t-session-env.c [HAVE_W32_SYSTEM] (test_all): HOME is not
1882 defined, so, exclude the tests.
1884 w32: Fix for make check.
1885 + commit 39d478f5ba5d74cdd1d2e40311ff120c932bac37
1886 * common/Makefile.am (module_tests): Exclude t-exechelp and
1888 * common/t-stringhelp.c (mygetcwd): Convert '\' to '/'.
1889 * tests/cms/Makefile.am: Add $(EXEEXT).
1890 * tests/gpgme/Makefile.am: Likewise.
1891 * tests/migrations/Makefile.am: Likewise.
1892 * tests/openpgp/Makefile.am: Likewise.
1894 2022-04-04 NIIBE Yutaka <gniibe@fsij.org>
1896 agent:w32: Fix for use of socket.
1897 + commit 48ee11722dd060dacac55ae56ee699c0f5271bda
1898 * agent/command-ssh.c (get_client_info): Use type gnupg_fd_t for
1899 socket, until call of socket API.
1900 (start_command_handler_ssh): Don't convert here.
1902 2022-03-31 NIIBE Yutaka <gniibe@fsij.org>
1904 scd,tpm2d: Fix for consistent use of socket FD.
1905 + commit f584ad95048279b244083fee330c5741be2b9da7
1906 * scd/command.c (scd_command_handler): Use gnupg_fd_t for the argument
1907 but no INT2FD to listen. Use GNUPG_INVALID_FD.
1908 * tpm2d/command.c (tpm2d_command_handler): Likewise.
1909 * scd/scdaemon.c (start_connection_thread): Follow the change.
1910 * tpm2d/tpm2daemon.c (start_connection_thread): Likewise.
1911 * scd/scdaemon.h (scd_command_handler): Use gnupg_fd_t.
1912 * tpm2d/tpm2daemon.h (tpm2d_command_handler): Likewise.
1914 2022-03-30 NIIBE Yutaka <gniibe@fsij.org>
1916 dirmngr: Fix for SOCK.
1917 + commit 01ade6945d6c0cbc81e5169f74e3627fe5427be2
1918 * dirmngr/http.c (connect_with_timeout): Use FD2INT to unwrap SOCK.
1920 tpm2d: Fix socket resource leak on Windows.
1921 + commit 18eff31496a34156d58d757a2a110bcfde6c9908
1922 * tpm2d/tpm2daemon.c (main): Use gnupg_fd_t for socket, and use
1923 assuan_sock_close for the socket allocated by assuan_sock_new.
1924 (handle_connections): Use gnupg_fd_t for listen_fd.
1925 Use assuan_sock_close for the socket by npth_accept.
1927 common,w32: Fix handle_to_fd to match use of _open_osfhandle.
1928 + commit 2189b4bb638cd56fbb941353ecbfc373cb4cf90b
1929 * common/exechelp-w32.c (handle_to_fd): Use intptr_t.
1930 (gnupg_wait_processes): Fix to use pid_to_handle.
1932 2022-03-29 NIIBE Yutaka <gniibe@fsij.org>
1934 dirmngr: Clean up for not supporting WindowsCE.
1935 + commit d05221065fafd5a4694f14910e16afe90e3cd0dd
1936 * dirmngr/Makefile.am (dirmngr_SOURCES): Remove w32-ldap-help.h.
1937 * dirmngr/cdblib.c (cdb_init): Remove for __MINGW32CE__.
1938 * dirmngr/w32-ldap-help.h: Remove.
1940 gpg,tools: Remove use of repo only zlib-riscos.h.
1941 + commit 2cebba72749c7e564e62a997dd87f912962098c9
1942 * g10/compress.c: Don't use zlib-riscos.h.
1943 * tools/gpgsplit.c: Likewise.
1945 scd,w32: Fix socket resource leak.
1946 + commit a67a09be30f5ad4e3fbce5162c98eab5ba06a56f
1947 * scd/scdaemon.c (main): Use gnupg_fd_t for socket, and use
1948 assuan_sock_close for the socket allocated by assuan_sock_new.
1949 (handle_connections): Use gnupg_fd_t for listen_fd.
1950 Use assuan_sock_close for the socket by npth_accept.
1952 2022-03-28 Werner Koch <wk@gnupg.org>
1954 dirmngr: Escape more characters in WKD requests.
1955 + commit 435861b9fb8c221eee4bf50b2c25d59de1f1755c
1956 * dirmngr/server.c (proc_wkd_get): Also escape '#' and '+'
1958 gpg: Remove EAX from the preference list.
1959 + commit 253fcb97775b268d0a9ac47c71076b3577fcba55
1960 * g10/gpg.c (main): Remove note about rfc4880bis.
1961 * g10/keygen.c (keygen_set_std_prefs): Use only OCB in the AEAD
1964 2022-03-28 NIIBE Yutaka <gniibe@fsij.org>
1966 agent: KEYTOCARD prefers to specified time.
1967 + commit f0a1c79f60ce22b99ec75c2fd0de579fe976b48f
1968 * agent/command.c (cmd_keytocard): Timestamp at "Created:" field is
1969 only used when time is not specified.
1971 2022-03-25 Werner Koch <wk@gnupg.org>
1973 dirmngr: Workaround for a certain broken LDAP URL.
1974 + commit 90caa7ad598be123707f4d4651f9a64a74347626
1975 * dirmngr/ldap.c (url_fetch_ldap): Detect and replace.
1977 common,w32: Fix early home dir creation.
1978 + commit 0f03bdcd2e611adc8d49d997d3c0b8064d143a0c
1979 * common/homedir.c (w32_try_mkdir): Remove.
1980 (standard_homedir): Call gnupg_mkdir directly.
1981 (_gnupg_socketdir_internal): Ditto.
1983 2022-03-25 NIIBE Yutaka <gniibe@fsij.org>
1985 tools:gpgconf: Fix gc_component table.
1986 + commit caba9df7266539f944d8a8c7c03da3fc2addbe90
1987 * tools/gpgconf-comp.c [!BUILD_WITH_TPM2D] (gc_component): Add a dummy
1990 agent: Use "Created:" field for creation time.
1991 + commit c795be79c14fac01b984bdc2e2041d2141f27612
1992 * agent/agent.h (agent_key_from_file): Change the declaration.
1993 * agent/findkey.c (agent_key_from_file): Return timestamp.
1994 * agent/pkdecrypt.c (agent_pkdecrypt): Follow the change.
1995 * agent/pksign.c (agent_pkdecrypt): Likewise.
1996 * agent/command.c (cmd_passwd, cmd_export_key): Likewise.
1997 (cmd_keytocard): Use timestamp in private key file in "Created:".
1999 dirmngr: Suppress error message on trial reading as PEM format.
2000 + commit 25d37a0a6a9c42326777c2949054a8bd6f276f8a
2001 * dirmngr/dirmngr-client.c (read_pem_certificate): Add NO_ERRMSG
2002 argument to suppress the error message.
2003 (read_certificate, squid_loop_body): Follow the change.
2005 2022-03-24 NIIBE Yutaka <gniibe@fsij.org>
2007 dirmngr: Clear the error count to try certificate as binary.
2008 + commit 4d19759ce5fb4962b22a8bc04c3a54e3f47d2f17
2009 * dirmngr/dirmngr-client.c (read_certificate): Call
2012 kbx: Fix searching for FPR20 in version 2 blob.
2013 + commit 01329da8a778d3b0d121c83bfb61d99a39cccac4
2014 * kbx/keybox-search.c (blob_cmp_fpr_part): Don't change FPROFF, since
2015 it's caller which tweaks the offset.
2016 (has_short_kid, has_long_kid): Examine the key flags to determine if
2017 fingerprint 32 or 20.
2019 2022-03-22 Werner Koch <wk@gnupg.org>
2021 gpgtar: New option --with-log.
2022 + commit ed53d41b4c463072bac30b0e4c73f8bf445bd22d
2023 * tools/gpgtar.c: New option --with-log.
2024 * tools/gpgtar.h (opt): Add field with_log.
2025 * tools/gpgtar-extract.c (gpgtar_extract): Move directory string
2026 building up. Add option --log-file if needed.
2027 * tools/gpgtar-create.c (gpgtar_create): Make tmpbuf static becuase it
2028 is used outside of its scope.
2029 * tools/gpgtar-list.c (gpgtar_list): Ditto.
2031 2022-03-21 Werner Koch <wk@gnupg.org>
2033 dirmngr: Make WKD_GET work even for servers not handling SRV RRs.
2034 + commit 92c8ae720e69216a2f51d2c7d3cd72340b782fb3
2035 * dirmngr/server.c (proc_wkd_get): Take care of DNS server failures
2037 gpgtar: Finally use a pipe for decryption.
2038 + commit e5ef5e3b914d5c8f0b841b078b164500ea157804
2039 * tools/gpgtar.h (opt): Add new flags.
2040 * tools/gpgtar.c: new options --batch, --yes, --no, --status-fd, and
2041 --require-compliance.
2042 (main): Init signals.
2043 * tools/gpgtar-create.c: Add new header files.
2044 (gpgtar_create): Rework to use a pipe for encryption and signing.
2045 * tools/gpgtar-list.c: Add new header files.
2046 (gpgtar_list): Rework to use a pipe for decryption.
2047 * tools/gpgtar-extract.c: Add new header files.
2048 (gpgtar_extract): Rework to use a pipe for decryption.
2050 2022-03-19 NIIBE Yutaka <gniibe@fsij.org>
2052 common: Fix another race condition, and address the other one.
2053 + commit 2f1afc1296621624f34aa6a9db03ef29c741ba6c
2054 * common/dotlock.c (dotlock_take_unix): Do same when same PID
2055 process detects stale lockfile. Add comment.
2057 gpg: Always use version >= 4 to generate signature.
2058 + commit 0ba69e5581914f23f7efdd4d38b890f6def8967a
2059 * g10/sign.c (update_keysig_packet): Make sure sig->version >= 4.
2061 2022-03-18 Werner Koch <wk@gnupg.org>
2063 gpg: Print info about the used AEAD algorithm in the compliance msg.
2064 + commit 06b70daa505d3679985be47b6834f8ed7b64d6a9
2065 * g10/misc.c (openpgp_cipher_algo_mode_name): New.
2066 * g10/decrypt-data.c (decrypt_data): Use function here.
2068 common: New function map_static_strings.
2069 + commit 449d2fbcde630974628285d3405feb6ab2a812f9
2070 * common/mapstrings.c (struct intmapping_s): New.
2071 (map_static_strings): New.
2072 * common/stringhelp.c (do_strconcat): Rename to ...
2073 (vstrconcat): this and make global.
2075 * common/t-mapstrings.c (test_map_static_strings): New test.
2077 gpg: Allow decryption of symencr even for non-compliant cipher.
2078 + commit 8631d4cfe251f9936d6cbc11b4c4623397b1aeb6
2079 * g10/decrypt-data.c (decrypt_data): Add arg compliance_error. Adjust
2080 all callers. Fail on compliance error only in --require-compliance
2081 mode. Make sure to return an error if the buffer is missing; actually
2082 that should be an assert.
2083 * g10/mainproc.c (proc_encrypted): Delay printing of the compliance
2084 mode status. Consult the compliance error now returned by
2087 common: New flags for gnupg_spawn_process.
2088 + commit 6d6438a361d25f3b269f702e017f5e39fd1f5c38
2089 * common/exechelp.h (GNUPG_SPAWN_KEEP_STDIN): New.
2090 (GNUPG_SPAWN_KEEP_STDOUT): New.
2091 (GNUPG_SPAWN_KEEP_STDERR): New.
2092 * common/exechelp-posix.c (do_exec): Add arg flags and implement new
2094 * common/exechelp-w32.c (gnupg_spawn_process): Implement new flags.
2096 2022-03-18 NIIBE Yutaka <gniibe@fsij.org>
2098 common: Fix a race condition removing stale lockfile.
2099 + commit d94b411f129f572aace005f38cd78515d810135a
2100 * common/dotlock.c (read_lockfile): Return the file descriptor when
2102 (dotlock_take_unix): Check the case the lockfile was already removed.
2104 common: More heavy test condition for t-dotlock.c.
2105 + commit a30359cecb5b8ac73906264ded617a35794a0b0a
2106 * common/t-dotlock.c (lock_and_unlock): Use usleep and faster.
2107 Loop at least once. Use getrandom for random time.
2108 (main): Add new option --one-shot to run lock/unlock once.
2110 2022-03-15 NIIBE Yutaka <gniibe@fsij.org>
2112 scd: Fix DEVINFO with no --watch.
2113 + commit c6dd9ff9290427504faef120bd5c1ebb78990ca0
2114 * scd/app.c (app_send_devinfo): Fix for outputing once.
2115 * scd/command.c (hlp_devinfo): Fix comment.
2117 2022-03-10 NIIBE Yutaka <gniibe@fsij.org>
2119 scd: Enhance PASSWD command to accept KEYGRIP optionally.
2120 + commit 934864d399bb6091d55a15811eee7ed6e5391fb6
2121 * scd/command.c (cmd_passwd): Handle KEYGRIP optionally.
2123 scd: Use same idiom for same work.
2124 + commit d577ed29563768221b1aedb1fb4aebe64b23f3bf
2125 * scd/command.c (cmd_serialno, cmd_getattr): Use 'while' instead of
2128 2022-03-09 Jakub Jelen <jjelen@redhat.com>
2130 sign: Construct valid AEAD packets.
2131 + commit eadf12a52c2e230174e076a0dcae68132094cefe
2132 * g10/sign.c (sign_symencrypt_file): Insert correct version and AEAD
2133 information into symkey packet.
2135 2022-03-09 NIIBE Yutaka <gniibe@fsij.org>
2137 sm: Fix parsing encrypted data.
2138 + commit 6c50834c0905b55ee2da18728194dd4c93c377bf
2139 * sm/minip12.c (cram_octet_string): Finish when N==0.
2140 (parse_bag_encrypted_data): Support constructed data with multiple
2143 2022-03-08 Werner Koch <wk@gnupg.org>
2145 gpgsm: New option --require-compliance.
2146 + commit f8075257afad4c7a41cd4409e334670a0097b5b8
2147 * sm/gpgsm.c (oRequireCompliance): New.
2148 (opts): Add --require-compliance.
2150 * sm/gpgsm.h (opt): Add field require_compliance.
2151 (gpgsm_errors_seen): Declare.
2152 * sm/verify.c (gpgsm_verify): Emit error if non de-vs compliant.
2153 * sm/encrypt.c (gpgsm_encrypt): Ditto.
2154 * sm/decrypt.c (gpgsm_decrypt): Ditto.
2156 gpg: New option --require-compliance.
2157 + commit ee013c5350ce6a5b3d4089753cb99a44802fdfa8
2158 * g10/options.h (opt): Add field flags.require_compliance.
2159 * g10/gpg.c (oRequireCompliance): New.
2160 (opts): Add --require-compliance.
2162 * g10/mainproc.c (proc_encrypted): Emit error if non de-vs compliant.
2163 (check_sig_and_print): Ditto.
2164 * g10/encrypt.c (encrypt_crypt): Ditto.
2166 2022-03-08 Jussi Kivilinna <jussi.kivilinna@iki.fi>
2168 gpg: fix --enarmor with zero length source file.
2169 + commit 49c6e583945263497064109697237701977689c3
2170 * common/iobuf.c (filter_flush): Remove "src_len == 0" check.
2171 * g10/compress-bz2.c (do_compress): Exit early if flush not
2172 forced and input length is zero.
2173 * g10/compress.c (do_compress): Likewise.
2175 iobuf: add zerocopy optimization for iobuf_write.
2176 + commit b96eb6f08d1df86fc8578133e0a16566c988e37d
2177 * common/iobuf.c (filter_flush): Use 'iobuf->e_d' if configured.
2178 (iobuf_write): Configure 'iobuf->e_d' for 'filter_flush' if
2179 'iobuf->d.buf' is empty and external buffer is larger than threshold.
2181 iobuf: add zerocopy optimization for iobuf_read.
2182 + commit 15df88d135ba08797c2aaf1023c6c606aed49943
2183 * common/iobuf.h (iobuf_struct): Add 'e_d' substructure and members.
2184 * common/iobuf.c (IOBUF_ZEROCOPY_THRESHOLD): New.
2185 (iobuf_alloc): Clear 'iobuf->e_d'.
2186 (underflow_target): Use 'iobuf->e_d' when configured to bypass copying
2187 through 'iobuf->d.buf'.
2188 (iobuf_read): Configure 'iobuf->e_d' for 'underflow' if 'iobuf->d.buf'
2189 is empty and external buffer is larger than threshold.
2191 g10/cipher-aead: add fast path for avoid memcpy when AEAD encrypting.
2192 + commit 99e2c178c73cb6b82836b056ac658d8964fa7bc9
2193 * g10/cipher-aead.c (do_hash): Add faster path for encrypting directly
2194 from input buffer instead of memcpying then encrypting inplace.
2196 g10/decrypt-data: disable output estream buffering to reduce overhead.
2197 + commit 6c95d52a22a75d0585ff6598e3ca539e21253c82
2198 * g10/decrypt-data.c (decrypt_data): Disable estream buffering for
2201 g10/plaintext: disable estream buffering in binary mode.
2202 + commit 583b664a07b41ba6991f87a811ab933990457063
2203 * g10/plaintext.c (handle_plaintext): Disable estream buffering in
2206 Use iobuf buffer size for temporary buffer size.
2207 + commit f2322ff942fabd55de0a1272b1fcca534e623bd1
2208 * common/iobuf.c (iobuf_copy): Use iobuf buffer size for temporary
2210 * g10/plaintext.c (handle_plaintext, do_hash): Likewise.
2211 * g10/sign.c (sign_file): Likewise.
2213 2022-03-08 Werner Koch <wk@gnupg.org>
2215 gpgtar,w32: Support file names longer than MAX_PATH.
2216 + commit 70b738f93f1ae6b606af701f6def55a6f0f3d04b
2217 * tools/gpgtar.c: Replace assert by log_assert.
2218 * tools/gpgtar-extract.c: Ditto.
2219 (extract_regular): Create files with sysopen flag.
2220 * tools/gpgtar-create.c (scan_directory): Use gpgrt_fname_to_wchar.
2222 common,w32: Support file names longer than MAX_PATH in iobuf.
2223 + commit 6afedbcd47d9a7d433cebf68bccabd47ba776e0f
2224 * common/iobuf.c (direct_open): Use gpgrt_fname_to_wchar.
2225 (any8bitchar): Remove.
2227 2022-03-04 NIIBE Yutaka <gniibe@fsij.org>
2229 common: Fix confusion of get_pk_algo_from_key.
2230 + commit 14e13fb7123ec20dcdf2180584908e3fdfcef94d
2231 * common/ssh-utils.c (ssh_public_key_in_base64): Fix the constants.
2233 scd: Fix PK_AUTH with --challenge-response option.
2234 + commit 58e6990eaabb7302cc8cc979378e6fffe36459b7
2235 * scd/app.c (app_auth): It's only APPTYPE_OPENPGP which supports
2236 the challenge response interaction.
2237 * scd/command.c (cmd_pkauth): It only wants if it works or not.
2239 2022-03-03 NIIBE Yutaka <gniibe@fsij.org>
2241 scd: Add --challenge-response option to PK_AUTH for OpenPGP card.
2242 + commit 44621120a269ba67408fe1ea067af8cbd1cbb35e
2243 * scd/app-openpgp.c (rmd160_prefix, sha1_prefix, sha224_prefix)
2244 (sha256_prefix, sha384_prefix, sha512_prefix): Move the scope up.
2245 (gen_challenge): New.
2246 (do_auth): Support challenge-response check if it signs correctly.
2247 * scd/app.c (app_auth): Remove the check INDATA and INDATALEN.
2248 * scd/command.c (cmd_pkauth): Support --challenge-response option.
2250 2022-03-02 Jussi Kivilinna <jussi.kivilinna@iki.fi>
2252 g10/encrypt: use iobuf_copy instead of manual iobuf_read/iobuf_write.
2253 + commit 756c0bd5d89bd0a773f844fbc2ec508c1a36c63d
2254 * g10/encrypt.c (encrypt_simple): Use 'iobuf_copy' for no-literal case.
2256 g10/dearmor: use iobuf_copy.
2257 + commit 9c313321a849ad5794fd90f6d5b84fee3674543c
2258 * g10/dearmor.c (dearmor_file, enarmor_file): Use 'iobuf_copy'.
2260 2022-03-02 NIIBE Yutaka <gniibe@fsij.org>
2262 scd: Let READKEY support --format=ssh option.
2263 + commit 8e650dbd48fa5fde6d8f08154e6a892d495e9227
2264 * scd/command.c (do_readkey): Support --format=ssh option.
2265 * common/ssh-utils.c (ssh_public_key_in_base64): New.
2266 * common/ssh-utils.h (ssh_public_key_in_base64): New declaration.
2268 2022-02-27 Jussi Kivilinna <jussi.kivilinna@iki.fi>
2270 g10/sign: sign_file: use iobuf_read for higher detached signing speed.
2271 + commit f8943ce098f6f193da791faf43fff823568697d9
2272 * g10/sign.c (sign_file): Use iobuf_read instead of iobuf_get for
2273 reading data from detached file.
2275 g10/plaintext: do_hash: use iobuf_read for higher performance.
2276 + commit 4e27b9defc608f1fa31ca50f1ed1d5761b73b480
2277 * g10/plaintext.c (do_hash): Use iobuf_read instead of iobuf_get for
2278 reading data; Use gcry_md_write instead of gcry_md_putc for hash data.
2280 2022-02-27 Werner Koch <wk@gnupg.org>
2282 agent: Print the correct daemon name in presence of a --foo-program.
2283 + commit f03c871c9e407d2aeff7b971f67a68b929f17b99
2284 * agent/call-daemon.c (wait_child_thread): Print the correct name.
2286 agent: New flag "qual" for the trustlist.txt.
2287 + commit 7c8c6060616ab91f5490e91a0fb9efc9aee9f58e
2288 * agent/trustlist.c (struct trustitem_s): Add flag "qual".
2289 (read_one_trustfile): Rename arg "allow_include" to "systrust" and
2290 change callers. Parse new flag "qual".
2291 (istrusted_internal): Print all flags.
2292 * sm/call-agent.c (istrusted_status_cb): Detect the "qual" flag.
2293 * sm/gpgsm.h (struct rootca_flags_s): Add flag "qualified".
2294 * sm/certchain.c (do_validate_chain): Take care of the qualified flag.
2296 dimngr: Do not check the self-signature of a root CA cert.
2297 + commit b901e63b4d8cd5214eb97acfcce0fac532ea5300
2298 * dirmngr/validate.c (validate_cert_chain): Comment out that code.
2300 dirmngr: Support ECDSA for CRLs.
2301 + commit de87c8e1ead72ea67789ffa4375f9dd3e4f9e2fa
2302 * dirmngr/crlcache.c (finish_sig_check): Support ECDSA.
2303 * dirmngr/validate.c (check_cert_sig): Ditto. Remove the never
2304 used support for DSA.
2306 dirmngr: Support ECDSA for OCSP.
2307 + commit 890e9849b58e91fb7e0ad8d3b11d19363fca2d8a
2308 * dirmngr/validate.c (pk_algo_from_sexp): Make public. Support ECC.
2309 * dirmngr/ocsp.c (check_signature): Remove hash preparation out to ...
2310 (check_signature_core): here. This changes the arg s_hash to md.
2313 2022-02-25 NIIBE Yutaka <gniibe@fsij.org>
2315 gpg: Clarify a call of ask_for_detached_datafile.
2316 + commit 335805e1d48258dc96d360f72aa92db32f3d82d3
2317 * g10/mainproc.c (proc_tree): Call ask_for_detached_datafile
2320 2022-02-22 NIIBE Yutaka <gniibe@fsij.org>
2322 gpg: Fix generating AEAD packet.
2323 + commit 903c5fe369bc4948718a7d2a0e19b1acdb2406c4
2324 * g10/cipher-aead.c (do_free): Fix the condition of the last chunk.
2326 2022-02-21 Werner Koch <wk@gnupg.org>
2328 scd,w32: Print code pages with --show-configs.
2329 + commit cff68fe35918bf944a752008feb68713b198f05e
2330 * tools/gpgconf.c (show_configs): Do it.
2332 scd:p15: Used extended mode already for RSA 2048.
2333 + commit 597253ca171a8ae9f0456323eb3aceb47fd4fde6
2334 * scd/app-p15.c (do_sign, do_decipher): Replace GT by GE.
2336 2022-02-18 NIIBE Yutaka <gniibe@fsij.org>
2338 sm: Fix use of value NONE in gnupg_isotime_t type.
2339 + commit 05fdaa1737523fad72b6ffb9e7a90d5344ff64a5
2340 * common/gettime.h (GNUPG_ISOTIME_NONE): New.
2341 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it.
2342 * sm/certlist.c (gpgsm_add_to_certlist): Likewise.
2343 * sm/import.c (check_and_store): Likewise.
2344 * sm/keylist.c (list_cert_colon, list_cert_raw): Likewise.
2345 (list_cert_std): Likewise.
2346 * sm/sign.c (gpgsm_sign): Likewise.
2348 2022-02-08 Jussi Kivilinna <jussi.kivilinna@iki.fi>
2350 g10/mainproc: avoid extra hash contexts when decrypting MDC input.
2351 + commit ab177eed514f7f3432d78e7e6521ad24cc0f4762
2352 * g10/mainproc.c (mainproc_context): New member
2353 'seen_pkt_encrypted_mdc'.
2354 (release_list): Clear 'seen_pkt_encrypted_mdc'.
2355 (proc_encrypted): Set 'seen_pkt_encrypted_mdc'.
2356 (have_seen_pkt_encrypted_aead): Rename to...
2357 (have_seen_pkt_encrypted_aead_or_mdc): ...this and add check for
2358 'seen_pkt_encrypted_mdc'.
2359 (proc_plaintext): Do not enable extra hash contexts when decrypting
2362 2022-02-03 Werner Koch <wk@gnupg.org>
2364 sm: New option --ignore-cert-with-oid.
2365 + commit e23dc755fa725877ce96eb5a6a6f5788457267f4
2366 * sm/gpgsm.c (oIgnoreCertWithOID): New.
2368 (main): Store its value.
2369 * sm/call-agent.c (learn_cb): Test against that list.
2371 2022-02-02 NIIBE Yutaka <gniibe@fsij.org>
2373 gpg: Fix for -Wformat when using uint64_t.
2374 + commit b2cedc108d5cabb07f496c31c11c9cba6f328f76
2375 * g10/cipher-aead.c (do_flush): Use PRIu64.
2376 * g10/decrypt-data.c (aead_underflow): Likewise.
2378 2022-02-01 Werner Koch <wk@gnupg.org>
2380 dirmngr: Avoid initial delay on the first keyserver access.
2381 + commit 57d546674d081b9a4cd5d9281ea34cb5c85d2830
2382 * dirmngr/dirmngr.c (dirmngr_never_use_tor_p): New.
2383 * dirmngr/server.c (ensure_keyserver): Don't even test for the Tor
2384 proxy in never-use-tor Mode.
2386 * tools/gpgtar-create.c: Include unistd.h to avoid a warning on
2389 sm: Partly revert last commit.
2390 + commit 623a427b0cb6fc2334e86b7c6f6133b296b0807b
2391 * sm/gpgsm.c (set_debug): Remove doubled code.
2393 gpg,sm: Set --verbose and clear --quiet in debug mode.
2394 + commit 51edea995d352a7b557fb0315fa5091dc42065cb
2395 * g10/gpg.c (set_debug): Tweak options.
2396 * sm/gpgsm.c (set_debug): Ditto.
2398 2022-01-28 Werner Koch <wk@gnupg.org>
2400 ssh: Fix adding an ed25519 key with a zero length comment.
2401 + commit 934a60de6b8892ea990c77f8bef8b2872e31a0f2
2402 * agent/command-ssh.c (sexp_key_construct): Do not put an empty string
2403 into an S-expression.
2404 (stream_read_string): Do not not try to a read a zero length block.
2406 gpg: Allow --dearmor to decode all kinds of armor files.
2407 + commit 34ea19aff99f473bbf076a60e1f306b677339093
2408 * g10/filter.h (armor_filter_context_t): New fields dearmor_mode and
2410 * g10/dearmor.c (dearmor_file): Set dearmor_mode.
2411 * g10/armor.c (is_armor_header): Magic to switch to generic dearmor
2413 (parse_header_line): Treat non OpenPGP armor in a special way.
2414 (check_input): Ditto.
2415 (radix64_read): Detect non OpenPGP armor END lines.
2417 2022-01-27 Werner Koch <wk@gnupg.org>
2419 gpgsm: Retire the new --ldapserver.
2420 + commit f2d1187fcde3290ee8133fed256a711cb0b0715c
2421 * sm/gpgsm.c (oKeyServer_deprecated): New.
2422 (opts): Assign "ldapserver" to the new option and mark it as obsolete.
2424 gpgconf: Teach --show-config the legacy gpgconf.conf.
2425 + commit ed798a97f54fd8b5a48d662b0fc9ae517d938efe
2426 * tools/gpgconf.c (show_configs): Print gpgconf.conf and a warning.
2428 gpgconf: Return again "keyserver" for gpgsm.
2429 + commit 977b61ddab0ceb5de48645a5550434441f5eeba3
2430 * tools/gpgconf-comp.c (known_options_gpgsm): Change "ldapserver" back
2433 2022-01-26 Werner Koch <wk@gnupg.org>
2435 gpgconf: Fix --list-options for forced options.
2436 + commit 8fb23094c2f520e346170fe64d8b9b2e27e8dd64
2437 * tools/gpgconf-comp.c (retrieve_options_from_program): Ignore to to
2438 ignored options. Add failsafe code to avoid calling percent_escape
2441 2022-01-25 Werner Koch <wk@gnupg.org>
2443 gpgconf: Return --ldapserver and --keyserver from dirmngr.
2444 + commit 0b4fdbd5f41e1b93a67a65617c7c382c65dfb7c6
2445 * dirmngr/dirmngr.c: Reorder two option groups.
2446 * tools/gpgconf-comp.c (known_options_gpgsm): Rename "keyserver" to
2447 "ldapserver" and set level to invisible.
2448 (known_options_dirmngr): Add "ldapserver" at the basic level.
2449 * sm/gpgsm.c (opts): No more help text for "ldapserver".
2451 2022-01-18 Werner Koch <wk@gnupg.org>
2453 gpg: Print Yubikey version correctly.
2454 + commit 38e100acb7201010d46a50e6a371603373b2a30e
2455 * g10/call-agent.c (learn_status_cb): Parse APPVERSION.
2456 * g10/call-agent.h (struct agent_card_info_s): Add field appversion.
2457 * g10/card-util.c (print_a_version): New.
2458 (current_card_status): Print version from appversion.
2460 2022-01-12 Werner Koch <wk@gnupg.org>
2462 gpgconf: Add command aliases -L -K -R.
2463 + commit ec4a1cffb865a724f36fbf9ad2de984d003fd650
2464 * tools/gpgconf.c (enum cmd_and_opt_values): Assign shortcuts.
2466 2022-01-12 NIIBE Yutaka <gniibe@fsij.org>
2468 gpg: Fix adding the list of ultimate trusted keys.
2469 + commit 4aeeaa65ad09fa72ee21c5597b1ce6255ec7dfa8
2470 * g10/keygen.c (do_generate_keypair): Remove another call to
2472 * g10/trust.c (update_ownertrust): Add call to tdb_update_utk.
2473 * g10/trustdb.c (tdb_update_utk): New.
2474 * g10/trustdb.h (tdb_update_utk): New.
2476 2022-01-11 Ingo Klöcker <dev@ingo-kloecker.de>
2478 gpg: Report failed generation of subkey pair via status interface.
2479 + commit b66854ac93d843cc8c0ade28684302a99339273d
2480 * g10/keygen.c (generate_subkeypair): On error, write error and
2481 "key not created" message to status interface.
2483 gpg: Request keygrip of key to add via command interface.
2484 + commit 19b1a28621c614b81f596e363b1ce49dd9fae115
2485 * g10/keygen.c (ask_algo): Request keygrip via cpr_get.
2486 * doc/help.txt (gpg.keygen.keygrip): New help text.
2488 2022-01-10 Werner Koch <wk@gnupg.org>
2490 dirmngr: Map all gnupg.net addresses to the Ubuntu keyserver.
2491 + commit d445e193652617a85a09289689a61111b889728f
2492 * dirmngr/server.c (make_keyserver_item): Change mapping.
2494 2022-01-09 Werner Koch <wk@gnupg.org>
2496 gpgtar: List and extract using extended headers.
2497 + commit 99a8b1f13831c9d7ebd925abf2bc34e4c86f5404
2498 * tools/gpgtar.h (TF_EXTHDR, TF_GEXTHDR): New.
2499 * tools/gpgtar-list.c (parse_header): Set the new type flags.
2500 (parse_extended_header): New.
2501 (read_header): Add arg r_extheader and parse extended header.
2502 (print_header): Consult the extended header.
2503 (gpgtar_list): Pass an extended header object.
2504 (gpgtar_read_header): Ditto.
2505 (gpgtar_print_header): Ditto.
2506 * tools/gpgtar-extract.c (extract): New arg exthdr and factor name
2508 (check_suspicious_name): new.
2509 (extract_regular): Add arg exthdr and consult it.
2510 (extract_directory): Likewise.
2511 (gpgtar_extract): Provide extheader object.
2513 gpgtar: Create extended header for long file names.
2514 + commit 3a1c556b2c3a45afb5b0113d74cd58a7c4cad19e
2515 * tools/gpgtar-create.c (global_header_count): new.
2517 (build_header): New arg r_exthdr. Detect and store long file and link
2518 names. Factor checkum computation out to ...
2519 (compute_checksum): new.
2520 (add_extended_header_record): New.
2521 (write_extended_header): New.
2522 (write_file): Write extended header.
2524 2022-01-04 NIIBE Yutaka <gniibe@fsij.org>
2526 scd,pcsc: Fix error handling for a reader with reader-port.
2527 + commit f9c9938b28b68bb5b433c2de981b9f26af64c6a9
2528 * scd/apdu.c (apdu_open_reader): Make sure dl->idx is always
2529 incremented to handle error from open_pcsc_reader correctly.
2531 2021-12-30 Werner Koch <wk@gnupg.org>
2533 gpgconf: Do not list ignored options and mark forced options as r/o.
2534 + commit 42785d7c8a524129d9fe1a5afae553ff73f8e25b
2535 * tools/gpgconf-comp.c (list_one_option): Skip ignored options and set
2536 the no_change flag for forced options.
2537 (retrieve_options_from_program): Put the attributes into the option
2540 2021-12-22 NIIBE Yutaka <gniibe@fsij.org>
2542 build: Remove unused old m4 files.
2543 + commit 85db1b1a3b16730ede231acdf83e076af99e8aa7
2544 * m4/glibc2.m4, m4/glibc21.m4: Remove.
2545 * m4/intl.m4, m4/intldir.m4, m4/lock.m4: Remove.
2546 * m4/intdiv0.m4, m4/intmax.m4, m4/inttypes-pri.m4: Remove.
2547 * m4/inttypes.m4, m4/inttypes_h.m4, m4/longdouble.m4: Remove.
2548 * m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4: Remove.
2549 * m4/stdint_h.m4, m4/sys_socket_h.m4, m4/uintmax_t.m4: Remove.
2550 * m4/visibility.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4: Remove.
2552 build: Update for newer autoconf.
2553 + commit 6b4441a7de9d7090bb3b1570a12e1e8bce0554cb
2554 * configure.ac (AC_PREREQ): Use >= 2.69.
2555 (AC_CONFIG_HEADERS): Use it, instead of AC_CONFIG_HEADER.
2556 (AC_HEADER_STDC, AC_HEADER_TIME): Remove obsolete macros.
2557 (sys/time.h): Add the check of the header.
2558 (time_t): Don't use TIME_WITH_SYS_TIME.
2559 * acinclude.m4 (AC_HEADER_TIME): Don't require.
2560 Don't use TIME_WITH_SYS_TIME.
2561 * dirmngr/dns.c: Don't use TIME_WITH_SYS_TIME.
2563 2021-12-21 NIIBE Yutaka <gniibe@fsij.org>
2565 agent: Fix comment for .po generation.
2566 + commit c3db27fa85200a6d03df8f8b96ffc848a2ec0301
2567 * agent/call-pinentry.c (setup_formatted_passphrase): Move comment to
2570 2021-12-20 Werner Koch <wk@gnupg.org>
2573 + commit f74c65fd9bbb97a24b1a3bfe73706c6fcf95ad2a
2576 gpg: Correctly set the ownertrust for a new key.
2577 + commit 610528725290961ecc4a35d79ac9e4f2e07ed24e
2578 * g10/keygen.c (do_generate_keypair): Use update_ownertrust.
2581 + commit 69195ab2550ef1e8ccf8bfe2b6972e822d27c253
2584 gpg: Add unfinished code for --export-secret-ssh-key.
2585 + commit afe5fcda52e88438c7a7278117b2e03f510a9c1c
2586 * g10/gpg.c (exportSecretSshKey): New.
2587 (opts): Add --export-secret-ssh-key.
2588 (main): Implement option.
2589 * g10/export.c (do_export_stream): Factor keywrap key code out to ...
2590 (get_keywrap_key): new.
2591 (mb_write_uint32, mb_write_uint8)
2592 (mb_write_data, mb_write_cstring)
2593 (mb_write_string, mb_write_mpi): New.
2594 (receive_raw_seckey_from_agent): New.
2595 (export_secret_ssh_key): New.
2597 gpg: Allow passing a keygrip as description to pinentry.
2598 + commit ace15e1b09dc9fc83d71faeeb7805802ed5bcc82
2599 * g10/keydb.h (FORMAT_KEYDESC_KEYGRIP): New.
2600 * g10/passphrase.c (gpg_format_keydesc): Add new mode.
2602 common: Add set_membuf_err.
2603 + commit da391022160804785dad7d53b464e0448ab8aba0
2604 * common/membuf.c (set_membuf_err): New.
2606 wkd: Don't beg for donations.
2607 + commit 038136ea48ae8963dd89c7e1999d640a112dd791
2608 * tools/gpg-wks-server.c (send_congratulation_message): Remove
2609 donation hint from message.
2611 2021-12-20 Ingo Klöcker <dev@ingo-kloecker.de>
2613 dirmngr: Ask keyservers to provide the key fingerprints.
2614 + commit c7fa4c7f8bf375e3739ef8361f38b6b31113b8bf
2615 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Add "fingerprint=on" to
2618 2021-12-17 NIIBE Yutaka <gniibe@fsij.org>
2620 dirmngr: Fix ldap-url.c.
2621 + commit a9b95b20a8c358d9f8743acfa1076c3be4ff0ac1
2622 * dirmngr/ldap-url.c (ldap_charray2str): Use memcpy instead of strncpy
2623 when length is computed by strlen beforhand.
2625 w32: Prepare for the case gcrypt.h will not include winsock2.h.
2626 + commit e08225030dfb2090e756d26575f38c371e5a81cf
2627 * common/dynload.h: Include specific headers only.
2628 * common/exechelp-w32.c: Include <windows.h>.
2629 * common/gettime.c: Likewise.
2630 * common/utf8conv.c: Likewise.
2631 * tests/gpgscm/ffi.c: Likewise.
2632 * tools/gpgconf.c: Likewise.
2633 * configure.ac: Check winsock2.h, removing gl_HEADER_SYS_SOCKET.
2635 2021-12-10 NIIBE Yutaka <gniibe@fsij.org>
2637 gpg: Emit compatible Ed25519 signature.
2638 + commit 61ac580a2075564bc775b6764a239dad5e336251
2639 * g10/pkglue.c (sexp_extract_param_sos_nlz): New.
2640 * g10/pkglue.h: Add the declaration.
2641 * g10/sign.c (do_sign): Use sexp_extract_param_sos_nlz for Ed25519.
2643 2021-11-24 Jakub Jelen <jjelen@redhat.com>
2645 gpg: Fix function prototype to match declaration.
2646 + commit 426d82fcf1c133bfc1d5c931109d71db3f3815a9
2647 * g10/test-stubs.c (keyserver_import_mbox): Fix prototype
2649 kbx: Fix allocation check.
2650 + commit 46efee8cb7009b0a0c04b42822d4579424c536e1
2651 * kbx/kbxserver.c (cmd_search): Fix allocation check
2653 homedir: Avoid memory leaks on errors.
2654 + commit 6ee3eb420207c51bc4f2e6aa0871bc8c51f977f0
2655 * common/homedir.c (unix_rootdir): Free allocated memory on error path
2657 dirmngr: Avoid memory leaks on errors.
2658 + commit 940af3f05231dd85138fd3415c7bb7a974bec950
2659 * dirmngr/ldap-misc.c (ldap_parse_extfilter): Avoid direct return
2660 without freeing resources on errors.
2662 2021-11-24 NIIBE Yutaka <gniibe@fsij.org>
2664 gpg: Fix format_keyid.
2665 + commit a9be9f4e6e6d451698afa3d4780a53ed3718b30b
2666 * g10/keyid.c (format_keyid): Allocate buffer earlier.
2668 gpg: Fix key conversion for SSH.
2669 + commit 07671917e476ad5ae8f5098630ef1cd531ff401a
2670 * g10/export.c (key_to_sshblob): Use put_membuf with length counted
2671 beforehand, and use memcmp instead of strncmp.
2673 2021-11-22 Werner Koch <wk@gnupg.org>
2675 gpg: New option --forbid-gen-key.
2676 + commit c397ba3ac02e38b428d3e13d0bebac2a99b81f01
2677 * g10/gpg.c (oForbidGenKey, opts): New option.
2678 (mopt): New local struct
2679 (gen_key_forbidden): New.
2680 (main): Set and handle the option.
2682 2021-11-19 Werner Koch <wk@gnupg.org>
2684 gpgconf: Include output of --list-dirs in --show-configs.
2685 + commit a0fb78ee0fba13fdbe22d8c3f408a78b847cee28
2686 * tools/gpgconf.c (list_dirs): Add arg special.
2687 (show_other_registry_entries): Print the Homedir.
2688 (show_configs): List directories.
2690 2021-11-18 Werner Koch <wk@gnupg.org>
2692 gpg,gpgsm: Add option --min-rsa-length.
2693 + commit 5f39db70c069a95731a8a1f65547e3314d6b1f85
2694 * common/compliance.c (min_compliant_rsa_length): New.
2695 (gnupg_pk_is_compliant): Take in account.
2696 (gnupg_pk_is_allowed): Ditto.
2697 (gnupg_set_compliance_extra_info): New.
2698 * g10/gpg.c (oMinRSALength): New.
2699 (opts): Add --min-rsa-length.
2701 * g10/options.h (opt): Add field min_rsa_length.
2702 * sm/gpgsm.c (oMinRSALength): New.
2703 (opts): Add --min-rsa-length.
2705 * sm/gpgsm.h (opt): Add field min_rsa_length.
2707 2021-11-17 Werner Koch <wk@gnupg.org>
2709 gpgconf: --show-configs now prints a bunch of Registry entries.
2710 + commit 749bb80cb7685c12f3c65796559990952758f294
2711 * tools/gpgconf.c (show_other_registry_entries): New.
2712 (show_configs): Call it. Minor reformatting.
2714 gpgconf: Extend --show-config to show envvars.
2715 + commit 9172fbc08473afa2c295f7c77a8ae78efd4f77b7
2716 * tools/gpgconf.c (my_copy_file): Add arg LISTP and record certain
2718 (show_configs_one_file): New arg LISTP to be passed thru.
2719 (show_configs): Show envars and regisiry values.
2721 common,w32: New function read_w32_reg_string.
2722 + commit 50539394802fb9478296d52527582697a6693b52
2723 * common/w32-reg.c (get_root_key): Remove.
2724 (read_w32_registry_string): Turn into a wrapper for the gpgrt
2726 (read_w32_reg_string): New.
2728 2021-11-15 Werner Koch <wk@gnupg.org>
2730 sm: Detect circular chains in --list-chain.
2731 + commit 74c5b350624b5636706bc39605857f10762371b1
2732 * sm/keylist.c (list_cert_chain): Break loop for a too long chain.
2734 2021-11-15 NIIBE Yutaka <gniibe@fsij.org>
2737 scd:openpgp: Support longer data for INTERNAL_AUTHENTICATE.
2738 + commit a575b0aba5424ed76b1067218beab748b56bde43
2739 * scd/app-openpgp.c (do_auth): Use extended Lc, when supported.
2741 2021-11-14 Werner Koch <wk@gnupg.org>
2743 agent: Print the non-option warning earlier.
2744 + commit bd5c775878fdfc151a3d996b335ea22d5247c963
2745 * agent/gpg-agent.c (main): Move detection up.
2747 2021-11-13 Werner Koch <wk@gnupg.org>
2749 gpg: Remove stale ultimately trusted keys from the trustdb.
2750 + commit 99ef78aa0ca7e48ceba400e1a43f8185cf9bbf71
2751 * g10/tdbdump.c (export_ownertrust): Skip records marked with the
2752 option --trusted-key.
2753 (import_ownertrust): Clear the trusted-key flag.
2754 * g10/tdbio.h (struct trust_record): Add field flags.
2755 * g10/tdbio.c (tdbio_dump_record): Improve output.
2756 (tdbio_read_record, tdbio_write_record): Handle flags.
2757 * g10/trustdb.c (verify_own_keys): Clear stale trusted-keys and set
2758 the flag for new --trusted-keys.
2759 (tdb_update_ownertrust): Add arg as_trusted_key. Update callers.
2761 keyboxd: New option --steal-socket.
2762 + commit b0079ab39d31c74673e576149c7ac66d00c45c49
2763 * kbx/keyboxd.c (oStealSocket): New const.
2765 (steal_socket): New file global flag.
2767 (create_server_socket): Implement option.
2769 agent,dirmngr: New option --steal-socket.
2770 + commit dd708f60d5cf571bd4f0312c1b291ec93c328047
2771 * agent/gpg-agent.c (oStealSocket): New.
2773 (steal_socket): New file global var.
2775 (create_server_socket): Implement option.
2777 * dirmngr/dirmngr.c (oStealSocket): New.
2779 (steal_socket): New file global var.
2780 (main): Set option. Add comment to eventually implement it.
2782 2021-11-12 NIIBE Yutaka <gniibe@fsij.org>
2784 gpg: Don't use malloc for kek_params.
2785 + commit b124bca592e15dcf41b621be517bc4af9e1e9d4d
2786 * g10/ecdh.c (pk_ecdh_default_params): Use stack for kek_params.
2788 2021-11-12 Jakub Jelen <jjelen@redhat.com>
2789 NIIBE Yutaka <gniibe@fsij.org>
2791 kbx: Avoid use of uninitialized value.
2792 + commit fae1d2e2ccde6cb46974433cf769c83134b0f57d
2793 * kbx/backend-kbx.c (be_kbx_search): Initialize skipped_long_blobs
2794 value which is passed to keybox_search and incremented there.
2795 (be_kbx_seek): Likewise.
2797 2021-11-12 Jakub Jelen <jjelen@redhat.com>
2799 gpg: Avoid uninitialized revkey.fprlen.
2800 + commit d24c5df52b55e86b49b48f153a1ada5a5081eda5
2801 * g10/keygen.c (parse_revocation_key): Store the fingerprint length in
2804 2021-11-12 Jakub Jelen <jjelen@redhat.com>
2805 NIIBE Yutaka <gniibe@fsij.org>
2807 agent: Avoid uninitialized buffer.
2808 + commit ae3d0bb8e77ce1b2a096fff7d783c781c9f7a502
2809 * agent/sexp-secret.c (fixup_when_ecc_private_key): Initialize buffer to
2810 avoid its use on unexpected inputs.
2812 2021-11-12 Jakub Jelen <jjelen@redhat.com>
2814 agent: Correctly free memory on error path.
2815 + commit 50f32eb0664d921242563f6602ce5a8f46557085
2816 * agent/protect.c (merge_lists): Free memory on error.
2818 scd: Avoid memory leak.
2819 + commit c0b1bcc5c6b5558c9f1f665797979134ade66fd7
2820 * scd/command.c (cmd_readkey): Free allocated memory on failure path.
2822 tools: Avoid memory leak from gpgspilt.
2823 + commit 50e6d63f12e700658f094bf1ff2fd25861690240
2824 * tools/gpgsplit.c (write_part): Free memory when no longer needed.
2826 2021-11-09 Bernhard M. Wiedemann <bwiedemann@suse.de>
2828 wks: Do not mark key files as executable.
2829 + commit 0c8bc154342bf54f7e6cce2075ee8e851dfd09b5
2832 wks: Allow access to newly created dirs.
2833 + commit 60be00b0336bebc319d3e444841526be87dfe3bc
2836 2021-11-04 Werner Koch <wk@gnupg.org>
2838 gpg: Fix indentation of --print-mds and --print-md sha512.
2839 + commit d9deac7791904634848a4c178585f37205641124
2840 * g10/gpg.c (print_hex): Fix indentation.
2842 gpgconf: New command --show-configs.
2843 + commit fa738173f9d8aa1ddd6b5e665d2f035dae2c0b1f
2844 * tools/gpgconf.c (aShowConfigs): New.
2845 (opts): Add --show-configs.
2847 (show_version_gnupg): Add arg "prefix" and adjust caller.
2848 (my_copy_file): New.
2849 (show_configs_one_file): New.New.
2850 (show_configs): New.
2851 (main): Call show_configs.
2853 2021-11-03 Ingo Klöcker <dev@ingo-kloecker.de>
2855 gpgconf: Allow changing gpg's deprecated keyserver option.
2856 + commit 0a7d772a5c43eddad6fb3238614b8af722453919
2857 * tools/gpgconf-comp.c (known_options_gpg): Add "keyserver".
2859 2021-11-02 NIIBE Yutaka <gniibe@fsij.org>
2861 scd: Simplify the loop of DEVINFO.
2862 + commit 49f7fcb90b5d4f33b9b65baec8774745aa2242c9
2863 * scd/app.c (app_send_devinfo): Factor out lock/unlock.
2865 2021-10-29 NIIBE Yutaka <gniibe@fsij.org>
2867 scd: Fix the previous commit.
2868 + commit 99e00ec6db33ce86b92106307d637769e0914833
2871 scd: Modify DEVINFO behavior to support looping forever.
2872 + commit 48e824b6ea69d21ccbc50aac125d8b442af66727
2873 * scd/app.c (struct mrsw_lock): Add notify_cond member.
2874 (notify_cond): Remove.
2875 (card_list_r_lock, card_list_r_unlock): Rename.
2876 (card_list_w_lock, card_list_w_unlock): Rename.
2877 (card_list_signal, card_list_wait): New, fixing thinko about
2878 notify/wakeup with MRSW lock.
2879 (app_send_devinfo): Support looping.
2880 (select_application): Notify app_send_devinfo thread for newly
2882 (initialize_module_command): Initialize notify_cond member.
2884 * scd/command.c (cmd_devinfo): Use new API of app_send_devinfo.
2885 * scd/scdaemon.h (app_wait): Remove.
2887 2021-10-27 Werner Koch <wk@gnupg.org>
2889 common: Support MYPROC_SELF_EXE for Solaris.
2890 + commit 50e43af3f1081ba3fe677b1030c5c62063461665
2891 * common/homedir.c (MYPROC_SELF_EXE): Add case for SunOS.
2893 2021-10-22 Werner Koch <wk@gnupg.org>
2895 gpg: Fix printing of binary notations.
2896 + commit 62f838ea1fcad1c008c783946559b607cae37674
2897 * g10/keylist.c (show_notation): Print binary notation from BDAT.
2899 2021-10-20 Werner Koch <wk@gnupg.org>
2901 common: Silence warning from unix_rootdir on systems w/o /proc.
2902 + commit 4cb44914b57a8db9d2f0d24e11d2b5e6fedc0a87
2903 * common/homedir.c (unix_rootdir): Silence diagnostic in the common
2905 (MYPROC_SELF_EXE): Support NetBSD.
2907 common,w32: Do not always print "Garbled console data" warning.
2908 + commit e293da3b214958ff86e7636d17b0b6e10264882e
2909 * common/init.c (_init_common_subsystems): Silence message.
2911 2021-10-15 NIIBE Yutaka <gniibe@fsij.org>
2913 dns: Make reading resolv.conf more robust.
2914 + commit 48359c723206254d3a22f08eb537a6acc2f04e01
2915 * dirmngr/dns.c (dns_resconf_loadfile): Skip "search" which
2918 2021-10-13 Werner Koch <wk@gnupg.org>
2920 gpg: New option --override-compliance-check.
2921 + commit fb26e144adfd93051501d58f5d0d4f8826ddf436
2922 * g10/gpg.c (oOverrideComplianceCheck): New.
2923 (opts): Add new option.
2924 (main): Set option and add check for batch mode.
2925 * g10/options.h (opt): Add flags.override_compliance_check.
2927 * g10/sig-check.c (check_signature2): Factor complaince checking out
2929 (check_key_verify_compliance): this. Turn error into a warning in
2932 2021-10-12 Werner Koch <wk@gnupg.org>
2935 + commit 9470d0338364b781d701ad8e81972c782b48aa2d
2938 speedo: Put the keyboxd into the Windows installer.
2939 + commit 10f52f9bf3bcc6cf29835c2f11ea91ab0d5e7cdc
2940 * build-aux/speedo/w32/inst.nsi: Install keyboxd.
2941 * Makefile.am (sign-release): Sign the wixlib only if generated.
2942 * autogen.rc: Remove meanwhile obsolete option --with-regex.
2944 tests: New way to make use of gpgconf.ctl in tests.
2945 + commit bcd5feec0e916b864d004a47f36a41e2eba3b10e
2946 * Makefile.am (all-local): New to setup symlinks.
2947 (distclean-local): New.
2948 * tests/Makefile.am: Remove the gpgconf related targets. Just keep
2949 gpgconf.ctl.in in EXTRA_DIST
2950 * tests/cms/Makefile.am (GNUPG_BUILD_ROOT):
2951 * tests/gpgme/Makefile.am (GPGSCM_PATH):
2952 * tests/openpgp/Makefile.am (GNUPG_BUILD_ROOT):
2953 * tests/pkits/Makefile.am (GNUPG_BUILD_ROOT):
2954 * tests/tpm2dtests/defs.scm (tools): Revert to the former values.
2955 * tests/openpgp/defs.scm (tools): Ditto.
2957 2021-10-10 Werner Koch <wk@gnupg.org>
2959 Do not build keyxboxd if sqlite has been disabled.
2960 + commit cf29c7dec0e845040a71aac383ee9f1dda901590
2961 * configure.ac: Move clearing of build_keyboxd out of the conditional.
2963 2021-10-06 Ingo Klöcker <dev@ingo-kloecker.de>
2965 common: Respect gpgconf.ctl when looking up translations.
2966 + commit e99b9890c28dae491653279791e52771be866188
2967 * common/i18n.c (i18n_init): Use gnupg_localedir() instead of LOCALEDIR.
2968 (i18n_localegettext): Ditto.
2969 * tools/gpgconf-comp.c (my_dgettext): Ditto.
2971 2021-10-06 Werner Koch <wk@gnupg.org>
2973 dirmngr: New option --ignore-cert.
2974 + commit 4b3e9a44b58e74b3eb4a59f88ee017fe7483a17d
2975 * dirmngr/dirmngr.h (struct fingerprint_list_s): Add field binlen.
2976 (opt): Add field ignored_certs.
2977 * dirmngr/dirmngr.c: Add option --ignore-cert
2978 (parse_rereadable_options): Handle that option.
2979 (parse_ocsp_signer): Rename to ...
2980 (parse_fingerprint_item): this and add two args.
2981 * dirmngr/certcache.c (put_cert): Ignore all to be igored certs.
2982 Change callers to handle the new error return.
2984 dirmngr: Fix Let's Encrypt certificate chain validation.
2985 + commit 68799378859739887549108bf765568ccbc328bc
2986 * dirmngr/certcache.c (find_cert_bysubject): Return the first trusted
2987 certififcate if any.
2989 2021-10-05 NIIBE Yutaka <gniibe@fsij.org>
2991 agent,dirmngr,kbx,scd,tpm2d: Use gnupg_sleep.
2992 + commit 3918fa1a9488d56040d43e4af1254f9564266513
2993 * agent/findkey.c (unprotect): Use gnupg_sleep.
2994 * agent/gpg-agent.c (handle_connections): Likewise.
2995 * dirmngr/crlfetch.c (handle_connections): Likewise.
2996 * kbx/keyboxd.c (handle_connections): Likewise.
2997 * tpm2d/tpm3daemon.c (handle_connections): Likewise.
2998 * scd/scdaemon.c (handle_connections): Likewise.
2999 * scd/command.c (cmd_lock): Likewise.
3000 * dirmngr/ldap-wrapper.c (ldap_reaper_thread): Likewise.
3001 (ldap_wrapper_wait_connections): Use gnupg_usleep.
3003 agent: Fix calibrate_get_time use of clock_gettime.
3004 + commit eeb25df6f8fc1e3cf18ec5578445f8fc281e41bc
3005 * agent/protect.c (USE_CLOCK_GETTIME): New macro.
3006 (calibrate_get_time): Only use clock_gettime if USE_CLOCK_GETTIME.
3008 2021-10-01 Werner Koch <wk@gnupg.org>
3010 tests: Use the new gpgconf.ctl based method.
3011 + commit 84fcd8e6eb7e0786399e1f6461c3f60b0db2d070
3012 * tests/openpgp/defs.scm: We expect that stuff is now installed.
3013 (tools): Fix the names.
3014 (intsalled?, bin-prefix): Remove.
3015 (tool-hardcoded): Simplify.
3016 (gpg-conf'): Simplify.
3017 (GNUPG_BUILDDIR): Do not anymore set this envvar.
3018 * tests/tpm2dtests/defs.scm: Ditto.
3020 build: Prepare for using installed versions for tests.
3021 + commit 399ebf6d873d4178c1d527aa4df34bf16a76360e
3022 * tests/gpgconf.ctl.in: New.
3023 * tests/Makefile.am (EXTRA_DIST): Add new file.
3024 (TESTINST_DIRS): New.
3026 (clean-local-testinst): New.
3027 (check-recursive): New hook.
3028 (bin/gpgconf.ctl): Run a test install.
3029 * tests/cms/Makefile.am (TESTS_ENVIRONMENT): Set new envvar
3031 * tests/gpgme/Makefile.am (TESTS_ENVIRONMENT): Ditto.
3032 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Ditto.
3033 * tests/pkits/Makefile.am (TESTS_ENVIRONMENT): Ditto.
3034 * tests/tpm2dtests/Makefile.am (TESTS_ENVIRONMENT): Ditto.
3036 common: Support gpgconf.ctl also for BSDs.
3037 + commit dbe1b237a6525585b36ed84c8634d6436dddaad1
3038 * common/homedir.c (MYPROC_SELF_EXE): New.
3039 (unix_rootdir): Use it here. Also support GNUPG_BUILD_ROOT as
3042 common: Add keyword sysconfdir to the optional gpgconf.ctl file.
3043 + commit ec847cf17fa85b8684e88ccf04c6d4c75d59c3ba
3044 * common/homedir.c (unix_rootdir): Add arg want_sysconfdir.
3045 (gnupg_sysconfdir): Return it.
3047 2021-09-30 NIIBE Yutaka <gniibe@fsij.org>
3049 kbx: Let it include keybox.h to avoid multiple typedefs.
3050 + commit ca54d3f148933baac1f0243f76e4961abca285b1
3051 * kbx/backend.h: Include keybox.h.
3053 2021-09-29 NIIBE Yutaka <gniibe@fsij.org>
3055 gpg: Handle backsig for v5 signature.
3056 + commit dd2e092339627c03cd0f506f3ef1be3e98d5ff83
3057 * g10/getkey.c (merge_selfsigs_subkey): Check v5 signature correctly.
3059 gpg: Ed448 and X448 are only for v5 (for subkey).
3060 + commit 86cb04a23d2b0849cf684238d6d704aa45293214
3061 * g10/keygen.c (generate_subkeypair): Specify
3062 KEYGEN_FLAG_CREATE_V5_KEY for Ed448 or X448 key.
3064 2021-09-28 NIIBE Yutaka <gniibe@fsij.org>
3066 kbx: A 20 byte fingerprint is right filled in version 2 blob.
3067 + commit 08a3a4db27dcc3d50038cf5bdba94a6f0b548b01
3068 * kbx/keybox-blob.c (create_blob_header): Fix creating FPR20 key
3069 in blob with 32-byte fingerprint.
3071 gpg: Skip the packet when not used for AEAD.
3072 + commit cc6152b802f2ab0ceaf3abb20caef6f7d806ffa3
3073 * g10/free-packet.c (free_packet): Add the case for case
3076 2021-09-20 Ingo Klöcker <dev@ingo-kloecker.de>
3078 build: Fix several "include file not found" problems.
3079 + commit e2069d563283ab295858d33a250f229aab240f75
3080 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add KSBA_CFLAGS.
3081 * kbx/Makefile.am (libkeybox_a_CFLAGS, libkeybox509_a_CFLAGS): Add
3083 * tools/Makefile.am (gpgtar_CFLAGS, gpg_wks_server_CFLAGS,
3084 gpg_wks_client_CFLAGS, gpg_pair_tool_CFLAGS): Add LIBGCRYPT_CFLAGS.
3086 2021-09-20 giomba <giomba@linux.it>
3088 po: Fixed Italian translation for key expiration.
3089 + commit 548ff0398353c106f4e361a46818cd1716b825b8
3090 * po/it.po: Fix italian translation.
3092 2021-09-17 Werner Koch <wk@gnupg.org>
3094 common: Support a gpgconf.ctl file under Unix.
3095 + commit d4768bb982adb5c8410303334ee8d82ba0d71f3b
3096 * common/homedir.c (unix_rootdir): New.
3097 (gnupg_bindir): Use it.
3098 (gnupg_libexecdir): Use it.
3099 (gnupg_libdir): Use it.
3100 (gnupg_datadir): Use it.
3101 (gnupg_localedir): Use it.
3103 common: New function substitute_envvars.
3104 + commit 9c272dc245456d5403e3bd50553b4fdccb370e27
3105 * common/stringhelp.c (substitute_envvars): New. Based on code in
3107 * common/t-stringhelp.c: Include sysutils.h.
3108 (test_substitute_envvars): New.
3110 2021-09-14 Werner Koch <wk@gnupg.org>
3112 gpg: Print a warning when importing a bad cv25519 secret key.
3113 + commit dbfb7f809b89cfe05bdacafdb91a2d485b9fe2e0
3114 * g10/import.c (transfer_secret_keys): Add simple check.
3116 2021-09-13 Werner Koch <wk@gnupg.org>
3118 common: New envvar GNUPG_EXEC_DEBUG_FLAGS.
3119 + commit f2b01025c3da97068b699c1f51309e18730a4bdb
3120 * common/exechelp-w32.c (gnupg_spawn_process_detached): Silence
3121 breakaway messages and turn them again into debug messages.
3123 2021-09-09 Werner Koch <wk@gnupg.org>
3125 sm: Add LotW support to the key listing.
3126 + commit 255d4d5815d00f8d1b45d93cc617c49d375e891b
3127 * sm/certdump.c (parse_dn_part): Translate OID to "Callsign"
3128 * sm/keylist.c (oidtranstbl): Some more OIDs.
3130 2021-09-08 Ingo Klöcker <dev@ingo-kloecker.de>
3132 build: Fix "ksba.h not found" problem.
3133 + commit 08f227052fa3cc7089829a3b2ab8c4dda990b05b
3134 * sm/Makefile.am (t_minip12_CFLAGS): Add KSBA_CFLAGS.
3136 2021-09-07 Werner Koch <wk@gnupg.org>
3138 agent: Fix segv in GET_PASSPHRASE (regression)
3139 + commit af3b1901549baa8fbe8140d9fa75a4a2b7a77a7e
3140 * agent/command.c (cmd_get_passphrase): Do not deref PI. PI is always
3143 2021-08-27 NIIBE Yutaka <gniibe@fsij.org>
3145 kbx: Fix checksum computation for no UBID entry on disk.
3146 + commit 0b64c27446c6f17f9c108e0fa95639db12d376ff
3147 * kbx/keybox-blob.c (create_blob_header): Fix the flag to match no
3149 (create_blob_finish): Fix the length of data to be hashed.
3151 common: Fix put_membuf.
3152 + commit f271c6916469c0054c143adb4cee0588866a2a61
3153 * common/membuf.c (put_membuf): Allow NULL for the second arg.
3155 2021-08-26 NIIBE Yutaka <gniibe@fsij.org>
3157 common: Fix get_signal_name for GNU/Linux.
3158 + commit c4ba712736ddeda66055567874d573e79d22666b
3159 * common/signal.c (get_signal_name): Use sigdescr_np if available.
3160 * configure.ac: Check the function.
3162 2021-08-24 Werner Koch <wk@gnupg.org>
3165 + commit 3bf8d7e1b7e0482f698b54a6975bdd9aa354244e
3168 dirmngr: Change the default keyserver.
3169 + commit 55b5928099bafbd5409d3377a42259c11e394cd0
3170 * configure.ac (DIRMNGR_DEFAULT_KEYSERVER): Change to
3171 keyserver.ubuntu.com.
3173 * dirmngr/certcache.c (cert_cache_init): Disable default pool cert.
3174 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
3175 * dirmngr/http.c (http_session_new): Ditto.
3177 * dirmngr/server.c (make_keyserver_item): Use a different mapping for
3178 the gnupg.net names.
3180 2021-08-24 NIIBE Yutaka <gniibe@fsij.org>
3182 gpg: Report the status of NO_SECKEY for decryption.
3183 + commit 3ed5f566fc057975d0158bb637c72bd118aba7f8
3184 * g10/mainproc.c (proc_encrypted): Fix the condition to report
3185 NO_SECKEY even when the key was not considered by get_session_key.
3187 2021-08-20 Werner Koch <wk@gnupg.org>
3189 wkd: Properly unescape the user-id from a key listing.
3190 + commit 87d238de3d9d537cacc9dd3c6d954845203ea2cb
3191 * tools/wks-util.c (append_to_uidinfo_list): Unescape UID.
3193 wkd: Fix client issue with leading or trailing spaces in user-ids.
3194 + commit b4345f7521cb4c3f4af7894f5d6d840fda85e82f
3195 * common/recsel.c (recsel_parse_expr): Add flag -t.
3196 * common/stringhelp.c: Remove assert.h.
3197 (strtokenize): Factor code out to do_strtokenize.
3198 (strtokenize_nt): New.
3199 (do_strtokenize): Add arg trim to support the strtokenize_nt.
3200 * common/t-stringhelp.c (test_strtokenize_nt): New test cases.
3202 * tools/wks-util.c (wks_list_key): Use strtokenize_nt and the recsel
3205 2021-08-20 NIIBE Yutaka <gniibe@fsij.org>
3207 scd: Don't release the context until list_finish for PC/SC.
3208 + commit 1565baa93ae39a81c5b00ca4558cd24838b4ce54
3209 * scd/apdu.c (apdu_dev_list_start): Increment PCSC.COUNT here.
3210 (apdu_dev_list_finish): Decrement PCSC.COUNT.
3212 2021-08-19 Werner Koch <wk@gnupg.org>
3214 gpg: Return SUCCESS/FAILURE status also for --card-edit/name.
3215 + commit c1a23c3664753656bd4d22aafe0fb89d9bac5147
3216 * g10/card-util.c (change_name): Call write_sc_op_status.
3218 2021-08-18 Werner Koch <wk@gnupg.org>
3220 agent: Use the sysconfdir for a pattern file.
3221 + commit 661c2ae96699e135294cfd98e1fbc385d35f5f0e
3222 * agent/genkey.c (do_check_passphrase_pattern): Use make_filename.
3224 agent: Ignore passphrase constraints for a generated passphrase.
3225 + commit b89b1f35c29ceaebe39b31444936aa66c9297f2c
3226 * agent/agent.h (PINENTRY_STATUS_PASSWORD_GENERATED): New.
3227 (MAX_GENPIN_TRIES): Remove.
3228 * agent/call-pinentry.c (struct entry_parm_s):
3229 (struct inq_cb_parm_s): Add genpinhash and genpinhas_valid.
3230 (is_generated_pin): New.
3231 (inq_cb): Suppress constraints checking for a generated passphrase.
3232 No more need for several tries to generate the passphrase.
3233 (do_getpin): Store a generated passphrase/pin in the status field.
3234 (agent_askpin): Suppress constraints checking for a generated
3236 (agent_get_passphrase): Ditto.
3237 * agent/command.c (cmd_get_passphrase): Ditto.
3239 agent: Improve the GENPIN callback.
3240 + commit 8ed79103474c17d8dce20c740fc9813ada5f79ac
3241 * agent/call-pinentry.c (DEFAULT_GENPIN_BYTES): Replace by ...
3242 (DEFAULT_GENPIN_BITS): this and increase to 150.
3243 (generate_pin): Make sure that we use at least 128 bits.
3245 agent: Fix for zero length help string in pinentry hints.
3246 + commit 9fb646660258c2842edd6662688eafbc8d751ba7
3247 * agent/call-pinentry.c: Remove unused assert.h.
3248 (inq_cb): Fix use use of assuan_end_confidential in case of nested
3251 (setup_formatted_passphrase): Escape the help string.
3252 (setup_enforced_constraints): Ignore empty help strings.
3254 common,w32: Replace log_debug by log_info for InProcessJobs.
3255 + commit 629f4a5cffb737454aaf6a5965cfb6d7b03796fc
3256 * common/exechelp-w32.c (gnupg_spawn_process_detached): Use log_info.
3258 2021-08-13 Werner Koch <wk@gnupg.org>
3260 agent: Make QT_QPA_PLATFORMTHEME=qt5ct work for the pient.
3261 + commit 1305baf0994059f458b1d5ca28a355c12932fab3
3262 * agent/call-pinentry.c (atfork_core): Pass DISPLAY.
3264 agent: New option --check-sym-passphrase-pattern.
3265 + commit 7c45a69eb988e9c0329d75900af0c5b1e47291b7
3266 * agent/gpg-agent.c (oCheckSymPassphrasePattern): New.
3267 (opts): Add --check-sym-passphrase-pattern.
3268 (parse_rereadable_options): Set option.
3269 (main): Return option info.
3270 * tools/gpgconf-comp.c: Add new option.
3271 * agent/agent.h (opt): Add var check_sym_passphrase_pattern.
3272 (struct pin_entry_info_s): Add var constraints_flags.
3273 (CHECK_CONSTRAINTS_NOT_EMPTY): New to replace a hardwired 1.
3274 (CHECK_CONSTRAINTS_NEW_SYMKEY): New.
3275 * agent/genkey.c (check_passphrase_pattern): Rename to ...
3276 (do_check_passphrase_pattern): this to make code reading
3277 easier. Handle the --check-sym-passphrase-pattern option.
3278 (check_passphrase_constraints): Replace arg no_empty by a generic
3279 flags arg. Also handle --check-sym-passphrase-pattern here.
3280 * agent/command.c (cmd_get_passphrase): In --newsymkey mode pass
3281 CHECK_CONSTRAINTS_NEW_SYMKEY flag.
3282 * agent/call-pinentry.c (struct entry_parm_s): Add constraints_flags.
3283 (struct inq_cb_parm_s): New.
3284 (inq_cb): Use new struct for parameter passing. Pass flags to teh
3285 constraints checking.
3286 (do_getpin): Pass constraints flag down.
3287 (agent_askpin): Take constrainst flag from the supplied pinentry
3290 2021-08-12 Ingo Klöcker <dev@ingo-kloecker.de>
3292 agent: Make --pinentry-formatted-passphrase a simple flag.
3293 + commit 99601778f4a9dc1c9fee792361c959f5e0732cfd
3294 * agent/agent.h (opt): Change type of pinentry_formatted_passphrase
3295 to int (as for other flags).
3296 * agent/call-pinentry.c (setup_formatted_passphrase): Remove no longer
3297 needed translated strings. Write option without value to Assuan
3299 * agent/gpg-agent.c (opts): Use ARGPARSE_s_n for
3300 oPinentryFormattedPassphrase.
3301 (parse_rereadable_options): Set option to 1.
3303 2021-08-11 Werner Koch <wk@gnupg.org>
3305 w32: Move socketdir to LCOAL_APPDATA.
3306 + commit 0802cbb59b21e06e16b4fd8596934c5565e7f659
3307 * common/homedir.c (is_gnupg_default_homedir): Use standard_homedir
3308 instead of the constant which makes a difference on Windows.
3309 (_gnupg_socketdir_internal) [W32]: Move the directory to LOCAL_APPDATA.
3310 (gnupg_cachedir): Remove unsued function.
3312 * common/sysutils.c (gnupg_rmdir): New.
3313 * tools/gpgconf.c (main): s/rmdir/gnupg_rmdir/.
3315 gpgconf,w32: Print more registry diagnostics with --list-dirs.
3316 + commit 4cc534020669fa038f6a2107a55fe3b42fc065dc
3317 * tools/gpgconf.c (list_dirs): Figure out classes with the key.
3319 2021-08-10 Ingo Klöcker <dev@ingo-kloecker.de>
3321 agent: Add checkpin inquiry for pinentry.
3322 + commit 5976d293ef9bd953b6e9c61a45ad1f4e85a2743c
3323 * agent/call-pinentry.c (inq_cb): Handle checkpin inquiry.
3324 (setup_enforced_constraints): New.
3325 (agent_get_passphrase): Call setup_enforced_constraints if new
3326 passphrase is requested.
3328 agent: New option --pinentry-formatted-passphrase.
3329 + commit bf20a80f68449cc83b67c53ba9a0a84c45827ac4
3330 * agent/agent.h (opt): Add field pinentry_formatted_passphrase.
3331 * agent/call-pinentry.c (setup_formatted_passphrase): New.
3332 (agent_get_passphrase): Pass option to pinentry.
3333 * agent/gpg-agent.c (oPinentryFormattedPassphrase): New.
3335 (parse_rereadable_options): Set option.
3337 2021-08-05 NIIBE Yutaka <gniibe@fsij.org>
3339 build: Simplify for string.h and getopt.h.
3340 + commit 29d58e9de7838bcf32e358602abd4ed4498566f8
3341 * configure.ac (AC_CHECK_HEADERS): Remove string.h and getopt.h.
3342 * dirmngr/ks-engine-ldap.c: Remove including getopt.h.
3343 * tools/make-dns-cert.c: Likewise.
3346 + commit 100c954ab0d6df509df582cb22ef515171462654
3347 * sm/decrypt.c (pwri_parse_pbkdf2): Use int for digest algo.
3348 (pwri_decrypt): Use int for cipher algo and digest algo.
3350 build: Remove duplication of AC_HEADER_TIME.
3351 + commit 3f33c7ffcca09d4252d0418fdc2d31c0c8e486f4
3352 * configure.ac: Have a single AC_HEADER_TIME.
3354 build: Update checking headers.
3355 + commit a89f13726d08413d4bddcb6afed402de1de9e4fd
3356 * configure.ac (AC_CHECK_HEADERS): Remove pty.h utmp.h, util.h,
3359 2021-08-02 Ingo Klöcker <dev@ingo-kloecker.de>
3361 common: Pass XDG_SESSION_TYPE and QT_QPA_PLATFORM envvars to pinentry.
3362 + commit 94d18320b2b0bb5e3fa2023df8ac57078b2f6ecb
3363 * common/session-env.c (stdenvnames): Add XDG_SESSION_TYPE and
3366 2021-07-29 Werner Koch <wk@gnupg.org>
3368 sm,w32: Fix Unicode problem on key box creation.
3369 + commit 7cdd06af479298748c79357dcb36ca1ba4d36bb1
3370 * sm/keydb.c (maybe_create_keybox): Replace access by gnupg_access
3372 tools: Extend gpg-check-pattern.
3373 + commit 73c03e02322880c740310207dd2151cfd843792e
3374 * tools/gpg-check-pattern.c: Major rewrite.
3376 2021-07-22 NIIBE Yutaka <gniibe@fsij.org>
3378 scd: Small clean up for card access.
3379 + commit 5c8124b8b9554c7843feccf408648c9689bce243
3380 * scd/app.c (app_get_challenge): Remove the check to ref_count.
3381 * scd/command.c (send_client_notifications): Update comments.
3383 scd: Fix direct use of card with no ctrl->card_ctx.
3384 + commit 50ad29f9a72f5454067bd0ca34fc1a71ac06b831
3385 * scd/app.c (maybe_switch_app): Remove check of ref_count.
3387 2021-07-21 Ingo Klöcker <dev@ingo-kloecker.de>
3389 agent: Add translatable text for Caps Lock hint.
3390 + commit b2a6e5b5169602052ae87d38588bdd3bd76fddad
3391 * agent/call-pinentry.c (start_pinentry): Add new default text.
3393 2021-07-21 NIIBE Yutaka <gniibe@fsij.org>
3395 scd: Fix access to list of cards (3/3).
3396 + commit 0d6b4210cf31d1c3ca0e8b034537a158fe3caca8
3397 * scd/app-common.h (card_reset): Simplify more.
3398 (select_additional_application): Supply CARD.
3399 (card_ref, card_unref): Remove.
3400 (card_get, card_put): New.
3401 * scd/app.c (card_reset): No locking/unlocking inside.
3402 (app_switch_current_card): Fix comment.
3403 (select_additional_application): No locking/unlocking inside.
3404 (do_with_keygrip): New, unlocked version.
3405 (card_get): New, with support of KEYGRIP.
3406 (card_unref): Remove.
3408 (app_write_learn_status, app_readcert: No locking/unlocking inside.
3409 (app_readkey, app_getattr, app_setattr, app_sign, app_auth): Likewise.
3410 (app_decipher, app_writecert, app_writekey): Likewise.
3411 (app_genkey, app_get_challenge, app_change_pin): Likewise.
3412 (app_check_pin, app_switch_active_app): Likewise.
3413 * scd/command.c (do_reset): Use card_get/card_put.
3414 (open_card_with_request): Use card_get/card_put, return CARD locked.
3415 (cmd_serialno): Follow the change of open_card_with_request.
3416 (cmd_switchapp): Use card_get/card_put.
3417 (cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign): Likewise.
3418 (cmd_pkauth, cmd_pkdecrypt, cmd_getattr): Likewise.
3419 (cmd_setattr, cmd_writecert, cmd_writekey): Likewise.
3420 (cmd_genkey, cmd_random, cmd_passwd): Likewise.
3421 (cmd_checkpin, cmd_getinfo, cmd_restart): Likewise.
3422 (cmd_disconnect, cmd_apdu, cmd_devinfo): Likewise.
3424 scd: Fix access to list of cards (2/3).
3425 + commit b436fb6766b400167e5d57ff1116600bb496b04f
3426 * scd/app-common.h (card_reset, select_application): Simplify.
3427 * scd/app.c (card_reset, select_application): Simplify.
3428 * scd/command.c (do_reset): Follow the change.
3429 (open_card, open_card_with_request): Follow the change.
3431 scd: Fix access to list of cards (1/3).
3432 + commit 216945a80e7b6b9d366493fa43fc7e99c830d81c
3433 * scd/app.c (card_list_lock): Use MRSW lock.
3434 (lock_r_card_list, unlock_r_card_list): New.
3435 (lock_w_card_list, unlock_w_card_list): New.
3436 (app_dump_state, app_send_devinfo): Use the MRSW lock.
3437 (select_application, app_switch_current_card): Likewise.
3438 (scd_update_reader_status_file): Likewise.
3439 (initialize_module_command, send_card_and_app_list): Likewise.
3440 (app_do_with_keygrip, app_wait): Likewise.
3442 2021-07-08 Werner Koch <wk@gnupg.org>
3444 kbx: Improve debugging of the search descriptions in keyboxd.
3445 + commit b871824fefa114db931762243537663cc1095cfa
3446 * kbx/frontend.c (dump_search_desc): New.
3447 (kbxd_search): Actually log the search descriptions.
3449 kbx: Fix keyboxd searching with multiple patterns.
3450 + commit 101ba4f18aceb39c4d5f0e0a7e16e66827f8e612
3451 * kbx/keybox-search-desc.h (struct keydb_search_desc): New flag
3453 * common/userids.c (classify_user_id): Set flag.
3454 * kbx/kbxserver.c (struct search_backing_store_s): New.
3455 (cmd_search): use a backing store for the const pointers.
3456 (kbxd_start_command_handler): Release the backing store.
3458 2021-07-06 NIIBE Yutaka <gniibe@fsij.org>
3460 scd: Detect external interference when PCSC_SHARED.
3461 + commit 044e5a3c3801fde7fa3b26986825377016e73103
3462 * scd/app-common.h (check_aid): New method.
3463 * scd/app-openpgp.c (do_check_aid): New.
3464 * scd/app-piv.c (do_check_aid): New.
3465 * scd/app.c (check_external_interference): New.
3466 (maybe_switch_app): Check interference to determine switching is
3469 2021-06-29 Werner Koch <wk@gnupg.org>
3471 artwork: Explain the license for the logo.
3472 + commit 5f78ae696c10df43c2b2fc29765e28b85caf5376
3475 2021-06-25 Werner Koch <wk@gnupg.org>
3477 agent: Fix regression in agent_get_shadow_info_type.
3478 + commit a6efde307f7beb199b543f78b61c317fa2708202
3479 * agent/protect.c (agent_get_shadow_info_type): Return the correct
3482 gpg: Let --fetch-key return an exit code on failure.
3483 + commit 9579c7786278b75d9c58b7c21b2f3c8bc7849810
3484 * g10/keyserver.c (keyserver_fetch): Return an error code.
3485 * g10/gpg.c (main) <aFetchKeys>: Return 1 in case of no data.
3487 2021-06-23 NIIBE Yutaka <gniibe@fsij.org>
3489 scd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer.
3490 + commit 25ae80b8eb6e9011049d76440ad7d250c1d02f7c
3491 * scd/ccid-driver.c (intr_cb): Ignore LIBUSB_TRANSFER_OVERFLOW.
3493 2021-06-22 Werner Koch <wk@gnupg.org>
3495 tools: Extend ccidmon to print T=1 APDUs.
3496 + commit 2c6b62b3572fe43cb6b89ec5fb0bc62385a4b230
3497 * tools/ccidmon.c (print_as_ascii): New.
3498 (print_t1_block): New.
3499 (print_p2r_xfrblock): Print APDUs
3500 (print_r2p_datablock): Ditto.
3502 tests: Cope with broken Libgcrypt versions.
3503 + commit 5df658233a3a0c05fac0b4d4889f033ea0d0e034
3504 * common/t-sexputil.c (test_ecc_uncompress): Ignore unknwon curve
3507 w32: Add fallback in case the Windows console can't cope with Unicode.
3508 + commit edfe9453be5f8ba374da0ab860be863d66965c56
3509 * common/ttyio.c (w32_write_console): Fallback to WriteConsoleA on
3512 scd:p15: Prepare AODF parsing for other authentication types.
3513 + commit e387cc97c82313457e4f79729a137e5871891bc1
3514 * scd/app-p15.c (auth_type_t): New.
3515 (struct aodf_object_s): Add field auth_type.
3516 (read_ef_aodf): Distinguish between pin and authkey types. Include
3517 the authtype in the verbose mode diags.
3519 2021-06-21 Werner Koch <wk@gnupg.org>
3521 dirmngr: Fix regression in KS_GET for mail address pattern.
3522 + commit d5126efd895bc2af0a7e63dbf4aa782ce47ecc40
3523 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Munge mail address pattern.
3524 (ks_hkp_get): Allow for mail addresses.
3527 Before the keyserver changes in 2.2.28 gpg passed dirmngr a pail
3528 address as an exact pattern (e.g. "=foo@example.org"). Since 2.2.28
3529 the mail address is detected gpg gpg and we see for example
3530 "<foo@example.org>". This patch fixes this to turn a mail address
3531 into an exact match again.
3533 2021-06-18 Werner Koch <wk@gnupg.org>
3535 scd:p15: Add pre-check for ascii-numeric PINs.
3536 + commit 029924a46e08ffcda038d89f06abfb41c980a9ad
3537 * scd/app-p15.c (verify_pin): acii-numerix is different than BCD.
3539 scd:p15: Add basic support for AET JCOP cards.
3540 + commit 544ec7872aed24c296ea34fac777eca287f7bb47
3541 * scd/app-p15.c (CARD_TYPE_AET): New.
3542 (cardtype2str): Add string.
3543 (card_atr_list): Add corresponding ATR.
3544 (app_local_s): New flag no_extended_mode. Turn two other flags into
3546 (select_ef_by_path): Hack to handle the 3FFF thing.
3547 (readcert_by_cdf): Do not use etxended mode for AET.
3548 (app_select_p15): Set no_extended_mode.
3550 scd:p15: Handle cards with bad encoded path objects.
3551 + commit 7a8545c91b09277b0833dc0e5881ba5d1c8dbca3
3552 * scd/app-p15.c (read_ef_prkdf, read_ef_pukdf)
3553 (read_ef_cdf, read_ef_aodf): Allow for a zero length path and
3554 correctly skip unsupported auth types.
3556 scd: Improve reading of binary records.
3557 + commit 44f977d0e332e77fb8a775c4837c00118bbe08cb
3558 * scd/iso7816.c (iso7816_read_binary_ext): Handle the 0x6a86 SW the
3560 * scd/apdu.c (apdu_get_atr): Modify debug messages.
3561 * scd/app-p15.c (app_select_p15): Print FCI on error.
3562 (read_p15_info): Clean up diag in presence of debug options.
3564 2021-06-17 NIIBE Yutaka <gniibe@fsij.org>
3566 scd: Fix RESET handling.
3567 + commit 7718244168c948171ffd37d7e964cbcd172661c6
3568 * scd/app.c (scd_update_reader_status_file): Clear ->reset_requested.
3570 2021-06-16 NIIBE Yutaka <gniibe@fsij.org>
3572 dirmngr: Fix build with --disable-ldap.
3573 + commit c6900f5723b4edc899aaea267ed599b5ad724142
3574 * dirmngr/dirmngr.c (parse_rereadable_options) [USE_LDAP]:
3577 2021-06-16 Werner Koch <wk@gnupg.org>
3579 sm: New option --ldapserver as an alias for --keyserver.
3580 + commit 89df86157e3580aae7e391382f4a5451a192fc68
3581 * sm/gpgsm.c (opts): Add option --ldapserver and make --keyserver an
3584 dirmngr: Allow to pass no filter args to dirmngr_ldap.
3585 + commit 14528ec66bd7dce28c7540fa9a34f35de54261c1
3586 * dirmngr/dirmngr_ldap.c (main): Handle no args case.
3588 dirmngr: Rewrite the LDAP wrapper tool.
3589 + commit 864ea251983977b91a7f6ff5964e497cf4b208dc
3590 * dirmngr/ldap-misc.c: New.
3591 * dirmngr/ldap-misc.h: New.
3592 * dirmngr/ks-engine-ldap.c: Include ldap-misc.h.
3593 (ldap_err_to_gpg_err, ldap_to_gpg_err): Move to ldap-misc.c.
3594 * dirmngr/ldap-wrapper.c (ldap_wrapper): Print list of args in debug
3596 * dirmngr/server.c (lookup_cert_by_pattern): Handle GPG_ERR_NOT_FOUND
3597 the saqme as GPG_ERR_NO_DATA.
3598 * dirmngr/ldap.c (run_ldap_wrapper): Add args tls_mode and ntds.
3599 Remove arg url. Adjust for changes in dirmngr_ldap.
3600 (url_fetch_ldap): Remove args host and port. Parse the URL and use
3601 these values to call run_ldap_wrapper.
3602 (attr_fetch_ldap): Pass tls flags to run_ldap_wrapper.
3603 (rfc2254_need_escape, rfc2254_escape): New.
3604 (extfilt_need_escape, extfilt_escape): New.
3605 (parse_one_pattern): Rename to ...
3606 (make_one_filter): this. Change for new dirmngr_ldap calling
3607 convention. Make issuer DN searching partly work.
3608 (escape4url, make_url): Remove.
3609 (start_cert_fetch_ldap): Change for new dirmngr_ldap calling
3611 * dirmngr/dirmngr_ldap.c: Major rewrite.
3613 * dirmngr/t-ldap-misc.c: New.
3614 * dirmngr/t-support.h (DIM, DIMof): New.
3615 * dirmngr/Makefile.am (dirmngr_ldap_SOURCES): Add ldap-misc.c
3616 (module_tests) [USE_LDAP]: Add t-ldap-misc.
3617 (t_ldap_parse_uri_SOURCES): Ditto.
3618 (t_ldap_misc_SOURCES): New.
3620 dirmngr: Remove useless code.
3621 + commit bcb99315627ec38aa5c9fe097075a82bdc8a2043
3622 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Remove the
3623 password_param thing because we set the password directly without an
3626 dirmngr: Fix default port for our redefinition of ldaps.
3627 + commit 58e4c82512a4b0828f78fc9f03dbcdbf77760b5c
3628 * dirmngr/server.c (make_keyserver_item): Fix default port for ldaps.
3629 Move a tmpstr out of the blocks.
3630 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Improve diagnostics.
3632 dirmngr: Use --ldaptimeout for OpenPGP LDAP keyservers.
3633 + commit 3e05f99e8db5c4039d352d5bd9dde01ed9653f2f
3634 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Use LDAP_OPT_TIMEOUT.
3636 * dirmngr/dirmngr.c (main): Move --ldaptimeout setting to ...
3637 (parse_rereadable_options): here.
3639 dirmngr: New option --ldapserver.
3640 + commit 52cf32ce2f904b2e6f53f406a90458f6ef148af9
3641 * dirmngr/dirmngr.c (opts): Add option --ldapserver.
3642 (ldapserver_list_needs_reset): New var.
3643 (parse_rereadable_options): Implement option.
3644 (main): Ignore dirmngr_ldapservers.conf if no --ldapserver is used.
3646 * dirmngr/server.c (cmd_ldapserver): Add option --clear and list
3647 configured servers if none are given.
3649 dirmngr: Allow for non-URL specified ldap keyservers.
3650 + commit eb3a629154de10a5414a5d2c2b9941ef8bf1eeaf
3651 * dirmngr/server.c (cmd_ldapserver): Strip an optional prefix.
3652 (make_keyserver_item): Handle non-URL ldap specs.
3653 * dirmngr/dirmngr.h (struct ldap_server_s): Add fields starttls,
3654 ldap_over_tls, and ntds.
3656 * dirmngr/ldapserver.c (ldapserver_parse_one): Add for an empty host
3657 string. Improve error messages for the non-file case. Support flags.
3658 * dirmngr/ks-action.c (ks_action_help): Handle non-URL ldap specs.
3659 (ks_action_search, ks_action_get, ks_action_put): Ditto.
3660 * dirmngr/ks-engine-ldap.c: Include ldapserver.h.
3661 (ks_ldap_help): Handle non-URL ldap specs.
3662 (my_ldap_connect): Add args r_host and r_use_tls. Rewrite to support
3663 URLs and non-URL specified keyservers.
3664 (ks_ldap_get): Adjust for changes in my_ldap_connect.
3665 (ks_ldap_search): Ditto.
3666 (ks_ldap_put): Ditto.
3668 gpg,sm: Simplify keyserver spec parsing.
3669 + commit bebc71d2291e93afb76792c5e210836857103c36
3670 * common/keyserver.h: Remove.
3671 * sm/gpgsm.h (struct keyserver_spec): Remove.
3672 (opt): Change keyserver to a strlist_t.
3673 * sm/gpgsm.c (keyserver_list_free): Remove.
3674 (parse_keyserver_line): Remove.
3675 (main): Store keyserver in an strlist.
3676 * sm/call-dirmngr.c (prepare_dirmngr): Adjust for the strlist. Avoid
3677 an ambiguity in dirmngr by adding a prefix if needed.
3679 * g10/options.h (struct keyserver_spec): Move definition from
3680 keyserver.h to here. Remove most fields.
3681 * g10/keyserver.c (free_keyserver_spec): Adjust.
3682 (cmp_keyserver_spec): Adjust.
3683 (parse_keyserver_uri): Simplify.
3684 (keyidlist): Remove fakev3 arg which does not make any sense because
3685 we don't even support v3 keys.
3687 dirmngr: Support pseudo URI scheme "opaque".
3688 + commit 1c96f4d663c020167ed3d39e513751641dfc3567
3689 * dirmngr/http.h (HTTP_PARSE_NO_SCHEME_CHECK): New.
3690 * dirmngr/http.c (http_parse_uri): Use this flag. Change all callers
3691 to use the new macro for better readability.
3692 (do_parse_uri): Add pseudo scheme "opaque".
3693 (uri_query_value): New.
3695 2021-06-11 Werner Koch <wk@gnupg.org>
3697 sm: Fix finding of issuer in use-keyboxd mode.
3698 + commit 6b76693ff54297456b724ba53f7e6283e2a5a126
3699 * sm/keydb.c (struct keydb_local_s): Add field saved_search_result.
3700 (keydb_push_found_state): Implement for keyboxd.
3701 (keydb_pop_found_state): Ditto.
3702 (keydb_get_cert): Do not release the cert so that the function can be
3703 used again to get the same cert. This is the same behaviour as in
3706 * sm/certchain.c, sm/import.c: Improve some error messages.
3708 2021-06-11 NIIBE Yutaka <gniibe@fsij.org>
3710 scd: Support clearing of Reset Code by ''.
3711 + commit 4e02db75e3a1da9012176f2cfe1638c8c0129f6f
3712 * scd/app-openpgp.c (do_change_pin): Allow null-string.
3714 2021-06-09 Werner Koch <wk@gnupg.org>
3716 gpgtar,w32: Fix file size computation.
3717 + commit 14e36bdbe1c39bc23e70db775e05319367ee8adb
3718 * tools/gpgtar-create.c (fillup_entry_w32): Move parentheses.
3720 2021-06-09 NIIBE Yutaka <gniibe@fsij.org>
3722 agent: Fix importing protected secret key.
3723 + commit 7a80004d5407c6c48b21d57ba6edb8e5a2db4995
3724 * agent/cvt-openpgp.c (do_unprotect): Only modify SKEY when it is
3725 correctly decrypted.
3727 2021-06-08 NIIBE Yutaka <gniibe@fsij.org>
3729 scd: Fix serial number detection for Yubikey 5.
3730 + commit c3a9ee0b658887ca9baa4514187b17857fdf6586
3731 * scd/app.c (app_new_register): Handle serial number correctly.
3733 2021-06-07 NIIBE Yutaka <gniibe@fsij.org>
3735 scd: Fix READER-PORT option handling for PC/SC.
3736 + commit ee5b6af370fbee1b08136e5dc384cf7996bcfc4c
3737 * scd/apdu.c (apdu_open_reader): READERNO should be -1 when
3738 READER-PORT is specified for PC/SC.
3740 2021-06-04 NIIBE Yutaka <gniibe@fsij.org>
3742 agent: Appropriate error code for importing key with no passwd.
3743 + commit 21ef425e222ddfa460b37dece63adb67ff2e4dd1
3744 * agent/cvt-openpgp.c (convert_from_openpgp_main): Return
3747 2021-06-03 NIIBE Yutaka <gniibe@fsij.org>
3749 gpg: Support KEYGRIP search with traditional keyring.
3750 + commit 9668ee097a1474299b8debecb1ee38620a327082
3751 * g10/keyring.c (keyring_search): Handle KEYDB_SEARCH_MODE_KEYGRIP.
3753 2021-06-02 Werner Koch <wk@gnupg.org>
3755 common: Allow for GCM decryption in de-vs mode.
3756 + commit c17dac5ac3ccb374e5a1276d4bc9b444c390a4c5
3757 * common/compliance.c (gnupg_cipher_is_allowed): Allow GCM for gpgsm
3760 * tests/cms/samplemsgs/pwri-sample.gcm.p7m: Remove duplicated authtag
3762 sm: Support AES-GCM decryption.
3763 + commit 4980fb3c6dde8c1dda975e8a36d6086c8456a631
3764 * tests/cms/samplemsgs/: Add sample messages.
3765 * sm/gpgsm.c (main): Use gpgrt_fcancel on decryption error.
3766 * sm/decrypt.c (decrypt_gcm_filter): New.
3767 (gpgsm_decrypt): Use this filter if requested. Check authtag.
3769 2021-05-28 Werner Koch <wk@gnupg.org>
3771 gpgconf: Make runtime changes with different homedir work.
3772 + commit 31c0aa2ff37f662c6391885d61ffd46ec3062e5a
3773 * tools/gpgconf-comp.c (dirmngr_runtime_change): Pass --homedir first.
3775 2021-05-28 NIIBE Yutaka <gniibe@fsij.org>
3777 agent: Fix calling handle_pincache_put.
3778 + commit 36f50b259cae0428264f4b7d60b82209e3dd8725
3779 * agent/call-scd.c (padding_info_cb): Fix the argument.
3781 scd: Fix zero-byte handling in ECC.
3782 + commit 5b1806454c03b3b493222f405ffced80a5d430ad
3783 * scd/app-openpgp.c (ecc_writekey): Don't remove zero-byte.
3785 2021-05-27 NIIBE Yutaka <gniibe@fsij.org>
3787 gpg: Ed448 and X448 are only for v5 for --full-gen-key.
3788 + commit 2b50f942672d9a2c325a818f21f69d3ee69255d3
3789 * g10/keygen.c (generate_keypair): Set pVERSION = 5, pSUBVERSION = 5,
3790 when it's Ed448 or X448.
3792 build: _DARWIN_C_SOURCE should be 1.
3793 + commit be81941e1aca75d9e1d0dd2e2b234ae6df53c05a
3794 * configure.ac (*-apple-darwin*): Set _DARWIN_C_SOURCE 1.
3796 2021-05-25 Werner Koch <wk@gnupg.org>
3798 gpg: Partial fix for Unicode problem in output files.
3799 + commit 30563ea29705016b08ff04fd8a833940ea94e4e8
3800 * g10/openfile.c (overwrite_filep): Use gnupg_access.
3802 2021-05-21 Werner Koch <wk@gnupg.org>
3804 common: Annotate leaked memory in homedir.c.
3805 + commit 260bbb4ab27eab0a8d4fb68592b0d1c20d80179c
3806 * g10/trustdb.c (how_to_fix_the_trustdb): Use gnupg_homedir.
3807 * common/homedir.c (standard_homedir): Annotate leaked memory.
3808 (gnupg_daemon_rootdir): Ditto.
3809 (gnupg_socketdir): Ditto.
3810 (gnupg_sysconfdir): Ditto.
3811 (gnupg_bindir): Ditto.
3812 (gnupg_libdir): Ditto.
3813 (gnupg_datadir): Ditto.
3814 (gnupg_localedir): Ditto.
3815 (gnupg_cachedir): Ditto.
3816 (gpg_agent_socket_name): Ditto.
3817 (dirmngr_socket_name): Ditto.
3818 (keyboxd_socket_name): Ditto.
3819 (get_default_pinentry_name): Ditto.
3820 (gnupg_module_name): Ditto.
3821 (default_homedir): Ditto. Make static.
3823 2021-05-20 Werner Koch <wk@gnupg.org>
3825 sm: Let --dump-cert --show-cert also print an OpenPGP fingerprint.
3826 + commit 52bbdc731fd54ff6d2744d7aca8e48e2c2389cc9
3827 * sm/keylist.c (list_cert_raw): Print the OpenPGP fpr.
3829 2021-05-20 Jakub Jelen <jjelen@redhat.com>
3831 card: Intialize pointer to avoid double free.
3832 + commit 98c52aeb31f4bf2604727aacad982fb51c04063f
3833 * tools/gpg-card.c (cmd_salut): Initialize data pointer
3835 scd: avoid memory leaks.
3836 + commit 27e7bde12ee2b67425ae7011d976d2544c90fd9a
3837 * scd/app-p15.c (send_certinfo): free labelbuf
3838 (do_sign): goto leave instead of return
3839 * scd/app-piv.c (do_sign): goto leave instead of return, fix typo in
3840 variable name, avoid using uninitialized variables
3841 * scd/command.c (cmd_genkey): goto leave instead of return
3843 kbx: Avoid uninitialized read.
3844 + commit fc5fac83b778f0ff61608c286448ab7fa14ccb2d
3845 * kbx/kbx-client-util.c (datastream_thread): Initialize pointer
3846 * kbx/keybox-dump.c (_keybox_dump_cut_records): free blob
3847 * kbx/kbxserver.c (kbxd_start_command_handler): do not free passed ctrl
3848 * kbx/keyboxd.c (check_own_socket): free sockname
3850 g10: Avoid memory leaks.
3851 + commit fa0771f609b5fcb104c64a11aefc501b7a91696d
3852 * g10/call-agent.c (card_keyinfo_cb): free keyinfo. Restructure to
3853 avoid backward gotos.
3854 * g10/keyedit.c (menu_set_keyserver_url): properly enclose the block
3855 * g10/keygen.c (gen_card_key): free pk and pkt
3857 dirmgr: Avoid double free.
3858 + commit 25aa353bf833fdae1a96158b49daf7588ae3b109
3859 * dirmgr/http.c (http_prepare_redirect): Avoid double free
3860 * dirmgr/ocsp.c (check_signature): Initialize pointer
3862 common: Avoid double-free.
3863 + commit 4704d1ce4e1e2ba9f986fb221346eda5c97f947b
3864 * common/name-value.c (do_nvc_parse): reset to null after ownership
3867 agent: Fix memory leaks.
3868 + commit 33a2362e566c0e0d7011abf2e5fa5704d7cb4206
3869 * agent/call-daemon.c (daemon_start): free wctp
3870 * agent/call-scd.c (agent_card_pksign): return error instead of noop
3871 (card_keyinfo_cb): free keyinfo. Restructure to avoid a goto backwards.
3872 * agent/protect.c (agent_get_shadow_info_type): allocate only as a last
3873 action. Catch xtrymalloc failure.
3874 (agent_is_tpm2_key): Free buf.
3876 sm: Avoid memory leaks and double double-free.
3877 + commit e6132bc9f41727ea1abe2d6298610223c11639a2
3878 * sm/certcheck.c (extract_pss_params): Avoid double free
3879 * sm/decrypt.c (gpgsm_decrypt): goto leave instead of return
3880 * sm/encrypt.c (encrypt_dek): release s_pkey
3881 * sm/server.c (cmd_export): free list
3882 (do_listkeys): free lists
3884 g10: Fix memory leaks.
3885 + commit 2af7bb2295cda5377546cedd0c906a3cff4d2427
3886 * g10/card-util.c (change_pin): free answer on errors
3887 (ask_card_keyattr): free answer on error
3888 * g10/cpr.c (do_get_from_fd): free string
3889 * g10/gpg.c (check_permissions): free dir on weird error
3890 * g10/import.c (append_new_uid): release knode
3891 * g10/keyedit.c (menu_set_keyserver_url): free answer
3892 (menu_set_keyserver_url): free user
3893 * g10/keygen.c (print_status_key_not_created): move allocation after
3895 (ask_expire_interval): free answer
3896 (card_store_key_with_backup): goto leave instaed of return
3897 * g10/keyserver.c (parse_keyserver_uri): goto fail instead of return
3898 * g10/revoke.c (gen_desig_revoke): release kdbhd
3899 (gen_desig_revoke): free answer
3900 * g10/tofu.c (ask_about_binding): free sqerr and response
3901 * g10/trustdb.c (ask_ownertrust): free pk
3903 dirmgr: clean up memory on error code paths.
3904 + commit 0d2c1e9046faf102809bc65329c22b6cf8d62ea0
3905 * dirmgr/crlcache.c (finish_sig_check): goto leave instead of return
3906 * dirmgr/http.c (send_request): free authstr and proxy_authstr
3907 * dirmgr/ldap.c (start_cert_fetch_ldap): free proxy
3908 * dirmgr/ocsp.c (check_signature): release s_hash
3910 agent: Avoid memory leaks in error code paths.
3911 + commit a95ddffdcd58383cce93677be5e7e11c5c229a98
3912 * agent/command.c (cmd_genkey): Use goto instead of return.
3913 * agent/cvt-openpgp.c (convert_from_openpgp_main): Ditto.
3914 * agent/genkey.c (agent_ask_new_passphrase): Fix typo to free correct
3916 (agent_genkey): Release memory
3917 * agent/gpg-agent.c (check_own_socket): Free sockname
3918 * agent/protect-tool.c (read_key): Free buf.
3919 (agent_askpin): Free passphrase
3921 2021-05-19 Werner Koch <wk@gnupg.org>
3923 dirmngr: For KS_SEARCH return the fingerprint also with LDAP.
3924 + commit a660e1060630e8d75ecb43abf69dbb73378c1df9
3925 * dirmngr/ks-engine-ldap.c (extract_keys): Return the fingerprint if
3927 (ks_ldap_search): Ditto.
3928 (extract_keys): Make sure to free the ldap values also in corner
3930 (my_ldap_value_free): New.
3931 (ks_ldap_get): Ditto.
3932 (ks_ldap_search): Ditto.
3933 (my_ldap_connect): Ditto.
3935 gpg: Improve speed of secret key listing.
3936 + commit 40da61b89b62dcb77847dc79eb159e885f52f817
3937 * agent/command.c (cmd_keyinfo): Factor some code out to ...
3938 (get_keyinfo_on_cards): ... new.
3939 (cmd_havekey): Add --list mode.
3940 * g10/gpg.h (struct server_control_s): Add new caching vars.
3941 * g10/gpg.c (gpg_deinit_default_ctrl): Release cache.
3942 * g10/call-agent.c (agent_probe_any_secret_key): Init and try to use
3944 (agent_genkey): Clear the cache.
3945 (agent_import_key): Ditto.
3947 * g10/keylist.c (list_all, list_one): Pass ctrl to
3948 agent_probe_any_secret_key.
3949 * g10/getkey.c (lookup): Ditto.
3951 2021-05-18 Werner Koch <wk@gnupg.org>
3953 gpg: Fix sending an OpenPGP key with umlaut to an LDAP keyserver.
3954 + commit b8e6e485ee0b3389992f5de4d717e2e9cca92a9e
3955 * g10/call-dirmngr.c (record_output): Rewrite.
3957 2021-05-18 Ingo Klöcker <dev@ingo-kloecker.de>
3959 scd:p15: Fix logic for appending product name to MANUFACTURER.
3960 + commit 65bc5ea95e608869fe57dae43e201ed47b98f9fe
3961 * scd/app-p15.c (do_getattr): Append product name to MANUFACTURER if
3962 manufacturer_id does not already contain a bracket and if we have a
3965 2021-05-17 Werner Koch <wk@gnupg.org>
3967 gpg: Use a more descriptive prompt for symmetric decryption.
3968 + commit 6dfae2f402a702ccd7f2c585b28cb356e9f26a26
3969 * g10/keydb.h (GETPASSWORD_FLAG_SYMDECRYPT): New.
3970 (passphrase_to_dek_ext): Remove this obsolete prototype.
3971 * g10/passphrase.c (passphrase_get): Add arg flags. Use new flag
3973 (passphrase_to_dek): Add arg flags and pass it on.
3974 * g10/mainproc.c (proc_symkey_enc): Use new flag.
3976 * sm/decrypt.c (pwri_decrypt): Use "passphrase".
3978 dirmngr: LDAP search by a mailbox now ignores revoked keys.
3979 + commit 1406f551f1e00a03eabf5b8bd3011bf6393ce318
3980 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Ignore revoked
3981 and disable keys in mail mode.
3983 sm: Ask for the password for password based decryption (pwri)
3984 + commit eeb65d3bbd7d461694d30009631739735a2b9bad
3985 * sm/decrypt.c (pwri_decrypt): Add arg ctrl. Ask for passphrase.
3987 * sm/export.c (export_p12): Mark string as translatable.
3988 * sm/import.c (parse_p12): Ditto.
3990 2021-05-14 Werner Koch <wk@gnupg.org>
3992 sm: Support decryption of password based encryption (pwri)
3993 + commit 02029f9eab87e9fd667829dfb083846275576398
3994 * sm/decrypt.c (pwri_parse_pbkdf2): New.
3995 (pwri_decrypt): New.
3996 (prepare_decryption): Support pwri.
3997 (gpgsm_decrypt): Test for PWRI. Move IS_DE_VS flag to DFPARM.
3999 2021-05-14 NIIBE Yutaka <gniibe@fsij.org>
4001 scd: Remove wrong assertion and add protection to PCSC.COUNT.
4002 + commit 58b330e935b9225d5a389c5d858a0e7304f573ad
4003 * scd/apdu.c (apdu_dev_list_finish): Fix for calling
4004 release_pcsc_context.
4006 2021-05-12 Werner Koch <wk@gnupg.org>
4007 Jakub Jelen <jjelen@redhat.com>
4009 agent: Use SHA-256 for SSH fingerprint by default.
4010 + commit 310b064f5271fe8566ebc996702ea1422875f425
4011 * agent/gpg-agent.c (parse_rereadable_options): Change default ssh
4015 2021-05-11 Werner Koch <wk@gnupg.org>
4017 A few minor code cleanups and typo fixes.
4018 + commit 965bb0693c0df04e6dbd57a8b471944367cf6c4e
4019 * agent/command-ssh.c (ssh_handler_request_identities): Remove double
4021 * g10/getkey.c (get_pubkey_byname): Remove double use of break.
4022 * g10/pkglue.c (pk_encrypt): Handle possible NULL-ptr access due to
4025 2021-05-11 NIIBE Yutaka <gniibe@fsij.org>
4027 gpg: Fix allocation for EXTRAHASH.
4028 + commit ac731dbbbd21f53d2f6bf69343e6bf553ebc9dad
4029 * g10/sign.c (clearsign_file): Fix the size to allocate.
4031 scd: Serialize READER_TABLE access for PC/SC.
4032 + commit 32baa9acfb153004bdb2509f9516482b78f256a4
4033 * scd/apdu.c (apdu_dev_list_start): Remove locking READER_TABLE_LOCK.
4034 Don't increment PCSC.COUNT here.
4035 (apdu_dev_list_finish): Don't decrement PCSC.COUNT here.
4036 (apdu_open_reader): Protect access with READER_TABLE_LOCK.
4038 2021-05-10 NIIBE Yutaka <gniibe@fsij.org>
4040 scd: Fix close_pcsc_reader.
4041 + commit ec5591dc4e1f1b0340b9043a410dc62b63a90416
4042 * scd/apdu.c (close_pcsc_reader): Don't touch .RDRNAME field.
4043 (apdu_dev_list_finish): Clear .RDRNAME field and replace call of
4044 close_pcsc_reader by release_pcsc_context. Add assertion.
4046 scd: Make sure releasing PC/SC context.
4047 + commit cccc9bd5db1f00c35dff192935e91d46cafb259f
4048 * scd/apdu.c (release_pcsc_context): New.
4049 (close_pcsc_reader): Use release_pcsc_context. Add assertion.
4050 (apdu_dev_list_start): Replace call of close_pcsc_reader
4051 into release_pcsc_context, add condition.
4053 2021-05-07 NIIBE Yutaka <gniibe@fsij.org>
4055 scd: Increment PCSC.COUNT correctly.
4056 + commit 0498ea8fbd57d0df3093301d551db6b287ccf622
4057 * scd/apdu.c (open_pcsc_reader): PCSC.COUNT should
4058 be incremented before possible call of close_pcsc_reader.
4060 scd: Fix memory leak for RDRNAME and serialize access.
4061 + commit 5d1b41310682a599a16bcb95e18f56e62299059e
4062 * scd/apdu.c (close_pcsc_reader): Move locking to...
4063 (apdu_close_reader): ... here, as it's also needed for CCID driver.
4064 Free RDRNAME when closed.
4066 scd: Fix declarations for PC/SC access.
4067 + commit 039aed9d401f3875eee0251d34be74de7a1daf84
4068 * scd/apdu.c (pcsc_begin_transaction, pcsc_transmit): Use HANDLE.
4070 2021-05-06 NIIBE Yutaka <gniibe@fsij.org>
4072 scd: Recover the partial match for PORTSTR for PC/SC.
4073 + commit 53bdc6288f9b474e53f06088130e304cee41b12d
4074 * scd/apdu.c (apdu_open_reader): Allow partial match of
4075 PORTSTR again just like 2.2 does.
4077 scd: When reader is specified, make sure only open once.
4078 + commit d6fe82d3d1699eb417f87b487048f95fee91e2cd
4079 * scd/apdu.c (apdu_open_reader): Make sure not to try multiple times,
4080 when PORTSTR is specified.
4082 2021-04-29 Werner Koch <wk@gnupg.org>
4084 scd: Fix PC/SC removed card problem.
4085 + commit 8d81fd7c01e8dfacc719ff190f8e364014e32fdf
4086 * scd/apdu.c (pcsc_cancel): New.
4087 (pcsc_init): Load new function.
4088 (connect_pcsc_card): Use it after a removed card error.
4090 2021-04-28 Werner Koch <wk@gnupg.org>
4092 scd: Fix problem with reader list becoming empty.
4093 + commit bb8e3996e44f4f057f0771b9b72c89feae00f1b1
4094 * scd/apdu.c (close_pcsc_reader): Do not decrement refcount if already
4095 zero. Always release context if or becomes zero.
4096 (apdu_dev_list_start): Unlock prior to close_pcsc_reader. For PC/SC
4097 increment the count. Always release the lock.
4098 (apdu_dev_list_finish): No more unlocking. Use close_pcsc_reader
4099 instead of code duplication.
4101 * scd/apdu.c (pcsc_error_string): Add an error code.
4102 * scd/scdaemon.c (scd_kick_the_loop): Fix a diagnostic.
4104 2021-04-27 Kirill Elagin <kirelagin@gmail.com>
4106 scd: Fix unblock PIN by a Reset Code with KDF.
4107 + commit f209d7d2db0e963a6ad1fa8c4f0c034ba0297842
4108 * scd/app-openpgp.c (do_change_pin): Use correct CHVNO=1 for
4109 pin2hash_if_kdf, for user's PIN.
4111 2021-04-26 Werner Koch <wk@gnupg.org>
4113 gpg: Fix mailbox based search via AKL keyserver method.
4114 + commit 4fcfac6feb2a6c2b14883ba406afc917e8d4be42
4115 * g10/keyserver.c (keyserver_import_name): Rename to ...
4116 (keyserver_import_mbox): this. And use mail search mode.
4117 * g10/getkey.c (get_pubkey_byname): Change the two callers.
4119 gpg: Do not use import-clean for LDAP keyserver imports.
4120 + commit 99db4b0c7fd128ea5b2e251fe854bd57f6322238
4121 * g10/options.h (opts): New field expl_import_only.
4122 * g10/import.c (parse_import_options): Set it.
4123 * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP.
4125 2021-04-25 Werner Koch <wk@gnupg.org>
4127 gpg: Auto import keys specified with --trusted-keys.
4128 + commit 100037ac0f558e8959fc065d4703c85c2962489e
4129 * g10/getkey.c (get_pubkey_with_ldap_fallback): New.
4130 * g10/trustdb.c (verify_own_keys): Use it.
4132 scd:p15: Fix last commit and improve D-TRUST detection.
4133 + commit cc5aa68b6310bdeaa1102bb0d6a33420920648e7
4134 * scd/app-p15.c (read_p15_info): Improve D-TRUST card detection.
4135 (do_getattr): Fix faulty code for the last commit. Append the product
4136 name to MANUFACTURER.
4138 scd:p15: Shorten the displayed s/n of RSCS cards.
4139 + commit 21e3f750bd7dde2ae9ece01b1abdd1b47ba4fb04
4140 * scd/app-p15.c (get_dispserialno): Add dedicated handling for RSCS.
4142 2021-04-23 Werner Koch <wk@gnupg.org>
4144 gpg: Replace an obsolete trustdb function.
4145 + commit 3cbc66410d62ad2f7e559095753a2385fe644d07
4146 * g10/trustdb.c (tdb_register_trusted_keyid): Make static.
4147 (tdb_register_trusted_key): Replace register_trusted_keyid by
4148 tdb_register_trusted_key.
4149 * g10/keygen.c (do_generate_keypair): Ditto.
4150 * g10/trust.c (register_trusted_keyid): Remove.
4152 gpg: Allow decryption w/o public key but with correct card inserted.
4153 + commit 50293ec2ebf2a997dbad9a47166d694efcc0709a
4154 * agent/command.c (cmd_readkey): Add option --no-data and special
4155 handling for $SIGNKEYID and $AUTHKEYID.
4156 * g10/call-agent.c (agent_scd_getattr): Create shadow keys for KEY-FPR
4158 * g10/skclist.c (enum_secret_keys): Automagically get a missing public
4159 key for the current card.
4161 agent: Require verbose level 2 for handler started/terminated notices.
4162 + commit 84c2d97cca76045bbe9d0598a10623d5d91e6530
4163 * agent/gpg-agent.c (do_start_connection_thread): Silence diags even
4166 2021-04-23 NIIBE Yutaka <gniibe@fsij.org>
4168 tools: Fix for --disable-tpm2d.
4169 + commit 97ba94e52b2390f43fc1ac7db98e8ee7a37ddfb1
4170 * tools/gpgconf-comp.c: Conditionalize with BUILD_WITH_TPM2D.
4172 2021-04-22 Werner Koch <wk@gnupg.org>
4174 scd: Fix PSO_CSV for 512 bit curves.
4175 + commit 9e24f2a45ce8038f662ec1a9893669e1d5604ec7
4176 * scd/iso7816.c (iso7816_pso_csv): Use BER-TLV instead of SIMPLE-TLV
4178 tests: Make sure that the build keyboxd is used.
4179 + commit d36c4dc95b72b780375d57311bdf4ae842fd54fa
4180 * tests/openpgp/defs.scm (create-gpghome): Add keyboxd-program.
4182 2021-04-21 Werner Koch <wk@gnupg.org>
4184 card: New option --shadow for command list.
4185 + commit 2fce99d73a6afc1a1a29041722a934bb81c7d739
4186 * tools/card-call-scd.c (scd_readkey): Add arg create_shadow.
4187 * tools/gpg-card.c (list_one_kinfo): Add arg create_shadow and pass it
4188 down to scd-readkey. Change all callers to convey this arg.
4189 (cmd_list): Add option --shadow.
4191 agent: Silence error messages for READKEY --card.
4192 + commit 8f2c9cb73538baab7da8107f2cceb2f6fc49642a
4193 * agent/command.c (cmd_readkey): Test for shadow key before creating
4196 gpg: Allow fingerprint based lookup with --locate-external-key.
4197 + commit ec36eca08cdbf6653e7362e8e0e6c5f2c75b4a60
4198 * g10/keyserver.c (keyserver_import_fprint_ntds): New.
4199 * g10/getkey.c (get_pubkey_byname): Detect an attempt to search by
4200 fingerprint in no_local mode.
4202 keyboxd: Fix searching for exact mail addresses.
4203 + commit f79e9540ca643b5cb912e7bfca2af56be428efed
4204 * kbx/kbxserver.c (cmd_search): Use the openpgp hack for calling
4206 * kbx/backend-sqlite.c (run_select_statement): Remove angle brackets
4207 in exact addrspec mode.
4208 * g10/call-keyboxd.c (keydb_search): Do not duplicate the left angle
4210 * sm/keydb.c (keydb_search): Ditto.
4212 gpg,sm: Ignore the log-file option from common.conf.
4213 + commit d153e4936e05ab3b15df3c092024d83ac9d6ca46
4214 * g10/gpg.c (main): Don't use the default log file from common.conf.
4215 * sm/gpgsm.c (main): Ditto.
4217 2021-04-20 Werner Koch <wk@gnupg.org>
4220 + commit cbbdb88627fe57ebf02b8b4bf9002d356e57e2e4
4223 Support log-file option from common.conf for all daemon.
4224 + commit 45918813f0599505e4f84bd44b09fb708b4e7f23
4225 * agent/gpg-agent.c: Include comopt.h.
4226 (main): Read log-file option from common.conf.
4227 (reread_configuration): Ditto.
4228 * dirmngr/dirmngr.c: Include comopt.h.
4229 (main): Read log-file option from common.conf.
4230 (reread_configuration): Ditto.
4231 * kbx/keyboxd.c: Include comopt.h.
4232 (main): Read log-file option from common.conf.
4233 (reread_configuration): Ditto.
4234 * scd/scdaemon.c: Include comopt.h.
4235 (main): Read log-file option from common.conf.
4237 gpgconf: Fix a diagnostic output.
4238 + commit b657d6c3bd8103d40d511a3293313a891a26a9f5
4239 * tools/gpgconf-comp.c (gc_component_launch): Fix diagnostic.
4240 * doc/examples/common.conf: Fix example.
4242 sm: New command --show-certs.
4243 + commit 51419d63415ae2aa029f8829099b6789b264edc5
4244 * sm/keylist.c (do_show_certs): New.
4245 (gpgsm_show_certs): New.
4246 * sm/gpgsm.c (aShowCerts): New.
4247 (opts): Add --show-certs.
4248 (main): Call gpgsm_show_certs.
4250 2021-04-19 Werner Koch <wk@gnupg.org>
4252 build: Fix build problems on macOS for gpgsm tests and gpg-card.
4253 + commit 5fe60576d50f7c857d0a865a9630212422fa1ad1
4254 * tools/gpg-card.c: Include ctype.h.
4255 * sm/Makefile.am (t_common_ldadd): Add LIBICONV.
4257 2021-04-19 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
4259 build: Allow selection of TSS library.
4260 + commit 93c88d0af36b70a406997b40c49bfc14c17b4cd2
4261 * configure.ac: New option --with-tss to force the use of a
4262 specific TSS library.
4264 gpg: Fix showpref to list AEAD feature.
4265 + commit 86f446fd446fcc7295ecf6b37a3f4cca45a165f1
4266 * g10/keyedit.c (show_prefs): Show 'AEAD' if flags.aead is set.
4268 2021-04-19 Werner Koch <wk@gnupg.org>
4270 gpg,gpgsm: Move use-keyboxd to the new conf file common.conf.
4271 + commit d13c5bc244ce1daed285424d920171fc2bcd7290
4272 * common/comopt.c, common/comopt.h: New.
4273 * common/Makefile.am: Add them.
4274 * g10/gpg.c: Include comopt.h.
4275 (main): Also parse common.conf.
4276 * sm/gpgsm.c: Include comopt.h.
4277 (main): Set a flag for the --no-logfile option. Parse common.conf.
4279 * tools/gpgconf-comp.c (known_options_gpg): Remove "use-keyboxd", add
4280 pseudo option "use_keyboxd".
4281 (known_pseudo_options_gpg): Add pseudo option "use_keyboxd".
4282 (known_options_gpgsm): Remove "use-keyboxd".
4284 * tests/openpgp/defs.scm (create-gpghome): Create common.conf.
4286 * doc/examples/common.conf: New.
4288 2021-04-16 Werner Koch <wk@gnupg.org>
4290 gpg: Lookup a missing public key of the current card via LDAP.
4291 + commit d7e707170fbe2956deb3d81e2802d21352079722
4292 * g10/getkey.c (get_seckey_default_or_card): Lookup a missing public
4293 key from the current card via LDAP.
4294 * g10/call-dirmngr.c: Include keyserver-intetnal.h.
4295 (gpg_dirmngr_ks_get): Rename arg quick into flags. Take care of the
4297 * g10/keyserver-internal.h (KEYSERVER_IMPORT_FLAG_QUICK): New.
4298 Replace the use of the value 1 for the former quick arg.
4299 (KEYSERVER_IMPORT_FLAG_LDAP): New.
4300 * g10/keyserver.c (keyserver_get_chunk): Increase the reserved line
4302 * dirmngr/ks-action.c (ks_action_get): Add arg ldap_only.
4303 * dirmngr/server.c (cmd_ks_get): Add option --ldap.
4305 scd:p15: Support attribute KEY-FPR.
4306 + commit 30f90fc8574be4c48ac8d3ff41479481414c0dee
4307 * scd/app-p15.c: Include openpgpdefs.h.
4308 (struct prkdf_object_s): Add fields have_keytime and ecdh_kdf.
4309 (read_p15_info): Set ecdh_kdf.
4310 (keygrip_from_prkdf): Flag that we have the keytime.
4311 (send_keypairinfo): Send the key time only if valid.
4312 (send_key_fpr_line): New.
4313 (send_key_fpr): New.
4314 (do_getattr): Add KEY-FPR.
4316 common: New module to compute openpgp fingerprints.
4317 + commit 2f2bdd9c0894eb43f719da8b529b4c7a46f742a0
4318 * common/openpgp-fpr.c: New.
4319 * common/Makefile.am (common_sources): Add it.
4321 2021-04-13 Werner Koch <wk@gnupg.org>
4323 gpg: Do not use self-sigs-only for LDAP keyserver imports.
4324 + commit 6c26e593df51475921410ac97e9227df6b258618
4325 * dirmngr/ks-engine-ldap.c (ks_ldap_get): Print a SOURCE status.
4326 * g10/options.h (opts): New field expl_import_self_sigs_only.
4327 * g10/import.c (parse_import_options): Set it.
4328 * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP.
4330 2021-04-13 Jakub Jelen <jjelen@redhat.com>
4332 common: Fix memory leaks.
4333 + commit a16f726f9404f173705cc3bef71daee38d2c094b
4334 * common/name-value.c (do_nvc_parse): Free NAME.
4335 * common/recsel.c (recsel_parse_expr): Release SE_HEAD and EXPR_BUFFER.
4337 kbx: Fix memory leak.
4338 + commit 51bbd99a3c9b09a78e766a312d97a1d40372c6cd
4339 * kbx/keybox-update.c (blob_filecopy): Goto leave instead of return.
4341 tools: Fix memory leaks.
4342 + commit 4c8be54cc430bbebd41fd7c452ff4ff9e8ff2bd5
4343 * tools/gpgsplit.c (write_part): Free BLOB on error.
4345 scd: Fix memory leaks.
4346 + commit 7cbe29c4fb4f593e194b6c25cb31633b4a6e0b2b
4347 * scd/apdu.c (apdu_dev_list_start): Free DL.
4348 * scd/app-nks.c (pubkey_from_pk_file): Fix typo in condition.
4350 agent,kbx: Add LIBASSUAN_CLFAGS.
4351 + commit cd66b2eb0d34b135175899362e191fff81588608
4352 * agent/Makefile.am (gpg_preset_passphrase_CFLAGS, t_protect_CFLAGS):
4353 Add LIBASSUAN_CFLAGS.
4354 * kbx/Makefile.am (libkeybox_a_CFLAGS, libkeybox509_a_CFLAGS):
4357 2021-04-12 Werner Koch <wk@gnupg.org>
4359 scd:p15: Match private keys with certificates also by labels.
4360 + commit ecb9265b8dc03a153044e19be804d4c2d2caa4e8
4361 * scd/app-p15.c (cdf_object_from_label): New.
4362 (cdf_object_from_certid): Fallback to label matching.
4363 (read_p15_info): Ditto.
4364 (keygrip_from_prkdf): Ditto. Replace duplicated code by a call to
4365 cdf_object_from_objid.
4367 2021-04-08 Werner Koch <wk@gnupg.org>
4369 scd:nks: Handle APP_READKEY_FLAG_INFO.
4370 + commit 63320ba2f8147ee86f4406c9590f6b28cad4771d
4371 * scd/app-nks.c (keygripstr_from_pk_file): Fix ignored error.
4373 (do_learn_status_core): Use it. Make sure not to mange the
4374 KEYPAIRINFO line if no usage is known.
4375 (do_readkey): Output the KEYPAIRINFO for the keygrip case.
4377 scd: Fix duplicate output of KEYPAIRINFO by readkey command.
4378 + commit 22fd48e48d007a0cba6c8a8f6ad6cb4fe7470534
4379 * scd/app-help.c (app_help_get_keygrip_string_pk): Make HEXKEYGRIP
4381 * scd/command.c (do_readkey): Remove duplicate output of keypairinfo
4384 2021-04-08 NIIBE Yutaka <gniibe@fsij.org>
4386 gpg: Ed448 and X448 are only for v5.
4387 + commit 36355394d865f5760075e62267d70f7a7d5dd671
4388 * g10/keygen.c (parse_key_parameter_part): Generate with version 5
4389 packet, when it's Ed448 or X448.
4391 scd: Fix CCID driver for SCM SPR332/SPR532.
4392 + commit ab66c4357595b8a10ca25fd735f439fe795919b2
4393 * scd/ccid-driver.c (ccid_vendor_specific_pinpad_setup): New.
4394 (ccid_vendor_specific_setup): Only send CLEAR_HALT.
4395 (ccid_transceive_secure): Each time, use send_escape_cmd.
4397 common: Fix gnupg_wait_processes, by skipping invalid PID.
4398 + commit d82dae5d2229a30dbc78aadc4d544d30dac76a1c
4399 * common/exechelp-posix.c (gnupg_wait_processes): Skip invalid PID.
4401 2021-04-07 Werner Koch <wk@gnupg.org>
4403 Release GnuPG 2.3.0.
4404 + commit c922a798a341261f1aafaf7c1c0217e4ce3e3acf
4407 2021-04-01 Werner Koch <wk@gnupg.org>
4409 gpgconf: Return a new pseudo option compliance_de_vs.
4410 + commit a78475fbb7b60ca96137fbe179d8b939cfe2cd89
4411 * tools/gpgconf-comp.c (known_pseudo_options_gpg): Add
4413 * g10/gpg.c (gpgconf_list): Returh that pseudo option.
4415 common: Make the compliance check more robust.
4416 + commit 1d1ec1146c04415c7051af62e133459a4537c945
4417 * common/compliance.c (get_compliance_cache): New.
4418 (gnupg_rng_is_compliant): Use per mode cache.
4419 (gnupg_gcrypt_is_compliant): Ditto.
4421 card: New flag --reread for LIST.
4422 + commit c727951a2440913bbab5b250c9bd2bb1d35ab0d7
4423 * tools/gpg-card.c (cmd_list): Add flag --reread.
4424 * tools/card-call-scd.c (scd_learn): New arg reread.
4426 * tools/card-call-scd.c (release_card_info): Fix releasing of the new
4429 scd: New flag --reread for LEARN.
4430 + commit ff87f4e578f412332ae59fdab016f0a5304baaf9
4431 * scd/command.c (cmd_learn): Add flag --reread.
4432 * scd/app-common.h (struct app_ctx_s): New field need_reset.
4433 * scd/app.c (write_learn_status_core): Set need_reset if we notice an
4434 error after returning from a reread. Change all callers of card
4435 functions to return GPG_ERR_CARD_RESET so that that app is not anymore
4438 scd:p15: New flag APP_LEARN_FLAG_REREAD.
4439 + commit e17d3f866057543d142d63379fd4f4a36d79147f
4440 * scd/app-p15.c (do_deinit): Factor code out to ...
4441 (release_lists, release_tokeninfo): new.
4442 (read_ef_tokeninfo): Reset all data before reading.
4443 (read_p15_info): Ditto.
4444 (do_learn_status): Implement reread flag.
4446 2021-03-31 Werner Koch <wk@gnupg.org>
4448 scd: Replace all assert macros by the log_assert macro.
4449 + commit 1c16878efd0bcf036f56abef93d64ac41ce9e95b
4452 build: Require automake 1.16.3.
4453 + commit 6ca540715139899137e1f86c7e1dcbd0288f15b3
4454 * configure.ac (min_automake_version): Bump to 1.16.3
4456 2021-03-31 NIIBE Yutaka <gniibe@fsij.org>
4458 build: Update gpg-error.m4.
4459 + commit 8d6152a4cfd8a4cf176c01f99e1d49eeecab4367
4460 * m4/gpg-error.m4: Update from libgpg-error.
4462 2021-03-30 Werner Koch <wk@gnupg.org>
4464 card: Print the key's label if available.
4465 + commit 0d6f276f61c583d776687029c715b1ee4280e4ed
4466 * tools/gpg-card.h (struct key_info_s): Add field 'label'.
4467 * tools/card-call-scd.c (learn_status_cb): Parse KEY-LABEL.
4468 (scd_learn): Always request KEY-LABEL.
4469 * tools/gpg-card.c (nullnone): New.
4470 (list_one_kinfo, list_card): Use it. Print the label.
4472 scd:p15: Return labels for keys and certificates.
4473 + commit 7f9126363265a6b6fe4223d68fc4e87678c4ddfc
4474 * scd/app-p15.c (send_certinfo): Extend certinfo.
4475 (do_getattr): Support KEY-LABEL.
4477 scd:p15: For CardOS make use of ISO7816_VERIFY_NOT_NEEDED.
4478 + commit 651c07a7301c33229af051d83edbf898bae52e8b
4479 * scd/app-p15.c (verify_pin): Take care of verify status.
4481 scd:p15: Return the creation time of the keys.
4482 + commit de4d3c99aa58ee06ae978d59e7e3aa7bace1c440
4483 * scd/app-p15.c (struct prkdf_object_s): Add keytime and keyalgostr.
4484 (keygrip_from_prkdf): Set them.
4485 (send_keypairinfo): Extend KEYPAIRINFO.
4487 2021-03-30 NIIBE Yutaka <gniibe@fsij.org>
4489 build: Fix for make distcheck, no EPS support.
4490 + commit d1bac0a3be7081a4bfc7f813f9d626e1396ad5c1
4491 * Makefile.am (AM_DISTCHECK_DVI_TARGET): Specify 'pdf'.
4492 * doc/Makefile.am (EXTRA_DIST, BUILT_SOURCES): Remove EPS files.
4493 (gnupg.dvi): Remove.
4495 2021-03-29 Werner Koch <wk@gnupg.org>
4497 scd:p15: Make RSA with SHA512 work with CardOS.
4498 + commit 592f48011790e30d4bcfd9093eb58b786c8c9a8b
4499 * scd/app-p15.c (do_sign): Rewrite.
4501 agent: Skip unknown unknown ssh curves seen on cards.
4502 + commit 2d2391dfc25cfe160581b1bb4b4b8fc4764ac304
4503 * agent/command-ssh.c (ssh_handler_request_identities): Skip unknown
4506 scd:p15: Support ECDSA and ECDH for CardOS.
4507 + commit a494b29af9cc9c4c8c8323bae20e845d5a390448
4508 * scd/iso7816.c (iso7816_pso_csv): New.
4509 * scd/app-help.c (app_help_pubkey_from_cert): Uncompress a point if
4512 * scd/app-p15.c (CARD_PRODUCT_RSCS): New.
4513 (struct prkdf_object_s): Add fields is_ecc, token_label, and
4515 (do_deinit): Free new fields.
4516 (cardproduct2str): New.
4517 (read_ef_prkdf): Set new is_ecc flag.
4518 (read_ef_tokeninfo): Store some data and move Tokeninfo diags to ...
4519 (read_p15_info): here. set the product info here after all data has
4521 (send_keypairinfo): Chnage the way the gpgusage flags are used.
4522 (make_pin_prompt): If the token has a label and the current cert has
4523 no CN, show the label as holder info.
4524 (do_sign): Support ECDSA. Take care of the gpgusage flags.
4525 (do_decipher): Support ECDH. Take care of the gpgusage flags.
4527 gpg: Allow ECDH with a smartcard returning just the x-ccordinate.
4528 + commit f129b0e97730b47d62482fba9599db39b526f3d2
4529 * g10/ecdh.c (extract_secret_x): Add extra safety check. Allow for
4532 2021-03-28 Werner Koch <wk@gnupg.org>
4534 gpgconf: Do not i18n an empty string to the PO files meta data.
4535 + commit 18d884f8411a0ca263a8aa588bb49eb0dae9ee19
4536 * tools/gpgconf-comp.c (my_dgettext): Ignore empty strings.
4538 2021-03-26 Werner Koch <wk@gnupg.org>
4540 tests: Make sure the built keyboxd is used by the tests.
4541 + commit a5e72b663b3649c939d32d6526b5e2b3347dedd9
4542 * tests/openpgp/defs.scm (tool): Add keyboxd.
4543 * tests/openpgp/setup.scm: Ditto.
4545 gpgconf: Fix another argv overflow if --homedir is used.
4546 + commit 057131159b445d2d49392e95c677ad7b4cd4ae9c
4547 * tools/gpgconf-comp.c (gc_component_check_options): Increase array.
4549 gpgconf: Fix argv overflow if --homedir is used.
4550 + commit d3d57a1bc88ece0c12c91f54b089482cce92c5a0
4551 * tools/gpgconf-comp.c (gc_component_launch): Fix crasg due to too
4553 (gpg_agent_runtime_change): Fix error message.
4554 (scdaemon_runtime_change): Ditto.
4555 (tpm2daemon_runtime_change): Ditto.
4556 (dirmngr_runtime_change): Ditto.
4557 (keyboxd_runtime_change): Ditto.
4559 agent: Add debug output for failed RSA signature verification.
4560 + commit 6de1ec3ba59fa54ab60b2923ba9caa77fc9d5281
4561 * agent/pksign.c (agent_pksign_do): Support ECC and DSA verification
4562 and print some debug info in the error case.
4564 common: New function to uncompress an ECC public key.
4565 + commit 935765b451aadc63fbba763a4a00f4efa0254436
4566 * common/sexputil.c (ec2os): New.
4567 (uncompress_ecc_q_in_canon_sexp): New.
4569 * common/t-sexputil.c (fail2): new.
4570 (test_ecc_uncompress): New.
4571 (main): Run new test.
4573 2021-03-26 NIIBE Yutaka <gniibe@fsij.org>
4575 scd: Fix PC/SC error handling at apdu_dev_list_start.
4576 + commit d4e5979c630c2960cf1fd5796f1060419e71cb04
4577 * scd/apdu.c (PCSC_E_NO_READERS_AVAILABLE): Add.
4578 (pcsc_error_to_sw): Handle PCSC_E_NO_READERS_AVAILABLE.
4579 (apdu_dev_list_start): Return error correctly.
4581 2021-03-24 Werner Koch <wk@gnupg.org>
4583 card: Add option --use-default-pin to command "login".
4584 + commit 73bad368dacf5334bf78af15b243d06fd1273849
4585 * tools/gpg-card.c (cmd_login): Add option.
4587 scd:p15: Make $SIGNKEY et al determination more fault tolerant.
4588 + commit 964363e788210f96a471e31ffa8fd17b534c0aa8
4589 * scd/app-p15.c (do_getattr): Change how we use gpgUsage to figure out
4592 2021-03-24 NIIBE Yutaka <gniibe@fsij.org>
4594 gpg: Fix v5 signature for clearsign.
4595 + commit 14ef703ad65850fa22d394c4d521ba602ff2cc8d
4596 * g10/sign.c (clearsign_file): Prepare EXTRAHASH.
4598 gpg: Support ECDH with v5 key.
4599 + commit 90a5b4e648b3c8a6fe645df7e61654dfdb3548be
4600 * g10/ecdh.c (build_kdf_params): Use the first 20 octets.
4601 * g10/pkglue.c (pk_encrypt): Remove length check to 20.
4602 * g10/pubkey-enc.c (get_it): Likewise.
4604 2021-03-23 Werner Koch <wk@gnupg.org>
4606 gpgconf: Fix listing of default_pubkey_algo.
4607 + commit a107b24ddb45c9eef432d456f302c1acea3af27c
4608 * tools/gpgconf-comp.c (known_options_gpg, known_options_gpgsm): No
4609 flags needed for pseudo options.
4610 (known_pseudo_options_gpg, known_pseudo_options_gpgsm): New.
4611 (gc_component): Add field known_pseudo_options.
4612 (struct read_line_wrapper_parm_s): New.
4613 (read_line_wrapper): New.
4614 (retrieve_options_from_program): Use read_line_wrapper to handle
4617 2021-03-22 Werner Koch <wk@gnupg.org>
4619 kbxd: Group the options.
4620 + commit ed82ef91459f72b955f4e342ab88a7a0949c436b
4621 * kbx/keyboxd.h (opt): Remove unused field 'batch'.
4622 * kbx/keyboxd.c (opts): Remove --batch. Add group descriptions.
4624 2021-03-22 NIIBE Yutaka <gniibe@fsij.org>
4626 gpg: Support exporting Ed448 SSH key.
4627 + commit 1524a942b645d9facbedd9ed4a472e343838b6a1
4628 * common/openpgp-oid.c (oid_ed448, openpgp_oidbuf_is_ed448): New.
4629 (openpgp_oid_is_ed448): New.
4630 * common/util.h (openpgp_oid_is_ed448): New.
4631 * g10/export.c (export_one_ssh_key): Support Ed448 key.
4633 gpg: Fix exporting SSH key.
4634 + commit 0b45c5a9941094bd4529c3bf5b1cb8ce2584b9a4
4635 * g10/export.c (export_one_ssh_key): Finish base 64 encoder before
4636 writing out the comment string.
4638 2021-03-19 Werner Koch <wk@gnupg.org>
4640 card: Support OpenPGP.1 and OpenPGP.2 for readcert and writecert.
4641 + commit 475644e049436c49de7620a1539515479ad2aa4f
4642 * tools/gpg-card.c (cmd_writecert): Allow the other key references.
4643 (cmd_readcert): Ditto.
4645 scd:openpgp: Allow reading and writing user certs for keys 1 and 2.
4646 + commit 37b1c5c2004c1147a13b388863aaa8f0caf7d71f
4647 * scd/iso7816.c (CMD_SELECT_DATA): New.
4648 (iso7816_select_data): New.
4649 * scd/app-openpgp.c (do_readcert): Allow OpenPGP.1 and OPENPGP.2
4650 (do_writecert): Ditto.
4651 (do_setattr): Add CERT-1 and CERT-2.
4653 scd:openpgp: Rename an internal variable.
4654 + commit bbdb48ec0ddd99ce23fcba42949c00a2594fb9a5
4655 * scd/app-openpgp.c (struct app_local_s): s/extcap_v3/is_v3/.
4656 s/max_certlen_3/max_certlen. Change users.
4658 scd:openpgp: Small speedup reading card properties.
4659 + commit d5fb5983232cf4d60cf6aa00d0ae5a16cf948e19
4660 * scd/app-openpgp.c (struct app_local_s): Add new flag.
4661 (get_cached_data): Force chace use if flag is set.
4662 (app_select_openpgp): Avoid reading DO 6E multiple times.
4664 2021-03-18 Werner Koch <wk@gnupg.org>
4666 scd:p15: Allow to use an auth object label with cmd CHECKPIN.
4667 + commit 85082a83c2c1bda50fe6b7aa2ac68cef4faca4c7
4668 * scd/app-p15.c (prepare_verify_pin): Allow for PRKDF to be NULL.
4669 (make_pin_prompt): Ditto.
4670 (verify_pin): Ditto.
4671 (do_check_pin): Allow using the Label to specify a PIN.
4673 card: Print PIN descriptions and fix number of printed retry counters.
4674 + commit 1ac189f2df6cedab3a133baca69558fdf6a908d4
4675 * tools/gpg-card.h (struct card_info_s): Add fields nmaxlen, nchvinfo,
4677 * tools/card-call-scd.c (release_card_info): Free chvlabels.
4678 (learn_status_cb): Parse CHV-LABEL. Set nmaxlen and nchvinfo.
4679 * tools/gpg-card.c (list_retry_counter): Print CHV labels.
4681 scd:p15: New attribute CHV-LABEL.
4682 + commit ef29a960bf06005c34093cd9a6bca5a202ed359a
4683 * scd/app-p15.c (parse_common_obj_attr): Map spaces in the lapel to
4685 (read_ef_aodf): Prettify printing of the type.
4686 (do_getattr): New attribute CHV-LABEL
4687 (do_learn_status): Emit CHV-LABEL.
4688 (verify_pin): Distinguish the PIN prompts.
4690 agent: Simplify a function.
4691 + commit 26215cb211ad93ad9cc51fb4f8257b9e3c254a4e
4692 * agent/findkey.c (agent_public_key_from_file): Use a membuf instead
4693 of handcounting space.
4695 2021-03-16 Werner Koch <wk@gnupg.org>
4697 scd:p15: Implement CHV-STATUS attribute.
4698 + commit bf1d7bc3697c7d650994ba94d3704af189594657
4699 * scd/command.c (send_status_direct): Return an error.
4700 * scd/app-p15.c (do_learn_status): Emit CHV-STATUS.
4701 (compare_aodf_objid): New.
4702 (do_getattr): Implement CHV-STATUS.
4704 card: Generalize the CHV counter printing.
4705 + commit e4c2d7be22ffb47b41a3b6c1152bd75dceed74e2
4706 * tools/gpg-card.c (list_retry_counter): New. Factored out from the
4708 (cmd_verify): Re-read the chv status.
4710 2021-03-16 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
4712 build: Check for the IBM TSS tools to run the tpm2d tests.
4713 + commit c0f50811fcf81e5ebe2df326342081cfdacfbbfc
4714 * configure.ac (TEST_LIBTSS): Make that conditional depend on the
4715 detection of tssstartup.
4717 build: Fix distcheck when tpm2dtests are run.
4718 + commit ad481666ea6ef3743041ec6d043a3e6901ebab33
4719 * tests/tpm2dtests/Makefile.am (EXTRA_DIST): Distribute test files.
4720 (CLEANFILES): Make sure to remove log files.
4722 2021-03-15 James Bottomley <James.Bottomley@HansenPartnership.com>
4724 tests:tpm2d: add missing start_sw_tpm.sh script.
4725 + commit a788f2e8306d80f7f3df34eb62ec7ce1a62d48e1
4726 * tests/tpm2dtests/start_sw_tpm.sh: New.
4727 * tests/tpm2dtests/Makefile.am: Add.
4729 2021-03-15 Werner Koch <wk@gnupg.org>
4731 gpg: New option --no-auto-trust-new-key.
4732 + commit 1523b5f76f6e600c4f2d153b49a807ff2dc8d268
4733 * g10/gpg.c (oNoAutoTrustNewKey): New.
4734 (opts): Add --no-auto-trust-new-key.
4736 * g10/options.h (opt): Add flags.no_auto_trust_new_key.
4738 build: new option to disable building of tpm2daemon.
4739 + commit 8d6123faa8cae0bad6f82c9021e9ac6686b2f55d
4740 * configure.ac (build_tpmd): New configure option --disable-tpm2d
4741 (BUILD_WITH_TPM2D): New.
4742 * Makefile.am (tests): Use conditionally BUILD_TPM2D instead of
4744 * build-aux/speedo.mk (speedo_pkg_gnupg_configure) [W32]: Do not build
4746 * autogen.rc: Ditto.
4748 2021-03-15 NIIBE Yutaka <gniibe@fsij.org>
4750 scd: Add handling of Ed448 key.
4751 + commit b743942a9719be59f1da67cd338248fe7ee5aeab
4752 * scd/app-openpgp.c (struct app_local_s): Add ecc.algo field.
4753 (send_key_attr): Use ecc.algo field.
4754 (ecc_read_pubkey): Use ecc.algo field.
4755 (ecc_writekey): Ed448 means EdDSA.
4756 (parse_algorithm_attribute): Set ecc.algo field from card.
4757 Add checking for Ed25519 for ECC_FLAG_DJB_TWEAK flag.
4759 scd: Fix count_sos_bits handling.
4760 + commit f482e4bd121ff2862bfb53a82f1d5c2cf3524a10
4761 * scd/app-openpgp.c (count_sos_bits): Handle an exceptional case.
4763 common: Fix the NBITS of Ed448in OIDTABLE.
4764 + commit 373b52e69a6ca609a663a0c4a018358fdf52dc7e
4765 common/openpgp-oid.c (oidtable): Ed448 uses 456-bit signature.
4767 2021-03-12 Werner Koch <wk@gnupg.org>
4769 scd: New option --pcsc-shared.
4770 + commit 5732e7a8e97cebf8e850c472e644e2a9b040836f
4771 * scd/scdaemon.h (opt): Add field opcsc_shared.
4772 * scd/scdaemon.c (opcscShared): New.
4773 (opts): Add "--pcsc-shared".
4775 * scd/apdu.c (connect_pcsc_card): Use it.
4776 (pcsc_get_status): Take flag in account.
4777 * scd/app-openpgp.c (cache_pin): Bypass in shared mode.
4778 (verify_chv2: Do not auto verify chv1 in shared mode.
4779 * scd/app-piv.c (cache_pin): By pass caceh in shared mode.
4781 2021-03-12 NIIBE Yutaka <gniibe@fsij.org>
4783 scd: Fix computing fingerprint for ECC with SOS.
4784 + commit 95156ef9bfb6a3a525454d50ae2f5b538ccbd774
4785 * scd/app-openpgp.c (count_sos_bits): New. Count as sos_write does.
4786 (store_fpr): For ECC, use count_sos_bits.
4788 gpg: Fix compute_fingerprint for ECC with SOS.
4789 + commit cfc1497efa8c98cf490f5efc9b280a6ec44514bd
4790 * g10/keyid.c (hash_public_key): Tweak NBITS just as sos_write does.
4792 2021-03-11 Valtteri Vuorikoski <vuori@notcom.org>
4794 scd:piv: Improve APT parser compatibility.
4795 + commit 8cad11d13b15b0ef672545b06450dfbea1fef18e
4796 * scd/app-piv.c (app_select_piv): Allow for full AID.
4798 2021-03-11 Werner Koch <wk@gnupg.org>
4800 gpg: New option --force-sign-key.
4801 + commit fe02ef04500c1b35cd27132fb99ac1961f555193
4802 * g10/gpg.c (oForceSignKey,opts): New option "--force-sign-key".
4804 * g10/options.h (opt): New flag flags.force_sign_key.
4805 * g10/keyedit.c (sign_uids): Use new flag.
4807 2021-03-11 James Bottomley via Gnupg-devel <gnupg-devel@gnupg.org>
4809 tpmd2: Add Support for the Intel TSS.
4810 + commit b9c560e3a400da83073b232ee12fae090b21d20c
4811 * configure.ac: Check for Intel TSS.
4812 * tpm2d/intel-tss.h: New.
4813 * tpm2d/tpm2.h (HAVE_INTEL_TSS): Use the Intel code.
4815 2021-03-10 James Bottomley <James.Bottomley@HansenPartnership.com>
4817 tpm2d: add tests for the tpm2daemon.
4818 + commit 6720f1343aef9342127380b155c19e12c92d65ac
4819 * configure.ac: Detect TPM emulator and enable tests.
4820 * tests/tpm2dtests/: New test suite.
4821 * tests/Makefile.am: Run tests.
4823 gpg: Add new command keytotpm to convert a private key to TPM format.
4824 + commit 92b601fceec7da64939591001dba94e202f6e6a0
4825 * agent/command.c (cmd_keytotpm): New.
4826 (agent/command.c): Register new command KEYTOTPM.
4827 * g10/call-agent.c (agent_keytotpm): New.
4828 * g10/keyedit.c (cmdKEYTOTPM): New command "keytotpm".
4829 (keyedit_menu): Implement.
4831 agent: Add new shadow key type and functions to call tpm2daemon.
4832 + commit 1f995b9ba42b76c1d83b484e5362548a54a70dab
4833 * agent/call-tpm2d.c: New.
4834 * divert-tpm2.c: New.
4835 * agent/Makefile.am: Add new files.
4836 * agent/agent.h (DAEMON_TPM2D): New. Add stub fucntions.
4837 * agent/call-daemon.c (GNUPG_MODULE_NAME_TPM2DAEMON): New.
4838 * agent/command.c (do_one_keyinfo): Handle tpmv2.
4839 * agent/gpg-agent.c (oTpm2daemonProgram): New.
4840 (opts): New option --tpm2daemon-program.
4841 (parse_rereadable_options): Handle option.
4842 * agent/pkdecrypt.c (agent_pkdecrypt): Divert to tpm2d.
4843 (agent_pksign_do): Ditto.
4846 A new shadow key type: "tpm2-v1" is introduced signalling that the
4847 shadowed key is handled by the tpm2daemon. A function to identify
4848 this type is introduced and diversions to the tpm2daemon functions are
4849 conditioned on this function for pkign and pkdecrypt where the same
4850 diversions to scd are currently done. The (info) field of the
4851 shadowed key stores the actual TPM key. The TPM key is encrypted so
4852 only the physical TPM it was created on can read it (so no special
4853 protection is required for the info filed), but if the (info) field
4854 becomes corrupt or damaged, the key will be lost (unlike the token
4855 case, where the key is actually moved inside the token).
4857 Note, this commit adds handling for existing TPM format shadow keys,
4858 but there is still no way to create them.
4862 * Add ChangeLog entries.
4863 * Some minor indentation fixes.
4864 * agent/Makefile.am (gpg_agent_SOURCES): Change to make distcheck
4866 * agent/agent.h [!HAVE_LIBTSS]: Do not return -EINVAL but an
4867 gpg_error_t. Mark args as unused.
4868 * agent/protect.c (agent_is_tpm2_key): Free BUF.
4870 tpm2d: Add tpm2daemon code.
4871 + commit 62a7854816b8f3661fb41f05463289e5b96663ee
4872 * tpm2d: New directory.
4873 * Makefile.am (SUBDIRS): Add directory.
4874 * configure.ac: Detect libtss and decide whether to build tpm2d.
4875 * am/cmacros.am: Add a define.
4876 * util.h (GNUPG_MODULE_NAME_TPM2DAEMON): New.
4877 * common/homedir.c (gnupg_module_name): Add tpm2d.
4878 * common/mapstrings.c (macros): Add "TPM2DAEMON".
4879 * tools/gpgconf.h (GC_COMPONENT_TPM2DAEMON): New.
4880 * tools/gpgconf-comp.c (known_options_tpm2daemon): New.
4881 (gc_component): Add TPM2.
4882 (tpm2daemon_runtime_change): New.
4883 * tpm2d/Makefile.am: New.
4884 * tpm2d/command.c: New.
4885 * tpm2d/ibm-tss.h: New.
4886 * tpm2d/tpm2.c: New.
4887 * tpm2d/tpm2.h: New.
4888 * tpm2d/tpm2daemon.c: New.
4889 * tpm2d/tpm2daemon.h: New.
4892 This commit adds and plumbs in a tpm2daemon to the build to mirror the
4893 operation of scdaemon. The architecture of the code is that
4894 tpm2daemon.c itself is pretty much a clone of scd/scdaemon.c just with
4895 updated function prefixes (this argues there could be some further
4896 consolidation of the daemon handling code). Note that although this
4897 commit causes the daemon to be built and installed, nothing actually
4898 starts it or uses it yet.
4903 command.c is copied from the command handler in scd.c except that the
4904 command implementation is now done in terms of tpm2 commands and the
4905 wire protocol is far simpler. The tpm2daemon only responds to 4
4908 IMPORT: import a standard s-expression private key and export it to
4909 TPM2 format. This conversion cannot be undone and the
4910 private key now can *only* be used by the TPM2. To anyone
4911 who gets hold of the private key now, it's just an
4912 encrypted binary blob.
4914 PKSIGN: create a signature from the tpm2 key. The TPM2 form private
4915 key is retrieved by KEYDATA and the hash to be signed by
4916 EXTRA. Note there is no hash specifier because the tpm2
4917 tss deduces the hash type from the length of the EXTRA
4918 data. This is actually a limitation of the tpm2 command
4919 API and it will be interesting to see how this fares if the
4920 tpm2 ever supports say sha3-256 hashes.
4922 PKDECRYPT: decrypt (RSA case) or derive (ECC case) a symmetric key.
4923 The tpm2 for private key is retrieved by KEYDATA and the
4924 information used to create the symmetric key by EXTRA.
4926 KILLTPM2D: stop the daemon
4928 All the tpm2 primitives used by command.c are in tpm2.h and all the
4929 tpm2 specific gunk is confined to tpm2.c, which is the only piece of
4930 this that actually does calls into the tss library.
4933 Changes from James' patch:
4935 - gpgconf: The displayed name is "TPM" and not "TPM2". That
4936 string is used by GUIs and should be something the user
4937 understands. For example we also use "network" instead
4939 - Removed some commented includes.
4940 - Use 16 as emulation of GPG_ERR_SOURCE_TPM2.
4941 - Silenced a C90 compiler warning and flags unused parameters.
4942 - Removed "if HAVE_LIBS" from tpm2/Makefile.am and add missing
4943 files so that make distcheck works.
4945 2021-03-10 Werner Koch <wk@gnupg.org>
4947 scd:p15: Support special extended usage flags for OpenPGP keys.
4948 + commit 08b5ac492afc6c6e7eaaa1f70d67c81cbda2c9be
4949 * scd/app-p15.c (struct gpgusage_flags_s): New.
4950 (struct prkdf_object_s): Add field gpgusage.
4951 (struct app_local_s): Add field any_gpgusage.
4952 (dump_gpgusage_flags): New.
4953 (read_p15_info): Parse athe gpgusage flags.
4954 (do_getattr): Take care of the gpgusage flags.
4956 2021-03-08 Werner Koch <wk@gnupg.org>
4958 sm: Init nPth which might be used by some helper code.
4959 + commit a4021d9be4aeac7429bf6a8e9f336dbb62cacfc4
4960 * sm/gpgsm.c: Include npth.h.
4963 w32: Cleanup use of pid_t in call-daemon.
4964 + commit 33c492dcb955bff01fffae31fb7750f88e07b8ff
4965 * agent/call-daemon.c (struct wait_child_thread_parm_s) [W32]: Do not
4966 use HANDLE for pid_t.
4967 (wait_child_thread): Ditto.
4969 w32: Change spawn functions to use Unicode version of CreateProcess.
4970 + commit cf2f6d8a3f0594c03c383b4989a3041e9c4536d7
4971 * common/exechelp-w32.c (gnupg_spawn_process): Change to use
4973 (gnupg_spawn_process_fd): Ditto.
4974 (gnupg_spawn_process_detached): Ditto.
4975 * g10/exec.c (w32_system): Ditto.
4977 2021-03-08 NIIBE Yutaka <gniibe@fsij.org>
4980 + commit fc99f77b14b6c2cdfb547607651922c16863dcf0
4981 * scd/app-openpgp.c (do_decipher): Support with no prefix.
4983 2021-03-05 Werner Koch <wk@gnupg.org>
4985 w32: Always use Unicode for console input and output.
4986 + commit 8c41b8aac3efb78178fe1eaf52d8d1bbc44941a8
4987 * common/init.c (_init_common_subsystems) [W32]: Set the codepage to
4988 UTF-8 for input and putput. Switch gettext to UTF-8.
4989 * tools/gpgconf.c (main): Display the input and output codepage if
4991 * g10/gpg.c (utf8_strings) [W32]: Make sure this is always set.
4993 w32: Free memory allocated by new function w32_write_console.
4994 + commit 31b708e268ebb725307856865f34a61670a35586
4995 * common/ttyio.c (w32_write_console): Free buffer.
4997 common,w32: Allow Unicode input and output with the console.
4998 + commit f165c8a737cc968554c9d78932c69869456108ff
4999 * common/ttyio.c (do_get) [W32]: Use ReadConsoleW.
5000 (w32_write_console): New.
5001 (tty_printf, tty_fprintf) [W32]: Use new function.
5003 common: Re-indent ttyio.c and remove EMX, RISCOS, and CE support.
5004 + commit 8622f53994249d8fb49a488cfe480ffbeb8cbfba
5005 * common/ttyio.c: Remove cruft like EMX and RISCOS support. Translate
5006 a few strings. Re-indent.
5008 2021-03-04 Werner Koch <wk@gnupg.org>
5010 common: Rename w32-misc.c to w32-cmdline.c.
5011 + commit 7262d602d802c4a3840097d5de217fcfb9728b49
5012 * common/w32-misc.c: Rename to ....
5013 * common/w32-cmdline.c: this.
5014 * common/Makefile.am: Adjust.
5016 common,w32: Implement globing of command line args.
5017 + commit 089c9439674e8ecbc64f0ba924e6fb447bbc2b9d
5018 * common/w32-misc.c [W32]: Include windows.h
5019 (struct add_arg_s): New.
5022 (parse_cmdstring): Add arg argvflags and set it.
5023 (w32_parse_commandline): Add arg r_itemsalloced. Add globing.
5025 * common/init.c (prepare_w32_commandline): Mark glob created items as
5028 * common/t-w32-cmdline.c : Include windows.h
5029 (test_all): Add simple glob test for Unix.
5030 (main): Add manual test mode for Windows.
5032 common,w32: Refine the command line parsing for \ in quotes.
5033 + commit 20c60076866904187a09393de596deef286116f8
5034 * common/t-w32-cmdline.c (test_all): Add new test cases.
5035 * common/w32-misc.c (strip_one_arg): Add arg endquote.
5036 (parse_cmdstring): Take care of backslashes in quotes.
5038 gpg: Prepare for globing with UTF-8.
5039 + commit 8e15506d6680bbee85bc01453da28fc90b4cb673
5040 * g10/gpg.c (_dowildcard): Remove.
5041 (my_strusage): Enable wildcards using our new system.
5043 common: First take on handling Unicode command line args.
5044 + commit deb6c94362c0f179de1cac18707aad2f51a21e10
5045 * common/w32-misc.c: New.
5046 * common/t-w32-cmdline.c: New.
5047 * common/init.c: Include w32help.h.
5048 (prepare_w32_commandline): New.
5049 (_init_common_subsystems) [W32]: Call prepare_w32_commandline.
5051 * common/Makefile.am (common_sources) [W32]: Add w32-misc.c
5052 (module_tests): Add t-w32-cmdline
5053 (t_w32_cmdline_LDADD): New.
5055 2021-03-01 Nicolas Fella via Gnupg-devel <gnupg-devel@gnupg.org>
5057 gpg: Keep temp files when opening images via xdg-open.
5058 + commit be2da244565822ad1f268f84dc88a23e5aa8d26a
5059 * g10/photoid.c (get_default_photo_command): Change parameter for
5062 2021-02-25 Werner Koch <wk@gnupg.org>
5064 scd:p15: Read out the access flags.
5065 + commit d51a5ca1084c69c0ed304126a7aaa0a648b2eba6
5066 * scd/app-p15.c (struct keyaccess_flags_s): New.
5067 (struct prkdf_object_s): Add field accessflags.
5068 (dump_keyusage_flags): New.
5069 (dump_keyaccess_flags): New.
5070 (parse_keyaccess_flags): New.
5071 (parse_common_key_attr): Return access flags.
5072 (read_ef_prkdf): Parse the access flags. Allow for ECkeys.
5073 (read_ef_pukdf): Ditto. Use new functions for printing.
5074 (read_p15_info): Use new fucntion for printing.
5076 sm: Do not print certain issuer not found diags in quiet mode.
5077 + commit a170f0e73f38e474b6d4463433fe344eca865fa5
5078 * sm/certchain.c (find_up_dirmngr): Print one diagnostic only in
5079 verbose mode. Do not print issuer not found diags in quiet mode.
5080 * sm/minip12.c (parse_bag_data): Add missing verbose condition.
5082 sm: Fix issuer certificate look error due to legacy error code.
5083 + commit 473b83d1b9efe51fcca68708580597dddf3f50b7
5084 * sm/certchain.c (find_up): Get rid of the legacy return code -1 and
5085 chnage var name rc to err.
5086 (gpgsm_walk_cert_chain): Change var name rc to err.
5087 (do_validate_chain): Get rid of the legacy return code -1.
5089 2021-02-24 Werner Koch <wk@gnupg.org>
5091 scd:p15: Get the label value of all objects for better diagnostics.
5092 + commit cfdaf2bcc85b3b6f16904006f239b400a3487ff8
5093 * scd/app-p15.c (struct cdf_object_s): Add fields authid, authidlen,
5095 (struct prkdf_object_s): Add field label.
5096 (struct aodf_object_s): Ditto.
5097 (release_cdflist): Free new fields.
5098 (release_prkdflist): Free new field.
5099 (release_aodf_object): Ditto.
5100 (parse_common_obj_attr): Return the label.
5101 (read_ef_prkdf): Store the label.
5102 (read_ef_pukdf): Ditto.
5103 (read_ef_cdf): Use parse_common_obj_attr and store authid and label.
5104 Print them im verbose mode.
5105 (read_ef_aodf): Store the label and print it.
5107 sm: Silence some output on --quiet.
5108 + commit 615d2e4fb15859320ea0ebec1bb457c692c57f0a
5109 * sm/encrypt.c (gpgsm_encrypt): Take care of --quiet.
5110 * sm/gpgsm.c: Include minip12.h.
5111 (set_debug): Call p12_set_verbosity.
5112 * sm/import.c (parse_p12): Dump keygrip only in debug mode.
5113 * sm/minip12.c (opt_verbose, p12_set_verbosity): New.
5114 (parse_bag_encrypted_data): Print info messages only in verbose mode.
5116 2021-02-23 Werner Koch <wk@gnupg.org>
5118 scd:p15: Make it code work again for D-Trust cards.
5119 + commit 33aaa37e5bc0beb75305cdf9d8be850daccaee5e
5120 * scd/app-p15.c (select_and_read_binary): Allow to skip the select.
5121 (select_and_read_record): Return the statusword. Silence error
5122 message for SW_FILE_STRUCT.
5123 (select_ef_by_path): Fix selection with a home_DF.
5124 (read_first_record): Fallback to read_binary for CardOS and return
5126 (read_ef_prkdf): Use info from read_first_record to decide whether to
5127 use record or binary mode.
5128 (read_ef_pukdf): Ditto.
5129 (read_ef_aodf): Ditto.
5130 (read_ef_cdf): Ditto. New arg cdftype for diagnostics.
5131 (read_p15_info): Pass cdftype.
5133 * scd/apdu.h (SW_FILE_STRUCT): New.
5134 * scd/apdu.c (apdu_strerror): Map that one to a string.
5135 * scd/iso7816.c (map_sw): and to a gpg-error.
5137 2021-02-22 Werner Koch <wk@gnupg.org>
5139 scd: Fix readkey --info in case a readkey command is available.
5140 + commit 2490f4e8e1d1feecb44aefa79bd71f5f8b06c9a4
5141 * scd/command.c (do_readkey): Make --info also work if a readkey
5142 command is available.
5144 * scd/app-p15.c (cdf_object_from_certid): Fix a but introduced with
5145 the previous commit.
5147 scd:p15: Extract extended usage flagsand act upon them.
5148 + commit 488eaedc9a332d8164dea22e469354fc10b0a253
5149 * scd/app-p15.c: Add a couple of oid constants.
5150 (struct cdf_object_s): Replace fields image and imagelen by cert.
5151 (struct prkdf_object_s): Add extusage flags
5152 (send_keypairinfo): Use them.
5153 (cdf_object_from_certid): Factor parts out to ...
5154 (cdf_object_from_objid): new function.
5155 (read_ef_prkdf): Move info printing to ...
5156 (read_p15_info): here. Fill the extusage flags.
5157 (readcert_by_cdf): Cache the ksba cert object instead of the binary
5159 * scd/app.c (select_additional_application): Fix a log_debug call.
5160 (scd_update_reader_status_file): Ditto.
5162 sm: Extend the list of known OIDs.
5163 + commit 4c9b509d2402f79668e502a9db5879280a4f683b
5164 * sm/keylist.c (oidtranstbl): Add a couple of OIDs and mark them for
5167 2021-02-19 Werner Koch <wk@gnupg.org>
5169 build: Remove now obsolete HAVE_NEWER_LIBGCRYPT AM conditional.
5170 + commit 5573ab714b92f6ee899a816998e56e1238f4c573
5171 * configure.ac (HAVE_NEWER_LIBGCRYPT): Remove conditional.
5172 * tools/Makefile.am (gpg_pair_tool_SOURCES): We build it always.
5174 scd: Minor tweak for easier backporting.
5175 + commit 6d4280b13ddc928ff6bc41bdf482030f0f814fdb
5176 * scd/app-common.h (APP_CARD): New. Use it in app-*.c to access
5179 2021-02-18 Werner Koch <wk@gnupg.org>
5181 po: Change translatability of a fallback string.
5182 + commit 0be4861762c21ebfb4c2e28bb9a3e5cfbc08e1a9
5183 * agent/call-pinentry.c (setup_genpin): Do not make the fallback
5186 speedo: Update w32 stuff from 2.2.
5187 + commit 919a969354d4021f2e64a948b4c224cd37323713
5188 * build-aux/speedo.mk: Update from 2.2. Add target w32-msi-release.
5189 * build-aux/speedo/w32/inst.nsi: Fix location of doc files.
5190 * build-aux/speedo/w32/wixlib.wxs: Add gpg-card and fix a wrong name.
5191 * Makefile.am (release): Support a WITH_MSI variable.
5192 (wixlibfile): Improve copying to archive.
5193 (release): Use AMTAR instead of TAR.
5195 2021-02-17 Werner Koch <wk@gnupg.org>
5197 dirmngr: Support new gpgNtds parameter in LDAP keyserver URLs.
5198 + commit ab7dc4b524c3e2ad5153acfdbfa879a9e62d2dbe
5199 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): Support a new gpgNtds
5201 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Do ldap_init always with
5202 hostname - which is NULL and thus the same if not given. Fix minor
5203 error in error code handling.
5205 2021-02-16 NIIBE Yutaka <gniibe@fsij.org>
5207 build: Update gpg-error.m4 again.
5208 + commit 3fa1fa747b61867076e344c3eb07a66826c1983a
5209 * m4/gpg-error.m4: Update from libgpg-error.
5211 2021-02-15 NIIBE Yutaka <gniibe@fsij.org>
5213 build: Update gpg-error.m4.
5214 + commit 985e85dc0e6c54aa465a2af610c5a04fc10649a0
5215 * m4/gpg-error.m4: Update from libgpg-error.
5217 2021-02-12 NIIBE Yutaka <gniibe@fsij.org>
5219 build: Update gpg-error.m4.
5220 + commit e1e3f1db4660b5416828aeb636a7f767fadcc7a4
5221 * m4/gpg-error.m4: Update from libgpg-error.
5223 build: Fix library dependency of g13 test program.
5224 + commit 83e0a9d6b990aa517bc338b578f7faf393ae1b0d
5225 * g13/Makefile.am (t_common_ldadd): Add GPG_ERROR_LIBS.
5227 2021-02-10 Werner Koch <wk@gnupg.org>
5229 gpg: Do not allow old cipher algorithms for encryption.
5230 + commit 825dd7220ff6079cbe2d0df7fde93526c077fb6d
5231 * g10/gpg.c: New option --allow-old-cipher-algos.
5232 (set_compliance_option): Set --rfc4880bis explictly to SHA256 and
5233 AES256. Allow old cipher algos for OpenPGP, rfc4880, and rfc2440.
5234 * g10/options.h (opt): Add flags.allow_old_cipher_algos.
5235 * g10/misc.c (print_sha1_keysig_rejected_note): Always print the note
5236 unless in --quiet mode.
5237 * g10/encrypt.c (setup_symkey): Disallow by default algos with a
5239 (encrypt_crypt): Ditto. Fallback by default to AES instead of 3DES.
5240 * g10/pkclist.c (algo_available): Take care of old cipher also.
5241 (select_algo_from_prefs): Use AES as implicit algorithm by default.
5243 * tests/openpgp/defs.scm (create-gpghome): Set allow-old-cipher-algos.
5245 Remove obsolete M4 macros.
5246 + commit 6e730c18816fbb3e074d93840396ed18f00ab7e2
5247 * m4/gnupg-pth.m4: Remove.
5248 * m4/libcurl.m4: Remove.
5250 Require GpgRT version 1.41.
5251 + commit 2b75b256054427119a284792540243c3471267d4
5252 * configure.ac (NEED_GPG_ERROR_VERSION): Rename to NEED_GPGRT_VERSION
5254 * common/sysutils.c (gnupg_access): Remove code for older gpgrt
5256 * kbx/backend-sqlite.c: Ditto.
5257 * sm/gpgsm.c (main): Ditto.
5259 2021-02-09 Werner Koch <wk@gnupg.org>
5261 build: Make make distcheck work again.
5262 + commit f9e4dae08d7caed741d35916c46b8302e098d521
5263 * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4
5265 tools: Remove the symcryptrun tool.
5266 + commit 209b7113f3493bd829ec5c90275ff95a273d9dd4
5267 * tools/symcryptrun.c: Remove.
5268 * tools/Makefile.am: Ditto.
5269 * doc/tools.texi: Remove man page.
5270 * configure.ac: Remove build option and tests used only by this tool.
5271 * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Do not build
5274 2021-02-05 NIIBE Yutaka <gniibe@fsij.org>
5276 gpg: Fix selection of key.
5277 + commit 390f597868a5b5934f21f81ebf6ff110b6792283
5278 * g10/getkey.c (pubkey_cmp): Handle the case of TRUST_EXPIRED.
5280 2021-02-02 Werner Koch <wk@gnupg.org>
5282 gpg: Remove support for PKA.
5283 + commit 7f3ce66ec56a5aea6170b7eb1bda5626eb208c83
5284 * g10/gpg.c (oPrintPKARecords): Remove.
5285 (opts): Remove --print-pka-records.
5286 (main): Remove "pka-lookups","pka-trust-increase" and other PKA stuff.
5287 * g10/options.h (EXPORT_DANE_FORMAT): Remove.
5288 (VERIFY_PKA_LOOKUPS, VERIFY_PKA_TRUST_INCREASE): Remove.
5289 (KEYSERVER_HONOR_PKA_RECORD): Remove.
5290 * g10/packet.h (pka_info_t): Remove.
5291 (PKT_signature): Remove flags.pka_tried and pka_info.
5292 * g10/parse-packet.c (register_known_notation): Remove
5293 "pka-address@gnupg.org".
5294 * g10/pkclist.c (check_signatures_trust): Remove PKA stuff.
5295 * g10/call-dirmngr.c (gpg_dirmngr_get_pka): Remove.
5296 * g10/export.c (parse_export_options): Remove "export-pka".
5297 (do_export): Adjust for this.
5298 (write_keyblock_to_output): Ditto.
5299 (do_export_stream): Ditto.
5300 (print_pka_or_dane_records): Rename to ...
5301 (print_dane_records): this and remove two args. Remove PKA printing.
5302 * g10/free-packet.c (free_seckey_enc, cp_pka_info): Adjust for removed
5304 * g10/getkey.c (get_pubkey_byname): Make AKL_PKA a dummy.
5305 * g10/keyserver.c: Remove "honor-pka-record".
5306 (keyserver_import_pka): Remove.
5307 * g10/mainproc.c (get_pka_address): Remove.
5308 (pka_uri_from_sig): Remove.
5309 (check_sig_and_print): Remove code for PKA.
5311 gpg: Remove more or less useless tool gpgcompose.
5312 + commit fde7d833573d358b2c5b5eb7d837bc27c6dcb3d1
5313 * g10/gpgcompose.c: Remove
5315 gpg: Remove experimental feature to export w/o user-ids.
5316 + commit 3491faa3bb62c1c96c6dd5947516128b2a966535
5317 * g10/options.h (IMPORT_DROP_UIDS, EXPORT_DROP_UIDS): Remove.
5318 * g10/import.c (parse_import_options): Remove option import-drop-uids.
5319 (import_one_real): Remove drop uids code.
5320 (remove_all_uids): Remove function.
5321 * g10/export.c (parse_export_options): Remove option export-drop-uids.
5322 (do_export_one_keyblock): Remove drop uids code.
5324 card: List keys of pkcs#15 cards.
5325 + commit a06c79b6143fc49e6f5169b8a9f53c691031d6ca
5326 * tools/gpg-card.c (list_p15): New.
5327 (list_card): Call it.
5329 scd:p15: Read PuKDF and minor refactoring.
5330 + commit 0c080ed5791ecf1606d1c2fddc0c55362fd171d3
5331 * scd/app-p15.c (pukdf_object_t): New.
5332 (struct app_local_s): Add field public_key_info.
5333 (release_pukdflist): New.
5334 (select_and_read_record): No diagnostic in case of not_found.
5335 (read_first_record): New. Factored out from the read_ef_ fucntions.
5336 (read_ef_pukdf): New. Basically a copy of read_ef_prkdf for now.
5337 (read_p15_info): Also read the public keys.
5339 (cardtype2str): New.
5340 (read_ef_tokeninfo): Print a string with the cardtype.
5342 2021-02-01 Werner Koch <wk@gnupg.org>
5344 sm: Add a few OIDs and merge OID tables.
5345 + commit 0737dc8187a0eb9ca4661e2ad45954c718daa451
5346 * sm/keylist.c (OID_FLAG_KP): New.
5347 (key_purpose_map): Merge into ...
5348 (oidtranstbl): this.
5349 (get_oid_desc): New arg 'matchflag'. Use function in place of direct
5350 access to key_purpose_map.
5352 2021-01-28 Werner Koch <wk@gnupg.org>
5354 Include the library version in the compliance checks.
5355 + commit 90c514868ff5fcf6d39490d4874ac3a31ba9e85f
5356 * common/compliance.c (gnupg_gcrypt_is_compliant): New.
5357 (gnupg_rng_is_compliant): Also check library version.
5358 * g10/mainproc.c (proc_encrypted): Use new function.
5359 (check_sig_and_print): Ditto.
5360 * sm/decrypt.c (gpgsm_decrypt): Ditto.
5361 * sm/encrypt.c (gpgsm_encrypt): Ditto.
5362 * sm/verify.c (gpgsm_verify): Ditto
5364 2021-01-27 Werner Koch <wk@gnupg.org>
5366 scd:p15: Make file selection more robust.
5367 + commit 1e197c29ed95d021f5693cd3652b6acb07d928ea
5368 * scd/app-p15.c: Include host2net.h.
5369 (DEFAULT_HOME_DF): New.
5370 (select_and_read_binary): Replace slot by app. Change callers. Use
5372 (select_and_read_record): ditto.
5373 (select_ef_by_path): Make use use the home_df.
5374 (parse_certid): Adjust for always set home_df.
5375 (print_tokeninfo_tokenflags): Ditto.
5376 (app_select_p15): Take the home_df from the FCI returned by select.
5378 scd: Define new status word.
5379 + commit 7620473cd007c074b0625a678caa6105a4c87142
5380 * scd/apdu.h (SW_NO_CURRENT_EF): New.
5382 scd:p15: Factor the commonKeyAttributes parser out.
5383 + commit 5bcbc8cee310067aa3cc48665b0fb0595c64ae4d
5384 * scd/app-p15.c (read_ef_prkdf): Fix detection of unsupported key
5385 objects. Factor some code out to ...
5386 (parse_common_key_attr): new.
5388 gpg: Fix ugly error message for an unknown symkey algorithm.
5389 + commit b08418d22cc898c9d135217e07ca77f3daf3c9e9
5390 * g10/mainproc.c (proc_symkey_enc): Do not continue with an unknown
5393 2021-01-26 Werner Koch <wk@gnupg.org>
5395 scd:p15: Factor the commonObjectAttributes parser out.
5396 + commit fb84674d6c645a423b8ed9835437d25e4893e183
5397 * scd/app-p15.c (parse_common_obj_attr): New.
5398 (read_ef_prkdf): Use new function.
5399 (read_ef_aodf): Ditto.
5401 scd:p15: First step towards real CardOS 5 support.
5402 + commit fc287c0552b0fe489c66bb493879f4330c34f287
5403 * scd/iso7816.c (iso7816_select_path): Add arg from_cdf.
5404 * scd/app-nks.c (do_readkey): Adjust for this change.
5406 * scd/app-p15.c (CARD_TYPE_CARDOS_53): New.
5408 (card_atr_list): Add standard ATR for CardOS 5.3.
5409 (select_and_read_binary): Remove the fallback to record read hack.
5410 (select_and_read_record): New.
5411 (select_ef_by_path): Rework and support CardOS feature.
5412 (read_ef_prkdf): Use read record for CardOS.
5413 (read_ef_cdf): Ditto.
5414 (read_ef_aodf): Ditto. Also fix bug in the detection of other
5415 unsupported attribute types.
5416 (verify_pin): Use IS_CARDOS_5 macro.
5417 (app_select_p15): Force direct method for CardOS.
5419 2021-01-25 Werner Koch <wk@gnupg.org>
5421 agent: Support ssh-agent extensions for environment variables.
5422 + commit 224e26cf7b67f22bb0140133eac6b4ad24f3b1b7
5423 * common/session-env.c (session_env_list_stdenvnames): Extend to allow
5424 return all names as one string.
5425 * agent/command-ssh.c (SSH_REQUEST_EXTENSION): New.
5426 (SSH_RESPONSE_EXTENSION_FAILURE): New.
5427 (request_specs): Add handler for the extension command.
5428 (ssh_handler_extension): New.
5430 2021-01-21 Werner Koch <wk@gnupg.org>
5432 scd:p15: Show the ATR as part of the TokenInfo diagnostics.
5433 + commit 60499d98940d4b7a1673b8584cafe0f7ac2901dd
5434 * scd/app-p15.c (read_ef_tokeninfo): Print the ATR in verbose mode.
5436 2021-01-19 Werner Koch <wk@gnupg.org>
5438 Require Libgcrypt 1.9.
5439 + commit 9500432b7ae10d98b30c58de4357e2ffb93bf795
5440 * configure.ac: Require at least Libgcrypt 1.9.0. Remove all
5441 GCRYPT_VERSION_NUMBER dependent code.
5443 2021-01-12 Werner Koch <wk@gnupg.org>
5445 tools: Add option --clock to watchgnupg.
5446 + commit 93d5d7ea2a8b110b3ad88be25f2f67d706361e44
5447 * tools/watchgnupg.c (print_fd_and_time) [ENABLE_LOG_CLOCK]: Use
5449 (print_version): New option --clock.
5451 2021-01-11 Werner Koch <wk@gnupg.org>
5453 gpg,w32: Fix gnupg_remove.
5454 + commit b6967d31912912ad3c0a2ff6bf6eb9822a194562
5455 * common/sysutils.c (map_w32_to_errno): New.
5456 (gnupg_w32_set_errno): New.
5457 (gnupg_remove) [w32]: Set ERRNO
5459 2021-01-06 Ingo Klöcker <dev@ingo-kloecker.de>
5461 I meant "SHA-2 digests" in the previous commit.
5462 + commit 7eef40cc1143fb19132786ebcca1c9a6c9a85e6e
5465 scd:nks: Add support for signing plain SHA-3 digests.
5466 + commit 8fe976d5b9a0f2902868737dd502c749565222a6
5467 * scd/app-nks.c (do_sign): Handle plain SHA-3 digests and verify
5468 encoding of ASN.1 encoded hashes.
5470 2020-12-30 Werner Koch <wk@gnupg.org>
5472 wkd: Minor permission fix for created files.
5473 + commit c008e8d20e12c8845403ad7dad499f6a196ecc6a
5474 * tools/wks-util.c (wks_cmd_install_key): Don't set u+x on the file.
5475 (ensure_policy_file): No need to make the policy file group writable.
5477 2020-12-21 Werner Koch <wk@gnupg.org>
5479 common: Remove superfluous debug output from dotlock.c.
5480 + commit fc0eaa9add3c9bc93d4404988be3e1eb8f88ffa2
5481 * common/dotlock.c (dotlock_create_unix): Remove debug output.
5483 doc: Explain LDAP keyserver parameters.
5484 + commit e0cbb97925a109fee7c0a7450bcac120f2766ed2
5487 2020-12-18 Werner Koch <wk@gnupg.org>
5489 dirmngr: Do not block threads in LDAP keyserver calls.
5490 + commit 355e2992c043dd3241a9e838255f01418490ef33
5491 * dirmngr/ks-engine-ldap.c: Wrap some ldap calls.
5493 2020-12-17 Werner Koch <wk@gnupg.org>
5495 gpg: New AKL method "ntds"
5496 + commit 4a3836e2b2f9a91995d5ce058820e1121298f548
5497 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Change the new
5498 support for KEYDB_SEARCH_MODE_MAIL.
5499 (ks_ldap_get): Add a debug.
5500 * g10/options.h (AKL_NTDS): New.
5501 * g10/keyserver.c (keyserver_import_ntds): New.
5502 (keyserver_get_chunk): Allow KEYDB_SEARCH_MODE_MAIL.
5503 * g10/getkey.c (parse_auto_key_locate): Support "ntds".
5504 (get_pubkey_byname): Ditto.
5506 dirmngr: Support "ldap:///" for the current AD user.
5507 + commit 1194e4f7e2dff620e0da87f212f3a35f8021b142
5508 * dirmngr/http.h (struct parsed_uri_s): Add field ad_current.
5509 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): Set it.
5510 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Take care of ad_current.
5512 dirmngr: Allow LDAP searches via fingerprint.
5513 + commit 2cadcce3e877c857bb8859574762b59b9c193b44
5514 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Add arg
5515 serverinfo and allow searching by fingerprint.
5516 (ks_ldap_get, ks_ldap_search): First connect then create teh filter.
5518 2020-12-15 Werner Koch <wk@gnupg.org>
5520 dirmngr: Store all version 2 schema attributes.
5521 + commit a2434ccabdd1956876b44e05e07c3c3630c50f8f
5522 * g10/call-dirmngr.c (ks_put_inq_cb): Emit "fpr" records.
5523 * dirmngr/ks-engine-ldap.c (extract_attributes): Add args
5524 extract-state and schemav2. Add data for the new schema version.
5525 remove the legacy code to handle UIDs in the "pub" line.
5526 (ks_ldap_put): Set new attributes for NTDS use the fingerprint as CN.
5528 2020-12-14 Werner Koch <wk@gnupg.org>
5530 dirmngr: Support the new Active Directory schema.
5531 + commit e9ddd61fe979b1b8e1a4801f7f916d0222397245
5532 * dirmngr/ks-engine-ldap.c (SERVERINFO_): New constants.
5533 (my_ldap_connect): Relace args pgpkeyattrp and real_ldapp by a new
5534 serverinfo arg. Set the new info flags.
5535 (ks_ldap_get): Adjust for change.
5536 (ks_ldap_search): Ditto.
5537 (ks_ldap_put): Ditto. Replace xmalloc by xtrymalloc. Change the DN
5538 for use with NTDS (aka Active Directory).
5539 * doc/ldap/gnupg-ldap-init.ldif (pgpSoftware): Update definition of
5541 * doc/ldap/gnupg-ldap-ad-init.ldif: New.
5542 * doc/ldap/gnupg-ldap-ad-schema.ldif: New.
5544 dirmngr: Do not store the useless pgpSignerID in the LDAP.
5545 + commit cc056eb534c1b8f7d1a90af3b9ecb9d6b2f322fa
5546 * dirmngr/ks-engine-ldap.c (extract_attributes): Do not store the
5548 * g10/call-dirmngr.c (ks_put_inq_cb): Do not emit sig records.
5550 dirmngr: Fix adding keys to an LDAP server.
5551 + commit 37a899d0e4fd49512d522e7f6f86b6968309fece
5552 * dirmngr/ks-engine-ldap.c (ks_ldap_put): Extract attribites into
5555 2020-12-11 NIIBE Yutaka <gniibe@fsij.org>
5557 scd:nks: Support READKEY with keygrip and for "NKS-IDLM" keyref.
5558 + commit 3b392630881350baabeba16fa760bad04be94d03
5559 * scd/app-nks.c (do_readkey): Allow KEYGRIP access.
5560 Support NKS-IDLM.XXXX keyref.
5562 scd:nks: Factor out pubkey retrieval from keygrip handling.
5563 + commit b7c087375d84c31ab8a645cd81e6b1e6185cb30d
5564 * scd/app-nks.c (pubkey_from_pk_file): New.
5565 (keygripstr_from_pk_file): Use pubkey_from_pk_file.
5567 2020-12-10 NIIBE Yutaka <gniibe@fsij.org>
5569 scd:nks: Add support of KEYGRIP for do_readcert.
5570 + commit 4020cd9d656264bec5e7fb5e45c5e06eff8656c3
5571 * scd/app-nks.c (do_readcert): Support KEYGRIP.
5573 scd:nks: Factor out iteration over filelist.
5574 + commit 6c4365847666cefac73ccc743a99fac473da2186
5575 * scd/app-nks.c (iterate_over_filelist): New.
5576 (do_with_keygrip): Use iterate_over_filelist.
5578 2020-12-09 Werner Koch <wk@gnupg.org>
5580 wks-client: Improve an error message.
5581 + commit c7c88648b71b8ce3a5507946afb91761fc6d931e
5582 * tools/gpg-wks-client.c (read_confirmation_request): Print trust
5585 2020-12-09 NIIBE Yutaka <gniibe@fsij.org>
5587 scd:ccid:spr532: Extend abort_cmd for initialization time.
5588 + commit a9aa30ed2c2c399c2baa6a5aa2624d8fdee6286f
5589 * scd/ccid-driver.c (abort_cmd): Add INIT argument to support
5590 synchronize until success, even ignoring timeout.
5591 (bulk_in): Normal use case of abort_cmd.
5592 (ccid_vendor_specific_init): Initial use case of abort_cmd.
5594 scd:ccid: Call libusb_clear_halt in ccid_vendor_specific_setup.
5595 + commit f50373027222f28ab9d37843178a5d44cc1e3cc0
5596 * scd/ccid-driver.c (ccid_vendor_specific_setup): Only for SPR532,
5597 call libusb_clear_halt.
5599 scd:ccid: Revert the addition of libusb_clear_halt for EP_INTR.
5600 + commit ffabc29d5eadfe81b9f62b7d4fe6e858b191354d
5601 * scd/ccid-driver.c (ccid_setup_intr): Don't call libusb_clear_halt.
5603 2020-12-08 NIIBE Yutaka <gniibe@fsij.org>
5605 scd:yubikey: Fix support of Yubikey NEO.
5606 + commit 946555ea3ceb823b95ed13654ae4fd667daa4337
5607 * scd/app-openpgp.c (get_public_key): Yubikey NEO also has this issue.
5609 agent: Allow decryption with card but no file.
5610 + commit eda3c688fc2e85c7cd63029cb9caf06552d203b4
5611 * agent/pkdecrypt.c (agent_pkdecrypt): Support decryption with card
5612 but without a stub key.
5614 agent: Clean up the API of agent_pkdecrypt.
5615 + commit 9beab36dfa39106f6efd1bb89551a581bcf9df60
5616 * agent/agent.h (agent_pkdecrypt): Use gpg_error_t type.
5617 * agent/pkdecrypt.c (agent_pkdecrypt): Use gpg_error_t type.
5619 agent: Allow pksign operation with card but no file.
5620 + commit cbb0e069f55bc45037bbd69d54ce23dae2af2ac6
5621 * agent/pksign.c (agent_pksign_do): Add support with no file.
5623 2020-12-07 Ingo Klöcker <dev@ingo-kloecker.de>
5625 gpg: Make quick-gen-key with algo "card" work for keys without keytime.
5626 + commit 255d33d65126df00bc036580d0b32735d7178c8b
5627 * g10/keygen.c (quick_generate_keypair): Set pCARDKEY flag if algostr
5628 is "card" or "card/...".
5630 2020-12-07 NIIBE Yutaka <gniibe@fsij.org>
5632 gpg,card: Allow no version information of Yubikey.
5633 + commit 1cd615afe3010d2c3919de489d7c9a78513c8694
5634 * g10/call-agent.c (learn_status_cb): Assume >= 2 when no version.
5635 * tools/card-call-scd.c (learn_status_cb): Likewise.
5637 2020-12-03 NIIBE Yutaka <gniibe@fsij.org>
5639 scd:nks: Fix caching keygrip (more).
5640 + commit 87d2c579cc38c1d2787945650125fb0e0336652c
5641 * scd/app-nks.c (keygripstr_from_pk_file): Distinguish by APP_ID.
5643 scd: Fix KEYINFO command with --data option.
5644 + commit 54b88ae4606265f3d51c1ca603dbf846f3dfd678
5645 * scd/command.c (cmd_keyinfo): Handle --data option correctly.
5647 scd:openpgp: Fix writing ECC key to card.
5648 + commit a25c99b156ca9acaa7712e9c09a6df0a7a23c833
5649 * scd/app-openpgp.c (build_privkey_template): Adding another argument
5650 of ecc_d_fixed_len to handle variable-size MPI.
5652 2020-12-02 Werner Koch <wk@gnupg.org>
5654 kbx: Better error message in case of a crippled Libgcrypt.
5655 + commit 63ed2054a1f3cfbdff5cda390952f10a512dab83
5656 * kbx/keybox-openpgp.c (keygrip_from_keyparm): Detect missing curve.
5658 2020-12-01 Jens Meißner <meissner@b1-systems.de>
5660 doc: Add parameters for batch generation of ECC keys.
5661 + commit 4f9ac5dac093300ac18fd3732bffdd2a3fc38776
5662 * doc/gpg.texi: Add parameters for batch generation of ECC keys.
5664 2020-11-30 Werner Koch <wk@gnupg.org>
5666 scd:nks: Minor additions to the basic IDLM application support.
5667 + commit 806547d9d243b26c2275fc00c645ee39d258b49b
5668 * scd/app-nks.c (filelist): Use special value -1 for IDLM pubkeys.
5669 (keygripstr_from_pk_file): Handle special value.
5670 (do_readcert): Ditto.
5671 (do_writecert): Ditto.
5673 2020-11-27 Werner Koch <wk@gnupg.org>
5675 card: Let the APDU command prints a description of the status word.
5676 + commit ad469609b101fe6c1128135180fef8eae13279ff
5677 * tools/card-call-scd.c (scd_apdu_strerror): New.
5678 * tools/gpg-card.c (cmd_apdu): Print a description.
5680 scd: New getinfo sub-command apdu_strerror.
5681 + commit 0e34683a6c4b037aa50ca0f97ddb9d5c4e499084
5682 * scd/apdu.c (apdu_strerror): Add missing status codes.
5683 * scd/command.c (cmd_getinfo): New sub-command apdu_strerror.
5685 card: Netkey improvement for passwd.
5686 + commit 5804db1a13d2cf8f4010d1257c586bed978c3173
5687 * tools/gpg-card.c (cmd_passwd) [Netkey]: No Standard/QES menu if the
5688 card does not support it. Print no error in cases the user canceled.
5690 2020-11-27 NIIBE Yutaka <gniibe@fsij.org>
5692 scd:ccid-driver: Fix pinpad error handling for cancel/timeout.
5693 + commit bb591222c3c5cb1a1750b1b1dd26d0bc53b347cb
5694 * scd/apdu.h (SW_HOST_UI_CANCELLED, SW_HOST_UI_TIMEOUT): New.
5695 * scd/ccid-driver.h (CCID_DRIVER_ERR_UI_CANCELLED): New.
5696 (CCID_DRIVER_ERR_UI_TIMEOUT): New.
5697 * scd/ccid-driver.c (bulk_in): Handle PIN input cancel/timeout error.
5698 * scd/iso7816.c (map_sw): Support SW_HOST_UI_CANCELLED and
5701 2020-11-26 Werner Koch <wk@gnupg.org>
5703 agent: Fix YK s/n and prettify the request card prompt for Yubikeys.
5704 + commit 7113263a00d8c9b09f0dfdb9590bfe2bab1bc776
5705 * agent/divert-scd.c (ask_for_card): Detect and re-format the Yubikey
5707 * scd/app.c (app_munge_serialno): Fix Yubikey s/n munging.
5708 (card_get_dispserialno): Ditto.
5709 * scd/app-openpgp.c (get_disp_serialno): Remove.
5710 (get_prompt_info): Use app_get_dispserialno.--
5712 scd: Do not try to use a non-enabled app after card switching.
5713 + commit d784e763495c8d53e29a2debdd9c0e0578f15a6a
5714 * scd/app.c (app_dump_state): Also print the refcount.
5715 (maybe_switch_app): Make sure the app exists on the card.
5717 scd: Add special serialno compare for OpenPGP cards.
5718 + commit 764c69a841abc1a4dff2fa86b4cd0b63ec737860
5719 * scd/app.c (is_same_serialno): New.
5720 (check_application_conflict): Use this.
5721 (select_application): Ditto.
5722 (app_switch_current_card): Ditto.
5723 * scd/app-openpgp.c (check_keyidstr): Ignore the card version and also
5724 compare case insensitive.
5726 2020-11-26 NIIBE Yutaka <gniibe@fsij.org>
5728 gpg: Report an error for receiving key from agent.
5729 + commit 605ab99912ac632363d1b4378a710229e40ca99e
5730 * g10/export.c (do_export_one_keyblock): Report an error.
5732 scd,nks: Fix caching keygrip.
5733 + commit 920154370834ad8d947aed19c9d914a27dde6baa
5734 * scd/app-nks.c (keygripstr_from_pk_file): Identify by cfid if
5737 2020-11-25 Werner Koch <wk@gnupg.org>
5739 scd:p15: Print the internal card type.
5740 + commit 00037f499db830c75fee2111dfbef72fa11bd98a
5741 * scd/app-p15.c (read_ef_tokeninfo): Print the internal card type.
5743 scd:p15: Improve support for some CardOS based cards.
5744 + commit c7b9a4ee439eca5a4bde4781f7d8983af3b9201e
5745 * scd/iso7816.c (iso7816_read_binary_ext): Add optional arg r_sw and
5747 (iso7816_read_record): Factor all code out to ...
5748 (iso7816_read_record_ext): new.
5749 * scd/app-p15.c (select_and_read_binary): Fallback to record reading.
5750 (read_ef_aodf): Clear EOF error.
5752 scd: Rework the handling of the displayed serial number.
5753 + commit 3a8250c02031080c6c8eebd5dea03f5f87f9ddd7
5754 * scd/app.c (app_new_register): Call app_munge_serialno for Yubikeys.
5755 (app_munge_serialno): Handle Yubikey serial numbers.
5756 (card_get_serialno): Remove special Yubikey treatment. Drop arg
5758 (app_get_serialno): Clear ERRNO on error.
5759 (card_get_dispserialno): New. Also change formatting of Yubikey and
5760 OpenPGP numbers to match those printed on the card.
5761 (app_get_dispserialno): New.
5762 * scd/app-openpgp.c (do_getattr): Use app_get_dispserialno.
5763 (yubikey_get_serialno): Remove.
5764 * scd/app-piv.c (get_dispserialno): Remove.
5765 (do_getattr): Use app_get_dispserialno.
5767 2020-11-25 NIIBE Yutaka <gniibe@fsij.org>
5769 scd: Fix an error return for READKEY.
5770 + commit c3a20c88fb30b0fc4ce50a01de97fae333003682
5771 * scd/command.c (cmd_readkey): Return when error.
5773 scd,nks: Fix SEGV for learn for older card.
5774 + commit 006944b856ee2202905290e8a2f5523a7877d444
5775 * scd/app-nks.c (keygripstr_from_pk_file): Set algostr.
5777 2020-11-20 NIIBE Yutaka <gniibe@fsij.org>
5779 gpg: Change API of agent_scd_serialno.
5780 + commit 777019faf0b8f10a897c3ee477d35f9b29f02224
5781 * g10/call-agent.c (agent_scd_serialno): Extend API to allow with
5783 * g10/card-util.c (card_status): Use NULL for agent_scd_serialno.
5784 (factory_reset): Likewise.
5785 * g10/skclist.c (build_sk_list): Likewise.
5787 Fix the previous comment changes help doc string.
5788 + commit cc8b99d18e26397028ca185e44d0886a94cc1bf6
5789 * scd/command.c (hlp_learn): Fix the doc string.
5791 2020-11-19 Werner Koch <wk@gnupg.org>
5793 gpgconf: Also print revision of libksba.
5794 + commit 4070f302e4decc8d54d1305cbd30f6dab052ef7e
5795 * dirmngr/dirmngr.c (get_revision_from_blurb): Fix detection of empty
5797 (gpgconf_versions): Print ksba revision.
5799 2020-11-19 NIIBE Yutaka <gniibe@fsij.org>
5801 agent: Fix creating shadow key on card key generation.
5802 + commit 8ddadbbdbbe20b9e87eb2bfa142577e26dae297e
5803 * agent/command.c (cmd_readkey): Fix handling --card option.
5805 gpg: Fix --card-edit command.
5806 + commit e45455d3020ca8f21c54112b6dfb1cc9bd3f2623
5807 * g10/card-util.c (get_info_for_key_operation): Revert the change.
5809 2020-11-18 NIIBE Yutaka <gniibe@fsij.org>
5811 build: Update to newer autoconf constructs.
5812 + commit d66fb3aa53a6c4a815fe35a15e3c61886c5df628
5813 * acinclude.m4 (GNUPG_CHECK_ENDIAN): Use AC_COMPILE_IFELSE instead of
5814 AC_TRY_COMPILE. Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5815 (GNUPG_BUILD_PROGRAM): Use AS_HELP_STRING instead of AC_HELP_STRING.
5816 * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
5817 Use AS_HELP_STRING instead of AC_HELP_STRING.
5818 (AC_ISC_POSIX): Replace by AC_SEARCH_LIBS.
5819 (AC_TYPE_SIGNAL): Remove.
5820 * m4/isc-posix.m4: Remove.
5821 * m4/codeset.m4: Update from gnulib.
5822 * m4/gettext.m4: Update from gnulib.
5823 * m4/lcmessage.m4: Update from gnulib.
5824 * m4/socklen.m4: Update from gnulib.
5825 * m4/ldap.m4: Use AS_HELP_STRING instead of AC_HELP_STRING.
5826 Use AC_LINK_IFELSE instead of AC_TRY_LINK.
5827 Use AC_RUN_IFELSE instead of AC_TRY_RUN.
5828 * m4/gpg-error.m4: Update from libgpg-error.
5829 * m4/readline.m4: Update from libgpg-error.
5830 * m4/npth.m4: Update from npth.
5831 * m4/libassuan.m4: Update from libassuan.
5832 * m4/libgcrypt.m4: Update from libgcrypt.
5833 * m4/ksba.m4: Update from libksba.
5834 * m4/ntbtls.m4: Update from ntbtls.
5835 * common/signal.c [!HAVE_DOSISH_SYSTEM] (init_one_signal): Replace
5837 [!HAVE_DOSISH_SYSTEM] (got_fatal_signal, got_usr_signal): Likewise.
5839 build: Use modern Autoconf check for types.
5840 + commit aeeb8e975dc740cb79954de7fec4fcfe902d3a42
5841 * common/types.h: Use HAVE_TYPE_BYTE, HAVE_USHORT_TYPEDEF,
5842 HAVE_ULONG_TYPEDEF, HAVE_U16_TYPEDEF, and HAVE_TYPE_U32.
5843 * configure.ac (byte, ushort, ulong, u16, u32): Use AC_CHECK_TYPES.
5845 2020-11-13 Werner Koch <wk@gnupg.org>
5847 gpg: Fix the encrypt+sign hash algo preference selection for ECDSA.
5848 + commit e37c2e184448f64e285f925ab9636b5f21be99f7
5849 * g10/keydb.h (pref_hint): Change from union to struct and add field
5850 'exact'. Adjust callers.
5851 * g10/pkclist.c (algo_available): Take care of the exact hint.
5852 * g10/sign.c (sign_file): Rework the hash detection from
5855 2020-11-12 Werner Koch <wk@gnupg.org>
5857 gpgconf: Yet another fix for --apply-profile.
5858 + commit e546cc78b75978a696298f2fcc072faeb7f69be4
5859 * tools/gpgconf.c (main): Use gnupg_homedir instead of
5860 default_homedir. Check for existance of the directory.
5862 2020-11-11 Werner Koch <wk@gnupg.org>
5864 w32: Replace some fopen by es_fopen.
5865 + commit d574213ce21c495d9432eeb5956e8857826876c6
5866 * agent/protect-tool.c (read_file): Replace fopen by es_fopen.
5867 * dirmngr/dirmngr-client.c (read_pem_certificate): Ditto.
5868 (read_certificate): Ditto.
5869 * g10/keydb.c (rt_from_file): Ditto.
5870 * kbx/kbxutil.c (read_file): Ditto.
5871 * g10/plaintext.c (get_output_file) [__riscos__]: Remove code.
5873 2020-11-11 NIIBE Yutaka <gniibe@fsij.org>
5875 gpg: Fix the previous commit.
5876 + commit dd2703096f3ee7f4b6b96e2b649daf85aa8d6030
5877 * g10/delkey.c (do_delete_key): Fix the condition for the error.
5879 2020-11-10 NIIBE Yutaka <gniibe@fsij.org>
5881 gpg: In batch mode, delete-secret-key is not okay without --yes.
5882 + commit f9bbc751633f38f58fecb71c33aae735e9b30241
5883 * g10/delkey.c (do_delete_key): Emit an error when not --yes.
5885 gpg: Fix agent_delete_key interaction.
5886 + commit 9854369a729b9fde43eac2e2f7154f5187378787
5887 * g10/call-agent.c (agent_delete_key): Set up CTX.
5889 2020-11-09 Werner Koch <wk@gnupg.org>
5891 card: Run factory-reset in locked stated also in gpg-card.
5892 + commit 12fd10791f1dec4ec42810d7b92c69e1ae2327b9
5893 * tools/card-call-scd.c (scd_apdu): Add more pseudo APDUs.
5894 * tools/card-misc.c (send_apdu): Handle them.
5895 * tools/gpg-card.c (cmd_factoryreset): Use lock commands.
5897 card: Run factory-reset in locked stated.
5898 + commit 8fb0d5e3c775f40e321689b35431d81425406237
5899 * scd/command.c (reset_notify): Add option --keep-lock.
5900 (do_reset): Add arg keep_lock.
5901 (cmd_lock): Send progress status.
5902 * g10/call-agent.c (agent_scd_apdu): Add more pseudo APDUs.
5903 * g10/card-util.c (send_apdu): Ditto.
5904 (factory_reset): Use lock commands.
5906 gpg: Do not print rejected digest algo notes with --quiet.
5907 + commit e08e1d62d089a154ec5d7c80cd58e8e3b18d2d6b
5908 * g10/misc.c (print_digest_rejected_note): Do not print in quiet mode.
5909 (print_sha1_keysig_rejected_note): Ditto.
5911 2020-11-09 NIIBE Yutaka <gniibe@fsij.org>
5913 gpg: Fix SOS handling when exporting SSH key with libgcrypt 1.8.
5914 + commit bf3a9377d147d8a83d9c71ca5a7284897c913951
5915 * g10/export.c (key_to_sshblob): Fix SOS correctly.
5917 agent: Fix SOS handling with libgcrypt 1.8.
5918 + commit ba4f68416742eb241ec5490d16f88b0eb0bdc811
5919 * agent/cvt-openpgp.c (apply_protection): Handle opaque MPI.
5921 2020-11-06 Werner Koch <wk@gnupg.org>
5923 agent: Minor tweaks to the new genpin inquiry.
5924 + commit c896112fa3f7f3289b5198bfac992160feb0ad0a
5925 * agent/call-pinentry.c (generate_pin): Use STRING random which is
5926 sufficient for a passphrase.
5927 (inq_cb): s/rc/err/. Do not print two errors in case generate_pin
5928 fails. Lowercase strings as per GNU standards.
5929 (setup_genpin): Fix translation test.
5930 (setup_qualitybar): Ditto.
5932 2020-11-06 Andre Heinecke <aheinecke@gnupg.org>
5934 agent: Add genpin inquiry for pinentry.
5935 + commit 557ddbde32585c534626b57a595a2ccf28fd585e
5936 * agent/call-pinentry.c (agent_get_passphrase): Setup genpin.
5937 (do_getpin): Update with new name for inquire callback.
5938 (inq_quality): Rename to inq_cb and add genpin support.
5939 (inq_cb): Renamed form inq_quality.
5940 (generate_pin): New helper to generate a pin.
5941 (agent_askpin): Fix some typos.
5942 (setup_genpin): Provide new strings for pinentry.
5944 2020-11-05 Ben Kibbey <bjk@luxsci.net>
5946 gpg: Add canceled status message.
5947 + commit 31e47dfad0f40e31e8b3113b933696e8e4105136
5948 * common/status.h (STATUS_CANCELED_BY_USER): New.
5949 * g10/passphrase.c (passphrase_to_dek): Send STATUS_CANCELED_BY_USER
5950 instead of STATUS_MISSING_PASSPHRASE when canceled is set.
5952 2020-11-05 NIIBE Yutaka <gniibe@fsij.org>
5954 scd: Use lock_slot for apdu_send_direct.
5955 + commit f808012ac2cf67ec563da178d963f300a7f2564d
5956 * scd/apdu.c (apdu_send_direct): Use lock_slot.
5958 scd: Internal CCID driver: Fix a race condition on close.
5959 + commit 484bafda4dbf5ffe9e7c41ef24fbc5bd791a3b32
5960 * scd/ccid-driver.c (ccid_require_get_status): For VENDOR_SCM reader,
5961 return 0 only at the initial call.
5962 (bulk_in): Don't detect an error for VENDOR_SCM reader, just kicking
5963 the loop, to invoke scd_update_reader_status_file, which calls
5964 ccid_slot_status again.
5965 (ccid_slot_status): Move the call of ccid_vendor_specific_setup to...
5966 (ccid_get_atr): ... here.
5968 2020-11-04 Werner Koch <wk@gnupg.org>
5970 speedo,w32: Install gpg-check-pattern and example profiles.
5971 + commit f5a81953e172a7bb4d02f2dc0e398f379c39ec84
5972 * doc/examples/vsnfd.prf: Rename to VS-NfD.prf.
5973 * doc/examples/Automatic.prf: New.
5974 * doc/Makefile.am (examples): Adjust.
5975 * build-aux/speedo/w32/inst.nsi: Install gpg-check-pattern.exe and 3
5977 * build-aux/speedo/w32/wixlib.wxs: Add new files.
5979 g13: Include a now missing header file.
5980 + commit b7f4e2d71fe3dee680f834cfc3dd620352830147
5981 * g13/create.c: Include sysutuls.h
5983 gpgconf: Make sure the homedir exists for --apply-profile.
5984 + commit 7d95f2e7e7a09e3d433d449b117e3470f9dd38c7
5985 * tools/gpgconf.c (main) <aApplyDefaults, aApplyProfile>: Create the
5986 standard home directory.
5988 common: Fix duplicate implementation of try_make_homedir.
5989 + commit dabc314b71378f585fac2753149f3358e32ec621
5990 * g10/openfile.c (try_make_homedir): Move core of the code to ...
5991 * common/homedir.c (gnupg_maybe_make_homedir): new.
5992 * sm/keydb.c (try_make_homedir): Implement using new function.
5994 * common/homedir.c: Include i18n.h.
5995 * po/POTFILES.in: Add common/homedir.c.
5997 2020-11-04 Andre Heinecke <aheinecke@gnupg.org>
5999 w32: Add another pinentry search path.
6000 + commit c8f6f6bbc8b203e633d382aa84862807c1aeb3d1
6001 * common/homedir.c (get_default_pinentry_name): Try ../bin/pinentry.exe
6003 w32: Add windows subsystem variant of gpgconf.
6004 + commit e2659f4bf603693c43af0444239bc52744291edc
6005 * tools/Makefile.am (gpgconf-w32): New target. Builds gpgconf with
6007 * build-aux/speedo/w32/wixlib.wxs: Package it.
6009 2020-11-03 Werner Koch <wk@gnupg.org>
6011 w32: Fix strftime problem on Windows.
6012 + commit e8aae18b997b3fdbfac86c644be94044aa67224d
6013 * common/gettime.c: Include locale.h.
6014 (asctimestamp): Increase buffer. On Windows use setlocale.
6016 gpg: Switch to AES256 for symmetric encryption in de-vs mode.
6017 + commit d1f2a6d9f71cf50318f4891c84aeedb975553896
6018 * g10/gpg.c (set_compliance_option): For AES256 and SHA256 in de-vs
6020 * g10/encrypt.c (setup_symkey): Add extra compliance check.
6021 (encrypt_simple): Avoid printing a second error oncplinace failure.
6023 2020-11-02 Werner Koch <wk@gnupg.org>
6025 gpg: Allow setting notations with the empty string as value.
6026 + commit e1bafa3574ccd56d9f8f8c1deb3d8fb9fd7025cc
6027 * g10/misc.c (pct_expando): Catch special case of the empty string.
6028 Also map a NULL to the empty string.
6029 * g10/photoid.c (show_photos): Make an empty string used as command
6032 build: Remove m4 macro defs which are not anymore used.
6033 + commit 6397cf5fbe3bbc1f616431b011f76e031a387d4c
6034 * configure.ac (GNUPG_FUNC_MKDIR_TAKES_ONE_ARG): Do not use.
6035 * acinclude.m4 (GNUPG_FUNC_MKDIR_TAKES_ONE_ARG): Remove unused macro
6037 (GNUPG_CHECK_FAQPROG): Ditto.
6038 (GNUPG_CHECK_DOCBOOK_TO_TEXI): Ditto.
6039 (GNUPG_CHECK_MLOCK): Ditto.
6041 gpg: Do not use weak digest algos if selected by recipient prefs.
6042 + commit 15746d60d492f5792e4a179ab0a08801b4049695
6043 * g10/misc.c (is_weak_digest): New.
6044 (print_digest_algo_note): Use it here.
6045 * g10/sig-check.c (check_signature_end_simple): Use it.
6046 * g10/sign.c (hash_for): Do not use recipient_digest_algo if it is in
6047 the least of weak digest algorithm.
6049 2020-11-02 Ingo Klöcker <dev@ingo-kloecker.de>
6051 gpg: Fix iteration over signatures.
6052 + commit b004701adca89ba85f75e12a4d284297147fe4f2
6053 * g10/keyedit.c (keyedit_quick_revsig): Take signature of correct node
6055 2020-11-02 NIIBE Yutaka <gniibe@fsij.org>
6057 kbx: Don't put zero-byte for ECC.
6058 + commit 8211d0bc3ba5ed15d0668050c08a6e28228b08a4
6059 * kbx/keybox-openpgp.c (parse_key): Only put zero for non-ECC.
6061 gpg: Fix debug output for key_check_all_keysigs with opaque MPI.
6062 + commit 90c3d623ce37695a1eb29c0a7276b23490d14603
6063 * g10/key-check.c (key_check_all_keysigs): Handle opaque MPI.
6065 gpg: Fix check_signature2 for opaque MPI.
6066 + commit 029ba6dc961c683d6683c97667d3c0e103738aa4
6067 * g10/sig-check.c (check_signature2): Handle the case of opaque MPI.
6069 gpg: Change the API for checksum to use const qualifier.
6070 + commit 21d8927f794bd901b13feaaac6d31d463349a64f
6071 * g10/main.h (checksum): Use const.
6072 * g10/misc.c (checksum): Use const.
6074 gpg: Fix counting buffer size in check_signature2.
6075 + commit 3151210e455f14848921fac838a5064749258d9f
6076 * g10/sig-check.c (check_signature2): Use GCRYMPI_FMT_PGP.
6078 2020-10-30 NIIBE Yutaka <gniibe@fsij.org>
6080 gpg: Fix SOS handling with libgcrypt version <= 1.8.
6081 + commit 813e24108a139c8059dad8bc679b2ab76b807ed9
6082 * g10/misc.c (checksum_mpi): Don't depend new feature
6083 of gcry_mpi_print which supports opaque MPI.
6085 gpg: Fix first zero-byte case for SOS handling.
6086 + commit dd4fb1c8f668f78fbcf5052e80c5c40d4cdad20c
6087 * g10/export.c (transfer_format_to_openpgp): Check the first byte.
6088 * g10/pkglue.c (sexp_extract_param_sos): Likewise.
6090 2020-10-28 Werner Koch <wk@gnupg.org>
6092 gpg: New command --quick-revoke-sig.
6093 + commit 243f9176e799b2328f2e5bed93099bfc474fdc5a
6094 * g10/gpg.c (enum cmd_and_opt_values): Add aQuickRevSig.
6095 (opts): Add --quick-revoke-sig.
6097 * g10/keyedit.c (quick_find_keyblock): Add arg 'want_secret' and
6099 (keyedit_quick_revsig): new.
6100 * g10/revoke.c (get_default_sig_revocation_reason): New.
6101 * g10/keylist.c (cmp_signodes): Make global.
6103 2020-10-27 Werner Koch <wk@gnupg.org>
6105 gpg: Sort the signatures in standard key listings.
6106 + commit 742e2729f4bcadfeb93260107462f4faa108d3b2
6107 * g10/gpg.c (parse_list_options): Add "sort-sigs".
6108 (main): Make it the default.
6109 * g10/options.h (LIST_SORT_SIGS): New.
6110 * g10/keylist.c (cmp_signodes): New.
6111 (list_keyblock_print): Sort signatures and factor signature printing
6113 (list_signature_print): new.
6115 2020-10-27 NIIBE Yutaka <gniibe@fsij.org>
6117 scd: Handle canonical serialno and app specific serialno differently.
6118 + commit e59d2b3632d8c778bd2c4375a1c3ba9c786c4360
6119 * scd/app-common.h (card_get_serialno): Add IS_CANONICAL arg.
6120 * scd/app.c (app_send_devinfo): Use app specific serialno.
6121 (card_get_serialno): Support two different cases.
6122 (app_get_serialno): Return app specific serialno.
6123 (send_serialno_and_app_status): Return canonical serialno.
6124 * scd/command.c (cmd_serialno): Return app specific serialno.
6125 (cmd_learn): Return canonical serialno.
6127 2020-10-26 Werner Koch <wk@gnupg.org>
6129 g10: Make call to agent_scd_serialno more robust.
6130 + commit 0f780b1aebb1b1bde219401735a1c24c1f0a7978
6131 * g10/call-agent.c (agent_scd_serialno): Make sure that NULL is stored
6132 on error at r_serialno.
6133 * g10/card-util.c (card_status): Simplify freeing of seriaono.
6134 (factory_reset): Ditto.
6136 2020-10-26 NIIBE Yutaka <gniibe@fsij.org>
6138 scd: Flush the cache when writing cert data object.
6139 + commit 8264b10d33e46d2caac2f2c38ccb5f764c31ad77
6140 * scd/app-piv.c (do_writecert): Flush the cache of the data object.
6142 gpg: Fix double free on error.
6143 + commit a153d0f7691486efe0aadfb1e226544ae6d20ffd
6144 * g10/card-util.c (card_status): Check an error return.
6146 gpg,tools: Fix detecting OpenPGP card by serialno.
6147 + commit 157f1de64e437cecd75335e9f4077ba9835e3da0
6148 * tools/gpg-card.c (list_openpgp): Use ->apptype to determine card's
6150 * g10/card-util.c (get_info_for_key_operation): Likewise.
6151 (current_card_status): Even if its SERIALNO is not like OpenPGP card,
6152 it's OpenPGP card when app says so.
6154 scd: Internal CCID driver thing only for SPR532.
6155 + commit 31def32eeed8cff705ca827e4bbc0bfcc80c512f
6156 * scd/ccid-driver.c (ccid_vendor_specific_setup): New. Limit
6157 only for SPR532, excluding other readers by SCM.
6158 (ccid_slot_status): Use ccid_vendor_specific_setup.
6160 2020-10-24 NIIBE Yutaka <gniibe@fsij.org>
6162 scd: Internal CCID driver limiting only for SPR532.
6163 + commit 3c6b5dfa2a2379a5f5eaa052f7dbc73462097425
6164 * scd/ccid-driver.c (ccid_vendor_specific_init): Only do that for
6167 2020-10-23 Werner Koch <wk@gnupg.org>
6169 common: Allow building with released libgpg-error.
6170 + commit 32f336d9555f18464d72a5068c290ab82ee92617
6171 * common/sysutils.c (gnupg_access) [W32]: Fix for older libgpgrt.
6173 2020-10-23 NIIBE Yutaka <gniibe@fsij.org>
6175 scd: Handle Yubikey's multiple apps and serialno.
6176 + commit 2d4de4b6f06c87cd0f72b2a0d09950e1b50841b2
6177 * scd/app-common.h (yubikey_get_serialno): New.
6178 * scd/app-openpgp.c (yubikey_get_serialno): New.
6179 * scd/app.c (card_get_serialno): Use OpenPGP app's serialno,
6180 when it's enabled for Yubikey.
6181 (send_serialno_and_app_status): Use card_get_serialno, not
6182 directly accessing ->serialno.
6184 scd: Use app_get_serialno for app_getattr.
6185 + commit c8cc35dd2c106d91a793667690c0b200560d5d2d
6186 * scd/app.c (app_getattr): Use app_get_serialno.
6188 scd: Don't overwrite serialno for Yubikey.
6189 + commit 65c91e601ae93aee1a5fa399d4a5d4498ad76eda
6190 * scd/app-openpgp.c (app_select_openpgp): Keep ->serialno.
6192 scd,openpgp: Use app_get_serialno function to get SERIALNO.
6193 + commit 41505f0ae544535b524a409d87aa2540607fc9a4
6194 * scd/app-openpgp.c (check_keyidstr): Don't directly access
6195 app->serialno, but use app_get_serialno.
6196 (do_with_keygrip): Likewise.
6198 2020-10-21 Werner Koch <wk@gnupg.org>
6200 common: New functions gnupg_opendir et al.
6201 + commit 7e22e08e2ab09cd3c2317f5e80e8ee47d46eff4b
6202 * common/sysutils.h (struct gnupg_dirent_s): New.
6203 * common/sysutils.c: Include dirent.h.
6204 (struct gnupg_dir_s): New.
6205 (gnupg_opendir, gnupg_readdir, gnupg_closedir): New. Change all
6206 callers of opendir, readdir, and closedir to use these functions.
6208 w32: Make gnupg_remove and gnupg_rename_file Unicode aware.
6209 + commit 9a0197b6fe412cfc66b0cece521267180e454416
6210 * common/sysutils.c (w32_rename): New.
6211 (gnupg_rename_file) [W32]: Support Unicode.
6212 (gnupg_remove) [W32]: Support Unicode. Drop Windows-CE support.
6214 2020-10-20 Werner Koch <wk@gnupg.org>
6216 Replace all calls to stat by gnupg_stat.
6217 + commit 18e5dd7b03ced51611c9ba1345cf498a0aaf14a6
6218 * common/sysutils.c (gnupg_stat): New.
6219 * common/sysutils.h: Include sys/stat.h.
6221 Replace most calls to open by a new wrapper.
6222 + commit 4dcef0e17836e8725c31a3b76f2bf7144345c808
6223 * common/sysutils.c (any8bitchar) [W32]: New.
6224 (gnupg_open): New. Replace most calls to open by this.
6225 * common/iobuf.c (any8bitchar) [W32]: New.
6226 (direct_open) [W32]: Use CreateFileW if needed.
6228 w32: Allow Unicode filenames for dotlock.
6229 + commit b47c355b18d9537ccc3dd3e80cc1825b018ecff7
6230 * common/dotlock.c (any8bitchar) [W32]: New.
6231 (dotlock_create_w32): Use strconcat and CreateFileW.
6233 * common/t-dotlock.c: Source include dotlock.c and modify to allow
6234 manual testing on Windows.
6236 Replace all calls to access by gnupg_access.
6237 + commit c94ee1386e0d5cdac51086c4d5b92de59c09c9b5
6238 * common/sysutils.c (gnupg_access): New. Replace all calls to access
6240 * common/homedir.c (w32_shgetfolderpath): Change to return UTF-8
6242 (standard_homedir): Adjust for change.
6243 (w32_commondir, gnupg_cachedir): Ditto.
6245 2020-10-09 NIIBE Yutaka <gniibe@fsij.org>
6247 gpg,ecc: Fix SOS handling when receiving from agent.
6248 + commit 228836f79f64559c9582ac2d475e50af57684bf8
6249 * g10/export.c (transfer_format_to_openpgp): It's not simple opaque
6252 agent: Fix SEGV when debuging for cache enabled.
6253 + commit 33cb1655f1b7c597d1ebdcb38447648477e6ac9f
6254 * agent/cache.c (agent_get_cache): Avoid dereferencing NULL.
6256 2020-10-05 Werner Koch <wk@gnupg.org>
6258 gpgsm: Fix detection of too old keyboxd.
6259 + commit 4eb9ce847825e8c6a07ce27d303c56233e85d007
6260 * sm/keydb.c (warn_version_mismatch): Add arg ctrl and pass on.
6261 (create_new_context): Pass ctrl to warn function.
6263 dirmngr: Minor cleanup for better readability.
6264 + commit b258f8de7e9fc436d72c4d4ff8f98e9b86d2f3f5
6265 * dirmngr/ldap.c (start_default_fetch_ldap): Rename to
6266 start_cacert_fetch_ldap and remove arg attr. Instead use
6267 "cACertificate" directly.
6268 * dirmngr/crlfetch.c (ca_cert_fetch): Change the only caller.
6269 (start_cert_fetch_ldap): Rename arg for clarity.
6271 dirmngr: Add warning on the use of --add-servers.
6272 + commit 210575d8826ea61e4914e4b61eff7b875c972b85
6273 * tools/gpgconf-comp.c (known_options_dirmngr): Degrade add-servers to
6276 gpg: Switch to ed25519+cv25519 as default algo.
6277 + commit ff31dde456f32950f0df6c974b4c41f1d650d68f
6278 * g10/keygen.c (DEFAULT_STD_KEY_PARAM): Change to former future
6280 (ask_algo): Change default and also the way we indicate the default
6281 algo in the list of algos.
6282 (ask_curve): Indicate the default curve.
6284 keyboxd: Fix duplicates when listing keys by uid.
6285 + commit 194034f813a09a0021e6aa82d64ea0693b37c8d0
6286 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add fields
6287 lastubid_valid and lastubid.
6288 (run_sql_prepare): Add optional extra2 arg and chage callers.
6289 (run_select_statement): Add an ORDER BY clause to most SELECTs.
6290 (be_sqlite_search): Skip duplicated keyblocks in a search.
6292 2020-10-04 Werner Koch <wk@gnupg.org>
6294 build: Fix SENDMAIL define for a PATH with spaces.
6295 + commit 6c36b8bb23bb033aaae5f1dff3b38d8e0e44717c
6296 * configure.ac: Fix use of $PATH
6298 (cherry picked from commit 77e416741abb0a871733bd46cbc81329859de96e)
6300 2020-10-02 Werner Koch <wk@gnupg.org>
6302 gpgconf: New option --show-versions.
6303 + commit 357ad9ae29677c1676b56d2b81282e2f78ec8040
6304 * tools/gpgconf.c: Include exechelp.h. New option --show-versions.
6305 (get_revision_from_blurb): New.
6306 (show_version_gnupg): New.
6307 (show_version_libgcrypt): New.
6308 (show_version_gpgrt): New.
6309 (show_versions_via_dirmngr): New.
6310 (show_versions): New.
6311 * tools/gpgconf-comp.c (GPGNAME): Remove unused macro.
6312 * dirmngr/dirmngr.c (main): New internal option --gpgconf-versions.
6313 (get_revision_from_blurb): New.
6314 (gpgconf_versions): New.
6316 w32: Silence warning due to recent change of split_fields.
6317 + commit 371228a244232f2b74181e0aa3c44d698df840ce
6318 * common/compliance.c (gnupg_rng_is_compliant): Make fields const.
6320 gpg: Fix parameter parsing form ed448.
6321 + commit e824e27d36021a868c855244d22c7d40a88a396e
6322 * g10/keygen.c (parse_key_parameter_part): Set algo also for 448.
6324 2020-10-01 Andre Heinecke <aheinecke@gnupg.org>
6326 doc: Remove enable-extended-key-format in vsnfd.
6327 + commit d84862cf109c75ae30ed5e2531b4554083c6a558
6328 * doc/examples/vsnfd.prf: Remove enable-extended-key-format
6330 2020-09-30 NIIBE Yutaka <gniibe@fsij.org>
6332 scd: Internal CCID driver: More fix for SPR532.
6333 + commit 920f258eb6018ecec1d63bad6a0fb0772f72affa
6334 * scd/ccid-driver.c (bulk_in): Handle the case of missing intr_cb.
6336 scd: Report any error for LEARN command.
6337 + commit 862d9c6face9b4ad61f6e59bf1ba9b5f5d05c58c
6338 * scd/app-openpgp.c (do_learn_status): Report any error.
6340 2020-09-29 NIIBE Yutaka <gniibe@fsij.org>
6342 scd: Internal CCID driver fix.
6343 + commit 1444203ca32ccfa4bd5097d2d49565c4055c620b
6344 * scd/ccid-driver.c (intr_cb): More useful debug output.
6345 (ccid_slot_status): Remove redundant condition.
6347 scd: Internal CCID driver: Call libusb_clear_halt at ccid_setup_intr.
6348 + commit 6af978713e4c69d7814f47e709f1dfb3fe9076d1
6349 * scd/ccid-driver.c (ccid_setup_intr): Reset the endpoint.
6350 (ccid_vendor_specific_init): Don't call libusb_clear_halt.
6352 2020-09-28 NIIBE Yutaka <gniibe@fsij.org>
6354 scd: Internal CCID driver: Fix a failure path.
6355 + commit d561c936a217627bc29aac628a8d01f7003dcd28
6356 * scd/ccid-driver.c (ccid_open_usb_reader): On error, call
6357 libusb_release_interface.
6359 scd: Internal CCID: Handle LIBUSB_ERROR_TIMEOUT at ccid_get_atr.
6360 + commit b1e8072320c19246962beb6d67dc5784b5a72364
6361 * scd/ccid-driver.c (ccid_slot_status): Handle LIBUSB_ERROR_TIMEOUT.
6363 scd: Internal CCID: Clear the handle after use.
6364 + commit c5e8ef3ab980012b64f5894f437e2ff568b02f43
6365 * scd/apdu.c (close_ccid_reader): Clear the handle.
6366 (open_ccid_reader): Likewise.
6368 scd: Change handling of SPR532 card reader.
6369 + commit 684a52dffa8b7f79b26fe53b3ab10d7748a8fb37
6370 * scd/ccid-driver.c (ccid_vendor_specific_init): Put some workaround
6371 for SPR532 initialization.
6372 (ccid_slot_status): Send ESCape command after GetSlotStatus.
6374 2020-09-25 Werner Koch <wk@gnupg.org>
6376 keyboxd: Make use of the config table.
6377 + commit f8fbd9e7346ee0c3b09271ec2cdb589282eae1c9
6378 * kbx/backend-sqlite.c (DATABASE_VERSION): New.
6379 (table_definitions): Make column name of table config unique.
6380 (create_or_open_database): Read and set the database version.
6381 (get_config_value, set_config_value): New.
6383 2020-09-25 NIIBE Yutaka <gniibe@fsij.org>
6385 scd: For PC/SC, send the ESC command at init for SPR532 reader.
6386 + commit 93e3c97889120dd17d79b7c8dd04293553785c9b
6387 * scd/apdu.c (struct reader_table_s): Remove is_spr532.
6388 (pcsc_vendor_specific_init): Send the ESC command for SPR532.
6389 (pcsc_pinpad_verify, pcsc_pinpad_modify): Remove no_lc hack.
6391 scd: For SPR532, submit the ESCape command at initialization.
6392 + commit 4fae55f8ee11b3f710524e5e8b8a91b159949f2d
6393 * scd/ccid-driver.c (ccid_vendor_specific_init): Submit the ESC
6394 command for VENDOR_SCM.
6395 (ccid_transceive_secure): Don't submit the ESC command every time.
6397 2020-09-24 Werner Koch <wk@gnupg.org>
6399 gpg: New experimental import option "bulk-import"
6400 + commit d49a945b12d98fadd0d37f4e50b5e02799e16305
6401 * g10/options.h (IMPORT_BULK): New.
6402 * g10/import.c (parse_import_options): Add "bulk-import".
6403 * g10/call-keyboxd.c (in_transaction): New var.
6404 (gpg_keyboxd_deinit_session_data): Run a commit if in bulk import
6406 (create_new_context): Run a begin transaction if in bulk import mode.
6408 keyboxd: New command TRANSACTION.
6409 + commit c2b14f5d6852fb9efaca8aeec7961e9d036203e8
6410 * kbx/backend-sqlite.c (be_sqlite_rollback): New.
6411 (be_sqlite_commit): New.
6412 (be_sqlite_search): Take care of global transactions.
6413 (be_sqlite_store): Ditto.
6414 (be_sqlite_delete): Ditto.
6415 * kbx/frontend.c (kbxd_rollback, kbxd_commit): New.
6416 * kbx/keyboxd.h (opt): Add vars for transactions.
6417 * kbx/kbxserver.c (struct server_local_s): Add fields next_session and
6419 (session_list): New var.
6420 (cmd_transaction): New.
6421 (register_commands): Register command.
6422 (kbxd_start_command_handler): Store pids and track sessions. Do a
6425 tests: Integrate --use-keyboxd into the OpenPGP test suite.
6426 + commit b19a60c6f7e892635db9e22499a7a44087c86c41
6427 * tests/openpgp/all-tests.scm (all-tests): Replace extended-key-format
6428 mode with a new keyboxd mode.
6429 * tests/openpgp/defs.scm (create-gpghome): Ditto.
6430 * tests/openpgp/gpgv.scm: Adjust for keyboxd mode.
6431 * tests/openpgp/issue2419.scm: Fix to allow setting a log-file into
6432 gpg.conf for debugging.
6434 keyboxd: Implement multiple search descriptions.
6435 + commit 25ad3c22d79d06c16a5fc652b0a6e3ffd99ad2b6
6436 * kbx/kbx-client-util.c (kbx_client_data_simple): New.
6437 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add field descidx.
6438 (be_sqlite_search): Use that.
6439 * g10/call-keyboxd.c (keydb_search): Implement multi mode.
6441 keyboxd: Fix UDPATE keyblob SQL statement.
6442 + commit 1f89d50537b3b16165e921df60734ce6203650cb
6443 * kbx/backend-sqlite.c: Always use ?NNN for SQL parameters.
6445 tests: Fix convenience function to run gpg.
6446 + commit 97798eec4b77470b3aecdbee9729fa76b8550dfe
6447 * tests/openpgp/defs.scm (pipe:gpg): Remove stray dash.
6449 keyboxd: Remove unused variables.
6450 + commit 0ac003b4576392ca3e930304a98bbf8183ab5f8b
6451 * kbx/kbx-client-util.c (datastream_thread): No need to set PK_NO and
6454 keyboxd: Integrate into gpgconf.
6455 + commit acaeba2dbdb9bbd68a823c671d5c3577fef5d26d
6456 * common/asshelp.c (lock_spawning): Use a dedicated name for keyboxd.
6457 * common/homedir.c (keyboxd_socket_name): New.
6458 (gnupg_module_name): Put keyboxd into libexecdir.
6459 * tools/gpgconf-comp.c (known_options_keyboxd): New.
6460 (gc_component): Add entry for keyboxd.
6461 (keyboxd_runtime_change): New.
6462 (gc_component_launch): Support keyboxd.
6463 * tools/gpgconf.c (list_dirs): Emit new item keyboxd-socket.
6464 (main): Also remove keyboxd socket.
6466 2020-09-24 NIIBE Yutaka <gniibe@fsij.org>
6468 scd: Fix CCID internal driver for interrupt transfer.
6469 + commit 7cbb513a2dc150a90a30c53316970df2a439d494
6470 * scd/ccid-driver.c (intr_cb): Handle the case of multiple messages.
6472 2020-09-22 Werner Koch <wk@gnupg.org>
6474 gpg: Set the found-by flags in the keyblock in keyboxd mode.
6475 + commit 183509756179fadd95d1cc740047b94dc16bb279
6476 * g10/keydb-private.h (struct keydb_handle_s): Add fields to return
6477 the ordinals of the last found blob.
6478 * g10/call-keyboxd.c (keydb_get_keyblock): Pass them to the keyblock
6481 sm: Fix returning of the ephemeral flag in keyboxd mode.
6482 + commit b810320b1bf76209dc1087cb91ca34232d9268c3
6483 * sm/keydb.c (search_status_cb): Skip over the ubid.
6485 common: Fix name of keyboxd.
6486 + commit c81a7b09368a474de4e3572fbb527d1597408ab1
6487 * common/homedir.c (gnupg_module_name): Fix name.
6489 keyboxd: Extend PUBKEY_INFO status line with an uid ordinal.
6490 + commit 0e892bda4e0bf9db9116d7d5585d4e7b0d2eae57
6491 * kbx/backend-sqlite.c (table_definitions): Add column UINO to
6493 (be_sqlite_local_s): Add fields select_col_uidno and
6495 (run_select_statement): Also select subkey or uidno column.
6496 (be_sqlite_search): Return their values.
6497 (store_into_userid): Store the UIDNO.
6498 * kbx/backend-support.c (be_return_pubkey): Extend PUBKEY_INFO.
6500 kbx: Add bounds check to detect corrupt keyboxes.
6501 + commit e0a312bfd646485ae8a0ae5e26720fc1667c5490
6502 * kbx/keybox-dump.c (_keybox_dump_blob): Fix the fixmes.
6504 2020-09-21 Werner Koch <wk@gnupg.org>
6506 scd: Extend KEYPAIRINFO with an algorithm string.
6507 + commit 26da47ae53d51e16ae6867cd419ddbf124a94933
6508 * scd/app-openpgp.c (send_keypair_info): Emit the algo string as part
6510 * scd/command.c (do_readkey): Ditto.
6511 * scd/app-piv.c (do_readkey): Ditto.
6512 * scd/app-nks.c (do_learn_status_core): Ditto.
6513 (struct fid_cache_s): Add field algostr.
6514 (flush_fid_cache): Release it.
6515 (keygripstr_from_pk_file): Fill it and add it to the cache. Use a
6517 * scd/app-help.c (app_help_get_keygrip_string_pk): Add new arg
6518 r_algostr. Change all callers.
6520 sm: Implement delete key in keyboxd mode.
6521 + commit c772770574ea2d337f8745ff304b1b8acd8a2e4c
6522 * sm/keydb.c (keydb_delete): Implement keyboxd mode.
6523 (keydb_update_cert): Disable unused function.
6524 * kbx/backend-sqlite.c (be_sqlite_delete): Delete from issuer.
6526 2020-09-18 NIIBE Yutaka <gniibe@fsij.org>
6528 agent: Fix regression for access through the extra secket.
6529 + commit 8a84a71f3a58a3e943f238b70743cd6408477eba
6530 * agent/command.c (cmd_keyinfo): Allow KEYINFO command for one key.
6531 (cmd_scd): Allow SCD command to invoke GETINFO, GETATTR, and
6532 KEYINFO --list=encr sub commands.
6534 common,agent,dirmngr,g10,tools: Fix split_fields API.
6535 + commit dfdcf14738976c6b236f4fa1c3b68af351024b3c
6536 * common/stringhelp.h (split_fields): Use const * for the strings in
6538 (split_fields_colon): Likewise.
6539 * common/stringhelp.c (split_fields, split_fields_colon): Fix
6541 * agent/call-scd.c, agent/command.c: Follow the change.
6542 * common/t-stringhelp.c, dirmngr/loadswdb.c: Likewise.
6543 * g10/call-agent.c, tools/card-call-scd.c: Likewise.
6544 * tools/card-yubikey.c, tools/gpg-card.c: Likewise.
6545 * tools/gpg-card.h, tools/gpg-wks-client.c: Likewise.
6546 * tools/gpgconf-comp.c, tools/gpgconf.c: Likewise.
6547 * tools/wks-util.c: Likewise.
6549 2020-09-16 NIIBE Yutaka <gniibe@fsij.org>
6551 scd: Clear PIN cache when changing key attributes.
6552 + commit 8ff36630277f05fbe4e43c7d757eb90da8645e3f
6553 * scd/app-openpgp.c (change_keyattr): Clear all PINs.
6555 scd: Clear caching PIN at KDF setup.
6556 + commit f4c07fc3d3c32e96d4306f6daa60b6de7fba7dc5
6557 * scd/app-openpgp.c (do_setattr): Clear PINs.
6559 scd: Add better support for KDF feature.
6560 + commit 316a8cbc7523560d999e46eb524165db11682210
6561 * scd/app-openpgp.c (do_setattr): Handle kdf-seup "off" for Gnuk.
6563 gpg,scd: Fix handling of KDF feature.
6564 + commit 8dfd0ebfd8cf2b6bcecbd91c8f7fad6db583aa5a
6565 * g10/card-util.c (kdf_setup): Fix the default value.
6566 * scd/app-openpgp.c (do_setattr): Support kdf-setup "off" by
6567 Zeitcontrol. Make sure Gnuk and Yubikey work well.
6569 2020-09-15 NIIBE Yutaka <gniibe@fsij.org>
6571 scd: Fix the use case of verify_chv2 by CHECKPIN.
6572 + commit 6e51f2044aebb885ea81dae259db1b7f477b1c44
6573 * scd/app-openpgp.c (verify_chv2): Call verify_a_chv with chvno=1
6576 2020-09-11 Werner Koch <wk@gnupg.org>
6578 scd:piv: Avoid conflict when writing a cert.
6579 + commit fbc1b199fdc8fd9a4ab422f005b4eb521b594c5c
6580 * scd/app-piv.c (map_curve_name_to_oid): New.
6581 (my_cmp_public_key): New.
6582 (do_writecert): Replace simple memcmp by cmp_canon_sexp.
6584 common: New function cmp_canon_sexp.
6585 + commit b6ba6a79ce9336f1b53f16f3d1190dd009fb166e
6586 * common/sexputil.c (cmp_canon_sexp): New.
6587 (cmp_canon_sexp_def_tcmp): New.
6588 * common/t-sexputil.c (test_cmp_canon_sexp): Add a simple test.
6590 keyboxd: Implement lookup by short and long keyid.
6591 + commit 9a94db1f662a1c5973b57b25e25aeab1bc33250e
6592 * kbx/backend-sqlite.c: Change definition of column KID.
6593 (kid_from_mem): Remove.
6594 (kid_from_u32): Rewrite.
6595 (run_sql_bind_int64): Remove.
6596 (run_select_statement): Implement lookup by short keyid. Fix lookup
6598 (store_into_fingerprint): Adjust kid arg.
6600 keyboxd: Add ephemeral and revoked flag to the sqlite backend.
6601 + commit 616c60d93dfab27dde00e1489c6c51340ec93b6c
6602 * kbx/backend-support.c (be_return_pubkey): Add args is_ephemeral and
6603 is_revoked. Adjust callers.
6604 * kbx/backend-sqlite.c: Alter table pubkey to add new columns.
6605 (run_select_statement): Add new column to all selects.
6606 (be_sqlite_search): Return the new flags.
6608 2020-09-10 Andre Heinecke <aheinecke@gnupg.org>
6610 doc: Update and extend module overview.
6611 + commit d62797ebcc15ffac52664fe08759d18a92491ddc
6612 * doc/gnupg-module-overview.svg: Add examples of GPGME aware
6615 2020-09-10 Werner Koch <wk@gnupg.org>
6617 sm: Implement initial support for keyboxd.
6618 + commit ed6ebb696e4063dc664d7ee74fc492025881c459
6619 * sm/gpgsm.h (MAX_FINGERPRINT_LEN): New.
6620 * sm/keydb.c (struct keydb_local_s): Change definition of
6622 (keydb_get_cert): Implement keyboxd mode.
6623 (keydb_get_flags): Temporary hack for keyboxd mode. Needs to be
6625 (struct store_parm_s, store_inq_cb): New.
6626 (keydb_insert_cert): Implement keyboxd mode.
6627 (keydb_locate_writable): Make static.
6628 (keydb_search_reset): Implement keyboxd mode.
6629 (search_status_cb): New.
6630 (keydb_search): Implement keyboxd mode. Replace return code -1 by
6632 (keydb_set_cert_flags): Replace return code -1 by GPG_ERR_NOT_FOUND.
6633 * sm/keylist.c (list_cert_colon): Adjust for replacement of -1 by
6635 (list_internal_keys): Ditto.
6636 * sm/sign.c (add_certificate_list): Ditto.
6637 * sm/certchain.c (find_up_search_by_keyid): Ditto.
6638 (find_up_external, find_up, find_up_dirmngr): Ditto.
6639 (gpgsm_walk_cert_chain): Ditto.
6640 (get_regtp_ca_info): Ditto.
6641 * sm/certlist.c (gpgsm_add_to_certlist): Ditto.
6642 (gpgsm_find_cert): Ditto.
6643 * sm/delete.c (delete_one): Ditto.
6644 * sm/export.c (gpgsm_export): Ditto.
6645 (gpgsm_p12_export): Ditto.
6646 * sm/import.c (gpgsm_import_files): Ditto.
6648 keyboxd: Add basic support for X.509.
6649 + commit c9677d416e6ff190c589af35b514a01a787085fb
6650 * kbx/keybox-blob.c (x509_email_kludge): Rename to ...
6651 (_keybox_x509_email_kludge): this and make global.
6652 * kbx/backend.h: Include ksba.h.
6653 * kbx/backend-support.c (be_get_x509_serial): New.
6654 (be_get_x509_keygrip): New.
6655 * kbx/backend-sqlite.c (table_definitions): New table 'issuers'.
6656 (run_select_statement): Implements modes ISSUER, ISSUER_SN, SUBJECT.
6657 (store_into_userid): Add arg override_mbox.
6658 (store_into_issuer): New.
6659 (be_sqlite_store): Implement x509 part.
6661 keyboxd: Use D-lines instead of a separate thread.
6662 + commit 6fcc263c182fc49d9ba2d1bd7649b4af1e9f3e3a
6663 * kbx/kbx-client-util.c (kbx_client_data_new): Add arg 'dlines'.
6664 * g10/call-keyboxd.c (open_context): Set DLINES to true.
6665 * sm/keydb.c (open_context): Ditto.
6667 keyboxd: Add options --openpgp and --x509 to SEARCH.
6668 + commit 29977e21d18188e16e50fee95a95e05fdbd97caf
6669 * kbx/keyboxd.h (struct server_control_s): Replace the two request
6670 objects by just one. Add filter flags.
6671 * kbx/kbxserver.c (cmd_search): Add options --openpgp and --x509.
6672 (cmd_killkeyboxd): Do not return GPG_ERR_EOF.
6673 * kbx/frontend.c (kbxd_release_session_info): Adjust for the new
6675 (kbxd_search, kbxd_store, kbxd_delete): Ditto.
6676 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add filter flags.
6677 (run_sql_prepare): Add optional arg 'extra'. Change callers.
6678 (run_sql_bind_ntext): New.
6679 (run_sql_bind_text): Just call run_sql_bind_ntext.
6680 (run_select_statement): Add ctrl arg. Implement the filter flags.
6682 * g10/call-keyboxd.c (keydb_search): Use the --openpgp option.
6684 gpg-connect-agent: Catch signals so that SIGPIPE is ignored.
6685 + commit 3cf9bb4d73cfe78d3d48734e7c8a65d9a98112a5
6686 * dirmngr/server.c (cmd_killdirmngr): Return 0.
6687 * tools/gpg-connect-agent.c (main): Catch signals.
6689 dirmngr: Fix the pool keyserver case for a single host in the pool.
6690 + commit 5a87011c46b5b01659c3cbc3c7a04da94ae5ca9e
6691 * dirmngr/ks-engine-hkp.c (map_host): Set R_HOSTNAME also for
6692 localhost and if there is no pool.
6694 dirmngr: Align the gnutls use of CAs with the ntbtls code.
6695 + commit faabc49797df43c4904b6230f83e8c6677e88b22
6696 * dirmngr/http.c (http_session_new) <gnutls>: Use only the special
6697 pool certificate for the default keyserver.
6699 2020-09-10 NIIBE Yutaka <gniibe@fsij.org>
6701 scd: Flush KDF DO (0x00F9) when it's being set.
6702 + commit d4cb774ddd8830836c9c87a90db01f749ac8d67c
6703 * scd/app-openpgp.c (do_setattr): Call flush_cache_item always.
6705 2020-09-09 Werner Koch <wk@gnupg.org>
6707 agent: Keep some permissions of private-keys-v1.d.
6708 + commit 8ed85ef3de9cdeee86e281a8b46be1bd49a36e7a
6709 * common/sysutils.c (modestr_to_mode): Re-implement.
6710 (gnupg_chmod): Support keeping of permissions.
6712 kbx: Change X.509 S/N search definition.
6713 + commit adec6a84f6ee176764391da358ae150f92b1f1e4
6714 * kbx/keybox-search-desc.h (struct keydb_search_desc): Do not overload
6715 SNLLEN with a hex flag. Add SNHEX.
6716 * kbx/keybox-search.c (keybox_search): Adjust.
6717 * common/userids.c (classify_user_id): Adjust.
6718 * sm/keydb.c (keydb_search_desc_dump): Adjust.
6719 * g10/keydb.c (keydb_search_desc_dump): Adjust.
6721 2020-09-08 NIIBE Yutaka <gniibe@fsij.org>
6723 gpg,tools: Add handling of supported algorithms by a card.
6724 + commit 2bc1ec294422504e2d2e5d20716aba68f1c2b0d7
6725 * g10/call-agent.h (struct agent_card_info_s): Add supported_keyalgo.
6726 * g10/call-agent.c (learn_status_cb): Parse KEY-ATTR-INFO.
6727 (agent_release_card_info): Release supported_keyalgo.
6728 * tools/gpg-card.h (struct card_info_s): Add supported_keyalgo.
6729 * tools/card-call-scd.c (learn_status_cb): Parse KEY-ATTR-INFO.
6730 (release_card_info): Release supported_keyalgo.
6732 scd: Add a workaround for Yubikey.
6733 + commit 0db9c83555b4a8a0c52f96e96ec20dbfd3d75272
6734 * scd/app-openpgp.c (get_public_key): Handle wrong code for Yubikey.
6736 2020-09-07 NIIBE Yutaka <gniibe@fsij.org>
6738 scd: Fix handling 0x00FA to support OpenPGP card 3.4.
6739 + commit 270c49b8c6eaf99df7b417f9d0e45eba0acfb423
6740 * scd/app-openpgp.c (data_objects): It may be longer.
6742 2020-09-04 Werner Koch <wk@gnupg.org>
6744 gpg: Initialize a parameter to silence valgrind.
6745 + commit 65eb1569809a3c42e8afb064f6194fac2e34a03a
6746 * g10/keygen.c (read_parameter_file): Initialize nline.
6747 * g10/textfilter.c (copy_clearsig_text): Initialize bufsize.
6749 2020-09-04 NIIBE Yutaka <gniibe@fsij.org>
6751 scd: Support GET DATA response with no header for DO 0x00FA.
6752 + commit 43bbc25b0f57dec24412886ff46041e0b1f3de26
6753 * scd/app-openpgp.c (do_getattr): Support Gnuk, as well.
6755 scd: Parse "Algorithm Information" data object in scdaemon.
6756 + commit eba2563dabbb4f61537900289fbe3ae113904733
6757 * scd/app-openpgp.c (data_objects): 0x00FA for binary data.
6758 (do_getattr): Parse the data and send it in status lines.
6759 (get_algorithm_attribute_string): New.
6761 2020-09-03 Werner Koch <wk@gnupg.org>
6763 sm: New options to prepare the use of keyboxd.
6764 + commit 046f419f806036248c058c4bd44368f8596287b7
6765 * sm/Makefile.am (AM_CFLAGS): Add npth flags.
6766 (common_libs): Use npth version of the lib.
6767 (gpgsm_LDADD): Add npth libs.
6768 * sm/gpgsm.c (oUseKeyboxd, oKeyboxdProgram): New.
6769 (opts): New options --use-keyboxd and --keyboxd-program.
6771 (gpgsm_deinit_default_ctrl): New.
6773 * sm/server.c (gpgsm_server): Ditto.
6774 * sm/gpgsm.h (opt): Add fields use_keyboxd and keyboxd_program.
6775 (keydb_local_s): New type.
6776 (struct server_control_s): Add field keybd_local.
6777 * sm/keydb.c: Include assuan.h, asshelp.h, and kbx-client-util.h.
6778 (struct keydb_local_s): New.
6779 (struct keydb_handle): Add fields for keyboxd use.
6780 (gpgsm_keydb_deinit_session_data): New.
6781 (warn_version_mismatch): New.
6782 (create_new_context): New.
6783 (open_context): New.
6784 (keydb_new): Implement keyboxd mode.
6785 (keydb_release): Ditto.
6786 (keydb_get_resource_name): Ditto.
6788 * sm/keydb.c: Add stub support for all other functions.
6790 sm: Add arg ctrl to keydb_new.
6791 + commit a7d006293ec84532cc1972cd2f990198eadf1a1a
6792 * sm/keydb.c (keydb_new): Add arg and change all callers.
6794 2020-09-03 NIIBE Yutaka <gniibe@fsij.org>
6796 scd: Add handling of "Algorithm Information" DO.
6797 + commit 90d0072165cc5c6888f14462392a211de0c4b232
6798 * cd/app-openpgp.c (data_objects): Add 0x00FA.
6799 (do_getattr): Add KEY-ATTR-INFO.
6801 2020-09-02 Werner Koch <wk@gnupg.org>
6803 gpg: Fix segv importing certain keys.
6804 + commit 8ec9573e57866dda5efb4677d4454161517484bc
6805 * g10/key-check.c (key_check_all_keysigs): Initialize issuer.
6807 keyboxd: Restructure client access code.
6808 + commit 497db0b5bcd688c4e2144ba167bd2ac485069d1b
6809 * kbx/kbx-client-util.c: New.
6810 * kbx/kbx-client-util.h: New.
6811 * kbx/Makefile.am (client_sources): New.
6812 * g10/keydb.c (parse_keyblock_image): Rename to keydb_parse_keyblock
6814 * g10/call-keyboxd.c: Include kbx-client-util.h.
6815 (struct keyboxd_local_s): Remove struct datastream. Add field kcd.
6816 Remove per_session_init_done.
6817 (lock_datastream, unlock_datastream): Remove.
6818 (prepare_data_pipe, datastream_thread): Remove.
6819 (keydb_get_keyblock_do_parse): Remove.
6820 (gpg_keyboxd_deinit_session_data): Release the KCD object.
6821 (open_context): Use of kbx_client_data_new.
6822 (keydb_get_keyblock): Simplify.
6823 (keydb_search): Use kbx_client_data_cmd and _wait.
6825 keyboxd: Fix user id based queries.
6826 + commit 4d839f5a8083e1ddd4767c838f56a4079f846c6d
6827 * kbx/backend-sqlite.c (run_select_statement): Add the missing join
6828 for user id bases queries.
6830 common: New helper function gnupg_close_pipe.
6831 + commit 2042f5a4641f4e43137b7683077b4d733d216417
6832 * common/exechelp-posix.c (gnupg_close_pipe): New.
6833 * common/exechelp-w32.c (gnupg_close_pipe): New.
6835 2020-09-01 Werner Koch <wk@gnupg.org>
6837 Use only one copy of the warn_server_mismatch function.
6838 + commit 2cd8bae23d7382588cf096df3eed83e02331a2bf
6839 * common/asshelp.c (warn_server_version_mismatch): New. Actually a
6840 slightly modified version of warn_version_mismatch found in other
6842 * common/status.c (gnupg_status_strings): New.
6843 * g10/cpr.c (write_status_strings2): New.
6844 * g10/call-agent.c (warn_version_mismatch): Use the new unified
6845 warn_server_version_mismatch function.
6846 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
6847 * g10/call-keyboxd.c (warn_version_mismatch): Ditto.
6848 * sm/call-agent.c (warn_version_mismatch): Ditto.
6849 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
6850 * tools/card-call-scd.c (warn_version_mismatch): Ditto.
6852 2020-08-28 Werner Koch <wk@gnupg.org>
6854 sm: Fix a bug in the rfc2253 parser.
6855 + commit 16c1d8a14e98894408f30349cab68ff17ef6b35e
6856 * sm/certdump.c (parse_dn_part): Fix parser flaw.
6858 2020-08-28 NIIBE Yutaka <gniibe@fsij.org>
6860 common: Fix fallback handling to utf-8.
6861 + commit 393dcdd61c3b2da00a97176c647d9bd1c908ceba
6862 * common/utf8conv.c (handle_iconv_error): Set NO_TRANSLATION.
6864 2020-08-27 Werner Koch <wk@gnupg.org>
6866 scd: New option to APDU command to return the ATR as data.
6867 + commit a0a4744bd0640e587b33ec3dae819ec4054f0472
6868 * scd/command.c (cmd_apdu): Add new option --data-atr.
6869 * tools/gpg-card.c (cmd_apdu): Use that here. Also fix the --exlen
6870 option and do not print the statusword in atr mode.
6871 * tools/card-call-scd.c (scd_apdu): Detect atr mode anddon't assume a
6874 scd: Fix reading of the ATR for card type detection.
6875 + commit 95b5a852e269e602ade6a07ed468e9072c247b8c
6876 * scd/app.c (app_new_register): Do not use apdu_get_slot.
6878 dirmngr: Print the last alert message returned by NTBTLS.
6879 + commit 05358d73841149f64dc5d620f4b8855255e7f4da
6880 * dirmngr/http.c (send_request): Print the last TLS alert.
6882 2020-08-27 NIIBE Yutaka <gniibe@fsij.org>
6884 scd: Add heuristics to identify cardtype.
6885 + commit 9f148360a2bf04672b43ef7cec48e21d44b06ae1
6886 * scd/app-common.h (cardtype_t): Add CARDTYPE_GNUK and
6887 CARDTYPE_ZEITCONTROL.
6888 * scd/app.c (strcardtype): Handle CARDTYPE_GNUK and
6889 CARDTYPE_ZEITCONTROL.
6890 (app_new_register): Detect Gnuk and Zeit Control implementation
6891 by examining its ATR string.
6893 scd: Add condition for VERIFY with 0x82.
6894 + commit af189be481df02a77e088aa0a60a1fc02dfa12bf
6895 * scd/app-openpgp.c (verify_chv2): Check availability of keys in
6898 2020-08-26 Werner Koch <wk@gnupg.org>
6900 build: Silence gcc warning -Wformat-zero-length.
6901 + commit 90a87d96eaf5b97cd53cb0ee0495b646be7b84bb
6902 * configure.ac: Avoid useless gcc warning. We use an empty string
6903 quite often, for example in log_printhex.
6905 2020-08-25 Werner Koch <wk@gnupg.org>
6907 gpg: Remove left over debug output from recent change.
6908 + commit fc1a1857551c05135d54e2e620e609fda59d5bca
6909 * g10/import.c (collapse_subkeys): Remove debug out.
6911 examples: Simplify vsnfd.prf.
6912 + commit 40acc5ef3ef73494e67d88ea310503e5bf08bc36
6913 * doc/examples/vsnfd.prf: Remove default-new-key-algo option.
6915 sm: Do not require a default keyring for --gpgconf-list.
6916 + commit e7677da479c4fb5abd0339de807b27c0f487d2e0
6917 * sm/gpgsm.c (main): No default keyring for gpgconf mode.
6919 gpgconf: Silence warnings from parsing the options files.
6920 + commit ad1254b59d41e127879fc9f495d392316135b4a5
6921 * tools/gpgconf-comp.c (retrieve_options_from_program): Set verbose
6922 flag for the arg parser only in --verbose mode.
6924 agent: Allow using --gogconf-list even if HOME does not exist.
6925 + commit b17846e4fd02f65b24ada306855fb110c56c5e73
6926 * agent/gpg-agent.c (main): Do not create directories in gpgconf mode.
6928 gpgconf,w32: New debug command --show-codepages.
6929 + commit 32021dfa5bcaa056c18e4ec40fdcd0f8b7de382b
6930 * tools/gpgconf.c (aShowCodepages): New.
6931 (opts): New command --show-codepages.
6932 (main) [W32]: Implement
6934 gpg: Collapse duplicate subkeys.
6935 + commit 633c1fea5f0dc4cb270c22ee41c24e1ec0706204
6936 * g10/options.h (IMPORT_COLLAPSE_UIDS): New.
6937 (IMPORT_COLLAPSE_SUBKEYS): New.
6938 * g10/gpg.c (main): Make them the default.
6939 * g10/import.c (parse_import_options): New import options
6940 "no-collapse-uids" and "no-collapse_subkeys".
6941 (collapse_subkeys): New.
6942 (import_one_real): Collapse subkeys and allow disabling the collapsing
6943 using the new options.
6944 (read_key_from_file_or_buffer): Always collapse subkeys.
6945 * g10/keyedit.c (fix_keyblock): Call collapse_subkeys.
6947 2020-08-21 Werner Koch <wk@gnupg.org>
6949 gpgtar,w32: Handle Unicode file names.
6950 + commit 34e7703a962809921e83770f20f3eb66599265d1
6951 * tools/gpgtar.c (oUtf8Strings): New.
6952 (opts): Add option --utf8-strings.
6953 (parse_arguments): Set option.
6954 * tools/gpgtar.h (opt): Add field utf8strings.
6955 * tools/gpgtar-create.c (name_to_utf8): New.
6956 (fillup_entry_w32): Use that.
6957 (scan_directory): Ditto.
6958 (scan_directory) [W32]: Convert file name to utf8.
6959 (gpgtar_create): Convert pattern.
6961 common: Use gpgrt functions for mkdir and chdir.
6962 + commit eec70e539e44c288068f26f190d52a5718fd3a10
6963 * common/sysutils.c (gnupg_mkdir): Divert to gpgrt_mkdir.
6964 (gnupg_chdir): Divert to gpgrt_chdir
6966 common,w32: Do not assume the ANSI code during string conversion.
6967 + commit 5305ce17ff7a68ecc88c5ae8c4bec5897df6322f
6968 * common/utf8conv.c (get_w32_codepage): New.
6969 (wchar_to_native): Use instead oc CP_ACP.
6970 (native_to_wchar): Ditto.
6972 common: Strip trailing CR,LF from w32_strerror.
6973 + commit 33fd55ca6f3efc50c260469179788e9f725ddc58
6974 * common/stringhelp.c (w32_strerror): Strip trailing CR,LF.
6975 * common/iobuf.c (iobuf_get_filelength): Use -1 and not 0 for the
6976 arg to w32_strerror.
6978 2020-08-20 Werner Koch <wk@gnupg.org>
6980 gpgtar: Make --files-from and --null work as described.
6981 + commit e276f63e4a80e8d1cb1ba5621cedaeb0ccda956d
6982 * tools/gpgtar-create.c (gpgtar_create): Add args files_from and
6983 null_names. Improve reading from a file.
6984 * tools/gpgtar.c: Make global vars static.
6985 (main): Remove tests for --files-from and --null option combinations.
6986 Pass option variables to gpgtar_create.
6988 build: New configure option --disable-tests.
6989 + commit 32aac55875f324f8c3d85dad8483604eae65e3e8
6990 * configure.ac: Add option --disable-tests. Print warnings in the
6992 (DISABLE_TESTS): New am_conditional.
6994 gpg: Fix regression for non-default --passphrase-repeat option.
6995 + commit b8c4dd902df34faa4d23efb2bb4ac222c8bbdbdb
6996 * agent/command.c (cmd_get_passphrase): Take care of --repeat with
6999 2020-08-19 Werner Koch <wk@gnupg.org>
7001 gpg,gpgsm: Record the creation time of a private key.
7002 + commit 4031c42bfd0135874a5b362df175de93a19f1b51
7003 * sm/call-agent.c (gpgsm_agent_genkey): Pass --timestamp option.
7004 (gpgsm_agent_import_key): Ditto.
7005 * g10/call-agent.c (agent_genkey): Add arg timestamp and pass it on.
7006 (agent_import_key): Ditto.
7007 * g10/import.c (transfer_secret_keys): Pass the creation date to the
7009 * g10/keygen.c (common_gen): Ditto.
7011 2020-08-19 NIIBE Yutaka <gniibe@fsij.org>
7013 gpg: Fix condition of string_to_aead_algo.
7014 + commit 1d66b518ca83e8d315283682b1e504f1e171a0b1
7015 * g10/misc.c (string_to_aead_algo): Only compare if not NULL.
7017 dns: Fix memory use-after-free.
7018 + commit cc0d53905ce9306b51bace2682ae3d1d122c7881
7019 * dirmngr/dns.c (dns_res_stub): Fix RESCONF usage.
7021 common: Fix iobuf.c.
7022 + commit f58d441bee7e93e6344f833acc1412b3be2f6818
7023 * common/iobuf.c (iobuf_cancel): Initialize DUMMY.
7024 (do_iobuf_fdopen): Initialize LEN.
7025 (iobuf_read_line): Fix the loop condition.
7027 Silence compiler warnings.
7028 + commit f3e424d4e7273e60e69747ca4936149af7b6482a
7029 * common/openpgp-oid.c (map_openpgp_pk_to_gcry): Use cast for enum
7031 * dirmngr/dns-stuff.c (get_dns_srv): Use explicit conversion from
7033 * sm/gpgsm.c (parse_keyserver_line): Initialize ERR.
7035 scd: Fix possible uninitialized variables.
7036 + commit 4fa0a65676a29cb53ee242caf13c393f7573c9a3
7037 * scd/app-openpgp.c (do_change_pin): Initialize resultlen2.
7038 (do_change_pin): Don't call wipe_and_free on the error path.
7039 Initialize bufferlen2.
7041 2020-08-17 Werner Koch <wk@gnupg.org>
7043 agent: Allow to pass a timestamp to genkey and import.
7044 + commit 0da923a1240ac78d60c92cdd8488c4e405c3243b
7045 * agent/command.c (cmd_genkey): Add option --timestamp.
7046 (cmd_import_key): Ditto.
7047 * agent/genkey.c (store_key): Add arg timestamp and change callers.
7048 (agent_genkey): Ditto.
7049 * agent/findkey.c (write_extended_private_key): Add args timestamp and
7050 new key to write a Created line.
7051 (agent_write_private_key): Add arg timestamp.
7052 (agent_write_shadow_key): Ditto.
7053 agent/protect-tool.c (agent_write_private_key): Ditto as dummy arg.
7055 2020-08-14 Werner Koch <wk@gnupg.org>
7057 Add --chuid to gpg, gpg-card, and gpg-connect-agent.
7058 + commit 6bcb609e1b2a507caa2e1a078178709d808b590b
7059 * g10/gpg.c (oChUid): New.
7060 (opts): Add --chuid.
7061 (main): Implement --chuid. Delay setting of homedir until the new
7063 * sm/gpgsm.c (main): Delay setting of homedir until the new chuid is
7065 * tools/gpg-card.c (oChUid): New.
7066 (opts): Add --chuid.
7067 (changeuser): New helper var.
7068 (main): Implement --chuid.
7069 * tools/gpg-connect-agent.c (oChUid): New.
7070 (opts): Add --chuid.
7071 (main): Implement --chuid.
7073 2020-08-13 Werner Koch <wk@gnupg.org>
7075 gpg: Ignore personal_digest_prefs for ECDSA keys.
7076 + commit 53d84f98157070f24dc861f1a75980474d074ddb
7077 * g10/sign.c (hash_for): Simplify hash algo selection for ECDSA.
7079 2020-08-12 Werner Koch <wk@gnupg.org>
7081 scd: Log info about CCIDs with permission problems.
7082 + commit 2af884c64354182b1903d7a77df07e877f5ed7ba
7083 * scd/apdu.c (open_ccid_reader): Add arg r_cciderr.
7084 (apdu_open_reader): Print a note on EPERM of the USB device.
7086 scd: Map some error codes from libusb to ccid-driver error codes.
7087 + commit 9a8d7e41bba1926158a21ebdda542241493ef983
7088 * scd/ccid-driver.h (CCID_DRIVER_ERR_USB_*): New error codes.
7089 * scd/apdu.h: New SW_HOST error codes.
7090 * scd/apdu.c (host_sw_string): Print them
7091 * scd/ccid-driver.c (map_libusb_error): New.
7092 (ccid_open_usb_reader, bulk_in, abort_cmd): Map libusb error codes.
7093 * scd/iso7816.c (map_sw): Map new codes to gpg-error.
7095 common: Pass the WAYLAND_DISPLAY envvar along.
7096 + commit 3944430ffeaa032719fd82f8eaa118b3f326b8ed
7097 * common/session-env.c (stdenvnames): Add WAYLAND_DISPLAY.
7099 2020-08-10 Werner Koch <wk@gnupg.org>
7101 scd:piv: Allow signing using PSS.
7102 + commit cbf203801e021e0f4d4143ecc92296ae7d0f0dd7
7103 * scd/app-piv.c (do_sign): Allow for PSS.
7105 agent: Add option --pss to pksign to be used by smartcards.
7106 + commit bb096905b9ee1f5175efee1ab6c98045a26a2678
7107 * agent/command.c (cmd_sethash): Add option --pss and allow for
7109 * agent/agent.h (struct server_control_s): Add digest.is_pss and
7111 * agent/pksign.c (agent_pksign_do): Allow for PSS with cards.
7112 * scd/command.c (cmd_pksign): Add for --hash=none.
7114 2020-08-07 NIIBE Yutaka <gniibe@fsij.org>
7116 gpg: Fix trustdb for v5key.
7117 + commit 373c975859a55f942276d6078f27ee33570bf2d5
7118 * g10/keydb.h (fpr20_from_pk): New.
7119 * g10/keyid.c (fpr20_from_pk): New.
7120 * g10/tdbio.c (tdbio_search_trust_byfpr): Use fpr20_from_pk.
7121 * g10/trustdb.c (keyid_from_fpr20): New.
7122 (verify_own_keys): Use keyid_from_fpr20.
7123 (tdb_update_ownertrust): Use fpr20_from_pk.
7124 (update_min_ownertrust): Likewise.
7125 (update_validity): Likewise.
7127 gpg: Fix short key ID for v5key.
7128 + commit 20982bbd7539d2032f4d6249a2654c245445521d
7129 * g10/keyid.c (keyid_from_pk): Return keyid[0] for v5key.
7130 * g10/keyring.c (keyring_search): Handle short key ID for v5key.
7132 2020-08-06 Werner Koch <wk@gnupg.org>
7134 gpgsm: New option --chuid.
7135 + commit 646a30fd394a739ef653556b1a7b2eeebda95951
7136 * sm/gpgsm.c (oChUid, opts): New option --chuid.
7137 (main): Implement option.
7139 gpgconf: New option --chuid.
7140 + commit d10f45184c4482036c41f4818c84c0725a0c2c94
7141 * tools/gpgconf.c (oChUid, opts): New option --chuid.
7144 common: New helper function gnupg_chuid.
7145 + commit 8ff00ef0de871ca43076b00df4871c3165ced001
7146 * common/sysutils.c (try_set_envvar): New.
7149 2020-08-06 NIIBE Yutaka <gniibe@fsij.org>
7151 kbx: Support v5key for short kid and long kid.
7152 + commit df531848a9618131921d584baba81c128f94de68
7153 * kbx/keybox-search.c (has_short_kid): Support v5key.
7154 (has_long_kid): Likewise.
7156 2020-08-05 Werner Koch <wk@gnupg.org>
7158 gpg: Add level 16 to --gen-random.
7159 + commit d847f0651ab4304129145b55353501636b4e4728
7160 * g10/gpg.c (main): Add that hack.
7162 2020-08-04 Werner Koch <wk@gnupg.org>
7164 sm: Also show the SHA-256 fingerprint.
7165 + commit e7d70923901eeb6a2c26445aee9db7e78f6f7f3a
7166 * sm/keylist.c (list_cert_colon): Emit a new "fp2" record.
7167 (list_cert_raw): Print the SHA2 fingerprint.
7168 (list_cert_std): Ditto.
7170 2020-08-03 NIIBE Yutaka <gniibe@fsij.org>
7172 w32: Fix cast from intptr_t of _get_osfhandle.
7173 + commit 8e04cf969e95ccaa31bbaa7333938af1ea7476c6
7174 * common/exectool.c (gnupg_exec_tool_stream): Cast to unsigned long.
7176 2020-07-31 NIIBE Yutaka <gniibe@fsij.org>
7178 agent: Fix coercion for pinentry_pid handling.
7179 + commit da3a4c54a8ce8a7dc442c70bda9b7eda22d43e57
7180 * agent/call-pinentry.c (start_pinentry): Don't use pid_t.
7182 scd: Silence compiler warning.
7183 + commit 2a34a2afea5fcb5f4ed206afa110650db3dd7ef0
7184 * scd/app-openpgp.c (build_ecc_privkey_template): Fix allocation size.
7186 2020-07-30 NIIBE Yutaka <gniibe@fsij.org>
7188 w32: Add NETLIBS for sm/t-minip12.
7189 + commit c1f81eb9fc2544a417ebc2ce19b04541525da684
7190 * sm/Makefile.am (t_minip12_LDADD): Add NETLIBS.
7192 w32: More adding NETLIBS.
7193 + commit 5fa4427419c875e46d051ae6ed376d5ad6037401
7194 * common/Makefile.am (t_common_ldadd): Add $(NETLIBS).
7196 w32: Add link to $(NETLIB) for -lws2_32.
7197 + commit d69f5570ee5e1b099e39fdf64e18add23ff5c815
7198 * dirmngr/Makefile.am (dirmngr_LDADD): Add $(NETLIBS).
7199 * sm/Makefile.am (gpgsm_LDADD): Ditto.
7200 * tools/Makefile.am (gpg_wks_client_LDADD): Ditto.
7202 2020-07-27 NIIBE Yutaka <gniibe@fsij.org>
7204 kbx: Fix short KID and long KID handling for FPR32.
7205 + commit fa4a2bd7a1ba8d4bda5f9cec0826104f50142d4f
7206 * kbx/keybox-search.c (blob_cmp_fpr_part): For FPR32, it's
7207 the first part in the fingerprint.
7209 2020-07-17 NIIBE Yutaka <gniibe@fsij.org>
7211 scd: Fix closing reader and reeleasing context in PC/SC.
7212 + commit daa2cec6a543f06a2e408d97a80a5041027f16a9
7213 * scd/apdu.c (close_pcsc_reader): Unlock the reader_table_lock.
7214 (apdu_dev_list_finish): Release the context when no readers.
7216 Use gpgrt's new option parser for symcryptrun.
7217 + commit f484ac2b2d2ea176db1a70d961a778180147d9b2
7218 * tools/symcryptrun.c: Follow API change of the new option parser.
7220 scd: PC/SC: Don't release the context when it's in use.
7221 + commit 46d185f60397f68830bfdfb99627b29aea5016f1
7222 * scd/apdu.c (close_pcsc_reader): Check if it's not in the loop.
7224 gpg-card: Fix type of historyname.
7225 + commit 43000b0434b47a72608b41d67054ba42db21b699
7226 * tools/gpg-card.c (interactive_loop): Remove const qualifier.
7228 2020-07-16 Werner Koch <wk@gnupg.org>
7230 gpg: Do not close stdout after --export-ssh-key.
7231 + commit 5c514a274ca8ac6be875818237e2e1bbc0c6a2a5
7232 * g10/export.c (export_ssh_key): Do not close stdout.
7234 2020-07-16 NIIBE Yutaka <gniibe@fsij.org>
7236 common: Avoid undefined behavior of left shift operator.
7237 + commit 8abf065307ff4a7ea873fe59f76173bf17dac241
7238 * common/iobuf.c (block_filter): Handle an error earlier.
7239 Make sure it's unsigned.
7241 2020-07-15 NIIBE Yutaka <gniibe@fsij.org>
7243 regexp: Import change from JimTcl.
7244 + commit 91cb46d948db234be1ea8092f5db9e14294f1b79
7245 * regexp/jimregexp.h, regexp/jimregexp.c: Fix from JimTcl.
7247 2020-07-14 Werner Koch <wk@gnupg.org>
7249 agent: Fix regression with --newsymkey in loopback mode.
7250 + commit 0a6af6dc12998ef7b19673ad05d11e82f826de9d
7251 * agent/command.c (cmd_get_passphrase): Never repeat in loopback mode;
7252 same as with !OPT_NEWSYMKEY.
7254 2020-07-13 NIIBE Yutaka <gniibe@fsij.org>
7256 dirmngr: Handle EAFNOSUPPORT at connect_server.
7257 + commit 109d16e8f644da97ed9c00e6f9010a53097f587a
7258 * dirmngr/http.c (connect_server): Skip server with EAFNOSUPPORT.
7260 2020-07-10 NIIBE Yutaka <gniibe@fsij.org>
7262 gpg: For decryption, support use of a key with no 'encrypt' usage.
7263 + commit 31ae0718ba10c3b1b670ba6131b4995de24aa7a1
7264 * g10/pubkey-enc.c (get_session_key): Don't skip at no PUBKEY_USAGE_ENC.
7265 Emit information the key has no 'encrypt' usage.
7267 2020-07-08 Werner Koch <wk@gnupg.org>
7269 Do not use the pinentry's qualitybar.
7270 + commit 999d25d47d45a0f594c84d51c041da0b24d68c5d
7271 * agent/genkey.c (agent_ask_new_passphrase): No qualitybar.
7272 * g10/call-agent.c (agent_get_passphrase): Ditto.
7273 * sm/call-agent.c (gpgsm_agent_ask_passphrase): Ditto.
7275 gpg: Use integrated passphrase repeat entry also for -c.
7276 + commit a6a4bbf6debd925a23c22eea86a562f061fdfe6c
7277 * g10/call-agent.c (agent_get_passphrase): Add arg newsymkey.
7278 * g10/passphrase.c (passphrase_get): Add arg newsymkey.
7279 (passphrase_to_dek): Pass it on.
7281 agent: New option --newsymkey for GET_PASSPHRASE.
7282 + commit eace4bbe1ded8b01f9ad52ebc1871f2fd13c3a08
7283 * agent/call-pinentry.c (agent_get_passphrase): Add arg pininfo.
7284 * agent/genkey.c (check_passphrase_constraints): New arg no_empty.
7285 * agent/command.c (reenter_passphrase_cmp_cb): New.
7286 (cmd_get_passphrase): Add option --newsymkey.
7288 2020-07-07 Werner Koch <wk@gnupg.org>
7290 gpg: Fix flaw in symmetric algorithm selection in mixed mode.
7291 + commit 6864bba78e76a1ff72aec140ae9f4e752454c463
7292 * g10/encrypt.c (setup_symkey): Use default_cipher_algo function
7293 instead of the fallback s2k_cipher_algo. Fix error code.
7294 (encrypt_simple): Use setup_symkey.
7296 2020-07-03 Werner Koch <wk@gnupg.org>
7298 sm: Exclude rsaPSS from de-vs compliance mode.
7299 + commit 969abcf40cdfc65f3ee859c5e62889e1a8ccde91
7300 * common/compliance.h (PK_ALGO_FLAG_RSAPSS): New.
7301 * common/compliance.c (gnupg_pk_is_compliant): Add arg alog_flags and
7302 test rsaPSS. Adjust all callers.
7303 (gnupg_pk_is_allowed): Ditto.
7304 * sm/misc.c (gpgsm_ksba_cms_get_sig_val): New wrapper function.
7305 (gpgsm_get_hash_algo_from_sigval): New.
7306 * sm/certcheck.c (gpgsm_check_cms_signature): Change type of sigval
7307 arg. Add arg pkalgoflags. Use the PK_ALGO_FLAG_RSAPSS.
7308 * sm/verify.c (gpgsm_verify): Use the new wrapper and new fucntion to
7309 also get the algo flags. Pass algo flags along.
7311 2020-07-02 Werner Koch <wk@gnupg.org>
7313 scd:nks: Implement writecert for the Signature card v2.
7314 + commit c1663c690b29d2dea8bc782c42de5eca08a24cc9
7315 * scd/iso7816.c (CMD_UPDATE_BINARY): New.
7316 (iso7816_update_binary): New.
7317 * scd/app-nks.c (do_deinit): Factor some code out to...
7318 (flush_fid_cache): new.
7319 (do_writecert): New.
7320 (app_select_nks): Register new handler.
7322 dirmngr: Silence annoying warning for missing default ldap server file.
7323 + commit f55a05a69ba07eb2ed354a9275e71e94c5e362aa
7324 * dirmngr/dirmngr.c (parse_ldapserver_file): Add arg ignore_enoent.
7325 (main): Use that arg for the default file.
7327 Support a history file in gpg-card and gpg-connect-agent.
7328 + commit d70b8769c888f42896ae3ef4972bf82e9b5a0c32
7329 * common/gpgrlhelp.c (read_write_history): New.
7330 (gnupg_rl_initialize): Register new function.
7331 * common/ttyio.c (my_rl_rw_history): New var.
7332 (tty_private_set_rl_hooks): Add arg read_write_history.
7333 (tty_read_history): New.
7334 (tty_write_history): New.
7335 * tools/gpg-card.c (HISTORYNAME): New.
7336 (oNoHistory): New enum value.
7337 (opts): New option --no-history.
7339 (cmds): New command "history".
7340 (interactive_loop): Read and save the history.
7341 * tools/gpg-connect-agent.c (HISTORYNAME): New.
7342 (opts): New option --no-history.
7343 (main): Read and save the history. New command /history.
7345 2020-06-30 Werner Koch <wk@gnupg.org>
7347 scd:nks: Fix certificate read problem with TCOS signature card v2.
7348 + commit 07aef873ebc77241e9a2be225537319f6fc15a41
7349 * scd/app-nks.c (filelist): Add a dedicated key entry for ESIGN.
7350 (do_readcert): Test for the app_id.
7352 scd: Change how the removed card flag is set.
7353 + commit 58b091df831f61c8d3551114f2480d36e73de2da
7354 * scd/command.c (cmd_serialno): Set/clear card removed flags for all
7355 connections using the current card.
7357 card: Better detect removed cards. Add TCOS PIN menu.
7358 + commit fb10b6cba43f4ed8675093ac25f461de4dacdce9
7359 * tools/card-call-scd.c (scd_change_pin): Add arg 'nullpin'.
7360 * tools/gpg-card.h (struct card_info_s): Add field 'card_removed'.
7361 * tools/gpg-card.c (fixup_scd_errors): New.
7362 (maybe_set_card_removed): New.
7363 (list_one_kinfo): Change type of first arg to get access to INFO. Set
7365 (list_all_kinfo): Improve label alignment.
7366 (cmd_list): Check that the current card is still available.
7367 (cmd_passwd): Add option --nullpin and menu to chnage TCOS PINs.
7368 (dispatch_command): Handle card_removed flag.
7369 (interactive_loop): Ditto.
7371 2020-06-30 NIIBE Yutaka <gniibe@fsij.org>
7373 ecc: Support Ed448/X448 key generation.
7374 + commit 45398518fb76e2b859d2d48cf4cdbc11fbbda4fa
7375 * g10/keygen.c (ask_curve): Support Ed448/X448 keys.
7376 (generate_keypair): Support switch to X448 key.
7378 2020-06-29 Werner Koch <wk@gnupg.org>
7380 scd: Shorten cardio debug output for all zeroes.
7381 + commit 9b6f574928546e6905a92c3e74d72478f1585c66
7382 * scd/apdu.c (all_zero_p): New.
7385 sm: Fix regression in Friday's commit.
7386 + commit 4f1c257c03667497d642930884b65c4f2245adbd
7387 * sm/gpgsm.c (main): Set ERR also for encrypt.
7389 2020-06-26 Werner Koch <wk@gnupg.org>
7391 sm: Try not to output a partial new message after an error.
7392 + commit ccbb0cfeefed096a9841b6557d10eef12d55b721
7393 * sm/gpgsm.c (main) <aSign,aEncr>: Uses gpgrt_fcancel on error.
7395 sm: Print the serial number of a cert also in decimal.
7396 + commit 208a90197317fb9746ecf54a1d14acbeeddfbd18
7397 * sm/certdump.c: Include membuf.h.
7398 (gpgsm_print_serial_decimal): New.
7399 * sm/keylist.c (list_cert_raw): Print s/n also in decimal
7400 (list_cert_std): Ditto.
7402 2020-06-25 Werner Koch <wk@gnupg.org>
7404 scd:nks: Fix remaining tries warning in --reset mode.
7405 + commit 2429e8559844e27de478d7e90834a714b3748834
7406 * scd/app-nks.c (do_change_pin): Chnage computaion of 'remaining'.
7408 card: Add password change menu for NKS cards.
7409 + commit 28c069db3bb5a1065de69bcc0435c8415df87e5b
7410 * tools/gpg-card.c (cmd_passwd): Add menu for NKS. Add option
7413 sm: Fix support verification of nistp521 signatures.
7414 + commit 17a25c14f1ed1199898ad618c17204eafd5524c1
7415 * sm/certcheck.c (do_encode_md): Fix obvious bug.
7417 2020-06-24 James Bottomley <James.Bottomley@HansenPartnership.com>
7418 Werner Koch <wk@gnupg.org>
7420 agent: separate out daemon handling infrastructure for reuse.
7421 + commit f541e1d95a91d4764c7ed0df10c293bfd493dd41
7422 * agent/call-scd.c: Factor re-usable code out to ...
7423 * agent/call-daemon.c: new. Store infos in an array to allow for
7424 other backend daemons.
7425 * agent/Makefile.am (gpg_agent_SOURCES): Add new file.
7426 * agent/agent.h: Include assuan.h.
7427 (enum daemon_type): New.
7428 (opt): Replace scdaemon_program by daemon_program array. Replace
7429 scd_local by a array d_local. Change users accordingly.
7431 2020-06-24 Werner Koch <wk@gnupg.org>
7433 gpgconf: Fix regression in --launch and --kill from March.
7434 + commit 2d8f060679bafed27909a5ad54b7f74a9f8dd51b
7435 * tools/gpgconf.h (gc_component_id_t): Align order with gc_component
7438 2020-06-24 NIIBE Yutaka <gniibe@fsij.org>
7440 gpg,agent: Support Ed448 signing.
7441 + commit a763bb2580b0d586a80b8ccd3654f41e49604f4f
7442 * agent/pksign.c (do_encode_eddsa): First argument is NBITs,
7443 so that it can support Ed448, as well as Ed25519.
7444 (agent_pksign_do): Follow the change.
7445 * agent/sexp-secret.c (fixup_when_ecc_private_key): No fix-up needed
7446 for Ed448, it's only for classic curves.
7447 * common/openpgp-oid.c (oidtable): Add Ed448.
7448 * common/sexputil.c (get_pk_algo_from_key): Ed448 is only for EdDSA.
7449 * g10/export.c (match_curve_skey_pk): Ed448 is for EdDSA.
7450 * g10/keygen.c (gen_ecc): Support Ed448 with the name of "ed448".
7451 (ask_algo, parse_key_parameter_part): Handle "ed448".
7452 * g10/pkglue.c (pk_verify): Support Ed448.
7453 (pk_check_secret_key): Support Ed448.
7454 * g10/sign.c (hash_for): Defaults to SHA512 for Ed448.
7455 (make_keysig_packet): Likewise.
7457 2020-06-23 NIIBE Yutaka <gniibe@fsij.org>
7459 ecc: Use "cv448" to specify key using X448.
7460 + commit c94eea15d6847c08d2d9ff1c7608953f25fea67d
7461 * common/openpgp-oid.c (oidtable): Use "cv448".
7462 (oid_cv448): Rename from oid_x448.
7463 (openpgp_oidbuf_is_cv448, openpgp_oid_is_cv448): Likewise.
7464 * common/util.h (openpgp_oid_is_cv448): Follow the change.
7465 * g10/ecdh.c (pk_ecdh_generate_ephemeral_key): Likewise.
7466 * g10/keygen.c (gen_ecc, ask_algo): Use "cv448".
7467 (parse_key_parameter_part): Likewise.
7468 * g10/pkglue.c (get_data_from_sexp): Fix for debug output.
7470 2020-06-19 NIIBE Yutaka <gniibe@fsij.org>
7472 agent: Use get_pk_algo_from_key.
7473 + commit 4bdade5b0bea1816a2479c73abc71b41f09ba727
7474 * agent/findkey.c (key_parms_from_sexp, is_eddsa): Remove.
7475 (agent_pk_get_algo): Remove.
7476 * agent/pksign.c (agent_pksign_do): Use get_pk_algo_from_key.
7478 agent: Clean up for getting info from SEXP.
7479 + commit d2e4aa5ee4c5128547cc45c2e1ac35fdc5c00f45
7480 * agent/agent.h (agent_is_dsa_key, agent_is_eddsa_key): Remove.
7481 (agent_pk_get_algo): New.
7482 * agent/findkey.c (agent_pk_get_algo): New.
7483 * agent/pksign.c (do_encode_dsa): Use generic GCRY_PK_ECC.
7484 (agent_pksign_do): Use agent_pk_get_algo.
7486 agent: A little clean up.
7487 + commit abc6a3100a33122ba3673b578a2b364a6b45d252
7488 * agent/findkey.c (agent_is_eddsa_key): Remove dead case.
7490 2020-06-17 Werner Koch <wk@gnupg.org>
7492 agent: Fix regression in 'd' fixup code for shadowed keys.
7493 + commit d1e1c622d55e783ae5bf601249598f0da8d5e688
7494 * agent/sexp-secret.c (fixup_when_ecc_private_key): Ignore shadowed
7497 sm: Support verification of nistp521 signatures.
7498 + commit 596212e71abf33b30608348b782c093dace83110
7499 * sm/certcheck.c (do_encode_md): Take care of nistp521.
7501 2020-06-09 Werner Koch <wk@gnupg.org>
7503 gpg: Fix for new SOS changes when used with Libgcrypt < 1.8.6.
7504 + commit eeb599c9e261586a664430058b7cfad7025a503f
7505 * g10/free-packet.c (is_mpi_copy_broken): New.
7506 (my_mpi_copy): Mix gcry_mpi_copy.
7508 gpg: Extend the TRUST_ status lines.
7509 + commit 96f1ed5468002330ea21d9ad32ac3b464bb40b1a
7510 * g10/pkclist.c (write_trust_status): Add arg mbox.
7511 (check_signatures_trust): Appenmd mbox to the status lines.
7513 2020-06-09 NIIBE Yutaka <gniibe@fsij.org>
7515 gpg: Use bytes for ECDH.
7516 + commit da5e0bc31b4c6f16ed5ff9b35063f3b03eb7ff16
7517 * g10/ecdh.c (extract_secret_x): Use byte * instead of MPI.
7518 (prepare_ecdh_with_shared_point): Use char * instead of MPI.
7519 (pk_ecdh_encrypt_with_shared_point): Likewise.
7520 (pk_ecdh_decrypt): Likewise.
7521 * g10/pkglue.h (pk_ecdh_encrypt_with_shared_point, pk_ecdh_decrypt):
7523 * g10/pkglue.c (get_data_from_sexp): New.
7524 (pk_encrypt): Use get_data_from_sexp instead of get_mpi_from_sexp.
7525 Follow the change of pk_ecdh_encrypt_with_shared_point.
7526 * g10/pubkey-enc.c (get_it): Follow the change of pk_ecdh_decrypt.
7528 gpg: Add X448 support.
7529 + commit e9760eb9e70b9804c988dafe01851f6600869d9e
7530 * common/openpgp-oid.c (oidtable): Add X448.
7531 (oid_x448,openpgp_oidbuf_is_x448,openpgp_oid_is_x448): New.
7532 * common/util.h (openpgp_oid_is_x448): New.
7533 * g10/ecdh.c (gen_k): Add handling of opaque MPI and support
7535 (pk_ecdh_generate_ephemeral_key): X448 requires opaque MPI.
7536 * g10/keygen.c (gen_ecc): Add support for X448.
7537 (ask_algo, parse_key_parameter_part): Likewise.
7539 gpg,ecc: Handle external representation as SOS with opaque MPI.
7540 + commit f5bc94555458123f93d8b07816a68fb7485421e1
7541 * g10/pkglue.h (sexp_extract_param_sos): New.
7542 * g10/build-packet.c (sos_write): New.
7543 (do_key, do_pubkey_enc, do_signature): Use sos_write for ECC.
7544 * g10/export.c (cleartext_secret_key_to_openpgp): Use
7545 sexp_extract_param_sos.
7546 (transfer_format_to_openpgp): Use opaque MPI for ECC.
7547 * g10/keygen.c (ecckey_from_sexp): Use sexp_extract_param_sos.
7548 * g10/keyid.c (hash_public_key): Handle opaque MPI for SOS.
7549 * g10/parse-packet.c (sos_read): New.
7550 (parse_pubkeyenc,parse_signature,parse_key): Use sos_read for ECC.
7551 * g10/pkglue.c (sexp_extract_param_sos): New.
7552 (pk_verify): Handle opaque MPI for SOS.
7553 (pk_encrypt): Use sexp_extract_param_sos.
7554 * g10/seskey.c (encode_session_key): Use opaque MPI.
7555 * g10/sign.c (do_sign): Use sexp_extract_param_sos.
7557 2020-06-08 Werner Koch <wk@gnupg.org>
7559 gpg: If possible TRUST values now depend on signer's UID or --sender.
7560 + commit 5c2080f4670a768787f5cb4ed5c32e0946837883
7561 * g10/mainproc.c (check_sig_and_print): Add failsafe check for PK.
7562 Pass KEYBLOCK down do check_signatures_trust. Protect existsing error
7563 ocde in case the signature expired.
7564 * g10/pkclist.c (is_in_sender_list): New.
7565 (check_signatures_trust): Add args keyblock and pk. Add new uid based
7567 * g10/test-stubs.c, g10/gpgv.c: Adjust stubs.
7569 2020-06-08 NIIBE Yutaka <gniibe@fsij.org>
7571 agent: Fix the condition to detect leading 0x00 problem.
7572 + commit e2e5736842299ebfb8263b674d5cbfb9b784d70f
7573 * agent/sexp-secret.c (fixup_when_ecc_private_key): Use curve name
7574 to identify the issue.
7576 2020-06-05 NIIBE Yutaka <gniibe@fsij.org>
7578 agent,ecc: Use of opaque MPI for ECC, fixup 'd'.
7579 + commit 47c1c329ed823a562185f86e98ac903605104f11
7580 * agent/Makefile.am: Add sexp-secret.c.
7581 * agent/agent.h: New function declarations.
7582 * agent/sexp-secret.c: New.
7583 * agent/findkey.c (agent_key_from_file): Use sexp_sscan_private_key.
7584 * agent/protect-tool.c (read_and_unprotect): Fix up private part,
7585 calling fixup_when_ecc_private_key.
7587 agent: For ECC, use opaque MPI for key representation.
7588 + commit 2b118516240b4bddd34c68c23a99bea56682a509
7589 * agent/cvt-openpgp.c (scan_pgp_format): New with SOS support.
7590 (do_unprotect): Use scan_pgp_format, handle opaque MPI for ECC.
7591 (convert_from_openpgp_main): Use opaque MPI for ECC.
7592 (apply_protection): Set GCRYMPI_FLAG_USER1 flag for encrypted secret.
7593 (extract_private_key): Use "/qd" for ECC, opaque MPI.
7595 agent,ssh: Tighten condition for EdDSA.
7596 + commit a7d46c78e242e72f6ff681f6fe56ffc4dcb74a18
7597 * agent/command-ssh.c (ssh_key_to_blob): Prepare for non-prefixed
7598 point representation of EdDSA.
7600 agent: Remove duplicated code for EdDSA.
7601 + commit 2e988546c59ba25bf9e63521112c0c3c73b012f1
7602 * agent/command-ssh.c (ssh_receive_key): Curve is "Ed25519".
7603 Use sexp_key_construct always.
7605 agent: Clean up do_encode_md.
7606 + commit 4c0b12f817f15862111a01493aaadce943410ee9
7607 * agent/pksign.c (do_encode_md): Directly use sexp_build.
7609 2020-06-03 Werner Koch <wk@gnupg.org>
7611 doc: Minor enhancement for reproducibility.
7612 + commit 074ab108e768b2f946d789c1f3a7f14a65e07c52
7613 * doc/Makefile.am (defsincdate): In no repo mode and with
7614 SOURCE_DATE_EPOCH set, use that instead of blanking the date.
7616 card: Improve openpgp key writing in "writecert".
7617 + commit 4f6e0e12cbd3444b9e6ea5e4b92ea5b3072a3e17
7618 * tools/card-keys.c (struct export_key_status_parm_s): New.
7619 (export_key_status_cb): New.
7620 (get_minimal_openpgp_key): New.
7621 * tools/gpg-card.c (cmd_writecert): Allow writing a keyblock directly
7622 from an existing gpg key.
7624 gpg: Improve generation of keys stored on card (brainpool,cv25519).
7625 + commit 48251cf9a7d3776667342f4705ac3de89bd75534
7626 * g10/keygen.c (ask_key_flags_with_mask): Allow more than ECDH for
7628 (ask_algo): Tweak mapping of ECC to OpenPGP algos
7629 (parse_key_parameter_part): Ditto.
7630 (generate_subkeypair): Create the subkey with the time stored on the
7633 sm: Fix recently introduced regression in CSR creation.
7634 + commit 7558128e16d7fc20b9c40bf7e150ca08bbb4467f
7635 * sm/certreqgen.c (create_request): Also set SIGKEYLEN.
7637 2020-05-29 NIIBE Yutaka <gniibe@fsij.org>
7639 scd: Fix condition for C5 data object for newer Yubikey.
7640 + commit f3df8dbb696fed192501fa7f741c2e0e0936a3d5
7641 * scd/app-openpgp.c (compare_fingerprint): Relax the condition.
7643 2020-05-28 Werner Koch <wk@gnupg.org>
7645 card: Allow to store and retrieve keyblocks in OpenPGP cards.
7646 + commit 2d9592e78f4978307e378e07d6c170a28000a494
7647 * tools/gpg-card.c: Include tlv.h.
7648 (cmd_writecert): Add option --openpgp.
7649 (cmd_readcert): Ditto.
7651 card: New command "apdu"
7652 + commit ed0759f39be04dd6108237f5ed03c7cfd1cb4642
7653 * tools/card-call-scd.c (scd_apdu): Add optional arg 'options'.
7654 * tools/gpg-card.c (cmd_apdu): New.
7655 (enum cmdids): Add cmdAPDU.
7656 (dispatch_command): Add command "apdu".
7657 (interactive_loop): Ditto.
7659 2020-05-27 Werner Koch <wk@gnupg.org>
7661 card: Update card info after "generate".
7662 + commit 94d31660c6db22c3b539f440994d286f687c273f
7663 * tools/gpg-card.c (cmd_generate): Re-read the card on success.
7665 scd:openpgp: New KEY-STATUS attribute.
7666 + commit 21496761226c1020a98e3ec7dd2b9dd013d4386b
7667 * scd/app-openpgp.c (do_getattr): Return KEY-STATUS
7669 card: Add command "bye"
7670 + commit 08310849a28071fbca761fa4ca18702b39092947
7671 * tools/gpg-card.c: Add command "bye" as alias for "quit".
7672 * tools/gpg-connect-agent.c (main): Add "/quit" as alias for "/bye"
7674 card: Take care of removed and re-inserted cards.
7675 + commit 46a3de4b5acb37274ddd132499a3243e1f92b506
7676 * tools/gpg-card.c (cmd_list): Take care of the need_sn_cmd flag.
7677 (cmd_factoryreset): Clear that flag.
7678 (dispatch_command): Set flag after a reset and after a
7679 CARD_NOT_PRESENT error.
7681 2020-05-26 Werner Koch <wk@gnupg.org>
7683 card: Implement UID command and print capabilities.
7684 + commit c2a47475ba0f6bd1de80e92dd91949501256025e
7685 * tools/card-call-scd.c (learn_status_cb): Return the full value for
7686 UIF. Add info about SM, MCL3, and PD.
7687 * tools/gpg-card.h (struct card_info_s): Add corresponding fields.
7688 * tools/gpg-card.c (list_openpgp): Print capabilities. Print the
7689 permanent flag for UIF.
7690 (cmd_uif): Implement.
7692 scd:openpgp: Add attribute "UIF" for convenience.
7693 + commit 11f0700282c1eeaee8db6686c38aca0900271351
7694 * scd/app-openpgp.c (do_getattr): New attrubute "UIF".
7695 (do_learn_status): Use that.
7697 scd: Fix Yubikey app switching problem.
7698 + commit 20090886706e2af6723ca11e292272fc00cffe07
7699 * scd/app.c (select_all_additional_applications_internal): Re-select
7700 first app. Add arg 'ctrl'.
7702 2020-05-22 NIIBE Yutaka <gniibe@fsij.org>
7704 gpg: Clean up ECDH code path (5).
7705 + commit 510bda7d3754801be18a592694578589fe503fb8
7706 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Now, it's only for
7708 (pk_ecdh_decrypt): Use prepare_ecdh_with_shared_point and move decrypt
7709 code path in original pk_ecdh_encrypt_with_shared_point here.
7710 * g10/pkglue.h (pk_ecdh_encrypt_with_shared_point): Change API.
7711 * g10/pkglue.c (pk_encrypt): Follow the change.
7713 gpg: Clean up ECDH code path (4).
7714 + commit 64d93271bfce1968ebe61324b900875dbd6dd2eb
7715 * g10/ecdh.c (prepare_ecdh_with_shared_point): New.
7716 (pk_ecdh_encrypt_with_shared_point): Fixing error paths for closing
7717 the cipher handle, use prepare_ecdh_with_shared_point.
7719 gpg: Clean up ECDH code path (3).
7720 + commit 80c02d13d9994abae9e67c3554528352c621cd9b
7721 * g10/ecdh.c (derive_kek): New.
7722 (pk_ecdh_encrypt_with_shared_point): Use derive_kek.
7724 gpg: Clean up ECDH code path (2).
7725 + commit a973d9113840282468015eb26f07f2b32f977d70
7726 * g10/ecdh.c (build_kdf_params): New.
7727 (pk_ecdh_encrypt_with_shared_point): Use build_kdf_params, and check
7728 things before extract_secret_x.
7730 gpg: Clean up ECDH code path (1).
7731 + commit 960d37644cbbe2a234352d0bc58095e2b0371eec
7732 * g10/ecdh.c (extract_secret_x): New.
7733 (pk_ecdh_encrypt_with_shared_point): Use extract_secret_x.
7735 2020-05-20 NIIBE Yutaka <gniibe@fsij.org>
7737 dirmngr: dns: Fix allocation of string buffer in stack.
7738 + commit 30eef28bc0f5deaa1b4b7f04293a6527524280a9
7739 * dirmngr/dns.h (dns_strsection, dns_strclass)
7740 (dns_strtype): Change APIs.
7741 * dirmngr/dns.c (dns_p_lines): Use __dst for dns_strsection.
7742 (dns_rr_print): Use __dst for dns_strclass and dns_strtype.
7743 (dns_trace_dump): Likewise.
7744 (dns_ai_print): Use __dst for dns_strtype.
7745 (dns_strsection): Add an argument __dst for storage.
7746 (dns_strclass, dns_strtype): Likewise.
7747 (parse_packet): Use __dst for dns_strsection.
7748 (send_query): Use __dst for dns_strtype.
7749 (isection): Use __dst for dns_strsection.
7750 (iclass): Use __dst for dns_strclass.
7751 (itype): Use __dst for dns_strtype.
7753 2020-05-19 Werner Koch <wk@gnupg.org>
7755 sm: Create ECC certificates with AKI and SKI by default.
7756 + commit 44676819f2873705b78849e7b2fd22214b691642
7757 * sm/certreqgen.c (create_request): Create AKI and SKI by default.
7759 common: New function to extract Q from an ECC key.
7760 + commit 3cd9dac7e0976643c6e4b6537cf363b2b12d422f
7761 * common/sexputil.c (get_ecc_q_from_canon_sexp): New.
7763 2020-05-18 Werner Koch <wk@gnupg.org>
7765 sm: Support creation of EdDSA certificates.
7766 + commit 6dc3846d78192e393be73c16c72750734a9174d1
7767 * sm/misc.c (transform_sigval): Support EdDSA.
7768 * sm/certreqgen.c (create_request): Support EdDSA cert creation.
7769 * sm/certcheck.c (gpgsm_check_cert_sig): Map some ECC algo OIDs to
7771 * sm/call-agent.c (struct sethash_inq_parm_s): New.
7772 (sethash_inq_cb): New.
7773 (gpgsm_agent_pksign): Add mode to pass plain data for EdDSA.
7775 agent: Allow to use SETHASH for arbitrary data.
7776 + commit b18fb0264abdb6cb0a99ba0ba941dc9a6e35f74a
7777 * agent/agent.h (struct server_control_s): Add field digest.data.
7778 * agent/gpg-agent.c (agent_deinit_default_ctrl): Free that field.
7779 * agent/command.c (reset_notify): Ditto.
7780 (start_command_handler): ditto.
7781 (cmd_sethash): Add new option --inquire.
7782 * agent/call-scd.c (agent_card_pksign): For now return an error if
7783 inquire mode was used.
7784 * agent/command-ssh.c (ssh_handler_sign_request): Make sure
7785 digest.data is cleared.
7786 * agent/divert-scd.c (divert_pksign): Implement inquire mode.
7787 * agent/pksign.c (agent_pksign_do): Ditto.
7789 2020-05-13 Werner Koch <wk@gnupg.org>
7791 sm: Support import and verification of EdDSA certificates.
7792 + commit b1694987bb6484405d41d34046a5290176feadd0
7793 * sm/certdump.c (gpgsm_get_serial): New.
7794 * sm/certcheck.c (gpgsm_check_cert_sig): Support EdDSA signatures.
7796 2020-05-11 Werner Koch <wk@gnupg.org>
7798 sm: Support signing using ECDSA.
7799 + commit f44d395bdfec464b1e2a0a1aef39561e6e48a45c
7800 * sm/gpgsm.h (struct certlist_s): Add helper field pk_algo.
7801 * sm/sign.c (gpgsm_sign): Store the public key algo. Take the hash
7802 algo from the curve. Improve diagnostic output in verbose mode.
7804 2020-05-08 Werner Koch <wk@gnupg.org>
7806 sm: Allow decryption using dhSinglePass-stdDH-sha1kdf-scheme.
7807 + commit 68b857df13c8a4e6cae5e3a29fd065bf90764547
7808 * sm/decrypt.c (ecdh_decrypt): Support
7809 dhSinglePass-stdDH-sha1kdf-scheme. Factor key derive code out to ...
7810 (ecdh_derive_kek): new global function. Allow for hashs shorter than
7812 (hash_ecc_cms_shared_info): Make file-only.
7813 * sm/encrypt.c (ecdh_encrypt): Replace derive code by a call to the
7814 new ecdh_derive_kek. Add test code to create data using
7815 dhSinglePass-stdDH-sha1kdf-scheme.
7816 * sm/gpgsm.h (opt): Add member force_ecdh_sha1kdf.
7817 * sm/gpgsm.c: Add option --debug-force-ecdh-sha1kdf.
7819 sm: Print algorithm infos in data decryption mode.
7820 + commit 439c9b5cb55044f13d4af6563f4e791093d510b0
7821 * common/sexputil.c (cipher_mode_to_string): New.
7822 * sm/decrypt.c (prepare_decryption): Show cipher algo and mode.
7823 (gpgsm_decrypt): Show key algo and fingerprint
7825 sm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA.
7826 + commit 34b628db4618a8712536aea695f934b0286e7b18
7827 * common/sexputil.c (pubkey_algo_to_string): New.
7828 * sm/certcheck.c (do_encode_md): Replace GCRY_PK_ECDSA by GCRY_PK_ECC.
7829 * sm/certreqgen-ui.c (check_keygrip): Add all ECC algorithms.
7830 * sm/gpgsm.c (our_pk_test_algo): Also allow EdDSA.
7831 * sm/verify.c (gpgsm_verify): Map ECC algo to ECDSA. Use new pubkey
7834 sm: Improve readability of the data verification output.
7835 + commit a759fa963a42e0652134130029217270b6d5d00b
7836 * sm/verify.c (gpgsm_verify): Print the used algorithms.
7838 2020-05-07 Werner Koch <wk@gnupg.org>
7840 card: Allow listing of NKS cards.
7841 + commit 94966347452632f8140fae70f7fcbadcc2b81071
7842 * tools/card-call-scd.c (learn_status_cb): Always fill chvinfo.
7843 * tools/gpg-card.h (struct card_info_s): Increase size of chvinfo and
7845 * tools/gpg-card.c (list_nks): New.
7846 (print_a_version): Support single part version numbers.
7847 (list_card): Call list_nks.
7849 scd:nks: Add framework to support IDKey cards.
7850 + commit 1f6a39092fe4b5f02bc4741a0a23d102d30f4063
7851 * scd/app-nks.c (NKS_APP_IDLM): New.
7852 (struct app_local_s): Replace NKS_VERSION by the global APPVERSION.
7853 (do_learn_status): Always send CHV-STATUS.
7854 (find_fid_by_keyref): Basic support for IDLM only use.
7855 (do_learn_status_core): Ditto.
7856 (do_readcert): Ditto.
7857 (verify_pin): Ditto.
7858 (parse_pwidstr): Ditto.
7859 (do_with_keygrip): Ditto.
7860 (switch_application): Ditto.
7861 (app_select_nks): Fallback to IDLM.
7863 scd:nks: Get the PIN prompts right for the Signature Card.
7864 + commit aecc008acb64ebbb6c667c4a128af4e61da57f84
7865 * scd/app-nks.c (get_dispserialno): Move more to the top.
7866 (do_getattr): Add $DISPSERIALNO and SERIALNO. Make CHV-STATUS work
7868 (verify_pin): Use dedicated min. PIN lengths.
7869 (parse_pwidstr): Support NKS15
7871 sm: Print the key types as standard key algorithm strings.
7872 + commit 5c29d25e6c7c0a5a63ab4c46d4624217307adb78
7873 * sm/fingerprint.c (gpgsm_get_key_algo_info): Factor code out to ...
7874 (gpgsm_get_key_algo_info2): new.
7875 (gpgsm_pubkey_algo_string): New.
7876 * sm/keylist.c (list_cert_colon): Put curve into field 17
7877 (list_cert_raw): Print the unified key algotithm string instead of the
7879 (list_cert_std): Ditto.
7881 scd:nks: Support decryption using ECDH.
7882 + commit af45d884aa1c3eccbc6972a2e5197ece3fd1987a
7883 * scd/app-nks.c (struct fid_cache_s): Add field 'algo'.
7884 (keygripstr_from_pk_file): Add arg 'r_algo' to return the algo.
7885 (find_fid_by_keyref): Ditto.
7886 (get_dispserialno): New.
7888 (verify_pin): Provide better prompts.
7889 (do_decipher): Support ECDH.
7890 (parse_pwidstr): Add hack tospecify any pwid..
7891 (do_change_pin): Support Signature Card V2.0 (NKS15) style NullPIN.
7892 Provide a better prompt.
7894 sm: Support decryption of ECDH data using a smartcard.
7895 + commit ee6d29f1797e06977ae3d2edae9edc1165c6f144
7896 * sm/decrypt.c (ecdh_decrypt): Add arg nbits and detect bare secret.
7897 (prepare_decryption): Add arg nbits and pass on.
7898 (gpgsm_decrypt): Pass size of curve to prepare_decryption.
7900 2020-05-05 Werner Koch <wk@gnupg.org>
7902 scd: Extend an internal function to also return the algo.
7903 + commit 314859d7e7de5010ca1e9d90b83acf3bc8493631
7904 * scd/app-help.c (app_help_get_keygrip_string_pk): Add optional arg
7905 r_algo. Change all callers.
7906 (app_help_get_keygrip_string): Ditto.
7908 2020-05-04 Werner Koch <wk@gnupg.org>
7910 scd:nks: Add do_with_keygrip and implement a cache.
7911 + commit 1e72a1a218490c0fc07811a02ddad6cc38913f77
7912 * scd/app-nks.c (struct fid_cache_s): New.
7913 (struct app_local_s): Add field 'fid_cache'.
7914 (do_deinit): Release the cache.
7915 (keygripstr_from_pk_file): Implement the cache.
7916 (find_fid_by_keyref): New
7917 (do_sign, do_decipher): Use new function.
7918 (do_with_keygrip): New.
7920 sm: Support encryption using ECDH keys.
7921 + commit d5051e31a8fc07c339253c6b82426e0d0115a20a
7922 * sm/decrypt.c (hash_ecc_cms_shared_info): Make global.
7923 * sm/encrypt.c (ecdh_encrypt): New.
7924 (encrypt_dek): Add arg PK_ALGO and support ECDH.
7925 (gpgsm_encrypt): Pass PK_ALGO.
7927 2020-04-27 Werner Koch <wk@gnupg.org>
7929 sm: Add support to export ECC private keys.
7930 + commit 5da6925a334c68d736804d8f19a684a678409d99
7931 * sm/minip12.c [TEST]: Remove test code. Include util.h, tlv.h. and
7932 openpgpdefs.h. Remove the class and tag constants and replace them by
7934 (builder_add_oid, builder_add_mpi): New.
7935 (build_key_sequence): Rename to ...
7936 (build_rsa_key_sequence): this.
7937 (build_ecc_key_sequence): New.
7938 (p12_build): Call RSA or ECC builder.
7939 (p12_raw_build): Ditto.
7940 * sm/export.c (gpgsm_p12_export): Use correct armor header for ECC.
7941 (sexp_to_kparms): Support ECC.
7943 * sm/t-minip12.c: New to replace the former TEST code in minip12.h.
7945 2020-04-24 Werner Koch <wk@gnupg.org>
7947 common: Add an easy to use DER builder.
7948 + commit 5ea878274ef51c819368f021c69c518b9aef6f82
7949 * common/tlv-builder.c: New.
7950 * common/tlv.c: Remove stuff only used by GnuPG 1.
7951 (put_tlv_to_membuf, get_tlv_length): Move to ...
7952 * common/tlv-builder.c: here.
7953 * common/tlv.h (tlv_builder_t): New.
7955 2020-04-23 Werner Koch <wk@gnupg.org>
7957 sm: Support decryption of ECDH data.
7958 + commit 95d83cf906177fe9f00e88ae42d4c118c7db4371
7959 * sm/decrypt.c: Include tlv.h.
7960 (string_from_gcry_buffer): New.
7961 (hash_ecc_cms_shared_info): New.
7962 (ecdh_decrypt): New.
7963 (prepare_decryption): Support ECDH. Add arg pk_algo.
7964 (gpgsm_decrypt): Lift some variables from an inner code block.
7966 common: Add functions to help create DER objects.
7967 + commit 5d015b38eb9f828acf522fa89e4944f3b343678c
7968 * common/tlv.c (put_tlv_to_membuf): New.
7969 (get_tlv_length): New.
7970 * common/tlv.h: Include membuf.h.
7972 2020-04-21 Werner Koch <wk@gnupg.org>
7974 sm: Support import of PKCS#12 encoded ECC private keys.
7975 + commit 8dfef5197af9f655697e0095c6613137d51c91e7
7976 * sm/minip12.c: Include ksba.h.
7977 (oid_pcPublicKey): New const.
7978 (parse_bag_data): Add arg 'r-curve'. Support parsing of ECC private
7980 (p12_parse): Add arg 'r_curve'.
7981 * sm/import.c (parse_p12): Support ECC import.
7983 2020-04-17 Werner Koch <wk@gnupg.org>
7985 scd:nks: Allow retrieving certificates from a Signature Card v.20.
7986 + commit f05a32e5c9db7d0840c74fccc350a9e0ff5fb819
7987 * scd/app-nks.c: Major rework to support non-RSA cards.
7989 scd: Detect missing card in "getinfo all_active_apps".
7990 + commit 3633ca6e21f7feb97b6690025614575bb6909f8b
7991 * scd/app.c (send_card_and_app_list): Detect no app case.
7993 2020-04-16 Werner Koch <wk@gnupg.org>
7995 sm: Always allow authorityInfoAccess lookup if CRLs are also enabled.
7996 + commit bbb7edb8807b7d3c8bb5284d8fdf21adb67cd87d
7997 * sm/certchain.c (find_up): Disable external lookups in offline mode.
7998 Always allow AKI lookup if CRLs are also enabled.
8000 sm: Lookup missing issuers first using authorityInfoAccess.
8001 + commit f5efbd5a1169ca7700f430a4a26ba086e603c887
8002 * sm/call-dirmngr.c (gpgsm_dirmngr_lookup): Add optional arg URL and
8004 * sm/certchain.c (oidstr_caIssuers): New.
8005 (struct find_up_store_certs_s): Add additional fields.
8006 (find_up_store_certs_cb): Store the fingerprint.
8007 (find_up_via_auth_info_access): New.
8008 (find_up): Try the AIA URI first.
8010 dirmngr: Allow http URLs with "LOOKUP --url"
8011 + commit 7f1be1ea524ee53d8c7b628e0305b61ebad4ab25
8012 * dirmngr/crlfetch.c (read_cert_via_http): New.
8013 (fetch_cert_by_url): Implement http scheme.
8015 gpg: Make AEAD modes subject to compliance checks.
8016 + commit cec397e00240829495de2b487fe60d997d810c03
8017 * g10/decrypt-data.c (decrypt_data): Move aead algo detection up.
8019 2020-04-15 Werner Koch <wk@gnupg.org>
8021 gpg: Fix broken setting of AEAD algo.
8022 + commit df0edaf91a220f8c6dffbfd1f795e229858b096b
8023 * g10/main.h (DEFAULT_AEAD_ALGO): Set to OCB.
8025 sm,dirmngr: Restrict allowed parameters used with rsaPSS.
8026 + commit c0d5c673542b3d517c33fe1a9ab26bcda1a5a95f
8027 * sm/certcheck.c (extract_pss_params): Check the used PSS params.
8028 * dirmngr/crlcache.c (finish_sig_check): Ditto.
8029 * dirmngr/validate.c (check_cert_sig): Ditto.
8031 2020-04-15 NIIBE Yutaka <gniibe@fsij.org>
8033 regexp: Fix generation of _unicode_mapping.c.
8034 + commit 50b320952e99ea20f9b77c6c501280fe37fd2598
8035 * configure.ac (AWK_HEX_NUMBER_OPTION): Detect GNU Awk.
8036 * regexp/Makefile.am: Use AWK_HEX_NUMBER_OPTION.
8037 * regexp/parse-unidata.awk: Don't use strtonum.
8039 2020-04-14 Werner Koch <wk@gnupg.org>
8041 sm: Support rsaPSS verification also for CMS signatures.
8042 + commit 6c28d9343ea6df9cda1b69e77751a9e958eb3d70
8043 * sm/certcheck.c (gpgsm_check_cert_sig): Factor PSS parsing out to ...
8044 (extract_pss_params): new.
8045 (gpgsm_check_cms_signature): Implement PSS.
8047 2020-04-09 Werner Koch <wk@gnupg.org>
8049 dirmngr: Support rsaPSS also in the general validate module.
8050 + commit ba34f1415366d91d1831d717ec310ddda33f9cc4
8051 * dirmngr/validate.c (hash_algo_from_buffer): New.
8052 (uint_from_buffer): New.
8053 (check_cert_sig): Support rsaPSS.
8054 * sm/certcheck.c (gpgsm_check_cert_sig): Fix small memory leak on
8057 sm,dirmngr: Support rsaPSS signature verification.
8058 + commit b45ab0ca08f8d6f9831192210b9ab141f4e450cf
8059 * sm/certcheck.c (hash_algo_from_buffer): New.
8060 (uint_from_buffer): New.
8061 (gpgsm_check_cert_sig): Handle PSS.
8062 * dirmngr/crlcache.c (hash_algo_from_buffer): New.
8063 (uint_from_buffer): New.
8064 (start_sig_check): Detect PSS and extract hash algo. New arg to
8066 (finish_sig_check): New arg use_pss. Extract PSS args and use them.
8067 (crl_parse_insert): Pass use_pss flag along.
8069 common: New function to map hash algo names.
8070 + commit 5d5b70ae0f515290a3d64daa1d687fe8c8477f76
8071 * common/sexputil.c (hash_algo_to_string): New.
8073 scd:p15: Return a display S/N via Assuan.
8074 + commit bfedc760efdcf606da7c214e84d12a10ee4cbcc0
8075 * scd/app-p15.c (make_pin_prompt): Factor some code out to ...
8076 (get_dispserialno): this.
8077 (do_getattr): Use new fucntion for a $DISPSERIALNO.
8079 2020-04-08 NIIBE Yutaka <gniibe@fsij.org>
8081 gpg: ECDH: Accept longer padding.
8082 + commit fd79cadf7ba5ce45dfb5e266975f58bf5c7ce145
8083 * g10/pubkey-enc.c (get_it): Remove check which mandates shorter
8086 2020-04-07 Werner Koch <wk@gnupg.org>
8088 scd:p15: Show a pretty PIN prompt.
8089 + commit 9ec8d984be4676126843d5aa7dfd0b7d71eff13c
8090 * scd/app-p15.c (struct prkdf_object_s): New fields common_name and
8092 (release_prkdflist): Free them.
8093 (keygrip_from_prkdf): Parse cert and set them.
8094 (any_control_or_space): New.
8095 (make_pin_prompt): New.
8096 (verify_pin): Construct a pretty PIN prompt.
8097 (do_sign): Remove debug output.
8099 scd: Return GPG_ERR_BAD_PIN on 0x63Cn status word.
8100 + commit f28795b615c3042f6eb7c9d941e232d0da50efbc
8101 * scd/iso7816.c (map_sw): Detect 0x63Cn status code.
8103 scd: Factor common PIN status check out.
8104 + commit 60d018f6a91c4c90b8ecf13f88ac4256699f4007
8105 * scd/iso7816.h (ISO7816_VERIFY_ERROR): New.
8106 (ISO7816_VERIFY_NO_PIN): New.
8107 (ISO7816_VERIFY_BLOCKED): New.
8108 (ISO7816_VERIFY_NULLPIN): New.
8109 (ISO7816_VERIFY_NOT_NEEDED): New.
8110 * scd/iso7816.c (iso7816_verify_status): New.
8111 * scd/app-nks.c (get_chv_status): Use new function.
8112 * scd/app-piv.c (get_chv_status): Ditto.
8113 (verify_chv): Ditto.
8115 scd:p15: Fix decrypt followed by sign problem for D-Trust cards.
8116 + commit 42ddcc87f4bca40d605d133b6cdb4e761a49a1c9
8117 * scd/iso7816.c (iso7816_select_mf): New.
8118 * scd/app-p15.c (card_product_t): New.
8119 (struct app_local_s): Add field 'card_product'.
8120 (read_ef_tokeninfo): Detect D-Trust card.
8121 (prepare_verify_pin): Switch to D-Trust AID.
8122 (do_decipher): Restore a SE for D-TRust cards. Chnage the passing
8125 2020-04-06 NIIBE Yutaka <gniibe@fsij.org>
8127 tools: Use internal regexp routines.
8128 + commit 7ee2a9687da9560a5d17c7046c87c2f7a6733d5c
8129 * tools/gpg-check-pattern.c: Use jimregexp.h.
8131 2020-04-03 Werner Koch <wk@gnupg.org>
8133 scd:p15: Emit MANUFACTURER, $ENCRKEYID, $SIGNKEYID.
8134 + commit aa60645b997d23ac2958f75fd349c1cd7b8af902
8135 * scd/app-p15.c (read_ef_tokeninfo): Store manufacturer_id.
8136 (do_getattr): Implement MANUFACTURER, $ENCRKEYID and $SIGNKEYID.
8137 (send_keypairinfo): Also print usage flags.
8139 gpg,card: Use the new MANUFACTURER attribute.
8140 + commit 15352b0eac335e7993fcd7720106a3a7d22caae1
8141 * tools/gpg-card.h (struct card_info_s): Add manufacturer fields.
8142 * tools/card-call-scd.c (release_card_info): Release them.
8143 (learn_status_cb): Parse MANUFACTURER attribute.
8144 * tools/gpg-card.c (get_manufacturer): Remove.
8145 (list_card): Use the new attribute.
8146 * g10/call-agent.h (struct agent_card_info_s): Add manufacturer fields.
8147 * g10/call-agent.c (agent_release_card_info): Release them.
8148 (learn_status_cb): Parse MANUFACTURER attribute.
8149 * g10/card-util.c (get_manufacturer): Remove.
8150 (current_card_status): Use new attribute.
8152 scd:openpgp: New attribute "MANUFACTURER".
8153 + commit 541a6a903e79c9146a379f5c6c0fb34e6c2b42c4
8154 * scd/app-openpgp.c (get_manufacturer): New..
8155 (do_getattr): Add new attribute "MANUFACTURER".
8156 (do_learn_status): Always print it.
8158 2020-04-03 NIIBE Yutaka <gniibe@fsij.org>
8160 gpg: Add regular expression support.
8161 + commit ba247a114c75a84473c11c1484013b09fbb9bcd1
8162 * AUTHORS, COPYING.other: Update.
8163 * Makefile.am (SUBDIRS): Add regexp sub directory.
8164 * configure.ac (DISABLE_REGEX): Remove.
8165 * g10/Makefile.am (needed_libs): Add libregexp.a.
8166 * g10/trustdb.c: Remove DISABLE_REGEX support.
8167 * regexp/LICENSE, regexp/jimregexp.c, regexp/jimregexp.h,
8168 regexp/utf8.c, regexp/utf8.h: New from Jim Tcl.
8169 * regexp/UnicodeData.txt: New from Unicode.
8170 * regexp/Makefile.am, regexp/parse-unidata.awk: New.
8171 * tests/openpgp/Makefile.am: Remove DISABLE_REGEX support.
8172 * tools/Makefile.am: Remove DISABLE_REGEX support.
8174 2020-04-02 Werner Koch <wk@gnupg.org>
8176 scd:p15: Implement do_with_keygrip and capabilities.
8177 + commit 61c5b0767fac4c2d7fe95cdbc6d0f0a94878c813
8178 * scd/app-p15.c (prepare_verify_pin): Allow use without an AODF.
8179 (verify_pin): Ditto.
8180 (do_with_keygrip): Implement capability restrictions.
8182 scd:p15: Rename some variables and functions for clarity.
8183 + commit 8149742ddfea6c76898786cb7de7c92bbf8aab0a
8184 * scd/app-p15.c: Rename keyinfo to prkdf.
8186 scd: Use Gcrypt usage constants for the do_with_keygrip capabilities.
8187 + commit 5b7b42e2b2b7ba7b88f89ff4b4ee7baf0eef2a04
8188 * scd/command.c (cmd_keyinfo): Use Gcrypt constants for CAP.
8189 * scd/app-openpgp.c (do_with_keygrip): Adjust for them.
8190 * scd/app-piv.c (do_with_keygrip): Ditto.
8192 2020-04-02 NIIBE Yutaka <gniibe@fsij.org>
8194 scd: New command DEVINFO.
8195 + commit 2ccbcfec121f768574a59aa2ecff22d8b422d61b
8196 * scd/app.c (notify_cond): New condition variable.
8197 (app_send_devinfo, app_wait): New.
8198 (scd_update_reader_status_file): Kick NOTIFY_COND.
8199 (initialize_module_command): Initialize NOTIFY_COND.
8200 * scd/command.c (struct server_local_s): Add watching_status.
8202 (register_commands): Add DEVINFO command.
8203 (send_client_notifications): Write status change to DEVINFO channel.
8204 * scd/scdaemon.h (app_wait, app_send_devinfo): New.
8206 2020-04-01 Werner Koch <wk@gnupg.org>
8208 scd:p15: Cache the PIN.
8209 + commit 29f8f52bf8161c238c26389ab178caa98801234e
8210 * scd/app-p15.c (struct prkdf_object_s): Add flag pin_verified.
8211 (verify_pin): Make use of it.
8213 scd:p15: Run a keygrip_from_prkdf before verify_pin.
8214 + commit 132d82c1582009013af5c7bdb17cbaaa8807c70e
8215 * scd/app-p15.c (do_sign): Move keygrip_from_prkdf before PIN
8217 (do_decipher): Add keygrip_from_prkdf.
8219 scd:p15: Support decryption with CardOS 5 cards.
8220 + commit ca4391399c690a45270cca30f03ac564c394c1f6
8221 * scd/app-p15.c (do_decipher): New.
8223 scd:p15: Factor PIN verification out to a new function.
8224 + commit 375b1454875ff079efc122e33b1216b412eecfaf
8225 * scd/app-p15.c (do_sign): Factor code out to ...
8226 (prepare_verify_pin, verify_pin): new functions.
8228 sm: Fix a warning in an es_fopencooie function.
8229 + commit c7ff8c59b9252f8f27cabee3fea503f06c7d46ff
8230 * sm/certdump.c (format_name_writer): Take care of a flush request.
8232 2020-03-31 Werner Koch <wk@gnupg.org>
8234 scd:p15: Support signing with CardOS 5 cards.
8235 + commit 103c1576b73ed75b771a8ffd1c97628651b99797
8236 * scd/app-help.c (app_help_get_keygrip_string_pk): Add optional arg
8237 r_pkey and change all callers.
8238 (app_help_get_keygrip_string): Ditto.
8239 * scd/app-p15.c (struct cdf_object_s): Use bit flags
8240 (struct aodf_object_s): Ditto. Add field 'fid'.
8241 (struct prkdf_object_s): Ditto. Add fields keygrip, keyalgo, and
8243 (parse_certid): Allow a keygrip instead of a certid aka keyref.
8244 (read_ef_aodf): Store the FID.
8245 (keygripstr_from_prkdf): Rename to ...
8246 (keygrip_from_prkdf): this. Remove arg r_gripstr and implement cache.
8247 Change callers to directly use the values from the object. Also store
8248 the algo and length of the key ion the object.
8249 (keyref_from_keyinfo): New. Factored out code.
8250 (do_sign): Support SHA-256 and >2048 bit RSA keys.
8251 (do_with_keygrip): New.
8252 (app_select_p15): Register new function.
8254 scd:p15: Read certificates in extended mode.
8255 + commit 2bdd4fc7b6cfd9ac5410d20f1cee66567a6b24c5
8256 * scd/app-p15.c (readcert_by_cdf): Allow reading in extended mode.
8258 scd: Add function for binary read in extended mode.
8259 + commit c9ad81070a2bb1116d3f096a440c43e57e6f933a
8260 * scd/iso7816.c (iso7816_read_binary): Factor code out to ...
8261 (iso7816_read_binary_ext): new function. Add arg extended_mode.
8263 2020-03-30 Werner Koch <wk@gnupg.org>
8265 scd:p15: Detect CardOS 5 cards and print some basic infos.
8266 + commit 8a68d497f1dd0b124318eb47db9da0c4b64c8b8b
8267 * scd/app-p15.c (read_ef_odf): Detect the home_DF on the fly. Silence
8268 the garbage warning for null bytes.
8269 (print_tokeninfo_tokenflags): New.
8270 (read_ef_tokeninfo): Print manufacturer, label, and flags.
8271 (app_select_p15): No need to use the app_get_slot macro.
8272 (CARD_TYPE_CARDOS_50): New const.
8273 (card_atr_list): Detect CardOS 5.0
8275 agent: Print an error if gpg-protect reads the extended key format.
8276 + commit c5c21a064671dc8e461434d19cbde67b89df25e2
8277 * agent/protect-tool.c (read_key): Detect simple extended key format.
8279 sm: Fix possible NULL deref in error messages of --gen-key.
8280 + commit 9c5c7c6f602c84589cd5c93a85a27b416e744338
8281 * sm/certreqgen.c: Protect printing the liniernur in case of !R.
8283 2020-03-27 Werner Koch <wk@gnupg.org>
8285 sm: Consider certificates w/o CRL DP as valid.
8286 + commit 0b583a555e75fbb9140310390a267febd3329a12
8287 * sm/certchain.c (is_cert_still_valid): Shortcut if tehre is no DP.
8288 * common/audit.c (proc_type_verify): Print "n/a" if a cert has no
8290 * sm/gpgsm.h (opt): Add field enable_issuer_based_crl_check.
8291 * sm/gpgsm.c (oEnableIssuerBasedCRLCheck): New.
8292 (opts): Add option --enable-issuer-based-crl-check.
8295 scd:openpgp: Allow PKSIGN with keygrip also for OPENPGP.3.
8296 + commit 4c4999b8185ace55eb5f3a6fa7d3dc0a77267b63
8297 * scd/app-openpgp.c (check_keyidstr): Add optional arg r_use_auth to
8298 test also for OpenPGP.3.
8299 (do_sign): Enable that new mode.
8301 2020-03-27 NIIBE Yutaka <gniibe@fsij.org>
8303 gpgsm: Fix the previous commit.
8304 + commit e06a8e3e87f044a5bf6ee06f92cc4fd2a0914863
8307 2020-03-26 NIIBE Yutaka <gniibe@fsij.org>
8309 gpgsm: Support key generation with ECC.
8310 + commit 49ea53b755f0fef468055a1493e790735908f865
8311 * sm/certreqgen.c (pKEYCURVE): New.
8312 (read_parameters): Add pKEYCURVE handling.
8313 (proc_parameters): Support ECC key generation.
8315 gpgsm: Remove restriction of key generation (only RSA).
8316 + commit 238707db8b05a385af5419e606ea5110ace31d2b
8317 * sm/certreqgen.c (proc_parameters): Remove checking GCRY_PK_RSA.
8319 2020-03-19 Werner Koch <wk@gnupg.org>
8321 gpgconf: Take care of --homedir when reading/updating options.
8322 + commit c1844ca7520f9a67bff85ee4fbf49c6725668289
8323 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Remove unused var.
8324 (scdaemon_runtime_change): Ditto.
8325 (dirmngr_runtime_change): Ditto.
8326 (gc_component_check_options): Pass --homedir if needed.
8327 (retrieve_options_from_program): Take care of --homedir.
8329 2020-03-18 Werner Koch <wk@gnupg.org>
8331 gpg: Also allow a v5 fingerprint for --trusted-key.
8332 + commit 4287f89557b3bc9ab2876331e1bcb143d759fb47
8333 * g10/trustdb.c (tdb_register_trusted_key): Add case for 32 octet
8336 2020-03-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8338 gpg: Update --trusted-key to accept fingerprint as well as long key id.
8339 + commit 810ea2cc684480c6aadceb2a10dd00f3fa67f2fb
8340 * g10/trustdb.c (tdb_register_trusted_key): accept fingerprint as well
8342 * doc/gpg.texi: document that --trusted-key can accept a fingerprint.
8344 2020-03-18 Werner Koch <wk@gnupg.org>
8347 gpg: Fix key expiration and usage for keys created at the Epoch.
8348 + commit 161a098be6f9d50fb5f7e120baee81e75d6eb5ad
8349 * g10/getkey.c (merge_selfsigs_main): Take a zero key creation time in
8352 2020-03-14 Werner Koch <wk@gnupg.org>
8354 gpgconf: Further simplify the gpgconf option processing.
8355 + commit 451cd1b3928172b312ca2597c3318e6e9e8be97d
8356 * common/gc-opt-flags.h (GC_OPT_FLAG_RUNTIME): Move to ...
8357 * tools/gpgconf-comp.c: here.
8358 (known_options_scdaemon): Remove "options".
8359 (known_options_dirmngr): Remove "options".
8360 (known_options_gpgsm): Remove "options".
8361 (known_options_gpg): Remove "options" and "keyserver".
8362 (struct gc_option_s): Rename active t gpgconf_list.
8363 (gc_component_list_options): Do not act upon active.
8364 (option_check_validity): Ditto.
8365 (is_known_option): Make it work correctly for unknown options.
8366 (retrieve_options_from_program): Use renamed flag gpgconf_list only to
8367 detect duplicated items from --gpgconf-list. Do not set runtime.
8368 Only e set the options if set by --gpgconf-list; never clear them.
8369 * agent/gpg-agent.c: Simplify the --gpgconf-list output.
8370 * dirmngr/dirmngr.c: Ditto.
8372 * kbx/keyboxd.c: Ditto.
8373 * scd/scdaemon.c: Ditto.
8374 * sm/gpgsm.c: Ditto.
8375 * tests/openpgp/gpgconf.scm: Use "compliance" instead of "keyserver"
8376 for the string arg test.
8378 gpg: New option --auto-key-import.
8379 + commit 6b306f45f4fbe36b90cec4685aabb267a61e283f
8380 * g10/gpg.c (opts): New options --auto-key-import,
8381 --no-auto-key-import, and --no-include-key-block.
8382 (gpgconf_list): Add them.
8383 * g10/options.h (opt): Add field flags.auto_key_import.
8384 * g10/mainproc.c (check_sig_and_print): Use flag to enable that
8386 * tools/gpgconf-comp.c: Give the new options a Basic config level.
8388 2020-03-13 Werner Koch <wk@gnupg.org>
8390 gpg: Make use of the included key block in a signature.
8391 + commit 6a4443c8425fd548020553b22d5a16ffad98371f
8392 * g10/import.c (read_key_from_file): Rename to ...
8393 (read_key_from_file_or_buffer): this and add new parameters. Adjust
8395 (import_included_key_block): New.
8396 * g10/packet.h (PKT_signature): Add field flags.key_block.
8397 * g10/parse-packet.c (parse_signature): Set that flags.
8398 * g10/sig-check.c (check_signature2): Add parm forced_pk and change
8400 * g10/mainproc.c (do_check_sig): Ditto.
8401 (check_sig_and_print): Try the included key block if no key is
8404 gpg: New option --include-key-block.
8405 + commit 865d485180240369a20d3be14d0c6499783df2b5
8406 * common/openpgpdefs.h (SIGSUBPKT_KEY_BLOCK): New.
8407 * g10/gpg.c (oIncludeKeyBlock): New.
8408 (opts): New option --include-key-block.
8410 * g10/options.h (opt): New flag include_key_block.
8411 * g10/parse-packet.c (dump_sig_subpkt): Support SIGSUBPKT_KEY_BLOCK.
8412 (parse_one_sig_subpkt): Ditto.
8413 (can_handle_critical): Ditto.
8414 * g10/sign.c (mk_sig_subpkt_key_block): New.
8415 (write_signature_packets): Call it for data signatures.
8417 gpg: Add property "fpr" for use by --export-filter.
8418 + commit 32493ce50ad880de7b548d7870c6040a8233a8f5
8419 * g10/export.c (push_export_filters): New.
8420 (pop_export_filters): New.
8421 (export_pubkey_buffer): Add args prefix and prefixlen. Adjust
8423 * g10/import.c (impex_filter_getval): Add property "fpr".
8424 * g10/main.h (struct impex_filter_parm_s): Add field hexfpr.
8426 2020-03-12 Werner Koch <wk@gnupg.org>
8428 gpgconf: Rewrite the gpgconf-comp module.
8429 + commit b4f1159a5bd7b2799d7d35e883e0632ebf3339c8
8430 * tools/gpgconf.h (gc_component_t): Change type to ...
8431 (gc_component_id_t): this.
8432 (GC_COMPONENT_ANY): New, so that we can use that in gpgconf-comp.c
8434 * tools/gpgconf-comp.c: Major rework.
8436 2020-03-06 Werner Koch <wk@gnupg.org>
8438 gpg: Re-group the options in the --help output.
8439 + commit 41eb5108ce59244d961df43bbf73b8aa6e95e9cd
8440 * g10/gpg.c (opts): Change oLoadExtensions, oStrict, and oNoStrict to
8441 use ARGPARSE_ignore and remove the code in the option switch.
8443 agent: Re-group the options in the --help output.
8444 + commit c693b7f4ade97357c33b410728bb741674255487
8445 * agent/gpg-agent.c (oGreeting): Remove non existant dummy option.
8447 gpgconf: Support reading global options (part 2).
8448 + commit 4423e9dcde5e1a8d73ff7386942fe3c0c4b917fc
8449 * tools/gpgconf-comp.c: Remove all regular option descriptions. They
8450 are now read in from the component. Also remove a few meanwhile
8452 * agent/gpg-agent.c: Add option description which were only set in
8454 * dirmngr/dirmngr.c: Ditto.
8455 * scd/scdaemon.c: Ditto.
8456 * sm/gpgsm.c: Ditto.
8459 2020-03-05 Werner Koch <wk@gnupg.org>
8461 gpgconf: Support reading global options (part 1).
8462 + commit d2425d1495f4fe4f5c3a79d7dc5571fda00849d8
8463 * tools/gpgconf.c (main): Set the coinfig directories.
8464 * tools/gpgconf-comp.c (gc_backend): Change the name of the config
8466 (struct gc_option): Add new field 'attr'.
8467 (retrieve_options_from_program): Rewrite to use gpgrt_argparser.
8469 2020-03-04 Werner Koch <wk@gnupg.org>
8471 common: Add xreallocarray function.
8472 + commit 6fa1808cb7639f0f3745b78c4b7ce902e42b228c
8473 * common/miscellaneous.c (xreallocarray): New func.
8474 * common/util.h (xtryreallocarray): New macro.
8476 2020-03-03 Werner Koch <wk@gnupg.org>
8478 gpgconf: Always use xmalloc.
8479 + commit 178b3772ff79148b496715da1b8ca5ba86caf2bc
8480 * tools/gpgconf-comp.c: Fix spelling of "cannot". Use log_assert
8481 instead of a plain assert.
8482 (gc_percent_escape, percent_deescape): Fail on malloc error.
8484 2020-02-28 NIIBE Yutaka <gniibe@fsij.org>
8486 scd: Fix the previous commit.
8487 + commit 19f70b5072b2ef80759ced83fe0dac9cf4dde830
8488 * scd/app-openpgp.c (do_setattr): Flush the KDF DO just before setting.
8490 scd: Improve setattr for KDF.
8491 + commit 3ba7c9bcf7f19b0a308499fcf3dbbb15da38799a
8492 * scd/app-openpgp.c (do_setattr): For setting KDF DO, support standard
8493 OpenPGP card, which needs to update PIN.
8495 scd: Fix pinpad handling when KDF enabled.
8496 + commit 11da441016222337284c519ff56aca34e3042373
8497 * scd/app-openpgp.c (do_getattr): Send the KDF DO information.
8499 2020-02-25 Werner Koch <wk@gnupg.org>
8501 gpg: Re-enable versioned config files.
8502 + commit 79f2318aa5c54c57220aa73251635d21cee0ccfa
8503 * g10/gpg.c (main): Use ARGPARSE_FLAG_USERVERS.
8505 gpg: Re-add checking of config file permissions.
8506 + commit 7e8f28653c1b4305758a61c064d793e32ba633d5
8507 * g10/gpg.c (main): Re-add permission checking of the user config
8508 file. Re-add code to check against the SE-Linux secured file list.
8509 (get_default_configname): Remove unused func.
8510 * configure.ac (SAFE_VERSION, SAFE_VERSION_DOT)
8511 (SAFE_VERSION_DASH): Remove.
8513 2020-02-22 Werner Koch <wk@gnupg.org>
8515 Use gpgrt's new option parser for the new keyboxd.
8516 + commit 833c04334a53530bd40d7dd815b6a0f1ffef296d
8517 * kbx/keyboxd.c: Switch to the new option parser and enable a global
8520 agent,dirmngr: Re-read the user specified config file.
8521 + commit 941a48f9b12b4c470686321bf4fd58c23b6cf86d
8522 * agent/gpg-agent.c (reread_configuration): Use a two-part config
8524 * dirmngr/dirmngr.c (reread_configuration): Ditto.
8526 Remove the now obsolete argparse code.
8527 + commit cdbe10b762f38449b86da69076209324b0c99982
8528 * tests/gpgscm/main.c: Switch to the new option parser.
8529 * common/argparse.c, common/argparse.h: Remove.
8530 * common/init.c (_init_common_subsystems): Do not call obsolete func.
8531 * common/Makefile.am (common_sources): Remove those files.
8533 2020-02-21 Werner Koch <wk@gnupg.org>
8535 Use gpgrt's new option parser for the remaining daemons.
8536 + commit ba463128ce65a0f347643f7246a8e097c5be19f1
8537 * scd/scdaemon.c: Switch to the new option parser and enable a global
8539 * dirmngr/dirmngr.c: Ditto.
8541 * g13/g13-syshelp.c: Ditto. Do not force verbose mode.
8542 * dirmngr/dirmngr_ldap.c: Switch to the new option parser.
8543 * dirmngr/dirmngr-client.c: Switch to the new option parser.
8545 Use gpgrt's new option parser for the tools.
8546 + commit 3bc004decd289810bc1b6ad6fb8f47e45c770ce6
8547 * agent/preset-passphrase.c: Switch to the new option parser.
8548 * agent/protect-tool.c: Ditto.
8549 * kbx/kbxutil.c: Ditto.
8550 * tools/gpg-card.c: Ditto.
8551 * tools/gpg-check-pattern.c: Ditto.
8552 * tools/gpg-connect-agent.c: Ditto.
8553 * tools/gpg-pair-tool.c: Ditto.
8554 * tools/gpg-wks-client.c: Ditto.
8555 * tools/gpg-wks-server.c: Ditto.
8556 * tools/gpgconf.c: Ditto.
8557 * tools/gpgsplit.c: Ditto.
8558 * tools/gpgtar.c: Ditto.
8560 2020-02-20 Werner Koch <wk@gnupg.org>
8562 Use gpgrt's new option parser for gpgc, gpgsm, and gpg-agent.
8563 + commit 2c823bd878fcdbcc4f6c34993e1d0539d9a6b237
8564 * g10/gpgv.c: Use new option parser.
8565 * sm/gpgsm.c: Ditto.
8566 * agent/gpg-agent.c: Ditto.
8567 (opts): Add option --no-options.
8569 gpg: Use gpgrt's new option parser to provide a global conf file.
8570 + commit 0e8f6e2aa98c212442001036fb5178cd6cd8af59
8571 * common/util.h: Remove argparse.h.
8572 * common/argparse.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS.
8573 * configure.ac (GPGRT_ENABLE_ARGPARSE_MACROS): Define.
8574 * agent/gpg-agent.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS and include
8575 argparse.h. Do this also for all main modules which use our option
8576 parser except for gpg. Replace calls to strusage by calls to
8577 gpgrt_strusage everywhere.
8579 * g10/gpg.c (opts): Change type to gpgrt_opt_t. Flag oOptions and
8580 oNoOptions with ARGPARSE_conffile and ARGPARSE_no_conffile.
8581 (main): Change type of pargs to gpgrt_argparse_t. Rework the option
8582 parser to make use of the new gpgrt_argparser.
8584 2020-02-19 Werner Koch <wk@gnupg.org>
8586 card: New option --info for command list and select by s/n.
8587 + commit ee911df979e9b53787162367865ca24682adae6e
8588 * tools/gpg-card.c (cmd_list): add option --info. Factor soem code
8590 (print_card_list): new.
8592 2020-02-19 NIIBE Yutaka <gniibe@fsij.org>
8594 gpg: Fix default-key selection when card is available.
8595 + commit 41913d76f7db4a7dabab26c1bc439c96ad86712f
8596 * g10/getkey.c (get_seckey_default_or_card): Handle the case
8597 when card key is not suitable for requested usage.
8599 2020-02-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8602 + commit 0904b8ef348a52335c378bee6dc90a978885d66f
8603 No functional changes, just fixing minor spelling issues.
8607 Most of these were identified from the command line by running:
8610 --ignore-words-list fpr,stati,keyserver,keyservers,asign,cas,iff,ifset \
8611 --skip '*.po,ChangeLog*,help.*.txt,*.jpg,*.eps,*.pdf,*.png,*.gpg,*.asc' \
8612 doc g13 g10 kbx agent artwork scd tests tools am common dirmngr sm \
8613 NEWS README README.maint TODO
8615 2020-02-19 Nick Piper <nick.piper@cgi.com>
8617 doc: Correction of typo in documentation of KEY_CONSIDERED.
8618 + commit 0e1cbabc0ad4fe2ca9644fffb5cf27b1a8a1509f
8621 2020-02-17 NIIBE Yutaka <gniibe@fsij.org>
8623 scd: Disable pinpad if it's impossible by KDF DO.
8624 + commit 95c7498b76231d3297541172d878f6a26702539b
8625 * scd/app-openpgp.c (struct app_local_s): Add pinpad.disabled field.
8626 (do_getattr): Set pinpad.disabled field.
8627 (check_pinpad_request): Use the pinpad.disabled field.
8628 (do_setattr): Update pinpad.disabled field.
8630 2020-02-15 Werner Koch <wk@gnupg.org>
8632 gpgsm: Fix import of some CR,LF ternminated certificates.
8633 + commit 6248739799fd4a877529089375e2a4103d33e6f4
8634 * common/ksba-io-support.c (base64_reader_cb): Detect the END tag and
8635 don't just rely on the padding chars. This could happen only with
8636 CR+LF termnmated PEM files. Also move the detection into the invalid
8637 character detection branch for a minor parser speedup.
8639 2020-02-13 Werner Koch <wk@gnupg.org>
8641 build: New configure option --disable-keyboxd.
8642 + commit 6cac2bd0382eb7ed0d249f077522516e64fc1d8f
8643 * configure.ac: Add option --dsiable-keyboxd
8644 * kbx/Makefile.am: Do not build keyboxd in that case.
8646 scd: Print the main app name also for not fully supported cards.
8647 + commit 11d917c7796dc748e2d798d327a045ba295994f4
8648 * scd/app.c (send_serialno_and_app_status): Add fallback.
8650 card: Fix openpgp subkey listing.
8651 + commit e582d8f5b2c1bac8b6ccdfd6412b621a2584eb7f
8652 * tools/gpg-card.c (list_one_kinfo): Fix printing of the subkeys.
8654 gpg: New option --full-timestrings.
8655 + commit 86312b920a1d5817903d7175e9c2109bcf521b7c
8656 * g10/options.h (opt): Add flags.full_timestrings.
8657 * g10/gpg.c (oFullTimestrings): New.
8659 (main): Set new flag.
8660 * g10/keyid.c (dateonlystr_from_pk): New.
8661 (dateonlystr_from_sig): New.
8662 (datestr_from_pk): Divert to isotimestamp if requested.
8663 (datestr_from_sig): Ditto.
8664 (expirestr_from_pk): Ditto.
8665 (expirestr_from_sig): Ditto.
8666 (revokestr_from_pk): Ditto.
8667 * g10/import.c (impex_filter_getval): Use dateonlystr_from_sig and
8668 dateonlystr_from_pk.
8670 gpg: Changes to allow direct key generation from an OpenPGP card.
8671 + commit 14ac350f868ca71492c20c7b682d0b55b4893c9c
8672 * g10/call-agent.h (struct keypair_info_s): Add fields keytime and
8674 * g10/call-agent.c (struct keypairinfo_cb_parm_s): New.
8675 (scd_keypairinfo_status_cb): Rework to store parsed KEYPAIRINFO data.
8676 (agent_scd_keypairinfo): Change accordingly.
8677 (agent_scd_readkey): Add arg ctrl and change callers. Change return
8678 arg from an strlist_t to a keypair_info_t.
8679 (readkey_status_cb): Use KEYPAIRINFO instead of KEY-TIME.
8680 * g10/keygen.c (pSUBKEYCREATIONDATE): New.
8681 (pAUTHKEYCREATIONDATE): New.
8682 (get_parameter_u32): Allow for new parameters.
8683 (do_create_from_keygrip): For card keys use direct scd call which does
8684 not create a stub file.
8685 (ask_algo): Rework to use the new keypair_info_t as return from
8686 agent_scd_keypairinfo.
8687 (parse_key_parameter_part): Likewise. Also get and return the key
8688 creation time using a arg.
8689 (parse_key_parameter_string): New args r_keytime and r_subkeytime.
8690 (parse_algo_usage_expire): New arg r_keytime.
8691 (proc_parameter_file): Ignore the explict pCREATIONDATE for card keys.
8692 (quickgen_set_para): New arg keytime.
8693 (quick_generate_keypair): Get the keytimes and set the pCARDKEY flag.
8694 (generate_keypair): Likewise.
8695 (do_generate_keypair): Implement the cardkey with keytime thingy.
8696 (generate_subkeypair): Use the keytime parameters.
8697 * g10/keygen.c (pAUTHKEYCREATIONDATE): New. Not yet set but may come
8699 (get_parameter_u32): Take care of that.
8700 (do_generate_keypair): For cardkeys sign with the current time.
8702 card: Take the key creation time from the KEYPAIRINFO.
8703 + commit e63f8bee4044e0cc9ebc1f9c0f9f6b63660d45e8
8704 * tools/card-call-scd.c (learn_status_cb): Adjust for recent change.
8706 scd:openpgp: Return key creation time as part of KEYPARIINFO.
8707 + commit 1ad84aabb410e56bea074b82a06fe32b2897b660
8708 * scd/app-openpgp.c (send_keypair_info): Reaturn the key creation time
8709 as part of a KEYPAIRINFO.
8710 (do_readkey): Do not return the KEY-TIME anymore.
8712 agent: Allow signing with card key even without a stub key.
8713 + commit 638526d37fee0a1febac9d29fab384b913819fc9
8714 * agent/call-scd.c (agent_card_serialno): Allow NULL for R_SERIAL.
8715 (struct readkey_status_parm_s): New.
8716 (readkey_status_cb): New.
8717 (agent_card_readkey): Add optional arg R_KEYREF and change all
8719 * agent/findkey.c (key_parms_from_sexp): Allow also a "public-key".
8720 * agent/divert-scd.c (ask_for_card): Allow for SHADOW_INFO being NULL.
8721 * agent/pksign.c (agent_pksign_do): Fallback to sign with an on-card
8722 if there is no stub key yet. Create the stub key. Also fixed a
8723 misnaming between s_pkey and s_skey.
8725 2020-02-12 Werner Koch <wk@gnupg.org>
8727 gpg: Rename the struct card_key_info_s.
8728 + commit 8c63430d1a40a70ff8b4ddf1ed0fcabf9c0afbcc
8729 * g10/call-agent.h (struct card_key_info_s): Rename to ...
8730 (struct keypair_info_s): this.
8731 (keypair_info_t): New. Use this everywhere instead of
8733 * g10/call-agent.c (agent_scd_free_keyinfo): Rename to ..
8734 (free_keypair_info): this. Change all callers.
8736 card: Fix parsing of the received card_list.
8737 + commit 125c959677d55a8cf663c2dc248a3fc6f9be50bb
8738 * tools/card-call-scd.c (scd_cardlist): Allow for SERIALNO without any
8741 card: List more info for an OpenPGP key.
8742 + commit 1abfce82bd525de2976c31b83bb0e67e33364e58
8743 * tools/gpg-card.h (struct pubkey_s): Add field created.
8744 * tools/card-keys.c (parse_key_record): Set that field.
8745 * tools/gpg-card.c (print_shax_fpr): Print the fingerprint without
8746 spaces for easier c+p.
8747 (list_one_kinfo): Print the actual used fingerprint and creation date
8750 card: New option --no-key-lookup.
8751 + commit 2c6092bc5d794ae36cbf2f6b62337dc23f57bf3e
8752 * tools/gpg-card.h (opt): Add var no_key_lookup.
8753 * tools/gpg-card.c (oNoKeyLookup): New const.
8754 (opts): New option --no-key-lookup.
8755 (list_one_kinfo): Add arg no_key_lookup and implement.
8756 (list_all_kinfo): Add arg no_key_lookup.
8757 (list_openpgp, list_piv, list_card): Ditto.
8758 (cmd_list): New option --no-key-lookup.
8760 2020-02-11 Werner Koch <wk@gnupg.org>
8762 gpg: Improve key creation direct from the card.
8763 + commit 9c719c9c1ff34cc06a0fef2bfe29cfd7182753eb
8764 * g10/call-agent.c (readkey_status_cb): New.
8765 (agent_scd_readkey): Add new arg r_keytime and allow NULL for
8766 r_result. Change all callers.
8767 (agent_readkey): Minor code reformatting.
8768 * g10/keygen.c (pCARDKEY): New.
8769 (struct para_data_s): Add u.bool.
8770 (get_parameter_bool): New.
8771 (do_create_from_keygrip): Add arg cardkey and make use of it.
8772 (ask_algo): Add args r_cardkey and r_keytime. Read the keytime of the
8773 selected card key and return it.
8774 (generate_keypair): Store CARDKEY and KEYTIME.
8775 (do_generate_keypair): Pass CARDKEY to do_create_from_keygrip.
8776 (generate_subkeypair): Ditto.
8778 scd:openpgp: Send a KEY-TIME status with READKEY.
8779 + commit 77ea916533c5ca918b17ce83f6cc1b1afbd31e55
8780 * scd/app-openpgp.c (retrieve_fprtime_from_card): New.
8781 (do_readkey): Send a KEY_TIME status.
8783 card: First code to actually create openpgp keys.
8784 + commit 6bc7318ef55017e1aca6e52899fd0b223da7cfc1
8785 * tools/gpg-card.c (generate_all_openpgp_card_keys): Add demo key
8787 (generate_key): Allow generatiing one OpenPGP key.
8789 scd:openpgp: Optional allow for lowercase keyrefs.
8790 + commit 323548acd9defde0a8ea7d74c18cd4a1b339ff2e
8791 * scd/app-openpgp.c (do_readkey): Use case insensitive match of the
8793 (do_writekey, do_sign, do_auth, do_decipher): Ditto.
8795 scd:openpgp: Allow auto-changing of the key attributes in genkey.
8796 + commit d7d75da50543bc7259c5a6e6367b58cbca7f1b7b
8797 * scd/app-openpgp.c (struct app_local_s): Add field keyalgo.
8798 (parse_algorithm_attribute): Store the new keyalgo field.
8799 (change_keyattr): Change info message.
8800 (change_keyattr_from_string): Rewrite to also accept a keyref and a
8802 (do_genkey): Change the keyattr if a keyalgo string is given.
8804 common: Extend the openpgp_curve_to_oid function.
8805 + commit 24095101a5069f15a9aea7512498ac436a76814a
8806 * common/openpgp-oid.c (openpgp_curve_to_oid): Add optional arg R_NBITS.
8809 2020-02-10 Werner Koch <wk@gnupg.org>
8811 doc: Improve the warning section of the gpg man page.
8812 + commit 113a8288b85725f7726bb2952431deea745997d8
8813 * doc/gpg.texi: Update return valeu and warning sections.
8815 2020-02-10 Werner Koch <wk@gnupg.org>
8818 build: Always use EXTERN_UNLESS_MAIN_MODULE pattern.
8819 + commit 6aff8a132815a84bab69401c1e7de96ec549fbf2
8820 * common/util.h (EXTERN_UNLESS_MAIN_MODULE): Add the definion only
8821 here but now without the Norcroft-C. Change all other places where it
8823 * common/iobuf.h (iobuf_debug_mode): Declare unconditionally as
8825 * common/iobuf.c (iobuf_debug_mode): Define it here.
8826 * agent/gpg-agent.c (INCLUDED_BY_MAIN_MODULE): Define here and also in
8827 all main modules of all other programs.
8829 * g10/main.h: Put util.h before the local header files.
8831 2020-02-10 Werner Koch <wk@gnupg.org>
8833 gpg: Make really sure that --verify-files always returns an error.
8834 + commit 5681b8eaa44005afdd30211b47e5fb1a799583dd
8835 * g10/verify.c (verify_files): Track the first error code.
8837 card: Remove command "key-attr" and hack on "generate".
8838 + commit 438b7881ba0bf4e5fd8e5d5212601e5691f2aafe
8839 * tools/gpg-card.h (struct key_attr): Remove.
8840 (struct key_info_s): Remove key_attr. Add keyalgo and keyalgo_id.
8841 * tools/card-call-scd.c (learn_status_cb): Rework the key-attr info.
8842 * tools/gpg-card.c (list_one_kinfo): Always show the algorithm; if
8843 there is no key show the key attributes instead.
8844 (list_openpgp): Do not print the "Key attributes".
8845 (generate_key): Factor the repalce key pormpt out to ...
8846 (ask_replace_keys): new.
8847 (generate_openpgp): Rename to generate_all_openpgp_card_keys and add
8849 (generate_generic): Rename to generate_key. Prepare generation of a
8851 (cmd_generate): Revamp.
8852 (ask_card_rsa_keysize): Remove.
8853 (ask_card_keyattr): Remove.
8854 (do_change_keyattr): Remove.
8855 (cmd_keyattr): Remove.
8856 (enum cmdids): Remove cmdKEYATTR.
8858 (dispatch_command): Ditto.
8859 (interactive_loop): Ditto.
8861 scd:openpgp: Let the genkey function also accept a full keyref.
8862 + commit fb6ff7ead7dff33541b595f3e8d5342f9c7a6d6c
8863 * scd/app-openpgp.c (send_key_attr): Use log_assert.
8864 (do_genkey): Allow prefix.
8866 common: Extend the new get_keyalgo_string function.
8867 + commit 332a72f7340895e7db1e9c5f89046f722bb7465b
8868 * common/openpgp-oid.c (openpgp_oid_or_name_to_curve): New.
8869 (get_keyalgo_string): Use it.
8871 2020-02-09 Werner Koch <wk@gnupg.org>
8873 common: Remove duplicated call to a function.
8874 + commit d1c518cdc9330c2dd4034efc544de0dd6ec73ea1
8875 * common/openpgp-oid.c (openpgp_oid_to_str): Remove duplicated call.
8877 common: New function get_keyalgo_string.
8878 + commit 3a1fa13eedb969b561bae18cd3d7c2fb0b63d6ab
8879 * common/openpgp-oid.c (struct keyalgo_string_s): New.
8880 (keyalgo_strings): New.
8881 (keyalgo_strings_size, keyalgo_strings_used): New.
8882 (get_keyalgo_string): New.
8884 common: Add OpenPGP<->Gcrypt pubkey id mapping functions.
8885 + commit 49c891a9bfac24a1d95e76d33d44a49426247777
8886 * g10/misc.c (map_pk_gcry_to_openpgp): Move to ...
8887 * common/openpgp-oid.c (map_gcry_pk_to_openpgp): here and rename.
8888 Change all 4 callers.
8889 (map_openpgp_pk_to_gcry): New.
8891 card: Support brainpool curves in the generate command.
8892 + commit 9df9996b415ee671a0f22b6936745f829884eda2
8893 * tools/gpg-card.c (cmd_generate): Add brainpool curves and dummy name
8896 2020-02-03 Werner Koch <wk@gnupg.org>
8898 sm: New option --issuer-der for the listkey commands.
8899 + commit 2e5ab34496fe7e1b9bd2194ab59a58cf44ca9d1e
8900 * sm/server.c (do_listkeys): Implement new option.
8902 2020-01-21 Werner Koch <wk@gnupg.org>
8904 dirmngr: Fix building w/o LDAP support.
8905 + commit d8973975e7636ec0f007575a0bede92147d835f8
8906 * dirmngr/Makefile.am: Conditionally build dirmngr_ldap.
8908 gpg: Fix printing of keyring name (regression in master)
8909 + commit bf931299e846fa47bcabe3716ec82af7c3290ce5
8910 * g10/keydb.c (keydb_get_resource_name):
8912 2020-01-20 Werner Koch <wk@gnupg.org>
8914 tools: Let watchgnupg determine the socket name via gpgconf.
8915 + commit e0d9181ad11aaf7e68231db4b3708978a9a52fd6
8916 * tools/watchgnupg.c: Include sys/wait.h.
8917 (GNUPG_DEF_COPYRIGHT_LINE): Add a default value for standalone
8920 (main): Use a default socket name and add option --homedir.
8922 2020-01-17 Werner Koch <wk@gnupg.org>
8924 gpgconf,w32: Print a warning for a suspicious homedir.
8925 + commit 7f12fb55f9757cd68147eca8f162c85378538405
8926 * tools/gpgconf.c (list_dirs): Check whether the homedir has been
8927 taken from the registry.
8929 2020-01-17 NIIBE Yutaka <gniibe@fsij.org>
8931 gpg: Prefer card key on use in multiple subkeys situation.
8932 + commit 8748c50bfaa8df2b1e59c301d15fd6b9ddbd9c47
8933 * g10/call-agent.c (keyinfo_status_cb): Parse more fields.
8934 (agent_probe_secret_key): Use KEYINFO and returns bigger value
8935 representing the preference.
8936 * g10/getkey.c (finish_lookup): For subkeys, select one
8937 by using value of agent_probe_secret_key.
8939 gpg: Prepare enhancement of agent_probe_secret_key.
8940 + commit 853d5b7677ea01f65c9bc5160cd8509b62f486f7
8941 * g10/call-agent.c (agent_probe_secret_key): Change semantics of
8943 * g10/call-agent.h (agent_probe_secret_key): Change comment.
8944 * g10/delkey.c (do_delete_key): Follow the change.
8945 * g10/getkey.c (get_seckey, parse_def_secret_key): Likewise.
8946 (finish_lookup, have_secret_key_with_kid): Likewise.
8947 * g10/gpgv.c (agent_probe_secret_key): Likewise.
8948 * g10/keyedit.c (keyedit_menu, quick_find_keyblock): Likewise.
8949 (show_key_with_all_names_colon): Likewise.
8950 * g10/revoke.c (gen_desig_revoke, gen_revoke): Likewise
8951 * g10/test-stubs.c (agent_probe_secret_key): Likewise.
8953 2020-01-16 Werner Koch <wk@gnupg.org>
8955 card: Allow switching of cards and applications.
8956 + commit bd85f9232ad639d4acba443272147c4fc01b1b65
8957 * tools/card-call-scd.c (struct card_cardlist_parm_s): Add field
8959 (card_cardlist_cb): Handle the new with_apps flag.
8960 (scd_switchcard): New.
8961 (scd_switchapp): New.
8963 (scd_serialno): Pass --all also in --demand mode.
8965 * tools/gpg-card.c (cmd_list): Simplify switching of cards. Add
8966 switching of alls. Print a list of apps per card.
8968 scd: New commands SWITCHCARD and SWITCHAPP.
8969 + commit 718555874efcbad502112449c7d15025cb193628
8970 * scd/app.c: Include membuf.h.
8971 (app_switch_current_card): New.
8972 (send_card_and_app_list): Factor code out to ...
8973 (send_serialno_and_app_status): new.
8974 (app_send_card_list): New.
8975 (app_send_active_apps): New.
8976 (app_switch_active_app): New.
8977 * scd/command.c (cmd_switchcard): New.
8978 (cmd_switchapp): New.
8979 (register_commands): Register new commands.
8980 (cmd_getinfo): New sub-commands "active_apps" and "all_active_apps".
8982 scd:piv: Remove debug code from a recent commit.
8983 + commit dd61164410ee185750d1aa55ee0e33dcab8f4542
8984 * scd/app-piv.c (ask_and_prepare_chv): here.
8986 gpg: Print better debug info in case of broken sig subpackets.
8987 + commit 3ccad75d76b9c17b9495c48df8dd4be46d3b3105
8988 * g10/parse-packet.c (enum_sig_subpkt): Print a hexdump.
8990 2020-01-16 NIIBE Yutaka <gniibe@fsij.org>
8992 gpg: Use "SCD KEYINFO" to get available card keys.
8993 + commit 8edd4b8b8cdcbdcf1986214d6d17cadb604ddf54
8994 * g10/skclist.c (enum_secret_keys): Don't use agent_scd_cardlist and
8995 agent_scd_serialno, but agent_scd_keyinfo.
8997 gpg: Add agent_scd_keyinfo to retrieve available card keys.
8998 + commit 8240a70c31a8e1617de64c42168cf3299b85b39e
8999 * g10/call-agent.c (card_keyinfo_cb, agent_scd_free_keyinfo)
9000 (agent_scd_keyinfo): New.
9001 * g10/call-agent.h: Define new functions.
9003 gpg: default-key: Simply don't limit by capability.
9004 + commit 1aa2a0a46dc19e108b79dc129a3b0c5576d14671
9005 * g10/getkey.c (parse_def_secret_key): Remove the check.
9007 2020-01-15 NIIBE Yutaka <gniibe@fsij.org>
9009 gpg: Cert only key should be usable with --default-key.
9010 + commit 9287f9e87b215e79fdb7fb9dfdf2b47666e6ea2f
9011 * g10/getkey.c (parse_def_secret_key): Allow cert-only key.
9013 2020-01-13 Werner Koch <wk@gnupg.org>
9015 scd: Make the PIN cache robust against wrongdoing of gpg-agent.
9016 + commit 2dd6b4b998dd6e156e2e75ede0f40fb768c69f40
9017 * scd/app-openpgp.c (struct app_local_s): New field pincache.
9018 (cache_pin): Set it.
9019 (pin_from_cache): Consult it.
9020 * scd/app-piv.c (struct app_local_s): New field pincache.
9021 (cache_pin): Set it.
9022 (pin_from_cache): Consult it.
9024 scd:piv: Implement PIN cache.
9025 + commit 60502c3606ee425d07c84b175ab310368c12b0ad
9026 * scd/command.c (pincache_put): Add arg pinlen and change all callers
9028 * scd/app-piv.c (cache_pin): New.
9029 (pin_from_cache): New.
9030 (ask_and_prepare_chv): Add args no_cache and r_unpaddedpinlen. Take
9031 PIN from the cache. Return the unpadded length.
9032 (verify_chv): Add arg ctrl. Cache the PIN.
9033 (do_change_chv): Clear PIN cache.
9035 agent: Avoid multiple calls to scd for KEYINFO.
9036 + commit 2e86cca7f4181310bebfd795c059369ba03a8d8b
9037 * agent/command.c (struct server_local_s): Add last_card_keyinfo.
9038 (eventcounter): Add maybe_key_change.
9039 (cmd_genkey, cmd_scd, cmd_import_key, cmd_delete_key): Bump new
9041 (cmd_keyinfo): Cache the keyinfo from the card.
9042 (start_command_handler): Release the cache.
9044 agent: Replace free by xfree in recently added code.
9045 + commit aaef0fc3a743d06012c4a7fd8caa80d969863cc9
9046 * agent/call-scd.c (agent_card_free_keyinfo): Use xfree.
9048 gpg,sm: Avoid useless ASFW diagnostic in loopback mode.
9049 + commit 14aa797bb8f3f7d3f4ef66b8fcdac7439000b49a
9050 * common/sysutils.c (inhibit_set_foregound_window): New var.
9051 (gnupg_inhibit_set_foregound_window): New func.
9052 (gnupg_allow_set_foregound_window): Use var.
9053 * g10/gpg.c (main): Inhibit in loopback mode.
9054 * sm/gpgsm.c (main): Ditto.
9056 scd: Fix memory leak in command READKEY.
9057 + commit 2b843be5ac9f37c9faf2d9ab720eafceb3d534ad
9058 * scd/command.c (cmd_readcert): Replace xstrdup by xtrystrdup.
9059 (cmd_readkey): Ditto. Fix memory leak.
9061 scd: Make SERIALNO --all work correctly and use it.
9062 + commit 0e48aa084921c77944d4802c86ac33c607c519af
9063 * scd/app.c (maybe_switch_app): Factor reselect code out to ...
9064 (run_reselect): new.
9065 (app_write_learn_status): Tweak diagnostics.
9066 (app_do_with_keygrip): Run reselect if a card has more than one
9067 switchable application.
9069 * agent/call-scd.c (agent_card_serialno): Ditto.
9070 * tools/card-call-scd.c (start_agent): Use option --all with SERIALNO.
9071 (scd_serialno): Ditto.
9073 2020-01-13 NIIBE Yutaka <gniibe@fsij.org>
9075 agent: handle SSH operation by KEYGRIP.
9076 + commit 15028627a1655b7ad1835fbd0a32cf30debe807a
9077 * agent/command-ssh.c (card_key_available): Supply KEYINFO argument.
9078 Call agent_card_readkey by KEYGRIP of KEYINFO.
9079 Don't use $AUTHKEYID, but IDSTR of KEYINFO.
9080 (ssh_handler_request_identities): Follow the change of
9083 agent: Extend agent_card_getattr with KEYGRIP.
9084 + commit c31266716dd69fee7bd64cf1e33d7631cd328e72
9085 * agent/agent.h (struct card_key_info_s): KEYGRIP null terminated.
9086 (agent_card_getattr): Add KEYGRIP argument.
9087 * agent/call-scd.c (agent_card_getattr): Handle KEYGRIP argument.
9088 (card_keyinfo_cb): Make KEYGRIP null terminated.
9089 * agent/command.c (cmd_readkey): Follow the change.
9091 2020-01-10 NIIBE Yutaka <gniibe@fsij.org>
9093 scd: Implement direct access by KEYGRIP for GETATTR and READKEY.
9094 + commit 0cfded4bb1484366c785c268f2fb1061c7be5fdb
9095 * scd/app-openpgp.c (do_readkey): Handle KEYGRIP access.
9096 * scd/command.c (do_readkey): New.
9097 (cmd_readkey): Use do_readkey supporting KEYGRIP access.
9098 (cmd_getattr): Supporting KEYGRIP access.
9100 2020-01-09 Werner Koch <wk@gnupg.org>
9102 scd:openpgp: Implement PIN cache.
9103 + commit 63bda3aad8ec4163b0241f64e8b587d665d650c3
9104 * scd/app-openpgp.c (wipe_and_free, wipe_and_free_string): Use them
9105 everywere where we do a wipememory followed by a free.
9106 (pin2hash_if_kdf): Change interface. The input PIN is not anymore
9107 changed. Further there are no more assumptions about the length of
9108 the provided buffer.
9109 (cache_pin): Restructure.
9110 (chvno_to_keyref): New.
9111 (pin_from_cache): New.
9112 (verify_a_chv): Add arg CTRL. Adjust for changed pin2hash_if_kdf.
9113 Chache and retrieve the PIN here.
9114 (verify_chv2): Do not cache the PIN here.
9115 (build_enter_admin_pin_prompt): Add arg 'r_remaining'.
9116 (verify_chv3): Adjust for changed pin2hash_if_kdf. Implement the PIN
9118 (do_change_pin): Clear the PIN cache. Do not change the PIN here.
9119 Lots of adjustments to cope with the chnaged pin2hash_if_kdf.
9120 (do_sign): Do not cache the PIN here.
9122 scd: Use a scdaemon internal key to protect the PIN cache IPC.
9123 + commit ce5a7fb72b599de592a087867768ac1f81fd2989
9124 * agent/call-scd.c (handle_pincache_put): Do not decrypt.
9125 (handle_pincache_get): New.
9126 (inq_needpin): Call it.
9127 * scd/command.c (set_key_for_pincache): New.
9128 (pincache_put): Restructure and set key.
9129 (pincache_get): Ditto.
9131 2020-01-09 NIIBE Yutaka <gniibe@fsij.org>
9133 agent: SSH: SCD KEYINFO to list available keys.
9134 + commit 57b8ed61ab93dd5aa73159f6db8adeb83d54b85f
9135 * agent/agent.h (agent_card_cardlist): Remove.
9136 (agent_card_keyinfo): Add CAP argument.
9137 * agent/call-scd.c (card_cardlist_cb): Remove.
9138 (agent_card_cardlist): Remove.
9139 (agent_card_keyinfo): Support CAP constraint.
9140 * agent/command-ssh.c (card_key_list): Remove.
9141 (ssh_handler_request_identities): Use SCD KEYINFO command.
9142 * agent/command.c (cmd_keyinfo): Follow the API change.
9143 * agent/divert-scd.c (ask_for_card): Likewise.
9145 2020-01-07 Werner Koch <wk@gnupg.org>
9147 scd: First changes to implement a PIN cache.
9148 + commit fbf97a7856bd2f80a1714f63417c59d6c604d333
9149 * scd/command.c (pincache_put): New. Uses a dummy key for now.
9150 (pincache_get): New.
9151 * scd/app.c (select_application): Flush the PIN cache.
9152 (scd_update_reader_status_file): Ditto.
9153 (maybe_switch_app): Call the new prep_reselect function.
9154 (app_write_learn_status): Ditto.
9155 * scd/app-openpgp.c (cache_pin): New helper to cache a PIN.
9156 (verify_chv2): Call it.
9157 (verify_chv3): Call it.
9158 (clear_chv_status): Call it.
9159 (do_change_pin): Call it.
9161 * scd/app-common.h (struct app_ctx_s): Add function 'prep_select'.
9162 * scd/app-openpgp.c (do_prep_reselect): New stub function.
9163 (app_select_openpgp): Set new stub function.
9164 * scd/app-piv.c (do_prep_reselect): New stub function.
9165 (app_select_piv): Set new stub function.
9167 * scd/app-common.h (struct app_ctx_s): Add parameter ctrl to setattr,
9168 sign, auth, decipher, and check_pin. Change all implementations and
9169 callers to pass such a parameter.
9171 agent: First changes to support a PIN cache for scdaemon.
9172 + commit d5c00354bb02ae6cb2e3a72136a1a95cb2db7f3f
9173 * agent/agent.h (CACHE_MODE_PIN): New.
9174 * agent/cache.c (housekeeping): Special handling of new new mode.
9175 (agent_flush_cache): Ditto. Add arg 'pincache_only' and change
9177 (agent_put_cache): Support new mode.
9178 (agent_get_cache): Ditto.
9179 * agent/call-scd.c (wait_child_thread): Flush the entire PIN cache.
9181 (agent_card_killscd): Ditto.
9182 (handle_pincache_put): New. Uses a dummy encryption key for now.
9183 (pincache_put_cb): New.
9184 (inq_needpin): Prepare for PINCACHE_GET inquiry.
9185 (learn_status_cb): Handle the PINENTRY_PUT status line.
9186 (get_serialno_cb): Ditto
9187 (agent_card_pksign): Ditto.
9188 (padding_info_cb): Ditto.
9189 (agent_card_readcert): Ditto.
9190 (agent_card_readkey): Ditto.
9191 (agent_card_writekey): Ditto.
9192 (card_getattr_cb): Ditto.
9193 (card_cardlist_cb): Ditto.
9194 (card_keyinfo_cb): Ditto.
9195 (pass_status_thru): Ditto.
9197 kbx: Make sure the tables are joined in a select.
9198 + commit 41a882443622fe08ebaa75bf358e83630bbb8631
9199 * kbx/backend-sqlite.c (run_select_statement): Join the tables.
9201 2020-01-03 Werner Koch <wk@gnupg.org>
9203 scd: Minor fix for readibility.
9204 + commit c0625c15c1fb6d06202669eb8caff2710377952d
9205 * scd/command.c (open_card_with_request): Use NULL instead of
9208 2020-01-02 Werner Koch <wk@gnupg.org>
9210 kbx: Initial support for an SQLite backend.
9211 + commit f4da1455c7ab858ea9007d0813774c6d04cd4576
9212 * kbx/backend-sqlite.c: New.
9213 * kbx/Makefile.am (keyboxd_SOURCES): Add it.
9214 (keyboxd_CFLAGS, keyboxd_LDADD): Add SQLite flags.
9215 * kbx/backend.h (enum database_types): Add DB_TYPE_SQLITE.
9216 (be_sqlite_local_t): New typedef.
9217 (struct db_request_part_s): Add field besqlite.
9218 * kbx/backend-support.c (strdbtype): Add string for DB_TYPE_SQLITE.
9219 (be_generic_release_backend): Support SQLite.
9220 (be_release_request): Ditto.
9221 (be_find_request_part): Ditto.
9222 (is_x509_blob): Rename to ...
9223 (be_is_x509_blob): this and make global.
9224 * kbx/frontend.c (kbxd_set_database): Detect ".db" suffix and use that
9226 (kbxd_search): Support SQLite
9227 (kbxd_store): Ditto.
9228 (kbxd_delete): Ditto.
9229 * kbx/frontend.h (kbxd_store_modes): Move to ...
9230 * kbx/keyboxd.h (enum kbxd_store_modes): here.
9231 * kbx/keyboxd.c (main): USe pubring.db for now. This is a temporary
9234 * kbx/backend-kbx.c (be_kbx_delete): Remove unused var cert.
9236 2019-12-23 Werner Koch <wk@gnupg.org>
9238 gpg: Fix output of --with-secret if a pattern is given.
9239 + commit 59d49e4a0ac2ed27803507cb7d2c6af166527bd5
9240 * g10/keylist.c (list_one): Probe for a secret key in --with-secret
9243 kbx: Change keyboxd to work only with one database.
9244 + commit 8a556c23a29776b2b5aa1d563e779b6ae0139dff
9245 * kbx/frontend.c (the_database): New var.
9246 (db_desc_t): Remove.
9247 (kbxd_add_resource): Renamed to ...
9248 (kbxd_set_database): this. Simplify.
9249 (kbxd_search): Change to use only one database.
9250 (kbxd_store): Ditto.
9251 (kbxd_delete): Ditto.
9253 2019-12-19 NIIBE Yutaka <gniibe@fsij.org>
9255 scd: Enhance KEYINFO command to limit listing with capability.
9256 + commit b2a2df174b216881387ae849770d875cd74984c2
9257 * scd/app-common.h: Add CAPABILITY argument to the WITH_KEYGRIP.
9258 (app_do_with_keygrip): Likewise.
9259 * scd/app-openpgp.c (send_keyinfo_if_available): New.
9260 (do_with_keygrip): Support listing with CAPABILITY.
9261 * scd/app-piv.c (do_with_keygrip): Likewise.
9262 * scd/app.c (maybe_switch_app): Supply the argument.
9263 (app_do_with_keygrip): Add CAPABILITY argument.
9264 * scd/command.c (cmd_pksign, cmd_pkauth): Supply the argument.
9265 (cmd_pkdecrypt): Likewise.
9266 (cmd_keyinfo): Support listing with CAPABILITY.
9268 2019-12-06 Werner Koch <wk@gnupg.org>
9270 sm: Add special case for expired intermediate certificates.
9271 + commit d246f317c04862cacfefc899c98da182ee2805a5
9272 * sm/gpgsm.h (struct server_control_s): Add field 'current_time'.
9273 * sm/certchain.c (find_up_search_by_keyid): Detect a corner case.
9274 Also simplify by using ref-ed cert objects in place of an anyfound
9277 dirmngr: Tell gpg about WKD looks resulting from a cache.
9278 + commit 8a6ecc6ff52b9ec045e200cc200977707278f89c
9279 * dirmngr/server.c (proc_wkd_get): Print new NOTE status
9280 "wkd_cached_result".
9281 * g10/call-dirmngr.c (ks_status_cb): Detect this and print a not ein
9284 2019-12-04 Werner Koch <wk@gnupg.org>
9286 gpg: Use AKL for angle bracketed mail address with -r.
9287 + commit 1abb39fdaf44c2477719fbea43ef8042d8b9033e
9288 * g10/getkey.c (get_pubkey_byname): Extend is_mbox checking.
9289 (get_best_pubkey_byname): Ditto.
9291 2019-11-28 Werner Koch <wk@gnupg.org>
9293 gpg: Change the way v5 fingerprints are printed.
9294 + commit d2ff62dbdf891319e6db5850c6077c85e5eb784e
9295 * g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): Increase by one.
9296 * g10/keyid.c (format_hexfingerprint): Change v5 key formatting.
9298 gpg: Implement insert, update, and delete via keyboxd.
9299 + commit 7244666926929f3b2475d8cab50db3ff620cdbe3
9300 * g10/call-keyboxd.c (struct store_parm_s): New.
9301 (store_inq_cb): New.
9302 (keydb_update_keyblock): Implement the keyboxd part.
9303 (keydb_insert_keyblock): Ditto.
9304 (keydb_delete_keyblock): Ditto.
9305 (keydb_search_reset): Clear ubid flag. Also use the correct union
9306 member for building the search string.
9308 kbx: Add new command DELETE.
9309 + commit 490e0cd0bab8d8d06ffdc5b8977964d5a76a8df0
9310 * kbx/kbxserver.c (cmd_delete): New.
9311 * kbx/frontend.c (kbxd_delete): New.
9312 * kbx/backend-kbx.c (be_kbx_delete): New.
9314 kbx: Redefine the UBID which is now the primary fingerprint.
9315 + commit 915297705af6f1db74dacf0d6665b83eb0a58459
9316 * common/util.h (UBID_LEN): New. Use it at all places.
9317 * kbx/keybox-blob.c (create_blob_finish): Do not write the UBID item.
9318 * kbx/keybox-dump.c (print_ubib): Remove.
9319 (_keybox_dump_blob): Do not print the now removed ubid flag.
9320 * kbx/keybox-search-desc.h (struct keydb_search_desc): Use constants
9321 for the size of the ubid and grip.
9322 * kbx/keybox-search.c (blob_cmp_ubid): New.
9323 (has_ubid): Make it a simple wrapper around blob_cmp_ubid.
9324 (keybox_get_data): Add arg 'r_ubid'.
9326 * kbx/frontend.h (enum kbxd_store_modes): New.
9327 * kbx/kbxserver.c (cmd_store): Add new option --insert.
9329 * kbx/backend-cache.c (be_cache_initialize): New.
9330 (be_cache_add_resource): Call it here.
9331 * kbx/backend-kbx.c (be_kbx_seek): Remove args 'fpr' and 'fprlen'.
9332 (be_kbx_search): Get the UBID from keybox_get_data.
9333 * kbx/backend-support.c (be_fingerprint_from_blob): Replace by ...
9334 (be_ubid_from_blob): new. Change all callers.
9336 * kbx/frontend.c (kbxd_add_resource): Temporary disable the cache but
9337 use the new cache init function.
9338 (kbxd_store): Replace arg 'only_update' by 'mode'. Seek using the
9339 ubid. Take care of the mode.
9341 2019-11-27 Werner Koch <wk@gnupg.org>
9343 dirmngr: Replace no-strict-overflow pragma by wrapv pragma.
9344 + commit f59455d054a79068ebf480cd28f02993c1facf3b
9345 * dirmngr/dirmngr.c (time_for_housekeeping_p): Build with --fwrapv.
9346 Replace protecting macro.
9348 gpg: Move a keydb function to another file.
9349 + commit 61f41cdce5b60b9df05d6531ab1b7aab84ada659
9350 * g10/keydb.c (build_keyblock_image): Move to ...
9351 * g10/build-packet.c (build_keyblock_image): here.
9353 2019-11-26 Werner Koch <wk@gnupg.org>
9355 dirmngr: Rework of the LDAP code, part 1.
9356 + commit 264c15c72fe050f5e8d2f1cb2444a459df6fe99f
9357 * dirmngr/http.h (struct parsed_uri_s): Add flag is_ldap.
9358 * dirmngr/http.c (do_parse_uri): Set flag. Do not error out for a
9359 missing slashes in an http scheme if NO_SCHEME_CHECK is active.
9360 * dirmngr/t-http.c (main): Print new flag.
9361 * dirmngr/ks-engine-ldap.c (ks_ldap_help): Use flag instead of
9362 checking the scheme.
9363 * dirmngr/ldap-parse-uri.c (ldap_uri_p): Re-implement using
9365 * dirmngr/t-ldap-parse-uri.c (main): Add option --verbose.
9367 dirmngr: Make building with a TLS library mandatory.
9368 + commit 1009e4e5f71347a1fe194e59a9d88c8034a67016
9369 * configure.ac: Do not build dirmngr if no TLS is available.
9370 * dirmngr/http.c: Remove all uses of the USE_TLS macro.
9372 doc: Fixed variable naming.
9373 + commit 8fb14d3b3f9c5c27ff8b9f0e7e7207ec388687ff
9374 * kbx/keybox.h: Fix naming of arguments.
9375 * scd/ccid-driver.c (print_error) [TEST]: Add missing break. Note
9376 that this is anyway an impossible case.
9378 2019-11-25 Werner Koch <wk@gnupg.org>
9380 agent: Improve --debug-pinentry diagnostics.
9381 + commit c8783b3a204b371d44b8953429652101cf2e4d1b
9382 * agent/call-pinentry.c (atfork_cb): Factor code out to ...
9385 2019-11-23 Werner Koch <wk@gnupg.org>
9387 wkd: Let --install-key write a template policy file.
9388 + commit 50cd1a58f3a612704a0056386e1d5cd7cb28d57d
9389 * tools/wks-util.c (ensure_policy_file): New.
9390 (wks_cmd_install_key): Call it.
9392 2019-11-19 NIIBE Yutaka <gniibe@fsij.org>
9394 po: Apply removal of dirmngr/ldap-wrapper-ce.c.
9395 + commit 116dfb20013b73b950bbcee1d1f6c2a5d1d7ffdd
9396 * po/POTFILES.in: Update.
9398 2019-11-18 Werner Koch <wk@gnupg.org>
9400 dirmngr,gpg: Better diagnostic in case of bad TLS certificates.
9401 + commit d9c7935188483dae381c12e7eef19072bbade4b3
9402 * doc/DETAILS: Specify new status code "NOTE".
9403 * dirmngr/ks-engine-http.c (ks_http_fetch): Print a NOTE status for a
9404 bad TLS certificate.
9405 * g10/call-dirmngr.c (ks_status_cb): Detect this status.
9407 dirmngr: Forward http redirect warnings to gpg.
9408 + commit ae9acb8745c1654b446b3cd5b9322b235723d9cb
9409 * dirmngr/http.c: Include dirmngr-status.h
9410 (http_prepare_redirect): Emit WARNING status lines for redirection
9412 * dirmngr/http.h: Include fwddecl.h.
9413 (struct http_redir_info_s): Add field ctrl.
9414 * dirmngr/ks-engine-hkp.c (send_request): Set it.
9415 * dirmngr/ks-engine-http.c (ks_http_fetch): Set it.
9416 * g10/call-dirmngr.c (ks_status_cb): Detect the two new warnings.
9418 2019-11-15 NIIBE Yutaka <gniibe@fsij.org>
9420 scd,ccid: Fix detection of supported readers with pinpad.
9421 + commit 1cb9a831f6eedfa4c8950b8a7706ea77b74693f7
9422 * scd/ccid-driver.c (ccid_transceive_secure): When not supported,
9423 return CCID_DRIVER_ERR_NOT_SUPPORTED.
9425 2019-11-12 Werner Koch <wk@gnupg.org>
9427 dirmngr: Use IPv4 or IPv6 interface only if available.
9428 + commit 12def3a84e0358528347107dc88cfe740a54941f
9429 * dirmngr/dns-stuff.c (cached_inet_support): New variable.
9430 (dns_stuff_housekeeping): New.
9431 (check_inet_support): New.
9432 * dirmngr/http.c (connect_server): Use only detected interfaces.
9433 * dirmngr/dirmngr.c (housekeeping_thread): Flush the new cache.
9435 2019-11-12 Andre Heinecke <aheinecke@gnupg.org>
9437 dirmngr: Tune down err on missing ldapservers file.
9438 + commit 40daa0bc0bc87a521713d7dd1568f3874759a143
9439 * dirmngr/dirmngr.c (parse_ldapservers_file): Tune down error
9440 in case no such file exists.
9442 2019-11-11 Werner Koch <wk@gnupg.org>
9444 dirmngr: Remove cruft from dirmngr_ldap.
9445 + commit 4c295646ba0e175743e6be13457308c1e6d21dd3
9446 * configure.ac (USE_LDAPWRAPPER): Remove ac_define and conditional.
9447 * dirmngr/Makefile.am: Remove USE_LDAPWRAPPER and considere true.
9448 * dirmngr/ldap-wrapper-ce.c: Remove.
9449 * dirmngr/ldap-wrapper.c: Remove USE_LDAPWRAPPER stuff. Minor chnages
9451 * dirmngr/dirmngr_ldap.c: Remove USE_LDAPWRAPPER stuff. Remove
9453 (fetch_ldap) [W32]: Use ldap_sslinit.
9455 gpg: Forbid the creation of SHA-1 third-party key signatures.
9456 + commit dd18be979e138dd3712315ee390463e8ee1fe8c1
9457 * g10/sign.c (SIGNHINT_KEYSIG, SIGNHINT_SELFSIG): New.
9458 (do_sign): Add arg signhints and inhibit SHA-1 signatures. Change
9460 (complete_sig): Add arg signhints and pass on.
9461 (make_keysig_packet, update_keysig_packet): Set signhints.
9463 dirmngr: Rename an enum value for clarity.
9464 + commit eebd43d5b688e99131fcbf8f8292a485b91402a2
9465 * dirmngr/ldapserver.h: Rename LDAPSERVER_OPT.
9467 2019-11-09 Werner Koch <wk@gnupg.org>
9469 gpgsm: Allow sepcification of ldaps servers.
9470 + commit 6e1c99bc397382f1ea2ba9d61a64328410adc95f
9471 * sm/gpgsm.h (struct keyserver_spec): Add field use_ldaps.
9472 * sm/gpgsm.c (parse_keyserver_line): Parse flags.
9473 * sm/call-dirmngr.c (prepare_dirmngr): Send ldaps flag to the dirmngr.
9475 * dirmngr/dirmngr.h (struct ldap_server_s): Add field use_ldaps.
9476 * dirmngr/ldapserver.c (ldapserver_parse_one): Parse flags.
9477 * dirmngr/ldap.c (start_cert_fetch_ldap): Call wrapper with --tls.
9479 * dirmngr/dirmngr_ldap.c: New option --tls.
9480 (fetch_ldap): Make use of that option.
9482 2019-11-07 Werner Koch <wk@gnupg.org>
9484 gpg: Fix a potential loss of key sigs during import with self-sigs-only.
9485 + commit 6701a38f8e4a35ba715ad37743b8505bfd089541
9486 * g10/import.c (import_one_real): Don't do the final clean in the
9489 gpg: Add option --allow-weak-key-signatures.
9490 + commit e624c41dbafd33af82c1153188d14de72fcc7cd8
9491 * g10/gpg.c (oAllowWeakKeySignatures): New.
9492 (opts): Add --allow-weak-key-signatures.
9494 * g10/options.h (struct opt): Add flags.allow_weak_key_signatures.
9495 * g10/misc.c (print_sha1_keysig_rejected_note): New.
9496 * g10/sig-check.c (check_signature_over_key_or_uid): Print note and
9499 gpg: Print rfc4880bis note only in verbose mode.
9500 + commit f4047f56058cf9be2aa362fc439846ce930da8c7
9501 * g10/gpg.c (main): Change condition for an info diagnostic.
9503 2019-11-06 Werner Koch <wk@gnupg.org>
9505 gpg: Remove an unused variable.
9506 + commit fd88b8847a371a2927f52afceeeb457b64cce162
9507 * g10/delkey.c (do_delete_key): here.
9509 gpg: Do not require --batch when using --log-file.
9510 + commit 584b65ad7e937710a4fc6db42d6849bb3449d6ef
9511 * g10/gpg.c (main): Remove a long standing FIXME.
9513 2019-10-28 NIIBE Yutaka <gniibe@fsij.org>
9515 scd,ccid: Fix GEMPC_EZIO handling.
9516 + commit c6702d77d936b3e9d91b34d8fdee9599ab94ee1b
9517 * scd/ccid-driver.c (ccid_transceive_secure): Fix for 08e6:34c2.
9519 2019-10-17 NIIBE Yutaka <gniibe@fsij.org>
9521 gpg: More fix of get_best_pubkey_byname.
9522 + commit e2c2b0fb2d9b31fa1b61803d04919645a9149996
9523 * g10/getkey.c (get_best_pubkey_byname): Remove useless req_usage
9526 gpg: Fix two other cases in get_best_pubkey_byname.
9527 + commit 286d4c607574e91f590512a1385bb3320cf8da77
9528 * g10/getkey.c (pubkey_cmp): Handle a primary key with
9529 PUBKEY_USAGE_ENC, and make sure new key is for encryption.
9530 (get_best_pubkey_byname): Add comment for ranking.
9532 doc: Fix documentation about --locate-keys.
9533 + commit 627a990f8e306d4f34bc503b303dc8b13616029e
9534 * doc/gpg.texi (--locate-keys): Remove mentioning signing keys.
9536 2019-10-16 NIIBE Yutaka <gniibe@fsij.org>
9538 gpg: Fix get_best_pubkey_byname to consider the first match.
9539 + commit f2734381ae1431e395a0bed16df2f4d5d13aa2c5
9540 * g10/getkey.c (get_best_pubkey_byname): Always use PK0 to search
9541 by get_pubkey_byname. Add initial call to pubkey_cmp to fill
9542 BEST at first before the loop.
9544 2019-10-15 Werner Koch <wk@gnupg.org>
9546 gpg: Also delete key-binding signature when deleting a subkey.
9547 + commit d1bc12d1b66e0657969a8eb846bdcd9bee717a7c
9548 * g10/delkey.c (do_delete_key): Simplify and correct subkey deletion.
9550 2019-10-15 NIIBE Yutaka <gniibe@fsij.org>
9552 gpg: Put the first key in candidates correctly.
9553 + commit 44604209c1cfe18532d13eda63d8c1f86a6e12ec
9554 * g10/getkey.c (get_best_pubkey_byname): After the call of
9555 get_pubkey_byname, set up CTX with KEYDB_SEARCH_MODE_LONG_KID to enter
9558 scd,ccid: Add 08e6:34c2 (GEMPC_EZIO).
9559 + commit c933c15d587a1c0df3f4b3bf37d8d15164dd318f
9560 * scd/ccid-driver.c (ccid_transceive_secure): Add pinpad support
9561 for 08e6:34c2 which supports extended APDU exchange.
9563 2019-10-09 NIIBE Yutaka <gniibe@fsij.org>
9565 gpg: The first key should be in candidates.
9566 + commit 7535f1d47a35e30f736f0e842844555f7a4a9841
9567 * g10/getkey.c (get_best_pubkey_byname): Handle the first key
9568 as the initial candidate for the selection.
9570 2019-10-07 Werner Koch <wk@gnupg.org>
9572 kbx: Implement update for the STORE command.
9573 + commit f4bdf8e590877e9bfddfd19a4e4167f6531c9fb1
9574 * kbx/backend-kbx.c (be_kbx_update): New.
9575 * kbx/frontend.c (kbxd_store): Call it.
9577 2019-10-07 NIIBE Yutaka <gniibe@fsij.org>
9579 gpg: Fix a memory leak in get_best_pubkey_byname.
9580 + commit e28572116fe4c586ba9d1e8f27389bf3f06e036b
9581 * g10/getkey.c (get_best_pubkey_byname): Free the public key parts.
9583 2019-10-03 Werner Koch <wk@gnupg.org>
9585 gpg: Ignore all SHA-1 signatures in 3rd party key signatures.
9586 + commit 7d9aad63c4f1aefe97da61baf5acd96c12c0278e
9587 * g10/sig-check.c (check_signature_over_key_or_uid): No cut-off date
9588 and remove debug output.
9590 gpg: Be prepared for chosen-prefix SHA-1 collisions in key signatures.
9591 + commit c4f2d9e3e1d77d2f1f168764fcdfed32f7d1dfc4
9592 * g10/sig-check.c (check_signature_over_key_or_uid): Reject cewrtain
9593 SHA-1 based signatures.
9595 2019-10-01 Werner Koch <wk@gnupg.org>
9597 gpg: Read the UBID from the keybox and detect wrong blob type.
9598 + commit 63dbc817e7dcc6edc757281f09e1ca80500ab2d1
9599 * g10/keydb-private.h (struct keydb_handle_s): Add fields for UBID.
9600 * g10/call-keyboxd.c (search_status_cb): New.
9601 (keydb_search): Set new UBID fields.
9603 kbx: Add first version of STORE command to keyboxd.
9604 + commit c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7
9605 * kbx/Makefile.am (keyboxd_CFLAGS): -DKEYBOX_WITH_X509.
9606 (keyboxd_LDADD): Add libksba.
9607 * kbx/kbxserver.c (cmd_store): New.
9608 * kbx/frontend.c (kbxd_store): New.
9609 * kbx/backend-support.c (is_x509_blob): New.
9610 (be_fingerprint_from_blob): New.
9611 * kbx/backend-kbx.c (be_kbx_seek): Add args FPR and FPRLEN.
9612 (be_kbx_insert): New.
9614 common: New function hex2fixedbuf.
9615 + commit 61765136cf92be2884603bc3fac020a1c6ed91f4
9616 * common/convert.c (hex2fixedbuf): New.
9618 2019-09-30 Werner Koch <wk@gnupg.org>
9620 gpg: Fix --recv-key in case of a given fingerprint.
9621 + commit a605dbb430b1f73ef974ad54f74679dfc0eefb18
9622 * g10/keyserver.c (keyserver_retrieval_screener): Compare against
9625 gpg: Fix expand GPG groups when resolving a key.
9626 + commit ec81c437e71b4c630a799ed29447cc5e3db162cd
9627 * g10/expand-group.c (expand_group): Add arg prepend_input.
9628 * g10/pkclist.c (build_pk_list): Adjust for it.
9629 * g10/getkey.c (key_byname): Keep the expanded names in the CTX and
9630 don't premature free them.
9631 (get_pubkey_byname): Append the namelist to the extra_list.
9633 2019-09-27 Werner Koch <wk@gnupg.org>
9635 gpg: Fix a recently introduced printf format buglet.
9636 + commit b966a7c142ab6341f4149d55e2609dbb9914acec
9637 * g10/parse-packet.c (dump_sig_subpkt): Fix format error.
9639 kbx: Fix error code return in keyboxd.
9640 + commit 8e574130482167dc7d2e2888cc80ad6584345e3d
9641 * kbx/frontend.c (kbxd_add_resource): Print a diagnostic on error.
9642 * kbx/backend-kbx.c (be_kbx_add_resource): Acttually returh the error
9645 kbx: Store the UBIB in the blob.
9646 + commit 0af1c6447dc0f981ab7306e3bef520f37aded167
9647 * kbx/keybox-blob.c (create_blob_header): New blob flag UBIB.
9648 (create_blob_finish): Write the UBIB.
9649 * kbx/keybox-dump.c (print_ubib): New.
9650 (_keybox_dump_blob): Print UBIB flag.
9651 * kbx/keybox-search.c (has_ubid): Compare the stored UBIB if
9654 kbx,gpg: Allow lookup using a UBID.
9655 + commit 4be79b5abeae82b9840e6aa93874f743e13c6df7
9656 * common/userids.c (classify_user_id): Detect UBIDs.
9657 * kbx/backend-cache.c (blob_table_put): Store the public key type.
9658 (be_cache_search): Add search mode for UBIDs.
9659 * kbx/backend.h (struct db_request_part_s): Add cache.seqno_ubid.
9660 * g10/keydb.c (keydb_search_desc_dump): Fix printing of keygrip. Add
9662 * g10/call-keyboxd.c (keydb_search): Support search by UBID.
9664 kbx: First take on a cache for the keyboxd.
9665 + commit 280e9c9cfac31ae5ac874c928eee063cc922e27e
9666 * kbx/backend.h (enum database_types): Add DB_TYPE_CACHE.
9667 (struct db_request_part_s): Add seqno fields.
9668 (struct db_request_s): Add infos for the cache backend.
9669 * kbx/backend-support.c (struct backend_handle_s): Add 'backend_id'.
9670 (strdbtype): Support DB_TYPE_CACHE.
9671 (be_generic_release_backend): Ditto.
9672 (be_find_request_part): New.
9673 (be_return_pubkey): New arg UBID and chnage status name.
9674 * kbx/backend-cache.c: New.
9675 * kbx/backend-kbx.c (be_kbx_init_request_part): New.
9676 (be_kbx_search): Factor some code out to a support function.
9678 * kbx/frontend.c (kbxd_add_resource): Support DB_TYPE_CACHE.
9679 (kbxd_search): Support the NEXR operation with the cache.
9680 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_UBID): New.
9681 (struct keydb_search_desc): Add field u.ubid.
9682 * kbx/keybox-search.c (has_ubid): New.
9683 (keybox_search): Support the UBID search.
9685 2019-09-20 NIIBE Yutaka <gniibe@fsij.org>
9687 build: Build gpg-pair-tool only when there is newer libgcrypt.
9688 + commit bb5ed9fe1abfcbb6128325508366bc802eb576c5
9689 * configure.ac (HAVE_NEWER_LIBGCRYPT): New.
9690 * tools/Makefile.am: Conditionalize build of gpg-pair-tool.
9692 2019-09-19 NIIBE Yutaka <gniibe@fsij.org>
9694 tools: Fix gpg-pair-tool to follow new API.
9695 + commit 7c81e5cb97c77244be164daf7a80e29f6b6e437b
9698 tools: Don't prepare G in gpg-pair-tool.
9699 + commit b928de70e072fce15d7bba39f370d32dd8b74095
9700 * tools/gpg-pair-tool.c (create_dh_keypair): Use NULL for G.
9702 tools: Use new API of libgcrypt for gpg-pair-tool.
9703 + commit f22a00416149448172bf8110d466d65c87962cae
9704 * tools/gpg-pair-tool.c (create_dh_keypair): Just use
9705 gcry_random_bytes for secret. Call gcry_ecc_mul_point
9706 with G to get the public key.
9707 (compute_master_secret): Use gcry_ecc_mul_point.
9709 2019-09-17 NIIBE Yutaka <gniibe@fsij.org>
9711 scd,pcsc: Use HANDLE for context and card.
9712 + commit 49671b76eae2c7d1edb13ed927654d0c11d879f1
9713 * scd/apdu.c (HANDLE): New.
9715 2019-09-12 NIIBE Yutaka <gniibe@fsij.org>
9717 scd: Remove old fallback logic from CCID to PC/SC.
9718 + commit 980d0234d31699e51051e0cc6002ad177b6e7136
9719 * scd/apdu.c (apdu_dev_list_start): Return an error on failure.
9721 scd,pcsc: Support "reader-port" option for PC/SC reader.
9722 + commit 6d750fe7fc4224924f13ef578010a26cdbe0a67b
9723 * scd/apdu.c (apdu_open_reader): Skip use of a reader if it's not the
9724 one specified when it is specified.
9726 scd,pcsc: Remove the restriction of no-scanning in PC/SC.
9727 + commit c569e49d1764d2573aec5684f9cee397bdd8ccb1
9728 * scd/apdu.h (app_open_reader): Remove the last argument.
9729 * scd/apdu.c (app_open_reader): Ditto.
9730 * scd/app.c (select_application): Don't supply APP_EMPTY.
9732 2019-09-11 NIIBE Yutaka <gniibe@fsij.org>
9734 scd,pcsc: Fix examining the list of readers.
9735 + commit 92be4e87eec984a3f3737339c311761d2650c55a
9736 * scd/apdu.c (apdu_dev_list_start): Traverse the string+NUL carefully.
9738 scd,pcsc: Fix for initializing PC/SC.
9739 + commit 441106cdf0fdd310e3b36370186849167db11345
9740 * scd/apdu.c (pcsc_init): Load it at first.
9741 (apdu_open_reader): Check for the CCID internal driver.
9743 scd,pcsc: Support multiple card readers.
9744 + commit e8534f899915a039610973a84042cbe25a5e7ce2
9745 * scd/apdu.c (close_pcsc_reader, apdu_init): Clear pcsc.rdrname.
9746 (pcsc_init): Load of PC/SC module moved from ...
9747 (open_pcsc_reader): ... here.
9748 (apdu_dev_list_start): Add support for PC/SC.
9749 (apdu_dev_list_finish): Likewise.
9750 (apdu_open_reader): Likewise.
9752 scd,pcsc: Use a single context.
9753 + commit 1080e91efd60cb41c2d6dbafaee810e5967a3161
9754 * scd/apdu.c (pcsc): New variable.
9755 (struct reader_table_s): Remove pcsc.context from member.
9756 (pcsc_get_status, connect_pcsc_card): Use pcsc.context.
9757 (close_pcsc_reader): Release pcsc.context here with reference count.
9759 (open_pcsc_reader): Don't call pcsc_establish_context here. Call
9760 close_pcsc_reader instead of pcsc_release_context.
9761 (apdu_open_reader): Call pcsc_init if needed.
9762 (apdu_init): Initialize pcsc.count and pcsc.context.
9764 scd: Clean up the structure for future fix of PC/SC.
9765 + commit f44aa290c1368a3119b2323664c0f356195c4206
9766 * scd/apdu.c (struct dev_list): Rename from ccid_table, with void*.
9767 (open_ccid_reader): Follow the change.
9768 (apdu_dev_list_start, apdu_dev_list_finish): Likewise.
9769 (apdu_open_reader): Likewise.
9770 * scd/ccid-driver.c (ccid_dev_scan): Use void *.
9771 (ccid_dev_scan_finish, ccid_get_BAI, ccid_open_usb_reader): Likewise.
9772 * scd/ccid-driver.h: Change the APIs.
9774 2019-09-10 Werner Koch <wk@gnupg.org>
9776 gpg: First rough implementation of keyboxd access for key lookup.
9777 + commit ce9906b008c94c2aa4ac770a981d1e1e0b8aea47
9778 * g10/Makefile.am: Add nPth flags.
9779 * g10/gpg.c: Include npth.h.
9780 (gpg_deinit_default_ctrl): Deinit call-keyboxd local data.
9782 * g10/keydb-private.h (struct keydb_handle_s): Add field 'kbl' and
9783 remove the search result and the assuan context.
9784 * g10/call-keyboxd.c (struct keyboxd_local_s): Add more fields.
9785 (lock_datastream, unlock_datastream): New.
9786 (gpg_keyboxd_deinit_session_data): Adjust for changed data structures.
9787 (prepare_data_pipe): New.
9788 (open_context): Return kbl instead of an Assuan context. Init mutexes
9790 (close_context): Merge into ...
9791 (keydb_release): here. Adjust for changed data structures.
9792 (datastream_thread): New.
9793 (keydb_get_keyblock): Implement datastream stuff.
9794 (keydb_search): Ditto.
9796 * common/asshelp.c (wait_for_sock): Add arg connect_flags.
9797 (start_new_service): Set FDPASSING flag for the keyboxd.
9799 kbx: Allow fd-passing for the keyboxd.
9800 + commit 6c327b4dd6d8041b84f856ffc2a7d82b352d273f
9801 * kbx/kbxserver.c: Include host2net.h
9802 (struct server_local_s): Add field outstream.
9803 (prepare_outstream): New.
9805 (kbxd_write_data_line): Write to file descrptor. Disable the slow
9806 human reader friendly data line formatting.
9807 (cmd_search, cmd_next): Disable data logging.
9808 (kbxd_start_command_handler): Add OUTPUT command.
9809 * kbx/keyboxd.c (main): Enable log monitor.
9811 common: Allow a readlimit for iobuf_esopen.
9812 + commit 2f0fdab8aabdf408495163ef99b2d4d111f74692
9813 * common/iobuf.c (file_es_filter_ctx_t): Add fields use_readlimit and
9815 (file_es_filter): Implement them.
9816 (iobuf_esopen): Add new arg readlimit.
9817 * g10/decrypt-data.c (decrypt_data): Adjust for change.
9818 * g10/import.c (import_keys_es_stream): Ditto.
9820 2019-09-10 Andre Heinecke <aheinecke@gnupg.org>
9822 doc: Fix distchek for generated eps file.
9823 + commit c69a37dcbdc8db47489fbf744f58bb61399d223f
9824 * doc/Makefile.am (EXTRA_DIST, BUILT_SOURCES): Add
9825 gnupg-module-overview.eps, gnupg-card-architecture.eps
9826 (DISTCLEANFILES): Remove them.
9828 2019-09-09 Werner Koch <wk@gnupg.org>
9830 gpg: New option --use-keyboxd.
9831 + commit aba82684fe14289cf62b4694bc398f3a274b4762
9832 * g10/gpg.c (oUseKeyboxd,oKeyboxdProgram): New consts.
9833 (opts): New options --use-keyboxd and --keyboxd-program.
9834 (main): Implement them.
9835 * g10/keydb.c: Move some defs out to ...
9836 * g10/keydb-private.h: new file.
9837 * g10/keydb.c: prefix function names with "internal" and move original
9839 * g10/call-keyboxd.c: new file. Divert to the internal fucntion if
9840 --use-keyboxd is used. Add a CTRL arg to most fucntions and change
9842 * g10/Makefile.am (common_source): Add new files.
9843 (noinst_PROGRAMS): Do bot build gpgcompose.
9845 kbx: Fix keyboxd search first.
9846 + commit 5e00c1773d8fd44ba95b39a48e12b0ec94ac8cbe
9847 * kbx/kbxserver.c (cmd_next): Switch to mode next if needed.
9849 kbx: Allow searching from start.
9850 + commit 1545b948e1c8e8fa4873d434fb790a88ed96091c
9851 * kbx/kbxserver.c (cmd_search): Detect empty pattern.
9853 2019-09-06 Stephan Mueller <smueller@chronox.de>
9855 gpg: expand GPG groups when resolving a key.
9856 + commit e825aea2ba3529c333d7ec2c76e63998cb83d999
9857 * g10/expand-group.c: New
9858 * g10/pkclist.c: Extract expand_group and expand_id into expand-group.c.
9859 * g10/keydb.h: Add prototypes of expand_id and expand_group.
9860 * g10/getkey.c: Use expand_group before resolving key references.
9861 * g10/Makefile.am: Compile expand-group.c.
9863 2019-09-06 Werner Koch <wk@gnupg.org>
9865 gpg: Make --quiet work on --send-keys.
9866 + commit d9c4c3776b8ec3261e13693e230dd480b1127b18
9867 * g10/keyserver.c (keyserver_put): Act upon --quiet.
9869 2019-09-05 Werner Koch <wk@gnupg.org>
9871 gpg: Prepare parser for the new attestation certificates.
9872 + commit 209caaff66fbe96df144e6b1474435992e087fa4
9873 * common/openpgpdefs.h (SIGSUBPKT_ATTST_SIGS): New.
9874 * g10/keydb.h (IS_ATTST_SIGS): New.
9875 (IS_CERT): Include the new one.
9876 * g10/sign.c (mk_notation_policy_etc): Do not put notations into
9877 attestation key signatures.
9878 * g10/parse-packet.c (dump_sig_subpkt): Add new arg digest_algo.
9879 Print the attestation sigs.
9880 (parse_one_sig_subpkt): Support SIGSUBPKT_ATTST_SIGS.
9881 (can_handle_critical): Ditto.
9882 (enum_sig_subpkt): Pass digest algo to dump_sig_subpkt.
9884 gpg: Rework the signature subpacket iteration function.
9885 + commit e1d9be730ca07e10a20df5ef60d7562030f10676
9886 * g10/parse-packet.c (enum_sig_subpkt): Replace first arg by two args
9887 so that the entire signature packet is available. Change all callers.
9888 (parse_sig_subpkt): Ditto.
9890 scd: Implement auto-switching between Yubikey apps.
9891 + commit 7febb4f2476742936b829424ad23df662b37f4b4
9892 * scd/app.c (apptype_from_keyref): New.
9893 (maybe_switch_app): Add arg 'keyref' and use this also for switching.
9894 Change all callers to pass a keyref if needed.
9896 scd:openpgp: Avoid PIN caching issues after re-select.
9897 + commit 5d9eb060b764d45152edb266cd8a08f5724ad709
9898 * scd/app-openpgp.c (do_reselect): Clear PIN cache flags.
9900 scd:piv: Allow the keygrip as alternative to a keyref.
9901 + commit 947b44e835dec5967d400a9391d8746fb3f759df
9902 * scd/app-piv.c (find_dobj_by_keyref): Allow the keygrip as input.
9904 scd: Improve locking of app_do_with_keygrip.
9905 + commit c8d739a356d3dacdf63fa2d722d117401cf52caf
9906 * scd/app.c (app_do_with_keygrip): Lock once per card.
9908 scd: New debug flag "app".
9909 + commit 4e701953fec6efb10aaf34373e648b1dcafba054
9910 * scd/scdaemon.h (DBG_APP_VALUE, DBG_APP): New.
9911 * scd/scdaemon.c (debug_flags): Add "app".
9912 * scd/app.c (xstrapptype): New.
9913 (app_readcert, app_readkey, app_getattr): Add debug output.
9914 (app_setattr, app_sign, app_auth): Ditto.
9915 (app_writecert, app_writekey, app_change_pin): Ditto.
9916 (app_check_pin): Ditto.
9918 2019-09-05 NIIBE Yutaka <gniibe@fsij.org>
9920 agent: Fix ask_for_card to allow a key on multiple cards.
9921 + commit 9f39e0167d0642bcfb9bcabcbc7f8160b39a20ee
9922 * agent/divert-scd.c (ask_for_card): Don't use SERIALNO to select
9923 card, but use KEYGRIP.
9925 2019-09-04 Werner Koch <wk@gnupg.org>
9927 scd: New sub-command cmd_has_option for GETINFO.
9928 + commit fed9c93e05af4aeeb2fe9af81200fc7a745f2dec
9929 * scd/command.c (cmd_getinfo): Add cmd_has_option sub-command.
9931 scd: Add option --all to the SERIALNO command.
9932 + commit 9a0d8f2d8906d2f37c2755c4695b91c27c8acc2f
9933 * scd/command.c (cmd_serialno): Add option --all.
9934 (open_card_with_request): Implement that option.
9935 * scd/app.c (select_all_additional_applications_internal): New.
9936 (select_additional_application): Add mode to call new function.
9938 scd: Fix Error checking in additioal app selection.
9939 + commit fa258379424c6d48538b054b8dc7c1ab5c2d4290
9940 * scd/app.c (select_additional_application): Return error for unknown
9943 scd: Add option --multi to the LEARN command.
9944 + commit 5cf5a04bae03d622a42753735c60dfab3b24ade8
9945 * scd/app-common.h (APP_LEARN_FLAG_MULTI): New.
9946 * scd/command.c (cmd_learn): Add option --multi.
9947 * scd/app.c (app_write_learn_status): Factor some code out to ...
9948 (write_learn_status_core): new.
9949 (app_write_learn_status): Implement flag --multi.
9951 scd: Use a macro for the flag parameter of learn_status.
9952 + commit 2cdea776cd6db13c8f4ff45c89bd3292f216b186
9953 * scd/app-common.h (APP_LEARN_FLAG_KEYPAIRINFO): New flag macro..
9954 * scd/command.c (cmd_learn): Pass that flag instead of a plain number.
9955 * scd/app-nks.c (do_learn_status_core): Use new flag.
9956 * scd/app-p15.c (do_learn_status): Ditto.
9957 * scd/app-piv.c (do_learn_status): Ditto.
9958 * scd/app-sc-hsm.c (do_learn_status): Ditto.
9959 * scd/app.c (app_write_learn_status): Ditto.
9961 2019-08-23 Werner Koch <wk@gnupg.org>
9963 gpg,sm: Implement keybox compression run and release lock in gpgsm.
9964 + commit e64f0dfd72de548837f630bccd249a87451b89c5
9965 * g10/keydb.c (keydb_add_resource): Call keybox_compress.
9966 * sm/keydb.c (keydb_add_resource): Release the lock after a compress.
9968 kbx: Include deleted records into the --stats output.
9969 + commit 5ef0d7a795cf2462314ea0cb72c7efa7243ab405
9970 * kbx/keybox-dump.c (_keybox_dump_file): Take deleted records in
9973 kbx: Fix regression in compression trigger from July 18.
9974 + commit 30aaa4ba007210aa043c3d524415495a4d9fd17f
9975 * kbx/keybox-update.c (keybox_compress): Change condition back.
9976 Also use make_timestamp for CUT_TIME.
9978 gpg: Allow --locate-external-key even with --no-auto-key-locate.
9979 + commit d058d80ed0d5edeff6d85108054b1dfd45ddad7d
9980 * g10/getkey.c (akl_empty_or_only_local): New.
9981 * g10/gpg.c (DEFAULT_AKL_LIST): New.
9982 (main): Use it here.
9983 (main) <aLocateExtKeys>: Set default AKL if none is set.
9985 gpg: Silence some warning messages during -Kv.
9986 + commit d7aca1bef68589134b36395901b92496a7a37392
9987 * g10/options.h (glo_ctrl): Add flag silence_parse_warnings.
9988 * g10/keylist.c (list_all): Set that during secret key listsings.
9989 * g10/parse-packet.c (unknown_pubkey_warning): If new flag is set do
9990 not print info message normally emitted inh verbose mode.
9991 (can_handle_critical_notation, enum_sig_subpkt): Ditto.
9992 (parse_signature, parse_key, parse_attribute_subpkts): Ditto.
9994 gpg: Do not show two informational diagnostics with quiet.
9995 + commit f14ddeb89c4519cd7ccf52c4595b93ab11ccbda1
9996 * g10/trustdb.c (verify_own_keys): Silence informational diagnostic.
9998 gpgconf: Suggest the use of --gpgconf-test on --launch problems.
9999 + commit 2a45800b2f8043d2533403eaadf8736d15ad7017
10000 * tools/gpgconf-comp.c (gc_component_launch): Change suggestion.
10002 2019-08-22 Werner Koch <wk@gnupg.org>
10004 gpg: Extend --quick-gen-key for creating keys from a card.
10005 + commit d3f5d8544fdb43082ff34b106122bbf0619a0ead
10006 * g10/keygen.c (parse_key_parameter_part): Add arg R_KEYGRIP and
10007 support the special algo "card".
10008 (parse_key_parameter_string): Add args R_KEYGRIP and R_SUBKEYGRIP.
10009 Handle the "card" algo. Adjust callers.
10010 (parse_algo_usage_expire): Add arg R_KEYGRIP.
10011 (quickgen_set_para): Add arg KEYGRIP and put it into the parameter
10013 (quick_generate_keypair): Handle algo "card".
10014 (generate_keypair): Also handle the keygrips as returned by
10015 parse_key_parameter_string.
10016 (ask_algo): Support ed25519 from a card.
10018 2019-08-22 NIIBE Yutaka <gniibe@fsij.org>
10020 gpg: Factor export_ssh_key.
10021 + commit 6f760e6eb0e8820d386b33c28cb14210adfc6aef
10022 * g10/export.c (export_one_ssh_key): Factor out.
10023 (export_ssh_key): Use export_one_ssh_key.
10025 dns: Fix irrelevant use of tmpfile.
10026 + commit e00e68135c01351ed66fed3c4453a1b13c8d522f
10027 * dirmngr/dns.c (dns_trace_open): Don't use tmpfile.
10029 2019-08-21 Werner Koch <wk@gnupg.org>
10031 gpg: In a list of card keys show the standard keys.
10032 + commit ce403c74dbc9c027b823910f22338269e625f76f
10033 * g10/keygen.c (ask_algo): Identify the standard keys.
10035 scd:nks: Extend keypairinfo with usage flags.
10036 + commit 0d2c9ef29c1741845df2d56f0024f87eab42efb3
10037 * scd/app-nks.c (do_learn_status_core): Return usage.
10039 (cherry picked from commit 0a9053eff0406c6799ee201013194200c0ed3487)
10041 scd:nks: Support attributes $ENCRKEYID and $SIGNKEYID.
10042 + commit 671e54d62c39a9e196d13714cb67c2f3c38f2fa0
10043 * scd/app-nks.c (do_getattr): Add new attributes.
10045 gpg: New option --use-only-openpgp-card.
10046 + commit c97c2e578dd173ef5e7916a3aa539b3a65a7d86d
10047 * g10/gpg.c (opts): Add option.
10049 * g10/options.h: Add flags.use_only_openpgp_card.
10050 * g10/call-agent.c (start_agent): Implement option.
10052 2019-08-21 NIIBE Yutaka <gniibe@fsij.org>
10054 scd: Fix check_application_conflict.
10055 + commit 6fae96094c973be880919f3a7798ca69d9365b69
10056 * scd/scd/app.c (check_application_conflict): Compare APPTYPE.
10058 scd: Fix selecting additional APP.
10059 + commit 8dc19d35e854264cfe503cdbb9e5ccafa9bc97d0
10060 * scd/app.c (select_additional_application_internal): Factor out.
10061 (select_additional_application): Getting the lock and call
10062 select_additional_application_internal, set current_apptype, then.
10063 (select_application): Call select_additional_application_internal
10066 scd: Fix how select_additional_application is called.
10067 + commit 4781c4a86608b57f9d1daf55b9b2970130fe6120
10068 * scd/app.c (check_application_conflict): Check against current APP.
10069 (select_additional_application): Update current_apptype of CTRL.
10071 scd: Fix resetting CARD_CTX.
10072 + commit 09d000babb71990ef1b3f42017a67516bb994388
10073 * scd/app.c (deallocate_card): Don't call scd_clear_current_app.
10074 (card_reset): Reset ctrl->current_apptype.
10075 * scd/command.c (open_card_with_request): Likewise.
10076 (send_client_notifications): Likewise.
10077 (scd_clear_current_app): Remove.
10079 scd: Fix switching to another APP.
10080 + commit d4f135c34b332f1f833617a7f1ef0bdbff5eb589
10081 * scd/app.c (select_additional_application): Initialize card of APP.
10082 Break after the selection.
10083 Don't free APP if success.
10085 2019-08-20 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10087 doc: fix minor spelling and tense errors.
10088 + commit b7793c3af32b2d99359022f805636953a50d8c68
10089 * doc/{gpg,gpgsm,wks}.texi: minor orthographic cleanup.
10091 doc: clarify CARD event counter.
10092 + commit cba6e1bd7242e8b8c6822f4e93368cb315b5524b
10093 * doc/gpg-agent.texi: improve documentation of CARD entry in
10094 GETEVENTCOUNTER description.
10096 2019-08-08 Andre Heinecke <aheinecke@intevation.de>
10098 speedo, w32: Add w32-wixlib target for MSI package.
10099 + commit 0b7088dc8035e8d5832c89085eea3b288de67710
10100 * Makefile.am (EXTRA_DIST): Add wixlib.wxs
10101 * build-aux/speedo.mk (w32-wixlib): New target.
10102 (w32-release): Build wixlib if WIXPREFIX is set.
10103 (help): Add documentation.
10104 * build-aux/speedo/w32/wixlib.wxs
10106 2019-08-08 Werner Koch <wk@gnupg.org>
10108 build: Sign all Windows binaries.
10109 + commit 4964691861796ad6e7bd59dd553a617f68676b2b
10110 * build-aux/speedo.mk (AUTHENTICODE_SIGNHOST): New.
10111 (AUTHENTICODE_TOOL): New.
10112 (AUTHENTICODE_FILES): New.
10113 (installer): Sign listed files.
10114 (AUTHENTICODE_SIGNHOST): New macro.
10115 (sign-installer): Use that macro instead of direct use of osslsigncode.
10117 2019-08-07 NIIBE Yutaka <gniibe@fsij.org>
10119 scd: Remove fallback mechanism to PC/SC.
10120 + commit 100642e776964219936e493315eb8b7c99742f41
10121 * scd/apdu.c [HAVE_LIBUSB] (apdu_open_reader): Simply let it fail.
10123 2019-08-06 NIIBE Yutaka <gniibe@fsij.org>
10125 agent: Fix an error path of agent_get_confirmation.
10126 + commit bb82ad018a7bf93bd704cf44e51cd086e41a4ad5
10127 * agent/call-pinentry.c (agent_get_confirmation): Make sure
10128 unlock_pinentry is always called.
10130 2019-08-06 Werner Koch <wk@gnupg.org>
10132 kbx: Add framework for the SEARCH command.
10133 + commit 5ea6250cc5761612d17ca4fb34eed096f26e2826
10134 * kbx/backend-kbx.c: New.
10135 * kbx/backend-support.c: New.
10136 * kbx/backend.h: New.
10137 * kbx/frontend.c: New.
10138 * kbx/frontend.h: New.
10139 * kbx/kbxserver.c: Implement SEARCH and NEXT command.
10140 * kbx/keybox-search-desc.h (enum pubkey_types): New.
10141 * kbx/keybox-search.c (keybox_get_data): New.
10142 * kbx/keyboxd.c (main): Add a standard resource.
10144 kbx: Allow writing using a estream.
10145 + commit 1f980d23af8b818ed8246ec6bf13b9c61b963ec0
10146 * kbx/keybox-file.c (_keybox_write_header_blob): New optional arg
10147 stream. Change callers.
10149 tools: New option --keyboxd for gpg-connect-agent.
10150 + commit 0611f548bcd3c772084d6c3111dc88a09a67f65a
10151 * configure.ac: New option --keyboxd-pgm.
10152 (KEYBOXD_NAME, KEYBOXD_DISP_NAME): New ac_defines.
10153 * common/util.h: Add substitutes for new error codes.
10154 (GNUPG_MODULE_NAME_KEYBOXD): New.
10155 * common/homedir.c (gnupg_module_name): Support
10156 GNUPG_MODULE_NAME_KEYBOXD.
10157 * common/asshelp.c (SECS_TO_WAIT_FOR_KEYBOXD): New.
10158 (wait_for_sock): Support keyboxd.
10159 (start_new_service): Ditto.
10160 (start_new_keyboxd): New.
10161 * tools/gpg-connect-agent.c: New options --keyboxd and
10163 (start_agent): Implement new option.
10165 2019-08-06 NIIBE Yutaka <gniibe@fsij.org>
10167 common: Fix line break handling, finding a space.
10168 + commit f588dd8d1766de48c90a5501cf2d537f256d003e
10169 * common/name-value.c (assert_raw_value): Correctly find a space.
10171 gpg: Don't report NO_SECKEY for valid key.
10172 + commit d8a49bbcd1b1d40ab0ddadac0dbb16a5d75c626e
10173 * g10/mainproc.c (proc_encrypted): Report status of STATUS_NO_SECKEY
10174 only when some error occurred.
10176 2019-08-05 Werner Koch <wk@gnupg.org>
10178 common: Remove code duplication for service starting.
10179 + commit e22ebf357050f98558b428502a565fc3dc256932
10180 * common/homedir.c (gpg_agent_socket_name): New.
10181 * common/asshelp.c (start_new_service): New. Based on
10182 start_new_gpg_agent.
10183 (start_new_gpg_agent): Divert to start_new_service.
10184 (start_new_dirmngr): Ditto.
10186 2019-08-05 NIIBE Yutaka <gniibe@fsij.org>
10188 sm: Support AES-256 key.
10189 + commit ef2424144a070c9199e40424ec8d9b5a9919aa72
10190 * sm/decrypt.c (prepare_decryption): Handle a case for AES-256.
10192 2019-08-02 Werner Koch <wk@gnupg.org>
10194 common: Change yet unused status_printf function.
10195 + commit d8a84594abe4be933756db07b987dc8bcd79c8b9
10196 * common/asshelp2.c (status_printf): Rename to status_no_printf.
10197 (status_printf): New.
10199 2019-07-26 NIIBE Yutaka <gniibe@fsij.org>
10201 sm: Fix error checking of decryption result.
10202 + commit 15fe78184cc66ce6e657a6e949a522d7821f8a1c
10203 * sm/call-agent.c (gpgsm_agent_pkdecrypt): Fix condition.
10205 2019-07-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10207 gpg,gpgsm: Handle pkdecrypt responses with/without NUL terminators.
10208 + commit 3ba091ab8c93c87741a451f579d63dd500d7621d
10209 * g10/call-agent.c (agent_pkdecrypt): accept but do not require
10210 NUL-terminated data from the agent.
10211 * sm/call-agent.c (gpgsm_agent_pkdecrypt): accept but do not require
10212 NUL-terminated data from the agent.
10214 2019-07-25 NIIBE Yutaka <gniibe@fsij.org>
10216 gpg: photoid: Use standard spawn API.
10217 + commit fd9e6ae22eb93aa5140b56e1b0fa14e6402d6099
10218 * g10/photoid.c (exec_write, exec_read, exec_finish): Remove.
10219 (setup_input_file): Rename from make_tempdir.
10220 (expand_args): Drop support of 'o' and 'O'.
10221 (fill_command_argv, run_with_pipe, create_temp_file) New.
10222 (show_photo): New with gnupg_spawn_process_fd and gnupg_wait_process.
10223 (show_photos): Call show_photo.
10225 gpg: photoid: Move functions from exec.c.
10226 + commit c57c5004ec6cc7dc7b7a4f250516199a8a1e31fc
10227 * g10/exec.c (w32_system): Expose to public.
10228 (exec_write, exec_read, exec_finish, make_tempdir, expand_args): Move
10230 * g10/exec.h: Likewise.
10231 * g10/photoid.c (exec_write, exec_read, exec_finish, make_tempdir)
10232 (expand_args): Move here.
10234 scd: Handle CCID bwi of time extension.
10235 + commit 996c497a864d820af06333014b2c5f74d1054866
10236 * scd/ccid-driver.c (bulk_in): Increase timeout by the multiplier
10237 value as defined section 6.2.6 in CCID specification.
10239 scd: Fix bBWI value.
10240 + commit 858dc9564326e65e6d8771af160d4513aea1e4eb
10241 * scd/ccid-driver.c (ccid_transceive_apdu_level): Use bBWI=0 for APDU
10243 (ccid_transceive): Use bBWI=0 or the value returend by WTX for TPDU
10246 2019-07-24 NIIBE Yutaka <gniibe@fsij.org>
10248 common: Fix the previous commit.
10249 + commit 044379772fc5b0f39c6a36809722e702808b6ec3
10250 * common/asshelp.c [HAVE_W32_SYSTEM] (start_new_gpg_agent): Use
10251 gnupg_spawn_process_detached.
10252 (start_new_dirmngr): Likewise.
10254 common: Use gnupg_spawn_process_fd to invoke gpg-agent/dirmngr.
10255 + commit b1c56cf9e2bb51abfd47747128bd2a6285ed1623
10256 * common/asshelp.c (start_new_gpg_agent): Call gnupg_spawn_process_fd
10257 and gnupg_wait_process.
10258 (start_new_dirmngr): Likewise.
10260 common,w32: Fix cast from gnupg_fd_t to call _open_osfhandle.
10261 + commit a64411c607d5450e786c3207b9023394574c979b
10262 * common/sysutils.c (translate_sys2libc_fd): Use intptr_t.
10263 (gnupg_tmpfile): Likewise.
10265 2019-07-23 NIIBE Yutaka <gniibe@fsij.org>
10267 gpg: A little clean up.
10268 + commit 7bfbb9fa7e7693cd7f19a8d130aa0a9a82825d5d
10269 * g10/keyserver.c: Don't include exec.h.
10270 * g10/photoid.c (image_type_to_string): It's constant.
10271 * g10/photoid.h (image_type_to_string): Likewise.
10273 2019-07-22 NIIBE Yutaka <gniibe@fsij.org>
10275 scd: Error code map fix for older Yubikey.
10276 + commit 13bc0431ff1ce51246694208df611cc4561fb4b3
10277 * scd/iso7816.c (map_sw): Recognize 6A86.
10279 2019-07-19 NIIBE Yutaka <gniibe@fsij.org>
10281 gpg: The option --passphrase= can be empty.
10282 + commit fcd766719a6e8f18f4be4c0f91e12aa157ca5506
10283 * g10/gpg.c (opts): Use ARGPARSE_o_s for oPassphrase to allow
10286 card: Fix showing KDF object attribute.
10287 + commit 98f4eff7ffde106ae4f60739d1104282430ac14f
10288 * g10/call-agent.c (learn_status_cb): Parse the KDF DO.
10289 * g10/card-util.c (current_card_status): Show it correctly.
10291 scd: Support "[CHV3]" attribute for keyid string.
10292 + commit 57565d5f975d3c00853bb49678d63ee8b896b741
10293 * scd/app-openpgp.c (check_keyidstr0: Relax the check.
10295 card: Support disabling KDF functionality.
10296 + commit 9c0cd9d07546698ab66cedd06c503e6b698593f9
10297 * g10/card-util.c (kdf_setup): Can be "off".
10299 2019-07-18 Werner Koch <wk@gnupg.org>
10301 kbx: Allow "gpgsm --faked-system-time" to kick off a compression run.
10302 + commit 824ca6f042dc69edaf67bf9d4e875be75babab00
10303 * kbx/keybox-update.c (keybox_compress): Use make_timestamp.
10305 2019-07-18 NIIBE Yutaka <gniibe@fsij.org>
10307 gpg: More check for symmetric key encryption.
10308 + commit 44be675b759d27bac310c2de8bae1b7882a26b65
10309 * g10/dek.h (DEK): Use debugger friendly type of unsigned int.
10310 * g10/mainproc.c (symkey_decrypt_seskey): Add another check.
10312 2019-07-16 NIIBE Yutaka <gniibe@fsij.org>
10314 doc: Fix description of the field 11.
10315 + commit 4195ce15f4942245a29ef20ace42ad0f27e82ffd
10316 * doc/DETAILS: Fix.
10318 dirmngr: Don't add system CAs for SKS HKPS pool.
10319 + commit 75e0ec65170b7053743406e3f3b605febcf7312a
10320 * dirmngr/http.c [HTTP_USE_GNUTLS] (http_session_new): Clear
10323 2019-07-12 Werner Koch <wk@gnupg.org>
10325 scd: Remove useless GNUPG_SCD_MAIN_HEADER macro.
10326 + commit fb1c8978f57b8f92e2ea9d10afc1d133656c9706
10327 * scd/apdu.c (): Remove never set and useless macro.
10328 * scd/ccid-driver.c: Ditto.
10329 * scd/iso7816.c: Ditto.
10331 2019-07-12 NIIBE Yutaka <gniibe@fsij.org>
10333 doc: Dependencies for figures are only for maintainers.
10334 + commit 58bab1a8784b0dbae70b5d74757cd56484292d1c
10335 * doc/Makefile.am [MAINTAINER_MODE] (.svg.eps, etc.): Enable only
10336 when maintainer-mode.
10338 Fix a reference in comment.
10339 + commit 4e601c7643fcfa3d8babcce58daa4c6c6a42d338
10340 * common/openpgp-s2k.c: Fix.
10342 gpg: Don't try decryption by session key when NULL.
10343 + commit 89303b9998ea30d87b4c60dd48097dbe5e986a89
10344 * g10/mainproc.c (proc_encrypted): Only call get_session_key when
10345 PKENC_LIST is not NULL.
10346 Return GPG_ERR_BAD_KEY, instead of GPG_ERR_NO_SECKEY, when
10347 it's encrypted only by symmetric key.
10349 2019-07-11 NIIBE Yutaka <gniibe@fsij.org>
10351 agent: Relax the handling of pinentry error for keyboard grab.
10352 + commit 02d8b383833bac0382e910a2058b11b127acfd4d
10353 * agent/call-pinentry.c (start_pinentry): It's not fatal when
10354 pinentry doesn't support no-grab/grab option.
10356 scd: Fix internal CCID driver, so that -DTEST works.
10357 + commit b31060425226b45deb21915bf5cd8b6ba62bd098
10358 * scd/ccid-driver.c: Support a test program by ccid-driver.
10360 scd: Fix debug logging of the internal CCID driver.
10361 + commit 2536bf276189a474a3a1ca9716368cf5d991b0d6
10362 * scd/ccid-driver.c [GNUPG_MAJOR_VERSION] (DEBUGOUT): Use log_debug.
10364 gpg: Fix getting User ID.
10365 + commit 29c7fb4053d207c163802642babbdbb6f885727e
10366 * g10/getkey.c (user_id_db): Remove, as no use anymore.
10367 (get_user_id_string): Use cache_get_uid_bykid.
10368 (get_user_id_byfpr): Use cache_get_uid_byfpr.
10369 * g10/objcache.c (cache_get_uid_byfpr): New.
10370 * g10/objcache.h (cache_get_uid_byfpr): New.
10372 2019-07-10 NIIBE Yutaka <gniibe@fsij.org>
10374 gpg: Improve import slowness.
10375 + commit 33c17a8008c3ba3bb740069f9f97c7467f156b54
10376 * g10/import.c (read_block): Avoid O(N^2) append.
10377 (sec_to_pub_keyblock): Likewise.
10379 gpg: Fix keyring retrieval.
10380 + commit a7a043e82555a9da984c6fb01bfec4990d904690
10381 * g10/keyring.c (keyring_get_keyblock): Avoid O(N^2) append.
10383 2019-07-09 Werner Koch <wk@gnupg.org>
10385 gpg: Do not try the import fallback if the options are already used.
10386 + commit a29156d5a650702ad79fe11f45782bc4bc159c13
10387 * g10/import.c (import_one): Check options.
10389 gpg: Fix regression in option "self-sigs-only".
10390 + commit eec150eca78a053193a0994a96482791b5da36be
10391 * g10/import.c (read_block): Make sure KEYID is availabale also on a
10394 2019-07-09 NIIBE Yutaka <gniibe@fsij.org>
10396 sm: Fix card access.
10397 + commit 37d758e5f2b5d07dc937098cf48096cf35ea61e4
10398 * sm/call-agent.c (gpgsm_scd_pksign): Cast to integer for %b.
10400 scd: ccid-driver: Initial getting ATR more robustly.
10401 + commit c51a5685554a06e00ae1e99070b44613b2f8d417
10402 * scd/ccid-driver.c (send_power_off): New.
10403 (do_close_reader): Use send_power_off.
10404 (ccid_get_atr): Add error recovery.
10406 2019-07-08 NIIBE Yutaka <gniibe@fsij.org>
10408 scd: Fix keygrip search.
10409 + commit 39c40e572c5632f836d089dce49224f947244bf2
10410 * scd/app.c (app_do_with_keygrip): Break the entire loop.
10412 2019-07-05 Werner Koch <wk@gnupg.org>
10414 gpg: With --auto-key-retrieve prefer WKD over keyservers.
10415 + commit 96bf8f477805bae58cfb77af8ceba418ff8aaad9
10416 * g10/mainproc.c (check_sig_and_print): Print a hint on how to make
10417 use of the preferred keyserver. Remove keyserver lookup just by the
10418 keyid. Try a WKD lookup before a keyserver lookup.
10420 wkd: Change client/server limit back to 64 KiB.
10421 + commit b0e8724b102535c27a8c973ec038d340858a8eb8
10422 * tools/wks-receive.c (decrypt_data): Change limit.
10424 2019-07-05 NIIBE Yutaka <gniibe@fsij.org>
10426 sm: Return the last error for pubkey decryption.
10427 + commit 38b9da7de3350b1e56b85a058cdb1fdded78cf6d
10428 * sm/decrypt.c: Use TMP_RC for ksba_cms_get_issuer_serial,
10429 and return the last error when no key is available.
10430 Fix the error report with TMP_RC for second call of
10431 ksba_cms_get_issuer_serial.
10433 gpg: Return the last error for pubkey decryption.
10434 + commit 6cc4119ec03be61c78189a0bec99372035289b91
10435 * g10/mainproc.c (proc_encrypted): Check ->result against -1.
10436 When c->dek == NULL, put GPG_ERR_NO_SECKEY only when not set.
10437 * g10/pubkey-enc.c (get_session_key): Set k->result by the result of
10439 When no secret key is available for some reasons, return the last
10440 specific error, if any.
10442 2019-07-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10444 dirmngr: fix handling of HTTPS redirections during HKP.
10445 + commit 064aeb14c9b869e114e9ec789526fad8da657230
10446 * dirmngr/ks-engine-hkp.c (send_request): Reinitialize HTTP session when
10447 following a HTTP redirection.
10449 2019-07-04 Werner Koch <wk@gnupg.org>
10451 gpg: Add "self-sigs-only" and "import-clean" to the keyserver options.
10452 + commit 23c978640812d123eaffd4108744bdfcf48f7c93
10453 * g10/gpg.c (main): Change default.
10455 gpg: Avoid printing false AKL error message.
10456 + commit 91a6ba32347a21c9029728eec96b8ff80f944629
10457 * g10/getkey.c (get_pubkey_byname): Add special traeatment for default
10460 gpg: New command --locate-external-key.
10461 + commit d00c8024e58822e0623b3fad99248ce68a8b7725
10462 * g10/gpg.c (aLocateExtKeys): New.
10463 (opts): Add --locate-external-keys.
10464 (main): Implement that.
10465 * g10/getkey.c (get_pubkey_byname): Implement GET_PUBKEY_NO_LOCAL.
10466 (get_best_pubkey_byname): Add arg 'mode' and pass on to
10467 get_pubkey_byname. Change callers.
10468 * g10/keylist.c (public_key_list): Add arg 'no_local'.
10469 (locate_one): Ditto. Pass on to get_best_pubkey_byname.
10471 gpg: Make the get_pubkey_byname interface easier to understand.
10472 + commit 9980f81da765f88a65604ab083563bf15ccdb425
10473 * g10/keydb.h (enum get_pubkey_modes): New.
10474 * g10/getkey.c (get_pubkey_byname): Repalce no_akl by a mode arg and
10475 change all callers.
10477 2019-07-03 Werner Koch <wk@gnupg.org>
10479 dirmngr: Avoid endless loop in case of HTTP error 503.
10480 + commit 8b113bb148f273524682252233b3c65954e1419e
10481 * dirmngr/ks-engine-hkp.c (SEND_REQUEST_EXTRA_RETRIES): New.
10482 (handle_send_request_error): Use it for 503 and 504.
10483 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Pass a new var for
10486 dirmngr: Do not rewrite the redirection for the "openpgpkey" subdomain.
10487 + commit 37f0c55c7be3fc4912237f2bc72466aef6f8aa36
10488 * dirmngr/http.c (same_host_p): Consider certain subdomains to be the
10491 2019-07-02 Peter Lebbing <peter@digitalbrains.com>
10493 Mention --sender in documentation.
10494 + commit cf92f7d96f83e5af7d2c232c8450c2c7d900ade8
10497 2019-07-01 Werner Koch <wk@gnupg.org>
10499 gpg: Fallback to import with self-sigs-only on too large keyblocks.
10500 + commit 3a403ab04eeb45f12b34f9d9c421dac93eaf2160
10501 * g10/import.c (import_one): Rename to ...
10502 (import_one_real): this. Do not print and update stats on keyring
10504 (import_one): New. Add fallback code.
10506 gpg: New import and keyserver option "self-sigs-only"
10507 + commit 2e349bb6173789e0e9e42c32873d89c7bc36cea4
10508 * g10/options.h (IMPORT_SELF_SIGS_ONLY): New.
10509 * g10/import.c (parse_import_options): Add option "self-sigs-only".
10510 (read_block): Handle that option.
10512 gpg: Make read_block in import.c more flexible.
10513 + commit 894b72d796c826b1c7e1df788e16874cd051e672
10514 * g10/import.c: Change arg 'with_meta' to 'options'. Change callers.
10516 2019-07-01 NIIBE Yutaka <gniibe@fsij.org>
10518 tools: gpgconf: Killing order is children-first.
10519 + commit 7c877f942a344e7778005840ed7f3e20ace12f4a
10520 * tools/gpgconf-comp.c (gc_component_kill): Reverse the order.
10522 2019-06-28 NIIBE Yutaka <gniibe@fsij.org>
10524 agent: Close a dialog cleanly when gpg/ssh is killed for CONFIRM.
10525 + commit 374a0775546b6241ca2dd10836202c50300d8e91
10526 * agent/call-pinentry.c (watch_sock_start): Factor out
10528 (watch_sock_end): Likewise.
10529 (do_getpin): Use those functions.
10530 (agent_get_confirmation): Likewise.
10531 (popup_message_thread): Likewise.
10533 2019-06-25 Werner Koch <wk@gnupg.org>
10535 scd: Do not conflict if a card with another serialno is demanded.
10536 + commit 92ba831758cff0262504ac51e5df7a439844327c
10537 * scd/app.c (check_application_conflict): Add args to pass a serialno.
10538 * scd/command.c (open_card_with_request): Pass the serialno to
10539 check_application_conflict.
10541 scd: Return a stable list with "getinfo card_list".
10542 + commit c8e62965bc90eabff5c4b7cb349bd8e41584c01b
10543 * scd/app.c (compare_card_list_items): New.
10544 (app_send_card_list): Sort the card objects by slot.
10546 scd: Add an re-select mechanism to switch apps.
10547 + commit d803b3bb3c084b6bce4d2bd161db50dc45442e5b
10548 * scd/app-common.h (struct app_ctx_s): Add func ptr 'reselect'.
10549 * scd/app-piv.c (do_reselect): New.
10550 (app_select_piv): Move AID constant to file scope.
10551 * scd/app-openpgp.c (do_reselect): New.
10552 (app_select_openpgp): Move AID constant to file scope.
10553 * scd/app.c (apptype_from_name): New.
10554 (check_application_conflict): Check against all apps of the card.
10555 Always set current_apptype.
10556 (select_additional_application): New.
10557 (maybe_switch_app): New.
10558 (app_write_learn_status, app_readcert, app_readkey, app_getattr)
10559 (app_setattr, app_sign, app_auth, app_decipher, app_writecert)
10560 (app_writekey, app_genkey, app_change_pin, app_check_pin): Use it here.
10561 (app_do_with_keygrip): Force reselect on success.
10562 (app_new_register): Move setting of CURRENT_APPTYPE to ...
10563 (select_application): here so that it will be set to the requested
10565 * scd/command.c (open_card_with_request): Select additional
10566 application if possible.
10568 2019-06-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10570 spelling: Fix "synchronize"
10571 + commit d7d1ff45574ed935d07642964a529a358b11a1a7
10574 2019-06-21 Werner Koch <wk@gnupg.org>
10576 scd: Take the card look while running app->with_keygrip.
10577 + commit b304c006a3c9ba186fb2510859df7f02a0acad25
10578 * scd/app.c (app_do_with_keygrip): Lock the card.
10580 scd: Take the lock earlier in the function dispatchers.
10581 + commit 0400a4eb1782e7a4aea5b04492c93939c6b9799a
10582 * scd/app.c: Chnage all function dispatcher.
10584 scd: Add code to check whether app switching is possible.
10585 + commit 1b78e4951ed7a66ec71ca036e7680148a63143be
10586 * scd/app.c (check_conflict): Fold into ...
10587 (check_application_conflict): this and adjust callers. Return a
10588 different error code if it is possible to switch apps.
10590 scd: Track the currently selected app.
10591 + commit 91e2931caac9b914efa0a4524effaaa5948ebd00
10592 * scd/scdaemon.h (struct server_control_s): Add 'current_apptype'.
10593 * scd/command.c (scd_clear_current_app): New.
10594 * scd/app.c (app_new_register): Set it.
10595 (deallocate_card): Clear it.
10597 scd: Simplify inclusion of app-common.h.
10598 + commit 43dcf93407d6d2b87b6e7db74fd05fd237495bfe
10599 * scd/scdaemon.h: Include app-common.h. Remove inclusion of that
10600 header from all other files.
10601 (card_t, app_t): Move typedef to ...
10602 * scd/app-common.h: here. Use them in the defs.
10604 gpg: Very minor code cleanup.
10605 + commit 4256e9f0f1bf27ed2e93ca3890003ead208ef6df
10606 * g10/decrypt-data.c (decrypt_data): Remove superfluous test.
10608 scd: Use enums for cardtype and apptype.
10609 + commit 9551275857c1f9a75fee5736fa6c3cf361364f22
10610 * scd/app-common.h (cardtype_t): New.
10612 (struct card_ctx_s): Change type of cardtype.
10613 (struct app_ctx_s): Change type of apptype. Adjust all users.
10614 * scd/app.c (struct app_priority_list_s): Add field apptype.
10615 (strcardtype): New. Use as needed.
10616 (strapptype): New. Use as needed.
10618 2019-06-20 NIIBE Yutaka <gniibe@fsij.org>
10620 po: Update Japanese Translation.
10621 + commit 0ccb5ddef18f04b86855530838af4cbb9b8aa30b
10624 tools: Fix error handling for gpg-pair-tool.
10625 + commit d5287f43fd4def68901519a4c1d471b81ee86ed0
10626 * tools/gpg-pair-tool.c (read_message): Initialize ERR.
10628 2019-06-19 Werner Koch <wk@gnupg.org>
10630 scd: Split data structures into app and card related objects.
10631 + commit 5a5288d051a551a1a8f169225e62572f6ee8cb10
10632 * scd/app-common.h (struct card_ctx_s): New.
10633 (struct app_ctx_s): Factor card specific fields out to card_ctx_s.
10634 (app_get_slot): New.
10635 * scd/scdaemon.h (card_t): New.
10636 (struct server_control_s): Rename field app_ctx to card_ctx and change
10638 * scd/app-dinsig.c: Use app_get_slot and adjust for chang in card
10640 * scd/app-geldkarte.c: Ditto.
10641 * scd/app-nks.c: Ditto.
10642 * scd/app-openpgp.c: Ditto.
10643 * scd/app-p15.c: Ditto.
10644 * scd/app-sc-hsm.c: Ditto.
10645 * scd/app.c: Lost of changes to adjust for the changed data
10646 structures. Change all callers.
10647 (app_list_lock): Rename to card_list_lock.
10650 (lock_app): Rename to lock_card and change arg type.
10651 (unlock_app): Rename to unlock_card.
10652 (app_dump_state): Print card and app info.
10653 (app_reset): Rename to card_reset.
10654 (app_new_register): Change for the new data structure.
10655 (deallocate_card): Dealloc card and all apps.
10656 (app_ref): Rename to card_ref.
10657 (app_unref): Rename to card_unref.
10658 (app_unref_locked): Rename to card_unref_locked.
10659 (card_get_serialno): New.
10660 * scd/command.c (cmd_pkdecrypt): Actually use the looked up card and
10661 former app object and not the standard one from the context.
10663 2019-06-18 NIIBE Yutaka <gniibe@fsij.org>
10665 scd: KEYINFO: Send LF for --data.
10666 + commit c3dd53a65dc9ea2c4814e24079f0270c2fef14c6
10667 * scd/command.c (send_keyinfo): Send LF for --data.
10669 2019-06-17 Werner Koch <wk@gnupg.org>
10671 scd:piv: Add the do_with_keygrip feature.
10672 + commit e900bf29737b3f7a09f749a271f2c5d7b59c49eb
10673 * scd/app-piv.c (do_with_keygrip): New.
10674 (app_select_piv): Register function.
10676 scd: Add explict functions for 'app' reference counting.
10677 + commit c594dcfc93486cd26e193aa5c82bb8a8f30ab57b
10678 * scd/app.c (app_ref): New.
10680 (release_application): Renamed to ...
10681 (app_unref_locked): this and remove arg locked_already. Change
10682 callers to use this or app_ref.
10683 * scd/command.c (open_card_with_request):
10684 (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): Use app_ref and app_unref
10685 instead of accessing the counter directly.
10687 scd: Slight change to app->fnc.do_with_keygrip.
10688 + commit 70f7b262877b1e751d8557dc04a09a420e9d8a8f
10689 * scd/app-openpgp.c (do_with_keygrip): Return a real error code to
10690 avoid misinterpretation of the result. Also fix the case for a too
10693 scd: Use the correct gpg for the v1.0 OpenPGP card hack.
10694 + commit 479c2775d5df64432c1bf64faae7f9abd3042850
10695 * scd/app-openpgp.c (get_public_key): Use gnupg_module_name instead of
10698 2019-06-14 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10700 fix up 6562de7475b21cd03c7b1a83a591fa563c589f5b.
10701 + commit 6e46862abd2c2e82f245e381c3f08c5829fb61e6
10704 2019-06-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10706 doc/gpgsm: explain what "policy-file" refers to.
10707 + commit 6562de7475b21cd03c7b1a83a591fa563c589f5b
10708 A new user who sees "policy-file" and searches naively through the
10709 documentation to find it again won't be able to tell what this refers
10710 to, since "policies.txt" doesn't otherwise match the search string
10711 "policy". This gives them a fighting chance at finding the
10714 2019-06-07 NIIBE Yutaka <gniibe@fsij.org>
10716 gpgparsemail: Die on parse error, printing errno thing.
10717 + commit 1e9d61fb95e4813225a40f720231196abdb83992
10718 * tools/gpgparsemail.c (parse_message): Revert the change.
10719 * tools/rfc822parse.c (transition_to_body): Set ERRNO.
10720 (transition_to_header, insert_header): Likewise.
10722 2019-06-06 NIIBE Yutaka <gniibe@fsij.org>
10724 scd: Bring back --card-timeout option as deprecated.
10725 + commit 72fe8d652fce6cb9104bb07ef0fb811cbab3303a
10726 * doc/scdaemon.texi (card-timeout): Add.
10727 * scd/scdaemon.c (main): Revert the change.
10729 gpgparsemail: Die on parse error (not abort).
10730 + commit c13e459ffeffb8c5387c44b3c04bb92b7111a75b
10731 * tools/gpgparsemail.c (parse_message): Don't use ERRNO.
10732 * tools/rfc822parse.c (transition_to_body): Return -1.
10733 (transition_to_header, insert_header): Likewise.
10735 2019-06-04 Werner Koch <wk@gnupg.org>
10737 sm: Print a better diagnostic for encryption certificate selection.
10738 + commit 9bf650db022b6b65bbfa74c311cdc3e6b73d3b44
10739 * sm/certlist.c (gpgsm_add_to_certlist): Add diagnostic and fold two
10742 2019-06-04 NIIBE Yutaka <gniibe@fsij.org>
10744 g10: Block signals in g10_exit.
10745 + commit 537fbe13af6a70e105982c4b69c1bcc3908ffb08
10746 * g10/gpg.c (g10_exit): Block all signals before calling
10749 agent: Allow TERM="".
10750 + commit 0076bef2026a87c4c0e05bad7d322638b1de3f37
10751 * agent/call-pinentry.c (start_pinentry): When TERM is none,
10752 don't send OPTION ttytype to pinentry.
10754 agent: Add pinentry_loopback_confirm declaration.
10755 + commit 3a1bb0081087c0604ed681642114934ffe607fa1
10756 * agent/agent.h (pinentry_loopback_confirm): New.
10758 scd: Remove unsupported --card-timeout option.
10759 + commit 4262933ef6f7530b4ad55646250a6763de9bf103
10760 * doc/scdaemon.texi (card-timeout): Remove.
10761 * scd/scdaemon.c (main): Remove oCardTimeout handling.
10763 g10,agent: Support CONFIRM for --delete-key.
10764 + commit 20acc7c0226550530085a674ef1bb41ebfa39408
10765 * agent/call-pinentry.c (agent_get_confirmation): Add call of
10766 pinentry_loopback_confirm.
10767 (agent_popup_message_start): Likewise.
10768 (agent_popup_message_stop): Return if it's loopback mode.
10769 * agent/command.c (pinentry_loopback_confirm): New.
10771 * g10/call-agent.c (default_inq_cb): Support "CONFIRM" inquery
10772 when PINENTRY_MODE_LOOPBACK mode.
10773 (confirm_status_cb): New.
10774 (agent_delete_key): Supply confirm_status_cb to set the description
10775 string for confirmation.
10777 doc: Add a section for gpg-check-pattern.
10778 + commit eaf3b89d11156cc055644fc50761e1692e791e84
10779 * doc/Makefile.am: Add gpg-check-pattern.1.
10780 * doc/tools.texi (GPG-CHECK-PATTERN): New.
10782 2019-06-03 Werner Koch <wk@gnupg.org>
10784 Return better error code for some getinfo IPC commands.
10785 + commit f2ac6742d403a5a95d84ac7cdcf8913c39297bcb
10786 * agent/command.c (cmd_getinfo): Return GPG_ERR_FALSE as boolean False.
10787 * g13/server.c (cmd_getinfo): Ditto.
10788 * sm/server.c (cmd_getinfo): Ditto.
10790 2019-05-29 NIIBE Yutaka <gniibe@fsij.org>
10792 agent: Add A-flag for KEYINFO output for card.
10793 + commit 6790eaf9529209e36099d9520821a3b8ad02ccef
10794 * agent/command.c (do_one_keyinfo): Add ON_CARD argument to put
10796 (cmd_keyinfo): Call agent_card_keyinfo to offer additional information
10799 2019-05-28 Werner Koch <wk@gnupg.org>
10801 dirmngr: Allow for other hash algorithms than SHA-1 in OCSP.
10802 + commit 405f41007c35ef52bf85c7c2686dab01fdf2c950
10803 * dirmngr/ocsp.c (do_ocsp_request): Remove arg md. Add args r_sigval,
10804 r_produced_at, and r_md. Get the hash algo from the signature and
10805 create the context here.
10806 (check_signature): Allow any hash algo. Print a diagnostic if the
10807 signature does not verify.
10809 dirmngr: Improve finding OCSP cert.
10810 + commit 4699e294cc9e59f35262adca26ca291927acca9e
10811 * dirmngr/certcache.c (find_cert_bysubject): Add better debug output
10812 and try to locate by keyid.
10814 agent: Make an MD encoding function more robust.
10815 + commit a2a90717466a88756bbdc6b11577cfee061fc1a8
10816 * agent/pksign.c (do_encode_md): Use ascii_tolower and avoid
10817 uninitalized TMP in the error case.
10819 2019-05-28 NIIBE Yutaka <gniibe@fsij.org>
10821 agent: Remove unused agent_show_message.
10822 + commit 19415a265253a5ab72e79493d2f40c7e4441d81e
10823 * agent/call-pinentry.c (agent_show_message): Remove.
10824 * agent/genkey.c (take_this_one_anyway): Rename from
10825 take_this_one_anyway2. Remove a dead path calling agent_show_message.
10826 (check_passphrase_constraints): Use take_this_one_anyway.
10828 2019-05-27 Werner Koch <wk@gnupg.org>
10830 sm: Avoid confusing diagnostic for the default key.
10831 + commit 521e7d4644ed365ab2de3dfaa6c3728ca10ba79b
10832 * sm/certlist.c (cert_usage_p): Add arg 'silent' and change all
10834 (gpgsm_cert_use_sign_p): Add arg 'silent' and pass to cert_usage_p.
10835 Change all callers.
10836 * sm/sign.c (gpgsm_get_default_cert): Set SILENT when calling
10837 gpgsm_cert_use_sign_p
10839 gpg: Fixed i18n markup of some strings.
10840 + commit b6289af9738ddbc533defba0aefd950a9ca21ff1
10841 * g10/tofu.c: Removed some translation markups which either make no
10842 sense or are not possble.
10844 gpg: Allow deletion of subkeys with --delete-[secret-]key.
10845 + commit cc6069ac6ecd57dcbb808f28d54fd9f89dc55014
10846 * common/userids.c (classify_user_id): Do not set the EXACT flag in
10848 * g10/export.c (exact_subkey_match_p): Make static,
10849 * g10/delkey.c (do_delete_key): Implement subkey only deleting.
10851 2019-05-23 NIIBE Yutaka <gniibe@fsij.org>
10853 agent: Stop scdaemon after reload when disable_scdaemon.
10854 + commit 7158a5696dc84e1ebd2b523ab83a43a32423181d
10855 * agent/call-scd.c (agent_card_killscd): New.
10856 * agent/gpg-agent.c (agent_sighup_action): Call agent_card_killscd.
10858 g10: Copy expiredate from primary key when marked expired.
10859 + commit 265e6d670682e661cec89657c3330b0b388ca0a7
10860 * g10/getkey.c (merge_selfsigs): Update ->expiredate of subkey.
10862 2019-05-21 Werner Koch <wk@gnupg.org>
10864 gpg: Do not bail on an invalid packet in the local keyring.
10865 + commit 4c7d63cd5b02ebfd09933bebd1312e01958b3e20
10866 * g10/keydb.c (parse_keyblock_image): Treat invalid packet special.
10868 gpg: Do not allow creation of user ids larger than our parser allows.
10869 + commit 156788a43c20e38cd52f4f725395aff2c72142ff
10870 * g10/parse-packet.c: Move max packet lengths constants to ...
10871 * g10/packet.h: ... here.
10872 * g10/build-packet.c (do_user_id): Return an error if too data is too
10874 * g10/keygen.c (write_uid): Return an error for too large data.
10876 gpg: Unify the the use of the print_pubkey_info functions.
10877 + commit 126caa34bbdb36f40514643b9d6f5ead3240c735
10878 * g10/keylist.c (format_seckey_info): Remove.
10879 (print_pubkey_info, print_seckey_info): Remove.
10880 (format_key_info): New.
10881 (print_key_info): New.
10882 (print_key_info_log): New.
10883 * g10/card-util.c (current_card_status): Use print_key_info and remove
10884 the useless condition on KEYBLOCK.
10885 * g10/delkey.c (do_delete_key): Replace print_pubkey_info and
10886 print_seckey_info by print_key_info.
10887 * g10/keyedit.c (menu_addrevoker): Replace print_pubkey_info by
10889 * g10/pkclist.c (do_we_trust_pre): Ditto.
10890 * g10/revoke.c (gen_desig_revoke): Ditto.
10891 (gen_revoke): Ditto. Also use print_key_info_log instead of separate
10894 2019-05-21 NIIBE Yutaka <gniibe@fsij.org>
10896 scd: Fix for SCARD_IO_REQUEST structure.
10897 + commit 1eb93d9229c54baa5f1b7ccf7d105d3692c51a4d
10898 * scd/apdu.c (struct pcsc_io_request_s): Use pcsc_dword_t for Windows.
10900 agent: For SSH key, don't put NUL-byte at the end.
10901 + commit 479f7bf31ce405e558d844c3eb576b463a8697e5
10902 * agent/command-ssh.c (ssh_key_to_protected_buffer): Update
10903 the length by the second call of gcry_sexp_sprint.
10905 2019-05-20 Werner Koch <wk@gnupg.org>
10906 Matheus Afonso Martins Moreira
10908 gpg: Do not delete any keys if --dry-run is passed.
10909 + commit 110a4550179fd1faeee8d2f17a33ed7807a397ae
10910 * g10/delkey.c (do_delete_key): Don't delete the keyblock on dry runs.
10911 Do not clear the ownertrust. Do not let the agent delete the key.
10913 2019-05-17 Werner Koch <wk@gnupg.org>
10915 gpg: Fix using --decrypt along with --use-embedded-filename.
10916 + commit 386bacd9741639d7f5e83c81628d3cad78407197
10917 * g10/options.h (opt): Add flags.dummy_outfile.
10918 * g10/decrypt.c (decrypt_message): Set this global flag instead of the
10919 fucntion local flag.
10920 * g10/plaintext.c (get_output_file): Ignore opt.output if that was
10921 used as a dummy option aslong with --use-embedded-filename.
10923 gpg: Improve the photo image viewer selection.
10924 + commit 7e5847da0f3d715cb59d05adcd9107b460b6411b
10925 * g10/exec.c (w32_system): Add "!ShellExecute" special.
10926 * g10/photoid.c (get_default_photo_command): Use the new ShellExecute
10927 under Windows and fallbac to 'display' and 'xdg-open' in the Unix
10929 (show_photos): Flush stdout so that the output is shown before the
10932 2019-05-16 Werner Koch <wk@gnupg.org>
10934 kbx: Fix an endless loop under Windows due to an incomplete fix.
10935 + commit 6fc5df1e10129f3171d80cf731f310b9e8d97c26
10936 * kbx/keybox-search.c (keybox_search): We need to seek to the last
10937 position in all cases not just when doing a NEXT.
10939 gpgconf: Before --launch check that the config file is fine.
10940 + commit 50c2f76ae65d4ee793876865011fa97c85f38ac2
10941 * tools/gpgconf-comp.c (gc_component_launch): Check the conf file.
10942 * tools/gpgconf.c (gpgconf_failure): Call log_flush.
10944 scd: Remove unused cruft from GnuPG 1.x.
10945 + commit 79c99921e35921140c83d7c101829d95f038f3da
10946 * scd/apdu.c: Remove code used only by GnuPG 1.
10947 * scd/app-openpgp.c: Ditto.
10948 * scd/ccid-driver.c: Ditto.
10949 * scd/iso7816.c: Ditto.
10951 2019-05-16 NIIBE Yutaka <gniibe@fsij.org>
10953 agent,scd: Scan and load all public keys for availability.
10954 + commit dc35b25195e564affdea7969a7c4ea4e200ab45f
10955 * agent/divert-scd.c (ask_for_card): Scan by SERIALNO command.
10956 * scd/app-openpgp.c (do_with_keygrip): Make sure to load pubkey.
10958 2019-05-15 NIIBE Yutaka <gniibe@fsij.org>
10960 agent: Support scdaemon operation using KEYGRIP.
10961 + commit 1091f22511e1a8259eb5c998f5c207ee95723a4a
10962 * agent/agent.h (struct card_key_info_s): New.
10963 (divert_pksign, divert_pkdecrypt): New API.
10964 * agent/call-scd.c (card_keyinfo_cb): New.
10965 (agent_card_free_keyinfo, agent_card_keyinfo): New.
10966 * agent/divert-scd.c (ask_for_card): Having GRIP argument,
10967 ask scdaemon with agent_card_keyinfo.
10968 (divert_pksign, divert_pkdecrypt): Ditto.
10969 * agent/pkdecrypt.c (agent_pkdecrypt): Supply GRIP.
10970 * agent/pksign.c (agent_pksign_do): Ditto.
10972 scd: Don't put newline at the end of status.
10973 + commit 01730529f20882cd98882a61408e9bee960c86f1
10974 * scd/command.c (send_keyinfo): Remove newline.
10976 2019-05-15 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10978 gpg: enable OpenPGP export of cleartext keys with comments.
10979 + commit 392e59a3d487e174edcea570e69a0f946c55a19a
10980 * g10/export.c (cleartext_secret_key_to_openpgp): ignore trailing
10981 sublists in private-key S-expression.
10983 2019-05-15 Werner Koch <wk@gnupg.org>
10985 gpgconf: Support --homedir for --launch.
10986 + commit a4be077abdbf286e3dcdeb0553ba0e74b7e2df5f
10987 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Simplify because
10988 gnupg_homedir already returns abd absolute name.
10989 (scdaemon_runtime_change): Ditto.
10990 (dirmngr_runtime_change): Ditto.
10991 (gc_component_launch): Support --homedir.
10993 sm: Add a couple of debug calls to the keydb module.
10994 + commit 6e041b7b356c3adba714e98f4ecf0dd007375390
10995 * sm/gpgsm.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
10996 (DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
10997 * sm/gpgsm.c: new debug flags "lookup" and "clock"
10998 * sm/keydb.c: Add log_clock calls to most functions.
10999 (keydb_search_desc_dump): New.
11000 (keydb_search) [DBG_LOOKUP]: Print descrh decription.
11001 * sm/keylist.c (list_cert_std): Flush FP in debug mode to better
11002 syncronize the output with the debug output
11004 2019-05-15 NIIBE Yutaka <gniibe@fsij.org>
11006 scd: Fix return value for KEYINFO command.
11007 + commit 62c29af63203400947569c5965a8cf05a22fcd4c
11008 * scd/command.c (cmd_keyinfo): Return GPG_ERR_NOT_FOUND if none.
11010 2019-05-14 Werner Koch <wk@gnupg.org>
11012 kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.
11013 + commit 49b236af0ecbb6df67513feb4b63851f2e159ea2
11014 * kbx/keybox-init.c (keybox_lock) [W32]: Use _keybox_close_file
11015 instead of fclose so that a close is done if the file is opened by
11017 * kbx/keybox-search.c (keybox_search): Remember the last offset and
11018 use that in NEXT search mode if we had to re-open the file.
11020 sm: Change keydb code to use the keybox locking.
11021 + commit 22e274f839f9a6c9a511648f29cae497f6492c97
11022 * kbx/keybox-init.c (keybox_lock): New arg TIMEOUT. Change all
11023 callers to pass -1 when locking.
11024 * sm/keydb.c (struct resource_item): Remove LOCKANDLE.
11025 (struct keydb_handle): Add KEEP_LOCK.
11026 (keydb_add_resource): Use keybox locking instead of a separate dotlock
11027 for testing whether we can run a compress.
11028 (keydb_release): Reset KEEP_LOCK.
11029 (keydb_lock): Set KEEP_LOCK.
11030 (unlock_all): Take care of KEEP_LOCK.
11031 (lock_all): Use keybox_lock instead of dotlock fucntions.
11032 (keydb_delete): Remove arg UNLOCK.
11033 * sm/delete.c (delete_one): Adjust keydb_delete. Due to the KEEP_LOCK
11034 the keydb_release takes care of unlocking.
11036 2019-05-14 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11038 agent: correct length for uri and comment on 64-bit big-endian platforms
11039 + commit 5651b2c460a7898027c1765c2063c302606b5f85
11040 * agent/findkey.c (agent_public_key_from_file): pass size_t as int to
11041 gcry_sexp_build_array's %b.
11043 2019-05-14 Werner Koch <wk@gnupg.org>
11045 gpg: Do not print a hint to use the deprecated --keyserver option.
11046 + commit 7102d9b798b0985412007d3bf8b954959e4adec7
11047 * g10/keyserver.c (keyserver_search): Remove a specialized error
11050 2019-05-14 NIIBE Yutaka <gniibe@fsij.org>
11052 g10: Fix possible null dereference.
11053 + commit 802a2aa300bad3d4385d17a2deeb0966da4e737d
11054 * g10/armor.c (armor_filter): Access ->d in the internal loop.
11056 2019-05-13 Werner Koch <wk@gnupg.org>
11058 gpg: Change update_keysig_packet to replace SHA-1 by SHA-256.
11059 + commit 484d6ba5896acfa3dcf73d9536bcf5e006579b5f
11060 * g10/sign.c (update_keysig_packet): Convert digest algo when needed.
11062 gpg: Cleanup use of make_keysig_packet.
11063 + commit d07666412d4317460c6f03b3ffd03edf4a715ef7
11064 * g10/sign.c (make_keysig_packet): Remove obsolete arg diegst_algo
11065 which was always passed as 0. Change all callers.
11067 * g10/gpgcompose.c (signature): Warn when trying to set a digest algo.
11069 2019-05-13 NIIBE Yutaka <gniibe@fsij.org>
11071 build: Update m4/iconv.m4.
11072 + commit 1cd2aca03b8807c6f8e4929ace462bb606dcd53f
11073 * m4/iconv.m4: Update from gettext 0.20.1.
11075 2019-05-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11077 doc: correct documentation for gpgconf --kill.
11078 + commit 9662538be6afc8beee0f2654f9a8f234c5dac016
11079 * doc/tools.texi(gpgconf): Correct documentation for gpgconf --kill.
11081 2019-05-07 Werner Koch <wk@gnupg.org>
11083 agent: If a Label is make sure that label is part of the prompt.
11084 + commit 69e0b080f06b66eee96327617c6fbffe8a88d586
11085 * agent/findkey.c (has_comment_expando): New.
11086 (agent_key_from_file): Modify DESC_TEXT.
11088 agent: Allow the use of "Label:" in a key file.
11089 + commit 5388537806411c19ea84db8c4419f410be9ac616
11090 * agent/findkey.c (linefeed_to_percent0A): New.
11091 (read_key_file): Add optional arg 'keymeta' and change all callers.
11092 (agent_key_from_file): Prefer "Label:" over the comment for protected
11095 common: New functions nvc_delete_named and nvc_get_string.
11096 + commit b5985d0ca21ca376f22c050857bfda05592cebef
11097 * common/name-value.c (nvc_delete_named): New.
11098 (nvc_get_string): New.
11100 2019-05-07 NIIBE Yutaka <gniibe@fsij.org>
11102 scd: Support direct use of app with PKSIGN/PKAUTH/PKDECRYPT.
11103 + commit c856ee7312c9eeb7d79a30189a49f70986420364
11104 * scd/command.c (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): When length
11105 of keyidstr is 40, it is considered as a keygrip for direct use.
11107 2019-05-03 Werner Koch <wk@gnupg.org>
11109 agent: Put Token lines into the key files.
11110 + commit bdf252e76ada0056bec2ee7940255f32552328c5
11111 * agent/findkey.c (write_extended_private_key): Add args serialno and
11112 keyref. Write a Token line if that does not yet exist.
11113 (agent_write_private_key): Add args serialno and keyref and change all
11115 (agent_write_shadow_key): Skip leading spaces.
11116 * agent/keyformat.txt: Improve extended key format docs.
11118 common: In private key mode write "Key:" always last in name-value.
11119 + commit c9fa28bfad297b17e76341ffb40383ce92da5d44
11120 * common/name-value.c (nvc_write): Take care of Key. Factor some code
11122 (write_one_entry): new.
11124 gpg: Use just the addrspec from the Signer's UID.
11125 + commit bd6ecbb8f8e92fe4a7fed40fcf470eb83bda0927
11126 * g10/parse-packet.c (parse_signature): Take only rthe addrspec from a
11127 Signer's UID subpacket.
11129 2019-04-30 Werner Koch <wk@gnupg.org>
11131 sm: Add yet inactive options to support authenticode.
11132 + commit 5f3864fb647237f862bbe7e26763dffa0e945202
11133 * sm/gpgsm.c (opts): New options --authenticode and --attribute.
11134 * sm/gpgsm.h (opt): Add vars authenticode and attribute_list.
11135 * sm/sign.c (add_signed_attribute): New but inactive.
11136 (gpgsm_sign): Use new options.
11138 2019-04-29 Andre Heinecke <aheinecke@gnupg.org>
11140 common,w32: Breakaway detached childs when in job.
11141 + commit 03df28b18b92b3fd3d2ba1000903c088dc5b0fcf
11142 * common/exechelp-w32.c (gnupg_spawn_process_detached): Add
11143 CREATE_BREAKAWAY_FROM_JOB creation flag if required.
11145 2019-04-25 NIIBE Yutaka <gniibe@fsij.org>
11147 scd: Add new command: KEYINFO.
11148 + commit 874bc970ba6ec243ff474ef090242e0f7be6a7bc
11149 * scd/app-common.h (struct app_ctx_s): Add with_keygrip function.
11150 * scd/app-openpgp.c (do_with_keygrip): New.
11151 * scd/app.c (app_do_with_keygrip): New.
11152 * scd/command.c (cmd_keyinfo): New.
11153 (send_keyinfo): New.
11155 2019-04-23 NIIBE Yutaka <gniibe@fsij.org>
11157 po: Update Japanese Translation.
11158 + commit d5443b918dd3b8ccb3c4fdd8fe9d70d84aa312ff
11161 scd: Allow KEYGRIP as KEYIDSTR.
11162 + commit e769609cd3c12d2e26955538399172016f78d2d4
11163 * scd/app-openpgp.c (struct app_local_s): Add keygrip_str.
11164 (store_keygrip): New.
11165 (read_public_key): Call store_keygrip to hold keygrip.
11166 (get_public_key): Likewise.
11167 (send_keypair_info): Use stored keygrip_str.
11168 (check_keyidstr): Allow use of KEYGRIP.
11169 (do_check_pin): Allow use of KEYGRIP of signing slot.
11171 2019-04-22 NIIBE Yutaka <gniibe@fsij.org>
11173 scd: Factor out a function to check keyidstr.
11174 + commit b0f0791e4ade845b2a0e2a94dbda4f3bf1ceb039
11175 * scd/app-openpgp.c (check_keyidstr): New.
11176 (do_sign, do_auth, do_decipher, do_check_pin): Use check_keyidstr.
11178 2019-04-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11180 gpgconf: correct capitalization of "Tor"
11181 + commit ea7d85ff658c000f5f469e0a869af0e512e8c59f
11182 * tools/gpgconf-comp.cb (gc_options_dirmngr): correct capitalization
11185 2019-04-18 Andre Heinecke <aheinecke@intevation.de>
11187 g10: Fix double free when locating by mbox.
11188 + commit e57954ed278cb5e6e725005b1ecaf7ce70006ce0
11189 * g10/getkey.c (get_best_pubkey_byname): Set new.uid always
11192 2019-04-17 NIIBE Yutaka <gniibe@fsij.org>
11194 g10: Fix a memory leak.
11195 + commit a861f9343d6e6d18064e4e54aeb914c5a10b2095
11196 * g10/import.c (import): Care PNDING_PKT on error.
11198 2019-04-16 NIIBE Yutaka <gniibe@fsij.org>
11200 common: Fix AWK portability.
11201 + commit b6f0b0efa19e0434024bc16e246032b613fd448a
11202 * common/Makefile.am: Use pkg_namespace.
11203 * common/mkstrtable.awk: Use pkg_namespace. Regexp fix.
11205 2019-04-13 Werner Koch <wk@gnupg.org>
11207 gpg: New caching functions.
11208 + commit 64a5fd37271a3e454c0d59ac3500e1a1b232e4f7
11209 * g10/objcache.c: New.
11210 * g10/objcache.h: New.
11211 * g10/Makefile.am (common_source): Add them.
11212 * g10/gpg.c: Include objcache.h.
11213 (g10_exit): Call objcache_dump_stats.
11214 * g10/getkey.c: Include objcache.h.
11215 (get_primary_uid, release_keyid_list): Remove.
11216 (cache_user_id): Remove.
11217 (finish_lookup): Call the new cache_put_keyblock instead of
11219 (get_user_id_string): Remove code for mode 2.
11220 (get_user_id): Implement using cache_get_uid_bykid.
11222 2019-04-12 Werner Koch <wk@gnupg.org>
11224 gpg: Cache a once computed fingerprint in PKT_public_key.
11225 + commit 60f384592144de53c9a5f5e11d7f73ce863aa94f
11226 * g10/packet.h (PKT_public_key): Add fields fpr and fprlen.
11227 * g10/keyid.c (do_fingerprint_md): Remove.
11228 (compute_fingerprint): New.
11229 (keyid_from_pk): Simplify.
11230 (fingerprint_from_pk): Simplify.
11231 (hexfingerprint): Avoid using extra array.
11233 2019-04-11 Werner Koch <wk@gnupg.org>
11235 gpg: Accept also armored data from the WKD.
11236 + commit 1b1f649deaeba963ed7240b27f848004db0b051f
11237 * g10/keyserver.c (keyserver_import_wkd): Clear NO_ARMOR.
11239 gpg: Set a limit of 5 to the number of keys imported from the WKD.
11240 + commit 40595b57936e39ee2a4d58b1dd19edea7537a471
11241 * g10/import.c (import): Limit the number of considered keys to 5.
11242 (import_one): Return the first fingerprint in case of WKD.
11244 2019-04-11 Andre Heinecke <aheinecke@gnupg.org>
11246 speedo,w32: Install gpg-card.exe.
11247 + commit b30351496dd3056462c8db25c03fed6d2aa00e9b
11248 * build-aux/speedo/w32/inst.nsi: Install gpg-card.exe
11250 2019-04-05 Werner Koch <wk@gnupg.org>
11252 gpg: Fix printing of the user id during import.
11253 + commit ea32842d5c2e2d262d32791130d7eae5c8c3edcf
11254 * g10/getkey.c (struct keyid_list): Add field fprlen.
11255 (cache_user_id): Set and test it.
11256 (get_user_id_byfpr): Make static, add arg fprlen and use it.
11257 (get_user_id_byfpr_native): Add arg fprlen and change all callers.
11259 2019-04-04 Werner Koch <wk@gnupg.org>
11261 scd:piv: Fix RSA decryption.
11262 + commit 958172cc3acb7172bc5e1fa76efafe26695ed402
11263 * scd/app-piv.c (do_decipher): Fixup leading zero byte.
11265 2019-04-04 NIIBE Yutaka <gniibe@fsij.org>
11267 scd: Better handling of timeout and time extension.
11268 + commit f1cf799a37f320d33cae445c74f3fc1936dd9995
11269 * scd/ccid-driver.c (CCID_CMD_TIMEOUT_LONGER): Remove.
11270 (ccid_transceive): Don't use x4 blindly for bBWI, but use dynamically
11271 determined value. Use value from variable wait_more for bulk_in.
11272 Set wait_more by the value of time extension request.
11274 2019-04-03 Werner Koch <wk@gnupg.org>
11276 gpg: Improve the code to decrypt using PIV cards.
11277 + commit 2c9b68f28de1ce9a6a18d091caba01ddd4707774
11278 * g10/call-agent.c (agent_scd_keypairinfo): Add arg 'keyref'.
11279 * g10/keygen.c (ask_algo): Adjust.
11280 * g10/skclist.c (enum_secret_keys): Request the keyref directly.
11282 scd: New options --info and --info-only for READKEY.
11283 + commit 679b8f1c045476bd6e0a1f1565379263143994ee
11284 * scd/command.c (cmd_readkey): New options --info and --info-only.
11285 * scd/app.c (app_readkey): New arg 'flags'.
11286 * scd/app-common.h (APP_READKEY_FLAG_INFO): New.
11287 (struct app_ctx_s): New args 'ctrl' and 'flags' for member readkey.
11288 Change all implementers.
11289 * scd/app-nks.c (do_readkey): Stub implementation of
11290 APP_READKEY_FLAG_INFO.
11291 * scd/app-openpgp.c (do_readkey): Implement APP_READKEY_FLAG_INFO.
11292 * scd/app-piv.c (do_readkey): Ditto.
11294 gpg: Allow decryption using PIV cards.
11295 + commit ec6a6779236a89d4784a6bb7de0def9cc0f9e8a4
11296 * g10/call-agent.c (struct getattr_one_parm_s): New.
11297 (getattr_one_status_cb): New.
11298 (agent_scd_getattr_one): New.
11299 * g10/pubkey-enc.c (get_it): Allow the standard leading zero byte from
11301 * g10/skclist.c (enum_secret_keys): Handle non-OpenPGP cards.
11303 scd: New standard attributes $ENCRKEYID and $SIGNKEYID.
11304 + commit 2b1135cf920cf3d863813d60f032d476dcccfb58
11305 * g10/call-agent.c (agent_scd_keypairinfo): Use --keypairinfo.
11306 * sm/call-agent.c (gpgsm_agent_scd_keypairinfo): Ditto.
11307 * scd/app-openpgp.c (do_getattr): Add attributes "$ENCRKEYID" and
11309 * scd/app-piv.c (do_getattr): Ditto.
11311 gpg: Avoid endless loop if a card's serial number can't be read.
11312 + commit 1f688e0d1dba4dd7a311d416d06d654ed7b4290d
11313 * g10/skclist.c (enum_secret_keys): Move list forward on error.
11315 card: Allow card selection with LIST.
11316 + commit bcca3acb87c36213fef9311236ea949d006f759c
11317 * tools/card-call-scd.c (start_agent): Request serialno only whean
11319 (scd_serialno): Allow NULL for r_serialno.
11320 * tools/gpg-card.c (cmd_factoryreset): Use changed scd_serialno.
11322 (dispatch_command): Use cmd_list for cmdLIST.
11323 (interactive_loop): Ditto.
11325 gpg: Print modern style key info for non-decryptable keys.
11326 + commit 2d3392c147a24e49ee4658d4a50fafd68599fba3
11327 * g10/mainproc.c (print_pkenc_list): Simplify.
11329 2019-04-02 Werner Koch <wk@gnupg.org>
11331 gpg: Allow direct key generation from card with --full-gen-key.
11332 + commit a480182f9d7ec316648cb64248f7a0cc8f681bc3
11333 * g10/call-agent.c (agent_scd_readkey): New.
11334 * g10/keygen.c (ask_key_flags): Factor code out to ..
11335 (ask_key_flags_with_mask): new.
11336 (ask_algo): New mode 14.
11338 common: Extend function pubkey_algo_string.
11339 + commit f952226043824cbbeb8517126b5266926121c4e8
11340 * common/sexputil.c (pubkey_algo_string): Add arg R_ALGOID.
11341 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Adjust.
11342 * tools/gpg-card.c (list_one_kinfo): Ditto.
11344 dirmngr: Improve domaininfo cache update algorithm.
11345 + commit e100ace7f8a729bbe30d9f4ed157a7a229a04eb0
11346 * dirmngr/domaininfo.c (struct domaininfo_s): Add field keepmark.
11347 (insert_or_update): Implement new update algorithm.
11349 2019-04-01 Werner Koch <wk@gnupg.org>
11351 sm: Show the usage flags when generating a key from a card.
11352 + commit 9ed1aa56c4bbf44e00b731d6807ada9e95c91bd7
11353 * g10/call-agent.c (scd_keypairinfo_status_cb): Also store the usage
11355 * sm/call-agent.c (scd_keypairinfo_status_cb): Ditto.
11356 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Print the usage flags.
11358 gpg: Prepare card code to allow other than OpenPGP cards.
11359 + commit e47524c34a2a9f53c2507f67a0b41b460cee78b7
11360 * g10/call-agent.c (start_agent): Use card app auto selection.
11361 * g10/card-util.c (current_card_status): Print the Application type.
11362 (card_status): Put empty line between card listings.
11364 gpg: New card function agent_scd_keypairinfo.
11365 + commit 0fad61de159acf39e38a04f28f162f0beb0e77d6
11366 * g10/call-agent.c (scd_keypairinfo_status_cb)
11367 (agent_scd_keypairinfo): New. Taken from gpgsm.
11369 gpg: Remove two unused card related functions.
11370 + commit 334b16b868e771b983263ed20c200869e7e51198
11371 * g10/call-agent.c (inq_writekey_parms): Remove.
11372 (agent_scd_writekey): Remove.
11373 (agent_clear_pin_cache): Remove this stub.
11375 gpg: Remove unused arg in a card related function.
11376 + commit 3a4534d82682f69788da3cf4a445e38fbaf6b98e
11377 * g10/call-agent.c (agent_scd_setattr): Remove unused arg serialno.
11379 2019-03-29 Werner Koch <wk@gnupg.org>
11381 dirmngr: Better for error code for http status 413.
11382 + commit 21b674097442a54ae889a90d708639b257ba43db
11383 * dirmngr/ks-engine-hkp.c (send_request): New case for 413.
11384 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
11385 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
11387 2019-03-28 Werner Koch <wk@gnupg.org>
11389 scd: New option --application-priority.
11390 + commit 97feef8ee94a5e1cb9daba82f108eb62122c7910
11391 * scd/scdaemon.c (oApplicationPriority): New.
11392 (opts): Add "application_priority".
11393 (main): Process option.
11394 * scd/app.c (app_update_priority_list): New.
11395 (get_supported_applications): Take apps from global list.
11397 * tools/gpgconf-comp.c (gc_options_scdaemon): Add option.
11399 card: For passwd add a PIV menu and make the OpenPGP menu optional.
11400 + commit 80c069b5e1ad6fbd547de59f332eb3fabb68c572
11401 * tools/gpg-card.c (get_selection): New.
11402 (cmd_passwd): Reworked.
11404 card: Allow "yubikey disable" only for Yubikey-5 and later.
11405 + commit 2f761251c5730a9ad113fa58466addc9c2372da8
11406 * tools/card-yubikey.c (yubikey_commands): Add new arg INFO and test
11408 * tools/gpg-card.c (cmd_yubikey): Pass info to yubikey_commands.
11410 2019-03-27 Werner Koch <wk@gnupg.org>
11412 scd: Support reading the Yubikey 4 firmware version.
11413 + commit 5a3055eb722e61126748e83564e1bba42807d722
11414 * scd/app.c (app_new_register): Detect yk4 version numbers.
11416 2019-03-27 Trevor Bentley <trevor@yubico.com>
11418 gpg: Don't use EdDSA algo ID for ECDSA curves.
11419 + commit 4324560b2c0bb76a1769535c383424a042e505ae
11420 * g10/keygen.c (ask_curve): Change algo ID to ECDSA if it changed from
11423 2019-03-26 Werner Koch <wk@gnupg.org>
11425 sm: Allow decryption even if expired other keys are configured.
11426 + commit aa58d2a49b3d416d9d6a0691a89f2bc8bc8649ad
11427 * sm/gpgsm.c (main): Add special handling for bad keys in decrypt
11430 agent: Allow other ssh fingerprint algos in KEYINFO.
11431 + commit 3c7a1f3aea7f6e8137a93ef2166ff329688f5445
11432 * agent/command.c (cmd_keyinfo): Allow for --ssh-fpr=ALGO. Default to
11435 2019-03-25 Werner Koch <wk@gnupg.org>
11437 wkd: New command --print-wkd-url for gpg-wks-client.
11438 + commit 70c97a862aa586c314a64190d1e489a272e552ea
11439 * tools/gpg-wks-client.c (aPrintWKDURL): New.
11440 (opts): Add option.
11442 * tools/wks-util.c (wks_cmd_print_wkd_url): New.
11444 2019-03-25 Andre Heinecke <aheinecke@gnupg.org>
11446 sm, w32: Translate logger and status fd to handles.
11447 + commit e4e0804ed123516fa00f8a876a862b2c6d34ba5c
11448 * sm/gpgsm.c (main): Call translate_sys2libc_fd_int to
11451 2019-03-25 NIIBE Yutaka <gniibe@fsij.org>
11453 libdns: Don't use _[A-Z] which are reserved names.
11454 + commit 8d1b5982138c104f3c50663738892fa110193059
11455 * dirmngr/dns.c: Use the identifiers of "*_instance" instead of
11458 2019-03-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11460 doc: fix formatting error.
11461 + commit b30528f48780c9917ec8ba3b3d163fba5c740d92
11464 2019-03-22 Werner Koch <wk@gnupg.org>
11466 wkd: New command --print-wkd-hash for gpg-wks-client.
11467 + commit e847cf1df7aa55ac2af7efd39ca05882258acbfe
11468 * tools/gpg-wks-client.c (aPrintWKDHash): New.
11469 (opts) : Add "--print-wkd-hash".
11470 (main): Implement that command.
11471 (proc_userid_from_stdin): New.
11472 * tools/wks-util.c (wks_fname_from_userid): Add option HASH_ONLY.
11473 (wks_cmd_print_wkd_hash): New.
11475 scd: Refactor the app selection code.
11476 + commit 393269948c883afb770bb536f03045254d13b911
11477 * scd/app.c (app_priority_list): New.
11479 2019-03-18 Andre Heinecke <aheinecke@gnupg.org>
11481 speedo: Fix installer build with NSIS-3.
11482 + commit b98799ce964df1743478dc3d0cc503f51c4b6733
11483 * build-aux/speedo.mk: Add charset for nsis 3.
11485 2019-03-18 Werner Koch <wk@gnupg.org>
11487 gpg: Allow import of PGP desktop exported secret keys.
11488 + commit 5205512fc092c53c0a52c8379ef2a129ce6e58a9
11489 * g10/import.c (NODE_TRANSFER_SECKEY): New.
11490 (import): Add attic kludge.
11491 (transfer_secret_keys): Add arg only_marked.
11492 (resync_sec_with_pub_keyblock): Return removed seckeys via new arg
11494 (import_secret_one): New arg r_secattic. Change to take ownership of
11495 arg keyblock. Implement extra secret key import logic. Factor some
11497 (do_transfer): New.
11498 (import_matching_seckeys): New.
11500 2019-03-15 Werner Koch <wk@gnupg.org>
11502 gpg: Avoid importing secret keys if the keyblock is not valid.
11503 + commit f799e9728bcadb3d4148a47848c78c5647860ea4
11504 * g10/keydb.h (struct kbnode_struct): Replace unused field RECNO by
11506 * g10/kbnode.c (alloc_node): Change accordingly.
11507 * g10/import.c (import_one): Add arg r_valid.
11508 (sec_to_pub_keyblock): Set tags.
11509 (resync_sec_with_pub_keyblock): New.
11510 (import_secret_one): Change return code to gpg_error_t. Return an
11511 error code if sec_to_pub_keyblock failed. Resync secret keyblock.
11513 gpg: During secret key import print "sec" instead of "pub".
11514 + commit f64477db86568bdc28c313bfeb8b95d8edf05a3c
11515 * g10/keyedit.c (show_basic_key_info): New arg 'print_sec'. Remove
11516 useless code for "sub" and "ssb".
11517 * g10/import.c (import_one): Pass FROM_SK to show_basic_key_info. Do
11518 not print the first keyinfo in FROM_SK mode.
11521 gpg: Simplify an interactive import status line.
11522 + commit f06b6fe47f56a15ac426665c3d9661d4b104696f
11523 * g10/cpr.c (write_status_printf): Escape CR and LF.
11524 * g10/import.c (print_import_check): Simplify by using
11525 write_status_printf and hexfingerprint.
11527 gpg: Fix recently introduced use after free.
11528 + commit 3e1f3df6183b2ed2cadf2af2383063891e2c53bd
11529 * g10/mainproc.c (proc_plaintext): Do not use freed memory.
11531 2019-03-14 Werner Koch <wk@gnupg.org>
11533 kbx: Unify the fingerprint search modes.
11534 + commit bdda31a26bc69b6ee72e964510db113645de76ef
11535 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_FPR16)
11536 (KEYDB_SEARCH_MODE_FPR20, KEYDB_SEARCH_MODE_FPR32): Remove. Switch
11537 all users to KEYDB_SEARCH_MODE_FPR along with the fprlen value.
11539 gpg: Make rfc4880bis the default.
11540 + commit caf4b3fc16e97eb175c46f45f5770d02becb862d
11541 * g10/gpg.c (set_compliance_option, main): Change CO_GNUPG to include
11542 rfc4880bis features.
11543 (main): Change rfc4880bis warning to a note.
11545 gpg: Implement v5 keys and v5 signatures.
11546 + commit 01c87d4ce23bc9fc44ec5301c2c6bf2ce615c375
11547 * g10/build-packet.c (gpg_mpi_write): New optional arg
11548 R_NWRITTEN. Allow NULL for OUT. Change all callers.
11549 (do_key): Support v5 keys.
11550 (build_sig_subpkt_from_sig): Support 32 byte fingerprints.
11551 * g10/parse-packet.c (parse_signature): First try to set the keyid
11552 from the issuer fingerprint.
11553 (parse_key): Support v5 keys.
11554 (create_gpg_control): Better make sure to always allocate the static
11555 size of the struct in case future compilers print warnings.
11556 * g10/keyid.c (hash_public_key): Add v5 support.
11557 (keyid_from_pk): Ditto.
11558 (keyid_from_fingerprint): Ditto.
11559 (fingerprint_from_pk): Ditto.
11560 * g10/keygen.c (KEYGEN_FLAG_CREATE_V5_KEY): New.
11561 (pVERSION, pSUBVERSION): New.
11562 (add_feature_v5): New.
11563 (keygen_upd_std_prefs): Call it.
11564 (do_create_from_keygrip): Add arg keygen_flags and support the v5
11566 (common_gen): Support the v5 flag.
11567 (parse_key_parameter_part): New flags v4 and v5.
11568 (parse_key_parameter_string): Add args for version and subversion.
11569 (read_parameter_file): New keywords "Key-Version" and
11571 (quickgen_set_para): Add arg 'version'.
11572 (quick_generate_keypair, generate_keypair): Support version parms.
11573 (do_generate_keypair): Support v5 key flag.
11574 (generate_subkeypair): Ditto.
11575 (generate_card_subkeypair): Preparse for keyflags.
11576 (gen_card_key): Ditto.
11577 * g10/sig-check.c (check_signature2): Add args extrahash and
11579 (check_signature_end): Ditto.
11580 (check_signature_end_simple): Ditto. Use them.
11581 * g10/mainproc.c (proc_plaintext): Put extra hash infor into the
11583 (do_check_sig): Add args extrahas and extrahashlen and pass them on.
11584 (issuer_fpr_raw): Support 32 byte fingerprint.
11585 (check_sig_and_print): get extra hash data and pass it on.
11587 kbx: Add support for 32 byte fingerprints.
11588 + commit f40e9d6a528521d12795e1a6cc15c849b216be92
11589 * common/userids.c (classify_user_id): Support 32 byte fingerprints.
11590 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_FPR32): New.
11591 (struct keydb_search_desc): Add field fprlen.
11592 * kbx/keybox-defs.h (struct _keybox_openpgp_key_info): Add field
11593 version and increase size of fpr to 32.
11594 * kbx/keybox-blob.c: Define new version 2 for PGP and X509 blobs.
11595 (struct keyboxblob_key): Add field fprlen and increase size of fpr.
11596 (pgp_create_key_part_single): Allow larger fingerprints.
11597 (create_blob_header): Implement blob version 2 and add arg want_fpr32.
11598 (_keybox_create_openpgp_blob): Detect the need for blob version 2.
11599 * kbx/keybox-search.c (blob_get_first_keyid): Support 32 byte
11601 (blob_cmp_fpr): Ditto.
11602 (blob_cmp_fpr_part): Ditto.
11603 (has_fingerprint): Add arg fprlen and pass on.
11604 (keybox_search): Support KEYDB_SEARCH_MODE_FPR32 and adjust for
11605 changed has_fingerprint.
11606 * kbx/keybox-openpgp.c (parse_key): Support version 5 keys.
11607 * kbx/keybox-dump.c (_keybox_dump_blob): Support blob version 2.
11609 * g10/delkey.c (do_delete_key): Support KEYDB_SEARCH_MODE_FPR32.
11610 * g10/export.c (exact_subkey_match_p): Ditto.
11611 * g10/gpg.c (main): Ditto.
11612 * g10/getkey.c (get_pubkey_byfprint): Adjust for changed
11613 KEYDB_SEARCH_MODE_FPR.
11614 * g10/keydb.c (keydb_search_desc_dump): Support
11615 KEYDB_SEARCH_MODE_FPR32 and adjust for changed KEYDB_SEARCH_MODE_FPR.
11616 (keydb_search): Add new arg fprlen and change all callers.
11617 * g10/keyedit.c (find_by_primary_fpr): Ditto.
11618 * g10/keyid.c (keystr_from_desc): Ditto.
11619 * g10/keyring.c (keyring_search): Ditto.
11620 * g10/keyserver.c (print_keyrec): Ditto.
11621 (parse_keyrec): Ditto.
11622 (keyserver_export): Ditto.
11623 (keyserver_retrieval_screener): Ditto.
11624 (keyserver_import): Ditto.
11625 (keyserver_import_fprint): Ditto.
11626 (keyidlist): Ditto.
11627 (keyserver_get_chunk): Ditto.
11629 * g10/keydb.c (keydb_search): Add new arg fprlen and change all
11632 * sm/keydb.c (keydb_search_fpr): Adjust for changed
11633 KEYDB_SEARCH_MODE_FPR.
11635 gpg: Implemented latest rfc4880bis version 5 packet hashing.
11636 + commit a21ca3a1eff4722dea778cca4abe14a873ccebdf
11637 * configure.ac (AC_CHECK_SIZEOF): Test size_t.
11638 * g10/sig-check.c (check_signature_end_simple): Support v5 signatures
11639 as per current rfc4880bis. For correctness also allow for N > 2^32.
11640 * g10/sign.c (pt_extra_hash_data_t): New.
11641 (hash_sigversion_to_magic): New arg EXTRAHASH.
11642 (write_plaintext_packet): New arg R_EXTRAHASH.
11643 (write_signature_packets): Pass EXTRAHASH.
11644 (sign_file): Ditto.
11645 (sign_symencrypt_file): Ditto.
11647 2019-03-14 NIIBE Yutaka <gniibe@fsij.org>
11649 Fix the previous commit.
11650 + commit f199b627ce512c8495af5c9bd1c81127ccde3ca0
11651 * g10/ecdh.c (kek_params_table): Revert the change.
11652 * scd/app-openpgp.c (ecdh_params): Use CIPHER_ALGO_AES256
11655 2019-03-13 NIIBE Yutaka <gniibe@fsij.org>
11657 g10: Fix symmetric cipher algo constant for ECDH.
11658 + commit af3efd149f555d36a455cb2ea311ff81caf5124c
11659 * g10/ecdh.c (kek_params_table): Use CIPHER_ALGO_AES192 for
11660 ECC strength 384, according to RFC-6637.
11662 2019-03-11 Werner Koch <wk@gnupg.org>
11664 dirmngr: Avoid testing for Tor with --gpgconf-list.
11665 + commit 9f37e93dd741a5436ff412955628806ae84725ca
11666 * dirmngr/dirmngr.c (post_option_parsing): Do not call set_tor_mode.
11667 (dirmngr_sighup_action): Call it here.
11668 (main): Call it here unless in --gpgconf-list mode.
11670 2019-03-07 Werner Koch <wk@gnupg.org>
11672 common: Minor rework of tty_get.
11673 + commit b7de105e0a836bd4d7bd558f8e699d88ab0cafec
11674 * common/ttyio.c (do_get): Re-indent and remove the checking for char
11675 values larger than 0xa0. Use explicy control character checking.
11677 dirmngr: Add CSRF protection exception for protonmail.
11678 + commit 134c3c16523b1a267ebdd2df6339240fd9e1e3b3
11679 * dirmngr/http.c (same_host_p): Add exception table.
11681 2019-03-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11683 gpgv: Improve documentation for keyring choices.
11684 + commit 096c2aa705f85289ff8b610da1dd9181e4c904fd
11685 * doc/gpgv.texi: Improve documentation for keyring choices
11687 2019-03-06 Werner Koch <wk@gnupg.org>
11689 gpgtar: Make option -C work for archive creation.
11690 + commit b3a7a5140784b5a015107b5c5c73b15ae44e71dc
11691 * tools/gpgtar-create.c (gpgtar_create): Switch to the -C directory.
11693 agent: Re-introduce --enable-extended-key-format.
11694 + commit 91ae3e7fb66271691f6fe507262a62fc7e2663a3
11695 * agent/gpg-agent.c (oEnableExtendedKeyFormat): Re-introduce.
11696 (parse_rereadable_options): Handle it in a special way.
11697 * agent/protect.c (agent_protect): Be safe and set use_ocb only to 1
11699 * tools/gpgconf-comp.c: Add --enable-extended-key-format again.
11701 gpgtar: Improve error messages.
11702 + commit 72feb8fa8280aba674573a1afc955a92e8065242
11703 * tools/gpgtar.h (struct tarinfo_s): New.
11704 * tools/gpgtar.c (cmd, skip_crypto, files_from, null_names): Move
11705 global vars more to the top.
11706 (set_cmd): Rename 'cmd' to 'c'.
11707 * tools/gpgtar-list.c (parse_header): Add arg 'info' and improve error
11709 (read_header): Add arg 'info' and update counter.
11710 (skip_data): Ditto.
11711 (gpgtar_list): Pass info object to read functions.
11712 (gpgtar_read_header): Add arg 'info'.
11713 * tools/gpgtar-extract.c (gpgtar_extract): add arg 'info' and pass on.
11714 (extract_regular): Add arg 'info' and update counter.
11716 agent: Default to extended key format.
11717 + commit 05eff1f6623c272fcabd4e238842afc832710324
11718 * agent/gpg-agent.c (oDisableExtendedKeyFormat, oNoop): New.
11719 (oEnableExtendedKeyFormat): Remove.
11720 (opts): Make --enable-extended-key-format a dummy option. Add
11721 disable-extended-key-format.
11722 (parse_rereadable_options): Implement oDisableExtendedKeyFormat.
11724 card: Allow PEM encoded certificates in "writecert".
11725 + commit 4e1f04a4cd30859507218395e630e886801ae2b7
11726 * tools/gpg-card.c (cmd_writecert): Convert from base64.
11728 card: Print the keyref also for non-initialized slots.
11729 + commit 772bba34ea089b3a00f0b1ea5138ba7422c95180
11730 * tools/gpg-card.c (list_one_kinfo): Add arg label_keyref and change
11733 2019-03-06 NIIBE Yutaka <gniibe@fsij.org>
11735 agent: Fix detection of exit of scdaemon.
11736 + commit 2abad7585a004586e27ead6ab8c9c57ce5ed1326
11737 * agent/call-scd.c (start_scd): Acquire START_SCD_LOCK for
11738 SCD_LOCAL_LIST. Move common case code to fast path.
11739 Release START_SCD_LOCK before calling unlock_scd.
11740 When new CTX is allocated, clear INVALID flag.
11741 (agent_reset_scd): Serialize the access to SCD_LOCAL_LIST by
11744 2019-03-05 Werner Koch <wk@gnupg.org>
11746 card: Print card version. Check for bad Yubikeys.
11747 + commit 8d4af54ddd039d47e9c4803559193fcca97f0a46
11748 * scd/app.c (app_new_register): Set card version for Yubikeys.
11749 (app_write_learn_status): Print CARDVERSION and APPVERSION.
11750 * tools/card-call-scd.c (learn_status_cb): Detect them.
11751 * tools/gpg-card.h (struct card_info_s): Add appversion and
11753 * tools/gpg-card.c (list_openpgp): Remove version printing from serial
11755 (print_a_version): New.
11756 (list_card): Print card and app version.
11757 (cmd_generate): Do not allow broken Yubikeys.
11759 scd: Rename a shared info field name.
11760 + commit 64caa6a08298119b10dc36ddd27b357cb47825b5
11761 * scd/app-piv.c (app_select_piv):
11762 * scd/app-common.h (struct app_ctx_s): Rename 'card_version' to
11763 'cardversion'. Rename all users. Add 'appversion'.
11765 scd:piv: Implement import of private keys for Yubikeys.
11766 + commit e897e1e255ef9870dfd1639d6f4e97bdf4e83b34
11767 * scd/app-piv.c (concat_tlv_list): Add arg 'secure' and adjust
11769 (writekey_rsa, writekey_ecc): New.
11770 (do_writekey): New.
11771 (do_writecert): Provide a better error message for an empty cert.
11772 (app_select_piv): Register do_writekey.
11773 * scd/iso7816.c (iso7816_send_apdu): New.
11774 * scd/app-common.h (APP_WRITEKEY_FLAG_FORCE): New.
11775 * agent/command.c (cmd_keytocard): Make the timestamp optional.
11776 * tools/card-call-scd.c (inq_writekey_parms): Remove.
11777 (scd_writekey): Rewrite.
11778 * tools/gpg-card.c (cmd_writekey): New.
11779 (enum cmdids): Add cmdWRITEKEY.
11780 (dispatch_command, interactive_loop): Call cmd_writekey.
11782 gpg: Make invalid primary key algos obvious in key listings.
11783 + commit db87132b10664718b7db6ec1dad584b54d1fb265
11784 * g10/keylist.c (print_key_line): Print a warning for invalid algos.
11786 agent: Minor change to the KEYTOCARD command.
11787 + commit bcc89a6df24c79690436340f65c7ab13c65c2c45
11788 * agent/command.c (cmd_keytocard): Make timestamp optional. Use
11789 modern parser function.
11790 * agent/call-scd.c (agent_card_writekey): Rename an arg and for
11791 clarity return gpg_error_t instead of int.
11792 * agent/divert-scd.c (divert_writekey): Ditto.
11794 2019-03-01 Werner Koch <wk@gnupg.org>
11796 sm: Print Yubikey attestation extensions with --dump-cert.
11797 + commit 86c241a8c9a952ea8007066b70b04f435e2e483e
11798 * sm/keylist.c (oidtranstbl): Add Yubikey OIDs.
11799 (OID_FLAG_HEX): New.
11800 (print_hex_extn): New.
11801 (list_cert_raw): Make use of that flag.
11803 scd:piv: Add feature to read Yubikey attestation certificates.
11804 + commit 51df13d9ec8e89c4236e2f4a9ae3647963c30783
11805 * scd/app-piv.c (do_readcert): Add hack to read Yubikey attestaions.
11807 scd:piv: Allow writecert to only write matching certs.
11808 + commit 696d4c290dd4945b693263721f606b5049b9569d
11809 * scd/app-piv.c (do_readkey): Read the key from the cert here instead
11810 of letting the upper layer do this.
11811 (do_writecert): Check that the cert matches the key and that a key has
11812 already been generated.
11814 card: Remove the "admin" command.
11815 + commit 280baee72dcb0ca54ce99b524bc2125cbc38e0e4
11816 * tools/gpg-card.c (cmd_passwd): Remove arg allow_admin.
11817 (enum cmdids): Rename cmdAUTHENTICATE to cmdAUTH and cmdFACTORYRESET
11819 (cmds): Remove column 'admin_only'.
11820 (interactive_loop): Remove admin_only stuff.
11822 2019-02-28 Werner Koch <wk@gnupg.org>
11824 sm: Don't mark a cert as de-vs compliant if it leads to SHA-1 sigs.
11825 + commit 2c75af9f65d15653ed1bc191f1098ae316607041
11826 * sm/keylist.c (print_compliance_flags): Also check the diges_also.
11828 2019-02-27 NIIBE Yutaka <gniibe@fsij.org>
11830 agent: PKSIGN should return signature in same format for card.
11831 + commit 0173b249cfb7f02f94911ec759630d81f312e0bd
11832 * agent/pksign.c (agent_pksign_do):
11834 2019-02-26 Werner Koch <wk@gnupg.org>
11836 scd: Simplify the app_readkey parameters.
11837 + commit c2235d994dbb1d7ddba20f89a7c02f4a27b0610c
11838 * scd/app-help.c (app_help_pubkey_from_cert): New.
11839 * scd/command.c (cmd_readkey): Refactor to use that new function and
11840 handle the --advanced flag only here.
11841 * scd/app.c (app_readkey): Remove parm advanced.
11842 * scd/app-common.h (struct app_ctx_s): Remove parm advanced from the
11844 * scd/app-nks.c (do_readkey): Adjust for removed parm.
11845 * scd/app-piv.c (do_readkey): Ditto.
11846 * scd/app-openpgp.c (do_readkey): Ditto.
11848 conf: New option --show-socket.
11849 + commit ac485b4f253ad6bbd2bc648650b56d60fc82f89d
11850 * tools/gpgconf-comp.c (gc_component_t): Move this enum to ...
11851 * tools/gpgconf.h: here.
11852 * tools/gpgconf.c (oShowSocket): New.
11853 (opts): Add new option.
11854 (main): Implement new option.
11856 2019-02-26 NIIBE Yutaka <gniibe@fsij.org>
11858 libdns: Avoid using compound literals (8).
11859 + commit 371ae25f8f6f2d1ac030bf984bca479393a5ed43
11860 * dirmngr/dns.h (dns_quietinit): Remove.
11861 (dns_hints_i_new): Remove.
11863 libdns: Avoid using compound literals (7).
11864 + commit d661acd483236d34720a4959fc816d05f89c2cb7
11865 * dirmngr/dns.h (DNS_OPTS_INIT, dns_opts): Remove.
11866 * dirmngr/dns-stuff.c (libdns_res_open): Use zero-ed, and initialized
11867 automatic variable for opts.
11868 * dirmngr/dns.c (send_query, resolve_query, resolve_addrinfo):
11871 libdns: Avoid using compound literals (6).
11872 + commit 6501e59d3685bb58753c9caea729a4b0eca3942a
11873 * dirmngr/dns.h (dns_rr_i_new): Remove.
11874 (dns_rr_i_init): Remove unused second argument.
11875 * dirmngr/dns.c (dns_p_dump, dns_hints_query, print_packet)
11876 (parse_packet): Use automatic variable for struct dns_rr_i.
11877 (dns_d_cname): No need to call dns_rr_i_init after memset 0.
11878 (dns_rr_i_init): Remove unused second argument. Return nothing.
11879 * dirmngr/dns-stuff.c (resolve_addr_libdns, get_dns_cert_libdns)
11880 (getsrv_libdns): Follow the change of dns_rr_i_init.
11882 libdns: Avoid using compound literals (5).
11883 + commit a1ccfe2b37847cce0db2fb94a7365c9fa501eda4
11884 * dirmngr/dns.h (dns_rr_foreach): Don't use dns_rr_i_new.
11885 Call dns_rr_grep with NULL.
11886 * dirmngr/dns.c (dns_rr_grep): Support NULL for error_.
11888 libdns: Avoid using compound literals (4).
11889 + commit 7313a112f9c7ada61d24285313d2e2d069a672e8
11890 * dirmngr/dns.h (dns_d_new*): Remove.
11891 * dirmngr/dns.c (parse_packet): Use dns_d_init with automatic
11893 (parse_domain): Likewise.
11895 libdns: Avoid using compound literals (3).
11896 + commit 72efb7840258808cd892b90d871ea1cc1c31d7f5
11897 * dirmngr/dns.h (dns_p_new): Remove.
11898 * dirmngr/dns.c (dns_hosts_query): Use dns_p_init with automatic
11900 (dns_hints_query, dns_res_glue, parse_packet, query_hosts)
11901 (send_query, show_hints, echo_port): Likewise.
11903 libdns: Avoid using compound literals (2).
11904 + commit 455ef62d29a112de05897139716265d07e4c6ae3
11905 * dirmngr/dns.h (dns_strsection1, dns_strsection3): Remove.
11906 (dns_strclass1, dns_strclass3): Remove.
11907 (dns_strtype1, dns_strtype3): Remove.
11908 (dns_strsection, dns_strclass, dns_strtype): Directly use the
11910 * dirmngr/dns.c (dns_strsection): Use automatic variable.
11911 (dns_strclass, dns_strtype): Likewise.
11913 libdns: Avoid using compound literals.
11914 + commit 1c405499388fd5bed0968ab5c6c5d1b3373537b9
11915 * dirmngr/dns.c (dns_inet_pton, dns_so_tcp_keep): Use automatic
11917 (dns_poll, dns_send_nopipe): Likewise, adding const qualifier.
11919 2019-02-25 Werner Koch <wk@gnupg.org>
11921 scd: PIV: Always require a PIN for signing with 9C.
11922 + commit a481d17432bf7cca19ca71b6aa5ccd9aee2b3baa
11923 * scd/app-piv.c (verify_chv): Add arg 'force'.
11924 (do_sign): Use force for 0x9c.
11926 card: Rename gpg-card-tool to gpg-card.
11927 + commit 28de5c0ea53373c56a4405fe6b08d194682dd1de
11928 * tools/card-tool-keys.c: Rename to card-keys.c.
11929 * tools/card-tool-misc.c: Rename to card-misc.c.
11930 * tools/card-tool-yubikey.c: Rename to card-yubikey.c.
11931 * tools/card-tool.h: Rename to gpg-card.h.
11932 * tools/gpg-card-tool-w32info.rc: Rename to gpg-card-w32info.rc
11933 * doc/card-tool.texi: Rename top gpg-card.texi
11935 agent: Fix for suggested Libgcrypt use.
11936 + commit a12c3a566e2e4b10bc02976a2819070877ee895c
11937 * agent/divert-scd.c (divert_pkdecrypt): Skip a flags parameter.
11939 2019-02-25 NIIBE Yutaka <gniibe@fsij.org>
11941 gpgscm: Build well even if NDEBUG defined.
11942 + commit e140c6d4f581be1a60a34b67b16430452f3987e8
11943 * gpgscm/scheme.c (gc_reservation_failure): Fix adding ";".
11944 [!NDEBUG] (scheme_init_custom_alloc): Don't init seserved_lineno.
11946 2019-02-22 NIIBE Yutaka <gniibe@fsij.org>
11948 scd: internal driver: Submit SET_INTERFACE control transfer.
11949 + commit 611faf1579a56925994d53eb08e1290a4b3958cf
11950 * scd/ccid-driver.c (ccid_open_usb_reader): Alway submit SET_INTERFACE
11953 2019-02-21 Werner Koch <wk@gnupg.org>
11955 sm: Fix certificate creation with key on card.
11956 + commit c1000c673814e552923cf1361346d7dfeee55608
11957 * sm/certreqgen.c (create_request): Fix for certmode.
11959 card: Print usage info for each key.
11960 + commit 7317aeb3f448c98dcfa9c04f49b9a69d81c26776
11961 * tools/card-call-scd.c (learn_status_cb): Handle extended
11963 * tools/card-tool.h (struct key_info_s): Add field 'usage'.
11964 * tools/gpg-card-tool.c (list_one_kinfo): Show usage flags.
11966 scd: Extend KEYPAIRINFO by key usage info.
11967 + commit 5e21ef2d556ca65b7869bf16ab465f3511601e1e
11968 * scd/app-openpgp.c (send_keypair_info): Append usage string.
11969 * scd/app-piv.c (struct data_object_s): Remove column 'binary'. Add
11971 (dump_all_do): Adjust for removed 'binary'.
11972 (send_keypair_and_cert_info): Append usage string.
11974 card: Print the keyref in the listing.
11975 + commit 3384ba6c1c421cfa674dbd8294dc655d7320534e
11976 * tools/gpg-card-tool.c (list_one_kinfo): Print the keyref.
11978 scd: Don't let the "undefined" app cause a conflict error.
11979 + commit 5ecc7a02609dde65096ddb12e0ff8f6bce3b774a
11980 * scd/app.c (check_conflict): Ignore "undefined".
11982 sm: Prepare algo mapping to handle values > 255.
11983 + commit d7a54ca461ad75e4fab77a2f1b25986c7637762a
11984 * sm/misc.c (transform_sigval): Allow for larger values of MDALGO and
11987 2019-02-21 NIIBE Yutaka <gniibe@fsij.org>
11989 scd: Clear CHV status on timeout error.
11990 + commit 2013cb5ee667610de35f8b92c2f979f5caa09d4c
11991 * scd/app-openpgp.c (clear_chv_status): New.
11992 (do_change_pin): Use clear_chv_status.
11993 (do_sign): Call clear_chv_status on GPG_ERR_TIMEOUT.
11994 (do_auth, do_decipher): Likewise.
11996 scd: Handle ack button timeout as GPG_ERR_TIMEOUT.
11997 + commit bd15aa34ab8ad10adbb7540a8845b4a2600437b6
11998 * scd/apdu.h (SW_ACK_TIMEOUT): New.
11999 * scd/iso7816.c (map_sw): Return GPG_ERR_TIMEOUT for SW_ACK_TIMEOUT.
12001 tests: Add "disable-scdaemon" in gpg-agent.conf.
12002 + commit 64b7c6fd1945bc206cf56979633dfca8a7494374
12003 * tests/openpgp/defs.scm: Add "disable-scdaemon". Remove
12004 "scdaemon-program".
12005 * tests/gpgme/gpgme-defs.scm, tests/gpgsm/gpgsm-defs.scm: Likewise.
12006 * tests/inittests, tests/pkits/inittests: Add "disable-scdaemon"
12008 2019-02-19 NIIBE Yutaka <gniibe@fsij.org>
12010 agent: Terminate pinentry process gracefully, by watching socket.
12011 + commit c395f8315362793409be54aca630ce6e903ea984
12012 * agent/call-pinentry.c (watch_sock): New.
12013 (do_getpin): Spawn the watching thread.
12015 agent: Minor change for pinentry status handling.
12016 + commit 99aa54323f97937613e02d8c2da91544e1fe7bcf
12017 * agent/call-pinentry.c (struct entry_parm_s): Add status.
12018 (do_getpin): Use param->status.
12019 (agent_askpin): Copy param->status. to pininfo.
12021 agent: Factor out the getpin interaction.
12022 + commit ada797f477f923bee36d67c8e49f728ae7adb9e9
12023 * agent/call-pinentry.c (do_getpin): New.
12024 (agent_askpin, agent_get_passphrase): Use do_getpin.
12026 2019-02-18 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
12028 sm: Support generation of card-based ed25519 CSR.
12029 + commit 3cbdf896e6919333b5423001ab58c01a04363386
12030 * sm/call-agent.c (gpgsm_scd_pksign): Allow SHA512. Create proper
12031 S-expression for EdDSA signature.
12032 * sm/certreqgen.c (create_request): Force use of SHA512 when
12033 using a ed25519 key.
12034 * sm/misc.c (transform_sigval): Insert OID for ed25519.
12036 2019-02-15 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
12038 sm: Support generation of card-based ECDSA CSR.
12039 + commit 74e9b579ca273fc07be090bb5fb7800a97b1b452
12040 * sm/call-agent.c (gpgsm_scd_pksign): Identify type of signing key
12041 and format resulting S-expression accordingly.
12042 * sm/misc.c (transform_sigval): Support ECDSA signatures.
12044 2019-02-14 Ingvar Hagelund <ingvar@redpill-linpro.com>
12046 po: Correct a simple typo in the Norwegian translation.
12047 + commit b89f1790e0b9f3196a2382a9b9ff5f461c58a449
12050 2019-02-13 Werner Koch <wk@gnupg.org>
12052 card: New command "yubikey".
12053 + commit 7e1cd2cd416f852fc039af310e3df1ce395d89a9
12054 * tools/card-tool-yubikey.c: New.
12055 * tools/Makefile.am (gpg_card_tool_SOURCES): Add it.
12056 * tools/card-call-scd.c (scd_apdu): Allow returning data.
12057 * tools/card-tool-misc.c (send_apdu): New. Move from gpg-card-tool.c
12058 and let it return data. Change all callers.
12060 * tools/gpg-card-tool.c (cmd_writecert): Prepend the certref with the
12061 current application type.
12062 (cmd_yubikey): New.
12064 2019-02-11 Werner Koch <wk@gnupg.org>
12066 scd: Implement decryption for PIV cards.
12067 + commit 43b14b4cc227311aa77b1fc1d9577c5f7d3eda86
12068 * scd/app-piv.c (do_decipher): New.
12070 scd: For PIV cards used NO_AUTH instead of BAD_PIN.
12071 + commit b2838694402ce0cfc2ef70451bf0e6677b875ca9
12072 * common/util.h (GPG_ERR_NO_AUTH, GPG_ERR_BAD_AUTH): Add replacement
12073 codes for gpgrt < 1.36.
12074 * scd/app-piv.c (auth_adm_key):
12075 (do_genkey, do_writecert): Use better error codes.
12077 2019-02-08 Werner Koch <wk@gnupg.org>
12079 scd: Implement RSA signing for PIV cards.
12080 + commit 53beea56afecde76f0f4ca93fc50ca59298a093e
12081 * scd/app-piv.c (concat_tlv_list): New.
12082 (get_key_algorithm_by_dobj): Rename args for clarity.
12083 (do_auth): factor all code out to ...
12084 (do_sign): new. Implement RSA signing.
12086 sm: In --gen-key with "key from card" show also the algorithm.
12087 + commit 0328976c94adc2c518c7a7763a35319a0000c5e2
12088 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Get and show algo.
12090 common: Provide function to get public key algo names in our format.
12091 + commit 03bf8e967adb2dd13329ba1089deb419d49e55c0
12092 * tools/card-tool-misc.c (pubkey_algo_string): Move to ...
12093 * common/sexputil.c (pubkey_algo_string): here.
12095 card: Make "generate" work for PIV cards.
12096 + commit a1cb4a940f308ba21ecc002b044efccf0c547784
12097 * tools/card-call-scd.c (scd_genkey_cb): Make createtime optional.
12098 (scd_genkey_cb): Ditto. Add arg algo.
12099 * tools/gpg-card-tool.c (cmd_generate): Add options and factor card
12100 specific code out to ...
12101 (generate_openpgp, generate_generic): new functions.
12103 scd: Allow generating ECC curves on PIV cards.
12104 + commit b349adc5c0d00d2fc405a45bd078f1580b5610cc
12105 * scd/app-piv.c (genkey_parse_ecc): New.
12106 (get_keygrip_by_tag): Call that one.
12107 (do_readkey): Call that one.
12108 * scd/command.c (cmd_genkey): Add option --algo.
12110 common: New functions get_option_value and ascii_strupr.
12111 + commit e2f18023b3b3b7e55b35218f65e37448d1011172
12112 * common/server-help.c (get_option_value): New.
12113 * common/stringhelp.c (ascii_strupr): New.
12115 2019-02-07 Werner Koch <wk@gnupg.org>
12117 card: Print the used algorithm of all keys.
12118 + commit b79bc877f2ad4d08e7de377cf4bf616b981b3c5f
12119 * tools/card-call-scd.c (scd_readkey): New.
12120 * tools/card-tool-misc.c (pubkey_algo_string): New.
12121 * tools/gpg-card-tool.c (list_one_kinfo): Print the algo.
12123 card: Fix a NULL-ptr deref in key listings.
12124 + commit df6ba6dfd235fddb7645bc16573da1a6a7e6b49d
12125 * tools/card-tool-keys.c (get_matching_keys): Fix segv.
12126 * tools/gpg-card-tool.c (main): Init info.
12128 scd: Store a new PIV public key in the certificate DO.
12129 + commit 5bf1212000f48243642ace0f708fd27446879b9e
12130 * scd/app-piv.c (struct genkey_result_s): Remove type and all users.
12131 (send_keypair_and_cert_info): Print certinfo only if we got a cert..
12132 (readcert_by_tag): Add arg r_mechanism and implement reading of public
12134 (get_keygrip_by_tag): Use a public key to compute the keygrip.
12135 (do_readcert): Make sure to only return a certificate.
12136 (do_readkey): Read public key from the DO if a certificate is missing.
12137 (get_key_algorithm_by_dobj): Get the algorithm also from a public key.
12138 (does_key_exist): String changes.
12139 (do_genkey): Remove result caching and store public key in the DO.
12141 card: Support reading and writing PIV certificates.
12142 + commit fcec5b40e589b2ef201efb89f22a952feb4a9069
12143 * scd/app-piv.c (add_tlv): New.
12145 (do_writecert): New.
12146 (do_setattr): Remove usused special mode 0.
12147 * tools/gpg-card-tool.c (cmd_writecert): Allow other cards than
12149 (cmd_readcert): Ditto.
12151 2019-02-06 Werner Koch <wk@gnupg.org>
12153 scd: Add genkey command to app-piv (rsa-only)
12154 + commit b5b1f721582df9d0379cb68b4faeceed32a56e49
12155 * scd/app-piv.c (struct genkey_result_s): new.
12156 (struct app_local_s): add member genkey_results.
12157 (do_deinit): Free that one.
12158 (flush_cached_data): Extend to delete all items.
12159 (keyref_from_dobj): New.
12161 (do_auth): Use keyref_from_dobj.
12162 (does_key_exist): New.
12163 (genkey_parse_rsa): New.
12166 scd: Make app_genkey and supporting ISO function more flexible.
12167 + commit 9a9cb0257aebb1480b999fdf9d90904083eb8e3c
12168 * scd/app.c (app_genkey): Add arg keytype.
12169 * scd/app-common.h (struct app_ctx_s): Fitto for the genkey member.
12170 * scd/command.c (cmd_genkey): Adjust for change.
12171 * scd/iso7816.c (do_generate_keypair): Replace arg read_only by new
12173 (iso7816_read_public_key): Adjust for this.
12174 (iso7816_generate_keypair): Add new args p1 and p2.
12175 * scd/app-openpgp.c (do_genkey): Adjust for changes.
12177 scd: Fix parameter name of app_change_key.
12178 + commit c26af8ac263ea006ed32e110a09271e4bfbf1f37
12179 * scd/app-common.h (APP_GENKEY_FLAG_FORCE): New.
12180 * scd/app.c (app_change_pin): Rename arg reset_mode to flags and
12181 change from int to unsigned int.
12183 scd: Implement PIN changing and unblocking for PIV cards.
12184 + commit e9e876cb5572670322aa1d3462d64c75c03974d9
12185 * scd/app-piv.c: Some refactoring
12186 (do_change_chv): Implement.
12188 2019-02-05 Werner Koch <wk@gnupg.org>
12190 scd: Allow standard keyref scheme for app-openpgp.
12191 + commit 3231ecdafd71ac47b734469b07170756979ede72
12192 * scd/app-openpgp.c (do_change_pin): Allow prefixing the CHVNO with
12194 * tools/card-call-scd.c (scd_change_pin): Change API to use strings.
12195 * tools/gpg-card-tool.c (cmd_passwd): Adjust for change.
12196 (cmd_unblock): Ditto.
12198 2019-01-31 Werner Koch <wk@gnupg.org>
12200 card: Implement non-interactive mode.
12201 + commit 1c0fa3e6f74692d5e9b5f08cda523f0fcec305eb
12202 * tools/card-tool.h (opt): Add field 'initialized'.
12203 * tools/card-call-scd.c (scd_learn): Set it.
12204 * tools/gpg-card-tool.c (main): Reworked.
12205 (dispatch_command): New.
12207 card: New command 'authenticate'.
12208 + commit da383257404cde9689bc58259ef3f46e9903bf34
12209 * tools/card-tool-misc.c (hex_to_buffer): New.
12210 * tools/gpg-card-tool.c (get_data_from_file): Change to allow returning
12212 (cmd_authenticate): New.
12213 (cmds): Add command "authenticate".
12215 scd: Add DES authentication for PIV card.
12216 + commit 1d57450f3e71b198e66e155a8ebbfab452f58ffc
12217 * scd/app-piv.c (flush_cached_data): New.
12218 (auth_adm_key): New.
12219 (set_adm_key): New.
12221 * scd/command.c (MAXLEN_SETATTRDATA): New.
12222 (cmd_setattr): Add an inquire option.
12224 2019-01-30 Werner Koch <wk@gnupg.org>
12226 card: Cache the results from gpg and gpgsm.
12227 + commit 0107984f9f55f84e4842642bceefd2181ec09dab
12228 * tools/card-tool-keys.c (keyblock_cache): New var.
12229 (release_keyblock): Factor code out to a new do_release_keyblock. Add
12231 (flush_keyblock_cache): New.
12232 (get_matching_keys): Use the cache.
12233 * tools/gpg-card-tool.c (cmds): Add command "reset".
12234 (interactive_loop): Implement reset.
12236 card: Print matching OpenPGP and X.509 data.
12237 + commit 833f27a6a7e059e38bccaf360f05e72e4403545a
12238 * tools/card-tool-keys.c: New.
12239 * tools/Makefile.am (gpg_card_tool_SOURCES): Add file.
12240 * tools/card-tool.h (struct pubkey_s, pubkey_t): New.
12241 (struct userid_s, userid_t): New.
12242 (struct keyblock_s, keyblock_t): New.
12243 * common/util.h (GNUPG_PROTOCOL_): New const
12244 * tools/gpg-card-tool.c (aTest): Add temporary command.
12245 (list_one_kinfo): Print info from gpg and gpgsm.
12247 gpg: Emit an ERROR status if no key was found with --list-keys.
12248 + commit 140fda8c61422ec055c3f7e214cc35706c4320dd
12249 * g10/keylist.c (list_one): Emit status line.
12251 common: Add kludge to allow silencing gnupg_exec_tool_stream.
12252 + commit 1fd3d864b4eceaf45b33e754e5d832b7ccc0d17f
12253 * common/exectool.c (read_and_log_buffer_t): Take care of a --quiet
12255 (gnupg_exec_tool_stream): Ditto.
12257 gpg: Allow generating Ed25519 key from an existing key.
12258 + commit 346a98fabe03adf2e202e36fc2aa24b1c2571154
12259 * g10/misc.c (map_pk_gcry_to_openpgp): Add EdDSA mapping.
12261 common: New function decode_c_string.
12262 + commit 6ecedd0b25b6b1a33be63b99f2a8256370000521
12263 * common/miscellaneous.c (decode_c_string): New.
12265 2019-01-29 Werner Koch <wk@gnupg.org>
12267 gpg: Implement searching keys via keygrip.
12268 + commit c128667b3cba749dd14262e032d4c260a2b0acd3
12269 * kbx/keybox-defs.h (struct _keybox_openpgp_key_info): Add field grip.
12270 * kbx/keybox-openpgp.c (struct keyparm_s): New.
12271 (keygrip_from_keyparm): New.
12272 (parse_key): Compute keygrip.
12273 * kbx/keybox-search.c (blob_openpgp_has_grip): New.
12274 (has_keygrip): Call it.
12276 common: Provide some convenient OpenPGP related constants.
12277 + commit f382984966a31a4cbe572bce5370590c5490ed1e
12278 * common/openpgpdefs.h (OPENPGP_MAX_NPKEY): New.
12279 (OPENPGP_MAX_NSKEY): New.
12280 (OPENPGP_MAX_NSIG): New.
12281 (OPENPGP_MAX_NENC): New.
12282 * g10/packet.h: Define PUBKEY_MAX using the new consts.
12284 common: New helper functions for OpenPGP curve OIDs.
12285 + commit 4a1558d0c7190cf13d35385e47291a7aa121be3e
12286 * common/openpgp-oid.c (openpgp_oidbuf_to_str): Factor most code out
12288 (openpgp_oidbuf_to_str): new.
12289 (openpgp_oidbuf_is_ed25519): New.
12290 (openpgp_oidbuf_is_cv25519): New.
12292 card: Support factory reset for Yubikey PIV application.
12293 + commit 79bed504e51034d960fcb858fb643901cad85913
12294 * scd/app-common.h (struct app_ctx_s): Add field cardtype.
12295 * scd/app.c (app_new_register): Set cardtype for yubikey.
12296 (app_getattr): Add CARDTYPE.
12297 (app_write_learn_status): Emit new attribute.
12298 * scd/app-piv.c (do_getattr): Add CHV-USAGE.
12299 (do_learn_status): Emit it.
12300 * tools/card-tool.h (struct card_info_s): Add field cardtype.
12301 * tools/card-call-scd.c (learn_status_cb): Parse "CARDTYPE".
12303 * tools/gpg-card-tool.c (list_piv): Print PIN usage policy.
12304 (list_card): Print card type.
12305 (cmd_factoryreset): Implement for Yubikey with PIV.
12307 card: Print keyinfo for PIV cards.
12308 + commit 9325c92284bb346d11c3591bb2ea88095989361a
12309 * scd/app-piv.c (do_learn_status): Print CHV-STATUS.
12310 * tools/card-tool.h (struct card_info_s): Rename chvretry to chvinfo.
12311 * tools/card-call-scd.c (learn_status_cb): Depend CHV-STATUS on app
12313 * tools/gpg-card-tool.c (list_piv): New.
12315 card: Make printing of key information more flexible.
12316 + commit 237880175f59d372011cd2e20bb49726eeccf058
12317 * tools/card-tool-misc.c: New.
12318 * tools/card-tool.h: Rewored data structures for key infos.
12319 * tools/gpg-card-tool.c: Ditto.
12320 * tools/card-call-scd.c: Ditto.
12322 2019-01-28 NIIBE Yutaka <gniibe@fsij.org>
12324 agent: Clear bogus pinentry cache, when it causes an error.
12325 + commit 02a2633a7f0b7d91aa48ea615fb3a0edfd6ed6bb
12326 * agent/agent.h (PINENTRY_STATUS_*): Expose to public.
12327 (struct pin_entry_info_s): Add status.
12328 * agent/call-pinentry.c (agent_askpin): Clearing the ->status
12329 before the loop, let the assuan_transact set ->status. When
12330 failure with PINENTRY_STATUS_PASSWORD_FROM_CACHE, it returns
12332 * agent/findkey.c (unprotect): Clear the pinentry cache,
12333 when it causes an error.
12335 2019-01-27 Werner Koch <wk@gnupg.org>
12337 card: Implement the bulk of OpenPGP stuff into gpg-card-tool.
12338 + commit 1c9251004592415b27988064ae20504dd1c37f57
12339 * tools/card-call-scd.c: New.
12340 * tools/card-tool.h: new.
12341 * tools/gpg-card-tool.c: Largely extended.
12343 2019-01-26 Werner Koch <wk@gnupg.org>
12345 gpg: Fix just changed agent_get_s2k_count.
12346 + commit 54f88afba4564e62e51fe6e22beabbdee75f91ac
12347 * g10/call-agent.c (agent_get_s2k_count): Actually return the count.
12349 gpg: Move S2K encoding function to a shared file.
12350 + commit ec13b1c562e34c0fcbc7b848ab6dc187b79cf2c1
12351 * g10/passphrase.c (encode_s2k_iterations): Move function to ...
12352 * common/openpgp-s2k.c: new file. Remove default intialization code.
12353 * common/openpgpdefs.h (S2K_DECODE_COUNT): New to keep only one copy.
12354 * g10/call-agent.c (agent_get_s2k_count): Change to return the count
12355 and print an error.
12356 * agent/protect.c: Include openpgpdefs.h
12357 * g10/card-util.c (gen_kdf_data): Adjust for changes
12358 * g10/gpgcompose.c: Include call-agent.h.
12359 (sk_esk): Adjust for changes.
12360 * g10/passphrase (passphrase_to_dek): Adjust for changes.
12361 * g10/main.h (S2K_DECODE_COUNT): Remove macro.
12363 2019-01-25 Werner Koch <wk@gnupg.org>
12365 scd: Improve app selection for app "undefined".
12366 + commit 0415b80227c52620bece3ae7502f38f24a23e59d
12367 * scd/app.c (app_new_register): Don't bail out early in undefined
12370 scd: Fix flushing of CA-FPR data objects.
12371 + commit c9f4c1f0de06672c6ae2b793d86cc001d131f9a6
12372 * scd/app-openpgp.c (do_setattr): Add new table item to flush a
12375 2019-01-25 NIIBE Yutaka <gniibe@fsij.org>
12377 agent: Support --mode=ssh option for CLEAR_PASSPHRASE.
12378 + commit ae966bbe9b16ed68a51391afdde615339755e22d
12379 * agent/command.c (cmd_clear_passphrase): Add support for SSH.
12381 dirmngr: Fix initialization of assuan's nPth hook.
12382 + commit 1f8817475f59ede3f28f57edc10ba56bbdd08b49
12383 * dirmngr/dirmngr.c (main): Move assuan_set_system_hooks to...
12384 (thread_init): ... here.
12386 2019-01-24 Werner Koch <wk@gnupg.org>
12388 common: Extend function percent_data_escape.
12389 + commit 055f8854d3f49b8d06105d20f344f5ac10e4f6a6
12390 * common/percent.c (percent_data_escape): Add new args prefix and
12392 * agent/command.c (cmd_put_secret): Adjust for changed function
12394 * common/t-percent.c (test_percent_data_escape): Extend test for the
12396 (test_percent_data_escape_plus): new test for the plus escaping.
12398 2019-01-23 NIIBE Yutaka <gniibe@fsij.org>
12400 scd: Support PASSWD --clear for OpenPGP card.
12401 + commit fec75a3868da72196f76aca95c7ab07debb7dc04
12402 * scd/app-openpgp.c (do_change_pin): Implement handling
12403 APP_CHANGE_FLAG_CLEAR.
12405 2019-01-22 Werner Koch <wk@gnupg.org>
12407 gpg: Stop early when trying to create a primary Elgamal key.
12408 + commit f97dc55ff1b041071bc3cbe98aa761bf77bb7ac8
12409 * g10/misc.c (openpgp_pk_test_algo2): Add extra check.
12411 card-tool: Add skeleton for new tool.
12412 + commit e6d613711a327d63511601dd42aeff34e09ec95a
12413 * tools/gpg-card-tool.c: New.
12414 * tools/gpg-card-tool-w32info.rc: New.
12415 * tools/Makefile.am: Add new tool.
12417 common: Add generic status print function.
12418 + commit 03cf23b43ec5fea8a355d3ba2200e86a8efc589b
12419 * common/status.c (gnupg_set_status_fd): New.
12420 (gnupg_status_printf): New.
12421 * po/Makevars (XGETTEXT_OPTIONS): Add gnupg-status_printf.
12423 2019-01-21 Werner Koch <wk@gnupg.org>
12425 scd: Support CHV-STATUS and CHECKPIN for PIV.
12426 + commit fa9d703de5c70ae925e8ca6604073506f24d641a
12427 * scd/app-piv.c (parse_pin_keyref): New.
12428 (get_chv_status): New.
12429 (do_getattr): Add name CHV-STATUS.
12430 (verify_pin): Add arg keyref to support other PINs.
12431 (do_change_pin): New. Right now limited to --clear.
12432 (do_check_pin): New.
12433 (app_select_piv): Register new commands.
12435 scd: Add option --clear to PASSWD.
12436 + commit 29929e65521279eabc98a67c766fe485057405a9
12437 * scd/command.c (cmd_passwd): Add option --clear.
12438 (send_status_printf): New.
12439 * scd/app-common.h (APP_CHANGE_FLAG_CLEAR): New.
12440 * scd/app-nks.c (do_change_pin): Return an error if that option is
12442 * scd/app-openpgp.c (do_change_pin): Ditto.
12444 2019-01-20 Werner Koch <wk@gnupg.org>
12446 scd: Add very basic support for PIV cards.
12447 + commit ec56996029d95d4bd26e1badfe207232270c6247
12448 * scd/app-piv.c: New.
12449 * scd/Makefile.am (card_apps): Add app-piv.c
12450 * scd/app.c (app_new_register): Try to get a Yubikey serial number.
12451 Detect the PIV application.
12452 (get_supported_applications): Add "piv".
12454 scd: One new and one improved 7816 function.
12455 + commit 70bb5c7931598590b1acfae90bf4657f5911d2d3
12456 * scd/apdu.c (apdu_send_direct): New arg R_SW.
12457 * scd/command.c (cmd_apdu): Ditto.
12458 * scd/iso7816.c (iso7816_apdu_direct): New arg R_SW.
12459 (iso7816_general_authenticate): New.
12460 * scd/app-nks.c (get_chv_status, get_nks_version): Pass NULL for new
12463 2019-01-17 Werner Koch <wk@gnupg.org>
12465 ssh: Simplify the curve name lookup.
12466 + commit d93797c8a7892fe26672c551017468e9f8099ef6
12467 * agent/command-ssh.c (struct ssh_key_type_spec): Add field
12469 (ssh_key_types): Add some alternate curve names.
12470 (ssh_identifier_from_curve_name): Lookup also bey alternative names
12471 and return the canonical name.
12472 (ssh_key_to_blob): Simplify the ECDSA case by using gcry_pk_get_curve
12473 instead of the explicit mapping.
12474 (ssh_receive_key): Likewise. Use ssh_identifier_from_curve_name to
12475 validate the curve name. Remove the reverse mapping because since
12476 GnuPG-2.2 Libgcrypt 1.7 is required.
12477 (ssh_handler_request_identities): Log an error message.
12479 2019-01-16 NIIBE Yutaka <gniibe@fsij.org>
12481 gpg: Report STATUS_NO_SECKEY when it is examined.
12482 + commit dafffa95b2317bcb80fff1fd6d2bc7b4e6b1e206
12483 * g10/packet.h (struct pubkey_enc_list): Add result.
12484 * g10/mainproc.c (proc_pubkey_enc): Initialize ->result.
12485 (proc_encrypted): Report STATUS_NO_SECKEY status.
12486 * g10/pubkey-enc.c (get_session_key): Set ->result.
12488 2019-01-07 NIIBE Yutaka <gniibe@fsij.org>
12490 scd: Fix for USB INTERRUPT transfer.
12491 + commit 5ab3bc422a5cc1a646c168b547f2b6538b3a4ffa
12492 * scd/ccid-driver.c (intr_cb): When LIBUSB_TRANSFER_NO_DEVICE,
12493 just handle this event as failure.
12495 2019-01-03 Werner Koch <wk@gnupg.org>
12497 scd: Add two variants to the set of ISO7816 functions.
12498 + commit 405feca2bdeeb620dc406667a702035a123ae848
12499 * scd/iso7816.c (iso7816_select_application_ext): New.
12500 (iso7816_get_data_odd): New.
12502 scd: Support "READKEY --advanced" for all cards.
12503 + commit cca2b87e79cda212a33c13efdd2b2830295d2efe
12504 * scd/command.c (cmd_readkey): Reformat for advanced mode.
12506 2018-12-18 Werner Koch <wk@gnupg.org>
12508 wks: Do not use compression for the encrypted data.
12509 + commit 70a8db0333e3c22403b3647f8b5f924f6dace719
12510 * tools/gpg-wks-client.c (encrypt_response): Add arg -z0.
12511 * tools/gpg-wks-server.c (encrypt_stream): Ditto.
12513 2018-12-18 NIIBE Yutaka <gniibe@fsij.org>
12515 scd: Fix description string.
12516 + commit e6b7e0ff9990813ac9f11b2d9d92596d6379ebfe
12517 * scd/app-openpgp.c (data_objects): Capitalize the word for usage.
12519 2018-12-17 Werner Koch <wk@gnupg.org>
12521 Silence a few compiler warnings new with gcc 8.
12522 + commit 40c307fa8d0e813f2aa57806f25b8b0063cc2be3
12523 * dirmngr/dns.c: Include gpgrt.h. Silence -Warray-bounds also gcc.
12524 * tools/gpg-pair-tool.c (command_respond): Init two vars to silence
12527 2018-12-12 NIIBE Yutaka <gniibe@fsij.org>
12529 card: Suppress error message by agent_scd_cardlist.
12530 + commit ebf775eb16fef27bd1f27319a5483d04dcf95a9a
12531 * g10/call-agent.c (agent_scd_cardlist): Add
12532 FLAG_FOR_CARD_SUPPRESS_ERRORS.
12534 2018-12-11 Werner Koch <wk@gnupg.org>
12536 agent: Make the S2K calibration time runtime configurabe.
12537 + commit cbcc8c19541fe8407f3b6588fce1535c64cf6b25
12538 * agent/protect.c (s2k_calibration_time): New file global var.
12539 (calibrate_s2k_count): Use it here.
12540 (get_calibrated_s2k_count): Replace function static var by ...
12541 (s2k_calibrated_count): new file global var.
12542 (set_s2k_calibration_time): New function.
12543 * agent/gpg-agent.c (oS2KCalibration): New const.
12544 (opts): New option --s2k-calibration.
12545 (parse_rereadable_options): Parse that option.
12547 dirmngr: Retry another server from the pool on 502, 503, 504.
12548 + commit 05ef6282784495a77f4faf76c0de5bc85dfecf06
12549 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Add arg
12550 http_status and handle it.
12551 (ks_hkp_search): Get http_status froms end_request and pass on to
12552 handle_send_request_error.
12553 (ks_hkp_get): Ditto.
12554 (ks_hkp_put): Ditto.
12556 dirmngr: New function http_status2string.
12557 + commit dc61f4ecea5c9815cb00aeb25439978337c1fd64
12558 * dirmngr/http.c (http_status2string): New.
12560 gpg: In search-keys return "Not found" instead of "No Data".
12561 + commit e7252ae57f3c9da557f23295268f74dd25fee3a1
12562 * g10/keyserver.c (keyserver_search): Check for NO_DATA.
12564 2018-12-11 Tomi Leppänen <tomi.leppanen@jolla.com>
12566 tools: Use POSIX compatible arguments for find.
12567 + commit 2c35e67e3475ec38ff49953d79bd0f734d6db542
12568 * tools/addgnupghome (filelist): Remove bashism.
12570 2018-12-05 NIIBE Yutaka <gniibe@fsij.org>
12572 g10: Fix print_pubkey_info new line output.
12573 + commit e154fba30ba0d5f29040a33f5c1b5c25b441b69f
12574 * g10/keylist.c (print_pubkey_info): Reverse the condition.
12576 2018-12-04 Werner Koch <wk@gnupg.org>
12578 wks: Fix filter expression syntax flaw.
12579 + commit 0c36ec241d285545f286069843de4f663cd274a3
12580 * tools/wks-util.c (wks_get_key, wks_filter_uid): The filter
12581 expression needs a space before the value.
12582 (install_key_from_spec_file): Replace es_getline by es_read_line and
12583 remove debug output.
12585 gpg: Prepare revocation keys for use with v5 keys.
12586 + commit c6e2ee020784de63edfa83c76095e086eae49eef
12587 * g10/packet.h (struct revocation_key): Add field 'fprlen'.
12588 * g10/parse-packet.c (parse_revkeys): Set fprlen and allow for v5
12589 keys. Also fix reading of unitialized data at place where
12590 MAX_FINGERPRINT_LEN is used.
12591 * g10/revoke.c (gen_desig_revoke): Allow for v5 keys and use fprlen.
12592 Do an explicit compare to avoid reading unitialized data.
12593 * g10/sig-check.c (check_revocation_keys): Use the fprlen.
12594 * g10/getkey.c (merge_selfsigs_main): Do an explicit copy to avoid
12595 reading unitialized data.
12596 * g10/import.c (revocation_present): Use fprlen.
12597 * g10/keyedit.c (show_key_with_all_names): Use fprlen.
12598 (menu_addrevoker): Use fprlen. Allow for v5 keys.
12599 * g10/keygen.c (keygen_add_revkey): Use fprlen.
12600 (parse_revocation_key): Allow for v5 keys.
12601 * g10/keyid.c (keyid_from_fingerprint): Allow for v5 keys. Print a
12602 better error message in case of bogus fingerprints.
12603 * g10/keylist.c (print_revokers): Use fprlen.
12605 wks: Allow reading of --install-key arguments from stdin.
12606 + commit ba46a359b9d6549b74ec8401ea39bad434d87564
12607 * tools/wks-util.c (install_key_from_spec_file): New.
12608 (wks_cmd_install_key): Call it.
12609 * tools/gpg-wks-client.c (main): Allow --install-key w/o arguments.
12610 * tools/gpg-wks-server.c (main): Ditto.
12612 gpg: New list-option "show-only-fpr-mbox".
12613 + commit 0e8bf204791ebfd0c9a8e4b49fbadf998ec62e49
12614 * g10/gpg.c (parse_list_options): Add option "show-only-fpr-mbox".
12615 * g10/options.h (LIST_SHOW_ONLY_FPR_MBOX): New.
12616 * g10/keylist.c (list_keyblock_simple): New.
12617 (list_keyblock): Call it.
12618 (list_all): Do not print the keyring name in LIST_SHOW_ONLY_FPR_MBOX
12621 wks: Create sub-directories.
12622 + commit 73e5b0ec9b9ba5e04e55f8c42d81e23df7c3afe0
12623 * tools/wks-util.c (wks_compute_hu_fname): Stat and create directory
12626 wks: Add new commands --install-key and --remove-key to the client.
12627 + commit 602b1909632925d5a2e0778c102d66109795c627
12628 * tools/gpg-wks-client.c (aInstallKey, aRemoveKey, oDirectory): New.
12629 (opts): Add "--install-key", "--remove-key" and "-C".
12630 (parse_arguments): Parse them.
12631 (main): Check that the given directory exists. Implement the new
12634 wks: Move a few server functions to wks-util.
12635 + commit 99094c992c20dd22971beb3527cfda109cd1df89
12636 * tools/gpg-wks-server.c (write_to_file): Move to ...
12637 * tools/wks-util.c: here.
12638 * tools/gpg-wks-server.c (compute_hu_fname): Move to ...
12639 * tools/wks-util.c (wks_compute_hu_fname): here.
12640 * tools/gpg-wks-server.c (fname_from_userid): Move to ...
12641 * tools/wks-util.c (wks_fname_from_userid): here.
12642 * tools/gpg-wks-server.c (command_install_key): Move to ...
12643 * tools/wks-util.c (wks_cmd_install_key): here and change caller.
12644 * tools/gpg-wks-server.c (command_remove_key): Move to ...
12645 * tools/wks-util.c (wks_cmd_remove_key): here and change callers.
12647 2018-12-04 NIIBE Yutaka <gniibe@fsij.org>
12649 build: Remove --with-*-prefix from configure_opts.
12650 + commit 802b23289cc9b43a56e5032c2681eb21d4014784
12651 * autogen.rc (configure_opts): Remove --with-*-prefix.
12653 2018-12-01 Jussi Kivilinna <jussi.kivilinna@iki.fi>
12655 g10/mainproc: disable hash contexts when --skip-verify is used.
12656 + commit 73e74de0e33bbb76300f96a4174024779047df06
12657 * g10/mainproc.c (proc_plaintext): Do not enable hash contexts when
12658 opt.skip_verify is set.
12660 common/iobuf: fix memory wiping in iobuf_copy.
12661 + commit 654e353d9b20f10fa275e7ae10cc50480654f079
12662 * common/iobuf.c (iobuf_copy): Wipe used area of buffer instead of
12663 first sizeof(char*) bytes.
12665 common/mischelp: use platform memory zeroing function for wipememory.
12666 + commit 2a650772b4e1c78a4fd20bc88433930e5551fe9c
12667 * common/mischelp.h (wipememory): Replace macro with function
12669 (wipememory2): Remove.
12670 * common/mischelp.c (wipememory): New.
12671 * configure.ac (AC_CHECK_FUNCS): Check for 'explicit_bzero'.
12673 2018-11-30 Werner Koch <wk@gnupg.org>
12675 scd: Add strerror to new error message.
12676 + commit 3a90efb7cf13532cc82b45c11a7abdadfe0c81f1
12677 * agent/call-scd.c (wait_child_thread): Add %s.
12679 gpg: Improve error message about failed keygrip computation.
12680 + commit cd64af003d4b6b46b69dbd575f73d53359ae0bcc
12681 * g10/keyid.c (keygrip_from_pk): Print the fingerprint on failure.
12683 2018-11-28 NIIBE Yutaka <gniibe@fsij.org>
12685 scd: Serialize opening device by select_application.
12686 + commit 47106ac435e891ced67f0ad9bb6b2ee12098c880
12687 * scd/app.c (app_new_register): Don't lock APP_LIST_LOCK here.
12688 (select_application): Lock with APP_LIST_LOCK earlier.
12690 2018-11-27 NIIBE Yutaka <gniibe@fsij.org>
12692 agent: Better serialization for scdaemon access.
12693 + commit 483e63f9b5faead819ddd28308902ef43bf298ab
12694 * agent/call-scd.c (unlock_scd): Move lock before accessing IN_USE.
12695 (wait_child_thread): Add log_info for Windows, and fixed log_error
12698 2018-11-26 Andre Heinecke <aheinecke@intevation.de>
12700 w32: Fix linkage of gpg-pair-tool.
12701 + commit f12fcd907903742bde3ebb7ffef244c92d6d1611
12702 * tools/Makefile.am (gpg_pair_tool_LDADD): Add W32SOCKLIBS.
12704 2018-11-26 NIIBE Yutaka <gniibe@fsij.org>
12706 agent: Have a thread to wait for the child process of scdaemon.
12707 + commit 40c7923ea881881a48de8f303b0870ec5910e13d
12708 * agent/call-scd.c (wait_child_thread): New.
12709 (start_scd): Create a thread for wait_child_thread.
12710 (agent_scd_check_aliveness): Remove.
12712 agent: Defer calling assuan_release when it's still in use.
12713 + commit 9fb3f0f3f79e74166cce8e0781e97043f25890cc
12714 * agent/call-scd.c (struct scd_local_s): Remove LOCK, introduce IN_USE
12716 (unlock_scd): Call assuan_release when CTX is invalid.
12717 (start_scd): Set IN_USE.
12718 (agent_scd_check_aliveness): Don't call assuan_release when it's in use.
12720 agent: Clean up SCDaemon management.
12721 + commit f45d6124696cc92ccdec09841b8182679c377997
12722 * agent/call-scd.c (struct scd_local_s): Remove ctrl_backlink.
12723 (start_scd): Don't assign to the field.
12724 (agent_scd_check_aliveness): Fix typo in comment.
12726 2018-11-22 Werner Koch <wk@gnupg.org>
12728 dirmngr: Avoid possible CSRF attacks via http redirects.
12729 + commit fa1b1eaa4241ff3f0634c8bdf8591cbc7c464144
12730 * dirmngr/http.h (parsed_uri_s): Add fields off_host and off_path.
12731 (http_redir_info_t): New.
12732 * dirmngr/http.c (do_parse_uri): Set new fields.
12733 (same_host_p): New.
12734 (http_prepare_redirect): New.
12735 * dirmngr/t-http-basic.c: New test.
12736 * dirmngr/ks-engine-hkp.c (send_request): Use http_prepare_redirect
12737 instead of the open code.
12738 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
12740 2018-11-16 Werner Koch <wk@gnupg.org>
12742 gpg: Start using OCB mode by default with Libgcrypt 1.9.
12743 + commit 1e700961ddf4c54ec5a03a697fe00d7eb606fdff
12744 * g10/main.h (GCRYPT_VERSION_NUMBER): Fix type in condition.
12746 2018-11-15 NIIBE Yutaka <gniibe@fsij.org>
12748 card: Display UIF setting.
12749 + commit e955ca245ea08e68ae2397f1583c8728d72acbd8
12750 * g10/call-agent.h (agent_card_info_s): Add UIF fields.
12751 * g10/call-agent.c (learn_status_cb): Put UIF DOs info.
12752 * g10/card-util.c (current_card_status): Output for UIF.
12754 scd: Make "learn" report about KDF data object.
12755 + commit 05d163aebc04db109ec5e004eb04a4b3796f6421
12756 * scd/app-openpgp.c (do_learn_status): Report KDF attr.
12757 * g10/card-util.c (current_card_status): Output KDF for with_colons.
12759 card: Display if KDF is enabled or not.
12760 + commit a5542a4a702c2210facf58a98bc8d3d16089b6ab
12761 * g10/call-agent.h (kdf_do_enabled): New field.
12762 * g10/call-agent.c (learn_status_cb): Set kdf_do_enabled if available.
12763 * g10/card-util.c (current_card_status): Inform the availability.
12765 2018-11-14 Werner Koch <wk@gnupg.org>
12767 Remove the gpg-zip script.
12768 + commit 8b8ea802ca071c911158cab0203245a16a69125c
12769 * tools/gpg-zip.in: Remove.
12770 * m4/tar-ustar.m4: Remove.
12772 2018-11-14 NIIBE Yutaka <gniibe@fsij.org>
12774 agent: Simplify agent_popup_message_stop.
12775 + commit 804a77edd9472d44606641b7772550521e1ba271
12776 * agent/call-pinentry.c (agent_popup_message_stop): Just kill it.
12778 2018-11-13 Werner Koch <wk@gnupg.org>
12780 dirmngr: Support the new WKD draft with the openpgpkey subdomain.
12781 + commit 914fa3be22bf8848a97a7dd405a040d6ef31e2fd
12782 * dirmngr/server.c (proc_wkd_get): Implement new openpgpkey subdomain
12785 2018-11-13 NIIBE Yutaka <gniibe@fsij.org>
12787 build: Update libgcrypt.m4 and ntbtls.m4.
12788 + commit d58fe697acefd435ec01503dae574d6c99dfedae
12789 * m4/libgcrypt.m4: Update from master.
12790 * m4/ntbtls.m4: Update from master.
12792 2018-11-12 Andre Heinecke <aheinecke@intevation.de>
12794 dirmngr: Add FLUSHCRLs command.
12795 + commit 678e4706ee614a6b7e543e2a80072d75405dd4db
12797 * dirmngr/crlcache.c (crl_cache_flush): Also deinit the cache.
12798 * dirmngr/server.c (hlp_flushcrls, cmd_flushcrls): New.
12799 (register_commands): Add FLUSHCRLS.
12801 2018-11-12 Werner Koch <wk@gnupg.org>
12803 common: Prepare for parsing mail sub-addresses.
12804 + commit 6b9f772914624cc673ba26d49b6e3adc32dd7e0a
12805 * common/mbox-util.c (mailbox_from_userid): Add arg subaddress and
12806 implement. Change all callers to pass false for it.
12808 * common/t-mbox-util.c (run_mbox_no_sub_test): New.
12809 (run_filter): Add arg no_sub.
12810 (main): Call new test and add option --no-sub.
12812 2018-11-11 Werner Koch <wk@gnupg.org>
12814 common: Add --filter option to t-mbox-util.
12815 + commit b3095c95ef9d2d76b49a6ad1b946fca590380dc9
12816 * common/t-mbox-util.c (run_filter): New.
12817 (main): Add option parser.
12819 2018-11-09 Jussi Kivilinna <jussi.kivilinna@iki.fi>
12821 g10/mainproc: avoid extra hash contexts when decrypting AEAD input.
12822 + commit b46382dd47731231ff49b59c486110a25e08e985
12823 * g10/mainproc.c (mainproc_context): New member
12824 'seen_pkt_encrypted_aead'.
12825 (release_list): Clear 'seen_pkt_encrypted_aead'.
12826 (proc_encrypted): Set 'seen_pkt_encrypted_aead'.
12827 (have_seen_pkt_encrypted_aead): New.
12828 (proc_plaintext): Do not enable extra hash contexts when decryption
12831 2018-11-08 Jussi Kivilinna <jussi.kivilinna@iki.fi>
12833 g10/armor: optimize radix64 to binary conversion.
12834 + commit 643ec7c642dc75191e712963d2bb460ac247e09b
12835 * g10/armor.c (asctobin): Larger look-up table for fast path.
12836 (initialize): Update 'asctobin' initialization.
12837 (radix64_read): Add fast path for radix64 to binary conversion.
12839 g10/armor: optimize binary to radix64 conversion.
12840 + commit e8142cc69a2ae5a5d0a238bc9f88841067359af8
12841 * g10/armor.c (bintoasc): Change to read-only.
12842 (initialize): Use const pointer for 'bintoasc'.
12843 (armor_output_buf_as_radix64): New function for faster binary to
12844 radix64 conversion.
12845 (armor_filter): Use new conversion function.
12847 g10/armor: use libgcrypt's CRC24 implementation.
12848 + commit e486d4f0259f27906d2c2869cc01b3aa31aaa0a6
12849 * g10/armor.c (CRCINIT, CRCPOLY, CRCUPDATE, crc_table): Remove.
12850 (new_armor_context): Open libgcrypt CRC24 context.
12851 (release_armor_context): Close CRC24 context.
12852 (initialize): Remove CRC table generation.
12853 (get_afx_crc): New.
12854 (check_input, fake_packet, radix64_read, armor_filter): Update to use
12856 * g10/filter.h (armor_filter_context_t): Replace crc intermediate value
12857 with libgcrypt md context pointer.
12859 common/iobuf: optimize iobuf_read_line.
12860 + commit 2b5718c1f76851160115f455c3a9383b04521347
12861 * common/iobuf.c (iobuf_read_line): Add fast path for finding '\n'
12862 character in buffer.
12864 g10/armor: remove unused unarmor_pump code.
12865 + commit 47424881b27d4b3bae2925265b2008cda0c2933f
12866 * g10/armor.c (unarmor_state_e, unarmor_pump_s, unarmor_pump_new)
12867 (unarmor_pump_release, unarmor_pump): Remove.
12868 * g10/filter.h (UnarmorPump, unarmor_pump_new, unarmor_pump_release)
12869 (unarmor_pump): Remove.
12871 g10/armor: fix eof checks in radix64_read.
12872 + commit a571bb8df52d6f2727876e086790dd037c9948ad
12873 * g10/armor.c (radix64_read): Check EOF with '!afx->buffer_len' instead
12874 of 'c == -1', as 'c' is never set to this value.
12876 g10/decrypt-data: use iobuf_read for higher performance.
12877 + commit 5d6c080522e1666943b75c99124fb69b985b6941
12878 * g10/decrypt-data.c (fill_buffer): Use iobuf_read instead of iobuf_get
12881 g10/decrypt-data: use fill_buffer in more places.
12882 + commit e2b9095de35ac4d402b077d5484b4131700a9925
12883 * g10/decrypt-data.c (mdc_decode_filter, decode_filter): Use
12886 2018-11-08 NIIBE Yutaka <gniibe@fsij.org>
12888 gpgcompose: Fix --sk-esk.
12889 + commit 69930f6884a934207f7aa523cf6d2b8e22dfe666
12890 * g10/gpgcompose.c (sk_esk): Copy the result content correctly.
12891 Don't forget to free the result.
12893 g10: Fix log_debug formatting.
12894 + commit 7fc3decc2e038be905d47701c7ce196ed86a725b
12895 * g10/cipher-aead.c (do_flush): No cast is correct.
12896 * g10/decrypt-data.c (aead_underflow): No cast needed.
12897 Use "%j" for uint64_t for chunklen.
12899 2018-11-06 NIIBE Yutaka <gniibe@fsij.org>
12901 g10: Fix print_keygrip for smartcard.
12902 + commit 01b77ebbb71d47ba276d3a1af9595fdcd9b48f5f
12903 * g10/card-util.c (print_keygrip): Use tty_fprintf.
12905 2018-11-05 Werner Koch <wk@gnupg.org>
12907 wks: New option --with-colons for gpg-wks-client.
12908 + commit e3a1e80d13487c9336640a99b2f6d385d7d6f55c
12909 * tools/gpg-wks.h (opt): Add field with_colons.
12910 * tools/gpg-wks-client.c (oWithColons): New const.
12911 (opts, parse_arguments): Add option --with-colons.
12912 (main): Change aSupported to take several domains in --with-colons
12914 (command_send): Factor policy getting code out to ...
12915 (get_policy_and_sa): New function.
12916 (command_supported): Make use of new function.
12918 speedo: Remove obsolete configure option of gpgme.
12919 + commit d7323bb2d957fbeb8192c0ecbd99b1d14d302912
12920 * build-aux/speedo.mk (speedo_pkg_gpgme_configure): Remove
12921 --disable-w32-qt option.
12923 dirmngr: Fix LDAP port parsing.
12924 + commit a3a5a2451924640588e5ecc03a1d4ba6a6ba94a5
12925 * dirmngr/misc.c (host_and_port_from_url): Fix bad port parsing and a
12926 segv for a missing slash after the host name.
12928 2018-11-02 NIIBE Yutaka <gniibe@fsij.org>
12930 build: Update *.m4 from libraries.
12931 + commit 8e84efbe35633275e260712ba38a505e3f9d0898
12932 * m4/gpg-error.m4: Update from master.
12933 * m4/ksba.m4: Ditto.
12934 * m4/libassuan.m4: Ditto.
12935 * m4/libgcrypt.m4: Ditto.
12936 * m4/npth.m4: Ditto.
12937 * m4/ntbtls.m4: Ditto.
12939 2018-10-31 NIIBE Yutaka <gniibe@fsij.org>
12941 build: Update *.m4 from libraries.
12942 + commit fd7aee6a97134fdf48a496841241f8ae25736e61
12943 * m4/gpg-error.m4: Update from master.
12944 * m4/ksba.m4: Ditto.
12945 * m4/libassuan.m4: Ditto.
12946 * m4/libgcrypt.m4: Ditto.
12947 * m4/npth.m4: Ditto.
12948 * m4/ntbtls.m4: Ditto.
12950 2018-10-26 Werner Koch <wk@gnupg.org>
12952 build: By default build wks-tools on all Unix platforms.
12953 + commit b83fed64f8051279a8f36e024c1f12f7f13c4716
12956 wkd: Add option --directory to the server.
12957 + commit f248416bc9792e80bb0785302058131de49d7639
12958 * tools/gpg-wks-server.c (opts): Add '--directory',
12959 (main): Explain how to set correct permissions.
12960 (command_list_domains): Create an empty policy file and remove the
12961 warning for an empty policy file.
12963 2018-10-26 NIIBE Yutaka <gniibe@fsij.org>
12965 kbx: Increase size of field for fingerprint.
12966 + commit 4249e9a2bf028f007d1ddaac730f636e5c6da20f
12967 * kbx/keybox-search-desc.h (fpr): Increase the size.
12969 2018-10-25 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12971 all: fix more spelling errors.
12972 + commit a7c5d65eb50355274c1b5b047c02c653f518900a
12975 headers: fix spelling.
12976 + commit b39ece7d35401302879062d9d4bec25b1249ae7e
12979 2018-10-25 Werner Koch <wk@gnupg.org>
12981 dirmngr: Fix out of scope use of a var in the keyserver LDAP code.
12982 + commit 2b57a8159cdc3b212a4efc68787b40cafcd91ebe
12983 * dirmngr/ks-engine-ldap.c (extract_attributes): Don't use a variabale
12984 out of scope and cleanup the entire pgpKeySize block.
12986 2018-10-25 NIIBE Yutaka <gniibe@fsij.org>
12988 g10,scd: Improve UIF support.
12989 + commit 0240345728a84d8f235ce05889e83963e52742eb
12990 * g10/call-agent.c (learn_status_cb): Parse "bt" flag.
12991 * g10/call-agent.h: New member field "bt".
12992 * g10/card-util.c (uif): Limit its access only when it is supported.
12993 * scd/app-openpgp.c (do_setattr): Allow access to UIF objects only
12994 when there is a button.
12996 2018-10-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12998 all: fix spelling and typos.
12999 + commit 54eb375ff14e2a93cea70eab35719be4d25f51ca
13002 doc: fix spelling mistakes.
13003 + commit ef540d1af0649ebf1add190d0ab095e957658b7e
13006 2018-10-24 Werner Koch <wk@gnupg.org>
13008 agent: Fix possible uninitalized use of CTX in simple_pwquery.
13009 + commit bafcf7095159493a656382997f8b0d0bb11a20e8
13010 * common/simple-pwquery.c (agent_open): Clear CTX even on early error.
13012 agent: Fix possible release of unitialize var in a genkey error case.
13013 + commit 2bdc4b6ed97770ed15ec6c5afa02c2e44568a3bc
13014 * agent/command.c (cmd_genkey): Initialize 'value'.
13016 ssh: Fix possible infinite loop in case of an read error.
13017 + commit 7385e1babf6eef586c79ad23f8e541aaf608c4e5
13018 * agent/command-ssh.c (ssh_handler_add_identity): Handle other errors
13021 tools: Fix FILE memory leak in gpg-connect-agent.
13022 + commit 378719f25fe00d46393541f4a4f79e04484c3000
13023 * tools/gpg-connect-agent.c (do_open): dup the fileno and close the
13026 sm: Use the correct string in an error message.
13027 + commit 793fd8d876777c24c4d5072301fa530333d6e1d9
13028 * sm/gpgsm.c (main): Fix error message.
13030 gpg: Unfinished support for v5 signatures.
13031 + commit 64a1e86fc06d89c980a196c61d2b6d77d167565e
13032 * g10/parse-packet.c (parse_signature): Allow for v5 signatures.
13033 * g10/sig-check.c (check_signature_end_simple): Support the 64bit v5
13035 * g10/sign.c (hash_sigversion_to_magic): Ditto.
13036 (write_signature_packets): Request v5 sig for v5 keys. Remove useless
13038 (make_keysig_packet): Request v5 sig for v5 keys.
13040 2018-10-22 Werner Koch <wk@gnupg.org>
13042 dirmngr: Prepare for updated WKD specs with ?l= param.
13043 + commit 256a280c51f9ea862e4bfb0bb530c2a96f9088f9
13044 * dirmngr/server.c (proc_wkd_get): Tack the raw local address to the
13047 agent: Fix build regression for Windows.
13048 + commit 68b8096b6617cdad09c99d7eda2035176807e78f
13049 * agent/command-ssh.c (get_client_info): Turn client_uid into an int.
13050 Fix setting of it in case of a failed getsocketopt.
13051 * agent/command.c (start_command_handler): Fix setting of the pid and
13054 dirmngr: In verbose mode print the OCSP responder id.
13055 + commit 0a7f446c189201ca6e527af08b44da756b343209
13056 * dirmngr/ocsp.c (ocsp_isvalid): Print the responder id.
13058 2018-10-15 Werner Koch <wk@gnupg.org>
13060 tools: Replace duplicated code in mime-maker.
13061 + commit f03928b16c4fb00077d22d8ec141575ef6d26913
13062 * tools/rfc822parse.c (HEADER_NAME_CHARS): New. Taken from
13064 (rfc822_valid_header_name_p): New. Based on code from mime-maker.c.
13065 (rfc822_capitalize_header_name): New. Copied from mime-maker.c.
13066 (capitalize_header_name): Remove. Replace calls by new func.
13067 (my_toupper, my_strcasecmp): New.
13068 * tools/mime-maker.c: Include rfc822parse.h.
13069 (HEADER_NAME_CHARS, capitalize_header_name): Remove.
13070 (add_header): Replace check and capitalization by new functions.
13072 2018-10-15 NIIBE Yutaka <gniibe@fsij.org>
13074 scd: Fix signing authentication status.
13075 + commit 78f542e1f4495195db2e668f9cd41657fb1afc77
13076 * scd/app-openpgp.c (do_sign): Clear DID_CHV1 after signing.
13078 2018-10-12 NIIBE Yutaka <gniibe@fsij.org>
13080 agent: Fix message for ACK button.
13081 + commit 4ed941ff26783c4fabfe2079029f8e436eb7e340
13082 * agent/divert-scd.c (getpin_cb): Display correct message.
13084 2018-10-11 NIIBE Yutaka <gniibe@fsij.org>
13086 scd: Support "acknowledge button" feature.
13087 + commit 7a5a4c4cac8709f7c413e94cd0b40f4123baa1e5
13088 * scd/apdu.c (set_prompt_cb): New member function.
13089 (set_prompt_cb_ccid_reader): New function.
13090 (open_ccid_reader): Initialize with set_prompt_cb_ccid_reader.
13091 (apdu_set_prompt_cb): New.
13092 * scd/app.c (lock_app, unlock_app): Add call to apdu_set_prompt_cb.
13093 * ccid-driver.c (ccid_set_prompt_cb): New.
13094 (bulk_in): Call ->prompt_cb when timer extension.
13095 * scd/command.c (popup_prompt): New.
13097 agent: Support --ack option for POPUPPINPADPROMPT.
13098 + commit 827529339a4854886dbb5625238e7e01013efdcd
13099 * agent/divert-scd.c (getpin_cb): Support --ack option.
13101 2018-10-10 Werner Koch <wk@gnupg.org>
13103 gpg: Don't take the a TOFU trust model from the trustdb,
13104 + commit 150a33df41944d764621f037038683f3d605aa3f
13105 * g10/tdbio.c (tdbio_update_version_record): Never store a TOFU model.
13106 (create_version_record): Don't init as TOFU.
13107 (tdbio_db_matches_options): Don't indicate a change in case TOFU is
13108 stored in an old trustdb file.
13110 2018-10-08 Werner Koch <wk@gnupg.org>
13112 gpg: Fix extra check for sign usage of a data signature.
13113 + commit b6275f3bda8edff34274c5b921508567f491ab9c
13114 * g10/sig-check.c (check_signature_end_simple):
13116 gpg: Make --skip-hidden-recipients work again.
13117 + commit 79f165d7a8bcc26972712bb0f0cc554d5c3d4e42
13118 * g10/pubkey-enc.c (get_session_key): Take care of
13119 opt.skip_hidden_recipients.
13121 2018-10-02 Werner Koch <wk@gnupg.org>
13123 gpg: New options import-drop-uids and export-drop-uids.
13124 + commit 8e83493dae426fe36a0e0081198b10db1e103ff1
13125 * g10/options.h (IMPORT_DROP_UIDS): New.
13126 (EXPORT_DROP_UIDS): New.
13127 * g10/import.c (parse_import_options): Add option "import-drop-uids".
13128 (import_one): Don't bail out with that options and no uids found.
13129 Also remove all uids.
13130 (remove_all_uids): New.
13131 * g10/export.c (parse_export_options): Add option "export-drop-uids".
13132 (do_export_one_keyblock): Implement option.
13134 2018-10-02 NIIBE Yutaka <gniibe@fsij.org>
13136 common: Fix gnupg_reopen_std.
13137 + commit 50b02dba2060a8969da47b18d9c0ecdccbd30db4
13138 * common/sysutils.c (gnupg_reopen_std): Use fcntl instead of fstat.
13140 2018-09-27 NIIBE Yutaka <gniibe@fsij.org>
13142 g10,scd: Support UIF changing command.
13143 + commit 0cb65564e022fface5ada4de8e0c2c4c3d0ac8ad
13144 * g10/card-util.c (uif, cmdUIF): New.
13145 (card_edit): Add call to uif by cmdUIF.
13146 * scd/app-openpgp.c (do_getattr): Support UIF-1, UIF-2, and UIF-3.
13147 (do_setattr): Likewise.
13148 (do_learn_status): Learn UIF-1, UIF-2, and UIF-3.
13150 2018-09-18 NIIBE Yutaka <gniibe@fsij.org>
13152 g10: Fix memory leak for --card-status.
13153 + commit fe8b6339542f3b1228b5fd56fc710ea3b07a3a2b
13154 * g10/card-util.c (card_status): Release memory of serial number.
13156 2018-09-14 NIIBE Yutaka <gniibe@fsij.org>
13158 g10: Fix another memory leak.
13159 + commit 60c880bda5c9b821fd2968cf89c38c37be3c1a7b
13160 * g10/skclist.c (enum_secret_keys): Use SK_LIST instead of pubkey_t.
13162 g10: Fix memory leak (more).
13163 + commit 2eb481e8cc1c37378cf68a06557c4a7a625d315c
13164 * g10/skclist.c (enum_secret_keys): Free SERIALNO on update.
13166 g10: Fix memory leak in enum_secret_keys.
13167 + commit 64c5c45e2aa4a12d939680b9d51c8b26d61c5e9d
13168 * g10/skclist.c (enum_secret_keys): Don't forget to call
13169 free_public_key in the error return paths.
13171 2018-09-11 NIIBE Yutaka <gniibe@fsij.org>
13173 Revert "dirmngr: hkp: Avoid potential race condition when some hosts die."
13174 + commit 69bab1cba07a8259b85a7911c2824724667803a4
13175 This reverts commit 04b56eff118ec34432c368b87e724bce1ac683f9.
13177 dirmngr: Serialize access to hosttable.
13178 + commit 995aded58724a1a07704493b311be5222b3f82a2
13179 * dirmngr/dirmngr.h (ks_hkp_init): New.
13180 * dirmngr/dirmngr.c (main): Call ks_hkp_init.
13181 * dirmngr/ks-engine-hkp.c (ks_hkp_init): New.
13182 (ks_hkp_mark_host): Serialize access to hosttable.
13183 (ks_hkp_print_hosttable, make_host_part): Likewise.
13184 (ks_hkp_housekeeping, ks_hkp_reload): Likewise.
13186 2018-09-10 NIIBE Yutaka <gniibe@fsij.org>
13188 common: Use iobuf_get_noeof to avoid undefined behaviors.
13189 + commit f80346f42df4bdc7d0a9741c3922129aceae4f81
13190 * common/iobuf.c (block_filter): Use iobuf_get_noeof.
13192 agent: Fix error code check from npth_mutex_init.
13193 + commit adce73b86fd49d5bbb8884231a26cc7533d400e2
13194 * agent/call-pinentry.c (initialize_module_call_pinentry): It's an
13195 error when npth_mutex_init returns non-zero.
13197 2018-09-07 Werner Koch <wk@gnupg.org>
13199 dirmngr: Emit SOURCE status also on NO_DATA.
13200 + commit bee65edfbc8cc2c369e5941cc9d1a01a0519b388
13201 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Send SOURCE status also on
13203 (ks_hkp_get): Ditto.
13204 * g10/call-dirmngr.c (gpg_dirmngr_ks_search): Print "data source" info
13206 (gpg_dirmngr_ks_get): Ditto.
13208 2018-09-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13210 dirmngr: hkp: Avoid potential race condition when some hosts die.
13211 + commit 04b56eff118ec34432c368b87e724bce1ac683f9
13212 * dirmngr/ks-engine-hkp.c (select_random_host): Use atomic pass
13213 through the host table instead of risking out-of-bounds write.
13215 2018-09-07 NIIBE Yutaka <gniibe@fsij.org>
13217 g10: Fix memory leak.
13218 + commit 7c96cc67e108f3a9514a4222ffac2f9f9a2ab19e
13219 * g10/import.c (read_block): Call free_packet to skip the packet.
13221 2018-09-06 NIIBE Yutaka <gniibe@fsij.org>
13223 gpgscm: Suppress warnings for GCC > 6.
13224 + commit 99c17b970bc0ca7e0cff7fe031c6f9feb05af3ff
13225 * tests/gpgscm/scheme.c (CASE): Use unused attribute for GCC > 6.
13226 (FALLTHROUGH): New for fallthrough.
13227 (Eval_Cycle): Use FALLTHROUGH. Remove not-needed comment of
13230 Fix use of strncpy, which is actually good to use memcpy.
13231 + commit 625ced6e672daa892d334323cce6b3d42a6f929f
13232 * common/ssh-utils.c (get_fingerprint): Use memcpy.
13233 * g10/build-packet.c (string_to_notation): Use memcpy.
13235 2018-09-05 Werner Koch <wk@gnupg.org>
13237 kbx: Add framework for a public key daemon.
13238 + commit 512be1d04b98a9d6a9067bd34c16513089a0db9f
13239 * kbx/keyboxd.c: New.
13240 * kbx/keyboxd.h: New.
13241 * kbx/kbxserver.c: New.
13242 * kbx/keyboxd-w32info.rc: New.
13243 * kbx/Makefile.am (EXTRA_DIST): Add new rc file.
13244 (resource_objs): Ditto.
13245 (libexec_PROGRAMS): New.
13246 (common_libs, commonpth_libs): New.
13247 (kbxutil_LDADD): Use here.
13248 (keyboxd_SOURCES): New.
13249 (keyboxd_CFLAGS): New.
13250 (keyboxd_LDADD): New.
13251 (keyboxd_LDFLAGS): New.
13252 (keyboxd_DEPENDENCIES): new.
13253 ($(PROGRAMS)): Extend.
13255 common: New function status_printf.
13256 + commit d4489be467e7229e17fb17a0489bf711d6ce66d6
13257 * common/asshelp2.c (set_assuan_context_func): New.
13258 (status_printf): New.
13259 * po/Makevars (XGETTEXT_OPTIONS): Add status_printf
13261 2018-08-29 Werner Koch <wk@gnupg.org>
13263 gpg: Explain error message in key generation with --batch.
13264 + commit 1bfe766bcf3959135333900934f1a15c9b96c3cf
13265 * g10/keygen.c (generate_keypair): Show more info.
13267 gpg: Remove unused function get_pubkeys.
13268 + commit ed8fe21e6612401846fc4af8631f0136dc633c67
13269 * g10/getkey.c (get_pubkeys): Remove.
13270 (pubkey_free): Remove and use code directly ...
13271 (pubkeys_free): ... here.
13273 gpg: New option --known-notation.
13274 + commit 3da835713fb6220112d988e1953f3d84beabbf6a
13275 * g10/gpg.c (oKnownNotation): New const.
13276 (opts): Add option --known-notation.
13277 (main): Set option.
13278 * g10/parse-packet.c (known_notations_list): New local var.
13279 (register_known_notation): New.
13280 (can_handle_critical_notation): Rewrite to handle the new feature.
13281 Also print the name of unknown notations in verbose mode.
13283 2018-08-28 Werner Koch <wk@gnupg.org>
13285 gpg: Refresh expired keys originating from the WKD.
13286 + commit 7f172404bfcf719b9b1af4a182d4803525ebff7c
13287 * g10/getkey.c (getkey_ctx_s): New field found_via_akl.
13288 (get_pubkey_byname): Set it.
13289 (only_expired_enc_subkeys): New.
13290 (get_best_pubkey_byname): Add support to refresh expired keys from the
13293 gpg: Remove unused arg from a function.
13294 + commit db67ccb759426c1173761574b14bdfe6a76394c2
13295 * g10/getkey.c (get_best_pubkey_byname): Remove unused arg 'no_akl'.
13296 Change both callers.
13298 2018-08-27 Werner Koch <wk@gnupg.org>
13300 gpg: Prepare for longer card fingerprints.
13301 + commit 108702ccae8ff1e5fec3b8e710f06a03637244c7
13302 * g10/call-agent.h (agent_card_info_s): Rename the "*valid" fields to
13304 * g10/call-agent.c (unhexify_fpr): Change to take a FPRLEN and to
13305 return the actual length.
13306 (agent_release_card_info): Adjust for these changes.
13307 * g10/card-util.c (print_sha1_fpr): Rename to print_shax_fpr and add
13308 arg FPRLEN. Change all callers to pass the length.
13309 (print_sha1_fpr_colon): Rename to print_shax_fpr_colon and add arg
13310 FPRLEN. Change all callers to pass the length.
13311 (fpr_is_zero): Add arg FPRLEN.
13312 (fpr_is_ff): Ditto.
13313 (show_card_key_info): Use the new functions.
13314 * g10/skclist.c (enum_secret_keys): Use MAX_FINGERPRINT_LEN.
13316 2018-08-27 NIIBE Yutaka <gniibe@fsij.org>
13318 g10: Fix enum_secret_keys for card keys.
13319 + commit b823788d200902f34c632026934cf0e43152b73e
13320 * g10/skclist.c (enum_secret_keys): Since "KEY-FPR" returns
13321 fingerprint in binary, change it to hex string.
13323 g10: Prefer to available card keys for decryption.
13324 + commit 84cc55880a5815155328229beb309326472bfd82
13325 * g10/skclist.c (enum_secret_keys): Add logic to prefer
13326 decryption keys on cards.
13328 g10: Move enum_secret_keys to skclist.c.
13329 + commit 03a8de7def4195b9accde47c1dcb84279361936d
13330 * g10/getkey.c (enum_secret_keys): Move to...
13331 * g10/skclist.c (enum_secret_keys): ... here.
13333 g10: Fix comment of enum_secret_keys.
13334 + commit 6bb93fc295e712ddf9b461dfe650211caf16a844
13335 * g10/getkey.c (enum_secret_keys): Fix comment for usage of
13336 enum_secret_keys, following the previous change.
13338 g10: Enumerated keys for decryption should be unique.
13339 + commit 30153c65f0875f9a62838f6347bcdcedd6114d35
13340 * g10/getkey.c (enum_secret_keys): Collecting keys in the context,
13341 check duplicate to make sure returning only unique keys.
13342 * g10/pubkey-enc.c (get_session_key): Now, it's the responsibility of
13343 enum_secret_keys to free keys.
13345 g10: Change decryption key selection for public key encryption.
13346 + commit ce2f71760155b71a71418fe145a557c99bd52290
13347 * g10/mainproc.c (struct mainproc_context): It's now pubkey_enc_list.
13348 (do_proc_packets): Remove the first arg CTRL. Fix call of
13350 (release_list): Handle pubkey_enc_list.
13351 (proc_pubkey_enc): Remove the first arg CTRL. Simply put the packet
13352 to pubkey_enc_list.
13353 (print_pkenc_list): Remove the last arg FAILED.
13354 (proc_encrypted): Only call print_pkenc_list once.
13356 (proc_packets, proc_signature_packets, proc_signature_packets_by_fd)
13357 (proc_encryption_packets): Fix call of do_proc_packets.
13358 * g10/packet.h (struct pubkey_enc_list): Define.
13359 * g10/pubkey-enc.c (get_it): Change the second argument K.
13360 (get_session_key): Select session key by LIST, using enum_secret_keys.
13361 * g10/gpgv.c (get_session_key): Change the second argument K.
13362 * g10/test-stubs.c (get_session_key): Likewise.
13364 2018-08-10 NIIBE Yutaka <gniibe@fsij.org>
13366 g10: Fix undefined behavior when EOF in parsing packet for S2K.
13367 + commit 1b309d9f6199a91caa0ca0b97b92d599e00b736e
13368 * g10/parse-packet.c (parse_symkeyenc): Use iobuf_get_noeof.
13369 (parse_key): Likewise.
13371 2018-07-27 Werner Koch <wk@gnupg.org>
13373 gpg: Set a limit for a WKD import of 256 KiB.
13374 + commit e88f56f1937ac92f6a3b94e50b6db2649ec0be41
13375 * g10/call-dirmngr.c (MAX_WKD_RESULT_LENGTH): New.
13376 (gpg_dirmngr_wkd_get): Use it.
13378 dirmngr: Validate SRV records in WKD queries.
13379 + commit ebe727ef596eefebb5eff7d03a98649ffc7ae3ee
13380 * dirmngr/server.c (proc_wkd_get): Check the returned SRV record names
13381 to mitigate rogue DNS servers.
13383 common: New function to validate domain names.
13384 + commit ddee9f9409fb5a089883eab0fadef7b9b7e61e72
13385 * common/mbox-util.c (is_valid_domain_name): New.
13386 * common/t-mbox-util.c (run_dns_test): New test.
13388 2018-07-26 Jiří Keresteš <jiri.kerestes@trustica.cz>
13390 scd: Add support for Trustica Cryptoucan.
13391 + commit 967d3649d24aba623133808e8d01675dff389fbb
13394 2018-07-25 Werner Koch <wk@gnupg.org>
13396 dirmngr: Print a WARNING status for DNS config problems.
13397 + commit bd4048c533165fd82340354d7229fcc2220db5a5
13398 * dirmngr/dirmngr-status.h: New.
13399 * dirmngr/dirmngr.h: Include dirmngr-status.h and move some prototypes
13401 * dirmngr/t-support.c: New.
13402 * dirmngr/Makefile.am (dirmngr_SOURCES): Add dirmngr-status.h.
13403 (t_common_src): Add t-support.c.
13404 * dirmngr/server.c (dirmngr_status_printf): Bypass if CTRL is NULL.
13405 * dirmngr/dns-stuff.c: Include dirmngr-status.h.
13406 (libdns_init): Print WARNING status line. Change call callers to take
13407 and pass a CTRL argument.
13408 * g10/call-dirmngr.c (ks_status_cb): Print info for new WARNING
13411 2018-07-24 Werner Koch <wk@gnupg.org>
13413 gpg: Use 128 MiB as default AEAD chunk size.
13414 + commit 9aa1b368efd4edf51b6d056339bffb726de5162b
13415 * g10/gpg.c (oDebugAllowLargeChunks): New.
13416 (opts): New option --debug-allow-large-chunks.
13417 (main): Implement that option.
13419 2018-07-09 Werner Koch <wk@gnupg.org>
13421 gpg: Remove multiple subkey bindings during export-clean.
13422 + commit 76989d5bd89ed11f5b3656dc4748fcfc939a46dc
13423 * g10/key-clean.c (clean_one_subkey_dupsigs): New.
13424 (clean_all_subkeys): Call it.
13426 gpg: Let export-clean remove expired subkeys.
13427 + commit c2fd65ec8498a08ee36ca52d99b6b014f6db8d93
13428 * g10/key-clean.h (KEY_CLEAN_NONE, KEY_CLEAN_INVALID)
13429 (KEY_CLEAN_ENCR, KEY_CLEAN_AUTHENCR, KEY_CLEAN_ALL): New.
13430 * g10/key-clean.c (clean_one_subkey): New.
13431 (clean_all_subkeys): Add arg CLEAN_LEVEL.
13432 * g10/import.c (import_one): Call clean_all_subkeys with
13434 * g10/export.c (do_export_stream): Call clean_all_subkeys depedning on
13435 the export clean options.
13437 gpg: Split key cleaning function for clarity.
13438 + commit 6c3567196f7e72552f326ce07dccbcce31926e5d
13439 * g10/key-clean.c (clean_key): Rename to clean_all_uids and split
13440 subkey cleaning into ...
13441 (clean_all_subkeys): new. Call that always after the former clean_key
13444 2018-07-06 Werner Koch <wk@gnupg.org>
13446 gpg: Move key cleaning functions to a separate file.
13447 + commit 135e46ea480d749b8a9692f71d4d0bfdadd8ee2f
13448 * g10/trust.c (mark_usable_uid_certs, clean_sigs_from_uid)
13449 (clean_uid_from_key, clean_one_uid, clean_key): Move to ...
13450 * g10/key-clean.c: new file.
13451 * g10/key-clean.h: New.
13452 * g10/Makefile.am (gpg_sources): Add new files.
13453 * g10/export.c, g10/import.c, g10/keyedit.c, g10/trustdb.c: Include
13455 * g10/trustdb.h (struct key_item, is_in_klist): Move to ...
13456 * g10/keydb.h: here.
13458 2018-07-05 Werner Koch <wk@gnupg.org>
13460 po: Add flag options for xgettext.
13461 + commit cb71573f376235036c98143155e964a15cfcb250
13462 * po/Makevars (XGETTEXT_OPTIONS): Add --flag options.
13464 gpg: Prepare for signatures with ISSUER_FPR but without ISSUER.
13465 + commit f7526c7bc754acf68bde0b79c785e875a9365d60
13466 * g10/getkey.c (get_pubkey_for_sig): New.
13467 (get_pubkeyblock_for_sig): New.
13468 * g10/mainproc.c (issuer_fpr_raw): Give global scope.
13469 (check_sig_and_print): Use get_pubkeyblock_for_sig.
13470 * g10/pkclist.c (check_signatures_trust): Use get_pubkey_for_sig.
13471 * g10/sig-check.c (check_signature2): Ditto.
13472 (check_signature_over_key_or_uid): Ditto.
13474 tools: Add experimental code for a pairing protocol.
13475 + commit faf3c70c7715ba86eb56fdccc6cf831bf87b2ee0
13476 * configure.ac (GNUPG_CACHE_DIR): New const.
13477 * tools/Makefile.am (libexec_PROGRAMS): Add gpg-pair-tool.
13478 (gpg_pair_tool_SOURCES, gpg_pair_tool_CFLAGS)
13479 (gpg_pair_tool_LDADD): New.
13480 * tools/gpg-pair-tool.c: New.
13482 2018-07-04 Werner Koch <wk@gnupg.org>
13484 gpg: Ignore too large user ids during import.
13485 + commit 01cd66f9faf1623833e6afac84164de5a136ecff
13486 * g10/import.c (read_block): Add special treatment for bad user ids
13487 and comment packets.
13489 gpg: Extra check for sign usage when verifying a data signature.
13490 + commit 214b0077264e35c079e854a8b6374704aea45cd5
13491 * g10/sig-check.c (check_signature_end_simple): Check sign usage.
13493 2018-07-03 NIIBE Yutaka <gniibe@fsij.org>
13495 g10: Fix memory leak for PKT_signature.
13496 + commit 996febbab21eb9283b0634e51303a36b318734a6
13497 * g10/getkey.c (buf_to_sig): Free by free_seckey_enc.
13498 * g10/gpgcompose.c (signature): Likewise.
13499 * g10/sign.c (write_signature_packets): Likewise.
13501 2018-07-02 Werner Koch <wk@gnupg.org>
13503 agent: New commands PUT_SECRET and GET_SECRET.
13504 + commit 8a915cd9faf052b4faa3c415f2ac5aa8d6ea1efe
13505 * agent/agent.h (CACHE_MODE_DATA): New const.
13506 * agent/cache.c (DEF_CACHE_TTL_DATA): new.
13507 (housekeeping): Tweak for CACHE_MODE_DATA.
13508 (cache_mode_equal): Ditto.
13509 (agent_get_cache): Ditto.
13510 (agent_put_cache): Implement CACHE_MODE_DATA.
13511 * agent/command.c (MAXLEN_PUT_SECRET): New.
13513 (cmd_get_secret): New.
13514 (cmd_put_secret): New.
13515 (register_commands): Register new commands.
13517 common: New function percent_data_escape.
13518 + commit 58baf40af641f8cbf597e508a292e85ae94688f1
13519 * common/percent.c (percent_data_escape): New.
13520 * common/t-percent.c (test_percent_data_escape): New.
13522 agent: Fix segv running in --server mode.
13523 + commit 3978df943dc7a4781a23382be2d3b4a96a04f71f
13524 * agent/command.c (start_command_handler): Do not write to
13525 CLIENT_CREDS after an error.
13527 2018-07-02 NIIBE Yutaka <gniibe@fsij.org>
13529 libdns: For SOCKS connection, just fails.
13530 + commit 1aacd12471935a354cfd85ee1805edc7eb16e6c5
13531 * dirmngr/dns.c (dns_res_exec): If it's DNS_SO_SOCKS_CONN, don't
13532 iterate to other server, but return the error immediately.
13534 2018-06-21 Werner Koch <wk@gnupg.org>
13536 gpg: Print revocation reason for "rev" records.
13537 + commit 592deeddb9bf4ae9b3e236b439e2f39644eb6d46
13538 * g10/main.h: Add prototype.
13539 * g10/keylist.c (list_keyblock_print): Print revocation info.
13540 (list_keyblock_colon): Ditto.
13542 * g10/test-stubs.c (get_revocation_reason): New stub.
13543 * g10/gpgv.c (get_revocation_reason): New stub.
13545 gpg: Print revocation reason for "rvs" records.
13546 + commit b7cd2c2093ae1b47645be50fa1d431a028187cad
13547 * g10/import.c (get_revocation_reason): New.
13548 (list_standalone_revocation): Extend function.
13550 gpg: Let --show-keys print revocation certificates.
13551 + commit 386b9c4f25b28fd769d7563f2d86ac3a19cc3011
13552 * g10/import.c (list_standalone_revocation): New.
13553 (import_revoke_cert): Call new function.
13555 build: Remove duplicates from AC_CHECK_FUNCS.
13556 + commit 7e9aa307f76cdf2f624d43a35a8266e8b4e473f9
13557 * configure.ac (AC_CHECK_FUNCS): Fold most calls into one.
13559 2018-06-20 NIIBE Yutaka <gniibe@fsij.org>
13561 libdns: Let kernel to decide the local port.
13562 + commit 861f1da0731bf29dcb9221c4f22c76b40ec15a78
13563 * dirmngr/dns.c (LEAVE_SELECTION_OF_PORT_TO_KERNEL): New.
13564 (dns_socket): Don't select ephemeral port in user space.
13566 2018-06-19 Werner Koch <wk@gnupg.org>
13568 wks: Take name of sendmail from configure.
13569 + commit 08147f8bbdca40c98c2a094fa48fab15b8339c80
13570 * configure.ac (NAME_OF_SENDMAIL): New ac_define.
13571 * tools/send-mail.c (run_sendmail): Use it.
13573 2018-06-18 NIIBE Yutaka <gniibe@fsij.org>
13575 libdns: Fix for non-FQDN hostname.
13576 + commit a4a054bf14fa855715faee01a152755c4e2a74f7
13577 * dirmngr/dns.c (dns_resconf_open): Clear search[0] for non-FQDN
13580 2018-06-15 NIIBE Yutaka <gniibe@fsij.org>
13582 libdns: Fix connect and try next nameserver when ECONNREFUSED.
13583 + commit bcdbf8b8ebe9d61160e0b007dabe1b6462ffbc93
13584 * dirmngr/dns.c (dns_so_check): When EINVAL, release the association
13585 by connect with AF_UNSPEC and try again. Also try again for
13587 (dns_res_exec): Try next nameserver when ECONNREFUSED.
13589 libdns: Clear struct sockaddr_storage by zero.
13590 + commit 1c0b6681e4f322b88ac35d1f21c03d3cfc35fc23
13591 * dirmngr/dns.c (dns_resconf_pton): Clear SS.
13592 (dns_resconf_setiface): Clear ->IFACE.
13593 (dns_hints_root, send_query): Clear SS.
13595 2018-06-14 NIIBE Yutaka <gniibe@fsij.org>
13597 libdns: Sync to upstream.
13598 + commit 3e6ad302eaf3a4a9f3e60379133b3dfdbe0e1b2d
13599 * dirmngr/dns.c (dns_nssconf_loadfile): Handle exclamation mark.
13601 dirmngr: Fix recursive resolver mode.
13602 + commit 5b40338f12762cd74238c2d2b3101c33dd2d0ed3
13603 * dirmngr/dns-stuff.c (libdns_init): Initialize options.recurse.
13605 2018-06-12 Werner Koch <wk@gnupg.org>
13607 Some preparations to eventuallt use gpgrt_argparse.
13608 + commit cb52eb76b3ba0269742c5322e10a2b5151dafaf2
13609 * configure.ac (GNUPG_DEF_COPYRIGHT_LINE: New.
13610 * tools/watchgnupg.c (print_version): USe this macro.
13611 * common/init.c (_init_common_subsystems): Register argparse
13614 Require libgpg-error 1.29 and remove internal logging functions.
13615 + commit 440472663d608660343c54f09172c851f5127c9c
13616 * configure.ac (NEED_GPG_ERROR_VERSION): Set to 1.29
13617 * common/util.h: Remove replacement error codes.
13618 * common/logging.h: Remove fallback to internal logging functions.
13619 * common/logging.c: Remove.
13620 * common/Makefile.am (common_sources): Remove logging.c
13622 gpg: Do not import revocations with --show-keys.
13623 + commit fe621cc64b13b00914633630f28b4b417892d629
13624 * g10/import.c (import_revoke_cert): Add arg 'options'. Take care of
13627 2018-06-12 NIIBE Yutaka <gniibe@fsij.org>
13629 card: Fix memory leak for fetch-url sub command.
13630 + commit 8f99299a54a0ac09f9c90c1085b704db78973fda
13631 * g10/card-util.c (fetch_url): Release INFO.
13633 2018-06-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13635 gpg: Add new usage option for drop-subkey filters.
13636 + commit 2ddfb5bef920919443309ece9fa2930282bbce85
13637 * g10/import.c (impex_filter_getval): Add new "usage" property for
13638 drop-subkey filter.
13640 2018-06-11 Werner Koch <wk@gnupg.org>
13642 gpg: Set some list options with --show-keys.
13643 + commit d2bc66f241a66cc95140cbb3a07555f6301290ed
13644 * g10/gpg.c (main): Set some list options.
13646 2018-06-08 Werner Koch <wk@gnupg.org>
13648 gpg: Sanitize diagnostic with the original file name.
13649 + commit 13f135c7a252cc46cff96e75968d92b6dc8dce1b
13650 * g10/mainproc.c (proc_plaintext): Sanitize verbose output.
13652 2018-06-07 Werner Koch <wk@gnupg.org>
13654 gpg: Improve import's repair-key duplicate signature detection.
13655 + commit 26746fe65d14a00773473c2d0d271406a5105bca
13656 * g10/key-check.c (key_check_all_keysigs): Factor some code out to ...
13657 (remove_duplicate_sigs): new.
13658 (key_check_all_keysigs): Call remove_duplicate_sigs again after
13661 gpg: Fix import's repair-key duplicate signature detection.
13662 + commit 26bce2f01d2029ea2b8a8dbbe36118e3c83c5cba
13663 * g10/packet.h (PKG_siganture): Add field 'help_counter'.
13664 * g10/key-check.c (sig_comparison): Take care of HELP_COUNTER.
13665 (key_check_all_keysigs): De-duplicate on a per-block base.
13667 gpg: Improve verbose output during import.
13668 + commit 1bc6b5174248ba4d83d648ef6d6f4550540d1f20
13669 * g10/import.c (chk_self_sigs): Print the subkeyid in addition to the
13671 (delete_inv_parts): Ditto.
13673 2018-06-06 Werner Koch <wk@gnupg.org>
13675 agent: Add DBUS_SESSION_BUS_ADDRESS et al. to the startup list.
13676 + commit 7ffc1ac7dd95d4cc1897a4c36d5cd628741c12f2
13677 * agent/gpg-agent.c (agent_copy_startup_env): Replace explicit list
13678 with the standard list.
13680 gpg: Also detect a plaintext packet before an encrypted packet.
13681 + commit 344b548dc71657d0285d93f78f17a2663b5e586f
13682 * g10/mainproc.c (proc_encrypted): Print warning and later force an
13685 gpg: New command --show-keys.
13686 + commit 257661d6ae0ca376df758c38fabab2316d10e3a9
13687 * g10/gpg.c (aShowKeys): New const.
13688 (opts): New command --show-keys.
13689 (main): Implement command.
13690 * g10/import.c (import_keys_internal): Don't print stats in show-only
13692 (import_one): Be silent in show-only mode.
13694 2018-06-05 NIIBE Yutaka <gniibe@fsij.org>
13696 g10: Remove bogus comment.
13697 + commit d2e6b3ea1d70db1039a828fb3a978a4504f8f0c5
13698 * g10/mainproc.c (proc_pubkey_enc): Remove a comment.
13700 2018-05-31 Werner Koch <wk@gnupg.org>
13702 gpg: Print a hint on how to decrypt a non-mdc message anyway.
13703 + commit 874e391665405fc413a69f2ffacdb94bb08da7ff
13704 * g10/mainproc.c (proc_encrypted): Print a hint for legacy ciphers w/o
13705 MDC. Also print a dedicated status error code
13707 2018-05-30 Werner Koch <wk@gnupg.org>
13709 gpg: Ignore the multiple message override options.
13710 + commit d3d41146b33040eb65eaaaffcfc7b4211e60bd95
13711 * g10/gpg.c (oAllowMultisigVerification)
13712 (oAllowMultipleMessages, oNoAllowMultipleMessages): Remove.
13713 (opts): Turn --allow-multisig-verification, --allow-multiple-messages
13714 and --no-allow-multiple-messages into NOPs
13715 * g10/options.h (struct opt): Remove flags.allow_multiple_messages.
13716 * g10/mainproc.c (proc_plaintext): Assume allow_multiple_messages is
13719 gpg: Detect multiple literal plaintext packets more reliable.
13720 + commit 97183b5c0fae05fcda942caa7df14ee6a133d846
13721 * g10/mainproc.c (proc_encrypted): Bump LITERALS_SEEN.
13723 2018-05-29 Werner Koch <wk@gnupg.org>
13725 gpg: Remove PGP6 compliance mode.
13726 + commit b2c05d691247a79fb46f75b653cbc4bf518c1c2a
13727 * g10/gpg.c: Make --pgp6 an alias for --pgp7.
13728 * common/compliance.h (gnupg_compliance_mode): Remove CO_PGP6.
13729 * g10/options.h (PGP6): Remove. Adjust all users.
13731 gpg: Remove MDC options.
13732 + commit 253e8bdd9014cbe6dc06adce9d9dd2f8f4b31709
13733 * g10/gpg.c: Tuen options --force-mdc, --no-force-mdc, --disable-mdc
13734 and --no-disable-mdc into NOPs.
13735 * g10/encrypt.c (use_mdc): Simplify. MDC is now almost always used.
13736 (use_aead): Ignore MDC options. Print warning for missing MDC feature
13738 * g10/pkclist.c (warn_missing_mdc_from_pklist): Rename to ...
13739 (warn_missing_aead_from_pklist): this and adjust.
13741 gpg: Fix detection of the AEAD feature flag.
13742 + commit af4a5dbe575f304838db358aaeb45741f149d0a7
13743 * g10/getkey.c (fixup_uidnode): Use bitmask 0x02.
13745 2018-05-15 Werner Koch <wk@gnupg.org>
13747 gpg: Hard fail on a missing MDC even for legacy algorithms.
13748 + commit d1431901f0143cdc7af8d1a23387e0c6b5bb613f
13749 * g10/mainproc.c (proc_encrypted): Require an MDC or AEAD
13750 * tests/openpgp/defs.scm (create-gpghome): Use --ignore-mdc-error to
13751 allow testing with the current files.
13753 gpg: Turn --no-mdc-warn into a NOP.
13754 + commit 96350c5d5afcbc7f66c535e38b9fcc7355622855
13755 * g10/gpg.c (oNoMDCWarn): Remove.
13756 (opts): Make --no-mdc-warn a NOP.
13757 (main): Don't set var.
13758 * g10/options.h (struct opt): Remove 'no_mdc_var'.
13759 * g10/cipher-cfb.c (write_header): Assume opt.no_mdc_warn is false.
13760 * g10/mainproc.c (proc_encrypted): Ditto.
13762 2018-05-07 Ineiev <ineiev@gnu.org>
13764 doc: Update description of displayed trust values.
13765 + commit ed12a1dabaf928e8620fc26ca426c935e1a8a880
13766 * doc/trust-values.texi: New file.
13767 * doc/Makefile.am (EXTRA_DIST): Add trust-values.texi.
13768 * doc/gnupg.texi (Trust Values): New chapter.
13769 * doc/gpg.texi (OpenPGP Key Management): Update the description
13770 of how trust values are displayed, replace table with a reference
13772 * doc/gpg.texi (GPG Examples): Add @mansect trust values.
13774 2018-05-02 Werner Koch <wk@gnupg.org>
13777 + commit d31d149196832ed6b8849017d8bcd0852c6ca96c
13780 gpg: Fix minor memory leak in the compress filter.
13781 + commit d26363e4f1933781c86cbe87077fbf1b9a2b64d8
13782 * g10/compress.c (push_compress_filter2): Return an error if no filter
13784 (push_compress_filter): Ditto.
13785 (handle_compressed): Free CFX if no filter was pushed.
13786 * g10/import.c (read_block): Ditto.
13788 gpg: Fix "Too many open files" when using --multifile.
13789 + commit f7f3043653abe699602f910ddd09c1405675c7f6
13790 * common/miscellaneous.c (is_file_compressed): Don't cache the file.
13792 dirmngr: Implement timeout for dirmngr_ldap under Windows.
13793 + commit 007dde93cc3971cb51d08e8c082e172506ae7f80
13794 * dirmngr/dirmngr_ldap.c (alarm_thread) [W32]: New.
13795 (set_timeout): Implement for W32.
13797 build: New configure option to help with nPth debugging.
13798 + commit ddfd39e91a532fd31cd0c20c5d4cf9643acc58bd
13799 * configure.ac: Add option --enable-npth-debug
13801 2018-05-02 Andre Heinecke <aheinecke@intevation.de>
13803 common,w32: Hide spawned processes by default.
13804 + commit 3bd793256e2e4be52075d50ccf2df70c4a2e1a0f
13805 * common/exechelp-w32.c (gnupg_spawn_process): Use SW_HIDE
13806 instead of SW_MINIMIZE.
13808 2018-04-30 Werner Koch <wk@gnupg.org>
13810 dirmngr: Sleep in the ldap wrapper thread.
13811 + commit a598bbeeafa30f7854230eed212b76d5c5c77f86
13812 * dirmngr/ldap-wrapper.c (wrapper_list): Rename to reaper_list.
13813 (ldap_reaper_thread): Protect all list modification with a mutex. Use
13814 a condition var to wake up the reaper thread.
13816 2018-04-27 Werner Koch <wk@gnupg.org>
13818 dirmngr: Use the LDAP wrapper process also for Windows.
13819 + commit f9fbfc64e402bd41815a68426f55565fa6d5c726
13820 * dirmngr/ldap-wrapper.c: Revamp module to make use of es_poll for
13822 * configure.ac: Always use the ldap wrapper.
13824 dirmngr: Silence log output from dirmngr_ldap.
13825 + commit d22506a343cec61b7d1a48c970b63a8458b267ab
13826 * dirmngr/dirmngr_ldap.c: Remove assert.h.
13827 (main): Replace assert by log_assert.
13828 * dirmngr/ldap.c (run_ldap_wrapper): Use debug options to pass
13829 verbose options to dirmngr_ldap.
13830 (start_cert_fetch_ldap): Ditto.
13832 2018-04-26 Werner Koch <wk@gnupg.org>
13834 dirmngr: Lower the dead host resurrection time to 1.5h.
13835 + commit 5789afc840cf79ba2a8cebd9d772ef9c3868c5e9
13836 * dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): Decrease.
13837 (INITIAL_HOSTTABLE_SIZE): Increase because the old values was likely
13840 dirmngr: Fix handling of CNAMEed keyserver pools.
13841 + commit cc66108253c58583d6bad3d1e2da2b004701d0f0
13842 * dirmngr/ks-engine-hkp.c (map_host): Don't use the cname for HTTPHOST.
13843 * dirmngr/server.c (make_keyserver_item): Map keys.gnupg.net.
13845 2018-04-25 Werner Koch <wk@gnupg.org>
13847 dirmngr: Add the used TLS library to the debug output.
13848 + commit bb8894760fe87cf46a42599f11eab7e7c7a8eb71
13849 * dirmngr/http.c (send_request): Print the used TLS library in debug
13852 dirmngr: Allow redirection from https to http for CRLs.
13853 + commit 1de4462974113ac18cf98f903e97cd1127fa842f
13854 * dirmngr/ks-engine.h (KS_HTTP_FETCH_NOCACHE): New flag.
13855 (KS_HTTP_FETCH_TRUST_CFG): Ditto.
13856 (KS_HTTP_FETCH_NO_CRL): Ditto.
13857 (KS_HTTP_FETCH_ALLOW_DOWNGRADE): Ditto.
13858 * dirmngr/ks-engine-http.c (ks_http_fetch): Replace args send_no_cache
13859 and extra_http_trust_flags by a new flags arg. Allow redirectiong
13860 from https to http it KS_HTTP_FETCH_ALLOW_DOWNGRADE is set.
13861 * dirmngr/loadswdb.c (fetch_file): Call with KS_HTTP_FETCH_NOCACHE.
13862 * dirmngr/ks-action.c (ks_action_get): Ditto.
13863 (ks_action_fetch): Ditto.
13864 * dirmngr/crlfetch.c (crl_fetch): Call with the appropriate flags.
13866 dirmngr: Implement CRL fetching via https.
13867 + commit 705d8e9cf0d109005b3441766270c0e584f7847d
13868 * dirmngr/http.h (HTTP_FLAG_TRUST_CFG): New flag.
13869 * dirmngr/http.c (http_register_cfg_ca): New.
13870 (http_session_new) [HTTP_USE_GNUTLS]: Implement new trust flag.
13871 * dirmngr/certcache.c (load_certs_from_dir): Call new function.
13872 (cert_cache_deinit): Ditto.
13873 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
13874 * dirmngr/ks-engine-http.c (ks_http_fetch): Add new args
13875 'send_no_cache' and 'extra_http_trust_flags'. Change all callers to
13876 provide the default value.
13877 * dirmngr/crlfetch.c (crl_fetch): Rewrite to make use of
13880 2018-04-25 NIIBE Yutaka <gniibe@fsij.org>
13882 g10: Fix printing the keygrip with --card-status.
13883 + commit 71903eee89496e3f1d0a24536bced6ff16df6783
13884 * g10/card-util.c (current_card_status): Keygrip for Auth is 3.
13886 2018-04-24 Werner Koch <wk@gnupg.org>
13888 dirmngr: Fallback to CRL if no default OCSP responder is configured.
13889 + commit 460e3812be711bd18195053d74aa736215f21eee
13890 * dirmngr/server.c (cmd_isvalid): Use option second arg to trigger
13891 OCSP checkibng. Fallback to CRL if no default OCSP responder has been
13893 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Adjust accordingly.
13895 2018-04-20 Andre Heinecke <aheinecke@intevation.de>
13897 dirmngr: More binary I/O on Windows for CRLs.
13898 + commit 64c1fddb253061a9773c6c4ed2a9c5a54702d21b
13899 * dirmngr/crlcache.c (lock_db_file, crl_cache_insert): Open cache
13900 file in binary mode.
13902 doc: Remove unneccesary empty flags in vsndf.prf.
13903 + commit a44ed3d9a1ad5bd96694f10ea5523c517982017e
13904 * doc/examples/vsnfd.prf (max-cache-ttl): Remove empty flags.
13906 2018-04-16 emma peel <emma.peel@aktivix.org>
13908 po: more updates to Spanish translation.
13909 + commit acd6d5ff7436bb7fba171ced3294046a14fb777d
13912 po: correct attribution for Spanish translation.
13913 + commit 21b2e88a7e6c3d7313773c9ffb3e0d1fb2af45df
13916 po: correct label tags in Polish translation.
13917 + commit a5290dace7f85d66272af3e14f9f2bc43d2a4af8
13920 po: correct label tags in Finnish translation.
13921 + commit e12475429578add12a53fb2232cb45dc9e2aae1b
13924 2018-04-15 Werner Koch <wk@gnupg.org>
13926 build: New target "release" to automate the release process.
13927 + commit 3b1ee413a65bf566aa8e5f29a5a2cd5a94e66faa
13928 * Makefile.am (RELEASE_ARCHIVE_DIR): New.
13929 (RELEASE_SIGNING_KEY): New.
13930 (AM_DISTCHECK_CONFIGURE_FLAGS): Remove removed --enable-gpg2-is-gpg,
13931 (RELEASE_NAME, RELEASE_W32_STEM_NAME): New.
13932 (release, sign-release): New.
13934 2018-04-13 NIIBE Yutaka <gniibe@fsij.org>
13936 g10: Fix memory leak in check_sig_and_print.
13937 + commit f747b8f0734338baa1e608b193b213aca2c577e8
13938 * g10/mainproc.c (check_sig_and_print): Free the public key.
13940 g10: Push compress filter only if compressed.
13941 + commit c31abf84659dbda5503dd9f3aa3449520bcd1b84
13942 * g10/compress.c (handle_compressed): Fix memory leak.
13944 2018-04-12 Werner Koch <wk@gnupg.org>
13946 gpg: Extend the "sig" record in --list-mode.
13947 + commit 69c3e7acb744e1e5606a4d946e3b948704cfbbae
13948 * g10/getkey.c (get_user_id_string): Add arg R_NOUID. Change call
13950 (get_user_id): Add arg R_NOUID. Change call callers.
13951 * g10/mainproc.c (issuer_fpr_string): Make global.
13952 * g10/keylist.c (list_keyblock_colon): Print a '?' for a missing key
13953 also in --list-mode. Print the "issuer fpr" field also if there is an
13954 issuer fingerprint subpacket.
13956 gpg: Extend the ERRSIG status line with a fingerprint.
13957 + commit 23a714598c247d78cfda46a6dc338b17e17cc194
13958 * g10/mainproc.c (issuer_fpr_raw): New.
13959 (issuer_fpr_string): Re-implement using issuer_fpr_rtaw.
13960 (check_sig_and_print): Don't free ISSUER_FPR. Use ISSUER_FPR_RAW.
13961 Use write_status_printf. Extend ERRSIG status.
13963 gpg: Relax printing of STATUS_FAILURE.
13964 + commit e2bd152a928d79ddfb95fd2f7911c80a1a8d5a21
13965 * g10/gpg.c (g10_exit): Print STATUS_FAILURE only based on passed
13966 return code and not on the presence of any call to log_error.
13968 agent,dirmngr: Add "getenv" to the getinfo command.
13969 + commit bbb5bfacc0d1f179cfec94fd32fee01a09df0f1d
13970 * agent/command.c (cmd_getinfo): Add sub-command getenv.
13971 * dirmngr/server.c (cmd_getinfo): Ditto.
13973 2018-04-12 Andre Heinecke <aheinecke@intevation.de>
13975 build: Update getswdb version check to 2.2.
13976 + commit 327fece0aed2c9974659c72304f9fd1f461d460c
13977 * build-aux/getswdb.sh: Check for gnupg22_ver gnupg21_ver no
13980 2018-04-11 Werner Koch <wk@gnupg.org>
13982 gpg: New option --no-symkey-cache.
13983 + commit 789d240cb40ab36406a7c57ad49897e0bafbb41e
13984 * g10/gpg.c (oNoSymkeyCache): New.
13985 (opts): Add that option.
13987 * g10/options.h (struct opt): New field no_symkey_cache.
13988 * g10/passphrase.c (passphrase_to_dek): Implement that feature.
13990 2018-04-10 Werner Koch <wk@gnupg.org>
13992 agent: Improve the unknown ssh flag detection.
13993 + commit 9f69dbeb902ac447adbc92937cd451c4e909f234
13994 * agent/command-ssh.c (ssh_handler_sign_request): Simplify detection
13997 2018-04-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13999 agent: unknown flags on ssh signing requests cause an error.
14000 + commit 381c46818ffa4605d0ca39818fe317de445eb6de
14001 * agent/command-ssh.c (ssh_handler_sign_request): if a flag is passed
14002 during an signature request that we do not know how to apply, return
14003 GPG_ERR_UNKNOWN_OPTION.
14005 agent: change documentation reference for ssh-agent protocol.
14006 + commit 55435cdd4fe4fbfbcba1098bb715ecd6171ba2d8
14007 * agent/command-ssh.c: repoint documentation reference.
14009 2018-04-09 Werner Koch <wk@gnupg.org>
14012 + commit 6fbe2ddbaf5123ae444c95fdf8da67840f794c76
14015 gpg,w32: Fix empty homedir when only a drive letter is used.
14016 + commit 6da7aa1e7c80d214bd9dccb21744919ae191f2c8
14017 * common/homedir.c (copy_dir_with_fixup): New.
14018 (default_homedir): Use here.
14019 (gnupg_set_homedir): And here .
14021 doc: Document --key-edit:change-usage.
14022 + commit a4e26f2ee852003707857ab0635b783acb89a2f8
14023 * g10/keyedit.c (menu_changeusage): Make strings translatable.
14025 2018-04-06 Werner Koch <wk@gnupg.org>
14027 gpg: Check that a key may do certifications.
14028 + commit 1a5d95e7319e7e6f0dd11064a26cbbc371b05214
14029 * g10/sig-check.c (check_signature_end_simple): Check key usage for
14031 (check_signature_over_key_or_uid): Request usage certification.
14033 gpg: Emit FAILURE stati now in almost all cases.
14034 + commit 0336e5d1a7b9d46e06c838e6a98aecfcc9542882
14035 * g10/cpr.c (write_status_failure): Make it print only once.
14036 * g10/gpg.c (wrong_args): Bump error counter.
14037 (g10_exit): Print a FAILURE status if we ever did a log_error etc.
14038 (main): Use log_error instead of log_fatal at one place. Print a
14039 FAILURE status for a bad option. Ditto for certain exit points so
14040 that we can see different error locations.
14042 gpg: Re-indent sig-check.c and use signature class macros.
14043 + commit 5ba74a134db431530884f03eea5410a68dbfe0f5
14044 * g10/keydb.h (IS_BACK_SIG): New.
14045 * g10/sig-check.c: Re-indent and use macros.
14047 2018-04-06 NIIBE Yutaka <gniibe@fsij.org>
14049 agent: Support SSH signature flags.
14050 + commit 80b775bdbb852aa4a80292c9357e5b1876110c00
14051 * agent/command-ssh.c (SSH_AGENT_RSA_SHA2_256): New.
14052 (SSH_AGENT_RSA_SHA2_512): New.
14053 (ssh_handler_sign_request): Override SPEC when FLAGS
14056 2018-04-05 NIIBE Yutaka <gniibe@fsij.org>
14058 g10: Let card-edit/key-attr show message when change.
14059 + commit 870527df0dd704c994928348c8c2910030776680
14060 * g10/card-util.c (ask_card_rsa_keysize): Don't show message here.
14061 (ask_card_keyattr): Show message when change, also for ECC.
14063 2018-04-04 NIIBE Yutaka <gniibe@fsij.org>
14065 tests: Fix no gpg-agent upon removal of GNUPGHOME.
14066 + commit 83529e1bd14a6d39f2a8ecab9fb6aa4c1f344c73
14067 * tests/gpgscm/gnupg.scm (with-ephemeral-home-directory): Add
14069 * tests/gpgsm/export.scm: Use -no-atexit version and stop-agent.
14070 * tests/openpgp/decrypt-session-key.scm: Likewise.
14071 * tests/openpgp/decrypt-unwrap-verify.scm: Likewise.
14072 * tests/openpgp/defs.scm (have-opt-always-trust): Likewise.
14073 (setup-environment-no-atexit): New.
14074 (start-agent): Support no use of atexit.
14075 * tests/gpgsm/gpgsm-defs.scm (setup-gpgsm-environment-no-atexit): New.
14076 * tests/migrations/common.scm (untar-armored): Follow the change
14077 of with-ephemeral-home-directory.
14079 2018-04-03 NIIBE Yutaka <gniibe@fsij.org>
14081 scd: Writing KDF resets auth state.
14082 + commit cb1731c23cddfa524d3f51cfd82029bff853a073
14083 * scd/app-openpgp.c (do_setattr): Clear auth state.
14085 2018-04-02 NIIBE Yutaka <gniibe@fsij.org>
14087 g10: Fix filtering by PK->REQ_USAGE.
14088 + commit a17d2d1f690ebe5d005b4589a5fe378b6487c657
14089 * g10/getkey.c (get_pubkey_byfprint): Filter by PK->REQ_USAGE.
14091 2018-03-30 NIIBE Yutaka <gniibe@fsij.org>
14093 g10: Fix card-edit/kdf-setup for single salt.
14094 + commit 130ad98240c066383fa0a99bcf5e0ec72bc0dff9
14095 * g10/card-util.c (gen_kdf_data): Use SALT_USER.
14097 g10,scd: Support single salt for KDF data object.
14098 + commit 0c097575a9cd923f648fb5bb695893d46400c3ad
14099 * g10/card-util.c (gen_kdf_data): Support single salt.
14100 (kdf_setup): Can have argument for single salt.
14101 * scd/app-openpgp.c (pin2hash_if_kdf): Support single salt.
14103 g10: Add "key-attr" command for --card-edit.
14104 + commit 820380335a20391e0998fb1ba32ebfb9accedc5b
14105 * g10/card-util.c (key_attr): New explicit command.
14106 (generate_card_keys, card_generate_subkey): Don't ask key attr change.
14107 (card_edit): Add for cmdKEYATTR.
14109 scd: Support changing key attribute back to RSA.
14110 + commit 29692718768c28c524be6306081ab1852e75fe07
14111 * scd/app-openpgp.c (change_rsa_keyattr): Try usual RSA.
14113 2018-03-29 NIIBE Yutaka <gniibe@fsij.org>
14115 g10: Support key attribute change at --card-edit/generate.
14116 + commit a1515b3bbc10a210040dda3b482bcdb933fa8d7c
14117 * g10/card-util.c (ask_card_rsa_keysize): Drop support for magic
14118 number 25519 for ed25519/cv25519. Rename from ask_card_keyattr.
14119 (ask_card_keyattr): Support ECC, as well as RSA.
14120 (do_change_keyattr): Support ECC dropping magical number 25519.
14121 * g10/keygen.c (ask_curve): Allow call from outside, adding last arg
14123 (generate_keypair): Follow the change of ask_curve.
14124 (generate_subkeypair): Likewise.
14126 g10: check_pin_for_key_operation should be just before genkey.
14127 + commit 02d7bb819ff44cc90212568dd6ce24ae1dc5d17f
14128 * g10/card-util.c (generate_card_keys): Check PIN later.
14129 (card_generate_subkey): Likewise.
14131 2018-03-28 NIIBE Yutaka <gniibe@fsij.org>
14133 g10: Change ask_curve so that it can be used outside.
14134 + commit e610d51f0de11154050915b951bcc5c53c940f5e
14135 * g10/call-agent.h (struct key_attr): New.
14136 * g10/keygen.c (ask_curve): Return const char *. No allocation.
14137 (quick_generate_keypair): Follow the change.
14138 (generate_keypair, generate_subkeypair): Likewise.
14139 (parse_algo_usage_expire): Return const char *.
14141 2018-03-27 NIIBE Yutaka <gniibe@fsij.org>
14143 agent,scd: Use pointer to represent HANDLE.
14144 + commit 96918346beeca7a46de9f03f19502373994c21bc
14145 * agent/call-scd.c [HAVE_W32_SYSTEM] (start_scd): Format with %p.
14146 * scd/command.c [HAVE_W32_SYSTEM] (option_handler): Use void *.
14148 2018-03-27 Werner Koch <wk@gnupg.org>
14150 agent: Make the request origin a part of the cache items.
14151 + commit 02dce8c0cc57deb2095a9b06aeb8f4dea34eef7e
14152 * agent/cache.c (agent_put_cache): Add arg 'ctrl' and change all
14153 callers to pass it.
14154 (agent_get_cache): Ditto.
14156 * agent/cache.c (struct cache_items_s): Add field 'restricted'.
14157 (housekeeping): Adjust debug output.
14158 (agent_flush_cache): Ditto.
14159 (agent_put_cache): Ditto. Take RESTRICTED into account.
14160 (agent_get_cache): Ditto.
14162 2018-03-26 Werner Koch <wk@gnupg.org>
14164 gpg: Auto-fix a broken trustdb with just the version record.
14165 + commit eb68c2d3d1b03a18cd24406fa46d4c30cb13d9f7
14166 * g10/tdbio.c (get_trusthashrec): Create hashtable on error.
14168 gpg: Pass CTRL arg to get_trusthashrec.
14169 + commit a750ebebf35a392f1c72d6aee5618df0d9f25ff7
14170 * g10/tdbio.c (get_trusthashrec): Add arg CTRL.
14171 (tdbio_search_trust_byfpr): Ditto.
14172 (tdbio_search_trust_bypk): Ditto.
14174 gpg: Return better error codes in case of a too short trustdb.
14175 + commit 403aa70c52e56614d65490dea9344113f9cf3d29
14176 * g10/tdbio.c (tdbio_read_record): Return GPG_ERR_EOF.
14177 (tdbio_new_recnum): Never return on error.
14178 (lookup_hashtable): Print a more descriptive error in case of !TABLE.
14180 gpg: Fix trustdb updates without lock held.
14181 + commit 456a3a8e93ea14f821e0e98fb515f284ece98685
14182 * g10/tdbio.c (is_locked): Turn into a counter.
14183 (take_write_lock, release_write_lock): Implement recursive locks.
14185 gpg: Disable unused code parts in tdbio.c.
14186 + commit 5f00531463ebc0e606c502696962426007545bb7
14187 * g10/tdbio.c (in_transaction): Comment this var.
14188 (put_record_into_cache): Comment the transaction code.
14189 (tdbio_sync): Ditto
14191 2018-03-23 Werner Koch <wk@gnupg.org>
14193 sm: Add OPTION request-origin.
14194 + commit 137644c9cb58deaaba6850f2763d9c5f9241cb0b
14195 * sm/server.c: Include shareddefs.h.
14196 (option_handler): Add option.
14198 gpg,sm: New option --request-origin.
14199 + commit 2cd35df5db3c4dfe37616dcfb1fcc644959449ef
14200 * g10/gpg.c (oRequestOrigin): New const.
14201 (opts): New option --request-origin.
14202 (main): Parse that option.
14203 * g10/options.h (struct opt): Add field request_origin.
14204 * g10/call-agent.c (start_agent): Send option to the agent.
14205 * sm/gpgsm.c (oRequestOrigin): New const.
14206 (opts): New option --request-origin.
14207 (main): Parse that option.
14208 * sm/gpgsm.h (struct opt): Add field request_origin.
14209 * sm/call-agent.c (start_agent): Send option to the agent.
14211 agent: New OPTION pretend-request-origin.
14212 + commit 05c55ee260edc07cd19da56dfd00347bfe3f529c
14213 * common/shareddefs.h (request_origin_t): New.
14214 * common/agent-opt.c (parse_request_origin): New.
14215 (str_request_origin): New.
14216 * agent/command.c (option_handler): Implement new option.
14218 2018-03-23 NIIBE Yutaka <gniibe@fsij.org>
14220 build: Fix the manual source field.
14221 + commit 5400a5bb77bddcb14c94d9405312d6181322b090
14224 2018-03-22 Werner Koch <wk@gnupg.org>
14226 gpg: Implement --dry-run for --passwd.
14227 + commit 165bc38cefbc03515403b60b704cabf4dc0b71f4
14228 * g10/keyedit.c (change_passphrase): Take care of --dry-run.
14230 2018-03-22 NIIBE Yutaka <gniibe@fsij.org>
14232 scd: Support KDF DO setup.
14233 + commit 0152ba7c987443d641ce1091c79f90ef2cc46498
14234 * g10/call-agent.c (learn_status_cb): Parse the capability for KDF.
14235 * g10/card-util.c (gen_kdf_data, kdf_setup): New.
14236 (card_edit): New admin command cmdKDFSETUP to call kdf_setup.
14237 * scd/app-openpgp.c (do_getattr): Emit KDF capability.
14239 2018-03-21 Werner Koch <wk@gnupg.org>
14241 gpg: Fix out-of-bound read in subpacket enumeration.
14242 + commit 983f7b2acbd1e7580652bbeb0c3d64f9dd19d9e4
14243 * g10/parse-packet.c (enum_sig_subpkt): Check buflen before reading
14244 the type octet. Print diagnostic.
14246 Change license of argparse.c back to LGPLv2.1.
14247 + commit fa0ed1c7e2eee7c559026696e6b21acc882a97aa
14248 * common/argparse.c, common/argparse.h: Change license
14250 2018-03-19 NIIBE Yutaka <gniibe@fsij.org>
14252 scd: signal mask should be set just after npth_init.
14253 + commit 11bbd99477ef5ba5b7db0c17607b10af03c68afb
14254 * scd/scdaemon.c (setup_signal_mask): New.
14255 (main): Call setup_signal_mask.
14256 (handle_connections): Remove signal mask setup.
14258 2018-03-16 NIIBE Yutaka <gniibe@fsij.org>
14260 scd: Better user interaction for factory-reset.
14261 + commit 2c85e202bc30231b9555100dec0c490c60d7b88c
14262 * g10/card-util.c (factory_reset): Dummy PIN size is now 32-byte.
14263 Connect the card again at the last step.
14265 2018-03-15 NIIBE Yutaka <gniibe@fsij.org>
14267 scd: Fix suspend/resume handling for CCID driver.
14268 + commit fd23a0524d8060ed12d87c679b7823686614aaee
14269 * scd/ccid-driver.c (intr_cb): Try submitting INTERRUPT urb
14270 to see if it's suspend/resume.
14272 2018-03-13 NIIBE Yutaka <gniibe@fsij.org>
14274 scd: After fatal error, shutdown a reader.
14275 + commit c84bae69e9e02923f7180e09d161cb0b13257436
14276 * scd/apdu.c (pcsc_send_apdu): Notify main loop after
14279 scd: Fix for GNU/Linux suspend/resume.
14280 + commit 71e5282c25ba812c7091e587edd721839bc4c2ac
14281 * configure.ac (require_pipe_to_unblock_pselect): Default is "yes".
14282 * scd/scdaemon.c (scd_kick_the_loop): Minor clean up.
14284 2018-03-12 NIIBE Yutaka <gniibe@fsij.org>
14286 scd: Fix typo in previous commit.
14287 + commit 655f0b9ad0138e6f960bf4befaf0eea569256614
14290 2018-03-09 NIIBE Yutaka <gniibe@fsij.org>
14292 scd: More fix with PC/SC for Windows.
14293 + commit 1e27c0e04cd3280d498dc8b72d2e410f6287f656
14294 * scd/apdu.c (pcsc_get_status): Return status based on CURRENT_STATUS.
14297 2018-03-08 NIIBE Yutaka <gniibe@fsij.org>
14299 scd: Fix status check when using PC/SC.
14300 + commit f8b8b6aac2ca1cb34d7a346aee1d874e7650557b
14301 * scd/apdu.c (struct reader_table_s): Add field of current_state.
14302 (new_reader_slot): Initialize current_state.
14303 (pcsc_get_status): Keep the status in READER_TABLE array.
14304 Return SW_HOST_NO_READER when PCSC_STATE_CHANGED.
14305 * scd/scdaemon.c (handle_connections): Silence a warning.
14307 2018-03-06 Werner Koch <wk@gnupg.org>
14309 agent: Also evict cached items via a timer.
14310 + commit f060cb5c63923d6caec784f65f3bb0aadf52f795
14311 * agent/cache.c (agent_cache_housekeeping): New func.
14312 * agent/gpg-agent.c (handle_tick): Call it.
14314 2018-03-01 Werner Koch <wk@gnupg.org>
14316 gpg: Print the keygrip with --card-status.
14317 + commit fd595c9d3642dba437fbe0f6e25d7aaaae095f94
14318 * g10/call-agent.h (agent_card_info_s): Add fields grp1, grp2 and
14320 * g10/call-agent.c (unhexify_fpr): Allow for space as delimiter.
14321 (learn_status_cb): Parse KEYPARIINFO int the grpX fields.
14322 * g10/card-util.c (print_keygrip): New.
14323 (current_card_status): Print "grp:" records or with --with-keygrip a
14324 human readable keygrip.
14326 2018-02-28 Andre Heinecke <aheinecke@intevation.de>
14328 gpgconf, w32: Allow UNC paths.
14329 + commit e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb
14330 * tools/gpgconf-comp.c (get_config_filename): Allow UNC paths.
14332 2018-02-28 Werner Koch <wk@gnupg.org>
14334 gpg: Avoid writing a zero length last chunk in AEAD mode.
14335 + commit f2c09203b98b83669a460dc8161283de96022536
14336 * g10/cipher-aead.c (write_header): Do not call set_nonce_and_ad.
14337 (write_final_chunk): Do not increase chunkindex.
14338 (do_flush): Call set_nonce_and_ad immediately before the first
14339 encryption of a chunk. Bump up the chunkindex after writing the tag.
14340 (do_free): Do not insert a zero length last chunk.
14341 * g10/decrypt-data.c (aead_underflow): Fix the corresponding bug.
14343 gpg: Merge two functions in cipher-aead.c.
14344 + commit 047506a03d21739b5b922f6b3fd9f059b0b137c5
14345 * g10/cipher-aead.c (set_nonce, set_additional_data): Merge into ...
14346 (set_nonce_and_ad): new function.
14347 (write_auth_tag): Print error message here.
14348 (do_flush): Rename var newchunk to finalize.
14350 2018-02-27 Werner Koch <wk@gnupg.org>
14352 gpg: Simplify the AEAD decryption function.
14353 + commit 618b86325f776f7250ad2bb09680e4bb427d7e50
14354 * g10/decrypt-data.c (aead_set_nonce, aead_set_ad): Merge into ...
14355 (aead_set_nonce_and_ad): new single function. Change callers.
14356 (decrypt_data): Do not set the nonce and ad here.
14357 (aead_underflow): Get rid of the LAST_CHUNK_DONE hack.
14359 gpg: Factor common code out of the AEAD decryption function.
14360 + commit ad989373f1a46139ed0fbc4d4a91069b78617ad9
14361 * g10/decrypt-data.c (aead_underflow): Factor reading and checking
14362 code code out to ...
14363 (fill_buffer, aead_checktag): new functions.
14365 gpg: Rename cipher.c to cipher-cfb.c.
14366 + commit b703ba725dadca8298a0c69365225f9a7ff60ae2
14367 * g10/cipher.c: Rename to ...
14368 * g10/cipher-cfb.c: this.
14370 gpg: Fix corner cases in AEAD encryption.
14371 + commit ebb0fcf6e0bd6997eff4097ddda94955134212af
14372 * g10/cipher-aead.c (write_final_chunk): Do not bump up the chunk
14373 index if the previous chunk was empty.
14374 * g10/decrypt-data.c (aead_underflow): Likewise. Also handle a other
14375 corner cases. Add more debug output.
14377 2018-02-23 Werner Koch <wk@gnupg.org>
14379 gpg: Try to mitigate the problem of wrong CFB symkey passphrases.
14380 + commit cbc7bacf2ff95aebb427bb244c719143a9001f3c
14381 * g10/mainproc.c (symkey_decrypt_seskey): Check for a valid algo.
14383 2018-02-22 Michał Górny <mgorny@gentoo.org>
14385 dirmngr: Handle failures related to missing IPv6 gracefully.
14386 + commit ecfc4db3a2f8bc2652ba4ac4de5ca1cd13bfcbec
14387 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle two more
14390 2018-02-22 Werner Koch <wk@gnupg.org>
14392 build: Update swdb tags and include release info from 2.2.5.
14393 + commit 7853190cfe2953fdac066b4f3256edc206896144
14397 + commit 9581a65ccc10daededc05c55391a04022f794a4a
14400 gpg: Don't let gpg return failure on an invalid packet in a keyblock.
14401 + commit b375d50ee4ce52c9b0f0855ec155be027642fb05
14402 * g10/keydb.c (parse_keyblock_image): Use log_info instead of
14403 log_error for skipped packets.
14404 * g10/keyring.c (keyring_get_keyblock): Ditto.
14406 2018-02-22 NIIBE Yutaka <gniibe@fsij.org>
14408 g10: Select a secret key by checking availability under gpg-agent.
14409 + commit 88e766d3915c2919e9968148ebb30463d4a673e4
14410 * g10/getkey.c (finish_lookup): Add WANT_SECRET argument to confirm
14411 by agent_probe_secret_key.
14412 (get_pubkey_fromfile, lookup): Supply WANT_SECRET argument.
14414 2018-02-20 Werner Koch <wk@gnupg.org>
14416 wks: Add special mode to --install-key.
14417 + commit 685a5e1558b2252ac895637fb857f6f7bb85ea7b
14418 * tools/gpg-wks-client.c (get_key_status_parm_s)
14419 (get_key_status_cb, get_key): Move to ...
14420 * tools/wks-util.c: ...here.
14421 (get_key): Rename to wks_get_key.
14422 * tools/gpg-wks-server.c: Include userids.h.
14423 (command_install_key): Allow use of a fingerprint.
14425 wks: Implement server command --install-key.
14426 + commit ee474856ec16ff11d922d8503fb3ede77129c4aa
14427 * tools/wks-util.c (wks_filter_uid): Add arg 'binary'.
14428 * tools/gpg-wks-server.c (main): Expect 2 args for --install-key.
14429 (write_to_file): New.
14430 (check_and_publish): Factor some code out to ...
14431 (compute_hu_fname): ... new.
14432 (command_install_key): Implement.
14434 wks: Support alternative submission address.
14435 + commit 1877603761911ea5b1c15f4aef11a2cf86a8682c
14436 * tools/gpg-wks.h (policy_flags_s): Add field 'submission_address'.
14437 * tools/wks-util.c (wks_parse_policy): Parse that field.
14438 (wks_free_policy): New.
14439 * tools/gpg-wks-client.c (command_send): Also try to take the
14440 submission-address from the policy file. Free POLICY.
14441 * tools/gpg-wks-server.c (process_new_key): Free POLICYBUF.
14442 (command_list_domains): Free POLICY.
14444 2018-02-15 Werner Koch <wk@gnupg.org>
14446 kbx: Fix detection of corrupted keyblocks on 32 bit systems.
14447 + commit 5e3679ae395e7a7e44f218f07bbe487429f1b279
14448 * kbx/keybox-search.c (blob_cmp_fpr): Avoid overflow in OFF+LEN
14450 (blob_cmp_fpr_part): Ditto.
14451 (blob_cmp_name): Ditto.
14452 (blob_cmp_mail): Ditto.
14453 (blob_x509_has_grip): Ditto.
14454 (keybox_get_keyblock): Check OFF and LEN using a 64 bit var.
14455 (keybox_get_cert): Ditto.
14457 2018-02-15 NIIBE Yutaka <gniibe@fsij.org>
14459 gpg: Fix reversed messages for --only-sign-text-ids.
14460 + commit ca138d5bf36accde2fd755249b470a8dc8743c95
14461 * g10/keyedit.c (keyedit_menu): Fix messages.
14463 2018-02-14 Katsuhiro Ueno <uenobk@gmail.com>
14465 agent: Avoid appending a '\0' byte to the response of READKEY.
14466 + commit df97fe24807826ddc2af0e45e416fb81c5666f88
14467 * agent/command.c (cmd_readkey): Set pkbuflen to the length of the output
14468 without an extra '\0' byte.
14470 2018-02-14 Werner Koch <wk@gnupg.org>
14472 sm: Fix minor memory leak in --export-p12.
14473 + commit 80719612b7e92aff5887f2a68d550a24f350722c
14474 * sm/export.c (gpgsm_p12_export): Free KEYGRIP.
14476 2018-02-14 Katsuhiro Ueno <uenobk@gmail.com>
14478 sm: Fix a wrong key parameter in an exported private key file.
14479 + commit 29aac7798085ee38da5107698618890ae7593c96
14480 * sm/export.c (sexp_to_kparms): Fix the computation of array[6],
14481 which must be 'd mod (q-1)' but was 'p mod (q-1)'.
14483 2018-02-14 Werner Koch <wk@gnupg.org>
14485 common: Use new function to print status strings.
14486 + commit f19ff78f0fbfc2793d8a9ab0173486bf712871ac
14487 * common/asshelp2.c (vprint_assuan_status_strings): New.
14488 (print_assuan_status_strings): New.
14489 * agent/command.c (agent_write_status): Replace by call to new
14491 * dirmngr/server.c (dirmngr_status): Ditto.
14492 * g13/server.c (g13_status): Ditto.
14493 * g13/sh-cmd.c (g13_status): Ditto.
14494 * sm/server.c (gpgsm_status2): Ditto.
14495 * scd/command.c (send_status_info): Bump up N.
14497 2018-02-13 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
14499 scd: Improve KDF-DO support.
14500 + commit 25f3b69129015c54392636818c8846e236f5cb2c
14501 * scd/app-openpgp.c (pin2hash_if_kdf): Check the content of KDF DO.
14503 2018-02-12 NIIBE Yutaka <gniibe@fsij.org>
14505 scd: Fix handling for Data Object with no data.
14506 + commit 0a3bec2c2525935362f87dce93d7df2c8d498498
14507 * scd/app-openpgp.c (get_cached_data): Return NULL for Data Object
14510 2018-02-09 Andre Heinecke <aheinecke@intevation.de>
14512 doc: Add compliance de-vs to gpgsm in vsnfd.prf.
14513 + commit e0658b19d93b38ed9ebd07734c4678acdde1607d
14514 * doc/examples/vsnfd.prf: Set complaince mode for gpgsm.
14516 2018-02-07 NIIBE Yutaka <gniibe@fsij.org>
14518 scd: Use pipe to kick the loop on NetBSD.
14519 + commit 015fe1c47b91da340e9df6bed908e0747ae8c60b
14520 * configure.ac (HAVE_PSELECT_NO_EINTR): New.
14521 * scd/scdaemon.c (scd_kick_the_loop): Write to pipe.
14522 (handle_connections): Use pipe.
14524 2018-02-06 Werner Koch <wk@gnupg.org>
14526 gpg: Fix packet length checking in symkeyenc parser.
14527 + commit 8305739fe857ed3378f885bb43777fd518dd1060
14528 * g10/parse-packet.c (parse_symkeyenc): Move error printing to the
14529 end. Add additional check to cope for the 0je extra bytes needed for
14532 2018-01-29 NIIBE Yutaka <gniibe@fsij.org>
14534 tests: Fix for NetBSD with __func__.
14535 + commit 64aa98c8a05513d9c00f53a2b880d80f9035333e
14536 * tests/asschk.c: Don't define __func__ if available.
14538 2018-01-28 Werner Koch <wk@gnupg.org>
14540 gpg: Rename a misnomed arg in open_outfile.
14541 + commit 303310d05e708dd58dcf7b7d8e8634cd5085bc7e
14542 * g10/openfile.c (open_outfile): Rename inp_fd to out_fd.
14544 2018-01-27 Werner Koch <wk@gnupg.org>
14546 dirmngr: Improve assuan error comment for cmd keyserver.
14547 + commit f8e868d9dfb6fc1390e421e7993a1d076309ed83
14548 * dirmngr/server.c: Add error comment in case --resolve fails in
14551 2018-01-26 NIIBE Yutaka <gniibe@fsij.org>
14553 agent: Fix sending connecting process uid to pinentry.
14554 + commit 660eafa3a9f68e116e9b0597edc317d8ff90f9b2
14555 * agent/command-ssh.c (get_client_info): Use LOCAL_PEERCRED.
14557 agent: Fix last commit.
14558 + commit d7207b39b71d1b07c4cddac602f29ec583f6d1ad
14559 * configure.ac: Check ucred.h as well as sys/ucred.h.
14560 * agent/command-ssh.c: Add inclusion of ucred.h.
14562 agent: More fix for get_client_pid for portability.
14563 + commit 08e686a6a6d5bcb5410228b388745d09686b260c
14564 * configure.ac: Check sys/ucred.h instead of ucred.h.
14565 * agent/command-ssh.c: Include sys/ucred.h.
14567 2018-01-24 Werner Koch <wk@gnupg.org>
14569 gpg: New maintainer option --debug-set-iobuf-size.
14570 + commit db7661b5a297a58c95fa9873d43f31d697b8feb3
14571 * g10/gpg.c (opts): Add new option.
14572 (opt_set_iobuf_size): New var.
14573 (set_debug): Set the option.
14574 * tests/openpgp/armor.scm: Use this option to revert the buffer size
14575 to the one which used to exhibit the tested bugs.
14577 iobuf: Increase the size of the buffer. Add iobuf_set_buffer_size.
14578 + commit bfc11816444512b4ebcc6617d3c3b5988e753de3
14579 * common/iobuf.c (IOBUF_BUFFER_SIZE): Rename to
14580 DEFAULT_IOBUF_BUFFER_SIZE and increase to 64k.
14581 (iobuf_buffer_size): New var. Always use this instead of the macro.
14582 (iobuf_set_buffer_size): New.
14583 (struct file_filter_ctx_t): Add field delayed_rc.
14584 (file_filter) [!W32]: Try to fill the supplied buffer.
14586 gpg: Fix AEAD encryption for chunk sizes other than 64 KiB.
14587 + commit ff1bdc23d9f1693c1add7c1fe8d218b7bf743e31
14588 * g10/cipher-aead.c (do_flush): Init ERR. Fix remaining chunklen
14590 (do_free): Add dummy encryption. Close the cipher handle.
14591 * g10/decrypt-data.c (aead_underflow): Rewrite.
14593 gpg: Rename a variable in decrypt-data for clarity.
14594 + commit 83a15fa88e91d277811b6d030c4aa40c4fb3e6ad
14595 * g10/decrypt-data.c (decode_filter_context_s): Rename field 'defer'
14596 to 'holdback' and replace 'defer_filled' flag into 'holdbacklen'.
14599 2018-01-23 Werner Koch <wk@gnupg.org>
14601 gpg: New option --chunk-size.
14602 + commit f3ef8b0dcaede1c85da0dff8eeceda6a994f0b28
14603 * g10/gpg.c (opts): New option --chunk-size.
14604 (oChunkSize): New const.
14605 (build_list_aead_test_algo, build_list_aead_algo_name): New.
14606 (my_strusage): List AEAD algos.
14607 (main): Implement --chunk-size..
14608 * g10/options.h (struct opt): Add field 'chunk_size'.
14609 (DBG_IPC): Remove duplicated macro.
14610 * g10/main.h (DEFAULT_AEAD_ALGO): Depend on Libgcrypt version.
14611 * g10/misc.c (openpgp_aead_test_algo): Ditto.
14613 * g10/cipher-aead.c: Silence if not in debug mode.
14614 * g10/decrypt-data.c: Ditto.
14616 gpg: Copy the AEAD prefs to the user ID struct.
14617 + commit 112e02ee89b78369c1c50e672873e726cbfeb994
14618 * g10/getkey.c (fixup_uidnode): Copy the AEAD prefs.
14620 gpg: Clear the symmetric passphrase cache for encrypted session keys.
14621 + commit 278d87465685e0aa415e0333de1d27e79d1608f0
14622 * g10/mainproc.c (proc_symkey_enc): Clear the symmetric key cache on
14624 (proc_encrypted): Need to take are of the checksum error.
14626 gpg: Implement AEAD for SKESK packets.
14627 + commit 9aab9167bca38323973e853845ca95ae8e9b6871
14628 * g10/packet.h (PKT_symkey_enc): Add field aead_algo.
14629 * g10/build-packet.c (do_symkey_enc): Support version 5 packets.
14630 * g10/parse-packet.c (parse_symkeyenc): Ditto.
14631 * g10/encrypt.c (encrypt_symmetric): Force using a random session
14633 (encrypt_seskey): Add and support arg aead_algo.
14634 (write_symkey_enc): Ditto.
14635 (encrypt_simple): Adjust accordingly.
14636 (encrypt_filter): Ditto.
14637 * g10/gpgcompose.c (sk_esk): For now call encrypt_seskey without AEAD
14639 * g10/mainproc.c (symkey_decrypt_seskey): Support AEAD. Nver call BUG
14640 but return an error.
14641 (proc_symkey_enc): Call symkey_decrypt_seskey in a bug compatible way.
14643 * g10/import.c (check_prefs): Check AEAD preferences.
14644 * g10/keyedit.c (show_prefs): Print AEAD preferences.
14646 2018-01-22 Werner Koch <wk@gnupg.org>
14648 gpg: Unify AEAD parameter retrieval.
14649 + commit da3015e3c05030fe709c8f922486e73d06d1d16a
14650 * g10/pkclist.c (select_aead_from_pklist): Return the AEAD_algo.
14651 * g10/encrypt.c (use_aead): Return the AEAD algo.
14652 (encrypt_simple): Adjust for this change.
14653 (encrypt_crypt): Ditto.
14654 (encrypt_filter): Ditto.
14655 * g10/sign.c (sign_symencrypt_file): Ditto.
14657 * g10/misc.c (MY_GCRY_CIPHER_MODE_EAX): New.
14658 (openpgp_aead_algo_info): New.
14659 * g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): Remove.
14660 (write_header): Use new fucntion.
14661 * g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): Remove.
14662 (decrypt_data): Use new function. Also allow for chunkbytes other
14665 gpg: Refactor function encrypt_seskey.
14666 + commit 0131d4369a81a51bf7bb328cc81a3bb082ed1a94
14667 * g10/encrypt.c (encrypt_seskey): Allocate the buffer for the
14668 encrypted key and returns that buffer and its length.
14669 (encrypt_simple): Adjust for above change.
14670 (write_symkey_enc): Ditto.
14672 2018-01-22 NIIBE Yutaka <gniibe@fsij.org>
14674 scd: Support KDF Data Object of OpenPGPcard V3.3.
14675 + commit 91303b7df9c3e810cfcd4920f78bac6f8b7df2b2
14676 * scd/app-openpgp.c (do_getattr, do_setattr): Add KDF support.
14677 (pin2hash_if_kdf): New.
14678 (verify_a_chv): Add PINLEN arg. Use pin2hash_if_kdf.
14679 (verify_chv2, do_sign): Follow the change of verify_a_chv.
14680 (verify_chv3, do_change_pin): Use pin2hash_if_kdf.
14682 2018-01-21 Werner Koch <wk@gnupg.org>
14684 gpg: Support EAX if for latest Libgcrypt.
14685 + commit 7356d6ec50ea24bc9449187e1c2b3ecd717b789f
14686 * g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): New.
14687 (write_header): Use it.
14688 * g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): New.
14689 (decrypt_data): Use it.
14690 * g10/misc.c (openpgp_aead_test_algo): Allow EAX.
14692 gpg: First take on PKT_ENCRYPTED_AEAD.
14693 + commit 3f4ca85cb0cf58006417f4f7faafaa9a1f1bdf22
14694 * common/openpgpdefs.h (PKT_ENCRYPTED_AEAD): New const.
14695 * g10/dek.h (DEK): Increase size of use_aead to 4 bits.
14696 * g10/filter.h (cipher_filter_context_t): Add new fields for AEAD.
14697 * g10/packet.h (PKT_encrypted): Add fields aead_algo, cipher_algo, and
14699 * g10/build-packet.c (do_encrypted_aead): New.
14700 (build_packet): Call it.
14701 * g10/parse-packet.c (dump_sig_subpkt): Handle SIGSUBPKT_PREF_AEAD.
14702 (parse_one_sig_subpkt, can_handle_critical): Ditto.
14703 (parse_encrypted): Clear new PKT_ENCRYPTED fields.
14704 (parse_encrypted_aead): New.
14706 * g10/gpg.c (main): Take care of --rfc4880bis option when checking
14708 * g10/cipher-aead.c: Replace the stub by real code.
14709 * g10/decrypt-data.c (decode_filter_ctx_t): Add fields for use with
14711 (aead_set_nonce): New.
14712 (aead_set_ad): New.
14713 (decrypt_data): Support AEAD.
14714 (aead_underflow): New.
14715 (aead_decode_filter): New.
14716 * g10/encrypt.c (use_aead): Make that new fucntion work.
14717 (encrypt_simple): Use default_aead_algo() instead of EAX.
14718 * g10/mainproc.c (proc_encrypted): Support AEAD.
14719 (do_proc_packets): Support PKT_ENCRYPTED_AEAD.
14721 2018-01-18 Werner Koch <wk@gnupg.org>
14723 gpg: Fix the use of future-default with --quick-add-key.
14724 + commit e1e35db510c9222e7a7dc208c2e49df556954170
14725 * g10/keygen.c (parse_key_parameter_part): Add arg clear_cert.
14726 (parse_key_parameter_string): Add arg suggested_use and implement
14727 fallback. Change callers to pass 0 for new arg.
14728 (parse_algo_usage_expire): Pass the parsed USAGESTR to
14729 parse_key_parameter_string so that it can use it in case a subkey is
14732 2018-01-10 Werner Koch <wk@gnupg.org>
14734 gpg: Add stub function for encrypting AEAD.
14735 + commit 81d71818d054a5faa9153fd52a4b79bbbb71e9d5
14736 * g10/cipher.c (cipher_filter): Rename to cipher_filter_cfb.
14737 * g10/cipher-aead.c: New. Right now only with a stub function.
14738 * g10/Makefile.am (gpg_sources): Add file.
14739 * g10/encrypt.c (encrypt_simple): Push either cipher_filter_cfb or
14740 cipher_filter_aead.
14741 (encrypt_crypt): Ditto.
14742 (encrypt_filter): Ditto.
14743 * g10/sign.c (sign_symencrypt_file): Ditto.
14745 gpg: New option --force-aead.
14746 + commit 4e2ba546cdccbbc6d3e29867ee5671fd44d74e67
14747 * g10/dek.h (DEK): Turn fields use_mdc, algo_printed and symmetric
14748 into single bit vars. Make sure they are always set to 1 or 0.
14749 (DEK): New field use_aead.
14750 * g10/options.h (struct opt): New field force_aead.
14751 * g10/pkclist.c (select_aead_from_pklist): New.
14752 * g10/gpg.c (oForceAEAD): New const.
14753 (opts): New options "--force-aead".
14754 (main): Set new option.
14755 * g10/encrypt.c (use_aead): New.
14756 (encrypt_simple): Implement new flags DEK.use_aead.
14757 (encrypt_crypt): Ditto.
14758 (encrypt_filter): Ditto.
14759 * g10/sign.c (sign_symencrypt_file): Ditto.
14761 gpg: Add option and preference framework for AEAD.
14762 + commit 8217cd49364b9f81b390f7ca6a608dd946f93efc
14763 * common/openpgpdefs.h (aead_algo_t): New.
14764 (SIGSUBPKT_PREF_AEAD): New.
14765 * g10/gpg.c (oAEADAlgo, oPersonalAEADPreferences): New.
14766 (opts): New options --aead-algo and --personal-aead-preferences.
14767 (set_compliance_option): Clar aead algo.
14768 (main): Parse and check the new options
14769 * g10/options.h (struct opt): Add fields def_aead_algo and
14770 personal_aead_prefs.
14771 * g10/packet.h (PREFTYPE_AEAD): New enum value.
14772 (PKT_user_id): Add field flags.aead.
14773 (PKT_public_key): Add field flags.aead.
14774 * g10/pkclist.c (select_algo_from_prefs): Support PREFTYPE_AEAD.
14775 * g10/getkey.c (fixup_uidnode): Set AEAD flag.
14776 (merge_selfsigs): Ditto.
14777 * g10/kbnode.c (dump_kbnode): Show aead flag.
14778 * g10/keyedit.c (show_prefs): Ditto.
14779 (show_key_with_all_names_colon): Ditto.
14780 * g10/keygen.c (aead_presf, n_aead_prefs): New vars.
14781 (set_one_pref): Suppport PREFTYPE_AEAD.
14782 (keygen_set_std_prefs): Parse AEAD preferences.
14783 (keygen_get_std_prefs): Ditto.
14784 (add_feature_aead): New.
14785 (keygen_upd_std_prefs): Call that and build AEAD pref packet.
14786 * g10/main.h (DEFAULT_AEAD_ALGO): New const.
14787 * g10/misc.c (openpgp_aead_test_algo): New.
14788 (openpgp_aead_algo_name): New.
14789 (string_to_aead_algo): New.
14790 (default_aead_algo): New.
14792 2018-01-09 Andre Heinecke <aheinecke@intevation.de>
14794 doc: Note pinentry-mode for passphrase opts.
14795 + commit 6fb5713f4a6976900cc70c140e61043b6ef688d1
14796 * doc/gpg.texi (--passphrase, --passphrase-file, --passphrase-fd):
14797 Note that pinentry-mode needs to be loopback.
14799 2018-01-08 Werner Koch <wk@gnupg.org>
14801 gpg: Print all keys with --decrypt --list-only.
14802 + commit 339b3301ee8410fe3bbdebb66a6e83801d79d40d
14803 * g10/mainproc.c (proc_pubkey_enc): Use dedicated error code for
14804 list-only and put the key into PKENC_LIST.
14805 (print_pkenc_list): Take care of the new error code.
14807 2018-01-01 Werner Koch <wk@gnupg.org>
14809 gpg: Allow "futuredefault" as alias for "future-default".
14810 + commit 4d3c500f4793eb263940ff5ef87ec4ead63c9b4b
14811 * g10/keygen.c (parse_key_parameter_string): Allow "futuredefault" and
14812 use case-insensitive matching
14813 (quick_generate_keypair): Ditto.
14814 (parse_algo_usage_expire): Ditto.
14816 2017-12-29 Werner Koch <wk@gnupg.org>
14818 gpg: Allow the use of "cv25519" and "ed25519" in the keygen parms.
14819 + commit 412bb7a801f242d47a82712080cce6ddbb843166
14820 * g10/keygen.c (gen_ecc): Map curve names.
14822 2017-12-27 NIIBE Yutaka <gniibe@fsij.org>
14824 scd: Fix for inactive card at start by internal CCID driver.
14825 + commit 4f88b0f56134af2ce56d434b7acd47fcf9b6f7cf
14826 * scd/ccid-driver.c (do_close_reader): Set NULL on close.
14827 (bulk_in): Move DEBUGOUT and check by EP_INTR.
14828 (ccid_get_atr): Clear powered_off flag after initial status check.
14830 2017-12-22 Werner Koch <wk@gnupg.org>
14832 kbx: Simplify by removing custom memory functions.
14833 + commit f3ba66781a07af2e32f5887e6e15acdd4822a431
14834 * kbx/keybox-util.c (keybox_set_malloc_hooks): Remove.
14835 (_keybox_malloc, _keybox_calloc, keybox_realloc)
14836 (_keybox_free): Remove.
14837 (keybox_file_rename): Remove. Was not used.
14838 * sm/gpgsm.c (main): Remove call to keybox_set_malloc_hooks.
14839 * kbx/kbxutil.c (main): Ditto.
14840 * kbx/keybox-defs.h: Remove all separate includes. Include util.h.
14841 remove convenience macros.
14842 * common/logging.h (return_if_fail): New. Originally from
14843 keybox-defs.h but now using log_debug.
14844 (return_null_if_fail): Ditto.
14845 (return_val_if_fail): Ditto.
14846 (never_reached): Ditto.
14848 2017-12-20 Werner Koch <wk@gnupg.org>
14850 common: Use larger buffer for homedir in case of 64 bit UIDs.
14851 + commit 290348e349e8d56a856f187a08e913f2ed525b3c
14852 * common/homedir.c (_gnupg_socketdir_internal): Enlarge PREFIX by 6
14853 bytes for "/gnupg".
14856 + commit 558b17593ae97b8a07d06bf0d6af1a626b304501
14859 2017-12-19 Petr Pisar <petr.pisar@atlas.cz>
14861 po: Update Czech translation.
14862 + commit 43aaf60449036e870cc25b77fbb7312cf3fb534c
14865 2017-12-19 Ineiev <ineiev@gnu.org>
14867 po: Update Russian translation.
14868 + commit c7b8ec6c8e57797f0b77dbf7fca85fb600323328
14871 2017-12-19 Werner Koch <wk@gnupg.org>
14873 wks: New server options --check, --with-dir, with-file.
14874 + commit 7449063b1af2eef73d621a69cdb2fb713ab1ae6c
14875 * tools/gpg-wks-server.c (aCheck, oWithDir, oWithFile): New const.
14876 (opts): New options --check, --with-dir, and --with-file.
14877 (main): Call command_check_key.
14878 (command_list_domains): Implement option --with-dir.
14879 (fname_from_userid): New.
14880 (command_check_key): New.
14881 (command_remove_key): Implement existsing command.
14882 (command_revoke_key): Call command_remove_key as a simple
14885 2017-12-18 Werner Koch <wk@gnupg.org>
14887 conf: New option --status-fd.
14888 + commit 482e000b8a7e336f342a7fac3b7379257e944b6e
14889 * tools/gpgconf.c (oStatusFD): New const.
14890 (opts): New option --status-fd.
14891 (statusfp): New var.
14892 (set_status_fd): New.
14893 (gpgconf_write_status): New.
14894 (gpgconf_failure): New.
14895 (main): Set status fd and replace exit by gpgconf_failure.
14896 * tools/gpgconf-comp.c: Repalce exit by gpgconf_failure.
14897 (gc_process_gpgconf_conf): Print a few warning status messages.
14899 gpgconf: Show --compliance in expert mode.
14900 + commit d74c40cef0a97cd98aa05f13b1541a94eda502a6
14901 * tools/gpgconf-comp.c (gc_options_gpg): Set compliance to expert.
14902 (gc_options_gpgsm): Ditto.
14904 sm: Allow explicit setting of the default --compliance=gnupg.
14905 + commit 8c878ae4c9dfa9fe26aa15f4f9db3e86833575e9
14906 * sm/gpgsm.c (main): Allow setting of the default compliance.
14907 * tools/gpgconf-comp.c (gc_options_gpgsm): Add "compliance".
14909 2017-12-18 NIIBE Yutaka <gniibe@fsij.org>
14911 po: Update Japanese translation.
14912 + commit e3ddeff66e8c08a37ddf8b6510d69579c245e192
14913 * po/ja.po: Fix message with no "%s".
14915 po: Update Japanese translation.
14916 + commit 77e2fcb4ffbad8577a2cf41f17bf92dec6a93ad8
14917 * po/ja.po: Fix message with no "%s".
14919 2017-12-13 Werner Koch <wk@gnupg.org>
14921 gpg: Print a warning for too much data encrypted with 3DES et al.
14922 + commit 416cf9e9be5d2daf0ef629208031989699b3653f
14923 * g10/filter.h (cipher_filter_context_t): Remove unused filed
14924 'create_mdc'. Turn field 'header' into a bit field. Add new fields
14925 'short_blklen_warn' and 'short_blklen_count'.
14926 * g10/cipher.c (write_header): Print a warning if MDC is not used.
14927 (cipher_filter): Print a warning for long messages encrypted with a
14928 short block length algorithm.
14930 gpg: Simplify cipher:write_header.
14931 + commit b5333e13cbc9db354ed90762190bf70605a02d1f
14932 * g10/cipher.c (write_header): Use write_status_printf.
14934 gpg: Simplify default_recipient().
14935 + commit 9f641430dcdecbd7ee205d407cb19bb4262aa95d
14936 * g10/pkclist.c (default_recipient): Use hexfingerprint.
14938 gpg: Return an error from hexfingerprint on malloc error.
14939 + commit cd26c5482b10bee7658959ae913f2ddb83190587
14940 * g10/keyid.c (hexfingerprint): Return NULL on malloc failure. Chnage
14943 gpg: Remove some xmallocs.
14944 + commit 29119a6492eda5dd7920e45e7f2faa043d436591
14945 * g10/getkey.c (get_pubkeys): Do not use xmalloc.
14947 2017-12-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14949 gpg: default-preference-list: prefer SHA512.
14950 + commit 8ede3ae29a39641a2f98ad9a4cf61ea99085a892
14951 * g10/keygen.c (keygen_set_std_prefs): when producing default internal
14952 personal-digest-preferences, keep the same order. When publishing
14953 external preferences, state preference for SHA512 first.
14955 2017-12-12 Werner Koch <wk@gnupg.org>
14957 Change backlog from 5 to 64 and provide option --listen-backlog.
14958 + commit c81a447190d2763ac4c64b2e74e22e824da8aba3
14959 * agent/gpg-agent.c (oListenBacklog): New const.
14960 (opts): New option --listen-backlog.
14961 (listen_backlog): New var.
14962 (main): Parse new options.
14963 (create_server_socket): Use var instead of 5.
14964 * dirmngr/dirmngr.c: Likewise.
14965 * scd/scdaemon.c: Likewise.
14967 build: New configure option --enable-run-gnupg-user-socket.
14968 + commit 17efcd2a2acdc3b7f00711272aa51e5be2476921
14969 * configure.ac: (USE_RUN_GNUPG_USER_SOCKET): New ac_define.
14970 * common/homedir.c (_gnupg_socketdir_internal): Add extra directories.
14972 2017-12-11 Werner Koch <wk@gnupg.org>
14974 dirmngr: Check for WKD support at session end.
14975 + commit 20b52be9ca29b0bc843fc68a279cb72728ede72f
14976 * dirmngr/domaininfo.c (insert_or_update): Copy the name.
14977 * dirmngr/misc.c (copy_stream): Allow arg OUT to be NULL.
14978 * dirmngr/server.c (set_error): Protect CTX.
14979 (dirmngr_status): Protect against missing ASSUAN_CTX.
14980 (dirmngr_status_help): Ditto.
14981 (dirmngr_status_printf): Ditto.
14982 (cmd_wkd_get): Factor code out to ...
14983 (proc_wkd_get): new func. Support silent operation with no CTX.
14984 (task_check_wkd_support): New.
14986 dirmngr: Add a background task framework.
14987 + commit f2997adee0455c8c0fa391a853ec1b0c9fc43342
14988 * dirmngr/workqueue.c: New.
14989 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new file.
14990 * dirmngr/server.c (server_local_s): New field session_id.
14991 (cmd_wkd_get): Add a task.
14992 (task_check_wkd_support): New stub function.
14993 (cmd_getinfo): New sub-commands "session_id" and "workqueue".
14994 (start_command_handler): Add arg session_id and store it in
14996 (dirmngr_status_helpf): New.
14997 * dirmngr/dirmngr.h (wqtask_t): New type.
14998 * dirmngr/dirmngr.c (main): Pass 0 as session_id to
14999 start_command_handler.
15000 (start_connection_thread): Introduce a session_id and pass it to
15001 start_command_handler. Run post session tasks.
15002 (housekeeping_thread): Run global workqueue tasks.
15004 dirmngr: Limit the number of cached domains for WKD.
15005 + commit 7a663c296e687f12ccd9a21d414de780feb4dfcf
15006 * dirmngr/domaininfo.c (MAX_DOMAINBUCKET_LEN): New.
15007 (insert_or_update): Limit the length of a bucket chain.
15008 (domaininfo_print_stats): Print just one summary line.
15010 (cherry picked from commit 26f08343fbccdbaa177c3507a3c5e24a5cf94a2d)
15012 dirmngr: Keep track of domains used for WKD queries.
15013 + commit 6c1dcd79cf0977844179d9a7b189c10af5e42a7e
15014 * dirmngr/domaininfo.c: New file.
15015 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
15016 * dirmngr/server.c (cmd_wkd_get): Check whether the domain is already
15017 known and tell domaininfo about the results.
15019 Adjust for changed macro names in libgpg-error master.
15020 + commit 34defc9bce91d66fa8c9481ebe6e78b612e570dc
15021 * common/logging.h (GPGRT_LOGLVL_): New replacement macros for older
15022 libgpg-error versions.
15024 2017-12-08 NIIBE Yutaka <gniibe@fsij.org>
15026 agent: Fix description of shadow format.
15027 + commit 5c121d44443b0a96ec6ea82b90717e3dbafd2cc5
15028 * agent/keyformat.txt, agent/protect.c, agent/t-protect.c: Fix.
15030 2017-12-07 Werner Koch <wk@gnupg.org>
15032 build: Do not define logging.h constants for libgpg-error dev versions.
15033 + commit 2fedf8583bcc493f587c90bc9632d25dfd10bd10
15034 * common/logging.h [GPGRT_LOG_WITH_PREFIX]: Do not define the log
15037 2017-12-07 NIIBE Yutaka <gniibe@fsij.org>
15039 agent: Change intialization of assuan socket system hooks.
15040 + commit b9677ba16f6b386896781a751e4b2fc839e3ec81
15041 * agent/gpg-agent.c (initialize_modules): Add hook again.
15042 (main): Remove setting of the system houk but add scoket system hook
15043 setting after assuan initialization.
15045 2017-12-06 NIIBE Yutaka <gniibe@fsij.org>
15047 agent: Set assuan system hooks before call of assuan_sock_init.
15048 + commit 1524ba9656f0205d8c6ef504f773b832a7a12ab9
15049 * agent/gpg-agent.c (initialize_modules): Move assuan_set_system_hooks.
15050 (main): ... here, just before assuan_sock_init.
15052 2017-12-04 NIIBE Yutaka <gniibe@fsij.org>
15053 Damien Goutte-Gattat <dgouttegattat@incenp.org>
15055 g10: Fix regexp sanitization.
15056 + commit 0d0b9eb0d4f99e8d293a4ce4b90921a879905115
15057 * g10/trustdb.c (sanitize_regexp): Only escape operators.
15059 2017-11-27 Werner Koch <wk@gnupg.org>
15061 Use the gpgrt log functions if possible.
15062 + commit b56dfdfc1865ceb7c3c025d79996e049faee7fdf
15063 * common/logging.c: Do not build any code if we can use the gpgrt_log
15065 (log_logv_with_prefix): Rename to log_logv_prefix and change order of
15066 args so that this function matches its printf like counterpart
15067 gpgrt_logv_prefix. Change all callers.
15068 (log_debug_with_string): Rename to log_debug_string. Change all
15070 (log_printhex): Move first arg to end so that this function matches
15071 its printf like counterpart gpgrt_log_printhex. Change all callers.
15072 * common/logging.h: Divert to gpgrt/libgpg-error if we can use the
15073 gpgrt_log functions.
15074 (bug_at): Add inline versions if we can use the gpgrt_log functions.
15075 * configure.ac (GPGRT_ENABLE_LOG_MACROS): Add to AH_BOTTOM.
15076 (mycflags): Add -Wno-format-zero-length.
15078 2017-11-26 Werner Koch <wk@gnupg.org>
15080 gpg: Do not read from uninitialized memory with --list-packets.
15081 + commit 4cf3cc6e3d48c8400466ca29c3f1c22ed2da6c2c
15082 * g10/parse-packet.c (parse_plaintext): Fill up the allocated NAME.
15084 2017-11-24 Werner Koch <wk@gnupg.org>
15086 agent: New option --auto-expand-secmem.
15087 + commit 18af15249de5f826c3fa8d1d40e876734adcd0cf
15088 * agent/gpg-agent.c (oAutoExpandSecmem): New enum value.
15089 (opts): New option --auto-expand-secmem.
15090 (main): Implement that option.
15092 2017-11-22 Werner Koch <wk@gnupg.org>
15094 gpg: Fix memory leaking for long inputs via --command-fd.
15095 + commit ea28ea18f3ee6c9f5e69986f39848398b58e242e
15096 * g10/cpr.c (do_get_from_fd): Free the old buffer.
15098 2017-11-21 NIIBE Yutaka <gniibe@fsij.org>
15100 scd: Enable card removal check after select_application.
15101 + commit 0bb7fd0cab2d53cd0d44b21301b23edfe817e66b
15102 * scd/apdu.c (open_ccid_reader): Fix error handling of ccid_get_atr.
15103 * scd/app.c (select_application): Always kick the loop if new APP.
15104 * scd/ccid-driver.c (ccid_open_usb_reader): Don't setup at open.
15105 (ccid_slot_status): Setup interrupt transfer when !ON_WIRE.
15107 2017-11-20 Werner Koch <wk@gnupg.org>
15110 + commit 97f4feaaca8da4dcf1ca09a2016693155016f06b
15113 build: Use -Werror only for the check.
15114 + commit 04d9833e71cc9d0c087faec091c29b0b6cf69488
15115 * configure.ac: Do not add -Werror to mycflags.
15117 gpg-agent: Avoid getting stuck in shutdown pending state.
15118 + commit 7ffedfab8909a45a4b0347a5f7b52222e8439f1d
15119 * agent/gpg-agent.c (handle_connections): Always check inotify fds.
15121 2017-11-20 NIIBE Yutaka <gniibe@fsij.org>
15123 agent: Use clock or clock_gettime for calibration.
15124 + commit 760aa8aadafb747f33a1461ab0c2570b5ae43716
15125 * agent/protect.c (calibrate_get_time): Use clock or clock_gettime.
15127 build: Check -Wlogical-op flag availability with -Werror.
15128 + commit 3ecd1a41be7c880976987d13e88342c98f37e064
15129 * configure.ac: Use -Werror.
15131 build: BSD make support for yat2m.
15132 + commit e1984969cac06a88c7e6f5e49e5c3104d10a847d
15133 * configure.ac (YAT2M): Only define when found.
15134 * doc/Makefile.am: Portability fix.
15136 2017-11-17 Werner Koch <wk@gnupg.org>
15138 dirmngr: Fix double free of a hash context in the error case.
15139 + commit 2aa106d6a4e2b09c257e8d769895d93ebb7f7edf
15140 * dirmngr/crlcache.c: Clearly document that this fucntions takes
15142 (abort_sig_check): Allow NULL for MD.
15143 (crl_parse_insert): Immediately set MD to NULL. Remove check for md
15144 before a calling abort_sig_check.
15146 2017-11-15 Werner Koch <wk@gnupg.org>
15148 assuan: Fix exponential decay for first second.
15149 + commit 0cfdd3b57d592fb6baa7dafe8fde124e8a6c7798
15150 * common/asshelp.c (wait_for_sock): Round SECSLEFT.
15151 * dirmngr/dirmngr.c (main): Take care of --debug-wait also in dameon
15153 * common/sysutils.c (gnupg_usleep) [HAVE_NANOSLEEP]: Fix nanosleep use.
15155 common: Change log_clock to printf style.
15156 + commit 8704304699bcbc1c10d0315ec7d25a1ae05c9905
15157 * common/logging.c (log_clock): Use do_logv.
15159 common: Tweak new code to keep already translated strings.
15160 + commit 4a7fe9a596b639a0edb08502f20cb293129e5a33
15161 * common/asshelp.c (wait_for_sock): Replace NAME by WHICH and adjust
15162 caller. Revert to use the former strings.
15164 2017-11-15 Andre Heinecke <aheinecke@intevation.de>
15166 w32: Fix default registry path.
15167 + commit 4f5afaf1fdb5cb13859aca390ccb5a1ba1dba00c
15168 * configure.ac (GNUPG_REGISTRY_DIR): Remove leading backslash.
15170 2017-11-15 Werner Koch <wk@gnupg.org>
15172 gpg: Repurpose the ISO defined DO "sex" to "salutation".
15173 + commit 166f3f9ec40888e10cb0c51017944bfc57503fc1
15174 * g10/card-util.c (current_card_status): String changes.
15175 (change_sex): Description change.
15176 (cmds): Add "salutation"; keep "sex" as an alias.
15178 2017-11-15 Andre Heinecke <aheinecke@intevation.de>
15180 gpgtar: Prefer --set-filename over implicit name.
15181 + commit 878b8bfdcc3a8becfc46b9287a2d14cd3c875f28
15182 * tools/gpgtar-extract.c: Prefer opt.filename over filename
15183 for the directory prefix.
15185 2017-11-15 Werner Koch <wk@gnupg.org>
15187 gpg: Print AKL info only in verbose mode.
15188 + commit b062ea5bc25157c942047b3fe7f5182a06106340
15189 * g10/getkey.c (get_pubkey_byname): Print info only in verbose mode.
15191 2017-11-14 Werner Koch <wk@gnupg.org>
15193 dirmngr: Check for WKD support at session end.
15194 + commit d4e2302d8f4a1ff52d56da4f8e3a5d1c6303822d
15195 * dirmngr/domaininfo.c (insert_or_update): Copy the name.
15196 * dirmngr/misc.c (copy_stream): Allow arg OUT to be NULL.
15197 * dirmngr/server.c (set_error): Protect CTX.
15198 (dirmngr_status): Protect against missing ASSUAN_CTX.
15199 (dirmngr_status_help): Ditto.
15200 (dirmngr_status_printf): Ditto.
15201 (cmd_wkd_get): Factor code out to ...
15202 (proc_wkd_get): new func. Support silent operation with no CTX.
15203 (task_check_wkd_support): New.
15205 dirmngr: Add a background task framework.
15206 + commit 96a4fbecd1acf946dcde20bef4752c539dae196b
15207 * dirmngr/workqueue.c: New.
15208 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new file.
15209 * dirmngr/server.c (server_local_s): New field session_id.
15210 (cmd_wkd_get): Add a task.
15211 (task_check_wkd_support): New stub function.
15212 (cmd_getinfo): New sub-commands "session_id" and "workqueue".
15213 (start_command_handler): Add arg session_id and store it in
15215 (dirmngr_status_helpf): New.
15216 * dirmngr/dirmngr.h (wqtask_t): New type.
15217 * dirmngr/dirmngr.c (main): Pass 0 as session_id to
15218 start_command_handler.
15219 (start_connection_thread): Introduce a session_id and pass it to
15220 start_command_handler. Run post session tasks.
15221 (housekeeping_thread): Run global workqueue tasks.
15223 2017-11-14 Andre Heinecke <aheinecke@intevation.de>
15225 sm, w32: Fix initial keybox creation.
15226 + commit 5ecef193bc2144e6d51a6bd5727bfd08a0d28b66
15227 * sm/keydb.c (maybe_create_keybox): Open new keybox in bin mode.
15229 2017-11-14 Werner Koch <wk@gnupg.org>
15231 dirmngr: Limit the number of cached domains for WKD.
15232 + commit 26f08343fbccdbaa177c3507a3c5e24a5cf94a2d
15233 * dirmngr/domaininfo.c (MAX_DOMAINBUCKET_LEN): New.
15234 (insert_or_update): Limit the length of a bucket chain.
15235 (domaininfo_print_stats): Print just one summary line.
15237 2017-11-13 Werner Koch <wk@gnupg.org>
15239 dirmngr: Keep track of domains used for WKD queries.
15240 + commit 65038e6852185c20413d8f6602218ee636413b77
15241 * dirmngr/domaininfo.c: New file.
15242 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
15243 * dirmngr/server.c (cmd_wkd_get): Check whether the domain is already
15244 known and tell domaininfo about the results.
15246 gpg-agent: Avoid getting stuck in shutdown pending state.
15247 + commit 5d83eb9226c0ce608ec284d8c9bc22ce84a00c25
15248 * agent/gpg-agent.c (handle_connections): Always check inotify fds.
15250 2017-11-13 NIIBE Yutaka <gniibe@fsij.org>
15252 tests: Handle the case with DISABLE_REGEX.
15253 + commit 80b904543486a2f12087bc34a6049ede4eb75940
15254 * tests/openpgp/Makefile.am [DISABLE_REGEX] (EXTRA_DIST, XTESTS):
15256 * tests/openpgp/all-tests.scm (all-tests): Input file is Makefile.
15258 2017-11-13 Damien Goutte-Gattat <dgouttegattat@incenp.org>
15260 tests: Run the trust-pgp-4 test again.
15261 + commit a1fe3708d0894c138f6dd75d2a6bd22c64359172
15262 * tests/openpgp/Makefile.am (XTESTS): Add trust-pgp-4.scm.
15263 (EXTRA_DIST): Remove the test file from EXTRA_DIST.
15265 2017-11-09 NIIBE Yutaka <gniibe@fsij.org>
15266 Damien Goutte-Gattat <dgouttegattat@incenp.org>
15268 g10: Fix regexp sanitization.
15269 + commit ccf3ba92087e79abdeaa0208795829b431c6f201
15270 * g10/trustdb.c (sanitize_regexp): Only escape operators.
15272 2017-11-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15274 assuan: Use exponential decay for first 1s of spinlock.
15275 + commit 149041b0b917f4298239fe18b5ebd5ead71584a6
15276 * common/asshelp.c (wait_for_sock): instead of checking the socket
15277 every second, we check 10 times in the first second (with exponential
15280 assuan: Reorganize waiting for socket.
15281 + commit 0471ff9d3bf8d6b9a359f3c426d70d0935066907
15282 * common/asshelp.c (wait_for_sock): New function, collecting
15284 (start_new_gpg_agent) here and...
15285 (start_new_dirmngr) here.
15287 2017-11-07 Werner Koch <wk@gnupg.org>
15290 + commit 5bd515005032f9340bd73e4346bbd0aef8518074
15293 dirmngr: Reduce default LDAP timeout to 15 seconds.
15294 + commit 30f21f8b0fa6844a9bba3f24dc41b3ac32170109
15295 * dirmngr/dirmngr.c (DEFAULT_LDAP_TIMEOUT): Change to 15.
15296 * dirmngr/dirmngr_ldap.c (DEFAULT_LDAP_TIMEOUT): Ditto.
15298 (cherry picked from commit ab7ac827041b5cd97bbca7a75b0930072dd6611f)
15300 dirmngr: Reduce default LDAP timeout to 15 seconds.
15301 + commit ab7ac827041b5cd97bbca7a75b0930072dd6611f
15302 * dirmngr/dirmngr.c (DEFAULT_LDAP_TIMEOUT): Change to 15.
15303 * dirmngr/dirmngr_ldap.c (DEFAULT_LDAP_TIMEOUT): Ditto.
15305 speedo: Include software versions in the W32 README.
15306 + commit 23bfac6d1a8bd2d0af5a6fac3ba3a6e986d6c9e8
15307 (cherry picked from commit f9f72ffbfa9fd7d1a7a1823697d116d76155b407)
15309 2017-11-07 Ineiev <ineiev@gnu.org>
15311 po: Update Russian translation.
15312 + commit 1941287c9d2c9e666bad1bd330db169f0e3d6b6c
15315 2017-11-07 Werner Koch <wk@gnupg.org>
15317 speedo: Include software versions in the W32 README.
15318 + commit f9f72ffbfa9fd7d1a7a1823697d116d76155b407
15321 2017-11-07 NIIBE Yutaka <gniibe@fsij.org>
15323 po: Update Japanese translation.
15324 + commit 96d441b315ec5c9f329596cfda28ac13a8bfa21a
15327 agent: Use clock or clock_gettime for calibration.
15328 + commit 380bce13d94ff03c96e39ac1d834f382c5c730a1
15329 * agent/protect.c (calibrate_get_time): Use clock or clock_gettime.
15331 2017-11-06 Werner Koch <wk@gnupg.org>
15333 tests: Minor imporvement in agent invocation.
15334 + commit 42308224d1fce64c666aed2be5eb4ef42e8aced4
15335 * tests/openpgp/defs.scm (create-gpghome): Add s2k-count.
15337 agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".
15338 + commit 3607ab2cf382296cb398a92d5ec792239960bf7b
15339 * agent/command.c (cmd_getinfo): New sub-commands.
15340 * agent/protect.c (get_standard_s2k_count): Factor some code out to ...
15341 (get_calibrated_s2k_count): new.
15342 (get_standard_s2k_time): New.
15344 (cherry picked from commit 52d41c8b0f4af6278d18d8935399ddad16a26856)
15346 agent: New option --s2k-count.
15347 + commit 78a6d0ce88ae14d8324fbab3aee3286b17e49259
15348 * agent/agent.h (opt): New field 's2k_count'.
15349 * agent/gpg-agent.c (oS2KCount): New enum value.
15350 (opts): New option --s2k-count.
15351 (parse_rereadable_options): Set opt.s2k_count.
15353 agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".
15354 + commit 52d41c8b0f4af6278d18d8935399ddad16a26856
15355 * agent/command.c (cmd_getinfo): New sub-commands.
15356 * agent/protect.c (get_standard_s2k_count): Factor some code out to ...
15357 (get_calibrated_s2k_count): new.
15358 (get_standard_s2k_time): New.
15360 agent: New option --s2k-count.
15361 + commit f7212f1d11aad5d910d2c77b2e5c6ab31a0e786e
15362 * agent/agent.h (opt): New field 's2k_count'.
15363 * agent/gpg-agent.c (oS2KCount): New enum value.
15364 (opts): New option --s2k-count.
15365 (parse_rereadable_options): Set opt.s2k_count.
15367 2017-11-06 NIIBE Yutaka <gniibe@fsij.org>
15369 g10: Unattended key generation "Key-Grip" and "Subkey-Grip".
15370 + commit 680161647ad56d1ca92988f80bcc4d6fcb20b1eb
15371 * g10/keygen.c (pSUBKEYGRIP): New.
15372 (read_parameter_file): Add "Key-Grip" and "Subkey-Grip".
15373 (do_generate_keypair): Support pSUBKEYGRIP.
15375 g10: Simplify "factory-reset" procedure.
15376 + commit f183b9768b42a6792c55a6129488bd8fbf5e8e6d
15377 * g10/card-util.c (factory_reset): Simplify.
15379 2017-11-02 Ineiev <ineiev@gnu.org>
15381 po: Update Russian translation.
15382 + commit 6070f5a61d4d17ff437c69e1b708d49d107c22dc
15385 2017-11-02 Werner Koch <wk@gnupg.org>
15387 gpg: Introduce magic value 25519 to switch a card to ECC.
15388 + commit acb300543422c660c87ac2f0211a42f792a65cc4
15389 * g10/card-util.c (ask_card_keyattr): Handle special value 25519.
15390 (do_change_keyattr): Allow changing to cv25519/ed25519.
15391 (generate_card_keys): Ditto.
15392 (card_generate_subkey): Ditto.
15394 gpg: Rename two card related functions in card-util.
15395 + commit de3a740c2e1156e58d2f94faa85c051740c8988e
15396 * g10/card-util.c (ask_card_rsa_keysize): Rename to ask_card_keyattr.
15397 (do_change_rsa_keysize): Rename to do_change_keyattr.
15399 gpg: Unifiy the message for re-configuring cards.
15400 + commit 922bae8082f2f8d696ea0e7d7e9e4d986789bdfc
15401 * g10/card-util.c (ask_card_keyattr): Print "rsaNNNN".
15403 gpg: Introduce magic value 25519 to switch a card to ECC.
15404 + commit ea09b6cded9d31a8ebd91878553c3eaa2b76e817
15405 * g10/card-util.c (show_keysize_warning): Slightly change the text.
15406 (ask_card_keyattr): Handle special value 25519.
15407 (do_change_keyattr): Allow changing to cv25519/ed25519.
15408 (generate_card_keys): Ditto.
15409 (card_generate_subkey): Ditto.
15411 2017-11-02 NIIBE Yutaka <gniibe@fsij.org>
15413 agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
15414 + commit 3da47d19df89d302c0ea25921f4bd8ce55705afe
15415 * agent/learncard.c (agent_handle_learn): Find SERIALNO.
15417 agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
15418 + commit 5e96fe72e477d09e35ccee48af0fd9ab2b3ae409
15419 * agent/learncard.c (agent_handle_learn): Find SERIALNO.
15421 2017-11-01 NIIBE Yutaka <gniibe@fsij.org>
15423 common: Accept the Z-suffix for yymmddThhmmssZ format.
15424 + commit 0e5bd473a07f188615c4fce26b73bb452d689d68
15425 * common/gettime.c (isotime_p): Accept the Z suffix.
15427 2017-11-01 Werner Koch <wk@gnupg.org>
15429 gpg: Rename two card related functions in card-util.
15430 + commit f795f4529d8ab5a05db1cc1960abd34390bfae1b
15431 * g10/card-util.c (ask_card_rsa_keysize): Rename to ask_card_keyattr.
15432 (do_change_rsa_keysize): Rename to do_change_keyattr.
15434 2017-11-01 NIIBE Yutaka <gniibe@fsij.org>
15436 g10: Unattended key generation "Key-Grip" and "Subkey-Grip".
15437 + commit 6c63a04569c07c9c2817c7c530a92ccfa58155cc
15438 * g10/keygen.c (pSUBKEYGRIP): New.
15439 (read_parameter_file): Add "Key-Grip" and "Subkey-Grip".
15440 (do_generate_keypair): Support pSUBKEYGRIP.
15442 2017-10-30 NIIBE Yutaka <gniibe@fsij.org>
15444 g10: Simplify "factory-reset" procedure.
15445 + commit d63b7966cdd72548c60466c620de5cd6104a779e
15446 * g10/card-util.c (factory_reset): Simplify.
15448 2017-10-27 NIIBE Yutaka <gniibe@fsij.org>
15450 agent: Clean up pinentry access locking.
15451 + commit 3924e1442c6625a2b57573a1a634a5ec56b09a29
15452 * agent/agent.h (struct server_control_s): Rename PINENTRY_ACTIVE.
15453 * agent/call-pinentry.c (entry_owner): Remove.
15454 (agent_reset_query): Use thread private object of PINENTRY_ACTIVE.
15455 (unlock_pinentry): Add CTRL to arguments to access thread private.
15456 Check and decrement PINENTRY_ACTIVE for recursive use.
15457 (start_pinentry): Check and increment PINENTRY_ACTIVE for recursion.
15458 (agent_askpin): Follow the change of unlock_pinentry API.
15459 (agent_get_passphrase, agent_get_confirmation): Likewise.
15460 (agent_show_message, agent_popup_message_start): Likewise.
15461 (agent_popup_message_stop, agent_clear_passphrase): Likewise.
15463 agent: Allow recursive use of pinentry.
15464 + commit 4738256f2e0d22302377c9ec7b2ae3999338e6c6
15465 * agent/agent.h (struct server_control_s): Add pinentry_level.
15466 * agent/call-pinentry.c (agent_popup_message_stop): Not clear
15468 (unlock_pinentry): Handle recursion. Clear ENTRY_CTX here.
15469 (start_pinentry): Allow recursive use.
15471 agent: Clean up pinentry access locking.
15472 + commit fb7828676cc2c01047498898378711e049f73fee
15473 * agent/agent.h (struct server_control_s): Rename PINENTRY_ACTIVE.
15474 * agent/call-pinentry.c (entry_owner): Remove.
15475 (agent_reset_query): Use thread private object of PINENTRY_ACTIVE.
15476 (unlock_pinentry): Add CTRL to arguments to access thread private.
15477 Check and decrement PINENTRY_ACTIVE for recursive use.
15478 (start_pinentry): Check and increment PINENTRY_ACTIVE for recursion.
15479 (agent_askpin): Follow the change of unlock_pinentry API.
15480 (agent_get_passphrase, agent_get_confirmation): Likewise.
15481 (agent_show_message, agent_popup_message_start): Likewise.
15482 (agent_popup_message_stop, agent_clear_passphrase): Likewise.
15484 2017-10-26 NIIBE Yutaka <gniibe@fsij.org>
15486 agent: Allow recursive use of pinentry.
15487 + commit 3b66a256e3760e88066ca11b7b49d924e42aa46b
15488 * agent/agent.h (struct server_control_s): Add pinentry_level.
15489 * agent/call-pinentry.c (agent_popup_message_stop): Not clear
15491 (unlock_pinentry): Handle recursion. Clear ENTRY_CTX here.
15492 (start_pinentry): Allow recursive use.
15494 agent, tests: Support --disable-scdaemon build case.
15495 + commit 05cb87276c21c3a47226c75026fa46a955553dd9
15496 * agent/command.c (cmd_scd): Support !BUILD_WITH_SCDAEMON.
15497 * tests/openpgp/defs.scm (create-gpghome): Likewise.
15498 * tests/gpgsm/gpgsm-defs.scm (create-gpgsmhome): Likewise.
15500 Fix comment of configure.
15501 + commit b13972dfbf7224478652038725ab0d2cb41b7303
15502 * configure.ac (BUILD_WITH_DIRMNGR): Comment fix.
15504 agent, tests: Support --disable-scdaemon build case.
15505 + commit bf26c08b95389718ba07f12789d372c6f438134f
15506 * agent/command.c (cmd_scd): Support !BUILD_WITH_SCDAEMON.
15507 * tests/openpgp/defs.scm (create-gpghome): Likewise.
15508 * tests/gpgsm/gpgsm-defs.scm (create-gpgsmhome): Likewise.
15510 Fix comment of configure.
15511 + commit 3549dce4f5a726f5350ac2f20d83ba9f84cc23b4
15512 * configure.ac (BUILD_WITH_DIRMNGR): Comment fix.
15514 2017-10-24 Werner Koch <wk@gnupg.org>
15516 gpg: Avoid superfluous sig check info during import.
15517 + commit 84af859e391a757877c9a1d78e35face983e6d23
15518 * g10/key-check.c (print_info): New.
15519 (key_check_all_keysigs): Print sig checking results only in debug
15520 mode. Prettify the stats info and suppress them in quiet mode.
15522 build: New configure option --enable-werror.
15523 + commit 812fe29bff42cf7dbd07e0becc55b2ada340dd97
15524 * configure.ac: Implement that option.
15526 build: Do not mess with CFLAGS in configure.
15527 + commit e417aaf69817fcb4a73c38077853dc940a2deabc
15528 * configure.ac: Do not mess with the user provided CFLAGS.
15530 2017-10-24 Rainer Perske <rainer.perske@uni-muenster.de>
15532 sm: Do not expect X.509 keyids to be unique.
15533 + commit 1067403c8a7fb51decf30059e46901b5ee9f5b37
15534 * sm/certlist.c (gpgsm_find_cert): Add arg allow_ambiguous and use it.
15535 * sm/call-dirmngr.c (inq_certificate): Pass true to ALLOW_AMBIGUOUS
15536 (run_command_inq_cb): Ditto.
15537 * sm/gpgsm.c (main): Pass false.
15538 * sm/server.c (cmd_passwd): Pass false.
15540 2017-10-24 Werner Koch <wk@gnupg.org>
15542 gpgconf: Ignore non-installed components with --apply-profile.
15543 + commit 6e808ae4700dc5e95bf4cc2d5c063df582c234d0
15544 * tools/gpgconf-comp.c (retrieve_options_from_program): Add arg
15546 (gc_component_retrieve_options): Use this if we want to process all
15549 gpg: Improve the "secret key available" notice in keyedit.c.
15550 + commit 560d85ecff4246133d185dc29395f07c918b5556
15551 * g10/keyedit.c (KEYEDIT_NEED_SUBSK): New.
15552 (cmds): Add this flag to keytocard, bkuptocard, expire, and passwd.
15553 (keyedit_menu): Check whether only subkeys are available and take care
15554 of that in the command check and in the HELP listing. Also print a
15555 different notice if only subkeys are available.
15557 gpg: Remove unused flags from keyedit.c.
15558 + commit 016538d82867c40a21bc7cbf44ec386f4699077f
15559 * g10/keyedit.c (KEYEDIT_NOT_SK, KEYEDIT_ONLY_SK): Remove.
15560 (cmds): Remove them.
15562 2017-10-19 Werner Koch <wk@gnupg.org>
15564 gpg: Fix creating on-disk subkey with on-card primary key.
15565 + commit 44fb3fbc85b32552c91f32f099b6b246c12ce0cc
15566 * g10/keygen.c (generate_subkeypair): Ignore error code issued for
15567 trying to verify a card based key.
15569 gpg: Print sec/sbb with --import-option import-show or show-only.
15570 + commit 2c7dccca9b617780a3ea760adf460bb3b77f90f3
15571 * g10/import.c (import_one): Pass FROM_SK to list_keyblock_direct.
15573 gpg: Make --dry-run and show-only work for secret keys.
15574 + commit 68c8619114fd5f24cb6bfb9e0f25c428a8805323
15575 * g10/import.c (import_secret_one): Check for dry-run before
15578 2017-10-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
15580 dirmngr: Do not follow https-to-http redirects.
15581 + commit 1ba308aa0356a57c21c4c8c2dac75b4d62b8aac3
15582 * dirmngr/ks-engine-http.c (ks_http_fetch): Forbid redirects from
15583 a https URI to a http URI.
15585 2017-10-19 NIIBE Yutaka <gniibe@fsij.org>
15587 g10: Fix find_and_check_key for multiple keyrings.
15588 + commit d07de3862710d88bc80d6f6c5ca8da5cf38ff0eb
15589 * g10/pkclist.c (find_and_check_key): Call get_validity on a specific
15592 2017-10-19 Werner Koch <wk@gnupg.org>
15594 gpg: Keep a lock during the read-update/insert cycle in import.
15595 + commit 7c73db3d31c6457dfbdc82a8dc89951c023f0603
15596 * g10/keydb.c (keydb_handle): New field 'keep_lock'.
15597 (keydb_release): Clear that flag.
15598 (keydb_lock): New function.
15599 (unlock_all): Skip if KEEP_LOCK is set.
15600 * g10/getkey.c (get_keyblock_byfprint_fast): Call keep_lock if
15603 gpg: Improve keydb handling in the main import function.
15604 + commit 8448347b5bdee56e6f9938a93ea92fe4d3c8800c
15605 * g10/getkey.c (get_pubkey_byfprint_fast): Factor most code out to ...
15606 (get_keyblock_byfprint_fast): .. new function.
15607 * g10/import.c (revocation_present): s/int rc/gpg_error_t err/.
15608 (import_one): Use get_keyblock_byfprint_fast to get the keyblock and a
15609 handle. Remove the now surplus keyblock fetch in the merge branch.
15611 gpg: Simplify keydb handling of the main import function.
15612 + commit 752cae6dd2ee8982a34c796a3f168ae538f7938c
15613 * g10/import.c (import_keys_internal): Return gpg_error_t instead of
15614 int. Change var names.
15615 (import_keys_es_stream): Ditto.
15616 (import_one): Ditto. Use a single keydb_new and simplify the use of
15619 sm: Fix colon listing of fields > 12 in crt records.
15620 + commit 1bf5cbd3ef01b7f5fdcfa30c882047b924dcf3f0
15621 * sm/keylist.c (print_capabilities): Move colon printing ...
15622 (list_cert_colon): to here.
15624 2017-10-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15626 agent: Send pinentry the uid of connecting process where possible.
15627 + commit 28aa6890588cc108639951bb4bef03ac17743046
15628 * agent/agent.h (server_control_s): Add field 'client_uid'.
15629 * agent/call-pinentry.c (start_pinentry): Add uid field to assuan
15630 option "owner" sent to pinentry.
15631 * agent/command-ssh.c (peer_info_s): New static struct.
15632 (get_client_pid): Rename to...
15633 (get_client_info): Here, and extract uid in addition to pid.
15634 (start_command_handler_ssh): Use get_client_info() instead of
15636 * agent/command.c (start_command_handler): Try assuan_get_peercred,
15637 and only fall back to assuan_get_pid when assuan_get_peercred fails.
15639 2017-10-19 NIIBE Yutaka <gniibe@fsij.org>
15641 g10: Fix find_and_check_key for multiple keyrings.
15642 + commit 995c46ea77cff5b99b2fca17b547d6525a4f227e
15643 * g10/pkclist.c (find_and_check_key): Call get_validity on a specific
15646 2017-10-18 Werner Koch <wk@gnupg.org>
15648 gpg: Keep a lock during the read-update/insert cycle in import.
15649 + commit 645f30ad310a518a863eb7bd3e11251a7e7f2eca
15650 * g10/keydb.c (keydb_handle): New field 'keep_lock'.
15651 (keydb_release): Clear that flag.
15652 (keydb_lock): New function.
15653 (unlock_all): Skip if KEEP_LOCK is set.
15654 * g10/getkey.c (get_keyblock_byfprint_fast): Call keep_lock if
15657 gpg: Improve keydb handling in the main import function.
15658 + commit 3bb06531d38b85be295308e826a50a1a7ba935ec
15659 * g10/getkey.c (get_pubkey_byfprint_fast): Factor most code out to ...
15660 (get_keyblock_byfprint_fast): .. new function.
15661 * g10/import.c (revocation_present): s/int rc/gpg_error_t err/.
15662 (import_one): Use get_keyblock_byfprint_fast to get the keyblock and a
15663 handle. Remove the now surplus keyblock fetch in the merge branch.
15665 gpg: Simplify keydb handling of the main import function.
15666 + commit d353287f721ffb56627d55bef04cc770ff0a8681
15667 * g10/import.c (import_keys_internal): Return gpg_error_t instead of
15668 int. Change var names.
15669 (import_keys_es_stream): Ditto.
15670 (import_one): Ditto. Use a single keydb_new and simplify the use of
15673 gpg: Fix wrong Tofu DB consistency check.
15674 + commit 18e5946aef458cd95fdce4a04e144747b52b0472
15675 * g10/tofu.c (build_conflict_set): Do not assume MAX_FINGERPRINT_LEN
15676 is the size of the fingerprint.
15678 2017-10-17 Werner Koch <wk@gnupg.org>
15680 gpg,sm: New option --with-key-screening.
15681 + commit 825abec0e7f38667a34dce3025fc2f3a05001dde
15682 * common/pkscreening.c: New.
15683 * common/pkscreening.h: New.
15684 * common/Makefile.am (common_sources): Add them.
15685 * g10/gpg.c (opts): New option --with-key-screening.
15686 * g10/options.h (struct opt): New field with_key_screening.
15687 * g10/keylist.c: Include pkscreening.h.
15688 (print_pk_screening): New.
15689 (list_keyblock_print): Call it.
15690 (print_compliance_flags): Call it.
15691 * sm/gpgsm.c (opts): New option --with-key-screening.
15692 * sm/gpgsm.h (scruct opt): New field with_key_screening.
15693 * sm/keylist.c: Include pkscreening.h.
15694 (print_pk_screening): New.
15695 (print_compliance_flags): Call it. Add new arg cert.
15696 (list_cert_colon): Pass arg cert
15697 (list_cert_std): Call print_pk_screening.
15698 * sm/fingerprint.c (gpgsm_get_rsa_modulus): New.
15700 sm: Fix colon listing of fields > 12 in crt records.
15701 + commit 69e579d78545aee5096a5d170e1cb9e511a09a90
15702 * sm/keylist.c (print_capabilities): Move colon printing ...
15703 (list_cert_colon): to here.
15705 2017-10-06 Neal H. Walfield <neal@g10code.com>
15707 gpg: Fix comparison.
15708 + commit 1ed21eee79749b976b4a935f2279b162634e9c5e
15709 * g10/gpgcompose.c (literal_name): Complain if passed zero arguments,
15712 2017-09-28 Werner Koch <wk@gnupg.org>
15714 gpg: Workaround for junk after --trusted-key.
15715 + commit b509d81cab030cca6abf0d878e1fc884eda344e6
15716 * g10/trust.c (register_trusted_key): Cut off everthing starting as a
15719 2017-09-27 Werner Koch <wk@gnupg.org>
15721 gpg: Prepare for a longer fingerprint.
15722 + commit ecbbafb88d920e713439b6b1b8e1b41a6f8d0e38
15723 * g10/card-util.c (change_cafpr): Use MAX_FINGERPRINT_LEN.
15724 * g10/cipher.c (write_header): Use snprintf.
15725 * g10/gpg.h (MAX_FINGERPRINT_LEN): Change to 32.
15726 (MAX_FORMATTED_FINGERPRINT_LEN): Change to 59
15727 * g10/keyid.c (format_hexfingerprint): Add v5 fingerprint format.
15728 * g10/tofu.c (get_policy): Use MAX_FINGERPRINT_LEN for the buffer but
15729 keep the raw length for now.
15731 common: Add constant KEYGRIP_LEN.
15732 + commit 76c80021d4da0755dbb04bd5d42f32015cba0b9a
15733 * common/util.h (KEYGRIP_LEN): New.
15734 * g10/call-agent.c (agent_probe_any_secret_key): Use that constant.
15735 * g10/keyid.c (keygrip_from_pk): Ditto.
15737 gpg: Let --debug clock time sign and verify.
15738 + commit 6aa4478c78cb34cf3d0ae5c752525110947bd247
15739 * configure.ac (ENABLE_LOG_CLOCK): New ac_define and option.
15740 * common/logging.c (log_clock): Use ENABLE_LOG_CLOCK to enable
15741 timestamp printing.
15742 * g10/call-agent.c (agent_pksign): Time signing.
15743 * g10/sig-check.c (check_signature_end_simple): Time verification.
15745 2017-09-26 NIIBE Yutaka <gniibe@fsij.org>
15747 g10: Select a secret key by checking availability under gpg-agent.
15748 + commit 0a76611294998ae34b9d9ebde484ef8ad3a9a3a6
15749 * g10/getkey.c (finish_lookup): Add WANT_SECRET argument to confirm
15750 by agent_probe_secret_key.
15751 (get_pubkey_fromfile, lookup): Supply WANT_SECRET argument.
15753 2017-09-20 NIIBE Yutaka <gniibe@fsij.org>
15755 agent: Fix cancellation handling for scdaemon.
15756 + commit 9f5e50e7c85aa8b847d38010241ed570ac114fc3
15757 * agent/call-scd.c (cancel_inquire): Remove.
15758 (agent_card_pksign, agent_card_pkdecrypt, agent_card_writekey)
15759 (agent_card_scd): Don't call cancel_inquire.
15761 scd: Distinguish cancel by user and protocol error.
15762 + commit 2396055c096884d521c26b76f26263a146207c24
15763 * scd/apdu.h (SW_HOST_CANCELLED): New.
15764 * scd/apdu.c (host_sw_string): Support SW_HOST_CANCELLED.
15765 (pcsc_error_to_sw): Return SW_HOST_CANCELLED for PCSC_E_CANCELLED.
15766 * scd/iso7816.c (map_sw): Return GPG_ERR_INV_RESPONSE for
15767 SW_HOST_ABORTED and GPG_ERR_CANCELED for SW_HOST_CANCELLED.
15769 2017-09-19 NIIBE Yutaka <gniibe@fsij.org>
15771 common: Accept the Z-suffix for yymmddThhmmssZ format.
15772 + commit ba8afc4966cca1f6aaf9b2a9bfc3220782306c2b
15773 * common/gettime.c (isotime_p): Accept the Z suffix.
15775 2017-09-19 Werner Koch <wk@gnupg.org>
15778 + commit 355ca9e9498740fb6294eec451507b4891ae01ec
15781 2017-09-19 NIIBE Yutaka <gniibe@fsij.org>
15783 common: Fix gnupg_wait_processes.
15784 + commit eeb3da6eb717ed6a1a1069a7611eb37503e8672d
15785 * common/exechelp-posix.c (gnupg_wait_processes): Loop for r_exitcodes
15786 even if we already see an error.
15788 2017-09-18 Werner Koch <wk@gnupg.org>
15790 dirmngr: Use system certs if --hkp-cacert is not used.
15791 + commit df692a6167be5486f9a29da003a00292fd895176
15792 * dirmngr/certcache.c (any_cert_of_class): New var.
15793 (put_cert): Set it.
15794 (cert_cache_deinit): Clear it.
15795 (cert_cache_any_in_class): New func.
15796 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Add hack to
15797 override empty list of HKP certs.
15799 wks: Create a new user id if provider wants mailbox-only.
15800 + commit 50c8b6c88f5d9f4b6c4e9c03aee31fe29afa94b8
15801 * tools/gpg-wks-client.c (get_key): Add arg 'exact'.
15802 (add_user_id): New.
15803 (command_send): Create new user id.
15805 wks: Send only the newest UID to the server.
15806 + commit 7f7f5d06fa5aa3a3c5ab8d2e59ee76207bfdeaa0
15807 * tools/wks-util.c (list_key_status_cb): Rename to key_status_cb.
15808 (wks_filter_uid): New.
15809 (wks_list_key): Allow FPR to be NULL. Return an error if no
15810 fingerprint was found.
15811 * tools/gpg-wks-server.c (process_new_key)
15812 (check_and_publish): Remove now useless extra check for FPR.
15813 * tools/gpg-wks-client.c (command_check): Ditto.
15814 (command_send): Filter out the newest uid.
15816 wks: Print the UID creation time with gpg-wks-client --check.
15817 + commit a0035986a8615df056182bb9af775b8b7b22003d
15818 * tools/gpg-wks.h (uidinfo_list_s): Add field 'created'.
15819 * tools/wks-util.c (append_to_uidinfo_list): Add arf 'created'.
15820 (wks_list_key): Pass timestamp to append_to_uidinfo_list.
15821 * tools/gpg-wks-client.c (command_check): Print UID creation time.
15823 wks: Use dedicated type to convey user ids.
15824 + commit 4e0696de897cac6a34d55a69d8889faf26f1a923
15825 * tools/gpg-wks.h (uidinfo_list_s, uidinfo_list_t): New.
15826 * tools/wks-util.c (append_to_uidinfo_list): New.
15827 (free_uidinfo_list): New.
15828 (wks_list_key): Change arg r_mboxes to uidinfo_list_t. Use
15829 append_to_uidinfo_list.
15830 * tools/gpg-wks-server.c (sserver_ctx_s): Replace strlist_t by
15832 (process_new_key): Ditto.
15833 (check_and_publish): Ditto.
15834 (command_receive_cb): Replace free_strlist by free_uidinfo_list.
15835 * tools/gpg-wks-client.c (command_check): Replace strlist_t by
15836 uidinfo_list_t. Also print user id in verbose mode.
15838 2017-09-13 Werner Koch <wk@gnupg.org>
15840 gpgv: Initialize compliance checker.
15841 + commit 006ca124ed95845d43af8c14d7ab2bc085b47b4c
15842 * g10/gpgv.c (main): Call gnupg_initialize_compliance.
15844 2017-09-12 Werner Koch <wk@gnupg.org>
15846 wks: Add hack for the broken posteo system.
15847 + commit a821b4f5567d02c3329c2b94a73dcbe12e6699a2
15848 * tools/gpg-wks-client.c (command_send): Additional hack for posteo.
15849 Check the protocol-version flag.
15851 wks: Add new policy flag protocol-version.
15852 + commit 332c9eaa2a3c7cae90b389cdaa2c149c5595fb4d
15853 * tools/gpg-wks.h (policy_flags_s): Add field protocol_version.
15854 * tools/wks-util.c (wks_parse_policy): Add new policy flag.
15856 gpg: Fix "Fix key generation with only an email part".
15857 + commit 8b5a2474f21dd4f1aa2a283e2f57d75e42742af5
15858 * g10/keygen.c (proc_parameter_file): Don't check the result of
15861 wks: Use unencrypted draft-1 mode for posteo.de.
15862 + commit c65a7bba7331975d20910f90cf648b6ecc5410f0
15863 * tools/gpg-wks-client.c (command_send): Allow sending in draft-1
15866 tools: New function mime_maker_add_body_data.
15867 + commit 7d15ee88980f88ca62fc7de9492dd08e54d0f0f1
15868 * tools/mime-maker.c (mime_maker_add_body_data): New.
15870 2017-09-11 Alon Bar-Lev <alon.barlev@gmail.com>
15872 sm: Move qualified.txt from datadir into sysconfdir.
15873 + commit 384a3748d9022b7ae3f629c13f92e204565fea3d
15874 * doc/Makefile.am: Move qualified.txt into examples.
15875 * doc/qualified.txt: Move into examples, remove trailing spaces.
15876 * doc/examples/README: Document qualified.txt.
15877 * doc/gpgsm.texi: Move qualified.txt from datadir into sysconfdir.
15878 * sm/qualified.c (read_list): Move qualified.txt from datadir into
15881 2017-09-11 NIIBE Yutaka <gniibe@fsij.org>
15883 tests: Fix a test which specifies expiration date.
15884 + commit a172759b5088ae086c0caa2e7d4d0ea346b28a90
15885 * tests/openpgp/quick-key-manipulation.scm: Fix expiration time
15888 scd: Fix for large ECC keys.
15889 + commit 827abe01a72a50eab1cdcde78985b42a4a8480fb
15890 * scd/app-openpgp.c (do_decipher): Support larger length.
15892 2017-09-11 Werner Koch <wk@gnupg.org>
15894 gpg: Fix key generation with only an email part.
15895 + commit 7089dcc54099a4909ce7d386c07ab87e1398e2eb
15896 * g10/keygen.c (proc_parameter_file): Special case the email only
15899 2017-09-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15901 agent: compile-time configuration of s2k calibration.
15902 + commit 926d07c5fa05de05caef3a72b6fe156606ac0549
15903 * configure.ac: add --with-agent-s2k-calibration=MSEC, introduces
15904 AGENT_S2K_CALIBRATION (measured in milliseconds)
15905 * agent/protect.c (calibrate_s2k_count): Calibrate based on
15906 AGENT_S2K_CALIBRATION.
15908 gpg: default to AES-256.
15909 + commit 73ff075204df09db5248170a049f06498cdbb7aa
15910 * g10/main.h (DEFAULT_CIPHER_ALGO): Prefer AES256 by default.
15912 gpg: default to 3072-bit RSA keys.
15913 + commit 909fbca19678e6e36968607e8a2348381da39d8c
15914 * agent/command.c (hlp_genkey): update help text to suggest the use of
15916 * doc/wks.texi: Make example match default generation.
15917 * g10/keygen.c (DEFAULT_STD_KEY_PARAM): update to
15918 rsa3072/cert,sign+rsa3072/encr, and fix neighboring comment,
15919 (gen_rsa, get_keysize_range): update default from 2048 to 3072).
15920 * g10/keyid.c (pubkey_string): update comment so that first example
15921 is the default 3072-bit RSA.
15923 gpgsm: default to 3072-bit keys.
15924 + commit 7955262151a5c755814dd23414e6804f79125355
15925 * doc/gpgsm.texi, doc/howto-create-a-server-cert.texi: : update
15926 default to 3072 bits.
15927 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): update default to
15929 * sm/certreqgen.c (proc_parameters): update default to 3072 bits.
15930 * sm/gpgsm.c (main): print correct default_pubkey_algo.
15932 2017-09-08 NIIBE Yutaka <gniibe@fsij.org>
15934 tests: Fix a test which specifies expiration date.
15935 + commit 17f764dd4972a063fe09c4b9d2846e8efcb25c7a
15936 * tests/openpgp/quick-key-manipulation.scm: Fix expiration time
15939 2017-08-29 NIIBE Yutaka <gniibe@fsij.org>
15941 scd: Fix for large ECC keys.
15942 + commit ff7ccd284c327a5b1c89603f157089177dac9d13
15943 * scd/app-openpgp.c (do_decipher): Support larger length.
15945 2017-08-28 Werner Koch <wk@gnupg.org>
15948 + commit 9d80fb8e000189e61c173c39f1e1ca417566a7fc
15951 2017-08-27 Werner Koch <wk@gnupg.org>
15952 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
15954 scd: Convey the correct length for Le.
15955 + commit 45d5f5800afe6613f338a26f361cb5e03e861129
15956 * scd/app-openpgp.c (determine_rsa_response): Round bits up.
15958 2017-08-24 Werner Koch <wk@gnupg.org>
15960 gpg: Fix memory leak while running --check-trustdb.
15961 + commit 13821e15fb9bdddfce79d88731c0f151724b2371
15962 * g10/trustdb.c (update_min_ownertrust): Free PK.
15964 gpg: Fix memory leak in sig-check.
15965 + commit b065a696344eac3007dbd5642143ecaaeebab43a
15966 * g10/sig-check.c (check_signature_over_key_or_uid): Remove useless
15967 condition. Actually free when SIGNER was allocated by us.
15969 build: Remove obsolete option from autogen.rc.
15970 + commit 02a5df614a369519ad7781f95dc977e24a0d4277
15971 * autogen.rc: Remove --enable-gpg2-is-gpg.
15973 2017-08-23 Werner Koch <wk@gnupg.org>
15975 gpgconf: Swap "auto-key-retrieve" and "no-auto-key-retrieve".
15976 + commit 565e486b8028f9e3cc51ebc5202666b598042175
15977 * g10/gpg.c (gpgconf_list): Announce "auto-key-retrieve".
15978 (main): Simplify setting of KEYSERVER_AUTO_KEY_RETRIEVE.
15979 * tools/gpgconf-comp.c: Make "no-auto-key-retrieve" invisible. Make
15980 "auto-key-retrieve" an expert option.
15982 tests: Do not run trust-pgp-4.scm.
15983 + commit b917cb66b79597520788cd9264889942247a3377
15984 * tests/openpgp/Makefile.am (XTESTS): Remove test.
15985 (EXTRA_DIST): Add test file.
15987 build: Change SWDB tag "gnupg21" to "gnupg22".
15988 + commit 008ae0bd868cb49ad4d67fc8c71707cd2a162137
15989 * configure.ac (GNUPG_SWDB_TAG): New ac_define. Set it to "gnupg22".
15990 * tools/gpgconf.c (query_swdb): Use it.
15991 * build-aux/speedo.mk: Change tag "gnupg21" to "gnupg22".
15992 * Makefile.am (distcheck-hook): Ditto.
15994 2017-08-23 Åka Sikrom <a4@hush.com>
15996 po: Update Norwegian translation.
15997 + commit fd0e5b60bed1cfc2aed7b2e13cc449f355eac051
16000 2017-08-23 Andre Heinecke <aheinecke@intevation.de>
16002 agent: Fix string translation for Windows.
16003 + commit 6158811304937b592601ef30c29c5a5cdbaa88ea
16004 * agent/agent.h (L_): Define agent_Lunderscore when simple
16007 2017-08-22 NIIBE Yutaka <gniibe@fsij.org>
16009 po: Update Japanese translation.
16010 + commit e6fa6b0ce823effd721c807b2b292287af91c642
16013 2017-08-21 Damien Goutte-Gattat <dgouttegattat@incenp.org>
16015 tests: Add tests for the PGP trust model.
16016 + commit c23a69970ba38edae9d3b2603825d18fbb732423
16017 * tests/openpgp/trust-pgp-1.scm: New file.
16018 * tests/openpgp/trust-pgp-2.scm: New file.
16019 * tests/openpgp/trust-pgp-3.scm: New file.
16020 * tests/openpgp/trust-pgp-4.scm: New file.
16021 * tests/openpgp/trust-pgp/common.scm: New file.
16022 * tests/openpgp/trust-pgp/scenario1.asc: New file.
16023 * tests/openpgp/trust-pgp/scenario2.asc: New file.
16024 * tests/openpgp/trust-pgp/scenario3.asc: New file.
16025 * tests/openpgp/trust-pgp/scenario4.asc: New file.
16026 * tests/openpgp/trust-pgp/alice.sec.asc: New file.
16027 * tests/openpgp/trust-pgp/bobby.sec.asc: New file.
16028 * tests/openpgp/trust-pgp/carol.sec.asc: New file.
16029 * tests/openpgp/trust-pgp/david.sec.asc: New file.
16030 * tests/openpgp/trust-pgp/frank.sec.asc: New file.
16031 * tests/openpgp/trust-pgp/grace.sec.asc: New file.
16032 * tests/openpgp/trust-pgp/heidi.sec.asc: New file.
16033 * tests/openpgp/Makefile.am (XTESTS): Add new tests.
16034 (TEST_FILES): Add new files.
16035 (EXTRA_DIST): Add new common file.
16037 tests: Move some functions into a common module.
16038 + commit cbe54b28bf3610204e12c50c0606df37337a1156
16039 * tests/openpgp/tofu.scm (gettrust): Moved to the common defs.scm
16041 (checktrust): Likewise.
16042 * tests/openpgp/defs.scm (gettrust): New function.
16043 (checktrust): Likewise.
16045 gpgconf: Make WoT settings configurable by gpgconf.
16046 + commit 0161225457e0609509d0d5f4b80a60a1071b4b48
16047 * tools/gpgconf-comp.c (gc_options_gpg): Add max-cert-depth,
16048 completes-needed, and marginals-needed options.
16049 * g10/gpg.c (gpgconf_list): Likewise.
16051 2017-08-21 Justus Winter <justus@g10code.com>
16053 gpgscm: Fix -Wimplicit-fallthrough warnings.
16054 + commit 6e596b2a745ae7a75a69038cf00ab4bbae1cebaa
16055 * tests/gpgscm/scheme.c (CASE): Rearrange so that the case statement
16057 (Eval_Cycle): Improve fallthrough annotations.
16059 2017-08-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
16061 gpg: default to --no-auto-key-retrieve.
16062 + commit e6f84116abca2ed49bf14b2e28c3c811a3717227
16063 * g10/gpg.c (main): remove KEYSERVER_AUTO_KEY_RETRIEVE from the
16064 default keyserver options.
16065 * doc/gpg.texi: document this change.
16067 2017-08-10 Justus Winter <justus@g10code.com>
16069 tests: Improve documentation.
16070 + commit 23107ba20f8b4eb5482b480ad6a8af6b39d2bfeb
16071 * tests/openpgp/README: Add quickstart instructions, how to use
16072 shell.scm, remove no longer used MKDATA.
16074 2017-08-09 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16076 g10: Write status error on error of --quick-revoke-uid.
16077 + commit 977fc5f0eb9fdee19e66bea8cd2eb5414789b485
16078 * g10/keyedit.c (keyedit_quick_revuid): Write status error on error.
16080 2017-08-09 Werner Koch <wk@gnupg.org>
16083 + commit e8ffa9a6ca5d76660b67207cd1157068e48483de
16086 po: Update German translation.
16087 + commit 2059dbf201963c6f229698ae80c6c774b1f686c8
16090 2017-08-08 Werner Koch <wk@gnupg.org>
16092 build: New configure option --enable-all-tests.
16093 + commit fb21aa8b50367e2afa13bad73fc21d6f01a97e18
16094 * configure.ac: New option --enable-all-tests.
16095 * tests/gpgscm/ffi.c (ffi_init): New gloabl var *run-all-tests*.
16096 * tests/openpgp/all-tests.scm (all-tests): Use that var instead
16097 of *maintainer-mode*.
16098 * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add --enable-all-tests.
16100 gpgscm: Make the test summary stand out.
16101 + commit 0bd19dae1161a71053d794e4f75e66f70445f9f0
16102 * tests/gpgscm/tests.scm (test-pool): Add delimiter lines.
16104 sm: Always print the keygrip in colon mode.
16105 + commit 0a8e20c4c639f0c491e2af5ac5fb97005196422b
16106 * sm/keylist.c (list_cert_colon): Always print the keygrip as
16107 described in the manual.
16109 2017-08-08 Justus Winter <justus@g10code.com>
16111 gpg: Add option '--disable-dirmngr'.
16112 + commit c4506f624ed6854aa0ba1629aa2d1d43eb26900d
16113 * doc/gpg.texi: Document new option.
16114 * g10/call-dirmngr.c (create_context): Fail if option is given.
16115 * g10/gpg.c (cmd_and_opt_values): New value.
16116 (opts): New option.
16117 (gpgconf_list): Add new option.
16118 (main): Handle new option.
16119 * g10/options.h (struct opt): New field 'disable_dirmngr'.
16120 * tools/gpgconf-comp.c (gc_options_gpg): New option.
16122 2017-08-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
16124 systemd-user: Drop redundant After=*.socket.
16125 + commit 81074c3b0211854a2dc94600dc892224201536f5
16126 * doc/examples/systemd-user/*.service: Drop redundant After=*.socket
16129 systemd-user: Drop RefuseManualStart=true.
16130 + commit 407da18254dfebcacfaee16952ef0b617b1626ea
16131 * doc/examples/systemd-user/*.service: drop RefuseManualStart=true
16133 2017-08-07 Justus Winter <justus@g10code.com>
16135 tests: Do not run all tests unless in maintainer mode.
16136 + commit b0112dbca91e720a4ff622ad0e88d99eba56203a
16137 * configure.ac: Leak the maintainer mode flag into 'config.h'.
16138 * tests/gpgscm/ffi.c: Pass it into the scheme environment.
16139 * tests/openpgp/all-tests.scm: Only run tests against non-default
16140 configurations (keyring, extended-key-format) in maintainer mode.
16142 2017-08-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
16145 + commit a611cba142470c52f3303c512f77ae7d195cc41f
16146 * doc/gpg.texi: s/occured/occurred/
16149 + commit f011d8763a009612c858a287cf7cc6a1f1a6d32a
16150 * agent/gpg-agent.c: Correct spelling in comment.
16152 2017-08-05 Werner Koch <wk@gnupg.org>
16154 gpg: Install gpg by default under the name gpg.
16155 + commit a69464b0b6dac88b360a13d3faf19dd7f2a0e02b
16156 * configure.ac: Remove option --enable-gpg2-is-gpg. Add option
16157 --enable-gpg-is-gpg2.
16158 * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Remove
16159 --enable-gpg2-is-gpg.
16161 gpg: gpgconf needs to support the now default --auto-key-retrieve.
16162 + commit 69e97d909d586160cc0631c9a6f4d3f24bb0c682
16163 * tools/gpgconf-comp.c (gc_options_gpg): Re-add "auto-key_retrieve".
16165 2017-08-04 Werner Koch <wk@gnupg.org>
16167 gpg: Fix memory leak in parse_auto_key_locate.
16168 + commit b70e86fd1050fc6da07a177ed142ae9882b4dd0d
16169 * g10/getkey.c (parse_auto_key_locate): Fix freeing of OPTIONS.
16171 tests: Adjust tests for changed --auto-key-locate default.
16172 + commit 0767eada1479c0fa9d4b75781a8c2afb67bdbf90
16173 * tests/openpgp/defs.scm (create-gpghome): Disable new defaults.
16175 gpg: Make --no-auto-key-retrieve gpgconf-igurable.
16176 + commit 9bb13a0e819334681caca38c9074bd7bfc04e45e
16177 * g10/gpg.c (gpgconf_list): Print no-auto-key-retrieve instead of
16179 * tools/gpgconf-comp.c (gc_options_gpg): Replace auto-key-retrieve by
16180 no-auto-key-retrieve and chnage level from invisible to advanced.
16182 gpg: Default to --auto-key-locate "local,wkd" and --auto-key-retrieve.
16183 + commit 7e1fe791d188b078398bf83c9af992cb1bd2a4b3
16184 * g10/gpg.c (main): Add KEYSERVER_AUTO_KEY_RETRIEVE to the default
16185 keyserver options. Set the default for --auto-key-locate to
16186 "local,wkd". Reset that default iff --auto-key-locate has been given
16187 in the option file or in the commandline.
16188 * g10/getkey.c (parse_auto_key_locate): Work on a copy of the arg.
16190 agent: Make --no-grab the default.
16191 + commit 3d78ae4d3de08398fabae5821045a3a1da6dadbe
16192 * agent/gpg-agent.c (oGrab): New const.
16193 (opts): New option --grab. Remove description for --no-grab.
16194 (parse_rereadable_options): Make --no-grab the default.
16195 (finalize_rereadable_options): Allow --grab to override --no-grab.
16196 (main) <gpgconflist>: Add "grab".
16197 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add "grab".
16199 gpg: Avoid double fingerprint printing with import-show.
16200 + commit b54d75fb1dcfa2cebb3a2497b81ffb49acac2056
16201 * g10/import.c (import_one) <IMPORT_SHOW>: Take care of fingerprint
16204 gpg: New import option show-only.
16205 + commit d9fabcc1989d7235ea0294874803295a30f8711b
16206 * g10/options.h (IMPORT_DRY_RUN): New.
16207 * g10/import.c (parse_import_options): Add "show-only".
16208 (import_one): use that as alternative to opt.dry_run.
16210 2017-08-03 Werner Koch <wk@gnupg.org>
16212 wks: Allow gpg-wks-client --supported with just the domain name.
16213 + commit 6cba56d436b56ea5e60042144a8a75a2e80007c8
16214 * tools/gpg-wks-client.c (command_supported): Hack for missing local
16217 2017-08-02 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16219 g10: Always save standard revocation certificate in file.
16220 + commit dcfb01959802b27869528dda1d9a4f5e79574bb5
16221 * g10/revoke.c (gen_standard_revocation): Set opt.outfile to NULL
16222 temporarily to create certificate in right place.
16224 2017-08-01 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16226 Revert "g10: Always save standard revocation certificate in file."
16227 + commit 624cd2d0bf6cc6dd1b79654295dc76f5b2d6d70b
16228 This reverts commit ebc65ff459e6c228fb7406e375819a9fe5637abe.
16230 g10: Always save standard revocation certificate in file.
16231 + commit ebc65ff459e6c228fb7406e375819a9fe5637abe
16232 * g10/main.h (open_outfile): New parameter NO_OUTFILE.
16233 * g10/openfile.c (open_outfile): New parameter NO_OUTFILE. If given,
16234 never use opt.outfile.
16235 * g10/revoke.c (create_revocation): If FILENAME is true, also set
16236 NO_OUTFILE to true (for standard revocation certificates).
16237 * g10/dearmor.c, g10/encrypt.c, g10/export.c, g10/revoke.c,
16238 g10/sign.c: Adjust all other callers.
16240 artwork: Add icons.
16241 + commit a8d0b8d2333ddab703d1e346e06c106eeeedfd53
16242 * artwork/icons/index.css: New file.
16243 * artwork/icons/index.html: New file.
16244 * artwork/icons/lock-12.png: New file.
16245 * artwork/icons/lock-128.png: New file.
16246 * artwork/icons/lock-16.png: New file.
16247 * artwork/icons/lock-24.png: New file.
16248 * artwork/icons/lock-256.png: New file.
16249 * artwork/icons/lock-32.png: New file.
16250 * artwork/icons/lock-48.png: New file.
16251 * artwork/icons/lock-64.png: New file.
16252 * artwork/icons/lock-wing-12.png: New file.
16253 * artwork/icons/lock-wing-128.png: New file.
16254 * artwork/icons/lock-wing-16.png: New file.
16255 * artwork/icons/lock-wing-24.png: New file.
16256 * artwork/icons/lock-wing-256.png: New file.
16257 * artwork/icons/lock-wing-32.png: New file.
16258 * artwork/icons/lock-wing-48.png: New file.
16259 * artwork/icons/lock-wing-64.png: New file.
16260 * artwork/icons/lock-wing.svg: New file.
16261 * artwork/icons/lock.svg: New file.
16262 * artwork/icons/wing-12.png: New file.
16263 * artwork/icons/wing-128.png: New file.
16264 * artwork/icons/wing-16.png: New file.
16265 * artwork/icons/wing-24.png: New file.
16266 * artwork/icons/wing-256.png: New file.
16267 * artwork/icons/wing-32.png: New file.
16268 * artwork/icons/wing-48.png: New file.
16269 * artwork/icons/wing-64.png: New file.
16270 * artwork/icons/wing.svg: New file.
16272 2017-08-01 Werner Koch <wk@gnupg.org>
16274 gpg,sm: Error out on compliance mismatch while decrypting.
16275 + commit 4e117f206beb38287ddcd3251fb7baabadfbddbb
16276 * g10/pubkey-enc.c (get_session_key): Bail out if the algo is not
16277 allowed in the current compliance mode.
16278 * sm/decrypt.c (gpgsm_decrypt): Ditto.
16280 2017-08-01 NIIBE Yutaka <gniibe@fsij.org>
16283 + commit fde9a8cc6c849fb21f3e6782dbd5c6bc863357eb
16284 * tools/rfc822parse.c: Fix.
16286 po: Update Japanese translation.
16287 + commit 02b571947b9442604faa7509478cd8577c2c0b9c
16290 2017-07-31 Werner Koch <wk@gnupg.org>
16292 dirmngr,w32: Fix http connection timeout problem.
16293 + commit 482fd5758c1b7e1b33c4cb50656e586a3ae16815
16294 * dirmngr/http.c (connect_with_timeout) [W32]: Take care of EAGAIN.
16296 Explain the "server is older than xxx warning".
16297 + commit 4ad5bc1b6d72483123963c894ee1412b2ceb99b4
16298 * g10/call-agent.c (warn_version_mismatch): Print a note on how to
16299 restart the servers.
16300 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
16301 * sm/call-agent.c (warn_version_mismatch): Ditto.
16302 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
16304 2017-07-28 Werner Koch <wk@gnupg.org>
16307 + commit 7d335ff496b129ee6f33c4ca25bd7a6631a4b590
16310 po: Update German translation.
16311 + commit 339f672dad94b4e0000fd2d3a1f272a4861c91c3
16314 agent: Make --ssh-fingerprint-digest re-readable.
16315 + commit 6c9899bede6ecb2ccf7336d12724090f36a6aa3d
16316 * agent/gpg-agent.c (main): Move oSSHFingerprintDigest to ...
16317 (parse_rereadable_options): here.
16318 (opts): Change its description.
16319 (main) <aGPGConfList>: Include this option.
16320 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add option at expert
16323 gpg,sm: String changes for compliance diagnostics.
16324 + commit efe187e8a2b583defdcd9d4b96e3dc83f95bef0d
16327 agent: For OCB key files return Bad Passprase instead of Checksum Error.
16328 + commit 5cf95157c5db88dd599ac4d48f619782179b1438
16329 * agent/protect.c (do_decryption): Map error checksum to bad
16330 passpharse protection
16332 * agent/call-pinentry.c (unlock_pinentry): Don't munge the error
16333 source for corrupted protection.
16335 gpg: Minor rework for better readibility of get_best_pubkey_byname.
16336 + commit 1c35e29af95c46475f297d2bd70a5f3bd49d45b1
16337 * g10/getkey.c (get_best_pubkey_byname): Change return type to
16338 gpg_error_t. Use var name err instead of rc. Move a
16339 gpg_error_from_syserror closer to the call.
16341 gpg: Fix segv in get_best_pubkey_byname.
16342 + commit 6496dc1f9d2aef3bf8cf950da2434c96f7a0145c
16343 * g10/getkey.c (get_best_pubkey_byname): Init NEW.
16345 agent: Minor cleanup (mostly for documentation).
16346 + commit 5516ef47a22dfdf9cdf56107f34d2bda9e46deec
16347 * agent/command.c (cmd_pksign): Change var name 'rc' to 'err'.
16348 * agent/findkey.c (read_key_file): Ditto. Change return type to
16349 gpg_error_t. On es_fessk failure return a correct error code.
16350 (agent_key_from_file): Change var name 'rc' to 'err'.
16351 * agent/pksign.c (agent_pksign_do): Ditto. Change return type to
16352 gpg_error_t. Return a valid erro code on malloc failure.
16353 (agent_pksign): Ditto. Change return type to gpg_error_t. replace
16354 xmalloc by xtrymalloc.
16355 * agent/protect.c (calculate_mic): Change return type to gpg_error_t.
16356 (do_decryption): Ditto. Do not init RC.
16357 (merge_lists): Change return type to gpg_error_t.
16358 (agent_unprotect): Ditto.
16359 (agent_get_shadow_info): Ditto.
16361 2017-07-27 Werner Koch <wk@gnupg.org>
16363 gpg: Tweak compliance checking for verification.
16364 + commit 6502bb0d2af5784918ebb74242fff6f0a72844bf
16365 * common/compliance.c (gnupg_pk_is_allowed): Rework to always allow
16367 * g10/mainproc.c (check_sig_and_print): Print a con-compliant warning.
16368 * g10/sig-check.c (check_signature2): Use log_error instead of
16371 gpg,sm: Allow encryption (with warning) to any key in de-vs mode.
16372 + commit 1bd22a85b4f06324037b3500d2fa8af62733c926
16373 * g10/encrypt.c (encrypt_crypt): Do not abort for a non-compliant key.
16374 * sm/encrypt.c (gpgsm_encrypt): Ditto.
16376 gpg,sm: Fix compliance checking for decryption.
16377 + commit a0d0cbee7654ad7582400efaa92d493cd8e669e9
16378 * common/compliance.c (gnupg_pk_is_compliant): Remove the Elgamal
16379 signing check. We don't support Elgamal signing at all.
16380 (gnupg_pk_is_allowed) <de-vs>: Revert encryption/decryption for RSA.
16381 Check the curvenames for ECDH.
16382 * g10/pubkey-enc.c (get_session_key): Print only a warning if the key
16384 * sm/decrypt.c (gpgsm_decrypt): Ditto. Use the same string as in gpg
16385 so that we have only one translation.
16387 gpg: Avoid output to the tty during import.
16388 + commit fcb62fe20f45290bf95703ec3bf4d0b361fa4339
16389 * g10/key-check.c (key_check_all_keysigs): Add arg mode and change all
16390 output calls to use it.
16391 * g10/keyedit.c (keyedit_print_one_sig): Add arg fp and chnage all
16392 output calls to use it.
16393 (keyedit_menu): Adjust for changes.
16394 * g10/gpgcompose.c (keyedit_print_one_sig): Add dummy arg fp.
16395 * g10/import.c (import_one): Call key_check_all_keysigs with output to
16398 2017-07-26 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16400 g10: Make sure exactly one fingerprint is output with --quick-gen-key.
16401 + commit 94eea0ed2c8b47cb0fe02b22cbe668705a5fe0d0
16402 * g10/keygen.c (do_generate_keypair): Only set fpr in
16403 list_keyblock_direct invocation if neither --fingerprint nor
16404 --with-fingerprints are given.
16406 2017-07-26 Werner Koch <wk@gnupg.org>
16408 doc: Add man pages form gpg-wks-server and gpg-wks-client.
16409 + commit be636c3cfca178927b09ef4154c3e555d6f5b1c4
16410 * doc/wks.texi: New.
16411 * doc/gnupg.texi: Include wks.texi.
16412 * doc/Makefile.am (gnupg_TEXINFOS): Add wks.texi.
16413 (myman_pages): Add new man pages.
16415 wks: Fix program names in the usage diagnostics.
16416 + commit c76398da5b15df2086f68bc26b7fde75219976c7
16417 * tools/gpg-wks-client.c (my_strusage): Add case 12.
16418 * tools/gpg-wks-server.c (my_strusage): Add case 12:
16420 2017-07-26 Andre Heinecke <aheinecke@intevation.de>
16422 doc: Update vsnfd profile example.
16423 + commit 4f569c69075fddbaea588544a6625c28cb4cb8f4
16424 * doc/examples/vsnfd.prf: Use rsa3072
16426 2017-07-26 Werner Koch <wk@gnupg.org>
16428 dirmngr: Do not use a blocking connect in Tor mode.
16429 + commit c5e5748480952e5bcedb16f6ce6ef7e435acb3c7
16430 * dirmngr/http.c (http_raw_connect): Disable the timeout in Tor mode.
16431 (send_request): Ditto.
16433 dirmngr: Auto-enable Tor on startup or reload.
16434 + commit fd68bdb61ec4f8441da6d3023a8da4315df54cec
16435 * dirmngr/dirmngr.c (dirmngr_use_tor): Test for Tor availibility.
16437 agent,dirmngr: Check for homedir removal also using stat(2).
16438 + commit d50c2eff8d6931586c527edb3dea98dbc6facdec
16439 * agent/gpg-agent.c (have_homedir_inotify): New var.
16440 (reliable_homedir_inotify): New var.
16441 (main): Set reliable_homedir_inotify.
16442 (handle_tick): Call stat on the homedir.
16443 (handle_connections): Mark availibility of the inotify watch.
16444 * dirmngr/dirmngr.c (handle_tick): Call stat on the homedir.
16445 (TIMERTICK_INTERVAL_SHUTDOWN): New.
16446 (handle_connections): Depend tick interval on the shutdown state.
16448 agent: Lengthen timertick interval on Unix to 4 seconds.
16449 + commit f4ec7697a9c2d7587794d3bd75efbb0b51d6562f
16450 * agent/gpg-agent.c (TIMERTICK_INTERVAL): Same value for Windows and
16453 2017-07-25 Werner Koch <wk@gnupg.org>
16455 common: Strip trailing slashes from the homedir.
16456 + commit 24c7aa0d58e3768690dd8ebef0e8e01af7e80f83
16457 * common/homedir.c (default_homedir): Strip trailing slashes.
16458 (gnupg_set_homedir): Ditto.
16460 w32: Also change the directory on daemon startup.
16461 + commit 0ef50340ef68b2541d9a1aafa71f5400aef4dc7e
16462 * agent/gpg-agent.c (main): Always to the chdir.
16463 * dirmngr/dirmngr.c (main): Ditto.
16464 * scd/scdaemon.c (main): Ditto.
16466 common: New functions gnupg_daemon_rootdir and gnupg_chdir.
16467 + commit 226f143ca01cf335c7c4e3e94c96fb9d271eccc9
16468 * common/sysutils.c (gnupg_chdir): New.
16469 * common/homedir.c (gnupg_daemon_rootdir): New.
16470 * agent/gpg-agent.c (main): Use these functions instead chdir("/").
16471 * dirmngr/dirmngr.c (main): Ditto.
16472 * scd/scdaemon.c (main): Ditto.
16474 gpg: Update key origin info during import merge.
16475 + commit 166d0d7a2439f30c0a250faadc16ce3453447d71
16476 * g10/import.c (update_key_origin): New.
16477 (merge_blocks): Add arg curtime.
16478 (import_one): Pass curtime to merge_blocks. Call update_key_origin.
16480 gpg: Store key origin for new userids during import merge.
16481 + commit 84c993d9325fc000acac7950b2dfeefa5976df3b
16482 * g10/import.c (apply_meta_data): Rename to ...
16483 (insert_key_origin): this. Factor code out to ...
16484 (insert_key_origin_pk, insert_key_origin_uid): new funcs.
16485 (import_one): Move insert_key_origin behind clean_key.
16486 (merge_blocks): Add args options, origin, and url.
16487 (append_uid): Rename to ...
16488 (append_new_uid): this. Add args options, curtime, origin, and url.
16489 Call insert_key_origin_uid for new UIDs.
16491 2017-07-25 NIIBE Yutaka <gniibe@fsij.org>
16493 dirmngr: Add annotation for fallthrough.
16494 + commit d40b4a41a8d60292fd4b5b951a19883e31090179
16495 * dirmngr/dns.c: Add /* FALL THROUGH */ to clarify.
16497 2017-07-24 Werner Koch <wk@gnupg.org>
16499 gpg: Extend --key-origin to take an optional URL arg.
16500 + commit 87b5421ca84bbea68217c9ed771ee8c0a98a4d0c
16501 * g10/getkey.c (parse_key_origin): Parse appended URL.
16502 * g10/options.h (struct opt): Add field 'key_origin_url'.
16503 * g10/gpg.c (main) <aImport>: Pass that option to import_keys.
16504 * g10/import.c (apply_meta_data): Extend for file and url.
16505 * g10/keyserver.c (keyserver_fetch): Pass the url to
16506 import_keys_es_stream.
16508 gpg: Store key origin info for new keys from a keyserver.
16509 + commit 2ca0381d077d766593db26f4215b8eddee8d7963
16510 * g10/keyserver.c (keyserver_get_chunk): Use KEYORG_KS if request was
16511 done by fingerprint.
16512 * g10/import.c (apply_meta_data): Implement that.
16514 gpg: Store key origin info for new DANE and WKD retrieved keys.
16515 + commit e7068bf92ec5ca5d440346d43a382c1f625b924d
16516 * g10/import.c (apply_meta_data): Remove arg 'merge'. Add arg 'url'.
16517 Implement WKD and DANE key origin.
16518 (import_keys_internal): Add arg 'url' and change all callers.
16519 (import_keys_es_stream): Ditto.
16521 (import_one): Ditto.
16522 * g10/keylist.c (list_keyblock_print): Fix update URL printing.
16523 * g10/call-dirmngr.c (gpg_dirmngr_wkd_get): Add arg 'r_url' to return
16524 the SOURCE. Pass ks_status_cb to assuan_transact.
16525 * g10/keyserver.c (keyserver_import_wkd): Get that URL and pass it to
16526 the import function.
16528 gpg: Filter keys received via DANE.
16529 + commit f6f0dd4d5ea85e0b16e96d7678b1d508182049a8
16530 * g10/keyserver.c (keyserver_import_cert): Use an import filter in
16533 dirmngr: Print a SOURCE status for WKD requests.
16534 + commit e97548223948222a5c22acdf3775c7f93c1e17a9
16535 * dirmngr/server.c (cmd_wkd_get): Print a SOURCE status.
16537 dirmngr: New function dirmngr_status_printf.
16538 + commit 9b88cfa0962f28894658cff8777fe7a217c6f700
16539 * dirmngr/server.c (dirmngr_status_printf): New.
16541 2017-07-24 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16543 g10: Make sure to emit NEED_PASSPHRASE on --import of secret key.
16544 + commit 872137b5921dd297e7d2c1def6e3868b7595feb5
16545 * call-agent.h (agent_import_key): Add keyid parameters.
16546 * call-agent.c (agent_import_key): Set keyid parameters.
16547 * import.c (transfer_secret_keys): Pass keyid parameters.
16549 w32: Change directory on daemon startup.
16550 + commit 78ebc62604d77600b9865950610717d28c6027a2
16551 * agent/gpg-agent.c [HAVE_W32_SYSTEM]: Include <direct.h>.
16552 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
16553 * dirmngr/dirmngr.c [HAVE_W32_SYSTEM]: Include <direct.h>.
16554 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
16555 * scd/scdaemon.c [HAVE_W32_SYSTEM]: Include <direct.h>.
16556 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
16558 g10: Make sure to emit NEED_PASSPHRASE on --export-secret-key.
16559 + commit d8e46f10698da0bee4cd58d95f1f9832bdda0c5f
16560 * call-agent.h (agent_export_key): Add keyid parameters.
16561 * call-agent.c (agent_export_key): Set keyid parameters.
16562 * export.c (receive_seckey_from_agent): Pass keyid parameters.
16564 2017-07-24 NIIBE Yutaka <gniibe@fsij.org>
16566 scd: Use unsigned int for fields.
16567 + commit 45e40487fb7bb51228c96c8966e38c643a9b9ba5
16568 * scd/app-openpgp.c (data_objects): Use unsigned ints.
16570 dirmngr: More minor fix.
16571 + commit ade4b2744c848e07b87afa4f186256c2a2ef1d13
16572 * dirmngr/http.c (send_request): Care the case of !USE_TLS.
16574 dirmngr: More minor fixes.
16575 + commit 789401e9557db13422f47a8c09e693f3cee0132b
16576 * dirmngr/http.c (http_verify_server_credentials): Duplicated const.
16577 * dirmngr/ldap.c (parse_one_pattern): Add comment.
16579 dirmngr: Minor fix for Windows.
16580 + commit 274602820cfbb15c7cdb4525acd9793bdb472e78
16581 * dirmngr/http.c (connect_with_timeout): Use FD2INT.
16583 agent: Minor fix for Windows.
16584 + commit 328fca187253c069e3630bd387a71f6d16e9820a
16585 * agent/command-ssh.c (serve_mmapped_ssh_request): Add const
16588 2017-07-21 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16590 g10: Avoid caching passphrase for failed symmetric encryption.
16591 + commit e4c720fa3b31ebd3e9d764c6eab02729cf06124c
16592 * g10/mainproc.c (proc_encrypted): If error code is GPG_ERR_CIPHER_ALGO,
16593 assume the symmetric passphrase was wrong and invalidate the cache.
16595 2017-07-21 Werner Koch <wk@gnupg.org>
16597 gpg: Extend --quick-set-expire to allow subkey expiration setting.
16598 + commit b55b72bb815ad5870456b89c3a011fa00991b4a8
16599 * g10/keyedit.c (keyedit_quick_set_expire): Add new arg subkeyfprs.
16600 (menu_expire): Rename arg force_mainkey to unattended and allow
16601 unattended changing of subkey expiration.
16602 * g10/gpg.c (main): Extend --quick-set-expire.
16604 gpg: Fix possible double free of the card serialno.
16605 + commit e888f7af6571ecd3994fd55cc18c9e2df7fd0c60
16606 * g10/free-packet.c (copy_public_key): Copy fields serialno and
16609 gpg: Use macros to check the signature class.
16610 + commit 5818ff0ae314af08548fcc23df2b807736144a00
16611 * g10/import.c: Use the extistin macros for better readability.
16613 2017-07-21 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16615 g10: Clean keyblock on initial commit.
16616 + commit 609bbdf3614fbadeba7a6cbdfdf5004b23516a64
16617 * g10/import.c (import_one): If option import-clean is set,
16618 also clean on initial import, not only for merge.
16620 2017-07-21 NIIBE Yutaka <gniibe@fsij.org>
16622 scd: Fix SEGV in CCID driver.
16623 + commit d8a55da715ce8447b0686f321fa43d00be34a467
16624 * scd/ccid-driver.c (intr_cb): Only kick the loop for removal.
16625 (bulk_in): Don't set POWERED_OFF when interrupt transfer is enabled.
16627 g10: Don't limit at the frontend side for card capability.
16628 + commit a76b6cf9709c0a2a89fa2887075491b80f3d9608
16629 * g10/card-util.c (MAX_GET_DATA_FROM_FILE): New.
16630 (get_data_from_file): Use MAX_GET_DATA_FROM_FILE.
16631 (change_url, change_login, change_private_do): Don't limit.
16633 scd: Add debug message for v3 card.
16634 + commit 892e86b0dc69193ddff018bf9b3938509dd72cb3
16635 * scd/app-openpgp.c (show_caps): Output more messages.
16637 2017-07-20 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16639 doc: Clarify wording of export-attributes.
16640 + commit cea4313644b531ef87b8c8e4bfddde4388cbbe0d
16641 * doc/gpg.texi: Clarify wording of export-attributes.
16643 2017-07-20 Werner Koch <wk@gnupg.org>
16645 gpg: New option --with-key-origin.
16646 + commit 165cdd8121bbf80bfe2da071539d3578630f198f
16647 * g10/getkey.c (parse_key_origin): Factor list out as ...
16648 (key_origin_list): new struct.
16649 (key_origin_string): New.
16650 * g10/gpg.c (oWithKeyOrigin): New const.
16651 (opts): New option --with-key-origin.
16652 (main): Implement option.
16653 * g10/options.h (struct opt): New flag with_key_origin.
16654 * g10/keylist.c (list_keyblock_print): Print key origin info.
16655 (list_keyblock_colon): Ditto.
16657 common: New function print_utf9_string.
16658 + commit bddc2e04f1ddc18be20efc0f0508be401b345f42
16659 * common/miscellaneous.c (print_utf8_string): New.
16661 gpg: Make function mk_datestr public.
16662 + commit 3ee314dde16d1d69ddf840cdb8b5aa186c592262
16663 * g10/keydb.h (MK_DATESTR_SIZE): New.
16664 * g10/keyid.c (mk_datestr): Make public. Add arg bufsize and use
16665 snprintf. Change arg atime to u32.
16666 (datestr_from_pk): Simplify.
16667 (datestr_from_sig): Ditto.
16668 (expirestr_from_pk): Ditto.
16669 (expirestr_from_sig): Ditto.
16670 (revokestr_from_pk): Ditto.
16672 2017-07-20 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16674 g10: Return proper error when gpg-agent fails to start during probe.
16675 + commit 9998b162b47931fb8a8ed961d53418d505358888
16676 * g10/getkey.c (lookup): Return immediately on any other error than
16677 GPG_ERR_NO_SECKEY from agent_probe_any_secret_key.
16679 2017-07-20 NIIBE Yutaka <gniibe@fsij.org>
16681 scd: Support longer data length for special DOs for v3 card.
16682 + commit 69614d55018ddb8678d8904a52e648931f480d72
16683 * scd/app-openpgp.c (data_objects): Special DOs like "Login Data",
16684 "URL", "Private DO N" can be longer size >= 256.
16685 (struct app_local_s): Define bits for v3 card.
16686 (get_cached_data): Use extcap.max_special_do for special DOs.
16687 (app_select_openpgp): Detect if extcap_v3, kdf_do, and other bits.
16689 common: logstream fix.
16690 + commit 84146b3ec44943f06c66a603de19094b930ad446
16691 * common/logging.c (set_file_fd): Don't close es_stderr.
16693 dnsmngr: Fix use of CPP.
16694 + commit cc12cf386b620e658fa93a0bd40477bc16d85d98
16695 * dirmngr/dns.c (HAVE_STATIC_ASSERT, HAVE___ATOMIC_FETCH_ADD)
16696 (DNS_HAVE_SOCKADDR_UN, HAVE_SOCK_NONBLOCK): Don't use defined
16697 to be expanded for expression evaluation.
16699 2017-07-19 Justus Winter <justus@g10code.com>
16701 dirmngr: Forbid redirects from .onion to clearnet URIs.
16702 + commit e7fc6e3bf0eb6ffe53e1f099d28ce45cef4a8a87
16703 * dirmngr/ks-engine-hkp.c (send_request): Forbid redirects from .onion
16705 * dirmngr/ks-engine-http.c (ks_http_fetch): Likewise.
16707 2017-07-19 Werner Koch <wk@gnupg.org>
16709 gpg: Avoid asking by fpr and then by keyid during auto-key-retrieve.
16710 + commit 2e5459457473eb4b3e7b2b14815cb94faa66e8bb
16711 * g10/mainproc.c (check_sig_and_print): Track key server request via
16714 2017-07-19 Justus Winter <justus@g10code.com>
16716 dirmngr: Implement TLS over http proxies.
16717 + commit da91d2106a17c796ddb066a34db92d33b21c81f7
16718 * dirmngr/http.c (send_request): If a http proxy is to be used, and we
16719 want to use TLS, try to use the CONNECT method to get a connection to
16722 dirmngr: Log http response in debug mode.
16723 + commit e7eabe66b6409c1f5225b751ea5c2d456a3856e6
16724 * dirmngr/http.c (parse_response): Log http response in debug mode.
16726 dirmngr: Amend TLS handling.
16727 + commit 1ba220e68149fdb197accf4a15b0a11126c8b431
16728 * dirmngr/http.c (http_wait_response): Get the 'use_tls' flag from the
16729 write cookie, not from the URI.
16731 dirmngr: Fix connecting to http proxies.
16732 + commit 46a4a0c0e77e19f9589088bb87357c33142c3f04
16733 * dirmngr/http.c (send_request): Do not use the 'srvtag' intended for
16734 the target host to connect to the http proxy.
16736 dirmngr: Fix handling of proxy URIs.
16737 + commit 73d4781e4595634548269bafe46aeb7674c5b219
16738 * dirmngr/http.c (send_request): We do not support socks4.
16740 2017-07-19 NIIBE Yutaka <gniibe@fsij.org>
16742 gpgconf: Make vars read-only explicitly.
16743 + commit 99791184ac4c7486ccdefc150b9921cd923428b9
16744 * tools/gpgconf-comp.c (gc_backend, gc_arg_type, gc_level, gc_flag)
16745 (gc_component): Add const qualifier.
16747 Fix usage of ARGPARSE_OPTS.
16748 + commit fa63db89f9581186ed758c502d4e69914b774157
16749 * agent/gpg-agent.c, agent/preset-passphrase.c,
16750 dirmngr/dirmngr-client.c, dirmngr/dirmngr_ldap.c, kbx/kbxutil.c,
16751 tools/gpg-check-pattern.c, tools/gpgconf.c, tools/gpgsplit.c,
16752 tools/symcryptrun.c: Use ARGPARSE_end.
16754 2017-07-18 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16756 common: Allow abbreviations of standard options.
16757 + commit f17862d47d184d7f6ef883778cf63801365599a0
16758 * argparse.h (ARGPARSE_SHORTOPT_HELP, ARGPARSE_SHORTOPT_VERSION,
16759 ARGPARSE_SHORTOPT_WARRANTY, ARGPARSE_SHORTOPT_DUMP_OPTIONS): New
16761 (ARGPARSE_end): Add some placeholders for standard options.
16762 * argparse.c (arg_parse): Fill in missing standard options so
16763 default machinery works. Check for standard options in new way.
16764 Do not write out standard options for --dump-options.
16766 2017-07-18 Justus Winter <justus@g10code.com>
16768 gpgscm,w32: Fix testing for absolute paths.
16769 + commit 2e1342b78b020f5b28359b08a4f63cf11479602f
16770 * tests/gpgscm/main.c (path_absolute_p): New function.
16771 (load): Use new function.
16773 dirmngr: Honor http keyserver URLs.
16774 + commit b231959728a0056094134e0fca8cc916c24ef37e
16775 * dirmngr/http.c (parse_uri): Keep an unmodified copy of the URI.
16776 * dirmngr/http.h (struct parsed_uri_s): New field 'original'.
16777 * dirmngr/ks-action.c (ks_action_get): Properly handle http and https
16780 dirmngr: Fix memory leak.
16781 + commit ebb35ed7110d1a29061dfb4ccb9038645b20d7f4
16782 * dirmngr/http.c (parse_uri): Properly free partial results.
16784 dirmngr: Fix memory leak.
16785 + commit 3d670fa973a03ea88b5f9459b3222a951136dd7a
16786 * dirmngr/http.c (http_release_parsed_uri): Free 'params'.
16788 2017-07-17 Werner Koch <wk@gnupg.org>
16790 gpg,sm: Check compliance of the RNG.
16791 + commit a149afe338d61d86985c533cde5e7dbcd31e8698
16792 * common/compliance.c (gnupg_rng_is_compliant): New.
16793 * g10/call-agent.c (start_agent) [W32]: Check rng compliance.
16794 * sm/call-agent.c (start_agent) [W32]: Ditto.
16795 * g10/encrypt.c (encrypt_simple, encrypt_crypt): Check that the RNG is
16797 * sm/encrypt.c (gpgsm_encrypt): Ditto.
16798 * g10/sign.c (do_sign): Ditto.
16799 * sm/sign.c (gpgsm_sign): Ditto.
16801 agent: New GETINFO sub-command jent_active.
16802 + commit bbbd0db34b4e387f8dc089fb7d69fdcf2ed91a01
16803 * agent/command.c (cmd_getinfo): Implement it for gcrypt >= 1.8.
16805 common: New function split_fields_colon.
16806 + commit 849467870ee1c10e0a7b1e89cfc9e8214e4963fe
16807 * common/stringhelp.c (split_fields_colon): New.
16808 * common/t-stringhelp.c (test_split_fields_colon): New test.
16809 (main): Call that test.
16811 2017-07-14 Justus Winter <justus@g10code.com>
16813 tests: Improve 'shell.scm' script.
16814 + commit 58eafd11ed5501c0b72fcb553eb3e097ad29b3c6
16815 * tests/openpgp/defs.scm (create-file): Unlink file first.
16816 * tests/openpgp/shell.scm: Ask whether to import legacy test keys or
16817 not, and whether to drop 'batch' from the configuration. Add paths to
16818 all the programs to 'PATH'.
16820 gpgscm: Library improvements.
16821 + commit b4d25082fd4502ec01d511c22fecd60d513b81f4
16822 * tests/gpgscm/repl.scm (prompt-yes-no?): New function.
16823 * tests/gpgscm/tests.scm (pathsep-split): Likewise.
16824 (pathsep-join): Likewise.
16825 (with-path): Use the new function.
16827 gpgscm: Fail early if the test setup fails.
16828 + commit 7a6e6ad2880bbff54a75ff608d0ec97d6c405733
16829 * tests/gpgscm/tests.scm (make-environment-cache): Check status code
16832 gpg: Fix importing keys.
16833 + commit 956da89193370d5aa970cff5b77f605534481a02
16834 * g10/import.c (import_one): Fix error handling.
16836 2017-07-13 Werner Koch <wk@gnupg.org>
16838 gpg: Pass key origin values to import functions.
16839 + commit 330212efb927c119bb5135856f8582c0e4e2e6b7
16840 * g10/import.c (import_keys_stream): Remove this unused function.
16841 (import_keys_internal): Add arg origin.
16842 (import_keys): Ditto.
16843 (import_keys_es_stream): Ditto.
16845 (import_one): Ditto.
16846 (apply_meta_data): New stub.
16847 (import_secret_one): Pass 0 for ORIGIN.
16848 * g10/keyserver.c (keyserver_get_chunk): For now pass 0 for ORIGIN.
16849 (keyserver_fetch): Add arg origin.
16850 (keyserver_import_cert): Pass KEYORG_DANE for ORIGIN.
16851 (keyserver_import_wkd): Pass KEYORG_WKD for ORIGIN.
16852 * g10/gpg.c (main): Pass OPT.KEY_ORIGIN to import_keys and
16854 * g10/card-util.c (fetch_url): Pass KEYORG_URL for ORIGIN.
16856 gpg: New option --key-origin.
16857 + commit fa1155e89ebb4b16ee95549b8ab72672df3a0c54
16858 * g10/keydb.h (KEYORG_): Rename to KEYORG_.
16859 * g10/packet.h (PKT_user_id): Rename field keysrc to keyorg. Adjust
16861 (PKT_public_key): Ditto.
16862 (PKT_ring_trust): Ditto.
16863 * g10/options.h (struct opt): Add field key_origin.
16864 * g10/getkey.c (parse_key_origin): New.
16865 * g10/gpg.c (oKeyOrigin): New.
16866 (opts): Add "keys-origin".
16867 (main): Set option.
16869 2017-07-13 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16871 doc: Document gnupg version requirement for gpg-preset-passphrase.
16872 + commit 877a321d011deb3e8501aa9cc5e9f9cd0b19dddf
16875 2017-07-13 Justus Winter <justus@g10code.com>
16877 gpgscm: Make loading of modules less verbose.
16878 + commit f78fe1a4ec9d343199e1f424dd09e2937c913412
16879 * tests/gpgscm/main.c (load): Increase logging threshold.
16881 gpgscm: Make it impossible to catch '*interpreter-exit*'.
16882 + commit bce02a8b0f0e51775a4ee5536ccf35efc1f15ca6
16883 * tests/gpgscm/init.scm (throw'): Make it impossible to catch
16884 '*interpreter-exit*'. This fixes 'exit' (and with it 'fail') inside
16885 'catch' statements.
16887 2017-07-10 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16889 tofu: Compare squares instead of square roots.
16890 + commit d24594976686983c7186cbe4e78153888a13b6e4
16891 * g10/Makefile.am (tofu_source) [USE_TOFU]: Remove sqrtu32.h and
16893 * g10/sqrtu32.h, g10/sqrtu32.c: Removed files.
16894 * g10/tofu.c: Compare squares instead of square roots.
16896 speedo: Provide a vagrantfile to test speedo in an isolated VM.
16897 + commit 1455b406e63dd262938e49da5f83c05c17c60a8d
16898 * build-aux/Vagrantfile: New file.
16900 2017-07-06 Neal H. Walfield <neal@g10code.com>
16902 doc: Improve TOFU documentation.
16903 + commit 243b2a570c30586e19b8c88e43b282d62d8eb77c
16904 * doc/gpg.texi: Improve TOFU documentation.
16906 2017-07-05 Werner Koch <wk@gnupg.org>
16908 agent: Use MAX_PASSPHRASE_LEN (255) also for the loopback.
16909 + commit 3681ee7dc1e9d8c94fdb046d7be0bbcfeba1cfe9
16910 * agent/call-pinentry.c (agent_get_passphrase): Reduce maximum
16911 passphrase length as conveyed to the loopback to MAX_PASSPHRASE_LEN.
16912 * agent/genkey.c (agent_ask_new_passphrase): Extend the maximum
16913 passphrase as conveyed to the loopback to MAX_PASSPHRASE_LEN.
16915 doc: Update yat2m to take care of SOURCE_DATE_EPOCH.
16916 + commit 139de02b93773615bdd95e04a7f0c1ad73b4f6fb
16917 * doc/yat2m.c (main): Set a default for OPT_DATE.
16919 doc: Prefer an installed version of yat2m.
16920 + commit f6faa058749846de18cb34f1cc79867bb0029922
16921 * configure.ac (YAT2M): Check for tool.
16922 * doc/Makefile.am (yat2m-stamp): Use installed tool if possible.
16924 2017-07-01 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
16926 doc: Document obsolete option in gpgsm. Closes T2231.
16927 + commit 7fb724c61655c6f75c61572d65a46e21ae112574
16928 * doc/gpgsm.texi: Mark --prefer-system-dirmngr as obsolete.
16930 2017-06-28 Werner Koch <wk@gnupg.org>
16932 agent: Fix option --debug-wait.
16933 + commit ecd6c0160f49ae83001dfd150df6b1238fc479d5
16934 * agent/gpg-agent.c (opts): Typo fix.
16936 2017-06-26 Justus Winter <justus@g10code.com>
16938 agent: Support unprotected ssh keys.
16939 + commit 273964798592cd479c111f47e8ce46d5b1999d6a
16940 * agent/command-ssh.c (ssh_key_to_protected_buffer): If the empty
16941 passphrase is supplied, do not protect the key.
16943 tests: Improve test.
16944 + commit b49b1a87ac2695e3892fb001878da59fbc92fa37
16945 * tests/openpgp/ssh-export.scm: Split output at any whitespace.
16947 2017-06-23 Werner Koch <wk@gnupg.org>
16949 agent: Shutdown on removal of the home directory.
16950 + commit 1ead1ca818bddabc3bca22c195be667993eb3e2e
16951 * common/sysutils.c (gnupg_inotify_watch_delete_self): New.
16952 * agent/gpg-agent.c (handle_connections): Rename my_inotify_fd to
16954 (handle_connections): Add home_inotify_fd to watch the home directory.
16956 build: Add missing LIBASSUAN_CFLAGS to dirmngr/.
16957 + commit 815ecdf08a4285c75892cf9ab72feb13f3bcf590
16958 * dirmngr/Makefile.am (t_http_CFLAGS): Add LIBASSUAN_CFLAGS.
16959 (t_ldap_parse_uri_CFLAGS): Ditto.
16960 (t_dns_stuff_CFLAGS): Ditto.
16962 gpg,gpgsm: Emit status code ENCRYPTION_COMPLIANCE_MODE.
16963 + commit f31dc2540acf7cd7f09fd94658e815822222bfcb
16964 * common/status.h (STATUS_ENCRYPTION_COMPLIANCE_MODE): New.
16965 * g10/encrypt.c (encrypt_crypt): Emit new status code.
16966 * sm/encrypt.c (gpgsm_encrypt): Ditto.
16968 2017-06-21 Justus Winter <justus@g10code.com>
16970 gpg: Close cached keydb handle in gpgv.
16971 + commit a68a98233ab83f0c7b90e6e588b882085fe59d91
16972 * g10/gpgv.c (main): Close cached handle.
16974 tests: Add test for gpgv.
16975 + commit 62274d3c309d8948405c2f966bef507638b4d5c6
16976 * tests/openpgp/Makefile.am (XTESTS): Add the new test.
16977 * tests/openpgp/gpgv.scm: New file.
16978 * tests/openpgp/signed-messages.scm: Likewise.
16979 * tests/openpgp/verify.scm: Move the signed messages to the new file
16982 gpg: Fix printing keyserver URLs and notation data.
16983 + commit 890a3a70f2e1340d90c7f499358467979b182719
16984 * g10/keylist.c (show_keyserver_url): Print to 'fp', not to 'stdout'.
16985 (show_notation): Likewise.
16987 2017-06-20 Justus Winter <justus@g10code.com>
16989 dirmngr: Properly handle SRV records.
16990 + commit 48aae8167dcae80d43b08167a88d9eb170781a04
16991 * dirmngr/ks-engine-hkp.c (enum ks_protocol): New type.
16992 (struct hostinfo_s): New flags indicating whether we already did a
16993 A lookup, or a SRV lookup per protocol. Turn 'port' into an array.
16994 (create_new_hostinfo): Initialize new fields.
16995 (add_host): Update the port for the given protocol.
16996 (map_host): Simplify hosttable lookup misses. Check the SRV records
16997 for both protocols on demand, do the A lookup just once. Return the
17000 dirmngr: Refactor variable-sized array code.
17001 + commit fc4834d213af031b456c49c1ba5b5ef8873d1f18
17002 * dirmngr/ks-engine-hkp.c (struct hostinfo_s): Add explicit length and
17004 (MAX_POOL_SIZE): New macro.
17005 (create_new_hostinfo): Initialize new fields.
17006 (host_in_pool_p): Adapt.
17007 (select_random_host): Likewise.
17008 (add_host): Likewise. Move the resizing logic here.
17009 (hostinfo_sort_pool): New function.
17010 (map_host): Simplify. Move the resizing logic away from here.
17011 (ks_hkp_mark_host): Adapt.
17012 (ks_hkp_print_hosttable): Likewise.
17014 gpg: Fix error handling.
17015 + commit badc1cdae52bd434e5fac2e4275575afeccc2837
17016 * g10/keygen.c (generate_subkeypair): Handle errors from pinentry.
17018 2017-06-19 Werner Koch <wk@gnupg.org>
17020 gpg,gpgsm: Fix compliance check for DSA and avoid an assert.
17021 + commit 3621dbe52584bc8b417f61b5370ebaa5598db956
17022 * common/compliance.c (gnupg_pk_is_compliant): Swap P and Q for DSA
17023 check. Explicitly check for allowed ECC algos.
17024 (gnupg_pk_is_allowed): Swap P and Q for DSA check.
17025 * g10/mainproc.c (proc_encrypted): Simplify SYMKEYS check. Replace
17026 assert by debug message.
17028 2017-06-19 Justus Winter <justus@g10code.com>
17030 gpgscm: Limit the number of parallel jobs.
17031 + commit 61ef43546ba9f0209692a1569d2f033436566a02
17032 * ffi.c (do_wait_processes): Suppress the timeout error.
17033 * tests.scm (semaphore): New definition.
17034 (test-pool): Only run a bounded number of tests in parallel.
17035 (test::started?): New function.
17036 (run-tests-parallel): Do not report results, do not start the tests.
17037 (run-tests-sequential): Adapt.
17038 (run-tests): Parse the number of parallel jobs.
17040 gpgscm: Improve option parsing.
17041 + commit e555e7ed7de20fbbb1e3b005c32e292f29cc4a58
17042 * tests/gpgscm/tests.scm (flag): Accept arguments of the form
17045 gpgscm: Improve error handling of foreign functions.
17046 + commit 6639aedaee051e8104d7f63b9a5812abf79440ed
17047 * tests/gpgscm/ffi.scm (ffi-fail): Do not needlessly join the error
17050 gpgscm: Improve error reporting.
17051 + commit 4c8be58fd46bb16332e84ab8ce978087dc5c68a3
17052 * tests/gpgscm/init.scm (throw'): Guard against 'args' being atomic.
17053 * tests/gpgscm/scheme.c (Eval_Cycle): Remove any superfluous colons in
17056 tests: Run the OpenPGP tests using the new extended key format.
17057 + commit b766d3d1034e6068a91755ada68f7f7dbe2943b6
17058 * tests/openpgp/all-tests.scm: Generalize a bit, and also add a
17059 variant that uses the new extended key format.
17060 * tests/openpgp/defs.scm (create-gpghome): Conditionally enable the
17061 new extended key format.
17063 2017-06-19 Werner Koch <wk@gnupg.org>
17065 Change license of some files to LGPLv2.1.
17066 + commit 3419a339d9c4e800bf30e9021e05982d8c1021c1
17067 * COPYING.LIB: Rename to COPYING.LGPL3.
17068 * COPYING.LGPL21: New.
17069 * COPYING.GPL2: New.
17070 * Makefile.am: Distribute them.
17071 * AUTHORS: Update license pointers. Add BSI as copyright holder.
17072 * common/compliance.c, common/compliance.h: Add BSI copyright notice.
17073 Break overlong lines.
17074 * dirmngr/loadswdb.c: Add BSI copyright notices.
17075 * dirmngr/server.c: Ditto.
17076 * tools/call-dirmngr.c: Change license to LGPLv2.1. Add BSI
17078 * tools/call-dirmngr.h: Ditto.
17079 * tools/gpg-wks-client.c: Ditto.
17080 * tools/gpg-wks-server.c: Ditto.
17081 * tools/gpg-wks.h: Ditto.
17082 * tools/mime-maker.c: Ditto.
17083 * tools/mime-maker.h: Ditto.
17084 * tools/mime-parser.c: Ditto.
17085 * tools/mime-parser.h: Ditto.
17086 * tools/send-mail.c: Ditto.
17087 * tools/send-mail.h: Ditto.
17088 * tools/wks-receive.c: Ditto.
17089 * tools/wks-util.c: Ditto.
17090 * tools/rfc822parse.c, tools/rfc822parse.h: Change license to LGPLv2.1.
17092 2017-06-19 Justus Winter <justus@g10code.com>
17094 gpg: Disable compliance module for other GnuPG components.
17095 + commit 6e23416fe61d4130918f2d1bf6e1f98d102c4610
17096 * common/compliance.c (gnupg_{pk,cipher,digest}_is_compliant): Return
17097 false if the module is not initialized.
17098 (gnupg_{pk,cipher,digest}_is_allowed): Return true if the module is
17100 (gnupg_status_compliance_flag): Do not assert that the module is
17102 (gnupg_parse_compliance_option): Likewise.
17103 (gnupg_compliance_option_string): Likewise.
17105 2017-06-14 Justus Winter <justus@g10code.com>
17107 gpg: Check and fix keys on import.
17108 + commit 9b12b45aa5e67d4d422bf75a3879df1d52dbe67f
17109 * doc/gpg.texi: Document the new import option.
17110 * g10/gpg.c (main): Make the new option default to yes.
17111 * g10/import.c (parse_import_options): Parse the new option.
17112 (import_one): Act on the new option.
17113 * g10/options.h (IMPORT_REPAIR_KEYS): New macro.
17115 gpg: Refactor key checking and fixing.
17116 + commit 404fa8211b6188a0abe83ef43a4b44d528c0b035
17117 * g10/Makefile.am (gpg_sources): Add new files.
17118 * g10/gpgcompose.c (keyedit_print_one_sig): New stub.
17119 * g10/keyedit.c (sig_comparison): Move to new module.
17120 (check_all_keysigs): Likewise.
17121 (fix_keyblock): Adapt callsite.
17122 (keyedit_menu): Likewise.
17123 * g10/key-check.c: New file.
17124 * g10/key-check.h: Likewise.
17126 2017-06-13 Justus Winter <justus@g10code.com>
17128 gpg: Refactor keyedit module.
17129 + commit 8095d16b3ef6b5f01ec351824855708149f1c1c3
17130 * g10/Makefile.am (gpg_SOURCES): Add new file.
17131 * g10/keyedit.c (NODFLG_*): Move flags to the new header file.
17132 (print_one_sig): Export symbol and rename accordingly.
17133 (print_and_check_one_sig): Adapt accordingly.
17134 (check_all_keysigs): Likewise.
17135 * g10/keyedit.h: New file.
17136 * g10/main.h: Drop declarations, include new header.
17138 dirmngr: Implement querying nameservers over IPv6.
17139 + commit 15d2a009931f44a60b9df6325f837add208459d6
17140 * dirmngr/dns.c (dns_so_check): Reinitialize sockets on address family
17142 (enum dns_res_state): New states for querying over IPv6.
17143 (dns_res_exec): Implement the new states by copying and modifying the
17144 IPv4 variants. Branch to their respective counterparts if the current
17145 list of resolvers using the current address family is exhausted.
17147 2017-06-13 Werner Koch <wk@gnupg.org>
17149 gpg: Disable keydb handle caching only for W32.
17150 + commit e80925171ddb20c7e76c1db88c15ce2d9b09db86
17151 * g10/getkey.c (getkey_end) [!W32]: Re-enable caching.
17153 common: Fix -Wswitch warning.
17154 + commit 7c91b48f0e80266cf7491c2bb7d8aabc12362643
17155 * common/compliance.c (gnupg_digest_is_allowed): Don't include
17156 GCRY_MD_WHIRLPOOL because it is not a digest_algo_t.
17158 2017-06-11 Neal H. Walfield <neal@g10code.com>
17160 gpg: Send gpgcompose --help output to stdout, not stderr.
17161 + commit 7aeac20f12ed257d3d159b304afeeac7f406c9d2
17162 * g10/gpgcompose.c (show_help): Send gpgcompose --help output to
17163 stdout, not stderr.
17165 gpg: Improve some output of gpgcompose.
17166 + commit cb0484e0762a1ce05d00d949f4b70162e2f7b82c
17169 gpg: Support 'gpgcompose --encrypted-pop --help'
17170 + commit 4ddf4e114c8df06d89144e857b7601de0b7e5a7c
17171 * g10/gpgcompose.c (encrypted_pop_options): New variable.
17172 (encrypted_pop): Support the --help option.
17174 gpg: Remove dead code.
17175 + commit 8a9066865688cf17594b2bdde4b260b0ef36d68e
17176 * g10/gpgcompose.c (filter_pop): F->PKTTYPE will never be
17178 (encrypted_pop): Likewise and there is no option --encrypted-mdc-pop.
17180 2017-06-08 Marcus Brinkmann <mb@g10code.com>
17182 artwork: Add new banner.
17183 + commit bc5503b2bf273b51d5dc59617e596f1cfb742fbc
17184 * artwork/banner/banner-full.png: New file.
17185 * artwork/banner/banner-rectangle.png: New file.
17186 * artwork/banner/banner.svg: New file.
17187 * artwork/banner/Bungee-Regular.ttf: New file.
17188 * artwork/banner/Raleway-license.txt: New file.
17189 * artwork/banner/banner-half.png: New file.
17190 * artwork/banner/banner-skyscraper.png: New file.
17191 * artwork/banner/Bungee-license.txt: New file.
17192 * artwork/banner/Raleway-ExtraBold.ttf: New file.
17193 * artwork/banner/Raleway-SemiBold.ttf: New file.
17195 2017-06-08 Justus Winter <justus@g10code.com>
17197 common,gpg,sm: Restrict the use of algorithms according to CO_DE_VS.
17198 + commit a64a55e10420cf11e00062b590dffe5d0c3e8192
17199 * common/compliance.c (gnupg_pk_is_allowed): New function.
17200 (gnupg_cipher_is_allowed): Likewise.
17201 (gnupg_digest_is_allowed): Likewise.
17202 * common/compliance.h (enum pk_use_case): New definition.
17203 (gnupg_pk_is_allowed): New prototype.
17204 (gnupg_cipher_is_allowed): Likewise.
17205 (gnupg_digest_is_allowed): Likewise.
17206 * g10/decrypt-data.c (decrypt_data): Restrict use of algorithms using
17207 the new predicates.
17208 * g10/encrypt.c (encrypt_crypt): Likewise.
17209 * g10/gpg.c (main): Likewise.
17210 * g10/pubkey-enc.c (get_session_key): Likewise.
17211 * g10/sig-check.c (check_signature2): Likewise.
17212 * g10/sign.c (do_sign): Likewise.
17213 * sm/decrypt.c (gpgsm_decrypt): Likewise.
17214 * sm/encrypt.c (gpgsm_encrypt): Likewise.
17215 * sm/gpgsm.c (main): Likewise.
17216 * sm/sign.c (gpgsm_sign): Likewise.
17217 * sm/verify.c (gpgsm_verify): Likewise.
17219 gpg: Fix computation of compliance with CO_DE_VS.
17220 + commit b03fab09e188f7bb10237d4f20455e4026737e4e
17221 * g10/mainproc.c (proc_encrypted): Symmetric encryption is also in
17222 compliance with CO_DE_VS.
17224 2017-06-08 Werner Koch <wk@gnupg.org>
17226 dirmngr: Implement HTTP connect timeouts of 15 or 2 seconds.
17227 + commit 9b43220b8ad1a5c1cd51de3bbfff7ccbcc3fa877
17228 * dirmngr/dirmngr.c (oConnectTimeout, oConnectQuickTimeout): New
17230 (opts): New options --connect-timeout and --connect-quick-timeout.
17231 (DEFAULT_CONNECT_TIMEOUT): New.
17232 (DEFAULT_CONNECT_QUICK_TIMEOUT): New.
17233 (parse_rereadable_options): Handle new options.
17234 (post_option_parsing): New. Use instead of direct calls to
17235 set_debug() and set_tor_mode ().
17236 (main): Setup default timeouts.
17237 (dirmngr_init_default_ctrl): Set standard connect timeout.
17238 * dirmngr/dirmngr.h (opt): New fields connect_timeout and
17239 connect_quick_timeout.
17240 (server_control_s): New field timeout.
17241 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass timeout to
17243 * dirmngr/ks-engine-hkp.c (send_request): Call
17244 http_session_set_timeout.
17245 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
17246 * dirmngr/server.c (cmd_wkd_get, cmd_ks_search, cmd_ks_get)
17247 (cmd_ks_fetch): Implement --quick option.
17249 dirmngr: Allow a timeout for HTTP and other TCP connects.
17250 + commit 5b9025cfa1f9b1c67ddf2f6bf87d863e780cf157
17251 * dirmngr/http.c: Include fcntl.h.
17252 (http_session_s): Add field 'connect_timeout'.
17253 (http_session_new): Clear that.
17254 (http_session_set_timeout): New function.
17255 (my_wsagetlasterror) [W32]: New.
17256 (connect_with_timeout): New function.
17257 (connect_server): Add arg 'timeout' and call connect_with_timeout.
17258 (send_request): Add arg 'timeout' and pass it to connect_server.
17259 (http_raw_connect): Add arg 'timeout'.
17260 (http_open): Pass TIMEOUT from the session to connect_server.
17262 gpg: Avoid failure exit when scdaemon is disabled but not needed.
17263 + commit 17e5afd80f247c356f03c71e8b61da424ffedabb
17264 * g10/call-agent.c (warn_version_mismatch): Use log_info if error is
17267 2017-06-07 Justus Winter <justus@g10code.com>
17269 common: Add cipher mode to compliance predicate.
17270 + commit e051e396156211449568afa0ca7505dc13eaa3b4
17271 * common/compliance.c (gnupg_cipher_is_compliant): Add mode parameter.
17272 * common/compliance.h (gnupg_cipher_is_compliant): Likewise.
17273 * g10/mainproc.c (proc_encrypted): Adapt callsite.
17274 * sm/decrypt.c (gpgsm_decrypt): Likewise.
17276 common,gpg,sm: Initialize compliance module.
17277 + commit 21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb
17278 * common/compliance.c (gnupg_initialize_compliance): New function.
17279 * common/compliance.h (gnupg_initialize_compliance): New prototype.
17280 * g10/gpg.c (main): Use the new function.
17281 * sm/gpgsm.c (main): Likewise.
17283 common,gpg: Move the compliance option printer.
17284 + commit f440cf73eab0b0e75e3cb2e8c9e70a77f20ef1dc
17285 * common/compliance.c (gnupg_compliance_option_string): New function.
17286 * common/compliance.h (gnupg_compliance_option_string): New prototype.
17287 * g10/encrypt.c (write_pubkey_enc_from_list): Update callsite.
17288 * g10/gpg.c (main): Likewise.
17289 * g10/keyedit.c (keyedit_menu): Likewise.
17290 * g10/pkclist.c (build_pk_list): Likewise.
17291 * g10/main.h (compliance_option_string): Remove prototype.
17292 * g10/misc.c (compliance_option_string): Remove function.
17294 common,gpg,sm: Move the compliance option parser.
17295 + commit 842d233d408457cfa9a8473a6748472956f44e84
17296 * common/compliance.c (gnupg_parse_compliance_option): New function.
17297 * common/compliance.h (struct gnupg_compliance_option): New type.
17298 (gnupg_parse_compliance_option): New prototype.
17299 * g10/gpg.c (parse_compliance_option): Remove function.
17300 (compliance_options): New variable.
17301 (main): Adapt callsite.
17302 * sm/gpgsm.c (main): Use the new common function.
17303 * sm/gpgsm.h (opt): New field 'compliance'.
17305 gpg: Improve compliance with CO_DE_VS.
17306 + commit 027ce4ba37be1d052bca2f6109fe810ef57f4038
17307 * g10/gpg.c (set_compliance_option): The specification, section 4.1.1,
17308 forbids the use of encryption without integrity protection.
17310 2017-06-07 Andre Heinecke <aheinecke@intevation.de>
17312 speedo: Fix a minor memleak in the installer.
17313 + commit 13dc75a4e7cc2959003c08940fc53c6ece7b77e4
17314 * build-aux/speedo/w32/g4wihelp.c (path_remove): Free path_new on
17317 2017-06-06 Andre Heinecke <aheinecke@intevation.de>
17319 speedo: Fix source tar call ambiguity.
17320 + commit 96acbdd7265f504d06783adfd6322a6675c41c0a
17321 * build-aux/speedo.mk (dist-source): Expand exclude-vc to
17324 2017-06-01 Justus Winter <justus@g10code.com>
17326 gpg: Report compliance with CO_DE_VS.
17327 + commit be8ca8852629786266db4d3d69b2c2fb03bd6365
17328 * common/compliance.c (gnupg_pk_is_compliant): Add DSA with certain
17330 (gnupg_cipher_is_compliant): New function.
17331 (gnupg_digest_is_compliant): Likewise.
17332 * common/compliance.h (gnupg_cipher_is_compliant): New prototype.
17333 (gnupg_digest_is_compliant): Likewise.
17334 * common/status.h (STATUS_DECRYPTION_COMPLIANCE_MODE): New status.
17335 (STATUS_VERIFICATION_COMPLIANCE_MODE): Likewise.
17336 * doc/DETAILS: Document the new status lines.
17337 * g10/mainproc.c (proc_encrypted): Compute compliance with CO_DE_VS
17338 and report that using the new status line.
17339 (check_sig_and_print): Likewise.
17340 * sm/decrypt.c (gpgsm_decrypt): Likewise.
17341 * sm/verify.c (gpgsm_verify): Likewise.
17343 common: Improve checking for compliance with CO_DE_VS.
17344 + commit 3b70f62423041e614332b90d782576ee6868a030
17345 * common/compliance.c (gnupg_pk_is_compliant): Only certain RSA key
17346 sizes are compliant.
17348 gpg,common: Move the compliance framework.
17349 + commit 8a012280e0f0a462c094d106355aa436fceb1b76
17350 * common/Makefile.am (common_sources): Add new files.
17351 * common/compliance.c: New file. Move 'gnupg_pk_is_compliant' here,
17352 and tweak it to not rely on types private to gpg.
17353 * common/compliance.h: New file. Move the compliance enum here.
17354 * g10/keylist.c (print_compliance_flags): Adapt callsite.
17355 * g10/main.h (gnupg_pk_is_compliant): Remove prototype.
17356 * g10/misc.c (gnupg_pk_is_compliant): Remove function.
17357 * g10/options.h (opt): Use the new compliance enum.
17358 * sm/keylist.c (print_compliance_flags): Use the common functions.
17360 2017-05-31 Justus Winter <justus@g10code.com>
17362 gpg: Fix compliance computation.
17363 + commit 02af509dfc2b893720aa0c7b380fd7736b2bafd0
17364 * g10/misc.c (gnupg_pk_is_compliant): Compare against CO_RFC2440, not
17365 RFC2440 which is actually a predicate.
17368 + commit f9cb15b385f64f7c9403670f03632f81a874f213
17369 * sm/verify.c (gpgsm_verify): Simplify by using a newer gcrypt
17372 doc: Improve documentation.
17373 + commit 485b5a6e6dfe7aa545afa926e060d516ae911e42
17374 * doc/gpgsm.texi: Mention that '--with-key-data' implies
17377 2017-05-31 NIIBE Yutaka <gniibe@fsij.org>
17379 agent: Fix error from do_encryption.
17380 + commit c03e0eb01dc4632432d0472a6f8051142082bea4
17381 * agent/protect.c (do_encryption): Don't mask failure of OUTBUF
17384 scd: Fix error code on failure at usb_init.
17385 + commit 8defb21d34410d000c8b776e0e3a1edd04762638
17386 * scd/ccid-driver.c (ccid_dev_scan): Return GPG_ERR_ENODEV.
17388 scd: Handle a failure of libusb_init.
17389 + commit 5c33649782bf255af5a55f16eac5e85f059b00bf
17390 * scd/ccid-driver.c (ccid_get_reader_list, ccid_dev_scan): Handle
17393 2017-05-30 Andre Heinecke <aheinecke@intevation.de>
17395 gpg: Disable keydb handle caching.
17396 + commit d3d640b9cc98dd0d06b49a2e4d46eb67af96fe29
17397 * g10/getkey.c (getkey_end): Disable caching of the open keydb
17400 2017-05-30 NIIBE Yutaka <gniibe@fsij.org>
17402 agent: Fix memory leaks.
17403 + commit 996544626ea416c173a940db47f47f9e5cbd844c
17404 * agent/divert-scd.c (ask_for_card): Free WANT_KID and WANT_SN_DISP.
17405 * agent/gpg-agent.c (create_server_socket): Free UNADDR.
17407 2017-05-25 Werner Koch <wk@gnupg.org>
17409 dirmngr: This towel should better detect a changed resolv.conf.
17410 + commit de3a0988ef9addccd6b5c7950fb8797afbc3978d
17411 * dirmngr/dns-stuff.c (resolv_conf_changed_p): Fix initialization time
17414 dirmngr: Re-init libdns resolver on towel change of resolv.conf.
17415 + commit b5f356e9fba2d99909f8f54d7b7e6836bed87b68
17416 * dirmngr/dns-stuff.c: Include sys/stat.h.
17417 (RESOLV_CONF_NAME): New macro to replace a string.
17418 (resolv_conf_changed_p): New.
17419 (libdns_init): Call new function
17420 (libdns_res_open): Ditto.
17422 2017-05-24 Justus Winter <justus@g10code.com>
17424 agent: Make digest algorithms for ssh fingerprints configurable.
17425 + commit 525f2c482abb6bc2002eb878b03558fb43e6b004
17426 * agent/agent.h (opt): New field 'ssh_fingerprint_digest'.
17427 * agent/command-ssh.c (data_sign, ssh_identity_register): Honor the
17428 option for strings used to communicate with the user.
17429 * agent/findkey.c (agent_modify_description): Likewise.
17430 * agent/gpg-agent.c (cmd_and_opt_values): New value.
17431 (opts): New option '--ssh-fingerprint-digest'.
17432 (parse_rereadable_options): Set the default to MD5 for now.
17433 (main): Handle the new option.
17434 * doc/gpg-agent.texi: Document the new option.
17436 agent: Write both ssh fingerprints to 'sshcontrol' file.
17437 + commit a5f046d99a084b6a95268f03c1b588e8b78083cb
17438 * agent/command-ssh.c (add_control_entry): Hand in the key, write both
17439 the MD5- and the SHA256-based fingerprint to the 'sshcontrol' file
17440 when adding ssh keys.
17441 (ssh_identity_register): Adapt callsite.
17443 common: Correctly render SHA256-based ssh fingerprints.
17444 + commit 3a07a69dfc87b4fff610740d3dde8e23f0d2f8bc
17445 * common/ssh-utils.c (dummy_realloc): New function.
17446 (dummy_free): Likewise.
17447 (get_fingerprint): Prepend the fingerprint with the name of the digest
17448 algorithm. Correctly render SHA256-based ssh fingerprints.
17449 * common/t-ssh-utils.c (sample_keys): Add SHA256 hashes for the keys.
17450 (main): Add an option to dump the keys to gather fingerprints, also
17451 print the SHA256 fingerprint for keys given as arguments, and check
17452 the SHA256 fingerprints of the test keys.
17454 common: Support different digest algorithms for ssh fingerprints.
17455 + commit 3ac1a9d3a018816233a855faff059b4e0657a0f1
17456 * common/ssh-utils.c (get_fingerprint): Add and honor 'algo' parameter.
17457 (ssh_get_fingerprint{,_string}): Likewise.
17458 * common/ssh-utils.h (ssh_get_fingerprint{,_string}): Update prototypes.
17459 * common/t-ssh-utils.c (main): Adapt accordingly.
17460 * agent/command-ssh.c (agent_raw_key_from_file): Likewise.
17461 (ssh_identity_register): Likewise.
17462 * agent/command.c (do_one_keyinfo): Likewise.
17463 * agent/findkey.c (modify_description): Likewise.
17465 2017-05-22 NIIBE Yutaka <gniibe@fsij.org>
17467 agent: Add const qualifier for read-only table.
17468 + commit 509e4a4d7491daf496b21e5892f4f63ab90e8e21
17469 * agent/call-pinentry.c (start_pinentry): Add const to tbl.
17470 * agent/command-ssh.c (request_specs): Add const.
17471 (ssh_key_types): Likewise.
17472 (request_spec_lookup): Add const to the return value and SPEC.
17473 (ssh_request_process): Likewise.
17474 * agent/protect.c (protect_info): Add const.
17475 (agent_unprotect): Add const to algotable.
17477 g10: Fix default-key selection for signing, possibly by card.
17478 + commit fbb2259d22e6c6eadc2af722bdc52922da348677
17479 * g10/call-agent.c (warn_version_mismatch): Revert.
17480 (start_agent): Suppress version mismatch if relevant.
17481 * g10/getkey.c (get_seckey_default_or_card): New.
17482 * g10/skclist.c (build_sk_list): Use get_seckey_default_or_card.
17484 2017-05-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
17486 doc: Fix spellings.
17487 + commit 3713f67026467f63f80649c92ac4cc7973589855
17490 docs: Point to https://dev.gnupg.org/ .
17491 + commit 705da1eb23aef92c42d6d657b20a0984b104f72f
17492 Replace mentions of bugs.gnupg.org with https://dev.gnupg.org/. Since
17493 the project has transitioned to a better workflow for supporting
17494 contributions, we should ensure that our documentation points to the
17497 2017-05-17 Justus Winter <justus@g10code.com>
17499 gpgscm: Fix checking for opcode arguments.
17500 + commit aae50e0b6a61549e226e0c7785260ad517f0ffff
17501 * tests/gpgscm/scheme.c (Eval_Cycle): Update 'pcd' after dispatching
17504 tests: Fix agent teardown in release builds.
17505 + commit 0e1729bb993648deca84a2664ae78edc848d7003
17506 * tests/openpgp/defs.scm (start-agent,stop-agent): Use gpg-conf which
17507 will properly use the '--build-prefix' argument to make gpgconf use
17508 tools from the build directory.
17510 2017-05-17 NIIBE Yutaka <gniibe@fsij.org>
17512 g10: Fix gpgcompose.c.
17513 + commit ae95a7f5335e605fcd71fbe4a18ed384c88d590a
17514 * g10/gpgcompose.c (show_help): Check return value.
17516 g10: Suppress error for card availability check.
17517 + commit a8dd96826f8484c0ae93c954035b95c2a75c80f2
17518 * g10/call-agent.c (start_agent): Add semantics for card; Suppress
17519 error for card check.
17520 (warn_version_mismatch): Ignore an error for scdaemon.
17521 (agent_scd_serialno): Call start_agent with
17522 FLAG_FOR_CARD_SUPPRESS_ERRORS.
17524 2017-05-16 Justus Winter <justus@g10code.com>
17526 tests: Configure the environments to use scdaemon from build tree.
17527 + commit 386a7bbb245dd3ab7c4156a554adbe75d82bdf49
17528 * tests/gpgme/gpgme-defs.scm: Use the scdaemon from the build tree
17529 when writing a 'gpg-agent.conf'.
17530 * tests/gpgsm/gpgsm-defs.scm: Likewise.
17531 * tests/openpgp/defs.scm: Likewise.
17533 2017-05-15 Werner Koch <wk@gnupg.org>
17536 + commit 9574820329128f0ea8a98f9bfc0e77c73c3e0ec0
17539 po: Update German translation.
17540 + commit 4bd079dbdb44067688377156413dd32a82a89d22
17543 gpg: Do not mark ", " translatable.
17544 + commit 2d381b0f0ba97657e9fb2971eca6648bb77dd2cc
17545 * g10/tofu.c (ask_about_binding): Remove useless translation markers.
17547 2017-05-15 Andre Heinecke <aheinecke@intevation.de>
17549 dirmngr,w32: Fix ldap crl read on windows.
17550 + commit abe3a9043f86b48b92ddcec47197e032e35a6f4f
17552 * dirmngr/ldap-wrapper-ce.c (outstream_cookie_s): Add buffer_read_pos.
17553 (buffer_get_data): Use seperate read pos.
17555 2017-05-15 Werner Koch <wk@gnupg.org>
17557 common: Let format_text return an error.
17558 + commit 00b7767bc6fe309aa20375c859ebf708cfc7b9ea
17559 * common/stringhelp.c (format_text): Return NULL on error.
17560 * common/t-stringhelp.c (test_format_text): Adjust for change.
17561 * g10/gpgcompose.c (show_help): Abort on out of core.
17562 * g10/tofu.c (ask_about_binding): Abort on format_text error.
17563 (show_statistics): Ditto.
17564 (show_warning): Ditto.
17566 2017-05-11 Justus Winter <justus@g10code.com>
17568 tests: Also run all OpenPGP tests using keyrings.
17569 + commit bc01d62dc5d520e138499df5d80fb50f9e87e3e8
17570 * tests/openpgp/all-tests.scm: Run each test twice, once with public
17571 keys stored in a keybox, once with a keyring.
17572 * tests/openpgp/defs.scm (create-gpghome): Create a public keyring to
17573 make GnuPG use that instead of creating a keybox if '--use-keyring' is
17575 * tests/openpgp/setup.scm: Fix flag handling and usage.
17577 tests: Make it possible to run all tests using our infrastructure.
17578 + commit f4365790daa1d1400c7f0fe73ac9a6d25f0c6d0a
17579 * Makefile.am (TESTS_ENVIRONMENT): New variable.
17580 (check-all): New phony target to run all tests.
17581 * tests/gpgme/gpgme-defs.scm (have-gpgme?): New function that tests
17582 whether the GPGME test suite is available instead of exiting the
17584 * tests/gpgscm/init.scm (export): New macro.
17585 * tests/gpgscm/tests.scm (run-tests): New function.
17586 (load-tests): Likewise.
17587 * tests/gpgme/run-tests.scm: Simplify and move the parsing of the list
17588 of tests to 'all-tests.scm'.
17589 * tests/gpgsm/run-tests.scm: Likewise.
17590 * tests/migrations/run-tests.scm: Likewise.
17591 * tests/openpgp/run-tests.scm: Likewise.
17592 * tests/gpgme/Makefile.am: To select the tests to run, use the
17593 variable 'TESTS'. This harmonizes the interface with the automake
17595 * tests/gpgsm/Makefile.am: Likewise.
17596 * tests/migrations/Makefile.am: Likewise.
17597 * tests/openpgp/Makefile.am: Likewise.
17598 * tests/openpgp/README: Likewise.
17599 * agent/all-tests.scm: New file.
17600 * common/all-tests.scm: Likewise.
17601 * g10/all-tests.scm: Likewise.
17602 * g13/all-tests.scm: Likewise.
17603 * tests/gpgme/all-tests.scm: Likewise.
17604 * tests/gpgsm/all-tests.scm: Likewise.
17605 * tests/migrations/all-tests.scm: Likewise.
17606 * tests/openpgp/all-tests.scm: Likewise.
17607 * tests/run-tests.scm: Likewise.
17609 tests: Move the makefile parser.
17610 + commit 78d6a25a2db22ad2ae30d57ca980c0400cfef726
17611 * tests/gpgme/gpgme-defs.scm (parse-makefile, parse-makefile-expand):
17613 * tests/gpgscm/makefile.scm: ... here.
17614 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add new file.
17616 gpgscm: Make it possible to set the logfile name.
17617 + commit 29ef34cc4cb23e7b743dbf4cc8e5761f06076b9a
17618 * tests/gpgscm/tests.scm (test): Only set the default log filename
17619 when it has not been set before.
17621 2017-05-10 NIIBE Yutaka <gniibe@fsij.org>
17623 g10, sm, dirmngr, common: Add comment for fall through.
17624 + commit 0ce94a9698104d9bfc73d5a37478189564c96eb4
17625 * common/b64dec.c (b64dec_proc): Comment to clarify.
17626 * dirmngr/cdblib.c (cdb_make_put): Use same pattern to clarify.
17627 * dirmngr/dirmngr-client.c (read_pem_certificate): Likewise.
17628 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Likewise.
17629 * g10/armor.c (unarmor_pump): Likewise.
17630 * g10/gpg.c (main): Likewise.
17631 * g10/import.c (read_block): Likewise.
17632 * g10/keygen.c (make_backsig): Likewise.
17633 * g10/pkclist.c (check_signatures_trust): Likewise.
17634 * sm/gpgsm.c (main): Likewise.
17636 g10: Stop compiler warning for t-stutter.
17637 + commit 98b759119c81c5b39f34f8a9a7b6a57e91ad6470
17638 * g10/t-stutter.c (do_test): Refer current_test_group_failed.
17640 2017-05-08 Justus Winter <justus@g10code.com>
17642 gpg: Properly account for ring trust packets.
17643 + commit 22739433e98be80e46fe7d01d52a9627c1aebaae
17644 * g10/keyring.c (keyring_get_keyblock): Use the parser's packet count
17645 instead of counting ourself.
17646 * g10/packet.h (struct parse_packet_ctx_s): New field
17647 'n_parsed_packets'.
17648 (init_parse_packet): Initialize new field.
17649 * g10/parse-packet.c (parse): Count packets.
17651 2017-05-04 Justus Winter <justus@g10code.com>
17653 tests: Support tests that are expected to fail.
17654 + commit d6b46462f8c5c705ffb7cf8af03465a926aa11d3
17655 * tests/gpgscm/tests.scm (test-pool): Rework reporting. Filter using
17656 the computed test status instead of the return value. Also print the
17657 new categories 'failed expectedly' and 'passed unexpectedly'.
17658 (test): If a test ends with a bang (!), it is expected to fail. Adapt
17659 status, status-string, and xml accordingly.
17661 tests: Add function to dump packets.
17662 + commit eab0138e3179f247180a639a91570e5ee2c6ad0e
17663 * tests/openpgp/defs.scm (gpg-dump-packets): New function.
17665 2017-05-03 Andre Heinecke <aheinecke@intevation.de>
17667 speedo,w32: Fix silent user mode installation.
17668 + commit d378cc34a8d3d5053cf0c5ac7aa731c1bcefee22
17669 * build-aux/speedo/w32/inst.nsi (AddToPath): Move account
17671 (PrintNonAdminWarning): Remove is_user_install variable.
17673 2017-05-03 Justus Winter <justus@g10code.com>
17675 gpgscm: Create and re-use frame objects.
17676 + commit 8a168a6d4052ec31fed77c79bb96ffdd32bf9646
17677 * tests/gpgscm/scheme-private.h (struct scheme): New field
17679 * tests/gpgscm/scheme.c (enum scheme_types): New type 'T_FRAME'.
17680 (type_to_string): Handle new type.
17681 (settype): New macro.
17682 (gc_disable): Make sure there is at least one frame in the free list.
17683 (mark): Handle frame objects.
17684 (finalize_cell): Likewise.
17685 (dump_stack_initialize): Initialize free list.
17686 (dump_stack_free): Simplify.
17687 (frame_length): New variable.
17688 (dump_stack_make_frame): New function.
17689 (frame_slots): Likewise.
17690 (frame_payload): New macro.
17691 (dump_stack_allocate_frame): New function.
17692 (dump_stack_deallocate_frame): Likewise.
17693 (dump_stack_preallocate_frame): Likewise.
17694 (_s_return): Unpack frame object and deallocate it.
17695 (s_save): Wrap state in an frame object.
17696 (dump_stack_mark): Mark the free list.
17698 gpgscm: Merge opexe_0.
17699 + commit 9c6407d17e0cb9f4a370b1b83e7816577ec7d29d
17700 * tests/gpgscm/scheme-private.h (struct scheme): Remove field 'op'.
17701 * tests/gpgscm/scheme.c (opexe_0): Inline into 'Eval_Cycle'.
17702 (_Error_1): Return the opcode to evaluate next.
17703 (Error_1): Do not return, but set the opcode and goto dispatch.
17704 (Error_0): Likewise.
17705 (s_goto): Likewise.
17706 (s_return): Likewise.
17707 (s_return_enable_gc): Likewise.
17708 (s_thread_to): Remove superfluous cast.
17709 (_s_return): Return the opcode to evaluate next.
17710 (scheme_init_custom_alloc): Adapt to removal of field 'op'.
17712 2017-05-03 Andre Heinecke <aheinecke@intevation.de>
17714 speedo,w32: Allow installation as normal user.
17715 + commit cacfd4bce94704b531f68ee76fb40789e44fde67
17716 * build-aux/speedo/w32/g4wihelp.c (ENV_HK_USER, ENV_REG_USER):
17718 (path_add): Handle is_user_install variable. Don't abort
17719 if Path reg key does not exist. Fix crash if Path reg key
17720 does not contain a semicolon.
17721 (path_remove): Handle is_user_install variable. Fix crash
17722 if Path reg key does not exist.
17723 * build-aux/speedo/w32/inst.nsi: Remove obsolete HAVE_STARTMENU
17724 this was double guarded with WITH_GUI. Add Multiuser plugin and
17725 defines for this. Use SHCTX instead of HKLM / HKCU.
17726 (PrintNonAdminWarning): Only Warn and don't abort.
17728 2017-05-02 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
17730 g10: Remove skeleton options files.
17731 + commit 201f86803017c1db373023f7b506d4a0dc644bbc
17732 * build-aux/speed/w32/inst.nsi: stop installing skeleton files.
17733 * doc/gpg.texi: stop documenting skeleton files.
17734 * g10/Makefile.am: stop installing skeleton files.
17735 * g10/openfile.c (copy_options_file): Remove.
17736 (try_make_homedir): do not call copy_options_file.
17738 2017-04-27 NIIBE Yutaka <gniibe@fsij.org>
17740 g10: For signing, prefer available card key when no -u option.
17741 + commit 97a2394ecafaa6f58e4a1f70ecfd04408dc15606
17742 * g10/skclist.c (build_sk_list): Ask gpg-agent if card is available.
17743 Then, use the card key if any.
17745 2017-04-26 NIIBE Yutaka <gniibe@fsij.org>
17747 g10: Minor clean up.
17748 + commit 2262a80c5f44433a08bc0e21b77d9efe51596f21
17749 * g10/main.h (complete_sig): Remove declaration.
17750 * g10/sign.c (complete_sig): Make it static.
17752 2017-04-25 NIIBE Yutaka <gniibe@fsij.org>
17755 dirmngr: Fix aliasing problem in dns.c.
17756 + commit 247932f367f856e7ce91528e14f0aaf838150857
17757 * dirmngr/dns.c (dns_ai_setent): Care about aliasing.
17759 2017-04-25 NIIBE Yutaka <gniibe@fsij.org>
17761 tests: Remove *.conf.tmpl from Makefile.
17762 + commit 7851d73fd7f424f9a649690e1cb3055feb792c51
17763 * tests/openpgp/Makefile.am (TEST_FILES): Remove gpg.conf.tmpl
17764 and gpg-agent.conf.tmpl.
17766 g10: invalidate the fd cache for keyring.
17767 + commit 116cfd60779fbb3540da629db54dc2e148f4a3a2
17768 * g10/keyring.c (keyring_search_reset): Don't keep the FD cache.
17770 2017-04-24 Andre Heinecke <aheinecke@intevation.de>
17772 w32: Enable wildcard expansion with mingw-w64.
17773 + commit 2e71bf30f038ca0e142acbb6f650ce029105f8a2
17774 * g10/gpg.c: Define _dowildcard = -1;
17776 2017-04-24 Justus Winter <justus@g10code.com>
17778 tests: Fix Python detection.
17779 + commit ef1922b3b19df0aa7f8c15d503c603f76fc13f82
17780 * tests/gpgme/gpgme-defs.scm (python): Fix Python detection.
17782 gpgscm: Refactor cell finalization.
17783 + commit d2f6798621d751cd6ae6f091c4a2af4569c5b8aa
17784 * tests/gpgscm/scheme.c (finalize_cell): Use switch, return whether
17785 the cell may be freed.
17786 (gc): Update callsite.
17788 gpgscm: Tweak error message display.
17789 + commit 78547bfe8a885579438a17abadca02b62cce2844
17790 * tests/gpgscm/init.scm (throw'): If the first argument to the error
17791 is a string, display it as such.
17793 tests: Deduplicate and simplify code.
17794 + commit 06a177ceea529269a7404740c60416bd6a4567b1
17795 * tests/gpgme/gpgme-defs.scm (create-file): Move...
17796 * tests/gpgsm/gpgsm-defs.scm (create-file): ... likewise...
17797 * tests/openpgp/defs.scm (create-file): Here.
17798 (create-gpghome): Use 'create-file'.
17799 * tests/openpgp/gpg-agent.conf.tmpl: Delete file.
17800 * tests/openpgp/gpg.conf.tmpl: Likewise.
17803 + commit 9ae63b9caefdf3e925c5928667fcd9227132d27f
17804 * tests/gpgscm/t-child.scm: Use 'string-length' on the string.
17806 gpgscm: Improve syntax checking.
17807 + commit 4aab0e6ac7f2887a6f38f0cb95365dd7c30b4b18
17808 * tests/gpgscm/scheme.c (opexe_0): Make sure closure arguments are
17811 gpgscm: Emit JUnit-style XML reports.
17812 + commit ee715201ae784e840b6136393289e6dbd6f4c540
17813 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add new file.
17814 * tests/gpgscm/lib.scm (string-translate): New function.
17815 * tests/gpgscm/main.c (main): Load new file.
17816 * tests/gpgscm/tests.scm (dirname): New function.
17817 (test-pool): Record execution times, emit XML report.
17818 (test): Record execution times, record log file name, emit XML report.
17819 (run-tests-parallel): Write XML report.
17820 (run-tests-sequential): Likewise.
17821 * tests/gpgscm/xml.scm: New file.
17822 * tests/gpgme/Makefile.am (CLEANFILES): Add 'report.xml'.
17823 * tests/gpgsm/Makefile.am: Likewise.
17824 * tests/migrations/Makefile.am: Likewise.
17825 * tests/openpgp/Makefile.am: Likewise.
17827 gpgscm: Make logging less verbose and more useful.
17828 + commit 679920781a25ae5c0e49d4bd78e6926fd661778f
17829 * tests/gpgscm/tests.scm (call-with-io): When being verbose, include
17830 the pid in the output, and avoid duplicating the command arguments.
17832 gpgscm: Make test framework less functional.
17833 + commit a71f4142e13e2cc26ef0cd62f56a1ccb7ce678ee
17834 * tests/gpgscm/tests.scm (test-pool, tests): Previously, these methods
17835 updated objects by creating new updated copies of the object being
17836 manipulated. This made the code awkward without any benefit,
17837 therefore I change it to just update the object.
17839 gpgscm: Move 'trace' and 'stringify'.
17840 + commit f03d6897be904da58cad76b4bd07729922b47616
17841 * tests/gpgscm/tests.scm (trace, stringify): Move...
17842 * tests/gpgscm/lib.scm: ... here.
17844 gpgscm: Avoid fruitless garbage collection cycles.
17845 + commit 245860ecaf8b9e82ca577385abd453ac92ffcd26
17846 * tests/gpgscm/scheme-private.h (CELL_MINRECOVER): New macro.
17847 * tests/gpgscm/scheme.c (_get_cell): Move the heuristic to get more
17849 (gc): ... here where every caller benefits from the optimization.
17851 2017-04-20 NIIBE Yutaka <gniibe@fsij.org>
17853 g13: Fix for Solaris.
17854 + commit 10519270d36586c536bfb6c4cda8ac17c01f4976
17855 * configure.ac: Check sys/mkdev.h.
17856 * g13/sh-dmcrypt.c: Include sys/mkdev.h.
17858 2017-04-18 NIIBE Yutaka <gniibe@fsij.org>
17860 dirmngr: Fix final close of LISTEN_FD.
17861 + commit 4b2581dc0ea1d03e70023bb0748aa0c21c0a2173
17862 * dirmngr/dirmngr.c (handle_connections): Close LISTEN_FD.
17864 dirmngr: Fix API difference for Windows.
17865 + commit 0d0a7efa8fa0accc1da851917376e2328ef33c96
17866 * dirmngr/http.c (read_server, write_server): Use assuan_fd_t.
17867 (http_wait_response): Use FD2INT to get unsigned integer fd.
17868 (read_server, write_server): Likewise.
17869 (simple_cookie_read, simple_cookie_write): Use assuan_fd_t.
17871 2017-04-17 NIIBE Yutaka <gniibe@fsij.org>
17873 agent: More minor change.
17874 + commit 9296aed4bd2ad09d23339e658264e557c5312585
17875 * agent/command.c (cmd_pksign): Remove redundant assignment.
17877 agent: Minor cleanup.
17878 + commit 45c52cca1401b930878a8f901b63cfbb22e9e327
17879 * agent/command-ssh.c (ssh_key_to_protected_buffer): Not touch ERR.
17880 * agent/command.c (cmd_genkey, cmd_import_key): Clean up.
17882 tests: Minor memory fix.
17883 + commit b9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a
17884 * tests/openpgp/fake-pinentry.c (get_passphrase): Free the memory.
17886 g10: Fix parse_ring_trust.
17887 + commit 256e861bce3dc9aba8fab4df47a40cae3bede175
17888 * g10/parse-packet.c (parse_ring_trust): Fix condition.
17891 + commit 0dec0cc281dfa26db89f8cc5ee002dea5c2b2e81
17892 * g10/export.c (cleartext_secret_key_to_openpgp): No initialization.
17893 (do_export_one_keyblock): Initialize with GPG_ERR_NOT_FOUND.
17894 * g10/getkey.c (get_best_pubkey_byname): Add non-null check.
17895 * g10/tofu.c (tofu_set_policy): ERR initialize to 0.
17897 g10: Fix import/export filter property match.
17898 + commit af5f8ecf51f5e1f33e832d4946d02313b78a0536
17899 * g10/import.c (impex_filter_getval): Fix to "else if".
17901 2017-04-14 NIIBE Yutaka <gniibe@fsij.org>
17903 agent: Clean up error initialize/return.
17904 + commit 36c4e540f1a4992675ee6e0acca1231325457079
17905 * agent/call-pinentry.c (start_pinentry): Return RC.
17906 * agent/command-ssh.c (ssh_handler_request_identities): Don't set ERR.
17907 * agent/findkey.c (try_unprotect_cb): Return ERR.
17908 (unprotect): Don't set RC.
17909 * agent/gpg-agent.c (handle_connections): Don't set fd.
17911 dirmngr: More fix for test program.
17912 + commit adb77d095b3958482863a17c83746f33945638dc
17913 * dirmngr/t-http.c (main): Care about no TLS.
17915 dirmngr: More fix for Windows.
17916 + commit 4771bad610eb59e701fe8e53468e2af22d45eeb0
17917 * dirmngr/http.c (simple_cookie_read, simple_cookie_write): Only
17918 valid with HTTP_USE_NTBTLS.
17919 (_my_socket_new): Simply cast to int since it's for debug.
17920 (_my_socket_ref, _my_socket_unref): Likewise.
17922 2017-04-13 NIIBE Yutaka <gniibe@fsij.org>
17924 dirmngr: Fix http.c for sockaddr_storage.
17925 + commit 86dcb03134fd4957d51ebaa06b7991239f9ee56a
17926 dirmngr/http.c (use_socks): Use sockaddr_storage.
17927 (my_sock_new_for_addr, connect_server): Likewise.
17929 dirmngr: Fix alignment of ADDR.
17930 + commit 892b33bb2c57785927ea6652091191da2deed464
17931 * dirmngr/dns-stuff.h (dns_addrinfo_s): Use struct sockaddr_storage
17932 for size and alignment.
17933 * dirmngr/dns-stuff.c (resolve_name_libdns): Follow the change.
17934 (resolve_dns_name): Use struct sockaddr_storage.
17935 (resolve_addr_standard, resolve_dns_addr): Likewise.
17936 (resolve_dns_addr): Likewise.
17938 dirmngr: Fix thread key type.
17939 + commit 37018adce6ea4920b34d59afcfe4f55f716b3086
17940 * dirmngr/dirmngr.c (my_tlskey_current_fd): Use npth_key_t.
17942 common, g10: Fix enumeration types.
17943 + commit 74258278efacd7069e8c1df8ff6fc3f4675d713e
17944 * common/openpgpdefs.h (CIPHER_ALGO_PRIVATE10, PUBKEY_ALGO_PRIVATE10)
17945 (DIGEST_ALGO_PRIVATE10, COMPRESS_ALGO_PRIVATE10): New.
17946 * g10/misc.c (map_pk_gcry_to_openpgp): Add type conversion.
17947 (map_cipher_openpgp_to_gcry, openpgp_cipher_algo_name)
17948 (openpgp_pk_test_algo2, map_md_openpgp_to_gcry)
17949 (pubkey_get_npkey): Add default handling.
17951 dirmngr: More fix for Windows.
17952 + commit 5af104b541ed430a54eb0163a1d29e1d043f9377
17953 * dirmngr/dns.c (socket_fd_t, STDCALL): New.
17954 (dns_te_initname): Use.
17956 2017-04-12 NIIBE Yutaka <gniibe@fsij.org>
17958 dirmngr: Fix type of sock.
17959 + commit 6755b3b505f79a5a233b18e85f57a0d3a455e664
17960 * dirmngr/http.c (send_request): Use assuan_fd_t for SOCK.
17962 tools: Fix condition for gpg-connect-agent.
17963 + commit f52f6af834cc488d11612e349e4af023d69a45f4
17964 * tools/gpg-connect-agent.c (start_agent): Add paren.
17966 dirmngr: Fix possible null reference.
17967 + commit 7ae1857c90ab43ad9e31f0fb6dbd37f25cc37278
17968 * dirmngr/dns.c (dns_error_t dns_trace_fput): Check NULL.
17970 common: Simplify format_text.
17971 + commit 7b4edf14bb16fbe786e55b829a208960396ce8df
17972 * common/stringhelp.c (format_text): Don't allow IN_PLACE formatting.
17973 * common/stringhelp.h: Change the API with no IN_PLACE.
17974 * common/t-stringhelp.c (test_format_text): Follow the change.
17975 * g10/gpgcompose.c (show_help): Likewise.
17976 * g10/tofu.c (format_conflict_msg_part1, ask_about_binding)
17977 (show_statistics, show_warning): Likewise.
17979 gpgscm: Fix test program.
17980 + commit 7f9032d4a8ce53ce1a972bd3c1f8d20b3776756b
17981 * tests/gpgscm/t-child.c (main): Fix for setmode.
17983 dirmngr: Fix plus1_ns.
17984 + commit 60d9a9e6b4ae3af029596d14732c02f49203326d
17985 * dirmngr/dns.c (plus1_ns): Fix the initial implementation.
17987 scd: Handle unexpected suspend/resume by CCID driver.
17988 + commit f053f99ed0b0c6de7b7c4a07cbd7f7d213ddf0db
17989 * scd/ccid-driver.c (bulk_in): Handle unexpected failure.
17991 dirmngr: Fix dns-stuff.c in another way.
17992 + commit bd0c94939faf8ccfc117fb595e9bc0105edcafa4
17993 * dirmngr/dns-stuff.c (T_CERT): Define our own.
17995 Revert "dirmngr: Fix dns-stuff.c."
17996 + commit 0b904ddea8bddaa2fd7893a9dce1df1cb5e36b00
17997 This reverts commit 1538523156be568046f632d1775eae30ea8bd556.
17999 dirmngr: Fix dns-stuff.c.
18000 + commit 1538523156be568046f632d1775eae30ea8bd556
18001 * dirmngr/dns-stuff.c: Don't include arpa/nameser.h.
18003 agent: Simplify stream_read_cstring.
18004 + commit c64763c3a74ecc61c2f6c5edb679a2a3879d79e7
18005 * agent/command-ssh.c (stream_read_cstring): Just call
18006 stream_read_string.
18008 dirmngr: Use a function to increment network short.
18009 + commit 64904ce627b6b0661acf15b5b70103c4842bb0f3
18010 * dirmngr/dns.c (plus1_ns): New.
18011 (dns_p_push): Use it.
18013 g10: Minor clean up for export.c.
18014 + commit 05218829589f6d4b09933fa19f568c2019367d5c
18015 * g10/export.c (export_ssh_key): Check IDENTIFIER for error.
18016 Release base64 thing on error of get_membuf.
18018 2017-04-11 NIIBE Yutaka <gniibe@fsij.org>
18020 g13: Include sys/sysmacros.h if available.
18021 + commit c3cc9551dcc89cc25c0a0ec16d8eb12c1c221638
18022 * configure.ac: Add test for sys/sysmacros.h.
18023 * g13/sh-dmcrypt.c: Include sys/sysmacros.h.
18025 2017-04-11 Justus Winter <justus@g10code.com>
18027 tests: Fix distcheck.
18028 + commit 00be2a92625e832e8dd621f2a8f72b124c6d50ca
18029 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add 'gnupg.scm'.
18031 tests: Avoid relying on implicit gpg commands.
18032 + commit cde626e7f7349a73d58ec3236ab3b43dec852bb5
18033 * tests/openpgp/armdetach.scm: Always use an explicit command instead
18034 of relying on gpg to guess what we want.
18035 * tests/openpgp/armdetachm.scm: Likewise.
18036 * tests/openpgp/armencrypt.scm: Likewise.
18037 * tests/openpgp/armencryptp.scm: Likewise.
18038 * tests/openpgp/armor.scm: Likewise.
18039 * tests/openpgp/armsignencrypt.scm: Likewise.
18040 * tests/openpgp/armsigs.scm: Likewise.
18041 * tests/openpgp/clearsig.scm: Likewise.
18042 * tests/openpgp/compression.scm: Likewise.
18043 * tests/openpgp/conventional-mdc.scm: Likewise.
18044 * tests/openpgp/conventional.scm: Likewise.
18045 * tests/openpgp/decrypt-dsa.scm: Likewise.
18046 * tests/openpgp/decrypt.scm: Likewise.
18047 * tests/openpgp/detach.scm: Likewise.
18048 * tests/openpgp/detachm.scm: Likewise.
18049 * tests/openpgp/ecc.scm: Likewise.
18050 * tests/openpgp/encrypt-dsa.scm: Likewise.
18051 * tests/openpgp/encrypt-multifile.scm: Likewise.
18052 * tests/openpgp/encrypt.scm: Likewise.
18053 * tests/openpgp/encryptp.scm: Likewise.
18054 * tests/openpgp/seat.scm: Likewise.
18055 * tests/openpgp/signencrypt-dsa.scm: Likewise.
18056 * tests/openpgp/signencrypt.scm: Likewise.
18057 * tests/openpgp/sigs-dsa.scm: Likewise.
18058 * tests/openpgp/sigs.scm: Likewise.
18060 tests: Make tests more robust.
18061 + commit 1b28d9dbe0260b2a4645c4b5caae11d9f375c942
18062 * tests/openpgp/defs.scm (have-opt-always-trust): Execute in empty
18063 ephemeral home directory. This prevents gpg from picking up the
18064 configuration from the current gnupghome (if any).
18065 * tests/migrations/common.scm (untar-armored): Likewise.
18067 tests: Move common functionality.
18068 + commit ccd2187212c12b84c86a10fd4417a16536243179
18069 * tests/openpgp/defs.scm (with-home-directory,
18070 with-ephemeral-home-directory): Move...
18071 * tests/gpgscm/gnupg.scm: ... to this new file.
18072 * tests/gpgscm/main.c (main): Load the new file.
18074 2017-04-11 NIIBE Yutaka <gniibe@fsij.org>
18076 dirmngr: Fix build for Windows.
18077 + commit 3133402241167ccad70fa888a47ffcbe04e7b4c5
18078 * dirmngr/ldap-wrapper-ce.c (outstream_cookie_writer): Use
18081 g10,tools: Fix bzlib.h include order.
18082 + commit 03d77b60befa4e2f8437a80ac429cca3e54688f8
18083 * g10/compress-bz2.c: Include bzlib.h after gcrypt.h.
18084 * tools/gpgsplit.c: Likewise.
18086 g10: Minor clean up for TOFU.
18087 + commit f079822b2ce06c18b7ea45efed2d29b54e38f04d
18088 * g10/tofu.c (ask_about_binding): Fix for qualifier.
18090 common: Portability fix for logging.c.
18091 + commit 456c5cdb2d72bba77e2a30c8fdb1c1cebbe9b1d2
18092 * common/logging.c (S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Avoid
18093 duplicated definition.
18095 tools: Portability fix for gpgparsemail.
18096 + commit a1446163d584cdc3003c7d5b5fc6d74737c1732d
18097 * tools/rfc822parse.c (my_stpcpy): Rename from stpcpy.
18099 2017-04-10 Justus Winter <justus@g10code.com>
18101 gpgscm: Fix opcode dispatch.
18102 + commit 1b6adab41d386b587f65e5c6f14a63859ac1226b
18103 * tests/gpgscm/scheme.c (opexe_0): Consider 'op', not 'sc->op'. The
18104 former is the opcode we are currently executing.
18106 gpgscm: Mmap script files.
18107 + commit c7f0d90592fd0348a3818ac897f91e6859584146
18108 * tests/gpgscm/main.c (load): Try to mmap the script.
18109 * tests/gpgscm/scheme.c (scheme_load_memory): New function, a
18110 generalization of 'scheme_load_string'.
18111 * tests/gpgscm/scheme.h (scheme_load_memory): New prototype.
18113 gpgscm: Refactor checking for opcode arguments.
18114 + commit f3d1f6867792deeb9a2a63744ee9b076c41c58f3
18115 * tests/gpgscm/scheme.c (op_code_info): Fix type, add forward
18117 (check_arguments): New function.
18118 (Eval_cycle): Use the new function.
18120 gpgscm: Improve syntax dispatch.
18121 + commit b628e62b5b9f7ed5cbb1bfe34727b5ee8129f7d4
18122 * tests/gpgscm/scheme.c (assign_syntax): Add opcode parameter, store
18124 (syntaxnum): Add sc parameter, retrieve opcode from tag.
18125 (opexe_0): Adapt callsite.
18126 (scheme_init_custom_alloc): Likewise.
18128 gpgscm: Make tags mandatory.
18129 + commit a1ad5d6a30cf72d9b7e7bb449985dc69d5e01c4b
18130 * tests/gpgscm/opdefines.h: Make tags mandatory.
18131 * tests/gpgscm/scheme.c: Likewise.
18132 * tests/gpgscm/scheme.h: Likewise.
18134 gpgscm: Add and use opcode for reversing a list in place.
18135 + commit e1bb9326dc381ae2711a81ab621e21a66388bcbd
18136 * tests/gpgscm/lib.scm (string-split-pln): Use 'reverse!'.
18137 (string-rtrim): Likewise.
18138 * tests/gpgscm/opdefines.h (reverse!): New opcode.
18139 * tests/gpgscm/scheme.c (opexe_0): Handle new opcode.
18141 gpgscm: Deduplicate code.
18142 + commit 3e91019a92b9bb3bb5a8cd62336b4cf65964e45b
18143 * tests/gpgscm/scheme.c (oblist_add_by_name): Deduplicate.
18144 (new_slot_spec_in_env): Likewise.
18146 gpgscm: Move dispatch table into rodata.
18147 + commit 7dff6248bddd5583988ac562318cf0d76a409d0e
18148 * tests/gpgscm/opdefines.h: Use 0 instead of NULL.
18149 * tests/gpgscm/scheme.c (op_code_info): Use char arrays instead of
18150 pointers, make arity parameters smaller.
18152 (_OP_DEF): Likewise.
18153 (dispatch_table): Likewise.
18154 (procname): Likewise.
18155 (Eval_cycle): Likewise.
18156 (scheme_init_custom_alloc): Likewise.
18158 gpgscm: Use more threaded code.
18159 + commit 6f217d116d1a12c6093bb253dbfa349bc81bc90b
18160 * tests/gpgscm/scheme.c (opexe_0): Use 's_thread_to' instead of
18161 's_goto' wherever possible.
18163 gpgscm: Remove now obsolete dispatcher function from the opcodes.
18164 + commit e7ed9822e20ee4bbb4cdd9eca8121b4ade87e5ce
18165 * tests/gpgscm/opdefines.h: Remove now obsolete dispatcher function
18167 * tests/gpgscm/scheme-private.h (_OP_DEF): Adapt.
18168 * tests/gpgscm/scheme.c (dispatch_func): Remove type declaration.
18169 (op_code_info): Remove 'func'.
18171 (Eval_Cycle): Always call 'opexe_0'.
18173 gpgscm: Merge 'opexe_6'.
18174 + commit ddf444828b9b3f75d964473a2c0e77f75f094cf4
18175 * tests/gpgscm/scheme.c (opexe_6): Merge into 'opexe_0'.
18176 * tests/gpgscm/opdefines.h: Adapt.
18178 gpgscm: Merge 'opexe_5'.
18179 + commit 1379df44537b67b7c2fbc0fb5bc6f7945a5d7ebb
18180 * tests/gpgscm/scheme.c (opexe_5): Merge into 'opexe_0'.
18181 * tests/gpgscm/opdefines.h: Adapt.
18183 gpgscm: Merge 'opexe_4'.
18184 + commit 4f835104b9475e7d585d859b85e7d0d4cfe9aab3
18185 * tests/gpgscm/scheme.c (opexe_4): Merge into 'opexe_0'.
18186 * tests/gpgscm/opdefines.h: Adapt.
18188 gpgscm: Merge 'opexe_3'.
18189 + commit d591ab65d37ee467ca91ad851ab236f2985c1ee2
18190 * tests/gpgscm/scheme.c (opexe_3): Merge into 'opexe_0'.
18191 * tests/gpgscm/opdefines.h: Adapt.
18193 gpgscm: Merge 'opexe_2'.
18194 + commit 6cad38228f6ebfdc8e52960223b492597aff26a0
18195 * tests/gpgscm/scheme.c (opexe_2): Merge into 'opexe_0'.
18196 * tests/gpgscm/opdefines.h: Adapt.
18198 gpgscm: Merge 'opexe_1'.
18199 + commit 154af876f05b773bf3a860fcb4cc41066da27beb
18200 * tests/gpgscm/scheme.c (opexe_1): Merge into 'opexe_0'.
18201 * tests/gpgscm/opdefines.h: Adapt.
18203 2017-04-10 NIIBE Yutaka <gniibe@fsij.org>
18205 agent: Use "ll" length specifier when time_t is larger.
18206 + commit 170660ed11b56145dea4865e751ae5aff1681fe2
18207 * agent/command.c (cmd_keytocard): Use KEYTOCARD_TIMESTAMP_FORMAT.
18209 scd: Relax a condition for p15 driver.
18210 + commit 7501f2e9c4e6fd94a191b381d52ec2fe1d103e29
18211 * scd/app-p15.c (read_ef_aodf): Fix.
18213 scd: Relax a condition for p15 driver.
18214 + commit 3c1ad96f1ce838daf2d861b33e6611f6d3043d25
18215 * scd/app-p15.c (read_ef_aodf): Remove possibly redundant condition.
18217 scd: Remove "special transport" support.
18218 + commit 34199ef677bb40eadf0da696a111f7036bc3187e
18219 * scd/ccid-driver.c (transports, my_sleep, prepare_special_transport)
18221 (ccid_dev_scan, ccid_dev_scan_finish, ccid_get_BAI): Only for USB.
18222 (ccid_open_reader, do_close_reader, bulk_out, bulk_in, abort_cmd)
18223 (ccid_poll, ccid_transceive): Likewise.
18225 2017-04-07 Justus Winter <justus@g10code.com>
18227 gpgscm: Allocate small integers in the rodata section.
18228 + commit 8640fa880d7050917f4729f2c0cb506e165ee446
18229 * tests/gpgscm/Makefile.am (gpgscm_SOURCES): Add new file.
18230 * tests/gpgscm/scheme-private.h (struct cell): Move number to the top
18231 of the union so that we can initialize it.
18232 (struct scheme): Remove 'integer_segment'.
18233 * tests/gpgscm/scheme.c (initialize_small_integers): Remove function.
18234 (small_integers): New variable.
18235 (MAX_SMALL_INTEGER): Compute.
18236 (mk_small_integer): Adapt.
18237 (mark): Avoid marking objects already marked. This allows us to run
18238 the algorithm over objects in the rodata section if they are already
18240 (scheme_init_custom_alloc): Remove initialization.
18241 (scheme_deinit): Remove deallocation.
18242 * tests/gpgscm/small-integers.h: New file.
18244 gpgscm: Make global data constant when possible.
18245 + commit c9c3fe883271868d3b2dd287d295cf6a8f8ffc05
18246 * tests/gpgscm/scheme-private.h (struct scheme): Make 'vptr' const.
18247 * tests/gpgscm/scheme.c (num_zero): Statically initialize and turn
18249 (num_one): Likewise.
18250 (charnames): Change type so that it can be stored in rodata.
18251 (is_ascii_name): Adapt slightly.
18252 (assign_proc): Make argument const char *.
18253 (op_code_info): Make some fields const char *.
18254 (tests): Make const.
18255 (dispatch_table): Make const. At least it can be made read-only after
18257 (Eval_Cycle): Adapt slightly.
18258 (vtbl): Make const.
18260 gpgscm: Remove arbitrary limit on number of cell segments.
18261 + commit 56638c28adc1bbe9fc052b92549a50935c0fe99c
18262 * tests/gpgscm/scheme-private.h (struct scheme): Remove fixed-size
18263 arrays for cell segments, replace them with a pointer to the new
18264 'struct cell_segment' instead.
18265 * tests/gpgscm/scheme.c (struct cell_segment): New definition.
18266 (_alloc_cellseg): Allocate the header within the segment, return a
18267 pointer to the header.
18268 (_dealloc_cellseg): New function.
18269 (alloc_cellseg): Insert the segments into a list.
18270 (_get_cell): Allocate a new segment if less than a quarter of
18271 CELL_SIGSIZE is recovered during garbage collection.
18272 (initialize_small_integers): Adapt callsite.
18273 (gc): Walk the list of segments.
18274 (scheme_init_custom_alloc): Remove initialization of removed field.
18275 (scheme_deinit): Adapt deallocation.
18277 gpgscm: Fix compact vector encoding.
18278 + commit bf8b5e9042b3d86d419b2ac1987a9298c9d21500
18279 * tests/gpgscm/scheme-private.h (struct cell): Use uintptr_t for
18280 '_flags'. This way, '_flags' has the size of a machine word.
18282 2017-04-07 Werner Koch <wk@gnupg.org>
18284 gpg: Fix printing of offline taken subkey.
18285 + commit 547bc01d57528ecc27b3b5e16797967a7f88fecf
18286 * g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32.
18288 2017-04-07 NIIBE Yutaka <gniibe@fsij.org>
18290 scd: Internal CCID reader cleanup.
18291 + commit cc420d34880e2a050b39f969873974cfc35fa5c3
18292 * scd/ccid-reader.c (scan_usb_device): Only for scan mode, so, rename
18293 from scan_or_find_usb_device.
18294 (scan_devices): Likewise. Remove support of special transport types.
18295 (ccid_get_reader_list): Simplify.
18296 (abort_cmd): Fix error return.
18297 (send_escape_cmd): Fix for RESULTLEN == NULL.
18298 (ccid_transceive_secure): Remove unnecessary var updates.
18300 scd: Don't keep CCID reader open when card is not available.
18301 + commit 3c93595d701c59cbc9b67a7fd0bcde7ee0fada1a
18302 * scd/apdu.c (open_ccid_reader): Fail if no ATR.
18304 agent: Serialize access to passphrase cache.
18305 + commit ebe12be034f052cdec871f0d8ad1bfab85d7b943
18306 * agent/cache.c (encryption_lock): Remove.
18307 (cache_lock): New. Now, we have coarse grain lock to serialize
18308 entire cache access.
18309 (initialize_module_cache): Use CACHE_LOCK.
18310 (init_encryption, new_data): Remove ENCRYPTION_LOCK.
18311 (agent_flush_cache, agent_put_cache, agent_get_cache): Lock the cache.
18313 2017-04-06 Justus Winter <justus@g10code.com>
18315 gpgscm: Avoid mutating integer.
18316 + commit f1dc34f502a68673e7a29f3fcf57b8dc6a4fac89
18317 * tests/gpgscm/scheme.c (opexe_5): Do not modify the integer in-place
18318 while printing an vector. Integer objects may be shared, so they must
18321 gpgscm: Initialize unused slots in vectors.
18322 + commit b83903f59ec5d49ac579f263da70ebc8dc3645b5
18323 * tests/gpgscm/scheme.c (get_vector_object): Initialize unused slots
18324 at the end of vectors.
18326 tests: Fix distcheck.
18327 + commit 23f00f109ddba595db4f73a6182750177c7dd75d
18328 * tests/Makefile.am (SUBDIRS): Add 'pkits' again. Simply dropping it
18329 makes 'make distcheck' unhappy.
18330 * tests/pkits/Makefile.am (TESTS): Remove all tests.
18332 tests: Disable 'pkits' test suite.
18333 + commit af1c1a57e46a00a32d83c1a58c5f3ef6f4a1c1d1
18334 * tests/Makefile.am (SUBDIRS): Drop 'pkits'.
18335 * tests/pkits/common.sh: Fix locating 'PKITS_data.tar.bz2'.
18336 * tests/pkits/inittests: Likewise.
18338 tests: Make test more robust.
18339 + commit 94645311f8a3e9ae33643512f87fbef41bf0556f
18340 * tests/openpgp/4gb-packet.scm: Skip if we do not have BZIP2.
18341 * tests/openpgp/defs.scm (have-compression-algo?): New function.
18343 2017-04-05 Justus Winter <justus@g10code.com>
18345 tests: Fix setup of ephemeral home directories.
18346 + commit 01e84d429aeeb1450012ff0576a6a24de50693c6
18347 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Set
18348 GNUPGHOME and cwd to the ephemeral directory before calling the setup
18351 2017-04-04 Justus Winter <justus@g10code.com>
18353 tests: Fix setup of ephemeral home directories.
18354 + commit 32b75fb7743f35936d7014fce33c90ba97dfa374
18355 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Create
18356 configuration files when we enter the context.
18357 * tests/openpgp/setup.scm: Do not use an ephemeral home directory.
18358 Tests should always use the cwd.
18359 * tests/gpgsm/setup.scm: Likewise.
18360 * tests/gpgsm/export.scm: Add explicit constructor function.
18361 * tests/openpgp/decrypt-session-key.scm: Likewise.
18362 * tests/openpgp/decrypt-unwrap-verify.scm: Likewise.
18364 gpgscm: Fix copying values.
18365 + commit 6261611d3786f19fd84ccc79f45a89cadac518e8
18366 * tests/gpgscm/scheme.c (copy_value): New function.
18367 (mk_tagged_value): Use new function.
18368 (opexe_4): Likewise for OP_SAVE_FORCED.
18370 gpgscm: Simplify get-output-string operation.
18371 + commit a80d4a9b50ad47eae1f8c740dd73804311e38783
18372 * tests/gpgscm/scheme.c (opexe_4): Simplify 'get-output-string'.
18374 gpgscm: Simplify substring operation.
18375 + commit d858096c99705ccf2e115475f81c4cf88edbeebf
18376 * tests/gpgscm/scheme.c (opexe_2): Simplify 'substring'.
18378 2017-04-04 NIIBE Yutaka <gniibe@fsij.org>
18380 agent: Minor fix for get_client_pid.
18381 + commit 5744d2038bd17b8b1be4e73d0ad3bc41772efe96
18382 * agent/command-ssh.c (get_client_pid): Use 0 to initialize.
18384 2017-04-03 Werner Koch <wk@gnupg.org>
18387 + commit e7eb9b12deaf7ebe26967bfb56e980b7efeebdc3
18390 dirmngr: New option --disable-ipv6.
18391 + commit 3533b854408fa93734742b2ee12b62aa0d55ff28
18392 * dirmngr/dirmngr.h (struct opt): Add field 'disable_ipv6'.
18393 * dirmngr/dirmngr.c (oDisableIPv6): New const.
18394 (opts): New option --disable-ipv6.
18395 (parse_rereadable_options): Set that option.
18396 * dirmngr/dns-stuff.c (opt_disable_ipv6): New var.
18397 (set_dns_disable_ipv6): New.
18398 (resolve_name_standard): Make use of it.
18399 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Take care of
18401 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
18402 (send_request): Ditto.
18403 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
18404 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
18406 dirmngr,w32: Silence the 'certificate already cached' message.
18407 + commit fce36d7ec87be14b874813db277781c87a64ea87
18408 * dirmngr/certcache.c (load_certs_from_w32_store): Silenece an info
18411 dirmngr: Handle EIO which is sometimes returned by cookie functions.
18412 + commit cc32ddbcba8c53d3e2cad952d72f62dc73911042
18413 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle EIO.
18415 dirmngr: Always print a warning for a missing /etc/hosts.
18416 + commit 35c843c815306f36d1efbc52f5e2f6bac3f67aec
18417 * dirmngr/dns-stuff.c (libdns_init): No Windows specific handling of a
18418 missing /etc/hosts.
18420 dirmngr: Do not assume that /etc/hosts exists.
18421 + commit 5d873f288e86edfb684f4dd57ac36466b06494a4
18422 * dirmngr/dns-stuff.c (libdns_init): Do not bail out.
18424 po: Update the German translation.
18425 + commit c7be01dae914c183dd99bd531a388c794d858c61
18428 gpgconf: Add --enable-extended-key-format for the agent.
18429 + commit d23052b04ebb0ac731aa351650c4084f080c640b
18430 * tools/gpgconf-conf.c: Add option.
18431 * agent/gpg-agent.c (main) <aGPGConfList>: Add option.
18433 2017-04-03 Justus Winter <justus@g10code.com>
18435 gpgscm: Slightly improve the procedure dispatch.
18436 + commit 90932bdad607d06f4f040e3457caddba79ba8b7e
18437 * tests/gpgscm/scheme.c (procnum): Procedures always have an integer
18438 number, so we can safely use the cheaper 'ivalue_unchecked'.
18440 2017-04-03 Werner Koch <wk@gnupg.org>
18442 gpg: Handle critical marked 'Reason for Revocation'.
18443 + commit 3f6d949011f485613bb4bd3e06a2643be79cce40
18444 * g10/parse-packet.c (can_handle_critical): Add
18445 SIGSUBPKT_REVOC_REASON.
18447 2017-04-02 Werner Koch <wk@gnupg.org>
18449 agent: Use OCB for key protection with --enable-extended-key-format.
18450 + commit d24375271b97e45deaeb1ef0a8434c64066ba2e8
18451 * agent/protect.c (PROT_DEFAULT_TO_OCB): Remove macro.
18452 (agent_protect): Make the default protection mode depend on the extend
18455 2017-04-01 Werner Koch <wk@gnupg.org>
18457 kbx: Unify blob reading functions.
18458 + commit 0039d7107bcdfce6f3b02b46ff0495cfba07882a
18459 * kbx/keybox-file.c (_keybox_read_blob): Remove.
18460 (_keybox_read_blob2): Rename to ....
18461 (_keybox_read_blob): this. Make arg options. Change all callers.
18462 * kbx/keybox-search.c (keybox_search): Factor fopen call out to ...
18464 (keybox_seek): Als use open_file.
18466 2017-03-31 Werner Koch <wk@gnupg.org>
18468 gpg: Avoid multiple open calls to the keybox file.
18469 + commit 5556eca5acd46983bff0b38a1ffbc2f07fbaba9f
18470 * g10/keydb.h (KEYDB_HANDLE): Move typedef to ...
18472 (struct server_control_s): Add field 'cached_getkey_kdb'.
18473 * g10/gpg.c (gpg_deinit_default_ctrl): Release that keydb handle.
18474 * g10/getkey.c (getkey_end): Cache keydb handle.
18475 (get_pubkey): Use cached keydb handle.
18476 * kbx/keybox-search.c (keybox_search_reset): Use lseek instead of
18479 gpg: Pass CTRL also to getkey_end.
18480 + commit aca5f494a88776d4974bfa9b0b65cb60c1b42040
18481 * g10/getkey.c (getkey_end): Add arg CTRL. Change all callers.
18483 gpg: Print more stats for the keydb and the signature cache.
18484 + commit 3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8
18485 * g10/sig-check.c (sig_check_dump_stats): New.
18486 (cache_stats): New struct.
18487 (check_key_signature2): Update stats.
18488 * g10/gpg.c (g10_exit): Call new function.
18489 * g10/keydb.c (kid_not_found_cache_count): Replace by ...
18490 (kid_not_found_stats): ... new struct. Change users.
18491 (keydb_stats): New struct. Update the counters.
18492 (keydb_dump_stats): Print all stats.
18494 gpg: Assert that an opaque parameter is really what we expect.
18495 + commit 52ba5e67cad4311d0ddbc4f2979e20afd0161d1f
18496 * g10/gpg.h (SERVER_CONTROL_MAGIC): New const.
18497 (server_control_s): Add field 'magic'.
18498 * g10/gpg.c (gpg_init_default_ctrl): Init MAGIC.
18499 * g10/import.c (impex_filter_getval): Assert MAGIC.
18501 2017-03-30 Justus Winter <justus@g10code.com>
18503 gpg: Consistent use of preprocessor conditionals.
18504 + commit 5e89144cbca36c1e7eb814b3aad4b7c46cd4efbf
18505 * g10/parse-packet.c: Use '#if' instead of '#ifdef' when checking
18506 DEBUG_PARSE_PACKET. This fixes the build with '#define
18507 DEBUG_PARSE_PACKET 0'.
18509 common: Avoid undefined behavior.
18510 + commit 214fa9012296d796b78f1a3106d656639cf50aef
18511 * common/iobuf.c (iobuf_read_line): Do not consider 'length' if
18514 2017-03-30 Werner Koch <wk@gnupg.org>
18516 gpg: Remove the use of the signature information from a KBX.
18517 + commit a6142dbdbc5783043deb847dc64998c421860941
18518 * g10/keydb.c (keyblock_cache): Remove field SIGSTATUS.
18519 (keyblock_cache_clear): Adjust for that removal.
18520 (parse_keyblock_image): Remove arg SIGSTATUS. Remove the signature
18521 cache setting; this is now done in the parser.
18522 (keydb_get_keyblock): Do not set SIGSTATUS.
18523 (build_keyblock_image): Remove arg SIGSTATUS and simplify. Change
18525 * kbx/keybox-blob.c: Explain that the signature information is not
18527 (_keybox_create_openpgp_blob): Remove arg SIGSTATUS and change
18529 * kbx/keybox-search.c (keybox_get_keyblock): Remove arg R_SIGSTATUS
18530 and change callers.
18531 * kbx/keybox-update.c (keybox_insert_keyblock): Likewise.
18533 gpg: Fix actual leak and possible leaks in the packet parser.
18534 + commit 7bf24e8146116a30c4c9d7b6dbf8bbb27fc35971
18535 * g10/packet.h (struct parse_packet_ctx_s): Change LAST_PKT deom a
18536 pointer to its struct.
18537 (init_parse_packet): Adjust for LAST_PKT not being a pointer.
18538 * g10/parse-packet.c (parse): Ditto. Free the last packet before
18539 storing a new one in case of a deep link.
18540 (parse_ring_trust): Adjust for LAST_PKT not being a pointer.
18541 * g10/free-packet.c (free_packet): Ditto.
18542 * g10/t-keydb-get-keyblock.c (do_test): Release keyblock.
18544 gpg: Fix export porting of zero length user ID packets.
18545 + commit 64665404e43051fa50ee030766347e24b7d1e4d5
18546 * g10/build-packet.c (do_user_id): Avoid indeterminate length header.
18548 gpg: Revamp reading and writing of ring trust packets.
18549 + commit a8895c99a7d0750132477d80cd66caaf3a709113
18550 * g10/parse-packet.c (parse_trust): Rename to ...
18551 (parse_ring_trust): this. Change args and implement new ring trust
18553 (parse): Add special ring trust packet handling.
18554 * g10/packet.h (PKT_user_id): New fields KEYUPDATE, UPDATEURL, and
18556 (PKT_public_key): Ditto.
18557 (RING_TRUST_SIG, RING_TRUST_KEY, RING_TRUST_UID): New consts.
18558 (PKT_ring_trust): New.
18559 (struct packet_struct): Remove member RING_TRUST.
18560 (strcu parse_packet_ctx_s): Add field SKIP_META.
18561 (init_parse_packet): Init SKIPT_META.
18562 * g10/free-packet.c (release_public_key_parts): Free UDPATEURL.
18563 (free_user_id): Ditto.
18564 * g10/mainproc.c (list_node): Remove printing of non-documented "rtv"
18566 * g10/build-packet.c (build_packet_and_meta): New.
18567 (do_ring_trust): New.
18568 * g10/export.c (write_keyblock_to_output): Use build_packet_and_meta
18570 (do_export_one_keyblock): Ditto.
18571 * g10/import.c (read_block): Add arg WITH_META. Skip ring trust
18572 packets if that ism not set.
18573 (import): Call read_block WITH_META in restore mode.
18574 * g10/keydb.h (KEYSRC_UNKNOWN, KEYSRC_FILE, KEYSRC_KS, KEYSRC_PREF_KS)
18575 (KEYSRC_WKD, KEYSRC_WKD_SD, KEYSRC_DANE): New constants. They are not
18577 * g10/keydb.c (parse_keyblock_image): Allow ring trust packets.
18578 (build_keyblock_image): Ditto. Use build_packet_and_meta.
18579 * g10/keyring.c (keyring_get_keyblock): Remove specila treatment of
18580 ring trust packets.
18581 (write_keyblock): Use build_packet_and_meta. Remove special treatment
18582 of ring trust packets and initialization of the signature caches.
18584 2017-03-29 Werner Koch <wk@gnupg.org>
18586 gpg: Extend free_packet to handle a packet parser context.
18587 + commit afa86809087909a8ba2f9356588bf90cc923529c
18588 * g10/packet.h (struct parse_packet_ctx_s): Add fields LAST_PKT and
18590 (init_parse_packet): Clear them.
18591 (deinit_parse_packet): New macro. Change all users if
18592 init_parse_packet to also call this macro.
18593 * g10/free-packet.c (free_packet): Add arg PARSECTX and handle shallow
18594 packet copies in the context. Change all callers.
18595 * g10/parse-packet.c (parse): Store certain packets in the parse
18598 gpg: Change parse_packet to take a context.
18599 + commit 0526c99164d3531b5ec763ffc672407eb24b2296
18600 * g10/packet.h (struct parse_packet_ctx_s): New.
18601 (parse_packet_ctx_t): New type.
18602 (init_parse_packet): New macro.
18603 * g10/parse-packet.c (parse_packet, dbg_parse_packet): Change to take
18604 a parse context. Change all callers to provide a context instead of
18605 directly supplying the input stream.
18606 (search_packet, dbg_search_packet): Ditto.
18607 (copy_all_packets, dbg_copy_all_packets): Init an use a parse context.
18608 (copy_some_packets, dbg_copy_some_packets): Ditto.
18609 (skip_some_packets, dbg_skip_some_packets): Ditto.
18611 gpg: Export ring trust packets in backup mode.
18612 + commit f5b565a5b8de3f2a3d98bc1a655e18333aee223b
18613 * g10/export.c (write_keyblock_to_output): Export ring trust packets.
18615 2017-03-28 Justus Winter <justus@g10code.com>
18617 tests,w32: Fix importing the extra key for GPGME's keylist test.
18618 + commit b20780658ebb1e1245db18c04db3e815399cf706
18619 * tests/gpgme/wrap.scm: Qualify the tests name with the extension for
18620 executables (if any).
18622 2017-03-28 Werner Koch <wk@gnupg.org>
18624 gpg: Prepare for listing last_update and key origin data.
18625 + commit 4af389c9721fa534ed06a64b80705b631575c775
18626 * g10/keylist.c (list_keyblock_colon): Add empty fields 19 and 20.
18628 2017-03-28 Justus Winter <justus@g10code.com>
18630 tests: Fix distcheck.
18631 + commit 5128cd74c029d57491a79ca9e918c81facdf1b76
18632 * tests/openpgp/Makefile.am (sample_msgs): Add all missing sample
18635 tests: Add test for '--decrypt --unwrap'.
18636 + commit 211d71f19c24da94f4c58014606125c1a29d86a2
18637 * tests/openpgp/Makefile.am (XTESTS): Add new test.
18638 * tests/openpgp/decrypt-unwrap-verify.scm: New file.
18640 g10: Fix memory leak.
18641 + commit 6d3edfd972c1114f43f6b35773dc25e0256f48f4
18642 * g10/decrypt-data.c (decrypt_data): Free 'filename'.
18644 2017-03-27 Justus Winter <justus@g10code.com>
18646 common: Fix connecting to the agent.
18647 + commit caf00915532e6e8e509738962964edcd14fb0654
18648 * common/homedir.c (_gnupg_socketdir_internal): Fix error handling.
18650 2017-03-27 NIIBE Yutaka <gniibe@fsij.org>
18652 g10: Support specifying SERIALNO for --card-status.
18653 + commit c1e6302b347caf852a056b9c721469ccb51f44da
18654 * g10/gpg.c (main): Allow an argument for --card-status.
18655 * g10/card-util.c (current_card_status): Rename from card_status.
18656 (card_status): New, which supports multiple cards.
18657 (get_one_name): Use current_card_status.
18659 scd: Change the order of applications when accessed.
18660 + commit d58275703f035e8cfd58cd1c2d0d5ac7dc59e110
18661 * scd/app.c (select_application): Move the app to top.
18663 scd: Fix timeout handling for key generation.
18664 + commit 0848cfcce738150b53bfb65b78efc1e6dc9f3d26
18665 * scd/ccid-driver.c (CCID_CMD_TIMEOUT): Back to original value.
18666 (CCID_CMD_TIMEOUT_LONGER): New.
18667 (ccid_transceive): Add kludge for key generation.
18669 2017-03-24 Werner Koch <wk@gnupg.org>
18671 gpg: Improve check for already compressed packets.
18672 + commit 0b3770c421a35b64823a805fa8d49ddd5c653d50
18673 * common/miscellaneous.c (is_openpgp_compressed_packet): New.
18674 (is_file_compressed): Rerad 2 more bytes and call new function.
18676 agent: New option --enable-extended-key-format.
18677 + commit 2c237c13628a88ba23742da34ea18d3e205d7c53
18678 * agent/gpg-agent.c (oEnableExtendedKeyFormat): New const.
18679 (opts): New option --enable-extended-key-format.
18680 (parse_rereadable_options): Set option
18681 * agent/findkey.c (write_extended_private_key): Add arg 'update'.
18682 (agent_write_private_key): Implement new option.
18684 agent: New option --stub-only for DELETE_KEY.
18685 + commit 6fab7bba879d7794e32112cf3eddd8d87130a5d7
18686 * agent/findkey.c (agent_delete_key): Add arg 'only_stubs'.
18687 * agent/command.c (cmd_delete_key): Add option --stub-only.
18689 2017-03-23 Werner Koch <wk@gnupg.org>
18691 common: Implicitly do a gpgconf --create-socketdir.
18692 + commit 26086b362ff47d21b1abefaf674a6464bf0a8921
18693 * common/homedir.c (_gnupg_socketdir_internal): Create the
18696 tests: Use gpgconf to stop the agent.
18697 + commit 2c9d9ac55ea455a5ec26428989dced0311ed46cc
18698 * tests/openpgp/defs.scm (stop-agent): Swap order of actions. Kill
18699 all daemons using gpgconf.
18700 * tools/gpgconf.c (main) <aRemoveSocketDir>: Try to remove known
18701 socketfails on rmdir failure. Do no fail for ENONET.
18703 2017-03-23 Justus Winter <justus@g10code.com>
18705 gpgscm: Make test cleanup more robust.
18706 + commit 178b6314ab2d2268873067314744c8af74dc331e
18707 * tests/gpgscm/tests.scm (mkdtemp-autoremove): New function that
18708 cleans up at interpreter shutdown.
18709 (run-tests-parallel): Use the new function.
18710 (run-tests-sequential): Likewise.
18711 (make-environment-cache): Execute setup with an temporary working
18714 2017-03-21 Justus Winter <justus@g10code.com>
18716 tests: Test '--quick-set-primary-uid'.
18717 + commit fde885bbc47a4bf14a8570ac62e68adc8cf47a6e
18718 * tests/openpgp/quick-key-manipulation.scm: Test
18719 '--quick-set-primary-uid'.
18721 tests,w32: Use GetTempPath to get the path for temporary files.
18722 + commit d17840c3f40111beaf97d96ad3ca52047976e221
18723 * tests/gpgscm/ffi.c (do_get_temp_path): New function.
18724 (ffi_init): Make function available.
18725 * tests/gpgscm/tests.scm (mkdtemp): Use the new function.
18727 2017-03-21 Werner Koch <wk@gnupg.org>
18729 gpg: New command --quick-set-primary-uid.
18730 + commit 74c1f30ad6616186f0ab9dbaf34db6c17b1e40c4
18731 * g10/gpg.c (aQuickSetPrimaryUid): New const.
18732 (opts): New command --quick-set-primary-uid.
18733 (main): Implement it.
18734 * g10/keyedit.c (keyedit_quick_adduid): Factor some code out to ...
18735 (quick_find_keyblock): new func.
18736 (keyedit_quick_revuid): Use quick_find_keyblock.
18737 (keyedit_quick_set_primary): New.
18739 2017-03-21 Justus Winter <justus@g10code.com>
18741 dirmngr: Fix error handling.
18742 + commit 483c1288a8f86dc6bf93d0d3f2865ecc246aecba
18743 * dirmngr/dns-stuff.c (libdns_init): Convert error before printing it.
18745 dirmngr: Load the hosts file into libdns.
18746 + commit 88f1505f0613894d5544290a170119eb538921e5
18747 * dirmngr/dns-stuff.c (libdns_init): Actually load the hosts file into
18750 tests: Create temporary directories in '/tmp'.
18751 + commit 06f1f163e96f1039304fd3cf565cf9de1ca45849
18752 * tests/gpgscm/tests.scm (mkdtemp): Create temporary directories in
18753 '/tmp' on UNIX, or in '%Temp' on Windows.
18754 * tests/migrations/common.scm (run-test): Turn error into a warning.
18755 * tests/openpgp/defs.scm (start-agent): Likewise.
18757 2017-03-20 Justus Winter <justus@g10code.com>
18759 tests: Remove debugging remnants.
18760 + commit ceb4b245752bb1fb43fde7e99f8d904ab8a9b5e2
18761 * tests/gpgme/gpgme-defs.scm (run-python-tests?): Remove 'trace's.
18763 tests: Fail if we cannot create the socket directory.
18764 + commit d75d20909d9f60d33ffd210def92278c0f383aad
18765 * tests/migrations/common.scm (run-test): Turn warning into an error.
18766 * tests/openpgp/defs.scm (start-agent): Likewise.
18768 2017-03-20 Werner Koch <wk@gnupg.org>
18770 gpg: Add new field no 18 to the colon listing.
18771 + commit fe0b37e123ded51cc5f4cb5e3547fdfbce37a43e
18772 * g10/misc.c (gnupg_pk_is_compliant): New.
18773 * g10/keylist.c (print_compliance_flags): New.
18774 (list_keyblock_colon): Call it here.
18775 * sm/keylist.c (print_compliance_flags): New.
18776 (list_cert_colon): Call it here.
18778 gpg: Remove unused stuff.
18779 + commit e2c63a13e2fa4ce39af8471a34c06d73ff3ee6f6
18780 * g10/OPTIONS: Remove.
18781 * g10/options.h (struct opt): Remove 'shm_coprocess'.
18783 2017-03-17 Neal H. Walfield <neal@g10code.com>
18785 tests: Add test for issue 2959.
18786 + commit fb9d68d636490ca88925051f48b08963c324aed1
18787 * tests/openpgp/tofu.scm: Add test for --tofu-default-policy=ask.
18789 gpg: Make sure the conflict set includes the current key.
18790 + commit b1106b4d640325c60a7212a4a44e4f67c0e3312d
18791 * g10/tofu.c (get_trust): Sanity check CONFLICT_SET after calling
18792 get_policy. If POLICY is 'auto' and the default policy is 'ask', make
18793 sure CONFLICT_SET includes the current key.
18795 2017-03-17 Werner Koch <wk@gnupg.org>
18797 dirmngr: Ignore warning alerts in the GNUTLS handshake.
18798 + commit 69c521df422a6c9a6b0a93e45c9373a8b6ceb28e
18799 * dirmngr/http.c (send_request) [GNUTLS]: Don't bail out on warning
18802 2017-03-17 Justus Winter <justus@g10code.com>
18804 gpgscm: Simplify hash tables.
18805 + commit 6a3f857224eab108ae38e6259194b01b0ffdad8b
18806 * tests/gpgscm/scheme.c (oblist_add_by_name): We now always get a
18807 slot. Simplify accordingly.
18808 (oblist_find_by_name): Always return the slot.
18809 (vector_elem_slot): New function.
18810 (new_slot_spec_in_env): We now always get a slot. Remove parameter
18811 'env'. Simplify accordingly.
18812 (find_slot_spec_in_env): Always return a slot.
18813 (new_slot_in_env): Adapt callsite.
18814 (opexe_0): Likewise.
18815 (opexe_1): Likewise.
18816 (scheme_define): Likewise.
18818 gpgscm: Remove framework for immediate values.
18819 + commit 38c955599f7c6c20faeec57d8e1df7d2c0eeba18
18820 * tests/gpgscm/scheme.c (IMMEDIATE_TAG): Remove macro.
18821 (is_immediate): Likewise.
18822 (set_immediate): Likewise.
18823 (clr_immediate): Likewise.
18824 (enum scheme_types): Set the LSB in every value.
18825 (fill_vector): Adapt.
18826 (vector_elem): Likewise.
18827 (set_vector_elem): Likewise.
18829 (gc): Test for the LSB to tell typeflags apart from pointers stored in
18830 the same memory location.
18832 2017-03-16 NIIBE Yutaka <gniibe@fsij.org>
18834 agent,g10: Remove redundant SERIALNO request.
18835 + commit 8c8ce8711d9c938fcb982b0341e6b052742cb887
18836 * agent/learncard.c (agent_handle_learn): Don't call
18837 agent_card_serialno. Get the serialno in status response.
18838 * g10/call-agent.c (agent_scd_learn): Don't request "SCD SERIALNO".
18839 (agent_scd_serialno): New.
18840 (card_cardlist_cb, agent_scd_cardlist): New.
18842 2017-03-15 Justus Winter <justus@g10code.com>
18844 tests: Fix using tools from the build directory.
18845 + commit a98459d3f4ec3d196fb0adb0e90dadf40abc8c81
18846 * tests/openpgp/defs.scm (gpg-conf'): Explicitly pass the build prefix
18848 (gpg-components): ... instead of only here.
18850 tests: Dump the tools that the tests are going to use.
18851 + commit c7833eca38fdb8d9ba7b59438ea87d651b8bf7ba
18852 * tests/openpgp/setup.scm: Dump the tools that the tests are going to
18853 use. This will help us diagnose problems with the tests picking the
18854 wrong paths in the future.
18856 build: Remove '--disable-tools' configuration option.
18857 + commit 6993e42088c191f18468317ba2b5b8fbc8c3edff
18858 * Makefile.am (SUBDIRS): Unconditionally include 'tools'.
18859 * configure.ac: Remove '--disable-tools' configuration option.
18861 2017-03-15 NIIBE Yutaka <gniibe@fsij.org>
18863 g10: Fix check of serialno.
18864 + commit 61785b679c542bbd789395fa632eb8b5133b01ad
18865 * g10/card-util.c (card_status): Fix.
18867 g10: Remove unused function.
18868 + commit ed3248219e921ee24f6f1b2985abb7e0945d70e9
18869 * g10/call-agent.c (select_openpgp): Remove.
18871 tests: Fix running python condition.
18872 + commit a672ddec03f96475866d712b28be18b3fab43aef
18873 * tests/gpgme/gpgme-defs.scm (run-python-tests?): We need Python.
18875 2017-03-14 Justus Winter <justus@g10code.com>
18877 tests: Skip Python tests if the bindings are not built.
18878 + commit d82abbb1b6e80d5980e6259ddcfc770e65a6b1b3
18879 * tests/gpgme/wrap.scm (python): Move variable...
18880 * tests/gpgme/gpgme-defs.scm (python): ... here.
18881 (run-python-tests?): New function.
18882 * tests/gpgme/run-tests.scm: Only run Python tests if the bindings can
18883 be located in GPGME's build directory.
18885 2017-03-13 Werner Koch <wk@gnupg.org>
18887 gpg: Flush stdout before printing stats with --check-sigs.
18888 + commit 9a77b3b6e41f97b1209ad61c04b3dd33242ecae8
18889 * g10/keylist.c (print_signature_stats): Flush stdout.
18890 (list_keyblock_colon): Use es_flush instead of fflush.
18892 2017-03-09 Justus Winter <justus@g10code.com>
18894 tests: Run the tests for the Python bindings of GPGME.
18895 + commit 046a15a88c83b40a753b4ad7ecc1456efa5b527f
18896 * tests/gpgme/gpgme-defs.scm (create-file): Write lines.
18897 (create-gpgmehome): Extend function to create the right environment
18898 for the Python tests.
18899 * tests/gpgme/run-tests.scm: Make an environment cache for the Python
18900 tests and enable them.
18901 * tests/gpgme/wrap.scm: Do not hardcode the path of the Python
18904 tests: Rework environment setup.
18905 + commit cca91a3f8f7e3e36b7149fc93f7b6df11d21eb1d
18906 * tests/gpgscm/tests.scm (test::scm): Add a setup argument.
18907 (test::binary): Likewise.
18908 (run-tests-parallel): Remove setup parameter.
18909 (run-tests-sequential): Likewise.
18910 (make-environment-cache): New function that handles the cache
18912 * tests/gpgme/run-tests.scm: Adapt accordingly.
18913 * tests/gpgsm/run-tests.scm: Likewise.
18914 * tests/migrations/run-tests.scm: Likewise.
18915 * tests/openpgp/run-tests.scm: Likewise.
18917 2017-03-08 Werner Koch <wk@gnupg.org>
18919 wks: Put stdout into binary mode for Windows at another place.
18920 + commit ed5575ec550ff16b0b901a23c6aa3eb3d47b0575
18921 * tools/wks-util.c (wks_send_mime): Set stdout to binary.
18923 wks: Put stdout into binary mode for Windows.
18924 + commit 5c83759364272b19ceafbef46d057f0430a12698
18925 * tools/send-mail.c (send_mail_to_file): Call es_set_binary.
18927 2017-03-08 Justus Winter <justus@g10code.com>
18929 build: Use macOS' compatibility macros to enable all features.
18930 + commit dd60e868d2bf649a33dc96e207ffd3b8ae4d35af
18931 * configure.ac: On macOS, use the compatibility macros to expose every
18932 feature of the libc. This is the equivalent of _GNU_SOURCE on GNU
18935 g10: Move more flags into the flag bitfield.
18936 + commit 2649fdfff5d9e227025956e015b67502fd4962c4
18937 * g10/packet.h (PKT_user_id): Move 'is_primary', 'is_revoked', and
18938 'is_expired' into the flags bitfield, and drop the prefix.
18939 * g10/call-dirmngr.c: Adapt accordingly.
18940 * g10/export.c: Likewise.
18941 * g10/getkey.c: Likewise.
18942 * g10/import.c: Likewise.
18943 * g10/kbnode.c: Likewise.
18944 * g10/keyedit.c: Likewise.
18945 * g10/keylist.c: Likewise.
18946 * g10/keyserver.c: Likewise.
18947 * g10/mainproc.c: Likewise.
18948 * g10/pkclist.c: Likewise.
18949 * g10/pubkey-enc.c: Likewise.
18950 * g10/tofu.c: Likewise.
18951 * g10/trust.c: Likewise.
18952 * g10/trustdb.c: Likewise.
18954 2017-03-08 Werner Koch <wk@gnupg.org>
18956 dirmngr: Do not put a keyserver into a new dirmngr.conf.
18957 + commit 8f028642239fa992c6c059e3c1b4421a1813c827
18958 * g10/dirmngr-conf.skel: Do not define keyservers.
18960 doc: Add a note to the trust model direct.
18961 + commit f0257b4a86b73f5b956028e68590b6d2a23ea4da
18962 * doc/gpg.texi (GPG Configuration Options): Add note. Chnage Index
18963 from trust-mode:foo to trust-model:foo.
18965 2017-03-07 Justus Winter <justus@g10code.com>
18967 Revert "build: Improve CFLAGS handling."
18968 + commit b71384c8054ce2f245ccfae02b8ee81e1adfc512
18969 This reverts commit 4b57359ef3ce0b87e15889e12ef0fcd23f62dcb4.
18971 build: Improve CFLAGS handling.
18972 + commit 4b57359ef3ce0b87e15889e12ef0fcd23f62dcb4
18973 * configure.ac: Strip any flags matching '-Werror' from CFLAGS before
18974 running the tests, and add them back later on.
18976 2017-03-07 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18978 gpgscm: Use system strlwr if available.
18979 + commit c22a2a89d3bd3d08b3abb8e4e33df32b480338ec
18980 * tests/gpgscm/scheme.c: Define local strlwr only when HAVE_STRLWR is
18981 not defined in config.h.
18982 * tests/gpgscm/scheme-config.h: Remove hack.
18984 2017-03-07 Justus Winter <justus@g10code.com>
18986 gpg: Do not allow the user to revoke the last valid UID.
18987 + commit 591b6a9d879cbcabb089d89a26d3c3e0306054e1
18988 * g10/keyedit.c (keyedit_quick_revuid): Merge self signatures, then
18989 make sure that we do not revoke the last valid UID.
18990 (menu_revuid): Make sure that we do not revoke the last valid UID.
18991 * tests/openpgp/quick-key-manipulation.scm: Demonstrate that
18992 '--quick-revoke-uid' can not be used to revoke the last valid UID.
18994 2017-03-07 NIIBE Yutaka <gniibe@fsij.org>
18996 tools: Removal of -Icommon.
18997 + commit 80fb1a8a05b2194af16027555b09bbd5d48ec9ac
18998 * tools/gpg-wks-server.c: Follow the change.
19000 More change for common.
19001 + commit d6c7bf1f8ab8899faba2fb81a35b096921c38f3c
19002 * g10, scd, test, tools: Follow the change of removal of -Icommon.
19004 Remove -I option to common.
19005 + commit 70aca95d6816082b289fceca8eabfcf718a6b701
19006 * dirmngr/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/common.
19007 * g10/Makefile.am (AM_CPPFLAGS): Ditto.
19008 * g13/Makefile.am (AM_CPPFLAGS): Ditto.
19009 * kbx/Makefile.am (AM_CPPFLAGS): Ditto.
19010 * scd/Makefile.am (AM_CPPFLAGS): Ditto.
19011 * sm/Makefile.am (AM_CPPFLAGS): Ditto.
19012 * tools/Makefile.am (AM_CPPFLAGS): Ditto.
19013 * Throughout: Follow the change.
19015 2017-03-07 Justus Winter <justus@g10code.com>
19017 tests: Avoid overflowing signed 32 bit time_t.
19018 + commit de3838372ae3cdecbd83eea2c53c8e2656d93052
19019 * tests/openpgp/quick-key-manipulation.scm: Use expiration times in
19020 the year 2038 instead of 2105 to avoid overflowing 32 bit time_t.
19021 time_t is used internally to parse the expiraton time from the iso
19024 2017-03-07 NIIBE Yutaka <gniibe@fsij.org>
19026 agent: Resolve conflict of util.h.
19027 + commit 176e07ce10d892fa7c7b96725b38b2fec9a1f916
19028 * agent/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/common.
19029 * agent/call-pinentry.c, agent/call-scd.c: Follow the change.
19030 * agent/command-ssh.c, agent/command.c, agent/cvt-openpgp.c: Ditto.
19031 * agent/divert-scd.c, agent/findkey.c, agent/genkey.c: Ditto.
19032 * agent/gpg-agent.c, agent/pksign.c, agent/preset-passphrase.c: Ditto.
19033 * agent/protect-tool.c, agent/protect.c, agent/trustlist.c: Ditto.
19034 * agent/w32main.c: Ditto.
19036 agent: Add include files.
19037 + commit bf03925751abb739f2fd9d631694d3dd33decf92
19038 * agent/command-ssh.c: Add sys/socket.h and sys/un.h.
19040 agent: Fix get_client_pid for portability.
19041 + commit f7f806afa5083617f4aba02fc3b285b06a7d73d4
19042 * configure.ac: Simply check getpeerucred and ucred.h, and structure
19044 * agent/command-ssh.c: Include ucred.h.
19045 (get_client_pid) [HAVE_STRUCT_SOCKPEERCRED_PID]: Use sockpeercred
19046 structure for OpenBSD.
19047 [LOCAL_PEERPID]: Use LOCAL_PEERPID for macOS.
19048 [LOCAL_PEEREID]: Use LOCAL_PEEREID for NetBSD.
19049 [HAVE_GETPEERUCRED]: Use getpeerucred for OpenSolaris.
19051 common: Fix warning for portability.
19052 + commit b9ab733fc0dd2ca2a7eaac0bde3a817c07af36c5
19053 * common/localename.c (do_nl_locale_name): We don't use CATEGORY.
19055 tools: More portable for openpty use.
19056 + commit ce37ada87139ef418401f9f35439007a8c04a856
19057 * configure.ac (AC_CHECK_HEADERS): Add util.h libutil.h and termios.h.
19058 * tools/symcryptrun.c: Include those headers.
19060 scd: Close THE_EVENT handle.
19061 + commit cc933a96f8e83bc66fb69ed33d9593acdd60c929
19062 * scd/scdaemon.c (handle_connections): Close the handle.
19064 2017-03-06 Justus Winter <justus@g10code.com>
19066 tests: Harmonize temporary and socket directory handling.
19067 + commit 7e19786a5ddef637d1d9d21593fecf5a36b6f372
19068 * tests/gpgscm/tests.scm (mkdtemp): Do not magically obey the
19069 environment variable 'TMP', make sure to always return an absolute
19071 * tests/gpgme/Makefile.am (TMP): Drop variable.
19072 (TESTS_ENVIRONMENT): Drop 'TMP'.
19073 * tests/gpgme/gpgme-defs.scm (create-gpgmehome): Start the agent. Do
19074 not create private key store, the agent does that for us.
19075 * tests/gpgsm/Makefile.am (TMP): Drop variable.
19076 (TESTS_ENVIRONMENT): Drop 'TMP'.
19077 * tests/gpgme/gpgme-defs.scm (create-gpgsmhome): Start the agent. Do
19078 not create private key store, the agent does that for us.
19079 * tests/migrations/Makefile.am (TMP): Drop variable.
19080 (TESTS_ENVIRONMENT): Drop 'TMP'.
19081 * tests/migrations/common.scm (gpgconf): New variable.
19082 (run-test): Create and remove socket directory.
19083 * tests/migrations/extended-pkf.scm (src-tarball): Remove variable.
19084 (setup): Remove function.
19085 (trigger-migration): Likewise.
19086 Use 'run-test' to execute the test.
19087 * tests/migrations/from-classic.scm (src-tarball): Remove variable.
19088 (setup): Remove function.
19089 Use 'run-test' to execute the tests.
19090 * tests/openpgp/Makefile.am (TMP): Drop variable.
19091 (TESTS_ENVIRONMENT): Drop 'TMP'.
19092 * tests/openpgp/README: Do not mention 'TMP'.
19093 * tests/openpgp/defs.scm (with-home-directory): New macro.
19094 (create-legacy-gpghome): Do not create private key store, the agent
19096 (start-agent): Make sure to terminate the right agent with 'atexit'.
19098 gpgscm: Fix creation of temporary directories.
19099 + commit 171e4314ebd3ff74af3dcdc8bd68e1100e8910ea
19100 * tests/gpgscm/ffi.c (do_mkdtemp): Use a larger buffer for the
19103 2017-03-06 Werner Koch <wk@gnupg.org>
19105 wks: Set published keys world-readable.
19106 + commit e3589110e01dc6ad04463351ec2ce17201556d09
19107 * tools/gpg-wks-server.c (check_and_publish): Set the permissions.
19109 gpg: Fix attempt to double free an UID structure.
19110 + commit 4a130bbc2c2f4be6e8c6357512a943f435ade28f
19111 * g10/getkey.c (get_best_pubkey_byname): Set released .UID to NULL.
19113 2017-03-06 NIIBE Yutaka <gniibe@fsij.org>
19115 scd: Fix compiler warnings for app-openpgp.c.
19116 + commit e6ca015ae182a6dbb0466441efc17c99683e9375
19117 * scd/app-openpgp.c (retrieve_key_material): Remove touching I.
19118 (do_change_pin): Make sure going to leave if PINVALUE == 0.
19119 (rsa_writekey): Emit simpler log.
19121 scd: More cleanup of old code.
19122 + commit 9bf39ed75ddbd35908bcd0996f55325ff801619a
19123 * scd/app-dinsig.c (do_sign): Remove assignment to HASHALGO.
19124 * scd/app-p15.c (parse_keyusage_flags): Remove assign to MASK.
19125 (read_ef_aodf): Likewise.
19126 (read_ef_cdf): Change the control to parse_error.
19127 * scd/app-sc-hsm.c (parse_keyusage_flags): Remove assign to MASK.
19128 (read_ef_prkd): Remove assign to S.
19129 (read_ef_prkd): Check if PRKDF is not null.
19130 (read_ef_cd): Likewise for CDF.
19132 scd: Clean up old code.
19133 + commit cb6337329d3c858c695a7e56e2fc31d9d50ca3fe
19134 * scd/apdu.c (CT_init, CT_data, CT_close): Remove.
19135 (ct_error_string, ct_activate_card, close_ct_reader, reset_ct_reader)
19136 (ct_get_status, ct_send_apdu, open_ct_reader): Remove.
19137 (new_reader_slot) [NEED_PCSC_WRAPPER]: Remove fd and pid handling.
19138 (writen, readn): Remove.
19139 (pcsc_get_status, pcsc_send_apdu, control_pcsc, close_pcsc_reader)
19140 (reset_pcsc_reader, open_pcsc_reader): Only DIRECT version.
19141 (apdu_open_one_reader): Remove CT_api handling.
19142 (apdu_get_status_internal, send_le): Fix to stop warnings.
19144 scd: Fix API of select_file/_path.
19145 + commit 0703de01c8fbc417a99ecf8e950fc306b8c8ac9c
19146 * scd/iso7816.c (iso7816_select_file, iso7816_select_path): Remove
19148 * scd/app-dinsig.c (do_readcert): Follow the change.
19149 * scd/app-help.c (app_help_read_length_of_cert): Likewise.
19150 * scd/app-nks.c (keygripstr_from_pk_file, do_readcert, do_readkey)
19151 (switch_application): Likewise.
19152 * scd/app-p15.c (select_and_read_binary, select_ef_by_path)
19153 (micardo_mse, app_select_p15): Likewise.
19154 * scd/app.c (app_new_register): Likewise.
19156 agent: For SSH, robustly handling scdaemon's errors.
19157 + commit 4ce4f2f683a17be3ddb93729f3f25014a97934ad
19158 * agent/command-ssh.c (card_key_list): Return 0 when
19159 agent_card_serialno returns an error.
19160 (ssh_handler_request_identities): Handle errors for card listing
19161 and proceed to other cases.
19163 2017-03-03 Werner Koch <wk@gnupg.org>
19165 dirmngr: Fix commit de6d8313.
19166 + commit 67c203b6bf8d6dd489ceef3391f609986e7b7a49
19167 * dirmngr/http-common.c (get_default_keyserver): Fix assert.
19169 2017-03-03 NIIBE Yutaka <gniibe@fsij.org>
19171 scd: Fix scd_kick_the_loop.
19172 + commit f9acc7d18bb90f47dafe7e32ae92f567756d6b12
19173 * scd/scdaemon.c (notify_fd): Remove.
19174 (the_event) [W32]: New.
19175 (main_thread_pid) [!W32]: New.
19176 (handle_signal): Handle SIGCONT.
19177 (scd_kick_the_loop): Use signal on UNIX and event on Windows.
19178 (handle_connections): Likewise.
19180 2017-03-03 Werner Koch <wk@gnupg.org>
19182 gpg: Fix possible segv when attribute packets are filtered.
19183 + commit 5f6f3f5cae8a95ed469129f9677782c17951dab3
19184 * g10/import.c (impex_filter_getval): Handle PKT_ATTRIBUTE the same as
19186 (apply_drop_sig_filter): Ditto.
19188 gpg: Add new variables to the import and export filters.
19189 + commit 1813f3be23bdab5a42070424c47cb8daa9d9e6b7
19190 * g10/import.c (impex_filter_getval): Add new variables "expired",
19191 "revoked", and "disabled".
19193 2017-03-02 Werner Koch <wk@gnupg.org>
19195 tools: Fix compile error with older gcc versions.
19196 + commit b1f48da02b474e985161aa2778d7b602a13c4292
19197 * tools/mime-parser.h: Include rfc822parse.h.
19198 (struct rfc822parse_context): Remove duplicate definition.
19200 dirmngr: Rearrange files to fix de6d831.
19201 + commit 1890896fe698c55d15160a53aa6c5c22dc424031
19202 * dirmngr/http-common.c: New.
19203 * dirmngr/http-common.h: New.
19204 * dirmngr/Makefile.am (dirmngr_SOURCES): Add them.
19205 (t_http_SOURCES): Add them.
19206 (t_ldap_parse_uri_SOURCES): Add them.
19207 * dirmngr/misc.c (get_default_keyserver): Move to ...
19208 * dirmngr/http-common.c: here.
19209 * dirmngr/http.c: Include http-common.h instead of misc.h.
19210 * dirmngr/http-ntbtls.c: Ditto.
19212 dirmngr: Let --gpgconf-list return the default keyserver.
19213 + commit de6d8313f6df32aaa151bee74e1db269ac1e0fed
19214 * dirmngr/misc.c (get_default_keyserver): New.
19215 * dirmngr/http.c: Include misc.h
19216 (http_session_new): Use get_default_keyserver instead of hardwired
19217 "hkps.pool.sks-keyservers.net".
19218 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
19219 * dirmngr/dirmngr.c (main) <aGPGCongList>: Return default keyserver.
19221 2017-03-02 Justus Winter <justus@g10code.com>
19223 gpg: Always initialize the trust db when generating keys.
19224 + commit 0c4d0620d327e8a2069532a5519afefe867a47d6
19225 * g10/gpg.c (main): Always initialize the trust db when generating
19227 * g10/keygen.c (do_generate_keypair): We can now assume that there is
19230 gpg: Fix (quick) key generation with --always-trust.
19231 + commit 4735ab96aa5577d40ba7b3f72d863057198cc6a7
19232 * g10/keygen.c (do_generate_keypair): Only update the ownertrust if we
19233 do have a trust database.
19234 * g10/trustdb.c (have_trustdb): New function.
19235 * g10/trustdb.h (have_trustdb): New prototype.
19236 * tests/openpgp/quick-key-manipulation.scm: Remove workaround.
19238 2017-03-02 Werner Koch <wk@gnupg.org>
19240 agent: Improve error message for the KEYTOCARD command.
19241 + commit d6f0f368763006abf08818bfefcd32ecedb5c20a
19242 * agent/command.c (cmd_keytocard): Always use leave_cmd. Simplify
19243 timestamp checking and do an early test with an appropriate error
19246 2017-03-02 Justus Winter <justus@g10code.com>
19248 g10: Signal an error when trying to revoke non-existant UID.
19249 + commit 62d21a4ab4029b32ea129f1cf3a0e1f22e2fb7b0
19250 * g10/keyedit.c (keyedit_quick_revuid): Signal an error when trying to
19251 revoke non-existant UID.
19252 * tests/openpgp/quick-key-manipulation.scm: Test that.
19254 tests: Log information about ssh, add comments to test.
19255 + commit 74cb3b230c1f99afc5fd09bccc24186a63b154b0
19256 * tests/openpgp/ssh-import.scm (ssh-version-string): New variable, and
19257 log the binary and version used in the test.
19258 (ssh-supports?): Document how we test what algorithms are supported by
19259 ssh, and log ssh-keygen's replies.
19261 common,tools: Always escape newlines when escaping data.
19262 + commit e064c75b08a523f738108428fe0c417a46e66238
19263 * common/stringhelp.c (do_percent_escape): Always escape newlines.
19264 * tools/gpgconf-comp.c (gc_percent_escape): Likewise.
19266 2017-03-01 Werner Koch <wk@gnupg.org>
19269 + commit 4a28c212b35739ce951bd41cfc6ef1a215846b2e
19272 build: Add kludge for "make distcheck" in a release build.
19273 + commit 246b27921b5dc34f367d879402725784aaee2494
19274 * configure.ac: New option --enable-gnupg-builddir-envvar.
19275 (ENABLE_GNUPG_BUILDDIR_ENVVAR): New ac_define.
19276 * common/homedir.c (gnupg_set_builddir_from_env): Consider
19277 ENABLE_GNUPG_BUILDDIR_ENVVAR.
19278 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Rename to ...
19279 (AM_DISTCHECK_CONFIGURE_FLAGS): this to be future proof. Add option
19280 --enable-gnupg-builddir-envvar.
19282 2017-03-01 Yuri Chornoivan <yurchor@ukr.net>
19284 po: Update Ukrainian translation.
19285 + commit c7f2a59833728e99e00449da2ddb10cf66693e7e
19288 2017-03-01 Ineiev <ineiev@gnu.org>
19290 po: Update Russian translation.
19291 + commit 280c724fe26bfd861ac74abc71e221795d8947f0
19294 2017-03-01 Werner Koch <wk@gnupg.org>
19296 gpg: Make --export-options work with --export-secret-keys.
19297 + commit 891ab23411b7f20ef37d8bde81d9857b083235df
19298 * g10/export.c (export_seckeys): Add arg OPTIONS and pass it to
19300 (export_secsubkeys): Ditto.
19301 * g10/gpg.c (main): Pass opt.export_options to export_seckeys and
19304 gpg: Allow creating keys using an existing ECC key.
19305 + commit 2bbdeb8ee87a6c7ec211be16391a11b7c6030bed
19306 * common/sexputil.c (get_pk_algo_from_canon_sexp): Remove arg R_ALGO.
19307 Change to return the algo id. Reimplement using get_pk_algo_from_key.
19308 * g10/keygen.c (check_keygrip): Adjust for change.
19309 * sm/certreqgen-ui.c (check_keygrip): Ditto.
19311 2017-02-28 Werner Koch <wk@gnupg.org>
19313 gpg: Do not require a trustdb for decryption.
19314 + commit e182542e90cbeff4f2ac6c8d71061356d7cdcdea
19315 * g10/trustdb.c (init_trustdb): Add and implement arg NO_CREATE.
19316 Change to return an error code. Change all callers to to pass False
19318 (tdb_get_ownertrust): New arg NO_CREATE. Call init_trustdb to test
19319 for a non-existing trustdb. Change all callers to to pass False for
19321 (tdb_get_min_ownertrust): Ditto.
19322 * g10/trust.c (get_ownertrust_with_min): Add arg NO_CREATE. Call
19323 init_trustdb for a quick check.
19324 (get_ownertrust_info): Add arg NO_CREATE.
19325 (get_ownertrust_string): Ditto.
19326 * g10/gpgv.c (get_ownertrust_info): Adjust stub.
19327 * g10/test-stubs.c (get_ownertrust_info): Ditto.
19328 * g10/mainproc.c (list_node): Call get_ownertrust_info with NO_CREATE
19330 * g10/pubkey-enc.c (get_it): Ditto.
19332 2017-02-28 Justus Winter <justus@g10code.com>
19334 gpgscm: Improve parsing.
19335 + commit e4583ae14e52482ab390c102d071755f91ab211d
19336 * tests/gpgscm/scheme.c (port_increment_current_line): Avoid creating
19337 the same integer if the delta is zero. This happens a lot during
19338 parsing, and puts pressure on the memory allocator.
19340 gpgscm: Fix calculating the line number.
19341 + commit 058c97f9fc485405246b1adfcc905c1891550652
19342 * tests/gpgscm/scheme.c (opexe_5): Only increment the line number on
19345 gpg,tools: Make auto-key-retrieve configurable via gpgconf.
19346 + commit d379a0174cca595204b32da9a66c513a1304e6d0
19347 * g10/gpg.c (gpgconf_list): Add 'auto-key-retrieve'.
19348 * tools/gpgconf-comp.c (gc_options_gpg): Likewise.
19350 tests: Improve support for gpgconf.
19351 + commit 41900175cf046dd9abe3d7a6805f6a403d68df15
19352 * tests/openpgp/defs.scm: Improve high-level inteface to gpgconf.
19353 * tests/openpgp/gpgconf.scm: Adapt.
19354 * tests/openpgp/tofu.scm: Use it to select the trust model.
19356 gpg,tools: Make trust-model configurable via gpgconf.
19357 + commit ebeccd73eb85f9027f0985d77dfe901266c6ddef
19358 * g10/gpg.c (gpgconf_list): Add 'trust-model'.
19359 * tools/gpgconf-comp.c (gc_options_gpg): Likewise.
19361 gpgscm: Track source locations in every kind of ports.
19362 + commit 7cc57e2c63d0fa97569736419db5c76117e7685b
19363 * tests/gpgscm/scheme-private.h (struct port): Move location
19364 information out of the union.
19365 * tests/gpgscm/scheme.c (mark): All ports need marking now.
19366 (gc): Likewise all ports on the load stack.
19367 (port_clear_location): Adapt accordingly. Also, add an empty function
19368 for !SHOW_ERROR_LINE.
19369 (port_increment_current_line): Likewise.
19370 (port_reset_current_line): Drop function in favor of...
19371 (port_init_location): ... this new function.
19372 (file_push): Simplify.
19373 (file_pop): Likewise.
19374 (port_rep_from_filename): Likewise.
19375 (port_rep_from_file): Likewise.
19376 (port_rep_from_string): Also initialize the location.
19377 (port_rep_from_scratch): Likewise.
19378 (port_close): Simplify and generalize.
19379 (skipspace): Likewise.
19381 (_Error_1): Generalize.
19382 (opexe_5): Likewise.
19383 (scheme_deinit): Simplify and generalize.
19384 (scheme_load_named_file): Likewise.
19385 (scheme_load_string): Also initialize the location.
19387 2017-02-28 Werner Koch <wk@gnupg.org>
19389 gpgv,w32: Fix --status-fd.
19390 + commit 8a67dc4c4324b617b5a3fea51c59c674488544d6
19391 * g10/gpgv.c (main): Use translate_sys2libc_fd_int for --status-fd.
19393 w32: Make pipes really pollable.
19394 + commit 1192449207f41b26be8950b04df84a52c8a2a886
19395 * common/exectool.c (gnupg_exec_tool_stream) [W32]: Use _get_osfhandle
19396 to print the fd for the command line.
19397 * common/exechelp-w32.c (create_pipe_and_estream): Use es_sysopen so
19398 that the streams are actually pollable.
19400 2017-02-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
19402 dirmngr: Avoid warnings during non-ntbtls build.
19403 + commit f5782e11a560fd590221042391254c810a42e45f
19404 * dirmngr/t-http.c (my_http_tls_verify_cb): Avoid warnings when not
19407 trustdb: Respect --quiet during --import-ownertrust.
19408 + commit ddf01a67d6388d988f1db50a06facb21c14d9426
19409 * g10/tdbdump.c (import_ownertrust): If opt.quiet is set, do not send
19412 2017-02-26 Manish Goregaokar <manish@mozilla.com>
19415 + commit 64ec21bebd3f136722e608649906b59c6add6947
19416 I already have copyright assignment with the FSF for GDB. I don't
19417 think I'll need to do the DCO thing.
19419 2017-02-24 Werner Koch <wk@gnupg.org>
19421 gpgv: New options --log-file and --debug.
19422 + commit 7af5d61c6e210210c777be9e6e87720dd4a055d9
19423 * g10/gpgv.c (oLoggerFile, oDebug): New consts.
19424 (opts): Add options --log-file and --debug.
19425 (main): Implement options.
19427 2017-02-24 Andre Heinecke <aheinecke@intevation.de>
19429 speedo,w32: Fix gpg-wks-client installation.
19430 + commit 49b4a676148523b51beca3ae929e9d78ed7ba110
19431 * build-aux/speedo/w32/inst.nsi: gpg-wks-client is an exe.
19433 2017-02-23 Werner Koch <wk@gnupg.org>
19435 dirmngr: Add new debug flag "extprog"
19436 + commit 22b69b9edfdf6e6172239cbd1075ffe29077d339
19437 * dirmngr/dirmngr.h (DBG_EXTPROG_VALUE, DBG_EXTPROG): New macros.
19438 * dirmngr/dirmngr.c (debug_flags): Add flag "extprog".
19439 (handle_connections): Use a macro instead of -1 for an invalid socket.
19440 * dirmngr/loadswdb.c (verify_status_cb): Debug the gpgv call.
19442 wks: Make sure that the draft 2 request is correctly detected.
19443 + commit d30e17ac62dea8913b7f353971d546b6b1a09bd5
19444 * tools/gpg-wks.h (WKS_DRAFT_VERSION): New.
19445 * tools/wks-receive.c (new_part): Move test wks draft version to ...
19446 (t2body): new callback.
19447 (wks_receive): Register this callback.
19448 * tools/gpg-wks-server.c (send_confirmation_request): Emit draft
19450 (send_congratulation_message): Ditto.
19451 * tools/gpg-wks-client.c (decrypt_stream_parm_s): New.
19452 (decrypt_stream_status_cb): Check DECRYTPION_KEY status.
19453 (decrypt_stream): Get infor from new callback.
19454 (process_confirmation_request): New arg 'mainfpr'. Check that it
19455 matches the decryption key.
19456 (read_confirmation_request): Check that the decryption key has been
19458 (command_send): Use macro from draft version header.
19459 (send_confirmation_response): Emit draft version header.
19461 wks: New callback for the mime parser.
19462 + commit a2090250829fe8989be2afc8cf41ba2a022072fc
19463 * tools/mime-parser.c (mime_parser_context_s): New field 't2body'.
19464 (parse_message_cb): Call that callback.
19465 (mime_parser_set_t2body): New.
19467 gpg: Emit new status DECRYPTION_KEY.
19468 + commit effa80e0b5fd8cf9e31a984afe391c2406edee8b
19469 * common/status.h (STATUS_DECRYPTION_KEY): New.
19470 * g10/pubkey-enc.c (get_it): Emit that status.
19472 dirmngr,w32: Make https with ntbtls work.
19473 + commit a42bf00b4edce789999aa3bdfce235cf726463ae
19474 * dirmngr/http.c (simple_cookie_functions): New.
19475 (send_request) [HTTP_USE_NTBTLS, W32]: Use es_fopencookie.
19476 (cookie_read): Factor some code out to ...
19477 (read_server): new.
19478 (simple_cookie_read, simple_cookie_write) [W32]: New.
19480 2017-02-22 Werner Koch <wk@gnupg.org>
19482 scd,agent: Improve the OpenPGP PIN prompt texts.
19483 + commit f98c8cb013033c08e98ebedcc0e084fbd2a85b0c
19484 * scd/app-openpgp.c (get_prompt_info): Change texts.
19485 * agent/call-pinentry.c (struct entry_features): New.
19486 (getinfo_features_cb): New.
19487 (start_pinentry): Set new fucntion as status callback.
19488 (build_cmd_setdesc): New. Replace all snprintf for SETDESC by this
19491 2017-02-22 Andre Heinecke <aheinecke@intevation.de>
19493 scd: Nitpicks on the improved card prompts.
19494 + commit 143ca039e1e81140ae520cc1025f8e25c01acc80
19495 * src/app-openpgp.c (get_prompt_info): Change wording and order
19498 2017-02-22 Werner Koch <wk@gnupg.org>
19500 scd: Improve the prompts for OpenPGP cards.
19501 + commit e3944f34e3220f96fb1be449eb6f3d7360bc2d0b
19502 * scd/app-openpgp.c (get_disp_name): New.
19503 (get_disp_serialno): New.
19504 (get_prompt_info): New.
19505 (build_enter_admin_pin_prompt): Rework the prompt texts. Factor some
19507 (get_remaining_tries): New.
19508 (verify_a_chv): Print a remaining counter also for the standard PIN.
19509 Rework the prompt texts.
19511 * agent/divert-scd.c (ask_for_card): Pretty format an OpenPGP serial
19514 agent: Prepend the description to a PIN prompt.
19515 + commit 6488ffb767733a2cf92ca5ba3e61fc0c53e0f673
19516 * agent/divert-scd.c (has_percent0A_suffix): New.
19517 (getpin_cb): Prepend DESC_TEXT to the prompt.
19518 * agent/findkey.c (modify_description): Rename to ...
19519 (agent_modify_description): this. MAke global. Add kludge to remove
19520 empty parentheses from the end.
19521 (agent_key_from_file, agent_delete_key): Adjust for above change.
19522 * agent/pksign.c (agent_pksign_do): Modify DESC_TEXT also when
19523 diverting to a card.
19525 agent: Prepare to pass an additional parameter to the getpin callback.
19526 + commit 78d875a0f83bc046279b951aea76cd74f3c44fd8
19527 * agent/call-scd.c (writekey_parm_s, inq_needpin_s): Merge into ...
19528 (inq_needpin_parm_s): new struct. Add new field 'getpin_cb_desc'.
19529 Change users to set all fields.
19530 (inq_needpin): Pass GETPIN_CB_DESC to the GETPIN_CB.
19531 (agent_card_pksign): Add arg 'desc_text' and change arg 'getpin_cb' to
19532 take an additional arg 'desc_text'.
19533 (agent_card_pkdecrypt): Ditto.
19534 (agent_card_writekey): Change arg 'getpin_cb' to take an additional
19536 (agent_card_scd): Ditto.
19537 * agent/divert-scd.c (getpin_cb): Add new arg 'desc_text'.
19538 (divert_pksign): Add new arg 'desc_text' and pass is to
19540 (divert_pkdecrypt): Add new arg 'desc_text' and pass is to
19541 agent_card_pkdecrypt.
19542 * agent/pkdecrypt.c (agent_pkdecrypt): Pass DESC_TEXT to
19544 * agent/pksign.c (agent_pksign_do): Pass DESC_TEXT to
19547 2017-02-22 NIIBE Yutaka <gniibe@fsij.org>
19549 tests: No spelling fix for test text.
19550 + commit ef424353f342f80ca6d18ede8b63c1b02215d105
19551 * tests/openpgp/verify.scm (msg_ed25519_rshort): Revert the spelling
19554 2017-02-21 Werner Koch <wk@gnupg.org>
19556 dirmngr: Add special treatment for the standard hkps pool to ntbtls.
19557 + commit 831d014550863026dfefa774c961a21bd20c1e48
19558 * dirmngr/validate.h (VALIDATE_FLAG_SYSTRUST): Remove
19559 (VALIDATE_FLAG_EXTRATRUST): Remove
19560 (VALIDATE_FLAG_TRUST_SYSTEM): New.
19561 (VALIDATE_FLAG_TRUST_CONFIG): New.
19562 (VALIDATE_FLAG_TRUST_HKP): New.
19563 (VALIDATE_FLAG_TRUST_HKPSPOOL): New.
19564 (VALIDATE_FLAG_MASK_TRUST): New.
19565 * dirmngr/validate.c (check_header_constants): New.
19566 (validate_cert_chain): Call new function. Simplify call to
19568 * dirmngr/crlcache.c (crl_parse_insert): Pass
19569 VALIDATE_FLAG_TRUST_CONFIG to validate_cert_chain
19570 * dirmngr/server.c (cmd_validate): Use VALDIATE_FLAG_TRUST_SYSTEM and
19571 VALIDATE_FLAG_TRUST_CONFIG.
19572 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Check provided TLS
19573 context. Set trustclass flags using the new VALIDATE_FLAG_TRUST
19576 * dirmngr/certcache.c (cert_cache_init): Load the standard pool
19577 certificate prior to the --hkp-cacerts.
19579 dirmngr: Load --hkp-cacert values into the certificate cache.
19580 + commit d1625a9a82b1e5d96bbbf2132c49c53108565ae1
19581 * dirmngr/dirmngr.c (hkp_cacert_filenames): New var.
19582 (parse_rereadable_options): Store filenames from --hkp-cacert in the
19584 (main, dirmngr_sighup_action): Pass that var to cert_cache_init.
19585 * dirmngr/certcache.c (cert_cache_init): Add arg 'hkp_cacert' and load
19587 (load_certs_from_file): Use autodetect so that PEM and DER encodings
19590 dirmngr: Load "sks-keyservers.netCA.pem" into the cache.
19591 + commit 9741aa24d9056b56cd5366ff5379bd8a3e6118df
19592 * dirmngr/certcache.c (load_certs_from_file): Always build this
19593 function. Add args 'trustclasses' and 'no_error'. Pass TRUSTCLASSES
19595 (load_certs_from_system): Pass CERTTRUST_CLASS_SYSTEM to
19596 load_certs_from_file.
19597 (cert_cache_init): Try to load "sks-keyservers.netCA.pem". Don't make
19598 function fail in an out-of-core condition.
19600 dirmngr: Implement trust classes for the cert cache.
19601 + commit 50b9828eacc39c1ca75cb8313db896e4bdc8b270
19602 * dirmngr/certcache.h (CERTTRUST_CLASS_SYSTEM): New.
19603 (CERTTRUST_CLASS_CONFIG): New.
19604 (CERTTRUST_CLASS_HKP): New.
19605 (CERTTRUST_CLASS_HKPSPOOL): New.
19606 * dirmngr/certcache.c (MAX_EXTRA_CACHED_CERTS): Rename to ...
19607 (MAX_NONPERM_CACHED_CERTS): this.
19608 (total_extra_certificates): Rename to ...
19609 (total_nonperm_certificates): this.
19610 (total_config_certificates): Remove.
19611 (total_trusted_certificates): Remove.
19612 (total_system_trusted_certificates): Remove.
19613 (cert_item_s): Remove field 'flags'. Add fields 'permanent' and
19615 (clean_cache_slot): Clear new fields.
19616 (put_cert): Change for new cert_item_t structure.
19617 (load_certs_from_dir): Rename arg 'are_trusted' to 'trustclass'
19618 (load_certs_from_file): Use CERTTRUST_CLASS_ value for put_cert.
19619 (load_certs_from_w32_store): Ditto.
19620 (cert_cache_init): Ditto.
19621 (cert_cache_print_stats): Rewrite.
19622 (is_trusted_cert): Replace arg 'with_systrust' by 'trustclasses'.
19624 * dirmngr/validate.c (allowed_ca): Pass CERTTRUST_CLASS_CONFIG to
19626 (validate_cert_chain): Pass CERTTRUST_CLASS_ values to
19629 dirmngr: New Assuan option "http-crl".
19630 + commit 493c142e582ff5ef1b5fdfcb9653715ef43e83e9
19631 * dirmngr/dirmngr.h (server_control_s): New flag 'http_no_crl'.
19632 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Set this flag.
19633 * dirmngr/server.c (option_handler): New option "http-crl"
19634 * dirmngr/http.h (HTTP_FLAG_NO_CRL): New flag.
19635 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Consult this flag.
19636 * dirmngr/ks-engine-hkp.c (send_request): Set flag depending on CTRL.
19637 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
19639 * dirmngr/t-http.c (main): New option --no-crl.
19641 dirmngr: Add a magic field to the http structs.
19642 + commit 39c745038181edd097e188434b3f9c971ed3987f
19643 * dirmngr/http.c (HTTP_SESSION_MAGIC): New.
19644 (http_session_s): New field 'magic'.
19645 (HTTP_CONTEXT_MAGIC): New.
19646 (http_context_s): New field 'magic'.
19647 (my_ntbtls_verify_cb): Assert MAGIC.
19648 (fp_onclose_notification): Ditto.
19649 (session_unref): Ditto. Reset MAGIC.
19650 (http_session_new): Set MAGIC.
19651 (http_open): Ditto.
19652 (http_raw_connect): Ditto.
19653 (http_close): Assert MAGIC. Reset MAGIC.
19655 * dirmngr/t-http.c (my_http_tls_verify_cb): MArk HTTP_FLAGS unused.
19657 2017-02-21 NIIBE Yutaka <gniibe@fsij.org>
19659 g10: Support primary key generation by keygrip.
19660 + commit 3fc69224b7b22ad1df1395ebcb21549384839cd1
19661 * g10/keygen.c (para_name): Add pKEYGRIP.
19662 (generate_keypair): Use pKEYGRIP for key generation.
19663 (do_generate_keypair): Call do_create_from_keygrip with pKEYGRIP.
19665 2017-02-20 Werner Koch <wk@gnupg.org>
19667 dirmngr: Setup a log handler for ntbtls.
19668 + commit a022baa4a487eec769411255a64088450c4c8a49
19669 * dirmngr/dirmngr.c (my_ntbtls_log_handler) [HTTP_USE_NTBTLS]: New.
19670 (main) [HTTP_USE_NTBTLS]: Register log handler.
19672 common: New function log_logv_with_prefix.
19673 + commit 3e9512e557d95c7dc36835365b127b25f6a5cdd9
19674 * common/logging.c (do_logv): Add arg 'prefmt' and print it. Chnage
19675 call callers to pass NULL.
19676 (log_logv_with_prefix): New.
19678 dirmngr.c: Make http.c build without any TLS support.
19679 + commit e174893262d8de0f52faa8abe4fc0402719a35d8
19680 * dirmngr/http.c (http_session_new): Remove used of tls_prority.
19682 dirmngr: Make t-http.c work again with gnutls - second try.
19683 + commit 81ea24b8637ac08e44e9e44816689413c2ae7e08
19684 * dirmngr/t-http.c: Always include ksba.h.
19686 dirmngr: Make t-http.c work again with gnutls.
19687 + commit f923873863fd863d71349f20f5568f80aecc020b
19688 * dirmngr/Makefile.am (t_http_CFLAGS, t_http_LDADD): Add KSBA flags
19691 2017-02-19 Werner Koch <wk@gnupg.org>
19693 dirmngr: First take on ntbtls cert verification.
19694 + commit 64fffd0ce2a4fd9cba152cf07497b585410cc652
19695 * dirmngr/http-ntbtls.c: New.
19696 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
19697 * dirmngr/dirmngr.h (SERVER_CONTROL_MAGIC): New.
19698 (server_conrol_s): Add field 'magic',
19699 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Set MAGIC.
19700 (dirmngr_deinit_default_ctrl): Set MAGIC to deadbeef.
19701 * dirmngr/http.c (my_ntbtls_verify_cb): New.
19702 (http_session_new) [HTTP_USE_NTBTLS]: Remove all CA setting code.
19703 (send_request) [HTTP_USE_NTBTLS]: Set the verify callback. Do not call
19704 the verify callback after the handshake.
19705 * dirmngr/ks-engine-hkp.c (send_request): Pass
19706 gnupg_http_tls_verify_cb to http_session_new.
19707 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
19709 * dirmngr/t-http.c (my_http_tls_verify_cb): New.
19710 (main): Rename option --gnutls-debug to --tls-debug.
19711 (main) [HTTP_USE_NTBTLS]: Create a session.
19713 2017-02-18 Werner Koch <wk@gnupg.org>
19715 dirmngr: Add per-session verify callback to http.c.
19716 + commit a74902cccde539ee2bd216caec0da6eb54b67c1b
19717 * dirmngr/http.h (http_verify_cb_t): New type.
19718 * dirmngr/http.c (http_session_s): Add fields flags, verify_cb, and
19720 (http_session_new): Remove arg tls_priority. Add args verify_cb and
19721 verify-cb_value. Store them in the session object.
19722 (send_request): Use per-session verify callback.
19723 (http_verify_server_credentials) [HTTP_USE_NTBTLS]: Return
19724 GPG_ERR_NOT_IMPLEMENTED.
19725 * dirmngr/ks-engine-hkp.c (send_request): Adjust for changed
19727 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
19728 * dirmngr/t-http.c (main): Ditto.
19730 * dirmngr/server.c (do_get_cert_local): Replace xmalloc by malloc.
19732 2017-02-17 Werner Koch <wk@gnupg.org>
19734 dirmngr: Strip the default https port from the Host: header.
19735 + commit cd32ebd152a522e362469ab969d91f8d49f28a60
19736 * dirmngr/http.c (send_request): Strip the default https port.
19738 dirmngr: Add option --no-crl to the VALIDATE cmd.
19739 + commit f07811ee2c0a8044551e2ec063eda61cff7f6e39
19740 * dirmngr/validate.h: Remove enums VALIDATE_MODE_*.
19741 (VALIDATE_FLAG_SYSTRUST, VALIDATE_FLAG_EXTRATRUST)
19742 (VALIDATE_FLAG_CRL, VALIDATE_FLAG_RECURSIVE)
19743 (VALIDATE_FLAG_OCSP, VALIDATE_FLAG_TLS)
19744 (VALIDATE_FLAG_NOCRLCHECK): New constants.
19745 * dirmngr/validate.c (validate_cert_chain): Change arg 'mode' to
19746 'flags'. Change code accordingly. Remove NO-CRL in TLS mode kludge.
19747 * dirmngr/crlcache.c (crl_parse_insert): Change to use flag values for
19748 the validate_cert_chain call.
19749 * dirmngr/server.c (cmd_validate): Ditto. Add new option --no-crl.
19751 dirmngr: Add options --tls and --systrust to the VALIDATE cmd.
19752 + commit 070211eb990f5ea41271eba432b6a6b485cef7c7
19753 * dirmngr/certcache.h (certlist_s, certlist_t): New.
19754 * dirmngr/certcache.c (read_certlist_from_stream): New.
19755 (release_certlist): New.
19756 * dirmngr/server.c (MAX_CERTLIST_LENGTH): New.
19757 (cmd_validate): Add options --tls and --systrust. Implement them
19758 using a kludge for now.
19759 * dirmngr/validate.c (validate_cert_chain): Support systrust
19760 checking. Add kludge to disable the CRL checking for tls mode.
19762 dirmngr: Remove use of hardcoded numbers in validate.
19763 + commit ed99af030d19305dd7cd41c41ac581306cb91fd5
19764 * dirmngr/validate.c (enum cert_usage_modes): New.
19765 (cert_usage_p): Change type of arg MODE. Use enums instead of
19766 hardwired values. Use a switch instead of tricky bit tests.
19767 (cert_use_cert_p, cert_use_ocsp_p, cert_use_crl_p): Adjust.
19769 * dirmngr/validate.c (cert_usage_p): Rename to check_cert_usage.
19770 (cert_use_cert_p): Rename to check_cert_use_cert.
19771 (cert_use_ocsp_p): Rename to check_cert_use_ocsp.
19772 (cert_use_crl_p): Rename to check_cert_use_crl.
19774 * dirmngr/validate.h (VALIDATE_MODE_CERT_SYSTRUST): New.
19775 (VALIDATE_MODE_TLS, VALIDATE_MODE_TLS_SYSTRUST): New.
19777 2017-02-17 NIIBE Yutaka <gniibe@fsij.org>
19779 agent: No cards is not an error.
19780 + commit dea4b3c742acbd195d6ab12b279b4dda315f2582
19781 * agent/command-ssh.c (card_key_list): Care the case of no cards.
19783 agent: Send back all public keys for available cards.
19784 + commit 3f4f64b6ac0d7160fd9e1301f95820894b219c3f
19785 * agent/call-scd.c (card_cardlist_cb, agent_card_cardlist): New.
19786 * agent/command-ssh.c (card_key_list): New.
19787 (ssh_handler_request_identities): Call card_key_list and loop for the
19788 list to send public keys for all available cards.
19790 2017-02-17 Justus Winter <justus@g10code.com>
19792 gpgscm: Guard use of tagged expressions.
19793 + commit aab6ba0bb60528b9e816e430be51170cf39611b0
19794 * tests/gpgscm/init.scm (vm-history-print): Check that the tag added
19795 to expressions when parsing source files matches the expected format.
19796 * tests/gpgscm/lib.scm (assert): Likewise.
19798 2017-02-17 NIIBE Yutaka <gniibe@fsij.org>
19800 scd: Fix RESET command handling (more).
19801 + commit 99d4dfe83661d05ef3a20ed04e6cec5647536738
19802 * scd/app-common.h (struct app_ctx_s): Add reset_requested.
19803 * scd/app.c (app_reset): Locking APP, set reset_requested.
19804 (deallocate_app): Release the lock.
19805 (release_application): Add LOCKED_ALREADY argument.
19806 (scd_update_reader_status_file): Hold the lock when accessing APP.
19807 When reset_requested is set, close the reader and deallocate APP.
19808 * scd/command.c (open_card_with_request, cmd_restart): Follow the
19809 change of release_application.
19810 (send_client_notifications): Here it calls release_application holding
19813 2017-02-16 Werner Koch <wk@gnupg.org>
19815 dirmngr,w32: Load all system provided certificates.
19816 + commit 7006352da773d82c47797bbf11e570ecafac6501
19817 * dirmngr/certcache.c (CERTOPENSYSTEMSTORE) [W32]: New type.
19818 (CERTENUMCERTIFICATESINSTORE) [W32]: New type.
19819 (CERTCLOSESTORE) [W32]: New type.
19820 (load_certs_from_file) [W32]: Do not build.
19821 (load_certs_from_w32_store) [W32]: New.
19822 (load_certs_from_system) [W32]: Call new function.
19824 dirmngr: Load all system provided certificates.
19825 + commit 9a1a5ca0bc2cfb17ccf632de3e134b6d789c6855
19826 * configure.ac: Add option --default-trust-store.
19827 (DEFAULT_TRUST_STORE_FILE): New ac_define.
19828 * dirmngr/certcache.c: Include ksba-io-support.h.
19829 (total_trusted_certificates, total_system_trusted_certificates): New.
19830 (put_cert): Manage the new counters.
19831 (cert_cache_deinit): Reset them.
19832 (cert_cache_print_stats): Print them.
19833 (is_trusted_cert): Add arg WITH_SYSTRUST. Change all callers to pass
19835 (load_certs_from_file): New.
19836 (load_certs_from_system): New.
19837 (cert_cache_init): Load system certificates.
19839 common: Rename remaining symbols in ksba-io-support.
19840 + commit e1dfd862367cf91b66abe86bd73664409354bb14
19841 * common/ksba-io-support.c (gpgsm_reader_eof_seen): Rename to ...
19842 (gnupg_ksba_reader_eof_seen): this. Change all callers.
19843 (gpgsm_destroy_reader): Rename to ...
19844 (gnupg_ksba_destroy_reader): this. Change all callers.
19845 (gpgsm_finish_writer): Rename to ...
19846 (gnupg_ksba_finish_writer): this. Change all callers.
19847 (gpgsm_destroy_writer): Rename to ...
19848 (gnupg_ksba_destroy_writer): this. Change all callers.
19849 * common/ksba-io-support.c (struct base64_context_s): Rename to ...
19850 (gnupg_ksba_io_s): this.
19851 * common/ksba-io-support.h (base64_context_s): Ditto.
19852 (Base64Context): Rename this typedef to ...
19853 (gnupg_ksba_io_t): this. Change all users.
19855 common: Remove gpgsm dependencies from ksba-io-support.
19856 + commit 28c31524be84f20b34573c78bd3a94a81e4b1d61
19857 * common/ksba-io-support.c: Include ksba-io-support.h instead of
19858 ../sm/gpgsm.h. Include util.h.
19859 (writer_cb_parm_s): Remove const from 'pem_name'.
19860 (gpgsm_destroy_writer): Free 'pem_name'.
19861 (gpgsm_create_reader): Rename to ...
19862 (gnupg_ksba_create_reader): this. Replace args CTRL and
19863 ALLOW_MULTI_PEM by a new arg FLAGS. Change the code to evaluate
19864 FLAGS. Change all callers to pass the FLAGS.
19865 (gpgsm_create_writer): Rename to ...
19866 (gnupg_ksba_create_writer): this. Replace arg CTRL by new arg FLAGS.
19867 Add arg PEM_NAME. Evaluate FLAGS. Store a copy of PEM_NAME. Change
19868 all callers to pass the FLAGS and PEM_NAME.
19870 common: Change license of ksba-io-support.c.
19871 + commit 919e76b407ac557b0f518ec03f3cc59e9e5740c9
19872 * common/ksba-io-support.c: Change from GPLv3+ to LGPLv3+/GPLv2+.
19874 sm,common: Move ksba reader and writer support to common/.
19875 + commit 04bfa6fe6597b8ffcec61cbcacdc7eb137444e80
19876 * sm/base64.c: Rename to ...
19877 * common/ksba-io-support.c: this.
19878 * common/ksba-io-support.h: New.
19879 * common/Makefile.am (common_sources): Add new files.
19880 * sm/Makefile.am (gpgsm_SOURCES): Remove base64.c
19882 dirmngr: Prepare certcache for forthcoming changes.
19883 + commit 5c4e67afd6385b48065de6a0f2dd0bfd936ab90b
19884 * dirmngr/certcache.c (cert_item_s): Rename 'flags.loaded' to
19885 'flags.config'. Add 'flags.systrust'.
19886 (total_loaded_certificates): Rename to total_config_certificates.
19887 (put_cert): Rename args for clarity. Set SYSTRUST flag.
19888 (load_certs_from_dir): Make sure put_cert does not set the SYSTRUST
19891 dirmngr: Replace stpcpy chains by strconcat.
19892 + commit aef60abe6a1772e18634984a94bd70f57d57ccdd
19893 * dirmngr/certcache.c (find_cert_bysn): Use strconcat.
19894 (find_cert_bysubject): Ditto.
19895 * dirmngr/http.c (store_header): Ditto.
19896 * dirmngr/ldap.c (make_url): Ditto.
19897 * dirmngr/server.c (get_cert_local_ski): Ditto.
19898 (do_get_cert_local): Use xstrconcat.
19900 2017-02-16 NIIBE Yutaka <gniibe@fsij.org>
19902 scd: Minor fixes to silence compiler warnings.
19903 + commit 7a666ccb44f43c4efbaa51c1ca16fc0b37c3399d
19904 * scd/app.c (app_reset): Initialize ERR.
19905 * scd/scdaemon.c (scd_kick_the_loop, handle_connections): Catch the
19908 2017-02-15 Werner Koch <wk@gnupg.org>
19910 libdns: Workaround for bracketed numerical addresses.
19911 + commit a3509e12b6626a585ce7da6ceed8cfddcba2460f
19912 * dirmngr/dns-stuff.c (resolve_name_libdns): Work around an
19913 incompatibility between the glibc resolver and libdns.
19915 dirmngr: Do PTR lookups only for 'keyserver --hosttable'.
19916 + commit a75325faf163275674a91971e75f1018035ca348
19917 * dirmngr/ks-engine-hkp.c (hostinfo_s): Remove fields v4addr and
19918 v5addr and add fields iporname and iporname_valid.
19919 (create_new_hostinfo): Clear them.
19920 (add_host): Remove the code to set the v4addr and v6addr fields.
19921 (ks_hkp_print_hosttable): Remove printing of the fields. Compute the
19922 iporname field and display it.
19923 (ks_hkp_reload): Force re-computing of the iporname field in
19924 ks_hkp_print_hosttable.
19926 dirmngr: Avoid PTR lookup for hosts in a pool.
19927 + commit da2ba20868093e3054d18adc2b1bc56cb23e4ba7
19928 * dirmngr/ks-engine-hkp.c (add_host): Don't to a PTR lookup for hosts
19931 2017-02-15 Justus Winter <justus@g10code.com>
19933 tests,build: Fix distcheck.
19934 + commit 2f7b6cb279ea0ee27364fbb2b12df47e76166a39
19935 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add 'time.scm'.
19937 tests: Test and document other ways to create keys.
19938 + commit 90d383f1eb07fc823518dea10eb15ca390f5cf8e
19939 * doc/gpg.texi: Clarify usage and expiration arguments for key
19941 * tests/openpgp/quick-key-manipulation.scm: Test all variants.
19943 tests: Check expiration times of created keys.
19944 + commit 127e1e532da4083ccd3c307555b6177fab16f408
19945 * tests/gpgscm/ffi.c (do_get_time): New function.
19946 (ffi_init): Expose new function.
19947 * tests/gpgscm/ffi.scm (get-time): Document new function.
19948 * tests/gpgscm/time.scm: New file.
19949 * tests/openpgp/quick-key-manipulation.scm: Use the new facilities to
19950 check the expiration times of created keys.
19951 * tests/openpgp/tofu.scm: Use the new module.
19953 2017-02-15 NIIBE Yutaka <gniibe@fsij.org>
19955 scd: Fix RESET command handling.
19956 + commit e2792813a55e091c51be7b1b089a71beb6466f1d
19957 * scd/app.c (release_application_internal): Remove.
19958 (release_application): Merge release_application_internal.
19959 (app_reset): Kick the loop and let close the reader. Sleep is
19960 required here to wait closing.
19961 (scd_update_reader_status_file): When APP is no use, close it.
19963 2017-02-14 Werner Koch <wk@gnupg.org>
19965 gpg: Make --export-ssh-key work for the primary key.
19966 + commit b456e5be91dc064fc9509ea86edab113721ed299
19967 * g10/export.c (export_ssh_key): Also check the primary key.
19969 2017-02-13 Werner Koch <wk@gnupg.org>
19971 dirmngr: Do a DNS lookup even if it is missing from nsswitch.conf.
19972 + commit dee026d761ae3d7594c3dbc5b3fa842df53cc189
19973 * dirmngr/dns-stuff.c (libdns_init): Do not print error message for a
19974 missing nsswitch.conf. Make sure that tehre is a DNS entry.
19976 gpgconf: No ENOENT warning with --change-options et al.
19977 + commit 30dac0486b6357e84fbe79c612eea940b654e4d1
19978 * tools/gpgconf-comp.c (retrieve_options_from_program): Check ERRNO
19979 before printing a warning.
19981 gpg: Print a warning if no command has been given.
19982 + commit 810adfd47801fc01e45fb71af9f05c91f7890cdb
19983 * g10/gpg.c (main): Print in the default case.
19985 2017-02-13 Justus Winter <justus@g10code.com>
19987 g13: Fix build on macOS.
19988 + commit f8ce31a7bf1ee85e5010b628a66e6f69486e5213
19989 * g13/Makefile.am (t_common_ldadd): Add iconv.
19991 2017-02-13 NIIBE Yutaka <gniibe@fsij.org>
19993 scd: Fix use case of PC/SC.
19994 + commit da4c132cca2c6df81243c9660b7348268a848f88
19995 * scd/apdu.c (apdu_open_reader): Add an argument APP_EMPTY.
19996 When CCID driver fails to open, try PC/SC if APP is nothing.
19997 * scd/app.c (select_application): Supply arg if APP is nothing.
19999 2017-02-10 Werner Koch <wk@gnupg.org>
20001 gpg: Fix memory leak in the error case of signature creation.
20002 + commit 5996c7bf99f3a681393fd9589276399ebc956cff
20003 * g10/sign.c (write_signature_packets): Free SIG. Also replace
20004 xcalloc by xtrycalloc.
20006 2017-02-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20008 common: Avoid warning about implicit declaration of gnupg_fd_valid.
20009 + commit 8810314e377a9cb6612150a57cf99260ed0bb9f6
20010 * common/logging.c: Add #include "sysutils.h".
20012 2017-02-08 Justus Winter <justus@g10code.com>
20014 gpg,common: Make sure that all fd given are valid.
20015 + commit 6823ed46584e753de3aba48a00ab738ab009a860
20016 * common/sysutils.c (gnupg_fd_valid): New function.
20017 * common/sysutils.h (gnupg_fd_valid): New declaration.
20018 * common/logging.c (log_set_file): Use the new function.
20019 * g10/cpr.c (set_status_fd): Likewise.
20020 * g10/gpg.c (main): Likewise.
20021 * g10/keylist.c (read_sessionkey_from_fd): Likewise.
20022 * g10/passphrase.c (set_attrib_fd): Likewise.
20023 * tests/openpgp/Makefile.am (XTESTS): Add the new test.
20024 * tests/openpgp/issue2941.scm: New file.
20026 2017-02-07 Justus Winter <justus@g10code.com>
20028 tests: Skip key types not supported by OpenSSH.
20029 + commit 56aa85f88f6b35fb03a2dc1a95882d49a74290e3
20030 * tests/openpgp/ssh-import.scm (path): New variable.
20031 (ssh,ssh-keygen,ssh-version,ssh-supports?): Likewise.
20033 2017-02-07 Werner Koch <wk@gnupg.org>
20035 wks: Add WKS-Phase headers to the server messages.
20036 + commit b30ac663cec82c89ca9a3e87e65b36d2552f1533
20037 * tools/gpg-wks-server.c (send_confirmation_request): Add custom
20039 (send_congratulation_message): Ditto.
20041 2017-02-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20043 po: Manual updates of nl translation.
20044 + commit aa3f08794bfc809821e2fc30a09a5ae23925c645
20045 * po/nl.po: Apply several minor manual cleanups to nl.po that were
20046 previously applied to all the other localizations.
20048 po: Copied missing nl.po translation from the 2.0 branch.
20049 + commit 8a9d4b55b09d04482b46055f0a60f01b86738df3
20050 * po/nl.po: Copy from 2.0 branch.
20052 gpg: Fix aliases --list-key, --list-sig, and --check-sig.
20053 + commit f31120a5aa40b6e4e89d41d1d5d34e0f7da173b4
20054 * g10/gpg.c (opts): Define commands with ARGPARSE_c
20055 instead of ARGPARSE_s_n.
20057 2017-02-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20059 doc: Clarify abbreviation of --help.
20060 + commit f2b276dffbe2435b17abf2b3c51684d3636f3f11
20061 * doc/gpg.texi: clarify abbreviation of --help.
20063 2017-02-03 Werner Koch <wk@gnupg.org>
20065 agent: Tell pinentry the hostname the agent is running on.
20066 + commit 042fe711c76f6377cedb8f83a73ba386cee34bb7
20067 * agent/call-pinentry.c [!W32]: Incluse utsname.h
20068 (start_pinentry): Pass nodename to OPTION/owner.
20070 agent: Tell the Pinentry the client's pid.
20071 + commit 309f464a5952c7d7504b875bf4853914b1242346
20072 * configure.ac: Check for SO_PEERCRED et al.
20073 * agent/agent.h (server_control_s): Add field 'client_pid'.
20074 * agent/command.c (start_command_handler): Set CLIENT_PID.
20075 * agent/command-ssh.c (get_client_pid): New.
20076 (start_command_handler_ssh): Set CLIENT_PID.
20077 * agent/call-pinentry.c (start_pinentry): Tell Pinentry the client-pid.
20079 gpg: More diagnostics for a launched pinentry.
20080 + commit 7052a0d77cf8f3a445b252a809d29be445788625
20081 * agent/call-pinentry.c (start_pinentry): Call getinfo/ttyinfo.
20082 * g10/server.c (gpg_proxy_pinentry_notify): Simplify the output so
20083 that we do not change the code when adding new fields to
20086 2017-02-02 Neal H. Walfield <neal@g10code.com>
20088 gpg: Don't assume that strtoul interprets "" as 0.
20089 + commit 407f5f9baea5591f148974240a87dfb43e5efef3
20090 * g10/tofu.c (show_statistics): If there are not records, return 0
20093 tests: Improve description of test.
20094 + commit 64be8e1e8607944687f3ae45ec64aa30bf4fdf6f
20095 * tests/openpgp/issue2929.scm: Improve description of test.
20097 Revert "Revert "tests: Add test demonstrating issue2929.""
20098 + commit e596b21f4b78dd27489e677699cc4ba648051b3f
20099 This reverts commit 59048b0f1aa77313573a1004cd3a9f02692a7521.
20101 gpg: Ensure TOFU bindings associated with UTKs are registered as usual.
20102 + commit 769272ba87f282a69e8d5f9bb27c86e6bec4496b
20103 * g10/tofu.c (get_trust): Call get_policy before short-circuiting the
20104 policy lookup for ultimately trusted keys to make sure the binding is
20105 added to the bindings table, if necessary.
20107 gpg: If there is a TOFU conflict, elide the too few message warning.
20108 + commit a08c781739e7561093f32b732c4991f2bd817ec2
20109 * g10/tofu.c (tofu_get_validity): If there was a conflict, don't also
20110 print out a warning about too few messages.
20112 gpg: Only print out TOFU statistics for conflicts in interactive mode.
20113 + commit 027b81b35fe36692005b8dba22d9eb2db05e8c80
20114 * g10/tofu.c (get_trust): Add arguments POLICYP and CONFLICT_SETP. If
20115 they are not NULL, return the policy and conflict set (if there is
20116 one), respectively. Update callers. If MAY_ASK is FALSE, don't print
20117 out the statistics.
20118 (tofu_register_encryption): If there is a conflict and we haven't yet
20119 printed the statistics about the conflicting bindings, do so now.
20120 (tofu_get_validity): Likewise.
20122 gpg: Add newline to output.
20123 + commit 74268180e5a3acc827f3a369f1fe5971f3bbe285
20124 * g10/tofu.c (ask_about_binding): Add newline to output.
20126 gpg: Remove period at end of warning.
20127 + commit 6f9d8a956b2ca0f5a0eb7acc656fc17af2f2de47
20128 * g10/tofu.c (tofu_register_encryption): Remove period at end of
20131 2017-02-01 Werner Koch <wk@gnupg.org>
20133 dirmngr: New option --no-use-tor and internal changes.
20134 + commit 7440119e729d3fdedda8a9b44b70f8959beea8d7
20135 * dirmngr/dns-stuff.c (disable_dns_tormode): New.
20136 * dirmngr/dirmngr.c (oNoUseTor): New const.
20137 (opts): New option --no-use-tor.
20138 (tor_mode): New var.
20139 (parse_rereadable_options): Change to use TOR_MODE.
20140 (dirmngr_use_tor): New.
20141 (set_tor_mode): Call disable_dns_tormode. Implement oNoUseTor.
20142 * dirmngr/dirmngr.h (opt): Remove field 'use_tor'. Replace all
20143 references by a call to dirmngr_use_tor().
20144 * dirmngr/server.c (cmd_getinfo): Distinguish between default and
20147 2017-02-01 NIIBE Yutaka <gniibe@fsij.org>
20149 scd: Fix regression tracking the connection count.
20150 + commit 8ddc9268f6aedef0e178b174b89245c33d8189dd
20151 * scd/scdaemon.c (get_active_connection_count): New.
20152 (start_connection_thread): Bump ACTIVE_CONNECTIONS up and down.
20153 * scd/command.c (cmd_getinfo): Add subcommand "connections".
20155 2017-01-31 Justus Winter <justus@g10code.com>
20157 gpgscm: Tune the hash tables.
20158 + commit 2e78aa6ff770849415f8eb71ca70c8886e9564c8
20159 * tests/gpgscm/scheme.c (oblist_initial_value): Increase the size of
20160 the hash table based on the number of symbols used after initializing
20162 (new_frame_in_env): Increase the size of the hash table based on the
20163 number of variables in the global environement.
20165 gpgscm: Optimize environment lookups and insertions.
20166 + commit b85d509a8f5c2e6200b8051ca1593c019abce90b
20167 * tests/gpgscm/scheme.c (pointercmp): New function.
20168 (new_slot_spec_in_env): Add and use slot for insertions.
20169 (find_slot_spec_in_env): New variant of 'find_slot_in_env' that
20170 returns the slot on failures.
20171 (find_slot_in_env): Express using the new function.
20172 (new_slot_in_env): Update callsite.
20173 (opexe_0): Optimize lookup-or-insert.
20174 (opexe_1): Likewise.
20175 (scheme_define): Likewise.
20177 gpgscm: Fix build with list environments.
20178 + commit 874424ee3cc795eae9972b6259a2cc4dcdbb868e
20179 * tests/gpgscm/scheme.c (new_slot_spec_in_env): Provide preallocation
20180 inforomation if USE_ALIST_ENV.
20182 gpgscm: Optimize symbol lookups and insertions.
20183 + commit cea6d114b60deaecfbc2eb1aedbdfb7e6700922f
20184 * tests/gpgscm/scheme.c (oblist_find_by_name): Keep the list of
20185 symbols sorted, return the slot where a new symbol must be inserted on
20187 (oblist_add_by_name): Add the new symbol at the given slot.
20188 (mk_symbol): Adjust callsite.
20189 (gensym): Likewise.
20190 (assign_syntax): Likewise.
20192 gpgscm: Fix build with object list.
20193 + commit 8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00
20194 * tests/gpgscm/scheme.c (oblist_add_by_name): Provide preallocation
20195 information if USE_OBJECT_LIST.
20197 gpgscm: Remove unused functions.
20198 + commit 2076cdaf6b93bc73223819895cc7a67323d8cee7
20199 * tests/gpgscm/scheme.c (check_cell_alloced): Remove function.
20200 (check_range_alloced): Likewise.
20202 2017-01-31 Werner Koch <wk@gnupg.org>
20204 dirmngr: Require --allow-version-check even if --use-tor is used.
20205 + commit b0e8376e19072ec3c590273c69ab3e8e5edfdaca
20206 * dirmngr/dirmngr.c (housekeeping_thread): Load swdb only if the
20209 2017-01-31 NIIBE Yutaka <gniibe@fsij.org>
20211 scd: Remove --debug-disable-ticker option.
20212 + commit e17fa5c75d76af4d4684ee810cb446ecd5110560
20213 * scd/scdaemon.c (ticker_disabled): Remove.
20214 (handle_tick, need_tick): Remove.
20215 (handle_connections): Don't check ticker_disabled.
20217 scd: Fix SERIALNO for multiple devices.
20218 + commit f08d37af049bf1718b301644020658dd2bb07638
20219 * scd/app.c (select_application): Fix the logic if periodical check is
20220 needed. If it is needed for newly found device(s), kick the loop.
20221 (scd_update_reader_status_file): Return value if select(2) should be
20222 called with timeout.
20223 * scd/ccid-driver.c (ccid_require_get_status): Don't return 0 for
20224 token with no interrupt transfer for now.
20225 * scd/command.c (open_card_with_request): Fix scan by SERIALNO.
20226 * scd/scdaemon.c (update_usb): Remove.
20227 (handle_connections): Evaluate need_tick after handle_tick.
20229 2017-01-30 Justus Winter <justus@g10code.com>
20231 gpgscm: Use a compact vector representation.
20232 + commit 49e2ae65e892f93be7f87cfaae3392b50a99e4b1
20233 * tests/gpgscm/scheme-private.h (struct cell): Add a compact vector
20235 * tests/gpgscm/scheme.c (vector_length): Use new representation.
20236 (vector_size): New macro.
20237 (get_vector_object): Use the new representation.
20238 (fill_vector): Likewise.
20239 (vector_elem): Likewise.
20240 (set_vector_elem): Likewise.
20242 (gc): Likewise. Be careful not to confuse immediate values for type
20244 (finalize_cell): Vectors now require finalization.
20246 gpgscm: Provide framework for immediate values.
20247 + commit e343984fc50e87830905614dc87f83f810551ad1
20248 * tests/gpgscm/scheme.c (IMMEDIATE_TAG): New macro.
20249 ({is,set,clr}_immediate): Likewise.
20250 (enum scheme_types): Make type tags disjoint from immediate values.
20251 (TYPE_BITS): We need one more bit now.
20252 (ADJ,T_MASKTYPE): Compute values.
20254 gpgscm: Fix setting the line of the first gc reservation.
20255 + commit d27a4435bd8c0f0971d51ddf454422fc77d48271
20256 * tests/gpgscm/scheme.c (_gc_disable): Negate guard.
20258 gpgscm: Introduce macro for the vector length.
20259 + commit 489edf84c9a9c2122cef1b4e678154521525b54a
20260 * tests/gpgscm/scheme.c (vector_length): New macro.
20261 (get_vector_object): Use the new macro.
20262 (oblist_add_by_name): Likewise.
20263 (oblist_find_by_name): Likewise.
20264 (oblist_all_symbols): Likewise.
20265 (mk_vector): Likewise.
20267 (new_slot_spec_in_env): Likewise.
20268 (find_slot_spec_in_env): Likewise.
20269 (opexe_2): Likewise.
20270 (opexe_5): Likewise.
20272 Revert "tests: Add test demonstrating issue2929."
20273 + commit 59048b0f1aa77313573a1004cd3a9f02692a7521
20274 This reverts commit 5aafa56dffefe3fac55b9d0555c7c86e8a07f072.
20276 2017-01-30 NIIBE Yutaka <gniibe@fsij.org>
20278 scd: Fix GetSlotStatus.
20279 + commit 2a025039c1817c7f75c35a898884849a8e5dc926
20280 * scd/apdu.c (get_status_reader): Add ON_WIRE arg, here.
20281 (ct_get_status, pcsc_get_status_direct, pcsc_get_status_wrapped)
20282 (pcsc_get_status, get_status_ccid, my_rapdu_get_status): Likewise.
20283 (reset_pcsc_reader_wrapped, open_pcsc_reader_wrapped): Follow the
20285 (apdu_get_status_internal): It's lower-level driver which judge
20286 it's not needed. Otherwise, it can't detect the removal.
20287 * scd/ccid-driver.c (ccid_slot_status): After the POWERED_OFF check,
20288 we can skip sending GetSlotStatus packet on wire, when no need.
20290 scd: Don't send GET_STATUS packet if not needed.
20291 + commit 7c8eee4d396a751d41fd1ee1e1b87b851fca172a
20292 * scd/apdu.c (apdu_get_status_internal): Add ON_WIRE arg.
20293 (apdu_connect): Call apdu_get_status_internal with ON_WIRE enabled.
20294 (apdu_get_status): For periodical check, call apdu_get_status_internal
20295 with ON_WIRE disabled.
20297 scd: Fix cancel INTERRUPT transfer.
20298 + commit 216afba0d99582d0fbae1d6e925f4ddb349d9de3
20299 * scd/ccid-driver.c (do_close_reader): Don't lock events, but check the
20300 return value of libusb_cancel_transfer.
20302 2017-01-27 NIIBE Yutaka <gniibe@fsij.org>
20304 scd: More changes on watching removal of card/reader.
20305 + commit f3d9b2582bcaa1936b4fed5ec42a889b02df2f42
20306 * scd/app-common.h (struct app_ctx_s): Rename field to
20307 periodical_check_needed.
20308 * scd/scdaemon.c (update_usb): Rename from update_fdset_for_usb.
20309 Don't use libusb_get_pollfds any more.
20310 (scd_kick_the_loop): New.
20311 (need_tick): Follow the rename.
20312 (handle_connections): No libusb event handling here.
20313 * scd/app.c (app_new_register): Follow the change of rename.
20314 (select_application, scd_update_reader_status_file): Likewise.
20315 * scd/ccid-driver.c (ccid_usb_thread_is_alive): New.
20316 (intr_cb): Call scd_kick_the_loop.
20317 (ccid_usb_thread): New. Thread to invoke INTERRUPT callback.
20318 (ccid_open_usb_reader): Add thread invocation.
20319 (ccid_require_get_status): Remove
20320 LIBUSB_WORKS_EXPECTED_FOR_INTERRUPT_ENDP.
20321 (do_close_reader): Carefully handle handle->transfer.
20322 (get_escaped_usb_string): Insert npth_unprotect/npth_protect.
20323 (do_close_reader, bulk_out, bulk_in, abort_cmd, ccid_slot_status)
20324 (ccid_transceive, ccid_transceive_secure): Likewise.
20326 scd: Fix release of transfer object.
20327 + commit f92fe33f11c44f14fd31682259fcd231e8fa9e75
20328 * scd/ccid-driver.c (intr_cb): Handle LIBUSB_TRANSFER_CANCELLED.
20329 (do_close_reader): When callback is active, call
20330 libusb_cancel_transfer and wait callback is fired off.
20332 scd: Improve watching USB device removal.
20333 + commit 25cc8575da9a9b8bf60c64c8059cb5f73cc52e1d
20334 * scd/apdu.c(struct reader_table_s): Add require_get_status.
20335 (apdu_connect): Change return value meaning. Call apdu_reset here.
20336 * scd/app.c (app_new_register): Add require_get_status.
20337 (select_application): Use the return value of apdu_connect.
20338 (scd_update_reader_status_file): Call update_fdset_for_usb with
20339 checking all_have_intr_endp.
20340 (app_list_start, app_list_finish): Remove.
20341 * scd/ccid-driver.c (struct ccid_driver_s): Add transfer.
20342 (intr_cb): Don't call libusb_transfer in this callback.
20343 (ccid_require_get_status): New.
20344 (do_close_reader): Call libusb_transfer here.
20345 * scd/scdaemon.c (update_fdset_for_usb): Remove the first argument.
20347 scd: Wake up the select when new USB scan.
20348 + commit 031e3fa7b9a6770a4de1a184555250feeba0d26f
20349 * scd/scdaemon.c (update_fdset_for_usb): Wake up the select(2).
20350 (handle_connections): Use a kind of "self-pipe" technique.
20352 2017-01-26 NIIBE Yutaka <gniibe@fsij.org>
20354 scd: Only submit apdu_get_status when needed.
20355 + commit 881dcdfd84ebad36bff20c895e629025bed9d94e
20356 * scd/apdu.c (apdu_dev_list_finish): Return Boolean value if
20357 all device support INTERRUPT transfer.
20358 * scd/ccid-driver.c (ccid_dev_scan_finish): Likewise.
20359 * scd/app.c (app_new_register): Fix initial value of card_status.
20360 (select_application): Call update_fdset_for_usb.
20361 (scd_update_reader_status_file): Ditto.
20362 * scd/scdaemon.c (update_fdset_for_usb, need_tick): New.
20363 (handle_connections): Call handle_tick when select returns.
20364 Let select watch USB file descriptors, too.
20365 Call libusb_handle_events_timeout_completed for INTERRUPT transfer.
20367 scd: Fix APP reference counting.
20368 + commit 9b06633c811e8815c07d744f20b45405cb082367
20369 * scd/app.c (scd_update_reader_status_file): Don't call another
20370 release_application_internal.
20371 * scd/command.c (open_card_with_request): Don't require APPTYPE !=
20374 scd: Add INTERRUPT endp support to CCID driver.
20375 + commit bb5ceb78c333129a44c0144f2cf49b17ede898f1
20376 * scd/app.c (scd_update_reader_status_file): Fix releas of APP.
20377 * scd/ccid-driver.c (struct ccid_driver_s): Add INTR_BUF.
20378 (intr_cb, ccid_setup_intr): New.
20379 (ccid_open_usb_reader): Call ccid_setup_intr.
20380 (ccid_slot_status): Return CCID_DRIVER_ERR_NO_READER when removed.
20382 2017-01-25 Justus Winter <justus@g10code.com>
20384 gpg: Fix searching for mail addresses in keyrings.
20385 + commit 3f4f20ee6eff052c88647b820d9ecfdbd8df0f40
20386 * g10/keyring.c (compare_name): Fix KEYDB_SEARCH_MODE_MAIL* searches
20387 in keyrings when the UID is a plain addr-spec.
20389 tests,w32: Fix GPGME tests requiring a pinentry.
20390 + commit 02a39f0d1ed717f6fc33392e6ce4ab421c3bcbba
20391 * tests/gpgme/gpgme-defs.scm: Use our fake pinentry, and configure it
20392 to supply the correct passphrase.
20394 tests,w32: Fix gpgsm signature verification test.
20395 + commit 7d5a0ed792133d875fcedb6e23a9a3682f1a23f9
20396 * tests/gpgsm/verify.scm: Use 'call-with-binary-output-file' to avoid
20397 automatic line-ending conversion.
20399 agent: Fix double free.
20400 + commit e175152ef7515921635bf1e00383e812668d13fc
20401 * agent/cache.c (agent_store_cache_hit): Make sure the update is
20404 tests: Skip GPGME tests that are not built.
20405 + commit 5f2da5d439debf44615a97de788d8f720b517972
20406 * tests/gpgme/wrap.scm: Skip tests that are not built.
20408 tests,w32: Fix locating GPGME's tests on Windows.
20409 + commit 6ecd8b3e71632bbcca524ad735c83bdc2a4c4a4a
20410 * tests/gpgme/run-tests.scm: Qualify the test with the executable
20413 2017-01-24 Werner Koch <wk@gnupg.org>
20415 gpg: Print a warning on Tor problems.
20416 + commit 770b75a746836773909af25ccb9b480e61cea677
20417 * dirmngr/ks-engine-hkp.c (tor_not_running_p): New.
20418 (map_host): Call that to print a warning.
20419 (handle_send_request_error): Ditto and avoid marking the host dead.
20420 Also print a tor_config_problem warning. Add arg CTRL; adjust callers
20421 to pass that new arg.
20422 * g10/call-dirmngr.c (ks_status_cb): Detect and print the new
20425 dirmngr: Simplify error returning inside http.c.
20426 + commit 51e5a5e5a46279809848b4ab4419f35045336010
20427 * dirmngr/http.c (connect_server): Change to return an gpg_error_t
20428 and to store socket at the passed address.
20429 (http_raw_connect, send_request): Adjust accordingly.
20431 dirmngr: New option --disable-ipv4.
20432 + commit 72736af86a501592d974d46ff754a63959e183bd
20433 * dirmngr/dirmngr.c (oDisableIPv4): New const.
20434 (opts): New option --disable-ipv4.
20435 (parse_rereadable_options): Set that option.
20436 * dirmngr/dirmngr.h (opt): New field 'disable_ipv4'.
20437 * dirmngr/dns-stuff.c (opt_disable_ipv4): bew var.
20438 (set_dns_disable_ipv4): New.
20439 (resolve_name_standard): Skip v4 addresses when OPT_DISABLE_IPV4 is
20441 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
20442 (send_request): Pass HTTP_FLAG_IGNORE_IPv4 if opt.disable_v4 is set.
20443 * dirmngr/crlfetch.c (crl_fetch): Ditto.
20444 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Ditto.
20445 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
20446 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
20448 2017-01-24 Justus Winter <justus@g10code.com>
20450 tools: Use platform abstraction for I/O.
20451 + commit 73d6572bd0f260c5aa1e191a1ba4859ec6fa262c
20452 * tools/gpg-connect-agent.c (main): Use a gpgrt_stream_t for
20453 'script_fp'. Adapt accordingly.
20455 tools: Use platform abstraction for I/O.
20456 + commit 77b8aff4e1bb641f497e63230a5006ab70e6c3a8
20457 * tools/gpgconf-comp.c (retrieve_options_from_file): Use a
20458 gpgrt_stream_t for 'list_file'. Adapt accordingly.
20459 (copy_file): Likewise for 'src' and 'dst'.
20460 (change_options_file): Likewise for 'src_file' and 'dest_file'.
20461 (change_options_program): Likewise for 'src_file' and 'dest_file'.
20462 (gc_process_gpgconf_conf): Likewise for 'config'.
20464 tools: Use platform abstraction for renaming files.
20465 + commit bfd75e9492fc4edd86f4049a62304943a7b2a29a
20466 * tools/gpgconf-comp.c (gc_component_change_options): Use
20467 'gnupg_rename_file'. Also, block signals across all renames in an
20468 attempt to make the whole process atomic.
20470 tools: Add comments explaining the functions parameters.
20471 + commit 82e309ad06884e54693f4856412984331febdda0
20472 * tools/gpgconf-comp.c (change_options_file): Add comments explaining
20473 the functions parameters.
20474 (change_options_program): Likewise.
20476 tools: Improve error handling.
20477 + commit b0348fdb26637b0bcbd68a96c1746a1613b309af
20478 * tools/gpgconf-comp.c (gp_component_change_options): Improve error
20479 handling when reading from stdin.
20481 tools: Fix memory leak.
20482 + commit 5b28f025085b386e0ec49535d4cd3f875a414eb0
20483 * tools/gpgconf-comp.c (change_options_file): Fix leak.
20485 tests: Add test demonstrating issue2929.
20486 + commit 5aafa56dffefe3fac55b9d0555c7c86e8a07f072
20487 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20488 * tests/openpgp/issue2929.scm: New file.
20490 tests: Enable gpgconf test.
20491 + commit 628ff843466b42309f850b8d65b13cf5f586b81f
20492 * tests/openpgp/Makefile.am (XTESTS): Re-add gpgconf.scm.
20494 2017-01-23 Werner Koch <wk@gnupg.org>
20497 + commit f8289b1d28f501d2f37bf9ccb5e42f7fb27b4688
20500 build: Change make distcheck configure and temp. remove gpgconf.scm.
20501 + commit 25e029823813e190a18b601af60efcb1fb3b84af
20502 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Also test gpgtar and
20503 wks-tools. Disable ntbtls.
20504 * tests/openpgp/Makefile.am (XTESTS): Temporary remove gpgconf.scm.
20506 Fix format string errors and some missing error case initialization.
20507 + commit af5979a42b9468ffe0f3ac6de5a77d982c5cf8a0
20508 * common/logging.c (do_logv): Remove extra parentheses in comparison.
20510 * dirmngr/dns-stuff.c (resolve_addr_libdns): Init RES so that
20511 dns_res_close is given a defined value in the error case.
20513 * dirmngr/http.c (cookie_read, cookie_write) [HTTP_USE_NTBTLS]: Fix
20514 format string char.
20516 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Remove duplicate "const".
20517 * dirmngr/ks-engine-http.c (ks_http_help): Ditto.
20518 * dirmngr/ks-engine-kdns.c (ks_kdns_help): Ditto.
20519 * dirmngr/ks-engine-ldap.c (ks_ldap_help): Ditto.
20521 * scd/app-p15.c (send_keypairinfo, do_getattr): Fix format string
20523 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Init PID for the
20525 (scdaemon_runtime_change): Ditto.
20526 (dirmngr_runtime_change): Ditto.
20528 * tools/gpgconf.c (query_swdb): Init VALUE_SIZE_UL.
20530 dirmngr: On SIGHUP mark all keyservers alive.
20531 + commit 3ca3da8fc4ef802b8cceec5fde398a07b4888848
20532 * dirmngr/ks-engine-hkp.c (ks_hkp_reload): New.
20533 * dirmngr/dirmngr.c (dirmngr_sighup_action): Call it.
20535 2017-01-23 Gaetan Bisson <bisson@archlinux.org>
20537 libdns: Hack to skip negation term.
20538 + commit d4c0187dd93163f12e9f953366adef81ecf526a6
20539 * dirmngr/dns.c (dns_nssconf_loadfile): Skip negation terms in
20540 nsswitch.conf parser.
20542 2017-01-23 Werner Koch <wk@gnupg.org>
20544 dirmngr: Print debug message only with --debug.
20545 + commit 9ae0b81e4ff08712da642456d0164f81924a91e4
20546 * dirmngr/dns-stuff.c (libdns_init): Call log_debug only if opt_debug
20549 2017-01-23 Phil Pennock <gnupg-devel@spodhuis.org>
20551 dirmngr: Handle missing nsswitch.conf.
20552 + commit 88ade475c56ac3712d6bd6d41ae38e1421dcb320
20553 * dirmngr/dns-stuff.c (libdns_init): Fallback to files,dns.
20555 2017-01-23 Damien Goutte-Gattat <dgouttegattat@incenp.org>
20557 gpg: Fix misleading log message when checking regexp.
20558 + commit a85731ada2d361eacddc5ae92f80d34792dd4b5e
20559 * src/trustdb.c (check_regexp): Correctly print whether the
20560 regexp matched or not.
20562 2017-01-23 Werner Koch <wk@gnupg.org>
20564 gpg: New export and import options "backup" and "restore".
20565 + commit 953d4ec6afd1b42feb7465ee57e48d72f033019a
20566 * g10/export.c (parse_export_options): Add "backup" and its alias
20568 (do_export_one_keyblock): Export ring trust packets in backup mode.
20569 * g10/import.c (parse_import_options): Add "restore" and its alias
20571 (read_block): Import ring trust packets.
20573 2017-01-23 NIIBE Yutaka <gniibe@fsij.org>
20575 scd: Fix INTERRUPT transfer.
20576 + commit 21c9ebb908c2ad2e322e7a13e59e5880494c4d67
20577 * scd/ccid-driver.c (find_endpoint): Don't return Bulk endpoint as
20578 Interrupt endpoint.
20579 (ccid_poll): Call libusb_interrupt_transfer.
20581 2017-01-19 Werner Koch <wk@gnupg.org>
20583 build: Print a commit id in the generated ChangeLog.
20584 + commit e926f30a1cda75f6334b79c303b5134f0441a3dc
20585 * build-aux/gitlog-to-changelog: Print an extra line with the commit
20588 common: Fix buffer copy code again.
20589 + commit e031b3c16cfec583c4322c84d299b355f0849c77
20590 * common/exectool.c (my_error_from_errno): Remove.
20591 (copy_buffer_do_copy): Do without var RC.
20592 (copy_buffer_flush): Ditto. Use ERRNO instead of es_write return
20594 (gnupg_exec_tool): Correctly return errors from es_read.
20596 2017-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
20598 gpg: Allow to freeze faked system time.
20599 + commit 3daeef702b2e6a42f0f396b828f86ffc3f33fc88
20600 * g10/gpg.c (main): If the parameter for --faked-system-time
20601 ends with a '!', freeze time at the specified point.
20602 * common/gettime.c (gnupg_set_time): Allow to freeze the time
20603 at an arbitrary time instead of only the current time.
20604 * doc/gpg.texi: Update documentation for --faked-system-time.
20606 2017-01-19 Werner Koch <wk@gnupg.org>
20608 common: Clarify use of vars in buffer copy code.
20609 + commit 55c9212a2338bf0b07c8cf3a69bcedaa28d48d43
20610 * common/exectool.c (my_error_from_errno): New.
20611 (copy_buffer_do_copy): Use separate vars for errno values and
20612 gpg-error values for clarity. s/assert/log_assert/.
20613 (copy_buffer_flush): Ditto.
20614 (gnupg_exec_tool_stream): Use gpg_err_code when testing.
20616 2017-01-19 NIIBE Yutaka <gniibe@fsij.org>
20618 dirmngr: Add setup of CA for NTBTLS.
20619 + commit 367349b4dcc97718f8ae1163d1389d2a46fc3453
20620 * dirmngr/http.c [HTTP_USE_NTBTLS] (http_session_new): Add CA by
20621 ntbtls_set_ca_chain.
20623 2017-01-18 Justus Winter <justus@g10code.com>
20625 common: Fix flushing copy buffers.
20626 + commit 34fa2d79a07a079be472c3ff486debfdac8c6070
20627 * common/exectool.c (copy_buffer_flush): Write and flush the data, but
20628 do not hide EAGAIN from the caller.
20629 (gnupg_exec_tool_stream): Retry on EAGAIN.
20631 2017-01-18 Werner Koch <wk@gnupg.org>
20633 agent: Reduce sleep time in the progress callback.
20634 + commit 3d356d165aed7d76a3ea811b1d24ed0a05ac90d4
20635 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Reduce sleep time
20636 from 100ms to 1ms or use gpgrt_yield when build against a recent
20639 gpgconf: Allow "all" for --launch, --kill, and --reload.
20640 + commit 2312248b2e3adffa52d8a3ac4f24fe2c88f0f569
20641 * tools/gpgconf-comp.c (gc_component_launch): Allow -1 for COMPONENT.
20642 (gc_component_kill): Ditto.
20643 (gc_component_reload): For robustness change the condition to < 0.
20644 * tools/gpgconf.c (main) <aLaunch, aKill, aReload>: Support argument
20647 gpg: Remove unused definitions.
20648 + commit 701f54eccf3da3319dd6d74f46b852c64d90bc52
20649 * g10/keydb.h (rt_UNKNOWN, rt_RING): Remove constants.
20650 (keyblock_pos_struct, KBPOS): Remove struct and type.
20652 2017-01-18 NIIBE Yutaka <gniibe@fsij.org>
20654 scd: Cleanup SERIALNO protocol.
20655 + commit 79cea89774e6327b6785e22b7057f9e3e188ac2b
20656 * scd/app.c (app_get_serial_and_stamp): Remove.
20657 (app_get_serialno): New.
20658 (app_write_learn_status): Use send_status_direct.
20659 (app_getattr): Use app_get_serialno for SERIALNO and
20660 send with send_status_direct.
20661 * scd/app-openpgp.c (do_getattr): Likewise.
20662 * scd/command.c (cmd_serialno): Don't send TIMESTAMP of 0.
20663 (cmd_learn): Likewise. Don't inquire with TIMESTAMP of 0.
20665 scd: Add "card_list" sub command for GETINFO.
20666 + commit 8b1f24a29ebc7651437c01990215a55b1136dae0
20667 * scd/app.c (app_send_card_list): New.
20668 * scd/command.c (cmd_getinfo): Fix "status" sub command.
20669 Add "card_list" sub command.
20671 2017-01-17 Werner Koch <wk@gnupg.org>
20673 build: Handle packages with dashes in --find-version.
20674 + commit a09f258b1412209763222e2e81bab79663e4d685
20675 * autogen.sh (--find-version): Improve version extraction.
20676 * (--help): Extend.
20678 gpg: Clean bogus subkey binding when cleaning a key.
20679 + commit 356323768a1a29138581d0aceed0336ab8be0d5c
20680 * g10/trust.c (clean_key): Also clean bogus subkey bindings.
20682 gpg: Sync print of additional sig data in --edit-key.
20683 + commit 766c25018b288a7185c6da6adac0dec01a64e94a
20684 * g10/keylist.c (show_policy_url): Implement MODE -1.
20685 (show_keyserver_url): Ditto.
20686 (show_notation): Ditto.
20687 * g10/keyedit.c (print_one_sig): Print policy URL, keyserver URL and
20688 notation data to the tty.
20690 common: Remove unused function tty_print_string.
20691 + commit bae42e543799a428e59bad870aed9719dd6e6e45
20692 * common/ttyio.c (tty_print_string): Rename to ...
20693 (do_print_string): this. Make local. Simplify FP case by using
20694 print_utf8_buffer. Change caller.
20696 gpg: Prepare some key cleaning function for use with secret key packets.
20697 + commit adbfbf608e75cdd72ae7b3a538b91bc0e236a18f
20698 * g10/trust.c (mark_usable_uid_certs): Allow use of secret key packets.
20699 (clean_sigs_from_uid): Ditto.
20700 (clean_uid_from_key): Ditto.
20701 (clean_one_uid): Ditto.
20702 (clean_key): Ditto.
20704 2017-01-16 Werner Koch <wk@gnupg.org>
20706 dirmngr: Implement hkps lookups using literal addresses.
20707 + commit e6aebfe3d0f16c483296fd125b66a44017fe15f4
20708 * dirmngr/ks-engine-hkp.c (map_host): For literal addresses do a
20711 dirmngr: Allow reverse DNS lookups in Tor-mode.
20712 + commit 9850124c7bdf0a0e7c1866abc85f3437257d7095
20713 * dirmngr/dns-stuff.c (resolve_dns_name): Move up in the file.
20714 (resolve_addr_libdns): New.
20715 (resolve_dns_addr): Divert to resolve_dns_addr.
20717 dirmngr: Avoid network queries for literal IP addresses.
20718 + commit daae97bc14742c75408c4eb05808a2102cfe2bcf
20719 * dirmngr/dns-stuff.c (resolve_name_libdns): USe flags AI_NUMERICHOST
20720 for literal IP addresses.
20721 (resolve_name_standard): Ditto.
20723 dirmngr: Fix URL creation for literal IPv6 addresses in HKP.
20724 + commit 82646bbf1a5a7d745da81b239a12667a51703dc1
20725 * dirmngr/dns-stuff.c (is_ip_address): Make the return value depend on
20726 the address family.
20727 * dirmngr/ks-engine-hkp.c (map_host): Rename arg R_POOLNAME to
20728 R_HTTPHOST because that is its purpose. Note that the former
20729 behaviour of storing a NULL to indicate that it is not a pool has not
20731 (make_host_part): Ditto.
20732 (make_host_part): Make sure that literal v6 addresses are correclty
20733 marked in the constructed URL.
20735 2017-01-16 Justus Winter <justus@g10code.com>
20737 tests: Improve GPGHOME handling.
20738 + commit 8b1611a9605b636db3e07a9d81016a11b318724c
20739 * tests/openpgp/defs.scm (GPGHOME): New variable.
20740 * tests/openpgp/ssh-import.scm: Remove redundant code, use 'path-join'.
20741 * tests/openpgp/tofu.scm: Likewise.
20743 2017-01-16 NIIBE Yutaka <gniibe@fsij.org>
20745 agent: Ask specific SERIALNO for pksign/pkdecrypt.
20746 + commit 0801f49b0dc7102943f0e9fa51061f50f5708ca6
20747 * agent/call-scd.c (agent_card_serialno): Add DEMAND argument.
20748 * agent/command-ssh.c (card_key_available): Follow the change.
20749 * agent/learncard.c (agent_handle_learn): Likewise.
20750 * agent/divert-scd.c (ask_for_card): Use DEMAND argument.
20752 scd: Add --demand option for SERIALNO.
20753 + commit 2e6f1c99d4f66a23a752092397e20a84964edf48
20754 * scd/app.c (select_application): Add SERIALNO_BIN and SERIALNO_BIN_LEN
20755 arguments. Return matched APP with a serial number when specified.
20756 * scd/command.c (open_card): Modify for the implicit open only.
20757 (open_card_with_request): New for explicit open and support match with a
20759 (cmd_serialno): Support --demand option.
20760 (cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkauth)
20761 (cmd_pkdecrypt, cmd_getattr, cmd_setattr, cmd_writecert, cmd_writekey)
20762 (cmd_genkey, cmd_random, cmd_passwd, cmd_checkpin, cmd_apdu): Follow
20763 the change of open_card.
20765 2017-01-12 Werner Koch <wk@gnupg.org>
20767 build: Make autogen.sh more POSIX friendly (next try)
20768 + commit 3db76c9277d918dec9721a6439f4db3b3c06aba3
20769 * autogen.sh: Fix dd count to 5.
20771 gpg: Rename a var to avoid a shadowing warning.
20772 + commit c99a09f111c5980ae034faaea61a00d9ad60463c
20773 * g10/keygen.c (keygen_set_std_prefs): Rename variable.
20775 tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.
20776 + commit 5c0777e1ca02ff1767755c417b64d6f78e02f475
20777 * configure.ac (AC_CHECK_HEADERS): Add stdint.h.
20778 * common/t-gettime.c: Include stdint.h.
20779 (UINTMAX_C): Define replacement.
20780 (test_isotime2epoch): Use UINTMAX_C for the >32 bit constants.
20782 build: Make autogen.sh more POSIX friendly.
20783 + commit 3c00b52f7cb0fbd756c0bbe5134b8f2d69c60dd1
20784 * autogen.sh: Replace non POSIX "cp -a" and "head -c".
20786 libdns: Silence -Wstrict-prototypes on some function ptrs.
20787 + commit 97372b39cd9b4c84a083eadbf072fff77799617f
20788 * dirmngr/dns.c (dns_rrtype): Ignore -Wstrict-prototypes warning.
20790 libdns: Provide replacement for EPROTO.
20791 + commit 0fadff9cdde47e42f7e428bc903b3626c67ba9c0
20792 * dirmngr/dns.c (EPROTO) ![EPROTO]: Define to EPROTONOSUPPORT.
20794 2017-01-11 Werner Koch <wk@gnupg.org>
20796 dirmngr: After a connection failure log a hint if Tor is not running.
20797 + commit 20dfcfe08c618d23134d5d6efef7676b090f30d3
20798 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Check whether
20801 dirmngr: Mark hosts dead on ENETDOWN.
20802 + commit 76fb2febde10da8237bbe7613830b51af2a45139
20803 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Take care of
20806 dirmngr: Fix Tor access for v6 addresses.
20807 + commit 09aeac41c97bc8ecb44a09886c7fdbd9a6ec5c7f
20808 * dirmngr/http.c (use_socks): New.
20809 (my_sock_new_for_addr): New.
20810 (connect_server): Replace assuan_sock_new by my_sock_new_for_addr.
20812 dirmngr: Remove warnings about unused global variables.
20813 + commit 915864e7f0315b0c96315d0bcd48b1b93592353a
20814 * dirmngr/crlcache.c (oidstr_issuingDistributionPoint): Comment.
20815 * dirmngr/ocsp.c (oidstr_certHash): Comment.
20817 dirmngr: Implement debug option "network" for http.
20818 + commit da894c48ec3393e7c815f575daa5a52ab37cc102
20819 * dirmngr/dirmngr.c (parse_rereadable_options): Set http debugging.
20821 dirmngr: Add debug code to http.c.
20822 + commit 02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a
20823 * dirmngr/http.c (opt_verbose, opt_debug): New vars.
20824 (http_set_verbose): New function.
20825 (_my_socket_new): Add debug output.
20826 (_my_socket_ref, _my_socket_unref, session_unref): Call log_debug if
20827 OPT_DEBUG has ben set to 2 in a debugger.
20828 (http_session_new, http_session_ref): Ditto.
20829 (send_request, http_start_data): Print debug output for the request.
20830 (parse_response): Change to use log_debug_string for the response.
20832 common: New function log_debug_with_string.
20833 + commit 088d71d3671e74eb088386026f0e439a7e3b5543
20834 * common/logging.c (do_logv): Factor some code out to ...
20835 (print_prefix): new.
20836 (log_logv): Add arg EXTRASTRING and print it. Change all callers to
20838 (log_debug_with_string): New. Uses EXTRASTRING.
20840 2017-01-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20842 common: Avoid unnecessary ambiguity in argparse.
20843 + commit 7249ab0f95d1f6cb8ee61eefedc79801bb56398f
20844 * common/argparse.c (find_long_option): Avoid unnecessary ambiguity.
20846 2017-01-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20848 systemd-user: Enable "systemctl --user reload {dirmngr,gpg-agent}"
20849 + commit a20a450ac4ef10847fd59a5fd3acbbd2bfcaa6a2
20850 * doc/examples/systemd-user/*.service: Add ExecReload directives to
20851 indicate the canonical way to reload the services.
20853 GnuPG recommends reloading the agent and dirmngr with "gpgconf
20854 --reload". if anyone is running them as systemd user services, they
20855 might ask them to reload in the systemd way, so teach systemd the
20858 2017-01-10 Justus Winter <justus@g10code.com>
20860 tests: Improve gpgconf test.
20861 + commit 88e42ef08d65d4d1bc29c6cea48df19ca0d5e2bd
20862 * tests/openpgp/defs.scm (valgrind): New variable.
20863 (gpg-config): Fix clearing an option.
20864 * tests/openpgp/gpgconf.scm: Also toggle 'quiet'.
20866 tools: Fix memory leaks and improve error handling.
20867 + commit 1f5caf90bfaaaf7b9d8c06c12087aeeae3748032
20868 * tools/gpgconf-comp.c (gc_option_free): New function.
20869 (gc_components_free): Likewise.
20870 (gc_components_init): Likewise.
20871 (retrieve_options_from_program): Use 'xfree', fix memory leak.
20872 (change_options_program): Improve error handling.
20873 (gc_component_change_options): Fix memory leaks.
20874 * tools/gpgconf.c (main): Initialize components.
20875 * tools/gpgconf.h (gc_components_init): New prototype.
20877 tests: Add test for gpgconf.
20878 + commit c8cfc62125aceee0ca48aab5c8a9fea1ec1ef652
20879 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20880 * tests/openpgp/defs.scm (percent-encode): New function.
20881 (gpg-conf): Generalize so that we can feed stdin.
20882 (gpg-config): New function.
20883 * tests/openpgp/gpgconf.scm: New file.
20885 common: Fix fallback code.
20886 + commit bfd6a490129ffc7c7ac8776bf5a5da3b1ddf6d42
20887 * common/logging.c (_log_assert): Fix the variant for compilers that
20888 do not support __FUNCTION__.
20889 * common/logging.h (_log_assert): Likewise.
20891 2017-01-09 Werner Koch <wk@gnupg.org>
20893 dirmngr: Use "pgpkey-hkps" and "pgpkey-hkp" for SRV record lookups.
20894 + commit 0cc975d8a1cd54115938202432e43263b8893ea4
20895 * dirmngr/ks-engine-hkp.c (map_host): Chnage arg NO_SRV to SRVTAG.
20896 (make_host_part): Rewrite.
20898 dirmngr: Do not use a SRV record for HKP if a port was specified.
20899 + commit c2cbe2f87c480c62239dc4c2cbb352acd98cd267
20900 * dirmngr/http.h (parsed_uri_s): Add field EXPLICIT_PORT.
20901 * dirmngr/http.c (do_parse_uri): That it.
20902 * dirmngr/ks-engine-hkp.c (map_host): Add arg NO_SRV.
20903 (make_host_part): Ditto.
20904 (ks_hkp_resolve): Set NO_SRV from EXPLICIT_PORT.
20905 (ks_hkp_search): Ditto.
20906 (ks_hkp_get): Ditto.
20907 (ks_hkp_put): Ditto.
20909 2017-01-08 Werner Koch <wk@gnupg.org>
20911 dirmngr: Implement experimental SRV record lookup for WKD.
20912 + commit 88dc3af3d4ae1afe1d5e136bc4c38bc4e7d4cd10
20913 * dirmngr/server.c (cmd_wkd_get): Support SRV records.
20915 dirmngr: Improve debug output for TLS.
20916 + commit 714faea4fa7f30d42e9986358214a99aa8fa57b3
20917 * dirmngr/misc.c (dump_cert): Also print SubjectAltNames.
20919 dirmngr: Change internal SRV lookup API.
20920 + commit 16078f3deea5b82ea26e2f01dbd3ef3a5ce25410
20921 * dirmngr/dns-stuff.c (get_dns_srv): Add args SERVICE and PROTO.
20922 * dirmngr/http.c (connect_server): Simplify SRV lookup.
20923 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
20924 * dirmngr/t-dns-stuff.c (main): Adjust for changed get_dns_srv.
20926 dirmngr: Strip root zone suffix from libdns SRV results.
20927 + commit 9fa94aa10778bbd680315e93b23175423e338c40
20928 * dirmngr/dns-stuff.c (getsrv_libdns): Strip trailing dot from the
20931 2017-01-06 Werner Koch <wk@gnupg.org>
20933 agent,w32: Fix annoying output to DebugView.
20934 + commit 8d774904c8066d8c0f19cfffe2d568979bb8c470
20935 * agent/gpg-agent.c (startup_fd_list): Do not define for W32.
20936 (main) [W32]: Do not call get_all_open_fds.
20938 2017-01-06 NIIBE Yutaka <gniibe@fsij.org>
20940 scd: Fix for --disable-ccid for scdaemon.
20941 + commit 858e14cd794e2a6125d51e652a754bbe26def997
20942 * scd/apdu.c (apdu_dev_list_finish): Don't call ccid_dev_scan_finish
20944 (apdu_open_reader): Only increment when it's zero.
20946 scd: Fix for --disable-ccid-driver.
20947 + commit 62268a2732dddca7a05ca4cf45d0e4338c7dc3c4
20948 * scd/apdu.c [HAVE_LIBUSB] (apdu_dev_list_start): Conditionalize.
20949 [HAVE_LIBUSB] (apdu_dev_list_finish, apdu_open_reader): Likewise.
20951 scd: Support multiple readers by CCID driver.
20952 + commit 8a41e73c31adb86d4a7dca4da695e5ad1347811f
20953 * scd/apdu.c (new_reader_slot): Lock is now in apdu_dev_list_start.
20954 (close_pcsc_reader_direct, close_ccid_reader): RDRNAME is handled...
20955 (apdu_close_reader): ... by this function now.
20956 (apdu_prepare_exit): Likewise.
20957 (open_ccid_reader): Open with dev_list.
20958 (apdu_dev_list_start, apdu_dev_list_finish): New.
20959 (apdu_open_one_reader): New.
20960 (apdu_open_reader): Support multiple readers.
20961 * scd/app.c (select_application): With SCAN, opening all readers
20962 available, and register as new APP.
20963 (app_write_learn_status): app->ref_count == 0 is valid for APP which is
20965 (app_list_start, app_list_finish): New.
20966 * scd/ccid-driver.c (struct ccid_driver_s): Remove RID and BCD_DEVICE.
20968 (parse_ccid_descriptor): BCD_DEVICE is now on the arguments.
20969 (ccid_dev_scan, ccid_dev_scan_finish): New.
20970 (ccid_get_BAI, ccid_compare_BAI, ccid_open_usb_reader): New.
20971 (ccid_open_reader): Support multiple readers.
20972 (ccid_set_progress_cb, ccid_close_reader): No RID any more.
20974 2017-01-05 Werner Koch <wk@gnupg.org>
20976 Silence two -Wlogical-op warnings.
20977 + commit 6170eb809033c9d144abf3b1f31f8b936878cdd4
20978 * common/tlv.c (parse_ber_header): Avoid compiler warning about a
20979 duplicate condition.
20980 * tools/gpgtar-create.c (pattern_valid_p): Likewise.
20982 2017-01-05 Justus Winter <justus@g10code.com>
20984 tests: New test for --{show,override}-session-key.
20985 + commit 168c8c9d79a817c1f08a9ef976dab377f8c4c69e
20986 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20987 * tests/openpgp/decrypt-session-key.scm: New file.
20990 + commit 4ded213698123a425393b89a800fda2a4ec5229d
20991 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Make
20992 hygienic, use define-macro, do not change to the ephemeral home
20994 * tests/gpgsm/setup.scm: Change to the ephemeral home directory.
20995 * tests/openpgp/setup.scm: Likewise.
20997 2017-01-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20999 g10: avoid warning when --disable-tofu.
21000 + commit 38671cfe5a2a40bb991619f4cb992c42b5f1e8cd
21001 If configured with --disable-tofu, we see compiler warnings about an
21002 unused variable. This should remove those warnings.
21004 2017-01-04 Justus Winter <justus@g10code.com>
21006 tests,w32: Fix locating the components.
21007 + commit 28e149609da44fab600f6a11b385d1c8ca8e7eb9
21008 * tests/openpgp/defs.scm (percent-decode): New function.
21009 (bin-prefix): New variable.
21010 (installed?): Likewise.
21011 (tool-hardcoded): Use the new variables.
21012 (gpg-conf): Use the new function to decode the values.
21013 (gpg-components): Do not use '--build-prefix' when 'installed?'.
21015 2017-01-03 Werner Koch <wk@gnupg.org>
21017 dirmngr: Make sure Tor mode is also set for DNS on SIGHUP.
21018 + commit 969512401603639e4467ede7d892f1b02582c2c9
21019 * dirmngr/dns-stuff.c (enable_dns_tormode): Always succeed.
21020 (reload_dns_stuff): Reset tor port.
21021 * dirmngr/dirmngr.c (set_tor_mode): Also enable Tor mode for DNS.
21022 (main): Remove warning that Tor mode may not fully work.
21023 * dirmngr/server.c (cmd_dns_cert): Remove explicit Tor for DNS
21025 * dirmngr/t-dns-stuff.c (main): Remove option --new-circuit and error
21026 checking for enable_dns_tormode.
21028 dirmngr: New debug message on correctly initialized libdns.
21029 + commit 0004d52ba2f1245c84f95a151342ad99fd72ca3d
21030 * dirmngr/dns-stuff.c (libdns_init): Add debug level diagnostic on
21033 2017-01-02 Justus Winter <justus@g10code.com>
21035 common: Turn assertions into expressions.
21036 + commit a1e0d4a1e75fc6e6c3392a4e1d1d27005b38d6cc
21037 * common/logging.h (log_assert): Turn this into an expression so it
21038 can be used in expressions.
21040 tests: Fix faked time in the TOFU test.
21041 + commit 6d065198337b5242889723481bfa9ce81aa108bb
21042 * tests/openpgp/tofu.scm (GPG): Fix time delta.
21044 2017-01-02 Werner Koch <wk@gnupg.org>
21046 g13: Improve printing of debug infos.
21047 + commit 5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49
21048 * g13/g13tuple.c (all_printable): Make it work.
21050 Replace use of variable-length-arrays.
21051 + commit 6b84ecbf312d98ac8cce9fe5facdc815bc742fa1
21052 * common/t-iobuf.c (main): Replace variable-length-array.
21053 * g10/gpgcompose.c (mksubpkt_callback): Ditto.
21054 (encrypted): Ditto.
21055 * g10/t-stutter.c (log_hexdump): Ditto.
21056 (oracle_test): Ditto.
21057 * g10/tofu.c (get_policy): Ditto. Use "%zu" for size_t.
21058 * scd/app-openpgp.c (ecc_writekey): Replace variable-length-array.
21059 Check for zero length OID_LEN.
21061 2017-01-02 Justus Winter <justus@g10code.com>
21063 gpgscm: Fail if too many arguments are given.
21064 + commit b0e14bd6ff8401b12b2b39f75aef94d3ad28017f
21065 * tests/gpgscm/scheme.c (opexe_0): Enable check.
21066 * tests/gpgscm/tests.scm (test::report): Remove superfluous argument.
21068 gpgscm: Add 'finally', rework all macros.
21069 + commit b79274a3b7e58f88e9a8c1dc1fb24dd3e983543c
21070 * tests/gpgscm/init.scm (finally): New macro.
21071 * tests/gpgscm/tests.scm (letfd): Rewrite.
21072 (with-working-directory): Likewise.
21073 (with-temporary-working-directory): Likewise.
21074 (lettmp): Likewise.
21076 gpgscm: Use boxed values for source locations.
21077 + commit e8b843508dac96e9d0a3140954dd5a3618669cec
21078 * tests/gpgscm/scheme-private.h (struct port): Use boxed values for
21079 filename and current line. This allows us to use the same Scheme
21080 object for labeling all expressions in a file.
21081 * tests/gpgscm/scheme.c (file_push): Use boxed type for filename.
21082 (mark): Mark location objects of port objects.
21083 (gc): Mark location objects in the load stack.
21084 (port_clear_location): New function.
21085 (port_reset_current_line): Likewise.
21086 (port_increment_current_line): Likewise.
21087 (file_pop): Adapt accordingly.
21088 (port_rep_from_filename): Likewise.
21089 (port_rep_from_file): Likewise.
21090 (port_close): Likewise.
21091 (skipspace): Likewise.
21093 (_Error_1): Likewise.
21094 (opexe_0): Likewise.
21095 (opexe_5): Likewise.
21096 (scheme_deinit): Likewise.
21097 (scheme_load_file): Likewise.
21098 (scheme_load_named_file): Likewise.
21100 2017-01-02 Werner Koch <wk@gnupg.org>
21102 dirmngr: Strip root zone suffix from libdns cname results.
21103 + commit b200e636ab20d2aa93d9f71f3789db5a04af0a56
21104 * dirmngr/dns-stuff.c (resolve_name_libdns): Strip trailing dot.
21105 (get_dns_cname_libdns): Ditto.
21107 2016-12-30 NIIBE Yutaka <gniibe@fsij.org>
21109 scd: Fix select_application.
21110 + commit 337690441fcb19343fe56b139f5649bed7d25c83
21111 * scd/app.c (select_application): Fix the condition for open.
21113 scd: Fix card removal monitor.
21114 + commit f300e12a793d59deb1a369713384eaabfa39b3e6
21115 * scd/app.c (app_reset): Call send_client_notification with REMOVAL.
21116 (scd_update_reader_status_file): Likewise.
21117 * scd/command.c (send_client_notifications): Distinguish removal.
21119 2016-12-29 NIIBE Yutaka <gniibe@fsij.org>
21121 scd: Improve internal CCID driver.
21122 + commit cdc8d0bd933b958db878861587322bc541b580b3
21123 * scd/ccid-driver.c (scan_or_find_usb_device): Don't scan for
21124 configuration but use active configuration. Support alt_setting.
21125 (scan_or_find_devices): Support alt_setting.
21126 (ccid_open_reader): Support alt_setting.
21128 scd: Fix a race condition for new_reader_slot.
21129 + commit c48cf7e32ffa02ebdf00265543344c611bef0431
21130 * scd/apdu.c (reader_table_lock, apdu_init): New.
21131 (new_reader_slot): Serialize by reader_table_lock.
21132 * scd/app.c (lock_app, unlock_app, app_new_register): Fix error code
21134 (initialize_module_command): Call apdu_init.
21135 * scd/scdaemon.c (main): Handle error for initialize_module_command.
21137 2016-12-28 NIIBE Yutaka <gniibe@fsij.org>
21139 scd: APP centric approach for device management.
21140 + commit 4cc9fc5eb9bd91d943c185d59da4a2b4cb885ee6
21141 * scd/app.c (lock_app): Rename from lock_reader and use internal field
21143 (unlock_app): Likewise.
21144 (app_dump_state): Use APP.
21145 (application_notify_card_reset): Remove.
21146 (check_conflict): Change API for APP, instead of SLOT.
21147 (check_application_conflict): Likewise.
21148 (release_application_internal): New.
21150 (app_new_register): New.
21151 (select_application): Change API for APP, instead of SLOT.
21152 (deallocate_app, release_application): Modify for manage link.
21153 (report_change): New.
21154 (scd_update_reader_status_file): Moved from command.c and
21155 use APP list, instead of VREADER.
21156 (initialize_module_command): Moved from command.c.
21158 * scd/command.c (TEST_CARD_REMOVAL): Remove.
21159 (IS_LOCKED): Simplify.
21160 (vreader_table): Remove.
21161 (vreader_slot, update_card_removed): Remove.
21162 (do_reset): Call app_reset.
21163 (get_current_reader): Remove.
21164 (open_card): Add SCAN arg.
21165 (cmd_serialno): No retry, since retry is done in lower layer in apdu.c.
21166 No do_reset, since it is done in lower layer.
21167 Add clearing card_removed flag.
21168 (cmd_disconnect): Call apdu_disconnect.
21169 (send_client_notifications): Modify for APP.
21170 (update_reader_status_file): Remove.
21172 scd: Simplify monitoring card removal.
21173 + commit f9882d8336feea96e3b5e250e9093f8cca01e08b
21174 * scd/apdu.c (struct reader_table_s): Remove any_status, last_status,
21175 status, and change_counter field.
21176 (new_reader_slot, dump_reader_status, ct_activate_card, open_ct_reader)
21177 (connect_pcsc_card, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
21178 (open_ccid_reader, apdu_reset): Follow the change.
21179 (ct_dump_reader_status): Remove.
21180 (apdu_get_status_internal, apdu_get_status): Remove CHANGED arg.
21181 (apdu_connect): Follow the change.
21182 * scd/command.c (struct vreader_s): Remove reset_failed, any, and
21184 (cmd_getinfo, update_reader_status_file): Follow the change.
21186 2016-12-27 NIIBE Yutaka <gniibe@fsij.org>
21188 scd: Improve internal CCID driver.
21189 + commit c7ec9c42246033e14ebad679d11f3b1fbeed23b7
21190 * scd/ccid-driver.c (scan_or_find_usb_device): Fix return value.
21191 Support device with multiple CCID interfaces. Fix the case with
21192 READERNO. Support partial string match of "reader-port" like PC/SC
21195 2016-12-23 NIIBE Yutaka <gniibe@fsij.org>
21197 dirmngr: Fix for --disable-libdns usage.
21198 + commit d26c51825e2255fe58305cbc1cd74fa43f80d93e
21199 * dirmngr/dns-stuff.c (enable_recursive_resolver, set_dns_nameserver)
21200 (reload_dns_stuff): Conditionalize with USE_LIBDNS.
21201 (get_h_errno_as_gpg_error): Map HOST_NOT_FOUND to GPG_ERR_NO_NAME.
21203 2016-12-22 Neal H. Walfield <neal@g10code.com>
21205 tools: Show a clearer error message if a server doesn't support WKS.
21206 + commit 1909e994cb87d6c6866a465f0c20a456d4df46cc
21207 * tools/gpg-wks-client.c (command_send): If we fail to lookup the
21208 submission address, print a better error message. If it is because
21209 the corresponding file doesn't exist, provide the hint that the server
21210 probably doesn't support WKS.
21212 2016-12-22 Werner Koch <wk@gnupg.org>
21214 wks: Let the client ignore missing policy flags.
21215 + commit e917dfcd973a3ebbf5eb584e819ffa89f932bfef
21216 * tools/gpg-wks-client.c (command_send): Ignore missing policy flags.
21218 2016-12-22 NIIBE Yutaka <gniibe@fsij.org>
21220 scd: Clean up internal API for APP.
21221 + commit 8431f5a7e88e1f42d75c4a4b61f4aa9b35457204
21222 * scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
21223 app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
21224 the second argument.
21225 * scd/app.c: Supply CTRL to lock_reader calls.
21226 * scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
21227 cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
21230 2016-12-21 Justus Winter <justus@g10code.com>
21232 gpgscm: Guard use of union member.
21233 + commit 6e96cdd41a0e55b672309431062f37c4a4a9f485
21234 * tests/gpgscm/scheme.c (opexe_5): Check that we have a file port
21235 before accessing filename. Fixes a crash on 32-bit architectures.
21237 2016-12-20 Werner Koch <wk@gnupg.org>
21239 tests: Avoid skipping exectool tests.
21240 + commit 6204f8104fea42d706a68e77e2dc0bca4704bddc
21241 * common/t-exectool.c (test_executing_true): Try also /usr/bin/true.
21242 (test_executing_false): Try also /usr/bin/false.
21244 2016-12-20 Justus Winter <justus@g10code.com>
21246 tests: Add test suite for gpgsm.
21247 + commit 36c14139285982def6ad942d4b2d8bef7ed4ea76
21248 * configure.ac (AC_CONFIG_FILES): Add new file.
21249 * tests/Makefile.am (SUBDIRS): Add new directory.
21250 * tests/gpgsm/32100C27173EF6E9C4E9A25D3D69F86D37A4F939: New file.
21251 * tests/gpgsm/Makefile.am: Likewise.
21252 * tests/gpgsm/cert_dfn_pca01.der: Likewise.
21253 * tests/gpgsm/cert_dfn_pca15.der: Likewise.
21254 * tests/gpgsm/cert_g10code_test1.der: Likewise.
21255 * tests/gpgsm/decrypt.scm: Likewise.
21256 * tests/gpgsm/encrypt.scm: Likewise.
21257 * tests/gpgsm/export.scm: Likewise.
21258 * tests/gpgsm/gpgsm-defs.scm: Likewise.
21259 * tests/gpgsm/import.scm: Likewise.
21260 * tests/gpgsm/plain-1.cms.asc: Likewise.
21261 * tests/gpgsm/plain-2.cms.asc: Likewise.
21262 * tests/gpgsm/plain-3.cms.asc: Likewise.
21263 * tests/gpgsm/plain-large.cms.asc: Likewise.
21264 * tests/gpgsm/run-tests.scm: Likewise.
21265 * tests/gpgsm/setup.scm: Likewise.
21266 * tests/gpgsm/shell.scm: Likewise.
21267 * tests/gpgsm/sign.scm: Likewise.
21268 * tests/gpgsm/verify.scm: Likewise.
21270 tests: Add macro managing ephemeral home directories.
21271 + commit c067a012c764218b94ce8de2914615a895a75f3e
21272 * tests/openpgp/defs.scm (with-ephemeral-home-directory): New macro.
21273 * tests/openpgp/setup.scm: Use the new macro.
21275 tests: Move argument parser.
21276 + commit a30c0a6972cabde3858108e9020e900696094843
21277 * tests/gpgme/gpgme-defs.scm (flag): Move...
21278 * tests/gpgscm/tests.scm: ... over here.
21280 tests: Add missing encrypted sample, cleanup samples handling.
21281 + commit e2ed3c1597daf3188ddce049cc3c50113d56f1b9
21282 * tests/openpgp/Makefile.am (TEST_FILES): Add new file.
21283 * tests/openpgp/defs.scm (plain-files): Add 'plain-large'.
21284 (all-files): New variable.
21285 (create-sample-files): New function.
21286 (create-legacy-gpghome): Use new function.
21287 * tests/openpgp/plain-large.asc: New file.
21289 2016-12-20 Werner Koch <wk@gnupg.org>
21292 + commit ade32464a25fdb35cc0f39e46d303ceba68ea8f6
21295 sm: Remove wrong example from gpgsm --help.
21296 + commit 13465e708bb67e816e4fb3a37c117ad91dc6383f
21297 * sm/gpgsm.c (opts): Remove group 303.
21299 dirmngr: New option --resolver-timeout.
21300 + commit 81c012787fabf734d9c952c6f18ecac21929d4d8
21301 * dirmngr/dns-stuff.c (DEFAULT_TIMEOUT): New.
21302 (opt_timeout): New var.
21303 (set_dns_timeout): New.
21304 (libdns_res_open): Set the default timeout.
21305 (libdns_res_wait): Use configurable timeout.
21306 (resolve_name_libdns): Ditto.
21308 * dirmngr/dirmngr.c (oResolverTimeout): New const.
21309 (opts): New option --resolver-timeout.
21310 (parse_rereadable_options): Set that option.
21311 (main) <aGPGConfList>: Add --nameserver and --resolver-timeout.
21312 * tools/gpgconf-comp.c (gc_options_dirmngr): Add --resolver-timeout
21315 * dirmngr/http.c (connect_server): Fix yesterday introduced bug in
21318 2016-12-19 Werner Koch <wk@gnupg.org>
21320 dirmngr: Fix problems with the getsrv function.
21321 + commit af8b68fae39b1378c769e0de6ba6437ea1aac7e3
21322 * dirmngr/dns-stuff.c (opt_debug, opt_verbose): New vars.
21323 (set_dns_verbose): New func.
21324 (libdns_switch_port_p): Add debug output.
21325 (resolve_dns_name): Ditto.
21326 (get_dns_cert): Ditto.
21327 (get_dns_cname): Ditto.
21328 (getsrv_libdns, getsrv_standard): Change SRVCOUNT to an unsigend int.
21329 (getsrv): Rename to ...
21330 ((get_dns_srv): this. Add arg R_COUNT and return an error. Add debug
21332 * dirmngr/http.c: Adjust for chnaged getsrv().
21333 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
21334 * dirmngr/t-dns-stuff.c (main): Ditto. Call set_dns_verbose.
21335 * dirmngr/dirmngr.c (parse_rereadable_options): Call set_dns_verbose.
21337 build: Add target to sign the windows installer.
21338 + commit 284ec54495dddc9eb0232e959cf994234097578a
21339 * build-aux/speedo.mk (w32-sign-installer): New.
21340 (AUTHENTICODE_KEY): New.
21341 (installer-from-source): Use cp instead of mv. Factor code out to ...
21342 (MKSWDB_commands): new macro.
21343 (sign-installer): New.
21345 2016-12-19 Justus Winter <justus@g10code.com>
21347 tests: Use the common test framework for the migration tests.
21348 + commit 65a0d6a24e6299682793f213a9d2bae17c5b12d9
21349 * tests/migrations/Makefile.am (reqired_pgms): Add 'gpgscm'.
21350 (TESTS_ENVIRONMENT): Populate.
21351 (TESTS): Rename to 'XTESTS'.
21352 (xcheck): New target.
21353 (EXTRA_DIST): Add new files.
21354 (CLEANFILES): Remove log files.
21355 * tests/migrations/common.scm: Honor 'verbose', fix paths.
21356 * tests/migrations/run-tests.scm: New file.
21357 * tests/migrations/setup.scm: Likewise.
21359 tests: Use sequential test runner if only one test is given.
21360 + commit 0bf16d702665a269ce5ef724c927fbbd8f7f1ce9
21361 * tests/openpgp/run-tests.scm: Use sequential test runner if only one
21364 2016-12-19 Werner Koch <wk@gnupg.org>
21366 dirmngr,w32: Hack around a select problem.
21367 + commit d51499fdc522a696f23c6776c3ab248742f4e06a
21368 * dirmngr/dns.c (FD_SETSIZE): Bump up to 1024.
21369 (dns_poll): Return an error instead of hitting an assertion failure.
21371 2016-12-19 Neal H. Walfield <neal@g10code.com>
21373 test: Extend TOFU tests to also check the days with signatures.
21374 + commit aec89a7297bae30f79a63fdc830530e82bab6170
21375 * tests/openpgp/tofu.scm (GPGTIME): Define the "standard" base time.
21376 (faketime): New function.
21377 (days->seconds): Likewise.
21378 (GPG): Use faketime.
21379 (check-counts): Also check the number of expected days with signatures
21380 and encryptions. Update callers. Extend tests.
21382 2016-12-19 Justus Winter <justus@g10code.com>
21384 tests: New test for --delete-[secret-]keys.
21385 + commit a1afc450e182af02ad5e6f6ba79e9dc4332ca2bc
21386 * tests/openpgp/Makefile.am (XTESTS): Add new test.
21387 * tests/openpgp/defs.scm (keys): New variable.
21388 (have-public-key?): New function.
21389 (have-secret-key?): Likewise.
21390 (have-secret-key-file?): Likewise.
21391 * tests/openpgp/delete-keys.scm: New file.
21392 * tests/openpgp/quick-key-manipulation.scm: Move the accessors to
21395 gpgscm: Change associativity of ::.
21396 + commit a45dc0849da0d944ec8c759bc8e3e733b1eb0079
21397 * tests/gpgscm/scheme.c (mk_atom): Change associativity of the ::
21398 infix-operator. This makes it possible to naturally express accessing
21399 nested structures (e.g. a::b::c).
21401 gpgscm: Display location when assertions fail.
21402 + commit 3949cbd1128585c9b810713aeffaa1455fb5aed9
21403 * tests/gpgscm/lib.scm (assert): Use location information if
21406 gpgscm: Make exception handling more robust.
21407 + commit df00745d6eed7034b218a0c482a46d975425798a
21408 * tests/gpgscm/init.scm (throw'): Check that args is a list.
21410 2016-12-19 Andre Heinecke <aheinecke@intevation.de>
21412 speedo,w32: Use nsExec::ExecToLog to avoid popups.
21413 + commit 026bbf0d5ee4510967e5f1dd3db2dee4687b0612
21414 * build-aux/speedo/w32/inst.nsi: Use ExecToLog instead of
21417 2016-12-19 Werner Koch <wk@gnupg.org>
21419 Remove unused debug flags and add "dns" and "network".
21420 + commit e384405b6e251629fb36bcbba4f5f9ac15a39d10
21421 * g10/options.h (DBG_CARD_IO_VALUE, DBG_CARD_IO): Remove.
21422 * g10/gpg.c (debug_flags): Remove "cardio".
21423 * agent/agent.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
21424 * agent/gpg-agent.c (debug_flags): Remove "command".
21425 * scd/scdaemon.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
21426 * scd/scdaemon.c (debug_flags): Remove "command".
21427 * dirmngr/dirmngr.h (DBG_DNS_VALUE, DBG_DNS): New.
21428 (DBG_NETWORK_VALUE, DNG_NETWORK): New.
21429 * dirmngr/dirmngr.c (debug_flags): Add "dns" and "network".
21431 2016-12-17 Werner Koch <wk@gnupg.org>
21433 dirmngr: Fix setup of libdns for W32.
21434 + commit e77b924fec1082faae48cdd2ff8474874a22bdf7
21435 * configure.ac (DNSLIB) {W32]: Add -liphlpapi.
21436 * dirmngr/dns-stuff.c [W32]: Include iphlpapi.h and define
21437 WIN32_LEAN_AND_MEAN.
21438 (libdns_init) [W32]: Use GetNetworkParams to get the nameserver.
21439 * dirmngr/t-dns-stuff.c (init_sockets): New.
21442 2016-12-16 Werner Koch <wk@gnupg.org>
21444 dirmngr: Auto-switch from Tor port to Torbrowser port.
21445 + commit 024dbd7162fc1a7694176ebad3c21ee3ea67c024
21446 * dirmngr/dns-stuff.c (libdns_tor_port): New var.
21447 (set_dns_nameserver): Clear that var.
21448 (libdns_init): Init var to the default port.
21449 (libdns_switch_port_p): New func.
21450 (resolve_dns_name): Use function to switch the port
21451 (get_dns_cert): Ditto.
21453 (get_dns_cname): Ditto.
21455 dirmngr: Use one context for all libdns queries.
21456 + commit c4e8a3194d6b92f596a6483e486c645de7d2ddd1
21457 * dirmngr/dns-stuff.c (libdns_reinit_pending): New var.
21458 (enable_recursive_resolver): Set var.
21459 (set_dns_nameserver): Ditto.
21460 (libdns_init): Avoid double initialization.
21461 (libdns_deinit): New.
21462 (reload_dns_stuff): New.
21463 (libdns_res_open): Act upon LIBDNS_REINIT_PENDING.
21464 * dirmngr/t-dns-stuff.c (main): Call reload_dns_stuff to release
21466 * dirmngr/dirmngr.c (cleanup): Ditto.
21467 (dirmngr_sighup_action): Call reload_dns_stuff to set
21468 LIBDNS_REINIT_PENDING.
21470 dirmngr: Pass Tor credentials to libdns.
21471 + commit ddb48086833f8b86f0f0d69b21a23f245090ea7a
21472 * dirmngr/dns-stuff.c (tor_credentials): Replace by ...
21473 (tor_socks_user, tor_socks_password): new vars.
21474 (enable_dns_tormode): Set these new vars.
21475 (libdns_res_open): Tell libdns the socks credentials.
21477 dirmngr: Factor common libdns code out.
21478 + commit 59d3c3e4baffff52548fb5d1766ebf02dd8e1bec
21479 * dirmngr/dns-stuff.c (libdns_res_open): New. Replace all libdns_init
21480 and dns-res_open by a call to this func.
21481 (libdns_res_submit): New wrapper. Replace all dns_res_sumbit calls.
21482 (libdns_res_wait): New function.
21483 (resolve_name_libdns): Replace loop by libdns_res_wait.
21484 (get_dns_cert_libdns): Ditto.
21485 (getsrv_libdns): Ditto.
21487 gpg,sm: A few more option for --gpgconf-list.
21488 + commit 48671f295ff233765689b6a73021f83ab845a28f
21489 * g10/gpg.c (gpgconf_list): Add --compliance and
21490 --default-new-key-algo.
21491 (parse_compliance_option):
21492 * sm/gpgsm.c (main) <gpgconf-list>: Add --enable-crl-checks.
21494 gpgconf: New command --apply-profile.
21495 + commit 76cd64a5baf6057b199c01f7999b327f1f4a87bc
21496 * tools/gpgconf.c (aApplyProfile): New.
21497 (opts): New command --apply-profile.
21498 (main): Implement that command.
21499 * tools/gpgconf-comp.c (option_check_validity): Add arg VERBATIM.
21500 (change_options_program): Ditto.
21501 (change_one_value): Ditto.
21502 (gc_component_change_options): Ditto.
21503 (gc_apply_profile): New.
21505 gpgconf: Fix --apply-defaults.
21506 + commit 6ca3c28da46873416822bf6ab7893db6c56a49d6
21507 * tools/gpgconf-comp.c: Skip pinentry also in process_all mode.
21509 2016-12-16 Justus Winter <justus@g10code.com>
21511 doc: Mention extra information in pinentry status lines.
21512 + commit 12a5265afa7f87ad92fb571e0882e57b07a3c267
21513 * doc/DETAILS: Mention that 'PINENTRY_LAUNCHED may carry extra
21516 sm: Fix agent communication.
21517 + commit 3c7d6a1769ed6cc90d86247a814a0dce341512a3
21518 * sm/call-agent.c (gpgsm_agent_pksign): Fix passing the control handle
21520 (gpgsm_scd_pksign): Likewise.
21521 (gpgsm_agent_reaedkey): Likewise.
21523 2016-12-16 Neal H. Walfield <neal@g10code.com>
21526 + commit a165fa09be4bfbeb97ebe25d551a9045255e5028
21527 * doc/gpg.texi: Remove comment about options being parsed in-order.
21530 g10: Use total days, not total messages to compute TOFU validity.
21531 + commit 4a2c210b75d4266e289712e73a42c286aabb07f0
21532 * g10/tofu.c (write_stats_status): Use the number of days with
21533 signatures / encryptions to compute the validity, not the total number
21534 of signatures / encryptions.
21535 (BASIC_TRUST_THRESHOLD): Adjust given the new semantics.
21536 (FULL_TRUST_THRESHOLD): Likewise.
21538 g10: Extend TOFU_STATS to emit <sign-days> and <encyrption-days>
21539 + commit 94f6b9010d2e80a75ccbb21426faf0b30195f1ab
21540 * doc/DETAILS: Add SIGN-DAYS and ENCRYPT-DAYS to the TOFU_STATS status
21542 * g10/tofu.c (write_stats_status): Take additional parameters
21543 signature_days and encryption_days. Update callers. Include them in
21544 the tfs record and TOFU status lines.
21545 (show_statistics): Compute the number of days on which we saw a
21546 message signed by FINGERPRINT, and the number of days on which we
21547 encrypted a message to it.
21549 2016-12-16 Justus Winter <justus@g10code.com>
21551 doc: Improve section on unattended key generation.
21552 + commit ca02a8b78fca8815388a859962584d75169ae3ee
21553 * doc/gpg.texi: Improve the subsection on unattended key generation by
21554 suggesting the quick key manipulation interface as an alternative, and
21555 by suggesting alternatives to '%pubring' and '%secring'. Simplify
21556 examples accordingly.
21558 doc: Add documentation for programmatic use of GnuPG.
21559 + commit 116a78eb869c4c589228bd0d6deff7c7a9f92dfb
21560 * doc/gpg.texi: New subsections on programmatic use of GnuPG,
21561 ephemeral home directories, and the quick key manipulation interface.
21563 2016-12-16 Neal H. Walfield <neal@g10code.com>
21565 g10: On a TOFU conflict, write the conflicting keys to the status fd.
21566 + commit fea9da4a8afab6f3a49cdbbcc4a7a21f27a6d3e8
21567 * g10/tofu.c (ask_about_binding): Emit all of the conflicting keys and
21568 their statistics on the status fd.
21569 (get_trust): Likewise, if we don't call ask_about_binding.
21570 (show_statistics): Have the caller pass the policy as returned by
21571 get_policy. Add argument only_status_fd and don't emit any output on
21572 stdout if it is set. Update callers.
21574 g10: Add missing space.
21575 + commit 6caa2d0ba2bfc0ae93878738b0169483f6b6b462
21576 * g10/tofu.c (tofu_register_encryption): Add missing space.
21578 2016-12-15 Justus Winter <justus@g10code.com>
21580 g10: Avoid translating simple error messages.
21581 + commit 6b16b02109f4bb5b934e456667ff4c0ba7bc85fd
21582 * g10/gpg.c (main): Avoid translating arguments to 'wrong_args'.
21584 g10: Rework the --quick-* interface.
21585 + commit 41ad04d403de05abe54280d2a84aa51a603194e4
21586 * g10/gpg.c (opts): Rename options.
21587 (main): Update errors.
21588 * doc/gpg.texi: Update accordingly.
21590 g10: Rename 'card-edit' to 'edit-card'.
21591 + commit 6e4396723e9e5865015ebf7033628fa3919cf7d1
21592 * g10/gpg.c (opts): Rename option.
21593 * g10/call-agent.c (agent_scd_learn): Update comment.
21594 * doc/gpg.texi: Update accordingly.
21596 g10: Spell out --desig-revoke.
21597 + commit 3c691097ca144e9a1d4c9185636c59a848bec85c
21598 * g10/gpg.c (opts): Rename option.
21599 * doc/gpg.texi: Update accordingly.
21601 g10: Shorten unreasonably long option.
21602 + commit c252627c6fd93bc305c5a5a2f013c3de2d45c6b0
21603 * g10/gpg.c (opts): Rename 'generate-revocation-certificate' to
21604 'generate-revocation'.
21605 * doc/gpg.texi: Update accordingly.
21606 * po: Update translations.
21608 doc: Add aliases of all changed options.
21609 + commit bc6b76ef26f31c54ae1c29c761b8ecc437fcf565
21610 * doc/gpg.texi: Add the old version of every option that was updated
21611 with the last change set.
21612 * doc/gpgsm.texi: Likewise.
21614 2016-12-15 Werner Koch <wk@gnupg.org>
21616 dirmngr: First patch to re-enable Tor support.
21617 + commit 2d1760ffe2ff46b77bd0f38db8b781d9564ae999
21618 * dirmngr/dns-stuff.c (SOCKS_PORT, TOR_PORT, TOR_PORT2): New
21620 (libdns_init): Start adding tor support.
21621 (resolve_name_libdns): Pass socks hosts to dns_res_open.
21622 (get_dns_cert_libdns): Ditto.
21623 (getsrv_libdns): Ditto.
21624 (get_dns_cname_libdns): Ditto.
21626 2016-12-15 Justus Winter <justus@g10code.com>
21628 build: Fix distcheck.
21629 + commit 0e2055c7d30d987a7a74923a7080b80cce470601
21630 * tests/gpgme/Makefile.am (CLEANFILES): New variable, clean test logs.
21632 2016-12-14 Justus Winter <justus@g10code.com>
21634 tests: Reuse GPGME's tests.
21635 + commit 948cca9c99e701a1668bb5fd6e25f07e35381b4d
21636 * configure.ac (AC_CONFIG_FILES): Add new Makefile.
21637 * tests/Makefile.am (SUBDIRS): Add new directory.
21638 * tests/gpgme/Makefile.am: New file.
21639 * tests/gpgme/gpgme-defs.scm: Likewise.
21640 * tests/gpgme/run-tests.scm: Likewise.
21641 * tests/gpgme/setup.scm: Likewise.
21642 * tests/gpgme/wrap.scm: Likewise.
21644 common: Support locating components in the build tree.
21645 + commit ca1e9749bfb069d90aa44efbf6f3d611b6104c1b
21646 * common/homedir.c (gnupg_build_directory): New variable.
21647 (gnupg_module_name_called): Likewise.
21648 (gnupg_set_builddir): New function.
21649 (gnupg_set_builddir_from_env): Likewise.
21650 (gnupg_module_name): Support locating components in the build tree.
21651 * common/util.h (gnupg_set_builddir): New prototype.
21652 * tests/openpgp/defs.scm (tools): Drop 'gpg and 'gpg-agent.
21653 (tool): Rename to 'tool-hardcoded.
21654 (gpg-conf): New function, with accessors for the results.
21655 (gpg-components): New variable.
21656 (tool): New function.
21657 * tools/gpgconf.c (enum cmd_and_opt_values): New key.
21658 (opts): New option '--build-prefix'.
21659 (main): Handle new option.
21661 tests: Rework check for trust models.
21662 + commit 55dc81125abc43cd3cc8db951fc3b8a81767942d
21663 * tests/openpgp/defs.scm (gpg-has-option?): New function.
21664 (have-opt-always-trust): Use a simpler test for that option. This way
21665 that is less distracting when we run the tests with verbose=3.
21667 2016-12-14 Werner Koch <wk@gnupg.org>
21669 dirmngr: New configure option --disable-libdns.
21670 + commit d34a2bb410c7c770d26430d69ff77bd83fc407f1
21671 * configure.ac: Add option --disable-libdns
21672 (USE_LIBDNS): New ac_subst and am_conditional.
21673 (USE_C99_CFLAGS): Set only if libdns is used.
21674 * dirmngr/Makefile.am (dirmngr_SOURCES): Move dns.c and dns.h to ...
21675 (dirmngr_SOURCES) [USE_LIBDNS0: here.
21676 (t_common_src): Ditto.
21677 * dirmngr/dirmngr.c (oRecursiveResolver): New constant.
21678 (opts): New option "--recursive-resolver".
21679 (parse_rereadable_options): Set option.
21680 * dirmngr/t-dns-stuff.c (main): Add option --recursive-resolver.
21681 * dirmngr/server.c (cmd_getinfo): Depend output of "dnsinfo" on the
21683 * dirmngr/dns-stuff.c: Include dns.h only if USE_DNSLIB is defined.
21684 Also build and call dnslib functions only if USE_DNSLIB is defined.
21685 (recursive_resolver): New var.
21686 (enable_recursive_resolver): New func.
21687 (recursive_resolver_p): New func.
21689 dirmngr: Implement CERT record lookup via libdns.
21690 + commit 3c2a7918eac024b5e1258ea9b272b4e8a1f1af43
21691 * dirmngr/dns-stuff.c (get_dns_cert_libdns): New.
21692 (get_dns_cert_standard): Fix URL malloc checking.
21694 dirmngr: Implement CNAME and SRV record lookup via libdns.
21695 + commit 4c13e4e3debe0e55e86ae29c095f2d86eb0a6f11
21696 * dirmngr/dns-stuff.c (dns_free): New macro.
21697 (libdns): Move var to the top.
21698 (libdns_error_to_gpg_error): Map error codes to the new gpg-error
21700 (resolve_name_libdns): Restructure code.
21701 (getsrv_libdns): New.
21702 (get_dns_cname_libdns): New.
21704 dirmngr: Fix bugs in the standard resolver code.
21705 + commit 4a030f682ef48542ed324b28207f2c2b4847dbef
21706 * dirmngr/dns-stuff.c: Include dirmngr-err.h to set the correct error
21708 (get_h_errno_as_gpg_error): New.
21709 (get_dns_cert_libdns): Fix error code.
21710 (getsrv_libdns): Add arg R_COUNT and return an error code.
21711 (getsrv_standard): Ditto. Fix handling of res_query errors and
21712 provide the correct size for the return buffer.
21713 (getsrv): Adjust for changed worker functions.
21714 (get_dns_cname_standard): Fix handling of res_query errors and provide
21715 the correct size for the return buffer.
21717 dirmngr: Require a c99 compiler.
21718 + commit 392966aed9b2a5e1456c671e5d13b561a27e4bb2
21719 * configure.ac (USE_C99_CFLAGS): New ac_subst. Set to -std=gnu99 for
21721 * dirmngr/Makefile.am (AM_CFLAGS): Add USE_C99_CFLAGS.
21722 (t_http_CFLAGS): Ditto.
21723 (t_ldap_parse_uri_CFLAGS): Ditto.
21724 (t_dns_stuff_CFLAGS): Ditto.
21726 doc: Add license notes for libdns.
21727 + commit d84f5a88233c073a82fd47728574b001343784ee
21728 * COPYING.other: New.
21729 * Makefile.am (EXTRA_DIST): Add it.
21730 * AUTHORS: Add info on libdns.
21731 * build-aux/speedo/w32/pkg-copyright.txt: Add license terms.
21733 common: Add replacements for error codes from gpg-error 1.26.
21734 + commit aae68a3ccd3d9870162b3ffd49eae08d5bf1b1e1
21737 2016-12-14 Justus Winter <justus@g10code.com>
21739 dirmngr: New libdns snapshot.
21740 + commit f8ab2c4c70ad15c4b2e45492606fb94ddaccdac7
21743 dirmngr: Add basic libdns support.
21744 + commit f6acd0426453d3a18536ca69d63baa0d971082ef
21745 * dirmngr/dns.c: New file.
21746 * dirmngr/dns.h: New file.
21747 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new files.
21748 * dirmngr/dns-stuff.c: Include dns.h.xxx use libdns
21749 (libdns): New global var for the libdns state.
21750 (libdns_error_to_gpg_error): New.
21751 (libdns_init): New.
21752 (resolve_name_libdns): New.
21753 (get_dns_cert_libdns): New stub.
21754 (getsrv_libdns): New stub.
21755 (get_dns_cname_libdns): New stub.
21757 dirmngr,build: Remove support for ADNS.
21758 + commit 2e734a3ce159de8fb60df2bd5d454f98ca710717
21759 * autogen.rc: Remove '--with-adns' argument.
21760 * configure.ac: Remove check for ADNS.
21761 * dirmngr/dns-stuff.c: Remove all code that uses ADNS.
21762 * dirmngr/server.c (cmd_getinfo): Update status line.
21763 * doc/dirmngr.texi: Do not mention ADNS.
21765 2016-12-14 NIIBE Yutaka <gniibe@fsij.org>
21767 dirmngr: Improve ntbtls support.
21768 + commit 57aa42ce9b28bc17ac24491d595766fbf80762af
21769 * dirmngr/http.c [HTTP_USE_NTBTLS] (close_tls_session): Release.
21770 (send_request): Call ntbtls_set_transport.
21771 (cookie_read, cookie_write): Implement.
21772 (cookie_close): Add initial implementation for ntbtls.
21774 2016-12-13 Justus Winter <justus@g10code.com>
21776 g10,sm: Spell out --passwd.
21777 + commit c1c35fb887061de05661f3411eda97546e1a52d7
21778 * g10/gpg.c (opts): Spell out option.
21779 * sm/gpgsm.c (opts): Likewise.
21780 * doc/gpg.texi: Update accordingly.
21781 * doc/gpgsm.texi: Likewise.
21783 g10: Spell out --gen-revoke.
21784 + commit ec1bd3ae685e95563e38077ab3c1655fd55dea07
21785 * g10/gpg.c (opts): Spell out option.
21786 * doc/gpg.texi: Update accordingly.
21787 * po: Update translations.
21789 g10: Spell out --full-gen-key.
21790 + commit 09163a6390bd9713f3a7946de739765b30ef6f64
21791 * g10/gpg.c (opts): Spell out option.
21793 * g10/keygen.c (generate_keypair): Likewise.
21794 * doc/gpg.texi: Update accordingly.
21796 g10,sm: Spell out --gen-key.
21797 + commit 892c827e72b1396e3b58e2f8869cc48328a2b59c
21798 * g10/gpg.c (opts): Spell out option.
21799 * sm/gpgsm.c (opts): Likewise.
21800 * doc/gpg.texi: Update accordingly.
21802 g10,sm: Spell out --check-sigs.
21803 + commit 9147737f1c6894f38b855f3cf38cd33122a1ae2a
21804 * g10/gpg.c (opts): Spell out option.
21805 * sm/gpgsm.c (opts): Likewise.
21806 * doc/gpg.texi: Update accordingly.
21808 g10,sm: Spell out --list-sigs.
21809 + commit a6d6e4afe488bc05ee730e85da6a9505c6cd245a
21810 * g10/gpg.c (opts): Spell out option.
21811 * sm/gpgsm.c (opts): Likewise.
21812 * doc/gpg.texi: Update accordingly.
21814 g10: Hyphenate --clearsign.
21815 + commit 04754ce3a704b1e6d38cb9a28dacf2821dc3f15f
21816 * g10/gpg.c (opts): Hyphenate option.
21817 * doc/gpg.texi: Update accordingly.
21818 * po: Update translations.
21819 * tests/openpgp: Update tests.
21821 g10: Spell out --recv-keys.
21822 + commit ca598152345b40f3a236227dfc63ae04ddf777d7
21823 * g10/gpg.c (opts): Spell out option.
21824 * doc/gpg.texi: Update accordingly.
21826 g10: Create expiring keys in quick key generation mode.
21827 + commit dd3dde07a9a46130ac01d849f8edf0566e44f11f
21828 * doc/gpg.texi: Document that fact.
21829 * g10/keygen.c (quick_generate_keypair): Use a default value.
21830 * tests/openpgp/quick-key-manipulation.scm: Test that fact.
21832 gpgscm: Print failed and skipped tests.
21833 + commit 429891a704057437517cb0b45d11392b40fa1ee8
21834 * tests/gpgscm/tests.scm (test-pool::report): Print failed and skipped
21837 gpgscm: Generalize the test runner.
21838 + commit d43dabf4607d3bcfc217eb9aea34d093f5aa698f
21839 * tests/gpgscm/tests.scm (test::scm) Add explicit name argument.
21840 (test::binary): Likewise. Also, add missing unquote.
21841 * tests/openpgp/run-tests.scm: Adapt accordingly.
21843 gpgscm: Move the test runner to the Scheme library.
21844 + commit 1a176b92a8aad42056ed2c4e1f49a5feb40770cf
21845 * tests/openpgp/run-tests.scm: Move most of the code...
21846 * tests/gpgscm/tests.scm: ... here.
21848 tests: Refactor test runner.
21849 + commit fe36e63763c9c595bb057ac50160d2aff7c7a63f
21850 * tests/openpgp/run-tests.scm (locate-test): New function.
21851 (test): Factor-out the code starting the child process.
21852 (test::binary): New function.
21854 gpgscm: Improve library functions.
21855 + commit e3876f16eb237bdeb9f79aca2e7db5e9e2d86686
21856 * tests/gpgscm/tests.scm (absolute-path?): New function.
21857 (canonical-path): Use the new function.
21858 * tests/gpgscm/lib.scm (string-split-pln): New function.
21859 (string-indexp, string-splitp): Likewise.
21860 (string-splitn): Express using the above function.
21861 (string-ltrim, string-rtrim): Fix corner case.
21862 (list->string-reversed): New function.
21863 (read-line): Fix performance.
21865 2016-12-12 Werner Koch <wk@gnupg.org>
21867 gpg: Fix memory leak in ecc key generation.
21868 + commit 98433c70431dfbde99b0e89416856d1eef9ebc88
21869 * g10/keygen.c (ecckey_from_sexp): Release curve.
21871 gpg: Do not use a fixed string for --gpgconf-list:default_pubkey_algo.
21872 + commit f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1
21873 * g10/keygen.c (get_default_pubkey_algo): New.
21874 (parse_key_parameter_string): Use it.
21875 * g10/gpg.c (gpgconf_list): Take value from new function.
21877 gpg: Fix algo string parsing of --quick-addkey.
21878 + commit 522e6f798db9f3f3a9e0123fdc389a86ac69dedf
21879 * g10/keygen.c (parse_key_parameter_string): Fix handling of PART==1.
21880 (parse_key_parameter_part): Use default key size if only "rsa", "dsa",
21883 2016-12-09 Justus Winter <justus@g10code.com>
21885 g10: Create keys that expire in simple key generation mode.
21886 + commit d568a1561642ed9b7b7b6282b86c56786d10a956
21887 * g10/keygen.c (default_expiration_interval): New variable.
21888 (generate_keypair): Use the new default.
21890 tests: Add a test for '--quick-addkey'.
21891 + commit b778d8deedf344c8116362633925b8153c7f1bf1
21892 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-addkey'.
21894 tests: New test using all available compression algorithms.
21895 + commit 59f1562c25119a4fe27411e6350f2149d6147148
21896 * tests/openpgp/Makefile.am (XTESTS): Add new test.
21897 * tests/openpgp/compression.scm: New file.
21898 * tests/openpgp/defs.scm (all-compression-algos): New variable.
21900 g10: List compression algorithms using human-readable names.
21901 + commit c8100fc0faadf8ba35e4df32b4760cc975e3a83d
21902 * g10/gpg.c (list_config): List all enabled compression algorithms
21903 under the key 'compressname'.
21905 g10: Fix memory leak.
21906 + commit 3de9bad359e28ced4a2539e411d222ffd82a4a62
21907 * g10/sign.c (do_sign): Release old signature data.
21909 2016-12-08 Werner Koch <wk@gnupg.org>
21911 common: Skip the Byte Order Mark in conf files.
21912 + commit 5c7d58222834793629a30248e72b6ea96e832dc4
21913 * common/argparse.c (optfile_parse): Detect and skip the UTF-8 BOM.
21915 Fix 2 compiler warnings.
21916 + commit cb4c7abb774e2d95806d8b0ec6ea5cd130c1b5b8
21917 * dirmngr/loadswdb.c: Set ERR on malloc failure.
21918 * g10/passphrase.c (passphrase_to_dek): Initialize all fields of
21921 wks: New option --status-fd for gpg-wks-client.
21922 + commit 4a04277ad112e0966296133795f93cf6a3daa48e
21923 * tools/wks-util.c: Include status.h.
21924 (statusfp): New global var.
21925 (wks_set_status_fd): New func.
21926 (wks_write_status): New func.
21927 * tools/gpg-wks-client.c: Include status.h.
21928 (oStatusFD): New constant.
21929 (opts): New option --status-fd.
21930 (parse_arguments): Handle that option.
21931 (main): Return STATUS_SUCCESS or STATUS_FAILURE.
21933 2016-12-08 Justus Winter <justus@g10code.com>
21935 gpgscm: Better error reporting.
21936 + commit e7429b1ced0c69fa7901f888f8dc25f00fc346a4
21937 * tests/gpgscm/ffi.scm: Move the customized exception handling and
21939 * tests/gpgscm/init.scm: ... here.
21940 (throw): Record the current history.
21941 (throw'): New function that is history-aware.
21942 (rethrow): New function.
21943 (*error-hook*): Use the new throw'.
21944 * tests/gpgscm/main.c (load): Fix error handling.
21945 (main): Save and use the 'sc->retcode' as exit code.
21946 * tests/gpgscm/repl.scm (repl): Print call history.
21947 * tests/gpgscm/scheme.c (_Error_1): Make a snapshot of the history,
21948 use it to provide a accurate location of the expression causing the
21949 error at runtime, and hand the history trace to the '*error-hook*'.
21950 (opexe_5): Tag all lists at parse time with the current location.
21951 * tests/gpgscm/tests.scm: Update calls to 'throw', use 'rethrow'.
21953 gpgscm: Keep a history of calls for error messages.
21954 + commit 404e8a4136bbbab39df7dd5119841e131998cc15
21955 * tests/gpgscm/init.scm (vm-history-print): New function.
21956 * tests/gpgscm/opdefines.h: New opcodes 'CALLSTACK_POP', 'APPLY_CODE',
21958 * tests/gpgscm/scheme-private.h (struct history): New definition.
21959 (struct scheme): New field 'history'.
21960 * tests/gpgscm/scheme.c (gc): Mark objects in the history.
21961 (history_free): New function.
21962 (history_init): Likewise.
21963 (history_mark): Likewise.
21964 (add_mod): New macro.
21965 (sub_mod): Likewise.
21966 (tailstack_clear): New function.
21967 (callstack_pop): Likewise.
21968 (callstack_push): Likewise.
21969 (tailstack_push): Likewise.
21970 (tailstack_flatten): Likewise.
21971 (callstack_flatten): Likewise.
21972 (history_flatten): Likewise.
21973 (opexe_0): New variable 'callsite', keep track of the expression if it
21974 is a call, implement the new opcodes, record function applications in
21976 (opexe_6): Implement new opcode.
21977 (scheme_init_custom_alloc): Initialize history.
21978 (scheme_deinit): Free history.
21979 * tests/gpgscm/scheme.h (USE_HISTORY): New macro.
21981 gpgscm: Add flag TAIL_CONTEXT.
21982 + commit 01256694f006405c54bc2adef63ef0c8f07da9ee
21983 * tests/gpgscm/scheme.c (S_FLAG_TAIL_CONTEXT): New macro. This flag
21984 indicates that the interpreter is evaluating an expression in a tail
21985 context (see R5RS, section 3.5).
21986 (opexe_0): Clear and set the flag according to the rules layed out in
21988 (opexe_1): Likewise.
21990 gpgscm: Add flags to the interpreter.
21991 + commit a4a69163d9d7e4d9f3339eb5cda0afb947180b26
21992 * tests/gpgscm/scheme-private.h (struct scheme): Add field 'flags'.
21993 * tests/gpgscm/scheme.c (S_OP_MASK): New macro.
21994 (S_FLAG_MASK, s_set_flag, s_clear_flag, s_get_flag): Likewise.
21995 (_s_return): Unpack the encoded opcode and flags.
21996 (s_save): Encode the flags along with the opcode. Use normal
21997 integers to encode the result.
21998 (scheme_init_custom_alloc): Initialize 'op' and 'flags'.
22000 gpgscm: Implement tags.
22001 + commit fcf5aea44627def43425d03881e20902e7c0331e
22002 * tests/gpgscm/opdefines.h: Add opcodes to create and retrieve tags.
22003 * tests/gpgscm/scheme.c (T_TAGGED): New macro.
22004 (mk_tagged_value): New function.
22005 (has_tag): Likewise.
22006 (get_tag): Likewise.
22008 (opexe_4): Implement new opcodes.
22009 * tests/gpgscm/scheme.h (USE_TAGS): New macro.
22011 2016-12-08 Werner Koch <wk@gnupg.org>
22013 gpg: Fix the fix out-of-bounds access.
22014 + commit a75790b74095828f967c012eff7033f570d93077
22015 * g10/tofu.c (build_conflict_set): Revert to int* and fix calloc.
22017 wks: New option --check for gpg-wks-client.
22018 + commit d8c5e8ccfdb53cc327f7520fc7badc31d0c9c666
22019 * tools/call-dirmngr.c (wkd_get_key): New.
22020 * tools/gpg-wks-client.c (aCheck): New constant.
22021 (opts): New option "--check".
22022 (main): Call command_check.
22023 (command_check): New.
22025 tools: Move a function from gpg-wks-server to wks-util.c.
22026 + commit c3138decd77d788906885b638b344d0d1faf32c0
22027 * tools/gpg-wks-server.c (list_key_status_cb): Remove.
22028 (list_key): Move to ...
22029 * tools/wks-util.c (wks_list_key): here and rename. Add new args
22030 R_FPR and R_MBOXES and remove the CTX.
22031 (list_key_status_cb): New.
22032 * tools/wks-util.c: Include ccparray.h, exectool.h, and mbox-util.h.
22033 * tools/gpg-wks-server.c (process_new_key): Replace list_key by
22035 (check_and_publish): Ditto.
22037 2016-12-08 Justus Winter <justus@g10code.com>
22039 gpgscm: Generalize 'for-each-p'.
22040 + commit a2bedc8ac6fcdcd1de0a9fa3d540006481387dff
22041 * tests/gpgscm/tests.scm (for-each-p): Generalize to N lists like
22043 (for-each-p'): Likewise.
22045 g10: Fix out-of-bounds access.
22046 + commit 3b5b94ceab7c0ed9501c5cf54b4efa17fcd7300a
22047 * g10/tofu.c (build_conflict_set): Use 'char'.
22049 2016-12-08 Werner Koch <wk@gnupg.org>
22051 tools: Fix use of uninitialized var in mime-maker.
22052 + commit dd03667ab1062bba3b9413c3f8007d63302d1b31
22053 * tools/mime-maker.c (ensure_part): Make sure to set R_PARENT on
22055 (add_missing_headers): Ensure that ERR is set on success.
22057 * tools/wks-util.c (wks_parse_policy): Fix indentation.
22059 tools: Fix memleak in gpgconf.
22060 + commit b265969154741bf9f93167699fe7ddda1d485265
22061 * tools/gpgconf.c (main): Free SOCKETDIR.
22063 gpg: Fix portability problem.
22064 + commit c3008bffac68b6f31e9ae9bad837cdce5de7c0db
22065 * g10/tofu.c (build_conflict_set): Replace variable dynamic array.
22067 2016-12-07 Justus Winter <justus@g10code.com>
22069 tests: Add test for '--quick-set-expire'.
22070 + commit dec2ae31a46a0f41886c7ad228865cc573f2dea9
22071 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-set-expire'.
22073 tests: Improve quick key manipulation test.
22074 + commit 92df40a3a2ae471fbba00d6d7040230404931fd4
22075 * tests/openpgp/quick-key-manipulation.scm: Do not update the trust
22076 database, rather be more specific when filtering the user ids.
22078 2016-12-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22080 agent: Respect --enable-large-secmem.
22081 + commit 8636ad5023a1bdc527add40a5508f8c5b7c35221
22082 * agent/gpg-agent.c (main): Initialize secmem to the configured buffer
22085 2016-12-06 Justus Winter <justus@g10code.com>
22087 tests: Add test importing a revocation certificate.
22088 + commit e352ead43fbb0180e1f1c71bf1a000d1954eb777
22089 * tests/openpgp/Makefile.am (XTESTS): Add new test.
22090 * tests/openpgp/import-revocation-certificate.scm: New file.
22091 * tests/openpgp/samplemsgs/revoke-2D727CC768697734.asc: Likewise.
22093 tests: Rename 'error' to 'fail'.
22094 + commit 5b5d881f47c82f320abf440c20b7a1bac078a987
22095 * tests/gpgscm/tests.scm (error): Rename to 'fail'. 'error' is a
22096 primitive function (an opcode) of the TinySCHEME vm, and 'error' is
22097 also defined by R6RS. Better avoid redefining that. Fix all call
22099 * tests/openpgp/4gb-packet.scm: Adapt.
22100 * tests/openpgp/decrypt-multifile.scm: Likewise.
22101 * tests/openpgp/ecc.scm: Likewise.
22102 * tests/openpgp/export.scm: Likewise.
22103 * tests/openpgp/gpgtar.scm: Likewise.
22104 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
22105 * tests/openpgp/import.scm: Likewise.
22106 * tests/openpgp/issue2015.scm: Likewise.
22107 * tests/openpgp/issue2346.scm: Likewise.
22108 * tests/openpgp/issue2419.scm: Likewise.
22109 * tests/openpgp/key-selection.scm: Likewise.
22110 * tests/openpgp/mds.scm: Likewise.
22111 * tests/openpgp/multisig.scm: Likewise.
22112 * tests/openpgp/setup.scm: Likewise.
22113 * tests/openpgp/signencrypt.scm: Likewise.
22114 * tests/openpgp/ssh-import.scm: Likewise.
22115 * tests/openpgp/tofu.scm: Likewise.
22116 * tests/openpgp/verify.scm: Likewise.
22118 tests: Remove debugging display.
22119 + commit 89ac071eb4c7539e98c7dc17e11f57c620b54e90
22120 * tests/openpgp/tofu.scm: Remove debugging display.
22122 2016-12-06 Neal H. Walfield <neal@g10code.com>
22124 tests: Update distributed files.
22125 + commit 87972fdef2cd853fb97624d0765686674a19e3c4
22126 * tests/openpgp/Makefile.am (TEST_FILES): Remove tofu-keys.asc,
22127 tofu-keys-secret.asc, tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and
22128 tofu-EE37CF96-1.txt. Add tofu/conflicting/1C005AF3.gpg,
22129 tofu/conflicting/1C005AF3-secret.gpg, tofu/conflicting/1C005AF3-1.txt,
22130 tofu/conflicting/1C005AF3-2.txt, tofu/conflicting/1C005AF3-3.txt,
22131 tofu/conflicting/1C005AF3-4.txt, tofu/conflicting/1C005AF3-5.txt,
22132 tofu/conflicting/B662E42F.gpg, tofu/conflicting/B662E42F-secret.gpg,
22133 tofu/conflicting/B662E42F-1.txt, tofu/conflicting/B662E42F-2.txt,
22134 tofu/conflicting/B662E42F-3.txt, tofu/conflicting/B662E42F-4.txt,
22135 tofu/conflicting/B662E42F-5.txt, tofu/conflicting/BE04EB2B.gpg,
22136 tofu/conflicting/BE04EB2B-secret.gpg, tofu/conflicting/BE04EB2B-1.txt,
22137 tofu/conflicting/BE04EB2B-2.txt, tofu/conflicting/BE04EB2B-3.txt,
22138 tofu/conflicting/BE04EB2B-4.txt, tofu/conflicting/BE04EB2B-5.txt and
22139 tofu/conflicting/README.
22141 doc: Improve the text in the gpg manual.
22142 + commit 7572d270fcda1614648c6f08d711d5096ffebbe6
22143 * doc/gpg.texi: Improve the text.
22145 g10: Avoid a memory leak.
22146 + commit 6102099985c1b82b6c0bba0464c1f913cc673e96
22147 * g10/gpg.c (main): Free KB when we're done with it.
22149 tests: Change (interactive-shell) to start an interactive shell.
22150 + commit db6d8cfdc118131f497596ef1ffc121949377754
22151 * tests/gpgscm/tests.scm (interactive-shell): Start an interactive
22154 tests: Check the signature count in the TOFU TFS record.
22155 + commit 17c717d7c92d9a52101fea7e396fc133322a8786
22156 * tests/openpgp/tofu.scm: Check the signature count in the TOFU TFS
22159 tests: Replace data used by the TOFU conflict test.
22160 + commit d5b18d6c55d65e8df2dd112651e3b9b3d9e6e27a
22161 * tests/openpgp/tofu-2183839A-1.txt: Remove file.
22162 * tests/openpgp/tofu-BC15C85A-1.txt: Remove file.
22163 * tests/openpgp/tofu-EE37CF96-1.txt: Remove file.
22164 * tests/openpgp/tofu-keys-secret.asc: Remove file.
22165 * tests/openpgp/tofu-keys.asc: Remove file.
22166 * tests/openpgp/tofu/conflicting/1C005AF3.gpg: New file.
22167 * tests/openpgp/tofu/conflicting/1C005AF3-secret.gpg: New file.
22168 * tests/openpgp/tofu/conflicting/1C005AF3-1.txt: New file.
22169 * tests/openpgp/tofu/conflicting/1C005AF3-2.txt: New file.
22170 * tests/openpgp/tofu/conflicting/1C005AF3-3.txt: New file.
22171 * tests/openpgp/tofu/conflicting/1C005AF3-4.txt: New file.
22172 * tests/openpgp/tofu/conflicting/1C005AF3-5.txt: New file.
22173 * tests/openpgp/tofu/conflicting/B662E42F.gpg: New file.
22174 * tests/openpgp/tofu/conflicting/B662E42F-secret.gpg: New file.
22175 * tests/openpgp/tofu/conflicting/B662E42F-1.txt: New file.
22176 * tests/openpgp/tofu/conflicting/B662E42F-2.txt: New file.
22177 * tests/openpgp/tofu/conflicting/B662E42F-3.txt: New file.
22178 * tests/openpgp/tofu/conflicting/B662E42F-4.txt: New file.
22179 * tests/openpgp/tofu/conflicting/B662E42F-5.txt: New file.
22180 * tests/openpgp/tofu/conflicting/BE04EB2B.gpg: New file.
22181 * tests/openpgp/tofu/conflicting/BE04EB2B-secret.gpg: New file.
22182 * tests/openpgp/tofu/conflicting/BE04EB2B-1.txt: New file.
22183 * tests/openpgp/tofu/conflicting/BE04EB2B-2.txt: New file.
22184 * tests/openpgp/tofu/conflicting/BE04EB2B-3.txt: New file.
22185 * tests/openpgp/tofu/conflicting/BE04EB2B-4.txt: New file.
22186 * tests/openpgp/tofu/conflicting/BE04EB2B-5.txt: New file.
22187 * tests/openpgp/tofu/conflicting/README: New file.
22188 * tests/openpgp/tofu.scm: Update accordingly.
22190 g10: Remove dead code.
22191 + commit bd9ebe1404c1395edd0e029023a9e780c90f6d73
22192 * g10/tofu.c (tofu_set_policy_by_keyid): Remove function.
22194 2016-12-05 Werner Koch <wk@gnupg.org>
22196 gpg: New option --quick-set-expire.
22197 + commit 41b3d0975de65d1654f5e37c626d7c9b7c9a7a4d
22198 * g10/gpg.c (aQuickSetExpire): New.
22199 (opts): New option --quick-set-expire.
22200 (main): Implement option.
22201 * g10/keyedit.c (menu_expire): Add args FORCE_MAINKEY and
22202 NEWEXPIRATION. Change semantics of the return value. Change caller.
22203 (keyedit_quick_set_expire): New.
22205 2016-12-05 Justus Winter <justus@g10code.com>
22207 tests: New test for '--enarmor' and '--dearmor'.
22208 + commit fae4d06b0ccaa9803e0c0da56c327b0bcfffcac5
22209 * tests/openpgp/Makefile.am (XTESTS): Add new test.
22210 * tests/openpgp/enarmor.scm: New file.
22212 2016-12-03 Werner Koch <wk@gnupg.org>
22214 gpg: Fix error code arg in ERRSIG status line.
22215 + commit ef10c348bffc7dad19e1832bebc453755d209420
22216 * g10/mainproc.c (check_sig_and_print): Use gpg_err_code to return an
22217 error code in ERRSIG.
22219 2016-12-02 Werner Koch <wk@gnupg.org>
22221 gpg: New option --default-new-key-algo.
22222 + commit ce29272e24e7b718b8fca9b84bc728e65f3dea24
22223 * common/openpgp-oid.c (openpgp_is_curve_supported): Add optional arg
22224 R_ALGO and change all callers.
22225 * common/util.h (GPG_ERR_UNKNOWN_FLAG): New error code.
22226 * g10/options.h (struct opt): Add field DEF_NEW_KEY_ALGO.
22227 * g10/gpg.c (oDefaultNewKeyAlgo): New enum.
22228 (opts): New option "--default-new-key-algo".
22229 (main): Set the option.
22230 * g10/keygen.c: Remove DEFAULT_STD_ FUTURE_STD_ constants and replace
22232 (DEFAULT_STD_KEY_PARAM, FUTURE_STD_KEY_PARAM): new string constants.
22233 (get_keysize_range): Remove arg R_DEF and return that value instead.
22234 Change all callers.
22235 (gen_rsa): Use get_keysize_range instead of the removed
22236 DEFAULT_STD_KEYSIZE.
22237 (parse_key_parameter_part): New function.
22238 (parse_key_parameter_string): New function.
22239 (quick_generate_keypair): Refactor using parse_key_parameter_string.
22240 (generate_keypair): Ditto.
22241 (parse_algo_usage_expire): Ditto.
22243 2016-12-02 Neal H. Walfield <neal@g10code.com>
22245 g10: Improve debugging output.
22246 + commit cd532bb7b866e104304e2443cc942799c385daa5
22247 * g10/tofu.c (string_to_long): Improve debugging output.
22248 (string_to_ulong): Likewise.
22250 2016-12-01 Neal H. Walfield <neal@g10code.com>
22252 g10: In the TOFU module, make strings easier to translate.
22253 + commit bd1a1d8582abcfd7f29812942fa70f88d0aec7cf
22254 * g10/tofu.c: Remove dead code.
22255 (time_ago_str): Simplify implementation since we only want the most
22257 (format_conflict_msg_part1): Use ngettext.
22258 (ask_about_binding): Likewise and only emit full sentences.
22259 (show_statistics): Likewise.
22261 2016-12-01 Werner Koch <wk@gnupg.org>
22263 dirmngr: Add option --standard-resolver.
22264 + commit 304566d3327ef0a85188cce3109d46d5ff47177a
22265 * dirmngr/dirmngr.c (oStandardResolver): New constant.
22266 (opts): New option --standard-resolver.
22267 (parse_rereadable_options): Set option.
22268 * dirmngr/dns-stuff.c: Refactor all code to support the new option.
22269 (standard_resolver): New var.
22270 (enable_standard_resolver, standard_resolver_p): New func.
22271 * dirmngr/http.c (connect_server): Remove USE_DNS_SRV build
22273 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
22274 * dirmngr/server.c (cmd_getinfo) <dnsinfo>: Take care of new option
22275 * configure.ac (HAVE_ADNS_IF_TORMODE): Remove var ADNSLIB. ac_define
22276 USE_ADNS in the adns checking code. Remove options --disable-dns-srv
22277 and --disable-dns-cert. Always look for the system resolver. Print
22278 warning if no system resolver was found.
22279 (USE_DNS_CERT, USE_DNS_SRV): Remove ac_defines.
22280 (HAVE_SYSTEM_RESOLVER): New ac_define.
22281 (USE_DNS_SRV): Remove am_conditional; not used anyway.
22283 gpg: Let only Dirmngr decide whether CERT is supported.
22284 + commit 86efc3ee53abaf1e22b53c1b360c51829e476115
22285 * g10/getkey.c (parse_auto_key_locate): Do not build parts depending
22288 2016-12-01 Justus Winter <justus@g10code.com>
22290 tests,build: Fix distcheck.
22291 + commit fbdfe6a514a95fb46f2b811a13709024e2baf252
22292 * tests/openpgp/Makefile.am (sample_msgs): Add messages required for
22293 the new test 'verify-multifile.scm'.
22295 tests: Add test for '--verify --multifile'.
22296 + commit 12af8e84a32df728462da09a00a8bec24a487720
22297 * tests/openpgp/Makefile.am (XTESTS): Add new test.
22298 * tests/openpgp/verify-multifile.scm: New file.
22300 2016-11-30 Justus Winter <justus@g10code.com>
22302 tests: Add test for '--encrypt --multifile'.
22303 + commit 3c0569e99498c7470ebdb639b4c5ae829af92761
22304 * tests/openpgp/Makefile.am (XTESTS): Add new test.
22305 * tests/openpgp/encrypt-multifile.scm: New file.
22307 2016-11-29 Werner Koch <wk@gnupg.org>
22309 agent,dirmngr: Tiny restructuring.
22310 + commit aa6ab9e0bc67fe9ce5601047e84ea4a875e8eb64
22311 * agent/gpg-agent.c (handle_connections): Add a comment.
22312 * dirmngr/dirmngr.c (main): Move assuan_sock_close of the listening
22314 (handle_connections): here. Add a comment why we keep the
22315 listening socket open during a shutdown.
22317 agent,dirmngr: Handle corner case in shutdown mode.
22318 + commit 854adc8ae19749e44cb79dfa0c5401f48012b13a
22319 * agent/gpg-agent.c (handle_connections): Keep on selecting on the
22320 inotify fd even when a shutdown is pending.
22321 * dirmngr/dirmngr.c (handle_connections): Ditto. Also simplifyy the
22322 use of the HAVE_INOTIFY_INIT cpp conditional.
22324 gpgsm: Allow decryption with a card returning a PKCS#1 stripped key.
22325 + commit 8489b12211098ad58c008cfb74b5cb91849cf68d
22326 * sm/decrypt.c (prepare_decryption): Handle a 16 byte session key.
22328 agent,w32: Initialize nPth in server mode.
22329 + commit 81d6e98cdf4caa3aa92398fc3b8bed397b40f58d
22330 * agent/gpg-agent.c (main) [W32]: Call initialize_modules in server
22333 gpg: Make --decrypt with output '-&nnnn' work.
22334 + commit a5910e00ace882b8a17169faf4607163ab454af9
22335 * g10/plaintext.c (get_output_file): Check and open special filename
22336 before falling back to stdout.
22338 gpg,sm: Merge the two versions of check_special_filename.
22339 + commit 60b4982836a00ef6b2a97d16f735b3f6b74dce62
22340 * sm/gpgsm.c (check_special_filename): Move to ..
22341 * common/sysutils.c (check_special_filename): here. Add arg
22343 (allow_special_filenames): New local var.
22344 (enable_special_filenames): New public functions.
22345 * sm/gpgsm.c (allow_special_filenames): Remove var.
22346 (main): Call enable_special_filenames instead of setting the var.
22347 (open_read, open_es_fread, open_es_fwrite): Call
22348 check_special_filename with 0 for NOTRANSLATE.
22349 * common/iobuf.c (special_names_enabled): Remove var.
22350 (iobuf_enable_special_filenames): Remove func.
22351 (check_special_filename): Remove func.
22352 (iobuf_is_pipe_filename): Call new version of the function with
22355 * g10/gpg.c (main): Call enable_special_filenames instead of
22356 iobuf_enable_special_filenames.
22357 * g10/gpgv.c (main): Ditto.
22359 2016-11-29 Justus Winter <justus@g10code.com>
22361 g10: Fix memory leak.
22362 + commit 52385a2ba1bf7e53f500ffde5fd34f28e69cf76b
22363 * g10/decrypt.c (decrypt_messages): Properly decrease the reference
22364 count of the armor filters after pushing them.
22366 tools,build: Build WKS tools against libintl.
22367 + commit 9fb5e9c14557f7567cbc7c50b9881b7d7bfa2f12
22368 * tools/Makefile.am (gpg_wks_server_LDADD): Link against libintl.
22369 (gpg_wks_client_LDADD): Likewise.
22371 2016-11-29 Neal H. Walfield <neal@g10code.com>
22373 Improve some comments.
22374 + commit 522f74f7e377135cf098b6b0b9b35284c1dfc963
22377 g10: Extend TOFU_STATS to always show the validity.
22378 + commit 2f27cb12e30c9f6e780354eecc3ff0039ed52c63
22379 * doc/DETAILS (TOFU_STATS): Rename the VALIDITY field to SUMMARY. Add
22380 a new field called VALIDITY.
22381 * g10/tofu.c (write_stats_status): Update output accordingly.
22383 2016-11-29 Justus Winter <justus@g10code.com>
22385 tests: Add test for '--decrypt --multifile'.
22386 + commit bde4fddadc75ad6071e3fc6c0980905de14c03cb
22387 * tests/openpgp/Makefile.am (XTESTS): Add new test.
22388 * tests/openpgp/decrypt-multifile.scm: New file.
22390 gpgscm: Avoid truncating pointers.
22391 + commit e062bc4da8062b822ee85096d9adfcbca8dcb56a
22392 * tests/gpgscm/scheme.c (_alloc_cellseg): Avoid truncating pointers on
22393 systems where sizeof(unsigned long) < sizeof(void *).
22395 2016-11-29 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22397 dirmngr: Lazily launch ldap reaper thread.
22398 + commit f6728d13e8e544dbd4b9351ed981613e5504293f
22399 * dirmngr/dirmngr.c (main): Avoid calling ldap_wrapper_launch_thread()
22401 * dirmngr/ldap-wrapper.c (ldap_wrapper): Call
22402 ldap_wrapper_launch_thread() just in time (before any attempt to use
22403 an ldap subprocess).
22405 2016-11-29 Werner Koch <wk@gnupg.org>
22407 build: Remove more keywords from the generated ChangeLog.
22408 + commit ecc126a7cef371e3b88e65715ba37fb77e92ea0f
22409 * build-aux/gitlog-to-changelog (parse_amend_file): Generalize keyword
22412 2016-11-28 Justus Winter <justus@g10code.com>
22414 tests: Add test for the ssh key export.
22415 + commit 47b8b9e2ce5af7fba117ae0b00e10bec414dcfb0
22416 * tests/openpgp/Makefile.am (XTESTS): Add new test.
22417 (sample_keys): Add new files.
22418 * tests/openpgp/samplekeys/authenticate-only.pub.asc: New file.
22419 * tests/openpgp/samplekeys/authenticate-only.sec.asc: Likewise.
22420 * tests/openpgp/ssh-export.scm: Likewise.
22422 g10: Fix iteration over getkey results.
22423 + commit 4db9a425644dccaf81b51ebc97b32a9cc21941a4
22424 * g10/getkey.c (getkey_next): Only ask 'lookup' for the exact match if
22425 our caller requested the key. Fixes a crash in 'lookup'.
22427 tests: Rename ssh test.
22428 + commit cc1d21342659a7def5d662d0547579f9e0d3b109
22429 * tests/openpgp/ssh.scm: Rename to 'ssh-import.scm'.
22430 * tests/openpgp/Makefile (XTESTS): Likewise.
22432 2016-11-25 NIIBE Yutaka <gniibe@fsij.org>
22434 scd: Support OpenPGP card V3 for RSA.
22435 + commit b89e63e5c326af71470124b410e6429cbd2b5c43
22436 * scd/app-openpgp.c (struct app_local_s): Remove max_cmd_data and
22437 max_rsp_data fields as Extended Capabilities bits are different.
22438 (get_cached_data) Use extcap.max_certlen_3.
22439 (get_one_do): Don't use exmode=1.
22440 (determine_rsa_response): New.
22441 (get_public_key, do_genkey): Call determine_rsa_response.
22442 (do_sign): Use keyattr[0].rsa.n_bits / 8, instead of max_rsp_data.
22443 (do_auth): Use keyattr[2].rsa.n_bits / 8, instead of max_rsp_data.
22444 (do_decipher): Likewise with Use keyattr[1].rsa.n_bits / 8.
22445 (show_caps): Remove max_cmd_data and max_rsp_data.
22446 (app_select_openpgp): Likewise.
22448 2016-11-23 Justus Winter <justus@g10code.com>
22450 gpgscm: Make 'reverse' compatible with 'reverse_in_place'.
22451 + commit 005d326d19ba28005182205f25edc4f7499ec0b5
22452 * tests/gpgscm/scheme.c (reverse): Update prototype, add terminator
22454 (opexe_4): Update callsite.
22456 gpgscm: Clean sweeped cells.
22457 + commit 3fb9954c43425775a517060959dad01fa00238f7
22458 * tests/gpgscm/scheme.c (gc): Zero typeflag and car of free cells.
22460 gpgscm: Fix initialization of 'sink'.
22461 + commit 7856e3efaad7614979bc0b91379a0a4dcbc739d5
22462 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Also initialize
22465 2016-11-23 Neal H. Walfield <neal@g10code.com>
22467 g10: Avoid gratuitously loading a keyblock when it is already available.
22468 + commit 03a65a53231cc3132a50a1871e81a512c44da169
22469 * g10/trust.c (get_validity): Add new, optional parameter KB. Only
22470 load the keyblock if KB is NULL. Update callers.
22471 (get_validity): Likewise.
22472 * g10/trustdb.c (tdb_get_validity_core): Likewise.
22474 2016-11-22 Neal H. Walfield <neal@g10code.com>
22476 g10: Use es_fopen instead of open.
22477 + commit bfeafe2d3f9bbaa7f11f3ad870a446141c038b0d
22478 * g10/tofu.c: Don't include <utime.h>, <fcntl.h> or <unistd.h>.
22479 (busy_handler): Replace use of open with es_fopen.
22481 g10: If the set of UTKs changes, invalidate any changed policies.
22482 + commit 44c17bcb003a3330f595a6ab144e8439b7b630cb
22483 * g10/trustdb.c (tdb_utks): New function.
22484 * g10/tofu.c (check_utks): New function.
22486 * tests/openpgp/tofu.scm: Modify test to check the effective policy of
22487 keys whose effective policy changes when we change the set of UTKs.
22489 2016-11-22 NIIBE Yutaka <gniibe@fsij.org>
22491 scd: Fix receive buffer size.
22492 + commit 5c2db9dedfe9dbb14ffec24751ca23a69cead94e
22493 * scd/apdu.c (send_le): Fix the size, adding two for status
22496 2016-11-22 Justus Winter <justus@g10code.com>
22499 + commit a3b258d1d15953816e0567511ecc527a4ccdd626
22500 * tests/gpgscm/scheme.c (opexe_0): Reduce code duplication.
22502 gpgscm: Fix property lists.
22503 + commit d8df80427238cdbb9ae0f6dae8bc7e9c24f6e265
22504 * tests/gpgscm/opdefines.h (put, get): Check arguments. Also rename
22505 to 'set-symbol-property' and 'symbol-property', the names used by
22506 Guile, because put and get are too unspecific.
22507 * tests/gpgscm/scheme.c (hasprop): Only symbols have property lists.
22508 (get_property): New function.
22509 (set_property): Likewise.
22510 (opexe_4): Use the new functions.
22512 gpgscm: Fix installation of error handler.
22513 + commit 7b4e2ea274ace22245264f1759279390d0300a62
22514 * tests/gpgscm/ffi.scm: Set '*error-hook*' again so that the
22515 interpreter will use our function.
22517 gpgscm: Use a static pool of cells for small integers.
22518 + commit 66834eb838a8892d088f6b7332084a64d9f15008
22519 * tests/gpgscm/scheme-private.h (struct scheme): New fields for the
22520 static integer cells.
22521 * tests/gpgscm/scheme.c (_alloc_cellseg): New function.
22522 (alloc_cellseg): Use the new function.
22523 (MAX_SMALL_INTEGER): New macro.
22524 (initialize_small_integers): New function.
22525 (mk_small_integer): Likewise.
22526 (mk_integer): Return a small integer if possible.
22527 (_s_return): Do not free 'op' if it is a small integer.
22528 (s_save): Use a small integer to box the opcode.
22529 (scheme_init_custom_alloc): Initialize small integers.
22530 (scheme_deinit): Free chunk of small integers.
22531 * tests/gpgscm/scheme.h (USE_SMALL_INTEGERS): New macro.
22533 tests: Delay querying the avaliable algorithms.
22534 + commit 893a3f7fb46021961914a8acdf1292a80e3eba93
22535 * tests/openpgp/defs.scm: Set verbosity earlier, turn 'all-*-algos'
22537 * tests/openpgp/conventional-mdc.scm: Force the promises.
22538 * tests/openpgp/conventional.scm: Likewise.
22539 * tests/openpgp/encrypt-dsa.scm: Likewise.
22540 * tests/openpgp/encrypt.scm: Likewise.
22541 * tests/openpgp/gpgtar.scm: Likewise.
22542 * tests/openpgp/sigs.scm: Likewise.
22544 g10: Fix memory leak.
22545 + commit 6ce14a805f1da687dfb8535db57730d5c7403db7
22546 * g10/tofu.c (tofu_notice_key_changed): Remove spurious duplicate call
22547 to 'hexfingerprint'.
22549 2016-11-21 Neal H. Walfield <neal@g10code.com>
22551 g10: Cache the effective policy. Recompute it when required.
22552 + commit 037f9de09298a31026ea2ab5fbd4a599b11cc34f
22553 * g10/tofu.c (initdb): Add column effective_policy to the bindings
22555 (record_binding): New parameters effective_policy and set_conflict.
22556 Save the effective policy. If SET_CONFLICT is set, then set conflict
22557 according to CONFLICT. Otherwise, preserve the current value of
22558 conflict. Update callers.
22559 (get_trust): Don't compute the effective policy here...
22560 (get_policy): ... do it here, if it was not cached. Take new
22561 parameters, PK, the public key, and NOW, the time that the operation
22562 started. Update callers.
22563 (show_statistics): New parameter PK. Pass it to get_policy. Update
22565 (tofu_notice_key_changed): New function.
22566 * g10/gpgv.c (tofu_notice_key_changed): New stub.
22567 * g10/import.c (import_revoke_cert): Take additional argument CTRL.
22568 Pass it to keydb_update_keyblock.
22569 * g10/keydb.c (keydb_update_keyblock): Take additional argument CTRL.
22571 [USE_TOFU]: Call tofu_notice_key_changed.
22572 * g10/test-stubs.c (tofu_notice_key_changed): New stub.
22573 * tests/openpgp/tofu.scm: Assume that manually setting a binding's
22574 policy to auto does not cause the tofu engine to forget about any
22577 g10: Correctly parameterize ngettext.
22578 + commit 182efc5b5d20ac0d43501a22f349a23dc06a27a4
22579 * g10/tofu.c (ask_about_binding): Correctly parameterize ngettext.
22581 g10: Don't use the same variable for multiple SQL compiled statements.
22582 + commit 7142b293c870d73ce0146bfb90e6a556e0079650
22583 * g10/tofu.c (struct tofu_dbs_s): Remove unused field
22584 record_binding_update2. Replace register_insert with
22585 register_signature and register_encryption.
22586 (tofu_register_signature): Don't use dbs->s.register_insert, but
22587 dbs->s.register_signature.
22588 (tofu_register_encryption): Don't use dbs->s.register_insert, but
22589 dbs->s.register_encryption.
22591 g10: Add a convenience function for checking if a key is a primary key.
22592 + commit 91a0483c5db8ee4510981448a705981ee1cce199
22593 * g10/keydb.h (pk_is_primary): New function.
22594 * g10/tofu.c (get_trust): Use it.
22595 (tofu_register_signature): Likewise.
22596 (tofu_register_encryption): Likewise.
22597 (tofu_set_policy): Likewise.
22598 (tofu_get_policy): Likewise.
22600 2016-11-21 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22602 doc: Ship example gpg-agent-browser.socket in examples/systemd-user/.
22603 + commit 0540cfbee455b197edd89b602a4b47ebf0be8588
22604 * doc/Makefile.am: Ship gpg-agent-browser.socket alongside the other
22605 systemd user service example files.
22607 2016-11-21 NIIBE Yutaka <gniibe@fsij.org>
22609 agent: Fix npth + daemon mode problem.
22610 + commit 9a707a223a3d45ccf245dee7989ca144e4e6bb49
22611 * agent/gpg-agent.c (main): Remove duplicated initialization in daemon
22614 2016-11-18 Werner Koch <wk@gnupg.org>
22617 + commit 0a641ad25d8c3b91dc32bb9f3f1ae49ae539a4f7
22620 2016-11-18 Ineiev <ineiev@gnu.org>
22622 po: Update Russian translation.
22623 + commit 11aaa9c6d4ed3e47de45b4aee925ab1065120988
22626 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
22628 g10: Fix flags to open for lock of ToFU.
22629 + commit 1c0b140cccfb884c6d07785c3284b9df06dccd3c
22630 * g10/tofu.c (busy_handler): Fix the flags and utime is not needed.
22632 2016-11-18 Werner Koch <wk@gnupg.org>
22634 dirmngr: Use a longer timer tick interval.
22635 + commit 833eef974ad4721b9b3e247bae9c890476a936ce
22636 * dirmngr/dirmngr.c (TIMERTICK_INTERVAL): Always use 60 seconds like
22637 we did for WindowsCE.
22639 2016-11-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22641 dirmngr: More w32 system daemon cleanup.
22642 + commit b3a917201207898059c048dd101344765201b03c
22643 * dirmngr/dirmngr.c (handle_tick): Remove w32 tests for
22644 shutdown_pending; no longer needed.
22646 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
22648 g10: Fix creating a lock for ToFU.
22649 + commit b2e1b17efa952afcf7aeec8b15e9d0088dba587a
22650 * g10/tofu.c (busy_handler): Add third argument which is mandatory for
22653 scd: Don't limit to ST-2xxx for PC/SC.
22654 + commit b6066ab18a67195817babaf9eccf896c2b3c7b0e
22655 * scd/apdu.c (pcsc_vendor_specific_init): Only check vender ID.
22657 2016-11-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22659 dirmngr: Use a default keyserver if none is explicitly set.
22660 + commit 8fb482252436b3b4b0b33663d95d1d17188ad1d9
22661 * configure.ac: Define DIRMNGR_DEFAULT_KEYSERVER.
22662 * dirmngr/server.c (ensure_keyserver): Use it if no keyservers are set.
22663 * doc/dirmngr.texi: Document this behavior.
22665 dirmngr: Add system CAs if no hkp-cacert is given.
22666 + commit 7c1613d41566f7d8db116790087de323621205fe
22667 * dirmngr/dirmngr.c (http_session_new): If the user isn't talking to
22668 the HKPS pool, and they have not specified any hkp-cacert, then we
22669 should default to the system CAs, rather than nothing.
22670 * doc/dirmngr.texi: Document choice of CAs.
22672 dirmngr: Register hkp-cacert even if the file doesn't exist yet.
22673 + commit c4e02a3b7ad6ee1da6bfc439921378bdbd5c029c
22674 * dirmngr/dirmngr.c (parse_readable_options): If we're unable to turn
22675 an argument for hkp-cacert into an absolute filename, terminate
22677 * dirmngr/http.c (http_register_tls_ca): Show a warning if file is not
22678 immediately accessible, but register it anyway.
22680 2016-11-17 Justus Winter <justus@g10code.com>
22682 gpgscm: Re-enable the garbage collector in case of errors.
22683 + commit 4f189325a409bb08f7a8eabfac3f4579288cf5c5
22684 * tests/gpgscm/scheme.c (opexe_0): Enable gc before calling 'Error_1'.
22686 gpgscm: Fix string.
22687 + commit fc53a4d06eaf891143ab4efec9caffe31ebc2bc0
22688 * tests/gpgscm/scheme.c (type_to_string): Fix string.
22690 2016-11-17 Werner Koch <wk@gnupg.org>
22692 dirmngr: Auto-sownload the swdb.lst.
22693 + commit bd91f92ace09263e3a91177f2a1644379baeb08a
22694 * dirmngr/dirmngr.h (struct opt): Add field allow_version_check.
22695 * dirmngr/dirmngr.c (oAllowVersionCheck): New.
22696 (opts): Add --allow-version-check.
22697 (network_activity_seen): New variable.
22698 (parse_rereadable_options): Set opt.allow_version_check.
22699 (main) <aGPGConfList>: Do not anymore set the no change flag for
22700 Windows. Add allow-version-check.
22701 (netactivity_action): Set network_activity_seen.
22702 (housekeeping_thread): Call dirmngr_load_swdb.
22703 * tools/gpgconf-comp.c (gc_options_dirmngr): Add allow-version-check.
22704 Make "use-tor" available at Basic level.
22706 dirmngr: Improve downloading of swdb.lst.
22707 + commit c45ca316a54665915ae08399484db271566db7c0
22708 * dirmngr/loadswdb.c (time_of_saved_swdb): Aslo return the "verified"
22710 (dirmngr_load_swdb): Avoid unnecessary disk or network access witout
22711 FORCE. Do not update swdb.lst if it did not change.
22713 gpgconf: Change the displayed names of the components.
22714 + commit d8da5bc50b856db3445435780311c9f8e52a5144
22717 2016-11-16 Werner Koch <wk@gnupg.org>
22719 dirmngr: Add command to only load the swdb.
22720 + commit 52c10a280af6ce06eb1732ff35b095f2b8d24b9f
22721 * dirmngr/loadswdb.c: New.
22722 * dirmngr/Makefile.am (dirmngr_SOURCES): Add that file.
22723 * dirmngr/server.c: Remove includes cpparray.h and exectool.h.
22724 (cmd_loadswdb): New.
22725 (parse_version_number,parse_version_string): Remove.
22726 (my_mktmpdir, cmp_version): Remove.
22727 (fetch_into_tmpdir): Remove.
22728 (struct verify_swdb_parm_s): Remove.
22729 (verify_swdb_status_cb): Remove.
22730 (cmd_versioncheck): Remove.
22731 (register_commands): Register LOADSWDB. Remove VERSIONCHECK.
22733 scd,dirmngr: Keep the standard fds when daemonizing.
22734 + commit 4839e6d002a8ad1f7d3260792c3c9641e258f342
22735 * dirmngr/dirmngr.c (main): Before calling setsid do not close the
22736 standard fds but connect them to /dev/null.
22737 * scd/scdaemon.c (main): Ditto. Noet that the old test for a log
22738 stream was even reverted.
22740 common: Rename keybox_file_rename to gnupg_rename_file.
22741 + commit c4506a3f15bba5d257cb4c6738800c5e00ecc9a2
22742 * kbx/keybox-util.c (keybox_file_rename): Rename to ...
22743 * common/sysutils.c (gnupg_rename_file): this. Change all callers.
22745 wks: Always build gpg-wks-client.
22746 + commit c564790df723beef031d83802bd7830737bd330a
22747 * tools/Makefile.am (gpg_wks_client): Remove macro.
22748 (libexec_PROGRAMS): Add gpg-wks-client.
22750 gpg: New option --override-session-key-fd.
22751 + commit 43bfaf2c5417ede621c0a07721952ea549a7a139
22752 * g10/gpg.c (oOverrideSessionKeyFD): New.
22753 (opts): Add option --override-session-key-fd.
22754 (main): Handle that option.
22755 (read_sessionkey_from_fd): New.
22757 2016-11-15 Werner Koch <wk@gnupg.org>
22759 gpgv: New option --enable-special-filenames.
22760 + commit 500e594c2da530e69a63fc1a40d173458682fa0e
22761 * g10/gpgv.c (oEnableSpecialFilenames): New.
22762 (opts): Add option --enable-special-filenames.
22763 (main): Implement that option.
22765 gpg: Add new compliance mode "de-vs".
22766 + commit b47603a0ac24902c5bb000f8ef27cfb99aceeb81
22767 * g10/options.h (CO_DE_VS): New.
22768 (GNUPG): Also allow CO_DE_VS.
22769 * g10/gpg.c (oDE_VS): New.
22770 (parse_compliance_option): Add "de-vs".
22771 (set_compliance_option): Set "de-vs".
22772 * g10/misc.c (compliance_option_string): Return a description string.
22773 (compliance_failure): Ditto.
22774 * g10/keygen.c (ask_algo): Take care of CO_DE_VS.
22775 (get_keysize_range): Ditto.
22776 (ask_curve): Add new field to CURVES and trun flags into bit flags.
22777 Allow only Brainpool curves in CO_DE_VS mode.
22779 gpg: Use usual free semantics for packet structure free functions.
22780 + commit 8ea3b4c4102dc67ed83d4419b7171e422fc01047
22781 * g10/free-packet.c (free_attributes): Turn function into a nop for a
22783 (free_user_id): Ditto.
22784 (free_compressed): Ditto.
22785 (free_encrypted): Ditto.
22786 (free_plaintext): Ditto.
22787 (release_public_key_parts): Avoid extra check for NULL.
22788 * g10/getkey.c (get_best_pubkey_byname): Ditto.
22790 2016-11-15 Justus Winter <justus@g10code.com>
22792 g10: Optimize key iteration.
22793 + commit 12834e84aca9d74800245f0f2f2e6b5123e76173
22794 * g10/getkey.c (get_best_pubkey_byname): Use the node returned by
22795 'getkey_next' instead of doing another lookup.
22797 g10: Fix memory leak.
22798 + commit d20107f6da094edd782947abb357abae5129a12c
22799 * g10/getkey.c (finish_lookup): Clarify that we do not return a
22801 (lookup): Clarify the relation between RET_KEYBLOCK and RET_FOUND_KEY.
22802 Check arguments. Actually release the node if it is not returned.
22804 g10: Fix iteration over getkey results.
22805 + commit 1d03cc77e1706f7da653153ad4b58c61e4fd2573
22806 * g10/getkey.c (getkey_next): Fix invocation of 'lookup'. If we want
22807 to use RET_FOUND_KEY, RET_KEYBLOCK must be valid.
22809 g10: Fix use-after-free.
22810 + commit bd60742925414e0ef2a497df827c1913ea211a44
22811 * g10/getkey.c (pubkey_cmp): Make a copy of the user id.
22812 (get_best_pubkey_byname): Free the user ids.
22814 2016-11-15 Werner Koch <wk@gnupg.org>
22816 sm: New stub option --compliance.
22817 + commit 26c7c1d72c5f2acb3edb58d610c09a635c87bdbf
22818 * sm/gpgsm.c (oCompliance): New.
22819 (opts): Add "--compliance".
22820 (main): Implement as stub.
22822 2016-11-15 NIIBE Yutaka <gniibe@fsij.org>
22824 g10: Fix memory leak.
22825 + commit 1f7639ebbe58af1b581b0be7809da9ee55482992
22826 * g10/keyedit.c (menu_adduid): Don't copy 'sig'.
22828 2016-11-15 Werner Koch <wk@gnupg.org>
22830 gpg: New option --compliance.
22831 + commit f86b1a15ad4bb7bcc1e9f7d209aabcb23641f7df
22832 * g10/gpg.c (oCompliance): New.
22833 (opts): Add "--compliance".
22834 (parse_tofu_policy): Use a generic description string for "help".
22835 (parse_compliance_option): New.
22836 (main): Add option oCompliance. Factor out code for compliance
22838 (set_compliance_option): new.
22840 2016-11-15 Justus Winter <justus@g10code.com>
22842 g10: Fix memory leak.
22843 + commit 809d67e74014cb563efd965744fd11f87bbae743
22844 * g10/keyedit.c (menu_adduid): Deallocate 'sig'.
22846 gpgscm: Mark cells requiring finalization.
22847 + commit 64a58e23c38db8658423bbe26fcd650330e24a88
22848 * tests/gpgscm/scheme.c (T_FINALIZE): New macro.
22849 (mk_port): Use the new macro.
22850 (mk_foreign_object): Likewise.
22851 (mk_counted_string): Likewise.
22852 (mk_empty_string): Likewise.
22853 (gc): Only call 'finalize_cell' for cells with the new flag.
22855 gpgscm: Recover more cells.
22856 + commit 93cc322ac06d3045a24aece90091f7f80f3dacb8
22857 * tests/gpgscm/scheme.c (_s_return): Recover the cell holding the
22860 2016-11-14 Justus Winter <justus@g10code.com>
22862 g10: Fix memory leak.
22863 + commit 2cd281c4def1ea881b92b9aba18c1892f89c1870
22864 * g10/mainproc.c (check_sig_and_print): Free 'pk'.
22866 gpgscm: Avoid cell allocation overhead.
22867 + commit 83c184a66b73f312425b01008f0495610e5329a4
22868 * tests/gpgscm/scheme-private.h (struct scheme): New fields
22869 'inhibit_gc', 'reserved_cells', and 'reserved_lineno'.
22870 * tests/gpgscm/scheme.c (GC_ENABLED): New macro.
22871 (USE_GC_LOCKING): Likewise.
22872 (gc_reservations): Likewise.
22873 (gc_reservation_failure): New function.
22874 (_gc_disable): Likewise.
22875 (gc_disable): New macro.
22876 (gc_enable): Likewise.
22877 (gc_enabled): Likewise.
22878 (gc_consume): Likewise.
22879 (get_cell_x): Consume reserved cell if garbage collection is disabled.
22880 (_get_cell): Assert that gc is enabled.
22881 (get_cell): Only record cell in the list of recently allocated cells
22883 (get_vector_object): Likewise.
22884 (gc): Assert that gc is enabled.
22885 (s_return): Add comment, adjust call to '_s_return'.
22886 (s_return_enable_gc): New macro.
22887 (_s_return): Add flag 'enable_gc' and re-enable gc if set.
22888 (oblist_add_by_name): Use the new facilities to protect the
22890 (new_frame_in_env): Likewise.
22891 (new_slot_spec_in_env): Likewise.
22892 (s_save): Likewise.
22893 (opexe_0): Likewise.
22894 (opexe_1): Likewise.
22895 (opexe_2): Likewise.
22896 (opexe_5): Likewise.
22897 (opexe_6): Likewise.
22898 (scheme_init_custom_alloc): Initialize the new fields.
22900 2016-11-14 NIIBE Yutaka <gniibe@fsij.org>
22902 scd: Fix status info encoding.
22903 + commit 4ee4d0b02172cf56d9582bb99e32a65c75315b25
22904 * scd/command.c (send_status_info): Do percent plus encoding correctly.
22906 2016-11-12 Werner Koch <wk@gnupg.org>
22908 agent: Improve concurrency when Libgcrypt 1.8 is used.
22909 + commit 6bf698197222bf6081c249c815aebb075e8ec820
22910 * agent/gpg-agent.c (thread_init_once): Tell Libgcrypt to reinit the
22912 (agent_libgcrypt_progress_cb): Do not sleep if Libgcrypt is recent
22915 2016-11-11 Werner Koch <wk@gnupg.org>
22917 agent: Kludge to mitigate blocking calls in Libgcrypt.
22918 + commit 4473db1ef24031ff4e26c9a9de95dbe898ed2b97
22919 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Sleep for 100ms on
22922 dirmngr: Prepare to trigger jobs by network activity.
22923 + commit 7b04a43c05834b937b32a596f1941e9728add5fa
22924 * dirmngr/http.c (netactivity_cb): New.
22925 (http_register_netactivity_cb): New.
22926 (notify_netactivity): New.
22927 (connect_server): Call that function.
22928 * dirmngr/dirmngr.c (main): Call http_register_netactivity_cb.
22929 (netactivity_action): New stub handler.
22931 2016-11-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22933 agent: Clean up comments.
22934 + commit e51912f467fda963c7abcfcd4082d6eb084ba5be
22935 * agent/agent.h: Clean up comments.
22937 2016-11-10 Werner Koch <wk@gnupg.org>
22939 gpg,sm: Add STATUS_ERROR keydb_search and keydb_add-resource.
22940 + commit 5d13581f4737c18430f6572dd4ef486d1ad80dd1
22941 * g10/keydb.c (keydb_add_resource): Make ANY_REGISTERED
22942 file-global. Write a STATUS_ERROR.
22943 (maybe_create_keyring_or_box): Check for non-accessible but existant
22945 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
22946 but continue to return NOT_FOUND.
22947 * sm/keydb.c (keydb_add_resource): Rename ANY_PUBLIC to ANY_REGISTERED
22948 and make file-global. Write a STATUS_ERROR.
22949 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
22950 but continue to return NOT_FOUND. Also add new arg CTRL and change
22951 all callers to pass it down.
22953 sm: Remove unused arg SECRET from keydb functions.
22954 + commit c8044c6e335f044d7386b9e8869bc4a0d3adff70
22955 * sm/keydb.c (struct resource_item): Remove field 'secret'.
22956 (keydb_add_resource): Remove arg 'secret' and change all callers.
22957 (keydb_new): Ditto.
22959 2016-11-10 Justus Winter <justus@g10code.com>
22961 gpgscm: Recover cells from the list of recently allocated cells.
22962 + commit ee08677d63a900cea85228024861a4f5c5a87c69
22963 * tests/gpgscm/scheme.c (ok_to_freely_gc): Recover cells.
22965 gpgscm: Recover cells used to maintain interpreter state.
22966 + commit e0cbd3389e2dd6ec19ee3a4c7bad81fa0f1907f5
22967 * tests/gpgscm/scheme.c (free_cell): New function.
22968 (free_cons): Likewise.
22969 (_s_return): Use the new function to recover cells used to save the
22970 state of the interpreter in 's_save'. This reduces the need to do a
22971 garbage collection considerably.
22973 gpgscm: Reduce opcode dispatch overhead.
22974 + commit d3a98ff5bc972a4c9b01b9e5338a4a59b5b4ac48
22975 * tests/gpgscm/scheme.c (s_thread_to): New macro.
22977 (opexe_[0-6]): Use 'CASE' instead of 'case' statements, replace
22978 's_goto' with 's_thread_to' where applicable.
22980 gpgscm: Make the compile-hook configurable.
22981 + commit 568cfcde45a0d6c456d8f8be1ea0e408416badad
22982 * tests/gpgscm/scheme-private.h (struct scheme): Make field
22983 'COMPILE_HOOK' optional.
22984 * tests/gpgscm/scheme.c (opexe_0): Fix guard.
22985 (scheme_init_custom_alloc): Conditionally initialize 'COMPILE_HOOK'.
22986 * tests/gpgscm/scheme.h (USE_COMPILE_HOOK): Define to 1 by default.
22988 gpgscm: Drop obsolete commented-out code.
22989 + commit 9ee184bc0afaea06785d836ed175b851b9ae532f
22990 * tests/gpgscm/scheme.c (opexe_5): Drop obsolete code.
22992 gpgscm: Remove dubious stack implementation.
22993 + commit d7c5799c282a03dcce0e3d327075233353cb76cc
22994 * tests/gpgscm/scheme-private.h (struct scheme): Remove related fields.
22995 * tests/gpgscm/scheme.c: Drop all !USE_SCHEME_STACK code.
22996 * tests/gpgscm/scheme.h (USE_SCHEME_STACK): Remove macro.
22998 2016-11-10 Werner Koch <wk@gnupg.org>
23000 gpg: Improve error message for --quick-gen-key.
23001 + commit 088d955bd8a6ec8bbf76c8a4c01eb08499d1d9fa
23002 * g10/keygen.c (parse_algo_usage_expire): Use a different error
23003 message for an unknown algorithm name.
23005 dirmngr: Improve concurrency in the non-adns case.
23006 + commit c7ea98cd3d44abf00e32c081e5049ad1d0b1f12c
23007 * dirmngr/dns-stuff.c (map_adns_status_to_gpg_error): New.
23008 (resolve_name_adns, get_dns_cert, get_dns_cname): Use that function.
23009 (getsrv) [!USE_ADNS]: Call res_query outside of nPth.
23011 2016-11-08 Justus Winter <justus@g10code.com>
23013 tests: Fix environment setup.
23014 + commit 1062953d5132af674aacfc6372e3e9f066c5d145
23015 * tests/openpgp/defs.scm (setup-legacy-environment): Do not call
23016 'setup-environment' because that will start the agent, and hence
23017 register the atexit function twice.
23019 Fixes: a55393cb5f4b331cb3a715c7d9a8b91f7606f337
23021 tests: Log and display output from tests when run in parallel.
23022 + commit 2a7615c48ed79e6b28710cc293ce30c812b2e5b0
23023 * tests/openpgp/run-tests.scm (test): Add field 'logfd'.
23024 (test::new, test::set-*): Adapt accordingly.
23025 (test::set-logfd): New function.
23026 (test::open-log-file): Likewise.
23027 (test::run-sync): Use the new function.
23028 (test::run-async): Likewise.
23029 (test::report): Replay the log.
23030 (run-tests-parallel): Reverse the results to restore the original
23033 tests: Simplify test.
23034 + commit 4dd4801bfa4c3f7ba279b3d171a8ed299dbffaaa
23035 * tests/openpgp/issue2417.scm: Simplify.
23037 gpgscm: Expose seek and associated constants.
23038 + commit 591d61d80f4f81176f7e236df794922df9e001a1
23039 * tests/gpgscm/ffi.c (do_seek): New function.
23040 (ffi_init): Expose 'seek' and 'SEEK_{SET,CUR,END}'.
23041 * tests/gpgscm/lib.scm: Document the new function.
23043 gpgscm: Fix error message.
23044 + commit d4454837cd60981c2863955b11c9e1cc8f9e3833
23045 * tests/gpgscm/ffi.c (do_wait_processes): Fix and improve error
23048 tests,w32: Make cleanup more robust.
23049 + commit dd13b2a561e31045fd3d3576bab99543cd4eb6cc
23050 * tests/openpgp/run-tests.scm (run-tests-parallel): Catch errors when
23051 removing the working directory. On Windows this can fail if there is
23052 still a process using one of the files there.
23053 (run-tests-sequential): Likewise.
23055 common,w32: Simplify locking.
23056 + commit 7cbb0803847b8db618d39ff50ae6015e409ab1ae
23057 * common/asshelp.c (lock_spawning): Use the same code on Windows that
23058 we use on all other platforms.
23059 (unlock_spawning): Likewise.
23061 2016-11-07 Justus Winter <justus@g10code.com>
23063 tests: Write a log file for each test.
23064 + commit 26df829fa22f027ca4a5eaf155cdaa2123afbdd5
23065 * tests/openpgp/Makefile.am (CLEANFILES): Delete logs.
23066 * tests/openpgp/run-tests.scm (test::run-sync): Write logs.
23068 gpgscm: Generalize splice to write to multiple sinks.
23069 + commit abe0cc7a21d2b0b5c77cc525b999d1ede2d29185
23070 * tests/gpgscm/ffi.c (ordinal_suffix): New function.
23071 (do_splice): Generalize splice to write to multiple sinks.
23072 * tests/gpgscm/lib.scm (splice): Document this fact.
23074 gpgscm: Drop 'len' argument from splice.
23075 + commit 4d98a72b88cf167295e1ecd6125b9c7a11b6239f
23076 * tests/gpgscm/ffi.c (do_splice): Drop 'len' argument, no-one uses it.
23077 * tests/gpgscm/lib.scm (splice): Document foreign function.
23079 tests: Move environment creation and teardown into each test.
23080 + commit a55393cb5f4b331cb3a715c7d9a8b91f7606f337
23081 * tests/gpgscm/tests.scm (log): New function.
23082 * tests/openpgp/run-tests.scm (run-tests-parallel): Do not run the
23083 startup and teardown scripts.
23084 (run-tests-sequential): Likewise.
23085 * tests/openpgp/setup.scm: Move all functions...
23086 * tests/openpgp/defs.scm: ... here and make them less verbose.
23087 (setup-environment): New function.
23088 (setup-legacy-environment): Likewise.
23089 (start-agent): Make less verbose, run 'stop-agent' at interpreter
23091 (stop-agent): Make less verbose.
23092 * tests/openpgp/finish.scm: Drop file.
23093 * tests/openpgp/Makefile.am (EXTRA_DIST): Drop removed file.
23094 * tests/openpgp/4gb-packet.scm: Use 'setup-environment' or
23095 'setup-legacy-environment' as appropriate.
23096 * tests/openpgp/armdetach.scm: Likewise.
23097 * tests/openpgp/armdetachm.scm: Likewise.
23098 * tests/openpgp/armencrypt.scm: Likewise.
23099 * tests/openpgp/armencryptp.scm: Likewise.
23100 * tests/openpgp/armor.scm: Likewise.
23101 * tests/openpgp/armsignencrypt.scm: Likewise.
23102 * tests/openpgp/armsigs.scm: Likewise.
23103 * tests/openpgp/clearsig.scm: Likewise.
23104 * tests/openpgp/conventional-mdc.scm: Likewise.
23105 * tests/openpgp/conventional.scm: Likewise.
23106 * tests/openpgp/decrypt-dsa.scm: Likewise.
23107 * tests/openpgp/decrypt.scm: Likewise.
23108 * tests/openpgp/default-key.scm: Likewise.
23109 * tests/openpgp/detach.scm: Likewise.
23110 * tests/openpgp/detachm.scm: Likewise.
23111 * tests/openpgp/ecc.scm: Likewise.
23112 * tests/openpgp/encrypt-dsa.scm: Likewise.
23113 * tests/openpgp/encrypt.scm: Likewise.
23114 * tests/openpgp/encryptp.scm: Likewise.
23115 * tests/openpgp/export.scm: Likewise.
23116 * tests/openpgp/finish.scm: Likewise.
23117 * tests/openpgp/genkey1024.scm: Likewise.
23118 * tests/openpgp/gpgtar.scm: Likewise.
23119 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
23120 * tests/openpgp/import.scm: Likewise.
23121 * tests/openpgp/issue2015.scm: Likewise.
23122 * tests/openpgp/issue2417.scm: Likewise.
23123 * tests/openpgp/issue2419.scm: Likewise.
23124 * tests/openpgp/key-selection.scm: Likewise.
23125 * tests/openpgp/mds.scm: Likewise.
23126 * tests/openpgp/multisig.scm: Likewise.
23127 * tests/openpgp/quick-key-manipulation.scm: Likewise.
23128 * tests/openpgp/seat.scm: Likewise.
23129 * tests/openpgp/shell.scm: Likewise.
23130 * tests/openpgp/signencrypt-dsa.scm: Likewise.
23131 * tests/openpgp/signencrypt.scm: Likewise.
23132 * tests/openpgp/sigs-dsa.scm: Likewise.
23133 * tests/openpgp/sigs.scm: Likewise.
23134 * tests/openpgp/ssh.scm: Likewise.
23135 * tests/openpgp/tofu.scm: Likewise.
23136 * tests/openpgp/use-exact-key.scm: Likewise.
23137 * tests/openpgp/verify.scm: Likewise.
23138 * tests/openpgp/version.scm: Likewise.
23139 * tests/openpgp/issue2346.scm: Likewise and simplify.
23141 tests: Do not allow tests to be run in a shared environment.
23142 + commit ac078469cbafe85cf771fca84f376740850d10b0
23143 * tests/openpgp/README: Update.
23144 * tests/openpgp/run-tests.scm (run-tests-parallel-shared): Drop
23146 (run-tests-parallel-isolated): Rename to 'run-tests-parallel'.
23147 (run-tests-sequential-shared): Drop function.
23148 (run-tests-sequential-isolated): Rename to 'run-tests-sequential'.
23151 + commit 37751d2b194bc33539f5b9ea0e02e9f209d2bcf6
23152 * tests/openpgp/Makefile.am: Drop dependency on 'mk-tdata'.
23154 Fixes: 70215ff470c82d144e872057dfa5a478cc9195f2
23156 2016-11-07 Werner Koch <wk@gnupg.org>
23158 wks: Encrypt all client mails also the target key,
23159 + commit 56e1864aa337f36317534db521fd4434d70e0784
23160 * tools/gpg-wks-client.c (encrypt_response): Add arg FINGERPRINT.
23161 (send_confirmation_response): Ditto.
23162 (process_confirmation_request): Parse out fingerprint and pass
23163 send_confirmation_response.
23165 2016-11-07 Justus Winter <justus@g10code.com>
23167 tests,tools: Reimplement 'mk-tdata' in Scheme.
23168 + commit 70215ff470c82d144e872057dfa5a478cc9195f2
23169 * tests/openpgp/defs.scm (tools): Drop 'mk-tdata'.
23170 * tests/openpgp/setup.scm (make-test-data): New function.
23171 * tests/openpgp/verify.scm: Avoid 'mk-tdata'.
23172 * tools/Makefile.am (noinst_PROGRAMS): Drop 'mk-tdata'.
23173 * tools/mk-tdata.c: Drop file.
23175 gpgscm,w32: Provide schemish file handling for binary files.
23176 + commit 413cc50345557e0a516f33b98e8aab19bbc8b4fe
23177 * tests/gpgscm/lib.scm (call-with-binary-input-file): New function.
23178 (call-with-binary-output-file): Likewise.
23180 gpgscm: Add support for pseudo-random numbers.
23181 + commit 6e677f9b55fdb610e93134042ee41ee5c641cbdf
23182 * tests/gpgscm/ffi.c (do_getpid): New function.
23183 (do_srandom): Likewise.
23184 (random_scaled): Likewise.
23185 (do_random): Likewise.
23186 (do_make_random_string): Likewise.
23187 (ffi_init): Expose the new functions.
23188 * tests/gpgscm/lib.scm: Document the new functions.
23191 + commit 5840353d8bbcd9e75374f3bdb2547ffa7bbea897
23192 * g10/getkey.c (get_best_pubkey_byname): If 'get_pubkey_byname' does
23193 not return a getkey context, then it can return at most one key,
23194 therefore there is nothing to rank. Also, always initialize '*retctx'
23195 to be on the safe side.
23197 Fixes: ab89164be02012f1bf159c971853b8610e966301
23199 2016-11-04 Justus Winter <justus@g10code.com>
23201 gpgscm: Fix printing strings containing zero bytes.
23202 + commit 1f45878a72f23d4bae08d73b614096b485f35274
23203 * tests/gpgscm/scheme.c (atom2str): Fix computing the length of Scheme
23204 strings. Scheme strings can contain zero bytes.
23206 gpgscm: Implement 'atexit'.
23207 + commit 43f8006f5c75e3d15fe200e2fa41587a73bfb07b
23208 * tests/gpgscm/ffi.scm (throw): Run *run-atexit-handlers* when
23209 terminating the interpreter.
23210 (*atexit-handlers*): New variable.
23211 (*run-atexit-handlers*): New function.
23212 (atexit): Likewise.
23213 * tests/gpgscm/main.c (main): Run *run-atexit-handlers* at normal
23214 interpreter shutdown.
23216 2016-11-04 NIIBE Yutaka <gniibe@fsij.org>
23218 scd: Fix length error for READKEY.
23219 + commit cd00b07ec26c3408e6aee66957b08c6fd319b700
23220 * scd/app-openpgp.c (do_readkey): Decrement the length.
23222 scd: Add --advanced option for READKEY.
23223 + commit f9da935c3eb302e75a80def51128fb6f669661d7
23224 * scd/command.c (cmd_readkey) : Support ADVANCED arg.
23225 * scd/app.c (app_readcert): Add ADVANCED arg.
23226 * scd/app-openpgp.c (do_readkey): Implement ADVANCED arg.
23227 * scd/app-nks.c (do_readkey): Error return with GPG_ERR_NOT_SUPPORTED.
23229 2016-11-03 Werner Koch <wk@gnupg.org>
23231 agent: Extend the PINENTRY_LAUNCHED inquiry and status.
23232 + commit c1ea0b577a468030d2b006317ba27fc1746c4b14
23233 * agent/call-pinentry.c (start_pinentry): Get flavor and version and
23234 pass it to agent_inq_pinentry_launched.
23235 * agent/command.c (agent_inq_pinentry_launched): Add arg EXTRA.
23236 * g10/server.c (gpg_proxy_pinentry_notify): Print a new diagnostic.
23238 2016-11-03 Justus Winter <justus@g10code.com>
23240 g10: Improve and unify key selection for -r and --locate-keys.
23241 + commit ab89164be02012f1bf159c971853b8610e966301
23242 * g10/getkey.c (struct pubkey_cmp_cookie): New type.
23243 (key_is_ok, uid_is_ok, subkey_is_ok): New functions.
23244 (pubkey_cmp): Likewise.
23245 (get_best_pubkey_byname): Likewise.
23246 * g10/keydb.h (get_best_pubkey_byname): New prototype.
23247 * g10/keylist.c (locate_one): Use the new function.
23248 * g10/pkclist.c (find_and_check_key): Likewise.
23249 * tests/openpgp/Makefile.am (XTESTS): Add new test.
23250 (TEST_FILES): Add new files.
23251 * tests/openpgp/key-selection.scm: New file.
23252 * tests/openpgp/key-selection/0.asc: Likewise.
23253 * tests/openpgp/key-selection/1.asc: Likewise.
23254 * tests/openpgp/key-selection/2.asc: Likewise.
23255 * tests/openpgp/key-selection/3.asc: Likewise.
23256 * tests/openpgp/key-selection/4.asc: Likewise.
23258 gpgscm,tests: Add new functions to the test environment.
23259 + commit 1ec07cbc209f247fd85704f5701564e31aa56d0b
23260 * tests/gpgscm/lib.scm (first, last, powerset): New functions.
23261 * tests/gpgscm/tests.scm (interactive-shell): New function.
23262 * tests/openpgp/Makefile.am (EXTRA_DIST): Add new file.
23263 * tests/openpgp/README: Document 'interactive-shell'.
23264 * tests/openpgp/shell.scm: New file.
23266 2016-11-03 Werner Koch <wk@gnupg.org>
23268 gpgconf: Add a new field to the --query-swdb output.
23269 + commit d10b67b9bc32e8feff1be86e6646fc23e58fe45d
23270 * tools/gpgconf.c (query_swdb): Insert new field with the installed
23271 version. Check that the supplied version does not contain a colon.
23273 2016-11-02 Werner Koch <wk@gnupg.org>
23275 gpgconf: Add command --query-swdb.
23276 + commit 0ed6a6df5aa421a9c5cdb1e63867f0deee79af9e
23277 * tools/gpgconf.c (aQuerySWDB): New.
23278 (opts): Add --query-swdb.
23279 (valid_swdb_name_p): New.
23281 (main): Implement command --query-swdb.
23283 common: Improve compare_string_versions.
23284 + commit 488b183811fc25c1ae49b4730491accf1adf518e
23285 * common/stringhelp.c: Include limits.h.
23286 (compare_version_strings): Change semantics to behave like strcmp.
23287 Include the patch lebel in the comparison. Allow checking a single
23289 * common/t-stringhelp.c (test_compare_version_strings): Adjust test
23290 vectors and a few new vectors.
23291 * g10/call-agent.c (warn_version_mismatch): Adjust to new sematics.
23292 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
23293 * sm/call-agent.c (warn_version_mismatch): Ditto.
23294 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
23296 2016-11-02 Justus Winter <justus@g10code.com>
23298 gpgscm: Fix inclusion of readline header.
23299 + commit 60ad1a7f37ffc10e601e69a3e2d2bb14af510257
23300 * tests/gpgscm/ffi.c: Define magic macro to prevent the completion
23301 function from redefined.
23303 2016-11-02 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23305 build: Fix misspelled dirmngr.
23306 + commit 5e693ddfbe44d149ce0d9393d699c613ad5ea706
23309 Spelling: correct spelling of "passphrase".
23310 + commit 68b59bbc42ba9ec69496758743924d54a95742f0
23311 There were several different variant spellings of "passphrase". This
23312 should fix them all for all English text.
23314 I did notice that po/it.po contains multiple instances of
23315 "passhprase", which also looks suspect to me, but i do not know
23316 Italian, so i did not try to correct it.
23318 2016-11-02 Justus Winter <justus@g10code.com>
23320 g10,w32: Fix build on Windows.
23321 + commit 5d4f1408d0dd055d412ae44bb4a0f28f74617f05
23322 * g10/tofu.c (begin_transaction): Use the new 'gnupg_usleep'.
23324 2016-10-31 Werner Koch <wk@gnupg.org>
23326 common: New function gnupg_usleep.
23327 + commit ad491ceec6145b3781a05dc7b4a36052abeeb4b4
23328 * configure.ac (HAVE_NANOSLEEP): Test for nanosleep.
23329 * common/sysutils.c: Always include time.h.
23330 (gnupg_usleep): New.
23332 2016-10-31 Andre Heinecke <aheinecke@intevation.de>
23334 w32: Fix PKG_CONFIG_LIBDIR in --build-w32.
23335 + commit 3b6b8fe32af7568ff51066d4c2e3679df6dea86f
23336 * autogen.sh: Point pkg-config to the right location.
23338 2016-10-31 Neal H. Walfield <neal@g10code.com>
23340 g10: Avoid gratuitious SQLite aborts and starving writers.
23341 + commit 7a634e48b13c5d5d295b8fed9b429e1b2109a333
23342 * g10/tofu.c: Include <time.h>, <utime.h>, <fcntl.h> and <unistd.h>.
23343 (tofu_dbs_s): Add fields want_lock_file and want_lock_file_ctime.
23344 (begin_transaction): Only yield if DBS->WANT_LOCK_FILE_CTIME has
23345 changed since we took the lock. Don't use gpgrt_yield to yield, but
23346 sleep for 100ms. After taking the batch lock, update
23347 DBS->WANT_LOCK_FILE_CTIME. Also take the batch lock the first time we
23348 take the real lock. When taking the real lock, use immediate not
23349 deferred mode to avoid gratuitious aborts.
23350 (end_transaction): When dropping the outermost real lock, drop the
23352 (busy_handler): New function.
23353 (opendbs): Set the busy handler to it when opening the DB. Initialize
23354 CTRL->TOFU.DBS->WANT_LOCK_FILE.
23355 (tofu_closedbs): Free DBS->WANT_LOCK_FILE.
23357 2016-10-30 Neal H. Walfield <neal@g10code.com>
23359 g10: Avoid reading in keys when possible.
23360 + commit eec365a02bd35d2d5c9e4d2c8d18bcd9180cf859
23361 * g10/tofu.c (build_conflict_set): If CONFLICT_SET contains a single
23362 element, don't bother to check for cross sigs. Add parameter PK.
23365 g10: Fix bit setting.
23366 + commit 614ca00676bb8ca12b5107fec0e4ef8818445254
23367 * g10/tofu.c (build_conflict_set): Fix bit setting.
23369 2016-10-28 Werner Koch <wk@gnupg.org>
23371 gpg: Enable the Issuer Fingerprint from rfc4880bis.
23372 + commit b6f08dbb0b45059cdbbb5d9be9725e437f42a8cc
23373 * g10/build-packet.c (build_sig_subpkt_from_sig): Always write the new
23374 Issuer Fingerprint sub-packet.
23375 * g10/mainproc.c (check_sig_and_print): Always consider that
23378 2016-10-27 Werner Koch <wk@gnupg.org>
23380 dirmngr: Fix signature checking.
23381 + commit 5a1f6a0062488aaf345b1c73ba98a540e673d619
23382 * dirmngr/server.c: Include cpparray.h.
23383 (verify_swdb_parm_s): New.
23384 (verify_swdb_status_cb): New.
23385 (cmd_versioncheck): Use gpgv to correclty verify the signature.
23386 Rename some variable to comply with GNU standards.
23388 gpg: Verify multiple detached signatures with different hash algos.
23389 + commit 8fced66be35db5ac2a6bfdb9bccb2c0e582d8256
23390 * g10/mainproc.c (proc_tree): Loose check. Enable all algos.
23392 common: Add GNUPG_MODULE_NAME_GPGV.
23393 + commit ece9ade4b44fb3d5d120cfd32b23632e5efd2134
23394 * common/util.h (GNUPG_MODULE_NAME_GPGV): New.
23395 * common/homedir.c (gnupg_module_name): Implement.
23397 2016-10-27 Justus Winter <justus@g10code.com>
23399 g10: Fix iteration over getkey results.
23400 + commit 8ea72a776a88f3c851e812d258355be80caa1bc1
23401 * g10/getkey.c (getkey_next): Return the public key in PK even if
23402 RET_KEYBLOCK is NULL.
23404 g10: Assert preconditions.
23405 + commit 66a0091d74768ab3a4a5342d3645e1834c59045a
23406 * g10/getkey.c (get_pubkey_byname): Assert preconditions.
23408 2016-10-27 Werner Koch <wk@gnupg.org>
23410 dirmngr: Do not implement --supervised in Windows.
23411 + commit cf20b23c146c9e499263654644035796475de097
23412 * dirmngr/dirmngr.c (opts) [W32]: Remove --supervised.
23413 (main) [W32]: Ditto.
23415 common: Remove debug output from gnupg_get_socket_name.
23416 + commit a9c8b5fbe7ae241bf45bdee15884abc7891aedf9
23417 * common/sysutils.c (gnupg_get_socket_name): Remove debug message and
23418 use my_error_from_syserror.
23420 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
23422 dirmngr: ADNS error handling fix.
23423 + commit 45dfc02b47f798f5a3b9973ca6a9f5a907d7e665
23424 * dirmngr/dns-stuff.c (resolve_name_adns, get_dns_cert, get_dns_cname):
23425 Use gpg_error and gpg_err_code_from_errno to compose the error value.
23427 2016-10-27 Werner Koch <wk@gnupg.org>
23429 gpg: Convey --quick option to dirmngr for --auto-key-retrieve.
23430 + commit a15ed5a1fd5307b3ec1822daf3b138b187db0b5e
23431 * g10/call-dirmngr.c (gpg_dirmngr_ks_get): Add arg 'quick'.
23432 (gpg_dirmngr_wkd_get): Ditto.
23433 * g10/keyserver.c (keyserver_get): Add arg 'quick'.
23434 (keyserver_get_chunk): Add arg 'quick'.
23435 (keyserver_import_fprint): Ditto. Change callers to pass 0 for it.
23436 (keyserver_import_keyid): Ditto.
23437 (keyserver_import_wkd): Ditto.
23438 * g10/mainproc.c (check_sig_and_print): Call the 3 fucntions with
23441 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
23443 common: Fix gnupg_inotify_has_name, differently.
23444 + commit 8b3d0d1a36cab83dafb98ccb7895144edb95e298
23445 * common/sysutils.c (gnupg_inotify_has_name): Use void * to stop the
23448 dirmngr: More ADNS error fix.
23449 + commit 6f1d8123d61b3efac94b4c61ee75bd947790ba42
23450 * dirmngr/dns-stuff.c (get_dns_cert, getsrv, get_dns_cname): Fix return
23453 dirmngr: Fix error return for ADNS.
23454 + commit 8a9341b42cd1891090d45cc068bff84b2b3edb50
23455 * dirmngr/dns-stuff.c (resolve_name_adns): Use RET for return value.
23457 g10: Fix ECDH, clarifying the format.
23458 + commit ca0ee4e381d0b6a57e4ddc8f4bb2390eb97a2540
23459 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Returns error when
23460 it's short. Clarify the format. Handle other prefixes correctly.
23462 scd: Add 0x41 prefix for x-coordinate only result.
23463 + commit 6bbd97d6c771b2e2c7cfcff6d5a823f0fb44d443
23464 * scd/app-openpgp.c (do_decipher): When it's x-coordinate only, add the
23467 2016-10-27 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
23469 g10: ECDH shared point format.
23470 + commit b648f28f9f8b889f1217a649ded1d45f261bb2bf
23471 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Improve handling of
23472 ECDH shared point format.
23474 2016-10-27 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23476 dirmngr: Implement --supervised command (for systemd, etc).
23477 + commit 75f8aaf5bc2dc7fcffe2987a572d489155c91eb9
23478 * dirmngr/dirmngr.c (main): Add new --supervised command, which is a
23479 mode designed for running under a process supervision system like
23481 * doc/dirmngr.texi: document --supervised option.
23483 agent,common: move get_socket_name() into common.
23484 + commit 6316b28e896957adb76a61a41d2e1c2a08d9f716
23485 * agent/gpg-agent.c (get_socket_name): move to ...
23486 * common/sysutils.c (gnupg_get_socket_name): ... here.
23488 dirmngr: report actual socket name.
23489 + commit 6bb6ac56cca8135666387a0b9d88dd6b50311418
23490 * dirmngr/dirmngr.[ch] (dirmngr_get_current_socket_name): new function
23491 to report known socket name.
23492 * dirmngr/server.c (cmd_getinfo): use dirmngr_get_current_socket_name
23493 to report correct socket name.
23495 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
23497 common: Fix gnupg_inotify_has_name.
23498 + commit bc28f320fa6f5b9fcdb73dba5e6c582daf7992c5
23499 * common/sysutils.c (gnupg_inotify_has_name): Take care of the
23502 dirmngr: Fix help string and argument.
23503 + commit 96414baf36b8e6385b71847c789d489ebe176a93
23504 * dirmngr/server.c (hlp_versioncheck): Add a newline.
23505 (cmd_versioncheck): Fix argument.
23507 2016-10-26 Werner Koch <wk@gnupg.org>
23509 dirmngr: Fix hang due to deferred thread initialization.
23510 + commit d1ccab5176d7719328b287544b54b85e0277b146
23511 * dirmngr/dirmngr.c (main): Call ldap_wrapper_launch_thread after
23514 agent: Avoid double error message.
23515 + commit b77f95a4a675fd20f6eeb611f4e7b519eceb4ad3
23516 * agent/gpg-agent.c (map_supervised_sockets): Shorten error message.
23517 Remove unneeded diagnostic.
23519 common: Use GPG_ERR_INV_VALUE instead of GPG_ERR_EINVAL.
23520 + commit ece13f177d948013b6f3df926406c0cd947abc25
23521 * common/sysutils.c (gnupg_inotify_watch_socket): Return
23522 GPG_ERR_INV_VALUE for a missing socket name and set proper error
23525 tests: Improve portability of fake-pinentry.
23526 + commit 21b318452abbfe21c45c2a67dae0e3a81cff1090
23527 * tests/openpgp/fake-pinentry.c: Make all functions static.
23528 (get_passphrase): s/unlink/remove/ because that is standard C.
23529 (spacep): Rename to whitespace and change all callers.
23530 (main): Move macro out of if-then chain.
23532 2016-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23534 agent: --supervised mode improvements.
23535 + commit 27f6d5b9f4b6057ddeb9ace87a1e7e61ebac63e6
23536 * agent/gpg-agent.c (map_supervised_socket): if the agent is running
23537 in --supervised mode and is not actually given LISTEN_FDNAMES
23538 directives, require at least fd 3 to be open for listening.
23540 common: avoid segfault.
23541 + commit 3b5f5e0eb02ecbdcf59722755f22a9d2f88de6e6
23542 * common/sysutils.c (gnupg_inotify_watch_socket): return EINVAL if
23543 socket_name is NULL, rather than segfaulting
23545 2016-10-25 Justus Winter <justus@g10code.com>
23547 agent,tests,w32: Fix relaying pinentry user data, fix fake-pinentry.
23548 + commit 852b8f0b89d447536dfdf6cd4ea91615c75491ce
23549 * agent/call-pinentry.c (start_pinentry): Also send the user data
23550 using an Assuan 'OPTION' command.
23551 * tests/openpgp/fake-pinentry.c (get_passphrase): Fix updating
23553 (spacep): Include newline characters.
23554 (rstrip): New function.
23555 (main): Handle Windows line endings. Handle the userdata option, and
23556 restart with the new options.
23558 tests: Do not autostart gpg-agents on teardown.
23559 + commit f88f11a25665dca7490a09088aa24edf396e4c40
23560 * tests/openpgp/defs.c (stop-agent): Use '--no-autostart' when calling
23563 2016-10-25 Werner Koch <wk@gnupg.org>
23565 dirmngr: Allow command VERSIONCHECK to handle 3 part version numbers.
23566 + commit b120f358c25cc846ca9d841d47e71ca1a7fe02e4
23567 * dirmngr/server.c (parse_version_string): Add arg MICRO and set it.
23568 (cmp_version): Extend to handle the MICRO part.
23569 (confucius_mktmpdir): Rename to my_mktmpdir.
23570 (my_mktmpdir): xstrconcat does not fail; use strconcat.
23571 (fetch_into_tmpdir): Improve error checking.
23573 common: Use strconcat in gnupg_setenv.
23574 + commit 7983f8758703071710c11bf2a255efcd71836b65
23575 * common/sysutils.c (gnupg_setenv): Replace malloc+stpcpy by
23576 strconcat. Indent cpp conditionals.
23577 (gnupg_unsetenv): Indent cpp conditionals.
23579 2016-10-24 Werner Koch <wk@gnupg.org>
23581 gpg: Replace two sprintf calls.
23582 + commit 9d6146d6f9870fbfcec15cdc4becaf094d5a90e0
23583 * g10/keygen.c (print_status_key_created): Use snprintf for now.
23584 (ask_expire_interval): Replace xmalloc and sprintf by xasprintf.
23586 agent: Minor cleanup for recent change in findkey.c.
23587 + commit 8c40b3b98d3ddeda79fde981e6539c5b3b09d9a2
23588 * agent/findkey.c (agent_write_private_key): Avoid label name error.
23590 agent: Slightly change structure of cmd_readkey.
23591 + commit fdb653a33ea1a24d1159880624dbbcc0867865b5
23592 * agent/command.c (cmd_readkey): Avoid a leave label in the middle of
23593 the code. Remove the special return.
23595 2016-10-24 Kai Michaelis <kai@gnupg.org>
23597 dirmngr: Fix segfault in VERSIONCHECK.
23598 + commit 5e7dfd979d2d91800d90c3ce9a66755df3217682
23599 * dirmngr/server.c (cmd_versioncheck): The VERSIONCHECK command crashes
23600 when called without program version.
23602 2016-10-24 NIIBE Yutaka <gniibe@fsij.org>
23604 scd: Use canonical curve name of libgcrypt.
23605 + commit b1828c17fc475def1ee9e06f083f513f568c241b
23606 * scd/app-openpgp.c (send_key_attr): Use curve instead of OID.
23607 (ecdh_params): New.
23608 (ecc_read_pubkey): Use ecdh_params. Use curve name.
23609 (ecc_writekey): Likewise.
23610 (ecc_curve): Rename from ecc_oid.
23611 (parse_algorithm_attribute): Use ecc_curve.
23612 * g10/call-agent.c (learn_status_cb): Use openpgp_is_curve_supported to
23613 intern the curve name string.
23614 * g10/card-util.c (card_status): Conver curve name to alias for print.
23616 common: Fix openpgp_is_curve_supported.
23617 + commit 945e7ab0ddedf5f58afd97d81e101939de5b5d89
23618 * common/openpgp-oid.c (openpgp_is_curve_supported): Support both of
23619 canonical name of the curve and alias.
23621 g10: Fix card keygen for decryption.
23622 + commit acef0951646b47c87ccc1c616f0105a068e7ed86
23623 * g10/keygen.c (do_generate_keypair): Fix arguments.
23625 2016-10-22 NIIBE Yutaka <gniibe@fsij.org>
23627 g10: More card key generation change.
23628 + commit 987bbb2276aeb6bee2793e8406e223717b605009
23629 * g10/keygen.c (gen_card_key): Add back ALGO as the second argument.
23630 Don't get ALGO by KEY-ATTR by this function. It's caller to provide
23631 ALGO. Don't do that by both of caller and callee.
23632 (generate_keypair): Only put paramerters needed. Use parameters
23633 for ALGO to call gen_card_key.
23634 (generate_card_subkeypair): Get ALGO and call gen_card_key with it.
23636 2016-10-21 Andre Heinecke <aheinecke@intevation.de>
23638 g10: Write first keybox record in binary mode.
23639 + commit f7e50634be71ce3028726f23edf14454109a04a8
23640 * g10/keydb.c (maybe_create_keyring_or_box): Open in binary mode.
23642 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
23644 g10,scd: Fix ECC keygen.
23645 + commit d2653b1a6db90aed073194a51fd61023d69773ec
23646 * g10/keygen.c (generate_keypair): For card key generation, fill
23647 parameters by KEY-ATTR.
23649 * scd/app-openpgp.c (ecc_read_pubkey): OID should be freed at last,
23650 after its reference by OIDBUF is finished.
23651 (ecc_writekey): Likewise.
23653 scd: Fix segfault changing key attr.
23654 + commit 693e657ff04756737dce025203c0deba480ea8de
23655 * asc/app-openpgp.c (change_keyattr_from_string): Release after
23658 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
23659 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
23661 g10: Don't ask keysize for for non-RSA card.
23662 + commit dafce6f698bec6e9d4c0125b90754d0687294e86
23663 * g10/card-util.c (card_status): Bug fix for keyno.
23664 (ask_card_rsa_keysize, do_change_rsa_keysize): Rename.
23665 (generate_card_keys): Only ask keysize when RSA.
23666 (card_generate_subkey): Likewise.
23668 g10: Support ECC for gen_card_key.
23669 + commit 161cb22f13bcd8cbdb08558d9926b2168a8297ac
23670 * g10/keygen.c (gen_card_key): Remove the first argument of ALGO.
23671 (do_generate_keypair, generate_card_subkeypair): Follow the change.
23673 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
23675 Fix use cases of snprintf.
23676 + commit 6e85ac77af594035137950d801d8a1bacce548a3
23677 * agent/call-pinentry.c, agent/call-scd.c, agent/command.c,
23678 build-aux/speedo/w32/g4wihelp.c, common/get-passphrase.c,
23679 dirmngr/dirmngr.c, g10/call-agent.c, g10/cpr.c, g10/keygen.c,
23680 g10/openfile.c, g10/passphrase.c, scd/app-openpgp.c, scd/scdaemon.c,
23681 sm/call-agent.c, sm/call-dirmngr.c, sm/certreqgen.c: Fix assuming C99.
23683 agent: Fix saving with FORCE=1.
23684 + commit 1ffd475f99eaff4e40950eda88702f8db9288eb5
23685 * agent/findkey.c (agent_write_private_key): Recover from an error of
23686 GPG_ERR_ENOENT when FORCE=1 and it is opened with "rb+".
23688 2016-10-20 Justus Winter <justus@g10code.com>
23690 tests: Simplify test.
23691 + commit 71158d8d5f823888abc8588caa6497860ce59c06
23692 * tests/openpgp/quick-key-manipulation.scm: Avoid creating a temporary
23693 home directory, just make the uids unique.
23695 tests: Flush stdout in the fake pinentry.
23696 + commit ca9597f080f70a8435daaeb5449bef0462a1402a
23697 * tests/openpgp/fake-pinentry.c (reply): Flush stdout.
23699 common,w32: Fix setting environment variables on Windows.
23700 + commit 8c7c4faf3de28ca70a60e6b15f51c1b206e0ddd9
23701 * common/sysutils.c (gnupg_setenv): Also update the environment block
23702 maintained by the C runtime.
23703 (gnupg_unsetenv): Likewise.
23704 * tests/gpgscm/ffi.c (do_setenv): Fix error handling.
23706 tests,w32: Cope with Windows line endings.
23707 + commit bf37916a23bd0929fc4a5f28c9a41f43c5a473f6
23708 * tests/openpgp/issue2015.scm: Rstrip line before comparison.
23710 tests: Create and remove socket directories.
23711 + commit 2d794779e0fd9d9a1efc98e7bd77a296a25f4293
23712 * tests/openpgp/defs.scm (start-agent): Move function here and create
23713 the socket directory prior to starting the agent.
23714 (stop-agent): Move function here and remove the socket directory.
23715 * tests/openpgp/finish.scm: Adapt.
23716 * tests/openpgp/setup.scm: Likewise.
23718 2016-10-20 NIIBE Yutaka <gniibe@fsij.org>
23720 agent, g10: Fix keygen.
23721 + commit 9a34e2142b426b98c73fd888102ea1596bbce62a
23722 * agent/command.c (cmd_readkey): Get length after card_readkey.
23723 * g10/keygen.c (gen_card_key): Fix off-by-one error.
23725 scd: GENKEY updates the public key in APP.
23726 + commit b680f79cc112c4831293e259d7db2921bcd783a4
23727 * scd/app-openpgp.c (rsa_read_pubkey, ecc_read_pubkey): New.
23728 (read_public_key): New.
23729 (get_public_key, do_genkey): Use read_public_key.
23731 g10: smartcard keygen change.
23732 + commit 980c037bedb968ddf155dd334c0a70b918a17759
23733 * g10/call-agent.c (scd_genkey_cb_append_savedbytes): Remove.
23734 (scd_genkey_cb): Only handle KEY-CREATED-AT and PROGRESS.
23735 (agent_scd_genkey): Remove INFO argument. CREATETIME is now in/out
23737 (agent_readkey): Use READKEY --card instead of SCD READKEY.
23738 * g10/keygen.c (gen_card_key): Use READKEY --card command of the agent
23739 to retrieve public key information from card and let the agent make
23740 a file for private key with shadow info.
23742 agent: Add --card option for READKEY.
23743 + commit 82cbab906a3e72a98fdc16096f2f0451465969a2
23744 * agent/findkey.c (agent_write_shadow_key): New.
23745 * agent/command-ssh.c (card_key_available): Use agent_write_shadow_key.
23746 * agent/learncard.c (agent_handle_learn): Likewise.
23747 * agent/command.c (cmd_readkey): Add --card option.
23749 2016-10-19 Kai Michaelis <kai@gnupg.org>
23751 dirmngr: improve VERSIONCHECK.
23752 + commit 72a99f582dad4cb4c3b05b97c7ebb8d537f10b79
23753 Replace strtok_r() and code formatting. Use code from libgpg-error for
23754 version comparison.
23756 2016-10-18 Justus Winter <justus@g10code.com>
23758 common: Fix copying data to estreams.
23759 + commit 8dce5ee55a0268d196023224dcf3020306922490
23760 * common/exectool.c (copy_buffer_do_copy): Correctly account for
23761 partially written data in the event of errors.
23763 common,w32: Communicate with child in non-blocking mode.
23764 + commit 05a1e412332dd980353a4e3e59bc75ba40bae7fc
23765 * common/exechelp-w32.c (gnupg_spawn_process): Open streams in
23766 non-blocking mode if requested.
23768 common,w32: Extend gnupg_create_inbound_pipe et al.
23769 + commit f2d39a6d051413289c717b9cd2dc387a270b8e7c
23770 * common/exechelp-w32.c (do_create_pipe): Rename, add arguments, and
23771 create a stream if reqested.
23772 (gnupg_create_inbound_pipe): Use the extended function to open the
23773 stream if requested.
23774 (gnupg_create_outbound_pipe): Likewise.
23775 (gnupg_create_pipe): Update call site.
23777 common,w32: Make use of default_errsource in exechelp.
23778 + commit 727ca74bb942464217e678012cccbfc347ae08a5
23779 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
23780 Use them instead of gpg_error and gpg_error_from_syserror.
23782 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
23783 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
23785 scd: Support ECC key generation.
23786 + commit 34439da2d62b964a914ace66bae7e38f619582a4
23787 * scd/app-openpgp.c (get_public_key): Fix a message.
23788 (change_keyattr_from_string, ecc_writekey): Call mpi_release sooner.
23789 (do_genkey): Add ECC support.
23791 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
23793 scd: minor cleanup to merge other works.
23794 + commit f1845f25dbea79c191427710fa56ed01e63a045b
23795 * scd/iso7816.c (do_generate_keypair): Use const char * for DATA.
23796 (iso7816_generate_keypair, iso7816_read_public_key): Likewise.
23797 * scd/app-openpgp.c (get_public_key): Follow the change.
23798 (do_genkey): Ditto. Use ERR instead of RC. Use u32 for CREATED_AT.
23800 2016-10-17 Justus Winter <justus@g10code.com>
23802 gpgscm: Initialize nesting stack.
23803 + commit c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794
23804 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
23807 2016-10-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23809 doc: Document how to manually shut down gpg-agent.
23810 + commit 869c06efa791bbc8330becdb3f13f7cf9506257e
23811 * doc/gpg-agent.texi: document "gpgconf --kill gpg-agent" for manual
23814 This was requested in a side-comment in https://bugs.debian.org/840669
23816 doc: Point gpg-agent(1) at the right gpg manpage in SEE ALSO.
23817 + commit c53ce53ab1fa6a328c368f2a15e3ccd803f03ee2
23818 * doc/gpg-agent.texi (SEE ALSO): refer to @gpgname, instead of
23819 hard-coding "gpg2".
23821 2016-10-17 NIIBE Yutaka <gniibe@fsij.org>
23823 scd: Fix keytocard for ECC.
23824 + commit 25428be52168fa9c581b7f11c95a5c63b25343b7
23825 * scd/app-openpgp.c (build_ecc_privkey_template): Size can be greater
23826 than 128 when it comes with public key for curve of larger field.
23828 gpgconf: Fix for --homedir.
23829 + commit 70a8584ec4389209762eb65bb77f20f7881577be
23830 * tools/gpgconf-comp.c (gpg_agent_runtime_change,
23831 scdaemon_runtime_change, dirmngr_runtime_change): Provide the homedir
23832 arguments by --homedir when it's not default.
23834 2016-10-16 Werner Koch <wk@gnupg.org>
23836 agent: Use straightforward names for the default socket names.
23837 + commit 0b0f9a3788cb5d3c26cec16cd24acc973069d280
23838 * configure.ac (GPG_AGENT_SOCK_NAME): Change name to *.extra.
23839 (GPG_AGENT_EXTRA_SOCK_NAME): Change name to *browser.
23841 2016-10-15 Werner Koch <wk@gnupg.org>
23843 agent: Move inotify code to common and improve it.
23844 + commit 2f7d4c38c9e7bcc14e6e0bf219d688c40a4afecb
23845 * common/sysutils.c: Include sys/inotify.h.
23846 (my_error_from_syserror, my_error): New.
23847 (gnupg_inotify_watch_socket): New.
23848 (gnupg_inotify_has_name): New.
23849 * agent/gpg-agent.c: Do not include sys/inotify.h.
23850 (my_inotify_is_name): Remove.
23851 (handle_connections): Remove HAVE_INOTIFY_INIT protected code and use
23854 2016-10-14 Kai Michaelis <kai@gnupg.org>
23856 dirmngr: use gnupg_mkdtemp instead of mkstemp.
23857 + commit c318561ef4c97f0c2767aef377531d58174060a1
23858 MinGW on debian does not support mkstemp.
23860 dirmngr: add VERSIONCHECK command.
23861 + commit f99c5fa1c970dc1122ac62371eb8d758f380ed57
23862 Given an application name and version VERSIONCHECK fetches the software
23863 version list from version.gnupg.org, verifies the signature and returns
23864 whenever the given version is older (UPDATE), current (CURRENT) or newer
23867 2016-10-13 Neal H. Walfield <neal@g10code.com>
23869 tests: Use shorter filenames.
23870 + commit 0c56ad5a8d89d69a9ed00571720b3b105f955214
23871 * tests/openpgp/tofu/cross-sigs/
23872 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg: Rename from this...
23873 * tests/openpgp/tofu/cross-sigs/EC38277E-1.gpg: .. to this.
23874 * tests/openpgp/tofu/cross-sigs/
23875 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: Rename from this...
23876 * tests/openpgp/tofu/cross-sigs/EC38277E-1.txt: .. to this.
23877 * tests/openpgp/tofu/cross-sigs/
23878 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: Rename from this...
23879 * tests/openpgp/tofu/cross-sigs/EC38277E-2.gpg: .. to this.
23880 * tests/openpgp/tofu/cross-sigs/
23881 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: Rename from this...
23882 * tests/openpgp/tofu/cross-sigs/EC38277E-2.txt: .. to this.
23883 * tests/openpgp/tofu/cross-sigs/
23884 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: Rename from this...
23885 * tests/openpgp/tofu/cross-sigs/EC38277E-3.txt: .. to this.
23886 * tests/openpgp/tofu/cross-sigs/
23887 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: Rename from
23889 * tests/openpgp/tofu/cross-sigs/EC38277E-secret.gpg: .. to this.
23890 * tests/openpgp/tofu/cross-sigs/
23891 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: Rename from this...
23892 * tests/openpgp/tofu/cross-sigs/871C2247-1.gpg: .. to this.
23893 * tests/openpgp/tofu/cross-sigs/
23894 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: Rename from this...
23895 * tests/openpgp/tofu/cross-sigs/871C2247-1.txt: .. to this.
23896 * tests/openpgp/tofu/cross-sigs/
23897 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: Rename from this...
23898 * tests/openpgp/tofu/cross-sigs/871C2247-2.gpg: .. to this.
23899 * tests/openpgp/tofu/cross-sigs/
23900 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: Rename from this...
23901 * tests/openpgp/tofu/cross-sigs/871C2247-2.txt: .. to this.
23902 * tests/openpgp/tofu/cross-sigs/
23903 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: Rename from this...
23904 * tests/openpgp/tofu/cross-sigs/871C2247-3.gpg: .. to this.
23905 * tests/openpgp/tofu/cross-sigs/
23906 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: Rename from this...
23907 * tests/openpgp/tofu/cross-sigs/871C2247-3.txt: .. to this.
23908 * tests/openpgp/tofu/cross-sigs/
23909 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: Rename from this...
23910 * tests/openpgp/tofu/cross-sigs/871C2247-4.gpg: .. to this.
23911 * tests/openpgp/tofu/cross-sigs/
23912 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: Rename from
23914 * tests/openpgp/tofu/cross-sigs/871C2247-secret.gpg: .. to this.
23915 * tests/openpgp/Makefile.am (TEST_FILES): Update accordingly.
23917 g10: Be more careful when checking if a binding is signed by a UTK.
23918 + commit 95d0f3e5eebd85dcf226dca14891a1215bfe93ae
23919 * g10/tofu.c (signed_by_utk): When checking if a key is signed by an
23920 ultimately trusted key, only consider the signatures on the specified
23922 * tests/openpgp/tofu.scm: Add test for the above.
23924 tests: Add test data to TEST_FILES.
23925 + commit d2d936fbe86d61b89cead95df633b2b575690e05
23926 * tests/openpgp/Makefile.am (TEST_FILES): Add new test data.
23928 g10: Be more careful when checking cross signatures.
23929 + commit 4c0389f8eb19ae7dfd9c5d784a629b386d93cc5c
23930 * g10/tofu.c (cross_sigs): When checking cross signatures, only
23931 consider the signatures on the specified user id.
23932 * tests/openpgp/tofu.scm: Add test for the above.
23933 * tests/openpgp/tofu/cross-sigs/
23934 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg:
23936 * tests/openpgp/tofu/cross-sigs/
23937 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: New file.
23938 * tests/openpgp/tofu/cross-sigs/
23939 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: New file.
23940 * tests/openpgp/tofu/cross-sigs/
23941 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: New file.
23942 * tests/openpgp/tofu/cross-sigs/
23943 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: New file.
23944 * tests/openpgp/tofu/cross-sigs/
23945 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: New file.
23946 * tests/openpgp/tofu/cross-sigs/
23947 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: New file.
23948 * tests/openpgp/tofu/cross-sigs/
23949 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: New file.
23950 * tests/openpgp/tofu/cross-sigs/
23951 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: New file.
23952 * tests/openpgp/tofu/cross-sigs/
23953 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: New file.
23954 * tests/openpgp/tofu/cross-sigs/
23955 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: New file.
23956 * tests/openpgp/tofu/cross-sigs/
23957 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: New file.
23958 * tests/openpgp/tofu/cross-sigs/
23959 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: New file.
23960 * tests/openpgp/tofu/cross-sigs/
23961 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: New file.
23962 * tests/openpgp/tofu/cross-sigs/README: New file.
23964 g10: Still check if the key is an UTK or cross signed in batch mode.
23965 + commit e09166c77273f459c8f87cab9224f85808af2cba
23966 * g10/tofu.c (get_trust): If POLICY is ask, but we can't ask, don't
23967 bail immediately. Instead, check if the key in question is an
23968 ultimately trusted key or cross signed.
23970 g10: If an sqlite operation fails, map the error code to GPG_ERR_GENERAL
23971 + commit 5bf92e51dfdfb4f4746ecd817d8d2240ed27ea74
23972 * g10/tofu.c (get_policy): If an sqlite operation fails, map the error
23973 code to GPG_ERR_GENERAL.
23974 (ask_about_binding): Likewise.
23975 (build_conflict_set): Likewise.
23976 (get_trust): Likewise.
23977 (show_statistics): Likewise.
23978 (tofu_register_signature): Likewise.
23979 (tofu_register_encryption): Likewise.
23981 tests: Remove support for deprecated functionality.
23982 + commit 2282c3b761413dfa894300e70084bbd58908c0b1
23983 * tests/openpgp/tofu.scm: Don't remove tofu.d. It's deprecated.
23985 2016-10-12 Neal H. Walfield <neal@g10code.com>
23987 g10: When changing a TOFU binding's policy, update the conflict info.
23988 + commit 3ad17e72fa81d18c95732ddcd4def244f52bb5b1
23989 * g10/tofu.c (record_binding): Take an additional argument, CONFLICT.
23990 Set the binding's conflict accordingly. Update callers.
23992 g10: Make a singular string singular.
23993 + commit ca84f65c7cf2c6a08a01018519965a82e6c52cac
23994 * g10/tofu.c (ask_about_binding): Make the singular string singular.
23996 g10: Correctly determine whether a binding has a conflict.
23997 + commit 6fdf37f0831949cb279de6dc6b247ab2ed53fe5a
23998 * g10/tofu.c (build_conflict_set): A binding has a conflict is
23999 conflict is *not* NULL, not if it is NULL.
24001 g10: Fix a column's type in TOFU DB.
24002 + commit 78eda335fd1c29038b74b9cc912b6a4515fccd9f
24003 * g10/tofu.c (initdb): Change policy from a boolean to an integer.
24005 2016-10-07 Justus Winter <justus@g10code.com>
24007 tests: Rework test environment setup.
24008 + commit cbbf0a7a8da1757fea29cff0daaa42a6bbb95b26
24009 * tests/openpgp/setup.scm: Import one keyring at a time. This works
24010 around a yet to be investigated hang on Windows. It is also much
24013 tests: Improve handling of Windows newlines.
24014 + commit 1f76f8d8bc65fad98927c977baf4d5e36dafe52b
24015 * tests/gpgscm/lib.scm (string-split-newlines): New function.
24016 * tests/openpgp/default-key.scm: Use new function.
24017 * tests/openpgp/defs.scm: Likewise.
24018 * tests/openpgp/export.scm: Likewise.
24019 * tests/openpgp/import.scm: Likewise.
24021 gpgscm: Improve test of low-level functions.
24022 + commit 11eac7eb2fa3392a9aa052f8f5bb9875129ab84b
24023 * tests/gpgscm/t-child.c: Print large amounts of data.
24024 * tests/gpgscm/t-child.scm: Test that this works.
24026 gpgscm: Improve path handling.
24027 + commit dff266059813d22d1e2ba7e77279999cd41ceb75
24028 * tests/gpgscm/ffi.c (ffi_init): New Scheme variable '*win32*'.
24029 * tests/gpgscm/tests.scm (canonical-path): Correctly handle paths with
24030 drive letter on Windows. Use 'path-join'.
24031 (path-expand): Use 'path-join'.
24033 tools: Fix error handling.
24034 + commit 5afbfdfd59540cb882d891ff1f4afa73fe48f99a
24035 * tools/gpgtar-create.c (gpgtar_create): Do not crash if opening the
24038 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
24040 agent: Fix get_socket_name.
24041 + commit fb3b3e1e7a4219f61a834fd07809898918611c2f
24042 * agent/gpg-agent.c (get_socket_name): Fix the size of copying.
24044 2016-10-07 Werner Koch <wk@gnupg.org>
24046 gpg: Put extra parens around bit tests.
24047 + commit 5d43d28aa3c44c3a27fde823f467b0c4be1a58c2
24048 * g10/options.h (DBG_MPI): New.
24049 * g10/gpg.c (set_debug): Use macro or extra parens for binary operator.
24050 * g10/parse-packet.c (set_packet_list_mode): Use dbg macro.
24052 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
24054 agent, dirmngr, scd: Fix init_common_subsystems.
24055 + commit fc0b392e766af8127094e8b529d25abb84ad1d65
24056 * common/init.c (_init_common_subsystems): Don't call
24057 gpgrt_set_syscall_clamp in this function.
24058 * agent/gpg-agent.c, dirmngr/dirmngr.c, scd/scdaemon.c: Call
24059 gpgrt_set_syscall_clamp after npth_init.
24061 2016-10-06 Justus Winter <justus@g10code.com>
24063 common: Avoid pointer arithmetic on string literals.
24064 + commit 4aadc751f201f8f97c9c1f454e3a29803cce3edb
24065 * common/gettime.c (rfctimestamp): Use indexing instead.
24066 * common/signal.c (got_fatal_signal): Likewise.
24068 g10: Fix singular term.
24069 + commit b0d2526bc4e5c663eeffe04500420c70cee98712
24070 * g10/tofu.c (ask_about_binding): Fix singular message.
24072 g10: Use appropriate variant of 'abs'.
24073 + commit 73000d1ce0317210f5a9e5262404cc90258041ff
24074 * g10/tofu.c (ask_about_binding): Use 'labs' instead of 'abs'.
24076 sm: Remove statement without effect.
24077 + commit 2d446759bd43ae38fbce9a18c955285ca535bc08
24078 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Remove statement without
24081 g10: Fix testing for debug flag.
24082 + commit 6b626824c8e30b41c47724b5ccbf761937499512
24083 * g10/parse-packet.c (set_packet_list_mode): Fix testing for debug
24086 tools: Improve error handling.
24087 + commit 32f81f56a8be6d13dea0a64d24f52343c7e72c84
24088 * tools/gpg-wks-server.c (copy_key_as_binary): Initialize 'argv'.
24090 gpgscm: Update callsite of 'gnupg_spawn_process'.
24091 + commit 07cfb3b27a77491eae818d57f6eb660e75fa013f
24092 * tests/gpgscm/ffi.c (do_spawn_process): Adapt to the changes to
24093 'gnupg_spawn_process'.
24095 2016-10-05 Werner Koch <wk@gnupg.org>
24097 wks: Send key encrypted as required by draft -02.
24098 + commit 8ce800d21919eaaba7ed4f04f712292be310fd66
24099 * tools/gpg-wks-client.c (get_key): Encrypt.
24100 (encrypt_response): Take care of --fake-submission-addr.
24102 wks: Add option --fake-submission-addr to gpg-wks-client.
24103 + commit e514a5b725f0c997cef4362808b2778a3faa9cf8
24104 * tools/gpg-wks-client.c (oFakeSubmissionAddr): New.
24105 (opts): Add option --fake-submission-addr.
24106 (fake_submission_addr): New variable.
24107 (parse_arguments): Set it.
24108 (command_send): Use --fake-submission-addr.
24110 agent: Another minor fix to map_supervised_sockets.
24111 + commit 1cedc32c95c2e3c3ab98af23ddc2845d51e596c1
24112 * agent/gpg-agent.c (map_supervised_sockets): Remove debug message.
24113 Provide correct fd in the second error case.
24115 agent: Fix npth + supervised mode problem.
24116 + commit f57dc2b1e6f28d164f882373535dbcb0d632ca17
24117 * agent/gpg-agent.c (main): Initialize modules in supervised mode.
24119 2016-10-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24121 agent: Fix error handling in map_supervised_sockets.
24122 + commit a2127c71dbf87c1710b43d91a733dd4c9b2953bc
24123 * agent/gpg-agent.c (map_supervised_sockets): the file descriptor to
24124 close on error is fd, not i.
24126 2016-10-04 Werner Koch <wk@gnupg.org>
24128 agent: Streamline the supervised mode code.
24129 + commit 1a9c8d78ece2f31fdb1a8e2be049aa71053061fa
24130 * agent/gpg-agent.c (get_socket_path): Rename to ...
24131 (get_socket_name): this. This is to comply with the GNU coding guide.
24132 Use xtrymalloc instead of malloc. Do not build for W32.
24133 (map_supervised_sockets): Use strtokenize and set the the socket names
24135 (main): Adjust for above change. Do not close the socket.
24137 agent: Adjust cleanup for supervised mode. Fix for W32.
24138 + commit afcfae7959f39e7d85309b9496e1f1cf9acd5cc2
24139 * agent/gpg-agent.c (opts) [W32]: Remove option --supervised.
24140 (is_supervised): Move from main() to global.
24141 (inhibit_socket_removal): New.
24142 (cleanup): Take care of supervise mode and INHIBIT_SOCKET_REMOVAL.
24143 (check_own_socket_thread): Set INHIBIT_SOCKET_REMOVAL instead of
24144 seting the socket names to empty.
24146 agent: Adjust supervised mode for the new default socket names.
24147 + commit dc059af1ff007842e2633e686c87d05daf1d45e3
24148 * agent/gpg-agent.c (main): In supervised mode do not provide default
24149 socket names. Unset DISPLAY and INSIDE_EMACS. Use log_error and
24152 2016-10-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24154 agent: Implement --supervised command (for systemd, etc).
24155 + commit 9f92b62a51d2d60f038fdbe01602865c5933fa95
24156 * agent/gpg-agent.c (get_socket_path): New function for POSIX systems
24157 to return the path for a provided unix-domain socket.
24158 (map_supervised_sockets): New function to inspect $LISTEN_FDS and
24159 $LISTEN_FDNAMES and map them to the specific functionality offered by
24161 (main): Add --supervised command. When used, listen on already-open
24162 file descriptors instead of opening our own.
24163 * doc/gpg-agent.texi: Document --supervised option.
24165 2016-10-04 Justus Winter <justus@g10code.com>
24167 build,w32: Unconditionally build tests.
24168 + commit 4a232d23a8f51bebf9ee382e480248b4bde30f28
24169 * configure.ac (run_tests, RUN_TESTS, RUN_GPG_TESTS): Remove
24170 variables. They are misleadingly named, as they inhibit building the
24171 tests. There is no reason not to build the tests even when
24172 cross-compiling, as they are only run if one does 'make check'.
24173 * Makefile: Adapt accordingly.
24174 * tests/Makefile.am: Adapt accordingly. Avoid building 'asschk' on
24175 Windows as it uses non-portable functions.
24177 tests,w32: Do not expose 'glob' to gpgscm.
24178 + commit 41b510f9c510f8fd1b59eb0c5dd2e2b2deaf0a1b
24179 * tests/gpgscm/ffi.c (do_glob): Remove function.
24180 (ffi_init): Likewise.
24182 tests,w32: Avoid using 'glob'.
24183 + commit 949e70115eb2c04bd09da6477f6c433e6fd9a366
24184 * tests/openpgp/setup.scm: Avoid 'glob' which is not available on
24187 tools: Ignore existing directories in gpgtar.
24188 + commit fbc83c0cdd390473c044953fb774571ffc636c6d
24189 * tools/gpgtar-extract.c (extract_directory): Ignore existing
24190 directories now that we have '--directory'.
24192 2016-10-04 NIIBE Yutaka <gniibe@fsij.org>
24194 agent, dirmngr, scd: npth_init must be after fork.
24195 + commit eda17649f8bd3b8ce7bfc00a3c11cbcae63c845d
24196 * agent/gpg-agent.c (thread_init_once, initialize_modules): New.
24197 (main): Make sure no daemonizing-fork call after npth_init, and no npth
24198 calls before npth_init, with care of npth calls by assuan hooks.
24199 * dirmngr/dirmngr.c (thread_init): New.
24200 (main): Make sure npth_init must not be called before daemonizing fork.
24201 * scd/scdaemon.c (main): Likewise.
24203 2016-09-30 Werner Koch <wk@gnupg.org>
24205 agent: Remove the warning for the GKR hijacking.
24206 + commit a43739a2456a38c01704d8a52dca441055e29bc6
24207 * g10/call-agent.c (check_hijacking): Remove.
24208 (start_agent): Remove call.
24210 agent: Create the extra sockets in the standard socket dir.
24211 + commit 80cc16e0728256f6b07a12980e1f3512cf2324fa
24212 * agent/gpg-agent.c (main): Take the socketdir in account for the
24214 * tools/gpgconf.c (list_dirs): Add "agent-extra-socket" and
24215 "agent-browser-socket".
24217 agent: Kludge to allow disabling of the extra sockets.
24218 + commit 95cf7afff074613825f4442fa131145a2c0d3cf7
24219 * agent/gpg-agent.c (main): Check for special socket names.
24221 wks: Avoid long trustdb checks.
24222 + commit de67055aff916455cec89fab1d95177d3b383008
24223 * tools/wks-receive.c (verify_signature): Use --always-trust.
24225 2016-09-30 Justus Winter <justus@g10code.com>
24227 build: Fix build against libiconv.
24228 + commit 6054e8aaecbd355bb7559697eecaadf2225189b8
24229 * agent/Makefile.am: Add INCICONV and LIBICONV.
24230 * common/Makefile.am: Likewise.
24231 * tools/Makefile.am: Likewise.
24233 agent: Enable restricted, browser, and ssh socket by default.
24234 + commit e11686f973b35869d7b299ce4726003ac22e2e3a
24235 * agent/gpg-agent.c (main): Provide defaults for 'extra-socket' and
24236 'browser-socket', enable ssh socket by default, but do not emit the
24237 'SSH_AUTH_SOCK' variable unless it has been explicitly requested.
24238 * configure.ac (GPG_AGENT_{EXTRA,BROWSER}_SOCK_NAME): New definitions.
24239 * doc/gpg-agent.texi: Update documentation.
24241 w32: Fix STARTTLS on LDAP connections.
24242 + commit 8d37018050373a47566bf8ea0d894da20ed292c7
24243 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix build against
24246 2016-09-29 Werner Koch <wk@gnupg.org>
24248 wks: Partly implement draft-koch-openpgp-webkey-service-02.
24249 + commit 33800280da55a859e08dfa57f29144c89dd1bead
24250 * tools/gpg-wks.h (WKS_RECEIVE_DRAFT2): New.
24251 * tools/wks-receive.c: Include rfc822parse.h.
24252 (struct receive_ctx_s): Add fields PARSER, DRAFT_VERSION_2, and
24253 MULTIPART_MIXED_SEEN.
24254 (decrypt_data): Add --no-options.
24255 (verify_signature): Ditto.
24256 (new_part): Check for Wks-Draft-Version header. Take care of text
24258 (wks_receive): Set Parser and pass a flag value to RESULT_CB.
24259 * tools/gpg-wks-client.c (read_confirmation_request): New.
24260 (main) <aRead>: Call read_confirmation_request instead of
24261 process_confirmation_request.
24262 (command_receive_cb): Ditto. Add arg FLAGS..
24263 (decrypt_stream_status_cb, decrypt_stream): New.
24264 (command_send): Set header Wks-Draft-Version.
24265 * tools/gpg-wks-server.c (struct server_ctx_s): Add field
24267 (sign_stream_status_cb, sign_stream): New.
24268 (command_receive_cb): Set draft flag.
24269 (send_confirmation_request): Rework to implement protocol draft
24272 * tools/gpg-wks.h (DBG_MIME_VALUE, DBG_PARSER_VALUE): New.
24273 (DBG_MIME, DBG_PARSER, DBG_CRYPTO): New. Use instead of a plain
24274 opt.debug where useful.
24275 * tools/gpg-wks-client.c (debug_flags): Add "mime" and "parser".
24276 * tools/gpg-wks-server.c (debug_flags): Ditto.
24278 tools: Convey signeddata also to the part_data callback in mime-parser.
24279 + commit c738f92c195d91662ddc7848cc3c92c7f091f1f8
24280 * tools/mime-parser.c (mime_parser_parse): Factor some code out to ...
24281 (process_part_data): new.
24282 ((mime_parser_parse): Also call process_part_data for signed data.
24284 tools: Allow retrieval of signed data from mime-maker.
24285 + commit f776757ea94542e2f425840dddaf3e65b0ff7757
24286 * tools/mime-maker.c (find_part): New.
24287 (mime_maker_get_part): New.
24289 tools: Change mime-maker to write out CR,LF.
24290 + commit 29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5
24291 * tools/mime-maker.c (struct part_s): Add field PARTID.
24292 (struct mime_maker_context_s): Add field PARTID_COUNTER.
24293 (dump_parts): Print part ids.
24294 (mime_maker_add_header): Assign PARTID.
24295 (mime_maker_add_container): Ditto.
24296 (mime_maker_get_partid): New.
24297 (write_ct_with_boundary): Remove.
24298 (add_header): Strip trailing white spaces.
24299 (write_header): Remove trailing spaces trimming. Add arg BOUNDARY.
24300 Handle emdedded LFs.
24301 (write_gap, write_boundary, write_body): New.
24302 (write_tree): Use new functions.
24304 tools: Simplify the mime-maker container creation.
24305 + commit 95d60c6ce9e8a7a7741553af957978c1f91547c5
24306 * tools/mime-maker.c (struct part_s): Remove field MEDIATYPE.
24307 (release_parts): Ditto.
24308 (dump_parts): Print a body line only if tehre is a body.
24309 (mime_maker_add_header): Check for body or container.
24310 (mime_maker_add_container): Remove arg MEDIATYPE. Change all callers.
24311 (mime_maker_end_container): New.
24313 tools: Give mime parser callbacks access to the rfc822 parser.
24314 + commit 4ac138c84d0f344ca9442f90c96f0e1f76062a4a
24315 * tools/mime-parser.c (mime_parser_context_s): Add field MSG.
24316 (parse_message_cb): Set it.
24317 (mime_parser_rfc822parser): New.
24318 * tools/mime-parser.h: Declare rfc822parse_t for the new prototype.
24320 2016-09-29 Justus Winter <justus@g10code.com>
24322 dirmngr: Fix STARTTLS on LDAP connections.
24323 + commit 9e6f8a55ed04f876635792125858ee76a948802a
24324 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix unfortunate typo.
24326 2016-09-28 Werner Koch <wk@gnupg.org>
24328 gpg: Improve WKD by importing only the requested UID.
24329 + commit cbf2ac66692daa7a324108724698d60d6c7e473f
24330 * g10/keyserver.c: Include mbox-util.h.
24331 (keyserver_import_wkd): Do not use the global import options but
24332 employ an import filter.
24334 gpg: Reject import if an import filter removed all user ids.
24335 + commit 80393661bdfa7ae0288644513575e8a5d708b084
24336 * g10/import.c (any_uid_left): New.
24337 (import_one): Check that a UID is left.
24339 gpg: Make import filter data object more flexible.
24340 + commit c9237bf2ba2c49588576dcece756ebf5fe89aada
24341 * g10/main.h (import_filter_t): New.
24342 * g10/import.c (struct import_filter_s): Declare struct.
24343 (import_keep_uid, import_drop_sig): Replace by ...
24344 (import_filter): new. Adjust all users.
24345 (cleanup_import_globals): Move code to ...
24346 (release_import_filter): new.
24347 (save_and_clear_import_filter): New.
24348 (restore_import_filter): New.
24350 gpg: Make sure that internal key import is done with a binary stream.
24351 + commit 829949f3823c2306022928ce782f9c9d9c5f1cc8
24352 * g10/import.c (import_keys_internal): Open stream in binary mode.
24354 2016-09-27 Justus Winter <justus@g10code.com>
24356 build: Do not link gpg-connect-agent against npth.
24357 + commit 20a16833ee2bb05f735377f705899302bcf2b4d3
24358 * tools/Makefile.am: Do not link gpg-connect-agent against npth.
24360 build: Fix check for resolver library on macOS.
24361 + commit 2e64ccb0f96d615b1eb87e37f230a5d761aa9c36
24362 * configure.ac: Check for the mangled name of 'dn_skipname' first.
24364 common: Correctly handle modules relying on npth.
24365 + commit 2b23a321ac0b07beeac1dfa8d71f223e66c49b71
24366 * common/Makefile.am (common_sources): Drop 'call-gpg.{c,h}'.
24367 (with_npth_sources): New variable.
24368 (libcommonpth_a_SOURCES): Use the new variable.
24370 2016-09-27 NIIBE Yutaka <gniibe@fsij.org>
24372 agent, sm: Set CTX after start_agent.
24373 + commit 4e4843e735f32b5e79a51d8062da55bfaab6ad77
24374 * g10/call-agent.c (agent_keytocard): Assign parm.ctx after start_agent.
24375 * sm/call-agent.c (gpgsm_agent_pksign, gpgsm_scd_pksign)
24376 (gpgsm_agent_readkey, gpgsm_agent_scd_serialno)
24377 (gpgsm_agent_scd_keypairinfo, gpgsm_agent_marktrusted)
24378 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation)
24379 (gpgsm_agent_ask_passphrase, gpgsm_agent_keywrap_key)
24380 (gpgsm_agent_export_key): Likewise.
24382 dirmngr: Removal of no-libgcrypt.o.
24383 + commit 836b72363168cbb0051fc2356f61788468db211c
24384 * dirmngr/Makefile.am (dirmngr_ldap_LDADD): Remove no-libgcrypt.o.
24386 agent: Allow only specific digest size for ECDSA.
24387 + commit 98bc6f480ac973dccce90378dc021a2e24e58704
24388 * agent/pksign.c (do_encode_dsa): Fix validation of digest size.
24390 2016-09-22 Neal H. Walfield <neal@g10code.com>
24392 g10: When adding a user id, make sure the keyblock has been prepared.
24393 + commit df5353b95eefc13135e7df50a7c197f270d6080d
24394 * g10/keyedit.c (keyedit_quick_adduid): Call merge_keys_and_selfsig on
24395 KEYBLOCK before adding the user id.
24396 * tests/openpgp/quick-key-manipulation.scm: Make sure that the key
24397 capabilities don't change when adding a user id.
24398 (key-data): New function.
24400 2016-09-20 Justus Winter <justus@g10code.com>
24402 tests: Add documentation, make interactive debugging possible.
24403 + commit 7e0379a75475abfd15e0623913795779ff0f40d7
24404 * tests/openpgp/README: Add documentation about debugging and
24405 interfacing with GnuPG.
24406 * tests/openpgp/run-tests.scm (test::run-sync): Hand stdin to the
24407 child so that we can use a repl in the tests.
24409 tests: Port the quick key manipulation test to Scheme.
24410 + commit 6c4c0e3ac2aeafba7a2b7c2dd92a18be8aec92b1
24411 * tests/openpgp/Makefile.am (XTESTS): Add new test.
24412 * tests/openpgp/quick-key-manipulation.scm: New file.
24414 tests: Remove list of tests from the test runner.
24415 + commit 49fae88fd170f2bdc12a1794a2637260e3c73a73
24416 * tests/openpgp/run-tests.scm: Drop hardcoded list.
24418 tests: Reduce runtime of excessive test.
24419 + commit 988a04b98d42ff9cc9e62007ebcc0e4c03f4047d
24420 * tests/openpgp/conventional-mdc.scm: Use only two plaintexts when
24421 iterating over all cipher algorithms.
24424 + commit 285d193f1e1464495bce57bd0f323468515b4513
24425 * dirmngr/dns-stuff.c (get_dns_cert): Fix type in fallback code.
24427 2016-09-20 Andre Heinecke <aheinecke@intevation.de>
24429 dirmngr: Open file CRL's in binary mode.
24430 + commit 4644c27514f34f5efc555d43672a25088a611a72
24431 * dirmngr/crlcache.c (crl_cache_load): Open file in binary mode.
24433 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
24435 doc: Fix a xref usage.
24436 + commit b9b4ff857034df51e055ceddce567ca97e94e075
24439 2016-09-20 Ineiev <ineiev@gnu.org>
24441 doc: Do not end section names with "."
24442 + commit 8078d8246fa38c3e478fc9a542117468780ace00
24445 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
24447 doc: minor fix for @xref.
24448 + commit 9c1b3bc25a1b38c4eda31bf12ccc10d94bb05212
24449 * doc/yat2m.c (proc_texi_cmd): Captalize "see" for xref.
24451 2016-09-20 Justus Winter <justus@g10code.com>
24453 doc: Implement simple '@ref'erences.
24454 + commit 91d5e6f805aaf24a3f1f03a95998f757dce04cb2
24455 * doc/yat2m.c (proc_texi_cmd): Handle '@ref'.
24457 2016-09-20 Ineiev <ineiev@gnu.org>
24459 doc: Fix full stops.
24460 + commit 0eaab1af48f600b636183321e4a4e9c6bc361610
24461 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
24462 doc/instguide.texi, doc/scdaemon.texi, doc/specify-user-id.texi,
24463 doc/tools.texi: Fix.
24466 + commit 32bcf8b73ede9c8f1469821a54dedc6be75241d2
24467 * doc/debugging.texi, doc/dirmngr.texi, doc/gpg-agent.texi,
24468 doc/gpg.texi, doc/tools.texi: Fix.
24470 doc: Improve markup.
24471 + commit 377624207e9b2895ce00dfc4d1163d72f349841f
24472 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
24473 doc/howto-create-a-server-cert.texi, doc/scdaemon.texi,
24474 doc/specify-user-id.texi, doc/tools.texi: Fix.
24476 doc: Replace rfc0123 with RFC-0123.
24477 + commit 9d2b7bff12b268638465da222ca7cc9042bba072
24478 * doc/gpg.texi, doc/gpgsm.texi, doc/specify-user-id.texi: Fix.
24480 doc: Add missing description of datafile.
24481 + commit 789916281c25e737d8fb44add5ca61f8fd25de2f
24482 * doc/gpg.texi: Fix.
24484 doc: Replace UTF8 with UTF-8.
24485 + commit 00d6d8bc8772e48b6f200d359e11eb93ab65f51f
24486 * doc/gpg.texi: Fix.
24489 + commit f25e04005af5831053ba194a09e3afa48d1e162b
24490 * doc/dirmngr.texi, doc/gpg.texi, doc/gpgsm.texi,
24491 doc/howto-create-a-server-cert.texi,
24492 doc/scdaemon.texi, doc/tools.texi: Fix.
24494 doc: Eliminate inconsistent UK English.
24495 + commit 825c1dfb3ee4c1704f42eaf064161b9731c20134
24496 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/scdaemon.texi,
24497 doc/tools.texi: Fix.
24499 doc: Use the right reference commands.
24500 + commit f32689f833838a742243e94c900e98f5b59a5811
24501 * doc/debugging.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
24502 doc/tools.texi: Fix.
24504 doc: Fix "Not(e) that you can(not) abbreviate".
24505 + commit 20a27d8a57c4c990fcada4278a1ce2e6fc9043e9
24506 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
24507 doc/scdaemon.texi, doc/tools.texi: Fix.
24510 + commit fa346508fe323e61cf157ee30c13301e1d2117c0
24511 * doc/debugging.texi, doc/dirmngr.texi, doc/glossary.texi
24512 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi
24513 * doc/instguide.texi, doc/opt-homedir.texi, doc/scdaemon.texi
24514 * doc/specify-user-id.texi, doc/tools.texi: Fix.
24516 doc: Fix Martin Hellman's name.
24517 + commit 858af2b3473e436af53470d53cdac334edce9f09
24518 * doc/contrib.texi: Fix.
24520 2016-09-19 Justus Winter <justus@g10code.com>
24522 tests: Refine the repl function.
24523 + commit 884e78efe1f3ba50513bf81c8b4804d22b25eac4
24524 * tests/gpgscm/repl.scm (repl): Add an argument 'environment'.
24525 (interactive-repl): Add an optional argument 'environment'.
24527 tests: Implement interpreter shutdown using exceptions.
24528 + commit 9a0659a65c52378de1c4736a0eddf8518eb20948
24529 * tests/gpgscm/ffi.c (ffi_init): Rename 'exit' to '_exit'.
24530 * tests/gpgscm/ffi.scm (*interpreter-exit*): New variable.
24531 (throw): New function.
24532 (exit): New function.
24534 tests: Correctly handle exceptions in resource handling macros.
24535 + commit 58007e52593e6b0f838de2e464ceeacf22757018
24536 * tests/gpgscm/tests.scm (letfd): Correctly release resources when an
24537 exception is thrown.
24538 (with-working-directory): Likewise.
24539 (with-temporary-working-directory): Likewise.
24540 (lettmp): Likewise.
24542 tests: Refine exception handling.
24543 + commit ab483eff9a8254adf127cdee178e14ba74f0a2b3
24544 * tests/gpgscm/init.scm (catch): Bind all arguments to '*error*' in
24545 the error handler, update and fix comment.
24546 (*error-hook*): Revert to original definition.
24547 * tests/gpgscm/tests.scm (tr:do): Adapt accordingly.
24548 * tests/openpgp/issue2419.scm: Likewise.
24550 tests: Use descriptive temporary file names.
24551 + commit 83a406b38a21d0eeb4963db824a27783c212d2fb
24552 * tests/gpgscm/ffi.c (do_get_isotime): New function.
24553 (ffi_init): Add parameter 'scriptname', bind new function and
24555 * tests/gpgscm/ffi.h (ffi_init): Update prototype.
24556 * tests/gpgscm/main.c (main): Hand in the script name.
24557 * tests/gpgscm/tests.scm (mkdtemp): Use current time and script name
24558 for the names of temporary directories.
24560 2016-09-19 Werner Koch <wk@gnupg.org>
24562 gpg: Fix regression in fingerprint printing.
24563 + commit 998643666c016dbacf10f813c22efc97deadec65
24564 * g10/keylist.c (list_keyblock_print): Do not depend calling
24565 print_fingerprint on opt.keyid_format.
24567 dirmngr: Silence diagnostics about starting housekeeping.
24568 + commit 5bf1facc973eb6e0bfab0f8f17129534dec56e04
24569 * dirmngr/dirmngr.c (housekeeping_thread): Print info only in very
24572 2016-09-19 Justus Winter <justus@g10code.com>
24574 g10: Fix memory leak.
24575 + commit 086d219d96caa3501048aff82a282481e07c195b
24576 * g10/tofu.c (build_conflict_set): Free 'kb_all'.
24578 2016-09-19 Werner Koch <wk@gnupg.org>
24580 doc: Update license information.
24581 + commit 3899041cd2877ce9584c7bd149f232f35a07c399
24582 * tests/fake-pinentries/COPYING: Rename to ...
24583 * COPYING.CC0: this. Add a note on the scope of this license.
24584 * COPYING.LIB: Add a note on the scope of this license.
24585 * AUTHORS (License): Mention CC) license.
24587 gpgscm: Fix gcrypt version check.
24588 + commit 47baeac50ccaaf06dc8b0cebece50f47754de6ca
24589 * tests/gpgscm/main.c (main): Check against required and not installed
24592 gpg: Avoid malloc failure due to no key signatures.
24593 + commit 18bbefa27f9e47e1062ee4d7af09487632795ba7
24594 * g10/keyedit.c (check_all_keysigs): Check early for no key
24595 signatures. Use xtrycalloc.
24597 2016-09-17 NIIBE Yutaka <gniibe@fsij.org>
24599 Fix comment and format.
24600 + commit 7305d27f36148a7fb8c2f4ef5b94774cbd21b18e
24601 * agent/protect-tool.c (main): Fix comment.
24602 * doc/DETAILS (colon listings): Fix list.
24603 * tests/openpgp/multisig.test: Fix comment.
24605 2016-09-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24608 + commit 0d67241e317b172a258a910c02d90639e2b08fce
24609 * NEWS, acinclude.m4, agent/command-ssh.c, agent/command.c,
24610 agent/gpg-agent.c, agent/keyformat.txt, agent/protect-tool.c,
24611 common/asshelp.c, common/b64enc.c, common/recsel.c, doc/DETAILS,
24612 doc/HACKING, doc/Notes, doc/TRANSLATE, doc/dirmngr.texi,
24613 doc/faq.org, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
24614 doc/instguide.texi, g10/armor.c, g10/gpg.c, g10/keyedit.c,
24615 g10/mainproc.c, g10/pkclist.c, g10/tofu.c, g13/sh-cmd.c,
24616 g13/sh-dmcrypt.c, kbx/keybox-init.c, m4/pkg.m4, sm/call-dirmngr.c,
24617 sm/gpgsm.c, tests/Makefile.am, tests/gpgscm/Manual.txt,
24618 tests/gpgscm/scheme.c, tests/openpgp/gpgv-forged-keyring.scm,
24619 tests/openpgp/multisig.test, tests/openpgp/verify.scm,
24620 tests/pkits/README, tools/applygnupgdefaults,
24621 tools/gpg-connect-agent.c, tools/mime-maker.c, tools/mime-parser.c:
24622 minor spelling cleanup.
24624 move some file encodings to UTF-8.
24625 + commit 215180d1ce6c93e2b4969d746c83ac4c055d25ef
24626 * dirmgnr/cdblib.c: comment used unnecesary hyphenation
24627 * dirmngr/crlcache.h: comment was iso-8859-1
24628 * doc/contrib.text: list contributors using UTF-8 (now we can
24629 acknowledge many more people using their preferred orthography)
24631 At least one other files remains in a non-UTF-8 encoding, which i'm
24632 not sure what to do with:
24634 - build-aux/speedo/w32/inst.nsi is ISO-8859-1, but maybe Windows needs
24637 2016-09-16 Neal H. Walfield <neal@g10code.com>
24639 g10: On failure, propagate the return code.
24640 + commit 6e930f0e4077bc7aa3d28b1ba649a82d62427d87
24641 * g10/tofu.c (tofu_register_encryption): If get_trust fails, set RC.
24643 g10: Don't ignore failure. On failure, rollback.
24644 + commit 221b0bd0e5946edaea7135bc3b6f3c5c0fc6dbca
24645 * g10/tofu.c (tofu_set_policy): If record_binding fails, fail. If the
24646 function fails, rollback the transaction.
24648 g10: Load the key block if the supplied user id list is NULL.
24649 + commit c2e563421e4fd4f0910642aa7b171bcf0b374b01
24650 * g10/tofu.c (tofu_register_encryption): Load the key block if
24651 USER_ID_LIST is NULL.
24653 g10: Use the accessor functions for accessing and comparing key ids.
24654 + commit af196342bf44ce6dc42111d37539dec7ee3b3d82
24655 * g10/tofu.c (get_trust): Use the pk_main_keyid accessor function.
24656 (tofu_register_signature): Likewise.
24657 (tofu_register_encryption): Likewise.
24658 (tofu_set_policy): Likewise and also use pk_keyid and keyid_cmp.
24660 2016-09-16 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24662 po: convert localizations to UTF-8.
24663 + commit 4ab8107063b641ed74fc4c9bf98304bcea573178
24664 * po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po: convert to UTF-8
24666 This was an automated conversion process, using:
24668 for x in po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po; do
24669 cs=$(grep charset= $x | cut -f2 -d= | cut -f1 -d\\)
24670 iconv -f $cs -t UTF-8 < $x >$x.tmp
24671 sed "s/$cs/UTF-8/" < $x.tmp > $x
24675 2016-09-16 NIIBE Yutaka <gniibe@fsij.org>
24677 scd: Add support of ECC pubkey attribute.
24678 + commit dd06d33655bc872a6310edac8e448419479d3312
24679 * scd/app-openpgp.c (ECC_FLAG_PUBKEY): New.
24680 (send_key_attr, get_public_key, ecc_writekey, do_auth, do_decipher)
24681 (parse_algorithm_attribute): Check ECC_FLAG_DJB_TWEAK.
24682 (build_ecc_privkey_template): Add ECC_Q and ECC_Q_LEN.
24683 Support offering public key when ECC_FLAG_PUBKEY sets.
24684 (ecc_writekey): Supply ECC_Q and ECC_Q_LEN.
24685 (parse_algorithm_attribute): Parse pubkey-required byte.
24687 2016-09-15 Justus Winter <justus@g10code.com>
24689 g10: Add missing header.
24690 + commit c0e620cee86b5dacc941964bd187bba0dfa90eea
24691 * g10/trustdb.c: Include 'mbox-util.h'.
24693 2016-09-15 Neal H. Walfield <neal@g10code.com>
24695 g10: Only consider bindings matching the signer's user id.
24696 + commit 3f7f7447316f57d002d683af4ad30ac5730b9ebe
24697 * g10/trustdb.c (tdb_get_validity_core): If the signer's user id
24698 subpacket is present, only consider matching user ids.
24700 g10: Don't include the signature when printing a binding's validity.
24701 + commit dcc64663051f8af82abc11e2699649c3b35936db
24702 * g10/mainproc.c (check_sig_and_print): When printing information
24703 about a binding don't include the current signature.
24705 2016-09-15 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24707 tests/fake-pinentries: fake pinentries for downstream developers.
24708 + commit 3248182d1b5a03098ee797c980fa0f0ec06e716f
24709 * tests/fake-pinentries/README.txt and
24710 tests/fake-pinentries/fake-pinentry.{sh,py,pl,php}}: New public
24711 domain (CC0) files to encourage better test suite practices from
24712 downstream developers.
24713 * tests/fake-pinentries/COPYING (new): a copy of
24714 https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
24716 spelling: conenction should be connection.
24717 + commit 167273ee9d3c04f29835aa2d12fde52eebf61efb
24718 * dirmngr/server.c, sm/server.c: s/conenction/connection/
24720 spelling: correct achived to achieved.
24721 + commit 7fafc3c49901c118b47d4d13a41fb3575c1f9e4b
24724 2016-09-15 NIIBE Yutaka <gniibe@fsij.org>
24726 tests/gpgscm: Fix use of pointer.
24727 + commit 68eb5fbd37c31ed7c0c916656131eea7bb58d13d
24728 * tests/gpgscm/scheme-private.h (struct scheme): Use (void *) for
24730 * tests/gpgscm/scheme.c (alloc_cellseg): Use (void *) for cp. Use
24731 (void *) for coercion of address calculation.
24733 2016-09-14 Neal H. Walfield <neal@g10code.com>
24735 g10: Fix whitespace.
24736 + commit 9799b5d18f8fd29872b75c4d70d370af2b4e9a89
24737 * g10/tofu.c (show_statistics): Fix whitespace.
24739 g10: Correctly compute the euclidean distance.
24740 + commit 05b2b13efd8ecea86d31af863cbf82c8b38dc94f
24741 * g10/tofu.c (write_stats_status): Correctly compute the euclidean
24743 (show_statistics): Likewise.
24745 g10: Change the default TOFU policy for UTKs to good.
24746 + commit ca91caabb5798f67c69ee96657c7cb402e7db0df
24747 * g10/tofu.c (get_trust): Change the default TOFU policy for UTKs to
24750 g10: Add missing static qualifier.
24751 + commit 9d62b79e62ef2690e6522fe1621140fbfc10695c
24752 * g10/tofu.c (cross_sigs): Add missing static qualifier.
24754 g10: Default to the "good" TOFU policy for keys signed by a UTK.
24755 + commit 8df8aa13c795e400324a782fbaea578c8f2a1398
24756 * g10/tofu.c (signed_by_utk): New function.
24757 (get_trust): If a key is signed by an ultimately trusted key, then
24758 set any bindings to good.
24760 2016-09-14 Werner Koch <wk@gnupg.org>
24762 gpg: Emit a new error status line in --quick-adduid.
24763 + commit f4e11f2e9e8f58fd5f0df3148e6d7ccef0f84232
24764 * g10/keyedit.c (menu_adduid): Emit an ERROR status for an existsing
24767 gpg: Allow use of "default" algo for--quick-addkey.
24768 + commit 0fd332bc1f6f1f10c96da0cc91203925d3ac81eb
24769 * g10/keygen.c (quick_generate_keypair): Write a status error.
24770 (parse_algo_usage_expire): Set a default curve.
24772 2016-09-13 Werner Koch <wk@gnupg.org>
24774 gpg: Improve usability of --quick-gen-key.
24775 + commit 30a011cfd6ec172cc460e59f0904a26fe2d68632
24776 * g10/keygen.c (FUTURE_STD_): New constants.
24777 (parse_expire_string): Handle special keywords.
24778 (parse_algo_usage_expire): Allow "future-default". Simplify call to
24779 parse_expire_string.
24780 (quick_generate_keypair): Always allow an expiration date. Replace
24781 former "test-default" by "future-default".
24783 2016-09-12 Werner Koch <wk@gnupg.org>
24785 gpg: Avoid mixing up status and colon line output.
24786 + commit 31fc420727f45dd081f8ad5d056da6675dad29f2
24787 * g10/keylist.c (list_keyblock_colon): Avoid calling functions which
24788 trigger a status line output before having printed a LF.
24790 2016-09-12 Justus Winter <justus@g10code.com>
24792 tests: Simplify tofu test.
24793 + commit aa81e32df7189c3eb44d4c602fd63f5b3f6a9e49
24794 * tests/openpgp/tofu.scm: Simplify now that we only have one db
24797 2016-09-10 Ben Kibbey <bjk@luxsci.net>
24799 Portability build fix.
24800 + commit eddcba038025cdbd58aaf67cafd6d83f0ea042d5
24801 * kbx/Makefile.am: Add NETLIBS.
24802 * dirmngr/Makefile.am: Ditto for dirmngr_ldap.
24804 Fix symbol conflict.
24805 + commit 937ec53eff290c3d916faebc23218c9272671c02
24806 * g10/gpgcompose.c: Rename struct siginfo to signinfo.
24808 2016-09-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24810 gpg: print fingerprint regardless of keyid-format.
24811 + commit d757009a24eb856770fc3a3729e2f21f54d2a618
24812 * g10/keylist.c (print_fingerprint): use compact format independent of
24813 keyid-format; (print_key_line): always print the fingerprint
24815 2016-09-08 Werner Koch <wk@gnupg.org>
24817 gpg: Remove option --yes from gpgv.
24818 + commit 30a9f53a0f2af6b98c26b8ddc0b4b87c38416f2a
24819 * g10/gpgv.c (opts): Remove --yes.
24820 (main): Always set opt.ANSWER_YES.
24822 gpg: Add options --output and --yes to gpgv.
24823 + commit a8363b7d0bcc77b55226d5fe8f972214c968ddc3
24824 * g10/gpgv.c (oOutput, oAnswerYes): New.
24825 (opts): Add --output and --yes.
24826 (main): Implement options.
24828 gpg: Make --output work with --verify.
24829 + commit bbe940c095f2bca7a1ca5f8e68ca1af98350a885
24830 * g10/mainproc.c (proc_plaintext): Handle opt.output.
24832 2016-09-07 Werner Koch <wk@gnupg.org>
24834 dirmngr: Terminate on deletion of the socket file (Linux only).
24835 + commit 6308c300196ae85fd82ed383217219e0206640a4
24836 * dirmngr/dirmngr.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
24837 (oDisableCheckOwnSocket): New.
24838 (opts): Add --disable-check-own-socket.
24839 (disable_check_own_socket): New var.
24840 (parse_rereadable_options): Set that var.
24841 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
24842 (handle_connections) [HAVE_INOTIFY_INIT]: New.
24844 2016-09-07 Neal H. Walfield <neal@g10code.com>
24846 g10: Use the time a signature was seen, not the embedded time, for stats
24847 + commit bde29a46cedbbd2a5dfe7c91a6277c0a4ff50825
24848 * g10/tofu.c (ask_about_binding): Use the time that a signature was
24849 seen, not allegedly generated, when generating statistics.
24851 tests: Don't use --tofu-db-format.
24852 + commit a937eef2d4e80cd43095802176d3db5e7fd94008
24853 * tests/openpgp/tofu.scm: Remove use of --tofu-db-format, which is
24856 g10: Check for a new binding a bit later.
24857 + commit ee06b3f7889bd99c28ac68f4781bda77d67eed00
24858 * g10/tofu.c (build_conflict_set): Check for the current key after
24859 looking for conflicts and removing any '!'.
24861 g10: Change TOFU code to respect --faked-system-time.
24862 + commit 7b3e8572e3bb8a65d20577a48009251fdc7b1910
24863 * g10/tofu.c (record_binding): New parameter now. Update callers.
24864 Don't use SQLite's strftime('%s','now') to get the current time, use
24866 (ask_about_binding): Likewise.
24867 (get_trust): New parameter now. Update callers.
24868 (show_statistics): Likewise.
24869 (tofu_register_signature): Don't use SQLite's strftime('%s','now') to
24870 get the current time, use gnupg_get_time().
24871 (tofu_register_encryption): Likewise.
24873 g10: Use the correct conversion function.
24874 + commit 56c18408d4955713d9c4e634367c7912d6564651
24875 * g10/tofu.c (show_statistics): Use string_to_ulong, not
24878 2016-09-07 Werner Koch <wk@gnupg.org>
24880 gpg: Fix format string issues in tofu.
24881 + commit 97a67d42dc946b2d6ed81723d86e37002b5931b3
24882 * g10/tofu.c (write_stats_status): Use ulong for MESSSAGES. Fix
24883 format strings. Simplify by using the new write_status_printf.
24885 2016-09-06 Neal H. Walfield <neal@g10code.com>
24887 g10: Make sure some functions are passed a primary key.
24888 + commit 13ddc17ddb266d74033d5739fec932034fa85c72
24889 * g10/tofu.c (get_trust): Make sure the caller provides a primary key.
24890 (tofu_register_signature): Likewise.
24892 g10: Tweak TOFU's verbosity.
24893 + commit ee19eacd1d688d3a98cd66e5ef2f42079eb829f1
24894 * g10/tofu.c (time_ago_str): Only show the most significant unit.
24895 * g10/tofu.c (show_statistics): Tweak the output.
24897 g10: Only show the TOFU warning once per key.
24898 + commit 67cef405cbfad2e53fc388dd6591ee4f7cb0d973
24899 * g10/tofu.c (show_statistics): Return whether to call show_warning.
24900 Move the warning from here...
24901 (show_warning): ... to this new function.
24902 (tofu_get_validity): If show_statistics returns a non-zero value, call
24905 g10: Record and show statistics for encrypted messages when using TOFU.
24906 + commit 875ac9216f1383851a82bd240cadb17c7112f6a8
24907 * g10/tofu.c: Include "sqrtu32.h".
24908 (struct tofu_dbs_s.s): Rename get_trust_gather_other_keys to
24909 get_trust_gather_signature_stats. Add new field
24910 get_trust_gather_encryption_stats.
24911 (initdb): Create the encryptions table.
24912 (ask_about_binding): Show the encryption statistics too.
24913 (tofu_register): Rename from this...
24914 (tofu_register_signature): ... to this and update callers.
24915 (tofu_register_encryption): New function.
24916 (write_stats_status): Add parameters encryption_count,
24917 encryption_first_done and encryption_most_recent. Update callers.
24918 Compute the trust using the euclidean distance of the signature and
24919 signature count. Compare with twice the threshold. Include
24920 encryption count information in the TFS and TOFU_STATS lines.
24921 (show_statistics): Also get information about the encrypted messages.
24922 * g10/trustdb.c (tdb_get_validity_core): Use it.
24924 g10: Simplify the binding statistics shown for a TOFU conflict.
24925 + commit a9e6db6c7e23d9f4b8de59f5cabbf9eb6a59e626
24926 * g10/tofu.c (ask_about_binding): Simplify binding statistics.
24928 2016-09-06 Justus Winter <justus@g10code.com>
24930 gpgscm: Fix detection of unbalanced parenthesis.
24931 + commit f2249b737055f84842778285bbeff5e61fa55225
24932 * tests/gpgscm/main.c (load): Print error message.
24933 * tests/gpgscm/scheme.c (opexe_0): Correctly report nesting level when
24937 + commit 213b3cf465fb091dc0a205d1a08b88b950ffb85f
24938 * tests/openpgp/multisig.scm: Add missing parenthesis.
24940 2016-09-06 Werner Koch <wk@gnupg.org>
24942 agent: Terminate on deletion of the socket file (Linux only).
24943 + commit 650356148af43ea619bec12e599a4981b147d5f8
24944 * configure.ac (AC_CHECK_FUNCS): Chec for inotify_init.
24945 * agent/gpg-agent.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
24946 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
24947 (handle_connections) [HAVE_INOTIFY_INIT]: New.
24949 2016-09-05 Justus Winter <justus@g10code.com>
24951 tests: Speed up the test suite.
24952 + commit 46c4333c372f0e1ad2aadc411490c2a330b4c5a6
24953 * tests/openpgp/run-tests.scm (test::run-sync): Pass additional
24954 arguments to the test.
24955 (test::run-sync-quiet): Likewise.
24956 (test::run-async): Likewise.
24957 (run-tests-{parallel,sequential}-isolated): Create a tarball of the
24958 gnupghome, then extract it for each test.
24959 * tests/openpgp/setup.scm: Refactor into functions, add an interface
24960 to tar-up the created environment, and untar it multiple times.
24962 common: Restore a simpler variant of 'gnupg_wait_process'.
24963 + commit c97bde2dfeab23a84b4788d998934ac49ff5b797
24964 * common/exechelp-posix.c (gnupg_wait_process): Use the code prior to
24967 common: Fix error handling.
24968 + commit 845e2cc201d6a2cdb151e39e29516d26cb49311c
24969 * common/exechelp-posix.c (store_result): Use xtrymalloc.
24970 (gnupg_wait_processes): Likewise, and check result.
24972 2016-09-05 Neal H. Walfield <neal@g10code.com>
24974 g10: Don't add user attributes to the TOFU DB.
24975 + commit 9082bde01cc18e32504ce39d55ea6dd3c05dddec
24976 * g10/trustdb.c (tdb_get_validity_core): Skip user attributes.
24978 2016-09-05 Werner Koch <wk@gnupg.org>
24980 agent: Silence --debug IPC output for connections from self.
24981 + commit 0b99d1fd2a80b8efaacc731027d2b2ecd9eca699
24982 * agent/command.c (server_local_s): Add fields 'greeting_seen' and
24983 'connect_from_self'.
24984 (io_monitor): Do not log connections from self.
24985 (start_command_handler): Set flag 'connect_from_self'.
24986 * agent/gpg-agent.c (check_own_socket_thread): Disable logging.
24987 (do_start_connection_thread): Do not log conection start and
24988 termination if IPC debugging is enabled.
24990 agent: Small improvement of the server's local state.
24991 + commit 2eeb5551c37659fdd59e8537fc77a9e7fb6a9204
24992 * agent/command.c (sserver_local_s): Change flags to use only one bit.
24993 (option_handler): Make an atoi return 1 or 0.
24995 2016-09-05 Neal H. Walfield <neal@g10code.com>
24997 g10: Refactor cross sig check code.
24998 + commit 1f1f56e606c1cb28eec68c60bd8bcb7ab30805de
24999 * g10/tofu.c (BINDING_NEW): New enum value.
25000 (BINDING_CONFLICT): Likewise.
25001 (BINDING_EXPIRED): Likewise.
25002 (BINDING_REVOKED): Likewise.
25003 (ask_about_binding): Move cross sig check from here...
25004 (get_trust): ... and the conflict set building from here...
25005 (build_conflict_set): ... to this new function.
25006 (format_conflict_msg_part1): Replace parameter conflict with
25007 conflict_set. Drop parameter fingerprint. Update callers.
25008 (ask_about_binding): Drop unused parameter conflict and redundant
25009 parameter bindings_with_this_email_count. Rename parameter
25010 bindings_with_this_email to conflict_set. Update callers.
25012 2016-09-05 Justus Winter <justus@g10code.com>
25014 tests: Update README.
25015 + commit 65a7563edbbab8f93fe901f932065687508788de
25016 * tests/openpgp/README: Update.
25018 tests: Pass flags to test driver.
25019 + commit 059c79d8b447a3baa9ad0b4d3367bdb64dd2ef3b
25020 * tests/openpgp/Makefile.am (xcheck): Pass flags to 'run-tests.scm'.
25022 common: Improve waiting for processes on POSIX.
25023 + commit e33111fcdac08ed2ddfbdf59b1f790569b42f695
25024 * common/exechelp-posix.c (struct terminated_child): New definition.
25025 (terminated_children): New variable.
25026 (store_result): New function.
25027 (get_result): Likewise.
25028 (gnupg_wait_process): Store results that were not requested and
25029 consider previously stored results.
25031 waitpid(2) may return information about terminated children that we
25032 did not yet request, and there is no portable way to wait for a
25033 specific set of children. As a workaround, we store the results of
25034 children for later use.
25036 2016-09-05 Werner Koch <wk@gnupg.org>
25038 dirmngr: Exclude D lines from the IPC debug output.
25039 + commit de623474db3ba402c9bbd872ab6f932f46cbdde9
25040 * dirmngr/dirmngr.h: Include asshelp.h.
25041 * dirmngr/server.c (server_local_s): Add inhibit_dara_logging fields.
25042 (data_line_write): Implement logging inhibit.
25043 (data_line_cookie_close): Print non-logged D lines.
25044 (cmd_wkd_get, cmd_ks_get, cmd_ks_fetch): Do not log D lines.
25045 (dirmngr_assuan_log_monitor): New.
25046 * dirmngr/dirmngr.c (main): Register monitor function.
25048 common: Add an assuan logging monitor.
25049 + commit 0ac671f8a2b65a4b339f615c6420287a549779fa
25050 * common/asshelp.c (my_log_monitor): New var.
25051 (my_libassuan_log_handler): Run that monitor.
25052 (setup_libassuan_logging): Add arg to set a log monitor and change all
25055 gpg: New export filter drop-subkey.
25056 + commit 0a4a03e5310946b0866a0f6a34031eda7a240162
25057 * g10/import.c (impex_filter_getval): Add properties for key packets.
25058 * g10/export.c (export_drop_subkey): New var.
25059 (cleanup_export_globals): Release that var.
25060 (parse_and_set_export_filter): Add filter "drop-subkey".
25061 (apply_drop_subkey_filter): New.
25062 (do_export_stream): Run that filter.
25064 common: Add string operator gt,ge,le,lt to recsel.
25065 + commit 959cd8903fd012e63dbb156db56708dd3934b5df
25066 * common/recsel.c (recsel_parse_expr): Add them.
25067 (recsel_dump): Print them.
25068 (recsel_select): Evaluate them.
25070 gpg: Use a common filter_getval for import and export.
25071 + commit c8e0d37f4152d1341ef562a190fce93a0386a759
25072 * g10/import.c (filter_getval): Rename to ...
25073 (impex_filter_getval): this. Make global.
25074 (apply_keep_uid_filter, apply_drop_sig_filter): Adjust.
25075 * g10/export.c (filter_getval): Remove.
25076 (apply_drop_sig_filter): Use impex_filter_getval.
25078 2016-09-03 NIIBE Yutaka <gniibe@fsij.org>
25080 scd: Fix an action after card removal.
25081 + commit f9e49c80e706a27d5e30d4b3237ff26367a67130
25082 * scd/command.c (update_card_removed): Call apdu_close_reader here.
25084 2016-09-02 Werner Koch <wk@gnupg.org>
25086 wks: Add framework for policy flags.
25087 + commit 46362cbc0e2260e989820795a6e4245c72335172
25088 * tools/call-dirmngr.c (wkd_get_policy_flags): New.
25089 * tools/gpg-wks.h (struct policy_flags_s, policy_flags_t): New.
25090 * tools/wks-util.c (wks_parse_policy): New.
25091 * tools/gpg-wks-client.c (command_send): Get the policy flags to show
25093 * tools/gpg-wks-server.c (get_policy_flags): New.
25094 (process_new_key): get policy flag and add a stub for "auth-submit".
25095 (command_list_domains): Check policy flags.
25097 dirmngr: Add --policy-flags option to WKD_GET.
25098 + commit 505ee45106d6aa2902bbdd6326f8eb7527c273c4
25099 * dirmngr/server.c (cmd_wkd_get): Add new option.
25101 common: Check read errors in name-value.c.
25102 + commit fc445b36fafc8a4cc3ce5a675ac42df7a9d9a02a
25103 * common/name-value.c: Check for read errors.
25105 2016-09-02 NIIBE Yutaka <gniibe@fsij.org>
25107 scd: Release the card reader after card removal.
25108 + commit 8fe81055762d9c9e6f03fb7853a985c94ef73ac3
25109 * scd/command.c (update_reader_status_file): Call apdu_close_reader.
25111 scd: Clean up unused shutdown method.
25112 + commit d1ae7103352fbda2a05f098379cd3043a0ab5566
25113 * scd/apdu.c (shutdown_ccid_reader, apdu_shutdown_reader): Remove.
25114 (reset_ccid_reader): Don't set shutdown_reader.
25115 * scd/ccid-driver.c (ccid_shutdown_reader): Remove.
25117 agent: invoke scdaemon with --homedir.
25118 + commit 8b6c0bae33bdc36892f4595806665ce61f77dfd2
25119 * agent/call-scd.c (start_scd): Supply --homedir option when it's not
25122 po: Update Japanese translation.
25123 + commit afdfc954b35370fbf03aaf8dc0e496410923aa4e
25126 2016-09-01 Neal H. Walfield <neal@g10code.com>
25128 g10: End transaction earlier.
25129 + commit 85fad6c34c08b2850580e0644faba62d3a501b84
25130 * g10/tofu.c (ask_about_binding): End the transaction earlier.
25132 g10: Don't consider cross-signed keys to be in conflict.
25133 + commit b410a3cb7683fc7c2a253e23130c44df42a6203c
25134 * g10/tofu.c (cross_sigs): New function.
25135 (ask_about_binding): If apparently conflicting keys are cross signed,
25136 then don't mark them as conflicting.
25138 2016-09-01 Werner Koch <wk@gnupg.org>
25140 gpg: Avoid homedir creation by --list-config.
25141 + commit 38d369de13acb95208a0ed8d1cf82ac19173688f
25142 * g10/gpg.c (main): Do not register a key for the list config
25145 gpg: Simplify code to print VALIDSIG.
25146 + commit fde9fa81d3d3b25a929b532cc1960d9d9f454a0c
25147 * g10/mainproc.c (check_sig_and_print): Use hexfingerprint and
25148 write_status_printf.
25150 gpg: Add new function write_status_printf.
25151 + commit 6bdadae00512b4907826f6754cdb220d06e1ac6d
25152 * g10/cpr.c (write_status_printf): New.
25154 gpg: Fix printing of pubkey algo in --verbose signature verify.
25155 + commit 37e3c897252babc203447be9d2f286a4507875ad
25156 * g10/sig-check.c (check_signature2): Replace arg PK by R_PK and
25157 change the semantics. Also clear the other R_ args on function entry,
25158 use gpg_error() and change retturn type to gpg_error_t.
25159 * g10/mainproc.c (do_check_sig): Add arg R_PK.
25160 (list_node): Pass NULL for new arg.
25161 (check_sig_and_print): Rework to make use of the returned PK.
25163 2016-09-01 Neal H. Walfield <neal@g10code.com>
25165 g10: When asking about a TOFU binding conflict, default to unknown.
25166 + commit 3d44e5e8a8d1d8bf6cf5d387f50d75f84d804412
25167 * g10/tofu.c (ask_about_binding): Default to unknown.
25169 g10: Add support for TRUST_NEVER.
25170 + commit f2e5cb6ffb55e49a05d452cd85e45f6f67c20abb
25171 * g10/pkclist.c (do_we_trust): Handle TRUST_NEVER, which can be
25172 returned by the TOFU trust model.
25173 (do_we_trust_pre): Print a different message if TRUSTLEVEL is
25175 (check_signatures_trust): Improve comment.
25178 + commit 0cb0ea1633955fb7acd33fe993a4ae4e96e83ae3
25179 * g10/tofu.c (show_statistics): Improve the text (key and user id, not
25182 g10: Remove unused parameter.
25183 + commit 00c2850393ecc320f591f511c3534286964780c2
25184 * g10/tofu.c (show_statistics): Remove unused parameter sig_exclude.
25187 2016-09-01 Werner Koch <wk@gnupg.org>
25189 gpg: Copy the correct digest for use by TOFU.
25190 + commit 3e67b50490aef087b5769bb35145d23f6657780f
25191 * g10/mainproc.c (do_check_sig): Use the current digest algo.
25193 2016-09-01 Neal H. Walfield <neal@g10code.com>
25195 g10: Be careful to not be in a transaction during long operations.
25196 + commit 4cbd2a690c5e5ed2dff49c1f4fc867b31fca689a
25197 * g10/tofu.c (begin_transaction): New parameter only_batch. If set,
25198 only start a batch transaction if there is none and one has been
25199 requested. Update callers.
25200 (tofu_suspend_batch_transaction): New function.
25201 (tofu_resume_batch_transaction): Likewise.
25202 (ask_about_binding): Take a ctrl_t, not a tofu_dbs_t. Update
25203 callers. Gather statistics within a transaction. Suspend any batch
25204 transaction when getting user input.
25205 (get_trust): Take a ctrl_t, not a tofu_dbs_t. Update callers.
25206 Enclose in a transaction.
25207 (tofu_get_validity): Use a batch transaction, not a normal
25210 2016-09-01 Werner Koch <wk@gnupg.org>
25212 tests: Run test requiring the network only in maintainer-mode.
25213 + commit babeb6f8a9b1f8341652145bad58be6cd49e0712
25214 * dirmngr/Makefile.am (noinst_PROGRAMS, TESTS): Add module_net_tests.
25215 (module_tests): Move t-dns-test to ...
25216 (module_net_tests): here.
25218 2016-08-31 Werner Koch <wk@gnupg.org>
25220 wks: Send a final message to the user.
25221 + commit 04c042f3f2a631bc6e772c33f8da5e7aa7b1902a
25222 * tools/gpg-wks-server.c (send_congratulation_message): New.
25223 (check_and_publish): Call it.
25225 wks: Relax permission check for the top directory.
25226 + commit e4eac16330449f3893c11820c15e07d58fb807ff
25227 * tools/gpg-wks-server.c: Allow S_IXOTH for the top directory.
25229 2016-08-31 Neal H. Walfield <neal@g10code.com>
25231 g10: On a TOFU conflict, show whether the uids are expired or revoked.
25232 + commit edfb6934caf16c6afcfd82d684d8ae9c79674d10
25233 * g10/tofu.c (struct signature_stats): Add fields is_expired and
25235 (signature_stats_prepend): Clear *stats when allocating it.
25236 (ask_about_binding): Also show whether the user ids are expired or
25239 doc: Add a help text for tofu.conflict.
25240 + commit b69b2cb082e39a7eb56082fa80219f6f14fbd2b4
25241 * doc/help.txt (.gpg.tofu.conflict): New help text.
25243 g10: Always trust ultimately trusted keys.
25244 + commit 28c235ae757e9036b0b96efc28931fa5cc74f7ee
25245 * g10/tofu.c (get_trust): Always return TRUST_ULTIMATE for ultimately
25248 g10: Fix error detection.
25249 + commit 5b48960a8a2555db7bf992261de9e922838c9913
25250 * g10/tofu.c: first_seen == 0 is not an error.
25252 g10: Update a key's TOFU policy in a transaction.
25253 + commit e4d5e3cb0d10e8f77c7100d42cfdb32051de1c18
25254 * g10/tofu.c (tofu_set_policy): Do the update in a transaction.
25255 * g10/gpg.c (main): Do a TOFU policy update in a batch transaction.
25257 g10: Fix the show old policy functionality when changing a TOFU policy.
25258 + commit 247eef005cf4c34e9a82227e4ab7823e04911be4
25259 * g10/tofu.c (record_binding): Fix the show old policy functionality.
25261 g10: Drop unused argument.
25262 + commit 70df5a8fd781d8774d835384ca28c4d8518bb9d0
25263 * g10/tofu.c (begin_transaction): Remove unused option only_batch.
25265 gpg: Move state local to tofu.c to a private structure.
25266 + commit 268f6b7a3403d036882b4af384ba7ab2f8c8355f
25267 * g10/gpg.h (struct server_control_s.tofu): Move fields in_transaction
25268 and batch_update_started from here...
25269 * g10/tofu.c (struct tofu_dbs_s): ... to here.
25271 gpg: Avoid name spaces clash with future sqlite versions (2).
25272 + commit b8184d2d74e5ddd5eb68836b53fe5568110e14dd
25273 * g10/gpgsql.h (gpgsql_arg_type): Rename SQLITE_ARG_END to
25274 GPGSQL_ARG_END, SQLITE_ARG_INT to GPGSQL_ARG_INT, SQLITE_ARG_LONG_LONG
25275 to GPGSQL_ARG_LONG_LONG, SQLITE_ARG_STRING to GPGSQL_ARG_STRING, and
25276 SQLITE_ARG_BLOB to GPGSQL_ARG_BLOB.
25278 2016-08-31 Werner Koch <wk@gnupg.org>
25280 gpg: Fix regression in gpgv's printing of the keyid.
25281 + commit 76304a971fe507ea659b952932ea899463ab7166
25282 * g10/keyid.c (keystr): Take care of KF_NONE != KF_DEFAULT.
25284 2016-08-30 Neal H. Walfield <neal@g10code.com>
25286 g10: Improve TOFU batch update code.
25287 + commit 371ae66e9d5c7524431773c4a479fcae1ea3b652
25288 * g10/gpg.h (tofu): Rename field batch_update_ref to
25289 batch_updated_wanted.
25290 * g10/tofu.c (struct tofu_dbs_s): Rename field batch_update to
25291 in_batch_transaction.
25292 (begin_transaction): Only end an extant batch transaction if we are
25293 not in a normal transaction. When ending a batch transaction, really
25294 end it. Update ctrl->tofu.batch_update_started when starting a batch
25296 (end_transaction): Only release a batch transaction if ONLY_BATCH is
25297 true. When releasing a batch transaction, assert that there is no
25298 open normal transaction. Only allow DBS to be NULL if ONLY_BATCH is
25300 (tofu_begin_batch_update): Don't update
25301 ctrl->tofu.batch_update_started.
25302 (opendbs): Call end_transaction unconditionally.
25304 g10: If a key has no valid user ids, change TOFU to return TRUST_NEVER.
25305 + commit d0451440c036106895a291f9ca1c53c2d5159f8f
25306 * g10/tofu.c (tofu_get_validity): If a key has no valid (non-expired)
25307 user ids, change TOFU to return TRUST_NEVER.
25309 g10: Change tofu_register & tofu_get_validity to process multiple uids.
25310 + commit 6052c147091935fc0321ba24f4a44146df70ef01
25311 * g10/tofu.c (tofu_register): Take a list of user ids, not a single
25312 user id. Only register the bindings, don't compute the trust. Thus,
25313 change return type to an int and remove the may_ask parameter. Update
25315 (tofu_get_validity): Take a list of user ids, not a single user id.
25316 Update callers. Observe signatures made by expired user ids, but
25317 don't include them in the trust calculation.
25319 g10: Support nested transactions on the TOFU DB.
25320 + commit 33e97813d72996d22a295773c64261f5588ce9dd
25321 * g10/gpg.h (struct server_control_s): New field in_transaction.
25322 * g10/tofu.c (struct tofu_dbs_s): Remove fields savepoint_inner and
25323 savepoint_inner_commit.
25324 (begin_transaction): Increment CTRL->TOFU.IN_TRANSACTION. Name the
25325 savepoint according to the nesting level.
25326 (end_transaction): Name the savepoint according to the nesting level.
25327 Decrement CTRL->TOFU.IN_TRANSACTION.
25328 (rollback_transaction): Likewise. Only ever rollback a non-batch
25330 (opendbs): Assert that there are no outstanding transactions.
25332 g10: Print the info text in more situations.
25333 + commit 4c2abb221b29c9e8e0876fe986472b562ee1c99f
25334 * g10/tofu.c (ask_about_binding): Print the info text when the policy
25335 is ask and there are multiple bindings with the email address.
25337 g10: Print the formatted text.
25338 + commit 0858f141a8b8d0c098a0c6097176b7225c4a9db8
25339 * g10/tofu.c (ask_about_binding): Print the formatted text, not the
25342 g10: When showing a user id's trust, pass the current signature.
25343 + commit 8dda861ad80228da76cd5c97467008c87b8b6eee
25344 * g10/mainproc.c (check_sig_and_print): Consistently pass SIG to
25347 2016-08-29 Werner Koch <wk@gnupg.org>
25349 w32: Fix build regression due to 2aa0701.
25350 + commit 8b3e691ffbaaa218d309d5aaf8f37532308558ff
25351 * common/logging.c (fun_writer): Always declare 'name_for_err'.
25353 gpgconf: Print the plain socket directory with --list-dirs.
25354 + commit 8e3fa5a4b205c534de2142e5d071712f957cf06a
25355 * tools/gpgconf.c (list_dirs): Add plain socketdir out.
25357 common: Add a default socket name feature.
25358 + commit 2aa0701013f703ad93e17da3345c493c08aa04ee
25359 * common/logging.c (log_set_socket_dir_cb): New.
25360 (socket_dir_cb): New.
25361 (set_file_fd): Allow "socket://".
25362 (fun_writer): Implement default socket name.
25363 * common/init.c (_init_common_subsystems): Register default socket.
25365 gpg: Make decryption of -R work w/o --try-secret-key or --default-key.
25366 + commit bdbd03608b6f508ac4732f9986a046de8a85a311
25367 * g10/getkey.c (enum_secret_keys): At state 3 enumerate the keys in all
25368 cases not just when --try-all-secrets is used.
25370 2016-08-25 Werner Koch <wk@gnupg.org>
25372 gpg: Fix false negatives in Ed25519 signature verification.
25373 + commit 0a5a854510fda6e6990938a3fca424df868fe676
25374 * g10/pkglue.c (pk_verify): Fix Ed25519 signatrue values.
25375 * tests/openpgp/verify.scm (msg_ed25519_rshort): New
25376 (msg_ed25519_sshort): New.
25377 ("Checking that a valid Ed25519 signature is verified as such"): New.
25379 common: Rename an odd named function.
25380 + commit 74a082bc10960b2d65d4d1e31152f988a40a2225
25381 * common/openpgp-oid.c (oid_crv25519): Rename to oid_cv25519.
25382 (openpgp_oid_is_crv25519): Rename to openpgp_oid_is_cv25519. Change
25385 gpg: New option --with-tofu-info.
25386 + commit 19d12be3cea5b4ee8153287a2f2442913a5e07a1
25387 * g10/gpg.c (oWithTofuInfo): New.
25388 (opts): Add --with-tofu-info.
25389 (main): Set opt.with_tofu_info.
25390 * g10/options.h (struct opt): Add field WITH_TOFU_INFO.
25391 * g10/tofu.c (show_statistics): Add optional arg OUTFP and enter
25392 special mode if not NULL. Change all callers.
25393 (tofu_write_tfs_record): New.
25394 * g10/keylist.c (list_keyblock_colon): Do not print the tofu policy as
25395 part of the "uid" record. Print a new "tfs" record if the new option
25397 * tests/openpgp/tofu.scm (getpolicy): Change from UID to TFS record.
25399 2016-08-24 Werner Koch <wk@gnupg.org>
25401 gpg: Change TOFU_STATS to return timestamps.
25402 + commit 0f1f02acc1cdcc2cf74a97b05507bb1f062f8af2
25403 * g10/tofu.c (write_stats_status): Add arg FP to print a colon
25404 formated line. Adjust for changed TOFU_STATS interface.
25405 (show_statistics): Let the query return timestamps and use
25406 gnupg_get-time to compute the "time ago" values.
25408 common: Guarantee that gnupg_get_time does not return an error.
25409 + commit 5eb2682686b32bd82096924eeabd0c5bd347adfd
25410 * common/gettime.c (gnupg_get_time): Abor if time() failed.
25411 (gnupg_get_isotime): Remove now useless check.
25412 (make_timestamp): Remove check becuase we already checked this modulo
25413 the faked time thing.
25415 wks: Add command --supported to gpg-wks-client.
25416 + commit 460568d341851ac79dd100e00e4eafcac1318148
25417 * tools/gpg-wks-client.c (aSupported): New.
25418 (opts): Add --supported.
25419 (parse_arguments): Ditto.
25420 (main): Call command_supported.
25421 (command_supported): New.
25423 2016-08-22 Werner Koch <wk@gnupg.org>
25425 wks: Install gpg-wks-client under libexec.
25426 + commit c47386a11a32c5ed3b5a31fad5c3e9a9a020ca7b
25427 * tools/Makefile.am (bin_PROGRAMS): Move gpg-wks-client to ...
25428 (libexec_PROGRAMS): ...here.
25430 common: Remove unused vars in simple-pwquery.
25431 + commit 62f3e0027724b23c0de5be6d1e66cfdeef7e7bc9
25432 * common/simple-pwquery.c (agent_send_option): Remove unused vars.
25433 (simple_query): Ditto.
25434 (agent_open): Ditto. Return RC on error.
25435 (simple_pwquery): Remove unused vars. Remove shadowing of 'p'.
25437 2016-08-18 Werner Koch <wk@gnupg.org>
25440 + commit 6bee88dd067e03e7767ceacf6a849d9ba38cc11d
25443 po: Update German translation.
25444 + commit 0a32153316855224acda268edb60b80d4e64b12f
25447 2016-08-18 Åka Sikrom <a4@hush.com>
25449 po: Update Norwegian translation.
25450 + commit ec88d7c8a9af864fad8ab5e0b9c4eb90ddcdd630
25453 2016-08-18 Ineiev <ineiev@gnu.org>
25455 po: Update Russian translation.
25456 + commit 6f6bfbf175653faa5cf560a7174e81a599247e80
25459 2016-08-18 Werner Koch <wk@gnupg.org>
25461 gpg: Add import filter "drop-sig".
25462 + commit 1b55e864421f88b8c8088639682767076abbeab0
25463 * g10/import.c (import_drop_sig): New variable.
25464 (cleanup_import_globals): Release that.
25465 (parse_and_set_import_filter): Add filter "drop-sig".
25466 (filter_getval): Implement properties for drop-sig.
25467 (apply_drop_sig_filter): New.
25468 (import_one): Apply that filter.
25470 dirmngr: Remove all system daemon features.
25471 + commit d83ba4897bf217d1045c58d1b99e52bd31c58812
25472 * dirmngr/dirmngr.h (opts): Remove fields 'system_service' and
25474 * common/homedir.c (dirmngr_sys_socket_name): Remove.
25475 (dirmngr_user_socket_name): Rename to ...
25476 (dirmngr_socket_name): this. Change call callers.
25477 * common/asshelp.c (start_new_dirmngr): Remove the system socket
25479 * tools/gpgconf.c (list_dirs): Do not print "dirmngr-sys-socket".
25480 * sm/server.c (gpgsm_server): Adjust for removed system socket feature.
25481 * dirmngr/server.c (cmd_getinfo): Ditto.
25482 (cmd_killdirmngr): Remove check for system daemon.
25483 (cmd_reloaddirmngr): Ditto.
25484 * dirmngr/dirmngr.c (USE_W32_SERVICE): Remove macro.
25485 (aService): Remove.
25486 (opts): Remove --service.
25487 (w32_service_control): Remove.
25488 (real_main, call_real_main) [W32]: Remove wrapper.
25489 (main): Remove Windows system service feature. Remove system dameon
25490 feature. Use only the "~/.gnupg/dirmngr_ldapservers.conf" file.
25491 * dirmngr/certcache.c (load_certs_from_dir): Remove warning in the
25492 system dameon case.
25493 * dirmngr/crlcache.c (DBDIR_D): Always use "~/.gnupg/crls.d".
25494 * dirmngr/ocsp.c (validate_responder_cert): Do not call
25495 validate_cert_chain which was used only in system daemon mode.
25496 * dirmngr/validate.c (validate_cert_chain): Always use the code.
25498 gpg: New option --sender.
25499 + commit de6e3217cde81df370926571e0fd65e468619803
25500 * g10/options.h (struct opt): Add field 'sender_list'.
25501 * g10/gpg.c: Include mbox-util.h.
25503 (opts): Add option "--sender".
25504 (main): Parse option.
25506 2016-08-16 Werner Koch <wk@gnupg.org>
25508 agent: Allow import of overly large keys.
25509 + commit b5d63e81d5c472647decc7687cef91fee0378eb8
25510 * agent/command.c (MAXLEN_KEYDATA): Double the size.
25512 2016-08-14 Werner Koch <wk@gnupg.org>
25514 g13: Allow the use of a g13tab label for --mount.
25515 + commit f02ceb6c6e94c6fbfaeeafe728397be38107de4d
25516 * g13/mount.c (g13_mount_container): Do not run the first access check
25517 if syshelp is required.
25519 g13: Implement --umount for dm-crypt.
25520 + commit b781113cf1391926dedf8dc943624d3bb9726318
25521 * g13/g13.c (main): Implement command --umount.
25522 * g13/mount.c (g13_umount_container): use the syshelper if needed.
25523 * g13/backend.c (be_umount_container): New.
25524 * g13/be-dmcrypt.c (be_dmcrypt_umount_container): New.
25525 * g13/call-syshelp.c (call_syshelp_run_umount): New.
25526 * g13/sh-cmd.c (cmd_umount): New.
25527 (register_commands): Register UMOUNT.
25528 * g13/sh-dmcrypt.c (sh_dmcrypt_umount_container): New.
25530 2016-08-13 Werner Koch <wk@gnupg.org>
25532 g13: Fix double free bug.
25533 + commit c9a0bccc77c93c08d6980a1718dfaf238a559eb9
25534 * g13/sh-cmd.c (cmd_mount, cmd_resume): Do not xfree TIUPLES.
25536 g13: Consider g13tab for a mount command.
25537 + commit 700920640211168ae1c97d0adef74ba8615d90bb
25538 * g13/sh-cmd.c (cmd_getkeyblob): New.
25539 (register_commands): Register it.
25540 * g13/call-syshelp.c (getkeyblob_data_cb): New.
25541 (call_syshelp_get_keyblob): New.
25542 * g13/mount.c: Include callsyshelp.h.
25543 (g13_mount_container): Ask syshelp whether the filename is managed by
25544 g13tab. Call syshelp to get the encrypted keyblob in this case.
25546 g13: Move some function around.
25547 + commit 37e932658cbd873ac96ff7e2067a97dffc2e0507
25548 * g13/keyblob.c (g13_keyblob_decrypt): Move to ...
25549 * g13/server.c: to here.
25550 * g13/suspend.c, g13/mount.c: Include server.h.
25551 * g13/Makefile.am (g13_syshelp_SOURCES): Add keyblob.c
25553 g13: New command --find-device.
25554 + commit b57f55321295846d47144bd6b39fbbcac0127421
25555 * common/status.h (STATUS_BLOCKDEV: New.
25556 * g13/call-syshelp.c: Include "call-syshelp.h".
25557 (finddevice_status_cb, call_syshelp_find_device): New.
25558 * g13/g13.c (aFindDevice): New.
25559 (opts): Add "--find-device".
25560 (main): Implement --find-device.
25561 * g13/sh-cmd.c (cmd_finddevice): New.
25562 (register_commands): Register new command.
25564 2016-08-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
25566 Avoid leading ": " in the log output when there are no prefixes.
25567 + commit 3a75ff65fba24ea2d024bd8fef633ab7d8f7d520
25568 * common/logging.c (do_logv): When no prefixes have been requested,
25569 omit the ": " separator, since there is nothing on the left-hand
25572 Call log_set_prefix() with human-readable labels.
25573 + commit 61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e
25574 * agent/preset-passphrase.c, agent/protect-tool.c, dirmngr/dirmngr.c
25575 * dirmngr/t-http.c, g10/gpg.c, g10/gpgv.c, g13/g13-syshelp.c
25576 * g13/g13.c, kbx/kbxutil.c, scd/scdaemon.c, sm/gpgsm.c
25577 * tests/gpgscm/main.c, tools/gpg-check-pattern.c
25578 * tools/gpg-connect-agent.c, tools/gpgconf.c, tools/gpgtar.c
25579 * tools/symcryptrun.c: Invoke log_set_prefix() with
25580 human-readable labels.
25582 2016-08-11 Werner Koch <wk@gnupg.org>
25584 gpg: New option --input-size-hint.
25585 + commit 70b5d7c43a57a44dad60c2c700a263610748d8f4
25586 * g10/options.h: Include stdint.h.
25587 (struct opt): Add field 'input_size_hint'.
25588 * g10/gpg.c (oInputSizeHint): New.
25589 (opts): Add --input-size-hint.
25590 (main): Set opt.input_size_hint.
25591 * g10/progress.c (write_status_progress): Use the hint.
25593 common: New function string_to_u64.
25594 + commit 0698324cde3e0cef7eeb6cfd1640c5eefdf13698
25595 * common/stringhelp.c (string_to_u64): New.
25596 * dirmngr/http.c (longcounter_t): Remove.
25597 (struct cookie_s): Change content_length to uint64_t.
25598 (parse_response): Use string_to_u64.
25600 2016-08-11 Justus Winter <justus@g10code.com>
25602 common: Remove compatibility code.
25603 + commit 72fa314b71e4ce8780f59b16d32cabf5d4bd5451
25604 * common/Makefile.am: Drop deleted files.
25605 * common/w32-afunix.c: Delete file.
25606 * common/w32-afunix.h: Likewise.
25608 common: Rework the simple password query module.
25609 + commit 14479e2515439c73e385f37e8c2b3fc517b038b9
25610 * common/simple-pwquery.c (writen, readline): Drop.
25611 (agent_send_option, agent_send_all_options, agent_open): Just use
25613 (simple_pw_set_socket): Simplify.
25614 (default_inq_cb): New function.
25615 (simple_pwquery, simple_query): Just use libassuan.
25616 * agent/Makefile.am (gpg_preset_passphrase_LDADD): Add libassuan.
25617 * tools/Makefile.am (symcryptrun_LDADD): Likewise.
25619 common: Remove simple password query error codes.
25620 + commit 9e6503b7ce019aa417099ded1dda87b68c33f912
25621 * common/simple-pwquery.h: Remove mapping function. Move all
25622 definitions of status codes...
25623 * common/simple-pwquery.c: ... here, and define them to meaningful gpg
25625 * agent/preset-passphrase.c (preset_passphrase): Use error code as-is.
25626 (forget_passphrase): Likewise.
25627 * tools/symcryptrun.c (confucius_get_pass): Likewise.
25629 2016-08-10 Werner Koch <wk@gnupg.org>
25631 gpg: Print the signer's UID during verification.
25632 + commit ed5c1b0b8a4790c4fb36a3129387f7c2ef5db302
25633 * g10/parse-packet.c (parse_signature): Sanitize the value stored in
25635 * g10/mainproc.c (issuer_fpr_string): New.
25636 (check_sig_and_print): Print the signers' UID. Print the issuer
25637 fingerprint in --rfc4880bis mode.
25639 common: New function try_make_printable_string.
25640 + commit f2ea7e539c9a22081e3159dcbca84f57f30724ca
25641 * common/stringhelp.c (sanitize_buffer): Remove. Move code to ...
25642 * common/miscellaneous.c (try_make_printable_string): new.
25643 (make_printable_string): Call try_make_printable_string.
25645 2016-08-10 Justus Winter <justus@g10code.com>
25647 tests: Fix distcheck.
25648 + commit a6acf1f6b39c5a607f61f643a5d21309ba58685d
25649 * tests/openpgp/issue2417.scm: Copy configuration.
25651 2016-08-10 Werner Koch <wk@gnupg.org>
25653 gpg: Remove tofu database format "split".
25654 + commit 5b59999ce0dd1650ebe47a74a30ded6af00eeed3
25655 * g10/options.h (struct opt): Remove field tofu_db_format.
25656 * g10/gpg.h (server_control_s): Add fields tofu.batch_update_ref and
25657 tofu.batch_update_started.
25658 * g10/gpg.c (parse_tofu_db_format): Remove.
25659 (main): Make option --tofu-db-format obsolete.
25660 * g10/tofu.c: Major rework. Remove the pretty complicated and slower
25661 split format and with that all the caching. Use the dbs struct
25662 directly. Move global vars for batch update into CTRL. Change
25663 calling conventions of some function to take CTRL or DBS pointers
25664 instead of the former low-level database pointer.
25666 2016-08-10 Justus Winter <justus@g10code.com>
25668 g10: Fix opening of trust database.
25669 + commit a27410a251cd25ca96cd6743969c4db0a0fd553f
25670 * g10/tdbio.c (tdbio_set_dbname): This function explicitly checks for
25671 the file size, but handled the case of a zero-sized file incorrectly
25672 by returning success. Fix this by initializing the database in that
25674 * tests/openpgp/Makefile.am (XTESTS): Add new test.
25675 * tests/openpgp/issue2417.scm: New file.
25677 tests: Fix distcheck.
25678 + commit 194b1e979c7c547afd0dfea5b2496bdfa34b20f1
25679 * tests/openpgp/Makefile.am (EXTRA_DIST): Explicitly add setup and
25680 teardown scripts now that they no longer are included in the list of
25683 tests: Improve temporary directory handling.
25684 + commit d9240a3a4688c263632b4168ae2e04363bc91a3a
25685 * tests/gpgscm/ffi.c (ffi_init): Rename 'mkdtemp'.
25686 * tests/gpgscm/tests.scm (mkdtemp): New function that uses a sensible
25687 location and template if no arguments are given.
25688 (with-temporary-working-directory): Simplify accordingly.
25689 (make-temporary-file): Likewise.
25690 * tests/openpgp/run-tests.scm (run-tests-parallel-isolated): Likewise.
25691 (run-tests-sequential-isolated): Likewise.
25693 gpgscm: Make the name of foreign functions more unique.
25694 + commit efe973dab7f69e2b1309446b2fbcd47ce0305399
25695 * tests/gpgscm/ffi-private.h (ffi_define_function_name): Add another
25698 tests: Run each test in a clean environment.
25699 + commit e13f1ea8fff3964dc3008432f5c0f26aaa2eaa35
25700 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Drop obsolete
25701 variables, add 'srcdir', use absolute paths.
25702 (TESTS): Rename to 'XTESTS' to avoid emitting the automake test
25703 runner. Drop 'setup.scm' and 'finish.scm'.
25704 (xcheck): New target that runs 'run-tests.scm', our Scheme test suite
25705 runner. It will run each test in a clean environment, isolated from
25707 (EXTRA_DIST): Adapt accordingly.
25708 * tests/openpgp/README: Likewise.
25710 tests: Make ssh test more robust.
25711 + commit b2b21580b68f3a9069562f99675b389a0d044713
25712 * tests/openpgp/ssh.scm: Drop the 'MD5:' which was not printed by
25713 previous ssh versions.
25715 2016-08-10 NIIBE Yutaka <gniibe@fsij.org>
25717 agent: SSH support fix.
25718 + commit f14795d57f6c81709e9225dd3c5dfd3495cf1b2b
25719 * agent/command-ssh.c (ssh_handler_request_identities): Keep error
25722 2016-08-09 Werner Koch <wk@gnupg.org>
25724 agent: Fix regression in recent ssh changes.
25725 + commit e630f904993725c54ec63be00369589b7b7234d2
25726 * agent/command-ssh.c (sexp_key_construct): Lowercase the algo name.
25728 gpg: Extend the PROGRESS line to give the used unit.
25729 + commit 16feb1e0ea9b5d3966f22f4ae047335b9d1b60e1
25730 * g10/progress.c (write_status_progress): Print the units parameter.
25732 2016-08-09 Ben Kibbey <bjk@luxsci.net>
25734 Cleanup initialization of libgcrypt.
25735 + commit 49829c29e541546084950b8a153067db371d101a
25736 * common/init.c (init_common_subsystems): Initialize libgcrypt.
25737 * dirmngr/Makefile.am (dirmngr_ldap): Link with libgcrypt.
25739 2016-08-09 NIIBE Yutaka <gniibe@fsij.org>
25741 agent: SSH support improvement.
25742 + commit ebf24e3b29766595204355d82f435a3e675bfbbc
25743 * agent/command-ssh.c (ssh_handler_request_identities): Skip a key with
25744 error, not giving up to handle the request itself.
25745 * agent/cvt-openpgp.c (extract_private_key): Support "ecdsa" key.
25747 2016-08-08 Werner Koch <wk@gnupg.org>
25749 gpg: Cleanup of dek_to_passphrase function (part 2).
25750 + commit 491d6fdabb3d95905cd96d905e1f965ce8ff07e1
25751 * g10/passphrase.c (passphrase_get): Remove arg KEYID. Change arg
25753 (passphrase_to_dek): Remove args KEYID and PUBKEY_ALGO. Split arg
25754 MODE into CREATE and NOCACHE. Change all callers and adjust stubs.
25755 (passphrase_clear_cache): Remove args KEYID and ALGO. They are not
25756 used. Change caller.
25758 gpg: Cleanup of dek_to_passphrase function (part 1).
25759 + commit 5b614973fe2d4b5ef402a3057c31c3ef3042a483
25760 * g10/passphrase.c (passphrase_to_dek_ext): Remove args CUSTDESC and
25761 CUSTPROMPT. Merge into the passphrase_to_dek wrapper.
25762 (passphrase_get): Remove args CUSTOM_DESCRIPTION and CUSTOM_PROMPT.
25764 2016-08-08 NIIBE Yutaka <gniibe@fsij.org>
25766 agent: More clean up of SSH support.
25767 + commit 591a8373a5d9567db9b1a1a48205e8a206c7b669
25768 * common/util.h (get_pk_algo_from_key): New.
25769 * common/sexputil.c (get_pk_algo_from_key): The implementation.
25770 * agent/gpg-agent.c: Remove include of openpgpdefs.h.
25771 * agent/command-ssh.c (struct ssh_key_type_spec): Use integer ALGO.
25772 (ssh_key_types): Update with GCRY_PK_*.
25773 (make_cstring, sexp_extract_identifier): Remove.
25774 (sexp_key_construct): Use gcry_pk_algo_name to get ALGO string.
25775 (ssh_key_to_blob): Use cadr to get value list.
25776 (ssh_key_type_lookup): Lookup with integer ALGO.
25777 (ssh_receive_key): Follow the change of ssh_key_type_lookup.
25778 (ssh_send_key_public): Likewise. Use get_pk_algo_from_key to get ALGO.
25780 tests: Add openpgp/gpgv-forged-keyring.scm.
25781 + commit 7dcad0d3503ac0d75e09efb16246dd78518986fc
25782 * tests/openpgp/gpgv-forged-keyring.scm: New.
25783 * tests/openpgp/forged-keyring.gpg: New.
25784 * tests/openpgp/Makefile.am (TESTS): Add gpgv-forged-keyring.scm.
25785 * tests/openpgp/defs.scm (tools): Add GPGV.
25788 2016-08-06 Werner Koch <wk@gnupg.org>
25790 agent: Fix long standing regression tracking the connection count.
25791 + commit 40d16029ed8b334c371fa7f24ac762d47302826e
25792 * agent/gpg-agent.c (get_agent_active_connection_count): New.
25793 (do_start_connection_thread, start_connection_thread_ssh): Bump
25794 ACTIVE_CONNECTIONS up and down.
25795 * agent/command.c (cmd_getinfo): Add subcommand "connections".
25797 2016-08-06 NIIBE Yutaka <gniibe@fsij.org>
25799 agent: Clean up SSH support.
25800 + commit 894789c3299dc47a8c1ccaaa7070382f0fae0262
25801 * agent/command-ssh.c (file_to_buffer): Remove.
25802 (ssh_handler_request_identities): Use agent_public_key_from_file.
25804 2016-08-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
25806 gpg: Avoid publishing the GnuPG version by default.
25807 + commit c9387e41db7520d176edd3d6613b85875bdeb32c
25808 * g10/gpg.c (main): initialize opt.emit_version to 0
25809 * doc/gpg.texi: document different default for --emit-version
25811 2016-08-04 Werner Koch <wk@gnupg.org>
25813 gpg: Make sure that keygrips are printed for each subkey.
25814 + commit c8cc804f56bfefba46641f2c7078fcd67b494bae
25815 * g10/keylist.c (list_keyblock_colon): Print an emprty grip in case of
25818 gpg: Always print the fingerprint in colons mode.
25819 + commit 54a1ed20e203dcafeacbe21eb147efa08255dbf5
25820 * g10/keylist.c (list_keyblock_colon): Remove arg FPR. Always print
25821 fingerprint records. For secret keys always print keygrip records.
25823 tests: Use gpgconf to set the ssh socket envvar.
25824 + commit 0c2a745a2bc21e8f439930f7c0e5d1521c2fd44c
25825 * tests/openpgp/ssh.scm ("SSH_AUTH_SOCK"): Use gpgconf.
25827 gpgconf: Add limited support for -0.
25828 + commit db6f3eb926619dfe6ed2a9be197c51f9a1b6198c
25829 * tools/gpgconf.h (opt): Add field 'null'.
25830 * tools/gpgconf.c: Add option --null/-0.
25831 (list_dirs): Use it here.
25833 2016-08-04 Justus Winter <justus@g10code.com>
25835 tests: Update list of tests in Scheme test runner.
25836 + commit 05cb30052cdf1d308ff7da901cfa5a809cd49479
25837 * tests/openpgp/run-tests.scm: Add missing tests.
25839 tests: Fix path to fake-pinentry.
25840 + commit 3566544d04a4b81e5dd8a2883304673b2cc2f108
25841 * tests/openpgp/defs.scm: Correctly compute the path to fake-pinentry.
25843 2016-08-04 NIIBE Yutaka <gniibe@fsij.org>
25845 po: Update Japanese translation.
25846 + commit 89234f7f3643bad2daddc94569f1d651ec5c835e
25849 po: update Japanese translation.
25850 + commit 573e0f36190346e0263bea3ae12a389f4f598d55
25853 g10: Fix checking key for signature validation.
25854 + commit 6f284e6ed63f514b15fe610f490ffcefc87a2164
25855 * g10/sig-check.c (check_signature2): Not only subkey, but also primary
25856 key should have flags.valid=1.
25858 2016-08-03 Justus Winter <justus@g10code.com>
25860 kbx: Add missing header file.
25861 + commit e3358b246d9380008a4ba7c8f2fe03659901adaf
25862 * kbx/keybox-update.c: Add missing header file.
25864 2016-08-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
25866 More cleanup of "allow to".
25867 + commit dc107b78509807db375d3a382eb3376cd2183357
25868 * README, agent/command.c, agent/keyformat.txt, common/i18n.c,
25869 common/iobuf.c, common/keyserver.h, dirmngr/cdblib.c,
25870 dirmngr/ldap-wrapper.c, doc/DETAILS, doc/TRANSLATE,
25871 doc/announce-2.1.txt, doc/gpg.texi, doc/gpgsm.texi,
25872 doc/scdaemon.texi, doc/tools.texi, doc/whats-new-in-2.1.txt,
25873 g10/export.c, g10/getkey.c, g10/import.c, g10/keyedit.c, m4/ksba.m4,
25874 m4/libgcrypt.m4, m4/ntbtls.m4, po/ca.po, po/cs.po, po/da.po,
25875 po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po,
25876 po/fr.po, po/gl.po, po/hu.po, po/id.po, po/it.po, po/ja.po,
25877 po/nb.po, po/pl.po, po/pt.po, po/ro.po, po/ru.po, po/sk.po,
25878 po/sv.po, po/tr.po, po/uk.po, po/zh_CN.po, po/zh_TW.po,
25879 scd/app-p15.c, scd/ccid-driver.c, scd/command.c, sm/gpgsm.c,
25880 sm/sign.c, tools/gpgconf-comp.c, tools/gpgtar.h: replace "Allow to"
25883 In standard English, the normal construction is "${XXX} allows ${YYY}
25884 to" -- that is, the subject (${XXX}) of the sentence is allowing the
25885 object (${YYY}) to do something. When the object is missing, the
25886 phrasing sounds awkward, even if the object is implied by context.
25887 There's almost always a better construction that isn't as awkward.
25889 These changes should make the language a bit clearer.
25891 dirmngr: Emit correct spelling of "superseded".
25892 + commit 436b28c23194fa77919967338d5a61a82d242153
25893 * dirmngr/crlcache.c (list_one_crl_entry): Spell superseded correctly.
25894 * dirmngr/ocsp.c (ocsp_invalid): Likewise.
25896 This might break some tools which parse the existing output and expect
25897 misspellings, but i'm not sure there are many such tools, and we
25898 should use standardized orthography going forward.
25900 Fix spelling and grammar.
25901 + commit cd45cf782b91ff0f6b023913963e5258ffcbf464
25902 * agent/learncard.c: s/coccured/occurred/
25903 * doc/dirmngr.texi: s/ommitted/omitted/, s/orginally/originally/,
25904 s/reponses/responses/i
25905 * doc/gpg-agent.texi, doc/dirmngr.texi, doc/gpg.texi: Fix "allows
25906 to" to more conventional english usage.
25907 * doc/tools.texi, g10/gpgcommpose.c, tests/openpgp/armor.scm,
25908 tests/openpgp/armor.test: s/occured/occurred/
25909 * tools/gpgsplit.c: s/calcualting/calculating/
25910 * sm/server.c: s/formated/formatted/
25912 2016-08-03 Werner Koch <wk@gnupg.org>
25914 gpg,gpgsm: Block signals during keyring/keybox update.
25915 + commit 48a2c93a1886589d1a0e2a4a2173e0e81311200b
25916 * kbx/keybox-util.c (keybox_file_rename): Add arg BLOCK_SIGNALS.
25917 * kbx/keybox-update.c (rename_tmp_file): Block all signals when doing
25919 * g10/keyring.c (rename_tmp_file): Block all signals during the double
25922 common: New file utilproto.c.
25923 + commit 3a2421c94015432caa49e166bc5bf5c4f80ab7c7
25924 * common/util.h: Factor prototypes from signal.c out to ...
25925 * common/utilproto.h: new.
25926 * common/Makefile.am (common_sources): Add new file.
25928 2016-08-01 Justus Winter <justus@g10code.com>
25930 gpgsm: Fix machine-readable key listing.
25931 + commit 40365b28c3fdf087fd58401f5a6f42f9d7d29d20
25932 * sm/keylist.c (list_cert_colon): Drop superfluous colon.
25934 tests: Distribute standalone test runner.
25935 + commit c971ff0823d9a649b32fd9f169a12abc3095246e
25936 * tests/openpgp/Makefile.am (EXTRA_DIST): Add missing file
25939 2016-07-28 Justus Winter <justus@g10code.com>
25941 tests: Fix distcheck.
25942 + commit 9e799b0e4f131126b80a5d3272c36d52b8ba1720
25943 * tests/openpgp/Makefile.am (sample_msgs): New variable.
25944 (EXTRA_DIST): Also ship the sample msgs.
25946 2016-07-27 Fredrik Fornwall <fredrik@fornwall.net>
25948 build: Fix check for Android.
25949 + commit 583a464c62ce8f7d70f5fdab2c7ea73ec3348d69
25950 * configure.ac: Match other Android targets as well.
25952 2016-07-26 Justus Winter <justus@g10code.com>
25954 common: Fix iobuf_peek corner case.
25955 + commit b2572b0c386fd12ac6581fcce72f8d48cbfd27c7
25956 Previously, iobuf_peek on a file smaller than 'buflen' would hang.
25958 * common/iobuf.c (underflow): Generalize by adding a target parameter.
25959 (iobuf_peek): Use this to prevent looping here.
25960 * tests/openpgp/Makefile.am (TESTS): Add new test.
25961 * tests/openpgp/setup.scm (dearmor): Move function...
25962 * tests/openpgp/defs.scm (dearmor): ... here.
25963 * tests/openpgp/issue2419.scm: New file.
25964 * tests/openpgp/samplemsgs/issue2419.asc: Likewise.
25966 gpgscm: Do not shadow common function name in catch macro.
25967 + commit 046338b8494c036a5e717130d3eadce0291126fc
25968 * tests/gpgscm/init.scm (catch): Do not shadow 'exit'.
25970 tests: Fix distcheck.
25971 + commit 66c0dab3c722c2766828515120775b106286334e
25972 * tests/openpgp/Makefile.am (samplekeys): Add missing key.
25974 gpgscm: Make the verbose setting more useful.
25975 + commit f17aecbcd98103fcd2ece537be96930f354de656
25976 * tests/gpgscm/ffi.c (do_get_verbose): New function.
25977 (do_set_verbose): Likewise.
25978 (ffi_init): Turn *verbose* into a function, add *set-verbose!*.
25979 * tests/gpgscm/tests.scm (call): Adapt accordingly.
25980 (call-with-io): Dump output if *verbose* is high.
25981 (pipe-do): Adapt accordingly.
25982 * tests/openpgp/defs.scm: Set verbosity according to environment.
25983 * tests/openpgp/run-tests.scm (test): Adapt accordingly.
25985 common: Avoid excessive stack use.
25986 + commit b3610badf691178bbbf0831af9aa6b6658c1948a
25987 * common/exectool.c (copy_buffer_shred): Make passing NULL a nop.
25988 (gnupg_exec_tool_stream): Allocate copy buffers from the heap.
25990 common: Rework resource cleanup when handling errors.
25991 + commit 35132a8b119dbc3393ceb0d0874917905d1a6354
25992 * common/exectool.c (gnupg_exec_tool_stream): Rework error handling.
25994 common: Add unit test for exectool.
25995 + commit fe40e9c53dc0710ff73e72d05ba8040874465b55
25996 * common/Makefile.am: Build new test.
25997 * common/t-exectool.c: New file.
25999 2016-07-25 Justus Winter <justus@g10code.com>
26001 g10: Fix key import statistics.
26002 + commit 4ba11251aff578394000bf480f47160f0879c763
26003 'transfer_secret_keys' collects statistics on a subkey-basis, while
26004 the other code does not. This leads to inflated numbers when
26005 importing secret keys. E.g. 'count' is incremented by the main
26006 parsing loop in 'import', and again in 'transfer_secret_keys', leading
26007 to a total of 3 if one key with two secret subkeys is imported.
26009 * g10/import.c (import_secret_one): Adjust to the fact that
26010 'transfer_secret_keys' collects subkey statistics.
26011 * tests/openpgp/Makefile.am (TESTS): Add new test.
26012 * tests/openpgp/issue2346.scm: New file.
26013 * tests/openpgp/samplekeys/issue2346.gpg: Likewise.
26015 2016-07-22 Justus Winter <justus@g10code.com>
26017 gpgscm: Make function more general.
26018 + commit 9ee23a715d5dad6bf568a2deb1c55bf15601cf51
26019 * tests/gpgscm/tests.scm (in-srcdir): Accept more path fragments.
26021 g10: Properly ignore legacy keys in the keyring cache.
26022 + commit d9839c9d303a01dc1032a6de311e034fe14e81da
26023 * g10/keyring.c (keyring_rebuild_cache): Properly ignore legacy keys
26024 in the keyring cache.
26025 * tests/migrations/Makefile.am (TESTS): Add new test.
26026 * tests/migrations/common.scm (GPG-no-batch): New variable.
26027 (run-test): New function.
26028 * tests/migrations/issue2276.scm: New file.
26029 * tests/migrations/issue2276.tar.asc: Likewise.
26031 2016-07-21 Justus Winter <justus@g10code.com>
26033 g10: Fix error handling.
26034 + commit 45bb9a2a46e11bc13c6b39e7b4748b7de199018e
26035 * g10/tofu.c (show_statistics): Fix error handling, 0 is a valid
26038 g10: Drop superfluous begin transaction.
26039 + commit 8a6f8e1e397a2d676b211f2dbc6df4a80b67442d
26040 * g10/tofu.c (record_binding): We only need a transaction for the
26043 gpgscm: Make assert macro more accurate.
26044 + commit 699c6c9f4b44441ab3db7f942df5b81f4cd88b06
26045 * tests/gpgscm/lib.scm (assert): Print the representation of the
26048 gpgscm: Make error message more useful.
26049 + commit 7207b2fe45bcf884e029366a2677a570234bed2e
26050 * tests/gpgscm/scheme.c (opexe_0): Include names of missing function
26051 parameters in the error message.
26054 + commit 1af2fd44f0a66fd0d94c224319db0b128d42a288
26055 * g10/tofu.c (tofu_closedbs): Fix freeing database handles up to the
26056 cache limit. Previously, this would crash if db_cache_count == count.
26058 2016-07-20 NIIBE Yutaka <gniibe@fsij.org>
26060 scd: Fix card removal/reset on multiple contexts.
26061 + commit 1598a4476466822e7e9c757ac471089d3db4b545
26062 * scd/app.c (application_notify_card_reset): Add message for debug.
26063 *scd/command.c (update_card_removed): Call release_application and set
26065 (struct server_local_s): Remove app_ctx_marked_for_release.
26066 (do_reset): Don't mark release but call release_application here.
26067 (open_card): Remove app_ctx_marked_for_release handling.
26068 (update_reader_status_file): Don't set SLOT here, so that it can be
26069 released the APP by application_notify_card_reset in
26070 update_card_removed.
26072 2016-07-19 Justus Winter <justus@g10code.com>
26074 agent: Add known keys to sshcontrol.
26075 + commit 270f7f7b8b235cc93516566702e2a1d256605cca
26076 * agent/command-ssh.c (ssh_identity_register): Add a key to sshcontrol
26077 even if it is already in the private key store.
26078 * tests/openpgp/ssh.scm: Test this.
26080 tests: Add test for ssh support.
26081 + commit d7a405de8325aa945ab791dcd3bc48272af33b86
26082 * tests/gpgscm/tests.scm (path-expand): New function.
26083 * tests/openpgp/Makefile.am (TESTS): Add new test.
26084 (sample_keys): Add new keys.
26085 (CLEANFILES): Clean ssh socket and control file.
26086 * tests/openpgp/fake-pinentry.c (main): Add a default passphrase.
26087 * tests/openpgp/gpg-agent.conf.tmpl: Enable ssh support.
26088 * tests/openpgp/samplekeys/ssh-dsa.key: New file.
26089 * tests/openpgp/samplekeys/ssh-ecdsa.key: Likewise.
26090 * tests/openpgp/samplekeys/ssh-ed25519.key: Likewise.
26091 * tests/openpgp/samplekeys/ssh-rsa.key: Likewise.
26092 * tests/openpgp/ssh.scm: Likewise.
26094 2016-07-19 NIIBE Yutaka <gniibe@fsij.org>
26096 scd: Fix race conditions for release_application.
26097 + commit 0c1fd4e9884ed7c1edd1819762b9e8a77f606ed3
26098 * scd/command.c (do_reset, cmd_restart): Reset app_ctx before calling
26099 release_application.
26101 2016-07-18 Justus Winter <justus@g10code.com>
26103 agent: Fix passphrase cache lookups.
26104 + commit f474249366e8e143c8e6eb7f7b1a74056e46fa1f
26105 CACHE_MODE_ANY is supposed to match any cache mode except
26106 CACHE_MODE_IGNORE, but the code used '==' to compare cache modes.
26108 * agent/cache.c (cache_mode_equal): New function.
26109 (agent_set_cache): Use the new function to compare cache modes.
26110 (agent_get_cache): Likewise.
26111 * tests/openpgp/Makefile.am (TESTS): Add new test.
26112 * tests/openpgp/issue2015.scm: New file.
26114 2016-07-15 Justus Winter <justus@g10code.com>
26116 build: Always build gpgtar.
26117 + commit 7f4dd24b880323a5b772719dafae829c288303a8
26118 We use gpgtar to unpack test data, hence we always build it. If the
26119 user opts out, we simply don't install it.
26121 * configure.ac: Add comment.
26122 * tests/migrations/Makefile.am (required_pgms): Make sure gpgtar is
26124 * tools/Makefile.am: Always build gpgtar, but do not install it if the
26125 user used '--disable-gpgtar'.
26127 2016-07-15 Werner Koch <wk@gnupg.org>
26129 wks: Publish as binary file.
26130 + commit b7b37716b9d2cd1b71b5f7f0e4fb2c1a43eee90a
26131 * tools/gpg-wks-server.c (copy_key_as_binary): New.
26132 (check_and_publish): Use new function instead of rename.
26134 2016-07-15 Justus Winter <justus@g10code.com>
26136 gpgscm: Fix linking.
26137 + commit c49c43d7e4229fd9f1bc55e17fa32fdc334dbef6
26138 * tests/gpgscm/Makefile.am: Add -lintl.
26140 g10: Fix building without trust models.
26141 + commit d21efa398874be4a15e8283c5fc382fb90f562fd
26142 * g10/pkclist.c (write_trust_status): Fall back to the previous
26145 tests: Check for gpgtar.
26146 + commit 12a887050a560c4cacaf95e4cdb0cc42d8b87aa1
26147 * tests/migrations/extended-pkf.scm: Skip test if gpgtar is not built.
26148 * tests/migrations/from-classic.scm: Likewise.
26149 * tests/openpgp/gpgtar.scm: Fix check for gpgtar.
26151 2016-07-14 Werner Koch <wk@gnupg.org>
26154 + commit 09c448202ffb4c26d7ec2028351a78e2d3680396
26157 po: Update the German translation.
26158 + commit 23c2491f94b94fa231bde8187eb958432555eff1
26161 2016-07-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
26163 dirmngr: fix handling of HTTP redirections.
26164 + commit 60428c24fb29cb633c9392abb777bc4da88dbfba
26165 * dirmngr/ks-engine-http.c (ks_http_fetch): Reinitialize HTTP session
26166 when following a HTTP redirection.
26168 2016-07-14 Werner Koch <wk@gnupg.org>
26170 gpg: Remove options --print-dane-records and --print-pka-records.
26171 + commit 1e9bc66a9a60de668890452d504eea3c3c614f7e
26172 * g10/gpg.c (main): Remove options but print a dedicated warning.
26173 * g10/options.h (struct opt): Remove fields 'print_dane_records' and
26174 'print_pka_records'.
26175 * g10/keylist.c (list_keyblock): Do not call list_keyblock_pka.
26176 (list_keyblock_pka): Remove.
26178 2016-07-14 Åka Sikrom <a4@hush.com>
26180 po: Complete update of the Norwegian translation.
26181 + commit d6d7e4d218a1e2e2a88bc893b00967b032d194f8
26184 2016-07-14 Yuri Chornoivan <yurchor@ukr.net>
26186 Update Ukrainian translation.
26187 + commit 9427288ebb32141c196996315f93535fd7744901
26190 2016-07-14 Ineiev <ineiev@gnu.org>
26192 Update Russian translation.
26193 + commit 39c88870359bc75e9f72e08a7466fcff01bdc655
26196 2016-07-14 Werner Koch <wk@gnupg.org>
26198 gpg: Fix regression since 2.1 in --search-key with a fingerprint.
26199 + commit 0342369ce001b9dba04dc79e7a4eb66fbda278e7
26200 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Prefix fingerprint with 0x.
26202 gpgscm: Use kludge to avoid improper use of ffi_schemify_name.
26203 + commit fb14bf0a95e361b0991067e3aea2902d54be811d
26204 * tests/gpgscm/ffi.c (ffi_schemify_name): Use xstrdup instead of
26207 build: Require latest released libraries.
26208 + commit c98995efefbdebea8f53d54ba2df4217dfd31ad4
26209 * agent/protect.c (OCB_MODE_SUPPORTED): Remove macro.
26210 (do_encryption): Always support OCB.
26211 (do_decryption): Ditto.
26212 (agent_unprotect): Ditto.
26213 * dirmngr/server.c (is_tor_running): Unconditionally build this.
26215 2016-07-13 Werner Koch <wk@gnupg.org>
26217 build: Update config.{guess,sub} to {2016-05-15,2016-06-20}.
26218 + commit 66b634f27f10e4c0cb21c3f201998497d0bb24ca
26219 * build-aux/config.guess: Update.
26220 * build-aux/config.sub: Update.
26222 gpg: Fix regression due to the new --mimemode options.
26223 + commit 3b8ed7650d2d63b01ec80ecf9e493b80e3ac7ef8
26224 * g10/gpg.c (opts): Re-add oTextmodeShort.
26226 2016-07-13 Daiki Ueno <ueno@gnu.org>
26228 gpg: Make --try-all-secrets work for hidden recipients.
26229 + commit 82b90eee100cf1c9680517059b2d35e295dd992a
26230 * g10/getkey.c (enum_secret_keys): Really enumerate all secret
26231 keys if --try-all-secrets is specified.
26233 2016-07-13 Werner Koch <wk@gnupg.org>
26235 gpg: Do not print a the short keyid if the high word is zero.
26236 + commit 7b96a8d736934e65bb2adbc17059f84dfeaf95fb
26237 * g10/keyid.c (format_keyid): Always returh long keyid ifor KF_LONG.
26239 gpg: New option --mimemode.
26240 + commit e148c3caa90fbadba32bdbfea9513392e3aea598
26241 * g10/gpg.c (oMimemode): New.
26242 (opts): Add --mimemode.
26243 (main): Use --mimemode only in rfc4880bis compliance mode.
26244 * g10/options.h (struct opt): Add field "mimemode".
26245 * g10/build-packet.c (do_plaintext): Allow for mode 'm'.
26246 * g10/encrypt.c (encrypt_simple, encrypt_crypt): Use 'm' if requested.
26247 * g10/plaintext.c (handle_plaintext): Handle 'm' mode.
26248 * g10/sign.c (write_plaintext_packet): Handle 'm' mode.
26249 (sign_file, sign_symencrypt_file): Use 'm' if requested.
26251 wks: Use correct key for the confirmation.
26252 + commit 95810929f75bd718dbdf2cd1c0181137a45e2456
26253 * tools/gpg-wks-client.c (send_confirmation_response): Actually
26254 encrypt to the recipient.
26256 wks: New server command --list-domains.
26257 + commit 44ecc33b4a7147d9c112a72f55a42b65cef4fe67
26258 * tools/gpg-wks-server.c (aListDomains): New.
26259 (opts): Add --list-domains.
26260 (parse_arguments): Implement.
26261 (main): Ditto. Use only one final diagnostic message.
26262 (command_list_domains): New.
26263 (check_and_publish): Remove directory creation.
26264 (get_domain_list): New.
26265 (expire_pending_confirmations): Rewrite using a list of directories.
26266 (command_cron): Get domain list and pass to
26267 expire_pending_confirmations.
26269 2016-07-13 NIIBE Yutaka <gniibe@fsij.org>
26271 agent: Fix envvars for UPDATESTARTUPTTY.
26272 + commit 7be218177701af316db75057c99ca674d53cf585
26273 agent/command.c (cmd_updatestartuptty): Use session_env_list_stdenvnames
26276 2016-07-12 Werner Koch <wk@gnupg.org>
26279 + commit acb27915f8646a875b6bb507ff46cd1bc330c02b
26280 * g13/g13tuple.c (create_tupledesc): Init refcount to 1.
26282 wks: Add --cron command to gpg-wks-server.
26283 + commit 38eb5f81d223616e3ee34bdfb41c387ce4e7df22
26284 * tools/gpg-wks-server.c (PENDING_TTL): New.
26285 (expire_one_domain, expire_pending_confirmations): New.
26286 (command_cron): New.
26287 (main): Implement --cron.
26289 wks: Try to send an encrypted confirmation back.
26290 + commit 5de41c4ecef32add89044b8a550a47cce8c6d61e
26291 * tools/gpg-wks-client.c (encrypt_response_status_cb): New.
26292 (encrypt_response): New.
26293 (send_confirmation_response): Encrypt the response.
26295 * tools/gpg-wks-server.c (send_confirmation_request): Use freeing of
26298 wks: Also create DANE record.
26299 + commit d3837e0435921bfa5587a50738f5924a5fdf976a
26300 * tools/gpg-wks-server.c (copy_key_as_dane): New.
26301 (check_and_publish): Also publish as DANE record.
26303 gpg: Extend import-option import-export to print PKA or DANE.
26304 + commit 9b075575cdc5851b019aed5ca5d5e18416beec8e
26305 * g10/export.c (do_export_stream): Move PKA and DANE printing helper
26307 (print_pka_or_dane_records): this fucntion.
26308 (write_keyblock_to_output): Add arg OPTIOSN and call
26309 print_pka_or_dane_records if requested.
26311 gpg: Move a function from import.c to export.c.
26312 + commit 0f5b105d96780a29cc58893285e6c38482e0cc2d
26313 * g10/import.c (write_keyblock_to_output): Move to ...
26314 * g10/export.c (write_keyblock_to_output): here. Add arg WITH_ARMOR.
26315 Also make sure never to export ring trust packets.
26317 2016-07-11 Werner Koch <wk@gnupg.org>
26319 gpgconf: Enhance --list-dirs.
26320 + commit 7732b332886792b2bbf47ecf7430e953f1c55a2c
26321 * tools/gpgconf.c (main) <aListDir>: Factor code out to ...
26322 (list_dirs): new. Rewrite to use a table. Allow selection of a
26323 items. Add "agent-ssh-socket".
26325 2016-07-09 NIIBE Yutaka <gniibe@fsij.org>
26327 gpgv: Tweak default options for extra security.
26328 + commit e32c575e0f3704e7563048eea6d26844bdfc494b
26329 * g10/gpgv.c (main): Set opt.no_sig _cache, so that it doesn't depend on
26330 cached status. Similarly, set opt.flags.require_cross_cert for backsig
26331 validation for subkey signature.
26333 2016-07-07 Werner Koch <wk@gnupg.org>
26335 gpg: Add export options "export-pka" and "export-dane".
26336 + commit cbe467e794f3be81b8da2bcb1732b5514b13b71d
26337 * g10/options.h (EXPORT_PKA_FORMAT): New.
26338 * g10/keylist.c (list_keyblock_pka): Do not use DANE flag.
26339 * g10/export.c: Include zb32.h.
26340 (parse_export_options): Add options "export-pka" and "export-dane".
26341 (do_export): Do not armor if either of these option is set.
26342 (print_pka_or_dane_records): New.
26343 (do_export_stream): Implement new options.
26345 gpg: Split a too large export function.
26346 + commit b05878f32aa507aa9087d7c992b630840b5ad71c
26347 * g10/export.c (do_export_stream): Factor some code out to ...
26348 (do_export_one_keyblock): new.
26350 2016-07-07 Justus Winter <justus@g10code.com>
26352 gpgscm: Capture output of spawned processes.
26353 + commit 2f61aa0ff11b194d20307751ab686c87cd47dd56
26354 * tests/gpgscm/tests.scm (call-check): Capture stdout and stderr, and
26355 return stdout if the child exited successfully, or include stderr in
26357 * tests/openpgp/version.scm: Demonstrate this by checking the stdout.
26359 2016-07-06 Werner Koch <wk@gnupg.org>
26361 doc: Escape file names in generated macros.
26362 + commit 511c2522b95333226a5e45e538fed29dd44c9be3
26363 * doc/mkdefsinc.c (print_filename): New.
26364 (main): Use it here.
26366 wks: Let the server take the encrytion key from the file.
26367 + commit e5896da666551da5322b2ae5458d429b9e60241e
26368 * tools/gpg-wks-server.c (encrypt_stream): Change arg 'fingerprint' to
26370 (store_key_as_pending): Add arg 'r_fname' to make of the keyfile.
26371 (send_confirmation_request): Add arg 'keyfile'.
26372 (process_new_key): Pass on the name of the keyfile.
26374 gpg: New options --recipient-file and --hidden-recipient-file.
26375 + commit a479804c86bc24bfab101f39464db3ecfbaedf6d
26376 * g10/gpg.c (oRecipientFile, oHiddenRecipientFile): New.
26377 (opts): Add options --recipient-file and --hidden-recipient-file.
26378 (main): Implement them. Also remove duplicate code from similar
26380 * g10/keydb.h (PK_LIST_FROM_FILE): New.
26381 (PK_LIST_SHIFT): Bump up.
26382 * g10/pkclist.c (expand_group): Take care of PK_LIST_FROM_FILE.
26383 (find_and_check_key): Add and implement arg FROM_FILE.
26384 (build_pk_list): Pass new value for new arg.
26385 * g10/getkey.c (get_pubkey_fromfile): New.
26386 * g10/gpgv.c (read_key_from_file): New stub.
26387 * g10/test-stubs.c (read_key_from_file): New stub.
26388 * g10/server.c (cmd_recipient): Add flag --file.
26389 * g10/import.c (read_key_from_file): New.
26391 * tests/openpgp/defs.scm (key-file1): New.
26393 * tests/openpgp/setup.scm: Add their private keys and import the
26395 * tests/openpgp/encrypt.scm: Add new test.
26397 gpg: New option --no-keyring.
26398 + commit 073be51a866cb5600479c504a44ae5ac94a449a2
26399 * g10/gpg.c (oNoKeyring): New.
26400 (opts): Add "--no-keyring".
26401 (main): Do not register any keyring if the option is used.
26403 gpg: Document use of node flags in import.c and remove unused args.
26404 + commit fdfde91595109e51a5b8fafd292244ad41dfb83d
26405 * g10/import.c (NODE_GOOD_SELFSIG): New. Use instead of 1.
26406 (NODE_BAD_SELFSIG): New. Use instead of 2.
26407 (NODE_DELETION_MARK): New. Use instead of 4.
26408 (NODE_FLAG_A): New. Use to mark new nodes in merge_blocks.
26409 (chk_self_sigs): Remove unused args FNAME and PK.
26410 (import_one): Adjust call. Simplify error return because
26411 chk_self_sigs does not return an error code.
26412 (append_uid, append_key, merge_sigs, merge_keysigs): Remove unsued
26413 args FNAME and KEYID.
26414 (merge_blocks, import_one, import_secret_one)
26415 (import_revoke_cert): Remove unused arg FNAME.
26417 gpg: Get rid of an unused arg in a function in getkey.c.
26418 + commit 7e0c48eb6f18a80142ca2a0f76fe8d270a4e5b33
26419 * g10/getkey.c (pk_from_block): Remove unused arg CTX. Change all
26422 gpg: Change calling convention for a function in getkey.c.
26423 + commit 9385dfeb9dd6d83608a10c7896c341f585a25a2b
26424 * g10/getkey.c (merge_selfsigs): Remove arg CTX. Add args REQ_USAGE
26426 (finish_lookup): Adjust caller. Set LOOKUP_NOT_SELECTED here...
26427 (lookup): and not here.
26429 2016-07-05 Werner Koch <wk@gnupg.org>
26431 gpg: Fix possible out-of-bounds read in is_armored.
26432 + commit 5d1a9c4dc823b418db6c4686da55ee3abdf023b0
26433 * g10/armor.c (check_input): Call is_armored only if LEN >= 2.
26434 (unarmor_pump): Use a 2 byte buffer for is_armored.
26436 2016-07-05 Justus Winter <justus@g10code.com>
26438 tests: Honor environment variable 'TMP'.
26439 + commit 8270580a5a70874beeffcdd16221937db4bcdc93
26440 This fixes problems with long socket names, e.g. when doing distcheck.
26442 * tests/gpgscm/tests.scm (path-join): New function.
26443 (with-temporary-working-directory): Honor 'TMP'.
26444 (make-temporary-file): Likewise.
26445 * tests/migrations/Makefile.am (TMP): Default to '/tmp'.
26446 (TESTS_ENVIRONMENT): Set 'TMP'.
26447 * tests/openpgp/Makefile.am (TMP): Default to '/tmp'.
26448 (TESTS_ENVIRONMENT): Set 'TMP'.
26450 gpgscm: Improve robustness and compatibility.
26451 + commit f26fe4f73e8430d93c03d95a8a24fdabd078bb20
26452 * tests/gpgscm/ffi.c (do_getenv): Avoid gccism.
26453 (do_mkdtemp): Handle errors.
26455 tests/migrations: Fix distcheck.
26456 + commit b70d08827ddb56423ad610b4ebaaaf9cc763512f
26457 * tests/migrations/Makefile.am (TESTS): Rename test.
26458 (TEST_FILES): Update list.
26459 (EXTRA_DIST): Add common.scm.
26460 * tests/migrations/common.scm (GPGTAR): New variable.
26461 (dearmor): Rename and untar archive.
26462 * tests/migrations/extended-private-key-format.scm: Rename.
26464 * tests/migrations/extended-pkf.tar.asc: New file.
26465 * tests/migrations/extended-private-key-format.gpghome: Delete.
26466 * tests/migrations/from-classic.gpghome: Likewise.
26467 * tests/migrations/from-classic.scm (setup): Update.
26468 * tests/migrations/from-classic.tar.asc: New file.
26470 tools/gpgtar: Provide --create and --extract.
26471 + commit 0b8a3358798b7028be872a923da2e275da67d592
26472 * tools/gpgtar.c (cmd_and_opt_values): New values.
26473 (opts): New actions.
26474 (parse_arguments): Handle new actions.
26475 * tests/openpgp/gpgtar.scm: Test new interface.
26477 g10: Fix out-of-bounds read.
26478 + commit a6b87981f7ddef42b25703723162c647e312b125
26479 * g10/armor.c (use_armor_filter): We need two bytes for 'is_armored'.
26481 2016-07-04 Werner Koch <wk@gnupg.org>
26483 wks: Add command --read to gpg-wks-client.
26484 + commit 8c8ae043b8d65cb79e0e99c5bdbdcbf34714bd0c
26485 * tools/gpg-wks-client.c (aRead): New.
26486 (opts): Add command "--read".
26487 (main): Implement that.
26489 tests: Add a gettime test for sizeof (time_t) > 4.
26490 + commit 27d158ead4a2b9c52269ef28d050a49c786c7d13
26491 * common/t-gettime.c (test_isotime2epoch): Add 4 more tests.
26493 2016-07-03 Werner Koch <wk@gnupg.org>
26495 gpg: Avoid spurious failures on keyblocks with no or only deleted nodes.
26496 + commit 9177a897732b3cebf3f15c97c1f613f71b6318fe
26497 * g10/import.c (write_keyblock_to_output): Clear ERR on success.
26499 wks: Let the client only export the requested UID.
26500 + commit 1bfed0bbc5ec9d60d4fb3a0f5c865923ed3563e7
26501 * tools/gpg-wks-client.c (get_key): Export only the requested uid.
26503 tools: Call sendmail directly from the wks tools.
26504 + commit 7705f310f1406fe49b45e16c371b09863313f24f
26505 * tools/send-mail.c, tools/send-mail.h: New.
26506 * tools/wks-util.c: New.
26507 * tools/Makefile.am (gpg_wks_server_SOURCES): Add them.
26508 (gpg_wks_client_SOURCES): Ditto.
26509 * tools/gpg-wks.h (opt): Add fields use_sendmail and output.
26510 * tools/gpg-wks-client.c: Add options --send and --output. Rename
26511 command --send to --create.
26512 (command_send, send_confirmation_response): Output via wks_send_mime.
26513 * tools/gpg-wks-server.c: Add options --send and --output.
26514 (send_confirmation_request): Output via wks_send_mime.
26515 (check_and_publish): Add hack for name-value bug.
26517 2016-07-02 Werner Koch <wk@gnupg.org>
26519 tools: Add options to gpg-wks-server.
26520 + commit c619035d9cd0c9cef62facf5365321289051f9a0
26521 * tools/gpg-wks.h (opt): Add 'default_from' and 'extra_headers'.
26522 * tools/gpg-wks-server.c (oFrom, oHeader): New.
26523 (parse_arguments): Set them and check args.
26524 (get_submission_address): New.
26525 (send_confirmation_request): Set correct From address. Add extra
26527 (process_new_key): Return an error code.
26529 tools: Extend mime-maker.c:mime_maker_add_header.
26530 + commit 0e36a1d1fb79c2b75c081616eed00075190b38aa
26531 * tools/mime-maker.c (add_header): Check header name and allow
26533 (mime_maker_add_header): Add mode for a syntax check.
26535 doc: Describe filter expressions.
26536 + commit 442efa9b3ff211c692b6967a944b3d9371ad1bb7
26537 * doc/gpg.texi: Remove some superfluous .E.
26538 (FILTER EXPRESSIONS): New.
26540 yat2m: Fix table formatting.
26541 + commit aae3cdb61555db4efb26f522030c8303a731d4a9
26542 * doc/yat2m.c (proc_texi_cmd): Use .TQ for @itemx. Print a .P at the
26543 end of a level 0 table.
26545 2016-07-01 Werner Koch <wk@gnupg.org>
26547 gpg: New option --export-filter.
26548 + commit 7bfc86c938d11c14ea78b196c82ceba2a2f5317d
26549 * g10/gpg.c (oExportFilter): New.
26550 (opts): Add --export-filter.
26551 (main): Handle option.
26552 * g10/export.c: Include recsel.h, init.h, and mbox-util.h.
26553 (export_keep_uid): New global var.
26554 (cleanup_export_globals): New.
26555 (parse_and_set_export_filter): New.
26556 (filter_getval): New.
26557 (apply_keep_uid_filter): New.
26558 (do_export_stream): Apply filter if set.
26560 gpg: New option --import-filter.
26561 + commit 5137bf73ccc98a72c2eeac148e4d4b5d58f0a854
26562 * g10/gpg.c (oImportFilter): New.
26563 (opts): Add --import-filter.
26564 (main): Handle option.
26565 * g10/import.c: Include recsel.h, init.h, and mbox-util.h.
26566 (import_keep_uid): New global var.
26567 (cleanup_import_globals): New.
26568 (parse_and_set_import_filter): New.
26569 (filter_getval): New.
26570 (apply_keep_uid_filter): New.
26571 (import_one): Apply filter if set.
26573 gpg: Allow to cache the mbox in a user id struct.
26574 + commit f015552374d69e28292a12f2b91ab34d65c9b457
26575 * g10/packet.h (PKT_user_id): Add field 'mbox'.
26576 * g10/free-packet.c (free_user_id): Free that.
26578 gpg: Make sure a user ID packet has always a terminating Nul in memory.
26579 + commit d8bce478be3ae9e401841a77d189ef3c81ccb757
26580 * g10/keygen.c (write_uid): Avoid overflow.
26582 common: Add function to select records etc.
26583 + commit 681c6ef757a73fc1a63a552186e038db179494aa
26584 * common/recsel.c, common/recsel.h: New.
26585 * common/t-recsel.c: New.
26587 common: Smart up register_mem_cleanup_func.
26588 + commit 6446a6b3dfd3b2e68b4285870f902ed1f86b0866
26589 * common/init.c (register_mem_cleanup_func): Avoid double registration.
26591 2016-07-01 Justus Winter <justus@g10code.com>
26593 common: Annotate semi-static allocation.
26594 + commit 49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87
26595 * common/argparse.c (optfile_parse): Allow string arguments to leak.
26597 g10: Fix memory leak.
26598 + commit 78aeb236fe4ff3a6d51b3095148e7086f2a6e9a8
26599 * g10/keyserver.c (parse_keyserver_uri): Free URI.
26601 tools/gpgtar: Annotate semi-static allocation.
26602 + commit cff63da930b6b3f0253668911e0931713b2b584a
26603 * tools/gpgtar.c (shell_parse_argv): Annotate argument vector as
26606 g10: Fix memory leak.
26607 + commit c454922ffa71929c810c6ff048d902498575302f
26608 * g10/import.c (transfer_secret_keys): Release curve from the previous
26611 g10: Fix build with disabled kbnode cache.
26612 + commit ff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614
26613 * g10/kbnode.c (release_unused_nodes): Fix build with disabled kbnode
26616 g10: Fix memory leak.
26617 + commit 44d4c695722d96b3bbef16f2843f62413b9670cd
26618 * g10/trustdb.c (tdb_get_validity_core): Fix kbnode leak.
26620 g10: Fix memory leak.
26621 + commit 5fafd18d474da7b763f5b82c73b6ca4288e136d7
26622 * g10/keygen.c (keygen_set_std_prefs): Fix memory leak.
26624 Fix trivial memory leaks in tests.
26625 + commit 6bfbc368f90b274192d3751274816091675f5109
26626 * dirmngr/t-ldap-parse-uri.c (check_ldap_escape_filter): Free result.
26627 * g10/t-stutter.c (main): Free file name.
26629 2016-06-30 Justus Winter <justus@g10code.com>
26631 tools: Fix trivial memory leak.
26632 + commit 8f39185d7bfa0bc749f9ccf4a041d2da4eba24ff
26633 * tools/gpg-connect-agent.c (main): Fix trivial memory leak.
26635 g10: Fix memory leak.
26636 + commit 401db0eebbcd28dca8f4059706bfbd18d8cc7528
26637 * g10/export.c (do_export_stream): Free secret parameters.
26639 g10: Fix memory leak.
26640 + commit eb4cdbefb05795b77a8a72189eff246b84442caf
26641 * g10/keygen.c (read_parameter_file): Free 'line'.
26643 g10: Fix memory leak.
26644 + commit 1de362af9094e0a1a0be60f77fbea7c5190a4dcc
26645 * g10/sign.c (mk_notation_policy_etc): Free 'mbox'.
26647 common: Fix memory leak.
26648 + commit 6b9a89e4c7d6f19de62e0a908a8d80c98bf99819
26649 * g10/textfilter.c (copy_clearsig_text): Free buffer.
26651 common: Fix memory leak.
26652 + commit d2d19063d3adf29340aeb39f14e1b1e9aacf41e7
26653 * common/iobuf.c (iobuf_set_partial_body_length_mode): Only create
26654 context if necessary.
26656 common: Fix memory leak.
26657 + commit 9037c23979866e6e085b3e32f973bcba590a2635
26658 * common/simple-pwquery.c (agent_open): Free socket path.
26660 g10: Fix keybox-related memory leaks.
26661 + commit 29beea6462cca32d3278b0f7f9364ff4342327b8
26662 * g10/keydb.c (keydb_release): Clear keyblock cache.
26663 (keydb_get_keyblock): Revert previous change.
26664 * kbx/keybox-blob.c (create_blob_finish): Free previous buffer, free
26665 fixups after applying them.
26666 (_keybox_release_blob): Free buffer. Currently, the buffer has been
26667 extracted before the keybox is released, but this is the right thing
26670 g10: Fix memory leak.
26671 + commit 5869f518cbd8b41b4c9880fc593216b9efeea430
26672 * g10/compress.c (release_context): Free buffers.
26674 g10: Fix memory leak.
26675 + commit 84f262102be19334534cccc66ed7eceea2714527
26676 * g10/sign.c (write_plaintext_packet): Free packet.
26678 g10: Fix memory leak.
26679 + commit abae8a9dc8a00cf46291ccb40644b3a7aa477307
26680 * g10/mainproc.c (release_list): Do not exit early if list is NULL,
26681 there are other resources that must be released.
26683 gpgscm: Fix reallocating string ports.
26684 + commit 5003caa8fdc80afd5748835c06621014f83e6ec4
26685 * tests/gpgscm/scheme.c (realloc_port_string): Use memcpy because
26686 Scheme strings may contain 0s.
26688 gpgscm: Free memory backing string ports.
26689 + commit 599ad21104e622acbd1230d90d6a23abf9145499
26690 * tests/gpgscm/scheme.c (finalize_cell): Free memory backing string
26693 gpgscm: Use the allocator from libgcrypt.
26694 + commit d4ede89981c769b0626ab2b37615da1d12a3b078
26695 * tests/gpgscm/main.c (main): Use the allocator from libgcrypt.
26698 + commit dbcb342eaf1738798a5378d9ecd83c7946140d54
26699 * g10/keyedit.c (keyedit_quick_revuid): Fix call to
26700 'check_trustdb_stale'.
26702 2016-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
26704 g10: Implement gpg --quick-revuid.
26705 + commit 55d112eeb0743e90be46d15dbae67368ee7d4b50
26706 * g10/revoke.c (get_default_uid_revocation_reason): New.
26707 * g10/keyedit.c (menu_revuid): Break out creation of uid revocation
26708 into new function core_revuid.
26709 * g10/keyedit.c (keyedit_quick_revuid): New. Selects key and
26710 uid, invokes core_revuid.
26711 * g10/gpg.c (main): Handle --quick-revuid argument.
26712 * doc/gpg.texi: Document --quick-revuid.
26714 2016-06-29 Werner Koch <wk@gnupg.org>
26716 tools: Add gpg-wks-client and gpg-wks-server.
26717 + commit 5d6c83deaa11327366b0038928200b9f9f85b426
26718 * configure.ac: Add option --enable-wks-tools
26719 * tools/gpg-wks-client.c: New.
26720 * tools/gpg-wks-server.c: New.
26721 * tools/gpg-wks.h: new.
26722 * tools/wks-receive.c: New.
26723 * tools/call-dirmngr.c, tools/call-dirmngr.h: New.
26725 build: Improve GNUPG_BUILD_PROGRAM macro.
26726 + commit d8ee0d79a702c92a257884bab86183d32d16ff0e
26727 * acinclude.m4 (GNUPG_BUILD_PROGRAM): Allow for dash in options.
26729 tools: Add modules for MIME parsing and creating.
26730 + commit c334fa8df0e3901857e1a277d3277a873ae4af74
26731 * tools/mime-maker.c: New.
26732 * tools/mime-maker.h: New.
26733 * tools/mime-parser.c: New.
26734 * tools/mime-parser.h: New.
26736 2016-06-28 Justus Winter <justus@g10code.com>
26738 gpgscm: Fix memory leaks.
26739 + commit 9c67958c4737b34c60ef2076f57234eec155eb36
26740 * tests/gpgscm/ffi-private.h (ffi_schemify_name): Fix prototype.
26741 (ffi_define_function_name): Free schemified name.
26742 (ffi_define_function): Likewise.
26743 (ffi_define_constant): Likewise.
26744 (ffi_define_variable_pointer): Likewise.
26745 * tests/gpgscm/ffi.c (do_wait_processes): Free arrays.
26746 (ffi_schemify_name): Fix type.
26747 * tests/gpgscm/main.c (main): Free 'sc'.
26749 gpgscm: Free file names.
26750 + commit 6cb2be91a7cc8a9b8ec42f3956adbb19347318e3
26751 * tests/gpgscm/scheme.c (scheme_load_named_file): Free file name.
26753 gpgscm: Fix buffer overflow.
26754 + commit 56cebdc30c10eaec179a6911e308074264d876ae
26755 * tests/gpgscm/scheme.c (store_string): Avoid writing past allocated
26758 g10: Fix memory leaks.
26759 + commit c57501cc5fa84dbaf560c0fc18853c9540e918af
26760 * g10/keydb.c (keydb_get_keyblock): Free 'sigstatus' and 'iobuf'.
26761 * g10/t-keydb-get-keyblock.c: Fix trivial memory leaks.
26762 * g10/t-keydb.c: Likewise.
26764 common: Fix memory leaks.
26765 + commit c14ef10fc347d966a1efcb5c2000cbf3aaafa905
26766 * common/ccparray.c (ccparray_put): Free old array.
26767 * common/stringhelp.c (do_make_filename): Free 'home'.
26768 * common/t-convert.c: Fix trivial memory leaks.
26769 * common/t-iobuf.c: Likewise.
26770 * common/t-mbox-util.c: Likewise.
26771 * common/t-name-value.c: Likewise.
26772 * common/t-stringhelp.c: Likewise.
26773 * common/t-strlist.c: Likewise.
26775 2016-06-28 Werner Koch <wk@gnupg.org>
26777 dirmngr: add option to retrieve extra WKS info.
26778 + commit b1e8e0d4b945e077966fb98175191aed056bd957
26779 * dirmngr/server.c (cmd_wkd_get): Add option --submission-address.
26781 gpg: Add hack to --quick-gen-key to create Curve25519 keys.
26782 + commit 20ca075d9605e27e25a780bcc465c7371400ca61
26783 * g10/keygen.c (quick_generate_keypair): Add special algo string
26786 common: New function rfctimestamp.
26787 + commit 1ddf5b846fc058171af5f2784dad866b73eb0205
26788 * common/gettime.c (rfctimestamp): New.
26790 common: Add missing header file for clarity.
26791 + commit 781e614e3b4586da27e54caca39b6a7ed42fc7c7
26792 * common/zb32.c: Include zb32.h.
26794 2016-06-28 Justus Winter <justus@g10code.com>
26796 tools/gpgtar: Fix handling of '-'.
26797 + commit 4819f687c48c7972c39ae29c7af1e891a4d57360
26798 * tools/gpgtar-extract.c (gpgtar_extract): Use stdin if file is '-'.
26799 * tools/gpgtar-list.c (gpgtar_list): Likewise.
26801 common: Close input stream.
26802 + commit d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa
26803 * common/exechelp-posix.c (gnupg_spawn_process): Also close the input
26804 stream in the child.
26806 common: Fix copying data from the spawned child.
26807 + commit 8f79c31b4d465eeaf81c8046c35bb8c34512dd8d
26808 Fixes intermittent gpgtar failures.
26810 * common/exectool.c (copy_buffer_do_copy): Initialize 'nwritten'.
26811 (gnupg_exec_tool_stream): Loop until all data is copied.
26813 2016-06-28 NIIBE Yutaka <gniibe@fsij.org>
26815 g10: Fix --list-packets.
26816 + commit 52f65281f9743c42a48bf5a3354c9ab0ecdb681a
26817 * g10/gpg.c (main): Call set_packet_list_mode after assignment of
26819 * g10/mainproc.c (do_proc_packets): Don't stop processing with
26820 --list-packets as the comment says.
26821 * g10/options.h (list_packets): Fix the comment.
26822 * g10/parse-packet.c: Fix the condition for opt.list_packets.
26824 2016-06-25 Werner Koch <wk@gnupg.org>
26826 build: Add aclocal macro from pkg-config.
26827 + commit b6872353bae778d11730f5d0afd2192750777647
26830 yat2m: Silence lint warnings and fix a printf format bug.
26831 + commit 22b9bea1c3d0e944aa539a87d79e47d92ca5309f
26832 * doc/yat2m.c (ATTR_PRINTF, ATTR_NR_PRINTF, ATTR_MALLOC): New.
26833 (die, err, inf, xmalloc, xcalloc): New prototypes with attributes.
26834 (get_section_buffer): Take care of !N_SECTIONS.
26835 (proc_texi_cmd): Cast precision format arg.
26836 (proc_texi_buffer): Do not set IN_CMD when not used afterwards.
26838 2016-06-24 Werner Koch <wk@gnupg.org>
26840 gpg: New import option "import-export".
26841 + commit 7bca3be65e510eda40572327b87922834ebe07eb
26842 * g10/import.c (parse_import_options): Add option "import-export".
26843 (write_keyblock_to_output): New.
26844 (import_one): Implement option.
26846 2016-06-23 Werner Koch <wk@gnupg.org>
26848 gpg: New import option "import-show".
26849 + commit 1e5959ec059ba41f4de1e2f953300bc040efc16f
26850 * g10/options.h (IMPORT_SHOW): New.
26851 * g10/import.c (parse_import_options): Add "import-show".
26852 (import_one): Implement that.
26854 gpg: Do not print the validity after key generation.
26855 + commit 09c6f7135150efbbeb459d4ae0189a81e9d180f8
26856 * g10/keylist.c (struct keylist_context): Add field NO_VALIDITY.
26857 (list_keyblock_print): Take care of it.
26858 (list_keyblock_direct): Add arg NO_VALIDITY.
26859 * g10/keygen.c (do_generate_keypair): Merge keyblock and print w/o
26862 common: Fix possible small memory leak in b64dec.c.
26863 + commit c229ba4d8b9b16052ee0b9573bed7905be602cdf
26864 * common/b64dec.c (b64dec_finish): Always release TITLE.
26866 2016-06-23 Justus Winter <justus@g10code.com>
26868 tests/openpgp: Fake the system time for the tofu test.
26869 + commit e584d6468a2e72cd01e55f46104f9f96b56c0b66
26870 The keys in the tofu test are set to expire on 2016-09-17. Fake the
26871 system time for this test.
26873 This commit includes changes to the old test as well, for those who
26874 need to backport it.
26876 * tests/openpgp/gpg-agent.conf.tmpl: Drop trailing newlines.
26877 * tests/openpgp/tofu.scm: Fake system time.
26878 * tests/openpgp/tofu.test: Likewise.
26880 gpgscm: Handle exceptions in the transformation monad.
26881 + commit 145910afc077e7a5df6cc8b10e180dfa6ce38cc3
26882 * tests/gpgscm/tests.scm (pipe:do): Raise errors.
26883 (tr:spawn): Catch and return errors.
26884 (tr:call-with-content): Likewise.
26885 (tr:{open,write-to,pipe-do,assert-identity,assert-weak-identity}):
26888 tests/openpgp: Improve tests.
26889 + commit 1e822654c1dcfc23a9ef689f4e18c0ebba18baca
26890 * tests/openpgp/multisig.scm: Simplify test.
26891 * tests/openpgp/setup.scm (dearmor): Use pipe.
26893 gpgscm: Add types for special objects.
26894 + commit 332fa86982dc811640ac8643332d8375816e5b81
26895 * tests/gpgscm/scheme.c (enum scheme_types): Add types for boolean,
26896 nil, eof, and the sink object.
26897 (type_to_string): Handle new types.
26898 (scheme_init_custom_alloc): Give special objects a type.
26900 gpgscm: Fix Scheme initialization.
26901 + commit e6e56adf208f194ecafda29bb1c1c06655348432
26902 This potentially causes a crash if the garbage collector marks an eof
26905 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize
26908 2016-06-23 Werner Koch <wk@gnupg.org>
26910 common: Add dedicated private key functions to name-value.c.
26911 + commit 3ead21da80da4570e77036cc05303914c9b1f364
26912 * common/name-value.c (struct name_value_container): Add field
26913 'private_key_mode'.
26914 (my_error): New. Use instead of gpg_error.
26915 (nvc_new_private_key): New.
26916 (nve_release): Add arg 'private_key_mode'.
26917 (nvc_release): Call nve_release with private_key_mode flag.
26918 (nvc_delete): Ditto.
26919 (_nvc_add): Do no special case "Key:" in non-private_key_mode.
26920 (nvc_get_private_key): Return error in non-private_key_mode.
26921 (nvc_set_private_key): Ditto.
26922 (nvc_parse): Factor all code out to ...
26923 (do_nvc_parse): new. Add arg 'for_private_key'.
26924 (nvc_parse_private_key): New.
26925 * agent/findkey.c (write_extended_private_key): Replace nvc_parse by
26926 nvc_parse_private_key.
26927 (read_key_file): Ditto.
26929 * common/t-name-value.c (private_key_mode): New variable.
26930 (my_nvc_new): New. Replace all callers.
26931 (test_key_extraction): Take mode in account.
26932 (run_tests): Ditto.
26933 (run_modification_tests): Ditto.
26935 (main): Add option --parse and rename --parse to --parse-key.
26937 common: Rename external symbols in name-value.c.
26938 + commit d74d23d860c1e5039bd595c31c846782c5cb8025
26939 * common/name-value.c, common/name-value.h: Rename symbol prefixes
26940 from "pkc_" to "nvc_" and from "pke_" to "nve_". Change all callers.
26942 common: Rename private-keys.c to name-value.c.
26943 + commit b841a883a2a66807aa427e65d49067584bedfbe2
26944 * common/private-keys.c: Rename to name-value.c.
26945 * common/private-keys.h: Rename to name-value.h. Chage all users.
26946 * common/t-private-keys.c: Rename to t-name-value.c.
26947 * common/Makefile.am: Adjust accordingly.
26949 common: Add PGP armor decoding to b64dec.
26950 + commit 3694579bc4eef27ed53e1845bf03be38c299ce76
26951 * common/b64dec.c (decoder_states): Add new states.
26952 (b64dec_proc): Handle PGP armored format.
26954 2016-06-23 NIIBE Yutaka <gniibe@fsij.org>
26956 g10: Fix regression of card-edit/fetch.
26957 + commit 6f5ff1cfe449cf1f4cb7287bc57570eb794216b2
26958 * g10/card-util.c (fetch_url): Call keyserver_fetch instead of
26959 keyserver_import_fprint.
26961 2016-06-21 Justus Winter <justus@g10code.com>
26963 tests/migrations: Convert to Scheme and re-enable.
26964 + commit f548383d9af912bf93217068cc8aa99a9a6eda93
26965 * configure.ac: Re-enable.
26966 * tests/Makefile.am: Likewise.
26967 * tests/migrations/Makefile.am (TESTS): Use Scheme tests.
26968 * tests/migrations/common.scm: New file.
26969 * tests/migrations/extended-private-key-format.scm: Likewise.
26970 * tests/migrations/from-classic.scm: Likewise.
26971 * tests/migrations/extended-private-key-format.test: Drop file.
26972 * tests/migrations/from-classic.test: Drop file.
26974 gpgscm: Add more file handling functions.
26975 + commit c5e0ca5a59ebd91b67944ca125cc8cd73a9d243e
26976 * tests/gpgscm/ffi.c (do_glob): New function.
26977 (ffi_init): Define new function.
26978 * tests/gpgscm/tests.scm (basename-suffix): New function.x
26980 tests/openpgp: Port the remaining tests to Scheme.
26981 + commit 0340fcdac864109e3dd6edee759efc96e4d3f84e
26982 * tests/openpgp/Makefile.am (TESTS): Add new tests.
26983 * tests/openpgp/defs.scm (gpg-with-colons): New function.
26984 (get-config): Use new function.
26985 * tests/openpgp/export.scm: New file.
26986 * tests/openpgp/tofu.scm: Likewise.
26988 gpgscm: Improve test framework.
26989 + commit 65081c31e7536d8fb5effcc2c9aeeffc120c9a69
26990 * tests/gpgscm/lib.scm (echo): Move...
26991 * tests/gpgscm/tests.scm (echo): ... here.
26992 (info, error, skip): And use echo here.
26993 (file-exists?): New function.
26994 (tr:spawn): Check that source exists and if the sink has been created.
26995 (tr:call-with-content): Hand in optional arguments.
26997 gpgscm: Use native string searching functions.
26998 + commit 5fbbc4b334a73150e709a4802cac99abd8ada61d
26999 * tests/gpgscm/ffi-private.h: Handle character arguments.
27000 * tests/gpgscm/ffi.c (do_string_index): New function.
27001 (do_string_rindex): Likewise.
27002 (do_string_contains): Likewise.
27003 (ffi_init): Define new functions.
27004 * tests/gpgscm/ffi.scm (ffi-define): New macro.
27005 * tests/gpgscm/lib.scm (string-index): Use native function,
27006 demonstrate behavior.
27007 (string-rindex): Likewise.
27008 (string-contains?): Likewise.
27009 Demonstrate behavior of various other functions.
27010 (read-all): Rework so that it can handle large files.
27012 gpgscm: Improve error reporting.
27013 + commit d99949fc8cf541018267964629992d55c97ca9ab
27014 * tests/gpgscm/scheme.c (type_to_string): New function.
27015 (Eval_Cycle): Include actual type in error message.
27017 gpgscm: Make memory allocation failures fatal.
27018 + commit 616582071a2c76c4fb529d4da549aa95ee5d78d6
27019 * tests/gpgscm/scheme.c (Eval_Cycle): Exit if we run out of memory.
27021 2016-06-21 Werner Koch <wk@gnupg.org>
27023 sm: Do not install cacert and other root certificates.
27024 + commit c19b2061274cd50838e62a2acbdc7e7d24888e7e
27025 * doc/Makefile.am (dist_pkgdata_DATA): Move qualified.txt and
27026 com-certs.pem to ...
27027 (EXTRA_DIST): here.
27029 2016-06-20 Werner Koch <wk@gnupg.org>
27031 gpg: Add experimental support for an issuer fpr.
27032 + commit 955baf04364721457cd99aad21942523cd50498c
27033 * common/openpgpdefs.h (SIGSUBPKT_ISSUER_FPR): New.
27034 * g10/build-packet.c (build_sig_subpkt_from_sig): Add arg PKSK and
27035 insert the issuer fpr if needed.
27036 * g10/sign.c (write_signature_packets): Pass signing key.
27037 (make_keysig_packet): Ditto.
27038 (update_keysig_packet): Ditto.
27039 * g10/parse-packet.c (dump_sig_subpkt): Print issuer fpr.
27040 (parse_one_sig_subpkt): Detect issuer fpr.
27041 (can_handle_critical): Add issuer fpr.
27042 * g10/mainproc.c (check_sig_and_print): Try to get key via fingerprint.
27043 * g10/gpgv.c (keyserver_import_fprint): New stub.
27044 * g10/test-stubs.c (keyserver_import_fprint): New stub.
27046 gpg: New option --rfc4880bis.
27047 + commit ee2d9061d7abc36b857165a8395203a97380baa2
27048 * g10/options.h (struct opt): Add field flags.rfc4880bis.
27049 * g10/gpg.c (oRFC4880bis): new.
27050 (opts): add --rfc4880bis.
27051 (main): Implement that and print a warning.
27053 2016-06-19 Niibe Yutaka <gniibe@fsij.org>
27055 scd: Reset nonnull_nad to zero for VENDOR_GEMPC.
27056 + commit 971064f8b7ad676326b2a468f688037a303717df
27057 * (parse_ccid_descriptor): nonnull_nad = 0 for all GEMPC device.
27059 2016-06-17 Werner Koch <wk@gnupg.org>
27061 tests: Make make distcheck work again.
27062 + commit ce1689ea0720552ac900d7b2c4139caf24452018
27063 * Makefile.am (tests): Remove test code which would led to doubling
27064 calls to for e.g. "make distclean".
27065 * tests/Makefile.am: Typo fixes.
27066 * tests/gpgscm/Makefile.am (EXTRA_DIST): Fix name of License file.
27068 (check): Replace by check-local because check is a standard automake
27070 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Replace gmake0sim by
27071 automake generated macro.
27072 (EXTRA_DIST): Add defs.scm
27074 gpgscm: Silence compiler warnings.
27075 + commit dfe5282e5859409849a17d68b2b3a046370f65bd
27076 * tests/gpgscm/scheme.c (mk_integer): Rename arg NUM to N.
27077 (fill_vector): Ditto.
27078 (mark): Rename var NUM to N.
27079 (set_slot_in_env): Mark SC as unused.
27080 (is_any): Mark P as unused.
27082 Add license notices for TinySCHEME.
27083 + commit dc1db12d2c4f9f12bc3f7de37f76293b316c3f35
27084 * tests/gpgscm/COPYING: Rename to ...
27085 * tests/gpgscm/LICENSE.TinySCHEME: this.
27086 * AUTHORS: Add a note about TinySCHEME.
27087 * build-aux/speedo/w32/pkg-copyright.txt: Add TinySCHEME notice.
27089 2016-06-17 Justus Winter <justus@g10code.com>
27091 tests/openpgp: Reimplement tests in Scheme.
27092 + commit 9609cb20e4caee739b9fc4fd36797029d2970041
27093 * Makefile.am: Build the test infrastructure on Windows.
27094 * tests/openpgp/Makefile.am (required_pgms): Add gpgscm.
27095 (TESTS_ENVIRONMENT): Make sure gpgscm and the libraries are found.
27096 (TESTS): Replace tests with the new Scheme implementations.
27097 * tests/openpgp/4gb-packet.scm: New file.
27098 * tests/openpgp/README: Likewise.
27099 * tests/openpgp/armdetach.scm: Likewise.
27100 * tests/openpgp/armdetachm.scm: Likewise.
27101 * tests/openpgp/armencrypt.scm: Likewise.
27102 * tests/openpgp/armencryptp.scm: Likewise.
27103 * tests/openpgp/armor.scm: Likewise.
27104 * tests/openpgp/armsignencrypt.scm: Likewise.
27105 * tests/openpgp/armsigs.scm: Likewise.
27106 * tests/openpgp/clearsig.scm: Likewise.
27107 * tests/openpgp/conventional-mdc.scm: Likewise.
27108 * tests/openpgp/conventional.scm: Likewise.
27109 * tests/openpgp/decrypt-dsa.scm: Likewise.
27110 * tests/openpgp/decrypt.scm: Likewise.
27111 * tests/openpgp/default-key.scm: Likewise.
27112 * tests/openpgp/defs.scm: Likewise.
27113 * tests/openpgp/detach.scm: Likewise.
27114 * tests/openpgp/detachm.scm: Likewise.
27115 * tests/openpgp/ecc.scm: Likewise.
27116 * tests/openpgp/encrypt-dsa.scm: Likewise.
27117 * tests/openpgp/encrypt.scm: Likewise.
27118 * tests/openpgp/encryptp.scm: Likewise.
27119 * tests/openpgp/finish.scm: Likewise.
27120 * tests/openpgp/genkey1024.scm: Likewise.
27121 * tests/openpgp/gpgtar.scm: Likewise.
27122 * tests/openpgp/import.scm: Likewise.
27123 * tests/openpgp/mds.scm: Likewise.
27124 * tests/openpgp/multisig.scm: Likewise.
27125 * tests/openpgp/run-tests.scm: Likewise.
27126 * tests/openpgp/seat.scm: Likewise.
27127 * tests/openpgp/setup.scm: Likewise.
27128 * tests/openpgp/signencrypt-dsa.scm: Likewise.
27129 * tests/openpgp/signencrypt.scm: Likewise.
27130 * tests/openpgp/sigs-dsa.scm: Likewise.
27131 * tests/openpgp/sigs.scm: Likewise.
27132 * tests/openpgp/use-exact-key.scm: Likewise.
27133 * tests/openpgp/verify.scm: Likewise.
27134 * tests/openpgp/version.scm: Likewise.
27136 tests/gpgscm: Add a TinySCHEME-based test driver.
27137 + commit d2ce3f9eee34e380536049c0c9d26ed66273f094
27138 * configure.ac: Add new component.
27139 * tests/Makefile.am: Likewise.
27140 * tests/gpgscm/Makefile.am: New file.
27141 * tests/gpgscm/ffi-private.h: Likewise.
27142 * tests/gpgscm/ffi.c: Likewise.
27143 * tests/gpgscm/ffi.h: Likewise.
27144 * tests/gpgscm/ffi.scm: Likewise.
27145 * tests/gpgscm/lib.scm: Likewise.
27146 * tests/gpgscm/main.c: Likewise.
27147 * tests/gpgscm/private.h: Likewise.
27148 * tests/gpgscm/repl.scm: Likewise.
27149 * tests/gpgscm/scheme-config.h: Likewise.
27150 * tests/gpgscm/t-child.c: Likewise.
27151 * tests/gpgscm/t-child.scm: Likewise.
27152 * tests/gpgscm/tests.scm: Likewise.
27154 tests/gpgscm: Foreign objects support for TinySCHEME.
27155 + commit 56c36f2932fe2baf8e46efdea4315cf33f3c0338
27156 * tests/gpgscm/scheme-private.h (struct cell): Add 'foreign_object'.
27157 (is_foreign_object): New prototype.
27158 (get_foreign_object_{vtable,data}): Likewise.
27159 * tests/gpgscm/scheme.c (enum scheme_types): New type.
27160 (is_foreign_object): New function.
27161 (get_foreign_object_{vtable,data}): Likewise.
27162 (mk_foreign_object): Likewise.
27163 (finalize_cell): Free foreign objects.
27164 (atom2str): Pretty-print foreign objects.
27165 (vtbl): Add new functions.
27166 * tests/gpgscm/scheme.h (struct foreign_object_vtable): New type.
27167 (mk_foreign_object): New prototype.
27168 (struct scheme_interface): Add new functions.
27170 Patch from Thomas Munro,
27171 https://sourceforge.net/p/tinyscheme/patches/13/
27173 tests/gpgscm: Dynamically allocate string buffer.
27174 + commit 8e5ad9aabdd57457f76078924d33acb94b75a877
27175 * tests/gpgscm/scheme-config.h (strbuff{,_size}): Make buffer dynamic.
27176 * tests/gpgscm/scheme.c (expand_strbuff): New function.
27177 (putcharacter): Adapt length test.
27178 (readstrexp): Expand buffer if necessary.
27179 (scheme_init_custom_alloc): Initialize buffer.
27180 (scheme_deinit): Free buffer.
27182 Patch from Thomas Munro,
27183 https://sourceforge.net/p/tinyscheme/patches/11/
27185 tests/gpgscm: Make exception value available.
27186 + commit 3b100da9ada9171d873a796eaf3351d4fceed394
27187 * tests/gpgscm/init.scm (throw): Hand exception value to the handler.
27188 (catch): And bind it to *error*.
27190 tests/gpgscm: Add package macro.
27191 + commit 2907381f4a7b422823b2304ebe550acbb2f66480
27192 * tests/gpgscm/init.scm: Add package macro from manual.
27194 tests/gpgscm: Expose function to open streams as Scheme ports.
27195 + commit 55275b8e2b43a3420d85a1a931e02febaa1113e7
27196 * tests/gpgscm/scheme.c (vtbl): Add 'port_from_file' to the vtable.
27197 * tests/gpgscm/scheme.h (struct scheme_interface): New field
27198 'mk_port_from_file'.
27200 tests/gpgscm: Nicer error message.
27201 + commit 13bba1357478815a85f5c0db3607ebb6cd574f56
27202 * tests/gpgscm/scheme.c (opexe_0): Include the value that we tried to
27203 evaluate as function-like in the error message.
27205 tests/gpgscm: Fix error hook.
27206 + commit e02c1ccae13e4eb55afef8de4f29022c709404eb
27207 * tests/gpgscm/init.scm (*error-hook*): Fix error hook so that the
27208 whole error message is displayed.
27210 tests/gpgscm: Handle unhandled enumeration values.
27211 + commit 133f25703a47e9bbc28c4532934f405ecdeb2de0
27212 * tests/gpgscm/scheme.c (opexe_{3,4}): Handle unhandled enumeration
27213 values in the opcode dispatching code.
27215 tests/gpgscm: Verbatim import of latest TinySCHEME.
27216 + commit cb989504cdd4f0ff902d31af871dc3ee0d9419ac
27217 Revision 110 from svn://svn.code.sf.net/p/tinyscheme/code/trunk
27219 * tests/gpgscm/COPYING: New file.
27220 * tests/gpgscm/Manual.txt: Likewise.
27221 * tests/gpgscm/init.scm: Likewise.
27222 * tests/gpgscm/opdefines.h: Likewise.
27223 * tests/gpgscm/scheme-private.h: Likewise.
27224 * tests/gpgscm/scheme.c: Likewise.
27225 * tests/gpgscm/scheme.h: Likewise.
27227 2016-06-17 Werner Koch <wk@gnupg.org>
27229 scd: Make option --homedir work.
27230 + commit 4e41745b3ea3bb8ffc50af6bafeb1de9c928812f
27231 * scd/scdaemon.c (opts): Add --homedir.
27233 2016-06-16 Werner Koch <wk@gnupg.org>
27236 + commit b3df4e2ac6aa9b4154e923f71b4221533043e5ac
27239 2016-06-16 Yuri Chornoivan <yurchor@ukr.net>
27241 po: Update Ukrainian translation.
27242 + commit d4ce1b04431cf02ebc1bdc7150ad587d599f2a95
27245 2016-06-16 Ineiev <ineiev@gnu.org>
27247 po: Update Russian translation.
27248 + commit 2273e4f999325cdc9d275507cd07c7e95d62a377
27251 2016-06-16 Werner Koch <wk@gnupg.org>
27253 po: Update German translation.
27254 + commit 69f1b0b041c251abb66f000db173a602693bb18f
27257 Add missing files so that make distcheck works again,
27258 + commit 4d7d292cd5b616b209dfd4302a1deffe11b7be0e
27259 * tests/openpgp/Makefile.am (CLEANFILES): Add created file
27261 * tools/Makefile.am (EXTRA_DIST): Add no-libgcrypt.c.
27263 tools: Fix typo in function name of symcryptrun.
27264 + commit e44dd878df58dab27c9cd411d80c4c81501e649a
27265 * tools/symcryptrun.c (main): Fix typo.
27267 2016-06-15 Niibe Yutaka <gniibe@fsij.org>
27269 g10: Fix another race condition for trustdb access.
27270 + commit 35a3ce2acf78a95fecbccfd8db0560cca24232df
27271 * g10/tdbio.c (create_version_record): Call create_hashtable to always
27272 make hashtable, together with the version record.
27273 (get_trusthashrec): Remove call to create_hashtable.
27275 2016-06-14 Werner Koch <wk@gnupg.org>
27277 gpg: Print the subkey's curve and not the primary key curve.
27278 + commit b56aebe76657ce6efa9c6819d5a8c2a31c2bbbba
27279 * g10/keylist.c (list_keyblock_colon): Use PK2 for the subkey's curve.
27281 ldap: Improve info output for v3 fallback.
27282 + commit b7e3dfcf139284d30921cf44e7bab43d4244cc37
27283 * dirmngr/dirmngr_ldap.c (fetch_ldap): Do not use log_debug in an
27284 unprotected section. Replace log_debug by log_info in verbose mode.
27286 2016-06-14 Andre Heinecke <aheinecke@intevation.de>
27288 dirmngr: Try ldap protocol V3 as fallback.
27289 + commit f989b6ee0db96c36f13f093cbbcfd1d5b472d03c
27290 * dirmngr/dirmngr_ldap.c (fetch_ldap): Try V3 Protocol in case
27291 default Protocol gives error.
27293 dirmngr: Print ldap error if bind fails.
27294 + commit 5faddcb2927a997e05fb34eb270982096d1fe3a4
27295 * dirmngr/dirmngr_ldap.c (fetch_ldap): Use ldap_err2string on bind
27298 2016-06-14 Werner Koch <wk@gnupg.org>
27300 gpgsm: Allow ciphers AES192 and SERPENT256.
27301 + commit 5f9bd7a9e1ed4edcbb6c4e908d4bea5cd7dc9e68
27302 * sm/gpgsm.c (main): Add AES192 cipher. Allow SERPENT256.
27304 doc: Add files and envvars to a new index.
27305 + commit 2423238ee4c8a8c531dfe9e45c95f2760b638faa
27306 * doc/gnupg.texi: Define new index "ef".
27307 (Environment Index): New.
27309 gpg: Avoid endless loop in a tofu error case.
27310 + commit f980cd2e0e4694a38038f518f290017087d4ce33
27311 * g10/tofu.c (get_trust): Do not jump to out.
27313 gpg: Split tofu's get_trust function into several smaller ones.
27314 + commit 1affdf1efc42ed22dc023c92ca5134d5bcbf2686
27315 * g10/tofu.c (get_trust): Factor code out to ...
27316 (format_conflict_msg_part1): new and to ...
27317 (ask_about_binding): new.
27319 2016-06-13 Werner Koch <wk@gnupg.org>
27321 gpg: Un-deprecate option --auto-key-retrieve.
27322 + commit 9e126af215143fddbdc3949681abb9ffdb9153bb
27323 * g10/gpg.c (main): Remove deprecation warning.
27325 gpg: New option --disable-signer-uid, create Signer's UID sub-packet.
27326 + commit 61e7fd68c05ed185728e9da45f7a44a2323065ad
27327 * g10/gpg.c (oDisableSignerUID): New.
27328 (opts): New option '--disable-signer-uid'.
27329 (main): Set option.
27330 * g10/options.h (opt): Add field flags.disable_signer_uid.
27331 * g10/sign.c: Include mbox-util.h.
27332 (mk_notation_policy_etc): Embed the signer's uid.
27333 * g10/mainproc.c (check_sig_and_print): Do not use WKD for auto key
27334 retrieval if --disable-signer-uid is used.
27336 gpg: Try Signer's User ID sub-packet with --auto-key-retrieve.
27337 + commit 08c82b1b55d28ffd09b859205b7686bcefae5011
27338 * g10/packet.h (PKT_signature): Add field 'signers_uid'.
27339 * g10/parse-packet.c (parse_signature): Set this field.
27340 * g10/free-packet.c (free_seckey_enc): Free field.
27341 (copy_signature): Copy field.
27342 * g10/mainproc.c (akl_has_wkd_method): New.
27343 (check_sig_and_print): Extend NEWSIG status. If WKD is enabled try to
27344 locate a missing key via the signature's Signer's User ID sub-packet.
27345 Do this right before trying a keyserver lookup.
27347 2016-06-11 Werner Koch <wk@gnupg.org>
27349 gpg: Remove C-99ism, re-indent, and simplify one function.
27350 + commit 334e993a71d3abb7d30cb5ee05d578cecf0c3f67
27351 * g10/call-agent.c (struct keyinfo_data): Rename to
27352 keyinfo_data_parm_s.
27353 (agent_get_keyinfo): Replace C-99 style init.
27354 (keyinfo_status_cb): Use new fucntion split_fields.
27355 * g10/export.c (match_curve_skey_pk): Add missings returns error
27357 (cleartext_secret_key_to_openpgp): Better clear PK->PKEY first.
27359 common: New function split_fields.
27360 + commit 5ba99d9302cd86aee99958b71075d5288bb430aa
27361 * common/stringhelp.c (split_fields): New.
27362 * common/t-stringhelp.c: Include assert.h.
27363 (test_split_fields): New.
27366 2016-06-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
27368 g10: Export cleartext keys as cleartext.
27369 + commit c41c46fa84cabbed74a13ded51fc3a817a919367
27370 * g10/export.c (do_export_stream): If a key is stored by the agent in
27371 cleartext, then try to export it as cleartext.
27372 * tests/openpgp/export.test: For secret keys that are stored in
27373 cleartext, test should try to export without pinentry interaction.
27375 g10: Allow receiving cleartext secret keys from agent.
27376 + commit a3cb72af79ee645eda212f31ab0b266f2c3d9f29
27377 * g10/export.c (match_curve_skey_pk): New function, testing whether an
27378 OpenPGP public key and an S-expression use the same curve.
27379 * g10/export.c (cleartext_secret_key_to_openpgp): New function,
27380 filling in the secret key parameters of a PKT_public_key object from
27381 a corresponding cleartext S-expression.
27382 * g10/export.c, g10/main.h (receive_seckey_from_agent): Add cleartext
27383 parameter, enabling retrieval of the secret key, unlocked.
27384 * g10/export.c (do_export_stream): Send cleartext as 0, keeping current
27386 * g10/keygen.c (card_store_key_with_backup): Use cleartext=0 to ensure
27387 that smartcard backups are all passphrase-locked.
27389 g10: Add openpgp_protected flag to agent secret key export functions.
27390 + commit 7de74320767d15d915942a98ff47c00175a078ed
27391 * g10/call-agent.c, g10/call-agent.h (agent_export_key): Add
27392 openpgp_protected flag.
27393 * g10/export.c (receive_seckey_from_agent): Request openpgp_protected
27394 secret keys from agent.
27395 * agent/command.c (hlp_export_key): EXPORT_KEY help text: add a
27396 brief description of the effect of --openpgp.
27398 g10: report whether key in agent is passphrase-protected or not.
27399 + commit 00f30cc01c79bbdff5cdc3be795f009f15d3845e
27400 * g10/call-agent.c, g10/call-agent.h (agent_get_keyinfo): add
27401 r_cleartext parameter to report whether a key is stored without
27402 passphrase protection.
27403 * g10/gpgv.c, g10/test-stubs.c: augment dummy agent_get_keyinfo to
27405 * g10/export.c, g10/keyedit.c, g10/keygen.c, g10/keylist.c,
27406 g10/sign.c: pass NULL to agent_get_keyinfo since we do not yet
27407 need to know whether agent is passphrase-protected.
27409 2016-06-08 Werner Koch <wk@gnupg.org>
27411 Explicitly restrict socket permissions.
27412 + commit 8127043d549a5843ea1ba2dc6da4906fc2258d53
27413 * agent/gpg-agent.c (create_server_socket): Call chmod before listen.
27414 * scd/scdaemon.c (create_server_socket): Ditto.
27415 * dirmngr/dirmngr.c (main): Ditto.
27417 w32: Fix recent build regression.
27418 + commit 6790115fd9059e066b4e6feb6b1e3876a1c1d522
27419 * common/homedir.c (_gnupg_socketdir_internal) [W32]: Add definition
27421 * g10/gpg.c (main) [W32]: Fix use og gnupg_homedir.
27423 * agent/gpg-agent.c (remove_socket): Remove unused var P.
27424 * scd/scdaemon.c (cleanup): Ditto.
27426 gpgconf: New commands --create-socketdir and --remove-socketdir.
27427 + commit cf4910419e09daf414f76ca2c8ab685c3d488ec1
27428 * tools/gpgconf.c: Include unistd.h.
27429 (aCreateSocketDir, aRemoveSocketDir): New.
27430 (opts): Add --create-socketdir and --remove-socketdir.
27431 (main): Implement them.
27433 Implement /run/user/UID/gnupg based sockets.
27434 + commit aab8a0b05292b0d06e3001a0b289224cb7156dbd
27435 * common/homedir.c: Include sys/stat.h and zb32.h.
27436 (w32_portable_app, w32_bin_is_bin): Change type from int to byte.
27437 (non_default_homedir): New.
27438 (is_gnupg_default_homedir): New.
27439 (default_homedir): Set non_default_homedir.
27440 (gnupg_set_homedir): Set non_default_homedir and make
27441 the_gnupg_homedir and absolute directory name.
27442 (gnupg_homedir): Return an absolute directory name.
27443 (_gnupg_socketdir_internal): New.
27444 (gnupg_socketdir): Implement /run/user/ based sockets.
27445 * tools/gpg-connect-agent.c (get_var_ext): Replace now obsolete
27446 make_filename by xstrdup.
27447 * tools/gpgconf.c (main): Sue gnupg_homedir for the "homedir:" output.
27449 gpgconf: Add option --homedir.
27450 + commit def512eb67c8a380f3b873cee0f156deef0b6dda
27451 * tools/gpgconf.c (opts): Add --homedir.
27452 (main): Set homedir.
27454 Do not use no-libgcrypt dummy for tools.
27455 + commit 173fa97102fec68670a46ae1b460231e2a183c81
27456 * tools/Makefile.am (gpgconf_SOURCES): Remove no-libgcrypt.c.
27457 (gpgconf_LDADD): Add LIBGCRYPT_LIBS.
27458 (gpg_connect_agent_LDADD): Ditto.
27459 (gpgtar_LDADD): Ditto.
27460 * dirmngr/Makefile.am (dirmngr_client_LDADD): Ditto.
27461 (t_common_ldadd): Ditto. Remove no-libgcrypt.o.
27463 Do not try to remove the enclosing directory of sockets.
27464 + commit 0faf8951544f43790c412777a926c969540174bd
27465 * agent/gpg-agent.c (remove_socket): Do not remove the enclosing
27467 * scd/scdaemon.c (cleanup): Ditto.
27469 2016-06-07 Werner Koch <wk@gnupg.org>
27471 common: New function gnupg_socketdir.
27472 + commit 36550dde998fa1d497098050ca2d4e1a952ed6b6
27473 * common/homedir.c (gnupg_socketdir): New.
27474 * agent/gpg-agent.c (create_socket_name): Use new function instead of
27476 (check_own_socket): Ditto.
27477 (check_for_running_agent): Ditto.
27478 * agent/preset-passphrase.c (main): Ditto.
27479 * common/asshelp.c (start_new_gpg_agent): Ditto.
27480 * scd/scdaemon.c (create_socket_name): Ditto.
27481 * tools/gpgconf.c (main): Ditto.
27482 * tools/symcryptrun.c (main): Ditto.
27484 common: Remove homedir arg from start_new_{dirmngr,gpg_agent}.
27485 + commit fb88f37c40dc156fa0b5bfba4ac85f1e553fd7e9
27486 * common/asshelp.c (start_new_gpg_agent): Remove arg 'homedir' in
27487 favor of gnupg_homedir (). Change all callers.
27488 (start_new_dirmngr): Ditto.
27489 * common/get-passphrase.c (gnupg_prepare_get_passphrase): Remove arg
27492 Replace use of opt.homedir by accessor functions.
27493 + commit 22a7ef01aa2c0eb77bcc40174d09104acc35cab1
27494 * common/homedir.c (the_gnupg_homedir): New var.
27495 (gnupg_set_homedir): New.
27496 (gnupg_homedir): New.
27497 * g10/options.h (struct opt): Remove 'homedir' and replace all users
27498 by the new accessor functions.
27499 * g13/g13-common.h (struct opt): Ditto.
27500 * scd/scdaemon.h (struct opt): Ditto.
27501 * sm/gpgsm.h (struct opt): Ditto.
27502 * dirmngr/dirmngr.h (struct opt): Ditto.
27503 * agent/preset-passphrase.c (opt_homedir): Ditto.
27504 * agent/protect-tool.c (opt_homedir): Ditto.
27506 2016-06-07 NIIBE Yutaka <gniibe@fsij.org>
27508 po: Update Japanese translation.
27509 + commit 650abbab716750d6087a457a25fa2efaaa3567cd
27512 gpg: Fix command line parsing of --quick-addkey and --quick-gen-key.
27513 + commit abeeb84a94be815a16e678b319cb5c8bffde2811
27514 * g10/gpg.c (main): Compose a block by curly braces.
27516 2016-06-06 Werner Koch <wk@gnupg.org>
27518 gpg: Use --keyid-format=none by default.
27519 + commit 7257ea2d450238afa4d162fab8001f74782fe43f
27520 * g10/gpg.c (main): Init keyid_format to KF_NONE.
27521 * g10/keyid.c (format_keyid): Ditto.
27522 (keystrlen): Ditto.
27524 gpg: Add option --with-subkey-fingerprint.
27525 + commit 1d1cb86694fb2223de1da0b3bfffb5c62f505847
27526 * g10/gpg.c (oWithSubkeyFingerprint): New.
27527 (opts): Add --with-subkey-fingerprint[s].
27528 (main): Set that option.
27529 * g10/options.h (struct opt): Add 'with_subkey_fingerprint'.
27530 * g10/keylist.c (list_keyblock_print): Print subkey fingerprint.
27531 (print_fingerprint): Tweak printing to use compact format if
27534 gpg: Implement --keyid-format=none.
27535 + commit b047388d57443f584f1c1d6333aac5218b685042
27536 * g10/gpg.c (main): Add option "none" to --keyid-format.
27537 * g10/options.h (KF_NONE): New.
27538 * g10/keyid.c (format_keyid): Implement that.
27539 (keystr): Use format "long" is KF_NONE is in use.
27540 (keystr_with_sub): Ditto.
27541 * g10/keylist.c (list_keyblock_print): Adjust indentaion for KF_NONE.
27542 Factor some code out to ...
27543 (print_key_line): new.
27544 (print_fingerprint): Add mode 20.
27545 * g10/mainproc.c (list_node): Use print_key_line. Replace MAINKEY by
27546 flags.primary in the PK. Fix putting a " revoked..." string into the
27548 * g10/pkclist.c (do_edit_ownertrust): Use print_key_line. This
27549 slightly changes the putput format.
27550 * g10/revoke.c (gen_standard_revoke): Use print_key_line. This may
27551 also put "expires: " into the output.
27553 2016-06-04 Werner Koch <wk@gnupg.org>
27555 w32: Require --enable-build-timestamp for the BUILD_HOSTNAME.
27556 + commit 79b7a8a9e0d41b743ceaee20dc47294359fe0d44
27557 * configure.ac (BUILD_HOSTNAME): Set to "<anon>" bey default.
27558 * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Add
27559 --enable-build-timestamp.
27561 2016-06-02 Werner Koch <wk@gnupg.org>
27563 gpg: Add the fingerprint to KEY_CREATED for subkeys.
27564 + commit 8d976a6b07c5a356631791b46b590328c1451f31
27565 * g10/keygen.c (print_status_key_created): Make more robust by
27566 allowing a NULL for PK.
27567 (generate_subkeypair): Use print_status_key_created.
27568 (generate_card_subkeypair): Ditto.
27570 gpg: Try to use the passphrase from the primary for --quick-addkey.
27571 + commit 1b460f049e5c1c102d8b55ad28781688252c5a6b
27572 * agent/command.c (cmd_genkey): Add option --passwd-nonce.
27573 (cmd_passwd): Return a PASSWD_NONCE in verify mode.
27574 * g10/call-agent.c (agent_genkey): Add arg 'passwd_nonce_addr' and do
27575 not send a RESET if given.
27576 (agent_passwd): Add arg 'verify'.
27577 * g10/keygen.c (common_gen): Add optional arg 'passwd_nonce_addr'.
27578 (gen_elg, gen_dsa, gen_ecc, gen_rsa, do_create): Ditto.
27579 (generate_subkeypair): Use sepeare hexgrip var for the to be created
27580 for hexgrip feature. Verify primary key first. Make use of the
27581 passwd nonce. Allow for a static passphrase.
27583 gpg: Extend the --quick-gen-key command.
27584 + commit 01285f909e43e8d6a48fbcc77bb5af53d567d8a2
27585 * g10/keygen.c (quickgen_set_para): Add arg 'use'.
27586 (quick_generate_keypair): Add args 'algostr', 'usagestr', and
27587 'expirestr'. Implement primary only key mode.
27588 (parse_algo_usage_expire): Set NBITS for the default algo.
27589 * g10/gpg.c (main): Extend --quick-gen-key command.
27591 gpg: Improve the new parse_subkey_algostr_usagestr fucntion.
27592 + commit dcc4cd83821667be22e502af86139bb4bd41bdf7
27593 * g10/keygen.c (parse_usagestr): Allow "cert".
27594 (generate_subkeypair): Factor expire parsing out to ...
27595 (parse_subkey_algostr_usagestr): here. Rename to ...
27596 (parse_algo_usage_expire): this. Add arg 'for_subkey'. Set CERT for
27597 primary key and check that it is not set for subkeys.
27599 gpg: New command --quick-addkey.
27600 + commit 8f2a053a0ffa0430d01a53b4d491a3f0fff683eb
27601 * g10/keygen.c (DEFAULT_STD_SUBKEYUSE): New.
27602 (ask_keysize): Factor code out to ...
27603 (get_keysize_range, fixup_keysize): new.
27604 (parse_parameter_usage): Factor parsing out to ...
27605 (parse_usagestr): new. Allow use of "encr" as alias for "encrypt".
27606 (parse_subkey_algostr_usagestr): New.
27607 (generate_subkeypair): Add new args. Implement unattended mode.
27609 * g10/keyedit.c (keyedit_quick_sign): Factor some code out to ...
27610 (find_by_primary_fpr): new.
27611 (keyedit_quick_addkey): New.
27612 * g10/gpg.c (aQuickAddKey): New.
27613 (opts): Add --quick-addkey.
27616 gpg: Do not abort on certain invalid packets.
27617 + commit d837f6b0eadb14ea08c1c6030b4d6adaaee8778e
27618 * g10/build-packet.c (write_fake_data): Check for non-opaque data.
27619 * g10/seskey.c (do_encode_md): Return NULL instead of abort.
27621 common: New function openpgp_is_curve_supported.
27622 + commit 072acb69be55e366e2da921e3953404765fa3928
27623 * common/openpgp-oid.c: Include openpgpdefs.h.
27624 (oidtable): Add field pubkey_algo.
27625 (openpgp_is_curve_supported): New.
27627 2016-06-01 NIIBE Yutaka <gniibe@fsij.org>
27629 g10: Allow User ID length >= 256.
27630 + commit db1ecc8212defdd183abbb6b1407fcc8d2dc9552
27631 * build-packet.c (do_user_id): Call write_header2 with HDRLEN not set.
27633 2016-05-31 Werner Koch <wk@gnupg.org>
27635 gpg: New status code NOTATION_FLAGS.
27636 + commit 67a4bc8d536f6997f14daff4c039abd48a172100
27637 * common/status.h (STATUS_NOTATION_FLAGS: New.
27638 * g10/packet.h (struct notation): Add flags.human.
27639 (notation_t): New typedef.
27640 * g10/build-packet.c (sig_to_notation): Set flags.human.
27641 * g10/keylist.c (show_notation): Write STATUS_NOTATION_FLAGS.
27643 2016-05-28 Werner Koch <wk@gnupg.org>
27645 common: Add a status callback to gnupg_exec_tool_stream.
27646 + commit 239a4d53916b47b5b0f0167a9b2c7a8915bb9c52
27647 * common/exectool.h (exec_tool_status_cb_t): New.
27648 * common/exectool.c: Include missing exectool.h.
27649 (read_and_log_buffer_t): Replace array by pointer.
27650 (gnupg_exec_tool_stream): Add args 'status_cb' and 'status_cb_value'.
27651 Change all callers to pass NULL for them. Malloc buffer for
27653 (read_and_log_stderr): Implement status_fd feature.
27655 2016-05-27 Werner Koch <wk@gnupg.org>
27657 common: Allow a second input stream for gnupg_exec_tool_stream.
27658 + commit 44a32455c8e41400ea96db4507c8a42bdb65b3b6
27659 * common/exechelp-posix.c (do_exec): Add arg 'except' and pass to
27661 (gnupg_spawn_process): Add arg 'except'. Change callers to pass NULL
27663 * common/exechelp-w32.c (gnupg_spawn_process): Add dummy arg 'except'.
27664 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
27665 * common/exectool.c (copy_buffer_do_copy): Allow NULL for SINK.
27666 (gnupg_exec_tool_stream): Add arg 'inextra'. Change callers to pass
27667 NULL for it. Allow NULL for OUTPUT.
27669 common: Simplify the fd closing patch 512c56a.
27670 + commit e6d9a2d07ed7aeac3944d8a7d1317c4a117356b4
27671 * common/exechelp-posix.c (get_max_fds): Use /proc/self.
27673 common: Speedup closing fds before an exec.
27674 + commit 512c56af43027149e8beacf259746b8d7bf9b1a2
27675 * common/exechelp-posix.c [__linux__]: Include dirent.h.
27676 (get_max_fds) [__linux__]: Return the actual used highest fd.
27678 tools: Improve debug output of rfc822parse.
27679 + commit ad75ca9c963bebbe02aae8d73e199a705764ae82
27680 * tools/rfc822parse.c (show_event): Add missing events.
27682 build: Remove obsolete tests for funopen and fopencookie.
27683 + commit d755bcb89dbeaf6c7c1eca73ccabdf89b536c535
27684 * configure.ac (AC_CHECK_FUNCS): Remove tests for funopen.
27686 common: Extend gnupg_create_inbound_pipe et al.
27687 + commit 5d991e333a1885adc40abd9d00c01fec4bd5d9d7
27688 * common/exechelp-posix.c (gnupg_create_inbound_pipe): Add args 'r_fp'
27690 (gnupg_create_outbound_pipe): Ditto.
27691 * common/exechelp-w32.c (gnupg_create_inbound_pipe): Add non yet
27692 functional args 'r_fp' and 'nonblock'.
27693 (gnupg_create_outbound_pipe): Ditto.
27694 * common/exechelp-w32ce.c (gnupg_create_inbound_pipe): Ditto.
27695 (gnupg_create_outbound_pipe): Ditto.
27697 common: Make use of default_errsource in exechelp.
27698 + commit 96c7901ec1c79be732570811223d3ea54875abfe
27699 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
27700 Use them instead of gpg_error and gpg_error_from_syserror.
27701 (create_pipe_and_estream): Remove arg ERRSOURCE and fix use of
27702 OUTBOUND which has a wrong name. Adjust callers.
27703 (gnupg_spawn_process): Remove arg ERRSOURCE and replace by use of
27705 * common/exechelp-w32.c (gnupg_spawn_process): Ditto.
27706 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
27707 * common/exectool.c (gnupg_exec_tool_stream): Do not pass
27708 GPG_ERROR_FROM_SYSERROR.
27709 * tools/gpgconf-comp.c (gc_component_check_options): Ditto.
27710 (retrieve_options_from_program): Ditto.
27712 gpg: Keep current and total of PROGESS status lines small enough.
27713 + commit 6c957c3d880c069bb843cc58fdcebb9fc344727e
27714 * g10/progress.c (progress_filter): Factor status wrote out to...
27715 (write_status_progress): New. Scale values down.
27717 2016-05-27 NIIBE Yutaka <gniibe@fsij.org>
27719 configure: Detection of libusb on FreeBSD.
27720 + commit b3e043ba905fdf2efcdadbd7022ac53f4408b748
27721 * configure.ac (LIBUSB_LIBS): Use LIBUSB_NAME for AC_CHECK_LIB.
27723 2016-05-25 Werner Koch <wk@gnupg.org>
27725 build: Switch to new URL for swdb.lst.
27726 + commit 74028096e06d2904f77b74b373750264e5b7b1ea
27729 2016-05-24 Werner Koch <wk@gnupg.org>
27731 gpgtar: Simplify code by using ccparray.
27732 + commit 91bc7833836f19256d56984c94cacf44853ff5c8
27733 * tools/gpgtar-create.c (gpgtar_create): Use ccparray functions.
27734 * tools/gpgtar-extract.c (gpgtar_extract): Ditto.
27735 * tools/gpgtar-list.c (gpgtar_list): Ditto.
27737 common: Add simple dynamic array function.
27738 + commit 2421f7f7ed74ed20372efd63a2efd58d3b55005c
27739 * common/ccparray.c: New.
27740 * common/ccparray.h: New.
27741 * common/t-ccparray.c: New.
27742 * common/Makefile.am (common_sources): Add files.
27743 (module_tests): Add test file.
27744 (t_ccparray_LDADD): New.
27746 2016-05-23 Justus Winter <justus@g10code.com>
27748 tests: Test the pinentry interactions when exporting keys.
27749 + commit b9d1e099c3ec3163c86afe627ecbe028db1facf6
27750 * tests/openpgp/export.test: Test pinentry interactions.
27752 tests: Add support for a passphrase queue to fake pinentry.
27753 + commit 4994153924e0948a657edddaef54a39a6001beff
27754 * tests/openpgp/fake-pinentry.c (get_passphrase): New function.
27755 (main): Add option --passphrasefile and read passphrases from it.
27757 tests: Add logging to fake pinentry.
27758 + commit 41b10c66ec1dd33633386f4fc8013ddeab7737ca
27759 * tests/openpgp/fake-pinentry.c (log_stream): New variable.
27760 (reply): New function.
27761 (spacep,skip_options,option_value): Copy from common.
27762 (main): Parse arguments, add --logfile option, write logfile.
27764 tests: Add export test.
27765 + commit a54e89a58576108fcae10ceeb4fc65822aecc170
27766 * tests/openpgp/Makefile.am (TESTS): Add new file.
27767 * tests/openpgp/export.test: New file.
27769 2016-05-21 Werner Koch <wk@gnupg.org>
27771 gpg: Speed up key listing in Tofu mode.
27772 + commit 78bb08425af5b1edb7f3ef0119013529b3a9e4ba
27773 * g10/tofu.c (get_trust): Add arg PK. Uses this instead of a an extra
27774 lookup of the public key by fingerrpint.
27775 (tofu_register): Pass PK to get_trust.
27776 (tofu_get_validity): Ditto.
27778 *g10/tofu.c (tofu_register): Remove unused FINGERPRINT_PP.
27780 gpg: Avoid name spaces clash with future sqlite versions.
27781 + commit b1ba460d8f3358342c2ee2927114d36e767a439f
27782 * g10/sqlite.c: Rename to gpgsql.c. Change function prefixes to
27784 * g10/sqlite.h: Rename to gpgsql.h.
27785 * g10/tofu.c: Adjust for changes.
27787 gpg: Explicitly close a combined Tofu DB.
27788 + commit 006a6126131ffd59d9a47889ac031f932ecc5d0b
27789 * g10/tofu.c (tofu_closedbs): Close combined DB.
27791 gpg: Store the Tofu meta handle for databases in CTRL.
27792 + commit 754b1c463034a634a678d8efc76c27fd46aad9b9
27793 * g10/gpg.h (struct tofu_dbs_s, tofu_dbs_t): New declarations.
27794 (struct server_control_s): Add field tofu.dbs.
27795 * g10/tofu.c (struct dbs): Rename to tofu_dbs_s. Replace all users by
27797 (opendbs): Add arg CTRL. Cache the DBS in CTRL.
27798 (closedbs): Rename to tofu_closedbs and make global. Add arg CTRL.
27799 (tofu_register): Add arg CTRL. Change all callers. Do not call
27801 (tofu_get_validity): Ditto.
27802 (tofu_set_policy): Ditto.
27803 (tofu_get_policy): Ditto.
27804 (tofu_set_policy_by_keyid): Add arg CTRL.
27805 * g10/gpg.c (gpg_deinit_default_ctrl): Call tofu_closedbs.
27807 gpg: Pass CTRL object down to the trust functions.
27808 + commit 027c4e55522b8e18711a3331932a9869ab89ca26
27811 gpg: Fix the TOFU_STATS_LONG status.
27812 + commit fd973ee1c18aa8fe764e09ba4dff589309b2d78d
27813 * g10/tofu.c (show_statistics): Print TOFU STATS with formatting
27816 2016-05-19 Werner Koch <wk@gnupg.org>
27818 gpg: Print "[ never ]" instead of err for validity.
27819 + commit 437c97ab6a34ff1936001dd05209193b4466a81d
27820 * g10/trust.c (uid_trust_string_fixed): Handle NEVER.
27822 2016-05-18 Werner Koch <wk@gnupg.org>
27824 dirmngr: Adjust the WKD lookup to specs version -01.
27825 + commit cf97769906337d65289ad58225a5ecc53c715550
27826 * dirmngr/server.c (cmd_wkd_get): Remove second occurrence of the
27829 2016-05-17 Werner Koch <wk@gnupg.org>
27831 gpg: Emit new status line KEY_CONSIDERED.
27832 + commit ff71521d9698c7c5df94831a1398e948213af433
27833 * common/status.h (STATUS_KEY_CONSIDERED): New.
27834 * g10/getkey.c: Include status.h.
27835 (LOOKUP_NOT_SELECTED, LOOKUP_ALL_SUBKEYS_EXPIRED): New.
27836 (finish_lookup): Add arg R_FLAGS. Count expired and revoked keys and
27837 set flag. Check a requested usage before checking for expiraion or
27839 (print_status_key_considered): New.
27840 (lookup): Print new status.
27842 2016-05-11 NIIBE Yutaka <gniibe@fsij.org>
27844 g10: Fix signature checking.
27845 + commit 83a90a916e8e2f8e44c3b11d11e1dd75f65a87fb
27846 * g10/sig-check.c (check_signature_over_key_or_uid): Fix call to
27849 2016-05-10 Werner Koch <wk@gnupg.org>
27851 gpg: Allow unattended deletion of secret keys.
27852 + commit ac9ff644b12c4dfa55d466af8ae6af54d1646893
27853 * agent/command.c (cmd_delete_key): Make the --force option depend on
27854 --disallow-loopback-passphrase.
27855 * g10/call-agent.c (agent_delete_key): Add arg FORCE.
27856 * g10/delkey.c (do_delete_key): Pass opt.answer_yes to
27859 2016-05-09 Werner Koch <wk@gnupg.org>
27861 gpg: Fix buglet in the check_all_keysigs function.
27862 + commit 693838f0125d5d0c963fa3771b1bd117702af697
27863 * g10/keyedit.c (sig_comparison): Actually compare the pubkey
27866 gpg: Request a "save" after cmd "check" fixed something.
27867 + commit d33b35f7481caa0dcb25f9fa7d6c5bb27895297a
27868 * g10/keyedit.c (keyedit_menu) <cmdCHECK>: Set modified.
27870 2016-05-09 NIIBE Yutaka <gniibe@fsij.org>
27872 po: Update Japanese translation.
27873 + commit ff870d59f067d3c5415e231c02a50d5dceac7e48
27876 2016-05-04 Werner Koch <wk@gnupg.org>
27879 + commit 00df5b1236cac5c7a48638a4613278c5aab486f8
27882 speedo,w32: Remove the installation directory page.
27883 + commit fb1e9df48465c2f77a65dddd257572fdc79d9450
27884 * build-aux/speedo/w32/inst.nsi (MUI_PAGE_DIRECTORY): Remove.
27886 gpg: Fix const char pointer mismatch with gettext.
27887 + commit 920b1421b35d1404b8360bd8feac0be659840543
27888 * g10/tofu.c (get_trust): Use const char *.
27890 speedo: Build sqlite with static-libgcc.
27891 + commit edce430b039b313cc2d79402a7bd21347490c3be
27892 * build-aux/speedo/patches/sqlite.patch: New.
27893 * Makefile.am (EXTRA_DIST): Add file.
27895 speedo: Also try patch files w/o version number.
27896 + commit 9ea258fa5b45bb5454ee3f5906df5d5eebdec0dd
27897 * build-aux/speedo.mk (SPKG_template): Try such a patch file.
27899 2016-05-04 Andre Heinecke <aheinecke@intevation.de>
27901 speedo,w32: Install sqlite.
27902 + commit 2b78223d7587c68e2e27a3d7b365219228da7947
27903 * build-aux/speedo/w32/inst.nsi (-sqlite, -un.sqlite): New.
27905 speedo,w32: Fix uninstallation.
27906 + commit 5ec76fd0c300b52366cf8d1407fe1c8de3a8a9d4
27907 * build-aux/speedo/w32/inst.nsi (-un.gnupg): Delete distsigkey and
27910 speedo,w32: Install localisation.
27911 + commit 3f58fc64666101e160e9b13fedb6cdaebeb91a7a
27912 * build-aux/speedo/w32/inst.nsi (-libgpg-error, GnuPG): Install l10n.
27913 (-un.libgpg-error, -un.gnupg): Uninstall l10n files.
27915 2016-05-04 Werner Koch <wk@gnupg.org>
27917 tests: Disable the migrations tests.
27918 + commit d696eb396a9c88319358da4333feb653994d5408
27919 * tests/Makefile.am (SUBDIRS): Remove migrations.
27920 * configure.ac (AC_CONFIG_FILES): Remove migrations Makefile.
27922 2016-05-04 Ineiev <ineiev@gnu.org>
27924 po: Update Russian translation.
27925 + commit 4fd13ab78dd228d8ff85659cddc2076af8728ebe
27928 2016-05-04 Werner Koch <wk@gnupg.org>
27930 po: Update German translation.
27931 + commit 75f31cdd42eed3555952ac478055d52af841f702
27934 Some minor string changes and fixed a printf format.
27935 + commit d00625dae60f26617d2e1bd4f22c6b35a4e92c91
27936 * g10/build-packet.c (notation_value_to_human_readable_string): Use
27939 build: Update config.{guess,sub} to 2016-04-02 and 2016-03-30.
27940 + commit 04cc7c3786d91881f83a72799dab058476602a31
27941 * build-aux/config.guess: Update.
27942 * build-aux/config.sub: Update.
27944 agent: Make --allow-loopback-pinentry the default.
27945 + commit 3ef0938cfd8637e9801369f142eb8dd564f2ca61
27946 * agent/gpg-agent.c (oNoAllowLoopbackPinentry): New.
27947 (opts): Add --no-allow-loopback-pinentry. Hide
27948 description of --allow-loopback-pinentry.
27949 (parse_rereadable_options): Set opt.allow_loopback_pinentry by
27951 (main): Replace allow-loopback-pinentry by no-allow-loopback-pinentry
27952 in the gpgconf list.
27953 * tools/gpgconf-comp.c (gc_options_gpg_agent): Ditto.
27955 2016-05-03 Werner Koch <wk@gnupg.org>
27957 common: Print https URLs in help messages.
27958 + commit 9e28617e260261de3972c20698b5a01561330e1c
27959 * common/argparse.c (strusage): Print https URLS.
27961 tests: Silence output of some tests.
27962 + commit 33aacc3d4bbd6a82d7e7ceca058970879741b7da
27963 * common/t-exechelp.c (print_open_fds): Silence non-verbose output.
27964 (test_close_all_fds): Ditto.
27965 * common/t-session-env.c (show_stdnames): Indent output.
27966 * g10/test.c (TEST): Silence non-verbose okay output.
27967 (exit_tests): Ditto.
27968 * tools/gpg-zip.in (tar_verbose_opt): Add option --quiet.
27969 * tests/openpgp/gpgtar.test (GPGZIP): Pass option --quiet.
27970 * tests/openpgp/mds.test: Indent MD5 notice.
27971 * tests/openpgp/version.test: Indent --version output.
27973 gpg: Emit status lines TOFU_STATS and TOFU_STATS_LONG.
27974 + commit 83865be35cff5355a5c4575cc3b50609819b0baa
27975 * g10/tofu.c (NO_WARNING_THRESHOLD): Rename to BASIC_TRUST_THRESHOLD.
27976 (FULL_TRUST_THRESHOLD): New.
27977 (write_stats_status): New.
27978 (show_statistics): Call new function. Print TOFU_STATS_LONG.
27980 2016-05-02 Werner Koch <wk@gnupg.org>
27982 gpg: Extend TRUST_foo status lines with the trust model.
27983 + commit ae1889320b822d48f7118a29391605e9ac992701
27984 * g10/trustdb.h (TRUST_FLAG_TOFU_BASED): New.
27985 * g10/trustdb.c (trust_model_string): Lowercase the strings. Add arg
27986 "model" and change callers to call with OPT.TRUST_MODEL.
27987 * g10/tofu.c (tofu_wot_trust_combine): Set TRUST_FLAG_TOFU_BASED.
27988 * g10/pkclist.c (write_trust_status): New.
27989 (check_signatures_trust): Call new function.
27991 gpg: Improve line wrapping for a tofu message.
27992 + commit 5cef6118580fe658a27d32e85696d88775ad417a
27993 * g10/tofu.c (time_ago_str): Mark non-breakable spaces.
27994 (show_statistics): Remove marks.
27996 gpg: Re-format some tofu messages.
27997 + commit d73e83c3b678add11a5754e199e528aeb39ec8ce
27998 * common/status.h (STATUS_TOFU_USER, STATUS_TOFU_STATS)
27999 (STATUS_TOFU_STATS_SHORT, STATUS_TOFU_STATS_LONG): New.
28000 * g10/tofu.c (NO_WARNING_THRESHOLD): New.
28001 (record_binding, tofu_register): Take care of --dry-run.
28002 (show_statistics): Print STATUS_TOFU_USER. Reformat some messages.
28003 Fix the ngettext/strcmp thing. Use log_string instead of log_info.
28004 Use NO_WARNING_THRESHOLD constant.
28005 (get_trust): Use format_text and print a compact fingerprint.
28007 2016-05-02 NIIBE Yutaka <gniibe@fsij.org>
28009 scd: More fix of error return path.
28010 + commit 6677d8b61446eb5760a30a2488c992d6e895a9ed
28011 * scd/command.c (open_card): Return GPG_ERR_ENODEV on the failure of
28014 2016-04-29 Werner Koch <wk@gnupg.org>
28016 common: Extend log_string to indent lines.
28017 + commit 35f4b6aafdf1889ed1ae569af5852f47738fe993
28018 * common/logging.c (do_logv): Add indentation when called via
28021 gpg: Factor some code code out of tofu.c.
28022 + commit dcad99c98616a6031ddfde313c920339e4012378
28023 * g10/tofu.c (string_to_long): New.
28024 (string_to_ulong): New.
28025 (get_single_unsigned_long_cb): Replace strtol/strtoul by new function.
28026 (get_single_long_cb): Ditto.
28027 (signature_stats_collect_cb): Ditto.
28028 (get_policy): Ditto.
28029 (show_statistics): Ditto. Uese es_free instead of free.
28031 gpg: Remove all assert.h and s/assert/log_assert/.
28032 + commit 64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c
28035 common: Improve log_assert.
28036 + commit 9740dff9f4d18ba764dc7173d4902e94e3f0c2e8
28037 * common/logging.c (bug_at): Do not i18n the string.
28038 (_log_assert): New.
28039 * common/logging.h (log_assert): Use new function and pass line
28042 2016-04-28 NIIBE Yutaka <gniibe@fsij.org>
28044 scd: Fix error return path.
28045 + commit cb4fee8bb645745ff199f7428e19226d5bc63dab
28046 * scd/ccid-driver.c (bulk_in): Remove EAGAIN handling.
28047 Handle LIBUSB_ERROR_NO_DEVICE to return CCID_DRIVER_ERR_NO_READER.
28049 2016-04-27 NIIBE Yutaka <gniibe@fsij.org>
28051 scd: Fix memory leaks.
28052 + commit 508b0deb70d39d388149be9a63fab24cc956a239
28053 * scd/ccid-driver.c (scan_or_find_usb_device): Return on
28054 LIBUSB_ERROR_NO_MEM. Free CONFIG before return except on error.
28055 (scan_or_find_devices): Free device list.
28057 2016-04-27 Werner Koch <wk@gnupg.org>
28059 gpg: Add experimental AKL method "wkd" and option --with-wkd-hash.
28060 + commit 87de9e19edf0311ca0342e15ef44ebe40e32861e
28061 * g10/getkey.c (parse_auto_key_locate): Add method "wkd".
28062 (get_pubkey_byname): Implement that method. Also rename a variable.
28063 * g10/call-dirmngr.c (gpg_dirmngr_wkd_get): New.
28064 * g10/keyserver.c (keyserver_import_wkd): New.
28065 * g10/test-stubs.c (keyserver_import_wkd): Add stub.
28066 * g10/gpgv.c (keyserver_import_wkd): Ditto.
28067 * g10/options.h (opt): Add field 'with_wkd_hash'.
28070 * g10/gpg.c (oWithWKDHash): New.
28071 (opts): Add option --with-wkd-hash.
28072 (main): Set that option.
28073 * g10/keylist.c (list_keyblock_print): Implement that option.
28075 dirmngr: Add experimental command WKD_GET.
28076 + commit c83c6f212e9bc98a9ea8dd8102bc16edd1a03050
28077 * dirmngr/server.c (cmd_wkd_get): New.
28078 (register_commands): Add command WKD_GET.
28080 dirmngr: Use system provided root CAs with KS_FETCH.
28081 + commit c3aeda82b8d00b87a5af72b4075c487c10dfdf6b
28082 * dirmngr/ks-engine-http.c (ks_http_fetch): Use HTTP_FLAG_TRUST_SYS.
28084 2016-04-26 Werner Koch <wk@gnupg.org>
28086 http: Allow to request system defined CAs for TLS.
28087 + commit fd765df6a7883c3d841abeb657330a1aab4b7756
28088 * dirmngr/http.h (HTTP_FLAG_TRUST_DEF, HTTP_FLAG_TRUST_SYS): New.
28089 * dirmngr/http.c (http_session_new): Add arg "flags".
28090 * dirmngr/ks-engine-hkp.c (send_request): Use new flag
28091 HTTP_FLAG_TRUST_DEF for the new arg of http_session_new.
28092 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
28093 * dirmngr/t-http.c (main): Ditto.
28095 2016-04-25 Werner Koch <wk@gnupg.org>
28097 common: Minor fixes for the new private-keys.c.
28098 + commit b7fa4960c292ef1a290d32b7f46bb741bbfc0923
28099 * common/private-keys.c (my_error_from_syserror): New. Use it in
28100 place of gpg_error_from_syserror.
28101 (_pkc_add, pkc_lookup, pke_next_value): Use ascii_strcasecmp.
28102 (pkc_parse): Use xtrystrdup and append_to_strlist_try as intended.
28104 (_pkc_add): Add braces around if-statement.
28106 common: Use new function to print a failure of xtrymalloc.
28107 + commit 8776abbe02935e720018f3ef6ffd48f21435ff8b
28108 * common/miscellaneous.c (xoutofcore): New.
28109 * common/strlist.c (append_to_strlist): Use instead of abort.
28110 (append_to_strlist_try): Use xtrymalloc instead of xmalloc.
28112 2016-04-21 Justus Winter <justus@g10code.com>
28114 common: Add support for the new extended private key format.
28115 + commit 12af2630cf4d1a39179179925fac8f2cce7504ff
28116 * agent/findkey.c (write_extended_private_key): New function.
28117 (agent_write_private_key): Detect if an existing file is in extended
28118 format and update the key within if it is.
28119 (read_key_file): Handle the new format.
28120 * agent/keyformat.txt: Document the new format.
28121 * common/Makefile.am: Add the new files.
28122 * common/private-keys.c: New file.
28123 * common/private-keys.h: Likewise.
28124 * common/t-private-keys.c: Likewise.
28125 * common/util.h (alphap, alnump): New macros.
28126 * tests/migrations: Add test demonstrating that we can cope with the
28129 common: Add 'free_strlist_wipe' which wipes memory.
28130 + commit c6d1f2f08c68efe7e80887219064a8ce6365128f
28131 * common/strlist.c (free_strlist_wipe): New function.
28132 * common/strlist.h (free_strlist_wipe): New prototype.
28134 common: Add 'append_to_strlist_try' which can fail.
28135 + commit 95303ee11df12f284e98d02dba993eda9e425383
28136 * common/strlist.c (append_to_strlist): Use the new function.
28137 (append_to_strlist_try): New function.
28138 * common/strlist.h (append_to_strlist_try): New prototype.
28140 agent: Convert key format document to org.
28141 + commit 342cc488890241b41e49f50886617115342721d6
28142 * agent/keyformat.txt: Convert to org mode.
28144 tests: Make migration test more robust and silent.
28145 + commit 0c35e09278514f1e3377a4b0a9b1f44dd39b1bf4
28146 * tests/migrations/from-classic.test: Fix in-tree build, silence test.
28148 2016-04-21 Werner Koch <wk@gnupg.org>
28150 w32: Use --enable-gpg2-is-gpg by default.
28151 + commit d81de224ecd542922dda649a492dd9550509d7bc
28152 * autogen.rc: Add option also for plain Windows.
28154 w32: Replace libiconv DLL by iconv feature of libgpg-error.
28155 + commit bd4d65615b3a5360d455b99e77bd113ad90f1539
28156 * configure.ac: Do nor require libiconv for W32.
28157 * common/utf8conv.c [W32]: Do not incluce iconv.h. Request
28158 libgpg-error iconv macros.
28159 (jnlib_iconv): Use ICONV_CONST macro.
28160 * build-aux/speedo/w32/inst.nsi [!WITH_GUI]: Do not install libiconv.
28161 * build-aux/speedo.mk (speedo_spkgs) [!WITH_GUI]: Likewise.
28163 2016-04-20 Justus Winter <justus@g10code.com>
28165 agent: Sanitize permissions of the private key directory.
28166 + commit f8adf1a3234655877a4f985d627d98567507002c
28167 * agent/gpg-agent.c (create_private_keys_directory): Set permissions.
28168 * common/sysutils.c (modestr_to_mode): New function.
28169 (gnupg_mkdir): Use new function.
28170 (gnupg_chmod): New function.
28171 * common/sysutils.h (gnupg_chmod): New prototype.
28172 * tests/migrations/from-classic.test: Test migration with existing
28175 tests: Test the migration from a classic GnuPG home directory.
28176 + commit defbc70b4a16264e067daf76678ecfb9d030dee4
28177 * configure.ac: Add new directory.
28178 * tests/Makefile.am (SUBDIRS): Likewise.
28179 * tests/migrations/Makefile.am: New file.
28180 * tests/migrations/from-classic.gpghome/pubring.gpg.asc: Likewise.
28181 * tests/migrations/from-classic.gpghome/secring.gpg.asc: Likewise.
28182 * tests/migrations/from-classic.gpghome/trustdb.gpg.asc: Likewise.
28183 * tests/migrations/from-classic.test: Likewise.
28185 2016-04-20 Werner Koch <wk@gnupg.org>
28187 speedo: Use swdb.lst to define the SQLite version.
28188 + commit 2385b9f1ddc4938e45c01a12a804f4b77d253305
28189 * build-aux/speedo.mk: Change sqlite to use our mirror and the
28191 * build-aux/speedo/w32/inst.nsi: gpg is now build and installed as
28194 2016-04-19 Werner Koch <wk@gnupg.org>
28196 gpg: Improve UID selction of --quick-sign-key.
28197 + commit d02de6c0a4a55a2720cfa5caddcbfc4ce988a2ec
28198 * g10/keyedit.c (keyedit_quick_sign): Improve UID selection and print
28199 error for non-found userids.
28201 gpg: Avoid debug like output at start of --edit-key.
28202 + commit 085b19fc9aa7f2f9b82a97824b117e71390964ec
28203 * g10/keyedit.c (check_all_keysigs): Print info only after something
28206 2016-04-15 Andre Heinecke <aheinecke@intevation.de>
28208 dirmngr: Fix https never reported in general help.
28209 + commit 6272f24312f2efe8707a7712858c85cd5a42e6fa
28210 * dirmngr/ks-engine-http.c (ks_hkp_help): Also print https
28211 when supported and no uri provided.
28213 dirmngr: Fix https incorrectly reported in help.
28214 + commit a0642856b25622c81d3464979c47ff2a30af58fa
28215 * dirmngr/ks-engine-http.c (ks_hkp_help): Only print https if tls
28218 2016-04-14 Werner Koch <wk@gnupg.org>
28220 agent: Fix regression due to recent commit 4159567.
28221 + commit 8c3fb2360f154a971d2a390e4937acb22a44a8c2
28222 * agent/protect.c (do_encryption): Fix CBC hashing.
28224 agent: Allow gpg-protect-tool to handle openpgp-native protection.
28225 + commit 6df75ec70afeb1a5ad9a00557e1245e1514c37b5
28226 * agent/protect-tool.c (read_and_unprotect): Add arg ctrl and pass to
28228 (main): Allocate a simple CTRL object and pass it to
28229 read_and_unprotect.
28230 (convert_from_openpgp_native): Remove stub.
28231 (agent_key_available, agent_get_cache): New stubs.
28232 (agent_askpin): New emulation for the one in call-pinentry.c.
28233 (agent_write_private_key): New to dump key.
28234 * agent/Makefile.am (gpg_protect_tool_SOURCES): Add cvt-openpgp.c
28236 tests: Set fake-pinentry's stdout and stdin to _IOLBF.
28237 + commit 94504b3d5af126abb591dedda1ca0f0970822f55
28238 * tests/openpgp/fake-pinentry.c (main): Call setvbuf. Show passphrase
28239 at startup. Increase buffer.
28241 2016-04-12 Werner Koch <wk@gnupg.org>
28243 agent: Implement new protection mode openpgp-s2k3-ocb-aes.
28244 + commit 4159567f7ed7a1139fdc3a6c92988e1648ad84ab
28245 * agent/protect.c (agent_protect): Add arg use_ocb. Change all caller
28246 to pass -1 for default.
28247 * agent/protect-tool.c: New option --debug-use-ocb.
28248 (oDebugUseOCB): New.
28249 (opt_debug_use_ocb): New.
28250 (main): Set option.
28251 (read_and_protect): Implement option.
28253 * agent/protect.c (OCB_MODE_SUPPORTED): New macro.
28254 (PROT_DEFAULT_TO_OCB): New macro.
28255 (do_encryption): Add args use_ocb, hashbegin, hashlen, timestamp_exp,
28256 and timestamp_exp_len. Implement OCB.
28257 (agent_protect): Change to support OCB.
28258 (do_decryption): Add new args is_ocb, aadhole_begin, and aadhole_len.
28260 (merge_lists): Allow NULL for sha1hash.
28261 (agent_unprotect): Change to support OCB.
28262 (agent_private_key_type): Remove debug output.
28264 indent: Help Emacs not to get confused by conditional compilation.
28265 + commit 7faf131c8b8710419df3dc13a1228d1977c55f53
28266 * agent/protect.c (calibrate_get_time) [W32]: Use separate function
28267 calls for W32 and W32CE.
28269 2016-04-07 Justus Winter <justus@g10code.com>
28271 g10: Fix exporting secret keys of certain sizes.
28272 + commit 02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8
28273 * g10/build-packet.c (do_key): Do not use the header length specified
28274 by the public key packet from the keyring, but let 'write_header2'
28275 compute the required length.
28277 2016-04-06 Justus Winter <justus@g10code.com>
28279 Revert "g10: Support armored keyrings in gpgv."
28280 + commit 76ca869197e304daa5a8dd96ea43113ec7b28354
28281 This reverts commit abb352de51bc964c06007fce43ed6f6caea87c15.
28283 2016-04-05 Justus Winter <justus@g10code.com>
28285 dirmngr: Autodetect PEM format in dirmngr-client.
28286 + commit 9354293b8c9f234939bc04182f15e2fe512e914e
28287 * dirmngr/dirmngr-client.c (init_asctobin): New function.
28288 (main): Move the initialization code to the new function.
28289 (read_pem_certificate): Initialize base64 table.
28290 (read_certificate): Try to decode certificates given in files as PEM
28293 2016-04-05 Werner Koch <wk@gnupg.org>
28295 build: Fix for: Build gpgcompose only in maintainer mode.
28296 + commit f45ed07a0fffa3adbc75b9d5726108a066927599
28297 * g10/Makefile.am (noinst_PROGRAMS): Always add module_tests.
28299 doc: Install gpg and gpgv man pages under the correct name.
28300 + commit 4dc4fb1c14b3096bb1cdc5923c0d1eb419036805
28301 * doc/mkdefsinc.c (main): Add double include guard. Set variable
28302 gpgtwohack. Define macros gpgname and gpgvname.
28303 * doc/gpg.texi: Remove macro definition for gpgname. Use Texinfo var
28304 gpgtwohack to prepare the man pages. Use @gpgname everywhere.
28305 * doc/gpgv.texi: Likewise.
28306 * doc/Makefile.am (myman_pages): Remove gpg2.1 and gpgv2.1 but add
28307 them depending on USE_GPG2_HACK.
28309 build: Build gpgcompose only in maintainer mode.
28310 + commit 4b5341dc333983a15f649601fdddc42ba9161433
28311 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose only in maintainer
28314 gpg: Replace use of "gpg2" by GPG_NAME.
28315 + commit 7b58a1118d98543ed6854447d7b403877638ba54
28318 2016-04-04 Werner Koch <wk@gnupg.org>
28320 Now build "gpg" binary but install as "gpg2"
28321 + commit 96bcd4220f1f1313afe12097d8dc62342ac8de0d
28322 * configure.ac (USE_GPG2_HACK): New ac_define am_conditional.
28323 * common/homedir.c (gnupg_module_name): Replace use of macro
28324 NAME_OF_INSTALLED_GPG.
28325 * g10/keygen.c (generate_keypair): Ditto.
28326 * g10/Makefile.am (bin_PROGRAMS): Remove.
28327 (noinst_PROGRAMS): Add gpg or gpg2 and gpgv or gpg2.
28328 (gpg2_hack_list): New.
28329 (use_gpg2_hack): New.
28330 (gpg2_SOURCES): Rename to gpg_SOURCES.
28331 (gpgv2_SOURCES): Rename to gpgv_SOURCES.
28332 (gpg2_LDADD): Rename to gpg_LDADD.
28333 (gpgv2_LDADD): Rename to gpgv_LDADD.
28334 (gpg2_LDFLAGS): Rename to gpg_LDFLAGS.
28335 (gpgv2_LDFLAGS): Rename to gpgv2_LDFLAGS.
28336 (install-exec-hook): Remove WinCE specific rules and add new rules.
28337 (uninstall-local): Uninstall gpg/gpg2 and gpgv/gpgv2.
28338 * tests/openpgp/Makefile.am (required_pgms): s/gpg2/gpg/.
28339 * tests/openpgp/defs.inc: Ditto.
28340 * tests/openpgp/gpgtar.test: Ditto.
28341 * tests/openpgp/mkdemodirs: Ditto.
28342 * tests/openpgp/signdemokey: Ditto.
28344 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Remove obsolete
28345 --enable-mailto, add --enable-gpg2-is-gpg.
28347 tests: Add missing file.
28348 + commit c6ed863491ec3a1e0fcf9cbe2c93c87468306c29
28349 * tests/openpgp/Makefile.am (TEST_FILES): Add plain-largeo.asc.
28351 2016-04-04 Justus Winter <justus@g10code.com>
28353 g10: Support armored keyrings in gpgv.
28354 + commit abb352de51bc964c06007fce43ed6f6caea87c15
28355 * doc/gpgv.texi: Document the feature.
28356 * g10/Makefile.am (gpgv2_SOURCES): Add dearmor.c.
28357 * g10/dearmor.c (dearmor_file): Add sink argument.
28358 * g10/gpg.c (main): Adapt accordingly.
28359 * g10/gpgv.c (make_temp_dir): New function.
28360 (main): De-armor keyrings.
28361 * g10/main.h (dearmor_file): Adapt prototype.
28363 tests: Fix default key test.
28364 + commit dd5902cc45bae7582f8a0bc91a0a7f4d8ae45d8c
28365 * tests/openpgp/default-key.test: Avoid using the option
28366 '--trust-model' unconditionally.
28368 2016-04-01 Justus Winter <justus@g10code.com>
28370 build: Check for conflicting trust model options.
28371 + commit 6060ea898fda499211c9d5030fff41d58f899fb0
28372 * configure.ac: Disable TOFU if configured without trust models, and
28373 check for conflicting options.
28375 g10: Remove option --always-trust if compiled without trust models.
28376 + commit b74185b6eaeaae4754726ff203e11977777f568c
28377 * g10/gpg.c (opts): Remove option --always-trust if compiled without
28380 2016-03-31 Justus Winter <justus@g10code.com>
28382 speedo,w32: Build libsqlite3.
28383 + commit e7171f559590422cc52dbcb8d78d94569b31012f
28384 * build-aux/speedo.mk (speedo_spkgs): Add libsqlite3 on w32.
28385 (libsqlite3_ver): New variable.
28386 (speedo_pkg_libsqlite3_tar): Likewise.
28388 g10: Use gpg-error abstraction of sched_yield.
28389 + commit 8be9dab2dd2f83ca922c01542c63b404e34bdfd9
28390 * g10/tofu.c (begin_transaction): Use 'gpgrt_yield'.
28392 2016-03-29 Werner Koch <wk@gnupg.org>
28394 gpg: Fix NULL-segv for missing tofu DB.
28395 + commit e2c5781788f765815532410a77077ddbb72513e9
28396 * g10/tofu.c (opendb): Guard call to timeout function.
28398 2016-03-22 Werner Koch <wk@gnupg.org>
28400 gpg: Improve message when asking for key capabilities.
28401 + commit fc30c079a348436868968850dabf653b91f82419
28402 * g10/keygen.c (ask_key_flags): Improve message.
28404 gpg: Remove the extra prompt for Curve25519.
28405 + commit 7f919063d3e426104fe58ae779a9a066140014c1
28406 * g10/keygen.c (MY_USE_ECDSADH): New macro local to ask_curve.
28407 (ask_curve): Use a fixed table of curve names and reserve a slot for
28408 Curve448. Simplify CurveNNNN/EdNNNN switching.
28409 (ask_curve): Remove the Curve25519 is non-standard prompt.
28411 2016-03-19 Werner Koch <wk@gnupg.org>
28413 gpg: Silence trustdb computation with --quiet.
28414 + commit af9a4afbf0b518c8acff98e50135b2beb6c722c3
28415 * g10/trustdb.c (validate_keys): Do not print log_info stuff in quiet
28418 2016-03-17 Werner Koch <wk@gnupg.org>
28420 sm: Always create a keybox header when creating a new keybox.
28421 + commit 1aad5c6277ea3852ff57bbf680f61c9136ce4d5c
28422 * sm/keydb.c (maybe_create_keybox): Create the header blob.
28424 2016-03-17 Neal H. Walfield <neal@g10code.com>
28426 doc: Improve documentation of --enable-large-rsa.
28427 + commit 1dc7f55a4095ee42ce2d8c3eb41b7162edf2ca2e
28428 * doc/gpg.texi (--enable-large-rsa): Improve text.
28430 2016-03-17 NIIBE Yutaka <gniibe@fsij.org>
28432 agent: allow removal of the shadowed key.
28433 + commit 8588c2dbc4c4d1b53796f3dbe8489b932dca7a60
28434 * agent/findkey.c (agent_delete_key): Remove the key when asked.
28436 2016-03-16 NIIBE Yutaka <gniibe@fsij.org>
28438 g10: Add const qualifier.
28439 + commit b752d2c93778e6a1c1de3eddf8fc725b0ddd354e
28440 * g10/gpgcompose.c (show_help): Those are strings not to be modified.
28442 2016-03-15 Werner Koch <wk@gnupg.org>
28444 gpg: Do not rely on a certain evaluation order.
28445 + commit 60b34f96f4f390670462d719c0d797e622cee4d4
28446 * g10/keyedit.c (print_and_check_one_sig): Call check_key_signature
28447 before derefing IS_SELFSIG.
28449 2016-03-14 Werner Koch <wk@gnupg.org>
28451 scd: Add manufacturer id 0x000a.
28452 + commit 834b84c0ee4990393daa5e44afbab5b0aaed0758
28453 * g10/card-util.c (get_manufacturer): Add it.
28455 2016-03-10 Kevin J. McCarthy <kevin@8t8.us>
28457 g10: Silence message if --quiet is given.
28458 + commit 4f578cb2fc192f44070bb0d18dffaa3863ed0d92
28459 * g10/getkey.c (parse_def_secret_key): Silence message if --quiet is
28462 2016-03-08 Neal H. Walfield <neal@g10code.com>
28464 gpg: Add a new test.
28465 + commit b17577eac6b7599a4bab6fd3ecb04715aa01367c
28466 * g10/Makefile.am (EXTRA_DIST): Add t-stutter-data.asc.
28467 (module_tests): Add t-stutter.
28468 (t_stutter_SOURCES): New variable.
28469 (t_stutter_LDADD): New variable.
28471 2016-03-07 Justus Winter <justus@g10code.com>
28473 sm: Implement pinentry loopback and reading passphrases from fd.
28474 + commit eea139c56ef55081d8cd8df2a35ce507386e0f17
28475 * doc/gpgsm.texi: Document '--pinentry-mode' and '--passphrase-fd'.
28476 * sm/Makefile.am (gpgsm_SOURCES): Add new files
28477 * sm/call-agent.c (struct default_inq_parm_s): New definition.
28478 (start_agent): Pass in the pinentry mode.
28479 (default_inq_cb): Handle 'PASSPHRASE' and 'NEW_PASSPHRASE' inquiries.
28480 Adapt all call sites to the new callback cookie.
28481 * sm/gpgsm.c (cmd_and_opt_values): Add new values.
28482 (opts): Add new options.
28483 (main): Handle new options.
28484 * sm/gpgsm.h (struct opt): Add field 'pinentry_mode'.
28485 * sm/passphrase.c: New file.
28486 * sm/passphrase.h: Likewise.
28488 sm: Remove unused argument '--fixed-passphrase'.
28489 + commit 53ed98eda77ff2dcf390cebd0cec9f2665661863
28490 * doc/gpgsm.texi: Drop description.
28491 * sm/gpgsm.c (cmd_and_opt_values): Drop enum value.
28492 (opts): Drop argument.
28493 (main): Drop argument handling.
28494 * sm/gpgsm.h (struct opt): Drop field 'fixed_passphrase'.
28496 kbx: Avoid undefined behavior.
28497 + commit a68ca5a90457ac97eee4efd7fdea596d27c54697
28498 * kbx/keybox-file.c (_keybox_read_blob2): Cast to unsigned int before
28501 2016-03-07 NIIBE Yutaka <gniibe@fsij.org>
28503 scd: Bug fix for a device with multiple interfaces.
28504 + commit 7a32f87cccddb40521bfdd4eb2d0dc9c88fb3fe5
28505 * scd/ccid-driver.c (scan_or_find_usb_device): Use IFC_NO when
28506 accessing interface information.
28508 2016-03-04 Justus Winter <justus@g10code.com>
28510 build: Make libusb a hard requirement if the ccid driver is requested.
28511 + commit e997552161b2dd8aabf350adee14e208e1545aef
28512 * configure.ac: Print an error message and die if the internal ccid
28513 driver is requested but no suitable libusb is found.
28515 g10: Drop superfluous declaration.
28516 + commit 1e4b7823008daea1a22a6f0f9b379fdec37a4cd4
28517 * g10/main.h (disable_core_dumps): Drop declaration.
28519 g10: Guard code against errors.
28520 + commit 40f6529ceeea806fc011135a9fa3a3590a9534ac
28521 * g10/keygen.c (do_generate_keypair): Check for errors, in which case
28524 2016-03-03 Justus Winter <justus@g10code.com>
28526 dirmngr: Add more missing CFLAGS.
28527 + commit 9f0ba5089e664447c36cee3d9249f95e4ea39957
28528 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
28530 (t_dns_stuff_CFLAGS): Likewise.
28532 tests/openpgp: Skip gpgtar test if it has not been built.
28533 + commit a883d4c0f8125e809c144ec69e76c9f522102d8f
28534 * tests/openpgp/gpgtar.test: Check if executable exists.
28536 2016-03-02 Neal H. Walfield <neal@g10code.com>
28538 gpg: Add new program gpgcompose.
28539 + commit d040628ddf2c09ddc9581ff365680a568ad24278
28540 * g10/packet.h: Include "util.h".
28541 * g10/encrypt.c (encrypt_seskey): Don't mark as static.
28542 * g10/gpgcompose.c: New file.
28543 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose.
28544 (gpg2_SOURCES): Split everything but gpg.c into...
28545 (gpg_sources): ... this new variable.
28546 (gpgcompose_SOURCES): New variable.
28547 (gpgcompose_LDADD): Likewise.
28548 (gpgcompose_LDFLAGS): Likewise.
28550 gpg: More robustly detect valid non-armored OpenPGP messages.
28551 + commit 605276ef8cd449bfd574ae6c498fa5d7d265c5c7
28552 * g10/armor.c (is_armored): More robustly detect valid non-armored
28555 common: Provide a function for mapping packet types to strings.
28556 + commit 24e0f1d56e6f56e7fb52b5c6bdb100131e12dfe3
28557 * common/openpgpdefs.h (pkttype_str): New function.
28559 gpg: Rename pop_filter to iobuf_pop_filter and export it.
28560 + commit 1463f9b9624fae97cc89df3aa4546655ee893f7c
28561 * common/iobuf.c (pop_filter): Rename from this...
28562 (iobuf_pop_filter): ... to this. Don't mark it as static.
28564 gpg: Split write_pubkey_enc_from_list.
28565 + commit 7eac4942b537c4b3710d34e6adb9c5d36338f38b
28566 * g10/encrypt.c (write_pubkey_enc_from_list): Split the body of this
28567 function out into...
28568 (write_pubkey_enc): ... this new function.
28570 gpg: Allow the caller to write the contents of a plaintext packet.
28571 + commit 2fdb950471bd36f046672254ff26ca94797cc9f1
28572 * g10/build-packet.c (do_plaintext): Change the semantics such that if
28573 PT->BUF is NULL, it is the caller's responsibility to write the
28574 content (and disable partial body length mode, if appropriate).
28576 gpg: Add a new function for creating binary notations.
28577 + commit 1a624586149f9e34206e5d5e1ba0b7d2b7004c80
28578 * g10/build-packet.c (blob_to_notation): New function.
28580 gpg: Refactor the printing of binary notations.
28581 + commit fd2d00ccf558b1ac1184967d8702ef01cd60bf60
28582 * g10/build-packet.c (sig_to_notation): Break printing of binary
28584 (notation_value_to_human_readable_string): ... this new function.
28585 Provide a small preview of the binary data substituting non-printable
28586 characters with '?'.
28588 2016-03-02 Uldis Anšmits <uldis.ansmits@tieto.com>
28590 tests/openpgp: Make tests more portable.
28591 + commit 1cdb744d91ab33563fc0b3156fb05694caa55278
28592 * tests/openpgp/default-key.test: Avoid 'grep -q'.
28593 * tests/openpgp/gpgtar.test: Avoid 'grep -qe' and 'diff -q'.
28594 * tests/openpgp/use-exact-key.test: Avoid 'grep -q'.
28596 2016-03-02 Justus Winter <justus@g10code.com>
28598 common: Consolidate Assuan server argument handling.
28599 + commit e77c85577d1bdd77ad3b81907145fd68f2653c01
28600 * common/Makefile.am (common_sources): Add new files.
28601 * common/server-help.c: New file.
28602 * common/server-help.h: Likewise.
28603 * agent/command.c: Drop argument handling primitives in favor of using
28604 the consolidated ones.
28605 * dirmngr/server.c: Likewise.
28606 * g10/server.c: Likewise.
28607 * g13/server.c: Likewise.
28608 * scd/command.c: Likewise.
28609 * sm/server.c: Likewise.
28611 2016-03-01 Justus Winter <justus@g10code.com>
28613 dirmngr: Add missing CFLAGS.
28614 + commit 9a1778abcae0a7afe33be8e02b6d9a909463cd54
28615 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
28616 'GPG_ERROR_CFLAGS'.
28617 (t_dns_stuff_CFLAGS): Likewise.
28619 tools: Drop superfluous include.
28620 + commit 3a1d142f9b71721a631cf2037665e9def60aa384
28621 * tools/gpgtar.c: Do not include unused 'npth.h'.
28623 2016-02-26 Werner Koch <wk@gnupg.org>
28625 gpg: Prettify a 2 octet hex output.
28626 + commit 2de0d41219a522e01f050d475b3ddecb9173fc7d
28627 * g10/sig-check.c (check_key_signature2): Wrap line and use %02x.
28629 2016-02-25 Neal H. Walfield <neal@g10code.com>
28631 gpg: Show debugging info if a sig with an unsupported sig class is used.
28632 + commit 87515e39295e4b7eaec1641c38e1ac32e8d39a91
28633 * g10/sig-check.c (check_key_signature2): If SIG->CLASS is
28634 unsupported, show some debugging information. Don't use BUG to fail.
28635 Just return GPG_ERR_BAD_SIGNATURE.
28637 gpg: More carefully encode a packet's length.
28638 + commit 960f5e26f2cda3ac6e6b30548fa808a690c39ffc
28639 * g10/build-packet.c (write_header2): Make sure the length bits are
28640 cleared. Fail if HDRLEN is set and the specified length can't be
28641 encoded in the available space.
28643 gpg: Avoid directly twiddling bits.
28644 + commit 105a5629c7e938ec7b3c9c338ebe7bdfee4cfdad
28645 * g10/build-packet.c (do_plaintext): Use ctb_new_format_p to check the
28647 (write_header2): Likewise.
28649 gpg: Add some asserts.
28650 + commit c9636a1acc952eb8e1355089bc2e229dece98165
28651 * g10/build-packet.c (ctb_new_format_p): New function.
28652 (ctb_pkttype): New function.
28653 (do_user_id): Add some asserts.
28654 (do_key): Likewise.
28655 (do_symkey_enc): Likewise.
28656 (do_pubkey_enc): Likewise.
28657 (do_plaintext): Likewise.
28658 (do_encrypted): Likewise.
28659 (do_encrypted_mdc): Likewise.
28660 (do_compressed): Likewise.
28661 (do_signature): Likewise.
28662 (do_signature): Likewise.
28663 (write_header2): Likewise.
28665 gpg: Avoid an unnecessary copy.
28666 + commit 512bc72e1f8544341529174142273d857f45540c
28667 * g10/build-packet.c (sig_to_notation): Avoid an unnecessary copy of
28668 the data: the size of the packet is fixed.
28670 2016-02-23 Neal H. Walfield <neal@g10code.com>
28672 common: Reduce buffer size.
28673 + commit 75861b663bbb37214143c2ff7b1b4d1d10ba2657
28674 * common/iobuf.c (iobuf_copy): Change buffer size from 1 MB to 32 KB.
28676 common: Improve a function's documentation and comments.
28677 + commit 14d27b2cadf9b0bb413f2b8bad2d81c1d370c2e7
28678 * common/iobuf.c (iobuf_set_partial_body_length_mode): Fix
28679 documentation and comment. Add an assert.
28681 common: Add log_assert.
28682 + commit f57a91afb69c58f9d8d9632801650f28c7dc1e0d
28683 * common/logging.h (log_assert): New macro.
28685 gpg: Use higher-level functions.
28686 + commit 33ac735a781325c4d47cdf6216813866ab93562e
28687 * g10/build-packet.c (do_symkey_enc): Use iobuf_write instead of
28688 iobuf_put in a loop. Use iobuf_copy instead of iobuf_read and
28689 iobuf_write in a loop. Move the memory wiping from here...
28690 * common/iobuf.c (iobuf_copy): ... to here.
28692 common: Check for an error before reading.
28693 + commit 8066f8a3470f9d2f3682a28641a7b09eca29a105
28694 * common/iobuf.c (iobuf_copy): If DEST has a pending error, don't
28697 common: More accurately name function.
28698 + commit 903466e124841cb29f518afa6b7706d490737ac3
28699 * common/iobuf.c (iobuf_set_partial_block_mode): Rename from this...
28700 (iobuf_set_partial_body_length_mode): ... to this. Update callers.
28702 2016-02-23 Werner Koch <wk@gnupg.org>
28704 g13: Add commands --suspend and --remove.
28705 + commit f7968db30b0e0ccae038e354568accb0a05d877c
28706 * g13/g13.c (aSuspend, aResume): New.
28707 (opts): Add commands --suspend and --resume.
28708 (main): Implement dummy command aUmount. Implement commands aResume
28710 * g13/sh-cmd.c (cmd_suspend): New.
28712 (register_commands): Add commands RESUME and SUSPEND.
28713 * g13/server.c (cmd_suspend): New.
28715 (register_commands): Add commands RESUME and SUSPEND.
28716 * g13/be-dmcrypt.c (be_dmcrypt_suspend_container): New.
28717 (be_dmcrypt_resume_container): New.
28718 * g13/backend.c (be_suspend_container): New.
28719 (be_resume_container): New.
28720 * g13/suspend.c, g13/suspend.h: New.
28721 * g13/mount.c (parse_header, read_keyblob_prefix, read_keyblob)
28722 (decrypt_keyblob, g13_is_container): Move to ...
28723 * g13/keyblob.c: new file.
28724 (keyblob_read): Rename to g13_keyblob_read and make global.
28725 (keyblob_decrypt): Rename to g13_keyblob_decrypt and make global.
28726 * g13/sh-dmcrypt.c (check_blockdev): Add arg expect_busy.
28727 (sh_dmcrypt_suspend_container): New.
28728 (sh_dmcrypt_resume_container): New.
28729 * g13/call-syshelp.c (call_syshelp_run_suspend): New.
28730 (call_syshelp_run_resume): New.
28732 g13: Run mount after dmsetup.
28733 + commit f26867928c451443769fecc41c3283e077e8c49f
28734 * g13/g13-syshelp.c (main): Reject userids with a slash.
28735 * g13/sh-dmcrypt.c (sh_dmcrypt_mount_container): Run mount if a
28736 mountpoint is known.
28738 2016-02-23 Justus Winter <justus@g10code.com>
28740 tests/openpgp: Qualify executables with extension.
28741 + commit ede0061febe5b2edde6a1a79d599e3c7c0faed5a
28742 * tests/openpgp/Makefile.am (required_pgms): Qualify executables with
28745 tests/openpgp: Reimplement 'pinentry.sh' in c.
28746 + commit 01dcc2cf2f2f00235ffa7d0718ecb468370980cc
28747 * tests/openpgp/Makefile.am: Build new program.
28748 * tests/openpgp/defs.inc: Use the new program.
28749 * tests/openpgp/fake-pinentry.c: New file.
28751 tests/openpgp: Avoid dependency on source files.
28752 + commit 785a7f463ec4e937304ce1263c5e6a46e8079137
28753 * tests/openpgp/plain-largeo.asc: New file.
28754 * tests/openpgp/version.test: Dearmor the new file instead of relying
28755 on the source being present.
28757 tests/openpgp: Fix file removal.
28758 + commit 629284120ff359b98a178b6cddf0e005e5f4db1a
28759 * tests/openpgp/version.test: Fix file removal.
28761 common/exechelp: Provide a way to wait for multiple processes.
28762 + commit 5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81
28763 * common/exechelp-posix.c (gnupg_wait_process): Generalize to
28764 'gnupg_wait_processes'.
28765 * common/exechelp-w32.c (gnupg_wait_process): Likewise.
28766 * common/exechelp-w32ce.c (gnupg_wait_process): New function stub.
28767 * common/exechelp.h (gnupg_wait_process): New prototype.
28769 common/exechelp: Add general pipe function.
28770 + commit 9f4a8d4ea173b4b4cb4d4f06b4004d43e2f4b97a
28771 * common/exechelp-posix.c (gnupg_create_pipe): New function.
28772 * common/exechelp-w32.c (INHERIT_{READ,WRITE,BOTH}): New macros.
28773 (create_inheritable_pipe): Generalize so that both ends can be
28775 (do_create_pipe): Rename argument accordingly.
28776 (gnupg_create_{in,out}bound_pipe): Use new flags.
28777 (gnupg_create_pipe): New function.
28778 (gnupg_spawn_process): Use new flags.
28779 * common/exechelp-w32ce.c (gnupg_create_pipe): New stub.
28780 * common/exechelp.h (gnupg_create_pipe): New prototype.
28782 common/exechelp: Mute the Windows version.
28783 + commit 54acc87c1e0b100accbfd02cfce59a897f2f0ce1
28784 * common/exechelp-w32.c (gnupg_wait_process): Do not print an error if
28785 the exit code can be returned. This makes the Windows version behave
28786 like the POSIX version.
28788 common/exechelp: Avoid magic numbers.
28789 + commit 709e2a7e9a3197e8ded4be0b05c138e8d5adbca6
28790 * common/exechelp-w32.c (do_create_pipe): Use symbolic names.
28792 common/exechelp: Disable debugging by default.
28793 + commit 5d8f7b16c8490d6951772fa98c1f075a952cc571
28794 * common/exechelp-w32.c (DEBUG_W32_SPAWN): Set to 0.
28796 common/exechelp: Fix handle leak.
28797 + commit dd670366d7aedb07e9420d1f8575197acfae1914
28798 * common/exechelp-w32.c (gnupg_spawn_process_detached): Close process
28801 common/exechelp: Fix opening the 'nul' device.
28802 + commit 8857590006266da200427f2d4f9e8c27fbc89ed9
28803 * common/exechelp-w32.c (gnupg_spawn_process): Fix opening the 'nul'
28806 common/exechelp: Fix error handling.
28807 + commit f5a4b6a3a39a2b78d33769184d6133d5e256e02c
28808 * common/exechelp-w32.c (gnupg_spawn_process): Close the right handle.
28810 common/exechelp: Fix pipe creation.
28811 + commit b0125ae9850973b89010517b1dbce04125a51d51
28812 * common/exechelp-w32.c (gnupg_spawn_process): Fix the creation of the
28815 tools/mk-tdata: Fix data generation on Windows.
28816 + commit 661ba477e01b796db161fa612b46c353393c6b10
28817 * tools/mk-tdata.c (main): Set stdout to binary mode to avoid newline
28820 2016-02-19 Neal H. Walfield <neal@g10code.com>
28822 gpg: Systematically detect and fix signatures that are out of order.
28823 + commit 2d1d795481bc011447284f8ce0a3ae96a08daf17
28824 * g10/keyedit.c (sig_comparison): New function.
28825 (fix_key_signature_order): Merge functionality into...
28826 (check_all_keysigs): ... this function. Rewrite to eliminate
28827 duplicates and use a systematic approach to detecting and moving
28828 signatures that are out of order instead of a heuristic.
28829 (fix_keyblock): Don't call fix_key_signature_order. Call
28830 check_all_keysigs instead after collapsing the uids.
28832 gpg: Split check_key_signature2.
28833 + commit 44cdb9d73f1a0b7d2c8483a119b9c4d6caabc1ec
28834 * g10/sig-check.c (hash_uid_node): Rename from this...
28835 (hash_uid_packet): ... to this. Take a PKT_user_id instead of a
28837 (check_key_signature2): Split the basic signature checking
28838 functionality into...
28839 (check_signature_over_key_or_uid): ... this new function.
28841 gpg: Split print_and_check_one_sig.
28842 + commit 5fbd80579aea0f75ca1d2700515c5b8747a75c7d
28843 * g10/keyedit.c (print_and_check_one_sig): Split the print
28844 functionality into...
28845 (print_one_sig): ... this new function.
28847 gpg: Split the function check_signature_end.
28848 + commit ac5aea95455372145f3f06df2b4c1584d759d660
28849 * g10/sig-check.c (check_signature_end): Break the basic signature
28851 (check_signature_end_simple): ... this new function.
28853 gpg: Use format_keyid rather than manually formatting the keyid.
28854 + commit 10671c3a4c18ea26035a5819a9f2b8fd6c7e41ea
28855 * g10/keyedit.c (menu_addrevoker): Use format_keyid rather than
28856 manually formatting the keyid.
28857 * g10/keygen.c (card_write_key_to_backup_file): Likewise.
28859 gpg: Initialize the primary key when generating a key.
28860 + commit bf9d1248c80205795e26156f67aff0b3f796cfce
28861 * g10/keygen.c (do_generate_keypair): Initialize
28862 pri_psk->flags.primary, pri_psk->keyid and pri_psk->main_keyid.
28864 gpg: Add accessor & utility functions for pk->keyid and pk->main_keyid.
28865 + commit c45633a571bf663bc7f3610fc481acded6acfc19
28866 * g10/keydb.h (keyid_cmp): New function.
28867 * g10/keyid.c (pk_keyid): New function.
28868 (pk_main_keyid): New function.
28869 (keyid_copy): New function.
28870 (pk_keyid_str): New function.
28871 * g10/packet.h (PKT_public_key): Update comments for main_keyid and
28874 2016-02-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
28876 gpgparsemail: Allow weirdly-mixed pkcs7 signatures.
28877 + commit 7e7f35a2d7d40267a4dd30791df77420efeebfa7
28878 * tools/gpgparsemail.c: Add and check info->signing_protocol_2.
28880 gpg: Clean up dangling agent_open and agent_closed declarations.
28881 + commit 813df2fe6656e55bea4d0be07cc964a140218412
28882 * g10/keydb.h: Remove agent_open, agent_close declarations/
28883 * g10/migrate.c: #include <unistd.h> for access()
28885 2016-02-16 Werner Koch <wk@gnupg.org>
28887 w32: Make scdaemon build again due to libusb problem.
28888 + commit e1ceff16765b0342531709cf97d03ef0158c29d5
28889 * configure.ac: Add hack to disable libusb for Windows. Also use
28890 $host instead of $target in the switch
28893 The new test for libusb does not support cross-compiling. As a quick
28894 workaround we disable libusb for Windows because we can't use it anyway.
28896 w32: Do not error out if gpgconf is not installed.
28897 + commit 44b02e1beb4f38f26551d932827d5317fddd27c2
28898 * common/homedir.c (check_portable_app): Remove error message.
28900 2016-02-16 Neal H. Walfield <neal@g10code.com>
28902 gpg: Make ASCII armor decoding more robust to encoding errors.
28903 + commit 2f02ed75a9671a7aae36968d5a1618f71b491325
28904 * g10/armor.c (radix64_read): If the = is followed by the string "3D",
28905 check if the following four characters are valid radix 64 and are
28906 followed by a new line. If so, warn and ignore the '3D'.
28908 2016-02-16 Werner Koch <wk@gnupg.org>
28910 doc: Add a gnupg-module-overview picture.
28911 + commit a1c11283af759c1045a8bb75815db325f415ded4
28912 * doc/gnupg-module-overview.svg: New.
28913 * doc/debugging.texi (Component interaction): New.
28914 * doc/Makefile.am (EXTRA_DIST): Add PNG and PDF versions of
28915 gnupg-module-overview.svg. Remove two eps files.
28916 (BUILT_SOURCES): Add gnupg-module-overview.pdf and .png. Remove
28917 gnupg-card-architecture.epsl
28918 (gnupg_TEXINFOS): Add gnupg-module-overview.svg
28920 (DISTCLEANFILES): Remove build eps files.
28922 2016-02-15 NIIBE Yutaka <gniibe@fsij.org>
28924 common, g10: Fix indentation to silence GCC-6.
28925 + commit ea9cfcfbf76de232221f31787c53d5f46361a9f0
28926 * common/iobuf.c (iobuf_ioctl): Fix.
28927 * g10/encrypt.c (encrypt_filter): Likewise.
28928 * g10/keyring.c (prepare_search): Likewise.
28930 dirmngr: fix for memory alignment.
28931 + commit 6fbe12a51e8fe2649ffe5a8a02aa93026a8f02cd
28932 * dirmngr/dns-stuff.c (get_dns_cert): Cast through void *.
28933 (getsrv, get_dns_cname): Make sure it's aligned for HEADER.
28935 2016-02-14 Werner Koch <wk@gnupg.org>
28937 gpg: Add hidden key-edit subcommand "change-usage".
28938 + commit 9b28b82e7c40d1eacc446d5932cd613c56378ed8
28939 * g10/keyedit.c (cmdCHANGEUSAGE): New.
28940 (cmds): Add command "change-usage".
28941 (keyedit_menu): Handle that command.
28942 (menu_changeusage): New.
28943 * g10/keygen.c (keygen_add_key_flags): New.
28944 (ask_key_flags): Add optional arg current.
28946 2016-02-14 Neal H. Walfield <neal@g10code.com>
28948 gpg: Improve API documentation.
28949 + commit 9663b088480cef6734a3c5892d5ddbbd60ecc1a4
28950 * g10/seskey.c (make_session_key): Improve documentation.
28951 (encode_session_key): Improve documentation.
28952 * g10/encrypt.c (encrypt_seskey): Remove gratuitous initialization.
28953 * g10/dek.h (DEK): Improve documenation.
28955 gpg: Fix calc_header_length when LEN is 0 and improve documentation.
28956 + commit 5cdde08ea869ef02111f618ad782d392a296eb7f
28957 * g10/build-packet.c (calc_header_length): Return the correct haeder
28958 size when LEN is 0. Fix documentation.
28960 gpg: Fix format_keyid when dynamically allocating the buffer.
28961 + commit c0268c449d0f3d23be5ec7b92fe92e7e078166cf
28962 * g10/keyid.c (format_keyid): Return a char *, not a const char *. If
28963 BUFFER is NULL, then set LEN to the static buffer's size.
28965 common: Fix comment.
28966 + commit ad43dc6cfc2b610a4e34fe55811bd937f9c3238b
28967 * common/iobuf.c (iobuf_flush_temp): Fix comment.
28969 2016-02-13 Werner Koch <wk@gnupg.org>
28971 g13: Require a confirmation before g13 is used for DM-Crypt.
28972 + commit 86f3bb144ad75461eb9b7ac1e59046ac75efccac
28973 * g13/g13-syshelp.c (g13_syshelp_i_know_what_i_am_doing):
28974 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Call it.
28975 (sh_dmcrypt_mount_container): Call it.
28977 g13: Second chunk of code to support dm-crypt.
28978 + commit b0e6ab1109d05fc664f46e17d721fe9b01d38115
28979 * g13/be-dmcrypt.c, g13/be-dmcrypt.h: New.
28980 * g13/Makefile.am (g13_SOURCES): Add them.
28981 * g13/backend.c: Include be-dmcrypt.h and call-syshelp.h.
28982 (no_such_backend): Rename to _no_such_backend and provide replacement
28984 (be_is_supported_conttype): Support DM-Crypt.
28985 (be_take_lock_for_create): Call set_segvice for DM-Crypt.
28986 (be_create_new_keys): Make it a dummy for DM-Crypt.
28987 (be_create_container): Call be_dmcrypt_create_container.
28988 (be_mount_container): call be_dmcrypt_mount_container.
28989 * g13/g13-syshelp.c (main): Enable verbose mode.
28990 * g13/g13tuple.c (get_tupledesc_data): New.
28991 * g13/g13tuple.h (unref_tupledesc): New.
28992 * g13/g13.h (server_control_): Add field "recipients".
28993 * g13/g13.c (main): Fix setting of recipients via cmdline.
28994 (g13_deinit_default_ctrl): Release recipients list.
28995 (g13_request_shutdown): New. Replace all direct update of
28996 shutdown_pending by calls this function.
28997 * g13/server.c (server_local_s): Remove field recipients which is now
28999 (reset_notify, cmd_recipient, cmd_create): Adjust for this change.
29000 * g13/create.c (encrypt_keyblob): Rename to g13_encrypt_keyblob.
29001 (g13_create_container): Support DM-Crypt.
29002 * g13/mount.c (parse_header): Allow for meta data copies.
29003 (g13_mount_container): Support DM-Crypt.
29004 * g13/sh-cmd.c (cmd_create): Make it work.
29006 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Make it work.
29007 (sh_dmcrypt_mount_container): New.
29009 g13: Improve dump_keyblob.
29010 + commit 13f745b50dc7031755faadb2d3476a6b6aafc739
29011 * g13/g13tuple.c: Include keyblob.h.
29012 (find_tuple_uint): Factor code out to ...
29013 (convert_uint): new.
29014 (all_printable): New.
29015 * g13/mount.c (dump_keyblob: Move and rename to ...
29016 * g13/g13tuple.c (dump_tupledesc): here. Revamp and pretyy print uint
29019 g13: Define 3 new tags.
29020 + commit 59fc3507d18072833559f227ecab8aa00cad9466
29021 * g13/keyblob.h (KEYBLOB_TAG_CONT_NSEC): New.
29022 (KEYBLOB_TAG_ENC_NSEC): New.
29023 (KEYBLOB_TAG_ENC_OFF): New.
29025 g13: Rename utils.c to g13tuple.c.
29026 + commit 82d12156ef5f948d44934ed44d79d24cc9e94366
29027 * g13/utils.c: Rename to g13tuple.c.
29028 * g13/utils.h: Rename to g13tuple.h. Change all users.
29029 * g13/Makefile.am: Adjust accordingly
29031 g13: Add functions to handle uint in a keyblob.
29032 + commit 4f152f3276b6d40d2568a27e74903dd18b41d752
29033 * g13/utils.c (append_tuple_uint): New.
29034 (find_tuple_uint): New.
29035 * g13/t-utils.c: New.
29036 * g13/Makefile.am (noinst_PROGRAMS, TESTS): New.
29037 (module_tests, t_common_ldadd): New.
29038 (t_utils_SOURCES, t_utils_LDADD): New.
29040 g13: Re-factor high level create code.
29041 + commit dc1dbc43a6bfb2f3e6a1cc2ca089e0318b3af0ed
29042 * g13/create.c (g13_create_container): Factor some code out to ...
29043 * g13/backend.c (be_take_lock_for_create): new.
29045 g13: Return an error for non-existing device.
29046 + commit 3087197008d2b12bf9f0d7d1f2aca500db816e7c
29047 * g13/sh-cmd.c (cmd_device): Set ERR.
29049 g13: Fix releasing of a syshelp context.
29050 + commit 6390beca54f55e8d36ff767b99ae9ff68b15f10e
29051 * g13/call-syshelp.c (call_syshelp_release): Allow a NULL arg.
29053 g13: Switch over to common/exectool.c.
29054 + commit c5d7045dafcfb569c11c90c04ea7a75328c80084
29055 * g13/sh-exectool.c: Remove. It has been replaced by common/exectool.c.
29056 * g13/Makefile.am (g13_syshelp_SOURCES): Remove sh-exectool.c
29057 * g13/sh-blockdev.c: Include exectool.h. Change sh_exec_tool to
29059 * g13/sh-dmcrypt.c: Ditto.
29061 common: Make gnupg_exec_tool conform to spec.
29062 + commit d19d6e1856c9a1acbf48e8b2e39b3d9171aa9f7f
29063 * common/exectool.c (gnupg_exec_tool): Allocate extra byte. Allow
29064 zero length read. Append hidden byte. Release memory on error.
29066 g13: First chunk of code to support dm-crypt.
29067 + commit 81494fd30d3815502247a721f50d9eadf86a73fa
29068 * g13/call-syshelp.c, g13/call-syshelp.h: New.
29069 * g13/g13-syshelp.c, g13/g13-syshelp.h: New.
29070 * g13/sh-cmd.c: New.
29071 * g13/sh-blockdev.c: New.
29072 * g13/sh-exectool.c: New.
29073 * g13/sh-dmcrypt.c: New.
29074 * g13/Makefile.am (sbin_PROGRAMS): Add g13-syshelp.c
29075 (g13_syshelp_SOURCES): New.
29076 (g13_syshelp_LDADD): New.
29078 * g13/g13.c (opts): Add option --type.
29079 (g13_deinit_default_ctrl): New.
29080 (main): Implement that option. Call g13_deinit_default_ctrl.
29081 * g13/g13.h (struct call_syshelp_s): New declaration.
29082 (server_control_s): Add field syshelp_local.
29083 * g13/keyblob.h (KEYBLOB_TAG_CREATED): New.
29084 (KEYBLOB_TAG_ALGOSTR): New.
29085 (KEYBLOB_TAG_HDRCOPY): New.
29086 * g13/backend.c (be_parse_conttype_name): New.
29087 (be_get_detached_name): Add CONTTYPE_DM_CRYPT.
29089 tests: Remove some harmless warnings in regression tests.
29090 + commit d711f5c7697cd4bc5dc6d9fd01706cabc771dad2
29091 * tests/openpgp/gpg-agent.conf.tmpl: Remove --use-standard-socket.
29093 2016-02-12 Neal H. Walfield <neal@g10code.com>
29095 common: Change simple_query to ignore status messages.
29096 + commit acac103ba5772ae738ce5409d17feab80596cde6
29097 * common/simple-pwquery.c (simple_query): Ignore status messages.
29099 2016-02-12 NIIBE Yutaka <gniibe@fsij.org>
29101 g10: Make sure to have the directory for trustdb.
29102 + commit d9f9b3be036747c9f55060aed47896f951bfb853
29103 * g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE. Check
29104 the directory and create it if none before calling take_write_lock.
29106 2016-02-02 Neal H. Walfield <neal@g10code.com>
29108 doc: Note that rngd can also be used to quickly generate insecure keys.
29109 + commit 75311cfe18071b94c66121a9785b133b6df345a3
29110 * doc/gpg-agent.texi (Agent Options): Add comment to the description
29111 of --debug-quick-random that rngd can also be used to quickly generate
29114 2016-01-27 Werner Koch <wk@gnupg.org>
29116 scd: Fix size_t/int mismatch in libusb.
29117 + commit 3d952a2fe5da9d84c20d3debdcc1e425b08781c6
29118 * scd/ccid-driver.c (bulk_in, abort_cmd, ccid_poll): Change msglen to
29121 scd: Fix detection of libusb.
29122 + commit 1b90b52a56b4f808ad29a7ef79aeafc03c7424b4
29123 * configure.ac (HAVE_LIBUSB): Clear if no header file was found.
29124 (LIBUSB_LIBS): Ditto.
29126 dirmngr: Build fix for FreeBSD (EAI macros)
29127 + commit 4d67144142f04184b835e50314eb21b882b9e00a
29128 * dirmngr/dns-stuff.c (map_eai_to_gpg_error): Map EAI_NODATA and
29129 EAI_ADDRFAMILY only if defined.
29131 2016-01-27 NIIBE Yutaka <gniibe@fsij.org>
29133 scd: Migrate to new API of libusb 1.0.
29134 + commit d0d97089706286fafd3c8ff56f3b5bf7ac07c6e0
29135 * configure.ac (LIBUSB_CPPFLAGS): New.
29136 * scd/Makefile.am (AM_CPPFLAGS): Add LIBUSB_CPPFLAGS.
29137 * scd/ccid-driver.c: Use libusb 1.0 API.
29139 2016-01-26 Werner Koch <wk@gnupg.org>
29142 + commit e9e5e83ec14459c2fc9060c54fc8e7381b541acd
29145 2016-01-26 Andre Heinecke <aheinecke@intevation.de>
29147 gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32.
29148 + commit 3e50236d4ecc3601b2641bf4273a0ff64bb5fdc4
29149 * common/utf8conv.c (wchar_to_utf8): Factor code out to ...
29150 (wchar_to_cp): new.
29151 (utf8_to_wchar): Factor code out to ...
29152 (cp_to_wchar): new.
29153 (wchar_to_native): New.
29154 (native_to_wchar): New.
29155 * tools/gpgtar-create.c (fillup_entry_w32): Use native_to_wchar.
29156 (scan_directory): Use wchar_to_native.
29158 2016-01-26 NIIBE Yutaka <gniibe@fsij.org>
29160 g10: Fix segfault on unsupported curve.
29161 + commit b8bb16c6c08d3c2947f1ff67419b36eb203c5c1a
29162 * g10/call-agent.c (learn_status_cb): Don't use NULL for strcmp.
29164 sm: small fix for GCC 6.
29165 + commit d33a34004bef028068538f099c32a0e292a004c3
29166 * sm/export.c (insert_duptable): Use unsigned 0.
29168 2016-01-25 Werner Koch <wk@gnupg.org>
29169 Daiki Ueno <ueno@gnu.org>
29171 gpg: Print PROGRESS status lines during key generation.
29172 + commit fbe1cf67aadc5a33cf815ddbcfc9669e43caa123
29173 * g10/call-agent.c (cache_nonce_status_cb): Rewrite by using
29174 has_leading_keyword. Handle PROGRESS lines.
29176 2016-01-25 Werner Koch <wk@gnupg.org>
29178 agent: Send PROGRESS status lines to the client.
29179 + commit ee87c653bf4b495714e8e6b024d0a8ace3a33452
29180 * agent/gpg-agent.c (struct progress_dispatch_s): New.
29181 (progress_dispatch_list): New.
29182 (main): Register libgcrypt pogress handler.
29183 (agent_libgcrypt_progress_cb): New.
29184 (agent_set_progress_cb): New.
29185 (unregister_progress_cb): New.
29186 (agent_deinit_default_ctrl): Call unregister.
29187 * agent/command.c (progress_cb): New.
29188 (start_command_handler): Register progress callback.
29190 speedo: Allow use of SHA-256 checksums.
29191 + commit 039a55716b8abd22ce23a96dce34cf2dc4be1862
29192 * build-aux/getswdb.sh: Add option --find-sha256sum.
29193 * build-aux/speedo.mk (libgpg_error_sha2): New var. Also for all
29196 (SETVARS, SETVARS_W64): Prefer sha256sum over sha1sum.
29197 (installer-from-source): Create swdb fragment.
29199 2016-01-22 Werner Koch <wk@gnupg.org>
29201 dirmngr: Indicate that serial numbers are hexadecimal.
29202 + commit 12c665b36cdc4b7189549698fc4cc1b3523b18f5
29203 * dirmngr/misc.c (hexify_data): Add arg with_prefix. Adjust all
29205 * dirmngr/crlcache.c (cache_isvalid): Print "0x" in front of the S/N.
29207 dirmngr: Provide the keyserver pool name even if there is no CNAME.
29208 + commit 77bceb2902dd489443073d91836ea54376c60bf6
29209 * dirmngr/ks-engine-hkp.c (map_host): Fix setting of r_poolname.
29211 2016-01-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
29214 dirmngr: Use sks-keyservers CA by default for the hkps pool.
29215 + commit afb8696126ff0babaab23e884ff5da008281e3b7
29216 * dirmngr/Makefile.am (dist_pkgdata_DATA): Add sks-keyservers.netCA.pem.
29217 * dirmngr/http.c (http_session_new): Add optional arg
29218 intended_hostname and set a default cert.
29219 * dirmngr/ks-engine-hkp.c (send_request): Pass httphost to
29222 2016-01-22 Werner Koch <wk@gnupg.org>
29224 gpg: Allow new user ids with only the mail address.
29225 + commit fc0c71dfe5ea8f1c683101948c23f5d2064ee4cd
29226 * g10/keygen.c (ask_user_id): Allow empty name.
29228 2016-01-21 Werner Koch <wk@gnupg.org>
29230 gpg: Improve header text of the auto-created revocations.
29231 + commit bb99b40bd1e624f58ca806ca16dc73d4d594a30a
29232 * g10/revoke.c (gen_standard_revoke): Improve header text for the
29233 file. Add info output.
29235 gpg: Make --auto-key-retrieve work with dirmngr configured server.
29236 + commit 09117e769a093467cb47154f36d7dda613313e33
29237 * g10/call-dirmngr.c (gpg_dirmngr_ks_list): Make R_KEYSERVER optional.
29238 * g10/keyserver.c (keyserver_any_configured): New.
29239 (keyserver_put): Remove arg keyserver because this will always receive
29240 opt.keyserver which is anyway used when connecting dirmngr. Do not
29241 check opt.keyserver.
29242 (keyserver_import_cert): Replace opt.keyserver by
29243 keyserver_any_configured.
29244 * g10/mainproc.c (check_sig_and_print): Ditto.
29245 * g10/import.c (revocation_present): Ditto.
29246 * g10/getkey.c (get_pubkey_byname): Ditto.
29247 * g10/gpgv.c (keyserver_any_configured): Add stub.
29248 * g10/test-stubs.c (keyserver_any_configured): Add stub.
29250 2016-01-20 Werner Koch <wk@gnupg.org>
29252 gpg: Silence message about ignoring revoked user ids.
29253 + commit bdb61351776c038d668310d9b5e5c32588ef6519
29254 * g10/trustdb.c (tdb_get_validity_core): Print message only in debug
29257 agent: New option --pinentry-timeout.
29258 + commit 499743387f4d07847a2842358bc54f9237e0c2a7
29259 * agent/gpg-agent.c (oPinentryTimeout): New.
29260 (opts): Add new option.
29261 (parse_rereadable_options): PArse that option.
29262 (main): Tell gpgconf about this option.
29263 * agent/call-pinentry.c (start_pinentry): Send option to Pinentry.
29264 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add Option.
29266 2016-01-19 Werner Koch <wk@gnupg.org>
29268 gpg: Streamline use of error messages in tofu.c.
29269 + commit cfa41890bb5ff306c07dad295136601fe47566a7
29270 * g10/tofu.c: Make use of print_further_info to reduce the number of
29271 different error messages to be translated. Also streamline some
29274 common: Add substitute code for libgpg-error < 1.22.
29275 + commit 8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f
29276 * common/util.h (GPG_ERR_DB_CORRUPTED): New.
29278 gpg: Add function print_further_info.
29279 + commit d96e76d15f61812b950b64a60bc47117785a9dac
29280 * g10/misc.c (print_further_info): New.
29282 2016-01-18 Werner Koch <wk@gnupg.org>
29284 g10: Improve strings printed by tofu.c.
29285 + commit 79778a8dd5f61a6b7abeeb44b75d82932db788b7
29286 * g10/tofu.c: Include ttyio.h. Change many strings to help
29287 translating. Make use of ngettext wehere needed.
29289 (TIME_AGO_UNIT_SMALL_NAME): Remove this and all similar *_NAME macros.
29290 (time_ago_unit): Remove.
29291 (get_trust): Use tty_prints and cpr_get only for the actual prompt.
29293 (show_statistics): Use two English strings for singular and plural.
29295 * po/POTFILES.in: Add tofu.c.
29297 gpg: Use "days" in "...newer than..." diagnostics.
29298 + commit 9309bda9581715d304305c8c5116f2cbb31aec77
29299 * g10/sig-check.c (check_signature_metadata_validity): Use days if
29302 Use ngettext for some strings.
29303 + commit 437965e5622612941ed0fa55584811c65069242e
29304 * scd/app-openpgp.c (build_enter_admin_pin_prompt): Use ngettext for
29306 (do_genkey): Ditto.
29307 * g10/keyedit.c (check_all_keysigs, menu_delsig, menu_clean): Ditto.
29308 * g10/keylist.c (print_signature_stats): Ditto.
29309 * g10/keyserver.c (keyserver_refresh): Ditto.
29310 * g10/sig-check.c (check_signature_metadata_validity): Ditto.
29311 * g10/sign.c (do_sign): Ditto.
29312 * g10/trustdb.c (reset_trust_records): Ditto.
29313 (validate_keys): Use a table like diagnostic output.
29315 2016-01-15 Werner Koch <wk@gnupg.org>
29317 kbx,w32: Use shorter retry intervals for keybox_file_rename.
29318 + commit 3cccd5a83b96e4558642dcdf5d974f64ebdb9817
29319 * kbx/keybox-util.c (keybox_file_rename): Restart retry intervals
29322 2016-01-14 Werner Koch <wk@gnupg.org>
29324 w32: Fix deadlock introduced by keybox_file_rename.
29325 + commit 663c5d129a8f400cc6eb8ab7b91772d6e578152d
29326 * g10/keyring.c (keyring_lock) [W32]: Flush the close cache before
29328 * kbx/keybox-init.c (keybox_lock) [W32]: Close the file before
29331 gpg: Detect race between pubring.gpg and pubring.kbx use.
29332 + commit 3b1248e007a6bf830a3230ee2d9cc548205ec31a
29333 * g10/keydb.c (maybe_create_keyring_or_box): Detect race condition.
29335 kbx: New function keybox_file_rename to replace rename.
29336 + commit 8241ed59d05e06252647b26477ed5c2f84895a26
29337 * kbx/keybox-util.c: Include windows.h.
29338 (keybox_file_rename): New.
29339 * kbx/keybox-update.c (rename_tmp_file): Replace remove+rename by
29340 keybox_file_rename.
29341 * g10/keyring.c (rename_tmp_file): Ditto.
29343 kbx: Add function keybox_tmp_names to avoid code duplication.
29344 + commit f5cceef115f0307664956d01c48b1b397fdad4b3
29345 * kbx/keybox-update.c (create_tmp_file): Move some code to...
29346 * kbx/keybox-util.c (keybox_tmp_names): new.
29347 * g10/keyring.c: Include keybox.h.
29348 (create_tmp_file): Replace parts by keybox_tmp_names.
29350 gpg: Make --list-options show-usage the default.
29351 + commit 360534bde770f4845669de223154216d249b954b
29352 * g10/gpg.c (main): Add LIST_SHOW_USAGE.
29354 2016-01-13 Werner Koch <wk@gnupg.org>
29356 kbx: Change return type of search functions to gpg_error_t.
29357 + commit c7ca0f73dbe7c080b79f93f90f00ba2396fc4bd0
29358 * kbx/keybox-search.c (keybox_search_reset): Change return type to
29360 (keybox_search): Ditto. Also handle GPG_ERR_EOF.
29361 * sm/keydb.c (keydb_search_reset): Ditto.
29363 gpg: Improve error code from lock_all.
29364 + commit 9b6c91469a804c60289a2ed21334dfd856c294bb
29365 * g10/keydb.c (lock_all): Do not clobber RC during failur cleanup.
29367 kbx: Improve and fix keybox_lock.
29368 + commit 8f1368d5e3f7654ad9cb100053535f728dff2344
29369 * kbx/keybox-init.c (keybox_lock): Make sure ERR is initialized. Get
29370 error codes from dotlock functions.
29372 common: Make sure dotlock functions set a proper ERRNO.
29373 + commit 4aceebf36f103eb380e21d12a1f08b7d6ea7cc8e
29374 * common/dotlock.c (map_w32_to_errno): New.
29375 (read_lockfile): Return a proper ERRNO.
29376 (dotlock_create_unix): Do not let log functions clobber ERRNO.
29377 (dotlock_take_unix): Ditto.
29378 (dotlock_release_unix): Ditto.
29379 (dotlock_create_w32): Set proper ERRNO.
29380 (dotlock_take_w32): Ditto.
29381 (dotlock_release_w32): Ditto.
29383 kbx: Implement keybox_lock for use by gpg.
29384 + commit 160862978628b07ed5150ec2c8abad6af1656bc3
29385 * kbx/keybox-defs.h: Include dotlock.h and logging.h.
29386 (CONST_KB_NAME): Remove. Replace usage by KB_NAME.
29387 (struct keybox_name): Add field "lockhd".
29388 * kbx/keybox-init.c (keybox_register_file): Init LOCKHD.
29389 (keybox_lock): Chnage to return gpg_error_t. Implement locking.
29391 gpg: Make sure to mark a duplicate registered keybox as primary.
29392 + commit 9dc355ad3ae0026ab04c424dc984d748b8fad393
29393 * kbx/keybox-init.c (keybox_register_file): Change interface to return
29394 the token even if the file has already been registered.
29395 * g10/keydb.c (primary_keyring): Rename to primary_keydb.
29396 (maybe_create_keyring_or_box): Change return type to gpg_error_t.
29397 (keydb_add_resource): Ditto. s/rc/err/.
29398 (keydb_add_resource): Mark an already registered as primary.
29399 * sm/keydb.c (maybe_create_keybox): Change return type to gpg_error_t.
29400 (keydb_add_resource): Ditto. s/rc/err/.
29401 (keydb_add_resource): Adjust for changed keybox_register_file.
29403 2016-01-13 NIIBE Yutaka <gniibe@fsij.org>
29405 Fix to support git worktree.
29406 + commit 96237b9a63a50aed1884cb06f84279b977d6a8fa
29407 * autogen.sh, Makefile.am, doc/Makefile.am: Use -e for testing .git.
29409 2016-01-12 Werner Koch <wk@gnupg.org>
29411 ssh: Accept OpenSSH *cert-v01 key variants.
29412 + commit e2f984b4afffaa89bdeba2f5d447b5681237177e
29413 * agent/command-ssh.c (SPEC_FLAG_WITH_CERT): New.
29414 (ssh_key_types): Add OpenSSH cert types.
29415 (stream_read_string): Allow a dummy read.
29416 (ssh_receive_mpint_list): Pass SPEC by reference.
29417 (ssh_receive_mpint_list): New arg CERT and use it.
29418 (ssh_receive_key): Read certificate into an estream object and modify
29419 parser to make use of that object.
29421 2016-01-12 NIIBE Yutaka <gniibe@fsij.org>
29423 common: Fix iobuf API of filter function for alignment.
29424 + commit 4b4639b0b04dc82c550fa711dd7193e13fc4a428
29425 * common/iobuf.h: Fix comment.
29427 common: Fix iobuf API of filter function for alignment.
29428 + commit 3f52c7da3940ec06572270d511000dc7fe9c27d2
29429 * common/iobuf.h (IOBUFCTRL_DESC): Change the call semantics.
29430 * common/iobuf.c (iobuf_desc): Add the second argument DESC.
29431 (print_chain, iobuf_close, do_open, iobuf_sockopen, iobuf_ioctl)
29432 (iobuf_push_filter2, pop_filter, iobuf_write_temp): Change calls
29434 (file_filter, file_es_filter, sock_filter, block_filter): Fill the
29436 * common/t-iobuf.c (every_other_filter, double_filter): Likewise.
29437 * g10/armor.c, g10/cipher.c, g10/compress-bz2.c, g10/compress.c,
29438 g10/decrypt-data.c, g10/encrypt.c, g10/mdfilter.c, g10/progress.c,
29439 g10/textfilter.c: Likewise.
29441 2016-01-11 Werner Koch <wk@gnupg.org>
29443 gpg: Fix NULL de-ref for ambiguous key check in --export-ssh-keys.
29444 + commit b280aa6423c9492e8c5a9afa57339d06d957996d
29445 * g10/getkey.c: Allow arg RET_KEYBLOCK to be NULL.
29447 2016-01-09 Werner Koch <wk@gnupg.org>
29449 tools: Remove gpgkey2ssh.
29450 + commit eb9c021631174fde4c1c444bbc533a7a46d570cd
29451 * tools/gpgkey2ssh.c: Remove.
29452 * tools/Makefile.am (bin_PROGRAMS): Ditto.
29454 2016-01-08 Werner Koch <wk@gnupg.org>
29456 gpg: Support ECDSA keys with --export-ssh-key.
29457 + commit b2da3951a395366bf1644bc4c4eb42d657effe17
29458 * g10/export.c (key_to_sshblob): Add hack for ECDSA.
29460 gpg: New command --export-ssh-key.
29461 + commit 4970868d8d84d3a64b067e5aafc9f097621758d3
29462 * g10/export.c: Include membuf.h and host2net.h.
29463 (key_to_sshblob): New.
29464 (export_ssh_key): New.
29465 * g10/gpg.c (aExportSshKey): New.
29466 (opts): Add command.
29467 (main): Implement that command.
29469 gpg: Add an exact search flag to the PK struct.
29470 + commit 34bca9cd4b8517795833cb754b0d5b1dd33b08ed
29471 * g10/getkey.c (merge_selfsigs_subkey): Clear exact flag.
29472 (finish_lookup): Set exact flag.
29473 * g10/packet.h (PKT_public_key): Add field flags.exact.
29475 Print warnings if old daemon versions are used.
29476 + commit 2aa42baaf3dd7c3ae613ae0c61760a17c8adfcd0
29477 * common/status.h (STATUS_WARNING): New.
29478 * g10/call-agent.c (warn_version_mismatch): New.
29479 (start_agent): Call warn function.
29480 * g10/call-dirmngr.c: Include status.h.
29481 (warn_version_mismatch): New.
29482 (create_context): Call warn function.
29483 * sm/call-agent.c (warn_version_mismatch): New.
29484 (start_agent): Call warn function.
29485 (gpgsm_agent_learn): Call warn function.
29486 * sm/call-dirmngr.c (warn_version_mismatch): New.
29487 (prepare_dirmngr): Call warn function.
29489 common: New function compare_version_strings.
29490 + commit 4d7ac43ff71fdadfd2e04621f74840a82fbe788a
29491 * common/stringhelp.c (parse_version_number): New.
29492 (parse_version_string): New.
29493 (compare_version_strings): New.
29494 * common/t-stringhelp.c (test_compare_version_strings): New.
29495 (main): Call test. Return ERRCOUNT instead of 0.
29497 common: New function get_assuan_server_version.
29498 + commit 496643291e1e346434e9c98405c5a370957eb7d3
29499 * common/asshelp.c: Include membuf.h.
29500 (get_assuan_server_version): New.
29501 * g10/call-agent.c (agent_get_version): Use new function.
29503 common: New put_membuf_cb to replace static membuf_data_cb.
29504 + commit 833ba5faa1340aff80a205acbb701d4ae1d594d0
29505 * common/membuf.c (put_membuf_cb): New.
29506 * agent/call-scd.c (membuf_data_cb): Remove. Change callers to use
29508 * common/get-passphrase.c (membuf_data_cb): Ditto.
29509 * g10/call-agent.c (membuf_data_cb): Ditto.
29510 * sm/call-agent.c (membuf_data_cb): Ditto.
29512 2016-01-07 Werner Koch <wk@gnupg.org>
29514 gpg: Return an error code from keygrip_from_pk.
29515 + commit 8fd406c317ad7c2e375ae4f7d20656dadf6d7fcc
29516 * g10/keyid.c (keygrip_from_pk): Return an error code.
29518 gpg: Avoid warnings about possible NULL deref.
29519 + commit 8a56a38387c10c02ba0790c655dd5c1d08e4a724
29520 * g10/getkey.c (cache_public_key): Protect deref of CE which actually
29522 * g10/keygen.c (quickgen_set_para): s/sprintf/snprintf/.
29523 * g10/tofu.c (end_transaction, rollback_transaction): Allow NULL for
29525 * g10/trustdb.c (update_min_ownertrust): Remove useless clearling of
29528 gpg: Fix warnings about useless assignments.
29529 + commit 008aa6e6d4b213c3a0d15509eb46cf168b6f2c94
29530 * g10/armor.c (parse_hash_header): Remove duplicate var assignment.
29531 * g10/getkey.c (cache_user_id): Ditto.
29532 * g10/keygen.c (ask_curve): Ditto. This also fixes a small memory
29535 * g10/keygen.c (proc_parameter_file): Remove useless assignment or
29537 (generate_keypair): Ditto.
29538 * g10/getkey.c (finish_lookup, lookup): Ditto.
29539 * g10/card-util.c (change_pin): Ditto.
29540 * g10/gpg.c (main) <aVerify>: Ditto.
29541 * g10/import.c (import): Ditto.
29542 (print_import_check): Ditto
29543 * g10/keyring.c (do_copy): Ditto.
29544 * g10/tdbio.c (tdbio_read_record): Ditto.
29545 * g10/trustdb.c (tdb_update_ownertrust): Ditto.
29546 (update_validity): Ditto.
29548 * g10/server.c (cmd_passwd): Remove useless call to skip_options.
29550 sm: Avoid warnings about useless assignments.
29551 + commit 126aebbb82667d160c8c4435898efeb3b43c4ec8
29552 * sm/call-dirmngr.c (prepare_dirmngr): Remove setting of ERR.
29553 (unhexify_fpr): Remove useless computation on N.
29554 * sm/certchain.c (do_validate_chain): Remove clearing of RC. Remove
29555 useless setting of RC.
29556 * sm/fingerprint.c (gpgsm_get_keygrip): Remove setting of RC.
29557 * sm/gpgsm.c (build_list): Replace final stpcpy by strcpy.
29558 * sm/keydb.c (keydb_clear_some_cert_flags): Remove clearing of RC.
29559 * sm/server.c (cmd_getauditlog): Comment unused skip_options.
29561 kbx: Avoid warnings about useless assignments.
29562 + commit 0de7d61437bd0bfbe645d5eed7a62df03129fb32
29563 * kbx/keybox-dump.c (_keybox_dump_blob): Remove setting of IN_RANGE
29564 and the last increment of P.
29566 gpg: Fix DNS cert lookup returning an URL.
29567 + commit a41638acf4808caa619f4f3f4c0dcd12be00d6f8
29568 * g10/call-dirmngr.c (dns_cert_status_cb): Store URL status in the URL
29569 param. The old code was entirely buggy (c+p error).
29571 2016-01-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
29573 Fix keystrlen to work when OPT.KEYID_FORMAT is KF_DEFAULT.
29574 + commit 2c3e67430d9b523c85c81ae562223fd51e3608cc
29575 * g10/keyid.c (keystrlen): If opt.keyid_format is KF_DEFAULT unset,
29576 default to KF_SHORT.
29577 (format_keyid): Default to KF_SHORT, not KF_0xLONG.
29579 2016-01-06 Werner Koch <wk@gnupg.org>
29581 gpg: Silence some regression tests.
29582 + commit c7389ae90fa4a70766400cc241ff6a45aa750324
29583 * g10/test.c (TEST): Print diagnostics only in verbose mode.
29585 gpg: Avoid using an uninitialized SALT on premature EOF.
29586 + commit 85cc7449fb00ac85b0c2eecd22bd38b23f33edf5
29587 * g10/parse-packet.c (parse_key): Check for premature end of salt.
29589 gpg: Silence warnings found by static analyzer.
29590 + commit 09accc0e3d74e6289bed40b5bfc6479981cabfe4
29591 * g10/keyedit.c (change_passphrase): Remove useless init of ANY.
29592 (keyedit_quick_adduid): Remove useless setting of ERR.
29593 * g10/parse-packet.c (parse_key): Remove PKTLEN from condition because
29594 it has been checked before the loop.
29595 (parse_plaintext): Remove useless init of PKTLEN.
29597 kbx: Avoid faulty fclose in an error case.
29598 + commit db82b6131d437bf6ba34db0e08b7dfa9edb11e45
29599 * kbx/keybox-update.c (blob_filecopy): Do not close an uninitialized
29600 file pointer after a failure to create a temp file.
29601 * kbx/keybox-openpgp.c (next_packet): Remove duplicate assignment of
29604 dirmngr: Silence one regression test.
29605 + commit 6deafb92abe100ff67e3a0a230a39e8c0ad41900
29606 * dirmngr/t-dns-stuff.c (main): Do not print info during standard
29609 common: Avoid warnings about useless assignments.
29610 + commit e64317c15e9960f3173d374e589f7c3565a4ad08
29611 * common/b64enc.c (b64enc_finish): Remove var assignment which is not
29613 * common/iobuf.c (file_filter): Ditto.
29614 * common/tlv.c (do_find_tlv): Ditto.
29615 * common/userids.c (classify_user_id): Ditto.
29617 tests: Use info and error instead of a plain echo.
29618 + commit 1fbfa1bf0a6ad0dc7ed67d12252643c2c6c7370a
29619 * tests/openpgp/4gb-packet.test: Use error and info.
29621 common: Do not deref vars in tests after a fail().
29622 + commit 0a00115ee2049ab2357b7a14a51c7da185ffcabd
29623 * common/t-convert.c (test_bin2hex): Turn if conditions into if-else
29624 chains to avoid accessing unchecked data.
29625 (test_bin2hexcolon): Ditto.
29626 * common/t-mapstrings.c (test_map_static_macro_string): Ditto.
29627 * common/t-stringhelp.c (test_percent_escape): Ditto.
29628 (test_make_filename_try): Ditto.
29629 (test_make_absfilename_try): Ditto.
29630 * common/t-timestuff.c (test_timegm): Ditto.
29632 2016-01-05 Werner Koch <wk@gnupg.org>
29634 gpg: Align notes about minimal keysize with actual checks.
29635 + commit e70f7a54f29d727def2cfe9ea5ab9d461b4ce842
29636 * g10/keygen.c (ask_keysize): Use 768 for the minimal value for DSA in
29637 export mode. Improve readability.
29639 2016-01-05 NIIBE Yutaka <gniibe@fsij.org>
29641 agent: Fix RSA verification for card.
29642 + commit ff3b607fc879b70665c187500022cc63e2a0cd86
29643 * agent/pksign.c (agent_pksign_do): Use S-exp of public key, instead
29646 2016-01-04 Neal H. Walfield <neal@g10code.com>
29648 gpg: Fix double free.
29649 + commit 575c15a090913d86cf8d75b2bc4471e371f234b9
29650 * g10/getkey.c (get_pubkeys): Fix double free.
29652 2015-12-24 NIIBE Yutaka <gniibe@fsij.org>
29654 agent: IMPORT_KEY with --force option fix.
29655 + commit 79b51bb8727bd3485229ac8ff5987558156d5d83
29656 * agent/cvt-openpgp.c (convert_from_openpgp_main): Add an option not
29657 to check existing key.
29658 (convert_from_openpgp): Ditto.
29659 (convert_from_openpgp_native): Call convert_from_openpgp_main with
29661 * agent/command.c (cmd_import_key): Call with dontcare_exist=force.
29663 g10: Use --force when importing key for bkuptocard.
29664 + commit 5ca57f1a697e875bae5a5c73f1a580c42ca75343
29665 * g10/call-agent.c (agent_import_key): Add an argument FORCE.
29666 * g10/import.c (transfer_secret_keys): Likewise.
29667 (import_secret_one): Call transfer_secret_keys with FORCE=0.
29668 * g10/keyedit.c (keyedit_menu): Call with FORCE=1.
29670 g10: Remove subcommand checkbkupkey for --key-edit.
29671 + commit 44aee35e69540510617aea4b886ef845590960fe
29672 * g10/keyedit.c (keyedit_menu): Remove cmdCHECKBKUPKEY support.
29674 g10: Allow relative path for specifying the file for bkuptocard.
29675 + commit ee433d2b00c93b5a4e4ed54b9fb5806361df1b71
29676 * g10/keyedit.c (keyedit_menu): Assume the file is under GNUPGHOME.
29677 Also support tilda expansion.
29679 g10: fix regression of bkuptocard subcommand in --edit-key.
29680 + commit 40959add1ba0efc1f4aa87fa075fa42423eff73c
29681 * g10/keyedit.c (keyedit_menu): Call transfer_secret_keys.
29682 * g10/import.c (transfer_secret_keys): Make it global function.
29685 agent: Support --force option for IMPORT_KEY.
29686 + commit e684c634df814b12d399dcdc375c35d3e9a137af
29687 * agent/command.c (cmd_keywrap_key): New option --force.
29689 2015-12-23 Werner Koch <wk@gnupg.org>
29691 gpg: Rename struct pubkey to pukey_s and add pubkey_t.
29692 + commit a9cbdcfd9c364557787f4a173cc59f14c067946e
29693 * g10/keydb.h (struct pubkey): Rename to pubkey_s.
29694 (pubkey_t): New. Change all struct pubkey_s to use this type.
29695 * g10/getkey.c (get_pubkeys): Rename arg keys to r_keys.
29697 gpg: Simplify status message code from commit b30c15bf.
29698 + commit 363ed2e892adc97fae97111bb56b64f9f809e8d5
29699 * g10/keygen.c (card_write_key_to_backup_file): Simplify by using
29702 gpg: Add standard free() semantic to pubkey_free.
29703 + commit 04c9cddda95f2a8ca5c0cf10bb3dd6accf56cf45
29704 * g10/getkey.c (pubkey_free): Check for NULL arg.
29706 gpg: Fix use of assert from commit dc417bf0.
29707 + commit ef7b7e91600f35b4d682a6267001a8d30f0fa49f
29708 * g10/keydb.c (keydb_update_keyblock): De-ref after the assert. Use
29711 gpg: Do not translate debug output.
29712 + commit b0c9867fb74d5a00335e6606d5bdcc5342ce26cd
29713 * g10/getkey.c (parse_def_secret_key): Do not make strings passed to
29714 log_debug translatable.
29716 2015-12-23 NIIBE Yutaka <gniibe@fsij.org>
29718 scd: Fix commit b30c15bf (again).
29719 + commit aecf1a3c57ca8bf8050a3743b62fe142ccf9eb22
29720 * g10/keygen.c (do_generate_keypair): Clear the variable S.
29722 2015-12-22 Neal H. Walfield <neal@g10code.com>
29725 + commit 5c759924fb92b6de7ab3baed7871e5114ebd2505
29726 * g10/keygen.c (card_write_key_to_backup_file): Change n to a size_t.
29728 gpg: Fix error message.
29729 + commit 4654384fe7a4dcee113dacf27c398b13dea5d0be
29730 * g10/getkey.c (parse_def_secret_key): Fix error message.
29732 gpg: Don't check for ambiguous keys.
29733 + commit 7195b94345b0bb937477dc47fc5ec27fb108a099
29734 * g10/gpg.c (struct result): Move from here...
29735 * g10/keydb.h (struct pubkey): ... to here. Update users.
29736 * g10/gpg.c (check_user_ids): Move from here...
29737 * g10/getkey.c (get_pubkeys): ... to here. Update users. Use
29738 get_pubkey_byname to look up the keys (this also prunes invalid keys).
29739 (pubkey_free): New function.
29740 (pubkeys_free): New function.
29741 * g10/gpg.c (main): Don't check for ambiguous key specifications.
29743 gpg: Lazily evaluate --default-key.
29744 + commit dc52995d85048ed12ae8b9f330e9ca41a4030aae
29745 * g10/gpg.c (main): If --encrypt-to-default-key is specified, don't
29746 add --default-key's value to REMUSR here...
29747 * g10/pkclist.c (build_pk_list): ... do it here.
29748 * tests/openpgp/Makefile.am (TESTS): Add default-key.test.
29749 * tests/openpgp/default-key.test: New file.
29751 gpg: Remove unused parameter.
29752 + commit ffe0b7a6dd6bfaec62f81f511b3caf08978bb269
29753 * g10/pkclist.c (build_pk_list): Remove parameter use, which is always
29754 called set to PUBKEY_USAGE_ENC. Update callers.
29756 gpg: Improve check for ambiguous keys.
29757 + commit 4103850c2e51274984f69443dee34295cbb8c282
29758 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
29759 encryption-only keys when a signing key is needed and vice-versa.
29761 gpg: Fix TOCTTOU when updating keyblocks.
29762 + commit dc417bf0c555a7416d0aedde6645fd1087660f92
29763 * g10/keydb.c (keydb_update_keyblock): Don't replace the record at the
29764 current offset. After taking the lock, extract the fingerprint from
29765 the keyblock, find it and then replace it.
29767 Only add the user supplied CFLAGS after running any autoconf tests.
29768 + commit 02eb9fc9d5863abcfed6af704e618f8cac7cc2e8
29769 * configure.ac: Only add the user supplied CFLAGS after running any
29772 gpg: Suppress a warning.
29773 + commit 1cceba163b17b5e9fd7c89e5b40e3d7e1cffc885
29774 * dirmngr/dns-stuff.c (enable_dns_tormode): Reference new_circuit to
29775 avoid a warning when ADNS is not available.
29777 gpg: Remove dead code.
29778 + commit 4143cc1c3783c54a6f733f08a4739e4e5fb0c8b3
29779 * kbx/keybox-defs.h (struct keybox_found_s): Remove unused fields
29780 offset and n_packets.
29782 gpg: Display the key that is invalid, not the search description.
29783 + commit 7fe4be0416cdc9269011bc4213b8a22d6ced295c
29784 * g10/getkey.c (parse_def_secret_key): Display the key that is
29785 invalid, not the search description.
29787 gpg: Mark more options as coming from the config file (when this holds)
29788 + commit 478ca6c75bbf529f95974224dfb7d71bd5860a96
29789 * g10/gpg.c (main): When --default-key or --encrypt-to-default-key is
29790 taken from the config file, note this.
29792 gpg: Use enums instead of defines.
29793 + commit ee8a8ec1cf4605e5af427f9c8b01b3609c82cbe7
29794 * g10/keydb.h (PK_LIST_ENCRYPT_TO): Change from a macro to an enum.
29795 (PK_LIST_HIDDEN): Likewise.
29796 (PK_LIST_CONFIG): Likewise.
29797 (PK_LIST_SHIFT): Likewise.n
29799 2015-12-21 NIIBE Yutaka <gniibe@fsij.org>
29801 po: Update Japanese translation.
29802 + commit d8392299f311f8cfcf8bc02679dd3ae7ef8cc6d7
29805 g10: clean up of headers for card.
29806 + commit ab9a9bce77d014159c68460f5a7c263fb72f3c1c
29807 * g10/main.h (save_unprotected_key_to_card): Remove.
29808 * g10/options.h (ctapi_driver, pcsc_driver, disable_ccid): Remove.
29810 2015-12-21 Werner Koch <wk@gnupg.org>
29812 common: New file fwddecl.h.
29813 + commit 98f9e14323bf806f674b3cc259e19ef6219b4378
29814 * common/util.h (server_control_s, ctrl_t): Move to ...
29815 * common/fwddecl.h: New file.
29816 * common/call-gpg.h: Replace typedef by fwddecl.h. Change include
29817 protection macro name.
29818 * common/Makefile.am (common_sources): Add fwddecl.h.
29820 2015-12-18 Werner Koch <wk@gnupg.org>
29822 build: Add required macro for pkg-config.
29823 + commit af142854a73567836a0ca44ad62900469c23d531
29824 * configure.ac (PKG_PROG_PKG_CONFIG): New.
29826 2015-12-18 NIIBE Yutaka <gniibe@fsij.org>
29828 g10: Remove deprecated internal functions.
29829 + commit 72eaff1aa610f3c89a755f212760157e1932d847
29830 * g10/keygen.c (do_ask_passphrase, generate_raw_key)
29831 (gen_card_key_with_backup, save_unprotected_key_to_card): Remove.
29833 g10: Fix a regression for generating card key with backup.
29834 + commit b30c15bf7c5336c4abb1f9dcd974cd77ba6c61a7
29835 * g10/main.h (receive_seckey_from_agent): Declare.
29836 * g10/keygen.c (card_write_key_to_backup_file): New.
29837 (card_store_key_with_backup): New.
29838 (do_generate_keypair): Create a key on host for encryption key when
29839 backup is requested. Then, call card_store_key_with_backup.
29841 2015-12-17 NIIBE Yutaka <gniibe@fsij.org>
29843 g10: factor out a function for secret key retrieval.
29844 + commit e644aa7f5943174e3f7ba9408af71531fd125a0b
29845 * g10/export.c (receive_seckey_from_agent): New.
29846 (do_export_stream): Use it.
29848 2015-12-16 Neal H. Walfield <neal@g10code.com>
29850 gpg: When checking for ambiguous keys, ignore invalid keys.
29851 + commit fc010b6c7fe14e609734e448775fa384421bdef1
29852 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
29853 disabled, revoked and expired keys (if appropriate for the provided
29856 2015-12-15 Werner Koch <wk@gnupg.org>
29858 common: Use default_errsource for call-gpg and exectool.
29859 + commit 4ffe44c5874ed655d82adfa7a85439fab91cde03
29860 * common/call-gpg.c (my_error_from_syserror, my_error_from_errno): New.
29861 Use these wrappers.
29862 * common/exectool.c (my_error_from_syserror): New. Use these
29865 gpg: Reduce number of strings to translate.
29866 + commit 345ec7323d643528d2f904765708b5ecfe51f57b
29867 * g10/getkey.c (parse_def_secret_key): Do not make debug messages
29868 translatable. Make use of print_reported_error.
29870 gpg: New function to printed a detailed error code.
29871 + commit 2ea1aebc924c3f0b2269f83cb1b80c75d9fa069c
29872 * g10/misc.c (print_reported_error): New.
29874 2015-12-15 Neal H. Walfield <neal@g10code.com>
29876 gpg: Improve the keyblock cache's transparency.
29877 + commit f369efd6712148dc7ed40dba6d1ff5b0e169431a
29878 * kbx/keybox-search.c (keybox_seek): New function.
29879 * g10/keydb.c (keydb_search): When reading from the cache, seek to
29880 just after the cached record.
29882 gpg: Improve the keyblock cache's transparency.
29883 + commit 2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41
29884 * kbx/keybox-search.c (keybox_offset): New function.
29885 * g10/keydb.c (struct keyblock_cache): Add fields resource and offset.
29886 (keyblock_cache_clear): Reset HD->KEYBLOCK_CACHE.RESOURCE and
29887 HD->KEYBLOCK_CACHE.OFFSET.
29888 (keydb_search): Don't use the cached result if it comes before the
29889 current file position. When caching an entry, also record the
29890 position at which it was found.
29892 gpg: Use more descriptive names.
29893 + commit 0ea186db645da2b51a7e71f46793d447f2de5e3d
29894 * g10/keyring.c (KR_NAME): Rename this...
29895 (KR_RESOURCE): ... to this. Update users.
29896 (struct keyring_name): Rename this...
29897 (struct keyring_resource): ... to this. Update users.
29898 (struct off_item): Rename this...
29899 (struct key_present): ... to this. Update users.
29900 (OffsetHashTable): Rename this...
29901 (key_present_hash_t): ... to this. Update users.
29902 (kr_offtbl): Rename this...
29903 (key_present_hash): ... to this. Update users.
29904 (kr_offtbl_ready): Rename this...
29905 (key_present_hash_ready): ... to this. Update users.
29906 (KEY_PRESENT_HASH_BUCKETS): New define. Replace use of literals
29908 (new_offset_item): Rename this...
29909 (key_present_value_new): ... to this. Update users.
29910 (release_offset_items): Drop dead code.
29911 (new_offset_hash_table): Rename this...
29912 (key_present_hash_new): ... to this. Update users.
29913 (release_offset_hash_table): Drop dead code.
29914 (lookup_offset_hash_table): Rename this...
29915 (key_present_hash_lookup): ... to this. Update users.
29916 (update_offset_hash_table): Rename this...
29917 (key_present_hash_update): ... to this. Drop unused parameter off.
29919 (update_offset_hash_table_from_kb): Rename this...
29920 (key_present_hash_update_from_kb): ... to this. Drop unused parameter
29923 2015-12-15 NIIBE Yutaka <gniibe@fsij.org>
29925 sm: Handle gcry_pk_encrypt return value.
29926 + commit 4ee881bff4c8fdfa4b3b7a4b7afab611471e97f1
29927 * sm/encrypt.c (encrypt_dek): Don't ignore failure of gcry_pk_encrypt.
29929 2015-12-14 Werner Koch <wk@gnupg.org>
29931 common: Change license of isascii.c to all-premissive,
29932 + commit 7baca033070e7811f75e2021100adf8e6a48907f
29933 * common/isascii.c: Change.
29935 common: Change license of some modules to LGPLv3+/GPLv2+.
29936 + commit 7d129a7391115ff1d6a3541078a37a630ab7819f
29937 * common/status.c: Change from GPLv3 to LGPLv3+/GPLv2+.
29938 * common/status.h: Ditto.
29939 * common/yesno.c: Ditto.
29940 * common/common-defs.h: Ditto.
29941 * common/gettime.h: Ditto.
29942 * common/keyserver.h: Ditto.
29944 common: Change license for exectool to LGPLv3+/GPLv2+.
29945 + commit 467e18b74b4790dcbdf3c816206d2fbaf170a12a
29946 * common/exectool.c, common/exectool.h: Change license.
29948 common: Rename sh-exectool to exectool.
29949 + commit d80e1bc430bf64debdb6b08f0b7e5c42836781fa
29950 * common/sh-exectool.c: Rename to exectool.c.
29951 * common/sh-exectool.h: Rename to exectool.h.
29952 * common/Makefile.am (common_sources): Adjust for rename.
29953 * common/exectool.c (sh_exec_tool_stream): Rename to
29954 gnupg_exec-tool-stream.
29955 (sh_exec_tool): Rename to gnupg_exec_tool.
29956 * tools/gpgtar-create.c (gpgtar_create): Adjust for changes.
29957 * tools/gpgtar-extract.c: Adjust for changes.
29958 * tools/gpgtar-list.c: Adjust for changes.
29960 2015-12-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
29962 gpg: Print ownertrust in TOFU+PGP trust model.
29963 + commit f5aa51aaacfe13ab9528aa9b88d8ce8eb61362fc
29964 * g10/keyedit.c: Print ownertrust in TOFU+PGP trust model.
29966 2015-12-14 Neal H. Walfield <neal@g10code.com>
29968 gpg: Fix --default-key checks.
29969 + commit e573e6188dada4d70f6897aa2fda3c3af8c50441
29970 * g10/getkey.c (parse_def_secret_key): Don't just check if a secret
29971 key is available for the public key, also consider subkeys. Also
29972 check that the key has the signing capability, is not revoked, is not
29973 expired and is not disabled. Print a warning if there was a least one
29974 value passed to --default-key and all were ignored.
29976 2015-12-14 NIIBE Yutaka <gniibe@fsij.org>
29978 scd: Fix regression for generating RSA keys on card.
29979 + commit d40975cbe8ff86fcc4a1b4963fdffc66ddee85ce
29980 * scd/app-openpgp.c (do_genkey): Strip leading zeros for fingerprint
29983 2015-12-12 Werner Koch <wk@gnupg.org>
29985 gpg: Use a regular type instead of a void* for import stats.
29986 + commit 4d3395ef1fcde0b8c454c09956863959d590ede6
29987 * g10/import.c (struct stats_s): Rename to import_stats_s. Change all
29989 * g10/main.h (import_stats_t): New. Change fucntions to use this
29990 instead of a void pointer.
29992 Remove replacements for libgpg-error < 1.21.
29993 + commit f0ae40b0c901e5f5c04c6ed5b2ab96ab7340b2bd
29994 * common/util.h: Remove replacement macros for libgpg-error<1.21.
29995 * common/types.h: Ditto.
29996 * common/mischelp.h: Ditto.
29997 * common/t-mapstrings.c: Include t-support.h before stringhelp.h
29998 * common/t-stringhelp.c: Ditto.
29999 * common/t-support.h: Always include gpg-error.h.
30000 * kbx/keybox-search.c: Do not include stringhelp.h so that keybox-defs
30003 2015-12-11 Neal H. Walfield <neal@g10code.com>
30005 gpg: Fix buffer overflow.
30006 + commit 1605e34fc365edd473aac15c9b4e5aadc1d95cf5
30007 * g10/keydb.c (keydb_search_desc_dump): Fix buffer overflow.
30009 2015-12-11 Justus Winter <justus@g10code.com>
30011 agent: Improve error handling.
30012 + commit 25f0f053cd306200a6211b5cf397838a59835ee7
30013 * agent/pksign.c (agent_pksign_do): Improve error handling.
30015 Fix required libgpg-error version.
30016 + commit d6e01493cad6ff32f356185c7a2d2b5c2b86a937
30017 * configure.ac (NEED_GPG_ERROR_VERSION): We need version 1.21 for the
30020 2015-12-11 Neal H. Walfield <neal@g10code.com>
30022 gpg: Don't error out if a key occurs multiple times in the keyring.
30023 + commit 6dc37c5fb60acbfd5ba2ab979852383eac8944e0
30024 * g10/gpg.c (check_user_ids): Don't error out if a key occurs multiple
30025 times in the keyring. Instead, print a warning. When printing out
30026 fingerprint prints, use format_hexfingerprint to format them.
30028 2015-12-10 Daniel Hoffend <dh@dotlan.net>
30030 scd: Fix removal of unplugged usb readers on Windows.
30031 + commit d1a97585c5e73fbc7d4cf90e38f76ffc5aea305f
30032 * scd/apdu.c (pcsc_error_to_sw): map PCSC_E_NO_SERVICE and
30033 PCSC_E_SERVICE_STOPPED to the internal SW_HOST_NO_READER error code.
30035 2015-12-07 Justus Winter <justus@g10code.com>
30037 tests: Add some more gpgtar tests.
30038 + commit 1c8eae95a8b3b89bc0f49cb5f4938101634583dc
30039 * tests/openpgp/gpgtar.test: Add more tests.
30041 dirmngr: Initialize http status code.
30042 + commit 71726b627dcff015dc12568021b31d8ccede788a
30043 * dirmngr/ks-action.c (ks_action_search): Initialize 'http_status' as
30044 it is unused if LDAP is used to search for keys.
30046 2015-12-04 Daiki Ueno <ueno@gnu.org>
30048 gpg: Write ERROR status on delete-key cancellation.
30049 + commit b5cd68852d0e3485c9e13a8ddb70f05f36a65cb9
30050 * g10/delkey.c (do_delete_key): Write ERROR status code with the error
30051 location "delete_key.secret", when the user cancelled the operation on
30054 2015-12-04 Justus Winter <justus@g10code.com>
30056 dirmngr: Stricter handling of http error codes.
30057 + commit 6d64ef869dfbcb7aaa802b80ed648393147e40d8
30058 * dirmngr/ks-action.c (ks_action_search): Only retry if the keyserver
30059 responded with a '404 Not Found'.
30060 * dirmngr/ks-engine-hkp.c (send_request): Return http status code.
30061 (ks_hkp_search): Likewise.
30062 (ks_hkp_{get,put}): Adapt call to 'send_request'.
30063 * dirmngr/ks-engine.h (ks_hkp_search): Update prototype.
30065 dirmngr: Really search all keyservers for patterns.
30066 + commit 6ac57a482f7ae02db1bee4e4b861288fc6905adc
30067 * dirmngr/ks-action.c (ks_action_search): Search all configured
30068 keyservers for the given patterns.
30070 dirmngr: Handle http status '501 Not Implemented'.
30071 + commit a8308ba5231682ce7c7d591a17e7e940fbd63189
30072 * dirmngr/ks-engine-hkp.c (send_request): Handle status 501 and return
30073 GPG_ERR_NOT_IMPLEMENTED.
30075 tools/gpgtar: Implement symmetric encryption.
30076 + commit 582e684a48eb4f3716cecf7dc73eb93046efcfad
30077 * tests/openpgp/gpgtar.test: Add test case.
30078 * tools/gpgtar-create.c (gpgtar_create): Pass '--symmetric' flag to
30080 * tools/gpgtar.c (parse_arguments): We do handle the argument now.
30082 tools/gpgtar: Implement signing.
30083 + commit 45c814f348c89acd8d21d0607ffcf68e5c5c399e
30084 * tests/openpgp/gpgtar.test: Test signing.
30085 * tools/gpgtar-create.c (gpgtar_create): Add 'sign' option, add the
30086 appropriate gpg arguments to implement signing and selecting the local
30088 * tools/gpgtar.c (parse_options): We do handle '--local-user' now.
30089 (main): Handle signing, encrypting, and doing both when creating an
30091 * tools/gpgtar.h (gpgtar_create): Update prototype.
30093 tools/gpgtar: Use the new exectool helper.
30094 + commit 0c0dafd8e89bb702e856c661c1561e10cdcaf37f
30095 * tools/Makefile.am: gpgtar now requires neither npth nor libassuan.
30096 * tools/gpgtar-create.c (gpgtar_create): Use the new 'sh-exectool'
30098 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
30099 * tools/gpgtar-list.c (gpgtar_list): Likewise.
30100 * tools/gpgtar.c (main): Set default gpg program. Drop the
30101 initialization of npth and libassuan.
30103 common: Add a stream interface to 'sh-exectool'.
30104 + commit a81aca6e1c2a4529d416d1989f15d7338d2ee81e
30105 * common/sh-exectool.c (struct copy_buffer): Add infrastructure for
30106 copying between streams.
30107 (copy_buffer_{init,shred,do_copy,flush}): New functions.
30108 (sh_exec_tool_stream): Rework 'sh_exec_tool' to operate on streams.
30109 (nop_free): New function.
30110 (sh_exec_tool): Express this in terms of 'sh_exec_tool_stream'.
30111 * common/sh-exectool.h (sh_exec_tool_stream): New prototype.
30113 common: Add header file and build the new code.
30114 + commit d955cb5e0700c6d2b6b26cb210b5a176d22d4235
30115 * common/Makefile.am (common_sources): Add new files.
30116 * common/sh-exectool.h: New file.
30118 2015-12-04 Werner Koch <wk@gnupg.org>
30120 common: Add code to execute a helper.
30121 + commit 2ae07f826aa551db8adf714158fce962790a6b54
30122 * common/sh-exectool.c: New file.
30125 + commit 9fadfdb3109f7ea42aaaa9d745b64c6c90cb8233
30128 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
30130 po: Japanese translation.
30131 + commit 762fcc027b0b4cc88c1f633804de619273d6a8b9
30134 2015-12-04 Werner Koch <wk@gnupg.org>
30136 speedo,w32: Improve installer.
30137 + commit 0fe3614d9afe42ecf80bbc932366ceeaba0a0ecc
30138 * build-aux/speedo/w32/inst.nsi (SEC_gnupg): Install dirmngr.conf and
30140 (un.gnupglast): Stop dirmngr.
30142 gpg: Do not pre-check keys given on the command line.
30143 + commit 28311d1fa56bfbd801103a8475597459132874f4
30144 * g10/keydb.h (PK_LIST_ENCRYPT_TO, PK_LIST_HIDDEN, PK_LIST_CONFIG)
30145 (PK_LIST_SHIFT): New.
30146 * g10/pkclist.c (build_pk_list): Use them here.
30147 * g10/gpg.c (check_user_ids, main): Ditto.
30149 * g10/gpg.c (main): Set PK_LIST_CONFIG for REMUSR and LOCUSR.
30150 (check_user_ids): Skip check for command line specified options.
30152 dirmngr: Add command to print the resolver version.
30153 + commit 4ff2cae7dee36ffee854c5f05c3e8ee9eb0308dd
30154 * dirmngr/server.c (cmd_getinfo): Add sub-command "dnsinfo".
30156 gpg: Allow "help" as value for --tofu-policy.
30157 + commit 59f6192cb766612ad215bc6a3af13d5b137139e4
30158 * g10/gpg.c (parse_tofu_policy): Add keyword "help".
30159 (parse_tofu_db_format): Ditto.
30161 Do not translate messages printed with log_debug.
30162 + commit 218a52787a87be6b7481a39f87d212d6ef594e97
30163 * common/asshelp.c (start_new_gpg_agent): Do not i18n string.
30164 (start_new_dirmngr): Ditto.
30165 * g10/mainproc.c (proc_encrypted): Ditto. Print only if debug is
30168 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
30170 scd: Fix for removing the prefix.
30171 + commit f03976f1101f539a2782cd9e87d640fc32a022db
30172 * scd/app-openopg.c (do_decipher): Fix the condition.
30174 scd: Simplify saving application context.
30175 + commit 9639af5f16a7ed908cbce2415330b9fcd88edc90
30176 * scd/app.c (lock_table): Remove LAST_APP field.
30177 (lock_reader, app_dump_state, application_notify_card_reset)
30178 (release_application): Follow the change.
30179 (check_conflict): New.
30180 (check_application_conflict): Lock the slot and call check_conflict.
30181 (select_application): Call check_conflict and not use LAST_APP.
30183 scd: More fix for Curve25519 prefix handling.
30184 + commit f747adfa21551e083bc947540c64c94a96dcc059
30185 * scd/app-openpgp.c (do_decipher): Handle trancated cipher text.
30186 Also fix xfree bug introduced.
30188 2015-12-03 Werner Koch <wk@gnupg.org>
30190 scd: Another fix for Curve25519 prefix handling.
30191 + commit e28f2e7a2f265af8bbdb4979e9679b4396dccdd5
30192 * scd/app-openpgp.c (do_decipher): Check 0x02 also for 16+1 byte long
30194 (do_decipher): Fix integer arithmetic in void pointer.
30195 (do_decipher): Add missing memcpy.
30197 build: Avoid dependecy problems in "make distcheck".
30198 + commit 0f61599ed0bd1cc6842067d040bb58ec0a451715
30199 * doc/Makefile.am (gnupg.texi): Depend on defs.inc.
30201 build: Change how caller provided CFLAGS are used by configure.
30202 + commit 4e9957250eee3521dc979912a4818e58ffddc5b8
30203 * configure.ac: Append instead of prepend caller provided CFLAGS.
30205 gpg: Add variant of 'key "%s" not found: %s' error message.
30206 + commit 5e2c5e9ec5b75fae886e1294adbdb7ad2ac12827
30207 * g10/gpg.c (check_user_ids): Change error message.
30208 * g10/delkey.c (do_delete_key): Ditto.
30210 gpg: Make keyidlist more robust in case of errors.
30211 + commit 50a568e7380752454c029eac2b57d8803b1cb287
30212 * g10/keyserver.c (keyidlist): Clear *KLIST on error.
30214 gpg: Take care of keydb_new returning NULL.
30215 + commit a28ac99efead8be73ea1704abe1611ccc4811c54
30216 * g10/keydb.c (keydb_new): Print an error message if needed. Also use
30217 xtrycalloc because we return an error anyway.
30218 * g10/delkey.c (do_delete_key): Handle error retruned by keydb_new.
30219 * g10/export.c (do_export_stream): Ditto.
30220 * g10/getkey.c (get_pubkey): Ditto.
30221 (get_pubkey_fast): Ditto.
30222 (get_pubkeyblock): Ditto.
30223 (get_seckey): Ditto.
30224 (key_byname): Ditto.
30225 (get_pubkey_byfprint): Ditto.
30226 (get_pubkey_byfprint_fast): Ditto.
30227 (parse_def_secret_key): Ditto.
30228 (have_secret_key_with_kid): Ditto.
30229 * g10/import.c (import_one): Ditto.
30230 (import_revoke_cert): Ditto.
30231 * g10/keyedit.c (keyedit_quick_adduid): Ditto.
30232 * g10/keygen.c (quick_generate_keypair): Ditto.
30233 (do_generate_keypair): Ditto.
30234 * g10/trustdb.c (validate_keys): Ditto.
30235 * g10/keyserver.c (keyidlist): Ditto.
30236 * g10/revoke.c (gen_desig_revoke): Ditto.
30237 (gen_revoke): Ditto.
30238 * g10/gpg.c (check_user_ids): Ditto.
30239 (main): Do not print an error message for keydb_new error.
30240 * g10/keylist.c (list_all): Use actual error code returned by
30243 * g10/t-keydb-get-keyblock.c (do_test): Abort on keydb_new error.
30244 * g10/t-keydb.c (do_test): Ditto.
30246 * g10/keyring.c (keyring_new): Actually return an error so that the
30247 existing keydb_new error checking makes sense for a keyring resource.
30248 (keyring_rebuild_cache): Take care of keyring_new returning an error.
30250 gpg: Change some error messages.
30251 + commit 9fcc047d921bde95b6807325b7fd2b697e89907f
30252 * g10/getkey.c (parse_def_secret_key): Change error message. Replace
30253 log_debug by log_info.
30254 * g10/gpg.c (check_user_ids): Make function static. Change error
30256 (main): Change error messages.
30257 * g10/revoke.c (gen_revoke): Ditto.
30259 2015-12-03 NIIBE Yutaka <gniibe@fsij.org>
30261 scd: Fix "Conflicting usage" bug.
30262 + commit f42c50dbf00c2e6298ca6830cbe6d36805fa54a3
30263 * scd/apdu.c (apdu_close_reader): Call CLOSE_READER method even if we
30264 got an error from apdu_disconnect.
30265 * scd/app-common.h (no_reuse): Remove.
30266 * scd/app.c (application_notify_card_reset): Deallocate APP here.
30267 (select_application, release_application): Don't use NO_REUSE.
30269 scd: Fix for Curve25519 prefix handling.
30270 + commit 11b2691eddc42e91651e4f95dd2731255a3e9211
30271 * scd/app-openpgp.c (do_decipher): More condition for AES decipher.
30272 Handle the prefix in cipher text. Always add the prefix in result.
30274 2015-12-03 Neal H. Walfield <neal@g10code.com>
30276 gpg: Use the matching key if the search description is exact.
30277 + commit cedbd4709eed6fead9d1b271f96860c00547c77c
30278 * g10/gpg.c (check_user_ids): If the search description is for an
30279 exact match (a keyid or fingerprint that ends in '!'), then use the
30280 matching key, not the primary key.
30281 * tests/openpgp/Makefile.am (TESTS): Add use-exact-key.test.
30282 (priv_keys): Add privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc,
30283 privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc,
30284 privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc,
30285 privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc and
30286 privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc.
30288 samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc.
30289 * tests/openpgp/privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc:
30291 * tests/openpgp/privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc:
30293 * tests/openpgp/privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc:
30295 * tests/openpgp/privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc:
30297 * tests/openpgp/privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc:
30299 * tests/openpgp/samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc:
30301 * tests/openpgp/use-exact-key.test: New file.
30302 * tests/openpgp/version.test: Install the new private keys.
30304 2015-12-02 Werner Koch <wk@gnupg.org>
30306 build: Require at least Libassuan 2.4.1.
30307 + commit 69db3285e4612ad24462149a4d64cc32c090a491
30308 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.4.1.
30309 * agent/gpg-agent.c (create_server_socket): Remove check for
30310 libassuan >= 2.3.0 and >= 2.1.4.
30311 (main): Remove check for libassuan >= 2.1.4.
30312 * scd/scdaemon.c (create_server_socket): Remove check for
30313 libassuan >= 2.1.4.
30314 * dirmngr/dirmngr.c (set_tor_mode): Remove check for
30315 libassuan >= 2.3.0.
30316 * dirmngr/http.c (http_raw_connect, send_request): Remove checks for
30317 libassuan >= 2.3.0.
30319 2015-12-02 Neal H. Walfield <neal@g10code.com>
30321 gpg: Improve documentation.
30322 + commit 28195f8d27aa0fc9daf5b74fb24de87c36e04739
30323 * g10/tofu.c (initdb): Improve documentation.
30325 gpg: Fix type mismatch resulting in a buffer overflow.
30326 + commit c73d75103cbd34975e2bd28e9924caee05eaf829
30327 * g10/tofu.c (record_binding): Change policy_old's type from an enum
30328 tofu_policy to a long: this variable is passed by reference and a long
30331 2015-12-02 Werner Koch <wk@gnupg.org>
30333 dirmngr: Switch to an onion address if Tor is running.
30334 + commit 28e2513721ff0cec920564d4087f3600cce8672e
30335 * dirmngr/dirmngr.h (opt): Turn field 'keyserver' into an strlist.
30336 * dirmngr/dirmngr.c (parse_rereadable_options): Allow multiple
30337 --keyserver options.
30338 * dirmngr/server.c (server_local_s): Add field 'tor_state'.
30339 (release_uri_item_list): New.
30340 (release_ctrl_keyservers): Use it.
30341 (start_command_handler): Release list of keyservers.
30342 (is_tor_running): New.
30343 (cmd_getinfo): Re-implement "tor" subcommand using new fucntion.
30344 (ensure_keyserver): Rewrite.
30345 * g10/dirmngr-conf.skel: Add two keyserver options.
30347 http: Enhance parser to detect .onion addresses.
30348 + commit 17ac843871d5f350f26edff0187f94ced923f534
30349 * dirmngr/http.h (parsed_uri_s): Add flag 'onion'.
30350 * dirmngr/http.c (do_parse_uri): Set that flag.
30351 * dirmngr/t-http.c (main): Print flags.
30353 2015-12-02 Neal H. Walfield <neal@g10code.com>
30355 common,gpg: Fix processing of search descriptions ending in '!'.
30356 + commit 10cca02c4c70eee993d4df0a1d20ae841992efe9
30357 * g10/gpg.c (check_user_ids): If the search description describes a
30358 keyid or fingerprint and ends in a '!', include the '!' in the
30359 rewritten description.
30360 * common/userids.c (classify_user_id): Accept keyids and fingerprints
30363 2015-12-01 Justus Winter <justus@g10code.com>
30365 dirmngr: Improve error handling.
30366 + commit 9c34711539fc2c34aea8da0fd49ae6aa28991518
30367 * dirmngr/dns-stuff.c (getsrv): Avoid looking at 'header' before
30368 checking for errors, but silently ignore errors when looking up SRV
30371 2015-12-01 Werner Koch <wk@gnupg.org>
30373 build: Let configure show the the status of Tor support.
30374 + commit 3be12d1e1b8334fb2bba307ec9efbc004f1dbf8d
30375 * configure.ac (show_tor_support): New
30377 2015-11-30 Werner Koch <wk@gnupg.org>
30379 doc: Make make distcheck work again.
30380 + commit 4ecb5db804003c10c57bdc0dc7f1d9649c5ba6f8
30381 * doc/Makefile.am (DISTCLEANFILES): Add gpgkey2ssh.1
30383 yat2m: Add keyword @url.
30384 + commit b4756a54a55fcd51717c149e19191a2eeaa6a919
30385 * doc/yat2m.c (proc_texi_cmd): Add keyword @url.
30387 doc: Build man pages with the same date as the info files.
30388 + commit 081c902f16a2f251df4593f090b3978dfa473a26
30389 * doc/Makefile.am (yat2m-stamp): Use option --date.
30391 yat2m: New option --date.
30392 + commit 75eb071354d1f862bac09c56c8ab81dae8883270
30393 * doc/yat2m.c (opt_date): new.
30394 (isodatestring): Use it if set.
30395 (main): New option --date.
30397 2015-11-27 Werner Koch <wk@gnupg.org>
30399 gpg: Avoid extra translation strings.
30400 + commit 686f31c3d5aee0d2825265869ae92ca95cdcabae
30401 * g10/keyedit.c (menu_expire): Use only one prompt.
30403 kbx: Include gpg-error prior to mischelp.h.
30404 + commit 436a154ea85e4dffbde7c3b316fbfca1b066aa2a
30405 * kbx/keybox-init.c: Change order of includes.
30407 gpg,w32: Fix a format string error.
30408 + commit 7c856f99144b84ac30e0c9a192f09dc36d93190a
30409 * g10/keyring.c (keyring_search): Fix format string for off_t.
30411 Silence compiler warnings related to not using assuan_fd_t.
30412 + commit 501436ab0f9d8e7d56b2f5e344006be5f5a3c653
30413 * common/call-gpg.c (start_gpg): Use assuan_fd_t. Note that the
30414 declaration was already fixed by a previous change.
30415 * dirmngr/server.c (cmd_getinfo): Use assuan_fd_t.
30417 Avoid incompatible pointer assignment warnings on Windows.
30418 + commit 64e87083394d38998feab359caac917bcc6139d3
30419 * common/logging.c (fun_writer): Use gpgrt_ssize_t instead of ssize_t.
30420 * dirmngr/server.c (data_line_cookie_write): Ditto.
30421 * sm/certdump.c (format_name_writer): Ditto.
30422 * sm/server.c (data_line_cookie_write): Ditto.
30423 * dirmngr/http.c (cookie_read, cookie_write): Ditto.
30425 dirmngr: Avoid a declarations after statements.
30426 + commit 100f34e869df899a695f5e5ef1b8e092baf91751
30427 * tools/gpgtar.c (parse_arguments): Use a block for a local varibale
30430 dirmngr: Avoid casting away a const from an char**.
30431 + commit 6501741d2c1beb8060198a39a1aa950cb11b386f
30432 * dirmngr/ldap.c (start_cert_fetch_ldap): Do not use pointers from
30435 dirmngr: Allow testing for a running Tor via "getinfo tor".
30436 + commit da5a232199ef93be219e933a7eaf4ccfc6d24d61
30437 * dirmngr/server.c (cmd_getinfo): Print an S line if Tor is not
30440 2015-11-26 Werner Koch <wk@gnupg.org>
30442 g13: Fix commit 1a045b13.
30443 + commit 82f6abb4807c89388052ab442368d9e09fb84aea
30444 * g13/g13.c (main): Use existsing function.
30446 common: Fix off-by-one access in the new format_text.
30447 + commit 61941a984964308b09c7fc1b3438fb99d0b3c917
30448 * common/stringhelp.c (format_text): Use existsing fucntion to trim
30449 trailing spaces. Fix off-by-one access.
30451 dirmngr: Improve output of "getinfo tor".
30452 + commit d226e67856e7197c581dcd2cef0f1e687bee0ac9
30453 * dirmngr/server.c (cmd_getinfo): Print a message along with OK.
30455 dirmngr: Let Libassuan employ nPth wrappers for connect.
30456 + commit f95cff1cc9e7a4d9f6b7c45188ec47e70f9874dc
30457 * dirmngr/http.c (my_unprotect, my_protect): Remove.
30458 (connect_server): Do not use these wrappers.
30460 2015-11-26 Justus Winter <justus@g10code.com>
30462 tools/gpgtar: Add '--dry-run'.
30463 + commit 676b2d7081291f7e47a66755ab07af259fea130b
30464 * tools/gpgtar-extract.c (extract_{regular,directory}): Honor
30466 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
30467 (opts): Add '--dry-run'.
30468 (parse_arguments): Handle '--dry-run'.
30469 * tools/gpgtar.h (opt): Add field 'dry_run'.
30471 tools/gpgtar: Handle '--gpg-args'.
30472 + commit 69a8440f44fa025e33a4cc32d17695c9ac385043
30473 * tools/gpgtar-create.c (gpgtar_create): Use given arguments.
30474 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
30475 * tools/gpgtar-list.c (gpgtar_list): Likewise.
30476 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
30477 (opts): Add 'gpg-args'.
30478 (parse_arguments): Handle arguments.
30479 * tools/gpgtar.h (opt): Add field 'gpg_arguments'.
30480 * tests/openpgp/gpgtar.test: Simplify accordingly.
30482 common: Make the GPG arguments configurable in call-gpg.
30483 + commit 1a045b1324efabe7423a8d00245f01718ed72556
30484 * common/call-gpg.c (start_gpg): Add parameter 'gpg_arguments'.
30485 (_gpg_encrypt, gpg_encrypt_blob, gpg_encrypt_stream): Likewise.
30486 (_gpg_decrypt, gpg_decrypt_blob, gpg_decrypt_stream): Likewise.
30487 * common/call-gpg.h: Adapt prototypes.
30488 * g13/create.c (encrypt_keyblob): Adapt callsite.
30489 * g13/g13-common.h (opt): Add field 'gpg_arguments'.
30490 * g13/g13.c (main): Construct default arguments.
30491 * g13/mount.c (decrypt_keyblob): Adapt callsite.
30492 * tools/gpgtar-create.c (gpgtar_create): Likewise.
30493 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
30494 * tools/gpgtar-list.c (gpgtar_list): Likewise.
30496 tools/gpgtar: Handle '--tar-args' for compatibility with gpg-zip.
30497 + commit 2eb3248058330dd5c37560d9887db5b5266c54fe
30498 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
30499 (opts): Add new group for tar options, rearrange a little, add
30501 (tar_opts): New variable.
30502 (shell_parse_stringlist): New function.
30503 (shell_parse_argv): Likewise.
30504 (parse_arguments): Add option argument, handle '--tar-args'.
30505 (main): Fix invokation of 'parse_arguments'.
30506 * tests/openpgp/gpgtar.test: Simplify decryption.
30508 tools/gpgtar: Rework argument parsing.
30509 + commit 35c0c8b211bc891335e822379b33ea34fbc1f84f
30510 * tools/gpgtar.c (main): Move argument parsing into its own function.
30512 2015-11-25 Justus Winter <justus@g10code.com>
30514 tests: Add tests for gpgtar and gpg-zip.
30515 + commit 556e8c44267fe3b829ca06286e9b5637ca1a6a73
30516 * tests/openpgp/Makefile.am (TESTS): Add new file.
30517 * tests/openpgp/gpgtar.test: New file.
30519 tools/gpgtar: Handle '--directory' argument.
30520 + commit 127aba9a4d6c1aabb4a18a74b16d3bddc6eb5c54
30521 * tools/gpgtar-extract.c (gpgtar_extract): Only generate a directory
30522 name if none is given via arguments.
30523 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
30524 (opts): Add argument.
30525 (main): Parse argument.
30526 * tools/gpgtar.h (opt): New field 'directory'.
30528 tools/gpgtar: Handle '--gpg' argument.
30529 + commit 89e104eb38c3a6896892ff09db11cb1bae2bb0d3
30530 * tools/gpgtar-create.c (gpgtar_create): Use given gpg program.
30531 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
30532 * tools/gpgtar-list.c (gpgtar_list): Likewise.
30533 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
30534 (opts): Add argument.
30535 (main): Handle argument.
30536 * tools/gpgtar.h (opt): Add field 'gpg_program'.
30538 tools/gpgtar: Improve error handling.
30539 + commit f76fb047c15914ba44dc9423d235484758bcd721
30540 * tools/gpgtar-create.c (gpgtar_create): Return an error code, fix
30542 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
30543 * tools/gpgtar-list.c (read_header): Return an error code.
30544 (gpgtar_list): Return an error code, fix error handling.
30545 (gpgtar_read_header): Return an error code.
30546 * tools/gpgtar.c: Add missing include.
30547 (main): Print an generic error message if a command failed and no
30548 error has been printed yet.
30549 * tools/gpgtar.h (gpgtar_{create,extract,list,read_header}): Fix the
30550 prototypes accordingly.
30552 tools: Add encryption and decryption support to gpgtar.
30553 + commit 40dbee86f3043aff8a8c2055521e270318e33068
30554 * tools/Makefile.am: Amend CFLAGS and LDADD.
30555 * tools/gpgtar-create.c (gpgtar_create): Add encrypt flag and encrypt
30556 stream if requested.
30557 * tools/gpgtar-extract.c (gpgtar_extract): Likewise for decryption.
30558 * tools/gpgtar-list.c (gpgtar_list): Likewise.
30559 * tools/gpgtar.c (main): Initialize npth and assuan. Parse recipient
30560 and local user, and note which flags are currently ignored. Adapt
30561 calls to gpgtar_list and friends.
30562 (tar_and_encrypt): Drop stub function and prototype.
30563 (decrypt_and_untar): Likewise.
30564 (decrypt_and_list): Likewise.
30565 * tools/gpgtar.h (gpgtar_{create,extract,list}): Add encryption or
30566 decryption argument.
30568 common: Add stream interface to call-pgp.
30569 + commit 03bf88f32c8d203d5b3bfbbc48cc45e6c08cc187
30570 * common/call-gpg.c (struct writer_thread_parms): Add field 'stream'.
30571 (writer_thread_main): Support reading from a stream.
30572 (start_writer): Add stream argument.
30573 (struct reader_thread_parms): Add field 'stream'.
30574 (reader_thread_main): Support writing to a stream.
30575 (start_reader): Add stream argument.
30576 (_gpg_encrypt): Add stream api.
30577 (gpg_encrypt_blob): Adapt accordingly.
30578 (gpg_encrypt_stream): New function.
30579 (_gpg_decrypt): Add stream api.
30580 (gpg_decrypt_blob): Adapt accordingly.
30581 (gpg_decrypt_stream): New function.
30582 * common/call-gpg.h (gpg_encrypt_stream): New prototype.
30583 (gpg_decrypt_stream): Likewise.
30585 common: Refactor the call-gpg code.
30586 + commit cb18d802308bde4e28219417bb4d107a4c0001b4
30587 * common/call-gpg.c (gpg_{en,de}crypt_blob): Move most of the code
30588 into two new functions, _gpg_encrypt and _gpg_decrypt.
30590 g13: Move 'call-gpg.c' to common.
30591 + commit ba1a5cc17d43d9cba32447876f06a8ab8f97e5ae
30592 * common/Makefile.am (common_sources): Add files.
30593 * g13/call-gpg.c: Move to 'common' and adapt slightly. Add a
30594 parameter to let callees override the gpg program to execute.
30595 * g13/call-gpg.h: Likewise.
30596 * g13/Makefile.am (g13_SOURCES): Drop files.
30597 * g13/create.c (encrypt_keyblob): Hand in the gpg program to execute.
30598 * g13/mount.c (decrypt_keyblob): Likewise.
30600 2015-11-24 Neal H. Walfield <neal@g10code.com>
30602 gpg: When comparing keyids, use the keyid, not the fingerprint's suffix.
30603 + commit e9c16fee2576c772de9d4fb5d53fee28e4b84202
30604 * g10/keyedit.c (menu_select_key): Use spacep and hexdigitp instead of
30605 inline tests. Don't compare P to the suffix of the fingerprint. If P
30606 appears to be a keyid, do an exact compare against the keyid. If it
30607 appears to be a fingerprint, do an exact compare against the
30610 2015-11-23 Neal H. Walfield <neal@g10code.com>
30612 gpg: Reflow long texts.
30613 + commit 19362a8dd7ee986c082a5afc5a446f939991ec0f
30614 * common/stringhelp.c (format_text): New function.
30615 * common/t-stringhelp.c (stresc): New function.
30616 (test_format_text): New function. Test format_text.
30617 * g10/tofu.c (get_trust): Use format_text to reflow long texts.
30618 (show_statistics): Likewise.
30620 common: Extend utf8_charcount to include the string's length.
30621 + commit 5b84b0d660c8329e184d98682665aaea7e1703d2
30622 * common/stringhelp.c (utf8_charcount): Take additional parameter,
30623 len. Process at most LEN bytes.
30625 2015-11-23 Justus Winter <justus@g10code.com>
30627 dirmngr: Fix http lookups when libadns is used.
30628 + commit b75e1b3d8b1643640d046f7f8e89adf5b1caa7a3
30629 * dirmngr/dns-stuff.c (resolve_name_adns): Fill in the port.
30631 dirmngr: Fix SRV record lookups when using the system resolver.
30632 + commit 946faaff04f3340ed6db9e89c5036dc5f9beca6a
30633 * dirmngr/dns-stuff.c (getsrv): Fix error handling.
30635 dirmngr: Honor ports specified in SRV records.
30636 + commit 73c1a86ad937d7be027eece991c69aaeb6a1f092
30637 * dirmngr/ks-engine-hkp.c (struct hostinfo_s): New field 'port'.
30638 (create_new_hostinfo): Initialize 'port'.
30639 (add_host): Add host parameter and update the hosttable entry.
30640 (map_host): Return port if known, adjust calls to 'add_host'.
30641 (make_host_part): Let 'map_host' specify the port if known.
30643 dirmngr: Support hkp server pools using SRV records.
30644 + commit c9f5aa15793b3c05c1b92af401b23ab34d3e6196
30645 * dirmngr/ks-engine-hkp.c (map_host): Handle SRV records.
30647 dirmngr: Refactor 'map_host'.
30648 + commit 3f52f6bcacfe3877d30a21464e93e9240bc75085
30649 * dirmngr/ks-engine-hkp.c (add_host): New function.
30650 (map_host): Use the new function.
30652 dirmngr: Fix pool detection.
30653 + commit 23ea641ba2a063cc99c82869061703d48bc674b2
30654 * dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.
30656 dirmngr: Refactor 'map_host'.
30657 + commit 2b43a0515868b8720009e48d7a1f32d571767f14
30658 * dirmngr/ks-engine-hkp.c (arecords_is_pool): New function.
30659 (map_host): Use the new function.
30661 dirmngr: Start dirmngr on demand.
30662 + commit a9e0b1dd6c106e243e3fbbaa1838b56a1f1c8584
30663 * common/asshelp.h: Include 'util.h'.
30664 * dirmngr/dirmngr-client.c (main): Use 'start_new_dirmngr' to connect
30666 (start_dirmngr): Drop now unused declaration and function.
30668 2015-11-23 Neal H. Walfield <neal@g10code.com>
30670 gpg: If sqlite is not available, don't build things depending on it.
30671 + commit 770c06ed4e6c1097d6e305a0a9427c3c783b787c
30672 * configure.ac: Define the automake conditional SQLITE3.
30673 * tests/openpgp/Makefile.am (TESTS): Move the sqlite3 dependent tests
30675 (sqlite3_dependent_tests): ... this new variable. If SQLITE3 is not
30676 defined, then clear this variable.
30678 gpg: Allow updating the expiration time of multiple subkeys at once.
30679 + commit b64b33bb80a8cf5dcc1fdbc62023d019fe2c8cb1
30680 * g10/keyedit.c (menu_expire): Allow updating the expiration time of
30681 multiple subkeys at once.
30683 gpg: Don't crash if key is not passed an argument.
30684 + commit 19f099463c82c119288a05eaefc42bf09d617377
30685 * g10/keyedit.c (menu_select_key): Don't crash if P is NULL.
30687 2015-11-20 Neal H. Walfield <neal@g10code.com>
30689 gpg: Fail if the search description passed to --gen-revoke is ambiguous.
30690 + commit 178af9c3f56d385fe28a9e5e8bde0ab34c0b260e
30691 * g10/revoke.c (gen_revoke): Error out if the search description is
30694 gpg: Refactor print_seckey_info.
30695 + commit f8a65ac96b27a0963892892ce6e93b37b8df1ad7
30696 * g10/keylist.c (print_seckey_info): Break formatting functionality
30698 (format_seckey_info): ... this new function.
30700 gpg: Improve an error message.
30701 + commit 46e128d44a0456dc603bc9e25a4c5d8da903b078
30702 * g10/revoke.c (gen_revoke): Provide a more descriptive error message
30703 if searching for a key fails.
30705 2015-11-19 Justus Winter <justus@g10code.com>
30707 dirmngr: Improve error handling.
30708 + commit 6b14df5525777ee0330a34a7b335359f562616a4
30709 * dirmngr/crlcache.c (crl_cache_cert_isvalid): Add missing break.
30711 dirmngr: Fix memory leak.
30712 + commit b223cde311e4e02f7983e33fe3d7214287dfb678
30713 * dirmngr/ldap.c (start_cert_fetch_ldap): Avoid leaking all malloc'ed
30716 agent: Improve error handling.
30717 + commit a1650b1edf80c2526c0576547b3a574e8d30f1fa
30718 * agent/trustlist.c (istrusted_internal): Initialize 'err'.
30720 common: Avoid undefined behavior.
30721 + commit eb957ffc4797fb019c505510295af244baf5be38
30722 * common/iobuf.c (iobuf_esopen): Initialize 'len' as 'file_es_filter'
30723 will make use of it.
30725 g10: Avoid undefined behavior.
30726 + commit 52f7f195b119dc01bdf3ae200fdc8e04a0bb9bcb
30727 * g10/trust.c (clean_one_uid): Avoid a computation involving an
30728 uninitialized value.
30730 scd: Improve error handling.
30731 + commit 6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d
30732 * scd/app-openpgp.c (get_public_key): Improve error handling.
30734 2015-11-18 Justus Winter <justus@g10code.com>
30736 dirmngr: Gracefully handle premature termination of TLS streams.
30737 + commit eb54fca4bf3ef8e0cd50b01df5b40e0d6d318d7e
30738 * dirmngr/http.c (close_tls_session): New function.
30739 (session_unref): Use the new function to close the TLS stream.
30740 (cookie_read): If the stream terminated prematurely, close it and
30741 return a short read.
30743 2015-11-17 Neal H. Walfield <neal@g10code.com>
30744 Michael Mönch <michael.moench@marktjagd.de>
30746 tools: Fix option parsing for gpg-zip.
30747 + commit 84ebf15b06e435453b2f58775f97a3a1c61a7e55
30748 * tools/gpg-zip.in: Correctly set GPG when --gpg is specified.
30749 Correctly set TAR when --tar is specified. Pass TAR_ARGS to tar.
30751 2015-11-17 Neal H. Walfield <neal@g10code.com>
30753 gpg: Allow selecting subkeys using a keyid.
30754 + commit 0b86c7463c8c057496b38e06c00f0ae4288dad49
30755 * g10/keyedit.c (menu_select_key): Take an additional argument, p.
30756 Update callers. If P is a hex string, then assume that P is a key id
30757 or fingerprint and select subkeys with matching key ids or
30759 * doc/gpg.texi: Update documentation for the key subcommand.
30761 2015-11-17 Justus Winter <justus@g10code.com>
30763 dirmngr: Fix specifying keyservers by IP address.
30764 + commit 1e3dbb15affd6d75a477aa17715d8e5470988c08
30765 * dirmngr/ks-engine-hkp.c (map_host): Update the original 'hosttable'
30766 entry instead of creating another one.
30768 2015-11-17 Neal H. Walfield <neal@g10code.com>
30770 gpg: Change keydb_search to not return legacy keys.
30771 + commit 58e4a492e2c8e908d16135486ed601f602f1e38d
30772 * g10/keyring.c (keyring_search): Take new argument, ignore_legacy.
30773 If set, skip any legacy keys. Update callers.
30774 * g10/keydb.c (keydb_search): Skip any legacy keys.
30775 (keydb_search_first): Don't skip legacy keys. Treat them
30777 (keydb_search_next): Likewise.
30778 (keydb_search_fpr): Likewise.
30779 * g10/export.c (do_export_stream): Likewise.
30780 * g10/getkey.c (lookup): Likewise.
30781 (have_secret_key_with_kid): Likewise.
30782 * g10/keylist.c (list_all): Likewise.
30783 (keyring_rebuild_cache): Likewise.
30784 * g10/keyserver.c (keyidlist): Likewise.
30785 * g10/trustdb.c (validate_key_list): Likewise.
30787 gpg: Correctly handle an error.
30788 + commit 848726f5c02faddb0b0fd24ce1a66893f5325675
30789 * g10/keyring.c (keyring_search): If a compare function returns an
30790 error, treat it as an error.
30792 gpg: Correctly handle keyblocks followed by legacy keys.
30793 + commit ad9befab12376b3a49cde410996ac9f0013d0871
30794 * g10/keyring.c (keyring_get_keyblock): If we encounter a legacy
30795 packet after already having some non-legacy packets, then treat the
30796 legacy packet as a keyblock boundary, not as part of the keyblock.
30797 * g10/t-keydb-get-keyblock.c: New file.
30798 * g10/t-keydb-get-keyblock.gpg: New file.
30799 * g10/Makefile.am (EXTRA_DIST): Add t-keydb-get-keyblock.gpg.
30800 (module_tests): Add t-keydb-get-keyblock.
30801 (t_keydb_get_keyblock_SOURCES): New variable.
30802 (t_keydb_get_keyblock_LDADD): Likewise.
30804 gpg: Make debugging search descriptors easier.
30805 + commit 11ec4785df1646643966d872b1b53ef675092c98
30806 * g10/keydb.c (dump_search_desc): Rename from this...
30807 (keydb_search_desc_dump): ... to this. Only process a single search
30808 descriptor. Improve output. Don't mark as static. Update callers.
30810 gpg: Add function format_keyid.
30811 + commit a052c30d31c0f6b532fea081f4a9bee083f5440f
30812 * g10/options.h (opt.keyid_format): Add new value KF_DEFAULT.
30813 * g10/keyid.c (format_keyid): New function.
30816 gpg: Use a more appropriate error code.
30817 + commit eae982ed6d69644258afe9c4ad1be553853d8403
30818 * g10/gpg.c (check_user_ids): Return a more appropriate error code if
30819 a user id is ambiguous.
30821 2015-11-17 Justus Winter <justus@g10code.com>
30823 Fix typos found using codespell.
30824 + commit a9e0905342e847e8961ec4fe9b3aaedf05e33423
30825 * agent/cache.c: Fix typos.
30826 * agent/call-pinentry.c: Likewise.
30827 * agent/call-scd.c: Likewise.
30828 * agent/command-ssh.c: Likewise.
30829 * agent/command.c: Likewise.
30830 * agent/divert-scd.c: Likewise.
30831 * agent/findkey.c: Likewise.
30832 * agent/gpg-agent.c: Likewise.
30833 * agent/w32main.c: Likewise.
30834 * common/argparse.c: Likewise.
30835 * common/audit.c: Likewise.
30836 * common/audit.h: Likewise.
30837 * common/convert.c: Likewise.
30838 * common/dotlock.c: Likewise.
30839 * common/exechelp-posix.c: Likewise.
30840 * common/exechelp-w32.c: Likewise.
30841 * common/exechelp-w32ce.c: Likewise.
30842 * common/exechelp.h: Likewise.
30843 * common/helpfile.c: Likewise.
30844 * common/i18n.h: Likewise.
30845 * common/iobuf.c: Likewise.
30846 * common/iobuf.h: Likewise.
30847 * common/localename.c: Likewise.
30848 * common/logging.c: Likewise.
30849 * common/openpgp-oid.c: Likewise.
30850 * common/session-env.c: Likewise.
30851 * common/sexputil.c: Likewise.
30852 * common/sysutils.c: Likewise.
30853 * common/t-sexputil.c: Likewise.
30854 * common/ttyio.c: Likewise.
30855 * common/util.h: Likewise.
30856 * dirmngr/cdblib.c: Likewise.
30857 * dirmngr/certcache.c: Likewise.
30858 * dirmngr/crlcache.c: Likewise.
30859 * dirmngr/dirmngr-client.c: Likewise.
30860 * dirmngr/dirmngr.c: Likewise.
30861 * dirmngr/dirmngr_ldap.c: Likewise.
30862 * dirmngr/dns-stuff.c: Likewise.
30863 * dirmngr/http.c: Likewise.
30864 * dirmngr/ks-engine-hkp.c: Likewise.
30865 * dirmngr/ks-engine-ldap.c: Likewise.
30866 * dirmngr/ldap-wrapper.c: Likewise.
30867 * dirmngr/ldap.c: Likewise.
30868 * dirmngr/misc.c: Likewise.
30869 * dirmngr/ocsp.c: Likewise.
30870 * dirmngr/validate.c: Likewise.
30871 * g10/encrypt.c: Likewise.
30872 * g10/getkey.c: Likewise.
30873 * g10/gpg.c: Likewise.
30874 * g10/gpgv.c: Likewise.
30875 * g10/import.c: Likewise.
30876 * g10/keydb.c: Likewise.
30877 * g10/keydb.h: Likewise.
30878 * g10/keygen.c: Likewise.
30879 * g10/keyid.c: Likewise.
30880 * g10/keylist.c: Likewise.
30881 * g10/keyring.c: Likewise.
30882 * g10/mainproc.c: Likewise.
30883 * g10/misc.c: Likewise.
30884 * g10/options.h: Likewise.
30885 * g10/packet.h: Likewise.
30886 * g10/parse-packet.c: Likewise.
30887 * g10/pkclist.c: Likewise.
30888 * g10/pkglue.c: Likewise.
30889 * g10/plaintext.c: Likewise.
30890 * g10/server.c: Likewise.
30891 * g10/sig-check.c: Likewise.
30892 * g10/sqlite.c: Likewise.
30893 * g10/tdbio.c: Likewise.
30894 * g10/test-stubs.c: Likewise.
30895 * g10/tofu.c: Likewise.
30896 * g10/trust.c: Likewise.
30897 * g10/trustdb.c: Likewise.
30898 * g13/create.c: Likewise.
30899 * g13/mountinfo.c: Likewise.
30900 * kbx/keybox-blob.c: Likewise.
30901 * kbx/keybox-file.c: Likewise.
30902 * kbx/keybox-init.c: Likewise.
30903 * kbx/keybox-search-desc.h: Likewise.
30904 * kbx/keybox-search.c: Likewise.
30905 * kbx/keybox-update.c: Likewise.
30906 * scd/apdu.c: Likewise.
30907 * scd/app-openpgp.c: Likewise.
30908 * scd/app-p15.c: Likewise.
30909 * scd/app.c: Likewise.
30910 * scd/ccid-driver.c: Likewise.
30911 * scd/command.c: Likewise.
30912 * scd/iso7816.c: Likewise.
30913 * sm/base64.c: Likewise.
30914 * sm/call-agent.c: Likewise.
30915 * sm/call-dirmngr.c: Likewise.
30916 * sm/certchain.c: Likewise.
30917 * sm/gpgsm.c: Likewise.
30918 * sm/import.c: Likewise.
30919 * sm/keydb.c: Likewise.
30920 * sm/minip12.c: Likewise.
30921 * sm/qualified.c: Likewise.
30922 * sm/server.c: Likewise.
30923 * tools/gpg-check-pattern.c: Likewise.
30924 * tools/gpgconf-comp.c: Likewise.
30925 * tools/gpgkey2ssh.c: Likewise.
30926 * tools/gpgparsemail.c: Likewise.
30927 * tools/gpgtar.c: Likewise.
30928 * tools/rfc822parse.c: Likewise.
30929 * tools/symcryptrun.c: Likewise.
30931 2015-11-16 Neal H. Walfield <neal@g10code.com>
30933 gpg: Fix error checking and improve error reporting.
30934 + commit 8e2bea22b0927f4f95a248cc7517f407a705d8a8
30935 * g10/gpg.c (check_user_ids): Differentiate between a second result
30936 and an error. If the key specification is ambiguous or an error
30937 occurs, set RC appropriately.
30939 2015-11-14 Werner Koch <wk@gnupg.org>
30941 gpg: Use only one fingerprint formatting function.
30942 + commit 3689c2105aab6a4304e9464c5b20207d69b9a133
30943 * g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): New.
30944 * g10/keyid.c (hexfingerprint): Add optional args BUFFER and BUFLEN.
30945 Change all callers.
30946 (format_hexfingerprint): New.
30947 * g10/keylist.c (print_fingerprint): Change to use hexfingerprint.
30948 * g10/tofu.c (fingerprint_format): Remove. Replace calls by
30949 format_hexfingerprint.
30951 2015-11-13 Werner Koch <wk@gnupg.org>
30953 gpg: Simplify the tofu interface by using the public key packet.
30954 + commit e7d7160ab7cd4e6b460bfe36fd3a7275adadb4e2
30955 * g10/tofu.c (fingerprint_str): Remove.
30956 (tofu_register): Take a public key instead of a fingerprint as arg.
30957 Use hexfingerprint() to get a fpr from the PK.
30958 (tofu_get_validity): Ditto.
30959 (tofu_set_policy, tofu_get_policy): Simplify by using hexfingerprint.
30960 * g10/trustdb.c (tdb_get_validity_core): Pass the primary key PK to
30961 instead of the fingerprint to the tofu functions.
30963 gpg: Make trusted-key override for Tofu robust against swapped tofu.db.
30964 + commit 7de8376430625c1f6f3a58ae16276deca8ff6a82
30965 * g10/tofu.c (get_trust): For the UTK check lookup the key by
30968 gpg: Fix regression in --locate-keys (in 2.1.9).
30969 + commit 7e59fb21f728b5f54468cd35b1415a2f86003d4f
30970 * g10/getkey.c (getkey_ctx_s): Add field "extra_list".
30971 (get_pubkey_byname): Store strings in the context.
30972 (getkey_end): Free EXTRA_LIST.
30974 2015-11-12 Werner Koch <wk@gnupg.org>
30976 gpg: Print a new EXPORTED status line.
30977 + commit 2038adf16d0e7eeb614043aae17b16a867de6b70
30978 * common/status.h (STATUS_EXPORTED): New.
30979 * g10/export.c (print_status_exported): New.
30980 (do_export_stream): Call that function.
30982 gpg: Print export statistics to the status-fd.
30983 + commit e3c48335f9c5081c6080bceafa7a04140403427a
30984 * common/status.h (STATUS_EXPORT_RES): New.
30985 * g10/main.h (export_stats_t): New.
30986 * g10/export.c (export_stats_s): New.
30987 (export_new_stats, export_release_stats): New.
30988 (export_print_stats): New.
30989 (export_pubkeys, export_seckeys, export_secsubkeys)
30990 (export_pubkey_buffer, do_export): Add arg "stats".
30991 (do_export_stream): Add arg stats and update it.
30992 * g10/gpg.c (main) <aExport, aExportSecret, aExportSecretSub>: Create,
30993 pass, and print a stats object to the export function calls.
30995 * g10/export.c (export_pubkeys_stream): Remove unused function.
30997 dirmngr: Do not block during ADNS calls.
30998 + commit a3b26d6c0839ec18d1dc226bb537d5067c86d574
30999 * dirmngr/dns-stuff.c: Include npth.h
31000 (my_unprotect, my_protect): New wrapper.
31001 (resolve_name_adns): Put unprotect/protect around adns calls.
31002 (get_dns_cert): Ditto.
31004 (get_dns_cname): Ditto.
31006 dirmngr: New option --nameserver.
31007 + commit a2cc1d57552ccac7b2f9a0c6423b171b2a168b2a
31008 * dirmngr/dirmngr.c (oNameServer): New.
31009 (opts): Add --nameserver.
31010 (parse_rereadable_options): Act upon oNameServer.
31011 * dirmngr/dns-stuff.c (DEFAULT_NAMESERVER): New.
31012 (tor_nameserver): New.
31013 (set_dns_nameserver): New.
31014 (my_adns_init): Make name server configurable.
31016 2015-11-11 Neal H. Walfield <neal@g10code.com>
31018 gpg: Fix cache consistency problem.
31019 + commit 7546e818791988c00b8635dab5b899265d8d9f42
31020 g10/keyring.c (keyring_search): Only mark the cache as completely
31021 filled if we start the scan from the beginning of the keyring.
31023 2015-11-10 Neal H. Walfield <neal@g10code.com>
31025 gpg: Default to the the PGP trust model.
31026 + commit 67c701d1e53f56305e3b8771c683c45bb9672305
31027 * g10/trustdb.c (init_trustdb): If we can't read the trust model from
31028 the trust DB, default to TM_PGP, not TM_TOFU_PGP.
31030 gpg: Default to the flat TOFU DB format.
31031 + commit 951f277b6bf8178560105538d38e2a07a96865bd
31032 * g10/tofu.c (opendbs): If the TOFU DB format is set to auto and there
31033 is no TOFU DB, default to the flat format.
31035 2015-11-09 Werner Koch <wk@gnupg.org>
31037 dirmngr: Change to new ADNS Tor mode init scheme.
31038 + commit 288c9919dc45496b2380eeac487a8539692d6842
31039 * dirmngr/dns-stuff.c (tor_credentials): New.
31040 (enable_dns_tormode): Add arg new_circuit and update tor_credentials.
31041 (my_adns_init): Rework to set Tor mode using a config file options and
31042 always use credentials.
31043 * dirmngr/server.c (cmd_dns_cert): Improve error message.
31044 * dirmngr/t-dns-stuff.c (main): Add option --new-circuit.
31046 dirmngr: Improve detection of ADNS.
31047 + commit f92e95175e90120362a7d6376fb32307e11267b5
31048 * configure.ac (HAVE_ADNS_FREE): New ac_define.
31050 2015-11-09 NIIBE Yutaka <gniibe@fsij.org>
31052 scd: Add reder information to --card-status.
31053 + commit bce0e3f71df0709a7d323a688ddf2690c1727a6c
31054 * g10/call-agent.h, g10/call-agent.c (agent_release_card_info)
31055 g10/card-util.c (card_status): Add READER.
31056 * scd/apdu.c (close_ccid_reader, open_ccid_reader): Handle RDRNAME.
31057 (apdu_get_reader_name): New.
31058 * scd/ccid-driver.c (ccid_open_reader): Add argument to RDRNAME_P.
31059 * scd/command.c (cmd_learn): Return READER information.
31061 2015-11-06 Werner Koch <wk@gnupg.org>
31063 gpg: Avoid new strings.
31064 + commit 2242658efe0c975a46c3316bc9171ddbce085e2c
31065 * g10/decrypt-data.c (decrypt_data): Use already translated strings.
31067 common: Fix commit f99830b.
31068 + commit 20125333e7b822e8c70ac8cef986649f0654eb56
31069 * common/userids.c (classify_user_id): Avoid underflow. Use spacep to
31072 2015-11-06 Neal H. Walfield <neal@g10code.com>
31074 gpg: Fix formatting string.
31075 + commit 28e198201e580b39bceb9c151df07fc0e936a91d
31076 * g10/decrypt-data.c (decrypt_data): Fix formatting string.
31078 gpg: Add new option --only-sign-text-ids.
31079 + commit a74aeb5dae1f673fcd98b39a6a0496f3c622709a
31080 * g10/options.h (opt): Add field only_sign_text_ids.
31081 * g10/gpg.c (enum cmd_and_opt_values): Add value oOnlySignTextIDs.
31082 (opts): Handle oOnlySignTextIDs.
31084 * g10/keyedit.c (sign_uids): If OPT.ONLY_SIGN_TEXT_IDS is set, don't
31085 select non-text based IDs automatically.
31086 (keyedit_menu): Adapt the prompt asking to sign all user ids according
31087 to OPT.ONLY_SIGN_TEXT_IDS.
31088 * doc/gpg.texi: Document the new option --only-sign-text-ids.
31090 common: When classifying keyids and fingerprints, reject trailing junk.
31091 + commit f99830b72812395da5451152bdd2f2d90a7cb7fb
31092 * common/userids.c (classify_user_id): Trim any trailing whitespace.
31093 Before assuming that a hexstring corresponds to a key id or
31094 fingerprint, make sure that it is NUL terminated.
31096 gpg: Check for ambiguous or non-matching key specs.
31097 + commit e8c53fca954d33366e3494a6d4eecc3868282bcc
31098 * g10/gpg.c (check_user_ids): New function.
31099 (main): Check that any user id specifications passed to --local-user
31100 and --remote-user correspond to exactly 1 user. Check that any user
31101 id specifications passed to --default-key correspond to at most 1
31102 user. Warn if any user id specifications passed to --local-user or
31103 --default-user are possible ambiguous (are not specified by long keyid
31105 * g10/getkey.c (parse_def_secret_key): Don't warn about possible
31106 ambiguous key descriptions here.
31108 common: Add new function strlist_rev.
31109 + commit f38bac8883ea2e9ed8e2836f97a953efb85e774c
31110 * common/strlist.c (strlist_rev): New function.
31111 * common/t-strlist.c: New file.
31112 * common/Makefile.am (common_sources): Add strlist.c and strlist.h.
31113 (module_tests): Add t-strlist.
31114 (t_strlist_LDADD): New variable.
31116 common: Include required, but not included headers in t-support.h.
31117 + commit 23e163473f050d1f2c08f589beb9dab283b7d624
31118 * common/t-support.h: Include <stdlib.h> and <stdio.h>.
31120 2015-11-05 Neal H. Walfield <neal@g10code.com>
31122 gpg: Indicate which characters are invalid.
31123 + commit a958ffd148a46f3757d1c309bb13555638044640
31124 * g10/keygen.c (ask_user_id): Indicate which characters are invalid.
31126 gpg: Add support for unwrapping the outer level of encryption.
31127 + commit ec409e62aea6cc829299be794f9d035d033cb51b
31128 * g10/decrypt-data.c (decrypt_data): If OPT.UNWRAP_ENCRYPTION is set,
31129 copy the data to the output file instead of continuing to process it.
31130 * g10/gpg.c (enum cmd_and_opt_values): Add new value oUnwrap.
31131 (opts): Handle oUnwrap.
31133 * g10/options.h (opt): Add field unwrap_encryption.
31134 * g10/plaintext.c (handle_plaintext): Break the output file selection
31135 functionality into ...
31136 (get_output_file): ... this new function.
31138 common: Add a function for copying data from one iobuf to another.
31139 + commit fd4b9e232805b2e30b29903568c95cc0aad8bbec
31140 * common/iobuf.c (iobuf_copy): New function.
31142 doc: Note that gpgkey2ssh is deprecated.
31143 + commit 2b0e0a53b4db8c44e299f57a9f4f9fc1b825e707
31144 * doc/tools.texi (gpgkey2ssh): Note that gpgkey2ssh is deprecated.
31146 tools: Fix gpgkey2ssh's most gratuitous errors. Use gpg2, not gpg.
31147 + commit cd2d685230ecafb7df504ef2b16cf1ec9a014300
31148 * tools/gpgkey2ssh.c (main): Add support for --help. Replace the most
31149 gratuitous asserts with error messages. Invoke gpg2, not gpg.
31151 2015-11-05 Neal H. Walfield <neal@g10code.com>
31152 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
31154 doc: Add documentation for gpgkey2ssh.
31155 + commit 2b27acc3435e73fad7460b551a36b4064cdd58be
31156 * doc/tools.texi: Add documentation for gpgkey2ssh.
31158 2015-11-04 Neal H. Walfield <neal@g10code.com>
31160 gpg: Print a better error message for --multifile --sign --encrypt.
31161 + commit 6897bbf1aa9bf0a61b186ea1a9bcb463fb1fd10e
31162 * g10/gpg.c (main): Print a better error message for --multifile
31165 gpg: Add --encrypt-to-default-key.
31166 + commit de9b2340153d70b083494d1a277a384dcf43bff0
31167 * g10/getkey.c (parse_def_secret_key): Drop the static qualifier and
31168 export the function.
31169 * g10/gpg.c (enum cmd_and_opt_values): Add value oEncryptToDefaultKey.
31170 (opts): Handle oEncryptToDefaultKey.
31172 * g10/options.h (opt): Add field encrypt_to_default_key.
31174 gpg: Allow multiple --default-key options. Take the last available key.
31175 + commit e16d7168c54e5f7bc2f0037806ee4f730930eaf0
31176 * g10/getkey.c (parse_def_secret_key): New function.
31177 (get_seckey_default): Add parameter ctrl. Update callers. Use
31178 parse_def_secret_key to get the default secret key, if any.
31179 (getkey_byname): Likewise.
31180 (enum_secret_keys): Likewise.
31181 * g10/options.h (opt): Change def_secret_key's type from a char * to a
31183 * g10/gpg.c (main): When processing --default-key, add the key to
31184 OPT.DEF_SECRET_KEY.
31185 * g10/gpgv.c (get_session_key): Add parameter ctrl. Update callers.
31186 * g10/mainproc.c (proc_pubkey_enc): Likewise.
31187 (do_proc_packets): Likewise.
31188 * g10/pkclist.c (default_recipient): Likewise.
31189 * g10/pubkey-enc.c (get_session_key): Likewise.
31190 * g10/sign.c (clearsign_file): Likewise.
31191 (sign_symencrypt_file): Likewise.
31192 * g10/skclist.c (build_sk_list): Likewise.
31193 * g10/test-stubs.c (get_session_key): Likewise.
31195 2015-11-04 NIIBE Yutaka <gniibe@fsij.org>
31197 scd: Fix error handling with libusb-compat library.
31198 + commit 1e94a672efb8bf66f416bc63bf6670e509a21fe5
31199 * scd/ccid-driver.c (bulk_out): Use LIBUSB_ERRNO_NO_SUCH_DEVICE.
31201 scd: fix change_keyattr.
31202 + commit c5a9fedba66361ddd9f596528882750068543298
31203 * scd/app-openpgp.c (change_keyattr_from_string): Fix parsing.
31205 2015-11-03 Werner Koch <wk@gnupg.org>
31207 gpg: Change out of core error message.
31208 + commit 44ad9f29d43f40bbc1840454880f4af3df1c5295
31209 * g10/tofu.c (fingerprint_str): Die with the error code returned by
31210 the failed function.
31211 (time_ago_str): Ditto. Do not make a comma translatable.
31212 (fingerprint_format): Use "%zu" for a size_t.
31214 gpg: Make translation easier.
31215 + commit 62b8cd5495dcac9a0f8a3d88c7bd4cd80997fd3f
31216 * g10/import.c (import_secret_one): Split info string for easier
31219 2015-11-03 Neal H. Walfield <neal@g10code.com>
31221 gpg: Also show when the most recently signed message was observed.
31222 + commit 621afac37e5555fd68054531e611ead444b62928
31223 * g10/tofu.c (show_statistics): Also show when the most recently
31224 signed message was observed.
31226 gpg: Split a utility function out of a large function.
31227 + commit 36326112290b6eef47c9dada30dddbdf408680e4
31228 * g10/tofu.c (show_statistics): Break the time delta to string code
31230 (time_ago_str): ... this new function.
31232 gpg: Fix message formatting.
31233 + commit c8ef9f9a64d13ea8b9b4ade62525243abe2976ba
31234 * g10/tofu.c (get_trust): Fix message formatting.
31236 gpg: Don't store formatting fingerprints in the TOFU DB.
31237 + commit 8ae3946d28c43e30ef692ba6cf1a7fa4ed65ecc5
31238 * g10/tofu.c (fingerprint_pp): Split this function into...
31239 (fingerprint_str): ... this function...
31240 (fingerprint_format): ... and this function.
31241 (record_binding): Store the unformatted fingerprint in the DB. Only
31242 use the formatting fingerprint when displaying a message to the user.
31243 (get_trust): Likewise.
31244 (show_statistics): Likewise.
31245 (tofu_register): Likewise.
31246 (tofu_get_validity): Likewise.
31247 (tofu_set_policy): Likewise.
31248 (tofu_get_policy): Likewise.
31250 2015-11-02 NIIBE Yutaka <gniibe@fsij.org>
31252 g10: notify a user when importing stub is skipped.
31253 + commit 06f3eadb22986d9ebde9efff2794eb1d45d6c6d4
31254 * g10/import.c (transfer_secret_keys): Return GPG_ERR_NOT_PROCESSED
31255 when stub_key_skipped.
31256 (import_secret_one): Notify a user, suggesting --card-status.
31258 2015-10-31 Neal H. Walfield <neal@g10code.com>
31260 gpg: Consider newlines to be whitespace in an SQL statement.
31261 + commit 18cd09246f5dcddcafb8662afd84fa046e36de3f
31262 * g10/sqlite.c (sqlite3_stepx): When making sure that there is no
31263 second SQL statement, ignore newlines.
31265 2015-10-30 Werner Koch <wk@gnupg.org>
31267 common: Improve t-zb32 to be used for manual encoding.
31268 + commit d89a9fca46d9bba497dde0793b57217c800b0e8d
31269 * common/t-support.h (no_exit_on_fail, errcount): New.
31270 (fail): Bump errcount.
31271 * common/t-zb32.c (main): Add options to allow manual use.
31273 common: Add separate header for zb32.c.
31274 + commit 5aadb4b62d26e1bfb40a1ce444a81c2a5a56159c
31275 * common/util.h (zb32_encode): Move prototype to ...
31276 * common/zb32.h: new. Include this for all callers of zb32_encode.
31278 2015-10-29 Neal H. Walfield <neal@g10code.com>
31280 gpg: Display the correct error message.
31281 + commit 641df615da4937b0073c420a0503c5810c237972
31282 * g10/trustdb.c (validate_keys): If tdbio_update_version_record fails,
31283 RC does not contain the error code. Save the error code in rc2 and
31286 gpg: Eliminate a memory leak.
31287 + commit d68bdc553a206e54234d5d53ad35c4ba34133118
31288 * g10/trustdb.c (validate_key_list): Don't leak the keyblocks on
31291 gpg: Remove unused prototype.
31292 + commit ef052591ba51ee16bafc3c5b79d837ed8f01b520
31293 g10/keyring.h (keyring_locate_writable): Remove unused prototype.
31295 gpg: Eliminate a memory leak.
31296 + commit 89eee5f6b7ca3da7ebdcc3e5d069701d0834b39e
31297 * g10/gpg.c (main): Don't leak OPT.DEF_RECIPIENT.
31299 gpg: Fix keyring support.
31300 + commit 99c84b49b787dab8da26cf61eed24dd4a2b77fd9
31301 * g10/keydb.c (keydb_rebuild_caches): Only mark the cached as prepared
31302 if it is actually prepared, which it only is if the resource is a
31305 gpg: Change sqlite3_stepx to pass the sqlite3_stmt * to the callback.
31306 + commit 421827424fe87855307fe3e803b42ffa02738600
31307 * g10/sqlite.h (enum sqlite_arg_type): Add SQLITE_ARG_BLOB.
31308 (sqlite3_stepx_callback): New declaration.
31309 (sqlite3_stepx): Change the callback's type to sqlite3_stepx_callback,
31310 which passes an additional parameter, the sqlite3_stmt *. Update
31313 gpg: Move sqlite helper functions into their own file.
31314 + commit 351f4213e192aa11500c0c590d11183edbe326c5
31315 * g10/tofu.c (sqlite3_exec_printf): Move from here...
31316 * g10/sqlite.c (sqlite3_exec_printf): ... to this new file. Don't
31318 * g10/tofu.c (sqlite3_stepx): Move from here...
31319 * g10/sqlite.c (sqlite3_stepx): ... to this new file. Don't
31321 * g10/tofu.c (enum sqlite_arg_type): Move from here...
31322 * g10/sqlite.h (enum sqlite_arg_type): ... to this new file.
31324 2015-10-29 NIIBE Yutaka <gniibe@fsij.org>
31326 doc: Don't install gpg-zip.1.
31327 + commit d25e29ad9374da1c11ccfc38f392dbab2d707042
31328 * doc/Makefile.am (myman_pages): Remove gpg-zip.1.
31329 (DISTCLEANFILES): Add gpg-zip.1.
31331 2015-10-28 Werner Koch <wk@gnupg.org>
31333 sm: Allow combination of usage flags --gen-key.
31334 + commit 8b6c83dcb086ef09b2676e4d5b0111c88b7b8bf8
31335 * sm/certreqgen.c (create_request): Re-implement building of the
31336 key-usage extension.
31338 2015-10-28 Damien Goutte-Gattat <dgouttegattat@incenp.org>
31340 doc: Document some changed default options.
31341 + commit e095a3fcf2ccc6cc4e258111dc395558069a1164
31342 * doc/gpg.texi: Update the description of some options which are
31343 now enabled by default.
31345 2015-10-28 Werner Koch <wk@gnupg.org>
31347 dirmngr: Fix NULL-deref while loading a CRL.
31348 + commit fa15a71daff8414bf4112bc2826dc495ff2fb01f
31349 * dirmngr/crlcache.c (crl_parse_insert): Set error before leaping to
31352 dirmngr: Minor cleanup of the SRV RR code.
31353 + commit 949a5cfdabcafab93c1ac092c0459b59318805b9
31354 * dirmngr/dns-stuff.c: Include unistd.h.
31355 (getsrv): Run srand only once.
31356 * dirmngr/t-dns-stuff.c (main): Allow passing another name for --srv
31357 and change output format.
31359 dirmngr: Add a getaddrinfo wrapper backend using ADNS.
31360 + commit e026efb4363bc6e3c41ed533daf06f103ebd2e32
31361 * dirmngr/dns-stuff.c: Replace all use of default_errsource.
31362 (my_adns_init): Move to top.
31363 (resolve_name_adns): New.
31364 (resolve_dns_name) [USE_ADNS]: Divert to new func.
31366 2015-10-26 Werner Koch <wk@gnupg.org>
31368 gpg: Do not call an extra get_validity if no-show-uid-validity is used.
31369 + commit a6c2c098435a703ca02abf651ff4fa45e5a4db9a
31370 * g10/mainproc.c (check_sig_and_print): Do not call the informational
31371 get_validity if we are not going to use it.
31373 2015-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
31375 gpg: Ensure all weak digest rejection notices are shown.
31376 + commit 91015d021b3dcbe21ad0e580a4f34c523abf9e72
31377 * g10/main.h: Add rejection_shown flag to each weakhash struct
31378 * g10/misc.c (print_digest_algo_note, additional_weak_digest): Do not
31379 treat MD5 separately; (print_digest_rejected_note): Use
31380 weakhash.rejection_shown instead of static shown.
31381 * g10/options.h (opt): Change from additional_weak_digests to
31383 * g10/sig-check.c: Do not treat MD5 separately.
31384 * g10/gpg.c (main): Explicitly set MD5 as weak.
31385 * g10/gpgv.c (main): Explicitly set MD5 as weak.
31387 2015-10-26 Werner Koch <wk@gnupg.org>
31389 w32: Make it build again if Tofu support is not available.
31390 + commit 0d37a40fc34519e93af3ceffff2cd726d29576d3
31391 * g10/keylist.c (public_key_list) [!USE_TOFU]: Do not call tofu
31394 dirmngr: Support Tor hidden services.
31395 + commit 4524a2a3714f263d56bb7db349c169b456994fd9
31396 * dirmngr/dns-stuff.c (is_onion_address): New.
31397 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add field "onion".
31398 (map_host): Special case onion addresses.
31399 (ks_hkp_print_hosttable): Print an 'O' for an onion address.
31400 * dirmngr/http.c (connect_server): Special case onion addresses.
31402 dirmngr,w32: Remove gethostbyname hack and make it build again.
31403 + commit 7735bbe539af35ce16e270946d5ae798c5989d6e
31404 * dirmngr/http.c (connect_server) [W32]: Remove gethostbyname hack;
31405 we require getaddrinfo anyway.
31406 * dirmngr/dns-stuff.c (AI_ADDRCONFIG): Add replacement if not defined.
31407 (map_eai_to_gpg_error) [W32]: Take care of unsupported codes.
31409 2015-10-26 Neal H. Walfield <neal@g10code.com>
31411 gpg: Make sure we only have a single SQL statement.
31412 + commit c18fb0d99b633bb267dead6e7c46229f4b780bc3
31413 * g10/tofu.c (sqlite3_stepx): Make sure SQL only contains a single SQL
31416 gpg: When the TOFU DB is in batch mode, periodically drop the locks.
31417 + commit 5b0ed7674dc718ee98e0c80aa93ce014f2b51411
31418 * g10/tofu.c: Include <sched.h>.
31419 (batch_update_started): New variable.
31420 (begin_transaction): If we've been in batch mode for a while, then
31421 commit any extant batch transactions.
31422 (tofu_begin_batch_update): If we are not in batch mode, initialize
31423 batch_update_started.
31425 2015-10-25 Werner Koch <wk@gnupg.org>
31427 dirmngr: Add workaround for broken getaddrinfo.
31428 + commit 5e7ac031f513ad3b60e4f092fa72b3bec0676515
31429 * dirmngr/dns-stuff.c (resolve_name_standard): On failure retry by
31430 first resolving the CNAME.
31431 (get_dns_cname): New.
31433 * dirmngr/t-dns-stuff.c (main): Add option --cname.
31435 dirmngr: Better handle systems without IPv6 or IPv4.
31436 + commit 0e3c9f184a5fb3e41277700d690febc2eee9600a
31437 * dirmngr/dns-stuff.c (resolve_name_standard): Use AI_ADDRCONFIG.
31439 dirmngr: Replace use of getnameinfo by resolve_dns_addr.
31440 + commit 927f34603d942868af6a7bd0f347681bbad76a94
31441 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Remove.
31442 (map_host): Use resolve_dns_addr.
31444 dirmngr: Implement a getnameinfo wrapper.
31445 + commit 816505958ac4308ee0dfe787d1b706982428b6cc
31446 * dirmngr/dns-stuff.h (DNS_NUMERICHOST): New.
31447 (DNS_WITHBRACKET): New.
31448 * dirmngr/dns-stuff.c (resolve_name_standard): Factor code out to...
31449 (map_eai_to_gpg_error): new.
31450 (resolve_addr_standard): New.
31451 (resolve_dns_addr): New.
31453 * dirmngr/ks-engine-hkp.c (is_ip_address): Move to ...
31454 * dirmngr/dns-stuff.c (is_ip_address): here. Add support for non
31455 bracketed v6 addresses.
31457 * dirmngr/t-dns-stuff.c: Remove header netdb.h.
31458 (main): Add option --bracket. Use resolve_dns_name instead of
31461 2015-10-23 Neal H. Walfield <neal@g10code.com>
31463 gpg: Provide an interface to patch TOFU updates.
31464 + commit 7f65e84ac035e8f7a25639a6b09eb6000115e337
31465 * g10/tofu.c (struct db): Rename begin_transaction to savepoint_batch.
31466 Rename end_transaction to savepoint_batch_commit. Update users.
31467 Remove field rollback. Add fields savepoint_inner and
31468 savepoint_inner_commit. Add field batch_update.
31469 (dump_cache): New function.
31470 (batch_update): New variable.
31471 (begin_transaction). New function.
31472 (end_transaction): New function.
31473 (rollback_transaction): New function.
31474 (tofu_begin_batch_update): New function.
31475 (tofu_end_batch_update): New function.
31476 (closedb): End any pending batch transaction.
31477 (closedbs): Assert that none of the DBs have a started batch
31478 transaction if we not in batch mode.
31479 (record_binding): Use the begin_transaction, end_transaction and
31480 rollback_transaction functions instead of including the SQL inline.
31481 Also start a batch mode transaction if we are using the flat format.
31482 (tofu_register): Use the begin_transaction, end_transaction and
31483 rollback_transaction functions instead of including the SQL inline.
31484 * g10/gpgv.c (tofu_begin_batch_update): New function.
31485 (tofu_end_batch_update): New function.
31486 * g10/test-stubs.c (tofu_begin_batch_update): New function.
31487 (tofu_end_batch_update): New function.
31489 gpg: Cache prepared SQL queries and open DB connections.
31490 + commit 297cf8660ce346638e42934d84d746768f8bb10a
31491 * g10/tofu.c: Include <stdarg.h>.
31492 (prepares_saved) [DEBUG_TOFU_CACHE]: New variable.
31493 (queries) [DEBUG_TOFU_CACHE]: New variable.
31494 (struct db): Add fields prevp, begin_transaction, end_transaction,
31495 rollback, record_binding_get_old_policy, record_binding_update,
31496 record_binding_update2, get_policy_select_policy_and_conflict,
31497 get_trust_bindings_with_this_email, get_trust_gather_other_user_ids,
31498 get_trust_gather_other_keys, register_already_seen, and
31500 [DEBUG_TOFU_CACHE]: Add field hits.
31501 (STRINGIFY): New macro.
31502 (STRINGIFY2): New macro.
31503 (enum sqlite_arg_type): New enum.
31504 (sqlite3_stepx): New function.
31505 (combined_db): Remove variable.
31506 (opendb): Don't cache the combined db.
31507 (struct dbs): New struct. Update users to use this as the head of the
31508 local DB list rather than overloading struct db.
31509 (unlink_db): New function.
31510 (link_db): New function.
31511 (db_cache): New variable.
31512 (db_cache_count): New variable.
31513 (DB_CACHE_ENTRIES): Define.
31514 (getdb): If the dbs specific cache doesn't include the DB, look at
31515 DB_CACHE. Only if that also doesn't include the DB open the
31517 (closedb): New function.
31518 (opendbs): Don't open the combined DB. Just return an initialized
31520 (closedbs): Don't close the dbs specific dbs. Attach them to the
31521 front of DB_CACHE. If DB_CACHE contains more than DB_CACHE_ENTRIES,
31522 close enough dbs from the end of the DB_CACHE list such that DB_CACHE
31523 only contains DB_CACHE_ENTRIES. Don't directly close the dbs, instead
31524 use the new closedb function.
31525 [DEBUG_TOFU_CACHE]: Print out some statistics.
31526 (record_binding): Use sqlite3_stepx instead of sqlite3_exec or
31527 sqlite3_exec_printf.
31528 (get_policy): Likewise.
31529 (get_trust): Likewise.
31530 (tofu_register): Likewise.
31532 gpg: Return the DBs meta-handle rather than the sqlite3 handle.
31533 + commit cd879d4bd69a578be5a1ff96497f8c1181885563
31534 * g10/tofu.c (getdb): Return a struct db * instead of an sqlite *.
31537 gpg: Use the proper type.
31538 + commit 3c4c89cc35280164b509977c5288b0a06d6f530e
31539 * g10/options.h: Include "tofu.h".
31540 (opt.tofu_default_policy): Change type to enum tofu_policy.
31541 * g10/gpgv.c (enum tofu_policy): Don't redeclare.
31542 * g10/test-stubs.c (enum tofu_policy): Likewise.
31544 2015-10-22 Werner Koch <wk@gnupg.org>
31546 dirmngr: Implement Tor mode for SRV RRs.
31547 + commit 8b06d7f41aec6cb993445935dba7c60e033d026a
31548 * dirmngr/dns-stuff.c (get_dns_cert): Factor adns init out to...
31549 (my_adns_init): new.
31550 (getsrv)[USE_ADNS]: Use my_adns_init.
31551 (getsrv)[!USE_ADNS]: Return an error if Tor mode is active.
31553 * dirmngr/t-dns-stuff.c: Add option --use-tor.
31555 dirmngr: Do not use MAXDNAME.
31556 + commit e03a4a94bb67d4a6c958b37671f83456e203f325
31557 * dirmngr/dns-stuff.c (getsrv): Replace MAXDNAME.
31558 * dirmngr/dns-stuff.h (MAXDNAME): Remove.
31559 (struct srventry): Use a fixed value instead of MAXDNAME.
31560 * dirmngr/http.c (connect_server): Use DIMof instead of MAXDNAME.
31561 Malloc a helper array.
31563 Move SRV RR code from common/ to dirmngr/.
31564 + commit 41bb01ae792af78edd28bf1b735cacc0b3ac428a
31565 * common/srv.c: Merge into dirmngr/dns-stuff.c. Delete file.
31566 * common/srv.h: Merge into dirmngr/dns-stuff.h. Delete file.
31567 * common/Makefile.am (common_sources): Remove srv.c and srv.h.
31568 * g10/keyserver.c: Do not include srv.h. The code using it is anyway
31570 * dirmngr/http.c: Remove header srv.h and stubs.
31571 * dirmngr/t-dns-stuff.c: Add option --srv.
31573 2015-10-21 Werner Koch <wk@gnupg.org>
31575 dirmngr: Use the new DNS wrapper for the HTTP module.
31576 + commit 1e34007c972c1d7730cfcacd88f6bbebba7dec1d
31577 * dirmngr/t-http.c (main): Init assuan sockets.
31578 * dirmngr/http.c: Include dns-stuff.h.
31579 (connect_server)[!HAVE_GETADDRINFO]: Remove all code.
31580 (connect_server): Change to use resolve_dns_name.
31582 dirmngr: Allow use of http.c if USE_NPTH is not defined.
31583 + commit b6af3377e14fad35b9c6041b11888cabce6e8a56
31584 * dirmngr/http.c (send_request): Always set the gnutls pull/push
31586 (my_npth_read): Rename to ...
31587 (my_gnutls_read) .. this. Use system read if !USE_NPTH.
31588 (my_npth_write): Rename to ...
31589 (my_gnutls_write) .. this. Use system write if !USE_NPTH.
31591 dirmngr: Check that getaddrinfo is available.
31592 + commit 6fafda979df8e7e117f8e6929bcce89513a6e746
31593 * dirmngr/Makefile.am (t_http_SOURCES): Add dns-stuff.c.
31594 (t_ldap_parse_uri_SOURCES): Ditto.
31595 * dirmngr/dns-stuff.c: Bail out if neither ADNS nor getaddrinfo is
31598 dirmngr: Use the new DNS wrapper for the HKP engine.
31599 + commit afbe87fa2d259b665b2d67a038a8535cfcfee094
31600 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change arg type to
31602 (map_host): Replace getaddrinfo by resolve_dns_name.
31604 dirmngr: Implement a getaddrinfo wrapper.
31605 + commit 8bccbf477878fd99baa96e11db9db99aaf1e8d91
31606 * dirmngr/dns-stuff.h: Include some header files.
31607 (dns_addinfo_t, dns_addrinfo_s): New.
31608 * dirmngr/dns-stuff.c: Always include DNS related headers.
31609 (free_dns_addrinfo): New.
31610 (resolve_name_standard): New.
31611 (resolve_dns_name): New.
31613 * dirmngr/t-dns-stuff.c: Include netdb.h.
31614 (main): Keep old default mode with no args but else print outout of
31615 resolve_dns_name. Revamp option parser.
31617 common: Add more replacement error codes.
31618 + commit ffe60eb3d2b8f7d6c506804ce4645d695c91f237
31619 * common/util.h (GPG_ERR_SERVER_FAILED): New.
31620 (GPG_ERR_NO_KEY): New.
31621 (GPG_ERR_NO_NAME): New.
31623 2015-10-21 Neal H. Walfield <neal@g10code.com>
31625 gpg: If the saved trust model is unknown, default to tofu+pgp.
31626 + commit 9afeb4cca10c3632495fe71b23df99a4878bd3a5
31627 * g10/trustdb.c (init_trustdb): If the saved trust model is unknown,
31628 default to tofu+pgp instead of pgp.
31630 gpg: Don't accidentally free UTK_LIST.
31631 + commit 8c3b7915d675ca5346c17244654d5c6ab583ac44
31632 * g10/trustdb.c (validate_keys): Don't free UTK_LIST.
31634 gpg: When evaluating trust reg exps, treat tofu+pgp like pgp.
31635 + commit cbaca254ac818c49c18d4480d3c7bd246cc57ae8
31636 * g10/trustdb.c (validate_one_keyblock): When checking trust regular
31637 expressions, treat the tofu+pgp trust model the same as the pgp trust
31640 gpg: If a key is ultimate trusted, return that in the tofu model.
31641 + commit df57390d68482c5b3fa5ff3a42a29ae1b6cbb23c
31642 * g10/tofu.c (get_trust): If the policy is auto or none, check if the
31643 key is ultimately trusted. If so, return that.
31644 (tofu_register): If the key is ultimately trusted, don't show any
31646 (tofu_get_validity): Likewise.
31648 gpg: Keep the trust DB up to date for the tofu and tofu+pgp models.
31649 + commit d05ff81732e20e6f9d6d7a6281a96a312b001abb
31650 * g10/trustdb.c (init_trustdb): Recognize tofu and tofu+pgp as
31651 possibly saved trust models. Also register the ultimately trusted
31652 keys if the trust model is tofu or tofu+pgp.
31653 (check_trustdb): Don't skip if the trust model is tofu or tofu+pgp.
31654 (update_trustdb): Likewise.
31655 (tdb_check_trustdb_stale): Likewise.
31656 (validate_keys): If the trust model is TOFU, just write out the
31657 ultimately trusted keys.
31659 gpg: Factor out code into a standalone function.
31660 + commit 243f90afba87e99ca42e2451ac5cc59d00a044ac
31661 * g10/trustdb.c (tdb_keyid_is_utk): New function.
31664 dirmngr: Allow building with libassuan < 2.3.
31665 + commit a79045e38d239a7f6e787cf7c1132772c737cc0e
31666 * dirmngr/http.c (send_request): Use newer assuan function only if
31669 2015-10-21 Neal H. Walfield <neal@g10code.com>
31670 Andre Heinecke <aheinecke@intevation.de>
31672 gpg: Make the tofu DB check and initialization atomic.
31673 + commit 85bd7d9491f8cc13c2b03f19b4f70ea13b45c704
31674 * g10/tofu.c (initdb): Make the version check and the database
31675 initialization atomic.
31677 2015-10-21 Werner Koch <wk@gnupg.org>
31679 build: Make --disable-g13 the default.
31680 + commit 485e0a221deb5c68f29b6a7a110b349dbe41c027
31681 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --enable-g13. Remove
31682 --enable-gpgtar because that is enabled anyway.
31683 * configure.ac: Do not build g13 by default.
31685 dirmngr: Rename file dns-cert.c.
31686 + commit 5055b617a94587580bc16a56bb82333077b05693
31687 * dirmngr/dns-cert.c: Rename to dirmngr/dns-stuff.c.
31688 * dirmngr/dns-cert.h: Rename to dirmngr/dns-stuff.h and change
31690 * dirmngr/t-dns-cert.c: Rename to dirmngr/t-dns-stuff.c.
31691 * dirmngr/Makefile.am: Adjust.
31693 common: Add status code for use by g13.
31694 + commit 42571a38344e39f747315f754700a8181b8744fe
31695 * common/status.h (STATUS_PLAINTEXT_FOLLOWS): New.
31697 2015-10-20 Werner Koch <wk@gnupg.org>
31699 dirmngr: Prefer ADNS over system resolver.
31700 + commit 58ebe50bdf4837e9ab2d3f8c6e5fcf28c66f26e9
31701 * configure.ac (HAVE_ADNS_IF_TORMODE): New ac_define.
31702 (USE_DNS_CERT): Prefer ADNS over the system resolver.
31703 * dirmngr/dns-cert.c (tor_mode): New global var.
31704 (enable_dns_tormode): New func.
31705 (get_dns_cert): Use DNS resolver at 8.8.8.8 in tor-mode.
31706 * dirmngr/server.c (cmd_dns_cert): If supported allow DNS requests.
31708 w32: Allow building again.
31709 + commit c83b627174f46e841f1ccc018322fe499969c267
31710 * dirmngr/http.c (connect_server): Fix called function name.
31712 build: Allow building without SQLlite support.
31713 + commit 734c61dc9d4915605816803182c9adcc1594e008
31714 * configure.ac: Add option --dsiable-tofu and --disable-sqlite.
31715 (NEED_SQLITE_VERSION): New var.
31716 (USE_TOFU): New ac_define and am_conditional.
31717 * autogen.sh (build-w32): Add PKG_CONFIG_LIBDIR to configure so that
31718 pkg-config find the correct .pc file.
31720 * g10/Makefile.am (tofu_source): New. Build only if enabled.
31721 * g10/gpg.c (parse_trust_model)[!USE_TOFU]: Disable tofu models.
31722 (parse_tofu_policy)[!USE_TOFU]: Disable all.
31723 (parse_tofu_db_format)[!USE_TOFU]: Disable all.
31724 (main) <aTOFUPolicy>[!USE_TOFU]: Skip.
31725 * g10/keyedit.c (show_key_with_all_names_colon)[!USE_TOFU]: Do not
31726 call tofu functions.
31727 * g10/keylist.c (list_keyblock_colon)[!USE_TOFU]: Ditto.
31728 * g10/trustdb.c (tdb_get_validity_core)[!USE_TOFU]: Skip tofu
31731 2015-10-20 Neal H. Walfield <neal@g10code.com>
31733 gpg: Don't die immediately if the TOFU DB is locked.
31734 + commit 26d457c218c2e93b2e2cf316f0c1074c70894d0f
31735 * g10/tofu.c (opendb): Don't die immediately if the DB is locked.
31737 gpg: Improve output.
31738 + commit bc9ff6c85e2d89be4ee873b8a72a214759a66157
31739 * g10/tofu.c (get_trust): Also show the binding when indicating a
31742 gpg: Synchronize translation template.
31743 + commit 251c070f91e2c65baa3f1195f14a176440a8aafa
31744 * g10/tofu.c (show_statistics): Synchronize translation template.
31746 gpg: When showing conflicts, also show bindings with no recorded sigs.
31747 + commit d3eca517745a862432fcfeaa729e5333b15ffa6a
31748 * g10/tofu.c (signature_stats_collect_cb): If the time_ago column is
31749 NULL, then both time_ago and count should be 0.
31750 (get_trust): Reverse the direction of the join so that we also get
31751 statistics about bindings without any signatures.
31754 + commit 445f94bc81b20959a667a4ad80ea6c73059540bf
31755 * g10/tofu.c (show_statistics): Improve text.
31757 gpg: Use the right variable to display the information.
31758 + commit 4957e3236796979b58f35628351505ea5f4e936a
31759 * g10/tofu.c (get_trust): Use the right variable to display the
31762 gpg: Make failing to create a directory a soft error.
31763 + commit eb8a0b051faa03584b3820200e10301936e82f51
31764 * g10/tofu.c (getdb): Don't exit if we can't create the directory.
31765 Just return an error.
31767 common: Make sure tilde expansion works for the mkdir functions.
31768 + commit c3bb9fccb7963a0918b9ec6a4f10d568fac7c125
31769 * common/mkdir_p.c (gnupg_amkdir_p): Use make_filename_try on the
31770 first directory component as well.
31772 gpg: Remove unused prototype digest_algo_from_sig.
31773 + commit d1a0b520b15bb941cdbf66c2e832c617af778ac8
31774 * g10/packet.h (digest_algo_from_sig): Remove prototype without a
31775 corresponding implementation.
31777 2015-10-19 Werner Koch <wk@gnupg.org>
31779 dirmngr: Allow building with libassuan < 2.3.
31780 + commit 4e42ad300b3de9fab25095a9e82431b1ea2740e7
31781 * dirmngr/dirmngr.c (set_tor_mode): Use newer assuan function only if
31783 * dirmngr/http.c (http_raw_connect): Ditto.
31785 2015-10-19 Neal H. Walfield <neal@g10code.com>
31787 gpg: Fix --desig-revoke.
31788 + commit c37621166e9cc2a818de73bc99287a393dbb5744
31789 * g10/revoke.c (gen_desig_revoke): Add additional parameter ctrl.
31790 Check that the secret key is available. If not, display an error
31793 gpg: Improve function documentation and some comments.
31794 + commit a608ee750dd83bf77a5fb4f0ab5bcf812436ba4d
31795 * g10/main.h: Improve function documentation.
31796 * g10/packet.h.h: Improve function documentation.
31797 * g10/sig-check.c: Improve function documentation and some comments.
31799 gpg: Improve and regularize naming of signature checking functions.
31800 + commit 0433e667029508d6933e8798d3d95bcdde70a7aa
31801 * g10/packet.h (signature_check): Rename from this...
31802 (check_signature): ... to this. Update users.
31803 (signature_check2): Rename from this...
31804 (check_signature2): ... to this. Update users.
31805 * g10/sig-check.c (do_check): Rename from this...
31806 (check_signature_end): ... to this. Update users.
31807 (do_check_messages): Rename from this...
31808 (check_signature_metadata_validity): ... to this. Update users.
31810 gpg: Mark local function as static.
31811 + commit 547a1b3fb881bb8581d03dbf4eacf49163eaa4b5
31812 * g10/tdbio.c (put_record_into_cache): Mark as static.
31814 2015-10-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
31816 gpg: Print warning when rejecting weak digests.
31817 + commit b98939812abf6c643c752ce7c325f98039a1a9e2
31818 * g10/misc.c (print_md5_rejected_note): Rename to ..
31819 (print_digest_rejected_note): this. Parameterize function to take an
31820 enum gcry_md_algos.
31821 * g10/sig-check.c: Use print_digest_rejected_note() when rejecting
31824 gpg: Add option --weak-digest to gpg and gpgv.
31825 + commit 76afaed65e3b0ddfa4923cb577ada43217dd4b18
31826 * g10/options.h: Add additional_weak_digests linked list to opts.
31827 * g10/main.h: Declare weakhash linked list struct and
31828 additional_weak_digest() function to insert newly-declared weak
31830 * g10/misc.c: (additional_weak_digest): New function.
31831 (print_digest_algo_note): Check for deprecated digests; use proper
31832 gcry_md_algos type.
31833 * g10/sig-check.c: (do_check): Reject weak digests in addition to MD5.
31834 * g10/gpg.c: Add --weak-digest option to gpg.
31835 * doc/gpg.texi: Document gpg --weak-digest option.
31836 * g10/gpgv.c: Add --weak-digest option to gpgv.
31837 * doc/gpgv.texi: Document gpgv --weak-digest option.
31839 2015-10-19 Werner Koch <wk@gnupg.org>
31841 dirmngr: Make --use-tor work - still leaks DNS.
31842 + commit 6983fd131f648ba4acd57b266de9868911874d14
31843 * dirmngr/dirmngr.c (set_tor_mode): New.
31844 (main, reread_configuration): Call it.
31845 * dirmngr/http.c (http_raw_connect, send_request): Check whether TOR
31846 mode is enabled if the FORCE_TOR flag is given.
31848 dirmngr: Use Assuan socket wrappers for http.c.
31849 + commit 8c609eaf35b547f02979ef0b206520dd0853b294
31850 * dirmngr/http.c: Include assuan.h. Changed all code taking a socket
31851 descriptor from int to assuan_fd_t.
31852 (my_unprotect, my_protect): New.
31853 (my_connect): Remove.
31854 (_my_socket_new, _my_socket_unref): use assuan_sock_close.
31855 (connect_server): Use assuan_sock_connect, assuan_sock_new, and
31857 * dirmngr/Makefile.am (t_common_ldadd): Add LIBASSUAN_LIBS.
31859 2015-10-19 Neal H. Walfield <neal@g10code.com>
31861 gpg: Fix formatting.
31862 + commit 253afa244487dd8129816615ac2865c9fe812aaf
31863 * g10/tofu.c (get_trust): Fix formatting.
31865 gpg: Don't forget to free some memory.
31866 + commit e56a116f9a1171ccf8b3293887a217953a46fc20
31867 * g10/tofu.c (tofu_register): Free SIG_DIGEST before returning.
31869 gpg: If a conflict occurs in batch mode, record that.
31870 + commit 55d88454652543c98d74376977d855e394df6c92
31871 * g10/tofu.c (get_trust): If a conflict occurs when MAY_ASK is false,
31872 set conflict to the key. When prompting the user, don't show the
31873 conflicting key if the conflicting key is the current key.
31875 2015-10-18 Werner Koch <wk@gnupg.org>
31877 gpg: Silence two more warnings.
31878 + commit c2c400714854d5a127a6966200d345d0d6cfc7d4
31879 * g10/trustdb.c (tdb_get_validity_core): Silence a warning.
31880 * g10/tofu.c (tofu_register): Move SIG_DIGEST computation to the top
31881 so that it is not uninitialized in case of an early error.
31883 gpg: Fix harmless compiler warnings.
31884 + commit 558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd
31885 * g10/tofu.h (_tofu_GET_POLICY_ERROR): New. This avoids warnings
31886 about undefined enum values in a switch.
31887 * g10/trustdb.h (_tofu_GET_TRUST_ERROR): New.
31888 * g10/tofu.c (TIME_AGO_FUTURE_IGNORE): Move to the top.
31889 (opendbs): Avoid compiler warning (use braces).
31890 (GET_POLICY_ERROR): Replace define by enum _tofu_GET_POLICY_ERROR.
31891 (get_policy): Remove assert.
31892 (GET_TRUST_ERROR): Replace by _tofu_GET_TRUST_ERROR macro.
31893 (show_statistics): Undef MIN_SECS et al. after use.
31895 common: Avoid warning about const char ** assignment.
31896 + commit e64c805b0c270d859ddf2c35d573110cf25e8d48
31897 * common/mkdir_p.c (gnupg_amkdir_p): Also strdup first item. Return
31898 an error on malloc failure.
31899 (gnupg_mkdir_p): Fix type of dirs and tmp_dirs.
31901 Move http module from common/ to dirmngr/.
31902 + commit 5aa1b392b1bf6fcf4cd380862c5affac39a4f34d
31903 * common/http.c: Move to ../dirmngr/.
31904 * common/http.h: Move to ../dirmngr/.
31905 * common/t-http.c: Move to ../dirmngr/.
31906 * common/tls-ca.pem: Move to ../dirmngr/.
31907 * common/Makefile.am: Do not build libcommontls.a libcommontlsnpth.a.
31908 Remove http.c related stuff.
31909 * po/POTFILES.in: Move http.c to dirmngr/.
31910 * dirmngr/Makefile.am (EXTRA_DIST): Add tls-ca.pem.
31911 (module_maint_tests): New.
31912 (noinst_PROGRAMS): Add module_maint_tests.
31913 (dirmngr_SOURCES): Add http.c and http.h.
31914 (dirmngr_LDADD): Remove libcommontlsnpth.
31915 (t_common_ldadd): Ditto.
31916 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
31917 (t_ldap_parse_uri_SOURCES): Add http.c.
31918 (t_ldap_parse_uri_CFLAGS): Build without npth.
31919 ($(PROGRAMS)): Do not require libcommontls.a libcommontlsnpth.a.
31920 * dirmngr/dirmngr.h, dirmngr/ks-engine.h: Fix include of http.h.
31922 2015-10-18 Neal H. Walfield <neal@g10code.com>
31925 + commit 128a456e775edf393d47e40bb9ae8b62434e2978
31926 * g10/tofu.c (get_trust): Fix assert.
31928 g10: Add TOFU support.
31929 + commit f77913e0ff7be4cd9c6337a70ac715e6f4a43572
31930 * configure.ac: Check for sqlite3.
31931 (SQLITE3_CFLAGS): AC_SUBST it.
31932 (SQLITE3_LIBS): Likewise.
31933 * g10/Makefile.am (AM_CFLAGS): Add $(SQLITE3_CFLAGS).
31934 (gpg2_SOURCES): Add tofu.h and tofu.c.
31935 (gpg2_LDADD): Add $(SQLITE3_LIBS).
31936 * g10/tofu.c: New file.
31937 * g10/tofu.h: New file.
31938 * g10/options.h (trust_model): Define TM_TOFU and TM_TOFU_PGP.
31939 (tofu_db_format): Define.
31940 * g10/packet.h (PKT_signature): Add fields digest and digest_len.
31941 * g10/gpg.c: Include "tofu.h".
31942 (cmd_and_opt_values): Declare aTOFUPolicy, oTOFUDefaultPolicy,
31945 (parse_trust_model): Recognize the tofu and tofu+pgp trust models.
31946 (parse_tofu_policy): New function.
31947 (parse_tofu_db_format): New function.
31948 (main): Initialize opt.tofu_default_policy and opt.tofu_db_format.
31949 Handle aTOFUPolicy, oTOFUDefaultPolicy and oTOFUDBFormat.
31950 * g10/mainproc.c (do_check_sig): If the signature is good, copy the
31951 hash to SIG->DIGEST and set SIG->DIGEST_LEN appropriately.
31952 * g10/trustdb.h (get_validity): Add arguments sig and may_ask. Update
31954 (tdb_get_validity_core): Add arguments sig and may_ask. Update
31956 * g10/trust.c (get_validity) Add arguments sig and may_ask. Pass them
31957 to tdb_get_validity_core.
31958 * g10/trustdb.c: Include "tofu.h".
31959 (trust_model_string): Handle TM_TOFU and TM_TOFU_PGP.
31960 (tdb_get_validity_core): Add arguments sig and may_ask. If
31961 OPT.TRUST_MODEL is TM_TOFU or TM_TOFU_PGP, compute the TOFU trust
31962 level. Combine it with the computed PGP trust level, if appropriate.
31963 * g10/keyedit.c: Include "tofu.h".
31964 (show_key_with_all_names_colon): If the trust mode is tofu or
31965 tofu+pgp, then show the trust policy.
31966 * g10/keylist.c: Include "tofu.h".
31967 (public_key_list): Also show the PGP stats if the trust model is
31969 (list_keyblock_colon): If the trust mode is tofu or
31970 tofu+pgp, then show the trust policy.
31971 * g10/pkclist.c: Include "tofu.h".
31972 * g10/gpgv.c (get_validity): Add arguments sig and may_ask.
31973 (enum tofu_policy): Define.
31974 (tofu_get_policy): New stub.
31975 (tofu_policy_str): Likewise.
31976 * g10/test-stubs.c (get_validity): Add arguments sig and may_ask.
31977 (enum tofu_policy): Define.
31978 (tofu_get_policy): New stub.
31979 (tofu_policy_str): Likewise.
31980 * doc/DETAILS: Describe the TOFU Policy field.
31981 * doc/gpg.texi: Document --tofu-set-policy, --trust-model=tofu,
31982 --trust-model=tofu+pgp, --tofu-default-policy and --tofu-db-format.
31983 * tests/openpgp/Makefile.am (TESTS): Add tofu.test.
31984 (TEST_FILES): Add tofu-keys.asc, tofu-keys-secret.asc,
31985 tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and tofu-EE37CF96-1.txt.
31986 (CLEANFILES): Add tofu.db.
31987 (clean-local): Add tofu.d.
31988 * tests/openpgp/tofu.test: New file.
31989 * tests/openpgp/tofu-2183839A-1.txt: New file.
31990 * tests/openpgp/tofu-BC15C85A-1.txt: New file.
31991 * tests/openpgp/tofu-EE37CF96-1.txt: New file.
31992 * tests/openpgp/tofu-keys.asc: New file.
31993 * tests/openpgp/tofu-keys-secret.asc: New file.
31995 2015-10-16 Neal H. Walfield <neal@g10code.com>
31997 common: Prefix the mkdir functions with gnupg_. Make args const.
31998 + commit 93e855553eba03f5c31682e0aaf39f18f29860b7
31999 * common/mkdir_p.h (mkdir_p): Rename from this...
32000 (gnupg_mkdir_p): ... to this. Change directory_component's type from
32001 char * to const char *.
32002 (amkdir_p): Rename from this...
32003 (gnupg_amkdir_p): ... to this. Change directory_component's type from
32004 char * to const char *.
32005 * common/mkdir_p.c (mkdir_p): Rename from this...
32006 (gnupg_mkdir_p): ... to this. Change directory_component's type from
32007 char * to const char *.
32008 (amkdir_p): Rename from this...
32009 (gnupg_amkdir_p): ... to this. Change directory_component's type from
32010 char * to const char *.
32012 2015-10-14 NIIBE Yutaka <gniibe@fsij.org>
32014 cleanup: Fix confusion between gpg_error_t and gpg_err_code_t.
32015 + commit 3de5ef759895837fe499cff7fb1fa7798e6d5754
32016 * dirmngr/crlcache.c (hash_dbfile): Use gpg_error_t for ERR.
32017 * kbx/keybox-update.c (keybox_set_flags): Call
32018 gpg_err_code_from_syserror.
32020 2015-10-13 NIIBE Yutaka <gniibe@fsij.org>
32022 po: Update Japanese translation.
32023 + commit 0b4ebc398cc8aad3f25f84034cd6b129e55f1368
32026 2015-10-12 Werner Koch <wk@gnupg.org>
32028 gpg: Try hard to use MDC also for sign+symenc.
32029 + commit 4584125802be11833a5b289e864b45eedc2b45fd
32030 * g10/encrypt.c (use_mdc): Make it a global func.
32031 * g10/sign.c (sign_symencrypt_file): Use that function to decide
32032 whether to use an MDC.
32033 * tests/openpgp/conventional-mdc.test: Add a simple test case.
32035 2015-10-09 Werner Koch <wk@gnupg.org>
32038 + commit 086b8738f71ba26d36287db81f6d78116053ba66
32041 2015-10-09 NIIBE Yutaka <gniibe@fsij.org>
32043 agent: simplify agent_get_passphrase.
32044 + commit 5a12c45666cd16bc750d7f0e63620c295feb77ea
32045 * agent/call-pinentry.c (agent_get_passphrase): Simplify.
32047 agent: fix agent_askpin.
32048 + commit 818fa4f71e1056831b35d0f8aff715c0e1d537e6
32049 * agent/call-pinentry.c (agent_askpin): Fix off-by-one error.
32051 agent: Fix function return type for check_cb and agent_askpin.
32052 + commit f70f6695368444d8058305ab696e5e5a1bace18c
32053 * agent/call-pinentry.c (unlock_pinentry): Return gpg_error_t.
32054 (start_pinentry, setup_qualitybar): Likewise.
32055 (agent_askpin): Fix return value check of check_cb.
32056 * agent/command-ssh.c (reenter_compare_cb): Return gpg_error_t.
32057 (ssh_identity_register): Fix return value check of agent_askpin.
32058 * agent/cvt-openpgp.c (try_do_unprotect_cb): Return gpg_error_t.
32059 * agent/findkey.c (try_unprotect_cb): Likewise.
32060 * agent/genkey.c (reenter_compare_cb): Return gpg_error_t.
32061 (agent_ask_new_passphrase): Fix return value check of agent_askpin.
32063 2015-10-08 Andre Heinecke <aheinecke@intevation.de>
32065 dirmngr: Default to http protocol for http-proxy.
32066 + commit ea079d283de6bf4ac70d7530fac70938e7c5e8f5
32067 * common/http.c (send_request): Fix handling for hostname:port string.
32069 2015-10-08 Werner Koch <wk@gnupg.org>
32071 common: Allow building of mkdir_p.c for Windows.
32072 + commit 4c298525903f844eee95ecbcdc45f5ac034fa148
32073 * common/mkdir_p.c: Change license and comment debug statements.
32074 (amkdir_p, mkdir_p): Fail on malloc error and use default_errsource to
32075 build an error code. Change return value to gpg_error_t.
32076 (amkdir_p): Use gnupg_mkdir.
32078 * common/membuf.c: Include util.h first to avoid redefined macro
32081 gpg: Add option --print-dane-records.
32082 + commit d7b8e76f9930750d669405dee3108c9bc8e87b91
32083 * g10/options.h (opt): Add field "print_dane_records".
32084 * g10/gpg.c (oPrintDANERecords): new.
32085 (opts): Add --print-dane-records.
32086 (main): Set that option.
32087 * g10/export.c (do_export): Remove EXPORT_DANE_FORMAT handling.
32088 (do_export_stream): Add EXPORT_DANE_FORMAT handling.
32089 * g10/keylist.c (list_keyblock_pka): Implement DANE record printing.
32091 * g10/gpgv.c (export_pubkey_buffer): New stub.
32092 * g10/test-stubs.c (export_pubkey_buffer): New stub.
32094 gpg: Pass CTRL parameter to all key listing functions.
32095 + commit b6d621583fc9cbda6f9376a24f2f4cf11499a4fd
32096 * g10/keylist.c (public_key_list): Add arg CTRL.
32097 (secret_key_list): Ditto.
32098 (list_all, list_one): Ditto.
32099 (locate_one): Ditto.
32100 (list_keyblock_pka): Ditto.
32101 (list_keyblock): Ditto.
32102 (list_keyblock_direct): Ditto.
32103 * g10/keygen.c (proc_parameter_file): Add arg CTRL.
32104 (read_parameter_file): Ditto.
32105 (quick_generate_keypair): Ditto.
32106 (do_generate_keypair): Ditto.
32107 (generate_keypair): Pass arg CTRL.
32108 * g10/gpg.c (main): Pass arg CTRL to quick_generate_keypair.
32110 2015-10-07 Werner Koch <wk@gnupg.org>
32112 gpg: Remove unfinished experimental code to export as S-expressions.
32113 + commit a400958323d93036dca9c63135b167012ea64f8b
32114 * g10/options.h (EXPORT_SEXP_FORMAT): Remove.
32115 (EXPORT_DANE_FORMAT): New.
32116 * g10/export.c (parse_export_options): Remove "export-sexp-format".
32117 (export_seckeys): Adjust for removed option.
32118 (export_secsubkeys): Ditto.
32119 (do_export): Prepare for DANE format.
32120 (build_sexp, build_sexp_seckey): Remove.
32121 (do_export_stream): Remove use of removed functions.
32123 2015-10-06 Werner Koch <wk@gnupg.org>
32125 gpg: Add new --auto-key-locate mechanism "dane".
32126 + commit 9ac31f91b10059474da1c9580fb99e94278d4c11
32127 * g10/call-dirmngr.c (gpg_dirmngr_dns_cert): Allow fetching via DANE.
32128 * g10/keyserver.c (keyserver_import_cert): Add arg "dane_mode".
32129 * g10/options.h (AKL_DANE): New.
32130 * g10/getkey.c (get_pubkey_byname): Implement AKL_DANE.
32131 (parse_auto_key_locate): Ditto.
32133 dirmngr: Addlow fetching keys using OpenPGP DANE.
32134 + commit 264a81d82737369ee8beef771cf2bd2cd874320a
32135 * dirmngr/server.c (cmd_dns_cert): Add option --dane.
32137 dirmngr: Improve DNS code to retrieve arbitrary records.
32138 + commit 211b8084ee4391baec35e8c5bd75a9ecbcb889a7
32139 * dirmngr/dns-cert.c (get_dns_cert): Add hack to retrieve arbitrary
32141 * dirmngr/dns-cert.h (DNS_CERTTYPE_RRBASE): New.
32142 (DNS_CERTTYPE_RR61): New.
32144 dirmngr: Change DNS code to make additions easier.
32145 + commit 6cf80dc77ec5df3722924301ff4be2475966937b
32146 * dirmngr/dns-cert.c (get_dns_cert) [!USE_ADNS]: Change loop to allow
32147 adding more resource types.
32149 dirmngr: Make commands RELOADDIRMNGR and KILLDIRMNGR work properly.
32150 + commit 7faf45effcd47d2d04d35090a1e01a1dbb99ec70
32151 * dirmngr/server.c (cmd_killdirmngr): Set assuan close flag.
32152 (cmd_reloaddirmngr): Use check_owner_permission.
32154 dirmngr: Do tilde expansion for --hkp-cacert.
32155 + commit 9db6547a00cded92c00c8f8382b1b605be1027d2
32156 * dirmngr/dirmngr.c (parse_rereadable_options): Do tilde expansion and
32157 check for cert file existance in option --hkp-cacert.
32159 gpg: Fail decryption for AES etc message w/o MDC.
32160 + commit 625e292108cc0fd9077769587a8c22abe7805e33
32161 * g10/mainproc.c (proc_encrypted): Fail for modern messages w/o MDC.
32163 2015-10-06 NIIBE Yutaka <gniibe@fsij.org>
32165 agent: Fix verification of signature for smartcard.
32166 + commit 4a5bd1720f5a3dbb26f5daeb03725cae29be7e24
32167 * agent/pksign.c (agent_pksign_do): Use public key smartcard.
32169 agent: Fix non-allocation for pinentry_loopback.
32170 + commit ce2a84b58833fd308d5fe11756721f39c953280a
32171 * agent/call-pinentry.c (agent_get_passphrase): Don't allocate, it will
32172 be allocated by pinentry_loopback.
32174 2015-10-05 Werner Koch <wk@gnupg.org>
32176 gpg: Install a dirmngr.conf file.
32177 + commit f3959f14b6c496c726bbca5230becb7b6844a234
32178 * g10/dirmngr-conf.skel: New.
32179 * g10/Makefile.am (EXTRA_DIST): Add file.
32180 (install-data-local, uninstall-local): Install that file.
32181 * g10/openfile.c (copy_options_file): Add arg "name", return a value,
32182 simplify with xstrconcat, and factor warning message out to:
32183 (try_make_homedir): here. Also install dirmngr.conf.
32184 * g10/options.skel: Remove --keyserver entry.
32186 gpg: Deprecate the --keyserver option.
32187 + commit ae471fa978589fb61ecb0f89bbfe4d43cf2d5eac
32188 * g10/keyserver.c (keyserver_refresh): Change return type to
32189 gpg_error_t. Use gpg_dirmngr_ks_list to print the name of the
32191 (keyserver_search): Do not print the "no keyserver" error
32192 message. The same error is anyway returned from dirmngr.
32193 * g10/call-dirmngr.c (ks_status_parm_s): Add field "keyword".
32194 (ks_status_cb): Handle other status keywords.
32195 (gpg_dirmngr_ks_list): New.
32196 * tools/gpgconf-comp.c (gc_options_gpg): Deprecate "keyserver".
32197 (gc_options_dirmngr): Add "Keyserver" group and "keyserver".
32199 dirmngr: Add option --keyserver.
32200 + commit a48e6de603c3a312f02b1b5fdb813032eeae9074
32201 * dirmngr/dirmngr.c (oKeyServer): New.
32202 (opts): Add "keyserver".
32203 (parse_rereadable_options): Parse that options
32204 (main): Add option to the gpgconf list.
32205 * dirmngr/dirmngr.h (opt): Add field "keyserver".
32206 * dirmngr/server.c (ensure_keyserver): New.
32207 (make_keyserver_item): New. Factored out from
32208 (cmd_keyserver): here. Call ensure_keyserver.
32209 (cmd_ks_search): Call ensure_keyserver.
32210 (cmd_ks_get): Ditto.
32211 (cmd_ks_fetch): Ditto.
32212 (cmd_ks_put): Ditto.
32214 dirmngr: Make clear that --use-tor is not yet ready for use.
32215 + commit 438730323a5d9bbf8dd5cd60d479b6c03f8721d0
32216 * dirmngr/dirmngr.c (main): Print a warning if --use-tor has been
32218 * tools/gpgconf-comp.c (gc_options_dirmngr): Make --use-tor invisible.
32220 gpgconf: Change displayed name of Dirmngr to "Key Acquirer".
32221 + commit c6400c1aa82239f1c154ca27596600cae964515d
32222 * tools/gpgconf-comp.c (gc_component): Change printed name.
32224 2015-10-02 Werner Koch <wk@gnupg.org>
32226 dirmngr: Fix use-after-free due to a realloc shrinking.
32227 + commit 75c64c2b6d77856b90903cc3b7c6a2f62ff8eb7b
32228 * dirmngr/ks-engine-hkp.c (map_host): Do not use original pointer
32231 agent: Fix alignment problem with the second passphrase struct.
32232 + commit ddf9dd135acd2b3635bb986f6dfc0e4e446d5fad
32233 * agent/genkey.c (agent_ask_new_passphrase): Use a separate malloc for
32234 PI2. Check return value of the malloc function.
32235 * agent/command-ssh.c (ssh_identity_register): Use a separate malloc
32238 2015-10-01 Werner Koch <wk@gnupg.org>
32240 gpg: Fix a practical hang after use of --faked-system-time.
32241 + commit 2acceba5cc299796c7b5b1851a9baeb75d9f32a1
32242 * g10/sign.c (update_keysig_packet): Bail out if we would need to long
32243 for a new timestamp.
32245 gpg: Print more info with "check selfsig".
32246 + commit 2c60663a72f090573c4869e305b098b4b1fb23bd
32247 * g10/keyedit.c (print_and_check_one_sig): Print more Some sigsub
32250 gpg: Add debug helper to --edit-keys's check sub-command.
32251 + commit 13a3f65968f4a8205ca664cc46b1a53de4dc489b
32252 * g10/keyedit.c (print_and_check_one_sig): Add arg "extended" and
32253 print an asterisk for the chosen selfsig.
32254 (check_all_keysigs): Add arg "only_selfsig"
32255 (keyedit_menu) <cmdCHECK>: Add optional arg "selfsig".
32257 2015-10-01 NIIBE Yutaka <gniibe@fsij.org>
32259 common: Fix strsplit.
32260 + commit a9895a5a72a851c5fcc70f16d5f8f588cc885751
32261 * common/stringhelp.c (strsplit): Fix arguments order.
32263 2015-09-30 Neal H. Walfield <neal@g10code.com>
32265 common: Add mkdir_p.
32266 + commit c8584a1e559bc720412e1a2fc546a54ff4517205
32267 * common/mkdir_p.c: New file.
32268 * common/mkdir_p.h: New file.
32269 * common/Makefile.am (common_sources): Add mkdir_p.c and mkdir_p.h.
32271 common: Remove unused files.
32272 + commit 5576146ede40b42bc632fd9697dd429a4d1409cf
32273 * common/xmalloc.c: Remove file.
32274 * common/xmalloc.h: Remove file.
32276 common: Include <gpg-error.h>.
32277 + commit 270d3f55f9193ebda5e1b642d58daf905019914d
32278 * common/logging.h: Include <gpg-error.h>.
32280 2015-09-29 Neal H. Walfield <neal@g10code.com>
32282 g10: Remove unused struct cmp_help_context_s.
32283 + commit 8ab63e4b5018044ecfb0b9910412487066886826
32284 * g10/sig-check.c (struct cmp_help_context_s) Remove unused struct.
32286 g10: Avoid an unnecessary copy.
32287 + commit 12443eafa6e19b94a8b554126423e2a5ccc2dd7e
32288 * g10/sig-check.c (signature_check2): Avoid copying PK to RET_PK.
32289 Instead, directly use the provided storage. If none is provided
32292 2015-09-29 NIIBE Yutaka <gniibe@fsij.org>
32294 ssh: Fix fingerprint computation for EdDSA key.
32295 + commit 5c067d54d349fdfb3243634789c8841515d2c28f
32296 * common/ssh-utils.c (get_fingerprint): Handle the prefix of 0x40.
32297 * common/t-ssh-utils.c (sample_keys): Add a new key.
32299 agent: RSA signature verification by gpg-agent.
32300 + commit cfbe6ba9cf1414e9aa4977e2bbaecaa43154b2ae
32301 * g10/sign.c (do_sign): Let verify signature by gpg-agent.
32302 * agent/pksign.c (agent_pksign_do): Call gcry_pk_verify for RSA.
32304 2015-09-28 Werner Koch <wk@gnupg.org>
32306 common: Provide two new error code replacements.
32307 + commit f1effdc5ecd0cc52a28db7ae28a5c28f33486542
32308 * common/util.h (GPG_ERR_FALSE, GPG_ERR_TRUE): Rew replcements.
32310 common: Change calling convention for gnupg_spawn_process.
32311 + commit 83811e3f1f0c615b2b63bafdb49a35a0fc198088
32312 * common/exechelp.h (GNUPG_SPAWN_NONBLOCK): New.
32313 (GNUPG_SPAWN_RUN_ASFW, GNUPG_SPAWN_DETACHED): Macro to replace the
32315 * common/exechelp.h (gnupg_spawn_process): Change function to not take
32316 an optional stream for stdin but to return one.
32317 * common/exechelp-posix.c (gnupg_spawn_process): Implement change.
32318 (create_pipe_and_estream): Add args outbound and nonblock.
32319 * common/exechelp-w32.c (gnupg_spawn_process): Implement change.
32321 2015-09-28 NIIBE Yutaka <gniibe@fsij.org>
32323 scd: Handle error correctly.
32324 + commit 6bb7206e357acfd7276a8f1334c0f0c9cc6ed100
32325 * scd/apdu.c (apdu_connect): Initialize variables and check an error
32326 of apdu_get_status_internal.
32328 2015-09-22 Werner Koch <wk@gnupg.org>
32330 ssh: Add 256, 384 and 521 bit test keys for the fingerprint.
32331 + commit 12ff806d1b63d08cb43d131065d51353495d9346
32332 * common/t-ssh-utils.c (sample_keys): Add 3 new keys.
32334 ssh: Fix fingerprint computation for 384 bit ECDSA keys.
32335 + commit 2167951b275bae51cf669c02547e2e7ea8fbe2ee
32336 * common/ssh-utils.c (get_fingerprint): Fix hashed string.
32338 2015-09-19 NIIBE Yutaka <gniibe@fsij.org>
32340 agent: Fix importing ECC key.
32341 + commit 1542dc604b9c3e6a6a99750c48f7800e72584a89
32342 * agent/cvt-openpgp.c (convert_from_openpgp_main): Only encrypted
32343 parameters are stored as opaque.
32344 (apply_protection): ARRAY members are all normal, non-opaque MPI.
32345 (extract_private_key): Get public key as normal, non-opaque MPI.
32346 Remove support of ECC key with '(flags param)'.
32347 Remove support of "ecdsa" and "ecdh" keys of our experiment.
32349 scd: Fix KEYTOCARD handling for ECC key.
32350 + commit 708b7eccdef8d274bd5578b9a5fd908e9685c795
32351 * scd/app-openpgp.c (ecc_writekey): Only public key can be native
32354 2015-09-19 Neal H. Walfield <neal@g10code.com>
32356 common: Add new function strlist_length.
32357 + commit 8499c4f84a664bedbdf5a5689cb02420909f1968
32358 * common/strlist.c (strlist_length): New function.
32360 2015-09-18 Werner Koch <wk@gnupg.org>
32362 gpgconf: Change displayed name of Dirmngr to "Network Manager".
32363 + commit 819bba75aaed11ecef2e274add173718358212b9
32364 * tools/gpgconf-comp.c (gc_component): Change printed name.
32366 dirmngr: Add option --use-tor as a stub.
32367 + commit c091816b4a90d7eea6f8601ec1522a0a006794e8
32368 * dirmngr/dirmngr.h (opt): Add field "use_tor".
32369 * dirmngr/dirmngr.c (oUseTor): New.
32370 (opts): Add --use-tor.
32371 (parse_rereadable_options): Set option.
32372 (main): Tell gpgconf about that option.
32374 * dirmngr/crlfetch.c (crl_fetch): Pass TOR flag to the http module and
32375 return an error if LDAP is used in TOR mode.
32376 (ca_cert_fetch): Return an error in TOR mode.
32377 (start_cert_fetch): Ditto.
32378 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass TOR flag to the
32380 * dirmngr/ks-engine-hkp.c (send_request): Ditto.
32381 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
32382 * dirmngr/ks-engine-ldap.c (ks_ldap_get): Return an error in TOR mode.
32383 (ks_ldap_search): Ditto.
32384 (ks_ldap_put): Ditto.
32385 * dirmngr/ocsp.c (do_ocsp_request): Ditto. Also pass TOR flag to the
32388 * dirmngr/server.c (option_handler): Add "honor-keyserver-url-used".
32389 (cmd_dns_cert): Return an error in TOR mode.
32390 (cmd_getinfo): Add subcommand "tor"
32391 * tools/gpgconf-comp.c (gc_options_dirmngr): Add TOR group.
32393 gpg: Report a conflict between honor-keyserver-url and TOR.
32394 + commit d5a3142b8f2e5603357182f34f0b081b47eda23c
32395 * g10/call-dirmngr.c (create_context): Send option and print a verbose
32398 http: Add flag to force use of TOR (part 1)
32399 + commit b4bc1c8b10c7a794fa108678b80f76366a65c47d
32400 * common/http.h (HTTP_FLAG_FORCE_TOR): New.
32401 * common/http.c (http_raw_connect, send_request): Detect flag and
32402 return an error for now.
32404 2015-09-17 NIIBE Yutaka <gniibe@fsij.org>
32406 po: Update Japanese translation.
32407 + commit f986b23e13eaa2d7705733b4bf6b5210311f181a
32410 scd: Fix ccid-driver timeout for OpenPGPcard v2.1.
32411 + commit 6510df3a7cd2b5bf44fac1e4d50ee54b8c897daa
32412 * scd/ccid-driver.c (CCID_CMD_TIMEOUT): New.
32413 (ccid_transceive_apdu_level, ccid_transceive): Use.
32415 2015-09-16 Werner Koch <wk@gnupg.org>
32417 agent: New option --pinentry-invisible-char.
32418 + commit 93d257c81952cbb08a744a9cea6749639aa32cd7
32419 * agent/gpg-agent.c (oPinentryInvisibleChar): New.
32420 (opts): Add option.
32421 (parse_rereadable_options): Set option.
32422 * agent/agent.h (opt): Add field pinentry_invisible_char.
32423 * agent/call-pinentry.c (start_pinentry): Pass option to pinentry.
32425 g13: Move some code to a separate module.
32426 + commit 9e65bbd255c43f0e59f35b0003052234d69042be
32427 * g13/g13-common.c, g13/g13-common.h: New.
32428 * g13/Makefile.am (g13_SOURCES): Add new files.
32429 * g13/g13.c (g13_errors_seen): Move to g13-common.c.
32430 (cmdline_conttype): New.
32431 (main): Use g13_init_signals and g13_install_emergency_cleanup.
32432 (emergency_cleanup, g13_exit): Move to g13-common.c.
32433 * g13/g13.h: Move OPT and some other code to g13-common.h.
32435 gpg: Fix skip function dummy parameter.
32436 + commit 8eb3a1797a1e7cb59a8342a8aa917756fe67949f
32437 * g10/trustdb.c (search_skipfnc): Fix dummy argument
32439 gpg: Change last commit to avoid extra translations.
32440 + commit f71ed902def81f9408d9094289d8a97abaa0f609
32441 * g10/keyedit.c (keyedit_menu): Do not print usage hints in expert
32444 2015-09-16 Neal H. Walfield <neal@g10code.com>
32446 g10: Improve error message.
32447 + commit 172af881a1cfe82dfec1c43102d6c464e67ef230
32448 * g10/keyedit.c (keyedit_menu): When complaining that a user ID or key
32449 must be selected, indicate what command to use to do this.
32451 g10: Be more careful when merging self-signed data.
32452 + commit 6845737736d3264d7ee8b7364d908951010084c9
32453 * g10/getkey.c (merge_selfsigs_main): Stop looking for self-signed
32454 data belonging to the public key when we encounter an attribute packet
32455 or a subkey packet, not just a user id packet. When looking for
32456 self-signed data belonging to a user id packet, stop when we see a
32457 user attribute packet.
32459 g10: Simplify some complicated boolean expressions.
32460 + commit c31e089129c0102c1710522d71fbe1880e84d68e
32461 * g10/getkey.c (finish_lookup): Simplify logic.
32463 g10: Also mark revoked and expired keys as unusable.
32464 + commit 77c2ad4a817c129b899708399ed2078a52b452b8
32465 * g10/getkey.c (skip_unusable): Also mark the key as unusable if it
32466 has been revoked or has expired.
32468 g10: Release resources when returning an error in get_seckey.
32469 + commit 1b601de06a57c78537a336093d2531d8c58bc0d2
32470 * g10/getkey.c (get_seckey): If the key doesn't have a secret key,
32473 g10: Improve documentation and comments for getkey.c.
32474 + commit cab581c486e1987445092b1afdf2cba1f62d017d
32475 * g10/getkey.c: Improve documentation and comments for most
32476 functions. Move documentation for public functions from here...
32477 * g10/keydb.h: ... to here.
32479 g10: Remove unused function have_any_secret_key.
32480 + commit 7333e704efde6923d4b914b37e9a92c4a5bab156
32481 * g10/getkey.c (have_any_secret_key): Remove function.
32483 g10: Bring cache semantics closer to non-cache semantics.
32484 + commit 5e233e12f55be00f5659c63bc32fbdca2ec93136
32485 * g10/getkey.c (get_pubkey_fast): When reading from the cache, only
32486 consider primary keys.
32488 g10: Break out of the loop earlier.
32489 + commit 3940f10af7915b080bf4ed25ceb7e20b52e3cd3e
32490 * g10/getkey.c (have_secret_key_with_kid): Once we find the relevent
32491 key or subkey, stop searching.
32493 g10: Don't skip legacy keys if the search mode is KEYDB_SEARCH_MODE_NEXT
32494 + commit 50affffe93a07643f2610c7a5f3d6f61988855e8
32495 * g10/getkey.c (lookup): Also don't skip legacy keys if the search
32496 mode is KEYDB_SEARCH_MODE_NEXT.
32498 g10: Remove unused function get_seckeyblock_byfprint.
32499 + commit efbaa8f891812e13ae9e689299aa2cd51781ccb3
32500 * g10/keydb.h (get_seckeyblock_byfprint): Remove prototype.
32501 * g10/getkey.c (get_seckeyblock_byfprint): Remove function.
32503 g10: Remove unused function get_seckey_byfprint.
32504 + commit e2b300801ed7143fa924df5442ec2b61079c0bbb
32505 * g10/keydb.h (get_seckey_byfprint): Remove prototype.
32506 * g10/getkey.c (get_seckey_byfprint): Remove function.
32508 g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
32509 + commit 80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5
32510 * g10/keydb.h (get_seckey_byname): Rename from this...
32511 (get_seckey_default): ... to this. Drop the parameter name. Update
32513 * g10/getkey.c (get_seckey_byname): Rename from this...
32514 (get_seckey_default): ... to this. Drop the parameter name. Drop the
32515 code which assumed that NAME is not NULL.
32517 g10: Eliminate the redundant function get_keyblock_byfprint.
32518 + commit dc69804ab0576fbc87297215d63b37a680d74d4d
32519 * g10/keydb.h (get_keyblock_byfprint): Remove prototype. Replace use
32520 of this function with get_pubkey_byfprint.
32521 * g10/getkey.c (get_pubkey_byname): Remove function.
32523 g10: Simplify semantics of get_pubkey_byname.
32524 + commit 911fcca36d61afd061e9e6dc0584bb069353db89
32525 * g10/getkey.c (get_pubkey_byname): If R_KEYBLOCK is not NULL, return
32526 the keyblock in R_KEYBLOCK independent of whether PK is set or not.
32528 g10: Eliminate the redundant function get_pubkey_byname.
32529 + commit b4672e4d48fb1e1e4d17551c4c828763d1dfbb57
32530 * g10/getkey.c (get_pubkey_byname): Remove function.
32531 (lookup): Replace use of get_pubkey_byname by get_pubkey_byfprint.
32533 g10: Eliminate the redundant function get_pubkey_end.
32534 + commit 65e58ae6748c280c8633d2ca5f227ebe1220805d
32535 * g10/keydb.h (get_pubkey_end): Remove declaration. Replace use of
32536 function with getkey_end.
32537 * g10/getkey.c (get_pubkey_byname): Remove function.
32539 g10: Eliminate the redundant function get_pubkey_next.
32540 + commit be6743b2e19241f66148bf89c3442d8e2ebcd63e
32541 * g10/keydb.h (get_pubkey_next): Remove prototype.
32542 * g10/getkey.c (get_pubkey_next): Remove function.
32543 * g10/keylist.c (locate_one): Use getkey_next instead of
32546 kbx: Change skipfnc's prototype so that we can provide all information.
32547 + commit 9acbeac23668a1d0dabca27d7825430d76e095c2
32548 * kbx/keybox-search-desc.h (struct keydb_search_desc.skipfnc): Change
32549 third parameter to be the index of the user id packet in the keyblock
32550 rather than the packet itself. Update users.
32552 g10: Remove unused prototype (get_pubkey_byfpr).
32553 + commit 83e17ab1b4cf4420f2abaf9e1f4017a9473fb281
32554 * g10/keydb.h (get_pubkey_byfpr): Remove unused prototype.
32556 g10: Remove unused function (get_pubkey_bynames).
32557 + commit b06f96ba4f57f55194efcd37a0e3a2aa5450b974
32558 * g10/keydb.h (get_pubkey_bynames): Remove prototype.
32559 * g10/getkey.c (get_pubkey_bynames): Remove function.
32561 g10: Simplify code. Turn struct getkey_ctx_s.found_key into an argument
32562 + commit d47e84946ee010917cfc3501062721b74afbb771
32563 * g10/getkey.c (struct getkey_ctx_s): Remove field found_key.
32564 (lookup): Add argument ret_found_key. If not NULL, set it to the
32565 found key. Update callers.
32566 (pk_from_block): Add argument found_key. Use it instead of
32567 CTX->FOUND_KEY. Update callers.
32568 (finish_lookup): Return a KBNODE (the found key) instead of an int.
32569 Don't set CTX->FOUND_KEY. Return the found key instead.
32571 g10: Remove unused field struct getkey_ctx_s.kbpos.
32572 + commit c110e186e07fb1035dc757d322274f939df1c86d
32573 * g10/getkey.c (struct getkey_ctx_s): Remove field kbpos.
32574 (getkey_end): Don't clear CTX->KBPOS.
32576 g10: Simplify code: remove field struct getkey_ctx_s.keyblock.
32577 + commit 3798f73c07f33576bd02ba4a3256c626bd80752f
32578 * g10/getkey.c (struct getkey_ctx_s): Remove field keyblock.
32579 (finish_lookup): Add parameter keyblock. Update caller to pass this.
32580 (lookup): Add new local variable keyblock. Use this instead of
32581 ctx->keyblock for referencing the keyblock.
32583 2015-09-16 NIIBE Yutaka <gniibe@fsij.org>
32585 agent: Fix registering SSH Key of Ed25519.
32586 + commit 7d5999f0964c9412c0e18eb1adefdb729be68cd4
32587 * agent/command-ssh.c (stream_read_string): Add the prefix of 0x40.
32589 2015-09-15 NIIBE Yutaka <gniibe@fsij.org>
32591 po: Update Japanese translation.
32592 + commit faee25e670cfeb0d0166d7c59cc6a0b3842ee34d
32595 2015-09-10 Werner Koch <wk@gnupg.org>
32598 + commit 311816f6cf9d411dba060603e3c5d01c72824645
32601 tests: Silence the 5gb-packet test.
32602 + commit 7a0c3cc760367024305d23e2124ea4cbc7e802df
32603 * tests/openpgp/4gb-packet.test: Send output to /dev/null.
32605 g10: Fix make distcheck problem.
32606 + commit e92a8ab021672b19e5cd397fa555fcc8a3401e8b
32607 * g10/test.c: Include string.h.
32608 (prepend_srcdir): New. Taken from Libgcrypt.
32610 * g10/t-keydb.c (do_test): Malloc the filename.
32611 * g10/Makefile.am (AM_CPPFLAGS): Remove -DSOURCE_DIR
32612 (EXTRA_DIST): Add t-keydb-keyring.kbx.
32614 g10: Improve portability of the new test driver.
32615 + commit fbf24cd09abcdc3dec21db4114ab2db99ce21e4c
32616 * g10/test.c: Include stdio.h and stdlib.h.
32618 (print_results): Rename to exit_tests.
32619 (main): Remove atexit and call exit_tests. Set verbose.
32620 (ASSERT, ABORT): Call exit_tests instead of exit.
32622 2015-09-09 Werner Koch <wk@gnupg.org>
32624 dirmngr: Allow sending much larger keyblocks.
32625 + commit 19545e3a2d2990cba6d62f98cdb1f665b38ba4f1
32626 * dirmngr/server.c (MAX_CERT_LENGTH): Increase to 16k.
32627 (MAX_KEYBLOCK_LENGTH): Increase to 20M.
32629 2015-09-07 NIIBE Yutaka <gniibe@fsij.org>
32631 scd: Force key attribute change for writekey.
32632 + commit f10b427d0e2be333776fee2df8150145da36e587
32633 * scd/app-openpgp.c (change_rsa_keyattr): New.
32634 (change_keyattr_from_string): Use change_rsa_keyattr.
32635 (rsa_writekey): Call change_rsa_keyattr when different size.
32636 (ecc_writekey): Try to change key attribute.
32638 scd: KEYNO cleanup.
32639 + commit fd689e85423d0d80d725f0315c52d94f0e9766f8
32640 * scd/app-openpgp.c (get_public_key, send_keypair_info, do_readkey)
32641 (change_keyattr, change_keyattr_from_string, ecc_writekey, do_genkey)
32642 (compare_fingerprint, check_against_given_fingerprint): KEYNO starts
32645 2015-09-02 Neal H. Walfield <neal@g10code.com>
32647 g10: Remove unused field req_algo.
32648 + commit bd0c902f1de46eda03a065da41487e7e01ab4c50
32649 * g10/packet.h (PKT_public_key): Remove unused field req_algo. Remove
32651 * g10/getkey.c (struct getkey_ctx_s): Remove unused field req_algo.
32654 g10: Use a symbolic constant instead of a literal.
32655 + commit 1f03d4cd940fed26fc3ffa1742728d68c55ee5d1
32656 * g10/trustdb.c (KEY_HASH_TABLE_SIZE): Define.
32657 (new_key_hash_table): Use KEY_HASH_TABLE_SIZE instead of a literal.
32658 (release_key_hash_table): Likewise.
32659 (test_key_hash_table): Likewise.
32660 (add_key_hash_table): Likewise.
32662 g10: Add test for keydb as well as new testing infrastructure.
32663 + commit ee7ec1256b24dc340656c331ef92fc59cad817b6
32664 * g10/Makefile.am (EXTRA_DIST): Add test.c.
32665 (AM_CPPFLAGS): Add -DSOURCE_DIR="\"$(srcdir)\"".
32666 (module_tests): Add t-keydb.
32667 (t_keydb_SOURCES): New variable.
32668 (t_keydb_LDADD): Likewise.
32669 * g10/t-keydb.c: New file.
32670 * g10/t-keydb-keyring.kbx: New file.
32671 * g10/test-stubs.c: New file.
32672 * g10/test.c: New file.
32674 g10: Make the keyblock cache per-handle rather than global.
32675 + commit 60bc518645d3acfd4dcb79e61a2be6ce001e93aa
32676 * g10/keydb.c (keyblock_cache): Don't declare this variable. Instead...
32677 (struct keyblock_cache): ... turn its type into this first class
32679 (struct keydb_handle): ... and instantiate it once per database
32680 handle. Update all users.
32681 (keydb_rebuild_caches): Don't invalidate the keyblock cache.
32683 g10: If iobuf_seek fails when reading from the cache, do a hard read.
32684 + commit f076fa190e09eab5c586650d81e241e0bb85ce25
32685 * g10/keydb.c (keydb_get_keyblock): If the iobuf_seek fails when
32686 reading from the cache, then simply clear the cache and try reading
32689 iobuf: Reduce verbosity of test.
32690 + commit 219de84df9a8408fffedbb2600f5eb4c441950b6
32691 * common/t-iobuf.c (main): Reduce verbosity.
32693 iobuf: Add the IOBUF_INPUT_TEMP type to improve input temp handling.
32694 + commit f2d75ac7dc58f5ea59b231be6b83fea939b43ab8
32695 * common/iobuf.h (enum iobuf_use): Add new member, IOBUF_INPUT_TEMP.
32696 * common/iobuf.c (iobuf_temp_with_content): Create the iobuf as an
32697 IOBUF_INPUT_TEMP, not an IOBUF_INPUT buffer. Assert that LENGTH ==
32699 (iobuf_push_filter2): If A is an IOBUF_INPUT_TEMP, then make the new
32700 filter an IOBUF_INPUT filter and set its buffer size to
32702 (underflow): If A is an IOBUF_INPUT_TEMP, then just return EOF; don't
32703 remove already read data.
32704 (iobuf_seek): If A is an IOBUF_INPUT_TEMP, don't discard the buffered
32706 (iobuf_alloc): Allow USE == IOBUF_INPUT_TEMP.
32707 (pop_filter): Allow USE == IOBUF_INPUT_TEMP.
32708 (iobuf_peek): Allow USE == IOBUF_INPUT_TEMP.
32709 (iobuf_writebyte): Fail if USE == IOBUF_INPUT_TEMP.
32710 (iobuf_write): Fail if USE == IOBUF_INPUT_TEMP.
32711 (iobuf_writestr): Fail if USE == IOBUF_INPUT_TEMP.
32712 (iobuf_flush_temp): Fail if USE == IOBUF_INPUT_TEMP.
32714 iobuf: Rename IOBUF_TEMP to IOBUF_OUTPUT_TEMP.
32715 + commit 5ff5e72b9c275fbd978136b1028bbf251af26e57
32716 * common/iobuf.h (enum iobuf_use): Rename IOBUF_TEMP to
32717 IOBUF_OUTPUT_TEMP. Update users.
32719 iobuf: Use a first-class enum.
32720 + commit 24259d856b6cbdd679035512a8fb7c042de8f02e
32721 * common/iobuf.h (enum iobuf_use): Name the IOBUF_OUTPUT, etc. enum.
32722 (struct iobuf_struct): Change the field use's type to it.
32725 + commit 8522cdc2264804d0677b7c0a447a0b45cf4195e3
32726 * common/t-iobuf.c (content_filter): If there is nothing to read,
32727 don't forget to set *LEN to 0.
32728 (main): Fix checks.
32730 2015-09-01 Werner Koch <wk@gnupg.org>
32732 agent: Protect commit 135b1e3 against misbehaving Libgcrypt.
32733 + commit 9ba4ccdaf5e128fbea51ff142c63d4b359c7264d
32734 * agent/command-ssh.c (ssh_key_to_blob): Check DATALEN.
32736 gpg: Remove option --no-sig-create-check.
32737 + commit f9c83d84e7d33df76898975f5ac852efa9c4882a
32738 * g10/gpg.c (opts): Remove --no-sig-create-check.
32739 * g10/options.h (struct opt): Remove field no_sig_create_check.
32740 * g10/sign.c (do_sign): Always check unless it is RSA and we are using
32743 common: Assume an utf-8 locale on iconv errors.
32744 + commit 99c9bf7defd6c1ac9cc49c84e6c78eeb886a6952
32745 * common/utf8conv.c (handle_iconv_error): Use utf-8 as fallback.
32747 common: Fix regression in building argpase.c standalone.
32748 + commit bc23e69b70191f887dcb937007833d0187af181f
32749 * common/argparse.c (is_native_utf8) [GNUPG_MAJOR_VERSION]: New.
32751 2015-08-31 Neal H. Walfield <neal@g10code.com>
32753 g10: Don't leak memory if we fail to initialize a new database handle.
32754 + commit 04a6b903d0354be2c69c7f2c98987de17d68416e
32755 * g10/keydb.c (keydb_new): If we fail to open a keyring or keybox
32756 correctly release all resources.
32758 g10: Improve interface documentation of the keydb API.
32759 + commit 360b699e9b4b8f99bd790b3cd158cd6f0fd7c131
32760 * g10/keydb.c: Improve code comments and documentation of internal
32761 interfaces. Improve documentation of public APIs and move that to...
32762 * g10/keydb.h: ... this file.
32764 g10: Don't cache search results if the search didn't scan the whole DB.
32765 + commit efd1ead9e779eb3bd37384258e08ad921a934612
32766 * g10/keydb.c (struct keydb_handle): Add new field is_reset.
32767 (keydb_new): Initialize hd->is_reset to 1.
32768 (keydb_locate_writable): Set hd->is_reset to 1.
32769 (keydb_search): Set hd->is_reset to 0. Don't cache a key not found if
32770 the search started from the beginning of the database.
32772 g10: Have keydb_search_first call keydb_search_reset before searching.
32773 + commit 11d8ffc939a4d20cfb0082b2d966b1e1a7d61f8d
32774 * g10/keydb.c (keydb_search_first): Reset the handle before starting
32777 g10: Remove unused parameter.
32778 + commit 0377db4b3581561b1ffc5bb7c3b4d698e8993b3a
32779 * g10/keydb.h (keydb_locate_writable): Remove unused parameter
32780 reserved. Update users.
32782 2015-08-31 NIIBE Yutaka <gniibe@fsij.org>
32784 agent: Fix SSH public key for EdDSA.
32785 + commit 135b1e32f01beaceba8a4ecc774e23b56aca1d24
32786 * agent/command-ssh.c (ssh_key_to_blob): Remove the prefix 0x40.
32788 2015-08-26 Neal H. Walfield <neal@g10code.com>
32790 g10: Simplify cache. Only include data that is actually used.
32791 + commit fad91071cadff43d77ce2e524dfb03999ba6678e
32792 * g10/keydb.c (struct kid_list_s): Rename from this...
32793 (struct kid_not_found_cache_bucket): ... to this. Update users.
32794 Remove field state.
32795 (kid_list_t): Remove type.
32796 (KID_NOT_FOUND_CACHE_BUCKETS): Define. Use this instead of a literal.
32797 (kid_found_table): Rename from this...
32798 (kid_not_found_cache_bucket): ... to this. Update users.
32799 (kid_found_table_count): Rename from this...
32800 (kid_not_found_cache_count): ... to this. Update users.
32801 (kid_not_found_p): Only return whether a key with the specified key id
32802 is definitely not in the database.
32803 (kid_not_found_insert): Remove parameter found. Update callers.
32804 (keydb_search): Only insert a key id in the not found cache if it is
32805 not found. Rename local variable once_found to already_in_cache.
32807 2015-08-25 Werner Koch <wk@gnupg.org>
32809 Add configure option --enable-build-timestamp.
32810 + commit 9d07f6930aaa40dce92104e8c99241713d92eed2
32811 * configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default.
32813 gpg: Emit ERROR status for key signing failures.
32814 + commit 51b9b8fba4ee326013c2cc911c70cde4c5f81fc7
32815 * g10/keyedit.c (sign_uids): Write an ERROR status for a signing
32817 (menu_adduid, menu_addrevoker, menu_revsig): Ditto.
32818 (menu_revuid, menu_revkey, menu_revsubkey): Ditto.
32820 gpg: Print a new FAILURE status after most commands.
32821 + commit 9cdff09743c473a12359bfdb914578ede0e4e3e2
32822 * common/status.h (STATUS_FAILURE): New.
32823 * g10/cpr.c (write_status_failure): New.
32824 * g10/gpg.c (main): Call write_status_failure for all commands which
32825 print an error message here.
32826 * g10/call-agent.c (start_agent): Print an STATUS_ERROR if we can't
32827 set the pinentry mode.
32829 2015-08-24 Neal H. Walfield <neal@g10code.com>
32831 agent: Raise the maximum password length. Don't hard code it.
32832 + commit 348a6ebb63523305ce9f47d0f3e8a9086c338fed
32833 * agent/agent.h (MAX_PASSPHRASE_LEN): Define.
32834 * agent/command-ssh.c (ssh_identity_register): Use it instead of a
32835 hard-coded literal.
32836 * agent/cvt-openpgp.c (convert_from_openpgp_main): Likewise.
32837 * agent/findkey.c (unprotect): Likewise.
32838 * agent/genkey.c (agent_ask_new_passphrase): Likewise.
32840 2015-08-24 Werner Koch <wk@gnupg.org>
32842 sm: Support secret key export via the Assuan interface.
32843 + commit 3cf02192a890d04f8f558cb72d46f9bd7a378322
32844 * sm/server.c (cmd_export): Add options --secret, --raw, and --pkcs12.
32846 2015-08-23 Werner Koch <wk@gnupg.org>
32848 dirmngr: Allow sending of Zack's key.
32849 + commit 84f4c8811fc5bdd78693c4dc289389a8337cc257
32850 * dirmngr/server.c (MAX_KEYBLOCK_LENGTH): Increase to 1 MiB.
32852 gpg: Fix regression in packet parser from Aug 19.
32853 + commit 88317ae8c829bfeb1689415efbd32b7a232d7bd0
32854 * g10/parse-packet.c (parse): Use an int to compare to -1. Use
32857 gpg: Show not found keys with --locate-key --verbose.
32858 + commit 00def10d365a88ce2d034ea9a5d6be4b03285fa4
32859 * g10/keylist.c (locate_one): Print a diagnostic for a not-found key.
32861 2015-08-21 Neal H. Walfield <neal@g10code.com>
32863 common: Don't incorrectly reject 4 GB - 1 sized packets.
32864 + commit 09f2a7bca624d0492e1d7ab29ce19542249c13ff
32865 * g10/parse-packet.c (parse): Don't reject 4 GB - 1 sized packets.
32866 Add the constraint that the type must be 63.
32867 * kbx/keybox-openpgp.c (next_packet): Likewise.
32868 * tests/openpgp/4gb-packet.asc: New file.
32869 * tests/openpgp/4gb-packet.test: New file.
32870 * tests/openpgp/Makefile.am (TESTS): Add 4gb-packet.test.
32871 (TEST_FILES): Add 4gb-packet.asc.
32873 common: Don't assume on-disk layout matches in-memory layout.
32874 + commit 4f37820334fadd8c5036ea6c42f3dc242665c4a9
32875 * g10/packet.h (PKT_signature): Change revkey's type from a struct
32876 revocation_key ** to a struct revocation_key *. Update users.
32878 common: Don't incorrectly copy packets with partial lengths.
32879 + commit b3226cadf9bbef4a367072396e5b0abf37afff2d
32880 * g10/parse-packet.c (parse): We don't handle copying packets with a
32881 partial body length to an output stream. If this occurs, log an error
32884 common: Check parameters more rigorously.
32885 + commit 0143d5c1ca4d12ac252c14f01931f48131591065
32886 * g10/parse-packet.c (dbg_copy_all_packets): Check that OUT is not
32888 (copy_all_packets): Likewise.
32890 common: Don't continuing processing on error.
32891 + commit 48e792cc951a9d00fad0691ef7411c9e22cf675a
32892 * g10/parse-packet.c (dbg_parse_packet): Also return if parse returns
32894 (parse_packet): Likewise.
32895 (dbg_search_packet): Likewise.
32896 (search_packet): Likewise.
32898 common: Better respect the packet's length when reading it.
32899 + commit 73af66a0aada8f30d8f400fdc4f69e233fb53089
32900 * g10/parse-packet.c (parse_signature): Make sure PKTLEN doesn't
32901 underflow. Be more careful that a read doesn't read more data than
32902 PKTLEN says is available.
32904 2015-08-20 Werner Koch <wk@gnupg.org>
32906 po: Add lost translation of validity strings.
32907 + commit 0d5a4138f27187e7828ef8216758edc9b48b2c64
32908 * po/POTFILES.in (trust.c): Add missing file.
32909 * po/de.po: Changed German validity strings.
32910 * doc/help.de.txt: Ditto.
32912 2015-08-20 Neal H. Walfield <neal@g10code.com>
32914 g10/parse-packet.c:parse: Try harder to not ignore an EOF.
32915 + commit 0add91ae1ca3718e8140af09294c595f47c958d3
32916 * g10/parse-packet.c (parse): Be more robust: make sure to process any
32919 g10/parse-packet.c: Replace literal with symbolic expression.
32920 + commit 24a72dffa75a04611c98343140c4eb0fbfe2a59f
32921 * g10/parse-packet.c (dump_hex_line): Use sizeof rather than the
32924 Add documentation for g10/parse-packet.c.
32925 + commit 026feff4a8e3090fb152af72c73aaa80c78e4551
32926 * g10/packet.h: Add documentation for functions defined in
32928 * g10/parse-packet.c: Improve comments for many functions.
32930 g10/packet.h: Remove unused argument from enum_sig_subpkt.
32931 + commit c46e8bfe9a1ae3f1e5327d0451cffd6e4567b449
32932 * g10/packet.h (enum_sig_subpkt): Remove argument RET_N. Update
32934 * g10/parse-packet.c (enum_sig_subpkt): Remove argument RET_N.
32936 g10/parse-packet.c:mpi_read: Detect EOF and correct boundary conditions.
32937 + commit c271feb53664dbf2b4ccbae90a31b8e726481e2d
32938 * g10/parse-packet.c (mpi_read): Improve documentation. Correctly
32939 handle an EOF. On overflow, correctly return the number of bytes read
32942 common/iobuf.c: Make control flow more obvious.
32943 + commit 49f922286fa8adb2d2ca730eb7bbe67e684b20de
32944 * common/iobuf.c (iobuf_read): Make control flow more obvious.
32945 (iobuf_get_filelength): Likewise.
32946 (iobuf_get_fd): Likewise.
32947 (iobuf_seek): Likewise.
32949 common/iobuf.c: Add some sanity checks to catch programmer bugs.
32950 + commit c5da750cf3d53277fe6d86776bfe0d2304b05151
32951 * common/iobuf.c (iobuf_alloc): Check that BUFSIZE is not 0.
32952 (iobuf_readbyte): Check that A is an input filter. Check that the
32953 amount of read data is at most the amount of buffered data.
32954 (iobuf_read): Check that A is an input filter.
32955 (iobuf_writebyte): Check that A is not an input filter.
32956 (iobuf_writestr): Check that A is not an input filter.
32957 (iobuf_flush_temp): Check that A is not an input filter.
32959 common/iobuf.c:iobuf_write_temp: Elide redundant code.
32960 + commit e291b631c3b1aedf529078190cd51e2acfcd1d92
32961 * common/iobuf.c (iobuf_write_temp): Don't repeat iobuf_flush_temp.
32964 common/iobuf.c: Have iobuf_writestr use iobuf_write, not iobuf_writebyte
32965 + commit a6d4bca3b576c3c5dba1aa6e8c1039089e14147b
32966 * common/iobuf.c (iobuf_write): Don't write a byte at a time. Use
32969 common/iobuf: Improve documentation and code comments.
32970 + commit 1bfd1e43246c16e20f819bf5381ca21abde54458
32971 common/iobuf.h: Improve documentation and code comments.
32972 common/iobuf.c: Likewise.
32974 common/iobuf.c: Adjust buffer size of filters in front of temp filters.
32975 + commit 0d40c4e83f6fbfea2f494f1f88412d3132ff98bd
32976 * common/iobuf.c (iobuf_push_filter2): If the head filter is a temp
32977 filter, use IOBUF_BUFFER_SIZE for the new filter.
32979 common/iobuf.c: Buffered data should not be processed by new filters.
32980 + commit 827cc922d84d8113d4f13ebbed1314e03da5f7d2
32981 * common/iobuf.c (iobuf_push_filter2): If the pipeline is an output or
32982 temp pipeline, the new filter shouldn't assume ownership of the old
32983 head's internal buffer: the data was written before the filter was
32985 * common/t-iobuf.c (double_filter): New function.
32986 (main): Add test cases for the above bug.
32988 common/iobuf.c: Flush the pipeline in iobuf_temp_to_buffer.
32989 + commit 616181f3c757160af8539869a6d929faca4962c4
32990 * common/iobuf.c (iobuf_temp_to_buffer): Flush each filter in the
32991 pipeline and copy the data from the last (not the first) filter's
32994 common/iobuf.c: Combine iobuf_open, iobuf_create and iobuf_openrw.
32995 + commit 15ae99f887f4694de8468625d455d487d283f719
32996 * common/iobuf.c (do_open): New function, which is a generalization of
32997 iobuf_open, iobuf_Create, iobuf_openrw.
32998 (iobuf_open): Call do_open.
32999 (iobuf_create): Likewise.
33000 (iobuf_openrw): Likewise.
33002 common/iobuf.h: Remove iobuf_open_fd_or_name.
33003 + commit 8402815d8e0e04a44362968f88b3d484d2395402
33004 * common/iobuf.h (iobuf_open_fd_or_name): Remove prototype. Replace
33005 use with either iobuf_open or iobuf_fdopen_nc, as appropriate.
33006 * common/iobuf.c (iobuf_open): Remove function.
33008 common/iobuf.c: Rename iobuf_flush and make it a static function.
33009 + commit 6d49a2b6691f2dd0d8ac34a15f18cc2a0c3ba5d3
33010 * common/iobuf.h (iobuf_flush): Remove prototype.
33011 * common/iobuf.c (filter_flush): New static prototype.
33012 (iobuf_flush): Rename...
33013 (filter_flush): ... to this. Make static. Simplify code. Update
33016 common/iobuf.c: Don't abort freeing a pipeline if freeing a filter fails
33017 + commit 1f94646a86348128f585301fcd605e5e703fd77d
33018 * common/iobuf.c (iobuf_cancel): Don't abort freeing a pipeline if
33019 freeing a filter fails. This needs to a memory leak. Instead, keep
33020 freeing and return the error code of the first filter that fails.
33022 common/iobuf.c: Improve iobuf_peek.
33023 + commit a250f73783c06d7789ac65a395d9247f4ab44c26
33024 * common/iobuf.c (underflow): Take additional parameter
33025 clear_pending_eof. If not set, don't clear a pending eof when
33026 returning EOF. Update callers.
33027 (iobuf_peek): Fill the internal buffer, if needed, to be able to
33028 better satisfy any request.
33030 common/iobuf.c: When requested, fill the buffer even if it is not empty.
33031 + commit c7ad36eb0d7f872fc15e793aa1d0b6b89bc471d6
33032 * common/iobuf.c (underflow): Don't require that the buffer be empty.
33033 When called, fill any available space.
33035 common/t-iobuf.c: Add a test case for multiple EOFs.
33036 + commit e76c75d8726558dc9084710253f0f6780e06fad3
33037 common/t-iobuf.c (main): Add a test case for multiple EOFs in an INPUT
33040 common/iobuf.c: Better respect boundary conditions in iobuf_read_line.
33041 + commit 4e32c602f5c40cca5f8f40e642ccb10d3f8c5614
33042 * common/iobuf.c (iobuf_read_line): Be more careful with boundary
33044 * common/iobuf.h: Include <gpg-error.h>.
33045 * common/t-iobuf.c: New file.
33046 * common/Makefile.am (module_tests): Add t-iobuf.
33047 (t_mbox_util_LDADD): New variable.
33049 common/iobuf.c: Fix filter type for iobuf_temp_with_content.
33050 + commit fa9fda23c2c8cf6982b7263f6882ed8687d98c16
33051 * common/iobuf.c (iobuf_temp_with_content): Set the filter type to
33052 IOBUF_INPUT, not IOBUF_TEMP, which is only for output filters that
33053 write into a dynamic buffer.
33055 common/iobuf.h: Remove unimplemented prototypes.
33056 + commit 75fd86bbd175e085a93c1ad62f50ae936494b307
33057 * common/iobuf.h (iobuf_unread): Remove unimplemented prototype.
33058 (iobuf_clear_eof): Likewise.
33059 (iobuf_append): Likewise.
33061 common/iobuf.c: Refactor code to not need the desc field.
33062 + commit 679acc671e621847f50d6b4dca10a22c62500b9a
33063 * common/iobuf.h (struct iobuf_struct): Remove field desc.
33064 * common/iobuf.c (iobuf_desc): New function. When a filter's
33065 description is needed, use this instead of the filter's desc field.
33067 common/iobuf.h: Clarify semantics of nofast. Simplify implementation.
33068 + commit 12fc56bcb51d984a6e86fc1eb7952f9976c67043
33069 * common/iobuf.h (struct iobuf_struct): Clarify semantics of nofast.
33070 Simplify use of nofast to implement just these semantics.
33072 common/iobuf.c: Remove dead code (directfp).
33073 + commit e8c0b6abf88309c23a70df0abbd38d42fa22a786
33074 * common/iobuf.h (struct iobuf_struct): Remove field directfp. Remove
33077 common/iobuf.c: Remove dead code (opaque).
33078 + commit f05d60b3813a97e316a067680d7598b74621a522
33079 * common/iobuf.h (struct iobuf_struct): Remove field opaque. Remove
33082 common/iobuf.h: Replace further use of literals with symbolic constants.
33083 + commit c06eabac8e85f7f79414363836f093415e8da62e
33084 * common/iobuf.c: Move BLOCK_FILTER_INPUT,
33085 BLOCK_FILTER_OUTPUT_BLOCK_FILTER_TEMP from here...
33086 * common/iobuf.h: ... to here and rename to IOBUF_INPUT, IOBUF_OUTPUT
33087 and IOBUF_TEMP, respectively. Where appropriate, use these macros
33088 instead of a literal.
33090 2015-08-17 Werner Koch <wk@gnupg.org>
33092 gpg: Avoid linking to Libksba.
33093 + commit 91357b7722f2bf0d3765ec72855bdc96732df9d6
33094 * kbx/keybox.h (KEYBOX_WITH_X509): Do not define.
33095 * sm/Makefile.am (AM_CPPFLAGS): Define it here.
33096 (common_libs): Change to libkeybox509.a
33097 * g10/Makefile.am (AM_CFLAGS): remove KSBA_CFLAGS.
33098 (gpg2_LDADD, gpgv2_LDADD): Remove KSBA_LIBS
33099 * kbx/Makefile.am (noinst_LIBRARIES): Add libkeybox509.a.
33100 (libkeybox509_a_SOURCES): New.
33101 (libkeybox_a_CFLAGS): New.
33102 (libkeybox509_a_CFLAGS): New.
33103 (kbxutil_CFLAGS): New.
33104 * kbx/keybox-search.c (has_keygrip) [!KEYBOX_WITH_X509]: Declare args
33107 2015-08-16 Ben Kibbey <bjk@luxsci.net>
33109 Fix pinentry loopback and passphrase contraints.
33110 + commit bba74cdd95ea98b5a7c3a12823b229341e91504e
33111 * agent/command.c (cmd_get_passphrase): Don't repeat passphrase for
33112 pinentry loopback mode.
33113 * agent/genkey.c (check_passphrase_constraints): Immediately return when
33114 pinentry mode is loopback.
33116 Fix sending INQUIRE_MAXLEN for symmetric data.
33117 + commit 93f5295df512269dd8fecbd649b11cbacf78e864
33118 * g10/passphrase.c (passphrase_to_dek_ext): Write the status message.
33120 2015-08-15 Ben Kibbey <bjk@luxsci.net>
33122 Inform a user about inquire length limit.
33123 + commit f126ca61565922b3b938c3486614b9bd7e6e454c
33124 * common/status.h (INQUIRE_MAXLEN): New.
33125 * g10/call-agent.c (default_inquire_cb): Send STATUS_INQUIRE_MAXLEN.
33126 client when inquiring a passphrase over pinentry-loopback.
33128 Allow --gen-key to inquire a passphrase.
33129 + commit 233b5fedabd80a34452e748132e65b5944310428
33130 * g10/gpg.c (main): test for --command-fd during --gen-key parse.
33132 When --command-fd is set then imply --batch to let gpg inquire a
33133 passphrase rather than requiring a pinentry.
33135 2015-08-11 Werner Koch <wk@gnupg.org>
33138 + commit b5e081973b56b21214fc0c65ba9015dd026328b4
33141 2015-08-10 NIIBE Yutaka <gniibe@fsij.org>
33143 agent: fix ECC key handling.
33144 + commit 8704c70108218a60f8fb2ee0e558ca8ed125600d
33145 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
33146 (convert_transfer_key): CURVE is the name of curve.
33148 2015-08-08 Neal H. Walfield <neal@g10code.com>
33150 common/iobuf.c: Replace use of literals with symbolic constants.
33151 + commit c80643c5ecbee89f343ef087313870cee1334fe4
33152 * common/iobuf.c (BLOCK_FILTER_INPUT): Define. Where appropriate, use
33153 this instead of a literal.
33154 (BLOCK_FILTER_OUTPUT): Likewise.
33155 (BLOCK_FILTER_TEMP): Likewise.
33157 2015-08-07 Werner Koch <wk@gnupg.org>
33159 gpg: Allow gpgv to work with a trustedkeys.kbx file.
33160 + commit 5b7a80b1ab91d2f199065e5dd14e85f42918975d
33161 * g10/keydb.h (KEYDB_RESOURCE_FLAG_GPGVDEF): New.
33162 * g10/keydb.c (keydb_add_resource): Take care of new flag.
33163 * g10/gpgv.c (main): Use new flag.
33165 agent: Add option --force to the DELETE_KEY command.
33166 + commit a68c5c5c7fe4ec8665e252e5062292f6c7b94fdd
33167 * agent/findkey.c (agent_delete_key): Add arg "force".
33168 * agent/command.c (cmd_delete_key): Add option --force.
33170 common: Change alias for Curve25519 to "cv25519".
33171 + commit 9f31ab3d216ed74d6f392a62e3f95e0591174119
33172 * common/openpgp-oid.c (oidtable): Change alias.
33174 2015-08-06 Werner Koch <wk@gnupg.org>
33176 gpg: Remove duplicated printing of the curve name in "sub" lines.
33177 + commit fb754dc6170d12edf3d35c48340b8d7b1ded20f7
33178 * g10/keylist.c (list_keyblock_print): Do not print extra curve name.
33180 gpg: Add commands "fpr *" and "grip" to --edit-key.
33181 + commit fbb6c25ab5dbb5f2b1f1eb342ca7caa3f955d8c9
33182 * g10/keyedit.c (cmdGRIP): New.
33183 (cmds): Add command "grip".
33184 (keyedit_menu) <cmdFPR>: Print subkeys with argument "*".
33185 (keyedit_menu) <cmdGRIP>: Print keygrip.
33186 (show_key_and_fingerprint): Add arg "with_subkeys".
33187 (show_key_and_grip): New.
33188 * g10/keylist.c (print_fingerprint): Add mode 4.
33190 gpg: Adjust UID line indentation for common key algos.
33191 + commit 969542c8c2f48a60c1d68b7bf70b0c00374bacba
33192 * g10/keylist.c (list_keyblock_print): Change UID line indentation
33193 * g10/mainproc.c (list_node): Ditto.
33195 2015-08-06 NIIBE Yutaka <gniibe@fsij.org>
33197 Curve25519 support.
33198 + commit e5891a82c39997b65ce9ff90eb6120db7bedd399
33199 * agent/cvt-openpgp.c (get_keygrip): Handle Curve25519.
33200 (convert_secret_key, convert_transfer_key): Ditto.
33201 * common/openpgp-oid.c (oidtable): Add Curve25519.
33202 (oid_crv25519, openpgp_oid_is_crv25519): New.
33203 * common/util.h (openpgp_oid_is_crv25519): New.
33204 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Handle the case
33205 with Montgomery curve which uses x-only coordinate.
33206 * g10/keygen.c (gen_ecc): Handle Curve25519.
33207 (ask_curve): Change the API and second arg is to return subkey algo.
33208 (generate_keypair, generate_subkeypair): Follow chage of ask_curve.
33209 * g10/keyid.c (keygrip_from_pk): Handle Curve25519.
33210 * g10/pkglue.c (pk_encrypt): Handle Curve25519.
33211 * g10/pubkey-enc.c (get_it): Handle the case with Montgomery curve.
33212 * scd/app-openpgp.c (ECC_FLAG_DJB_TWEAK): New.
33213 (send_key_attr): Work with general ECC, Ed25519, and Curve25519.
33214 (get_public_key): Likewise.
33215 (ecc_writekey): Handle flag_djb_tweak.
33217 common: extend API of openpgp_oid_to_curve for canonical name.
33218 + commit a6e40530898622fbc5d76557a7da5e69368ecaa4
33219 * common/openpgp-oid.c (openpgp_oid_to_curve): Add CANON argument.
33220 * common/util.h: Update.
33221 * g10/import.c (transfer_secret_keys): Follow the change.
33222 * g10/keyid.c (pubkey_string): Likewise.
33223 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Likewise.
33224 * parse-packet.c (parse_key): Likewise.
33225 * scd/app-openpgp.c (send_key_attr, get_public_key): Likewise.
33227 2015-08-05 NIIBE Yutaka <gniibe@fsij.org>
33230 + commit d088d2c81690a89051349ddc8a82fe222625f4e0
33231 * scd/app-openpgp.c (ecc_oid): Call with OIDBUF.
33233 scd: Fix ECC support.
33234 + commit 0751571cac0f5aef2862c34a184f7f09ad9cb203
33235 * scd/app-openpgp.c (send_key_attr): Send KEYNO.
33236 (get_public_key): Fix SEXP composing.
33237 (ecc_writekey): Fix OID length calculation.
33238 (ecc_oid): Prepend the length before query.
33239 (parse_algorithm_attribute): Handle the case the curve is not available.
33241 2015-08-04 Werner Koch <wk@gnupg.org>
33243 gpg: Fix duplicate key import due to legacy key in keyring.
33244 + commit 4a326d7c9a3b09efcccf4de00d6c003829ad89e8
33245 * g10/keydb.c (keydb_search_fpr): Skip legacy keys.
33247 gpg: Properly handle legacy keys while looking for a secret key.
33248 + commit f05a63b10428df2878b1bb6fde57a2fc2aa99105
33249 * g10/getkey.c (have_secret_key_with_kid): Skip legacy keys.
33251 2015-07-31 Werner Koch <wk@gnupg.org>
33253 gpg: Fix endless loop for expired keys given by fpr.
33254 + commit 328a6b6459a5ce4a70b374262f221ada20c40878
33255 * g10/getkey.c (lookup): Disable keydb caching when continuing a
33258 2015-07-29 Werner Koch <wk@gnupg.org>
33260 gpg: Do not return "Legacy Key" from lookup if a key is expired.
33261 + commit 23d8609f4b5ec3432323a676fd7ef225c0ef71a1
33262 * g10/getkey.c (lookup): Map GPG_ERR_LEGACY_KEY.
33264 gpg: Indicate secret keys and cards in a key-edit listing.
33265 + commit 8b2b988309cbc5af339beb0a55ff71d7464eb646
33266 * g10/keyedit.c (sign_uids): Add arg "ctrl".
33267 (show_key_with_all_names_colon): Ditto.
33268 (show_key_with_all_names): Ditto.
33270 * g10/keyedit.c (show_key_with_all_names): Print key record
33271 indicators by checking with gpg-agent.
33272 (show_key_with_all_names): Ditto. May now also print sec/sbb.
33274 2015-07-28 Werner Koch <wk@gnupg.org>
33276 gpg: Remove the edit-key toggle command.
33277 + commit 7ef09afd1a6a37c7f22e7c3d898f0c917b08f940
33278 * g10/keyedit.c (cmds): Remove helptext from "toggle".
33279 (keyedit_menu): Remove "toggle" var and remove the sub/pub check
33282 common,w32: Avoid unused var warning about msgcache.
33283 + commit 4bc75337f31374b7424d7bdebf839dd91ec80c0a
33284 * common/i18n.c (USE_MSGCACHE): New.
33285 (msgcache) [!USE_MSGCACHE]: Do not define.
33286 (i18n_localegettext): Repalce #if conditions by USE_MSGCACHE.
33288 w32: Try more places to find an installed Pinentry.
33289 + commit 18f1e627c697d75175b79fe095305fa775f20841
33290 * common/homedir.c (get_default_pinentry_name): Re-implement to
33291 support several choices for Windows.
33293 2015-07-26 Werner Koch <wk@gnupg.org>
33295 scd: Fix size_t/unsigned int mismatch.
33296 + commit 55e64f47a52d76e097a01eb4044a88a4e10d6a87
33297 * scd/app-openpgp.c (ecc_writekey): Use extra var n.
33299 Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros.
33300 + commit d382242fb6789973ce8d246ec154a4a1468c24c0
33301 * common/util.h: Provide replacement for GPGRT_ATTR_ macros when using
33302 libgpg-error < 1.20.
33303 * common/mischelp.h: Ditto.
33304 * common/types.h: Ditto.
33306 2015-07-25 NIIBE Yutaka <gniibe@fsij.org>
33308 scd: support any curves defined by libgcrypt.
33309 + commit ef080d5c7fb7f3b75c3c57c011f78a312b8e13a9
33310 * g10/call-agent.h (struct agent_card_info_s): Add curve field.
33311 * g10/call-agent.c (learn_status_cb): Use curve name.
33312 * g10/card-util.c (card_status): Show pubkey name.
33313 * scd/app-openpgp.c (struct app_local_s): Record OID and flags.
33314 (store_fpr): Use ALGO instead of key type.
33315 (send_key_attr): Use curve name instead of OID.
33316 (get_public_key): Clean up by OID to curve name.
33317 (ecc_writekey): Support any curves in libgcrypt.
33318 (do_genkey, do_auth, ): Follow the change.
33320 (parse_algorithm_attribute): Show OID here.
33322 2015-07-23 Peter Wu <peter@lekensteyn.nl>
33324 build: ignore scissor line for the commit-msg hook.
33325 + commit d24165bce2823c2f5dcb39b7b84c9aa00802a8ee
33326 * build-aux/git-hooks/commit-msg: Stop processing more lines when the
33327 scissor line is encountered.
33329 2015-07-23 NIIBE Yutaka <gniibe@fsij.org>
33331 scd: Format change to specify "rsa2048" for KEY-ATTR.
33332 + commit dbf4534f49a1fe3823bd6d6d7bb4d9df863b4789
33333 * g10/card-util.c (do_change_keysize): Put "rsa".
33334 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
33335 Change the command format.
33336 (rsa_writekey): Check key type.
33337 (do_writekey): Remove "ecdh" and "ecdsa" support which was available
33338 in experimental libgcrypt before 1.6.0.
33340 2015-07-22 Werner Koch <wk@gnupg.org>
33342 Avoid a leading double slash in make_filename.
33343 + commit 69d2c9b09bd9d0b86b9f2feb585037a2c11795b0
33344 * common/stringhelp.c (do_make_filename): Special case leading '/'.
33346 2015-07-21 NIIBE Yutaka <gniibe@fsij.org>
33348 scd: change_keyattr_from_string for ECC.
33349 + commit 9901be395684dd1b35d83685a719291347684ab1
33350 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
33352 (rsa_writekey): Don't change key attribute.
33354 2015-07-17 NIIBE Yutaka <gniibe@fsij.org>
33356 scd: Use openpgpdefs.h for constants.
33357 + commit f5d356fb5bbbd0e05a753612455253e4bc335266
33358 * scd/app-openpgp.c: Include openpgpdefs.h.
33360 2015-07-16 Neal H. Walfield <neal@g10code.com>
33362 Don't segfault if the first 'auto-key-locate' option is 'clear'.
33363 + commit f2ee673c99825d5189631031ddec2dbf54dbd482
33364 * g10/getkey.c (free_akl): If AKL is NULL, just return.
33366 2015-07-10 NIIBE Yutaka <gniibe@fsij.org>
33368 agent: Support non-NLS build.
33369 + commit b3286af36d452fc801be573a057b0838d53a2edd
33370 * agent/agent.h: Use ENABLE_NLS and define L_() macro.
33372 2015-07-09 NIIBE Yutaka <gniibe@fsij.org>
33374 scd: Remove unused files.
33375 + commit 67b2dc7636e47baefd5aafe0eb45b4730f974481
33376 * scd/Makefile.am (sc_copykeys_*): Remove.
33377 * scd/sc-copykeys.c: Remove.
33378 * scd/pcsc-wrapper.c: Remove.
33379 * scd/{card-common.h,card-dinsig.c,card-p15.c,card.c}: Remove.
33381 2015-07-08 NIIBE Yutaka <gniibe@fsij.org>
33383 g10: Use canonical name for curve.
33384 + commit 5b46726931049e060d8fbfa879db7907078a9aed
33385 * g10/import.c (transfer_secret_keys): Use canonical name.
33386 * common/openpgp-oid.c (openpgp_curve_to_oid): Return NULL on error.
33387 * g10/keyid.c (pubkey_string): Follow change of openpgp_curve_to_oid.
33388 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
33389 * g10/parse-packet.c (parse_key): Ditto.
33391 2015-07-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
33393 drop long-deprecated gpgsm-gencert.sh.
33394 + commit 1be2cebf7ff5837c8b548b4f4afbf1b8b28211bc
33395 * tools/gpgsm-gencert.sh: remove deprecated script entirely. It is
33396 fully replaced by gpgsm --gen-key
33397 * doc/tools.texi: remove gpgsm-gencert.sh documentation
33398 * .gitignore: no longer ignore gpgsm-gencert.sh manpage
33399 * doc/Makefile.am: quit making the manpage
33400 * tools/Makefile.am: quit distributing the script
33401 * doc/howto-create-a-server-cert.texi: overhaul documentation to use
33402 gpgsm --gen-key and tweak explanations
33404 2015-07-02 NIIBE Yutaka <gniibe@fsij.org>
33406 po: Update Japanese translation.
33407 + commit 3502b3cc0f5ff92ab89a0da8b1e344a8ad615737
33410 scd: Support AES decryption for OpenPGPcard v3.0.
33411 + commit 45c49a0030c7a01ec011ce810ddb3aaef734e9bf
33412 * scd/app-openpgp.c (do_decipher): Support AES decryption.
33414 2015-07-01 Werner Koch <wk@gnupg.org>
33417 + commit a499eeb6a6545d87ac9f1b64e32017bfdb4f67e6
33420 2015-07-01 Daiki Ueno <ueno@gnu.org>
33422 agent: Unset INSIDE_EMACS on gpg-agent startup.
33423 + commit f1490a3a0ecf4a5a03373c9563f7709630232ee3
33424 * agent/gpg-agent.c (main): Unset INSIDE_EMACS envvar.
33426 2015-07-01 Werner Koch <wk@gnupg.org>
33428 common: Implement i18n_localegettext.
33429 + commit a65447f0d64d0c53ddbdcfc988f26ecc9a8a6f08
33430 * common/i18n.c (msg_cache_s, msg_cache_head_s): New.
33432 (i18n_localegettext): Implement locale dependent lookup.
33434 2015-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
33436 Pass DBUS_SESSION_BUS_ADDRESS for gnome3.
33437 + commit 816824953c91959c23a57c047bdba6a902ffdde6
33438 * common/session-env.c (stdenvnames): Add DBUS_SESSION_BUS_ADDRESS.
33440 2015-06-30 Werner Koch <wk@gnupg.org>
33442 Flag the L_() function with attribute format_arg.
33443 + commit 232af382e563fcbe15589a3ccae7d6908a17c44d
33444 * agent/agent.h (LunderscorePROTO): New.
33445 * common/util.h (GNUPG_GCC_ATTR_FORMAT_ARG): New.
33446 * common/i18n.h (GNUPG_GCC_ATTR_FORMAT_ARG): New. Use for
33447 i18n_localegettext. Expand LunderscorePROTO.
33448 * agent/genkey.c (check_passphrase_constraints): Use xtryasprintf
33449 again to keep the old translations.
33451 agent: Use different translation func for Pinentry strings.
33452 + commit e76d4c05b24211f3981ab69cddb3fccc17d21e0e
33453 * po/Makevars (XGETTEXT_OPTIONS): Add keyword "L_".
33454 * common/i18n.c (i18n_localegettext): New stub.
33455 * common/i18n.h: Expand the LunderscoreIMPL macro.
33456 * agent/agent.h (L_): New.
33457 (LunderscoreIMPL): New.
33458 * agent/call-pinentry.c (setup_qualitybar): Add arg ctrl anc change
33460 * agent/findkey.c (try_unprotect_cb): Add local var ctrl.
33461 * agent/genkey.c (check_passphrase_constraints): Replace xtryasprintf
33462 by xtrystrdup to avoid gcc warning. Unfortinately this changes the
33464 (agent_ask_new_passphrase): Cleanup the use of initial_errtext.
33466 gpg: Make show-sig-subpackets work again.
33467 + commit 010e4281c3e15e2f86589dd1da419531ead519ef
33468 * g10/gpg.c (parse_list_options): Fix offset for subpackets.
33470 2015-06-29 Werner Koch <wk@gnupg.org>
33472 agent: Prepare for Libassuan with Cygwin support.
33473 + commit b6076579311029aa76c00377d9a804b1578bf58f
33474 * agent/gpg-agent.c (create_server_socket): Add arg "cygwin". Call
33475 assuan_sock_set_flag if Assuan version is recent enough.
33476 (main): Create ssh server socket with Cygwin flag set.
33478 2015-06-29 Neal H. Walfield <neal@gnu.org>
33480 Show passphrase constraints errors as password prompt errors.
33481 + commit 2778c6f8f40d73272075ce04c07097f65c94054e
33482 * agent/agent.h (check_passphrase_constraints): Add parameter
33483 failed_constraint and remove parameter silent. Update callers.
33484 * agent/genkey.c (check_passphrase_constraints): Add parameter
33485 failed_constraint and remove parameter silent. If FAILED_CONSTRAINT
33486 is not NULL and OPT.ENFORCE_PASSPHRASE_CONSTRAINTS is FALSE, save the
33487 error text in *FAILED_CONSTRAINT and don't call take_this_one_anyway
33488 or take_this_one_anyway2. If FAILED_CONSTRAINT is NULL, act as if
33490 (agent_ask_new_passphrase): Change initial_errtext's type from a const
33491 char * to a char *. Pass it to check_passphrase_constraints. If it
33492 contains malloc's memory, free it.
33494 2015-06-29 Neal H. Walfield <neal@g10code.com>
33496 Improve documentation for default-cache-ttl and default-cache-ttl-ssh.
33497 + commit 0416aed4abf6cea94458d2e38eb4a5e6bfea2d8b
33498 * doc/gpg-agent.texi (Agent Options): Improve documentation for
33499 default-cache-ttl and default-cache-ttl-ssh.
33501 Don't raise max-cache-ttl to default-cache-ttl.
33502 + commit 60cf69ff9d61a2cd37fc4468f232fd41aa70a651
33503 * agent/gpg-agent.c (finalize_rereadable_options): Don't raise
33504 max-cache-ttl to default-cache-ttl. Likewise for max-cache-ttl-ssh
33505 and default-cache-ttl-ssh.
33507 Improve the description of old packets with an indeterminate length.
33508 + commit 68c217f457a772984d0afbdd341f18de7c867505
33509 * g10/parse-packet.c (parse): Make the description more accurate when
33510 listing packets: old format packets don't support partial lengths,
33511 only indeterminate lengths (RFC 4880, Section 4.2).
33513 2015-06-29 Werner Koch <wk@gnupg.org>
33515 agent: Add --verify to the PASSWD command.
33516 + commit 9bca96dbc5c32bdd00196462fde8c9ab94aeb28d
33517 * agent/command.c (cmd_passwd): Add option --verify.
33519 agent,w32: Do not create a useless socket with --enable-putty-support.
33520 + commit 7a387331645736eaeaaef57770beef5fa741bc22
33521 * agent/agent.h (opt): Remove field ssh_support.
33522 * agent/gpg-agent.c (ssh_support): New. Replace all opt.ssh_support
33524 (main): Do not set ssh_support along with setting putty_support.
33526 gpgsm: Add command option "offline".
33527 + commit 2c9c46e2a2b8f9a1bdc1ef46a135b5fc7d1a8073
33528 * sm/server.c (option_handler): Add "offline".
33529 (cmd_getinfo): Ditto.
33530 * sm/certchain.c (is_cert_still_valid):
33531 (do_validate_chain):
33532 * sm/gpgsm.c (gpgsm_init_default_ctrl): Default "offline" to the value
33533 of --disable-dirmngr.
33534 * sm/call-dirmngr.c (start_dirmngr_ext): Better also check for
33537 2015-06-26 NIIBE Yutaka <gniibe@fsij.org>
33539 scd: Support button flag and AES key data for OpenPGPcard v3.0.
33540 + commit d2fdf2e1b6cd447bb1c36df0ac7d8e669802fa22
33541 * scd/app-openpgp.c (do_getattr, show_caps, app_select_openpgp):
33542 Support button and symmetric decryption.
33543 (do_setattr): Support setting AESKEY.
33545 2015-06-25 Andre Heinecke <aheinecke@intevation.de>
33547 sm: Fix cert storage for ephemeral certs.
33548 + commit 5e1a844ae9b6730b4b8a2c9178ea9bc121560c28
33549 * sm/keydb.c (keydb_store_cert): Clear ephemeral flag for
33550 existing certs if store should not be ephemeral.
33552 2015-06-23 Werner Koch <wk@gnupg.org>
33554 Allow use of debug flag names for all tools.
33555 + commit 54a0ed3d9b10a3c6dfb3d6a4d20b693a3183f8f6
33556 * g13/g13.c: Make use of debug_parse_flag.
33557 * scd/scdaemon.c: Ditto.
33558 * sm/gpgsm.c: Ditto
33559 * agent/gpg-agent.c: Ditto. But do not terminate on "help"
33560 * dirmngr/dirmngr.c: Ditto.
33562 common: Improve fucntion parse_debug_flag.
33563 + commit 8195e55d0c134a45f7c9bd95c8b5741781841c18
33564 * common/miscellaneous.c (parse_debug_flag): Add hack not to call
33565 exit. Add "none" and "all" flags.
33567 2015-06-23 NIIBE Yutaka <gniibe@fsij.org>
33569 scd: pinpad workaround for PC/SC implementations.
33570 + commit 5e1d2fe6555d06f9dcd2daac713b2edfbc0428a5
33571 * scd/adpu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Bigger buffer
33572 for TPDU card reader.
33574 2015-06-22 Werner Koch <wk@gnupg.org>
33576 gpg: Allow debug flag names for --debug.
33577 + commit 4698e5b203bd983503b5fd784fcd09dd3bc3a15e
33578 * g10/gpg.c (opts): Change arg for oDebug to a string.
33579 (debug_flags): New; factored out from set_debug.
33580 (set_debug): Remove "--debug-level help". Use parse_debug_flag to
33581 print the used flags.
33582 (main): Use parse_debug_flag for oDebug.
33584 common: Add function parse_debug_flag.
33585 + commit 22147952b744958ec46d356e942540356ff7d93e
33586 * common/miscellaneous.c (parse_debug_flag): New.
33587 * common/util.h (struct debug_flags_s): New.
33589 common: Add function strtokenize.
33590 + commit d37f47081d41584efc0c397432811f9cfa5d5867
33591 * common/stringhelp.c: Include assert.h.
33592 (strtokenize): New.
33593 * common/t-stringhelp.c (test_strtokenize): New.
33595 gpg: Fix regression due to recent commit 6500f33.
33596 + commit e0873a3372800d51c90ca656450f937dbae9c169
33597 * g10/keydb.c (kid_list_s): Keep a state in the table.
33598 (kid_not_found_table): Rename to kid_found_table.
33599 (n_kid_not_found_table): Rename to kid_found_table_count.
33600 (kid_not_found_p): Return found state.
33601 (kid_not_found_insert): Add arg found.
33602 (keydb_search): Store found state in the table.
33604 2015-06-22 NIIBE Yutaka <gniibe@fsij.org>
33606 scd: Fix Cherry ST-2000 support for pinpad input.
33607 + commit 444e9232aa9e00aacd939cbf7bdb881b550dfebe
33608 * scd/apdu.c (pcsc_vendor_specific_init): Set pinmax to 15.
33609 * scd/ccid-driver.c (ccid_transceive_secure): Add zero for the
33612 2015-06-20 Werner Koch <wk@gnupg.org>
33614 gpg: Print number of good signatures with --check-sigs.
33615 + commit 0948c4f217308ffa0ec61ce189d387fd61b02bbd
33616 * g10/keylist.c (keylist_context): Add field good_sigs.
33617 (list_keyblock_print): Updated good_sigs.
33618 (print_signature_stats): Print number of good signatures and use
33619 log_info instead of tty_printf.
33621 gpg: Improve speed of --check-sigs and --lish-sigs.
33622 + commit 6500f338a35f4148606480c79f3a0c1b0d15f13a
33623 * g10/keydb.c (kid_list_t): New.
33624 (kid_not_found_table, n_kid_not_found_table): New.
33625 (kid_not_found_p, kid_not_found_insert, kid_not_found_flush): New.
33626 (keydb_insert_keyblock): Flush the new cache.
33627 (keydb_delete_keyblock): Ditto.
33628 (keydb_update_keyblock): Ditto.
33629 (keydb_search): Use the new cache.
33630 (keydb_dump_stats): New.
33631 * g10/gpg.c (g10_exit): Dump keydb stats.
33633 2015-06-19 Werner Koch <wk@gnupg.org>
33635 gpg: Add more log_clock calls to keydb.c.
33636 + commit 53e9b86085ac70ede8a0b1de9018ccbfe55b0932
33637 * g10/keydb.c (keydb_get_keyblock): Add log_clock calls.
33639 gpg: Print available debug flags using "--debug-level help".
33640 + commit 663a31f1ea2fc5a43c822e916cf20fece5243851
33641 * g10/gpg.c (set_debug): Add "help" option and use a table for the
33644 gpg: Fix export problem in case an old keyring has PGP-2 keys.
33645 + commit c5604eeee4b64a44a1ca1d517ace14fc1cbda298
33646 * g10/export.c (do_export_stream): Skip legacy keys.
33648 2015-06-18 Werner Koch <wk@gnupg.org>
33650 dirmngr: Fix the cleanup zombies fix (685b782).
33651 + commit c97198371b7307e64afdd323231977b2247f64ec
33652 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Do not close the
33653 stdout reader after EOF from read_log_data.
33654 * dirmngr/crlcache.c (crl_cache_reload_crl): Close the reader before
33655 the next iteration.
33657 2015-06-17 Werner Koch <wk@gnupg.org>
33659 agent: Print a warning for obsolete options.
33660 + commit 010d26a85bfe15c4aa12eefeab851dbde0609c26
33661 * g10/misc.c (obsolete_scdaemon_option): Move to
33662 * common/miscellaneous.c (obsolete_option): ... here.
33663 * agent/gpg-agent.c (main): Use obsolete_option for the 3 obsolete
33666 2015-06-16 Werner Koch <wk@gnupg.org>
33668 dirmngr: Cleanup zombies and fix hang on shutdown.
33669 + commit 685b782a18adb90bbf78956682e4e7f89fed678c
33670 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Move nfds computation
33671 into the loop. Check the queue also on timeout. Close log_fd and
33672 reader context on EOF or error.
33674 dirmngr: Avoid accessing uninitialized memory in log callback.
33675 + commit 82c72e2db7bc5b633768d59822f2e2a353fa6e32
33676 * dirmngr/dirmngr.c (pid_suffix_callback): Clear int_and_ptr_u before
33678 (start_connection_thread): Ditto.
33679 (handle_connections): Ditto.
33681 2015-06-16 Neal H. Walfield <neal@g10code.com>
33683 Don't prompt for the password multiple times in pinentry loopback mode.
33684 + commit eac081ba1278855fa223b031b527498fec558bc7
33685 * g10/gpg.c (main): If OPT.PINENTRY_MODE is PINENTRY_MODE_LOOPBACK,
33686 clear OPT.PASSPHRASE_REPEAT.
33688 2015-06-16 NIIBE Yutaka <gniibe@fsij.org>
33690 po: Update Japanese Translation.
33691 + commit 15540f6233bd041b06708862a6d9535cbcabe330
33694 2015-06-15 Werner Koch <wk@gnupg.org>
33696 doc: Add defs.inc to BUILT_SOURCES.
33697 + commit ef273a9afc7840b75cfb9b8af78d117b7d672c6a
33700 2015-06-11 Werner Koch <wk@gnupg.org>
33703 + commit 9b7bdfae82f74a147a5dbf0fac0f78cde77a207b
33706 agent: Fix --extra-socket on Windows.
33707 + commit 985918aab025cf0ac9db411b88a47c4b985e5e95
33708 * agent/gpg-agent.c (start_connection_thread): Rename to ...
33709 (do_start_connection_thread): this. Factor nonce checking out to ...
33710 (start_connection_thread_std): this,
33711 (start_connection_thread_extra): this,
33712 (start_connection_thread_browser): and this.
33714 agent: Add experimental option --browser-socket.
33715 + commit 008435b95cbca19adc217178dc9d793eca584345
33716 * agent/agent.h (opt): Add field "browser_socket".
33717 * agent/command.c (cmd_setkeydesc): Use a different message for
33719 * agent/gpg-agent.c (oBrowserSocket): New.
33720 (opts): Add --browser-socket.
33721 (socket_name_browser, redir_socket_name_browser): New.
33722 (socket_nonce_browser): New.
33723 (cleanup): Cleanup browser socket.
33724 (main): Implement option.
33725 (start_connection_thread_browser): New.
33726 (handle_connections): Add arg listen_fd_browser and use it.
33728 2015-06-10 Daiki Ueno <ueno@gnu.org>
33730 agent: Add option --allow-emacs-pinentry.
33731 + commit 691dae270b3b741178912599724d69adabdb48b9
33732 * agent/agent.h (opt): Add field allow_emacs_pinentry.
33733 * agent/call-pinentry.c (start_pinentry): Act upon new var.
33734 * agent/gpg-agent.c (oAllowEmacsPinentry): New.
33735 (opts): Add option --allow-emacs-pinentry.
33736 (parse_rereadable_options): Set this option.
33737 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add new option.
33739 2015-06-09 Werner Koch <wk@gnupg.org>
33741 doc: Do not used fixed file names in the manuals.
33742 + commit 25331bba5554a39d226d32433add7784b2e170b8
33743 * doc/mkdefsinc.c: New.
33744 * doc/Makefile.am: Include cmacros.am.
33745 (EXTRA_DIST): Add mkdefsinc.c defsincdate.
33746 (BUILT_SOURCES): Add defsincdate
33747 (CLEANFILES): Add mkdefsinc and defs.inc.
33748 (mkdefsinc): New rule.
33749 (yat2m-stamp): Depend on defs.inc.
33750 ($(myman_pages) gnupg.7): Ditto.
33751 (gnupg.texi): Remove rule to touch itself.
33753 (defsincdate): New.
33755 * doc/gnupg.texi: Remove inclusion of version.texi. Include defs.inc.
33756 Also include defs.inc in all files used to build man files. Change
33757 fixed directory names to those from defs.inc.
33759 dirmngr: Avoid crash due to an empty crls.d/DIR.txt.
33760 + commit 255dadd76d5a2101d2c5450741326b67253fa9ea
33761 * dirmngr/crlcache.c (check_dir_version): Avoid segv.
33763 2015-06-08 Werner Koch <wk@gnupg.org>
33765 doc: Change the manual source to be only for GnuPG 2.1.
33766 + commit abbefdd04d7ee30218506caeae1fd858569c9f0a
33769 Convey envvar INSIDE_EMACS to the pinentry.
33770 + commit c672572bd50966187cc823585efed673b66ff942
33771 * common/session-env.c (stdenvnames): Add it.
33773 agent: Add command "getinfo std_env_names".
33774 + commit 8425db6a26bf66dad16dfbc26be9af7d272f31d3
33775 * agent/command.c (cmd_getinfo): Add new sub-command.
33777 2015-06-05 NIIBE Yutaka <gniibe@fsij.org>
33779 scd: do_decipher change for OpenPGPcard v3.0.
33780 + commit cf508a1f7f4c8926dc554be68a2d46f5ce272ac0
33781 * scd/app-openpgp.c (do_decipher): Add a header for ECDH.
33783 2015-06-04 Werner Koch <wk@gnupg.org>
33785 gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c.
33786 + commit a4a15195c2a3729025a3ba3439ac8860083fceeb
33787 * g10/tdbio.c (lookup_hashtable): Return GPG_ERR_NOT_FOUND.
33788 * g10/tdbdump.c (import_ownertrust): Test for GPG_ERR_NOT_FOUND.
33789 * g10/trustdb.c (read_trust_record): Ditto.
33790 (tdb_get_ownertrust, tdb_get_min_ownertrust): Ditto.
33791 (tdb_update_ownertrust, update_min_ownertrust): Ditto.
33792 (tdb_clear_ownertrusts, update_validity): Ditto.
33793 (tdb_cache_disabled_value): Ditto.
33795 gpg: Cleanup error code path in case of a bad trustdb.
33796 + commit f170240ef735edc481f60e51527cbb5ee1acfd55
33797 * g10/tdbio.c (tdbio_read_record): Fix returning of the error.
33799 gpg: Fix output in case of a corrupted trustdb.
33800 + commit bf06d04f53296f4b4b73b9360cf1571559bb2295
33801 * g10/tdbdump.c (list_trustdb): Add arg FP and change callers to pass
33803 * g10/tdbio.c (upd_hashtable): On a corrupted trustdb call
33804 list_trustdb only in verbose > 1 mode and let it dump to stderr.
33806 2015-05-29 NIIBE Yutaka <gniibe@fsij.org>
33808 scd: Fix key template of ECC.
33809 + commit e5c69e87beebe99d362ac721ce4ea6b057a30a99
33810 * scd/app-openpgp.c (build_ecc_privkey_template): Use correct value.
33812 2015-05-28 NIIBE Yutaka <gniibe@fsij.org>
33814 g10: Fix a race condition initially creating trustdb.
33815 + commit fe5c6edaed78839303d67e01e141cfc6b5de9aec
33816 * g10/tdbio.c (take_write_lock, release_write_lock): New.
33817 (put_record_into_cache, tdbio_sync, tdbio_end_transaction): Use
33818 new lock functions.
33819 (tdbio_set_dbname): Fix the race.
33820 (open_db): Don't call dotlock_create.
33822 2015-05-27 NIIBE Yutaka <gniibe@fsij.org>
33824 g10: Remove g10/signal.c.
33825 + commit 6cb18a8f975b7ff7ca79c1fb0cddcd4b66be90fb
33826 * g10/signal.c: Remove.
33827 * g10/main.h: Remove old function API.
33828 * g10/tdbio.c: Use new API, even in the dead code.
33830 2015-05-20 Werner Koch <wk@gnupg.org>
33832 agent: Cleanup caching code for command GET_PASSPHRASE.
33833 + commit 23d2ef83cda644c6a83499f9327350d3371e8a17
33834 * agent/command.c (cmd_get_passphrase): Read from the user cache.
33836 2015-05-19 Neal H. Walfield <neal@g10code.com>
33838 agent: When the password cache is cleared, also clear the ext. cache.
33839 + commit 3a9305439b75ccd4446378d4fd87da087fd9c892
33840 * agent/agent.h (agent_clear_passphrase): New declaration.
33841 * agent/call-pinentry.c (agent_clear_passphrase): New function.
33842 * agent/command.c (cmd_clear_passphrase): Call agent_clear_passphrase.
33844 agent: Modify agent_clear_passphrase to support an ext. password cache.
33845 + commit e201c20f25e7bed29088186c5f717d43047a0f4b
33846 * agent/agent.h (agent_get_passphrase): Add arguments keyinfo and
33847 cache_mode. Update callers.
33848 * agent/call-pinentry.c (agent_get_passphrase): Add arguments keyinfo
33849 and cache_mode. If KEYINFO and CACHE_MODE describe a cachable key,
33850 then send SETKEYINFO to the pinentry.
33852 2015-05-19 NIIBE Yutaka <gniibe@fsij.org>
33854 g10: detects public key encryption packet error properly.
33855 + commit c771963140cad7c1c25349bcde27e427effc0058
33856 g10/mainproc.c (proc_pubkey_enc): Only allow relevant algorithms for
33859 2015-05-15 Werner Koch <wk@gnupg.org>
33861 build: Make --disable-gpgsm work.
33862 + commit 43ea8f5d884dd108bb27d8e1610fa28802295a06
33863 * Makefile.am: Always build kbx/
33864 * g10/Makefile.am (AM_CFLAGS): Include KSBA_CFLAGS.
33866 2015-05-12 Werner Koch <wk@gnupg.org>
33869 + commit a67ead6525d7597a9e0b152c5971f6290f7912f3
33872 speedo: Add make option SELFCHECK=0 to build a new release.
33873 + commit 21b0701e2e044894c53ff59d22c5c6a172780c25
33874 * build-aux/getswdb.sh: Add option --skip-selfcheck.
33875 * build-aux/speedo.mk: Add option SELFCHECK.
33877 2015-05-11 Werner Koch <wk@gnupg.org>
33879 common: Cope with AIX problem on number of open files.
33880 + commit 987532b038a2d9b9e76c0de425ee036ca2bffa1b
33881 * common/exechelp-posix.c: Limit returned value for too hight values.
33883 gpg-connect-agent: Fix quoting of internal percent+ function.
33884 + commit 26e2eb98d3d8405b335b43c8e86deacf622cd957
33885 * tools/gpg-connect-agent.c (get_var_ext) <percent, percent+): Also
33888 agent: Add option --no-allow-external-cache.
33889 + commit d7293cb317acc40cc9e5189cef33fe9d8b47e62a
33890 * agent/agent.h (opt): Add field allow_external_cache.
33891 * agent/call-pinentry.c (start_pinentry): Act upon new var.
33892 * agent/gpg-agent.c (oNoAllowExternalCache): New.
33893 (opts): Add option --no-allow-external-cache.
33894 (parse_rereadable_options): Set this option.
33896 agent: Add strings for use by future Pinentry versions.
33897 + commit 02d5e1205489aa5027a87a64552eaf15984dc22d
33898 * agent/call-pinentry.c (start_pinentry): Add more strings.
33900 agent: Add option --debug-pinentry.
33901 + commit 14232c3870c5ef5d2fa15e8ed3f302b1ba29d25c
33902 * agent/gpg-agent.c (oDebugPinentry): New.
33903 (opts): Add --debug-pinentry.
33904 (parse_rereadable_options): Set that option.
33905 * agent/call-pinentry.c (start_pinentry): Pass option to
33908 2015-05-08 Werner Koch <wk@gnupg.org>
33910 gpg: Avoid cluttering stdout with trustdb info in verbose mode.
33911 + commit b03a2647299a6c8764a2574590cbaccdff9e497d
33912 * g10/trustdb.c (validate_keys): Call dump_key_array only in debug
33915 gpg: Fix wrong output in list mode.
33916 + commit 7039f87375b3c89d6e63837b811ed2be71c8d9db
33917 * g10/parse-packet.c (parse_gpg_control): Replace puts by es_fputs to
33920 gpg: New command --quick-adduid.
33921 + commit 64e809b791645f343feb69112baba8e2700e454b
33922 * g10/keygen.c (ask_user_id): Factor some code out to ...
33923 (uid_already_in_keyblock): new.
33924 (generate_user_id): Add arg UIDSTR. Fix leaked P.
33925 * g10/keyedit.c (menu_adduid): Add new arg uidstring. Adjust caller.
33926 (keyedit_quick_adduid): New.
33927 * g10/gpg.c (aQuickAddUid): New.
33928 (opts): Add command --quick-adduid.
33929 (main): Implement that.
33931 gpg: Add push/pop found state feature to keydb.
33932 + commit 3c439c0447f8a7468a61bbdc4c9a101ef2451dcb
33933 * g10/keydb.c (keydb_handle): Add field saved_found.
33934 (keydb_new): Init new field.
33935 (keydb_push_found_state, keydb_pop_found_state): New.
33936 * g10/keyring.c (kyring_handle): Add field saved_found.
33937 (keyring_push_found_state, keyring_pop_found_state): New.
33939 gpg: Minor code merging in keyedit.
33940 + commit b772e459fa91cdc7facd95227ebc0faba20a7003
33941 * g10/keyedit.c (fix_keyblock): Rename to fix_key_signature_order.
33942 (fix_keyblock): New. Call fix_key_signature_order and other fix
33944 (keyedit_menu): Factor code out to new fix_keyblock.
33945 (keyedit_quick_sign): Ditto. Check for primary fpr before calling
33948 2015-05-07 Werner Koch <wk@gnupg.org>
33950 agent: Minor change for 56b5c9f.
33951 + commit 436f2060721e997479a9dd5be8dfc73627dd49c9
33952 * agent/call-pinentry.c (agent_askpin): Move option setting to ...
33953 (start_pinentry): here. Fix error code check.
33955 2015-05-07 Kristian Fiskerstrand <kf@sumptuouscapital.com>
33957 dirmngr: Fix segfault in ldap engine.
33958 + commit d0d4984cfec54dee727b9e9d33d09e33c6f2e182
33959 (ks-engine-ldap.c) Fix segfault caused by missing check whether uri is
33962 2015-05-07 Neal H. Walfield <neal@g10code.com>
33964 agent: Improve support for externally cached passwords.
33965 + commit 56b5c9f94f2e55d096be585ed061ccf1c9ec0de6
33966 * agent/call-pinentry.c (PINENTRY_STATUS_PASSWORD_FROM_CACHE): New
33968 (pinentry_status_cb): Add it to *FLAGS if PASSWORD_FROM_CACHE was
33970 (agent_askpin): Pass "OPTION allow-external-password-cache" to the
33971 pinentry. Always pass SETKEYINFO to the pinentry. If there is no
33972 stable identifier, then use "--clear". If the password is incorrect
33973 and PINENTRY_STATUS_PASSWORD_FROM_CACHE is set in *PINENTRY_STATUS,
33974 then decrement PININFO->FAILED_TRIES.
33976 agent: Or in the value; don't overwrite the variable.
33977 + commit 74944330ba7229ed0cbe23cc0f573962a444bd07
33978 * agent/call-pinentry.c (pinentry_status_cb): Or in
33979 PINENTRY_STATUS_CLOSE_BUTTON; don't overwrite *FLAG.
33981 agent: Avoid magic numbers. Use more accurate names.
33982 + commit d3b5cad2346bd5747789dc62d7804fa5c15f4f3b
33983 * agent/call-pinentry.c (PINENTRY_STATUS_CLOSE_BUTTON): New constant.
33984 (PINENTRY_STATUS_PIN_REPEATED): Likewise.
33985 (close_button_status_cb): Rename from this...
33986 (pinentry_status_cb): ... to this. Use the constants.
33987 (agent_askpin): Rename local variable from close_button to
33988 pinentry_status. Use symbolic constants rather than magic numbers.
33990 2015-05-07 Werner Koch <wk@gnupg.org>
33992 gpg: Improve 'General key info' line of --card-status.
33993 + commit 874ef16e70ab750db7b153f17a7e859a0db6a2f1
33994 * g10/keylist.c (print_pubkey_info): Print either "pub" or "sub".
33996 * g10/getkey.c (get_pubkey_byfprint): Add optional arg R_KEYBLOCK.
33997 * g10/keyid.c (keyid_from_fingerprint): Adjust for change.
33998 * g10/revoke.c (gen_desig_revoke): Adjust for change.
33999 * g10/card-util.c (card_status): Simplify by using new arg. Align
34002 * g10/card-util.c (card_status): Remove not used GnuPG-1 code.
34004 gpg: Fix regression not displaying the card serial number.
34005 + commit 173b26c8f83a3c623165a96c315bf9ed4b90edcc
34006 * g10/call-agent.c (keyinfo_status_cb): Detect KEYINFO.
34008 2015-05-06 Werner Koch <wk@gnupg.org>
34010 speedo,w32: Install a native pinentry.
34011 + commit 154abaf3c97dae43ba972e4482680a287f3e5c39
34012 * build-aux/speedo.mk: Always build pinentry for w32.
34013 (speedo_pkg_pinentry_configure): Adjust to modern pinentry.
34014 * build-aux/speedo/w32/inst.nsi: Install native pinentry under the
34015 name pinentry-basic.exe.
34017 2015-05-01 NIIBE Yutaka <gniibe@fsij.org>
34019 g10: fix cmp_public_key.
34020 + commit f77fd572db658959fa40aa8c181be919e688b707
34021 * g10/free-packet.c (cmp_public_keys): Compare opaque
34022 data at the first entry of the array when it's unknown algo.
34024 2015-04-30 NIIBE Yutaka <gniibe@fsij.org>
34026 scd: PC/SC reader selection by partial string match.
34027 + commit 01a2a61bc4b34817c4216888265f65d59a33dad3
34028 * scd/apdu.c (open_pcsc_reader_direct): Partial string match.
34030 2015-04-24 Werner Koch <wk@gnupg.org>
34032 common: Remove JNLIB from boiler plate (jnlib merge).
34033 + commit 172b6193488f433a206fd88f85d8c4a5d1eb7fdf
34034 * common/README.jnlib: Remove.
34036 common: Rename log and gcc attribute macros (jnlib merge).
34037 + commit 26d7e0d7accf269c15fb4bc23e5e80580bfb7fe3
34038 * common/logging.h: Rename JNLIB_LOG_* to GPGRT_LOG_*.
34039 * common/mischelp.h: Rename JNLIB_GCC_* to GPGRT_GCC_*.
34041 common: Remove two JNLIB_ macros (jnlib merge).
34042 + commit 575230d91bba95697518da418ea0e8712f889a0f
34043 * configure.ac: Merge seperate jnlib checks.
34044 (HAVE_JNLIB_LOGGING): Remove.
34045 * common/logging.c, common/simple-pwquery.c (JNLIB_NEED_AFLOCAL):
34046 Rename to GNUPG_COMMON_NEED_AFLOCAL. Change all tests.
34048 common: Remove libjnlib-config.h (jnlib merge).
34049 + commit 17bcd087082d01c48c60ff20d7f9a40f34c6969f
34050 * common/libjnlib-config.h: Remove.
34051 * common/common-defs.h (getenv) [HAVE_GETENV]: New. From removed
34053 (getpid) [HAVE_W32CE_SYSTEM]: New. From removed header.
34054 * common/argparse.c: Include util.h and common-defs.h. Replace
34055 jnlib_ macro names for non-GNUPG builds by x* names.
34056 * common/dotlock.c: Ditto.
34057 * common/logging.c: Include util.h and common-defs.h. Replace jnlib_
34058 symbol names by x* names.
34059 * common/strlist.c: Ditto.
34060 * common/utf8conv.c: Ditto.
34061 * common/w32-reg.c: Ditto.
34062 * common/mischelp.c: Ditto. Also remove _jnlib_free.
34063 * common/stringhelp.c: Ditto.
34064 (JNLIB_LOG_WITH_PREFIX): Do not depend on this macro.
34065 * common/logging.h (JNLIB_LOG_WITH_PREFIX): Do not depend on this
34068 2015-04-23 Werner Koch <wk@gnupg.org>
34070 gpg: Move all DNS access to Dirmngr.
34071 + commit 154f3ed2bf64de801ae0f9796338a2767ec6357b
34072 * common/dns-cert.h: Move to ../dirmngr/.
34073 * common/dns-cert.c: Move to ../dirmngr/. Change args to return the
34075 * common/t-dns-cert.c: Move to ../dirmngr/.
34076 * common/pka.c, common/pka.h, common/t-pka.c: Remove.
34078 * dirmngr/server.c (data_line_cookie_write): Factor code out to
34079 data_line_write and make it a wrapper for that.
34080 (data_line_write): New.
34081 (cmd_dns_cert): New.
34082 (register_commands): Register new command.
34084 * g10/Makefile.am (LDADD): Remove DNSLIBS.
34085 * g10/call-dirmngr.c (dns_cert_parm_s): New.
34086 (dns_cert_data_cb, dns_cert_status_cb): New.
34087 (gpg_dirmngr_dns_cert): New.
34088 (gpg_dirmngr_get_pka): New.
34089 * g10/gpgv.c (gpg_dirmngr_get_pka): New dummy function.
34090 * g10/keyserver.c (keyserver_import_cert): Replace get_dns_cert by
34091 gpg_dirmngr_dns_cert.
34092 (keyserver_import_pka): Replace get_pka_info by gpg_dirmngr_get_pka.
34093 * g10/mainproc.c: Include call-dirmngr.h.
34094 (pka_uri_from_sig): Add CTX arg. Replace get_pka_info by
34095 gpg_dirmngr_get_pka.
34097 common: Minor change of hex2str to allow for embedded nul.
34098 + commit ce11cc39ea7e011040debc9339a2310a714efe7e
34099 * common/convert.c (hex2str): Set ERRNO. Return adjusted COUNT.
34101 2015-04-23 NIIBE Yutaka <gniibe@fsij.org>
34103 common: removal of t-support.c from t_jnlib_src.
34104 + commit a7264e3a6a83189a9e43edf5e99f5ac7ee42a2ab
34105 * common/Makefile.am (t_jnlib_src): Remove t-support.c.
34107 2015-04-21 Werner Koch <wk@gnupg.org>
34109 gpg: Make keyserver-option http_proxy work.
34110 + commit c4d98734c5df39f57a71f0ec1c0c80e82ff08508
34111 * g10/options.h (opt): Add field keyserver_options.http_proxy.
34112 * g10/keyserver.c (warn_kshelper_option): Add arg noisy.
34113 (parse_keyserver_options): Parse into new http_proxy field.
34114 * g10/call-dirmngr.c (create_context): Send the http-proxy option.
34116 common: Make proper use of http proxy parameter.
34117 + commit 54e55149f2af96eff08bfd6f70ef13d007fb58c7
34118 * common/http.c (is_hostname_port): New.
34119 (send_request): Fix proxy name parsing.
34121 dirmngr: Add http proxy support for keyservers.
34122 + commit a0dead5edce07838cf5ff3ec7205a3bff2a6ef70
34123 * dirmngr/dirmngr.h (server_control_s): Add field http_proxy.
34124 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Copy http_proxy value
34126 (dirmngr_deinit_default_ctrl): New.
34127 (main): Call dirmngr_deinit_default_ctrl.
34128 * dirmngr/server.c (start_command_handler): Ditto.
34129 (option_handler): Add option "http-proxy".
34130 * dirmngr/crlfetch.c (crl_fetch): Take http_proxy from CTRL.
34131 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
34132 * dirmngr/ks-engine-hkp.c (send_request): Add proxy support.
34133 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
34135 gpg: Do not use honor-keyserver-url sub-option by default.
34136 + commit 727fe4f8d7d5fc3eac0b0aa6fafa4a314686d7dc
34139 gpg: Make preferred keyservers work.
34140 + commit ae0d65f86413a82a40cf68e08aaeca405eee8c78
34141 * g10/call-dirmngr.c (dirmngr_local_s): Add field set_keyservers_done.
34142 (create_context): Move keyserver setting to ...
34143 (open_context): here.
34144 (clear_context_flags): New.
34145 (gpg_dirmngr_ks_get): Add arg override_keyserver.
34146 * g10/keyserver.c (keyserver_refresh): Improve diagnostics.
34147 (keyserver_get_chunk): Ditto. Pass OVERRIDE_KEYSERVER to ks_get.
34149 gpg: Update sub-options of --keyserver-options.
34150 + commit da1990bac71f6447d8ebd169c3b3b186e9f287d9
34151 * g10/options.h (KEYSERVER_HTTP_PROXY): New.
34152 (KEYSERVER_USE_TEMP_FILES, KEYSERVER_KEEP_TEMP_FILES): Remove.
34153 (KEYSERVER_TIMEOUT): New.
34154 * common/keyserver.h (KEYSERVER_TIMEOUT): Remove.
34155 * g10/keyserver.c (keyserver_opts): Remove obsolete "use-temp-files"
34156 and "keep-temp-files". Add "http-proxy" and "timeout".
34157 (parse_keyserver_options): Remove 1.2 compatibility option
34158 "honor-http_proxy". Remove "use-temp-files" and "keep-temp-files"
34161 2015-04-14 Werner Koch <wk@gnupg.org>
34163 agent: Send the new SETKEYINFO command to the Pinentry.
34164 + commit 2180845959839705200e3172dbafc94b70b9007f
34165 * agent/call-pinentry.c (agent_askpin): Add args keyinfo and
34166 cache_mode. Change all callers to pass (NULL,0) for them. Send
34167 SETKEYINFO command.
34168 * agent/findkey.c (unprotect): Pass the keygrip and the cache_mode for
34171 2015-04-14 NIIBE Yutaka <gniibe@fsij.org>
34173 scd: better handling of extended APDU.
34174 + commit 971d558e862db878a7310e06ed7116dbe36886ab
34175 * scd/apdu.c (send_le): Bug fix for not append Z when lc<0&&le<0.
34176 * scd/app-common.h (struct app_ctx_s): Use bit fields for flags.
34177 * scd/ccid-driver.c (CCID_MAX_BUF): New. Only for OpenPGPcard.
34178 (struct ccid_driver_s): New field of max_ccid_msglen.
34180 (parse_ccid_descriptor): Initialize max_ccid_msglen.
34181 (ccid_transceive_apdu_level): Implement sending extended APDU in
34182 chain of CCID message.
34184 2015-04-13 Werner Koch <wk@gnupg.org>
34186 gpg: Fix NULL-segv due to invalid imported data.
34187 + commit 25fce93ba19d997e234a674d5cc98df82c5b5496
34188 * g10/free-packet.c (my_mpi_copy): New.
34189 (copy_public_key, copy_signature): Use instead of mpi_copy.
34191 2015-04-13 Neal H. Walfield <neal@g10code.com>
34193 dirmngr: If LDAP is not enable, don't build the LDAP bits.
34194 + commit 5cde5bf37339cdeb0bd0a33d39477382eafebede
34195 * dirmngr/Makefile.am (dirmngr_SOURCES): Only include
34196 ks-engine-ldap.c, ldap-parse-uri.c and ldap-parse-uri.h if USE_LDAP
34198 (module_tests): Only add t-ldap-parse-uri if USE_LDAP is TRUE.
34199 * dirmngr/ks-action.c: Only include "ldap-parse-uri.h" if USE_LDAP is
34201 (ks_action_help): Don't invoke LDAP functionality if USE_LDAP is not
34203 (ks_action_search): Likewise.
34204 (ks_action_get): Likewise.
34205 (ks_action_put): Likewise.
34206 * dirmngr/server.c: Only include "ldap-parse-uri.h" if USE_LDAP is
34208 (cmd_keyserver): Don't invoke LDAP functionality if USE_LDAP is not
34211 2015-04-13 Werner Koch <wk@gnupg.org>
34213 common: Do without nested fucntions to support non-gcc.
34214 + commit 454f60399c7318fffd3de2afadd58c7a490178bd
34215 * common/t-stringhelp.c (test_strsplit): Remove nested function.
34217 2015-04-11 Werner Koch <wk@gnupg.org>
34220 + commit b1e1959d59a12b53c016ca9c95aee3a62c0bfc00
34223 2015-04-11 Yuri Chornoivan <yurchor@ukr.net>
34225 po: Update Ukrainian translation.
34226 + commit 896f438967b66b4836419aa737c706ced6b6454a
34229 2015-04-11 Ineiev <ineiev@gnu.org>
34231 po: Update and review Russian translation.
34232 + commit b69d7064f30c38ffe18e71de6a0fc14b5da0452f
34235 2015-04-10 Werner Koch <wk@gnupg.org>
34237 dirmngr,w32: Make it build for Windows.
34238 + commit c8bb5000d4c86a055348dc08352f573c599743a7
34239 * dirmngr/Makefile.am (t_common_ldadd): Add missing libs.
34241 Remove obsolete directories from AM_CPPFLAGS.
34242 + commit 67158ff155ef52fd54a6bbe680551c0e12b31e69
34245 dirmngr,w32: Replace functions not available under Windows.
34246 + commit 0fb224c2c5e0c6770d4a6044d62d84f6bbc1b26b
34247 * dirmngr/ks-engine-ldap.c (extract_attributes): Replace isoptime and
34250 common: Add new function gnupg_gmtime.
34251 + commit 5d60c7f7e05a06e46e23bafe61cef09ad32aa998
34252 * common/gettime.c (gnupg_gmtime): New.
34253 (gnupg_get_isotime): Use it. Also take care of an gmtime_t returning
34256 common: Add new function isodate_human_to_tm.
34257 + commit f6670100b7a15b2071c2e4062f5c5a678f2a30f6
34258 * common/gettime.c (isotime_human_p): Add arg date_only.
34259 (isodate_human_to_tm): New.
34260 * common/t-gettime.c (test_isodate_human_to_tm): New.
34261 (main): Call new test.
34263 dirmngr,w32: Avoid name clash with existing function.
34264 + commit 6ad95fe6f1f130c8f6d139a9bd57fc4a0d38292b
34265 * dirmngr/ks-engine-ldap.c (ldap_connect): Rename to my_ldap_connect.
34267 gpgparsemail: Fix last commit (3f2bdac)
34268 + commit 9433661419043431a6cfc7d84c8450e0b2f6c353
34269 * tools/rfc822parse.c (parse_field): Replace break by goto.
34271 2015-04-09 Werner Koch <wk@gnupg.org>
34273 gpgparsemail: Fix case of zero length continuation lines.
34274 + commit 3fbeba64a8bfb2b673230c124a3d616b6568fd2f
34275 * tools/rfc822parse.c (parse_field): Loop after continuation line.
34277 2015-04-08 Werner Koch <wk@gnupg.org>
34279 sm: Fix certificate lookup in dirmngr cache.
34280 + commit 6619ead2cfd2abcb95b66dc70622fdeef624fb8a
34281 * sm/call-dirmngr.c (get_cached_cert): Fix typo in LOOKUP command.
34283 2015-04-06 Werner Koch <wk@gnupg.org>
34285 gpg: Print the user id in --fast-list-mode.
34286 + commit c2383407bba5eefea486464a31e02846124c9da5
34287 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Change.
34289 gpg: Prepare to pass additional context to the list functions.
34290 + commit 67a58118ab6171c0cf28b65a39973062690d1313
34291 * g10/keylist.c (struct sig_stats): Rename to keylist_context and add
34293 (keylist_context_release): New.
34294 (list_all): Set listctx.check_sigs and call release func.
34296 (locate_one): Ditto.
34297 (list_keyblock_print): Use .check_sigs field. Repalce arg opaque by
34299 (list_keyblock): Ditto. Make static.
34300 (list_keyblock_direct): New.
34301 * g10/keygen.c (do_generate_keypair): Replace list_keyblock by
34302 list_keyblock_direct.
34304 gpg: Merge duplicated code for get_user_id et al.
34305 + commit f577d5c1a747d673fa1d5c012ce3e3b78b699c6a
34306 * g10/getkey.c (get_user_id_string): Add args mode and r_LEN.
34307 (get_user_id_string_native): Add new args.
34308 (get_long_user_id_string, get_user_id): Rewrite using
34309 get_user_id_string.
34311 gpg: Add new option --debug-iolbf.
34312 + commit c581ed717ad2cc4be90c46253baa44a0d3ba5b80
34313 * g10/gpg.c (oDebugIOLBF): new.
34314 (opts): Add --debug-iolbf.
34315 (main): Set option.
34317 Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG.
34318 + commit 24a75201da6be72edf85b96dbc0c01c747d02c6a
34319 * g10/options.h (DBG_EXTPROG_VALUE): Separate from DBG_IPC_VALUE.
34321 Fix use of DBG_CACHE and DBG_LOOKUP.
34322 + commit 2f099eb62ac6491675bbcccaca4e076b2d8e7ea0
34323 * dirmngr/dirmngr.h (DBG_LOOKUP_VALUE): Change to 8192.
34324 * g10/options.h (DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
34325 * g10/getkey.c: Use DBG_LOOKUP instead of DBG_CACHE at most places.
34327 gpg: Rename a debug macro.
34328 + commit 4de8a58e44262a25564e2acef8c8865d1755982e
34329 * g10/options.h (DBG_CIPHER_VALUE): Rename to DBG_CRYPTO_VALUE.
34330 (DBG_CIPHER): Rename to DBG_CRYPTO.
34332 2015-04-05 Werner Koch <wk@gnupg.org>
34334 gpg: Fix DoS while parsing mangled secret key packets.
34335 + commit d901efcebaefaf6eae4a9b9aa8f0c2c055d3518a
34336 * g10/parse-packet.c (parse_key): Check PKTLEN before calling mpi_read
34339 2015-04-03 NIIBE Yutaka <gniibe@fsij.org>
34341 g10: Fix keytocard.
34342 + commit f82c4a6d0d76e716b6a7b22ca964fa2da1f962a0
34343 g10/call-agent.h (agent_scd_learn): Add FORCE option.
34344 g10/call-agent.c (agent_scd_learn): Implement FORCE option.
34345 g10/keygen.c (gen_card_key): Follow the change of option.
34346 g10/card-util.c (change_pin, card_status, factory_reset): Likewise.
34347 g10/keyedit.c (keyedit_menu): Update private key storage by
34350 agent: Add --force option for LEARN.
34351 + commit 4ffadb74b3ada8a5d69ef8d87f4326df9bd97e97
34352 * agent/command.c (cmd_learn): Handle --force option.
34353 (cmd_keytocard): Don't update key storage file.
34354 * agent/agent.h (agent_handle_learn): Add FORCE.
34355 * agent/learncard.c (agent_handle_learn): Implement FORCE to update
34358 2015-03-31 Neal H. Walfield <neal@g10code.com>
34360 dirmngr: Don't use alloca.
34361 + commit d0ff2ee04187fbedacbe4d3884ee75d957a0b8c6
34362 * dirmngr/ks-engine-ldap.c (ks_ldap_put): Replace use of alloca with
34365 dirmngr: Simplify truncation of long strings in debug code.
34366 + commit 802eec0ca49b92104c92f18c9a6a04c34de74168
34367 * dirmngr/ks-engine-ldap.c (modlist_dump): Simplify truncation of long
34370 dirmngr: Use a better error code.
34371 + commit 7f6d7948c1e56e09c1bdaa5143e1b5558c4376dd
34372 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): On error, return
34373 GPG_ERR_GENERAL, not GPG_ERR_ASS_GENERAL.
34375 dirmngr: Better encapsulate the keyservers variable.
34376 + commit 348c520040a31f5c322183c0654a34978e2baf6f
34377 * dirmngr/dirmngr.h (struct server_control_s): Move field keyservers
34379 * dirmngr/server.c (struct server_local_s): ... to here. Update
34381 * dirmngr/ks-action.h (ks_action_resolve): Add argument keyservers.
34382 (ks_action_search): Likewise.
34383 (ks_action_get): Likewise.
34384 (ks_action_put): Likewise.
34385 * dirmngr/ks-action.c (ks_action_resolve): Add argument keyservers.
34386 Use it instead of ctrl->keyservers.
34387 (ks_action_search): Likewise.
34388 (ks_action_get): Likewise.
34389 (ks_action_put): Likewise.
34391 2015-03-28 Neal H. Walfield <neal@g10code.de>
34393 gpg: Only use the last specified keyserver.
34394 + commit f26ba14028d34845ae10aae552b90681907e377d
34395 * g10/gpg.c (main): Only use the last specified keyserver.
34397 2015-03-25 Werner Koch <wk@gnupg.org>
34399 dirmngr: Fix resource leaks and check rare errors.
34400 + commit bec10ae4b5a870303c800cdf3cd906044613fc2d
34401 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Fix resource
34403 (ks_ldap_search): Check error from es_fopenmem. Use LDAP_ERR where
34405 (modlist_dump): Check error from es_fopenmem.
34406 (uncescape): s/int/size_t/. Use existing macros.
34407 (extract_attributes): Use existing trim function.
34408 (ks_ldap_put): Do not segv on error from modlist_dump.
34410 dirmngr: Minor cleanups.
34411 + commit 6c701af121782c2feb4ee51e559a7420df00471f
34412 * dirmngr/ks-engine-ldap.c [__riscos__]: Remove doubled util.h.
34413 (ldap_to_gpg_err): s/GPG_ERR_GENERAL/GPG_ERR_INTERNAL/.
34414 (tm2ldaptime): Use snprintf.
34415 (ldap_connect): Get error code prior to log_error and and use modern
34416 function. Use xfree, xtrustrdup etc.
34417 (modlist_lookup): Use GNUPG_GCC_A_USED.
34418 (modlist_free): Use xfree.
34420 common: Add macro GNUPG_GCC_A_USED.
34421 + commit 99ef9cd7f589b51921bfbe8d52735c104ef260e3
34422 * common/util.h (GNUPG_GCC_A_USED): New.
34424 sm: Change default algos to SHA256 (CSR) and AES128 (bulk encryption).
34425 + commit 1e4d8ddbe3ad7ee8f1c1d1798694d91f792776c0
34426 * sm/certreqgen.c (create_request): Change default hash algo.
34427 * sm/gpgsm.c (DEFAULT_CIPHER_ALGO): Change default bulk cipher algo.
34429 2015-03-24 Werner Koch <wk@gnupg.org>
34431 gpg,w32: Handle forward slash in --keyring option.
34432 + commit bdd22e3a0846d38a0b6cdb822476ad2f15d03455
34433 * g10/keydb.c (keydb_add_resource): Allow forward slash under Windows.
34435 2015-03-23 Neal H. Walfield <neal@g10code.de>
34437 Improve documentation for ks_hkp_get.
34438 + commit 7a56b6b3aa8b7a07bd80a3fcd5114bd1af359fa3
34439 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Improvement documentation.
34441 Improve documenation of http_parse_uri.
34442 + commit 00a16cf49336ee0b4ce21eb05a79db955af053e0
34443 * common/http.c (http_parse_uri): Improve documentation.
34445 Add support to talking to LDAP key servers.
34446 + commit 51341badb623927f2a358588c725a356fc77dbe7
34447 * g10/call-dirmngr.c (record_output): New function.
34448 (ks_put_inq_cb): Use it here to generate a --with-colons like output
34449 instead of a custom format.
34450 * dirmngr/ks-action.c: Include "ldap-parse-uri.h".
34451 (ks_action_help): If the provided URI is an LDAP URI, then use
34452 ldap_parse_uri to parse. Call ks_ldap_help.
34453 (ks_action_search): If passed an LDAP URI, then call ks_ldap_search.
34454 (ks_action_get): Likewise.
34455 (ks_action_put): Likewise. Also, change data from a 'const void *' to
34456 a 'void *' and add info and infolen parameters. Add note that
34457 function may modify DATA.
34458 * dirmngr/ks-action.h (ks_action_put): Update declaration accordingly.
34459 * dirmngr/server.c: Include "ldap-parse-uri.h".
34460 (cmd_keyserver): If ITEM->URI is an LDAP URI, parse it using
34462 (hlp_ks_put): Improve documentation.
34463 (cmd_ks_put): Also pass info and infolen to ks_action_put. Improve
34465 * dirmngr/ks-engine.h (ks_ldap_help): New declaration.
34466 (ks_ldap_search): Likewise.
34467 (ks_ldap_get): Likewise.
34468 (ks_ldap_put): Likewise.
34469 * dirmngr/ks-engine-ldap.c: New file.
34470 * dirmngr/Makefile.am (dirmngr_SOURCES): Add ks-engine-ldap.c,
34471 ldap-parse-uri.c and ldap-parse-uri.h.
34472 (dirmngr_LDADD) [USE_LDAP]: Add $(ldaplibs).
34474 Import _gpgme_parse_timestamp from gpgme as parse_timestamp.
34475 + commit 81e83060856f02f6cfc7b48f8032e0cf14fc6c68
34476 * common/gettime.h (parse_timestamp): New declaration.
34477 * common/gettime.c (_win32_timegm): New function imported from
34478 gpgme/src/conversion.c:_gpgme_timegm.
34479 (parse_timestamp): New function imported from
34480 gpgme/src/conversion.c:_gpgme_parse_timestamp.
34482 Move copy_stream function to misc.c.
34483 + commit 9e79a15f74c428624b0049a3f6a077c1bc7c731d
34484 * dirmngr/ks-action.c (copy_stream): Move function from here...
34485 * dirmngr/misc.c (copy_stream): ... to here and drop the static
34487 * dirmngr/misc.h (copy_stream): Add declaration.
34489 Move armor_data to misc.c.
34490 + commit 63552852bf191985b4b55aa524bc397c5b1d1515
34491 * dirmngr/ks-engine-hkp.c (armor_data): Move function from here...
34492 * dirmngr/misc.c (armor_data): ... to here and drop static qualifier.
34493 * dirmngr/misc.h: New declaration.
34495 Add new LDAP utility functions.
34496 + commit 1a75b7c39f0a84f518711438565645a34fb2673f
34497 * dirmngr/Makefile.am (module_tests): New variable.
34498 (noinst_PROGRAMS): New primary. Set it to $(module_tests).
34499 (TESTS): New variable. Set it to $(module_tests).
34500 (t_common_src): New variable.
34501 (t_common_ldadd): Likewise.
34502 (t_ldap_parse_uri_SOURCES): New primary.
34503 (t_ldap_parse_uri_LDADD): Likewise.
34504 * dirmngr/ldap-parse-uri.c: New file.
34505 * dirmngr/ldap-parse-uri.h: Likewise.
34506 * dirmngr/t-ldap-parse-uri.c: Likewise.
34507 * dirmngr/t-support.h: Likewise.
34509 Add new function uri_query_lookup.
34510 + commit e23b3ba5ffd3134a72da176a039e4d6c4f3ff595
34511 * common/http.h (uri_query_lookup): New declaration.
34512 * common/http.c (uri_query_lookup): The corresponding implementation.
34514 Add new function strlist_find.
34515 + commit 79907ad256f5b84f36cbebdc92e5a05d9e266557
34516 * common/strlist.h (strlist_find): New declaration.
34517 * common/strlist.c (strlist_find): New function.
34519 common: Add new helper function, strsplit.
34520 + commit b18ffcb81a3839dbf09603d70ebb8b80f65892d3
34521 * common/stringhelp.h (strsplit): New declaration.
34522 * common/stringhelp.c (strsplit): New function.
34523 * common/t-stringhelp.c (test_strsplit): New function.
34524 (main): Call it here.
34526 2015-03-20 Werner Koch <wk@gnupg.org>
34528 gpg: Consider a mailbox only userid in mail search mode.
34529 + commit bebab54027d8c63574a2680c60481cfe9b88c240
34530 * kbx/keybox-search.c: Include mbox-util.h.
34531 (blob_cmp_mail): Improve OpenPGP uid parsing.
34533 common: Add function is_valid_mailbox_mem.
34534 + commit a0eb2e4e8cef9ca6a5dfbae6440fa6cd583d0805
34535 * common/mbox-util.c (mem_count_chr): New.
34537 (has_invalid_email_chars): Change args to work on a buffer.
34538 (is_valid_mailbox_mem): New.
34539 (is_valid_mailbox): Rewrite to use is_valid_mailbox_mem.
34541 gpg: Find keys using mail addresses with garbage after the '>'
34542 + commit 783a4a98378fa1aa222d5cb7427dd37151feb08b
34543 * kbx/keybox-search.c (blob_cmp_mail): Stop comparing at the '>'.
34545 common: Fix syntax error when building with gnutls.
34546 + commit 5136e39c6466de90697153ea253c4b540c1f7d1a
34547 * common/http.c (send_request): Add missing comma.
34549 2015-03-19 Werner Koch <wk@gnupg.org>
34551 gpg: Emit status line NEWSIG before signature verification starts.
34552 + commit e7ddaad0fd2c8774a1d3367adfaa68014eaf65de
34553 * g10/mainproc.c (check_sig_and_print): Emit STATUS_NEWSIG.
34555 agent: Compute correct MPI length header for protected ECC keys.
34556 + commit cf83ff01fce3ddcbde6d97dffa0db6f277588e25
34557 * agent/cvt-openpgp.c (apply_protection): Strip leading zeroes from
34558 opaque MPIs to comply with the OpenPGP spec.
34560 hkps: Fix host name verification when using pools.
34561 + commit dc10d466bff53821f23d2cb4814c259d40c5d9c5
34562 * common/http.c (send_request): Set the requested for SNI.
34563 * dirmngr/ks-engine-hkp.c (map_host): Return the poolname and not
34564 the selecting a host.
34566 Define replacement error codes from libgpg-error 1.19.
34567 + commit 28bb3ab686c1c994f67a92b6846b3726c58a0bc3
34568 * common/util.h: Add GPG_ERR_LDAP codes for libgpg-error < 1.19.
34570 2015-03-17 Andre Heinecke <aheinecke@intevation.de>
34572 gpgtar: Fix extracting files with !(size % 512)
34573 + commit 6cbbb0bec98e1acefc4c7163cc41a507469db920
34574 * tools/gpgtar-extract.c (extract_regular): Handle size multiples
34577 2015-03-17 Werner Koch <wk@gnupg.org>
34579 common: Add feature to ease using argparse's usage().
34580 + commit 9078b75a73600fc6b7b5502ceee8de032bb9c446
34581 * common/argparse.c (show_help): Take care of flag value
34584 common: Allow standalone build of argparse.c.
34585 + commit eb5f2c0af6691229300ac120ee44815cb27ed38e
34586 * common/argparse.h: Remove types.h - not required.
34587 * common/argparse.c: Change to allow standalone use.
34589 2015-03-16 Werner Koch <wk@gnupg.org>
34591 gpg: Create all MPIs with RFC-4880 correct length headers.
34592 + commit ab17f7b6c392782718f57eaea94fc18a0ff49389
34593 * g10/build-packet.c (gpg_mpi_write): Strip leading zeroes.
34595 gpg: Allow printing of MPI values in --list-mode.
34596 + commit bcc8250bc5b9a357c6d1444f03e334edec573ede
34597 * g10/parse-packet.c (set_packet_list_mode): Set mpi_print_mode.
34598 * g10/misc.c (mpi_print): Do not print an extra leading zero.
34600 gpg: Fix broken write of opaque MPI length header.
34601 + commit 8bc1debfefb7cd4b0be724317793d59dea37d677
34602 * g10/build-packet.c (gpg_mpi_write): Use a char array for the length.
34604 2015-03-15 Werner Koch <wk@gnupg.org>
34606 gpg: Fix possible dead code elimination.
34607 + commit 1a9f13bc663daa75c5009f6a0bf7d7483f12cce0
34608 * g10/encrypt.c: Change condition for detecting a real file.
34610 g13: Fix pointer wrap check.
34611 + commit 4bc3a2e954afc2ba7dbe79ba5f740184b7d4cd73
34612 * g13/utils.c (find_tuple, next_tuple): Cast pointer to size_t before
34613 doing an overflow check.
34615 agent: Remove useless conditions in command.c.
34616 + commit 3a35c9740ab792068ec4b3732ecfaa17bf4fc7f0
34617 * agent/command.c (cmd_setkeydesc): Remove NULL check.
34618 (cmd_get_passphrase): Ditto.
34619 (cmd_clear_passphrase): Ditto.
34620 (cmd_get_confirmation): Ditto.
34621 (cmd_getval): Ditto.
34622 (cmd_putval): Ditto.
34624 agent: Fix length test in sshcontrol parser.
34625 + commit 3529dd8bb5bafc4e02915648d5f409bd27a9cc37
34626 * agent/command-ssh.c (ssh_search_control_file): Check S before
34629 agent: Remove useless conditions.
34630 + commit 95415bdec77a608e6052ba3e2a5d857a8e8f7689
34631 * agent/genkey.c (agent_ask_new_passphrase): Remove useless condition.
34632 * agent/command-ssh.c (ssh_identity_register): Ditto.
34634 gpg: Remove useless condition.
34635 + commit c59b410cf1d5676de7061e5a183c01227aa8e760
34636 * g10/keylist.c (list_keyblock_colon): Remove useless condition (PK).
34637 (list_keyblock_print): Likewise.
34639 scd: Fix possible NULL deref in apdu.c.
34640 + commit ef0a3abf7305133d071bf1a94a7f461082f9a9aa
34641 * scd/apdu.c (control_pcsc_direct): Take care of BUFLEN being NULL.
34642 (control_pcsc_wrapped): Ditto.
34644 common: Make openpgp_oid_to_str more robust.
34645 + commit 35db798c2df7f31b52a9dd9d55ea60ae1f325be9
34646 * common/openpgp-oid.c (openpgp_oid_to_str): Take care of
34647 gcry_mpi_get_opaque returning NULL. Remove useless condition !BUF.
34649 2015-03-11 Werner Koch <wk@gnupg.org>
34651 agent: Improve error reporting from Pinentry.
34652 + commit efde50f92af241d8357db83e280a6ece62f6397f
34653 * agent/call-pinentry.c (unlock_pinentry): Add error logging. Map
34654 error source of uncommon errors to Pinentry.
34656 2015-03-10 Werner Koch <wk@gnupg.org>
34658 gpg: Change --print-pka-records into an option.
34659 + commit 7b5b52f3268b093eebbac3f199fb69bf246d9cd1
34660 * g10/gpg.c (aPrintPKARecords): Rename to oPrintPKARecords and do not
34661 use it as a command.
34662 * g10/keylist.c (list_keyblock): List PKA rceords also for secret
34665 gpg: Add --list-gcrypt-config and "curve" item for --list-config.
34666 + commit 14af2be022ccaf826db048fc16959d0222ff1134
34667 * common/openpgp-oid.c (curve_supported_p): New.
34668 (openpgp_enum_curves): New.
34669 * common/t-openpgp-oid.c (test_openpgp_enum_curves): New.
34670 (main): Add option --verbose.
34671 * g10/gpg.c (opts): Add --list-gcrypt-config.
34672 (list_config): Add items "curve" and "curveoid". Remove unused code.
34674 2015-03-09 NIIBE Yutaka <gniibe@fsij.org>
34676 scd: fix for 64-bit arch.
34677 + commit bb5a1b7c738d74d5b46340ec7b50000a2d343ca9
34678 * agent/pksign.c (agent_pksign_do): Use int.
34679 * scd/app-openpgp.c (get_public_key): Likewise.
34681 2015-03-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
34683 gpg: avoid chatter about trustdb when --quiet.
34684 + commit 82146af85b65498a69b28913593dc1ffeb6b6fed
34685 * g10/trustdb.c (tdb_check_trustdb_stale): avoid log_info() when
34688 2015-02-26 Werner Koch <wk@gnupg.org>
34690 gpg: Lowercase mailbox for PKA lookups.
34691 + commit c071be698efadef1ad01fd3d329d1b486a372927
34692 * common/stringhelp.c (ascii_strlwr): New.
34693 * common/mbox-util.c (mailbox_from_userid): Downcase result.
34695 gpg: Fix memory leak due to PKA lookup.
34696 + commit 91baea2dcde6c1e5ca9e8fa7020d9ab4551d1bca
34697 * g10/keyserver.c (keyserver_import_pka): Move the xfree.
34699 2015-02-25 Werner Koch <wk@gnupg.org>
34701 gpg: Switch to a hash and CERT record based PKA system.
34702 + commit 2fc27c8696f5cf2ddf3212397ea49bff115d617b
34703 * common/dns-cert.c (get_dns_cert): Make r_key optional.
34704 * common/pka.c: Rewrite for the new hash based lookup.
34705 * common/t-pka.c: New.
34706 * configure.ac: Remove option --disable-dns-pka.
34707 (USE_DNS_PKA): Remove ac_define.
34708 * g10/getkey.c (parse_auto_key_locate): Always include PKA.
34710 common: Allow requesting a specific certtype with get_dns_cert()
34711 + commit af60152a4632ef26ca950a424429b15b6c69038d
34712 * common/dns-cert.c (get_dns_cert): Add arg want_certtype. Change all
34714 (CERTTYPE_): Move constants to ...
34715 * common/dns-cert.h: here as DNS_CERTTYPE_.
34717 Move new mailbox.c source file to common/.
34718 + commit 9913253610bac69e9503800e85696491e018e327
34719 * g10/mailbox.c: Move to ...
34720 * common/mbox-util.c: new file.
34721 * common/mbox-util.h: New. Include where needed.
34722 * g10/t-mailbox.c: Move to ...
34723 * common/t-mbox-util.c: new file.
34725 2015-02-24 Werner Koch <wk@gnupg.org>
34727 gpg: Add command --print-pka-records.
34728 + commit e2d93402801a2cb822c723e891fd98233fdb3fd5
34729 * g10/gpg.c (main): Add command --print-pka-records.
34730 * g10/options.h (struct opt): Add field "print_pka_records".
34731 * g10/keylist.c (list_keyblock_pka): New.
34732 (list_keyblock): Call it if new option is set.
34733 (print_fingerprint): Add mode 10.
34735 gpg: Add function to extract the mailbox.
34736 + commit 93fa3d5c1760f3fee5412fb29d58fbd60db16ea9
34737 * g10/misc.c (has_invalid_email_chars, is_valid_mailbox)
34738 (is_valid_user_id): Move to ...
34739 * g10/mailbox.c: new file.
34740 (string_has_ctrl_or_space, has_dotdot_after_at): New.
34741 (has_invalid_email_chars): New.
34743 * g10/t-mailbox.c: New.
34744 * g10/Makefile.am (module_tests): Add t-mailbox.
34745 (t_mailbox_SOURCES, t_mailbox_LDADD): New.
34747 2015-02-23 Werner Koch <wk@gnupg.org>
34749 gpg: Add option to print fingerprints in ICAO spelling.
34750 + commit ae09515b9d3aae653b62a32ea5b4a9b9e557fc52
34751 * g10/gpg.c: Add option --with-icao-spelling.
34752 * g10/options.h (struct opt): Add with_icao_spelling.
34753 * g10/keylist.c (print_icao_hexdigit): New.
34754 (print_fingerprint): Print ICAO spelling.
34756 gpg: Skip legacy keys while searching keyrings.
34757 + commit a8116aacd91b7e775762a62c268fab6cc3c77438
34758 * g10/getkey.c (search_modes_are_fingerprint): New.
34759 (lookup): Skip over legacy keys.
34761 common: Fix regression due to commit 2183683b.
34762 + commit d9f6eea6115df7959564123eb99d633ce5bba42e
34763 * common/dns-cert.c (get_dns_cert): Remove cruft.
34765 2015-02-19 Werner Koch <wk@gnupg.org>
34767 gpg: Replace remaining uses of stdio by estream.
34768 + commit d2a70fd8348d6c11d1960caf2afe0701833dad6a
34769 * g10/sign.c (sign_file): Use log_printf instead of stderr.
34770 * g10/tdbdump.c (export_ownertrust): Use estream fucntions.
34771 (import_ownertrust): Ditto.
34772 * g10/tdbio.c (tdbio_dump_record): Ditto. Change arg to estream_t.
34774 gpg: Fix segv due to NULL value stored as opaque MPI.
34775 + commit 76c8122adfed0f0f443cce7bda702ba2b39661b3
34776 * g10/build-packet.c (gpg_mpi_write): Check for NULL return from
34777 gcry_mpi_get_opaque.
34778 (gpg_mpi_write_nohdr, do_key): Ditto.
34779 * g10/keyid.c (hash_public_key): Ditto.
34781 2015-02-12 Werner Koch <wk@gnupg.org>
34783 scd: Fix regression in 2.1.2 (due to commit 2183683)
34784 + commit 07a71da479daaac43b8c5b1034a1e66f96bdbc48
34785 * scd/apdu.c (pcsc_vendor_specific_init): Replace use of
34786 bufNN_to_uint by direct code.
34788 2015-02-12 Andre Heinecke <aheinecke@intevation.de>
34790 dirmngr: Initialize cache from sysconfig dir.
34791 + commit 070d7bf940efa60db2b0734273b9b3736d18338a
34792 * dirmngr/certcache.c (cert_cache_init): Load certificates
34793 from sysconfig dir instead of the homeidr.
34794 * dirmngr/dirmngr.c (main): Removed parsing of obsolete
34795 homedir_data option.
34796 * dirmngr/dirmngr.h (opt): Removed homedir_data.
34797 * doc/dirmngr.texi: Update and clarify certs directory doc.
34799 2015-02-11 Werner Koch <wk@gnupg.org>
34802 + commit fc17562cc4f8d531ae7f0887cf2a96dcc224b021
34805 dirmngr: Avoid warning about unused function.
34806 + commit 8219c87c301ec669f07528e8d8108655f7b705be
34807 * dirmngr/dirmngr.c (my_gnutls_log): Build only if gnutls is used.
34809 build: Update standard build-aux files.
34810 + commit 81e93e251e52e427a29556de75640c7933bb5aad
34813 Use inline functions to convert buffer data to scalars.
34814 + commit 2183683bd633818dd031b090b5530951de76f392
34815 * common/host2net.h (buf16_to_ulong, buf16_to_uint): New.
34816 (buf16_to_ushort, buf16_to_u16): New.
34817 (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New.
34819 2015-02-09 Werner Koch <wk@gnupg.org>
34821 gpg: Prevent an invalid memory read using a garbled keyring.
34822 + commit f0f71a721ccd7ab9e40b8b6b028b59632c0cc648
34823 * g10/keyring.c (keyring_get_keyblock): Whitelist allowed packet
34825 * g10/keydb.c (parse_keyblock_image): Ditto.
34827 gpg: Fix a NULL-deref in export due to invalid packet lengths.
34828 + commit 0835d2f44ef62eab51fce6a927908f544e01cf8f
34829 * g10/build-packet.c (write_fake_data): Take care of a NULL stored as
34832 gpg: Fix a NULL-deref due to empty ring trust packets.
34833 + commit 39978487863066e59bb657f5fe4e8baab510da7e
34834 * g10/parse-packet.c (parse_trust): Always allocate a packet.
34836 2015-02-04 Werner Koch <wk@gnupg.org>
34838 gpg-agent: Use "pinentry-basic" as fallback.
34839 + commit 0de5c6a9a783ed9dc69cecbf34eadcaace4be243
34840 * common/homedir.c (get_default_pinentry_name): New.
34841 (gnupg_module_name): Use that for the default pinentry.
34842 (gnupg_module_name_flush_some): New.
34843 * agent/gpg-agent.c (agent_sighup_action): Flush some module names.
34844 * agent/call-pinentry.c (start_pinentry): Do not modify
34845 opt.pinentry_program.
34847 w32: Add manifest to gpg.
34848 + commit 05428d12561bc7eb872a81444918dfe706477a41
34849 * g10/gpg.w32-manifest.in: New.
34850 * g10/gpg-w32info.rc: Add manifest.
34851 * g10/Makefile.am (EXTRA_DIST): Add manifest.
34852 (gpg-w32info.o): Depend on manifest.
34853 * configure.ac (BUILD_VERSION): New.
34854 (AC_CONFIG_FILES): Add manifest.
34856 2015-02-03 Werner Koch <wk@gnupg.org>
34858 Update copyright years.
34859 + commit 3f67426a89bf4b37e1d2662fddc3eb4fa474c4ad
34860 * common/w32info-rc.h.in (W32INFO_COMPANYNAME): Change to "The GnuPG
34863 2015-02-02 Werner Koch <wk@gnupg.org>
34865 w32: Change default Windows install dir and add bin to PATH.
34866 + commit 8872657b2a52dd9698224b80e5672e23c5405eda
34867 * build-aux/speedo.mk (WITH_GUI): New macro. The Windows installer is
34868 now build by default without any GUI stuff.
34869 * build-aux/speedo/w32/inst.nsi: Change standard installation
34871 (AddToPath, un.RemoveFromPath): New.
34872 (gnupginst): Add bin directory to the PATH.
34874 2015-02-01 Werner Koch <wk@gnupg.org>
34876 w32: Allow for Unicocde installation directory.
34877 + commit 616633b7713081ecc39419494879947cc7f163d0
34878 * common/homedir.c (w32_rootdir): Use Unicode fucntion not only for
34881 2015-01-30 Joshua Rogers <git@internot.info>
34883 kbx: Fix resource leak.
34884 + commit 7db6c82cec49b7c56c403a8ea98364086baf75f3
34885 * kbx/keybox-update.c (blob_filecopy): Fix resource leak. On error
34886 return, 'fp' and 'newfp' was never closed.
34888 2015-01-29 Werner Koch <wk@gnupg.org>
34890 agent: Fix use of imported but unprotected openpgp keys.
34891 + commit 6ab0fac575a8b04152a199cb300a08436b096753
34892 * agent/agent.h (PRIVATE_KEY_OPENPGP_NONE): New.
34893 * agent/command.c (do_one_keyinfo): Implement it.
34894 * agent/findkey.c (agent_key_from_file): Ditto.
34895 (agent_key_info_from_file): Ditto.
34896 (agent_delete_key): Ditto.
34897 * agent/protect.c (agent_private_key_type): Add detection for openpgp
34900 2015-01-29 NIIBE Yutaka <gniibe@fsij.org>
34902 po: Update Japanese Translation.
34903 + commit 6c368533f5211bed62e8638f522cef65c7ba4b87
34906 2015-01-28 Werner Koch <wk@gnupg.org>
34908 gpg: Limit the size of key packets to a sensible value.
34909 + commit 382ba4b137b42d5f25a7e256bb7c053ee5ac7b64
34910 * g10/parse-packet.c (MAX_KEY_PACKET_LENGTH): New.
34911 (MAX_UID_PACKET_LENGTH): New.
34912 (MAX_COMMENT_PACKET_LENGTH): New.
34913 (MAX_ATTR_PACKET_LENGTH): New.
34914 (parse_key): Limit the size of a key packet to 256k.
34915 (parse_user_id): Use macro for the packet size limit.
34916 (parse_attribute): Ditto.
34917 (parse_comment): Ditto.
34919 gpg: Fix buffering problem in --list-config.
34920 + commit d8eea25b8b7becbfa3f059be6f5966a2f1aa7112
34921 * g10/gpg.c (list_config): Replace print_sanitized_string2 by
34922 es_write_sanitized.
34924 * common/stringhelp.c (print_sanitized_buffer2): Remove.
34925 (print_sanitized_buffer, print_sanitized_utf8_buffer): Remove.
34926 (print_sanitized_utf8_buffer, print_sanitized_utf8_string): Remove.
34927 (print_sanitized_string): Remove.
34929 * sm/certdump.c (print_dn_part, print_dn_parts): Remove arg FP.
34930 (pretty_print_sexp, gpgsm_print_name2, gpgsm_print_name): Remove.
34932 Add a hook to be called right after main.
34933 + commit 0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181
34934 * common/init.c (early_system_init): New stub function.
34936 gpg: Allow predefined names as answer to the keygen.algo prompt.
34937 + commit b1d5ed6ac842469afcb84868d0f6641dc286a6c7
34938 * g10/keygen.c (ask_algo): Add list of strings.
34940 agent: Add some extra robustness to extract_private_key.
34941 + commit 795965437732e50f6216d7f5db0e6174e90548a9
34942 * agent/cvt-openpgp.c (extract_private_key): Add arg "arraysize".
34943 Make sure that R_FLAGS and R_CURVE are set to NULL.
34945 2015-01-28 NIIBE Yutaka <gniibe@fsij.org>
34947 scd: Fix varargs call for 64-bit arch on ECC keys.
34948 + commit f6d3c6e5263d84b94ebe13df9ff39b02109a2acb
34949 * scd/app-openpgp.c (store_fpr): Remove CARD_VERSION from the
34951 (rsa_writekey): Follow the change.
34952 (do_genkey): Likewise.
34953 (ecc_writekey): Likewise. Cast to size_t.
34955 2015-01-27 Werner Koch <wk@gnupg.org>
34957 gpg: Fix segv introduced to commit 4d7c9b0.
34958 + commit 6eebc56687935f3e993eac374b9f4cc5ad3bcf2b
34959 * g10/keygen.c (get_parameter_passphrase): Take care of R == NULL.
34961 2015-01-27 NIIBE Yutaka <gniibe@fsij.org>
34963 agent: Fix agent_public_key_from_file for ECC.
34964 + commit 9453d645d4a489f038829c80343c124fff62d635
34965 * agent/cvt-openpgp.c (extract_private_key): New.
34966 (convert_to_openpgp): Use extract_private_key.
34967 * agent/findkey.c (agent_public_key_from_file): Use
34968 extract_private_key.
34970 2015-01-26 Werner Koch <wk@gnupg.org>
34972 sm: Simplify fix ed8383c6.
34973 + commit 6c87d1ce66d8e93e6c0f16c06116e9179f6158ba
34974 * sm/minip12.c (p12_build): Release PWBUF only at the end.
34976 2015-01-25 Joshua Rogers <git@internot.info>
34978 ccid: Remove incorrect expression leading to errors.
34979 + commit 274d7b17a90908a90ba6ad295c08a79b287fc231
34980 * scd/ccid-driver.c (send_escape_cmd): Fix setting of 'rc'.
34982 2015-01-23 Werner Koch <wk@gnupg.org>
34984 gpgconf: Fix validity check for UINT32 values.
34985 + commit 3f6abb57a7b5e54b593c5775c8f7a07d61119705
34986 * tools/gpgconf-comp.c (option_check_validity): Enable check for
34989 2015-01-22 Werner Koch <wk@gnupg.org>
34991 gpg: Improve skipping of PGP-2 keys.
34992 + commit 09e8f35d3808d6e49f891360c341aae3869e8650
34993 * g10/keydb.c (keydb_search_first, keydb_search_next): Skip legacy
34995 * g10/keyring.c (keyring_get_keyblock): Handle GPG_ERR_LEGACY_KEY.
34996 (prepare_search): Ditto.
34997 (keyring_rebuild_cache): Skip legacy keys.
34998 * g10/keyserver.c (keyidlist): Ditto.
34999 * g10/trustdb.c (validate_key_list): Ditto.
35001 gpg: Add dedicated error code for PGP-2 keys.
35002 + commit 6f3d11d8837b00e3a1c4fa881066855c0321d6b2
35003 * g10/parse-packet.c (parse_key): Return GPG_ERR_LEGACY_KEY for PGP2
35005 * g10/import.c (read_block): Simplify by checking GPG_ERR_LEGACY_KEY.
35006 * g10/getkey.c (lookup): Silence error message for PGP-2 keys.
35008 * common/util.h (GPG_ERR_LEGACY_KEY): Add replacement for older
35011 gpg: Replace remaining old error code macros by GPG_ERR_.
35012 + commit 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993
35013 * g10/gpg.h (g10_errstr): Remove macro and change all occurrences by
35015 (G10ERR_): Remove all macros and change all occurrences by their
35016 GPG_ERR_ counterparts.
35018 gpg: Remove an unused variable.
35019 + commit a23c30fb59c0a216763a7972028995d3be42a844
35020 * g10/getkey.c (getkey_ctx_s): Remove last_rc.
35022 2015-01-21 Werner Koch <wk@gnupg.org>
35024 dirmngr: Fix TLS build problems.
35025 + commit 091c35ec726a4fa4691c2665b13adee6a34b5b66
35026 * dirmngr/Makefile.am (AM_CFLAGS): Add flags for TLS libs.
35028 gpg: Support --passphrase with --quick-gen-key.
35029 + commit 4d7c9b0e9aceedd924d600978bc1b6cae7d5c456
35030 * g10/keygen.c: Include shareddefs.h.
35031 (quick_generate_keypair): Support static passphrase.
35032 (get_parameter_passphrase): New.
35033 (do_generate_keypair): Use it.
35035 gpg: Re-enable the "Passphrase" parameter for batch key generation.
35036 + commit aa99ebde778b7b563f35025f1b48954757f840be
35037 * agent/command.c (cmd_genkey): Add option --inq-passwd.
35038 * agent/genkey.c (agent_genkey): Add new arg override_passphrase.
35039 * g10/call-agent.c (inq_genkey_parms): Handle NEWPASSWD keyword.
35040 (agent_genkey): Add arg optional arg "passphrase".
35041 * g10/keygen.c (common_gen, gen_elg, gen_dsa, gen_ecc)
35042 (gen_rsa, do_create): Add arg "passphrase" and pass it through.
35043 (do_generate_keypair): Make use of pPASSPHRASE.
35044 (release_parameter_list): Wipe out a passphrase parameter.
35046 2015-01-19 Werner Koch <wk@gnupg.org>
35048 kbx: Minor cleanup for the previous fix.
35049 + commit 7be1b7d8017cb7ebf1a3855edec0ef5e342cc9c5
35050 * kbx/keybox-search.c (blob_get_keyid): Rename to
35051 blob_get_first_keyid. Check number of keys and remove blob type check.
35053 2015-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
35055 kbx: Call skipfnc callback to filter out keys.
35056 + commit c5956592c171e6fe988e74161aa99636b7f12e4b
35057 * kbx/keybox-search.c (blob_get_keyid): New.
35058 (keybox-search): Call skipfnc callback function.
35060 2015-01-13 Andreas Schwier <andreas.schwier@cardcontact.de>
35062 scd: Allow for certificates > 1024 with PC/SC.
35063 + commit 16a1330fa16f6b23e2661c0175c431ab40da45ff
35064 * scd/pcsc-wrapper.c (handle_transmit): Enlarge buffer to 4096 too
35065 allow for larger certificates.
35067 2015-01-08 NIIBE Yutaka <gniibe@fsij.org>
35069 dirmngr: Fix error code path of map_host.
35070 + commit 657a26f3af1b3f817d6cde2d091273d332571247
35071 * dirmngr/ks-engine-hkp.c (map_host): Fix error return.
35073 2015-01-08 Joshua Rogers <git@internot.info>
35075 scd: fix get_public_key for OpenPGPcard v1.0.
35076 + commit 100b322f5da3066bab5a2b0eb234c631c581c0e4
35077 * scd/app-openpgp.c (get_public_key): correctly close 'fp' upon use.
35079 2015-01-07 NIIBE Yutaka <gniibe@fsij.org>
35081 dirmngr: fix LDAP query PATTERNS limit check.
35082 + commit 22b15fccffe613f455f9748c048c8e451724a842
35083 * dirmngr/ldap.c (start_cert_fetch_ldap): fix ARGC limitation.
35085 scd: fix merge failure.
35086 + commit 602f17b5a775f02e0e33a54d3155929dc00e4f53
35087 * scd/apdu.c (pcsc_pinpad_verify): Remove wrong lines inserted by
35090 2015-01-05 Werner Koch <wk@gnupg.org>
35092 sm,g13: Init local vars to avoid compiler warnings.
35093 + commit 9bf40849a9f86204e113712c4cc285f1ac16127a
35094 * sm/misc.c (transform_sigval): Init RSA_S_LEN.
35095 * g13/mount.c (read_keyblob): Init HEADERLEN.
35097 gpg: Remove unused args from a function.
35098 + commit 616e511f278bf9af04dc66bbb8b05b37bf541f37
35099 * g10/keyserver.c (parse_keyserver_uri): Remove args configname and
35100 configlineno. Change all callers.
35102 gpg: Clear a possible rest of the KDF secret buffer.
35103 + commit 56e688823345bbcfef220b13eb418854f8798b16
35104 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Fix order of args.
35106 build: Require automake 1.14.
35107 + commit 445bb17d5fe6b53db078082fb033dbc67eea8307
35108 * configure.ac (AM_INIT_AUTOMAKE): Add serial-tests.
35110 2015-01-04 Werner Koch <wk@gnupg.org>
35112 agent: Make --allow-loopback-pinentry gpgconf changeable.
35113 + commit ac2cb47fc5c0be539aaa07fd141acdbc0934800f
35116 2014-12-22 Joshua Rogers <git@internot.info>
35118 tools: Free variable before return.
35119 + commit cf88337f8a4f8c98aca4b1da5921d18567b4f474
35120 * tools/gpgconf-comp.c: Free 'dest_filename' before it is returned
35123 2014-12-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
35125 sm: Avoid double-free on iconv failure.
35126 + commit ed8383c618e124cfa708c9ee87563fcdf2f4649c
35127 * sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
35128 double-free of pwbuf.
35130 scd: Avoid double-free on error condition in scd.
35131 + commit b0b3803e8c2959dd67ca96debc54b5c6464f0d41
35132 * scd/command.c (cmd_readkey): avoid double-free of cert
35134 avoid future chance of using uninitialized memory.
35135 + commit 367b073ab5f439ccf0750461d10c69f36998bd62
35136 * common/iobuf.c: (iobuf_open): initialize len
35138 avoid double-close in unusual dotlock situations.
35139 + commit 628b111fa679612e23c0d46505b1ecbbf091897d
35140 * common/dotlock.c: (dotlock_create_unix) avoid double-close()
35141 in unusual situations.
35143 gpgkey2ssh: clean up varargs.
35144 + commit 351bca9047d748c3c4f7e9a3cdc476af127b1da3
35145 * tools/gpgkey2ssh.c (key_to_blob) : ensure that va_end is called.
35147 2014-12-22 Werner Koch <wk@gnupg.org>
35149 doc: Fix memory leak in yat2m.
35150 + commit 6056d2467310260ddc0db2fe65b737ace6febcaa
35151 * doc/yat2m.c (write_th): Free NAME.
35153 dirmngr: Fix memory leak.
35154 + commit 5a556e4e88bcbc926c0922070acaf5f7b25d18fb
35155 * dirmngr/server.c (cmd_ks_search, cmd_ks_get): Fix memory leak.
35157 * dirmngr/ks-engine-hkp.c (ks_hkp_mark_host): Remove double check.
35159 dirmngr: Remove un-needed check.
35160 + commit 0d5cb55402c44fb5f731ecf85705f845f3091aa7
35161 * dirmngr/crlfetch.c (crl_fetch): Check that URL is not NULL.
35163 dirmngr,gpgsm: Return NULL on fail.
35164 + commit abd5f6752d693b7f313c19604f0723ecec4d39a6
35165 * dirmngr/ldapserver.c (ldapserver_parse_one): Set SERVER to NULL.
35166 * sm/gpgsm.c (parse_keyserver_line): Ditto.
35168 2014-12-22 NIIBE Yutaka <gniibe@fsij.org>
35171 + commit bdc8efbdd124d836c36cf482216e375421f72891
35172 * agent/divert-scd.c (divert_pkdecrypt): Support ECDH.
35173 * scd/app-openpgp.c (get_algo_byte, store_fpr): Support ECDH.
35174 (send_key_attr): Support ECDH. Fix EdDSA algorithm value.
35175 (retrieve_key_material): Initialize fields.
35176 (get_public_key, ecc_writekey, do_writekey): Support ECDH.
35177 (ecdh_writekey): Remove.
35178 (do_decipher): Support ECDH.
35179 (parse_algorithm_attribute): Support ECDH. Fix EdDSA.
35181 2014-12-19 Werner Koch <wk@gnupg.org>
35183 agent: Make sure --max-cache-ttl is >= --default-cache-ttl.
35184 + commit 76140141699b545f7a988bf5fc101063917e8ce3
35185 * agent/gpg-agent.c (finalize_rereadable_options): New.
35186 (main, reread_configuration): Call it.
35188 agent: Keep the session environment for restricted connections.
35189 + commit 14601eacb51f6c8a60d3d57aee1be11debd94c68
35190 * agent/command-ssh.c (setup_ssh_env): Move code to ...
35191 * agent/gpg-agent.c (agent_copy_startup_env): .. new function. Change
35193 * agent/command.c (start_command_handler): Call that fucntion for
35194 restricted connections.
35196 agent: Fix string prepended to remotely initiated prompts.
35197 + commit aad8963f7b9d13b319abd413db8f42ec467db913
35198 * agent/command.c (cmd_setkeydesc): Use %0A and not \n. Make
35201 2014-12-18 Werner Koch <wk@gnupg.org>
35203 build: Remove option to build without agent.
35204 + commit abec64f3cb04e49ca48cc476a5830a920e2ebf8f
35205 * configure.ac (build-agent): Set to yes.
35207 2014-12-17 Werner Koch <wk@gnupg.org>
35209 gpgconf: Exit with failure if --launch fails.
35210 + commit 5cb6df8996623c00eaa2a39e3037101585442f7e
35211 * tools/gpgconf-comp.c (gc_component_launch): Return an error code.
35212 * tools/gpgconf.c (main): Exit if launch failed.
35214 2014-12-16 Werner Koch <wk@gnupg.org>
35217 + commit 08c00cd4fe432d6852ad1d5c34a234c56aa3617c
35220 po: Update the German translation.
35221 + commit 4ba740bd4734c43e7876f6f6380cc5963789d510
35224 2014-12-16 Petr Pisar <petr.pisar@atlas.cz>
35226 po: Update Czech translation.
35227 + commit 30560491fe42562f4bbdb17d3213f7210f549a0f
35230 2014-12-16 Werner Koch <wk@gnupg.org>
35232 gpg: Show private DO information in the card status.
35233 + commit ce9212924039fba4e479760bba86c61b0d91c469
35234 * g10/call-agent.c (agent_release_card_info): Free private_do.
35235 (learn_status_cb): Parse PRIVATE-DO-n stati.
35237 2014-12-16 Ineiev <ineiev@gnu.org>
35239 po: Update Russian translation.
35240 + commit 5ab5b3fa6921f08dd0a498fe0381735e803d01e3
35243 2014-12-16 Jedi <jedi@jedi.org>
35245 po: Update zh_TW translation.
35246 + commit 668dc6b32cb97608ef65b85d917c86f5aec896ce
35249 2014-12-15 Werner Koch <wk@gnupg.org>
35251 gpg: Add sub-command "factory-reset" to --card-edit.
35252 + commit dd65e21cb4934b40e6f2f7a8095f39fd6d9971bc
35253 * common/util.h (GPG_ERR_OBJ_TERM_STATE): New.
35254 * scd/iso7816.c (map_sw): Add this error code.
35255 * scd/app-openpgp.c (do_getattr): Return the life cycle indicator.
35256 * scd/app.c (select_application): Allow a return value of
35257 GPG_ERR_OBJ_TERM_STATE.
35258 * scd/scdaemon.c (set_debug): Print the DBG_READER value.
35259 * g10/call-agent.c (start_agent): Print a status line for the
35261 (agent_scd_learn): Make arg "info" optional.
35262 (agent_scd_apdu): New.
35263 * g10/card-util.c (send_apdu): New.
35264 (factory_reset): New.
35265 (card_edit): Add command factory-reset.
35267 gpg: Fix regression in notation data regression.
35268 + commit fc9a35d2dec2f838abac831fd88dca494773e082
35269 * g10/misc.c (pct_expando): Reorder conditions for clarity.
35270 * g10/sign.c (write_signature_packets): Fix notation data creation.
35272 gpg: Avoid extra LF in notaion data listing.
35273 + commit b4e402cb5c6d7fc507e8d5131969145b49640e50
35274 * g10/keylist.c (show_notation): Use log_printf.
35276 2014-12-12 Werner Koch <wk@gnupg.org>
35278 scd: Fix possibly inhibited checkpin of the admin pin.
35279 + commit 68b4e7c9e4de0dc3580ca5af3cfd0f20a2691b5e
35280 * scd/app-openpgp.c (do_check_pin): Do not check a byte of a released
35283 gpg: Let --card--status create a shadow key (card key stub).
35284 + commit f3f9f9b2844c35f7942ee904d5222523615cdad4
35285 * agent/command.c (cmd_learn): Add option --sendinfo.
35286 * agent/learncard.c (agent_handle_learn): Add arg "send" andsend
35287 certifciate only if that is set.
35288 * g10/call-agent.c (agent_scd_learn): Use --sendinfo. Make INFO
35290 (agent_learn): Remove.
35291 * g10/keygen.c (gen_card_key): Replace agent_learn by agent_scd_learn.
35293 gpg: Fix possible read of unallocated memory.
35294 + commit 193815030d20716d9a97850013ac3cc8749022c9
35295 * g10/parse-packet.c (can_handle_critical): Check content length
35296 before calling can_handle_critical_notation.
35298 2014-12-11 Werner Koch <wk@gnupg.org>
35300 build: Replace deprecated autconf macro.
35301 + commit 1d8ebe4d54eef37da65e7bd5d7386bc04f344447
35302 * m4/intl.m4: s/AM_PROG_MKDIR_P/AC_PROG_MKDIR_P/
35305 2014-12-08 Werner Koch <wk@gnupg.org>
35307 dirmngr: Improve dead host detection.
35308 + commit e8c0ed779579293b3f4592d9337bc15ee0fc3fdd
35309 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Mark host dead
35310 also for 2 other error messages.
35312 http: Improve diagnostic messages.
35313 + commit 6d5f12834124ba5ee0e54261531abf95c36c116c
35314 * common/http.c (send_request): Print TLS alert info
35315 (connect_server): Detect bogus DNS entry.
35317 gpg: Obsolete some keyserver helper options.
35318 + commit 5bf93f4ea7a11381dd256b5fd4e5913366828265
35319 * g10/options.h (opt): Remove keyserver_options.other.
35320 * g10/gpg.c (main): Obsolete option --honor-http-proxt.
35321 * g10/keyserver.c (add_canonical_option): Replace by ...
35322 (warn_kshelper_option): New.
35323 (parse_keyserver_uri): Obsolete "x-broken-http".
35325 dirmngr: Return a proper error for all dead hosts.
35326 + commit b72ece6d74d3e385e818ead748eba0cb111b95b3
35327 * dirmngr/ks-engine-hkp.c (map_host): Change to return an gpg_error_t.
35328 Return an error code for all dead hosts.
35329 (make_host_part): Change to return an gpg_error_t. Change all
35332 gpg: Write a status line for a failed --send-keys.
35333 + commit 66ab8f807c96b778f2a2c82b58d3e15ac295e1b2
35334 * g10/keyserver.c (keyserver_put): Write an status error.
35336 2014-12-08 NIIBE Yutaka <gniibe@fsij.org>
35338 scd: Fix for EdDSA.
35339 + commit c50c11d5751f46ddb38244a5a07d8274e1e10922
35340 * scd/app-openpgp.c (get_algo_byte): It catches 22.
35341 (store_fpr): It's MPI usually, but it's opaque bytes for EdDSA.
35343 2014-12-05 Andre Heinecke <aheinecke@intevation.de>
35345 Document no-allow-mark-trusted option.
35346 + commit f4ed04fca8885301b567ec004ffff0d6e24f4611
35347 doc: Document no-allow-mark-trusted for gpg-agent
35349 * doc/gpg-agent.texi: Change allow-mark-trusted doc to
35350 no-allow-mark-trusted.
35353 Since rev. 78a56b14 allow-mark-trusted is the default option
35354 and was replaced by no-allow-mark-trusted to disable the
35355 interactive prompt.
35357 2014-12-05 NIIBE Yutaka <gniibe@fsij.org>
35359 scd: Fix for NIST P-256.
35360 + commit 8720125f5a283ede34e52c2493b8a9b0226ae62c
35361 * g10/card-util.c (card_store_subkey): Error check.
35362 * scd/app-opengpg.c (ecc_writekey): Support NIST P-256.
35363 (do_writekey): Error check.
35365 2014-12-04 Werner Koch <wk@gnupg.org>
35367 gpg: Allow import of large keys.
35368 + commit 63e7891f0f9f0228d93c6cd979fbf2797da2b67d
35369 * g10/import.c (import): Skip too large keys.
35370 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 2MB to 5MB.
35372 2014-12-03 Werner Koch <wk@gnupg.org>
35374 gpg: Remove option aliases --[no-]throw-keyid and --notation-data.
35375 + commit 17b4662984b4669d8dcbbd6705ccfbe6c263319c
35376 * g10/gpg.c (opts): Remove them.
35377 * g10/options.h (opt): s/throw_keyid/throw_keyids/ and change users.
35379 2014-12-02 Werner Koch <wk@gnupg.org>
35381 agent: Replace some sprintf.
35382 + commit fabcf1440a6900b9471f11e4f2a015e9f2d1a74c
35383 * agent/call-scd.c (agent_card_pksign): Replace sprintf by bin2hex.
35384 * agent/command-ssh.c (ssh_identity_register): Ditto.
35385 * agent/pkdecrypt.c (agent_pkdecrypt): Replace sprintf by
35388 2014-12-01 Werner Koch <wk@gnupg.org>
35390 tools: Improve watchgnupg portability.
35391 + commit 0367a4b8cfbf1f197e093ca2b83b27e0a409c3c7
35392 * configure.ac (AC_CHECK_HEADERS): Check for sys.select.h
35393 * tools/watchgnupg.c: Include it.
35395 gpg: Fix export bug using exact search with only one key in the keybox.
35396 + commit f1c3eb4b16ca43b5d3712a3b54c22d17ce85af47
35397 * g10/export.c (do_export_stream): Disable caching.
35398 * g10/keyserver.c (keyidlist): Ditto.
35400 scd: Implement socket redirection.
35401 + commit 2f90b7c21b2f84ca2bf5f4555da9233e84606b4e
35402 * scd/scdaemon.c (ENAMETOOLONG): New.
35403 (redir_socket_name): New.
35404 (cleanup): Take care of a redirected socket.
35405 (main): Pass redir_socket_name to create_server_socket.
35406 (create_socket_name): Remove superfluous length check.
35407 (create_server_socket): Add arg r_redir_name and implement
35408 redirection. Replace assert for older Assuan by an error message.
35410 dirmngr: Implement socket redirection.
35411 + commit eede0e59bf6281777da7391752ae4191f3e51204
35412 * dirmngr/dirmngr.c (ENAMETOOLONG): new.
35413 (redir_socket_name): New.
35414 (main): Add Assuan socket redirection.
35415 (cleanup): Adjust cleanup for redirection.
35417 2014-11-28 Werner Koch <wk@gnupg.org>
35419 agent: Implement socket redirection.
35420 + commit e1f515b19c7f63b6d0b0253319b9fc41dabed657
35421 * agent/gpg-agent.c (ENAMETOOLONG): New.
35422 (redir_socket_name, redir_socket_name_extra)
35423 (redir_socket_name_ssh): New.
35424 (remove_socket): Take care of the redir names.
35425 (main): Pass the redir names to create_server_socket.
35426 (create_socket_name): Remove length check - that is anyway done later.
35427 (create_server_socket): Add arg r_redir_name and implement redirection
35428 if Libassuan is at least 2.14.
35430 gpg: Change another BUG() call to a regular error message.
35431 + commit e59b1cc7471dd161a627b290c645ef7bd0d9d42c
35432 * g10/mainproc.c (proc_tree): Replace BUG by a proper error messages.
35434 Add option --no-autostart.
35435 + commit 7aee3579be6e24a1aa280e75615fc3a11ceef960
35436 * g10/gpg.c: Add option --no-autostart.
35437 * sm/gpgsm.c: Ditto.
35438 * g10/options.h (opt): Add field autostart.
35439 * sm/gpgsm.h (opt): Ditto.
35440 * g10/call-agent.c (start_agent): Print note if agent was not
35442 * sm/call-agent.c (start_agent): Ditto.
35443 * g10/call-dirmngr.c (create_context): Likewise.
35444 * sm/call-dirmngr.c (start_dirmngr_ext): Ditto.
35446 2014-11-27 Мирослав Николић <wk@gnupg.org>
35448 gpg-agent: Add restricted connection feature.
35449 + commit f173cdcdfbfd083b035516a406c2c754f38a0ace
35450 * agent/agent.h (opt): Add field extra_socket.
35451 (server_control_s): Add field restricted.
35452 * agent/command.c: Check restricted flag on many commands.
35453 * agent/gpg-agent.c (oExtraSocket): New.
35454 (opts): Add option --extra-socket.
35455 (socket_name_extra): New.
35456 (cleanup): Cleanup that socket name.
35457 (main): Implement oExtraSocket.
35458 (create_socket_name): Add arg homedir and change all callers.
35459 (create_server_socket): Rename arg is_ssh to primary and change
35461 (start_connection_thread): Take ctrl as arg.
35462 (start_connection_thread_std): New.
35463 (start_connection_thread_extra): New.
35464 (handle_connections): Add arg listen_fd_extra and replace the
35465 connection starting code by parameterized loop.
35466 * common/asshelp.c (start_new_gpg_agent): Detect the use of the
35467 restricted mode and don't fail on sending the pinentry environment.
35469 * common/util.h (GPG_ERR_FORBIDDEN): New.
35471 agent: Make auditing of the option list easier.
35472 + commit ccee34736b57a42ec4bdcb0d3181bdc6a08b0fff
35473 * agent/gpg-agent.c (opts): Use ARGPARSE_ macros.
35475 2014-11-26 Kristian Fiskerstrand <kf@sumptuouscapital.com>
35477 dirmngr: Only report hkps scheme when available.
35478 + commit 68a7ccc0c870cce6ab9fefb1aa6fd100e1de129b
35479 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Make use of TLS macros.
35481 2014-11-26 Werner Koch <wk@gnupg.org>
35483 gpg: Change a bug() call to a regular error message.
35484 + commit 1c2140346d6ef9c35e303099d2d15be57869b4d5
35485 * g10/decrypt-data.c (decrypt_data): Return an error code instead of
35488 2014-11-25 Werner Koch <wk@gnupg.org>
35490 Fix buffer overflow in openpgp_oid_to_str.
35491 + commit 8445ef24fc31e1fe0291e17f90f9f06b536e34da
35492 * common/openpgp-oid.c (openpgp_oid_to_str): Fix unsigned underflow.
35494 * common/t-openpgp-oid.c (BADOID): New.
35495 (test_openpgp_oid_to_str): Add test cases.
35497 2014-11-24 Werner Koch <wk@gnupg.org>
35499 gpg: Fix use of uninit.value in listing sig subpkts.
35500 + commit 596ae9f5433ca3b0e01f7acbe06fd2e424c42ae8
35501 * g10/parse-packet.c (dump_sig_subpkt): Print regex subpacket
35504 gpg: Fix off-by-one read in the attribute subpacket parser.
35505 + commit 0988764397f99db4efef1eabcdb8072d6159af76
35506 * g10/parse-packet.c (parse_attribute_subpkts): Check that the
35507 attribute packet is large enough for the subpacket type.
35509 gpg: Fix batch generation of ECC keys.
35510 + commit b716e6a69919b89c7887d6c7c9b97e58d18fdf95
35511 * g10/keygen.c (get_parameter_algo): Map ECC algorithm strings
35514 2014-11-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
35516 Distinguish between ARGPARSE_AMBIGUOUS_{OPTION,COMMAND}
35517 + commit eed16ccebf8fd1fdf9709affbd5c831f6957b8ae
35518 * common/argparse.c (initialize): Use correct value.
35520 gpg: Refer to --throw-keyids instead of --throw-keyid.
35521 + commit a3cf781e3bc144aff60e007b9ba59bff7b1b2c9e
35522 * g10/encrypt.c: adjust error message
35524 2014-11-21 Werner Koch <wk@gnupg.org>
35526 gpg: Track number of skipped v3 keys on import.
35527 + commit 44c9cc18968b3e1d7568ec41ebf28a07285c61bb
35528 * g10/import.c (stats_s): Add field v3keys.
35529 (import): Update this field.
35530 (import_print_stats): Print v3 key count.
35531 (read_block): Skip v3 keys and return a count for them.
35533 gpg: Fix regression in parse_key.
35534 + commit 94a54425144e412bc83e44b7c6323282f49f650f
35535 * g10/parse-packet.c (parse): Better return just the gpg_err_code.
35536 (parse_key): Return the error code.
35538 speedo: Add simple logos to the installer.
35539 + commit 9a85b91e925ac0798d56820353bf5858b212277f
35540 * build-aux/speedo/w32/README.txt: Include GnuPG Readme.
35541 * build-aux/speedo/w32/gnupg-logo-150x57.bmp: New.
35542 * build-aux/speedo/w32/gnupg-logo-164x314.bmp: New.
35543 * build-aux/speedo/w32/inst.nsi: Add logos.
35544 * build-aux/speedo.mk ($(bdir)/NEWS.tmp): Extract news items.
35546 2014-11-20 Werner Koch <wk@gnupg.org>
35548 gpg: Fix hash detection for ECDSA.
35549 + commit f80c2dd78d522f12b2c7afbd5c0763a97d87d2bd
35550 * g10/sign.c (sign_file): Use DSA or ECDSA and not DSA|EdDSA.
35552 Fix linker problem on OS X.
35553 + commit cd2c6f36fe5d1d1d45546f5168aead5cbe6487e0
35554 * common/init.c (default_errsource): Move to the .data segmemt.
35556 2014-11-19 Werner Koch <wk@gnupg.org>
35558 gpg-connect-agent: Add convenience option --uiserver.
35559 + commit 164a6a9dd4af26668dd0d01061688bf1ceff44bf
35562 Add "gpgconf --kill dirmngr" and avoid useless launch before a kill.
35563 + commit 0e7dd40342bd56810c27db1c38c1928f56f43bfd
35564 * common/asshelp.c (start_new_gpg_agent): Add arg autostart. Change
35565 all callers to use 1 for it.
35566 (start_new_dirmngr): Ditto.
35567 * tools/gpg-connect-agent.c: Add option --no-autostart.
35568 (main): Default autostart to 1.
35569 (start_agent): Implement no-autostart.
35570 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Use --no-autostart.
35571 (scdaemon_runtime_change): Ditto.
35572 (dirmngr_runtime_change): New.
35574 po: Copied missing translations from the 2.0 branch.
35575 + commit 329ece46bf83871f01eb833d5ebec6da36bfcce0
35576 * po/LINGUAS: Add new translations.
35578 2014-11-17 Werner Koch <wk@gnupg.org>
35580 gpg: Fix a NULL-deref for invalid input data.
35581 + commit 32e85668b82f6fbcb824eea9548970804fb41d9e
35582 * g10/mainproc.c (proc_encrypted): Take care of canceled passpharse
35585 2014-11-13 Werner Koch <wk@gnupg.org>
35587 gpg: Make the use of "--verify FILE" for detached sigs harder.
35588 + commit 69384568f66a48eff3968bb1714aa13925580e9f
35589 * g10/openfile.c (open_sigfile): Factor some code out to ...
35590 (get_matching_datafile): new function.
35591 * g10/plaintext.c (hash_datafiles): Do not try to find matching file
35593 * g10/mainproc.c (check_sig_and_print): Print a warning if a possibly
35594 matching data file is not used by a standard signatures.
35596 gpg: Fix a missing LF in debug output.
35597 + commit 22748338da9a78d20aefe3656ba40b0f9d34a681
35598 * g10/kbnode.c (dump_kbnode): Print a LF.
35600 gpg: Remove PGP-2 related cruft.
35601 + commit e30cb8f61792e3808f7c8f343fc8545e6c81fe74
35602 * g10/armor.c (parse_hash_header,carmor_filter): Ignore MD5 in hash
35604 (fake_packet): Remove pgp-2 workaround for white space stripping.
35605 * g10/filter.h (armor_filter_context_t): Remove field pgp2mode.
35606 * g10/options.h (opt): Remove field pgp2_workarounds.
35607 * g10/gpg.c (main): Do not set this field.
35608 * g10/gpgv.c (main): Ditto.
35609 * g10/mainproc.c (proc_encrypted): Use SHA-1 as fallback s2k hash
35610 algo. Using MD5 here is useless.
35611 (proc_plaintext): Remove PGP-2 related woraround
35612 (proc_tree): Remove another workaround but keep the one for PGP-5.
35614 2014-11-12 Werner Koch <wk@gnupg.org>
35616 gpg: Improve perceived speed of secret key listings.
35617 + commit 81e177be10273885573f5d1fd88a1ee23479f4ab
35618 * g10/keylist.c (list_keyblock): Flush stdout for secret keys.
35620 gpg: Fix regression in --refresh-keys.
35621 + commit eecbed004ca1e9ca23c3892c3a5e6dd174ddf93b
35622 * g10/keyserver.c (keyserver_get): Factor all code out to ...
35623 (keyserver_get_chunk): new. Extimate line length.
35624 (keyserver_get): Split up requests into chunks.
35626 gpg: Add import options "keep-ownertrust".
35627 + commit ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39
35628 * g10/options.h (IMPORT_KEEP_OWNERTTRUST): New.
35629 * g10/import.c (parse_import_options): Add "keep-ownertrust".
35630 (import_one): Act upon new option.
35632 2014-11-11 Werner Koch <wk@gnupg.org>
35634 Remove use of gnulib (part 2)
35635 + commit b8cdfac353ad96d4ef025c066c16dbde34805661
35636 * configure.ac (strpbrk): Add to AC_CHECK_FUNCS.
35637 (gl_EARLY): Remove.
35638 * common/stringhelp.c (strpbrk) [!HAVE_STRPBRK]: New.
35639 * common/sysutils.c (gnupg_mkdtemp): New. Based on code from
35641 (gnupg_setenv): Rewrite.
35642 (gnupg_unsetenv): Rewrite.
35643 * g10/exec.c: Include sysutils.h and replace mkdtemp by gnupg_mkdtemp.
35644 * g13/be-encfs.c: Ditto.
35645 * g13/mount.c: Ditto.
35646 * tools/symcryptrun.c (confucius_mktmpdir): Ditto.
35648 Remove use of gnulib (part 1)
35649 + commit 1adf719b2d8e2d5b912bf6655731e7e586402654
35650 * gl/: Remove entire tree.
35651 * configure.ac: Remove gnulib tests and the gl/ Makefile.
35652 (setenv): Add to AC_CHECK_FUNCS.
35653 * autogen.rc (extra_aclocal_flags): Set to empty.
35654 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I gl/m4
35655 (SUBDIRS): Remove gl/.
35656 * agent/Makefile.am (common_libs): Remove ../gl/gnulib.a
35657 * common/Makefile.am (t_common_ldadd): Ditto.
35658 * dirmngr/Makefile.am (dirmngr_LDADD): Ditto.
35659 (dirmngr_ldap_LDADD, dirmngr_client_LDADD): Ditto.
35660 * g10/Makefile.am (needed_libs): Ditto.
35661 * g13/Makefile.am (g13_LDADD): Ditto.
35662 * kbx/Makefile.am (kbxutil_LDADD): Ditto.
35663 ($(PROGRAMS)): Ditto.
35664 * scd/Makefile.am (scdaemon_LDADD): Ditto.
35665 * sm/Makefile.am (common_libs): Ditto.
35666 * tools/Makefile.am (common_libs, commonpth_libs): Ditto.
35668 * agent/gpg-agent.c: Remove "mkdtemp.h"
35669 * g10/exec.c: Ditto.
35670 * scd/scdaemon.c: Ditto.
35671 * tools/symcryptrun.c: Ditto.
35672 * common/sysutils.c: Remove "setenv.h"
35674 * common/t-timestuff.c: Use putenv if setenv is not available.
35676 2014-11-07 Werner Koch <wk@gnupg.org>
35678 gpg: Remove warning message for non-implemented search modes.
35679 + commit 7362c8c6e60939588e817384ae2e29195cb3f518
35680 * kbx/keybox-search.c (keybox_search): Silently ignore.
35681 * doc/specify-user-id.texi: Docuement '@", '+', and '.' search
35684 w32: Fix http access module.
35685 + commit f0f5cb6b3e525f696b8820c517190e1d84f3b885
35686 * common/http.c (write_server) [W32]: Rework to use send() instead of
35687 write even when build with npth.
35688 (cookie_read) [W32]: Rework to use recv() instead of read even when
35691 build: Add method to use a custom swdb.lst and use adns with Windows.
35692 + commit c7c79e31937e2d2fdb4042641786c229e31fbfae
35693 * build-aux/getswdb.sh: Add option --skip-verify.
35694 * build-aux/speedo.mk: Add config var CUSTOM_SWDB. Tage adns version
35695 from swdb and build for Windows with adns.
35697 build: Improve test for ADNS.
35698 + commit f7e1be24c8fcf588d4e48aa53a85b22bd035e3b0
35699 * configure.ac <adns>: Use adns_free as probe function for libadns.
35700 (HAVE_ADNS_FREE): Remove bogus tests to set this and remove the macro.
35701 (ADNSLIBS): Do not ac_subst - it is only used within configure.
35703 2014-11-05 Werner Koch <wk@gnupg.org>
35705 speedo: Append the date to the Windows installer.
35706 + commit 8ec0b384a86bd7f67a60ab43ff1540e80c3f729d
35707 * build-aux/speedo.mk (BUILD_DATESTR): New.
35708 (dist-source, installer): Use it.
35711 + commit e22b459b910762f77245283746de34c67ebc72da
35714 Avoid sign extension when shifting the MSB.
35715 + commit 91b826a38880fd8a989318585eb502582636ddd8
35716 * sm/fingerprint.c (gpgsm_get_short_fingerprint): Cast MSB before
35718 * g10/build-packet.c (delete_sig_subpkt): Ditto.
35720 2014-11-04 Werner Koch <wk@gnupg.org>
35722 Remove all expired common CA certificates.
35723 + commit 46fa1e0fe9f7407f12aa854e5cdb54624af3e89b
35724 * doc/com-certs.pem: Remove certifciates.
35726 2014-11-02 Werner Koch <wk@gnupg.org>
35728 gpg: Avoid extra pinentries for each subkey in --export-secret-keys.
35729 + commit f8c993fbe28bf02f1d7aadec823a9dfc935398fa
35730 * agent/command.c (cmd_export_key): Actually implement the cache_nonce
35732 * g10/export.c (do_export_stream): Make use of a cache_nonce.
35734 gpg: Fix endless loop in keylisting with fingerprint.
35735 + commit d95f05c314adfecbe0af9073f964030010442f9b
35736 * g10/getkey.c (getkey_next): Disable cache.
35738 gpg: Minor cleanup for key listing related code.
35739 + commit 440e8f517008107a9fe1b72cb659b97b7d840de6
35740 * g10/getkey.c (get_pubkey_next): Divert to getkey_next.
35741 (get_pubkey_end): Move code to getkey_end.
35742 * g10/keydb.c (keydb_search_reset): Add a debug statement.
35743 (dump_search_desc): Add arg HD and print the handle.
35745 gpg: Do not show an useless passphrase prompt in batch mode.
35746 + commit a929f36693567e57eca89fb48f23cada8ce7291a
35747 * g10/keygen.c: Remove unused PASSPHRASE related code.
35748 (proc_parameter_file): Remove useless asking for a passphrase in batch
35751 2014-10-31 Werner Koch <wk@gnupg.org>
35753 gpg: Remove superfluous check for Libgcrypt >= 1.4.0.
35754 + commit f4df71aa2d544ec46a2ded3055ffb21b9842129e
35755 * g10/gpg.c (main): Remove check.
35757 kbx: Let keydb_search skip unwanted blobs.
35758 + commit 935edf88ab29b2f63afc2a0e3af1b33c92033ab7
35759 * kbx/keybox.h (keybox_blobtype_t): New.
35760 * kbx/keybox-defs.h (BLOBTYPE_*): Replace by KEYBOX_BLOBTYPE_*.
35761 * kbx/keybox-search.c (keybox_search): Add arg want_blobtype and skip
35762 non-matching blobs.
35763 * sm/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_X509 to keybox_search.
35764 * g10/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_PGP to keybox_search.
35766 gpg: Fix --rebuild-keydb-caches.
35767 + commit 28ae8ad70b3b802e67344468a4765eee6e291c68
35768 * g10/parse-packet.c (parse_key): Store even unsupported packet
35770 * g10/keyring.c (keyring_rebuild_cache): Do not copy keys with
35771 versions less than 4.
35773 gpg: Fix testing for secret key availability.
35774 + commit 433208a5536608c2b40525eebadbbdeb7780d7f2
35775 * g10/getkey.c (have_secret_key_with_kid): Do not change the search
35778 build: Avoid distributing backup files etc.
35779 + commit b47fe2b14e2a610706bdeff9dbd9a5f7bd6f6b3a
35780 * Makefile.am (EXTRA_DIST): Do not include directories.
35782 2014-10-30 Werner Koch <wk@gnupg.org>
35784 tests: Speed up the genkey1024.test by using not so strong random.
35785 + commit 9546aa3cc87fc83a40768a12fbbceb19496ce129
35786 * agent/gpg-agent.c (oDebugQuickRandom): New.
35787 (opts): New option --debug-quick-random.
35788 (main): Use new option.
35789 * common/asshelp.c (start_new_gpg_agent): Add hack to pass an
35790 additional argument for the agent name.
35791 * tests/openpgp/defs.inc: Pass --debug-quick-random to the gpg-agent
35792 starting parameters.
35793 * tests/openpgp/version.test: Ditto.
35795 2014-10-29 Werner Koch <wk@gnupg.org>
35797 common: Check option arguments for a valid range.
35798 + commit 0d73a242cb53522669cf712b5ece7d1ed05d003a
35799 * common/argparse.h (ARGPARSE_INVALID_ARG): New.
35800 * common/argparse.c: Include limits h and errno.h.
35801 (initialize): Add error strings for new error constant.
35802 (set_opt_arg): Add range checking.
35804 Fix stdint.h problem for Apple.
35805 + commit f5592fcff308007322a201c970a6d5e8763c9fe3
35806 * gl/stdint_.h [__APPLE__]: Include hack.
35808 2014-10-27 Werner Koch <wk@gnupg.org>
35810 speedo: Fixes for native build.
35811 + commit 158fe900183daf745821dea7a70cf1c673cd8de0
35812 * build-aux/speedo.mk (TARGETOS): Init with empty string.
35813 (speedo_pkg_gnupg_configure): Use --enable-gpg2-is-gpg only for w32.
35814 (INST_VERSION, INST_PROD_VERSION): Create only for w32.
35816 2014-10-24 Werner Koch <wk@gnupg.org>
35818 agent: Support pinentries with integrated repeat passphrase feature.
35819 + commit c9aadcb3a248632c07391ff3d829bece9320a901
35820 * agent/agent.h (struct pin_entry_info_s): Add fields repeat_okay and
35822 * agent/call-pinentry.c (close_button_status_cb): Rewrite and check
35823 for PIN_REPEAT. Change users to check only the relevant bit.
35824 (agent_askpin): Support repeat logic of new Pinentries.
35826 * agent/command-ssh.c (ssh_identity_register): Use the new repeat
35828 * agent/genkey.c (agent_ask_new_passphrase): Ditto.
35830 2014-10-19 Werner Koch <wk@gnupg.org>
35832 gpg: Silence "packet with obsolete versoin" warnings.
35833 + commit 472a4a0d82add2d17154fa38e0074eaea56c28c1
35834 * g10/parse-packet.c (parse_key): Print warning only in very verbose
35837 gpg: Make card key generation work again.
35838 + commit 1b8decc4767f0c55867327bdf3113204efcd19a7
35839 * g10/call-agent.c (agent_scd_learn): Rename from agent_learn.
35840 (agent_learn): New.
35841 * g10/keygen.c (gen_card_key): Call new agent-learn.
35843 2014-10-17 Werner Koch <wk@gnupg.org>
35845 dirmngr: Allow building without LDAP support.
35846 + commit 6d9491842d5da597980eaa59e1e3e2137965fe09
35847 * configure.ac: Add option --disable-ldap.
35848 (USE_LDAP): New ac_define and am_conditional.
35849 * dirmngr/Makefile.am: Take care of USE_LDAP.
35850 * dirmngr/dirmngr.c (!USE_LDAP): Make all ldap options dummy options
35851 and do not call any ldap function.
35852 * dirmngr/server.c (!USE_LDAP): Do not call any ldap function.
35853 * dirmngr/crlfetch.c (!USE_LDAP): Ditto.
35855 w32: Set SYSROOT to help finding config scripts.
35856 + commit a13705f4c18db56765f4af31376e81241dbabebe
35857 * autogen.sh <build-w32>: Set SYSROOT.
35859 gpg: Remove all support for v3 keys and always create v4-signatures.
35860 + commit 8fd150b05b744fe9465057c12529d5e6b6b02785
35861 * g10/build-packet.c (do_key): Remove support for building v3 keys.
35862 * g10/parse-packet.c (read_protected_v3_mpi): Remove.
35863 (parse_key): Remove support for v3-keys. Add dedicated warnings for
35865 * g10/keyid.c (hash_public_key): Remove v3-key support.
35866 (keyid_from_pk): Ditto.
35867 (fingerprint_from_pk): Ditto.
35869 * g10/options.h (opt): Remove fields force_v3_sigs and force_v4_certs.
35870 * g10/gpg.c (cmd_and_opt_values): Remove oForceV3Sigs, oNoForceV3Sigs,
35871 oForceV4Certs, oNoForceV4Certs.
35872 (opts): Turn --force-v3-sigs, --no-force-v3-sigs, --force-v4-certs,
35873 --no-force-v4-certs int dummy options.
35874 (main): Remove setting of the force_v3_sigs force_v4_certs flags.
35875 * g10/revoke.c (gen_revoke, create_revocation): Always create v4 certs.
35876 * g10/sign.c (hash_uid): Remove support for v3-signatures
35877 (hash_sigversion_to_magic): Ditto.
35878 (only_old_style): Remove this v3-key function.
35879 (write_signature_packets): Remove support for creating v3-signatures.
35880 (sign_file): Ditto.
35881 (sign_symencrypt_file): Ditto.
35882 (clearsign_file): Ditto. Remove code to emit no Hash armor line if
35883 only v3-keys are used.
35884 (make_keysig_packet): Remove arg SIGVERSION and force using
35885 v4-signatures. Change all callers to not pass a value for this arg.
35886 Remove all v3-key related code.
35887 (update_keysig_packet): Remove v3-signature support.
35888 * g10/keyedit.c (sign_uids): Always create v4-signatures.
35890 * g10/textfilter.c (copy_clearsig_text): Remove arg pgp2mode and
35893 2014-10-13 Werner Koch <wk@gnupg.org>
35895 gpg: Remove extra RSA import status line.
35896 + commit fab89f159bcb36ea7285af661d5756eefa981822
35897 * g10/import.c (stats_s): Remove field "imported_rsa".
35898 (import_print_stats): Do not print separate value for RSA.
35899 (import_one): Remove the RSA counter.
35901 gpg: Fix informative printing of user ids.
35902 + commit 21c0ea6bafafbcc4a2e07f0ac76275cc0229e9a0
35903 * g10/getkey.c (keyid_list): Add field "fpr".
35904 (cache_user_id): Store fpr and check for dups only by fpr.
35905 (get_pubkey_byfpr): New.
35906 (get_user_id_string): Make static and use xasprintf.
35907 (get_long_user_id_string): Use xasprintf.
35908 (get_user_id_byfpr): New.
35909 (get_user_id_byfpr_native): New.
35910 * g10/keyid.c (fingerprint_from_pk): Make arg RET_LEN optional.
35911 * g10/import.c (import_one): Use get_user_id_byfpr_native.
35913 gpg: Allow importing keys with duplicated long key ids.
35914 + commit c60814a5ce13932d933b363abc0c60c12783ae2f
35915 * g10/keydb.c (keydb_handle): Add field no_caching.
35916 (keyblock_cache): Repalce field kid by fpr.
35917 (keydb_disable_caching): New.
35918 (keydb_search): Use the fingerprint as cache index.
35920 * g10/import.c (import_one): Use the fingerprint and not the kid to
35921 lookup the key. Call keydb_disable_caching beofre re-searching for
35924 * tests/openpgp/import.test: Add a test case.
35926 tests: Speed up conventional encryption tests for gpg.
35927 + commit 2543f0ab9c7b4247347688863f898667bae31984
35928 * tests/openpgp/conventional-mdc.test: Add an s2k-count option.
35929 * tests/openpgp/conventional.test: Ditto.
35931 2014-10-12 Werner Koch <wk@gnupg.org>
35933 gpg: Minor change for better readability.
35934 + commit 2d68dc437e7de92619abe3a019b0a7606487b6bf
35935 * g10/build-packet.c (write_version): Remove.
35936 (do_pubkey_enc, do_onepass_sig): Write version directly.
35938 2014-10-10 Werner Koch <wk@gnupg.org>
35940 doc: Fix a man page rendering problem.
35941 + commit 5b5e5a6027ae1743719e112aa4e9055f1b8133a7
35942 * doc/gpg-agent.texi (Agent Configuration): Fix rendering of the
35943 sshcontrol example.
35945 2014-10-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
35947 gpg: Add build and runtime support for larger RSA keys.
35948 + commit 6cabb7a2a18f871b8c3d5de58bcdc5aaa5b201af
35949 * configure.ac: Added --enable-large-secmem option.
35950 * g10/options.h: Add opt.flags.large_rsa.
35951 * g10/gpg.c: Contingent on configure option: adjust secmem size,
35952 add gpg --enable-large-rsa, bound to opt.flags.large_rsa.
35953 * g10/keygen.c: Adjust max RSA size based on opt.flags.large_rsa
35954 * doc/gpg.texi: Document --enable-large-rsa.
35956 2014-10-09 Werner Koch <wk@gnupg.org>
35958 gpg: Skip overlong keys and a print a warning.
35959 + commit 2ca90f78cee91c43b8d538d1cb92728f8e1452d5
35960 * kbx/keybox-search.c (keybox_search): Add arg r_skipped and skip too
35962 * sm/keydb.c (keydb_search): Call keybox_search with a dummy param.
35963 * g10/keydb.c (struct keydb_handle): Add field skipped_long_blobs.
35964 (keydb_search_reset): Reset that field.
35965 (keydb_search): Update that field.
35966 (keydb_get_skipped_counter): New.
35967 * g10/keylist.c (list_all): Print count of skipped keys.
35969 gpg: Sync keylist output and warning messages.
35970 + commit 60e21d8b85888b8c9ea15c70268f98d780fdf5fb
35971 * g10/keylist.c (list_all): Flush stdout before logging.
35972 * g10/misc.c (print_pubkey_algo_note): Ditto.
35973 (print_cipher_algo_note): Ditto.
35974 (print_digest_algo_note): Ditto.
35975 (print_md5_rejected_note): Ditto.
35977 kbx: Fix handling of overlong keys.
35978 + commit b6507bb80e4e4aa5c85a918fdcf5c28cccb75081
35979 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 10^6 to 2MiB.
35980 (_keybox_read_blob2): Skip too long record records.
35981 (_keybox_write_blob): Do not accept too long record.
35982 * kbx/keybox-dump.c (file_stats_s): Add field skipped_long_blobs.
35983 (_keybox_dump_file): Print new counter.
35984 (_keybox_dump_file): Skip too long records.
35987 To test this feature you may set the limit back to 1MiB and use key
35988 F7F0E70F307D56ED which is in my local copy close to 2MiB. Without
35989 this patch it was possible to import the key but access to that key
35990 and all keys stored after it was not possible.
35992 gpg: Take care to use pubring.kbx if it has ever been used.
35993 + commit ec332d58efc50f6508b87fc9f51db68c39cee044
35994 * kbx/keybox-defs.h (struct keybox_handle): Add field for_openpgp.
35995 * kbx/keybox-file.c (_keybox_write_header_blob): Set openpgp header
35997 * kbx/keybox-blob.c (_keybox_update_header_blob): Add arg for_openpgp
35998 and set header flag.
35999 * kbx/keybox-init.c (keybox_new): Rename to do_keybox_new, make static
36000 and add arg for_openpgp.
36001 (keybox_new_openpgp, keybox_new_x509): New. Use them instead of the
36003 * kbx/keybox-update.c (blob_filecopy): Add arg for_openpgp and set the
36004 openpgp header flags.
36006 * g10/keydb.c (rt_from_file): New. Factored out and extended from
36007 keydb_add_resource.
36008 (keydb_add_resource): Switch to the kbx file if it has the openpgp
36011 * kbx/keybox-dump.c (dump_header_blob): Print header flags.
36013 2014-10-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
36015 Avoid unnecessary library linkage.
36016 + commit 27fe067efea883629354450a042ad09e47d90ff8
36017 * dirmngr/Makefile.am: Avoid $(DNSLIBS) for dirmngr_ldap
36018 * g10/Makefile.am: $(LIBREADLINE) is only for gpg2; gpgv2 does not
36019 need $(LIBASSUAN_LIBS)
36020 * sm/Makefile.am: gpgsm does not need $(ZLIBS)
36021 * tools/Makefile.am: gpgconf does not need $(NPTH_LIBS)
36023 2014-10-08 Werner Koch <wk@gnupg.org>
36025 gpg: Avoid error exit if keygrip computations fails in a key listing.
36026 + commit 3ae6afc1336d42bd95fa0b7f5f83bd299ae26b97
36027 * g10/keyid.c (keygrip_from_pk): Use log_info and clear array on error.
36029 2014-10-03 Werner Koch <wk@gnupg.org>
36031 Release 2.1.0-beta864.
36032 + commit 0943c7cc23371943e9670a2f35c318d847cbac6a
36035 gpg: Allow creating a cert-only primary key.
36036 + commit bc8583f247898a1fa45f6de834d34b335ab1952c
36037 * g10/keygen.c (ask_key_flags): Allow a 'c' in direct entry.
36039 build: Add configure options --disable-{ntb,gnu}tls.
36040 + commit 6522a68d8d11e15ee77102e6830f251c2d9f440d
36041 * configure.ac: Add --disable-ntbtls and --disable-gnutls.
36043 2014-10-03 Andre Heinecke <aheinecke@intevation.de>
36045 gpg: Check gpg-agent version before 2.1 migration.
36046 + commit a6fcdbc9e0fc0e45a3badc23813e689e83059b61
36047 * g10/call-agent.c, g10/call-agent.h (agent_get_version): New.
36048 * g10/migrate.c (migrate_secring): Abort migration if
36049 agent_get_version returns not at least 2.1.0
36051 2014-10-03 Werner Koch <wk@gnupg.org>
36053 po: Update German translation.
36054 + commit b15d5d42adf31c0797797ebe19c471ab6f52c668
36057 Remove support for the GPG_AGENT_INFO envvar.
36058 + commit 9c380384dafb213334f8834178c5ceb0bf33db6e
36059 * agent/agent.h (opt): Remove field use_standard_socket.
36060 * agent/command.c (cmd_killagent): Always allow killing.
36061 * agent/gpg-agent.c (main): Turn --{no,}use-standard-socket and
36062 --write-env-file into dummy options. Always return true for
36063 --use-standard-socket-p. Do not print the GPG_AGENT_INFO envvar
36064 setting or set that envvar.
36065 (create_socket_name): Simplify by removing non standard socket
36067 (check_for_running_agent): Ditto.
36068 * common/asshelp.c (start_new_gpg_agent): Remove GPG_AGENT_INFO use.
36069 * common/simple-pwquery.c (agent_open): Ditto.
36070 * configure.ac (GPG_AGENT_INFO_NAME): Remove.
36071 * g10/server.c (gpg_server): Do not print the AgentInfo comment.
36072 * g13/server.c (g13_server): Ditto.
36073 * sm/server.c (gpgsm_server): Ditto.
36074 * tools/gpgconf.c (main): Simplify by removing non standard socket
36077 2014-10-02 Werner Koch <wk@gnupg.org>
36079 gpg: Fix regression removing SHA256.
36080 + commit 688a903b4b3ad348c0d09e9d3fab8a12f4f94311
36081 * g10/misc.c (map_md_openpgp_to_gcry): Always use SHA256.
36083 First changes for future use of NTBTLS.
36084 + commit f2361e6d582d4343d71d294ed1da654afe7750ee
36085 * configure.ac (NEED_NTBTLS_ABI, NEED_NTBTLS_VERSION): New.
36086 (HTTP_USE_NTBTLS): New. Prefer over GNUTLS.
36087 * m4/ntbtls.m4: New.
36088 * m4/Makefile.am (EXTRA_DIST): Add new file.
36089 * common/http.c: Add conditionals to eventually use NTBTLS.
36091 build: Update m4 scripts.
36092 + commit 6bc0cd6202033be113999dbf27be4014bdf2c784
36093 * m4/gpg-error.m4: Update from Libgpg-error git master.
36094 * m4/libgcrypt.m4: Update from Libgcrypt git master.
36095 * configure.ac: Declare SYSROOT a precious variable. Add extra error
36096 message for library configuration mismatches.
36098 2014-09-29 Werner Koch <wk@gnupg.org>
36100 doc: Remove GnuPG-1 related parts from gpg.texi.
36101 + commit edd191e5b006dc6ace1d41672e7201cbe58c41c9
36102 * doc/Makefile.am (YAT2M_OPTIONS): Add 2.1 to the source info.
36103 * doc/gpg.texi: Remove gpg1 related texts.
36105 2014-09-27 Werner Koch <wk@gnupg.org>
36107 gpg: Default to SHA-256 for all signature types on RSA keys.
36108 + commit d33246700578cddd1cb8ed8164cfbba50aba4ef3
36109 * g10/main.h (DEFAULT_DIGEST_ALGO): Use SHA256 in --gnupg and SHA1 in
36110 strict RFC or PGP modes.
36111 * g10/sign.c (make_keysig_packet): Use DEFAULT_DIGEST_ALGO also for
36112 RSA key signatures.
36113 * configure.ac: Do not allow to disable sha256.
36115 gpg: Simplify command --gen-key and add --full-gen-key.
36116 + commit f3625bb018fa8d5bc754f982996f8788386f0a9d
36117 * g10/gpg.c (aFullKeygen): New.
36118 (opts): Add command --full-key-gen.
36119 (main): Implement it.
36120 * g10/keygen.c (DEFAULT_STD_ALGO): Replace wrong GCRY_PK_RSA although
36121 the value is identical.
36122 (DEFAULT_STD_CURVE): New.
36123 (DEFAULT_STD_SUBALGO): New.
36124 (DEFAULT_STD_SUBKEYSIZE): New.
36125 (DEFAULT_STD_SUBCURVE): New.
36126 (quick_generate_keypair): Use new macros here.
36127 (generate_keypair): Add arg "full" and fix call callers. Do not ask
36128 for keysize in non-full node.
36129 (ask_user_id): Add arg "full" and simplify for non-full mode.
36131 2014-09-26 Werner Koch <wk@gnupg.org>
36133 gpg: Add shortcut for setting key capabilities.
36134 + commit 7ff4ea2160e87a16bf701552d3b9c7ab1c42f9ec
36135 * g10/keygen.c (ask_key_flags): Add shortcut '='.
36136 * doc/help.txt (gpg.keygen.flags): New.
36138 2014-09-25 Werner Koch <wk@gnupg.org>
36140 gpg: Do not always print dashes in obsolete_option.
36141 + commit 20c6da50d4f6264d26d113d7de606971f719a0ca
36142 * g10/gpg.c (main): Pass option names to obsolete_option without
36144 * g10/misc.c (obsolete_option, obsolete_scdaemon_option): Print double
36145 dash only for command line options.
36147 2014-09-25 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
36149 gpg: Warn about (but don't fail) on scdaemon options in gpg.conf.
36150 + commit 371c2b14b0347209efd23b4e54e1981a12d7aeab
36151 * g10/gpg.c: Add config options that should belong in scdaemon.conf
36152 * g10/main.h, g10/misc.c (obsolete_scdaemon_option): New.
36154 2014-09-22 Werner Koch <wk@gnupg.org>
36156 speedo: Check that wget and gpgv are installed.
36157 + commit 59b6f6f16e095162358ac2001aeb2c058de2fd1e
36158 * build-aux/getswdb.sh: Check for required tools.
36160 speedo: Autodetect sha1sum tools.
36161 + commit 2427bc5bc76b00cfe790e1f370113f5b4199e8fa
36162 * build-aux/getswdb.sh: Add option --find-sha1sum.
36163 * build-aux/speedo.mk (check-tools): New phony target. Not yet used.
36164 (SHA1SUM): New var. Use it instead of sha1sum.
36166 gpg: Create default keyring with .kbx suffix.
36167 + commit bc2f5c1d1afbe8ba413e594639fd05f19df32f75
36168 * g10/keydb.c (maybe_create_keyring_or_box): Rename arg for clarity.
36169 (keydb_add_resource): Fix order of args to maybe_create_keyring_or_box
36170 and check and create .kbx.
36172 2014-09-20 Werner Koch <wk@gnupg.org>
36174 gpg: --delete-secret-key - check that a secret key exists.
36175 + commit 1d33d03f0bb576601f5eef1a548cbc519f251b17
36176 * g10/delkey.c (do_delete_key): Check availibility of a secret key.
36178 gpg: Make algorithm selection prompt for ECC more clear.
36179 + commit cf648fc5c8cb20bfea4fd303631ba311bbaf3659
36180 * g10/keygen.c (ask_algo): Change 9 to "ECC and ECC".
36182 2014-09-18 Werner Koch <wk@gnupg.org>
36184 Release 2.1.0-beta834.
36185 + commit 93f158df381af86036332c4314c2d4a64eab3e62
36188 speedo: Distribute needed files.
36189 + commit 72a16d80d4505aa0ff509aae41f848bbe42ed129
36190 * Makefile.am (EXTRA_DIST): Add speedo stuff.
36192 build: Enable gpgtar by default.
36193 + commit 345a8374f31e637a99e6438e527670cf6845ca05
36196 common: Do not build maintainer modules in non-maintainer mode.
36197 + commit 927db789c19cbe5656ff980841ee37dd3a8989e7
36198 * common/Makefile.am (module_maint_tests): Use only in maintainer
36200 (t_common_cflags): New.
36202 common: Remove superfluous statements.
36203 + commit cad181b5ece3ab6910575c82c731ce2b47271a09
36204 * common/exechelp-posix.c: Remove weak pragmas.
36205 * common/sexputil.c (make_canon_sexp_from_rsa_pk): Remove double
36208 g13: Avoid segv after pipe creation failure.
36209 + commit 6e7bcabd781a3ca9ad7dd90d962fb2a239feab4a
36210 * g13/call-gpg.c (gpg_encrypt_blob): Init some vars in case of an
36212 (gpg_decrypt_blob): Ditto.
36214 scd: Fix int/short mismatch in format string of app-p15.c.
36215 + commit b17e8bbf20239e840763f98d3e62f16efdc82ba3
36216 * scd/app-p15.c (parse_certid): Use snprintf and cast value.
36217 (send_certinfo): Ditto.
36218 (send_keypairinfo): Ditto.
36219 (do_getattr): Ditto.
36221 agent: Init a local variable in the error case.
36222 + commit f82a6e0f08725008c5bbf702a5f4c175ea09f01c
36223 * agent/pksign.c (do_encode_md): Init HASH on error.
36225 agent: Remove left over debug output.
36226 + commit 4f35ef499ac913036b7b69296a62afe8159b90b8
36227 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Remove debug
36230 agent: Silence compiler warning for a debug message.
36231 + commit ba6f8b3d9ec83b35c4f3839853567491fee2f99c
36232 * agent/call-pinentry.c (agent_query_dump_state): Use %p for
36235 sm: Silence compiler warnings.
36236 + commit 34b2e8c7dcb0edb28f99edbd788d73491334e3c0
36237 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Remove unused var I.
36238 * sm/certreqgen.c (proc_parameters): Init PUBLIC to avoid compiler
36241 gpg: Silence a compiler warning.
36242 + commit 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4
36243 * g10/parse-packet.c (enum_sig_subpkt): Replace hack.
36245 gpg: Replace a hash algo test function.
36246 + commit 327134934d79d141d92170ad3b4a6ef3cb718ee0
36247 * g10/gpg.c (print_mds): Replace openpgp_md_test_algo.
36249 speedo: Various fixes.
36250 + commit 2f065d7ab6c514013eb8504281f50284764c26ec
36251 * build-aux/speedo.mk: Take zlib and bzip2 from ftp.gnupg.org. Minor
36254 2014-09-17 Werner Koch <wk@gnupg.org>
36256 gpg: Print a warning if the subkey expiration may not be what you want.
36257 + commit ae3d1bbb65b65cf3c57bb14886be120f5e31635d
36258 * g10/keyedit.c (subkey_expire_warning): New.
36259 (keyedit_menu): Call it when needed.
36261 gpg: Improve passphrase caching.
36262 + commit 457bce5cd39146df047e4740162125c32c738789
36263 * agent/cache.c (last_stored_cache_key): New.
36264 (agent_get_cache): Allow NULL for KEY.
36265 (agent_store_cache_hit): New.
36266 * agent/findkey.c (unprotect): Call new function and try to use the
36269 * g10/revoke.c (create_revocation): Add arg CACHE_NONCE and pass to
36270 make_keysig_packet.
36271 (gen_standard_revoke): Add arg CACHE_NONCE and pass to
36273 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke with
36276 2014-09-12 Werner Koch <wk@gnupg.org>
36278 gpg: Use algorithm id 22 for EdDSA.
36279 + commit 83c2d2396cc9fa6bdd887a560830fc0f48b01b08
36280 * common/openpgpdefs.h (PUBKEY_ALGO_EDDSA): Change to 22.
36281 * g10/keygen.c (ask_curve): Reword the Curve25519 warning note.
36283 2014-09-11 Werner Koch <wk@gnupg.org>
36285 gpg: Stop early on bogus old style comment packets.
36286 + commit 3d250d21d36e8a0935b645f1ed5134ef9083530e
36287 * g10/parse-packet.c (parse_key): Take care of too short packets for
36288 old style commet packets.
36290 2014-09-10 Werner Koch <wk@gnupg.org>
36292 dirmngr: Support https for KS_FETCH.
36293 + commit 84419f42da0fd436a9e0e669730157e74ce38b77
36294 * dirmngr/ks-engine-hkp.c (cert_log_cb): Move to ...
36295 * dirmngr/misc.c (cert_log_cb): here.
36296 * dirmngr/ks-engine-http.c (ks_http_fetch): Support 307-redirection
36299 dirmngr: Fix the ks_fetch command for the http scheme.
36300 + commit 3b20cc21de86ac8a475bdefd3aebb02a12fb8d0b
36301 * common/http.c (http_session_ref): Allow for NULL arg.
36303 2014-09-08 Werner Koch <wk@gnupg.org>
36305 gpg: Fix memory leak in ECC encryption.
36306 + commit 98f65291d7abecc1e4d618125f33b6ce759e0892
36307 * g10/pkglue.c (pk_encrypt): Fix memory leak and streamline error
36310 2014-09-02 Werner Koch <wk@gnupg.org>
36312 gpg: Fix export of NIST ECC keys.
36313 + commit bf2fc12b83b45953f7afa403b8d91c36d0b50ec9
36314 * common/openpgp-oid.c (struct oidtable): New.
36315 (openpgp_curve_to_oid): Rewrite and allow OID as input.
36316 (openpgp_oid_to_curve): Make use of the new table.
36318 agent: Fix import of OpenPGP EdDSA keys.
36319 + commit afe85582ddc2ebc285728bf6417f8929fd0b3281
36320 * agent/cvt-openpgp.c (get_keygrip): Special case EdDSA.
36321 (convert_secret_key): Ditto.
36322 (convert_transfer_key): Ditto.
36323 (apply_protection): Handle opaque MPIs.
36325 (do_unprotect): Check FLAG_OPAQUE instead of FLAG_USER1 before
36326 unpacking an opaque mpi.
36328 2014-09-01 Kyle Butt <kylebutt@gmail.com>
36330 gpg: Fix export of ecc secret keys by adjusting check ordering.
36331 + commit 4054d86abcb7ad953ed9e988b1765cb9266faefd
36332 * g10/export.c (transfer_format_to_openpgp): Move the check against
36333 PUBKEY_MAX_NSKEY to after the ECC code adjusts the number of
36336 2014-09-01 Werner Koch <wk@gnupg.org>
36338 agent: Allow key unprotection using AES-256.
36339 + commit c913e09ebdbb1a1e9838a0a5897448841f5e9bc3
36340 * agent/protect.c (PROT_CIPHER): Rename to GCRY_CIPHER_AES128 for
36342 (do_decryption): Add args prot_cipher and prot_cipher_keylen. USe
36343 them instead of the hardwired values.
36344 (agent_unprotect): Change to use a table of protection algorithms.
36345 Add AES-256 variant.
36347 2014-08-28 Werner Koch <wk@gnupg.org>
36349 gpg: Do not show "MD5" and triplicated "RSA" in --version.
36350 + commit be98b5960ebd48929c399b0b91c95bfc0cb9749b
36351 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
36352 (build_list_md_test_algo): Ignore MD5.
36354 gpg: Do not show "MD5" and triplicated "RSA" in --version.
36355 + commit 40ad42dbe3c67d8103aedb6b584f4bedc5f93307
36356 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
36357 (build_list_md_test_algo): Ignore MD5.
36359 2014-08-26 Werner Koch <wk@gnupg.org>
36361 gpg: Remove CAST5 from the default prefs and order SHA-1 last.
36362 + commit 15cfd9a3bcdd561091a28c8f989c616b87348463
36363 * g10/keygen.c (keygen_set_std_prefs): Update prefs.
36365 Switch to the libgpg-error provided estream.
36366 + commit 519305feb888b529c005b40445d041a088a2f8fc
36367 * configure.ac (NEED_GPG_ERROR_VERSION): Reguire 1.14.
36368 (GPGRT_ENABLE_ES_MACROS): Define.
36369 (estream_INIT): Remove.
36370 * m4/estream.m4: Remove.
36371 * common/estream-printf.c, common/estream-printf.h: Remove.
36372 * common/estream.c, common/estream.h: Remove.
36373 * common/init.c (_init_common_subsystems): Call gpgrt initialization.
36375 gpg: Allow for positional parameters in the passphrase prompt.
36376 + commit a731c22952278c12c601b73d7581fda3a15a4b5b
36377 * g10/passphrase.c (passphrase_get): Replace sprintf by xasprintf.
36379 2014-08-20 Werner Koch <wk@gnupg.org>
36381 gpg: Fix "can't handle public key algorithm" warning.
36382 + commit cb680c5ea540738692a5c74951802b0fdc658e85
36383 * g10/parse-packet.c (unknown_pubkey_warning): Check for encr/sign
36386 2014-08-19 Werner Koch <wk@gnupg.org>
36388 speedo: Get version numbers from online database.
36389 + commit 31649e72fd106a990614ce3cf720640a841ba722
36390 * build-aux/getswdb.sh: New.
36391 * build-aux/speedo.mk: Get release version numbers from swdb.lst.
36393 build: Create VERSION file via autoconf.
36394 + commit 4fc1c712e986f280057b1bce7ca4696ba6d95dfc
36395 * Makefile.am (dist-hook): Remove creation of VERSION.
36396 (EXTRA_DIST): Add VERSION.
36397 * configure.ac: Let autoconf create VERSION.
36399 2014-08-18 Werner Koch <wk@gnupg.org>
36401 gpg: Install the current release signing pubkey.
36402 + commit e5da80bc1888bf8801e69c9ff99f7f47550f7a09
36403 * g10/distsigkey.gpg: New.
36405 agent: Return NO_SECKEY instead of ENONET for PKSIGN and others.
36406 + commit 3981ff15f3c0829ba22cd37794353502d996683c
36407 * agent/pksign.c (agent_pksign_do): Replace ENONET by NO_SECKEY.
36408 * agent/findkey.c (agent_key_from_file): No diagnostic for NO_SECKEY.
36409 * agent/pkdecrypt.c (agent_pkdecrypt): Replace checking for ENOENT.
36411 kbx: Make user id and signature data optional for OpenPGP.
36412 + commit e4aa006e4807285ffdd881e4e05af3bc47c5c964
36413 * kbx/keybox-blob.c (_keybox_create_openpgp_blob): Remove restriction.
36415 gpg: Change default cipher for --symmetric from CAST5 to AES-128.
36416 + commit 57df1121c18b004dd763b35eabf7b51fc9e8ec38
36417 * g10/main.h (DEFAULT_CIPHER_ALGO): Chhange to AES or CAST5 or 3DES
36418 depending on configure option.
36419 * g10/gpg.c (main): Set opt.s2k_cipher_algo to DEFAULT_CIPHER_ALGO.
36421 yat2m: Support @set and @value.
36422 + commit 425d0750168f6b66a5d78a857cf21375a8f129eb
36423 * doc/yat2m.c (variablelist): New.
36424 (set_variable): New.
36425 (macro_set_p): Also check the variables.
36426 (proc_texi_cmd): Support the @value command.
36427 (parse_file): Support the @set command.
36428 (top_parse_file): Release variablelist.
36430 yat2m: Support the $* command for man page rendering.
36431 + commit 7e51ef0f77962f5fb215da53817caf28899ca190
36434 2014-08-17 Werner Koch <wk@gnupg.org>
36436 estream: Change license from GPL to LPGL.
36437 + commit af1196512f505e8a3a338f9b72394fa3585a5234
36438 * common/estream-printf.c, common/estream-printf.h: Change license.
36439 * common/estream.c, common/estream.h: Ditto.
36441 2014-08-14 Werner Koch <wk@gnupg.org>
36443 Release 2.1.0-beta783.
36444 + commit a13198d9bcee368a8de7a401feb017efc83ff795
36447 po: Update the German (de) translation.
36448 + commit fe9ff33b9dc8793957998341cf4bcf5e50827b41
36451 sm: Create homedir and lock empty keybox creation.
36452 + commit c4b60cdae8dbf68206fd105fd09adeb61a9dafe4
36453 * sm/gpgsm.h (opt): Add field "no_homedir_creation".
36454 * sm/gpgsm.c (main): Set it if --no-options is used.
36455 * sm/keydb.c (try_make_homedir): New. Similar to the one from
36457 (maybe_create_keybox): New. Similar to the one from g10/keydb.c.
36458 (keydb_add_resource): Replace some code by maybe_create_keybox.
36460 gpg: Screen keyserver responses.
36461 + commit c23c18c1543d1ff58f0f78baaa6a8e319c659ecb
36462 * g10/main.h (import_screener_t): New.
36463 * g10/import.c (import): Add screener callbacks to param list.
36464 (import_one): Ditto.
36465 (import_secret_one): Ditto.
36466 (import_keys_internal): Ditto.
36467 (import_keys_stream): Ditto.
36468 * g10/keyserver.c (struct ks_retrieval_screener_arg_s): New.
36469 (keyserver_retrieval_screener): New.
36470 (keyserver_get): Pass screener to import_keys_es_stream().
36472 scd: Minor changes to app-sc-hsm.
36473 + commit a61b28df1f29b1e306115282ec1ce580fa54945a
36474 * scd/app-sc-hsm.c: Re-indendet some parts and set some vars to NULL
36475 after xfree for improbed robustness.
36476 (read_ef_prkd): Replace serial operator by blocks for better
36478 (apply_PKCS_padding): Rewrite for easier auditing.
36479 (strip_PKCS15_padding): Ditto. Add stricter check on SRCLEN.
36481 gpg: Disable an MD5 workaround for pgp2 by default.
36482 + commit ae29b52119aa419989b773b2d6abb6e287dfc81b
36483 * g10/sig-check.c (do_check): Move some code to ...
36484 * g10/misc.c (print_md5_rejected_note): new function.
36485 * g10/mainproc.c (proc_tree, proc_plaintext): Enable MD5 workaround
36486 only if option --allow-weak-digest-algos is used.
36488 gpg: Remove options --pgp2 and --rfc1991.
36489 + commit 2b8d8369d59249b89526c18c5ac276e6445dc35e
36490 * g10/gpg.c (oRFC1991, oPGP2): Remove
36491 (opts): Remove --pgp2 and --rfc1991.
36492 * g10/options.h (CO_PGP2, CO_RFC1991): Remove. Remove all users.
36493 (RFC2440, PGP2): Remove. Remove all code only enabled by these
36495 * tests/openpgp/clearsig.test: Remove --rfc1991 test.
36497 build: Fix autogen.sh base version hack.
36498 + commit 49c9a958e0b786850309bca555d4465c97d337e1
36499 * autogen.sh <find-version>: Fix.
36501 gpg: Remove --compress-keys and --compress-sigs feature.
36502 + commit 71b55e91f02cdb65a8884892f71c4c7bf8a75247
36503 * g10/gpg.c (oCompressKeys, oCompressSigs): Remove.
36504 (opts): Turn --compress-keys and --compress-signs in NOPs.
36505 * g10/options.h (opt): Remove fields compress_keys and compress_sigs.
36506 * g10/export.c (do_export): Remove compress_keys feature.
36507 * g10/sign.c (sign_file): Remove compress_sigs feature.
36509 2014-08-13 Werner Koch <wk@gnupg.org>
36511 gpg: Add list-option "show-usage".
36512 + commit 7d0492075ea638607309b3ea6a792b0e95ea7d98
36513 * g10/gpg.c (parse_list_options): Add "show-usage".
36514 * g10/options.h (LIST_SHOW_USAGE): New.
36515 * g10/keyid.c (usagestr_from_pk): Add arg FILL. Change caller.
36516 * g10/keylist.c (list_keyblock_print): Print usage info.
36518 2014-08-12 Werner Koch <wk@gnupg.org>
36520 gpg: Make --with-colons work again for --search-keys.
36521 + commit a57c33c855c6757c8770529ee71f0f90744cd7a6
36522 * g10/keyserver.c (search_line_handler): Replace log_debug by
36525 2014-08-08 NIIBE Yutaka <gniibe@fsij.org>
36527 po: Update Japanese translation.
36528 + commit 2d9f76e07082fc231303ac2c6ae1aea3c98fa2e4
36531 2014-07-25 Werner Koch <wk@gnupg.org>
36533 scd: Minor and editorial changes to app-sc-hsm.c.
36534 + commit 2e936915cf2f830e60d974d607b08822645f5753
36535 * scd/app-sc-hsm.c (select_and_read_binary): Use SW_ macro.
36536 (parse_certid): Remove useless test.
36537 (send_certinfo, send_keypairinfo): Shrink malloc to the needed size.
36538 (do_getattr): Ditto.
36539 (verify_pin): Use SW_ macro.
36540 (do_decipher): Replace OFS variable and extend comment.
36542 scd: Add a new status word code.
36543 + commit e49c851ff54d5ecf856411bf6cdee721695ea172
36544 * scd/apdu.h (SW_REF_DATA_INV): New.
36545 * scd/apdu.c (apdu_strerror): Add string.
36547 2014-07-25 Andreas Schwier <andreas.schwier@cardcontact.de>
36549 scd: Support for SmartCard-HSM.
36550 + commit 8eb9224f32ddf1c9e1490c4d9688a177f8b6ae64
36551 * scd/app-sc-hsm.c: New.
36552 * scd/app.c (select_application, get_supported_applications): Register
36555 2014-07-25 Werner Koch <wk@gnupg.org>
36557 gpg: Switch to an EdDSA format with prefix byte.
36558 + commit 557cc11a605dd280d03c52d8b546deed8c4c714d
36559 * g10/keygen.c (gen_ecc): USe "comp" for EdDSA.
36561 2014-07-23 Werner Koch <wk@gnupg.org>
36563 agent: Show just one warning with all failed passphrase constraints.
36564 + commit b3378b3a56fc90ba8ae38e6298b23a378305af32
36565 * agent/genkey.c (check_passphrase_constraints): Build a final warning
36568 agent: Only one confirmation prompt for an empty passphrase.
36569 + commit a24510d53bb23e3a680ed2c306e576268c07060d
36570 * agent/genkey.c (check_passphrase_constraints): Moev empty passphrase
36571 check to the front.
36573 gpg: Add command --quick-gen-key.
36574 + commit ea186540db5b418bc6f6e5ca90337672c9981c88
36575 * g10/gpg.c (aQuickKeygen): New.
36576 * g10/misc.c (is_valid_user_id): New stub.
36577 * g10/keygen.c (quickgen_set_para): New.
36578 (quick_generate_keypair): New.
36580 common: Add cpr_get_answer_is_yes_def()
36581 + commit 75127bc4561787aa9bc1cf976658e20192446d7f
36582 * g10/cpr.c (cpr_get_answer_is_yes): Factor code out to ....
36583 (cpr_get_answer_is_yes_def): ...new.
36585 gpg: Make --quick-sign-key promote local key signatures.
36586 + commit 17404b2fccbc74c4f0b2364cc08e9dcc64175cf8
36587 * g10/keyedit.c (sign_uids): Promote local sigs in quick mode.
36589 2014-07-22 Werner Koch <wk@gnupg.org>
36591 scd: Do not use the pcsc-wrapper.
36592 + commit bc6b452129178658da7241903ca2174c79281752
36593 * scd/apdu.c (NEED_PCSC_WRAPPER): Do not define.
36594 * scd/Makefile.am (libexec_PROGRAMS): Remove gnupg-pcsc-wrapper
36595 (gnupg_pcsc_wrapper_SOURCES): Remove.
36596 (gnupg_pcsc_wrapper_LDADD): Remove.
36597 (gnupg_pcsc_wrapper_CFLAGS): Remove.
36599 2014-07-21 Werner Koch <wk@gnupg.org>
36601 gpg: Improve --list-packets output for faulty packets.
36602 + commit 5b34e347b612765f31061d077b7c343e08662ba9
36603 * g10/parse-packet.c: Add list_mode output for certain failures.
36605 gpg: Cap size of attribute packets at 16MB.
36606 + commit bab9cdd971f35ff47e153c00034c95e7ffeaa09a
36607 * g10/parse-packet.c (parse_attribute): Avoid xmalloc failure and cap
36610 2014-07-03 Werner Koch <wk@gnupg.org>
36612 Release 2.1.0-beta751.
36613 + commit 5ae34f574baca2b98a09fd982c941855558408e1
36616 gpg: Make show-uid-validity the default.
36617 + commit 5214d8f02bf65fb0a4af15ff80cf1369ccd4c167
36620 tests: Fix end-of-all-ticks test for Western locales.
36621 + commit 3533860ee316918dd47501c53e910bfd0032b39d
36622 * common/t-timestuff.c (test_timegm): Use timegm if available.
36623 (main): Set TX to UTC if timegm is not available.
36625 2014-07-03 Kristian Fiskerstrand <kf@sumptuouscapital.com>
36627 gpg: Spelling error.
36628 + commit b51af333bdf77c042c9fe748616e80d1f5e4d3f9
36631 2014-06-30 Werner Koch <wk@gnupg.org>
36633 gpg: Auto-create revocation certificates.
36634 + commit 03018ef9eec75e4d91ea53c95547a77dedef8f80
36635 * configure.ac (GNUPG_OPENPGP_REVOC_DIR): New config define.
36636 * g10/revoke.c (create_revocation): Add arg "leadin".
36637 (gen_standard_revoke): New.
36638 * g10/openfile.c (get_openpgp_revocdir): New.
36639 (open_outfile): Add MODE value 3.
36640 * g10/keyid.c (hexfingerprint): New.
36641 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke.
36643 estream: Fix minor glitch in "%.*s" format.
36644 + commit aa5b4392aac99382d96be94782ae745e0a42484a
36645 * common/estream-printf.c (pr_string): Take care of non-nul terminated
36648 gpg: Rearrange code in gen_revoke.
36649 + commit 3a01b220715b3d1a90d94353e4980ab5a1ea8f26
36650 * g10/revoke.c (gen_revoke): Factor some code out to ...
36651 (create_revocation): new.
36653 gpg: Create exported secret files and revocs with mode 700.
36654 + commit c434de4d83ccfaca8bde51de5c2ac8d9656e4e18
36655 * common/iobuf.c (direct_open): Add arg MODE700.
36656 (iobuf_create): Ditto.
36657 * g10/openfile.c (open_outfile): Add arg RESTRICTEDPERM. Change call
36658 callers to pass 0 for it.
36659 * g10/revoke.c (gen_desig_revoke, gen_revoke): Here pass true for new
36661 * g10/export.c (do_export): Pass true for new arg if SECRET is true.
36663 common: Minor code cleanup for a legacy OS.
36664 + commit 35fdfaa0b94342c53eb82eea155a37ad4009fa9f
36665 * common/iobuf.c (direct_open) [__riscos__]: Simply cpp conditionals.
36667 2014-06-27 Werner Koch <wk@gnupg.org>
36669 speedo: Fix the w32 installer name.
36670 + commit adad1872b448593275d8cae06dffe376bee067b5
36673 po: Update some strings of the French (fr) translation.
36674 + commit 1ef7870fc96f6dd8137e9bfabf9b06787f75dffd
36677 po: Update the German (de) translation.
36678 + commit c2e3eb98884785e6794dc79c1a53d75945f4c1ab
36681 agent: Adjust for changed npth_eselect under W32.
36682 + commit a1dff86da8ebaab6e154360f538ca9d43a6c4934
36683 * agent/gpg-agent.c (handle_connections) [W32]: Make events_set an
36684 unsigned int to match the changed prototype.
36686 dirmngr: Use the homedir based socket also under W32.
36687 + commit 5e1f9b5e1427688ac340f0829e02bece7f0caf9c
36688 * common/homedir.c (dirmngr_user_socket_name): Use same code for all
36691 2014-06-27 Yuri Chornoivan <yurchor@ukr.net>
36693 po: Update and enable Ukrainian (uk) translation.
36694 + commit 2c4025576105a9deb78e1cfb22c11af4af09c4fa
36697 Fix typos in messages.
36698 + commit e56a2d6a56d95c0f169506a8dc74a845c22b699d
36701 2014-06-27 Werner Koch <wk@gnupg.org>
36703 build: Remove unused options.
36704 + commit 2540a4b674a17b45ec33f43f26e830e74ff0afed
36705 * configure.ac: Remove option --build-agent-only.
36706 (FAKE_CURL, GPGKEYS_CURL): Remove check for cURL
36707 (GPGKEYS_MAILTO): Remove ac_subst but keep the currently unused
36709 (GPGKEYS_KDNS): Remove ac_subst.
36710 * autogen.rc (final_info): Remove suggestion to use the removed option
36713 2014-06-27 NIIBE Yutaka <gniibe@fsij.org>
36715 scd: Add pinpad support for REINER SCT cyberJack go.
36716 + commit 73ba75ad8b933beddd2c3f4b66937b56faa0a2d8
36717 * scd/ccid-driver.h (VENDOR_REINER, CYBERJACK_GO): New.
36718 * scd/ccid-driver.c (ccid_transceive_secure): Handle the case for
36719 VENDOR_REINER. Original work was by Alina Friedrichsen (tiny change).
36721 2014-06-27 Werner Koch <wk@gnupg.org>
36723 scd: Support reader Gemalto IDBridge CT30.
36724 + commit 24be0f24d3a9325a04de10ae0e5e277bf28a74fe
36725 * scd/ccid-driver.h (GEMPC_CT30): New product id.
36726 * scd/ccid-driver.c (parse_ccid_descriptor): Add quirk for that
36729 2014-06-26 Werner Koch <wk@gnupg.org>
36731 gpg: Limit keysize for unattended key generation to useful values.
36732 + commit 03f0b51fe454f8dbe77c302897f7a5899c4c5380
36733 * g10/keygen.c (gen_elg): Enforce keysize 1024 to 4096.
36734 (gen_rsa): Enforce keysize 1024 to 4096.
36735 (gen_dsa): Enforce keysize 768 to 3072.
36737 Enable DNS SRV records again.
36738 + commit c0d1e7fca95629e1cddd7d129fa51b9a6556cb70
36739 * configure.ac (GPGKEYS_HKP, GPGKEYS_FINGER): Remove ac_subst.
36740 (use_dns_srv): Make test work.
36742 agent: Fix export of RSA keys to OpenPGP.
36743 + commit 9a034acf8ab6f85c65ccc75a4fd7b8dd47b73e3a
36744 * agent/cvt-openpgp.c (convert_transfer_key): Fix sexp build format
36747 gpg,gpgsm: Simplify wrong_args function.
36748 + commit 572502bd2c0637429bca547ba882629640477495
36751 speedo: "make clean-gnupg" may not remove the source.
36752 + commit c029a184d6a1a96c6de234835fff97d4e946b19c
36753 * build-aux/speedo.mk (clean-$(1)): Take care of gnupg.
36755 gpgsm: Fix default config name.
36756 + commit 2480b0253166712a2f20b92f34c8e4c2db0fc26f
36759 2014-06-25 Werner Koch <wk@gnupg.org>
36761 doc: Improve the rendering of the manual.
36762 + commit b5f95c1b566f9530127f3f34e10d120a951cf428
36765 doc: Update for modern makeinfo.
36766 + commit f149e05427a370f5985bc3fb142370b043f19924
36767 * doc/texi.css: Remove.
36768 * doc/Makefile.am (AM_MAKEINFOFLAGS): Use --css-ref.
36770 gpg: Allow key-to-card upload for cert-only keys.
36771 + commit f171fd226e84311f92545ca0494771db07ba777d
36772 * g10/card-util.c (card_store_subkey): Allo CERT usage for key 0.
36774 2014-06-24 Werner Koch <wk@gnupg.org>
36776 doc: Add conditionals for GnuPG-1.
36777 + commit 2c8e00137a340d04f0836f75e138dd85f8c9eff7
36780 2014-06-20 Werner Koch <wk@gnupg.org>
36782 gpg: Make export of ECC keys work again.
36783 + commit f4fcaa29367daacfe0ca209fa83dfa8640ace276
36784 * agent/cvt-openpgp.c (convert_to_openpgp): Use the curve name instead
36785 of the curve parameters.
36786 * g10/export.c (canon_pubkey_algo): Rename to ...
36787 (canon_pk_algo): this. Support ECC.
36788 (transfer_format_to_openpgp): Expect curve name.
36790 gpg: Avoid infinite loop in uncompressing garbled packets.
36791 + commit d6ca407a27877174c10adfae9dc601bea996cf27
36792 * g10/compress.c (do_uncompress): Limit the number of extra FF bytes.
36794 2014-06-17 Kristian Fiskerstrand <kf@sumptuouscapital.com>
36796 gpg: Fix a couple of spelling errors.
36797 + commit 3f17b74aa57ac1ea2f3aa93dec4889778a21afeb
36800 2014-06-17 Werner Koch <wk@gnupg.org>
36802 speedo: Support building from dist-source generated tarball.
36803 + commit 47e63dc00169030b6ff01ab67e73e52aec1395db
36806 2014-06-13 Werner Koch <wk@gnupg.org>
36808 http: Print human readable GNUTLS status.
36809 + commit 5bf04522e353675e4c3eda118fee2580756704a2
36810 * common/http.c (send_gnutls_bye): Take care of EAGAIN et al.
36811 (http_verify_server_credentials): Print a human readable status.
36813 2014-06-12 Werner Koch <wk@gnupg.org>
36815 gpg: Improve the output of --list-packets.
36816 + commit d8314e31c58ea0827d0e2361dabcdf869ab08fce
36817 * g10/parse-packet.c (parse): Print packet meta info in list mode.
36819 2014-06-11 Werner Koch <wk@gnupg.org>
36821 speedo: Improve building of the w32 installer.
36822 + commit 6eeb31abee82cb2016bf054cd302af64f6dfdc2e
36823 * build-aux/speedo.mk: Change name of build directory to PLAY.
36824 Improve the dist-source target.
36825 * build-aux/speedo/w32/gdk-pixbuf-loaders.cache: Add a blank
36826 line (plus comment).
36827 * build-aux/speedo/w32/inst.nsi: Change name of file to gnupg-w32-*.
36828 Install more tools.
36830 2014-06-10 Werner Koch <wk@gnupg.org>
36832 speedo: Revamped speedo and include a w32 installer.
36833 + commit e06d5d1a3b4a5c446a27d64cd2da0e48ccec5601
36834 * build-aux/speedo/: New.
36835 * build-aux/speedo/w32/: New.
36837 build: Add more options to autogen.sh.
36838 + commit 0399d87f7aaf2f2126a63899004c5c7bffd4346b
36839 * autogen.sh: Add options --print-host and --print-build.
36841 w32: Fix build problem with dirmngr.
36842 + commit 141d69cb2a94a752244e89f49611923a2f184dfd
36843 * dirmngr/ks-engine-hkp.c (EAI_SYSTEM) [W32]: Add replacement
36846 gpg: Use more specific reason codes for INV_RECP.
36847 + commit 45ed901c466bd72118c2844069f566e190d847d6
36848 * g10/pkclist.c (find_and_check_key, build_pk_list): Use more specific
36849 reasons codes for INV_RECP.
36851 2014-06-06 Werner Koch <wk@gnupg.org>
36853 Improve the beta number generation.
36854 + commit b67e4e523e6d19d384e23c5bb03010caebd150e7
36855 * autogen.sh: Add option --find-version
36856 * configure.ac: Rework the setting of the mym4_ variables.
36858 2014-06-05 Werner Koch <wk@gnupg.org>
36860 Remove keyserver helper code.
36861 + commit 23712e69d3f97df9d789325f1a2f2f61e7d5bbb4
36862 * configure.ac: Remove keyserver helper related stuff.
36863 * Makefile.am (SUBDIRS): Remove keyserver.
36864 * keyserver/Makefile.am: Remove.
36866 gpg: Require confirmation for --gen-key with experimental curves.
36867 + commit 9c9e26d41e7d65711da8dbf1afa452254749621c
36868 * g10/keygen.c (ask_curve): Add arg both. Require confirmation for
36871 gpg: Auto-migrate existing secring.gpg.
36872 + commit 4f0625889b768eabdec52696bf15059a9e8d9c02
36873 * g10/migrate.c: New.
36874 * g10/import.c (import_old_secring): New.
36875 (import_one): Add arg silent.
36876 (transfer_secret_keys): Add arg batch.
36877 (import_secret_one): Add args batch and for_migration.
36878 * g10/gpg.c (main): Call migration function.
36880 2014-06-04 Werner Koch <wk@gnupg.org>
36882 gpgsm: Fix commit be07ed65.
36883 + commit 09a2d4ec74d352dcb4f006aab60b07bc4f5f1a37
36884 * sm/server.c (option_handler): Use "with-secret".
36886 2014-06-03 Werner Koch <wk@gnupg.org>
36888 Add new option --with-secret.
36889 + commit be07ed65e169a7ec3fbecdb1abf988fc0245d9ff
36890 * g10/gpg.c: Add option --with-secret.
36891 * g10/options.h (struct opt): Add field with_secret.
36892 * g10/keylist.c (public_key_list): Pass opt.with_secret to list_all
36894 (list_all, list_one): Add arg mark_secret.
36895 (list_keyblock_colon): Add arg has_secret.
36896 * sm/gpgsm.c: Add option --with-secret.
36897 * sm/server.c (option_handler): Add option "with-secret".
36898 * sm/gpgsm.h (server_control_s): Add field with_secret.
36899 * sm/keylist.c (list_cert_colon): Take care of with_secret. Also move
36900 the token string from the wrong field 14 to 15.
36902 gpgsm: New commands --export-secret-key-{p8,raw}
36903 + commit 0beec2f0f255a71f9d5a4a0729d0259f673e8838
36904 * sm/gpgsm.c: Add new commands.
36905 * sm/minip12.c (build_key_sequence): Add arg mode.
36906 (p12_raw_build): New.
36907 * sm/export.c (export_p12): Add arg rawmode. Call p12_raw_build.
36908 (gpgsm_p12_export): Ditto.
36909 (print_short_info): Print the keygrip.
36911 2014-06-02 Werner Koch <wk@gnupg.org>
36913 gpg: Avoid NULL-deref in default key listing.
36914 + commit 958e5f292fa3f8e127f54bc088c56780c564dcae
36915 * g10/keyid.c (hash_public_key): Take care of NULL keys.
36916 * g10/misc.c (pubkey_nbits): Ditto.
36918 gpg: Simplify default key listing.
36919 + commit f3249b1c4d0f2e9e0e8956042677e47fc9c6f6c0
36920 * g10/mainproc.c (list_node): Rework.
36922 gpg: Graceful skip reading of corrupt MPIs.
36923 + commit d9cde7ba7d4556b216f062d0cf92d60cbb204b00
36924 * g10/parse-packet.c (mpi_read): Change error message on overflow.
36926 gpgsm: Handle re-issued CA certificates in a better way.
36927 + commit 715285bcbc12c024dbd9b633805189c09173e317
36928 * sm/certchain.c (find_up_search_by_keyid): Consider all matching
36930 (find_up): Add some debug messages.
36932 gpgsm: Add a way to save a found state.
36933 + commit 42c043a8ad542c131917879c9b458f234b4bb645
36934 * kbx/keybox-defs.h (keybox_found_s): New.
36935 (keybox_handle): Factor FOUND out to above. Add saved_found.
36936 * kbx/keybox-init.c (keybox_release): Release saved_found.
36937 (keybox_push_found_state, keybox_pop_found_state): New.
36939 * sm/keydb.c (keydb_handle): Add field saved_found.
36940 (keydb_new): Init it.
36941 (keydb_push_found_state, keydb_pop_found_state): New.
36943 gpg: Fix bug parsing a zero length user id.
36944 + commit 99972bd6e9abea71f270284f49997de5f00208af
36945 * g10/getkey.c (get_user_id): Do not call xmalloc with 0.
36947 * common/xmalloc.c (xmalloc, xcalloc): Take extra precaution not to
36948 pass 0 to the arguments.
36950 2014-05-19 Werner Koch <wk@gnupg.org>
36952 dirmngr: Print certificates on failed TLS verification.
36953 + commit 9e1c99f8009f056c39a7465b91912c136b248e8f
36954 * dirmngr/ks-engine-hkp.c (cert_log_cb): New.
36955 (send_request): Set callback.
36957 http: Add callback to help logging of server certificates.
36958 + commit 45f15b2d767d4068f79fd5b123e9eeae08a0616d
36959 * common/http.c (http_session_s): Add field cert_log_cb.
36960 (http_session_set_log_cb): New.
36961 (http_verify_server_credentials): Call callback.
36963 2014-05-16 Werner Koch <wk@gnupg.org>
36965 keyserver: Improve support for hkps pools.
36966 + commit d2d9d4fb60e3f2160af6252335364d3aac4b7d17
36967 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add fields cname, v4addr, and
36969 (create_new_hostinfo): Clear them.
36970 (my_getnameinfo): Add args numeric and r_isnumeric.
36971 (is_ip_address): New.
36972 (map_host): Add arg r_host. Rewrite the code to handle pools in a
36974 (ks_hkp_print_hosttable): Change format of help info output.
36975 (make_host_part): Add arg optional r_httphost.
36976 (send_request): Add arg httphost.
36977 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Get httphost and pass it to
36980 http: Allow overriding of the Host header.
36981 + commit 8b90d79818355b81ce223e1cb96cd0c939096fe2
36982 * common/http.c (http_open): Add arg httphost.
36983 (http_open_document): Pass NULL for httphost.
36984 (send_request): Add arg httphost. If given, use HTTPHOST instead of
36985 SERVER. Use https with a proxy if requested.
36986 (http_verify_server_credentials): Do not stop at the first error
36988 * dirmngr/ocsp.c (do_ocsp_request): Adjust call to http_open.
36989 * keyserver/curl-shim.c (curl_easy_perform): Ditto.
36990 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
36991 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Ditto.
36993 2014-05-14 Werner Koch <wk@gnupg.org>
36995 gpg: Fix uninitialized access to search descindex with gpg keyboxes.
36996 + commit 25036ec6abbc0c9d0003dcfe227724038c35a304
36997 * kbx/keybox-search.c (keybox_search): Add arg R_DESCINDEX. Chnage
36999 * g10/keydb.c (keydb_search): Always set DESCINDEX.
37001 w32: Make make_absfilename work with drive letters.
37002 + commit 71fa6a35107d4d4547eb9155d7c2612b6a6a16fb
37003 * common/stringhelp.c (do_make_filename) [HAVE_DRIVE_LETTERS]: Fix.
37005 gpg: Remove useless diagnostic in MDC verification.
37006 + commit 455a4a2212302c05095e736b127f647e95714fe7
37007 * g10/decrypt-data.c (decrypt_data): Do not distinguish between a bad
37008 MDC packer header and a bad MDC.
37010 gpg: Fix glitch entering a full expiration time.
37011 + commit b2945c451d3d3f25ba11a9fe88c6cbf3f88c2fb5
37012 * g10/keygen.c (ask_expire_interval): Get the current time after the
37015 2014-05-08 Werner Koch <wk@gnupg.org>
37017 agent: Fix import of non-protected gpg keys.
37018 + commit 4aeb02562c9db4b96366220b781e2b4fa2d6fd3b
37019 * agent/cvt-openpgp.c (do_unprotect): Return an s-exp also for
37020 non-protected keys.
37021 (convert_from_openpgp_main): Do not call agent_askpin for a
37024 Make more use of *_NAME macros.
37025 + commit cb2aeb4e1157fc0d7dc25d94115973422dc1a800
37026 * configure.ac (GPG_DISP_NAME, GPGSM_DISP_NAME): New.
37027 (GPG_AGENT_DISP_NAME, SCDAEMON_DISP_NAME): New.
37028 (DIRMNGR_DISP_NAME, G13_DISP_NAME): New.
37029 (GPGCONF_DISP_NAME): New.
37030 (SCDAEMON_SOCK_NAME): New.
37031 * common/argparse.c (show_help): Map description string.
37033 2014-05-08 NIIBE Yutaka <gniibe@fsij.org>
37035 agent: Fix auth key comment handling.
37036 + commit fb24808db9af9dfe36f9f6d7fc24e0b903ecc12c
37037 * agent/command-ssh.c (ssh_send_key_public): Handle the case with no
37040 2014-05-07 Werner Koch <wk@gnupg.org>
37042 Make -jN work again.
37043 + commit 57011da53e43f9c8a6c7e7314166c3e17ff8627a
37044 * common/Makefile.am ($(PROGRAMS)): New rule
37045 (t_http_LDADD): Use libcommontls.a without directory prefix.
37046 * dirmngr/Makefile.am ($(PROGRAMS)): New rule.
37048 gpg: Print the key algorithm/curve with signature info.
37049 + commit 359c643d747c890f73f68b42e0aeb896016f05fd
37050 * g10/mainproc.c (check_sig_and_print): Print the name and curve.
37052 gpg: Fix memleak in signature verification of bogus keys.
37053 + commit e73edfb1759d05121ea66f67c775e763bf47d737
37054 * g10/mainproc.c (check_sig_and_print): Factor common code out to ...
37055 (print_good_bad_signature): here.
37057 gpg: Mark experimental algorithms in the key listing.
37058 + commit 09055aa0f7993aaf4dcffdd80d8192945ae6080a
37059 * g10/keylist.c (list_keyblock_print): Remove duplicate curve name.
37060 Print a note for experimental algorithms.
37061 * g10/misc.c (print_pubkey_algo_note): Fix warning message.
37063 gpg: Finish experimental support for Ed25519.
37064 + commit 8fee6c1ce6d116fe7909dbe1184d95bc91305484
37065 * agent/cvt-openpgp.c (try_do_unprotect_arg_s): Add field "curve".
37066 (get_keygrip): Add and use arg CURVE.
37067 (convert_secret_key): Ditto.
37068 (convert_transfer_key): Ditto.
37069 (get_npkey_nskey): New.
37070 (prepare_unprotect): Replace gcrypt functions by
37071 get_npkey_nskey. Allow opaque MPIs.
37072 (do_unprotect): Use CURVE instead of parameters.
37073 (convert_from_openpgp_main): Ditto.
37074 (convert_to_openpgp): Simplify.
37075 * g10/import.c (one_mpi_from_pkey): Remove.
37076 (transfer_secret_keys): Rewrite to use the curve instead of the
37078 * g10/parse-packet.c (parse_key): Mark protected MPIs with USER1 flag.
37080 * common/openpgp-oid.c (openpgp_curve_to_oid): Allow the use of
37081 "NIST P-256" et al.
37082 * g10/keygen.c (ask_curve): Add arg ALGO.
37083 (generate_keypair): Rewrite the ECC key logic.
37085 * tests/openpgp/ecc.test: Provide the "ecc" passphrase.
37087 kbx: Add experimental support for EDDSA.
37088 + commit bdb9c2b314400da9155b8a924e22e486793dda89
37089 * kbx/keybox-openpgp.c (parse_key): Use algo constants and add
37090 experimental support for EdDSA.
37092 agent: Remove greeting message.
37093 + commit a63ed9875830e5b3b4d48b7d97d24c18de36b326
37094 * agent/gpg-agent.c (main): Remove greeting. Make --no-greeting a
37097 2014-05-06 Werner Koch <wk@gnupg.org>
37099 Use "samethread" mode keyword for some es_fopenmem.
37100 + commit 6477e51919ef97f0f9cc05d10cdc7aa2b89faafe
37101 * dirmngr/ks-engine-hkp.c (armor_data): Add mode keyword.
37102 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
37103 * scd/atr.c (atr_dump): Ditto.
37105 2014-05-05 Werner Koch <wk@gnupg.org>
37107 dirmngr: Add support for hkps keyservers.
37108 + commit 60e2fc7d38d8b37d1de944cf230e410c2ce37d5e
37109 * dirmngr/dirmngr.c: Include gnutls.h.
37110 (opts): Add --gnutls-debug and --hkp-cacert.
37111 (opt_gnutls_debug, my_gnutls_log): New.
37112 (set_debug): Set gnutls log level.
37113 (parse_rereadable_options): Register a CA file.
37114 (main): Init GNUTLS.
37115 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Support hkps.
37116 (send_request): Ditto.
37118 http: Add reference counting to the session object.
37119 + commit ea0f5481f01eacedff264bf08144164aa989ec4d
37120 * common/http.c (http_session_t): Add field "refcount".
37121 (_my_socket_new, _my_socket_ref, _my_socket_unref): Add debug code.
37122 (send_request, my_npth_read, my_npth_write): Use SOCK object for the
37124 (http_session_release): Factor all code out to ...
37125 (session_unref): here. Deref SOCK.
37126 (http_session_new): Init refcount and transport ptr.
37127 (http_session_ref): New. Ref and unref all assignments.
37129 2014-05-02 Werner Koch <wk@gnupg.org>
37131 http: Add HTTP_FLAG_FORCE_TLS and http_get_tls_info.
37132 + commit 0e59195642eb26263b8e0b9200290538631d35cd
37133 * common/http.c (http_parse_uri): Factor code out to ...
37134 (parse_uri): here. Add arg FORCE_TLS.
37135 (do_parse_uri): Ditto. Implement flag.
37136 (http_get_tls_info): New.
37137 (http_register_tls_ca): Allow clearing of the list.
37138 (send_request): Use a default verification function.
37139 * common/http.h (HTTP_FLAG_FORCE_TLS): New.
37140 * common/t-http.c (main): Add several command line options.
37142 common: Fix test for openpgp_oid_is_ed25519.
37143 + commit 2def230231abd34f6012df284ab468321ffedc10
37144 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): Add correct
37147 http: Revamp TLS API.
37148 + commit 8412a5825c225c8ff14de3ffaad2e55e040b2eca
37149 * configure.ac (NEED_GNUTLS_VERSION): New.
37150 (HTTP_USE_GNUTLS, LIBGNUTLS_CFLAGS, LIBGNUTLS_LIBS): New ac_subst.
37152 * common/http.h (http_session_t): New.
37153 * common/http.c: Remove compatibility for gnutls < 3.0.
37154 (http_session_s): New.
37155 (cookie_s): Replace gnutls_session_t by http_session_t.
37156 (tls_callback, tls_ca_certlist): New variables.
37157 (my_socket_unref): Add preclose args.
37158 (my_npth_read, my_npth_write): New.
37159 (make_header_line): Fix bug using int* instead of char*.
37160 (http_register_tls_callback): New.
37161 (http_register_tls_ca): New.
37162 (http_session_new): New.
37163 (http_session_release): New.
37164 (http_get_header_names): New.
37165 (escape_data): Add hack to escape in forms mode.
37166 (send_request) [HTTP_USE_GNUTLS]: Support SNI.
37167 (send_request) [HTTP_USE_GNUTLS]: Fix use of make_header_line.
37168 (send_gnutls_bye): New.
37169 (cookie_close): Make use of preclose feature.
37170 (http_verify_server_credentials): New.
37171 (main) [TEST]: Remove test code.
37172 * common/t-http.c: New.
37173 * common/tls-ca.pem: New.
37174 * common/Makefile.am (tls_sources): New. Move http code to here.
37175 (libcommontls_a_SOURCES): New.
37176 (libcommontlsnpth_a_SOURCES): New.
37177 (EXTRA_DIST): Add tls-ca.pem
37178 (module_maint_tests): Add t-http.
37179 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
37181 * dirmngr/Makefile.am (dirmngr_LDADD): Add libcommontlsnpth.
37183 common: Cleanup the use of USE_NPTH and HAVE_NPTH macros.
37184 + commit 84289e85c72ae58c321dfdb96816700a6b7f7122
37185 * configure.ac (HAVE_NPTH): New ac_define.
37186 * common/estream.c: Use USE_NPTH instead of HAVE_NPTH.
37187 * common/http.c: Ditto. Replace remaining calls to pth by npth calls.
37188 (connect_server): Remove useless _().
37189 * common/exechelp-posix.c, common/exechelp-w32.c
37190 * common/exechelp-w32ce.c: Use HAVE_PTH to include npth.h.
37191 * common/init.c (_init_common_subsystems): Remove call to pth_init.
37192 * common/sysutils.c (gnupg_sleep): Use npth_sleep.
37193 * scd/ccid-driver.c (my_sleep): Ditto.
37195 2014-04-30 Werner Koch <wk@gnupg.org>
37197 estream: Implement "samethread" mode keyword.
37198 + commit 8416c875a729426eae05ed1ca9f1ebcb933c246a
37199 * src/estream.c (estream_internal): Add field SAMETHREAD.
37200 (init_stream_lock, lock_stream, trylock_stream, unlock_stream): Use it.
37201 (parse_mode): Add arg SAMETHREAD and parse that keyword.
37202 (es_initialize): Rename to ...
37203 (init_stream_obj): this. Add arg SAMETHREAD.
37204 (es_create): Add arg SAMETHREAD. Call init_stream_lock after
37206 (doreadline): Call es_create with samethread flag.
37207 (es_fopen, es_mopen, es_fopenmem, es_fopencookie, do_fdopen)
37208 (do_fpopen, do_w32open): Implement "samethread" keyword.
37209 (es_freopen): Take samthread flag from old stream.
37210 (es_tmpfile): Call es)_create w/o samethread.
37212 estream: Fix deadlock in es_fileno.
37213 + commit ecea94461ed40f3f6ef662c2501e1d56ec284022
37214 * src/estream.c (es_fileno_unlocked): Call the unlocked functions.
37216 estream: Add debug code to the lock functions.
37217 + commit aeb81727c77dfea3bf5d2d689ffbdc897f2938a7
37218 * common/estream.c (dbg_lock_0, dbg_lock_1, dbg_lock_1): New.
37220 estream: Replace locking macros by functions.
37221 + commit 39e91a5f0a666aad2fef7a840b2cd03949bb1be4
37222 * common/estream.c: Replace most macros.
37224 2014-04-28 NIIBE Yutaka <gniibe@fsij.org>
37227 + commit 21dab64030c95a909767bf6d8f99e8476f9df8a2
37228 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
37229 (convert_transfer_key): Follow newer (>= 1.6) libgcrypt API, which
37230 does not distinguish the detail.
37231 (do_unprotect, convert_from_openpgp_main): Don't call
37232 map_pk_openpgp_to_gcry, as it's the value of libgcrypt API already and
37233 not the value defined by OpenPGP.
37234 (convert_to_openpgp): It's "ecc".
37235 * agent/gpg-agent.c (map_pk_openpgp_to_gcry): Remove.
37236 * g10/call-agent.c (agent_pkdecrypt): Fix off-by-one error.
37237 * g10/pubkey-enc.c (get_it): Fix swapping the fields error.
37239 2014-04-22 Werner Koch <wk@gnupg.org>
37241 gpg: Pass --homedir to gpg-agent.
37242 + commit fdd938a5bbecb5b70f564ae3afb4e17905404bb2
37243 * agent/gpg-agent.c (main): Make sure homedir is absolute.
37244 * common/asshelp.c (lock_spawning): Create lock file with an absolute
37246 (start_new_gpg_agent): Use an absolute name for the socket and pass
37247 option --homedir to the agent.
37248 (start_new_dirmngr): Use an absolute name for the --homedir.
37250 common: Add functions make_absfilename and make_absfilename_try.
37251 + commit 71a54313adf7b57b7b27bb9ad07b142a34306260
37252 * common/stringhelp.c (do_make_filename): Add modes 2 and 3.
37253 (make_absfilename): New.
37254 (make_absfilename_try): New.
37256 common: Add function gnupg_getcwd.
37257 + commit 1a87edab6657a257876ab2f8790f2937feba7066
37258 * tools/gpg-connect-agent.c (gnu_getcwd): Move to ...
37259 * common/sysutils.c (gnupg_getcwd): .. here.
37260 * tools/gpg-connect-agent.c (get_var_ext): Use gnupg_getcwd.
37262 gpg: Print a warning if GKR has hijacked gpg-agent.
37263 + commit ffa39be5ebfc1059a737905ee317c9b6f3d2a77e
37264 * g10/call-agent.c (check_hijacking): New.
37265 (start_agent): Call it.
37266 (membuf_data_cb, default_inq_cb): Move more to the top.
37268 2014-04-17 Werner Koch <wk@gnupg.org>
37270 gpg: New %U expando for the photo viewer.
37271 + commit e184a11f94e2d41cd9266484542631bec23628b5
37272 * g10/photoid.c (show_photos): Set namehash.
37273 * g10/misc.c (pct_expando): Add "%U" expando.
37275 common: Add z-base-32 encoder.
37276 + commit b8a91ebf46a927801866e99bb5a66ab00651424e
37277 * common/zb32.c: New.
37278 * common/t-zb32.c: New.
37279 * common/Makefile.am (common_sources): Add zb82.c
37280 (module_tests): Add t-zb32.
37282 2014-04-16 Werner Koch <wk@gnupg.org>
37284 Two minor code cleanups and one NULL deref on error fix.
37285 + commit a34afa8f2053d75f276d6d28dbf1a43db0fd9768
37286 * common/estream.c (es_freopen): Remove useless check for STREAM.
37287 * kbx/keybox-blob.c (_keybox_create_x509_blob): Remove useless check
37289 * tools/sockprox.c (run_proxy): Do not fclose(NULL).
37291 2014-04-15 Werner Koch <wk@gnupg.org>
37293 gpg: Re-enable secret key deletion.
37294 + commit db3b528239c9d56bc71fd2283e07a3f1d91e4fd0
37295 * g10/call-agent.c (agent_delete_key): New.
37296 * g10/keydb.h (FORMAT_KEYDESC_DELKEY): New.
37297 * g10/passphrase.c (gpg_format_keydesc): Support new format.
37298 * g10/delkey.c (do_delete_key): Add secret key deletion.
37300 gpg: Re-indent a file.
37301 + commit d25d00b89efed461d344028d0e2e2be38cc77628
37302 * g10/delkey.c: Re-indent.
37303 (do_delete_key, delete_keys): Change return type top gpg_error_t.
37305 gpg: Fix regression in secret key export.
37306 + commit c4d983239a3f0a18c77f0a5aeba520a81a1b86e8
37307 * agent/cvt-openpgp.c (convert_to_openpgp): Fix use
37308 gcry_sexp_extract_param.
37309 * g10/export.c (do_export_stream): Provide a proper prompt to the
37312 gpg: Change pinentry prompt to talk about "secret key".
37313 + commit e549799db66be30cdd68a3e6cdca9c6a050466d1
37314 * g10/passphrase.c (gpg_format_keydesc): Add mode 2. Change strings.
37315 * g10/keydb.h (FORMAT_KEYDESC_NORMAL, FORMAT_KEYDESC_IMPORT)
37316 (FORMAT_KEYDESC_EXPORT): New. Use them for clarity.
37318 agent: Add command DELETE_KEY.
37319 + commit e3a4ff89a0b106e678bf9d0a4d47917123071140
37320 * agent/command.c (cmd_delete_key): New.
37321 * agent/findkey.c (modify_description): Add '%C' feature.
37322 (remove_key_file): New.
37323 (agent_delete_key): New.
37324 * agent/command-ssh.c (search_control_file): Make arg R_DISABLE
37327 * configure.ac: Require libgpg-error 1.13.
37329 2014-04-09 NIIBE Yutaka <gniibe@fsij.org>
37331 scd: EdDSA support.
37332 + commit 3132bd90dc8db9c7fd19ba201918e95891306dc5
37333 * scd/app-openpgp.c (KEY_TYPE_EDDSA, CURVE_ED25519): New.
37334 (struct app_local_s): Add eddsa.
37335 (get_algo_byte, store_fpr): Support KEY_TYPE_EDDSA.
37336 (get_ecc_key_parameters, get_curve_name): Support CURVE_ED25519.
37337 (send_key_attr, get_public_key): Support KEY_TYPE_EDDSA.
37338 (build_ecc_privkey_template): Rename as it supports both of
37340 (ecc_writekey): Rename. Support CURVE_ED25519, too.
37341 (do_writekey): Follow the change of ecc_writekey.
37342 (do_auth): Support KEY_TYPE_EDDSA.
37343 (parse_ecc_curve): Support CURVE_ED25519. Bug fix for other curves.
37344 (parse_algorithm_attribute): Bug fix for ECDH. Support EdDSA.
37346 2014-04-08 Werner Koch <wk@gnupg.org>
37348 dirmngr: Fix compiler warning.
37349 + commit db85feceaf43ebd6d44421bb14fcb60495804ae0
37350 * common/mischelp.h (JNLIB_GCC_HAVE_PUSH_PRAGMA): New.
37351 * dirmngr/dirmngr.c (handle_tick): Factor time check out to ...
37352 (time_for_housekeeping_p): new.
37354 gpgconf: Add command --launch.
37355 + commit b4cf4686f7349be9558217f20e51157398cd88a0
37356 * tools/gpgconf.c: Add command --launch.
37357 * tools/gpgconf-comp.c (gc_component_launch): New.
37359 scd: Silent compiler warnings about unused variables.
37360 + commit 36dfc37e438660632d3a2bf5d5526be9005fa8c5
37361 * scd/app-openpgp.c (build_ecdsa_privkey_template): Mark unused arg.
37362 (ecdh_writekey): Mark unused args.
37364 2014-04-08 NIIBE Yutaka <gniibe@fsij.org>
37366 agent: Support EdDSA.
37367 + commit 5ff6d0c25e6d0f422b17809b954e9e87cb137347
37368 * agent/pksign.c (agent_pksign_do): Handle EdDSA signature.
37370 g10: EdDSA support.
37371 + commit 40c3b0741e593d0658dda0c707c4f32e80648dd1
37372 * g10/keyid.c (keygrip_from_pk): Compute keygrip of EdDSA key.
37373 * g10/keygen.c (generate_subkeypair): Ed25519 is for EdDSA.
37374 * common/openpgp-oid.c (oid_ed25519): Update.
37376 2014-04-04 NIIBE Yutaka <gniibe@fsij.org>
37378 agent: EdDSA support for SSH.
37379 + commit 513c67b7461a2451247ef2b2fc64e0470a16edf1
37380 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Signature is
37381 two 32-byte opaque data which should not be interpreted as number.
37383 2014-03-27 Werner Koch <wk@gnupg.org>
37385 gpg: Add commands --quick-sign-key and --quick-lsign-key.
37386 + commit b6786cc3ec0bb582323adf94c2ee624bcfbeb466
37387 * g10/gpg.c (main): Add commands --quick-sign-key and
37389 * g10/keyedit.c (sign_uids): Add args FP and QUICK.
37390 (keyedit_quick_sign): New.
37391 (show_key_with_all_names): Add arg NOWARN.
37393 Change some keyedit functions to allow printing to arbitrary streams.
37394 + commit 4f50ec98ddd57253cae66e2321f0cc98ee189a09
37395 * common/ttyio.c (tty_print_string): Add optional arg FP. Change all
37397 (tty_print_utf8_string2): Ditto.
37398 * g10/keyedit.c (show_prefs): Ditto.
37399 (show_key_with_all_names_colon): Ditto.
37400 (show_names): Ditto.
37401 * g10/keylist.c (print_revokers): Ditto.
37402 (print_fingerprint): Ditto.
37404 2014-03-23 Werner Koch <wk@gnupg.org>
37406 agent: Replace es_mopen by es_fopenmem for ssh.
37407 + commit 5c2a50cdc90e85b1fc380851ccfbe9186969b658
37408 * agent/command-ssh.c (ssh_read_key_public_from_blob): Use
37410 (ssh_handler_request_identities): Ditto.
37411 (ssh_request_process): Ditto.
37413 2014-03-22 Werner Koch <wk@gnupg.org>
37415 agent: Put ssh key type as comment into sshcontrol.
37416 + commit fc3e70c11342267c1062e4244955d19ecd72e0f6
37417 * agent/command-ssh.c (ssh_key_type_spec): Add field name.
37418 (ssh_key_types): Add human readable names.
37419 (add_control_entry): Add arg SPEC and print key type as comment.
37420 (ssh_identity_register): Add arg SPEC.
37421 (ssh_handler_add_identity): Add var SPEC and pass ssh_receive_key.
37423 agent: Support the Ed25519 signature algorithm for ssh.
37424 + commit 072432883ededa15bf35f80102e0572746ba4af1
37425 * agent/command-ssh.c (SPEC_FLAG_IS_EdDSA): New.
37426 (ssh_key_types): Add entry for ssh-ed25519.
37427 (ssh_identifier_from_curve_name): Move to the top.
37428 (stream_read_skip): New.
37429 (stream_read_blob): New.
37430 (ssh_signature_encoder_rsa): Replace MPIS array by an s-exp and move
37431 the s-exp parsing to here.
37432 (ssh_signature_encoder_dsa): Ditto.
37433 (ssh_signature_encoder_ecdsa): Ditto.
37434 (ssh_signature_encoder_eddsa): New.
37435 (sexp_key_construct): Rewrite.
37436 (ssh_key_extract): Rename to ...
37437 (ssh_key_to_blob): .. this and rewrite most of it.
37438 (ssh_receive_key): Add case for EdDSA.
37439 (ssh_convert_key_to_blob, key_secret_to_public): Remove.
37440 (ssh_send_key_public): Rewrite.
37441 (ssh_handler_request_identities): Simplify.
37442 (data_sign): Add rename args. Add new args HASH and HASHLEN. Make
37443 use of es_fopenmen and es_fclose_snatch. Remove parsing into MPIs
37444 which is now doe in the sgnature encoder functions.
37445 (ssh_handler_sign_request): Take care of Ed25519.
37446 (ssh_key_extract_comment): Rewrite using gcry_sexp_nth_string.
37448 agent: Cleanups to prepare implementation of Ed25519.
37449 + commit a77ed0f266d03e234027dda4de5a7f3dd6787b1e
37450 * agent/cvt-openpgp.c: Remove.
37451 (convert_to_openpgp): Use gcry_sexp_extract_param.
37452 * agent/findkey.c (is_eddsa): New.
37453 (agent_is_dsa_key, agent_is_eddsa_key): Check whether ecc means EdDSA.
37454 * agent/pksign.c (agent_pksign_do): Add args OVERRIDEDATA and
37457 * common/ssh-utils.c (is_eddsa): New.
37458 (get_fingerprint): Take care or EdDSA.
37460 2014-03-18 Werner Koch <wk@gnupg.org>
37462 tools: Fix NULL deref in gpg-connect-agent.
37463 + commit 6376227a31b3076321ce16ad626b333057bda53d
37464 * tools/gpg-connect-agent.c (handle_inquire): Do not pass NULL to
37467 dirmngr: Resurrect hosts in the HKP hosttable.
37468 + commit 6c058fac65c7e9d1ffb72686f0f02644f172da22
37469 * dirmngr/dirmngr.c (HOUSEKEEPING_INTERVAL): New.
37470 (housekeeping_thread): New.
37471 (handle_tick): Call new function.
37472 * dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): New.
37473 (struct hostinfo_s): Add field died_at and set it along with the dead
37475 (ks_hkp_print_hosttable): Print that info.
37476 (ks_hkp_housekeeping): New.
37478 common: New function elapsed_time_string.
37479 + commit 04e304278c9302831bc81e7fe9049c588ead029a
37480 * common/gettime.c (elapsed_time_string): New.
37482 2014-03-17 Werner Koch <wk@gnupg.org>
37484 gpg: Reject signatures made with MD5.
37485 + commit f90cfe6b66269de0154d810c5cee1fe9a5af475c
37486 * g10/gpg.c: Add option --allow-weak-digest-algos.
37487 (main): Set option also in PGP2 mode.
37488 * g10/options.h (struct opt): Add flags.allow_weak_digest_algos.
37489 * g10/sig-check.c (do_check): Reject MD5 signatures.
37490 * tests/openpgp/defs.inc: Add allow_weak_digest_algos to gpg.conf.
37492 gpg: Make --auto-key-locate work again with keyservers.
37493 + commit 1e2e39c5758ffaf62f8bb85b4a86dc49c41f3a68
37494 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Allow exact search mode.
37495 * g10/keyserver.c (keyserver_import_name): Implement.
37496 (keyserver_get): Use exact mode for name based import.
37497 (keyserver_get): Add args R_FPR and R_FPRLEN. Change all callers.
37499 gpg: New mechanism "clear" for --auto-key-locate.
37500 + commit 1d642d3ca890daa65ee5dd949a00747da6b49015
37501 * g10/getkey.c (parse_auto_key_locate): Implement "clear".
37503 2014-03-14 Werner Koch <wk@gnupg.org>
37505 gpg-connect-agent: Make it easier to connect to the dirmngr.
37506 + commit 2223eaefaf53aa7217ac593b83e4294148a4db5d
37507 * tools/gpg-connect-agent.c: Add options --dirmngr and
37510 dirmngr: Make use of IPv4 and IPV6 more explicit.
37511 + commit 59b4fb5f4927908af06bb80ecd86adbf6e54ba14
37512 * common/http.c (connect_server): Handle the new flags.
37513 * common/http.h (HTTP_FLAG_IGNORE_IPv4, HTTP_FLAG_IGNORE_IPv4): New.
37514 * dirmngr/ks-engine-hkp.c (map_host): Add arg r_httpflags.
37515 (make_host_part): Ditto.
37516 (send_request): Add arg httpflags.
37517 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Handle httpflags.
37519 dirmngr: Do not use brackets around legacy IP addresses.
37520 + commit d7fbefeb82833db9eea8b15dc7889ecf0b7ffab4
37521 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change args to take a
37522 complete addrinfo. Bracket only v6 addresses. Change caller.
37524 gpg: Print the actual used keyserver address.
37525 + commit a401f768ca8e218eef7a5c87a8f99cb1d6b4aaeb
37526 * dirmngr/ks-engine-hkp.c (ks_hkp_search, ks_hkp_get): Print SOURCE
37528 * g10/call-dirmngr.c (ks_status_parm_s): New.
37529 (ks_search_parm_s): Add field stparm.
37530 (ks_status_cb): New.
37531 (ks_search_data_cb): Send source to the data callback.
37532 (gpg_dirmngr_ks_search): Change callback prototope to include the
37533 SPECIAL arg. Adjust all users. Use ks_status_cb.
37534 (gpg_dirmngr_ks_get): Add arg r_source and use ks_status_cb.
37535 * g10/keyserver.c (search_line_handler): Adjust callback and print
37536 "data source" disgnostic.
37537 (keyserver_get): Print data source diagnostic.
37539 dirmngr: Default to a user socket name and enable autostart.
37540 + commit 5d321eb00be0774418de1a05678ac0ec44d7193b
37541 * common/homedir.c (dirmngr_socket_name): Rename to
37542 dirmngr_sys_socket_name.
37543 (dirmngr_user_socket_name): New.
37544 * common/asshelp.c (start_new_dirmngr): Handle sys and user dirmngr
37546 * dirmngr/dirmngr.c (main): Ditto.
37547 * dirmngr/server.c (cmd_getinfo): Ditto.
37548 * sm/server.c (gpgsm_server): Ditto.
37549 * dirmngr/dirmngr-client.c (start_dirmngr): Likewise.
37550 * tools/gpgconf.c (main): Print "dirmngr-sys-socket" with --list-dirs.
37552 * configure.ac (USE_DIRMNGR_AUTO_START): Set by default.
37554 2014-03-12 Werner Koch <wk@gnupg.org>
37556 gpg: Add option --dirmngr-program.
37557 + commit 6dd5d99a61f24aff862ccba9f7410d7f1af87c05
37558 * g10/gpg.c: Add option --dirmngr-program.
37559 * g10/options.h (struct opt): Add field dirmngr_program.
37560 * g10/call-dirmngr.c (create_context): Use new var.
37562 * dirmngr/dirmngr.c: Include gc-opt-flags.h.
37563 (main): Remove GC_OPT_FLAG_*.
37564 * tools/gpgconf-comp.c (GC_OPT_FLAG_NO_CHANGE): Move macro to ...
37565 * common/gc-opt-flags.h: here.
37567 dirmngr: Detect dead keyservers and try another one.
37568 + commit fb56a273b1f2b3a99dc1d1a0850378ab7625e6b9
37569 * dirmngr/ks-action.c (ks_action_resolve): Rename var for clarity.
37570 (ks_action_search, ks_action_put): Ditto.
37571 (ks_action_get): Consult only the first server which retruned some
37574 * dirmngr/ks-engine-hkp.c (SEND_REQUEST_RETRIES): New.
37575 (map_host): Add arg CTRL and call dirmngr_tick.
37576 (make_host_part): Add arg CTRL.
37577 (mark_host_dead): Allow the use of an URL.
37578 (handle_send_request_error): New.
37579 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Mark host dead and retry on
37582 http: Add a flag to the URL parser indicating a literal v6 address.
37583 + commit 3d9e0eb02ce2b2e153e25deb0fc4b27b45f5026a
37584 * common/http.h (struct parsed_uri_t): Add field v6lit.
37585 * common/http.c (do_parse_uri): Set v6lit.
37587 2014-03-12 NIIBE Yutaka <gniibe@fsij.org>
37589 scd: writekey support of ECC.
37590 + commit 781b94174310dceffa075719420b74b29fe41764
37591 * scd/app-openpgp.c (CURVE_SEC_P256K1, get_algo_byte): New.
37592 (store_fpr): Support ECC keys with varargs.
37593 (get_ecc_key_parameters, get_curve_name): Support secp256k1.
37594 (parse_ecc_curve): Likewise.
37595 (build_ecdsa_privkey_template, rsa_writekey, ecdsa_writekey): New.
37596 (ecdh_writekey): New. Not implemented yet.
37597 (do_writekey): Call rsa_writekey, ecdsa_writekey, or ecdh_writekey.
37598 (do_genkey): Follow the change of store_fpr.
37600 2014-03-11 Werner Koch <wk@gnupg.org>
37602 dirmngr: Put brackets around IP addresses in the hosttable.
37603 + commit 0b2cca807d5a4a3664145032271141da853e7bac
37604 * dirmngr/ks-engine-hkp.c (EAI_OVERFLOW): Provide a substitute.
37605 (my_getnameinfo): New.
37606 (map_host): Use it.
37608 dirmngr: Add command option to mark hosts as dead or alive.
37609 + commit a3dee2889106fcab112c1c96b32e04d8154875e7
37610 * dirmngr/server.c (cmd_killdirmngr): Factor some code out to ...
37611 (check_owner_permission): here.
37612 (cmd_keyserver): Add options --dead and --alive.
37613 * dirmngr/ks-engine-hkp.c (host_in_pool_p): New.
37614 (ks_hkp_mark_host): New.
37616 dirmngr: Make Assuan output of keyblocks easier readable.
37617 + commit 71b55c945542e695161ddbd783f87c5f534012a5
37618 * dirmngr/server.c (data_line_cookie_write): Print shorter data lines
37621 dirmngr: Fix HKP host selection code.
37622 + commit 3c35b46a32ac7584f3807b611cde78b199c527d6
37623 * dirmngr/server.c (cmd_keyserver): Add option --resolve and change
37624 --print-hosttable to --hosttable.
37625 * dirmngr/ks-action.c (ks_printf_help): New.
37626 (ks_action_resolve): New.
37627 * dirmngr/ks-engine-hkp.c (select_random_host): Fix selection.
37628 (ks_hkp_print_hosttable): Print to assuan stream.
37629 (map_host): Remove debug code. Add arg FORCE_SELECT. Return numeric
37630 IP addr if it can't be resolved.
37631 (make_host_part): Add arg FORCE_SELECT; change callers to pass false.
37632 (ks_hkp_resolve): New.
37634 List readline support in configure summary.
37635 + commit f30d8b018871495327cbf711b73b04278a34f3e1
37636 * m4/readline.m4: Set gnupg_cv_have_readline.
37637 * configure.ac: Add readline support to summary output.
37639 2014-03-11 NIIBE Yutaka <gniibe@fsij.org>
37641 agent: API change of agent_key_from_file.
37642 + commit ac5a1a3ccb7c3e6393bc83d73b545dec9b70e7d1
37643 * agent/findkey.c (agent_key_from_file): Always return S-expression.
37644 * agent/command.c (cmd_passwd): Distinguish by SHADOW_INFO.
37645 (cmd_export_key): Likewise. Free SHADOW_INFO.
37646 (cmd_keytocard): Likewise. Release S_SKEY.
37647 * agent/pkdecrypt.c (agent_pkdecrypt): Likewise.
37648 * agent/pksign.c (agent_pksign_do): Likewise. Use the S-expression to
37651 2014-03-10 Werner Koch <wk@gnupg.org>
37653 Backport useful code from fixes for bug 1447.
37654 + commit 57d26f39afb3c75e24a8d240d7af32b9d2b9775a
37655 * configure.ac: Cehck for inet_ntop.
37656 * m4/libcurl.m4: Provide a #define for the version of the curl
37659 scd: acquire lock in new_reader_slot.
37660 + commit 9ab9f414fb919f0bc87c301c3e36180715d0aa4e
37661 * scd/apdu.c (new_reader_slot): Acquire lock.
37662 (open_ct_reader, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
37663 (open_ccid_reader, open_rapdu_reader): Release lock.
37664 (lock_slot, trylock_slot, unlock_slot): Move more to the top.
37666 Do not require libiconv for Android.
37667 + commit b278043a8f38e2706ccf617d2ac5661b33791d6b
37668 * configure.ac (require_iconv): New. Set to false for android.
37669 (AM_ICONV): Run only if required.
37671 2014-03-07 Werner Koch <wk@gnupg.org>
37673 dirmmgr: Use a portability wrapper for struct timeval.
37674 + commit feda379595e06583bc5b3610dec74890de29cb8e
37675 * dirmngr/dirmngr_ldap.c [W32]: Include winber.h.
37676 (my_ldap_timeval_t): New.
37678 Silence more warnings about unused vars and args.
37679 + commit 4387ecb11cdb2addf738eb922c1b9f14c6c76efc
37680 * dirmngr/cdblib.c (cdb_init) [W32]: Remove unused var.
37681 * dirmngr/dirmngr-client.c (start_dirmngr): s/int/assuan_fd_t/.
37682 * dirmngr/dirmngr.c (w32_service_control): Mark unused args.
37683 (call_real_main): New.
37684 (main) [W32]: Use new function to match prototype.
37685 (real_main) [W32]: Mark unused vars.
37686 (handle_signal) [W32]: Do not build the function at all.
37687 (handle_connections) [W32]: Do not define signo.
37688 * dirmngr/ldap-wrapper-ce.c (outstream_reader_cb): Remove used vars.
37689 * g10/tdbio.c (ftruncate) [DOSISH]: Define only if not yet defined.
37691 dirmngr: Simplify strtok macro.
37692 + commit 35266076e3452590931e58f188815859dff6de3c
37693 * dirmngr/ldap-url.c (ldap_utf8_strtok): Remove unused r3d arg.
37694 (ldap_str2charray): Remove lasts.
37696 Use attribute __gnu_printf__ also in estream header files.
37697 + commit 72133b54de89e593d8193b106e9369cf90d2e1c0
37698 * common/estream-printf.h: Use attribute gnu_printf.
37699 * common/estream.h: Ditto.
37701 Use attribute __gnu_printf__ with our estream-printf functions.
37702 + commit 36372dcb2f75a659b7ace0e9c46f07bb431d009c
37703 * common/mischelp.h (JNLIB_GCC_A_PRINTF): Use __gnu_printf__
37704 (JNLIB_GCC_A_NR_PRINTF): Ditto.
37706 w32: Silence warnings about unused vars.
37707 + commit 094aa2589e3920d400be93ae2823a6c4b23db623
37708 * agent/gpg-agent.c (main) [W32]: Mark unused vars.
37709 * sm/gpgsm.c (run_protect_tool) [W32]: Ditto.
37710 * g10/trustdb.c (check_regexp) [DISABLE_REGEX]: Ditto.
37711 * scd/scdaemon.c (main) [W32]: Ditto.
37712 (handle_connections) [W32]: Ditto.
37713 (handle_signal) [W32]: Do not build the function at all.
37714 * scd/apdu.c (pcsc_send_apdu_direct): Ditto.
37715 (connect_pcsc_card): s/long/pcsc_dword_t/.
37716 (open_pcsc_reader_direct): Remove var listlen.
37718 w32: Fix a potential problem in gpgconf's gettext.
37719 + commit a0fc42598f51ef4a958fc3c2fed7f4b8df2da3fd
37720 * tools/gpgconf-comp.c (my_dgettext) [USE_SIMPLE_GETTEXT]: Make sure
37721 to return something even DOMAIN is not given.
37723 Silence several warnings when building under Windows.
37724 + commit 3032fc3ad78ac9ed857570844547afed520d635a
37725 * agent/call-scd.c (start_scd): Replace int by assuan_fd_t.
37726 (start_pinentry): Ditto.
37727 * common/asshelp.c (start_new_gpg_agent): Replace int by assuan_fd_t.
37728 * common/dotlock.c (GNUPG_MAJOR_VERSION): Include stringhelp.h for
37729 prototypes on Windows and some other platforms.
37730 * common/logging.c (fun_writer): Declare addrbuf only if needed.
37731 * g10/decrypt.c (decrypt_message_fd) [W32]: Return not_implemented.
37732 * g10/encrypt.c (encrypt_crypt) [W32]: Return error if used in server
37734 * g10/dearmor.c (dearmor_file, enarmor_file): Replace GNUPG_INVALID_FD
37735 by -1 as temporary hack for Windows.
37736 * g10/export.c (do_export): Ditto.
37737 * g10/revoke.c (gen_desig_revoke, gen_revoke): Ditto.
37738 * g10/sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
37739 * g10/server.c (cmd_verify, gpg_server) [W32]: Return an error.
37741 w32: Include winsock2.h to silence warnings.
37742 + commit cb0dcc340836a64e2d33b27f1be7bc888c084f12
37745 gl: Avoid warning about shadowing an arg.
37746 + commit 84fd36f8baa2b800ea47ff74935f5aaf0e55c299
37747 * gl/setenv.c (KNOWN_VALUE): s/value/_v/.
37749 common: Fix build problem with Sun Studio compiler.
37750 + commit 0fc71f7277c6f833f838bbd384f1a22d0c333e8e
37751 * common/estream.c (ESTREAM_MUTEX_UNLOCK): Use int dummy dummy
37753 (ESTREAM_MUTEX_INITIALIZE): Ditto.
37755 gpg: Do not require a trustdb with --always-trust.
37756 + commit d8f0b83e4f04641e5e9adbdd8abada15380f981c
37757 * g10/tdbio.c (tdbio_set_dbname): Add arg R_NOFILE.
37758 * g10/trustdb.c (trustdb_args): Add field no_trustdb.
37759 (init_trustdb): Set that field.
37760 (revalidation_mark): Take care of a nonexistent trustdb file.
37761 (read_trust_options): Ditto.
37762 (tdb_get_ownertrust): Ditto.
37763 (tdb_get_min_ownertrust): Ditto.
37764 (tdb_update_ownertrust): Ditto.
37765 (update_min_ownertrust): Ditto.
37766 (tdb_clear_ownertrusts): Ditto.
37767 (tdb_cache_disabled_value): Ditto.
37768 (tdb_check_trustdb_stale): Ditto.
37769 (tdb_get_validity_core): Ditto.
37770 * g10/gpg.c (main): Do not create a trustdb with most commands for
37771 trust-model always.
37773 gpg: Print a "not found" message for an unknown key in --key-edit.
37774 + commit dfb25d47a9fcfd7c7c084ea58744724cd5315086
37775 * g10/keyedit.c (keyedit_menu): Print message.
37777 gpg: Protect against rogue keyservers sending secret keys.
37778 + commit db1f74ba5338f624f146a3cb41a346e46b15c8f9
37779 * g10/options.h (IMPORT_NO_SECKEY): New.
37780 * g10/keyserver.c (keyserver_spawn, keyserver_import_cert): Set new
37782 * g10/import.c (import_secret_one): Deny import if flag is set.
37784 agent: Fix UPDATESTARTUPTTY for ssh.
37785 + commit 90688b29f3701f4d3e2a5a49c5544fe8d2a84b2d
37786 * agent/command-ssh.c (setup_ssh_env): Fix env setting.
37788 gpgv: Init Libgcrypt to avoid syslog warning.
37789 + commit 7c4bfa599fa69c3a942c8deea83737a4c5a0806e
37790 * g10/gpgv.c (main): Check libgcrypt version and disable secure
37793 Improve libcurl detection.
37794 + commit 5ca482d5f949444ffd453de158ee186ab07fc9b6
37795 * m4/libcurl.m4: Do not use AC_PATH_PROG if --with-libcurl as been
37796 given. Suggested by John Marshall.
37798 gpg: Remove legacy keyserver examples from the template conf file.
37799 + commit 0ab752cc2d46bbd0077bed889676169b7aeb1eb6
37800 * g10/options.skel: Update.
37802 (cherry picked from commit f3c5cc8bcd37e38b5d65db6a50466e22d03d1f0c)
37804 w32: Define WINVER only if needed.
37805 + commit 76b1940ad6f5f058c4a6bec35902da9f6d4e27b0
37806 * common/sysutils.c (WINVER): Define only if less that 5.0.
37808 w32: Remove unused code.
37809 + commit 63b7658a29809249d7aeb0423bf8c5a693eee0c7
37810 * jnlib/w32-reg.c (write_w32_registry_string): Remove.
37812 agent: Make --allow-mark-trusted the default.
37813 + commit 9942a149ff2ab919c1b2916c7bc347e578a56b14
37814 * agent/gpg-agent.c (opts, main): Add option --no-allow-mark-trusted.
37815 Put this option into the gpgconf-list.
37816 (main): Enable opt.allow_mark_trusted by default.
37817 * tools/gpgconf-comp.c (gc_options_gpg_agent): Replace
37818 allow-mark-trusted by no-allow-mark-trusted.
37820 * agent/trustlist.c (agent_marktrusted): Always set the "relax" flag.
37822 ssh: Add support for Putty.
37823 + commit 5105c8d2d344fd7301d456d8c13c7e90a54f7e98
37824 * agent/gpg-agent.c [W32]: Include Several Windows header.
37825 (opts): Change help text for enable-ssh-support.
37826 (opts, main): Add option --enable-putty-support
37827 (putty_support, PUTTY_IPC_MAGIC, PUTTY_IPC_MAXLEN): New for W32.
37828 (agent_init_default_ctrl): Add and asssert call.
37829 (putty_message_proc, putty_message_thread): New.
37830 (handle_connections) [W32]: Start putty message thread.
37831 * common/sysutils.c (w32_get_user_sid): New for W32 only
37832 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add
37833 --enable-ssh-support and --enable-putty-support. Make the
37834 configuration group visible at basic level.
37835 * agent/command-ssh.c (serve_mmapped_ssh_request): New for W32 only.
37837 agent: Fix binary vs. text mode problem in ssh.
37838 + commit 179012ddd48e63ca83e8f5c24537a2db45c3e122
37839 * agent/command-ssh.c (file_to_buffer)
37840 (ssh_handler_request_identities): Open streams in binary mode.
37841 (start_command_handler_ssh): Factor some code out to ..
37842 (setup_ssh_env): new function.
37844 Fix syntax error for building on APPLE.
37845 + commit 4ad123d6fe341da7768e43360375e17fa89e8e0d
37846 * scd/pcsc-wrapper.c [__APPLE__]: Fix syntax error.
37848 Ignore obsolete option --disable-keypad.
37849 + commit d2a6be24af0bf220bb448fdd50c0196faddee0f4
37850 * scd/scdaemon.c (opts): Ignore --disable-keypad.
37852 Allow marking options as ignored.
37853 + commit 8fc9de8d6bf663f7c8419b42dab01f590a694d59
37854 * jnlib/argparse.h (ARGPARSE_OPT_IGNORE): New.
37855 (ARGPARSE_TYPE_MASK): New, for internal use.
37856 (ARGPARSE_ignore): New.
37857 * jnlib/argparse.c (optfile_parse, arg_parse): Replace remaining
37858 constants by macros.
37859 (optfile_parse): Implement ARGPARSE_OPT_IGNORE.
37860 (arg_parse): Exclide ignore options from --dump-options.
37862 2014-03-06 Werner Koch <wk@gnupg.org>
37864 common: Fix recent commit 55656208.
37865 + commit 191e32026f02054b1edb4f02536875462fd0b6b3
37866 * common/membuf.c (get_membuf_shrink): Fix use of LEN.
37868 2014-03-06 NIIBE Yutaka <gniibe@fsij.org>
37871 + commit 5ed8e9335fb886d7ddc86728d8481e5e47485531
37872 * g10/trust.c (register_trusted_keyid, register_trusted_key)
37873 (update_ownertrust): Call functions with tdb_.
37875 2014-02-26 Werner Koch <wk@gnupg.org>
37877 common: Replace all macros in strusage() returned strings.
37878 + commit 0f38c87f427a155ab5684e18e3b73956f81edfab
37879 * common/argparse.c (writechar): Remove.
37880 (writestrings): Simplify.
37881 (strusage): Use map_static_macro_string.
37883 common: New function map_static_macro_string.
37884 + commit c72762f9acf3eef5c466ba76e895d7654df12ff7
37885 * common/mapstrings.c: New.
37886 * common/t-mapstrings.c: New.
37887 * common/t-support.h (DIM, DIMof): Define if not defined.
37888 * common/Makefile.am: Add new files.
37890 common: New function get_membuf_shrink.
37891 + commit 556562086acd2bc2f8e3aa3126ebf155715e042b
37892 * common/membuf.c (get_membuf_shrink): New.
37894 agent: Fixed unresolved symbol under Windows.
37895 + commit 55c3e5f448c26360eda31e05b1f62249119f73d9
37896 * agent/gpg-agent.c (main): s/ttyname/gnupg_ttyname/.
37898 common: Require an installed libiconv.
37899 + commit 380a2aa18e0c048cfefa1cb4102dfbf902a1962b
37900 * common/utf8conv.c: Remove dynload.h.
37901 (load_libiconv): Remove. Remove all calls to it.
37903 2014-02-10 Werner Koch <wk@gnupg.org>
37905 gpg: Silent more compiler warnings due to some configure options.
37906 + commit 47e6b6bad1dff493f4102a5549a7bb54466684c2
37907 * g10/keygen.c (generate_keypair, gen_card_key)
37908 (gen_card_key_with_backup) [!ENABLE_CARD_SUPPORT]: Mark unused args.
37910 tests: Avoid segv if dns cert lookup is not configured.
37911 + commit 672f4aeba8bf55839911e1fe805af6b2873853f7
37912 * common/dns-cert.c (get_dns_cert) [!USE_DNS_CERT]: Reset return args.
37914 gpg: Cleanup compiler warnings due to some configure options.
37915 + commit 7901c5c2a3b7b24e9a4eaab590b0a54e9695c3e4
37916 * g10/photoid.c (show_photos) [DISABLE_PHOTO_VIEWER]: Mark args as
37918 * tools/gpgconf-comp.c (my_dgettext): Mark DOMAIN as unused if NLS is
37921 gpg: Allow building without any trust model support.
37922 + commit 62fb86c6589f7f74dad4741db31b3aefa0848420
37923 * configure.ac: Add option --disable-trust-models
37924 (NO_TRUST_MODELS): New ac_define and am_conditional.
37925 * g10/Makefile.am (trust_source): New.
37926 (gpg2_SOURCES): Factor some files out to above. Add trust.c.
37927 * g10/gpg.c [NO_TRUST_MODELS]: Disable options --export-ownertrust,
37928 --import-ownertrust, --update-trustdb, --check-trustdb, --fix-trustdb,
37929 --list-trustdb, --trustdb-name, --auto-check-trustdb,
37930 --no-auto-check-trustdb, and --force-ownertrust.
37931 (parse_trust_model) [NO_TRUST_MODELS]: Do not build.
37932 (main) [NO_TRUST_MODELS]: Set trust_model to always and exclude all
37933 trustdb related option code.
37934 * g10/keyedit.c (cmds) [NO_TRUST_MODELS]: Remove menu items "trust",
37935 "enable", and "disable".
37936 * g10/keylist.c (public_key_list) [NO_TRUST_MODELS]: Do not print
37939 * g10/trust.c: New.
37940 * g10/trustdb.c (struct key_item): Move to trustdb.h.
37941 (register_trusted_keyid): Rename to tdb_register_trusted_keyid.
37942 (register_trusted_key): Rename to tdb_register_trusted_key.
37943 (trust_letter, uid_trust_string_fixed, trust_value_to_string)
37944 (string_to_trust_value, get_ownertrust_with_min, get_ownertrust_info)
37945 (get_ownertrust_string, get_validity_info, get_validity_string)
37946 (clean_sigs_from_uid, clean_uid_from_key, clean_key): Move to trust.c.
37947 (mark_usable_uid_certs): Move to trust.c and make global.
37948 (is_in_klist): Move as inline to trustdb.h.
37949 (trustdb_check_or_update): Rename to tdb_check_or_update
37950 (revalidation_mark): Rename to tdb_revalidation_mark.
37951 (get_ownertrust): Rename to tdb_get_ownertrust.
37952 (get_min_ownertrust): Rename to tdb_get_min_ownertrust.
37953 (update_ownertrust): Rename to tdb_update_ownertrust.
37954 (clear_ownertrusts): Rename to tdb_clear_ownertrusts.
37955 (cache_disabled_value): Rename to tdb_cache_disabled_value.
37956 (check_trustdb_stale): Rename to tdb_check_trustdb_stale.
37957 (get_validity): Rename to tdb_get_validity_core, add arg MAIN_PK and
37958 factor some code out to ...
37959 * trust.c (get_validity): ...new.
37960 (check_or_update_trustdb): New wrapper.
37961 (revalidation_mark): New wrapper.
37962 (get_ownertrust): New wrapper.
37963 (get_ownertrust_with_min): New wrapper.
37964 (update_ownertrust): New wrapper.
37965 (clear_ownertrusts): New wrapper.
37966 (cache_disabled_value): New wrapper.
37967 (check_trustdb_stale): New wrapper.
37969 * tests/openpgp/defs.inc (opt_always): New. Use in all tests instead
37972 tests: Handle disabled algorithms.
37973 + commit ea7f895319e89150e5613b6d20f21410f99d6f22
37974 * tests/openpgp/mds.test: Skip disabled algorithms.
37975 * tests/openpgp/signencrypt-dsa.test: Ditto.
37976 * tests/openpgp/sigs-dsa.test: Ditto.
37978 2014-02-07 Werner Koch <wk@gnupg.org>
37980 Silence annoying ABI change warning.
37981 + commit 111f082487dc7a2a50375e24203de31b000e0dea
37982 * configure.ac [GCC]: Pass -Wno-psabi for gcc >= 4.6. Avoid some gcc
37983 option tests for gcc >= 4.6
37985 Allow disabling of card support.
37986 + commit 8e0ba4ecd3897c748ac2f06028406604ae7baced
37987 * configure.ac: Add option --disable-card-support. Also add
37988 am_conditional and do not build scd if card support is enabled.
37990 gpg: List only available algos in --gen-key.
37991 + commit 357b142e7225e5c7f1e0f9768f48e833d5804b6a
37992 * g10/keygen.c (ask_algo, ask_curve): Take care of GPG_USE_<algo>.
37994 gpg: Change --print-mds to output enabled OpenPGP algos.
37995 + commit 54a11729fb71ba06e318fe229d0a230686ed4dc8
37996 * g10/gpg.c (print_mds): Use opengpg_md_test_algo. Test also for MD5
37999 gpg: Avoid compiler warnings for disabled algos.
38000 + commit aa76a1660613ece3fc0d774856abcbe0bb158300
38001 * g10/misc.c (map_cipher_openpgp_to_gcry): Add case for disabled algo.
38002 (openpgp_pk_test_algo2): Ditto.
38003 (map_md_openpgp_to_gcry): Ditto.
38005 2014-02-05 Werner Koch <wk@gnupg.org>
38007 gpg: Change format for the key size in --list-key and --edit-key.
38008 + commit 2c814806d759e5cf611200e8210137cf8502a672
38009 * g10/gpg.c (oLegacyListMode, opts, main): Add --legacy-list-mode.
38010 * g10/options.h (struct opt): Add field legacy_list_mode.
38011 * g10/keydb.h (PUBKEY_STRING_SIZE): New.
38012 * g10/keyid.c (pubkey_string): New.
38013 * g10/import.c (import_one, import_secret_one): Use pubkey_string.
38014 * g10/keylist.c (print_seckey_info): Ditto.
38015 (print_pubkey_info, print_card_key_info): Ditto.
38016 (list_keyblock_print): Ditto.
38017 * g10/mainproc.c (list_node): Ditto.
38018 * g10/pkclist.c (do_edit_ownertrust, build_pk_list): Ditto.
38019 * g10/keyedit.c (show_key_with_all_names): Ditto. Also change the
38021 (show_basic_key_info): Ditto.
38022 * common/openpgp-oid.c (openpgp_curve_to_oid): Also allow "ed25519".
38023 (openpgp_oid_to_curve): Downcase "ed25519"
38025 2014-01-31 Werner Koch <wk@gnupg.org>
38027 gpg: Add configure options to disable algorithms.
38028 + commit 2ba818de1aa311ba8eb27012d69e93dd16e7d4ed
38029 * acinclude.m4 (GNUPG_GPG_DISABLE_ALGO): New.
38030 * configure.ac: Add --enable-gpg-* options to disable non MUS
38032 * g10/misc.c (map_cipher_openpgp_to_gcry): Implement these options.
38033 (openpgp_pk_test_algo2): Ditto.
38034 (map_md_openpgp_to_gcry): Ditto.
38035 (openpgp_cipher_test_algo, openpgp_md_test_algo): Simplify.
38037 gpg: Improve --version algo info output.
38038 + commit 71540d40414dc8b304b45dc476e5e5650a2db20a
38039 * g10/misc.c (openpgp_pk_algo_name): Return a different string for
38040 each ECC algorithm.
38041 * g10/gpg.c (build_list_pk_test_algo): New wrapper to cope with the
38042 different algo type enums.
38043 (build_list_pk_algo_name): Ditto.
38044 (build_list_cipher_test_algo): Ditto.
38045 (build_list_cipher_algo_name): Ditto.
38046 (build_list_md_test_algo): Ditto.
38047 (build_list_md_algo_name): Ditto.
38048 (my_strusage): Use them.
38049 (list_config): Ditto. Add "pubkeyname".
38050 (build_list): Add letter==1 hack.
38052 gpg: Start using OpenPGP digest algo ids.
38053 + commit bf50604a0d50b974c1d4b8ccf5d774489f996cae
38054 * g10/misc.c (print_pubkey_algo_note): Use enum typedef for the arg.
38055 (print_cipher_algo_note): Ditto.
38056 (print_digest_algo_note): Ditto.
38057 (map_md_openpgp_to_gcry): New.
38058 (openpgp_md_test_algo): Rewrite.
38059 (openpgp_md_algo_name): Rewrite to do without Libgcrypt.
38060 * g10/cpr.c (write_status_begin_signing): Remove hardwired list of
38063 gpg: Use only OpenPGP cipher algo ids.
38064 + commit 16a6311adefff0139056714521214f845315b7f8
38065 * g10/misc.c (map_cipher_openpgp_to_gcry): Use explicit mapping and
38066 use enums for the arg and return value.
38067 (map_cipher_gcry_to_openpgp): Ditto.
38068 (openpgp_cipher_blocklen): Use constant macros.
38069 (openpgp_cipher_test_algo): Use mapping function and prepare to
38070 disable algorithms.
38071 (openpgp_cipher_algo_name): Do not use Libgcrypt.
38073 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Replace
38074 CGRY_CIPHER_* by CIPHER_ALGO_*.
38076 * common/openpgpdefs.h (cipher_algo_t): Remove unused
38079 2014-01-30 Werner Koch <wk@gnupg.org>
38081 gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id.
38082 + commit b7f8dec6325f1c80640f878ed3080bbc194fbc78
38083 * common/sexputil.c (get_pk_algo_from_canon_sexp): Change to return a
38085 * g10/keygen.c (check_keygrip): Adjust for change.
38086 * sm/certreqgen-ui.c (check_keygrip): Likewise.
38088 * agent/pksign.c (do_encode_dsa): Remove bogus map_pk_openpgp_to_gcry.
38090 * g10/misc.c (map_pk_openpgp_to_gcry): Remove.
38091 (openpgp_pk_test_algo): Change to a wrapper for openpgp_pk_test_algo2.
38092 (openpgp_pk_test_algo2): Rewrite.
38093 (openpgp_pk_algo_usage, pubkey_nbits): Add support for EdDSA.
38094 (openpgp_pk_algo_name): Rewrite to remove need for gcry calls.
38095 (pubkey_get_npkey, pubkey_get_nskey): Ditto.
38096 (pubkey_get_nsig, pubkey_get_nenc): Ditto.
38097 * g10/keygen.c(do_create_from_keygrip): Support EdDSA.
38098 (common_gen, gen_ecc, ask_keysize, generate_keypair): Ditto.
38099 * g10/build-packet.c (do_key): Ditto.
38100 * g10/export.c (transfer_format_to_openpgp): Ditto.
38101 * g10/getkey.c (cache_public_key): Ditto.
38102 * g10/import.c (transfer_secret_keys): Ditto.
38103 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
38104 * g10/mainproc.c (proc_pubkey_enc): Ditto.
38105 * g10/parse-packet.c (parse_key): Ditto,
38106 * g10/sign.c (hash_for, sign_file, make_keysig_packet): Ditto.
38107 * g10/keyserver.c (print_keyrec): Use openpgp_pk_algo_name.
38108 * g10/pkglue.c (pk_verify, pk_encrypt, pk_check_secret_key): Use only
38109 OpenPGP algo ids and support EdDSA.
38110 * g10/pubkey-enc.c (get_it): Use only OpenPGP algo ids.
38111 * g10/seskey.c (encode_md_value): Ditto.
38113 2014-01-29 Werner Koch <wk@gnupg.org>
38115 gpg: Remove cipher.h and put algo ids into a common file.
38116 + commit ea8a1685f75d27f5277d42ea7390ad5aeaf51b1f
38117 * common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
38118 (compress_algo_t): New.
38119 * agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
38120 * g10/cipher.h (DEK): Move to ...
38121 * g10/dek.h: new file.
38122 * g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
38123 (PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
38124 (PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
38125 (PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
38126 * g10/packet.h: here.
38127 * g10/cipher.h: Remove. Remove from all files.
38128 * g10/filter.h, g10/packet.h: Include dek.h.
38129 * g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
38131 include: Remove this directory.
38132 + commit 25b4c2acbd01f9b4c2c364f44c53b73498ed8469
38133 * include/cipher.h: Move to ...
38134 * g10/cipher.h: here.
38135 * agent/gpg-agent.c: Adjust header file name.
38137 * include/host2net.h: Move to ...
38138 * common/host2net.h: here. Change license to LGPLv3/GPLv2. Adjust
38139 notices to reflect that only me worked on that file.
38141 * include/types.h: Remove.
38142 * common/types.h: Include inttypes.h. Add byte typedef and comments
38144 * common/iobuf.h: Adjust header file name.
38146 * include/_regex.h: Remove this unused file.
38148 * include/Makefile.am: Remove.
38149 * Makefile.am (SUBDIRS): Remove "include".
38150 * configure.ac (AC_CONFIG_FILES): Remove include/Makefile.
38151 * include/ChangeLog-2011: Move to ...
38152 * common/ChangeLog-2011.include: here.
38153 * common/Makefile.am (EXTRA_DIST): Add file.
38155 * include/zlib-riscos.h: Move this repo only file to ...
38156 * g10/zlib-riscos.h: here.
38158 * include/: Remove.
38160 2014-01-17 Werner Koch <wk@gnupg.org>
38162 Remove unused u64 type definitions.
38163 + commit 362a30d8c2f529cd44687066f9c33cab7b43bedc
38164 * configure.ac: Remove check for uint64 and UINT64_C.
38165 * include/types.h: Remove u64 stuff.
38166 * common/types.h: Ditto.
38168 2014-01-16 NIIBE Yutaka <gniibe@fsij.org>
38170 agent: Not remove SSH socket when already running.
38171 + commit 0ee66a6f66d7389e381fffa5f9eedbc8de9add10
38172 * agent/gpg-agent.c (main): Defer setting of socket_name_ssh to avoid
38173 removal of the socket when it will die in create_server_socket for
38176 agent: Fix agent_is_eddsa_key.
38177 + commit 9c731bbedfd8bded5efd886304c5ca6655768c45
38178 * agent/findkey.c (agent_is_eddsa_key): Implemented.
38180 2014-01-15 NIIBE Yutaka <gniibe@fsij.org>
38183 + commit c5e41f539b9a21cbad10c7dae95572a4445d31c3
38184 * common/openpgp-oid.c (openpgp_curve_to_oid): Add secp256k1.
38185 (openpgp_oid_to_curve): Likewise.
38187 * g10/keygen.c (ask_curve): Add secp256k1.
38189 2014-01-10 Werner Koch <wk@gnupg.org>
38191 autogen.sh: Add rule for 64 bit windows.
38192 + commit aedfa95bcc49156f2bc6ae5d0f385705d4fbdd32
38195 Turn autogen.sh into a generic script.
38196 + commit e7973d36d88178b4b0a977e3fcc0d62600777618
38197 * autogen.sh: Revamp.
38199 * Makefile.am (EXTRA_DIST): Add autogen.rc.
38201 Rename scripts/ to build-aux/
38202 + commit 99a48b2fcdf7c33fe553511c12f2ebb8eea5c634
38203 * scripts/: Rename to build-aux/
38204 * Makefile.am: Adjust accordingly.
38205 * configure.ac (AC_CONFIG_AUX_DIR): Change to build-aux.
38207 2014-01-09 Werner Koch <wk@gnupg.org>
38209 Improve the speedo make script.
38210 + commit a55ffb9da9a844bd2bd73a4a2ea65bf18b21c57f
38211 * scripts/gpg-w32-dev/README: Remove
38212 * scripts/gpg-w32-dev/GNUmakefile, scripts/gpg-w32-dev/speedo.mk:
38214 * scripts/speedo.mk: this.
38216 gpgsplit: Allow building without zlib support.
38217 + commit 00d5d2204cefb0f4b953e0c00448f16aab2d39c7
38218 * tools/gpgsplit.c [!HAVE_ZLIB]: Do not include zlib.h.
38219 (handle_zlib): Build only if HAVE_ZLIB is defined.
38220 (write_part): Support zlib and zip only if HAVE_ZLIB is defined.
38222 w32: Fix backslash quoting in registry name.
38223 + commit fa318406c9bdb60aee1e1b410e4c9e0b3eb1392e
38224 * configure.ac (GNUPG_REGISTRY_DIR): Double backslashes.
38227 + commit 477aabaf753f987987f7a2e1f999a499ea3bd103
38228 * configure.ac (HAVE_ZLIB): Define only if found.
38230 Add --enable-silent-rules stuff.
38231 + commit aba53e9f96d0c9b270edef0806976a56326249c4
38232 * configure.ac: Add AM_SILENT_RULES.
38234 2014-01-08 Werner Koch <wk@gnupg.org>
38236 w32: Add macro for the registry key.
38237 + commit 75ba215ebd8be7e14b26bb53ef3c7d41e4ce1e02
38238 * configure.ac (GNUPG_REGISTRY_DIR) [W32]: New ac-define.
38239 * common/homedir.c (default_homedir): Use it.
38240 * common/logging.c (do_logv): Use it.
38242 2013-12-11 Werner Koch <wk@gnupg.org>
38244 gpg: Change --show-session-key to print the session key earlier.
38245 + commit 101a54add351ff62793cbfbf3877787c4791f833
38246 * g10/cpr.c (write_status_strings): New.
38247 (write_status_text): Replace code by a call to write_status_strings.
38248 * g10/mainproc.c (proc_encrypted): Remove show_session_key code.
38249 * g10/decrypt-data.c (decrypt_data): Add new show_session_key code.
38251 2013-12-05 Werner Koch <wk@gnupg.org>
38253 gpg: Change OID of Ed25519 and add Brainpool oids.
38254 + commit 59207a86e5f40c77fed296b642bf76692e8eef65
38255 * common/openpgp-oid.c (openpgp_curve_to_oid): Change OID for
38256 Ed25519. Add brainpool OIDs.
38257 (openpgp_oid_to_curve): Ditto.
38259 2013-11-29 Werner Koch <wk@gnupg.org>
38261 common: Add put_membuf_printf.
38262 + commit 159d42ee6ab21d97f40ee129445f37209b875739
38263 * common/membuf.c (put_membuf_printf): New.
38265 2013-11-27 Werner Koch <wk@gnupg.org>
38267 gpg: Change armor Version header to emit only the major version.
38268 + commit e951782e937ce290be0d89d83e84b3daea997587
38269 * g10/options.h (opt): Rename field no_version to emit_version.
38270 * g10/gpg.c (main): Init opt.emit_vesion to 1. Change --emit-version
38271 to bump up opt.emit_version.
38272 * g10/armor.c (armor_filter): Implement different --emit-version
38275 2013-11-18 Werner Koch <wk@gnupg.org>
38277 Make use of the *_NAME etc macros.
38278 + commit cc9a0b69b698ba436eaf777e5020532845b56236
38279 Replace hardwired strings at many places with new macros from config.h
38280 and use the new strusage macro replacement feature.
38282 * common/asshelp.c (lock_spawning) [W32]: Change the names of the spawn
38284 * agent/command.c (cmd_import_key): Use asprintf to create the prompt.
38286 Add strusage macro replacement feature.
38287 + commit 798daaa1ddf73f64cf840fbdc1f4c5b9c4b4ec13
38288 * common/argparse.c (writechar): New.
38289 (writestrings): Add macro replacement feature.
38290 (show_help): Remove specialized @EMAIL@ replacement.
38291 * configure.ac (GNUPG_NAME, GPG_NAME, GPGSM_NAME): Define.
38292 (GPG_AGENT_NAME, DIRMNGR_NAME, G13_NAME, GPGCONF_NAME): Define.
38293 (GPGTAR_NAME, GPG_AGENT_INFO_NAME, GPG_AGENT_SOCK_NAME): Define.
38294 (GPG_AGENT_SSH_SOCK_NAME, DIRMNGR_INFO_NAME): Define.
38295 (DIRMNGR_SOCK_NAME): Define.
38297 2013-11-15 Werner Koch <wk@gnupg.org>
38299 kbx: Implement update operation for OpenPGP keyblocks.
38300 + commit 5499942571a88a1223a7318992605c6d29858866
38301 * kbx/keybox-update.c (keybox_update_keyblock): Implement.
38302 * kbx/keybox-search.c (get_blob_flags): Move to ...
38303 * kbx/keybox-defs.h (blob_get_type): here.
38304 * kbx/keybox-file.c (_keybox_read_blob2): Fix calling without R_BLOB.
38305 * g10/keydb.c (build_keyblock_image): Allow calling without
38307 (keydb_update_keyblock): Implement for keybox.
38309 * kbx/keybox-dump.c (_keybox_dump_blob): Fix printing of the unhashed
38310 size. Print "does not expire" also on 64 bit platforms.
38312 gpg: Rework ECC support and add experimental support for Ed25519.
38313 + commit 402aa0f94854bb00475c934be5ca6043a4632126
38314 * agent/findkey.c (key_parms_from_sexp): Add algo name "ecc".
38315 (agent_is_dsa_key): Ditto.
38316 (agent_is_eddsa_key): New. Not finished, though.
38317 * agent/pksign.c (do_encode_eddsa): New.
38318 (agent_pksign_do): Use gcry_log_debug functions.
38319 * agent/protect.c (agent_protect): Parse a flags parameter.
38320 * g10/keygen.c (gpg_curve_to_oid): Move to ...
38321 * common/openpgp-oid.c (openpgp_curve_to_oid): here and rename.
38322 (oid_ed25519): New.
38323 (openpgp_oid_is_ed25519): New.
38324 (openpgp_oid_to_curve): New.
38325 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): New.
38326 * g10/build-packet.c (gpg_mpi_write): Write the length header also for
38328 (gpg_mpi_write_nohdr): New.
38329 (do_key): Use gpg_mpi_write_nohdr depending on algorithm.
38330 (do_pubkey_enc): Ditto.
38331 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Use
38332 gpg_mpi_write_nohdr.
38333 * g10/export.c (transfer_format_to_openpgp):
38334 * g10/keygen.c (ecckey_from_sexp): Return the error.
38335 (gen_ecc): Repalce arg NBITS by CURVE.
38336 (read_parameter_file): Add keywords "Key-Curve" and "Subkey-Curve".
38338 (generate_keypair, generate_subkeypair): Use ask_curve.
38339 (do_generate_keypair): Also pass curve name.
38340 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Print
38342 * g10/parse-packet.c (mpi_read): Remove workaround for
38344 (parse_key): Fix ECC case. Print the curve name.
38345 * g10/pkglue.c (mpi_from_sexp): Rename to get_mpi_from_sexp.
38346 (pk_verify, pk_check_secret_key): Add special case for Ed25519.
38347 * g10/seskey.c (encode_md_value): Ditto.
38348 * g10/sign.c (do_sign, hash_for, sign_file): Ditto.
38350 kbx: Fix possible segv in kbxdump.
38351 + commit 9ae48b173c93f4747a9826beb1fbd023c4362c22
38352 * kbx/keybox-dump.c (_keybox_dump_blob): Check length before get32.
38354 Require Libgcrypt 1.6.
38355 + commit b27161cd0c76ae6e2381f60c3a502cde3a2aaa21
38356 * agent/pksign.c (do_encode_dsa): Remove Libgcrypt version check
38358 2013-11-13 NIIBE Yutaka <gniibe@fsij.org>
38360 scd: more pinpad input fix for PC/SC.
38361 + commit abd922e79b2ff63a5a763a30d4a06a91f93d0b12
38362 * scd/apdu.c (check_pcsc_pinpad): Set default values here.
38363 (pcsc_pinpad_verify, pcsc_pinpad_modify): Remove setting default
38364 values, as it's too late.
38366 2013-11-11 NIIBE Yutaka <gniibe@fsij.org>
38368 scd: more pinpad fix.
38369 + commit 037dea9dd5eac7a74df0e12cb437e71fb0732afa
38370 * scd/apdu.c (check_pcsc_pinpad): Set ->minlen and ->maxlen only when
38371 those are specified.
38372 (pcsc_pinpad_modify): Remove old check code.
38374 2013-10-29 NIIBE Yutaka <gniibe@fsij.org>
38376 scd: pinpad fix for PC/SC on Windows.
38377 + commit 32989ad2b152d18198d718bc2c7232ce3e79c72f
38378 * scd/apdu.c (SCARD_CTL_CODE): Fix for Windows.
38380 2013-10-28 Werner Koch <wk@gnupg.org>
38382 doc: Change yat2m to allow arbitrary condition names.
38383 + commit a15c35f37ed2b58805adc213029998aa3e52f038
38384 * doc/yat2m.c (MAX_CONDITION_NESTING): New.
38385 (gpgone_defined): Remove.
38386 (condition_s, condition_stack, condition_stack_idx): New.
38387 (cond_is_active, cond_in_verbatim): New.
38388 (add_predefined_macro, set_macro, macro_set_p): New.
38389 (evaluate_conditions, push_condition, pop_condition): New.
38390 (parse_file): Rewrite to use the condition stack.
38391 (top_parse_file): Set prefined macros.
38392 (main): Change -D to define arbitrary macros.
38394 2013-10-25 NIIBE Yutaka <gniibe@fsij.org>
38396 scd: fix pinpad input on Windows.
38397 + commit de7e15c6b80164a351586e9087aad86420c8b89e
38398 * scd/apdu.c (open_pcsc_reader_direct): Don't call
38399 pcsc_vendor_specific_init here, but...
38400 (connect_pcsc_card): Call it here.
38402 2013-10-23 NIIBE Yutaka <gniibe@fsij.org>
38404 po: Update Japanese translation.
38405 + commit b66158cac7347e4c56c79ab7b5416ae5b3f4a0a2
38408 2013-10-16 NIIBE Yutaka <gniibe@fsij.org>
38410 scd: add pinpad readers information for PC/SC service.
38411 + commit 5efcc2b8fee8de31d255d09037f0a1e6209eab32
38412 * scd/apdu.c (pcsc_vendor_specific_init): Add information for Cherry
38413 ST-2xxx, Reiner cyberJack, Vasco DIGIPASS, FSIJ Gnuk Token, and KAAN
38416 2013-10-15 NIIBE Yutaka <gniibe@fsij.org>
38418 scd: remove pin length check.
38419 + commit e0ab665a792ada6470cb8885b8427acc3c960998
38420 * scd/apdu.c (pcsc_pinpad_verify): Remove old check code for pin
38423 2013-10-04 Werner Koch <wk@gnupg.org>
38425 gpg: Limit the nesting level of I/O filters.
38426 + commit e6175055fbca958b7fa43aaf84359574ca7f3ebb
38427 * common/iobuf.c (MAX_NESTING_FILTER): New.
38428 (iobuf_push_filter2): Limit the nesting level.
38430 * g10/mainproc.c (mainproc_context): New field ANY. Change HAVE_DATA
38431 and ANY_SIG_SIGN to bit fields of ANY. Add bit field
38433 (proc_compressed): Avoid printing multiple Bad Data messages.
38434 (check_nesting): Return GPG_ERR_BAD_DATA instead of UNEXPECTED_DATA.
38436 2013-10-02 Werner Koch <wk@gnupg.org>
38438 gpg: Fix bug with deeply nested compressed packets.
38439 + commit 0899f6d4be0406c9efbf9c3f342825804f359b5a
38440 * g10/mainproc.c (MAX_NESTING_DEPTH): New.
38441 (proc_compressed): Return an error code.
38442 (check_nesting): New.
38443 (do_proc_packets): Check packet nesting depth. Handle errors from
38446 2013-09-08 Werner Koch <wk@gnupg.org>
38448 Switch to deterministic DSA.
38449 + commit 6466db10fb22a4f24df4edad9c5cb33ec67321bd
38450 * agent/pksign.c (rfc6979_hash_algo_string): New.
38451 (do_encode_dsa) [Libgcrypt >= 1.6]: Make use of RFC-6979.
38453 2013-08-30 Werner Koch <wk@gnupg.org>
38455 scd: Suppress gcc warning about possible uninitialized use.
38456 + commit 244587ea41d4c75cb5570356f09a6705864a7e8d
38457 * scd/app-nks.c (parse_pwidstr): Always init r_pwid.
38459 gpg: Use 2048 as the default keysize in batch mode.
38460 + commit 4c3b35b067a4e7002bb6473b879b551014bb7857
38461 * g10/keygen.c (gen_elg, gen_dsa, gen_rsa): Set default keysize to
38464 gpgtar: Fix building for systems with a separate libintl.
38465 + commit 12990efb45ee7c425167aad19fe759d5609c5182
38466 * tools/Makefile.am (gpgtar_LDADD): Add LIBINTL and LIBICONV.
38468 scd: Use vendor and product id macros also in apdu.c.
38469 + commit fc31d730d8506b069de1d3529ed26660856bf07f
38470 * scd/ccid-driver.c: Move vendor and product ids to ...
38471 * scd/ccid-driver.h: here.
38472 * scd/apdu.c (CCID_DRIVER_INCLUDE_USB_IDS): Define to include ids.
38473 (pcsc_vendor_specific_init): Use vendor and product id macros.
38475 2013-08-30 NIIBE Yutaka <gniibe@fsij.org>
38477 scd: PC/SC pinpad input improvement.
38478 + commit 95a3bffeaf07e8bf9487d4b165c336d166236fc1
38479 * scd/apdu.c (struct reader_table_s): Add members: PINMIN, PINMAX, and
38480 PINPAD_VERLEN_SUPPORTED.
38481 (CM_IOCTL_VENDOR_IFD_EXCHANGE, FEATURE_GET_TLV_PROPERTIES,
38482 PCSCv2_PART10_PROPERTY_*): New.
38483 (new_reader_slot): Initialize pinpad_varlen_supported, pinmin, pinmax.
38484 (pcsc_vendor_specific_init): New.
38485 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Call
38486 pcsc_vendor_specific_init.
38487 (check_pcsc_pinpad): Not detect here but use the result of
38488 pcsc_vendor_specific_init.
38489 (pcsc_pinpad_verify, pcsc_pinpad_modify): Specify bNumberMessage.
38491 2013-08-29 Jonas Borgström <jonas@borgstrom.se>
38493 scd: add support for RSA_CRT and RSA_CRT_N key import.
38494 + commit cc67918c088e90c1d9a507af5f6288e8faa93d87
38495 * scd/app-openpgp.c (do_writekey): Added RSA_CRT and RSA_CRT_N support.
38497 2013-08-29 Werner Koch <wk@gnupg.org>
38499 kbx: Add a few macros for easier readability.
38500 + commit 3adfaa9beee4502479b5673c7dfd386680a920c5
38501 * kbx/keybox-update.c (FILECOPY_INSERT)
38502 (FILECOPY_DELETE, FILECOPY_UPDATE): New macros. Replace numbers by
38505 2013-08-28 Werner Koch <wk@gnupg.org>
38507 Fix commit 04e2c83f.
38508 + commit fdbf76eee6a4e81b040d423926b71af7b491fb4a
38509 * agent/command-ssh.c (stream_read_string): Do not assign to a NULL
38512 gpg: Make decryption with the OpenPGP card work.
38513 + commit 780ba3233618393835970bac4cf8aab713f4d7fa
38514 * scd/app-common.h (APP_DECIPHER_INFO_NOPAD): New.
38515 * scd/app-openpgp.c (do_decipher): Add arg R_INFO.
38516 * scd/app-nks.c (do_decipher): Add arg R_INFO as a dummy.
38517 * scd/app.c (app_decipher): Add arg R_INFO.
38518 * scd/command.c (cmd_pkdecrypt): Print status line "PADDING".
38519 * agent/call-scd.c (padding_info_cb): New.
38520 (agent_card_pkdecrypt): Add arg R_PADDING.
38521 * agent/divert-scd.c (divert_pkdecrypt): Ditto.
38522 * agent/pkdecrypt.c (agent_pkdecrypt): Ditto.
38523 * agent/command.c (cmd_pkdecrypt): Print status line "PADDING".
38524 * g10/call-agent.c (padding_info_cb): New.
38525 (agent_pkdecrypt): Add arg R_PADDING.
38526 * g10/pubkey-enc.c (get_it): Use padding info.
38528 agent: Fix two compiler warnings.
38529 + commit 04e2c83f189cc56342e1be784bdc63761ccdb5bb
38530 * agent/command.c (cmd_preset_passphrase, pinentry_loopback): Use %zu
38532 * scd/ccid-driver.c (ccid_get_atr): Ditto.
38533 * agent/command-ssh.c (stream_read_string): Init arg STRING_SIZE to
38534 avoid maybe_unitialized warning.
38536 2013-08-27 NIIBE Yutaka <gniibe@fsij.org>
38538 scd: fix parsing login-data DO.
38539 + commit b6d54f1196d5f110fd94dfd661e74dbc60ca9811
38540 * scd/app-openpgp.c (parse_login_data): Release RELPTR. Fix parsing.
38542 scd: fix Vega for Alpha reader.
38543 + commit 54cbab29c700db2df74e808f16db49170e6c42f1
38544 * scd/ccid-driver.c (ccid_vendor_specific_init): Fix error handling
38545 and size of command.
38547 2013-08-21 Werner Koch <wk@gnupg.org>
38549 scd: Make SPRx32 pinpad work with PC/SC on Windows.
38550 + commit 5c5e52df4b92e23045ac87abac09357de58920d4
38551 * scd/apdu.c (CM_IOCTL_GET_FEATURE_REQUEST): Use SCARD_CTL_CODE.
38552 (SCARD_CTL_CODE): Define if not defined.
38553 (reader_table_s): Add is_spr532.
38554 (new_reader_slot): Clear it.
38555 (check_pcsc_pinpad): Set it.
38556 (pcsc_pinpad_verify, pcsc_pinpad_modify): Add fix for SPR532.
38558 scd: Improve --enable-pinpad-varlen.
38559 + commit 7bde2bf3b0ddb5d3515a44879e1a7ddb581a5c0b
38560 * tools/gpgconf-comp.c (gc_options_scdaemon): Add
38561 enable-pinpad-varlen.
38562 * scd/apdu.c (check_pcsc_pinpad): Detect SPRx32 reader.
38564 2013-08-08 Werner Koch <wk@gnupg.org>
38566 agent: Extend cmd KEYINFO to return data from sshcontrol.
38567 + commit 50c98c7ed6b542857ee2f902eca36cda37407737
38568 * agent/command-ssh.c (struct control_file_s): Rename to
38569 ssh_control_file_s.
38570 (ssh_open_control_file, ssh_close_control_file)
38571 (ssh_read_control_file, ssh_search_control_file): New.
38572 (control_file_t): Rename and move to ...
38573 * agent/agent.h (ssh_control_file_t): here.
38574 * agent/command.c (do_one_keyinfo): Add args is_ssh, ttl, disabled,
38575 and confirm. Rename unknown keytype indicator from '-' to 'X'. Extend
38577 (cmd_keyinfo): Add options --ssh-list and --with-ssh.
38579 2013-08-02 Werner Koch <wk@gnupg.org>
38581 gpg: No need to create a trustdb when encrypting with --always-trust.
38582 + commit 498b9a95dc65c43240835d64cc92d8fb43014d53
38583 * g10/gpg.c (main): Special case setup_trustdb for --encrypt.
38585 2013-08-01 Werner Koch <wk@gnupg.org>
38587 w32: Fix recent patch 9ff72e4.
38588 + commit ca6fe88c0068f8d45ef39df0fc7b161998a91fe9
38589 * common/homedir.c (check_portable_app): Fix the name of the control
38592 agent: Include missing prototype.
38593 + commit ef6a6d973c2bcc54006c04dc41f978ff01005c97
38594 * agent/protect.c: Include cvt-openpgp.h.
38596 w32: Add code to support a portable use of GnuPG.
38597 + commit 9ff72e4e7e4f56c241a525479a94ed4c95efc23f
38598 * common/homedir.c (w32_bin_is_bin, w32_portable_app) [W32]: New.
38599 (check_portable_app) [W32]: New.
38600 (standard_homedir, default_homedir) [W32]: Support the portable flag.
38601 (w32_rootdir, w32_commondir) [W32]: Ditto.
38602 (gnupg_bindir, gnupg_cachedir, dirmngr_socket_name) [W32]: Ditto.
38603 * common/logging.h (JNLIB_LOG_NO_REGISTRY): New.
38604 * common/logging.c (no_registry): New variable.
38605 (log_set_prefix, log_get_prefix): Set/get that variable.
38606 (do_logv): Do not check the registry if that variable is set.
38608 Silence compiler warning about deprecated Libgcrypt symbols.
38609 + commit db4651734fe91935b17876dc9194329b00066eff
38610 * configure.ac (AH_BOTTOM): Define GCRYPT_NO_DEPRECATED.
38612 dirmngr: Define missing LDAP constant.
38613 + commit ef2e2e54020c3475bf2129c3ec8360c7bad3a6c9
38614 * dirmngr/ldap-url.c (LDAP_SCOPE_DEFAULT): Define if missing.
38616 scd: Fix a syntax error for Apple and Windows.
38617 + commit 25b0357bf0a4861a751cfbc3e0335ae05c8b2b1b
38618 * scd/apdu.c (pcsc_dword_t) [W32]: Fix syntax error.
38620 common: Fix a build error when using adns.
38621 + commit ffa7472db551f12f66b9789c31fabb5fc80cc13a
38622 * common/dns-cert.c (get_dns_cert) [USE_ADNS]: Fix synatx error.
38624 2013-07-31 Werner Koch <wk@gnupg.org>
38626 common: Comment out unused code.
38627 + commit f101f34fffee4a02e7a5f62b59667e45e50e8325
38628 * common/w32-reg.c (write_w32_registry_string): Comment out.
38630 dirmngr: Remove unused file.
38631 + commit 2830fcb83c99289a49da0e111766daf2d9a1fa3b
38632 * dirmngr/get-path.c: Remove.
38634 2013-06-27 Werner Koch <wk@gnupg.org>
38636 sm: Remove cruft from source files.
38637 + commit f254497e09fa4e0e24e63d14f7316fc31c938844
38638 * sm/keydb.c, sm/keydb.h: Remove disabled code parts.
38640 Prepare for newer automake versions.
38641 + commit 043e2728c813299fafcf62cd125ecf872b26179e
38642 * configure.ac (AM_INIT_AUTOMAKE): Replace 2 argument form by the
38643 option form. Add options from the top Makefile.
38644 (AM_CONFIG_HEADER): Rename to AC_CONFIG_HEADER.
38645 * Makefile.am (AUTOMAKE_OPTIONS): Remove.
38647 * kbx/Makefile.am: Remove INCLUDES. Include cmacros.am. FActor some
38648 AM_CPPFLAGS options to AM_CFLAGS.
38650 2013-06-26 Werner Koch <wk@gnupg.org>
38652 Fix Makefile regression.
38653 + commit 136f190a2f20c6ec4d5c3ca3ac7f0440c14e4dc2
38654 * agent/Makefile.am (gpg_agent_DEPENDENCIES): Remove cruft from wrong
38655 resolve conflict 2013-04-25.
38656 (gpg_agent_DEPENDENCIES): Remove obsolete gpg_agent_res_deps
38657 (gpg_agent_LDFLAGS): Remove obsolete gpg_agent_res_ldflags.
38659 2013-05-22 Werner Koch <wk@gnupg.org>
38661 Implement unattended OpenPGP secret key import.
38662 + commit 7777e68d0482c942f527e91c04adbcfb40bc8bef
38663 * agent/command.c (cmd_import_key): Add option --unattended.
38664 * agent/cvt-openpgp.c (convert_transfer_key): New.
38665 (do_unprotect): Factor some code out to ...
38666 (prepare_unprotect): new function.
38667 (convert_from_openpgp): Factor all code out to ...
38668 (convert_from_openpgp_main): this. Add arg 'passphrase'. Implement
38669 openpgp-native protection modes.
38670 (convert_from_openpgp_native): New.
38671 * agent/t-protect.c (convert_from_openpgp_native): New dummy fucntion
38672 * agent/protect-tool.c (convert_from_openpgp_native): Ditto.
38673 * agent/protect.c (agent_unprotect): Add arg CTRL. Adjust all
38674 callers. Support openpgp-native protection.
38675 * g10/call-agent.c (agent_import_key): Add arg 'unattended'.
38676 * g10/import.c (transfer_secret_keys): Use unattended in batch mode.
38678 New debug functions log_printcanon and log_printsexp.
38679 + commit cb6a64bb78296c8e9f72df0c482ff847e89a1541
38680 * common/sexputil.c (sexp_to_string, canon_sexp_to_string): New.
38681 (log_printcanon, log_printsexp): New.
38683 agent: Fix length detection of canonical formatted openpgp keys.
38684 + commit 0f0e0559f9b160824f10dc17b389268cdb53aea4
38685 * agent/command.c (cmd_import_key): Pass 0 instead of KEYLEN to
38686 gcry_sexp_canon_len.
38688 agent: New option --disable-check-own-socket.
38689 + commit f2d8a14e1b12534eba69d595a62c78f92331e11b
38690 * agent/gpg-agent.c (oDisableCheckOwnSocket): New.
38691 (disable_check_own_socket): New.
38692 (parse_rereadable_options): Set new option.
38693 (check_own_socket): Implement new option.
38695 2013-05-07 Werner Koch <wk@gnupg.org>
38697 w32: Add icons and version information.
38698 + commit 88e24341e57c96e31a25e92e09d67989e64cc1c1
38699 * common/gnupg.ico: New. Take from artwork/gnupg-favicon-1.ico.
38700 * agent/gpg-agent-w32info.rc: New.
38701 * g10/gpg-w32info.rc: New.
38702 * scd/scdaemon-w32info.rc: New.
38703 * sm/gpgsm-w32info.rc: New.
38704 * tools/gpg-connect-agent-w32info.rc: New.
38705 * common/w32info-rc.h.in: New.
38706 * configure.ac (BUILD_REVISION, BUILD_FILEVERSION, BUILD_TIMESTAMP)
38707 (BUILD_HOSTNAME): New.
38708 (AC_CONFIG_FILES): Add w32info-rc.h.
38709 * am/cmacros.am (.rc.o): New rule.
38710 * agent/Makefile.am, common/Makefile.am, g10/Makefile.am
38711 * scd/Makefile.am, sm/Makefile.am, tools/Makefile.am: Add stuff to
38712 build resource files.
38714 2013-05-07 Ian Abbott <abbotti@mev.co.uk>
38716 doc: fix some Texinfo warnings.
38717 + commit 2c3fc4719b92d9e3ac32efd134a930e1cc126032
38718 * doc/gpg.texi: Fix syntax and add missing menu entries.
38719 * doc/gpgsm.texi: Fix subsectioning.
38721 2013-04-22 Werner Koch <wk@gnupg.org>
38723 Fix potential heap corruption in "gpg -v --version".
38724 + commit 151b78cc26d728e9eb42620e0caf8c6f4bd7f839
38725 * g10/gpg.c (build_list): Rewrite to cope with buffer overflow in
38728 2013-04-19 Werner Koch <wk@gnupg.org>
38730 gpgsm: Remove non-implemented commands from --help.
38731 + commit d6798d261cbe6519ef5b3ebb474e2ad348442c0c
38732 * sm/gpgsm.c (opts): Removed commands --clearsign, --symmetric,
38733 --send-keys, and --recv-keys.
38735 2013-04-19 Daiki Ueno <ueno@gnu.org>
38737 Make sure to call fflush if estream_t is backed with stdio.
38738 + commit e498180d5647d3427a7d7e6c82a9f09cf1ba439d
38739 * common/estream.c (es_func_fp_write): Call fflush after fwrite.
38741 2013-04-19 Werner Koch <wk@gnupg.org>
38743 doc: Formatting fixes.
38744 + commit ff6115227a1ced14e2fb3d160a12181b9dfbc502
38745 * doc/Makefile.am (.fig.jpg): Correct to use -L jpeg.
38746 * doc/gpg.texi: Fix cross reference for --options.
38747 * doc/gpgsm.texi: Likewise.
38748 * doc/gpl.texi: Fix enumerate and re-indent examples.
38750 2013-04-01 NIIBE Yutaka <gniibe@fsij.org>
38752 scd: move SCDaemon to libexecdir.
38753 + commit 021767d8aa11aac8ac87dc3a31969ee6cfa65966
38754 * common/homedir.c (gnupg_module_name): It's now libexecdir.
38755 * scd/Makefile.am (libexec_PROGRAMS): Add scdaemon
38756 (bin_PROGRAMS): Remove scdaemon.
38758 2013-03-29 Werner Koch <wk@gnupg.org>
38760 copyright assignments are not anymore required.
38761 + commit 07227279c44e3af0939f90025a0d22b782d0f185
38764 2013-03-26 NIIBE Yutaka <gniibe@fsij.org>
38766 scd: PC/SC status fix.
38767 + commit 64b1a2cf6f18348544a2d2cd4d49fd27bf01c150
38768 * scd/apdu.c (pcsc_get_status_direct): Check PCSC_STATE_MUTE only when
38769 PCSC_STATE_PRESENT.
38771 * scd/pcsc-wrapper.c (handle_status): Ditto.
38773 scd: PC/SC cleanup (more).
38774 + commit b9aceaa442914beb4f5359283053b43ba5a46b4c
38775 * scd/apdu.c (control_pcsc_direct, control_pcsc_wrapped, control_pcsc)
38776 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify): Use
38779 scd: call update_card_removed only when detecting removal.
38780 + commit 1062893832bb15eaac853f52e1cb673e5e03790a
38781 * scd/command.c (update_reader_status_file): Add condition
38784 2013-03-22 NIIBE Yutaka <gniibe@fsij.org>
38786 scd: PC/SC cleanup.
38787 + commit ee95c23fcdc6673db0fc7287ab2197915d9b55b3
38788 * scd/apdu.c (pcsc_dword_t): New. It was named as DWORD (double-word)
38789 when a word was 16-bit.
38790 (struct reader_table_s): Fixes for types.
38791 (struct pcsc_readerstate_s) [__APPLE__]: Enable #pragma pack(1).
38792 Throughout: Fixes for types.
38794 * scd/pcsc-wrapper.c: Likewise.
38796 2013-03-21 NIIBE Yutaka <gniibe@fsij.org>
38799 + commit a75a08d6e30e93e1793aa78a15d473a3ea7623cb
38800 * po/LINGUAS: Enable ja.po.
38802 scd: change default value of pinpad maxlen.
38803 + commit ca66f5c779af74d0eb7221afd7a9707201931e50
38804 * scd/apdu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Default value
38805 of maxlen for pinpad input is now 15 (was: 25).
38807 * scd/ccid-driver.c (ccid_transceive_secure): Likewise.
38809 2013-03-20 Werner Koch <wk@gnupg.org>
38811 Add code to allow for late memory cleanup.
38812 + commit 2739834206f23833161898a73427b8a9c6d5d26d
38813 * common/init.c (mem_cleanup_item_t): New.
38814 (run_mem_cleanup): New.
38815 (_init_common_subsystems): Add an atexit for it.
38816 (register_mem_cleanup_func): New.
38818 * g10/kbnode.c (cleanup_registered): New.
38819 (release_unused_nodes): New.
38820 (alloc_node): Call register_mem_cleanup_func.
38822 kbx: Remove unused macro.
38823 + commit 44159b681f8f09000fabfc3ee294d5821578d3a6
38824 * kbx/keybox.h (KEYBOX_WITH_OPENPGP): Remove unused macro.
38826 2013-03-19 Werner Koch <wk@gnupg.org>
38828 gpg: Print indicator for unknown key capability.
38829 + commit c4dbd1b2de8ae3847a040444e86500848868bcf4
38830 * g10/keylist.c (print_capabilities): Print '?' for unknown usage.
38832 2013-03-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
38834 gpg: Allow setting of all zero key flags.
38835 + commit b693ec02c467696bf9d7324dd081e279f9965151
38836 * g10/keygen.c (do_add_key_flags): Do not check for empty key flags.
38838 2013-03-19 Werner Koch <wk@gnupg.org>
38840 gpg: Distinguish between missing and cleared key flags.
38841 + commit 4bde12206c5bf199dc6e12a74af8da4558ba41bf
38842 * include/cipher.h (PUBKEY_USAGE_NONE): New.
38843 * g10/getkey.c (parse_key_usage): Set new flag.
38845 2013-03-15 NIIBE Yutaka <gniibe@fsij.org>
38847 scd: ccid-driver supporting larger APDU.
38848 + commit 76dc5c08dc2686eef32e1bd221c60fe91201246f
38849 * scd/ccid-driver.c (ccid_transceive_apdu_level): Support larger
38852 scd: fix missing close paren.
38853 + commit 006782068e4d2a9413770400494421a2e9726ee7
38854 * scd/app-openpgp.c (du_auth): Fix.
38856 2013-03-09 NIIBE Yutaka <gniibe@fsij.org>
38858 scd: support ECDSA signing.
38859 + commit 73ad742deacfe2bf7d6efc7cc30f9ced2d83521a
38860 * scd/app-openpgp.c (do_sign): Only prepend message digest block
38861 for RSA or do_auth.
38862 (do_auth): Remove message digest block for ECDSA.
38864 2013-03-08 NIIBE Yutaka <gniibe@fsij.org>
38866 scd: support ECDSA public key.
38867 + commit 010bc7f4f06d8affb98950e1adc76c68bfcc9abb
38868 * scd/app-openpgp.c (key_type_t): New.
38869 (CURVE_NIST_P256, CURVE_NIST_P384, CURVE_NIST_P521): New.
38870 (struct app_local_s): Change keyattr to have key_type and union.
38871 (get_ecc_key_parameters, get_curve_name): New.
38872 (send_key_attr, get_public_key): Support ECDSA.
38873 (build_privkey_template, do_writekey, do_genkey): Follow the change
38874 of the member KEY_ATTR.
38875 (parse_historical): New.
38876 (parse_algorithm_attribute): Support ECDSA.
38878 2013-03-05 Werner Koch <wk@gnupg.org>
38880 Require libgpg-error 1.11.
38881 + commit 5bac5040dc93343e1e89916b263390b0e52040bf
38882 * configure.ac: Require libgpg-error 1.11.
38883 * common/util.h (GPG_ERR_NO_KEYSERVER, GPG_ERR_INV_CURVE)
38884 (GPG_ERR_UNKNOWN_CURVE): Remove fallback definitions.
38886 2013-02-28 NIIBE Yutaka <gniibe@fsij.org>
38888 agent: pksign result conversion to sexp to upper layer.
38889 + commit ef1983d58b913306e9bf02a7189e530123839c59
38890 * agent/agent.h (divert_pksign): Add R_SIGLEN argument.
38891 * agent/divert-scd.c (divert_pksign): Return length at R_SIGLEN.
38892 * agent/call-scd.c (agent_card_pksign): Move composition of
38894 * agent/pksign.c (agent_pksign_do): ... here.
38896 2013-02-22 Werner Koch <wk@gnupg.org>
38898 Use has_leading_keyword in the assuan callbacks.
38899 + commit 585d5c62eece23911a768d97d11f159be138b13d
38900 * agent/call-pinentry.c (inq_quality): Use has_leading_keyword.
38901 * agent/call-scd.c (inq_needpin, inq_writekey_parms): Ditto.
38902 * g10/call-agent.c (inq_writecert_parms, keyinfo_status_cb): Ditto.
38903 (inq_genkey_parms, inq_ciphertext_cb, inq_import_key_parms): Ditto.
38904 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
38905 * sm/call-agent.c (default_inq_cb, inq_ciphertext_cb): Ditto.
38906 (inq_genkey_parms, istrusted_status_cb, learn_status_cb): Ditto.
38907 (keyinfo_status_cb, inq_import_key_parms): Ditto.
38908 * sm/call-dirmngr.c (inq_certificate, isvalid_status_cb): Ditto.
38909 (lookup_status_cb, run_command_inq_cb, run_command_status_cb): Ditto.
38911 Remove some unused variables.
38912 + commit c6b8f05517228c6aeab28d2bf5da7724c059bb1a
38913 * tools/gpgconf-comp.c (gc_process_gpgconf_conf): Remove unused
38915 * agent/command-ssh.c (ssh_signature_encoder_ecdsa): Mark unused arg.
38916 * g13/g13.c (main): Comment variable of yet unimplemented options.
38918 gpg: Fix a memory leak in batch key generation.
38919 + commit 161674118d568025896026ede5e03d26bdfdfa68
38920 * g10/keygen.c (append_to_parameter): New.
38921 (proc_parameter_file): Use new func to extend the parameter list.
38923 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
38924 gcry_kdf_derive failed.
38925 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
38926 passphrase_to_dek failed.
38928 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
38929 + commit baee681d2406530c45fd6d4bde77193ba23ac263
38930 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
38932 common: Add func has_leading_keyword.
38933 + commit 2838385e76c8c7108bc949d5a1d1c947051bd5be
38934 * common/stringhelp.c (has_leading_keyword): New.
38936 Remove build hacks for FreeBSD.
38937 + commit 21f5a9ec27c0794141a835a5bb3c69495ee554a6
38938 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
38941 2013-02-22 NIIBE Yutaka <gniibe@fsij.org>
38943 agent: fix two bugs.
38944 + commit 3c3648e720b8014828573bd708c88ba4775014e3
38945 * agent/command.c (cmd_keytocard): Decrement KEYDATALEN.
38946 * agent/findkey.c (agent_public_key_from_file): Increment for ELEMS.
38948 gpg: fix keytocard and support ECC card for key attribute.
38949 + commit 7d376ffa321d4af6e62a2bc64ef2b8574b122b1a
38950 * g10/call-agent.c (agent_keytocard): Supply PARM arg.
38951 * g10/card-util.c (card_status): Support ECC.
38952 (card_store_subkey): Don't assume RSA.
38954 2013-02-21 Werner Koch <wk@gnupg.org>
38956 gpg: Fix a memory leak in batch key generation.
38957 + commit 273bb38cd7b517460cb3de67662e96e910104675
38958 * g10/keygen.c (append_to_parameter): New.
38959 (proc_parameter_file): Use new func to extend the parameter list.
38961 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
38962 gcry_kdf_derive failed.
38963 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
38964 passphrase_to_dek failed.
38966 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
38967 + commit 18a261b65fd77a9e434b13483ceaaaf2176f1197
38968 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
38970 common: Add func has_leading_keyword.
38971 + commit 4af0c62b15c51056dc293c8e3b907e7c41fbf08c
38972 * common/stringhelp.c (has_leading_keyword): New.
38974 2013-02-20 Werner Koch <wk@gnupg.org>
38976 Remove build hacks for FreeBSD.
38977 + commit 8e5766c38f3ac376fb8e7c7f2b0f65de23d84cbe
38978 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
38981 2013-02-12 NIIBE Yutaka <gniibe@fsij.org>
38983 gpg: Implement card_store_subkey again.
38984 + commit b90506ea220860c89128f002bd593d0462a08d73
38985 * g10/call-agent.h (agent_keytocard): New.
38986 * g10/call-agent.c (agent_keytocard): New.
38987 * g10/card-util.c (replace_existing_key_p): Returns 1 when replace.
38988 (card_generate_subkey): Check return value of replace_existing_key_p.
38989 (card_store_subkey): Implement again using agent_keytocard.
38991 agent: Add KEYTOCARD command.
38992 + commit 30f8a3c8736451d8c06ef72521a8da5eabf23016
38993 * agent/agent.h (divert_writekey, agent_card_writekey): New.
38994 * agent/call-scd.c (inq_writekey_parms, agent_card_writekey): New.
38995 * agent/command.c (cmd_keytocard, hlp_keytocard): New.
38996 (register_commands): Add cmd_keytocard.
38997 * agent/divert-scd.c (divert_writekey): New.
38999 Japanese: update po and doc.
39000 + commit 595ab0da666c43a1315a72a1346ee149998d8771
39001 * doc/help.ja.txt, po/ja.po: Updated.
39003 2013-02-08 NIIBE Yutaka <gniibe@fsij.org>
39005 scd: Rename 'keypad' to 'pinpad'.
39006 + commit 7253093addfd82a8dd25cd80e3ba820a85e3c9a7
39007 * NEWS: Mention scd changes.
39009 * agent/divert-scd.c (getpin_cb): Change message.
39011 * agent/call-scd.c (inq_needpin): Change the protocol to
39012 POPUPPINPADPROMPT and DISMISSPINPADPROMPT.
39013 * scd/command.c (pin_cb): Likewise.
39015 * scd/apdu.c (struct reader_table_s): Rename member functions.
39016 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify,
39017 check_ccid_pinpad, ccid_pinpad_operation, apdu_check_pinpad
39018 apdu_pinpad_verify, apdu_pinpad_modify): Rename.
39020 * scd/apdu.h (SW_HOST_NO_PINPAD, apdu_check_pinpad)
39021 (apdu_pinpad_verify, apdu_pinpad_modify): Rename.
39023 * scd/iso7816.h (iso7816_check_pinpad): Rename.
39025 * scd/iso7816.c (map_sw): Use SW_HOST_NO_PINPAD.
39026 (iso7816_check_pinpad): Rename.
39027 (iso7816_verify_kp, iso7816_change_reference_data_kp): Follow
39030 * scd/ccid-driver.h (CCID_DRIVER_ERR_NO_PINPAD): Rename.
39031 * scd/ccid-driver.c (ccid_transceive_secure): Use it.
39033 * scd/app-dinsig.c (verify_pin): Follow the change.
39034 * scd/app-nks.c (verify_pin): Follow the change.
39036 * scd/app-openpgp.c (check_pinpad_request): Rename.
39037 (parse_login_data, verify_a_chv, verify_chv3, do_change_pin): Follow
39040 * scd/scdaemon.c (oDisablePinpad, oEnablePinpadVarlen): Rename.
39042 * scd/scdaemon.h (opt): Rename to disable_pinpad,
39043 enable_pinpad_varlen.
39045 * tools/gpgconf-comp.c (gc_options_scdaemon): Rename to
39048 2013-02-07 Werner Koch <wk@gnupg.org>
39050 gpg: Add pinentry-mode feature.
39051 + commit 21feecd48f990b2569cb4b385dea3e57b9501525
39052 * g10/gpg.c: Include shareddefs.h.
39053 (main): Add option --pinentry-mode.
39054 * g10/options.h (struct opt): Add field pinentry_mode.
39055 * g10/passphrase.c: Include shareddefs.h.
39056 (have_static_passphrase): Take care of loopback pinentry_mode.
39057 (read_passphrase_from_fd): Ditto.
39058 (get_static_passphrase): New.
39059 (passphrase_to_dek_ext): Factor some code out to ...
39060 (emit_status_need_passphrase): new.
39061 * g10/call-agent.c (start_agent): Send the pinentry mode.
39062 (default_inq_cb): Take care of the PASSPHRASE inquiry. Return a
39064 (agent_pksign): Add args keyid, mainkeyid and pubkey_algo.
39065 (agent_pkdecrypt): Ditto.
39066 * g10/pubkey-enc.c (get_it): Pass new args.
39067 * g10/sign.c (do_sign): Pass new args.
39069 * g10/call-agent.c (struct default_inq_parm_s): New. Change all
39070 similar structs to reference this one. Change all users and inquire
39071 callback to use this struct, instead of NULL or some undefined but not
39072 used structs. This change will help to eventually get rid of global
39075 2013-02-06 Werner Koch <wk@gnupg.org>
39077 agent: Move a typedef to common and provide parse_pinentry_mode.
39078 + commit 8b2b8dfe5c4cd346bbea2c228e75737bbeeca4c4
39079 * common/agent-opt.c: New.
39080 * common/shareddefs.h: New.
39081 * common/Makefile.am: Add new files.
39082 * agent/agent.h: Include shareddefs.h.
39083 (pinentry_mode_t): Factor out to shareddefs.h.
39084 * agent/command.c (option_handler): Use parse_pinentry_mode.
39086 agent: Return a better error code if no passphrase was given.
39087 + commit 4483a4f0ea030046137ba04905eb5220c14a2161
39088 * agent/protect.c (hash_passphrase): Handle an empty passphrase.
39090 2013-02-05 NIIBE Yutaka <gniibe@fsij.org>
39092 scd: Fix check_keypad_request.
39093 + commit c27315fc6466cceb862c9e67755a8e044e9b7688
39094 * scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
39096 SCD: Add vendor specific initalization.
39097 + commit e791ac6683bfb90d5e40c0103324784bd58535c9
39098 * scd/ccid-driver.c (ccid_vendor_specific_init): New.
39099 (ccid_open_reader): Call ccid_vendor_specific_init.
39101 SCD: Support P=N format for login data.
39102 + commit 0407e642f796fb2780a77b7a1a86731d0de27e5d
39103 * scd/app-openpgp.c (parse_login_data): Support P=N format.
39105 SCD: Better interoperability.
39106 + commit bd5eded73a1268afdf81482f8408e5f640abf9c4
39107 * scd/apdu.c: Fill bTeoPrologue[2] field.
39109 SCD: Defaults to use pinpad if the reader has the capability.
39110 + commit a9ff97a10f7ae5a703ed1bccba294473ecc88d5d
39111 * scd/app-openpgp.c (struct app_local_s): Remove VARLEN.
39112 (parse_login_data): "P=0" means to disable pinpad.
39113 (check_keypad_request): Default is to use pinpad if available.
39115 SCD: handle keypad request on the card.
39116 + commit 334ba6efa5a05d8849fae213128a0505e7615e13
39117 * scd/app-openpgp.c: Add 2013.
39118 (struct app_local_s): Add keypad structure.
39119 (parse_login_data): Add parsing keypad request on the card.
39120 (check_keypad_request): New.
39121 (verify_a_chv, verify_chv3, do_change_pin): Call check_keypad_request
39122 to determine use of keypad.
39124 SCD: Minor fix of ccid-driver.
39125 + commit d5bf83a24cf3871b7d8cfe61049f70e1e206d09a
39126 * scd/ccid-driver.c (VENDOR_VEGA): Fix typo.
39128 SCD: Add support of Covadis VEGA_ALPHA reader.
39129 + commit 82e1e837c29225cd55642b193cc04ce6191d19bb
39130 * scd/ccid-driver.c: Add 2013.
39131 (VENDER_VEGA, VEGA_ALPHA):New.
39132 (ccid_transceive_secure): VEGA_ALPHA is same firmware as GEMPC_PINPAD.
39133 Change bNumberMessage to 0x01, as it works better (was: 0xff).
39135 SCD: Support fixed length PIN input for keypad (PC/SC).
39136 + commit 3aae780f9debaeb3560ff866b7e09d0923481c57
39137 * scd/apdu.c (pcsc_keypad_verify): SUpport fixed length PIN input for
39139 (pcsc_keypad_modify): Likewise.
39140 * scd/ccid-driver.c (ccid_transceive_secure): Clean up.
39142 SCD: Support fixed length PIN input for keypad.
39143 + commit 40a914a2e3052847b49c4b5e8ac8538e97efd18a
39144 * scd/iso7816.h (struct pininfo_s): Remove MODE and add FIXEDLEN.
39145 * scd/app-dinsig.c (verify_pin): Initialize FIXEDLEN to unknown.
39146 * scd/app-nks.c (verify_pin): Likewise.
39147 * scd/app-openpgp.c (verify_a_chv, verify_chv3, do_change_pin):
39149 * scd/apdu.c (check_pcsc_keypad): Add comment.
39150 (pcsc_keypad_verify, pcsc_keypad_modify): PC/SC driver only support
39151 readers with the feature of variable length input (yet).
39152 (apdu_check_keypad): Set FIXEDLEN.
39153 * scd/ccid-driver.c (ccid_transceive_secure): Add GEMPC_PINPAD
39155 Support fixed length PIN input for keypad.
39157 SCD: API cleanup for keypad handling.
39158 + commit b526f6e223604b7c1852ef2aab9fc1ea691b1181
39159 * scd/iso7816.h (struct pininfo_s): Rename from iso7816_pininfo_s.
39160 Change meaning of MODE.
39161 (pininfo_t): Rename from iso7816_pininfo_t.
39162 * scd/sc-copykeys.c: Include "iso7816.h".
39163 * scd/scdaemon.c, scd/command.c: Likewise.
39164 * scd/ccid-driver.c: Include "scdaemon.h" and "iso7816.h".
39165 (ccid_transceive_secure): Follow the change of PININFO_T.
39166 * scd/app.c: Include "apdu.h" after "iso7816.h".
39167 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
39168 (iso7816_change_reference_data_kp): Follow the change of API.
39169 * scd/apdu.c (struct reader_table_s): Change API of CHECK_KEYPAD,
39170 KEYPAD_VERIFY, KEYPAD_MODIFY to have arg of PININFO_T.
39171 (check_pcsc_keypad, check_ccid_keypad): Likewise.
39172 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify): Likewise.
39173 (pcsc_keypad_verify, pcsc_keypad_modify, ct_send_apdu)
39174 (pcsc_send_apdu_direct, pcsc_send_apdu_wrapped, pcsc_send_apdu)
39175 (send_apdu_ccid, ccid_keypad_operation, my_rapdu_send_apdu, send_apdu)
39176 (send_le): Follow the change of API.
39177 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
39178 (apdu_keypad_modify): Change the API.
39179 * scd/app-dinsig.c, scd/app-nks.c, scd/app-openpgp.c: Follow the
39182 SCD: Clean up. Remove PADLEN for keypad input.
39183 + commit ca89277cb4cb9558da97a71a4cb070cb77c9b536
39184 * scd/apdu.c (struct pininfo_s): Use iso7816_pininfo_s.
39185 (struct reader_table_s): Remove last arg from check_keypad method.
39186 (check_pcsc_keypad, check_pcsc_keypad): Remove PIN_PADLEN.
39187 (pcsc_keypad_verify, pcsc_keypad_modify): Don't check PIN_PADLEN.
39188 (send_apdu_ccid, ccid_keypad_operation): Remove PIN_PADLEN.
39189 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify):
39192 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
39193 (apdu_keypad_modify): Remove PIN_PADLEN.
39195 * scd/ccid-driver.c (ccid_transceive_secure): Remove PIN_PADLEN.
39197 * scd/ccid-driver.h (ccid_transceive_secure): Remove PIN_PADLEN.
39199 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
39200 (iso7816_change_reference_data_kp): Remove PADLEN.
39202 * scd/iso7816.h (struct iso7816_pininfo_s): Remove PADLEN, PADCHAR.
39204 SCD: Add option enable-keypad-varlen and support for GEMPC_PINPAD.
39205 + commit d9f6cc7502793ed41928042cc2f968c8c7effc22
39206 * scd/scdaemon.h (opt): Add enable_keypad_varlen.
39207 * scd/scdaemon.c (cmd_and_opt_values): Add oEnableKeypadVarlen.
39208 (opts, main): Add oEnableKeypadVarlen.
39209 * scd/ccid-driver.c (GEMPC_PINPAD): New.
39210 (ccid_transceive_secure): Add enable_varlen handling.
39211 Enable GEMPC_PINPAD.
39213 2013-01-30 Werner Koch <wk@gnupg.org>
39215 Remove unused status codes.
39216 + commit 50a7badbdacac8ba472b35090c1aab4568434d04
39217 * common/status.h (STATUS_BEGIN_STREAM, STATUS_END_STREAM)
39218 (STATUS_SIEXPIRED): Remove unused codes.
39220 gpg: Add status line PINENTRY_LAUNCHED.
39221 + commit 1cd6445eec4c3642ad92afb02f3563a01cc10c10
39222 * common/status.h (STATUS_PINENTRY_LAUNCHED): New.
39223 * g10/server.c (server_local_s): Add field allow_pinentry_notify.
39224 (option_handler): Add option "allow-pinentry-notify".
39225 (gpg_proxy_pinentry_notify): New.
39226 * g10/call-agent.c (default_inq_cb): Factor code out to the new
39229 2013-01-25 NIIBE Yutaka <gniibe@fsij.org>
39231 agent: Fix a bug of handling return code from npth_join.
39232 + commit 19994466449a93704d38d429ca1ea36f63da0bf0
39233 * agent/call-pinentry.c (agent_popup_message_stop): Fix npth_join
39236 2013-01-11 Christian Aistleitner <christian@quelltextlich.at>
39238 gpg: Fix honoring --cert-digest-algo when recreating a cert.
39239 + commit 60c58766aeb847b769372fa981f79abac6014500
39240 * g10/sign.c (update_keysig_packet): Override original signature's
39241 digest algo in hashed data and for hash computation.
39243 2013-01-11 Werner Koch <wk@gnupg.org>
39245 Fix spurious cruft from configure summary output.
39246 + commit 7a638c094fa1aa7ed1d9caf085af9980a2664d64
39247 * configure.ac (build_scdaemon_extra): Remove $tmp cruft.
39249 2013-01-11 NIIBE Yutaka <gniibe@fsij.org>
39251 SCD: Hold lock for pinpad input.
39252 + commit 4dddf32c83f52483d95d7770232e9e808558e702
39253 * scd/apdu.c (apdu_check_keypad, apdu_keypad_verify)
39254 (apdu_keypad_modify): Hold lock to serialize communication.
39256 2013-01-08 Werner Koch <wk@gnupg.org>
39258 kbx: Switch from MD5 to SHA-1 for the checksum.
39259 + commit b11f84b858bad867f1062977a7aba30299157e90
39260 * kbx/keybox-blob.c (put_membuf): Use a NULL buf to store zero bytes.
39261 (create_blob_finish): Write just the needed space.
39262 (create_blob_finish): Switch to SHA-1.
39263 * kbx/keybox-dump.c (print_checksum): New.
39264 (_keybox_dump_blob): Print the checksum and the verification status.
39266 gpg: Cache keybox searches.
39267 + commit 492792378dc7a79316ef742b2ffaa46c6cda282a
39268 * common/iobuf.c (iobuf_seek): Fix for temp streams.
39269 * g10/pubkey-enc.c (get_session_key, get_it): Add some log_clock calls.
39270 * g10/keydb.c (dump_search_desc): New.
39271 (enum_keyblock_states, struct keyblock_cache): New.
39272 (keyblock_cache_clear): New.
39273 (keydb_get_keyblock, keydb_search): Implement a keyblock cache.
39274 (keydb_update_keyblock, keydb_insert_keyblock, keydb_delete_keyblock)
39275 (keydb_rebuild_caches, keydb_search_reset): Clear the cache.
39277 Make log_clock easier to read.
39278 + commit 5c565512b8af73bee2a176530663154b9277ef1c
39279 * common/logging.c (log_clock): Print in microseconds.
39281 gpg: Remove a function wrapper.
39282 + commit f3f5721e6843a08d1011875400f385b8cd5fe226
39283 * g10/keydb.h (keydb_search): Remove macro.
39284 * g10/keydb.c (keydb_search2): Rename to keydb_search. Change all
39287 2013-01-08 NIIBE Yutaka <gniibe@fsij.org>
39289 SCD: Support not-so-smart card readers.
39290 + commit a776f660363d20b6cc023609c4547e0aa8825d97
39291 * scd/ccid-driver.c (struct ccid_driver_s): Add auto_voltage,
39292 auto_param, and auto_pps.
39293 (parse_ccid_descriptor): Set auto_voltage, auto_param, and auto_pps.
39294 Support non-autoconf readers.
39295 (update_param_by_atr): New.
39296 (ccid_get_atr): Use 5V for PowerOn when auto_voltage is not supported.
39297 Use 0x10 when nonnull_nad for SetParameters.
39298 Call update_param_by_atr for parsing ATR, and use param for
39300 Send PPS if reader requires it and card is negotiable.
39301 When bNadValue in the return values of SetParameters == 0,
39302 clear handle->nonnull_nad flag.
39304 2013-01-07 Werner Koch <wk@gnupg.org>
39306 gpg: Set the node flags while retrieving a keyblock.
39307 + commit f6d7b3f1ee5eed32bc3257c99cb878091d26c482
39308 * g10/keydb.c (parse_keyblock_image): Add args PK_NO and UID_NO and
39309 set the note flags accordingly.
39310 (keydb_get_keyblock): Transfer PK_NO and UID_NO to parse_keyblock_image.
39311 * kbx/keybox-search.c (blob_cmp_fpr, blob_cmp_fpr_part)
39312 (blob_cmp_name, blob_cmp_mail): Return the key/user number.
39313 (keybox_search): Set the key and user number into the found struct.
39314 (keybox_get_keyblock): Add args R_PK_NO and R_UID_NO and set them from
39317 New function log_clock.
39318 + commit 0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f
39319 * common/logging.c (log_clock): New.
39320 * g10/gpg.c (set_debug): Print clock debug flag.
39321 * g10/options.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
39323 gpg: Allow searching for user ids in a keybox.
39324 + commit fb31462e7e92d4b19256e6fd40b1b6ffcef2676c
39325 * kbx/keybox-search.c (blob_cmp_name): Add arg X509 and adjust for PGP
39326 use. Change callers.
39327 (blob_cmp_mail): Add arg X509 and find the mailbox offset for PGP.
39329 (has_subject_or_alt): Rename to has_username.
39330 (has_username): Allow blobtype PGP.
39333 gpg: Allow generation of more than 4096 keys in one run.
39334 + commit 7d00e52bd58d9e40c18dcc0122b2c236ef3318f5
39335 * g10/getkey.c (cache_public_key): Make room in the cache if needed.
39337 2013-01-07 NIIBE Yutaka <gniibe@fsij.org>
39339 Update Japanese Translation.
39340 + commit bb51edc31e6595e38fcbd91d470de57d3a1a7150
39341 * po/ja.po: Fix wrong translations for designated revocation.
39342 Reported by Hideki Saito.
39347 2013-01-05 NIIBE Yutaka <gniibe@fsij.org>
39349 Update Japanese Translation.
39350 + commit 05a4458e5721a0afd600f0ec908e739fa83d58f2
39351 * po/ja.po: Fix fuzzy translations.
39353 2013-01-03 NIIBE Yutaka <gniibe@fsij.org>
39355 Update Japanese Translation.
39356 + commit 709a8f8125b9ba5e1ad1e6268cca5ac96d478f63
39357 * po/ja.po: Update with POT.
39359 Update Japanese Translation.
39360 + commit 0fae789c4125dd8492ed25bd6728b5ac98f19729
39361 * po/ja.po: Start from the new one of 2.0.
39363 2012-12-28 Werner Koch <wk@gnupg.org>
39365 gpg: Add signature cache support to the keybox.
39366 + commit 79f08fb0699f4a065e3a29bc7676a90534d7ba60
39367 * g10/keydb.c (parse_keyblock_image): Add arg SIGSTATUS.
39368 (keydb_get_keyblock): Handle it.
39369 (build_keyblock_image): Add arg SIGSTATUS.
39370 (keydb_insert_keyblock): Handle it.
39371 * kbx/keybox-blob.c (pgp_create_sig_part): Add arg SIGSTATUS.
39372 (_keybox_create_openpgp_blob): Ditto.
39373 * kbx/kbxutil.c (import_openpgp): Adjust for above change.
39374 * kbx/keybox.h (KEYBOX_FLAG_SIG_INFO): New.
39375 * kbx/keybox-search.c (_keybox_get_flag_location): Handle new flag.
39376 (keybox_get_keyblock): Add arg R_SIGSTATUS.
39377 * kbx/keybox-update.c (keybox_insert_keyblock): Add arg SIGSTATUS.
39379 kbxutil: Improve format of the Sig-Expire lines.
39380 + commit 564d10ea5cd29685a00a4096d69ae2476b60506f
39381 * kbx/keybox-dump.c (_keybox_dump_blob): Print the expirate timestamp.
39383 gpg: First working support for keyboxes.
39384 + commit a9863834244fc2a58d8950977243702d12e420a1
39385 * g10/getkey.c (get_pubkey_fast): Improve the assertion.
39386 * kbx/keybox.h: Include iobuf.h.
39387 * kbx/keybox-blob.c (keyboxblob_uid): Add field OFF.
39388 (KEYBOX_WITH_OPENPGP): Remove use of this macro.
39389 (pgp_create_key_part_single): New.
39390 (pgp_temp_store_kid): Change to use the keybox-openpgp parser.
39391 (pgp_create_key_part): Ditto.
39392 (pgp_create_uid_part): Ditto.
39393 (pgp_create_sig_part): Ditto.
39394 (pgp_create_blob_keyblock): Ditto.
39395 (_keybox_create_openpgp_blob): Ditto.
39396 * kbx/keybox-search.c (keybox_get_keyblock): New.
39397 * kbx/keybox-update.c (keybox_insert_keyblock): New.
39398 * g10/keydb.c (parse_keyblock_image):
39399 (keydb_get_keyblock): Support keybox.
39400 (build_keyblock_image): New.
39401 (keydb_insert_keyblock): Support keybox.
39403 * kbx/kbxutil.c (import_openpgp, main): Add option --dry-run and print
39404 a kbx file to stdout.
39406 * kbx/keybox-file.c (_keybox_read_blob2): Allow keyblocks up to 10^6
39409 kbxutil: Print algo number and fold similar lines.
39410 + commit f7495f1004071a0ceac394007bb37f88d7a3467f
39411 * kbx/keybox-defs.h (_keybox_openpgp_key_info): Add field ALGO.
39412 * kbx/keybox-openpgp.c (parse_key): Store algo.
39413 * kbx/kbxutil.c (dump_openpgp_key): Print algo number.
39414 * kbx/keybox-dump.c (_keybox_dump_blob): Print identical Sig-Expire
39415 value lines with a range of indices.
39417 2012-12-27 Werner Koch <wk@gnupg.org>
39419 gpg: First patches to support a keybox storage backend.
39420 + commit 91e61d52539b1808e209c43e51465c76cebb06f9
39421 * kbx/keybox-defs.h (_keybox_write_header_blob): Move prototype to ..
39422 * kbx/keybox.h: here.
39423 * kbx/keybox-init.c (keybox_lock): Add dummy function
39424 * g10/keydb.c: Include keybox.h.
39425 (KeydbResourceType): Add KEYDB_RESOURCE_TYPE_KEYBOX.
39426 (struct resource_item): Add field kb.
39427 (maybe_create_keyring_or_box): Add error descriptions to diagnostics.
39428 Add arg IS_BOX. Write a header for a new keybox file.
39429 (keydb_add_resource): No more need for the force flag. Rename the
39430 local variable "force" to "create". Add URL scheme "gnupg-kbx". Add
39431 magic test to detect a keybox file. Add basic support for keybox.
39432 (keydb_new, keydb_get_resource_name, keydb_delete_keyblock)
39433 (keydb_locate_writable, keydb_search_reset, keydb_search2): Add
39434 support for keybox.
39435 (lock_all, unlock_all): Ditto.
39436 * g10/Makefile.am (needed_libs): Add libkeybox.a.
39437 (gpg2_LDADD, gpgv2_LDADD): Add KSBA_LIBS as a workaround.
39439 * g10/keydb.h (KEYDB_RESOURCE_FLAG_PRIMARY)
39440 KEYDB_RESOURCE_FLAG_DEFAULT, KEYDB_RESOURCE_FLAG_READONLY): New.
39441 * g10/gpg.c, g10/gpgv.c (main): Use new constants.
39443 2012-12-20 Werner Koch <wk@gnupg.org>
39445 gpg: Import only packets which are allowed in a keyblock.
39446 + commit f0b33b6fb8e0586e9584a7a409dcc31263776a67
39447 * g10/import.c (valid_keyblock_packet): New.
39448 (read_block): Store only valid packets.
39450 2012-12-19 Werner Koch <wk@gnupg.org>
39452 gpg: Make commit 2b3cb2ee actually work.
39453 + commit d61f7402f2b0f6dd288e403ed9408fd65e617f85
39454 * g10/sign.c (update_keysig_packet): Use digest_algo.
39456 (cherry-picked from commit d23ec86095714d388acac14b515445fe69f019e9)
39458 gpg: Suppress "public key already present" in quiet mode.
39459 + commit 8325d616593187ff227853de0295e3269b96edcb
39460 * g10/pkclist.c (find_and_check_key, build_pk_list): Print a
39461 diagnostic only in non-quiet mode.
39463 2012-12-18 Werner Koch <wk@gnupg.org>
39465 common: Add meta option ignore-invalid-option.
39466 + commit 41d564333d35c923f473aa90625d91f8fe18cd0b
39467 * common/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New.
39468 (initialize): Init field IIO_LIST.
39469 (ignore_invalid_option_p): New.
39470 (ignore_invalid_option_add): New.
39471 (ignore_invalid_option_clear): New.
39472 (optfile_parse): Implement meta option.
39474 2012-12-13 Werner Koch <wk@gnupg.org>
39475 Hans of Guardian <hans@guardianproject.info>
39477 utf8conv.c: Add hacks for Android.
39478 + commit 6177fb3c87f485fb654bbba492d04508755718b3
39479 * common/utf8conv.c [HAVE_ANDROID_SYSTEM]: Do not include iconv.h.
39480 (iconv_open, iconv_close, load_libiconv) [HAVE_ANDROID_SYSTEM]: New
39482 (set_native_charset) [HAVE_ANDROID_SYSTEM]: Force use of "utf-8".
39483 (jnlib_iconv_open) [HAVE_ANDROID_SYSTEM]: Act the same as under W32.
39484 (jnlib_iconv) [HAVE_ANDROID_SYSTEM]: Ditto.
39485 (jnlib_iconv_close) [HAVE_ANDROID_SYSTEM]: Ditto.
39487 2012-12-13 NIIBE Yutaka <gniibe@fsij.org>
39489 SCD: Fix the process of writing key or generating key.
39490 + commit e7dca3e83ebd6df0a7ea55e97c3cd6e91be90af5
39491 * scd/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME.
39493 2012-12-12 Werner Koch <wk@gnupg.org>
39495 ssh: Support ECDSA keys.
39496 + commit 649b31c663b8674bc874b4ef283d714a13dc8cfe
39497 * agent/command-ssh.c (SPEC_FLAG_IS_ECDSA): New.
39498 (struct ssh_key_type_spec): Add fields CURVE_NAME and HASH_ALGO.
39499 (ssh_key_types): Add types ecdsa-sha2-nistp{256,384,521}.
39500 (ssh_signature_encoder_t): Add arg spec and adjust all callers.
39501 (ssh_signature_encoder_ecdsa): New.
39502 (sexp_key_construct, sexp_key_extract, ssh_receive_key)
39503 (ssh_convert_key_to_blob): Support ecdsa.
39504 (ssh_identifier_from_curve_name): New.
39505 (ssh_send_key_public): Retrieve and pass the curve_name.
39506 (key_secret_to_public): Ditto.
39507 (data_sign): Add arg SPEC and change callers to pass it.
39508 (ssh_handler_sign_request): Get the hash algo from SPEC.
39509 * common/ssh-utils.c (get_fingerprint): Support ecdsa.
39511 * agent/protect.c (protect_info): Add flag ECC_HACK.
39512 (agent_protect): Allow the use of the "curve" parameter.
39513 * agent/t-protect.c (test_agent_protect): Add a test case for ecdsa.
39515 * agent/command-ssh.c (ssh_key_grip): Print a better error code.
39517 2012-12-11 Werner Koch <wk@gnupg.org>
39519 ssh: Rewrite a function for better maintainability.
39520 + commit f76a0312c3794afd81fe1e172df15eb0612deae0
39521 * agent/command-ssh.c (ssh_signature_encoder_dsa): Rewrite.
39523 2012-12-10 Werner Koch <wk@gnupg.org>
39525 ssh: Improve key lookup for many keys.
39526 + commit d2777f84be0ded5906a9bec3bc23cfed0a9be02f
39527 * agent/command-ssh.c: Remove dirent.h.
39528 (control_file_s): Add struct item.
39529 (rewind_control_file): New.
39530 (search_control_file): Factor code out to ...
39531 (read_control_file_item): New.
39532 (ssh_handler_request_identities): Change to iterate over entries in
39535 ssh: Cleanup sshcontrol file access code.
39536 + commit 25fb53ab4ae7e1c098500229c776d29b82713a20
39537 * agent/command-ssh.c (SSH_CONTROL_FILE_NAME): New macro to replace
39538 the direct use of the string.
39539 (struct control_file_s, control_file_t): New.
39540 (open_control_file, close_control_file): New. Use them instead of
39541 using fopen/fclose directly.
39543 agent: Add envvar "gnupg_SSH_AUTH_SOCK_by"
39544 + commit 36ba7845995dd3caf8faeec3e09b3ffb879fc29b
39545 * agent/gpg-agent.c (main): Pass new envar gnupg_SSH_AUTH_SOCK_by to
39546 an invoked process.
39548 config: Update npth.m4.
39549 + commit ceab60b59d907354d323ace09d7b3f2d36d330fb
39550 * m4/npth.m4: Take from current npth master.
39552 2012-12-04 NIIBE Yutaka <gniibe@fsij.org>
39554 Revert SCD changes of 2010-05-03.
39555 + commit 1e1326aeb8923782138e133f091afec41d969c40
39556 * scd/apdu.c (pcsc_no_service): Remove.
39557 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Remove
39558 pcsc_no_service support.
39559 (apdu_open_reader): Remove R_NO_SERVICE.
39560 * scd/apdu.h (apdu_open_reader): Remove R_NO_SERVICE.
39561 * scd/command.c (reader_disabled): Remove.
39562 (get_current_reader): Follow the change of R_NO_SERVICE.
39563 (open_card, cmd_serialno, scd_command_handler): Remove reader_disabled
39565 * scd/sc-copykeys.c (main): Follow the change of R_NO_SERVICE.
39567 Don't keep opening unavailable card reader.
39568 + commit baf7b09e124f9eb4ca4b8ee02474ee7710a95a40
39569 * scd/command.c (update_reader_status_file): Don't call
39570 get_current_reader.
39572 2012-11-30 David Shaw <dshaw@jabberwocky.com>
39574 Refresh sample keys.
39575 + commit b8eb2ab56971a309353ae2682bc6ef1357e9ac53
39578 Adjust awk to not add trailing whitespace.
39579 + commit 3f8ad564674431b4c0c6cff259f02248c80a6ef9
39580 * mksamplekeys: Tweak awk script to not add trailing whitespace to
39581 blank lines (makes git pre-commit hook unhappy)
39583 2012-11-29 David Shaw <dshaw@jabberwocky.com>
39585 The keyserver search menu should honor --keyid-format.
39586 + commit 7602d9e3edda99b0b65ba928eef435dab04ecd09
39587 * keyserver.c (print_keyrec): Honor --keyid-format when getting back
39588 full fingerprints from the keyserver (the comment in the code was
39589 correct, the code was not).
39591 2012-11-27 Werner Koch <wk@gnupg.org>
39593 Fix printing of ECC algo names in hkp keyserver listings.
39594 + commit 3d2da6c82163ffbc2e827abc4144dc3197ed53db
39595 * g10/keyserver.c (print_keyrec): Map OpenPGP algorithm ids.
39597 2012-11-26 Ben Kibbey <bjk@luxsci.net>
39599 Check for inet_addr() in -lnsl.
39600 + commit 66331e138ec17e176cc3f45bb095820866d5358c
39601 * configure.ac: Check for inet_addr() in libnsl.
39603 2012-11-20 Werner Koch <wk@gnupg.org>
39605 Do not use a broken ttyname.
39606 + commit 835698b72bc509565aad52b0753f1c56c1a8f062
39607 * configure.ac (HAVE_BROKEN_TTYNAME): New ac_define set for Android
39609 * common/util.h (gnupg_ttyname): New macro. Change all callers of
39610 ttyname to use this macro instead.
39611 (ttyname) [W32]: Rename to _gnupg_ttyname and use also if
39612 HAVE_BROKEN_TTYNAME is defined.
39613 * common/simple-pwquery.c (agent_send_all_options): Keep on using
39614 ttyname unless HAVE_BROKEN_TTYNAME is set. This is because this file
39615 may be used standalone.
39617 2012-11-16 Werner Koch <wk@gnupg.org>
39619 Fix non-portable use of chmod in autogen.sh.
39620 + commit e7bc5012c568da9ceb0a80a8f3fe3edf3dac9564
39621 * autogen.sh: Remove option -c from chmod.
39623 Improve parsing of the GIT revision number.
39624 + commit 011faa0c68cf0c628ef581193166e9ac9bf22b71
39625 * configure.ac (mmm4_revision): Use git rev-parse.
39627 Add an OpenPGP card vendor.
39628 + commit ac775780fef3ef63f896e822add9ff6ea7e5119c
39629 * g10/card-util.c (get_manufacturer): Add Yubico.
39631 2012-11-06 Werner Koch <wk@gnupg.org>
39633 agent: Use wipememory instead of memset in one place.
39634 + commit 9f0e9ea80ca30269770eb955e33b54401bff917f
39635 * agent/command.c (clear_outbuf): Use wipememory. Suggested by Ben
39638 Allow decryption with card keys > 3072 bits.
39639 + commit 905b6a36d3ca21b2f619721e1de892398e5eb759
39640 * scd/command.c (MAXLEN_SETDATA): New.
39641 (cmd_setdata): Add option --append.
39642 * agent/call-scd.c (agent_card_pkdecrypt): Use new option for long
39645 * scd/app-openpgp.c (struct app_local_s): Add field manufacturer.
39646 (app_select_openpgp): Store manufacturer.
39647 (do_decipher): Print a note for broken cards.
39649 2012-11-02 NIIBE Yutaka <gniibe@fsij.org>
39651 agent: Fix wrong use of gcry_sexp_build_array.
39652 + commit 8f8c29d24ca13f987e6c118702b428a2051b7072
39653 * findkey.c (agent_public_key_from_file): Fix use of
39654 gcry_sexp_build_array.
39656 2012-10-31 NIIBE Yutaka <gniibe@fsij.org>
39658 SCD: Upon error, open_pcsc_reader_wrapped does same as _direct.
39659 + commit 8df89f3e9cf0255f11011c2f1df0d419a5c23a8c
39660 * scd/apdu.c (PCSC_E_NO_SERVICE): New.
39661 (open_pcsc_reader_direct): Use PCSC_E_NO_SERVICE.
39662 (open_pcsc_reader_wrapped): Set pcsc_no_service.
39664 2012-08-24 Werner Koch <wk@gnupg.org>
39666 Update and enable French translation.
39667 + commit 76055d49d1c8b8e4f6245e6729cae81b1eaecbf6
39668 * po/fr.po: Update.
39669 * po/LINGUAS: Enable fr.
39671 2012-08-24 David Prévot <taffit@debian.org>
39673 Fix typos spotted during translations.
39674 + commit ba591e2f14c0d85ba15346ffd04b9e7d72ec89dc
39675 * agent/genkey.c: s/to to/to/
39676 * sm/*.c: s/failed to allocated/failed to allocate/
39677 * sm/certlist.c, ./dirmngr/validate.c: s/should have not/should not have/
39678 * g10/seskey.c: missing closing parenthesis
39679 * dirmngr/crlcache.c: s/may has/may have/
39683 * g10/gpg.c, kbx/kbxutil.c, sm/gpgsm.c: uppercase after Syntax
39684 * dirmngr/dirmngr_ldap: no period in Syntax
39685 * dirmngr/dirmngr-client.c: infinitive for option description:
39686 s/certificates are expected/expect certificates/
39688 Keep previous msgids of translated messages.
39689 + commit bf95408fc33709d154cd41566d33af3ec3c48886
39690 * po/Makefile.in.in: Use --previous with msgmerge.
39692 2012-08-24 Hans-Christoph Steiner <hans@eds.org>
39694 Fix build system for Android by disabling tests since its x-compiled.
39695 + commit 1da04bfb3f5714a0fa6d0b779d0d2ae4e9544b8f
39696 * configure.ac (HAVE_ANDROID_SYSTEM, RUN_TESTS): New.
39697 (AH_BOTTOM) [__ANDROID__]: Do not re-define ttyname.
39698 * Makefile.am: Depend tests on new RUN_TESTS conditional.
39700 2012-08-24 Werner Koch <wk@gnupg.org>
39702 Fix left over use of jnlib on some platforms.
39703 + commit 8156a38674421deef6c2eb3e91e0186fe7fe4b26
39704 * tools/watchgnupg.c: Take mischelp.h from common/ and not jnlib/.
39706 2012-06-25 NIIBE Yutaka <gniibe@fsij.org>
39708 scd: handle reader/token removal.
39709 + commit ca8eec8e28abb8473d02dbaf8d61cfb1094c5c50
39710 * scd/apdu.c (pcsc_error_to_sw): PCSC_E_UNKNOWN_READER means
39713 2012-06-05 Werner Koch <wk@gnupg.org>
39715 Change all quotes in strings and comments to the new GNU standard.
39716 + commit 096e7457ec636bcfcf128678660eb2f2e19f113a
39717 The asymmetric quotes used by GNU in the past (`...') don't render
39718 nicely on modern systems. We now use two \x27 characters ('...').
39720 The proper solution would be to use the correct Unicode symmetric
39721 quotes here. However this has the disadvantage that the system
39722 requires Unicode support. We don't want that today. If Unicode is
39723 available a generated po file can be used to output proper quotes. A
39724 simple sed script like the one used for en@quote is sufficient to
39727 The changes have been done by applying
39729 sed -i "s/\`\([^'\`]*\)'/'\1'/g"
39731 to most files and fixing obvious problems by hand. The msgid strings in
39732 the po files were fixed with a similar command.
39734 2012-05-24 Werner Koch <wk@gnupg.org>
39736 Print the hash algorithm in colon mode key listing.
39737 + commit fc00d3fcb201476b3495f47138fa35b71c52f403
39738 * g10/keylist.c (list_keyblock_colon): Print digest_algo.
39740 Fix type conflict warning.
39741 + commit f8a8c71c41bc1893df8af6ce522876ccbf6240a9
39742 * g10/keylist.c: Change min_cert_level to a byte.
39744 2012-05-11 Werner Koch <wk@gnupg.org>
39746 Switch to the new automagic beta numbering scheme.
39747 + commit 68777b40dcf215305a325185f6bd9cfd6dcc0542
39748 * configure.ac: Add all the require m4 magic.
39750 2012-05-08 Werner Koch <wk@gnupg.org>
39752 Add tweaks for the not anymore patented IDEA algorithm.
39753 + commit b4d9f8dbc8e074cd91bbd3e2e54e2b77c9268d1a
39754 * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2
39755 compatibility mode.
39756 * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers.
39757 * common/status.h (STATUS_RSA_OR_IDEA): Remove. Do not emit this
39761 + commit 59b77f9ea7dfa4d5c74573d2186c9a3e129ab3bf
39762 * po/de.po: Update.
39764 common: Remove generated files only during maintainer-clean.
39765 + commit d800fa5ce6102e069305f8e1a5d55d18ac3a1993
39766 * common/Makefile.am (CLEANFILES): Rename to MAINTAINERCLEANFILES.
39768 2012-04-30 Werner Koch <wk@gnupg.org>
39770 agent: Fix deadlock in trustlist due to the switch to npth.
39771 + commit 0f02fba19df16c82ca1ad44a8cb09f952d755598
39772 * agent/trustlist.c (clear_trusttable): New.
39773 (agent_reload_trustlist): Use new function.
39774 (read_trustfiles): Require to be called with lock held.
39775 (agent_istrusted): Factor all code out to ...
39776 (istrusted_internal): new. Add ALREADY_LOCKED arg. Make sure the
39777 table islocked. Do not print TRUSTLISTFLAG stati if called internally.
39778 (agent_marktrusted): Replace calls to agent_reload_trustlist by
39781 2012-04-26 NIIBE Yutaka <gniibe@fsij.org>
39783 make DNS and URI fields work in gpgsm --gen-key.
39784 + commit 8d7522837c6dba3065d24594bcdbe7b99a702cde
39785 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Actually set mb_uri and
39786 mb_dns.avoid buffer strncpy-induced buffer overrun
39788 2012-04-26 Jim Meyering <jim@meyering.net>
39790 avoid buffer strncpy-induced buffer overrun.
39791 + commit 20c9ac4df34e25f7085bb4e4ab5ea7223932f5c4
39792 * dirmngr/crlcache.c (open_dir): Ensure that both this_update
39793 and next_update member strings are NUL-terminated.
39795 remove doubled words in a comment.
39796 + commit 6e3882785a629b361c57c8b9d5cad51fb234ac23
39799 2012-04-20 Werner Koch <wk@gnupg.org>
39801 Change license for some files in common to LGPLv3+/GPLv2+.
39802 + commit 37df3d5f593f76ddbf1b9dc6de0173b7bb85c0ad
39803 Having the LGPL on the common GnuPG code helps to share code
39804 between GnuPG and related projects (like GPGME and Libassuan). This
39805 is good for interoperability and to reduces bugs.
39807 * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
39808 * common/b64enc.c, common/convert.c, common/dns-cert.c
39809 * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
39810 * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
39811 * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
39812 * common/helpfile.c, common/homedir.c, common/http.c, common/http.h
39813 * common/i18n.c, common/init.c, common/init.h, common/iobuf.c
39814 * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
39815 * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
39816 * common/percent.c, common/pka.c, common/pka.h, common/session-env.c
39817 * common/session-env.h, common/sexp-parse.h, common/sexputil.c
39818 * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
39819 * common/ssh-utils.h, common/sysutils.c, common/sysutils.h
39820 * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
39821 * common/userids.c, common/userids.h, common/xasprintf.c: Change
39822 license to LGPLv3+/GPLv2+/
39824 2012-04-10 Ben Kibbey <bjk@luxsci.net>
39826 Fix killing PID -1.
39827 + commit bee0ac28c9c8027540ae56900b9f85e0bd555f1d
39828 When the KILLSCD command had been sent a race condition would occur
39829 causing PID -1 getting killed, which on Linux seems to terminate all
39830 applications for the current user.
39832 2012-04-05 Werner Koch <wk@gnupg.org>
39834 Do not mix test result with progress lines.
39835 + commit f1e1387bee286c7434f0462185048872bcdb4484
39836 This makes parsing of the results easier. Fixes bug#1400.
39838 * tests/openpgp/defs.inc (progress_cancel, progress_end)
39839 (progress_new): New.
39840 * tests/openpgp/conventional-mdc.test: Use progress functions
39841 * tests/openpgp/conventional.test: Ditto.
39842 * tests/openpgp/encrypt-dsa.test: Ditto.
39843 * tests/openpgp/encrypt.test: Ditto.
39844 * tests/openpgp/sigs.test: Ditto.
39846 2012-04-04 Ben Kibbey <bjk@luxsci.net>
39848 Mention status messages in the documentation.
39849 + commit 99fc61f1cf09c7f72a9037d91d3cf0cd2e035ae6
39850 Note INQUIRE_MAXLEN.
39852 Document PASSWD --preset.
39853 + commit a577f06c4aecc0af5b492e15812e9150c747cbe4
39856 Document GENKEY options.
39857 + commit 108e8f622ef9cfa256707debec1d379ce3cf21ca
39860 Document PRESET_PASSPHRASE.
39861 + commit 96e107fc29db625b247022ae1bf2cbe90b939c5d
39864 Document CLEAR_PASSPHRASE.
39865 + commit 26b59d78c43d72fa28609fb2c0d80fb377393127
39866 And describe the --mode=normal option.
39868 2012-03-27 Werner Koch <wk@gnupg.org>
39870 Fix timegm regression test.
39871 + commit 17499e761e8cd0fe867b5b5f3e42a71b6d45f954
39872 * common/t-timestuff.c (test_timegm): Change test to use January and
39873 not February or December+1. Bug spotted by Daniel Kahn Gillmor.
39875 Print warning for arguments not considered an option.
39876 + commit de01c51ecb3918f427aa76281351749c8ad07ed6
39877 GnuPG requires that options are given before other arguments. This
39878 can sometimes be confusing. We now print a warning if we found an
39879 argument looking alike a long option without being preceded by the
39880 stop option. This is bug#1343.
39882 * common/argparse.h (ARGPARSE_FLAG_STOP_SEEN): New.
39883 * common/argparse.c (arg_parse): Set new flag.
39884 * g10/gpg.c (main): Print the warning.
39885 * agent/gpg-agent.c (main): Ditto.
39886 * dirmngr/dirmngr.c (main): Ditto.
39887 * g13/g13.c (main): Ditto.
39888 * scd/scdaemon.c (main): Ditto.
39889 * sm/gpgsm.c (main): Ditto.
39890 * tools/gpg-connect-agent.c (main): Ditto.
39891 * tools/gpgconf.c (main): Ditto.
39893 2012-03-26 Werner Koch <wk@gnupg.org>
39895 Allow compress algorithm 0.
39896 + commit 7ddbcb6b6ab8b26c8e609fcd95c2c8a89bc20a7d
39897 * g10/mainproc.c (proc_compressed): Remove superfluous check for
39898 compress algorithm 0. Reported by pfandrade. This is bug#1326.
39900 Add mksamplekeys script.
39901 + commit 7441e622ffb3296686bd0d7f04b4051466aaad38
39902 * doc/mksamplekeys: New.
39904 2012-02-28 Marcus Brinkmann <mb@g10code.com>
39906 Replace npth_yield in busy wait by npth_usleep.
39907 + commit 8f8c6594147608b1021c16fc3561feb96da5d55a
39908 * dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): Call
39909 npth_usleep instead of npth_yield.
39911 2012-02-16 Marcus Brinkmann <mb@g10code.com>
39913 Check for lber and link dirmngr_ldap to it.
39914 + commit 76ff42ef8d1232dd36bf48c1020b0b9b2afb1c7d
39915 * configure.ac (LBER_LIBS, HAVE_LBER): New variables, check for lber.
39916 * dirmngr/Makefile.am (dirmngr_lda_LDADD): Add $(LBER_LIBS).
39918 2012-02-07 Werner Koch <wk@gnupg.org>
39920 agent: Add pin length field to the shadowed private key format.
39921 + commit b817ae7df947093384a25797999a9aa187e20f9c
39922 This is not yet fully implemented. It will eventually allow to
39923 support pinpad equipped readers which do not support variable length
39925 * agent/protect.c (parse_shadow_info): Add optional arg R_PINLEN and
39926 parse pinlen info. Change all callers to pass NULL for it.
39928 Use new status printing functions.
39929 + commit 12ea5c904c0008a2adec2e8bbe45dac629548e7d
39930 * agent/command.c (cmd_geteventcounter): Get rid of static buffers.
39931 * scd/command.c (cmd_serialno, cmd_learn): Simplify by using
39932 print_assuan_status.
39934 agent: New function agent_print_status.
39935 + commit e78585cd0f553d92f332e33810ab636758bc88a2
39936 * common/asshelp2.c (vprint_assuan_status): New.
39937 (print_assuan_status): Re-implement using above func.
39938 * agent/command.c (agent_print_status): New.
39940 po: Add Ukrainian translation.
39941 + commit 8d8d740bfd73d8764a03220c0b0c949e03fea351
39944 common: Replace macro based function calls by using DEFAULT_ERRSOURCE.
39945 + commit 13ec74481ce0137f7a60b3256cc4840073c77efa
39946 * common/dns-cert.h (get_dns_cert): Remove macro.
39947 * common/dns-cert.c (_get_dns_cert): Rename to get_dns_cert. Replace
39948 arg ERRSOURCE by global DEFAULT_ERRSOURCE.
39949 * common/http.h (http_parse_uri, http_raw_connect, http_open)
39950 (http_open_document, http_wait_response): Remove macros.
39951 * common/http.c (_http_parse_uri, _http_raw_connect, _http_open)
39952 (_http_open_document, _http_wait_response): Remove underscore from
39953 symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
39954 * common/ssh-utils.h (ssh_get_fingerprint)
39955 (ssh_get_fingerprint_string): Remove macros.
39956 * common/ssh-utils.h (_ssh_get_fingerprint)
39957 (_ssh_get_fingerprint_string): Remove underscore from symbols.
39958 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
39959 * common/tlv.h (parse_ber_header, parse_sexp): Remove macros.
39960 * common/tlv.c: Include util.h.
39961 (_parse_ber_header, _parse_sexp): Remove underscore from symbols.
39962 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
39964 2012-02-06 Werner Koch <wk@gnupg.org>
39966 Add replacement hack for Android's broken ttyname.
39967 + commit 115a6ed55d1f6be33f66de6734359fa590ca3749
39968 * configure.ac (HAVE_TTYNAME) [__ANDROID__]: Add hack.
39970 agent: Simplify printing of INQUIRE_MAXLEN.
39971 + commit 7981cdd1345d51fd917b2375691ead60c24db2cd
39972 * agent/command.c: Include asshelp.h.
39973 (cmd_pkdecrypt, cmd_genkey, cmd_preset_passphrase)
39974 (pinentry_loopback): Use print_assuan_status for INQUIRE_MAXLEN.
39976 common: Add function print_assuan_status.
39977 + commit 1a0df8506050448f16c63666850e3ae6d94a971b
39978 * common/asshelp2.c: New.
39979 (print_assuan_status): New function.
39980 * common/Makefile.am (common_sources): Add asshelp2.c.
39982 common: Add a global variable to for the default error source.
39983 + commit eb0faef81dae2cba1f62056fdc4dc2a7d58ac86a
39984 For the shared code parts it is cumbersome to pass an error sourse
39985 variable to each function. Its value is always a constant for a given
39986 binary and thus a global variable makes things a lot easier than the
39987 former macro stuff.
39988 * common/init.c (default_errsource): New global var.
39989 (init_common_subsystems): Rename to _init_common_subsystems. Set
39991 * common/init.h: Assert value of GPG_ERR_SOURCE_DEFAULT.
39992 (init_common_subsystems): New macro.
39993 * common/util.h (default_errsource): Add declaration.
39994 * kbx/keybox-defs.h: Add some GPG_ERR_SOURCE_DEFAULT trickery.
39996 2012-02-03 Ben Kibbey <bjk@luxsci.net>
39998 Also let GENKEY and PKDECRYPT send the INQUIRE_MAXLEN status message.
39999 + commit ecda65498ac60dfde50fbbc71cd0cc321d7175a9
40000 * agent/command.c (cmd_pkdecrypt): Send the INQUIRE_MAXLEN status
40001 message before doing the inquire.
40002 (cmd_genkey): Ditto.
40004 2012-02-02 Ben Kibbey <bjk@luxsci.net>
40006 Inform the client of the preset passphrase length.
40007 + commit 3f7788f2e035eb939abb27b3a53854ec0fc6178c
40008 * agent/command.c (cmd_preset_passphrase): Send the INQUIRE_MAXLEN
40009 status message before inquiring the passphrase.
40011 2012-02-01 David Shaw <dshaw@jabberwocky.com>
40013 Honor --cert-digest-algo when recreating a cert.
40014 + commit 2b3cb2ee94625498e7a7f939216c9bcddef6ec20
40015 * g10/sign.c (update_keysig_packet): Honor --cert-digest-algo when
40018 This is used by various things in --edit-key like setpref, primary,
40019 etc. Suggested by Christian Aistleitner.
40021 2012-01-27 Werner Koch <wk@gnupg.org>
40023 gl: Add support for Android to stdint.h replacement.
40024 + commit bdde44ae8d4709e33c09781c3d37a5da2c7a5e0d
40025 * gl/stdint_.h: When included from Bionic <sys/types.h>, just include
40026 the system's <stdint.h>.
40028 gpg-connect-tool: Take the string "true" as a true condition.
40029 + commit 2871422d9a889cb632f59efda4d9cd170fc9fca7
40030 * tools/gpg-connect-agent.c (main): Handle strings "true" and "yes" in
40031 conditions as expected.
40033 2012-01-26 Ben Kibbey <bjk@luxsci.net>
40035 Return GPG_ERR_CARD_NOT_PRESENT when pinentry-mode=loopback.
40036 + commit cf748e8736b984194345bfd74887b35d3d23fa37
40037 Since there isn't a way to prompt the user to insert the smartcard when
40038 pinentry-mode=loopback, return GPG_ERR_CARD_NOT_PRESENT instead of
40039 GPG_ERR_NO_PIN_ENTRY.
40041 * agent/divert-scd.c (ask_for_card): Return GPG_ERR_CARD_NOT_PRESENT
40042 when pinentry-mode=loopback.
40044 Also check for GPG_ERR_ASS_CANCELED during an inquire.
40045 + commit 3da10eefcb09a520f11e4fae7f59a33f80ffba69
40046 Fix pinentry-mode=loopback when cancelling an inquire from scdaemon.
40047 This is similar to commit 4f21f8d but for both protocol command
40048 cancellation and pinentry cancellation.
40050 * agent/call-scd.c (agent_card_pkdecrypt): Check for
40051 GPG_ERR_ASS_CANCELED.
40052 (agent_card_pksign): Ditto.
40054 2012-01-25 Werner Koch <wk@gnupg.org>
40056 nPth is now a hard requirement for GnuPG.
40057 + commit 001352077cdc7e402421c77328bea1a052005673
40058 * configure.ac: Remove cruft to allow building without npth.
40060 Require libassuan 2.1.0.
40061 + commit c254d0f0d13a54777a62dad8f78a8f287d6ae565
40062 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.1.0. This is due to
40065 Fix strerror vs. gpg_strerror usage.
40066 + commit 2be7818c6d916a69ffdf88cce32960949a56e893
40067 This bug was introduced by the migration to npth.
40068 * agent/gpg-agent.c (handle_connections): Use strerror.
40070 Add missing variable.
40071 + commit a55d2e16f1090264338dc3ad0b2afca28db27c09
40072 * agent/gpg-agent.c (handle_connections) [!W32]: Add missing variable.
40074 2012-01-25 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
40076 Port LDAP wrapper to NPTH.
40077 + commit 4074f966276be10a794fd63a7f443b9d974d3982
40078 * agent/gpg-agent.c (handle_connections): Handle error.
40079 * dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c: Port to NPTH.
40081 Port Windows code to NPTH.
40082 + commit ccbb4c3652ee72386b8889358b829e256e1ebcda
40083 * agent/gpg-agent.c (get_agent_ssh_socket_name): Use
40084 INVALID_HANDLE_VALUE instead of 0.
40085 (handle_signal) [!HAVE_W32_SYSTEM]: Don't define.
40086 (handle_connections): Port Windows code to NPTH.
40087 * dirmngr/dirmngr.c (handle_connections): Port Windows code to NPTH.
40088 * g13/g13.c (handle_connections): Port Windows code to NPTH.
40089 * scd/scdaemon.c (handle_connections): Port Windows code to NPTH.
40092 + commit 7a7a59782766a8bde0c3e7156d14bb2b0e4a3951
40093 * configure.ac: Don't check for PTH but for NPTH.
40094 (AH_BOTTOM): Remove PTH_SYSCALL_SOFT.
40095 (have_pth): Rename to ...
40096 (have_npth): ... this.
40097 (USE_GNU_NPTH): Rename to ...
40098 (USE_GNU_PTH): ... this.
40099 * m4/npth.m4: New file.
40100 * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c,
40101 agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c,
40102 agent/trustlist.c, common/Makefile.am, common/estream.c,
40103 common/exechelp-posix.c, common/exechelp-w32.c,
40104 common/exechelp-w32ce.c, common/http.c, common/init.c,
40105 common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c,
40106 dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c,
40107 dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am,
40108 g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am,
40109 scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c,
40110 scd/scdaemon.c, tools/Makefile.am: Port to npth.
40112 2012-01-25 Werner Koch <wk@gnupg.org>
40114 Require gitlog-to-changelog to be installed.
40115 + commit 495dc68586356891b82a2d2b6367c4131fd17f08
40116 * Makefile.am (GITLOG_TO_CHANGELOG): New.
40117 (gen-ChangeLog): Use installed version of gitlog-to-changelog.
40119 2012-01-20 David Shaw <dshaw@jabberwocky.com>
40121 Changes to --min-cert-level should cause a trustdb rebuild (issue 1366)
40122 + commit deee8147aab086161c91e6aa6fb41d7148a630f6
40123 * g10/gpgv.c, g10/trustdb.c (read_trust_options): Add min_cert_level
40125 * g10/trustdb.c (check_trustdb_stale): Request a rebuild if
40126 pending_check_trustdb is true (set when we detect a trustdb
40127 parameter has changed).
40129 * g10/keylist.c (public_key_list): Use 'l' in the "tru" with-colons
40130 listing for min_cert_level not matching.
40132 * g10/tdbio.c (tdbio_update_version_record, create_version_record,
40133 tdbio_db_matches_options, tdbio_dump_record, tdbio_read_record,
40134 tdbio_write_record): Add a byte for min_cert_level in the tdbio
40137 2012-01-20 Werner Koch <wk@gnupg.org>
40139 estream: Fix unclean usage of realloc.
40140 + commit e97e2ced6cf3ee295a3cc9f8968969a1910380ea
40141 * common/estream-printf.c (_ESTREAM_PRINTF_MALLOC): Remove.
40142 (_ESTREAM_PRINTF_FREE): Remove.
40143 (_ESTREAM_PRINTF_REALLOC): New.
40144 (fixed_realloc) [!_ESTREAM_PRINTF_REALLOC]): New.
40145 (estream_vasprintf): Use my_printf_realloc instead of my_printf_malloc
40146 and my_printf_free.
40147 (dynamic_buffer_out): Use my_printf_realloc instead of realloc.
40149 Do not copy default merge commit log entries into the ChangeLog.
40150 + commit 7589e43b21c8d80c5a57ecb6eb78dfcd0b5dac46
40151 * scripts/gitlog-to-changelog: Skip merge commits.
40153 2012-01-18 Ben Kibbey <bjk@luxsci.net>
40155 Add the INQUIRE_MAXLEN status message.
40156 + commit ae981dd8f454e2a8bbc6429bed5abc5e87cc83d5
40157 This status message is used to inform the client of the maximum length
40158 of an inquired passphrase and is used in pinentry-mode=loopback.
40160 * agent/command.c (pinentry_loopback): Send the INQUIRE_MAXLEN status
40161 message before doing the inquire.
40163 2012-01-16 Jim Meyering <meyering@redhat.com>
40165 yat2m: don't dereference pointer to freed memory.
40166 + commit 4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa
40167 * doc/yat2m.c (top_parse_file): Correct macrolist-freeing loop.
40169 gpg-agent: fix lc-messages handling not to change Xauthority setting.
40170 + commit 37801918cb916ae8c641e003f204dcc70cccb29c
40171 * agent/gpg-agent.c (main): Supply omitted "break" statement for
40172 lc-messages option. Otherwise, control would fall through to the
40173 following oXauthority case and use the same value there.
40175 2012-01-15 Werner Koch <wk@gnupg.org>
40178 + commit 75a402fc25e4ec9659723dd58306aff3415736f4
40181 2012-01-14 Ben Kibbey <bjk@luxsci.net>
40183 Fix scdaemon pinentry inquire cancelation.
40184 + commit 4f21f8d6e109eae111d2da91f4c946afda4174e4
40185 Similar to commit 29af488 but also fixes PKDECRYPT and PKSIGN.
40187 * agent/call-scd.c (agent_card_pkdecrypt): Check for GPG_ERR_CANCELED
40188 when returning from the PKDECRYPT operation of scdaemon and cancel the
40190 (agent_card_pksign): Ditto.
40191 (cancel_inquire): New.
40193 2012-01-11 Werner Koch <wk@gnupg.org>
40195 gpg: Fix segv with RSA_S keys.
40196 + commit 30ec869b8c63f1edcc58110ed20b83b0e77248f8
40197 * g10/misc.c (pubkey_get_npkey, pubkey_get_nskey)
40198 (pubkey_get_nsig, pubkey_get_nenc): Map all RSA algo ids to
40201 estream: Avoid printing leading zeroes by %p on 32 bit systems.
40202 + commit b42bc48dfb4b6d4f745eb02d8de4f4dcffdacf48
40203 * common/estream-printf.c (pr_pointer): Synchronize definition of
40204 AULONG with its use.
40206 2012-01-11 David Shaw <dshaw@jabberwocky.com>
40208 Refresh sample keys.
40209 + commit 860861279bc17dd80eecc9631c4ae5d161a335fd
40212 2012-01-10 David Shaw <dshaw@jabberwocky.com>
40214 Adapt HKP fix for fingerprint/long keyid retrievals for dirmngr.
40215 + commit 3f59561cee635c6801e0a59d3abff1c064fcbdbe
40216 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Use the longest valid keyid form
40218 2012-01-06 Werner Koch <wk@gnupg.org>
40220 gpg: Make the double space in the middle of a fingerprint optional.
40221 + commit 957fe728466893bc63f5ccad197d3e245dca4bf3
40222 This change might help to c+p a fingerprint from an HTML page without
40223 being enclosed in a "pre" tag.
40224 * common/userids.c (classify_user_id): Skip a second blank in the
40225 middle of a fingerprint.
40227 gpg: Allow use of a standard space separated fingerprint.
40228 + commit 372fb4fc0661014ccd9275c89e6da2208f87155f
40229 * common/userids.c (classify_user_id): Check for space separated GPG
40232 2012-01-06 NIIBE Yutaka <gniibe@fsij.org>
40234 Merge ccid_driver_improvement branch.
40235 + commit 5988c8bfb7eafaca53c8abeb793f189acd3177c6
40236 * scd/apdu.c (ccid_keypad_operation): Rename from ccid_keypad_verify.
40237 (open_ccid_reader): Use ccid_keypad_operation for verify and modify.
40239 * scd/ccid-driver.c (VENDOR_VASCO, VASCO_920): New.
40240 (ccid_transceive_apdu_level): Permit sending packet where
40241 apdulen <= 289. Support receiving packets in a chain.
40242 (ccid_transceive_secure): Maximum is 15 for VASCO DIGIPASS 920.
40243 Support keypad_modify method such as CHANGE_REFERENCE_DATA: 0x24.
40245 2012-01-03 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
40247 Silence gcc warning.
40248 + commit ed432f030e604f7b2fd4a79c2110d92b9cde7501
40249 * sm/call-dirmngr.c (get_cached_cert): Make sure buflen is initialized.
40251 Revert last change, add comment about link() return values.
40252 + commit ff2095ad7b4be7eaf9468b6ef39fd979527ecc4f
40253 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Do not check
40254 return value of link().
40256 Fix compiler warnings.
40257 + commit 0dce26778ef8abd4fc40de689d7ec9b720d26430
40258 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Check return
40260 * g13/g13.c: Make sure err is initialized.
40261 * scd/scdaemon.c (main) [!USE_GCRY_THREAD_CBS]: Do not define ERR.
40263 Fix last change: Only set gcrypt thread callback for older versions.
40264 + commit 61ccd8d92d9d3b8ba0eca3c2969d7f6f37e16405
40265 * dirmngr/dirmngr.c, g13/g13.c: Rename FIX_GCRY_PTH_INIT to
40266 USE_GCRY_THREAD_CBS.
40268 2012-01-03 Werner Koch <wk@gnupg.org>
40270 Terminate csh commands with a semicolon also for dirmngr.
40271 + commit 682df45d15661ed3544e2ed34bcb636200cc40f9
40272 * dirmngr/dirmngr.c (main): Terminate csh style output with a semicolon.
40274 Terminate csh commands with a semicolon.
40275 + commit d01d9ff11f46cbd61b7b8c0e04431e4f0c4a8580
40278 * agent/gpg-agent.c (main): Terminate csh style output with a semicolon.
40279 * scd/scdaemon.c: Ditto.
40281 2012-01-02 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
40283 Only set gcrypt thread callback for older version of gcrypt.
40284 + commit a2d9e48fcca6cfc2dfadef6dbd3579a30314676b
40285 * agent/gpg-agent.c, dirmngr/dirmngr.c, g13/g13.c, scd/scdaemon.c
40286 (USE_GCRY_THREAD_CBS): New macro, defined if
40287 GCRY_THREAD_OPTION_VERSION is 0.
40288 (fixed_gcry_pth_init) [!USE_GCRY_THREAD_CBS]: Don't define.
40289 (main) [!USE_GCRY_THREAD_CBS]: Do not install thread callbacks.
40291 2011-12-28 David Shaw <dshaw@jabberwocky.com>
40293 Use the longest key ID available when talking to a HKP server.
40294 + commit c6aaf024651c7d55ac9fb77a53c084efb3adc1a9
40295 This is issue 1340. Now that PKSD is dead, and SKS supports long key
40296 IDs, this is safe to do. Patch from Daniel Kahn Gillmor
40297 <dkg@fifthhorseman.net>.
40299 2011-12-20 Werner Koch <wk@gnupg.org>
40301 Post-release version number update.
40302 + commit 97d1c884e62bba94e42bb5b2bb13cd3880334c31
40305 Release 2.1.0beta3.
40306 + commit 604c130a85d4203b9d84137a42673aeaff1c0bd1
40309 Prepare for the beta3 release.
40310 + commit 8e47f1e576f70d4dbe966523057fe3078006ae8b
40313 po: Update the German translation.
40314 + commit 6f02c143440865781b4e3c1753e24e55a0de40e4
40317 Add the STEED Self-Signing Nonthority certificate.
40318 + commit fe2f1826991e8130f727ee15df1a4651f679752f
40319 * doc/com-certs.pem: Install it when creating a keybox.
40321 faq: Add section on US export restrictions.
40322 + commit 779611494dbd187d09b05d2eb10faabd31a70156
40325 Require Libassuan 2.0.3.
40326 + commit 366512abe44d9e71bb2c699c29477afa6ac71cdd
40327 * configure.ac: Require Libassuan 2.0.3.
40328 * agent/call-scd.c (ASSUAN_CONVEY_COMMENTS): Remove macro replacement.
40329 * agent/command.c (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Remove
40331 (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Ditto.
40332 * scd/command.c (cmd_killscd) [ASSUAN_FORCE_CLOSE]: Ditto.
40334 2011-12-20 NIIBE Yutaka <gniibe@fsij.org>
40336 Add error log and debug log for pcsc_keypad_verify and pcsc_keypad_modify.
40337 + commit 07f20f313a0b13e5c93168a8a62ff1cbb94a4514
40338 * scd/apdu.c (pcsc_keypad_verify): Add debug log and error log.
40339 (pcsc_keypad_modify): Likewise.
40341 2011-12-19 Werner Koch <wk@gnupg.org>
40342 Ben Kibbey <bjk@luxsci.net>
40344 scd: Fix for card change returning GPG_ERR_CARD_RESET.
40345 + commit f4b7f7146349c388a2f3ce224ff2006606c66232
40346 * scd/apdu.c (apdu_connect): Do not test for zero atrlen.
40348 2011-12-16 NIIBE Yutaka <gniibe@fsij.org>
40350 Don't kill pinentry by SIGKILL but let it quit by SIGINT.
40351 + commit f6251c0d0af92331388f5e9bcd1750cbadcaca8f
40352 * agent/call-pinentry.c (agent_popup_message_stop): To pinentry, send
40353 SIGINT (was: SIGKILL).
40355 2011-12-15 David Shaw <dshaw@jabberwocky.com>
40357 Merge fix for issue 1331 from 1.4.
40358 + commit a98260c39f1c0ccdad004784cbc9440376766082
40359 * photoid.c (generate_photo_id): Check for the JPEG magic numbers
40360 instead of JFIF since some programs generate an EXIF header first.
40362 2011-12-15 Werner Koch <wk@gnupg.org>
40364 scd: Prefer application Geldkarte over DINSIG.
40365 + commit 27089564b6453deaf7b4ffe7cc5f5f290b6d892b
40366 * scd/app.c (select_application): Reorder application tests.
40368 scd: Add option --dump-atr to command APDU.
40369 + commit b22d62bd1481dfe13d60a6d16b09b9297944f063
40370 * scd/atr.c: Rewrite.
40371 * scd/Makefile.am (scdaemon_SOURCES): Add atr.c and atr.h.
40372 * scd/command.c (cmd_apdu): Add option --dump-atr.
40374 estream: New function es_fclose_snatch.
40375 + commit 7737a2c269657189a583cde7f214f20871d264f8
40376 * common/estream.c (cookie_ioctl_function_t): New type.
40377 (es_fclose_snatch): New function.
40378 (COOKIE_IOCTL_SNATCH_BUFFER): New constant.
40379 (struct estream_internal): Add field FUNC_IOCTL.
40380 (es_initialize): Clear FUNC_IOCTL.
40381 (es_func_mem_ioctl): New function.
40382 (es_fopenmem, es_fopenmem_init): Init FUNC_IOCTL.
40384 2011-12-14 Werner Koch <wk@gnupg.org>
40386 scd: Skip S/N reading for the "undefined" application.
40387 + commit 792e137ec7997a0ff5c54ff970611238d28d4ba8
40388 * scd/app.c (select_application): Skip serial number reading.
40390 scd: Add more status word values for documentation.
40391 + commit 0bac31ee9f74a25d76b08c3e0355a338908f083a
40394 scd: Add the "undefined" stub application.
40395 + commit dcd64131c60efd0189aa05d5dbce6b93547b04e3
40396 * scd/app.c (select_application): Implement the "undefined"
40399 agent: Pass comment lines from scd verbatim thru gpg-agent.
40400 + commit 45cf9de341405a228e331bd3893cbcd6b72306be
40401 * agent/call-scd.c (pass_status_thru): Pass comment lines verbatim.
40402 * tools/gpg-connect-agent.c (help_cmd_p): New.
40403 (main): Treat an "SCD HELP" the same as "HELP".
40405 scd: Fix resetting and closing of the reader.
40406 + commit 2d91febbd8d30beb7eb33f7aa80ffd5691d1d3cc
40407 * scd/command.c (update_card_removed): Do no act on an invalid VRDR.
40408 (do_reset): Ignore apdu_reset error codes for no and inactive card.
40409 Close the reader before setting the slot to -1.
40410 (update_reader_status_file): Notify the application before closing the
40413 scd: Add debug option for reader function calls.
40414 + commit 07ea8c56b507b06d4bd70e94fa51914659afac4b
40415 * scd/scdaemon.h (DBG_READER_VALUE, DBG_READER): New.
40416 * scd/apdu.c (apdu_open_reader, apdu_close_reader)
40417 (apdu_shutdown_reader, apdu_connect, apdu_disconnect)
40418 (apdu_reset, apdu_get_atr, apdu_get_status): Add debug code.
40419 (apdu_activate): Remove this unused function.
40421 2011-12-13 Werner Koch <wk@gnupg.org>
40423 scd: New option --debug-assuan-log-cats.
40424 + commit 00c760f628f4cf0fc11e79d305c172f98123f815
40425 * scd/scdaemon.c (oDebugAssuanLogCats): New.
40426 (opts): Add option --debug-assuan-log-cats.
40427 (main): Implement option.
40428 * common/asshelp.c (set_libassuan_log_cats): New.
40430 scd: Introduce a virtual reader table.
40431 + commit 24e121ef261731069868ca403b818f1168237f53
40432 The vreader table makes the code more clear by explicitly talking
40433 about APDU slots and reader indices. It also accommodates for future
40436 * scd/scdaemon.h (server_control_s): Remove READER_SLOT.
40437 * scd/scdaemon.c (scd_init_default_ctrl): Do not init READER_SLOT.
40438 * scd/app.c (check_application_conflict): Add arg SLOT.
40439 * scd/command.c (slot_status_s): Rename to vreader_s.
40440 (server_local_s): Add field VREADER_IDX as replacement for
40441 the READER_SLOT in server_control_s. Change all users.
40442 (slot_table): Rename to vreader_table. Change all users.
40443 (vreader_slot): New.
40444 (do_reset, cmd_apdu): Map vreader to apdu slot.
40445 (get_reader_slot): Rename to get_current_reader. Return -1 on error.
40446 (open_card): Map vreader toapdu slot. Pass slot to
40447 check_application_conflict.
40448 (scd_command_handler): Init VREADER_IDX.
40449 (update_reader_status_file): Reset SLOT field on error.
40451 2011-12-12 Werner Koch <wk@gnupg.org>
40453 scd: Retry command SERIALNO for an inactive card.
40454 + commit 11164662788036c4b15d30555ea33ec0b6f5a670
40455 * scd/command.c (cmd_serialno): Retry once for an inactive card.
40457 Fix detection of card removal and insertion.
40458 + commit cd29dc0f1cf7f3bd7938ffa65bf13f9a75d8c156
40459 * scd/apdu.c (apdu_connect): Return status codes for no card available
40461 * scd/command.c (TEST_CARD_REMOVAL): Also test for GPG_ERR_CARD_RESET.
40462 (open_card): Map apdu_connect status to GPG_ERR_CARD_RESET.
40464 gitlog-to-changelog: New option --tear-off.
40465 + commit ea0a21410b8fa460882c0f8de90b9291345fd4fc
40466 * scripts/gitlog-to-changelog: Add option --tear-off.
40467 * Makefile.am (gen-ChangeLog): Use that option.
40469 2011-12-07 Werner Koch <wk@gnupg.org>
40471 gpgsm: Add new validation model "steed".
40472 + commit 8a12a2000d82acfa881e8c18d028290100bf5e43
40473 * sm/gpgsm.h (VALIDATE_FLAG_STEED): New.
40474 * sm/gpgsm.c (gpgsm_parse_validation_model): Add model "steed".
40475 * sm/server.c (option_handler): Allow validation model "steed".
40476 * sm/certlist.c (gpgsm_cert_has_well_known_private_key): New.
40477 * sm/certchain.c (do_validate_chain): Handle the
40478 well-known-private-key attribute. Support the "steed" model.
40479 (gpgsm_validate_chain): Ditto.
40480 * sm/verify.c (gpgsm_verify): Return "steed" in the trust status line.
40481 * sm/keylist.c (list_cert_colon): Print the new 'w' flag.
40483 Correct punctuation in the ChangeLog summary line.
40484 + commit 14e4fdc9f97d6f12bf563adfff1e3157305d7795
40485 * Makefile.am (gen-ChangeLog): Supply --append-dot.
40487 Allow comments which will not show up in the ChangeLog.
40488 + commit cd3732841de32ce5c7841e6e158df3a5f1102f86
40489 * scripts/gitlog-to-changelog: Ignore lines after a "--" line.
40491 2011-12-06 Werner Koch <wk@gnupg.org>
40493 gpgsm: Allow specification of an AuthorityKeyIdentifier.
40494 + commit 596b84a4de58def2155d3fe56462f6607f135b69
40495 * sm/certreqgen.c (pAUTHKEYID): New.
40496 (read_parameters): Add keyword Authority-Key-Id.
40497 (proc_parameters): Check its value.
40498 (create_request): Insert an Authority-Key-Id.
40500 gpgsm: Allow arbitrary extensions for cert creation.
40501 + commit 5cdad8ff000152b4bd01953646bb87fe8703c70d
40502 * sm/certreqgen.c (pSUBJKEYID, pEXTENSION): New.
40503 (read_parameters): Add new keywords.
40504 (proc_parameters): Check values of new keywords.
40505 (create_request): Add SubjectKeyId and extensions.
40506 (parse_parameter_usage): Support "cert" and the encrypt alias "encr".
40508 gpgsm: Fix storing of the serial number.
40509 + commit 3f284e40502d8181b0b3ea66c77cd7c1252ea781
40510 * sm/certreqgen.c (create_request): Fix hex-bin conversion.
40512 2011-12-05 Werner Koch <wk@gnupg.org>
40515 + commit 9274d4d18281b3364fa8abaa821dddf124b105d7
40516 * agent/command.c (start_command_handler): Remove use of removed var.
40518 Amend the agent code with more comments.
40519 + commit 477360e8cdc458b0a36e9c7fb52a35f27766255d
40520 * agent/command.c (server_local_s): Remove unused field MESSAGE_FD.
40522 2011-12-02 Werner Koch <wk@gnupg.org>
40524 Support the Cherry ST-2000 card reader.
40525 + commit 239659d3a0b8c0c378734ca3d1e9210a02e24da7
40526 * scd/ccid-driver.c (SCM_SCR331, SCM_SCR331DI, SCM_SCR335)
40527 (SCM_SCR3320, SCM_SPR532, CHERRY_ST2000): New constants.
40528 (parse_ccid_descriptor): Use them.
40529 (scan_or_find_usb_device, ccid_transceive_secure): Handle Cherry
40530 ST-2000. Suggested by Matthias-Christian Ott.
40532 Avoid possible double free in export.c.
40533 + commit 96dc146fa17a7853277dbf3dc771c585a815c247
40534 * g10/export.c (transfer_format_to_openpgp): Avoid possible double
40535 free of LIST. Reported by NIIBE Yutaka.
40537 2011-12-02 NIIBE Yutaka <gniibe@fsij.org>
40539 Fix pinpad input support for passphrase modification.
40540 + commit bf37c32367ba149559385ee90b6435cef8bd6412
40541 * apdu.c (pcsc_keypad_verify): Have dummy Lc field with value 0.
40542 (pcsc_keypad_modify): Likewise.
40543 (pcsc_keypad_modify): It's only for ISO7816_CHANGE_REFERENCE_DATA.
40544 bConfirmPIN value is determined by the parameter p0.
40546 * app-openpgp.c (do_change_pin): The flag use_keypad should be 0 when
40547 reset_mode is on, or resetcode is on. use_keypad only makes sense for
40548 iso7816_change_reference_data_kp.
40550 * iso7816.h (iso7816_put_data_kp): Remove.
40551 (iso7816_reset_retry_counter_kp): Remove.
40552 (iso7816_reset_retry_counter_with_rc_kp): Remove.
40553 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
40555 * iso7816.c (iso7816_put_data_kp): Remove.
40556 (iso7816_reset_retry_counter_kp): Remove.
40557 (iso7816_reset_retry_counter_with_rc_kp): Remove.
40558 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
40560 2011-12-01 Werner Koch <wk@gnupg.org>
40562 Add hook to check the commit log syntax.
40563 + commit 29e96e6b9a8e68e6554dd48bc2ce68ae9525d29f
40564 * autogen.sh: Install commit-msg hook for git.
40566 Generate the ChangeLog from commit logs.
40567 + commit 2336b09779d313c1594acf6df3bd8a8486e90458
40568 * scripts/gitlog-to-changelog: New script. Taken from gnulib.
40569 * scripts/git-log-fix: New file.
40570 * scripts/git-log-footer: New file.
40571 * doc/HACKING: Describe the ChangeLog policy
40572 * ChangeLog: New file.
40573 * Makefile.am (EXTRA_DIST): Add new files.
40574 (gen-ChangeLog): New.
40575 (dist-hook): Run gen-ChangeLog.
40577 Rename all ChangeLog files to ChangeLog-2011.
40579 2011-12-01 Werner Koch <wk@gnupg.org>
40581 NB: Changes done before December 1st, 2011 are described in
40582 per directory files named ChangeLog-2011. See doc/HACKING for
40586 Copyright (C) 2011 Free Software Foundation, Inc.
40588 Copying and distribution of this file and/or the original GIT
40589 commit log messages, with or without modification, are
40590 permitted provided the copyright notice and this notice are