1 2022-07-11 Werner Koch <wk@gnupg.org>
4 + commit bc5328f5119aa6f6233c4387660f163b77bb9ce1
7 2022-07-05 NIIBE Yutaka <gniibe@fsij.org>
9 gpg,build: Fix message for newer gettext.
10 + commit 424aa3543de0c832f4b7da5f6d116616b09924ee
11 * g10/keyserver.c (keyserver_refresh): Use ngettext.
13 2022-06-29 Werner Koch <wk@gnupg.org>
15 gpgconf: New short options -V and -X.
16 + commit 15a8834b0b4a7261a89238143421e56f1a335e8a
17 * tools/gpgconf.c: Assign short options -X and -V
18 (show_version_gnupg): Print the vsd version if available.
20 2022-06-28 NIIBE Yutaka <gniibe@fsij.org>
22 agent: Don't assume "OPENPGP.3" key means "Use-for-ssh:".
23 + commit 39422f1d63e2d9691d8fe4bfceb0d1e43cd914bd
24 * agent/command-ssh.c: Fix comments.
25 * agent/findkey.c (public_key_from_file): Remove "OPENPGP.3" check.
27 2022-06-27 Werner Koch <wk@gnupg.org>
29 agent: Do not consider --min-passphrase-len for the magic wand.
30 + commit ae2f1f0785e429d6dbb577a1fcf9a880aaff8e49
31 * agent/call-pinentry.c (generate_pin): Lock to exactly 30 octets.
32 * g10/gpg.c (main) <aGenRandom>: Add Level 30.
34 2022-06-23 NIIBE Yutaka <gniibe@fsij.org>
36 agent: Flush before calling ftruncate.
37 + commit 99d2931887e5ba0db9007024b3420b110603d5be
38 * agent/findkey.c (write_extended_private_key): Make sure
41 agent: KEYATTR only allows access to attribute.
42 + commit 26d5a6e862c68bf7355ade48e036732fb52561e9
43 * agent/command.c (cmd_keyattr): Check the ATTRNAME.
45 agent: Fix KEYATTR command for --delete option.
46 + commit 2c47c6662793ad2220a97e8aff1acb0aca4099bf
47 * agent/command.c (cmd_keyattr): Write the result.
49 2022-06-22 NIIBE Yutaka <gniibe@fsij.org>
51 agent: Add KEYATTR command.
52 + commit 30b54a0ebbaa8ac491710ad1b4f2fbd1b5814bce
53 * agent/agent.h (agent_raw_key_from_file): Add R_KEYMETA argument.
54 (agent_update_private_key): New.
55 * agent/command-ssh.c (data_sign): Follow the change of the function
56 agent_raw_key_from_file.
57 * agent/command.c (do_one_keyinfo): Likewise.
59 (register_commands): Add an entry of cmd_keyattr.
60 * agent/findkey.c (agent_update_private_key): New.
61 (agent_raw_key_from_file): Add R_KEYMETA argument.
63 agent,gpg,tools: Fix use of log_get_fd.
64 + commit fe535cf26592d6af53d5aea15b3fdc1d79ba0f80
65 * agent/call-daemon.c (daemon_start): Don't put file descriptor from
66 log_get_fd to no_close_list.
67 * agent/call-pinentry.c (start_pinentry): Likewise.
68 * common/call-gpg.c (start_gpg): Likewise.
69 * call-syshelp.c (start_syshelp): Likewise.
70 * tools/gpg-connect-agent.c (main): Likewise.
72 2022-06-20 Werner Koch <wk@gnupg.org>
74 sm: Improve pkcs#12 debug output.
75 + commit 52f9e13c0cb3b42c469e2d00352ab36948ca1e55
76 * sm/minip12.c (parse_shrouded_key_bag): Fix offset diagnostic.
77 (parse_cert_bag): Ditto.
78 (parse_bag_data): Remove debug output. Pass startoffset. Fix offset
81 sm: Rework the PKCS#12 parser to support DFN issued keys.
82 + commit a4e04375e84ecb7ea0d02e153cb27988fca4c2d0
83 * sm/minip12.c (struct p12_parse_ctx_s): New. Use this instead of
84 passing several parameters to most functions.
85 (parse_pag_data): Factor things out to ...
86 parse_shrouded_key_bag): new.
87 (parse_cert_bag): New.
88 (parse_bag_data): New.
89 (p12_parse): Setup the parse context.
91 2022-06-17 Werner Koch <wk@gnupg.org>
93 agent: Improve "Insert the card" message.
94 + commit be5d06dae23972a503e6eed555b3a254151be366
95 * agent/findkey.c (prompt_for_card): Don't print "(null").
97 2022-06-15 Werner Koch <wk@gnupg.org>
99 agent,ssh: Fix for make not-inserted OpenPGP.3 keys available for SSH.
100 + commit 2766b9e56c778d3cbed93aeec5821363a4277c52
101 * agent/command-ssh.c (ssh_send_available_keys): Do not bump
102 key_counter for ignored keys. Also use opt.debug instead of
103 opt.verbose and fix a memory leak.
105 2022-06-14 Werner Koch <wk@gnupg.org>
107 agent: New option --no-user-trustlist and --sys-trustlist-name.
108 + commit 1530d04725d475bf29328eab40b42f72ff8aa06b
109 * agent/gpg-agent.c (oNoUserTrustlist,oSysTrustlistName): New.
110 (opts): Add new option names.
111 (parse_rereadable_options): Parse options.
112 (finalize_rereadable_options): Reset allow-mark-trusted for the new
114 * agent/agent.h (opt): Add fields no_user_trustlist and
116 * agent/trustlist.c (make_sys_trustlist_name): New.
117 (read_one_trustfile): Use here.
118 (read_trustfiles): Use here. Implement --no-user-trustlist.
120 g10: Fix garbled status messages in NOTATION_DATA.
121 + commit 34c649b3601383cd11dbc76221747ec16fd68e1b
122 * g10/cpr.c (write_status_text_and_buffer): Fix off-by-one
124 2022-06-14 Jakub Jelen <jjelen@redhat.com>
126 keygen: Fix reading AEAD preference.
127 + commit 4dbef2addca8c76fb4953fd507bd800d2a19d3ec
128 * g10/keygen.c (keygen_set_std_prefs): Use the right variable when
129 reading AEAD preference string
131 2022-06-13 Werner Koch <wk@gnupg.org>
133 gpgsm: New option --compatibility-flags.
134 + commit f0b373cec93bb01f02b9c0a3ab1f3e242b381c3f
135 * sm/gpgsm.c (oCompatibilityFlags): New option.
136 (compatibility_flags): new.
137 (main): Parse and print them in verbose mode.
138 * sm/gpgsm.h (opt): Add field compat_glags.:
139 (COMPAT_ALLOW_KA_TO_ENCR): New.
140 * sm/keylist.c (print_capabilities): Take care of the new flag.
141 * sm/certlist.c (cert_usage_p): Ditto.
143 common: New function parse_compatibility_flags.
144 + commit ce63eaa4f8f3f41aafcaddd8d658dacd522334a8
145 * common/miscellaneous.c (parse_compatibility_flags): New.
146 * common/util.h (struct compatibility_flags_s): New.
148 2022-06-10 NIIBE Yutaka <gniibe@fsij.org>
150 scd: Support specifying keygrip for learn command.
151 + commit dd600bbc84ddba56b4455cea97e048d681b083ce
152 * scd/command.c (cmd_learn): Allow keygrip argument.
154 scd,openpgp: Support READCERT by keygrip.
155 + commit 273b8ec1931d3aeef530e9262b2447e94d4b350a
156 * scd/app-openpgp.c (do_readcert): Allow use of keygrip.
158 2022-06-03 Werner Koch <wk@gnupg.org>
160 common,w32: Use LoadLibraryEx to fix a warning in mingw.
161 + commit 59c481bb86464953e526298bfe73c3466387c46d
162 * common/dynload.h (dlopen): Use LoadLibraryEx and remove Windows CE
165 w32: Allow Unicode filenames for iobuf_cancel.
166 + commit 4ee2009083cb6f279c6f8aa4397462e887d5818e
167 * common/iobuf.c (iobuf_cancel): Use gnupg_remove
168 * common/mischelp.c (same_file_p): Allow for Unicode names.
170 2022-06-02 Werner Koch <wk@gnupg.org>
172 tools: Minor fix to gpg-connect-agent options.
173 + commit d89557fe95bf8dd92594871093814c6b0b39f4a2
174 * tools/gpg-connect-agent.c (enum cmd_and_opt_values): Move
175 oUnBuffered more to the top so that oNoop won't not get the value 'v'.
177 2022-06-02 NIIBE Yutaka <gniibe@fsij.org>
179 agent: Support --format=ssh option for READKEY.
180 + commit d7a3c455c5e29b19b66772f86dda925064e34896
181 * agent/command.c (cmd_readkey): Handle --format=ssh to return key
184 tools: Add a way to cancell INQUIRE for gpg-connect-agent.
185 + commit 5a327e8001c4698330fabc83421277a590d5b085
186 * tools/gpg-connect-agent.c (handle_inquire): When the helper program
187 exit status is not 0, it means cancellation, now.
189 tools: Add --unbuffered option to gpg-connect-agent.
190 + commit 24d02b8a32757e8c86f2a4fbca82dac4506a94d1
191 * tools/gpg-connect-agent.c (cmd_and_opt_values): Add oUnBuffered.
192 (opts, opt): Likewise.
193 (main): When unbuffered, set gpgrt_stdin/stdout accordingly.
195 2022-06-01 Werner Koch <wk@gnupg.org>
197 scd:nks: Don't flag the ESIGN keypair EF as encryption capable.
198 + commit 3a2fb1c30633373d17880469e0b84ab2a9524585
199 * scd/app-nks.c (filelist): Tweak 0x4531.
201 scd:nks: Some code cleanup.
202 + commit b92b3206e72b635fd815eaf85e7acc67c2a52ffe
203 * scd/app-nks.c (find_fid_by_keyref): Factor keyref parsing out to ...
205 (do_readcert): Use new function instead of partly duplicated code.
206 Make detection of keygrip more robust.
207 (do_readkey): Make detection of keygrip more robust.
208 (do_with_keygrip): Use get_nks_tag.
210 2022-05-29 Werner Koch <wk@gnupg.org>
212 scd:nks: Support the Telesec ESIGN application.
213 + commit 07eaf006c2763a6b40d2734b1c6704da466e0ed0
214 * scd/app-nks.c (find_fid_by_keyref): Disable the cache for now.
215 (readcert_from_ef): Considere an all zero certificate as not found.
216 (do_sign): Support ECC and the ESIGN application.
218 2022-05-28 Werner Koch <wk@gnupg.org>
220 gpg: Setup the 'usage' filter property for export.
221 + commit 7aabd94b8103432b42cd909e911bf0c645e0298c
222 * g10/export.c (do_export_stream): Merge the key to get the properties
225 2022-05-27 NIIBE Yutaka <gniibe@fsij.org>
227 agent: New field "Prompt" to prevent asking card key insertion.
228 + commit 9f1dcfc7a7b47ab8221e75eaa1872bbf2a72980c
229 * agent/findkey.c (prompt_for_card): Add "Prompt" field handling.
231 2022-05-26 NIIBE Yutaka <gniibe@fsij.org>
233 agent,ssh: Support "Use-for-ssh" flag in private key.
234 + commit d86b6c28fcca50a723694bf7a11743d6fd5689cb
235 * agent/findkey.c (public_key_from_file): Support "Use-for-ssh"
236 when it's in extended format.
238 agent,ssh: Make not-inserted OpenPGP.3 keys available for SSH.
239 + commit 193fcc2f7a8cca5240ce50499c54f99235a87e1c
240 * agent/agent.h (agent_ssh_key_from_file): New.
241 * agent/command-ssh.c (get_ssh_keyinfo_on_cards): New.
242 (ssh_send_available_keys): Loop on the GNUPG_PRIVATE_KEYS_DIR.
243 Support keys by agent_ssh_key_from_file.
244 (ssh_handler_request_identities): Move card key handling to
245 ssh_send_available_keys.
246 * agent/findkey.c (public_key_from_file): New. Adding handling
248 (agent_public_key_from_file): Use public_key_from_file.
249 (agent_ssh_key_from_file): New.
251 agent: Fix get_keyinfo_on_cards.
252 + commit c07c79a1d795ac8f50981637fe32383abb3e969d
253 * agent/command.c (get_keyinfo_on_cards): Make it static. Don't
254 return bogus value on error. Return NULL when scdaemon is disabled.
256 agent: Handle USAGE information in KEYINFO.
257 + commit 295a6a7591972442a9ef4f8964baf9cdbe297cdd
258 * agent/agent.h (struct card_key_info_s): Add USAGE field.
259 * agent/call-scd.c (card_keyinfo_cb): Parse USAGE field.
260 Allow optional SERIALNO, IDSTR, and USAGE fields.
261 Fix releasing on possible allocation error.
263 scd: Return USAGE information for KEYINFO command.
264 + commit 5264d3f58e8a8362900c3518bdd683ff9a23cccc
265 * scd/command.c (hlp_keyinfo): Update.
266 (send_keyinfo): Add a USAGE argument.
267 * scd/scdaemon.h (send_keyinfo): Add a USAGE argument.
268 * scd/app-nks.c (set_usage_string): New.
269 (do_learn_status_core, do_readkey): Use set_usage_string.
270 (do_with_keygrip): Add USAGE to call send_keyinfo,
271 using set_usage_string.
272 * scd/app-openpgp.c (get_usage_string): New.
273 (send_keypair_info): Use get_usage_string.
274 (send_keyinfo_if_available): Add USAGE to call send_keyinfo,
275 using get_usage_string.
276 * scd/app-p15.c (set_usage_string): New.
277 (send_keypairinfo): Use set_usage_string.
278 (do_with_keygrip): Add USAGE to call send_keyinfo,
279 using set_usage_string.
280 * scd/app-piv.c (do_with_keygrip): Add USAGE to call send_keyinfo.
282 scd,piv: Fix status report of KEYPAIRINFO.
283 + commit 64c8786105687da3531608ba8440a702087475e5
284 * scd/app-piv.c (do_readkey): Use "-" for usage when not available.
286 2022-05-25 NIIBE Yutaka <gniibe@fsij.org>
288 agent,scd: Make sure to set CONFIDENTIAL flag in Assuan.
289 + commit 052f58422dca1044aba7acb4cf57416e7a8cb01f
290 * agent/call-scd.c (inq_needpin): Call assuan_begin_confidential
291 and assuan_end_confidential, and wipe the memory after use.
292 * agent/command.c (cmd_preset_passphrase): Likewise.
293 (cmd_put_secret): Likewise.
294 * scd/command.c (pin_cb): Likewise.
296 agent: Add missing assuan_end_confidential call.
297 + commit 8e859331eafc8e7cfd0f366248134531fea0d074
298 * agent/command.c (send_back_passphrase): Fix.
300 2022-05-24 NIIBE Yutaka <gniibe@fsij.org>
302 scd: Support automatic card selection for READCERT with keygrip.
303 + commit ea97683d58205363d48fd41ef5559926be46681e
304 * scd/command.c (cmd_readcert): Select by KEYGRIP.
306 2022-05-20 NIIBE Yutaka <gniibe@fsij.org>
308 agent: Fix a bug accessing after release when opt.verbose.
309 + commit 1b0c4c2778249a6fe25a2c517d9fc05a1f162f1c
310 * agent/command-ssh.c (ssh_handler_request_identities): Don't release
311 KEY_PUBLIC too early.
313 agent: Factor out handling scanning over ssh keys.
314 + commit ef3e5fd403777d5c047ac91de75f32895058ff88
315 * agent/command-ssh.c (ssh_send_available_keys): New.
316 (ssh_handler_request_identities): Use ssh_send_available_keys.
318 agent: Show "Label:" field of private key when prompt the insertion.
319 + commit 5986310866527e37c6df118b1582177934522e39
320 * agent/findkey.c (prompt_for_card): Use "Label:" field.
321 (agent_key_from_file): Use KEYMETA.
323 agent: Move confirmation handling into findkey.c.
324 + commit 6a37240cf279b27cddcc88de93098c55f3f26701
325 * agent/agent.h (divert_tpm2_pksign, divert_tpm2_pkdecrypt): Fix API.
326 (divert_pksign, divert_pkdecrypt): Likewise.
327 * agent/divert-scd.c (ask_for_card): Remove.
328 (divert_pksign, divert_pkdecrypt): Don't call ask_for_card.
329 * agent/divert-tpm2.c (divert_tpm2_pksign, divert_tpm2_pkdecrypt):
330 Remove DESC_TEXT argument.
331 * agent/findkey.c (prompt_for_card): New (was: ask_for_card).
332 (agent_key_from_file): Call prompt_for_card when it's a key
334 * agent/pkdecrypt.c (agent_pkdecrypt): Follow the change of API.
335 * agent/pksign.c (agent_pksign_do): Likewise.
337 2022-05-19 NIIBE Yutaka <gniibe@fsij.org>
339 agent: Pop up dialog window for confirmation, when specified so.
340 + commit 598b3fdfaa09b9071ceeb81f68052f3d35064292
341 * agent/findkey.c (agent_key_from_file): Support "Confirm:".
343 agent: Supply GRIP=NULL for agent_key_from_file, for real use.
344 + commit 09357d7eae3efd8db1df79ef191f12038e905c6c
345 * agent/findkey.c (agent_key_from_file): Change the semantics of
346 GRIP. Now, it's NULL for use by PKDECRYPT and PKSIGN/PKAUTH.
347 * agent/pkdecrypt.c (agent_pkdecrypt): Set GRIP=NULL.
348 * agent/pksign.c (agent_pksign_do): Likewise.
350 2022-05-17 NIIBE Yutaka <gniibe@fsij.org>
352 scd: Fix use of SCardListReaders for PC/SC.
353 + commit 1b1684cf6192d9edb90a54ebe4a0e66b3d59a44b
354 * scd/apdu.c (apdu_dev_list_start): Initialize NREADER.
356 2022-05-11 NIIBE Yutaka <gniibe@fsij.org>
358 scd: Fail when no good algorithm attribute.
359 + commit 53eddf9b9ea01210f71b851b5cb92a5f1cdb6f7d
360 * scd/app-openpgp.c (parse_algorithm_attribute): Return the error.
361 (change_keyattr): Follow the change.
362 (app_select_openpgp): Handle the error of parse_algorithm_attribute.
364 2022-05-10 NIIBE Yutaka <gniibe@fsij.org>
366 dirmngr: Fix for Windows.
367 + commit 14068dfc74fffa9cdf2fd49712f4ffcfe6405ba0
368 * dirmngr/http.c (EHOSTUNREACH, EAFNOSUPPORT): Define when not
370 [HTTP_USE_GNUTLS] (my_gnutls_read): Use recv for Windows.
371 [HTTP_USE_GNUTLS] (my_gnutls_write): Use send for Windows.
373 tests: Enable tests with keyboxd only when it's configured.
374 + commit 09df630e4be7c44b89183181c1643f50ad606ae2
375 * tests/gpgscm/tests.scm (in-objdir): Move from...
376 * g13/all-tests.scm: ... here.
377 * tests/openpgp/all-tests.scm (keyboxd-enabled?): New.
378 (tests): Enable when keyboxd-enabled?.
380 2022-05-06 Werner Koch <wk@gnupg.org>
382 scd:p15: Improve the displayed S/N for Technology Nexus cards.
383 + commit 3d7d7e8bfd1259e00104b6d52c86d5554fe5b9dd
384 * scd/app-p15.c (any_control_or_space_mem): New.
385 (get_dispserialno): Add new code.
387 scd:p15: Fix the the sanity check of the displayed S/N.
388 + commit 6f612fd5f6d884bbc4645d55378d6ee01942109f
389 * scd/app-p15.c (any_control_or_space): Fix loop.
391 2022-05-06 NIIBE Yutaka <gniibe@fsij.org>
393 scd: Add workaround for ECC attribute on Yubikey.
394 + commit 054d14887ef8fa1cbadef4ed2ea28213f25f5d25
395 * scd/app-openpgp.c (parse_algorithm_attribute): Skip possibly bogus
396 octet in a key attribute.
398 2022-05-05 Werner Koch <wk@gnupg.org>
400 scd:p15: Fix reading certificates without length info.
401 + commit bbcca7357b017377fa311c507a940b32f62dcfa1
402 * scd/app-p15.c (readcert_by_cdf): Do not use extended mode if the CDF
403 object has no length info. Add debug output when reading a cert.
404 (read_p15_info): No more need to disable extended mode for GeNUA cards.
406 scd: New debug flags "card".
407 + commit 7dc5693926222d97a3dfe55b426d2b41204daa79
408 * scd/scdaemon.c (debug_flags): Add "card".
409 * scd/scdaemon.h (DBG_CARD_VALUE, DBG_CARD): New.
411 scd:openpgp: Fix a segv for cards supporting unknown curves.
412 + commit 385f4841330e277949ddf2f13939b97481d2d29c
413 * common/openpgp-oid.c (get_keyalgo_string): Do not strdup NULL.
415 2022-05-02 NIIBE Yutaka <gniibe@fsij.org>
417 gpgscm: Fix handling an error for chdir.
418 + commit 4fe8859541d0facd5c3aadbdff5202ee5bb563a8
419 * tests/gpgscm/ffi.c (do_chdir): Use gpg_error_from_syserror.
421 tests: Fix plain invocation of "make check".
422 + commit 792374edb67698d46f003f1548e674f0c6ef8d44
423 * tests/openpgp/run-tests.scm: Check if *args* is null or not.
425 tests: Add a test for Ed25519 keys for non-protected secret.
426 + commit 602c37ac0678d690a5b68d6c1749b8daa3d5f328
427 * tests/openpgp/issue5120.scm: New.
429 2022-04-27 NIIBE Yutaka <gniibe@fsij.org>
431 kbx: Fix a race condition which results no status report.
432 + commit bd5dbdb8131cde182c79070e12f9e64a549643cd
433 * kbx/keyboxd.h (kbxd_status_printf): New.
434 * kbx/backend-support.c (be_return_pubkey): Use kbxd_status_printf.
435 * kbx/kbxserver.c (kbxd_status_printf): New.
436 * kbxd_start_command_handler (kbxd_start_command_handler): Don't
437 use set_assuan_context_func, because the function pointer is
438 shared by multiple threads.
440 2022-04-26 Ingo Klöcker <dev@ingo-kloecker.de>
442 gpg: Look up user ID to revoke by UID hash.
443 + commit 35b17550706c8b7479ae96654feb97c05263cfc9
444 * g10/keyedit.c (find_userid_by_namehash, find_userid): New.
445 (keyedit_quick_revuid): Use find_userid() instead of iterating over the
446 nodes of the keyblock.
447 * tests/openpgp/quick-key-manipulation.scm: Add test for revoking a
448 user ID specified by its hash.
450 2022-04-26 NIIBE Yutaka <gniibe@fsij.org>
452 tests: Avoid auto-removal when test fails.
453 + commit f27a70ecc268f9318dbf87d23c451a3bad464ed1
454 * tests/gpgscm/init.scm (*exit-status*): New.
455 (exit): Set *exit-status*.
456 * tests/gpgscm/tests.scm (mkdtemp-autoremove): Check
457 exit-status and only remove the directory if not zero.
459 tests: Support single invocation with variant.
460 + commit ba2f2085a95be47a06ac6ba75a4c7def7c6599b2
461 * tests/openpgp/run-tests.scm: Add GPGSCM_TEST_VARIANT support.
463 dirmngr: Fix for C90 compiler.
464 + commit d6eb2761330508d1c19f99ccdefefb1febbb81c4
465 * dirmngr/dirmngr.c (main): Declaration before a statement.
467 tests: Let make check-all work again.
468 + commit 03e8668dbb27d83fb6064681ace560eb7154c569
469 * Makefile.am (TESTS_ENVIRONMENT): Add GNUPG_BUILD_ROOT.
471 tests: Use module_tests for testing agent/.
472 + commit a9754879d127fd492606327b7397350f094f3ff4
473 * agent/Makefile.am (module_test): New.
474 * agent/all-tests.scm: Use module_tests instead of TESTS.
476 tests: Skip testsing g13 when it's not enabled.
477 + commit adf24ce6182839f6c54106cc2a8d2dc81b815793
478 * g13/all-tests.scm: Skip the test by examining $objdir/Makefile.
480 tests: Fix check-all for tests/openpgp.
481 + commit 16720e1f54db31f3f890756ec6b2280630569fa0
482 * tests/openpgp/Makefile.am: Revert the change by DISABLE_REGEXP.
483 * tests/openpgp/all-tests.scm: Likewise.
485 2022-04-25 Werner Koch <wk@gnupg.org>
488 + commit 3a8164e69c3e753cf671a5c86305715232cc9c95
491 gpg: Avoid NULL ptr access due to corrupted packets.
492 + commit f6caf5b17366efa93f806f22e7441eb27f4d382c
493 * g10/parse-packet.c (parse_signature): Do not create an opaque MPI
494 with NULL and length > 0
497 2022-04-25 Todd Zullinger <tmz@pobox.com>
499 sm: Use gpg_err_code() instead of -1.
500 + commit beb79f2705ad24665f54c9ea2042a73b1f16f6bc
501 * sm/verify.c (gpgsm_verify): use gpg_err_code instead of 'rc == -1'
504 2022-04-25 Werner Koch <wk@gnupg.org>
506 Deprecate the --supervised options.
507 + commit ca5d5142c6d6eaba4572a086f8473e4aebdd3f9e
508 * agent/gpg-agent.c (main): Mark --supervised as deprecated.
509 * dirmngr/dirmngr.c (main): Ditto.
511 gpg: Emit an ERROR status as hint for a bad passphrase.
512 + commit 0f8623d518d49541c1d54676d400916546ff38f4
513 * g10/mainproc.c (proc_symkey_enc): Issue new error code.
514 (proc_encrypted): Ditto.
516 2022-04-25 NIIBE Yutaka <gniibe@fsij.org>
518 common:iobuf: Exclude cases with IOBUF_INPUT_TEMP/IOBUF_OUTPUT_TEMP.
519 + commit 2fc91e15c6bebb203162cc8445e68ee4ff934885
520 * common/iobuf.c (iobuf_read): Handle a case with IOBUF_INPUT_TEMP.
521 (iobuf_write): Handle a case with IOBUF_OUTPUT_TEMP.
523 scd: Fix hard-coded constant for RSA auth.
524 + commit 2848fe4c84e5ee20ccd90f0ef4c9f78c6801e1f6
525 * scd/app-openpgp.c (do_auth): Allow larger data for RSA-4096.
527 2022-04-22 Ingo Klöcker <dev@ingo-kloecker.de>
529 gpg: Fix line end in error message.
530 + commit 8b3a24e5176f64b101d2b073f2901852d8ecc691
531 * g10/keyedit.c (menu_adduid): Move linefeed character to the format
534 2022-04-22 NIIBE Yutaka <gniibe@fsij.org>
536 agent: Not writing password into file.
537 + commit e529c54fe3a83c1108347363a793c1cb9b790175
538 * agent/genkey.c (do_check_passphrase_pattern): Use stream to invoke
539 pattern check program.
541 scd: Don't inhibit SSH authentication for larger data if it can.
542 + commit e8fb8e2b3e66d5ea8a3dc90afdc14611abf2c3da
543 * scd/app-openpgp.c (do_auth): Use command chaining if available.
545 2022-04-21 Werner Koch <wk@gnupg.org>
548 + commit a4b25bcfe1f9f740fe1451efc07c32959a2f8d86
551 2022-04-20 Werner Koch <wk@gnupg.org>
553 dirmngr: Changes to the linking order.
554 + commit 89dc9f1e6916ebd123852534b8cada2fc3555688
555 * dirmngr/Makefile.am: Tweak library order.
557 w32: Do no use Registry item DefaultLogFile for the main tools.
558 + commit 22fef189b1113581994972c06ecb216a888f3d74
559 * g10/gpg.c (main): Set LOG_NO_REGISTRY.
560 * sm/gpgsm.c (main): Ditto.
561 * tools/gpg-connect-agent.c (main): Ditto.
562 * tools/gpgconf.c (main): Ditto.
563 (show_other_registry_entries): Print "DefaultLogFile".
565 2022-04-14 Werner Koch <wk@gnupg.org>
567 gpg: Replace an assert by a log_fatal.
568 + commit 41fb46007e65be76cffbe2a19135facc3db912c5
569 * g10/build-packet.c (do_signature): Use log_fatal.
571 ssh: Returned faked response for the new session-bind extension.
572 + commit 46d62d80a2b8b1ba4fc8b8698de7495f79a417cf
573 * agent/command-ssh.c (SSH_OPT_CONSTRAIN_MAXSIGN): New.
574 (SSH_OPT_CONSTRAIN_EXTENSION): New.
575 (ssh_handler_add_identity): Ignore them.
576 (ssh_handler_extension): Take success for session-bind.
578 scd: Renamed a constant in ccid-driver.c.
579 + commit dd727ec968af8e80d26087ee1eacdb192a21322d
580 * scd/ccid-driver.c (MAX_DEVICE): Rename to CCID_MAX_DEVICE.
582 scd: Minor code reorganization.
583 + commit 6294ae282da1a504e7e28e759560814ed9c0b0b7
584 * scd/ccid-driver.c: Move struct defines to the top.
586 scd: Fix memory leak in ccid-driver.
587 + commit 8ac92f0e807a3dfb6da46fdea1f9f2c89cc5ebc2
588 * scd/ccid-driver.c (ccid_dev_scan): Use loop var and not the count.
590 tests: Fix warning in common/t-ssh-utils.c.
591 + commit 61038be8134c01300af0b2ec7d7a351ce45585af
592 * common/t-ssh-utils.c (main): Remove continue.
594 2022-04-14 NIIBE Yutaka <gniibe@fsij.org>
596 tests: Fix common/t-ssh-utils.
597 + commit 5e508ffcab185eb8149e2fb2833ce15820140368
598 * common/t-ssh-utils.c (main): Accept an error with MD5 in_fips_mode.
600 2022-04-14 Jakub Jelen <jjelen@redhat.com>
602 tests: Honor FIPS mode.
603 + commit 1f0651dbfbabb80adf5685da0049f15da97f6175
604 * common/t-ssh-utils.c (FLAGS_NOFIPS): New.
605 (sample_keys): Add flags member.
606 (main): Detect if libgcrypt is in FIPS mode, try SHA256 fingerprints
607 first and expect the MD5 ones will fail.
609 2022-04-13 Werner Koch <wk@gnupg.org>
611 scd:p15: Improve the PIN prompt for Genua cards.
612 + commit 618aa8689a9b0b295d21130e472ed6aa739a52e5
613 * scd/app-p15.c (CARD_PRODUCT_GENUA): New.
614 (cardproduct2str): Add it.
615 (read_p15_info): Detect and set GENUA
616 (make_pin_prompt): Take holder string from the AODF.
618 2022-04-11 Werner Koch <wk@gnupg.org>
620 sm: Print diagnostic about CRL problems due to Tor mode.
621 + commit 137e59a6a5c5cd89091471811bf7c7c67de5890d
622 * dirmngr/crlfetch.c (crl_fetch, crl_fetch_default)
623 (ca_cert_fetch, start_cert_fetch): Factor Tor error out to ...
624 (no_crl_due_to_tor): new. Print status note.
626 * dirmngr/ks-engine-ldap.c (ks_ldap_get)
627 (ks_ldap_search, ks_ldap_put): Factor Tor error out to ...
628 (no_ldap_due_to_tor): new. Print status note.
630 * dirmngr/ocsp.c (do_ocsp_request): Print status note.
631 * sm/misc.c (gpgsm_print_further_info): New.
632 * sm/call-dirmngr.c (warning_and_note_printer): New.
633 (isvalid_status_cb): Call it.
634 (lookup_status_cb): Ditto.
635 (run_command_status_cb): Ditto.
637 * common/asshelp2.c (vprint_assuan_status): Strip a possible trailing
640 scd: Support for GeNUA cards.
641 + commit 0dcc24985235668caf218a58f593c348f6f6fb4f
642 * scd/app-p15.c (read_p15_info): Disable extended mode for Genua
645 2022-04-08 Werner Koch <wk@gnupg.org>
647 gpg: Remove restrictions for the name part of a user-id.
648 + commit 8945f1aedfd703661c300f326e70c1bf132bc656
649 * g10/keygen.c (ask_user_id): Allow for the name to start with a
650 digit. Allow names shorter than 5.
652 2022-04-07 NIIBE Yutaka <gniibe@fsij.org>
654 agent: Fix for possible support of Cygwin OpenSSH.
655 + commit 90000819641c9011b0c0c19f5404a88bf8c34acc
656 * agent/command-ssh.c (start_command_handler_ssh): Use es_sysopen.
658 2022-04-06 NIIBE Yutaka <gniibe@fsij.org>
660 w32: Exclude tests with HOME.
661 + commit b47a23f5fac551727d24f65765e21485ed2bb02c
662 * common/t-session-env.c [HAVE_W32_SYSTEM] (test_all): HOME is not
663 defined, so, exclude the tests.
665 w32: Fix for make check.
666 + commit 39d478f5ba5d74cdd1d2e40311ff120c932bac37
667 * common/Makefile.am (module_tests): Exclude t-exechelp and
669 * common/t-stringhelp.c (mygetcwd): Convert '\' to '/'.
670 * tests/cms/Makefile.am: Add $(EXEEXT).
671 * tests/gpgme/Makefile.am: Likewise.
672 * tests/migrations/Makefile.am: Likewise.
673 * tests/openpgp/Makefile.am: Likewise.
675 2022-04-04 NIIBE Yutaka <gniibe@fsij.org>
677 agent:w32: Fix for use of socket.
678 + commit 48ee11722dd060dacac55ae56ee699c0f5271bda
679 * agent/command-ssh.c (get_client_info): Use type gnupg_fd_t for
680 socket, until call of socket API.
681 (start_command_handler_ssh): Don't convert here.
683 2022-03-31 NIIBE Yutaka <gniibe@fsij.org>
685 scd,tpm2d: Fix for consistent use of socket FD.
686 + commit f584ad95048279b244083fee330c5741be2b9da7
687 * scd/command.c (scd_command_handler): Use gnupg_fd_t for the argument
688 but no INT2FD to listen. Use GNUPG_INVALID_FD.
689 * tpm2d/command.c (tpm2d_command_handler): Likewise.
690 * scd/scdaemon.c (start_connection_thread): Follow the change.
691 * tpm2d/tpm2daemon.c (start_connection_thread): Likewise.
692 * scd/scdaemon.h (scd_command_handler): Use gnupg_fd_t.
693 * tpm2d/tpm2daemon.h (tpm2d_command_handler): Likewise.
695 2022-03-30 NIIBE Yutaka <gniibe@fsij.org>
697 dirmngr: Fix for SOCK.
698 + commit 01ade6945d6c0cbc81e5169f74e3627fe5427be2
699 * dirmngr/http.c (connect_with_timeout): Use FD2INT to unwrap SOCK.
701 tpm2d: Fix socket resource leak on Windows.
702 + commit 18eff31496a34156d58d757a2a110bcfde6c9908
703 * tpm2d/tpm2daemon.c (main): Use gnupg_fd_t for socket, and use
704 assuan_sock_close for the socket allocated by assuan_sock_new.
705 (handle_connections): Use gnupg_fd_t for listen_fd.
706 Use assuan_sock_close for the socket by npth_accept.
708 common,w32: Fix handle_to_fd to match use of _open_osfhandle.
709 + commit 2189b4bb638cd56fbb941353ecbfc373cb4cf90b
710 * common/exechelp-w32.c (handle_to_fd): Use intptr_t.
711 (gnupg_wait_processes): Fix to use pid_to_handle.
713 2022-03-29 NIIBE Yutaka <gniibe@fsij.org>
715 dirmngr: Clean up for not supporting WindowsCE.
716 + commit d05221065fafd5a4694f14910e16afe90e3cd0dd
717 * dirmngr/Makefile.am (dirmngr_SOURCES): Remove w32-ldap-help.h.
718 * dirmngr/cdblib.c (cdb_init): Remove for __MINGW32CE__.
719 * dirmngr/w32-ldap-help.h: Remove.
721 gpg,tools: Remove use of repo only zlib-riscos.h.
722 + commit 2cebba72749c7e564e62a997dd87f912962098c9
723 * g10/compress.c: Don't use zlib-riscos.h.
724 * tools/gpgsplit.c: Likewise.
726 scd,w32: Fix socket resource leak.
727 + commit a67a09be30f5ad4e3fbce5162c98eab5ba06a56f
728 * scd/scdaemon.c (main): Use gnupg_fd_t for socket, and use
729 assuan_sock_close for the socket allocated by assuan_sock_new.
730 (handle_connections): Use gnupg_fd_t for listen_fd.
731 Use assuan_sock_close for the socket by npth_accept.
733 2022-03-28 Werner Koch <wk@gnupg.org>
735 dirmngr: Escape more characters in WKD requests.
736 + commit 435861b9fb8c221eee4bf50b2c25d59de1f1755c
737 * dirmngr/server.c (proc_wkd_get): Also escape '#' and '+'
739 gpg: Remove EAX from the preference list.
740 + commit 253fcb97775b268d0a9ac47c71076b3577fcba55
741 * g10/gpg.c (main): Remove note about rfc4880bis.
742 * g10/keygen.c (keygen_set_std_prefs): Use only OCB in the AEAD
745 2022-03-28 NIIBE Yutaka <gniibe@fsij.org>
747 agent: KEYTOCARD prefers to specified time.
748 + commit f0a1c79f60ce22b99ec75c2fd0de579fe976b48f
749 * agent/command.c (cmd_keytocard): Timestamp at "Created:" field is
750 only used when time is not specified.
752 2022-03-25 Werner Koch <wk@gnupg.org>
754 dirmngr: Workaround for a certain broken LDAP URL.
755 + commit 90caa7ad598be123707f4d4651f9a64a74347626
756 * dirmngr/ldap.c (url_fetch_ldap): Detect and replace.
758 common,w32: Fix early home dir creation.
759 + commit 0f03bdcd2e611adc8d49d997d3c0b8064d143a0c
760 * common/homedir.c (w32_try_mkdir): Remove.
761 (standard_homedir): Call gnupg_mkdir directly.
762 (_gnupg_socketdir_internal): Ditto.
764 2022-03-25 NIIBE Yutaka <gniibe@fsij.org>
766 tools:gpgconf: Fix gc_component table.
767 + commit caba9df7266539f944d8a8c7c03da3fc2addbe90
768 * tools/gpgconf-comp.c [!BUILD_WITH_TPM2D] (gc_component): Add a dummy
771 agent: Use "Created:" field for creation time.
772 + commit c795be79c14fac01b984bdc2e2041d2141f27612
773 * agent/agent.h (agent_key_from_file): Change the declaration.
774 * agent/findkey.c (agent_key_from_file): Return timestamp.
775 * agent/pkdecrypt.c (agent_pkdecrypt): Follow the change.
776 * agent/pksign.c (agent_pkdecrypt): Likewise.
777 * agent/command.c (cmd_passwd, cmd_export_key): Likewise.
778 (cmd_keytocard): Use timestamp in private key file in "Created:".
780 dirmngr: Suppress error message on trial reading as PEM format.
781 + commit 25d37a0a6a9c42326777c2949054a8bd6f276f8a
782 * dirmngr/dirmngr-client.c (read_pem_certificate): Add NO_ERRMSG
783 argument to suppress the error message.
784 (read_certificate, squid_loop_body): Follow the change.
786 2022-03-24 NIIBE Yutaka <gniibe@fsij.org>
788 dirmngr: Clear the error count to try certificate as binary.
789 + commit 4d19759ce5fb4962b22a8bc04c3a54e3f47d2f17
790 * dirmngr/dirmngr-client.c (read_certificate): Call
793 kbx: Fix searching for FPR20 in version 2 blob.
794 + commit 01329da8a778d3b0d121c83bfb61d99a39cccac4
795 * kbx/keybox-search.c (blob_cmp_fpr_part): Don't change FPROFF, since
796 it's caller which tweaks the offset.
797 (has_short_kid, has_long_kid): Examine the key flags to determine if
798 fingerprint 32 or 20.
800 2022-03-22 Werner Koch <wk@gnupg.org>
802 gpgtar: New option --with-log.
803 + commit ed53d41b4c463072bac30b0e4c73f8bf445bd22d
804 * tools/gpgtar.c: New option --with-log.
805 * tools/gpgtar.h (opt): Add field with_log.
806 * tools/gpgtar-extract.c (gpgtar_extract): Move directory string
807 building up. Add option --log-file if needed.
808 * tools/gpgtar-create.c (gpgtar_create): Make tmpbuf static becuase it
809 is used outside of its scope.
810 * tools/gpgtar-list.c (gpgtar_list): Ditto.
812 2022-03-21 Werner Koch <wk@gnupg.org>
814 dirmngr: Make WKD_GET work even for servers not handling SRV RRs.
815 + commit 92c8ae720e69216a2f51d2c7d3cd72340b782fb3
816 * dirmngr/server.c (proc_wkd_get): Take care of DNS server failures
818 gpgtar: Finally use a pipe for decryption.
819 + commit e5ef5e3b914d5c8f0b841b078b164500ea157804
820 * tools/gpgtar.h (opt): Add new flags.
821 * tools/gpgtar.c: new options --batch, --yes, --no, --status-fd, and
822 --require-compliance.
823 (main): Init signals.
824 * tools/gpgtar-create.c: Add new header files.
825 (gpgtar_create): Rework to use a pipe for encryption and signing.
826 * tools/gpgtar-list.c: Add new header files.
827 (gpgtar_list): Rework to use a pipe for decryption.
828 * tools/gpgtar-extract.c: Add new header files.
829 (gpgtar_extract): Rework to use a pipe for decryption.
831 2022-03-19 NIIBE Yutaka <gniibe@fsij.org>
833 common: Fix another race condition, and address the other one.
834 + commit 2f1afc1296621624f34aa6a9db03ef29c741ba6c
835 * common/dotlock.c (dotlock_take_unix): Do same when same PID
836 process detects stale lockfile. Add comment.
838 gpg: Always use version >= 4 to generate signature.
839 + commit 0ba69e5581914f23f7efdd4d38b890f6def8967a
840 * g10/sign.c (update_keysig_packet): Make sure sig->version >= 4.
842 2022-03-18 Werner Koch <wk@gnupg.org>
844 gpg: Print info about the used AEAD algorithm in the compliance msg.
845 + commit 06b70daa505d3679985be47b6834f8ed7b64d6a9
846 * g10/misc.c (openpgp_cipher_algo_mode_name): New.
847 * g10/decrypt-data.c (decrypt_data): Use function here.
849 common: New function map_static_strings.
850 + commit 449d2fbcde630974628285d3405feb6ab2a812f9
851 * common/mapstrings.c (struct intmapping_s): New.
852 (map_static_strings): New.
853 * common/stringhelp.c (do_strconcat): Rename to ...
854 (vstrconcat): this and make global.
856 * common/t-mapstrings.c (test_map_static_strings): New test.
858 gpg: Allow decryption of symencr even for non-compliant cipher.
859 + commit 8631d4cfe251f9936d6cbc11b4c4623397b1aeb6
860 * g10/decrypt-data.c (decrypt_data): Add arg compliance_error. Adjust
861 all callers. Fail on compliance error only in --require-compliance
862 mode. Make sure to return an error if the buffer is missing; actually
863 that should be an assert.
864 * g10/mainproc.c (proc_encrypted): Delay printing of the compliance
865 mode status. Consult the compliance error now returned by
868 common: New flags for gnupg_spawn_process.
869 + commit 6d6438a361d25f3b269f702e017f5e39fd1f5c38
870 * common/exechelp.h (GNUPG_SPAWN_KEEP_STDIN): New.
871 (GNUPG_SPAWN_KEEP_STDOUT): New.
872 (GNUPG_SPAWN_KEEP_STDERR): New.
873 * common/exechelp-posix.c (do_exec): Add arg flags and implement new
875 * common/exechelp-w32.c (gnupg_spawn_process): Implement new flags.
877 2022-03-18 NIIBE Yutaka <gniibe@fsij.org>
879 common: Fix a race condition removing stale lockfile.
880 + commit d94b411f129f572aace005f38cd78515d810135a
881 * common/dotlock.c (read_lockfile): Return the file descriptor when
883 (dotlock_take_unix): Check the case the lockfile was already removed.
885 common: More heavy test condition for t-dotlock.c.
886 + commit a30359cecb5b8ac73906264ded617a35794a0b0a
887 * common/t-dotlock.c (lock_and_unlock): Use usleep and faster.
888 Loop at least once. Use getrandom for random time.
889 (main): Add new option --one-shot to run lock/unlock once.
891 2022-03-15 NIIBE Yutaka <gniibe@fsij.org>
893 scd: Fix DEVINFO with no --watch.
894 + commit c6dd9ff9290427504faef120bd5c1ebb78990ca0
895 * scd/app.c (app_send_devinfo): Fix for outputing once.
896 * scd/command.c (hlp_devinfo): Fix comment.
898 2022-03-10 NIIBE Yutaka <gniibe@fsij.org>
900 scd: Enhance PASSWD command to accept KEYGRIP optionally.
901 + commit 934864d399bb6091d55a15811eee7ed6e5391fb6
902 * scd/command.c (cmd_passwd): Handle KEYGRIP optionally.
904 scd: Use same idiom for same work.
905 + commit d577ed29563768221b1aedb1fb4aebe64b23f3bf
906 * scd/command.c (cmd_serialno, cmd_getattr): Use 'while' instead of
909 2022-03-09 Jakub Jelen <jjelen@redhat.com>
911 sign: Construct valid AEAD packets.
912 + commit eadf12a52c2e230174e076a0dcae68132094cefe
913 * g10/sign.c (sign_symencrypt_file): Insert correct version and AEAD
914 information into symkey packet.
916 2022-03-09 NIIBE Yutaka <gniibe@fsij.org>
918 sm: Fix parsing encrypted data.
919 + commit 6c50834c0905b55ee2da18728194dd4c93c377bf
920 * sm/minip12.c (cram_octet_string): Finish when N==0.
921 (parse_bag_encrypted_data): Support constructed data with multiple
924 2022-03-08 Werner Koch <wk@gnupg.org>
926 gpgsm: New option --require-compliance.
927 + commit f8075257afad4c7a41cd4409e334670a0097b5b8
928 * sm/gpgsm.c (oRequireCompliance): New.
929 (opts): Add --require-compliance.
931 * sm/gpgsm.h (opt): Add field require_compliance.
932 (gpgsm_errors_seen): Declare.
933 * sm/verify.c (gpgsm_verify): Emit error if non de-vs compliant.
934 * sm/encrypt.c (gpgsm_encrypt): Ditto.
935 * sm/decrypt.c (gpgsm_decrypt): Ditto.
937 gpg: New option --require-compliance.
938 + commit ee013c5350ce6a5b3d4089753cb99a44802fdfa8
939 * g10/options.h (opt): Add field flags.require_compliance.
940 * g10/gpg.c (oRequireCompliance): New.
941 (opts): Add --require-compliance.
943 * g10/mainproc.c (proc_encrypted): Emit error if non de-vs compliant.
944 (check_sig_and_print): Ditto.
945 * g10/encrypt.c (encrypt_crypt): Ditto.
947 2022-03-08 Jussi Kivilinna <jussi.kivilinna@iki.fi>
949 gpg: fix --enarmor with zero length source file.
950 + commit 49c6e583945263497064109697237701977689c3
951 * common/iobuf.c (filter_flush): Remove "src_len == 0" check.
952 * g10/compress-bz2.c (do_compress): Exit early if flush not
953 forced and input length is zero.
954 * g10/compress.c (do_compress): Likewise.
956 iobuf: add zerocopy optimization for iobuf_write.
957 + commit b96eb6f08d1df86fc8578133e0a16566c988e37d
958 * common/iobuf.c (filter_flush): Use 'iobuf->e_d' if configured.
959 (iobuf_write): Configure 'iobuf->e_d' for 'filter_flush' if
960 'iobuf->d.buf' is empty and external buffer is larger than threshold.
962 iobuf: add zerocopy optimization for iobuf_read.
963 + commit 15df88d135ba08797c2aaf1023c6c606aed49943
964 * common/iobuf.h (iobuf_struct): Add 'e_d' substructure and members.
965 * common/iobuf.c (IOBUF_ZEROCOPY_THRESHOLD): New.
966 (iobuf_alloc): Clear 'iobuf->e_d'.
967 (underflow_target): Use 'iobuf->e_d' when configured to bypass copying
968 through 'iobuf->d.buf'.
969 (iobuf_read): Configure 'iobuf->e_d' for 'underflow' if 'iobuf->d.buf'
970 is empty and external buffer is larger than threshold.
972 g10/cipher-aead: add fast path for avoid memcpy when AEAD encrypting.
973 + commit 99e2c178c73cb6b82836b056ac658d8964fa7bc9
974 * g10/cipher-aead.c (do_hash): Add faster path for encrypting directly
975 from input buffer instead of memcpying then encrypting inplace.
977 g10/decrypt-data: disable output estream buffering to reduce overhead.
978 + commit 6c95d52a22a75d0585ff6598e3ca539e21253c82
979 * g10/decrypt-data.c (decrypt_data): Disable estream buffering for
982 g10/plaintext: disable estream buffering in binary mode.
983 + commit 583b664a07b41ba6991f87a811ab933990457063
984 * g10/plaintext.c (handle_plaintext): Disable estream buffering in
987 Use iobuf buffer size for temporary buffer size.
988 + commit f2322ff942fabd55de0a1272b1fcca534e623bd1
989 * common/iobuf.c (iobuf_copy): Use iobuf buffer size for temporary
991 * g10/plaintext.c (handle_plaintext, do_hash): Likewise.
992 * g10/sign.c (sign_file): Likewise.
994 2022-03-08 Werner Koch <wk@gnupg.org>
996 gpgtar,w32: Support file names longer than MAX_PATH.
997 + commit 70b738f93f1ae6b606af701f6def55a6f0f3d04b
998 * tools/gpgtar.c: Replace assert by log_assert.
999 * tools/gpgtar-extract.c: Ditto.
1000 (extract_regular): Create files with sysopen flag.
1001 * tools/gpgtar-create.c (scan_directory): Use gpgrt_fname_to_wchar.
1003 common,w32: Support file names longer than MAX_PATH in iobuf.
1004 + commit 6afedbcd47d9a7d433cebf68bccabd47ba776e0f
1005 * common/iobuf.c (direct_open): Use gpgrt_fname_to_wchar.
1006 (any8bitchar): Remove.
1008 2022-03-04 NIIBE Yutaka <gniibe@fsij.org>
1010 common: Fix confusion of get_pk_algo_from_key.
1011 + commit 14e13fb7123ec20dcdf2180584908e3fdfcef94d
1012 * common/ssh-utils.c (ssh_public_key_in_base64): Fix the constants.
1014 scd: Fix PK_AUTH with --challenge-response option.
1015 + commit 58e6990eaabb7302cc8cc979378e6fffe36459b7
1016 * scd/app.c (app_auth): It's only APPTYPE_OPENPGP which supports
1017 the challenge response interaction.
1018 * scd/command.c (cmd_pkauth): It only wants if it works or not.
1020 2022-03-03 NIIBE Yutaka <gniibe@fsij.org>
1022 scd: Add --challenge-response option to PK_AUTH for OpenPGP card.
1023 + commit 44621120a269ba67408fe1ea067af8cbd1cbb35e
1024 * scd/app-openpgp.c (rmd160_prefix, sha1_prefix, sha224_prefix)
1025 (sha256_prefix, sha384_prefix, sha512_prefix): Move the scope up.
1026 (gen_challenge): New.
1027 (do_auth): Support challenge-response check if it signs correctly.
1028 * scd/app.c (app_auth): Remove the check INDATA and INDATALEN.
1029 * scd/command.c (cmd_pkauth): Support --challenge-response option.
1031 2022-03-02 Jussi Kivilinna <jussi.kivilinna@iki.fi>
1033 g10/encrypt: use iobuf_copy instead of manual iobuf_read/iobuf_write.
1034 + commit 756c0bd5d89bd0a773f844fbc2ec508c1a36c63d
1035 * g10/encrypt.c (encrypt_simple): Use 'iobuf_copy' for no-literal case.
1037 g10/dearmor: use iobuf_copy.
1038 + commit 9c313321a849ad5794fd90f6d5b84fee3674543c
1039 * g10/dearmor.c (dearmor_file, enarmor_file): Use 'iobuf_copy'.
1041 2022-03-02 NIIBE Yutaka <gniibe@fsij.org>
1043 scd: Let READKEY support --format=ssh option.
1044 + commit 8e650dbd48fa5fde6d8f08154e6a892d495e9227
1045 * scd/command.c (do_readkey): Support --format=ssh option.
1046 * common/ssh-utils.c (ssh_public_key_in_base64): New.
1047 * common/ssh-utils.h (ssh_public_key_in_base64): New declaration.
1049 2022-02-27 Jussi Kivilinna <jussi.kivilinna@iki.fi>
1051 g10/sign: sign_file: use iobuf_read for higher detached signing speed.
1052 + commit f8943ce098f6f193da791faf43fff823568697d9
1053 * g10/sign.c (sign_file): Use iobuf_read instead of iobuf_get for
1054 reading data from detached file.
1056 g10/plaintext: do_hash: use iobuf_read for higher performance.
1057 + commit 4e27b9defc608f1fa31ca50f1ed1d5761b73b480
1058 * g10/plaintext.c (do_hash): Use iobuf_read instead of iobuf_get for
1059 reading data; Use gcry_md_write instead of gcry_md_putc for hash data.
1061 2022-02-27 Werner Koch <wk@gnupg.org>
1063 agent: Print the correct daemon name in presence of a --foo-program.
1064 + commit f03c871c9e407d2aeff7b971f67a68b929f17b99
1065 * agent/call-daemon.c (wait_child_thread): Print the correct name.
1067 agent: New flag "qual" for the trustlist.txt.
1068 + commit 7c8c6060616ab91f5490e91a0fb9efc9aee9f58e
1069 * agent/trustlist.c (struct trustitem_s): Add flag "qual".
1070 (read_one_trustfile): Rename arg "allow_include" to "systrust" and
1071 change callers. Parse new flag "qual".
1072 (istrusted_internal): Print all flags.
1073 * sm/call-agent.c (istrusted_status_cb): Detect the "qual" flag.
1074 * sm/gpgsm.h (struct rootca_flags_s): Add flag "qualified".
1075 * sm/certchain.c (do_validate_chain): Take care of the qualified flag.
1077 dimngr: Do not check the self-signature of a root CA cert.
1078 + commit b901e63b4d8cd5214eb97acfcce0fac532ea5300
1079 * dirmngr/validate.c (validate_cert_chain): Comment out that code.
1081 dirmngr: Support ECDSA for CRLs.
1082 + commit de87c8e1ead72ea67789ffa4375f9dd3e4f9e2fa
1083 * dirmngr/crlcache.c (finish_sig_check): Support ECDSA.
1084 * dirmngr/validate.c (check_cert_sig): Ditto. Remove the never
1085 used support for DSA.
1087 dirmngr: Support ECDSA for OCSP.
1088 + commit 890e9849b58e91fb7e0ad8d3b11d19363fca2d8a
1089 * dirmngr/validate.c (pk_algo_from_sexp): Make public. Support ECC.
1090 * dirmngr/ocsp.c (check_signature): Remove hash preparation out to ...
1091 (check_signature_core): here. This changes the arg s_hash to md.
1094 2022-02-25 NIIBE Yutaka <gniibe@fsij.org>
1096 gpg: Clarify a call of ask_for_detached_datafile.
1097 + commit 335805e1d48258dc96d360f72aa92db32f3d82d3
1098 * g10/mainproc.c (proc_tree): Call ask_for_detached_datafile
1101 2022-02-22 NIIBE Yutaka <gniibe@fsij.org>
1103 gpg: Fix generating AEAD packet.
1104 + commit 903c5fe369bc4948718a7d2a0e19b1acdb2406c4
1105 * g10/cipher-aead.c (do_free): Fix the condition of the last chunk.
1107 2022-02-21 Werner Koch <wk@gnupg.org>
1109 scd,w32: Print code pages with --show-configs.
1110 + commit cff68fe35918bf944a752008feb68713b198f05e
1111 * tools/gpgconf.c (show_configs): Do it.
1113 scd:p15: Used extended mode already for RSA 2048.
1114 + commit 597253ca171a8ae9f0456323eb3aceb47fd4fde6
1115 * scd/app-p15.c (do_sign, do_decipher): Replace GT by GE.
1117 2022-02-18 NIIBE Yutaka <gniibe@fsij.org>
1119 sm: Fix use of value NONE in gnupg_isotime_t type.
1120 + commit 05fdaa1737523fad72b6ffb9e7a90d5344ff64a5
1121 * common/gettime.h (GNUPG_ISOTIME_NONE): New.
1122 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Use it.
1123 * sm/certlist.c (gpgsm_add_to_certlist): Likewise.
1124 * sm/import.c (check_and_store): Likewise.
1125 * sm/keylist.c (list_cert_colon, list_cert_raw): Likewise.
1126 (list_cert_std): Likewise.
1127 * sm/sign.c (gpgsm_sign): Likewise.
1129 2022-02-08 Jussi Kivilinna <jussi.kivilinna@iki.fi>
1131 g10/mainproc: avoid extra hash contexts when decrypting MDC input.
1132 + commit ab177eed514f7f3432d78e7e6521ad24cc0f4762
1133 * g10/mainproc.c (mainproc_context): New member
1134 'seen_pkt_encrypted_mdc'.
1135 (release_list): Clear 'seen_pkt_encrypted_mdc'.
1136 (proc_encrypted): Set 'seen_pkt_encrypted_mdc'.
1137 (have_seen_pkt_encrypted_aead): Rename to...
1138 (have_seen_pkt_encrypted_aead_or_mdc): ...this and add check for
1139 'seen_pkt_encrypted_mdc'.
1140 (proc_plaintext): Do not enable extra hash contexts when decrypting
1143 2022-02-03 Werner Koch <wk@gnupg.org>
1145 sm: New option --ignore-cert-with-oid.
1146 + commit e23dc755fa725877ce96eb5a6a6f5788457267f4
1147 * sm/gpgsm.c (oIgnoreCertWithOID): New.
1149 (main): Store its value.
1150 * sm/call-agent.c (learn_cb): Test against that list.
1152 2022-02-02 NIIBE Yutaka <gniibe@fsij.org>
1154 gpg: Fix for -Wformat when using uint64_t.
1155 + commit b2cedc108d5cabb07f496c31c11c9cba6f328f76
1156 * g10/cipher-aead.c (do_flush): Use PRIu64.
1157 * g10/decrypt-data.c (aead_underflow): Likewise.
1159 2022-02-01 Werner Koch <wk@gnupg.org>
1161 dirmngr: Avoid initial delay on the first keyserver access.
1162 + commit 57d546674d081b9a4cd5d9281ea34cb5c85d2830
1163 * dirmngr/dirmngr.c (dirmngr_never_use_tor_p): New.
1164 * dirmngr/server.c (ensure_keyserver): Don't even test for the Tor
1165 proxy in never-use-tor Mode.
1167 * tools/gpgtar-create.c: Include unistd.h to avoid a warning on
1170 sm: Partly revert last commit.
1171 + commit 623a427b0cb6fc2334e86b7c6f6133b296b0807b
1172 * sm/gpgsm.c (set_debug): Remove doubled code.
1174 gpg,sm: Set --verbose and clear --quiet in debug mode.
1175 + commit 51edea995d352a7b557fb0315fa5091dc42065cb
1176 * g10/gpg.c (set_debug): Tweak options.
1177 * sm/gpgsm.c (set_debug): Ditto.
1179 2022-01-28 Werner Koch <wk@gnupg.org>
1181 ssh: Fix adding an ed25519 key with a zero length comment.
1182 + commit 934a60de6b8892ea990c77f8bef8b2872e31a0f2
1183 * agent/command-ssh.c (sexp_key_construct): Do not put an empty string
1184 into an S-expression.
1185 (stream_read_string): Do not not try to a read a zero length block.
1187 gpg: Allow --dearmor to decode all kinds of armor files.
1188 + commit 34ea19aff99f473bbf076a60e1f306b677339093
1189 * g10/filter.h (armor_filter_context_t): New fields dearmor_mode and
1191 * g10/dearmor.c (dearmor_file): Set dearmor_mode.
1192 * g10/armor.c (is_armor_header): Magic to switch to generic dearmor
1194 (parse_header_line): Treat non OpenPGP armor in a special way.
1195 (check_input): Ditto.
1196 (radix64_read): Detect non OpenPGP armor END lines.
1198 2022-01-27 Werner Koch <wk@gnupg.org>
1200 gpgsm: Retire the new --ldapserver.
1201 + commit f2d1187fcde3290ee8133fed256a711cb0b0715c
1202 * sm/gpgsm.c (oKeyServer_deprecated): New.
1203 (opts): Assign "ldapserver" to the new option and mark it as obsolete.
1205 gpgconf: Teach --show-config the legacy gpgconf.conf.
1206 + commit ed798a97f54fd8b5a48d662b0fc9ae517d938efe
1207 * tools/gpgconf.c (show_configs): Print gpgconf.conf and a warning.
1209 gpgconf: Return again "keyserver" for gpgsm.
1210 + commit 977b61ddab0ceb5de48645a5550434441f5eeba3
1211 * tools/gpgconf-comp.c (known_options_gpgsm): Change "ldapserver" back
1214 2022-01-26 Werner Koch <wk@gnupg.org>
1216 gpgconf: Fix --list-options for forced options.
1217 + commit 8fb23094c2f520e346170fe64d8b9b2e27e8dd64
1218 * tools/gpgconf-comp.c (retrieve_options_from_program): Ignore to to
1219 ignored options. Add failsafe code to avoid calling percent_escape
1222 2022-01-25 Werner Koch <wk@gnupg.org>
1224 gpgconf: Return --ldapserver and --keyserver from dirmngr.
1225 + commit 0b4fdbd5f41e1b93a67a65617c7c382c65dfb7c6
1226 * dirmngr/dirmngr.c: Reorder two option groups.
1227 * tools/gpgconf-comp.c (known_options_gpgsm): Rename "keyserver" to
1228 "ldapserver" and set level to invisible.
1229 (known_options_dirmngr): Add "ldapserver" at the basic level.
1230 * sm/gpgsm.c (opts): No more help text for "ldapserver".
1232 2022-01-18 Werner Koch <wk@gnupg.org>
1234 gpg: Print Yubikey version correctly.
1235 + commit 38e100acb7201010d46a50e6a371603373b2a30e
1236 * g10/call-agent.c (learn_status_cb): Parse APPVERSION.
1237 * g10/call-agent.h (struct agent_card_info_s): Add field appversion.
1238 * g10/card-util.c (print_a_version): New.
1239 (current_card_status): Print version from appversion.
1241 2022-01-12 Werner Koch <wk@gnupg.org>
1243 gpgconf: Add command aliases -L -K -R.
1244 + commit ec4a1cffb865a724f36fbf9ad2de984d003fd650
1245 * tools/gpgconf.c (enum cmd_and_opt_values): Assign shortcuts.
1247 2022-01-12 NIIBE Yutaka <gniibe@fsij.org>
1249 gpg: Fix adding the list of ultimate trusted keys.
1250 + commit 4aeeaa65ad09fa72ee21c5597b1ce6255ec7dfa8
1251 * g10/keygen.c (do_generate_keypair): Remove another call to
1253 * g10/trust.c (update_ownertrust): Add call to tdb_update_utk.
1254 * g10/trustdb.c (tdb_update_utk): New.
1255 * g10/trustdb.h (tdb_update_utk): New.
1257 2022-01-11 Ingo Klöcker <dev@ingo-kloecker.de>
1259 gpg: Report failed generation of subkey pair via status interface.
1260 + commit b66854ac93d843cc8c0ade28684302a99339273d
1261 * g10/keygen.c (generate_subkeypair): On error, write error and
1262 "key not created" message to status interface.
1264 gpg: Request keygrip of key to add via command interface.
1265 + commit 19b1a28621c614b81f596e363b1ce49dd9fae115
1266 * g10/keygen.c (ask_algo): Request keygrip via cpr_get.
1267 * doc/help.txt (gpg.keygen.keygrip): New help text.
1269 2022-01-10 Werner Koch <wk@gnupg.org>
1271 dirmngr: Map all gnupg.net addresses to the Ubuntu keyserver.
1272 + commit d445e193652617a85a09289689a61111b889728f
1273 * dirmngr/server.c (make_keyserver_item): Change mapping.
1275 2022-01-09 Werner Koch <wk@gnupg.org>
1277 gpgtar: List and extract using extended headers.
1278 + commit 99a8b1f13831c9d7ebd925abf2bc34e4c86f5404
1279 * tools/gpgtar.h (TF_EXTHDR, TF_GEXTHDR): New.
1280 * tools/gpgtar-list.c (parse_header): Set the new type flags.
1281 (parse_extended_header): New.
1282 (read_header): Add arg r_extheader and parse extended header.
1283 (print_header): Consult the extended header.
1284 (gpgtar_list): Pass an extended header object.
1285 (gpgtar_read_header): Ditto.
1286 (gpgtar_print_header): Ditto.
1287 * tools/gpgtar-extract.c (extract): New arg exthdr and factor name
1289 (check_suspicious_name): new.
1290 (extract_regular): Add arg exthdr and consult it.
1291 (extract_directory): Likewise.
1292 (gpgtar_extract): Provide extheader object.
1294 gpgtar: Create extended header for long file names.
1295 + commit 3a1c556b2c3a45afb5b0113d74cd58a7c4cad19e
1296 * tools/gpgtar-create.c (global_header_count): new.
1298 (build_header): New arg r_exthdr. Detect and store long file and link
1299 names. Factor checkum computation out to ...
1300 (compute_checksum): new.
1301 (add_extended_header_record): New.
1302 (write_extended_header): New.
1303 (write_file): Write extended header.
1305 2022-01-04 NIIBE Yutaka <gniibe@fsij.org>
1307 scd,pcsc: Fix error handling for a reader with reader-port.
1308 + commit f9c9938b28b68bb5b433c2de981b9f26af64c6a9
1309 * scd/apdu.c (apdu_open_reader): Make sure dl->idx is always
1310 incremented to handle error from open_pcsc_reader correctly.
1312 2021-12-30 Werner Koch <wk@gnupg.org>
1314 gpgconf: Do not list ignored options and mark forced options as r/o.
1315 + commit 42785d7c8a524129d9fe1a5afae553ff73f8e25b
1316 * tools/gpgconf-comp.c (list_one_option): Skip ignored options and set
1317 the no_change flag for forced options.
1318 (retrieve_options_from_program): Put the attributes into the option
1321 2021-12-22 NIIBE Yutaka <gniibe@fsij.org>
1323 build: Remove unused old m4 files.
1324 + commit 85db1b1a3b16730ede231acdf83e076af99e8aa7
1325 * m4/glibc2.m4, m4/glibc21.m4: Remove.
1326 * m4/intl.m4, m4/intldir.m4, m4/lock.m4: Remove.
1327 * m4/intdiv0.m4, m4/intmax.m4, m4/inttypes-pri.m4: Remove.
1328 * m4/inttypes.m4, m4/inttypes_h.m4, m4/longdouble.m4: Remove.
1329 * m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4: Remove.
1330 * m4/stdint_h.m4, m4/sys_socket_h.m4, m4/uintmax_t.m4: Remove.
1331 * m4/visibility.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4: Remove.
1333 build: Update for newer autoconf.
1334 + commit 6b4441a7de9d7090bb3b1570a12e1e8bce0554cb
1335 * configure.ac (AC_PREREQ): Use >= 2.69.
1336 (AC_CONFIG_HEADERS): Use it, instead of AC_CONFIG_HEADER.
1337 (AC_HEADER_STDC, AC_HEADER_TIME): Remove obsolete macros.
1338 (sys/time.h): Add the check of the header.
1339 (time_t): Don't use TIME_WITH_SYS_TIME.
1340 * acinclude.m4 (AC_HEADER_TIME): Don't require.
1341 Don't use TIME_WITH_SYS_TIME.
1342 * dirmngr/dns.c: Don't use TIME_WITH_SYS_TIME.
1344 2021-12-21 NIIBE Yutaka <gniibe@fsij.org>
1346 agent: Fix comment for .po generation.
1347 + commit c3db27fa85200a6d03df8f8b96ffc848a2ec0301
1348 * agent/call-pinentry.c (setup_formatted_passphrase): Move comment to
1351 2021-12-20 Werner Koch <wk@gnupg.org>
1354 + commit f74c65fd9bbb97a24b1a3bfe73706c6fcf95ad2a
1357 gpg: Correctly set the ownertrust for a new key.
1358 + commit 610528725290961ecc4a35d79ac9e4f2e07ed24e
1359 * g10/keygen.c (do_generate_keypair): Use update_ownertrust.
1362 + commit 69195ab2550ef1e8ccf8bfe2b6972e822d27c253
1365 gpg: Add unfinished code for --export-secret-ssh-key.
1366 + commit afe5fcda52e88438c7a7278117b2e03f510a9c1c
1367 * g10/gpg.c (exportSecretSshKey): New.
1368 (opts): Add --export-secret-ssh-key.
1369 (main): Implement option.
1370 * g10/export.c (do_export_stream): Factor keywrap key code out to ...
1371 (get_keywrap_key): new.
1372 (mb_write_uint32, mb_write_uint8)
1373 (mb_write_data, mb_write_cstring)
1374 (mb_write_string, mb_write_mpi): New.
1375 (receive_raw_seckey_from_agent): New.
1376 (export_secret_ssh_key): New.
1378 gpg: Allow passing a keygrip as description to pinentry.
1379 + commit ace15e1b09dc9fc83d71faeeb7805802ed5bcc82
1380 * g10/keydb.h (FORMAT_KEYDESC_KEYGRIP): New.
1381 * g10/passphrase.c (gpg_format_keydesc): Add new mode.
1383 common: Add set_membuf_err.
1384 + commit da391022160804785dad7d53b464e0448ab8aba0
1385 * common/membuf.c (set_membuf_err): New.
1387 wkd: Don't beg for donations.
1388 + commit 038136ea48ae8963dd89c7e1999d640a112dd791
1389 * tools/gpg-wks-server.c (send_congratulation_message): Remove
1390 donation hint from message.
1392 2021-12-20 Ingo Klöcker <dev@ingo-kloecker.de>
1394 dirmngr: Ask keyservers to provide the key fingerprints.
1395 + commit c7fa4c7f8bf375e3739ef8361f38b6b31113b8bf
1396 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Add "fingerprint=on" to
1399 2021-12-17 NIIBE Yutaka <gniibe@fsij.org>
1401 dirmngr: Fix ldap-url.c.
1402 + commit a9b95b20a8c358d9f8743acfa1076c3be4ff0ac1
1403 * dirmngr/ldap-url.c (ldap_charray2str): Use memcpy instead of strncpy
1404 when length is computed by strlen beforhand.
1406 w32: Prepare for the case gcrypt.h will not include winsock2.h.
1407 + commit e08225030dfb2090e756d26575f38c371e5a81cf
1408 * common/dynload.h: Include specific headers only.
1409 * common/exechelp-w32.c: Include <windows.h>.
1410 * common/gettime.c: Likewise.
1411 * common/utf8conv.c: Likewise.
1412 * tests/gpgscm/ffi.c: Likewise.
1413 * tools/gpgconf.c: Likewise.
1414 * configure.ac: Check winsock2.h, removing gl_HEADER_SYS_SOCKET.
1416 2021-12-10 NIIBE Yutaka <gniibe@fsij.org>
1418 gpg: Emit compatible Ed25519 signature.
1419 + commit 61ac580a2075564bc775b6764a239dad5e336251
1420 * g10/pkglue.c (sexp_extract_param_sos_nlz): New.
1421 * g10/pkglue.h: Add the declaration.
1422 * g10/sign.c (do_sign): Use sexp_extract_param_sos_nlz for Ed25519.
1424 2021-11-24 Jakub Jelen <jjelen@redhat.com>
1426 gpg: Fix function prototype to match declaration.
1427 + commit 426d82fcf1c133bfc1d5c931109d71db3f3815a9
1428 * g10/test-stubs.c (keyserver_import_mbox): Fix prototype
1430 kbx: Fix allocation check.
1431 + commit 46efee8cb7009b0a0c04b42822d4579424c536e1
1432 * kbx/kbxserver.c (cmd_search): Fix allocation check
1434 homedir: Avoid memory leaks on errors.
1435 + commit 6ee3eb420207c51bc4f2e6aa0871bc8c51f977f0
1436 * common/homedir.c (unix_rootdir): Free allocated memory on error path
1438 dirmngr: Avoid memory leaks on errors.
1439 + commit 940af3f05231dd85138fd3415c7bb7a974bec950
1440 * dirmngr/ldap-misc.c (ldap_parse_extfilter): Avoid direct return
1441 without freeing resources on errors.
1443 2021-11-24 NIIBE Yutaka <gniibe@fsij.org>
1445 gpg: Fix format_keyid.
1446 + commit a9be9f4e6e6d451698afa3d4780a53ed3718b30b
1447 * g10/keyid.c (format_keyid): Allocate buffer earlier.
1449 gpg: Fix key conversion for SSH.
1450 + commit 07671917e476ad5ae8f5098630ef1cd531ff401a
1451 * g10/export.c (key_to_sshblob): Use put_membuf with length counted
1452 beforehand, and use memcmp instead of strncmp.
1454 2021-11-22 Werner Koch <wk@gnupg.org>
1456 gpg: New option --forbid-gen-key.
1457 + commit c397ba3ac02e38b428d3e13d0bebac2a99b81f01
1458 * g10/gpg.c (oForbidGenKey, opts): New option.
1459 (mopt): New local struct
1460 (gen_key_forbidden): New.
1461 (main): Set and handle the option.
1463 2021-11-19 Werner Koch <wk@gnupg.org>
1465 gpgconf: Include output of --list-dirs in --show-configs.
1466 + commit a0fb78ee0fba13fdbe22d8c3f408a78b847cee28
1467 * tools/gpgconf.c (list_dirs): Add arg special.
1468 (show_other_registry_entries): Print the Homedir.
1469 (show_configs): List directories.
1471 2021-11-18 Werner Koch <wk@gnupg.org>
1473 gpg,gpgsm: Add option --min-rsa-length.
1474 + commit 5f39db70c069a95731a8a1f65547e3314d6b1f85
1475 * common/compliance.c (min_compliant_rsa_length): New.
1476 (gnupg_pk_is_compliant): Take in account.
1477 (gnupg_pk_is_allowed): Ditto.
1478 (gnupg_set_compliance_extra_info): New.
1479 * g10/gpg.c (oMinRSALength): New.
1480 (opts): Add --min-rsa-length.
1482 * g10/options.h (opt): Add field min_rsa_length.
1483 * sm/gpgsm.c (oMinRSALength): New.
1484 (opts): Add --min-rsa-length.
1486 * sm/gpgsm.h (opt): Add field min_rsa_length.
1488 2021-11-17 Werner Koch <wk@gnupg.org>
1490 gpgconf: --show-configs now prints a bunch of Registry entries.
1491 + commit 749bb80cb7685c12f3c65796559990952758f294
1492 * tools/gpgconf.c (show_other_registry_entries): New.
1493 (show_configs): Call it. Minor reformatting.
1495 gpgconf: Extend --show-config to show envvars.
1496 + commit 9172fbc08473afa2c295f7c77a8ae78efd4f77b7
1497 * tools/gpgconf.c (my_copy_file): Add arg LISTP and record certain
1499 (show_configs_one_file): New arg LISTP to be passed thru.
1500 (show_configs): Show envars and regisiry values.
1502 common,w32: New function read_w32_reg_string.
1503 + commit 50539394802fb9478296d52527582697a6693b52
1504 * common/w32-reg.c (get_root_key): Remove.
1505 (read_w32_registry_string): Turn into a wrapper for the gpgrt
1507 (read_w32_reg_string): New.
1509 2021-11-15 Werner Koch <wk@gnupg.org>
1511 sm: Detect circular chains in --list-chain.
1512 + commit 74c5b350624b5636706bc39605857f10762371b1
1513 * sm/keylist.c (list_cert_chain): Break loop for a too long chain.
1515 2021-11-15 NIIBE Yutaka <gniibe@fsij.org>
1518 scd:openpgp: Support longer data for INTERNAL_AUTHENTICATE.
1519 + commit a575b0aba5424ed76b1067218beab748b56bde43
1520 * scd/app-openpgp.c (do_auth): Use extended Lc, when supported.
1522 2021-11-14 Werner Koch <wk@gnupg.org>
1524 agent: Print the non-option warning earlier.
1525 + commit bd5c775878fdfc151a3d996b335ea22d5247c963
1526 * agent/gpg-agent.c (main): Move detection up.
1528 2021-11-13 Werner Koch <wk@gnupg.org>
1530 gpg: Remove stale ultimately trusted keys from the trustdb.
1531 + commit 99ef78aa0ca7e48ceba400e1a43f8185cf9bbf71
1532 * g10/tdbdump.c (export_ownertrust): Skip records marked with the
1533 option --trusted-key.
1534 (import_ownertrust): Clear the trusted-key flag.
1535 * g10/tdbio.h (struct trust_record): Add field flags.
1536 * g10/tdbio.c (tdbio_dump_record): Improve output.
1537 (tdbio_read_record, tdbio_write_record): Handle flags.
1538 * g10/trustdb.c (verify_own_keys): Clear stale trusted-keys and set
1539 the flag for new --trusted-keys.
1540 (tdb_update_ownertrust): Add arg as_trusted_key. Update callers.
1542 keyboxd: New option --steal-socket.
1543 + commit b0079ab39d31c74673e576149c7ac66d00c45c49
1544 * kbx/keyboxd.c (oStealSocket): New const.
1546 (steal_socket): New file global flag.
1548 (create_server_socket): Implement option.
1550 agent,dirmngr: New option --steal-socket.
1551 + commit dd708f60d5cf571bd4f0312c1b291ec93c328047
1552 * agent/gpg-agent.c (oStealSocket): New.
1554 (steal_socket): New file global var.
1556 (create_server_socket): Implement option.
1558 * dirmngr/dirmngr.c (oStealSocket): New.
1560 (steal_socket): New file global var.
1561 (main): Set option. Add comment to eventually implement it.
1563 2021-11-12 NIIBE Yutaka <gniibe@fsij.org>
1565 gpg: Don't use malloc for kek_params.
1566 + commit b124bca592e15dcf41b621be517bc4af9e1e9d4d
1567 * g10/ecdh.c (pk_ecdh_default_params): Use stack for kek_params.
1569 2021-11-12 Jakub Jelen <jjelen@redhat.com>
1570 NIIBE Yutaka <gniibe@fsij.org>
1572 kbx: Avoid use of uninitialized value.
1573 + commit fae1d2e2ccde6cb46974433cf769c83134b0f57d
1574 * kbx/backend-kbx.c (be_kbx_search): Initialize skipped_long_blobs
1575 value which is passed to keybox_search and incremented there.
1576 (be_kbx_seek): Likewise.
1578 2021-11-12 Jakub Jelen <jjelen@redhat.com>
1580 gpg: Avoid uninitialized revkey.fprlen.
1581 + commit d24c5df52b55e86b49b48f153a1ada5a5081eda5
1582 * g10/keygen.c (parse_revocation_key): Store the fingerprint length in
1585 2021-11-12 Jakub Jelen <jjelen@redhat.com>
1586 NIIBE Yutaka <gniibe@fsij.org>
1588 agent: Avoid uninitialized buffer.
1589 + commit ae3d0bb8e77ce1b2a096fff7d783c781c9f7a502
1590 * agent/sexp-secret.c (fixup_when_ecc_private_key): Initialize buffer to
1591 avoid its use on unexpected inputs.
1593 2021-11-12 Jakub Jelen <jjelen@redhat.com>
1595 agent: Correctly free memory on error path.
1596 + commit 50f32eb0664d921242563f6602ce5a8f46557085
1597 * agent/protect.c (merge_lists): Free memory on error.
1599 scd: Avoid memory leak.
1600 + commit c0b1bcc5c6b5558c9f1f665797979134ade66fd7
1601 * scd/command.c (cmd_readkey): Free allocated memory on failure path.
1603 tools: Avoid memory leak from gpgspilt.
1604 + commit 50e6d63f12e700658f094bf1ff2fd25861690240
1605 * tools/gpgsplit.c (write_part): Free memory when no longer needed.
1607 2021-11-09 Bernhard M. Wiedemann <bwiedemann@suse.de>
1609 wks: Do not mark key files as executable.
1610 + commit 0c8bc154342bf54f7e6cce2075ee8e851dfd09b5
1613 wks: Allow access to newly created dirs.
1614 + commit 60be00b0336bebc319d3e444841526be87dfe3bc
1617 2021-11-04 Werner Koch <wk@gnupg.org>
1619 gpg: Fix indentation of --print-mds and --print-md sha512.
1620 + commit d9deac7791904634848a4c178585f37205641124
1621 * g10/gpg.c (print_hex): Fix indentation.
1623 gpgconf: New command --show-configs.
1624 + commit fa738173f9d8aa1ddd6b5e665d2f035dae2c0b1f
1625 * tools/gpgconf.c (aShowConfigs): New.
1626 (opts): Add --show-configs.
1628 (show_version_gnupg): Add arg "prefix" and adjust caller.
1629 (my_copy_file): New.
1630 (show_configs_one_file): New.New.
1631 (show_configs): New.
1632 (main): Call show_configs.
1634 2021-11-03 Ingo Klöcker <dev@ingo-kloecker.de>
1636 gpgconf: Allow changing gpg's deprecated keyserver option.
1637 + commit 0a7d772a5c43eddad6fb3238614b8af722453919
1638 * tools/gpgconf-comp.c (known_options_gpg): Add "keyserver".
1640 2021-11-02 NIIBE Yutaka <gniibe@fsij.org>
1642 scd: Simplify the loop of DEVINFO.
1643 + commit 49f7fcb90b5d4f33b9b65baec8774745aa2242c9
1644 * scd/app.c (app_send_devinfo): Factor out lock/unlock.
1646 2021-10-29 NIIBE Yutaka <gniibe@fsij.org>
1648 scd: Fix the previous commit.
1649 + commit 99e00ec6db33ce86b92106307d637769e0914833
1652 scd: Modify DEVINFO behavior to support looping forever.
1653 + commit 48e824b6ea69d21ccbc50aac125d8b442af66727
1654 * scd/app.c (struct mrsw_lock): Add notify_cond member.
1655 (notify_cond): Remove.
1656 (card_list_r_lock, card_list_r_unlock): Rename.
1657 (card_list_w_lock, card_list_w_unlock): Rename.
1658 (card_list_signal, card_list_wait): New, fixing thinko about
1659 notify/wakeup with MRSW lock.
1660 (app_send_devinfo): Support looping.
1661 (select_application): Notify app_send_devinfo thread for newly
1663 (initialize_module_command): Initialize notify_cond member.
1665 * scd/command.c (cmd_devinfo): Use new API of app_send_devinfo.
1666 * scd/scdaemon.h (app_wait): Remove.
1668 2021-10-27 Werner Koch <wk@gnupg.org>
1670 common: Support MYPROC_SELF_EXE for Solaris.
1671 + commit 50e43af3f1081ba3fe677b1030c5c62063461665
1672 * common/homedir.c (MYPROC_SELF_EXE): Add case for SunOS.
1674 2021-10-22 Werner Koch <wk@gnupg.org>
1676 gpg: Fix printing of binary notations.
1677 + commit 62f838ea1fcad1c008c783946559b607cae37674
1678 * g10/keylist.c (show_notation): Print binary notation from BDAT.
1680 2021-10-20 Werner Koch <wk@gnupg.org>
1682 common: Silence warning from unix_rootdir on systems w/o /proc.
1683 + commit 4cb44914b57a8db9d2f0d24e11d2b5e6fedc0a87
1684 * common/homedir.c (unix_rootdir): Silence diagnostic in the common
1686 (MYPROC_SELF_EXE): Support NetBSD.
1688 common,w32: Do not always print "Garbled console data" warning.
1689 + commit e293da3b214958ff86e7636d17b0b6e10264882e
1690 * common/init.c (_init_common_subsystems): Silence message.
1692 2021-10-15 NIIBE Yutaka <gniibe@fsij.org>
1694 dns: Make reading resolv.conf more robust.
1695 + commit 48359c723206254d3a22f08eb537a6acc2f04e01
1696 * dirmngr/dns.c (dns_resconf_loadfile): Skip "search" which
1699 2021-10-13 Werner Koch <wk@gnupg.org>
1701 gpg: New option --override-compliance-check.
1702 + commit fb26e144adfd93051501d58f5d0d4f8826ddf436
1703 * g10/gpg.c (oOverrideComplianceCheck): New.
1704 (opts): Add new option.
1705 (main): Set option and add check for batch mode.
1706 * g10/options.h (opt): Add flags.override_compliance_check.
1708 * g10/sig-check.c (check_signature2): Factor complaince checking out
1710 (check_key_verify_compliance): this. Turn error into a warning in
1713 2021-10-12 Werner Koch <wk@gnupg.org>
1716 + commit 9470d0338364b781d701ad8e81972c782b48aa2d
1719 speedo: Put the keyboxd into the Windows installer.
1720 + commit 10f52f9bf3bcc6cf29835c2f11ea91ab0d5e7cdc
1721 * build-aux/speedo/w32/inst.nsi: Install keyboxd.
1722 * Makefile.am (sign-release): Sign the wixlib only if generated.
1723 * autogen.rc: Remove meanwhile obsolete option --with-regex.
1725 tests: New way to make use of gpgconf.ctl in tests.
1726 + commit bcd5feec0e916b864d004a47f36a41e2eba3b10e
1727 * Makefile.am (all-local): New to setup symlinks.
1728 (distclean-local): New.
1729 * tests/Makefile.am: Remove the gpgconf related targets. Just keep
1730 gpgconf.ctl.in in EXTRA_DIST
1731 * tests/cms/Makefile.am (GNUPG_BUILD_ROOT):
1732 * tests/gpgme/Makefile.am (GPGSCM_PATH):
1733 * tests/openpgp/Makefile.am (GNUPG_BUILD_ROOT):
1734 * tests/pkits/Makefile.am (GNUPG_BUILD_ROOT):
1735 * tests/tpm2dtests/defs.scm (tools): Revert to the former values.
1736 * tests/openpgp/defs.scm (tools): Ditto.
1738 2021-10-10 Werner Koch <wk@gnupg.org>
1740 Do not build keyxboxd if sqlite has been disabled.
1741 + commit cf29c7dec0e845040a71aac383ee9f1dda901590
1742 * configure.ac: Move clearing of build_keyboxd out of the conditional.
1744 2021-10-06 Ingo Klöcker <dev@ingo-kloecker.de>
1746 common: Respect gpgconf.ctl when looking up translations.
1747 + commit e99b9890c28dae491653279791e52771be866188
1748 * common/i18n.c (i18n_init): Use gnupg_localedir() instead of LOCALEDIR.
1749 (i18n_localegettext): Ditto.
1750 * tools/gpgconf-comp.c (my_dgettext): Ditto.
1752 2021-10-06 Werner Koch <wk@gnupg.org>
1754 dirmngr: New option --ignore-cert.
1755 + commit 4b3e9a44b58e74b3eb4a59f88ee017fe7483a17d
1756 * dirmngr/dirmngr.h (struct fingerprint_list_s): Add field binlen.
1757 (opt): Add field ignored_certs.
1758 * dirmngr/dirmngr.c: Add option --ignore-cert
1759 (parse_rereadable_options): Handle that option.
1760 (parse_ocsp_signer): Rename to ...
1761 (parse_fingerprint_item): this and add two args.
1762 * dirmngr/certcache.c (put_cert): Ignore all to be igored certs.
1763 Change callers to handle the new error return.
1765 dirmngr: Fix Let's Encrypt certificate chain validation.
1766 + commit 68799378859739887549108bf765568ccbc328bc
1767 * dirmngr/certcache.c (find_cert_bysubject): Return the first trusted
1768 certififcate if any.
1770 2021-10-05 NIIBE Yutaka <gniibe@fsij.org>
1772 agent,dirmngr,kbx,scd,tpm2d: Use gnupg_sleep.
1773 + commit 3918fa1a9488d56040d43e4af1254f9564266513
1774 * agent/findkey.c (unprotect): Use gnupg_sleep.
1775 * agent/gpg-agent.c (handle_connections): Likewise.
1776 * dirmngr/crlfetch.c (handle_connections): Likewise.
1777 * kbx/keyboxd.c (handle_connections): Likewise.
1778 * tpm2d/tpm3daemon.c (handle_connections): Likewise.
1779 * scd/scdaemon.c (handle_connections): Likewise.
1780 * scd/command.c (cmd_lock): Likewise.
1781 * dirmngr/ldap-wrapper.c (ldap_reaper_thread): Likewise.
1782 (ldap_wrapper_wait_connections): Use gnupg_usleep.
1784 agent: Fix calibrate_get_time use of clock_gettime.
1785 + commit eeb25df6f8fc1e3cf18ec5578445f8fc281e41bc
1786 * agent/protect.c (USE_CLOCK_GETTIME): New macro.
1787 (calibrate_get_time): Only use clock_gettime if USE_CLOCK_GETTIME.
1789 2021-10-01 Werner Koch <wk@gnupg.org>
1791 tests: Use the new gpgconf.ctl based method.
1792 + commit 84fcd8e6eb7e0786399e1f6461c3f60b0db2d070
1793 * tests/openpgp/defs.scm: We expect that stuff is now installed.
1794 (tools): Fix the names.
1795 (intsalled?, bin-prefix): Remove.
1796 (tool-hardcoded): Simplify.
1797 (gpg-conf'): Simplify.
1798 (GNUPG_BUILDDIR): Do not anymore set this envvar.
1799 * tests/tpm2dtests/defs.scm: Ditto.
1801 build: Prepare for using installed versions for tests.
1802 + commit 399ebf6d873d4178c1d527aa4df34bf16a76360e
1803 * tests/gpgconf.ctl.in: New.
1804 * tests/Makefile.am (EXTRA_DIST): Add new file.
1805 (TESTINST_DIRS): New.
1807 (clean-local-testinst): New.
1808 (check-recursive): New hook.
1809 (bin/gpgconf.ctl): Run a test install.
1810 * tests/cms/Makefile.am (TESTS_ENVIRONMENT): Set new envvar
1812 * tests/gpgme/Makefile.am (TESTS_ENVIRONMENT): Ditto.
1813 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Ditto.
1814 * tests/pkits/Makefile.am (TESTS_ENVIRONMENT): Ditto.
1815 * tests/tpm2dtests/Makefile.am (TESTS_ENVIRONMENT): Ditto.
1817 common: Support gpgconf.ctl also for BSDs.
1818 + commit dbe1b237a6525585b36ed84c8634d6436dddaad1
1819 * common/homedir.c (MYPROC_SELF_EXE): New.
1820 (unix_rootdir): Use it here. Also support GNUPG_BUILD_ROOT as
1823 common: Add keyword sysconfdir to the optional gpgconf.ctl file.
1824 + commit ec847cf17fa85b8684e88ccf04c6d4c75d59c3ba
1825 * common/homedir.c (unix_rootdir): Add arg want_sysconfdir.
1826 (gnupg_sysconfdir): Return it.
1828 2021-09-30 NIIBE Yutaka <gniibe@fsij.org>
1830 kbx: Let it include keybox.h to avoid multiple typedefs.
1831 + commit ca54d3f148933baac1f0243f76e4961abca285b1
1832 * kbx/backend.h: Include keybox.h.
1834 2021-09-29 NIIBE Yutaka <gniibe@fsij.org>
1836 gpg: Handle backsig for v5 signature.
1837 + commit dd2e092339627c03cd0f506f3ef1be3e98d5ff83
1838 * g10/getkey.c (merge_selfsigs_subkey): Check v5 signature correctly.
1840 gpg: Ed448 and X448 are only for v5 (for subkey).
1841 + commit 86cb04a23d2b0849cf684238d6d704aa45293214
1842 * g10/keygen.c (generate_subkeypair): Specify
1843 KEYGEN_FLAG_CREATE_V5_KEY for Ed448 or X448 key.
1845 2021-09-28 NIIBE Yutaka <gniibe@fsij.org>
1847 kbx: A 20 byte fingerprint is right filled in version 2 blob.
1848 + commit 08a3a4db27dcc3d50038cf5bdba94a6f0b548b01
1849 * kbx/keybox-blob.c (create_blob_header): Fix creating FPR20 key
1850 in blob with 32-byte fingerprint.
1852 gpg: Skip the packet when not used for AEAD.
1853 + commit cc6152b802f2ab0ceaf3abb20caef6f7d806ffa3
1854 * g10/free-packet.c (free_packet): Add the case for case
1857 2021-09-20 Ingo Klöcker <dev@ingo-kloecker.de>
1859 build: Fix several "include file not found" problems.
1860 + commit e2069d563283ab295858d33a250f229aab240f75
1861 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add KSBA_CFLAGS.
1862 * kbx/Makefile.am (libkeybox_a_CFLAGS, libkeybox509_a_CFLAGS): Add
1864 * tools/Makefile.am (gpgtar_CFLAGS, gpg_wks_server_CFLAGS,
1865 gpg_wks_client_CFLAGS, gpg_pair_tool_CFLAGS): Add LIBGCRYPT_CFLAGS.
1867 2021-09-20 giomba <giomba@linux.it>
1869 po: Fixed Italian translation for key expiration.
1870 + commit 548ff0398353c106f4e361a46818cd1716b825b8
1871 * po/it.po: Fix italian translation.
1873 2021-09-17 Werner Koch <wk@gnupg.org>
1875 common: Support a gpgconf.ctl file under Unix.
1876 + commit d4768bb982adb5c8410303334ee8d82ba0d71f3b
1877 * common/homedir.c (unix_rootdir): New.
1878 (gnupg_bindir): Use it.
1879 (gnupg_libexecdir): Use it.
1880 (gnupg_libdir): Use it.
1881 (gnupg_datadir): Use it.
1882 (gnupg_localedir): Use it.
1884 common: New function substitute_envvars.
1885 + commit 9c272dc245456d5403e3bd50553b4fdccb370e27
1886 * common/stringhelp.c (substitute_envvars): New. Based on code in
1888 * common/t-stringhelp.c: Include sysutils.h.
1889 (test_substitute_envvars): New.
1891 2021-09-14 Werner Koch <wk@gnupg.org>
1893 gpg: Print a warning when importing a bad cv25519 secret key.
1894 + commit dbfb7f809b89cfe05bdacafdb91a2d485b9fe2e0
1895 * g10/import.c (transfer_secret_keys): Add simple check.
1897 2021-09-13 Werner Koch <wk@gnupg.org>
1899 common: New envvar GNUPG_EXEC_DEBUG_FLAGS.
1900 + commit f2b01025c3da97068b699c1f51309e18730a4bdb
1901 * common/exechelp-w32.c (gnupg_spawn_process_detached): Silence
1902 breakaway messages and turn them again into debug messages.
1904 2021-09-09 Werner Koch <wk@gnupg.org>
1906 sm: Add LotW support to the key listing.
1907 + commit 255d4d5815d00f8d1b45d93cc617c49d375e891b
1908 * sm/certdump.c (parse_dn_part): Translate OID to "Callsign"
1909 * sm/keylist.c (oidtranstbl): Some more OIDs.
1911 2021-09-08 Ingo Klöcker <dev@ingo-kloecker.de>
1913 build: Fix "ksba.h not found" problem.
1914 + commit 08f227052fa3cc7089829a3b2ab8c4dda990b05b
1915 * sm/Makefile.am (t_minip12_CFLAGS): Add KSBA_CFLAGS.
1917 2021-09-07 Werner Koch <wk@gnupg.org>
1919 agent: Fix segv in GET_PASSPHRASE (regression)
1920 + commit af3b1901549baa8fbe8140d9fa75a4a2b7a77a7e
1921 * agent/command.c (cmd_get_passphrase): Do not deref PI. PI is always
1924 2021-08-27 NIIBE Yutaka <gniibe@fsij.org>
1926 kbx: Fix checksum computation for no UBID entry on disk.
1927 + commit 0b64c27446c6f17f9c108e0fa95639db12d376ff
1928 * kbx/keybox-blob.c (create_blob_header): Fix the flag to match no
1930 (create_blob_finish): Fix the length of data to be hashed.
1932 common: Fix put_membuf.
1933 + commit f271c6916469c0054c143adb4cee0588866a2a61
1934 * common/membuf.c (put_membuf): Allow NULL for the second arg.
1936 2021-08-26 NIIBE Yutaka <gniibe@fsij.org>
1938 common: Fix get_signal_name for GNU/Linux.
1939 + commit c4ba712736ddeda66055567874d573e79d22666b
1940 * common/signal.c (get_signal_name): Use sigdescr_np if available.
1941 * configure.ac: Check the function.
1943 2021-08-24 Werner Koch <wk@gnupg.org>
1946 + commit 3bf8d7e1b7e0482f698b54a6975bdd9aa354244e
1949 dirmngr: Change the default keyserver.
1950 + commit 55b5928099bafbd5409d3377a42259c11e394cd0
1951 * configure.ac (DIRMNGR_DEFAULT_KEYSERVER): Change to
1952 keyserver.ubuntu.com.
1954 * dirmngr/certcache.c (cert_cache_init): Disable default pool cert.
1955 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
1956 * dirmngr/http.c (http_session_new): Ditto.
1958 * dirmngr/server.c (make_keyserver_item): Use a different mapping for
1959 the gnupg.net names.
1961 2021-08-24 NIIBE Yutaka <gniibe@fsij.org>
1963 gpg: Report the status of NO_SECKEY for decryption.
1964 + commit 3ed5f566fc057975d0158bb637c72bd118aba7f8
1965 * g10/mainproc.c (proc_encrypted): Fix the condition to report
1966 NO_SECKEY even when the key was not considered by get_session_key.
1968 2021-08-20 Werner Koch <wk@gnupg.org>
1970 wkd: Properly unescape the user-id from a key listing.
1971 + commit 87d238de3d9d537cacc9dd3c6d954845203ea2cb
1972 * tools/wks-util.c (append_to_uidinfo_list): Unescape UID.
1974 wkd: Fix client issue with leading or trailing spaces in user-ids.
1975 + commit b4345f7521cb4c3f4af7894f5d6d840fda85e82f
1976 * common/recsel.c (recsel_parse_expr): Add flag -t.
1977 * common/stringhelp.c: Remove assert.h.
1978 (strtokenize): Factor code out to do_strtokenize.
1979 (strtokenize_nt): New.
1980 (do_strtokenize): Add arg trim to support the strtokenize_nt.
1981 * common/t-stringhelp.c (test_strtokenize_nt): New test cases.
1983 * tools/wks-util.c (wks_list_key): Use strtokenize_nt and the recsel
1986 2021-08-20 NIIBE Yutaka <gniibe@fsij.org>
1988 scd: Don't release the context until list_finish for PC/SC.
1989 + commit 1565baa93ae39a81c5b00ca4558cd24838b4ce54
1990 * scd/apdu.c (apdu_dev_list_start): Increment PCSC.COUNT here.
1991 (apdu_dev_list_finish): Decrement PCSC.COUNT.
1993 2021-08-19 Werner Koch <wk@gnupg.org>
1995 gpg: Return SUCCESS/FAILURE status also for --card-edit/name.
1996 + commit c1a23c3664753656bd4d22aafe0fb89d9bac5147
1997 * g10/card-util.c (change_name): Call write_sc_op_status.
1999 2021-08-18 Werner Koch <wk@gnupg.org>
2001 agent: Use the sysconfdir for a pattern file.
2002 + commit 661c2ae96699e135294cfd98e1fbc385d35f5f0e
2003 * agent/genkey.c (do_check_passphrase_pattern): Use make_filename.
2005 agent: Ignore passphrase constraints for a generated passphrase.
2006 + commit b89b1f35c29ceaebe39b31444936aa66c9297f2c
2007 * agent/agent.h (PINENTRY_STATUS_PASSWORD_GENERATED): New.
2008 (MAX_GENPIN_TRIES): Remove.
2009 * agent/call-pinentry.c (struct entry_parm_s):
2010 (struct inq_cb_parm_s): Add genpinhash and genpinhas_valid.
2011 (is_generated_pin): New.
2012 (inq_cb): Suppress constraints checking for a generated passphrase.
2013 No more need for several tries to generate the passphrase.
2014 (do_getpin): Store a generated passphrase/pin in the status field.
2015 (agent_askpin): Suppress constraints checking for a generated
2017 (agent_get_passphrase): Ditto.
2018 * agent/command.c (cmd_get_passphrase): Ditto.
2020 agent: Improve the GENPIN callback.
2021 + commit 8ed79103474c17d8dce20c740fc9813ada5f79ac
2022 * agent/call-pinentry.c (DEFAULT_GENPIN_BYTES): Replace by ...
2023 (DEFAULT_GENPIN_BITS): this and increase to 150.
2024 (generate_pin): Make sure that we use at least 128 bits.
2026 agent: Fix for zero length help string in pinentry hints.
2027 + commit 9fb646660258c2842edd6662688eafbc8d751ba7
2028 * agent/call-pinentry.c: Remove unused assert.h.
2029 (inq_cb): Fix use use of assuan_end_confidential in case of nested
2032 (setup_formatted_passphrase): Escape the help string.
2033 (setup_enforced_constraints): Ignore empty help strings.
2035 common,w32: Replace log_debug by log_info for InProcessJobs.
2036 + commit 629f4a5cffb737454aaf6a5965cfb6d7b03796fc
2037 * common/exechelp-w32.c (gnupg_spawn_process_detached): Use log_info.
2039 2021-08-13 Werner Koch <wk@gnupg.org>
2041 agent: Make QT_QPA_PLATFORMTHEME=qt5ct work for the pient.
2042 + commit 1305baf0994059f458b1d5ca28a355c12932fab3
2043 * agent/call-pinentry.c (atfork_core): Pass DISPLAY.
2045 agent: New option --check-sym-passphrase-pattern.
2046 + commit 7c45a69eb988e9c0329d75900af0c5b1e47291b7
2047 * agent/gpg-agent.c (oCheckSymPassphrasePattern): New.
2048 (opts): Add --check-sym-passphrase-pattern.
2049 (parse_rereadable_options): Set option.
2050 (main): Return option info.
2051 * tools/gpgconf-comp.c: Add new option.
2052 * agent/agent.h (opt): Add var check_sym_passphrase_pattern.
2053 (struct pin_entry_info_s): Add var constraints_flags.
2054 (CHECK_CONSTRAINTS_NOT_EMPTY): New to replace a hardwired 1.
2055 (CHECK_CONSTRAINTS_NEW_SYMKEY): New.
2056 * agent/genkey.c (check_passphrase_pattern): Rename to ...
2057 (do_check_passphrase_pattern): this to make code reading
2058 easier. Handle the --check-sym-passphrase-pattern option.
2059 (check_passphrase_constraints): Replace arg no_empty by a generic
2060 flags arg. Also handle --check-sym-passphrase-pattern here.
2061 * agent/command.c (cmd_get_passphrase): In --newsymkey mode pass
2062 CHECK_CONSTRAINTS_NEW_SYMKEY flag.
2063 * agent/call-pinentry.c (struct entry_parm_s): Add constraints_flags.
2064 (struct inq_cb_parm_s): New.
2065 (inq_cb): Use new struct for parameter passing. Pass flags to teh
2066 constraints checking.
2067 (do_getpin): Pass constraints flag down.
2068 (agent_askpin): Take constrainst flag from the supplied pinentry
2071 2021-08-12 Ingo Klöcker <dev@ingo-kloecker.de>
2073 agent: Make --pinentry-formatted-passphrase a simple flag.
2074 + commit 99601778f4a9dc1c9fee792361c959f5e0732cfd
2075 * agent/agent.h (opt): Change type of pinentry_formatted_passphrase
2076 to int (as for other flags).
2077 * agent/call-pinentry.c (setup_formatted_passphrase): Remove no longer
2078 needed translated strings. Write option without value to Assuan
2080 * agent/gpg-agent.c (opts): Use ARGPARSE_s_n for
2081 oPinentryFormattedPassphrase.
2082 (parse_rereadable_options): Set option to 1.
2084 2021-08-11 Werner Koch <wk@gnupg.org>
2086 w32: Move socketdir to LCOAL_APPDATA.
2087 + commit 0802cbb59b21e06e16b4fd8596934c5565e7f659
2088 * common/homedir.c (is_gnupg_default_homedir): Use standard_homedir
2089 instead of the constant which makes a difference on Windows.
2090 (_gnupg_socketdir_internal) [W32]: Move the directory to LOCAL_APPDATA.
2091 (gnupg_cachedir): Remove unsued function.
2093 * common/sysutils.c (gnupg_rmdir): New.
2094 * tools/gpgconf.c (main): s/rmdir/gnupg_rmdir/.
2096 gpgconf,w32: Print more registry diagnostics with --list-dirs.
2097 + commit 4cc534020669fa038f6a2107a55fe3b42fc065dc
2098 * tools/gpgconf.c (list_dirs): Figure out classes with the key.
2100 2021-08-10 Ingo Klöcker <dev@ingo-kloecker.de>
2102 agent: Add checkpin inquiry for pinentry.
2103 + commit 5976d293ef9bd953b6e9c61a45ad1f4e85a2743c
2104 * agent/call-pinentry.c (inq_cb): Handle checkpin inquiry.
2105 (setup_enforced_constraints): New.
2106 (agent_get_passphrase): Call setup_enforced_constraints if new
2107 passphrase is requested.
2109 agent: New option --pinentry-formatted-passphrase.
2110 + commit bf20a80f68449cc83b67c53ba9a0a84c45827ac4
2111 * agent/agent.h (opt): Add field pinentry_formatted_passphrase.
2112 * agent/call-pinentry.c (setup_formatted_passphrase): New.
2113 (agent_get_passphrase): Pass option to pinentry.
2114 * agent/gpg-agent.c (oPinentryFormattedPassphrase): New.
2116 (parse_rereadable_options): Set option.
2118 2021-08-05 NIIBE Yutaka <gniibe@fsij.org>
2120 build: Simplify for string.h and getopt.h.
2121 + commit 29d58e9de7838bcf32e358602abd4ed4498566f8
2122 * configure.ac (AC_CHECK_HEADERS): Remove string.h and getopt.h.
2123 * dirmngr/ks-engine-ldap.c: Remove including getopt.h.
2124 * tools/make-dns-cert.c: Likewise.
2127 + commit 100c954ab0d6df509df582cb22ef515171462654
2128 * sm/decrypt.c (pwri_parse_pbkdf2): Use int for digest algo.
2129 (pwri_decrypt): Use int for cipher algo and digest algo.
2131 build: Remove duplication of AC_HEADER_TIME.
2132 + commit 3f33c7ffcca09d4252d0418fdc2d31c0c8e486f4
2133 * configure.ac: Have a single AC_HEADER_TIME.
2135 build: Update checking headers.
2136 + commit a89f13726d08413d4bddcb6afed402de1de9e4fd
2137 * configure.ac (AC_CHECK_HEADERS): Remove pty.h utmp.h, util.h,
2140 2021-08-02 Ingo Klöcker <dev@ingo-kloecker.de>
2142 common: Pass XDG_SESSION_TYPE and QT_QPA_PLATFORM envvars to pinentry.
2143 + commit 94d18320b2b0bb5e3fa2023df8ac57078b2f6ecb
2144 * common/session-env.c (stdenvnames): Add XDG_SESSION_TYPE and
2147 2021-07-29 Werner Koch <wk@gnupg.org>
2149 sm,w32: Fix Unicode problem on key box creation.
2150 + commit 7cdd06af479298748c79357dcb36ca1ba4d36bb1
2151 * sm/keydb.c (maybe_create_keybox): Replace access by gnupg_access
2153 tools: Extend gpg-check-pattern.
2154 + commit 73c03e02322880c740310207dd2151cfd843792e
2155 * tools/gpg-check-pattern.c: Major rewrite.
2157 2021-07-22 NIIBE Yutaka <gniibe@fsij.org>
2159 scd: Small clean up for card access.
2160 + commit 5c8124b8b9554c7843feccf408648c9689bce243
2161 * scd/app.c (app_get_challenge): Remove the check to ref_count.
2162 * scd/command.c (send_client_notifications): Update comments.
2164 scd: Fix direct use of card with no ctrl->card_ctx.
2165 + commit 50ad29f9a72f5454067bd0ca34fc1a71ac06b831
2166 * scd/app.c (maybe_switch_app): Remove check of ref_count.
2168 2021-07-21 Ingo Klöcker <dev@ingo-kloecker.de>
2170 agent: Add translatable text for Caps Lock hint.
2171 + commit b2a6e5b5169602052ae87d38588bdd3bd76fddad
2172 * agent/call-pinentry.c (start_pinentry): Add new default text.
2174 2021-07-21 NIIBE Yutaka <gniibe@fsij.org>
2176 scd: Fix access to list of cards (3/3).
2177 + commit 0d6b4210cf31d1c3ca0e8b034537a158fe3caca8
2178 * scd/app-common.h (card_reset): Simplify more.
2179 (select_additional_application): Supply CARD.
2180 (card_ref, card_unref): Remove.
2181 (card_get, card_put): New.
2182 * scd/app.c (card_reset): No locking/unlocking inside.
2183 (app_switch_current_card): Fix comment.
2184 (select_additional_application): No locking/unlocking inside.
2185 (do_with_keygrip): New, unlocked version.
2186 (card_get): New, with support of KEYGRIP.
2187 (card_unref): Remove.
2189 (app_write_learn_status, app_readcert: No locking/unlocking inside.
2190 (app_readkey, app_getattr, app_setattr, app_sign, app_auth): Likewise.
2191 (app_decipher, app_writecert, app_writekey): Likewise.
2192 (app_genkey, app_get_challenge, app_change_pin): Likewise.
2193 (app_check_pin, app_switch_active_app): Likewise.
2194 * scd/command.c (do_reset): Use card_get/card_put.
2195 (open_card_with_request): Use card_get/card_put, return CARD locked.
2196 (cmd_serialno): Follow the change of open_card_with_request.
2197 (cmd_switchapp): Use card_get/card_put.
2198 (cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign): Likewise.
2199 (cmd_pkauth, cmd_pkdecrypt, cmd_getattr): Likewise.
2200 (cmd_setattr, cmd_writecert, cmd_writekey): Likewise.
2201 (cmd_genkey, cmd_random, cmd_passwd): Likewise.
2202 (cmd_checkpin, cmd_getinfo, cmd_restart): Likewise.
2203 (cmd_disconnect, cmd_apdu, cmd_devinfo): Likewise.
2205 scd: Fix access to list of cards (2/3).
2206 + commit b436fb6766b400167e5d57ff1116600bb496b04f
2207 * scd/app-common.h (card_reset, select_application): Simplify.
2208 * scd/app.c (card_reset, select_application): Simplify.
2209 * scd/command.c (do_reset): Follow the change.
2210 (open_card, open_card_with_request): Follow the change.
2212 scd: Fix access to list of cards (1/3).
2213 + commit 216945a80e7b6b9d366493fa43fc7e99c830d81c
2214 * scd/app.c (card_list_lock): Use MRSW lock.
2215 (lock_r_card_list, unlock_r_card_list): New.
2216 (lock_w_card_list, unlock_w_card_list): New.
2217 (app_dump_state, app_send_devinfo): Use the MRSW lock.
2218 (select_application, app_switch_current_card): Likewise.
2219 (scd_update_reader_status_file): Likewise.
2220 (initialize_module_command, send_card_and_app_list): Likewise.
2221 (app_do_with_keygrip, app_wait): Likewise.
2223 2021-07-08 Werner Koch <wk@gnupg.org>
2225 kbx: Improve debugging of the search descriptions in keyboxd.
2226 + commit b871824fefa114db931762243537663cc1095cfa
2227 * kbx/frontend.c (dump_search_desc): New.
2228 (kbxd_search): Actually log the search descriptions.
2230 kbx: Fix keyboxd searching with multiple patterns.
2231 + commit 101ba4f18aceb39c4d5f0e0a7e16e66827f8e612
2232 * kbx/keybox-search-desc.h (struct keydb_search_desc): New flag
2234 * common/userids.c (classify_user_id): Set flag.
2235 * kbx/kbxserver.c (struct search_backing_store_s): New.
2236 (cmd_search): use a backing store for the const pointers.
2237 (kbxd_start_command_handler): Release the backing store.
2239 2021-07-06 NIIBE Yutaka <gniibe@fsij.org>
2241 scd: Detect external interference when PCSC_SHARED.
2242 + commit 044e5a3c3801fde7fa3b26986825377016e73103
2243 * scd/app-common.h (check_aid): New method.
2244 * scd/app-openpgp.c (do_check_aid): New.
2245 * scd/app-piv.c (do_check_aid): New.
2246 * scd/app.c (check_external_interference): New.
2247 (maybe_switch_app): Check interference to determine switching is
2250 2021-06-29 Werner Koch <wk@gnupg.org>
2252 artwork: Explain the license for the logo.
2253 + commit 5f78ae696c10df43c2b2fc29765e28b85caf5376
2256 2021-06-25 Werner Koch <wk@gnupg.org>
2258 agent: Fix regression in agent_get_shadow_info_type.
2259 + commit a6efde307f7beb199b543f78b61c317fa2708202
2260 * agent/protect.c (agent_get_shadow_info_type): Return the correct
2263 gpg: Let --fetch-key return an exit code on failure.
2264 + commit 9579c7786278b75d9c58b7c21b2f3c8bc7849810
2265 * g10/keyserver.c (keyserver_fetch): Return an error code.
2266 * g10/gpg.c (main) <aFetchKeys>: Return 1 in case of no data.
2268 2021-06-23 NIIBE Yutaka <gniibe@fsij.org>
2270 scd:ccid: Handle LIBUSB_TRANSFER_OVERFLOW interrupt transfer.
2271 + commit 25ae80b8eb6e9011049d76440ad7d250c1d02f7c
2272 * scd/ccid-driver.c (intr_cb): Ignore LIBUSB_TRANSFER_OVERFLOW.
2274 2021-06-22 Werner Koch <wk@gnupg.org>
2276 tools: Extend ccidmon to print T=1 APDUs.
2277 + commit 2c6b62b3572fe43cb6b89ec5fb0bc62385a4b230
2278 * tools/ccidmon.c (print_as_ascii): New.
2279 (print_t1_block): New.
2280 (print_p2r_xfrblock): Print APDUs
2281 (print_r2p_datablock): Ditto.
2283 tests: Cope with broken Libgcrypt versions.
2284 + commit 5df658233a3a0c05fac0b4d4889f033ea0d0e034
2285 * common/t-sexputil.c (test_ecc_uncompress): Ignore unknwon curve
2288 w32: Add fallback in case the Windows console can't cope with Unicode.
2289 + commit edfe9453be5f8ba374da0ab860be863d66965c56
2290 * common/ttyio.c (w32_write_console): Fallback to WriteConsoleA on
2293 scd:p15: Prepare AODF parsing for other authentication types.
2294 + commit e387cc97c82313457e4f79729a137e5871891bc1
2295 * scd/app-p15.c (auth_type_t): New.
2296 (struct aodf_object_s): Add field auth_type.
2297 (read_ef_aodf): Distinguish between pin and authkey types. Include
2298 the authtype in the verbose mode diags.
2300 2021-06-21 Werner Koch <wk@gnupg.org>
2302 dirmngr: Fix regression in KS_GET for mail address pattern.
2303 + commit d5126efd895bc2af0a7e63dbf4aa782ce47ecc40
2304 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Munge mail address pattern.
2305 (ks_hkp_get): Allow for mail addresses.
2308 Before the keyserver changes in 2.2.28 gpg passed dirmngr a pail
2309 address as an exact pattern (e.g. "=foo@example.org"). Since 2.2.28
2310 the mail address is detected gpg gpg and we see for example
2311 "<foo@example.org>". This patch fixes this to turn a mail address
2312 into an exact match again.
2314 2021-06-18 Werner Koch <wk@gnupg.org>
2316 scd:p15: Add pre-check for ascii-numeric PINs.
2317 + commit 029924a46e08ffcda038d89f06abfb41c980a9ad
2318 * scd/app-p15.c (verify_pin): acii-numerix is different than BCD.
2320 scd:p15: Add basic support for AET JCOP cards.
2321 + commit 544ec7872aed24c296ea34fac777eca287f7bb47
2322 * scd/app-p15.c (CARD_TYPE_AET): New.
2323 (cardtype2str): Add string.
2324 (card_atr_list): Add corresponding ATR.
2325 (app_local_s): New flag no_extended_mode. Turn two other flags into
2327 (select_ef_by_path): Hack to handle the 3FFF thing.
2328 (readcert_by_cdf): Do not use etxended mode for AET.
2329 (app_select_p15): Set no_extended_mode.
2331 scd:p15: Handle cards with bad encoded path objects.
2332 + commit 7a8545c91b09277b0833dc0e5881ba5d1c8dbca3
2333 * scd/app-p15.c (read_ef_prkdf, read_ef_pukdf)
2334 (read_ef_cdf, read_ef_aodf): Allow for a zero length path and
2335 correctly skip unsupported auth types.
2337 scd: Improve reading of binary records.
2338 + commit 44f977d0e332e77fb8a775c4837c00118bbe08cb
2339 * scd/iso7816.c (iso7816_read_binary_ext): Handle the 0x6a86 SW the
2341 * scd/apdu.c (apdu_get_atr): Modify debug messages.
2342 * scd/app-p15.c (app_select_p15): Print FCI on error.
2343 (read_p15_info): Clean up diag in presence of debug options.
2345 2021-06-17 NIIBE Yutaka <gniibe@fsij.org>
2347 scd: Fix RESET handling.
2348 + commit 7718244168c948171ffd37d7e964cbcd172661c6
2349 * scd/app.c (scd_update_reader_status_file): Clear ->reset_requested.
2351 2021-06-16 NIIBE Yutaka <gniibe@fsij.org>
2353 dirmngr: Fix build with --disable-ldap.
2354 + commit c6900f5723b4edc899aaea267ed599b5ad724142
2355 * dirmngr/dirmngr.c (parse_rereadable_options) [USE_LDAP]:
2358 2021-06-16 Werner Koch <wk@gnupg.org>
2360 sm: New option --ldapserver as an alias for --keyserver.
2361 + commit 89df86157e3580aae7e391382f4a5451a192fc68
2362 * sm/gpgsm.c (opts): Add option --ldapserver and make --keyserver an
2365 dirmngr: Allow to pass no filter args to dirmngr_ldap.
2366 + commit 14528ec66bd7dce28c7540fa9a34f35de54261c1
2367 * dirmngr/dirmngr_ldap.c (main): Handle no args case.
2369 dirmngr: Rewrite the LDAP wrapper tool.
2370 + commit 864ea251983977b91a7f6ff5964e497cf4b208dc
2371 * dirmngr/ldap-misc.c: New.
2372 * dirmngr/ldap-misc.h: New.
2373 * dirmngr/ks-engine-ldap.c: Include ldap-misc.h.
2374 (ldap_err_to_gpg_err, ldap_to_gpg_err): Move to ldap-misc.c.
2375 * dirmngr/ldap-wrapper.c (ldap_wrapper): Print list of args in debug
2377 * dirmngr/server.c (lookup_cert_by_pattern): Handle GPG_ERR_NOT_FOUND
2378 the saqme as GPG_ERR_NO_DATA.
2379 * dirmngr/ldap.c (run_ldap_wrapper): Add args tls_mode and ntds.
2380 Remove arg url. Adjust for changes in dirmngr_ldap.
2381 (url_fetch_ldap): Remove args host and port. Parse the URL and use
2382 these values to call run_ldap_wrapper.
2383 (attr_fetch_ldap): Pass tls flags to run_ldap_wrapper.
2384 (rfc2254_need_escape, rfc2254_escape): New.
2385 (extfilt_need_escape, extfilt_escape): New.
2386 (parse_one_pattern): Rename to ...
2387 (make_one_filter): this. Change for new dirmngr_ldap calling
2388 convention. Make issuer DN searching partly work.
2389 (escape4url, make_url): Remove.
2390 (start_cert_fetch_ldap): Change for new dirmngr_ldap calling
2392 * dirmngr/dirmngr_ldap.c: Major rewrite.
2394 * dirmngr/t-ldap-misc.c: New.
2395 * dirmngr/t-support.h (DIM, DIMof): New.
2396 * dirmngr/Makefile.am (dirmngr_ldap_SOURCES): Add ldap-misc.c
2397 (module_tests) [USE_LDAP]: Add t-ldap-misc.
2398 (t_ldap_parse_uri_SOURCES): Ditto.
2399 (t_ldap_misc_SOURCES): New.
2401 dirmngr: Remove useless code.
2402 + commit bcb99315627ec38aa5c9fe097075a82bdc8a2043
2403 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Remove the
2404 password_param thing because we set the password directly without an
2407 dirmngr: Fix default port for our redefinition of ldaps.
2408 + commit 58e4c82512a4b0828f78fc9f03dbcdbf77760b5c
2409 * dirmngr/server.c (make_keyserver_item): Fix default port for ldaps.
2410 Move a tmpstr out of the blocks.
2411 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Improve diagnostics.
2413 dirmngr: Use --ldaptimeout for OpenPGP LDAP keyservers.
2414 + commit 3e05f99e8db5c4039d352d5bd9dde01ed9653f2f
2415 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Use LDAP_OPT_TIMEOUT.
2417 * dirmngr/dirmngr.c (main): Move --ldaptimeout setting to ...
2418 (parse_rereadable_options): here.
2420 dirmngr: New option --ldapserver.
2421 + commit 52cf32ce2f904b2e6f53f406a90458f6ef148af9
2422 * dirmngr/dirmngr.c (opts): Add option --ldapserver.
2423 (ldapserver_list_needs_reset): New var.
2424 (parse_rereadable_options): Implement option.
2425 (main): Ignore dirmngr_ldapservers.conf if no --ldapserver is used.
2427 * dirmngr/server.c (cmd_ldapserver): Add option --clear and list
2428 configured servers if none are given.
2430 dirmngr: Allow for non-URL specified ldap keyservers.
2431 + commit eb3a629154de10a5414a5d2c2b9941ef8bf1eeaf
2432 * dirmngr/server.c (cmd_ldapserver): Strip an optional prefix.
2433 (make_keyserver_item): Handle non-URL ldap specs.
2434 * dirmngr/dirmngr.h (struct ldap_server_s): Add fields starttls,
2435 ldap_over_tls, and ntds.
2437 * dirmngr/ldapserver.c (ldapserver_parse_one): Add for an empty host
2438 string. Improve error messages for the non-file case. Support flags.
2439 * dirmngr/ks-action.c (ks_action_help): Handle non-URL ldap specs.
2440 (ks_action_search, ks_action_get, ks_action_put): Ditto.
2441 * dirmngr/ks-engine-ldap.c: Include ldapserver.h.
2442 (ks_ldap_help): Handle non-URL ldap specs.
2443 (my_ldap_connect): Add args r_host and r_use_tls. Rewrite to support
2444 URLs and non-URL specified keyservers.
2445 (ks_ldap_get): Adjust for changes in my_ldap_connect.
2446 (ks_ldap_search): Ditto.
2447 (ks_ldap_put): Ditto.
2449 gpg,sm: Simplify keyserver spec parsing.
2450 + commit bebc71d2291e93afb76792c5e210836857103c36
2451 * common/keyserver.h: Remove.
2452 * sm/gpgsm.h (struct keyserver_spec): Remove.
2453 (opt): Change keyserver to a strlist_t.
2454 * sm/gpgsm.c (keyserver_list_free): Remove.
2455 (parse_keyserver_line): Remove.
2456 (main): Store keyserver in an strlist.
2457 * sm/call-dirmngr.c (prepare_dirmngr): Adjust for the strlist. Avoid
2458 an ambiguity in dirmngr by adding a prefix if needed.
2460 * g10/options.h (struct keyserver_spec): Move definition from
2461 keyserver.h to here. Remove most fields.
2462 * g10/keyserver.c (free_keyserver_spec): Adjust.
2463 (cmp_keyserver_spec): Adjust.
2464 (parse_keyserver_uri): Simplify.
2465 (keyidlist): Remove fakev3 arg which does not make any sense because
2466 we don't even support v3 keys.
2468 dirmngr: Support pseudo URI scheme "opaque".
2469 + commit 1c96f4d663c020167ed3d39e513751641dfc3567
2470 * dirmngr/http.h (HTTP_PARSE_NO_SCHEME_CHECK): New.
2471 * dirmngr/http.c (http_parse_uri): Use this flag. Change all callers
2472 to use the new macro for better readability.
2473 (do_parse_uri): Add pseudo scheme "opaque".
2474 (uri_query_value): New.
2476 2021-06-11 Werner Koch <wk@gnupg.org>
2478 sm: Fix finding of issuer in use-keyboxd mode.
2479 + commit 6b76693ff54297456b724ba53f7e6283e2a5a126
2480 * sm/keydb.c (struct keydb_local_s): Add field saved_search_result.
2481 (keydb_push_found_state): Implement for keyboxd.
2482 (keydb_pop_found_state): Ditto.
2483 (keydb_get_cert): Do not release the cert so that the function can be
2484 used again to get the same cert. This is the same behaviour as in
2487 * sm/certchain.c, sm/import.c: Improve some error messages.
2489 2021-06-11 NIIBE Yutaka <gniibe@fsij.org>
2491 scd: Support clearing of Reset Code by ''.
2492 + commit 4e02db75e3a1da9012176f2cfe1638c8c0129f6f
2493 * scd/app-openpgp.c (do_change_pin): Allow null-string.
2495 2021-06-09 Werner Koch <wk@gnupg.org>
2497 gpgtar,w32: Fix file size computation.
2498 + commit 14e36bdbe1c39bc23e70db775e05319367ee8adb
2499 * tools/gpgtar-create.c (fillup_entry_w32): Move parentheses.
2501 2021-06-09 NIIBE Yutaka <gniibe@fsij.org>
2503 agent: Fix importing protected secret key.
2504 + commit 7a80004d5407c6c48b21d57ba6edb8e5a2db4995
2505 * agent/cvt-openpgp.c (do_unprotect): Only modify SKEY when it is
2506 correctly decrypted.
2508 2021-06-08 NIIBE Yutaka <gniibe@fsij.org>
2510 scd: Fix serial number detection for Yubikey 5.
2511 + commit c3a9ee0b658887ca9baa4514187b17857fdf6586
2512 * scd/app.c (app_new_register): Handle serial number correctly.
2514 2021-06-07 NIIBE Yutaka <gniibe@fsij.org>
2516 scd: Fix READER-PORT option handling for PC/SC.
2517 + commit ee5b6af370fbee1b08136e5dc384cf7996bcfc4c
2518 * scd/apdu.c (apdu_open_reader): READERNO should be -1 when
2519 READER-PORT is specified for PC/SC.
2521 2021-06-04 NIIBE Yutaka <gniibe@fsij.org>
2523 agent: Appropriate error code for importing key with no passwd.
2524 + commit 21ef425e222ddfa460b37dece63adb67ff2e4dd1
2525 * agent/cvt-openpgp.c (convert_from_openpgp_main): Return
2528 2021-06-03 NIIBE Yutaka <gniibe@fsij.org>
2530 gpg: Support KEYGRIP search with traditional keyring.
2531 + commit 9668ee097a1474299b8debecb1ee38620a327082
2532 * g10/keyring.c (keyring_search): Handle KEYDB_SEARCH_MODE_KEYGRIP.
2534 2021-06-02 Werner Koch <wk@gnupg.org>
2536 common: Allow for GCM decryption in de-vs mode.
2537 + commit c17dac5ac3ccb374e5a1276d4bc9b444c390a4c5
2538 * common/compliance.c (gnupg_cipher_is_allowed): Allow GCM for gpgsm
2541 * tests/cms/samplemsgs/pwri-sample.gcm.p7m: Remove duplicated authtag
2543 sm: Support AES-GCM decryption.
2544 + commit 4980fb3c6dde8c1dda975e8a36d6086c8456a631
2545 * tests/cms/samplemsgs/: Add sample messages.
2546 * sm/gpgsm.c (main): Use gpgrt_fcancel on decryption error.
2547 * sm/decrypt.c (decrypt_gcm_filter): New.
2548 (gpgsm_decrypt): Use this filter if requested. Check authtag.
2550 2021-05-28 Werner Koch <wk@gnupg.org>
2552 gpgconf: Make runtime changes with different homedir work.
2553 + commit 31c0aa2ff37f662c6391885d61ffd46ec3062e5a
2554 * tools/gpgconf-comp.c (dirmngr_runtime_change): Pass --homedir first.
2556 2021-05-28 NIIBE Yutaka <gniibe@fsij.org>
2558 agent: Fix calling handle_pincache_put.
2559 + commit 36f50b259cae0428264f4b7d60b82209e3dd8725
2560 * agent/call-scd.c (padding_info_cb): Fix the argument.
2562 scd: Fix zero-byte handling in ECC.
2563 + commit 5b1806454c03b3b493222f405ffced80a5d430ad
2564 * scd/app-openpgp.c (ecc_writekey): Don't remove zero-byte.
2566 2021-05-27 NIIBE Yutaka <gniibe@fsij.org>
2568 gpg: Ed448 and X448 are only for v5 for --full-gen-key.
2569 + commit 2b50f942672d9a2c325a818f21f69d3ee69255d3
2570 * g10/keygen.c (generate_keypair): Set pVERSION = 5, pSUBVERSION = 5,
2571 when it's Ed448 or X448.
2573 build: _DARWIN_C_SOURCE should be 1.
2574 + commit be81941e1aca75d9e1d0dd2e2b234ae6df53c05a
2575 * configure.ac (*-apple-darwin*): Set _DARWIN_C_SOURCE 1.
2577 2021-05-25 Werner Koch <wk@gnupg.org>
2579 gpg: Partial fix for Unicode problem in output files.
2580 + commit 30563ea29705016b08ff04fd8a833940ea94e4e8
2581 * g10/openfile.c (overwrite_filep): Use gnupg_access.
2583 2021-05-21 Werner Koch <wk@gnupg.org>
2585 common: Annotate leaked memory in homedir.c.
2586 + commit 260bbb4ab27eab0a8d4fb68592b0d1c20d80179c
2587 * g10/trustdb.c (how_to_fix_the_trustdb): Use gnupg_homedir.
2588 * common/homedir.c (standard_homedir): Annotate leaked memory.
2589 (gnupg_daemon_rootdir): Ditto.
2590 (gnupg_socketdir): Ditto.
2591 (gnupg_sysconfdir): Ditto.
2592 (gnupg_bindir): Ditto.
2593 (gnupg_libdir): Ditto.
2594 (gnupg_datadir): Ditto.
2595 (gnupg_localedir): Ditto.
2596 (gnupg_cachedir): Ditto.
2597 (gpg_agent_socket_name): Ditto.
2598 (dirmngr_socket_name): Ditto.
2599 (keyboxd_socket_name): Ditto.
2600 (get_default_pinentry_name): Ditto.
2601 (gnupg_module_name): Ditto.
2602 (default_homedir): Ditto. Make static.
2604 2021-05-20 Werner Koch <wk@gnupg.org>
2606 sm: Let --dump-cert --show-cert also print an OpenPGP fingerprint.
2607 + commit 52bbdc731fd54ff6d2744d7aca8e48e2c2389cc9
2608 * sm/keylist.c (list_cert_raw): Print the OpenPGP fpr.
2610 2021-05-20 Jakub Jelen <jjelen@redhat.com>
2612 card: Intialize pointer to avoid double free.
2613 + commit 98c52aeb31f4bf2604727aacad982fb51c04063f
2614 * tools/gpg-card.c (cmd_salut): Initialize data pointer
2616 scd: avoid memory leaks.
2617 + commit 27e7bde12ee2b67425ae7011d976d2544c90fd9a
2618 * scd/app-p15.c (send_certinfo): free labelbuf
2619 (do_sign): goto leave instead of return
2620 * scd/app-piv.c (do_sign): goto leave instead of return, fix typo in
2621 variable name, avoid using uninitialized variables
2622 * scd/command.c (cmd_genkey): goto leave instead of return
2624 kbx: Avoid uninitialized read.
2625 + commit fc5fac83b778f0ff61608c286448ab7fa14ccb2d
2626 * kbx/kbx-client-util.c (datastream_thread): Initialize pointer
2627 * kbx/keybox-dump.c (_keybox_dump_cut_records): free blob
2628 * kbx/kbxserver.c (kbxd_start_command_handler): do not free passed ctrl
2629 * kbx/keyboxd.c (check_own_socket): free sockname
2631 g10: Avoid memory leaks.
2632 + commit fa0771f609b5fcb104c64a11aefc501b7a91696d
2633 * g10/call-agent.c (card_keyinfo_cb): free keyinfo. Restructure to
2634 avoid backward gotos.
2635 * g10/keyedit.c (menu_set_keyserver_url): properly enclose the block
2636 * g10/keygen.c (gen_card_key): free pk and pkt
2638 dirmgr: Avoid double free.
2639 + commit 25aa353bf833fdae1a96158b49daf7588ae3b109
2640 * dirmgr/http.c (http_prepare_redirect): Avoid double free
2641 * dirmgr/ocsp.c (check_signature): Initialize pointer
2643 common: Avoid double-free.
2644 + commit 4704d1ce4e1e2ba9f986fb221346eda5c97f947b
2645 * common/name-value.c (do_nvc_parse): reset to null after ownership
2648 agent: Fix memory leaks.
2649 + commit 33a2362e566c0e0d7011abf2e5fa5704d7cb4206
2650 * agent/call-daemon.c (daemon_start): free wctp
2651 * agent/call-scd.c (agent_card_pksign): return error instead of noop
2652 (card_keyinfo_cb): free keyinfo. Restructure to avoid a goto backwards.
2653 * agent/protect.c (agent_get_shadow_info_type): allocate only as a last
2654 action. Catch xtrymalloc failure.
2655 (agent_is_tpm2_key): Free buf.
2657 sm: Avoid memory leaks and double double-free.
2658 + commit e6132bc9f41727ea1abe2d6298610223c11639a2
2659 * sm/certcheck.c (extract_pss_params): Avoid double free
2660 * sm/decrypt.c (gpgsm_decrypt): goto leave instead of return
2661 * sm/encrypt.c (encrypt_dek): release s_pkey
2662 * sm/server.c (cmd_export): free list
2663 (do_listkeys): free lists
2665 g10: Fix memory leaks.
2666 + commit 2af7bb2295cda5377546cedd0c906a3cff4d2427
2667 * g10/card-util.c (change_pin): free answer on errors
2668 (ask_card_keyattr): free answer on error
2669 * g10/cpr.c (do_get_from_fd): free string
2670 * g10/gpg.c (check_permissions): free dir on weird error
2671 * g10/import.c (append_new_uid): release knode
2672 * g10/keyedit.c (menu_set_keyserver_url): free answer
2673 (menu_set_keyserver_url): free user
2674 * g10/keygen.c (print_status_key_not_created): move allocation after
2676 (ask_expire_interval): free answer
2677 (card_store_key_with_backup): goto leave instaed of return
2678 * g10/keyserver.c (parse_keyserver_uri): goto fail instead of return
2679 * g10/revoke.c (gen_desig_revoke): release kdbhd
2680 (gen_desig_revoke): free answer
2681 * g10/tofu.c (ask_about_binding): free sqerr and response
2682 * g10/trustdb.c (ask_ownertrust): free pk
2684 dirmgr: clean up memory on error code paths.
2685 + commit 0d2c1e9046faf102809bc65329c22b6cf8d62ea0
2686 * dirmgr/crlcache.c (finish_sig_check): goto leave instead of return
2687 * dirmgr/http.c (send_request): free authstr and proxy_authstr
2688 * dirmgr/ldap.c (start_cert_fetch_ldap): free proxy
2689 * dirmgr/ocsp.c (check_signature): release s_hash
2691 agent: Avoid memory leaks in error code paths.
2692 + commit a95ddffdcd58383cce93677be5e7e11c5c229a98
2693 * agent/command.c (cmd_genkey): Use goto instead of return.
2694 * agent/cvt-openpgp.c (convert_from_openpgp_main): Ditto.
2695 * agent/genkey.c (agent_ask_new_passphrase): Fix typo to free correct
2697 (agent_genkey): Release memory
2698 * agent/gpg-agent.c (check_own_socket): Free sockname
2699 * agent/protect-tool.c (read_key): Free buf.
2700 (agent_askpin): Free passphrase
2702 2021-05-19 Werner Koch <wk@gnupg.org>
2704 dirmngr: For KS_SEARCH return the fingerprint also with LDAP.
2705 + commit a660e1060630e8d75ecb43abf69dbb73378c1df9
2706 * dirmngr/ks-engine-ldap.c (extract_keys): Return the fingerprint if
2708 (ks_ldap_search): Ditto.
2709 (extract_keys): Make sure to free the ldap values also in corner
2711 (my_ldap_value_free): New.
2712 (ks_ldap_get): Ditto.
2713 (ks_ldap_search): Ditto.
2714 (my_ldap_connect): Ditto.
2716 gpg: Improve speed of secret key listing.
2717 + commit 40da61b89b62dcb77847dc79eb159e885f52f817
2718 * agent/command.c (cmd_keyinfo): Factor some code out to ...
2719 (get_keyinfo_on_cards): ... new.
2720 (cmd_havekey): Add --list mode.
2721 * g10/gpg.h (struct server_control_s): Add new caching vars.
2722 * g10/gpg.c (gpg_deinit_default_ctrl): Release cache.
2723 * g10/call-agent.c (agent_probe_any_secret_key): Init and try to use
2725 (agent_genkey): Clear the cache.
2726 (agent_import_key): Ditto.
2728 * g10/keylist.c (list_all, list_one): Pass ctrl to
2729 agent_probe_any_secret_key.
2730 * g10/getkey.c (lookup): Ditto.
2732 2021-05-18 Werner Koch <wk@gnupg.org>
2734 gpg: Fix sending an OpenPGP key with umlaut to an LDAP keyserver.
2735 + commit b8e6e485ee0b3389992f5de4d717e2e9cca92a9e
2736 * g10/call-dirmngr.c (record_output): Rewrite.
2738 2021-05-18 Ingo Klöcker <dev@ingo-kloecker.de>
2740 scd:p15: Fix logic for appending product name to MANUFACTURER.
2741 + commit 65bc5ea95e608869fe57dae43e201ed47b98f9fe
2742 * scd/app-p15.c (do_getattr): Append product name to MANUFACTURER if
2743 manufacturer_id does not already contain a bracket and if we have a
2746 2021-05-17 Werner Koch <wk@gnupg.org>
2748 gpg: Use a more descriptive prompt for symmetric decryption.
2749 + commit 6dfae2f402a702ccd7f2c585b28cb356e9f26a26
2750 * g10/keydb.h (GETPASSWORD_FLAG_SYMDECRYPT): New.
2751 (passphrase_to_dek_ext): Remove this obsolete prototype.
2752 * g10/passphrase.c (passphrase_get): Add arg flags. Use new flag
2754 (passphrase_to_dek): Add arg flags and pass it on.
2755 * g10/mainproc.c (proc_symkey_enc): Use new flag.
2757 * sm/decrypt.c (pwri_decrypt): Use "passphrase".
2759 dirmngr: LDAP search by a mailbox now ignores revoked keys.
2760 + commit 1406f551f1e00a03eabf5b8bd3011bf6393ce318
2761 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Ignore revoked
2762 and disable keys in mail mode.
2764 sm: Ask for the password for password based decryption (pwri)
2765 + commit eeb65d3bbd7d461694d30009631739735a2b9bad
2766 * sm/decrypt.c (pwri_decrypt): Add arg ctrl. Ask for passphrase.
2768 * sm/export.c (export_p12): Mark string as translatable.
2769 * sm/import.c (parse_p12): Ditto.
2771 2021-05-14 Werner Koch <wk@gnupg.org>
2773 sm: Support decryption of password based encryption (pwri)
2774 + commit 02029f9eab87e9fd667829dfb083846275576398
2775 * sm/decrypt.c (pwri_parse_pbkdf2): New.
2776 (pwri_decrypt): New.
2777 (prepare_decryption): Support pwri.
2778 (gpgsm_decrypt): Test for PWRI. Move IS_DE_VS flag to DFPARM.
2780 2021-05-14 NIIBE Yutaka <gniibe@fsij.org>
2782 scd: Remove wrong assertion and add protection to PCSC.COUNT.
2783 + commit 58b330e935b9225d5a389c5d858a0e7304f573ad
2784 * scd/apdu.c (apdu_dev_list_finish): Fix for calling
2785 release_pcsc_context.
2787 2021-05-12 Werner Koch <wk@gnupg.org>
2788 Jakub Jelen <jjelen@redhat.com>
2790 agent: Use SHA-256 for SSH fingerprint by default.
2791 + commit 310b064f5271fe8566ebc996702ea1422875f425
2792 * agent/gpg-agent.c (parse_rereadable_options): Change default ssh
2796 2021-05-11 Werner Koch <wk@gnupg.org>
2798 A few minor code cleanups and typo fixes.
2799 + commit 965bb0693c0df04e6dbd57a8b471944367cf6c4e
2800 * agent/command-ssh.c (ssh_handler_request_identities): Remove double
2802 * g10/getkey.c (get_pubkey_byname): Remove double use of break.
2803 * g10/pkglue.c (pk_encrypt): Handle possible NULL-ptr access due to
2806 2021-05-11 NIIBE Yutaka <gniibe@fsij.org>
2808 gpg: Fix allocation for EXTRAHASH.
2809 + commit ac731dbbbd21f53d2f6bf69343e6bf553ebc9dad
2810 * g10/sign.c (clearsign_file): Fix the size to allocate.
2812 scd: Serialize READER_TABLE access for PC/SC.
2813 + commit 32baa9acfb153004bdb2509f9516482b78f256a4
2814 * scd/apdu.c (apdu_dev_list_start): Remove locking READER_TABLE_LOCK.
2815 Don't increment PCSC.COUNT here.
2816 (apdu_dev_list_finish): Don't decrement PCSC.COUNT here.
2817 (apdu_open_reader): Protect access with READER_TABLE_LOCK.
2819 2021-05-10 NIIBE Yutaka <gniibe@fsij.org>
2821 scd: Fix close_pcsc_reader.
2822 + commit ec5591dc4e1f1b0340b9043a410dc62b63a90416
2823 * scd/apdu.c (close_pcsc_reader): Don't touch .RDRNAME field.
2824 (apdu_dev_list_finish): Clear .RDRNAME field and replace call of
2825 close_pcsc_reader by release_pcsc_context. Add assertion.
2827 scd: Make sure releasing PC/SC context.
2828 + commit cccc9bd5db1f00c35dff192935e91d46cafb259f
2829 * scd/apdu.c (release_pcsc_context): New.
2830 (close_pcsc_reader): Use release_pcsc_context. Add assertion.
2831 (apdu_dev_list_start): Replace call of close_pcsc_reader
2832 into release_pcsc_context, add condition.
2834 2021-05-07 NIIBE Yutaka <gniibe@fsij.org>
2836 scd: Increment PCSC.COUNT correctly.
2837 + commit 0498ea8fbd57d0df3093301d551db6b287ccf622
2838 * scd/apdu.c (open_pcsc_reader): PCSC.COUNT should
2839 be incremented before possible call of close_pcsc_reader.
2841 scd: Fix memory leak for RDRNAME and serialize access.
2842 + commit 5d1b41310682a599a16bcb95e18f56e62299059e
2843 * scd/apdu.c (close_pcsc_reader): Move locking to...
2844 (apdu_close_reader): ... here, as it's also needed for CCID driver.
2845 Free RDRNAME when closed.
2847 scd: Fix declarations for PC/SC access.
2848 + commit 039aed9d401f3875eee0251d34be74de7a1daf84
2849 * scd/apdu.c (pcsc_begin_transaction, pcsc_transmit): Use HANDLE.
2851 2021-05-06 NIIBE Yutaka <gniibe@fsij.org>
2853 scd: Recover the partial match for PORTSTR for PC/SC.
2854 + commit 53bdc6288f9b474e53f06088130e304cee41b12d
2855 * scd/apdu.c (apdu_open_reader): Allow partial match of
2856 PORTSTR again just like 2.2 does.
2858 scd: When reader is specified, make sure only open once.
2859 + commit d6fe82d3d1699eb417f87b487048f95fee91e2cd
2860 * scd/apdu.c (apdu_open_reader): Make sure not to try multiple times,
2861 when PORTSTR is specified.
2863 2021-04-29 Werner Koch <wk@gnupg.org>
2865 scd: Fix PC/SC removed card problem.
2866 + commit 8d81fd7c01e8dfacc719ff190f8e364014e32fdf
2867 * scd/apdu.c (pcsc_cancel): New.
2868 (pcsc_init): Load new function.
2869 (connect_pcsc_card): Use it after a removed card error.
2871 2021-04-28 Werner Koch <wk@gnupg.org>
2873 scd: Fix problem with reader list becoming empty.
2874 + commit bb8e3996e44f4f057f0771b9b72c89feae00f1b1
2875 * scd/apdu.c (close_pcsc_reader): Do not decrement refcount if already
2876 zero. Always release context if or becomes zero.
2877 (apdu_dev_list_start): Unlock prior to close_pcsc_reader. For PC/SC
2878 increment the count. Always release the lock.
2879 (apdu_dev_list_finish): No more unlocking. Use close_pcsc_reader
2880 instead of code duplication.
2882 * scd/apdu.c (pcsc_error_string): Add an error code.
2883 * scd/scdaemon.c (scd_kick_the_loop): Fix a diagnostic.
2885 2021-04-27 Kirill Elagin <kirelagin@gmail.com>
2887 scd: Fix unblock PIN by a Reset Code with KDF.
2888 + commit f209d7d2db0e963a6ad1fa8c4f0c034ba0297842
2889 * scd/app-openpgp.c (do_change_pin): Use correct CHVNO=1 for
2890 pin2hash_if_kdf, for user's PIN.
2892 2021-04-26 Werner Koch <wk@gnupg.org>
2894 gpg: Fix mailbox based search via AKL keyserver method.
2895 + commit 4fcfac6feb2a6c2b14883ba406afc917e8d4be42
2896 * g10/keyserver.c (keyserver_import_name): Rename to ...
2897 (keyserver_import_mbox): this. And use mail search mode.
2898 * g10/getkey.c (get_pubkey_byname): Change the two callers.
2900 gpg: Do not use import-clean for LDAP keyserver imports.
2901 + commit 99db4b0c7fd128ea5b2e251fe854bd57f6322238
2902 * g10/options.h (opts): New field expl_import_only.
2903 * g10/import.c (parse_import_options): Set it.
2904 * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP.
2906 2021-04-25 Werner Koch <wk@gnupg.org>
2908 gpg: Auto import keys specified with --trusted-keys.
2909 + commit 100037ac0f558e8959fc065d4703c85c2962489e
2910 * g10/getkey.c (get_pubkey_with_ldap_fallback): New.
2911 * g10/trustdb.c (verify_own_keys): Use it.
2913 scd:p15: Fix last commit and improve D-TRUST detection.
2914 + commit cc5aa68b6310bdeaa1102bb0d6a33420920648e7
2915 * scd/app-p15.c (read_p15_info): Improve D-TRUST card detection.
2916 (do_getattr): Fix faulty code for the last commit. Append the product
2917 name to MANUFACTURER.
2919 scd:p15: Shorten the displayed s/n of RSCS cards.
2920 + commit 21e3f750bd7dde2ae9ece01b1abdd1b47ba4fb04
2921 * scd/app-p15.c (get_dispserialno): Add dedicated handling for RSCS.
2923 2021-04-23 Werner Koch <wk@gnupg.org>
2925 gpg: Replace an obsolete trustdb function.
2926 + commit 3cbc66410d62ad2f7e559095753a2385fe644d07
2927 * g10/trustdb.c (tdb_register_trusted_keyid): Make static.
2928 (tdb_register_trusted_key): Replace register_trusted_keyid by
2929 tdb_register_trusted_key.
2930 * g10/keygen.c (do_generate_keypair): Ditto.
2931 * g10/trust.c (register_trusted_keyid): Remove.
2933 gpg: Allow decryption w/o public key but with correct card inserted.
2934 + commit 50293ec2ebf2a997dbad9a47166d694efcc0709a
2935 * agent/command.c (cmd_readkey): Add option --no-data and special
2936 handling for $SIGNKEYID and $AUTHKEYID.
2937 * g10/call-agent.c (agent_scd_getattr): Create shadow keys for KEY-FPR
2939 * g10/skclist.c (enum_secret_keys): Automagically get a missing public
2940 key for the current card.
2942 agent: Require verbose level 2 for handler started/terminated notices.
2943 + commit 84c2d97cca76045bbe9d0598a10623d5d91e6530
2944 * agent/gpg-agent.c (do_start_connection_thread): Silence diags even
2947 2021-04-23 NIIBE Yutaka <gniibe@fsij.org>
2949 tools: Fix for --disable-tpm2d.
2950 + commit 97ba94e52b2390f43fc1ac7db98e8ee7a37ddfb1
2951 * tools/gpgconf-comp.c: Conditionalize with BUILD_WITH_TPM2D.
2953 2021-04-22 Werner Koch <wk@gnupg.org>
2955 scd: Fix PSO_CSV for 512 bit curves.
2956 + commit 9e24f2a45ce8038f662ec1a9893669e1d5604ec7
2957 * scd/iso7816.c (iso7816_pso_csv): Use BER-TLV instead of SIMPLE-TLV
2959 tests: Make sure that the build keyboxd is used.
2960 + commit d36c4dc95b72b780375d57311bdf4ae842fd54fa
2961 * tests/openpgp/defs.scm (create-gpghome): Add keyboxd-program.
2963 2021-04-21 Werner Koch <wk@gnupg.org>
2965 card: New option --shadow for command list.
2966 + commit 2fce99d73a6afc1a1a29041722a934bb81c7d739
2967 * tools/card-call-scd.c (scd_readkey): Add arg create_shadow.
2968 * tools/gpg-card.c (list_one_kinfo): Add arg create_shadow and pass it
2969 down to scd-readkey. Change all callers to convey this arg.
2970 (cmd_list): Add option --shadow.
2972 agent: Silence error messages for READKEY --card.
2973 + commit 8f2c9cb73538baab7da8107f2cceb2f6fc49642a
2974 * agent/command.c (cmd_readkey): Test for shadow key before creating
2977 gpg: Allow fingerprint based lookup with --locate-external-key.
2978 + commit ec36eca08cdbf6653e7362e8e0e6c5f2c75b4a60
2979 * g10/keyserver.c (keyserver_import_fprint_ntds): New.
2980 * g10/getkey.c (get_pubkey_byname): Detect an attempt to search by
2981 fingerprint in no_local mode.
2983 keyboxd: Fix searching for exact mail addresses.
2984 + commit f79e9540ca643b5cb912e7bfca2af56be428efed
2985 * kbx/kbxserver.c (cmd_search): Use the openpgp hack for calling
2987 * kbx/backend-sqlite.c (run_select_statement): Remove angle brackets
2988 in exact addrspec mode.
2989 * g10/call-keyboxd.c (keydb_search): Do not duplicate the left angle
2991 * sm/keydb.c (keydb_search): Ditto.
2993 gpg,sm: Ignore the log-file option from common.conf.
2994 + commit d153e4936e05ab3b15df3c092024d83ac9d6ca46
2995 * g10/gpg.c (main): Don't use the default log file from common.conf.
2996 * sm/gpgsm.c (main): Ditto.
2998 2021-04-20 Werner Koch <wk@gnupg.org>
3001 + commit cbbdb88627fe57ebf02b8b4bf9002d356e57e2e4
3004 Support log-file option from common.conf for all daemon.
3005 + commit 45918813f0599505e4f84bd44b09fb708b4e7f23
3006 * agent/gpg-agent.c: Include comopt.h.
3007 (main): Read log-file option from common.conf.
3008 (reread_configuration): Ditto.
3009 * dirmngr/dirmngr.c: Include comopt.h.
3010 (main): Read log-file option from common.conf.
3011 (reread_configuration): Ditto.
3012 * kbx/keyboxd.c: Include comopt.h.
3013 (main): Read log-file option from common.conf.
3014 (reread_configuration): Ditto.
3015 * scd/scdaemon.c: Include comopt.h.
3016 (main): Read log-file option from common.conf.
3018 gpgconf: Fix a diagnostic output.
3019 + commit b657d6c3bd8103d40d511a3293313a891a26a9f5
3020 * tools/gpgconf-comp.c (gc_component_launch): Fix diagnostic.
3021 * doc/examples/common.conf: Fix example.
3023 sm: New command --show-certs.
3024 + commit 51419d63415ae2aa029f8829099b6789b264edc5
3025 * sm/keylist.c (do_show_certs): New.
3026 (gpgsm_show_certs): New.
3027 * sm/gpgsm.c (aShowCerts): New.
3028 (opts): Add --show-certs.
3029 (main): Call gpgsm_show_certs.
3031 2021-04-19 Werner Koch <wk@gnupg.org>
3033 build: Fix build problems on macOS for gpgsm tests and gpg-card.
3034 + commit 5fe60576d50f7c857d0a865a9630212422fa1ad1
3035 * tools/gpg-card.c: Include ctype.h.
3036 * sm/Makefile.am (t_common_ldadd): Add LIBICONV.
3038 2021-04-19 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
3040 build: Allow selection of TSS library.
3041 + commit 93c88d0af36b70a406997b40c49bfc14c17b4cd2
3042 * configure.ac: New option --with-tss to force the use of a
3043 specific TSS library.
3045 gpg: Fix showpref to list AEAD feature.
3046 + commit 86f446fd446fcc7295ecf6b37a3f4cca45a165f1
3047 * g10/keyedit.c (show_prefs): Show 'AEAD' if flags.aead is set.
3049 2021-04-19 Werner Koch <wk@gnupg.org>
3051 gpg,gpgsm: Move use-keyboxd to the new conf file common.conf.
3052 + commit d13c5bc244ce1daed285424d920171fc2bcd7290
3053 * common/comopt.c, common/comopt.h: New.
3054 * common/Makefile.am: Add them.
3055 * g10/gpg.c: Include comopt.h.
3056 (main): Also parse common.conf.
3057 * sm/gpgsm.c: Include comopt.h.
3058 (main): Set a flag for the --no-logfile option. Parse common.conf.
3060 * tools/gpgconf-comp.c (known_options_gpg): Remove "use-keyboxd", add
3061 pseudo option "use_keyboxd".
3062 (known_pseudo_options_gpg): Add pseudo option "use_keyboxd".
3063 (known_options_gpgsm): Remove "use-keyboxd".
3065 * tests/openpgp/defs.scm (create-gpghome): Create common.conf.
3067 * doc/examples/common.conf: New.
3069 2021-04-16 Werner Koch <wk@gnupg.org>
3071 gpg: Lookup a missing public key of the current card via LDAP.
3072 + commit d7e707170fbe2956deb3d81e2802d21352079722
3073 * g10/getkey.c (get_seckey_default_or_card): Lookup a missing public
3074 key from the current card via LDAP.
3075 * g10/call-dirmngr.c: Include keyserver-intetnal.h.
3076 (gpg_dirmngr_ks_get): Rename arg quick into flags. Take care of the
3078 * g10/keyserver-internal.h (KEYSERVER_IMPORT_FLAG_QUICK): New.
3079 Replace the use of the value 1 for the former quick arg.
3080 (KEYSERVER_IMPORT_FLAG_LDAP): New.
3081 * g10/keyserver.c (keyserver_get_chunk): Increase the reserved line
3083 * dirmngr/ks-action.c (ks_action_get): Add arg ldap_only.
3084 * dirmngr/server.c (cmd_ks_get): Add option --ldap.
3086 scd:p15: Support attribute KEY-FPR.
3087 + commit 30f90fc8574be4c48ac8d3ff41479481414c0dee
3088 * scd/app-p15.c: Include openpgpdefs.h.
3089 (struct prkdf_object_s): Add fields have_keytime and ecdh_kdf.
3090 (read_p15_info): Set ecdh_kdf.
3091 (keygrip_from_prkdf): Flag that we have the keytime.
3092 (send_keypairinfo): Send the key time only if valid.
3093 (send_key_fpr_line): New.
3094 (send_key_fpr): New.
3095 (do_getattr): Add KEY-FPR.
3097 common: New module to compute openpgp fingerprints.
3098 + commit 2f2bdd9c0894eb43f719da8b529b4c7a46f742a0
3099 * common/openpgp-fpr.c: New.
3100 * common/Makefile.am (common_sources): Add it.
3102 2021-04-13 Werner Koch <wk@gnupg.org>
3104 gpg: Do not use self-sigs-only for LDAP keyserver imports.
3105 + commit 6c26e593df51475921410ac97e9227df6b258618
3106 * dirmngr/ks-engine-ldap.c (ks_ldap_get): Print a SOURCE status.
3107 * g10/options.h (opts): New field expl_import_self_sigs_only.
3108 * g10/import.c (parse_import_options): Set it.
3109 * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP.
3111 2021-04-13 Jakub Jelen <jjelen@redhat.com>
3113 common: Fix memory leaks.
3114 + commit a16f726f9404f173705cc3bef71daee38d2c094b
3115 * common/name-value.c (do_nvc_parse): Free NAME.
3116 * common/recsel.c (recsel_parse_expr): Release SE_HEAD and EXPR_BUFFER.
3118 kbx: Fix memory leak.
3119 + commit 51bbd99a3c9b09a78e766a312d97a1d40372c6cd
3120 * kbx/keybox-update.c (blob_filecopy): Goto leave instead of return.
3122 tools: Fix memory leaks.
3123 + commit 4c8be54cc430bbebd41fd7c452ff4ff9e8ff2bd5
3124 * tools/gpgsplit.c (write_part): Free BLOB on error.
3126 scd: Fix memory leaks.
3127 + commit 7cbe29c4fb4f593e194b6c25cb31633b4a6e0b2b
3128 * scd/apdu.c (apdu_dev_list_start): Free DL.
3129 * scd/app-nks.c (pubkey_from_pk_file): Fix typo in condition.
3131 agent,kbx: Add LIBASSUAN_CLFAGS.
3132 + commit cd66b2eb0d34b135175899362e191fff81588608
3133 * agent/Makefile.am (gpg_preset_passphrase_CFLAGS, t_protect_CFLAGS):
3134 Add LIBASSUAN_CFLAGS.
3135 * kbx/Makefile.am (libkeybox_a_CFLAGS, libkeybox509_a_CFLAGS):
3138 2021-04-12 Werner Koch <wk@gnupg.org>
3140 scd:p15: Match private keys with certificates also by labels.
3141 + commit ecb9265b8dc03a153044e19be804d4c2d2caa4e8
3142 * scd/app-p15.c (cdf_object_from_label): New.
3143 (cdf_object_from_certid): Fallback to label matching.
3144 (read_p15_info): Ditto.
3145 (keygrip_from_prkdf): Ditto. Replace duplicated code by a call to
3146 cdf_object_from_objid.
3148 2021-04-08 Werner Koch <wk@gnupg.org>
3150 scd:nks: Handle APP_READKEY_FLAG_INFO.
3151 + commit 63320ba2f8147ee86f4406c9590f6b28cad4771d
3152 * scd/app-nks.c (keygripstr_from_pk_file): Fix ignored error.
3154 (do_learn_status_core): Use it. Make sure not to mange the
3155 KEYPAIRINFO line if no usage is known.
3156 (do_readkey): Output the KEYPAIRINFO for the keygrip case.
3158 scd: Fix duplicate output of KEYPAIRINFO by readkey command.
3159 + commit 22fd48e48d007a0cba6c8a8f6ad6cb4fe7470534
3160 * scd/app-help.c (app_help_get_keygrip_string_pk): Make HEXKEYGRIP
3162 * scd/command.c (do_readkey): Remove duplicate output of keypairinfo
3165 2021-04-08 NIIBE Yutaka <gniibe@fsij.org>
3167 gpg: Ed448 and X448 are only for v5.
3168 + commit 36355394d865f5760075e62267d70f7a7d5dd671
3169 * g10/keygen.c (parse_key_parameter_part): Generate with version 5
3170 packet, when it's Ed448 or X448.
3172 scd: Fix CCID driver for SCM SPR332/SPR532.
3173 + commit ab66c4357595b8a10ca25fd735f439fe795919b2
3174 * scd/ccid-driver.c (ccid_vendor_specific_pinpad_setup): New.
3175 (ccid_vendor_specific_setup): Only send CLEAR_HALT.
3176 (ccid_transceive_secure): Each time, use send_escape_cmd.
3178 common: Fix gnupg_wait_processes, by skipping invalid PID.
3179 + commit d82dae5d2229a30dbc78aadc4d544d30dac76a1c
3180 * common/exechelp-posix.c (gnupg_wait_processes): Skip invalid PID.
3182 2021-04-07 Werner Koch <wk@gnupg.org>
3184 Release GnuPG 2.3.0.
3185 + commit c922a798a341261f1aafaf7c1c0217e4ce3e3acf
3188 2021-04-01 Werner Koch <wk@gnupg.org>
3190 gpgconf: Return a new pseudo option compliance_de_vs.
3191 + commit a78475fbb7b60ca96137fbe179d8b939cfe2cd89
3192 * tools/gpgconf-comp.c (known_pseudo_options_gpg): Add
3194 * g10/gpg.c (gpgconf_list): Returh that pseudo option.
3196 common: Make the compliance check more robust.
3197 + commit 1d1ec1146c04415c7051af62e133459a4537c945
3198 * common/compliance.c (get_compliance_cache): New.
3199 (gnupg_rng_is_compliant): Use per mode cache.
3200 (gnupg_gcrypt_is_compliant): Ditto.
3202 card: New flag --reread for LIST.
3203 + commit c727951a2440913bbab5b250c9bd2bb1d35ab0d7
3204 * tools/gpg-card.c (cmd_list): Add flag --reread.
3205 * tools/card-call-scd.c (scd_learn): New arg reread.
3207 * tools/card-call-scd.c (release_card_info): Fix releasing of the new
3210 scd: New flag --reread for LEARN.
3211 + commit ff87f4e578f412332ae59fdab016f0a5304baaf9
3212 * scd/command.c (cmd_learn): Add flag --reread.
3213 * scd/app-common.h (struct app_ctx_s): New field need_reset.
3214 * scd/app.c (write_learn_status_core): Set need_reset if we notice an
3215 error after returning from a reread. Change all callers of card
3216 functions to return GPG_ERR_CARD_RESET so that that app is not anymore
3219 scd:p15: New flag APP_LEARN_FLAG_REREAD.
3220 + commit e17d3f866057543d142d63379fd4f4a36d79147f
3221 * scd/app-p15.c (do_deinit): Factor code out to ...
3222 (release_lists, release_tokeninfo): new.
3223 (read_ef_tokeninfo): Reset all data before reading.
3224 (read_p15_info): Ditto.
3225 (do_learn_status): Implement reread flag.
3227 2021-03-31 Werner Koch <wk@gnupg.org>
3229 scd: Replace all assert macros by the log_assert macro.
3230 + commit 1c16878efd0bcf036f56abef93d64ac41ce9e95b
3233 build: Require automake 1.16.3.
3234 + commit 6ca540715139899137e1f86c7e1dcbd0288f15b3
3235 * configure.ac (min_automake_version): Bump to 1.16.3
3237 2021-03-31 NIIBE Yutaka <gniibe@fsij.org>
3239 build: Update gpg-error.m4.
3240 + commit 8d6152a4cfd8a4cf176c01f99e1d49eeecab4367
3241 * m4/gpg-error.m4: Update from libgpg-error.
3243 2021-03-30 Werner Koch <wk@gnupg.org>
3245 card: Print the key's label if available.
3246 + commit 0d6f276f61c583d776687029c715b1ee4280e4ed
3247 * tools/gpg-card.h (struct key_info_s): Add field 'label'.
3248 * tools/card-call-scd.c (learn_status_cb): Parse KEY-LABEL.
3249 (scd_learn): Always request KEY-LABEL.
3250 * tools/gpg-card.c (nullnone): New.
3251 (list_one_kinfo, list_card): Use it. Print the label.
3253 scd:p15: Return labels for keys and certificates.
3254 + commit 7f9126363265a6b6fe4223d68fc4e87678c4ddfc
3255 * scd/app-p15.c (send_certinfo): Extend certinfo.
3256 (do_getattr): Support KEY-LABEL.
3258 scd:p15: For CardOS make use of ISO7816_VERIFY_NOT_NEEDED.
3259 + commit 651c07a7301c33229af051d83edbf898bae52e8b
3260 * scd/app-p15.c (verify_pin): Take care of verify status.
3262 scd:p15: Return the creation time of the keys.
3263 + commit de4d3c99aa58ee06ae978d59e7e3aa7bace1c440
3264 * scd/app-p15.c (struct prkdf_object_s): Add keytime and keyalgostr.
3265 (keygrip_from_prkdf): Set them.
3266 (send_keypairinfo): Extend KEYPAIRINFO.
3268 2021-03-30 NIIBE Yutaka <gniibe@fsij.org>
3270 build: Fix for make distcheck, no EPS support.
3271 + commit d1bac0a3be7081a4bfc7f813f9d626e1396ad5c1
3272 * Makefile.am (AM_DISTCHECK_DVI_TARGET): Specify 'pdf'.
3273 * doc/Makefile.am (EXTRA_DIST, BUILT_SOURCES): Remove EPS files.
3274 (gnupg.dvi): Remove.
3276 2021-03-29 Werner Koch <wk@gnupg.org>
3278 scd:p15: Make RSA with SHA512 work with CardOS.
3279 + commit 592f48011790e30d4bcfd9093eb58b786c8c9a8b
3280 * scd/app-p15.c (do_sign): Rewrite.
3282 agent: Skip unknown unknown ssh curves seen on cards.
3283 + commit 2d2391dfc25cfe160581b1bb4b4b8fc4764ac304
3284 * agent/command-ssh.c (ssh_handler_request_identities): Skip unknown
3287 scd:p15: Support ECDSA and ECDH for CardOS.
3288 + commit a494b29af9cc9c4c8c8323bae20e845d5a390448
3289 * scd/iso7816.c (iso7816_pso_csv): New.
3290 * scd/app-help.c (app_help_pubkey_from_cert): Uncompress a point if
3293 * scd/app-p15.c (CARD_PRODUCT_RSCS): New.
3294 (struct prkdf_object_s): Add fields is_ecc, token_label, and
3296 (do_deinit): Free new fields.
3297 (cardproduct2str): New.
3298 (read_ef_prkdf): Set new is_ecc flag.
3299 (read_ef_tokeninfo): Store some data and move Tokeninfo diags to ...
3300 (read_p15_info): here. set the product info here after all data has
3302 (send_keypairinfo): Chnage the way the gpgusage flags are used.
3303 (make_pin_prompt): If the token has a label and the current cert has
3304 no CN, show the label as holder info.
3305 (do_sign): Support ECDSA. Take care of the gpgusage flags.
3306 (do_decipher): Support ECDH. Take care of the gpgusage flags.
3308 gpg: Allow ECDH with a smartcard returning just the x-ccordinate.
3309 + commit f129b0e97730b47d62482fba9599db39b526f3d2
3310 * g10/ecdh.c (extract_secret_x): Add extra safety check. Allow for
3313 2021-03-28 Werner Koch <wk@gnupg.org>
3315 gpgconf: Do not i18n an empty string to the PO files meta data.
3316 + commit 18d884f8411a0ca263a8aa588bb49eb0dae9ee19
3317 * tools/gpgconf-comp.c (my_dgettext): Ignore empty strings.
3319 2021-03-26 Werner Koch <wk@gnupg.org>
3321 tests: Make sure the built keyboxd is used by the tests.
3322 + commit a5e72b663b3649c939d32d6526b5e2b3347dedd9
3323 * tests/openpgp/defs.scm (tool): Add keyboxd.
3324 * tests/openpgp/setup.scm: Ditto.
3326 gpgconf: Fix another argv overflow if --homedir is used.
3327 + commit 057131159b445d2d49392e95c677ad7b4cd4ae9c
3328 * tools/gpgconf-comp.c (gc_component_check_options): Increase array.
3330 gpgconf: Fix argv overflow if --homedir is used.
3331 + commit d3d57a1bc88ece0c12c91f54b089482cce92c5a0
3332 * tools/gpgconf-comp.c (gc_component_launch): Fix crasg due to too
3334 (gpg_agent_runtime_change): Fix error message.
3335 (scdaemon_runtime_change): Ditto.
3336 (tpm2daemon_runtime_change): Ditto.
3337 (dirmngr_runtime_change): Ditto.
3338 (keyboxd_runtime_change): Ditto.
3340 agent: Add debug output for failed RSA signature verification.
3341 + commit 6de1ec3ba59fa54ab60b2923ba9caa77fc9d5281
3342 * agent/pksign.c (agent_pksign_do): Support ECC and DSA verification
3343 and print some debug info in the error case.
3345 common: New function to uncompress an ECC public key.
3346 + commit 935765b451aadc63fbba763a4a00f4efa0254436
3347 * common/sexputil.c (ec2os): New.
3348 (uncompress_ecc_q_in_canon_sexp): New.
3350 * common/t-sexputil.c (fail2): new.
3351 (test_ecc_uncompress): New.
3352 (main): Run new test.
3354 2021-03-26 NIIBE Yutaka <gniibe@fsij.org>
3356 scd: Fix PC/SC error handling at apdu_dev_list_start.
3357 + commit d4e5979c630c2960cf1fd5796f1060419e71cb04
3358 * scd/apdu.c (PCSC_E_NO_READERS_AVAILABLE): Add.
3359 (pcsc_error_to_sw): Handle PCSC_E_NO_READERS_AVAILABLE.
3360 (apdu_dev_list_start): Return error correctly.
3362 2021-03-24 Werner Koch <wk@gnupg.org>
3364 card: Add option --use-default-pin to command "login".
3365 + commit 73bad368dacf5334bf78af15b243d06fd1273849
3366 * tools/gpg-card.c (cmd_login): Add option.
3368 scd:p15: Make $SIGNKEY et al determination more fault tolerant.
3369 + commit 964363e788210f96a471e31ffa8fd17b534c0aa8
3370 * scd/app-p15.c (do_getattr): Change how we use gpgUsage to figure out
3373 2021-03-24 NIIBE Yutaka <gniibe@fsij.org>
3375 gpg: Fix v5 signature for clearsign.
3376 + commit 14ef703ad65850fa22d394c4d521ba602ff2cc8d
3377 * g10/sign.c (clearsign_file): Prepare EXTRAHASH.
3379 gpg: Support ECDH with v5 key.
3380 + commit 90a5b4e648b3c8a6fe645df7e61654dfdb3548be
3381 * g10/ecdh.c (build_kdf_params): Use the first 20 octets.
3382 * g10/pkglue.c (pk_encrypt): Remove length check to 20.
3383 * g10/pubkey-enc.c (get_it): Likewise.
3385 2021-03-23 Werner Koch <wk@gnupg.org>
3387 gpgconf: Fix listing of default_pubkey_algo.
3388 + commit a107b24ddb45c9eef432d456f302c1acea3af27c
3389 * tools/gpgconf-comp.c (known_options_gpg, known_options_gpgsm): No
3390 flags needed for pseudo options.
3391 (known_pseudo_options_gpg, known_pseudo_options_gpgsm): New.
3392 (gc_component): Add field known_pseudo_options.
3393 (struct read_line_wrapper_parm_s): New.
3394 (read_line_wrapper): New.
3395 (retrieve_options_from_program): Use read_line_wrapper to handle
3398 2021-03-22 Werner Koch <wk@gnupg.org>
3400 kbxd: Group the options.
3401 + commit ed82ef91459f72b955f4e342ab88a7a0949c436b
3402 * kbx/keyboxd.h (opt): Remove unused field 'batch'.
3403 * kbx/keyboxd.c (opts): Remove --batch. Add group descriptions.
3405 2021-03-22 NIIBE Yutaka <gniibe@fsij.org>
3407 gpg: Support exporting Ed448 SSH key.
3408 + commit 1524a942b645d9facbedd9ed4a472e343838b6a1
3409 * common/openpgp-oid.c (oid_ed448, openpgp_oidbuf_is_ed448): New.
3410 (openpgp_oid_is_ed448): New.
3411 * common/util.h (openpgp_oid_is_ed448): New.
3412 * g10/export.c (export_one_ssh_key): Support Ed448 key.
3414 gpg: Fix exporting SSH key.
3415 + commit 0b45c5a9941094bd4529c3bf5b1cb8ce2584b9a4
3416 * g10/export.c (export_one_ssh_key): Finish base 64 encoder before
3417 writing out the comment string.
3419 2021-03-19 Werner Koch <wk@gnupg.org>
3421 card: Support OpenPGP.1 and OpenPGP.2 for readcert and writecert.
3422 + commit 475644e049436c49de7620a1539515479ad2aa4f
3423 * tools/gpg-card.c (cmd_writecert): Allow the other key references.
3424 (cmd_readcert): Ditto.
3426 scd:openpgp: Allow reading and writing user certs for keys 1 and 2.
3427 + commit 37b1c5c2004c1147a13b388863aaa8f0caf7d71f
3428 * scd/iso7816.c (CMD_SELECT_DATA): New.
3429 (iso7816_select_data): New.
3430 * scd/app-openpgp.c (do_readcert): Allow OpenPGP.1 and OPENPGP.2
3431 (do_writecert): Ditto.
3432 (do_setattr): Add CERT-1 and CERT-2.
3434 scd:openpgp: Rename an internal variable.
3435 + commit bbdb48ec0ddd99ce23fcba42949c00a2594fb9a5
3436 * scd/app-openpgp.c (struct app_local_s): s/extcap_v3/is_v3/.
3437 s/max_certlen_3/max_certlen. Change users.
3439 scd:openpgp: Small speedup reading card properties.
3440 + commit d5fb5983232cf4d60cf6aa00d0ae5a16cf948e19
3441 * scd/app-openpgp.c (struct app_local_s): Add new flag.
3442 (get_cached_data): Force chace use if flag is set.
3443 (app_select_openpgp): Avoid reading DO 6E multiple times.
3445 2021-03-18 Werner Koch <wk@gnupg.org>
3447 scd:p15: Allow to use an auth object label with cmd CHECKPIN.
3448 + commit 85082a83c2c1bda50fe6b7aa2ac68cef4faca4c7
3449 * scd/app-p15.c (prepare_verify_pin): Allow for PRKDF to be NULL.
3450 (make_pin_prompt): Ditto.
3451 (verify_pin): Ditto.
3452 (do_check_pin): Allow using the Label to specify a PIN.
3454 card: Print PIN descriptions and fix number of printed retry counters.
3455 + commit 1ac189f2df6cedab3a133baca69558fdf6a908d4
3456 * tools/gpg-card.h (struct card_info_s): Add fields nmaxlen, nchvinfo,
3458 * tools/card-call-scd.c (release_card_info): Free chvlabels.
3459 (learn_status_cb): Parse CHV-LABEL. Set nmaxlen and nchvinfo.
3460 * tools/gpg-card.c (list_retry_counter): Print CHV labels.
3462 scd:p15: New attribute CHV-LABEL.
3463 + commit ef29a960bf06005c34093cd9a6bca5a202ed359a
3464 * scd/app-p15.c (parse_common_obj_attr): Map spaces in the lapel to
3466 (read_ef_aodf): Prettify printing of the type.
3467 (do_getattr): New attribute CHV-LABEL
3468 (do_learn_status): Emit CHV-LABEL.
3469 (verify_pin): Distinguish the PIN prompts.
3471 agent: Simplify a function.
3472 + commit 26215cb211ad93ad9cc51fb4f8257b9e3c254a4e
3473 * agent/findkey.c (agent_public_key_from_file): Use a membuf instead
3474 of handcounting space.
3476 2021-03-16 Werner Koch <wk@gnupg.org>
3478 scd:p15: Implement CHV-STATUS attribute.
3479 + commit bf1d7bc3697c7d650994ba94d3704af189594657
3480 * scd/command.c (send_status_direct): Return an error.
3481 * scd/app-p15.c (do_learn_status): Emit CHV-STATUS.
3482 (compare_aodf_objid): New.
3483 (do_getattr): Implement CHV-STATUS.
3485 card: Generalize the CHV counter printing.
3486 + commit e4c2d7be22ffb47b41a3b6c1152bd75dceed74e2
3487 * tools/gpg-card.c (list_retry_counter): New. Factored out from the
3489 (cmd_verify): Re-read the chv status.
3491 2021-03-16 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
3493 build: Check for the IBM TSS tools to run the tpm2d tests.
3494 + commit c0f50811fcf81e5ebe2df326342081cfdacfbbfc
3495 * configure.ac (TEST_LIBTSS): Make that conditional depend on the
3496 detection of tssstartup.
3498 build: Fix distcheck when tpm2dtests are run.
3499 + commit ad481666ea6ef3743041ec6d043a3e6901ebab33
3500 * tests/tpm2dtests/Makefile.am (EXTRA_DIST): Distribute test files.
3501 (CLEANFILES): Make sure to remove log files.
3503 2021-03-15 James Bottomley <James.Bottomley@HansenPartnership.com>
3505 tests:tpm2d: add missing start_sw_tpm.sh script.
3506 + commit a788f2e8306d80f7f3df34eb62ec7ce1a62d48e1
3507 * tests/tpm2dtests/start_sw_tpm.sh: New.
3508 * tests/tpm2dtests/Makefile.am: Add.
3510 2021-03-15 Werner Koch <wk@gnupg.org>
3512 gpg: New option --no-auto-trust-new-key.
3513 + commit 1523b5f76f6e600c4f2d153b49a807ff2dc8d268
3514 * g10/gpg.c (oNoAutoTrustNewKey): New.
3515 (opts): Add --no-auto-trust-new-key.
3517 * g10/options.h (opt): Add flags.no_auto_trust_new_key.
3519 build: new option to disable building of tpm2daemon.
3520 + commit 8d6123faa8cae0bad6f82c9021e9ac6686b2f55d
3521 * configure.ac (build_tpmd): New configure option --disable-tpm2d
3522 (BUILD_WITH_TPM2D): New.
3523 * Makefile.am (tests): Use conditionally BUILD_TPM2D instead of
3525 * build-aux/speedo.mk (speedo_pkg_gnupg_configure) [W32]: Do not build
3527 * autogen.rc: Ditto.
3529 2021-03-15 NIIBE Yutaka <gniibe@fsij.org>
3531 scd: Add handling of Ed448 key.
3532 + commit b743942a9719be59f1da67cd338248fe7ee5aeab
3533 * scd/app-openpgp.c (struct app_local_s): Add ecc.algo field.
3534 (send_key_attr): Use ecc.algo field.
3535 (ecc_read_pubkey): Use ecc.algo field.
3536 (ecc_writekey): Ed448 means EdDSA.
3537 (parse_algorithm_attribute): Set ecc.algo field from card.
3538 Add checking for Ed25519 for ECC_FLAG_DJB_TWEAK flag.
3540 scd: Fix count_sos_bits handling.
3541 + commit f482e4bd121ff2862bfb53a82f1d5c2cf3524a10
3542 * scd/app-openpgp.c (count_sos_bits): Handle an exceptional case.
3544 common: Fix the NBITS of Ed448in OIDTABLE.
3545 + commit 373b52e69a6ca609a663a0c4a018358fdf52dc7e
3546 common/openpgp-oid.c (oidtable): Ed448 uses 456-bit signature.
3548 2021-03-12 Werner Koch <wk@gnupg.org>
3550 scd: New option --pcsc-shared.
3551 + commit 5732e7a8e97cebf8e850c472e644e2a9b040836f
3552 * scd/scdaemon.h (opt): Add field opcsc_shared.
3553 * scd/scdaemon.c (opcscShared): New.
3554 (opts): Add "--pcsc-shared".
3556 * scd/apdu.c (connect_pcsc_card): Use it.
3557 (pcsc_get_status): Take flag in account.
3558 * scd/app-openpgp.c (cache_pin): Bypass in shared mode.
3559 (verify_chv2: Do not auto verify chv1 in shared mode.
3560 * scd/app-piv.c (cache_pin): By pass caceh in shared mode.
3562 2021-03-12 NIIBE Yutaka <gniibe@fsij.org>
3564 scd: Fix computing fingerprint for ECC with SOS.
3565 + commit 95156ef9bfb6a3a525454d50ae2f5b538ccbd774
3566 * scd/app-openpgp.c (count_sos_bits): New. Count as sos_write does.
3567 (store_fpr): For ECC, use count_sos_bits.
3569 gpg: Fix compute_fingerprint for ECC with SOS.
3570 + commit cfc1497efa8c98cf490f5efc9b280a6ec44514bd
3571 * g10/keyid.c (hash_public_key): Tweak NBITS just as sos_write does.
3573 2021-03-11 Valtteri Vuorikoski <vuori@notcom.org>
3575 scd:piv: Improve APT parser compatibility.
3576 + commit 8cad11d13b15b0ef672545b06450dfbea1fef18e
3577 * scd/app-piv.c (app_select_piv): Allow for full AID.
3579 2021-03-11 Werner Koch <wk@gnupg.org>
3581 gpg: New option --force-sign-key.
3582 + commit fe02ef04500c1b35cd27132fb99ac1961f555193
3583 * g10/gpg.c (oForceSignKey,opts): New option "--force-sign-key".
3585 * g10/options.h (opt): New flag flags.force_sign_key.
3586 * g10/keyedit.c (sign_uids): Use new flag.
3588 2021-03-11 James Bottomley via Gnupg-devel <gnupg-devel@gnupg.org>
3590 tpmd2: Add Support for the Intel TSS.
3591 + commit b9c560e3a400da83073b232ee12fae090b21d20c
3592 * configure.ac: Check for Intel TSS.
3593 * tpm2d/intel-tss.h: New.
3594 * tpm2d/tpm2.h (HAVE_INTEL_TSS): Use the Intel code.
3596 2021-03-10 James Bottomley <James.Bottomley@HansenPartnership.com>
3598 tpm2d: add tests for the tpm2daemon.
3599 + commit 6720f1343aef9342127380b155c19e12c92d65ac
3600 * configure.ac: Detect TPM emulator and enable tests.
3601 * tests/tpm2dtests/: New test suite.
3602 * tests/Makefile.am: Run tests.
3604 gpg: Add new command keytotpm to convert a private key to TPM format.
3605 + commit 92b601fceec7da64939591001dba94e202f6e6a0
3606 * agent/command.c (cmd_keytotpm): New.
3607 (agent/command.c): Register new command KEYTOTPM.
3608 * g10/call-agent.c (agent_keytotpm): New.
3609 * g10/keyedit.c (cmdKEYTOTPM): New command "keytotpm".
3610 (keyedit_menu): Implement.
3612 agent: Add new shadow key type and functions to call tpm2daemon.
3613 + commit 1f995b9ba42b76c1d83b484e5362548a54a70dab
3614 * agent/call-tpm2d.c: New.
3615 * divert-tpm2.c: New.
3616 * agent/Makefile.am: Add new files.
3617 * agent/agent.h (DAEMON_TPM2D): New. Add stub fucntions.
3618 * agent/call-daemon.c (GNUPG_MODULE_NAME_TPM2DAEMON): New.
3619 * agent/command.c (do_one_keyinfo): Handle tpmv2.
3620 * agent/gpg-agent.c (oTpm2daemonProgram): New.
3621 (opts): New option --tpm2daemon-program.
3622 (parse_rereadable_options): Handle option.
3623 * agent/pkdecrypt.c (agent_pkdecrypt): Divert to tpm2d.
3624 (agent_pksign_do): Ditto.
3627 A new shadow key type: "tpm2-v1" is introduced signalling that the
3628 shadowed key is handled by the tpm2daemon. A function to identify
3629 this type is introduced and diversions to the tpm2daemon functions are
3630 conditioned on this function for pkign and pkdecrypt where the same
3631 diversions to scd are currently done. The (info) field of the
3632 shadowed key stores the actual TPM key. The TPM key is encrypted so
3633 only the physical TPM it was created on can read it (so no special
3634 protection is required for the info filed), but if the (info) field
3635 becomes corrupt or damaged, the key will be lost (unlike the token
3636 case, where the key is actually moved inside the token).
3638 Note, this commit adds handling for existing TPM format shadow keys,
3639 but there is still no way to create them.
3643 * Add ChangeLog entries.
3644 * Some minor indentation fixes.
3645 * agent/Makefile.am (gpg_agent_SOURCES): Change to make distcheck
3647 * agent/agent.h [!HAVE_LIBTSS]: Do not return -EINVAL but an
3648 gpg_error_t. Mark args as unused.
3649 * agent/protect.c (agent_is_tpm2_key): Free BUF.
3651 tpm2d: Add tpm2daemon code.
3652 + commit 62a7854816b8f3661fb41f05463289e5b96663ee
3653 * tpm2d: New directory.
3654 * Makefile.am (SUBDIRS): Add directory.
3655 * configure.ac: Detect libtss and decide whether to build tpm2d.
3656 * am/cmacros.am: Add a define.
3657 * util.h (GNUPG_MODULE_NAME_TPM2DAEMON): New.
3658 * common/homedir.c (gnupg_module_name): Add tpm2d.
3659 * common/mapstrings.c (macros): Add "TPM2DAEMON".
3660 * tools/gpgconf.h (GC_COMPONENT_TPM2DAEMON): New.
3661 * tools/gpgconf-comp.c (known_options_tpm2daemon): New.
3662 (gc_component): Add TPM2.
3663 (tpm2daemon_runtime_change): New.
3664 * tpm2d/Makefile.am: New.
3665 * tpm2d/command.c: New.
3666 * tpm2d/ibm-tss.h: New.
3667 * tpm2d/tpm2.c: New.
3668 * tpm2d/tpm2.h: New.
3669 * tpm2d/tpm2daemon.c: New.
3670 * tpm2d/tpm2daemon.h: New.
3673 This commit adds and plumbs in a tpm2daemon to the build to mirror the
3674 operation of scdaemon. The architecture of the code is that
3675 tpm2daemon.c itself is pretty much a clone of scd/scdaemon.c just with
3676 updated function prefixes (this argues there could be some further
3677 consolidation of the daemon handling code). Note that although this
3678 commit causes the daemon to be built and installed, nothing actually
3679 starts it or uses it yet.
3684 command.c is copied from the command handler in scd.c except that the
3685 command implementation is now done in terms of tpm2 commands and the
3686 wire protocol is far simpler. The tpm2daemon only responds to 4
3689 IMPORT: import a standard s-expression private key and export it to
3690 TPM2 format. This conversion cannot be undone and the
3691 private key now can *only* be used by the TPM2. To anyone
3692 who gets hold of the private key now, it's just an
3693 encrypted binary blob.
3695 PKSIGN: create a signature from the tpm2 key. The TPM2 form private
3696 key is retrieved by KEYDATA and the hash to be signed by
3697 EXTRA. Note there is no hash specifier because the tpm2
3698 tss deduces the hash type from the length of the EXTRA
3699 data. This is actually a limitation of the tpm2 command
3700 API and it will be interesting to see how this fares if the
3701 tpm2 ever supports say sha3-256 hashes.
3703 PKDECRYPT: decrypt (RSA case) or derive (ECC case) a symmetric key.
3704 The tpm2 for private key is retrieved by KEYDATA and the
3705 information used to create the symmetric key by EXTRA.
3707 KILLTPM2D: stop the daemon
3709 All the tpm2 primitives used by command.c are in tpm2.h and all the
3710 tpm2 specific gunk is confined to tpm2.c, which is the only piece of
3711 this that actually does calls into the tss library.
3714 Changes from James' patch:
3716 - gpgconf: The displayed name is "TPM" and not "TPM2". That
3717 string is used by GUIs and should be something the user
3718 understands. For example we also use "network" instead
3720 - Removed some commented includes.
3721 - Use 16 as emulation of GPG_ERR_SOURCE_TPM2.
3722 - Silenced a C90 compiler warning and flags unused parameters.
3723 - Removed "if HAVE_LIBS" from tpm2/Makefile.am and add missing
3724 files so that make distcheck works.
3726 2021-03-10 Werner Koch <wk@gnupg.org>
3728 scd:p15: Support special extended usage flags for OpenPGP keys.
3729 + commit 08b5ac492afc6c6e7eaaa1f70d67c81cbda2c9be
3730 * scd/app-p15.c (struct gpgusage_flags_s): New.
3731 (struct prkdf_object_s): Add field gpgusage.
3732 (struct app_local_s): Add field any_gpgusage.
3733 (dump_gpgusage_flags): New.
3734 (read_p15_info): Parse athe gpgusage flags.
3735 (do_getattr): Take care of the gpgusage flags.
3737 2021-03-08 Werner Koch <wk@gnupg.org>
3739 sm: Init nPth which might be used by some helper code.
3740 + commit a4021d9be4aeac7429bf6a8e9f336dbb62cacfc4
3741 * sm/gpgsm.c: Include npth.h.
3744 w32: Cleanup use of pid_t in call-daemon.
3745 + commit 33c492dcb955bff01fffae31fb7750f88e07b8ff
3746 * agent/call-daemon.c (struct wait_child_thread_parm_s) [W32]: Do not
3747 use HANDLE for pid_t.
3748 (wait_child_thread): Ditto.
3750 w32: Change spawn functions to use Unicode version of CreateProcess.
3751 + commit cf2f6d8a3f0594c03c383b4989a3041e9c4536d7
3752 * common/exechelp-w32.c (gnupg_spawn_process): Change to use
3754 (gnupg_spawn_process_fd): Ditto.
3755 (gnupg_spawn_process_detached): Ditto.
3756 * g10/exec.c (w32_system): Ditto.
3758 2021-03-08 NIIBE Yutaka <gniibe@fsij.org>
3761 + commit fc99f77b14b6c2cdfb547607651922c16863dcf0
3762 * scd/app-openpgp.c (do_decipher): Support with no prefix.
3764 2021-03-05 Werner Koch <wk@gnupg.org>
3766 w32: Always use Unicode for console input and output.
3767 + commit 8c41b8aac3efb78178fe1eaf52d8d1bbc44941a8
3768 * common/init.c (_init_common_subsystems) [W32]: Set the codepage to
3769 UTF-8 for input and putput. Switch gettext to UTF-8.
3770 * tools/gpgconf.c (main): Display the input and output codepage if
3772 * g10/gpg.c (utf8_strings) [W32]: Make sure this is always set.
3774 w32: Free memory allocated by new function w32_write_console.
3775 + commit 31b708e268ebb725307856865f34a61670a35586
3776 * common/ttyio.c (w32_write_console): Free buffer.
3778 common,w32: Allow Unicode input and output with the console.
3779 + commit f165c8a737cc968554c9d78932c69869456108ff
3780 * common/ttyio.c (do_get) [W32]: Use ReadConsoleW.
3781 (w32_write_console): New.
3782 (tty_printf, tty_fprintf) [W32]: Use new function.
3784 common: Re-indent ttyio.c and remove EMX, RISCOS, and CE support.
3785 + commit 8622f53994249d8fb49a488cfe480ffbeb8cbfba
3786 * common/ttyio.c: Remove cruft like EMX and RISCOS support. Translate
3787 a few strings. Re-indent.
3789 2021-03-04 Werner Koch <wk@gnupg.org>
3791 common: Rename w32-misc.c to w32-cmdline.c.
3792 + commit 7262d602d802c4a3840097d5de217fcfb9728b49
3793 * common/w32-misc.c: Rename to ....
3794 * common/w32-cmdline.c: this.
3795 * common/Makefile.am: Adjust.
3797 common,w32: Implement globing of command line args.
3798 + commit 089c9439674e8ecbc64f0ba924e6fb447bbc2b9d
3799 * common/w32-misc.c [W32]: Include windows.h
3800 (struct add_arg_s): New.
3803 (parse_cmdstring): Add arg argvflags and set it.
3804 (w32_parse_commandline): Add arg r_itemsalloced. Add globing.
3806 * common/init.c (prepare_w32_commandline): Mark glob created items as
3809 * common/t-w32-cmdline.c : Include windows.h
3810 (test_all): Add simple glob test for Unix.
3811 (main): Add manual test mode for Windows.
3813 common,w32: Refine the command line parsing for \ in quotes.
3814 + commit 20c60076866904187a09393de596deef286116f8
3815 * common/t-w32-cmdline.c (test_all): Add new test cases.
3816 * common/w32-misc.c (strip_one_arg): Add arg endquote.
3817 (parse_cmdstring): Take care of backslashes in quotes.
3819 gpg: Prepare for globing with UTF-8.
3820 + commit 8e15506d6680bbee85bc01453da28fc90b4cb673
3821 * g10/gpg.c (_dowildcard): Remove.
3822 (my_strusage): Enable wildcards using our new system.
3824 common: First take on handling Unicode command line args.
3825 + commit deb6c94362c0f179de1cac18707aad2f51a21e10
3826 * common/w32-misc.c: New.
3827 * common/t-w32-cmdline.c: New.
3828 * common/init.c: Include w32help.h.
3829 (prepare_w32_commandline): New.
3830 (_init_common_subsystems) [W32]: Call prepare_w32_commandline.
3832 * common/Makefile.am (common_sources) [W32]: Add w32-misc.c
3833 (module_tests): Add t-w32-cmdline
3834 (t_w32_cmdline_LDADD): New.
3836 2021-03-01 Nicolas Fella via Gnupg-devel <gnupg-devel@gnupg.org>
3838 gpg: Keep temp files when opening images via xdg-open.
3839 + commit be2da244565822ad1f268f84dc88a23e5aa8d26a
3840 * g10/photoid.c (get_default_photo_command): Change parameter for
3843 2021-02-25 Werner Koch <wk@gnupg.org>
3845 scd:p15: Read out the access flags.
3846 + commit d51a5ca1084c69c0ed304126a7aaa0a648b2eba6
3847 * scd/app-p15.c (struct keyaccess_flags_s): New.
3848 (struct prkdf_object_s): Add field accessflags.
3849 (dump_keyusage_flags): New.
3850 (dump_keyaccess_flags): New.
3851 (parse_keyaccess_flags): New.
3852 (parse_common_key_attr): Return access flags.
3853 (read_ef_prkdf): Parse the access flags. Allow for ECkeys.
3854 (read_ef_pukdf): Ditto. Use new functions for printing.
3855 (read_p15_info): Use new fucntion for printing.
3857 sm: Do not print certain issuer not found diags in quiet mode.
3858 + commit a170f0e73f38e474b6d4463433fe344eca865fa5
3859 * sm/certchain.c (find_up_dirmngr): Print one diagnostic only in
3860 verbose mode. Do not print issuer not found diags in quiet mode.
3861 * sm/minip12.c (parse_bag_data): Add missing verbose condition.
3863 sm: Fix issuer certificate look error due to legacy error code.
3864 + commit 473b83d1b9efe51fcca68708580597dddf3f50b7
3865 * sm/certchain.c (find_up): Get rid of the legacy return code -1 and
3866 chnage var name rc to err.
3867 (gpgsm_walk_cert_chain): Change var name rc to err.
3868 (do_validate_chain): Get rid of the legacy return code -1.
3870 2021-02-24 Werner Koch <wk@gnupg.org>
3872 scd:p15: Get the label value of all objects for better diagnostics.
3873 + commit cfdaf2bcc85b3b6f16904006f239b400a3487ff8
3874 * scd/app-p15.c (struct cdf_object_s): Add fields authid, authidlen,
3876 (struct prkdf_object_s): Add field label.
3877 (struct aodf_object_s): Ditto.
3878 (release_cdflist): Free new fields.
3879 (release_prkdflist): Free new field.
3880 (release_aodf_object): Ditto.
3881 (parse_common_obj_attr): Return the label.
3882 (read_ef_prkdf): Store the label.
3883 (read_ef_pukdf): Ditto.
3884 (read_ef_cdf): Use parse_common_obj_attr and store authid and label.
3885 Print them im verbose mode.
3886 (read_ef_aodf): Store the label and print it.
3888 sm: Silence some output on --quiet.
3889 + commit 615d2e4fb15859320ea0ebec1bb457c692c57f0a
3890 * sm/encrypt.c (gpgsm_encrypt): Take care of --quiet.
3891 * sm/gpgsm.c: Include minip12.h.
3892 (set_debug): Call p12_set_verbosity.
3893 * sm/import.c (parse_p12): Dump keygrip only in debug mode.
3894 * sm/minip12.c (opt_verbose, p12_set_verbosity): New.
3895 (parse_bag_encrypted_data): Print info messages only in verbose mode.
3897 2021-02-23 Werner Koch <wk@gnupg.org>
3899 scd:p15: Make it code work again for D-Trust cards.
3900 + commit 33aaa37e5bc0beb75305cdf9d8be850daccaee5e
3901 * scd/app-p15.c (select_and_read_binary): Allow to skip the select.
3902 (select_and_read_record): Return the statusword. Silence error
3903 message for SW_FILE_STRUCT.
3904 (select_ef_by_path): Fix selection with a home_DF.
3905 (read_first_record): Fallback to read_binary for CardOS and return
3907 (read_ef_prkdf): Use info from read_first_record to decide whether to
3908 use record or binary mode.
3909 (read_ef_pukdf): Ditto.
3910 (read_ef_aodf): Ditto.
3911 (read_ef_cdf): Ditto. New arg cdftype for diagnostics.
3912 (read_p15_info): Pass cdftype.
3914 * scd/apdu.h (SW_FILE_STRUCT): New.
3915 * scd/apdu.c (apdu_strerror): Map that one to a string.
3916 * scd/iso7816.c (map_sw): and to a gpg-error.
3918 2021-02-22 Werner Koch <wk@gnupg.org>
3920 scd: Fix readkey --info in case a readkey command is available.
3921 + commit 2490f4e8e1d1feecb44aefa79bd71f5f8b06c9a4
3922 * scd/command.c (do_readkey): Make --info also work if a readkey
3923 command is available.
3925 * scd/app-p15.c (cdf_object_from_certid): Fix a but introduced with
3926 the previous commit.
3928 scd:p15: Extract extended usage flagsand act upon them.
3929 + commit 488eaedc9a332d8164dea22e469354fc10b0a253
3930 * scd/app-p15.c: Add a couple of oid constants.
3931 (struct cdf_object_s): Replace fields image and imagelen by cert.
3932 (struct prkdf_object_s): Add extusage flags
3933 (send_keypairinfo): Use them.
3934 (cdf_object_from_certid): Factor parts out to ...
3935 (cdf_object_from_objid): new function.
3936 (read_ef_prkdf): Move info printing to ...
3937 (read_p15_info): here. Fill the extusage flags.
3938 (readcert_by_cdf): Cache the ksba cert object instead of the binary
3940 * scd/app.c (select_additional_application): Fix a log_debug call.
3941 (scd_update_reader_status_file): Ditto.
3943 sm: Extend the list of known OIDs.
3944 + commit 4c9b509d2402f79668e502a9db5879280a4f683b
3945 * sm/keylist.c (oidtranstbl): Add a couple of OIDs and mark them for
3948 2021-02-19 Werner Koch <wk@gnupg.org>
3950 build: Remove now obsolete HAVE_NEWER_LIBGCRYPT AM conditional.
3951 + commit 5573ab714b92f6ee899a816998e56e1238f4c573
3952 * configure.ac (HAVE_NEWER_LIBGCRYPT): Remove conditional.
3953 * tools/Makefile.am (gpg_pair_tool_SOURCES): We build it always.
3955 scd: Minor tweak for easier backporting.
3956 + commit 6d4280b13ddc928ff6bc41bdf482030f0f814fdb
3957 * scd/app-common.h (APP_CARD): New. Use it in app-*.c to access
3960 2021-02-18 Werner Koch <wk@gnupg.org>
3962 po: Change translatability of a fallback string.
3963 + commit 0be4861762c21ebfb4c2e28bb9a3e5cfbc08e1a9
3964 * agent/call-pinentry.c (setup_genpin): Do not make the fallback
3967 speedo: Update w32 stuff from 2.2.
3968 + commit 919a969354d4021f2e64a948b4c224cd37323713
3969 * build-aux/speedo.mk: Update from 2.2. Add target w32-msi-release.
3970 * build-aux/speedo/w32/inst.nsi: Fix location of doc files.
3971 * build-aux/speedo/w32/wixlib.wxs: Add gpg-card and fix a wrong name.
3972 * Makefile.am (release): Support a WITH_MSI variable.
3973 (wixlibfile): Improve copying to archive.
3974 (release): Use AMTAR instead of TAR.
3976 2021-02-17 Werner Koch <wk@gnupg.org>
3978 dirmngr: Support new gpgNtds parameter in LDAP keyserver URLs.
3979 + commit ab7dc4b524c3e2ad5153acfdbfa879a9e62d2dbe
3980 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): Support a new gpgNtds
3982 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Do ldap_init always with
3983 hostname - which is NULL and thus the same if not given. Fix minor
3984 error in error code handling.
3986 2021-02-16 NIIBE Yutaka <gniibe@fsij.org>
3988 build: Update gpg-error.m4 again.
3989 + commit 3fa1fa747b61867076e344c3eb07a66826c1983a
3990 * m4/gpg-error.m4: Update from libgpg-error.
3992 2021-02-15 NIIBE Yutaka <gniibe@fsij.org>
3994 build: Update gpg-error.m4.
3995 + commit 985e85dc0e6c54aa465a2af610c5a04fc10649a0
3996 * m4/gpg-error.m4: Update from libgpg-error.
3998 2021-02-12 NIIBE Yutaka <gniibe@fsij.org>
4000 build: Update gpg-error.m4.
4001 + commit e1e3f1db4660b5416828aeb636a7f767fadcc7a4
4002 * m4/gpg-error.m4: Update from libgpg-error.
4004 build: Fix library dependency of g13 test program.
4005 + commit 83e0a9d6b990aa517bc338b578f7faf393ae1b0d
4006 * g13/Makefile.am (t_common_ldadd): Add GPG_ERROR_LIBS.
4008 2021-02-10 Werner Koch <wk@gnupg.org>
4010 gpg: Do not allow old cipher algorithms for encryption.
4011 + commit 825dd7220ff6079cbe2d0df7fde93526c077fb6d
4012 * g10/gpg.c: New option --allow-old-cipher-algos.
4013 (set_compliance_option): Set --rfc4880bis explictly to SHA256 and
4014 AES256. Allow old cipher algos for OpenPGP, rfc4880, and rfc2440.
4015 * g10/options.h (opt): Add flags.allow_old_cipher_algos.
4016 * g10/misc.c (print_sha1_keysig_rejected_note): Always print the note
4017 unless in --quiet mode.
4018 * g10/encrypt.c (setup_symkey): Disallow by default algos with a
4020 (encrypt_crypt): Ditto. Fallback by default to AES instead of 3DES.
4021 * g10/pkclist.c (algo_available): Take care of old cipher also.
4022 (select_algo_from_prefs): Use AES as implicit algorithm by default.
4024 * tests/openpgp/defs.scm (create-gpghome): Set allow-old-cipher-algos.
4026 Remove obsolete M4 macros.
4027 + commit 6e730c18816fbb3e074d93840396ed18f00ab7e2
4028 * m4/gnupg-pth.m4: Remove.
4029 * m4/libcurl.m4: Remove.
4031 Require GpgRT version 1.41.
4032 + commit 2b75b256054427119a284792540243c3471267d4
4033 * configure.ac (NEED_GPG_ERROR_VERSION): Rename to NEED_GPGRT_VERSION
4035 * common/sysutils.c (gnupg_access): Remove code for older gpgrt
4037 * kbx/backend-sqlite.c: Ditto.
4038 * sm/gpgsm.c (main): Ditto.
4040 2021-02-09 Werner Koch <wk@gnupg.org>
4042 build: Make make distcheck work again.
4043 + commit f9e4dae08d7caed741d35916c46b8302e098d521
4044 * m4/Makefile.am (EXTRA_DIST): Remove isc-posix.m4
4046 tools: Remove the symcryptrun tool.
4047 + commit 209b7113f3493bd829ec5c90275ff95a273d9dd4
4048 * tools/symcryptrun.c: Remove.
4049 * tools/Makefile.am: Ditto.
4050 * doc/tools.texi: Remove man page.
4051 * configure.ac: Remove build option and tests used only by this tool.
4052 * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Do not build
4055 2021-02-05 NIIBE Yutaka <gniibe@fsij.org>
4057 gpg: Fix selection of key.
4058 + commit 390f597868a5b5934f21f81ebf6ff110b6792283
4059 * g10/getkey.c (pubkey_cmp): Handle the case of TRUST_EXPIRED.
4061 2021-02-02 Werner Koch <wk@gnupg.org>
4063 gpg: Remove support for PKA.
4064 + commit 7f3ce66ec56a5aea6170b7eb1bda5626eb208c83
4065 * g10/gpg.c (oPrintPKARecords): Remove.
4066 (opts): Remove --print-pka-records.
4067 (main): Remove "pka-lookups","pka-trust-increase" and other PKA stuff.
4068 * g10/options.h (EXPORT_DANE_FORMAT): Remove.
4069 (VERIFY_PKA_LOOKUPS, VERIFY_PKA_TRUST_INCREASE): Remove.
4070 (KEYSERVER_HONOR_PKA_RECORD): Remove.
4071 * g10/packet.h (pka_info_t): Remove.
4072 (PKT_signature): Remove flags.pka_tried and pka_info.
4073 * g10/parse-packet.c (register_known_notation): Remove
4074 "pka-address@gnupg.org".
4075 * g10/pkclist.c (check_signatures_trust): Remove PKA stuff.
4076 * g10/call-dirmngr.c (gpg_dirmngr_get_pka): Remove.
4077 * g10/export.c (parse_export_options): Remove "export-pka".
4078 (do_export): Adjust for this.
4079 (write_keyblock_to_output): Ditto.
4080 (do_export_stream): Ditto.
4081 (print_pka_or_dane_records): Rename to ...
4082 (print_dane_records): this and remove two args. Remove PKA printing.
4083 * g10/free-packet.c (free_seckey_enc, cp_pka_info): Adjust for removed
4085 * g10/getkey.c (get_pubkey_byname): Make AKL_PKA a dummy.
4086 * g10/keyserver.c: Remove "honor-pka-record".
4087 (keyserver_import_pka): Remove.
4088 * g10/mainproc.c (get_pka_address): Remove.
4089 (pka_uri_from_sig): Remove.
4090 (check_sig_and_print): Remove code for PKA.
4092 gpg: Remove more or less useless tool gpgcompose.
4093 + commit fde7d833573d358b2c5b5eb7d837bc27c6dcb3d1
4094 * g10/gpgcompose.c: Remove
4096 gpg: Remove experimental feature to export w/o user-ids.
4097 + commit 3491faa3bb62c1c96c6dd5947516128b2a966535
4098 * g10/options.h (IMPORT_DROP_UIDS, EXPORT_DROP_UIDS): Remove.
4099 * g10/import.c (parse_import_options): Remove option import-drop-uids.
4100 (import_one_real): Remove drop uids code.
4101 (remove_all_uids): Remove function.
4102 * g10/export.c (parse_export_options): Remove option export-drop-uids.
4103 (do_export_one_keyblock): Remove drop uids code.
4105 card: List keys of pkcs#15 cards.
4106 + commit a06c79b6143fc49e6f5169b8a9f53c691031d6ca
4107 * tools/gpg-card.c (list_p15): New.
4108 (list_card): Call it.
4110 scd:p15: Read PuKDF and minor refactoring.
4111 + commit 0c080ed5791ecf1606d1c2fddc0c55362fd171d3
4112 * scd/app-p15.c (pukdf_object_t): New.
4113 (struct app_local_s): Add field public_key_info.
4114 (release_pukdflist): New.
4115 (select_and_read_record): No diagnostic in case of not_found.
4116 (read_first_record): New. Factored out from the read_ef_ fucntions.
4117 (read_ef_pukdf): New. Basically a copy of read_ef_prkdf for now.
4118 (read_p15_info): Also read the public keys.
4120 (cardtype2str): New.
4121 (read_ef_tokeninfo): Print a string with the cardtype.
4123 2021-02-01 Werner Koch <wk@gnupg.org>
4125 sm: Add a few OIDs and merge OID tables.
4126 + commit 0737dc8187a0eb9ca4661e2ad45954c718daa451
4127 * sm/keylist.c (OID_FLAG_KP): New.
4128 (key_purpose_map): Merge into ...
4129 (oidtranstbl): this.
4130 (get_oid_desc): New arg 'matchflag'. Use function in place of direct
4131 access to key_purpose_map.
4133 2021-01-28 Werner Koch <wk@gnupg.org>
4135 Include the library version in the compliance checks.
4136 + commit 90c514868ff5fcf6d39490d4874ac3a31ba9e85f
4137 * common/compliance.c (gnupg_gcrypt_is_compliant): New.
4138 (gnupg_rng_is_compliant): Also check library version.
4139 * g10/mainproc.c (proc_encrypted): Use new function.
4140 (check_sig_and_print): Ditto.
4141 * sm/decrypt.c (gpgsm_decrypt): Ditto.
4142 * sm/encrypt.c (gpgsm_encrypt): Ditto.
4143 * sm/verify.c (gpgsm_verify): Ditto
4145 2021-01-27 Werner Koch <wk@gnupg.org>
4147 scd:p15: Make file selection more robust.
4148 + commit 1e197c29ed95d021f5693cd3652b6acb07d928ea
4149 * scd/app-p15.c: Include host2net.h.
4150 (DEFAULT_HOME_DF): New.
4151 (select_and_read_binary): Replace slot by app. Change callers. Use
4153 (select_and_read_record): ditto.
4154 (select_ef_by_path): Make use use the home_df.
4155 (parse_certid): Adjust for always set home_df.
4156 (print_tokeninfo_tokenflags): Ditto.
4157 (app_select_p15): Take the home_df from the FCI returned by select.
4159 scd: Define new status word.
4160 + commit 7620473cd007c074b0625a678caa6105a4c87142
4161 * scd/apdu.h (SW_NO_CURRENT_EF): New.
4163 scd:p15: Factor the commonKeyAttributes parser out.
4164 + commit 5bcbc8cee310067aa3cc48665b0fb0595c64ae4d
4165 * scd/app-p15.c (read_ef_prkdf): Fix detection of unsupported key
4166 objects. Factor some code out to ...
4167 (parse_common_key_attr): new.
4169 gpg: Fix ugly error message for an unknown symkey algorithm.
4170 + commit b08418d22cc898c9d135217e07ca77f3daf3c9e9
4171 * g10/mainproc.c (proc_symkey_enc): Do not continue with an unknown
4174 2021-01-26 Werner Koch <wk@gnupg.org>
4176 scd:p15: Factor the commonObjectAttributes parser out.
4177 + commit fb84674d6c645a423b8ed9835437d25e4893e183
4178 * scd/app-p15.c (parse_common_obj_attr): New.
4179 (read_ef_prkdf): Use new function.
4180 (read_ef_aodf): Ditto.
4182 scd:p15: First step towards real CardOS 5 support.
4183 + commit fc287c0552b0fe489c66bb493879f4330c34f287
4184 * scd/iso7816.c (iso7816_select_path): Add arg from_cdf.
4185 * scd/app-nks.c (do_readkey): Adjust for this change.
4187 * scd/app-p15.c (CARD_TYPE_CARDOS_53): New.
4189 (card_atr_list): Add standard ATR for CardOS 5.3.
4190 (select_and_read_binary): Remove the fallback to record read hack.
4191 (select_and_read_record): New.
4192 (select_ef_by_path): Rework and support CardOS feature.
4193 (read_ef_prkdf): Use read record for CardOS.
4194 (read_ef_cdf): Ditto.
4195 (read_ef_aodf): Ditto. Also fix bug in the detection of other
4196 unsupported attribute types.
4197 (verify_pin): Use IS_CARDOS_5 macro.
4198 (app_select_p15): Force direct method for CardOS.
4200 2021-01-25 Werner Koch <wk@gnupg.org>
4202 agent: Support ssh-agent extensions for environment variables.
4203 + commit 224e26cf7b67f22bb0140133eac6b4ad24f3b1b7
4204 * common/session-env.c (session_env_list_stdenvnames): Extend to allow
4205 return all names as one string.
4206 * agent/command-ssh.c (SSH_REQUEST_EXTENSION): New.
4207 (SSH_RESPONSE_EXTENSION_FAILURE): New.
4208 (request_specs): Add handler for the extension command.
4209 (ssh_handler_extension): New.
4211 2021-01-21 Werner Koch <wk@gnupg.org>
4213 scd:p15: Show the ATR as part of the TokenInfo diagnostics.
4214 + commit 60499d98940d4b7a1673b8584cafe0f7ac2901dd
4215 * scd/app-p15.c (read_ef_tokeninfo): Print the ATR in verbose mode.
4217 2021-01-19 Werner Koch <wk@gnupg.org>
4219 Require Libgcrypt 1.9.
4220 + commit 9500432b7ae10d98b30c58de4357e2ffb93bf795
4221 * configure.ac: Require at least Libgcrypt 1.9.0. Remove all
4222 GCRYPT_VERSION_NUMBER dependent code.
4224 2021-01-12 Werner Koch <wk@gnupg.org>
4226 tools: Add option --clock to watchgnupg.
4227 + commit 93d5d7ea2a8b110b3ad88be25f2f67d706361e44
4228 * tools/watchgnupg.c (print_fd_and_time) [ENABLE_LOG_CLOCK]: Use
4230 (print_version): New option --clock.
4232 2021-01-11 Werner Koch <wk@gnupg.org>
4234 gpg,w32: Fix gnupg_remove.
4235 + commit b6967d31912912ad3c0a2ff6bf6eb9822a194562
4236 * common/sysutils.c (map_w32_to_errno): New.
4237 (gnupg_w32_set_errno): New.
4238 (gnupg_remove) [w32]: Set ERRNO
4240 2021-01-06 Ingo Klöcker <dev@ingo-kloecker.de>
4242 I meant "SHA-2 digests" in the previous commit.
4243 + commit 7eef40cc1143fb19132786ebcca1c9a6c9a85e6e
4246 scd:nks: Add support for signing plain SHA-3 digests.
4247 + commit 8fe976d5b9a0f2902868737dd502c749565222a6
4248 * scd/app-nks.c (do_sign): Handle plain SHA-3 digests and verify
4249 encoding of ASN.1 encoded hashes.
4251 2020-12-30 Werner Koch <wk@gnupg.org>
4253 wkd: Minor permission fix for created files.
4254 + commit c008e8d20e12c8845403ad7dad499f6a196ecc6a
4255 * tools/wks-util.c (wks_cmd_install_key): Don't set u+x on the file.
4256 (ensure_policy_file): No need to make the policy file group writable.
4258 2020-12-21 Werner Koch <wk@gnupg.org>
4260 common: Remove superfluous debug output from dotlock.c.
4261 + commit fc0eaa9add3c9bc93d4404988be3e1eb8f88ffa2
4262 * common/dotlock.c (dotlock_create_unix): Remove debug output.
4264 doc: Explain LDAP keyserver parameters.
4265 + commit e0cbb97925a109fee7c0a7450bcac120f2766ed2
4268 2020-12-18 Werner Koch <wk@gnupg.org>
4270 dirmngr: Do not block threads in LDAP keyserver calls.
4271 + commit 355e2992c043dd3241a9e838255f01418490ef33
4272 * dirmngr/ks-engine-ldap.c: Wrap some ldap calls.
4274 2020-12-17 Werner Koch <wk@gnupg.org>
4276 gpg: New AKL method "ntds"
4277 + commit 4a3836e2b2f9a91995d5ce058820e1121298f548
4278 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Change the new
4279 support for KEYDB_SEARCH_MODE_MAIL.
4280 (ks_ldap_get): Add a debug.
4281 * g10/options.h (AKL_NTDS): New.
4282 * g10/keyserver.c (keyserver_import_ntds): New.
4283 (keyserver_get_chunk): Allow KEYDB_SEARCH_MODE_MAIL.
4284 * g10/getkey.c (parse_auto_key_locate): Support "ntds".
4285 (get_pubkey_byname): Ditto.
4287 dirmngr: Support "ldap:///" for the current AD user.
4288 + commit 1194e4f7e2dff620e0da87f212f3a35f8021b142
4289 * dirmngr/http.h (struct parsed_uri_s): Add field ad_current.
4290 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): Set it.
4291 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Take care of ad_current.
4293 dirmngr: Allow LDAP searches via fingerprint.
4294 + commit 2cadcce3e877c857bb8859574762b59b9c193b44
4295 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Add arg
4296 serverinfo and allow searching by fingerprint.
4297 (ks_ldap_get, ks_ldap_search): First connect then create teh filter.
4299 2020-12-15 Werner Koch <wk@gnupg.org>
4301 dirmngr: Store all version 2 schema attributes.
4302 + commit a2434ccabdd1956876b44e05e07c3c3630c50f8f
4303 * g10/call-dirmngr.c (ks_put_inq_cb): Emit "fpr" records.
4304 * dirmngr/ks-engine-ldap.c (extract_attributes): Add args
4305 extract-state and schemav2. Add data for the new schema version.
4306 remove the legacy code to handle UIDs in the "pub" line.
4307 (ks_ldap_put): Set new attributes for NTDS use the fingerprint as CN.
4309 2020-12-14 Werner Koch <wk@gnupg.org>
4311 dirmngr: Support the new Active Directory schema.
4312 + commit e9ddd61fe979b1b8e1a4801f7f916d0222397245
4313 * dirmngr/ks-engine-ldap.c (SERVERINFO_): New constants.
4314 (my_ldap_connect): Relace args pgpkeyattrp and real_ldapp by a new
4315 serverinfo arg. Set the new info flags.
4316 (ks_ldap_get): Adjust for change.
4317 (ks_ldap_search): Ditto.
4318 (ks_ldap_put): Ditto. Replace xmalloc by xtrymalloc. Change the DN
4319 for use with NTDS (aka Active Directory).
4320 * doc/ldap/gnupg-ldap-init.ldif (pgpSoftware): Update definition of
4322 * doc/ldap/gnupg-ldap-ad-init.ldif: New.
4323 * doc/ldap/gnupg-ldap-ad-schema.ldif: New.
4325 dirmngr: Do not store the useless pgpSignerID in the LDAP.
4326 + commit cc056eb534c1b8f7d1a90af3b9ecb9d6b2f322fa
4327 * dirmngr/ks-engine-ldap.c (extract_attributes): Do not store the
4329 * g10/call-dirmngr.c (ks_put_inq_cb): Do not emit sig records.
4331 dirmngr: Fix adding keys to an LDAP server.
4332 + commit 37a899d0e4fd49512d522e7f6f86b6968309fece
4333 * dirmngr/ks-engine-ldap.c (ks_ldap_put): Extract attribites into
4336 2020-12-11 NIIBE Yutaka <gniibe@fsij.org>
4338 scd:nks: Support READKEY with keygrip and for "NKS-IDLM" keyref.
4339 + commit 3b392630881350baabeba16fa760bad04be94d03
4340 * scd/app-nks.c (do_readkey): Allow KEYGRIP access.
4341 Support NKS-IDLM.XXXX keyref.
4343 scd:nks: Factor out pubkey retrieval from keygrip handling.
4344 + commit b7c087375d84c31ab8a645cd81e6b1e6185cb30d
4345 * scd/app-nks.c (pubkey_from_pk_file): New.
4346 (keygripstr_from_pk_file): Use pubkey_from_pk_file.
4348 2020-12-10 NIIBE Yutaka <gniibe@fsij.org>
4350 scd:nks: Add support of KEYGRIP for do_readcert.
4351 + commit 4020cd9d656264bec5e7fb5e45c5e06eff8656c3
4352 * scd/app-nks.c (do_readcert): Support KEYGRIP.
4354 scd:nks: Factor out iteration over filelist.
4355 + commit 6c4365847666cefac73ccc743a99fac473da2186
4356 * scd/app-nks.c (iterate_over_filelist): New.
4357 (do_with_keygrip): Use iterate_over_filelist.
4359 2020-12-09 Werner Koch <wk@gnupg.org>
4361 wks-client: Improve an error message.
4362 + commit c7c88648b71b8ce3a5507946afb91761fc6d931e
4363 * tools/gpg-wks-client.c (read_confirmation_request): Print trust
4366 2020-12-09 NIIBE Yutaka <gniibe@fsij.org>
4368 scd:ccid:spr532: Extend abort_cmd for initialization time.
4369 + commit a9aa30ed2c2c399c2baa6a5aa2624d8fdee6286f
4370 * scd/ccid-driver.c (abort_cmd): Add INIT argument to support
4371 synchronize until success, even ignoring timeout.
4372 (bulk_in): Normal use case of abort_cmd.
4373 (ccid_vendor_specific_init): Initial use case of abort_cmd.
4375 scd:ccid: Call libusb_clear_halt in ccid_vendor_specific_setup.
4376 + commit f50373027222f28ab9d37843178a5d44cc1e3cc0
4377 * scd/ccid-driver.c (ccid_vendor_specific_setup): Only for SPR532,
4378 call libusb_clear_halt.
4380 scd:ccid: Revert the addition of libusb_clear_halt for EP_INTR.
4381 + commit ffabc29d5eadfe81b9f62b7d4fe6e858b191354d
4382 * scd/ccid-driver.c (ccid_setup_intr): Don't call libusb_clear_halt.
4384 2020-12-08 NIIBE Yutaka <gniibe@fsij.org>
4386 scd:yubikey: Fix support of Yubikey NEO.
4387 + commit 946555ea3ceb823b95ed13654ae4fd667daa4337
4388 * scd/app-openpgp.c (get_public_key): Yubikey NEO also has this issue.
4390 agent: Allow decryption with card but no file.
4391 + commit eda3c688fc2e85c7cd63029cb9caf06552d203b4
4392 * agent/pkdecrypt.c (agent_pkdecrypt): Support decryption with card
4393 but without a stub key.
4395 agent: Clean up the API of agent_pkdecrypt.
4396 + commit 9beab36dfa39106f6efd1bb89551a581bcf9df60
4397 * agent/agent.h (agent_pkdecrypt): Use gpg_error_t type.
4398 * agent/pkdecrypt.c (agent_pkdecrypt): Use gpg_error_t type.
4400 agent: Allow pksign operation with card but no file.
4401 + commit cbb0e069f55bc45037bbd69d54ce23dae2af2ac6
4402 * agent/pksign.c (agent_pksign_do): Add support with no file.
4404 2020-12-07 Ingo Klöcker <dev@ingo-kloecker.de>
4406 gpg: Make quick-gen-key with algo "card" work for keys without keytime.
4407 + commit 255d33d65126df00bc036580d0b32735d7178c8b
4408 * g10/keygen.c (quick_generate_keypair): Set pCARDKEY flag if algostr
4409 is "card" or "card/...".
4411 2020-12-07 NIIBE Yutaka <gniibe@fsij.org>
4413 gpg,card: Allow no version information of Yubikey.
4414 + commit 1cd615afe3010d2c3919de489d7c9a78513c8694
4415 * g10/call-agent.c (learn_status_cb): Assume >= 2 when no version.
4416 * tools/card-call-scd.c (learn_status_cb): Likewise.
4418 2020-12-03 NIIBE Yutaka <gniibe@fsij.org>
4420 scd:nks: Fix caching keygrip (more).
4421 + commit 87d2c579cc38c1d2787945650125fb0e0336652c
4422 * scd/app-nks.c (keygripstr_from_pk_file): Distinguish by APP_ID.
4424 scd: Fix KEYINFO command with --data option.
4425 + commit 54b88ae4606265f3d51c1ca603dbf846f3dfd678
4426 * scd/command.c (cmd_keyinfo): Handle --data option correctly.
4428 scd:openpgp: Fix writing ECC key to card.
4429 + commit a25c99b156ca9acaa7712e9c09a6df0a7a23c833
4430 * scd/app-openpgp.c (build_privkey_template): Adding another argument
4431 of ecc_d_fixed_len to handle variable-size MPI.
4433 2020-12-02 Werner Koch <wk@gnupg.org>
4435 kbx: Better error message in case of a crippled Libgcrypt.
4436 + commit 63ed2054a1f3cfbdff5cda390952f10a512dab83
4437 * kbx/keybox-openpgp.c (keygrip_from_keyparm): Detect missing curve.
4439 2020-12-01 Jens Meißner <meissner@b1-systems.de>
4441 doc: Add parameters for batch generation of ECC keys.
4442 + commit 4f9ac5dac093300ac18fd3732bffdd2a3fc38776
4443 * doc/gpg.texi: Add parameters for batch generation of ECC keys.
4445 2020-11-30 Werner Koch <wk@gnupg.org>
4447 scd:nks: Minor additions to the basic IDLM application support.
4448 + commit 806547d9d243b26c2275fc00c645ee39d258b49b
4449 * scd/app-nks.c (filelist): Use special value -1 for IDLM pubkeys.
4450 (keygripstr_from_pk_file): Handle special value.
4451 (do_readcert): Ditto.
4452 (do_writecert): Ditto.
4454 2020-11-27 Werner Koch <wk@gnupg.org>
4456 card: Let the APDU command prints a description of the status word.
4457 + commit ad469609b101fe6c1128135180fef8eae13279ff
4458 * tools/card-call-scd.c (scd_apdu_strerror): New.
4459 * tools/gpg-card.c (cmd_apdu): Print a description.
4461 scd: New getinfo sub-command apdu_strerror.
4462 + commit 0e34683a6c4b037aa50ca0f97ddb9d5c4e499084
4463 * scd/apdu.c (apdu_strerror): Add missing status codes.
4464 * scd/command.c (cmd_getinfo): New sub-command apdu_strerror.
4466 card: Netkey improvement for passwd.
4467 + commit 5804db1a13d2cf8f4010d1257c586bed978c3173
4468 * tools/gpg-card.c (cmd_passwd) [Netkey]: No Standard/QES menu if the
4469 card does not support it. Print no error in cases the user canceled.
4471 2020-11-27 NIIBE Yutaka <gniibe@fsij.org>
4473 scd:ccid-driver: Fix pinpad error handling for cancel/timeout.
4474 + commit bb591222c3c5cb1a1750b1b1dd26d0bc53b347cb
4475 * scd/apdu.h (SW_HOST_UI_CANCELLED, SW_HOST_UI_TIMEOUT): New.
4476 * scd/ccid-driver.h (CCID_DRIVER_ERR_UI_CANCELLED): New.
4477 (CCID_DRIVER_ERR_UI_TIMEOUT): New.
4478 * scd/ccid-driver.c (bulk_in): Handle PIN input cancel/timeout error.
4479 * scd/iso7816.c (map_sw): Support SW_HOST_UI_CANCELLED and
4482 2020-11-26 Werner Koch <wk@gnupg.org>
4484 agent: Fix YK s/n and prettify the request card prompt for Yubikeys.
4485 + commit 7113263a00d8c9b09f0dfdb9590bfe2bab1bc776
4486 * agent/divert-scd.c (ask_for_card): Detect and re-format the Yubikey
4488 * scd/app.c (app_munge_serialno): Fix Yubikey s/n munging.
4489 (card_get_dispserialno): Ditto.
4490 * scd/app-openpgp.c (get_disp_serialno): Remove.
4491 (get_prompt_info): Use app_get_dispserialno.--
4493 scd: Do not try to use a non-enabled app after card switching.
4494 + commit d784e763495c8d53e29a2debdd9c0e0578f15a6a
4495 * scd/app.c (app_dump_state): Also print the refcount.
4496 (maybe_switch_app): Make sure the app exists on the card.
4498 scd: Add special serialno compare for OpenPGP cards.
4499 + commit 764c69a841abc1a4dff2fa86b4cd0b63ec737860
4500 * scd/app.c (is_same_serialno): New.
4501 (check_application_conflict): Use this.
4502 (select_application): Ditto.
4503 (app_switch_current_card): Ditto.
4504 * scd/app-openpgp.c (check_keyidstr): Ignore the card version and also
4505 compare case insensitive.
4507 2020-11-26 NIIBE Yutaka <gniibe@fsij.org>
4509 gpg: Report an error for receiving key from agent.
4510 + commit 605ab99912ac632363d1b4378a710229e40ca99e
4511 * g10/export.c (do_export_one_keyblock): Report an error.
4513 scd,nks: Fix caching keygrip.
4514 + commit 920154370834ad8d947aed19c9d914a27dde6baa
4515 * scd/app-nks.c (keygripstr_from_pk_file): Identify by cfid if
4518 2020-11-25 Werner Koch <wk@gnupg.org>
4520 scd:p15: Print the internal card type.
4521 + commit 00037f499db830c75fee2111dfbef72fa11bd98a
4522 * scd/app-p15.c (read_ef_tokeninfo): Print the internal card type.
4524 scd:p15: Improve support for some CardOS based cards.
4525 + commit c7b9a4ee439eca5a4bde4781f7d8983af3b9201e
4526 * scd/iso7816.c (iso7816_read_binary_ext): Add optional arg r_sw and
4528 (iso7816_read_record): Factor all code out to ...
4529 (iso7816_read_record_ext): new.
4530 * scd/app-p15.c (select_and_read_binary): Fallback to record reading.
4531 (read_ef_aodf): Clear EOF error.
4533 scd: Rework the handling of the displayed serial number.
4534 + commit 3a8250c02031080c6c8eebd5dea03f5f87f9ddd7
4535 * scd/app.c (app_new_register): Call app_munge_serialno for Yubikeys.
4536 (app_munge_serialno): Handle Yubikey serial numbers.
4537 (card_get_serialno): Remove special Yubikey treatment. Drop arg
4539 (app_get_serialno): Clear ERRNO on error.
4540 (card_get_dispserialno): New. Also change formatting of Yubikey and
4541 OpenPGP numbers to match those printed on the card.
4542 (app_get_dispserialno): New.
4543 * scd/app-openpgp.c (do_getattr): Use app_get_dispserialno.
4544 (yubikey_get_serialno): Remove.
4545 * scd/app-piv.c (get_dispserialno): Remove.
4546 (do_getattr): Use app_get_dispserialno.
4548 2020-11-25 NIIBE Yutaka <gniibe@fsij.org>
4550 scd: Fix an error return for READKEY.
4551 + commit c3a20c88fb30b0fc4ce50a01de97fae333003682
4552 * scd/command.c (cmd_readkey): Return when error.
4554 scd,nks: Fix SEGV for learn for older card.
4555 + commit 006944b856ee2202905290e8a2f5523a7877d444
4556 * scd/app-nks.c (keygripstr_from_pk_file): Set algostr.
4558 2020-11-20 NIIBE Yutaka <gniibe@fsij.org>
4560 gpg: Change API of agent_scd_serialno.
4561 + commit 777019faf0b8f10a897c3ee477d35f9b29f02224
4562 * g10/call-agent.c (agent_scd_serialno): Extend API to allow with
4564 * g10/card-util.c (card_status): Use NULL for agent_scd_serialno.
4565 (factory_reset): Likewise.
4566 * g10/skclist.c (build_sk_list): Likewise.
4568 Fix the previous comment changes help doc string.
4569 + commit cc8b99d18e26397028ca185e44d0886a94cc1bf6
4570 * scd/command.c (hlp_learn): Fix the doc string.
4572 2020-11-19 Werner Koch <wk@gnupg.org>
4574 gpgconf: Also print revision of libksba.
4575 + commit 4070f302e4decc8d54d1305cbd30f6dab052ef7e
4576 * dirmngr/dirmngr.c (get_revision_from_blurb): Fix detection of empty
4578 (gpgconf_versions): Print ksba revision.
4580 2020-11-19 NIIBE Yutaka <gniibe@fsij.org>
4582 agent: Fix creating shadow key on card key generation.
4583 + commit 8ddadbbdbbe20b9e87eb2bfa142577e26dae297e
4584 * agent/command.c (cmd_readkey): Fix handling --card option.
4586 gpg: Fix --card-edit command.
4587 + commit e45455d3020ca8f21c54112b6dfb1cc9bd3f2623
4588 * g10/card-util.c (get_info_for_key_operation): Revert the change.
4590 2020-11-18 NIIBE Yutaka <gniibe@fsij.org>
4592 build: Update to newer autoconf constructs.
4593 + commit d66fb3aa53a6c4a815fe35a15e3c61886c5df628
4594 * acinclude.m4 (GNUPG_CHECK_ENDIAN): Use AC_COMPILE_IFELSE instead of
4595 AC_TRY_COMPILE. Use AC_RUN_IFELSE instead of AC_TRY_RUN.
4596 (GNUPG_BUILD_PROGRAM): Use AS_HELP_STRING instead of AC_HELP_STRING.
4597 * configure.ac: Use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE.
4598 Use AS_HELP_STRING instead of AC_HELP_STRING.
4599 (AC_ISC_POSIX): Replace by AC_SEARCH_LIBS.
4600 (AC_TYPE_SIGNAL): Remove.
4601 * m4/isc-posix.m4: Remove.
4602 * m4/codeset.m4: Update from gnulib.
4603 * m4/gettext.m4: Update from gnulib.
4604 * m4/lcmessage.m4: Update from gnulib.
4605 * m4/socklen.m4: Update from gnulib.
4606 * m4/ldap.m4: Use AS_HELP_STRING instead of AC_HELP_STRING.
4607 Use AC_LINK_IFELSE instead of AC_TRY_LINK.
4608 Use AC_RUN_IFELSE instead of AC_TRY_RUN.
4609 * m4/gpg-error.m4: Update from libgpg-error.
4610 * m4/readline.m4: Update from libgpg-error.
4611 * m4/npth.m4: Update from npth.
4612 * m4/libassuan.m4: Update from libassuan.
4613 * m4/libgcrypt.m4: Update from libgcrypt.
4614 * m4/ksba.m4: Update from libksba.
4615 * m4/ntbtls.m4: Update from ntbtls.
4616 * common/signal.c [!HAVE_DOSISH_SYSTEM] (init_one_signal): Replace
4618 [!HAVE_DOSISH_SYSTEM] (got_fatal_signal, got_usr_signal): Likewise.
4620 build: Use modern Autoconf check for types.
4621 + commit aeeb8e975dc740cb79954de7fec4fcfe902d3a42
4622 * common/types.h: Use HAVE_TYPE_BYTE, HAVE_USHORT_TYPEDEF,
4623 HAVE_ULONG_TYPEDEF, HAVE_U16_TYPEDEF, and HAVE_TYPE_U32.
4624 * configure.ac (byte, ushort, ulong, u16, u32): Use AC_CHECK_TYPES.
4626 2020-11-13 Werner Koch <wk@gnupg.org>
4628 gpg: Fix the encrypt+sign hash algo preference selection for ECDSA.
4629 + commit e37c2e184448f64e285f925ab9636b5f21be99f7
4630 * g10/keydb.h (pref_hint): Change from union to struct and add field
4631 'exact'. Adjust callers.
4632 * g10/pkclist.c (algo_available): Take care of the exact hint.
4633 * g10/sign.c (sign_file): Rework the hash detection from
4636 2020-11-12 Werner Koch <wk@gnupg.org>
4638 gpgconf: Yet another fix for --apply-profile.
4639 + commit e546cc78b75978a696298f2fcc072faeb7f69be4
4640 * tools/gpgconf.c (main): Use gnupg_homedir instead of
4641 default_homedir. Check for existance of the directory.
4643 2020-11-11 Werner Koch <wk@gnupg.org>
4645 w32: Replace some fopen by es_fopen.
4646 + commit d574213ce21c495d9432eeb5956e8857826876c6
4647 * agent/protect-tool.c (read_file): Replace fopen by es_fopen.
4648 * dirmngr/dirmngr-client.c (read_pem_certificate): Ditto.
4649 (read_certificate): Ditto.
4650 * g10/keydb.c (rt_from_file): Ditto.
4651 * kbx/kbxutil.c (read_file): Ditto.
4652 * g10/plaintext.c (get_output_file) [__riscos__]: Remove code.
4654 2020-11-11 NIIBE Yutaka <gniibe@fsij.org>
4656 gpg: Fix the previous commit.
4657 + commit dd2703096f3ee7f4b6b96e2b649daf85aa8d6030
4658 * g10/delkey.c (do_delete_key): Fix the condition for the error.
4660 2020-11-10 NIIBE Yutaka <gniibe@fsij.org>
4662 gpg: In batch mode, delete-secret-key is not okay without --yes.
4663 + commit f9bbc751633f38f58fecb71c33aae735e9b30241
4664 * g10/delkey.c (do_delete_key): Emit an error when not --yes.
4666 gpg: Fix agent_delete_key interaction.
4667 + commit 9854369a729b9fde43eac2e2f7154f5187378787
4668 * g10/call-agent.c (agent_delete_key): Set up CTX.
4670 2020-11-09 Werner Koch <wk@gnupg.org>
4672 card: Run factory-reset in locked stated also in gpg-card.
4673 + commit 12fd10791f1dec4ec42810d7b92c69e1ae2327b9
4674 * tools/card-call-scd.c (scd_apdu): Add more pseudo APDUs.
4675 * tools/card-misc.c (send_apdu): Handle them.
4676 * tools/gpg-card.c (cmd_factoryreset): Use lock commands.
4678 card: Run factory-reset in locked stated.
4679 + commit 8fb0d5e3c775f40e321689b35431d81425406237
4680 * scd/command.c (reset_notify): Add option --keep-lock.
4681 (do_reset): Add arg keep_lock.
4682 (cmd_lock): Send progress status.
4683 * g10/call-agent.c (agent_scd_apdu): Add more pseudo APDUs.
4684 * g10/card-util.c (send_apdu): Ditto.
4685 (factory_reset): Use lock commands.
4687 gpg: Do not print rejected digest algo notes with --quiet.
4688 + commit e08e1d62d089a154ec5d7c80cd58e8e3b18d2d6b
4689 * g10/misc.c (print_digest_rejected_note): Do not print in quiet mode.
4690 (print_sha1_keysig_rejected_note): Ditto.
4692 2020-11-09 NIIBE Yutaka <gniibe@fsij.org>
4694 gpg: Fix SOS handling when exporting SSH key with libgcrypt 1.8.
4695 + commit bf3a9377d147d8a83d9c71ca5a7284897c913951
4696 * g10/export.c (key_to_sshblob): Fix SOS correctly.
4698 agent: Fix SOS handling with libgcrypt 1.8.
4699 + commit ba4f68416742eb241ec5490d16f88b0eb0bdc811
4700 * agent/cvt-openpgp.c (apply_protection): Handle opaque MPI.
4702 2020-11-06 Werner Koch <wk@gnupg.org>
4704 agent: Minor tweaks to the new genpin inquiry.
4705 + commit c896112fa3f7f3289b5198bfac992160feb0ad0a
4706 * agent/call-pinentry.c (generate_pin): Use STRING random which is
4707 sufficient for a passphrase.
4708 (inq_cb): s/rc/err/. Do not print two errors in case generate_pin
4709 fails. Lowercase strings as per GNU standards.
4710 (setup_genpin): Fix translation test.
4711 (setup_qualitybar): Ditto.
4713 2020-11-06 Andre Heinecke <aheinecke@gnupg.org>
4715 agent: Add genpin inquiry for pinentry.
4716 + commit 557ddbde32585c534626b57a595a2ccf28fd585e
4717 * agent/call-pinentry.c (agent_get_passphrase): Setup genpin.
4718 (do_getpin): Update with new name for inquire callback.
4719 (inq_quality): Rename to inq_cb and add genpin support.
4720 (inq_cb): Renamed form inq_quality.
4721 (generate_pin): New helper to generate a pin.
4722 (agent_askpin): Fix some typos.
4723 (setup_genpin): Provide new strings for pinentry.
4725 2020-11-05 Ben Kibbey <bjk@luxsci.net>
4727 gpg: Add canceled status message.
4728 + commit 31e47dfad0f40e31e8b3113b933696e8e4105136
4729 * common/status.h (STATUS_CANCELED_BY_USER): New.
4730 * g10/passphrase.c (passphrase_to_dek): Send STATUS_CANCELED_BY_USER
4731 instead of STATUS_MISSING_PASSPHRASE when canceled is set.
4733 2020-11-05 NIIBE Yutaka <gniibe@fsij.org>
4735 scd: Use lock_slot for apdu_send_direct.
4736 + commit f808012ac2cf67ec563da178d963f300a7f2564d
4737 * scd/apdu.c (apdu_send_direct): Use lock_slot.
4739 scd: Internal CCID driver: Fix a race condition on close.
4740 + commit 484bafda4dbf5ffe9e7c41ef24fbc5bd791a3b32
4741 * scd/ccid-driver.c (ccid_require_get_status): For VENDOR_SCM reader,
4742 return 0 only at the initial call.
4743 (bulk_in): Don't detect an error for VENDOR_SCM reader, just kicking
4744 the loop, to invoke scd_update_reader_status_file, which calls
4745 ccid_slot_status again.
4746 (ccid_slot_status): Move the call of ccid_vendor_specific_setup to...
4747 (ccid_get_atr): ... here.
4749 2020-11-04 Werner Koch <wk@gnupg.org>
4751 speedo,w32: Install gpg-check-pattern and example profiles.
4752 + commit f5a81953e172a7bb4d02f2dc0e398f379c39ec84
4753 * doc/examples/vsnfd.prf: Rename to VS-NfD.prf.
4754 * doc/examples/Automatic.prf: New.
4755 * doc/Makefile.am (examples): Adjust.
4756 * build-aux/speedo/w32/inst.nsi: Install gpg-check-pattern.exe and 3
4758 * build-aux/speedo/w32/wixlib.wxs: Add new files.
4760 g13: Include a now missing header file.
4761 + commit b7f4e2d71fe3dee680f834cfc3dd620352830147
4762 * g13/create.c: Include sysutuls.h
4764 gpgconf: Make sure the homedir exists for --apply-profile.
4765 + commit 7d95f2e7e7a09e3d433d449b117e3470f9dd38c7
4766 * tools/gpgconf.c (main) <aApplyDefaults, aApplyProfile>: Create the
4767 standard home directory.
4769 common: Fix duplicate implementation of try_make_homedir.
4770 + commit dabc314b71378f585fac2753149f3358e32ec621
4771 * g10/openfile.c (try_make_homedir): Move core of the code to ...
4772 * common/homedir.c (gnupg_maybe_make_homedir): new.
4773 * sm/keydb.c (try_make_homedir): Implement using new function.
4775 * common/homedir.c: Include i18n.h.
4776 * po/POTFILES.in: Add common/homedir.c.
4778 2020-11-04 Andre Heinecke <aheinecke@gnupg.org>
4780 w32: Add another pinentry search path.
4781 + commit c8f6f6bbc8b203e633d382aa84862807c1aeb3d1
4782 * common/homedir.c (get_default_pinentry_name): Try ../bin/pinentry.exe
4784 w32: Add windows subsystem variant of gpgconf.
4785 + commit e2659f4bf603693c43af0444239bc52744291edc
4786 * tools/Makefile.am (gpgconf-w32): New target. Builds gpgconf with
4788 * build-aux/speedo/w32/wixlib.wxs: Package it.
4790 2020-11-03 Werner Koch <wk@gnupg.org>
4792 w32: Fix strftime problem on Windows.
4793 + commit e8aae18b997b3fdbfac86c644be94044aa67224d
4794 * common/gettime.c: Include locale.h.
4795 (asctimestamp): Increase buffer. On Windows use setlocale.
4797 gpg: Switch to AES256 for symmetric encryption in de-vs mode.
4798 + commit d1f2a6d9f71cf50318f4891c84aeedb975553896
4799 * g10/gpg.c (set_compliance_option): For AES256 and SHA256 in de-vs
4801 * g10/encrypt.c (setup_symkey): Add extra compliance check.
4802 (encrypt_simple): Avoid printing a second error oncplinace failure.
4804 2020-11-02 Werner Koch <wk@gnupg.org>
4806 gpg: Allow setting notations with the empty string as value.
4807 + commit e1bafa3574ccd56d9f8f8c1deb3d8fb9fd7025cc
4808 * g10/misc.c (pct_expando): Catch special case of the empty string.
4809 Also map a NULL to the empty string.
4810 * g10/photoid.c (show_photos): Make an empty string used as command
4813 build: Remove m4 macro defs which are not anymore used.
4814 + commit 6397cf5fbe3bbc1f616431b011f76e031a387d4c
4815 * configure.ac (GNUPG_FUNC_MKDIR_TAKES_ONE_ARG): Do not use.
4816 * acinclude.m4 (GNUPG_FUNC_MKDIR_TAKES_ONE_ARG): Remove unused macro
4818 (GNUPG_CHECK_FAQPROG): Ditto.
4819 (GNUPG_CHECK_DOCBOOK_TO_TEXI): Ditto.
4820 (GNUPG_CHECK_MLOCK): Ditto.
4822 gpg: Do not use weak digest algos if selected by recipient prefs.
4823 + commit 15746d60d492f5792e4a179ab0a08801b4049695
4824 * g10/misc.c (is_weak_digest): New.
4825 (print_digest_algo_note): Use it here.
4826 * g10/sig-check.c (check_signature_end_simple): Use it.
4827 * g10/sign.c (hash_for): Do not use recipient_digest_algo if it is in
4828 the least of weak digest algorithm.
4830 2020-11-02 Ingo Klöcker <dev@ingo-kloecker.de>
4832 gpg: Fix iteration over signatures.
4833 + commit b004701adca89ba85f75e12a4d284297147fe4f2
4834 * g10/keyedit.c (keyedit_quick_revsig): Take signature of correct node
4836 2020-11-02 NIIBE Yutaka <gniibe@fsij.org>
4838 kbx: Don't put zero-byte for ECC.
4839 + commit 8211d0bc3ba5ed15d0668050c08a6e28228b08a4
4840 * kbx/keybox-openpgp.c (parse_key): Only put zero for non-ECC.
4842 gpg: Fix debug output for key_check_all_keysigs with opaque MPI.
4843 + commit 90c3d623ce37695a1eb29c0a7276b23490d14603
4844 * g10/key-check.c (key_check_all_keysigs): Handle opaque MPI.
4846 gpg: Fix check_signature2 for opaque MPI.
4847 + commit 029ba6dc961c683d6683c97667d3c0e103738aa4
4848 * g10/sig-check.c (check_signature2): Handle the case of opaque MPI.
4850 gpg: Change the API for checksum to use const qualifier.
4851 + commit 21d8927f794bd901b13feaaac6d31d463349a64f
4852 * g10/main.h (checksum): Use const.
4853 * g10/misc.c (checksum): Use const.
4855 gpg: Fix counting buffer size in check_signature2.
4856 + commit 3151210e455f14848921fac838a5064749258d9f
4857 * g10/sig-check.c (check_signature2): Use GCRYMPI_FMT_PGP.
4859 2020-10-30 NIIBE Yutaka <gniibe@fsij.org>
4861 gpg: Fix SOS handling with libgcrypt version <= 1.8.
4862 + commit 813e24108a139c8059dad8bc679b2ab76b807ed9
4863 * g10/misc.c (checksum_mpi): Don't depend new feature
4864 of gcry_mpi_print which supports opaque MPI.
4866 gpg: Fix first zero-byte case for SOS handling.
4867 + commit dd4fb1c8f668f78fbcf5052e80c5c40d4cdad20c
4868 * g10/export.c (transfer_format_to_openpgp): Check the first byte.
4869 * g10/pkglue.c (sexp_extract_param_sos): Likewise.
4871 2020-10-28 Werner Koch <wk@gnupg.org>
4873 gpg: New command --quick-revoke-sig.
4874 + commit 243f9176e799b2328f2e5bed93099bfc474fdc5a
4875 * g10/gpg.c (enum cmd_and_opt_values): Add aQuickRevSig.
4876 (opts): Add --quick-revoke-sig.
4878 * g10/keyedit.c (quick_find_keyblock): Add arg 'want_secret' and
4880 (keyedit_quick_revsig): new.
4881 * g10/revoke.c (get_default_sig_revocation_reason): New.
4882 * g10/keylist.c (cmp_signodes): Make global.
4884 2020-10-27 Werner Koch <wk@gnupg.org>
4886 gpg: Sort the signatures in standard key listings.
4887 + commit 742e2729f4bcadfeb93260107462f4faa108d3b2
4888 * g10/gpg.c (parse_list_options): Add "sort-sigs".
4889 (main): Make it the default.
4890 * g10/options.h (LIST_SORT_SIGS): New.
4891 * g10/keylist.c (cmp_signodes): New.
4892 (list_keyblock_print): Sort signatures and factor signature printing
4894 (list_signature_print): new.
4896 2020-10-27 NIIBE Yutaka <gniibe@fsij.org>
4898 scd: Handle canonical serialno and app specific serialno differently.
4899 + commit e59d2b3632d8c778bd2c4375a1c3ba9c786c4360
4900 * scd/app-common.h (card_get_serialno): Add IS_CANONICAL arg.
4901 * scd/app.c (app_send_devinfo): Use app specific serialno.
4902 (card_get_serialno): Support two different cases.
4903 (app_get_serialno): Return app specific serialno.
4904 (send_serialno_and_app_status): Return canonical serialno.
4905 * scd/command.c (cmd_serialno): Return app specific serialno.
4906 (cmd_learn): Return canonical serialno.
4908 2020-10-26 Werner Koch <wk@gnupg.org>
4910 g10: Make call to agent_scd_serialno more robust.
4911 + commit 0f780b1aebb1b1bde219401735a1c24c1f0a7978
4912 * g10/call-agent.c (agent_scd_serialno): Make sure that NULL is stored
4913 on error at r_serialno.
4914 * g10/card-util.c (card_status): Simplify freeing of seriaono.
4915 (factory_reset): Ditto.
4917 2020-10-26 NIIBE Yutaka <gniibe@fsij.org>
4919 scd: Flush the cache when writing cert data object.
4920 + commit 8264b10d33e46d2caac2f2c38ccb5f764c31ad77
4921 * scd/app-piv.c (do_writecert): Flush the cache of the data object.
4923 gpg: Fix double free on error.
4924 + commit a153d0f7691486efe0aadfb1e226544ae6d20ffd
4925 * g10/card-util.c (card_status): Check an error return.
4927 gpg,tools: Fix detecting OpenPGP card by serialno.
4928 + commit 157f1de64e437cecd75335e9f4077ba9835e3da0
4929 * tools/gpg-card.c (list_openpgp): Use ->apptype to determine card's
4931 * g10/card-util.c (get_info_for_key_operation): Likewise.
4932 (current_card_status): Even if its SERIALNO is not like OpenPGP card,
4933 it's OpenPGP card when app says so.
4935 scd: Internal CCID driver thing only for SPR532.
4936 + commit 31def32eeed8cff705ca827e4bbc0bfcc80c512f
4937 * scd/ccid-driver.c (ccid_vendor_specific_setup): New. Limit
4938 only for SPR532, excluding other readers by SCM.
4939 (ccid_slot_status): Use ccid_vendor_specific_setup.
4941 2020-10-24 NIIBE Yutaka <gniibe@fsij.org>
4943 scd: Internal CCID driver limiting only for SPR532.
4944 + commit 3c6b5dfa2a2379a5f5eaa052f7dbc73462097425
4945 * scd/ccid-driver.c (ccid_vendor_specific_init): Only do that for
4948 2020-10-23 Werner Koch <wk@gnupg.org>
4950 common: Allow building with released libgpg-error.
4951 + commit 32f336d9555f18464d72a5068c290ab82ee92617
4952 * common/sysutils.c (gnupg_access) [W32]: Fix for older libgpgrt.
4954 2020-10-23 NIIBE Yutaka <gniibe@fsij.org>
4956 scd: Handle Yubikey's multiple apps and serialno.
4957 + commit 2d4de4b6f06c87cd0f72b2a0d09950e1b50841b2
4958 * scd/app-common.h (yubikey_get_serialno): New.
4959 * scd/app-openpgp.c (yubikey_get_serialno): New.
4960 * scd/app.c (card_get_serialno): Use OpenPGP app's serialno,
4961 when it's enabled for Yubikey.
4962 (send_serialno_and_app_status): Use card_get_serialno, not
4963 directly accessing ->serialno.
4965 scd: Use app_get_serialno for app_getattr.
4966 + commit c8cc35dd2c106d91a793667690c0b200560d5d2d
4967 * scd/app.c (app_getattr): Use app_get_serialno.
4969 scd: Don't overwrite serialno for Yubikey.
4970 + commit 65c91e601ae93aee1a5fa399d4a5d4498ad76eda
4971 * scd/app-openpgp.c (app_select_openpgp): Keep ->serialno.
4973 scd,openpgp: Use app_get_serialno function to get SERIALNO.
4974 + commit 41505f0ae544535b524a409d87aa2540607fc9a4
4975 * scd/app-openpgp.c (check_keyidstr): Don't directly access
4976 app->serialno, but use app_get_serialno.
4977 (do_with_keygrip): Likewise.
4979 2020-10-21 Werner Koch <wk@gnupg.org>
4981 common: New functions gnupg_opendir et al.
4982 + commit 7e22e08e2ab09cd3c2317f5e80e8ee47d46eff4b
4983 * common/sysutils.h (struct gnupg_dirent_s): New.
4984 * common/sysutils.c: Include dirent.h.
4985 (struct gnupg_dir_s): New.
4986 (gnupg_opendir, gnupg_readdir, gnupg_closedir): New. Change all
4987 callers of opendir, readdir, and closedir to use these functions.
4989 w32: Make gnupg_remove and gnupg_rename_file Unicode aware.
4990 + commit 9a0197b6fe412cfc66b0cece521267180e454416
4991 * common/sysutils.c (w32_rename): New.
4992 (gnupg_rename_file) [W32]: Support Unicode.
4993 (gnupg_remove) [W32]: Support Unicode. Drop Windows-CE support.
4995 2020-10-20 Werner Koch <wk@gnupg.org>
4997 Replace all calls to stat by gnupg_stat.
4998 + commit 18e5dd7b03ced51611c9ba1345cf498a0aaf14a6
4999 * common/sysutils.c (gnupg_stat): New.
5000 * common/sysutils.h: Include sys/stat.h.
5002 Replace most calls to open by a new wrapper.
5003 + commit 4dcef0e17836e8725c31a3b76f2bf7144345c808
5004 * common/sysutils.c (any8bitchar) [W32]: New.
5005 (gnupg_open): New. Replace most calls to open by this.
5006 * common/iobuf.c (any8bitchar) [W32]: New.
5007 (direct_open) [W32]: Use CreateFileW if needed.
5009 w32: Allow Unicode filenames for dotlock.
5010 + commit b47c355b18d9537ccc3dd3e80cc1825b018ecff7
5011 * common/dotlock.c (any8bitchar) [W32]: New.
5012 (dotlock_create_w32): Use strconcat and CreateFileW.
5014 * common/t-dotlock.c: Source include dotlock.c and modify to allow
5015 manual testing on Windows.
5017 Replace all calls to access by gnupg_access.
5018 + commit c94ee1386e0d5cdac51086c4d5b92de59c09c9b5
5019 * common/sysutils.c (gnupg_access): New. Replace all calls to access
5021 * common/homedir.c (w32_shgetfolderpath): Change to return UTF-8
5023 (standard_homedir): Adjust for change.
5024 (w32_commondir, gnupg_cachedir): Ditto.
5026 2020-10-09 NIIBE Yutaka <gniibe@fsij.org>
5028 gpg,ecc: Fix SOS handling when receiving from agent.
5029 + commit 228836f79f64559c9582ac2d475e50af57684bf8
5030 * g10/export.c (transfer_format_to_openpgp): It's not simple opaque
5033 agent: Fix SEGV when debuging for cache enabled.
5034 + commit 33cb1655f1b7c597d1ebdcb38447648477e6ac9f
5035 * agent/cache.c (agent_get_cache): Avoid dereferencing NULL.
5037 2020-10-05 Werner Koch <wk@gnupg.org>
5039 gpgsm: Fix detection of too old keyboxd.
5040 + commit 4eb9ce847825e8c6a07ce27d303c56233e85d007
5041 * sm/keydb.c (warn_version_mismatch): Add arg ctrl and pass on.
5042 (create_new_context): Pass ctrl to warn function.
5044 dirmngr: Minor cleanup for better readability.
5045 + commit b258f8de7e9fc436d72c4d4ff8f98e9b86d2f3f5
5046 * dirmngr/ldap.c (start_default_fetch_ldap): Rename to
5047 start_cacert_fetch_ldap and remove arg attr. Instead use
5048 "cACertificate" directly.
5049 * dirmngr/crlfetch.c (ca_cert_fetch): Change the only caller.
5050 (start_cert_fetch_ldap): Rename arg for clarity.
5052 dirmngr: Add warning on the use of --add-servers.
5053 + commit 210575d8826ea61e4914e4b61eff7b875c972b85
5054 * tools/gpgconf-comp.c (known_options_dirmngr): Degrade add-servers to
5057 gpg: Switch to ed25519+cv25519 as default algo.
5058 + commit ff31dde456f32950f0df6c974b4c41f1d650d68f
5059 * g10/keygen.c (DEFAULT_STD_KEY_PARAM): Change to former future
5061 (ask_algo): Change default and also the way we indicate the default
5062 algo in the list of algos.
5063 (ask_curve): Indicate the default curve.
5065 keyboxd: Fix duplicates when listing keys by uid.
5066 + commit 194034f813a09a0021e6aa82d64ea0693b37c8d0
5067 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add fields
5068 lastubid_valid and lastubid.
5069 (run_sql_prepare): Add optional extra2 arg and chage callers.
5070 (run_select_statement): Add an ORDER BY clause to most SELECTs.
5071 (be_sqlite_search): Skip duplicated keyblocks in a search.
5073 2020-10-04 Werner Koch <wk@gnupg.org>
5075 build: Fix SENDMAIL define for a PATH with spaces.
5076 + commit 6c36b8bb23bb033aaae5f1dff3b38d8e0e44717c
5077 * configure.ac: Fix use of $PATH
5079 (cherry picked from commit 77e416741abb0a871733bd46cbc81329859de96e)
5081 2020-10-02 Werner Koch <wk@gnupg.org>
5083 gpgconf: New option --show-versions.
5084 + commit 357ad9ae29677c1676b56d2b81282e2f78ec8040
5085 * tools/gpgconf.c: Include exechelp.h. New option --show-versions.
5086 (get_revision_from_blurb): New.
5087 (show_version_gnupg): New.
5088 (show_version_libgcrypt): New.
5089 (show_version_gpgrt): New.
5090 (show_versions_via_dirmngr): New.
5091 (show_versions): New.
5092 * tools/gpgconf-comp.c (GPGNAME): Remove unused macro.
5093 * dirmngr/dirmngr.c (main): New internal option --gpgconf-versions.
5094 (get_revision_from_blurb): New.
5095 (gpgconf_versions): New.
5097 w32: Silence warning due to recent change of split_fields.
5098 + commit 371228a244232f2b74181e0aa3c44d698df840ce
5099 * common/compliance.c (gnupg_rng_is_compliant): Make fields const.
5101 gpg: Fix parameter parsing form ed448.
5102 + commit e824e27d36021a868c855244d22c7d40a88a396e
5103 * g10/keygen.c (parse_key_parameter_part): Set algo also for 448.
5105 2020-10-01 Andre Heinecke <aheinecke@gnupg.org>
5107 doc: Remove enable-extended-key-format in vsnfd.
5108 + commit d84862cf109c75ae30ed5e2531b4554083c6a558
5109 * doc/examples/vsnfd.prf: Remove enable-extended-key-format
5111 2020-09-30 NIIBE Yutaka <gniibe@fsij.org>
5113 scd: Internal CCID driver: More fix for SPR532.
5114 + commit 920f258eb6018ecec1d63bad6a0fb0772f72affa
5115 * scd/ccid-driver.c (bulk_in): Handle the case of missing intr_cb.
5117 scd: Report any error for LEARN command.
5118 + commit 862d9c6face9b4ad61f6e59bf1ba9b5f5d05c58c
5119 * scd/app-openpgp.c (do_learn_status): Report any error.
5121 2020-09-29 NIIBE Yutaka <gniibe@fsij.org>
5123 scd: Internal CCID driver fix.
5124 + commit 1444203ca32ccfa4bd5097d2d49565c4055c620b
5125 * scd/ccid-driver.c (intr_cb): More useful debug output.
5126 (ccid_slot_status): Remove redundant condition.
5128 scd: Internal CCID driver: Call libusb_clear_halt at ccid_setup_intr.
5129 + commit 6af978713e4c69d7814f47e709f1dfb3fe9076d1
5130 * scd/ccid-driver.c (ccid_setup_intr): Reset the endpoint.
5131 (ccid_vendor_specific_init): Don't call libusb_clear_halt.
5133 2020-09-28 NIIBE Yutaka <gniibe@fsij.org>
5135 scd: Internal CCID driver: Fix a failure path.
5136 + commit d561c936a217627bc29aac628a8d01f7003dcd28
5137 * scd/ccid-driver.c (ccid_open_usb_reader): On error, call
5138 libusb_release_interface.
5140 scd: Internal CCID: Handle LIBUSB_ERROR_TIMEOUT at ccid_get_atr.
5141 + commit b1e8072320c19246962beb6d67dc5784b5a72364
5142 * scd/ccid-driver.c (ccid_slot_status): Handle LIBUSB_ERROR_TIMEOUT.
5144 scd: Internal CCID: Clear the handle after use.
5145 + commit c5e8ef3ab980012b64f5894f437e2ff568b02f43
5146 * scd/apdu.c (close_ccid_reader): Clear the handle.
5147 (open_ccid_reader): Likewise.
5149 scd: Change handling of SPR532 card reader.
5150 + commit 684a52dffa8b7f79b26fe53b3ab10d7748a8fb37
5151 * scd/ccid-driver.c (ccid_vendor_specific_init): Put some workaround
5152 for SPR532 initialization.
5153 (ccid_slot_status): Send ESCape command after GetSlotStatus.
5155 2020-09-25 Werner Koch <wk@gnupg.org>
5157 keyboxd: Make use of the config table.
5158 + commit f8fbd9e7346ee0c3b09271ec2cdb589282eae1c9
5159 * kbx/backend-sqlite.c (DATABASE_VERSION): New.
5160 (table_definitions): Make column name of table config unique.
5161 (create_or_open_database): Read and set the database version.
5162 (get_config_value, set_config_value): New.
5164 2020-09-25 NIIBE Yutaka <gniibe@fsij.org>
5166 scd: For PC/SC, send the ESC command at init for SPR532 reader.
5167 + commit 93e3c97889120dd17d79b7c8dd04293553785c9b
5168 * scd/apdu.c (struct reader_table_s): Remove is_spr532.
5169 (pcsc_vendor_specific_init): Send the ESC command for SPR532.
5170 (pcsc_pinpad_verify, pcsc_pinpad_modify): Remove no_lc hack.
5172 scd: For SPR532, submit the ESCape command at initialization.
5173 + commit 4fae55f8ee11b3f710524e5e8b8a91b159949f2d
5174 * scd/ccid-driver.c (ccid_vendor_specific_init): Submit the ESC
5175 command for VENDOR_SCM.
5176 (ccid_transceive_secure): Don't submit the ESC command every time.
5178 2020-09-24 Werner Koch <wk@gnupg.org>
5180 gpg: New experimental import option "bulk-import"
5181 + commit d49a945b12d98fadd0d37f4e50b5e02799e16305
5182 * g10/options.h (IMPORT_BULK): New.
5183 * g10/import.c (parse_import_options): Add "bulk-import".
5184 * g10/call-keyboxd.c (in_transaction): New var.
5185 (gpg_keyboxd_deinit_session_data): Run a commit if in bulk import
5187 (create_new_context): Run a begin transaction if in bulk import mode.
5189 keyboxd: New command TRANSACTION.
5190 + commit c2b14f5d6852fb9efaca8aeec7961e9d036203e8
5191 * kbx/backend-sqlite.c (be_sqlite_rollback): New.
5192 (be_sqlite_commit): New.
5193 (be_sqlite_search): Take care of global transactions.
5194 (be_sqlite_store): Ditto.
5195 (be_sqlite_delete): Ditto.
5196 * kbx/frontend.c (kbxd_rollback, kbxd_commit): New.
5197 * kbx/keyboxd.h (opt): Add vars for transactions.
5198 * kbx/kbxserver.c (struct server_local_s): Add fields next_session and
5200 (session_list): New var.
5201 (cmd_transaction): New.
5202 (register_commands): Register command.
5203 (kbxd_start_command_handler): Store pids and track sessions. Do a
5206 tests: Integrate --use-keyboxd into the OpenPGP test suite.
5207 + commit b19a60c6f7e892635db9e22499a7a44087c86c41
5208 * tests/openpgp/all-tests.scm (all-tests): Replace extended-key-format
5209 mode with a new keyboxd mode.
5210 * tests/openpgp/defs.scm (create-gpghome): Ditto.
5211 * tests/openpgp/gpgv.scm: Adjust for keyboxd mode.
5212 * tests/openpgp/issue2419.scm: Fix to allow setting a log-file into
5213 gpg.conf for debugging.
5215 keyboxd: Implement multiple search descriptions.
5216 + commit 25ad3c22d79d06c16a5fc652b0a6e3ffd99ad2b6
5217 * kbx/kbx-client-util.c (kbx_client_data_simple): New.
5218 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add field descidx.
5219 (be_sqlite_search): Use that.
5220 * g10/call-keyboxd.c (keydb_search): Implement multi mode.
5222 keyboxd: Fix UDPATE keyblob SQL statement.
5223 + commit 1f89d50537b3b16165e921df60734ce6203650cb
5224 * kbx/backend-sqlite.c: Always use ?NNN for SQL parameters.
5226 tests: Fix convenience function to run gpg.
5227 + commit 97798eec4b77470b3aecdbee9729fa76b8550dfe
5228 * tests/openpgp/defs.scm (pipe:gpg): Remove stray dash.
5230 keyboxd: Remove unused variables.
5231 + commit 0ac003b4576392ca3e930304a98bbf8183ab5f8b
5232 * kbx/kbx-client-util.c (datastream_thread): No need to set PK_NO and
5235 keyboxd: Integrate into gpgconf.
5236 + commit acaeba2dbdb9bbd68a823c671d5c3577fef5d26d
5237 * common/asshelp.c (lock_spawning): Use a dedicated name for keyboxd.
5238 * common/homedir.c (keyboxd_socket_name): New.
5239 (gnupg_module_name): Put keyboxd into libexecdir.
5240 * tools/gpgconf-comp.c (known_options_keyboxd): New.
5241 (gc_component): Add entry for keyboxd.
5242 (keyboxd_runtime_change): New.
5243 (gc_component_launch): Support keyboxd.
5244 * tools/gpgconf.c (list_dirs): Emit new item keyboxd-socket.
5245 (main): Also remove keyboxd socket.
5247 2020-09-24 NIIBE Yutaka <gniibe@fsij.org>
5249 scd: Fix CCID internal driver for interrupt transfer.
5250 + commit 7cbb513a2dc150a90a30c53316970df2a439d494
5251 * scd/ccid-driver.c (intr_cb): Handle the case of multiple messages.
5253 2020-09-22 Werner Koch <wk@gnupg.org>
5255 gpg: Set the found-by flags in the keyblock in keyboxd mode.
5256 + commit 183509756179fadd95d1cc740047b94dc16bb279
5257 * g10/keydb-private.h (struct keydb_handle_s): Add fields to return
5258 the ordinals of the last found blob.
5259 * g10/call-keyboxd.c (keydb_get_keyblock): Pass them to the keyblock
5262 sm: Fix returning of the ephemeral flag in keyboxd mode.
5263 + commit b810320b1bf76209dc1087cb91ca34232d9268c3
5264 * sm/keydb.c (search_status_cb): Skip over the ubid.
5266 common: Fix name of keyboxd.
5267 + commit c81a7b09368a474de4e3572fbb527d1597408ab1
5268 * common/homedir.c (gnupg_module_name): Fix name.
5270 keyboxd: Extend PUBKEY_INFO status line with an uid ordinal.
5271 + commit 0e892bda4e0bf9db9116d7d5585d4e7b0d2eae57
5272 * kbx/backend-sqlite.c (table_definitions): Add column UINO to
5274 (be_sqlite_local_s): Add fields select_col_uidno and
5276 (run_select_statement): Also select subkey or uidno column.
5277 (be_sqlite_search): Return their values.
5278 (store_into_userid): Store the UIDNO.
5279 * kbx/backend-support.c (be_return_pubkey): Extend PUBKEY_INFO.
5281 kbx: Add bounds check to detect corrupt keyboxes.
5282 + commit e0a312bfd646485ae8a0ae5e26720fc1667c5490
5283 * kbx/keybox-dump.c (_keybox_dump_blob): Fix the fixmes.
5285 2020-09-21 Werner Koch <wk@gnupg.org>
5287 scd: Extend KEYPAIRINFO with an algorithm string.
5288 + commit 26da47ae53d51e16ae6867cd419ddbf124a94933
5289 * scd/app-openpgp.c (send_keypair_info): Emit the algo string as part
5291 * scd/command.c (do_readkey): Ditto.
5292 * scd/app-piv.c (do_readkey): Ditto.
5293 * scd/app-nks.c (do_learn_status_core): Ditto.
5294 (struct fid_cache_s): Add field algostr.
5295 (flush_fid_cache): Release it.
5296 (keygripstr_from_pk_file): Fill it and add it to the cache. Use a
5298 * scd/app-help.c (app_help_get_keygrip_string_pk): Add new arg
5299 r_algostr. Change all callers.
5301 sm: Implement delete key in keyboxd mode.
5302 + commit c772770574ea2d337f8745ff304b1b8acd8a2e4c
5303 * sm/keydb.c (keydb_delete): Implement keyboxd mode.
5304 (keydb_update_cert): Disable unused function.
5305 * kbx/backend-sqlite.c (be_sqlite_delete): Delete from issuer.
5307 2020-09-18 NIIBE Yutaka <gniibe@fsij.org>
5309 agent: Fix regression for access through the extra secket.
5310 + commit 8a84a71f3a58a3e943f238b70743cd6408477eba
5311 * agent/command.c (cmd_keyinfo): Allow KEYINFO command for one key.
5312 (cmd_scd): Allow SCD command to invoke GETINFO, GETATTR, and
5313 KEYINFO --list=encr sub commands.
5315 common,agent,dirmngr,g10,tools: Fix split_fields API.
5316 + commit dfdcf14738976c6b236f4fa1c3b68af351024b3c
5317 * common/stringhelp.h (split_fields): Use const * for the strings in
5319 (split_fields_colon): Likewise.
5320 * common/stringhelp.c (split_fields, split_fields_colon): Fix
5322 * agent/call-scd.c, agent/command.c: Follow the change.
5323 * common/t-stringhelp.c, dirmngr/loadswdb.c: Likewise.
5324 * g10/call-agent.c, tools/card-call-scd.c: Likewise.
5325 * tools/card-yubikey.c, tools/gpg-card.c: Likewise.
5326 * tools/gpg-card.h, tools/gpg-wks-client.c: Likewise.
5327 * tools/gpgconf-comp.c, tools/gpgconf.c: Likewise.
5328 * tools/wks-util.c: Likewise.
5330 2020-09-16 NIIBE Yutaka <gniibe@fsij.org>
5332 scd: Clear PIN cache when changing key attributes.
5333 + commit 8ff36630277f05fbe4e43c7d757eb90da8645e3f
5334 * scd/app-openpgp.c (change_keyattr): Clear all PINs.
5336 scd: Clear caching PIN at KDF setup.
5337 + commit f4c07fc3d3c32e96d4306f6daa60b6de7fba7dc5
5338 * scd/app-openpgp.c (do_setattr): Clear PINs.
5340 scd: Add better support for KDF feature.
5341 + commit 316a8cbc7523560d999e46eb524165db11682210
5342 * scd/app-openpgp.c (do_setattr): Handle kdf-seup "off" for Gnuk.
5344 gpg,scd: Fix handling of KDF feature.
5345 + commit 8dfd0ebfd8cf2b6bcecbd91c8f7fad6db583aa5a
5346 * g10/card-util.c (kdf_setup): Fix the default value.
5347 * scd/app-openpgp.c (do_setattr): Support kdf-setup "off" by
5348 Zeitcontrol. Make sure Gnuk and Yubikey work well.
5350 2020-09-15 NIIBE Yutaka <gniibe@fsij.org>
5352 scd: Fix the use case of verify_chv2 by CHECKPIN.
5353 + commit 6e51f2044aebb885ea81dae259db1b7f477b1c44
5354 * scd/app-openpgp.c (verify_chv2): Call verify_a_chv with chvno=1
5357 2020-09-11 Werner Koch <wk@gnupg.org>
5359 scd:piv: Avoid conflict when writing a cert.
5360 + commit fbc1b199fdc8fd9a4ab422f005b4eb521b594c5c
5361 * scd/app-piv.c (map_curve_name_to_oid): New.
5362 (my_cmp_public_key): New.
5363 (do_writecert): Replace simple memcmp by cmp_canon_sexp.
5365 common: New function cmp_canon_sexp.
5366 + commit b6ba6a79ce9336f1b53f16f3d1190dd009fb166e
5367 * common/sexputil.c (cmp_canon_sexp): New.
5368 (cmp_canon_sexp_def_tcmp): New.
5369 * common/t-sexputil.c (test_cmp_canon_sexp): Add a simple test.
5371 keyboxd: Implement lookup by short and long keyid.
5372 + commit 9a94db1f662a1c5973b57b25e25aeab1bc33250e
5373 * kbx/backend-sqlite.c: Change definition of column KID.
5374 (kid_from_mem): Remove.
5375 (kid_from_u32): Rewrite.
5376 (run_sql_bind_int64): Remove.
5377 (run_select_statement): Implement lookup by short keyid. Fix lookup
5379 (store_into_fingerprint): Adjust kid arg.
5381 keyboxd: Add ephemeral and revoked flag to the sqlite backend.
5382 + commit 616c60d93dfab27dde00e1489c6c51340ec93b6c
5383 * kbx/backend-support.c (be_return_pubkey): Add args is_ephemeral and
5384 is_revoked. Adjust callers.
5385 * kbx/backend-sqlite.c: Alter table pubkey to add new columns.
5386 (run_select_statement): Add new column to all selects.
5387 (be_sqlite_search): Return the new flags.
5389 2020-09-10 Andre Heinecke <aheinecke@gnupg.org>
5391 doc: Update and extend module overview.
5392 + commit d62797ebcc15ffac52664fe08759d18a92491ddc
5393 * doc/gnupg-module-overview.svg: Add examples of GPGME aware
5396 2020-09-10 Werner Koch <wk@gnupg.org>
5398 sm: Implement initial support for keyboxd.
5399 + commit ed6ebb696e4063dc664d7ee74fc492025881c459
5400 * sm/gpgsm.h (MAX_FINGERPRINT_LEN): New.
5401 * sm/keydb.c (struct keydb_local_s): Change definition of
5403 (keydb_get_cert): Implement keyboxd mode.
5404 (keydb_get_flags): Temporary hack for keyboxd mode. Needs to be
5406 (struct store_parm_s, store_inq_cb): New.
5407 (keydb_insert_cert): Implement keyboxd mode.
5408 (keydb_locate_writable): Make static.
5409 (keydb_search_reset): Implement keyboxd mode.
5410 (search_status_cb): New.
5411 (keydb_search): Implement keyboxd mode. Replace return code -1 by
5413 (keydb_set_cert_flags): Replace return code -1 by GPG_ERR_NOT_FOUND.
5414 * sm/keylist.c (list_cert_colon): Adjust for replacement of -1 by
5416 (list_internal_keys): Ditto.
5417 * sm/sign.c (add_certificate_list): Ditto.
5418 * sm/certchain.c (find_up_search_by_keyid): Ditto.
5419 (find_up_external, find_up, find_up_dirmngr): Ditto.
5420 (gpgsm_walk_cert_chain): Ditto.
5421 (get_regtp_ca_info): Ditto.
5422 * sm/certlist.c (gpgsm_add_to_certlist): Ditto.
5423 (gpgsm_find_cert): Ditto.
5424 * sm/delete.c (delete_one): Ditto.
5425 * sm/export.c (gpgsm_export): Ditto.
5426 (gpgsm_p12_export): Ditto.
5427 * sm/import.c (gpgsm_import_files): Ditto.
5429 keyboxd: Add basic support for X.509.
5430 + commit c9677d416e6ff190c589af35b514a01a787085fb
5431 * kbx/keybox-blob.c (x509_email_kludge): Rename to ...
5432 (_keybox_x509_email_kludge): this and make global.
5433 * kbx/backend.h: Include ksba.h.
5434 * kbx/backend-support.c (be_get_x509_serial): New.
5435 (be_get_x509_keygrip): New.
5436 * kbx/backend-sqlite.c (table_definitions): New table 'issuers'.
5437 (run_select_statement): Implements modes ISSUER, ISSUER_SN, SUBJECT.
5438 (store_into_userid): Add arg override_mbox.
5439 (store_into_issuer): New.
5440 (be_sqlite_store): Implement x509 part.
5442 keyboxd: Use D-lines instead of a separate thread.
5443 + commit 6fcc263c182fc49d9ba2d1bd7649b4af1e9f3e3a
5444 * kbx/kbx-client-util.c (kbx_client_data_new): Add arg 'dlines'.
5445 * g10/call-keyboxd.c (open_context): Set DLINES to true.
5446 * sm/keydb.c (open_context): Ditto.
5448 keyboxd: Add options --openpgp and --x509 to SEARCH.
5449 + commit 29977e21d18188e16e50fee95a95e05fdbd97caf
5450 * kbx/keyboxd.h (struct server_control_s): Replace the two request
5451 objects by just one. Add filter flags.
5452 * kbx/kbxserver.c (cmd_search): Add options --openpgp and --x509.
5453 (cmd_killkeyboxd): Do not return GPG_ERR_EOF.
5454 * kbx/frontend.c (kbxd_release_session_info): Adjust for the new
5456 (kbxd_search, kbxd_store, kbxd_delete): Ditto.
5457 * kbx/backend-sqlite.c (struct be_sqlite_local_s): Add filter flags.
5458 (run_sql_prepare): Add optional arg 'extra'. Change callers.
5459 (run_sql_bind_ntext): New.
5460 (run_sql_bind_text): Just call run_sql_bind_ntext.
5461 (run_select_statement): Add ctrl arg. Implement the filter flags.
5463 * g10/call-keyboxd.c (keydb_search): Use the --openpgp option.
5465 gpg-connect-agent: Catch signals so that SIGPIPE is ignored.
5466 + commit 3cf9bb4d73cfe78d3d48734e7c8a65d9a98112a5
5467 * dirmngr/server.c (cmd_killdirmngr): Return 0.
5468 * tools/gpg-connect-agent.c (main): Catch signals.
5470 dirmngr: Fix the pool keyserver case for a single host in the pool.
5471 + commit 5a87011c46b5b01659c3cbc3c7a04da94ae5ca9e
5472 * dirmngr/ks-engine-hkp.c (map_host): Set R_HOSTNAME also for
5473 localhost and if there is no pool.
5475 dirmngr: Align the gnutls use of CAs with the ntbtls code.
5476 + commit faabc49797df43c4904b6230f83e8c6677e88b22
5477 * dirmngr/http.c (http_session_new) <gnutls>: Use only the special
5478 pool certificate for the default keyserver.
5480 2020-09-10 NIIBE Yutaka <gniibe@fsij.org>
5482 scd: Flush KDF DO (0x00F9) when it's being set.
5483 + commit d4cb774ddd8830836c9c87a90db01f749ac8d67c
5484 * scd/app-openpgp.c (do_setattr): Call flush_cache_item always.
5486 2020-09-09 Werner Koch <wk@gnupg.org>
5488 agent: Keep some permissions of private-keys-v1.d.
5489 + commit 8ed85ef3de9cdeee86e281a8b46be1bd49a36e7a
5490 * common/sysutils.c (modestr_to_mode): Re-implement.
5491 (gnupg_chmod): Support keeping of permissions.
5493 kbx: Change X.509 S/N search definition.
5494 + commit adec6a84f6ee176764391da358ae150f92b1f1e4
5495 * kbx/keybox-search-desc.h (struct keydb_search_desc): Do not overload
5496 SNLLEN with a hex flag. Add SNHEX.
5497 * kbx/keybox-search.c (keybox_search): Adjust.
5498 * common/userids.c (classify_user_id): Adjust.
5499 * sm/keydb.c (keydb_search_desc_dump): Adjust.
5500 * g10/keydb.c (keydb_search_desc_dump): Adjust.
5502 2020-09-08 NIIBE Yutaka <gniibe@fsij.org>
5504 gpg,tools: Add handling of supported algorithms by a card.
5505 + commit 2bc1ec294422504e2d2e5d20716aba68f1c2b0d7
5506 * g10/call-agent.h (struct agent_card_info_s): Add supported_keyalgo.
5507 * g10/call-agent.c (learn_status_cb): Parse KEY-ATTR-INFO.
5508 (agent_release_card_info): Release supported_keyalgo.
5509 * tools/gpg-card.h (struct card_info_s): Add supported_keyalgo.
5510 * tools/card-call-scd.c (learn_status_cb): Parse KEY-ATTR-INFO.
5511 (release_card_info): Release supported_keyalgo.
5513 scd: Add a workaround for Yubikey.
5514 + commit 0db9c83555b4a8a0c52f96e96ec20dbfd3d75272
5515 * scd/app-openpgp.c (get_public_key): Handle wrong code for Yubikey.
5517 2020-09-07 NIIBE Yutaka <gniibe@fsij.org>
5519 scd: Fix handling 0x00FA to support OpenPGP card 3.4.
5520 + commit 270c49b8c6eaf99df7b417f9d0e45eba0acfb423
5521 * scd/app-openpgp.c (data_objects): It may be longer.
5523 2020-09-04 Werner Koch <wk@gnupg.org>
5525 gpg: Initialize a parameter to silence valgrind.
5526 + commit 65eb1569809a3c42e8afb064f6194fac2e34a03a
5527 * g10/keygen.c (read_parameter_file): Initialize nline.
5528 * g10/textfilter.c (copy_clearsig_text): Initialize bufsize.
5530 2020-09-04 NIIBE Yutaka <gniibe@fsij.org>
5532 scd: Support GET DATA response with no header for DO 0x00FA.
5533 + commit 43bbc25b0f57dec24412886ff46041e0b1f3de26
5534 * scd/app-openpgp.c (do_getattr): Support Gnuk, as well.
5536 scd: Parse "Algorithm Information" data object in scdaemon.
5537 + commit eba2563dabbb4f61537900289fbe3ae113904733
5538 * scd/app-openpgp.c (data_objects): 0x00FA for binary data.
5539 (do_getattr): Parse the data and send it in status lines.
5540 (get_algorithm_attribute_string): New.
5542 2020-09-03 Werner Koch <wk@gnupg.org>
5544 sm: New options to prepare the use of keyboxd.
5545 + commit 046f419f806036248c058c4bd44368f8596287b7
5546 * sm/Makefile.am (AM_CFLAGS): Add npth flags.
5547 (common_libs): Use npth version of the lib.
5548 (gpgsm_LDADD): Add npth libs.
5549 * sm/gpgsm.c (oUseKeyboxd, oKeyboxdProgram): New.
5550 (opts): New options --use-keyboxd and --keyboxd-program.
5552 (gpgsm_deinit_default_ctrl): New.
5554 * sm/server.c (gpgsm_server): Ditto.
5555 * sm/gpgsm.h (opt): Add fields use_keyboxd and keyboxd_program.
5556 (keydb_local_s): New type.
5557 (struct server_control_s): Add field keybd_local.
5558 * sm/keydb.c: Include assuan.h, asshelp.h, and kbx-client-util.h.
5559 (struct keydb_local_s): New.
5560 (struct keydb_handle): Add fields for keyboxd use.
5561 (gpgsm_keydb_deinit_session_data): New.
5562 (warn_version_mismatch): New.
5563 (create_new_context): New.
5564 (open_context): New.
5565 (keydb_new): Implement keyboxd mode.
5566 (keydb_release): Ditto.
5567 (keydb_get_resource_name): Ditto.
5569 * sm/keydb.c: Add stub support for all other functions.
5571 sm: Add arg ctrl to keydb_new.
5572 + commit a7d006293ec84532cc1972cd2f990198eadf1a1a
5573 * sm/keydb.c (keydb_new): Add arg and change all callers.
5575 2020-09-03 NIIBE Yutaka <gniibe@fsij.org>
5577 scd: Add handling of "Algorithm Information" DO.
5578 + commit 90d0072165cc5c6888f14462392a211de0c4b232
5579 * cd/app-openpgp.c (data_objects): Add 0x00FA.
5580 (do_getattr): Add KEY-ATTR-INFO.
5582 2020-09-02 Werner Koch <wk@gnupg.org>
5584 gpg: Fix segv importing certain keys.
5585 + commit 8ec9573e57866dda5efb4677d4454161517484bc
5586 * g10/key-check.c (key_check_all_keysigs): Initialize issuer.
5588 keyboxd: Restructure client access code.
5589 + commit 497db0b5bcd688c4e2144ba167bd2ac485069d1b
5590 * kbx/kbx-client-util.c: New.
5591 * kbx/kbx-client-util.h: New.
5592 * kbx/Makefile.am (client_sources): New.
5593 * g10/keydb.c (parse_keyblock_image): Rename to keydb_parse_keyblock
5595 * g10/call-keyboxd.c: Include kbx-client-util.h.
5596 (struct keyboxd_local_s): Remove struct datastream. Add field kcd.
5597 Remove per_session_init_done.
5598 (lock_datastream, unlock_datastream): Remove.
5599 (prepare_data_pipe, datastream_thread): Remove.
5600 (keydb_get_keyblock_do_parse): Remove.
5601 (gpg_keyboxd_deinit_session_data): Release the KCD object.
5602 (open_context): Use of kbx_client_data_new.
5603 (keydb_get_keyblock): Simplify.
5604 (keydb_search): Use kbx_client_data_cmd and _wait.
5606 keyboxd: Fix user id based queries.
5607 + commit 4d839f5a8083e1ddd4767c838f56a4079f846c6d
5608 * kbx/backend-sqlite.c (run_select_statement): Add the missing join
5609 for user id bases queries.
5611 common: New helper function gnupg_close_pipe.
5612 + commit 2042f5a4641f4e43137b7683077b4d733d216417
5613 * common/exechelp-posix.c (gnupg_close_pipe): New.
5614 * common/exechelp-w32.c (gnupg_close_pipe): New.
5616 2020-09-01 Werner Koch <wk@gnupg.org>
5618 Use only one copy of the warn_server_mismatch function.
5619 + commit 2cd8bae23d7382588cf096df3eed83e02331a2bf
5620 * common/asshelp.c (warn_server_version_mismatch): New. Actually a
5621 slightly modified version of warn_version_mismatch found in other
5623 * common/status.c (gnupg_status_strings): New.
5624 * g10/cpr.c (write_status_strings2): New.
5625 * g10/call-agent.c (warn_version_mismatch): Use the new unified
5626 warn_server_version_mismatch function.
5627 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
5628 * g10/call-keyboxd.c (warn_version_mismatch): Ditto.
5629 * sm/call-agent.c (warn_version_mismatch): Ditto.
5630 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
5631 * tools/card-call-scd.c (warn_version_mismatch): Ditto.
5633 2020-08-28 Werner Koch <wk@gnupg.org>
5635 sm: Fix a bug in the rfc2253 parser.
5636 + commit 16c1d8a14e98894408f30349cab68ff17ef6b35e
5637 * sm/certdump.c (parse_dn_part): Fix parser flaw.
5639 2020-08-28 NIIBE Yutaka <gniibe@fsij.org>
5641 common: Fix fallback handling to utf-8.
5642 + commit 393dcdd61c3b2da00a97176c647d9bd1c908ceba
5643 * common/utf8conv.c (handle_iconv_error): Set NO_TRANSLATION.
5645 2020-08-27 Werner Koch <wk@gnupg.org>
5647 scd: New option to APDU command to return the ATR as data.
5648 + commit a0a4744bd0640e587b33ec3dae819ec4054f0472
5649 * scd/command.c (cmd_apdu): Add new option --data-atr.
5650 * tools/gpg-card.c (cmd_apdu): Use that here. Also fix the --exlen
5651 option and do not print the statusword in atr mode.
5652 * tools/card-call-scd.c (scd_apdu): Detect atr mode anddon't assume a
5655 scd: Fix reading of the ATR for card type detection.
5656 + commit 95b5a852e269e602ade6a07ed468e9072c247b8c
5657 * scd/app.c (app_new_register): Do not use apdu_get_slot.
5659 dirmngr: Print the last alert message returned by NTBTLS.
5660 + commit 05358d73841149f64dc5d620f4b8855255e7f4da
5661 * dirmngr/http.c (send_request): Print the last TLS alert.
5663 2020-08-27 NIIBE Yutaka <gniibe@fsij.org>
5665 scd: Add heuristics to identify cardtype.
5666 + commit 9f148360a2bf04672b43ef7cec48e21d44b06ae1
5667 * scd/app-common.h (cardtype_t): Add CARDTYPE_GNUK and
5668 CARDTYPE_ZEITCONTROL.
5669 * scd/app.c (strcardtype): Handle CARDTYPE_GNUK and
5670 CARDTYPE_ZEITCONTROL.
5671 (app_new_register): Detect Gnuk and Zeit Control implementation
5672 by examining its ATR string.
5674 scd: Add condition for VERIFY with 0x82.
5675 + commit af189be481df02a77e088aa0a60a1fc02dfa12bf
5676 * scd/app-openpgp.c (verify_chv2): Check availability of keys in
5679 2020-08-26 Werner Koch <wk@gnupg.org>
5681 build: Silence gcc warning -Wformat-zero-length.
5682 + commit 90a87d96eaf5b97cd53cb0ee0495b646be7b84bb
5683 * configure.ac: Avoid useless gcc warning. We use an empty string
5684 quite often, for example in log_printhex.
5686 2020-08-25 Werner Koch <wk@gnupg.org>
5688 gpg: Remove left over debug output from recent change.
5689 + commit fc1a1857551c05135d54e2e620e609fda59d5bca
5690 * g10/import.c (collapse_subkeys): Remove debug out.
5692 examples: Simplify vsnfd.prf.
5693 + commit 40acc5ef3ef73494e67d88ea310503e5bf08bc36
5694 * doc/examples/vsnfd.prf: Remove default-new-key-algo option.
5696 sm: Do not require a default keyring for --gpgconf-list.
5697 + commit e7677da479c4fb5abd0339de807b27c0f487d2e0
5698 * sm/gpgsm.c (main): No default keyring for gpgconf mode.
5700 gpgconf: Silence warnings from parsing the options files.
5701 + commit ad1254b59d41e127879fc9f495d392316135b4a5
5702 * tools/gpgconf-comp.c (retrieve_options_from_program): Set verbose
5703 flag for the arg parser only in --verbose mode.
5705 agent: Allow using --gogconf-list even if HOME does not exist.
5706 + commit b17846e4fd02f65b24ada306855fb110c56c5e73
5707 * agent/gpg-agent.c (main): Do not create directories in gpgconf mode.
5709 gpgconf,w32: New debug command --show-codepages.
5710 + commit 32021dfa5bcaa056c18e4ec40fdcd0f8b7de382b
5711 * tools/gpgconf.c (aShowCodepages): New.
5712 (opts): New command --show-codepages.
5713 (main) [W32]: Implement
5715 gpg: Collapse duplicate subkeys.
5716 + commit 633c1fea5f0dc4cb270c22ee41c24e1ec0706204
5717 * g10/options.h (IMPORT_COLLAPSE_UIDS): New.
5718 (IMPORT_COLLAPSE_SUBKEYS): New.
5719 * g10/gpg.c (main): Make them the default.
5720 * g10/import.c (parse_import_options): New import options
5721 "no-collapse-uids" and "no-collapse_subkeys".
5722 (collapse_subkeys): New.
5723 (import_one_real): Collapse subkeys and allow disabling the collapsing
5724 using the new options.
5725 (read_key_from_file_or_buffer): Always collapse subkeys.
5726 * g10/keyedit.c (fix_keyblock): Call collapse_subkeys.
5728 2020-08-21 Werner Koch <wk@gnupg.org>
5730 gpgtar,w32: Handle Unicode file names.
5731 + commit 34e7703a962809921e83770f20f3eb66599265d1
5732 * tools/gpgtar.c (oUtf8Strings): New.
5733 (opts): Add option --utf8-strings.
5734 (parse_arguments): Set option.
5735 * tools/gpgtar.h (opt): Add field utf8strings.
5736 * tools/gpgtar-create.c (name_to_utf8): New.
5737 (fillup_entry_w32): Use that.
5738 (scan_directory): Ditto.
5739 (scan_directory) [W32]: Convert file name to utf8.
5740 (gpgtar_create): Convert pattern.
5742 common: Use gpgrt functions for mkdir and chdir.
5743 + commit eec70e539e44c288068f26f190d52a5718fd3a10
5744 * common/sysutils.c (gnupg_mkdir): Divert to gpgrt_mkdir.
5745 (gnupg_chdir): Divert to gpgrt_chdir
5747 common,w32: Do not assume the ANSI code during string conversion.
5748 + commit 5305ce17ff7a68ecc88c5ae8c4bec5897df6322f
5749 * common/utf8conv.c (get_w32_codepage): New.
5750 (wchar_to_native): Use instead oc CP_ACP.
5751 (native_to_wchar): Ditto.
5753 common: Strip trailing CR,LF from w32_strerror.
5754 + commit 33fd55ca6f3efc50c260469179788e9f725ddc58
5755 * common/stringhelp.c (w32_strerror): Strip trailing CR,LF.
5756 * common/iobuf.c (iobuf_get_filelength): Use -1 and not 0 for the
5757 arg to w32_strerror.
5759 2020-08-20 Werner Koch <wk@gnupg.org>
5761 gpgtar: Make --files-from and --null work as described.
5762 + commit e276f63e4a80e8d1cb1ba5621cedaeb0ccda956d
5763 * tools/gpgtar-create.c (gpgtar_create): Add args files_from and
5764 null_names. Improve reading from a file.
5765 * tools/gpgtar.c: Make global vars static.
5766 (main): Remove tests for --files-from and --null option combinations.
5767 Pass option variables to gpgtar_create.
5769 build: New configure option --disable-tests.
5770 + commit 32aac55875f324f8c3d85dad8483604eae65e3e8
5771 * configure.ac: Add option --disable-tests. Print warnings in the
5773 (DISABLE_TESTS): New am_conditional.
5775 gpg: Fix regression for non-default --passphrase-repeat option.
5776 + commit b8c4dd902df34faa4d23efb2bb4ac222c8bbdbdb
5777 * agent/command.c (cmd_get_passphrase): Take care of --repeat with
5780 2020-08-19 Werner Koch <wk@gnupg.org>
5782 gpg,gpgsm: Record the creation time of a private key.
5783 + commit 4031c42bfd0135874a5b362df175de93a19f1b51
5784 * sm/call-agent.c (gpgsm_agent_genkey): Pass --timestamp option.
5785 (gpgsm_agent_import_key): Ditto.
5786 * g10/call-agent.c (agent_genkey): Add arg timestamp and pass it on.
5787 (agent_import_key): Ditto.
5788 * g10/import.c (transfer_secret_keys): Pass the creation date to the
5790 * g10/keygen.c (common_gen): Ditto.
5792 2020-08-19 NIIBE Yutaka <gniibe@fsij.org>
5794 gpg: Fix condition of string_to_aead_algo.
5795 + commit 1d66b518ca83e8d315283682b1e504f1e171a0b1
5796 * g10/misc.c (string_to_aead_algo): Only compare if not NULL.
5798 dns: Fix memory use-after-free.
5799 + commit cc0d53905ce9306b51bace2682ae3d1d122c7881
5800 * dirmngr/dns.c (dns_res_stub): Fix RESCONF usage.
5802 common: Fix iobuf.c.
5803 + commit f58d441bee7e93e6344f833acc1412b3be2f6818
5804 * common/iobuf.c (iobuf_cancel): Initialize DUMMY.
5805 (do_iobuf_fdopen): Initialize LEN.
5806 (iobuf_read_line): Fix the loop condition.
5808 Silence compiler warnings.
5809 + commit f3e424d4e7273e60e69747ca4936149af7b6482a
5810 * common/openpgp-oid.c (map_openpgp_pk_to_gcry): Use cast for enum
5812 * dirmngr/dns-stuff.c (get_dns_srv): Use explicit conversion from
5814 * sm/gpgsm.c (parse_keyserver_line): Initialize ERR.
5816 scd: Fix possible uninitialized variables.
5817 + commit 4fa0a65676a29cb53ee242caf13c393f7573c9a3
5818 * scd/app-openpgp.c (do_change_pin): Initialize resultlen2.
5819 (do_change_pin): Don't call wipe_and_free on the error path.
5820 Initialize bufferlen2.
5822 2020-08-17 Werner Koch <wk@gnupg.org>
5824 agent: Allow to pass a timestamp to genkey and import.
5825 + commit 0da923a1240ac78d60c92cdd8488c4e405c3243b
5826 * agent/command.c (cmd_genkey): Add option --timestamp.
5827 (cmd_import_key): Ditto.
5828 * agent/genkey.c (store_key): Add arg timestamp and change callers.
5829 (agent_genkey): Ditto.
5830 * agent/findkey.c (write_extended_private_key): Add args timestamp and
5831 new key to write a Created line.
5832 (agent_write_private_key): Add arg timestamp.
5833 (agent_write_shadow_key): Ditto.
5834 agent/protect-tool.c (agent_write_private_key): Ditto as dummy arg.
5836 2020-08-14 Werner Koch <wk@gnupg.org>
5838 Add --chuid to gpg, gpg-card, and gpg-connect-agent.
5839 + commit 6bcb609e1b2a507caa2e1a078178709d808b590b
5840 * g10/gpg.c (oChUid): New.
5841 (opts): Add --chuid.
5842 (main): Implement --chuid. Delay setting of homedir until the new
5844 * sm/gpgsm.c (main): Delay setting of homedir until the new chuid is
5846 * tools/gpg-card.c (oChUid): New.
5847 (opts): Add --chuid.
5848 (changeuser): New helper var.
5849 (main): Implement --chuid.
5850 * tools/gpg-connect-agent.c (oChUid): New.
5851 (opts): Add --chuid.
5852 (main): Implement --chuid.
5854 2020-08-13 Werner Koch <wk@gnupg.org>
5856 gpg: Ignore personal_digest_prefs for ECDSA keys.
5857 + commit 53d84f98157070f24dc861f1a75980474d074ddb
5858 * g10/sign.c (hash_for): Simplify hash algo selection for ECDSA.
5860 2020-08-12 Werner Koch <wk@gnupg.org>
5862 scd: Log info about CCIDs with permission problems.
5863 + commit 2af884c64354182b1903d7a77df07e877f5ed7ba
5864 * scd/apdu.c (open_ccid_reader): Add arg r_cciderr.
5865 (apdu_open_reader): Print a note on EPERM of the USB device.
5867 scd: Map some error codes from libusb to ccid-driver error codes.
5868 + commit 9a8d7e41bba1926158a21ebdda542241493ef983
5869 * scd/ccid-driver.h (CCID_DRIVER_ERR_USB_*): New error codes.
5870 * scd/apdu.h: New SW_HOST error codes.
5871 * scd/apdu.c (host_sw_string): Print them
5872 * scd/ccid-driver.c (map_libusb_error): New.
5873 (ccid_open_usb_reader, bulk_in, abort_cmd): Map libusb error codes.
5874 * scd/iso7816.c (map_sw): Map new codes to gpg-error.
5876 common: Pass the WAYLAND_DISPLAY envvar along.
5877 + commit 3944430ffeaa032719fd82f8eaa118b3f326b8ed
5878 * common/session-env.c (stdenvnames): Add WAYLAND_DISPLAY.
5880 2020-08-10 Werner Koch <wk@gnupg.org>
5882 scd:piv: Allow signing using PSS.
5883 + commit cbf203801e021e0f4d4143ecc92296ae7d0f0dd7
5884 * scd/app-piv.c (do_sign): Allow for PSS.
5886 agent: Add option --pss to pksign to be used by smartcards.
5887 + commit bb096905b9ee1f5175efee1ab6c98045a26a2678
5888 * agent/command.c (cmd_sethash): Add option --pss and allow for
5890 * agent/agent.h (struct server_control_s): Add digest.is_pss and
5892 * agent/pksign.c (agent_pksign_do): Allow for PSS with cards.
5893 * scd/command.c (cmd_pksign): Add for --hash=none.
5895 2020-08-07 NIIBE Yutaka <gniibe@fsij.org>
5897 gpg: Fix trustdb for v5key.
5898 + commit 373c975859a55f942276d6078f27ee33570bf2d5
5899 * g10/keydb.h (fpr20_from_pk): New.
5900 * g10/keyid.c (fpr20_from_pk): New.
5901 * g10/tdbio.c (tdbio_search_trust_byfpr): Use fpr20_from_pk.
5902 * g10/trustdb.c (keyid_from_fpr20): New.
5903 (verify_own_keys): Use keyid_from_fpr20.
5904 (tdb_update_ownertrust): Use fpr20_from_pk.
5905 (update_min_ownertrust): Likewise.
5906 (update_validity): Likewise.
5908 gpg: Fix short key ID for v5key.
5909 + commit 20982bbd7539d2032f4d6249a2654c245445521d
5910 * g10/keyid.c (keyid_from_pk): Return keyid[0] for v5key.
5911 * g10/keyring.c (keyring_search): Handle short key ID for v5key.
5913 2020-08-06 Werner Koch <wk@gnupg.org>
5915 gpgsm: New option --chuid.
5916 + commit 646a30fd394a739ef653556b1a7b2eeebda95951
5917 * sm/gpgsm.c (oChUid, opts): New option --chuid.
5918 (main): Implement option.
5920 gpgconf: New option --chuid.
5921 + commit d10f45184c4482036c41f4818c84c0725a0c2c94
5922 * tools/gpgconf.c (oChUid, opts): New option --chuid.
5925 common: New helper function gnupg_chuid.
5926 + commit 8ff00ef0de871ca43076b00df4871c3165ced001
5927 * common/sysutils.c (try_set_envvar): New.
5930 2020-08-06 NIIBE Yutaka <gniibe@fsij.org>
5932 kbx: Support v5key for short kid and long kid.
5933 + commit df531848a9618131921d584baba81c128f94de68
5934 * kbx/keybox-search.c (has_short_kid): Support v5key.
5935 (has_long_kid): Likewise.
5937 2020-08-05 Werner Koch <wk@gnupg.org>
5939 gpg: Add level 16 to --gen-random.
5940 + commit d847f0651ab4304129145b55353501636b4e4728
5941 * g10/gpg.c (main): Add that hack.
5943 2020-08-04 Werner Koch <wk@gnupg.org>
5945 sm: Also show the SHA-256 fingerprint.
5946 + commit e7d70923901eeb6a2c26445aee9db7e78f6f7f3a
5947 * sm/keylist.c (list_cert_colon): Emit a new "fp2" record.
5948 (list_cert_raw): Print the SHA2 fingerprint.
5949 (list_cert_std): Ditto.
5951 2020-08-03 NIIBE Yutaka <gniibe@fsij.org>
5953 w32: Fix cast from intptr_t of _get_osfhandle.
5954 + commit 8e04cf969e95ccaa31bbaa7333938af1ea7476c6
5955 * common/exectool.c (gnupg_exec_tool_stream): Cast to unsigned long.
5957 2020-07-31 NIIBE Yutaka <gniibe@fsij.org>
5959 agent: Fix coercion for pinentry_pid handling.
5960 + commit da3a4c54a8ce8a7dc442c70bda9b7eda22d43e57
5961 * agent/call-pinentry.c (start_pinentry): Don't use pid_t.
5963 scd: Silence compiler warning.
5964 + commit 2a34a2afea5fcb5f4ed206afa110650db3dd7ef0
5965 * scd/app-openpgp.c (build_ecc_privkey_template): Fix allocation size.
5967 2020-07-30 NIIBE Yutaka <gniibe@fsij.org>
5969 w32: Add NETLIBS for sm/t-minip12.
5970 + commit c1f81eb9fc2544a417ebc2ce19b04541525da684
5971 * sm/Makefile.am (t_minip12_LDADD): Add NETLIBS.
5973 w32: More adding NETLIBS.
5974 + commit 5fa4427419c875e46d051ae6ed376d5ad6037401
5975 * common/Makefile.am (t_common_ldadd): Add $(NETLIBS).
5977 w32: Add link to $(NETLIB) for -lws2_32.
5978 + commit d69f5570ee5e1b099e39fdf64e18add23ff5c815
5979 * dirmngr/Makefile.am (dirmngr_LDADD): Add $(NETLIBS).
5980 * sm/Makefile.am (gpgsm_LDADD): Ditto.
5981 * tools/Makefile.am (gpg_wks_client_LDADD): Ditto.
5983 2020-07-27 NIIBE Yutaka <gniibe@fsij.org>
5985 kbx: Fix short KID and long KID handling for FPR32.
5986 + commit fa4a2bd7a1ba8d4bda5f9cec0826104f50142d4f
5987 * kbx/keybox-search.c (blob_cmp_fpr_part): For FPR32, it's
5988 the first part in the fingerprint.
5990 2020-07-17 NIIBE Yutaka <gniibe@fsij.org>
5992 scd: Fix closing reader and reeleasing context in PC/SC.
5993 + commit daa2cec6a543f06a2e408d97a80a5041027f16a9
5994 * scd/apdu.c (close_pcsc_reader): Unlock the reader_table_lock.
5995 (apdu_dev_list_finish): Release the context when no readers.
5997 Use gpgrt's new option parser for symcryptrun.
5998 + commit f484ac2b2d2ea176db1a70d961a778180147d9b2
5999 * tools/symcryptrun.c: Follow API change of the new option parser.
6001 scd: PC/SC: Don't release the context when it's in use.
6002 + commit 46d185f60397f68830bfdfb99627b29aea5016f1
6003 * scd/apdu.c (close_pcsc_reader): Check if it's not in the loop.
6005 gpg-card: Fix type of historyname.
6006 + commit 43000b0434b47a72608b41d67054ba42db21b699
6007 * tools/gpg-card.c (interactive_loop): Remove const qualifier.
6009 2020-07-16 Werner Koch <wk@gnupg.org>
6011 gpg: Do not close stdout after --export-ssh-key.
6012 + commit 5c514a274ca8ac6be875818237e2e1bbc0c6a2a5
6013 * g10/export.c (export_ssh_key): Do not close stdout.
6015 2020-07-16 NIIBE Yutaka <gniibe@fsij.org>
6017 common: Avoid undefined behavior of left shift operator.
6018 + commit 8abf065307ff4a7ea873fe59f76173bf17dac241
6019 * common/iobuf.c (block_filter): Handle an error earlier.
6020 Make sure it's unsigned.
6022 2020-07-15 NIIBE Yutaka <gniibe@fsij.org>
6024 regexp: Import change from JimTcl.
6025 + commit 91cb46d948db234be1ea8092f5db9e14294f1b79
6026 * regexp/jimregexp.h, regexp/jimregexp.c: Fix from JimTcl.
6028 2020-07-14 Werner Koch <wk@gnupg.org>
6030 agent: Fix regression with --newsymkey in loopback mode.
6031 + commit 0a6af6dc12998ef7b19673ad05d11e82f826de9d
6032 * agent/command.c (cmd_get_passphrase): Never repeat in loopback mode;
6033 same as with !OPT_NEWSYMKEY.
6035 2020-07-13 NIIBE Yutaka <gniibe@fsij.org>
6037 dirmngr: Handle EAFNOSUPPORT at connect_server.
6038 + commit 109d16e8f644da97ed9c00e6f9010a53097f587a
6039 * dirmngr/http.c (connect_server): Skip server with EAFNOSUPPORT.
6041 2020-07-10 NIIBE Yutaka <gniibe@fsij.org>
6043 gpg: For decryption, support use of a key with no 'encrypt' usage.
6044 + commit 31ae0718ba10c3b1b670ba6131b4995de24aa7a1
6045 * g10/pubkey-enc.c (get_session_key): Don't skip at no PUBKEY_USAGE_ENC.
6046 Emit information the key has no 'encrypt' usage.
6048 2020-07-08 Werner Koch <wk@gnupg.org>
6050 Do not use the pinentry's qualitybar.
6051 + commit 999d25d47d45a0f594c84d51c041da0b24d68c5d
6052 * agent/genkey.c (agent_ask_new_passphrase): No qualitybar.
6053 * g10/call-agent.c (agent_get_passphrase): Ditto.
6054 * sm/call-agent.c (gpgsm_agent_ask_passphrase): Ditto.
6056 gpg: Use integrated passphrase repeat entry also for -c.
6057 + commit a6a4bbf6debd925a23c22eea86a562f061fdfe6c
6058 * g10/call-agent.c (agent_get_passphrase): Add arg newsymkey.
6059 * g10/passphrase.c (passphrase_get): Add arg newsymkey.
6060 (passphrase_to_dek): Pass it on.
6062 agent: New option --newsymkey for GET_PASSPHRASE.
6063 + commit eace4bbe1ded8b01f9ad52ebc1871f2fd13c3a08
6064 * agent/call-pinentry.c (agent_get_passphrase): Add arg pininfo.
6065 * agent/genkey.c (check_passphrase_constraints): New arg no_empty.
6066 * agent/command.c (reenter_passphrase_cmp_cb): New.
6067 (cmd_get_passphrase): Add option --newsymkey.
6069 2020-07-07 Werner Koch <wk@gnupg.org>
6071 gpg: Fix flaw in symmetric algorithm selection in mixed mode.
6072 + commit 6864bba78e76a1ff72aec140ae9f4e752454c463
6073 * g10/encrypt.c (setup_symkey): Use default_cipher_algo function
6074 instead of the fallback s2k_cipher_algo. Fix error code.
6075 (encrypt_simple): Use setup_symkey.
6077 2020-07-03 Werner Koch <wk@gnupg.org>
6079 sm: Exclude rsaPSS from de-vs compliance mode.
6080 + commit 969abcf40cdfc65f3ee859c5e62889e1a8ccde91
6081 * common/compliance.h (PK_ALGO_FLAG_RSAPSS): New.
6082 * common/compliance.c (gnupg_pk_is_compliant): Add arg alog_flags and
6083 test rsaPSS. Adjust all callers.
6084 (gnupg_pk_is_allowed): Ditto.
6085 * sm/misc.c (gpgsm_ksba_cms_get_sig_val): New wrapper function.
6086 (gpgsm_get_hash_algo_from_sigval): New.
6087 * sm/certcheck.c (gpgsm_check_cms_signature): Change type of sigval
6088 arg. Add arg pkalgoflags. Use the PK_ALGO_FLAG_RSAPSS.
6089 * sm/verify.c (gpgsm_verify): Use the new wrapper and new fucntion to
6090 also get the algo flags. Pass algo flags along.
6092 2020-07-02 Werner Koch <wk@gnupg.org>
6094 scd:nks: Implement writecert for the Signature card v2.
6095 + commit c1663c690b29d2dea8bc782c42de5eca08a24cc9
6096 * scd/iso7816.c (CMD_UPDATE_BINARY): New.
6097 (iso7816_update_binary): New.
6098 * scd/app-nks.c (do_deinit): Factor some code out to...
6099 (flush_fid_cache): new.
6100 (do_writecert): New.
6101 (app_select_nks): Register new handler.
6103 dirmngr: Silence annoying warning for missing default ldap server file.
6104 + commit f55a05a69ba07eb2ed354a9275e71e94c5e362aa
6105 * dirmngr/dirmngr.c (parse_ldapserver_file): Add arg ignore_enoent.
6106 (main): Use that arg for the default file.
6108 Support a history file in gpg-card and gpg-connect-agent.
6109 + commit d70b8769c888f42896ae3ef4972bf82e9b5a0c32
6110 * common/gpgrlhelp.c (read_write_history): New.
6111 (gnupg_rl_initialize): Register new function.
6112 * common/ttyio.c (my_rl_rw_history): New var.
6113 (tty_private_set_rl_hooks): Add arg read_write_history.
6114 (tty_read_history): New.
6115 (tty_write_history): New.
6116 * tools/gpg-card.c (HISTORYNAME): New.
6117 (oNoHistory): New enum value.
6118 (opts): New option --no-history.
6120 (cmds): New command "history".
6121 (interactive_loop): Read and save the history.
6122 * tools/gpg-connect-agent.c (HISTORYNAME): New.
6123 (opts): New option --no-history.
6124 (main): Read and save the history. New command /history.
6126 2020-06-30 Werner Koch <wk@gnupg.org>
6128 scd:nks: Fix certificate read problem with TCOS signature card v2.
6129 + commit 07aef873ebc77241e9a2be225537319f6fc15a41
6130 * scd/app-nks.c (filelist): Add a dedicated key entry for ESIGN.
6131 (do_readcert): Test for the app_id.
6133 scd: Change how the removed card flag is set.
6134 + commit 58b091df831f61c8d3551114f2480d36e73de2da
6135 * scd/command.c (cmd_serialno): Set/clear card removed flags for all
6136 connections using the current card.
6138 card: Better detect removed cards. Add TCOS PIN menu.
6139 + commit fb10b6cba43f4ed8675093ac25f461de4dacdce9
6140 * tools/card-call-scd.c (scd_change_pin): Add arg 'nullpin'.
6141 * tools/gpg-card.h (struct card_info_s): Add field 'card_removed'.
6142 * tools/gpg-card.c (fixup_scd_errors): New.
6143 (maybe_set_card_removed): New.
6144 (list_one_kinfo): Change type of first arg to get access to INFO. Set
6146 (list_all_kinfo): Improve label alignment.
6147 (cmd_list): Check that the current card is still available.
6148 (cmd_passwd): Add option --nullpin and menu to chnage TCOS PINs.
6149 (dispatch_command): Handle card_removed flag.
6150 (interactive_loop): Ditto.
6152 2020-06-30 NIIBE Yutaka <gniibe@fsij.org>
6154 ecc: Support Ed448/X448 key generation.
6155 + commit 45398518fb76e2b859d2d48cf4cdbc11fbbda4fa
6156 * g10/keygen.c (ask_curve): Support Ed448/X448 keys.
6157 (generate_keypair): Support switch to X448 key.
6159 2020-06-29 Werner Koch <wk@gnupg.org>
6161 scd: Shorten cardio debug output for all zeroes.
6162 + commit 9b6f574928546e6905a92c3e74d72478f1585c66
6163 * scd/apdu.c (all_zero_p): New.
6166 sm: Fix regression in Friday's commit.
6167 + commit 4f1c257c03667497d642930884b65c4f2245adbd
6168 * sm/gpgsm.c (main): Set ERR also for encrypt.
6170 2020-06-26 Werner Koch <wk@gnupg.org>
6172 sm: Try not to output a partial new message after an error.
6173 + commit ccbb0cfeefed096a9841b6557d10eef12d55b721
6174 * sm/gpgsm.c (main) <aSign,aEncr>: Uses gpgrt_fcancel on error.
6176 sm: Print the serial number of a cert also in decimal.
6177 + commit 208a90197317fb9746ecf54a1d14acbeeddfbd18
6178 * sm/certdump.c: Include membuf.h.
6179 (gpgsm_print_serial_decimal): New.
6180 * sm/keylist.c (list_cert_raw): Print s/n also in decimal
6181 (list_cert_std): Ditto.
6183 2020-06-25 Werner Koch <wk@gnupg.org>
6185 scd:nks: Fix remaining tries warning in --reset mode.
6186 + commit 2429e8559844e27de478d7e90834a714b3748834
6187 * scd/app-nks.c (do_change_pin): Chnage computaion of 'remaining'.
6189 card: Add password change menu for NKS cards.
6190 + commit 28c069db3bb5a1065de69bcc0435c8415df87e5b
6191 * tools/gpg-card.c (cmd_passwd): Add menu for NKS. Add option
6194 sm: Fix support verification of nistp521 signatures.
6195 + commit 17a25c14f1ed1199898ad618c17204eafd5524c1
6196 * sm/certcheck.c (do_encode_md): Fix obvious bug.
6198 2020-06-24 James Bottomley <James.Bottomley@HansenPartnership.com>
6199 Werner Koch <wk@gnupg.org>
6201 agent: separate out daemon handling infrastructure for reuse.
6202 + commit f541e1d95a91d4764c7ed0df10c293bfd493dd41
6203 * agent/call-scd.c: Factor re-usable code out to ...
6204 * agent/call-daemon.c: new. Store infos in an array to allow for
6205 other backend daemons.
6206 * agent/Makefile.am (gpg_agent_SOURCES): Add new file.
6207 * agent/agent.h: Include assuan.h.
6208 (enum daemon_type): New.
6209 (opt): Replace scdaemon_program by daemon_program array. Replace
6210 scd_local by a array d_local. Change users accordingly.
6212 2020-06-24 Werner Koch <wk@gnupg.org>
6214 gpgconf: Fix regression in --launch and --kill from March.
6215 + commit 2d8f060679bafed27909a5ad54b7f74a9f8dd51b
6216 * tools/gpgconf.h (gc_component_id_t): Align order with gc_component
6219 2020-06-24 NIIBE Yutaka <gniibe@fsij.org>
6221 gpg,agent: Support Ed448 signing.
6222 + commit a763bb2580b0d586a80b8ccd3654f41e49604f4f
6223 * agent/pksign.c (do_encode_eddsa): First argument is NBITs,
6224 so that it can support Ed448, as well as Ed25519.
6225 (agent_pksign_do): Follow the change.
6226 * agent/sexp-secret.c (fixup_when_ecc_private_key): No fix-up needed
6227 for Ed448, it's only for classic curves.
6228 * common/openpgp-oid.c (oidtable): Add Ed448.
6229 * common/sexputil.c (get_pk_algo_from_key): Ed448 is only for EdDSA.
6230 * g10/export.c (match_curve_skey_pk): Ed448 is for EdDSA.
6231 * g10/keygen.c (gen_ecc): Support Ed448 with the name of "ed448".
6232 (ask_algo, parse_key_parameter_part): Handle "ed448".
6233 * g10/pkglue.c (pk_verify): Support Ed448.
6234 (pk_check_secret_key): Support Ed448.
6235 * g10/sign.c (hash_for): Defaults to SHA512 for Ed448.
6236 (make_keysig_packet): Likewise.
6238 2020-06-23 NIIBE Yutaka <gniibe@fsij.org>
6240 ecc: Use "cv448" to specify key using X448.
6241 + commit c94eea15d6847c08d2d9ff1c7608953f25fea67d
6242 * common/openpgp-oid.c (oidtable): Use "cv448".
6243 (oid_cv448): Rename from oid_x448.
6244 (openpgp_oidbuf_is_cv448, openpgp_oid_is_cv448): Likewise.
6245 * common/util.h (openpgp_oid_is_cv448): Follow the change.
6246 * g10/ecdh.c (pk_ecdh_generate_ephemeral_key): Likewise.
6247 * g10/keygen.c (gen_ecc, ask_algo): Use "cv448".
6248 (parse_key_parameter_part): Likewise.
6249 * g10/pkglue.c (get_data_from_sexp): Fix for debug output.
6251 2020-06-19 NIIBE Yutaka <gniibe@fsij.org>
6253 agent: Use get_pk_algo_from_key.
6254 + commit 4bdade5b0bea1816a2479c73abc71b41f09ba727
6255 * agent/findkey.c (key_parms_from_sexp, is_eddsa): Remove.
6256 (agent_pk_get_algo): Remove.
6257 * agent/pksign.c (agent_pksign_do): Use get_pk_algo_from_key.
6259 agent: Clean up for getting info from SEXP.
6260 + commit d2e4aa5ee4c5128547cc45c2e1ac35fdc5c00f45
6261 * agent/agent.h (agent_is_dsa_key, agent_is_eddsa_key): Remove.
6262 (agent_pk_get_algo): New.
6263 * agent/findkey.c (agent_pk_get_algo): New.
6264 * agent/pksign.c (do_encode_dsa): Use generic GCRY_PK_ECC.
6265 (agent_pksign_do): Use agent_pk_get_algo.
6267 agent: A little clean up.
6268 + commit abc6a3100a33122ba3673b578a2b364a6b45d252
6269 * agent/findkey.c (agent_is_eddsa_key): Remove dead case.
6271 2020-06-17 Werner Koch <wk@gnupg.org>
6273 agent: Fix regression in 'd' fixup code for shadowed keys.
6274 + commit d1e1c622d55e783ae5bf601249598f0da8d5e688
6275 * agent/sexp-secret.c (fixup_when_ecc_private_key): Ignore shadowed
6278 sm: Support verification of nistp521 signatures.
6279 + commit 596212e71abf33b30608348b782c093dace83110
6280 * sm/certcheck.c (do_encode_md): Take care of nistp521.
6282 2020-06-09 Werner Koch <wk@gnupg.org>
6284 gpg: Fix for new SOS changes when used with Libgcrypt < 1.8.6.
6285 + commit eeb599c9e261586a664430058b7cfad7025a503f
6286 * g10/free-packet.c (is_mpi_copy_broken): New.
6287 (my_mpi_copy): Mix gcry_mpi_copy.
6289 gpg: Extend the TRUST_ status lines.
6290 + commit 96f1ed5468002330ea21d9ad32ac3b464bb40b1a
6291 * g10/pkclist.c (write_trust_status): Add arg mbox.
6292 (check_signatures_trust): Appenmd mbox to the status lines.
6294 2020-06-09 NIIBE Yutaka <gniibe@fsij.org>
6296 gpg: Use bytes for ECDH.
6297 + commit da5e0bc31b4c6f16ed5ff9b35063f3b03eb7ff16
6298 * g10/ecdh.c (extract_secret_x): Use byte * instead of MPI.
6299 (prepare_ecdh_with_shared_point): Use char * instead of MPI.
6300 (pk_ecdh_encrypt_with_shared_point): Likewise.
6301 (pk_ecdh_decrypt): Likewise.
6302 * g10/pkglue.h (pk_ecdh_encrypt_with_shared_point, pk_ecdh_decrypt):
6304 * g10/pkglue.c (get_data_from_sexp): New.
6305 (pk_encrypt): Use get_data_from_sexp instead of get_mpi_from_sexp.
6306 Follow the change of pk_ecdh_encrypt_with_shared_point.
6307 * g10/pubkey-enc.c (get_it): Follow the change of pk_ecdh_decrypt.
6309 gpg: Add X448 support.
6310 + commit e9760eb9e70b9804c988dafe01851f6600869d9e
6311 * common/openpgp-oid.c (oidtable): Add X448.
6312 (oid_x448,openpgp_oidbuf_is_x448,openpgp_oid_is_x448): New.
6313 * common/util.h (openpgp_oid_is_x448): New.
6314 * g10/ecdh.c (gen_k): Add handling of opaque MPI and support
6316 (pk_ecdh_generate_ephemeral_key): X448 requires opaque MPI.
6317 * g10/keygen.c (gen_ecc): Add support for X448.
6318 (ask_algo, parse_key_parameter_part): Likewise.
6320 gpg,ecc: Handle external representation as SOS with opaque MPI.
6321 + commit f5bc94555458123f93d8b07816a68fb7485421e1
6322 * g10/pkglue.h (sexp_extract_param_sos): New.
6323 * g10/build-packet.c (sos_write): New.
6324 (do_key, do_pubkey_enc, do_signature): Use sos_write for ECC.
6325 * g10/export.c (cleartext_secret_key_to_openpgp): Use
6326 sexp_extract_param_sos.
6327 (transfer_format_to_openpgp): Use opaque MPI for ECC.
6328 * g10/keygen.c (ecckey_from_sexp): Use sexp_extract_param_sos.
6329 * g10/keyid.c (hash_public_key): Handle opaque MPI for SOS.
6330 * g10/parse-packet.c (sos_read): New.
6331 (parse_pubkeyenc,parse_signature,parse_key): Use sos_read for ECC.
6332 * g10/pkglue.c (sexp_extract_param_sos): New.
6333 (pk_verify): Handle opaque MPI for SOS.
6334 (pk_encrypt): Use sexp_extract_param_sos.
6335 * g10/seskey.c (encode_session_key): Use opaque MPI.
6336 * g10/sign.c (do_sign): Use sexp_extract_param_sos.
6338 2020-06-08 Werner Koch <wk@gnupg.org>
6340 gpg: If possible TRUST values now depend on signer's UID or --sender.
6341 + commit 5c2080f4670a768787f5cb4ed5c32e0946837883
6342 * g10/mainproc.c (check_sig_and_print): Add failsafe check for PK.
6343 Pass KEYBLOCK down do check_signatures_trust. Protect existsing error
6344 ocde in case the signature expired.
6345 * g10/pkclist.c (is_in_sender_list): New.
6346 (check_signatures_trust): Add args keyblock and pk. Add new uid based
6348 * g10/test-stubs.c, g10/gpgv.c: Adjust stubs.
6350 2020-06-08 NIIBE Yutaka <gniibe@fsij.org>
6352 agent: Fix the condition to detect leading 0x00 problem.
6353 + commit e2e5736842299ebfb8263b674d5cbfb9b784d70f
6354 * agent/sexp-secret.c (fixup_when_ecc_private_key): Use curve name
6355 to identify the issue.
6357 2020-06-05 NIIBE Yutaka <gniibe@fsij.org>
6359 agent,ecc: Use of opaque MPI for ECC, fixup 'd'.
6360 + commit 47c1c329ed823a562185f86e98ac903605104f11
6361 * agent/Makefile.am: Add sexp-secret.c.
6362 * agent/agent.h: New function declarations.
6363 * agent/sexp-secret.c: New.
6364 * agent/findkey.c (agent_key_from_file): Use sexp_sscan_private_key.
6365 * agent/protect-tool.c (read_and_unprotect): Fix up private part,
6366 calling fixup_when_ecc_private_key.
6368 agent: For ECC, use opaque MPI for key representation.
6369 + commit 2b118516240b4bddd34c68c23a99bea56682a509
6370 * agent/cvt-openpgp.c (scan_pgp_format): New with SOS support.
6371 (do_unprotect): Use scan_pgp_format, handle opaque MPI for ECC.
6372 (convert_from_openpgp_main): Use opaque MPI for ECC.
6373 (apply_protection): Set GCRYMPI_FLAG_USER1 flag for encrypted secret.
6374 (extract_private_key): Use "/qd" for ECC, opaque MPI.
6376 agent,ssh: Tighten condition for EdDSA.
6377 + commit a7d46c78e242e72f6ff681f6fe56ffc4dcb74a18
6378 * agent/command-ssh.c (ssh_key_to_blob): Prepare for non-prefixed
6379 point representation of EdDSA.
6381 agent: Remove duplicated code for EdDSA.
6382 + commit 2e988546c59ba25bf9e63521112c0c3c73b012f1
6383 * agent/command-ssh.c (ssh_receive_key): Curve is "Ed25519".
6384 Use sexp_key_construct always.
6386 agent: Clean up do_encode_md.
6387 + commit 4c0b12f817f15862111a01493aaadce943410ee9
6388 * agent/pksign.c (do_encode_md): Directly use sexp_build.
6390 2020-06-03 Werner Koch <wk@gnupg.org>
6392 doc: Minor enhancement for reproducibility.
6393 + commit 074ab108e768b2f946d789c1f3a7f14a65e07c52
6394 * doc/Makefile.am (defsincdate): In no repo mode and with
6395 SOURCE_DATE_EPOCH set, use that instead of blanking the date.
6397 card: Improve openpgp key writing in "writecert".
6398 + commit 4f6e0e12cbd3444b9e6ea5e4b92ea5b3072a3e17
6399 * tools/card-keys.c (struct export_key_status_parm_s): New.
6400 (export_key_status_cb): New.
6401 (get_minimal_openpgp_key): New.
6402 * tools/gpg-card.c (cmd_writecert): Allow writing a keyblock directly
6403 from an existing gpg key.
6405 gpg: Improve generation of keys stored on card (brainpool,cv25519).
6406 + commit 48251cf9a7d3776667342f4705ac3de89bd75534
6407 * g10/keygen.c (ask_key_flags_with_mask): Allow more than ECDH for
6409 (ask_algo): Tweak mapping of ECC to OpenPGP algos
6410 (parse_key_parameter_part): Ditto.
6411 (generate_subkeypair): Create the subkey with the time stored on the
6414 sm: Fix recently introduced regression in CSR creation.
6415 + commit 7558128e16d7fc20b9c40bf7e150ca08bbb4467f
6416 * sm/certreqgen.c (create_request): Also set SIGKEYLEN.
6418 2020-05-29 NIIBE Yutaka <gniibe@fsij.org>
6420 scd: Fix condition for C5 data object for newer Yubikey.
6421 + commit f3df8dbb696fed192501fa7f741c2e0e0936a3d5
6422 * scd/app-openpgp.c (compare_fingerprint): Relax the condition.
6424 2020-05-28 Werner Koch <wk@gnupg.org>
6426 card: Allow to store and retrieve keyblocks in OpenPGP cards.
6427 + commit 2d9592e78f4978307e378e07d6c170a28000a494
6428 * tools/gpg-card.c: Include tlv.h.
6429 (cmd_writecert): Add option --openpgp.
6430 (cmd_readcert): Ditto.
6432 card: New command "apdu"
6433 + commit ed0759f39be04dd6108237f5ed03c7cfd1cb4642
6434 * tools/card-call-scd.c (scd_apdu): Add optional arg 'options'.
6435 * tools/gpg-card.c (cmd_apdu): New.
6436 (enum cmdids): Add cmdAPDU.
6437 (dispatch_command): Add command "apdu".
6438 (interactive_loop): Ditto.
6440 2020-05-27 Werner Koch <wk@gnupg.org>
6442 card: Update card info after "generate".
6443 + commit 94d31660c6db22c3b539f440994d286f687c273f
6444 * tools/gpg-card.c (cmd_generate): Re-read the card on success.
6446 scd:openpgp: New KEY-STATUS attribute.
6447 + commit 21496761226c1020a98e3ec7dd2b9dd013d4386b
6448 * scd/app-openpgp.c (do_getattr): Return KEY-STATUS
6450 card: Add command "bye"
6451 + commit 08310849a28071fbca761fa4ca18702b39092947
6452 * tools/gpg-card.c: Add command "bye" as alias for "quit".
6453 * tools/gpg-connect-agent.c (main): Add "/quit" as alias for "/bye"
6455 card: Take care of removed and re-inserted cards.
6456 + commit 46a3de4b5acb37274ddd132499a3243e1f92b506
6457 * tools/gpg-card.c (cmd_list): Take care of the need_sn_cmd flag.
6458 (cmd_factoryreset): Clear that flag.
6459 (dispatch_command): Set flag after a reset and after a
6460 CARD_NOT_PRESENT error.
6462 2020-05-26 Werner Koch <wk@gnupg.org>
6464 card: Implement UID command and print capabilities.
6465 + commit c2a47475ba0f6bd1de80e92dd91949501256025e
6466 * tools/card-call-scd.c (learn_status_cb): Return the full value for
6467 UIF. Add info about SM, MCL3, and PD.
6468 * tools/gpg-card.h (struct card_info_s): Add corresponding fields.
6469 * tools/gpg-card.c (list_openpgp): Print capabilities. Print the
6470 permanent flag for UIF.
6471 (cmd_uif): Implement.
6473 scd:openpgp: Add attribute "UIF" for convenience.
6474 + commit 11f0700282c1eeaee8db6686c38aca0900271351
6475 * scd/app-openpgp.c (do_getattr): New attrubute "UIF".
6476 (do_learn_status): Use that.
6478 scd: Fix Yubikey app switching problem.
6479 + commit 20090886706e2af6723ca11e292272fc00cffe07
6480 * scd/app.c (select_all_additional_applications_internal): Re-select
6481 first app. Add arg 'ctrl'.
6483 2020-05-22 NIIBE Yutaka <gniibe@fsij.org>
6485 gpg: Clean up ECDH code path (5).
6486 + commit 510bda7d3754801be18a592694578589fe503fb8
6487 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Now, it's only for
6489 (pk_ecdh_decrypt): Use prepare_ecdh_with_shared_point and move decrypt
6490 code path in original pk_ecdh_encrypt_with_shared_point here.
6491 * g10/pkglue.h (pk_ecdh_encrypt_with_shared_point): Change API.
6492 * g10/pkglue.c (pk_encrypt): Follow the change.
6494 gpg: Clean up ECDH code path (4).
6495 + commit 64d93271bfce1968ebe61324b900875dbd6dd2eb
6496 * g10/ecdh.c (prepare_ecdh_with_shared_point): New.
6497 (pk_ecdh_encrypt_with_shared_point): Fixing error paths for closing
6498 the cipher handle, use prepare_ecdh_with_shared_point.
6500 gpg: Clean up ECDH code path (3).
6501 + commit 80c02d13d9994abae9e67c3554528352c621cd9b
6502 * g10/ecdh.c (derive_kek): New.
6503 (pk_ecdh_encrypt_with_shared_point): Use derive_kek.
6505 gpg: Clean up ECDH code path (2).
6506 + commit a973d9113840282468015eb26f07f2b32f977d70
6507 * g10/ecdh.c (build_kdf_params): New.
6508 (pk_ecdh_encrypt_with_shared_point): Use build_kdf_params, and check
6509 things before extract_secret_x.
6511 gpg: Clean up ECDH code path (1).
6512 + commit 960d37644cbbe2a234352d0bc58095e2b0371eec
6513 * g10/ecdh.c (extract_secret_x): New.
6514 (pk_ecdh_encrypt_with_shared_point): Use extract_secret_x.
6516 2020-05-20 NIIBE Yutaka <gniibe@fsij.org>
6518 dirmngr: dns: Fix allocation of string buffer in stack.
6519 + commit 30eef28bc0f5deaa1b4b7f04293a6527524280a9
6520 * dirmngr/dns.h (dns_strsection, dns_strclass)
6521 (dns_strtype): Change APIs.
6522 * dirmngr/dns.c (dns_p_lines): Use __dst for dns_strsection.
6523 (dns_rr_print): Use __dst for dns_strclass and dns_strtype.
6524 (dns_trace_dump): Likewise.
6525 (dns_ai_print): Use __dst for dns_strtype.
6526 (dns_strsection): Add an argument __dst for storage.
6527 (dns_strclass, dns_strtype): Likewise.
6528 (parse_packet): Use __dst for dns_strsection.
6529 (send_query): Use __dst for dns_strtype.
6530 (isection): Use __dst for dns_strsection.
6531 (iclass): Use __dst for dns_strclass.
6532 (itype): Use __dst for dns_strtype.
6534 2020-05-19 Werner Koch <wk@gnupg.org>
6536 sm: Create ECC certificates with AKI and SKI by default.
6537 + commit 44676819f2873705b78849e7b2fd22214b691642
6538 * sm/certreqgen.c (create_request): Create AKI and SKI by default.
6540 common: New function to extract Q from an ECC key.
6541 + commit 3cd9dac7e0976643c6e4b6537cf363b2b12d422f
6542 * common/sexputil.c (get_ecc_q_from_canon_sexp): New.
6544 2020-05-18 Werner Koch <wk@gnupg.org>
6546 sm: Support creation of EdDSA certificates.
6547 + commit 6dc3846d78192e393be73c16c72750734a9174d1
6548 * sm/misc.c (transform_sigval): Support EdDSA.
6549 * sm/certreqgen.c (create_request): Support EdDSA cert creation.
6550 * sm/certcheck.c (gpgsm_check_cert_sig): Map some ECC algo OIDs to
6552 * sm/call-agent.c (struct sethash_inq_parm_s): New.
6553 (sethash_inq_cb): New.
6554 (gpgsm_agent_pksign): Add mode to pass plain data for EdDSA.
6556 agent: Allow to use SETHASH for arbitrary data.
6557 + commit b18fb0264abdb6cb0a99ba0ba941dc9a6e35f74a
6558 * agent/agent.h (struct server_control_s): Add field digest.data.
6559 * agent/gpg-agent.c (agent_deinit_default_ctrl): Free that field.
6560 * agent/command.c (reset_notify): Ditto.
6561 (start_command_handler): ditto.
6562 (cmd_sethash): Add new option --inquire.
6563 * agent/call-scd.c (agent_card_pksign): For now return an error if
6564 inquire mode was used.
6565 * agent/command-ssh.c (ssh_handler_sign_request): Make sure
6566 digest.data is cleared.
6567 * agent/divert-scd.c (divert_pksign): Implement inquire mode.
6568 * agent/pksign.c (agent_pksign_do): Ditto.
6570 2020-05-13 Werner Koch <wk@gnupg.org>
6572 sm: Support import and verification of EdDSA certificates.
6573 + commit b1694987bb6484405d41d34046a5290176feadd0
6574 * sm/certdump.c (gpgsm_get_serial): New.
6575 * sm/certcheck.c (gpgsm_check_cert_sig): Support EdDSA signatures.
6577 2020-05-11 Werner Koch <wk@gnupg.org>
6579 sm: Support signing using ECDSA.
6580 + commit f44d395bdfec464b1e2a0a1aef39561e6e48a45c
6581 * sm/gpgsm.h (struct certlist_s): Add helper field pk_algo.
6582 * sm/sign.c (gpgsm_sign): Store the public key algo. Take the hash
6583 algo from the curve. Improve diagnostic output in verbose mode.
6585 2020-05-08 Werner Koch <wk@gnupg.org>
6587 sm: Allow decryption using dhSinglePass-stdDH-sha1kdf-scheme.
6588 + commit 68b857df13c8a4e6cae5e3a29fd065bf90764547
6589 * sm/decrypt.c (ecdh_decrypt): Support
6590 dhSinglePass-stdDH-sha1kdf-scheme. Factor key derive code out to ...
6591 (ecdh_derive_kek): new global function. Allow for hashs shorter than
6593 (hash_ecc_cms_shared_info): Make file-only.
6594 * sm/encrypt.c (ecdh_encrypt): Replace derive code by a call to the
6595 new ecdh_derive_kek. Add test code to create data using
6596 dhSinglePass-stdDH-sha1kdf-scheme.
6597 * sm/gpgsm.h (opt): Add member force_ecdh_sha1kdf.
6598 * sm/gpgsm.c: Add option --debug-force-ecdh-sha1kdf.
6600 sm: Print algorithm infos in data decryption mode.
6601 + commit 439c9b5cb55044f13d4af6563f4e791093d510b0
6602 * common/sexputil.c (cipher_mode_to_string): New.
6603 * sm/decrypt.c (prepare_decryption): Show cipher algo and mode.
6604 (gpgsm_decrypt): Show key algo and fingerprint
6606 sm: Cleanup the use of GCRY_PK_ECC and GCRY_PK_ECDSA.
6607 + commit 34b628db4618a8712536aea695f934b0286e7b18
6608 * common/sexputil.c (pubkey_algo_to_string): New.
6609 * sm/certcheck.c (do_encode_md): Replace GCRY_PK_ECDSA by GCRY_PK_ECC.
6610 * sm/certreqgen-ui.c (check_keygrip): Add all ECC algorithms.
6611 * sm/gpgsm.c (our_pk_test_algo): Also allow EdDSA.
6612 * sm/verify.c (gpgsm_verify): Map ECC algo to ECDSA. Use new pubkey
6615 sm: Improve readability of the data verification output.
6616 + commit a759fa963a42e0652134130029217270b6d5d00b
6617 * sm/verify.c (gpgsm_verify): Print the used algorithms.
6619 2020-05-07 Werner Koch <wk@gnupg.org>
6621 card: Allow listing of NKS cards.
6622 + commit 94966347452632f8140fae70f7fcbadcc2b81071
6623 * tools/card-call-scd.c (learn_status_cb): Always fill chvinfo.
6624 * tools/gpg-card.h (struct card_info_s): Increase size of chvinfo and
6626 * tools/gpg-card.c (list_nks): New.
6627 (print_a_version): Support single part version numbers.
6628 (list_card): Call list_nks.
6630 scd:nks: Add framework to support IDKey cards.
6631 + commit 1f6a39092fe4b5f02bc4741a0a23d102d30f4063
6632 * scd/app-nks.c (NKS_APP_IDLM): New.
6633 (struct app_local_s): Replace NKS_VERSION by the global APPVERSION.
6634 (do_learn_status): Always send CHV-STATUS.
6635 (find_fid_by_keyref): Basic support for IDLM only use.
6636 (do_learn_status_core): Ditto.
6637 (do_readcert): Ditto.
6638 (verify_pin): Ditto.
6639 (parse_pwidstr): Ditto.
6640 (do_with_keygrip): Ditto.
6641 (switch_application): Ditto.
6642 (app_select_nks): Fallback to IDLM.
6644 scd:nks: Get the PIN prompts right for the Signature Card.
6645 + commit aecc008acb64ebbb6c667c4a128af4e61da57f84
6646 * scd/app-nks.c (get_dispserialno): Move more to the top.
6647 (do_getattr): Add $DISPSERIALNO and SERIALNO. Make CHV-STATUS work
6649 (verify_pin): Use dedicated min. PIN lengths.
6650 (parse_pwidstr): Support NKS15
6652 sm: Print the key types as standard key algorithm strings.
6653 + commit 5c29d25e6c7c0a5a63ab4c46d4624217307adb78
6654 * sm/fingerprint.c (gpgsm_get_key_algo_info): Factor code out to ...
6655 (gpgsm_get_key_algo_info2): new.
6656 (gpgsm_pubkey_algo_string): New.
6657 * sm/keylist.c (list_cert_colon): Put curve into field 17
6658 (list_cert_raw): Print the unified key algotithm string instead of the
6660 (list_cert_std): Ditto.
6662 scd:nks: Support decryption using ECDH.
6663 + commit af45d884aa1c3eccbc6972a2e5197ece3fd1987a
6664 * scd/app-nks.c (struct fid_cache_s): Add field 'algo'.
6665 (keygripstr_from_pk_file): Add arg 'r_algo' to return the algo.
6666 (find_fid_by_keyref): Ditto.
6667 (get_dispserialno): New.
6669 (verify_pin): Provide better prompts.
6670 (do_decipher): Support ECDH.
6671 (parse_pwidstr): Add hack tospecify any pwid..
6672 (do_change_pin): Support Signature Card V2.0 (NKS15) style NullPIN.
6673 Provide a better prompt.
6675 sm: Support decryption of ECDH data using a smartcard.
6676 + commit ee6d29f1797e06977ae3d2edae9edc1165c6f144
6677 * sm/decrypt.c (ecdh_decrypt): Add arg nbits and detect bare secret.
6678 (prepare_decryption): Add arg nbits and pass on.
6679 (gpgsm_decrypt): Pass size of curve to prepare_decryption.
6681 2020-05-05 Werner Koch <wk@gnupg.org>
6683 scd: Extend an internal function to also return the algo.
6684 + commit 314859d7e7de5010ca1e9d90b83acf3bc8493631
6685 * scd/app-help.c (app_help_get_keygrip_string_pk): Add optional arg
6686 r_algo. Change all callers.
6687 (app_help_get_keygrip_string): Ditto.
6689 2020-05-04 Werner Koch <wk@gnupg.org>
6691 scd:nks: Add do_with_keygrip and implement a cache.
6692 + commit 1e72a1a218490c0fc07811a02ddad6cc38913f77
6693 * scd/app-nks.c (struct fid_cache_s): New.
6694 (struct app_local_s): Add field 'fid_cache'.
6695 (do_deinit): Release the cache.
6696 (keygripstr_from_pk_file): Implement the cache.
6697 (find_fid_by_keyref): New
6698 (do_sign, do_decipher): Use new function.
6699 (do_with_keygrip): New.
6701 sm: Support encryption using ECDH keys.
6702 + commit d5051e31a8fc07c339253c6b82426e0d0115a20a
6703 * sm/decrypt.c (hash_ecc_cms_shared_info): Make global.
6704 * sm/encrypt.c (ecdh_encrypt): New.
6705 (encrypt_dek): Add arg PK_ALGO and support ECDH.
6706 (gpgsm_encrypt): Pass PK_ALGO.
6708 2020-04-27 Werner Koch <wk@gnupg.org>
6710 sm: Add support to export ECC private keys.
6711 + commit 5da6925a334c68d736804d8f19a684a678409d99
6712 * sm/minip12.c [TEST]: Remove test code. Include util.h, tlv.h. and
6713 openpgpdefs.h. Remove the class and tag constants and replace them by
6715 (builder_add_oid, builder_add_mpi): New.
6716 (build_key_sequence): Rename to ...
6717 (build_rsa_key_sequence): this.
6718 (build_ecc_key_sequence): New.
6719 (p12_build): Call RSA or ECC builder.
6720 (p12_raw_build): Ditto.
6721 * sm/export.c (gpgsm_p12_export): Use correct armor header for ECC.
6722 (sexp_to_kparms): Support ECC.
6724 * sm/t-minip12.c: New to replace the former TEST code in minip12.h.
6726 2020-04-24 Werner Koch <wk@gnupg.org>
6728 common: Add an easy to use DER builder.
6729 + commit 5ea878274ef51c819368f021c69c518b9aef6f82
6730 * common/tlv-builder.c: New.
6731 * common/tlv.c: Remove stuff only used by GnuPG 1.
6732 (put_tlv_to_membuf, get_tlv_length): Move to ...
6733 * common/tlv-builder.c: here.
6734 * common/tlv.h (tlv_builder_t): New.
6736 2020-04-23 Werner Koch <wk@gnupg.org>
6738 sm: Support decryption of ECDH data.
6739 + commit 95d83cf906177fe9f00e88ae42d4c118c7db4371
6740 * sm/decrypt.c: Include tlv.h.
6741 (string_from_gcry_buffer): New.
6742 (hash_ecc_cms_shared_info): New.
6743 (ecdh_decrypt): New.
6744 (prepare_decryption): Support ECDH. Add arg pk_algo.
6745 (gpgsm_decrypt): Lift some variables from an inner code block.
6747 common: Add functions to help create DER objects.
6748 + commit 5d015b38eb9f828acf522fa89e4944f3b343678c
6749 * common/tlv.c (put_tlv_to_membuf): New.
6750 (get_tlv_length): New.
6751 * common/tlv.h: Include membuf.h.
6753 2020-04-21 Werner Koch <wk@gnupg.org>
6755 sm: Support import of PKCS#12 encoded ECC private keys.
6756 + commit 8dfef5197af9f655697e0095c6613137d51c91e7
6757 * sm/minip12.c: Include ksba.h.
6758 (oid_pcPublicKey): New const.
6759 (parse_bag_data): Add arg 'r-curve'. Support parsing of ECC private
6761 (p12_parse): Add arg 'r_curve'.
6762 * sm/import.c (parse_p12): Support ECC import.
6764 2020-04-17 Werner Koch <wk@gnupg.org>
6766 scd:nks: Allow retrieving certificates from a Signature Card v.20.
6767 + commit f05a32e5c9db7d0840c74fccc350a9e0ff5fb819
6768 * scd/app-nks.c: Major rework to support non-RSA cards.
6770 scd: Detect missing card in "getinfo all_active_apps".
6771 + commit 3633ca6e21f7feb97b6690025614575bb6909f8b
6772 * scd/app.c (send_card_and_app_list): Detect no app case.
6774 2020-04-16 Werner Koch <wk@gnupg.org>
6776 sm: Always allow authorityInfoAccess lookup if CRLs are also enabled.
6777 + commit bbb7edb8807b7d3c8bb5284d8fdf21adb67cd87d
6778 * sm/certchain.c (find_up): Disable external lookups in offline mode.
6779 Always allow AKI lookup if CRLs are also enabled.
6781 sm: Lookup missing issuers first using authorityInfoAccess.
6782 + commit f5efbd5a1169ca7700f430a4a26ba086e603c887
6783 * sm/call-dirmngr.c (gpgsm_dirmngr_lookup): Add optional arg URL and
6785 * sm/certchain.c (oidstr_caIssuers): New.
6786 (struct find_up_store_certs_s): Add additional fields.
6787 (find_up_store_certs_cb): Store the fingerprint.
6788 (find_up_via_auth_info_access): New.
6789 (find_up): Try the AIA URI first.
6791 dirmngr: Allow http URLs with "LOOKUP --url"
6792 + commit 7f1be1ea524ee53d8c7b628e0305b61ebad4ab25
6793 * dirmngr/crlfetch.c (read_cert_via_http): New.
6794 (fetch_cert_by_url): Implement http scheme.
6796 gpg: Make AEAD modes subject to compliance checks.
6797 + commit cec397e00240829495de2b487fe60d997d810c03
6798 * g10/decrypt-data.c (decrypt_data): Move aead algo detection up.
6800 2020-04-15 Werner Koch <wk@gnupg.org>
6802 gpg: Fix broken setting of AEAD algo.
6803 + commit df0edaf91a220f8c6dffbfd1f795e229858b096b
6804 * g10/main.h (DEFAULT_AEAD_ALGO): Set to OCB.
6806 sm,dirmngr: Restrict allowed parameters used with rsaPSS.
6807 + commit c0d5c673542b3d517c33fe1a9ab26bcda1a5a95f
6808 * sm/certcheck.c (extract_pss_params): Check the used PSS params.
6809 * dirmngr/crlcache.c (finish_sig_check): Ditto.
6810 * dirmngr/validate.c (check_cert_sig): Ditto.
6812 2020-04-15 NIIBE Yutaka <gniibe@fsij.org>
6814 regexp: Fix generation of _unicode_mapping.c.
6815 + commit 50b320952e99ea20f9b77c6c501280fe37fd2598
6816 * configure.ac (AWK_HEX_NUMBER_OPTION): Detect GNU Awk.
6817 * regexp/Makefile.am: Use AWK_HEX_NUMBER_OPTION.
6818 * regexp/parse-unidata.awk: Don't use strtonum.
6820 2020-04-14 Werner Koch <wk@gnupg.org>
6822 sm: Support rsaPSS verification also for CMS signatures.
6823 + commit 6c28d9343ea6df9cda1b69e77751a9e958eb3d70
6824 * sm/certcheck.c (gpgsm_check_cert_sig): Factor PSS parsing out to ...
6825 (extract_pss_params): new.
6826 (gpgsm_check_cms_signature): Implement PSS.
6828 2020-04-09 Werner Koch <wk@gnupg.org>
6830 dirmngr: Support rsaPSS also in the general validate module.
6831 + commit ba34f1415366d91d1831d717ec310ddda33f9cc4
6832 * dirmngr/validate.c (hash_algo_from_buffer): New.
6833 (uint_from_buffer): New.
6834 (check_cert_sig): Support rsaPSS.
6835 * sm/certcheck.c (gpgsm_check_cert_sig): Fix small memory leak on
6838 sm,dirmngr: Support rsaPSS signature verification.
6839 + commit b45ab0ca08f8d6f9831192210b9ab141f4e450cf
6840 * sm/certcheck.c (hash_algo_from_buffer): New.
6841 (uint_from_buffer): New.
6842 (gpgsm_check_cert_sig): Handle PSS.
6843 * dirmngr/crlcache.c (hash_algo_from_buffer): New.
6844 (uint_from_buffer): New.
6845 (start_sig_check): Detect PSS and extract hash algo. New arg to
6847 (finish_sig_check): New arg use_pss. Extract PSS args and use them.
6848 (crl_parse_insert): Pass use_pss flag along.
6850 common: New function to map hash algo names.
6851 + commit 5d5b70ae0f515290a3d64daa1d687fe8c8477f76
6852 * common/sexputil.c (hash_algo_to_string): New.
6854 scd:p15: Return a display S/N via Assuan.
6855 + commit bfedc760efdcf606da7c214e84d12a10ee4cbcc0
6856 * scd/app-p15.c (make_pin_prompt): Factor some code out to ...
6857 (get_dispserialno): this.
6858 (do_getattr): Use new fucntion for a $DISPSERIALNO.
6860 2020-04-08 NIIBE Yutaka <gniibe@fsij.org>
6862 gpg: ECDH: Accept longer padding.
6863 + commit fd79cadf7ba5ce45dfb5e266975f58bf5c7ce145
6864 * g10/pubkey-enc.c (get_it): Remove check which mandates shorter
6867 2020-04-07 Werner Koch <wk@gnupg.org>
6869 scd:p15: Show a pretty PIN prompt.
6870 + commit 9ec8d984be4676126843d5aa7dfd0b7d71eff13c
6871 * scd/app-p15.c (struct prkdf_object_s): New fields common_name and
6873 (release_prkdflist): Free them.
6874 (keygrip_from_prkdf): Parse cert and set them.
6875 (any_control_or_space): New.
6876 (make_pin_prompt): New.
6877 (verify_pin): Construct a pretty PIN prompt.
6878 (do_sign): Remove debug output.
6880 scd: Return GPG_ERR_BAD_PIN on 0x63Cn status word.
6881 + commit f28795b615c3042f6eb7c9d941e232d0da50efbc
6882 * scd/iso7816.c (map_sw): Detect 0x63Cn status code.
6884 scd: Factor common PIN status check out.
6885 + commit 60d018f6a91c4c90b8ecf13f88ac4256699f4007
6886 * scd/iso7816.h (ISO7816_VERIFY_ERROR): New.
6887 (ISO7816_VERIFY_NO_PIN): New.
6888 (ISO7816_VERIFY_BLOCKED): New.
6889 (ISO7816_VERIFY_NULLPIN): New.
6890 (ISO7816_VERIFY_NOT_NEEDED): New.
6891 * scd/iso7816.c (iso7816_verify_status): New.
6892 * scd/app-nks.c (get_chv_status): Use new function.
6893 * scd/app-piv.c (get_chv_status): Ditto.
6894 (verify_chv): Ditto.
6896 scd:p15: Fix decrypt followed by sign problem for D-Trust cards.
6897 + commit 42ddcc87f4bca40d605d133b6cdb4e761a49a1c9
6898 * scd/iso7816.c (iso7816_select_mf): New.
6899 * scd/app-p15.c (card_product_t): New.
6900 (struct app_local_s): Add field 'card_product'.
6901 (read_ef_tokeninfo): Detect D-Trust card.
6902 (prepare_verify_pin): Switch to D-Trust AID.
6903 (do_decipher): Restore a SE for D-TRust cards. Chnage the passing
6906 2020-04-06 NIIBE Yutaka <gniibe@fsij.org>
6908 tools: Use internal regexp routines.
6909 + commit 7ee2a9687da9560a5d17c7046c87c2f7a6733d5c
6910 * tools/gpg-check-pattern.c: Use jimregexp.h.
6912 2020-04-03 Werner Koch <wk@gnupg.org>
6914 scd:p15: Emit MANUFACTURER, $ENCRKEYID, $SIGNKEYID.
6915 + commit aa60645b997d23ac2958f75fd349c1cd7b8af902
6916 * scd/app-p15.c (read_ef_tokeninfo): Store manufacturer_id.
6917 (do_getattr): Implement MANUFACTURER, $ENCRKEYID and $SIGNKEYID.
6918 (send_keypairinfo): Also print usage flags.
6920 gpg,card: Use the new MANUFACTURER attribute.
6921 + commit 15352b0eac335e7993fcd7720106a3a7d22caae1
6922 * tools/gpg-card.h (struct card_info_s): Add manufacturer fields.
6923 * tools/card-call-scd.c (release_card_info): Release them.
6924 (learn_status_cb): Parse MANUFACTURER attribute.
6925 * tools/gpg-card.c (get_manufacturer): Remove.
6926 (list_card): Use the new attribute.
6927 * g10/call-agent.h (struct agent_card_info_s): Add manufacturer fields.
6928 * g10/call-agent.c (agent_release_card_info): Release them.
6929 (learn_status_cb): Parse MANUFACTURER attribute.
6930 * g10/card-util.c (get_manufacturer): Remove.
6931 (current_card_status): Use new attribute.
6933 scd:openpgp: New attribute "MANUFACTURER".
6934 + commit 541a6a903e79c9146a379f5c6c0fb34e6c2b42c4
6935 * scd/app-openpgp.c (get_manufacturer): New..
6936 (do_getattr): Add new attribute "MANUFACTURER".
6937 (do_learn_status): Always print it.
6939 2020-04-03 NIIBE Yutaka <gniibe@fsij.org>
6941 gpg: Add regular expression support.
6942 + commit ba247a114c75a84473c11c1484013b09fbb9bcd1
6943 * AUTHORS, COPYING.other: Update.
6944 * Makefile.am (SUBDIRS): Add regexp sub directory.
6945 * configure.ac (DISABLE_REGEX): Remove.
6946 * g10/Makefile.am (needed_libs): Add libregexp.a.
6947 * g10/trustdb.c: Remove DISABLE_REGEX support.
6948 * regexp/LICENSE, regexp/jimregexp.c, regexp/jimregexp.h,
6949 regexp/utf8.c, regexp/utf8.h: New from Jim Tcl.
6950 * regexp/UnicodeData.txt: New from Unicode.
6951 * regexp/Makefile.am, regexp/parse-unidata.awk: New.
6952 * tests/openpgp/Makefile.am: Remove DISABLE_REGEX support.
6953 * tools/Makefile.am: Remove DISABLE_REGEX support.
6955 2020-04-02 Werner Koch <wk@gnupg.org>
6957 scd:p15: Implement do_with_keygrip and capabilities.
6958 + commit 61c5b0767fac4c2d7fe95cdbc6d0f0a94878c813
6959 * scd/app-p15.c (prepare_verify_pin): Allow use without an AODF.
6960 (verify_pin): Ditto.
6961 (do_with_keygrip): Implement capability restrictions.
6963 scd:p15: Rename some variables and functions for clarity.
6964 + commit 8149742ddfea6c76898786cb7de7c92bbf8aab0a
6965 * scd/app-p15.c: Rename keyinfo to prkdf.
6967 scd: Use Gcrypt usage constants for the do_with_keygrip capabilities.
6968 + commit 5b7b42e2b2b7ba7b88f89ff4b4ee7baf0eef2a04
6969 * scd/command.c (cmd_keyinfo): Use Gcrypt constants for CAP.
6970 * scd/app-openpgp.c (do_with_keygrip): Adjust for them.
6971 * scd/app-piv.c (do_with_keygrip): Ditto.
6973 2020-04-02 NIIBE Yutaka <gniibe@fsij.org>
6975 scd: New command DEVINFO.
6976 + commit 2ccbcfec121f768574a59aa2ecff22d8b422d61b
6977 * scd/app.c (notify_cond): New condition variable.
6978 (app_send_devinfo, app_wait): New.
6979 (scd_update_reader_status_file): Kick NOTIFY_COND.
6980 (initialize_module_command): Initialize NOTIFY_COND.
6981 * scd/command.c (struct server_local_s): Add watching_status.
6983 (register_commands): Add DEVINFO command.
6984 (send_client_notifications): Write status change to DEVINFO channel.
6985 * scd/scdaemon.h (app_wait, app_send_devinfo): New.
6987 2020-04-01 Werner Koch <wk@gnupg.org>
6989 scd:p15: Cache the PIN.
6990 + commit 29f8f52bf8161c238c26389ab178caa98801234e
6991 * scd/app-p15.c (struct prkdf_object_s): Add flag pin_verified.
6992 (verify_pin): Make use of it.
6994 scd:p15: Run a keygrip_from_prkdf before verify_pin.
6995 + commit 132d82c1582009013af5c7bdb17cbaaa8807c70e
6996 * scd/app-p15.c (do_sign): Move keygrip_from_prkdf before PIN
6998 (do_decipher): Add keygrip_from_prkdf.
7000 scd:p15: Support decryption with CardOS 5 cards.
7001 + commit ca4391399c690a45270cca30f03ac564c394c1f6
7002 * scd/app-p15.c (do_decipher): New.
7004 scd:p15: Factor PIN verification out to a new function.
7005 + commit 375b1454875ff079efc122e33b1216b412eecfaf
7006 * scd/app-p15.c (do_sign): Factor code out to ...
7007 (prepare_verify_pin, verify_pin): new functions.
7009 sm: Fix a warning in an es_fopencooie function.
7010 + commit c7ff8c59b9252f8f27cabee3fea503f06c7d46ff
7011 * sm/certdump.c (format_name_writer): Take care of a flush request.
7013 2020-03-31 Werner Koch <wk@gnupg.org>
7015 scd:p15: Support signing with CardOS 5 cards.
7016 + commit 103c1576b73ed75b771a8ffd1c97628651b99797
7017 * scd/app-help.c (app_help_get_keygrip_string_pk): Add optional arg
7018 r_pkey and change all callers.
7019 (app_help_get_keygrip_string): Ditto.
7020 * scd/app-p15.c (struct cdf_object_s): Use bit flags
7021 (struct aodf_object_s): Ditto. Add field 'fid'.
7022 (struct prkdf_object_s): Ditto. Add fields keygrip, keyalgo, and
7024 (parse_certid): Allow a keygrip instead of a certid aka keyref.
7025 (read_ef_aodf): Store the FID.
7026 (keygripstr_from_prkdf): Rename to ...
7027 (keygrip_from_prkdf): this. Remove arg r_gripstr and implement cache.
7028 Change callers to directly use the values from the object. Also store
7029 the algo and length of the key ion the object.
7030 (keyref_from_keyinfo): New. Factored out code.
7031 (do_sign): Support SHA-256 and >2048 bit RSA keys.
7032 (do_with_keygrip): New.
7033 (app_select_p15): Register new function.
7035 scd:p15: Read certificates in extended mode.
7036 + commit 2bdd4fc7b6cfd9ac5410d20f1cee66567a6b24c5
7037 * scd/app-p15.c (readcert_by_cdf): Allow reading in extended mode.
7039 scd: Add function for binary read in extended mode.
7040 + commit c9ad81070a2bb1116d3f096a440c43e57e6f933a
7041 * scd/iso7816.c (iso7816_read_binary): Factor code out to ...
7042 (iso7816_read_binary_ext): new function. Add arg extended_mode.
7044 2020-03-30 Werner Koch <wk@gnupg.org>
7046 scd:p15: Detect CardOS 5 cards and print some basic infos.
7047 + commit 8a68d497f1dd0b124318eb47db9da0c4b64c8b8b
7048 * scd/app-p15.c (read_ef_odf): Detect the home_DF on the fly. Silence
7049 the garbage warning for null bytes.
7050 (print_tokeninfo_tokenflags): New.
7051 (read_ef_tokeninfo): Print manufacturer, label, and flags.
7052 (app_select_p15): No need to use the app_get_slot macro.
7053 (CARD_TYPE_CARDOS_50): New const.
7054 (card_atr_list): Detect CardOS 5.0
7056 agent: Print an error if gpg-protect reads the extended key format.
7057 + commit c5c21a064671dc8e461434d19cbde67b89df25e2
7058 * agent/protect-tool.c (read_key): Detect simple extended key format.
7060 sm: Fix possible NULL deref in error messages of --gen-key.
7061 + commit 9c5c7c6f602c84589cd5c93a85a27b416e744338
7062 * sm/certreqgen.c: Protect printing the liniernur in case of !R.
7064 2020-03-27 Werner Koch <wk@gnupg.org>
7066 sm: Consider certificates w/o CRL DP as valid.
7067 + commit 0b583a555e75fbb9140310390a267febd3329a12
7068 * sm/certchain.c (is_cert_still_valid): Shortcut if tehre is no DP.
7069 * common/audit.c (proc_type_verify): Print "n/a" if a cert has no
7071 * sm/gpgsm.h (opt): Add field enable_issuer_based_crl_check.
7072 * sm/gpgsm.c (oEnableIssuerBasedCRLCheck): New.
7073 (opts): Add option --enable-issuer-based-crl-check.
7076 scd:openpgp: Allow PKSIGN with keygrip also for OPENPGP.3.
7077 + commit 4c4999b8185ace55eb5f3a6fa7d3dc0a77267b63
7078 * scd/app-openpgp.c (check_keyidstr): Add optional arg r_use_auth to
7079 test also for OpenPGP.3.
7080 (do_sign): Enable that new mode.
7082 2020-03-27 NIIBE Yutaka <gniibe@fsij.org>
7084 gpgsm: Fix the previous commit.
7085 + commit e06a8e3e87f044a5bf6ee06f92cc4fd2a0914863
7088 2020-03-26 NIIBE Yutaka <gniibe@fsij.org>
7090 gpgsm: Support key generation with ECC.
7091 + commit 49ea53b755f0fef468055a1493e790735908f865
7092 * sm/certreqgen.c (pKEYCURVE): New.
7093 (read_parameters): Add pKEYCURVE handling.
7094 (proc_parameters): Support ECC key generation.
7096 gpgsm: Remove restriction of key generation (only RSA).
7097 + commit 238707db8b05a385af5419e606ea5110ace31d2b
7098 * sm/certreqgen.c (proc_parameters): Remove checking GCRY_PK_RSA.
7100 2020-03-19 Werner Koch <wk@gnupg.org>
7102 gpgconf: Take care of --homedir when reading/updating options.
7103 + commit c1844ca7520f9a67bff85ee4fbf49c6725668289
7104 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Remove unused var.
7105 (scdaemon_runtime_change): Ditto.
7106 (dirmngr_runtime_change): Ditto.
7107 (gc_component_check_options): Pass --homedir if needed.
7108 (retrieve_options_from_program): Take care of --homedir.
7110 2020-03-18 Werner Koch <wk@gnupg.org>
7112 gpg: Also allow a v5 fingerprint for --trusted-key.
7113 + commit 4287f89557b3bc9ab2876331e1bcb143d759fb47
7114 * g10/trustdb.c (tdb_register_trusted_key): Add case for 32 octet
7117 2020-03-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
7119 gpg: Update --trusted-key to accept fingerprint as well as long key id.
7120 + commit 810ea2cc684480c6aadceb2a10dd00f3fa67f2fb
7121 * g10/trustdb.c (tdb_register_trusted_key): accept fingerprint as well
7123 * doc/gpg.texi: document that --trusted-key can accept a fingerprint.
7125 2020-03-18 Werner Koch <wk@gnupg.org>
7128 gpg: Fix key expiration and usage for keys created at the Epoch.
7129 + commit 161a098be6f9d50fb5f7e120baee81e75d6eb5ad
7130 * g10/getkey.c (merge_selfsigs_main): Take a zero key creation time in
7133 2020-03-14 Werner Koch <wk@gnupg.org>
7135 gpgconf: Further simplify the gpgconf option processing.
7136 + commit 451cd1b3928172b312ca2597c3318e6e9e8be97d
7137 * common/gc-opt-flags.h (GC_OPT_FLAG_RUNTIME): Move to ...
7138 * tools/gpgconf-comp.c: here.
7139 (known_options_scdaemon): Remove "options".
7140 (known_options_dirmngr): Remove "options".
7141 (known_options_gpgsm): Remove "options".
7142 (known_options_gpg): Remove "options" and "keyserver".
7143 (struct gc_option_s): Rename active t gpgconf_list.
7144 (gc_component_list_options): Do not act upon active.
7145 (option_check_validity): Ditto.
7146 (is_known_option): Make it work correctly for unknown options.
7147 (retrieve_options_from_program): Use renamed flag gpgconf_list only to
7148 detect duplicated items from --gpgconf-list. Do not set runtime.
7149 Only e set the options if set by --gpgconf-list; never clear them.
7150 * agent/gpg-agent.c: Simplify the --gpgconf-list output.
7151 * dirmngr/dirmngr.c: Ditto.
7153 * kbx/keyboxd.c: Ditto.
7154 * scd/scdaemon.c: Ditto.
7155 * sm/gpgsm.c: Ditto.
7156 * tests/openpgp/gpgconf.scm: Use "compliance" instead of "keyserver"
7157 for the string arg test.
7159 gpg: New option --auto-key-import.
7160 + commit 6b306f45f4fbe36b90cec4685aabb267a61e283f
7161 * g10/gpg.c (opts): New options --auto-key-import,
7162 --no-auto-key-import, and --no-include-key-block.
7163 (gpgconf_list): Add them.
7164 * g10/options.h (opt): Add field flags.auto_key_import.
7165 * g10/mainproc.c (check_sig_and_print): Use flag to enable that
7167 * tools/gpgconf-comp.c: Give the new options a Basic config level.
7169 2020-03-13 Werner Koch <wk@gnupg.org>
7171 gpg: Make use of the included key block in a signature.
7172 + commit 6a4443c8425fd548020553b22d5a16ffad98371f
7173 * g10/import.c (read_key_from_file): Rename to ...
7174 (read_key_from_file_or_buffer): this and add new parameters. Adjust
7176 (import_included_key_block): New.
7177 * g10/packet.h (PKT_signature): Add field flags.key_block.
7178 * g10/parse-packet.c (parse_signature): Set that flags.
7179 * g10/sig-check.c (check_signature2): Add parm forced_pk and change
7181 * g10/mainproc.c (do_check_sig): Ditto.
7182 (check_sig_and_print): Try the included key block if no key is
7185 gpg: New option --include-key-block.
7186 + commit 865d485180240369a20d3be14d0c6499783df2b5
7187 * common/openpgpdefs.h (SIGSUBPKT_KEY_BLOCK): New.
7188 * g10/gpg.c (oIncludeKeyBlock): New.
7189 (opts): New option --include-key-block.
7191 * g10/options.h (opt): New flag include_key_block.
7192 * g10/parse-packet.c (dump_sig_subpkt): Support SIGSUBPKT_KEY_BLOCK.
7193 (parse_one_sig_subpkt): Ditto.
7194 (can_handle_critical): Ditto.
7195 * g10/sign.c (mk_sig_subpkt_key_block): New.
7196 (write_signature_packets): Call it for data signatures.
7198 gpg: Add property "fpr" for use by --export-filter.
7199 + commit 32493ce50ad880de7b548d7870c6040a8233a8f5
7200 * g10/export.c (push_export_filters): New.
7201 (pop_export_filters): New.
7202 (export_pubkey_buffer): Add args prefix and prefixlen. Adjust
7204 * g10/import.c (impex_filter_getval): Add property "fpr".
7205 * g10/main.h (struct impex_filter_parm_s): Add field hexfpr.
7207 2020-03-12 Werner Koch <wk@gnupg.org>
7209 gpgconf: Rewrite the gpgconf-comp module.
7210 + commit b4f1159a5bd7b2799d7d35e883e0632ebf3339c8
7211 * tools/gpgconf.h (gc_component_t): Change type to ...
7212 (gc_component_id_t): this.
7213 (GC_COMPONENT_ANY): New, so that we can use that in gpgconf-comp.c
7215 * tools/gpgconf-comp.c: Major rework.
7217 2020-03-06 Werner Koch <wk@gnupg.org>
7219 gpg: Re-group the options in the --help output.
7220 + commit 41eb5108ce59244d961df43bbf73b8aa6e95e9cd
7221 * g10/gpg.c (opts): Change oLoadExtensions, oStrict, and oNoStrict to
7222 use ARGPARSE_ignore and remove the code in the option switch.
7224 agent: Re-group the options in the --help output.
7225 + commit c693b7f4ade97357c33b410728bb741674255487
7226 * agent/gpg-agent.c (oGreeting): Remove non existant dummy option.
7228 gpgconf: Support reading global options (part 2).
7229 + commit 4423e9dcde5e1a8d73ff7386942fe3c0c4b917fc
7230 * tools/gpgconf-comp.c: Remove all regular option descriptions. They
7231 are now read in from the component. Also remove a few meanwhile
7233 * agent/gpg-agent.c: Add option description which were only set in
7235 * dirmngr/dirmngr.c: Ditto.
7236 * scd/scdaemon.c: Ditto.
7237 * sm/gpgsm.c: Ditto.
7240 2020-03-05 Werner Koch <wk@gnupg.org>
7242 gpgconf: Support reading global options (part 1).
7243 + commit d2425d1495f4fe4f5c3a79d7dc5571fda00849d8
7244 * tools/gpgconf.c (main): Set the coinfig directories.
7245 * tools/gpgconf-comp.c (gc_backend): Change the name of the config
7247 (struct gc_option): Add new field 'attr'.
7248 (retrieve_options_from_program): Rewrite to use gpgrt_argparser.
7250 2020-03-04 Werner Koch <wk@gnupg.org>
7252 common: Add xreallocarray function.
7253 + commit 6fa1808cb7639f0f3745b78c4b7ce902e42b228c
7254 * common/miscellaneous.c (xreallocarray): New func.
7255 * common/util.h (xtryreallocarray): New macro.
7257 2020-03-03 Werner Koch <wk@gnupg.org>
7259 gpgconf: Always use xmalloc.
7260 + commit 178b3772ff79148b496715da1b8ca5ba86caf2bc
7261 * tools/gpgconf-comp.c: Fix spelling of "cannot". Use log_assert
7262 instead of a plain assert.
7263 (gc_percent_escape, percent_deescape): Fail on malloc error.
7265 2020-02-28 NIIBE Yutaka <gniibe@fsij.org>
7267 scd: Fix the previous commit.
7268 + commit 19f70b5072b2ef80759ced83fe0dac9cf4dde830
7269 * scd/app-openpgp.c (do_setattr): Flush the KDF DO just before setting.
7271 scd: Improve setattr for KDF.
7272 + commit 3ba7c9bcf7f19b0a308499fcf3dbbb15da38799a
7273 * scd/app-openpgp.c (do_setattr): For setting KDF DO, support standard
7274 OpenPGP card, which needs to update PIN.
7276 scd: Fix pinpad handling when KDF enabled.
7277 + commit 11da441016222337284c519ff56aca34e3042373
7278 * scd/app-openpgp.c (do_getattr): Send the KDF DO information.
7280 2020-02-25 Werner Koch <wk@gnupg.org>
7282 gpg: Re-enable versioned config files.
7283 + commit 79f2318aa5c54c57220aa73251635d21cee0ccfa
7284 * g10/gpg.c (main): Use ARGPARSE_FLAG_USERVERS.
7286 gpg: Re-add checking of config file permissions.
7287 + commit 7e8f28653c1b4305758a61c064d793e32ba633d5
7288 * g10/gpg.c (main): Re-add permission checking of the user config
7289 file. Re-add code to check against the SE-Linux secured file list.
7290 (get_default_configname): Remove unused func.
7291 * configure.ac (SAFE_VERSION, SAFE_VERSION_DOT)
7292 (SAFE_VERSION_DASH): Remove.
7294 2020-02-22 Werner Koch <wk@gnupg.org>
7296 Use gpgrt's new option parser for the new keyboxd.
7297 + commit 833c04334a53530bd40d7dd815b6a0f1ffef296d
7298 * kbx/keyboxd.c: Switch to the new option parser and enable a global
7301 agent,dirmngr: Re-read the user specified config file.
7302 + commit 941a48f9b12b4c470686321bf4fd58c23b6cf86d
7303 * agent/gpg-agent.c (reread_configuration): Use a two-part config
7305 * dirmngr/dirmngr.c (reread_configuration): Ditto.
7307 Remove the now obsolete argparse code.
7308 + commit cdbe10b762f38449b86da69076209324b0c99982
7309 * tests/gpgscm/main.c: Switch to the new option parser.
7310 * common/argparse.c, common/argparse.h: Remove.
7311 * common/init.c (_init_common_subsystems): Do not call obsolete func.
7312 * common/Makefile.am (common_sources): Remove those files.
7314 2020-02-21 Werner Koch <wk@gnupg.org>
7316 Use gpgrt's new option parser for the remaining daemons.
7317 + commit ba463128ce65a0f347643f7246a8e097c5be19f1
7318 * scd/scdaemon.c: Switch to the new option parser and enable a global
7320 * dirmngr/dirmngr.c: Ditto.
7322 * g13/g13-syshelp.c: Ditto. Do not force verbose mode.
7323 * dirmngr/dirmngr_ldap.c: Switch to the new option parser.
7324 * dirmngr/dirmngr-client.c: Switch to the new option parser.
7326 Use gpgrt's new option parser for the tools.
7327 + commit 3bc004decd289810bc1b6ad6fb8f47e45c770ce6
7328 * agent/preset-passphrase.c: Switch to the new option parser.
7329 * agent/protect-tool.c: Ditto.
7330 * kbx/kbxutil.c: Ditto.
7331 * tools/gpg-card.c: Ditto.
7332 * tools/gpg-check-pattern.c: Ditto.
7333 * tools/gpg-connect-agent.c: Ditto.
7334 * tools/gpg-pair-tool.c: Ditto.
7335 * tools/gpg-wks-client.c: Ditto.
7336 * tools/gpg-wks-server.c: Ditto.
7337 * tools/gpgconf.c: Ditto.
7338 * tools/gpgsplit.c: Ditto.
7339 * tools/gpgtar.c: Ditto.
7341 2020-02-20 Werner Koch <wk@gnupg.org>
7343 Use gpgrt's new option parser for gpgc, gpgsm, and gpg-agent.
7344 + commit 2c823bd878fcdbcc4f6c34993e1d0539d9a6b237
7345 * g10/gpgv.c: Use new option parser.
7346 * sm/gpgsm.c: Ditto.
7347 * agent/gpg-agent.c: Ditto.
7348 (opts): Add option --no-options.
7350 gpg: Use gpgrt's new option parser to provide a global conf file.
7351 + commit 0e8f6e2aa98c212442001036fb5178cd6cd8af59
7352 * common/util.h: Remove argparse.h.
7353 * common/argparse.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS.
7354 * configure.ac (GPGRT_ENABLE_ARGPARSE_MACROS): Define.
7355 * agent/gpg-agent.c: Undef GPGRT_ENABLE_ARGPARSE_MACROS and include
7356 argparse.h. Do this also for all main modules which use our option
7357 parser except for gpg. Replace calls to strusage by calls to
7358 gpgrt_strusage everywhere.
7360 * g10/gpg.c (opts): Change type to gpgrt_opt_t. Flag oOptions and
7361 oNoOptions with ARGPARSE_conffile and ARGPARSE_no_conffile.
7362 (main): Change type of pargs to gpgrt_argparse_t. Rework the option
7363 parser to make use of the new gpgrt_argparser.
7365 2020-02-19 Werner Koch <wk@gnupg.org>
7367 card: New option --info for command list and select by s/n.
7368 + commit ee911df979e9b53787162367865ca24682adae6e
7369 * tools/gpg-card.c (cmd_list): add option --info. Factor soem code
7371 (print_card_list): new.
7373 2020-02-19 NIIBE Yutaka <gniibe@fsij.org>
7375 gpg: Fix default-key selection when card is available.
7376 + commit 41913d76f7db4a7dabab26c1bc439c96ad86712f
7377 * g10/getkey.c (get_seckey_default_or_card): Handle the case
7378 when card key is not suitable for requested usage.
7380 2020-02-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
7383 + commit 0904b8ef348a52335c378bee6dc90a978885d66f
7384 No functional changes, just fixing minor spelling issues.
7388 Most of these were identified from the command line by running:
7391 --ignore-words-list fpr,stati,keyserver,keyservers,asign,cas,iff,ifset \
7392 --skip '*.po,ChangeLog*,help.*.txt,*.jpg,*.eps,*.pdf,*.png,*.gpg,*.asc' \
7393 doc g13 g10 kbx agent artwork scd tests tools am common dirmngr sm \
7394 NEWS README README.maint TODO
7396 2020-02-19 Nick Piper <nick.piper@cgi.com>
7398 doc: Correction of typo in documentation of KEY_CONSIDERED.
7399 + commit 0e1cbabc0ad4fe2ca9644fffb5cf27b1a8a1509f
7402 2020-02-17 NIIBE Yutaka <gniibe@fsij.org>
7404 scd: Disable pinpad if it's impossible by KDF DO.
7405 + commit 95c7498b76231d3297541172d878f6a26702539b
7406 * scd/app-openpgp.c (struct app_local_s): Add pinpad.disabled field.
7407 (do_getattr): Set pinpad.disabled field.
7408 (check_pinpad_request): Use the pinpad.disabled field.
7409 (do_setattr): Update pinpad.disabled field.
7411 2020-02-15 Werner Koch <wk@gnupg.org>
7413 gpgsm: Fix import of some CR,LF ternminated certificates.
7414 + commit 6248739799fd4a877529089375e2a4103d33e6f4
7415 * common/ksba-io-support.c (base64_reader_cb): Detect the END tag and
7416 don't just rely on the padding chars. This could happen only with
7417 CR+LF termnmated PEM files. Also move the detection into the invalid
7418 character detection branch for a minor parser speedup.
7420 2020-02-13 Werner Koch <wk@gnupg.org>
7422 build: New configure option --disable-keyboxd.
7423 + commit 6cac2bd0382eb7ed0d249f077522516e64fc1d8f
7424 * configure.ac: Add option --dsiable-keyboxd
7425 * kbx/Makefile.am: Do not build keyboxd in that case.
7427 scd: Print the main app name also for not fully supported cards.
7428 + commit 11d917c7796dc748e2d798d327a045ba295994f4
7429 * scd/app.c (send_serialno_and_app_status): Add fallback.
7431 card: Fix openpgp subkey listing.
7432 + commit e582d8f5b2c1bac8b6ccdfd6412b621a2584eb7f
7433 * tools/gpg-card.c (list_one_kinfo): Fix printing of the subkeys.
7435 gpg: New option --full-timestrings.
7436 + commit 86312b920a1d5817903d7175e9c2109bcf521b7c
7437 * g10/options.h (opt): Add flags.full_timestrings.
7438 * g10/gpg.c (oFullTimestrings): New.
7440 (main): Set new flag.
7441 * g10/keyid.c (dateonlystr_from_pk): New.
7442 (dateonlystr_from_sig): New.
7443 (datestr_from_pk): Divert to isotimestamp if requested.
7444 (datestr_from_sig): Ditto.
7445 (expirestr_from_pk): Ditto.
7446 (expirestr_from_sig): Ditto.
7447 (revokestr_from_pk): Ditto.
7448 * g10/import.c (impex_filter_getval): Use dateonlystr_from_sig and
7449 dateonlystr_from_pk.
7451 gpg: Changes to allow direct key generation from an OpenPGP card.
7452 + commit 14ac350f868ca71492c20c7b682d0b55b4893c9c
7453 * g10/call-agent.h (struct keypair_info_s): Add fields keytime and
7455 * g10/call-agent.c (struct keypairinfo_cb_parm_s): New.
7456 (scd_keypairinfo_status_cb): Rework to store parsed KEYPAIRINFO data.
7457 (agent_scd_keypairinfo): Change accordingly.
7458 (agent_scd_readkey): Add arg ctrl and change callers. Change return
7459 arg from an strlist_t to a keypair_info_t.
7460 (readkey_status_cb): Use KEYPAIRINFO instead of KEY-TIME.
7461 * g10/keygen.c (pSUBKEYCREATIONDATE): New.
7462 (pAUTHKEYCREATIONDATE): New.
7463 (get_parameter_u32): Allow for new parameters.
7464 (do_create_from_keygrip): For card keys use direct scd call which does
7465 not create a stub file.
7466 (ask_algo): Rework to use the new keypair_info_t as return from
7467 agent_scd_keypairinfo.
7468 (parse_key_parameter_part): Likewise. Also get and return the key
7469 creation time using a arg.
7470 (parse_key_parameter_string): New args r_keytime and r_subkeytime.
7471 (parse_algo_usage_expire): New arg r_keytime.
7472 (proc_parameter_file): Ignore the explict pCREATIONDATE for card keys.
7473 (quickgen_set_para): New arg keytime.
7474 (quick_generate_keypair): Get the keytimes and set the pCARDKEY flag.
7475 (generate_keypair): Likewise.
7476 (do_generate_keypair): Implement the cardkey with keytime thingy.
7477 (generate_subkeypair): Use the keytime parameters.
7478 * g10/keygen.c (pAUTHKEYCREATIONDATE): New. Not yet set but may come
7480 (get_parameter_u32): Take care of that.
7481 (do_generate_keypair): For cardkeys sign with the current time.
7483 card: Take the key creation time from the KEYPAIRINFO.
7484 + commit e63f8bee4044e0cc9ebc1f9c0f9f6b63660d45e8
7485 * tools/card-call-scd.c (learn_status_cb): Adjust for recent change.
7487 scd:openpgp: Return key creation time as part of KEYPARIINFO.
7488 + commit 1ad84aabb410e56bea074b82a06fe32b2897b660
7489 * scd/app-openpgp.c (send_keypair_info): Reaturn the key creation time
7490 as part of a KEYPAIRINFO.
7491 (do_readkey): Do not return the KEY-TIME anymore.
7493 agent: Allow signing with card key even without a stub key.
7494 + commit 638526d37fee0a1febac9d29fab384b913819fc9
7495 * agent/call-scd.c (agent_card_serialno): Allow NULL for R_SERIAL.
7496 (struct readkey_status_parm_s): New.
7497 (readkey_status_cb): New.
7498 (agent_card_readkey): Add optional arg R_KEYREF and change all
7500 * agent/findkey.c (key_parms_from_sexp): Allow also a "public-key".
7501 * agent/divert-scd.c (ask_for_card): Allow for SHADOW_INFO being NULL.
7502 * agent/pksign.c (agent_pksign_do): Fallback to sign with an on-card
7503 if there is no stub key yet. Create the stub key. Also fixed a
7504 misnaming between s_pkey and s_skey.
7506 2020-02-12 Werner Koch <wk@gnupg.org>
7508 gpg: Rename the struct card_key_info_s.
7509 + commit 8c63430d1a40a70ff8b4ddf1ed0fcabf9c0afbcc
7510 * g10/call-agent.h (struct card_key_info_s): Rename to ...
7511 (struct keypair_info_s): this.
7512 (keypair_info_t): New. Use this everywhere instead of
7514 * g10/call-agent.c (agent_scd_free_keyinfo): Rename to ..
7515 (free_keypair_info): this. Change all callers.
7517 card: Fix parsing of the received card_list.
7518 + commit 125c959677d55a8cf663c2dc248a3fc6f9be50bb
7519 * tools/card-call-scd.c (scd_cardlist): Allow for SERIALNO without any
7522 card: List more info for an OpenPGP key.
7523 + commit 1abfce82bd525de2976c31b83bb0e67e33364e58
7524 * tools/gpg-card.h (struct pubkey_s): Add field created.
7525 * tools/card-keys.c (parse_key_record): Set that field.
7526 * tools/gpg-card.c (print_shax_fpr): Print the fingerprint without
7527 spaces for easier c+p.
7528 (list_one_kinfo): Print the actual used fingerprint and creation date
7531 card: New option --no-key-lookup.
7532 + commit 2c6092bc5d794ae36cbf2f6b62337dc23f57bf3e
7533 * tools/gpg-card.h (opt): Add var no_key_lookup.
7534 * tools/gpg-card.c (oNoKeyLookup): New const.
7535 (opts): New option --no-key-lookup.
7536 (list_one_kinfo): Add arg no_key_lookup and implement.
7537 (list_all_kinfo): Add arg no_key_lookup.
7538 (list_openpgp, list_piv, list_card): Ditto.
7539 (cmd_list): New option --no-key-lookup.
7541 2020-02-11 Werner Koch <wk@gnupg.org>
7543 gpg: Improve key creation direct from the card.
7544 + commit 9c719c9c1ff34cc06a0fef2bfe29cfd7182753eb
7545 * g10/call-agent.c (readkey_status_cb): New.
7546 (agent_scd_readkey): Add new arg r_keytime and allow NULL for
7547 r_result. Change all callers.
7548 (agent_readkey): Minor code reformatting.
7549 * g10/keygen.c (pCARDKEY): New.
7550 (struct para_data_s): Add u.bool.
7551 (get_parameter_bool): New.
7552 (do_create_from_keygrip): Add arg cardkey and make use of it.
7553 (ask_algo): Add args r_cardkey and r_keytime. Read the keytime of the
7554 selected card key and return it.
7555 (generate_keypair): Store CARDKEY and KEYTIME.
7556 (do_generate_keypair): Pass CARDKEY to do_create_from_keygrip.
7557 (generate_subkeypair): Ditto.
7559 scd:openpgp: Send a KEY-TIME status with READKEY.
7560 + commit 77ea916533c5ca918b17ce83f6cc1b1afbd31e55
7561 * scd/app-openpgp.c (retrieve_fprtime_from_card): New.
7562 (do_readkey): Send a KEY_TIME status.
7564 card: First code to actually create openpgp keys.
7565 + commit 6bc7318ef55017e1aca6e52899fd0b223da7cfc1
7566 * tools/gpg-card.c (generate_all_openpgp_card_keys): Add demo key
7568 (generate_key): Allow generatiing one OpenPGP key.
7570 scd:openpgp: Optional allow for lowercase keyrefs.
7571 + commit 323548acd9defde0a8ea7d74c18cd4a1b339ff2e
7572 * scd/app-openpgp.c (do_readkey): Use case insensitive match of the
7574 (do_writekey, do_sign, do_auth, do_decipher): Ditto.
7576 scd:openpgp: Allow auto-changing of the key attributes in genkey.
7577 + commit d7d75da50543bc7259c5a6e6367b58cbca7f1b7b
7578 * scd/app-openpgp.c (struct app_local_s): Add field keyalgo.
7579 (parse_algorithm_attribute): Store the new keyalgo field.
7580 (change_keyattr): Change info message.
7581 (change_keyattr_from_string): Rewrite to also accept a keyref and a
7583 (do_genkey): Change the keyattr if a keyalgo string is given.
7585 common: Extend the openpgp_curve_to_oid function.
7586 + commit 24095101a5069f15a9aea7512498ac436a76814a
7587 * common/openpgp-oid.c (openpgp_curve_to_oid): Add optional arg R_NBITS.
7590 2020-02-10 Werner Koch <wk@gnupg.org>
7592 doc: Improve the warning section of the gpg man page.
7593 + commit 113a8288b85725f7726bb2952431deea745997d8
7594 * doc/gpg.texi: Update return valeu and warning sections.
7596 2020-02-10 Werner Koch <wk@gnupg.org>
7599 build: Always use EXTERN_UNLESS_MAIN_MODULE pattern.
7600 + commit 6aff8a132815a84bab69401c1e7de96ec549fbf2
7601 * common/util.h (EXTERN_UNLESS_MAIN_MODULE): Add the definion only
7602 here but now without the Norcroft-C. Change all other places where it
7604 * common/iobuf.h (iobuf_debug_mode): Declare unconditionally as
7606 * common/iobuf.c (iobuf_debug_mode): Define it here.
7607 * agent/gpg-agent.c (INCLUDED_BY_MAIN_MODULE): Define here and also in
7608 all main modules of all other programs.
7610 * g10/main.h: Put util.h before the local header files.
7612 2020-02-10 Werner Koch <wk@gnupg.org>
7614 gpg: Make really sure that --verify-files always returns an error.
7615 + commit 5681b8eaa44005afdd30211b47e5fb1a799583dd
7616 * g10/verify.c (verify_files): Track the first error code.
7618 card: Remove command "key-attr" and hack on "generate".
7619 + commit 438b7881ba0bf4e5fd8e5d5212601e5691f2aafe
7620 * tools/gpg-card.h (struct key_attr): Remove.
7621 (struct key_info_s): Remove key_attr. Add keyalgo and keyalgo_id.
7622 * tools/card-call-scd.c (learn_status_cb): Rework the key-attr info.
7623 * tools/gpg-card.c (list_one_kinfo): Always show the algorithm; if
7624 there is no key show the key attributes instead.
7625 (list_openpgp): Do not print the "Key attributes".
7626 (generate_key): Factor the repalce key pormpt out to ...
7627 (ask_replace_keys): new.
7628 (generate_openpgp): Rename to generate_all_openpgp_card_keys and add
7630 (generate_generic): Rename to generate_key. Prepare generation of a
7632 (cmd_generate): Revamp.
7633 (ask_card_rsa_keysize): Remove.
7634 (ask_card_keyattr): Remove.
7635 (do_change_keyattr): Remove.
7636 (cmd_keyattr): Remove.
7637 (enum cmdids): Remove cmdKEYATTR.
7639 (dispatch_command): Ditto.
7640 (interactive_loop): Ditto.
7642 scd:openpgp: Let the genkey function also accept a full keyref.
7643 + commit fb6ff7ead7dff33541b595f3e8d5342f9c7a6d6c
7644 * scd/app-openpgp.c (send_key_attr): Use log_assert.
7645 (do_genkey): Allow prefix.
7647 common: Extend the new get_keyalgo_string function.
7648 + commit 332a72f7340895e7db1e9c5f89046f722bb7465b
7649 * common/openpgp-oid.c (openpgp_oid_or_name_to_curve): New.
7650 (get_keyalgo_string): Use it.
7652 2020-02-09 Werner Koch <wk@gnupg.org>
7654 common: Remove duplicated call to a function.
7655 + commit d1c518cdc9330c2dd4034efc544de0dd6ec73ea1
7656 * common/openpgp-oid.c (openpgp_oid_to_str): Remove duplicated call.
7658 common: New function get_keyalgo_string.
7659 + commit 3a1fa13eedb969b561bae18cd3d7c2fb0b63d6ab
7660 * common/openpgp-oid.c (struct keyalgo_string_s): New.
7661 (keyalgo_strings): New.
7662 (keyalgo_strings_size, keyalgo_strings_used): New.
7663 (get_keyalgo_string): New.
7665 common: Add OpenPGP<->Gcrypt pubkey id mapping functions.
7666 + commit 49c891a9bfac24a1d95e76d33d44a49426247777
7667 * g10/misc.c (map_pk_gcry_to_openpgp): Move to ...
7668 * common/openpgp-oid.c (map_gcry_pk_to_openpgp): here and rename.
7669 Change all 4 callers.
7670 (map_openpgp_pk_to_gcry): New.
7672 card: Support brainpool curves in the generate command.
7673 + commit 9df9996b415ee671a0f22b6936745f829884eda2
7674 * tools/gpg-card.c (cmd_generate): Add brainpool curves and dummy name
7677 2020-02-03 Werner Koch <wk@gnupg.org>
7679 sm: New option --issuer-der for the listkey commands.
7680 + commit 2e5ab34496fe7e1b9bd2194ab59a58cf44ca9d1e
7681 * sm/server.c (do_listkeys): Implement new option.
7683 2020-01-21 Werner Koch <wk@gnupg.org>
7685 dirmngr: Fix building w/o LDAP support.
7686 + commit d8973975e7636ec0f007575a0bede92147d835f8
7687 * dirmngr/Makefile.am: Conditionally build dirmngr_ldap.
7689 gpg: Fix printing of keyring name (regression in master)
7690 + commit bf931299e846fa47bcabe3716ec82af7c3290ce5
7691 * g10/keydb.c (keydb_get_resource_name):
7693 2020-01-20 Werner Koch <wk@gnupg.org>
7695 tools: Let watchgnupg determine the socket name via gpgconf.
7696 + commit e0d9181ad11aaf7e68231db4b3708978a9a52fd6
7697 * tools/watchgnupg.c: Include sys/wait.h.
7698 (GNUPG_DEF_COPYRIGHT_LINE): Add a default value for standalone
7701 (main): Use a default socket name and add option --homedir.
7703 2020-01-17 Werner Koch <wk@gnupg.org>
7705 gpgconf,w32: Print a warning for a suspicious homedir.
7706 + commit 7f12fb55f9757cd68147eca8f162c85378538405
7707 * tools/gpgconf.c (list_dirs): Check whether the homedir has been
7708 taken from the registry.
7710 2020-01-17 NIIBE Yutaka <gniibe@fsij.org>
7712 gpg: Prefer card key on use in multiple subkeys situation.
7713 + commit 8748c50bfaa8df2b1e59c301d15fd6b9ddbd9c47
7714 * g10/call-agent.c (keyinfo_status_cb): Parse more fields.
7715 (agent_probe_secret_key): Use KEYINFO and returns bigger value
7716 representing the preference.
7717 * g10/getkey.c (finish_lookup): For subkeys, select one
7718 by using value of agent_probe_secret_key.
7720 gpg: Prepare enhancement of agent_probe_secret_key.
7721 + commit 853d5b7677ea01f65c9bc5160cd8509b62f486f7
7722 * g10/call-agent.c (agent_probe_secret_key): Change semantics of
7724 * g10/call-agent.h (agent_probe_secret_key): Change comment.
7725 * g10/delkey.c (do_delete_key): Follow the change.
7726 * g10/getkey.c (get_seckey, parse_def_secret_key): Likewise.
7727 (finish_lookup, have_secret_key_with_kid): Likewise.
7728 * g10/gpgv.c (agent_probe_secret_key): Likewise.
7729 * g10/keyedit.c (keyedit_menu, quick_find_keyblock): Likewise.
7730 (show_key_with_all_names_colon): Likewise.
7731 * g10/revoke.c (gen_desig_revoke, gen_revoke): Likewise
7732 * g10/test-stubs.c (agent_probe_secret_key): Likewise.
7734 2020-01-16 Werner Koch <wk@gnupg.org>
7736 card: Allow switching of cards and applications.
7737 + commit bd85f9232ad639d4acba443272147c4fc01b1b65
7738 * tools/card-call-scd.c (struct card_cardlist_parm_s): Add field
7740 (card_cardlist_cb): Handle the new with_apps flag.
7741 (scd_switchcard): New.
7742 (scd_switchapp): New.
7744 (scd_serialno): Pass --all also in --demand mode.
7746 * tools/gpg-card.c (cmd_list): Simplify switching of cards. Add
7747 switching of alls. Print a list of apps per card.
7749 scd: New commands SWITCHCARD and SWITCHAPP.
7750 + commit 718555874efcbad502112449c7d15025cb193628
7751 * scd/app.c: Include membuf.h.
7752 (app_switch_current_card): New.
7753 (send_card_and_app_list): Factor code out to ...
7754 (send_serialno_and_app_status): new.
7755 (app_send_card_list): New.
7756 (app_send_active_apps): New.
7757 (app_switch_active_app): New.
7758 * scd/command.c (cmd_switchcard): New.
7759 (cmd_switchapp): New.
7760 (register_commands): Register new commands.
7761 (cmd_getinfo): New sub-commands "active_apps" and "all_active_apps".
7763 scd:piv: Remove debug code from a recent commit.
7764 + commit dd61164410ee185750d1aa55ee0e33dcab8f4542
7765 * scd/app-piv.c (ask_and_prepare_chv): here.
7767 gpg: Print better debug info in case of broken sig subpackets.
7768 + commit 3ccad75d76b9c17b9495c48df8dd4be46d3b3105
7769 * g10/parse-packet.c (enum_sig_subpkt): Print a hexdump.
7771 2020-01-16 NIIBE Yutaka <gniibe@fsij.org>
7773 gpg: Use "SCD KEYINFO" to get available card keys.
7774 + commit 8edd4b8b8cdcbdcf1986214d6d17cadb604ddf54
7775 * g10/skclist.c (enum_secret_keys): Don't use agent_scd_cardlist and
7776 agent_scd_serialno, but agent_scd_keyinfo.
7778 gpg: Add agent_scd_keyinfo to retrieve available card keys.
7779 + commit 8240a70c31a8e1617de64c42168cf3299b85b39e
7780 * g10/call-agent.c (card_keyinfo_cb, agent_scd_free_keyinfo)
7781 (agent_scd_keyinfo): New.
7782 * g10/call-agent.h: Define new functions.
7784 gpg: default-key: Simply don't limit by capability.
7785 + commit 1aa2a0a46dc19e108b79dc129a3b0c5576d14671
7786 * g10/getkey.c (parse_def_secret_key): Remove the check.
7788 2020-01-15 NIIBE Yutaka <gniibe@fsij.org>
7790 gpg: Cert only key should be usable with --default-key.
7791 + commit 9287f9e87b215e79fdb7fb9dfdf2b47666e6ea2f
7792 * g10/getkey.c (parse_def_secret_key): Allow cert-only key.
7794 2020-01-13 Werner Koch <wk@gnupg.org>
7796 scd: Make the PIN cache robust against wrongdoing of gpg-agent.
7797 + commit 2dd6b4b998dd6e156e2e75ede0f40fb768c69f40
7798 * scd/app-openpgp.c (struct app_local_s): New field pincache.
7799 (cache_pin): Set it.
7800 (pin_from_cache): Consult it.
7801 * scd/app-piv.c (struct app_local_s): New field pincache.
7802 (cache_pin): Set it.
7803 (pin_from_cache): Consult it.
7805 scd:piv: Implement PIN cache.
7806 + commit 60502c3606ee425d07c84b175ab310368c12b0ad
7807 * scd/command.c (pincache_put): Add arg pinlen and change all callers
7809 * scd/app-piv.c (cache_pin): New.
7810 (pin_from_cache): New.
7811 (ask_and_prepare_chv): Add args no_cache and r_unpaddedpinlen. Take
7812 PIN from the cache. Return the unpadded length.
7813 (verify_chv): Add arg ctrl. Cache the PIN.
7814 (do_change_chv): Clear PIN cache.
7816 agent: Avoid multiple calls to scd for KEYINFO.
7817 + commit 2e86cca7f4181310bebfd795c059369ba03a8d8b
7818 * agent/command.c (struct server_local_s): Add last_card_keyinfo.
7819 (eventcounter): Add maybe_key_change.
7820 (cmd_genkey, cmd_scd, cmd_import_key, cmd_delete_key): Bump new
7822 (cmd_keyinfo): Cache the keyinfo from the card.
7823 (start_command_handler): Release the cache.
7825 agent: Replace free by xfree in recently added code.
7826 + commit aaef0fc3a743d06012c4a7fd8caa80d969863cc9
7827 * agent/call-scd.c (agent_card_free_keyinfo): Use xfree.
7829 gpg,sm: Avoid useless ASFW diagnostic in loopback mode.
7830 + commit 14aa797bb8f3f7d3f4ef66b8fcdac7439000b49a
7831 * common/sysutils.c (inhibit_set_foregound_window): New var.
7832 (gnupg_inhibit_set_foregound_window): New func.
7833 (gnupg_allow_set_foregound_window): Use var.
7834 * g10/gpg.c (main): Inhibit in loopback mode.
7835 * sm/gpgsm.c (main): Ditto.
7837 scd: Fix memory leak in command READKEY.
7838 + commit 2b843be5ac9f37c9faf2d9ab720eafceb3d534ad
7839 * scd/command.c (cmd_readcert): Replace xstrdup by xtrystrdup.
7840 (cmd_readkey): Ditto. Fix memory leak.
7842 scd: Make SERIALNO --all work correctly and use it.
7843 + commit 0e48aa084921c77944d4802c86ac33c607c519af
7844 * scd/app.c (maybe_switch_app): Factor reselect code out to ...
7845 (run_reselect): new.
7846 (app_write_learn_status): Tweak diagnostics.
7847 (app_do_with_keygrip): Run reselect if a card has more than one
7848 switchable application.
7850 * agent/call-scd.c (agent_card_serialno): Ditto.
7851 * tools/card-call-scd.c (start_agent): Use option --all with SERIALNO.
7852 (scd_serialno): Ditto.
7854 2020-01-13 NIIBE Yutaka <gniibe@fsij.org>
7856 agent: handle SSH operation by KEYGRIP.
7857 + commit 15028627a1655b7ad1835fbd0a32cf30debe807a
7858 * agent/command-ssh.c (card_key_available): Supply KEYINFO argument.
7859 Call agent_card_readkey by KEYGRIP of KEYINFO.
7860 Don't use $AUTHKEYID, but IDSTR of KEYINFO.
7861 (ssh_handler_request_identities): Follow the change of
7864 agent: Extend agent_card_getattr with KEYGRIP.
7865 + commit c31266716dd69fee7bd64cf1e33d7631cd328e72
7866 * agent/agent.h (struct card_key_info_s): KEYGRIP null terminated.
7867 (agent_card_getattr): Add KEYGRIP argument.
7868 * agent/call-scd.c (agent_card_getattr): Handle KEYGRIP argument.
7869 (card_keyinfo_cb): Make KEYGRIP null terminated.
7870 * agent/command.c (cmd_readkey): Follow the change.
7872 2020-01-10 NIIBE Yutaka <gniibe@fsij.org>
7874 scd: Implement direct access by KEYGRIP for GETATTR and READKEY.
7875 + commit 0cfded4bb1484366c785c268f2fb1061c7be5fdb
7876 * scd/app-openpgp.c (do_readkey): Handle KEYGRIP access.
7877 * scd/command.c (do_readkey): New.
7878 (cmd_readkey): Use do_readkey supporting KEYGRIP access.
7879 (cmd_getattr): Supporting KEYGRIP access.
7881 2020-01-09 Werner Koch <wk@gnupg.org>
7883 scd:openpgp: Implement PIN cache.
7884 + commit 63bda3aad8ec4163b0241f64e8b587d665d650c3
7885 * scd/app-openpgp.c (wipe_and_free, wipe_and_free_string): Use them
7886 everywere where we do a wipememory followed by a free.
7887 (pin2hash_if_kdf): Change interface. The input PIN is not anymore
7888 changed. Further there are no more assumptions about the length of
7889 the provided buffer.
7890 (cache_pin): Restructure.
7891 (chvno_to_keyref): New.
7892 (pin_from_cache): New.
7893 (verify_a_chv): Add arg CTRL. Adjust for changed pin2hash_if_kdf.
7894 Chache and retrieve the PIN here.
7895 (verify_chv2): Do not cache the PIN here.
7896 (build_enter_admin_pin_prompt): Add arg 'r_remaining'.
7897 (verify_chv3): Adjust for changed pin2hash_if_kdf. Implement the PIN
7899 (do_change_pin): Clear the PIN cache. Do not change the PIN here.
7900 Lots of adjustments to cope with the chnaged pin2hash_if_kdf.
7901 (do_sign): Do not cache the PIN here.
7903 scd: Use a scdaemon internal key to protect the PIN cache IPC.
7904 + commit ce5a7fb72b599de592a087867768ac1f81fd2989
7905 * agent/call-scd.c (handle_pincache_put): Do not decrypt.
7906 (handle_pincache_get): New.
7907 (inq_needpin): Call it.
7908 * scd/command.c (set_key_for_pincache): New.
7909 (pincache_put): Restructure and set key.
7910 (pincache_get): Ditto.
7912 2020-01-09 NIIBE Yutaka <gniibe@fsij.org>
7914 agent: SSH: SCD KEYINFO to list available keys.
7915 + commit 57b8ed61ab93dd5aa73159f6db8adeb83d54b85f
7916 * agent/agent.h (agent_card_cardlist): Remove.
7917 (agent_card_keyinfo): Add CAP argument.
7918 * agent/call-scd.c (card_cardlist_cb): Remove.
7919 (agent_card_cardlist): Remove.
7920 (agent_card_keyinfo): Support CAP constraint.
7921 * agent/command-ssh.c (card_key_list): Remove.
7922 (ssh_handler_request_identities): Use SCD KEYINFO command.
7923 * agent/command.c (cmd_keyinfo): Follow the API change.
7924 * agent/divert-scd.c (ask_for_card): Likewise.
7926 2020-01-07 Werner Koch <wk@gnupg.org>
7928 scd: First changes to implement a PIN cache.
7929 + commit fbf97a7856bd2f80a1714f63417c59d6c604d333
7930 * scd/command.c (pincache_put): New. Uses a dummy key for now.
7931 (pincache_get): New.
7932 * scd/app.c (select_application): Flush the PIN cache.
7933 (scd_update_reader_status_file): Ditto.
7934 (maybe_switch_app): Call the new prep_reselect function.
7935 (app_write_learn_status): Ditto.
7936 * scd/app-openpgp.c (cache_pin): New helper to cache a PIN.
7937 (verify_chv2): Call it.
7938 (verify_chv3): Call it.
7939 (clear_chv_status): Call it.
7940 (do_change_pin): Call it.
7942 * scd/app-common.h (struct app_ctx_s): Add function 'prep_select'.
7943 * scd/app-openpgp.c (do_prep_reselect): New stub function.
7944 (app_select_openpgp): Set new stub function.
7945 * scd/app-piv.c (do_prep_reselect): New stub function.
7946 (app_select_piv): Set new stub function.
7948 * scd/app-common.h (struct app_ctx_s): Add parameter ctrl to setattr,
7949 sign, auth, decipher, and check_pin. Change all implementations and
7950 callers to pass such a parameter.
7952 agent: First changes to support a PIN cache for scdaemon.
7953 + commit d5c00354bb02ae6cb2e3a72136a1a95cb2db7f3f
7954 * agent/agent.h (CACHE_MODE_PIN): New.
7955 * agent/cache.c (housekeeping): Special handling of new new mode.
7956 (agent_flush_cache): Ditto. Add arg 'pincache_only' and change
7958 (agent_put_cache): Support new mode.
7959 (agent_get_cache): Ditto.
7960 * agent/call-scd.c (wait_child_thread): Flush the entire PIN cache.
7962 (agent_card_killscd): Ditto.
7963 (handle_pincache_put): New. Uses a dummy encryption key for now.
7964 (pincache_put_cb): New.
7965 (inq_needpin): Prepare for PINCACHE_GET inquiry.
7966 (learn_status_cb): Handle the PINENTRY_PUT status line.
7967 (get_serialno_cb): Ditto
7968 (agent_card_pksign): Ditto.
7969 (padding_info_cb): Ditto.
7970 (agent_card_readcert): Ditto.
7971 (agent_card_readkey): Ditto.
7972 (agent_card_writekey): Ditto.
7973 (card_getattr_cb): Ditto.
7974 (card_cardlist_cb): Ditto.
7975 (card_keyinfo_cb): Ditto.
7976 (pass_status_thru): Ditto.
7978 kbx: Make sure the tables are joined in a select.
7979 + commit 41a882443622fe08ebaa75bf358e83630bbb8631
7980 * kbx/backend-sqlite.c (run_select_statement): Join the tables.
7982 2020-01-03 Werner Koch <wk@gnupg.org>
7984 scd: Minor fix for readibility.
7985 + commit c0625c15c1fb6d06202669eb8caff2710377952d
7986 * scd/command.c (open_card_with_request): Use NULL instead of
7989 2020-01-02 Werner Koch <wk@gnupg.org>
7991 kbx: Initial support for an SQLite backend.
7992 + commit f4da1455c7ab858ea9007d0813774c6d04cd4576
7993 * kbx/backend-sqlite.c: New.
7994 * kbx/Makefile.am (keyboxd_SOURCES): Add it.
7995 (keyboxd_CFLAGS, keyboxd_LDADD): Add SQLite flags.
7996 * kbx/backend.h (enum database_types): Add DB_TYPE_SQLITE.
7997 (be_sqlite_local_t): New typedef.
7998 (struct db_request_part_s): Add field besqlite.
7999 * kbx/backend-support.c (strdbtype): Add string for DB_TYPE_SQLITE.
8000 (be_generic_release_backend): Support SQLite.
8001 (be_release_request): Ditto.
8002 (be_find_request_part): Ditto.
8003 (is_x509_blob): Rename to ...
8004 (be_is_x509_blob): this and make global.
8005 * kbx/frontend.c (kbxd_set_database): Detect ".db" suffix and use that
8007 (kbxd_search): Support SQLite
8008 (kbxd_store): Ditto.
8009 (kbxd_delete): Ditto.
8010 * kbx/frontend.h (kbxd_store_modes): Move to ...
8011 * kbx/keyboxd.h (enum kbxd_store_modes): here.
8012 * kbx/keyboxd.c (main): USe pubring.db for now. This is a temporary
8015 * kbx/backend-kbx.c (be_kbx_delete): Remove unused var cert.
8017 2019-12-23 Werner Koch <wk@gnupg.org>
8019 gpg: Fix output of --with-secret if a pattern is given.
8020 + commit 59d49e4a0ac2ed27803507cb7d2c6af166527bd5
8021 * g10/keylist.c (list_one): Probe for a secret key in --with-secret
8024 kbx: Change keyboxd to work only with one database.
8025 + commit 8a556c23a29776b2b5aa1d563e779b6ae0139dff
8026 * kbx/frontend.c (the_database): New var.
8027 (db_desc_t): Remove.
8028 (kbxd_add_resource): Renamed to ...
8029 (kbxd_set_database): this. Simplify.
8030 (kbxd_search): Change to use only one database.
8031 (kbxd_store): Ditto.
8032 (kbxd_delete): Ditto.
8034 2019-12-19 NIIBE Yutaka <gniibe@fsij.org>
8036 scd: Enhance KEYINFO command to limit listing with capability.
8037 + commit b2a2df174b216881387ae849770d875cd74984c2
8038 * scd/app-common.h: Add CAPABILITY argument to the WITH_KEYGRIP.
8039 (app_do_with_keygrip): Likewise.
8040 * scd/app-openpgp.c (send_keyinfo_if_available): New.
8041 (do_with_keygrip): Support listing with CAPABILITY.
8042 * scd/app-piv.c (do_with_keygrip): Likewise.
8043 * scd/app.c (maybe_switch_app): Supply the argument.
8044 (app_do_with_keygrip): Add CAPABILITY argument.
8045 * scd/command.c (cmd_pksign, cmd_pkauth): Supply the argument.
8046 (cmd_pkdecrypt): Likewise.
8047 (cmd_keyinfo): Support listing with CAPABILITY.
8049 2019-12-06 Werner Koch <wk@gnupg.org>
8051 sm: Add special case for expired intermediate certificates.
8052 + commit d246f317c04862cacfefc899c98da182ee2805a5
8053 * sm/gpgsm.h (struct server_control_s): Add field 'current_time'.
8054 * sm/certchain.c (find_up_search_by_keyid): Detect a corner case.
8055 Also simplify by using ref-ed cert objects in place of an anyfound
8058 dirmngr: Tell gpg about WKD looks resulting from a cache.
8059 + commit 8a6ecc6ff52b9ec045e200cc200977707278f89c
8060 * dirmngr/server.c (proc_wkd_get): Print new NOTE status
8061 "wkd_cached_result".
8062 * g10/call-dirmngr.c (ks_status_cb): Detect this and print a not ein
8065 2019-12-04 Werner Koch <wk@gnupg.org>
8067 gpg: Use AKL for angle bracketed mail address with -r.
8068 + commit 1abb39fdaf44c2477719fbea43ef8042d8b9033e
8069 * g10/getkey.c (get_pubkey_byname): Extend is_mbox checking.
8070 (get_best_pubkey_byname): Ditto.
8072 2019-11-28 Werner Koch <wk@gnupg.org>
8074 gpg: Change the way v5 fingerprints are printed.
8075 + commit d2ff62dbdf891319e6db5850c6077c85e5eb784e
8076 * g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): Increase by one.
8077 * g10/keyid.c (format_hexfingerprint): Change v5 key formatting.
8079 gpg: Implement insert, update, and delete via keyboxd.
8080 + commit 7244666926929f3b2475d8cab50db3ff620cdbe3
8081 * g10/call-keyboxd.c (struct store_parm_s): New.
8082 (store_inq_cb): New.
8083 (keydb_update_keyblock): Implement the keyboxd part.
8084 (keydb_insert_keyblock): Ditto.
8085 (keydb_delete_keyblock): Ditto.
8086 (keydb_search_reset): Clear ubid flag. Also use the correct union
8087 member for building the search string.
8089 kbx: Add new command DELETE.
8090 + commit 490e0cd0bab8d8d06ffdc5b8977964d5a76a8df0
8091 * kbx/kbxserver.c (cmd_delete): New.
8092 * kbx/frontend.c (kbxd_delete): New.
8093 * kbx/backend-kbx.c (be_kbx_delete): New.
8095 kbx: Redefine the UBID which is now the primary fingerprint.
8096 + commit 915297705af6f1db74dacf0d6665b83eb0a58459
8097 * common/util.h (UBID_LEN): New. Use it at all places.
8098 * kbx/keybox-blob.c (create_blob_finish): Do not write the UBID item.
8099 * kbx/keybox-dump.c (print_ubib): Remove.
8100 (_keybox_dump_blob): Do not print the now removed ubid flag.
8101 * kbx/keybox-search-desc.h (struct keydb_search_desc): Use constants
8102 for the size of the ubid and grip.
8103 * kbx/keybox-search.c (blob_cmp_ubid): New.
8104 (has_ubid): Make it a simple wrapper around blob_cmp_ubid.
8105 (keybox_get_data): Add arg 'r_ubid'.
8107 * kbx/frontend.h (enum kbxd_store_modes): New.
8108 * kbx/kbxserver.c (cmd_store): Add new option --insert.
8110 * kbx/backend-cache.c (be_cache_initialize): New.
8111 (be_cache_add_resource): Call it here.
8112 * kbx/backend-kbx.c (be_kbx_seek): Remove args 'fpr' and 'fprlen'.
8113 (be_kbx_search): Get the UBID from keybox_get_data.
8114 * kbx/backend-support.c (be_fingerprint_from_blob): Replace by ...
8115 (be_ubid_from_blob): new. Change all callers.
8117 * kbx/frontend.c (kbxd_add_resource): Temporary disable the cache but
8118 use the new cache init function.
8119 (kbxd_store): Replace arg 'only_update' by 'mode'. Seek using the
8120 ubid. Take care of the mode.
8122 2019-11-27 Werner Koch <wk@gnupg.org>
8124 dirmngr: Replace no-strict-overflow pragma by wrapv pragma.
8125 + commit f59455d054a79068ebf480cd28f02993c1facf3b
8126 * dirmngr/dirmngr.c (time_for_housekeeping_p): Build with --fwrapv.
8127 Replace protecting macro.
8129 gpg: Move a keydb function to another file.
8130 + commit 61f41cdce5b60b9df05d6531ab1b7aab84ada659
8131 * g10/keydb.c (build_keyblock_image): Move to ...
8132 * g10/build-packet.c (build_keyblock_image): here.
8134 2019-11-26 Werner Koch <wk@gnupg.org>
8136 dirmngr: Rework of the LDAP code, part 1.
8137 + commit 264c15c72fe050f5e8d2f1cb2444a459df6fe99f
8138 * dirmngr/http.h (struct parsed_uri_s): Add flag is_ldap.
8139 * dirmngr/http.c (do_parse_uri): Set flag. Do not error out for a
8140 missing slashes in an http scheme if NO_SCHEME_CHECK is active.
8141 * dirmngr/t-http.c (main): Print new flag.
8142 * dirmngr/ks-engine-ldap.c (ks_ldap_help): Use flag instead of
8143 checking the scheme.
8144 * dirmngr/ldap-parse-uri.c (ldap_uri_p): Re-implement using
8146 * dirmngr/t-ldap-parse-uri.c (main): Add option --verbose.
8148 dirmngr: Make building with a TLS library mandatory.
8149 + commit 1009e4e5f71347a1fe194e59a9d88c8034a67016
8150 * configure.ac: Do not build dirmngr if no TLS is available.
8151 * dirmngr/http.c: Remove all uses of the USE_TLS macro.
8153 doc: Fixed variable naming.
8154 + commit 8fb14d3b3f9c5c27ff8b9f0e7e7207ec388687ff
8155 * kbx/keybox.h: Fix naming of arguments.
8156 * scd/ccid-driver.c (print_error) [TEST]: Add missing break. Note
8157 that this is anyway an impossible case.
8159 2019-11-25 Werner Koch <wk@gnupg.org>
8161 agent: Improve --debug-pinentry diagnostics.
8162 + commit c8783b3a204b371d44b8953429652101cf2e4d1b
8163 * agent/call-pinentry.c (atfork_cb): Factor code out to ...
8166 2019-11-23 Werner Koch <wk@gnupg.org>
8168 wkd: Let --install-key write a template policy file.
8169 + commit 50cd1a58f3a612704a0056386e1d5cd7cb28d57d
8170 * tools/wks-util.c (ensure_policy_file): New.
8171 (wks_cmd_install_key): Call it.
8173 2019-11-19 NIIBE Yutaka <gniibe@fsij.org>
8175 po: Apply removal of dirmngr/ldap-wrapper-ce.c.
8176 + commit 116dfb20013b73b950bbcee1d1f6c2a5d1d7ffdd
8177 * po/POTFILES.in: Update.
8179 2019-11-18 Werner Koch <wk@gnupg.org>
8181 dirmngr,gpg: Better diagnostic in case of bad TLS certificates.
8182 + commit d9c7935188483dae381c12e7eef19072bbade4b3
8183 * doc/DETAILS: Specify new status code "NOTE".
8184 * dirmngr/ks-engine-http.c (ks_http_fetch): Print a NOTE status for a
8185 bad TLS certificate.
8186 * g10/call-dirmngr.c (ks_status_cb): Detect this status.
8188 dirmngr: Forward http redirect warnings to gpg.
8189 + commit ae9acb8745c1654b446b3cd5b9322b235723d9cb
8190 * dirmngr/http.c: Include dirmngr-status.h
8191 (http_prepare_redirect): Emit WARNING status lines for redirection
8193 * dirmngr/http.h: Include fwddecl.h.
8194 (struct http_redir_info_s): Add field ctrl.
8195 * dirmngr/ks-engine-hkp.c (send_request): Set it.
8196 * dirmngr/ks-engine-http.c (ks_http_fetch): Set it.
8197 * g10/call-dirmngr.c (ks_status_cb): Detect the two new warnings.
8199 2019-11-15 NIIBE Yutaka <gniibe@fsij.org>
8201 scd,ccid: Fix detection of supported readers with pinpad.
8202 + commit 1cb9a831f6eedfa4c8950b8a7706ea77b74693f7
8203 * scd/ccid-driver.c (ccid_transceive_secure): When not supported,
8204 return CCID_DRIVER_ERR_NOT_SUPPORTED.
8206 2019-11-12 Werner Koch <wk@gnupg.org>
8208 dirmngr: Use IPv4 or IPv6 interface only if available.
8209 + commit 12def3a84e0358528347107dc88cfe740a54941f
8210 * dirmngr/dns-stuff.c (cached_inet_support): New variable.
8211 (dns_stuff_housekeeping): New.
8212 (check_inet_support): New.
8213 * dirmngr/http.c (connect_server): Use only detected interfaces.
8214 * dirmngr/dirmngr.c (housekeeping_thread): Flush the new cache.
8216 2019-11-12 Andre Heinecke <aheinecke@gnupg.org>
8218 dirmngr: Tune down err on missing ldapservers file.
8219 + commit 40daa0bc0bc87a521713d7dd1568f3874759a143
8220 * dirmngr/dirmngr.c (parse_ldapservers_file): Tune down error
8221 in case no such file exists.
8223 2019-11-11 Werner Koch <wk@gnupg.org>
8225 dirmngr: Remove cruft from dirmngr_ldap.
8226 + commit 4c295646ba0e175743e6be13457308c1e6d21dd3
8227 * configure.ac (USE_LDAPWRAPPER): Remove ac_define and conditional.
8228 * dirmngr/Makefile.am: Remove USE_LDAPWRAPPER and considere true.
8229 * dirmngr/ldap-wrapper-ce.c: Remove.
8230 * dirmngr/ldap-wrapper.c: Remove USE_LDAPWRAPPER stuff. Minor chnages
8232 * dirmngr/dirmngr_ldap.c: Remove USE_LDAPWRAPPER stuff. Remove
8234 (fetch_ldap) [W32]: Use ldap_sslinit.
8236 gpg: Forbid the creation of SHA-1 third-party key signatures.
8237 + commit dd18be979e138dd3712315ee390463e8ee1fe8c1
8238 * g10/sign.c (SIGNHINT_KEYSIG, SIGNHINT_SELFSIG): New.
8239 (do_sign): Add arg signhints and inhibit SHA-1 signatures. Change
8241 (complete_sig): Add arg signhints and pass on.
8242 (make_keysig_packet, update_keysig_packet): Set signhints.
8244 dirmngr: Rename an enum value for clarity.
8245 + commit eebd43d5b688e99131fcbf8f8292a485b91402a2
8246 * dirmngr/ldapserver.h: Rename LDAPSERVER_OPT.
8248 2019-11-09 Werner Koch <wk@gnupg.org>
8250 gpgsm: Allow sepcification of ldaps servers.
8251 + commit 6e1c99bc397382f1ea2ba9d61a64328410adc95f
8252 * sm/gpgsm.h (struct keyserver_spec): Add field use_ldaps.
8253 * sm/gpgsm.c (parse_keyserver_line): Parse flags.
8254 * sm/call-dirmngr.c (prepare_dirmngr): Send ldaps flag to the dirmngr.
8256 * dirmngr/dirmngr.h (struct ldap_server_s): Add field use_ldaps.
8257 * dirmngr/ldapserver.c (ldapserver_parse_one): Parse flags.
8258 * dirmngr/ldap.c (start_cert_fetch_ldap): Call wrapper with --tls.
8260 * dirmngr/dirmngr_ldap.c: New option --tls.
8261 (fetch_ldap): Make use of that option.
8263 2019-11-07 Werner Koch <wk@gnupg.org>
8265 gpg: Fix a potential loss of key sigs during import with self-sigs-only.
8266 + commit 6701a38f8e4a35ba715ad37743b8505bfd089541
8267 * g10/import.c (import_one_real): Don't do the final clean in the
8270 gpg: Add option --allow-weak-key-signatures.
8271 + commit e624c41dbafd33af82c1153188d14de72fcc7cd8
8272 * g10/gpg.c (oAllowWeakKeySignatures): New.
8273 (opts): Add --allow-weak-key-signatures.
8275 * g10/options.h (struct opt): Add flags.allow_weak_key_signatures.
8276 * g10/misc.c (print_sha1_keysig_rejected_note): New.
8277 * g10/sig-check.c (check_signature_over_key_or_uid): Print note and
8280 gpg: Print rfc4880bis note only in verbose mode.
8281 + commit f4047f56058cf9be2aa362fc439846ce930da8c7
8282 * g10/gpg.c (main): Change condition for an info diagnostic.
8284 2019-11-06 Werner Koch <wk@gnupg.org>
8286 gpg: Remove an unused variable.
8287 + commit fd88b8847a371a2927f52afceeeb457b64cce162
8288 * g10/delkey.c (do_delete_key): here.
8290 gpg: Do not require --batch when using --log-file.
8291 + commit 584b65ad7e937710a4fc6db42d6849bb3449d6ef
8292 * g10/gpg.c (main): Remove a long standing FIXME.
8294 2019-10-28 NIIBE Yutaka <gniibe@fsij.org>
8296 scd,ccid: Fix GEMPC_EZIO handling.
8297 + commit c6702d77d936b3e9d91b34d8fdee9599ab94ee1b
8298 * scd/ccid-driver.c (ccid_transceive_secure): Fix for 08e6:34c2.
8300 2019-10-17 NIIBE Yutaka <gniibe@fsij.org>
8302 gpg: More fix of get_best_pubkey_byname.
8303 + commit e2c2b0fb2d9b31fa1b61803d04919645a9149996
8304 * g10/getkey.c (get_best_pubkey_byname): Remove useless req_usage
8307 gpg: Fix two other cases in get_best_pubkey_byname.
8308 + commit 286d4c607574e91f590512a1385bb3320cf8da77
8309 * g10/getkey.c (pubkey_cmp): Handle a primary key with
8310 PUBKEY_USAGE_ENC, and make sure new key is for encryption.
8311 (get_best_pubkey_byname): Add comment for ranking.
8313 doc: Fix documentation about --locate-keys.
8314 + commit 627a990f8e306d4f34bc503b303dc8b13616029e
8315 * doc/gpg.texi (--locate-keys): Remove mentioning signing keys.
8317 2019-10-16 NIIBE Yutaka <gniibe@fsij.org>
8319 gpg: Fix get_best_pubkey_byname to consider the first match.
8320 + commit f2734381ae1431e395a0bed16df2f4d5d13aa2c5
8321 * g10/getkey.c (get_best_pubkey_byname): Always use PK0 to search
8322 by get_pubkey_byname. Add initial call to pubkey_cmp to fill
8323 BEST at first before the loop.
8325 2019-10-15 Werner Koch <wk@gnupg.org>
8327 gpg: Also delete key-binding signature when deleting a subkey.
8328 + commit d1bc12d1b66e0657969a8eb846bdcd9bee717a7c
8329 * g10/delkey.c (do_delete_key): Simplify and correct subkey deletion.
8331 2019-10-15 NIIBE Yutaka <gniibe@fsij.org>
8333 gpg: Put the first key in candidates correctly.
8334 + commit 44604209c1cfe18532d13eda63d8c1f86a6e12ec
8335 * g10/getkey.c (get_best_pubkey_byname): After the call of
8336 get_pubkey_byname, set up CTX with KEYDB_SEARCH_MODE_LONG_KID to enter
8339 scd,ccid: Add 08e6:34c2 (GEMPC_EZIO).
8340 + commit c933c15d587a1c0df3f4b3bf37d8d15164dd318f
8341 * scd/ccid-driver.c (ccid_transceive_secure): Add pinpad support
8342 for 08e6:34c2 which supports extended APDU exchange.
8344 2019-10-09 NIIBE Yutaka <gniibe@fsij.org>
8346 gpg: The first key should be in candidates.
8347 + commit 7535f1d47a35e30f736f0e842844555f7a4a9841
8348 * g10/getkey.c (get_best_pubkey_byname): Handle the first key
8349 as the initial candidate for the selection.
8351 2019-10-07 Werner Koch <wk@gnupg.org>
8353 kbx: Implement update for the STORE command.
8354 + commit f4bdf8e590877e9bfddfd19a4e4167f6531c9fb1
8355 * kbx/backend-kbx.c (be_kbx_update): New.
8356 * kbx/frontend.c (kbxd_store): Call it.
8358 2019-10-07 NIIBE Yutaka <gniibe@fsij.org>
8360 gpg: Fix a memory leak in get_best_pubkey_byname.
8361 + commit e28572116fe4c586ba9d1e8f27389bf3f06e036b
8362 * g10/getkey.c (get_best_pubkey_byname): Free the public key parts.
8364 2019-10-03 Werner Koch <wk@gnupg.org>
8366 gpg: Ignore all SHA-1 signatures in 3rd party key signatures.
8367 + commit 7d9aad63c4f1aefe97da61baf5acd96c12c0278e
8368 * g10/sig-check.c (check_signature_over_key_or_uid): No cut-off date
8369 and remove debug output.
8371 gpg: Be prepared for chosen-prefix SHA-1 collisions in key signatures.
8372 + commit c4f2d9e3e1d77d2f1f168764fcdfed32f7d1dfc4
8373 * g10/sig-check.c (check_signature_over_key_or_uid): Reject cewrtain
8374 SHA-1 based signatures.
8376 2019-10-01 Werner Koch <wk@gnupg.org>
8378 gpg: Read the UBID from the keybox and detect wrong blob type.
8379 + commit 63dbc817e7dcc6edc757281f09e1ca80500ab2d1
8380 * g10/keydb-private.h (struct keydb_handle_s): Add fields for UBID.
8381 * g10/call-keyboxd.c (search_status_cb): New.
8382 (keydb_search): Set new UBID fields.
8384 kbx: Add first version of STORE command to keyboxd.
8385 + commit c7293a4d125c4675c86ecdee0f2f3186fc4bdaf7
8386 * kbx/Makefile.am (keyboxd_CFLAGS): -DKEYBOX_WITH_X509.
8387 (keyboxd_LDADD): Add libksba.
8388 * kbx/kbxserver.c (cmd_store): New.
8389 * kbx/frontend.c (kbxd_store): New.
8390 * kbx/backend-support.c (is_x509_blob): New.
8391 (be_fingerprint_from_blob): New.
8392 * kbx/backend-kbx.c (be_kbx_seek): Add args FPR and FPRLEN.
8393 (be_kbx_insert): New.
8395 common: New function hex2fixedbuf.
8396 + commit 61765136cf92be2884603bc3fac020a1c6ed91f4
8397 * common/convert.c (hex2fixedbuf): New.
8399 2019-09-30 Werner Koch <wk@gnupg.org>
8401 gpg: Fix --recv-key in case of a given fingerprint.
8402 + commit a605dbb430b1f73ef974ad54f74679dfc0eefb18
8403 * g10/keyserver.c (keyserver_retrieval_screener): Compare against
8406 gpg: Fix expand GPG groups when resolving a key.
8407 + commit ec81c437e71b4c630a799ed29447cc5e3db162cd
8408 * g10/expand-group.c (expand_group): Add arg prepend_input.
8409 * g10/pkclist.c (build_pk_list): Adjust for it.
8410 * g10/getkey.c (key_byname): Keep the expanded names in the CTX and
8411 don't premature free them.
8412 (get_pubkey_byname): Append the namelist to the extra_list.
8414 2019-09-27 Werner Koch <wk@gnupg.org>
8416 gpg: Fix a recently introduced printf format buglet.
8417 + commit b966a7c142ab6341f4149d55e2609dbb9914acec
8418 * g10/parse-packet.c (dump_sig_subpkt): Fix format error.
8420 kbx: Fix error code return in keyboxd.
8421 + commit 8e574130482167dc7d2e2888cc80ad6584345e3d
8422 * kbx/frontend.c (kbxd_add_resource): Print a diagnostic on error.
8423 * kbx/backend-kbx.c (be_kbx_add_resource): Acttually returh the error
8426 kbx: Store the UBIB in the blob.
8427 + commit 0af1c6447dc0f981ab7306e3bef520f37aded167
8428 * kbx/keybox-blob.c (create_blob_header): New blob flag UBIB.
8429 (create_blob_finish): Write the UBIB.
8430 * kbx/keybox-dump.c (print_ubib): New.
8431 (_keybox_dump_blob): Print UBIB flag.
8432 * kbx/keybox-search.c (has_ubid): Compare the stored UBIB if
8435 kbx,gpg: Allow lookup using a UBID.
8436 + commit 4be79b5abeae82b9840e6aa93874f743e13c6df7
8437 * common/userids.c (classify_user_id): Detect UBIDs.
8438 * kbx/backend-cache.c (blob_table_put): Store the public key type.
8439 (be_cache_search): Add search mode for UBIDs.
8440 * kbx/backend.h (struct db_request_part_s): Add cache.seqno_ubid.
8441 * g10/keydb.c (keydb_search_desc_dump): Fix printing of keygrip. Add
8443 * g10/call-keyboxd.c (keydb_search): Support search by UBID.
8445 kbx: First take on a cache for the keyboxd.
8446 + commit 280e9c9cfac31ae5ac874c928eee063cc922e27e
8447 * kbx/backend.h (enum database_types): Add DB_TYPE_CACHE.
8448 (struct db_request_part_s): Add seqno fields.
8449 (struct db_request_s): Add infos for the cache backend.
8450 * kbx/backend-support.c (struct backend_handle_s): Add 'backend_id'.
8451 (strdbtype): Support DB_TYPE_CACHE.
8452 (be_generic_release_backend): Ditto.
8453 (be_find_request_part): New.
8454 (be_return_pubkey): New arg UBID and chnage status name.
8455 * kbx/backend-cache.c: New.
8456 * kbx/backend-kbx.c (be_kbx_init_request_part): New.
8457 (be_kbx_search): Factor some code out to a support function.
8459 * kbx/frontend.c (kbxd_add_resource): Support DB_TYPE_CACHE.
8460 (kbxd_search): Support the NEXR operation with the cache.
8461 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_UBID): New.
8462 (struct keydb_search_desc): Add field u.ubid.
8463 * kbx/keybox-search.c (has_ubid): New.
8464 (keybox_search): Support the UBID search.
8466 2019-09-20 NIIBE Yutaka <gniibe@fsij.org>
8468 build: Build gpg-pair-tool only when there is newer libgcrypt.
8469 + commit bb5ed9fe1abfcbb6128325508366bc802eb576c5
8470 * configure.ac (HAVE_NEWER_LIBGCRYPT): New.
8471 * tools/Makefile.am: Conditionalize build of gpg-pair-tool.
8473 2019-09-19 NIIBE Yutaka <gniibe@fsij.org>
8475 tools: Fix gpg-pair-tool to follow new API.
8476 + commit 7c81e5cb97c77244be164daf7a80e29f6b6e437b
8479 tools: Don't prepare G in gpg-pair-tool.
8480 + commit b928de70e072fce15d7bba39f370d32dd8b74095
8481 * tools/gpg-pair-tool.c (create_dh_keypair): Use NULL for G.
8483 tools: Use new API of libgcrypt for gpg-pair-tool.
8484 + commit f22a00416149448172bf8110d466d65c87962cae
8485 * tools/gpg-pair-tool.c (create_dh_keypair): Just use
8486 gcry_random_bytes for secret. Call gcry_ecc_mul_point
8487 with G to get the public key.
8488 (compute_master_secret): Use gcry_ecc_mul_point.
8490 2019-09-17 NIIBE Yutaka <gniibe@fsij.org>
8492 scd,pcsc: Use HANDLE for context and card.
8493 + commit 49671b76eae2c7d1edb13ed927654d0c11d879f1
8494 * scd/apdu.c (HANDLE): New.
8496 2019-09-12 NIIBE Yutaka <gniibe@fsij.org>
8498 scd: Remove old fallback logic from CCID to PC/SC.
8499 + commit 980d0234d31699e51051e0cc6002ad177b6e7136
8500 * scd/apdu.c (apdu_dev_list_start): Return an error on failure.
8502 scd,pcsc: Support "reader-port" option for PC/SC reader.
8503 + commit 6d750fe7fc4224924f13ef578010a26cdbe0a67b
8504 * scd/apdu.c (apdu_open_reader): Skip use of a reader if it's not the
8505 one specified when it is specified.
8507 scd,pcsc: Remove the restriction of no-scanning in PC/SC.
8508 + commit c569e49d1764d2573aec5684f9cee397bdd8ccb1
8509 * scd/apdu.h (app_open_reader): Remove the last argument.
8510 * scd/apdu.c (app_open_reader): Ditto.
8511 * scd/app.c (select_application): Don't supply APP_EMPTY.
8513 2019-09-11 NIIBE Yutaka <gniibe@fsij.org>
8515 scd,pcsc: Fix examining the list of readers.
8516 + commit 92be4e87eec984a3f3737339c311761d2650c55a
8517 * scd/apdu.c (apdu_dev_list_start): Traverse the string+NUL carefully.
8519 scd,pcsc: Fix for initializing PC/SC.
8520 + commit 441106cdf0fdd310e3b36370186849167db11345
8521 * scd/apdu.c (pcsc_init): Load it at first.
8522 (apdu_open_reader): Check for the CCID internal driver.
8524 scd,pcsc: Support multiple card readers.
8525 + commit e8534f899915a039610973a84042cbe25a5e7ce2
8526 * scd/apdu.c (close_pcsc_reader, apdu_init): Clear pcsc.rdrname.
8527 (pcsc_init): Load of PC/SC module moved from ...
8528 (open_pcsc_reader): ... here.
8529 (apdu_dev_list_start): Add support for PC/SC.
8530 (apdu_dev_list_finish): Likewise.
8531 (apdu_open_reader): Likewise.
8533 scd,pcsc: Use a single context.
8534 + commit 1080e91efd60cb41c2d6dbafaee810e5967a3161
8535 * scd/apdu.c (pcsc): New variable.
8536 (struct reader_table_s): Remove pcsc.context from member.
8537 (pcsc_get_status, connect_pcsc_card): Use pcsc.context.
8538 (close_pcsc_reader): Release pcsc.context here with reference count.
8540 (open_pcsc_reader): Don't call pcsc_establish_context here. Call
8541 close_pcsc_reader instead of pcsc_release_context.
8542 (apdu_open_reader): Call pcsc_init if needed.
8543 (apdu_init): Initialize pcsc.count and pcsc.context.
8545 scd: Clean up the structure for future fix of PC/SC.
8546 + commit f44aa290c1368a3119b2323664c0f356195c4206
8547 * scd/apdu.c (struct dev_list): Rename from ccid_table, with void*.
8548 (open_ccid_reader): Follow the change.
8549 (apdu_dev_list_start, apdu_dev_list_finish): Likewise.
8550 (apdu_open_reader): Likewise.
8551 * scd/ccid-driver.c (ccid_dev_scan): Use void *.
8552 (ccid_dev_scan_finish, ccid_get_BAI, ccid_open_usb_reader): Likewise.
8553 * scd/ccid-driver.h: Change the APIs.
8555 2019-09-10 Werner Koch <wk@gnupg.org>
8557 gpg: First rough implementation of keyboxd access for key lookup.
8558 + commit ce9906b008c94c2aa4ac770a981d1e1e0b8aea47
8559 * g10/Makefile.am: Add nPth flags.
8560 * g10/gpg.c: Include npth.h.
8561 (gpg_deinit_default_ctrl): Deinit call-keyboxd local data.
8563 * g10/keydb-private.h (struct keydb_handle_s): Add field 'kbl' and
8564 remove the search result and the assuan context.
8565 * g10/call-keyboxd.c (struct keyboxd_local_s): Add more fields.
8566 (lock_datastream, unlock_datastream): New.
8567 (gpg_keyboxd_deinit_session_data): Adjust for changed data structures.
8568 (prepare_data_pipe): New.
8569 (open_context): Return kbl instead of an Assuan context. Init mutexes
8571 (close_context): Merge into ...
8572 (keydb_release): here. Adjust for changed data structures.
8573 (datastream_thread): New.
8574 (keydb_get_keyblock): Implement datastream stuff.
8575 (keydb_search): Ditto.
8577 * common/asshelp.c (wait_for_sock): Add arg connect_flags.
8578 (start_new_service): Set FDPASSING flag for the keyboxd.
8580 kbx: Allow fd-passing for the keyboxd.
8581 + commit 6c327b4dd6d8041b84f856ffc2a7d82b352d273f
8582 * kbx/kbxserver.c: Include host2net.h
8583 (struct server_local_s): Add field outstream.
8584 (prepare_outstream): New.
8586 (kbxd_write_data_line): Write to file descrptor. Disable the slow
8587 human reader friendly data line formatting.
8588 (cmd_search, cmd_next): Disable data logging.
8589 (kbxd_start_command_handler): Add OUTPUT command.
8590 * kbx/keyboxd.c (main): Enable log monitor.
8592 common: Allow a readlimit for iobuf_esopen.
8593 + commit 2f0fdab8aabdf408495163ef99b2d4d111f74692
8594 * common/iobuf.c (file_es_filter_ctx_t): Add fields use_readlimit and
8596 (file_es_filter): Implement them.
8597 (iobuf_esopen): Add new arg readlimit.
8598 * g10/decrypt-data.c (decrypt_data): Adjust for change.
8599 * g10/import.c (import_keys_es_stream): Ditto.
8601 2019-09-10 Andre Heinecke <aheinecke@gnupg.org>
8603 doc: Fix distchek for generated eps file.
8604 + commit c69a37dcbdc8db47489fbf744f58bb61399d223f
8605 * doc/Makefile.am (EXTRA_DIST, BUILT_SOURCES): Add
8606 gnupg-module-overview.eps, gnupg-card-architecture.eps
8607 (DISTCLEANFILES): Remove them.
8609 2019-09-09 Werner Koch <wk@gnupg.org>
8611 gpg: New option --use-keyboxd.
8612 + commit aba82684fe14289cf62b4694bc398f3a274b4762
8613 * g10/gpg.c (oUseKeyboxd,oKeyboxdProgram): New consts.
8614 (opts): New options --use-keyboxd and --keyboxd-program.
8615 (main): Implement them.
8616 * g10/keydb.c: Move some defs out to ...
8617 * g10/keydb-private.h: new file.
8618 * g10/keydb.c: prefix function names with "internal" and move original
8620 * g10/call-keyboxd.c: new file. Divert to the internal fucntion if
8621 --use-keyboxd is used. Add a CTRL arg to most fucntions and change
8623 * g10/Makefile.am (common_source): Add new files.
8624 (noinst_PROGRAMS): Do bot build gpgcompose.
8626 kbx: Fix keyboxd search first.
8627 + commit 5e00c1773d8fd44ba95b39a48e12b0ec94ac8cbe
8628 * kbx/kbxserver.c (cmd_next): Switch to mode next if needed.
8630 kbx: Allow searching from start.
8631 + commit 1545b948e1c8e8fa4873d434fb790a88ed96091c
8632 * kbx/kbxserver.c (cmd_search): Detect empty pattern.
8634 2019-09-06 Stephan Mueller <smueller@chronox.de>
8636 gpg: expand GPG groups when resolving a key.
8637 + commit e825aea2ba3529c333d7ec2c76e63998cb83d999
8638 * g10/expand-group.c: New
8639 * g10/pkclist.c: Extract expand_group and expand_id into expand-group.c.
8640 * g10/keydb.h: Add prototypes of expand_id and expand_group.
8641 * g10/getkey.c: Use expand_group before resolving key references.
8642 * g10/Makefile.am: Compile expand-group.c.
8644 2019-09-06 Werner Koch <wk@gnupg.org>
8646 gpg: Make --quiet work on --send-keys.
8647 + commit d9c4c3776b8ec3261e13693e230dd480b1127b18
8648 * g10/keyserver.c (keyserver_put): Act upon --quiet.
8650 2019-09-05 Werner Koch <wk@gnupg.org>
8652 gpg: Prepare parser for the new attestation certificates.
8653 + commit 209caaff66fbe96df144e6b1474435992e087fa4
8654 * common/openpgpdefs.h (SIGSUBPKT_ATTST_SIGS): New.
8655 * g10/keydb.h (IS_ATTST_SIGS): New.
8656 (IS_CERT): Include the new one.
8657 * g10/sign.c (mk_notation_policy_etc): Do not put notations into
8658 attestation key signatures.
8659 * g10/parse-packet.c (dump_sig_subpkt): Add new arg digest_algo.
8660 Print the attestation sigs.
8661 (parse_one_sig_subpkt): Support SIGSUBPKT_ATTST_SIGS.
8662 (can_handle_critical): Ditto.
8663 (enum_sig_subpkt): Pass digest algo to dump_sig_subpkt.
8665 gpg: Rework the signature subpacket iteration function.
8666 + commit e1d9be730ca07e10a20df5ef60d7562030f10676
8667 * g10/parse-packet.c (enum_sig_subpkt): Replace first arg by two args
8668 so that the entire signature packet is available. Change all callers.
8669 (parse_sig_subpkt): Ditto.
8671 scd: Implement auto-switching between Yubikey apps.
8672 + commit 7febb4f2476742936b829424ad23df662b37f4b4
8673 * scd/app.c (apptype_from_keyref): New.
8674 (maybe_switch_app): Add arg 'keyref' and use this also for switching.
8675 Change all callers to pass a keyref if needed.
8677 scd:openpgp: Avoid PIN caching issues after re-select.
8678 + commit 5d9eb060b764d45152edb266cd8a08f5724ad709
8679 * scd/app-openpgp.c (do_reselect): Clear PIN cache flags.
8681 scd:piv: Allow the keygrip as alternative to a keyref.
8682 + commit 947b44e835dec5967d400a9391d8746fb3f759df
8683 * scd/app-piv.c (find_dobj_by_keyref): Allow the keygrip as input.
8685 scd: Improve locking of app_do_with_keygrip.
8686 + commit c8d739a356d3dacdf63fa2d722d117401cf52caf
8687 * scd/app.c (app_do_with_keygrip): Lock once per card.
8689 scd: New debug flag "app".
8690 + commit 4e701953fec6efb10aaf34373e648b1dcafba054
8691 * scd/scdaemon.h (DBG_APP_VALUE, DBG_APP): New.
8692 * scd/scdaemon.c (debug_flags): Add "app".
8693 * scd/app.c (xstrapptype): New.
8694 (app_readcert, app_readkey, app_getattr): Add debug output.
8695 (app_setattr, app_sign, app_auth): Ditto.
8696 (app_writecert, app_writekey, app_change_pin): Ditto.
8697 (app_check_pin): Ditto.
8699 2019-09-05 NIIBE Yutaka <gniibe@fsij.org>
8701 agent: Fix ask_for_card to allow a key on multiple cards.
8702 + commit 9f39e0167d0642bcfb9bcabcbc7f8160b39a20ee
8703 * agent/divert-scd.c (ask_for_card): Don't use SERIALNO to select
8704 card, but use KEYGRIP.
8706 2019-09-04 Werner Koch <wk@gnupg.org>
8708 scd: New sub-command cmd_has_option for GETINFO.
8709 + commit fed9c93e05af4aeeb2fe9af81200fc7a745f2dec
8710 * scd/command.c (cmd_getinfo): Add cmd_has_option sub-command.
8712 scd: Add option --all to the SERIALNO command.
8713 + commit 9a0d8f2d8906d2f37c2755c4695b91c27c8acc2f
8714 * scd/command.c (cmd_serialno): Add option --all.
8715 (open_card_with_request): Implement that option.
8716 * scd/app.c (select_all_additional_applications_internal): New.
8717 (select_additional_application): Add mode to call new function.
8719 scd: Fix Error checking in additioal app selection.
8720 + commit fa258379424c6d48538b054b8dc7c1ab5c2d4290
8721 * scd/app.c (select_additional_application): Return error for unknown
8724 scd: Add option --multi to the LEARN command.
8725 + commit 5cf5a04bae03d622a42753735c60dfab3b24ade8
8726 * scd/app-common.h (APP_LEARN_FLAG_MULTI): New.
8727 * scd/command.c (cmd_learn): Add option --multi.
8728 * scd/app.c (app_write_learn_status): Factor some code out to ...
8729 (write_learn_status_core): new.
8730 (app_write_learn_status): Implement flag --multi.
8732 scd: Use a macro for the flag parameter of learn_status.
8733 + commit 2cdea776cd6db13c8f4ff45c89bd3292f216b186
8734 * scd/app-common.h (APP_LEARN_FLAG_KEYPAIRINFO): New flag macro..
8735 * scd/command.c (cmd_learn): Pass that flag instead of a plain number.
8736 * scd/app-nks.c (do_learn_status_core): Use new flag.
8737 * scd/app-p15.c (do_learn_status): Ditto.
8738 * scd/app-piv.c (do_learn_status): Ditto.
8739 * scd/app-sc-hsm.c (do_learn_status): Ditto.
8740 * scd/app.c (app_write_learn_status): Ditto.
8742 2019-08-23 Werner Koch <wk@gnupg.org>
8744 gpg,sm: Implement keybox compression run and release lock in gpgsm.
8745 + commit e64f0dfd72de548837f630bccd249a87451b89c5
8746 * g10/keydb.c (keydb_add_resource): Call keybox_compress.
8747 * sm/keydb.c (keydb_add_resource): Release the lock after a compress.
8749 kbx: Include deleted records into the --stats output.
8750 + commit 5ef0d7a795cf2462314ea0cb72c7efa7243ab405
8751 * kbx/keybox-dump.c (_keybox_dump_file): Take deleted records in
8754 kbx: Fix regression in compression trigger from July 18.
8755 + commit 30aaa4ba007210aa043c3d524415495a4d9fd17f
8756 * kbx/keybox-update.c (keybox_compress): Change condition back.
8757 Also use make_timestamp for CUT_TIME.
8759 gpg: Allow --locate-external-key even with --no-auto-key-locate.
8760 + commit d058d80ed0d5edeff6d85108054b1dfd45ddad7d
8761 * g10/getkey.c (akl_empty_or_only_local): New.
8762 * g10/gpg.c (DEFAULT_AKL_LIST): New.
8763 (main): Use it here.
8764 (main) <aLocateExtKeys>: Set default AKL if none is set.
8766 gpg: Silence some warning messages during -Kv.
8767 + commit d7aca1bef68589134b36395901b92496a7a37392
8768 * g10/options.h (glo_ctrl): Add flag silence_parse_warnings.
8769 * g10/keylist.c (list_all): Set that during secret key listsings.
8770 * g10/parse-packet.c (unknown_pubkey_warning): If new flag is set do
8771 not print info message normally emitted inh verbose mode.
8772 (can_handle_critical_notation, enum_sig_subpkt): Ditto.
8773 (parse_signature, parse_key, parse_attribute_subpkts): Ditto.
8775 gpg: Do not show two informational diagnostics with quiet.
8776 + commit f14ddeb89c4519cd7ccf52c4595b93ab11ccbda1
8777 * g10/trustdb.c (verify_own_keys): Silence informational diagnostic.
8779 gpgconf: Suggest the use of --gpgconf-test on --launch problems.
8780 + commit 2a45800b2f8043d2533403eaadf8736d15ad7017
8781 * tools/gpgconf-comp.c (gc_component_launch): Change suggestion.
8783 2019-08-22 Werner Koch <wk@gnupg.org>
8785 gpg: Extend --quick-gen-key for creating keys from a card.
8786 + commit d3f5d8544fdb43082ff34b106122bbf0619a0ead
8787 * g10/keygen.c (parse_key_parameter_part): Add arg R_KEYGRIP and
8788 support the special algo "card".
8789 (parse_key_parameter_string): Add args R_KEYGRIP and R_SUBKEYGRIP.
8790 Handle the "card" algo. Adjust callers.
8791 (parse_algo_usage_expire): Add arg R_KEYGRIP.
8792 (quickgen_set_para): Add arg KEYGRIP and put it into the parameter
8794 (quick_generate_keypair): Handle algo "card".
8795 (generate_keypair): Also handle the keygrips as returned by
8796 parse_key_parameter_string.
8797 (ask_algo): Support ed25519 from a card.
8799 2019-08-22 NIIBE Yutaka <gniibe@fsij.org>
8801 gpg: Factor export_ssh_key.
8802 + commit 6f760e6eb0e8820d386b33c28cb14210adfc6aef
8803 * g10/export.c (export_one_ssh_key): Factor out.
8804 (export_ssh_key): Use export_one_ssh_key.
8806 dns: Fix irrelevant use of tmpfile.
8807 + commit e00e68135c01351ed66fed3c4453a1b13c8d522f
8808 * dirmngr/dns.c (dns_trace_open): Don't use tmpfile.
8810 2019-08-21 Werner Koch <wk@gnupg.org>
8812 gpg: In a list of card keys show the standard keys.
8813 + commit ce403c74dbc9c027b823910f22338269e625f76f
8814 * g10/keygen.c (ask_algo): Identify the standard keys.
8816 scd:nks: Extend keypairinfo with usage flags.
8817 + commit 0d2c9ef29c1741845df2d56f0024f87eab42efb3
8818 * scd/app-nks.c (do_learn_status_core): Return usage.
8820 (cherry picked from commit 0a9053eff0406c6799ee201013194200c0ed3487)
8822 scd:nks: Support attributes $ENCRKEYID and $SIGNKEYID.
8823 + commit 671e54d62c39a9e196d13714cb67c2f3c38f2fa0
8824 * scd/app-nks.c (do_getattr): Add new attributes.
8826 gpg: New option --use-only-openpgp-card.
8827 + commit c97c2e578dd173ef5e7916a3aa539b3a65a7d86d
8828 * g10/gpg.c (opts): Add option.
8830 * g10/options.h: Add flags.use_only_openpgp_card.
8831 * g10/call-agent.c (start_agent): Implement option.
8833 2019-08-21 NIIBE Yutaka <gniibe@fsij.org>
8835 scd: Fix check_application_conflict.
8836 + commit 6fae96094c973be880919f3a7798ca69d9365b69
8837 * scd/scd/app.c (check_application_conflict): Compare APPTYPE.
8839 scd: Fix selecting additional APP.
8840 + commit 8dc19d35e854264cfe503cdbb9e5ccafa9bc97d0
8841 * scd/app.c (select_additional_application_internal): Factor out.
8842 (select_additional_application): Getting the lock and call
8843 select_additional_application_internal, set current_apptype, then.
8844 (select_application): Call select_additional_application_internal
8847 scd: Fix how select_additional_application is called.
8848 + commit 4781c4a86608b57f9d1daf55b9b2970130fe6120
8849 * scd/app.c (check_application_conflict): Check against current APP.
8850 (select_additional_application): Update current_apptype of CTRL.
8852 scd: Fix resetting CARD_CTX.
8853 + commit 09d000babb71990ef1b3f42017a67516bb994388
8854 * scd/app.c (deallocate_card): Don't call scd_clear_current_app.
8855 (card_reset): Reset ctrl->current_apptype.
8856 * scd/command.c (open_card_with_request): Likewise.
8857 (send_client_notifications): Likewise.
8858 (scd_clear_current_app): Remove.
8860 scd: Fix switching to another APP.
8861 + commit d4f135c34b332f1f833617a7f1ef0bdbff5eb589
8862 * scd/app.c (select_additional_application): Initialize card of APP.
8863 Break after the selection.
8864 Don't free APP if success.
8866 2019-08-20 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8868 doc: fix minor spelling and tense errors.
8869 + commit b7793c3af32b2d99359022f805636953a50d8c68
8870 * doc/{gpg,gpgsm,wks}.texi: minor orthographic cleanup.
8872 doc: clarify CARD event counter.
8873 + commit cba6e1bd7242e8b8c6822f4e93368cb315b5524b
8874 * doc/gpg-agent.texi: improve documentation of CARD entry in
8875 GETEVENTCOUNTER description.
8877 2019-08-08 Andre Heinecke <aheinecke@intevation.de>
8879 speedo, w32: Add w32-wixlib target for MSI package.
8880 + commit 0b7088dc8035e8d5832c89085eea3b288de67710
8881 * Makefile.am (EXTRA_DIST): Add wixlib.wxs
8882 * build-aux/speedo.mk (w32-wixlib): New target.
8883 (w32-release): Build wixlib if WIXPREFIX is set.
8884 (help): Add documentation.
8885 * build-aux/speedo/w32/wixlib.wxs
8887 2019-08-08 Werner Koch <wk@gnupg.org>
8889 build: Sign all Windows binaries.
8890 + commit 4964691861796ad6e7bd59dd553a617f68676b2b
8891 * build-aux/speedo.mk (AUTHENTICODE_SIGNHOST): New.
8892 (AUTHENTICODE_TOOL): New.
8893 (AUTHENTICODE_FILES): New.
8894 (installer): Sign listed files.
8895 (AUTHENTICODE_SIGNHOST): New macro.
8896 (sign-installer): Use that macro instead of direct use of osslsigncode.
8898 2019-08-07 NIIBE Yutaka <gniibe@fsij.org>
8900 scd: Remove fallback mechanism to PC/SC.
8901 + commit 100642e776964219936e493315eb8b7c99742f41
8902 * scd/apdu.c [HAVE_LIBUSB] (apdu_open_reader): Simply let it fail.
8904 2019-08-06 NIIBE Yutaka <gniibe@fsij.org>
8906 agent: Fix an error path of agent_get_confirmation.
8907 + commit bb82ad018a7bf93bd704cf44e51cd086e41a4ad5
8908 * agent/call-pinentry.c (agent_get_confirmation): Make sure
8909 unlock_pinentry is always called.
8911 2019-08-06 Werner Koch <wk@gnupg.org>
8913 kbx: Add framework for the SEARCH command.
8914 + commit 5ea6250cc5761612d17ca4fb34eed096f26e2826
8915 * kbx/backend-kbx.c: New.
8916 * kbx/backend-support.c: New.
8917 * kbx/backend.h: New.
8918 * kbx/frontend.c: New.
8919 * kbx/frontend.h: New.
8920 * kbx/kbxserver.c: Implement SEARCH and NEXT command.
8921 * kbx/keybox-search-desc.h (enum pubkey_types): New.
8922 * kbx/keybox-search.c (keybox_get_data): New.
8923 * kbx/keyboxd.c (main): Add a standard resource.
8925 kbx: Allow writing using a estream.
8926 + commit 1f980d23af8b818ed8246ec6bf13b9c61b963ec0
8927 * kbx/keybox-file.c (_keybox_write_header_blob): New optional arg
8928 stream. Change callers.
8930 tools: New option --keyboxd for gpg-connect-agent.
8931 + commit 0611f548bcd3c772084d6c3111dc88a09a67f65a
8932 * configure.ac: New option --keyboxd-pgm.
8933 (KEYBOXD_NAME, KEYBOXD_DISP_NAME): New ac_defines.
8934 * common/util.h: Add substitutes for new error codes.
8935 (GNUPG_MODULE_NAME_KEYBOXD): New.
8936 * common/homedir.c (gnupg_module_name): Support
8937 GNUPG_MODULE_NAME_KEYBOXD.
8938 * common/asshelp.c (SECS_TO_WAIT_FOR_KEYBOXD): New.
8939 (wait_for_sock): Support keyboxd.
8940 (start_new_service): Ditto.
8941 (start_new_keyboxd): New.
8942 * tools/gpg-connect-agent.c: New options --keyboxd and
8944 (start_agent): Implement new option.
8946 2019-08-06 NIIBE Yutaka <gniibe@fsij.org>
8948 common: Fix line break handling, finding a space.
8949 + commit f588dd8d1766de48c90a5501cf2d537f256d003e
8950 * common/name-value.c (assert_raw_value): Correctly find a space.
8952 gpg: Don't report NO_SECKEY for valid key.
8953 + commit d8a49bbcd1b1d40ab0ddadac0dbb16a5d75c626e
8954 * g10/mainproc.c (proc_encrypted): Report status of STATUS_NO_SECKEY
8955 only when some error occurred.
8957 2019-08-05 Werner Koch <wk@gnupg.org>
8959 common: Remove code duplication for service starting.
8960 + commit e22ebf357050f98558b428502a565fc3dc256932
8961 * common/homedir.c (gpg_agent_socket_name): New.
8962 * common/asshelp.c (start_new_service): New. Based on
8963 start_new_gpg_agent.
8964 (start_new_gpg_agent): Divert to start_new_service.
8965 (start_new_dirmngr): Ditto.
8967 2019-08-05 NIIBE Yutaka <gniibe@fsij.org>
8969 sm: Support AES-256 key.
8970 + commit ef2424144a070c9199e40424ec8d9b5a9919aa72
8971 * sm/decrypt.c (prepare_decryption): Handle a case for AES-256.
8973 2019-08-02 Werner Koch <wk@gnupg.org>
8975 common: Change yet unused status_printf function.
8976 + commit d8a84594abe4be933756db07b987dc8bcd79c8b9
8977 * common/asshelp2.c (status_printf): Rename to status_no_printf.
8978 (status_printf): New.
8980 2019-07-26 NIIBE Yutaka <gniibe@fsij.org>
8982 sm: Fix error checking of decryption result.
8983 + commit 15fe78184cc66ce6e657a6e949a522d7821f8a1c
8984 * sm/call-agent.c (gpgsm_agent_pkdecrypt): Fix condition.
8986 2019-07-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8988 gpg,gpgsm: Handle pkdecrypt responses with/without NUL terminators.
8989 + commit 3ba091ab8c93c87741a451f579d63dd500d7621d
8990 * g10/call-agent.c (agent_pkdecrypt): accept but do not require
8991 NUL-terminated data from the agent.
8992 * sm/call-agent.c (gpgsm_agent_pkdecrypt): accept but do not require
8993 NUL-terminated data from the agent.
8995 2019-07-25 NIIBE Yutaka <gniibe@fsij.org>
8997 gpg: photoid: Use standard spawn API.
8998 + commit fd9e6ae22eb93aa5140b56e1b0fa14e6402d6099
8999 * g10/photoid.c (exec_write, exec_read, exec_finish): Remove.
9000 (setup_input_file): Rename from make_tempdir.
9001 (expand_args): Drop support of 'o' and 'O'.
9002 (fill_command_argv, run_with_pipe, create_temp_file) New.
9003 (show_photo): New with gnupg_spawn_process_fd and gnupg_wait_process.
9004 (show_photos): Call show_photo.
9006 gpg: photoid: Move functions from exec.c.
9007 + commit c57c5004ec6cc7dc7b7a4f250516199a8a1e31fc
9008 * g10/exec.c (w32_system): Expose to public.
9009 (exec_write, exec_read, exec_finish, make_tempdir, expand_args): Move
9011 * g10/exec.h: Likewise.
9012 * g10/photoid.c (exec_write, exec_read, exec_finish, make_tempdir)
9013 (expand_args): Move here.
9015 scd: Handle CCID bwi of time extension.
9016 + commit 996c497a864d820af06333014b2c5f74d1054866
9017 * scd/ccid-driver.c (bulk_in): Increase timeout by the multiplier
9018 value as defined section 6.2.6 in CCID specification.
9020 scd: Fix bBWI value.
9021 + commit 858dc9564326e65e6d8771af160d4513aea1e4eb
9022 * scd/ccid-driver.c (ccid_transceive_apdu_level): Use bBWI=0 for APDU
9024 (ccid_transceive): Use bBWI=0 or the value returend by WTX for TPDU
9027 2019-07-24 NIIBE Yutaka <gniibe@fsij.org>
9029 common: Fix the previous commit.
9030 + commit 044379772fc5b0f39c6a36809722e702808b6ec3
9031 * common/asshelp.c [HAVE_W32_SYSTEM] (start_new_gpg_agent): Use
9032 gnupg_spawn_process_detached.
9033 (start_new_dirmngr): Likewise.
9035 common: Use gnupg_spawn_process_fd to invoke gpg-agent/dirmngr.
9036 + commit b1c56cf9e2bb51abfd47747128bd2a6285ed1623
9037 * common/asshelp.c (start_new_gpg_agent): Call gnupg_spawn_process_fd
9038 and gnupg_wait_process.
9039 (start_new_dirmngr): Likewise.
9041 common,w32: Fix cast from gnupg_fd_t to call _open_osfhandle.
9042 + commit a64411c607d5450e786c3207b9023394574c979b
9043 * common/sysutils.c (translate_sys2libc_fd): Use intptr_t.
9044 (gnupg_tmpfile): Likewise.
9046 2019-07-23 NIIBE Yutaka <gniibe@fsij.org>
9048 gpg: A little clean up.
9049 + commit 7bfbb9fa7e7693cd7f19a8d130aa0a9a82825d5d
9050 * g10/keyserver.c: Don't include exec.h.
9051 * g10/photoid.c (image_type_to_string): It's constant.
9052 * g10/photoid.h (image_type_to_string): Likewise.
9054 2019-07-22 NIIBE Yutaka <gniibe@fsij.org>
9056 scd: Error code map fix for older Yubikey.
9057 + commit 13bc0431ff1ce51246694208df611cc4561fb4b3
9058 * scd/iso7816.c (map_sw): Recognize 6A86.
9060 2019-07-19 NIIBE Yutaka <gniibe@fsij.org>
9062 gpg: The option --passphrase= can be empty.
9063 + commit fcd766719a6e8f18f4be4c0f91e12aa157ca5506
9064 * g10/gpg.c (opts): Use ARGPARSE_o_s for oPassphrase to allow
9067 card: Fix showing KDF object attribute.
9068 + commit 98f4eff7ffde106ae4f60739d1104282430ac14f
9069 * g10/call-agent.c (learn_status_cb): Parse the KDF DO.
9070 * g10/card-util.c (current_card_status): Show it correctly.
9072 scd: Support "[CHV3]" attribute for keyid string.
9073 + commit 57565d5f975d3c00853bb49678d63ee8b896b741
9074 * scd/app-openpgp.c (check_keyidstr0: Relax the check.
9076 card: Support disabling KDF functionality.
9077 + commit 9c0cd9d07546698ab66cedd06c503e6b698593f9
9078 * g10/card-util.c (kdf_setup): Can be "off".
9080 2019-07-18 Werner Koch <wk@gnupg.org>
9082 kbx: Allow "gpgsm --faked-system-time" to kick off a compression run.
9083 + commit 824ca6f042dc69edaf67bf9d4e875be75babab00
9084 * kbx/keybox-update.c (keybox_compress): Use make_timestamp.
9086 2019-07-18 NIIBE Yutaka <gniibe@fsij.org>
9088 gpg: More check for symmetric key encryption.
9089 + commit 44be675b759d27bac310c2de8bae1b7882a26b65
9090 * g10/dek.h (DEK): Use debugger friendly type of unsigned int.
9091 * g10/mainproc.c (symkey_decrypt_seskey): Add another check.
9093 2019-07-16 NIIBE Yutaka <gniibe@fsij.org>
9095 doc: Fix description of the field 11.
9096 + commit 4195ce15f4942245a29ef20ace42ad0f27e82ffd
9099 dirmngr: Don't add system CAs for SKS HKPS pool.
9100 + commit 75e0ec65170b7053743406e3f3b605febcf7312a
9101 * dirmngr/http.c [HTTP_USE_GNUTLS] (http_session_new): Clear
9104 2019-07-12 Werner Koch <wk@gnupg.org>
9106 scd: Remove useless GNUPG_SCD_MAIN_HEADER macro.
9107 + commit fb1c8978f57b8f92e2ea9d10afc1d133656c9706
9108 * scd/apdu.c (): Remove never set and useless macro.
9109 * scd/ccid-driver.c: Ditto.
9110 * scd/iso7816.c: Ditto.
9112 2019-07-12 NIIBE Yutaka <gniibe@fsij.org>
9114 doc: Dependencies for figures are only for maintainers.
9115 + commit 58bab1a8784b0dbae70b5d74757cd56484292d1c
9116 * doc/Makefile.am [MAINTAINER_MODE] (.svg.eps, etc.): Enable only
9117 when maintainer-mode.
9119 Fix a reference in comment.
9120 + commit 4e601c7643fcfa3d8babcce58daa4c6c6a42d338
9121 * common/openpgp-s2k.c: Fix.
9123 gpg: Don't try decryption by session key when NULL.
9124 + commit 89303b9998ea30d87b4c60dd48097dbe5e986a89
9125 * g10/mainproc.c (proc_encrypted): Only call get_session_key when
9126 PKENC_LIST is not NULL.
9127 Return GPG_ERR_BAD_KEY, instead of GPG_ERR_NO_SECKEY, when
9128 it's encrypted only by symmetric key.
9130 2019-07-11 NIIBE Yutaka <gniibe@fsij.org>
9132 agent: Relax the handling of pinentry error for keyboard grab.
9133 + commit 02d8b383833bac0382e910a2058b11b127acfd4d
9134 * agent/call-pinentry.c (start_pinentry): It's not fatal when
9135 pinentry doesn't support no-grab/grab option.
9137 scd: Fix internal CCID driver, so that -DTEST works.
9138 + commit b31060425226b45deb21915bf5cd8b6ba62bd098
9139 * scd/ccid-driver.c: Support a test program by ccid-driver.
9141 scd: Fix debug logging of the internal CCID driver.
9142 + commit 2536bf276189a474a3a1ca9716368cf5d991b0d6
9143 * scd/ccid-driver.c [GNUPG_MAJOR_VERSION] (DEBUGOUT): Use log_debug.
9145 gpg: Fix getting User ID.
9146 + commit 29c7fb4053d207c163802642babbdbb6f885727e
9147 * g10/getkey.c (user_id_db): Remove, as no use anymore.
9148 (get_user_id_string): Use cache_get_uid_bykid.
9149 (get_user_id_byfpr): Use cache_get_uid_byfpr.
9150 * g10/objcache.c (cache_get_uid_byfpr): New.
9151 * g10/objcache.h (cache_get_uid_byfpr): New.
9153 2019-07-10 NIIBE Yutaka <gniibe@fsij.org>
9155 gpg: Improve import slowness.
9156 + commit 33c17a8008c3ba3bb740069f9f97c7467f156b54
9157 * g10/import.c (read_block): Avoid O(N^2) append.
9158 (sec_to_pub_keyblock): Likewise.
9160 gpg: Fix keyring retrieval.
9161 + commit a7a043e82555a9da984c6fb01bfec4990d904690
9162 * g10/keyring.c (keyring_get_keyblock): Avoid O(N^2) append.
9164 2019-07-09 Werner Koch <wk@gnupg.org>
9166 gpg: Do not try the import fallback if the options are already used.
9167 + commit a29156d5a650702ad79fe11f45782bc4bc159c13
9168 * g10/import.c (import_one): Check options.
9170 gpg: Fix regression in option "self-sigs-only".
9171 + commit eec150eca78a053193a0994a96482791b5da36be
9172 * g10/import.c (read_block): Make sure KEYID is availabale also on a
9175 2019-07-09 NIIBE Yutaka <gniibe@fsij.org>
9177 sm: Fix card access.
9178 + commit 37d758e5f2b5d07dc937098cf48096cf35ea61e4
9179 * sm/call-agent.c (gpgsm_scd_pksign): Cast to integer for %b.
9181 scd: ccid-driver: Initial getting ATR more robustly.
9182 + commit c51a5685554a06e00ae1e99070b44613b2f8d417
9183 * scd/ccid-driver.c (send_power_off): New.
9184 (do_close_reader): Use send_power_off.
9185 (ccid_get_atr): Add error recovery.
9187 2019-07-08 NIIBE Yutaka <gniibe@fsij.org>
9189 scd: Fix keygrip search.
9190 + commit 39c40e572c5632f836d089dce49224f947244bf2
9191 * scd/app.c (app_do_with_keygrip): Break the entire loop.
9193 2019-07-05 Werner Koch <wk@gnupg.org>
9195 gpg: With --auto-key-retrieve prefer WKD over keyservers.
9196 + commit 96bf8f477805bae58cfb77af8ceba418ff8aaad9
9197 * g10/mainproc.c (check_sig_and_print): Print a hint on how to make
9198 use of the preferred keyserver. Remove keyserver lookup just by the
9199 keyid. Try a WKD lookup before a keyserver lookup.
9201 wkd: Change client/server limit back to 64 KiB.
9202 + commit b0e8724b102535c27a8c973ec038d340858a8eb8
9203 * tools/wks-receive.c (decrypt_data): Change limit.
9205 2019-07-05 NIIBE Yutaka <gniibe@fsij.org>
9207 sm: Return the last error for pubkey decryption.
9208 + commit 38b9da7de3350b1e56b85a058cdb1fdded78cf6d
9209 * sm/decrypt.c: Use TMP_RC for ksba_cms_get_issuer_serial,
9210 and return the last error when no key is available.
9211 Fix the error report with TMP_RC for second call of
9212 ksba_cms_get_issuer_serial.
9214 gpg: Return the last error for pubkey decryption.
9215 + commit 6cc4119ec03be61c78189a0bec99372035289b91
9216 * g10/mainproc.c (proc_encrypted): Check ->result against -1.
9217 When c->dek == NULL, put GPG_ERR_NO_SECKEY only when not set.
9218 * g10/pubkey-enc.c (get_session_key): Set k->result by the result of
9220 When no secret key is available for some reasons, return the last
9221 specific error, if any.
9223 2019-07-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9225 dirmngr: fix handling of HTTPS redirections during HKP.
9226 + commit 064aeb14c9b869e114e9ec789526fad8da657230
9227 * dirmngr/ks-engine-hkp.c (send_request): Reinitialize HTTP session when
9228 following a HTTP redirection.
9230 2019-07-04 Werner Koch <wk@gnupg.org>
9232 gpg: Add "self-sigs-only" and "import-clean" to the keyserver options.
9233 + commit 23c978640812d123eaffd4108744bdfcf48f7c93
9234 * g10/gpg.c (main): Change default.
9236 gpg: Avoid printing false AKL error message.
9237 + commit 91a6ba32347a21c9029728eec96b8ff80f944629
9238 * g10/getkey.c (get_pubkey_byname): Add special traeatment for default
9241 gpg: New command --locate-external-key.
9242 + commit d00c8024e58822e0623b3fad99248ce68a8b7725
9243 * g10/gpg.c (aLocateExtKeys): New.
9244 (opts): Add --locate-external-keys.
9245 (main): Implement that.
9246 * g10/getkey.c (get_pubkey_byname): Implement GET_PUBKEY_NO_LOCAL.
9247 (get_best_pubkey_byname): Add arg 'mode' and pass on to
9248 get_pubkey_byname. Change callers.
9249 * g10/keylist.c (public_key_list): Add arg 'no_local'.
9250 (locate_one): Ditto. Pass on to get_best_pubkey_byname.
9252 gpg: Make the get_pubkey_byname interface easier to understand.
9253 + commit 9980f81da765f88a65604ab083563bf15ccdb425
9254 * g10/keydb.h (enum get_pubkey_modes): New.
9255 * g10/getkey.c (get_pubkey_byname): Repalce no_akl by a mode arg and
9258 2019-07-03 Werner Koch <wk@gnupg.org>
9260 dirmngr: Avoid endless loop in case of HTTP error 503.
9261 + commit 8b113bb148f273524682252233b3c65954e1419e
9262 * dirmngr/ks-engine-hkp.c (SEND_REQUEST_EXTRA_RETRIES): New.
9263 (handle_send_request_error): Use it for 503 and 504.
9264 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Pass a new var for
9267 dirmngr: Do not rewrite the redirection for the "openpgpkey" subdomain.
9268 + commit 37f0c55c7be3fc4912237f2bc72466aef6f8aa36
9269 * dirmngr/http.c (same_host_p): Consider certain subdomains to be the
9272 2019-07-02 Peter Lebbing <peter@digitalbrains.com>
9274 Mention --sender in documentation.
9275 + commit cf92f7d96f83e5af7d2c232c8450c2c7d900ade8
9278 2019-07-01 Werner Koch <wk@gnupg.org>
9280 gpg: Fallback to import with self-sigs-only on too large keyblocks.
9281 + commit 3a403ab04eeb45f12b34f9d9c421dac93eaf2160
9282 * g10/import.c (import_one): Rename to ...
9283 (import_one_real): this. Do not print and update stats on keyring
9285 (import_one): New. Add fallback code.
9287 gpg: New import and keyserver option "self-sigs-only"
9288 + commit 2e349bb6173789e0e9e42c32873d89c7bc36cea4
9289 * g10/options.h (IMPORT_SELF_SIGS_ONLY): New.
9290 * g10/import.c (parse_import_options): Add option "self-sigs-only".
9291 (read_block): Handle that option.
9293 gpg: Make read_block in import.c more flexible.
9294 + commit 894b72d796c826b1c7e1df788e16874cd051e672
9295 * g10/import.c: Change arg 'with_meta' to 'options'. Change callers.
9297 2019-07-01 NIIBE Yutaka <gniibe@fsij.org>
9299 tools: gpgconf: Killing order is children-first.
9300 + commit 7c877f942a344e7778005840ed7f3e20ace12f4a
9301 * tools/gpgconf-comp.c (gc_component_kill): Reverse the order.
9303 2019-06-28 NIIBE Yutaka <gniibe@fsij.org>
9305 agent: Close a dialog cleanly when gpg/ssh is killed for CONFIRM.
9306 + commit 374a0775546b6241ca2dd10836202c50300d8e91
9307 * agent/call-pinentry.c (watch_sock_start): Factor out
9309 (watch_sock_end): Likewise.
9310 (do_getpin): Use those functions.
9311 (agent_get_confirmation): Likewise.
9312 (popup_message_thread): Likewise.
9314 2019-06-25 Werner Koch <wk@gnupg.org>
9316 scd: Do not conflict if a card with another serialno is demanded.
9317 + commit 92ba831758cff0262504ac51e5df7a439844327c
9318 * scd/app.c (check_application_conflict): Add args to pass a serialno.
9319 * scd/command.c (open_card_with_request): Pass the serialno to
9320 check_application_conflict.
9322 scd: Return a stable list with "getinfo card_list".
9323 + commit c8e62965bc90eabff5c4b7cb349bd8e41584c01b
9324 * scd/app.c (compare_card_list_items): New.
9325 (app_send_card_list): Sort the card objects by slot.
9327 scd: Add an re-select mechanism to switch apps.
9328 + commit d803b3bb3c084b6bce4d2bd161db50dc45442e5b
9329 * scd/app-common.h (struct app_ctx_s): Add func ptr 'reselect'.
9330 * scd/app-piv.c (do_reselect): New.
9331 (app_select_piv): Move AID constant to file scope.
9332 * scd/app-openpgp.c (do_reselect): New.
9333 (app_select_openpgp): Move AID constant to file scope.
9334 * scd/app.c (apptype_from_name): New.
9335 (check_application_conflict): Check against all apps of the card.
9336 Always set current_apptype.
9337 (select_additional_application): New.
9338 (maybe_switch_app): New.
9339 (app_write_learn_status, app_readcert, app_readkey, app_getattr)
9340 (app_setattr, app_sign, app_auth, app_decipher, app_writecert)
9341 (app_writekey, app_genkey, app_change_pin, app_check_pin): Use it here.
9342 (app_do_with_keygrip): Force reselect on success.
9343 (app_new_register): Move setting of CURRENT_APPTYPE to ...
9344 (select_application): here so that it will be set to the requested
9346 * scd/command.c (open_card_with_request): Select additional
9347 application if possible.
9349 2019-06-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9351 spelling: Fix "synchronize"
9352 + commit d7d1ff45574ed935d07642964a529a358b11a1a7
9355 2019-06-21 Werner Koch <wk@gnupg.org>
9357 scd: Take the card look while running app->with_keygrip.
9358 + commit b304c006a3c9ba186fb2510859df7f02a0acad25
9359 * scd/app.c (app_do_with_keygrip): Lock the card.
9361 scd: Take the lock earlier in the function dispatchers.
9362 + commit 0400a4eb1782e7a4aea5b04492c93939c6b9799a
9363 * scd/app.c: Chnage all function dispatcher.
9365 scd: Add code to check whether app switching is possible.
9366 + commit 1b78e4951ed7a66ec71ca036e7680148a63143be
9367 * scd/app.c (check_conflict): Fold into ...
9368 (check_application_conflict): this and adjust callers. Return a
9369 different error code if it is possible to switch apps.
9371 scd: Track the currently selected app.
9372 + commit 91e2931caac9b914efa0a4524effaaa5948ebd00
9373 * scd/scdaemon.h (struct server_control_s): Add 'current_apptype'.
9374 * scd/command.c (scd_clear_current_app): New.
9375 * scd/app.c (app_new_register): Set it.
9376 (deallocate_card): Clear it.
9378 scd: Simplify inclusion of app-common.h.
9379 + commit 43dcf93407d6d2b87b6e7db74fd05fd237495bfe
9380 * scd/scdaemon.h: Include app-common.h. Remove inclusion of that
9381 header from all other files.
9382 (card_t, app_t): Move typedef to ...
9383 * scd/app-common.h: here. Use them in the defs.
9385 gpg: Very minor code cleanup.
9386 + commit 4256e9f0f1bf27ed2e93ca3890003ead208ef6df
9387 * g10/decrypt-data.c (decrypt_data): Remove superfluous test.
9389 scd: Use enums for cardtype and apptype.
9390 + commit 9551275857c1f9a75fee5736fa6c3cf361364f22
9391 * scd/app-common.h (cardtype_t): New.
9393 (struct card_ctx_s): Change type of cardtype.
9394 (struct app_ctx_s): Change type of apptype. Adjust all users.
9395 * scd/app.c (struct app_priority_list_s): Add field apptype.
9396 (strcardtype): New. Use as needed.
9397 (strapptype): New. Use as needed.
9399 2019-06-20 NIIBE Yutaka <gniibe@fsij.org>
9401 po: Update Japanese Translation.
9402 + commit 0ccb5ddef18f04b86855530838af4cbb9b8aa30b
9405 tools: Fix error handling for gpg-pair-tool.
9406 + commit d5287f43fd4def68901519a4c1d471b81ee86ed0
9407 * tools/gpg-pair-tool.c (read_message): Initialize ERR.
9409 2019-06-19 Werner Koch <wk@gnupg.org>
9411 scd: Split data structures into app and card related objects.
9412 + commit 5a5288d051a551a1a8f169225e62572f6ee8cb10
9413 * scd/app-common.h (struct card_ctx_s): New.
9414 (struct app_ctx_s): Factor card specific fields out to card_ctx_s.
9415 (app_get_slot): New.
9416 * scd/scdaemon.h (card_t): New.
9417 (struct server_control_s): Rename field app_ctx to card_ctx and change
9419 * scd/app-dinsig.c: Use app_get_slot and adjust for chang in card
9421 * scd/app-geldkarte.c: Ditto.
9422 * scd/app-nks.c: Ditto.
9423 * scd/app-openpgp.c: Ditto.
9424 * scd/app-p15.c: Ditto.
9425 * scd/app-sc-hsm.c: Ditto.
9426 * scd/app.c: Lost of changes to adjust for the changed data
9427 structures. Change all callers.
9428 (app_list_lock): Rename to card_list_lock.
9431 (lock_app): Rename to lock_card and change arg type.
9432 (unlock_app): Rename to unlock_card.
9433 (app_dump_state): Print card and app info.
9434 (app_reset): Rename to card_reset.
9435 (app_new_register): Change for the new data structure.
9436 (deallocate_card): Dealloc card and all apps.
9437 (app_ref): Rename to card_ref.
9438 (app_unref): Rename to card_unref.
9439 (app_unref_locked): Rename to card_unref_locked.
9440 (card_get_serialno): New.
9441 * scd/command.c (cmd_pkdecrypt): Actually use the looked up card and
9442 former app object and not the standard one from the context.
9444 2019-06-18 NIIBE Yutaka <gniibe@fsij.org>
9446 scd: KEYINFO: Send LF for --data.
9447 + commit c3dd53a65dc9ea2c4814e24079f0270c2fef14c6
9448 * scd/command.c (send_keyinfo): Send LF for --data.
9450 2019-06-17 Werner Koch <wk@gnupg.org>
9452 scd:piv: Add the do_with_keygrip feature.
9453 + commit e900bf29737b3f7a09f749a271f2c5d7b59c49eb
9454 * scd/app-piv.c (do_with_keygrip): New.
9455 (app_select_piv): Register function.
9457 scd: Add explict functions for 'app' reference counting.
9458 + commit c594dcfc93486cd26e193aa5c82bb8a8f30ab57b
9459 * scd/app.c (app_ref): New.
9461 (release_application): Renamed to ...
9462 (app_unref_locked): this and remove arg locked_already. Change
9463 callers to use this or app_ref.
9464 * scd/command.c (open_card_with_request):
9465 (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): Use app_ref and app_unref
9466 instead of accessing the counter directly.
9468 scd: Slight change to app->fnc.do_with_keygrip.
9469 + commit 70f7b262877b1e751d8557dc04a09a420e9d8a8f
9470 * scd/app-openpgp.c (do_with_keygrip): Return a real error code to
9471 avoid misinterpretation of the result. Also fix the case for a too
9474 scd: Use the correct gpg for the v1.0 OpenPGP card hack.
9475 + commit 479c2775d5df64432c1bf64faae7f9abd3042850
9476 * scd/app-openpgp.c (get_public_key): Use gnupg_module_name instead of
9479 2019-06-14 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9481 fix up 6562de7475b21cd03c7b1a83a591fa563c589f5b.
9482 + commit 6e46862abd2c2e82f245e381c3f08c5829fb61e6
9485 2019-06-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9487 doc/gpgsm: explain what "policy-file" refers to.
9488 + commit 6562de7475b21cd03c7b1a83a591fa563c589f5b
9489 A new user who sees "policy-file" and searches naively through the
9490 documentation to find it again won't be able to tell what this refers
9491 to, since "policies.txt" doesn't otherwise match the search string
9492 "policy". This gives them a fighting chance at finding the
9495 2019-06-07 NIIBE Yutaka <gniibe@fsij.org>
9497 gpgparsemail: Die on parse error, printing errno thing.
9498 + commit 1e9d61fb95e4813225a40f720231196abdb83992
9499 * tools/gpgparsemail.c (parse_message): Revert the change.
9500 * tools/rfc822parse.c (transition_to_body): Set ERRNO.
9501 (transition_to_header, insert_header): Likewise.
9503 2019-06-06 NIIBE Yutaka <gniibe@fsij.org>
9505 scd: Bring back --card-timeout option as deprecated.
9506 + commit 72fe8d652fce6cb9104bb07ef0fb811cbab3303a
9507 * doc/scdaemon.texi (card-timeout): Add.
9508 * scd/scdaemon.c (main): Revert the change.
9510 gpgparsemail: Die on parse error (not abort).
9511 + commit c13e459ffeffb8c5387c44b3c04bb92b7111a75b
9512 * tools/gpgparsemail.c (parse_message): Don't use ERRNO.
9513 * tools/rfc822parse.c (transition_to_body): Return -1.
9514 (transition_to_header, insert_header): Likewise.
9516 2019-06-04 Werner Koch <wk@gnupg.org>
9518 sm: Print a better diagnostic for encryption certificate selection.
9519 + commit 9bf650db022b6b65bbfa74c311cdc3e6b73d3b44
9520 * sm/certlist.c (gpgsm_add_to_certlist): Add diagnostic and fold two
9523 2019-06-04 NIIBE Yutaka <gniibe@fsij.org>
9525 g10: Block signals in g10_exit.
9526 + commit 537fbe13af6a70e105982c4b69c1bcc3908ffb08
9527 * g10/gpg.c (g10_exit): Block all signals before calling
9530 agent: Allow TERM="".
9531 + commit 0076bef2026a87c4c0e05bad7d322638b1de3f37
9532 * agent/call-pinentry.c (start_pinentry): When TERM is none,
9533 don't send OPTION ttytype to pinentry.
9535 agent: Add pinentry_loopback_confirm declaration.
9536 + commit 3a1bb0081087c0604ed681642114934ffe607fa1
9537 * agent/agent.h (pinentry_loopback_confirm): New.
9539 scd: Remove unsupported --card-timeout option.
9540 + commit 4262933ef6f7530b4ad55646250a6763de9bf103
9541 * doc/scdaemon.texi (card-timeout): Remove.
9542 * scd/scdaemon.c (main): Remove oCardTimeout handling.
9544 g10,agent: Support CONFIRM for --delete-key.
9545 + commit 20acc7c0226550530085a674ef1bb41ebfa39408
9546 * agent/call-pinentry.c (agent_get_confirmation): Add call of
9547 pinentry_loopback_confirm.
9548 (agent_popup_message_start): Likewise.
9549 (agent_popup_message_stop): Return if it's loopback mode.
9550 * agent/command.c (pinentry_loopback_confirm): New.
9552 * g10/call-agent.c (default_inq_cb): Support "CONFIRM" inquery
9553 when PINENTRY_MODE_LOOPBACK mode.
9554 (confirm_status_cb): New.
9555 (agent_delete_key): Supply confirm_status_cb to set the description
9556 string for confirmation.
9558 doc: Add a section for gpg-check-pattern.
9559 + commit eaf3b89d11156cc055644fc50761e1692e791e84
9560 * doc/Makefile.am: Add gpg-check-pattern.1.
9561 * doc/tools.texi (GPG-CHECK-PATTERN): New.
9563 2019-06-03 Werner Koch <wk@gnupg.org>
9565 Return better error code for some getinfo IPC commands.
9566 + commit f2ac6742d403a5a95d84ac7cdcf8913c39297bcb
9567 * agent/command.c (cmd_getinfo): Return GPG_ERR_FALSE as boolean False.
9568 * g13/server.c (cmd_getinfo): Ditto.
9569 * sm/server.c (cmd_getinfo): Ditto.
9571 2019-05-29 NIIBE Yutaka <gniibe@fsij.org>
9573 agent: Add A-flag for KEYINFO output for card.
9574 + commit 6790eaf9529209e36099d9520821a3b8ad02ccef
9575 * agent/command.c (do_one_keyinfo): Add ON_CARD argument to put
9577 (cmd_keyinfo): Call agent_card_keyinfo to offer additional information
9580 2019-05-28 Werner Koch <wk@gnupg.org>
9582 dirmngr: Allow for other hash algorithms than SHA-1 in OCSP.
9583 + commit 405f41007c35ef52bf85c7c2686dab01fdf2c950
9584 * dirmngr/ocsp.c (do_ocsp_request): Remove arg md. Add args r_sigval,
9585 r_produced_at, and r_md. Get the hash algo from the signature and
9586 create the context here.
9587 (check_signature): Allow any hash algo. Print a diagnostic if the
9588 signature does not verify.
9590 dirmngr: Improve finding OCSP cert.
9591 + commit 4699e294cc9e59f35262adca26ca291927acca9e
9592 * dirmngr/certcache.c (find_cert_bysubject): Add better debug output
9593 and try to locate by keyid.
9595 agent: Make an MD encoding function more robust.
9596 + commit a2a90717466a88756bbdc6b11577cfee061fc1a8
9597 * agent/pksign.c (do_encode_md): Use ascii_tolower and avoid
9598 uninitalized TMP in the error case.
9600 2019-05-28 NIIBE Yutaka <gniibe@fsij.org>
9602 agent: Remove unused agent_show_message.
9603 + commit 19415a265253a5ab72e79493d2f40c7e4441d81e
9604 * agent/call-pinentry.c (agent_show_message): Remove.
9605 * agent/genkey.c (take_this_one_anyway): Rename from
9606 take_this_one_anyway2. Remove a dead path calling agent_show_message.
9607 (check_passphrase_constraints): Use take_this_one_anyway.
9609 2019-05-27 Werner Koch <wk@gnupg.org>
9611 sm: Avoid confusing diagnostic for the default key.
9612 + commit 521e7d4644ed365ab2de3dfaa6c3728ca10ba79b
9613 * sm/certlist.c (cert_usage_p): Add arg 'silent' and change all
9615 (gpgsm_cert_use_sign_p): Add arg 'silent' and pass to cert_usage_p.
9617 * sm/sign.c (gpgsm_get_default_cert): Set SILENT when calling
9618 gpgsm_cert_use_sign_p
9620 gpg: Fixed i18n markup of some strings.
9621 + commit b6289af9738ddbc533defba0aefd950a9ca21ff1
9622 * g10/tofu.c: Removed some translation markups which either make no
9623 sense or are not possble.
9625 gpg: Allow deletion of subkeys with --delete-[secret-]key.
9626 + commit cc6069ac6ecd57dcbb808f28d54fd9f89dc55014
9627 * common/userids.c (classify_user_id): Do not set the EXACT flag in
9629 * g10/export.c (exact_subkey_match_p): Make static,
9630 * g10/delkey.c (do_delete_key): Implement subkey only deleting.
9632 2019-05-23 NIIBE Yutaka <gniibe@fsij.org>
9634 agent: Stop scdaemon after reload when disable_scdaemon.
9635 + commit 7158a5696dc84e1ebd2b523ab83a43a32423181d
9636 * agent/call-scd.c (agent_card_killscd): New.
9637 * agent/gpg-agent.c (agent_sighup_action): Call agent_card_killscd.
9639 g10: Copy expiredate from primary key when marked expired.
9640 + commit 265e6d670682e661cec89657c3330b0b388ca0a7
9641 * g10/getkey.c (merge_selfsigs): Update ->expiredate of subkey.
9643 2019-05-21 Werner Koch <wk@gnupg.org>
9645 gpg: Do not bail on an invalid packet in the local keyring.
9646 + commit 4c7d63cd5b02ebfd09933bebd1312e01958b3e20
9647 * g10/keydb.c (parse_keyblock_image): Treat invalid packet special.
9649 gpg: Do not allow creation of user ids larger than our parser allows.
9650 + commit 156788a43c20e38cd52f4f725395aff2c72142ff
9651 * g10/parse-packet.c: Move max packet lengths constants to ...
9652 * g10/packet.h: ... here.
9653 * g10/build-packet.c (do_user_id): Return an error if too data is too
9655 * g10/keygen.c (write_uid): Return an error for too large data.
9657 gpg: Unify the the use of the print_pubkey_info functions.
9658 + commit 126caa34bbdb36f40514643b9d6f5ead3240c735
9659 * g10/keylist.c (format_seckey_info): Remove.
9660 (print_pubkey_info, print_seckey_info): Remove.
9661 (format_key_info): New.
9662 (print_key_info): New.
9663 (print_key_info_log): New.
9664 * g10/card-util.c (current_card_status): Use print_key_info and remove
9665 the useless condition on KEYBLOCK.
9666 * g10/delkey.c (do_delete_key): Replace print_pubkey_info and
9667 print_seckey_info by print_key_info.
9668 * g10/keyedit.c (menu_addrevoker): Replace print_pubkey_info by
9670 * g10/pkclist.c (do_we_trust_pre): Ditto.
9671 * g10/revoke.c (gen_desig_revoke): Ditto.
9672 (gen_revoke): Ditto. Also use print_key_info_log instead of separate
9675 2019-05-21 NIIBE Yutaka <gniibe@fsij.org>
9677 scd: Fix for SCARD_IO_REQUEST structure.
9678 + commit 1eb93d9229c54baa5f1b7ccf7d105d3692c51a4d
9679 * scd/apdu.c (struct pcsc_io_request_s): Use pcsc_dword_t for Windows.
9681 agent: For SSH key, don't put NUL-byte at the end.
9682 + commit 479f7bf31ce405e558d844c3eb576b463a8697e5
9683 * agent/command-ssh.c (ssh_key_to_protected_buffer): Update
9684 the length by the second call of gcry_sexp_sprint.
9686 2019-05-20 Werner Koch <wk@gnupg.org>
9687 Matheus Afonso Martins Moreira
9689 gpg: Do not delete any keys if --dry-run is passed.
9690 + commit 110a4550179fd1faeee8d2f17a33ed7807a397ae
9691 * g10/delkey.c (do_delete_key): Don't delete the keyblock on dry runs.
9692 Do not clear the ownertrust. Do not let the agent delete the key.
9694 2019-05-17 Werner Koch <wk@gnupg.org>
9696 gpg: Fix using --decrypt along with --use-embedded-filename.
9697 + commit 386bacd9741639d7f5e83c81628d3cad78407197
9698 * g10/options.h (opt): Add flags.dummy_outfile.
9699 * g10/decrypt.c (decrypt_message): Set this global flag instead of the
9700 fucntion local flag.
9701 * g10/plaintext.c (get_output_file): Ignore opt.output if that was
9702 used as a dummy option aslong with --use-embedded-filename.
9704 gpg: Improve the photo image viewer selection.
9705 + commit 7e5847da0f3d715cb59d05adcd9107b460b6411b
9706 * g10/exec.c (w32_system): Add "!ShellExecute" special.
9707 * g10/photoid.c (get_default_photo_command): Use the new ShellExecute
9708 under Windows and fallbac to 'display' and 'xdg-open' in the Unix
9710 (show_photos): Flush stdout so that the output is shown before the
9713 2019-05-16 Werner Koch <wk@gnupg.org>
9715 kbx: Fix an endless loop under Windows due to an incomplete fix.
9716 + commit 6fc5df1e10129f3171d80cf731f310b9e8d97c26
9717 * kbx/keybox-search.c (keybox_search): We need to seek to the last
9718 position in all cases not just when doing a NEXT.
9720 gpgconf: Before --launch check that the config file is fine.
9721 + commit 50c2f76ae65d4ee793876865011fa97c85f38ac2
9722 * tools/gpgconf-comp.c (gc_component_launch): Check the conf file.
9723 * tools/gpgconf.c (gpgconf_failure): Call log_flush.
9725 scd: Remove unused cruft from GnuPG 1.x.
9726 + commit 79c99921e35921140c83d7c101829d95f038f3da
9727 * scd/apdu.c: Remove code used only by GnuPG 1.
9728 * scd/app-openpgp.c: Ditto.
9729 * scd/ccid-driver.c: Ditto.
9730 * scd/iso7816.c: Ditto.
9732 2019-05-16 NIIBE Yutaka <gniibe@fsij.org>
9734 agent,scd: Scan and load all public keys for availability.
9735 + commit dc35b25195e564affdea7969a7c4ea4e200ab45f
9736 * agent/divert-scd.c (ask_for_card): Scan by SERIALNO command.
9737 * scd/app-openpgp.c (do_with_keygrip): Make sure to load pubkey.
9739 2019-05-15 NIIBE Yutaka <gniibe@fsij.org>
9741 agent: Support scdaemon operation using KEYGRIP.
9742 + commit 1091f22511e1a8259eb5c998f5c207ee95723a4a
9743 * agent/agent.h (struct card_key_info_s): New.
9744 (divert_pksign, divert_pkdecrypt): New API.
9745 * agent/call-scd.c (card_keyinfo_cb): New.
9746 (agent_card_free_keyinfo, agent_card_keyinfo): New.
9747 * agent/divert-scd.c (ask_for_card): Having GRIP argument,
9748 ask scdaemon with agent_card_keyinfo.
9749 (divert_pksign, divert_pkdecrypt): Ditto.
9750 * agent/pkdecrypt.c (agent_pkdecrypt): Supply GRIP.
9751 * agent/pksign.c (agent_pksign_do): Ditto.
9753 scd: Don't put newline at the end of status.
9754 + commit 01730529f20882cd98882a61408e9bee960c86f1
9755 * scd/command.c (send_keyinfo): Remove newline.
9757 2019-05-15 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9759 gpg: enable OpenPGP export of cleartext keys with comments.
9760 + commit 392e59a3d487e174edcea570e69a0f946c55a19a
9761 * g10/export.c (cleartext_secret_key_to_openpgp): ignore trailing
9762 sublists in private-key S-expression.
9764 2019-05-15 Werner Koch <wk@gnupg.org>
9766 gpgconf: Support --homedir for --launch.
9767 + commit a4be077abdbf286e3dcdeb0553ba0e74b7e2df5f
9768 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Simplify because
9769 gnupg_homedir already returns abd absolute name.
9770 (scdaemon_runtime_change): Ditto.
9771 (dirmngr_runtime_change): Ditto.
9772 (gc_component_launch): Support --homedir.
9774 sm: Add a couple of debug calls to the keydb module.
9775 + commit 6e041b7b356c3adba714e98f4ecf0dd007375390
9776 * sm/gpgsm.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
9777 (DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
9778 * sm/gpgsm.c: new debug flags "lookup" and "clock"
9779 * sm/keydb.c: Add log_clock calls to most functions.
9780 (keydb_search_desc_dump): New.
9781 (keydb_search) [DBG_LOOKUP]: Print descrh decription.
9782 * sm/keylist.c (list_cert_std): Flush FP in debug mode to better
9783 syncronize the output with the debug output
9785 2019-05-15 NIIBE Yutaka <gniibe@fsij.org>
9787 scd: Fix return value for KEYINFO command.
9788 + commit 62c29af63203400947569c5965a8cf05a22fcd4c
9789 * scd/command.c (cmd_keyinfo): Return GPG_ERR_NOT_FOUND if none.
9791 2019-05-14 Werner Koch <wk@gnupg.org>
9793 kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.
9794 + commit 49b236af0ecbb6df67513feb4b63851f2e159ea2
9795 * kbx/keybox-init.c (keybox_lock) [W32]: Use _keybox_close_file
9796 instead of fclose so that a close is done if the file is opened by
9798 * kbx/keybox-search.c (keybox_search): Remember the last offset and
9799 use that in NEXT search mode if we had to re-open the file.
9801 sm: Change keydb code to use the keybox locking.
9802 + commit 22e274f839f9a6c9a511648f29cae497f6492c97
9803 * kbx/keybox-init.c (keybox_lock): New arg TIMEOUT. Change all
9804 callers to pass -1 when locking.
9805 * sm/keydb.c (struct resource_item): Remove LOCKANDLE.
9806 (struct keydb_handle): Add KEEP_LOCK.
9807 (keydb_add_resource): Use keybox locking instead of a separate dotlock
9808 for testing whether we can run a compress.
9809 (keydb_release): Reset KEEP_LOCK.
9810 (keydb_lock): Set KEEP_LOCK.
9811 (unlock_all): Take care of KEEP_LOCK.
9812 (lock_all): Use keybox_lock instead of dotlock fucntions.
9813 (keydb_delete): Remove arg UNLOCK.
9814 * sm/delete.c (delete_one): Adjust keydb_delete. Due to the KEEP_LOCK
9815 the keydb_release takes care of unlocking.
9817 2019-05-14 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9819 agent: correct length for uri and comment on 64-bit big-endian platforms
9820 + commit 5651b2c460a7898027c1765c2063c302606b5f85
9821 * agent/findkey.c (agent_public_key_from_file): pass size_t as int to
9822 gcry_sexp_build_array's %b.
9824 2019-05-14 Werner Koch <wk@gnupg.org>
9826 gpg: Do not print a hint to use the deprecated --keyserver option.
9827 + commit 7102d9b798b0985412007d3bf8b954959e4adec7
9828 * g10/keyserver.c (keyserver_search): Remove a specialized error
9831 2019-05-14 NIIBE Yutaka <gniibe@fsij.org>
9833 g10: Fix possible null dereference.
9834 + commit 802a2aa300bad3d4385d17a2deeb0966da4e737d
9835 * g10/armor.c (armor_filter): Access ->d in the internal loop.
9837 2019-05-13 Werner Koch <wk@gnupg.org>
9839 gpg: Change update_keysig_packet to replace SHA-1 by SHA-256.
9840 + commit 484d6ba5896acfa3dcf73d9536bcf5e006579b5f
9841 * g10/sign.c (update_keysig_packet): Convert digest algo when needed.
9843 gpg: Cleanup use of make_keysig_packet.
9844 + commit d07666412d4317460c6f03b3ffd03edf4a715ef7
9845 * g10/sign.c (make_keysig_packet): Remove obsolete arg diegst_algo
9846 which was always passed as 0. Change all callers.
9848 * g10/gpgcompose.c (signature): Warn when trying to set a digest algo.
9850 2019-05-13 NIIBE Yutaka <gniibe@fsij.org>
9852 build: Update m4/iconv.m4.
9853 + commit 1cd2aca03b8807c6f8e4929ace462bb606dcd53f
9854 * m4/iconv.m4: Update from gettext 0.20.1.
9856 2019-05-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9858 doc: correct documentation for gpgconf --kill.
9859 + commit 9662538be6afc8beee0f2654f9a8f234c5dac016
9860 * doc/tools.texi(gpgconf): Correct documentation for gpgconf --kill.
9862 2019-05-07 Werner Koch <wk@gnupg.org>
9864 agent: If a Label is make sure that label is part of the prompt.
9865 + commit 69e0b080f06b66eee96327617c6fbffe8a88d586
9866 * agent/findkey.c (has_comment_expando): New.
9867 (agent_key_from_file): Modify DESC_TEXT.
9869 agent: Allow the use of "Label:" in a key file.
9870 + commit 5388537806411c19ea84db8c4419f410be9ac616
9871 * agent/findkey.c (linefeed_to_percent0A): New.
9872 (read_key_file): Add optional arg 'keymeta' and change all callers.
9873 (agent_key_from_file): Prefer "Label:" over the comment for protected
9876 common: New functions nvc_delete_named and nvc_get_string.
9877 + commit b5985d0ca21ca376f22c050857bfda05592cebef
9878 * common/name-value.c (nvc_delete_named): New.
9879 (nvc_get_string): New.
9881 2019-05-07 NIIBE Yutaka <gniibe@fsij.org>
9883 scd: Support direct use of app with PKSIGN/PKAUTH/PKDECRYPT.
9884 + commit c856ee7312c9eeb7d79a30189a49f70986420364
9885 * scd/command.c (cmd_pksign, cmd_pkauth, cmd_pkdecrypt): When length
9886 of keyidstr is 40, it is considered as a keygrip for direct use.
9888 2019-05-03 Werner Koch <wk@gnupg.org>
9890 agent: Put Token lines into the key files.
9891 + commit bdf252e76ada0056bec2ee7940255f32552328c5
9892 * agent/findkey.c (write_extended_private_key): Add args serialno and
9893 keyref. Write a Token line if that does not yet exist.
9894 (agent_write_private_key): Add args serialno and keyref and change all
9896 (agent_write_shadow_key): Skip leading spaces.
9897 * agent/keyformat.txt: Improve extended key format docs.
9899 common: In private key mode write "Key:" always last in name-value.
9900 + commit c9fa28bfad297b17e76341ffb40383ce92da5d44
9901 * common/name-value.c (nvc_write): Take care of Key. Factor some code
9903 (write_one_entry): new.
9905 gpg: Use just the addrspec from the Signer's UID.
9906 + commit bd6ecbb8f8e92fe4a7fed40fcf470eb83bda0927
9907 * g10/parse-packet.c (parse_signature): Take only rthe addrspec from a
9908 Signer's UID subpacket.
9910 2019-04-30 Werner Koch <wk@gnupg.org>
9912 sm: Add yet inactive options to support authenticode.
9913 + commit 5f3864fb647237f862bbe7e26763dffa0e945202
9914 * sm/gpgsm.c (opts): New options --authenticode and --attribute.
9915 * sm/gpgsm.h (opt): Add vars authenticode and attribute_list.
9916 * sm/sign.c (add_signed_attribute): New but inactive.
9917 (gpgsm_sign): Use new options.
9919 2019-04-29 Andre Heinecke <aheinecke@gnupg.org>
9921 common,w32: Breakaway detached childs when in job.
9922 + commit 03df28b18b92b3fd3d2ba1000903c088dc5b0fcf
9923 * common/exechelp-w32.c (gnupg_spawn_process_detached): Add
9924 CREATE_BREAKAWAY_FROM_JOB creation flag if required.
9926 2019-04-25 NIIBE Yutaka <gniibe@fsij.org>
9928 scd: Add new command: KEYINFO.
9929 + commit 874bc970ba6ec243ff474ef090242e0f7be6a7bc
9930 * scd/app-common.h (struct app_ctx_s): Add with_keygrip function.
9931 * scd/app-openpgp.c (do_with_keygrip): New.
9932 * scd/app.c (app_do_with_keygrip): New.
9933 * scd/command.c (cmd_keyinfo): New.
9934 (send_keyinfo): New.
9936 2019-04-23 NIIBE Yutaka <gniibe@fsij.org>
9938 po: Update Japanese Translation.
9939 + commit d5443b918dd3b8ccb3c4fdd8fe9d70d84aa312ff
9942 scd: Allow KEYGRIP as KEYIDSTR.
9943 + commit e769609cd3c12d2e26955538399172016f78d2d4
9944 * scd/app-openpgp.c (struct app_local_s): Add keygrip_str.
9945 (store_keygrip): New.
9946 (read_public_key): Call store_keygrip to hold keygrip.
9947 (get_public_key): Likewise.
9948 (send_keypair_info): Use stored keygrip_str.
9949 (check_keyidstr): Allow use of KEYGRIP.
9950 (do_check_pin): Allow use of KEYGRIP of signing slot.
9952 2019-04-22 NIIBE Yutaka <gniibe@fsij.org>
9954 scd: Factor out a function to check keyidstr.
9955 + commit b0f0791e4ade845b2a0e2a94dbda4f3bf1ceb039
9956 * scd/app-openpgp.c (check_keyidstr): New.
9957 (do_sign, do_auth, do_decipher, do_check_pin): Use check_keyidstr.
9959 2019-04-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9961 gpgconf: correct capitalization of "Tor"
9962 + commit ea7d85ff658c000f5f469e0a869af0e512e8c59f
9963 * tools/gpgconf-comp.cb (gc_options_dirmngr): correct capitalization
9966 2019-04-18 Andre Heinecke <aheinecke@intevation.de>
9968 g10: Fix double free when locating by mbox.
9969 + commit e57954ed278cb5e6e725005b1ecaf7ce70006ce0
9970 * g10/getkey.c (get_best_pubkey_byname): Set new.uid always
9973 2019-04-17 NIIBE Yutaka <gniibe@fsij.org>
9975 g10: Fix a memory leak.
9976 + commit a861f9343d6e6d18064e4e54aeb914c5a10b2095
9977 * g10/import.c (import): Care PNDING_PKT on error.
9979 2019-04-16 NIIBE Yutaka <gniibe@fsij.org>
9981 common: Fix AWK portability.
9982 + commit b6f0b0efa19e0434024bc16e246032b613fd448a
9983 * common/Makefile.am: Use pkg_namespace.
9984 * common/mkstrtable.awk: Use pkg_namespace. Regexp fix.
9986 2019-04-13 Werner Koch <wk@gnupg.org>
9988 gpg: New caching functions.
9989 + commit 64a5fd37271a3e454c0d59ac3500e1a1b232e4f7
9990 * g10/objcache.c: New.
9991 * g10/objcache.h: New.
9992 * g10/Makefile.am (common_source): Add them.
9993 * g10/gpg.c: Include objcache.h.
9994 (g10_exit): Call objcache_dump_stats.
9995 * g10/getkey.c: Include objcache.h.
9996 (get_primary_uid, release_keyid_list): Remove.
9997 (cache_user_id): Remove.
9998 (finish_lookup): Call the new cache_put_keyblock instead of
10000 (get_user_id_string): Remove code for mode 2.
10001 (get_user_id): Implement using cache_get_uid_bykid.
10003 2019-04-12 Werner Koch <wk@gnupg.org>
10005 gpg: Cache a once computed fingerprint in PKT_public_key.
10006 + commit 60f384592144de53c9a5f5e11d7f73ce863aa94f
10007 * g10/packet.h (PKT_public_key): Add fields fpr and fprlen.
10008 * g10/keyid.c (do_fingerprint_md): Remove.
10009 (compute_fingerprint): New.
10010 (keyid_from_pk): Simplify.
10011 (fingerprint_from_pk): Simplify.
10012 (hexfingerprint): Avoid using extra array.
10014 2019-04-11 Werner Koch <wk@gnupg.org>
10016 gpg: Accept also armored data from the WKD.
10017 + commit 1b1f649deaeba963ed7240b27f848004db0b051f
10018 * g10/keyserver.c (keyserver_import_wkd): Clear NO_ARMOR.
10020 gpg: Set a limit of 5 to the number of keys imported from the WKD.
10021 + commit 40595b57936e39ee2a4d58b1dd19edea7537a471
10022 * g10/import.c (import): Limit the number of considered keys to 5.
10023 (import_one): Return the first fingerprint in case of WKD.
10025 2019-04-11 Andre Heinecke <aheinecke@gnupg.org>
10027 speedo,w32: Install gpg-card.exe.
10028 + commit b30351496dd3056462c8db25c03fed6d2aa00e9b
10029 * build-aux/speedo/w32/inst.nsi: Install gpg-card.exe
10031 2019-04-05 Werner Koch <wk@gnupg.org>
10033 gpg: Fix printing of the user id during import.
10034 + commit ea32842d5c2e2d262d32791130d7eae5c8c3edcf
10035 * g10/getkey.c (struct keyid_list): Add field fprlen.
10036 (cache_user_id): Set and test it.
10037 (get_user_id_byfpr): Make static, add arg fprlen and use it.
10038 (get_user_id_byfpr_native): Add arg fprlen and change all callers.
10040 2019-04-04 Werner Koch <wk@gnupg.org>
10042 scd:piv: Fix RSA decryption.
10043 + commit 958172cc3acb7172bc5e1fa76efafe26695ed402
10044 * scd/app-piv.c (do_decipher): Fixup leading zero byte.
10046 2019-04-04 NIIBE Yutaka <gniibe@fsij.org>
10048 scd: Better handling of timeout and time extension.
10049 + commit f1cf799a37f320d33cae445c74f3fc1936dd9995
10050 * scd/ccid-driver.c (CCID_CMD_TIMEOUT_LONGER): Remove.
10051 (ccid_transceive): Don't use x4 blindly for bBWI, but use dynamically
10052 determined value. Use value from variable wait_more for bulk_in.
10053 Set wait_more by the value of time extension request.
10055 2019-04-03 Werner Koch <wk@gnupg.org>
10057 gpg: Improve the code to decrypt using PIV cards.
10058 + commit 2c9b68f28de1ce9a6a18d091caba01ddd4707774
10059 * g10/call-agent.c (agent_scd_keypairinfo): Add arg 'keyref'.
10060 * g10/keygen.c (ask_algo): Adjust.
10061 * g10/skclist.c (enum_secret_keys): Request the keyref directly.
10063 scd: New options --info and --info-only for READKEY.
10064 + commit 679b8f1c045476bd6e0a1f1565379263143994ee
10065 * scd/command.c (cmd_readkey): New options --info and --info-only.
10066 * scd/app.c (app_readkey): New arg 'flags'.
10067 * scd/app-common.h (APP_READKEY_FLAG_INFO): New.
10068 (struct app_ctx_s): New args 'ctrl' and 'flags' for member readkey.
10069 Change all implementers.
10070 * scd/app-nks.c (do_readkey): Stub implementation of
10071 APP_READKEY_FLAG_INFO.
10072 * scd/app-openpgp.c (do_readkey): Implement APP_READKEY_FLAG_INFO.
10073 * scd/app-piv.c (do_readkey): Ditto.
10075 gpg: Allow decryption using PIV cards.
10076 + commit ec6a6779236a89d4784a6bb7de0def9cc0f9e8a4
10077 * g10/call-agent.c (struct getattr_one_parm_s): New.
10078 (getattr_one_status_cb): New.
10079 (agent_scd_getattr_one): New.
10080 * g10/pubkey-enc.c (get_it): Allow the standard leading zero byte from
10082 * g10/skclist.c (enum_secret_keys): Handle non-OpenPGP cards.
10084 scd: New standard attributes $ENCRKEYID and $SIGNKEYID.
10085 + commit 2b1135cf920cf3d863813d60f032d476dcccfb58
10086 * g10/call-agent.c (agent_scd_keypairinfo): Use --keypairinfo.
10087 * sm/call-agent.c (gpgsm_agent_scd_keypairinfo): Ditto.
10088 * scd/app-openpgp.c (do_getattr): Add attributes "$ENCRKEYID" and
10090 * scd/app-piv.c (do_getattr): Ditto.
10092 gpg: Avoid endless loop if a card's serial number can't be read.
10093 + commit 1f688e0d1dba4dd7a311d416d06d654ed7b4290d
10094 * g10/skclist.c (enum_secret_keys): Move list forward on error.
10096 card: Allow card selection with LIST.
10097 + commit bcca3acb87c36213fef9311236ea949d006f759c
10098 * tools/card-call-scd.c (start_agent): Request serialno only whean
10100 (scd_serialno): Allow NULL for r_serialno.
10101 * tools/gpg-card.c (cmd_factoryreset): Use changed scd_serialno.
10103 (dispatch_command): Use cmd_list for cmdLIST.
10104 (interactive_loop): Ditto.
10106 gpg: Print modern style key info for non-decryptable keys.
10107 + commit 2d3392c147a24e49ee4658d4a50fafd68599fba3
10108 * g10/mainproc.c (print_pkenc_list): Simplify.
10110 2019-04-02 Werner Koch <wk@gnupg.org>
10112 gpg: Allow direct key generation from card with --full-gen-key.
10113 + commit a480182f9d7ec316648cb64248f7a0cc8f681bc3
10114 * g10/call-agent.c (agent_scd_readkey): New.
10115 * g10/keygen.c (ask_key_flags): Factor code out to ..
10116 (ask_key_flags_with_mask): new.
10117 (ask_algo): New mode 14.
10119 common: Extend function pubkey_algo_string.
10120 + commit f952226043824cbbeb8517126b5266926121c4e8
10121 * common/sexputil.c (pubkey_algo_string): Add arg R_ALGOID.
10122 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Adjust.
10123 * tools/gpg-card.c (list_one_kinfo): Ditto.
10125 dirmngr: Improve domaininfo cache update algorithm.
10126 + commit e100ace7f8a729bbe30d9f4ed157a7a229a04eb0
10127 * dirmngr/domaininfo.c (struct domaininfo_s): Add field keepmark.
10128 (insert_or_update): Implement new update algorithm.
10130 2019-04-01 Werner Koch <wk@gnupg.org>
10132 sm: Show the usage flags when generating a key from a card.
10133 + commit 9ed1aa56c4bbf44e00b731d6807ada9e95c91bd7
10134 * g10/call-agent.c (scd_keypairinfo_status_cb): Also store the usage
10136 * sm/call-agent.c (scd_keypairinfo_status_cb): Ditto.
10137 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Print the usage flags.
10139 gpg: Prepare card code to allow other than OpenPGP cards.
10140 + commit e47524c34a2a9f53c2507f67a0b41b460cee78b7
10141 * g10/call-agent.c (start_agent): Use card app auto selection.
10142 * g10/card-util.c (current_card_status): Print the Application type.
10143 (card_status): Put empty line between card listings.
10145 gpg: New card function agent_scd_keypairinfo.
10146 + commit 0fad61de159acf39e38a04f28f162f0beb0e77d6
10147 * g10/call-agent.c (scd_keypairinfo_status_cb)
10148 (agent_scd_keypairinfo): New. Taken from gpgsm.
10150 gpg: Remove two unused card related functions.
10151 + commit 334b16b868e771b983263ed20c200869e7e51198
10152 * g10/call-agent.c (inq_writekey_parms): Remove.
10153 (agent_scd_writekey): Remove.
10154 (agent_clear_pin_cache): Remove this stub.
10156 gpg: Remove unused arg in a card related function.
10157 + commit 3a4534d82682f69788da3cf4a445e38fbaf6b98e
10158 * g10/call-agent.c (agent_scd_setattr): Remove unused arg serialno.
10160 2019-03-29 Werner Koch <wk@gnupg.org>
10162 dirmngr: Better for error code for http status 413.
10163 + commit 21b674097442a54ae889a90d708639b257ba43db
10164 * dirmngr/ks-engine-hkp.c (send_request): New case for 413.
10165 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
10166 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
10168 2019-03-28 Werner Koch <wk@gnupg.org>
10170 scd: New option --application-priority.
10171 + commit 97feef8ee94a5e1cb9daba82f108eb62122c7910
10172 * scd/scdaemon.c (oApplicationPriority): New.
10173 (opts): Add "application_priority".
10174 (main): Process option.
10175 * scd/app.c (app_update_priority_list): New.
10176 (get_supported_applications): Take apps from global list.
10178 * tools/gpgconf-comp.c (gc_options_scdaemon): Add option.
10180 card: For passwd add a PIV menu and make the OpenPGP menu optional.
10181 + commit 80c069b5e1ad6fbd547de59f332eb3fabb68c572
10182 * tools/gpg-card.c (get_selection): New.
10183 (cmd_passwd): Reworked.
10185 card: Allow "yubikey disable" only for Yubikey-5 and later.
10186 + commit 2f761251c5730a9ad113fa58466addc9c2372da8
10187 * tools/card-yubikey.c (yubikey_commands): Add new arg INFO and test
10189 * tools/gpg-card.c (cmd_yubikey): Pass info to yubikey_commands.
10191 2019-03-27 Werner Koch <wk@gnupg.org>
10193 scd: Support reading the Yubikey 4 firmware version.
10194 + commit 5a3055eb722e61126748e83564e1bba42807d722
10195 * scd/app.c (app_new_register): Detect yk4 version numbers.
10197 2019-03-27 Trevor Bentley <trevor@yubico.com>
10199 gpg: Don't use EdDSA algo ID for ECDSA curves.
10200 + commit 4324560b2c0bb76a1769535c383424a042e505ae
10201 * g10/keygen.c (ask_curve): Change algo ID to ECDSA if it changed from
10204 2019-03-26 Werner Koch <wk@gnupg.org>
10206 sm: Allow decryption even if expired other keys are configured.
10207 + commit aa58d2a49b3d416d9d6a0691a89f2bc8bc8649ad
10208 * sm/gpgsm.c (main): Add special handling for bad keys in decrypt
10211 agent: Allow other ssh fingerprint algos in KEYINFO.
10212 + commit 3c7a1f3aea7f6e8137a93ef2166ff329688f5445
10213 * agent/command.c (cmd_keyinfo): Allow for --ssh-fpr=ALGO. Default to
10216 2019-03-25 Werner Koch <wk@gnupg.org>
10218 wkd: New command --print-wkd-url for gpg-wks-client.
10219 + commit 70c97a862aa586c314a64190d1e489a272e552ea
10220 * tools/gpg-wks-client.c (aPrintWKDURL): New.
10221 (opts): Add option.
10223 * tools/wks-util.c (wks_cmd_print_wkd_url): New.
10225 2019-03-25 Andre Heinecke <aheinecke@gnupg.org>
10227 sm, w32: Translate logger and status fd to handles.
10228 + commit e4e0804ed123516fa00f8a876a862b2c6d34ba5c
10229 * sm/gpgsm.c (main): Call translate_sys2libc_fd_int to
10232 2019-03-25 NIIBE Yutaka <gniibe@fsij.org>
10234 libdns: Don't use _[A-Z] which are reserved names.
10235 + commit 8d1b5982138c104f3c50663738892fa110193059
10236 * dirmngr/dns.c: Use the identifiers of "*_instance" instead of
10239 2019-03-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10241 doc: fix formatting error.
10242 + commit b30528f48780c9917ec8ba3b3d163fba5c740d92
10245 2019-03-22 Werner Koch <wk@gnupg.org>
10247 wkd: New command --print-wkd-hash for gpg-wks-client.
10248 + commit e847cf1df7aa55ac2af7efd39ca05882258acbfe
10249 * tools/gpg-wks-client.c (aPrintWKDHash): New.
10250 (opts) : Add "--print-wkd-hash".
10251 (main): Implement that command.
10252 (proc_userid_from_stdin): New.
10253 * tools/wks-util.c (wks_fname_from_userid): Add option HASH_ONLY.
10254 (wks_cmd_print_wkd_hash): New.
10256 scd: Refactor the app selection code.
10257 + commit 393269948c883afb770bb536f03045254d13b911
10258 * scd/app.c (app_priority_list): New.
10260 2019-03-18 Andre Heinecke <aheinecke@gnupg.org>
10262 speedo: Fix installer build with NSIS-3.
10263 + commit b98799ce964df1743478dc3d0cc503f51c4b6733
10264 * build-aux/speedo.mk: Add charset for nsis 3.
10266 2019-03-18 Werner Koch <wk@gnupg.org>
10268 gpg: Allow import of PGP desktop exported secret keys.
10269 + commit 5205512fc092c53c0a52c8379ef2a129ce6e58a9
10270 * g10/import.c (NODE_TRANSFER_SECKEY): New.
10271 (import): Add attic kludge.
10272 (transfer_secret_keys): Add arg only_marked.
10273 (resync_sec_with_pub_keyblock): Return removed seckeys via new arg
10275 (import_secret_one): New arg r_secattic. Change to take ownership of
10276 arg keyblock. Implement extra secret key import logic. Factor some
10278 (do_transfer): New.
10279 (import_matching_seckeys): New.
10281 2019-03-15 Werner Koch <wk@gnupg.org>
10283 gpg: Avoid importing secret keys if the keyblock is not valid.
10284 + commit f799e9728bcadb3d4148a47848c78c5647860ea4
10285 * g10/keydb.h (struct kbnode_struct): Replace unused field RECNO by
10287 * g10/kbnode.c (alloc_node): Change accordingly.
10288 * g10/import.c (import_one): Add arg r_valid.
10289 (sec_to_pub_keyblock): Set tags.
10290 (resync_sec_with_pub_keyblock): New.
10291 (import_secret_one): Change return code to gpg_error_t. Return an
10292 error code if sec_to_pub_keyblock failed. Resync secret keyblock.
10294 gpg: During secret key import print "sec" instead of "pub".
10295 + commit f64477db86568bdc28c313bfeb8b95d8edf05a3c
10296 * g10/keyedit.c (show_basic_key_info): New arg 'print_sec'. Remove
10297 useless code for "sub" and "ssb".
10298 * g10/import.c (import_one): Pass FROM_SK to show_basic_key_info. Do
10299 not print the first keyinfo in FROM_SK mode.
10302 gpg: Simplify an interactive import status line.
10303 + commit f06b6fe47f56a15ac426665c3d9661d4b104696f
10304 * g10/cpr.c (write_status_printf): Escape CR and LF.
10305 * g10/import.c (print_import_check): Simplify by using
10306 write_status_printf and hexfingerprint.
10308 gpg: Fix recently introduced use after free.
10309 + commit 3e1f3df6183b2ed2cadf2af2383063891e2c53bd
10310 * g10/mainproc.c (proc_plaintext): Do not use freed memory.
10312 2019-03-14 Werner Koch <wk@gnupg.org>
10314 kbx: Unify the fingerprint search modes.
10315 + commit bdda31a26bc69b6ee72e964510db113645de76ef
10316 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_FPR16)
10317 (KEYDB_SEARCH_MODE_FPR20, KEYDB_SEARCH_MODE_FPR32): Remove. Switch
10318 all users to KEYDB_SEARCH_MODE_FPR along with the fprlen value.
10320 gpg: Make rfc4880bis the default.
10321 + commit caf4b3fc16e97eb175c46f45f5770d02becb862d
10322 * g10/gpg.c (set_compliance_option, main): Change CO_GNUPG to include
10323 rfc4880bis features.
10324 (main): Change rfc4880bis warning to a note.
10326 gpg: Implement v5 keys and v5 signatures.
10327 + commit 01c87d4ce23bc9fc44ec5301c2c6bf2ce615c375
10328 * g10/build-packet.c (gpg_mpi_write): New optional arg
10329 R_NWRITTEN. Allow NULL for OUT. Change all callers.
10330 (do_key): Support v5 keys.
10331 (build_sig_subpkt_from_sig): Support 32 byte fingerprints.
10332 * g10/parse-packet.c (parse_signature): First try to set the keyid
10333 from the issuer fingerprint.
10334 (parse_key): Support v5 keys.
10335 (create_gpg_control): Better make sure to always allocate the static
10336 size of the struct in case future compilers print warnings.
10337 * g10/keyid.c (hash_public_key): Add v5 support.
10338 (keyid_from_pk): Ditto.
10339 (keyid_from_fingerprint): Ditto.
10340 (fingerprint_from_pk): Ditto.
10341 * g10/keygen.c (KEYGEN_FLAG_CREATE_V5_KEY): New.
10342 (pVERSION, pSUBVERSION): New.
10343 (add_feature_v5): New.
10344 (keygen_upd_std_prefs): Call it.
10345 (do_create_from_keygrip): Add arg keygen_flags and support the v5
10347 (common_gen): Support the v5 flag.
10348 (parse_key_parameter_part): New flags v4 and v5.
10349 (parse_key_parameter_string): Add args for version and subversion.
10350 (read_parameter_file): New keywords "Key-Version" and
10352 (quickgen_set_para): Add arg 'version'.
10353 (quick_generate_keypair, generate_keypair): Support version parms.
10354 (do_generate_keypair): Support v5 key flag.
10355 (generate_subkeypair): Ditto.
10356 (generate_card_subkeypair): Preparse for keyflags.
10357 (gen_card_key): Ditto.
10358 * g10/sig-check.c (check_signature2): Add args extrahash and
10360 (check_signature_end): Ditto.
10361 (check_signature_end_simple): Ditto. Use them.
10362 * g10/mainproc.c (proc_plaintext): Put extra hash infor into the
10364 (do_check_sig): Add args extrahas and extrahashlen and pass them on.
10365 (issuer_fpr_raw): Support 32 byte fingerprint.
10366 (check_sig_and_print): get extra hash data and pass it on.
10368 kbx: Add support for 32 byte fingerprints.
10369 + commit f40e9d6a528521d12795e1a6cc15c849b216be92
10370 * common/userids.c (classify_user_id): Support 32 byte fingerprints.
10371 * kbx/keybox-search-desc.h (KEYDB_SEARCH_MODE_FPR32): New.
10372 (struct keydb_search_desc): Add field fprlen.
10373 * kbx/keybox-defs.h (struct _keybox_openpgp_key_info): Add field
10374 version and increase size of fpr to 32.
10375 * kbx/keybox-blob.c: Define new version 2 for PGP and X509 blobs.
10376 (struct keyboxblob_key): Add field fprlen and increase size of fpr.
10377 (pgp_create_key_part_single): Allow larger fingerprints.
10378 (create_blob_header): Implement blob version 2 and add arg want_fpr32.
10379 (_keybox_create_openpgp_blob): Detect the need for blob version 2.
10380 * kbx/keybox-search.c (blob_get_first_keyid): Support 32 byte
10382 (blob_cmp_fpr): Ditto.
10383 (blob_cmp_fpr_part): Ditto.
10384 (has_fingerprint): Add arg fprlen and pass on.
10385 (keybox_search): Support KEYDB_SEARCH_MODE_FPR32 and adjust for
10386 changed has_fingerprint.
10387 * kbx/keybox-openpgp.c (parse_key): Support version 5 keys.
10388 * kbx/keybox-dump.c (_keybox_dump_blob): Support blob version 2.
10390 * g10/delkey.c (do_delete_key): Support KEYDB_SEARCH_MODE_FPR32.
10391 * g10/export.c (exact_subkey_match_p): Ditto.
10392 * g10/gpg.c (main): Ditto.
10393 * g10/getkey.c (get_pubkey_byfprint): Adjust for changed
10394 KEYDB_SEARCH_MODE_FPR.
10395 * g10/keydb.c (keydb_search_desc_dump): Support
10396 KEYDB_SEARCH_MODE_FPR32 and adjust for changed KEYDB_SEARCH_MODE_FPR.
10397 (keydb_search): Add new arg fprlen and change all callers.
10398 * g10/keyedit.c (find_by_primary_fpr): Ditto.
10399 * g10/keyid.c (keystr_from_desc): Ditto.
10400 * g10/keyring.c (keyring_search): Ditto.
10401 * g10/keyserver.c (print_keyrec): Ditto.
10402 (parse_keyrec): Ditto.
10403 (keyserver_export): Ditto.
10404 (keyserver_retrieval_screener): Ditto.
10405 (keyserver_import): Ditto.
10406 (keyserver_import_fprint): Ditto.
10407 (keyidlist): Ditto.
10408 (keyserver_get_chunk): Ditto.
10410 * g10/keydb.c (keydb_search): Add new arg fprlen and change all
10413 * sm/keydb.c (keydb_search_fpr): Adjust for changed
10414 KEYDB_SEARCH_MODE_FPR.
10416 gpg: Implemented latest rfc4880bis version 5 packet hashing.
10417 + commit a21ca3a1eff4722dea778cca4abe14a873ccebdf
10418 * configure.ac (AC_CHECK_SIZEOF): Test size_t.
10419 * g10/sig-check.c (check_signature_end_simple): Support v5 signatures
10420 as per current rfc4880bis. For correctness also allow for N > 2^32.
10421 * g10/sign.c (pt_extra_hash_data_t): New.
10422 (hash_sigversion_to_magic): New arg EXTRAHASH.
10423 (write_plaintext_packet): New arg R_EXTRAHASH.
10424 (write_signature_packets): Pass EXTRAHASH.
10425 (sign_file): Ditto.
10426 (sign_symencrypt_file): Ditto.
10428 2019-03-14 NIIBE Yutaka <gniibe@fsij.org>
10430 Fix the previous commit.
10431 + commit f199b627ce512c8495af5c9bd1c81127ccde3ca0
10432 * g10/ecdh.c (kek_params_table): Revert the change.
10433 * scd/app-openpgp.c (ecdh_params): Use CIPHER_ALGO_AES256
10436 2019-03-13 NIIBE Yutaka <gniibe@fsij.org>
10438 g10: Fix symmetric cipher algo constant for ECDH.
10439 + commit af3efd149f555d36a455cb2ea311ff81caf5124c
10440 * g10/ecdh.c (kek_params_table): Use CIPHER_ALGO_AES192 for
10441 ECC strength 384, according to RFC-6637.
10443 2019-03-11 Werner Koch <wk@gnupg.org>
10445 dirmngr: Avoid testing for Tor with --gpgconf-list.
10446 + commit 9f37e93dd741a5436ff412955628806ae84725ca
10447 * dirmngr/dirmngr.c (post_option_parsing): Do not call set_tor_mode.
10448 (dirmngr_sighup_action): Call it here.
10449 (main): Call it here unless in --gpgconf-list mode.
10451 2019-03-07 Werner Koch <wk@gnupg.org>
10453 common: Minor rework of tty_get.
10454 + commit b7de105e0a836bd4d7bd558f8e699d88ab0cafec
10455 * common/ttyio.c (do_get): Re-indent and remove the checking for char
10456 values larger than 0xa0. Use explicy control character checking.
10458 dirmngr: Add CSRF protection exception for protonmail.
10459 + commit 134c3c16523b1a267ebdd2df6339240fd9e1e3b3
10460 * dirmngr/http.c (same_host_p): Add exception table.
10462 2019-03-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10464 gpgv: Improve documentation for keyring choices.
10465 + commit 096c2aa705f85289ff8b610da1dd9181e4c904fd
10466 * doc/gpgv.texi: Improve documentation for keyring choices
10468 2019-03-06 Werner Koch <wk@gnupg.org>
10470 gpgtar: Make option -C work for archive creation.
10471 + commit b3a7a5140784b5a015107b5c5c73b15ae44e71dc
10472 * tools/gpgtar-create.c (gpgtar_create): Switch to the -C directory.
10474 agent: Re-introduce --enable-extended-key-format.
10475 + commit 91ae3e7fb66271691f6fe507262a62fc7e2663a3
10476 * agent/gpg-agent.c (oEnableExtendedKeyFormat): Re-introduce.
10477 (parse_rereadable_options): Handle it in a special way.
10478 * agent/protect.c (agent_protect): Be safe and set use_ocb only to 1
10480 * tools/gpgconf-comp.c: Add --enable-extended-key-format again.
10482 gpgtar: Improve error messages.
10483 + commit 72feb8fa8280aba674573a1afc955a92e8065242
10484 * tools/gpgtar.h (struct tarinfo_s): New.
10485 * tools/gpgtar.c (cmd, skip_crypto, files_from, null_names): Move
10486 global vars more to the top.
10487 (set_cmd): Rename 'cmd' to 'c'.
10488 * tools/gpgtar-list.c (parse_header): Add arg 'info' and improve error
10490 (read_header): Add arg 'info' and update counter.
10491 (skip_data): Ditto.
10492 (gpgtar_list): Pass info object to read functions.
10493 (gpgtar_read_header): Add arg 'info'.
10494 * tools/gpgtar-extract.c (gpgtar_extract): add arg 'info' and pass on.
10495 (extract_regular): Add arg 'info' and update counter.
10497 agent: Default to extended key format.
10498 + commit 05eff1f6623c272fcabd4e238842afc832710324
10499 * agent/gpg-agent.c (oDisableExtendedKeyFormat, oNoop): New.
10500 (oEnableExtendedKeyFormat): Remove.
10501 (opts): Make --enable-extended-key-format a dummy option. Add
10502 disable-extended-key-format.
10503 (parse_rereadable_options): Implement oDisableExtendedKeyFormat.
10505 card: Allow PEM encoded certificates in "writecert".
10506 + commit 4e1f04a4cd30859507218395e630e886801ae2b7
10507 * tools/gpg-card.c (cmd_writecert): Convert from base64.
10509 card: Print the keyref also for non-initialized slots.
10510 + commit 772bba34ea089b3a00f0b1ea5138ba7422c95180
10511 * tools/gpg-card.c (list_one_kinfo): Add arg label_keyref and change
10514 2019-03-06 NIIBE Yutaka <gniibe@fsij.org>
10516 agent: Fix detection of exit of scdaemon.
10517 + commit 2abad7585a004586e27ead6ab8c9c57ce5ed1326
10518 * agent/call-scd.c (start_scd): Acquire START_SCD_LOCK for
10519 SCD_LOCAL_LIST. Move common case code to fast path.
10520 Release START_SCD_LOCK before calling unlock_scd.
10521 When new CTX is allocated, clear INVALID flag.
10522 (agent_reset_scd): Serialize the access to SCD_LOCAL_LIST by
10525 2019-03-05 Werner Koch <wk@gnupg.org>
10527 card: Print card version. Check for bad Yubikeys.
10528 + commit 8d4af54ddd039d47e9c4803559193fcca97f0a46
10529 * scd/app.c (app_new_register): Set card version for Yubikeys.
10530 (app_write_learn_status): Print CARDVERSION and APPVERSION.
10531 * tools/card-call-scd.c (learn_status_cb): Detect them.
10532 * tools/gpg-card.h (struct card_info_s): Add appversion and
10534 * tools/gpg-card.c (list_openpgp): Remove version printing from serial
10536 (print_a_version): New.
10537 (list_card): Print card and app version.
10538 (cmd_generate): Do not allow broken Yubikeys.
10540 scd: Rename a shared info field name.
10541 + commit 64caa6a08298119b10dc36ddd27b357cb47825b5
10542 * scd/app-piv.c (app_select_piv):
10543 * scd/app-common.h (struct app_ctx_s): Rename 'card_version' to
10544 'cardversion'. Rename all users. Add 'appversion'.
10546 scd:piv: Implement import of private keys for Yubikeys.
10547 + commit e897e1e255ef9870dfd1639d6f4e97bdf4e83b34
10548 * scd/app-piv.c (concat_tlv_list): Add arg 'secure' and adjust
10550 (writekey_rsa, writekey_ecc): New.
10551 (do_writekey): New.
10552 (do_writecert): Provide a better error message for an empty cert.
10553 (app_select_piv): Register do_writekey.
10554 * scd/iso7816.c (iso7816_send_apdu): New.
10555 * scd/app-common.h (APP_WRITEKEY_FLAG_FORCE): New.
10556 * agent/command.c (cmd_keytocard): Make the timestamp optional.
10557 * tools/card-call-scd.c (inq_writekey_parms): Remove.
10558 (scd_writekey): Rewrite.
10559 * tools/gpg-card.c (cmd_writekey): New.
10560 (enum cmdids): Add cmdWRITEKEY.
10561 (dispatch_command, interactive_loop): Call cmd_writekey.
10563 gpg: Make invalid primary key algos obvious in key listings.
10564 + commit db87132b10664718b7db6ec1dad584b54d1fb265
10565 * g10/keylist.c (print_key_line): Print a warning for invalid algos.
10567 agent: Minor change to the KEYTOCARD command.
10568 + commit bcc89a6df24c79690436340f65c7ab13c65c2c45
10569 * agent/command.c (cmd_keytocard): Make timestamp optional. Use
10570 modern parser function.
10571 * agent/call-scd.c (agent_card_writekey): Rename an arg and for
10572 clarity return gpg_error_t instead of int.
10573 * agent/divert-scd.c (divert_writekey): Ditto.
10575 2019-03-01 Werner Koch <wk@gnupg.org>
10577 sm: Print Yubikey attestation extensions with --dump-cert.
10578 + commit 86c241a8c9a952ea8007066b70b04f435e2e483e
10579 * sm/keylist.c (oidtranstbl): Add Yubikey OIDs.
10580 (OID_FLAG_HEX): New.
10581 (print_hex_extn): New.
10582 (list_cert_raw): Make use of that flag.
10584 scd:piv: Add feature to read Yubikey attestation certificates.
10585 + commit 51df13d9ec8e89c4236e2f4a9ae3647963c30783
10586 * scd/app-piv.c (do_readcert): Add hack to read Yubikey attestaions.
10588 scd:piv: Allow writecert to only write matching certs.
10589 + commit 696d4c290dd4945b693263721f606b5049b9569d
10590 * scd/app-piv.c (do_readkey): Read the key from the cert here instead
10591 of letting the upper layer do this.
10592 (do_writecert): Check that the cert matches the key and that a key has
10593 already been generated.
10595 card: Remove the "admin" command.
10596 + commit 280baee72dcb0ca54ce99b524bc2125cbc38e0e4
10597 * tools/gpg-card.c (cmd_passwd): Remove arg allow_admin.
10598 (enum cmdids): Rename cmdAUTHENTICATE to cmdAUTH and cmdFACTORYRESET
10600 (cmds): Remove column 'admin_only'.
10601 (interactive_loop): Remove admin_only stuff.
10603 2019-02-28 Werner Koch <wk@gnupg.org>
10605 sm: Don't mark a cert as de-vs compliant if it leads to SHA-1 sigs.
10606 + commit 2c75af9f65d15653ed1bc191f1098ae316607041
10607 * sm/keylist.c (print_compliance_flags): Also check the diges_also.
10609 2019-02-27 NIIBE Yutaka <gniibe@fsij.org>
10611 agent: PKSIGN should return signature in same format for card.
10612 + commit 0173b249cfb7f02f94911ec759630d81f312e0bd
10613 * agent/pksign.c (agent_pksign_do):
10615 2019-02-26 Werner Koch <wk@gnupg.org>
10617 scd: Simplify the app_readkey parameters.
10618 + commit c2235d994dbb1d7ddba20f89a7c02f4a27b0610c
10619 * scd/app-help.c (app_help_pubkey_from_cert): New.
10620 * scd/command.c (cmd_readkey): Refactor to use that new function and
10621 handle the --advanced flag only here.
10622 * scd/app.c (app_readkey): Remove parm advanced.
10623 * scd/app-common.h (struct app_ctx_s): Remove parm advanced from the
10625 * scd/app-nks.c (do_readkey): Adjust for removed parm.
10626 * scd/app-piv.c (do_readkey): Ditto.
10627 * scd/app-openpgp.c (do_readkey): Ditto.
10629 conf: New option --show-socket.
10630 + commit ac485b4f253ad6bbd2bc648650b56d60fc82f89d
10631 * tools/gpgconf-comp.c (gc_component_t): Move this enum to ...
10632 * tools/gpgconf.h: here.
10633 * tools/gpgconf.c (oShowSocket): New.
10634 (opts): Add new option.
10635 (main): Implement new option.
10637 2019-02-26 NIIBE Yutaka <gniibe@fsij.org>
10639 libdns: Avoid using compound literals (8).
10640 + commit 371ae25f8f6f2d1ac030bf984bca479393a5ed43
10641 * dirmngr/dns.h (dns_quietinit): Remove.
10642 (dns_hints_i_new): Remove.
10644 libdns: Avoid using compound literals (7).
10645 + commit d661acd483236d34720a4959fc816d05f89c2cb7
10646 * dirmngr/dns.h (DNS_OPTS_INIT, dns_opts): Remove.
10647 * dirmngr/dns-stuff.c (libdns_res_open): Use zero-ed, and initialized
10648 automatic variable for opts.
10649 * dirmngr/dns.c (send_query, resolve_query, resolve_addrinfo):
10652 libdns: Avoid using compound literals (6).
10653 + commit 6501e59d3685bb58753c9caea729a4b0eca3942a
10654 * dirmngr/dns.h (dns_rr_i_new): Remove.
10655 (dns_rr_i_init): Remove unused second argument.
10656 * dirmngr/dns.c (dns_p_dump, dns_hints_query, print_packet)
10657 (parse_packet): Use automatic variable for struct dns_rr_i.
10658 (dns_d_cname): No need to call dns_rr_i_init after memset 0.
10659 (dns_rr_i_init): Remove unused second argument. Return nothing.
10660 * dirmngr/dns-stuff.c (resolve_addr_libdns, get_dns_cert_libdns)
10661 (getsrv_libdns): Follow the change of dns_rr_i_init.
10663 libdns: Avoid using compound literals (5).
10664 + commit a1ccfe2b37847cce0db2fb94a7365c9fa501eda4
10665 * dirmngr/dns.h (dns_rr_foreach): Don't use dns_rr_i_new.
10666 Call dns_rr_grep with NULL.
10667 * dirmngr/dns.c (dns_rr_grep): Support NULL for error_.
10669 libdns: Avoid using compound literals (4).
10670 + commit 7313a112f9c7ada61d24285313d2e2d069a672e8
10671 * dirmngr/dns.h (dns_d_new*): Remove.
10672 * dirmngr/dns.c (parse_packet): Use dns_d_init with automatic
10674 (parse_domain): Likewise.
10676 libdns: Avoid using compound literals (3).
10677 + commit 72efb7840258808cd892b90d871ea1cc1c31d7f5
10678 * dirmngr/dns.h (dns_p_new): Remove.
10679 * dirmngr/dns.c (dns_hosts_query): Use dns_p_init with automatic
10681 (dns_hints_query, dns_res_glue, parse_packet, query_hosts)
10682 (send_query, show_hints, echo_port): Likewise.
10684 libdns: Avoid using compound literals (2).
10685 + commit 455ef62d29a112de05897139716265d07e4c6ae3
10686 * dirmngr/dns.h (dns_strsection1, dns_strsection3): Remove.
10687 (dns_strclass1, dns_strclass3): Remove.
10688 (dns_strtype1, dns_strtype3): Remove.
10689 (dns_strsection, dns_strclass, dns_strtype): Directly use the
10691 * dirmngr/dns.c (dns_strsection): Use automatic variable.
10692 (dns_strclass, dns_strtype): Likewise.
10694 libdns: Avoid using compound literals.
10695 + commit 1c405499388fd5bed0968ab5c6c5d1b3373537b9
10696 * dirmngr/dns.c (dns_inet_pton, dns_so_tcp_keep): Use automatic
10698 (dns_poll, dns_send_nopipe): Likewise, adding const qualifier.
10700 2019-02-25 Werner Koch <wk@gnupg.org>
10702 scd: PIV: Always require a PIN for signing with 9C.
10703 + commit a481d17432bf7cca19ca71b6aa5ccd9aee2b3baa
10704 * scd/app-piv.c (verify_chv): Add arg 'force'.
10705 (do_sign): Use force for 0x9c.
10707 card: Rename gpg-card-tool to gpg-card.
10708 + commit 28de5c0ea53373c56a4405fe6b08d194682dd1de
10709 * tools/card-tool-keys.c: Rename to card-keys.c.
10710 * tools/card-tool-misc.c: Rename to card-misc.c.
10711 * tools/card-tool-yubikey.c: Rename to card-yubikey.c.
10712 * tools/card-tool.h: Rename to gpg-card.h.
10713 * tools/gpg-card-tool-w32info.rc: Rename to gpg-card-w32info.rc
10714 * doc/card-tool.texi: Rename top gpg-card.texi
10716 agent: Fix for suggested Libgcrypt use.
10717 + commit a12c3a566e2e4b10bc02976a2819070877ee895c
10718 * agent/divert-scd.c (divert_pkdecrypt): Skip a flags parameter.
10720 2019-02-25 NIIBE Yutaka <gniibe@fsij.org>
10722 gpgscm: Build well even if NDEBUG defined.
10723 + commit e140c6d4f581be1a60a34b67b16430452f3987e8
10724 * gpgscm/scheme.c (gc_reservation_failure): Fix adding ";".
10725 [!NDEBUG] (scheme_init_custom_alloc): Don't init seserved_lineno.
10727 2019-02-22 NIIBE Yutaka <gniibe@fsij.org>
10729 scd: internal driver: Submit SET_INTERFACE control transfer.
10730 + commit 611faf1579a56925994d53eb08e1290a4b3958cf
10731 * scd/ccid-driver.c (ccid_open_usb_reader): Alway submit SET_INTERFACE
10734 2019-02-21 Werner Koch <wk@gnupg.org>
10736 sm: Fix certificate creation with key on card.
10737 + commit c1000c673814e552923cf1361346d7dfeee55608
10738 * sm/certreqgen.c (create_request): Fix for certmode.
10740 card: Print usage info for each key.
10741 + commit 7317aeb3f448c98dcfa9c04f49b9a69d81c26776
10742 * tools/card-call-scd.c (learn_status_cb): Handle extended
10744 * tools/card-tool.h (struct key_info_s): Add field 'usage'.
10745 * tools/gpg-card-tool.c (list_one_kinfo): Show usage flags.
10747 scd: Extend KEYPAIRINFO by key usage info.
10748 + commit 5e21ef2d556ca65b7869bf16ab465f3511601e1e
10749 * scd/app-openpgp.c (send_keypair_info): Append usage string.
10750 * scd/app-piv.c (struct data_object_s): Remove column 'binary'. Add
10752 (dump_all_do): Adjust for removed 'binary'.
10753 (send_keypair_and_cert_info): Append usage string.
10755 card: Print the keyref in the listing.
10756 + commit 3384ba6c1c421cfa674dbd8294dc655d7320534e
10757 * tools/gpg-card-tool.c (list_one_kinfo): Print the keyref.
10759 scd: Don't let the "undefined" app cause a conflict error.
10760 + commit 5ecc7a02609dde65096ddb12e0ff8f6bce3b774a
10761 * scd/app.c (check_conflict): Ignore "undefined".
10763 sm: Prepare algo mapping to handle values > 255.
10764 + commit d7a54ca461ad75e4fab77a2f1b25986c7637762a
10765 * sm/misc.c (transform_sigval): Allow for larger values of MDALGO and
10768 2019-02-21 NIIBE Yutaka <gniibe@fsij.org>
10770 scd: Clear CHV status on timeout error.
10771 + commit 2013cb5ee667610de35f8b92c2f979f5caa09d4c
10772 * scd/app-openpgp.c (clear_chv_status): New.
10773 (do_change_pin): Use clear_chv_status.
10774 (do_sign): Call clear_chv_status on GPG_ERR_TIMEOUT.
10775 (do_auth, do_decipher): Likewise.
10777 scd: Handle ack button timeout as GPG_ERR_TIMEOUT.
10778 + commit bd15aa34ab8ad10adbb7540a8845b4a2600437b6
10779 * scd/apdu.h (SW_ACK_TIMEOUT): New.
10780 * scd/iso7816.c (map_sw): Return GPG_ERR_TIMEOUT for SW_ACK_TIMEOUT.
10782 tests: Add "disable-scdaemon" in gpg-agent.conf.
10783 + commit 64b7c6fd1945bc206cf56979633dfca8a7494374
10784 * tests/openpgp/defs.scm: Add "disable-scdaemon". Remove
10785 "scdaemon-program".
10786 * tests/gpgme/gpgme-defs.scm, tests/gpgsm/gpgsm-defs.scm: Likewise.
10787 * tests/inittests, tests/pkits/inittests: Add "disable-scdaemon"
10789 2019-02-19 NIIBE Yutaka <gniibe@fsij.org>
10791 agent: Terminate pinentry process gracefully, by watching socket.
10792 + commit c395f8315362793409be54aca630ce6e903ea984
10793 * agent/call-pinentry.c (watch_sock): New.
10794 (do_getpin): Spawn the watching thread.
10796 agent: Minor change for pinentry status handling.
10797 + commit 99aa54323f97937613e02d8c2da91544e1fe7bcf
10798 * agent/call-pinentry.c (struct entry_parm_s): Add status.
10799 (do_getpin): Use param->status.
10800 (agent_askpin): Copy param->status. to pininfo.
10802 agent: Factor out the getpin interaction.
10803 + commit ada797f477f923bee36d67c8e49f728ae7adb9e9
10804 * agent/call-pinentry.c (do_getpin): New.
10805 (agent_askpin, agent_get_passphrase): Use do_getpin.
10807 2019-02-18 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
10809 sm: Support generation of card-based ed25519 CSR.
10810 + commit 3cbdf896e6919333b5423001ab58c01a04363386
10811 * sm/call-agent.c (gpgsm_scd_pksign): Allow SHA512. Create proper
10812 S-expression for EdDSA signature.
10813 * sm/certreqgen.c (create_request): Force use of SHA512 when
10814 using a ed25519 key.
10815 * sm/misc.c (transform_sigval): Insert OID for ed25519.
10817 2019-02-15 Damien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>
10819 sm: Support generation of card-based ECDSA CSR.
10820 + commit 74e9b579ca273fc07be090bb5fb7800a97b1b452
10821 * sm/call-agent.c (gpgsm_scd_pksign): Identify type of signing key
10822 and format resulting S-expression accordingly.
10823 * sm/misc.c (transform_sigval): Support ECDSA signatures.
10825 2019-02-14 Ingvar Hagelund <ingvar@redpill-linpro.com>
10827 po: Correct a simple typo in the Norwegian translation.
10828 + commit b89f1790e0b9f3196a2382a9b9ff5f461c58a449
10831 2019-02-13 Werner Koch <wk@gnupg.org>
10833 card: New command "yubikey".
10834 + commit 7e1cd2cd416f852fc039af310e3df1ce395d89a9
10835 * tools/card-tool-yubikey.c: New.
10836 * tools/Makefile.am (gpg_card_tool_SOURCES): Add it.
10837 * tools/card-call-scd.c (scd_apdu): Allow returning data.
10838 * tools/card-tool-misc.c (send_apdu): New. Move from gpg-card-tool.c
10839 and let it return data. Change all callers.
10841 * tools/gpg-card-tool.c (cmd_writecert): Prepend the certref with the
10842 current application type.
10843 (cmd_yubikey): New.
10845 2019-02-11 Werner Koch <wk@gnupg.org>
10847 scd: Implement decryption for PIV cards.
10848 + commit 43b14b4cc227311aa77b1fc1d9577c5f7d3eda86
10849 * scd/app-piv.c (do_decipher): New.
10851 scd: For PIV cards used NO_AUTH instead of BAD_PIN.
10852 + commit b2838694402ce0cfc2ef70451bf0e6677b875ca9
10853 * common/util.h (GPG_ERR_NO_AUTH, GPG_ERR_BAD_AUTH): Add replacement
10854 codes for gpgrt < 1.36.
10855 * scd/app-piv.c (auth_adm_key):
10856 (do_genkey, do_writecert): Use better error codes.
10858 2019-02-08 Werner Koch <wk@gnupg.org>
10860 scd: Implement RSA signing for PIV cards.
10861 + commit 53beea56afecde76f0f4ca93fc50ca59298a093e
10862 * scd/app-piv.c (concat_tlv_list): New.
10863 (get_key_algorithm_by_dobj): Rename args for clarity.
10864 (do_auth): factor all code out to ...
10865 (do_sign): new. Implement RSA signing.
10867 sm: In --gen-key with "key from card" show also the algorithm.
10868 + commit 0328976c94adc2c518c7a7763a35319a0000c5e2
10869 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Get and show algo.
10871 common: Provide function to get public key algo names in our format.
10872 + commit 03bf8e967adb2dd13329ba1089deb419d49e55c0
10873 * tools/card-tool-misc.c (pubkey_algo_string): Move to ...
10874 * common/sexputil.c (pubkey_algo_string): here.
10876 card: Make "generate" work for PIV cards.
10877 + commit a1cb4a940f308ba21ecc002b044efccf0c547784
10878 * tools/card-call-scd.c (scd_genkey_cb): Make createtime optional.
10879 (scd_genkey_cb): Ditto. Add arg algo.
10880 * tools/gpg-card-tool.c (cmd_generate): Add options and factor card
10881 specific code out to ...
10882 (generate_openpgp, generate_generic): new functions.
10884 scd: Allow generating ECC curves on PIV cards.
10885 + commit b349adc5c0d00d2fc405a45bd078f1580b5610cc
10886 * scd/app-piv.c (genkey_parse_ecc): New.
10887 (get_keygrip_by_tag): Call that one.
10888 (do_readkey): Call that one.
10889 * scd/command.c (cmd_genkey): Add option --algo.
10891 common: New functions get_option_value and ascii_strupr.
10892 + commit e2f18023b3b3b7e55b35218f65e37448d1011172
10893 * common/server-help.c (get_option_value): New.
10894 * common/stringhelp.c (ascii_strupr): New.
10896 2019-02-07 Werner Koch <wk@gnupg.org>
10898 card: Print the used algorithm of all keys.
10899 + commit b79bc877f2ad4d08e7de377cf4bf616b981b3c5f
10900 * tools/card-call-scd.c (scd_readkey): New.
10901 * tools/card-tool-misc.c (pubkey_algo_string): New.
10902 * tools/gpg-card-tool.c (list_one_kinfo): Print the algo.
10904 card: Fix a NULL-ptr deref in key listings.
10905 + commit df6ba6dfd235fddb7645bc16573da1a6a7e6b49d
10906 * tools/card-tool-keys.c (get_matching_keys): Fix segv.
10907 * tools/gpg-card-tool.c (main): Init info.
10909 scd: Store a new PIV public key in the certificate DO.
10910 + commit 5bf1212000f48243642ace0f708fd27446879b9e
10911 * scd/app-piv.c (struct genkey_result_s): Remove type and all users.
10912 (send_keypair_and_cert_info): Print certinfo only if we got a cert..
10913 (readcert_by_tag): Add arg r_mechanism and implement reading of public
10915 (get_keygrip_by_tag): Use a public key to compute the keygrip.
10916 (do_readcert): Make sure to only return a certificate.
10917 (do_readkey): Read public key from the DO if a certificate is missing.
10918 (get_key_algorithm_by_dobj): Get the algorithm also from a public key.
10919 (does_key_exist): String changes.
10920 (do_genkey): Remove result caching and store public key in the DO.
10922 card: Support reading and writing PIV certificates.
10923 + commit fcec5b40e589b2ef201efb89f22a952feb4a9069
10924 * scd/app-piv.c (add_tlv): New.
10926 (do_writecert): New.
10927 (do_setattr): Remove usused special mode 0.
10928 * tools/gpg-card-tool.c (cmd_writecert): Allow other cards than
10930 (cmd_readcert): Ditto.
10932 2019-02-06 Werner Koch <wk@gnupg.org>
10934 scd: Add genkey command to app-piv (rsa-only)
10935 + commit b5b1f721582df9d0379cb68b4faeceed32a56e49
10936 * scd/app-piv.c (struct genkey_result_s): new.
10937 (struct app_local_s): add member genkey_results.
10938 (do_deinit): Free that one.
10939 (flush_cached_data): Extend to delete all items.
10940 (keyref_from_dobj): New.
10942 (do_auth): Use keyref_from_dobj.
10943 (does_key_exist): New.
10944 (genkey_parse_rsa): New.
10947 scd: Make app_genkey and supporting ISO function more flexible.
10948 + commit 9a9cb0257aebb1480b999fdf9d90904083eb8e3c
10949 * scd/app.c (app_genkey): Add arg keytype.
10950 * scd/app-common.h (struct app_ctx_s): Fitto for the genkey member.
10951 * scd/command.c (cmd_genkey): Adjust for change.
10952 * scd/iso7816.c (do_generate_keypair): Replace arg read_only by new
10954 (iso7816_read_public_key): Adjust for this.
10955 (iso7816_generate_keypair): Add new args p1 and p2.
10956 * scd/app-openpgp.c (do_genkey): Adjust for changes.
10958 scd: Fix parameter name of app_change_key.
10959 + commit c26af8ac263ea006ed32e110a09271e4bfbf1f37
10960 * scd/app-common.h (APP_GENKEY_FLAG_FORCE): New.
10961 * scd/app.c (app_change_pin): Rename arg reset_mode to flags and
10962 change from int to unsigned int.
10964 scd: Implement PIN changing and unblocking for PIV cards.
10965 + commit e9e876cb5572670322aa1d3462d64c75c03974d9
10966 * scd/app-piv.c: Some refactoring
10967 (do_change_chv): Implement.
10969 2019-02-05 Werner Koch <wk@gnupg.org>
10971 scd: Allow standard keyref scheme for app-openpgp.
10972 + commit 3231ecdafd71ac47b734469b07170756979ede72
10973 * scd/app-openpgp.c (do_change_pin): Allow prefixing the CHVNO with
10975 * tools/card-call-scd.c (scd_change_pin): Change API to use strings.
10976 * tools/gpg-card-tool.c (cmd_passwd): Adjust for change.
10977 (cmd_unblock): Ditto.
10979 2019-01-31 Werner Koch <wk@gnupg.org>
10981 card: Implement non-interactive mode.
10982 + commit 1c0fa3e6f74692d5e9b5f08cda523f0fcec305eb
10983 * tools/card-tool.h (opt): Add field 'initialized'.
10984 * tools/card-call-scd.c (scd_learn): Set it.
10985 * tools/gpg-card-tool.c (main): Reworked.
10986 (dispatch_command): New.
10988 card: New command 'authenticate'.
10989 + commit da383257404cde9689bc58259ef3f46e9903bf34
10990 * tools/card-tool-misc.c (hex_to_buffer): New.
10991 * tools/gpg-card-tool.c (get_data_from_file): Change to allow returning
10993 (cmd_authenticate): New.
10994 (cmds): Add command "authenticate".
10996 scd: Add DES authentication for PIV card.
10997 + commit 1d57450f3e71b198e66e155a8ebbfab452f58ffc
10998 * scd/app-piv.c (flush_cached_data): New.
10999 (auth_adm_key): New.
11000 (set_adm_key): New.
11002 * scd/command.c (MAXLEN_SETATTRDATA): New.
11003 (cmd_setattr): Add an inquire option.
11005 2019-01-30 Werner Koch <wk@gnupg.org>
11007 card: Cache the results from gpg and gpgsm.
11008 + commit 0107984f9f55f84e4842642bceefd2181ec09dab
11009 * tools/card-tool-keys.c (keyblock_cache): New var.
11010 (release_keyblock): Factor code out to a new do_release_keyblock. Add
11012 (flush_keyblock_cache): New.
11013 (get_matching_keys): Use the cache.
11014 * tools/gpg-card-tool.c (cmds): Add command "reset".
11015 (interactive_loop): Implement reset.
11017 card: Print matching OpenPGP and X.509 data.
11018 + commit 833f27a6a7e059e38bccaf360f05e72e4403545a
11019 * tools/card-tool-keys.c: New.
11020 * tools/Makefile.am (gpg_card_tool_SOURCES): Add file.
11021 * tools/card-tool.h (struct pubkey_s, pubkey_t): New.
11022 (struct userid_s, userid_t): New.
11023 (struct keyblock_s, keyblock_t): New.
11024 * common/util.h (GNUPG_PROTOCOL_): New const
11025 * tools/gpg-card-tool.c (aTest): Add temporary command.
11026 (list_one_kinfo): Print info from gpg and gpgsm.
11028 gpg: Emit an ERROR status if no key was found with --list-keys.
11029 + commit 140fda8c61422ec055c3f7e214cc35706c4320dd
11030 * g10/keylist.c (list_one): Emit status line.
11032 common: Add kludge to allow silencing gnupg_exec_tool_stream.
11033 + commit 1fd3d864b4eceaf45b33e754e5d832b7ccc0d17f
11034 * common/exectool.c (read_and_log_buffer_t): Take care of a --quiet
11036 (gnupg_exec_tool_stream): Ditto.
11038 gpg: Allow generating Ed25519 key from an existing key.
11039 + commit 346a98fabe03adf2e202e36fc2aa24b1c2571154
11040 * g10/misc.c (map_pk_gcry_to_openpgp): Add EdDSA mapping.
11042 common: New function decode_c_string.
11043 + commit 6ecedd0b25b6b1a33be63b99f2a8256370000521
11044 * common/miscellaneous.c (decode_c_string): New.
11046 2019-01-29 Werner Koch <wk@gnupg.org>
11048 gpg: Implement searching keys via keygrip.
11049 + commit c128667b3cba749dd14262e032d4c260a2b0acd3
11050 * kbx/keybox-defs.h (struct _keybox_openpgp_key_info): Add field grip.
11051 * kbx/keybox-openpgp.c (struct keyparm_s): New.
11052 (keygrip_from_keyparm): New.
11053 (parse_key): Compute keygrip.
11054 * kbx/keybox-search.c (blob_openpgp_has_grip): New.
11055 (has_keygrip): Call it.
11057 common: Provide some convenient OpenPGP related constants.
11058 + commit f382984966a31a4cbe572bce5370590c5490ed1e
11059 * common/openpgpdefs.h (OPENPGP_MAX_NPKEY): New.
11060 (OPENPGP_MAX_NSKEY): New.
11061 (OPENPGP_MAX_NSIG): New.
11062 (OPENPGP_MAX_NENC): New.
11063 * g10/packet.h: Define PUBKEY_MAX using the new consts.
11065 common: New helper functions for OpenPGP curve OIDs.
11066 + commit 4a1558d0c7190cf13d35385e47291a7aa121be3e
11067 * common/openpgp-oid.c (openpgp_oidbuf_to_str): Factor most code out
11069 (openpgp_oidbuf_to_str): new.
11070 (openpgp_oidbuf_is_ed25519): New.
11071 (openpgp_oidbuf_is_cv25519): New.
11073 card: Support factory reset for Yubikey PIV application.
11074 + commit 79bed504e51034d960fcb858fb643901cad85913
11075 * scd/app-common.h (struct app_ctx_s): Add field cardtype.
11076 * scd/app.c (app_new_register): Set cardtype for yubikey.
11077 (app_getattr): Add CARDTYPE.
11078 (app_write_learn_status): Emit new attribute.
11079 * scd/app-piv.c (do_getattr): Add CHV-USAGE.
11080 (do_learn_status): Emit it.
11081 * tools/card-tool.h (struct card_info_s): Add field cardtype.
11082 * tools/card-call-scd.c (learn_status_cb): Parse "CARDTYPE".
11084 * tools/gpg-card-tool.c (list_piv): Print PIN usage policy.
11085 (list_card): Print card type.
11086 (cmd_factoryreset): Implement for Yubikey with PIV.
11088 card: Print keyinfo for PIV cards.
11089 + commit 9325c92284bb346d11c3591bb2ea88095989361a
11090 * scd/app-piv.c (do_learn_status): Print CHV-STATUS.
11091 * tools/card-tool.h (struct card_info_s): Rename chvretry to chvinfo.
11092 * tools/card-call-scd.c (learn_status_cb): Depend CHV-STATUS on app
11094 * tools/gpg-card-tool.c (list_piv): New.
11096 card: Make printing of key information more flexible.
11097 + commit 237880175f59d372011cd2e20bb49726eeccf058
11098 * tools/card-tool-misc.c: New.
11099 * tools/card-tool.h: Rewored data structures for key infos.
11100 * tools/gpg-card-tool.c: Ditto.
11101 * tools/card-call-scd.c: Ditto.
11103 2019-01-28 NIIBE Yutaka <gniibe@fsij.org>
11105 agent: Clear bogus pinentry cache, when it causes an error.
11106 + commit 02a2633a7f0b7d91aa48ea615fb3a0edfd6ed6bb
11107 * agent/agent.h (PINENTRY_STATUS_*): Expose to public.
11108 (struct pin_entry_info_s): Add status.
11109 * agent/call-pinentry.c (agent_askpin): Clearing the ->status
11110 before the loop, let the assuan_transact set ->status. When
11111 failure with PINENTRY_STATUS_PASSWORD_FROM_CACHE, it returns
11113 * agent/findkey.c (unprotect): Clear the pinentry cache,
11114 when it causes an error.
11116 2019-01-27 Werner Koch <wk@gnupg.org>
11118 card: Implement the bulk of OpenPGP stuff into gpg-card-tool.
11119 + commit 1c9251004592415b27988064ae20504dd1c37f57
11120 * tools/card-call-scd.c: New.
11121 * tools/card-tool.h: new.
11122 * tools/gpg-card-tool.c: Largely extended.
11124 2019-01-26 Werner Koch <wk@gnupg.org>
11126 gpg: Fix just changed agent_get_s2k_count.
11127 + commit 54f88afba4564e62e51fe6e22beabbdee75f91ac
11128 * g10/call-agent.c (agent_get_s2k_count): Actually return the count.
11130 gpg: Move S2K encoding function to a shared file.
11131 + commit ec13b1c562e34c0fcbc7b848ab6dc187b79cf2c1
11132 * g10/passphrase.c (encode_s2k_iterations): Move function to ...
11133 * common/openpgp-s2k.c: new file. Remove default intialization code.
11134 * common/openpgpdefs.h (S2K_DECODE_COUNT): New to keep only one copy.
11135 * g10/call-agent.c (agent_get_s2k_count): Change to return the count
11136 and print an error.
11137 * agent/protect.c: Include openpgpdefs.h
11138 * g10/card-util.c (gen_kdf_data): Adjust for changes
11139 * g10/gpgcompose.c: Include call-agent.h.
11140 (sk_esk): Adjust for changes.
11141 * g10/passphrase (passphrase_to_dek): Adjust for changes.
11142 * g10/main.h (S2K_DECODE_COUNT): Remove macro.
11144 2019-01-25 Werner Koch <wk@gnupg.org>
11146 scd: Improve app selection for app "undefined".
11147 + commit 0415b80227c52620bece3ae7502f38f24a23e59d
11148 * scd/app.c (app_new_register): Don't bail out early in undefined
11151 scd: Fix flushing of CA-FPR data objects.
11152 + commit c9f4c1f0de06672c6ae2b793d86cc001d131f9a6
11153 * scd/app-openpgp.c (do_setattr): Add new table item to flush a
11156 2019-01-25 NIIBE Yutaka <gniibe@fsij.org>
11158 agent: Support --mode=ssh option for CLEAR_PASSPHRASE.
11159 + commit ae966bbe9b16ed68a51391afdde615339755e22d
11160 * agent/command.c (cmd_clear_passphrase): Add support for SSH.
11162 dirmngr: Fix initialization of assuan's nPth hook.
11163 + commit 1f8817475f59ede3f28f57edc10ba56bbdd08b49
11164 * dirmngr/dirmngr.c (main): Move assuan_set_system_hooks to...
11165 (thread_init): ... here.
11167 2019-01-24 Werner Koch <wk@gnupg.org>
11169 common: Extend function percent_data_escape.
11170 + commit 055f8854d3f49b8d06105d20f344f5ac10e4f6a6
11171 * common/percent.c (percent_data_escape): Add new args prefix and
11173 * agent/command.c (cmd_put_secret): Adjust for changed function
11175 * common/t-percent.c (test_percent_data_escape): Extend test for the
11177 (test_percent_data_escape_plus): new test for the plus escaping.
11179 2019-01-23 NIIBE Yutaka <gniibe@fsij.org>
11181 scd: Support PASSWD --clear for OpenPGP card.
11182 + commit fec75a3868da72196f76aca95c7ab07debb7dc04
11183 * scd/app-openpgp.c (do_change_pin): Implement handling
11184 APP_CHANGE_FLAG_CLEAR.
11186 2019-01-22 Werner Koch <wk@gnupg.org>
11188 gpg: Stop early when trying to create a primary Elgamal key.
11189 + commit f97dc55ff1b041071bc3cbe98aa761bf77bb7ac8
11190 * g10/misc.c (openpgp_pk_test_algo2): Add extra check.
11192 card-tool: Add skeleton for new tool.
11193 + commit e6d613711a327d63511601dd42aeff34e09ec95a
11194 * tools/gpg-card-tool.c: New.
11195 * tools/gpg-card-tool-w32info.rc: New.
11196 * tools/Makefile.am: Add new tool.
11198 common: Add generic status print function.
11199 + commit 03cf23b43ec5fea8a355d3ba2200e86a8efc589b
11200 * common/status.c (gnupg_set_status_fd): New.
11201 (gnupg_status_printf): New.
11202 * po/Makevars (XGETTEXT_OPTIONS): Add gnupg-status_printf.
11204 2019-01-21 Werner Koch <wk@gnupg.org>
11206 scd: Support CHV-STATUS and CHECKPIN for PIV.
11207 + commit fa9d703de5c70ae925e8ca6604073506f24d641a
11208 * scd/app-piv.c (parse_pin_keyref): New.
11209 (get_chv_status): New.
11210 (do_getattr): Add name CHV-STATUS.
11211 (verify_pin): Add arg keyref to support other PINs.
11212 (do_change_pin): New. Right now limited to --clear.
11213 (do_check_pin): New.
11214 (app_select_piv): Register new commands.
11216 scd: Add option --clear to PASSWD.
11217 + commit 29929e65521279eabc98a67c766fe485057405a9
11218 * scd/command.c (cmd_passwd): Add option --clear.
11219 (send_status_printf): New.
11220 * scd/app-common.h (APP_CHANGE_FLAG_CLEAR): New.
11221 * scd/app-nks.c (do_change_pin): Return an error if that option is
11223 * scd/app-openpgp.c (do_change_pin): Ditto.
11225 2019-01-20 Werner Koch <wk@gnupg.org>
11227 scd: Add very basic support for PIV cards.
11228 + commit ec56996029d95d4bd26e1badfe207232270c6247
11229 * scd/app-piv.c: New.
11230 * scd/Makefile.am (card_apps): Add app-piv.c
11231 * scd/app.c (app_new_register): Try to get a Yubikey serial number.
11232 Detect the PIV application.
11233 (get_supported_applications): Add "piv".
11235 scd: One new and one improved 7816 function.
11236 + commit 70bb5c7931598590b1acfae90bf4657f5911d2d3
11237 * scd/apdu.c (apdu_send_direct): New arg R_SW.
11238 * scd/command.c (cmd_apdu): Ditto.
11239 * scd/iso7816.c (iso7816_apdu_direct): New arg R_SW.
11240 (iso7816_general_authenticate): New.
11241 * scd/app-nks.c (get_chv_status, get_nks_version): Pass NULL for new
11244 2019-01-17 Werner Koch <wk@gnupg.org>
11246 ssh: Simplify the curve name lookup.
11247 + commit d93797c8a7892fe26672c551017468e9f8099ef6
11248 * agent/command-ssh.c (struct ssh_key_type_spec): Add field
11250 (ssh_key_types): Add some alternate curve names.
11251 (ssh_identifier_from_curve_name): Lookup also bey alternative names
11252 and return the canonical name.
11253 (ssh_key_to_blob): Simplify the ECDSA case by using gcry_pk_get_curve
11254 instead of the explicit mapping.
11255 (ssh_receive_key): Likewise. Use ssh_identifier_from_curve_name to
11256 validate the curve name. Remove the reverse mapping because since
11257 GnuPG-2.2 Libgcrypt 1.7 is required.
11258 (ssh_handler_request_identities): Log an error message.
11260 2019-01-16 NIIBE Yutaka <gniibe@fsij.org>
11262 gpg: Report STATUS_NO_SECKEY when it is examined.
11263 + commit dafffa95b2317bcb80fff1fd6d2bc7b4e6b1e206
11264 * g10/packet.h (struct pubkey_enc_list): Add result.
11265 * g10/mainproc.c (proc_pubkey_enc): Initialize ->result.
11266 (proc_encrypted): Report STATUS_NO_SECKEY status.
11267 * g10/pubkey-enc.c (get_session_key): Set ->result.
11269 2019-01-07 NIIBE Yutaka <gniibe@fsij.org>
11271 scd: Fix for USB INTERRUPT transfer.
11272 + commit 5ab3bc422a5cc1a646c168b547f2b6538b3a4ffa
11273 * scd/ccid-driver.c (intr_cb): When LIBUSB_TRANSFER_NO_DEVICE,
11274 just handle this event as failure.
11276 2019-01-03 Werner Koch <wk@gnupg.org>
11278 scd: Add two variants to the set of ISO7816 functions.
11279 + commit 405feca2bdeeb620dc406667a702035a123ae848
11280 * scd/iso7816.c (iso7816_select_application_ext): New.
11281 (iso7816_get_data_odd): New.
11283 scd: Support "READKEY --advanced" for all cards.
11284 + commit cca2b87e79cda212a33c13efdd2b2830295d2efe
11285 * scd/command.c (cmd_readkey): Reformat for advanced mode.
11287 2018-12-18 Werner Koch <wk@gnupg.org>
11289 wks: Do not use compression for the encrypted data.
11290 + commit 70a8db0333e3c22403b3647f8b5f924f6dace719
11291 * tools/gpg-wks-client.c (encrypt_response): Add arg -z0.
11292 * tools/gpg-wks-server.c (encrypt_stream): Ditto.
11294 2018-12-18 NIIBE Yutaka <gniibe@fsij.org>
11296 scd: Fix description string.
11297 + commit e6b7e0ff9990813ac9f11b2d9d92596d6379ebfe
11298 * scd/app-openpgp.c (data_objects): Capitalize the word for usage.
11300 2018-12-17 Werner Koch <wk@gnupg.org>
11302 Silence a few compiler warnings new with gcc 8.
11303 + commit 40c307fa8d0e813f2aa57806f25b8b0063cc2be3
11304 * dirmngr/dns.c: Include gpgrt.h. Silence -Warray-bounds also gcc.
11305 * tools/gpg-pair-tool.c (command_respond): Init two vars to silence
11308 2018-12-12 NIIBE Yutaka <gniibe@fsij.org>
11310 card: Suppress error message by agent_scd_cardlist.
11311 + commit ebf775eb16fef27bd1f27319a5483d04dcf95a9a
11312 * g10/call-agent.c (agent_scd_cardlist): Add
11313 FLAG_FOR_CARD_SUPPRESS_ERRORS.
11315 2018-12-11 Werner Koch <wk@gnupg.org>
11317 agent: Make the S2K calibration time runtime configurabe.
11318 + commit cbcc8c19541fe8407f3b6588fce1535c64cf6b25
11319 * agent/protect.c (s2k_calibration_time): New file global var.
11320 (calibrate_s2k_count): Use it here.
11321 (get_calibrated_s2k_count): Replace function static var by ...
11322 (s2k_calibrated_count): new file global var.
11323 (set_s2k_calibration_time): New function.
11324 * agent/gpg-agent.c (oS2KCalibration): New const.
11325 (opts): New option --s2k-calibration.
11326 (parse_rereadable_options): Parse that option.
11328 dirmngr: Retry another server from the pool on 502, 503, 504.
11329 + commit 05ef6282784495a77f4faf76c0de5bc85dfecf06
11330 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Add arg
11331 http_status and handle it.
11332 (ks_hkp_search): Get http_status froms end_request and pass on to
11333 handle_send_request_error.
11334 (ks_hkp_get): Ditto.
11335 (ks_hkp_put): Ditto.
11337 dirmngr: New function http_status2string.
11338 + commit dc61f4ecea5c9815cb00aeb25439978337c1fd64
11339 * dirmngr/http.c (http_status2string): New.
11341 gpg: In search-keys return "Not found" instead of "No Data".
11342 + commit e7252ae57f3c9da557f23295268f74dd25fee3a1
11343 * g10/keyserver.c (keyserver_search): Check for NO_DATA.
11345 2018-12-11 Tomi Leppänen <tomi.leppanen@jolla.com>
11347 tools: Use POSIX compatible arguments for find.
11348 + commit 2c35e67e3475ec38ff49953d79bd0f734d6db542
11349 * tools/addgnupghome (filelist): Remove bashism.
11351 2018-12-05 NIIBE Yutaka <gniibe@fsij.org>
11353 g10: Fix print_pubkey_info new line output.
11354 + commit e154fba30ba0d5f29040a33f5c1b5c25b441b69f
11355 * g10/keylist.c (print_pubkey_info): Reverse the condition.
11357 2018-12-04 Werner Koch <wk@gnupg.org>
11359 wks: Fix filter expression syntax flaw.
11360 + commit 0c36ec241d285545f286069843de4f663cd274a3
11361 * tools/wks-util.c (wks_get_key, wks_filter_uid): The filter
11362 expression needs a space before the value.
11363 (install_key_from_spec_file): Replace es_getline by es_read_line and
11364 remove debug output.
11366 gpg: Prepare revocation keys for use with v5 keys.
11367 + commit c6e2ee020784de63edfa83c76095e086eae49eef
11368 * g10/packet.h (struct revocation_key): Add field 'fprlen'.
11369 * g10/parse-packet.c (parse_revkeys): Set fprlen and allow for v5
11370 keys. Also fix reading of unitialized data at place where
11371 MAX_FINGERPRINT_LEN is used.
11372 * g10/revoke.c (gen_desig_revoke): Allow for v5 keys and use fprlen.
11373 Do an explicit compare to avoid reading unitialized data.
11374 * g10/sig-check.c (check_revocation_keys): Use the fprlen.
11375 * g10/getkey.c (merge_selfsigs_main): Do an explicit copy to avoid
11376 reading unitialized data.
11377 * g10/import.c (revocation_present): Use fprlen.
11378 * g10/keyedit.c (show_key_with_all_names): Use fprlen.
11379 (menu_addrevoker): Use fprlen. Allow for v5 keys.
11380 * g10/keygen.c (keygen_add_revkey): Use fprlen.
11381 (parse_revocation_key): Allow for v5 keys.
11382 * g10/keyid.c (keyid_from_fingerprint): Allow for v5 keys. Print a
11383 better error message in case of bogus fingerprints.
11384 * g10/keylist.c (print_revokers): Use fprlen.
11386 wks: Allow reading of --install-key arguments from stdin.
11387 + commit ba46a359b9d6549b74ec8401ea39bad434d87564
11388 * tools/wks-util.c (install_key_from_spec_file): New.
11389 (wks_cmd_install_key): Call it.
11390 * tools/gpg-wks-client.c (main): Allow --install-key w/o arguments.
11391 * tools/gpg-wks-server.c (main): Ditto.
11393 gpg: New list-option "show-only-fpr-mbox".
11394 + commit 0e8bf204791ebfd0c9a8e4b49fbadf998ec62e49
11395 * g10/gpg.c (parse_list_options): Add option "show-only-fpr-mbox".
11396 * g10/options.h (LIST_SHOW_ONLY_FPR_MBOX): New.
11397 * g10/keylist.c (list_keyblock_simple): New.
11398 (list_keyblock): Call it.
11399 (list_all): Do not print the keyring name in LIST_SHOW_ONLY_FPR_MBOX
11402 wks: Create sub-directories.
11403 + commit 73e5b0ec9b9ba5e04e55f8c42d81e23df7c3afe0
11404 * tools/wks-util.c (wks_compute_hu_fname): Stat and create directory
11407 wks: Add new commands --install-key and --remove-key to the client.
11408 + commit 602b1909632925d5a2e0778c102d66109795c627
11409 * tools/gpg-wks-client.c (aInstallKey, aRemoveKey, oDirectory): New.
11410 (opts): Add "--install-key", "--remove-key" and "-C".
11411 (parse_arguments): Parse them.
11412 (main): Check that the given directory exists. Implement the new
11415 wks: Move a few server functions to wks-util.
11416 + commit 99094c992c20dd22971beb3527cfda109cd1df89
11417 * tools/gpg-wks-server.c (write_to_file): Move to ...
11418 * tools/wks-util.c: here.
11419 * tools/gpg-wks-server.c (compute_hu_fname): Move to ...
11420 * tools/wks-util.c (wks_compute_hu_fname): here.
11421 * tools/gpg-wks-server.c (fname_from_userid): Move to ...
11422 * tools/wks-util.c (wks_fname_from_userid): here.
11423 * tools/gpg-wks-server.c (command_install_key): Move to ...
11424 * tools/wks-util.c (wks_cmd_install_key): here and change caller.
11425 * tools/gpg-wks-server.c (command_remove_key): Move to ...
11426 * tools/wks-util.c (wks_cmd_remove_key): here and change callers.
11428 2018-12-04 NIIBE Yutaka <gniibe@fsij.org>
11430 build: Remove --with-*-prefix from configure_opts.
11431 + commit 802b23289cc9b43a56e5032c2681eb21d4014784
11432 * autogen.rc (configure_opts): Remove --with-*-prefix.
11434 2018-12-01 Jussi Kivilinna <jussi.kivilinna@iki.fi>
11436 g10/mainproc: disable hash contexts when --skip-verify is used.
11437 + commit 73e74de0e33bbb76300f96a4174024779047df06
11438 * g10/mainproc.c (proc_plaintext): Do not enable hash contexts when
11439 opt.skip_verify is set.
11441 common/iobuf: fix memory wiping in iobuf_copy.
11442 + commit 654e353d9b20f10fa275e7ae10cc50480654f079
11443 * common/iobuf.c (iobuf_copy): Wipe used area of buffer instead of
11444 first sizeof(char*) bytes.
11446 common/mischelp: use platform memory zeroing function for wipememory.
11447 + commit 2a650772b4e1c78a4fd20bc88433930e5551fe9c
11448 * common/mischelp.h (wipememory): Replace macro with function
11450 (wipememory2): Remove.
11451 * common/mischelp.c (wipememory): New.
11452 * configure.ac (AC_CHECK_FUNCS): Check for 'explicit_bzero'.
11454 2018-11-30 Werner Koch <wk@gnupg.org>
11456 scd: Add strerror to new error message.
11457 + commit 3a90efb7cf13532cc82b45c11a7abdadfe0c81f1
11458 * agent/call-scd.c (wait_child_thread): Add %s.
11460 gpg: Improve error message about failed keygrip computation.
11461 + commit cd64af003d4b6b46b69dbd575f73d53359ae0bcc
11462 * g10/keyid.c (keygrip_from_pk): Print the fingerprint on failure.
11464 2018-11-28 NIIBE Yutaka <gniibe@fsij.org>
11466 scd: Serialize opening device by select_application.
11467 + commit 47106ac435e891ced67f0ad9bb6b2ee12098c880
11468 * scd/app.c (app_new_register): Don't lock APP_LIST_LOCK here.
11469 (select_application): Lock with APP_LIST_LOCK earlier.
11471 2018-11-27 NIIBE Yutaka <gniibe@fsij.org>
11473 agent: Better serialization for scdaemon access.
11474 + commit 483e63f9b5faead819ddd28308902ef43bf298ab
11475 * agent/call-scd.c (unlock_scd): Move lock before accessing IN_USE.
11476 (wait_child_thread): Add log_info for Windows, and fixed log_error
11479 2018-11-26 Andre Heinecke <aheinecke@intevation.de>
11481 w32: Fix linkage of gpg-pair-tool.
11482 + commit f12fcd907903742bde3ebb7ffef244c92d6d1611
11483 * tools/Makefile.am (gpg_pair_tool_LDADD): Add W32SOCKLIBS.
11485 2018-11-26 NIIBE Yutaka <gniibe@fsij.org>
11487 agent: Have a thread to wait for the child process of scdaemon.
11488 + commit 40c7923ea881881a48de8f303b0870ec5910e13d
11489 * agent/call-scd.c (wait_child_thread): New.
11490 (start_scd): Create a thread for wait_child_thread.
11491 (agent_scd_check_aliveness): Remove.
11493 agent: Defer calling assuan_release when it's still in use.
11494 + commit 9fb3f0f3f79e74166cce8e0781e97043f25890cc
11495 * agent/call-scd.c (struct scd_local_s): Remove LOCK, introduce IN_USE
11497 (unlock_scd): Call assuan_release when CTX is invalid.
11498 (start_scd): Set IN_USE.
11499 (agent_scd_check_aliveness): Don't call assuan_release when it's in use.
11501 agent: Clean up SCDaemon management.
11502 + commit f45d6124696cc92ccdec09841b8182679c377997
11503 * agent/call-scd.c (struct scd_local_s): Remove ctrl_backlink.
11504 (start_scd): Don't assign to the field.
11505 (agent_scd_check_aliveness): Fix typo in comment.
11507 2018-11-22 Werner Koch <wk@gnupg.org>
11509 dirmngr: Avoid possible CSRF attacks via http redirects.
11510 + commit fa1b1eaa4241ff3f0634c8bdf8591cbc7c464144
11511 * dirmngr/http.h (parsed_uri_s): Add fields off_host and off_path.
11512 (http_redir_info_t): New.
11513 * dirmngr/http.c (do_parse_uri): Set new fields.
11514 (same_host_p): New.
11515 (http_prepare_redirect): New.
11516 * dirmngr/t-http-basic.c: New test.
11517 * dirmngr/ks-engine-hkp.c (send_request): Use http_prepare_redirect
11518 instead of the open code.
11519 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
11521 2018-11-16 Werner Koch <wk@gnupg.org>
11523 gpg: Start using OCB mode by default with Libgcrypt 1.9.
11524 + commit 1e700961ddf4c54ec5a03a697fe00d7eb606fdff
11525 * g10/main.h (GCRYPT_VERSION_NUMBER): Fix type in condition.
11527 2018-11-15 NIIBE Yutaka <gniibe@fsij.org>
11529 card: Display UIF setting.
11530 + commit e955ca245ea08e68ae2397f1583c8728d72acbd8
11531 * g10/call-agent.h (agent_card_info_s): Add UIF fields.
11532 * g10/call-agent.c (learn_status_cb): Put UIF DOs info.
11533 * g10/card-util.c (current_card_status): Output for UIF.
11535 scd: Make "learn" report about KDF data object.
11536 + commit 05d163aebc04db109ec5e004eb04a4b3796f6421
11537 * scd/app-openpgp.c (do_learn_status): Report KDF attr.
11538 * g10/card-util.c (current_card_status): Output KDF for with_colons.
11540 card: Display if KDF is enabled or not.
11541 + commit a5542a4a702c2210facf58a98bc8d3d16089b6ab
11542 * g10/call-agent.h (kdf_do_enabled): New field.
11543 * g10/call-agent.c (learn_status_cb): Set kdf_do_enabled if available.
11544 * g10/card-util.c (current_card_status): Inform the availability.
11546 2018-11-14 Werner Koch <wk@gnupg.org>
11548 Remove the gpg-zip script.
11549 + commit 8b8ea802ca071c911158cab0203245a16a69125c
11550 * tools/gpg-zip.in: Remove.
11551 * m4/tar-ustar.m4: Remove.
11553 2018-11-14 NIIBE Yutaka <gniibe@fsij.org>
11555 agent: Simplify agent_popup_message_stop.
11556 + commit 804a77edd9472d44606641b7772550521e1ba271
11557 * agent/call-pinentry.c (agent_popup_message_stop): Just kill it.
11559 2018-11-13 Werner Koch <wk@gnupg.org>
11561 dirmngr: Support the new WKD draft with the openpgpkey subdomain.
11562 + commit 914fa3be22bf8848a97a7dd405a040d6ef31e2fd
11563 * dirmngr/server.c (proc_wkd_get): Implement new openpgpkey subdomain
11566 2018-11-13 NIIBE Yutaka <gniibe@fsij.org>
11568 build: Update libgcrypt.m4 and ntbtls.m4.
11569 + commit d58fe697acefd435ec01503dae574d6c99dfedae
11570 * m4/libgcrypt.m4: Update from master.
11571 * m4/ntbtls.m4: Update from master.
11573 2018-11-12 Andre Heinecke <aheinecke@intevation.de>
11575 dirmngr: Add FLUSHCRLs command.
11576 + commit 678e4706ee614a6b7e543e2a80072d75405dd4db
11578 * dirmngr/crlcache.c (crl_cache_flush): Also deinit the cache.
11579 * dirmngr/server.c (hlp_flushcrls, cmd_flushcrls): New.
11580 (register_commands): Add FLUSHCRLS.
11582 2018-11-12 Werner Koch <wk@gnupg.org>
11584 common: Prepare for parsing mail sub-addresses.
11585 + commit 6b9f772914624cc673ba26d49b6e3adc32dd7e0a
11586 * common/mbox-util.c (mailbox_from_userid): Add arg subaddress and
11587 implement. Change all callers to pass false for it.
11589 * common/t-mbox-util.c (run_mbox_no_sub_test): New.
11590 (run_filter): Add arg no_sub.
11591 (main): Call new test and add option --no-sub.
11593 2018-11-11 Werner Koch <wk@gnupg.org>
11595 common: Add --filter option to t-mbox-util.
11596 + commit b3095c95ef9d2d76b49a6ad1b946fca590380dc9
11597 * common/t-mbox-util.c (run_filter): New.
11598 (main): Add option parser.
11600 2018-11-09 Jussi Kivilinna <jussi.kivilinna@iki.fi>
11602 g10/mainproc: avoid extra hash contexts when decrypting AEAD input.
11603 + commit b46382dd47731231ff49b59c486110a25e08e985
11604 * g10/mainproc.c (mainproc_context): New member
11605 'seen_pkt_encrypted_aead'.
11606 (release_list): Clear 'seen_pkt_encrypted_aead'.
11607 (proc_encrypted): Set 'seen_pkt_encrypted_aead'.
11608 (have_seen_pkt_encrypted_aead): New.
11609 (proc_plaintext): Do not enable extra hash contexts when decryption
11612 2018-11-08 Jussi Kivilinna <jussi.kivilinna@iki.fi>
11614 g10/armor: optimize radix64 to binary conversion.
11615 + commit 643ec7c642dc75191e712963d2bb460ac247e09b
11616 * g10/armor.c (asctobin): Larger look-up table for fast path.
11617 (initialize): Update 'asctobin' initialization.
11618 (radix64_read): Add fast path for radix64 to binary conversion.
11620 g10/armor: optimize binary to radix64 conversion.
11621 + commit e8142cc69a2ae5a5d0a238bc9f88841067359af8
11622 * g10/armor.c (bintoasc): Change to read-only.
11623 (initialize): Use const pointer for 'bintoasc'.
11624 (armor_output_buf_as_radix64): New function for faster binary to
11625 radix64 conversion.
11626 (armor_filter): Use new conversion function.
11628 g10/armor: use libgcrypt's CRC24 implementation.
11629 + commit e486d4f0259f27906d2c2869cc01b3aa31aaa0a6
11630 * g10/armor.c (CRCINIT, CRCPOLY, CRCUPDATE, crc_table): Remove.
11631 (new_armor_context): Open libgcrypt CRC24 context.
11632 (release_armor_context): Close CRC24 context.
11633 (initialize): Remove CRC table generation.
11634 (get_afx_crc): New.
11635 (check_input, fake_packet, radix64_read, armor_filter): Update to use
11637 * g10/filter.h (armor_filter_context_t): Replace crc intermediate value
11638 with libgcrypt md context pointer.
11640 common/iobuf: optimize iobuf_read_line.
11641 + commit 2b5718c1f76851160115f455c3a9383b04521347
11642 * common/iobuf.c (iobuf_read_line): Add fast path for finding '\n'
11643 character in buffer.
11645 g10/armor: remove unused unarmor_pump code.
11646 + commit 47424881b27d4b3bae2925265b2008cda0c2933f
11647 * g10/armor.c (unarmor_state_e, unarmor_pump_s, unarmor_pump_new)
11648 (unarmor_pump_release, unarmor_pump): Remove.
11649 * g10/filter.h (UnarmorPump, unarmor_pump_new, unarmor_pump_release)
11650 (unarmor_pump): Remove.
11652 g10/armor: fix eof checks in radix64_read.
11653 + commit a571bb8df52d6f2727876e086790dd037c9948ad
11654 * g10/armor.c (radix64_read): Check EOF with '!afx->buffer_len' instead
11655 of 'c == -1', as 'c' is never set to this value.
11657 g10/decrypt-data: use iobuf_read for higher performance.
11658 + commit 5d6c080522e1666943b75c99124fb69b985b6941
11659 * g10/decrypt-data.c (fill_buffer): Use iobuf_read instead of iobuf_get
11662 g10/decrypt-data: use fill_buffer in more places.
11663 + commit e2b9095de35ac4d402b077d5484b4131700a9925
11664 * g10/decrypt-data.c (mdc_decode_filter, decode_filter): Use
11667 2018-11-08 NIIBE Yutaka <gniibe@fsij.org>
11669 gpgcompose: Fix --sk-esk.
11670 + commit 69930f6884a934207f7aa523cf6d2b8e22dfe666
11671 * g10/gpgcompose.c (sk_esk): Copy the result content correctly.
11672 Don't forget to free the result.
11674 g10: Fix log_debug formatting.
11675 + commit 7fc3decc2e038be905d47701c7ce196ed86a725b
11676 * g10/cipher-aead.c (do_flush): No cast is correct.
11677 * g10/decrypt-data.c (aead_underflow): No cast needed.
11678 Use "%j" for uint64_t for chunklen.
11680 2018-11-06 NIIBE Yutaka <gniibe@fsij.org>
11682 g10: Fix print_keygrip for smartcard.
11683 + commit 01b77ebbb71d47ba276d3a1af9595fdcd9b48f5f
11684 * g10/card-util.c (print_keygrip): Use tty_fprintf.
11686 2018-11-05 Werner Koch <wk@gnupg.org>
11688 wks: New option --with-colons for gpg-wks-client.
11689 + commit e3a1e80d13487c9336640a99b2f6d385d7d6f55c
11690 * tools/gpg-wks.h (opt): Add field with_colons.
11691 * tools/gpg-wks-client.c (oWithColons): New const.
11692 (opts, parse_arguments): Add option --with-colons.
11693 (main): Change aSupported to take several domains in --with-colons
11695 (command_send): Factor policy getting code out to ...
11696 (get_policy_and_sa): New function.
11697 (command_supported): Make use of new function.
11699 speedo: Remove obsolete configure option of gpgme.
11700 + commit d7323bb2d957fbeb8192c0ecbd99b1d14d302912
11701 * build-aux/speedo.mk (speedo_pkg_gpgme_configure): Remove
11702 --disable-w32-qt option.
11704 dirmngr: Fix LDAP port parsing.
11705 + commit a3a5a2451924640588e5ecc03a1d4ba6a6ba94a5
11706 * dirmngr/misc.c (host_and_port_from_url): Fix bad port parsing and a
11707 segv for a missing slash after the host name.
11709 2018-11-02 NIIBE Yutaka <gniibe@fsij.org>
11711 build: Update *.m4 from libraries.
11712 + commit 8e84efbe35633275e260712ba38a505e3f9d0898
11713 * m4/gpg-error.m4: Update from master.
11714 * m4/ksba.m4: Ditto.
11715 * m4/libassuan.m4: Ditto.
11716 * m4/libgcrypt.m4: Ditto.
11717 * m4/npth.m4: Ditto.
11718 * m4/ntbtls.m4: Ditto.
11720 2018-10-31 NIIBE Yutaka <gniibe@fsij.org>
11722 build: Update *.m4 from libraries.
11723 + commit fd7aee6a97134fdf48a496841241f8ae25736e61
11724 * m4/gpg-error.m4: Update from master.
11725 * m4/ksba.m4: Ditto.
11726 * m4/libassuan.m4: Ditto.
11727 * m4/libgcrypt.m4: Ditto.
11728 * m4/npth.m4: Ditto.
11729 * m4/ntbtls.m4: Ditto.
11731 2018-10-26 Werner Koch <wk@gnupg.org>
11733 build: By default build wks-tools on all Unix platforms.
11734 + commit b83fed64f8051279a8f36e024c1f12f7f13c4716
11737 wkd: Add option --directory to the server.
11738 + commit f248416bc9792e80bb0785302058131de49d7639
11739 * tools/gpg-wks-server.c (opts): Add '--directory',
11740 (main): Explain how to set correct permissions.
11741 (command_list_domains): Create an empty policy file and remove the
11742 warning for an empty policy file.
11744 2018-10-26 NIIBE Yutaka <gniibe@fsij.org>
11746 kbx: Increase size of field for fingerprint.
11747 + commit 4249e9a2bf028f007d1ddaac730f636e5c6da20f
11748 * kbx/keybox-search-desc.h (fpr): Increase the size.
11750 2018-10-25 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11752 all: fix more spelling errors.
11753 + commit a7c5d65eb50355274c1b5b047c02c653f518900a
11756 headers: fix spelling.
11757 + commit b39ece7d35401302879062d9d4bec25b1249ae7e
11760 2018-10-25 Werner Koch <wk@gnupg.org>
11762 dirmngr: Fix out of scope use of a var in the keyserver LDAP code.
11763 + commit 2b57a8159cdc3b212a4efc68787b40cafcd91ebe
11764 * dirmngr/ks-engine-ldap.c (extract_attributes): Don't use a variabale
11765 out of scope and cleanup the entire pgpKeySize block.
11767 2018-10-25 NIIBE Yutaka <gniibe@fsij.org>
11769 g10,scd: Improve UIF support.
11770 + commit 0240345728a84d8f235ce05889e83963e52742eb
11771 * g10/call-agent.c (learn_status_cb): Parse "bt" flag.
11772 * g10/call-agent.h: New member field "bt".
11773 * g10/card-util.c (uif): Limit its access only when it is supported.
11774 * scd/app-openpgp.c (do_setattr): Allow access to UIF objects only
11775 when there is a button.
11777 2018-10-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11779 all: fix spelling and typos.
11780 + commit 54eb375ff14e2a93cea70eab35719be4d25f51ca
11783 doc: fix spelling mistakes.
11784 + commit ef540d1af0649ebf1add190d0ab095e957658b7e
11787 2018-10-24 Werner Koch <wk@gnupg.org>
11789 agent: Fix possible uninitalized use of CTX in simple_pwquery.
11790 + commit bafcf7095159493a656382997f8b0d0bb11a20e8
11791 * common/simple-pwquery.c (agent_open): Clear CTX even on early error.
11793 agent: Fix possible release of unitialize var in a genkey error case.
11794 + commit 2bdc4b6ed97770ed15ec6c5afa02c2e44568a3bc
11795 * agent/command.c (cmd_genkey): Initialize 'value'.
11797 ssh: Fix possible infinite loop in case of an read error.
11798 + commit 7385e1babf6eef586c79ad23f8e541aaf608c4e5
11799 * agent/command-ssh.c (ssh_handler_add_identity): Handle other errors
11802 tools: Fix FILE memory leak in gpg-connect-agent.
11803 + commit 378719f25fe00d46393541f4a4f79e04484c3000
11804 * tools/gpg-connect-agent.c (do_open): dup the fileno and close the
11807 sm: Use the correct string in an error message.
11808 + commit 793fd8d876777c24c4d5072301fa530333d6e1d9
11809 * sm/gpgsm.c (main): Fix error message.
11811 gpg: Unfinished support for v5 signatures.
11812 + commit 64a1e86fc06d89c980a196c61d2b6d77d167565e
11813 * g10/parse-packet.c (parse_signature): Allow for v5 signatures.
11814 * g10/sig-check.c (check_signature_end_simple): Support the 64bit v5
11816 * g10/sign.c (hash_sigversion_to_magic): Ditto.
11817 (write_signature_packets): Request v5 sig for v5 keys. Remove useless
11819 (make_keysig_packet): Request v5 sig for v5 keys.
11821 2018-10-22 Werner Koch <wk@gnupg.org>
11823 dirmngr: Prepare for updated WKD specs with ?l= param.
11824 + commit 256a280c51f9ea862e4bfb0bb530c2a96f9088f9
11825 * dirmngr/server.c (proc_wkd_get): Tack the raw local address to the
11828 agent: Fix build regression for Windows.
11829 + commit 68b8096b6617cdad09c99d7eda2035176807e78f
11830 * agent/command-ssh.c (get_client_info): Turn client_uid into an int.
11831 Fix setting of it in case of a failed getsocketopt.
11832 * agent/command.c (start_command_handler): Fix setting of the pid and
11835 dirmngr: In verbose mode print the OCSP responder id.
11836 + commit 0a7f446c189201ca6e527af08b44da756b343209
11837 * dirmngr/ocsp.c (ocsp_isvalid): Print the responder id.
11839 2018-10-15 Werner Koch <wk@gnupg.org>
11841 tools: Replace duplicated code in mime-maker.
11842 + commit f03928b16c4fb00077d22d8ec141575ef6d26913
11843 * tools/rfc822parse.c (HEADER_NAME_CHARS): New. Taken from
11845 (rfc822_valid_header_name_p): New. Based on code from mime-maker.c.
11846 (rfc822_capitalize_header_name): New. Copied from mime-maker.c.
11847 (capitalize_header_name): Remove. Replace calls by new func.
11848 (my_toupper, my_strcasecmp): New.
11849 * tools/mime-maker.c: Include rfc822parse.h.
11850 (HEADER_NAME_CHARS, capitalize_header_name): Remove.
11851 (add_header): Replace check and capitalization by new functions.
11853 2018-10-15 NIIBE Yutaka <gniibe@fsij.org>
11855 scd: Fix signing authentication status.
11856 + commit 78f542e1f4495195db2e668f9cd41657fb1afc77
11857 * scd/app-openpgp.c (do_sign): Clear DID_CHV1 after signing.
11859 2018-10-12 NIIBE Yutaka <gniibe@fsij.org>
11861 agent: Fix message for ACK button.
11862 + commit 4ed941ff26783c4fabfe2079029f8e436eb7e340
11863 * agent/divert-scd.c (getpin_cb): Display correct message.
11865 2018-10-11 NIIBE Yutaka <gniibe@fsij.org>
11867 scd: Support "acknowledge button" feature.
11868 + commit 7a5a4c4cac8709f7c413e94cd0b40f4123baa1e5
11869 * scd/apdu.c (set_prompt_cb): New member function.
11870 (set_prompt_cb_ccid_reader): New function.
11871 (open_ccid_reader): Initialize with set_prompt_cb_ccid_reader.
11872 (apdu_set_prompt_cb): New.
11873 * scd/app.c (lock_app, unlock_app): Add call to apdu_set_prompt_cb.
11874 * ccid-driver.c (ccid_set_prompt_cb): New.
11875 (bulk_in): Call ->prompt_cb when timer extension.
11876 * scd/command.c (popup_prompt): New.
11878 agent: Support --ack option for POPUPPINPADPROMPT.
11879 + commit 827529339a4854886dbb5625238e7e01013efdcd
11880 * agent/divert-scd.c (getpin_cb): Support --ack option.
11882 2018-10-10 Werner Koch <wk@gnupg.org>
11884 gpg: Don't take the a TOFU trust model from the trustdb,
11885 + commit 150a33df41944d764621f037038683f3d605aa3f
11886 * g10/tdbio.c (tdbio_update_version_record): Never store a TOFU model.
11887 (create_version_record): Don't init as TOFU.
11888 (tdbio_db_matches_options): Don't indicate a change in case TOFU is
11889 stored in an old trustdb file.
11891 2018-10-08 Werner Koch <wk@gnupg.org>
11893 gpg: Fix extra check for sign usage of a data signature.
11894 + commit b6275f3bda8edff34274c5b921508567f491ab9c
11895 * g10/sig-check.c (check_signature_end_simple):
11897 gpg: Make --skip-hidden-recipients work again.
11898 + commit 79f165d7a8bcc26972712bb0f0cc554d5c3d4e42
11899 * g10/pubkey-enc.c (get_session_key): Take care of
11900 opt.skip_hidden_recipients.
11902 2018-10-02 Werner Koch <wk@gnupg.org>
11904 gpg: New options import-drop-uids and export-drop-uids.
11905 + commit 8e83493dae426fe36a0e0081198b10db1e103ff1
11906 * g10/options.h (IMPORT_DROP_UIDS): New.
11907 (EXPORT_DROP_UIDS): New.
11908 * g10/import.c (parse_import_options): Add option "import-drop-uids".
11909 (import_one): Don't bail out with that options and no uids found.
11910 Also remove all uids.
11911 (remove_all_uids): New.
11912 * g10/export.c (parse_export_options): Add option "export-drop-uids".
11913 (do_export_one_keyblock): Implement option.
11915 2018-10-02 NIIBE Yutaka <gniibe@fsij.org>
11917 common: Fix gnupg_reopen_std.
11918 + commit 50b02dba2060a8969da47b18d9c0ecdccbd30db4
11919 * common/sysutils.c (gnupg_reopen_std): Use fcntl instead of fstat.
11921 2018-09-27 NIIBE Yutaka <gniibe@fsij.org>
11923 g10,scd: Support UIF changing command.
11924 + commit 0cb65564e022fface5ada4de8e0c2c4c3d0ac8ad
11925 * g10/card-util.c (uif, cmdUIF): New.
11926 (card_edit): Add call to uif by cmdUIF.
11927 * scd/app-openpgp.c (do_getattr): Support UIF-1, UIF-2, and UIF-3.
11928 (do_setattr): Likewise.
11929 (do_learn_status): Learn UIF-1, UIF-2, and UIF-3.
11931 2018-09-18 NIIBE Yutaka <gniibe@fsij.org>
11933 g10: Fix memory leak for --card-status.
11934 + commit fe8b6339542f3b1228b5fd56fc710ea3b07a3a2b
11935 * g10/card-util.c (card_status): Release memory of serial number.
11937 2018-09-14 NIIBE Yutaka <gniibe@fsij.org>
11939 g10: Fix another memory leak.
11940 + commit 60c880bda5c9b821fd2968cf89c38c37be3c1a7b
11941 * g10/skclist.c (enum_secret_keys): Use SK_LIST instead of pubkey_t.
11943 g10: Fix memory leak (more).
11944 + commit 2eb481e8cc1c37378cf68a06557c4a7a625d315c
11945 * g10/skclist.c (enum_secret_keys): Free SERIALNO on update.
11947 g10: Fix memory leak in enum_secret_keys.
11948 + commit 64c5c45e2aa4a12d939680b9d51c8b26d61c5e9d
11949 * g10/skclist.c (enum_secret_keys): Don't forget to call
11950 free_public_key in the error return paths.
11952 2018-09-11 NIIBE Yutaka <gniibe@fsij.org>
11954 Revert "dirmngr: hkp: Avoid potential race condition when some hosts die."
11955 + commit 69bab1cba07a8259b85a7911c2824724667803a4
11956 This reverts commit 04b56eff118ec34432c368b87e724bce1ac683f9.
11958 dirmngr: Serialize access to hosttable.
11959 + commit 995aded58724a1a07704493b311be5222b3f82a2
11960 * dirmngr/dirmngr.h (ks_hkp_init): New.
11961 * dirmngr/dirmngr.c (main): Call ks_hkp_init.
11962 * dirmngr/ks-engine-hkp.c (ks_hkp_init): New.
11963 (ks_hkp_mark_host): Serialize access to hosttable.
11964 (ks_hkp_print_hosttable, make_host_part): Likewise.
11965 (ks_hkp_housekeeping, ks_hkp_reload): Likewise.
11967 2018-09-10 NIIBE Yutaka <gniibe@fsij.org>
11969 common: Use iobuf_get_noeof to avoid undefined behaviors.
11970 + commit f80346f42df4bdc7d0a9741c3922129aceae4f81
11971 * common/iobuf.c (block_filter): Use iobuf_get_noeof.
11973 agent: Fix error code check from npth_mutex_init.
11974 + commit adce73b86fd49d5bbb8884231a26cc7533d400e2
11975 * agent/call-pinentry.c (initialize_module_call_pinentry): It's an
11976 error when npth_mutex_init returns non-zero.
11978 2018-09-07 Werner Koch <wk@gnupg.org>
11980 dirmngr: Emit SOURCE status also on NO_DATA.
11981 + commit bee65edfbc8cc2c369e5941cc9d1a01a0519b388
11982 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Send SOURCE status also on
11984 (ks_hkp_get): Ditto.
11985 * g10/call-dirmngr.c (gpg_dirmngr_ks_search): Print "data source" info
11987 (gpg_dirmngr_ks_get): Ditto.
11989 2018-09-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11991 dirmngr: hkp: Avoid potential race condition when some hosts die.
11992 + commit 04b56eff118ec34432c368b87e724bce1ac683f9
11993 * dirmngr/ks-engine-hkp.c (select_random_host): Use atomic pass
11994 through the host table instead of risking out-of-bounds write.
11996 2018-09-07 NIIBE Yutaka <gniibe@fsij.org>
11998 g10: Fix memory leak.
11999 + commit 7c96cc67e108f3a9514a4222ffac2f9f9a2ab19e
12000 * g10/import.c (read_block): Call free_packet to skip the packet.
12002 2018-09-06 NIIBE Yutaka <gniibe@fsij.org>
12004 gpgscm: Suppress warnings for GCC > 6.
12005 + commit 99c17b970bc0ca7e0cff7fe031c6f9feb05af3ff
12006 * tests/gpgscm/scheme.c (CASE): Use unused attribute for GCC > 6.
12007 (FALLTHROUGH): New for fallthrough.
12008 (Eval_Cycle): Use FALLTHROUGH. Remove not-needed comment of
12011 Fix use of strncpy, which is actually good to use memcpy.
12012 + commit 625ced6e672daa892d334323cce6b3d42a6f929f
12013 * common/ssh-utils.c (get_fingerprint): Use memcpy.
12014 * g10/build-packet.c (string_to_notation): Use memcpy.
12016 2018-09-05 Werner Koch <wk@gnupg.org>
12018 kbx: Add framework for a public key daemon.
12019 + commit 512be1d04b98a9d6a9067bd34c16513089a0db9f
12020 * kbx/keyboxd.c: New.
12021 * kbx/keyboxd.h: New.
12022 * kbx/kbxserver.c: New.
12023 * kbx/keyboxd-w32info.rc: New.
12024 * kbx/Makefile.am (EXTRA_DIST): Add new rc file.
12025 (resource_objs): Ditto.
12026 (libexec_PROGRAMS): New.
12027 (common_libs, commonpth_libs): New.
12028 (kbxutil_LDADD): Use here.
12029 (keyboxd_SOURCES): New.
12030 (keyboxd_CFLAGS): New.
12031 (keyboxd_LDADD): New.
12032 (keyboxd_LDFLAGS): New.
12033 (keyboxd_DEPENDENCIES): new.
12034 ($(PROGRAMS)): Extend.
12036 common: New function status_printf.
12037 + commit d4489be467e7229e17fb17a0489bf711d6ce66d6
12038 * common/asshelp2.c (set_assuan_context_func): New.
12039 (status_printf): New.
12040 * po/Makevars (XGETTEXT_OPTIONS): Add status_printf
12042 2018-08-29 Werner Koch <wk@gnupg.org>
12044 gpg: Explain error message in key generation with --batch.
12045 + commit 1bfe766bcf3959135333900934f1a15c9b96c3cf
12046 * g10/keygen.c (generate_keypair): Show more info.
12048 gpg: Remove unused function get_pubkeys.
12049 + commit ed8fe21e6612401846fc4af8631f0136dc633c67
12050 * g10/getkey.c (get_pubkeys): Remove.
12051 (pubkey_free): Remove and use code directly ...
12052 (pubkeys_free): ... here.
12054 gpg: New option --known-notation.
12055 + commit 3da835713fb6220112d988e1953f3d84beabbf6a
12056 * g10/gpg.c (oKnownNotation): New const.
12057 (opts): Add option --known-notation.
12058 (main): Set option.
12059 * g10/parse-packet.c (known_notations_list): New local var.
12060 (register_known_notation): New.
12061 (can_handle_critical_notation): Rewrite to handle the new feature.
12062 Also print the name of unknown notations in verbose mode.
12064 2018-08-28 Werner Koch <wk@gnupg.org>
12066 gpg: Refresh expired keys originating from the WKD.
12067 + commit 7f172404bfcf719b9b1af4a182d4803525ebff7c
12068 * g10/getkey.c (getkey_ctx_s): New field found_via_akl.
12069 (get_pubkey_byname): Set it.
12070 (only_expired_enc_subkeys): New.
12071 (get_best_pubkey_byname): Add support to refresh expired keys from the
12074 gpg: Remove unused arg from a function.
12075 + commit db67ccb759426c1173761574b14bdfe6a76394c2
12076 * g10/getkey.c (get_best_pubkey_byname): Remove unused arg 'no_akl'.
12077 Change both callers.
12079 2018-08-27 Werner Koch <wk@gnupg.org>
12081 gpg: Prepare for longer card fingerprints.
12082 + commit 108702ccae8ff1e5fec3b8e710f06a03637244c7
12083 * g10/call-agent.h (agent_card_info_s): Rename the "*valid" fields to
12085 * g10/call-agent.c (unhexify_fpr): Change to take a FPRLEN and to
12086 return the actual length.
12087 (agent_release_card_info): Adjust for these changes.
12088 * g10/card-util.c (print_sha1_fpr): Rename to print_shax_fpr and add
12089 arg FPRLEN. Change all callers to pass the length.
12090 (print_sha1_fpr_colon): Rename to print_shax_fpr_colon and add arg
12091 FPRLEN. Change all callers to pass the length.
12092 (fpr_is_zero): Add arg FPRLEN.
12093 (fpr_is_ff): Ditto.
12094 (show_card_key_info): Use the new functions.
12095 * g10/skclist.c (enum_secret_keys): Use MAX_FINGERPRINT_LEN.
12097 2018-08-27 NIIBE Yutaka <gniibe@fsij.org>
12099 g10: Fix enum_secret_keys for card keys.
12100 + commit b823788d200902f34c632026934cf0e43152b73e
12101 * g10/skclist.c (enum_secret_keys): Since "KEY-FPR" returns
12102 fingerprint in binary, change it to hex string.
12104 g10: Prefer to available card keys for decryption.
12105 + commit 84cc55880a5815155328229beb309326472bfd82
12106 * g10/skclist.c (enum_secret_keys): Add logic to prefer
12107 decryption keys on cards.
12109 g10: Move enum_secret_keys to skclist.c.
12110 + commit 03a8de7def4195b9accde47c1dcb84279361936d
12111 * g10/getkey.c (enum_secret_keys): Move to...
12112 * g10/skclist.c (enum_secret_keys): ... here.
12114 g10: Fix comment of enum_secret_keys.
12115 + commit 6bb93fc295e712ddf9b461dfe650211caf16a844
12116 * g10/getkey.c (enum_secret_keys): Fix comment for usage of
12117 enum_secret_keys, following the previous change.
12119 g10: Enumerated keys for decryption should be unique.
12120 + commit 30153c65f0875f9a62838f6347bcdcedd6114d35
12121 * g10/getkey.c (enum_secret_keys): Collecting keys in the context,
12122 check duplicate to make sure returning only unique keys.
12123 * g10/pubkey-enc.c (get_session_key): Now, it's the responsibility of
12124 enum_secret_keys to free keys.
12126 g10: Change decryption key selection for public key encryption.
12127 + commit ce2f71760155b71a71418fe145a557c99bd52290
12128 * g10/mainproc.c (struct mainproc_context): It's now pubkey_enc_list.
12129 (do_proc_packets): Remove the first arg CTRL. Fix call of
12131 (release_list): Handle pubkey_enc_list.
12132 (proc_pubkey_enc): Remove the first arg CTRL. Simply put the packet
12133 to pubkey_enc_list.
12134 (print_pkenc_list): Remove the last arg FAILED.
12135 (proc_encrypted): Only call print_pkenc_list once.
12137 (proc_packets, proc_signature_packets, proc_signature_packets_by_fd)
12138 (proc_encryption_packets): Fix call of do_proc_packets.
12139 * g10/packet.h (struct pubkey_enc_list): Define.
12140 * g10/pubkey-enc.c (get_it): Change the second argument K.
12141 (get_session_key): Select session key by LIST, using enum_secret_keys.
12142 * g10/gpgv.c (get_session_key): Change the second argument K.
12143 * g10/test-stubs.c (get_session_key): Likewise.
12145 2018-08-10 NIIBE Yutaka <gniibe@fsij.org>
12147 g10: Fix undefined behavior when EOF in parsing packet for S2K.
12148 + commit 1b309d9f6199a91caa0ca0b97b92d599e00b736e
12149 * g10/parse-packet.c (parse_symkeyenc): Use iobuf_get_noeof.
12150 (parse_key): Likewise.
12152 2018-07-27 Werner Koch <wk@gnupg.org>
12154 gpg: Set a limit for a WKD import of 256 KiB.
12155 + commit e88f56f1937ac92f6a3b94e50b6db2649ec0be41
12156 * g10/call-dirmngr.c (MAX_WKD_RESULT_LENGTH): New.
12157 (gpg_dirmngr_wkd_get): Use it.
12159 dirmngr: Validate SRV records in WKD queries.
12160 + commit ebe727ef596eefebb5eff7d03a98649ffc7ae3ee
12161 * dirmngr/server.c (proc_wkd_get): Check the returned SRV record names
12162 to mitigate rogue DNS servers.
12164 common: New function to validate domain names.
12165 + commit ddee9f9409fb5a089883eab0fadef7b9b7e61e72
12166 * common/mbox-util.c (is_valid_domain_name): New.
12167 * common/t-mbox-util.c (run_dns_test): New test.
12169 2018-07-26 Jiří Keresteš <jiri.kerestes@trustica.cz>
12171 scd: Add support for Trustica Cryptoucan.
12172 + commit 967d3649d24aba623133808e8d01675dff389fbb
12175 2018-07-25 Werner Koch <wk@gnupg.org>
12177 dirmngr: Print a WARNING status for DNS config problems.
12178 + commit bd4048c533165fd82340354d7229fcc2220db5a5
12179 * dirmngr/dirmngr-status.h: New.
12180 * dirmngr/dirmngr.h: Include dirmngr-status.h and move some prototypes
12182 * dirmngr/t-support.c: New.
12183 * dirmngr/Makefile.am (dirmngr_SOURCES): Add dirmngr-status.h.
12184 (t_common_src): Add t-support.c.
12185 * dirmngr/server.c (dirmngr_status_printf): Bypass if CTRL is NULL.
12186 * dirmngr/dns-stuff.c: Include dirmngr-status.h.
12187 (libdns_init): Print WARNING status line. Change call callers to take
12188 and pass a CTRL argument.
12189 * g10/call-dirmngr.c (ks_status_cb): Print info for new WARNING
12192 2018-07-24 Werner Koch <wk@gnupg.org>
12194 gpg: Use 128 MiB as default AEAD chunk size.
12195 + commit 9aa1b368efd4edf51b6d056339bffb726de5162b
12196 * g10/gpg.c (oDebugAllowLargeChunks): New.
12197 (opts): New option --debug-allow-large-chunks.
12198 (main): Implement that option.
12200 2018-07-09 Werner Koch <wk@gnupg.org>
12202 gpg: Remove multiple subkey bindings during export-clean.
12203 + commit 76989d5bd89ed11f5b3656dc4748fcfc939a46dc
12204 * g10/key-clean.c (clean_one_subkey_dupsigs): New.
12205 (clean_all_subkeys): Call it.
12207 gpg: Let export-clean remove expired subkeys.
12208 + commit c2fd65ec8498a08ee36ca52d99b6b014f6db8d93
12209 * g10/key-clean.h (KEY_CLEAN_NONE, KEY_CLEAN_INVALID)
12210 (KEY_CLEAN_ENCR, KEY_CLEAN_AUTHENCR, KEY_CLEAN_ALL): New.
12211 * g10/key-clean.c (clean_one_subkey): New.
12212 (clean_all_subkeys): Add arg CLEAN_LEVEL.
12213 * g10/import.c (import_one): Call clean_all_subkeys with
12215 * g10/export.c (do_export_stream): Call clean_all_subkeys depedning on
12216 the export clean options.
12218 gpg: Split key cleaning function for clarity.
12219 + commit 6c3567196f7e72552f326ce07dccbcce31926e5d
12220 * g10/key-clean.c (clean_key): Rename to clean_all_uids and split
12221 subkey cleaning into ...
12222 (clean_all_subkeys): new. Call that always after the former clean_key
12225 2018-07-06 Werner Koch <wk@gnupg.org>
12227 gpg: Move key cleaning functions to a separate file.
12228 + commit 135e46ea480d749b8a9692f71d4d0bfdadd8ee2f
12229 * g10/trust.c (mark_usable_uid_certs, clean_sigs_from_uid)
12230 (clean_uid_from_key, clean_one_uid, clean_key): Move to ...
12231 * g10/key-clean.c: new file.
12232 * g10/key-clean.h: New.
12233 * g10/Makefile.am (gpg_sources): Add new files.
12234 * g10/export.c, g10/import.c, g10/keyedit.c, g10/trustdb.c: Include
12236 * g10/trustdb.h (struct key_item, is_in_klist): Move to ...
12237 * g10/keydb.h: here.
12239 2018-07-05 Werner Koch <wk@gnupg.org>
12241 po: Add flag options for xgettext.
12242 + commit cb71573f376235036c98143155e964a15cfcb250
12243 * po/Makevars (XGETTEXT_OPTIONS): Add --flag options.
12245 gpg: Prepare for signatures with ISSUER_FPR but without ISSUER.
12246 + commit f7526c7bc754acf68bde0b79c785e875a9365d60
12247 * g10/getkey.c (get_pubkey_for_sig): New.
12248 (get_pubkeyblock_for_sig): New.
12249 * g10/mainproc.c (issuer_fpr_raw): Give global scope.
12250 (check_sig_and_print): Use get_pubkeyblock_for_sig.
12251 * g10/pkclist.c (check_signatures_trust): Use get_pubkey_for_sig.
12252 * g10/sig-check.c (check_signature2): Ditto.
12253 (check_signature_over_key_or_uid): Ditto.
12255 tools: Add experimental code for a pairing protocol.
12256 + commit faf3c70c7715ba86eb56fdccc6cf831bf87b2ee0
12257 * configure.ac (GNUPG_CACHE_DIR): New const.
12258 * tools/Makefile.am (libexec_PROGRAMS): Add gpg-pair-tool.
12259 (gpg_pair_tool_SOURCES, gpg_pair_tool_CFLAGS)
12260 (gpg_pair_tool_LDADD): New.
12261 * tools/gpg-pair-tool.c: New.
12263 2018-07-04 Werner Koch <wk@gnupg.org>
12265 gpg: Ignore too large user ids during import.
12266 + commit 01cd66f9faf1623833e6afac84164de5a136ecff
12267 * g10/import.c (read_block): Add special treatment for bad user ids
12268 and comment packets.
12270 gpg: Extra check for sign usage when verifying a data signature.
12271 + commit 214b0077264e35c079e854a8b6374704aea45cd5
12272 * g10/sig-check.c (check_signature_end_simple): Check sign usage.
12274 2018-07-03 NIIBE Yutaka <gniibe@fsij.org>
12276 g10: Fix memory leak for PKT_signature.
12277 + commit 996febbab21eb9283b0634e51303a36b318734a6
12278 * g10/getkey.c (buf_to_sig): Free by free_seckey_enc.
12279 * g10/gpgcompose.c (signature): Likewise.
12280 * g10/sign.c (write_signature_packets): Likewise.
12282 2018-07-02 Werner Koch <wk@gnupg.org>
12284 agent: New commands PUT_SECRET and GET_SECRET.
12285 + commit 8a915cd9faf052b4faa3c415f2ac5aa8d6ea1efe
12286 * agent/agent.h (CACHE_MODE_DATA): New const.
12287 * agent/cache.c (DEF_CACHE_TTL_DATA): new.
12288 (housekeeping): Tweak for CACHE_MODE_DATA.
12289 (cache_mode_equal): Ditto.
12290 (agent_get_cache): Ditto.
12291 (agent_put_cache): Implement CACHE_MODE_DATA.
12292 * agent/command.c (MAXLEN_PUT_SECRET): New.
12294 (cmd_get_secret): New.
12295 (cmd_put_secret): New.
12296 (register_commands): Register new commands.
12298 common: New function percent_data_escape.
12299 + commit 58baf40af641f8cbf597e508a292e85ae94688f1
12300 * common/percent.c (percent_data_escape): New.
12301 * common/t-percent.c (test_percent_data_escape): New.
12303 agent: Fix segv running in --server mode.
12304 + commit 3978df943dc7a4781a23382be2d3b4a96a04f71f
12305 * agent/command.c (start_command_handler): Do not write to
12306 CLIENT_CREDS after an error.
12308 2018-07-02 NIIBE Yutaka <gniibe@fsij.org>
12310 libdns: For SOCKS connection, just fails.
12311 + commit 1aacd12471935a354cfd85ee1805edc7eb16e6c5
12312 * dirmngr/dns.c (dns_res_exec): If it's DNS_SO_SOCKS_CONN, don't
12313 iterate to other server, but return the error immediately.
12315 2018-06-21 Werner Koch <wk@gnupg.org>
12317 gpg: Print revocation reason for "rev" records.
12318 + commit 592deeddb9bf4ae9b3e236b439e2f39644eb6d46
12319 * g10/main.h: Add prototype.
12320 * g10/keylist.c (list_keyblock_print): Print revocation info.
12321 (list_keyblock_colon): Ditto.
12323 * g10/test-stubs.c (get_revocation_reason): New stub.
12324 * g10/gpgv.c (get_revocation_reason): New stub.
12326 gpg: Print revocation reason for "rvs" records.
12327 + commit b7cd2c2093ae1b47645be50fa1d431a028187cad
12328 * g10/import.c (get_revocation_reason): New.
12329 (list_standalone_revocation): Extend function.
12331 gpg: Let --show-keys print revocation certificates.
12332 + commit 386b9c4f25b28fd769d7563f2d86ac3a19cc3011
12333 * g10/import.c (list_standalone_revocation): New.
12334 (import_revoke_cert): Call new function.
12336 build: Remove duplicates from AC_CHECK_FUNCS.
12337 + commit 7e9aa307f76cdf2f624d43a35a8266e8b4e473f9
12338 * configure.ac (AC_CHECK_FUNCS): Fold most calls into one.
12340 2018-06-20 NIIBE Yutaka <gniibe@fsij.org>
12342 libdns: Let kernel to decide the local port.
12343 + commit 861f1da0731bf29dcb9221c4f22c76b40ec15a78
12344 * dirmngr/dns.c (LEAVE_SELECTION_OF_PORT_TO_KERNEL): New.
12345 (dns_socket): Don't select ephemeral port in user space.
12347 2018-06-19 Werner Koch <wk@gnupg.org>
12349 wks: Take name of sendmail from configure.
12350 + commit 08147f8bbdca40c98c2a094fa48fab15b8339c80
12351 * configure.ac (NAME_OF_SENDMAIL): New ac_define.
12352 * tools/send-mail.c (run_sendmail): Use it.
12354 2018-06-18 NIIBE Yutaka <gniibe@fsij.org>
12356 libdns: Fix for non-FQDN hostname.
12357 + commit a4a054bf14fa855715faee01a152755c4e2a74f7
12358 * dirmngr/dns.c (dns_resconf_open): Clear search[0] for non-FQDN
12361 2018-06-15 NIIBE Yutaka <gniibe@fsij.org>
12363 libdns: Fix connect and try next nameserver when ECONNREFUSED.
12364 + commit bcdbf8b8ebe9d61160e0b007dabe1b6462ffbc93
12365 * dirmngr/dns.c (dns_so_check): When EINVAL, release the association
12366 by connect with AF_UNSPEC and try again. Also try again for
12368 (dns_res_exec): Try next nameserver when ECONNREFUSED.
12370 libdns: Clear struct sockaddr_storage by zero.
12371 + commit 1c0b6681e4f322b88ac35d1f21c03d3cfc35fc23
12372 * dirmngr/dns.c (dns_resconf_pton): Clear SS.
12373 (dns_resconf_setiface): Clear ->IFACE.
12374 (dns_hints_root, send_query): Clear SS.
12376 2018-06-14 NIIBE Yutaka <gniibe@fsij.org>
12378 libdns: Sync to upstream.
12379 + commit 3e6ad302eaf3a4a9f3e60379133b3dfdbe0e1b2d
12380 * dirmngr/dns.c (dns_nssconf_loadfile): Handle exclamation mark.
12382 dirmngr: Fix recursive resolver mode.
12383 + commit 5b40338f12762cd74238c2d2b3101c33dd2d0ed3
12384 * dirmngr/dns-stuff.c (libdns_init): Initialize options.recurse.
12386 2018-06-12 Werner Koch <wk@gnupg.org>
12388 Some preparations to eventuallt use gpgrt_argparse.
12389 + commit cb52eb76b3ba0269742c5322e10a2b5151dafaf2
12390 * configure.ac (GNUPG_DEF_COPYRIGHT_LINE: New.
12391 * tools/watchgnupg.c (print_version): USe this macro.
12392 * common/init.c (_init_common_subsystems): Register argparse
12395 Require libgpg-error 1.29 and remove internal logging functions.
12396 + commit 440472663d608660343c54f09172c851f5127c9c
12397 * configure.ac (NEED_GPG_ERROR_VERSION): Set to 1.29
12398 * common/util.h: Remove replacement error codes.
12399 * common/logging.h: Remove fallback to internal logging functions.
12400 * common/logging.c: Remove.
12401 * common/Makefile.am (common_sources): Remove logging.c
12403 gpg: Do not import revocations with --show-keys.
12404 + commit fe621cc64b13b00914633630f28b4b417892d629
12405 * g10/import.c (import_revoke_cert): Add arg 'options'. Take care of
12408 2018-06-12 NIIBE Yutaka <gniibe@fsij.org>
12410 card: Fix memory leak for fetch-url sub command.
12411 + commit 8f99299a54a0ac09f9c90c1085b704db78973fda
12412 * g10/card-util.c (fetch_url): Release INFO.
12414 2018-06-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12416 gpg: Add new usage option for drop-subkey filters.
12417 + commit 2ddfb5bef920919443309ece9fa2930282bbce85
12418 * g10/import.c (impex_filter_getval): Add new "usage" property for
12419 drop-subkey filter.
12421 2018-06-11 Werner Koch <wk@gnupg.org>
12423 gpg: Set some list options with --show-keys.
12424 + commit d2bc66f241a66cc95140cbb3a07555f6301290ed
12425 * g10/gpg.c (main): Set some list options.
12427 2018-06-08 Werner Koch <wk@gnupg.org>
12429 gpg: Sanitize diagnostic with the original file name.
12430 + commit 13f135c7a252cc46cff96e75968d92b6dc8dce1b
12431 * g10/mainproc.c (proc_plaintext): Sanitize verbose output.
12433 2018-06-07 Werner Koch <wk@gnupg.org>
12435 gpg: Improve import's repair-key duplicate signature detection.
12436 + commit 26746fe65d14a00773473c2d0d271406a5105bca
12437 * g10/key-check.c (key_check_all_keysigs): Factor some code out to ...
12438 (remove_duplicate_sigs): new.
12439 (key_check_all_keysigs): Call remove_duplicate_sigs again after
12442 gpg: Fix import's repair-key duplicate signature detection.
12443 + commit 26bce2f01d2029ea2b8a8dbbe36118e3c83c5cba
12444 * g10/packet.h (PKG_siganture): Add field 'help_counter'.
12445 * g10/key-check.c (sig_comparison): Take care of HELP_COUNTER.
12446 (key_check_all_keysigs): De-duplicate on a per-block base.
12448 gpg: Improve verbose output during import.
12449 + commit 1bc6b5174248ba4d83d648ef6d6f4550540d1f20
12450 * g10/import.c (chk_self_sigs): Print the subkeyid in addition to the
12452 (delete_inv_parts): Ditto.
12454 2018-06-06 Werner Koch <wk@gnupg.org>
12456 agent: Add DBUS_SESSION_BUS_ADDRESS et al. to the startup list.
12457 + commit 7ffc1ac7dd95d4cc1897a4c36d5cd628741c12f2
12458 * agent/gpg-agent.c (agent_copy_startup_env): Replace explicit list
12459 with the standard list.
12461 gpg: Also detect a plaintext packet before an encrypted packet.
12462 + commit 344b548dc71657d0285d93f78f17a2663b5e586f
12463 * g10/mainproc.c (proc_encrypted): Print warning and later force an
12466 gpg: New command --show-keys.
12467 + commit 257661d6ae0ca376df758c38fabab2316d10e3a9
12468 * g10/gpg.c (aShowKeys): New const.
12469 (opts): New command --show-keys.
12470 (main): Implement command.
12471 * g10/import.c (import_keys_internal): Don't print stats in show-only
12473 (import_one): Be silent in show-only mode.
12475 2018-06-05 NIIBE Yutaka <gniibe@fsij.org>
12477 g10: Remove bogus comment.
12478 + commit d2e6b3ea1d70db1039a828fb3a978a4504f8f0c5
12479 * g10/mainproc.c (proc_pubkey_enc): Remove a comment.
12481 2018-05-31 Werner Koch <wk@gnupg.org>
12483 gpg: Print a hint on how to decrypt a non-mdc message anyway.
12484 + commit 874e391665405fc413a69f2ffacdb94bb08da7ff
12485 * g10/mainproc.c (proc_encrypted): Print a hint for legacy ciphers w/o
12486 MDC. Also print a dedicated status error code
12488 2018-05-30 Werner Koch <wk@gnupg.org>
12490 gpg: Ignore the multiple message override options.
12491 + commit d3d41146b33040eb65eaaaffcfc7b4211e60bd95
12492 * g10/gpg.c (oAllowMultisigVerification)
12493 (oAllowMultipleMessages, oNoAllowMultipleMessages): Remove.
12494 (opts): Turn --allow-multisig-verification, --allow-multiple-messages
12495 and --no-allow-multiple-messages into NOPs
12496 * g10/options.h (struct opt): Remove flags.allow_multiple_messages.
12497 * g10/mainproc.c (proc_plaintext): Assume allow_multiple_messages is
12500 gpg: Detect multiple literal plaintext packets more reliable.
12501 + commit 97183b5c0fae05fcda942caa7df14ee6a133d846
12502 * g10/mainproc.c (proc_encrypted): Bump LITERALS_SEEN.
12504 2018-05-29 Werner Koch <wk@gnupg.org>
12506 gpg: Remove PGP6 compliance mode.
12507 + commit b2c05d691247a79fb46f75b653cbc4bf518c1c2a
12508 * g10/gpg.c: Make --pgp6 an alias for --pgp7.
12509 * common/compliance.h (gnupg_compliance_mode): Remove CO_PGP6.
12510 * g10/options.h (PGP6): Remove. Adjust all users.
12512 gpg: Remove MDC options.
12513 + commit 253e8bdd9014cbe6dc06adce9d9dd2f8f4b31709
12514 * g10/gpg.c: Tuen options --force-mdc, --no-force-mdc, --disable-mdc
12515 and --no-disable-mdc into NOPs.
12516 * g10/encrypt.c (use_mdc): Simplify. MDC is now almost always used.
12517 (use_aead): Ignore MDC options. Print warning for missing MDC feature
12519 * g10/pkclist.c (warn_missing_mdc_from_pklist): Rename to ...
12520 (warn_missing_aead_from_pklist): this and adjust.
12522 gpg: Fix detection of the AEAD feature flag.
12523 + commit af4a5dbe575f304838db358aaeb45741f149d0a7
12524 * g10/getkey.c (fixup_uidnode): Use bitmask 0x02.
12526 2018-05-15 Werner Koch <wk@gnupg.org>
12528 gpg: Hard fail on a missing MDC even for legacy algorithms.
12529 + commit d1431901f0143cdc7af8d1a23387e0c6b5bb613f
12530 * g10/mainproc.c (proc_encrypted): Require an MDC or AEAD
12531 * tests/openpgp/defs.scm (create-gpghome): Use --ignore-mdc-error to
12532 allow testing with the current files.
12534 gpg: Turn --no-mdc-warn into a NOP.
12535 + commit 96350c5d5afcbc7f66c535e38b9fcc7355622855
12536 * g10/gpg.c (oNoMDCWarn): Remove.
12537 (opts): Make --no-mdc-warn a NOP.
12538 (main): Don't set var.
12539 * g10/options.h (struct opt): Remove 'no_mdc_var'.
12540 * g10/cipher-cfb.c (write_header): Assume opt.no_mdc_warn is false.
12541 * g10/mainproc.c (proc_encrypted): Ditto.
12543 2018-05-07 Ineiev <ineiev@gnu.org>
12545 doc: Update description of displayed trust values.
12546 + commit ed12a1dabaf928e8620fc26ca426c935e1a8a880
12547 * doc/trust-values.texi: New file.
12548 * doc/Makefile.am (EXTRA_DIST): Add trust-values.texi.
12549 * doc/gnupg.texi (Trust Values): New chapter.
12550 * doc/gpg.texi (OpenPGP Key Management): Update the description
12551 of how trust values are displayed, replace table with a reference
12553 * doc/gpg.texi (GPG Examples): Add @mansect trust values.
12555 2018-05-02 Werner Koch <wk@gnupg.org>
12558 + commit d31d149196832ed6b8849017d8bcd0852c6ca96c
12561 gpg: Fix minor memory leak in the compress filter.
12562 + commit d26363e4f1933781c86cbe87077fbf1b9a2b64d8
12563 * g10/compress.c (push_compress_filter2): Return an error if no filter
12565 (push_compress_filter): Ditto.
12566 (handle_compressed): Free CFX if no filter was pushed.
12567 * g10/import.c (read_block): Ditto.
12569 gpg: Fix "Too many open files" when using --multifile.
12570 + commit f7f3043653abe699602f910ddd09c1405675c7f6
12571 * common/miscellaneous.c (is_file_compressed): Don't cache the file.
12573 dirmngr: Implement timeout for dirmngr_ldap under Windows.
12574 + commit 007dde93cc3971cb51d08e8c082e172506ae7f80
12575 * dirmngr/dirmngr_ldap.c (alarm_thread) [W32]: New.
12576 (set_timeout): Implement for W32.
12578 build: New configure option to help with nPth debugging.
12579 + commit ddfd39e91a532fd31cd0c20c5d4cf9643acc58bd
12580 * configure.ac: Add option --enable-npth-debug
12582 2018-05-02 Andre Heinecke <aheinecke@intevation.de>
12584 common,w32: Hide spawned processes by default.
12585 + commit 3bd793256e2e4be52075d50ccf2df70c4a2e1a0f
12586 * common/exechelp-w32.c (gnupg_spawn_process): Use SW_HIDE
12587 instead of SW_MINIMIZE.
12589 2018-04-30 Werner Koch <wk@gnupg.org>
12591 dirmngr: Sleep in the ldap wrapper thread.
12592 + commit a598bbeeafa30f7854230eed212b76d5c5c77f86
12593 * dirmngr/ldap-wrapper.c (wrapper_list): Rename to reaper_list.
12594 (ldap_reaper_thread): Protect all list modification with a mutex. Use
12595 a condition var to wake up the reaper thread.
12597 2018-04-27 Werner Koch <wk@gnupg.org>
12599 dirmngr: Use the LDAP wrapper process also for Windows.
12600 + commit f9fbfc64e402bd41815a68426f55565fa6d5c726
12601 * dirmngr/ldap-wrapper.c: Revamp module to make use of es_poll for
12603 * configure.ac: Always use the ldap wrapper.
12605 dirmngr: Silence log output from dirmngr_ldap.
12606 + commit d22506a343cec61b7d1a48c970b63a8458b267ab
12607 * dirmngr/dirmngr_ldap.c: Remove assert.h.
12608 (main): Replace assert by log_assert.
12609 * dirmngr/ldap.c (run_ldap_wrapper): Use debug options to pass
12610 verbose options to dirmngr_ldap.
12611 (start_cert_fetch_ldap): Ditto.
12613 2018-04-26 Werner Koch <wk@gnupg.org>
12615 dirmngr: Lower the dead host resurrection time to 1.5h.
12616 + commit 5789afc840cf79ba2a8cebd9d772ef9c3868c5e9
12617 * dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): Decrease.
12618 (INITIAL_HOSTTABLE_SIZE): Increase because the old values was likely
12621 dirmngr: Fix handling of CNAMEed keyserver pools.
12622 + commit cc66108253c58583d6bad3d1e2da2b004701d0f0
12623 * dirmngr/ks-engine-hkp.c (map_host): Don't use the cname for HTTPHOST.
12624 * dirmngr/server.c (make_keyserver_item): Map keys.gnupg.net.
12626 2018-04-25 Werner Koch <wk@gnupg.org>
12628 dirmngr: Add the used TLS library to the debug output.
12629 + commit bb8894760fe87cf46a42599f11eab7e7c7a8eb71
12630 * dirmngr/http.c (send_request): Print the used TLS library in debug
12633 dirmngr: Allow redirection from https to http for CRLs.
12634 + commit 1de4462974113ac18cf98f903e97cd1127fa842f
12635 * dirmngr/ks-engine.h (KS_HTTP_FETCH_NOCACHE): New flag.
12636 (KS_HTTP_FETCH_TRUST_CFG): Ditto.
12637 (KS_HTTP_FETCH_NO_CRL): Ditto.
12638 (KS_HTTP_FETCH_ALLOW_DOWNGRADE): Ditto.
12639 * dirmngr/ks-engine-http.c (ks_http_fetch): Replace args send_no_cache
12640 and extra_http_trust_flags by a new flags arg. Allow redirectiong
12641 from https to http it KS_HTTP_FETCH_ALLOW_DOWNGRADE is set.
12642 * dirmngr/loadswdb.c (fetch_file): Call with KS_HTTP_FETCH_NOCACHE.
12643 * dirmngr/ks-action.c (ks_action_get): Ditto.
12644 (ks_action_fetch): Ditto.
12645 * dirmngr/crlfetch.c (crl_fetch): Call with the appropriate flags.
12647 dirmngr: Implement CRL fetching via https.
12648 + commit 705d8e9cf0d109005b3441766270c0e584f7847d
12649 * dirmngr/http.h (HTTP_FLAG_TRUST_CFG): New flag.
12650 * dirmngr/http.c (http_register_cfg_ca): New.
12651 (http_session_new) [HTTP_USE_GNUTLS]: Implement new trust flag.
12652 * dirmngr/certcache.c (load_certs_from_dir): Call new function.
12653 (cert_cache_deinit): Ditto.
12654 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
12655 * dirmngr/ks-engine-http.c (ks_http_fetch): Add new args
12656 'send_no_cache' and 'extra_http_trust_flags'. Change all callers to
12657 provide the default value.
12658 * dirmngr/crlfetch.c (crl_fetch): Rewrite to make use of
12661 2018-04-25 NIIBE Yutaka <gniibe@fsij.org>
12663 g10: Fix printing the keygrip with --card-status.
12664 + commit 71903eee89496e3f1d0a24536bced6ff16df6783
12665 * g10/card-util.c (current_card_status): Keygrip for Auth is 3.
12667 2018-04-24 Werner Koch <wk@gnupg.org>
12669 dirmngr: Fallback to CRL if no default OCSP responder is configured.
12670 + commit 460e3812be711bd18195053d74aa736215f21eee
12671 * dirmngr/server.c (cmd_isvalid): Use option second arg to trigger
12672 OCSP checkibng. Fallback to CRL if no default OCSP responder has been
12674 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Adjust accordingly.
12676 2018-04-20 Andre Heinecke <aheinecke@intevation.de>
12678 dirmngr: More binary I/O on Windows for CRLs.
12679 + commit 64c1fddb253061a9773c6c4ed2a9c5a54702d21b
12680 * dirmngr/crlcache.c (lock_db_file, crl_cache_insert): Open cache
12681 file in binary mode.
12683 doc: Remove unneccesary empty flags in vsndf.prf.
12684 + commit a44ed3d9a1ad5bd96694f10ea5523c517982017e
12685 * doc/examples/vsnfd.prf (max-cache-ttl): Remove empty flags.
12687 2018-04-16 emma peel <emma.peel@aktivix.org>
12689 po: more updates to Spanish translation.
12690 + commit acd6d5ff7436bb7fba171ced3294046a14fb777d
12693 po: correct attribution for Spanish translation.
12694 + commit 21b2e88a7e6c3d7313773c9ffb3e0d1fb2af45df
12697 po: correct label tags in Polish translation.
12698 + commit a5290dace7f85d66272af3e14f9f2bc43d2a4af8
12701 po: correct label tags in Finnish translation.
12702 + commit e12475429578add12a53fb2232cb45dc9e2aae1b
12705 2018-04-15 Werner Koch <wk@gnupg.org>
12707 build: New target "release" to automate the release process.
12708 + commit 3b1ee413a65bf566aa8e5f29a5a2cd5a94e66faa
12709 * Makefile.am (RELEASE_ARCHIVE_DIR): New.
12710 (RELEASE_SIGNING_KEY): New.
12711 (AM_DISTCHECK_CONFIGURE_FLAGS): Remove removed --enable-gpg2-is-gpg,
12712 (RELEASE_NAME, RELEASE_W32_STEM_NAME): New.
12713 (release, sign-release): New.
12715 2018-04-13 NIIBE Yutaka <gniibe@fsij.org>
12717 g10: Fix memory leak in check_sig_and_print.
12718 + commit f747b8f0734338baa1e608b193b213aca2c577e8
12719 * g10/mainproc.c (check_sig_and_print): Free the public key.
12721 g10: Push compress filter only if compressed.
12722 + commit c31abf84659dbda5503dd9f3aa3449520bcd1b84
12723 * g10/compress.c (handle_compressed): Fix memory leak.
12725 2018-04-12 Werner Koch <wk@gnupg.org>
12727 gpg: Extend the "sig" record in --list-mode.
12728 + commit 69c3e7acb744e1e5606a4d946e3b948704cfbbae
12729 * g10/getkey.c (get_user_id_string): Add arg R_NOUID. Change call
12731 (get_user_id): Add arg R_NOUID. Change call callers.
12732 * g10/mainproc.c (issuer_fpr_string): Make global.
12733 * g10/keylist.c (list_keyblock_colon): Print a '?' for a missing key
12734 also in --list-mode. Print the "issuer fpr" field also if there is an
12735 issuer fingerprint subpacket.
12737 gpg: Extend the ERRSIG status line with a fingerprint.
12738 + commit 23a714598c247d78cfda46a6dc338b17e17cc194
12739 * g10/mainproc.c (issuer_fpr_raw): New.
12740 (issuer_fpr_string): Re-implement using issuer_fpr_rtaw.
12741 (check_sig_and_print): Don't free ISSUER_FPR. Use ISSUER_FPR_RAW.
12742 Use write_status_printf. Extend ERRSIG status.
12744 gpg: Relax printing of STATUS_FAILURE.
12745 + commit e2bd152a928d79ddfb95fd2f7911c80a1a8d5a21
12746 * g10/gpg.c (g10_exit): Print STATUS_FAILURE only based on passed
12747 return code and not on the presence of any call to log_error.
12749 agent,dirmngr: Add "getenv" to the getinfo command.
12750 + commit bbb5bfacc0d1f179cfec94fd32fee01a09df0f1d
12751 * agent/command.c (cmd_getinfo): Add sub-command getenv.
12752 * dirmngr/server.c (cmd_getinfo): Ditto.
12754 2018-04-12 Andre Heinecke <aheinecke@intevation.de>
12756 build: Update getswdb version check to 2.2.
12757 + commit 327fece0aed2c9974659c72304f9fd1f461d460c
12758 * build-aux/getswdb.sh: Check for gnupg22_ver gnupg21_ver no
12761 2018-04-11 Werner Koch <wk@gnupg.org>
12763 gpg: New option --no-symkey-cache.
12764 + commit 789d240cb40ab36406a7c57ad49897e0bafbb41e
12765 * g10/gpg.c (oNoSymkeyCache): New.
12766 (opts): Add that option.
12768 * g10/options.h (struct opt): New field no_symkey_cache.
12769 * g10/passphrase.c (passphrase_to_dek): Implement that feature.
12771 2018-04-10 Werner Koch <wk@gnupg.org>
12773 agent: Improve the unknown ssh flag detection.
12774 + commit 9f69dbeb902ac447adbc92937cd451c4e909f234
12775 * agent/command-ssh.c (ssh_handler_sign_request): Simplify detection
12778 2018-04-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12780 agent: unknown flags on ssh signing requests cause an error.
12781 + commit 381c46818ffa4605d0ca39818fe317de445eb6de
12782 * agent/command-ssh.c (ssh_handler_sign_request): if a flag is passed
12783 during an signature request that we do not know how to apply, return
12784 GPG_ERR_UNKNOWN_OPTION.
12786 agent: change documentation reference for ssh-agent protocol.
12787 + commit 55435cdd4fe4fbfbcba1098bb715ecd6171ba2d8
12788 * agent/command-ssh.c: repoint documentation reference.
12790 2018-04-09 Werner Koch <wk@gnupg.org>
12793 + commit 6fbe2ddbaf5123ae444c95fdf8da67840f794c76
12796 gpg,w32: Fix empty homedir when only a drive letter is used.
12797 + commit 6da7aa1e7c80d214bd9dccb21744919ae191f2c8
12798 * common/homedir.c (copy_dir_with_fixup): New.
12799 (default_homedir): Use here.
12800 (gnupg_set_homedir): And here .
12802 doc: Document --key-edit:change-usage.
12803 + commit a4e26f2ee852003707857ab0635b783acb89a2f8
12804 * g10/keyedit.c (menu_changeusage): Make strings translatable.
12806 2018-04-06 Werner Koch <wk@gnupg.org>
12808 gpg: Check that a key may do certifications.
12809 + commit 1a5d95e7319e7e6f0dd11064a26cbbc371b05214
12810 * g10/sig-check.c (check_signature_end_simple): Check key usage for
12812 (check_signature_over_key_or_uid): Request usage certification.
12814 gpg: Emit FAILURE stati now in almost all cases.
12815 + commit 0336e5d1a7b9d46e06c838e6a98aecfcc9542882
12816 * g10/cpr.c (write_status_failure): Make it print only once.
12817 * g10/gpg.c (wrong_args): Bump error counter.
12818 (g10_exit): Print a FAILURE status if we ever did a log_error etc.
12819 (main): Use log_error instead of log_fatal at one place. Print a
12820 FAILURE status for a bad option. Ditto for certain exit points so
12821 that we can see different error locations.
12823 gpg: Re-indent sig-check.c and use signature class macros.
12824 + commit 5ba74a134db431530884f03eea5410a68dbfe0f5
12825 * g10/keydb.h (IS_BACK_SIG): New.
12826 * g10/sig-check.c: Re-indent and use macros.
12828 2018-04-06 NIIBE Yutaka <gniibe@fsij.org>
12830 agent: Support SSH signature flags.
12831 + commit 80b775bdbb852aa4a80292c9357e5b1876110c00
12832 * agent/command-ssh.c (SSH_AGENT_RSA_SHA2_256): New.
12833 (SSH_AGENT_RSA_SHA2_512): New.
12834 (ssh_handler_sign_request): Override SPEC when FLAGS
12837 2018-04-05 NIIBE Yutaka <gniibe@fsij.org>
12839 g10: Let card-edit/key-attr show message when change.
12840 + commit 870527df0dd704c994928348c8c2910030776680
12841 * g10/card-util.c (ask_card_rsa_keysize): Don't show message here.
12842 (ask_card_keyattr): Show message when change, also for ECC.
12844 2018-04-04 NIIBE Yutaka <gniibe@fsij.org>
12846 tests: Fix no gpg-agent upon removal of GNUPGHOME.
12847 + commit 83529e1bd14a6d39f2a8ecab9fb6aa4c1f344c73
12848 * tests/gpgscm/gnupg.scm (with-ephemeral-home-directory): Add
12850 * tests/gpgsm/export.scm: Use -no-atexit version and stop-agent.
12851 * tests/openpgp/decrypt-session-key.scm: Likewise.
12852 * tests/openpgp/decrypt-unwrap-verify.scm: Likewise.
12853 * tests/openpgp/defs.scm (have-opt-always-trust): Likewise.
12854 (setup-environment-no-atexit): New.
12855 (start-agent): Support no use of atexit.
12856 * tests/gpgsm/gpgsm-defs.scm (setup-gpgsm-environment-no-atexit): New.
12857 * tests/migrations/common.scm (untar-armored): Follow the change
12858 of with-ephemeral-home-directory.
12860 2018-04-03 NIIBE Yutaka <gniibe@fsij.org>
12862 scd: Writing KDF resets auth state.
12863 + commit cb1731c23cddfa524d3f51cfd82029bff853a073
12864 * scd/app-openpgp.c (do_setattr): Clear auth state.
12866 2018-04-02 NIIBE Yutaka <gniibe@fsij.org>
12868 g10: Fix filtering by PK->REQ_USAGE.
12869 + commit a17d2d1f690ebe5d005b4589a5fe378b6487c657
12870 * g10/getkey.c (get_pubkey_byfprint): Filter by PK->REQ_USAGE.
12872 2018-03-30 NIIBE Yutaka <gniibe@fsij.org>
12874 g10: Fix card-edit/kdf-setup for single salt.
12875 + commit 130ad98240c066383fa0a99bcf5e0ec72bc0dff9
12876 * g10/card-util.c (gen_kdf_data): Use SALT_USER.
12878 g10,scd: Support single salt for KDF data object.
12879 + commit 0c097575a9cd923f648fb5bb695893d46400c3ad
12880 * g10/card-util.c (gen_kdf_data): Support single salt.
12881 (kdf_setup): Can have argument for single salt.
12882 * scd/app-openpgp.c (pin2hash_if_kdf): Support single salt.
12884 g10: Add "key-attr" command for --card-edit.
12885 + commit 820380335a20391e0998fb1ba32ebfb9accedc5b
12886 * g10/card-util.c (key_attr): New explicit command.
12887 (generate_card_keys, card_generate_subkey): Don't ask key attr change.
12888 (card_edit): Add for cmdKEYATTR.
12890 scd: Support changing key attribute back to RSA.
12891 + commit 29692718768c28c524be6306081ab1852e75fe07
12892 * scd/app-openpgp.c (change_rsa_keyattr): Try usual RSA.
12894 2018-03-29 NIIBE Yutaka <gniibe@fsij.org>
12896 g10: Support key attribute change at --card-edit/generate.
12897 + commit a1515b3bbc10a210040dda3b482bcdb933fa8d7c
12898 * g10/card-util.c (ask_card_rsa_keysize): Drop support for magic
12899 number 25519 for ed25519/cv25519. Rename from ask_card_keyattr.
12900 (ask_card_keyattr): Support ECC, as well as RSA.
12901 (do_change_keyattr): Support ECC dropping magical number 25519.
12902 * g10/keygen.c (ask_curve): Allow call from outside, adding last arg
12904 (generate_keypair): Follow the change of ask_curve.
12905 (generate_subkeypair): Likewise.
12907 g10: check_pin_for_key_operation should be just before genkey.
12908 + commit 02d7bb819ff44cc90212568dd6ce24ae1dc5d17f
12909 * g10/card-util.c (generate_card_keys): Check PIN later.
12910 (card_generate_subkey): Likewise.
12912 2018-03-28 NIIBE Yutaka <gniibe@fsij.org>
12914 g10: Change ask_curve so that it can be used outside.
12915 + commit e610d51f0de11154050915b951bcc5c53c940f5e
12916 * g10/call-agent.h (struct key_attr): New.
12917 * g10/keygen.c (ask_curve): Return const char *. No allocation.
12918 (quick_generate_keypair): Follow the change.
12919 (generate_keypair, generate_subkeypair): Likewise.
12920 (parse_algo_usage_expire): Return const char *.
12922 2018-03-27 NIIBE Yutaka <gniibe@fsij.org>
12924 agent,scd: Use pointer to represent HANDLE.
12925 + commit 96918346beeca7a46de9f03f19502373994c21bc
12926 * agent/call-scd.c [HAVE_W32_SYSTEM] (start_scd): Format with %p.
12927 * scd/command.c [HAVE_W32_SYSTEM] (option_handler): Use void *.
12929 2018-03-27 Werner Koch <wk@gnupg.org>
12931 agent: Make the request origin a part of the cache items.
12932 + commit 02dce8c0cc57deb2095a9b06aeb8f4dea34eef7e
12933 * agent/cache.c (agent_put_cache): Add arg 'ctrl' and change all
12934 callers to pass it.
12935 (agent_get_cache): Ditto.
12937 * agent/cache.c (struct cache_items_s): Add field 'restricted'.
12938 (housekeeping): Adjust debug output.
12939 (agent_flush_cache): Ditto.
12940 (agent_put_cache): Ditto. Take RESTRICTED into account.
12941 (agent_get_cache): Ditto.
12943 2018-03-26 Werner Koch <wk@gnupg.org>
12945 gpg: Auto-fix a broken trustdb with just the version record.
12946 + commit eb68c2d3d1b03a18cd24406fa46d4c30cb13d9f7
12947 * g10/tdbio.c (get_trusthashrec): Create hashtable on error.
12949 gpg: Pass CTRL arg to get_trusthashrec.
12950 + commit a750ebebf35a392f1c72d6aee5618df0d9f25ff7
12951 * g10/tdbio.c (get_trusthashrec): Add arg CTRL.
12952 (tdbio_search_trust_byfpr): Ditto.
12953 (tdbio_search_trust_bypk): Ditto.
12955 gpg: Return better error codes in case of a too short trustdb.
12956 + commit 403aa70c52e56614d65490dea9344113f9cf3d29
12957 * g10/tdbio.c (tdbio_read_record): Return GPG_ERR_EOF.
12958 (tdbio_new_recnum): Never return on error.
12959 (lookup_hashtable): Print a more descriptive error in case of !TABLE.
12961 gpg: Fix trustdb updates without lock held.
12962 + commit 456a3a8e93ea14f821e0e98fb515f284ece98685
12963 * g10/tdbio.c (is_locked): Turn into a counter.
12964 (take_write_lock, release_write_lock): Implement recursive locks.
12966 gpg: Disable unused code parts in tdbio.c.
12967 + commit 5f00531463ebc0e606c502696962426007545bb7
12968 * g10/tdbio.c (in_transaction): Comment this var.
12969 (put_record_into_cache): Comment the transaction code.
12970 (tdbio_sync): Ditto
12972 2018-03-23 Werner Koch <wk@gnupg.org>
12974 sm: Add OPTION request-origin.
12975 + commit 137644c9cb58deaaba6850f2763d9c5f9241cb0b
12976 * sm/server.c: Include shareddefs.h.
12977 (option_handler): Add option.
12979 gpg,sm: New option --request-origin.
12980 + commit 2cd35df5db3c4dfe37616dcfb1fcc644959449ef
12981 * g10/gpg.c (oRequestOrigin): New const.
12982 (opts): New option --request-origin.
12983 (main): Parse that option.
12984 * g10/options.h (struct opt): Add field request_origin.
12985 * g10/call-agent.c (start_agent): Send option to the agent.
12986 * sm/gpgsm.c (oRequestOrigin): New const.
12987 (opts): New option --request-origin.
12988 (main): Parse that option.
12989 * sm/gpgsm.h (struct opt): Add field request_origin.
12990 * sm/call-agent.c (start_agent): Send option to the agent.
12992 agent: New OPTION pretend-request-origin.
12993 + commit 05c55ee260edc07cd19da56dfd00347bfe3f529c
12994 * common/shareddefs.h (request_origin_t): New.
12995 * common/agent-opt.c (parse_request_origin): New.
12996 (str_request_origin): New.
12997 * agent/command.c (option_handler): Implement new option.
12999 2018-03-23 NIIBE Yutaka <gniibe@fsij.org>
13001 build: Fix the manual source field.
13002 + commit 5400a5bb77bddcb14c94d9405312d6181322b090
13005 2018-03-22 Werner Koch <wk@gnupg.org>
13007 gpg: Implement --dry-run for --passwd.
13008 + commit 165bc38cefbc03515403b60b704cabf4dc0b71f4
13009 * g10/keyedit.c (change_passphrase): Take care of --dry-run.
13011 2018-03-22 NIIBE Yutaka <gniibe@fsij.org>
13013 scd: Support KDF DO setup.
13014 + commit 0152ba7c987443d641ce1091c79f90ef2cc46498
13015 * g10/call-agent.c (learn_status_cb): Parse the capability for KDF.
13016 * g10/card-util.c (gen_kdf_data, kdf_setup): New.
13017 (card_edit): New admin command cmdKDFSETUP to call kdf_setup.
13018 * scd/app-openpgp.c (do_getattr): Emit KDF capability.
13020 2018-03-21 Werner Koch <wk@gnupg.org>
13022 gpg: Fix out-of-bound read in subpacket enumeration.
13023 + commit 983f7b2acbd1e7580652bbeb0c3d64f9dd19d9e4
13024 * g10/parse-packet.c (enum_sig_subpkt): Check buflen before reading
13025 the type octet. Print diagnostic.
13027 Change license of argparse.c back to LGPLv2.1.
13028 + commit fa0ed1c7e2eee7c559026696e6b21acc882a97aa
13029 * common/argparse.c, common/argparse.h: Change license
13031 2018-03-19 NIIBE Yutaka <gniibe@fsij.org>
13033 scd: signal mask should be set just after npth_init.
13034 + commit 11bbd99477ef5ba5b7db0c17607b10af03c68afb
13035 * scd/scdaemon.c (setup_signal_mask): New.
13036 (main): Call setup_signal_mask.
13037 (handle_connections): Remove signal mask setup.
13039 2018-03-16 NIIBE Yutaka <gniibe@fsij.org>
13041 scd: Better user interaction for factory-reset.
13042 + commit 2c85e202bc30231b9555100dec0c490c60d7b88c
13043 * g10/card-util.c (factory_reset): Dummy PIN size is now 32-byte.
13044 Connect the card again at the last step.
13046 2018-03-15 NIIBE Yutaka <gniibe@fsij.org>
13048 scd: Fix suspend/resume handling for CCID driver.
13049 + commit fd23a0524d8060ed12d87c679b7823686614aaee
13050 * scd/ccid-driver.c (intr_cb): Try submitting INTERRUPT urb
13051 to see if it's suspend/resume.
13053 2018-03-13 NIIBE Yutaka <gniibe@fsij.org>
13055 scd: After fatal error, shutdown a reader.
13056 + commit c84bae69e9e02923f7180e09d161cb0b13257436
13057 * scd/apdu.c (pcsc_send_apdu): Notify main loop after
13060 scd: Fix for GNU/Linux suspend/resume.
13061 + commit 71e5282c25ba812c7091e587edd721839bc4c2ac
13062 * configure.ac (require_pipe_to_unblock_pselect): Default is "yes".
13063 * scd/scdaemon.c (scd_kick_the_loop): Minor clean up.
13065 2018-03-12 NIIBE Yutaka <gniibe@fsij.org>
13067 scd: Fix typo in previous commit.
13068 + commit 655f0b9ad0138e6f960bf4befaf0eea569256614
13071 2018-03-09 NIIBE Yutaka <gniibe@fsij.org>
13073 scd: More fix with PC/SC for Windows.
13074 + commit 1e27c0e04cd3280d498dc8b72d2e410f6287f656
13075 * scd/apdu.c (pcsc_get_status): Return status based on CURRENT_STATUS.
13078 2018-03-08 NIIBE Yutaka <gniibe@fsij.org>
13080 scd: Fix status check when using PC/SC.
13081 + commit f8b8b6aac2ca1cb34d7a346aee1d874e7650557b
13082 * scd/apdu.c (struct reader_table_s): Add field of current_state.
13083 (new_reader_slot): Initialize current_state.
13084 (pcsc_get_status): Keep the status in READER_TABLE array.
13085 Return SW_HOST_NO_READER when PCSC_STATE_CHANGED.
13086 * scd/scdaemon.c (handle_connections): Silence a warning.
13088 2018-03-06 Werner Koch <wk@gnupg.org>
13090 agent: Also evict cached items via a timer.
13091 + commit f060cb5c63923d6caec784f65f3bb0aadf52f795
13092 * agent/cache.c (agent_cache_housekeeping): New func.
13093 * agent/gpg-agent.c (handle_tick): Call it.
13095 2018-03-01 Werner Koch <wk@gnupg.org>
13097 gpg: Print the keygrip with --card-status.
13098 + commit fd595c9d3642dba437fbe0f6e25d7aaaae095f94
13099 * g10/call-agent.h (agent_card_info_s): Add fields grp1, grp2 and
13101 * g10/call-agent.c (unhexify_fpr): Allow for space as delimiter.
13102 (learn_status_cb): Parse KEYPARIINFO int the grpX fields.
13103 * g10/card-util.c (print_keygrip): New.
13104 (current_card_status): Print "grp:" records or with --with-keygrip a
13105 human readable keygrip.
13107 2018-02-28 Andre Heinecke <aheinecke@intevation.de>
13109 gpgconf, w32: Allow UNC paths.
13110 + commit e43844c3b0b9ec93b7f2a88752bcd6b6244aacfb
13111 * tools/gpgconf-comp.c (get_config_filename): Allow UNC paths.
13113 2018-02-28 Werner Koch <wk@gnupg.org>
13115 gpg: Avoid writing a zero length last chunk in AEAD mode.
13116 + commit f2c09203b98b83669a460dc8161283de96022536
13117 * g10/cipher-aead.c (write_header): Do not call set_nonce_and_ad.
13118 (write_final_chunk): Do not increase chunkindex.
13119 (do_flush): Call set_nonce_and_ad immediately before the first
13120 encryption of a chunk. Bump up the chunkindex after writing the tag.
13121 (do_free): Do not insert a zero length last chunk.
13122 * g10/decrypt-data.c (aead_underflow): Fix the corresponding bug.
13124 gpg: Merge two functions in cipher-aead.c.
13125 + commit 047506a03d21739b5b922f6b3fd9f059b0b137c5
13126 * g10/cipher-aead.c (set_nonce, set_additional_data): Merge into ...
13127 (set_nonce_and_ad): new function.
13128 (write_auth_tag): Print error message here.
13129 (do_flush): Rename var newchunk to finalize.
13131 2018-02-27 Werner Koch <wk@gnupg.org>
13133 gpg: Simplify the AEAD decryption function.
13134 + commit 618b86325f776f7250ad2bb09680e4bb427d7e50
13135 * g10/decrypt-data.c (aead_set_nonce, aead_set_ad): Merge into ...
13136 (aead_set_nonce_and_ad): new single function. Change callers.
13137 (decrypt_data): Do not set the nonce and ad here.
13138 (aead_underflow): Get rid of the LAST_CHUNK_DONE hack.
13140 gpg: Factor common code out of the AEAD decryption function.
13141 + commit ad989373f1a46139ed0fbc4d4a91069b78617ad9
13142 * g10/decrypt-data.c (aead_underflow): Factor reading and checking
13143 code code out to ...
13144 (fill_buffer, aead_checktag): new functions.
13146 gpg: Rename cipher.c to cipher-cfb.c.
13147 + commit b703ba725dadca8298a0c69365225f9a7ff60ae2
13148 * g10/cipher.c: Rename to ...
13149 * g10/cipher-cfb.c: this.
13151 gpg: Fix corner cases in AEAD encryption.
13152 + commit ebb0fcf6e0bd6997eff4097ddda94955134212af
13153 * g10/cipher-aead.c (write_final_chunk): Do not bump up the chunk
13154 index if the previous chunk was empty.
13155 * g10/decrypt-data.c (aead_underflow): Likewise. Also handle a other
13156 corner cases. Add more debug output.
13158 2018-02-23 Werner Koch <wk@gnupg.org>
13160 gpg: Try to mitigate the problem of wrong CFB symkey passphrases.
13161 + commit cbc7bacf2ff95aebb427bb244c719143a9001f3c
13162 * g10/mainproc.c (symkey_decrypt_seskey): Check for a valid algo.
13164 2018-02-22 Michał Górny <mgorny@gentoo.org>
13166 dirmngr: Handle failures related to missing IPv6 gracefully.
13167 + commit ecfc4db3a2f8bc2652ba4ac4de5ca1cd13bfcbec
13168 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle two more
13171 2018-02-22 Werner Koch <wk@gnupg.org>
13173 build: Update swdb tags and include release info from 2.2.5.
13174 + commit 7853190cfe2953fdac066b4f3256edc206896144
13178 + commit 9581a65ccc10daededc05c55391a04022f794a4a
13181 gpg: Don't let gpg return failure on an invalid packet in a keyblock.
13182 + commit b375d50ee4ce52c9b0f0855ec155be027642fb05
13183 * g10/keydb.c (parse_keyblock_image): Use log_info instead of
13184 log_error for skipped packets.
13185 * g10/keyring.c (keyring_get_keyblock): Ditto.
13187 2018-02-22 NIIBE Yutaka <gniibe@fsij.org>
13189 g10: Select a secret key by checking availability under gpg-agent.
13190 + commit 88e766d3915c2919e9968148ebb30463d4a673e4
13191 * g10/getkey.c (finish_lookup): Add WANT_SECRET argument to confirm
13192 by agent_probe_secret_key.
13193 (get_pubkey_fromfile, lookup): Supply WANT_SECRET argument.
13195 2018-02-20 Werner Koch <wk@gnupg.org>
13197 wks: Add special mode to --install-key.
13198 + commit 685a5e1558b2252ac895637fb857f6f7bb85ea7b
13199 * tools/gpg-wks-client.c (get_key_status_parm_s)
13200 (get_key_status_cb, get_key): Move to ...
13201 * tools/wks-util.c: ...here.
13202 (get_key): Rename to wks_get_key.
13203 * tools/gpg-wks-server.c: Include userids.h.
13204 (command_install_key): Allow use of a fingerprint.
13206 wks: Implement server command --install-key.
13207 + commit ee474856ec16ff11d922d8503fb3ede77129c4aa
13208 * tools/wks-util.c (wks_filter_uid): Add arg 'binary'.
13209 * tools/gpg-wks-server.c (main): Expect 2 args for --install-key.
13210 (write_to_file): New.
13211 (check_and_publish): Factor some code out to ...
13212 (compute_hu_fname): ... new.
13213 (command_install_key): Implement.
13215 wks: Support alternative submission address.
13216 + commit 1877603761911ea5b1c15f4aef11a2cf86a8682c
13217 * tools/gpg-wks.h (policy_flags_s): Add field 'submission_address'.
13218 * tools/wks-util.c (wks_parse_policy): Parse that field.
13219 (wks_free_policy): New.
13220 * tools/gpg-wks-client.c (command_send): Also try to take the
13221 submission-address from the policy file. Free POLICY.
13222 * tools/gpg-wks-server.c (process_new_key): Free POLICYBUF.
13223 (command_list_domains): Free POLICY.
13225 2018-02-15 Werner Koch <wk@gnupg.org>
13227 kbx: Fix detection of corrupted keyblocks on 32 bit systems.
13228 + commit 5e3679ae395e7a7e44f218f07bbe487429f1b279
13229 * kbx/keybox-search.c (blob_cmp_fpr): Avoid overflow in OFF+LEN
13231 (blob_cmp_fpr_part): Ditto.
13232 (blob_cmp_name): Ditto.
13233 (blob_cmp_mail): Ditto.
13234 (blob_x509_has_grip): Ditto.
13235 (keybox_get_keyblock): Check OFF and LEN using a 64 bit var.
13236 (keybox_get_cert): Ditto.
13238 2018-02-15 NIIBE Yutaka <gniibe@fsij.org>
13240 gpg: Fix reversed messages for --only-sign-text-ids.
13241 + commit ca138d5bf36accde2fd755249b470a8dc8743c95
13242 * g10/keyedit.c (keyedit_menu): Fix messages.
13244 2018-02-14 Katsuhiro Ueno <uenobk@gmail.com>
13246 agent: Avoid appending a '\0' byte to the response of READKEY.
13247 + commit df97fe24807826ddc2af0e45e416fb81c5666f88
13248 * agent/command.c (cmd_readkey): Set pkbuflen to the length of the output
13249 without an extra '\0' byte.
13251 2018-02-14 Werner Koch <wk@gnupg.org>
13253 sm: Fix minor memory leak in --export-p12.
13254 + commit 80719612b7e92aff5887f2a68d550a24f350722c
13255 * sm/export.c (gpgsm_p12_export): Free KEYGRIP.
13257 2018-02-14 Katsuhiro Ueno <uenobk@gmail.com>
13259 sm: Fix a wrong key parameter in an exported private key file.
13260 + commit 29aac7798085ee38da5107698618890ae7593c96
13261 * sm/export.c (sexp_to_kparms): Fix the computation of array[6],
13262 which must be 'd mod (q-1)' but was 'p mod (q-1)'.
13264 2018-02-14 Werner Koch <wk@gnupg.org>
13266 common: Use new function to print status strings.
13267 + commit f19ff78f0fbfc2793d8a9ab0173486bf712871ac
13268 * common/asshelp2.c (vprint_assuan_status_strings): New.
13269 (print_assuan_status_strings): New.
13270 * agent/command.c (agent_write_status): Replace by call to new
13272 * dirmngr/server.c (dirmngr_status): Ditto.
13273 * g13/server.c (g13_status): Ditto.
13274 * g13/sh-cmd.c (g13_status): Ditto.
13275 * sm/server.c (gpgsm_status2): Ditto.
13276 * scd/command.c (send_status_info): Bump up N.
13278 2018-02-13 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
13280 scd: Improve KDF-DO support.
13281 + commit 25f3b69129015c54392636818c8846e236f5cb2c
13282 * scd/app-openpgp.c (pin2hash_if_kdf): Check the content of KDF DO.
13284 2018-02-12 NIIBE Yutaka <gniibe@fsij.org>
13286 scd: Fix handling for Data Object with no data.
13287 + commit 0a3bec2c2525935362f87dce93d7df2c8d498498
13288 * scd/app-openpgp.c (get_cached_data): Return NULL for Data Object
13291 2018-02-09 Andre Heinecke <aheinecke@intevation.de>
13293 doc: Add compliance de-vs to gpgsm in vsnfd.prf.
13294 + commit e0658b19d93b38ed9ebd07734c4678acdde1607d
13295 * doc/examples/vsnfd.prf: Set complaince mode for gpgsm.
13297 2018-02-07 NIIBE Yutaka <gniibe@fsij.org>
13299 scd: Use pipe to kick the loop on NetBSD.
13300 + commit 015fe1c47b91da340e9df6bed908e0747ae8c60b
13301 * configure.ac (HAVE_PSELECT_NO_EINTR): New.
13302 * scd/scdaemon.c (scd_kick_the_loop): Write to pipe.
13303 (handle_connections): Use pipe.
13305 2018-02-06 Werner Koch <wk@gnupg.org>
13307 gpg: Fix packet length checking in symkeyenc parser.
13308 + commit 8305739fe857ed3378f885bb43777fd518dd1060
13309 * g10/parse-packet.c (parse_symkeyenc): Move error printing to the
13310 end. Add additional check to cope for the 0je extra bytes needed for
13313 2018-01-29 NIIBE Yutaka <gniibe@fsij.org>
13315 tests: Fix for NetBSD with __func__.
13316 + commit 64aa98c8a05513d9c00f53a2b880d80f9035333e
13317 * tests/asschk.c: Don't define __func__ if available.
13319 2018-01-28 Werner Koch <wk@gnupg.org>
13321 gpg: Rename a misnomed arg in open_outfile.
13322 + commit 303310d05e708dd58dcf7b7d8e8634cd5085bc7e
13323 * g10/openfile.c (open_outfile): Rename inp_fd to out_fd.
13325 2018-01-27 Werner Koch <wk@gnupg.org>
13327 dirmngr: Improve assuan error comment for cmd keyserver.
13328 + commit f8e868d9dfb6fc1390e421e7993a1d076309ed83
13329 * dirmngr/server.c: Add error comment in case --resolve fails in
13332 2018-01-26 NIIBE Yutaka <gniibe@fsij.org>
13334 agent: Fix sending connecting process uid to pinentry.
13335 + commit 660eafa3a9f68e116e9b0597edc317d8ff90f9b2
13336 * agent/command-ssh.c (get_client_info): Use LOCAL_PEERCRED.
13338 agent: Fix last commit.
13339 + commit d7207b39b71d1b07c4cddac602f29ec583f6d1ad
13340 * configure.ac: Check ucred.h as well as sys/ucred.h.
13341 * agent/command-ssh.c: Add inclusion of ucred.h.
13343 agent: More fix for get_client_pid for portability.
13344 + commit 08e686a6a6d5bcb5410228b388745d09686b260c
13345 * configure.ac: Check sys/ucred.h instead of ucred.h.
13346 * agent/command-ssh.c: Include sys/ucred.h.
13348 2018-01-24 Werner Koch <wk@gnupg.org>
13350 gpg: New maintainer option --debug-set-iobuf-size.
13351 + commit db7661b5a297a58c95fa9873d43f31d697b8feb3
13352 * g10/gpg.c (opts): Add new option.
13353 (opt_set_iobuf_size): New var.
13354 (set_debug): Set the option.
13355 * tests/openpgp/armor.scm: Use this option to revert the buffer size
13356 to the one which used to exhibit the tested bugs.
13358 iobuf: Increase the size of the buffer. Add iobuf_set_buffer_size.
13359 + commit bfc11816444512b4ebcc6617d3c3b5988e753de3
13360 * common/iobuf.c (IOBUF_BUFFER_SIZE): Rename to
13361 DEFAULT_IOBUF_BUFFER_SIZE and increase to 64k.
13362 (iobuf_buffer_size): New var. Always use this instead of the macro.
13363 (iobuf_set_buffer_size): New.
13364 (struct file_filter_ctx_t): Add field delayed_rc.
13365 (file_filter) [!W32]: Try to fill the supplied buffer.
13367 gpg: Fix AEAD encryption for chunk sizes other than 64 KiB.
13368 + commit ff1bdc23d9f1693c1add7c1fe8d218b7bf743e31
13369 * g10/cipher-aead.c (do_flush): Init ERR. Fix remaining chunklen
13371 (do_free): Add dummy encryption. Close the cipher handle.
13372 * g10/decrypt-data.c (aead_underflow): Rewrite.
13374 gpg: Rename a variable in decrypt-data for clarity.
13375 + commit 83a15fa88e91d277811b6d030c4aa40c4fb3e6ad
13376 * g10/decrypt-data.c (decode_filter_context_s): Rename field 'defer'
13377 to 'holdback' and replace 'defer_filled' flag into 'holdbacklen'.
13380 2018-01-23 Werner Koch <wk@gnupg.org>
13382 gpg: New option --chunk-size.
13383 + commit f3ef8b0dcaede1c85da0dff8eeceda6a994f0b28
13384 * g10/gpg.c (opts): New option --chunk-size.
13385 (oChunkSize): New const.
13386 (build_list_aead_test_algo, build_list_aead_algo_name): New.
13387 (my_strusage): List AEAD algos.
13388 (main): Implement --chunk-size..
13389 * g10/options.h (struct opt): Add field 'chunk_size'.
13390 (DBG_IPC): Remove duplicated macro.
13391 * g10/main.h (DEFAULT_AEAD_ALGO): Depend on Libgcrypt version.
13392 * g10/misc.c (openpgp_aead_test_algo): Ditto.
13394 * g10/cipher-aead.c: Silence if not in debug mode.
13395 * g10/decrypt-data.c: Ditto.
13397 gpg: Copy the AEAD prefs to the user ID struct.
13398 + commit 112e02ee89b78369c1c50e672873e726cbfeb994
13399 * g10/getkey.c (fixup_uidnode): Copy the AEAD prefs.
13401 gpg: Clear the symmetric passphrase cache for encrypted session keys.
13402 + commit 278d87465685e0aa415e0333de1d27e79d1608f0
13403 * g10/mainproc.c (proc_symkey_enc): Clear the symmetric key cache on
13405 (proc_encrypted): Need to take are of the checksum error.
13407 gpg: Implement AEAD for SKESK packets.
13408 + commit 9aab9167bca38323973e853845ca95ae8e9b6871
13409 * g10/packet.h (PKT_symkey_enc): Add field aead_algo.
13410 * g10/build-packet.c (do_symkey_enc): Support version 5 packets.
13411 * g10/parse-packet.c (parse_symkeyenc): Ditto.
13412 * g10/encrypt.c (encrypt_symmetric): Force using a random session
13414 (encrypt_seskey): Add and support arg aead_algo.
13415 (write_symkey_enc): Ditto.
13416 (encrypt_simple): Adjust accordingly.
13417 (encrypt_filter): Ditto.
13418 * g10/gpgcompose.c (sk_esk): For now call encrypt_seskey without AEAD
13420 * g10/mainproc.c (symkey_decrypt_seskey): Support AEAD. Nver call BUG
13421 but return an error.
13422 (proc_symkey_enc): Call symkey_decrypt_seskey in a bug compatible way.
13424 * g10/import.c (check_prefs): Check AEAD preferences.
13425 * g10/keyedit.c (show_prefs): Print AEAD preferences.
13427 2018-01-22 Werner Koch <wk@gnupg.org>
13429 gpg: Unify AEAD parameter retrieval.
13430 + commit da3015e3c05030fe709c8f922486e73d06d1d16a
13431 * g10/pkclist.c (select_aead_from_pklist): Return the AEAD_algo.
13432 * g10/encrypt.c (use_aead): Return the AEAD algo.
13433 (encrypt_simple): Adjust for this change.
13434 (encrypt_crypt): Ditto.
13435 (encrypt_filter): Ditto.
13436 * g10/sign.c (sign_symencrypt_file): Ditto.
13438 * g10/misc.c (MY_GCRY_CIPHER_MODE_EAX): New.
13439 (openpgp_aead_algo_info): New.
13440 * g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): Remove.
13441 (write_header): Use new fucntion.
13442 * g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): Remove.
13443 (decrypt_data): Use new function. Also allow for chunkbytes other
13446 gpg: Refactor function encrypt_seskey.
13447 + commit 0131d4369a81a51bf7bb328cc81a3bb082ed1a94
13448 * g10/encrypt.c (encrypt_seskey): Allocate the buffer for the
13449 encrypted key and returns that buffer and its length.
13450 (encrypt_simple): Adjust for above change.
13451 (write_symkey_enc): Ditto.
13453 2018-01-22 NIIBE Yutaka <gniibe@fsij.org>
13455 scd: Support KDF Data Object of OpenPGPcard V3.3.
13456 + commit 91303b7df9c3e810cfcd4920f78bac6f8b7df2b2
13457 * scd/app-openpgp.c (do_getattr, do_setattr): Add KDF support.
13458 (pin2hash_if_kdf): New.
13459 (verify_a_chv): Add PINLEN arg. Use pin2hash_if_kdf.
13460 (verify_chv2, do_sign): Follow the change of verify_a_chv.
13461 (verify_chv3, do_change_pin): Use pin2hash_if_kdf.
13463 2018-01-21 Werner Koch <wk@gnupg.org>
13465 gpg: Support EAX if for latest Libgcrypt.
13466 + commit 7356d6ec50ea24bc9449187e1c2b3ecd717b789f
13467 * g10/cipher-aead.c (MY_GCRY_CIPHER_MODE_EAX): New.
13468 (write_header): Use it.
13469 * g10/decrypt-data.c (MY_GCRY_CIPHER_MODE_EAX): New.
13470 (decrypt_data): Use it.
13471 * g10/misc.c (openpgp_aead_test_algo): Allow EAX.
13473 gpg: First take on PKT_ENCRYPTED_AEAD.
13474 + commit 3f4ca85cb0cf58006417f4f7faafaa9a1f1bdf22
13475 * common/openpgpdefs.h (PKT_ENCRYPTED_AEAD): New const.
13476 * g10/dek.h (DEK): Increase size of use_aead to 4 bits.
13477 * g10/filter.h (cipher_filter_context_t): Add new fields for AEAD.
13478 * g10/packet.h (PKT_encrypted): Add fields aead_algo, cipher_algo, and
13480 * g10/build-packet.c (do_encrypted_aead): New.
13481 (build_packet): Call it.
13482 * g10/parse-packet.c (dump_sig_subpkt): Handle SIGSUBPKT_PREF_AEAD.
13483 (parse_one_sig_subpkt, can_handle_critical): Ditto.
13484 (parse_encrypted): Clear new PKT_ENCRYPTED fields.
13485 (parse_encrypted_aead): New.
13487 * g10/gpg.c (main): Take care of --rfc4880bis option when checking
13489 * g10/cipher-aead.c: Replace the stub by real code.
13490 * g10/decrypt-data.c (decode_filter_ctx_t): Add fields for use with
13492 (aead_set_nonce): New.
13493 (aead_set_ad): New.
13494 (decrypt_data): Support AEAD.
13495 (aead_underflow): New.
13496 (aead_decode_filter): New.
13497 * g10/encrypt.c (use_aead): Make that new fucntion work.
13498 (encrypt_simple): Use default_aead_algo() instead of EAX.
13499 * g10/mainproc.c (proc_encrypted): Support AEAD.
13500 (do_proc_packets): Support PKT_ENCRYPTED_AEAD.
13502 2018-01-18 Werner Koch <wk@gnupg.org>
13504 gpg: Fix the use of future-default with --quick-add-key.
13505 + commit e1e35db510c9222e7a7dc208c2e49df556954170
13506 * g10/keygen.c (parse_key_parameter_part): Add arg clear_cert.
13507 (parse_key_parameter_string): Add arg suggested_use and implement
13508 fallback. Change callers to pass 0 for new arg.
13509 (parse_algo_usage_expire): Pass the parsed USAGESTR to
13510 parse_key_parameter_string so that it can use it in case a subkey is
13513 2018-01-10 Werner Koch <wk@gnupg.org>
13515 gpg: Add stub function for encrypting AEAD.
13516 + commit 81d71818d054a5faa9153fd52a4b79bbbb71e9d5
13517 * g10/cipher.c (cipher_filter): Rename to cipher_filter_cfb.
13518 * g10/cipher-aead.c: New. Right now only with a stub function.
13519 * g10/Makefile.am (gpg_sources): Add file.
13520 * g10/encrypt.c (encrypt_simple): Push either cipher_filter_cfb or
13521 cipher_filter_aead.
13522 (encrypt_crypt): Ditto.
13523 (encrypt_filter): Ditto.
13524 * g10/sign.c (sign_symencrypt_file): Ditto.
13526 gpg: New option --force-aead.
13527 + commit 4e2ba546cdccbbc6d3e29867ee5671fd44d74e67
13528 * g10/dek.h (DEK): Turn fields use_mdc, algo_printed and symmetric
13529 into single bit vars. Make sure they are always set to 1 or 0.
13530 (DEK): New field use_aead.
13531 * g10/options.h (struct opt): New field force_aead.
13532 * g10/pkclist.c (select_aead_from_pklist): New.
13533 * g10/gpg.c (oForceAEAD): New const.
13534 (opts): New options "--force-aead".
13535 (main): Set new option.
13536 * g10/encrypt.c (use_aead): New.
13537 (encrypt_simple): Implement new flags DEK.use_aead.
13538 (encrypt_crypt): Ditto.
13539 (encrypt_filter): Ditto.
13540 * g10/sign.c (sign_symencrypt_file): Ditto.
13542 gpg: Add option and preference framework for AEAD.
13543 + commit 8217cd49364b9f81b390f7ca6a608dd946f93efc
13544 * common/openpgpdefs.h (aead_algo_t): New.
13545 (SIGSUBPKT_PREF_AEAD): New.
13546 * g10/gpg.c (oAEADAlgo, oPersonalAEADPreferences): New.
13547 (opts): New options --aead-algo and --personal-aead-preferences.
13548 (set_compliance_option): Clar aead algo.
13549 (main): Parse and check the new options
13550 * g10/options.h (struct opt): Add fields def_aead_algo and
13551 personal_aead_prefs.
13552 * g10/packet.h (PREFTYPE_AEAD): New enum value.
13553 (PKT_user_id): Add field flags.aead.
13554 (PKT_public_key): Add field flags.aead.
13555 * g10/pkclist.c (select_algo_from_prefs): Support PREFTYPE_AEAD.
13556 * g10/getkey.c (fixup_uidnode): Set AEAD flag.
13557 (merge_selfsigs): Ditto.
13558 * g10/kbnode.c (dump_kbnode): Show aead flag.
13559 * g10/keyedit.c (show_prefs): Ditto.
13560 (show_key_with_all_names_colon): Ditto.
13561 * g10/keygen.c (aead_presf, n_aead_prefs): New vars.
13562 (set_one_pref): Suppport PREFTYPE_AEAD.
13563 (keygen_set_std_prefs): Parse AEAD preferences.
13564 (keygen_get_std_prefs): Ditto.
13565 (add_feature_aead): New.
13566 (keygen_upd_std_prefs): Call that and build AEAD pref packet.
13567 * g10/main.h (DEFAULT_AEAD_ALGO): New const.
13568 * g10/misc.c (openpgp_aead_test_algo): New.
13569 (openpgp_aead_algo_name): New.
13570 (string_to_aead_algo): New.
13571 (default_aead_algo): New.
13573 2018-01-09 Andre Heinecke <aheinecke@intevation.de>
13575 doc: Note pinentry-mode for passphrase opts.
13576 + commit 6fb5713f4a6976900cc70c140e61043b6ef688d1
13577 * doc/gpg.texi (--passphrase, --passphrase-file, --passphrase-fd):
13578 Note that pinentry-mode needs to be loopback.
13580 2018-01-08 Werner Koch <wk@gnupg.org>
13582 gpg: Print all keys with --decrypt --list-only.
13583 + commit 339b3301ee8410fe3bbdebb66a6e83801d79d40d
13584 * g10/mainproc.c (proc_pubkey_enc): Use dedicated error code for
13585 list-only and put the key into PKENC_LIST.
13586 (print_pkenc_list): Take care of the new error code.
13588 2018-01-01 Werner Koch <wk@gnupg.org>
13590 gpg: Allow "futuredefault" as alias for "future-default".
13591 + commit 4d3c500f4793eb263940ff5ef87ec4ead63c9b4b
13592 * g10/keygen.c (parse_key_parameter_string): Allow "futuredefault" and
13593 use case-insensitive matching
13594 (quick_generate_keypair): Ditto.
13595 (parse_algo_usage_expire): Ditto.
13597 2017-12-29 Werner Koch <wk@gnupg.org>
13599 gpg: Allow the use of "cv25519" and "ed25519" in the keygen parms.
13600 + commit 412bb7a801f242d47a82712080cce6ddbb843166
13601 * g10/keygen.c (gen_ecc): Map curve names.
13603 2017-12-27 NIIBE Yutaka <gniibe@fsij.org>
13605 scd: Fix for inactive card at start by internal CCID driver.
13606 + commit 4f88b0f56134af2ce56d434b7acd47fcf9b6f7cf
13607 * scd/ccid-driver.c (do_close_reader): Set NULL on close.
13608 (bulk_in): Move DEBUGOUT and check by EP_INTR.
13609 (ccid_get_atr): Clear powered_off flag after initial status check.
13611 2017-12-22 Werner Koch <wk@gnupg.org>
13613 kbx: Simplify by removing custom memory functions.
13614 + commit f3ba66781a07af2e32f5887e6e15acdd4822a431
13615 * kbx/keybox-util.c (keybox_set_malloc_hooks): Remove.
13616 (_keybox_malloc, _keybox_calloc, keybox_realloc)
13617 (_keybox_free): Remove.
13618 (keybox_file_rename): Remove. Was not used.
13619 * sm/gpgsm.c (main): Remove call to keybox_set_malloc_hooks.
13620 * kbx/kbxutil.c (main): Ditto.
13621 * kbx/keybox-defs.h: Remove all separate includes. Include util.h.
13622 remove convenience macros.
13623 * common/logging.h (return_if_fail): New. Originally from
13624 keybox-defs.h but now using log_debug.
13625 (return_null_if_fail): Ditto.
13626 (return_val_if_fail): Ditto.
13627 (never_reached): Ditto.
13629 2017-12-20 Werner Koch <wk@gnupg.org>
13631 common: Use larger buffer for homedir in case of 64 bit UIDs.
13632 + commit 290348e349e8d56a856f187a08e913f2ed525b3c
13633 * common/homedir.c (_gnupg_socketdir_internal): Enlarge PREFIX by 6
13634 bytes for "/gnupg".
13637 + commit 558b17593ae97b8a07d06bf0d6af1a626b304501
13640 2017-12-19 Petr Pisar <petr.pisar@atlas.cz>
13642 po: Update Czech translation.
13643 + commit 43aaf60449036e870cc25b77fbb7312cf3fb534c
13646 2017-12-19 Ineiev <ineiev@gnu.org>
13648 po: Update Russian translation.
13649 + commit c7b8ec6c8e57797f0b77dbf7fca85fb600323328
13652 2017-12-19 Werner Koch <wk@gnupg.org>
13654 wks: New server options --check, --with-dir, with-file.
13655 + commit 7449063b1af2eef73d621a69cdb2fb713ab1ae6c
13656 * tools/gpg-wks-server.c (aCheck, oWithDir, oWithFile): New const.
13657 (opts): New options --check, --with-dir, and --with-file.
13658 (main): Call command_check_key.
13659 (command_list_domains): Implement option --with-dir.
13660 (fname_from_userid): New.
13661 (command_check_key): New.
13662 (command_remove_key): Implement existsing command.
13663 (command_revoke_key): Call command_remove_key as a simple
13666 2017-12-18 Werner Koch <wk@gnupg.org>
13668 conf: New option --status-fd.
13669 + commit 482e000b8a7e336f342a7fac3b7379257e944b6e
13670 * tools/gpgconf.c (oStatusFD): New const.
13671 (opts): New option --status-fd.
13672 (statusfp): New var.
13673 (set_status_fd): New.
13674 (gpgconf_write_status): New.
13675 (gpgconf_failure): New.
13676 (main): Set status fd and replace exit by gpgconf_failure.
13677 * tools/gpgconf-comp.c: Repalce exit by gpgconf_failure.
13678 (gc_process_gpgconf_conf): Print a few warning status messages.
13680 gpgconf: Show --compliance in expert mode.
13681 + commit d74c40cef0a97cd98aa05f13b1541a94eda502a6
13682 * tools/gpgconf-comp.c (gc_options_gpg): Set compliance to expert.
13683 (gc_options_gpgsm): Ditto.
13685 sm: Allow explicit setting of the default --compliance=gnupg.
13686 + commit 8c878ae4c9dfa9fe26aa15f4f9db3e86833575e9
13687 * sm/gpgsm.c (main): Allow setting of the default compliance.
13688 * tools/gpgconf-comp.c (gc_options_gpgsm): Add "compliance".
13690 2017-12-18 NIIBE Yutaka <gniibe@fsij.org>
13692 po: Update Japanese translation.
13693 + commit e3ddeff66e8c08a37ddf8b6510d69579c245e192
13694 * po/ja.po: Fix message with no "%s".
13696 po: Update Japanese translation.
13697 + commit 77e2fcb4ffbad8577a2cf41f17bf92dec6a93ad8
13698 * po/ja.po: Fix message with no "%s".
13700 2017-12-13 Werner Koch <wk@gnupg.org>
13702 gpg: Print a warning for too much data encrypted with 3DES et al.
13703 + commit 416cf9e9be5d2daf0ef629208031989699b3653f
13704 * g10/filter.h (cipher_filter_context_t): Remove unused filed
13705 'create_mdc'. Turn field 'header' into a bit field. Add new fields
13706 'short_blklen_warn' and 'short_blklen_count'.
13707 * g10/cipher.c (write_header): Print a warning if MDC is not used.
13708 (cipher_filter): Print a warning for long messages encrypted with a
13709 short block length algorithm.
13711 gpg: Simplify cipher:write_header.
13712 + commit b5333e13cbc9db354ed90762190bf70605a02d1f
13713 * g10/cipher.c (write_header): Use write_status_printf.
13715 gpg: Simplify default_recipient().
13716 + commit 9f641430dcdecbd7ee205d407cb19bb4262aa95d
13717 * g10/pkclist.c (default_recipient): Use hexfingerprint.
13719 gpg: Return an error from hexfingerprint on malloc error.
13720 + commit cd26c5482b10bee7658959ae913f2ddb83190587
13721 * g10/keyid.c (hexfingerprint): Return NULL on malloc failure. Chnage
13724 gpg: Remove some xmallocs.
13725 + commit 29119a6492eda5dd7920e45e7f2faa043d436591
13726 * g10/getkey.c (get_pubkeys): Do not use xmalloc.
13728 2017-12-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
13730 gpg: default-preference-list: prefer SHA512.
13731 + commit 8ede3ae29a39641a2f98ad9a4cf61ea99085a892
13732 * g10/keygen.c (keygen_set_std_prefs): when producing default internal
13733 personal-digest-preferences, keep the same order. When publishing
13734 external preferences, state preference for SHA512 first.
13736 2017-12-12 Werner Koch <wk@gnupg.org>
13738 Change backlog from 5 to 64 and provide option --listen-backlog.
13739 + commit c81a447190d2763ac4c64b2e74e22e824da8aba3
13740 * agent/gpg-agent.c (oListenBacklog): New const.
13741 (opts): New option --listen-backlog.
13742 (listen_backlog): New var.
13743 (main): Parse new options.
13744 (create_server_socket): Use var instead of 5.
13745 * dirmngr/dirmngr.c: Likewise.
13746 * scd/scdaemon.c: Likewise.
13748 build: New configure option --enable-run-gnupg-user-socket.
13749 + commit 17efcd2a2acdc3b7f00711272aa51e5be2476921
13750 * configure.ac: (USE_RUN_GNUPG_USER_SOCKET): New ac_define.
13751 * common/homedir.c (_gnupg_socketdir_internal): Add extra directories.
13753 2017-12-11 Werner Koch <wk@gnupg.org>
13755 dirmngr: Check for WKD support at session end.
13756 + commit 20b52be9ca29b0bc843fc68a279cb72728ede72f
13757 * dirmngr/domaininfo.c (insert_or_update): Copy the name.
13758 * dirmngr/misc.c (copy_stream): Allow arg OUT to be NULL.
13759 * dirmngr/server.c (set_error): Protect CTX.
13760 (dirmngr_status): Protect against missing ASSUAN_CTX.
13761 (dirmngr_status_help): Ditto.
13762 (dirmngr_status_printf): Ditto.
13763 (cmd_wkd_get): Factor code out to ...
13764 (proc_wkd_get): new func. Support silent operation with no CTX.
13765 (task_check_wkd_support): New.
13767 dirmngr: Add a background task framework.
13768 + commit f2997adee0455c8c0fa391a853ec1b0c9fc43342
13769 * dirmngr/workqueue.c: New.
13770 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new file.
13771 * dirmngr/server.c (server_local_s): New field session_id.
13772 (cmd_wkd_get): Add a task.
13773 (task_check_wkd_support): New stub function.
13774 (cmd_getinfo): New sub-commands "session_id" and "workqueue".
13775 (start_command_handler): Add arg session_id and store it in
13777 (dirmngr_status_helpf): New.
13778 * dirmngr/dirmngr.h (wqtask_t): New type.
13779 * dirmngr/dirmngr.c (main): Pass 0 as session_id to
13780 start_command_handler.
13781 (start_connection_thread): Introduce a session_id and pass it to
13782 start_command_handler. Run post session tasks.
13783 (housekeeping_thread): Run global workqueue tasks.
13785 dirmngr: Limit the number of cached domains for WKD.
13786 + commit 7a663c296e687f12ccd9a21d414de780feb4dfcf
13787 * dirmngr/domaininfo.c (MAX_DOMAINBUCKET_LEN): New.
13788 (insert_or_update): Limit the length of a bucket chain.
13789 (domaininfo_print_stats): Print just one summary line.
13791 (cherry picked from commit 26f08343fbccdbaa177c3507a3c5e24a5cf94a2d)
13793 dirmngr: Keep track of domains used for WKD queries.
13794 + commit 6c1dcd79cf0977844179d9a7b189c10af5e42a7e
13795 * dirmngr/domaininfo.c: New file.
13796 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
13797 * dirmngr/server.c (cmd_wkd_get): Check whether the domain is already
13798 known and tell domaininfo about the results.
13800 Adjust for changed macro names in libgpg-error master.
13801 + commit 34defc9bce91d66fa8c9481ebe6e78b612e570dc
13802 * common/logging.h (GPGRT_LOGLVL_): New replacement macros for older
13803 libgpg-error versions.
13805 2017-12-08 NIIBE Yutaka <gniibe@fsij.org>
13807 agent: Fix description of shadow format.
13808 + commit 5c121d44443b0a96ec6ea82b90717e3dbafd2cc5
13809 * agent/keyformat.txt, agent/protect.c, agent/t-protect.c: Fix.
13811 2017-12-07 Werner Koch <wk@gnupg.org>
13813 build: Do not define logging.h constants for libgpg-error dev versions.
13814 + commit 2fedf8583bcc493f587c90bc9632d25dfd10bd10
13815 * common/logging.h [GPGRT_LOG_WITH_PREFIX]: Do not define the log
13818 2017-12-07 NIIBE Yutaka <gniibe@fsij.org>
13820 agent: Change intialization of assuan socket system hooks.
13821 + commit b9677ba16f6b386896781a751e4b2fc839e3ec81
13822 * agent/gpg-agent.c (initialize_modules): Add hook again.
13823 (main): Remove setting of the system houk but add scoket system hook
13824 setting after assuan initialization.
13826 2017-12-06 NIIBE Yutaka <gniibe@fsij.org>
13828 agent: Set assuan system hooks before call of assuan_sock_init.
13829 + commit 1524ba9656f0205d8c6ef504f773b832a7a12ab9
13830 * agent/gpg-agent.c (initialize_modules): Move assuan_set_system_hooks.
13831 (main): ... here, just before assuan_sock_init.
13833 2017-12-04 NIIBE Yutaka <gniibe@fsij.org>
13834 Damien Goutte-Gattat <dgouttegattat@incenp.org>
13836 g10: Fix regexp sanitization.
13837 + commit 0d0b9eb0d4f99e8d293a4ce4b90921a879905115
13838 * g10/trustdb.c (sanitize_regexp): Only escape operators.
13840 2017-11-27 Werner Koch <wk@gnupg.org>
13842 Use the gpgrt log functions if possible.
13843 + commit b56dfdfc1865ceb7c3c025d79996e049faee7fdf
13844 * common/logging.c: Do not build any code if we can use the gpgrt_log
13846 (log_logv_with_prefix): Rename to log_logv_prefix and change order of
13847 args so that this function matches its printf like counterpart
13848 gpgrt_logv_prefix. Change all callers.
13849 (log_debug_with_string): Rename to log_debug_string. Change all
13851 (log_printhex): Move first arg to end so that this function matches
13852 its printf like counterpart gpgrt_log_printhex. Change all callers.
13853 * common/logging.h: Divert to gpgrt/libgpg-error if we can use the
13854 gpgrt_log functions.
13855 (bug_at): Add inline versions if we can use the gpgrt_log functions.
13856 * configure.ac (GPGRT_ENABLE_LOG_MACROS): Add to AH_BOTTOM.
13857 (mycflags): Add -Wno-format-zero-length.
13859 2017-11-26 Werner Koch <wk@gnupg.org>
13861 gpg: Do not read from uninitialized memory with --list-packets.
13862 + commit 4cf3cc6e3d48c8400466ca29c3f1c22ed2da6c2c
13863 * g10/parse-packet.c (parse_plaintext): Fill up the allocated NAME.
13865 2017-11-24 Werner Koch <wk@gnupg.org>
13867 agent: New option --auto-expand-secmem.
13868 + commit 18af15249de5f826c3fa8d1d40e876734adcd0cf
13869 * agent/gpg-agent.c (oAutoExpandSecmem): New enum value.
13870 (opts): New option --auto-expand-secmem.
13871 (main): Implement that option.
13873 2017-11-22 Werner Koch <wk@gnupg.org>
13875 gpg: Fix memory leaking for long inputs via --command-fd.
13876 + commit ea28ea18f3ee6c9f5e69986f39848398b58e242e
13877 * g10/cpr.c (do_get_from_fd): Free the old buffer.
13879 2017-11-21 NIIBE Yutaka <gniibe@fsij.org>
13881 scd: Enable card removal check after select_application.
13882 + commit 0bb7fd0cab2d53cd0d44b21301b23edfe817e66b
13883 * scd/apdu.c (open_ccid_reader): Fix error handling of ccid_get_atr.
13884 * scd/app.c (select_application): Always kick the loop if new APP.
13885 * scd/ccid-driver.c (ccid_open_usb_reader): Don't setup at open.
13886 (ccid_slot_status): Setup interrupt transfer when !ON_WIRE.
13888 2017-11-20 Werner Koch <wk@gnupg.org>
13891 + commit 97f4feaaca8da4dcf1ca09a2016693155016f06b
13894 build: Use -Werror only for the check.
13895 + commit 04d9833e71cc9d0c087faec091c29b0b6cf69488
13896 * configure.ac: Do not add -Werror to mycflags.
13898 gpg-agent: Avoid getting stuck in shutdown pending state.
13899 + commit 7ffedfab8909a45a4b0347a5f7b52222e8439f1d
13900 * agent/gpg-agent.c (handle_connections): Always check inotify fds.
13902 2017-11-20 NIIBE Yutaka <gniibe@fsij.org>
13904 agent: Use clock or clock_gettime for calibration.
13905 + commit 760aa8aadafb747f33a1461ab0c2570b5ae43716
13906 * agent/protect.c (calibrate_get_time): Use clock or clock_gettime.
13908 build: Check -Wlogical-op flag availability with -Werror.
13909 + commit 3ecd1a41be7c880976987d13e88342c98f37e064
13910 * configure.ac: Use -Werror.
13912 build: BSD make support for yat2m.
13913 + commit e1984969cac06a88c7e6f5e49e5c3104d10a847d
13914 * configure.ac (YAT2M): Only define when found.
13915 * doc/Makefile.am: Portability fix.
13917 2017-11-17 Werner Koch <wk@gnupg.org>
13919 dirmngr: Fix double free of a hash context in the error case.
13920 + commit 2aa106d6a4e2b09c257e8d769895d93ebb7f7edf
13921 * dirmngr/crlcache.c: Clearly document that this fucntions takes
13923 (abort_sig_check): Allow NULL for MD.
13924 (crl_parse_insert): Immediately set MD to NULL. Remove check for md
13925 before a calling abort_sig_check.
13927 2017-11-15 Werner Koch <wk@gnupg.org>
13929 assuan: Fix exponential decay for first second.
13930 + commit 0cfdd3b57d592fb6baa7dafe8fde124e8a6c7798
13931 * common/asshelp.c (wait_for_sock): Round SECSLEFT.
13932 * dirmngr/dirmngr.c (main): Take care of --debug-wait also in dameon
13934 * common/sysutils.c (gnupg_usleep) [HAVE_NANOSLEEP]: Fix nanosleep use.
13936 common: Change log_clock to printf style.
13937 + commit 8704304699bcbc1c10d0315ec7d25a1ae05c9905
13938 * common/logging.c (log_clock): Use do_logv.
13940 common: Tweak new code to keep already translated strings.
13941 + commit 4a7fe9a596b639a0edb08502f20cb293129e5a33
13942 * common/asshelp.c (wait_for_sock): Replace NAME by WHICH and adjust
13943 caller. Revert to use the former strings.
13945 2017-11-15 Andre Heinecke <aheinecke@intevation.de>
13947 w32: Fix default registry path.
13948 + commit 4f5afaf1fdb5cb13859aca390ccb5a1ba1dba00c
13949 * configure.ac (GNUPG_REGISTRY_DIR): Remove leading backslash.
13951 2017-11-15 Werner Koch <wk@gnupg.org>
13953 gpg: Repurpose the ISO defined DO "sex" to "salutation".
13954 + commit 166f3f9ec40888e10cb0c51017944bfc57503fc1
13955 * g10/card-util.c (current_card_status): String changes.
13956 (change_sex): Description change.
13957 (cmds): Add "salutation"; keep "sex" as an alias.
13959 2017-11-15 Andre Heinecke <aheinecke@intevation.de>
13961 gpgtar: Prefer --set-filename over implicit name.
13962 + commit 878b8bfdcc3a8becfc46b9287a2d14cd3c875f28
13963 * tools/gpgtar-extract.c: Prefer opt.filename over filename
13964 for the directory prefix.
13966 2017-11-15 Werner Koch <wk@gnupg.org>
13968 gpg: Print AKL info only in verbose mode.
13969 + commit b062ea5bc25157c942047b3fe7f5182a06106340
13970 * g10/getkey.c (get_pubkey_byname): Print info only in verbose mode.
13972 2017-11-14 Werner Koch <wk@gnupg.org>
13974 dirmngr: Check for WKD support at session end.
13975 + commit d4e2302d8f4a1ff52d56da4f8e3a5d1c6303822d
13976 * dirmngr/domaininfo.c (insert_or_update): Copy the name.
13977 * dirmngr/misc.c (copy_stream): Allow arg OUT to be NULL.
13978 * dirmngr/server.c (set_error): Protect CTX.
13979 (dirmngr_status): Protect against missing ASSUAN_CTX.
13980 (dirmngr_status_help): Ditto.
13981 (dirmngr_status_printf): Ditto.
13982 (cmd_wkd_get): Factor code out to ...
13983 (proc_wkd_get): new func. Support silent operation with no CTX.
13984 (task_check_wkd_support): New.
13986 dirmngr: Add a background task framework.
13987 + commit 96a4fbecd1acf946dcde20bef4752c539dae196b
13988 * dirmngr/workqueue.c: New.
13989 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new file.
13990 * dirmngr/server.c (server_local_s): New field session_id.
13991 (cmd_wkd_get): Add a task.
13992 (task_check_wkd_support): New stub function.
13993 (cmd_getinfo): New sub-commands "session_id" and "workqueue".
13994 (start_command_handler): Add arg session_id and store it in
13996 (dirmngr_status_helpf): New.
13997 * dirmngr/dirmngr.h (wqtask_t): New type.
13998 * dirmngr/dirmngr.c (main): Pass 0 as session_id to
13999 start_command_handler.
14000 (start_connection_thread): Introduce a session_id and pass it to
14001 start_command_handler. Run post session tasks.
14002 (housekeeping_thread): Run global workqueue tasks.
14004 2017-11-14 Andre Heinecke <aheinecke@intevation.de>
14006 sm, w32: Fix initial keybox creation.
14007 + commit 5ecef193bc2144e6d51a6bd5727bfd08a0d28b66
14008 * sm/keydb.c (maybe_create_keybox): Open new keybox in bin mode.
14010 2017-11-14 Werner Koch <wk@gnupg.org>
14012 dirmngr: Limit the number of cached domains for WKD.
14013 + commit 26f08343fbccdbaa177c3507a3c5e24a5cf94a2d
14014 * dirmngr/domaininfo.c (MAX_DOMAINBUCKET_LEN): New.
14015 (insert_or_update): Limit the length of a bucket chain.
14016 (domaininfo_print_stats): Print just one summary line.
14018 2017-11-13 Werner Koch <wk@gnupg.org>
14020 dirmngr: Keep track of domains used for WKD queries.
14021 + commit 65038e6852185c20413d8f6602218ee636413b77
14022 * dirmngr/domaininfo.c: New file.
14023 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
14024 * dirmngr/server.c (cmd_wkd_get): Check whether the domain is already
14025 known and tell domaininfo about the results.
14027 gpg-agent: Avoid getting stuck in shutdown pending state.
14028 + commit 5d83eb9226c0ce608ec284d8c9bc22ce84a00c25
14029 * agent/gpg-agent.c (handle_connections): Always check inotify fds.
14031 2017-11-13 NIIBE Yutaka <gniibe@fsij.org>
14033 tests: Handle the case with DISABLE_REGEX.
14034 + commit 80b904543486a2f12087bc34a6049ede4eb75940
14035 * tests/openpgp/Makefile.am [DISABLE_REGEX] (EXTRA_DIST, XTESTS):
14037 * tests/openpgp/all-tests.scm (all-tests): Input file is Makefile.
14039 2017-11-13 Damien Goutte-Gattat <dgouttegattat@incenp.org>
14041 tests: Run the trust-pgp-4 test again.
14042 + commit a1fe3708d0894c138f6dd75d2a6bd22c64359172
14043 * tests/openpgp/Makefile.am (XTESTS): Add trust-pgp-4.scm.
14044 (EXTRA_DIST): Remove the test file from EXTRA_DIST.
14046 2017-11-09 NIIBE Yutaka <gniibe@fsij.org>
14047 Damien Goutte-Gattat <dgouttegattat@incenp.org>
14049 g10: Fix regexp sanitization.
14050 + commit ccf3ba92087e79abdeaa0208795829b431c6f201
14051 * g10/trustdb.c (sanitize_regexp): Only escape operators.
14053 2017-11-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14055 assuan: Use exponential decay for first 1s of spinlock.
14056 + commit 149041b0b917f4298239fe18b5ebd5ead71584a6
14057 * common/asshelp.c (wait_for_sock): instead of checking the socket
14058 every second, we check 10 times in the first second (with exponential
14061 assuan: Reorganize waiting for socket.
14062 + commit 0471ff9d3bf8d6b9a359f3c426d70d0935066907
14063 * common/asshelp.c (wait_for_sock): New function, collecting
14065 (start_new_gpg_agent) here and...
14066 (start_new_dirmngr) here.
14068 2017-11-07 Werner Koch <wk@gnupg.org>
14071 + commit 5bd515005032f9340bd73e4346bbd0aef8518074
14074 dirmngr: Reduce default LDAP timeout to 15 seconds.
14075 + commit 30f21f8b0fa6844a9bba3f24dc41b3ac32170109
14076 * dirmngr/dirmngr.c (DEFAULT_LDAP_TIMEOUT): Change to 15.
14077 * dirmngr/dirmngr_ldap.c (DEFAULT_LDAP_TIMEOUT): Ditto.
14079 (cherry picked from commit ab7ac827041b5cd97bbca7a75b0930072dd6611f)
14081 dirmngr: Reduce default LDAP timeout to 15 seconds.
14082 + commit ab7ac827041b5cd97bbca7a75b0930072dd6611f
14083 * dirmngr/dirmngr.c (DEFAULT_LDAP_TIMEOUT): Change to 15.
14084 * dirmngr/dirmngr_ldap.c (DEFAULT_LDAP_TIMEOUT): Ditto.
14086 speedo: Include software versions in the W32 README.
14087 + commit 23bfac6d1a8bd2d0af5a6fac3ba3a6e986d6c9e8
14088 (cherry picked from commit f9f72ffbfa9fd7d1a7a1823697d116d76155b407)
14090 2017-11-07 Ineiev <ineiev@gnu.org>
14092 po: Update Russian translation.
14093 + commit 1941287c9d2c9e666bad1bd330db169f0e3d6b6c
14096 2017-11-07 Werner Koch <wk@gnupg.org>
14098 speedo: Include software versions in the W32 README.
14099 + commit f9f72ffbfa9fd7d1a7a1823697d116d76155b407
14102 2017-11-07 NIIBE Yutaka <gniibe@fsij.org>
14104 po: Update Japanese translation.
14105 + commit 96d441b315ec5c9f329596cfda28ac13a8bfa21a
14108 agent: Use clock or clock_gettime for calibration.
14109 + commit 380bce13d94ff03c96e39ac1d834f382c5c730a1
14110 * agent/protect.c (calibrate_get_time): Use clock or clock_gettime.
14112 2017-11-06 Werner Koch <wk@gnupg.org>
14114 tests: Minor imporvement in agent invocation.
14115 + commit 42308224d1fce64c666aed2be5eb4ef42e8aced4
14116 * tests/openpgp/defs.scm (create-gpghome): Add s2k-count.
14118 agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".
14119 + commit 3607ab2cf382296cb398a92d5ec792239960bf7b
14120 * agent/command.c (cmd_getinfo): New sub-commands.
14121 * agent/protect.c (get_standard_s2k_count): Factor some code out to ...
14122 (get_calibrated_s2k_count): new.
14123 (get_standard_s2k_time): New.
14125 (cherry picked from commit 52d41c8b0f4af6278d18d8935399ddad16a26856)
14127 agent: New option --s2k-count.
14128 + commit 78a6d0ce88ae14d8324fbab3aee3286b17e49259
14129 * agent/agent.h (opt): New field 's2k_count'.
14130 * agent/gpg-agent.c (oS2KCount): New enum value.
14131 (opts): New option --s2k-count.
14132 (parse_rereadable_options): Set opt.s2k_count.
14134 agent: New GETINFO sub-commands "s2k_count_cal" and "s2k_time".
14135 + commit 52d41c8b0f4af6278d18d8935399ddad16a26856
14136 * agent/command.c (cmd_getinfo): New sub-commands.
14137 * agent/protect.c (get_standard_s2k_count): Factor some code out to ...
14138 (get_calibrated_s2k_count): new.
14139 (get_standard_s2k_time): New.
14141 agent: New option --s2k-count.
14142 + commit f7212f1d11aad5d910d2c77b2e5c6ab31a0e786e
14143 * agent/agent.h (opt): New field 's2k_count'.
14144 * agent/gpg-agent.c (oS2KCount): New enum value.
14145 (opts): New option --s2k-count.
14146 (parse_rereadable_options): Set opt.s2k_count.
14148 2017-11-06 NIIBE Yutaka <gniibe@fsij.org>
14150 g10: Unattended key generation "Key-Grip" and "Subkey-Grip".
14151 + commit 680161647ad56d1ca92988f80bcc4d6fcb20b1eb
14152 * g10/keygen.c (pSUBKEYGRIP): New.
14153 (read_parameter_file): Add "Key-Grip" and "Subkey-Grip".
14154 (do_generate_keypair): Support pSUBKEYGRIP.
14156 g10: Simplify "factory-reset" procedure.
14157 + commit f183b9768b42a6792c55a6129488bd8fbf5e8e6d
14158 * g10/card-util.c (factory_reset): Simplify.
14160 2017-11-02 Ineiev <ineiev@gnu.org>
14162 po: Update Russian translation.
14163 + commit 6070f5a61d4d17ff437c69e1b708d49d107c22dc
14166 2017-11-02 Werner Koch <wk@gnupg.org>
14168 gpg: Introduce magic value 25519 to switch a card to ECC.
14169 + commit acb300543422c660c87ac2f0211a42f792a65cc4
14170 * g10/card-util.c (ask_card_keyattr): Handle special value 25519.
14171 (do_change_keyattr): Allow changing to cv25519/ed25519.
14172 (generate_card_keys): Ditto.
14173 (card_generate_subkey): Ditto.
14175 gpg: Rename two card related functions in card-util.
14176 + commit de3a740c2e1156e58d2f94faa85c051740c8988e
14177 * g10/card-util.c (ask_card_rsa_keysize): Rename to ask_card_keyattr.
14178 (do_change_rsa_keysize): Rename to do_change_keyattr.
14180 gpg: Unifiy the message for re-configuring cards.
14181 + commit 922bae8082f2f8d696ea0e7d7e9e4d986789bdfc
14182 * g10/card-util.c (ask_card_keyattr): Print "rsaNNNN".
14184 gpg: Introduce magic value 25519 to switch a card to ECC.
14185 + commit ea09b6cded9d31a8ebd91878553c3eaa2b76e817
14186 * g10/card-util.c (show_keysize_warning): Slightly change the text.
14187 (ask_card_keyattr): Handle special value 25519.
14188 (do_change_keyattr): Allow changing to cv25519/ed25519.
14189 (generate_card_keys): Ditto.
14190 (card_generate_subkey): Ditto.
14192 2017-11-02 NIIBE Yutaka <gniibe@fsij.org>
14194 agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
14195 + commit 3da47d19df89d302c0ea25921f4bd8ce55705afe
14196 * agent/learncard.c (agent_handle_learn): Find SERIALNO.
14198 agent: Fix returning GPG_ERR_NOT_FOUND wrongly.
14199 + commit 5e96fe72e477d09e35ccee48af0fd9ab2b3ae409
14200 * agent/learncard.c (agent_handle_learn): Find SERIALNO.
14202 2017-11-01 NIIBE Yutaka <gniibe@fsij.org>
14204 common: Accept the Z-suffix for yymmddThhmmssZ format.
14205 + commit 0e5bd473a07f188615c4fce26b73bb452d689d68
14206 * common/gettime.c (isotime_p): Accept the Z suffix.
14208 2017-11-01 Werner Koch <wk@gnupg.org>
14210 gpg: Rename two card related functions in card-util.
14211 + commit f795f4529d8ab5a05db1cc1960abd34390bfae1b
14212 * g10/card-util.c (ask_card_rsa_keysize): Rename to ask_card_keyattr.
14213 (do_change_rsa_keysize): Rename to do_change_keyattr.
14215 2017-11-01 NIIBE Yutaka <gniibe@fsij.org>
14217 g10: Unattended key generation "Key-Grip" and "Subkey-Grip".
14218 + commit 6c63a04569c07c9c2817c7c530a92ccfa58155cc
14219 * g10/keygen.c (pSUBKEYGRIP): New.
14220 (read_parameter_file): Add "Key-Grip" and "Subkey-Grip".
14221 (do_generate_keypair): Support pSUBKEYGRIP.
14223 2017-10-30 NIIBE Yutaka <gniibe@fsij.org>
14225 g10: Simplify "factory-reset" procedure.
14226 + commit d63b7966cdd72548c60466c620de5cd6104a779e
14227 * g10/card-util.c (factory_reset): Simplify.
14229 2017-10-27 NIIBE Yutaka <gniibe@fsij.org>
14231 agent: Clean up pinentry access locking.
14232 + commit 3924e1442c6625a2b57573a1a634a5ec56b09a29
14233 * agent/agent.h (struct server_control_s): Rename PINENTRY_ACTIVE.
14234 * agent/call-pinentry.c (entry_owner): Remove.
14235 (agent_reset_query): Use thread private object of PINENTRY_ACTIVE.
14236 (unlock_pinentry): Add CTRL to arguments to access thread private.
14237 Check and decrement PINENTRY_ACTIVE for recursive use.
14238 (start_pinentry): Check and increment PINENTRY_ACTIVE for recursion.
14239 (agent_askpin): Follow the change of unlock_pinentry API.
14240 (agent_get_passphrase, agent_get_confirmation): Likewise.
14241 (agent_show_message, agent_popup_message_start): Likewise.
14242 (agent_popup_message_stop, agent_clear_passphrase): Likewise.
14244 agent: Allow recursive use of pinentry.
14245 + commit 4738256f2e0d22302377c9ec7b2ae3999338e6c6
14246 * agent/agent.h (struct server_control_s): Add pinentry_level.
14247 * agent/call-pinentry.c (agent_popup_message_stop): Not clear
14249 (unlock_pinentry): Handle recursion. Clear ENTRY_CTX here.
14250 (start_pinentry): Allow recursive use.
14252 agent: Clean up pinentry access locking.
14253 + commit fb7828676cc2c01047498898378711e049f73fee
14254 * agent/agent.h (struct server_control_s): Rename PINENTRY_ACTIVE.
14255 * agent/call-pinentry.c (entry_owner): Remove.
14256 (agent_reset_query): Use thread private object of PINENTRY_ACTIVE.
14257 (unlock_pinentry): Add CTRL to arguments to access thread private.
14258 Check and decrement PINENTRY_ACTIVE for recursive use.
14259 (start_pinentry): Check and increment PINENTRY_ACTIVE for recursion.
14260 (agent_askpin): Follow the change of unlock_pinentry API.
14261 (agent_get_passphrase, agent_get_confirmation): Likewise.
14262 (agent_show_message, agent_popup_message_start): Likewise.
14263 (agent_popup_message_stop, agent_clear_passphrase): Likewise.
14265 2017-10-26 NIIBE Yutaka <gniibe@fsij.org>
14267 agent: Allow recursive use of pinentry.
14268 + commit 3b66a256e3760e88066ca11b7b49d924e42aa46b
14269 * agent/agent.h (struct server_control_s): Add pinentry_level.
14270 * agent/call-pinentry.c (agent_popup_message_stop): Not clear
14272 (unlock_pinentry): Handle recursion. Clear ENTRY_CTX here.
14273 (start_pinentry): Allow recursive use.
14275 agent, tests: Support --disable-scdaemon build case.
14276 + commit 05cb87276c21c3a47226c75026fa46a955553dd9
14277 * agent/command.c (cmd_scd): Support !BUILD_WITH_SCDAEMON.
14278 * tests/openpgp/defs.scm (create-gpghome): Likewise.
14279 * tests/gpgsm/gpgsm-defs.scm (create-gpgsmhome): Likewise.
14281 Fix comment of configure.
14282 + commit b13972dfbf7224478652038725ab0d2cb41b7303
14283 * configure.ac (BUILD_WITH_DIRMNGR): Comment fix.
14285 agent, tests: Support --disable-scdaemon build case.
14286 + commit bf26c08b95389718ba07f12789d372c6f438134f
14287 * agent/command.c (cmd_scd): Support !BUILD_WITH_SCDAEMON.
14288 * tests/openpgp/defs.scm (create-gpghome): Likewise.
14289 * tests/gpgsm/gpgsm-defs.scm (create-gpgsmhome): Likewise.
14291 Fix comment of configure.
14292 + commit 3549dce4f5a726f5350ac2f20d83ba9f84cc23b4
14293 * configure.ac (BUILD_WITH_DIRMNGR): Comment fix.
14295 2017-10-24 Werner Koch <wk@gnupg.org>
14297 gpg: Avoid superfluous sig check info during import.
14298 + commit 84af859e391a757877c9a1d78e35face983e6d23
14299 * g10/key-check.c (print_info): New.
14300 (key_check_all_keysigs): Print sig checking results only in debug
14301 mode. Prettify the stats info and suppress them in quiet mode.
14303 build: New configure option --enable-werror.
14304 + commit 812fe29bff42cf7dbd07e0becc55b2ada340dd97
14305 * configure.ac: Implement that option.
14307 build: Do not mess with CFLAGS in configure.
14308 + commit e417aaf69817fcb4a73c38077853dc940a2deabc
14309 * configure.ac: Do not mess with the user provided CFLAGS.
14311 2017-10-24 Rainer Perske <rainer.perske@uni-muenster.de>
14313 sm: Do not expect X.509 keyids to be unique.
14314 + commit 1067403c8a7fb51decf30059e46901b5ee9f5b37
14315 * sm/certlist.c (gpgsm_find_cert): Add arg allow_ambiguous and use it.
14316 * sm/call-dirmngr.c (inq_certificate): Pass true to ALLOW_AMBIGUOUS
14317 (run_command_inq_cb): Ditto.
14318 * sm/gpgsm.c (main): Pass false.
14319 * sm/server.c (cmd_passwd): Pass false.
14321 2017-10-24 Werner Koch <wk@gnupg.org>
14323 gpgconf: Ignore non-installed components with --apply-profile.
14324 + commit 6e808ae4700dc5e95bf4cc2d5c063df582c234d0
14325 * tools/gpgconf-comp.c (retrieve_options_from_program): Add arg
14327 (gc_component_retrieve_options): Use this if we want to process all
14330 gpg: Improve the "secret key available" notice in keyedit.c.
14331 + commit 560d85ecff4246133d185dc29395f07c918b5556
14332 * g10/keyedit.c (KEYEDIT_NEED_SUBSK): New.
14333 (cmds): Add this flag to keytocard, bkuptocard, expire, and passwd.
14334 (keyedit_menu): Check whether only subkeys are available and take care
14335 of that in the command check and in the HELP listing. Also print a
14336 different notice if only subkeys are available.
14338 gpg: Remove unused flags from keyedit.c.
14339 + commit 016538d82867c40a21bc7cbf44ec386f4699077f
14340 * g10/keyedit.c (KEYEDIT_NOT_SK, KEYEDIT_ONLY_SK): Remove.
14341 (cmds): Remove them.
14343 2017-10-19 Werner Koch <wk@gnupg.org>
14345 gpg: Fix creating on-disk subkey with on-card primary key.
14346 + commit 44fb3fbc85b32552c91f32f099b6b246c12ce0cc
14347 * g10/keygen.c (generate_subkeypair): Ignore error code issued for
14348 trying to verify a card based key.
14350 gpg: Print sec/sbb with --import-option import-show or show-only.
14351 + commit 2c7dccca9b617780a3ea760adf460bb3b77f90f3
14352 * g10/import.c (import_one): Pass FROM_SK to list_keyblock_direct.
14354 gpg: Make --dry-run and show-only work for secret keys.
14355 + commit 68c8619114fd5f24cb6bfb9e0f25c428a8805323
14356 * g10/import.c (import_secret_one): Check for dry-run before
14359 2017-10-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
14361 dirmngr: Do not follow https-to-http redirects.
14362 + commit 1ba308aa0356a57c21c4c8c2dac75b4d62b8aac3
14363 * dirmngr/ks-engine-http.c (ks_http_fetch): Forbid redirects from
14364 a https URI to a http URI.
14366 2017-10-19 NIIBE Yutaka <gniibe@fsij.org>
14368 g10: Fix find_and_check_key for multiple keyrings.
14369 + commit d07de3862710d88bc80d6f6c5ca8da5cf38ff0eb
14370 * g10/pkclist.c (find_and_check_key): Call get_validity on a specific
14373 2017-10-19 Werner Koch <wk@gnupg.org>
14375 gpg: Keep a lock during the read-update/insert cycle in import.
14376 + commit 7c73db3d31c6457dfbdc82a8dc89951c023f0603
14377 * g10/keydb.c (keydb_handle): New field 'keep_lock'.
14378 (keydb_release): Clear that flag.
14379 (keydb_lock): New function.
14380 (unlock_all): Skip if KEEP_LOCK is set.
14381 * g10/getkey.c (get_keyblock_byfprint_fast): Call keep_lock if
14384 gpg: Improve keydb handling in the main import function.
14385 + commit 8448347b5bdee56e6f9938a93ea92fe4d3c8800c
14386 * g10/getkey.c (get_pubkey_byfprint_fast): Factor most code out to ...
14387 (get_keyblock_byfprint_fast): .. new function.
14388 * g10/import.c (revocation_present): s/int rc/gpg_error_t err/.
14389 (import_one): Use get_keyblock_byfprint_fast to get the keyblock and a
14390 handle. Remove the now surplus keyblock fetch in the merge branch.
14392 gpg: Simplify keydb handling of the main import function.
14393 + commit 752cae6dd2ee8982a34c796a3f168ae538f7938c
14394 * g10/import.c (import_keys_internal): Return gpg_error_t instead of
14395 int. Change var names.
14396 (import_keys_es_stream): Ditto.
14397 (import_one): Ditto. Use a single keydb_new and simplify the use of
14400 sm: Fix colon listing of fields > 12 in crt records.
14401 + commit 1bf5cbd3ef01b7f5fdcfa30c882047b924dcf3f0
14402 * sm/keylist.c (print_capabilities): Move colon printing ...
14403 (list_cert_colon): to here.
14405 2017-10-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14407 agent: Send pinentry the uid of connecting process where possible.
14408 + commit 28aa6890588cc108639951bb4bef03ac17743046
14409 * agent/agent.h (server_control_s): Add field 'client_uid'.
14410 * agent/call-pinentry.c (start_pinentry): Add uid field to assuan
14411 option "owner" sent to pinentry.
14412 * agent/command-ssh.c (peer_info_s): New static struct.
14413 (get_client_pid): Rename to...
14414 (get_client_info): Here, and extract uid in addition to pid.
14415 (start_command_handler_ssh): Use get_client_info() instead of
14417 * agent/command.c (start_command_handler): Try assuan_get_peercred,
14418 and only fall back to assuan_get_pid when assuan_get_peercred fails.
14420 2017-10-19 NIIBE Yutaka <gniibe@fsij.org>
14422 g10: Fix find_and_check_key for multiple keyrings.
14423 + commit 995c46ea77cff5b99b2fca17b547d6525a4f227e
14424 * g10/pkclist.c (find_and_check_key): Call get_validity on a specific
14427 2017-10-18 Werner Koch <wk@gnupg.org>
14429 gpg: Keep a lock during the read-update/insert cycle in import.
14430 + commit 645f30ad310a518a863eb7bd3e11251a7e7f2eca
14431 * g10/keydb.c (keydb_handle): New field 'keep_lock'.
14432 (keydb_release): Clear that flag.
14433 (keydb_lock): New function.
14434 (unlock_all): Skip if KEEP_LOCK is set.
14435 * g10/getkey.c (get_keyblock_byfprint_fast): Call keep_lock if
14438 gpg: Improve keydb handling in the main import function.
14439 + commit 3bb06531d38b85be295308e826a50a1a7ba935ec
14440 * g10/getkey.c (get_pubkey_byfprint_fast): Factor most code out to ...
14441 (get_keyblock_byfprint_fast): .. new function.
14442 * g10/import.c (revocation_present): s/int rc/gpg_error_t err/.
14443 (import_one): Use get_keyblock_byfprint_fast to get the keyblock and a
14444 handle. Remove the now surplus keyblock fetch in the merge branch.
14446 gpg: Simplify keydb handling of the main import function.
14447 + commit d353287f721ffb56627d55bef04cc770ff0a8681
14448 * g10/import.c (import_keys_internal): Return gpg_error_t instead of
14449 int. Change var names.
14450 (import_keys_es_stream): Ditto.
14451 (import_one): Ditto. Use a single keydb_new and simplify the use of
14454 gpg: Fix wrong Tofu DB consistency check.
14455 + commit 18e5946aef458cd95fdce4a04e144747b52b0472
14456 * g10/tofu.c (build_conflict_set): Do not assume MAX_FINGERPRINT_LEN
14457 is the size of the fingerprint.
14459 2017-10-17 Werner Koch <wk@gnupg.org>
14461 gpg,sm: New option --with-key-screening.
14462 + commit 825abec0e7f38667a34dce3025fc2f3a05001dde
14463 * common/pkscreening.c: New.
14464 * common/pkscreening.h: New.
14465 * common/Makefile.am (common_sources): Add them.
14466 * g10/gpg.c (opts): New option --with-key-screening.
14467 * g10/options.h (struct opt): New field with_key_screening.
14468 * g10/keylist.c: Include pkscreening.h.
14469 (print_pk_screening): New.
14470 (list_keyblock_print): Call it.
14471 (print_compliance_flags): Call it.
14472 * sm/gpgsm.c (opts): New option --with-key-screening.
14473 * sm/gpgsm.h (scruct opt): New field with_key_screening.
14474 * sm/keylist.c: Include pkscreening.h.
14475 (print_pk_screening): New.
14476 (print_compliance_flags): Call it. Add new arg cert.
14477 (list_cert_colon): Pass arg cert
14478 (list_cert_std): Call print_pk_screening.
14479 * sm/fingerprint.c (gpgsm_get_rsa_modulus): New.
14481 sm: Fix colon listing of fields > 12 in crt records.
14482 + commit 69e579d78545aee5096a5d170e1cb9e511a09a90
14483 * sm/keylist.c (print_capabilities): Move colon printing ...
14484 (list_cert_colon): to here.
14486 2017-10-06 Neal H. Walfield <neal@g10code.com>
14488 gpg: Fix comparison.
14489 + commit 1ed21eee79749b976b4a935f2279b162634e9c5e
14490 * g10/gpgcompose.c (literal_name): Complain if passed zero arguments,
14493 2017-09-28 Werner Koch <wk@gnupg.org>
14495 gpg: Workaround for junk after --trusted-key.
14496 + commit b509d81cab030cca6abf0d878e1fc884eda344e6
14497 * g10/trust.c (register_trusted_key): Cut off everthing starting as a
14500 2017-09-27 Werner Koch <wk@gnupg.org>
14502 gpg: Prepare for a longer fingerprint.
14503 + commit ecbbafb88d920e713439b6b1b8e1b41a6f8d0e38
14504 * g10/card-util.c (change_cafpr): Use MAX_FINGERPRINT_LEN.
14505 * g10/cipher.c (write_header): Use snprintf.
14506 * g10/gpg.h (MAX_FINGERPRINT_LEN): Change to 32.
14507 (MAX_FORMATTED_FINGERPRINT_LEN): Change to 59
14508 * g10/keyid.c (format_hexfingerprint): Add v5 fingerprint format.
14509 * g10/tofu.c (get_policy): Use MAX_FINGERPRINT_LEN for the buffer but
14510 keep the raw length for now.
14512 common: Add constant KEYGRIP_LEN.
14513 + commit 76c80021d4da0755dbb04bd5d42f32015cba0b9a
14514 * common/util.h (KEYGRIP_LEN): New.
14515 * g10/call-agent.c (agent_probe_any_secret_key): Use that constant.
14516 * g10/keyid.c (keygrip_from_pk): Ditto.
14518 gpg: Let --debug clock time sign and verify.
14519 + commit 6aa4478c78cb34cf3d0ae5c752525110947bd247
14520 * configure.ac (ENABLE_LOG_CLOCK): New ac_define and option.
14521 * common/logging.c (log_clock): Use ENABLE_LOG_CLOCK to enable
14522 timestamp printing.
14523 * g10/call-agent.c (agent_pksign): Time signing.
14524 * g10/sig-check.c (check_signature_end_simple): Time verification.
14526 2017-09-26 NIIBE Yutaka <gniibe@fsij.org>
14528 g10: Select a secret key by checking availability under gpg-agent.
14529 + commit 0a76611294998ae34b9d9ebde484ef8ad3a9a3a6
14530 * g10/getkey.c (finish_lookup): Add WANT_SECRET argument to confirm
14531 by agent_probe_secret_key.
14532 (get_pubkey_fromfile, lookup): Supply WANT_SECRET argument.
14534 2017-09-20 NIIBE Yutaka <gniibe@fsij.org>
14536 agent: Fix cancellation handling for scdaemon.
14537 + commit 9f5e50e7c85aa8b847d38010241ed570ac114fc3
14538 * agent/call-scd.c (cancel_inquire): Remove.
14539 (agent_card_pksign, agent_card_pkdecrypt, agent_card_writekey)
14540 (agent_card_scd): Don't call cancel_inquire.
14542 scd: Distinguish cancel by user and protocol error.
14543 + commit 2396055c096884d521c26b76f26263a146207c24
14544 * scd/apdu.h (SW_HOST_CANCELLED): New.
14545 * scd/apdu.c (host_sw_string): Support SW_HOST_CANCELLED.
14546 (pcsc_error_to_sw): Return SW_HOST_CANCELLED for PCSC_E_CANCELLED.
14547 * scd/iso7816.c (map_sw): Return GPG_ERR_INV_RESPONSE for
14548 SW_HOST_ABORTED and GPG_ERR_CANCELED for SW_HOST_CANCELLED.
14550 2017-09-19 NIIBE Yutaka <gniibe@fsij.org>
14552 common: Accept the Z-suffix for yymmddThhmmssZ format.
14553 + commit ba8afc4966cca1f6aaf9b2a9bfc3220782306c2b
14554 * common/gettime.c (isotime_p): Accept the Z suffix.
14556 2017-09-19 Werner Koch <wk@gnupg.org>
14559 + commit 355ca9e9498740fb6294eec451507b4891ae01ec
14562 2017-09-19 NIIBE Yutaka <gniibe@fsij.org>
14564 common: Fix gnupg_wait_processes.
14565 + commit eeb3da6eb717ed6a1a1069a7611eb37503e8672d
14566 * common/exechelp-posix.c (gnupg_wait_processes): Loop for r_exitcodes
14567 even if we already see an error.
14569 2017-09-18 Werner Koch <wk@gnupg.org>
14571 dirmngr: Use system certs if --hkp-cacert is not used.
14572 + commit df692a6167be5486f9a29da003a00292fd895176
14573 * dirmngr/certcache.c (any_cert_of_class): New var.
14574 (put_cert): Set it.
14575 (cert_cache_deinit): Clear it.
14576 (cert_cache_any_in_class): New func.
14577 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Add hack to
14578 override empty list of HKP certs.
14580 wks: Create a new user id if provider wants mailbox-only.
14581 + commit 50c8b6c88f5d9f4b6c4e9c03aee31fe29afa94b8
14582 * tools/gpg-wks-client.c (get_key): Add arg 'exact'.
14583 (add_user_id): New.
14584 (command_send): Create new user id.
14586 wks: Send only the newest UID to the server.
14587 + commit 7f7f5d06fa5aa3a3c5ab8d2e59ee76207bfdeaa0
14588 * tools/wks-util.c (list_key_status_cb): Rename to key_status_cb.
14589 (wks_filter_uid): New.
14590 (wks_list_key): Allow FPR to be NULL. Return an error if no
14591 fingerprint was found.
14592 * tools/gpg-wks-server.c (process_new_key)
14593 (check_and_publish): Remove now useless extra check for FPR.
14594 * tools/gpg-wks-client.c (command_check): Ditto.
14595 (command_send): Filter out the newest uid.
14597 wks: Print the UID creation time with gpg-wks-client --check.
14598 + commit a0035986a8615df056182bb9af775b8b7b22003d
14599 * tools/gpg-wks.h (uidinfo_list_s): Add field 'created'.
14600 * tools/wks-util.c (append_to_uidinfo_list): Add arf 'created'.
14601 (wks_list_key): Pass timestamp to append_to_uidinfo_list.
14602 * tools/gpg-wks-client.c (command_check): Print UID creation time.
14604 wks: Use dedicated type to convey user ids.
14605 + commit 4e0696de897cac6a34d55a69d8889faf26f1a923
14606 * tools/gpg-wks.h (uidinfo_list_s, uidinfo_list_t): New.
14607 * tools/wks-util.c (append_to_uidinfo_list): New.
14608 (free_uidinfo_list): New.
14609 (wks_list_key): Change arg r_mboxes to uidinfo_list_t. Use
14610 append_to_uidinfo_list.
14611 * tools/gpg-wks-server.c (sserver_ctx_s): Replace strlist_t by
14613 (process_new_key): Ditto.
14614 (check_and_publish): Ditto.
14615 (command_receive_cb): Replace free_strlist by free_uidinfo_list.
14616 * tools/gpg-wks-client.c (command_check): Replace strlist_t by
14617 uidinfo_list_t. Also print user id in verbose mode.
14619 2017-09-13 Werner Koch <wk@gnupg.org>
14621 gpgv: Initialize compliance checker.
14622 + commit 006ca124ed95845d43af8c14d7ab2bc085b47b4c
14623 * g10/gpgv.c (main): Call gnupg_initialize_compliance.
14625 2017-09-12 Werner Koch <wk@gnupg.org>
14627 wks: Add hack for the broken posteo system.
14628 + commit a821b4f5567d02c3329c2b94a73dcbe12e6699a2
14629 * tools/gpg-wks-client.c (command_send): Additional hack for posteo.
14630 Check the protocol-version flag.
14632 wks: Add new policy flag protocol-version.
14633 + commit 332c9eaa2a3c7cae90b389cdaa2c149c5595fb4d
14634 * tools/gpg-wks.h (policy_flags_s): Add field protocol_version.
14635 * tools/wks-util.c (wks_parse_policy): Add new policy flag.
14637 gpg: Fix "Fix key generation with only an email part".
14638 + commit 8b5a2474f21dd4f1aa2a283e2f57d75e42742af5
14639 * g10/keygen.c (proc_parameter_file): Don't check the result of
14642 wks: Use unencrypted draft-1 mode for posteo.de.
14643 + commit c65a7bba7331975d20910f90cf648b6ecc5410f0
14644 * tools/gpg-wks-client.c (command_send): Allow sending in draft-1
14647 tools: New function mime_maker_add_body_data.
14648 + commit 7d15ee88980f88ca62fc7de9492dd08e54d0f0f1
14649 * tools/mime-maker.c (mime_maker_add_body_data): New.
14651 2017-09-11 Alon Bar-Lev <alon.barlev@gmail.com>
14653 sm: Move qualified.txt from datadir into sysconfdir.
14654 + commit 384a3748d9022b7ae3f629c13f92e204565fea3d
14655 * doc/Makefile.am: Move qualified.txt into examples.
14656 * doc/qualified.txt: Move into examples, remove trailing spaces.
14657 * doc/examples/README: Document qualified.txt.
14658 * doc/gpgsm.texi: Move qualified.txt from datadir into sysconfdir.
14659 * sm/qualified.c (read_list): Move qualified.txt from datadir into
14662 2017-09-11 NIIBE Yutaka <gniibe@fsij.org>
14664 tests: Fix a test which specifies expiration date.
14665 + commit a172759b5088ae086c0caa2e7d4d0ea346b28a90
14666 * tests/openpgp/quick-key-manipulation.scm: Fix expiration time
14669 scd: Fix for large ECC keys.
14670 + commit 827abe01a72a50eab1cdcde78985b42a4a8480fb
14671 * scd/app-openpgp.c (do_decipher): Support larger length.
14673 2017-09-11 Werner Koch <wk@gnupg.org>
14675 gpg: Fix key generation with only an email part.
14676 + commit 7089dcc54099a4909ce7d386c07ab87e1398e2eb
14677 * g10/keygen.c (proc_parameter_file): Special case the email only
14680 2017-09-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14682 agent: compile-time configuration of s2k calibration.
14683 + commit 926d07c5fa05de05caef3a72b6fe156606ac0549
14684 * configure.ac: add --with-agent-s2k-calibration=MSEC, introduces
14685 AGENT_S2K_CALIBRATION (measured in milliseconds)
14686 * agent/protect.c (calibrate_s2k_count): Calibrate based on
14687 AGENT_S2K_CALIBRATION.
14689 gpg: default to AES-256.
14690 + commit 73ff075204df09db5248170a049f06498cdbb7aa
14691 * g10/main.h (DEFAULT_CIPHER_ALGO): Prefer AES256 by default.
14693 gpg: default to 3072-bit RSA keys.
14694 + commit 909fbca19678e6e36968607e8a2348381da39d8c
14695 * agent/command.c (hlp_genkey): update help text to suggest the use of
14697 * doc/wks.texi: Make example match default generation.
14698 * g10/keygen.c (DEFAULT_STD_KEY_PARAM): update to
14699 rsa3072/cert,sign+rsa3072/encr, and fix neighboring comment,
14700 (gen_rsa, get_keysize_range): update default from 2048 to 3072).
14701 * g10/keyid.c (pubkey_string): update comment so that first example
14702 is the default 3072-bit RSA.
14704 gpgsm: default to 3072-bit keys.
14705 + commit 7955262151a5c755814dd23414e6804f79125355
14706 * doc/gpgsm.texi, doc/howto-create-a-server-cert.texi: : update
14707 default to 3072 bits.
14708 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): update default to
14710 * sm/certreqgen.c (proc_parameters): update default to 3072 bits.
14711 * sm/gpgsm.c (main): print correct default_pubkey_algo.
14713 2017-09-08 NIIBE Yutaka <gniibe@fsij.org>
14715 tests: Fix a test which specifies expiration date.
14716 + commit 17f764dd4972a063fe09c4b9d2846e8efcb25c7a
14717 * tests/openpgp/quick-key-manipulation.scm: Fix expiration time
14720 2017-08-29 NIIBE Yutaka <gniibe@fsij.org>
14722 scd: Fix for large ECC keys.
14723 + commit ff7ccd284c327a5b1c89603f157089177dac9d13
14724 * scd/app-openpgp.c (do_decipher): Support larger length.
14726 2017-08-28 Werner Koch <wk@gnupg.org>
14729 + commit 9d80fb8e000189e61c173c39f1e1ca417566a7fc
14732 2017-08-27 Werner Koch <wk@gnupg.org>
14733 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
14735 scd: Convey the correct length for Le.
14736 + commit 45d5f5800afe6613f338a26f361cb5e03e861129
14737 * scd/app-openpgp.c (determine_rsa_response): Round bits up.
14739 2017-08-24 Werner Koch <wk@gnupg.org>
14741 gpg: Fix memory leak while running --check-trustdb.
14742 + commit 13821e15fb9bdddfce79d88731c0f151724b2371
14743 * g10/trustdb.c (update_min_ownertrust): Free PK.
14745 gpg: Fix memory leak in sig-check.
14746 + commit b065a696344eac3007dbd5642143ecaaeebab43a
14747 * g10/sig-check.c (check_signature_over_key_or_uid): Remove useless
14748 condition. Actually free when SIGNER was allocated by us.
14750 build: Remove obsolete option from autogen.rc.
14751 + commit 02a5df614a369519ad7781f95dc977e24a0d4277
14752 * autogen.rc: Remove --enable-gpg2-is-gpg.
14754 2017-08-23 Werner Koch <wk@gnupg.org>
14756 gpgconf: Swap "auto-key-retrieve" and "no-auto-key-retrieve".
14757 + commit 565e486b8028f9e3cc51ebc5202666b598042175
14758 * g10/gpg.c (gpgconf_list): Announce "auto-key-retrieve".
14759 (main): Simplify setting of KEYSERVER_AUTO_KEY_RETRIEVE.
14760 * tools/gpgconf-comp.c: Make "no-auto-key-retrieve" invisible. Make
14761 "auto-key-retrieve" an expert option.
14763 tests: Do not run trust-pgp-4.scm.
14764 + commit b917cb66b79597520788cd9264889942247a3377
14765 * tests/openpgp/Makefile.am (XTESTS): Remove test.
14766 (EXTRA_DIST): Add test file.
14768 build: Change SWDB tag "gnupg21" to "gnupg22".
14769 + commit 008ae0bd868cb49ad4d67fc8c71707cd2a162137
14770 * configure.ac (GNUPG_SWDB_TAG): New ac_define. Set it to "gnupg22".
14771 * tools/gpgconf.c (query_swdb): Use it.
14772 * build-aux/speedo.mk: Change tag "gnupg21" to "gnupg22".
14773 * Makefile.am (distcheck-hook): Ditto.
14775 2017-08-23 Åka Sikrom <a4@hush.com>
14777 po: Update Norwegian translation.
14778 + commit fd0e5b60bed1cfc2aed7b2e13cc449f355eac051
14781 2017-08-23 Andre Heinecke <aheinecke@intevation.de>
14783 agent: Fix string translation for Windows.
14784 + commit 6158811304937b592601ef30c29c5a5cdbaa88ea
14785 * agent/agent.h (L_): Define agent_Lunderscore when simple
14788 2017-08-22 NIIBE Yutaka <gniibe@fsij.org>
14790 po: Update Japanese translation.
14791 + commit e6fa6b0ce823effd721c807b2b292287af91c642
14794 2017-08-21 Damien Goutte-Gattat <dgouttegattat@incenp.org>
14796 tests: Add tests for the PGP trust model.
14797 + commit c23a69970ba38edae9d3b2603825d18fbb732423
14798 * tests/openpgp/trust-pgp-1.scm: New file.
14799 * tests/openpgp/trust-pgp-2.scm: New file.
14800 * tests/openpgp/trust-pgp-3.scm: New file.
14801 * tests/openpgp/trust-pgp-4.scm: New file.
14802 * tests/openpgp/trust-pgp/common.scm: New file.
14803 * tests/openpgp/trust-pgp/scenario1.asc: New file.
14804 * tests/openpgp/trust-pgp/scenario2.asc: New file.
14805 * tests/openpgp/trust-pgp/scenario3.asc: New file.
14806 * tests/openpgp/trust-pgp/scenario4.asc: New file.
14807 * tests/openpgp/trust-pgp/alice.sec.asc: New file.
14808 * tests/openpgp/trust-pgp/bobby.sec.asc: New file.
14809 * tests/openpgp/trust-pgp/carol.sec.asc: New file.
14810 * tests/openpgp/trust-pgp/david.sec.asc: New file.
14811 * tests/openpgp/trust-pgp/frank.sec.asc: New file.
14812 * tests/openpgp/trust-pgp/grace.sec.asc: New file.
14813 * tests/openpgp/trust-pgp/heidi.sec.asc: New file.
14814 * tests/openpgp/Makefile.am (XTESTS): Add new tests.
14815 (TEST_FILES): Add new files.
14816 (EXTRA_DIST): Add new common file.
14818 tests: Move some functions into a common module.
14819 + commit cbe54b28bf3610204e12c50c0606df37337a1156
14820 * tests/openpgp/tofu.scm (gettrust): Moved to the common defs.scm
14822 (checktrust): Likewise.
14823 * tests/openpgp/defs.scm (gettrust): New function.
14824 (checktrust): Likewise.
14826 gpgconf: Make WoT settings configurable by gpgconf.
14827 + commit 0161225457e0609509d0d5f4b80a60a1071b4b48
14828 * tools/gpgconf-comp.c (gc_options_gpg): Add max-cert-depth,
14829 completes-needed, and marginals-needed options.
14830 * g10/gpg.c (gpgconf_list): Likewise.
14832 2017-08-21 Justus Winter <justus@g10code.com>
14834 gpgscm: Fix -Wimplicit-fallthrough warnings.
14835 + commit 6e596b2a745ae7a75a69038cf00ab4bbae1cebaa
14836 * tests/gpgscm/scheme.c (CASE): Rearrange so that the case statement
14838 (Eval_Cycle): Improve fallthrough annotations.
14840 2017-08-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14842 gpg: default to --no-auto-key-retrieve.
14843 + commit e6f84116abca2ed49bf14b2e28c3c811a3717227
14844 * g10/gpg.c (main): remove KEYSERVER_AUTO_KEY_RETRIEVE from the
14845 default keyserver options.
14846 * doc/gpg.texi: document this change.
14848 2017-08-10 Justus Winter <justus@g10code.com>
14850 tests: Improve documentation.
14851 + commit 23107ba20f8b4eb5482b480ad6a8af6b39d2bfeb
14852 * tests/openpgp/README: Add quickstart instructions, how to use
14853 shell.scm, remove no longer used MKDATA.
14855 2017-08-09 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
14857 g10: Write status error on error of --quick-revoke-uid.
14858 + commit 977fc5f0eb9fdee19e66bea8cd2eb5414789b485
14859 * g10/keyedit.c (keyedit_quick_revuid): Write status error on error.
14861 2017-08-09 Werner Koch <wk@gnupg.org>
14864 + commit e8ffa9a6ca5d76660b67207cd1157068e48483de
14867 po: Update German translation.
14868 + commit 2059dbf201963c6f229698ae80c6c774b1f686c8
14871 2017-08-08 Werner Koch <wk@gnupg.org>
14873 build: New configure option --enable-all-tests.
14874 + commit fb21aa8b50367e2afa13bad73fc21d6f01a97e18
14875 * configure.ac: New option --enable-all-tests.
14876 * tests/gpgscm/ffi.c (ffi_init): New gloabl var *run-all-tests*.
14877 * tests/openpgp/all-tests.scm (all-tests): Use that var instead
14878 of *maintainer-mode*.
14879 * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): Add --enable-all-tests.
14881 gpgscm: Make the test summary stand out.
14882 + commit 0bd19dae1161a71053d794e4f75e66f70445f9f0
14883 * tests/gpgscm/tests.scm (test-pool): Add delimiter lines.
14885 sm: Always print the keygrip in colon mode.
14886 + commit 0a8e20c4c639f0c491e2af5ac5fb97005196422b
14887 * sm/keylist.c (list_cert_colon): Always print the keygrip as
14888 described in the manual.
14890 2017-08-08 Justus Winter <justus@g10code.com>
14892 gpg: Add option '--disable-dirmngr'.
14893 + commit c4506f624ed6854aa0ba1629aa2d1d43eb26900d
14894 * doc/gpg.texi: Document new option.
14895 * g10/call-dirmngr.c (create_context): Fail if option is given.
14896 * g10/gpg.c (cmd_and_opt_values): New value.
14897 (opts): New option.
14898 (gpgconf_list): Add new option.
14899 (main): Handle new option.
14900 * g10/options.h (struct opt): New field 'disable_dirmngr'.
14901 * tools/gpgconf-comp.c (gc_options_gpg): New option.
14903 2017-08-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14905 systemd-user: Drop redundant After=*.socket.
14906 + commit 81074c3b0211854a2dc94600dc892224201536f5
14907 * doc/examples/systemd-user/*.service: Drop redundant After=*.socket
14910 systemd-user: Drop RefuseManualStart=true.
14911 + commit 407da18254dfebcacfaee16952ef0b617b1626ea
14912 * doc/examples/systemd-user/*.service: drop RefuseManualStart=true
14914 2017-08-07 Justus Winter <justus@g10code.com>
14916 tests: Do not run all tests unless in maintainer mode.
14917 + commit b0112dbca91e720a4ff622ad0e88d99eba56203a
14918 * configure.ac: Leak the maintainer mode flag into 'config.h'.
14919 * tests/gpgscm/ffi.c: Pass it into the scheme environment.
14920 * tests/openpgp/all-tests.scm: Only run tests against non-default
14921 configurations (keyring, extended-key-format) in maintainer mode.
14923 2017-08-07 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14926 + commit a611cba142470c52f3303c512f77ae7d195cc41f
14927 * doc/gpg.texi: s/occured/occurred/
14930 + commit f011d8763a009612c858a287cf7cc6a1f1a6d32a
14931 * agent/gpg-agent.c: Correct spelling in comment.
14933 2017-08-05 Werner Koch <wk@gnupg.org>
14935 gpg: Install gpg by default under the name gpg.
14936 + commit a69464b0b6dac88b360a13d3faf19dd7f2a0e02b
14937 * configure.ac: Remove option --enable-gpg2-is-gpg. Add option
14938 --enable-gpg-is-gpg2.
14939 * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Remove
14940 --enable-gpg2-is-gpg.
14942 gpg: gpgconf needs to support the now default --auto-key-retrieve.
14943 + commit 69e97d909d586160cc0631c9a6f4d3f24bb0c682
14944 * tools/gpgconf-comp.c (gc_options_gpg): Re-add "auto-key_retrieve".
14946 2017-08-04 Werner Koch <wk@gnupg.org>
14948 gpg: Fix memory leak in parse_auto_key_locate.
14949 + commit b70e86fd1050fc6da07a177ed142ae9882b4dd0d
14950 * g10/getkey.c (parse_auto_key_locate): Fix freeing of OPTIONS.
14952 tests: Adjust tests for changed --auto-key-locate default.
14953 + commit 0767eada1479c0fa9d4b75781a8c2afb67bdbf90
14954 * tests/openpgp/defs.scm (create-gpghome): Disable new defaults.
14956 gpg: Make --no-auto-key-retrieve gpgconf-igurable.
14957 + commit 9bb13a0e819334681caca38c9074bd7bfc04e45e
14958 * g10/gpg.c (gpgconf_list): Print no-auto-key-retrieve instead of
14960 * tools/gpgconf-comp.c (gc_options_gpg): Replace auto-key-retrieve by
14961 no-auto-key-retrieve and chnage level from invisible to advanced.
14963 gpg: Default to --auto-key-locate "local,wkd" and --auto-key-retrieve.
14964 + commit 7e1fe791d188b078398bf83c9af992cb1bd2a4b3
14965 * g10/gpg.c (main): Add KEYSERVER_AUTO_KEY_RETRIEVE to the default
14966 keyserver options. Set the default for --auto-key-locate to
14967 "local,wkd". Reset that default iff --auto-key-locate has been given
14968 in the option file or in the commandline.
14969 * g10/getkey.c (parse_auto_key_locate): Work on a copy of the arg.
14971 agent: Make --no-grab the default.
14972 + commit 3d78ae4d3de08398fabae5821045a3a1da6dadbe
14973 * agent/gpg-agent.c (oGrab): New const.
14974 (opts): New option --grab. Remove description for --no-grab.
14975 (parse_rereadable_options): Make --no-grab the default.
14976 (finalize_rereadable_options): Allow --grab to override --no-grab.
14977 (main) <gpgconflist>: Add "grab".
14978 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add "grab".
14980 gpg: Avoid double fingerprint printing with import-show.
14981 + commit b54d75fb1dcfa2cebb3a2497b81ffb49acac2056
14982 * g10/import.c (import_one) <IMPORT_SHOW>: Take care of fingerprint
14985 gpg: New import option show-only.
14986 + commit d9fabcc1989d7235ea0294874803295a30f8711b
14987 * g10/options.h (IMPORT_DRY_RUN): New.
14988 * g10/import.c (parse_import_options): Add "show-only".
14989 (import_one): use that as alternative to opt.dry_run.
14991 2017-08-03 Werner Koch <wk@gnupg.org>
14993 wks: Allow gpg-wks-client --supported with just the domain name.
14994 + commit 6cba56d436b56ea5e60042144a8a75a2e80007c8
14995 * tools/gpg-wks-client.c (command_supported): Hack for missing local
14998 2017-08-02 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15000 g10: Always save standard revocation certificate in file.
15001 + commit dcfb01959802b27869528dda1d9a4f5e79574bb5
15002 * g10/revoke.c (gen_standard_revocation): Set opt.outfile to NULL
15003 temporarily to create certificate in right place.
15005 2017-08-01 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15007 Revert "g10: Always save standard revocation certificate in file."
15008 + commit 624cd2d0bf6cc6dd1b79654295dc76f5b2d6d70b
15009 This reverts commit ebc65ff459e6c228fb7406e375819a9fe5637abe.
15011 g10: Always save standard revocation certificate in file.
15012 + commit ebc65ff459e6c228fb7406e375819a9fe5637abe
15013 * g10/main.h (open_outfile): New parameter NO_OUTFILE.
15014 * g10/openfile.c (open_outfile): New parameter NO_OUTFILE. If given,
15015 never use opt.outfile.
15016 * g10/revoke.c (create_revocation): If FILENAME is true, also set
15017 NO_OUTFILE to true (for standard revocation certificates).
15018 * g10/dearmor.c, g10/encrypt.c, g10/export.c, g10/revoke.c,
15019 g10/sign.c: Adjust all other callers.
15021 artwork: Add icons.
15022 + commit a8d0b8d2333ddab703d1e346e06c106eeeedfd53
15023 * artwork/icons/index.css: New file.
15024 * artwork/icons/index.html: New file.
15025 * artwork/icons/lock-12.png: New file.
15026 * artwork/icons/lock-128.png: New file.
15027 * artwork/icons/lock-16.png: New file.
15028 * artwork/icons/lock-24.png: New file.
15029 * artwork/icons/lock-256.png: New file.
15030 * artwork/icons/lock-32.png: New file.
15031 * artwork/icons/lock-48.png: New file.
15032 * artwork/icons/lock-64.png: New file.
15033 * artwork/icons/lock-wing-12.png: New file.
15034 * artwork/icons/lock-wing-128.png: New file.
15035 * artwork/icons/lock-wing-16.png: New file.
15036 * artwork/icons/lock-wing-24.png: New file.
15037 * artwork/icons/lock-wing-256.png: New file.
15038 * artwork/icons/lock-wing-32.png: New file.
15039 * artwork/icons/lock-wing-48.png: New file.
15040 * artwork/icons/lock-wing-64.png: New file.
15041 * artwork/icons/lock-wing.svg: New file.
15042 * artwork/icons/lock.svg: New file.
15043 * artwork/icons/wing-12.png: New file.
15044 * artwork/icons/wing-128.png: New file.
15045 * artwork/icons/wing-16.png: New file.
15046 * artwork/icons/wing-24.png: New file.
15047 * artwork/icons/wing-256.png: New file.
15048 * artwork/icons/wing-32.png: New file.
15049 * artwork/icons/wing-48.png: New file.
15050 * artwork/icons/wing-64.png: New file.
15051 * artwork/icons/wing.svg: New file.
15053 2017-08-01 Werner Koch <wk@gnupg.org>
15055 gpg,sm: Error out on compliance mismatch while decrypting.
15056 + commit 4e117f206beb38287ddcd3251fb7baabadfbddbb
15057 * g10/pubkey-enc.c (get_session_key): Bail out if the algo is not
15058 allowed in the current compliance mode.
15059 * sm/decrypt.c (gpgsm_decrypt): Ditto.
15061 2017-08-01 NIIBE Yutaka <gniibe@fsij.org>
15064 + commit fde9a8cc6c849fb21f3e6782dbd5c6bc863357eb
15065 * tools/rfc822parse.c: Fix.
15067 po: Update Japanese translation.
15068 + commit 02b571947b9442604faa7509478cd8577c2c0b9c
15071 2017-07-31 Werner Koch <wk@gnupg.org>
15073 dirmngr,w32: Fix http connection timeout problem.
15074 + commit 482fd5758c1b7e1b33c4cb50656e586a3ae16815
15075 * dirmngr/http.c (connect_with_timeout) [W32]: Take care of EAGAIN.
15077 Explain the "server is older than xxx warning".
15078 + commit 4ad5bc1b6d72483123963c894ee1412b2ceb99b4
15079 * g10/call-agent.c (warn_version_mismatch): Print a note on how to
15080 restart the servers.
15081 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
15082 * sm/call-agent.c (warn_version_mismatch): Ditto.
15083 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
15085 2017-07-28 Werner Koch <wk@gnupg.org>
15088 + commit 7d335ff496b129ee6f33c4ca25bd7a6631a4b590
15091 po: Update German translation.
15092 + commit 339f672dad94b4e0000fd2d3a1f272a4861c91c3
15095 agent: Make --ssh-fingerprint-digest re-readable.
15096 + commit 6c9899bede6ecb2ccf7336d12724090f36a6aa3d
15097 * agent/gpg-agent.c (main): Move oSSHFingerprintDigest to ...
15098 (parse_rereadable_options): here.
15099 (opts): Change its description.
15100 (main) <aGPGConfList>: Include this option.
15101 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add option at expert
15104 gpg,sm: String changes for compliance diagnostics.
15105 + commit efe187e8a2b583defdcd9d4b96e3dc83f95bef0d
15108 agent: For OCB key files return Bad Passprase instead of Checksum Error.
15109 + commit 5cf95157c5db88dd599ac4d48f619782179b1438
15110 * agent/protect.c (do_decryption): Map error checksum to bad
15111 passpharse protection
15113 * agent/call-pinentry.c (unlock_pinentry): Don't munge the error
15114 source for corrupted protection.
15116 gpg: Minor rework for better readibility of get_best_pubkey_byname.
15117 + commit 1c35e29af95c46475f297d2bd70a5f3bd49d45b1
15118 * g10/getkey.c (get_best_pubkey_byname): Change return type to
15119 gpg_error_t. Use var name err instead of rc. Move a
15120 gpg_error_from_syserror closer to the call.
15122 gpg: Fix segv in get_best_pubkey_byname.
15123 + commit 6496dc1f9d2aef3bf8cf950da2434c96f7a0145c
15124 * g10/getkey.c (get_best_pubkey_byname): Init NEW.
15126 agent: Minor cleanup (mostly for documentation).
15127 + commit 5516ef47a22dfdf9cdf56107f34d2bda9e46deec
15128 * agent/command.c (cmd_pksign): Change var name 'rc' to 'err'.
15129 * agent/findkey.c (read_key_file): Ditto. Change return type to
15130 gpg_error_t. On es_fessk failure return a correct error code.
15131 (agent_key_from_file): Change var name 'rc' to 'err'.
15132 * agent/pksign.c (agent_pksign_do): Ditto. Change return type to
15133 gpg_error_t. Return a valid erro code on malloc failure.
15134 (agent_pksign): Ditto. Change return type to gpg_error_t. replace
15135 xmalloc by xtrymalloc.
15136 * agent/protect.c (calculate_mic): Change return type to gpg_error_t.
15137 (do_decryption): Ditto. Do not init RC.
15138 (merge_lists): Change return type to gpg_error_t.
15139 (agent_unprotect): Ditto.
15140 (agent_get_shadow_info): Ditto.
15142 2017-07-27 Werner Koch <wk@gnupg.org>
15144 gpg: Tweak compliance checking for verification.
15145 + commit 6502bb0d2af5784918ebb74242fff6f0a72844bf
15146 * common/compliance.c (gnupg_pk_is_allowed): Rework to always allow
15148 * g10/mainproc.c (check_sig_and_print): Print a con-compliant warning.
15149 * g10/sig-check.c (check_signature2): Use log_error instead of
15152 gpg,sm: Allow encryption (with warning) to any key in de-vs mode.
15153 + commit 1bd22a85b4f06324037b3500d2fa8af62733c926
15154 * g10/encrypt.c (encrypt_crypt): Do not abort for a non-compliant key.
15155 * sm/encrypt.c (gpgsm_encrypt): Ditto.
15157 gpg,sm: Fix compliance checking for decryption.
15158 + commit a0d0cbee7654ad7582400efaa92d493cd8e669e9
15159 * common/compliance.c (gnupg_pk_is_compliant): Remove the Elgamal
15160 signing check. We don't support Elgamal signing at all.
15161 (gnupg_pk_is_allowed) <de-vs>: Revert encryption/decryption for RSA.
15162 Check the curvenames for ECDH.
15163 * g10/pubkey-enc.c (get_session_key): Print only a warning if the key
15165 * sm/decrypt.c (gpgsm_decrypt): Ditto. Use the same string as in gpg
15166 so that we have only one translation.
15168 gpg: Avoid output to the tty during import.
15169 + commit fcb62fe20f45290bf95703ec3bf4d0b361fa4339
15170 * g10/key-check.c (key_check_all_keysigs): Add arg mode and change all
15171 output calls to use it.
15172 * g10/keyedit.c (keyedit_print_one_sig): Add arg fp and chnage all
15173 output calls to use it.
15174 (keyedit_menu): Adjust for changes.
15175 * g10/gpgcompose.c (keyedit_print_one_sig): Add dummy arg fp.
15176 * g10/import.c (import_one): Call key_check_all_keysigs with output to
15179 2017-07-26 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15181 g10: Make sure exactly one fingerprint is output with --quick-gen-key.
15182 + commit 94eea0ed2c8b47cb0fe02b22cbe668705a5fe0d0
15183 * g10/keygen.c (do_generate_keypair): Only set fpr in
15184 list_keyblock_direct invocation if neither --fingerprint nor
15185 --with-fingerprints are given.
15187 2017-07-26 Werner Koch <wk@gnupg.org>
15189 doc: Add man pages form gpg-wks-server and gpg-wks-client.
15190 + commit be636c3cfca178927b09ef4154c3e555d6f5b1c4
15191 * doc/wks.texi: New.
15192 * doc/gnupg.texi: Include wks.texi.
15193 * doc/Makefile.am (gnupg_TEXINFOS): Add wks.texi.
15194 (myman_pages): Add new man pages.
15196 wks: Fix program names in the usage diagnostics.
15197 + commit c76398da5b15df2086f68bc26b7fde75219976c7
15198 * tools/gpg-wks-client.c (my_strusage): Add case 12.
15199 * tools/gpg-wks-server.c (my_strusage): Add case 12:
15201 2017-07-26 Andre Heinecke <aheinecke@intevation.de>
15203 doc: Update vsnfd profile example.
15204 + commit 4f569c69075fddbaea588544a6625c28cb4cb8f4
15205 * doc/examples/vsnfd.prf: Use rsa3072
15207 2017-07-26 Werner Koch <wk@gnupg.org>
15209 dirmngr: Do not use a blocking connect in Tor mode.
15210 + commit c5e5748480952e5bcedb16f6ce6ef7e435acb3c7
15211 * dirmngr/http.c (http_raw_connect): Disable the timeout in Tor mode.
15212 (send_request): Ditto.
15214 dirmngr: Auto-enable Tor on startup or reload.
15215 + commit fd68bdb61ec4f8441da6d3023a8da4315df54cec
15216 * dirmngr/dirmngr.c (dirmngr_use_tor): Test for Tor availibility.
15218 agent,dirmngr: Check for homedir removal also using stat(2).
15219 + commit d50c2eff8d6931586c527edb3dea98dbc6facdec
15220 * agent/gpg-agent.c (have_homedir_inotify): New var.
15221 (reliable_homedir_inotify): New var.
15222 (main): Set reliable_homedir_inotify.
15223 (handle_tick): Call stat on the homedir.
15224 (handle_connections): Mark availibility of the inotify watch.
15225 * dirmngr/dirmngr.c (handle_tick): Call stat on the homedir.
15226 (TIMERTICK_INTERVAL_SHUTDOWN): New.
15227 (handle_connections): Depend tick interval on the shutdown state.
15229 agent: Lengthen timertick interval on Unix to 4 seconds.
15230 + commit f4ec7697a9c2d7587794d3bd75efbb0b51d6562f
15231 * agent/gpg-agent.c (TIMERTICK_INTERVAL): Same value for Windows and
15234 2017-07-25 Werner Koch <wk@gnupg.org>
15236 common: Strip trailing slashes from the homedir.
15237 + commit 24c7aa0d58e3768690dd8ebef0e8e01af7e80f83
15238 * common/homedir.c (default_homedir): Strip trailing slashes.
15239 (gnupg_set_homedir): Ditto.
15241 w32: Also change the directory on daemon startup.
15242 + commit 0ef50340ef68b2541d9a1aafa71f5400aef4dc7e
15243 * agent/gpg-agent.c (main): Always to the chdir.
15244 * dirmngr/dirmngr.c (main): Ditto.
15245 * scd/scdaemon.c (main): Ditto.
15247 common: New functions gnupg_daemon_rootdir and gnupg_chdir.
15248 + commit 226f143ca01cf335c7c4e3e94c96fb9d271eccc9
15249 * common/sysutils.c (gnupg_chdir): New.
15250 * common/homedir.c (gnupg_daemon_rootdir): New.
15251 * agent/gpg-agent.c (main): Use these functions instead chdir("/").
15252 * dirmngr/dirmngr.c (main): Ditto.
15253 * scd/scdaemon.c (main): Ditto.
15255 gpg: Update key origin info during import merge.
15256 + commit 166d0d7a2439f30c0a250faadc16ce3453447d71
15257 * g10/import.c (update_key_origin): New.
15258 (merge_blocks): Add arg curtime.
15259 (import_one): Pass curtime to merge_blocks. Call update_key_origin.
15261 gpg: Store key origin for new userids during import merge.
15262 + commit 84c993d9325fc000acac7950b2dfeefa5976df3b
15263 * g10/import.c (apply_meta_data): Rename to ...
15264 (insert_key_origin): this. Factor code out to ...
15265 (insert_key_origin_pk, insert_key_origin_uid): new funcs.
15266 (import_one): Move insert_key_origin behind clean_key.
15267 (merge_blocks): Add args options, origin, and url.
15268 (append_uid): Rename to ...
15269 (append_new_uid): this. Add args options, curtime, origin, and url.
15270 Call insert_key_origin_uid for new UIDs.
15272 2017-07-25 NIIBE Yutaka <gniibe@fsij.org>
15274 dirmngr: Add annotation for fallthrough.
15275 + commit d40b4a41a8d60292fd4b5b951a19883e31090179
15276 * dirmngr/dns.c: Add /* FALL THROUGH */ to clarify.
15278 2017-07-24 Werner Koch <wk@gnupg.org>
15280 gpg: Extend --key-origin to take an optional URL arg.
15281 + commit 87b5421ca84bbea68217c9ed771ee8c0a98a4d0c
15282 * g10/getkey.c (parse_key_origin): Parse appended URL.
15283 * g10/options.h (struct opt): Add field 'key_origin_url'.
15284 * g10/gpg.c (main) <aImport>: Pass that option to import_keys.
15285 * g10/import.c (apply_meta_data): Extend for file and url.
15286 * g10/keyserver.c (keyserver_fetch): Pass the url to
15287 import_keys_es_stream.
15289 gpg: Store key origin info for new keys from a keyserver.
15290 + commit 2ca0381d077d766593db26f4215b8eddee8d7963
15291 * g10/keyserver.c (keyserver_get_chunk): Use KEYORG_KS if request was
15292 done by fingerprint.
15293 * g10/import.c (apply_meta_data): Implement that.
15295 gpg: Store key origin info for new DANE and WKD retrieved keys.
15296 + commit e7068bf92ec5ca5d440346d43a382c1f625b924d
15297 * g10/import.c (apply_meta_data): Remove arg 'merge'. Add arg 'url'.
15298 Implement WKD and DANE key origin.
15299 (import_keys_internal): Add arg 'url' and change all callers.
15300 (import_keys_es_stream): Ditto.
15302 (import_one): Ditto.
15303 * g10/keylist.c (list_keyblock_print): Fix update URL printing.
15304 * g10/call-dirmngr.c (gpg_dirmngr_wkd_get): Add arg 'r_url' to return
15305 the SOURCE. Pass ks_status_cb to assuan_transact.
15306 * g10/keyserver.c (keyserver_import_wkd): Get that URL and pass it to
15307 the import function.
15309 gpg: Filter keys received via DANE.
15310 + commit f6f0dd4d5ea85e0b16e96d7678b1d508182049a8
15311 * g10/keyserver.c (keyserver_import_cert): Use an import filter in
15314 dirmngr: Print a SOURCE status for WKD requests.
15315 + commit e97548223948222a5c22acdf3775c7f93c1e17a9
15316 * dirmngr/server.c (cmd_wkd_get): Print a SOURCE status.
15318 dirmngr: New function dirmngr_status_printf.
15319 + commit 9b88cfa0962f28894658cff8777fe7a217c6f700
15320 * dirmngr/server.c (dirmngr_status_printf): New.
15322 2017-07-24 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15324 g10: Make sure to emit NEED_PASSPHRASE on --import of secret key.
15325 + commit 872137b5921dd297e7d2c1def6e3868b7595feb5
15326 * call-agent.h (agent_import_key): Add keyid parameters.
15327 * call-agent.c (agent_import_key): Set keyid parameters.
15328 * import.c (transfer_secret_keys): Pass keyid parameters.
15330 w32: Change directory on daemon startup.
15331 + commit 78ebc62604d77600b9865950610717d28c6027a2
15332 * agent/gpg-agent.c [HAVE_W32_SYSTEM]: Include <direct.h>.
15333 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
15334 * dirmngr/dirmngr.c [HAVE_W32_SYSTEM]: Include <direct.h>.
15335 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
15336 * scd/scdaemon.c [HAVE_W32_SYSTEM]: Include <direct.h>.
15337 (main) [HAVE_W32_SYSTEM]: Change working directory to \.
15339 g10: Make sure to emit NEED_PASSPHRASE on --export-secret-key.
15340 + commit d8e46f10698da0bee4cd58d95f1f9832bdda0c5f
15341 * call-agent.h (agent_export_key): Add keyid parameters.
15342 * call-agent.c (agent_export_key): Set keyid parameters.
15343 * export.c (receive_seckey_from_agent): Pass keyid parameters.
15345 2017-07-24 NIIBE Yutaka <gniibe@fsij.org>
15347 scd: Use unsigned int for fields.
15348 + commit 45e40487fb7bb51228c96c8966e38c643a9b9ba5
15349 * scd/app-openpgp.c (data_objects): Use unsigned ints.
15351 dirmngr: More minor fix.
15352 + commit ade4b2744c848e07b87afa4f186256c2a2ef1d13
15353 * dirmngr/http.c (send_request): Care the case of !USE_TLS.
15355 dirmngr: More minor fixes.
15356 + commit 789401e9557db13422f47a8c09e693f3cee0132b
15357 * dirmngr/http.c (http_verify_server_credentials): Duplicated const.
15358 * dirmngr/ldap.c (parse_one_pattern): Add comment.
15360 dirmngr: Minor fix for Windows.
15361 + commit 274602820cfbb15c7cdb4525acd9793bdb472e78
15362 * dirmngr/http.c (connect_with_timeout): Use FD2INT.
15364 agent: Minor fix for Windows.
15365 + commit 328fca187253c069e3630bd387a71f6d16e9820a
15366 * agent/command-ssh.c (serve_mmapped_ssh_request): Add const
15369 2017-07-21 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15371 g10: Avoid caching passphrase for failed symmetric encryption.
15372 + commit e4c720fa3b31ebd3e9d764c6eab02729cf06124c
15373 * g10/mainproc.c (proc_encrypted): If error code is GPG_ERR_CIPHER_ALGO,
15374 assume the symmetric passphrase was wrong and invalidate the cache.
15376 2017-07-21 Werner Koch <wk@gnupg.org>
15378 gpg: Extend --quick-set-expire to allow subkey expiration setting.
15379 + commit b55b72bb815ad5870456b89c3a011fa00991b4a8
15380 * g10/keyedit.c (keyedit_quick_set_expire): Add new arg subkeyfprs.
15381 (menu_expire): Rename arg force_mainkey to unattended and allow
15382 unattended changing of subkey expiration.
15383 * g10/gpg.c (main): Extend --quick-set-expire.
15385 gpg: Fix possible double free of the card serialno.
15386 + commit e888f7af6571ecd3994fd55cc18c9e2df7fd0c60
15387 * g10/free-packet.c (copy_public_key): Copy fields serialno and
15390 gpg: Use macros to check the signature class.
15391 + commit 5818ff0ae314af08548fcc23df2b807736144a00
15392 * g10/import.c: Use the extistin macros for better readability.
15394 2017-07-21 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15396 g10: Clean keyblock on initial commit.
15397 + commit 609bbdf3614fbadeba7a6cbdfdf5004b23516a64
15398 * g10/import.c (import_one): If option import-clean is set,
15399 also clean on initial import, not only for merge.
15401 2017-07-21 NIIBE Yutaka <gniibe@fsij.org>
15403 scd: Fix SEGV in CCID driver.
15404 + commit d8a55da715ce8447b0686f321fa43d00be34a467
15405 * scd/ccid-driver.c (intr_cb): Only kick the loop for removal.
15406 (bulk_in): Don't set POWERED_OFF when interrupt transfer is enabled.
15408 g10: Don't limit at the frontend side for card capability.
15409 + commit a76b6cf9709c0a2a89fa2887075491b80f3d9608
15410 * g10/card-util.c (MAX_GET_DATA_FROM_FILE): New.
15411 (get_data_from_file): Use MAX_GET_DATA_FROM_FILE.
15412 (change_url, change_login, change_private_do): Don't limit.
15414 scd: Add debug message for v3 card.
15415 + commit 892e86b0dc69193ddff018bf9b3938509dd72cb3
15416 * scd/app-openpgp.c (show_caps): Output more messages.
15418 2017-07-20 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15420 doc: Clarify wording of export-attributes.
15421 + commit cea4313644b531ef87b8c8e4bfddde4388cbbe0d
15422 * doc/gpg.texi: Clarify wording of export-attributes.
15424 2017-07-20 Werner Koch <wk@gnupg.org>
15426 gpg: New option --with-key-origin.
15427 + commit 165cdd8121bbf80bfe2da071539d3578630f198f
15428 * g10/getkey.c (parse_key_origin): Factor list out as ...
15429 (key_origin_list): new struct.
15430 (key_origin_string): New.
15431 * g10/gpg.c (oWithKeyOrigin): New const.
15432 (opts): New option --with-key-origin.
15433 (main): Implement option.
15434 * g10/options.h (struct opt): New flag with_key_origin.
15435 * g10/keylist.c (list_keyblock_print): Print key origin info.
15436 (list_keyblock_colon): Ditto.
15438 common: New function print_utf9_string.
15439 + commit bddc2e04f1ddc18be20efc0f0508be401b345f42
15440 * common/miscellaneous.c (print_utf8_string): New.
15442 gpg: Make function mk_datestr public.
15443 + commit 3ee314dde16d1d69ddf840cdb8b5aa186c592262
15444 * g10/keydb.h (MK_DATESTR_SIZE): New.
15445 * g10/keyid.c (mk_datestr): Make public. Add arg bufsize and use
15446 snprintf. Change arg atime to u32.
15447 (datestr_from_pk): Simplify.
15448 (datestr_from_sig): Ditto.
15449 (expirestr_from_pk): Ditto.
15450 (expirestr_from_sig): Ditto.
15451 (revokestr_from_pk): Ditto.
15453 2017-07-20 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15455 g10: Return proper error when gpg-agent fails to start during probe.
15456 + commit 9998b162b47931fb8a8ed961d53418d505358888
15457 * g10/getkey.c (lookup): Return immediately on any other error than
15458 GPG_ERR_NO_SECKEY from agent_probe_any_secret_key.
15460 2017-07-20 NIIBE Yutaka <gniibe@fsij.org>
15462 scd: Support longer data length for special DOs for v3 card.
15463 + commit 69614d55018ddb8678d8904a52e648931f480d72
15464 * scd/app-openpgp.c (data_objects): Special DOs like "Login Data",
15465 "URL", "Private DO N" can be longer size >= 256.
15466 (struct app_local_s): Define bits for v3 card.
15467 (get_cached_data): Use extcap.max_special_do for special DOs.
15468 (app_select_openpgp): Detect if extcap_v3, kdf_do, and other bits.
15470 common: logstream fix.
15471 + commit 84146b3ec44943f06c66a603de19094b930ad446
15472 * common/logging.c (set_file_fd): Don't close es_stderr.
15474 dnsmngr: Fix use of CPP.
15475 + commit cc12cf386b620e658fa93a0bd40477bc16d85d98
15476 * dirmngr/dns.c (HAVE_STATIC_ASSERT, HAVE___ATOMIC_FETCH_ADD)
15477 (DNS_HAVE_SOCKADDR_UN, HAVE_SOCK_NONBLOCK): Don't use defined
15478 to be expanded for expression evaluation.
15480 2017-07-19 Justus Winter <justus@g10code.com>
15482 dirmngr: Forbid redirects from .onion to clearnet URIs.
15483 + commit e7fc6e3bf0eb6ffe53e1f099d28ce45cef4a8a87
15484 * dirmngr/ks-engine-hkp.c (send_request): Forbid redirects from .onion
15486 * dirmngr/ks-engine-http.c (ks_http_fetch): Likewise.
15488 2017-07-19 Werner Koch <wk@gnupg.org>
15490 gpg: Avoid asking by fpr and then by keyid during auto-key-retrieve.
15491 + commit 2e5459457473eb4b3e7b2b14815cb94faa66e8bb
15492 * g10/mainproc.c (check_sig_and_print): Track key server request via
15495 2017-07-19 Justus Winter <justus@g10code.com>
15497 dirmngr: Implement TLS over http proxies.
15498 + commit da91d2106a17c796ddb066a34db92d33b21c81f7
15499 * dirmngr/http.c (send_request): If a http proxy is to be used, and we
15500 want to use TLS, try to use the CONNECT method to get a connection to
15503 dirmngr: Log http response in debug mode.
15504 + commit e7eabe66b6409c1f5225b751ea5c2d456a3856e6
15505 * dirmngr/http.c (parse_response): Log http response in debug mode.
15507 dirmngr: Amend TLS handling.
15508 + commit 1ba220e68149fdb197accf4a15b0a11126c8b431
15509 * dirmngr/http.c (http_wait_response): Get the 'use_tls' flag from the
15510 write cookie, not from the URI.
15512 dirmngr: Fix connecting to http proxies.
15513 + commit 46a4a0c0e77e19f9589088bb87357c33142c3f04
15514 * dirmngr/http.c (send_request): Do not use the 'srvtag' intended for
15515 the target host to connect to the http proxy.
15517 dirmngr: Fix handling of proxy URIs.
15518 + commit 73d4781e4595634548269bafe46aeb7674c5b219
15519 * dirmngr/http.c (send_request): We do not support socks4.
15521 2017-07-19 NIIBE Yutaka <gniibe@fsij.org>
15523 gpgconf: Make vars read-only explicitly.
15524 + commit 99791184ac4c7486ccdefc150b9921cd923428b9
15525 * tools/gpgconf-comp.c (gc_backend, gc_arg_type, gc_level, gc_flag)
15526 (gc_component): Add const qualifier.
15528 Fix usage of ARGPARSE_OPTS.
15529 + commit fa63db89f9581186ed758c502d4e69914b774157
15530 * agent/gpg-agent.c, agent/preset-passphrase.c,
15531 dirmngr/dirmngr-client.c, dirmngr/dirmngr_ldap.c, kbx/kbxutil.c,
15532 tools/gpg-check-pattern.c, tools/gpgconf.c, tools/gpgsplit.c,
15533 tools/symcryptrun.c: Use ARGPARSE_end.
15535 2017-07-18 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15537 common: Allow abbreviations of standard options.
15538 + commit f17862d47d184d7f6ef883778cf63801365599a0
15539 * argparse.h (ARGPARSE_SHORTOPT_HELP, ARGPARSE_SHORTOPT_VERSION,
15540 ARGPARSE_SHORTOPT_WARRANTY, ARGPARSE_SHORTOPT_DUMP_OPTIONS): New
15542 (ARGPARSE_end): Add some placeholders for standard options.
15543 * argparse.c (arg_parse): Fill in missing standard options so
15544 default machinery works. Check for standard options in new way.
15545 Do not write out standard options for --dump-options.
15547 2017-07-18 Justus Winter <justus@g10code.com>
15549 gpgscm,w32: Fix testing for absolute paths.
15550 + commit 2e1342b78b020f5b28359b08a4f63cf11479602f
15551 * tests/gpgscm/main.c (path_absolute_p): New function.
15552 (load): Use new function.
15554 dirmngr: Honor http keyserver URLs.
15555 + commit b231959728a0056094134e0fca8cc916c24ef37e
15556 * dirmngr/http.c (parse_uri): Keep an unmodified copy of the URI.
15557 * dirmngr/http.h (struct parsed_uri_s): New field 'original'.
15558 * dirmngr/ks-action.c (ks_action_get): Properly handle http and https
15561 dirmngr: Fix memory leak.
15562 + commit ebb35ed7110d1a29061dfb4ccb9038645b20d7f4
15563 * dirmngr/http.c (parse_uri): Properly free partial results.
15565 dirmngr: Fix memory leak.
15566 + commit 3d670fa973a03ea88b5f9459b3222a951136dd7a
15567 * dirmngr/http.c (http_release_parsed_uri): Free 'params'.
15569 2017-07-17 Werner Koch <wk@gnupg.org>
15571 gpg,sm: Check compliance of the RNG.
15572 + commit a149afe338d61d86985c533cde5e7dbcd31e8698
15573 * common/compliance.c (gnupg_rng_is_compliant): New.
15574 * g10/call-agent.c (start_agent) [W32]: Check rng compliance.
15575 * sm/call-agent.c (start_agent) [W32]: Ditto.
15576 * g10/encrypt.c (encrypt_simple, encrypt_crypt): Check that the RNG is
15578 * sm/encrypt.c (gpgsm_encrypt): Ditto.
15579 * g10/sign.c (do_sign): Ditto.
15580 * sm/sign.c (gpgsm_sign): Ditto.
15582 agent: New GETINFO sub-command jent_active.
15583 + commit bbbd0db34b4e387f8dc089fb7d69fdcf2ed91a01
15584 * agent/command.c (cmd_getinfo): Implement it for gcrypt >= 1.8.
15586 common: New function split_fields_colon.
15587 + commit 849467870ee1c10e0a7b1e89cfc9e8214e4963fe
15588 * common/stringhelp.c (split_fields_colon): New.
15589 * common/t-stringhelp.c (test_split_fields_colon): New test.
15590 (main): Call that test.
15592 2017-07-14 Justus Winter <justus@g10code.com>
15594 tests: Improve 'shell.scm' script.
15595 + commit 58eafd11ed5501c0b72fcb553eb3e097ad29b3c6
15596 * tests/openpgp/defs.scm (create-file): Unlink file first.
15597 * tests/openpgp/shell.scm: Ask whether to import legacy test keys or
15598 not, and whether to drop 'batch' from the configuration. Add paths to
15599 all the programs to 'PATH'.
15601 gpgscm: Library improvements.
15602 + commit b4d25082fd4502ec01d511c22fecd60d513b81f4
15603 * tests/gpgscm/repl.scm (prompt-yes-no?): New function.
15604 * tests/gpgscm/tests.scm (pathsep-split): Likewise.
15605 (pathsep-join): Likewise.
15606 (with-path): Use the new function.
15608 gpgscm: Fail early if the test setup fails.
15609 + commit 7a6e6ad2880bbff54a75ff608d0ec97d6c405733
15610 * tests/gpgscm/tests.scm (make-environment-cache): Check status code
15613 gpg: Fix importing keys.
15614 + commit 956da89193370d5aa970cff5b77f605534481a02
15615 * g10/import.c (import_one): Fix error handling.
15617 2017-07-13 Werner Koch <wk@gnupg.org>
15619 gpg: Pass key origin values to import functions.
15620 + commit 330212efb927c119bb5135856f8582c0e4e2e6b7
15621 * g10/import.c (import_keys_stream): Remove this unused function.
15622 (import_keys_internal): Add arg origin.
15623 (import_keys): Ditto.
15624 (import_keys_es_stream): Ditto.
15626 (import_one): Ditto.
15627 (apply_meta_data): New stub.
15628 (import_secret_one): Pass 0 for ORIGIN.
15629 * g10/keyserver.c (keyserver_get_chunk): For now pass 0 for ORIGIN.
15630 (keyserver_fetch): Add arg origin.
15631 (keyserver_import_cert): Pass KEYORG_DANE for ORIGIN.
15632 (keyserver_import_wkd): Pass KEYORG_WKD for ORIGIN.
15633 * g10/gpg.c (main): Pass OPT.KEY_ORIGIN to import_keys and
15635 * g10/card-util.c (fetch_url): Pass KEYORG_URL for ORIGIN.
15637 gpg: New option --key-origin.
15638 + commit fa1155e89ebb4b16ee95549b8ab72672df3a0c54
15639 * g10/keydb.h (KEYORG_): Rename to KEYORG_.
15640 * g10/packet.h (PKT_user_id): Rename field keysrc to keyorg. Adjust
15642 (PKT_public_key): Ditto.
15643 (PKT_ring_trust): Ditto.
15644 * g10/options.h (struct opt): Add field key_origin.
15645 * g10/getkey.c (parse_key_origin): New.
15646 * g10/gpg.c (oKeyOrigin): New.
15647 (opts): Add "keys-origin".
15648 (main): Set option.
15650 2017-07-13 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15652 doc: Document gnupg version requirement for gpg-preset-passphrase.
15653 + commit 877a321d011deb3e8501aa9cc5e9f9cd0b19dddf
15656 2017-07-13 Justus Winter <justus@g10code.com>
15658 gpgscm: Make loading of modules less verbose.
15659 + commit f78fe1a4ec9d343199e1f424dd09e2937c913412
15660 * tests/gpgscm/main.c (load): Increase logging threshold.
15662 gpgscm: Make it impossible to catch '*interpreter-exit*'.
15663 + commit bce02a8b0f0e51775a4ee5536ccf35efc1f15ca6
15664 * tests/gpgscm/init.scm (throw'): Make it impossible to catch
15665 '*interpreter-exit*'. This fixes 'exit' (and with it 'fail') inside
15666 'catch' statements.
15668 2017-07-10 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15670 tofu: Compare squares instead of square roots.
15671 + commit d24594976686983c7186cbe4e78153888a13b6e4
15672 * g10/Makefile.am (tofu_source) [USE_TOFU]: Remove sqrtu32.h and
15674 * g10/sqrtu32.h, g10/sqrtu32.c: Removed files.
15675 * g10/tofu.c: Compare squares instead of square roots.
15677 speedo: Provide a vagrantfile to test speedo in an isolated VM.
15678 + commit 1455b406e63dd262938e49da5f83c05c17c60a8d
15679 * build-aux/Vagrantfile: New file.
15681 2017-07-06 Neal H. Walfield <neal@g10code.com>
15683 doc: Improve TOFU documentation.
15684 + commit 243b2a570c30586e19b8c88e43b282d62d8eb77c
15685 * doc/gpg.texi: Improve TOFU documentation.
15687 2017-07-05 Werner Koch <wk@gnupg.org>
15689 agent: Use MAX_PASSPHRASE_LEN (255) also for the loopback.
15690 + commit 3681ee7dc1e9d8c94fdb046d7be0bbcfeba1cfe9
15691 * agent/call-pinentry.c (agent_get_passphrase): Reduce maximum
15692 passphrase length as conveyed to the loopback to MAX_PASSPHRASE_LEN.
15693 * agent/genkey.c (agent_ask_new_passphrase): Extend the maximum
15694 passphrase as conveyed to the loopback to MAX_PASSPHRASE_LEN.
15696 doc: Update yat2m to take care of SOURCE_DATE_EPOCH.
15697 + commit 139de02b93773615bdd95e04a7f0c1ad73b4f6fb
15698 * doc/yat2m.c (main): Set a default for OPT_DATE.
15700 doc: Prefer an installed version of yat2m.
15701 + commit f6faa058749846de18cb34f1cc79867bb0029922
15702 * configure.ac (YAT2M): Check for tool.
15703 * doc/Makefile.am (yat2m-stamp): Use installed tool if possible.
15705 2017-07-01 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
15707 doc: Document obsolete option in gpgsm. Closes T2231.
15708 + commit 7fb724c61655c6f75c61572d65a46e21ae112574
15709 * doc/gpgsm.texi: Mark --prefer-system-dirmngr as obsolete.
15711 2017-06-28 Werner Koch <wk@gnupg.org>
15713 agent: Fix option --debug-wait.
15714 + commit ecd6c0160f49ae83001dfd150df6b1238fc479d5
15715 * agent/gpg-agent.c (opts): Typo fix.
15717 2017-06-26 Justus Winter <justus@g10code.com>
15719 agent: Support unprotected ssh keys.
15720 + commit 273964798592cd479c111f47e8ce46d5b1999d6a
15721 * agent/command-ssh.c (ssh_key_to_protected_buffer): If the empty
15722 passphrase is supplied, do not protect the key.
15724 tests: Improve test.
15725 + commit b49b1a87ac2695e3892fb001878da59fbc92fa37
15726 * tests/openpgp/ssh-export.scm: Split output at any whitespace.
15728 2017-06-23 Werner Koch <wk@gnupg.org>
15730 agent: Shutdown on removal of the home directory.
15731 + commit 1ead1ca818bddabc3bca22c195be667993eb3e2e
15732 * common/sysutils.c (gnupg_inotify_watch_delete_self): New.
15733 * agent/gpg-agent.c (handle_connections): Rename my_inotify_fd to
15735 (handle_connections): Add home_inotify_fd to watch the home directory.
15737 build: Add missing LIBASSUAN_CFLAGS to dirmngr/.
15738 + commit 815ecdf08a4285c75892cf9ab72feb13f3bcf590
15739 * dirmngr/Makefile.am (t_http_CFLAGS): Add LIBASSUAN_CFLAGS.
15740 (t_ldap_parse_uri_CFLAGS): Ditto.
15741 (t_dns_stuff_CFLAGS): Ditto.
15743 gpg,gpgsm: Emit status code ENCRYPTION_COMPLIANCE_MODE.
15744 + commit f31dc2540acf7cd7f09fd94658e815822222bfcb
15745 * common/status.h (STATUS_ENCRYPTION_COMPLIANCE_MODE): New.
15746 * g10/encrypt.c (encrypt_crypt): Emit new status code.
15747 * sm/encrypt.c (gpgsm_encrypt): Ditto.
15749 2017-06-21 Justus Winter <justus@g10code.com>
15751 gpg: Close cached keydb handle in gpgv.
15752 + commit a68a98233ab83f0c7b90e6e588b882085fe59d91
15753 * g10/gpgv.c (main): Close cached handle.
15755 tests: Add test for gpgv.
15756 + commit 62274d3c309d8948405c2f966bef507638b4d5c6
15757 * tests/openpgp/Makefile.am (XTESTS): Add the new test.
15758 * tests/openpgp/gpgv.scm: New file.
15759 * tests/openpgp/signed-messages.scm: Likewise.
15760 * tests/openpgp/verify.scm: Move the signed messages to the new file
15763 gpg: Fix printing keyserver URLs and notation data.
15764 + commit 890a3a70f2e1340d90c7f499358467979b182719
15765 * g10/keylist.c (show_keyserver_url): Print to 'fp', not to 'stdout'.
15766 (show_notation): Likewise.
15768 2017-06-20 Justus Winter <justus@g10code.com>
15770 dirmngr: Properly handle SRV records.
15771 + commit 48aae8167dcae80d43b08167a88d9eb170781a04
15772 * dirmngr/ks-engine-hkp.c (enum ks_protocol): New type.
15773 (struct hostinfo_s): New flags indicating whether we already did a
15774 A lookup, or a SRV lookup per protocol. Turn 'port' into an array.
15775 (create_new_hostinfo): Initialize new fields.
15776 (add_host): Update the port for the given protocol.
15777 (map_host): Simplify hosttable lookup misses. Check the SRV records
15778 for both protocols on demand, do the A lookup just once. Return the
15781 dirmngr: Refactor variable-sized array code.
15782 + commit fc4834d213af031b456c49c1ba5b5ef8873d1f18
15783 * dirmngr/ks-engine-hkp.c (struct hostinfo_s): Add explicit length and
15785 (MAX_POOL_SIZE): New macro.
15786 (create_new_hostinfo): Initialize new fields.
15787 (host_in_pool_p): Adapt.
15788 (select_random_host): Likewise.
15789 (add_host): Likewise. Move the resizing logic here.
15790 (hostinfo_sort_pool): New function.
15791 (map_host): Simplify. Move the resizing logic away from here.
15792 (ks_hkp_mark_host): Adapt.
15793 (ks_hkp_print_hosttable): Likewise.
15795 gpg: Fix error handling.
15796 + commit badc1cdae52bd434e5fac2e4275575afeccc2837
15797 * g10/keygen.c (generate_subkeypair): Handle errors from pinentry.
15799 2017-06-19 Werner Koch <wk@gnupg.org>
15801 gpg,gpgsm: Fix compliance check for DSA and avoid an assert.
15802 + commit 3621dbe52584bc8b417f61b5370ebaa5598db956
15803 * common/compliance.c (gnupg_pk_is_compliant): Swap P and Q for DSA
15804 check. Explicitly check for allowed ECC algos.
15805 (gnupg_pk_is_allowed): Swap P and Q for DSA check.
15806 * g10/mainproc.c (proc_encrypted): Simplify SYMKEYS check. Replace
15807 assert by debug message.
15809 2017-06-19 Justus Winter <justus@g10code.com>
15811 gpgscm: Limit the number of parallel jobs.
15812 + commit 61ef43546ba9f0209692a1569d2f033436566a02
15813 * ffi.c (do_wait_processes): Suppress the timeout error.
15814 * tests.scm (semaphore): New definition.
15815 (test-pool): Only run a bounded number of tests in parallel.
15816 (test::started?): New function.
15817 (run-tests-parallel): Do not report results, do not start the tests.
15818 (run-tests-sequential): Adapt.
15819 (run-tests): Parse the number of parallel jobs.
15821 gpgscm: Improve option parsing.
15822 + commit e555e7ed7de20fbbb1e3b005c32e292f29cc4a58
15823 * tests/gpgscm/tests.scm (flag): Accept arguments of the form
15826 gpgscm: Improve error handling of foreign functions.
15827 + commit 6639aedaee051e8104d7f63b9a5812abf79440ed
15828 * tests/gpgscm/ffi.scm (ffi-fail): Do not needlessly join the error
15831 gpgscm: Improve error reporting.
15832 + commit 4c8be58fd46bb16332e84ab8ce978087dc5c68a3
15833 * tests/gpgscm/init.scm (throw'): Guard against 'args' being atomic.
15834 * tests/gpgscm/scheme.c (Eval_Cycle): Remove any superfluous colons in
15837 tests: Run the OpenPGP tests using the new extended key format.
15838 + commit b766d3d1034e6068a91755ada68f7f7dbe2943b6
15839 * tests/openpgp/all-tests.scm: Generalize a bit, and also add a
15840 variant that uses the new extended key format.
15841 * tests/openpgp/defs.scm (create-gpghome): Conditionally enable the
15842 new extended key format.
15844 2017-06-19 Werner Koch <wk@gnupg.org>
15846 Change license of some files to LGPLv2.1.
15847 + commit 3419a339d9c4e800bf30e9021e05982d8c1021c1
15848 * COPYING.LIB: Rename to COPYING.LGPL3.
15849 * COPYING.LGPL21: New.
15850 * COPYING.GPL2: New.
15851 * Makefile.am: Distribute them.
15852 * AUTHORS: Update license pointers. Add BSI as copyright holder.
15853 * common/compliance.c, common/compliance.h: Add BSI copyright notice.
15854 Break overlong lines.
15855 * dirmngr/loadswdb.c: Add BSI copyright notices.
15856 * dirmngr/server.c: Ditto.
15857 * tools/call-dirmngr.c: Change license to LGPLv2.1. Add BSI
15859 * tools/call-dirmngr.h: Ditto.
15860 * tools/gpg-wks-client.c: Ditto.
15861 * tools/gpg-wks-server.c: Ditto.
15862 * tools/gpg-wks.h: Ditto.
15863 * tools/mime-maker.c: Ditto.
15864 * tools/mime-maker.h: Ditto.
15865 * tools/mime-parser.c: Ditto.
15866 * tools/mime-parser.h: Ditto.
15867 * tools/send-mail.c: Ditto.
15868 * tools/send-mail.h: Ditto.
15869 * tools/wks-receive.c: Ditto.
15870 * tools/wks-util.c: Ditto.
15871 * tools/rfc822parse.c, tools/rfc822parse.h: Change license to LGPLv2.1.
15873 2017-06-19 Justus Winter <justus@g10code.com>
15875 gpg: Disable compliance module for other GnuPG components.
15876 + commit 6e23416fe61d4130918f2d1bf6e1f98d102c4610
15877 * common/compliance.c (gnupg_{pk,cipher,digest}_is_compliant): Return
15878 false if the module is not initialized.
15879 (gnupg_{pk,cipher,digest}_is_allowed): Return true if the module is
15881 (gnupg_status_compliance_flag): Do not assert that the module is
15883 (gnupg_parse_compliance_option): Likewise.
15884 (gnupg_compliance_option_string): Likewise.
15886 2017-06-14 Justus Winter <justus@g10code.com>
15888 gpg: Check and fix keys on import.
15889 + commit 9b12b45aa5e67d4d422bf75a3879df1d52dbe67f
15890 * doc/gpg.texi: Document the new import option.
15891 * g10/gpg.c (main): Make the new option default to yes.
15892 * g10/import.c (parse_import_options): Parse the new option.
15893 (import_one): Act on the new option.
15894 * g10/options.h (IMPORT_REPAIR_KEYS): New macro.
15896 gpg: Refactor key checking and fixing.
15897 + commit 404fa8211b6188a0abe83ef43a4b44d528c0b035
15898 * g10/Makefile.am (gpg_sources): Add new files.
15899 * g10/gpgcompose.c (keyedit_print_one_sig): New stub.
15900 * g10/keyedit.c (sig_comparison): Move to new module.
15901 (check_all_keysigs): Likewise.
15902 (fix_keyblock): Adapt callsite.
15903 (keyedit_menu): Likewise.
15904 * g10/key-check.c: New file.
15905 * g10/key-check.h: Likewise.
15907 2017-06-13 Justus Winter <justus@g10code.com>
15909 gpg: Refactor keyedit module.
15910 + commit 8095d16b3ef6b5f01ec351824855708149f1c1c3
15911 * g10/Makefile.am (gpg_SOURCES): Add new file.
15912 * g10/keyedit.c (NODFLG_*): Move flags to the new header file.
15913 (print_one_sig): Export symbol and rename accordingly.
15914 (print_and_check_one_sig): Adapt accordingly.
15915 (check_all_keysigs): Likewise.
15916 * g10/keyedit.h: New file.
15917 * g10/main.h: Drop declarations, include new header.
15919 dirmngr: Implement querying nameservers over IPv6.
15920 + commit 15d2a009931f44a60b9df6325f837add208459d6
15921 * dirmngr/dns.c (dns_so_check): Reinitialize sockets on address family
15923 (enum dns_res_state): New states for querying over IPv6.
15924 (dns_res_exec): Implement the new states by copying and modifying the
15925 IPv4 variants. Branch to their respective counterparts if the current
15926 list of resolvers using the current address family is exhausted.
15928 2017-06-13 Werner Koch <wk@gnupg.org>
15930 gpg: Disable keydb handle caching only for W32.
15931 + commit e80925171ddb20c7e76c1db88c15ce2d9b09db86
15932 * g10/getkey.c (getkey_end) [!W32]: Re-enable caching.
15934 common: Fix -Wswitch warning.
15935 + commit 7c91b48f0e80266cf7491c2bb7d8aabc12362643
15936 * common/compliance.c (gnupg_digest_is_allowed): Don't include
15937 GCRY_MD_WHIRLPOOL because it is not a digest_algo_t.
15939 2017-06-11 Neal H. Walfield <neal@g10code.com>
15941 gpg: Send gpgcompose --help output to stdout, not stderr.
15942 + commit 7aeac20f12ed257d3d159b304afeeac7f406c9d2
15943 * g10/gpgcompose.c (show_help): Send gpgcompose --help output to
15944 stdout, not stderr.
15946 gpg: Improve some output of gpgcompose.
15947 + commit cb0484e0762a1ce05d00d949f4b70162e2f7b82c
15950 gpg: Support 'gpgcompose --encrypted-pop --help'
15951 + commit 4ddf4e114c8df06d89144e857b7601de0b7e5a7c
15952 * g10/gpgcompose.c (encrypted_pop_options): New variable.
15953 (encrypted_pop): Support the --help option.
15955 gpg: Remove dead code.
15956 + commit 8a9066865688cf17594b2bdde4b260b0ef36d68e
15957 * g10/gpgcompose.c (filter_pop): F->PKTTYPE will never be
15959 (encrypted_pop): Likewise and there is no option --encrypted-mdc-pop.
15961 2017-06-08 Marcus Brinkmann <mb@g10code.com>
15963 artwork: Add new banner.
15964 + commit bc5503b2bf273b51d5dc59617e596f1cfb742fbc
15965 * artwork/banner/banner-full.png: New file.
15966 * artwork/banner/banner-rectangle.png: New file.
15967 * artwork/banner/banner.svg: New file.
15968 * artwork/banner/Bungee-Regular.ttf: New file.
15969 * artwork/banner/Raleway-license.txt: New file.
15970 * artwork/banner/banner-half.png: New file.
15971 * artwork/banner/banner-skyscraper.png: New file.
15972 * artwork/banner/Bungee-license.txt: New file.
15973 * artwork/banner/Raleway-ExtraBold.ttf: New file.
15974 * artwork/banner/Raleway-SemiBold.ttf: New file.
15976 2017-06-08 Justus Winter <justus@g10code.com>
15978 common,gpg,sm: Restrict the use of algorithms according to CO_DE_VS.
15979 + commit a64a55e10420cf11e00062b590dffe5d0c3e8192
15980 * common/compliance.c (gnupg_pk_is_allowed): New function.
15981 (gnupg_cipher_is_allowed): Likewise.
15982 (gnupg_digest_is_allowed): Likewise.
15983 * common/compliance.h (enum pk_use_case): New definition.
15984 (gnupg_pk_is_allowed): New prototype.
15985 (gnupg_cipher_is_allowed): Likewise.
15986 (gnupg_digest_is_allowed): Likewise.
15987 * g10/decrypt-data.c (decrypt_data): Restrict use of algorithms using
15988 the new predicates.
15989 * g10/encrypt.c (encrypt_crypt): Likewise.
15990 * g10/gpg.c (main): Likewise.
15991 * g10/pubkey-enc.c (get_session_key): Likewise.
15992 * g10/sig-check.c (check_signature2): Likewise.
15993 * g10/sign.c (do_sign): Likewise.
15994 * sm/decrypt.c (gpgsm_decrypt): Likewise.
15995 * sm/encrypt.c (gpgsm_encrypt): Likewise.
15996 * sm/gpgsm.c (main): Likewise.
15997 * sm/sign.c (gpgsm_sign): Likewise.
15998 * sm/verify.c (gpgsm_verify): Likewise.
16000 gpg: Fix computation of compliance with CO_DE_VS.
16001 + commit b03fab09e188f7bb10237d4f20455e4026737e4e
16002 * g10/mainproc.c (proc_encrypted): Symmetric encryption is also in
16003 compliance with CO_DE_VS.
16005 2017-06-08 Werner Koch <wk@gnupg.org>
16007 dirmngr: Implement HTTP connect timeouts of 15 or 2 seconds.
16008 + commit 9b43220b8ad1a5c1cd51de3bbfff7ccbcc3fa877
16009 * dirmngr/dirmngr.c (oConnectTimeout, oConnectQuickTimeout): New
16011 (opts): New options --connect-timeout and --connect-quick-timeout.
16012 (DEFAULT_CONNECT_TIMEOUT): New.
16013 (DEFAULT_CONNECT_QUICK_TIMEOUT): New.
16014 (parse_rereadable_options): Handle new options.
16015 (post_option_parsing): New. Use instead of direct calls to
16016 set_debug() and set_tor_mode ().
16017 (main): Setup default timeouts.
16018 (dirmngr_init_default_ctrl): Set standard connect timeout.
16019 * dirmngr/dirmngr.h (opt): New fields connect_timeout and
16020 connect_quick_timeout.
16021 (server_control_s): New field timeout.
16022 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass timeout to
16024 * dirmngr/ks-engine-hkp.c (send_request): Call
16025 http_session_set_timeout.
16026 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
16027 * dirmngr/server.c (cmd_wkd_get, cmd_ks_search, cmd_ks_get)
16028 (cmd_ks_fetch): Implement --quick option.
16030 dirmngr: Allow a timeout for HTTP and other TCP connects.
16031 + commit 5b9025cfa1f9b1c67ddf2f6bf87d863e780cf157
16032 * dirmngr/http.c: Include fcntl.h.
16033 (http_session_s): Add field 'connect_timeout'.
16034 (http_session_new): Clear that.
16035 (http_session_set_timeout): New function.
16036 (my_wsagetlasterror) [W32]: New.
16037 (connect_with_timeout): New function.
16038 (connect_server): Add arg 'timeout' and call connect_with_timeout.
16039 (send_request): Add arg 'timeout' and pass it to connect_server.
16040 (http_raw_connect): Add arg 'timeout'.
16041 (http_open): Pass TIMEOUT from the session to connect_server.
16043 gpg: Avoid failure exit when scdaemon is disabled but not needed.
16044 + commit 17e5afd80f247c356f03c71e8b61da424ffedabb
16045 * g10/call-agent.c (warn_version_mismatch): Use log_info if error is
16048 2017-06-07 Justus Winter <justus@g10code.com>
16050 common: Add cipher mode to compliance predicate.
16051 + commit e051e396156211449568afa0ca7505dc13eaa3b4
16052 * common/compliance.c (gnupg_cipher_is_compliant): Add mode parameter.
16053 * common/compliance.h (gnupg_cipher_is_compliant): Likewise.
16054 * g10/mainproc.c (proc_encrypted): Adapt callsite.
16055 * sm/decrypt.c (gpgsm_decrypt): Likewise.
16057 common,gpg,sm: Initialize compliance module.
16058 + commit 21fc2508c979a8202dd8ca7fa7b801e0d62a5ceb
16059 * common/compliance.c (gnupg_initialize_compliance): New function.
16060 * common/compliance.h (gnupg_initialize_compliance): New prototype.
16061 * g10/gpg.c (main): Use the new function.
16062 * sm/gpgsm.c (main): Likewise.
16064 common,gpg: Move the compliance option printer.
16065 + commit f440cf73eab0b0e75e3cb2e8c9e70a77f20ef1dc
16066 * common/compliance.c (gnupg_compliance_option_string): New function.
16067 * common/compliance.h (gnupg_compliance_option_string): New prototype.
16068 * g10/encrypt.c (write_pubkey_enc_from_list): Update callsite.
16069 * g10/gpg.c (main): Likewise.
16070 * g10/keyedit.c (keyedit_menu): Likewise.
16071 * g10/pkclist.c (build_pk_list): Likewise.
16072 * g10/main.h (compliance_option_string): Remove prototype.
16073 * g10/misc.c (compliance_option_string): Remove function.
16075 common,gpg,sm: Move the compliance option parser.
16076 + commit 842d233d408457cfa9a8473a6748472956f44e84
16077 * common/compliance.c (gnupg_parse_compliance_option): New function.
16078 * common/compliance.h (struct gnupg_compliance_option): New type.
16079 (gnupg_parse_compliance_option): New prototype.
16080 * g10/gpg.c (parse_compliance_option): Remove function.
16081 (compliance_options): New variable.
16082 (main): Adapt callsite.
16083 * sm/gpgsm.c (main): Use the new common function.
16084 * sm/gpgsm.h (opt): New field 'compliance'.
16086 gpg: Improve compliance with CO_DE_VS.
16087 + commit 027ce4ba37be1d052bca2f6109fe810ef57f4038
16088 * g10/gpg.c (set_compliance_option): The specification, section 4.1.1,
16089 forbids the use of encryption without integrity protection.
16091 2017-06-07 Andre Heinecke <aheinecke@intevation.de>
16093 speedo: Fix a minor memleak in the installer.
16094 + commit 13dc75a4e7cc2959003c08940fc53c6ece7b77e4
16095 * build-aux/speedo/w32/g4wihelp.c (path_remove): Free path_new on
16098 2017-06-06 Andre Heinecke <aheinecke@intevation.de>
16100 speedo: Fix source tar call ambiguity.
16101 + commit 96acbdd7265f504d06783adfd6322a6675c41c0a
16102 * build-aux/speedo.mk (dist-source): Expand exclude-vc to
16105 2017-06-01 Justus Winter <justus@g10code.com>
16107 gpg: Report compliance with CO_DE_VS.
16108 + commit be8ca8852629786266db4d3d69b2c2fb03bd6365
16109 * common/compliance.c (gnupg_pk_is_compliant): Add DSA with certain
16111 (gnupg_cipher_is_compliant): New function.
16112 (gnupg_digest_is_compliant): Likewise.
16113 * common/compliance.h (gnupg_cipher_is_compliant): New prototype.
16114 (gnupg_digest_is_compliant): Likewise.
16115 * common/status.h (STATUS_DECRYPTION_COMPLIANCE_MODE): New status.
16116 (STATUS_VERIFICATION_COMPLIANCE_MODE): Likewise.
16117 * doc/DETAILS: Document the new status lines.
16118 * g10/mainproc.c (proc_encrypted): Compute compliance with CO_DE_VS
16119 and report that using the new status line.
16120 (check_sig_and_print): Likewise.
16121 * sm/decrypt.c (gpgsm_decrypt): Likewise.
16122 * sm/verify.c (gpgsm_verify): Likewise.
16124 common: Improve checking for compliance with CO_DE_VS.
16125 + commit 3b70f62423041e614332b90d782576ee6868a030
16126 * common/compliance.c (gnupg_pk_is_compliant): Only certain RSA key
16127 sizes are compliant.
16129 gpg,common: Move the compliance framework.
16130 + commit 8a012280e0f0a462c094d106355aa436fceb1b76
16131 * common/Makefile.am (common_sources): Add new files.
16132 * common/compliance.c: New file. Move 'gnupg_pk_is_compliant' here,
16133 and tweak it to not rely on types private to gpg.
16134 * common/compliance.h: New file. Move the compliance enum here.
16135 * g10/keylist.c (print_compliance_flags): Adapt callsite.
16136 * g10/main.h (gnupg_pk_is_compliant): Remove prototype.
16137 * g10/misc.c (gnupg_pk_is_compliant): Remove function.
16138 * g10/options.h (opt): Use the new compliance enum.
16139 * sm/keylist.c (print_compliance_flags): Use the common functions.
16141 2017-05-31 Justus Winter <justus@g10code.com>
16143 gpg: Fix compliance computation.
16144 + commit 02af509dfc2b893720aa0c7b380fd7736b2bafd0
16145 * g10/misc.c (gnupg_pk_is_compliant): Compare against CO_RFC2440, not
16146 RFC2440 which is actually a predicate.
16149 + commit f9cb15b385f64f7c9403670f03632f81a874f213
16150 * sm/verify.c (gpgsm_verify): Simplify by using a newer gcrypt
16153 doc: Improve documentation.
16154 + commit 485b5a6e6dfe7aa545afa926e060d516ae911e42
16155 * doc/gpgsm.texi: Mention that '--with-key-data' implies
16158 2017-05-31 NIIBE Yutaka <gniibe@fsij.org>
16160 agent: Fix error from do_encryption.
16161 + commit c03e0eb01dc4632432d0472a6f8051142082bea4
16162 * agent/protect.c (do_encryption): Don't mask failure of OUTBUF
16165 scd: Fix error code on failure at usb_init.
16166 + commit 8defb21d34410d000c8b776e0e3a1edd04762638
16167 * scd/ccid-driver.c (ccid_dev_scan): Return GPG_ERR_ENODEV.
16169 scd: Handle a failure of libusb_init.
16170 + commit 5c33649782bf255af5a55f16eac5e85f059b00bf
16171 * scd/ccid-driver.c (ccid_get_reader_list, ccid_dev_scan): Handle
16174 2017-05-30 Andre Heinecke <aheinecke@intevation.de>
16176 gpg: Disable keydb handle caching.
16177 + commit d3d640b9cc98dd0d06b49a2e4d46eb67af96fe29
16178 * g10/getkey.c (getkey_end): Disable caching of the open keydb
16181 2017-05-30 NIIBE Yutaka <gniibe@fsij.org>
16183 agent: Fix memory leaks.
16184 + commit 996544626ea416c173a940db47f47f9e5cbd844c
16185 * agent/divert-scd.c (ask_for_card): Free WANT_KID and WANT_SN_DISP.
16186 * agent/gpg-agent.c (create_server_socket): Free UNADDR.
16188 2017-05-25 Werner Koch <wk@gnupg.org>
16190 dirmngr: This towel should better detect a changed resolv.conf.
16191 + commit de3a0988ef9addccd6b5c7950fb8797afbc3978d
16192 * dirmngr/dns-stuff.c (resolv_conf_changed_p): Fix initialization time
16195 dirmngr: Re-init libdns resolver on towel change of resolv.conf.
16196 + commit b5f356e9fba2d99909f8f54d7b7e6836bed87b68
16197 * dirmngr/dns-stuff.c: Include sys/stat.h.
16198 (RESOLV_CONF_NAME): New macro to replace a string.
16199 (resolv_conf_changed_p): New.
16200 (libdns_init): Call new function
16201 (libdns_res_open): Ditto.
16203 2017-05-24 Justus Winter <justus@g10code.com>
16205 agent: Make digest algorithms for ssh fingerprints configurable.
16206 + commit 525f2c482abb6bc2002eb878b03558fb43e6b004
16207 * agent/agent.h (opt): New field 'ssh_fingerprint_digest'.
16208 * agent/command-ssh.c (data_sign, ssh_identity_register): Honor the
16209 option for strings used to communicate with the user.
16210 * agent/findkey.c (agent_modify_description): Likewise.
16211 * agent/gpg-agent.c (cmd_and_opt_values): New value.
16212 (opts): New option '--ssh-fingerprint-digest'.
16213 (parse_rereadable_options): Set the default to MD5 for now.
16214 (main): Handle the new option.
16215 * doc/gpg-agent.texi: Document the new option.
16217 agent: Write both ssh fingerprints to 'sshcontrol' file.
16218 + commit a5f046d99a084b6a95268f03c1b588e8b78083cb
16219 * agent/command-ssh.c (add_control_entry): Hand in the key, write both
16220 the MD5- and the SHA256-based fingerprint to the 'sshcontrol' file
16221 when adding ssh keys.
16222 (ssh_identity_register): Adapt callsite.
16224 common: Correctly render SHA256-based ssh fingerprints.
16225 + commit 3a07a69dfc87b4fff610740d3dde8e23f0d2f8bc
16226 * common/ssh-utils.c (dummy_realloc): New function.
16227 (dummy_free): Likewise.
16228 (get_fingerprint): Prepend the fingerprint with the name of the digest
16229 algorithm. Correctly render SHA256-based ssh fingerprints.
16230 * common/t-ssh-utils.c (sample_keys): Add SHA256 hashes for the keys.
16231 (main): Add an option to dump the keys to gather fingerprints, also
16232 print the SHA256 fingerprint for keys given as arguments, and check
16233 the SHA256 fingerprints of the test keys.
16235 common: Support different digest algorithms for ssh fingerprints.
16236 + commit 3ac1a9d3a018816233a855faff059b4e0657a0f1
16237 * common/ssh-utils.c (get_fingerprint): Add and honor 'algo' parameter.
16238 (ssh_get_fingerprint{,_string}): Likewise.
16239 * common/ssh-utils.h (ssh_get_fingerprint{,_string}): Update prototypes.
16240 * common/t-ssh-utils.c (main): Adapt accordingly.
16241 * agent/command-ssh.c (agent_raw_key_from_file): Likewise.
16242 (ssh_identity_register): Likewise.
16243 * agent/command.c (do_one_keyinfo): Likewise.
16244 * agent/findkey.c (modify_description): Likewise.
16246 2017-05-22 NIIBE Yutaka <gniibe@fsij.org>
16248 agent: Add const qualifier for read-only table.
16249 + commit 509e4a4d7491daf496b21e5892f4f63ab90e8e21
16250 * agent/call-pinentry.c (start_pinentry): Add const to tbl.
16251 * agent/command-ssh.c (request_specs): Add const.
16252 (ssh_key_types): Likewise.
16253 (request_spec_lookup): Add const to the return value and SPEC.
16254 (ssh_request_process): Likewise.
16255 * agent/protect.c (protect_info): Add const.
16256 (agent_unprotect): Add const to algotable.
16258 g10: Fix default-key selection for signing, possibly by card.
16259 + commit fbb2259d22e6c6eadc2af722bdc52922da348677
16260 * g10/call-agent.c (warn_version_mismatch): Revert.
16261 (start_agent): Suppress version mismatch if relevant.
16262 * g10/getkey.c (get_seckey_default_or_card): New.
16263 * g10/skclist.c (build_sk_list): Use get_seckey_default_or_card.
16265 2017-05-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
16267 doc: Fix spellings.
16268 + commit 3713f67026467f63f80649c92ac4cc7973589855
16271 docs: Point to https://dev.gnupg.org/ .
16272 + commit 705da1eb23aef92c42d6d657b20a0984b104f72f
16273 Replace mentions of bugs.gnupg.org with https://dev.gnupg.org/. Since
16274 the project has transitioned to a better workflow for supporting
16275 contributions, we should ensure that our documentation points to the
16278 2017-05-17 Justus Winter <justus@g10code.com>
16280 gpgscm: Fix checking for opcode arguments.
16281 + commit aae50e0b6a61549e226e0c7785260ad517f0ffff
16282 * tests/gpgscm/scheme.c (Eval_Cycle): Update 'pcd' after dispatching
16285 tests: Fix agent teardown in release builds.
16286 + commit 0e1729bb993648deca84a2664ae78edc848d7003
16287 * tests/openpgp/defs.scm (start-agent,stop-agent): Use gpg-conf which
16288 will properly use the '--build-prefix' argument to make gpgconf use
16289 tools from the build directory.
16291 2017-05-17 NIIBE Yutaka <gniibe@fsij.org>
16293 g10: Fix gpgcompose.c.
16294 + commit ae95a7f5335e605fcd71fbe4a18ed384c88d590a
16295 * g10/gpgcompose.c (show_help): Check return value.
16297 g10: Suppress error for card availability check.
16298 + commit a8dd96826f8484c0ae93c954035b95c2a75c80f2
16299 * g10/call-agent.c (start_agent): Add semantics for card; Suppress
16300 error for card check.
16301 (warn_version_mismatch): Ignore an error for scdaemon.
16302 (agent_scd_serialno): Call start_agent with
16303 FLAG_FOR_CARD_SUPPRESS_ERRORS.
16305 2017-05-16 Justus Winter <justus@g10code.com>
16307 tests: Configure the environments to use scdaemon from build tree.
16308 + commit 386a7bbb245dd3ab7c4156a554adbe75d82bdf49
16309 * tests/gpgme/gpgme-defs.scm: Use the scdaemon from the build tree
16310 when writing a 'gpg-agent.conf'.
16311 * tests/gpgsm/gpgsm-defs.scm: Likewise.
16312 * tests/openpgp/defs.scm: Likewise.
16314 2017-05-15 Werner Koch <wk@gnupg.org>
16317 + commit 9574820329128f0ea8a98f9bfc0e77c73c3e0ec0
16320 po: Update German translation.
16321 + commit 4bd079dbdb44067688377156413dd32a82a89d22
16324 gpg: Do not mark ", " translatable.
16325 + commit 2d381b0f0ba97657e9fb2971eca6648bb77dd2cc
16326 * g10/tofu.c (ask_about_binding): Remove useless translation markers.
16328 2017-05-15 Andre Heinecke <aheinecke@intevation.de>
16330 dirmngr,w32: Fix ldap crl read on windows.
16331 + commit abe3a9043f86b48b92ddcec47197e032e35a6f4f
16333 * dirmngr/ldap-wrapper-ce.c (outstream_cookie_s): Add buffer_read_pos.
16334 (buffer_get_data): Use seperate read pos.
16336 2017-05-15 Werner Koch <wk@gnupg.org>
16338 common: Let format_text return an error.
16339 + commit 00b7767bc6fe309aa20375c859ebf708cfc7b9ea
16340 * common/stringhelp.c (format_text): Return NULL on error.
16341 * common/t-stringhelp.c (test_format_text): Adjust for change.
16342 * g10/gpgcompose.c (show_help): Abort on out of core.
16343 * g10/tofu.c (ask_about_binding): Abort on format_text error.
16344 (show_statistics): Ditto.
16345 (show_warning): Ditto.
16347 2017-05-11 Justus Winter <justus@g10code.com>
16349 tests: Also run all OpenPGP tests using keyrings.
16350 + commit bc01d62dc5d520e138499df5d80fb50f9e87e3e8
16351 * tests/openpgp/all-tests.scm: Run each test twice, once with public
16352 keys stored in a keybox, once with a keyring.
16353 * tests/openpgp/defs.scm (create-gpghome): Create a public keyring to
16354 make GnuPG use that instead of creating a keybox if '--use-keyring' is
16356 * tests/openpgp/setup.scm: Fix flag handling and usage.
16358 tests: Make it possible to run all tests using our infrastructure.
16359 + commit f4365790daa1d1400c7f0fe73ac9a6d25f0c6d0a
16360 * Makefile.am (TESTS_ENVIRONMENT): New variable.
16361 (check-all): New phony target to run all tests.
16362 * tests/gpgme/gpgme-defs.scm (have-gpgme?): New function that tests
16363 whether the GPGME test suite is available instead of exiting the
16365 * tests/gpgscm/init.scm (export): New macro.
16366 * tests/gpgscm/tests.scm (run-tests): New function.
16367 (load-tests): Likewise.
16368 * tests/gpgme/run-tests.scm: Simplify and move the parsing of the list
16369 of tests to 'all-tests.scm'.
16370 * tests/gpgsm/run-tests.scm: Likewise.
16371 * tests/migrations/run-tests.scm: Likewise.
16372 * tests/openpgp/run-tests.scm: Likewise.
16373 * tests/gpgme/Makefile.am: To select the tests to run, use the
16374 variable 'TESTS'. This harmonizes the interface with the automake
16376 * tests/gpgsm/Makefile.am: Likewise.
16377 * tests/migrations/Makefile.am: Likewise.
16378 * tests/openpgp/Makefile.am: Likewise.
16379 * tests/openpgp/README: Likewise.
16380 * agent/all-tests.scm: New file.
16381 * common/all-tests.scm: Likewise.
16382 * g10/all-tests.scm: Likewise.
16383 * g13/all-tests.scm: Likewise.
16384 * tests/gpgme/all-tests.scm: Likewise.
16385 * tests/gpgsm/all-tests.scm: Likewise.
16386 * tests/migrations/all-tests.scm: Likewise.
16387 * tests/openpgp/all-tests.scm: Likewise.
16388 * tests/run-tests.scm: Likewise.
16390 tests: Move the makefile parser.
16391 + commit 78d6a25a2db22ad2ae30d57ca980c0400cfef726
16392 * tests/gpgme/gpgme-defs.scm (parse-makefile, parse-makefile-expand):
16394 * tests/gpgscm/makefile.scm: ... here.
16395 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add new file.
16397 gpgscm: Make it possible to set the logfile name.
16398 + commit 29ef34cc4cb23e7b743dbf4cc8e5761f06076b9a
16399 * tests/gpgscm/tests.scm (test): Only set the default log filename
16400 when it has not been set before.
16402 2017-05-10 NIIBE Yutaka <gniibe@fsij.org>
16404 g10, sm, dirmngr, common: Add comment for fall through.
16405 + commit 0ce94a9698104d9bfc73d5a37478189564c96eb4
16406 * common/b64dec.c (b64dec_proc): Comment to clarify.
16407 * dirmngr/cdblib.c (cdb_make_put): Use same pattern to clarify.
16408 * dirmngr/dirmngr-client.c (read_pem_certificate): Likewise.
16409 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Likewise.
16410 * g10/armor.c (unarmor_pump): Likewise.
16411 * g10/gpg.c (main): Likewise.
16412 * g10/import.c (read_block): Likewise.
16413 * g10/keygen.c (make_backsig): Likewise.
16414 * g10/pkclist.c (check_signatures_trust): Likewise.
16415 * sm/gpgsm.c (main): Likewise.
16417 g10: Stop compiler warning for t-stutter.
16418 + commit 98b759119c81c5b39f34f8a9a7b6a57e91ad6470
16419 * g10/t-stutter.c (do_test): Refer current_test_group_failed.
16421 2017-05-08 Justus Winter <justus@g10code.com>
16423 gpg: Properly account for ring trust packets.
16424 + commit 22739433e98be80e46fe7d01d52a9627c1aebaae
16425 * g10/keyring.c (keyring_get_keyblock): Use the parser's packet count
16426 instead of counting ourself.
16427 * g10/packet.h (struct parse_packet_ctx_s): New field
16428 'n_parsed_packets'.
16429 (init_parse_packet): Initialize new field.
16430 * g10/parse-packet.c (parse): Count packets.
16432 2017-05-04 Justus Winter <justus@g10code.com>
16434 tests: Support tests that are expected to fail.
16435 + commit d6b46462f8c5c705ffb7cf8af03465a926aa11d3
16436 * tests/gpgscm/tests.scm (test-pool): Rework reporting. Filter using
16437 the computed test status instead of the return value. Also print the
16438 new categories 'failed expectedly' and 'passed unexpectedly'.
16439 (test): If a test ends with a bang (!), it is expected to fail. Adapt
16440 status, status-string, and xml accordingly.
16442 tests: Add function to dump packets.
16443 + commit eab0138e3179f247180a639a91570e5ee2c6ad0e
16444 * tests/openpgp/defs.scm (gpg-dump-packets): New function.
16446 2017-05-03 Andre Heinecke <aheinecke@intevation.de>
16448 speedo,w32: Fix silent user mode installation.
16449 + commit d378cc34a8d3d5053cf0c5ac7aa731c1bcefee22
16450 * build-aux/speedo/w32/inst.nsi (AddToPath): Move account
16452 (PrintNonAdminWarning): Remove is_user_install variable.
16454 2017-05-03 Justus Winter <justus@g10code.com>
16456 gpgscm: Create and re-use frame objects.
16457 + commit 8a168a6d4052ec31fed77c79bb96ffdd32bf9646
16458 * tests/gpgscm/scheme-private.h (struct scheme): New field
16460 * tests/gpgscm/scheme.c (enum scheme_types): New type 'T_FRAME'.
16461 (type_to_string): Handle new type.
16462 (settype): New macro.
16463 (gc_disable): Make sure there is at least one frame in the free list.
16464 (mark): Handle frame objects.
16465 (finalize_cell): Likewise.
16466 (dump_stack_initialize): Initialize free list.
16467 (dump_stack_free): Simplify.
16468 (frame_length): New variable.
16469 (dump_stack_make_frame): New function.
16470 (frame_slots): Likewise.
16471 (frame_payload): New macro.
16472 (dump_stack_allocate_frame): New function.
16473 (dump_stack_deallocate_frame): Likewise.
16474 (dump_stack_preallocate_frame): Likewise.
16475 (_s_return): Unpack frame object and deallocate it.
16476 (s_save): Wrap state in an frame object.
16477 (dump_stack_mark): Mark the free list.
16479 gpgscm: Merge opexe_0.
16480 + commit 9c6407d17e0cb9f4a370b1b83e7816577ec7d29d
16481 * tests/gpgscm/scheme-private.h (struct scheme): Remove field 'op'.
16482 * tests/gpgscm/scheme.c (opexe_0): Inline into 'Eval_Cycle'.
16483 (_Error_1): Return the opcode to evaluate next.
16484 (Error_1): Do not return, but set the opcode and goto dispatch.
16485 (Error_0): Likewise.
16486 (s_goto): Likewise.
16487 (s_return): Likewise.
16488 (s_return_enable_gc): Likewise.
16489 (s_thread_to): Remove superfluous cast.
16490 (_s_return): Return the opcode to evaluate next.
16491 (scheme_init_custom_alloc): Adapt to removal of field 'op'.
16493 2017-05-03 Andre Heinecke <aheinecke@intevation.de>
16495 speedo,w32: Allow installation as normal user.
16496 + commit cacfd4bce94704b531f68ee76fb40789e44fde67
16497 * build-aux/speedo/w32/g4wihelp.c (ENV_HK_USER, ENV_REG_USER):
16499 (path_add): Handle is_user_install variable. Don't abort
16500 if Path reg key does not exist. Fix crash if Path reg key
16501 does not contain a semicolon.
16502 (path_remove): Handle is_user_install variable. Fix crash
16503 if Path reg key does not exist.
16504 * build-aux/speedo/w32/inst.nsi: Remove obsolete HAVE_STARTMENU
16505 this was double guarded with WITH_GUI. Add Multiuser plugin and
16506 defines for this. Use SHCTX instead of HKLM / HKCU.
16507 (PrintNonAdminWarning): Only Warn and don't abort.
16509 2017-05-02 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
16511 g10: Remove skeleton options files.
16512 + commit 201f86803017c1db373023f7b506d4a0dc644bbc
16513 * build-aux/speed/w32/inst.nsi: stop installing skeleton files.
16514 * doc/gpg.texi: stop documenting skeleton files.
16515 * g10/Makefile.am: stop installing skeleton files.
16516 * g10/openfile.c (copy_options_file): Remove.
16517 (try_make_homedir): do not call copy_options_file.
16519 2017-04-27 NIIBE Yutaka <gniibe@fsij.org>
16521 g10: For signing, prefer available card key when no -u option.
16522 + commit 97a2394ecafaa6f58e4a1f70ecfd04408dc15606
16523 * g10/skclist.c (build_sk_list): Ask gpg-agent if card is available.
16524 Then, use the card key if any.
16526 2017-04-26 NIIBE Yutaka <gniibe@fsij.org>
16528 g10: Minor clean up.
16529 + commit 2262a80c5f44433a08bc0e21b77d9efe51596f21
16530 * g10/main.h (complete_sig): Remove declaration.
16531 * g10/sign.c (complete_sig): Make it static.
16533 2017-04-25 NIIBE Yutaka <gniibe@fsij.org>
16536 dirmngr: Fix aliasing problem in dns.c.
16537 + commit 247932f367f856e7ce91528e14f0aaf838150857
16538 * dirmngr/dns.c (dns_ai_setent): Care about aliasing.
16540 2017-04-25 NIIBE Yutaka <gniibe@fsij.org>
16542 tests: Remove *.conf.tmpl from Makefile.
16543 + commit 7851d73fd7f424f9a649690e1cb3055feb792c51
16544 * tests/openpgp/Makefile.am (TEST_FILES): Remove gpg.conf.tmpl
16545 and gpg-agent.conf.tmpl.
16547 g10: invalidate the fd cache for keyring.
16548 + commit 116cfd60779fbb3540da629db54dc2e148f4a3a2
16549 * g10/keyring.c (keyring_search_reset): Don't keep the FD cache.
16551 2017-04-24 Andre Heinecke <aheinecke@intevation.de>
16553 w32: Enable wildcard expansion with mingw-w64.
16554 + commit 2e71bf30f038ca0e142acbb6f650ce029105f8a2
16555 * g10/gpg.c: Define _dowildcard = -1;
16557 2017-04-24 Justus Winter <justus@g10code.com>
16559 tests: Fix Python detection.
16560 + commit ef1922b3b19df0aa7f8c15d503c603f76fc13f82
16561 * tests/gpgme/gpgme-defs.scm (python): Fix Python detection.
16563 gpgscm: Refactor cell finalization.
16564 + commit d2f6798621d751cd6ae6f091c4a2af4569c5b8aa
16565 * tests/gpgscm/scheme.c (finalize_cell): Use switch, return whether
16566 the cell may be freed.
16567 (gc): Update callsite.
16569 gpgscm: Tweak error message display.
16570 + commit 78547bfe8a885579438a17abadca02b62cce2844
16571 * tests/gpgscm/init.scm (throw'): If the first argument to the error
16572 is a string, display it as such.
16574 tests: Deduplicate and simplify code.
16575 + commit 06a177ceea529269a7404740c60416bd6a4567b1
16576 * tests/gpgme/gpgme-defs.scm (create-file): Move...
16577 * tests/gpgsm/gpgsm-defs.scm (create-file): ... likewise...
16578 * tests/openpgp/defs.scm (create-file): Here.
16579 (create-gpghome): Use 'create-file'.
16580 * tests/openpgp/gpg-agent.conf.tmpl: Delete file.
16581 * tests/openpgp/gpg.conf.tmpl: Likewise.
16584 + commit 9ae63b9caefdf3e925c5928667fcd9227132d27f
16585 * tests/gpgscm/t-child.scm: Use 'string-length' on the string.
16587 gpgscm: Improve syntax checking.
16588 + commit 4aab0e6ac7f2887a6f38f0cb95365dd7c30b4b18
16589 * tests/gpgscm/scheme.c (opexe_0): Make sure closure arguments are
16592 gpgscm: Emit JUnit-style XML reports.
16593 + commit ee715201ae784e840b6136393289e6dbd6f4c540
16594 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add new file.
16595 * tests/gpgscm/lib.scm (string-translate): New function.
16596 * tests/gpgscm/main.c (main): Load new file.
16597 * tests/gpgscm/tests.scm (dirname): New function.
16598 (test-pool): Record execution times, emit XML report.
16599 (test): Record execution times, record log file name, emit XML report.
16600 (run-tests-parallel): Write XML report.
16601 (run-tests-sequential): Likewise.
16602 * tests/gpgscm/xml.scm: New file.
16603 * tests/gpgme/Makefile.am (CLEANFILES): Add 'report.xml'.
16604 * tests/gpgsm/Makefile.am: Likewise.
16605 * tests/migrations/Makefile.am: Likewise.
16606 * tests/openpgp/Makefile.am: Likewise.
16608 gpgscm: Make logging less verbose and more useful.
16609 + commit 679920781a25ae5c0e49d4bd78e6926fd661778f
16610 * tests/gpgscm/tests.scm (call-with-io): When being verbose, include
16611 the pid in the output, and avoid duplicating the command arguments.
16613 gpgscm: Make test framework less functional.
16614 + commit a71f4142e13e2cc26ef0cd62f56a1ccb7ce678ee
16615 * tests/gpgscm/tests.scm (test-pool, tests): Previously, these methods
16616 updated objects by creating new updated copies of the object being
16617 manipulated. This made the code awkward without any benefit,
16618 therefore I change it to just update the object.
16620 gpgscm: Move 'trace' and 'stringify'.
16621 + commit f03d6897be904da58cad76b4bd07729922b47616
16622 * tests/gpgscm/tests.scm (trace, stringify): Move...
16623 * tests/gpgscm/lib.scm: ... here.
16625 gpgscm: Avoid fruitless garbage collection cycles.
16626 + commit 245860ecaf8b9e82ca577385abd453ac92ffcd26
16627 * tests/gpgscm/scheme-private.h (CELL_MINRECOVER): New macro.
16628 * tests/gpgscm/scheme.c (_get_cell): Move the heuristic to get more
16630 (gc): ... here where every caller benefits from the optimization.
16632 2017-04-20 NIIBE Yutaka <gniibe@fsij.org>
16634 g13: Fix for Solaris.
16635 + commit 10519270d36586c536bfb6c4cda8ac17c01f4976
16636 * configure.ac: Check sys/mkdev.h.
16637 * g13/sh-dmcrypt.c: Include sys/mkdev.h.
16639 2017-04-18 NIIBE Yutaka <gniibe@fsij.org>
16641 dirmngr: Fix final close of LISTEN_FD.
16642 + commit 4b2581dc0ea1d03e70023bb0748aa0c21c0a2173
16643 * dirmngr/dirmngr.c (handle_connections): Close LISTEN_FD.
16645 dirmngr: Fix API difference for Windows.
16646 + commit 0d0a7efa8fa0accc1da851917376e2328ef33c96
16647 * dirmngr/http.c (read_server, write_server): Use assuan_fd_t.
16648 (http_wait_response): Use FD2INT to get unsigned integer fd.
16649 (read_server, write_server): Likewise.
16650 (simple_cookie_read, simple_cookie_write): Use assuan_fd_t.
16652 2017-04-17 NIIBE Yutaka <gniibe@fsij.org>
16654 agent: More minor change.
16655 + commit 9296aed4bd2ad09d23339e658264e557c5312585
16656 * agent/command.c (cmd_pksign): Remove redundant assignment.
16658 agent: Minor cleanup.
16659 + commit 45c52cca1401b930878a8f901b63cfbb22e9e327
16660 * agent/command-ssh.c (ssh_key_to_protected_buffer): Not touch ERR.
16661 * agent/command.c (cmd_genkey, cmd_import_key): Clean up.
16663 tests: Minor memory fix.
16664 + commit b9440aa3693a4bb91e1ba8ff09e2d93ff22dd70a
16665 * tests/openpgp/fake-pinentry.c (get_passphrase): Free the memory.
16667 g10: Fix parse_ring_trust.
16668 + commit 256e861bce3dc9aba8fab4df47a40cae3bede175
16669 * g10/parse-packet.c (parse_ring_trust): Fix condition.
16672 + commit 0dec0cc281dfa26db89f8cc5ee002dea5c2b2e81
16673 * g10/export.c (cleartext_secret_key_to_openpgp): No initialization.
16674 (do_export_one_keyblock): Initialize with GPG_ERR_NOT_FOUND.
16675 * g10/getkey.c (get_best_pubkey_byname): Add non-null check.
16676 * g10/tofu.c (tofu_set_policy): ERR initialize to 0.
16678 g10: Fix import/export filter property match.
16679 + commit af5f8ecf51f5e1f33e832d4946d02313b78a0536
16680 * g10/import.c (impex_filter_getval): Fix to "else if".
16682 2017-04-14 NIIBE Yutaka <gniibe@fsij.org>
16684 agent: Clean up error initialize/return.
16685 + commit 36c4e540f1a4992675ee6e0acca1231325457079
16686 * agent/call-pinentry.c (start_pinentry): Return RC.
16687 * agent/command-ssh.c (ssh_handler_request_identities): Don't set ERR.
16688 * agent/findkey.c (try_unprotect_cb): Return ERR.
16689 (unprotect): Don't set RC.
16690 * agent/gpg-agent.c (handle_connections): Don't set fd.
16692 dirmngr: More fix for test program.
16693 + commit adb77d095b3958482863a17c83746f33945638dc
16694 * dirmngr/t-http.c (main): Care about no TLS.
16696 dirmngr: More fix for Windows.
16697 + commit 4771bad610eb59e701fe8e53468e2af22d45eeb0
16698 * dirmngr/http.c (simple_cookie_read, simple_cookie_write): Only
16699 valid with HTTP_USE_NTBTLS.
16700 (_my_socket_new): Simply cast to int since it's for debug.
16701 (_my_socket_ref, _my_socket_unref): Likewise.
16703 2017-04-13 NIIBE Yutaka <gniibe@fsij.org>
16705 dirmngr: Fix http.c for sockaddr_storage.
16706 + commit 86dcb03134fd4957d51ebaa06b7991239f9ee56a
16707 dirmngr/http.c (use_socks): Use sockaddr_storage.
16708 (my_sock_new_for_addr, connect_server): Likewise.
16710 dirmngr: Fix alignment of ADDR.
16711 + commit 892b33bb2c57785927ea6652091191da2deed464
16712 * dirmngr/dns-stuff.h (dns_addrinfo_s): Use struct sockaddr_storage
16713 for size and alignment.
16714 * dirmngr/dns-stuff.c (resolve_name_libdns): Follow the change.
16715 (resolve_dns_name): Use struct sockaddr_storage.
16716 (resolve_addr_standard, resolve_dns_addr): Likewise.
16717 (resolve_dns_addr): Likewise.
16719 dirmngr: Fix thread key type.
16720 + commit 37018adce6ea4920b34d59afcfe4f55f716b3086
16721 * dirmngr/dirmngr.c (my_tlskey_current_fd): Use npth_key_t.
16723 common, g10: Fix enumeration types.
16724 + commit 74258278efacd7069e8c1df8ff6fc3f4675d713e
16725 * common/openpgpdefs.h (CIPHER_ALGO_PRIVATE10, PUBKEY_ALGO_PRIVATE10)
16726 (DIGEST_ALGO_PRIVATE10, COMPRESS_ALGO_PRIVATE10): New.
16727 * g10/misc.c (map_pk_gcry_to_openpgp): Add type conversion.
16728 (map_cipher_openpgp_to_gcry, openpgp_cipher_algo_name)
16729 (openpgp_pk_test_algo2, map_md_openpgp_to_gcry)
16730 (pubkey_get_npkey): Add default handling.
16732 dirmngr: More fix for Windows.
16733 + commit 5af104b541ed430a54eb0163a1d29e1d043f9377
16734 * dirmngr/dns.c (socket_fd_t, STDCALL): New.
16735 (dns_te_initname): Use.
16737 2017-04-12 NIIBE Yutaka <gniibe@fsij.org>
16739 dirmngr: Fix type of sock.
16740 + commit 6755b3b505f79a5a233b18e85f57a0d3a455e664
16741 * dirmngr/http.c (send_request): Use assuan_fd_t for SOCK.
16743 tools: Fix condition for gpg-connect-agent.
16744 + commit f52f6af834cc488d11612e349e4af023d69a45f4
16745 * tools/gpg-connect-agent.c (start_agent): Add paren.
16747 dirmngr: Fix possible null reference.
16748 + commit 7ae1857c90ab43ad9e31f0fb6dbd37f25cc37278
16749 * dirmngr/dns.c (dns_error_t dns_trace_fput): Check NULL.
16751 common: Simplify format_text.
16752 + commit 7b4edf14bb16fbe786e55b829a208960396ce8df
16753 * common/stringhelp.c (format_text): Don't allow IN_PLACE formatting.
16754 * common/stringhelp.h: Change the API with no IN_PLACE.
16755 * common/t-stringhelp.c (test_format_text): Follow the change.
16756 * g10/gpgcompose.c (show_help): Likewise.
16757 * g10/tofu.c (format_conflict_msg_part1, ask_about_binding)
16758 (show_statistics, show_warning): Likewise.
16760 gpgscm: Fix test program.
16761 + commit 7f9032d4a8ce53ce1a972bd3c1f8d20b3776756b
16762 * tests/gpgscm/t-child.c (main): Fix for setmode.
16764 dirmngr: Fix plus1_ns.
16765 + commit 60d9a9e6b4ae3af029596d14732c02f49203326d
16766 * dirmngr/dns.c (plus1_ns): Fix the initial implementation.
16768 scd: Handle unexpected suspend/resume by CCID driver.
16769 + commit f053f99ed0b0c6de7b7c4a07cbd7f7d213ddf0db
16770 * scd/ccid-driver.c (bulk_in): Handle unexpected failure.
16772 dirmngr: Fix dns-stuff.c in another way.
16773 + commit bd0c94939faf8ccfc117fb595e9bc0105edcafa4
16774 * dirmngr/dns-stuff.c (T_CERT): Define our own.
16776 Revert "dirmngr: Fix dns-stuff.c."
16777 + commit 0b904ddea8bddaa2fd7893a9dce1df1cb5e36b00
16778 This reverts commit 1538523156be568046f632d1775eae30ea8bd556.
16780 dirmngr: Fix dns-stuff.c.
16781 + commit 1538523156be568046f632d1775eae30ea8bd556
16782 * dirmngr/dns-stuff.c: Don't include arpa/nameser.h.
16784 agent: Simplify stream_read_cstring.
16785 + commit c64763c3a74ecc61c2f6c5edb679a2a3879d79e7
16786 * agent/command-ssh.c (stream_read_cstring): Just call
16787 stream_read_string.
16789 dirmngr: Use a function to increment network short.
16790 + commit 64904ce627b6b0661acf15b5b70103c4842bb0f3
16791 * dirmngr/dns.c (plus1_ns): New.
16792 (dns_p_push): Use it.
16794 g10: Minor clean up for export.c.
16795 + commit 05218829589f6d4b09933fa19f568c2019367d5c
16796 * g10/export.c (export_ssh_key): Check IDENTIFIER for error.
16797 Release base64 thing on error of get_membuf.
16799 2017-04-11 NIIBE Yutaka <gniibe@fsij.org>
16801 g13: Include sys/sysmacros.h if available.
16802 + commit c3cc9551dcc89cc25c0a0ec16d8eb12c1c221638
16803 * configure.ac: Add test for sys/sysmacros.h.
16804 * g13/sh-dmcrypt.c: Include sys/sysmacros.h.
16806 2017-04-11 Justus Winter <justus@g10code.com>
16808 tests: Fix distcheck.
16809 + commit 00be2a92625e832e8dd621f2a8f72b124c6d50ca
16810 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add 'gnupg.scm'.
16812 tests: Avoid relying on implicit gpg commands.
16813 + commit cde626e7f7349a73d58ec3236ab3b43dec852bb5
16814 * tests/openpgp/armdetach.scm: Always use an explicit command instead
16815 of relying on gpg to guess what we want.
16816 * tests/openpgp/armdetachm.scm: Likewise.
16817 * tests/openpgp/armencrypt.scm: Likewise.
16818 * tests/openpgp/armencryptp.scm: Likewise.
16819 * tests/openpgp/armor.scm: Likewise.
16820 * tests/openpgp/armsignencrypt.scm: Likewise.
16821 * tests/openpgp/armsigs.scm: Likewise.
16822 * tests/openpgp/clearsig.scm: Likewise.
16823 * tests/openpgp/compression.scm: Likewise.
16824 * tests/openpgp/conventional-mdc.scm: Likewise.
16825 * tests/openpgp/conventional.scm: Likewise.
16826 * tests/openpgp/decrypt-dsa.scm: Likewise.
16827 * tests/openpgp/decrypt.scm: Likewise.
16828 * tests/openpgp/detach.scm: Likewise.
16829 * tests/openpgp/detachm.scm: Likewise.
16830 * tests/openpgp/ecc.scm: Likewise.
16831 * tests/openpgp/encrypt-dsa.scm: Likewise.
16832 * tests/openpgp/encrypt-multifile.scm: Likewise.
16833 * tests/openpgp/encrypt.scm: Likewise.
16834 * tests/openpgp/encryptp.scm: Likewise.
16835 * tests/openpgp/seat.scm: Likewise.
16836 * tests/openpgp/signencrypt-dsa.scm: Likewise.
16837 * tests/openpgp/signencrypt.scm: Likewise.
16838 * tests/openpgp/sigs-dsa.scm: Likewise.
16839 * tests/openpgp/sigs.scm: Likewise.
16841 tests: Make tests more robust.
16842 + commit 1b28d9dbe0260b2a4645c4b5caae11d9f375c942
16843 * tests/openpgp/defs.scm (have-opt-always-trust): Execute in empty
16844 ephemeral home directory. This prevents gpg from picking up the
16845 configuration from the current gnupghome (if any).
16846 * tests/migrations/common.scm (untar-armored): Likewise.
16848 tests: Move common functionality.
16849 + commit ccd2187212c12b84c86a10fd4417a16536243179
16850 * tests/openpgp/defs.scm (with-home-directory,
16851 with-ephemeral-home-directory): Move...
16852 * tests/gpgscm/gnupg.scm: ... to this new file.
16853 * tests/gpgscm/main.c (main): Load the new file.
16855 2017-04-11 NIIBE Yutaka <gniibe@fsij.org>
16857 dirmngr: Fix build for Windows.
16858 + commit 3133402241167ccad70fa888a47ffcbe04e7b4c5
16859 * dirmngr/ldap-wrapper-ce.c (outstream_cookie_writer): Use
16862 g10,tools: Fix bzlib.h include order.
16863 + commit 03d77b60befa4e2f8437a80ac429cca3e54688f8
16864 * g10/compress-bz2.c: Include bzlib.h after gcrypt.h.
16865 * tools/gpgsplit.c: Likewise.
16867 g10: Minor clean up for TOFU.
16868 + commit f079822b2ce06c18b7ea45efed2d29b54e38f04d
16869 * g10/tofu.c (ask_about_binding): Fix for qualifier.
16871 common: Portability fix for logging.c.
16872 + commit 456c5cdb2d72bba77e2a30c8fdb1c1cebbe9b1d2
16873 * common/logging.c (S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Avoid
16874 duplicated definition.
16876 tools: Portability fix for gpgparsemail.
16877 + commit a1446163d584cdc3003c7d5b5fc6d74737c1732d
16878 * tools/rfc822parse.c (my_stpcpy): Rename from stpcpy.
16880 2017-04-10 Justus Winter <justus@g10code.com>
16882 gpgscm: Fix opcode dispatch.
16883 + commit 1b6adab41d386b587f65e5c6f14a63859ac1226b
16884 * tests/gpgscm/scheme.c (opexe_0): Consider 'op', not 'sc->op'. The
16885 former is the opcode we are currently executing.
16887 gpgscm: Mmap script files.
16888 + commit c7f0d90592fd0348a3818ac897f91e6859584146
16889 * tests/gpgscm/main.c (load): Try to mmap the script.
16890 * tests/gpgscm/scheme.c (scheme_load_memory): New function, a
16891 generalization of 'scheme_load_string'.
16892 * tests/gpgscm/scheme.h (scheme_load_memory): New prototype.
16894 gpgscm: Refactor checking for opcode arguments.
16895 + commit f3d1f6867792deeb9a2a63744ee9b076c41c58f3
16896 * tests/gpgscm/scheme.c (op_code_info): Fix type, add forward
16898 (check_arguments): New function.
16899 (Eval_cycle): Use the new function.
16901 gpgscm: Improve syntax dispatch.
16902 + commit b628e62b5b9f7ed5cbb1bfe34727b5ee8129f7d4
16903 * tests/gpgscm/scheme.c (assign_syntax): Add opcode parameter, store
16905 (syntaxnum): Add sc parameter, retrieve opcode from tag.
16906 (opexe_0): Adapt callsite.
16907 (scheme_init_custom_alloc): Likewise.
16909 gpgscm: Make tags mandatory.
16910 + commit a1ad5d6a30cf72d9b7e7bb449985dc69d5e01c4b
16911 * tests/gpgscm/opdefines.h: Make tags mandatory.
16912 * tests/gpgscm/scheme.c: Likewise.
16913 * tests/gpgscm/scheme.h: Likewise.
16915 gpgscm: Add and use opcode for reversing a list in place.
16916 + commit e1bb9326dc381ae2711a81ab621e21a66388bcbd
16917 * tests/gpgscm/lib.scm (string-split-pln): Use 'reverse!'.
16918 (string-rtrim): Likewise.
16919 * tests/gpgscm/opdefines.h (reverse!): New opcode.
16920 * tests/gpgscm/scheme.c (opexe_0): Handle new opcode.
16922 gpgscm: Deduplicate code.
16923 + commit 3e91019a92b9bb3bb5a8cd62336b4cf65964e45b
16924 * tests/gpgscm/scheme.c (oblist_add_by_name): Deduplicate.
16925 (new_slot_spec_in_env): Likewise.
16927 gpgscm: Move dispatch table into rodata.
16928 + commit 7dff6248bddd5583988ac562318cf0d76a409d0e
16929 * tests/gpgscm/opdefines.h: Use 0 instead of NULL.
16930 * tests/gpgscm/scheme.c (op_code_info): Use char arrays instead of
16931 pointers, make arity parameters smaller.
16933 (_OP_DEF): Likewise.
16934 (dispatch_table): Likewise.
16935 (procname): Likewise.
16936 (Eval_cycle): Likewise.
16937 (scheme_init_custom_alloc): Likewise.
16939 gpgscm: Use more threaded code.
16940 + commit 6f217d116d1a12c6093bb253dbfa349bc81bc90b
16941 * tests/gpgscm/scheme.c (opexe_0): Use 's_thread_to' instead of
16942 's_goto' wherever possible.
16944 gpgscm: Remove now obsolete dispatcher function from the opcodes.
16945 + commit e7ed9822e20ee4bbb4cdd9eca8121b4ade87e5ce
16946 * tests/gpgscm/opdefines.h: Remove now obsolete dispatcher function
16948 * tests/gpgscm/scheme-private.h (_OP_DEF): Adapt.
16949 * tests/gpgscm/scheme.c (dispatch_func): Remove type declaration.
16950 (op_code_info): Remove 'func'.
16952 (Eval_Cycle): Always call 'opexe_0'.
16954 gpgscm: Merge 'opexe_6'.
16955 + commit ddf444828b9b3f75d964473a2c0e77f75f094cf4
16956 * tests/gpgscm/scheme.c (opexe_6): Merge into 'opexe_0'.
16957 * tests/gpgscm/opdefines.h: Adapt.
16959 gpgscm: Merge 'opexe_5'.
16960 + commit 1379df44537b67b7c2fbc0fb5bc6f7945a5d7ebb
16961 * tests/gpgscm/scheme.c (opexe_5): Merge into 'opexe_0'.
16962 * tests/gpgscm/opdefines.h: Adapt.
16964 gpgscm: Merge 'opexe_4'.
16965 + commit 4f835104b9475e7d585d859b85e7d0d4cfe9aab3
16966 * tests/gpgscm/scheme.c (opexe_4): Merge into 'opexe_0'.
16967 * tests/gpgscm/opdefines.h: Adapt.
16969 gpgscm: Merge 'opexe_3'.
16970 + commit d591ab65d37ee467ca91ad851ab236f2985c1ee2
16971 * tests/gpgscm/scheme.c (opexe_3): Merge into 'opexe_0'.
16972 * tests/gpgscm/opdefines.h: Adapt.
16974 gpgscm: Merge 'opexe_2'.
16975 + commit 6cad38228f6ebfdc8e52960223b492597aff26a0
16976 * tests/gpgscm/scheme.c (opexe_2): Merge into 'opexe_0'.
16977 * tests/gpgscm/opdefines.h: Adapt.
16979 gpgscm: Merge 'opexe_1'.
16980 + commit 154af876f05b773bf3a860fcb4cc41066da27beb
16981 * tests/gpgscm/scheme.c (opexe_1): Merge into 'opexe_0'.
16982 * tests/gpgscm/opdefines.h: Adapt.
16984 2017-04-10 NIIBE Yutaka <gniibe@fsij.org>
16986 agent: Use "ll" length specifier when time_t is larger.
16987 + commit 170660ed11b56145dea4865e751ae5aff1681fe2
16988 * agent/command.c (cmd_keytocard): Use KEYTOCARD_TIMESTAMP_FORMAT.
16990 scd: Relax a condition for p15 driver.
16991 + commit 7501f2e9c4e6fd94a191b381d52ec2fe1d103e29
16992 * scd/app-p15.c (read_ef_aodf): Fix.
16994 scd: Relax a condition for p15 driver.
16995 + commit 3c1ad96f1ce838daf2d861b33e6611f6d3043d25
16996 * scd/app-p15.c (read_ef_aodf): Remove possibly redundant condition.
16998 scd: Remove "special transport" support.
16999 + commit 34199ef677bb40eadf0da696a111f7036bc3187e
17000 * scd/ccid-driver.c (transports, my_sleep, prepare_special_transport)
17002 (ccid_dev_scan, ccid_dev_scan_finish, ccid_get_BAI): Only for USB.
17003 (ccid_open_reader, do_close_reader, bulk_out, bulk_in, abort_cmd)
17004 (ccid_poll, ccid_transceive): Likewise.
17006 2017-04-07 Justus Winter <justus@g10code.com>
17008 gpgscm: Allocate small integers in the rodata section.
17009 + commit 8640fa880d7050917f4729f2c0cb506e165ee446
17010 * tests/gpgscm/Makefile.am (gpgscm_SOURCES): Add new file.
17011 * tests/gpgscm/scheme-private.h (struct cell): Move number to the top
17012 of the union so that we can initialize it.
17013 (struct scheme): Remove 'integer_segment'.
17014 * tests/gpgscm/scheme.c (initialize_small_integers): Remove function.
17015 (small_integers): New variable.
17016 (MAX_SMALL_INTEGER): Compute.
17017 (mk_small_integer): Adapt.
17018 (mark): Avoid marking objects already marked. This allows us to run
17019 the algorithm over objects in the rodata section if they are already
17021 (scheme_init_custom_alloc): Remove initialization.
17022 (scheme_deinit): Remove deallocation.
17023 * tests/gpgscm/small-integers.h: New file.
17025 gpgscm: Make global data constant when possible.
17026 + commit c9c3fe883271868d3b2dd287d295cf6a8f8ffc05
17027 * tests/gpgscm/scheme-private.h (struct scheme): Make 'vptr' const.
17028 * tests/gpgscm/scheme.c (num_zero): Statically initialize and turn
17030 (num_one): Likewise.
17031 (charnames): Change type so that it can be stored in rodata.
17032 (is_ascii_name): Adapt slightly.
17033 (assign_proc): Make argument const char *.
17034 (op_code_info): Make some fields const char *.
17035 (tests): Make const.
17036 (dispatch_table): Make const. At least it can be made read-only after
17038 (Eval_Cycle): Adapt slightly.
17039 (vtbl): Make const.
17041 gpgscm: Remove arbitrary limit on number of cell segments.
17042 + commit 56638c28adc1bbe9fc052b92549a50935c0fe99c
17043 * tests/gpgscm/scheme-private.h (struct scheme): Remove fixed-size
17044 arrays for cell segments, replace them with a pointer to the new
17045 'struct cell_segment' instead.
17046 * tests/gpgscm/scheme.c (struct cell_segment): New definition.
17047 (_alloc_cellseg): Allocate the header within the segment, return a
17048 pointer to the header.
17049 (_dealloc_cellseg): New function.
17050 (alloc_cellseg): Insert the segments into a list.
17051 (_get_cell): Allocate a new segment if less than a quarter of
17052 CELL_SIGSIZE is recovered during garbage collection.
17053 (initialize_small_integers): Adapt callsite.
17054 (gc): Walk the list of segments.
17055 (scheme_init_custom_alloc): Remove initialization of removed field.
17056 (scheme_deinit): Adapt deallocation.
17058 gpgscm: Fix compact vector encoding.
17059 + commit bf8b5e9042b3d86d419b2ac1987a9298c9d21500
17060 * tests/gpgscm/scheme-private.h (struct cell): Use uintptr_t for
17061 '_flags'. This way, '_flags' has the size of a machine word.
17063 2017-04-07 Werner Koch <wk@gnupg.org>
17065 gpg: Fix printing of offline taken subkey.
17066 + commit 547bc01d57528ecc27b3b5e16797967a7f88fecf
17067 * g10/keylist.c (list_keyblock_print): Set SECRET to 2 and not 0x32.
17069 2017-04-07 NIIBE Yutaka <gniibe@fsij.org>
17071 scd: Internal CCID reader cleanup.
17072 + commit cc420d34880e2a050b39f969873974cfc35fa5c3
17073 * scd/ccid-reader.c (scan_usb_device): Only for scan mode, so, rename
17074 from scan_or_find_usb_device.
17075 (scan_devices): Likewise. Remove support of special transport types.
17076 (ccid_get_reader_list): Simplify.
17077 (abort_cmd): Fix error return.
17078 (send_escape_cmd): Fix for RESULTLEN == NULL.
17079 (ccid_transceive_secure): Remove unnecessary var updates.
17081 scd: Don't keep CCID reader open when card is not available.
17082 + commit 3c93595d701c59cbc9b67a7fd0bcde7ee0fada1a
17083 * scd/apdu.c (open_ccid_reader): Fail if no ATR.
17085 agent: Serialize access to passphrase cache.
17086 + commit ebe12be034f052cdec871f0d8ad1bfab85d7b943
17087 * agent/cache.c (encryption_lock): Remove.
17088 (cache_lock): New. Now, we have coarse grain lock to serialize
17089 entire cache access.
17090 (initialize_module_cache): Use CACHE_LOCK.
17091 (init_encryption, new_data): Remove ENCRYPTION_LOCK.
17092 (agent_flush_cache, agent_put_cache, agent_get_cache): Lock the cache.
17094 2017-04-06 Justus Winter <justus@g10code.com>
17096 gpgscm: Avoid mutating integer.
17097 + commit f1dc34f502a68673e7a29f3fcf57b8dc6a4fac89
17098 * tests/gpgscm/scheme.c (opexe_5): Do not modify the integer in-place
17099 while printing an vector. Integer objects may be shared, so they must
17102 gpgscm: Initialize unused slots in vectors.
17103 + commit b83903f59ec5d49ac579f263da70ebc8dc3645b5
17104 * tests/gpgscm/scheme.c (get_vector_object): Initialize unused slots
17105 at the end of vectors.
17107 tests: Fix distcheck.
17108 + commit 23f00f109ddba595db4f73a6182750177c7dd75d
17109 * tests/Makefile.am (SUBDIRS): Add 'pkits' again. Simply dropping it
17110 makes 'make distcheck' unhappy.
17111 * tests/pkits/Makefile.am (TESTS): Remove all tests.
17113 tests: Disable 'pkits' test suite.
17114 + commit af1c1a57e46a00a32d83c1a58c5f3ef6f4a1c1d1
17115 * tests/Makefile.am (SUBDIRS): Drop 'pkits'.
17116 * tests/pkits/common.sh: Fix locating 'PKITS_data.tar.bz2'.
17117 * tests/pkits/inittests: Likewise.
17119 tests: Make test more robust.
17120 + commit 94645311f8a3e9ae33643512f87fbef41bf0556f
17121 * tests/openpgp/4gb-packet.scm: Skip if we do not have BZIP2.
17122 * tests/openpgp/defs.scm (have-compression-algo?): New function.
17124 2017-04-05 Justus Winter <justus@g10code.com>
17126 tests: Fix setup of ephemeral home directories.
17127 + commit 01e84d429aeeb1450012ff0576a6a24de50693c6
17128 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Set
17129 GNUPGHOME and cwd to the ephemeral directory before calling the setup
17132 2017-04-04 Justus Winter <justus@g10code.com>
17134 tests: Fix setup of ephemeral home directories.
17135 + commit 32b75fb7743f35936d7014fce33c90ba97dfa374
17136 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Create
17137 configuration files when we enter the context.
17138 * tests/openpgp/setup.scm: Do not use an ephemeral home directory.
17139 Tests should always use the cwd.
17140 * tests/gpgsm/setup.scm: Likewise.
17141 * tests/gpgsm/export.scm: Add explicit constructor function.
17142 * tests/openpgp/decrypt-session-key.scm: Likewise.
17143 * tests/openpgp/decrypt-unwrap-verify.scm: Likewise.
17145 gpgscm: Fix copying values.
17146 + commit 6261611d3786f19fd84ccc79f45a89cadac518e8
17147 * tests/gpgscm/scheme.c (copy_value): New function.
17148 (mk_tagged_value): Use new function.
17149 (opexe_4): Likewise for OP_SAVE_FORCED.
17151 gpgscm: Simplify get-output-string operation.
17152 + commit a80d4a9b50ad47eae1f8c740dd73804311e38783
17153 * tests/gpgscm/scheme.c (opexe_4): Simplify 'get-output-string'.
17155 gpgscm: Simplify substring operation.
17156 + commit d858096c99705ccf2e115475f81c4cf88edbeebf
17157 * tests/gpgscm/scheme.c (opexe_2): Simplify 'substring'.
17159 2017-04-04 NIIBE Yutaka <gniibe@fsij.org>
17161 agent: Minor fix for get_client_pid.
17162 + commit 5744d2038bd17b8b1be4e73d0ad3bc41772efe96
17163 * agent/command-ssh.c (get_client_pid): Use 0 to initialize.
17165 2017-04-03 Werner Koch <wk@gnupg.org>
17168 + commit e7eb9b12deaf7ebe26967bfb56e980b7efeebdc3
17171 dirmngr: New option --disable-ipv6.
17172 + commit 3533b854408fa93734742b2ee12b62aa0d55ff28
17173 * dirmngr/dirmngr.h (struct opt): Add field 'disable_ipv6'.
17174 * dirmngr/dirmngr.c (oDisableIPv6): New const.
17175 (opts): New option --disable-ipv6.
17176 (parse_rereadable_options): Set that option.
17177 * dirmngr/dns-stuff.c (opt_disable_ipv6): New var.
17178 (set_dns_disable_ipv6): New.
17179 (resolve_name_standard): Make use of it.
17180 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Take care of
17182 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
17183 (send_request): Ditto.
17184 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
17185 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
17187 dirmngr,w32: Silence the 'certificate already cached' message.
17188 + commit fce36d7ec87be14b874813db277781c87a64ea87
17189 * dirmngr/certcache.c (load_certs_from_w32_store): Silenece an info
17192 dirmngr: Handle EIO which is sometimes returned by cookie functions.
17193 + commit cc32ddbcba8c53d3e2cad952d72f62dc73911042
17194 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Handle EIO.
17196 dirmngr: Always print a warning for a missing /etc/hosts.
17197 + commit 35c843c815306f36d1efbc52f5e2f6bac3f67aec
17198 * dirmngr/dns-stuff.c (libdns_init): No Windows specific handling of a
17199 missing /etc/hosts.
17201 dirmngr: Do not assume that /etc/hosts exists.
17202 + commit 5d873f288e86edfb684f4dd57ac36466b06494a4
17203 * dirmngr/dns-stuff.c (libdns_init): Do not bail out.
17205 po: Update the German translation.
17206 + commit c7be01dae914c183dd99bd531a388c794d858c61
17209 gpgconf: Add --enable-extended-key-format for the agent.
17210 + commit d23052b04ebb0ac731aa351650c4084f080c640b
17211 * tools/gpgconf-conf.c: Add option.
17212 * agent/gpg-agent.c (main) <aGPGConfList>: Add option.
17214 2017-04-03 Justus Winter <justus@g10code.com>
17216 gpgscm: Slightly improve the procedure dispatch.
17217 + commit 90932bdad607d06f4f040e3457caddba79ba8b7e
17218 * tests/gpgscm/scheme.c (procnum): Procedures always have an integer
17219 number, so we can safely use the cheaper 'ivalue_unchecked'.
17221 2017-04-03 Werner Koch <wk@gnupg.org>
17223 gpg: Handle critical marked 'Reason for Revocation'.
17224 + commit 3f6d949011f485613bb4bd3e06a2643be79cce40
17225 * g10/parse-packet.c (can_handle_critical): Add
17226 SIGSUBPKT_REVOC_REASON.
17228 2017-04-02 Werner Koch <wk@gnupg.org>
17230 agent: Use OCB for key protection with --enable-extended-key-format.
17231 + commit d24375271b97e45deaeb1ef0a8434c64066ba2e8
17232 * agent/protect.c (PROT_DEFAULT_TO_OCB): Remove macro.
17233 (agent_protect): Make the default protection mode depend on the extend
17236 2017-04-01 Werner Koch <wk@gnupg.org>
17238 kbx: Unify blob reading functions.
17239 + commit 0039d7107bcdfce6f3b02b46ff0495cfba07882a
17240 * kbx/keybox-file.c (_keybox_read_blob): Remove.
17241 (_keybox_read_blob2): Rename to ....
17242 (_keybox_read_blob): this. Make arg options. Change all callers.
17243 * kbx/keybox-search.c (keybox_search): Factor fopen call out to ...
17245 (keybox_seek): Als use open_file.
17247 2017-03-31 Werner Koch <wk@gnupg.org>
17249 gpg: Avoid multiple open calls to the keybox file.
17250 + commit 5556eca5acd46983bff0b38a1ffbc2f07fbaba9f
17251 * g10/keydb.h (KEYDB_HANDLE): Move typedef to ...
17253 (struct server_control_s): Add field 'cached_getkey_kdb'.
17254 * g10/gpg.c (gpg_deinit_default_ctrl): Release that keydb handle.
17255 * g10/getkey.c (getkey_end): Cache keydb handle.
17256 (get_pubkey): Use cached keydb handle.
17257 * kbx/keybox-search.c (keybox_search_reset): Use lseek instead of
17260 gpg: Pass CTRL also to getkey_end.
17261 + commit aca5f494a88776d4974bfa9b0b65cb60c1b42040
17262 * g10/getkey.c (getkey_end): Add arg CTRL. Change all callers.
17264 gpg: Print more stats for the keydb and the signature cache.
17265 + commit 3a10de3bfd785aefb0150e82b6dbbc7cb9f208c8
17266 * g10/sig-check.c (sig_check_dump_stats): New.
17267 (cache_stats): New struct.
17268 (check_key_signature2): Update stats.
17269 * g10/gpg.c (g10_exit): Call new function.
17270 * g10/keydb.c (kid_not_found_cache_count): Replace by ...
17271 (kid_not_found_stats): ... new struct. Change users.
17272 (keydb_stats): New struct. Update the counters.
17273 (keydb_dump_stats): Print all stats.
17275 gpg: Assert that an opaque parameter is really what we expect.
17276 + commit 52ba5e67cad4311d0ddbc4f2979e20afd0161d1f
17277 * g10/gpg.h (SERVER_CONTROL_MAGIC): New const.
17278 (server_control_s): Add field 'magic'.
17279 * g10/gpg.c (gpg_init_default_ctrl): Init MAGIC.
17280 * g10/import.c (impex_filter_getval): Assert MAGIC.
17282 2017-03-30 Justus Winter <justus@g10code.com>
17284 gpg: Consistent use of preprocessor conditionals.
17285 + commit 5e89144cbca36c1e7eb814b3aad4b7c46cd4efbf
17286 * g10/parse-packet.c: Use '#if' instead of '#ifdef' when checking
17287 DEBUG_PARSE_PACKET. This fixes the build with '#define
17288 DEBUG_PARSE_PACKET 0'.
17290 common: Avoid undefined behavior.
17291 + commit 214fa9012296d796b78f1a3106d656639cf50aef
17292 * common/iobuf.c (iobuf_read_line): Do not consider 'length' if
17295 2017-03-30 Werner Koch <wk@gnupg.org>
17297 gpg: Remove the use of the signature information from a KBX.
17298 + commit a6142dbdbc5783043deb847dc64998c421860941
17299 * g10/keydb.c (keyblock_cache): Remove field SIGSTATUS.
17300 (keyblock_cache_clear): Adjust for that removal.
17301 (parse_keyblock_image): Remove arg SIGSTATUS. Remove the signature
17302 cache setting; this is now done in the parser.
17303 (keydb_get_keyblock): Do not set SIGSTATUS.
17304 (build_keyblock_image): Remove arg SIGSTATUS and simplify. Change
17306 * kbx/keybox-blob.c: Explain that the signature information is not
17308 (_keybox_create_openpgp_blob): Remove arg SIGSTATUS and change
17310 * kbx/keybox-search.c (keybox_get_keyblock): Remove arg R_SIGSTATUS
17311 and change callers.
17312 * kbx/keybox-update.c (keybox_insert_keyblock): Likewise.
17314 gpg: Fix actual leak and possible leaks in the packet parser.
17315 + commit 7bf24e8146116a30c4c9d7b6dbf8bbb27fc35971
17316 * g10/packet.h (struct parse_packet_ctx_s): Change LAST_PKT deom a
17317 pointer to its struct.
17318 (init_parse_packet): Adjust for LAST_PKT not being a pointer.
17319 * g10/parse-packet.c (parse): Ditto. Free the last packet before
17320 storing a new one in case of a deep link.
17321 (parse_ring_trust): Adjust for LAST_PKT not being a pointer.
17322 * g10/free-packet.c (free_packet): Ditto.
17323 * g10/t-keydb-get-keyblock.c (do_test): Release keyblock.
17325 gpg: Fix export porting of zero length user ID packets.
17326 + commit 64665404e43051fa50ee030766347e24b7d1e4d5
17327 * g10/build-packet.c (do_user_id): Avoid indeterminate length header.
17329 gpg: Revamp reading and writing of ring trust packets.
17330 + commit a8895c99a7d0750132477d80cd66caaf3a709113
17331 * g10/parse-packet.c (parse_trust): Rename to ...
17332 (parse_ring_trust): this. Change args and implement new ring trust
17334 (parse): Add special ring trust packet handling.
17335 * g10/packet.h (PKT_user_id): New fields KEYUPDATE, UPDATEURL, and
17337 (PKT_public_key): Ditto.
17338 (RING_TRUST_SIG, RING_TRUST_KEY, RING_TRUST_UID): New consts.
17339 (PKT_ring_trust): New.
17340 (struct packet_struct): Remove member RING_TRUST.
17341 (strcu parse_packet_ctx_s): Add field SKIP_META.
17342 (init_parse_packet): Init SKIPT_META.
17343 * g10/free-packet.c (release_public_key_parts): Free UDPATEURL.
17344 (free_user_id): Ditto.
17345 * g10/mainproc.c (list_node): Remove printing of non-documented "rtv"
17347 * g10/build-packet.c (build_packet_and_meta): New.
17348 (do_ring_trust): New.
17349 * g10/export.c (write_keyblock_to_output): Use build_packet_and_meta
17351 (do_export_one_keyblock): Ditto.
17352 * g10/import.c (read_block): Add arg WITH_META. Skip ring trust
17353 packets if that ism not set.
17354 (import): Call read_block WITH_META in restore mode.
17355 * g10/keydb.h (KEYSRC_UNKNOWN, KEYSRC_FILE, KEYSRC_KS, KEYSRC_PREF_KS)
17356 (KEYSRC_WKD, KEYSRC_WKD_SD, KEYSRC_DANE): New constants. They are not
17358 * g10/keydb.c (parse_keyblock_image): Allow ring trust packets.
17359 (build_keyblock_image): Ditto. Use build_packet_and_meta.
17360 * g10/keyring.c (keyring_get_keyblock): Remove specila treatment of
17361 ring trust packets.
17362 (write_keyblock): Use build_packet_and_meta. Remove special treatment
17363 of ring trust packets and initialization of the signature caches.
17365 2017-03-29 Werner Koch <wk@gnupg.org>
17367 gpg: Extend free_packet to handle a packet parser context.
17368 + commit afa86809087909a8ba2f9356588bf90cc923529c
17369 * g10/packet.h (struct parse_packet_ctx_s): Add fields LAST_PKT and
17371 (init_parse_packet): Clear them.
17372 (deinit_parse_packet): New macro. Change all users if
17373 init_parse_packet to also call this macro.
17374 * g10/free-packet.c (free_packet): Add arg PARSECTX and handle shallow
17375 packet copies in the context. Change all callers.
17376 * g10/parse-packet.c (parse): Store certain packets in the parse
17379 gpg: Change parse_packet to take a context.
17380 + commit 0526c99164d3531b5ec763ffc672407eb24b2296
17381 * g10/packet.h (struct parse_packet_ctx_s): New.
17382 (parse_packet_ctx_t): New type.
17383 (init_parse_packet): New macro.
17384 * g10/parse-packet.c (parse_packet, dbg_parse_packet): Change to take
17385 a parse context. Change all callers to provide a context instead of
17386 directly supplying the input stream.
17387 (search_packet, dbg_search_packet): Ditto.
17388 (copy_all_packets, dbg_copy_all_packets): Init an use a parse context.
17389 (copy_some_packets, dbg_copy_some_packets): Ditto.
17390 (skip_some_packets, dbg_skip_some_packets): Ditto.
17392 gpg: Export ring trust packets in backup mode.
17393 + commit f5b565a5b8de3f2a3d98bc1a655e18333aee223b
17394 * g10/export.c (write_keyblock_to_output): Export ring trust packets.
17396 2017-03-28 Justus Winter <justus@g10code.com>
17398 tests,w32: Fix importing the extra key for GPGME's keylist test.
17399 + commit b20780658ebb1e1245db18c04db3e815399cf706
17400 * tests/gpgme/wrap.scm: Qualify the tests name with the extension for
17401 executables (if any).
17403 2017-03-28 Werner Koch <wk@gnupg.org>
17405 gpg: Prepare for listing last_update and key origin data.
17406 + commit 4af389c9721fa534ed06a64b80705b631575c775
17407 * g10/keylist.c (list_keyblock_colon): Add empty fields 19 and 20.
17409 2017-03-28 Justus Winter <justus@g10code.com>
17411 tests: Fix distcheck.
17412 + commit 5128cd74c029d57491a79ca9e918c81facdf1b76
17413 * tests/openpgp/Makefile.am (sample_msgs): Add all missing sample
17416 tests: Add test for '--decrypt --unwrap'.
17417 + commit 211d71f19c24da94f4c58014606125c1a29d86a2
17418 * tests/openpgp/Makefile.am (XTESTS): Add new test.
17419 * tests/openpgp/decrypt-unwrap-verify.scm: New file.
17421 g10: Fix memory leak.
17422 + commit 6d3edfd972c1114f43f6b35773dc25e0256f48f4
17423 * g10/decrypt-data.c (decrypt_data): Free 'filename'.
17425 2017-03-27 Justus Winter <justus@g10code.com>
17427 common: Fix connecting to the agent.
17428 + commit caf00915532e6e8e509738962964edcd14fb0654
17429 * common/homedir.c (_gnupg_socketdir_internal): Fix error handling.
17431 2017-03-27 NIIBE Yutaka <gniibe@fsij.org>
17433 g10: Support specifying SERIALNO for --card-status.
17434 + commit c1e6302b347caf852a056b9c721469ccb51f44da
17435 * g10/gpg.c (main): Allow an argument for --card-status.
17436 * g10/card-util.c (current_card_status): Rename from card_status.
17437 (card_status): New, which supports multiple cards.
17438 (get_one_name): Use current_card_status.
17440 scd: Change the order of applications when accessed.
17441 + commit d58275703f035e8cfd58cd1c2d0d5ac7dc59e110
17442 * scd/app.c (select_application): Move the app to top.
17444 scd: Fix timeout handling for key generation.
17445 + commit 0848cfcce738150b53bfb65b78efc1e6dc9f3d26
17446 * scd/ccid-driver.c (CCID_CMD_TIMEOUT): Back to original value.
17447 (CCID_CMD_TIMEOUT_LONGER): New.
17448 (ccid_transceive): Add kludge for key generation.
17450 2017-03-24 Werner Koch <wk@gnupg.org>
17452 gpg: Improve check for already compressed packets.
17453 + commit 0b3770c421a35b64823a805fa8d49ddd5c653d50
17454 * common/miscellaneous.c (is_openpgp_compressed_packet): New.
17455 (is_file_compressed): Rerad 2 more bytes and call new function.
17457 agent: New option --enable-extended-key-format.
17458 + commit 2c237c13628a88ba23742da34ea18d3e205d7c53
17459 * agent/gpg-agent.c (oEnableExtendedKeyFormat): New const.
17460 (opts): New option --enable-extended-key-format.
17461 (parse_rereadable_options): Set option
17462 * agent/findkey.c (write_extended_private_key): Add arg 'update'.
17463 (agent_write_private_key): Implement new option.
17465 agent: New option --stub-only for DELETE_KEY.
17466 + commit 6fab7bba879d7794e32112cf3eddd8d87130a5d7
17467 * agent/findkey.c (agent_delete_key): Add arg 'only_stubs'.
17468 * agent/command.c (cmd_delete_key): Add option --stub-only.
17470 2017-03-23 Werner Koch <wk@gnupg.org>
17472 common: Implicitly do a gpgconf --create-socketdir.
17473 + commit 26086b362ff47d21b1abefaf674a6464bf0a8921
17474 * common/homedir.c (_gnupg_socketdir_internal): Create the
17477 tests: Use gpgconf to stop the agent.
17478 + commit 2c9d9ac55ea455a5ec26428989dced0311ed46cc
17479 * tests/openpgp/defs.scm (stop-agent): Swap order of actions. Kill
17480 all daemons using gpgconf.
17481 * tools/gpgconf.c (main) <aRemoveSocketDir>: Try to remove known
17482 socketfails on rmdir failure. Do no fail for ENONET.
17484 2017-03-23 Justus Winter <justus@g10code.com>
17486 gpgscm: Make test cleanup more robust.
17487 + commit 178b6314ab2d2268873067314744c8af74dc331e
17488 * tests/gpgscm/tests.scm (mkdtemp-autoremove): New function that
17489 cleans up at interpreter shutdown.
17490 (run-tests-parallel): Use the new function.
17491 (run-tests-sequential): Likewise.
17492 (make-environment-cache): Execute setup with an temporary working
17495 2017-03-21 Justus Winter <justus@g10code.com>
17497 tests: Test '--quick-set-primary-uid'.
17498 + commit fde885bbc47a4bf14a8570ac62e68adc8cf47a6e
17499 * tests/openpgp/quick-key-manipulation.scm: Test
17500 '--quick-set-primary-uid'.
17502 tests,w32: Use GetTempPath to get the path for temporary files.
17503 + commit d17840c3f40111beaf97d96ad3ca52047976e221
17504 * tests/gpgscm/ffi.c (do_get_temp_path): New function.
17505 (ffi_init): Make function available.
17506 * tests/gpgscm/tests.scm (mkdtemp): Use the new function.
17508 2017-03-21 Werner Koch <wk@gnupg.org>
17510 gpg: New command --quick-set-primary-uid.
17511 + commit 74c1f30ad6616186f0ab9dbaf34db6c17b1e40c4
17512 * g10/gpg.c (aQuickSetPrimaryUid): New const.
17513 (opts): New command --quick-set-primary-uid.
17514 (main): Implement it.
17515 * g10/keyedit.c (keyedit_quick_adduid): Factor some code out to ...
17516 (quick_find_keyblock): new func.
17517 (keyedit_quick_revuid): Use quick_find_keyblock.
17518 (keyedit_quick_set_primary): New.
17520 2017-03-21 Justus Winter <justus@g10code.com>
17522 dirmngr: Fix error handling.
17523 + commit 483c1288a8f86dc6bf93d0d3f2865ecc246aecba
17524 * dirmngr/dns-stuff.c (libdns_init): Convert error before printing it.
17526 dirmngr: Load the hosts file into libdns.
17527 + commit 88f1505f0613894d5544290a170119eb538921e5
17528 * dirmngr/dns-stuff.c (libdns_init): Actually load the hosts file into
17531 tests: Create temporary directories in '/tmp'.
17532 + commit 06f1f163e96f1039304fd3cf565cf9de1ca45849
17533 * tests/gpgscm/tests.scm (mkdtemp): Create temporary directories in
17534 '/tmp' on UNIX, or in '%Temp' on Windows.
17535 * tests/migrations/common.scm (run-test): Turn error into a warning.
17536 * tests/openpgp/defs.scm (start-agent): Likewise.
17538 2017-03-20 Justus Winter <justus@g10code.com>
17540 tests: Remove debugging remnants.
17541 + commit ceb4b245752bb1fb43fde7e99f8d904ab8a9b5e2
17542 * tests/gpgme/gpgme-defs.scm (run-python-tests?): Remove 'trace's.
17544 tests: Fail if we cannot create the socket directory.
17545 + commit d75d20909d9f60d33ffd210def92278c0f383aad
17546 * tests/migrations/common.scm (run-test): Turn warning into an error.
17547 * tests/openpgp/defs.scm (start-agent): Likewise.
17549 2017-03-20 Werner Koch <wk@gnupg.org>
17551 gpg: Add new field no 18 to the colon listing.
17552 + commit fe0b37e123ded51cc5f4cb5e3547fdfbce37a43e
17553 * g10/misc.c (gnupg_pk_is_compliant): New.
17554 * g10/keylist.c (print_compliance_flags): New.
17555 (list_keyblock_colon): Call it here.
17556 * sm/keylist.c (print_compliance_flags): New.
17557 (list_cert_colon): Call it here.
17559 gpg: Remove unused stuff.
17560 + commit e2c63a13e2fa4ce39af8471a34c06d73ff3ee6f6
17561 * g10/OPTIONS: Remove.
17562 * g10/options.h (struct opt): Remove 'shm_coprocess'.
17564 2017-03-17 Neal H. Walfield <neal@g10code.com>
17566 tests: Add test for issue 2959.
17567 + commit fb9d68d636490ca88925051f48b08963c324aed1
17568 * tests/openpgp/tofu.scm: Add test for --tofu-default-policy=ask.
17570 gpg: Make sure the conflict set includes the current key.
17571 + commit b1106b4d640325c60a7212a4a44e4f67c0e3312d
17572 * g10/tofu.c (get_trust): Sanity check CONFLICT_SET after calling
17573 get_policy. If POLICY is 'auto' and the default policy is 'ask', make
17574 sure CONFLICT_SET includes the current key.
17576 2017-03-17 Werner Koch <wk@gnupg.org>
17578 dirmngr: Ignore warning alerts in the GNUTLS handshake.
17579 + commit 69c521df422a6c9a6b0a93e45c9373a8b6ceb28e
17580 * dirmngr/http.c (send_request) [GNUTLS]: Don't bail out on warning
17583 2017-03-17 Justus Winter <justus@g10code.com>
17585 gpgscm: Simplify hash tables.
17586 + commit 6a3f857224eab108ae38e6259194b01b0ffdad8b
17587 * tests/gpgscm/scheme.c (oblist_add_by_name): We now always get a
17588 slot. Simplify accordingly.
17589 (oblist_find_by_name): Always return the slot.
17590 (vector_elem_slot): New function.
17591 (new_slot_spec_in_env): We now always get a slot. Remove parameter
17592 'env'. Simplify accordingly.
17593 (find_slot_spec_in_env): Always return a slot.
17594 (new_slot_in_env): Adapt callsite.
17595 (opexe_0): Likewise.
17596 (opexe_1): Likewise.
17597 (scheme_define): Likewise.
17599 gpgscm: Remove framework for immediate values.
17600 + commit 38c955599f7c6c20faeec57d8e1df7d2c0eeba18
17601 * tests/gpgscm/scheme.c (IMMEDIATE_TAG): Remove macro.
17602 (is_immediate): Likewise.
17603 (set_immediate): Likewise.
17604 (clr_immediate): Likewise.
17605 (enum scheme_types): Set the LSB in every value.
17606 (fill_vector): Adapt.
17607 (vector_elem): Likewise.
17608 (set_vector_elem): Likewise.
17610 (gc): Test for the LSB to tell typeflags apart from pointers stored in
17611 the same memory location.
17613 2017-03-16 NIIBE Yutaka <gniibe@fsij.org>
17615 agent,g10: Remove redundant SERIALNO request.
17616 + commit 8c8ce8711d9c938fcb982b0341e6b052742cb887
17617 * agent/learncard.c (agent_handle_learn): Don't call
17618 agent_card_serialno. Get the serialno in status response.
17619 * g10/call-agent.c (agent_scd_learn): Don't request "SCD SERIALNO".
17620 (agent_scd_serialno): New.
17621 (card_cardlist_cb, agent_scd_cardlist): New.
17623 2017-03-15 Justus Winter <justus@g10code.com>
17625 tests: Fix using tools from the build directory.
17626 + commit a98459d3f4ec3d196fb0adb0e90dadf40abc8c81
17627 * tests/openpgp/defs.scm (gpg-conf'): Explicitly pass the build prefix
17629 (gpg-components): ... instead of only here.
17631 tests: Dump the tools that the tests are going to use.
17632 + commit c7833eca38fdb8d9ba7b59438ea87d651b8bf7ba
17633 * tests/openpgp/setup.scm: Dump the tools that the tests are going to
17634 use. This will help us diagnose problems with the tests picking the
17635 wrong paths in the future.
17637 build: Remove '--disable-tools' configuration option.
17638 + commit 6993e42088c191f18468317ba2b5b8fbc8c3edff
17639 * Makefile.am (SUBDIRS): Unconditionally include 'tools'.
17640 * configure.ac: Remove '--disable-tools' configuration option.
17642 2017-03-15 NIIBE Yutaka <gniibe@fsij.org>
17644 g10: Fix check of serialno.
17645 + commit 61785b679c542bbd789395fa632eb8b5133b01ad
17646 * g10/card-util.c (card_status): Fix.
17648 g10: Remove unused function.
17649 + commit ed3248219e921ee24f6f1b2985abb7e0945d70e9
17650 * g10/call-agent.c (select_openpgp): Remove.
17652 tests: Fix running python condition.
17653 + commit a672ddec03f96475866d712b28be18b3fab43aef
17654 * tests/gpgme/gpgme-defs.scm (run-python-tests?): We need Python.
17656 2017-03-14 Justus Winter <justus@g10code.com>
17658 tests: Skip Python tests if the bindings are not built.
17659 + commit d82abbb1b6e80d5980e6259ddcfc770e65a6b1b3
17660 * tests/gpgme/wrap.scm (python): Move variable...
17661 * tests/gpgme/gpgme-defs.scm (python): ... here.
17662 (run-python-tests?): New function.
17663 * tests/gpgme/run-tests.scm: Only run Python tests if the bindings can
17664 be located in GPGME's build directory.
17666 2017-03-13 Werner Koch <wk@gnupg.org>
17668 gpg: Flush stdout before printing stats with --check-sigs.
17669 + commit 9a77b3b6e41f97b1209ad61c04b3dd33242ecae8
17670 * g10/keylist.c (print_signature_stats): Flush stdout.
17671 (list_keyblock_colon): Use es_flush instead of fflush.
17673 2017-03-09 Justus Winter <justus@g10code.com>
17675 tests: Run the tests for the Python bindings of GPGME.
17676 + commit 046a15a88c83b40a753b4ad7ecc1456efa5b527f
17677 * tests/gpgme/gpgme-defs.scm (create-file): Write lines.
17678 (create-gpgmehome): Extend function to create the right environment
17679 for the Python tests.
17680 * tests/gpgme/run-tests.scm: Make an environment cache for the Python
17681 tests and enable them.
17682 * tests/gpgme/wrap.scm: Do not hardcode the path of the Python
17685 tests: Rework environment setup.
17686 + commit cca91a3f8f7e3e36b7149fc93f7b6df11d21eb1d
17687 * tests/gpgscm/tests.scm (test::scm): Add a setup argument.
17688 (test::binary): Likewise.
17689 (run-tests-parallel): Remove setup parameter.
17690 (run-tests-sequential): Likewise.
17691 (make-environment-cache): New function that handles the cache
17693 * tests/gpgme/run-tests.scm: Adapt accordingly.
17694 * tests/gpgsm/run-tests.scm: Likewise.
17695 * tests/migrations/run-tests.scm: Likewise.
17696 * tests/openpgp/run-tests.scm: Likewise.
17698 2017-03-08 Werner Koch <wk@gnupg.org>
17700 wks: Put stdout into binary mode for Windows at another place.
17701 + commit ed5575ec550ff16b0b901a23c6aa3eb3d47b0575
17702 * tools/wks-util.c (wks_send_mime): Set stdout to binary.
17704 wks: Put stdout into binary mode for Windows.
17705 + commit 5c83759364272b19ceafbef46d057f0430a12698
17706 * tools/send-mail.c (send_mail_to_file): Call es_set_binary.
17708 2017-03-08 Justus Winter <justus@g10code.com>
17710 build: Use macOS' compatibility macros to enable all features.
17711 + commit dd60e868d2bf649a33dc96e207ffd3b8ae4d35af
17712 * configure.ac: On macOS, use the compatibility macros to expose every
17713 feature of the libc. This is the equivalent of _GNU_SOURCE on GNU
17716 g10: Move more flags into the flag bitfield.
17717 + commit 2649fdfff5d9e227025956e015b67502fd4962c4
17718 * g10/packet.h (PKT_user_id): Move 'is_primary', 'is_revoked', and
17719 'is_expired' into the flags bitfield, and drop the prefix.
17720 * g10/call-dirmngr.c: Adapt accordingly.
17721 * g10/export.c: Likewise.
17722 * g10/getkey.c: Likewise.
17723 * g10/import.c: Likewise.
17724 * g10/kbnode.c: Likewise.
17725 * g10/keyedit.c: Likewise.
17726 * g10/keylist.c: Likewise.
17727 * g10/keyserver.c: Likewise.
17728 * g10/mainproc.c: Likewise.
17729 * g10/pkclist.c: Likewise.
17730 * g10/pubkey-enc.c: Likewise.
17731 * g10/tofu.c: Likewise.
17732 * g10/trust.c: Likewise.
17733 * g10/trustdb.c: Likewise.
17735 2017-03-08 Werner Koch <wk@gnupg.org>
17737 dirmngr: Do not put a keyserver into a new dirmngr.conf.
17738 + commit 8f028642239fa992c6c059e3c1b4421a1813c827
17739 * g10/dirmngr-conf.skel: Do not define keyservers.
17741 doc: Add a note to the trust model direct.
17742 + commit f0257b4a86b73f5b956028e68590b6d2a23ea4da
17743 * doc/gpg.texi (GPG Configuration Options): Add note. Chnage Index
17744 from trust-mode:foo to trust-model:foo.
17746 2017-03-07 Justus Winter <justus@g10code.com>
17748 Revert "build: Improve CFLAGS handling."
17749 + commit b71384c8054ce2f245ccfae02b8ee81e1adfc512
17750 This reverts commit 4b57359ef3ce0b87e15889e12ef0fcd23f62dcb4.
17752 build: Improve CFLAGS handling.
17753 + commit 4b57359ef3ce0b87e15889e12ef0fcd23f62dcb4
17754 * configure.ac: Strip any flags matching '-Werror' from CFLAGS before
17755 running the tests, and add them back later on.
17757 2017-03-07 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
17759 gpgscm: Use system strlwr if available.
17760 + commit c22a2a89d3bd3d08b3abb8e4e33df32b480338ec
17761 * tests/gpgscm/scheme.c: Define local strlwr only when HAVE_STRLWR is
17762 not defined in config.h.
17763 * tests/gpgscm/scheme-config.h: Remove hack.
17765 2017-03-07 Justus Winter <justus@g10code.com>
17767 gpg: Do not allow the user to revoke the last valid UID.
17768 + commit 591b6a9d879cbcabb089d89a26d3c3e0306054e1
17769 * g10/keyedit.c (keyedit_quick_revuid): Merge self signatures, then
17770 make sure that we do not revoke the last valid UID.
17771 (menu_revuid): Make sure that we do not revoke the last valid UID.
17772 * tests/openpgp/quick-key-manipulation.scm: Demonstrate that
17773 '--quick-revoke-uid' can not be used to revoke the last valid UID.
17775 2017-03-07 NIIBE Yutaka <gniibe@fsij.org>
17777 tools: Removal of -Icommon.
17778 + commit 80fb1a8a05b2194af16027555b09bbd5d48ec9ac
17779 * tools/gpg-wks-server.c: Follow the change.
17781 More change for common.
17782 + commit d6c7bf1f8ab8899faba2fb81a35b096921c38f3c
17783 * g10, scd, test, tools: Follow the change of removal of -Icommon.
17785 Remove -I option to common.
17786 + commit 70aca95d6816082b289fceca8eabfcf718a6b701
17787 * dirmngr/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/common.
17788 * g10/Makefile.am (AM_CPPFLAGS): Ditto.
17789 * g13/Makefile.am (AM_CPPFLAGS): Ditto.
17790 * kbx/Makefile.am (AM_CPPFLAGS): Ditto.
17791 * scd/Makefile.am (AM_CPPFLAGS): Ditto.
17792 * sm/Makefile.am (AM_CPPFLAGS): Ditto.
17793 * tools/Makefile.am (AM_CPPFLAGS): Ditto.
17794 * Throughout: Follow the change.
17796 2017-03-07 Justus Winter <justus@g10code.com>
17798 tests: Avoid overflowing signed 32 bit time_t.
17799 + commit de3838372ae3cdecbd83eea2c53c8e2656d93052
17800 * tests/openpgp/quick-key-manipulation.scm: Use expiration times in
17801 the year 2038 instead of 2105 to avoid overflowing 32 bit time_t.
17802 time_t is used internally to parse the expiraton time from the iso
17805 2017-03-07 NIIBE Yutaka <gniibe@fsij.org>
17807 agent: Resolve conflict of util.h.
17808 + commit 176e07ce10d892fa7c7b96725b38b2fec9a1f916
17809 * agent/Makefile.am (AM_CPPFLAGS): Remove -I$(top_srcdir)/common.
17810 * agent/call-pinentry.c, agent/call-scd.c: Follow the change.
17811 * agent/command-ssh.c, agent/command.c, agent/cvt-openpgp.c: Ditto.
17812 * agent/divert-scd.c, agent/findkey.c, agent/genkey.c: Ditto.
17813 * agent/gpg-agent.c, agent/pksign.c, agent/preset-passphrase.c: Ditto.
17814 * agent/protect-tool.c, agent/protect.c, agent/trustlist.c: Ditto.
17815 * agent/w32main.c: Ditto.
17817 agent: Add include files.
17818 + commit bf03925751abb739f2fd9d631694d3dd33decf92
17819 * agent/command-ssh.c: Add sys/socket.h and sys/un.h.
17821 agent: Fix get_client_pid for portability.
17822 + commit f7f806afa5083617f4aba02fc3b285b06a7d73d4
17823 * configure.ac: Simply check getpeerucred and ucred.h, and structure
17825 * agent/command-ssh.c: Include ucred.h.
17826 (get_client_pid) [HAVE_STRUCT_SOCKPEERCRED_PID]: Use sockpeercred
17827 structure for OpenBSD.
17828 [LOCAL_PEERPID]: Use LOCAL_PEERPID for macOS.
17829 [LOCAL_PEEREID]: Use LOCAL_PEEREID for NetBSD.
17830 [HAVE_GETPEERUCRED]: Use getpeerucred for OpenSolaris.
17832 common: Fix warning for portability.
17833 + commit b9ab733fc0dd2ca2a7eaac0bde3a817c07af36c5
17834 * common/localename.c (do_nl_locale_name): We don't use CATEGORY.
17836 tools: More portable for openpty use.
17837 + commit ce37ada87139ef418401f9f35439007a8c04a856
17838 * configure.ac (AC_CHECK_HEADERS): Add util.h libutil.h and termios.h.
17839 * tools/symcryptrun.c: Include those headers.
17841 scd: Close THE_EVENT handle.
17842 + commit cc933a96f8e83bc66fb69ed33d9593acdd60c929
17843 * scd/scdaemon.c (handle_connections): Close the handle.
17845 2017-03-06 Justus Winter <justus@g10code.com>
17847 tests: Harmonize temporary and socket directory handling.
17848 + commit 7e19786a5ddef637d1d9d21593fecf5a36b6f372
17849 * tests/gpgscm/tests.scm (mkdtemp): Do not magically obey the
17850 environment variable 'TMP', make sure to always return an absolute
17852 * tests/gpgme/Makefile.am (TMP): Drop variable.
17853 (TESTS_ENVIRONMENT): Drop 'TMP'.
17854 * tests/gpgme/gpgme-defs.scm (create-gpgmehome): Start the agent. Do
17855 not create private key store, the agent does that for us.
17856 * tests/gpgsm/Makefile.am (TMP): Drop variable.
17857 (TESTS_ENVIRONMENT): Drop 'TMP'.
17858 * tests/gpgme/gpgme-defs.scm (create-gpgsmhome): Start the agent. Do
17859 not create private key store, the agent does that for us.
17860 * tests/migrations/Makefile.am (TMP): Drop variable.
17861 (TESTS_ENVIRONMENT): Drop 'TMP'.
17862 * tests/migrations/common.scm (gpgconf): New variable.
17863 (run-test): Create and remove socket directory.
17864 * tests/migrations/extended-pkf.scm (src-tarball): Remove variable.
17865 (setup): Remove function.
17866 (trigger-migration): Likewise.
17867 Use 'run-test' to execute the test.
17868 * tests/migrations/from-classic.scm (src-tarball): Remove variable.
17869 (setup): Remove function.
17870 Use 'run-test' to execute the tests.
17871 * tests/openpgp/Makefile.am (TMP): Drop variable.
17872 (TESTS_ENVIRONMENT): Drop 'TMP'.
17873 * tests/openpgp/README: Do not mention 'TMP'.
17874 * tests/openpgp/defs.scm (with-home-directory): New macro.
17875 (create-legacy-gpghome): Do not create private key store, the agent
17877 (start-agent): Make sure to terminate the right agent with 'atexit'.
17879 gpgscm: Fix creation of temporary directories.
17880 + commit 171e4314ebd3ff74af3dcdc8bd68e1100e8910ea
17881 * tests/gpgscm/ffi.c (do_mkdtemp): Use a larger buffer for the
17884 2017-03-06 Werner Koch <wk@gnupg.org>
17886 wks: Set published keys world-readable.
17887 + commit e3589110e01dc6ad04463351ec2ce17201556d09
17888 * tools/gpg-wks-server.c (check_and_publish): Set the permissions.
17890 gpg: Fix attempt to double free an UID structure.
17891 + commit 4a130bbc2c2f4be6e8c6357512a943f435ade28f
17892 * g10/getkey.c (get_best_pubkey_byname): Set released .UID to NULL.
17894 2017-03-06 NIIBE Yutaka <gniibe@fsij.org>
17896 scd: Fix compiler warnings for app-openpgp.c.
17897 + commit e6ca015ae182a6dbb0466441efc17c99683e9375
17898 * scd/app-openpgp.c (retrieve_key_material): Remove touching I.
17899 (do_change_pin): Make sure going to leave if PINVALUE == 0.
17900 (rsa_writekey): Emit simpler log.
17902 scd: More cleanup of old code.
17903 + commit 9bf39ed75ddbd35908bcd0996f55325ff801619a
17904 * scd/app-dinsig.c (do_sign): Remove assignment to HASHALGO.
17905 * scd/app-p15.c (parse_keyusage_flags): Remove assign to MASK.
17906 (read_ef_aodf): Likewise.
17907 (read_ef_cdf): Change the control to parse_error.
17908 * scd/app-sc-hsm.c (parse_keyusage_flags): Remove assign to MASK.
17909 (read_ef_prkd): Remove assign to S.
17910 (read_ef_prkd): Check if PRKDF is not null.
17911 (read_ef_cd): Likewise for CDF.
17913 scd: Clean up old code.
17914 + commit cb6337329d3c858c695a7e56e2fc31d9d50ca3fe
17915 * scd/apdu.c (CT_init, CT_data, CT_close): Remove.
17916 (ct_error_string, ct_activate_card, close_ct_reader, reset_ct_reader)
17917 (ct_get_status, ct_send_apdu, open_ct_reader): Remove.
17918 (new_reader_slot) [NEED_PCSC_WRAPPER]: Remove fd and pid handling.
17919 (writen, readn): Remove.
17920 (pcsc_get_status, pcsc_send_apdu, control_pcsc, close_pcsc_reader)
17921 (reset_pcsc_reader, open_pcsc_reader): Only DIRECT version.
17922 (apdu_open_one_reader): Remove CT_api handling.
17923 (apdu_get_status_internal, send_le): Fix to stop warnings.
17925 scd: Fix API of select_file/_path.
17926 + commit 0703de01c8fbc417a99ecf8e950fc306b8c8ac9c
17927 * scd/iso7816.c (iso7816_select_file, iso7816_select_path): Remove
17929 * scd/app-dinsig.c (do_readcert): Follow the change.
17930 * scd/app-help.c (app_help_read_length_of_cert): Likewise.
17931 * scd/app-nks.c (keygripstr_from_pk_file, do_readcert, do_readkey)
17932 (switch_application): Likewise.
17933 * scd/app-p15.c (select_and_read_binary, select_ef_by_path)
17934 (micardo_mse, app_select_p15): Likewise.
17935 * scd/app.c (app_new_register): Likewise.
17937 agent: For SSH, robustly handling scdaemon's errors.
17938 + commit 4ce4f2f683a17be3ddb93729f3f25014a97934ad
17939 * agent/command-ssh.c (card_key_list): Return 0 when
17940 agent_card_serialno returns an error.
17941 (ssh_handler_request_identities): Handle errors for card listing
17942 and proceed to other cases.
17944 2017-03-03 Werner Koch <wk@gnupg.org>
17946 dirmngr: Fix commit de6d8313.
17947 + commit 67c203b6bf8d6dd489ceef3391f609986e7b7a49
17948 * dirmngr/http-common.c (get_default_keyserver): Fix assert.
17950 2017-03-03 NIIBE Yutaka <gniibe@fsij.org>
17952 scd: Fix scd_kick_the_loop.
17953 + commit f9acc7d18bb90f47dafe7e32ae92f567756d6b12
17954 * scd/scdaemon.c (notify_fd): Remove.
17955 (the_event) [W32]: New.
17956 (main_thread_pid) [!W32]: New.
17957 (handle_signal): Handle SIGCONT.
17958 (scd_kick_the_loop): Use signal on UNIX and event on Windows.
17959 (handle_connections): Likewise.
17961 2017-03-03 Werner Koch <wk@gnupg.org>
17963 gpg: Fix possible segv when attribute packets are filtered.
17964 + commit 5f6f3f5cae8a95ed469129f9677782c17951dab3
17965 * g10/import.c (impex_filter_getval): Handle PKT_ATTRIBUTE the same as
17967 (apply_drop_sig_filter): Ditto.
17969 gpg: Add new variables to the import and export filters.
17970 + commit 1813f3be23bdab5a42070424c47cb8daa9d9e6b7
17971 * g10/import.c (impex_filter_getval): Add new variables "expired",
17972 "revoked", and "disabled".
17974 2017-03-02 Werner Koch <wk@gnupg.org>
17976 tools: Fix compile error with older gcc versions.
17977 + commit b1f48da02b474e985161aa2778d7b602a13c4292
17978 * tools/mime-parser.h: Include rfc822parse.h.
17979 (struct rfc822parse_context): Remove duplicate definition.
17981 dirmngr: Rearrange files to fix de6d831.
17982 + commit 1890896fe698c55d15160a53aa6c5c22dc424031
17983 * dirmngr/http-common.c: New.
17984 * dirmngr/http-common.h: New.
17985 * dirmngr/Makefile.am (dirmngr_SOURCES): Add them.
17986 (t_http_SOURCES): Add them.
17987 (t_ldap_parse_uri_SOURCES): Add them.
17988 * dirmngr/misc.c (get_default_keyserver): Move to ...
17989 * dirmngr/http-common.c: here.
17990 * dirmngr/http.c: Include http-common.h instead of misc.h.
17991 * dirmngr/http-ntbtls.c: Ditto.
17993 dirmngr: Let --gpgconf-list return the default keyserver.
17994 + commit de6d8313f6df32aaa151bee74e1db269ac1e0fed
17995 * dirmngr/misc.c (get_default_keyserver): New.
17996 * dirmngr/http.c: Include misc.h
17997 (http_session_new): Use get_default_keyserver instead of hardwired
17998 "hkps.pool.sks-keyservers.net".
17999 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Ditto.
18000 * dirmngr/dirmngr.c (main) <aGPGCongList>: Return default keyserver.
18002 2017-03-02 Justus Winter <justus@g10code.com>
18004 gpg: Always initialize the trust db when generating keys.
18005 + commit 0c4d0620d327e8a2069532a5519afefe867a47d6
18006 * g10/gpg.c (main): Always initialize the trust db when generating
18008 * g10/keygen.c (do_generate_keypair): We can now assume that there is
18011 gpg: Fix (quick) key generation with --always-trust.
18012 + commit 4735ab96aa5577d40ba7b3f72d863057198cc6a7
18013 * g10/keygen.c (do_generate_keypair): Only update the ownertrust if we
18014 do have a trust database.
18015 * g10/trustdb.c (have_trustdb): New function.
18016 * g10/trustdb.h (have_trustdb): New prototype.
18017 * tests/openpgp/quick-key-manipulation.scm: Remove workaround.
18019 2017-03-02 Werner Koch <wk@gnupg.org>
18021 agent: Improve error message for the KEYTOCARD command.
18022 + commit d6f0f368763006abf08818bfefcd32ecedb5c20a
18023 * agent/command.c (cmd_keytocard): Always use leave_cmd. Simplify
18024 timestamp checking and do an early test with an appropriate error
18027 2017-03-02 Justus Winter <justus@g10code.com>
18029 g10: Signal an error when trying to revoke non-existant UID.
18030 + commit 62d21a4ab4029b32ea129f1cf3a0e1f22e2fb7b0
18031 * g10/keyedit.c (keyedit_quick_revuid): Signal an error when trying to
18032 revoke non-existant UID.
18033 * tests/openpgp/quick-key-manipulation.scm: Test that.
18035 tests: Log information about ssh, add comments to test.
18036 + commit 74cb3b230c1f99afc5fd09bccc24186a63b154b0
18037 * tests/openpgp/ssh-import.scm (ssh-version-string): New variable, and
18038 log the binary and version used in the test.
18039 (ssh-supports?): Document how we test what algorithms are supported by
18040 ssh, and log ssh-keygen's replies.
18042 common,tools: Always escape newlines when escaping data.
18043 + commit e064c75b08a523f738108428fe0c417a46e66238
18044 * common/stringhelp.c (do_percent_escape): Always escape newlines.
18045 * tools/gpgconf-comp.c (gc_percent_escape): Likewise.
18047 2017-03-01 Werner Koch <wk@gnupg.org>
18050 + commit 4a28c212b35739ce951bd41cfc6ef1a215846b2e
18053 build: Add kludge for "make distcheck" in a release build.
18054 + commit 246b27921b5dc34f367d879402725784aaee2494
18055 * configure.ac: New option --enable-gnupg-builddir-envvar.
18056 (ENABLE_GNUPG_BUILDDIR_ENVVAR): New ac_define.
18057 * common/homedir.c (gnupg_set_builddir_from_env): Consider
18058 ENABLE_GNUPG_BUILDDIR_ENVVAR.
18059 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Rename to ...
18060 (AM_DISTCHECK_CONFIGURE_FLAGS): this to be future proof. Add option
18061 --enable-gnupg-builddir-envvar.
18063 2017-03-01 Yuri Chornoivan <yurchor@ukr.net>
18065 po: Update Ukrainian translation.
18066 + commit c7f2a59833728e99e00449da2ddb10cf66693e7e
18069 2017-03-01 Ineiev <ineiev@gnu.org>
18071 po: Update Russian translation.
18072 + commit 280c724fe26bfd861ac74abc71e221795d8947f0
18075 2017-03-01 Werner Koch <wk@gnupg.org>
18077 gpg: Make --export-options work with --export-secret-keys.
18078 + commit 891ab23411b7f20ef37d8bde81d9857b083235df
18079 * g10/export.c (export_seckeys): Add arg OPTIONS and pass it to
18081 (export_secsubkeys): Ditto.
18082 * g10/gpg.c (main): Pass opt.export_options to export_seckeys and
18085 gpg: Allow creating keys using an existing ECC key.
18086 + commit 2bbdeb8ee87a6c7ec211be16391a11b7c6030bed
18087 * common/sexputil.c (get_pk_algo_from_canon_sexp): Remove arg R_ALGO.
18088 Change to return the algo id. Reimplement using get_pk_algo_from_key.
18089 * g10/keygen.c (check_keygrip): Adjust for change.
18090 * sm/certreqgen-ui.c (check_keygrip): Ditto.
18092 2017-02-28 Werner Koch <wk@gnupg.org>
18094 gpg: Do not require a trustdb for decryption.
18095 + commit e182542e90cbeff4f2ac6c8d71061356d7cdcdea
18096 * g10/trustdb.c (init_trustdb): Add and implement arg NO_CREATE.
18097 Change to return an error code. Change all callers to to pass False
18099 (tdb_get_ownertrust): New arg NO_CREATE. Call init_trustdb to test
18100 for a non-existing trustdb. Change all callers to to pass False for
18102 (tdb_get_min_ownertrust): Ditto.
18103 * g10/trust.c (get_ownertrust_with_min): Add arg NO_CREATE. Call
18104 init_trustdb for a quick check.
18105 (get_ownertrust_info): Add arg NO_CREATE.
18106 (get_ownertrust_string): Ditto.
18107 * g10/gpgv.c (get_ownertrust_info): Adjust stub.
18108 * g10/test-stubs.c (get_ownertrust_info): Ditto.
18109 * g10/mainproc.c (list_node): Call get_ownertrust_info with NO_CREATE
18111 * g10/pubkey-enc.c (get_it): Ditto.
18113 2017-02-28 Justus Winter <justus@g10code.com>
18115 gpgscm: Improve parsing.
18116 + commit e4583ae14e52482ab390c102d071755f91ab211d
18117 * tests/gpgscm/scheme.c (port_increment_current_line): Avoid creating
18118 the same integer if the delta is zero. This happens a lot during
18119 parsing, and puts pressure on the memory allocator.
18121 gpgscm: Fix calculating the line number.
18122 + commit 058c97f9fc485405246b1adfcc905c1891550652
18123 * tests/gpgscm/scheme.c (opexe_5): Only increment the line number on
18126 gpg,tools: Make auto-key-retrieve configurable via gpgconf.
18127 + commit d379a0174cca595204b32da9a66c513a1304e6d0
18128 * g10/gpg.c (gpgconf_list): Add 'auto-key-retrieve'.
18129 * tools/gpgconf-comp.c (gc_options_gpg): Likewise.
18131 tests: Improve support for gpgconf.
18132 + commit 41900175cf046dd9abe3d7a6805f6a403d68df15
18133 * tests/openpgp/defs.scm: Improve high-level inteface to gpgconf.
18134 * tests/openpgp/gpgconf.scm: Adapt.
18135 * tests/openpgp/tofu.scm: Use it to select the trust model.
18137 gpg,tools: Make trust-model configurable via gpgconf.
18138 + commit ebeccd73eb85f9027f0985d77dfe901266c6ddef
18139 * g10/gpg.c (gpgconf_list): Add 'trust-model'.
18140 * tools/gpgconf-comp.c (gc_options_gpg): Likewise.
18142 gpgscm: Track source locations in every kind of ports.
18143 + commit 7cc57e2c63d0fa97569736419db5c76117e7685b
18144 * tests/gpgscm/scheme-private.h (struct port): Move location
18145 information out of the union.
18146 * tests/gpgscm/scheme.c (mark): All ports need marking now.
18147 (gc): Likewise all ports on the load stack.
18148 (port_clear_location): Adapt accordingly. Also, add an empty function
18149 for !SHOW_ERROR_LINE.
18150 (port_increment_current_line): Likewise.
18151 (port_reset_current_line): Drop function in favor of...
18152 (port_init_location): ... this new function.
18153 (file_push): Simplify.
18154 (file_pop): Likewise.
18155 (port_rep_from_filename): Likewise.
18156 (port_rep_from_file): Likewise.
18157 (port_rep_from_string): Also initialize the location.
18158 (port_rep_from_scratch): Likewise.
18159 (port_close): Simplify and generalize.
18160 (skipspace): Likewise.
18162 (_Error_1): Generalize.
18163 (opexe_5): Likewise.
18164 (scheme_deinit): Simplify and generalize.
18165 (scheme_load_named_file): Likewise.
18166 (scheme_load_string): Also initialize the location.
18168 2017-02-28 Werner Koch <wk@gnupg.org>
18170 gpgv,w32: Fix --status-fd.
18171 + commit 8a67dc4c4324b617b5a3fea51c59c674488544d6
18172 * g10/gpgv.c (main): Use translate_sys2libc_fd_int for --status-fd.
18174 w32: Make pipes really pollable.
18175 + commit 1192449207f41b26be8950b04df84a52c8a2a886
18176 * common/exectool.c (gnupg_exec_tool_stream) [W32]: Use _get_osfhandle
18177 to print the fd for the command line.
18178 * common/exechelp-w32.c (create_pipe_and_estream): Use es_sysopen so
18179 that the streams are actually pollable.
18181 2017-02-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18183 dirmngr: Avoid warnings during non-ntbtls build.
18184 + commit f5782e11a560fd590221042391254c810a42e45f
18185 * dirmngr/t-http.c (my_http_tls_verify_cb): Avoid warnings when not
18188 trustdb: Respect --quiet during --import-ownertrust.
18189 + commit ddf01a67d6388d988f1db50a06facb21c14d9426
18190 * g10/tdbdump.c (import_ownertrust): If opt.quiet is set, do not send
18193 2017-02-26 Manish Goregaokar <manish@mozilla.com>
18196 + commit 64ec21bebd3f136722e608649906b59c6add6947
18197 I already have copyright assignment with the FSF for GDB. I don't
18198 think I'll need to do the DCO thing.
18200 2017-02-24 Werner Koch <wk@gnupg.org>
18202 gpgv: New options --log-file and --debug.
18203 + commit 7af5d61c6e210210c777be9e6e87720dd4a055d9
18204 * g10/gpgv.c (oLoggerFile, oDebug): New consts.
18205 (opts): Add options --log-file and --debug.
18206 (main): Implement options.
18208 2017-02-24 Andre Heinecke <aheinecke@intevation.de>
18210 speedo,w32: Fix gpg-wks-client installation.
18211 + commit 49b4a676148523b51beca3ae929e9d78ed7ba110
18212 * build-aux/speedo/w32/inst.nsi: gpg-wks-client is an exe.
18214 2017-02-23 Werner Koch <wk@gnupg.org>
18216 dirmngr: Add new debug flag "extprog"
18217 + commit 22b69b9edfdf6e6172239cbd1075ffe29077d339
18218 * dirmngr/dirmngr.h (DBG_EXTPROG_VALUE, DBG_EXTPROG): New macros.
18219 * dirmngr/dirmngr.c (debug_flags): Add flag "extprog".
18220 (handle_connections): Use a macro instead of -1 for an invalid socket.
18221 * dirmngr/loadswdb.c (verify_status_cb): Debug the gpgv call.
18223 wks: Make sure that the draft 2 request is correctly detected.
18224 + commit d30e17ac62dea8913b7f353971d546b6b1a09bd5
18225 * tools/gpg-wks.h (WKS_DRAFT_VERSION): New.
18226 * tools/wks-receive.c (new_part): Move test wks draft version to ...
18227 (t2body): new callback.
18228 (wks_receive): Register this callback.
18229 * tools/gpg-wks-server.c (send_confirmation_request): Emit draft
18231 (send_congratulation_message): Ditto.
18232 * tools/gpg-wks-client.c (decrypt_stream_parm_s): New.
18233 (decrypt_stream_status_cb): Check DECRYTPION_KEY status.
18234 (decrypt_stream): Get infor from new callback.
18235 (process_confirmation_request): New arg 'mainfpr'. Check that it
18236 matches the decryption key.
18237 (read_confirmation_request): Check that the decryption key has been
18239 (command_send): Use macro from draft version header.
18240 (send_confirmation_response): Emit draft version header.
18242 wks: New callback for the mime parser.
18243 + commit a2090250829fe8989be2afc8cf41ba2a022072fc
18244 * tools/mime-parser.c (mime_parser_context_s): New field 't2body'.
18245 (parse_message_cb): Call that callback.
18246 (mime_parser_set_t2body): New.
18248 gpg: Emit new status DECRYPTION_KEY.
18249 + commit effa80e0b5fd8cf9e31a984afe391c2406edee8b
18250 * common/status.h (STATUS_DECRYPTION_KEY): New.
18251 * g10/pubkey-enc.c (get_it): Emit that status.
18253 dirmngr,w32: Make https with ntbtls work.
18254 + commit a42bf00b4edce789999aa3bdfce235cf726463ae
18255 * dirmngr/http.c (simple_cookie_functions): New.
18256 (send_request) [HTTP_USE_NTBTLS, W32]: Use es_fopencookie.
18257 (cookie_read): Factor some code out to ...
18258 (read_server): new.
18259 (simple_cookie_read, simple_cookie_write) [W32]: New.
18261 2017-02-22 Werner Koch <wk@gnupg.org>
18263 scd,agent: Improve the OpenPGP PIN prompt texts.
18264 + commit f98c8cb013033c08e98ebedcc0e084fbd2a85b0c
18265 * scd/app-openpgp.c (get_prompt_info): Change texts.
18266 * agent/call-pinentry.c (struct entry_features): New.
18267 (getinfo_features_cb): New.
18268 (start_pinentry): Set new fucntion as status callback.
18269 (build_cmd_setdesc): New. Replace all snprintf for SETDESC by this
18272 2017-02-22 Andre Heinecke <aheinecke@intevation.de>
18274 scd: Nitpicks on the improved card prompts.
18275 + commit 143ca039e1e81140ae520cc1025f8e25c01acc80
18276 * src/app-openpgp.c (get_prompt_info): Change wording and order
18279 2017-02-22 Werner Koch <wk@gnupg.org>
18281 scd: Improve the prompts for OpenPGP cards.
18282 + commit e3944f34e3220f96fb1be449eb6f3d7360bc2d0b
18283 * scd/app-openpgp.c (get_disp_name): New.
18284 (get_disp_serialno): New.
18285 (get_prompt_info): New.
18286 (build_enter_admin_pin_prompt): Rework the prompt texts. Factor some
18288 (get_remaining_tries): New.
18289 (verify_a_chv): Print a remaining counter also for the standard PIN.
18290 Rework the prompt texts.
18292 * agent/divert-scd.c (ask_for_card): Pretty format an OpenPGP serial
18295 agent: Prepend the description to a PIN prompt.
18296 + commit 6488ffb767733a2cf92ca5ba3e61fc0c53e0f673
18297 * agent/divert-scd.c (has_percent0A_suffix): New.
18298 (getpin_cb): Prepend DESC_TEXT to the prompt.
18299 * agent/findkey.c (modify_description): Rename to ...
18300 (agent_modify_description): this. MAke global. Add kludge to remove
18301 empty parentheses from the end.
18302 (agent_key_from_file, agent_delete_key): Adjust for above change.
18303 * agent/pksign.c (agent_pksign_do): Modify DESC_TEXT also when
18304 diverting to a card.
18306 agent: Prepare to pass an additional parameter to the getpin callback.
18307 + commit 78d875a0f83bc046279b951aea76cd74f3c44fd8
18308 * agent/call-scd.c (writekey_parm_s, inq_needpin_s): Merge into ...
18309 (inq_needpin_parm_s): new struct. Add new field 'getpin_cb_desc'.
18310 Change users to set all fields.
18311 (inq_needpin): Pass GETPIN_CB_DESC to the GETPIN_CB.
18312 (agent_card_pksign): Add arg 'desc_text' and change arg 'getpin_cb' to
18313 take an additional arg 'desc_text'.
18314 (agent_card_pkdecrypt): Ditto.
18315 (agent_card_writekey): Change arg 'getpin_cb' to take an additional
18317 (agent_card_scd): Ditto.
18318 * agent/divert-scd.c (getpin_cb): Add new arg 'desc_text'.
18319 (divert_pksign): Add new arg 'desc_text' and pass is to
18321 (divert_pkdecrypt): Add new arg 'desc_text' and pass is to
18322 agent_card_pkdecrypt.
18323 * agent/pkdecrypt.c (agent_pkdecrypt): Pass DESC_TEXT to
18325 * agent/pksign.c (agent_pksign_do): Pass DESC_TEXT to
18328 2017-02-22 NIIBE Yutaka <gniibe@fsij.org>
18330 tests: No spelling fix for test text.
18331 + commit ef424353f342f80ca6d18ede8b63c1b02215d105
18332 * tests/openpgp/verify.scm (msg_ed25519_rshort): Revert the spelling
18335 2017-02-21 Werner Koch <wk@gnupg.org>
18337 dirmngr: Add special treatment for the standard hkps pool to ntbtls.
18338 + commit 831d014550863026dfefa774c961a21bd20c1e48
18339 * dirmngr/validate.h (VALIDATE_FLAG_SYSTRUST): Remove
18340 (VALIDATE_FLAG_EXTRATRUST): Remove
18341 (VALIDATE_FLAG_TRUST_SYSTEM): New.
18342 (VALIDATE_FLAG_TRUST_CONFIG): New.
18343 (VALIDATE_FLAG_TRUST_HKP): New.
18344 (VALIDATE_FLAG_TRUST_HKPSPOOL): New.
18345 (VALIDATE_FLAG_MASK_TRUST): New.
18346 * dirmngr/validate.c (check_header_constants): New.
18347 (validate_cert_chain): Call new function. Simplify call to
18349 * dirmngr/crlcache.c (crl_parse_insert): Pass
18350 VALIDATE_FLAG_TRUST_CONFIG to validate_cert_chain
18351 * dirmngr/server.c (cmd_validate): Use VALDIATE_FLAG_TRUST_SYSTEM and
18352 VALIDATE_FLAG_TRUST_CONFIG.
18353 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Check provided TLS
18354 context. Set trustclass flags using the new VALIDATE_FLAG_TRUST
18357 * dirmngr/certcache.c (cert_cache_init): Load the standard pool
18358 certificate prior to the --hkp-cacerts.
18360 dirmngr: Load --hkp-cacert values into the certificate cache.
18361 + commit d1625a9a82b1e5d96bbbf2132c49c53108565ae1
18362 * dirmngr/dirmngr.c (hkp_cacert_filenames): New var.
18363 (parse_rereadable_options): Store filenames from --hkp-cacert in the
18365 (main, dirmngr_sighup_action): Pass that var to cert_cache_init.
18366 * dirmngr/certcache.c (cert_cache_init): Add arg 'hkp_cacert' and load
18368 (load_certs_from_file): Use autodetect so that PEM and DER encodings
18371 dirmngr: Load "sks-keyservers.netCA.pem" into the cache.
18372 + commit 9741aa24d9056b56cd5366ff5379bd8a3e6118df
18373 * dirmngr/certcache.c (load_certs_from_file): Always build this
18374 function. Add args 'trustclasses' and 'no_error'. Pass TRUSTCLASSES
18376 (load_certs_from_system): Pass CERTTRUST_CLASS_SYSTEM to
18377 load_certs_from_file.
18378 (cert_cache_init): Try to load "sks-keyservers.netCA.pem". Don't make
18379 function fail in an out-of-core condition.
18381 dirmngr: Implement trust classes for the cert cache.
18382 + commit 50b9828eacc39c1ca75cb8313db896e4bdc8b270
18383 * dirmngr/certcache.h (CERTTRUST_CLASS_SYSTEM): New.
18384 (CERTTRUST_CLASS_CONFIG): New.
18385 (CERTTRUST_CLASS_HKP): New.
18386 (CERTTRUST_CLASS_HKPSPOOL): New.
18387 * dirmngr/certcache.c (MAX_EXTRA_CACHED_CERTS): Rename to ...
18388 (MAX_NONPERM_CACHED_CERTS): this.
18389 (total_extra_certificates): Rename to ...
18390 (total_nonperm_certificates): this.
18391 (total_config_certificates): Remove.
18392 (total_trusted_certificates): Remove.
18393 (total_system_trusted_certificates): Remove.
18394 (cert_item_s): Remove field 'flags'. Add fields 'permanent' and
18396 (clean_cache_slot): Clear new fields.
18397 (put_cert): Change for new cert_item_t structure.
18398 (load_certs_from_dir): Rename arg 'are_trusted' to 'trustclass'
18399 (load_certs_from_file): Use CERTTRUST_CLASS_ value for put_cert.
18400 (load_certs_from_w32_store): Ditto.
18401 (cert_cache_init): Ditto.
18402 (cert_cache_print_stats): Rewrite.
18403 (is_trusted_cert): Replace arg 'with_systrust' by 'trustclasses'.
18405 * dirmngr/validate.c (allowed_ca): Pass CERTTRUST_CLASS_CONFIG to
18407 (validate_cert_chain): Pass CERTTRUST_CLASS_ values to
18410 dirmngr: New Assuan option "http-crl".
18411 + commit 493c142e582ff5ef1b5fdfcb9653715ef43e83e9
18412 * dirmngr/dirmngr.h (server_control_s): New flag 'http_no_crl'.
18413 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Set this flag.
18414 * dirmngr/server.c (option_handler): New option "http-crl"
18415 * dirmngr/http.h (HTTP_FLAG_NO_CRL): New flag.
18416 * dirmngr/http-ntbtls.c (gnupg_http_tls_verify_cb): Consult this flag.
18417 * dirmngr/ks-engine-hkp.c (send_request): Set flag depending on CTRL.
18418 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
18420 * dirmngr/t-http.c (main): New option --no-crl.
18422 dirmngr: Add a magic field to the http structs.
18423 + commit 39c745038181edd097e188434b3f9c971ed3987f
18424 * dirmngr/http.c (HTTP_SESSION_MAGIC): New.
18425 (http_session_s): New field 'magic'.
18426 (HTTP_CONTEXT_MAGIC): New.
18427 (http_context_s): New field 'magic'.
18428 (my_ntbtls_verify_cb): Assert MAGIC.
18429 (fp_onclose_notification): Ditto.
18430 (session_unref): Ditto. Reset MAGIC.
18431 (http_session_new): Set MAGIC.
18432 (http_open): Ditto.
18433 (http_raw_connect): Ditto.
18434 (http_close): Assert MAGIC. Reset MAGIC.
18436 * dirmngr/t-http.c (my_http_tls_verify_cb): MArk HTTP_FLAGS unused.
18438 2017-02-21 NIIBE Yutaka <gniibe@fsij.org>
18440 g10: Support primary key generation by keygrip.
18441 + commit 3fc69224b7b22ad1df1395ebcb21549384839cd1
18442 * g10/keygen.c (para_name): Add pKEYGRIP.
18443 (generate_keypair): Use pKEYGRIP for key generation.
18444 (do_generate_keypair): Call do_create_from_keygrip with pKEYGRIP.
18446 2017-02-20 Werner Koch <wk@gnupg.org>
18448 dirmngr: Setup a log handler for ntbtls.
18449 + commit a022baa4a487eec769411255a64088450c4c8a49
18450 * dirmngr/dirmngr.c (my_ntbtls_log_handler) [HTTP_USE_NTBTLS]: New.
18451 (main) [HTTP_USE_NTBTLS]: Register log handler.
18453 common: New function log_logv_with_prefix.
18454 + commit 3e9512e557d95c7dc36835365b127b25f6a5cdd9
18455 * common/logging.c (do_logv): Add arg 'prefmt' and print it. Chnage
18456 call callers to pass NULL.
18457 (log_logv_with_prefix): New.
18459 dirmngr.c: Make http.c build without any TLS support.
18460 + commit e174893262d8de0f52faa8abe4fc0402719a35d8
18461 * dirmngr/http.c (http_session_new): Remove used of tls_prority.
18463 dirmngr: Make t-http.c work again with gnutls - second try.
18464 + commit 81ea24b8637ac08e44e9e44816689413c2ae7e08
18465 * dirmngr/t-http.c: Always include ksba.h.
18467 dirmngr: Make t-http.c work again with gnutls.
18468 + commit f923873863fd863d71349f20f5568f80aecc020b
18469 * dirmngr/Makefile.am (t_http_CFLAGS, t_http_LDADD): Add KSBA flags
18472 2017-02-19 Werner Koch <wk@gnupg.org>
18474 dirmngr: First take on ntbtls cert verification.
18475 + commit 64fffd0ce2a4fd9cba152cf07497b585410cc652
18476 * dirmngr/http-ntbtls.c: New.
18477 * dirmngr/Makefile.am (dirmngr_SOURCES): Add file.
18478 * dirmngr/dirmngr.h (SERVER_CONTROL_MAGIC): New.
18479 (server_conrol_s): Add field 'magic',
18480 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Set MAGIC.
18481 (dirmngr_deinit_default_ctrl): Set MAGIC to deadbeef.
18482 * dirmngr/http.c (my_ntbtls_verify_cb): New.
18483 (http_session_new) [HTTP_USE_NTBTLS]: Remove all CA setting code.
18484 (send_request) [HTTP_USE_NTBTLS]: Set the verify callback. Do not call
18485 the verify callback after the handshake.
18486 * dirmngr/ks-engine-hkp.c (send_request): Pass
18487 gnupg_http_tls_verify_cb to http_session_new.
18488 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
18490 * dirmngr/t-http.c (my_http_tls_verify_cb): New.
18491 (main): Rename option --gnutls-debug to --tls-debug.
18492 (main) [HTTP_USE_NTBTLS]: Create a session.
18494 2017-02-18 Werner Koch <wk@gnupg.org>
18496 dirmngr: Add per-session verify callback to http.c.
18497 + commit a74902cccde539ee2bd216caec0da6eb54b67c1b
18498 * dirmngr/http.h (http_verify_cb_t): New type.
18499 * dirmngr/http.c (http_session_s): Add fields flags, verify_cb, and
18501 (http_session_new): Remove arg tls_priority. Add args verify_cb and
18502 verify-cb_value. Store them in the session object.
18503 (send_request): Use per-session verify callback.
18504 (http_verify_server_credentials) [HTTP_USE_NTBTLS]: Return
18505 GPG_ERR_NOT_IMPLEMENTED.
18506 * dirmngr/ks-engine-hkp.c (send_request): Adjust for changed
18508 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
18509 * dirmngr/t-http.c (main): Ditto.
18511 * dirmngr/server.c (do_get_cert_local): Replace xmalloc by malloc.
18513 2017-02-17 Werner Koch <wk@gnupg.org>
18515 dirmngr: Strip the default https port from the Host: header.
18516 + commit cd32ebd152a522e362469ab969d91f8d49f28a60
18517 * dirmngr/http.c (send_request): Strip the default https port.
18519 dirmngr: Add option --no-crl to the VALIDATE cmd.
18520 + commit f07811ee2c0a8044551e2ec063eda61cff7f6e39
18521 * dirmngr/validate.h: Remove enums VALIDATE_MODE_*.
18522 (VALIDATE_FLAG_SYSTRUST, VALIDATE_FLAG_EXTRATRUST)
18523 (VALIDATE_FLAG_CRL, VALIDATE_FLAG_RECURSIVE)
18524 (VALIDATE_FLAG_OCSP, VALIDATE_FLAG_TLS)
18525 (VALIDATE_FLAG_NOCRLCHECK): New constants.
18526 * dirmngr/validate.c (validate_cert_chain): Change arg 'mode' to
18527 'flags'. Change code accordingly. Remove NO-CRL in TLS mode kludge.
18528 * dirmngr/crlcache.c (crl_parse_insert): Change to use flag values for
18529 the validate_cert_chain call.
18530 * dirmngr/server.c (cmd_validate): Ditto. Add new option --no-crl.
18532 dirmngr: Add options --tls and --systrust to the VALIDATE cmd.
18533 + commit 070211eb990f5ea41271eba432b6a6b485cef7c7
18534 * dirmngr/certcache.h (certlist_s, certlist_t): New.
18535 * dirmngr/certcache.c (read_certlist_from_stream): New.
18536 (release_certlist): New.
18537 * dirmngr/server.c (MAX_CERTLIST_LENGTH): New.
18538 (cmd_validate): Add options --tls and --systrust. Implement them
18539 using a kludge for now.
18540 * dirmngr/validate.c (validate_cert_chain): Support systrust
18541 checking. Add kludge to disable the CRL checking for tls mode.
18543 dirmngr: Remove use of hardcoded numbers in validate.
18544 + commit ed99af030d19305dd7cd41c41ac581306cb91fd5
18545 * dirmngr/validate.c (enum cert_usage_modes): New.
18546 (cert_usage_p): Change type of arg MODE. Use enums instead of
18547 hardwired values. Use a switch instead of tricky bit tests.
18548 (cert_use_cert_p, cert_use_ocsp_p, cert_use_crl_p): Adjust.
18550 * dirmngr/validate.c (cert_usage_p): Rename to check_cert_usage.
18551 (cert_use_cert_p): Rename to check_cert_use_cert.
18552 (cert_use_ocsp_p): Rename to check_cert_use_ocsp.
18553 (cert_use_crl_p): Rename to check_cert_use_crl.
18555 * dirmngr/validate.h (VALIDATE_MODE_CERT_SYSTRUST): New.
18556 (VALIDATE_MODE_TLS, VALIDATE_MODE_TLS_SYSTRUST): New.
18558 2017-02-17 NIIBE Yutaka <gniibe@fsij.org>
18560 agent: No cards is not an error.
18561 + commit dea4b3c742acbd195d6ab12b279b4dda315f2582
18562 * agent/command-ssh.c (card_key_list): Care the case of no cards.
18564 agent: Send back all public keys for available cards.
18565 + commit 3f4f64b6ac0d7160fd9e1301f95820894b219c3f
18566 * agent/call-scd.c (card_cardlist_cb, agent_card_cardlist): New.
18567 * agent/command-ssh.c (card_key_list): New.
18568 (ssh_handler_request_identities): Call card_key_list and loop for the
18569 list to send public keys for all available cards.
18571 2017-02-17 Justus Winter <justus@g10code.com>
18573 gpgscm: Guard use of tagged expressions.
18574 + commit aab6ba0bb60528b9e816e430be51170cf39611b0
18575 * tests/gpgscm/init.scm (vm-history-print): Check that the tag added
18576 to expressions when parsing source files matches the expected format.
18577 * tests/gpgscm/lib.scm (assert): Likewise.
18579 2017-02-17 NIIBE Yutaka <gniibe@fsij.org>
18581 scd: Fix RESET command handling (more).
18582 + commit 99d4dfe83661d05ef3a20ed04e6cec5647536738
18583 * scd/app-common.h (struct app_ctx_s): Add reset_requested.
18584 * scd/app.c (app_reset): Locking APP, set reset_requested.
18585 (deallocate_app): Release the lock.
18586 (release_application): Add LOCKED_ALREADY argument.
18587 (scd_update_reader_status_file): Hold the lock when accessing APP.
18588 When reset_requested is set, close the reader and deallocate APP.
18589 * scd/command.c (open_card_with_request, cmd_restart): Follow the
18590 change of release_application.
18591 (send_client_notifications): Here it calls release_application holding
18594 2017-02-16 Werner Koch <wk@gnupg.org>
18596 dirmngr,w32: Load all system provided certificates.
18597 + commit 7006352da773d82c47797bbf11e570ecafac6501
18598 * dirmngr/certcache.c (CERTOPENSYSTEMSTORE) [W32]: New type.
18599 (CERTENUMCERTIFICATESINSTORE) [W32]: New type.
18600 (CERTCLOSESTORE) [W32]: New type.
18601 (load_certs_from_file) [W32]: Do not build.
18602 (load_certs_from_w32_store) [W32]: New.
18603 (load_certs_from_system) [W32]: Call new function.
18605 dirmngr: Load all system provided certificates.
18606 + commit 9a1a5ca0bc2cfb17ccf632de3e134b6d789c6855
18607 * configure.ac: Add option --default-trust-store.
18608 (DEFAULT_TRUST_STORE_FILE): New ac_define.
18609 * dirmngr/certcache.c: Include ksba-io-support.h.
18610 (total_trusted_certificates, total_system_trusted_certificates): New.
18611 (put_cert): Manage the new counters.
18612 (cert_cache_deinit): Reset them.
18613 (cert_cache_print_stats): Print them.
18614 (is_trusted_cert): Add arg WITH_SYSTRUST. Change all callers to pass
18616 (load_certs_from_file): New.
18617 (load_certs_from_system): New.
18618 (cert_cache_init): Load system certificates.
18620 common: Rename remaining symbols in ksba-io-support.
18621 + commit e1dfd862367cf91b66abe86bd73664409354bb14
18622 * common/ksba-io-support.c (gpgsm_reader_eof_seen): Rename to ...
18623 (gnupg_ksba_reader_eof_seen): this. Change all callers.
18624 (gpgsm_destroy_reader): Rename to ...
18625 (gnupg_ksba_destroy_reader): this. Change all callers.
18626 (gpgsm_finish_writer): Rename to ...
18627 (gnupg_ksba_finish_writer): this. Change all callers.
18628 (gpgsm_destroy_writer): Rename to ...
18629 (gnupg_ksba_destroy_writer): this. Change all callers.
18630 * common/ksba-io-support.c (struct base64_context_s): Rename to ...
18631 (gnupg_ksba_io_s): this.
18632 * common/ksba-io-support.h (base64_context_s): Ditto.
18633 (Base64Context): Rename this typedef to ...
18634 (gnupg_ksba_io_t): this. Change all users.
18636 common: Remove gpgsm dependencies from ksba-io-support.
18637 + commit 28c31524be84f20b34573c78bd3a94a81e4b1d61
18638 * common/ksba-io-support.c: Include ksba-io-support.h instead of
18639 ../sm/gpgsm.h. Include util.h.
18640 (writer_cb_parm_s): Remove const from 'pem_name'.
18641 (gpgsm_destroy_writer): Free 'pem_name'.
18642 (gpgsm_create_reader): Rename to ...
18643 (gnupg_ksba_create_reader): this. Replace args CTRL and
18644 ALLOW_MULTI_PEM by a new arg FLAGS. Change the code to evaluate
18645 FLAGS. Change all callers to pass the FLAGS.
18646 (gpgsm_create_writer): Rename to ...
18647 (gnupg_ksba_create_writer): this. Replace arg CTRL by new arg FLAGS.
18648 Add arg PEM_NAME. Evaluate FLAGS. Store a copy of PEM_NAME. Change
18649 all callers to pass the FLAGS and PEM_NAME.
18651 common: Change license of ksba-io-support.c.
18652 + commit 919e76b407ac557b0f518ec03f3cc59e9e5740c9
18653 * common/ksba-io-support.c: Change from GPLv3+ to LGPLv3+/GPLv2+.
18655 sm,common: Move ksba reader and writer support to common/.
18656 + commit 04bfa6fe6597b8ffcec61cbcacdc7eb137444e80
18657 * sm/base64.c: Rename to ...
18658 * common/ksba-io-support.c: this.
18659 * common/ksba-io-support.h: New.
18660 * common/Makefile.am (common_sources): Add new files.
18661 * sm/Makefile.am (gpgsm_SOURCES): Remove base64.c
18663 dirmngr: Prepare certcache for forthcoming changes.
18664 + commit 5c4e67afd6385b48065de6a0f2dd0bfd936ab90b
18665 * dirmngr/certcache.c (cert_item_s): Rename 'flags.loaded' to
18666 'flags.config'. Add 'flags.systrust'.
18667 (total_loaded_certificates): Rename to total_config_certificates.
18668 (put_cert): Rename args for clarity. Set SYSTRUST flag.
18669 (load_certs_from_dir): Make sure put_cert does not set the SYSTRUST
18672 dirmngr: Replace stpcpy chains by strconcat.
18673 + commit aef60abe6a1772e18634984a94bd70f57d57ccdd
18674 * dirmngr/certcache.c (find_cert_bysn): Use strconcat.
18675 (find_cert_bysubject): Ditto.
18676 * dirmngr/http.c (store_header): Ditto.
18677 * dirmngr/ldap.c (make_url): Ditto.
18678 * dirmngr/server.c (get_cert_local_ski): Ditto.
18679 (do_get_cert_local): Use xstrconcat.
18681 2017-02-16 NIIBE Yutaka <gniibe@fsij.org>
18683 scd: Minor fixes to silence compiler warnings.
18684 + commit 7a666ccb44f43c4efbaa51c1ca16fc0b37c3399d
18685 * scd/app.c (app_reset): Initialize ERR.
18686 * scd/scdaemon.c (scd_kick_the_loop, handle_connections): Catch the
18689 2017-02-15 Werner Koch <wk@gnupg.org>
18691 libdns: Workaround for bracketed numerical addresses.
18692 + commit a3509e12b6626a585ce7da6ceed8cfddcba2460f
18693 * dirmngr/dns-stuff.c (resolve_name_libdns): Work around an
18694 incompatibility between the glibc resolver and libdns.
18696 dirmngr: Do PTR lookups only for 'keyserver --hosttable'.
18697 + commit a75325faf163275674a91971e75f1018035ca348
18698 * dirmngr/ks-engine-hkp.c (hostinfo_s): Remove fields v4addr and
18699 v5addr and add fields iporname and iporname_valid.
18700 (create_new_hostinfo): Clear them.
18701 (add_host): Remove the code to set the v4addr and v6addr fields.
18702 (ks_hkp_print_hosttable): Remove printing of the fields. Compute the
18703 iporname field and display it.
18704 (ks_hkp_reload): Force re-computing of the iporname field in
18705 ks_hkp_print_hosttable.
18707 dirmngr: Avoid PTR lookup for hosts in a pool.
18708 + commit da2ba20868093e3054d18adc2b1bc56cb23e4ba7
18709 * dirmngr/ks-engine-hkp.c (add_host): Don't to a PTR lookup for hosts
18712 2017-02-15 Justus Winter <justus@g10code.com>
18714 tests,build: Fix distcheck.
18715 + commit 2f7b6cb279ea0ee27364fbb2b12df47e76166a39
18716 * tests/gpgscm/Makefile.am (EXTRA_DIST): Add 'time.scm'.
18718 tests: Test and document other ways to create keys.
18719 + commit 90d383f1eb07fc823518dea10eb15ca390f5cf8e
18720 * doc/gpg.texi: Clarify usage and expiration arguments for key
18722 * tests/openpgp/quick-key-manipulation.scm: Test all variants.
18724 tests: Check expiration times of created keys.
18725 + commit 127e1e532da4083ccd3c307555b6177fab16f408
18726 * tests/gpgscm/ffi.c (do_get_time): New function.
18727 (ffi_init): Expose new function.
18728 * tests/gpgscm/ffi.scm (get-time): Document new function.
18729 * tests/gpgscm/time.scm: New file.
18730 * tests/openpgp/quick-key-manipulation.scm: Use the new facilities to
18731 check the expiration times of created keys.
18732 * tests/openpgp/tofu.scm: Use the new module.
18734 2017-02-15 NIIBE Yutaka <gniibe@fsij.org>
18736 scd: Fix RESET command handling.
18737 + commit e2792813a55e091c51be7b1b089a71beb6466f1d
18738 * scd/app.c (release_application_internal): Remove.
18739 (release_application): Merge release_application_internal.
18740 (app_reset): Kick the loop and let close the reader. Sleep is
18741 required here to wait closing.
18742 (scd_update_reader_status_file): When APP is no use, close it.
18744 2017-02-14 Werner Koch <wk@gnupg.org>
18746 gpg: Make --export-ssh-key work for the primary key.
18747 + commit b456e5be91dc064fc9509ea86edab113721ed299
18748 * g10/export.c (export_ssh_key): Also check the primary key.
18750 2017-02-13 Werner Koch <wk@gnupg.org>
18752 dirmngr: Do a DNS lookup even if it is missing from nsswitch.conf.
18753 + commit dee026d761ae3d7594c3dbc5b3fa842df53cc189
18754 * dirmngr/dns-stuff.c (libdns_init): Do not print error message for a
18755 missing nsswitch.conf. Make sure that tehre is a DNS entry.
18757 gpgconf: No ENOENT warning with --change-options et al.
18758 + commit 30dac0486b6357e84fbe79c612eea940b654e4d1
18759 * tools/gpgconf-comp.c (retrieve_options_from_program): Check ERRNO
18760 before printing a warning.
18762 gpg: Print a warning if no command has been given.
18763 + commit 810adfd47801fc01e45fb71af9f05c91f7890cdb
18764 * g10/gpg.c (main): Print in the default case.
18766 2017-02-13 Justus Winter <justus@g10code.com>
18768 g13: Fix build on macOS.
18769 + commit f8ce31a7bf1ee85e5010b628a66e6f69486e5213
18770 * g13/Makefile.am (t_common_ldadd): Add iconv.
18772 2017-02-13 NIIBE Yutaka <gniibe@fsij.org>
18774 scd: Fix use case of PC/SC.
18775 + commit da4c132cca2c6df81243c9660b7348268a848f88
18776 * scd/apdu.c (apdu_open_reader): Add an argument APP_EMPTY.
18777 When CCID driver fails to open, try PC/SC if APP is nothing.
18778 * scd/app.c (select_application): Supply arg if APP is nothing.
18780 2017-02-10 Werner Koch <wk@gnupg.org>
18782 gpg: Fix memory leak in the error case of signature creation.
18783 + commit 5996c7bf99f3a681393fd9589276399ebc956cff
18784 * g10/sign.c (write_signature_packets): Free SIG. Also replace
18785 xcalloc by xtrycalloc.
18787 2017-02-08 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18789 common: Avoid warning about implicit declaration of gnupg_fd_valid.
18790 + commit 8810314e377a9cb6612150a57cf99260ed0bb9f6
18791 * common/logging.c: Add #include "sysutils.h".
18793 2017-02-08 Justus Winter <justus@g10code.com>
18795 gpg,common: Make sure that all fd given are valid.
18796 + commit 6823ed46584e753de3aba48a00ab738ab009a860
18797 * common/sysutils.c (gnupg_fd_valid): New function.
18798 * common/sysutils.h (gnupg_fd_valid): New declaration.
18799 * common/logging.c (log_set_file): Use the new function.
18800 * g10/cpr.c (set_status_fd): Likewise.
18801 * g10/gpg.c (main): Likewise.
18802 * g10/keylist.c (read_sessionkey_from_fd): Likewise.
18803 * g10/passphrase.c (set_attrib_fd): Likewise.
18804 * tests/openpgp/Makefile.am (XTESTS): Add the new test.
18805 * tests/openpgp/issue2941.scm: New file.
18807 2017-02-07 Justus Winter <justus@g10code.com>
18809 tests: Skip key types not supported by OpenSSH.
18810 + commit 56aa85f88f6b35fb03a2dc1a95882d49a74290e3
18811 * tests/openpgp/ssh-import.scm (path): New variable.
18812 (ssh,ssh-keygen,ssh-version,ssh-supports?): Likewise.
18814 2017-02-07 Werner Koch <wk@gnupg.org>
18816 wks: Add WKS-Phase headers to the server messages.
18817 + commit b30ac663cec82c89ca9a3e87e65b36d2552f1533
18818 * tools/gpg-wks-server.c (send_confirmation_request): Add custom
18820 (send_congratulation_message): Ditto.
18822 2017-02-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18824 po: Manual updates of nl translation.
18825 + commit aa3f08794bfc809821e2fc30a09a5ae23925c645
18826 * po/nl.po: Apply several minor manual cleanups to nl.po that were
18827 previously applied to all the other localizations.
18829 po: Copied missing nl.po translation from the 2.0 branch.
18830 + commit 8a9d4b55b09d04482b46055f0a60f01b86738df3
18831 * po/nl.po: Copy from 2.0 branch.
18833 gpg: Fix aliases --list-key, --list-sig, and --check-sig.
18834 + commit f31120a5aa40b6e4e89d41d1d5d34e0f7da173b4
18835 * g10/gpg.c (opts): Define commands with ARGPARSE_c
18836 instead of ARGPARSE_s_n.
18838 2017-02-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18840 doc: Clarify abbreviation of --help.
18841 + commit f2b276dffbe2435b17abf2b3c51684d3636f3f11
18842 * doc/gpg.texi: clarify abbreviation of --help.
18844 2017-02-03 Werner Koch <wk@gnupg.org>
18846 agent: Tell pinentry the hostname the agent is running on.
18847 + commit 042fe711c76f6377cedb8f83a73ba386cee34bb7
18848 * agent/call-pinentry.c [!W32]: Incluse utsname.h
18849 (start_pinentry): Pass nodename to OPTION/owner.
18851 agent: Tell the Pinentry the client's pid.
18852 + commit 309f464a5952c7d7504b875bf4853914b1242346
18853 * configure.ac: Check for SO_PEERCRED et al.
18854 * agent/agent.h (server_control_s): Add field 'client_pid'.
18855 * agent/command.c (start_command_handler): Set CLIENT_PID.
18856 * agent/command-ssh.c (get_client_pid): New.
18857 (start_command_handler_ssh): Set CLIENT_PID.
18858 * agent/call-pinentry.c (start_pinentry): Tell Pinentry the client-pid.
18860 gpg: More diagnostics for a launched pinentry.
18861 + commit 7052a0d77cf8f3a445b252a809d29be445788625
18862 * agent/call-pinentry.c (start_pinentry): Call getinfo/ttyinfo.
18863 * g10/server.c (gpg_proxy_pinentry_notify): Simplify the output so
18864 that we do not change the code when adding new fields to
18867 2017-02-02 Neal H. Walfield <neal@g10code.com>
18869 gpg: Don't assume that strtoul interprets "" as 0.
18870 + commit 407f5f9baea5591f148974240a87dfb43e5efef3
18871 * g10/tofu.c (show_statistics): If there are not records, return 0
18874 tests: Improve description of test.
18875 + commit 64be8e1e8607944687f3ae45ec64aa30bf4fdf6f
18876 * tests/openpgp/issue2929.scm: Improve description of test.
18878 Revert "Revert "tests: Add test demonstrating issue2929.""
18879 + commit e596b21f4b78dd27489e677699cc4ba648051b3f
18880 This reverts commit 59048b0f1aa77313573a1004cd3a9f02692a7521.
18882 gpg: Ensure TOFU bindings associated with UTKs are registered as usual.
18883 + commit 769272ba87f282a69e8d5f9bb27c86e6bec4496b
18884 * g10/tofu.c (get_trust): Call get_policy before short-circuiting the
18885 policy lookup for ultimately trusted keys to make sure the binding is
18886 added to the bindings table, if necessary.
18888 gpg: If there is a TOFU conflict, elide the too few message warning.
18889 + commit a08c781739e7561093f32b732c4991f2bd817ec2
18890 * g10/tofu.c (tofu_get_validity): If there was a conflict, don't also
18891 print out a warning about too few messages.
18893 gpg: Only print out TOFU statistics for conflicts in interactive mode.
18894 + commit 027b81b35fe36692005b8dba22d9eb2db05e8c80
18895 * g10/tofu.c (get_trust): Add arguments POLICYP and CONFLICT_SETP. If
18896 they are not NULL, return the policy and conflict set (if there is
18897 one), respectively. Update callers. If MAY_ASK is FALSE, don't print
18898 out the statistics.
18899 (tofu_register_encryption): If there is a conflict and we haven't yet
18900 printed the statistics about the conflicting bindings, do so now.
18901 (tofu_get_validity): Likewise.
18903 gpg: Add newline to output.
18904 + commit 74268180e5a3acc827f3a369f1fe5971f3bbe285
18905 * g10/tofu.c (ask_about_binding): Add newline to output.
18907 gpg: Remove period at end of warning.
18908 + commit 6f9d8a956b2ca0f5a0eb7acc656fc17af2f2de47
18909 * g10/tofu.c (tofu_register_encryption): Remove period at end of
18912 2017-02-01 Werner Koch <wk@gnupg.org>
18914 dirmngr: New option --no-use-tor and internal changes.
18915 + commit 7440119e729d3fdedda8a9b44b70f8959beea8d7
18916 * dirmngr/dns-stuff.c (disable_dns_tormode): New.
18917 * dirmngr/dirmngr.c (oNoUseTor): New const.
18918 (opts): New option --no-use-tor.
18919 (tor_mode): New var.
18920 (parse_rereadable_options): Change to use TOR_MODE.
18921 (dirmngr_use_tor): New.
18922 (set_tor_mode): Call disable_dns_tormode. Implement oNoUseTor.
18923 * dirmngr/dirmngr.h (opt): Remove field 'use_tor'. Replace all
18924 references by a call to dirmngr_use_tor().
18925 * dirmngr/server.c (cmd_getinfo): Distinguish between default and
18928 2017-02-01 NIIBE Yutaka <gniibe@fsij.org>
18930 scd: Fix regression tracking the connection count.
18931 + commit 8ddc9268f6aedef0e178b174b89245c33d8189dd
18932 * scd/scdaemon.c (get_active_connection_count): New.
18933 (start_connection_thread): Bump ACTIVE_CONNECTIONS up and down.
18934 * scd/command.c (cmd_getinfo): Add subcommand "connections".
18936 2017-01-31 Justus Winter <justus@g10code.com>
18938 gpgscm: Tune the hash tables.
18939 + commit 2e78aa6ff770849415f8eb71ca70c8886e9564c8
18940 * tests/gpgscm/scheme.c (oblist_initial_value): Increase the size of
18941 the hash table based on the number of symbols used after initializing
18943 (new_frame_in_env): Increase the size of the hash table based on the
18944 number of variables in the global environement.
18946 gpgscm: Optimize environment lookups and insertions.
18947 + commit b85d509a8f5c2e6200b8051ca1593c019abce90b
18948 * tests/gpgscm/scheme.c (pointercmp): New function.
18949 (new_slot_spec_in_env): Add and use slot for insertions.
18950 (find_slot_spec_in_env): New variant of 'find_slot_in_env' that
18951 returns the slot on failures.
18952 (find_slot_in_env): Express using the new function.
18953 (new_slot_in_env): Update callsite.
18954 (opexe_0): Optimize lookup-or-insert.
18955 (opexe_1): Likewise.
18956 (scheme_define): Likewise.
18958 gpgscm: Fix build with list environments.
18959 + commit 874424ee3cc795eae9972b6259a2cc4dcdbb868e
18960 * tests/gpgscm/scheme.c (new_slot_spec_in_env): Provide preallocation
18961 inforomation if USE_ALIST_ENV.
18963 gpgscm: Optimize symbol lookups and insertions.
18964 + commit cea6d114b60deaecfbc2eb1aedbdfb7e6700922f
18965 * tests/gpgscm/scheme.c (oblist_find_by_name): Keep the list of
18966 symbols sorted, return the slot where a new symbol must be inserted on
18968 (oblist_add_by_name): Add the new symbol at the given slot.
18969 (mk_symbol): Adjust callsite.
18970 (gensym): Likewise.
18971 (assign_syntax): Likewise.
18973 gpgscm: Fix build with object list.
18974 + commit 8f0ecb16cbb3798ad18be5f05b826db2aa1aaa00
18975 * tests/gpgscm/scheme.c (oblist_add_by_name): Provide preallocation
18976 information if USE_OBJECT_LIST.
18978 gpgscm: Remove unused functions.
18979 + commit 2076cdaf6b93bc73223819895cc7a67323d8cee7
18980 * tests/gpgscm/scheme.c (check_cell_alloced): Remove function.
18981 (check_range_alloced): Likewise.
18983 2017-01-31 Werner Koch <wk@gnupg.org>
18985 dirmngr: Require --allow-version-check even if --use-tor is used.
18986 + commit b0e8376e19072ec3c590273c69ab3e8e5edfdaca
18987 * dirmngr/dirmngr.c (housekeeping_thread): Load swdb only if the
18990 2017-01-31 NIIBE Yutaka <gniibe@fsij.org>
18992 scd: Remove --debug-disable-ticker option.
18993 + commit e17fa5c75d76af4d4684ee810cb446ecd5110560
18994 * scd/scdaemon.c (ticker_disabled): Remove.
18995 (handle_tick, need_tick): Remove.
18996 (handle_connections): Don't check ticker_disabled.
18998 scd: Fix SERIALNO for multiple devices.
18999 + commit f08d37af049bf1718b301644020658dd2bb07638
19000 * scd/app.c (select_application): Fix the logic if periodical check is
19001 needed. If it is needed for newly found device(s), kick the loop.
19002 (scd_update_reader_status_file): Return value if select(2) should be
19003 called with timeout.
19004 * scd/ccid-driver.c (ccid_require_get_status): Don't return 0 for
19005 token with no interrupt transfer for now.
19006 * scd/command.c (open_card_with_request): Fix scan by SERIALNO.
19007 * scd/scdaemon.c (update_usb): Remove.
19008 (handle_connections): Evaluate need_tick after handle_tick.
19010 2017-01-30 Justus Winter <justus@g10code.com>
19012 gpgscm: Use a compact vector representation.
19013 + commit 49e2ae65e892f93be7f87cfaae3392b50a99e4b1
19014 * tests/gpgscm/scheme-private.h (struct cell): Add a compact vector
19016 * tests/gpgscm/scheme.c (vector_length): Use new representation.
19017 (vector_size): New macro.
19018 (get_vector_object): Use the new representation.
19019 (fill_vector): Likewise.
19020 (vector_elem): Likewise.
19021 (set_vector_elem): Likewise.
19023 (gc): Likewise. Be careful not to confuse immediate values for type
19025 (finalize_cell): Vectors now require finalization.
19027 gpgscm: Provide framework for immediate values.
19028 + commit e343984fc50e87830905614dc87f83f810551ad1
19029 * tests/gpgscm/scheme.c (IMMEDIATE_TAG): New macro.
19030 ({is,set,clr}_immediate): Likewise.
19031 (enum scheme_types): Make type tags disjoint from immediate values.
19032 (TYPE_BITS): We need one more bit now.
19033 (ADJ,T_MASKTYPE): Compute values.
19035 gpgscm: Fix setting the line of the first gc reservation.
19036 + commit d27a4435bd8c0f0971d51ddf454422fc77d48271
19037 * tests/gpgscm/scheme.c (_gc_disable): Negate guard.
19039 gpgscm: Introduce macro for the vector length.
19040 + commit 489edf84c9a9c2122cef1b4e678154521525b54a
19041 * tests/gpgscm/scheme.c (vector_length): New macro.
19042 (get_vector_object): Use the new macro.
19043 (oblist_add_by_name): Likewise.
19044 (oblist_find_by_name): Likewise.
19045 (oblist_all_symbols): Likewise.
19046 (mk_vector): Likewise.
19048 (new_slot_spec_in_env): Likewise.
19049 (find_slot_spec_in_env): Likewise.
19050 (opexe_2): Likewise.
19051 (opexe_5): Likewise.
19053 Revert "tests: Add test demonstrating issue2929."
19054 + commit 59048b0f1aa77313573a1004cd3a9f02692a7521
19055 This reverts commit 5aafa56dffefe3fac55b9d0555c7c86e8a07f072.
19057 2017-01-30 NIIBE Yutaka <gniibe@fsij.org>
19059 scd: Fix GetSlotStatus.
19060 + commit 2a025039c1817c7f75c35a898884849a8e5dc926
19061 * scd/apdu.c (get_status_reader): Add ON_WIRE arg, here.
19062 (ct_get_status, pcsc_get_status_direct, pcsc_get_status_wrapped)
19063 (pcsc_get_status, get_status_ccid, my_rapdu_get_status): Likewise.
19064 (reset_pcsc_reader_wrapped, open_pcsc_reader_wrapped): Follow the
19066 (apdu_get_status_internal): It's lower-level driver which judge
19067 it's not needed. Otherwise, it can't detect the removal.
19068 * scd/ccid-driver.c (ccid_slot_status): After the POWERED_OFF check,
19069 we can skip sending GetSlotStatus packet on wire, when no need.
19071 scd: Don't send GET_STATUS packet if not needed.
19072 + commit 7c8eee4d396a751d41fd1ee1e1b87b851fca172a
19073 * scd/apdu.c (apdu_get_status_internal): Add ON_WIRE arg.
19074 (apdu_connect): Call apdu_get_status_internal with ON_WIRE enabled.
19075 (apdu_get_status): For periodical check, call apdu_get_status_internal
19076 with ON_WIRE disabled.
19078 scd: Fix cancel INTERRUPT transfer.
19079 + commit 216afba0d99582d0fbae1d6e925f4ddb349d9de3
19080 * scd/ccid-driver.c (do_close_reader): Don't lock events, but check the
19081 return value of libusb_cancel_transfer.
19083 2017-01-27 NIIBE Yutaka <gniibe@fsij.org>
19085 scd: More changes on watching removal of card/reader.
19086 + commit f3d9b2582bcaa1936b4fed5ec42a889b02df2f42
19087 * scd/app-common.h (struct app_ctx_s): Rename field to
19088 periodical_check_needed.
19089 * scd/scdaemon.c (update_usb): Rename from update_fdset_for_usb.
19090 Don't use libusb_get_pollfds any more.
19091 (scd_kick_the_loop): New.
19092 (need_tick): Follow the rename.
19093 (handle_connections): No libusb event handling here.
19094 * scd/app.c (app_new_register): Follow the change of rename.
19095 (select_application, scd_update_reader_status_file): Likewise.
19096 * scd/ccid-driver.c (ccid_usb_thread_is_alive): New.
19097 (intr_cb): Call scd_kick_the_loop.
19098 (ccid_usb_thread): New. Thread to invoke INTERRUPT callback.
19099 (ccid_open_usb_reader): Add thread invocation.
19100 (ccid_require_get_status): Remove
19101 LIBUSB_WORKS_EXPECTED_FOR_INTERRUPT_ENDP.
19102 (do_close_reader): Carefully handle handle->transfer.
19103 (get_escaped_usb_string): Insert npth_unprotect/npth_protect.
19104 (do_close_reader, bulk_out, bulk_in, abort_cmd, ccid_slot_status)
19105 (ccid_transceive, ccid_transceive_secure): Likewise.
19107 scd: Fix release of transfer object.
19108 + commit f92fe33f11c44f14fd31682259fcd231e8fa9e75
19109 * scd/ccid-driver.c (intr_cb): Handle LIBUSB_TRANSFER_CANCELLED.
19110 (do_close_reader): When callback is active, call
19111 libusb_cancel_transfer and wait callback is fired off.
19113 scd: Improve watching USB device removal.
19114 + commit 25cc8575da9a9b8bf60c64c8059cb5f73cc52e1d
19115 * scd/apdu.c(struct reader_table_s): Add require_get_status.
19116 (apdu_connect): Change return value meaning. Call apdu_reset here.
19117 * scd/app.c (app_new_register): Add require_get_status.
19118 (select_application): Use the return value of apdu_connect.
19119 (scd_update_reader_status_file): Call update_fdset_for_usb with
19120 checking all_have_intr_endp.
19121 (app_list_start, app_list_finish): Remove.
19122 * scd/ccid-driver.c (struct ccid_driver_s): Add transfer.
19123 (intr_cb): Don't call libusb_transfer in this callback.
19124 (ccid_require_get_status): New.
19125 (do_close_reader): Call libusb_transfer here.
19126 * scd/scdaemon.c (update_fdset_for_usb): Remove the first argument.
19128 scd: Wake up the select when new USB scan.
19129 + commit 031e3fa7b9a6770a4de1a184555250feeba0d26f
19130 * scd/scdaemon.c (update_fdset_for_usb): Wake up the select(2).
19131 (handle_connections): Use a kind of "self-pipe" technique.
19133 2017-01-26 NIIBE Yutaka <gniibe@fsij.org>
19135 scd: Only submit apdu_get_status when needed.
19136 + commit 881dcdfd84ebad36bff20c895e629025bed9d94e
19137 * scd/apdu.c (apdu_dev_list_finish): Return Boolean value if
19138 all device support INTERRUPT transfer.
19139 * scd/ccid-driver.c (ccid_dev_scan_finish): Likewise.
19140 * scd/app.c (app_new_register): Fix initial value of card_status.
19141 (select_application): Call update_fdset_for_usb.
19142 (scd_update_reader_status_file): Ditto.
19143 * scd/scdaemon.c (update_fdset_for_usb, need_tick): New.
19144 (handle_connections): Call handle_tick when select returns.
19145 Let select watch USB file descriptors, too.
19146 Call libusb_handle_events_timeout_completed for INTERRUPT transfer.
19148 scd: Fix APP reference counting.
19149 + commit 9b06633c811e8815c07d744f20b45405cb082367
19150 * scd/app.c (scd_update_reader_status_file): Don't call another
19151 release_application_internal.
19152 * scd/command.c (open_card_with_request): Don't require APPTYPE !=
19155 scd: Add INTERRUPT endp support to CCID driver.
19156 + commit bb5ceb78c333129a44c0144f2cf49b17ede898f1
19157 * scd/app.c (scd_update_reader_status_file): Fix releas of APP.
19158 * scd/ccid-driver.c (struct ccid_driver_s): Add INTR_BUF.
19159 (intr_cb, ccid_setup_intr): New.
19160 (ccid_open_usb_reader): Call ccid_setup_intr.
19161 (ccid_slot_status): Return CCID_DRIVER_ERR_NO_READER when removed.
19163 2017-01-25 Justus Winter <justus@g10code.com>
19165 gpg: Fix searching for mail addresses in keyrings.
19166 + commit 3f4f20ee6eff052c88647b820d9ecfdbd8df0f40
19167 * g10/keyring.c (compare_name): Fix KEYDB_SEARCH_MODE_MAIL* searches
19168 in keyrings when the UID is a plain addr-spec.
19170 tests,w32: Fix GPGME tests requiring a pinentry.
19171 + commit 02a39f0d1ed717f6fc33392e6ce4ab421c3bcbba
19172 * tests/gpgme/gpgme-defs.scm: Use our fake pinentry, and configure it
19173 to supply the correct passphrase.
19175 tests,w32: Fix gpgsm signature verification test.
19176 + commit 7d5a0ed792133d875fcedb6e23a9a3682f1a23f9
19177 * tests/gpgsm/verify.scm: Use 'call-with-binary-output-file' to avoid
19178 automatic line-ending conversion.
19180 agent: Fix double free.
19181 + commit e175152ef7515921635bf1e00383e812668d13fc
19182 * agent/cache.c (agent_store_cache_hit): Make sure the update is
19185 tests: Skip GPGME tests that are not built.
19186 + commit 5f2da5d439debf44615a97de788d8f720b517972
19187 * tests/gpgme/wrap.scm: Skip tests that are not built.
19189 tests,w32: Fix locating GPGME's tests on Windows.
19190 + commit 6ecd8b3e71632bbcca524ad735c83bdc2a4c4a4a
19191 * tests/gpgme/run-tests.scm: Qualify the test with the executable
19194 2017-01-24 Werner Koch <wk@gnupg.org>
19196 gpg: Print a warning on Tor problems.
19197 + commit 770b75a746836773909af25ccb9b480e61cea677
19198 * dirmngr/ks-engine-hkp.c (tor_not_running_p): New.
19199 (map_host): Call that to print a warning.
19200 (handle_send_request_error): Ditto and avoid marking the host dead.
19201 Also print a tor_config_problem warning. Add arg CTRL; adjust callers
19202 to pass that new arg.
19203 * g10/call-dirmngr.c (ks_status_cb): Detect and print the new
19206 dirmngr: Simplify error returning inside http.c.
19207 + commit 51e5a5e5a46279809848b4ab4419f35045336010
19208 * dirmngr/http.c (connect_server): Change to return an gpg_error_t
19209 and to store socket at the passed address.
19210 (http_raw_connect, send_request): Adjust accordingly.
19212 dirmngr: New option --disable-ipv4.
19213 + commit 72736af86a501592d974d46ff754a63959e183bd
19214 * dirmngr/dirmngr.c (oDisableIPv4): New const.
19215 (opts): New option --disable-ipv4.
19216 (parse_rereadable_options): Set that option.
19217 * dirmngr/dirmngr.h (opt): New field 'disable_ipv4'.
19218 * dirmngr/dns-stuff.c (opt_disable_ipv4): bew var.
19219 (set_dns_disable_ipv4): New.
19220 (resolve_name_standard): Skip v4 addresses when OPT_DISABLE_IPV4 is
19222 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
19223 (send_request): Pass HTTP_FLAG_IGNORE_IPv4 if opt.disable_v4 is set.
19224 * dirmngr/crlfetch.c (crl_fetch): Ditto.
19225 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Ditto.
19226 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
19227 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
19229 2017-01-24 Justus Winter <justus@g10code.com>
19231 tools: Use platform abstraction for I/O.
19232 + commit 73d6572bd0f260c5aa1e191a1ba4859ec6fa262c
19233 * tools/gpg-connect-agent.c (main): Use a gpgrt_stream_t for
19234 'script_fp'. Adapt accordingly.
19236 tools: Use platform abstraction for I/O.
19237 + commit 77b8aff4e1bb641f497e63230a5006ab70e6c3a8
19238 * tools/gpgconf-comp.c (retrieve_options_from_file): Use a
19239 gpgrt_stream_t for 'list_file'. Adapt accordingly.
19240 (copy_file): Likewise for 'src' and 'dst'.
19241 (change_options_file): Likewise for 'src_file' and 'dest_file'.
19242 (change_options_program): Likewise for 'src_file' and 'dest_file'.
19243 (gc_process_gpgconf_conf): Likewise for 'config'.
19245 tools: Use platform abstraction for renaming files.
19246 + commit bfd75e9492fc4edd86f4049a62304943a7b2a29a
19247 * tools/gpgconf-comp.c (gc_component_change_options): Use
19248 'gnupg_rename_file'. Also, block signals across all renames in an
19249 attempt to make the whole process atomic.
19251 tools: Add comments explaining the functions parameters.
19252 + commit 82e309ad06884e54693f4856412984331febdda0
19253 * tools/gpgconf-comp.c (change_options_file): Add comments explaining
19254 the functions parameters.
19255 (change_options_program): Likewise.
19257 tools: Improve error handling.
19258 + commit b0348fdb26637b0bcbd68a96c1746a1613b309af
19259 * tools/gpgconf-comp.c (gp_component_change_options): Improve error
19260 handling when reading from stdin.
19262 tools: Fix memory leak.
19263 + commit 5b28f025085b386e0ec49535d4cd3f875a414eb0
19264 * tools/gpgconf-comp.c (change_options_file): Fix leak.
19266 tests: Add test demonstrating issue2929.
19267 + commit 5aafa56dffefe3fac55b9d0555c7c86e8a07f072
19268 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19269 * tests/openpgp/issue2929.scm: New file.
19271 tests: Enable gpgconf test.
19272 + commit 628ff843466b42309f850b8d65b13cf5f586b81f
19273 * tests/openpgp/Makefile.am (XTESTS): Re-add gpgconf.scm.
19275 2017-01-23 Werner Koch <wk@gnupg.org>
19278 + commit f8289b1d28f501d2f37bf9ccb5e42f7fb27b4688
19281 build: Change make distcheck configure and temp. remove gpgconf.scm.
19282 + commit 25e029823813e190a18b601af60efcb1fb3b84af
19283 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Also test gpgtar and
19284 wks-tools. Disable ntbtls.
19285 * tests/openpgp/Makefile.am (XTESTS): Temporary remove gpgconf.scm.
19287 Fix format string errors and some missing error case initialization.
19288 + commit af5979a42b9468ffe0f3ac6de5a77d982c5cf8a0
19289 * common/logging.c (do_logv): Remove extra parentheses in comparison.
19291 * dirmngr/dns-stuff.c (resolve_addr_libdns): Init RES so that
19292 dns_res_close is given a defined value in the error case.
19294 * dirmngr/http.c (cookie_read, cookie_write) [HTTP_USE_NTBTLS]: Fix
19295 format string char.
19297 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Remove duplicate "const".
19298 * dirmngr/ks-engine-http.c (ks_http_help): Ditto.
19299 * dirmngr/ks-engine-kdns.c (ks_kdns_help): Ditto.
19300 * dirmngr/ks-engine-ldap.c (ks_ldap_help): Ditto.
19302 * scd/app-p15.c (send_keypairinfo, do_getattr): Fix format string
19304 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Init PID for the
19306 (scdaemon_runtime_change): Ditto.
19307 (dirmngr_runtime_change): Ditto.
19309 * tools/gpgconf.c (query_swdb): Init VALUE_SIZE_UL.
19311 dirmngr: On SIGHUP mark all keyservers alive.
19312 + commit 3ca3da8fc4ef802b8cceec5fde398a07b4888848
19313 * dirmngr/ks-engine-hkp.c (ks_hkp_reload): New.
19314 * dirmngr/dirmngr.c (dirmngr_sighup_action): Call it.
19316 2017-01-23 Gaetan Bisson <bisson@archlinux.org>
19318 libdns: Hack to skip negation term.
19319 + commit d4c0187dd93163f12e9f953366adef81ecf526a6
19320 * dirmngr/dns.c (dns_nssconf_loadfile): Skip negation terms in
19321 nsswitch.conf parser.
19323 2017-01-23 Werner Koch <wk@gnupg.org>
19325 dirmngr: Print debug message only with --debug.
19326 + commit 9ae0b81e4ff08712da642456d0164f81924a91e4
19327 * dirmngr/dns-stuff.c (libdns_init): Call log_debug only if opt_debug
19330 2017-01-23 Phil Pennock <gnupg-devel@spodhuis.org>
19332 dirmngr: Handle missing nsswitch.conf.
19333 + commit 88ade475c56ac3712d6bd6d41ae38e1421dcb320
19334 * dirmngr/dns-stuff.c (libdns_init): Fallback to files,dns.
19336 2017-01-23 Damien Goutte-Gattat <dgouttegattat@incenp.org>
19338 gpg: Fix misleading log message when checking regexp.
19339 + commit a85731ada2d361eacddc5ae92f80d34792dd4b5e
19340 * src/trustdb.c (check_regexp): Correctly print whether the
19341 regexp matched or not.
19343 2017-01-23 Werner Koch <wk@gnupg.org>
19345 gpg: New export and import options "backup" and "restore".
19346 + commit 953d4ec6afd1b42feb7465ee57e48d72f033019a
19347 * g10/export.c (parse_export_options): Add "backup" and its alias
19349 (do_export_one_keyblock): Export ring trust packets in backup mode.
19350 * g10/import.c (parse_import_options): Add "restore" and its alias
19352 (read_block): Import ring trust packets.
19354 2017-01-23 NIIBE Yutaka <gniibe@fsij.org>
19356 scd: Fix INTERRUPT transfer.
19357 + commit 21c9ebb908c2ad2e322e7a13e59e5880494c4d67
19358 * scd/ccid-driver.c (find_endpoint): Don't return Bulk endpoint as
19359 Interrupt endpoint.
19360 (ccid_poll): Call libusb_interrupt_transfer.
19362 2017-01-19 Werner Koch <wk@gnupg.org>
19364 build: Print a commit id in the generated ChangeLog.
19365 + commit e926f30a1cda75f6334b79c303b5134f0441a3dc
19366 * build-aux/gitlog-to-changelog: Print an extra line with the commit
19369 common: Fix buffer copy code again.
19370 + commit e031b3c16cfec583c4322c84d299b355f0849c77
19371 * common/exectool.c (my_error_from_errno): Remove.
19372 (copy_buffer_do_copy): Do without var RC.
19373 (copy_buffer_flush): Ditto. Use ERRNO instead of es_write return
19375 (gnupg_exec_tool): Correctly return errors from es_read.
19377 2017-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
19379 gpg: Allow to freeze faked system time.
19380 + commit 3daeef702b2e6a42f0f396b828f86ffc3f33fc88
19381 * g10/gpg.c (main): If the parameter for --faked-system-time
19382 ends with a '!', freeze time at the specified point.
19383 * common/gettime.c (gnupg_set_time): Allow to freeze the time
19384 at an arbitrary time instead of only the current time.
19385 * doc/gpg.texi: Update documentation for --faked-system-time.
19387 2017-01-19 Werner Koch <wk@gnupg.org>
19389 common: Clarify use of vars in buffer copy code.
19390 + commit 55c9212a2338bf0b07c8cf3a69bcedaa28d48d43
19391 * common/exectool.c (my_error_from_errno): New.
19392 (copy_buffer_do_copy): Use separate vars for errno values and
19393 gpg-error values for clarity. s/assert/log_assert/.
19394 (copy_buffer_flush): Ditto.
19395 (gnupg_exec_tool_stream): Use gpg_err_code when testing.
19397 2017-01-19 NIIBE Yutaka <gniibe@fsij.org>
19399 dirmngr: Add setup of CA for NTBTLS.
19400 + commit 367349b4dcc97718f8ae1163d1389d2a46fc3453
19401 * dirmngr/http.c [HTTP_USE_NTBTLS] (http_session_new): Add CA by
19402 ntbtls_set_ca_chain.
19404 2017-01-18 Justus Winter <justus@g10code.com>
19406 common: Fix flushing copy buffers.
19407 + commit 34fa2d79a07a079be472c3ff486debfdac8c6070
19408 * common/exectool.c (copy_buffer_flush): Write and flush the data, but
19409 do not hide EAGAIN from the caller.
19410 (gnupg_exec_tool_stream): Retry on EAGAIN.
19412 2017-01-18 Werner Koch <wk@gnupg.org>
19414 agent: Reduce sleep time in the progress callback.
19415 + commit 3d356d165aed7d76a3ea811b1d24ed0a05ac90d4
19416 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Reduce sleep time
19417 from 100ms to 1ms or use gpgrt_yield when build against a recent
19420 gpgconf: Allow "all" for --launch, --kill, and --reload.
19421 + commit 2312248b2e3adffa52d8a3ac4f24fe2c88f0f569
19422 * tools/gpgconf-comp.c (gc_component_launch): Allow -1 for COMPONENT.
19423 (gc_component_kill): Ditto.
19424 (gc_component_reload): For robustness change the condition to < 0.
19425 * tools/gpgconf.c (main) <aLaunch, aKill, aReload>: Support argument
19428 gpg: Remove unused definitions.
19429 + commit 701f54eccf3da3319dd6d74f46b852c64d90bc52
19430 * g10/keydb.h (rt_UNKNOWN, rt_RING): Remove constants.
19431 (keyblock_pos_struct, KBPOS): Remove struct and type.
19433 2017-01-18 NIIBE Yutaka <gniibe@fsij.org>
19435 scd: Cleanup SERIALNO protocol.
19436 + commit 79cea89774e6327b6785e22b7057f9e3e188ac2b
19437 * scd/app.c (app_get_serial_and_stamp): Remove.
19438 (app_get_serialno): New.
19439 (app_write_learn_status): Use send_status_direct.
19440 (app_getattr): Use app_get_serialno for SERIALNO and
19441 send with send_status_direct.
19442 * scd/app-openpgp.c (do_getattr): Likewise.
19443 * scd/command.c (cmd_serialno): Don't send TIMESTAMP of 0.
19444 (cmd_learn): Likewise. Don't inquire with TIMESTAMP of 0.
19446 scd: Add "card_list" sub command for GETINFO.
19447 + commit 8b1f24a29ebc7651437c01990215a55b1136dae0
19448 * scd/app.c (app_send_card_list): New.
19449 * scd/command.c (cmd_getinfo): Fix "status" sub command.
19450 Add "card_list" sub command.
19452 2017-01-17 Werner Koch <wk@gnupg.org>
19454 build: Handle packages with dashes in --find-version.
19455 + commit a09f258b1412209763222e2e81bab79663e4d685
19456 * autogen.sh (--find-version): Improve version extraction.
19457 * (--help): Extend.
19459 gpg: Clean bogus subkey binding when cleaning a key.
19460 + commit 356323768a1a29138581d0aceed0336ab8be0d5c
19461 * g10/trust.c (clean_key): Also clean bogus subkey bindings.
19463 gpg: Sync print of additional sig data in --edit-key.
19464 + commit 766c25018b288a7185c6da6adac0dec01a64e94a
19465 * g10/keylist.c (show_policy_url): Implement MODE -1.
19466 (show_keyserver_url): Ditto.
19467 (show_notation): Ditto.
19468 * g10/keyedit.c (print_one_sig): Print policy URL, keyserver URL and
19469 notation data to the tty.
19471 common: Remove unused function tty_print_string.
19472 + commit bae42e543799a428e59bad870aed9719dd6e6e45
19473 * common/ttyio.c (tty_print_string): Rename to ...
19474 (do_print_string): this. Make local. Simplify FP case by using
19475 print_utf8_buffer. Change caller.
19477 gpg: Prepare some key cleaning function for use with secret key packets.
19478 + commit adbfbf608e75cdd72ae7b3a538b91bc0e236a18f
19479 * g10/trust.c (mark_usable_uid_certs): Allow use of secret key packets.
19480 (clean_sigs_from_uid): Ditto.
19481 (clean_uid_from_key): Ditto.
19482 (clean_one_uid): Ditto.
19483 (clean_key): Ditto.
19485 2017-01-16 Werner Koch <wk@gnupg.org>
19487 dirmngr: Implement hkps lookups using literal addresses.
19488 + commit e6aebfe3d0f16c483296fd125b66a44017fe15f4
19489 * dirmngr/ks-engine-hkp.c (map_host): For literal addresses do a
19492 dirmngr: Allow reverse DNS lookups in Tor-mode.
19493 + commit 9850124c7bdf0a0e7c1866abc85f3437257d7095
19494 * dirmngr/dns-stuff.c (resolve_dns_name): Move up in the file.
19495 (resolve_addr_libdns): New.
19496 (resolve_dns_addr): Divert to resolve_dns_addr.
19498 dirmngr: Avoid network queries for literal IP addresses.
19499 + commit daae97bc14742c75408c4eb05808a2102cfe2bcf
19500 * dirmngr/dns-stuff.c (resolve_name_libdns): USe flags AI_NUMERICHOST
19501 for literal IP addresses.
19502 (resolve_name_standard): Ditto.
19504 dirmngr: Fix URL creation for literal IPv6 addresses in HKP.
19505 + commit 82646bbf1a5a7d745da81b239a12667a51703dc1
19506 * dirmngr/dns-stuff.c (is_ip_address): Make the return value depend on
19507 the address family.
19508 * dirmngr/ks-engine-hkp.c (map_host): Rename arg R_POOLNAME to
19509 R_HTTPHOST because that is its purpose. Note that the former
19510 behaviour of storing a NULL to indicate that it is not a pool has not
19512 (make_host_part): Ditto.
19513 (make_host_part): Make sure that literal v6 addresses are correclty
19514 marked in the constructed URL.
19516 2017-01-16 Justus Winter <justus@g10code.com>
19518 tests: Improve GPGHOME handling.
19519 + commit 8b1611a9605b636db3e07a9d81016a11b318724c
19520 * tests/openpgp/defs.scm (GPGHOME): New variable.
19521 * tests/openpgp/ssh-import.scm: Remove redundant code, use 'path-join'.
19522 * tests/openpgp/tofu.scm: Likewise.
19524 2017-01-16 NIIBE Yutaka <gniibe@fsij.org>
19526 agent: Ask specific SERIALNO for pksign/pkdecrypt.
19527 + commit 0801f49b0dc7102943f0e9fa51061f50f5708ca6
19528 * agent/call-scd.c (agent_card_serialno): Add DEMAND argument.
19529 * agent/command-ssh.c (card_key_available): Follow the change.
19530 * agent/learncard.c (agent_handle_learn): Likewise.
19531 * agent/divert-scd.c (ask_for_card): Use DEMAND argument.
19533 scd: Add --demand option for SERIALNO.
19534 + commit 2e6f1c99d4f66a23a752092397e20a84964edf48
19535 * scd/app.c (select_application): Add SERIALNO_BIN and SERIALNO_BIN_LEN
19536 arguments. Return matched APP with a serial number when specified.
19537 * scd/command.c (open_card): Modify for the implicit open only.
19538 (open_card_with_request): New for explicit open and support match with a
19540 (cmd_serialno): Support --demand option.
19541 (cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkauth)
19542 (cmd_pkdecrypt, cmd_getattr, cmd_setattr, cmd_writecert, cmd_writekey)
19543 (cmd_genkey, cmd_random, cmd_passwd, cmd_checkpin, cmd_apdu): Follow
19544 the change of open_card.
19546 2017-01-12 Werner Koch <wk@gnupg.org>
19548 build: Make autogen.sh more POSIX friendly (next try)
19549 + commit 3db76c9277d918dec9721a6439f4db3b3c06aba3
19550 * autogen.sh: Fix dd count to 5.
19552 gpg: Rename a var to avoid a shadowing warning.
19553 + commit c99a09f111c5980ae034faaea61a00d9ad60463c
19554 * g10/keygen.c (keygen_set_std_prefs): Rename variable.
19556 tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.
19557 + commit 5c0777e1ca02ff1767755c417b64d6f78e02f475
19558 * configure.ac (AC_CHECK_HEADERS): Add stdint.h.
19559 * common/t-gettime.c: Include stdint.h.
19560 (UINTMAX_C): Define replacement.
19561 (test_isotime2epoch): Use UINTMAX_C for the >32 bit constants.
19563 build: Make autogen.sh more POSIX friendly.
19564 + commit 3c00b52f7cb0fbd756c0bbe5134b8f2d69c60dd1
19565 * autogen.sh: Replace non POSIX "cp -a" and "head -c".
19567 libdns: Silence -Wstrict-prototypes on some function ptrs.
19568 + commit 97372b39cd9b4c84a083eadbf072fff77799617f
19569 * dirmngr/dns.c (dns_rrtype): Ignore -Wstrict-prototypes warning.
19571 libdns: Provide replacement for EPROTO.
19572 + commit 0fadff9cdde47e42f7e428bc903b3626c67ba9c0
19573 * dirmngr/dns.c (EPROTO) ![EPROTO]: Define to EPROTONOSUPPORT.
19575 2017-01-11 Werner Koch <wk@gnupg.org>
19577 dirmngr: After a connection failure log a hint if Tor is not running.
19578 + commit 20dfcfe08c618d23134d5d6efef7676b090f30d3
19579 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Check whether
19582 dirmngr: Mark hosts dead on ENETDOWN.
19583 + commit 76fb2febde10da8237bbe7613830b51af2a45139
19584 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Take care of
19587 dirmngr: Fix Tor access for v6 addresses.
19588 + commit 09aeac41c97bc8ecb44a09886c7fdbd9a6ec5c7f
19589 * dirmngr/http.c (use_socks): New.
19590 (my_sock_new_for_addr): New.
19591 (connect_server): Replace assuan_sock_new by my_sock_new_for_addr.
19593 dirmngr: Remove warnings about unused global variables.
19594 + commit 915864e7f0315b0c96315d0bcd48b1b93592353a
19595 * dirmngr/crlcache.c (oidstr_issuingDistributionPoint): Comment.
19596 * dirmngr/ocsp.c (oidstr_certHash): Comment.
19598 dirmngr: Implement debug option "network" for http.
19599 + commit da894c48ec3393e7c815f575daa5a52ab37cc102
19600 * dirmngr/dirmngr.c (parse_rereadable_options): Set http debugging.
19602 dirmngr: Add debug code to http.c.
19603 + commit 02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a
19604 * dirmngr/http.c (opt_verbose, opt_debug): New vars.
19605 (http_set_verbose): New function.
19606 (_my_socket_new): Add debug output.
19607 (_my_socket_ref, _my_socket_unref, session_unref): Call log_debug if
19608 OPT_DEBUG has ben set to 2 in a debugger.
19609 (http_session_new, http_session_ref): Ditto.
19610 (send_request, http_start_data): Print debug output for the request.
19611 (parse_response): Change to use log_debug_string for the response.
19613 common: New function log_debug_with_string.
19614 + commit 088d71d3671e74eb088386026f0e439a7e3b5543
19615 * common/logging.c (do_logv): Factor some code out to ...
19616 (print_prefix): new.
19617 (log_logv): Add arg EXTRASTRING and print it. Change all callers to
19619 (log_debug_with_string): New. Uses EXTRASTRING.
19621 2017-01-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
19623 common: Avoid unnecessary ambiguity in argparse.
19624 + commit 7249ab0f95d1f6cb8ee61eefedc79801bb56398f
19625 * common/argparse.c (find_long_option): Avoid unnecessary ambiguity.
19627 2017-01-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
19629 systemd-user: Enable "systemctl --user reload {dirmngr,gpg-agent}"
19630 + commit a20a450ac4ef10847fd59a5fd3acbbd2bfcaa6a2
19631 * doc/examples/systemd-user/*.service: Add ExecReload directives to
19632 indicate the canonical way to reload the services.
19634 GnuPG recommends reloading the agent and dirmngr with "gpgconf
19635 --reload". if anyone is running them as systemd user services, they
19636 might ask them to reload in the systemd way, so teach systemd the
19639 2017-01-10 Justus Winter <justus@g10code.com>
19641 tests: Improve gpgconf test.
19642 + commit 88e42ef08d65d4d1bc29c6cea48df19ca0d5e2bd
19643 * tests/openpgp/defs.scm (valgrind): New variable.
19644 (gpg-config): Fix clearing an option.
19645 * tests/openpgp/gpgconf.scm: Also toggle 'quiet'.
19647 tools: Fix memory leaks and improve error handling.
19648 + commit 1f5caf90bfaaaf7b9d8c06c12087aeeae3748032
19649 * tools/gpgconf-comp.c (gc_option_free): New function.
19650 (gc_components_free): Likewise.
19651 (gc_components_init): Likewise.
19652 (retrieve_options_from_program): Use 'xfree', fix memory leak.
19653 (change_options_program): Improve error handling.
19654 (gc_component_change_options): Fix memory leaks.
19655 * tools/gpgconf.c (main): Initialize components.
19656 * tools/gpgconf.h (gc_components_init): New prototype.
19658 tests: Add test for gpgconf.
19659 + commit c8cfc62125aceee0ca48aab5c8a9fea1ec1ef652
19660 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19661 * tests/openpgp/defs.scm (percent-encode): New function.
19662 (gpg-conf): Generalize so that we can feed stdin.
19663 (gpg-config): New function.
19664 * tests/openpgp/gpgconf.scm: New file.
19666 common: Fix fallback code.
19667 + commit bfd6a490129ffc7c7ac8776bf5a5da3b1ddf6d42
19668 * common/logging.c (_log_assert): Fix the variant for compilers that
19669 do not support __FUNCTION__.
19670 * common/logging.h (_log_assert): Likewise.
19672 2017-01-09 Werner Koch <wk@gnupg.org>
19674 dirmngr: Use "pgpkey-hkps" and "pgpkey-hkp" for SRV record lookups.
19675 + commit 0cc975d8a1cd54115938202432e43263b8893ea4
19676 * dirmngr/ks-engine-hkp.c (map_host): Chnage arg NO_SRV to SRVTAG.
19677 (make_host_part): Rewrite.
19679 dirmngr: Do not use a SRV record for HKP if a port was specified.
19680 + commit c2cbe2f87c480c62239dc4c2cbb352acd98cd267
19681 * dirmngr/http.h (parsed_uri_s): Add field EXPLICIT_PORT.
19682 * dirmngr/http.c (do_parse_uri): That it.
19683 * dirmngr/ks-engine-hkp.c (map_host): Add arg NO_SRV.
19684 (make_host_part): Ditto.
19685 (ks_hkp_resolve): Set NO_SRV from EXPLICIT_PORT.
19686 (ks_hkp_search): Ditto.
19687 (ks_hkp_get): Ditto.
19688 (ks_hkp_put): Ditto.
19690 2017-01-08 Werner Koch <wk@gnupg.org>
19692 dirmngr: Implement experimental SRV record lookup for WKD.
19693 + commit 88dc3af3d4ae1afe1d5e136bc4c38bc4e7d4cd10
19694 * dirmngr/server.c (cmd_wkd_get): Support SRV records.
19696 dirmngr: Improve debug output for TLS.
19697 + commit 714faea4fa7f30d42e9986358214a99aa8fa57b3
19698 * dirmngr/misc.c (dump_cert): Also print SubjectAltNames.
19700 dirmngr: Change internal SRV lookup API.
19701 + commit 16078f3deea5b82ea26e2f01dbd3ef3a5ce25410
19702 * dirmngr/dns-stuff.c (get_dns_srv): Add args SERVICE and PROTO.
19703 * dirmngr/http.c (connect_server): Simplify SRV lookup.
19704 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
19705 * dirmngr/t-dns-stuff.c (main): Adjust for changed get_dns_srv.
19707 dirmngr: Strip root zone suffix from libdns SRV results.
19708 + commit 9fa94aa10778bbd680315e93b23175423e338c40
19709 * dirmngr/dns-stuff.c (getsrv_libdns): Strip trailing dot from the
19712 2017-01-06 Werner Koch <wk@gnupg.org>
19714 agent,w32: Fix annoying output to DebugView.
19715 + commit 8d774904c8066d8c0f19cfffe2d568979bb8c470
19716 * agent/gpg-agent.c (startup_fd_list): Do not define for W32.
19717 (main) [W32]: Do not call get_all_open_fds.
19719 2017-01-06 NIIBE Yutaka <gniibe@fsij.org>
19721 scd: Fix for --disable-ccid for scdaemon.
19722 + commit 858e14cd794e2a6125d51e652a754bbe26def997
19723 * scd/apdu.c (apdu_dev_list_finish): Don't call ccid_dev_scan_finish
19725 (apdu_open_reader): Only increment when it's zero.
19727 scd: Fix for --disable-ccid-driver.
19728 + commit 62268a2732dddca7a05ca4cf45d0e4338c7dc3c4
19729 * scd/apdu.c [HAVE_LIBUSB] (apdu_dev_list_start): Conditionalize.
19730 [HAVE_LIBUSB] (apdu_dev_list_finish, apdu_open_reader): Likewise.
19732 scd: Support multiple readers by CCID driver.
19733 + commit 8a41e73c31adb86d4a7dca4da695e5ad1347811f
19734 * scd/apdu.c (new_reader_slot): Lock is now in apdu_dev_list_start.
19735 (close_pcsc_reader_direct, close_ccid_reader): RDRNAME is handled...
19736 (apdu_close_reader): ... by this function now.
19737 (apdu_prepare_exit): Likewise.
19738 (open_ccid_reader): Open with dev_list.
19739 (apdu_dev_list_start, apdu_dev_list_finish): New.
19740 (apdu_open_one_reader): New.
19741 (apdu_open_reader): Support multiple readers.
19742 * scd/app.c (select_application): With SCAN, opening all readers
19743 available, and register as new APP.
19744 (app_write_learn_status): app->ref_count == 0 is valid for APP which is
19746 (app_list_start, app_list_finish): New.
19747 * scd/ccid-driver.c (struct ccid_driver_s): Remove RID and BCD_DEVICE.
19749 (parse_ccid_descriptor): BCD_DEVICE is now on the arguments.
19750 (ccid_dev_scan, ccid_dev_scan_finish): New.
19751 (ccid_get_BAI, ccid_compare_BAI, ccid_open_usb_reader): New.
19752 (ccid_open_reader): Support multiple readers.
19753 (ccid_set_progress_cb, ccid_close_reader): No RID any more.
19755 2017-01-05 Werner Koch <wk@gnupg.org>
19757 Silence two -Wlogical-op warnings.
19758 + commit 6170eb809033c9d144abf3b1f31f8b936878cdd4
19759 * common/tlv.c (parse_ber_header): Avoid compiler warning about a
19760 duplicate condition.
19761 * tools/gpgtar-create.c (pattern_valid_p): Likewise.
19763 2017-01-05 Justus Winter <justus@g10code.com>
19765 tests: New test for --{show,override}-session-key.
19766 + commit 168c8c9d79a817c1f08a9ef976dab377f8c4c69e
19767 * tests/openpgp/Makefile.am (XTESTS): Add new test.
19768 * tests/openpgp/decrypt-session-key.scm: New file.
19771 + commit 4ded213698123a425393b89a800fda2a4ec5229d
19772 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Make
19773 hygienic, use define-macro, do not change to the ephemeral home
19775 * tests/gpgsm/setup.scm: Change to the ephemeral home directory.
19776 * tests/openpgp/setup.scm: Likewise.
19778 2017-01-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
19780 g10: avoid warning when --disable-tofu.
19781 + commit 38671cfe5a2a40bb991619f4cb992c42b5f1e8cd
19782 If configured with --disable-tofu, we see compiler warnings about an
19783 unused variable. This should remove those warnings.
19785 2017-01-04 Justus Winter <justus@g10code.com>
19787 tests,w32: Fix locating the components.
19788 + commit 28e149609da44fab600f6a11b385d1c8ca8e7eb9
19789 * tests/openpgp/defs.scm (percent-decode): New function.
19790 (bin-prefix): New variable.
19791 (installed?): Likewise.
19792 (tool-hardcoded): Use the new variables.
19793 (gpg-conf): Use the new function to decode the values.
19794 (gpg-components): Do not use '--build-prefix' when 'installed?'.
19796 2017-01-03 Werner Koch <wk@gnupg.org>
19798 dirmngr: Make sure Tor mode is also set for DNS on SIGHUP.
19799 + commit 969512401603639e4467ede7d892f1b02582c2c9
19800 * dirmngr/dns-stuff.c (enable_dns_tormode): Always succeed.
19801 (reload_dns_stuff): Reset tor port.
19802 * dirmngr/dirmngr.c (set_tor_mode): Also enable Tor mode for DNS.
19803 (main): Remove warning that Tor mode may not fully work.
19804 * dirmngr/server.c (cmd_dns_cert): Remove explicit Tor for DNS
19806 * dirmngr/t-dns-stuff.c (main): Remove option --new-circuit and error
19807 checking for enable_dns_tormode.
19809 dirmngr: New debug message on correctly initialized libdns.
19810 + commit 0004d52ba2f1245c84f95a151342ad99fd72ca3d
19811 * dirmngr/dns-stuff.c (libdns_init): Add debug level diagnostic on
19814 2017-01-02 Justus Winter <justus@g10code.com>
19816 common: Turn assertions into expressions.
19817 + commit a1e0d4a1e75fc6e6c3392a4e1d1d27005b38d6cc
19818 * common/logging.h (log_assert): Turn this into an expression so it
19819 can be used in expressions.
19821 tests: Fix faked time in the TOFU test.
19822 + commit 6d065198337b5242889723481bfa9ce81aa108bb
19823 * tests/openpgp/tofu.scm (GPG): Fix time delta.
19825 2017-01-02 Werner Koch <wk@gnupg.org>
19827 g13: Improve printing of debug infos.
19828 + commit 5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49
19829 * g13/g13tuple.c (all_printable): Make it work.
19831 Replace use of variable-length-arrays.
19832 + commit 6b84ecbf312d98ac8cce9fe5facdc815bc742fa1
19833 * common/t-iobuf.c (main): Replace variable-length-array.
19834 * g10/gpgcompose.c (mksubpkt_callback): Ditto.
19835 (encrypted): Ditto.
19836 * g10/t-stutter.c (log_hexdump): Ditto.
19837 (oracle_test): Ditto.
19838 * g10/tofu.c (get_policy): Ditto. Use "%zu" for size_t.
19839 * scd/app-openpgp.c (ecc_writekey): Replace variable-length-array.
19840 Check for zero length OID_LEN.
19842 2017-01-02 Justus Winter <justus@g10code.com>
19844 gpgscm: Fail if too many arguments are given.
19845 + commit b0e14bd6ff8401b12b2b39f75aef94d3ad28017f
19846 * tests/gpgscm/scheme.c (opexe_0): Enable check.
19847 * tests/gpgscm/tests.scm (test::report): Remove superfluous argument.
19849 gpgscm: Add 'finally', rework all macros.
19850 + commit b79274a3b7e58f88e9a8c1dc1fb24dd3e983543c
19851 * tests/gpgscm/init.scm (finally): New macro.
19852 * tests/gpgscm/tests.scm (letfd): Rewrite.
19853 (with-working-directory): Likewise.
19854 (with-temporary-working-directory): Likewise.
19855 (lettmp): Likewise.
19857 gpgscm: Use boxed values for source locations.
19858 + commit e8b843508dac96e9d0a3140954dd5a3618669cec
19859 * tests/gpgscm/scheme-private.h (struct port): Use boxed values for
19860 filename and current line. This allows us to use the same Scheme
19861 object for labeling all expressions in a file.
19862 * tests/gpgscm/scheme.c (file_push): Use boxed type for filename.
19863 (mark): Mark location objects of port objects.
19864 (gc): Mark location objects in the load stack.
19865 (port_clear_location): New function.
19866 (port_reset_current_line): Likewise.
19867 (port_increment_current_line): Likewise.
19868 (file_pop): Adapt accordingly.
19869 (port_rep_from_filename): Likewise.
19870 (port_rep_from_file): Likewise.
19871 (port_close): Likewise.
19872 (skipspace): Likewise.
19874 (_Error_1): Likewise.
19875 (opexe_0): Likewise.
19876 (opexe_5): Likewise.
19877 (scheme_deinit): Likewise.
19878 (scheme_load_file): Likewise.
19879 (scheme_load_named_file): Likewise.
19881 2017-01-02 Werner Koch <wk@gnupg.org>
19883 dirmngr: Strip root zone suffix from libdns cname results.
19884 + commit b200e636ab20d2aa93d9f71f3789db5a04af0a56
19885 * dirmngr/dns-stuff.c (resolve_name_libdns): Strip trailing dot.
19886 (get_dns_cname_libdns): Ditto.
19888 2016-12-30 NIIBE Yutaka <gniibe@fsij.org>
19890 scd: Fix select_application.
19891 + commit 337690441fcb19343fe56b139f5649bed7d25c83
19892 * scd/app.c (select_application): Fix the condition for open.
19894 scd: Fix card removal monitor.
19895 + commit f300e12a793d59deb1a369713384eaabfa39b3e6
19896 * scd/app.c (app_reset): Call send_client_notification with REMOVAL.
19897 (scd_update_reader_status_file): Likewise.
19898 * scd/command.c (send_client_notifications): Distinguish removal.
19900 2016-12-29 NIIBE Yutaka <gniibe@fsij.org>
19902 scd: Improve internal CCID driver.
19903 + commit cdc8d0bd933b958db878861587322bc541b580b3
19904 * scd/ccid-driver.c (scan_or_find_usb_device): Don't scan for
19905 configuration but use active configuration. Support alt_setting.
19906 (scan_or_find_devices): Support alt_setting.
19907 (ccid_open_reader): Support alt_setting.
19909 scd: Fix a race condition for new_reader_slot.
19910 + commit c48cf7e32ffa02ebdf00265543344c611bef0431
19911 * scd/apdu.c (reader_table_lock, apdu_init): New.
19912 (new_reader_slot): Serialize by reader_table_lock.
19913 * scd/app.c (lock_app, unlock_app, app_new_register): Fix error code
19915 (initialize_module_command): Call apdu_init.
19916 * scd/scdaemon.c (main): Handle error for initialize_module_command.
19918 2016-12-28 NIIBE Yutaka <gniibe@fsij.org>
19920 scd: APP centric approach for device management.
19921 + commit 4cc9fc5eb9bd91d943c185d59da4a2b4cb885ee6
19922 * scd/app.c (lock_app): Rename from lock_reader and use internal field
19924 (unlock_app): Likewise.
19925 (app_dump_state): Use APP.
19926 (application_notify_card_reset): Remove.
19927 (check_conflict): Change API for APP, instead of SLOT.
19928 (check_application_conflict): Likewise.
19929 (release_application_internal): New.
19931 (app_new_register): New.
19932 (select_application): Change API for APP, instead of SLOT.
19933 (deallocate_app, release_application): Modify for manage link.
19934 (report_change): New.
19935 (scd_update_reader_status_file): Moved from command.c and
19936 use APP list, instead of VREADER.
19937 (initialize_module_command): Moved from command.c.
19939 * scd/command.c (TEST_CARD_REMOVAL): Remove.
19940 (IS_LOCKED): Simplify.
19941 (vreader_table): Remove.
19942 (vreader_slot, update_card_removed): Remove.
19943 (do_reset): Call app_reset.
19944 (get_current_reader): Remove.
19945 (open_card): Add SCAN arg.
19946 (cmd_serialno): No retry, since retry is done in lower layer in apdu.c.
19947 No do_reset, since it is done in lower layer.
19948 Add clearing card_removed flag.
19949 (cmd_disconnect): Call apdu_disconnect.
19950 (send_client_notifications): Modify for APP.
19951 (update_reader_status_file): Remove.
19953 scd: Simplify monitoring card removal.
19954 + commit f9882d8336feea96e3b5e250e9093f8cca01e08b
19955 * scd/apdu.c (struct reader_table_s): Remove any_status, last_status,
19956 status, and change_counter field.
19957 (new_reader_slot, dump_reader_status, ct_activate_card, open_ct_reader)
19958 (connect_pcsc_card, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
19959 (open_ccid_reader, apdu_reset): Follow the change.
19960 (ct_dump_reader_status): Remove.
19961 (apdu_get_status_internal, apdu_get_status): Remove CHANGED arg.
19962 (apdu_connect): Follow the change.
19963 * scd/command.c (struct vreader_s): Remove reset_failed, any, and
19965 (cmd_getinfo, update_reader_status_file): Follow the change.
19967 2016-12-27 NIIBE Yutaka <gniibe@fsij.org>
19969 scd: Improve internal CCID driver.
19970 + commit c7ec9c42246033e14ebad679d11f3b1fbeed23b7
19971 * scd/ccid-driver.c (scan_or_find_usb_device): Fix return value.
19972 Support device with multiple CCID interfaces. Fix the case with
19973 READERNO. Support partial string match of "reader-port" like PC/SC
19976 2016-12-23 NIIBE Yutaka <gniibe@fsij.org>
19978 dirmngr: Fix for --disable-libdns usage.
19979 + commit d26c51825e2255fe58305cbc1cd74fa43f80d93e
19980 * dirmngr/dns-stuff.c (enable_recursive_resolver, set_dns_nameserver)
19981 (reload_dns_stuff): Conditionalize with USE_LIBDNS.
19982 (get_h_errno_as_gpg_error): Map HOST_NOT_FOUND to GPG_ERR_NO_NAME.
19984 2016-12-22 Neal H. Walfield <neal@g10code.com>
19986 tools: Show a clearer error message if a server doesn't support WKS.
19987 + commit 1909e994cb87d6c6866a465f0c20a456d4df46cc
19988 * tools/gpg-wks-client.c (command_send): If we fail to lookup the
19989 submission address, print a better error message. If it is because
19990 the corresponding file doesn't exist, provide the hint that the server
19991 probably doesn't support WKS.
19993 2016-12-22 Werner Koch <wk@gnupg.org>
19995 wks: Let the client ignore missing policy flags.
19996 + commit e917dfcd973a3ebbf5eb584e819ffa89f932bfef
19997 * tools/gpg-wks-client.c (command_send): Ignore missing policy flags.
19999 2016-12-22 NIIBE Yutaka <gniibe@fsij.org>
20001 scd: Clean up internal API for APP.
20002 + commit 8431f5a7e88e1f42d75c4a4b61f4aa9b35457204
20003 * scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
20004 app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
20005 the second argument.
20006 * scd/app.c: Supply CTRL to lock_reader calls.
20007 * scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
20008 cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
20011 2016-12-21 Justus Winter <justus@g10code.com>
20013 gpgscm: Guard use of union member.
20014 + commit 6e96cdd41a0e55b672309431062f37c4a4a9f485
20015 * tests/gpgscm/scheme.c (opexe_5): Check that we have a file port
20016 before accessing filename. Fixes a crash on 32-bit architectures.
20018 2016-12-20 Werner Koch <wk@gnupg.org>
20020 tests: Avoid skipping exectool tests.
20021 + commit 6204f8104fea42d706a68e77e2dc0bca4704bddc
20022 * common/t-exectool.c (test_executing_true): Try also /usr/bin/true.
20023 (test_executing_false): Try also /usr/bin/false.
20025 2016-12-20 Justus Winter <justus@g10code.com>
20027 tests: Add test suite for gpgsm.
20028 + commit 36c14139285982def6ad942d4b2d8bef7ed4ea76
20029 * configure.ac (AC_CONFIG_FILES): Add new file.
20030 * tests/Makefile.am (SUBDIRS): Add new directory.
20031 * tests/gpgsm/32100C27173EF6E9C4E9A25D3D69F86D37A4F939: New file.
20032 * tests/gpgsm/Makefile.am: Likewise.
20033 * tests/gpgsm/cert_dfn_pca01.der: Likewise.
20034 * tests/gpgsm/cert_dfn_pca15.der: Likewise.
20035 * tests/gpgsm/cert_g10code_test1.der: Likewise.
20036 * tests/gpgsm/decrypt.scm: Likewise.
20037 * tests/gpgsm/encrypt.scm: Likewise.
20038 * tests/gpgsm/export.scm: Likewise.
20039 * tests/gpgsm/gpgsm-defs.scm: Likewise.
20040 * tests/gpgsm/import.scm: Likewise.
20041 * tests/gpgsm/plain-1.cms.asc: Likewise.
20042 * tests/gpgsm/plain-2.cms.asc: Likewise.
20043 * tests/gpgsm/plain-3.cms.asc: Likewise.
20044 * tests/gpgsm/plain-large.cms.asc: Likewise.
20045 * tests/gpgsm/run-tests.scm: Likewise.
20046 * tests/gpgsm/setup.scm: Likewise.
20047 * tests/gpgsm/shell.scm: Likewise.
20048 * tests/gpgsm/sign.scm: Likewise.
20049 * tests/gpgsm/verify.scm: Likewise.
20051 tests: Add macro managing ephemeral home directories.
20052 + commit c067a012c764218b94ce8de2914615a895a75f3e
20053 * tests/openpgp/defs.scm (with-ephemeral-home-directory): New macro.
20054 * tests/openpgp/setup.scm: Use the new macro.
20056 tests: Move argument parser.
20057 + commit a30c0a6972cabde3858108e9020e900696094843
20058 * tests/gpgme/gpgme-defs.scm (flag): Move...
20059 * tests/gpgscm/tests.scm: ... over here.
20061 tests: Add missing encrypted sample, cleanup samples handling.
20062 + commit e2ed3c1597daf3188ddce049cc3c50113d56f1b9
20063 * tests/openpgp/Makefile.am (TEST_FILES): Add new file.
20064 * tests/openpgp/defs.scm (plain-files): Add 'plain-large'.
20065 (all-files): New variable.
20066 (create-sample-files): New function.
20067 (create-legacy-gpghome): Use new function.
20068 * tests/openpgp/plain-large.asc: New file.
20070 2016-12-20 Werner Koch <wk@gnupg.org>
20073 + commit ade32464a25fdb35cc0f39e46d303ceba68ea8f6
20076 sm: Remove wrong example from gpgsm --help.
20077 + commit 13465e708bb67e816e4fb3a37c117ad91dc6383f
20078 * sm/gpgsm.c (opts): Remove group 303.
20080 dirmngr: New option --resolver-timeout.
20081 + commit 81c012787fabf734d9c952c6f18ecac21929d4d8
20082 * dirmngr/dns-stuff.c (DEFAULT_TIMEOUT): New.
20083 (opt_timeout): New var.
20084 (set_dns_timeout): New.
20085 (libdns_res_open): Set the default timeout.
20086 (libdns_res_wait): Use configurable timeout.
20087 (resolve_name_libdns): Ditto.
20089 * dirmngr/dirmngr.c (oResolverTimeout): New const.
20090 (opts): New option --resolver-timeout.
20091 (parse_rereadable_options): Set that option.
20092 (main) <aGPGConfList>: Add --nameserver and --resolver-timeout.
20093 * tools/gpgconf-comp.c (gc_options_dirmngr): Add --resolver-timeout
20096 * dirmngr/http.c (connect_server): Fix yesterday introduced bug in
20099 2016-12-19 Werner Koch <wk@gnupg.org>
20101 dirmngr: Fix problems with the getsrv function.
20102 + commit af8b68fae39b1378c769e0de6ba6437ea1aac7e3
20103 * dirmngr/dns-stuff.c (opt_debug, opt_verbose): New vars.
20104 (set_dns_verbose): New func.
20105 (libdns_switch_port_p): Add debug output.
20106 (resolve_dns_name): Ditto.
20107 (get_dns_cert): Ditto.
20108 (get_dns_cname): Ditto.
20109 (getsrv_libdns, getsrv_standard): Change SRVCOUNT to an unsigend int.
20110 (getsrv): Rename to ...
20111 ((get_dns_srv): this. Add arg R_COUNT and return an error. Add debug
20113 * dirmngr/http.c: Adjust for chnaged getsrv().
20114 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
20115 * dirmngr/t-dns-stuff.c (main): Ditto. Call set_dns_verbose.
20116 * dirmngr/dirmngr.c (parse_rereadable_options): Call set_dns_verbose.
20118 build: Add target to sign the windows installer.
20119 + commit 284ec54495dddc9eb0232e959cf994234097578a
20120 * build-aux/speedo.mk (w32-sign-installer): New.
20121 (AUTHENTICODE_KEY): New.
20122 (installer-from-source): Use cp instead of mv. Factor code out to ...
20123 (MKSWDB_commands): new macro.
20124 (sign-installer): New.
20126 2016-12-19 Justus Winter <justus@g10code.com>
20128 tests: Use the common test framework for the migration tests.
20129 + commit 65a0d6a24e6299682793f213a9d2bae17c5b12d9
20130 * tests/migrations/Makefile.am (reqired_pgms): Add 'gpgscm'.
20131 (TESTS_ENVIRONMENT): Populate.
20132 (TESTS): Rename to 'XTESTS'.
20133 (xcheck): New target.
20134 (EXTRA_DIST): Add new files.
20135 (CLEANFILES): Remove log files.
20136 * tests/migrations/common.scm: Honor 'verbose', fix paths.
20137 * tests/migrations/run-tests.scm: New file.
20138 * tests/migrations/setup.scm: Likewise.
20140 tests: Use sequential test runner if only one test is given.
20141 + commit 0bf16d702665a269ce5ef724c927fbbd8f7f1ce9
20142 * tests/openpgp/run-tests.scm: Use sequential test runner if only one
20145 2016-12-19 Werner Koch <wk@gnupg.org>
20147 dirmngr,w32: Hack around a select problem.
20148 + commit d51499fdc522a696f23c6776c3ab248742f4e06a
20149 * dirmngr/dns.c (FD_SETSIZE): Bump up to 1024.
20150 (dns_poll): Return an error instead of hitting an assertion failure.
20152 2016-12-19 Neal H. Walfield <neal@g10code.com>
20154 test: Extend TOFU tests to also check the days with signatures.
20155 + commit aec89a7297bae30f79a63fdc830530e82bab6170
20156 * tests/openpgp/tofu.scm (GPGTIME): Define the "standard" base time.
20157 (faketime): New function.
20158 (days->seconds): Likewise.
20159 (GPG): Use faketime.
20160 (check-counts): Also check the number of expected days with signatures
20161 and encryptions. Update callers. Extend tests.
20163 2016-12-19 Justus Winter <justus@g10code.com>
20165 tests: New test for --delete-[secret-]keys.
20166 + commit a1afc450e182af02ad5e6f6ba79e9dc4332ca2bc
20167 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20168 * tests/openpgp/defs.scm (keys): New variable.
20169 (have-public-key?): New function.
20170 (have-secret-key?): Likewise.
20171 (have-secret-key-file?): Likewise.
20172 * tests/openpgp/delete-keys.scm: New file.
20173 * tests/openpgp/quick-key-manipulation.scm: Move the accessors to
20176 gpgscm: Change associativity of ::.
20177 + commit a45dc0849da0d944ec8c759bc8e3e733b1eb0079
20178 * tests/gpgscm/scheme.c (mk_atom): Change associativity of the ::
20179 infix-operator. This makes it possible to naturally express accessing
20180 nested structures (e.g. a::b::c).
20182 gpgscm: Display location when assertions fail.
20183 + commit 3949cbd1128585c9b810713aeffaa1455fb5aed9
20184 * tests/gpgscm/lib.scm (assert): Use location information if
20187 gpgscm: Make exception handling more robust.
20188 + commit df00745d6eed7034b218a0c482a46d975425798a
20189 * tests/gpgscm/init.scm (throw'): Check that args is a list.
20191 2016-12-19 Andre Heinecke <aheinecke@intevation.de>
20193 speedo,w32: Use nsExec::ExecToLog to avoid popups.
20194 + commit 026bbf0d5ee4510967e5f1dd3db2dee4687b0612
20195 * build-aux/speedo/w32/inst.nsi: Use ExecToLog instead of
20198 2016-12-19 Werner Koch <wk@gnupg.org>
20200 Remove unused debug flags and add "dns" and "network".
20201 + commit e384405b6e251629fb36bcbba4f5f9ac15a39d10
20202 * g10/options.h (DBG_CARD_IO_VALUE, DBG_CARD_IO): Remove.
20203 * g10/gpg.c (debug_flags): Remove "cardio".
20204 * agent/agent.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
20205 * agent/gpg-agent.c (debug_flags): Remove "command".
20206 * scd/scdaemon.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
20207 * scd/scdaemon.c (debug_flags): Remove "command".
20208 * dirmngr/dirmngr.h (DBG_DNS_VALUE, DBG_DNS): New.
20209 (DBG_NETWORK_VALUE, DNG_NETWORK): New.
20210 * dirmngr/dirmngr.c (debug_flags): Add "dns" and "network".
20212 2016-12-17 Werner Koch <wk@gnupg.org>
20214 dirmngr: Fix setup of libdns for W32.
20215 + commit e77b924fec1082faae48cdd2ff8474874a22bdf7
20216 * configure.ac (DNSLIB) {W32]: Add -liphlpapi.
20217 * dirmngr/dns-stuff.c [W32]: Include iphlpapi.h and define
20218 WIN32_LEAN_AND_MEAN.
20219 (libdns_init) [W32]: Use GetNetworkParams to get the nameserver.
20220 * dirmngr/t-dns-stuff.c (init_sockets): New.
20223 2016-12-16 Werner Koch <wk@gnupg.org>
20225 dirmngr: Auto-switch from Tor port to Torbrowser port.
20226 + commit 024dbd7162fc1a7694176ebad3c21ee3ea67c024
20227 * dirmngr/dns-stuff.c (libdns_tor_port): New var.
20228 (set_dns_nameserver): Clear that var.
20229 (libdns_init): Init var to the default port.
20230 (libdns_switch_port_p): New func.
20231 (resolve_dns_name): Use function to switch the port
20232 (get_dns_cert): Ditto.
20234 (get_dns_cname): Ditto.
20236 dirmngr: Use one context for all libdns queries.
20237 + commit c4e8a3194d6b92f596a6483e486c645de7d2ddd1
20238 * dirmngr/dns-stuff.c (libdns_reinit_pending): New var.
20239 (enable_recursive_resolver): Set var.
20240 (set_dns_nameserver): Ditto.
20241 (libdns_init): Avoid double initialization.
20242 (libdns_deinit): New.
20243 (reload_dns_stuff): New.
20244 (libdns_res_open): Act upon LIBDNS_REINIT_PENDING.
20245 * dirmngr/t-dns-stuff.c (main): Call reload_dns_stuff to release
20247 * dirmngr/dirmngr.c (cleanup): Ditto.
20248 (dirmngr_sighup_action): Call reload_dns_stuff to set
20249 LIBDNS_REINIT_PENDING.
20251 dirmngr: Pass Tor credentials to libdns.
20252 + commit ddb48086833f8b86f0f0d69b21a23f245090ea7a
20253 * dirmngr/dns-stuff.c (tor_credentials): Replace by ...
20254 (tor_socks_user, tor_socks_password): new vars.
20255 (enable_dns_tormode): Set these new vars.
20256 (libdns_res_open): Tell libdns the socks credentials.
20258 dirmngr: Factor common libdns code out.
20259 + commit 59d3c3e4baffff52548fb5d1766ebf02dd8e1bec
20260 * dirmngr/dns-stuff.c (libdns_res_open): New. Replace all libdns_init
20261 and dns-res_open by a call to this func.
20262 (libdns_res_submit): New wrapper. Replace all dns_res_sumbit calls.
20263 (libdns_res_wait): New function.
20264 (resolve_name_libdns): Replace loop by libdns_res_wait.
20265 (get_dns_cert_libdns): Ditto.
20266 (getsrv_libdns): Ditto.
20268 gpg,sm: A few more option for --gpgconf-list.
20269 + commit 48671f295ff233765689b6a73021f83ab845a28f
20270 * g10/gpg.c (gpgconf_list): Add --compliance and
20271 --default-new-key-algo.
20272 (parse_compliance_option):
20273 * sm/gpgsm.c (main) <gpgconf-list>: Add --enable-crl-checks.
20275 gpgconf: New command --apply-profile.
20276 + commit 76cd64a5baf6057b199c01f7999b327f1f4a87bc
20277 * tools/gpgconf.c (aApplyProfile): New.
20278 (opts): New command --apply-profile.
20279 (main): Implement that command.
20280 * tools/gpgconf-comp.c (option_check_validity): Add arg VERBATIM.
20281 (change_options_program): Ditto.
20282 (change_one_value): Ditto.
20283 (gc_component_change_options): Ditto.
20284 (gc_apply_profile): New.
20286 gpgconf: Fix --apply-defaults.
20287 + commit 6ca3c28da46873416822bf6ab7893db6c56a49d6
20288 * tools/gpgconf-comp.c: Skip pinentry also in process_all mode.
20290 2016-12-16 Justus Winter <justus@g10code.com>
20292 doc: Mention extra information in pinentry status lines.
20293 + commit 12a5265afa7f87ad92fb571e0882e57b07a3c267
20294 * doc/DETAILS: Mention that 'PINENTRY_LAUNCHED may carry extra
20297 sm: Fix agent communication.
20298 + commit 3c7d6a1769ed6cc90d86247a814a0dce341512a3
20299 * sm/call-agent.c (gpgsm_agent_pksign): Fix passing the control handle
20301 (gpgsm_scd_pksign): Likewise.
20302 (gpgsm_agent_reaedkey): Likewise.
20304 2016-12-16 Neal H. Walfield <neal@g10code.com>
20307 + commit a165fa09be4bfbeb97ebe25d551a9045255e5028
20308 * doc/gpg.texi: Remove comment about options being parsed in-order.
20311 g10: Use total days, not total messages to compute TOFU validity.
20312 + commit 4a2c210b75d4266e289712e73a42c286aabb07f0
20313 * g10/tofu.c (write_stats_status): Use the number of days with
20314 signatures / encryptions to compute the validity, not the total number
20315 of signatures / encryptions.
20316 (BASIC_TRUST_THRESHOLD): Adjust given the new semantics.
20317 (FULL_TRUST_THRESHOLD): Likewise.
20319 g10: Extend TOFU_STATS to emit <sign-days> and <encyrption-days>
20320 + commit 94f6b9010d2e80a75ccbb21426faf0b30195f1ab
20321 * doc/DETAILS: Add SIGN-DAYS and ENCRYPT-DAYS to the TOFU_STATS status
20323 * g10/tofu.c (write_stats_status): Take additional parameters
20324 signature_days and encryption_days. Update callers. Include them in
20325 the tfs record and TOFU status lines.
20326 (show_statistics): Compute the number of days on which we saw a
20327 message signed by FINGERPRINT, and the number of days on which we
20328 encrypted a message to it.
20330 2016-12-16 Justus Winter <justus@g10code.com>
20332 doc: Improve section on unattended key generation.
20333 + commit ca02a8b78fca8815388a859962584d75169ae3ee
20334 * doc/gpg.texi: Improve the subsection on unattended key generation by
20335 suggesting the quick key manipulation interface as an alternative, and
20336 by suggesting alternatives to '%pubring' and '%secring'. Simplify
20337 examples accordingly.
20339 doc: Add documentation for programmatic use of GnuPG.
20340 + commit 116a78eb869c4c589228bd0d6deff7c7a9f92dfb
20341 * doc/gpg.texi: New subsections on programmatic use of GnuPG,
20342 ephemeral home directories, and the quick key manipulation interface.
20344 2016-12-16 Neal H. Walfield <neal@g10code.com>
20346 g10: On a TOFU conflict, write the conflicting keys to the status fd.
20347 + commit fea9da4a8afab6f3a49cdbbcc4a7a21f27a6d3e8
20348 * g10/tofu.c (ask_about_binding): Emit all of the conflicting keys and
20349 their statistics on the status fd.
20350 (get_trust): Likewise, if we don't call ask_about_binding.
20351 (show_statistics): Have the caller pass the policy as returned by
20352 get_policy. Add argument only_status_fd and don't emit any output on
20353 stdout if it is set. Update callers.
20355 g10: Add missing space.
20356 + commit 6caa2d0ba2bfc0ae93878738b0169483f6b6b462
20357 * g10/tofu.c (tofu_register_encryption): Add missing space.
20359 2016-12-15 Justus Winter <justus@g10code.com>
20361 g10: Avoid translating simple error messages.
20362 + commit 6b16b02109f4bb5b934e456667ff4c0ba7bc85fd
20363 * g10/gpg.c (main): Avoid translating arguments to 'wrong_args'.
20365 g10: Rework the --quick-* interface.
20366 + commit 41ad04d403de05abe54280d2a84aa51a603194e4
20367 * g10/gpg.c (opts): Rename options.
20368 (main): Update errors.
20369 * doc/gpg.texi: Update accordingly.
20371 g10: Rename 'card-edit' to 'edit-card'.
20372 + commit 6e4396723e9e5865015ebf7033628fa3919cf7d1
20373 * g10/gpg.c (opts): Rename option.
20374 * g10/call-agent.c (agent_scd_learn): Update comment.
20375 * doc/gpg.texi: Update accordingly.
20377 g10: Spell out --desig-revoke.
20378 + commit 3c691097ca144e9a1d4c9185636c59a848bec85c
20379 * g10/gpg.c (opts): Rename option.
20380 * doc/gpg.texi: Update accordingly.
20382 g10: Shorten unreasonably long option.
20383 + commit c252627c6fd93bc305c5a5a2f013c3de2d45c6b0
20384 * g10/gpg.c (opts): Rename 'generate-revocation-certificate' to
20385 'generate-revocation'.
20386 * doc/gpg.texi: Update accordingly.
20387 * po: Update translations.
20389 doc: Add aliases of all changed options.
20390 + commit bc6b76ef26f31c54ae1c29c761b8ecc437fcf565
20391 * doc/gpg.texi: Add the old version of every option that was updated
20392 with the last change set.
20393 * doc/gpgsm.texi: Likewise.
20395 2016-12-15 Werner Koch <wk@gnupg.org>
20397 dirmngr: First patch to re-enable Tor support.
20398 + commit 2d1760ffe2ff46b77bd0f38db8b781d9564ae999
20399 * dirmngr/dns-stuff.c (SOCKS_PORT, TOR_PORT, TOR_PORT2): New
20401 (libdns_init): Start adding tor support.
20402 (resolve_name_libdns): Pass socks hosts to dns_res_open.
20403 (get_dns_cert_libdns): Ditto.
20404 (getsrv_libdns): Ditto.
20405 (get_dns_cname_libdns): Ditto.
20407 2016-12-15 Justus Winter <justus@g10code.com>
20409 build: Fix distcheck.
20410 + commit 0e2055c7d30d987a7a74923a7080b80cce470601
20411 * tests/gpgme/Makefile.am (CLEANFILES): New variable, clean test logs.
20413 2016-12-14 Justus Winter <justus@g10code.com>
20415 tests: Reuse GPGME's tests.
20416 + commit 948cca9c99e701a1668bb5fd6e25f07e35381b4d
20417 * configure.ac (AC_CONFIG_FILES): Add new Makefile.
20418 * tests/Makefile.am (SUBDIRS): Add new directory.
20419 * tests/gpgme/Makefile.am: New file.
20420 * tests/gpgme/gpgme-defs.scm: Likewise.
20421 * tests/gpgme/run-tests.scm: Likewise.
20422 * tests/gpgme/setup.scm: Likewise.
20423 * tests/gpgme/wrap.scm: Likewise.
20425 common: Support locating components in the build tree.
20426 + commit ca1e9749bfb069d90aa44efbf6f3d611b6104c1b
20427 * common/homedir.c (gnupg_build_directory): New variable.
20428 (gnupg_module_name_called): Likewise.
20429 (gnupg_set_builddir): New function.
20430 (gnupg_set_builddir_from_env): Likewise.
20431 (gnupg_module_name): Support locating components in the build tree.
20432 * common/util.h (gnupg_set_builddir): New prototype.
20433 * tests/openpgp/defs.scm (tools): Drop 'gpg and 'gpg-agent.
20434 (tool): Rename to 'tool-hardcoded.
20435 (gpg-conf): New function, with accessors for the results.
20436 (gpg-components): New variable.
20437 (tool): New function.
20438 * tools/gpgconf.c (enum cmd_and_opt_values): New key.
20439 (opts): New option '--build-prefix'.
20440 (main): Handle new option.
20442 tests: Rework check for trust models.
20443 + commit 55dc81125abc43cd3cc8db951fc3b8a81767942d
20444 * tests/openpgp/defs.scm (gpg-has-option?): New function.
20445 (have-opt-always-trust): Use a simpler test for that option. This way
20446 that is less distracting when we run the tests with verbose=3.
20448 2016-12-14 Werner Koch <wk@gnupg.org>
20450 dirmngr: New configure option --disable-libdns.
20451 + commit d34a2bb410c7c770d26430d69ff77bd83fc407f1
20452 * configure.ac: Add option --disable-libdns
20453 (USE_LIBDNS): New ac_subst and am_conditional.
20454 (USE_C99_CFLAGS): Set only if libdns is used.
20455 * dirmngr/Makefile.am (dirmngr_SOURCES): Move dns.c and dns.h to ...
20456 (dirmngr_SOURCES) [USE_LIBDNS0: here.
20457 (t_common_src): Ditto.
20458 * dirmngr/dirmngr.c (oRecursiveResolver): New constant.
20459 (opts): New option "--recursive-resolver".
20460 (parse_rereadable_options): Set option.
20461 * dirmngr/t-dns-stuff.c (main): Add option --recursive-resolver.
20462 * dirmngr/server.c (cmd_getinfo): Depend output of "dnsinfo" on the
20464 * dirmngr/dns-stuff.c: Include dns.h only if USE_DNSLIB is defined.
20465 Also build and call dnslib functions only if USE_DNSLIB is defined.
20466 (recursive_resolver): New var.
20467 (enable_recursive_resolver): New func.
20468 (recursive_resolver_p): New func.
20470 dirmngr: Implement CERT record lookup via libdns.
20471 + commit 3c2a7918eac024b5e1258ea9b272b4e8a1f1af43
20472 * dirmngr/dns-stuff.c (get_dns_cert_libdns): New.
20473 (get_dns_cert_standard): Fix URL malloc checking.
20475 dirmngr: Implement CNAME and SRV record lookup via libdns.
20476 + commit 4c13e4e3debe0e55e86ae29c095f2d86eb0a6f11
20477 * dirmngr/dns-stuff.c (dns_free): New macro.
20478 (libdns): Move var to the top.
20479 (libdns_error_to_gpg_error): Map error codes to the new gpg-error
20481 (resolve_name_libdns): Restructure code.
20482 (getsrv_libdns): New.
20483 (get_dns_cname_libdns): New.
20485 dirmngr: Fix bugs in the standard resolver code.
20486 + commit 4a030f682ef48542ed324b28207f2c2b4847dbef
20487 * dirmngr/dns-stuff.c: Include dirmngr-err.h to set the correct error
20489 (get_h_errno_as_gpg_error): New.
20490 (get_dns_cert_libdns): Fix error code.
20491 (getsrv_libdns): Add arg R_COUNT and return an error code.
20492 (getsrv_standard): Ditto. Fix handling of res_query errors and
20493 provide the correct size for the return buffer.
20494 (getsrv): Adjust for changed worker functions.
20495 (get_dns_cname_standard): Fix handling of res_query errors and provide
20496 the correct size for the return buffer.
20498 dirmngr: Require a c99 compiler.
20499 + commit 392966aed9b2a5e1456c671e5d13b561a27e4bb2
20500 * configure.ac (USE_C99_CFLAGS): New ac_subst. Set to -std=gnu99 for
20502 * dirmngr/Makefile.am (AM_CFLAGS): Add USE_C99_CFLAGS.
20503 (t_http_CFLAGS): Ditto.
20504 (t_ldap_parse_uri_CFLAGS): Ditto.
20505 (t_dns_stuff_CFLAGS): Ditto.
20507 doc: Add license notes for libdns.
20508 + commit d84f5a88233c073a82fd47728574b001343784ee
20509 * COPYING.other: New.
20510 * Makefile.am (EXTRA_DIST): Add it.
20511 * AUTHORS: Add info on libdns.
20512 * build-aux/speedo/w32/pkg-copyright.txt: Add license terms.
20514 common: Add replacements for error codes from gpg-error 1.26.
20515 + commit aae68a3ccd3d9870162b3ffd49eae08d5bf1b1e1
20518 2016-12-14 Justus Winter <justus@g10code.com>
20520 dirmngr: New libdns snapshot.
20521 + commit f8ab2c4c70ad15c4b2e45492606fb94ddaccdac7
20524 dirmngr: Add basic libdns support.
20525 + commit f6acd0426453d3a18536ca69d63baa0d971082ef
20526 * dirmngr/dns.c: New file.
20527 * dirmngr/dns.h: New file.
20528 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new files.
20529 * dirmngr/dns-stuff.c: Include dns.h.xxx use libdns
20530 (libdns): New global var for the libdns state.
20531 (libdns_error_to_gpg_error): New.
20532 (libdns_init): New.
20533 (resolve_name_libdns): New.
20534 (get_dns_cert_libdns): New stub.
20535 (getsrv_libdns): New stub.
20536 (get_dns_cname_libdns): New stub.
20538 dirmngr,build: Remove support for ADNS.
20539 + commit 2e734a3ce159de8fb60df2bd5d454f98ca710717
20540 * autogen.rc: Remove '--with-adns' argument.
20541 * configure.ac: Remove check for ADNS.
20542 * dirmngr/dns-stuff.c: Remove all code that uses ADNS.
20543 * dirmngr/server.c (cmd_getinfo): Update status line.
20544 * doc/dirmngr.texi: Do not mention ADNS.
20546 2016-12-14 NIIBE Yutaka <gniibe@fsij.org>
20548 dirmngr: Improve ntbtls support.
20549 + commit 57aa42ce9b28bc17ac24491d595766fbf80762af
20550 * dirmngr/http.c [HTTP_USE_NTBTLS] (close_tls_session): Release.
20551 (send_request): Call ntbtls_set_transport.
20552 (cookie_read, cookie_write): Implement.
20553 (cookie_close): Add initial implementation for ntbtls.
20555 2016-12-13 Justus Winter <justus@g10code.com>
20557 g10,sm: Spell out --passwd.
20558 + commit c1c35fb887061de05661f3411eda97546e1a52d7
20559 * g10/gpg.c (opts): Spell out option.
20560 * sm/gpgsm.c (opts): Likewise.
20561 * doc/gpg.texi: Update accordingly.
20562 * doc/gpgsm.texi: Likewise.
20564 g10: Spell out --gen-revoke.
20565 + commit ec1bd3ae685e95563e38077ab3c1655fd55dea07
20566 * g10/gpg.c (opts): Spell out option.
20567 * doc/gpg.texi: Update accordingly.
20568 * po: Update translations.
20570 g10: Spell out --full-gen-key.
20571 + commit 09163a6390bd9713f3a7946de739765b30ef6f64
20572 * g10/gpg.c (opts): Spell out option.
20574 * g10/keygen.c (generate_keypair): Likewise.
20575 * doc/gpg.texi: Update accordingly.
20577 g10,sm: Spell out --gen-key.
20578 + commit 892c827e72b1396e3b58e2f8869cc48328a2b59c
20579 * g10/gpg.c (opts): Spell out option.
20580 * sm/gpgsm.c (opts): Likewise.
20581 * doc/gpg.texi: Update accordingly.
20583 g10,sm: Spell out --check-sigs.
20584 + commit 9147737f1c6894f38b855f3cf38cd33122a1ae2a
20585 * g10/gpg.c (opts): Spell out option.
20586 * sm/gpgsm.c (opts): Likewise.
20587 * doc/gpg.texi: Update accordingly.
20589 g10,sm: Spell out --list-sigs.
20590 + commit a6d6e4afe488bc05ee730e85da6a9505c6cd245a
20591 * g10/gpg.c (opts): Spell out option.
20592 * sm/gpgsm.c (opts): Likewise.
20593 * doc/gpg.texi: Update accordingly.
20595 g10: Hyphenate --clearsign.
20596 + commit 04754ce3a704b1e6d38cb9a28dacf2821dc3f15f
20597 * g10/gpg.c (opts): Hyphenate option.
20598 * doc/gpg.texi: Update accordingly.
20599 * po: Update translations.
20600 * tests/openpgp: Update tests.
20602 g10: Spell out --recv-keys.
20603 + commit ca598152345b40f3a236227dfc63ae04ddf777d7
20604 * g10/gpg.c (opts): Spell out option.
20605 * doc/gpg.texi: Update accordingly.
20607 g10: Create expiring keys in quick key generation mode.
20608 + commit dd3dde07a9a46130ac01d849f8edf0566e44f11f
20609 * doc/gpg.texi: Document that fact.
20610 * g10/keygen.c (quick_generate_keypair): Use a default value.
20611 * tests/openpgp/quick-key-manipulation.scm: Test that fact.
20613 gpgscm: Print failed and skipped tests.
20614 + commit 429891a704057437517cb0b45d11392b40fa1ee8
20615 * tests/gpgscm/tests.scm (test-pool::report): Print failed and skipped
20618 gpgscm: Generalize the test runner.
20619 + commit d43dabf4607d3bcfc217eb9aea34d093f5aa698f
20620 * tests/gpgscm/tests.scm (test::scm) Add explicit name argument.
20621 (test::binary): Likewise. Also, add missing unquote.
20622 * tests/openpgp/run-tests.scm: Adapt accordingly.
20624 gpgscm: Move the test runner to the Scheme library.
20625 + commit 1a176b92a8aad42056ed2c4e1f49a5feb40770cf
20626 * tests/openpgp/run-tests.scm: Move most of the code...
20627 * tests/gpgscm/tests.scm: ... here.
20629 tests: Refactor test runner.
20630 + commit fe36e63763c9c595bb057ac50160d2aff7c7a63f
20631 * tests/openpgp/run-tests.scm (locate-test): New function.
20632 (test): Factor-out the code starting the child process.
20633 (test::binary): New function.
20635 gpgscm: Improve library functions.
20636 + commit e3876f16eb237bdeb9f79aca2e7db5e9e2d86686
20637 * tests/gpgscm/tests.scm (absolute-path?): New function.
20638 (canonical-path): Use the new function.
20639 * tests/gpgscm/lib.scm (string-split-pln): New function.
20640 (string-indexp, string-splitp): Likewise.
20641 (string-splitn): Express using the above function.
20642 (string-ltrim, string-rtrim): Fix corner case.
20643 (list->string-reversed): New function.
20644 (read-line): Fix performance.
20646 2016-12-12 Werner Koch <wk@gnupg.org>
20648 gpg: Fix memory leak in ecc key generation.
20649 + commit 98433c70431dfbde99b0e89416856d1eef9ebc88
20650 * g10/keygen.c (ecckey_from_sexp): Release curve.
20652 gpg: Do not use a fixed string for --gpgconf-list:default_pubkey_algo.
20653 + commit f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1
20654 * g10/keygen.c (get_default_pubkey_algo): New.
20655 (parse_key_parameter_string): Use it.
20656 * g10/gpg.c (gpgconf_list): Take value from new function.
20658 gpg: Fix algo string parsing of --quick-addkey.
20659 + commit 522e6f798db9f3f3a9e0123fdc389a86ac69dedf
20660 * g10/keygen.c (parse_key_parameter_string): Fix handling of PART==1.
20661 (parse_key_parameter_part): Use default key size if only "rsa", "dsa",
20664 2016-12-09 Justus Winter <justus@g10code.com>
20666 g10: Create keys that expire in simple key generation mode.
20667 + commit d568a1561642ed9b7b7b6282b86c56786d10a956
20668 * g10/keygen.c (default_expiration_interval): New variable.
20669 (generate_keypair): Use the new default.
20671 tests: Add a test for '--quick-addkey'.
20672 + commit b778d8deedf344c8116362633925b8153c7f1bf1
20673 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-addkey'.
20675 tests: New test using all available compression algorithms.
20676 + commit 59f1562c25119a4fe27411e6350f2149d6147148
20677 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20678 * tests/openpgp/compression.scm: New file.
20679 * tests/openpgp/defs.scm (all-compression-algos): New variable.
20681 g10: List compression algorithms using human-readable names.
20682 + commit c8100fc0faadf8ba35e4df32b4760cc975e3a83d
20683 * g10/gpg.c (list_config): List all enabled compression algorithms
20684 under the key 'compressname'.
20686 g10: Fix memory leak.
20687 + commit 3de9bad359e28ced4a2539e411d222ffd82a4a62
20688 * g10/sign.c (do_sign): Release old signature data.
20690 2016-12-08 Werner Koch <wk@gnupg.org>
20692 common: Skip the Byte Order Mark in conf files.
20693 + commit 5c7d58222834793629a30248e72b6ea96e832dc4
20694 * common/argparse.c (optfile_parse): Detect and skip the UTF-8 BOM.
20696 Fix 2 compiler warnings.
20697 + commit cb4c7abb774e2d95806d8b0ec6ea5cd130c1b5b8
20698 * dirmngr/loadswdb.c: Set ERR on malloc failure.
20699 * g10/passphrase.c (passphrase_to_dek): Initialize all fields of
20702 wks: New option --status-fd for gpg-wks-client.
20703 + commit 4a04277ad112e0966296133795f93cf6a3daa48e
20704 * tools/wks-util.c: Include status.h.
20705 (statusfp): New global var.
20706 (wks_set_status_fd): New func.
20707 (wks_write_status): New func.
20708 * tools/gpg-wks-client.c: Include status.h.
20709 (oStatusFD): New constant.
20710 (opts): New option --status-fd.
20711 (parse_arguments): Handle that option.
20712 (main): Return STATUS_SUCCESS or STATUS_FAILURE.
20714 2016-12-08 Justus Winter <justus@g10code.com>
20716 gpgscm: Better error reporting.
20717 + commit e7429b1ced0c69fa7901f888f8dc25f00fc346a4
20718 * tests/gpgscm/ffi.scm: Move the customized exception handling and
20720 * tests/gpgscm/init.scm: ... here.
20721 (throw): Record the current history.
20722 (throw'): New function that is history-aware.
20723 (rethrow): New function.
20724 (*error-hook*): Use the new throw'.
20725 * tests/gpgscm/main.c (load): Fix error handling.
20726 (main): Save and use the 'sc->retcode' as exit code.
20727 * tests/gpgscm/repl.scm (repl): Print call history.
20728 * tests/gpgscm/scheme.c (_Error_1): Make a snapshot of the history,
20729 use it to provide a accurate location of the expression causing the
20730 error at runtime, and hand the history trace to the '*error-hook*'.
20731 (opexe_5): Tag all lists at parse time with the current location.
20732 * tests/gpgscm/tests.scm: Update calls to 'throw', use 'rethrow'.
20734 gpgscm: Keep a history of calls for error messages.
20735 + commit 404e8a4136bbbab39df7dd5119841e131998cc15
20736 * tests/gpgscm/init.scm (vm-history-print): New function.
20737 * tests/gpgscm/opdefines.h: New opcodes 'CALLSTACK_POP', 'APPLY_CODE',
20739 * tests/gpgscm/scheme-private.h (struct history): New definition.
20740 (struct scheme): New field 'history'.
20741 * tests/gpgscm/scheme.c (gc): Mark objects in the history.
20742 (history_free): New function.
20743 (history_init): Likewise.
20744 (history_mark): Likewise.
20745 (add_mod): New macro.
20746 (sub_mod): Likewise.
20747 (tailstack_clear): New function.
20748 (callstack_pop): Likewise.
20749 (callstack_push): Likewise.
20750 (tailstack_push): Likewise.
20751 (tailstack_flatten): Likewise.
20752 (callstack_flatten): Likewise.
20753 (history_flatten): Likewise.
20754 (opexe_0): New variable 'callsite', keep track of the expression if it
20755 is a call, implement the new opcodes, record function applications in
20757 (opexe_6): Implement new opcode.
20758 (scheme_init_custom_alloc): Initialize history.
20759 (scheme_deinit): Free history.
20760 * tests/gpgscm/scheme.h (USE_HISTORY): New macro.
20762 gpgscm: Add flag TAIL_CONTEXT.
20763 + commit 01256694f006405c54bc2adef63ef0c8f07da9ee
20764 * tests/gpgscm/scheme.c (S_FLAG_TAIL_CONTEXT): New macro. This flag
20765 indicates that the interpreter is evaluating an expression in a tail
20766 context (see R5RS, section 3.5).
20767 (opexe_0): Clear and set the flag according to the rules layed out in
20769 (opexe_1): Likewise.
20771 gpgscm: Add flags to the interpreter.
20772 + commit a4a69163d9d7e4d9f3339eb5cda0afb947180b26
20773 * tests/gpgscm/scheme-private.h (struct scheme): Add field 'flags'.
20774 * tests/gpgscm/scheme.c (S_OP_MASK): New macro.
20775 (S_FLAG_MASK, s_set_flag, s_clear_flag, s_get_flag): Likewise.
20776 (_s_return): Unpack the encoded opcode and flags.
20777 (s_save): Encode the flags along with the opcode. Use normal
20778 integers to encode the result.
20779 (scheme_init_custom_alloc): Initialize 'op' and 'flags'.
20781 gpgscm: Implement tags.
20782 + commit fcf5aea44627def43425d03881e20902e7c0331e
20783 * tests/gpgscm/opdefines.h: Add opcodes to create and retrieve tags.
20784 * tests/gpgscm/scheme.c (T_TAGGED): New macro.
20785 (mk_tagged_value): New function.
20786 (has_tag): Likewise.
20787 (get_tag): Likewise.
20789 (opexe_4): Implement new opcodes.
20790 * tests/gpgscm/scheme.h (USE_TAGS): New macro.
20792 2016-12-08 Werner Koch <wk@gnupg.org>
20794 gpg: Fix the fix out-of-bounds access.
20795 + commit a75790b74095828f967c012eff7033f570d93077
20796 * g10/tofu.c (build_conflict_set): Revert to int* and fix calloc.
20798 wks: New option --check for gpg-wks-client.
20799 + commit d8c5e8ccfdb53cc327f7520fc7badc31d0c9c666
20800 * tools/call-dirmngr.c (wkd_get_key): New.
20801 * tools/gpg-wks-client.c (aCheck): New constant.
20802 (opts): New option "--check".
20803 (main): Call command_check.
20804 (command_check): New.
20806 tools: Move a function from gpg-wks-server to wks-util.c.
20807 + commit c3138decd77d788906885b638b344d0d1faf32c0
20808 * tools/gpg-wks-server.c (list_key_status_cb): Remove.
20809 (list_key): Move to ...
20810 * tools/wks-util.c (wks_list_key): here and rename. Add new args
20811 R_FPR and R_MBOXES and remove the CTX.
20812 (list_key_status_cb): New.
20813 * tools/wks-util.c: Include ccparray.h, exectool.h, and mbox-util.h.
20814 * tools/gpg-wks-server.c (process_new_key): Replace list_key by
20816 (check_and_publish): Ditto.
20818 2016-12-08 Justus Winter <justus@g10code.com>
20820 gpgscm: Generalize 'for-each-p'.
20821 + commit a2bedc8ac6fcdcd1de0a9fa3d540006481387dff
20822 * tests/gpgscm/tests.scm (for-each-p): Generalize to N lists like
20824 (for-each-p'): Likewise.
20826 g10: Fix out-of-bounds access.
20827 + commit 3b5b94ceab7c0ed9501c5cf54b4efa17fcd7300a
20828 * g10/tofu.c (build_conflict_set): Use 'char'.
20830 2016-12-08 Werner Koch <wk@gnupg.org>
20832 tools: Fix use of uninitialized var in mime-maker.
20833 + commit dd03667ab1062bba3b9413c3f8007d63302d1b31
20834 * tools/mime-maker.c (ensure_part): Make sure to set R_PARENT on
20836 (add_missing_headers): Ensure that ERR is set on success.
20838 * tools/wks-util.c (wks_parse_policy): Fix indentation.
20840 tools: Fix memleak in gpgconf.
20841 + commit b265969154741bf9f93167699fe7ddda1d485265
20842 * tools/gpgconf.c (main): Free SOCKETDIR.
20844 gpg: Fix portability problem.
20845 + commit c3008bffac68b6f31e9ae9bad837cdce5de7c0db
20846 * g10/tofu.c (build_conflict_set): Replace variable dynamic array.
20848 2016-12-07 Justus Winter <justus@g10code.com>
20850 tests: Add test for '--quick-set-expire'.
20851 + commit dec2ae31a46a0f41886c7ad228865cc573f2dea9
20852 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-set-expire'.
20854 tests: Improve quick key manipulation test.
20855 + commit 92df40a3a2ae471fbba00d6d7040230404931fd4
20856 * tests/openpgp/quick-key-manipulation.scm: Do not update the trust
20857 database, rather be more specific when filtering the user ids.
20859 2016-12-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
20861 agent: Respect --enable-large-secmem.
20862 + commit 8636ad5023a1bdc527add40a5508f8c5b7c35221
20863 * agent/gpg-agent.c (main): Initialize secmem to the configured buffer
20866 2016-12-06 Justus Winter <justus@g10code.com>
20868 tests: Add test importing a revocation certificate.
20869 + commit e352ead43fbb0180e1f1c71bf1a000d1954eb777
20870 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20871 * tests/openpgp/import-revocation-certificate.scm: New file.
20872 * tests/openpgp/samplemsgs/revoke-2D727CC768697734.asc: Likewise.
20874 tests: Rename 'error' to 'fail'.
20875 + commit 5b5d881f47c82f320abf440c20b7a1bac078a987
20876 * tests/gpgscm/tests.scm (error): Rename to 'fail'. 'error' is a
20877 primitive function (an opcode) of the TinySCHEME vm, and 'error' is
20878 also defined by R6RS. Better avoid redefining that. Fix all call
20880 * tests/openpgp/4gb-packet.scm: Adapt.
20881 * tests/openpgp/decrypt-multifile.scm: Likewise.
20882 * tests/openpgp/ecc.scm: Likewise.
20883 * tests/openpgp/export.scm: Likewise.
20884 * tests/openpgp/gpgtar.scm: Likewise.
20885 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
20886 * tests/openpgp/import.scm: Likewise.
20887 * tests/openpgp/issue2015.scm: Likewise.
20888 * tests/openpgp/issue2346.scm: Likewise.
20889 * tests/openpgp/issue2419.scm: Likewise.
20890 * tests/openpgp/key-selection.scm: Likewise.
20891 * tests/openpgp/mds.scm: Likewise.
20892 * tests/openpgp/multisig.scm: Likewise.
20893 * tests/openpgp/setup.scm: Likewise.
20894 * tests/openpgp/signencrypt.scm: Likewise.
20895 * tests/openpgp/ssh-import.scm: Likewise.
20896 * tests/openpgp/tofu.scm: Likewise.
20897 * tests/openpgp/verify.scm: Likewise.
20899 tests: Remove debugging display.
20900 + commit 89ac071eb4c7539e98c7dc17e11f57c620b54e90
20901 * tests/openpgp/tofu.scm: Remove debugging display.
20903 2016-12-06 Neal H. Walfield <neal@g10code.com>
20905 tests: Update distributed files.
20906 + commit 87972fdef2cd853fb97624d0765686674a19e3c4
20907 * tests/openpgp/Makefile.am (TEST_FILES): Remove tofu-keys.asc,
20908 tofu-keys-secret.asc, tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and
20909 tofu-EE37CF96-1.txt. Add tofu/conflicting/1C005AF3.gpg,
20910 tofu/conflicting/1C005AF3-secret.gpg, tofu/conflicting/1C005AF3-1.txt,
20911 tofu/conflicting/1C005AF3-2.txt, tofu/conflicting/1C005AF3-3.txt,
20912 tofu/conflicting/1C005AF3-4.txt, tofu/conflicting/1C005AF3-5.txt,
20913 tofu/conflicting/B662E42F.gpg, tofu/conflicting/B662E42F-secret.gpg,
20914 tofu/conflicting/B662E42F-1.txt, tofu/conflicting/B662E42F-2.txt,
20915 tofu/conflicting/B662E42F-3.txt, tofu/conflicting/B662E42F-4.txt,
20916 tofu/conflicting/B662E42F-5.txt, tofu/conflicting/BE04EB2B.gpg,
20917 tofu/conflicting/BE04EB2B-secret.gpg, tofu/conflicting/BE04EB2B-1.txt,
20918 tofu/conflicting/BE04EB2B-2.txt, tofu/conflicting/BE04EB2B-3.txt,
20919 tofu/conflicting/BE04EB2B-4.txt, tofu/conflicting/BE04EB2B-5.txt and
20920 tofu/conflicting/README.
20922 doc: Improve the text in the gpg manual.
20923 + commit 7572d270fcda1614648c6f08d711d5096ffebbe6
20924 * doc/gpg.texi: Improve the text.
20926 g10: Avoid a memory leak.
20927 + commit 6102099985c1b82b6c0bba0464c1f913cc673e96
20928 * g10/gpg.c (main): Free KB when we're done with it.
20930 tests: Change (interactive-shell) to start an interactive shell.
20931 + commit db6d8cfdc118131f497596ef1ffc121949377754
20932 * tests/gpgscm/tests.scm (interactive-shell): Start an interactive
20935 tests: Check the signature count in the TOFU TFS record.
20936 + commit 17c717d7c92d9a52101fea7e396fc133322a8786
20937 * tests/openpgp/tofu.scm: Check the signature count in the TOFU TFS
20940 tests: Replace data used by the TOFU conflict test.
20941 + commit d5b18d6c55d65e8df2dd112651e3b9b3d9e6e27a
20942 * tests/openpgp/tofu-2183839A-1.txt: Remove file.
20943 * tests/openpgp/tofu-BC15C85A-1.txt: Remove file.
20944 * tests/openpgp/tofu-EE37CF96-1.txt: Remove file.
20945 * tests/openpgp/tofu-keys-secret.asc: Remove file.
20946 * tests/openpgp/tofu-keys.asc: Remove file.
20947 * tests/openpgp/tofu/conflicting/1C005AF3.gpg: New file.
20948 * tests/openpgp/tofu/conflicting/1C005AF3-secret.gpg: New file.
20949 * tests/openpgp/tofu/conflicting/1C005AF3-1.txt: New file.
20950 * tests/openpgp/tofu/conflicting/1C005AF3-2.txt: New file.
20951 * tests/openpgp/tofu/conflicting/1C005AF3-3.txt: New file.
20952 * tests/openpgp/tofu/conflicting/1C005AF3-4.txt: New file.
20953 * tests/openpgp/tofu/conflicting/1C005AF3-5.txt: New file.
20954 * tests/openpgp/tofu/conflicting/B662E42F.gpg: New file.
20955 * tests/openpgp/tofu/conflicting/B662E42F-secret.gpg: New file.
20956 * tests/openpgp/tofu/conflicting/B662E42F-1.txt: New file.
20957 * tests/openpgp/tofu/conflicting/B662E42F-2.txt: New file.
20958 * tests/openpgp/tofu/conflicting/B662E42F-3.txt: New file.
20959 * tests/openpgp/tofu/conflicting/B662E42F-4.txt: New file.
20960 * tests/openpgp/tofu/conflicting/B662E42F-5.txt: New file.
20961 * tests/openpgp/tofu/conflicting/BE04EB2B.gpg: New file.
20962 * tests/openpgp/tofu/conflicting/BE04EB2B-secret.gpg: New file.
20963 * tests/openpgp/tofu/conflicting/BE04EB2B-1.txt: New file.
20964 * tests/openpgp/tofu/conflicting/BE04EB2B-2.txt: New file.
20965 * tests/openpgp/tofu/conflicting/BE04EB2B-3.txt: New file.
20966 * tests/openpgp/tofu/conflicting/BE04EB2B-4.txt: New file.
20967 * tests/openpgp/tofu/conflicting/BE04EB2B-5.txt: New file.
20968 * tests/openpgp/tofu/conflicting/README: New file.
20969 * tests/openpgp/tofu.scm: Update accordingly.
20971 g10: Remove dead code.
20972 + commit bd9ebe1404c1395edd0e029023a9e780c90f6d73
20973 * g10/tofu.c (tofu_set_policy_by_keyid): Remove function.
20975 2016-12-05 Werner Koch <wk@gnupg.org>
20977 gpg: New option --quick-set-expire.
20978 + commit 41b3d0975de65d1654f5e37c626d7c9b7c9a7a4d
20979 * g10/gpg.c (aQuickSetExpire): New.
20980 (opts): New option --quick-set-expire.
20981 (main): Implement option.
20982 * g10/keyedit.c (menu_expire): Add args FORCE_MAINKEY and
20983 NEWEXPIRATION. Change semantics of the return value. Change caller.
20984 (keyedit_quick_set_expire): New.
20986 2016-12-05 Justus Winter <justus@g10code.com>
20988 tests: New test for '--enarmor' and '--dearmor'.
20989 + commit fae4d06b0ccaa9803e0c0da56c327b0bcfffcac5
20990 * tests/openpgp/Makefile.am (XTESTS): Add new test.
20991 * tests/openpgp/enarmor.scm: New file.
20993 2016-12-03 Werner Koch <wk@gnupg.org>
20995 gpg: Fix error code arg in ERRSIG status line.
20996 + commit ef10c348bffc7dad19e1832bebc453755d209420
20997 * g10/mainproc.c (check_sig_and_print): Use gpg_err_code to return an
20998 error code in ERRSIG.
21000 2016-12-02 Werner Koch <wk@gnupg.org>
21002 gpg: New option --default-new-key-algo.
21003 + commit ce29272e24e7b718b8fca9b84bc728e65f3dea24
21004 * common/openpgp-oid.c (openpgp_is_curve_supported): Add optional arg
21005 R_ALGO and change all callers.
21006 * common/util.h (GPG_ERR_UNKNOWN_FLAG): New error code.
21007 * g10/options.h (struct opt): Add field DEF_NEW_KEY_ALGO.
21008 * g10/gpg.c (oDefaultNewKeyAlgo): New enum.
21009 (opts): New option "--default-new-key-algo".
21010 (main): Set the option.
21011 * g10/keygen.c: Remove DEFAULT_STD_ FUTURE_STD_ constants and replace
21013 (DEFAULT_STD_KEY_PARAM, FUTURE_STD_KEY_PARAM): new string constants.
21014 (get_keysize_range): Remove arg R_DEF and return that value instead.
21015 Change all callers.
21016 (gen_rsa): Use get_keysize_range instead of the removed
21017 DEFAULT_STD_KEYSIZE.
21018 (parse_key_parameter_part): New function.
21019 (parse_key_parameter_string): New function.
21020 (quick_generate_keypair): Refactor using parse_key_parameter_string.
21021 (generate_keypair): Ditto.
21022 (parse_algo_usage_expire): Ditto.
21024 2016-12-02 Neal H. Walfield <neal@g10code.com>
21026 g10: Improve debugging output.
21027 + commit cd532bb7b866e104304e2443cc942799c385daa5
21028 * g10/tofu.c (string_to_long): Improve debugging output.
21029 (string_to_ulong): Likewise.
21031 2016-12-01 Neal H. Walfield <neal@g10code.com>
21033 g10: In the TOFU module, make strings easier to translate.
21034 + commit bd1a1d8582abcfd7f29812942fa70f88d0aec7cf
21035 * g10/tofu.c: Remove dead code.
21036 (time_ago_str): Simplify implementation since we only want the most
21038 (format_conflict_msg_part1): Use ngettext.
21039 (ask_about_binding): Likewise and only emit full sentences.
21040 (show_statistics): Likewise.
21042 2016-12-01 Werner Koch <wk@gnupg.org>
21044 dirmngr: Add option --standard-resolver.
21045 + commit 304566d3327ef0a85188cce3109d46d5ff47177a
21046 * dirmngr/dirmngr.c (oStandardResolver): New constant.
21047 (opts): New option --standard-resolver.
21048 (parse_rereadable_options): Set option.
21049 * dirmngr/dns-stuff.c: Refactor all code to support the new option.
21050 (standard_resolver): New var.
21051 (enable_standard_resolver, standard_resolver_p): New func.
21052 * dirmngr/http.c (connect_server): Remove USE_DNS_SRV build
21054 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
21055 * dirmngr/server.c (cmd_getinfo) <dnsinfo>: Take care of new option
21056 * configure.ac (HAVE_ADNS_IF_TORMODE): Remove var ADNSLIB. ac_define
21057 USE_ADNS in the adns checking code. Remove options --disable-dns-srv
21058 and --disable-dns-cert. Always look for the system resolver. Print
21059 warning if no system resolver was found.
21060 (USE_DNS_CERT, USE_DNS_SRV): Remove ac_defines.
21061 (HAVE_SYSTEM_RESOLVER): New ac_define.
21062 (USE_DNS_SRV): Remove am_conditional; not used anyway.
21064 gpg: Let only Dirmngr decide whether CERT is supported.
21065 + commit 86efc3ee53abaf1e22b53c1b360c51829e476115
21066 * g10/getkey.c (parse_auto_key_locate): Do not build parts depending
21069 2016-12-01 Justus Winter <justus@g10code.com>
21071 tests,build: Fix distcheck.
21072 + commit fbdfe6a514a95fb46f2b811a13709024e2baf252
21073 * tests/openpgp/Makefile.am (sample_msgs): Add messages required for
21074 the new test 'verify-multifile.scm'.
21076 tests: Add test for '--verify --multifile'.
21077 + commit 12af8e84a32df728462da09a00a8bec24a487720
21078 * tests/openpgp/Makefile.am (XTESTS): Add new test.
21079 * tests/openpgp/verify-multifile.scm: New file.
21081 2016-11-30 Justus Winter <justus@g10code.com>
21083 tests: Add test for '--encrypt --multifile'.
21084 + commit 3c0569e99498c7470ebdb639b4c5ae829af92761
21085 * tests/openpgp/Makefile.am (XTESTS): Add new test.
21086 * tests/openpgp/encrypt-multifile.scm: New file.
21088 2016-11-29 Werner Koch <wk@gnupg.org>
21090 agent,dirmngr: Tiny restructuring.
21091 + commit aa6ab9e0bc67fe9ce5601047e84ea4a875e8eb64
21092 * agent/gpg-agent.c (handle_connections): Add a comment.
21093 * dirmngr/dirmngr.c (main): Move assuan_sock_close of the listening
21095 (handle_connections): here. Add a comment why we keep the
21096 listening socket open during a shutdown.
21098 agent,dirmngr: Handle corner case in shutdown mode.
21099 + commit 854adc8ae19749e44cb79dfa0c5401f48012b13a
21100 * agent/gpg-agent.c (handle_connections): Keep on selecting on the
21101 inotify fd even when a shutdown is pending.
21102 * dirmngr/dirmngr.c (handle_connections): Ditto. Also simplifyy the
21103 use of the HAVE_INOTIFY_INIT cpp conditional.
21105 gpgsm: Allow decryption with a card returning a PKCS#1 stripped key.
21106 + commit 8489b12211098ad58c008cfb74b5cb91849cf68d
21107 * sm/decrypt.c (prepare_decryption): Handle a 16 byte session key.
21109 agent,w32: Initialize nPth in server mode.
21110 + commit 81d6e98cdf4caa3aa92398fc3b8bed397b40f58d
21111 * agent/gpg-agent.c (main) [W32]: Call initialize_modules in server
21114 gpg: Make --decrypt with output '-&nnnn' work.
21115 + commit a5910e00ace882b8a17169faf4607163ab454af9
21116 * g10/plaintext.c (get_output_file): Check and open special filename
21117 before falling back to stdout.
21119 gpg,sm: Merge the two versions of check_special_filename.
21120 + commit 60b4982836a00ef6b2a97d16f735b3f6b74dce62
21121 * sm/gpgsm.c (check_special_filename): Move to ..
21122 * common/sysutils.c (check_special_filename): here. Add arg
21124 (allow_special_filenames): New local var.
21125 (enable_special_filenames): New public functions.
21126 * sm/gpgsm.c (allow_special_filenames): Remove var.
21127 (main): Call enable_special_filenames instead of setting the var.
21128 (open_read, open_es_fread, open_es_fwrite): Call
21129 check_special_filename with 0 for NOTRANSLATE.
21130 * common/iobuf.c (special_names_enabled): Remove var.
21131 (iobuf_enable_special_filenames): Remove func.
21132 (check_special_filename): Remove func.
21133 (iobuf_is_pipe_filename): Call new version of the function with
21136 * g10/gpg.c (main): Call enable_special_filenames instead of
21137 iobuf_enable_special_filenames.
21138 * g10/gpgv.c (main): Ditto.
21140 2016-11-29 Justus Winter <justus@g10code.com>
21142 g10: Fix memory leak.
21143 + commit 52385a2ba1bf7e53f500ffde5fd34f28e69cf76b
21144 * g10/decrypt.c (decrypt_messages): Properly decrease the reference
21145 count of the armor filters after pushing them.
21147 tools,build: Build WKS tools against libintl.
21148 + commit 9fb5e9c14557f7567cbc7c50b9881b7d7bfa2f12
21149 * tools/Makefile.am (gpg_wks_server_LDADD): Link against libintl.
21150 (gpg_wks_client_LDADD): Likewise.
21152 2016-11-29 Neal H. Walfield <neal@g10code.com>
21154 Improve some comments.
21155 + commit 522f74f7e377135cf098b6b0b9b35284c1dfc963
21158 g10: Extend TOFU_STATS to always show the validity.
21159 + commit 2f27cb12e30c9f6e780354eecc3ff0039ed52c63
21160 * doc/DETAILS (TOFU_STATS): Rename the VALIDITY field to SUMMARY. Add
21161 a new field called VALIDITY.
21162 * g10/tofu.c (write_stats_status): Update output accordingly.
21164 2016-11-29 Justus Winter <justus@g10code.com>
21166 tests: Add test for '--decrypt --multifile'.
21167 + commit bde4fddadc75ad6071e3fc6c0980905de14c03cb
21168 * tests/openpgp/Makefile.am (XTESTS): Add new test.
21169 * tests/openpgp/decrypt-multifile.scm: New file.
21171 gpgscm: Avoid truncating pointers.
21172 + commit e062bc4da8062b822ee85096d9adfcbca8dcb56a
21173 * tests/gpgscm/scheme.c (_alloc_cellseg): Avoid truncating pointers on
21174 systems where sizeof(unsigned long) < sizeof(void *).
21176 2016-11-29 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21178 dirmngr: Lazily launch ldap reaper thread.
21179 + commit f6728d13e8e544dbd4b9351ed981613e5504293f
21180 * dirmngr/dirmngr.c (main): Avoid calling ldap_wrapper_launch_thread()
21182 * dirmngr/ldap-wrapper.c (ldap_wrapper): Call
21183 ldap_wrapper_launch_thread() just in time (before any attempt to use
21184 an ldap subprocess).
21186 2016-11-29 Werner Koch <wk@gnupg.org>
21188 build: Remove more keywords from the generated ChangeLog.
21189 + commit ecc126a7cef371e3b88e65715ba37fb77e92ea0f
21190 * build-aux/gitlog-to-changelog (parse_amend_file): Generalize keyword
21193 2016-11-28 Justus Winter <justus@g10code.com>
21195 tests: Add test for the ssh key export.
21196 + commit 47b8b9e2ce5af7fba117ae0b00e10bec414dcfb0
21197 * tests/openpgp/Makefile.am (XTESTS): Add new test.
21198 (sample_keys): Add new files.
21199 * tests/openpgp/samplekeys/authenticate-only.pub.asc: New file.
21200 * tests/openpgp/samplekeys/authenticate-only.sec.asc: Likewise.
21201 * tests/openpgp/ssh-export.scm: Likewise.
21203 g10: Fix iteration over getkey results.
21204 + commit 4db9a425644dccaf81b51ebc97b32a9cc21941a4
21205 * g10/getkey.c (getkey_next): Only ask 'lookup' for the exact match if
21206 our caller requested the key. Fixes a crash in 'lookup'.
21208 tests: Rename ssh test.
21209 + commit cc1d21342659a7def5d662d0547579f9e0d3b109
21210 * tests/openpgp/ssh.scm: Rename to 'ssh-import.scm'.
21211 * tests/openpgp/Makefile (XTESTS): Likewise.
21213 2016-11-25 NIIBE Yutaka <gniibe@fsij.org>
21215 scd: Support OpenPGP card V3 for RSA.
21216 + commit b89e63e5c326af71470124b410e6429cbd2b5c43
21217 * scd/app-openpgp.c (struct app_local_s): Remove max_cmd_data and
21218 max_rsp_data fields as Extended Capabilities bits are different.
21219 (get_cached_data) Use extcap.max_certlen_3.
21220 (get_one_do): Don't use exmode=1.
21221 (determine_rsa_response): New.
21222 (get_public_key, do_genkey): Call determine_rsa_response.
21223 (do_sign): Use keyattr[0].rsa.n_bits / 8, instead of max_rsp_data.
21224 (do_auth): Use keyattr[2].rsa.n_bits / 8, instead of max_rsp_data.
21225 (do_decipher): Likewise with Use keyattr[1].rsa.n_bits / 8.
21226 (show_caps): Remove max_cmd_data and max_rsp_data.
21227 (app_select_openpgp): Likewise.
21229 2016-11-23 Justus Winter <justus@g10code.com>
21231 gpgscm: Make 'reverse' compatible with 'reverse_in_place'.
21232 + commit 005d326d19ba28005182205f25edc4f7499ec0b5
21233 * tests/gpgscm/scheme.c (reverse): Update prototype, add terminator
21235 (opexe_4): Update callsite.
21237 gpgscm: Clean sweeped cells.
21238 + commit 3fb9954c43425775a517060959dad01fa00238f7
21239 * tests/gpgscm/scheme.c (gc): Zero typeflag and car of free cells.
21241 gpgscm: Fix initialization of 'sink'.
21242 + commit 7856e3efaad7614979bc0b91379a0a4dcbc739d5
21243 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Also initialize
21246 2016-11-23 Neal H. Walfield <neal@g10code.com>
21248 g10: Avoid gratuitously loading a keyblock when it is already available.
21249 + commit 03a65a53231cc3132a50a1871e81a512c44da169
21250 * g10/trust.c (get_validity): Add new, optional parameter KB. Only
21251 load the keyblock if KB is NULL. Update callers.
21252 (get_validity): Likewise.
21253 * g10/trustdb.c (tdb_get_validity_core): Likewise.
21255 2016-11-22 Neal H. Walfield <neal@g10code.com>
21257 g10: Use es_fopen instead of open.
21258 + commit bfeafe2d3f9bbaa7f11f3ad870a446141c038b0d
21259 * g10/tofu.c: Don't include <utime.h>, <fcntl.h> or <unistd.h>.
21260 (busy_handler): Replace use of open with es_fopen.
21262 g10: If the set of UTKs changes, invalidate any changed policies.
21263 + commit 44c17bcb003a3330f595a6ab144e8439b7b630cb
21264 * g10/trustdb.c (tdb_utks): New function.
21265 * g10/tofu.c (check_utks): New function.
21267 * tests/openpgp/tofu.scm: Modify test to check the effective policy of
21268 keys whose effective policy changes when we change the set of UTKs.
21270 2016-11-22 NIIBE Yutaka <gniibe@fsij.org>
21272 scd: Fix receive buffer size.
21273 + commit 5c2db9dedfe9dbb14ffec24751ca23a69cead94e
21274 * scd/apdu.c (send_le): Fix the size, adding two for status
21277 2016-11-22 Justus Winter <justus@g10code.com>
21280 + commit a3b258d1d15953816e0567511ecc527a4ccdd626
21281 * tests/gpgscm/scheme.c (opexe_0): Reduce code duplication.
21283 gpgscm: Fix property lists.
21284 + commit d8df80427238cdbb9ae0f6dae8bc7e9c24f6e265
21285 * tests/gpgscm/opdefines.h (put, get): Check arguments. Also rename
21286 to 'set-symbol-property' and 'symbol-property', the names used by
21287 Guile, because put and get are too unspecific.
21288 * tests/gpgscm/scheme.c (hasprop): Only symbols have property lists.
21289 (get_property): New function.
21290 (set_property): Likewise.
21291 (opexe_4): Use the new functions.
21293 gpgscm: Fix installation of error handler.
21294 + commit 7b4e2ea274ace22245264f1759279390d0300a62
21295 * tests/gpgscm/ffi.scm: Set '*error-hook*' again so that the
21296 interpreter will use our function.
21298 gpgscm: Use a static pool of cells for small integers.
21299 + commit 66834eb838a8892d088f6b7332084a64d9f15008
21300 * tests/gpgscm/scheme-private.h (struct scheme): New fields for the
21301 static integer cells.
21302 * tests/gpgscm/scheme.c (_alloc_cellseg): New function.
21303 (alloc_cellseg): Use the new function.
21304 (MAX_SMALL_INTEGER): New macro.
21305 (initialize_small_integers): New function.
21306 (mk_small_integer): Likewise.
21307 (mk_integer): Return a small integer if possible.
21308 (_s_return): Do not free 'op' if it is a small integer.
21309 (s_save): Use a small integer to box the opcode.
21310 (scheme_init_custom_alloc): Initialize small integers.
21311 (scheme_deinit): Free chunk of small integers.
21312 * tests/gpgscm/scheme.h (USE_SMALL_INTEGERS): New macro.
21314 tests: Delay querying the avaliable algorithms.
21315 + commit 893a3f7fb46021961914a8acdf1292a80e3eba93
21316 * tests/openpgp/defs.scm: Set verbosity earlier, turn 'all-*-algos'
21318 * tests/openpgp/conventional-mdc.scm: Force the promises.
21319 * tests/openpgp/conventional.scm: Likewise.
21320 * tests/openpgp/encrypt-dsa.scm: Likewise.
21321 * tests/openpgp/encrypt.scm: Likewise.
21322 * tests/openpgp/gpgtar.scm: Likewise.
21323 * tests/openpgp/sigs.scm: Likewise.
21325 g10: Fix memory leak.
21326 + commit 6ce14a805f1da687dfb8535db57730d5c7403db7
21327 * g10/tofu.c (tofu_notice_key_changed): Remove spurious duplicate call
21328 to 'hexfingerprint'.
21330 2016-11-21 Neal H. Walfield <neal@g10code.com>
21332 g10: Cache the effective policy. Recompute it when required.
21333 + commit 037f9de09298a31026ea2ab5fbd4a599b11cc34f
21334 * g10/tofu.c (initdb): Add column effective_policy to the bindings
21336 (record_binding): New parameters effective_policy and set_conflict.
21337 Save the effective policy. If SET_CONFLICT is set, then set conflict
21338 according to CONFLICT. Otherwise, preserve the current value of
21339 conflict. Update callers.
21340 (get_trust): Don't compute the effective policy here...
21341 (get_policy): ... do it here, if it was not cached. Take new
21342 parameters, PK, the public key, and NOW, the time that the operation
21343 started. Update callers.
21344 (show_statistics): New parameter PK. Pass it to get_policy. Update
21346 (tofu_notice_key_changed): New function.
21347 * g10/gpgv.c (tofu_notice_key_changed): New stub.
21348 * g10/import.c (import_revoke_cert): Take additional argument CTRL.
21349 Pass it to keydb_update_keyblock.
21350 * g10/keydb.c (keydb_update_keyblock): Take additional argument CTRL.
21352 [USE_TOFU]: Call tofu_notice_key_changed.
21353 * g10/test-stubs.c (tofu_notice_key_changed): New stub.
21354 * tests/openpgp/tofu.scm: Assume that manually setting a binding's
21355 policy to auto does not cause the tofu engine to forget about any
21358 g10: Correctly parameterize ngettext.
21359 + commit 182efc5b5d20ac0d43501a22f349a23dc06a27a4
21360 * g10/tofu.c (ask_about_binding): Correctly parameterize ngettext.
21362 g10: Don't use the same variable for multiple SQL compiled statements.
21363 + commit 7142b293c870d73ce0146bfb90e6a556e0079650
21364 * g10/tofu.c (struct tofu_dbs_s): Remove unused field
21365 record_binding_update2. Replace register_insert with
21366 register_signature and register_encryption.
21367 (tofu_register_signature): Don't use dbs->s.register_insert, but
21368 dbs->s.register_signature.
21369 (tofu_register_encryption): Don't use dbs->s.register_insert, but
21370 dbs->s.register_encryption.
21372 g10: Add a convenience function for checking if a key is a primary key.
21373 + commit 91a0483c5db8ee4510981448a705981ee1cce199
21374 * g10/keydb.h (pk_is_primary): New function.
21375 * g10/tofu.c (get_trust): Use it.
21376 (tofu_register_signature): Likewise.
21377 (tofu_register_encryption): Likewise.
21378 (tofu_set_policy): Likewise.
21379 (tofu_get_policy): Likewise.
21381 2016-11-21 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21383 doc: Ship example gpg-agent-browser.socket in examples/systemd-user/.
21384 + commit 0540cfbee455b197edd89b602a4b47ebf0be8588
21385 * doc/Makefile.am: Ship gpg-agent-browser.socket alongside the other
21386 systemd user service example files.
21388 2016-11-21 NIIBE Yutaka <gniibe@fsij.org>
21390 agent: Fix npth + daemon mode problem.
21391 + commit 9a707a223a3d45ccf245dee7989ca144e4e6bb49
21392 * agent/gpg-agent.c (main): Remove duplicated initialization in daemon
21395 2016-11-18 Werner Koch <wk@gnupg.org>
21398 + commit 0a641ad25d8c3b91dc32bb9f3f1ae49ae539a4f7
21401 2016-11-18 Ineiev <ineiev@gnu.org>
21403 po: Update Russian translation.
21404 + commit 11aaa9c6d4ed3e47de45b4aee925ab1065120988
21407 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
21409 g10: Fix flags to open for lock of ToFU.
21410 + commit 1c0b140cccfb884c6d07785c3284b9df06dccd3c
21411 * g10/tofu.c (busy_handler): Fix the flags and utime is not needed.
21413 2016-11-18 Werner Koch <wk@gnupg.org>
21415 dirmngr: Use a longer timer tick interval.
21416 + commit 833eef974ad4721b9b3e247bae9c890476a936ce
21417 * dirmngr/dirmngr.c (TIMERTICK_INTERVAL): Always use 60 seconds like
21418 we did for WindowsCE.
21420 2016-11-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21422 dirmngr: More w32 system daemon cleanup.
21423 + commit b3a917201207898059c048dd101344765201b03c
21424 * dirmngr/dirmngr.c (handle_tick): Remove w32 tests for
21425 shutdown_pending; no longer needed.
21427 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
21429 g10: Fix creating a lock for ToFU.
21430 + commit b2e1b17efa952afcf7aeec8b15e9d0088dba587a
21431 * g10/tofu.c (busy_handler): Add third argument which is mandatory for
21434 scd: Don't limit to ST-2xxx for PC/SC.
21435 + commit b6066ab18a67195817babaf9eccf896c2b3c7b0e
21436 * scd/apdu.c (pcsc_vendor_specific_init): Only check vender ID.
21438 2016-11-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21440 dirmngr: Use a default keyserver if none is explicitly set.
21441 + commit 8fb482252436b3b4b0b33663d95d1d17188ad1d9
21442 * configure.ac: Define DIRMNGR_DEFAULT_KEYSERVER.
21443 * dirmngr/server.c (ensure_keyserver): Use it if no keyservers are set.
21444 * doc/dirmngr.texi: Document this behavior.
21446 dirmngr: Add system CAs if no hkp-cacert is given.
21447 + commit 7c1613d41566f7d8db116790087de323621205fe
21448 * dirmngr/dirmngr.c (http_session_new): If the user isn't talking to
21449 the HKPS pool, and they have not specified any hkp-cacert, then we
21450 should default to the system CAs, rather than nothing.
21451 * doc/dirmngr.texi: Document choice of CAs.
21453 dirmngr: Register hkp-cacert even if the file doesn't exist yet.
21454 + commit c4e02a3b7ad6ee1da6bfc439921378bdbd5c029c
21455 * dirmngr/dirmngr.c (parse_readable_options): If we're unable to turn
21456 an argument for hkp-cacert into an absolute filename, terminate
21458 * dirmngr/http.c (http_register_tls_ca): Show a warning if file is not
21459 immediately accessible, but register it anyway.
21461 2016-11-17 Justus Winter <justus@g10code.com>
21463 gpgscm: Re-enable the garbage collector in case of errors.
21464 + commit 4f189325a409bb08f7a8eabfac3f4579288cf5c5
21465 * tests/gpgscm/scheme.c (opexe_0): Enable gc before calling 'Error_1'.
21467 gpgscm: Fix string.
21468 + commit fc53a4d06eaf891143ab4efec9caffe31ebc2bc0
21469 * tests/gpgscm/scheme.c (type_to_string): Fix string.
21471 2016-11-17 Werner Koch <wk@gnupg.org>
21473 dirmngr: Auto-sownload the swdb.lst.
21474 + commit bd91f92ace09263e3a91177f2a1644379baeb08a
21475 * dirmngr/dirmngr.h (struct opt): Add field allow_version_check.
21476 * dirmngr/dirmngr.c (oAllowVersionCheck): New.
21477 (opts): Add --allow-version-check.
21478 (network_activity_seen): New variable.
21479 (parse_rereadable_options): Set opt.allow_version_check.
21480 (main) <aGPGConfList>: Do not anymore set the no change flag for
21481 Windows. Add allow-version-check.
21482 (netactivity_action): Set network_activity_seen.
21483 (housekeeping_thread): Call dirmngr_load_swdb.
21484 * tools/gpgconf-comp.c (gc_options_dirmngr): Add allow-version-check.
21485 Make "use-tor" available at Basic level.
21487 dirmngr: Improve downloading of swdb.lst.
21488 + commit c45ca316a54665915ae08399484db271566db7c0
21489 * dirmngr/loadswdb.c (time_of_saved_swdb): Aslo return the "verified"
21491 (dirmngr_load_swdb): Avoid unnecessary disk or network access witout
21492 FORCE. Do not update swdb.lst if it did not change.
21494 gpgconf: Change the displayed names of the components.
21495 + commit d8da5bc50b856db3445435780311c9f8e52a5144
21498 2016-11-16 Werner Koch <wk@gnupg.org>
21500 dirmngr: Add command to only load the swdb.
21501 + commit 52c10a280af6ce06eb1732ff35b095f2b8d24b9f
21502 * dirmngr/loadswdb.c: New.
21503 * dirmngr/Makefile.am (dirmngr_SOURCES): Add that file.
21504 * dirmngr/server.c: Remove includes cpparray.h and exectool.h.
21505 (cmd_loadswdb): New.
21506 (parse_version_number,parse_version_string): Remove.
21507 (my_mktmpdir, cmp_version): Remove.
21508 (fetch_into_tmpdir): Remove.
21509 (struct verify_swdb_parm_s): Remove.
21510 (verify_swdb_status_cb): Remove.
21511 (cmd_versioncheck): Remove.
21512 (register_commands): Register LOADSWDB. Remove VERSIONCHECK.
21514 scd,dirmngr: Keep the standard fds when daemonizing.
21515 + commit 4839e6d002a8ad1f7d3260792c3c9641e258f342
21516 * dirmngr/dirmngr.c (main): Before calling setsid do not close the
21517 standard fds but connect them to /dev/null.
21518 * scd/scdaemon.c (main): Ditto. Noet that the old test for a log
21519 stream was even reverted.
21521 common: Rename keybox_file_rename to gnupg_rename_file.
21522 + commit c4506a3f15bba5d257cb4c6738800c5e00ecc9a2
21523 * kbx/keybox-util.c (keybox_file_rename): Rename to ...
21524 * common/sysutils.c (gnupg_rename_file): this. Change all callers.
21526 wks: Always build gpg-wks-client.
21527 + commit c564790df723beef031d83802bd7830737bd330a
21528 * tools/Makefile.am (gpg_wks_client): Remove macro.
21529 (libexec_PROGRAMS): Add gpg-wks-client.
21531 gpg: New option --override-session-key-fd.
21532 + commit 43bfaf2c5417ede621c0a07721952ea549a7a139
21533 * g10/gpg.c (oOverrideSessionKeyFD): New.
21534 (opts): Add option --override-session-key-fd.
21535 (main): Handle that option.
21536 (read_sessionkey_from_fd): New.
21538 2016-11-15 Werner Koch <wk@gnupg.org>
21540 gpgv: New option --enable-special-filenames.
21541 + commit 500e594c2da530e69a63fc1a40d173458682fa0e
21542 * g10/gpgv.c (oEnableSpecialFilenames): New.
21543 (opts): Add option --enable-special-filenames.
21544 (main): Implement that option.
21546 gpg: Add new compliance mode "de-vs".
21547 + commit b47603a0ac24902c5bb000f8ef27cfb99aceeb81
21548 * g10/options.h (CO_DE_VS): New.
21549 (GNUPG): Also allow CO_DE_VS.
21550 * g10/gpg.c (oDE_VS): New.
21551 (parse_compliance_option): Add "de-vs".
21552 (set_compliance_option): Set "de-vs".
21553 * g10/misc.c (compliance_option_string): Return a description string.
21554 (compliance_failure): Ditto.
21555 * g10/keygen.c (ask_algo): Take care of CO_DE_VS.
21556 (get_keysize_range): Ditto.
21557 (ask_curve): Add new field to CURVES and trun flags into bit flags.
21558 Allow only Brainpool curves in CO_DE_VS mode.
21560 gpg: Use usual free semantics for packet structure free functions.
21561 + commit 8ea3b4c4102dc67ed83d4419b7171e422fc01047
21562 * g10/free-packet.c (free_attributes): Turn function into a nop for a
21564 (free_user_id): Ditto.
21565 (free_compressed): Ditto.
21566 (free_encrypted): Ditto.
21567 (free_plaintext): Ditto.
21568 (release_public_key_parts): Avoid extra check for NULL.
21569 * g10/getkey.c (get_best_pubkey_byname): Ditto.
21571 2016-11-15 Justus Winter <justus@g10code.com>
21573 g10: Optimize key iteration.
21574 + commit 12834e84aca9d74800245f0f2f2e6b5123e76173
21575 * g10/getkey.c (get_best_pubkey_byname): Use the node returned by
21576 'getkey_next' instead of doing another lookup.
21578 g10: Fix memory leak.
21579 + commit d20107f6da094edd782947abb357abae5129a12c
21580 * g10/getkey.c (finish_lookup): Clarify that we do not return a
21582 (lookup): Clarify the relation between RET_KEYBLOCK and RET_FOUND_KEY.
21583 Check arguments. Actually release the node if it is not returned.
21585 g10: Fix iteration over getkey results.
21586 + commit 1d03cc77e1706f7da653153ad4b58c61e4fd2573
21587 * g10/getkey.c (getkey_next): Fix invocation of 'lookup'. If we want
21588 to use RET_FOUND_KEY, RET_KEYBLOCK must be valid.
21590 g10: Fix use-after-free.
21591 + commit bd60742925414e0ef2a497df827c1913ea211a44
21592 * g10/getkey.c (pubkey_cmp): Make a copy of the user id.
21593 (get_best_pubkey_byname): Free the user ids.
21595 2016-11-15 Werner Koch <wk@gnupg.org>
21597 sm: New stub option --compliance.
21598 + commit 26c7c1d72c5f2acb3edb58d610c09a635c87bdbf
21599 * sm/gpgsm.c (oCompliance): New.
21600 (opts): Add "--compliance".
21601 (main): Implement as stub.
21603 2016-11-15 NIIBE Yutaka <gniibe@fsij.org>
21605 g10: Fix memory leak.
21606 + commit 1f7639ebbe58af1b581b0be7809da9ee55482992
21607 * g10/keyedit.c (menu_adduid): Don't copy 'sig'.
21609 2016-11-15 Werner Koch <wk@gnupg.org>
21611 gpg: New option --compliance.
21612 + commit f86b1a15ad4bb7bcc1e9f7d209aabcb23641f7df
21613 * g10/gpg.c (oCompliance): New.
21614 (opts): Add "--compliance".
21615 (parse_tofu_policy): Use a generic description string for "help".
21616 (parse_compliance_option): New.
21617 (main): Add option oCompliance. Factor out code for compliance
21619 (set_compliance_option): new.
21621 2016-11-15 Justus Winter <justus@g10code.com>
21623 g10: Fix memory leak.
21624 + commit 809d67e74014cb563efd965744fd11f87bbae743
21625 * g10/keyedit.c (menu_adduid): Deallocate 'sig'.
21627 gpgscm: Mark cells requiring finalization.
21628 + commit 64a58e23c38db8658423bbe26fcd650330e24a88
21629 * tests/gpgscm/scheme.c (T_FINALIZE): New macro.
21630 (mk_port): Use the new macro.
21631 (mk_foreign_object): Likewise.
21632 (mk_counted_string): Likewise.
21633 (mk_empty_string): Likewise.
21634 (gc): Only call 'finalize_cell' for cells with the new flag.
21636 gpgscm: Recover more cells.
21637 + commit 93cc322ac06d3045a24aece90091f7f80f3dacb8
21638 * tests/gpgscm/scheme.c (_s_return): Recover the cell holding the
21641 2016-11-14 Justus Winter <justus@g10code.com>
21643 g10: Fix memory leak.
21644 + commit 2cd281c4def1ea881b92b9aba18c1892f89c1870
21645 * g10/mainproc.c (check_sig_and_print): Free 'pk'.
21647 gpgscm: Avoid cell allocation overhead.
21648 + commit 83c184a66b73f312425b01008f0495610e5329a4
21649 * tests/gpgscm/scheme-private.h (struct scheme): New fields
21650 'inhibit_gc', 'reserved_cells', and 'reserved_lineno'.
21651 * tests/gpgscm/scheme.c (GC_ENABLED): New macro.
21652 (USE_GC_LOCKING): Likewise.
21653 (gc_reservations): Likewise.
21654 (gc_reservation_failure): New function.
21655 (_gc_disable): Likewise.
21656 (gc_disable): New macro.
21657 (gc_enable): Likewise.
21658 (gc_enabled): Likewise.
21659 (gc_consume): Likewise.
21660 (get_cell_x): Consume reserved cell if garbage collection is disabled.
21661 (_get_cell): Assert that gc is enabled.
21662 (get_cell): Only record cell in the list of recently allocated cells
21664 (get_vector_object): Likewise.
21665 (gc): Assert that gc is enabled.
21666 (s_return): Add comment, adjust call to '_s_return'.
21667 (s_return_enable_gc): New macro.
21668 (_s_return): Add flag 'enable_gc' and re-enable gc if set.
21669 (oblist_add_by_name): Use the new facilities to protect the
21671 (new_frame_in_env): Likewise.
21672 (new_slot_spec_in_env): Likewise.
21673 (s_save): Likewise.
21674 (opexe_0): Likewise.
21675 (opexe_1): Likewise.
21676 (opexe_2): Likewise.
21677 (opexe_5): Likewise.
21678 (opexe_6): Likewise.
21679 (scheme_init_custom_alloc): Initialize the new fields.
21681 2016-11-14 NIIBE Yutaka <gniibe@fsij.org>
21683 scd: Fix status info encoding.
21684 + commit 4ee4d0b02172cf56d9582bb99e32a65c75315b25
21685 * scd/command.c (send_status_info): Do percent plus encoding correctly.
21687 2016-11-12 Werner Koch <wk@gnupg.org>
21689 agent: Improve concurrency when Libgcrypt 1.8 is used.
21690 + commit 6bf698197222bf6081c249c815aebb075e8ec820
21691 * agent/gpg-agent.c (thread_init_once): Tell Libgcrypt to reinit the
21693 (agent_libgcrypt_progress_cb): Do not sleep if Libgcrypt is recent
21696 2016-11-11 Werner Koch <wk@gnupg.org>
21698 agent: Kludge to mitigate blocking calls in Libgcrypt.
21699 + commit 4473db1ef24031ff4e26c9a9de95dbe898ed2b97
21700 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Sleep for 100ms on
21703 dirmngr: Prepare to trigger jobs by network activity.
21704 + commit 7b04a43c05834b937b32a596f1941e9728add5fa
21705 * dirmngr/http.c (netactivity_cb): New.
21706 (http_register_netactivity_cb): New.
21707 (notify_netactivity): New.
21708 (connect_server): Call that function.
21709 * dirmngr/dirmngr.c (main): Call http_register_netactivity_cb.
21710 (netactivity_action): New stub handler.
21712 2016-11-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
21714 agent: Clean up comments.
21715 + commit e51912f467fda963c7abcfcd4082d6eb084ba5be
21716 * agent/agent.h: Clean up comments.
21718 2016-11-10 Werner Koch <wk@gnupg.org>
21720 gpg,sm: Add STATUS_ERROR keydb_search and keydb_add-resource.
21721 + commit 5d13581f4737c18430f6572dd4ef486d1ad80dd1
21722 * g10/keydb.c (keydb_add_resource): Make ANY_REGISTERED
21723 file-global. Write a STATUS_ERROR.
21724 (maybe_create_keyring_or_box): Check for non-accessible but existant
21726 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
21727 but continue to return NOT_FOUND.
21728 * sm/keydb.c (keydb_add_resource): Rename ANY_PUBLIC to ANY_REGISTERED
21729 and make file-global. Write a STATUS_ERROR.
21730 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
21731 but continue to return NOT_FOUND. Also add new arg CTRL and change
21732 all callers to pass it down.
21734 sm: Remove unused arg SECRET from keydb functions.
21735 + commit c8044c6e335f044d7386b9e8869bc4a0d3adff70
21736 * sm/keydb.c (struct resource_item): Remove field 'secret'.
21737 (keydb_add_resource): Remove arg 'secret' and change all callers.
21738 (keydb_new): Ditto.
21740 2016-11-10 Justus Winter <justus@g10code.com>
21742 gpgscm: Recover cells from the list of recently allocated cells.
21743 + commit ee08677d63a900cea85228024861a4f5c5a87c69
21744 * tests/gpgscm/scheme.c (ok_to_freely_gc): Recover cells.
21746 gpgscm: Recover cells used to maintain interpreter state.
21747 + commit e0cbd3389e2dd6ec19ee3a4c7bad81fa0f1907f5
21748 * tests/gpgscm/scheme.c (free_cell): New function.
21749 (free_cons): Likewise.
21750 (_s_return): Use the new function to recover cells used to save the
21751 state of the interpreter in 's_save'. This reduces the need to do a
21752 garbage collection considerably.
21754 gpgscm: Reduce opcode dispatch overhead.
21755 + commit d3a98ff5bc972a4c9b01b9e5338a4a59b5b4ac48
21756 * tests/gpgscm/scheme.c (s_thread_to): New macro.
21758 (opexe_[0-6]): Use 'CASE' instead of 'case' statements, replace
21759 's_goto' with 's_thread_to' where applicable.
21761 gpgscm: Make the compile-hook configurable.
21762 + commit 568cfcde45a0d6c456d8f8be1ea0e408416badad
21763 * tests/gpgscm/scheme-private.h (struct scheme): Make field
21764 'COMPILE_HOOK' optional.
21765 * tests/gpgscm/scheme.c (opexe_0): Fix guard.
21766 (scheme_init_custom_alloc): Conditionally initialize 'COMPILE_HOOK'.
21767 * tests/gpgscm/scheme.h (USE_COMPILE_HOOK): Define to 1 by default.
21769 gpgscm: Drop obsolete commented-out code.
21770 + commit 9ee184bc0afaea06785d836ed175b851b9ae532f
21771 * tests/gpgscm/scheme.c (opexe_5): Drop obsolete code.
21773 gpgscm: Remove dubious stack implementation.
21774 + commit d7c5799c282a03dcce0e3d327075233353cb76cc
21775 * tests/gpgscm/scheme-private.h (struct scheme): Remove related fields.
21776 * tests/gpgscm/scheme.c: Drop all !USE_SCHEME_STACK code.
21777 * tests/gpgscm/scheme.h (USE_SCHEME_STACK): Remove macro.
21779 2016-11-10 Werner Koch <wk@gnupg.org>
21781 gpg: Improve error message for --quick-gen-key.
21782 + commit 088d955bd8a6ec8bbf76c8a4c01eb08499d1d9fa
21783 * g10/keygen.c (parse_algo_usage_expire): Use a different error
21784 message for an unknown algorithm name.
21786 dirmngr: Improve concurrency in the non-adns case.
21787 + commit c7ea98cd3d44abf00e32c081e5049ad1d0b1f12c
21788 * dirmngr/dns-stuff.c (map_adns_status_to_gpg_error): New.
21789 (resolve_name_adns, get_dns_cert, get_dns_cname): Use that function.
21790 (getsrv) [!USE_ADNS]: Call res_query outside of nPth.
21792 2016-11-08 Justus Winter <justus@g10code.com>
21794 tests: Fix environment setup.
21795 + commit 1062953d5132af674aacfc6372e3e9f066c5d145
21796 * tests/openpgp/defs.scm (setup-legacy-environment): Do not call
21797 'setup-environment' because that will start the agent, and hence
21798 register the atexit function twice.
21800 Fixes: a55393cb5f4b331cb3a715c7d9a8b91f7606f337
21802 tests: Log and display output from tests when run in parallel.
21803 + commit 2a7615c48ed79e6b28710cc293ce30c812b2e5b0
21804 * tests/openpgp/run-tests.scm (test): Add field 'logfd'.
21805 (test::new, test::set-*): Adapt accordingly.
21806 (test::set-logfd): New function.
21807 (test::open-log-file): Likewise.
21808 (test::run-sync): Use the new function.
21809 (test::run-async): Likewise.
21810 (test::report): Replay the log.
21811 (run-tests-parallel): Reverse the results to restore the original
21814 tests: Simplify test.
21815 + commit 4dd4801bfa4c3f7ba279b3d171a8ed299dbffaaa
21816 * tests/openpgp/issue2417.scm: Simplify.
21818 gpgscm: Expose seek and associated constants.
21819 + commit 591d61d80f4f81176f7e236df794922df9e001a1
21820 * tests/gpgscm/ffi.c (do_seek): New function.
21821 (ffi_init): Expose 'seek' and 'SEEK_{SET,CUR,END}'.
21822 * tests/gpgscm/lib.scm: Document the new function.
21824 gpgscm: Fix error message.
21825 + commit d4454837cd60981c2863955b11c9e1cc8f9e3833
21826 * tests/gpgscm/ffi.c (do_wait_processes): Fix and improve error
21829 tests,w32: Make cleanup more robust.
21830 + commit dd13b2a561e31045fd3d3576bab99543cd4eb6cc
21831 * tests/openpgp/run-tests.scm (run-tests-parallel): Catch errors when
21832 removing the working directory. On Windows this can fail if there is
21833 still a process using one of the files there.
21834 (run-tests-sequential): Likewise.
21836 common,w32: Simplify locking.
21837 + commit 7cbb0803847b8db618d39ff50ae6015e409ab1ae
21838 * common/asshelp.c (lock_spawning): Use the same code on Windows that
21839 we use on all other platforms.
21840 (unlock_spawning): Likewise.
21842 2016-11-07 Justus Winter <justus@g10code.com>
21844 tests: Write a log file for each test.
21845 + commit 26df829fa22f027ca4a5eaf155cdaa2123afbdd5
21846 * tests/openpgp/Makefile.am (CLEANFILES): Delete logs.
21847 * tests/openpgp/run-tests.scm (test::run-sync): Write logs.
21849 gpgscm: Generalize splice to write to multiple sinks.
21850 + commit abe0cc7a21d2b0b5c77cc525b999d1ede2d29185
21851 * tests/gpgscm/ffi.c (ordinal_suffix): New function.
21852 (do_splice): Generalize splice to write to multiple sinks.
21853 * tests/gpgscm/lib.scm (splice): Document this fact.
21855 gpgscm: Drop 'len' argument from splice.
21856 + commit 4d98a72b88cf167295e1ecd6125b9c7a11b6239f
21857 * tests/gpgscm/ffi.c (do_splice): Drop 'len' argument, no-one uses it.
21858 * tests/gpgscm/lib.scm (splice): Document foreign function.
21860 tests: Move environment creation and teardown into each test.
21861 + commit a55393cb5f4b331cb3a715c7d9a8b91f7606f337
21862 * tests/gpgscm/tests.scm (log): New function.
21863 * tests/openpgp/run-tests.scm (run-tests-parallel): Do not run the
21864 startup and teardown scripts.
21865 (run-tests-sequential): Likewise.
21866 * tests/openpgp/setup.scm: Move all functions...
21867 * tests/openpgp/defs.scm: ... here and make them less verbose.
21868 (setup-environment): New function.
21869 (setup-legacy-environment): Likewise.
21870 (start-agent): Make less verbose, run 'stop-agent' at interpreter
21872 (stop-agent): Make less verbose.
21873 * tests/openpgp/finish.scm: Drop file.
21874 * tests/openpgp/Makefile.am (EXTRA_DIST): Drop removed file.
21875 * tests/openpgp/4gb-packet.scm: Use 'setup-environment' or
21876 'setup-legacy-environment' as appropriate.
21877 * tests/openpgp/armdetach.scm: Likewise.
21878 * tests/openpgp/armdetachm.scm: Likewise.
21879 * tests/openpgp/armencrypt.scm: Likewise.
21880 * tests/openpgp/armencryptp.scm: Likewise.
21881 * tests/openpgp/armor.scm: Likewise.
21882 * tests/openpgp/armsignencrypt.scm: Likewise.
21883 * tests/openpgp/armsigs.scm: Likewise.
21884 * tests/openpgp/clearsig.scm: Likewise.
21885 * tests/openpgp/conventional-mdc.scm: Likewise.
21886 * tests/openpgp/conventional.scm: Likewise.
21887 * tests/openpgp/decrypt-dsa.scm: Likewise.
21888 * tests/openpgp/decrypt.scm: Likewise.
21889 * tests/openpgp/default-key.scm: Likewise.
21890 * tests/openpgp/detach.scm: Likewise.
21891 * tests/openpgp/detachm.scm: Likewise.
21892 * tests/openpgp/ecc.scm: Likewise.
21893 * tests/openpgp/encrypt-dsa.scm: Likewise.
21894 * tests/openpgp/encrypt.scm: Likewise.
21895 * tests/openpgp/encryptp.scm: Likewise.
21896 * tests/openpgp/export.scm: Likewise.
21897 * tests/openpgp/finish.scm: Likewise.
21898 * tests/openpgp/genkey1024.scm: Likewise.
21899 * tests/openpgp/gpgtar.scm: Likewise.
21900 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
21901 * tests/openpgp/import.scm: Likewise.
21902 * tests/openpgp/issue2015.scm: Likewise.
21903 * tests/openpgp/issue2417.scm: Likewise.
21904 * tests/openpgp/issue2419.scm: Likewise.
21905 * tests/openpgp/key-selection.scm: Likewise.
21906 * tests/openpgp/mds.scm: Likewise.
21907 * tests/openpgp/multisig.scm: Likewise.
21908 * tests/openpgp/quick-key-manipulation.scm: Likewise.
21909 * tests/openpgp/seat.scm: Likewise.
21910 * tests/openpgp/shell.scm: Likewise.
21911 * tests/openpgp/signencrypt-dsa.scm: Likewise.
21912 * tests/openpgp/signencrypt.scm: Likewise.
21913 * tests/openpgp/sigs-dsa.scm: Likewise.
21914 * tests/openpgp/sigs.scm: Likewise.
21915 * tests/openpgp/ssh.scm: Likewise.
21916 * tests/openpgp/tofu.scm: Likewise.
21917 * tests/openpgp/use-exact-key.scm: Likewise.
21918 * tests/openpgp/verify.scm: Likewise.
21919 * tests/openpgp/version.scm: Likewise.
21920 * tests/openpgp/issue2346.scm: Likewise and simplify.
21922 tests: Do not allow tests to be run in a shared environment.
21923 + commit ac078469cbafe85cf771fca84f376740850d10b0
21924 * tests/openpgp/README: Update.
21925 * tests/openpgp/run-tests.scm (run-tests-parallel-shared): Drop
21927 (run-tests-parallel-isolated): Rename to 'run-tests-parallel'.
21928 (run-tests-sequential-shared): Drop function.
21929 (run-tests-sequential-isolated): Rename to 'run-tests-sequential'.
21932 + commit 37751d2b194bc33539f5b9ea0e02e9f209d2bcf6
21933 * tests/openpgp/Makefile.am: Drop dependency on 'mk-tdata'.
21935 Fixes: 70215ff470c82d144e872057dfa5a478cc9195f2
21937 2016-11-07 Werner Koch <wk@gnupg.org>
21939 wks: Encrypt all client mails also the target key,
21940 + commit 56e1864aa337f36317534db521fd4434d70e0784
21941 * tools/gpg-wks-client.c (encrypt_response): Add arg FINGERPRINT.
21942 (send_confirmation_response): Ditto.
21943 (process_confirmation_request): Parse out fingerprint and pass
21944 send_confirmation_response.
21946 2016-11-07 Justus Winter <justus@g10code.com>
21948 tests,tools: Reimplement 'mk-tdata' in Scheme.
21949 + commit 70215ff470c82d144e872057dfa5a478cc9195f2
21950 * tests/openpgp/defs.scm (tools): Drop 'mk-tdata'.
21951 * tests/openpgp/setup.scm (make-test-data): New function.
21952 * tests/openpgp/verify.scm: Avoid 'mk-tdata'.
21953 * tools/Makefile.am (noinst_PROGRAMS): Drop 'mk-tdata'.
21954 * tools/mk-tdata.c: Drop file.
21956 gpgscm,w32: Provide schemish file handling for binary files.
21957 + commit 413cc50345557e0a516f33b98e8aab19bbc8b4fe
21958 * tests/gpgscm/lib.scm (call-with-binary-input-file): New function.
21959 (call-with-binary-output-file): Likewise.
21961 gpgscm: Add support for pseudo-random numbers.
21962 + commit 6e677f9b55fdb610e93134042ee41ee5c641cbdf
21963 * tests/gpgscm/ffi.c (do_getpid): New function.
21964 (do_srandom): Likewise.
21965 (random_scaled): Likewise.
21966 (do_random): Likewise.
21967 (do_make_random_string): Likewise.
21968 (ffi_init): Expose the new functions.
21969 * tests/gpgscm/lib.scm: Document the new functions.
21972 + commit 5840353d8bbcd9e75374f3bdb2547ffa7bbea897
21973 * g10/getkey.c (get_best_pubkey_byname): If 'get_pubkey_byname' does
21974 not return a getkey context, then it can return at most one key,
21975 therefore there is nothing to rank. Also, always initialize '*retctx'
21976 to be on the safe side.
21978 Fixes: ab89164be02012f1bf159c971853b8610e966301
21980 2016-11-04 Justus Winter <justus@g10code.com>
21982 gpgscm: Fix printing strings containing zero bytes.
21983 + commit 1f45878a72f23d4bae08d73b614096b485f35274
21984 * tests/gpgscm/scheme.c (atom2str): Fix computing the length of Scheme
21985 strings. Scheme strings can contain zero bytes.
21987 gpgscm: Implement 'atexit'.
21988 + commit 43f8006f5c75e3d15fe200e2fa41587a73bfb07b
21989 * tests/gpgscm/ffi.scm (throw): Run *run-atexit-handlers* when
21990 terminating the interpreter.
21991 (*atexit-handlers*): New variable.
21992 (*run-atexit-handlers*): New function.
21993 (atexit): Likewise.
21994 * tests/gpgscm/main.c (main): Run *run-atexit-handlers* at normal
21995 interpreter shutdown.
21997 2016-11-04 NIIBE Yutaka <gniibe@fsij.org>
21999 scd: Fix length error for READKEY.
22000 + commit cd00b07ec26c3408e6aee66957b08c6fd319b700
22001 * scd/app-openpgp.c (do_readkey): Decrement the length.
22003 scd: Add --advanced option for READKEY.
22004 + commit f9da935c3eb302e75a80def51128fb6f669661d7
22005 * scd/command.c (cmd_readkey) : Support ADVANCED arg.
22006 * scd/app.c (app_readcert): Add ADVANCED arg.
22007 * scd/app-openpgp.c (do_readkey): Implement ADVANCED arg.
22008 * scd/app-nks.c (do_readkey): Error return with GPG_ERR_NOT_SUPPORTED.
22010 2016-11-03 Werner Koch <wk@gnupg.org>
22012 agent: Extend the PINENTRY_LAUNCHED inquiry and status.
22013 + commit c1ea0b577a468030d2b006317ba27fc1746c4b14
22014 * agent/call-pinentry.c (start_pinentry): Get flavor and version and
22015 pass it to agent_inq_pinentry_launched.
22016 * agent/command.c (agent_inq_pinentry_launched): Add arg EXTRA.
22017 * g10/server.c (gpg_proxy_pinentry_notify): Print a new diagnostic.
22019 2016-11-03 Justus Winter <justus@g10code.com>
22021 g10: Improve and unify key selection for -r and --locate-keys.
22022 + commit ab89164be02012f1bf159c971853b8610e966301
22023 * g10/getkey.c (struct pubkey_cmp_cookie): New type.
22024 (key_is_ok, uid_is_ok, subkey_is_ok): New functions.
22025 (pubkey_cmp): Likewise.
22026 (get_best_pubkey_byname): Likewise.
22027 * g10/keydb.h (get_best_pubkey_byname): New prototype.
22028 * g10/keylist.c (locate_one): Use the new function.
22029 * g10/pkclist.c (find_and_check_key): Likewise.
22030 * tests/openpgp/Makefile.am (XTESTS): Add new test.
22031 (TEST_FILES): Add new files.
22032 * tests/openpgp/key-selection.scm: New file.
22033 * tests/openpgp/key-selection/0.asc: Likewise.
22034 * tests/openpgp/key-selection/1.asc: Likewise.
22035 * tests/openpgp/key-selection/2.asc: Likewise.
22036 * tests/openpgp/key-selection/3.asc: Likewise.
22037 * tests/openpgp/key-selection/4.asc: Likewise.
22039 gpgscm,tests: Add new functions to the test environment.
22040 + commit 1ec07cbc209f247fd85704f5701564e31aa56d0b
22041 * tests/gpgscm/lib.scm (first, last, powerset): New functions.
22042 * tests/gpgscm/tests.scm (interactive-shell): New function.
22043 * tests/openpgp/Makefile.am (EXTRA_DIST): Add new file.
22044 * tests/openpgp/README: Document 'interactive-shell'.
22045 * tests/openpgp/shell.scm: New file.
22047 2016-11-03 Werner Koch <wk@gnupg.org>
22049 gpgconf: Add a new field to the --query-swdb output.
22050 + commit d10b67b9bc32e8feff1be86e6646fc23e58fe45d
22051 * tools/gpgconf.c (query_swdb): Insert new field with the installed
22052 version. Check that the supplied version does not contain a colon.
22054 2016-11-02 Werner Koch <wk@gnupg.org>
22056 gpgconf: Add command --query-swdb.
22057 + commit 0ed6a6df5aa421a9c5cdb1e63867f0deee79af9e
22058 * tools/gpgconf.c (aQuerySWDB): New.
22059 (opts): Add --query-swdb.
22060 (valid_swdb_name_p): New.
22062 (main): Implement command --query-swdb.
22064 common: Improve compare_string_versions.
22065 + commit 488b183811fc25c1ae49b4730491accf1adf518e
22066 * common/stringhelp.c: Include limits.h.
22067 (compare_version_strings): Change semantics to behave like strcmp.
22068 Include the patch lebel in the comparison. Allow checking a single
22070 * common/t-stringhelp.c (test_compare_version_strings): Adjust test
22071 vectors and a few new vectors.
22072 * g10/call-agent.c (warn_version_mismatch): Adjust to new sematics.
22073 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
22074 * sm/call-agent.c (warn_version_mismatch): Ditto.
22075 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
22077 2016-11-02 Justus Winter <justus@g10code.com>
22079 gpgscm: Fix inclusion of readline header.
22080 + commit 60ad1a7f37ffc10e601e69a3e2d2bb14af510257
22081 * tests/gpgscm/ffi.c: Define magic macro to prevent the completion
22082 function from redefined.
22084 2016-11-02 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22086 build: Fix misspelled dirmngr.
22087 + commit 5e693ddfbe44d149ce0d9393d699c613ad5ea706
22090 Spelling: correct spelling of "passphrase".
22091 + commit 68b59bbc42ba9ec69496758743924d54a95742f0
22092 There were several different variant spellings of "passphrase". This
22093 should fix them all for all English text.
22095 I did notice that po/it.po contains multiple instances of
22096 "passhprase", which also looks suspect to me, but i do not know
22097 Italian, so i did not try to correct it.
22099 2016-11-02 Justus Winter <justus@g10code.com>
22101 g10,w32: Fix build on Windows.
22102 + commit 5d4f1408d0dd055d412ae44bb4a0f28f74617f05
22103 * g10/tofu.c (begin_transaction): Use the new 'gnupg_usleep'.
22105 2016-10-31 Werner Koch <wk@gnupg.org>
22107 common: New function gnupg_usleep.
22108 + commit ad491ceec6145b3781a05dc7b4a36052abeeb4b4
22109 * configure.ac (HAVE_NANOSLEEP): Test for nanosleep.
22110 * common/sysutils.c: Always include time.h.
22111 (gnupg_usleep): New.
22113 2016-10-31 Andre Heinecke <aheinecke@intevation.de>
22115 w32: Fix PKG_CONFIG_LIBDIR in --build-w32.
22116 + commit 3b6b8fe32af7568ff51066d4c2e3679df6dea86f
22117 * autogen.sh: Point pkg-config to the right location.
22119 2016-10-31 Neal H. Walfield <neal@g10code.com>
22121 g10: Avoid gratuitious SQLite aborts and starving writers.
22122 + commit 7a634e48b13c5d5d295b8fed9b429e1b2109a333
22123 * g10/tofu.c: Include <time.h>, <utime.h>, <fcntl.h> and <unistd.h>.
22124 (tofu_dbs_s): Add fields want_lock_file and want_lock_file_ctime.
22125 (begin_transaction): Only yield if DBS->WANT_LOCK_FILE_CTIME has
22126 changed since we took the lock. Don't use gpgrt_yield to yield, but
22127 sleep for 100ms. After taking the batch lock, update
22128 DBS->WANT_LOCK_FILE_CTIME. Also take the batch lock the first time we
22129 take the real lock. When taking the real lock, use immediate not
22130 deferred mode to avoid gratuitious aborts.
22131 (end_transaction): When dropping the outermost real lock, drop the
22133 (busy_handler): New function.
22134 (opendbs): Set the busy handler to it when opening the DB. Initialize
22135 CTRL->TOFU.DBS->WANT_LOCK_FILE.
22136 (tofu_closedbs): Free DBS->WANT_LOCK_FILE.
22138 2016-10-30 Neal H. Walfield <neal@g10code.com>
22140 g10: Avoid reading in keys when possible.
22141 + commit eec365a02bd35d2d5c9e4d2c8d18bcd9180cf859
22142 * g10/tofu.c (build_conflict_set): If CONFLICT_SET contains a single
22143 element, don't bother to check for cross sigs. Add parameter PK.
22146 g10: Fix bit setting.
22147 + commit 614ca00676bb8ca12b5107fec0e4ef8818445254
22148 * g10/tofu.c (build_conflict_set): Fix bit setting.
22150 2016-10-28 Werner Koch <wk@gnupg.org>
22152 gpg: Enable the Issuer Fingerprint from rfc4880bis.
22153 + commit b6f08dbb0b45059cdbbb5d9be9725e437f42a8cc
22154 * g10/build-packet.c (build_sig_subpkt_from_sig): Always write the new
22155 Issuer Fingerprint sub-packet.
22156 * g10/mainproc.c (check_sig_and_print): Always consider that
22159 2016-10-27 Werner Koch <wk@gnupg.org>
22161 dirmngr: Fix signature checking.
22162 + commit 5a1f6a0062488aaf345b1c73ba98a540e673d619
22163 * dirmngr/server.c: Include cpparray.h.
22164 (verify_swdb_parm_s): New.
22165 (verify_swdb_status_cb): New.
22166 (cmd_versioncheck): Use gpgv to correclty verify the signature.
22167 Rename some variable to comply with GNU standards.
22169 gpg: Verify multiple detached signatures with different hash algos.
22170 + commit 8fced66be35db5ac2a6bfdb9bccb2c0e582d8256
22171 * g10/mainproc.c (proc_tree): Loose check. Enable all algos.
22173 common: Add GNUPG_MODULE_NAME_GPGV.
22174 + commit ece9ade4b44fb3d5d120cfd32b23632e5efd2134
22175 * common/util.h (GNUPG_MODULE_NAME_GPGV): New.
22176 * common/homedir.c (gnupg_module_name): Implement.
22178 2016-10-27 Justus Winter <justus@g10code.com>
22180 g10: Fix iteration over getkey results.
22181 + commit 8ea72a776a88f3c851e812d258355be80caa1bc1
22182 * g10/getkey.c (getkey_next): Return the public key in PK even if
22183 RET_KEYBLOCK is NULL.
22185 g10: Assert preconditions.
22186 + commit 66a0091d74768ab3a4a5342d3645e1834c59045a
22187 * g10/getkey.c (get_pubkey_byname): Assert preconditions.
22189 2016-10-27 Werner Koch <wk@gnupg.org>
22191 dirmngr: Do not implement --supervised in Windows.
22192 + commit cf20b23c146c9e499263654644035796475de097
22193 * dirmngr/dirmngr.c (opts) [W32]: Remove --supervised.
22194 (main) [W32]: Ditto.
22196 common: Remove debug output from gnupg_get_socket_name.
22197 + commit a9c8b5fbe7ae241bf45bdee15884abc7891aedf9
22198 * common/sysutils.c (gnupg_get_socket_name): Remove debug message and
22199 use my_error_from_syserror.
22201 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
22203 dirmngr: ADNS error handling fix.
22204 + commit 45dfc02b47f798f5a3b9973ca6a9f5a907d7e665
22205 * dirmngr/dns-stuff.c (resolve_name_adns, get_dns_cert, get_dns_cname):
22206 Use gpg_error and gpg_err_code_from_errno to compose the error value.
22208 2016-10-27 Werner Koch <wk@gnupg.org>
22210 gpg: Convey --quick option to dirmngr for --auto-key-retrieve.
22211 + commit a15ed5a1fd5307b3ec1822daf3b138b187db0b5e
22212 * g10/call-dirmngr.c (gpg_dirmngr_ks_get): Add arg 'quick'.
22213 (gpg_dirmngr_wkd_get): Ditto.
22214 * g10/keyserver.c (keyserver_get): Add arg 'quick'.
22215 (keyserver_get_chunk): Add arg 'quick'.
22216 (keyserver_import_fprint): Ditto. Change callers to pass 0 for it.
22217 (keyserver_import_keyid): Ditto.
22218 (keyserver_import_wkd): Ditto.
22219 * g10/mainproc.c (check_sig_and_print): Call the 3 fucntions with
22222 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
22224 common: Fix gnupg_inotify_has_name, differently.
22225 + commit 8b3d0d1a36cab83dafb98ccb7895144edb95e298
22226 * common/sysutils.c (gnupg_inotify_has_name): Use void * to stop the
22229 dirmngr: More ADNS error fix.
22230 + commit 6f1d8123d61b3efac94b4c61ee75bd947790ba42
22231 * dirmngr/dns-stuff.c (get_dns_cert, getsrv, get_dns_cname): Fix return
22234 dirmngr: Fix error return for ADNS.
22235 + commit 8a9341b42cd1891090d45cc068bff84b2b3edb50
22236 * dirmngr/dns-stuff.c (resolve_name_adns): Use RET for return value.
22238 g10: Fix ECDH, clarifying the format.
22239 + commit ca0ee4e381d0b6a57e4ddc8f4bb2390eb97a2540
22240 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Returns error when
22241 it's short. Clarify the format. Handle other prefixes correctly.
22243 scd: Add 0x41 prefix for x-coordinate only result.
22244 + commit 6bbd97d6c771b2e2c7cfcff6d5a823f0fb44d443
22245 * scd/app-openpgp.c (do_decipher): When it's x-coordinate only, add the
22248 2016-10-27 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
22250 g10: ECDH shared point format.
22251 + commit b648f28f9f8b889f1217a649ded1d45f261bb2bf
22252 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Improve handling of
22253 ECDH shared point format.
22255 2016-10-27 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22257 dirmngr: Implement --supervised command (for systemd, etc).
22258 + commit 75f8aaf5bc2dc7fcffe2987a572d489155c91eb9
22259 * dirmngr/dirmngr.c (main): Add new --supervised command, which is a
22260 mode designed for running under a process supervision system like
22262 * doc/dirmngr.texi: document --supervised option.
22264 agent,common: move get_socket_name() into common.
22265 + commit 6316b28e896957adb76a61a41d2e1c2a08d9f716
22266 * agent/gpg-agent.c (get_socket_name): move to ...
22267 * common/sysutils.c (gnupg_get_socket_name): ... here.
22269 dirmngr: report actual socket name.
22270 + commit 6bb6ac56cca8135666387a0b9d88dd6b50311418
22271 * dirmngr/dirmngr.[ch] (dirmngr_get_current_socket_name): new function
22272 to report known socket name.
22273 * dirmngr/server.c (cmd_getinfo): use dirmngr_get_current_socket_name
22274 to report correct socket name.
22276 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
22278 common: Fix gnupg_inotify_has_name.
22279 + commit bc28f320fa6f5b9fcdb73dba5e6c582daf7992c5
22280 * common/sysutils.c (gnupg_inotify_has_name): Take care of the
22283 dirmngr: Fix help string and argument.
22284 + commit 96414baf36b8e6385b71847c789d489ebe176a93
22285 * dirmngr/server.c (hlp_versioncheck): Add a newline.
22286 (cmd_versioncheck): Fix argument.
22288 2016-10-26 Werner Koch <wk@gnupg.org>
22290 dirmngr: Fix hang due to deferred thread initialization.
22291 + commit d1ccab5176d7719328b287544b54b85e0277b146
22292 * dirmngr/dirmngr.c (main): Call ldap_wrapper_launch_thread after
22295 agent: Avoid double error message.
22296 + commit b77f95a4a675fd20f6eeb611f4e7b519eceb4ad3
22297 * agent/gpg-agent.c (map_supervised_sockets): Shorten error message.
22298 Remove unneeded diagnostic.
22300 common: Use GPG_ERR_INV_VALUE instead of GPG_ERR_EINVAL.
22301 + commit ece13f177d948013b6f3df926406c0cd947abc25
22302 * common/sysutils.c (gnupg_inotify_watch_socket): Return
22303 GPG_ERR_INV_VALUE for a missing socket name and set proper error
22306 tests: Improve portability of fake-pinentry.
22307 + commit 21b318452abbfe21c45c2a67dae0e3a81cff1090
22308 * tests/openpgp/fake-pinentry.c: Make all functions static.
22309 (get_passphrase): s/unlink/remove/ because that is standard C.
22310 (spacep): Rename to whitespace and change all callers.
22311 (main): Move macro out of if-then chain.
22313 2016-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22315 agent: --supervised mode improvements.
22316 + commit 27f6d5b9f4b6057ddeb9ace87a1e7e61ebac63e6
22317 * agent/gpg-agent.c (map_supervised_socket): if the agent is running
22318 in --supervised mode and is not actually given LISTEN_FDNAMES
22319 directives, require at least fd 3 to be open for listening.
22321 common: avoid segfault.
22322 + commit 3b5f5e0eb02ecbdcf59722755f22a9d2f88de6e6
22323 * common/sysutils.c (gnupg_inotify_watch_socket): return EINVAL if
22324 socket_name is NULL, rather than segfaulting
22326 2016-10-25 Justus Winter <justus@g10code.com>
22328 agent,tests,w32: Fix relaying pinentry user data, fix fake-pinentry.
22329 + commit 852b8f0b89d447536dfdf6cd4ea91615c75491ce
22330 * agent/call-pinentry.c (start_pinentry): Also send the user data
22331 using an Assuan 'OPTION' command.
22332 * tests/openpgp/fake-pinentry.c (get_passphrase): Fix updating
22334 (spacep): Include newline characters.
22335 (rstrip): New function.
22336 (main): Handle Windows line endings. Handle the userdata option, and
22337 restart with the new options.
22339 tests: Do not autostart gpg-agents on teardown.
22340 + commit f88f11a25665dca7490a09088aa24edf396e4c40
22341 * tests/openpgp/defs.c (stop-agent): Use '--no-autostart' when calling
22344 2016-10-25 Werner Koch <wk@gnupg.org>
22346 dirmngr: Allow command VERSIONCHECK to handle 3 part version numbers.
22347 + commit b120f358c25cc846ca9d841d47e71ca1a7fe02e4
22348 * dirmngr/server.c (parse_version_string): Add arg MICRO and set it.
22349 (cmp_version): Extend to handle the MICRO part.
22350 (confucius_mktmpdir): Rename to my_mktmpdir.
22351 (my_mktmpdir): xstrconcat does not fail; use strconcat.
22352 (fetch_into_tmpdir): Improve error checking.
22354 common: Use strconcat in gnupg_setenv.
22355 + commit 7983f8758703071710c11bf2a255efcd71836b65
22356 * common/sysutils.c (gnupg_setenv): Replace malloc+stpcpy by
22357 strconcat. Indent cpp conditionals.
22358 (gnupg_unsetenv): Indent cpp conditionals.
22360 2016-10-24 Werner Koch <wk@gnupg.org>
22362 gpg: Replace two sprintf calls.
22363 + commit 9d6146d6f9870fbfcec15cdc4becaf094d5a90e0
22364 * g10/keygen.c (print_status_key_created): Use snprintf for now.
22365 (ask_expire_interval): Replace xmalloc and sprintf by xasprintf.
22367 agent: Minor cleanup for recent change in findkey.c.
22368 + commit 8c40b3b98d3ddeda79fde981e6539c5b3b09d9a2
22369 * agent/findkey.c (agent_write_private_key): Avoid label name error.
22371 agent: Slightly change structure of cmd_readkey.
22372 + commit fdb653a33ea1a24d1159880624dbbcc0867865b5
22373 * agent/command.c (cmd_readkey): Avoid a leave label in the middle of
22374 the code. Remove the special return.
22376 2016-10-24 Kai Michaelis <kai@gnupg.org>
22378 dirmngr: Fix segfault in VERSIONCHECK.
22379 + commit 5e7dfd979d2d91800d90c3ce9a66755df3217682
22380 * dirmngr/server.c (cmd_versioncheck): The VERSIONCHECK command crashes
22381 when called without program version.
22383 2016-10-24 NIIBE Yutaka <gniibe@fsij.org>
22385 scd: Use canonical curve name of libgcrypt.
22386 + commit b1828c17fc475def1ee9e06f083f513f568c241b
22387 * scd/app-openpgp.c (send_key_attr): Use curve instead of OID.
22388 (ecdh_params): New.
22389 (ecc_read_pubkey): Use ecdh_params. Use curve name.
22390 (ecc_writekey): Likewise.
22391 (ecc_curve): Rename from ecc_oid.
22392 (parse_algorithm_attribute): Use ecc_curve.
22393 * g10/call-agent.c (learn_status_cb): Use openpgp_is_curve_supported to
22394 intern the curve name string.
22395 * g10/card-util.c (card_status): Conver curve name to alias for print.
22397 common: Fix openpgp_is_curve_supported.
22398 + commit 945e7ab0ddedf5f58afd97d81e101939de5b5d89
22399 * common/openpgp-oid.c (openpgp_is_curve_supported): Support both of
22400 canonical name of the curve and alias.
22402 g10: Fix card keygen for decryption.
22403 + commit acef0951646b47c87ccc1c616f0105a068e7ed86
22404 * g10/keygen.c (do_generate_keypair): Fix arguments.
22406 2016-10-22 NIIBE Yutaka <gniibe@fsij.org>
22408 g10: More card key generation change.
22409 + commit 987bbb2276aeb6bee2793e8406e223717b605009
22410 * g10/keygen.c (gen_card_key): Add back ALGO as the second argument.
22411 Don't get ALGO by KEY-ATTR by this function. It's caller to provide
22412 ALGO. Don't do that by both of caller and callee.
22413 (generate_keypair): Only put paramerters needed. Use parameters
22414 for ALGO to call gen_card_key.
22415 (generate_card_subkeypair): Get ALGO and call gen_card_key with it.
22417 2016-10-21 Andre Heinecke <aheinecke@intevation.de>
22419 g10: Write first keybox record in binary mode.
22420 + commit f7e50634be71ce3028726f23edf14454109a04a8
22421 * g10/keydb.c (maybe_create_keyring_or_box): Open in binary mode.
22423 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
22425 g10,scd: Fix ECC keygen.
22426 + commit d2653b1a6db90aed073194a51fd61023d69773ec
22427 * g10/keygen.c (generate_keypair): For card key generation, fill
22428 parameters by KEY-ATTR.
22430 * scd/app-openpgp.c (ecc_read_pubkey): OID should be freed at last,
22431 after its reference by OIDBUF is finished.
22432 (ecc_writekey): Likewise.
22434 scd: Fix segfault changing key attr.
22435 + commit 693e657ff04756737dce025203c0deba480ea8de
22436 * asc/app-openpgp.c (change_keyattr_from_string): Release after
22439 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
22440 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
22442 g10: Don't ask keysize for for non-RSA card.
22443 + commit dafce6f698bec6e9d4c0125b90754d0687294e86
22444 * g10/card-util.c (card_status): Bug fix for keyno.
22445 (ask_card_rsa_keysize, do_change_rsa_keysize): Rename.
22446 (generate_card_keys): Only ask keysize when RSA.
22447 (card_generate_subkey): Likewise.
22449 g10: Support ECC for gen_card_key.
22450 + commit 161cb22f13bcd8cbdb08558d9926b2168a8297ac
22451 * g10/keygen.c (gen_card_key): Remove the first argument of ALGO.
22452 (do_generate_keypair, generate_card_subkeypair): Follow the change.
22454 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
22456 Fix use cases of snprintf.
22457 + commit 6e85ac77af594035137950d801d8a1bacce548a3
22458 * agent/call-pinentry.c, agent/call-scd.c, agent/command.c,
22459 build-aux/speedo/w32/g4wihelp.c, common/get-passphrase.c,
22460 dirmngr/dirmngr.c, g10/call-agent.c, g10/cpr.c, g10/keygen.c,
22461 g10/openfile.c, g10/passphrase.c, scd/app-openpgp.c, scd/scdaemon.c,
22462 sm/call-agent.c, sm/call-dirmngr.c, sm/certreqgen.c: Fix assuming C99.
22464 agent: Fix saving with FORCE=1.
22465 + commit 1ffd475f99eaff4e40950eda88702f8db9288eb5
22466 * agent/findkey.c (agent_write_private_key): Recover from an error of
22467 GPG_ERR_ENOENT when FORCE=1 and it is opened with "rb+".
22469 2016-10-20 Justus Winter <justus@g10code.com>
22471 tests: Simplify test.
22472 + commit 71158d8d5f823888abc8588caa6497860ce59c06
22473 * tests/openpgp/quick-key-manipulation.scm: Avoid creating a temporary
22474 home directory, just make the uids unique.
22476 tests: Flush stdout in the fake pinentry.
22477 + commit ca9597f080f70a8435daaeb5449bef0462a1402a
22478 * tests/openpgp/fake-pinentry.c (reply): Flush stdout.
22480 common,w32: Fix setting environment variables on Windows.
22481 + commit 8c7c4faf3de28ca70a60e6b15f51c1b206e0ddd9
22482 * common/sysutils.c (gnupg_setenv): Also update the environment block
22483 maintained by the C runtime.
22484 (gnupg_unsetenv): Likewise.
22485 * tests/gpgscm/ffi.c (do_setenv): Fix error handling.
22487 tests,w32: Cope with Windows line endings.
22488 + commit bf37916a23bd0929fc4a5f28c9a41f43c5a473f6
22489 * tests/openpgp/issue2015.scm: Rstrip line before comparison.
22491 tests: Create and remove socket directories.
22492 + commit 2d794779e0fd9d9a1efc98e7bd77a296a25f4293
22493 * tests/openpgp/defs.scm (start-agent): Move function here and create
22494 the socket directory prior to starting the agent.
22495 (stop-agent): Move function here and remove the socket directory.
22496 * tests/openpgp/finish.scm: Adapt.
22497 * tests/openpgp/setup.scm: Likewise.
22499 2016-10-20 NIIBE Yutaka <gniibe@fsij.org>
22501 agent, g10: Fix keygen.
22502 + commit 9a34e2142b426b98c73fd888102ea1596bbce62a
22503 * agent/command.c (cmd_readkey): Get length after card_readkey.
22504 * g10/keygen.c (gen_card_key): Fix off-by-one error.
22506 scd: GENKEY updates the public key in APP.
22507 + commit b680f79cc112c4831293e259d7db2921bcd783a4
22508 * scd/app-openpgp.c (rsa_read_pubkey, ecc_read_pubkey): New.
22509 (read_public_key): New.
22510 (get_public_key, do_genkey): Use read_public_key.
22512 g10: smartcard keygen change.
22513 + commit 980c037bedb968ddf155dd334c0a70b918a17759
22514 * g10/call-agent.c (scd_genkey_cb_append_savedbytes): Remove.
22515 (scd_genkey_cb): Only handle KEY-CREATED-AT and PROGRESS.
22516 (agent_scd_genkey): Remove INFO argument. CREATETIME is now in/out
22518 (agent_readkey): Use READKEY --card instead of SCD READKEY.
22519 * g10/keygen.c (gen_card_key): Use READKEY --card command of the agent
22520 to retrieve public key information from card and let the agent make
22521 a file for private key with shadow info.
22523 agent: Add --card option for READKEY.
22524 + commit 82cbab906a3e72a98fdc16096f2f0451465969a2
22525 * agent/findkey.c (agent_write_shadow_key): New.
22526 * agent/command-ssh.c (card_key_available): Use agent_write_shadow_key.
22527 * agent/learncard.c (agent_handle_learn): Likewise.
22528 * agent/command.c (cmd_readkey): Add --card option.
22530 2016-10-19 Kai Michaelis <kai@gnupg.org>
22532 dirmngr: improve VERSIONCHECK.
22533 + commit 72a99f582dad4cb4c3b05b97c7ebb8d537f10b79
22534 Replace strtok_r() and code formatting. Use code from libgpg-error for
22535 version comparison.
22537 2016-10-18 Justus Winter <justus@g10code.com>
22539 common: Fix copying data to estreams.
22540 + commit 8dce5ee55a0268d196023224dcf3020306922490
22541 * common/exectool.c (copy_buffer_do_copy): Correctly account for
22542 partially written data in the event of errors.
22544 common,w32: Communicate with child in non-blocking mode.
22545 + commit 05a1e412332dd980353a4e3e59bc75ba40bae7fc
22546 * common/exechelp-w32.c (gnupg_spawn_process): Open streams in
22547 non-blocking mode if requested.
22549 common,w32: Extend gnupg_create_inbound_pipe et al.
22550 + commit f2d39a6d051413289c717b9cd2dc387a270b8e7c
22551 * common/exechelp-w32.c (do_create_pipe): Rename, add arguments, and
22552 create a stream if reqested.
22553 (gnupg_create_inbound_pipe): Use the extended function to open the
22554 stream if requested.
22555 (gnupg_create_outbound_pipe): Likewise.
22556 (gnupg_create_pipe): Update call site.
22558 common,w32: Make use of default_errsource in exechelp.
22559 + commit 727ca74bb942464217e678012cccbfc347ae08a5
22560 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
22561 Use them instead of gpg_error and gpg_error_from_syserror.
22563 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
22564 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
22566 scd: Support ECC key generation.
22567 + commit 34439da2d62b964a914ace66bae7e38f619582a4
22568 * scd/app-openpgp.c (get_public_key): Fix a message.
22569 (change_keyattr_from_string, ecc_writekey): Call mpi_release sooner.
22570 (do_genkey): Add ECC support.
22572 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
22574 scd: minor cleanup to merge other works.
22575 + commit f1845f25dbea79c191427710fa56ed01e63a045b
22576 * scd/iso7816.c (do_generate_keypair): Use const char * for DATA.
22577 (iso7816_generate_keypair, iso7816_read_public_key): Likewise.
22578 * scd/app-openpgp.c (get_public_key): Follow the change.
22579 (do_genkey): Ditto. Use ERR instead of RC. Use u32 for CREATED_AT.
22581 2016-10-17 Justus Winter <justus@g10code.com>
22583 gpgscm: Initialize nesting stack.
22584 + commit c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794
22585 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
22588 2016-10-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22590 doc: Document how to manually shut down gpg-agent.
22591 + commit 869c06efa791bbc8330becdb3f13f7cf9506257e
22592 * doc/gpg-agent.texi: document "gpgconf --kill gpg-agent" for manual
22595 This was requested in a side-comment in https://bugs.debian.org/840669
22597 doc: Point gpg-agent(1) at the right gpg manpage in SEE ALSO.
22598 + commit c53ce53ab1fa6a328c368f2a15e3ccd803f03ee2
22599 * doc/gpg-agent.texi (SEE ALSO): refer to @gpgname, instead of
22600 hard-coding "gpg2".
22602 2016-10-17 NIIBE Yutaka <gniibe@fsij.org>
22604 scd: Fix keytocard for ECC.
22605 + commit 25428be52168fa9c581b7f11c95a5c63b25343b7
22606 * scd/app-openpgp.c (build_ecc_privkey_template): Size can be greater
22607 than 128 when it comes with public key for curve of larger field.
22609 gpgconf: Fix for --homedir.
22610 + commit 70a8584ec4389209762eb65bb77f20f7881577be
22611 * tools/gpgconf-comp.c (gpg_agent_runtime_change,
22612 scdaemon_runtime_change, dirmngr_runtime_change): Provide the homedir
22613 arguments by --homedir when it's not default.
22615 2016-10-16 Werner Koch <wk@gnupg.org>
22617 agent: Use straightforward names for the default socket names.
22618 + commit 0b0f9a3788cb5d3c26cec16cd24acc973069d280
22619 * configure.ac (GPG_AGENT_SOCK_NAME): Change name to *.extra.
22620 (GPG_AGENT_EXTRA_SOCK_NAME): Change name to *browser.
22622 2016-10-15 Werner Koch <wk@gnupg.org>
22624 agent: Move inotify code to common and improve it.
22625 + commit 2f7d4c38c9e7bcc14e6e0bf219d688c40a4afecb
22626 * common/sysutils.c: Include sys/inotify.h.
22627 (my_error_from_syserror, my_error): New.
22628 (gnupg_inotify_watch_socket): New.
22629 (gnupg_inotify_has_name): New.
22630 * agent/gpg-agent.c: Do not include sys/inotify.h.
22631 (my_inotify_is_name): Remove.
22632 (handle_connections): Remove HAVE_INOTIFY_INIT protected code and use
22635 2016-10-14 Kai Michaelis <kai@gnupg.org>
22637 dirmngr: use gnupg_mkdtemp instead of mkstemp.
22638 + commit c318561ef4c97f0c2767aef377531d58174060a1
22639 MinGW on debian does not support mkstemp.
22641 dirmngr: add VERSIONCHECK command.
22642 + commit f99c5fa1c970dc1122ac62371eb8d758f380ed57
22643 Given an application name and version VERSIONCHECK fetches the software
22644 version list from version.gnupg.org, verifies the signature and returns
22645 whenever the given version is older (UPDATE), current (CURRENT) or newer
22648 2016-10-13 Neal H. Walfield <neal@g10code.com>
22650 tests: Use shorter filenames.
22651 + commit 0c56ad5a8d89d69a9ed00571720b3b105f955214
22652 * tests/openpgp/tofu/cross-sigs/
22653 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg: Rename from this...
22654 * tests/openpgp/tofu/cross-sigs/EC38277E-1.gpg: .. to this.
22655 * tests/openpgp/tofu/cross-sigs/
22656 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: Rename from this...
22657 * tests/openpgp/tofu/cross-sigs/EC38277E-1.txt: .. to this.
22658 * tests/openpgp/tofu/cross-sigs/
22659 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: Rename from this...
22660 * tests/openpgp/tofu/cross-sigs/EC38277E-2.gpg: .. to this.
22661 * tests/openpgp/tofu/cross-sigs/
22662 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: Rename from this...
22663 * tests/openpgp/tofu/cross-sigs/EC38277E-2.txt: .. to this.
22664 * tests/openpgp/tofu/cross-sigs/
22665 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: Rename from this...
22666 * tests/openpgp/tofu/cross-sigs/EC38277E-3.txt: .. to this.
22667 * tests/openpgp/tofu/cross-sigs/
22668 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: Rename from
22670 * tests/openpgp/tofu/cross-sigs/EC38277E-secret.gpg: .. to this.
22671 * tests/openpgp/tofu/cross-sigs/
22672 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: Rename from this...
22673 * tests/openpgp/tofu/cross-sigs/871C2247-1.gpg: .. to this.
22674 * tests/openpgp/tofu/cross-sigs/
22675 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: Rename from this...
22676 * tests/openpgp/tofu/cross-sigs/871C2247-1.txt: .. to this.
22677 * tests/openpgp/tofu/cross-sigs/
22678 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: Rename from this...
22679 * tests/openpgp/tofu/cross-sigs/871C2247-2.gpg: .. to this.
22680 * tests/openpgp/tofu/cross-sigs/
22681 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: Rename from this...
22682 * tests/openpgp/tofu/cross-sigs/871C2247-2.txt: .. to this.
22683 * tests/openpgp/tofu/cross-sigs/
22684 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: Rename from this...
22685 * tests/openpgp/tofu/cross-sigs/871C2247-3.gpg: .. to this.
22686 * tests/openpgp/tofu/cross-sigs/
22687 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: Rename from this...
22688 * tests/openpgp/tofu/cross-sigs/871C2247-3.txt: .. to this.
22689 * tests/openpgp/tofu/cross-sigs/
22690 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: Rename from this...
22691 * tests/openpgp/tofu/cross-sigs/871C2247-4.gpg: .. to this.
22692 * tests/openpgp/tofu/cross-sigs/
22693 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: Rename from
22695 * tests/openpgp/tofu/cross-sigs/871C2247-secret.gpg: .. to this.
22696 * tests/openpgp/Makefile.am (TEST_FILES): Update accordingly.
22698 g10: Be more careful when checking if a binding is signed by a UTK.
22699 + commit 95d0f3e5eebd85dcf226dca14891a1215bfe93ae
22700 * g10/tofu.c (signed_by_utk): When checking if a key is signed by an
22701 ultimately trusted key, only consider the signatures on the specified
22703 * tests/openpgp/tofu.scm: Add test for the above.
22705 tests: Add test data to TEST_FILES.
22706 + commit d2d936fbe86d61b89cead95df633b2b575690e05
22707 * tests/openpgp/Makefile.am (TEST_FILES): Add new test data.
22709 g10: Be more careful when checking cross signatures.
22710 + commit 4c0389f8eb19ae7dfd9c5d784a629b386d93cc5c
22711 * g10/tofu.c (cross_sigs): When checking cross signatures, only
22712 consider the signatures on the specified user id.
22713 * tests/openpgp/tofu.scm: Add test for the above.
22714 * tests/openpgp/tofu/cross-sigs/
22715 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg:
22717 * tests/openpgp/tofu/cross-sigs/
22718 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: New file.
22719 * tests/openpgp/tofu/cross-sigs/
22720 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: New file.
22721 * tests/openpgp/tofu/cross-sigs/
22722 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: New file.
22723 * tests/openpgp/tofu/cross-sigs/
22724 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: New file.
22725 * tests/openpgp/tofu/cross-sigs/
22726 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: New file.
22727 * tests/openpgp/tofu/cross-sigs/
22728 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: New file.
22729 * tests/openpgp/tofu/cross-sigs/
22730 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: New file.
22731 * tests/openpgp/tofu/cross-sigs/
22732 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: New file.
22733 * tests/openpgp/tofu/cross-sigs/
22734 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: New file.
22735 * tests/openpgp/tofu/cross-sigs/
22736 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: New file.
22737 * tests/openpgp/tofu/cross-sigs/
22738 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: New file.
22739 * tests/openpgp/tofu/cross-sigs/
22740 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: New file.
22741 * tests/openpgp/tofu/cross-sigs/
22742 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: New file.
22743 * tests/openpgp/tofu/cross-sigs/README: New file.
22745 g10: Still check if the key is an UTK or cross signed in batch mode.
22746 + commit e09166c77273f459c8f87cab9224f85808af2cba
22747 * g10/tofu.c (get_trust): If POLICY is ask, but we can't ask, don't
22748 bail immediately. Instead, check if the key in question is an
22749 ultimately trusted key or cross signed.
22751 g10: If an sqlite operation fails, map the error code to GPG_ERR_GENERAL
22752 + commit 5bf92e51dfdfb4f4746ecd817d8d2240ed27ea74
22753 * g10/tofu.c (get_policy): If an sqlite operation fails, map the error
22754 code to GPG_ERR_GENERAL.
22755 (ask_about_binding): Likewise.
22756 (build_conflict_set): Likewise.
22757 (get_trust): Likewise.
22758 (show_statistics): Likewise.
22759 (tofu_register_signature): Likewise.
22760 (tofu_register_encryption): Likewise.
22762 tests: Remove support for deprecated functionality.
22763 + commit 2282c3b761413dfa894300e70084bbd58908c0b1
22764 * tests/openpgp/tofu.scm: Don't remove tofu.d. It's deprecated.
22766 2016-10-12 Neal H. Walfield <neal@g10code.com>
22768 g10: When changing a TOFU binding's policy, update the conflict info.
22769 + commit 3ad17e72fa81d18c95732ddcd4def244f52bb5b1
22770 * g10/tofu.c (record_binding): Take an additional argument, CONFLICT.
22771 Set the binding's conflict accordingly. Update callers.
22773 g10: Make a singular string singular.
22774 + commit ca84f65c7cf2c6a08a01018519965a82e6c52cac
22775 * g10/tofu.c (ask_about_binding): Make the singular string singular.
22777 g10: Correctly determine whether a binding has a conflict.
22778 + commit 6fdf37f0831949cb279de6dc6b247ab2ed53fe5a
22779 * g10/tofu.c (build_conflict_set): A binding has a conflict is
22780 conflict is *not* NULL, not if it is NULL.
22782 g10: Fix a column's type in TOFU DB.
22783 + commit 78eda335fd1c29038b74b9cc912b6a4515fccd9f
22784 * g10/tofu.c (initdb): Change policy from a boolean to an integer.
22786 2016-10-07 Justus Winter <justus@g10code.com>
22788 tests: Rework test environment setup.
22789 + commit cbbf0a7a8da1757fea29cff0daaa42a6bbb95b26
22790 * tests/openpgp/setup.scm: Import one keyring at a time. This works
22791 around a yet to be investigated hang on Windows. It is also much
22794 tests: Improve handling of Windows newlines.
22795 + commit 1f76f8d8bc65fad98927c977baf4d5e36dafe52b
22796 * tests/gpgscm/lib.scm (string-split-newlines): New function.
22797 * tests/openpgp/default-key.scm: Use new function.
22798 * tests/openpgp/defs.scm: Likewise.
22799 * tests/openpgp/export.scm: Likewise.
22800 * tests/openpgp/import.scm: Likewise.
22802 gpgscm: Improve test of low-level functions.
22803 + commit 11eac7eb2fa3392a9aa052f8f5bb9875129ab84b
22804 * tests/gpgscm/t-child.c: Print large amounts of data.
22805 * tests/gpgscm/t-child.scm: Test that this works.
22807 gpgscm: Improve path handling.
22808 + commit dff266059813d22d1e2ba7e77279999cd41ceb75
22809 * tests/gpgscm/ffi.c (ffi_init): New Scheme variable '*win32*'.
22810 * tests/gpgscm/tests.scm (canonical-path): Correctly handle paths with
22811 drive letter on Windows. Use 'path-join'.
22812 (path-expand): Use 'path-join'.
22814 tools: Fix error handling.
22815 + commit 5afbfdfd59540cb882d891ff1f4afa73fe48f99a
22816 * tools/gpgtar-create.c (gpgtar_create): Do not crash if opening the
22819 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
22821 agent: Fix get_socket_name.
22822 + commit fb3b3e1e7a4219f61a834fd07809898918611c2f
22823 * agent/gpg-agent.c (get_socket_name): Fix the size of copying.
22825 2016-10-07 Werner Koch <wk@gnupg.org>
22827 gpg: Put extra parens around bit tests.
22828 + commit 5d43d28aa3c44c3a27fde823f467b0c4be1a58c2
22829 * g10/options.h (DBG_MPI): New.
22830 * g10/gpg.c (set_debug): Use macro or extra parens for binary operator.
22831 * g10/parse-packet.c (set_packet_list_mode): Use dbg macro.
22833 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
22835 agent, dirmngr, scd: Fix init_common_subsystems.
22836 + commit fc0b392e766af8127094e8b529d25abb84ad1d65
22837 * common/init.c (_init_common_subsystems): Don't call
22838 gpgrt_set_syscall_clamp in this function.
22839 * agent/gpg-agent.c, dirmngr/dirmngr.c, scd/scdaemon.c: Call
22840 gpgrt_set_syscall_clamp after npth_init.
22842 2016-10-06 Justus Winter <justus@g10code.com>
22844 common: Avoid pointer arithmetic on string literals.
22845 + commit 4aadc751f201f8f97c9c1f454e3a29803cce3edb
22846 * common/gettime.c (rfctimestamp): Use indexing instead.
22847 * common/signal.c (got_fatal_signal): Likewise.
22849 g10: Fix singular term.
22850 + commit b0d2526bc4e5c663eeffe04500420c70cee98712
22851 * g10/tofu.c (ask_about_binding): Fix singular message.
22853 g10: Use appropriate variant of 'abs'.
22854 + commit 73000d1ce0317210f5a9e5262404cc90258041ff
22855 * g10/tofu.c (ask_about_binding): Use 'labs' instead of 'abs'.
22857 sm: Remove statement without effect.
22858 + commit 2d446759bd43ae38fbce9a18c955285ca535bc08
22859 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Remove statement without
22862 g10: Fix testing for debug flag.
22863 + commit 6b626824c8e30b41c47724b5ccbf761937499512
22864 * g10/parse-packet.c (set_packet_list_mode): Fix testing for debug
22867 tools: Improve error handling.
22868 + commit 32f81f56a8be6d13dea0a64d24f52343c7e72c84
22869 * tools/gpg-wks-server.c (copy_key_as_binary): Initialize 'argv'.
22871 gpgscm: Update callsite of 'gnupg_spawn_process'.
22872 + commit 07cfb3b27a77491eae818d57f6eb660e75fa013f
22873 * tests/gpgscm/ffi.c (do_spawn_process): Adapt to the changes to
22874 'gnupg_spawn_process'.
22876 2016-10-05 Werner Koch <wk@gnupg.org>
22878 wks: Send key encrypted as required by draft -02.
22879 + commit 8ce800d21919eaaba7ed4f04f712292be310fd66
22880 * tools/gpg-wks-client.c (get_key): Encrypt.
22881 (encrypt_response): Take care of --fake-submission-addr.
22883 wks: Add option --fake-submission-addr to gpg-wks-client.
22884 + commit e514a5b725f0c997cef4362808b2778a3faa9cf8
22885 * tools/gpg-wks-client.c (oFakeSubmissionAddr): New.
22886 (opts): Add option --fake-submission-addr.
22887 (fake_submission_addr): New variable.
22888 (parse_arguments): Set it.
22889 (command_send): Use --fake-submission-addr.
22891 agent: Another minor fix to map_supervised_sockets.
22892 + commit 1cedc32c95c2e3c3ab98af23ddc2845d51e596c1
22893 * agent/gpg-agent.c (map_supervised_sockets): Remove debug message.
22894 Provide correct fd in the second error case.
22896 agent: Fix npth + supervised mode problem.
22897 + commit f57dc2b1e6f28d164f882373535dbcb0d632ca17
22898 * agent/gpg-agent.c (main): Initialize modules in supervised mode.
22900 2016-10-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22902 agent: Fix error handling in map_supervised_sockets.
22903 + commit a2127c71dbf87c1710b43d91a733dd4c9b2953bc
22904 * agent/gpg-agent.c (map_supervised_sockets): the file descriptor to
22905 close on error is fd, not i.
22907 2016-10-04 Werner Koch <wk@gnupg.org>
22909 agent: Streamline the supervised mode code.
22910 + commit 1a9c8d78ece2f31fdb1a8e2be049aa71053061fa
22911 * agent/gpg-agent.c (get_socket_path): Rename to ...
22912 (get_socket_name): this. This is to comply with the GNU coding guide.
22913 Use xtrymalloc instead of malloc. Do not build for W32.
22914 (map_supervised_sockets): Use strtokenize and set the the socket names
22916 (main): Adjust for above change. Do not close the socket.
22918 agent: Adjust cleanup for supervised mode. Fix for W32.
22919 + commit afcfae7959f39e7d85309b9496e1f1cf9acd5cc2
22920 * agent/gpg-agent.c (opts) [W32]: Remove option --supervised.
22921 (is_supervised): Move from main() to global.
22922 (inhibit_socket_removal): New.
22923 (cleanup): Take care of supervise mode and INHIBIT_SOCKET_REMOVAL.
22924 (check_own_socket_thread): Set INHIBIT_SOCKET_REMOVAL instead of
22925 seting the socket names to empty.
22927 agent: Adjust supervised mode for the new default socket names.
22928 + commit dc059af1ff007842e2633e686c87d05daf1d45e3
22929 * agent/gpg-agent.c (main): In supervised mode do not provide default
22930 socket names. Unset DISPLAY and INSIDE_EMACS. Use log_error and
22933 2016-10-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
22935 agent: Implement --supervised command (for systemd, etc).
22936 + commit 9f92b62a51d2d60f038fdbe01602865c5933fa95
22937 * agent/gpg-agent.c (get_socket_path): New function for POSIX systems
22938 to return the path for a provided unix-domain socket.
22939 (map_supervised_sockets): New function to inspect $LISTEN_FDS and
22940 $LISTEN_FDNAMES and map them to the specific functionality offered by
22942 (main): Add --supervised command. When used, listen on already-open
22943 file descriptors instead of opening our own.
22944 * doc/gpg-agent.texi: Document --supervised option.
22946 2016-10-04 Justus Winter <justus@g10code.com>
22948 build,w32: Unconditionally build tests.
22949 + commit 4a232d23a8f51bebf9ee382e480248b4bde30f28
22950 * configure.ac (run_tests, RUN_TESTS, RUN_GPG_TESTS): Remove
22951 variables. They are misleadingly named, as they inhibit building the
22952 tests. There is no reason not to build the tests even when
22953 cross-compiling, as they are only run if one does 'make check'.
22954 * Makefile: Adapt accordingly.
22955 * tests/Makefile.am: Adapt accordingly. Avoid building 'asschk' on
22956 Windows as it uses non-portable functions.
22958 tests,w32: Do not expose 'glob' to gpgscm.
22959 + commit 41b510f9c510f8fd1b59eb0c5dd2e2b2deaf0a1b
22960 * tests/gpgscm/ffi.c (do_glob): Remove function.
22961 (ffi_init): Likewise.
22963 tests,w32: Avoid using 'glob'.
22964 + commit 949e70115eb2c04bd09da6477f6c433e6fd9a366
22965 * tests/openpgp/setup.scm: Avoid 'glob' which is not available on
22968 tools: Ignore existing directories in gpgtar.
22969 + commit fbc83c0cdd390473c044953fb774571ffc636c6d
22970 * tools/gpgtar-extract.c (extract_directory): Ignore existing
22971 directories now that we have '--directory'.
22973 2016-10-04 NIIBE Yutaka <gniibe@fsij.org>
22975 agent, dirmngr, scd: npth_init must be after fork.
22976 + commit eda17649f8bd3b8ce7bfc00a3c11cbcae63c845d
22977 * agent/gpg-agent.c (thread_init_once, initialize_modules): New.
22978 (main): Make sure no daemonizing-fork call after npth_init, and no npth
22979 calls before npth_init, with care of npth calls by assuan hooks.
22980 * dirmngr/dirmngr.c (thread_init): New.
22981 (main): Make sure npth_init must not be called before daemonizing fork.
22982 * scd/scdaemon.c (main): Likewise.
22984 2016-09-30 Werner Koch <wk@gnupg.org>
22986 agent: Remove the warning for the GKR hijacking.
22987 + commit a43739a2456a38c01704d8a52dca441055e29bc6
22988 * g10/call-agent.c (check_hijacking): Remove.
22989 (start_agent): Remove call.
22991 agent: Create the extra sockets in the standard socket dir.
22992 + commit 80cc16e0728256f6b07a12980e1f3512cf2324fa
22993 * agent/gpg-agent.c (main): Take the socketdir in account for the
22995 * tools/gpgconf.c (list_dirs): Add "agent-extra-socket" and
22996 "agent-browser-socket".
22998 agent: Kludge to allow disabling of the extra sockets.
22999 + commit 95cf7afff074613825f4442fa131145a2c0d3cf7
23000 * agent/gpg-agent.c (main): Check for special socket names.
23002 wks: Avoid long trustdb checks.
23003 + commit de67055aff916455cec89fab1d95177d3b383008
23004 * tools/wks-receive.c (verify_signature): Use --always-trust.
23006 2016-09-30 Justus Winter <justus@g10code.com>
23008 build: Fix build against libiconv.
23009 + commit 6054e8aaecbd355bb7559697eecaadf2225189b8
23010 * agent/Makefile.am: Add INCICONV and LIBICONV.
23011 * common/Makefile.am: Likewise.
23012 * tools/Makefile.am: Likewise.
23014 agent: Enable restricted, browser, and ssh socket by default.
23015 + commit e11686f973b35869d7b299ce4726003ac22e2e3a
23016 * agent/gpg-agent.c (main): Provide defaults for 'extra-socket' and
23017 'browser-socket', enable ssh socket by default, but do not emit the
23018 'SSH_AUTH_SOCK' variable unless it has been explicitly requested.
23019 * configure.ac (GPG_AGENT_{EXTRA,BROWSER}_SOCK_NAME): New definitions.
23020 * doc/gpg-agent.texi: Update documentation.
23022 w32: Fix STARTTLS on LDAP connections.
23023 + commit 8d37018050373a47566bf8ea0d894da20ed292c7
23024 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix build against
23027 2016-09-29 Werner Koch <wk@gnupg.org>
23029 wks: Partly implement draft-koch-openpgp-webkey-service-02.
23030 + commit 33800280da55a859e08dfa57f29144c89dd1bead
23031 * tools/gpg-wks.h (WKS_RECEIVE_DRAFT2): New.
23032 * tools/wks-receive.c: Include rfc822parse.h.
23033 (struct receive_ctx_s): Add fields PARSER, DRAFT_VERSION_2, and
23034 MULTIPART_MIXED_SEEN.
23035 (decrypt_data): Add --no-options.
23036 (verify_signature): Ditto.
23037 (new_part): Check for Wks-Draft-Version header. Take care of text
23039 (wks_receive): Set Parser and pass a flag value to RESULT_CB.
23040 * tools/gpg-wks-client.c (read_confirmation_request): New.
23041 (main) <aRead>: Call read_confirmation_request instead of
23042 process_confirmation_request.
23043 (command_receive_cb): Ditto. Add arg FLAGS..
23044 (decrypt_stream_status_cb, decrypt_stream): New.
23045 (command_send): Set header Wks-Draft-Version.
23046 * tools/gpg-wks-server.c (struct server_ctx_s): Add field
23048 (sign_stream_status_cb, sign_stream): New.
23049 (command_receive_cb): Set draft flag.
23050 (send_confirmation_request): Rework to implement protocol draft
23053 * tools/gpg-wks.h (DBG_MIME_VALUE, DBG_PARSER_VALUE): New.
23054 (DBG_MIME, DBG_PARSER, DBG_CRYPTO): New. Use instead of a plain
23055 opt.debug where useful.
23056 * tools/gpg-wks-client.c (debug_flags): Add "mime" and "parser".
23057 * tools/gpg-wks-server.c (debug_flags): Ditto.
23059 tools: Convey signeddata also to the part_data callback in mime-parser.
23060 + commit c738f92c195d91662ddc7848cc3c92c7f091f1f8
23061 * tools/mime-parser.c (mime_parser_parse): Factor some code out to ...
23062 (process_part_data): new.
23063 ((mime_parser_parse): Also call process_part_data for signed data.
23065 tools: Allow retrieval of signed data from mime-maker.
23066 + commit f776757ea94542e2f425840dddaf3e65b0ff7757
23067 * tools/mime-maker.c (find_part): New.
23068 (mime_maker_get_part): New.
23070 tools: Change mime-maker to write out CR,LF.
23071 + commit 29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5
23072 * tools/mime-maker.c (struct part_s): Add field PARTID.
23073 (struct mime_maker_context_s): Add field PARTID_COUNTER.
23074 (dump_parts): Print part ids.
23075 (mime_maker_add_header): Assign PARTID.
23076 (mime_maker_add_container): Ditto.
23077 (mime_maker_get_partid): New.
23078 (write_ct_with_boundary): Remove.
23079 (add_header): Strip trailing white spaces.
23080 (write_header): Remove trailing spaces trimming. Add arg BOUNDARY.
23081 Handle emdedded LFs.
23082 (write_gap, write_boundary, write_body): New.
23083 (write_tree): Use new functions.
23085 tools: Simplify the mime-maker container creation.
23086 + commit 95d60c6ce9e8a7a7741553af957978c1f91547c5
23087 * tools/mime-maker.c (struct part_s): Remove field MEDIATYPE.
23088 (release_parts): Ditto.
23089 (dump_parts): Print a body line only if tehre is a body.
23090 (mime_maker_add_header): Check for body or container.
23091 (mime_maker_add_container): Remove arg MEDIATYPE. Change all callers.
23092 (mime_maker_end_container): New.
23094 tools: Give mime parser callbacks access to the rfc822 parser.
23095 + commit 4ac138c84d0f344ca9442f90c96f0e1f76062a4a
23096 * tools/mime-parser.c (mime_parser_context_s): Add field MSG.
23097 (parse_message_cb): Set it.
23098 (mime_parser_rfc822parser): New.
23099 * tools/mime-parser.h: Declare rfc822parse_t for the new prototype.
23101 2016-09-29 Justus Winter <justus@g10code.com>
23103 dirmngr: Fix STARTTLS on LDAP connections.
23104 + commit 9e6f8a55ed04f876635792125858ee76a948802a
23105 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix unfortunate typo.
23107 2016-09-28 Werner Koch <wk@gnupg.org>
23109 gpg: Improve WKD by importing only the requested UID.
23110 + commit cbf2ac66692daa7a324108724698d60d6c7e473f
23111 * g10/keyserver.c: Include mbox-util.h.
23112 (keyserver_import_wkd): Do not use the global import options but
23113 employ an import filter.
23115 gpg: Reject import if an import filter removed all user ids.
23116 + commit 80393661bdfa7ae0288644513575e8a5d708b084
23117 * g10/import.c (any_uid_left): New.
23118 (import_one): Check that a UID is left.
23120 gpg: Make import filter data object more flexible.
23121 + commit c9237bf2ba2c49588576dcece756ebf5fe89aada
23122 * g10/main.h (import_filter_t): New.
23123 * g10/import.c (struct import_filter_s): Declare struct.
23124 (import_keep_uid, import_drop_sig): Replace by ...
23125 (import_filter): new. Adjust all users.
23126 (cleanup_import_globals): Move code to ...
23127 (release_import_filter): new.
23128 (save_and_clear_import_filter): New.
23129 (restore_import_filter): New.
23131 gpg: Make sure that internal key import is done with a binary stream.
23132 + commit 829949f3823c2306022928ce782f9c9d9c5f1cc8
23133 * g10/import.c (import_keys_internal): Open stream in binary mode.
23135 2016-09-27 Justus Winter <justus@g10code.com>
23137 build: Do not link gpg-connect-agent against npth.
23138 + commit 20a16833ee2bb05f735377f705899302bcf2b4d3
23139 * tools/Makefile.am: Do not link gpg-connect-agent against npth.
23141 build: Fix check for resolver library on macOS.
23142 + commit 2e64ccb0f96d615b1eb87e37f230a5d761aa9c36
23143 * configure.ac: Check for the mangled name of 'dn_skipname' first.
23145 common: Correctly handle modules relying on npth.
23146 + commit 2b23a321ac0b07beeac1dfa8d71f223e66c49b71
23147 * common/Makefile.am (common_sources): Drop 'call-gpg.{c,h}'.
23148 (with_npth_sources): New variable.
23149 (libcommonpth_a_SOURCES): Use the new variable.
23151 2016-09-27 NIIBE Yutaka <gniibe@fsij.org>
23153 agent, sm: Set CTX after start_agent.
23154 + commit 4e4843e735f32b5e79a51d8062da55bfaab6ad77
23155 * g10/call-agent.c (agent_keytocard): Assign parm.ctx after start_agent.
23156 * sm/call-agent.c (gpgsm_agent_pksign, gpgsm_scd_pksign)
23157 (gpgsm_agent_readkey, gpgsm_agent_scd_serialno)
23158 (gpgsm_agent_scd_keypairinfo, gpgsm_agent_marktrusted)
23159 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation)
23160 (gpgsm_agent_ask_passphrase, gpgsm_agent_keywrap_key)
23161 (gpgsm_agent_export_key): Likewise.
23163 dirmngr: Removal of no-libgcrypt.o.
23164 + commit 836b72363168cbb0051fc2356f61788468db211c
23165 * dirmngr/Makefile.am (dirmngr_ldap_LDADD): Remove no-libgcrypt.o.
23167 agent: Allow only specific digest size for ECDSA.
23168 + commit 98bc6f480ac973dccce90378dc021a2e24e58704
23169 * agent/pksign.c (do_encode_dsa): Fix validation of digest size.
23171 2016-09-22 Neal H. Walfield <neal@g10code.com>
23173 g10: When adding a user id, make sure the keyblock has been prepared.
23174 + commit df5353b95eefc13135e7df50a7c197f270d6080d
23175 * g10/keyedit.c (keyedit_quick_adduid): Call merge_keys_and_selfsig on
23176 KEYBLOCK before adding the user id.
23177 * tests/openpgp/quick-key-manipulation.scm: Make sure that the key
23178 capabilities don't change when adding a user id.
23179 (key-data): New function.
23181 2016-09-20 Justus Winter <justus@g10code.com>
23183 tests: Add documentation, make interactive debugging possible.
23184 + commit 7e0379a75475abfd15e0623913795779ff0f40d7
23185 * tests/openpgp/README: Add documentation about debugging and
23186 interfacing with GnuPG.
23187 * tests/openpgp/run-tests.scm (test::run-sync): Hand stdin to the
23188 child so that we can use a repl in the tests.
23190 tests: Port the quick key manipulation test to Scheme.
23191 + commit 6c4c0e3ac2aeafba7a2b7c2dd92a18be8aec92b1
23192 * tests/openpgp/Makefile.am (XTESTS): Add new test.
23193 * tests/openpgp/quick-key-manipulation.scm: New file.
23195 tests: Remove list of tests from the test runner.
23196 + commit 49fae88fd170f2bdc12a1794a2637260e3c73a73
23197 * tests/openpgp/run-tests.scm: Drop hardcoded list.
23199 tests: Reduce runtime of excessive test.
23200 + commit 988a04b98d42ff9cc9e62007ebcc0e4c03f4047d
23201 * tests/openpgp/conventional-mdc.scm: Use only two plaintexts when
23202 iterating over all cipher algorithms.
23205 + commit 285d193f1e1464495bce57bd0f323468515b4513
23206 * dirmngr/dns-stuff.c (get_dns_cert): Fix type in fallback code.
23208 2016-09-20 Andre Heinecke <aheinecke@intevation.de>
23210 dirmngr: Open file CRL's in binary mode.
23211 + commit 4644c27514f34f5efc555d43672a25088a611a72
23212 * dirmngr/crlcache.c (crl_cache_load): Open file in binary mode.
23214 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
23216 doc: Fix a xref usage.
23217 + commit b9b4ff857034df51e055ceddce567ca97e94e075
23220 2016-09-20 Ineiev <ineiev@gnu.org>
23222 doc: Do not end section names with "."
23223 + commit 8078d8246fa38c3e478fc9a542117468780ace00
23226 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
23228 doc: minor fix for @xref.
23229 + commit 9c1b3bc25a1b38c4eda31bf12ccc10d94bb05212
23230 * doc/yat2m.c (proc_texi_cmd): Captalize "see" for xref.
23232 2016-09-20 Justus Winter <justus@g10code.com>
23234 doc: Implement simple '@ref'erences.
23235 + commit 91d5e6f805aaf24a3f1f03a95998f757dce04cb2
23236 * doc/yat2m.c (proc_texi_cmd): Handle '@ref'.
23238 2016-09-20 Ineiev <ineiev@gnu.org>
23240 doc: Fix full stops.
23241 + commit 0eaab1af48f600b636183321e4a4e9c6bc361610
23242 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
23243 doc/instguide.texi, doc/scdaemon.texi, doc/specify-user-id.texi,
23244 doc/tools.texi: Fix.
23247 + commit 32bcf8b73ede9c8f1469821a54dedc6be75241d2
23248 * doc/debugging.texi, doc/dirmngr.texi, doc/gpg-agent.texi,
23249 doc/gpg.texi, doc/tools.texi: Fix.
23251 doc: Improve markup.
23252 + commit 377624207e9b2895ce00dfc4d1163d72f349841f
23253 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
23254 doc/howto-create-a-server-cert.texi, doc/scdaemon.texi,
23255 doc/specify-user-id.texi, doc/tools.texi: Fix.
23257 doc: Replace rfc0123 with RFC-0123.
23258 + commit 9d2b7bff12b268638465da222ca7cc9042bba072
23259 * doc/gpg.texi, doc/gpgsm.texi, doc/specify-user-id.texi: Fix.
23261 doc: Add missing description of datafile.
23262 + commit 789916281c25e737d8fb44add5ca61f8fd25de2f
23263 * doc/gpg.texi: Fix.
23265 doc: Replace UTF8 with UTF-8.
23266 + commit 00d6d8bc8772e48b6f200d359e11eb93ab65f51f
23267 * doc/gpg.texi: Fix.
23270 + commit f25e04005af5831053ba194a09e3afa48d1e162b
23271 * doc/dirmngr.texi, doc/gpg.texi, doc/gpgsm.texi,
23272 doc/howto-create-a-server-cert.texi,
23273 doc/scdaemon.texi, doc/tools.texi: Fix.
23275 doc: Eliminate inconsistent UK English.
23276 + commit 825c1dfb3ee4c1704f42eaf064161b9731c20134
23277 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/scdaemon.texi,
23278 doc/tools.texi: Fix.
23280 doc: Use the right reference commands.
23281 + commit f32689f833838a742243e94c900e98f5b59a5811
23282 * doc/debugging.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
23283 doc/tools.texi: Fix.
23285 doc: Fix "Not(e) that you can(not) abbreviate".
23286 + commit 20a27d8a57c4c990fcada4278a1ce2e6fc9043e9
23287 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
23288 doc/scdaemon.texi, doc/tools.texi: Fix.
23291 + commit fa346508fe323e61cf157ee30c13301e1d2117c0
23292 * doc/debugging.texi, doc/dirmngr.texi, doc/glossary.texi
23293 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi
23294 * doc/instguide.texi, doc/opt-homedir.texi, doc/scdaemon.texi
23295 * doc/specify-user-id.texi, doc/tools.texi: Fix.
23297 doc: Fix Martin Hellman's name.
23298 + commit 858af2b3473e436af53470d53cdac334edce9f09
23299 * doc/contrib.texi: Fix.
23301 2016-09-19 Justus Winter <justus@g10code.com>
23303 tests: Refine the repl function.
23304 + commit 884e78efe1f3ba50513bf81c8b4804d22b25eac4
23305 * tests/gpgscm/repl.scm (repl): Add an argument 'environment'.
23306 (interactive-repl): Add an optional argument 'environment'.
23308 tests: Implement interpreter shutdown using exceptions.
23309 + commit 9a0659a65c52378de1c4736a0eddf8518eb20948
23310 * tests/gpgscm/ffi.c (ffi_init): Rename 'exit' to '_exit'.
23311 * tests/gpgscm/ffi.scm (*interpreter-exit*): New variable.
23312 (throw): New function.
23313 (exit): New function.
23315 tests: Correctly handle exceptions in resource handling macros.
23316 + commit 58007e52593e6b0f838de2e464ceeacf22757018
23317 * tests/gpgscm/tests.scm (letfd): Correctly release resources when an
23318 exception is thrown.
23319 (with-working-directory): Likewise.
23320 (with-temporary-working-directory): Likewise.
23321 (lettmp): Likewise.
23323 tests: Refine exception handling.
23324 + commit ab483eff9a8254adf127cdee178e14ba74f0a2b3
23325 * tests/gpgscm/init.scm (catch): Bind all arguments to '*error*' in
23326 the error handler, update and fix comment.
23327 (*error-hook*): Revert to original definition.
23328 * tests/gpgscm/tests.scm (tr:do): Adapt accordingly.
23329 * tests/openpgp/issue2419.scm: Likewise.
23331 tests: Use descriptive temporary file names.
23332 + commit 83a406b38a21d0eeb4963db824a27783c212d2fb
23333 * tests/gpgscm/ffi.c (do_get_isotime): New function.
23334 (ffi_init): Add parameter 'scriptname', bind new function and
23336 * tests/gpgscm/ffi.h (ffi_init): Update prototype.
23337 * tests/gpgscm/main.c (main): Hand in the script name.
23338 * tests/gpgscm/tests.scm (mkdtemp): Use current time and script name
23339 for the names of temporary directories.
23341 2016-09-19 Werner Koch <wk@gnupg.org>
23343 gpg: Fix regression in fingerprint printing.
23344 + commit 998643666c016dbacf10f813c22efc97deadec65
23345 * g10/keylist.c (list_keyblock_print): Do not depend calling
23346 print_fingerprint on opt.keyid_format.
23348 dirmngr: Silence diagnostics about starting housekeeping.
23349 + commit 5bf1facc973eb6e0bfab0f8f17129534dec56e04
23350 * dirmngr/dirmngr.c (housekeeping_thread): Print info only in very
23353 2016-09-19 Justus Winter <justus@g10code.com>
23355 g10: Fix memory leak.
23356 + commit 086d219d96caa3501048aff82a282481e07c195b
23357 * g10/tofu.c (build_conflict_set): Free 'kb_all'.
23359 2016-09-19 Werner Koch <wk@gnupg.org>
23361 doc: Update license information.
23362 + commit 3899041cd2877ce9584c7bd149f232f35a07c399
23363 * tests/fake-pinentries/COPYING: Rename to ...
23364 * COPYING.CC0: this. Add a note on the scope of this license.
23365 * COPYING.LIB: Add a note on the scope of this license.
23366 * AUTHORS (License): Mention CC) license.
23368 gpgscm: Fix gcrypt version check.
23369 + commit 47baeac50ccaaf06dc8b0cebece50f47754de6ca
23370 * tests/gpgscm/main.c (main): Check against required and not installed
23373 gpg: Avoid malloc failure due to no key signatures.
23374 + commit 18bbefa27f9e47e1062ee4d7af09487632795ba7
23375 * g10/keyedit.c (check_all_keysigs): Check early for no key
23376 signatures. Use xtrycalloc.
23378 2016-09-17 NIIBE Yutaka <gniibe@fsij.org>
23380 Fix comment and format.
23381 + commit 7305d27f36148a7fb8c2f4ef5b94774cbd21b18e
23382 * agent/protect-tool.c (main): Fix comment.
23383 * doc/DETAILS (colon listings): Fix list.
23384 * tests/openpgp/multisig.test: Fix comment.
23386 2016-09-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23389 + commit 0d67241e317b172a258a910c02d90639e2b08fce
23390 * NEWS, acinclude.m4, agent/command-ssh.c, agent/command.c,
23391 agent/gpg-agent.c, agent/keyformat.txt, agent/protect-tool.c,
23392 common/asshelp.c, common/b64enc.c, common/recsel.c, doc/DETAILS,
23393 doc/HACKING, doc/Notes, doc/TRANSLATE, doc/dirmngr.texi,
23394 doc/faq.org, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
23395 doc/instguide.texi, g10/armor.c, g10/gpg.c, g10/keyedit.c,
23396 g10/mainproc.c, g10/pkclist.c, g10/tofu.c, g13/sh-cmd.c,
23397 g13/sh-dmcrypt.c, kbx/keybox-init.c, m4/pkg.m4, sm/call-dirmngr.c,
23398 sm/gpgsm.c, tests/Makefile.am, tests/gpgscm/Manual.txt,
23399 tests/gpgscm/scheme.c, tests/openpgp/gpgv-forged-keyring.scm,
23400 tests/openpgp/multisig.test, tests/openpgp/verify.scm,
23401 tests/pkits/README, tools/applygnupgdefaults,
23402 tools/gpg-connect-agent.c, tools/mime-maker.c, tools/mime-parser.c:
23403 minor spelling cleanup.
23405 move some file encodings to UTF-8.
23406 + commit 215180d1ce6c93e2b4969d746c83ac4c055d25ef
23407 * dirmgnr/cdblib.c: comment used unnecesary hyphenation
23408 * dirmngr/crlcache.h: comment was iso-8859-1
23409 * doc/contrib.text: list contributors using UTF-8 (now we can
23410 acknowledge many more people using their preferred orthography)
23412 At least one other files remains in a non-UTF-8 encoding, which i'm
23413 not sure what to do with:
23415 - build-aux/speedo/w32/inst.nsi is ISO-8859-1, but maybe Windows needs
23418 2016-09-16 Neal H. Walfield <neal@g10code.com>
23420 g10: On failure, propagate the return code.
23421 + commit 6e930f0e4077bc7aa3d28b1ba649a82d62427d87
23422 * g10/tofu.c (tofu_register_encryption): If get_trust fails, set RC.
23424 g10: Don't ignore failure. On failure, rollback.
23425 + commit 221b0bd0e5946edaea7135bc3b6f3c5c0fc6dbca
23426 * g10/tofu.c (tofu_set_policy): If record_binding fails, fail. If the
23427 function fails, rollback the transaction.
23429 g10: Load the key block if the supplied user id list is NULL.
23430 + commit c2e563421e4fd4f0910642aa7b171bcf0b374b01
23431 * g10/tofu.c (tofu_register_encryption): Load the key block if
23432 USER_ID_LIST is NULL.
23434 g10: Use the accessor functions for accessing and comparing key ids.
23435 + commit af196342bf44ce6dc42111d37539dec7ee3b3d82
23436 * g10/tofu.c (get_trust): Use the pk_main_keyid accessor function.
23437 (tofu_register_signature): Likewise.
23438 (tofu_register_encryption): Likewise.
23439 (tofu_set_policy): Likewise and also use pk_keyid and keyid_cmp.
23441 2016-09-16 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23443 po: convert localizations to UTF-8.
23444 + commit 4ab8107063b641ed74fc4c9bf98304bcea573178
23445 * po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po: convert to UTF-8
23447 This was an automated conversion process, using:
23449 for x in po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po; do
23450 cs=$(grep charset= $x | cut -f2 -d= | cut -f1 -d\\)
23451 iconv -f $cs -t UTF-8 < $x >$x.tmp
23452 sed "s/$cs/UTF-8/" < $x.tmp > $x
23456 2016-09-16 NIIBE Yutaka <gniibe@fsij.org>
23458 scd: Add support of ECC pubkey attribute.
23459 + commit dd06d33655bc872a6310edac8e448419479d3312
23460 * scd/app-openpgp.c (ECC_FLAG_PUBKEY): New.
23461 (send_key_attr, get_public_key, ecc_writekey, do_auth, do_decipher)
23462 (parse_algorithm_attribute): Check ECC_FLAG_DJB_TWEAK.
23463 (build_ecc_privkey_template): Add ECC_Q and ECC_Q_LEN.
23464 Support offering public key when ECC_FLAG_PUBKEY sets.
23465 (ecc_writekey): Supply ECC_Q and ECC_Q_LEN.
23466 (parse_algorithm_attribute): Parse pubkey-required byte.
23468 2016-09-15 Justus Winter <justus@g10code.com>
23470 g10: Add missing header.
23471 + commit c0e620cee86b5dacc941964bd187bba0dfa90eea
23472 * g10/trustdb.c: Include 'mbox-util.h'.
23474 2016-09-15 Neal H. Walfield <neal@g10code.com>
23476 g10: Only consider bindings matching the signer's user id.
23477 + commit 3f7f7447316f57d002d683af4ad30ac5730b9ebe
23478 * g10/trustdb.c (tdb_get_validity_core): If the signer's user id
23479 subpacket is present, only consider matching user ids.
23481 g10: Don't include the signature when printing a binding's validity.
23482 + commit dcc64663051f8af82abc11e2699649c3b35936db
23483 * g10/mainproc.c (check_sig_and_print): When printing information
23484 about a binding don't include the current signature.
23486 2016-09-15 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23488 tests/fake-pinentries: fake pinentries for downstream developers.
23489 + commit 3248182d1b5a03098ee797c980fa0f0ec06e716f
23490 * tests/fake-pinentries/README.txt and
23491 tests/fake-pinentries/fake-pinentry.{sh,py,pl,php}}: New public
23492 domain (CC0) files to encourage better test suite practices from
23493 downstream developers.
23494 * tests/fake-pinentries/COPYING (new): a copy of
23495 https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
23497 spelling: conenction should be connection.
23498 + commit 167273ee9d3c04f29835aa2d12fde52eebf61efb
23499 * dirmngr/server.c, sm/server.c: s/conenction/connection/
23501 spelling: correct achived to achieved.
23502 + commit 7fafc3c49901c118b47d4d13a41fb3575c1f9e4b
23505 2016-09-15 NIIBE Yutaka <gniibe@fsij.org>
23507 tests/gpgscm: Fix use of pointer.
23508 + commit 68eb5fbd37c31ed7c0c916656131eea7bb58d13d
23509 * tests/gpgscm/scheme-private.h (struct scheme): Use (void *) for
23511 * tests/gpgscm/scheme.c (alloc_cellseg): Use (void *) for cp. Use
23512 (void *) for coercion of address calculation.
23514 2016-09-14 Neal H. Walfield <neal@g10code.com>
23516 g10: Fix whitespace.
23517 + commit 9799b5d18f8fd29872b75c4d70d370af2b4e9a89
23518 * g10/tofu.c (show_statistics): Fix whitespace.
23520 g10: Correctly compute the euclidean distance.
23521 + commit 05b2b13efd8ecea86d31af863cbf82c8b38dc94f
23522 * g10/tofu.c (write_stats_status): Correctly compute the euclidean
23524 (show_statistics): Likewise.
23526 g10: Change the default TOFU policy for UTKs to good.
23527 + commit ca91caabb5798f67c69ee96657c7cb402e7db0df
23528 * g10/tofu.c (get_trust): Change the default TOFU policy for UTKs to
23531 g10: Add missing static qualifier.
23532 + commit 9d62b79e62ef2690e6522fe1621140fbfc10695c
23533 * g10/tofu.c (cross_sigs): Add missing static qualifier.
23535 g10: Default to the "good" TOFU policy for keys signed by a UTK.
23536 + commit 8df8aa13c795e400324a782fbaea578c8f2a1398
23537 * g10/tofu.c (signed_by_utk): New function.
23538 (get_trust): If a key is signed by an ultimately trusted key, then
23539 set any bindings to good.
23541 2016-09-14 Werner Koch <wk@gnupg.org>
23543 gpg: Emit a new error status line in --quick-adduid.
23544 + commit f4e11f2e9e8f58fd5f0df3148e6d7ccef0f84232
23545 * g10/keyedit.c (menu_adduid): Emit an ERROR status for an existsing
23548 gpg: Allow use of "default" algo for--quick-addkey.
23549 + commit 0fd332bc1f6f1f10c96da0cc91203925d3ac81eb
23550 * g10/keygen.c (quick_generate_keypair): Write a status error.
23551 (parse_algo_usage_expire): Set a default curve.
23553 2016-09-13 Werner Koch <wk@gnupg.org>
23555 gpg: Improve usability of --quick-gen-key.
23556 + commit 30a011cfd6ec172cc460e59f0904a26fe2d68632
23557 * g10/keygen.c (FUTURE_STD_): New constants.
23558 (parse_expire_string): Handle special keywords.
23559 (parse_algo_usage_expire): Allow "future-default". Simplify call to
23560 parse_expire_string.
23561 (quick_generate_keypair): Always allow an expiration date. Replace
23562 former "test-default" by "future-default".
23564 2016-09-12 Werner Koch <wk@gnupg.org>
23566 gpg: Avoid mixing up status and colon line output.
23567 + commit 31fc420727f45dd081f8ad5d056da6675dad29f2
23568 * g10/keylist.c (list_keyblock_colon): Avoid calling functions which
23569 trigger a status line output before having printed a LF.
23571 2016-09-12 Justus Winter <justus@g10code.com>
23573 tests: Simplify tofu test.
23574 + commit aa81e32df7189c3eb44d4c602fd63f5b3f6a9e49
23575 * tests/openpgp/tofu.scm: Simplify now that we only have one db
23578 2016-09-10 Ben Kibbey <bjk@luxsci.net>
23580 Portability build fix.
23581 + commit eddcba038025cdbd58aaf67cafd6d83f0ea042d5
23582 * kbx/Makefile.am: Add NETLIBS.
23583 * dirmngr/Makefile.am: Ditto for dirmngr_ldap.
23585 Fix symbol conflict.
23586 + commit 937ec53eff290c3d916faebc23218c9272671c02
23587 * g10/gpgcompose.c: Rename struct siginfo to signinfo.
23589 2016-09-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
23591 gpg: print fingerprint regardless of keyid-format.
23592 + commit d757009a24eb856770fc3a3729e2f21f54d2a618
23593 * g10/keylist.c (print_fingerprint): use compact format independent of
23594 keyid-format; (print_key_line): always print the fingerprint
23596 2016-09-08 Werner Koch <wk@gnupg.org>
23598 gpg: Remove option --yes from gpgv.
23599 + commit 30a9f53a0f2af6b98c26b8ddc0b4b87c38416f2a
23600 * g10/gpgv.c (opts): Remove --yes.
23601 (main): Always set opt.ANSWER_YES.
23603 gpg: Add options --output and --yes to gpgv.
23604 + commit a8363b7d0bcc77b55226d5fe8f972214c968ddc3
23605 * g10/gpgv.c (oOutput, oAnswerYes): New.
23606 (opts): Add --output and --yes.
23607 (main): Implement options.
23609 gpg: Make --output work with --verify.
23610 + commit bbe940c095f2bca7a1ca5f8e68ca1af98350a885
23611 * g10/mainproc.c (proc_plaintext): Handle opt.output.
23613 2016-09-07 Werner Koch <wk@gnupg.org>
23615 dirmngr: Terminate on deletion of the socket file (Linux only).
23616 + commit 6308c300196ae85fd82ed383217219e0206640a4
23617 * dirmngr/dirmngr.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
23618 (oDisableCheckOwnSocket): New.
23619 (opts): Add --disable-check-own-socket.
23620 (disable_check_own_socket): New var.
23621 (parse_rereadable_options): Set that var.
23622 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
23623 (handle_connections) [HAVE_INOTIFY_INIT]: New.
23625 2016-09-07 Neal H. Walfield <neal@g10code.com>
23627 g10: Use the time a signature was seen, not the embedded time, for stats
23628 + commit bde29a46cedbbd2a5dfe7c91a6277c0a4ff50825
23629 * g10/tofu.c (ask_about_binding): Use the time that a signature was
23630 seen, not allegedly generated, when generating statistics.
23632 tests: Don't use --tofu-db-format.
23633 + commit a937eef2d4e80cd43095802176d3db5e7fd94008
23634 * tests/openpgp/tofu.scm: Remove use of --tofu-db-format, which is
23637 g10: Check for a new binding a bit later.
23638 + commit ee06b3f7889bd99c28ac68f4781bda77d67eed00
23639 * g10/tofu.c (build_conflict_set): Check for the current key after
23640 looking for conflicts and removing any '!'.
23642 g10: Change TOFU code to respect --faked-system-time.
23643 + commit 7b3e8572e3bb8a65d20577a48009251fdc7b1910
23644 * g10/tofu.c (record_binding): New parameter now. Update callers.
23645 Don't use SQLite's strftime('%s','now') to get the current time, use
23647 (ask_about_binding): Likewise.
23648 (get_trust): New parameter now. Update callers.
23649 (show_statistics): Likewise.
23650 (tofu_register_signature): Don't use SQLite's strftime('%s','now') to
23651 get the current time, use gnupg_get_time().
23652 (tofu_register_encryption): Likewise.
23654 g10: Use the correct conversion function.
23655 + commit 56c18408d4955713d9c4e634367c7912d6564651
23656 * g10/tofu.c (show_statistics): Use string_to_ulong, not
23659 2016-09-07 Werner Koch <wk@gnupg.org>
23661 gpg: Fix format string issues in tofu.
23662 + commit 97a67d42dc946b2d6ed81723d86e37002b5931b3
23663 * g10/tofu.c (write_stats_status): Use ulong for MESSSAGES. Fix
23664 format strings. Simplify by using the new write_status_printf.
23666 2016-09-06 Neal H. Walfield <neal@g10code.com>
23668 g10: Make sure some functions are passed a primary key.
23669 + commit 13ddc17ddb266d74033d5739fec932034fa85c72
23670 * g10/tofu.c (get_trust): Make sure the caller provides a primary key.
23671 (tofu_register_signature): Likewise.
23673 g10: Tweak TOFU's verbosity.
23674 + commit ee19eacd1d688d3a98cd66e5ef2f42079eb829f1
23675 * g10/tofu.c (time_ago_str): Only show the most significant unit.
23676 * g10/tofu.c (show_statistics): Tweak the output.
23678 g10: Only show the TOFU warning once per key.
23679 + commit 67cef405cbfad2e53fc388dd6591ee4f7cb0d973
23680 * g10/tofu.c (show_statistics): Return whether to call show_warning.
23681 Move the warning from here...
23682 (show_warning): ... to this new function.
23683 (tofu_get_validity): If show_statistics returns a non-zero value, call
23686 g10: Record and show statistics for encrypted messages when using TOFU.
23687 + commit 875ac9216f1383851a82bd240cadb17c7112f6a8
23688 * g10/tofu.c: Include "sqrtu32.h".
23689 (struct tofu_dbs_s.s): Rename get_trust_gather_other_keys to
23690 get_trust_gather_signature_stats. Add new field
23691 get_trust_gather_encryption_stats.
23692 (initdb): Create the encryptions table.
23693 (ask_about_binding): Show the encryption statistics too.
23694 (tofu_register): Rename from this...
23695 (tofu_register_signature): ... to this and update callers.
23696 (tofu_register_encryption): New function.
23697 (write_stats_status): Add parameters encryption_count,
23698 encryption_first_done and encryption_most_recent. Update callers.
23699 Compute the trust using the euclidean distance of the signature and
23700 signature count. Compare with twice the threshold. Include
23701 encryption count information in the TFS and TOFU_STATS lines.
23702 (show_statistics): Also get information about the encrypted messages.
23703 * g10/trustdb.c (tdb_get_validity_core): Use it.
23705 g10: Simplify the binding statistics shown for a TOFU conflict.
23706 + commit a9e6db6c7e23d9f4b8de59f5cabbf9eb6a59e626
23707 * g10/tofu.c (ask_about_binding): Simplify binding statistics.
23709 2016-09-06 Justus Winter <justus@g10code.com>
23711 gpgscm: Fix detection of unbalanced parenthesis.
23712 + commit f2249b737055f84842778285bbeff5e61fa55225
23713 * tests/gpgscm/main.c (load): Print error message.
23714 * tests/gpgscm/scheme.c (opexe_0): Correctly report nesting level when
23718 + commit 213b3cf465fb091dc0a205d1a08b88b950ffb85f
23719 * tests/openpgp/multisig.scm: Add missing parenthesis.
23721 2016-09-06 Werner Koch <wk@gnupg.org>
23723 agent: Terminate on deletion of the socket file (Linux only).
23724 + commit 650356148af43ea619bec12e599a4981b147d5f8
23725 * configure.ac (AC_CHECK_FUNCS): Chec for inotify_init.
23726 * agent/gpg-agent.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
23727 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
23728 (handle_connections) [HAVE_INOTIFY_INIT]: New.
23730 2016-09-05 Justus Winter <justus@g10code.com>
23732 tests: Speed up the test suite.
23733 + commit 46c4333c372f0e1ad2aadc411490c2a330b4c5a6
23734 * tests/openpgp/run-tests.scm (test::run-sync): Pass additional
23735 arguments to the test.
23736 (test::run-sync-quiet): Likewise.
23737 (test::run-async): Likewise.
23738 (run-tests-{parallel,sequential}-isolated): Create a tarball of the
23739 gnupghome, then extract it for each test.
23740 * tests/openpgp/setup.scm: Refactor into functions, add an interface
23741 to tar-up the created environment, and untar it multiple times.
23743 common: Restore a simpler variant of 'gnupg_wait_process'.
23744 + commit c97bde2dfeab23a84b4788d998934ac49ff5b797
23745 * common/exechelp-posix.c (gnupg_wait_process): Use the code prior to
23748 common: Fix error handling.
23749 + commit 845e2cc201d6a2cdb151e39e29516d26cb49311c
23750 * common/exechelp-posix.c (store_result): Use xtrymalloc.
23751 (gnupg_wait_processes): Likewise, and check result.
23753 2016-09-05 Neal H. Walfield <neal@g10code.com>
23755 g10: Don't add user attributes to the TOFU DB.
23756 + commit 9082bde01cc18e32504ce39d55ea6dd3c05dddec
23757 * g10/trustdb.c (tdb_get_validity_core): Skip user attributes.
23759 2016-09-05 Werner Koch <wk@gnupg.org>
23761 agent: Silence --debug IPC output for connections from self.
23762 + commit 0b99d1fd2a80b8efaacc731027d2b2ecd9eca699
23763 * agent/command.c (server_local_s): Add fields 'greeting_seen' and
23764 'connect_from_self'.
23765 (io_monitor): Do not log connections from self.
23766 (start_command_handler): Set flag 'connect_from_self'.
23767 * agent/gpg-agent.c (check_own_socket_thread): Disable logging.
23768 (do_start_connection_thread): Do not log conection start and
23769 termination if IPC debugging is enabled.
23771 agent: Small improvement of the server's local state.
23772 + commit 2eeb5551c37659fdd59e8537fc77a9e7fb6a9204
23773 * agent/command.c (sserver_local_s): Change flags to use only one bit.
23774 (option_handler): Make an atoi return 1 or 0.
23776 2016-09-05 Neal H. Walfield <neal@g10code.com>
23778 g10: Refactor cross sig check code.
23779 + commit 1f1f56e606c1cb28eec68c60bd8bcb7ab30805de
23780 * g10/tofu.c (BINDING_NEW): New enum value.
23781 (BINDING_CONFLICT): Likewise.
23782 (BINDING_EXPIRED): Likewise.
23783 (BINDING_REVOKED): Likewise.
23784 (ask_about_binding): Move cross sig check from here...
23785 (get_trust): ... and the conflict set building from here...
23786 (build_conflict_set): ... to this new function.
23787 (format_conflict_msg_part1): Replace parameter conflict with
23788 conflict_set. Drop parameter fingerprint. Update callers.
23789 (ask_about_binding): Drop unused parameter conflict and redundant
23790 parameter bindings_with_this_email_count. Rename parameter
23791 bindings_with_this_email to conflict_set. Update callers.
23793 2016-09-05 Justus Winter <justus@g10code.com>
23795 tests: Update README.
23796 + commit 65a7563edbbab8f93fe901f932065687508788de
23797 * tests/openpgp/README: Update.
23799 tests: Pass flags to test driver.
23800 + commit 059c79d8b447a3baa9ad0b4d3367bdb64dd2ef3b
23801 * tests/openpgp/Makefile.am (xcheck): Pass flags to 'run-tests.scm'.
23803 common: Improve waiting for processes on POSIX.
23804 + commit e33111fcdac08ed2ddfbdf59b1f790569b42f695
23805 * common/exechelp-posix.c (struct terminated_child): New definition.
23806 (terminated_children): New variable.
23807 (store_result): New function.
23808 (get_result): Likewise.
23809 (gnupg_wait_process): Store results that were not requested and
23810 consider previously stored results.
23812 waitpid(2) may return information about terminated children that we
23813 did not yet request, and there is no portable way to wait for a
23814 specific set of children. As a workaround, we store the results of
23815 children for later use.
23817 2016-09-05 Werner Koch <wk@gnupg.org>
23819 dirmngr: Exclude D lines from the IPC debug output.
23820 + commit de623474db3ba402c9bbd872ab6f932f46cbdde9
23821 * dirmngr/dirmngr.h: Include asshelp.h.
23822 * dirmngr/server.c (server_local_s): Add inhibit_dara_logging fields.
23823 (data_line_write): Implement logging inhibit.
23824 (data_line_cookie_close): Print non-logged D lines.
23825 (cmd_wkd_get, cmd_ks_get, cmd_ks_fetch): Do not log D lines.
23826 (dirmngr_assuan_log_monitor): New.
23827 * dirmngr/dirmngr.c (main): Register monitor function.
23829 common: Add an assuan logging monitor.
23830 + commit 0ac671f8a2b65a4b339f615c6420287a549779fa
23831 * common/asshelp.c (my_log_monitor): New var.
23832 (my_libassuan_log_handler): Run that monitor.
23833 (setup_libassuan_logging): Add arg to set a log monitor and change all
23836 gpg: New export filter drop-subkey.
23837 + commit 0a4a03e5310946b0866a0f6a34031eda7a240162
23838 * g10/import.c (impex_filter_getval): Add properties for key packets.
23839 * g10/export.c (export_drop_subkey): New var.
23840 (cleanup_export_globals): Release that var.
23841 (parse_and_set_export_filter): Add filter "drop-subkey".
23842 (apply_drop_subkey_filter): New.
23843 (do_export_stream): Run that filter.
23845 common: Add string operator gt,ge,le,lt to recsel.
23846 + commit 959cd8903fd012e63dbb156db56708dd3934b5df
23847 * common/recsel.c (recsel_parse_expr): Add them.
23848 (recsel_dump): Print them.
23849 (recsel_select): Evaluate them.
23851 gpg: Use a common filter_getval for import and export.
23852 + commit c8e0d37f4152d1341ef562a190fce93a0386a759
23853 * g10/import.c (filter_getval): Rename to ...
23854 (impex_filter_getval): this. Make global.
23855 (apply_keep_uid_filter, apply_drop_sig_filter): Adjust.
23856 * g10/export.c (filter_getval): Remove.
23857 (apply_drop_sig_filter): Use impex_filter_getval.
23859 2016-09-03 NIIBE Yutaka <gniibe@fsij.org>
23861 scd: Fix an action after card removal.
23862 + commit f9e49c80e706a27d5e30d4b3237ff26367a67130
23863 * scd/command.c (update_card_removed): Call apdu_close_reader here.
23865 2016-09-02 Werner Koch <wk@gnupg.org>
23867 wks: Add framework for policy flags.
23868 + commit 46362cbc0e2260e989820795a6e4245c72335172
23869 * tools/call-dirmngr.c (wkd_get_policy_flags): New.
23870 * tools/gpg-wks.h (struct policy_flags_s, policy_flags_t): New.
23871 * tools/wks-util.c (wks_parse_policy): New.
23872 * tools/gpg-wks-client.c (command_send): Get the policy flags to show
23874 * tools/gpg-wks-server.c (get_policy_flags): New.
23875 (process_new_key): get policy flag and add a stub for "auth-submit".
23876 (command_list_domains): Check policy flags.
23878 dirmngr: Add --policy-flags option to WKD_GET.
23879 + commit 505ee45106d6aa2902bbdd6326f8eb7527c273c4
23880 * dirmngr/server.c (cmd_wkd_get): Add new option.
23882 common: Check read errors in name-value.c.
23883 + commit fc445b36fafc8a4cc3ce5a675ac42df7a9d9a02a
23884 * common/name-value.c: Check for read errors.
23886 2016-09-02 NIIBE Yutaka <gniibe@fsij.org>
23888 scd: Release the card reader after card removal.
23889 + commit 8fe81055762d9c9e6f03fb7853a985c94ef73ac3
23890 * scd/command.c (update_reader_status_file): Call apdu_close_reader.
23892 scd: Clean up unused shutdown method.
23893 + commit d1ae7103352fbda2a05f098379cd3043a0ab5566
23894 * scd/apdu.c (shutdown_ccid_reader, apdu_shutdown_reader): Remove.
23895 (reset_ccid_reader): Don't set shutdown_reader.
23896 * scd/ccid-driver.c (ccid_shutdown_reader): Remove.
23898 agent: invoke scdaemon with --homedir.
23899 + commit 8b6c0bae33bdc36892f4595806665ce61f77dfd2
23900 * agent/call-scd.c (start_scd): Supply --homedir option when it's not
23903 po: Update Japanese translation.
23904 + commit afdfc954b35370fbf03aaf8dc0e496410923aa4e
23907 2016-09-01 Neal H. Walfield <neal@g10code.com>
23909 g10: End transaction earlier.
23910 + commit 85fad6c34c08b2850580e0644faba62d3a501b84
23911 * g10/tofu.c (ask_about_binding): End the transaction earlier.
23913 g10: Don't consider cross-signed keys to be in conflict.
23914 + commit b410a3cb7683fc7c2a253e23130c44df42a6203c
23915 * g10/tofu.c (cross_sigs): New function.
23916 (ask_about_binding): If apparently conflicting keys are cross signed,
23917 then don't mark them as conflicting.
23919 2016-09-01 Werner Koch <wk@gnupg.org>
23921 gpg: Avoid homedir creation by --list-config.
23922 + commit 38d369de13acb95208a0ed8d1cf82ac19173688f
23923 * g10/gpg.c (main): Do not register a key for the list config
23926 gpg: Simplify code to print VALIDSIG.
23927 + commit fde9fa81d3d3b25a929b532cc1960d9d9f454a0c
23928 * g10/mainproc.c (check_sig_and_print): Use hexfingerprint and
23929 write_status_printf.
23931 gpg: Add new function write_status_printf.
23932 + commit 6bdadae00512b4907826f6754cdb220d06e1ac6d
23933 * g10/cpr.c (write_status_printf): New.
23935 gpg: Fix printing of pubkey algo in --verbose signature verify.
23936 + commit 37e3c897252babc203447be9d2f286a4507875ad
23937 * g10/sig-check.c (check_signature2): Replace arg PK by R_PK and
23938 change the semantics. Also clear the other R_ args on function entry,
23939 use gpg_error() and change retturn type to gpg_error_t.
23940 * g10/mainproc.c (do_check_sig): Add arg R_PK.
23941 (list_node): Pass NULL for new arg.
23942 (check_sig_and_print): Rework to make use of the returned PK.
23944 2016-09-01 Neal H. Walfield <neal@g10code.com>
23946 g10: When asking about a TOFU binding conflict, default to unknown.
23947 + commit 3d44e5e8a8d1d8bf6cf5d387f50d75f84d804412
23948 * g10/tofu.c (ask_about_binding): Default to unknown.
23950 g10: Add support for TRUST_NEVER.
23951 + commit f2e5cb6ffb55e49a05d452cd85e45f6f67c20abb
23952 * g10/pkclist.c (do_we_trust): Handle TRUST_NEVER, which can be
23953 returned by the TOFU trust model.
23954 (do_we_trust_pre): Print a different message if TRUSTLEVEL is
23956 (check_signatures_trust): Improve comment.
23959 + commit 0cb0ea1633955fb7acd33fe993a4ae4e96e83ae3
23960 * g10/tofu.c (show_statistics): Improve the text (key and user id, not
23963 g10: Remove unused parameter.
23964 + commit 00c2850393ecc320f591f511c3534286964780c2
23965 * g10/tofu.c (show_statistics): Remove unused parameter sig_exclude.
23968 2016-09-01 Werner Koch <wk@gnupg.org>
23970 gpg: Copy the correct digest for use by TOFU.
23971 + commit 3e67b50490aef087b5769bb35145d23f6657780f
23972 * g10/mainproc.c (do_check_sig): Use the current digest algo.
23974 2016-09-01 Neal H. Walfield <neal@g10code.com>
23976 g10: Be careful to not be in a transaction during long operations.
23977 + commit 4cbd2a690c5e5ed2dff49c1f4fc867b31fca689a
23978 * g10/tofu.c (begin_transaction): New parameter only_batch. If set,
23979 only start a batch transaction if there is none and one has been
23980 requested. Update callers.
23981 (tofu_suspend_batch_transaction): New function.
23982 (tofu_resume_batch_transaction): Likewise.
23983 (ask_about_binding): Take a ctrl_t, not a tofu_dbs_t. Update
23984 callers. Gather statistics within a transaction. Suspend any batch
23985 transaction when getting user input.
23986 (get_trust): Take a ctrl_t, not a tofu_dbs_t. Update callers.
23987 Enclose in a transaction.
23988 (tofu_get_validity): Use a batch transaction, not a normal
23991 2016-09-01 Werner Koch <wk@gnupg.org>
23993 tests: Run test requiring the network only in maintainer-mode.
23994 + commit babeb6f8a9b1f8341652145bad58be6cd49e0712
23995 * dirmngr/Makefile.am (noinst_PROGRAMS, TESTS): Add module_net_tests.
23996 (module_tests): Move t-dns-test to ...
23997 (module_net_tests): here.
23999 2016-08-31 Werner Koch <wk@gnupg.org>
24001 wks: Send a final message to the user.
24002 + commit 04c042f3f2a631bc6e772c33f8da5e7aa7b1902a
24003 * tools/gpg-wks-server.c (send_congratulation_message): New.
24004 (check_and_publish): Call it.
24006 wks: Relax permission check for the top directory.
24007 + commit e4eac16330449f3893c11820c15e07d58fb807ff
24008 * tools/gpg-wks-server.c: Allow S_IXOTH for the top directory.
24010 2016-08-31 Neal H. Walfield <neal@g10code.com>
24012 g10: On a TOFU conflict, show whether the uids are expired or revoked.
24013 + commit edfb6934caf16c6afcfd82d684d8ae9c79674d10
24014 * g10/tofu.c (struct signature_stats): Add fields is_expired and
24016 (signature_stats_prepend): Clear *stats when allocating it.
24017 (ask_about_binding): Also show whether the user ids are expired or
24020 doc: Add a help text for tofu.conflict.
24021 + commit b69b2cb082e39a7eb56082fa80219f6f14fbd2b4
24022 * doc/help.txt (.gpg.tofu.conflict): New help text.
24024 g10: Always trust ultimately trusted keys.
24025 + commit 28c235ae757e9036b0b96efc28931fa5cc74f7ee
24026 * g10/tofu.c (get_trust): Always return TRUST_ULTIMATE for ultimately
24029 g10: Fix error detection.
24030 + commit 5b48960a8a2555db7bf992261de9e922838c9913
24031 * g10/tofu.c: first_seen == 0 is not an error.
24033 g10: Update a key's TOFU policy in a transaction.
24034 + commit e4d5e3cb0d10e8f77c7100d42cfdb32051de1c18
24035 * g10/tofu.c (tofu_set_policy): Do the update in a transaction.
24036 * g10/gpg.c (main): Do a TOFU policy update in a batch transaction.
24038 g10: Fix the show old policy functionality when changing a TOFU policy.
24039 + commit 247eef005cf4c34e9a82227e4ab7823e04911be4
24040 * g10/tofu.c (record_binding): Fix the show old policy functionality.
24042 g10: Drop unused argument.
24043 + commit 70df5a8fd781d8774d835384ca28c4d8518bb9d0
24044 * g10/tofu.c (begin_transaction): Remove unused option only_batch.
24046 gpg: Move state local to tofu.c to a private structure.
24047 + commit 268f6b7a3403d036882b4af384ba7ab2f8c8355f
24048 * g10/gpg.h (struct server_control_s.tofu): Move fields in_transaction
24049 and batch_update_started from here...
24050 * g10/tofu.c (struct tofu_dbs_s): ... to here.
24052 gpg: Avoid name spaces clash with future sqlite versions (2).
24053 + commit b8184d2d74e5ddd5eb68836b53fe5568110e14dd
24054 * g10/gpgsql.h (gpgsql_arg_type): Rename SQLITE_ARG_END to
24055 GPGSQL_ARG_END, SQLITE_ARG_INT to GPGSQL_ARG_INT, SQLITE_ARG_LONG_LONG
24056 to GPGSQL_ARG_LONG_LONG, SQLITE_ARG_STRING to GPGSQL_ARG_STRING, and
24057 SQLITE_ARG_BLOB to GPGSQL_ARG_BLOB.
24059 2016-08-31 Werner Koch <wk@gnupg.org>
24061 gpg: Fix regression in gpgv's printing of the keyid.
24062 + commit 76304a971fe507ea659b952932ea899463ab7166
24063 * g10/keyid.c (keystr): Take care of KF_NONE != KF_DEFAULT.
24065 2016-08-30 Neal H. Walfield <neal@g10code.com>
24067 g10: Improve TOFU batch update code.
24068 + commit 371ae66e9d5c7524431773c4a479fcae1ea3b652
24069 * g10/gpg.h (tofu): Rename field batch_update_ref to
24070 batch_updated_wanted.
24071 * g10/tofu.c (struct tofu_dbs_s): Rename field batch_update to
24072 in_batch_transaction.
24073 (begin_transaction): Only end an extant batch transaction if we are
24074 not in a normal transaction. When ending a batch transaction, really
24075 end it. Update ctrl->tofu.batch_update_started when starting a batch
24077 (end_transaction): Only release a batch transaction if ONLY_BATCH is
24078 true. When releasing a batch transaction, assert that there is no
24079 open normal transaction. Only allow DBS to be NULL if ONLY_BATCH is
24081 (tofu_begin_batch_update): Don't update
24082 ctrl->tofu.batch_update_started.
24083 (opendbs): Call end_transaction unconditionally.
24085 g10: If a key has no valid user ids, change TOFU to return TRUST_NEVER.
24086 + commit d0451440c036106895a291f9ca1c53c2d5159f8f
24087 * g10/tofu.c (tofu_get_validity): If a key has no valid (non-expired)
24088 user ids, change TOFU to return TRUST_NEVER.
24090 g10: Change tofu_register & tofu_get_validity to process multiple uids.
24091 + commit 6052c147091935fc0321ba24f4a44146df70ef01
24092 * g10/tofu.c (tofu_register): Take a list of user ids, not a single
24093 user id. Only register the bindings, don't compute the trust. Thus,
24094 change return type to an int and remove the may_ask parameter. Update
24096 (tofu_get_validity): Take a list of user ids, not a single user id.
24097 Update callers. Observe signatures made by expired user ids, but
24098 don't include them in the trust calculation.
24100 g10: Support nested transactions on the TOFU DB.
24101 + commit 33e97813d72996d22a295773c64261f5588ce9dd
24102 * g10/gpg.h (struct server_control_s): New field in_transaction.
24103 * g10/tofu.c (struct tofu_dbs_s): Remove fields savepoint_inner and
24104 savepoint_inner_commit.
24105 (begin_transaction): Increment CTRL->TOFU.IN_TRANSACTION. Name the
24106 savepoint according to the nesting level.
24107 (end_transaction): Name the savepoint according to the nesting level.
24108 Decrement CTRL->TOFU.IN_TRANSACTION.
24109 (rollback_transaction): Likewise. Only ever rollback a non-batch
24111 (opendbs): Assert that there are no outstanding transactions.
24113 g10: Print the info text in more situations.
24114 + commit 4c2abb221b29c9e8e0876fe986472b562ee1c99f
24115 * g10/tofu.c (ask_about_binding): Print the info text when the policy
24116 is ask and there are multiple bindings with the email address.
24118 g10: Print the formatted text.
24119 + commit 0858f141a8b8d0c098a0c6097176b7225c4a9db8
24120 * g10/tofu.c (ask_about_binding): Print the formatted text, not the
24123 g10: When showing a user id's trust, pass the current signature.
24124 + commit 8dda861ad80228da76cd5c97467008c87b8b6eee
24125 * g10/mainproc.c (check_sig_and_print): Consistently pass SIG to
24128 2016-08-29 Werner Koch <wk@gnupg.org>
24130 w32: Fix build regression due to 2aa0701.
24131 + commit 8b3e691ffbaaa218d309d5aaf8f37532308558ff
24132 * common/logging.c (fun_writer): Always declare 'name_for_err'.
24134 gpgconf: Print the plain socket directory with --list-dirs.
24135 + commit 8e3fa5a4b205c534de2142e5d071712f957cf06a
24136 * tools/gpgconf.c (list_dirs): Add plain socketdir out.
24138 common: Add a default socket name feature.
24139 + commit 2aa0701013f703ad93e17da3345c493c08aa04ee
24140 * common/logging.c (log_set_socket_dir_cb): New.
24141 (socket_dir_cb): New.
24142 (set_file_fd): Allow "socket://".
24143 (fun_writer): Implement default socket name.
24144 * common/init.c (_init_common_subsystems): Register default socket.
24146 gpg: Make decryption of -R work w/o --try-secret-key or --default-key.
24147 + commit bdbd03608b6f508ac4732f9986a046de8a85a311
24148 * g10/getkey.c (enum_secret_keys): At state 3 enumerate the keys in all
24149 cases not just when --try-all-secrets is used.
24151 2016-08-25 Werner Koch <wk@gnupg.org>
24153 gpg: Fix false negatives in Ed25519 signature verification.
24154 + commit 0a5a854510fda6e6990938a3fca424df868fe676
24155 * g10/pkglue.c (pk_verify): Fix Ed25519 signatrue values.
24156 * tests/openpgp/verify.scm (msg_ed25519_rshort): New
24157 (msg_ed25519_sshort): New.
24158 ("Checking that a valid Ed25519 signature is verified as such"): New.
24160 common: Rename an odd named function.
24161 + commit 74a082bc10960b2d65d4d1e31152f988a40a2225
24162 * common/openpgp-oid.c (oid_crv25519): Rename to oid_cv25519.
24163 (openpgp_oid_is_crv25519): Rename to openpgp_oid_is_cv25519. Change
24166 gpg: New option --with-tofu-info.
24167 + commit 19d12be3cea5b4ee8153287a2f2442913a5e07a1
24168 * g10/gpg.c (oWithTofuInfo): New.
24169 (opts): Add --with-tofu-info.
24170 (main): Set opt.with_tofu_info.
24171 * g10/options.h (struct opt): Add field WITH_TOFU_INFO.
24172 * g10/tofu.c (show_statistics): Add optional arg OUTFP and enter
24173 special mode if not NULL. Change all callers.
24174 (tofu_write_tfs_record): New.
24175 * g10/keylist.c (list_keyblock_colon): Do not print the tofu policy as
24176 part of the "uid" record. Print a new "tfs" record if the new option
24178 * tests/openpgp/tofu.scm (getpolicy): Change from UID to TFS record.
24180 2016-08-24 Werner Koch <wk@gnupg.org>
24182 gpg: Change TOFU_STATS to return timestamps.
24183 + commit 0f1f02acc1cdcc2cf74a97b05507bb1f062f8af2
24184 * g10/tofu.c (write_stats_status): Add arg FP to print a colon
24185 formated line. Adjust for changed TOFU_STATS interface.
24186 (show_statistics): Let the query return timestamps and use
24187 gnupg_get-time to compute the "time ago" values.
24189 common: Guarantee that gnupg_get_time does not return an error.
24190 + commit 5eb2682686b32bd82096924eeabd0c5bd347adfd
24191 * common/gettime.c (gnupg_get_time): Abor if time() failed.
24192 (gnupg_get_isotime): Remove now useless check.
24193 (make_timestamp): Remove check becuase we already checked this modulo
24194 the faked time thing.
24196 wks: Add command --supported to gpg-wks-client.
24197 + commit 460568d341851ac79dd100e00e4eafcac1318148
24198 * tools/gpg-wks-client.c (aSupported): New.
24199 (opts): Add --supported.
24200 (parse_arguments): Ditto.
24201 (main): Call command_supported.
24202 (command_supported): New.
24204 2016-08-22 Werner Koch <wk@gnupg.org>
24206 wks: Install gpg-wks-client under libexec.
24207 + commit c47386a11a32c5ed3b5a31fad5c3e9a9a020ca7b
24208 * tools/Makefile.am (bin_PROGRAMS): Move gpg-wks-client to ...
24209 (libexec_PROGRAMS): ...here.
24211 common: Remove unused vars in simple-pwquery.
24212 + commit 62f3e0027724b23c0de5be6d1e66cfdeef7e7bc9
24213 * common/simple-pwquery.c (agent_send_option): Remove unused vars.
24214 (simple_query): Ditto.
24215 (agent_open): Ditto. Return RC on error.
24216 (simple_pwquery): Remove unused vars. Remove shadowing of 'p'.
24218 2016-08-18 Werner Koch <wk@gnupg.org>
24221 + commit 6bee88dd067e03e7767ceacf6a849d9ba38cc11d
24224 po: Update German translation.
24225 + commit 0a32153316855224acda268edb60b80d4e64b12f
24228 2016-08-18 Åka Sikrom <a4@hush.com>
24230 po: Update Norwegian translation.
24231 + commit ec88d7c8a9af864fad8ab5e0b9c4eb90ddcdd630
24234 2016-08-18 Ineiev <ineiev@gnu.org>
24236 po: Update Russian translation.
24237 + commit 6f6bfbf175653faa5cf560a7174e81a599247e80
24240 2016-08-18 Werner Koch <wk@gnupg.org>
24242 gpg: Add import filter "drop-sig".
24243 + commit 1b55e864421f88b8c8088639682767076abbeab0
24244 * g10/import.c (import_drop_sig): New variable.
24245 (cleanup_import_globals): Release that.
24246 (parse_and_set_import_filter): Add filter "drop-sig".
24247 (filter_getval): Implement properties for drop-sig.
24248 (apply_drop_sig_filter): New.
24249 (import_one): Apply that filter.
24251 dirmngr: Remove all system daemon features.
24252 + commit d83ba4897bf217d1045c58d1b99e52bd31c58812
24253 * dirmngr/dirmngr.h (opts): Remove fields 'system_service' and
24255 * common/homedir.c (dirmngr_sys_socket_name): Remove.
24256 (dirmngr_user_socket_name): Rename to ...
24257 (dirmngr_socket_name): this. Change call callers.
24258 * common/asshelp.c (start_new_dirmngr): Remove the system socket
24260 * tools/gpgconf.c (list_dirs): Do not print "dirmngr-sys-socket".
24261 * sm/server.c (gpgsm_server): Adjust for removed system socket feature.
24262 * dirmngr/server.c (cmd_getinfo): Ditto.
24263 (cmd_killdirmngr): Remove check for system daemon.
24264 (cmd_reloaddirmngr): Ditto.
24265 * dirmngr/dirmngr.c (USE_W32_SERVICE): Remove macro.
24266 (aService): Remove.
24267 (opts): Remove --service.
24268 (w32_service_control): Remove.
24269 (real_main, call_real_main) [W32]: Remove wrapper.
24270 (main): Remove Windows system service feature. Remove system dameon
24271 feature. Use only the "~/.gnupg/dirmngr_ldapservers.conf" file.
24272 * dirmngr/certcache.c (load_certs_from_dir): Remove warning in the
24273 system dameon case.
24274 * dirmngr/crlcache.c (DBDIR_D): Always use "~/.gnupg/crls.d".
24275 * dirmngr/ocsp.c (validate_responder_cert): Do not call
24276 validate_cert_chain which was used only in system daemon mode.
24277 * dirmngr/validate.c (validate_cert_chain): Always use the code.
24279 gpg: New option --sender.
24280 + commit de6e3217cde81df370926571e0fd65e468619803
24281 * g10/options.h (struct opt): Add field 'sender_list'.
24282 * g10/gpg.c: Include mbox-util.h.
24284 (opts): Add option "--sender".
24285 (main): Parse option.
24287 2016-08-16 Werner Koch <wk@gnupg.org>
24289 agent: Allow import of overly large keys.
24290 + commit b5d63e81d5c472647decc7687cef91fee0378eb8
24291 * agent/command.c (MAXLEN_KEYDATA): Double the size.
24293 2016-08-14 Werner Koch <wk@gnupg.org>
24295 g13: Allow the use of a g13tab label for --mount.
24296 + commit f02ceb6c6e94c6fbfaeeafe728397be38107de4d
24297 * g13/mount.c (g13_mount_container): Do not run the first access check
24298 if syshelp is required.
24300 g13: Implement --umount for dm-crypt.
24301 + commit b781113cf1391926dedf8dc943624d3bb9726318
24302 * g13/g13.c (main): Implement command --umount.
24303 * g13/mount.c (g13_umount_container): use the syshelper if needed.
24304 * g13/backend.c (be_umount_container): New.
24305 * g13/be-dmcrypt.c (be_dmcrypt_umount_container): New.
24306 * g13/call-syshelp.c (call_syshelp_run_umount): New.
24307 * g13/sh-cmd.c (cmd_umount): New.
24308 (register_commands): Register UMOUNT.
24309 * g13/sh-dmcrypt.c (sh_dmcrypt_umount_container): New.
24311 2016-08-13 Werner Koch <wk@gnupg.org>
24313 g13: Fix double free bug.
24314 + commit c9a0bccc77c93c08d6980a1718dfaf238a559eb9
24315 * g13/sh-cmd.c (cmd_mount, cmd_resume): Do not xfree TIUPLES.
24317 g13: Consider g13tab for a mount command.
24318 + commit 700920640211168ae1c97d0adef74ba8615d90bb
24319 * g13/sh-cmd.c (cmd_getkeyblob): New.
24320 (register_commands): Register it.
24321 * g13/call-syshelp.c (getkeyblob_data_cb): New.
24322 (call_syshelp_get_keyblob): New.
24323 * g13/mount.c: Include callsyshelp.h.
24324 (g13_mount_container): Ask syshelp whether the filename is managed by
24325 g13tab. Call syshelp to get the encrypted keyblob in this case.
24327 g13: Move some function around.
24328 + commit 37e932658cbd873ac96ff7e2067a97dffc2e0507
24329 * g13/keyblob.c (g13_keyblob_decrypt): Move to ...
24330 * g13/server.c: to here.
24331 * g13/suspend.c, g13/mount.c: Include server.h.
24332 * g13/Makefile.am (g13_syshelp_SOURCES): Add keyblob.c
24334 g13: New command --find-device.
24335 + commit b57f55321295846d47144bd6b39fbbcac0127421
24336 * common/status.h (STATUS_BLOCKDEV: New.
24337 * g13/call-syshelp.c: Include "call-syshelp.h".
24338 (finddevice_status_cb, call_syshelp_find_device): New.
24339 * g13/g13.c (aFindDevice): New.
24340 (opts): Add "--find-device".
24341 (main): Implement --find-device.
24342 * g13/sh-cmd.c (cmd_finddevice): New.
24343 (register_commands): Register new command.
24345 2016-08-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24347 Avoid leading ": " in the log output when there are no prefixes.
24348 + commit 3a75ff65fba24ea2d024bd8fef633ab7d8f7d520
24349 * common/logging.c (do_logv): When no prefixes have been requested,
24350 omit the ": " separator, since there is nothing on the left-hand
24353 Call log_set_prefix() with human-readable labels.
24354 + commit 61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e
24355 * agent/preset-passphrase.c, agent/protect-tool.c, dirmngr/dirmngr.c
24356 * dirmngr/t-http.c, g10/gpg.c, g10/gpgv.c, g13/g13-syshelp.c
24357 * g13/g13.c, kbx/kbxutil.c, scd/scdaemon.c, sm/gpgsm.c
24358 * tests/gpgscm/main.c, tools/gpg-check-pattern.c
24359 * tools/gpg-connect-agent.c, tools/gpgconf.c, tools/gpgtar.c
24360 * tools/symcryptrun.c: Invoke log_set_prefix() with
24361 human-readable labels.
24363 2016-08-11 Werner Koch <wk@gnupg.org>
24365 gpg: New option --input-size-hint.
24366 + commit 70b5d7c43a57a44dad60c2c700a263610748d8f4
24367 * g10/options.h: Include stdint.h.
24368 (struct opt): Add field 'input_size_hint'.
24369 * g10/gpg.c (oInputSizeHint): New.
24370 (opts): Add --input-size-hint.
24371 (main): Set opt.input_size_hint.
24372 * g10/progress.c (write_status_progress): Use the hint.
24374 common: New function string_to_u64.
24375 + commit 0698324cde3e0cef7eeb6cfd1640c5eefdf13698
24376 * common/stringhelp.c (string_to_u64): New.
24377 * dirmngr/http.c (longcounter_t): Remove.
24378 (struct cookie_s): Change content_length to uint64_t.
24379 (parse_response): Use string_to_u64.
24381 2016-08-11 Justus Winter <justus@g10code.com>
24383 common: Remove compatibility code.
24384 + commit 72fa314b71e4ce8780f59b16d32cabf5d4bd5451
24385 * common/Makefile.am: Drop deleted files.
24386 * common/w32-afunix.c: Delete file.
24387 * common/w32-afunix.h: Likewise.
24389 common: Rework the simple password query module.
24390 + commit 14479e2515439c73e385f37e8c2b3fc517b038b9
24391 * common/simple-pwquery.c (writen, readline): Drop.
24392 (agent_send_option, agent_send_all_options, agent_open): Just use
24394 (simple_pw_set_socket): Simplify.
24395 (default_inq_cb): New function.
24396 (simple_pwquery, simple_query): Just use libassuan.
24397 * agent/Makefile.am (gpg_preset_passphrase_LDADD): Add libassuan.
24398 * tools/Makefile.am (symcryptrun_LDADD): Likewise.
24400 common: Remove simple password query error codes.
24401 + commit 9e6503b7ce019aa417099ded1dda87b68c33f912
24402 * common/simple-pwquery.h: Remove mapping function. Move all
24403 definitions of status codes...
24404 * common/simple-pwquery.c: ... here, and define them to meaningful gpg
24406 * agent/preset-passphrase.c (preset_passphrase): Use error code as-is.
24407 (forget_passphrase): Likewise.
24408 * tools/symcryptrun.c (confucius_get_pass): Likewise.
24410 2016-08-10 Werner Koch <wk@gnupg.org>
24412 gpg: Print the signer's UID during verification.
24413 + commit ed5c1b0b8a4790c4fb36a3129387f7c2ef5db302
24414 * g10/parse-packet.c (parse_signature): Sanitize the value stored in
24416 * g10/mainproc.c (issuer_fpr_string): New.
24417 (check_sig_and_print): Print the signers' UID. Print the issuer
24418 fingerprint in --rfc4880bis mode.
24420 common: New function try_make_printable_string.
24421 + commit f2ea7e539c9a22081e3159dcbca84f57f30724ca
24422 * common/stringhelp.c (sanitize_buffer): Remove. Move code to ...
24423 * common/miscellaneous.c (try_make_printable_string): new.
24424 (make_printable_string): Call try_make_printable_string.
24426 2016-08-10 Justus Winter <justus@g10code.com>
24428 tests: Fix distcheck.
24429 + commit a6acf1f6b39c5a607f61f643a5d21309ba58685d
24430 * tests/openpgp/issue2417.scm: Copy configuration.
24432 2016-08-10 Werner Koch <wk@gnupg.org>
24434 gpg: Remove tofu database format "split".
24435 + commit 5b59999ce0dd1650ebe47a74a30ded6af00eeed3
24436 * g10/options.h (struct opt): Remove field tofu_db_format.
24437 * g10/gpg.h (server_control_s): Add fields tofu.batch_update_ref and
24438 tofu.batch_update_started.
24439 * g10/gpg.c (parse_tofu_db_format): Remove.
24440 (main): Make option --tofu-db-format obsolete.
24441 * g10/tofu.c: Major rework. Remove the pretty complicated and slower
24442 split format and with that all the caching. Use the dbs struct
24443 directly. Move global vars for batch update into CTRL. Change
24444 calling conventions of some function to take CTRL or DBS pointers
24445 instead of the former low-level database pointer.
24447 2016-08-10 Justus Winter <justus@g10code.com>
24449 g10: Fix opening of trust database.
24450 + commit a27410a251cd25ca96cd6743969c4db0a0fd553f
24451 * g10/tdbio.c (tdbio_set_dbname): This function explicitly checks for
24452 the file size, but handled the case of a zero-sized file incorrectly
24453 by returning success. Fix this by initializing the database in that
24455 * tests/openpgp/Makefile.am (XTESTS): Add new test.
24456 * tests/openpgp/issue2417.scm: New file.
24458 tests: Fix distcheck.
24459 + commit 194b1e979c7c547afd0dfea5b2496bdfa34b20f1
24460 * tests/openpgp/Makefile.am (EXTRA_DIST): Explicitly add setup and
24461 teardown scripts now that they no longer are included in the list of
24464 tests: Improve temporary directory handling.
24465 + commit d9240a3a4688c263632b4168ae2e04363bc91a3a
24466 * tests/gpgscm/ffi.c (ffi_init): Rename 'mkdtemp'.
24467 * tests/gpgscm/tests.scm (mkdtemp): New function that uses a sensible
24468 location and template if no arguments are given.
24469 (with-temporary-working-directory): Simplify accordingly.
24470 (make-temporary-file): Likewise.
24471 * tests/openpgp/run-tests.scm (run-tests-parallel-isolated): Likewise.
24472 (run-tests-sequential-isolated): Likewise.
24474 gpgscm: Make the name of foreign functions more unique.
24475 + commit efe973dab7f69e2b1309446b2fbcd47ce0305399
24476 * tests/gpgscm/ffi-private.h (ffi_define_function_name): Add another
24479 tests: Run each test in a clean environment.
24480 + commit e13f1ea8fff3964dc3008432f5c0f26aaa2eaa35
24481 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Drop obsolete
24482 variables, add 'srcdir', use absolute paths.
24483 (TESTS): Rename to 'XTESTS' to avoid emitting the automake test
24484 runner. Drop 'setup.scm' and 'finish.scm'.
24485 (xcheck): New target that runs 'run-tests.scm', our Scheme test suite
24486 runner. It will run each test in a clean environment, isolated from
24488 (EXTRA_DIST): Adapt accordingly.
24489 * tests/openpgp/README: Likewise.
24491 tests: Make ssh test more robust.
24492 + commit b2b21580b68f3a9069562f99675b389a0d044713
24493 * tests/openpgp/ssh.scm: Drop the 'MD5:' which was not printed by
24494 previous ssh versions.
24496 2016-08-10 NIIBE Yutaka <gniibe@fsij.org>
24498 agent: SSH support fix.
24499 + commit f14795d57f6c81709e9225dd3c5dfd3495cf1b2b
24500 * agent/command-ssh.c (ssh_handler_request_identities): Keep error
24503 2016-08-09 Werner Koch <wk@gnupg.org>
24505 agent: Fix regression in recent ssh changes.
24506 + commit e630f904993725c54ec63be00369589b7b7234d2
24507 * agent/command-ssh.c (sexp_key_construct): Lowercase the algo name.
24509 gpg: Extend the PROGRESS line to give the used unit.
24510 + commit 16feb1e0ea9b5d3966f22f4ae047335b9d1b60e1
24511 * g10/progress.c (write_status_progress): Print the units parameter.
24513 2016-08-09 Ben Kibbey <bjk@luxsci.net>
24515 Cleanup initialization of libgcrypt.
24516 + commit 49829c29e541546084950b8a153067db371d101a
24517 * common/init.c (init_common_subsystems): Initialize libgcrypt.
24518 * dirmngr/Makefile.am (dirmngr_ldap): Link with libgcrypt.
24520 2016-08-09 NIIBE Yutaka <gniibe@fsij.org>
24522 agent: SSH support improvement.
24523 + commit ebf24e3b29766595204355d82f435a3e675bfbbc
24524 * agent/command-ssh.c (ssh_handler_request_identities): Skip a key with
24525 error, not giving up to handle the request itself.
24526 * agent/cvt-openpgp.c (extract_private_key): Support "ecdsa" key.
24528 2016-08-08 Werner Koch <wk@gnupg.org>
24530 gpg: Cleanup of dek_to_passphrase function (part 2).
24531 + commit 491d6fdabb3d95905cd96d905e1f965ce8ff07e1
24532 * g10/passphrase.c (passphrase_get): Remove arg KEYID. Change arg
24534 (passphrase_to_dek): Remove args KEYID and PUBKEY_ALGO. Split arg
24535 MODE into CREATE and NOCACHE. Change all callers and adjust stubs.
24536 (passphrase_clear_cache): Remove args KEYID and ALGO. They are not
24537 used. Change caller.
24539 gpg: Cleanup of dek_to_passphrase function (part 1).
24540 + commit 5b614973fe2d4b5ef402a3057c31c3ef3042a483
24541 * g10/passphrase.c (passphrase_to_dek_ext): Remove args CUSTDESC and
24542 CUSTPROMPT. Merge into the passphrase_to_dek wrapper.
24543 (passphrase_get): Remove args CUSTOM_DESCRIPTION and CUSTOM_PROMPT.
24545 2016-08-08 NIIBE Yutaka <gniibe@fsij.org>
24547 agent: More clean up of SSH support.
24548 + commit 591a8373a5d9567db9b1a1a48205e8a206c7b669
24549 * common/util.h (get_pk_algo_from_key): New.
24550 * common/sexputil.c (get_pk_algo_from_key): The implementation.
24551 * agent/gpg-agent.c: Remove include of openpgpdefs.h.
24552 * agent/command-ssh.c (struct ssh_key_type_spec): Use integer ALGO.
24553 (ssh_key_types): Update with GCRY_PK_*.
24554 (make_cstring, sexp_extract_identifier): Remove.
24555 (sexp_key_construct): Use gcry_pk_algo_name to get ALGO string.
24556 (ssh_key_to_blob): Use cadr to get value list.
24557 (ssh_key_type_lookup): Lookup with integer ALGO.
24558 (ssh_receive_key): Follow the change of ssh_key_type_lookup.
24559 (ssh_send_key_public): Likewise. Use get_pk_algo_from_key to get ALGO.
24561 tests: Add openpgp/gpgv-forged-keyring.scm.
24562 + commit 7dcad0d3503ac0d75e09efb16246dd78518986fc
24563 * tests/openpgp/gpgv-forged-keyring.scm: New.
24564 * tests/openpgp/forged-keyring.gpg: New.
24565 * tests/openpgp/Makefile.am (TESTS): Add gpgv-forged-keyring.scm.
24566 * tests/openpgp/defs.scm (tools): Add GPGV.
24569 2016-08-06 Werner Koch <wk@gnupg.org>
24571 agent: Fix long standing regression tracking the connection count.
24572 + commit 40d16029ed8b334c371fa7f24ac762d47302826e
24573 * agent/gpg-agent.c (get_agent_active_connection_count): New.
24574 (do_start_connection_thread, start_connection_thread_ssh): Bump
24575 ACTIVE_CONNECTIONS up and down.
24576 * agent/command.c (cmd_getinfo): Add subcommand "connections".
24578 2016-08-06 NIIBE Yutaka <gniibe@fsij.org>
24580 agent: Clean up SSH support.
24581 + commit 894789c3299dc47a8c1ccaaa7070382f0fae0262
24582 * agent/command-ssh.c (file_to_buffer): Remove.
24583 (ssh_handler_request_identities): Use agent_public_key_from_file.
24585 2016-08-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24587 gpg: Avoid publishing the GnuPG version by default.
24588 + commit c9387e41db7520d176edd3d6613b85875bdeb32c
24589 * g10/gpg.c (main): initialize opt.emit_version to 0
24590 * doc/gpg.texi: document different default for --emit-version
24592 2016-08-04 Werner Koch <wk@gnupg.org>
24594 gpg: Make sure that keygrips are printed for each subkey.
24595 + commit c8cc804f56bfefba46641f2c7078fcd67b494bae
24596 * g10/keylist.c (list_keyblock_colon): Print an emprty grip in case of
24599 gpg: Always print the fingerprint in colons mode.
24600 + commit 54a1ed20e203dcafeacbe21eb147efa08255dbf5
24601 * g10/keylist.c (list_keyblock_colon): Remove arg FPR. Always print
24602 fingerprint records. For secret keys always print keygrip records.
24604 tests: Use gpgconf to set the ssh socket envvar.
24605 + commit 0c2a745a2bc21e8f439930f7c0e5d1521c2fd44c
24606 * tests/openpgp/ssh.scm ("SSH_AUTH_SOCK"): Use gpgconf.
24608 gpgconf: Add limited support for -0.
24609 + commit db6f3eb926619dfe6ed2a9be197c51f9a1b6198c
24610 * tools/gpgconf.h (opt): Add field 'null'.
24611 * tools/gpgconf.c: Add option --null/-0.
24612 (list_dirs): Use it here.
24614 2016-08-04 Justus Winter <justus@g10code.com>
24616 tests: Update list of tests in Scheme test runner.
24617 + commit 05cb30052cdf1d308ff7da901cfa5a809cd49479
24618 * tests/openpgp/run-tests.scm: Add missing tests.
24620 tests: Fix path to fake-pinentry.
24621 + commit 3566544d04a4b81e5dd8a2883304673b2cc2f108
24622 * tests/openpgp/defs.scm: Correctly compute the path to fake-pinentry.
24624 2016-08-04 NIIBE Yutaka <gniibe@fsij.org>
24626 po: Update Japanese translation.
24627 + commit 89234f7f3643bad2daddc94569f1d651ec5c835e
24630 po: update Japanese translation.
24631 + commit 573e0f36190346e0263bea3ae12a389f4f598d55
24634 g10: Fix checking key for signature validation.
24635 + commit 6f284e6ed63f514b15fe610f490ffcefc87a2164
24636 * g10/sig-check.c (check_signature2): Not only subkey, but also primary
24637 key should have flags.valid=1.
24639 2016-08-03 Justus Winter <justus@g10code.com>
24641 kbx: Add missing header file.
24642 + commit e3358b246d9380008a4ba7c8f2fe03659901adaf
24643 * kbx/keybox-update.c: Add missing header file.
24645 2016-08-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24647 More cleanup of "allow to".
24648 + commit dc107b78509807db375d3a382eb3376cd2183357
24649 * README, agent/command.c, agent/keyformat.txt, common/i18n.c,
24650 common/iobuf.c, common/keyserver.h, dirmngr/cdblib.c,
24651 dirmngr/ldap-wrapper.c, doc/DETAILS, doc/TRANSLATE,
24652 doc/announce-2.1.txt, doc/gpg.texi, doc/gpgsm.texi,
24653 doc/scdaemon.texi, doc/tools.texi, doc/whats-new-in-2.1.txt,
24654 g10/export.c, g10/getkey.c, g10/import.c, g10/keyedit.c, m4/ksba.m4,
24655 m4/libgcrypt.m4, m4/ntbtls.m4, po/ca.po, po/cs.po, po/da.po,
24656 po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po,
24657 po/fr.po, po/gl.po, po/hu.po, po/id.po, po/it.po, po/ja.po,
24658 po/nb.po, po/pl.po, po/pt.po, po/ro.po, po/ru.po, po/sk.po,
24659 po/sv.po, po/tr.po, po/uk.po, po/zh_CN.po, po/zh_TW.po,
24660 scd/app-p15.c, scd/ccid-driver.c, scd/command.c, sm/gpgsm.c,
24661 sm/sign.c, tools/gpgconf-comp.c, tools/gpgtar.h: replace "Allow to"
24664 In standard English, the normal construction is "${XXX} allows ${YYY}
24665 to" -- that is, the subject (${XXX}) of the sentence is allowing the
24666 object (${YYY}) to do something. When the object is missing, the
24667 phrasing sounds awkward, even if the object is implied by context.
24668 There's almost always a better construction that isn't as awkward.
24670 These changes should make the language a bit clearer.
24672 dirmngr: Emit correct spelling of "superseded".
24673 + commit 436b28c23194fa77919967338d5a61a82d242153
24674 * dirmngr/crlcache.c (list_one_crl_entry): Spell superseded correctly.
24675 * dirmngr/ocsp.c (ocsp_invalid): Likewise.
24677 This might break some tools which parse the existing output and expect
24678 misspellings, but i'm not sure there are many such tools, and we
24679 should use standardized orthography going forward.
24681 Fix spelling and grammar.
24682 + commit cd45cf782b91ff0f6b023913963e5258ffcbf464
24683 * agent/learncard.c: s/coccured/occurred/
24684 * doc/dirmngr.texi: s/ommitted/omitted/, s/orginally/originally/,
24685 s/reponses/responses/i
24686 * doc/gpg-agent.texi, doc/dirmngr.texi, doc/gpg.texi: Fix "allows
24687 to" to more conventional english usage.
24688 * doc/tools.texi, g10/gpgcommpose.c, tests/openpgp/armor.scm,
24689 tests/openpgp/armor.test: s/occured/occurred/
24690 * tools/gpgsplit.c: s/calcualting/calculating/
24691 * sm/server.c: s/formated/formatted/
24693 2016-08-03 Werner Koch <wk@gnupg.org>
24695 gpg,gpgsm: Block signals during keyring/keybox update.
24696 + commit 48a2c93a1886589d1a0e2a4a2173e0e81311200b
24697 * kbx/keybox-util.c (keybox_file_rename): Add arg BLOCK_SIGNALS.
24698 * kbx/keybox-update.c (rename_tmp_file): Block all signals when doing
24700 * g10/keyring.c (rename_tmp_file): Block all signals during the double
24703 common: New file utilproto.c.
24704 + commit 3a2421c94015432caa49e166bc5bf5c4f80ab7c7
24705 * common/util.h: Factor prototypes from signal.c out to ...
24706 * common/utilproto.h: new.
24707 * common/Makefile.am (common_sources): Add new file.
24709 2016-08-01 Justus Winter <justus@g10code.com>
24711 gpgsm: Fix machine-readable key listing.
24712 + commit 40365b28c3fdf087fd58401f5a6f42f9d7d29d20
24713 * sm/keylist.c (list_cert_colon): Drop superfluous colon.
24715 tests: Distribute standalone test runner.
24716 + commit c971ff0823d9a649b32fd9f169a12abc3095246e
24717 * tests/openpgp/Makefile.am (EXTRA_DIST): Add missing file
24720 2016-07-28 Justus Winter <justus@g10code.com>
24722 tests: Fix distcheck.
24723 + commit 9e799b0e4f131126b80a5d3272c36d52b8ba1720
24724 * tests/openpgp/Makefile.am (sample_msgs): New variable.
24725 (EXTRA_DIST): Also ship the sample msgs.
24727 2016-07-27 Fredrik Fornwall <fredrik@fornwall.net>
24729 build: Fix check for Android.
24730 + commit 583a464c62ce8f7d70f5fdab2c7ea73ec3348d69
24731 * configure.ac: Match other Android targets as well.
24733 2016-07-26 Justus Winter <justus@g10code.com>
24735 common: Fix iobuf_peek corner case.
24736 + commit b2572b0c386fd12ac6581fcce72f8d48cbfd27c7
24737 Previously, iobuf_peek on a file smaller than 'buflen' would hang.
24739 * common/iobuf.c (underflow): Generalize by adding a target parameter.
24740 (iobuf_peek): Use this to prevent looping here.
24741 * tests/openpgp/Makefile.am (TESTS): Add new test.
24742 * tests/openpgp/setup.scm (dearmor): Move function...
24743 * tests/openpgp/defs.scm (dearmor): ... here.
24744 * tests/openpgp/issue2419.scm: New file.
24745 * tests/openpgp/samplemsgs/issue2419.asc: Likewise.
24747 gpgscm: Do not shadow common function name in catch macro.
24748 + commit 046338b8494c036a5e717130d3eadce0291126fc
24749 * tests/gpgscm/init.scm (catch): Do not shadow 'exit'.
24751 tests: Fix distcheck.
24752 + commit 66c0dab3c722c2766828515120775b106286334e
24753 * tests/openpgp/Makefile.am (samplekeys): Add missing key.
24755 gpgscm: Make the verbose setting more useful.
24756 + commit f17aecbcd98103fcd2ece537be96930f354de656
24757 * tests/gpgscm/ffi.c (do_get_verbose): New function.
24758 (do_set_verbose): Likewise.
24759 (ffi_init): Turn *verbose* into a function, add *set-verbose!*.
24760 * tests/gpgscm/tests.scm (call): Adapt accordingly.
24761 (call-with-io): Dump output if *verbose* is high.
24762 (pipe-do): Adapt accordingly.
24763 * tests/openpgp/defs.scm: Set verbosity according to environment.
24764 * tests/openpgp/run-tests.scm (test): Adapt accordingly.
24766 common: Avoid excessive stack use.
24767 + commit b3610badf691178bbbf0831af9aa6b6658c1948a
24768 * common/exectool.c (copy_buffer_shred): Make passing NULL a nop.
24769 (gnupg_exec_tool_stream): Allocate copy buffers from the heap.
24771 common: Rework resource cleanup when handling errors.
24772 + commit 35132a8b119dbc3393ceb0d0874917905d1a6354
24773 * common/exectool.c (gnupg_exec_tool_stream): Rework error handling.
24775 common: Add unit test for exectool.
24776 + commit fe40e9c53dc0710ff73e72d05ba8040874465b55
24777 * common/Makefile.am: Build new test.
24778 * common/t-exectool.c: New file.
24780 2016-07-25 Justus Winter <justus@g10code.com>
24782 g10: Fix key import statistics.
24783 + commit 4ba11251aff578394000bf480f47160f0879c763
24784 'transfer_secret_keys' collects statistics on a subkey-basis, while
24785 the other code does not. This leads to inflated numbers when
24786 importing secret keys. E.g. 'count' is incremented by the main
24787 parsing loop in 'import', and again in 'transfer_secret_keys', leading
24788 to a total of 3 if one key with two secret subkeys is imported.
24790 * g10/import.c (import_secret_one): Adjust to the fact that
24791 'transfer_secret_keys' collects subkey statistics.
24792 * tests/openpgp/Makefile.am (TESTS): Add new test.
24793 * tests/openpgp/issue2346.scm: New file.
24794 * tests/openpgp/samplekeys/issue2346.gpg: Likewise.
24796 2016-07-22 Justus Winter <justus@g10code.com>
24798 gpgscm: Make function more general.
24799 + commit 9ee23a715d5dad6bf568a2deb1c55bf15601cf51
24800 * tests/gpgscm/tests.scm (in-srcdir): Accept more path fragments.
24802 g10: Properly ignore legacy keys in the keyring cache.
24803 + commit d9839c9d303a01dc1032a6de311e034fe14e81da
24804 * g10/keyring.c (keyring_rebuild_cache): Properly ignore legacy keys
24805 in the keyring cache.
24806 * tests/migrations/Makefile.am (TESTS): Add new test.
24807 * tests/migrations/common.scm (GPG-no-batch): New variable.
24808 (run-test): New function.
24809 * tests/migrations/issue2276.scm: New file.
24810 * tests/migrations/issue2276.tar.asc: Likewise.
24812 2016-07-21 Justus Winter <justus@g10code.com>
24814 g10: Fix error handling.
24815 + commit 45bb9a2a46e11bc13c6b39e7b4748b7de199018e
24816 * g10/tofu.c (show_statistics): Fix error handling, 0 is a valid
24819 g10: Drop superfluous begin transaction.
24820 + commit 8a6f8e1e397a2d676b211f2dbc6df4a80b67442d
24821 * g10/tofu.c (record_binding): We only need a transaction for the
24824 gpgscm: Make assert macro more accurate.
24825 + commit 699c6c9f4b44441ab3db7f942df5b81f4cd88b06
24826 * tests/gpgscm/lib.scm (assert): Print the representation of the
24829 gpgscm: Make error message more useful.
24830 + commit 7207b2fe45bcf884e029366a2677a570234bed2e
24831 * tests/gpgscm/scheme.c (opexe_0): Include names of missing function
24832 parameters in the error message.
24835 + commit 1af2fd44f0a66fd0d94c224319db0b128d42a288
24836 * g10/tofu.c (tofu_closedbs): Fix freeing database handles up to the
24837 cache limit. Previously, this would crash if db_cache_count == count.
24839 2016-07-20 NIIBE Yutaka <gniibe@fsij.org>
24841 scd: Fix card removal/reset on multiple contexts.
24842 + commit 1598a4476466822e7e9c757ac471089d3db4b545
24843 * scd/app.c (application_notify_card_reset): Add message for debug.
24844 *scd/command.c (update_card_removed): Call release_application and set
24846 (struct server_local_s): Remove app_ctx_marked_for_release.
24847 (do_reset): Don't mark release but call release_application here.
24848 (open_card): Remove app_ctx_marked_for_release handling.
24849 (update_reader_status_file): Don't set SLOT here, so that it can be
24850 released the APP by application_notify_card_reset in
24851 update_card_removed.
24853 2016-07-19 Justus Winter <justus@g10code.com>
24855 agent: Add known keys to sshcontrol.
24856 + commit 270f7f7b8b235cc93516566702e2a1d256605cca
24857 * agent/command-ssh.c (ssh_identity_register): Add a key to sshcontrol
24858 even if it is already in the private key store.
24859 * tests/openpgp/ssh.scm: Test this.
24861 tests: Add test for ssh support.
24862 + commit d7a405de8325aa945ab791dcd3bc48272af33b86
24863 * tests/gpgscm/tests.scm (path-expand): New function.
24864 * tests/openpgp/Makefile.am (TESTS): Add new test.
24865 (sample_keys): Add new keys.
24866 (CLEANFILES): Clean ssh socket and control file.
24867 * tests/openpgp/fake-pinentry.c (main): Add a default passphrase.
24868 * tests/openpgp/gpg-agent.conf.tmpl: Enable ssh support.
24869 * tests/openpgp/samplekeys/ssh-dsa.key: New file.
24870 * tests/openpgp/samplekeys/ssh-ecdsa.key: Likewise.
24871 * tests/openpgp/samplekeys/ssh-ed25519.key: Likewise.
24872 * tests/openpgp/samplekeys/ssh-rsa.key: Likewise.
24873 * tests/openpgp/ssh.scm: Likewise.
24875 2016-07-19 NIIBE Yutaka <gniibe@fsij.org>
24877 scd: Fix race conditions for release_application.
24878 + commit 0c1fd4e9884ed7c1edd1819762b9e8a77f606ed3
24879 * scd/command.c (do_reset, cmd_restart): Reset app_ctx before calling
24880 release_application.
24882 2016-07-18 Justus Winter <justus@g10code.com>
24884 agent: Fix passphrase cache lookups.
24885 + commit f474249366e8e143c8e6eb7f7b1a74056e46fa1f
24886 CACHE_MODE_ANY is supposed to match any cache mode except
24887 CACHE_MODE_IGNORE, but the code used '==' to compare cache modes.
24889 * agent/cache.c (cache_mode_equal): New function.
24890 (agent_set_cache): Use the new function to compare cache modes.
24891 (agent_get_cache): Likewise.
24892 * tests/openpgp/Makefile.am (TESTS): Add new test.
24893 * tests/openpgp/issue2015.scm: New file.
24895 2016-07-15 Justus Winter <justus@g10code.com>
24897 build: Always build gpgtar.
24898 + commit 7f4dd24b880323a5b772719dafae829c288303a8
24899 We use gpgtar to unpack test data, hence we always build it. If the
24900 user opts out, we simply don't install it.
24902 * configure.ac: Add comment.
24903 * tests/migrations/Makefile.am (required_pgms): Make sure gpgtar is
24905 * tools/Makefile.am: Always build gpgtar, but do not install it if the
24906 user used '--disable-gpgtar'.
24908 2016-07-15 Werner Koch <wk@gnupg.org>
24910 wks: Publish as binary file.
24911 + commit b7b37716b9d2cd1b71b5f7f0e4fb2c1a43eee90a
24912 * tools/gpg-wks-server.c (copy_key_as_binary): New.
24913 (check_and_publish): Use new function instead of rename.
24915 2016-07-15 Justus Winter <justus@g10code.com>
24917 gpgscm: Fix linking.
24918 + commit c49c43d7e4229fd9f1bc55e17fa32fdc334dbef6
24919 * tests/gpgscm/Makefile.am: Add -lintl.
24921 g10: Fix building without trust models.
24922 + commit d21efa398874be4a15e8283c5fc382fb90f562fd
24923 * g10/pkclist.c (write_trust_status): Fall back to the previous
24926 tests: Check for gpgtar.
24927 + commit 12a887050a560c4cacaf95e4cdb0cc42d8b87aa1
24928 * tests/migrations/extended-pkf.scm: Skip test if gpgtar is not built.
24929 * tests/migrations/from-classic.scm: Likewise.
24930 * tests/openpgp/gpgtar.scm: Fix check for gpgtar.
24932 2016-07-14 Werner Koch <wk@gnupg.org>
24935 + commit 09c448202ffb4c26d7ec2028351a78e2d3680396
24938 po: Update the German translation.
24939 + commit 23c2491f94b94fa231bde8187eb958432555eff1
24942 2016-07-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
24944 dirmngr: fix handling of HTTP redirections.
24945 + commit 60428c24fb29cb633c9392abb777bc4da88dbfba
24946 * dirmngr/ks-engine-http.c (ks_http_fetch): Reinitialize HTTP session
24947 when following a HTTP redirection.
24949 2016-07-14 Werner Koch <wk@gnupg.org>
24951 gpg: Remove options --print-dane-records and --print-pka-records.
24952 + commit 1e9bc66a9a60de668890452d504eea3c3c614f7e
24953 * g10/gpg.c (main): Remove options but print a dedicated warning.
24954 * g10/options.h (struct opt): Remove fields 'print_dane_records' and
24955 'print_pka_records'.
24956 * g10/keylist.c (list_keyblock): Do not call list_keyblock_pka.
24957 (list_keyblock_pka): Remove.
24959 2016-07-14 Åka Sikrom <a4@hush.com>
24961 po: Complete update of the Norwegian translation.
24962 + commit d6d7e4d218a1e2e2a88bc893b00967b032d194f8
24965 2016-07-14 Yuri Chornoivan <yurchor@ukr.net>
24967 Update Ukrainian translation.
24968 + commit 9427288ebb32141c196996315f93535fd7744901
24971 2016-07-14 Ineiev <ineiev@gnu.org>
24973 Update Russian translation.
24974 + commit 39c88870359bc75e9f72e08a7466fcff01bdc655
24977 2016-07-14 Werner Koch <wk@gnupg.org>
24979 gpg: Fix regression since 2.1 in --search-key with a fingerprint.
24980 + commit 0342369ce001b9dba04dc79e7a4eb66fbda278e7
24981 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Prefix fingerprint with 0x.
24983 gpgscm: Use kludge to avoid improper use of ffi_schemify_name.
24984 + commit fb14bf0a95e361b0991067e3aea2902d54be811d
24985 * tests/gpgscm/ffi.c (ffi_schemify_name): Use xstrdup instead of
24988 build: Require latest released libraries.
24989 + commit c98995efefbdebea8f53d54ba2df4217dfd31ad4
24990 * agent/protect.c (OCB_MODE_SUPPORTED): Remove macro.
24991 (do_encryption): Always support OCB.
24992 (do_decryption): Ditto.
24993 (agent_unprotect): Ditto.
24994 * dirmngr/server.c (is_tor_running): Unconditionally build this.
24996 2016-07-13 Werner Koch <wk@gnupg.org>
24998 build: Update config.{guess,sub} to {2016-05-15,2016-06-20}.
24999 + commit 66b634f27f10e4c0cb21c3f201998497d0bb24ca
25000 * build-aux/config.guess: Update.
25001 * build-aux/config.sub: Update.
25003 gpg: Fix regression due to the new --mimemode options.
25004 + commit 3b8ed7650d2d63b01ec80ecf9e493b80e3ac7ef8
25005 * g10/gpg.c (opts): Re-add oTextmodeShort.
25007 2016-07-13 Daiki Ueno <ueno@gnu.org>
25009 gpg: Make --try-all-secrets work for hidden recipients.
25010 + commit 82b90eee100cf1c9680517059b2d35e295dd992a
25011 * g10/getkey.c (enum_secret_keys): Really enumerate all secret
25012 keys if --try-all-secrets is specified.
25014 2016-07-13 Werner Koch <wk@gnupg.org>
25016 gpg: Do not print a the short keyid if the high word is zero.
25017 + commit 7b96a8d736934e65bb2adbc17059f84dfeaf95fb
25018 * g10/keyid.c (format_keyid): Always returh long keyid ifor KF_LONG.
25020 gpg: New option --mimemode.
25021 + commit e148c3caa90fbadba32bdbfea9513392e3aea598
25022 * g10/gpg.c (oMimemode): New.
25023 (opts): Add --mimemode.
25024 (main): Use --mimemode only in rfc4880bis compliance mode.
25025 * g10/options.h (struct opt): Add field "mimemode".
25026 * g10/build-packet.c (do_plaintext): Allow for mode 'm'.
25027 * g10/encrypt.c (encrypt_simple, encrypt_crypt): Use 'm' if requested.
25028 * g10/plaintext.c (handle_plaintext): Handle 'm' mode.
25029 * g10/sign.c (write_plaintext_packet): Handle 'm' mode.
25030 (sign_file, sign_symencrypt_file): Use 'm' if requested.
25032 wks: Use correct key for the confirmation.
25033 + commit 95810929f75bd718dbdf2cd1c0181137a45e2456
25034 * tools/gpg-wks-client.c (send_confirmation_response): Actually
25035 encrypt to the recipient.
25037 wks: New server command --list-domains.
25038 + commit 44ecc33b4a7147d9c112a72f55a42b65cef4fe67
25039 * tools/gpg-wks-server.c (aListDomains): New.
25040 (opts): Add --list-domains.
25041 (parse_arguments): Implement.
25042 (main): Ditto. Use only one final diagnostic message.
25043 (command_list_domains): New.
25044 (check_and_publish): Remove directory creation.
25045 (get_domain_list): New.
25046 (expire_pending_confirmations): Rewrite using a list of directories.
25047 (command_cron): Get domain list and pass to
25048 expire_pending_confirmations.
25050 2016-07-13 NIIBE Yutaka <gniibe@fsij.org>
25052 agent: Fix envvars for UPDATESTARTUPTTY.
25053 + commit 7be218177701af316db75057c99ca674d53cf585
25054 agent/command.c (cmd_updatestartuptty): Use session_env_list_stdenvnames
25057 2016-07-12 Werner Koch <wk@gnupg.org>
25060 + commit acb27915f8646a875b6bb507ff46cd1bc330c02b
25061 * g13/g13tuple.c (create_tupledesc): Init refcount to 1.
25063 wks: Add --cron command to gpg-wks-server.
25064 + commit 38eb5f81d223616e3ee34bdfb41c387ce4e7df22
25065 * tools/gpg-wks-server.c (PENDING_TTL): New.
25066 (expire_one_domain, expire_pending_confirmations): New.
25067 (command_cron): New.
25068 (main): Implement --cron.
25070 wks: Try to send an encrypted confirmation back.
25071 + commit 5de41c4ecef32add89044b8a550a47cce8c6d61e
25072 * tools/gpg-wks-client.c (encrypt_response_status_cb): New.
25073 (encrypt_response): New.
25074 (send_confirmation_response): Encrypt the response.
25076 * tools/gpg-wks-server.c (send_confirmation_request): Use freeing of
25079 wks: Also create DANE record.
25080 + commit d3837e0435921bfa5587a50738f5924a5fdf976a
25081 * tools/gpg-wks-server.c (copy_key_as_dane): New.
25082 (check_and_publish): Also publish as DANE record.
25084 gpg: Extend import-option import-export to print PKA or DANE.
25085 + commit 9b075575cdc5851b019aed5ca5d5e18416beec8e
25086 * g10/export.c (do_export_stream): Move PKA and DANE printing helper
25088 (print_pka_or_dane_records): this fucntion.
25089 (write_keyblock_to_output): Add arg OPTIOSN and call
25090 print_pka_or_dane_records if requested.
25092 gpg: Move a function from import.c to export.c.
25093 + commit 0f5b105d96780a29cc58893285e6c38482e0cc2d
25094 * g10/import.c (write_keyblock_to_output): Move to ...
25095 * g10/export.c (write_keyblock_to_output): here. Add arg WITH_ARMOR.
25096 Also make sure never to export ring trust packets.
25098 2016-07-11 Werner Koch <wk@gnupg.org>
25100 gpgconf: Enhance --list-dirs.
25101 + commit 7732b332886792b2bbf47ecf7430e953f1c55a2c
25102 * tools/gpgconf.c (main) <aListDir>: Factor code out to ...
25103 (list_dirs): new. Rewrite to use a table. Allow selection of a
25104 items. Add "agent-ssh-socket".
25106 2016-07-09 NIIBE Yutaka <gniibe@fsij.org>
25108 gpgv: Tweak default options for extra security.
25109 + commit e32c575e0f3704e7563048eea6d26844bdfc494b
25110 * g10/gpgv.c (main): Set opt.no_sig _cache, so that it doesn't depend on
25111 cached status. Similarly, set opt.flags.require_cross_cert for backsig
25112 validation for subkey signature.
25114 2016-07-07 Werner Koch <wk@gnupg.org>
25116 gpg: Add export options "export-pka" and "export-dane".
25117 + commit cbe467e794f3be81b8da2bcb1732b5514b13b71d
25118 * g10/options.h (EXPORT_PKA_FORMAT): New.
25119 * g10/keylist.c (list_keyblock_pka): Do not use DANE flag.
25120 * g10/export.c: Include zb32.h.
25121 (parse_export_options): Add options "export-pka" and "export-dane".
25122 (do_export): Do not armor if either of these option is set.
25123 (print_pka_or_dane_records): New.
25124 (do_export_stream): Implement new options.
25126 gpg: Split a too large export function.
25127 + commit b05878f32aa507aa9087d7c992b630840b5ad71c
25128 * g10/export.c (do_export_stream): Factor some code out to ...
25129 (do_export_one_keyblock): new.
25131 2016-07-07 Justus Winter <justus@g10code.com>
25133 gpgscm: Capture output of spawned processes.
25134 + commit 2f61aa0ff11b194d20307751ab686c87cd47dd56
25135 * tests/gpgscm/tests.scm (call-check): Capture stdout and stderr, and
25136 return stdout if the child exited successfully, or include stderr in
25138 * tests/openpgp/version.scm: Demonstrate this by checking the stdout.
25140 2016-07-06 Werner Koch <wk@gnupg.org>
25142 doc: Escape file names in generated macros.
25143 + commit 511c2522b95333226a5e45e538fed29dd44c9be3
25144 * doc/mkdefsinc.c (print_filename): New.
25145 (main): Use it here.
25147 wks: Let the server take the encrytion key from the file.
25148 + commit e5896da666551da5322b2ae5458d429b9e60241e
25149 * tools/gpg-wks-server.c (encrypt_stream): Change arg 'fingerprint' to
25151 (store_key_as_pending): Add arg 'r_fname' to make of the keyfile.
25152 (send_confirmation_request): Add arg 'keyfile'.
25153 (process_new_key): Pass on the name of the keyfile.
25155 gpg: New options --recipient-file and --hidden-recipient-file.
25156 + commit a479804c86bc24bfab101f39464db3ecfbaedf6d
25157 * g10/gpg.c (oRecipientFile, oHiddenRecipientFile): New.
25158 (opts): Add options --recipient-file and --hidden-recipient-file.
25159 (main): Implement them. Also remove duplicate code from similar
25161 * g10/keydb.h (PK_LIST_FROM_FILE): New.
25162 (PK_LIST_SHIFT): Bump up.
25163 * g10/pkclist.c (expand_group): Take care of PK_LIST_FROM_FILE.
25164 (find_and_check_key): Add and implement arg FROM_FILE.
25165 (build_pk_list): Pass new value for new arg.
25166 * g10/getkey.c (get_pubkey_fromfile): New.
25167 * g10/gpgv.c (read_key_from_file): New stub.
25168 * g10/test-stubs.c (read_key_from_file): New stub.
25169 * g10/server.c (cmd_recipient): Add flag --file.
25170 * g10/import.c (read_key_from_file): New.
25172 * tests/openpgp/defs.scm (key-file1): New.
25174 * tests/openpgp/setup.scm: Add their private keys and import the
25176 * tests/openpgp/encrypt.scm: Add new test.
25178 gpg: New option --no-keyring.
25179 + commit 073be51a866cb5600479c504a44ae5ac94a449a2
25180 * g10/gpg.c (oNoKeyring): New.
25181 (opts): Add "--no-keyring".
25182 (main): Do not register any keyring if the option is used.
25184 gpg: Document use of node flags in import.c and remove unused args.
25185 + commit fdfde91595109e51a5b8fafd292244ad41dfb83d
25186 * g10/import.c (NODE_GOOD_SELFSIG): New. Use instead of 1.
25187 (NODE_BAD_SELFSIG): New. Use instead of 2.
25188 (NODE_DELETION_MARK): New. Use instead of 4.
25189 (NODE_FLAG_A): New. Use to mark new nodes in merge_blocks.
25190 (chk_self_sigs): Remove unused args FNAME and PK.
25191 (import_one): Adjust call. Simplify error return because
25192 chk_self_sigs does not return an error code.
25193 (append_uid, append_key, merge_sigs, merge_keysigs): Remove unsued
25194 args FNAME and KEYID.
25195 (merge_blocks, import_one, import_secret_one)
25196 (import_revoke_cert): Remove unused arg FNAME.
25198 gpg: Get rid of an unused arg in a function in getkey.c.
25199 + commit 7e0c48eb6f18a80142ca2a0f76fe8d270a4e5b33
25200 * g10/getkey.c (pk_from_block): Remove unused arg CTX. Change all
25203 gpg: Change calling convention for a function in getkey.c.
25204 + commit 9385dfeb9dd6d83608a10c7896c341f585a25a2b
25205 * g10/getkey.c (merge_selfsigs): Remove arg CTX. Add args REQ_USAGE
25207 (finish_lookup): Adjust caller. Set LOOKUP_NOT_SELECTED here...
25208 (lookup): and not here.
25210 2016-07-05 Werner Koch <wk@gnupg.org>
25212 gpg: Fix possible out-of-bounds read in is_armored.
25213 + commit 5d1a9c4dc823b418db6c4686da55ee3abdf023b0
25214 * g10/armor.c (check_input): Call is_armored only if LEN >= 2.
25215 (unarmor_pump): Use a 2 byte buffer for is_armored.
25217 2016-07-05 Justus Winter <justus@g10code.com>
25219 tests: Honor environment variable 'TMP'.
25220 + commit 8270580a5a70874beeffcdd16221937db4bcdc93
25221 This fixes problems with long socket names, e.g. when doing distcheck.
25223 * tests/gpgscm/tests.scm (path-join): New function.
25224 (with-temporary-working-directory): Honor 'TMP'.
25225 (make-temporary-file): Likewise.
25226 * tests/migrations/Makefile.am (TMP): Default to '/tmp'.
25227 (TESTS_ENVIRONMENT): Set 'TMP'.
25228 * tests/openpgp/Makefile.am (TMP): Default to '/tmp'.
25229 (TESTS_ENVIRONMENT): Set 'TMP'.
25231 gpgscm: Improve robustness and compatibility.
25232 + commit f26fe4f73e8430d93c03d95a8a24fdabd078bb20
25233 * tests/gpgscm/ffi.c (do_getenv): Avoid gccism.
25234 (do_mkdtemp): Handle errors.
25236 tests/migrations: Fix distcheck.
25237 + commit b70d08827ddb56423ad610b4ebaaaf9cc763512f
25238 * tests/migrations/Makefile.am (TESTS): Rename test.
25239 (TEST_FILES): Update list.
25240 (EXTRA_DIST): Add common.scm.
25241 * tests/migrations/common.scm (GPGTAR): New variable.
25242 (dearmor): Rename and untar archive.
25243 * tests/migrations/extended-private-key-format.scm: Rename.
25245 * tests/migrations/extended-pkf.tar.asc: New file.
25246 * tests/migrations/extended-private-key-format.gpghome: Delete.
25247 * tests/migrations/from-classic.gpghome: Likewise.
25248 * tests/migrations/from-classic.scm (setup): Update.
25249 * tests/migrations/from-classic.tar.asc: New file.
25251 tools/gpgtar: Provide --create and --extract.
25252 + commit 0b8a3358798b7028be872a923da2e275da67d592
25253 * tools/gpgtar.c (cmd_and_opt_values): New values.
25254 (opts): New actions.
25255 (parse_arguments): Handle new actions.
25256 * tests/openpgp/gpgtar.scm: Test new interface.
25258 g10: Fix out-of-bounds read.
25259 + commit a6b87981f7ddef42b25703723162c647e312b125
25260 * g10/armor.c (use_armor_filter): We need two bytes for 'is_armored'.
25262 2016-07-04 Werner Koch <wk@gnupg.org>
25264 wks: Add command --read to gpg-wks-client.
25265 + commit 8c8ae043b8d65cb79e0e99c5bdbdcbf34714bd0c
25266 * tools/gpg-wks-client.c (aRead): New.
25267 (opts): Add command "--read".
25268 (main): Implement that.
25270 tests: Add a gettime test for sizeof (time_t) > 4.
25271 + commit 27d158ead4a2b9c52269ef28d050a49c786c7d13
25272 * common/t-gettime.c (test_isotime2epoch): Add 4 more tests.
25274 2016-07-03 Werner Koch <wk@gnupg.org>
25276 gpg: Avoid spurious failures on keyblocks with no or only deleted nodes.
25277 + commit 9177a897732b3cebf3f15c97c1f613f71b6318fe
25278 * g10/import.c (write_keyblock_to_output): Clear ERR on success.
25280 wks: Let the client only export the requested UID.
25281 + commit 1bfed0bbc5ec9d60d4fb3a0f5c865923ed3563e7
25282 * tools/gpg-wks-client.c (get_key): Export only the requested uid.
25284 tools: Call sendmail directly from the wks tools.
25285 + commit 7705f310f1406fe49b45e16c371b09863313f24f
25286 * tools/send-mail.c, tools/send-mail.h: New.
25287 * tools/wks-util.c: New.
25288 * tools/Makefile.am (gpg_wks_server_SOURCES): Add them.
25289 (gpg_wks_client_SOURCES): Ditto.
25290 * tools/gpg-wks.h (opt): Add fields use_sendmail and output.
25291 * tools/gpg-wks-client.c: Add options --send and --output. Rename
25292 command --send to --create.
25293 (command_send, send_confirmation_response): Output via wks_send_mime.
25294 * tools/gpg-wks-server.c: Add options --send and --output.
25295 (send_confirmation_request): Output via wks_send_mime.
25296 (check_and_publish): Add hack for name-value bug.
25298 2016-07-02 Werner Koch <wk@gnupg.org>
25300 tools: Add options to gpg-wks-server.
25301 + commit c619035d9cd0c9cef62facf5365321289051f9a0
25302 * tools/gpg-wks.h (opt): Add 'default_from' and 'extra_headers'.
25303 * tools/gpg-wks-server.c (oFrom, oHeader): New.
25304 (parse_arguments): Set them and check args.
25305 (get_submission_address): New.
25306 (send_confirmation_request): Set correct From address. Add extra
25308 (process_new_key): Return an error code.
25310 tools: Extend mime-maker.c:mime_maker_add_header.
25311 + commit 0e36a1d1fb79c2b75c081616eed00075190b38aa
25312 * tools/mime-maker.c (add_header): Check header name and allow
25314 (mime_maker_add_header): Add mode for a syntax check.
25316 doc: Describe filter expressions.
25317 + commit 442efa9b3ff211c692b6967a944b3d9371ad1bb7
25318 * doc/gpg.texi: Remove some superfluous .E.
25319 (FILTER EXPRESSIONS): New.
25321 yat2m: Fix table formatting.
25322 + commit aae3cdb61555db4efb26f522030c8303a731d4a9
25323 * doc/yat2m.c (proc_texi_cmd): Use .TQ for @itemx. Print a .P at the
25324 end of a level 0 table.
25326 2016-07-01 Werner Koch <wk@gnupg.org>
25328 gpg: New option --export-filter.
25329 + commit 7bfc86c938d11c14ea78b196c82ceba2a2f5317d
25330 * g10/gpg.c (oExportFilter): New.
25331 (opts): Add --export-filter.
25332 (main): Handle option.
25333 * g10/export.c: Include recsel.h, init.h, and mbox-util.h.
25334 (export_keep_uid): New global var.
25335 (cleanup_export_globals): New.
25336 (parse_and_set_export_filter): New.
25337 (filter_getval): New.
25338 (apply_keep_uid_filter): New.
25339 (do_export_stream): Apply filter if set.
25341 gpg: New option --import-filter.
25342 + commit 5137bf73ccc98a72c2eeac148e4d4b5d58f0a854
25343 * g10/gpg.c (oImportFilter): New.
25344 (opts): Add --import-filter.
25345 (main): Handle option.
25346 * g10/import.c: Include recsel.h, init.h, and mbox-util.h.
25347 (import_keep_uid): New global var.
25348 (cleanup_import_globals): New.
25349 (parse_and_set_import_filter): New.
25350 (filter_getval): New.
25351 (apply_keep_uid_filter): New.
25352 (import_one): Apply filter if set.
25354 gpg: Allow to cache the mbox in a user id struct.
25355 + commit f015552374d69e28292a12f2b91ab34d65c9b457
25356 * g10/packet.h (PKT_user_id): Add field 'mbox'.
25357 * g10/free-packet.c (free_user_id): Free that.
25359 gpg: Make sure a user ID packet has always a terminating Nul in memory.
25360 + commit d8bce478be3ae9e401841a77d189ef3c81ccb757
25361 * g10/keygen.c (write_uid): Avoid overflow.
25363 common: Add function to select records etc.
25364 + commit 681c6ef757a73fc1a63a552186e038db179494aa
25365 * common/recsel.c, common/recsel.h: New.
25366 * common/t-recsel.c: New.
25368 common: Smart up register_mem_cleanup_func.
25369 + commit 6446a6b3dfd3b2e68b4285870f902ed1f86b0866
25370 * common/init.c (register_mem_cleanup_func): Avoid double registration.
25372 2016-07-01 Justus Winter <justus@g10code.com>
25374 common: Annotate semi-static allocation.
25375 + commit 49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87
25376 * common/argparse.c (optfile_parse): Allow string arguments to leak.
25378 g10: Fix memory leak.
25379 + commit 78aeb236fe4ff3a6d51b3095148e7086f2a6e9a8
25380 * g10/keyserver.c (parse_keyserver_uri): Free URI.
25382 tools/gpgtar: Annotate semi-static allocation.
25383 + commit cff63da930b6b3f0253668911e0931713b2b584a
25384 * tools/gpgtar.c (shell_parse_argv): Annotate argument vector as
25387 g10: Fix memory leak.
25388 + commit c454922ffa71929c810c6ff048d902498575302f
25389 * g10/import.c (transfer_secret_keys): Release curve from the previous
25392 g10: Fix build with disabled kbnode cache.
25393 + commit ff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614
25394 * g10/kbnode.c (release_unused_nodes): Fix build with disabled kbnode
25397 g10: Fix memory leak.
25398 + commit 44d4c695722d96b3bbef16f2843f62413b9670cd
25399 * g10/trustdb.c (tdb_get_validity_core): Fix kbnode leak.
25401 g10: Fix memory leak.
25402 + commit 5fafd18d474da7b763f5b82c73b6ca4288e136d7
25403 * g10/keygen.c (keygen_set_std_prefs): Fix memory leak.
25405 Fix trivial memory leaks in tests.
25406 + commit 6bfbc368f90b274192d3751274816091675f5109
25407 * dirmngr/t-ldap-parse-uri.c (check_ldap_escape_filter): Free result.
25408 * g10/t-stutter.c (main): Free file name.
25410 2016-06-30 Justus Winter <justus@g10code.com>
25412 tools: Fix trivial memory leak.
25413 + commit 8f39185d7bfa0bc749f9ccf4a041d2da4eba24ff
25414 * tools/gpg-connect-agent.c (main): Fix trivial memory leak.
25416 g10: Fix memory leak.
25417 + commit 401db0eebbcd28dca8f4059706bfbd18d8cc7528
25418 * g10/export.c (do_export_stream): Free secret parameters.
25420 g10: Fix memory leak.
25421 + commit eb4cdbefb05795b77a8a72189eff246b84442caf
25422 * g10/keygen.c (read_parameter_file): Free 'line'.
25424 g10: Fix memory leak.
25425 + commit 1de362af9094e0a1a0be60f77fbea7c5190a4dcc
25426 * g10/sign.c (mk_notation_policy_etc): Free 'mbox'.
25428 common: Fix memory leak.
25429 + commit 6b9a89e4c7d6f19de62e0a908a8d80c98bf99819
25430 * g10/textfilter.c (copy_clearsig_text): Free buffer.
25432 common: Fix memory leak.
25433 + commit d2d19063d3adf29340aeb39f14e1b1e9aacf41e7
25434 * common/iobuf.c (iobuf_set_partial_body_length_mode): Only create
25435 context if necessary.
25437 common: Fix memory leak.
25438 + commit 9037c23979866e6e085b3e32f973bcba590a2635
25439 * common/simple-pwquery.c (agent_open): Free socket path.
25441 g10: Fix keybox-related memory leaks.
25442 + commit 29beea6462cca32d3278b0f7f9364ff4342327b8
25443 * g10/keydb.c (keydb_release): Clear keyblock cache.
25444 (keydb_get_keyblock): Revert previous change.
25445 * kbx/keybox-blob.c (create_blob_finish): Free previous buffer, free
25446 fixups after applying them.
25447 (_keybox_release_blob): Free buffer. Currently, the buffer has been
25448 extracted before the keybox is released, but this is the right thing
25451 g10: Fix memory leak.
25452 + commit 5869f518cbd8b41b4c9880fc593216b9efeea430
25453 * g10/compress.c (release_context): Free buffers.
25455 g10: Fix memory leak.
25456 + commit 84f262102be19334534cccc66ed7eceea2714527
25457 * g10/sign.c (write_plaintext_packet): Free packet.
25459 g10: Fix memory leak.
25460 + commit abae8a9dc8a00cf46291ccb40644b3a7aa477307
25461 * g10/mainproc.c (release_list): Do not exit early if list is NULL,
25462 there are other resources that must be released.
25464 gpgscm: Fix reallocating string ports.
25465 + commit 5003caa8fdc80afd5748835c06621014f83e6ec4
25466 * tests/gpgscm/scheme.c (realloc_port_string): Use memcpy because
25467 Scheme strings may contain 0s.
25469 gpgscm: Free memory backing string ports.
25470 + commit 599ad21104e622acbd1230d90d6a23abf9145499
25471 * tests/gpgscm/scheme.c (finalize_cell): Free memory backing string
25474 gpgscm: Use the allocator from libgcrypt.
25475 + commit d4ede89981c769b0626ab2b37615da1d12a3b078
25476 * tests/gpgscm/main.c (main): Use the allocator from libgcrypt.
25479 + commit dbcb342eaf1738798a5378d9ecd83c7946140d54
25480 * g10/keyedit.c (keyedit_quick_revuid): Fix call to
25481 'check_trustdb_stale'.
25483 2016-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
25485 g10: Implement gpg --quick-revuid.
25486 + commit 55d112eeb0743e90be46d15dbae67368ee7d4b50
25487 * g10/revoke.c (get_default_uid_revocation_reason): New.
25488 * g10/keyedit.c (menu_revuid): Break out creation of uid revocation
25489 into new function core_revuid.
25490 * g10/keyedit.c (keyedit_quick_revuid): New. Selects key and
25491 uid, invokes core_revuid.
25492 * g10/gpg.c (main): Handle --quick-revuid argument.
25493 * doc/gpg.texi: Document --quick-revuid.
25495 2016-06-29 Werner Koch <wk@gnupg.org>
25497 tools: Add gpg-wks-client and gpg-wks-server.
25498 + commit 5d6c83deaa11327366b0038928200b9f9f85b426
25499 * configure.ac: Add option --enable-wks-tools
25500 * tools/gpg-wks-client.c: New.
25501 * tools/gpg-wks-server.c: New.
25502 * tools/gpg-wks.h: new.
25503 * tools/wks-receive.c: New.
25504 * tools/call-dirmngr.c, tools/call-dirmngr.h: New.
25506 build: Improve GNUPG_BUILD_PROGRAM macro.
25507 + commit d8ee0d79a702c92a257884bab86183d32d16ff0e
25508 * acinclude.m4 (GNUPG_BUILD_PROGRAM): Allow for dash in options.
25510 tools: Add modules for MIME parsing and creating.
25511 + commit c334fa8df0e3901857e1a277d3277a873ae4af74
25512 * tools/mime-maker.c: New.
25513 * tools/mime-maker.h: New.
25514 * tools/mime-parser.c: New.
25515 * tools/mime-parser.h: New.
25517 2016-06-28 Justus Winter <justus@g10code.com>
25519 gpgscm: Fix memory leaks.
25520 + commit 9c67958c4737b34c60ef2076f57234eec155eb36
25521 * tests/gpgscm/ffi-private.h (ffi_schemify_name): Fix prototype.
25522 (ffi_define_function_name): Free schemified name.
25523 (ffi_define_function): Likewise.
25524 (ffi_define_constant): Likewise.
25525 (ffi_define_variable_pointer): Likewise.
25526 * tests/gpgscm/ffi.c (do_wait_processes): Free arrays.
25527 (ffi_schemify_name): Fix type.
25528 * tests/gpgscm/main.c (main): Free 'sc'.
25530 gpgscm: Free file names.
25531 + commit 6cb2be91a7cc8a9b8ec42f3956adbb19347318e3
25532 * tests/gpgscm/scheme.c (scheme_load_named_file): Free file name.
25534 gpgscm: Fix buffer overflow.
25535 + commit 56cebdc30c10eaec179a6911e308074264d876ae
25536 * tests/gpgscm/scheme.c (store_string): Avoid writing past allocated
25539 g10: Fix memory leaks.
25540 + commit c57501cc5fa84dbaf560c0fc18853c9540e918af
25541 * g10/keydb.c (keydb_get_keyblock): Free 'sigstatus' and 'iobuf'.
25542 * g10/t-keydb-get-keyblock.c: Fix trivial memory leaks.
25543 * g10/t-keydb.c: Likewise.
25545 common: Fix memory leaks.
25546 + commit c14ef10fc347d966a1efcb5c2000cbf3aaafa905
25547 * common/ccparray.c (ccparray_put): Free old array.
25548 * common/stringhelp.c (do_make_filename): Free 'home'.
25549 * common/t-convert.c: Fix trivial memory leaks.
25550 * common/t-iobuf.c: Likewise.
25551 * common/t-mbox-util.c: Likewise.
25552 * common/t-name-value.c: Likewise.
25553 * common/t-stringhelp.c: Likewise.
25554 * common/t-strlist.c: Likewise.
25556 2016-06-28 Werner Koch <wk@gnupg.org>
25558 dirmngr: add option to retrieve extra WKS info.
25559 + commit b1e8e0d4b945e077966fb98175191aed056bd957
25560 * dirmngr/server.c (cmd_wkd_get): Add option --submission-address.
25562 gpg: Add hack to --quick-gen-key to create Curve25519 keys.
25563 + commit 20ca075d9605e27e25a780bcc465c7371400ca61
25564 * g10/keygen.c (quick_generate_keypair): Add special algo string
25567 common: New function rfctimestamp.
25568 + commit 1ddf5b846fc058171af5f2784dad866b73eb0205
25569 * common/gettime.c (rfctimestamp): New.
25571 common: Add missing header file for clarity.
25572 + commit 781e614e3b4586da27e54caca39b6a7ed42fc7c7
25573 * common/zb32.c: Include zb32.h.
25575 2016-06-28 Justus Winter <justus@g10code.com>
25577 tools/gpgtar: Fix handling of '-'.
25578 + commit 4819f687c48c7972c39ae29c7af1e891a4d57360
25579 * tools/gpgtar-extract.c (gpgtar_extract): Use stdin if file is '-'.
25580 * tools/gpgtar-list.c (gpgtar_list): Likewise.
25582 common: Close input stream.
25583 + commit d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa
25584 * common/exechelp-posix.c (gnupg_spawn_process): Also close the input
25585 stream in the child.
25587 common: Fix copying data from the spawned child.
25588 + commit 8f79c31b4d465eeaf81c8046c35bb8c34512dd8d
25589 Fixes intermittent gpgtar failures.
25591 * common/exectool.c (copy_buffer_do_copy): Initialize 'nwritten'.
25592 (gnupg_exec_tool_stream): Loop until all data is copied.
25594 2016-06-28 NIIBE Yutaka <gniibe@fsij.org>
25596 g10: Fix --list-packets.
25597 + commit 52f65281f9743c42a48bf5a3354c9ab0ecdb681a
25598 * g10/gpg.c (main): Call set_packet_list_mode after assignment of
25600 * g10/mainproc.c (do_proc_packets): Don't stop processing with
25601 --list-packets as the comment says.
25602 * g10/options.h (list_packets): Fix the comment.
25603 * g10/parse-packet.c: Fix the condition for opt.list_packets.
25605 2016-06-25 Werner Koch <wk@gnupg.org>
25607 build: Add aclocal macro from pkg-config.
25608 + commit b6872353bae778d11730f5d0afd2192750777647
25611 yat2m: Silence lint warnings and fix a printf format bug.
25612 + commit 22b9bea1c3d0e944aa539a87d79e47d92ca5309f
25613 * doc/yat2m.c (ATTR_PRINTF, ATTR_NR_PRINTF, ATTR_MALLOC): New.
25614 (die, err, inf, xmalloc, xcalloc): New prototypes with attributes.
25615 (get_section_buffer): Take care of !N_SECTIONS.
25616 (proc_texi_cmd): Cast precision format arg.
25617 (proc_texi_buffer): Do not set IN_CMD when not used afterwards.
25619 2016-06-24 Werner Koch <wk@gnupg.org>
25621 gpg: New import option "import-export".
25622 + commit 7bca3be65e510eda40572327b87922834ebe07eb
25623 * g10/import.c (parse_import_options): Add option "import-export".
25624 (write_keyblock_to_output): New.
25625 (import_one): Implement option.
25627 2016-06-23 Werner Koch <wk@gnupg.org>
25629 gpg: New import option "import-show".
25630 + commit 1e5959ec059ba41f4de1e2f953300bc040efc16f
25631 * g10/options.h (IMPORT_SHOW): New.
25632 * g10/import.c (parse_import_options): Add "import-show".
25633 (import_one): Implement that.
25635 gpg: Do not print the validity after key generation.
25636 + commit 09c6f7135150efbbeb459d4ae0189a81e9d180f8
25637 * g10/keylist.c (struct keylist_context): Add field NO_VALIDITY.
25638 (list_keyblock_print): Take care of it.
25639 (list_keyblock_direct): Add arg NO_VALIDITY.
25640 * g10/keygen.c (do_generate_keypair): Merge keyblock and print w/o
25643 common: Fix possible small memory leak in b64dec.c.
25644 + commit c229ba4d8b9b16052ee0b9573bed7905be602cdf
25645 * common/b64dec.c (b64dec_finish): Always release TITLE.
25647 2016-06-23 Justus Winter <justus@g10code.com>
25649 tests/openpgp: Fake the system time for the tofu test.
25650 + commit e584d6468a2e72cd01e55f46104f9f96b56c0b66
25651 The keys in the tofu test are set to expire on 2016-09-17. Fake the
25652 system time for this test.
25654 This commit includes changes to the old test as well, for those who
25655 need to backport it.
25657 * tests/openpgp/gpg-agent.conf.tmpl: Drop trailing newlines.
25658 * tests/openpgp/tofu.scm: Fake system time.
25659 * tests/openpgp/tofu.test: Likewise.
25661 gpgscm: Handle exceptions in the transformation monad.
25662 + commit 145910afc077e7a5df6cc8b10e180dfa6ce38cc3
25663 * tests/gpgscm/tests.scm (pipe:do): Raise errors.
25664 (tr:spawn): Catch and return errors.
25665 (tr:call-with-content): Likewise.
25666 (tr:{open,write-to,pipe-do,assert-identity,assert-weak-identity}):
25669 tests/openpgp: Improve tests.
25670 + commit 1e822654c1dcfc23a9ef689f4e18c0ebba18baca
25671 * tests/openpgp/multisig.scm: Simplify test.
25672 * tests/openpgp/setup.scm (dearmor): Use pipe.
25674 gpgscm: Add types for special objects.
25675 + commit 332fa86982dc811640ac8643332d8375816e5b81
25676 * tests/gpgscm/scheme.c (enum scheme_types): Add types for boolean,
25677 nil, eof, and the sink object.
25678 (type_to_string): Handle new types.
25679 (scheme_init_custom_alloc): Give special objects a type.
25681 gpgscm: Fix Scheme initialization.
25682 + commit e6e56adf208f194ecafda29bb1c1c06655348432
25683 This potentially causes a crash if the garbage collector marks an eof
25686 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize
25689 2016-06-23 Werner Koch <wk@gnupg.org>
25691 common: Add dedicated private key functions to name-value.c.
25692 + commit 3ead21da80da4570e77036cc05303914c9b1f364
25693 * common/name-value.c (struct name_value_container): Add field
25694 'private_key_mode'.
25695 (my_error): New. Use instead of gpg_error.
25696 (nvc_new_private_key): New.
25697 (nve_release): Add arg 'private_key_mode'.
25698 (nvc_release): Call nve_release with private_key_mode flag.
25699 (nvc_delete): Ditto.
25700 (_nvc_add): Do no special case "Key:" in non-private_key_mode.
25701 (nvc_get_private_key): Return error in non-private_key_mode.
25702 (nvc_set_private_key): Ditto.
25703 (nvc_parse): Factor all code out to ...
25704 (do_nvc_parse): new. Add arg 'for_private_key'.
25705 (nvc_parse_private_key): New.
25706 * agent/findkey.c (write_extended_private_key): Replace nvc_parse by
25707 nvc_parse_private_key.
25708 (read_key_file): Ditto.
25710 * common/t-name-value.c (private_key_mode): New variable.
25711 (my_nvc_new): New. Replace all callers.
25712 (test_key_extraction): Take mode in account.
25713 (run_tests): Ditto.
25714 (run_modification_tests): Ditto.
25716 (main): Add option --parse and rename --parse to --parse-key.
25718 common: Rename external symbols in name-value.c.
25719 + commit d74d23d860c1e5039bd595c31c846782c5cb8025
25720 * common/name-value.c, common/name-value.h: Rename symbol prefixes
25721 from "pkc_" to "nvc_" and from "pke_" to "nve_". Change all callers.
25723 common: Rename private-keys.c to name-value.c.
25724 + commit b841a883a2a66807aa427e65d49067584bedfbe2
25725 * common/private-keys.c: Rename to name-value.c.
25726 * common/private-keys.h: Rename to name-value.h. Chage all users.
25727 * common/t-private-keys.c: Rename to t-name-value.c.
25728 * common/Makefile.am: Adjust accordingly.
25730 common: Add PGP armor decoding to b64dec.
25731 + commit 3694579bc4eef27ed53e1845bf03be38c299ce76
25732 * common/b64dec.c (decoder_states): Add new states.
25733 (b64dec_proc): Handle PGP armored format.
25735 2016-06-23 NIIBE Yutaka <gniibe@fsij.org>
25737 g10: Fix regression of card-edit/fetch.
25738 + commit 6f5ff1cfe449cf1f4cb7287bc57570eb794216b2
25739 * g10/card-util.c (fetch_url): Call keyserver_fetch instead of
25740 keyserver_import_fprint.
25742 2016-06-21 Justus Winter <justus@g10code.com>
25744 tests/migrations: Convert to Scheme and re-enable.
25745 + commit f548383d9af912bf93217068cc8aa99a9a6eda93
25746 * configure.ac: Re-enable.
25747 * tests/Makefile.am: Likewise.
25748 * tests/migrations/Makefile.am (TESTS): Use Scheme tests.
25749 * tests/migrations/common.scm: New file.
25750 * tests/migrations/extended-private-key-format.scm: Likewise.
25751 * tests/migrations/from-classic.scm: Likewise.
25752 * tests/migrations/extended-private-key-format.test: Drop file.
25753 * tests/migrations/from-classic.test: Drop file.
25755 gpgscm: Add more file handling functions.
25756 + commit c5e0ca5a59ebd91b67944ca125cc8cd73a9d243e
25757 * tests/gpgscm/ffi.c (do_glob): New function.
25758 (ffi_init): Define new function.
25759 * tests/gpgscm/tests.scm (basename-suffix): New function.x
25761 tests/openpgp: Port the remaining tests to Scheme.
25762 + commit 0340fcdac864109e3dd6edee759efc96e4d3f84e
25763 * tests/openpgp/Makefile.am (TESTS): Add new tests.
25764 * tests/openpgp/defs.scm (gpg-with-colons): New function.
25765 (get-config): Use new function.
25766 * tests/openpgp/export.scm: New file.
25767 * tests/openpgp/tofu.scm: Likewise.
25769 gpgscm: Improve test framework.
25770 + commit 65081c31e7536d8fb5effcc2c9aeeffc120c9a69
25771 * tests/gpgscm/lib.scm (echo): Move...
25772 * tests/gpgscm/tests.scm (echo): ... here.
25773 (info, error, skip): And use echo here.
25774 (file-exists?): New function.
25775 (tr:spawn): Check that source exists and if the sink has been created.
25776 (tr:call-with-content): Hand in optional arguments.
25778 gpgscm: Use native string searching functions.
25779 + commit 5fbbc4b334a73150e709a4802cac99abd8ada61d
25780 * tests/gpgscm/ffi-private.h: Handle character arguments.
25781 * tests/gpgscm/ffi.c (do_string_index): New function.
25782 (do_string_rindex): Likewise.
25783 (do_string_contains): Likewise.
25784 (ffi_init): Define new functions.
25785 * tests/gpgscm/ffi.scm (ffi-define): New macro.
25786 * tests/gpgscm/lib.scm (string-index): Use native function,
25787 demonstrate behavior.
25788 (string-rindex): Likewise.
25789 (string-contains?): Likewise.
25790 Demonstrate behavior of various other functions.
25791 (read-all): Rework so that it can handle large files.
25793 gpgscm: Improve error reporting.
25794 + commit d99949fc8cf541018267964629992d55c97ca9ab
25795 * tests/gpgscm/scheme.c (type_to_string): New function.
25796 (Eval_Cycle): Include actual type in error message.
25798 gpgscm: Make memory allocation failures fatal.
25799 + commit 616582071a2c76c4fb529d4da549aa95ee5d78d6
25800 * tests/gpgscm/scheme.c (Eval_Cycle): Exit if we run out of memory.
25802 2016-06-21 Werner Koch <wk@gnupg.org>
25804 sm: Do not install cacert and other root certificates.
25805 + commit c19b2061274cd50838e62a2acbdc7e7d24888e7e
25806 * doc/Makefile.am (dist_pkgdata_DATA): Move qualified.txt and
25807 com-certs.pem to ...
25808 (EXTRA_DIST): here.
25810 2016-06-20 Werner Koch <wk@gnupg.org>
25812 gpg: Add experimental support for an issuer fpr.
25813 + commit 955baf04364721457cd99aad21942523cd50498c
25814 * common/openpgpdefs.h (SIGSUBPKT_ISSUER_FPR): New.
25815 * g10/build-packet.c (build_sig_subpkt_from_sig): Add arg PKSK and
25816 insert the issuer fpr if needed.
25817 * g10/sign.c (write_signature_packets): Pass signing key.
25818 (make_keysig_packet): Ditto.
25819 (update_keysig_packet): Ditto.
25820 * g10/parse-packet.c (dump_sig_subpkt): Print issuer fpr.
25821 (parse_one_sig_subpkt): Detect issuer fpr.
25822 (can_handle_critical): Add issuer fpr.
25823 * g10/mainproc.c (check_sig_and_print): Try to get key via fingerprint.
25824 * g10/gpgv.c (keyserver_import_fprint): New stub.
25825 * g10/test-stubs.c (keyserver_import_fprint): New stub.
25827 gpg: New option --rfc4880bis.
25828 + commit ee2d9061d7abc36b857165a8395203a97380baa2
25829 * g10/options.h (struct opt): Add field flags.rfc4880bis.
25830 * g10/gpg.c (oRFC4880bis): new.
25831 (opts): add --rfc4880bis.
25832 (main): Implement that and print a warning.
25834 2016-06-19 Niibe Yutaka <gniibe@fsij.org>
25836 scd: Reset nonnull_nad to zero for VENDOR_GEMPC.
25837 + commit 971064f8b7ad676326b2a468f688037a303717df
25838 * (parse_ccid_descriptor): nonnull_nad = 0 for all GEMPC device.
25840 2016-06-17 Werner Koch <wk@gnupg.org>
25842 tests: Make make distcheck work again.
25843 + commit ce1689ea0720552ac900d7b2c4139caf24452018
25844 * Makefile.am (tests): Remove test code which would led to doubling
25845 calls to for e.g. "make distclean".
25846 * tests/Makefile.am: Typo fixes.
25847 * tests/gpgscm/Makefile.am (EXTRA_DIST): Fix name of License file.
25849 (check): Replace by check-local because check is a standard automake
25851 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Replace gmake0sim by
25852 automake generated macro.
25853 (EXTRA_DIST): Add defs.scm
25855 gpgscm: Silence compiler warnings.
25856 + commit dfe5282e5859409849a17d68b2b3a046370f65bd
25857 * tests/gpgscm/scheme.c (mk_integer): Rename arg NUM to N.
25858 (fill_vector): Ditto.
25859 (mark): Rename var NUM to N.
25860 (set_slot_in_env): Mark SC as unused.
25861 (is_any): Mark P as unused.
25863 Add license notices for TinySCHEME.
25864 + commit dc1db12d2c4f9f12bc3f7de37f76293b316c3f35
25865 * tests/gpgscm/COPYING: Rename to ...
25866 * tests/gpgscm/LICENSE.TinySCHEME: this.
25867 * AUTHORS: Add a note about TinySCHEME.
25868 * build-aux/speedo/w32/pkg-copyright.txt: Add TinySCHEME notice.
25870 2016-06-17 Justus Winter <justus@g10code.com>
25872 tests/openpgp: Reimplement tests in Scheme.
25873 + commit 9609cb20e4caee739b9fc4fd36797029d2970041
25874 * Makefile.am: Build the test infrastructure on Windows.
25875 * tests/openpgp/Makefile.am (required_pgms): Add gpgscm.
25876 (TESTS_ENVIRONMENT): Make sure gpgscm and the libraries are found.
25877 (TESTS): Replace tests with the new Scheme implementations.
25878 * tests/openpgp/4gb-packet.scm: New file.
25879 * tests/openpgp/README: Likewise.
25880 * tests/openpgp/armdetach.scm: Likewise.
25881 * tests/openpgp/armdetachm.scm: Likewise.
25882 * tests/openpgp/armencrypt.scm: Likewise.
25883 * tests/openpgp/armencryptp.scm: Likewise.
25884 * tests/openpgp/armor.scm: Likewise.
25885 * tests/openpgp/armsignencrypt.scm: Likewise.
25886 * tests/openpgp/armsigs.scm: Likewise.
25887 * tests/openpgp/clearsig.scm: Likewise.
25888 * tests/openpgp/conventional-mdc.scm: Likewise.
25889 * tests/openpgp/conventional.scm: Likewise.
25890 * tests/openpgp/decrypt-dsa.scm: Likewise.
25891 * tests/openpgp/decrypt.scm: Likewise.
25892 * tests/openpgp/default-key.scm: Likewise.
25893 * tests/openpgp/defs.scm: Likewise.
25894 * tests/openpgp/detach.scm: Likewise.
25895 * tests/openpgp/detachm.scm: Likewise.
25896 * tests/openpgp/ecc.scm: Likewise.
25897 * tests/openpgp/encrypt-dsa.scm: Likewise.
25898 * tests/openpgp/encrypt.scm: Likewise.
25899 * tests/openpgp/encryptp.scm: Likewise.
25900 * tests/openpgp/finish.scm: Likewise.
25901 * tests/openpgp/genkey1024.scm: Likewise.
25902 * tests/openpgp/gpgtar.scm: Likewise.
25903 * tests/openpgp/import.scm: Likewise.
25904 * tests/openpgp/mds.scm: Likewise.
25905 * tests/openpgp/multisig.scm: Likewise.
25906 * tests/openpgp/run-tests.scm: Likewise.
25907 * tests/openpgp/seat.scm: Likewise.
25908 * tests/openpgp/setup.scm: Likewise.
25909 * tests/openpgp/signencrypt-dsa.scm: Likewise.
25910 * tests/openpgp/signencrypt.scm: Likewise.
25911 * tests/openpgp/sigs-dsa.scm: Likewise.
25912 * tests/openpgp/sigs.scm: Likewise.
25913 * tests/openpgp/use-exact-key.scm: Likewise.
25914 * tests/openpgp/verify.scm: Likewise.
25915 * tests/openpgp/version.scm: Likewise.
25917 tests/gpgscm: Add a TinySCHEME-based test driver.
25918 + commit d2ce3f9eee34e380536049c0c9d26ed66273f094
25919 * configure.ac: Add new component.
25920 * tests/Makefile.am: Likewise.
25921 * tests/gpgscm/Makefile.am: New file.
25922 * tests/gpgscm/ffi-private.h: Likewise.
25923 * tests/gpgscm/ffi.c: Likewise.
25924 * tests/gpgscm/ffi.h: Likewise.
25925 * tests/gpgscm/ffi.scm: Likewise.
25926 * tests/gpgscm/lib.scm: Likewise.
25927 * tests/gpgscm/main.c: Likewise.
25928 * tests/gpgscm/private.h: Likewise.
25929 * tests/gpgscm/repl.scm: Likewise.
25930 * tests/gpgscm/scheme-config.h: Likewise.
25931 * tests/gpgscm/t-child.c: Likewise.
25932 * tests/gpgscm/t-child.scm: Likewise.
25933 * tests/gpgscm/tests.scm: Likewise.
25935 tests/gpgscm: Foreign objects support for TinySCHEME.
25936 + commit 56c36f2932fe2baf8e46efdea4315cf33f3c0338
25937 * tests/gpgscm/scheme-private.h (struct cell): Add 'foreign_object'.
25938 (is_foreign_object): New prototype.
25939 (get_foreign_object_{vtable,data}): Likewise.
25940 * tests/gpgscm/scheme.c (enum scheme_types): New type.
25941 (is_foreign_object): New function.
25942 (get_foreign_object_{vtable,data}): Likewise.
25943 (mk_foreign_object): Likewise.
25944 (finalize_cell): Free foreign objects.
25945 (atom2str): Pretty-print foreign objects.
25946 (vtbl): Add new functions.
25947 * tests/gpgscm/scheme.h (struct foreign_object_vtable): New type.
25948 (mk_foreign_object): New prototype.
25949 (struct scheme_interface): Add new functions.
25951 Patch from Thomas Munro,
25952 https://sourceforge.net/p/tinyscheme/patches/13/
25954 tests/gpgscm: Dynamically allocate string buffer.
25955 + commit 8e5ad9aabdd57457f76078924d33acb94b75a877
25956 * tests/gpgscm/scheme-config.h (strbuff{,_size}): Make buffer dynamic.
25957 * tests/gpgscm/scheme.c (expand_strbuff): New function.
25958 (putcharacter): Adapt length test.
25959 (readstrexp): Expand buffer if necessary.
25960 (scheme_init_custom_alloc): Initialize buffer.
25961 (scheme_deinit): Free buffer.
25963 Patch from Thomas Munro,
25964 https://sourceforge.net/p/tinyscheme/patches/11/
25966 tests/gpgscm: Make exception value available.
25967 + commit 3b100da9ada9171d873a796eaf3351d4fceed394
25968 * tests/gpgscm/init.scm (throw): Hand exception value to the handler.
25969 (catch): And bind it to *error*.
25971 tests/gpgscm: Add package macro.
25972 + commit 2907381f4a7b422823b2304ebe550acbb2f66480
25973 * tests/gpgscm/init.scm: Add package macro from manual.
25975 tests/gpgscm: Expose function to open streams as Scheme ports.
25976 + commit 55275b8e2b43a3420d85a1a931e02febaa1113e7
25977 * tests/gpgscm/scheme.c (vtbl): Add 'port_from_file' to the vtable.
25978 * tests/gpgscm/scheme.h (struct scheme_interface): New field
25979 'mk_port_from_file'.
25981 tests/gpgscm: Nicer error message.
25982 + commit 13bba1357478815a85f5c0db3607ebb6cd574f56
25983 * tests/gpgscm/scheme.c (opexe_0): Include the value that we tried to
25984 evaluate as function-like in the error message.
25986 tests/gpgscm: Fix error hook.
25987 + commit e02c1ccae13e4eb55afef8de4f29022c709404eb
25988 * tests/gpgscm/init.scm (*error-hook*): Fix error hook so that the
25989 whole error message is displayed.
25991 tests/gpgscm: Handle unhandled enumeration values.
25992 + commit 133f25703a47e9bbc28c4532934f405ecdeb2de0
25993 * tests/gpgscm/scheme.c (opexe_{3,4}): Handle unhandled enumeration
25994 values in the opcode dispatching code.
25996 tests/gpgscm: Verbatim import of latest TinySCHEME.
25997 + commit cb989504cdd4f0ff902d31af871dc3ee0d9419ac
25998 Revision 110 from svn://svn.code.sf.net/p/tinyscheme/code/trunk
26000 * tests/gpgscm/COPYING: New file.
26001 * tests/gpgscm/Manual.txt: Likewise.
26002 * tests/gpgscm/init.scm: Likewise.
26003 * tests/gpgscm/opdefines.h: Likewise.
26004 * tests/gpgscm/scheme-private.h: Likewise.
26005 * tests/gpgscm/scheme.c: Likewise.
26006 * tests/gpgscm/scheme.h: Likewise.
26008 2016-06-17 Werner Koch <wk@gnupg.org>
26010 scd: Make option --homedir work.
26011 + commit 4e41745b3ea3bb8ffc50af6bafeb1de9c928812f
26012 * scd/scdaemon.c (opts): Add --homedir.
26014 2016-06-16 Werner Koch <wk@gnupg.org>
26017 + commit b3df4e2ac6aa9b4154e923f71b4221533043e5ac
26020 2016-06-16 Yuri Chornoivan <yurchor@ukr.net>
26022 po: Update Ukrainian translation.
26023 + commit d4ce1b04431cf02ebc1bdc7150ad587d599f2a95
26026 2016-06-16 Ineiev <ineiev@gnu.org>
26028 po: Update Russian translation.
26029 + commit 2273e4f999325cdc9d275507cd07c7e95d62a377
26032 2016-06-16 Werner Koch <wk@gnupg.org>
26034 po: Update German translation.
26035 + commit 69f1b0b041c251abb66f000db173a602693bb18f
26038 Add missing files so that make distcheck works again,
26039 + commit 4d7d292cd5b616b209dfd4302a1deffe11b7be0e
26040 * tests/openpgp/Makefile.am (CLEANFILES): Add created file
26042 * tools/Makefile.am (EXTRA_DIST): Add no-libgcrypt.c.
26044 tools: Fix typo in function name of symcryptrun.
26045 + commit e44dd878df58dab27c9cd411d80c4c81501e649a
26046 * tools/symcryptrun.c (main): Fix typo.
26048 2016-06-15 Niibe Yutaka <gniibe@fsij.org>
26050 g10: Fix another race condition for trustdb access.
26051 + commit 35a3ce2acf78a95fecbccfd8db0560cca24232df
26052 * g10/tdbio.c (create_version_record): Call create_hashtable to always
26053 make hashtable, together with the version record.
26054 (get_trusthashrec): Remove call to create_hashtable.
26056 2016-06-14 Werner Koch <wk@gnupg.org>
26058 gpg: Print the subkey's curve and not the primary key curve.
26059 + commit b56aebe76657ce6efa9c6819d5a8c2a31c2bbbba
26060 * g10/keylist.c (list_keyblock_colon): Use PK2 for the subkey's curve.
26062 ldap: Improve info output for v3 fallback.
26063 + commit b7e3dfcf139284d30921cf44e7bab43d4244cc37
26064 * dirmngr/dirmngr_ldap.c (fetch_ldap): Do not use log_debug in an
26065 unprotected section. Replace log_debug by log_info in verbose mode.
26067 2016-06-14 Andre Heinecke <aheinecke@intevation.de>
26069 dirmngr: Try ldap protocol V3 as fallback.
26070 + commit f989b6ee0db96c36f13f093cbbcfd1d5b472d03c
26071 * dirmngr/dirmngr_ldap.c (fetch_ldap): Try V3 Protocol in case
26072 default Protocol gives error.
26074 dirmngr: Print ldap error if bind fails.
26075 + commit 5faddcb2927a997e05fb34eb270982096d1fe3a4
26076 * dirmngr/dirmngr_ldap.c (fetch_ldap): Use ldap_err2string on bind
26079 2016-06-14 Werner Koch <wk@gnupg.org>
26081 gpgsm: Allow ciphers AES192 and SERPENT256.
26082 + commit 5f9bd7a9e1ed4edcbb6c4e908d4bea5cd7dc9e68
26083 * sm/gpgsm.c (main): Add AES192 cipher. Allow SERPENT256.
26085 doc: Add files and envvars to a new index.
26086 + commit 2423238ee4c8a8c531dfe9e45c95f2760b638faa
26087 * doc/gnupg.texi: Define new index "ef".
26088 (Environment Index): New.
26090 gpg: Avoid endless loop in a tofu error case.
26091 + commit f980cd2e0e4694a38038f518f290017087d4ce33
26092 * g10/tofu.c (get_trust): Do not jump to out.
26094 gpg: Split tofu's get_trust function into several smaller ones.
26095 + commit 1affdf1efc42ed22dc023c92ca5134d5bcbf2686
26096 * g10/tofu.c (get_trust): Factor code out to ...
26097 (format_conflict_msg_part1): new and to ...
26098 (ask_about_binding): new.
26100 2016-06-13 Werner Koch <wk@gnupg.org>
26102 gpg: Un-deprecate option --auto-key-retrieve.
26103 + commit 9e126af215143fddbdc3949681abb9ffdb9153bb
26104 * g10/gpg.c (main): Remove deprecation warning.
26106 gpg: New option --disable-signer-uid, create Signer's UID sub-packet.
26107 + commit 61e7fd68c05ed185728e9da45f7a44a2323065ad
26108 * g10/gpg.c (oDisableSignerUID): New.
26109 (opts): New option '--disable-signer-uid'.
26110 (main): Set option.
26111 * g10/options.h (opt): Add field flags.disable_signer_uid.
26112 * g10/sign.c: Include mbox-util.h.
26113 (mk_notation_policy_etc): Embed the signer's uid.
26114 * g10/mainproc.c (check_sig_and_print): Do not use WKD for auto key
26115 retrieval if --disable-signer-uid is used.
26117 gpg: Try Signer's User ID sub-packet with --auto-key-retrieve.
26118 + commit 08c82b1b55d28ffd09b859205b7686bcefae5011
26119 * g10/packet.h (PKT_signature): Add field 'signers_uid'.
26120 * g10/parse-packet.c (parse_signature): Set this field.
26121 * g10/free-packet.c (free_seckey_enc): Free field.
26122 (copy_signature): Copy field.
26123 * g10/mainproc.c (akl_has_wkd_method): New.
26124 (check_sig_and_print): Extend NEWSIG status. If WKD is enabled try to
26125 locate a missing key via the signature's Signer's User ID sub-packet.
26126 Do this right before trying a keyserver lookup.
26128 2016-06-11 Werner Koch <wk@gnupg.org>
26130 gpg: Remove C-99ism, re-indent, and simplify one function.
26131 + commit 334e993a71d3abb7d30cb5ee05d578cecf0c3f67
26132 * g10/call-agent.c (struct keyinfo_data): Rename to
26133 keyinfo_data_parm_s.
26134 (agent_get_keyinfo): Replace C-99 style init.
26135 (keyinfo_status_cb): Use new fucntion split_fields.
26136 * g10/export.c (match_curve_skey_pk): Add missings returns error
26138 (cleartext_secret_key_to_openpgp): Better clear PK->PKEY first.
26140 common: New function split_fields.
26141 + commit 5ba99d9302cd86aee99958b71075d5288bb430aa
26142 * common/stringhelp.c (split_fields): New.
26143 * common/t-stringhelp.c: Include assert.h.
26144 (test_split_fields): New.
26147 2016-06-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
26149 g10: Export cleartext keys as cleartext.
26150 + commit c41c46fa84cabbed74a13ded51fc3a817a919367
26151 * g10/export.c (do_export_stream): If a key is stored by the agent in
26152 cleartext, then try to export it as cleartext.
26153 * tests/openpgp/export.test: For secret keys that are stored in
26154 cleartext, test should try to export without pinentry interaction.
26156 g10: Allow receiving cleartext secret keys from agent.
26157 + commit a3cb72af79ee645eda212f31ab0b266f2c3d9f29
26158 * g10/export.c (match_curve_skey_pk): New function, testing whether an
26159 OpenPGP public key and an S-expression use the same curve.
26160 * g10/export.c (cleartext_secret_key_to_openpgp): New function,
26161 filling in the secret key parameters of a PKT_public_key object from
26162 a corresponding cleartext S-expression.
26163 * g10/export.c, g10/main.h (receive_seckey_from_agent): Add cleartext
26164 parameter, enabling retrieval of the secret key, unlocked.
26165 * g10/export.c (do_export_stream): Send cleartext as 0, keeping current
26167 * g10/keygen.c (card_store_key_with_backup): Use cleartext=0 to ensure
26168 that smartcard backups are all passphrase-locked.
26170 g10: Add openpgp_protected flag to agent secret key export functions.
26171 + commit 7de74320767d15d915942a98ff47c00175a078ed
26172 * g10/call-agent.c, g10/call-agent.h (agent_export_key): Add
26173 openpgp_protected flag.
26174 * g10/export.c (receive_seckey_from_agent): Request openpgp_protected
26175 secret keys from agent.
26176 * agent/command.c (hlp_export_key): EXPORT_KEY help text: add a
26177 brief description of the effect of --openpgp.
26179 g10: report whether key in agent is passphrase-protected or not.
26180 + commit 00f30cc01c79bbdff5cdc3be795f009f15d3845e
26181 * g10/call-agent.c, g10/call-agent.h (agent_get_keyinfo): add
26182 r_cleartext parameter to report whether a key is stored without
26183 passphrase protection.
26184 * g10/gpgv.c, g10/test-stubs.c: augment dummy agent_get_keyinfo to
26186 * g10/export.c, g10/keyedit.c, g10/keygen.c, g10/keylist.c,
26187 g10/sign.c: pass NULL to agent_get_keyinfo since we do not yet
26188 need to know whether agent is passphrase-protected.
26190 2016-06-08 Werner Koch <wk@gnupg.org>
26192 Explicitly restrict socket permissions.
26193 + commit 8127043d549a5843ea1ba2dc6da4906fc2258d53
26194 * agent/gpg-agent.c (create_server_socket): Call chmod before listen.
26195 * scd/scdaemon.c (create_server_socket): Ditto.
26196 * dirmngr/dirmngr.c (main): Ditto.
26198 w32: Fix recent build regression.
26199 + commit 6790115fd9059e066b4e6feb6b1e3876a1c1d522
26200 * common/homedir.c (_gnupg_socketdir_internal) [W32]: Add definition
26202 * g10/gpg.c (main) [W32]: Fix use og gnupg_homedir.
26204 * agent/gpg-agent.c (remove_socket): Remove unused var P.
26205 * scd/scdaemon.c (cleanup): Ditto.
26207 gpgconf: New commands --create-socketdir and --remove-socketdir.
26208 + commit cf4910419e09daf414f76ca2c8ab685c3d488ec1
26209 * tools/gpgconf.c: Include unistd.h.
26210 (aCreateSocketDir, aRemoveSocketDir): New.
26211 (opts): Add --create-socketdir and --remove-socketdir.
26212 (main): Implement them.
26214 Implement /run/user/UID/gnupg based sockets.
26215 + commit aab8a0b05292b0d06e3001a0b289224cb7156dbd
26216 * common/homedir.c: Include sys/stat.h and zb32.h.
26217 (w32_portable_app, w32_bin_is_bin): Change type from int to byte.
26218 (non_default_homedir): New.
26219 (is_gnupg_default_homedir): New.
26220 (default_homedir): Set non_default_homedir.
26221 (gnupg_set_homedir): Set non_default_homedir and make
26222 the_gnupg_homedir and absolute directory name.
26223 (gnupg_homedir): Return an absolute directory name.
26224 (_gnupg_socketdir_internal): New.
26225 (gnupg_socketdir): Implement /run/user/ based sockets.
26226 * tools/gpg-connect-agent.c (get_var_ext): Replace now obsolete
26227 make_filename by xstrdup.
26228 * tools/gpgconf.c (main): Sue gnupg_homedir for the "homedir:" output.
26230 gpgconf: Add option --homedir.
26231 + commit def512eb67c8a380f3b873cee0f156deef0b6dda
26232 * tools/gpgconf.c (opts): Add --homedir.
26233 (main): Set homedir.
26235 Do not use no-libgcrypt dummy for tools.
26236 + commit 173fa97102fec68670a46ae1b460231e2a183c81
26237 * tools/Makefile.am (gpgconf_SOURCES): Remove no-libgcrypt.c.
26238 (gpgconf_LDADD): Add LIBGCRYPT_LIBS.
26239 (gpg_connect_agent_LDADD): Ditto.
26240 (gpgtar_LDADD): Ditto.
26241 * dirmngr/Makefile.am (dirmngr_client_LDADD): Ditto.
26242 (t_common_ldadd): Ditto. Remove no-libgcrypt.o.
26244 Do not try to remove the enclosing directory of sockets.
26245 + commit 0faf8951544f43790c412777a926c969540174bd
26246 * agent/gpg-agent.c (remove_socket): Do not remove the enclosing
26248 * scd/scdaemon.c (cleanup): Ditto.
26250 2016-06-07 Werner Koch <wk@gnupg.org>
26252 common: New function gnupg_socketdir.
26253 + commit 36550dde998fa1d497098050ca2d4e1a952ed6b6
26254 * common/homedir.c (gnupg_socketdir): New.
26255 * agent/gpg-agent.c (create_socket_name): Use new function instead of
26257 (check_own_socket): Ditto.
26258 (check_for_running_agent): Ditto.
26259 * agent/preset-passphrase.c (main): Ditto.
26260 * common/asshelp.c (start_new_gpg_agent): Ditto.
26261 * scd/scdaemon.c (create_socket_name): Ditto.
26262 * tools/gpgconf.c (main): Ditto.
26263 * tools/symcryptrun.c (main): Ditto.
26265 common: Remove homedir arg from start_new_{dirmngr,gpg_agent}.
26266 + commit fb88f37c40dc156fa0b5bfba4ac85f1e553fd7e9
26267 * common/asshelp.c (start_new_gpg_agent): Remove arg 'homedir' in
26268 favor of gnupg_homedir (). Change all callers.
26269 (start_new_dirmngr): Ditto.
26270 * common/get-passphrase.c (gnupg_prepare_get_passphrase): Remove arg
26273 Replace use of opt.homedir by accessor functions.
26274 + commit 22a7ef01aa2c0eb77bcc40174d09104acc35cab1
26275 * common/homedir.c (the_gnupg_homedir): New var.
26276 (gnupg_set_homedir): New.
26277 (gnupg_homedir): New.
26278 * g10/options.h (struct opt): Remove 'homedir' and replace all users
26279 by the new accessor functions.
26280 * g13/g13-common.h (struct opt): Ditto.
26281 * scd/scdaemon.h (struct opt): Ditto.
26282 * sm/gpgsm.h (struct opt): Ditto.
26283 * dirmngr/dirmngr.h (struct opt): Ditto.
26284 * agent/preset-passphrase.c (opt_homedir): Ditto.
26285 * agent/protect-tool.c (opt_homedir): Ditto.
26287 2016-06-07 NIIBE Yutaka <gniibe@fsij.org>
26289 po: Update Japanese translation.
26290 + commit 650abbab716750d6087a457a25fa2efaaa3567cd
26293 gpg: Fix command line parsing of --quick-addkey and --quick-gen-key.
26294 + commit abeeb84a94be815a16e678b319cb5c8bffde2811
26295 * g10/gpg.c (main): Compose a block by curly braces.
26297 2016-06-06 Werner Koch <wk@gnupg.org>
26299 gpg: Use --keyid-format=none by default.
26300 + commit 7257ea2d450238afa4d162fab8001f74782fe43f
26301 * g10/gpg.c (main): Init keyid_format to KF_NONE.
26302 * g10/keyid.c (format_keyid): Ditto.
26303 (keystrlen): Ditto.
26305 gpg: Add option --with-subkey-fingerprint.
26306 + commit 1d1cb86694fb2223de1da0b3bfffb5c62f505847
26307 * g10/gpg.c (oWithSubkeyFingerprint): New.
26308 (opts): Add --with-subkey-fingerprint[s].
26309 (main): Set that option.
26310 * g10/options.h (struct opt): Add 'with_subkey_fingerprint'.
26311 * g10/keylist.c (list_keyblock_print): Print subkey fingerprint.
26312 (print_fingerprint): Tweak printing to use compact format if
26315 gpg: Implement --keyid-format=none.
26316 + commit b047388d57443f584f1c1d6333aac5218b685042
26317 * g10/gpg.c (main): Add option "none" to --keyid-format.
26318 * g10/options.h (KF_NONE): New.
26319 * g10/keyid.c (format_keyid): Implement that.
26320 (keystr): Use format "long" is KF_NONE is in use.
26321 (keystr_with_sub): Ditto.
26322 * g10/keylist.c (list_keyblock_print): Adjust indentaion for KF_NONE.
26323 Factor some code out to ...
26324 (print_key_line): new.
26325 (print_fingerprint): Add mode 20.
26326 * g10/mainproc.c (list_node): Use print_key_line. Replace MAINKEY by
26327 flags.primary in the PK. Fix putting a " revoked..." string into the
26329 * g10/pkclist.c (do_edit_ownertrust): Use print_key_line. This
26330 slightly changes the putput format.
26331 * g10/revoke.c (gen_standard_revoke): Use print_key_line. This may
26332 also put "expires: " into the output.
26334 2016-06-04 Werner Koch <wk@gnupg.org>
26336 w32: Require --enable-build-timestamp for the BUILD_HOSTNAME.
26337 + commit 79b7a8a9e0d41b743ceaee20dc47294359fe0d44
26338 * configure.ac (BUILD_HOSTNAME): Set to "<anon>" bey default.
26339 * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Add
26340 --enable-build-timestamp.
26342 2016-06-02 Werner Koch <wk@gnupg.org>
26344 gpg: Add the fingerprint to KEY_CREATED for subkeys.
26345 + commit 8d976a6b07c5a356631791b46b590328c1451f31
26346 * g10/keygen.c (print_status_key_created): Make more robust by
26347 allowing a NULL for PK.
26348 (generate_subkeypair): Use print_status_key_created.
26349 (generate_card_subkeypair): Ditto.
26351 gpg: Try to use the passphrase from the primary for --quick-addkey.
26352 + commit 1b460f049e5c1c102d8b55ad28781688252c5a6b
26353 * agent/command.c (cmd_genkey): Add option --passwd-nonce.
26354 (cmd_passwd): Return a PASSWD_NONCE in verify mode.
26355 * g10/call-agent.c (agent_genkey): Add arg 'passwd_nonce_addr' and do
26356 not send a RESET if given.
26357 (agent_passwd): Add arg 'verify'.
26358 * g10/keygen.c (common_gen): Add optional arg 'passwd_nonce_addr'.
26359 (gen_elg, gen_dsa, gen_ecc, gen_rsa, do_create): Ditto.
26360 (generate_subkeypair): Use sepeare hexgrip var for the to be created
26361 for hexgrip feature. Verify primary key first. Make use of the
26362 passwd nonce. Allow for a static passphrase.
26364 gpg: Extend the --quick-gen-key command.
26365 + commit 01285f909e43e8d6a48fbcc77bb5af53d567d8a2
26366 * g10/keygen.c (quickgen_set_para): Add arg 'use'.
26367 (quick_generate_keypair): Add args 'algostr', 'usagestr', and
26368 'expirestr'. Implement primary only key mode.
26369 (parse_algo_usage_expire): Set NBITS for the default algo.
26370 * g10/gpg.c (main): Extend --quick-gen-key command.
26372 gpg: Improve the new parse_subkey_algostr_usagestr fucntion.
26373 + commit dcc4cd83821667be22e502af86139bb4bd41bdf7
26374 * g10/keygen.c (parse_usagestr): Allow "cert".
26375 (generate_subkeypair): Factor expire parsing out to ...
26376 (parse_subkey_algostr_usagestr): here. Rename to ...
26377 (parse_algo_usage_expire): this. Add arg 'for_subkey'. Set CERT for
26378 primary key and check that it is not set for subkeys.
26380 gpg: New command --quick-addkey.
26381 + commit 8f2a053a0ffa0430d01a53b4d491a3f0fff683eb
26382 * g10/keygen.c (DEFAULT_STD_SUBKEYUSE): New.
26383 (ask_keysize): Factor code out to ...
26384 (get_keysize_range, fixup_keysize): new.
26385 (parse_parameter_usage): Factor parsing out to ...
26386 (parse_usagestr): new. Allow use of "encr" as alias for "encrypt".
26387 (parse_subkey_algostr_usagestr): New.
26388 (generate_subkeypair): Add new args. Implement unattended mode.
26390 * g10/keyedit.c (keyedit_quick_sign): Factor some code out to ...
26391 (find_by_primary_fpr): new.
26392 (keyedit_quick_addkey): New.
26393 * g10/gpg.c (aQuickAddKey): New.
26394 (opts): Add --quick-addkey.
26397 gpg: Do not abort on certain invalid packets.
26398 + commit d837f6b0eadb14ea08c1c6030b4d6adaaee8778e
26399 * g10/build-packet.c (write_fake_data): Check for non-opaque data.
26400 * g10/seskey.c (do_encode_md): Return NULL instead of abort.
26402 common: New function openpgp_is_curve_supported.
26403 + commit 072acb69be55e366e2da921e3953404765fa3928
26404 * common/openpgp-oid.c: Include openpgpdefs.h.
26405 (oidtable): Add field pubkey_algo.
26406 (openpgp_is_curve_supported): New.
26408 2016-06-01 NIIBE Yutaka <gniibe@fsij.org>
26410 g10: Allow User ID length >= 256.
26411 + commit db1ecc8212defdd183abbb6b1407fcc8d2dc9552
26412 * build-packet.c (do_user_id): Call write_header2 with HDRLEN not set.
26414 2016-05-31 Werner Koch <wk@gnupg.org>
26416 gpg: New status code NOTATION_FLAGS.
26417 + commit 67a4bc8d536f6997f14daff4c039abd48a172100
26418 * common/status.h (STATUS_NOTATION_FLAGS: New.
26419 * g10/packet.h (struct notation): Add flags.human.
26420 (notation_t): New typedef.
26421 * g10/build-packet.c (sig_to_notation): Set flags.human.
26422 * g10/keylist.c (show_notation): Write STATUS_NOTATION_FLAGS.
26424 2016-05-28 Werner Koch <wk@gnupg.org>
26426 common: Add a status callback to gnupg_exec_tool_stream.
26427 + commit 239a4d53916b47b5b0f0167a9b2c7a8915bb9c52
26428 * common/exectool.h (exec_tool_status_cb_t): New.
26429 * common/exectool.c: Include missing exectool.h.
26430 (read_and_log_buffer_t): Replace array by pointer.
26431 (gnupg_exec_tool_stream): Add args 'status_cb' and 'status_cb_value'.
26432 Change all callers to pass NULL for them. Malloc buffer for
26434 (read_and_log_stderr): Implement status_fd feature.
26436 2016-05-27 Werner Koch <wk@gnupg.org>
26438 common: Allow a second input stream for gnupg_exec_tool_stream.
26439 + commit 44a32455c8e41400ea96db4507c8a42bdb65b3b6
26440 * common/exechelp-posix.c (do_exec): Add arg 'except' and pass to
26442 (gnupg_spawn_process): Add arg 'except'. Change callers to pass NULL
26444 * common/exechelp-w32.c (gnupg_spawn_process): Add dummy arg 'except'.
26445 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
26446 * common/exectool.c (copy_buffer_do_copy): Allow NULL for SINK.
26447 (gnupg_exec_tool_stream): Add arg 'inextra'. Change callers to pass
26448 NULL for it. Allow NULL for OUTPUT.
26450 common: Simplify the fd closing patch 512c56a.
26451 + commit e6d9a2d07ed7aeac3944d8a7d1317c4a117356b4
26452 * common/exechelp-posix.c (get_max_fds): Use /proc/self.
26454 common: Speedup closing fds before an exec.
26455 + commit 512c56af43027149e8beacf259746b8d7bf9b1a2
26456 * common/exechelp-posix.c [__linux__]: Include dirent.h.
26457 (get_max_fds) [__linux__]: Return the actual used highest fd.
26459 tools: Improve debug output of rfc822parse.
26460 + commit ad75ca9c963bebbe02aae8d73e199a705764ae82
26461 * tools/rfc822parse.c (show_event): Add missing events.
26463 build: Remove obsolete tests for funopen and fopencookie.
26464 + commit d755bcb89dbeaf6c7c1eca73ccabdf89b536c535
26465 * configure.ac (AC_CHECK_FUNCS): Remove tests for funopen.
26467 common: Extend gnupg_create_inbound_pipe et al.
26468 + commit 5d991e333a1885adc40abd9d00c01fec4bd5d9d7
26469 * common/exechelp-posix.c (gnupg_create_inbound_pipe): Add args 'r_fp'
26471 (gnupg_create_outbound_pipe): Ditto.
26472 * common/exechelp-w32.c (gnupg_create_inbound_pipe): Add non yet
26473 functional args 'r_fp' and 'nonblock'.
26474 (gnupg_create_outbound_pipe): Ditto.
26475 * common/exechelp-w32ce.c (gnupg_create_inbound_pipe): Ditto.
26476 (gnupg_create_outbound_pipe): Ditto.
26478 common: Make use of default_errsource in exechelp.
26479 + commit 96c7901ec1c79be732570811223d3ea54875abfe
26480 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
26481 Use them instead of gpg_error and gpg_error_from_syserror.
26482 (create_pipe_and_estream): Remove arg ERRSOURCE and fix use of
26483 OUTBOUND which has a wrong name. Adjust callers.
26484 (gnupg_spawn_process): Remove arg ERRSOURCE and replace by use of
26486 * common/exechelp-w32.c (gnupg_spawn_process): Ditto.
26487 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
26488 * common/exectool.c (gnupg_exec_tool_stream): Do not pass
26489 GPG_ERROR_FROM_SYSERROR.
26490 * tools/gpgconf-comp.c (gc_component_check_options): Ditto.
26491 (retrieve_options_from_program): Ditto.
26493 gpg: Keep current and total of PROGESS status lines small enough.
26494 + commit 6c957c3d880c069bb843cc58fdcebb9fc344727e
26495 * g10/progress.c (progress_filter): Factor status wrote out to...
26496 (write_status_progress): New. Scale values down.
26498 2016-05-27 NIIBE Yutaka <gniibe@fsij.org>
26500 configure: Detection of libusb on FreeBSD.
26501 + commit b3e043ba905fdf2efcdadbd7022ac53f4408b748
26502 * configure.ac (LIBUSB_LIBS): Use LIBUSB_NAME for AC_CHECK_LIB.
26504 2016-05-25 Werner Koch <wk@gnupg.org>
26506 build: Switch to new URL for swdb.lst.
26507 + commit 74028096e06d2904f77b74b373750264e5b7b1ea
26510 2016-05-24 Werner Koch <wk@gnupg.org>
26512 gpgtar: Simplify code by using ccparray.
26513 + commit 91bc7833836f19256d56984c94cacf44853ff5c8
26514 * tools/gpgtar-create.c (gpgtar_create): Use ccparray functions.
26515 * tools/gpgtar-extract.c (gpgtar_extract): Ditto.
26516 * tools/gpgtar-list.c (gpgtar_list): Ditto.
26518 common: Add simple dynamic array function.
26519 + commit 2421f7f7ed74ed20372efd63a2efd58d3b55005c
26520 * common/ccparray.c: New.
26521 * common/ccparray.h: New.
26522 * common/t-ccparray.c: New.
26523 * common/Makefile.am (common_sources): Add files.
26524 (module_tests): Add test file.
26525 (t_ccparray_LDADD): New.
26527 2016-05-23 Justus Winter <justus@g10code.com>
26529 tests: Test the pinentry interactions when exporting keys.
26530 + commit b9d1e099c3ec3163c86afe627ecbe028db1facf6
26531 * tests/openpgp/export.test: Test pinentry interactions.
26533 tests: Add support for a passphrase queue to fake pinentry.
26534 + commit 4994153924e0948a657edddaef54a39a6001beff
26535 * tests/openpgp/fake-pinentry.c (get_passphrase): New function.
26536 (main): Add option --passphrasefile and read passphrases from it.
26538 tests: Add logging to fake pinentry.
26539 + commit 41b10c66ec1dd33633386f4fc8013ddeab7737ca
26540 * tests/openpgp/fake-pinentry.c (log_stream): New variable.
26541 (reply): New function.
26542 (spacep,skip_options,option_value): Copy from common.
26543 (main): Parse arguments, add --logfile option, write logfile.
26545 tests: Add export test.
26546 + commit a54e89a58576108fcae10ceeb4fc65822aecc170
26547 * tests/openpgp/Makefile.am (TESTS): Add new file.
26548 * tests/openpgp/export.test: New file.
26550 2016-05-21 Werner Koch <wk@gnupg.org>
26552 gpg: Speed up key listing in Tofu mode.
26553 + commit 78bb08425af5b1edb7f3ef0119013529b3a9e4ba
26554 * g10/tofu.c (get_trust): Add arg PK. Uses this instead of a an extra
26555 lookup of the public key by fingerrpint.
26556 (tofu_register): Pass PK to get_trust.
26557 (tofu_get_validity): Ditto.
26559 *g10/tofu.c (tofu_register): Remove unused FINGERPRINT_PP.
26561 gpg: Avoid name spaces clash with future sqlite versions.
26562 + commit b1ba460d8f3358342c2ee2927114d36e767a439f
26563 * g10/sqlite.c: Rename to gpgsql.c. Change function prefixes to
26565 * g10/sqlite.h: Rename to gpgsql.h.
26566 * g10/tofu.c: Adjust for changes.
26568 gpg: Explicitly close a combined Tofu DB.
26569 + commit 006a6126131ffd59d9a47889ac031f932ecc5d0b
26570 * g10/tofu.c (tofu_closedbs): Close combined DB.
26572 gpg: Store the Tofu meta handle for databases in CTRL.
26573 + commit 754b1c463034a634a678d8efc76c27fd46aad9b9
26574 * g10/gpg.h (struct tofu_dbs_s, tofu_dbs_t): New declarations.
26575 (struct server_control_s): Add field tofu.dbs.
26576 * g10/tofu.c (struct dbs): Rename to tofu_dbs_s. Replace all users by
26578 (opendbs): Add arg CTRL. Cache the DBS in CTRL.
26579 (closedbs): Rename to tofu_closedbs and make global. Add arg CTRL.
26580 (tofu_register): Add arg CTRL. Change all callers. Do not call
26582 (tofu_get_validity): Ditto.
26583 (tofu_set_policy): Ditto.
26584 (tofu_get_policy): Ditto.
26585 (tofu_set_policy_by_keyid): Add arg CTRL.
26586 * g10/gpg.c (gpg_deinit_default_ctrl): Call tofu_closedbs.
26588 gpg: Pass CTRL object down to the trust functions.
26589 + commit 027c4e55522b8e18711a3331932a9869ab89ca26
26592 gpg: Fix the TOFU_STATS_LONG status.
26593 + commit fd973ee1c18aa8fe764e09ba4dff589309b2d78d
26594 * g10/tofu.c (show_statistics): Print TOFU STATS with formatting
26597 2016-05-19 Werner Koch <wk@gnupg.org>
26599 gpg: Print "[ never ]" instead of err for validity.
26600 + commit 437c97ab6a34ff1936001dd05209193b4466a81d
26601 * g10/trust.c (uid_trust_string_fixed): Handle NEVER.
26603 2016-05-18 Werner Koch <wk@gnupg.org>
26605 dirmngr: Adjust the WKD lookup to specs version -01.
26606 + commit cf97769906337d65289ad58225a5ecc53c715550
26607 * dirmngr/server.c (cmd_wkd_get): Remove second occurrence of the
26610 2016-05-17 Werner Koch <wk@gnupg.org>
26612 gpg: Emit new status line KEY_CONSIDERED.
26613 + commit ff71521d9698c7c5df94831a1398e948213af433
26614 * common/status.h (STATUS_KEY_CONSIDERED): New.
26615 * g10/getkey.c: Include status.h.
26616 (LOOKUP_NOT_SELECTED, LOOKUP_ALL_SUBKEYS_EXPIRED): New.
26617 (finish_lookup): Add arg R_FLAGS. Count expired and revoked keys and
26618 set flag. Check a requested usage before checking for expiraion or
26620 (print_status_key_considered): New.
26621 (lookup): Print new status.
26623 2016-05-11 NIIBE Yutaka <gniibe@fsij.org>
26625 g10: Fix signature checking.
26626 + commit 83a90a916e8e2f8e44c3b11d11e1dd75f65a87fb
26627 * g10/sig-check.c (check_signature_over_key_or_uid): Fix call to
26630 2016-05-10 Werner Koch <wk@gnupg.org>
26632 gpg: Allow unattended deletion of secret keys.
26633 + commit ac9ff644b12c4dfa55d466af8ae6af54d1646893
26634 * agent/command.c (cmd_delete_key): Make the --force option depend on
26635 --disallow-loopback-passphrase.
26636 * g10/call-agent.c (agent_delete_key): Add arg FORCE.
26637 * g10/delkey.c (do_delete_key): Pass opt.answer_yes to
26640 2016-05-09 Werner Koch <wk@gnupg.org>
26642 gpg: Fix buglet in the check_all_keysigs function.
26643 + commit 693838f0125d5d0c963fa3771b1bd117702af697
26644 * g10/keyedit.c (sig_comparison): Actually compare the pubkey
26647 gpg: Request a "save" after cmd "check" fixed something.
26648 + commit d33b35f7481caa0dcb25f9fa7d6c5bb27895297a
26649 * g10/keyedit.c (keyedit_menu) <cmdCHECK>: Set modified.
26651 2016-05-09 NIIBE Yutaka <gniibe@fsij.org>
26653 po: Update Japanese translation.
26654 + commit ff870d59f067d3c5415e231c02a50d5dceac7e48
26657 2016-05-04 Werner Koch <wk@gnupg.org>
26660 + commit 00df5b1236cac5c7a48638a4613278c5aab486f8
26663 speedo,w32: Remove the installation directory page.
26664 + commit fb1e9df48465c2f77a65dddd257572fdc79d9450
26665 * build-aux/speedo/w32/inst.nsi (MUI_PAGE_DIRECTORY): Remove.
26667 gpg: Fix const char pointer mismatch with gettext.
26668 + commit 920b1421b35d1404b8360bd8feac0be659840543
26669 * g10/tofu.c (get_trust): Use const char *.
26671 speedo: Build sqlite with static-libgcc.
26672 + commit edce430b039b313cc2d79402a7bd21347490c3be
26673 * build-aux/speedo/patches/sqlite.patch: New.
26674 * Makefile.am (EXTRA_DIST): Add file.
26676 speedo: Also try patch files w/o version number.
26677 + commit 9ea258fa5b45bb5454ee3f5906df5d5eebdec0dd
26678 * build-aux/speedo.mk (SPKG_template): Try such a patch file.
26680 2016-05-04 Andre Heinecke <aheinecke@intevation.de>
26682 speedo,w32: Install sqlite.
26683 + commit 2b78223d7587c68e2e27a3d7b365219228da7947
26684 * build-aux/speedo/w32/inst.nsi (-sqlite, -un.sqlite): New.
26686 speedo,w32: Fix uninstallation.
26687 + commit 5ec76fd0c300b52366cf8d1407fe1c8de3a8a9d4
26688 * build-aux/speedo/w32/inst.nsi (-un.gnupg): Delete distsigkey and
26691 speedo,w32: Install localisation.
26692 + commit 3f58fc64666101e160e9b13fedb6cdaebeb91a7a
26693 * build-aux/speedo/w32/inst.nsi (-libgpg-error, GnuPG): Install l10n.
26694 (-un.libgpg-error, -un.gnupg): Uninstall l10n files.
26696 2016-05-04 Werner Koch <wk@gnupg.org>
26698 tests: Disable the migrations tests.
26699 + commit d696eb396a9c88319358da4333feb653994d5408
26700 * tests/Makefile.am (SUBDIRS): Remove migrations.
26701 * configure.ac (AC_CONFIG_FILES): Remove migrations Makefile.
26703 2016-05-04 Ineiev <ineiev@gnu.org>
26705 po: Update Russian translation.
26706 + commit 4fd13ab78dd228d8ff85659cddc2076af8728ebe
26709 2016-05-04 Werner Koch <wk@gnupg.org>
26711 po: Update German translation.
26712 + commit 75f31cdd42eed3555952ac478055d52af841f702
26715 Some minor string changes and fixed a printf format.
26716 + commit d00625dae60f26617d2e1bd4f22c6b35a4e92c91
26717 * g10/build-packet.c (notation_value_to_human_readable_string): Use
26720 build: Update config.{guess,sub} to 2016-04-02 and 2016-03-30.
26721 + commit 04cc7c3786d91881f83a72799dab058476602a31
26722 * build-aux/config.guess: Update.
26723 * build-aux/config.sub: Update.
26725 agent: Make --allow-loopback-pinentry the default.
26726 + commit 3ef0938cfd8637e9801369f142eb8dd564f2ca61
26727 * agent/gpg-agent.c (oNoAllowLoopbackPinentry): New.
26728 (opts): Add --no-allow-loopback-pinentry. Hide
26729 description of --allow-loopback-pinentry.
26730 (parse_rereadable_options): Set opt.allow_loopback_pinentry by
26732 (main): Replace allow-loopback-pinentry by no-allow-loopback-pinentry
26733 in the gpgconf list.
26734 * tools/gpgconf-comp.c (gc_options_gpg_agent): Ditto.
26736 2016-05-03 Werner Koch <wk@gnupg.org>
26738 common: Print https URLs in help messages.
26739 + commit 9e28617e260261de3972c20698b5a01561330e1c
26740 * common/argparse.c (strusage): Print https URLS.
26742 tests: Silence output of some tests.
26743 + commit 33aacc3d4bbd6a82d7e7ceca058970879741b7da
26744 * common/t-exechelp.c (print_open_fds): Silence non-verbose output.
26745 (test_close_all_fds): Ditto.
26746 * common/t-session-env.c (show_stdnames): Indent output.
26747 * g10/test.c (TEST): Silence non-verbose okay output.
26748 (exit_tests): Ditto.
26749 * tools/gpg-zip.in (tar_verbose_opt): Add option --quiet.
26750 * tests/openpgp/gpgtar.test (GPGZIP): Pass option --quiet.
26751 * tests/openpgp/mds.test: Indent MD5 notice.
26752 * tests/openpgp/version.test: Indent --version output.
26754 gpg: Emit status lines TOFU_STATS and TOFU_STATS_LONG.
26755 + commit 83865be35cff5355a5c4575cc3b50609819b0baa
26756 * g10/tofu.c (NO_WARNING_THRESHOLD): Rename to BASIC_TRUST_THRESHOLD.
26757 (FULL_TRUST_THRESHOLD): New.
26758 (write_stats_status): New.
26759 (show_statistics): Call new function. Print TOFU_STATS_LONG.
26761 2016-05-02 Werner Koch <wk@gnupg.org>
26763 gpg: Extend TRUST_foo status lines with the trust model.
26764 + commit ae1889320b822d48f7118a29391605e9ac992701
26765 * g10/trustdb.h (TRUST_FLAG_TOFU_BASED): New.
26766 * g10/trustdb.c (trust_model_string): Lowercase the strings. Add arg
26767 "model" and change callers to call with OPT.TRUST_MODEL.
26768 * g10/tofu.c (tofu_wot_trust_combine): Set TRUST_FLAG_TOFU_BASED.
26769 * g10/pkclist.c (write_trust_status): New.
26770 (check_signatures_trust): Call new function.
26772 gpg: Improve line wrapping for a tofu message.
26773 + commit 5cef6118580fe658a27d32e85696d88775ad417a
26774 * g10/tofu.c (time_ago_str): Mark non-breakable spaces.
26775 (show_statistics): Remove marks.
26777 gpg: Re-format some tofu messages.
26778 + commit d73e83c3b678add11a5754e199e528aeb39ec8ce
26779 * common/status.h (STATUS_TOFU_USER, STATUS_TOFU_STATS)
26780 (STATUS_TOFU_STATS_SHORT, STATUS_TOFU_STATS_LONG): New.
26781 * g10/tofu.c (NO_WARNING_THRESHOLD): New.
26782 (record_binding, tofu_register): Take care of --dry-run.
26783 (show_statistics): Print STATUS_TOFU_USER. Reformat some messages.
26784 Fix the ngettext/strcmp thing. Use log_string instead of log_info.
26785 Use NO_WARNING_THRESHOLD constant.
26786 (get_trust): Use format_text and print a compact fingerprint.
26788 2016-05-02 NIIBE Yutaka <gniibe@fsij.org>
26790 scd: More fix of error return path.
26791 + commit 6677d8b61446eb5760a30a2488c992d6e895a9ed
26792 * scd/command.c (open_card): Return GPG_ERR_ENODEV on the failure of
26795 2016-04-29 Werner Koch <wk@gnupg.org>
26797 common: Extend log_string to indent lines.
26798 + commit 35f4b6aafdf1889ed1ae569af5852f47738fe993
26799 * common/logging.c (do_logv): Add indentation when called via
26802 gpg: Factor some code code out of tofu.c.
26803 + commit dcad99c98616a6031ddfde313c920339e4012378
26804 * g10/tofu.c (string_to_long): New.
26805 (string_to_ulong): New.
26806 (get_single_unsigned_long_cb): Replace strtol/strtoul by new function.
26807 (get_single_long_cb): Ditto.
26808 (signature_stats_collect_cb): Ditto.
26809 (get_policy): Ditto.
26810 (show_statistics): Ditto. Uese es_free instead of free.
26812 gpg: Remove all assert.h and s/assert/log_assert/.
26813 + commit 64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c
26816 common: Improve log_assert.
26817 + commit 9740dff9f4d18ba764dc7173d4902e94e3f0c2e8
26818 * common/logging.c (bug_at): Do not i18n the string.
26819 (_log_assert): New.
26820 * common/logging.h (log_assert): Use new function and pass line
26823 2016-04-28 NIIBE Yutaka <gniibe@fsij.org>
26825 scd: Fix error return path.
26826 + commit cb4fee8bb645745ff199f7428e19226d5bc63dab
26827 * scd/ccid-driver.c (bulk_in): Remove EAGAIN handling.
26828 Handle LIBUSB_ERROR_NO_DEVICE to return CCID_DRIVER_ERR_NO_READER.
26830 2016-04-27 NIIBE Yutaka <gniibe@fsij.org>
26832 scd: Fix memory leaks.
26833 + commit 508b0deb70d39d388149be9a63fab24cc956a239
26834 * scd/ccid-driver.c (scan_or_find_usb_device): Return on
26835 LIBUSB_ERROR_NO_MEM. Free CONFIG before return except on error.
26836 (scan_or_find_devices): Free device list.
26838 2016-04-27 Werner Koch <wk@gnupg.org>
26840 gpg: Add experimental AKL method "wkd" and option --with-wkd-hash.
26841 + commit 87de9e19edf0311ca0342e15ef44ebe40e32861e
26842 * g10/getkey.c (parse_auto_key_locate): Add method "wkd".
26843 (get_pubkey_byname): Implement that method. Also rename a variable.
26844 * g10/call-dirmngr.c (gpg_dirmngr_wkd_get): New.
26845 * g10/keyserver.c (keyserver_import_wkd): New.
26846 * g10/test-stubs.c (keyserver_import_wkd): Add stub.
26847 * g10/gpgv.c (keyserver_import_wkd): Ditto.
26848 * g10/options.h (opt): Add field 'with_wkd_hash'.
26851 * g10/gpg.c (oWithWKDHash): New.
26852 (opts): Add option --with-wkd-hash.
26853 (main): Set that option.
26854 * g10/keylist.c (list_keyblock_print): Implement that option.
26856 dirmngr: Add experimental command WKD_GET.
26857 + commit c83c6f212e9bc98a9ea8dd8102bc16edd1a03050
26858 * dirmngr/server.c (cmd_wkd_get): New.
26859 (register_commands): Add command WKD_GET.
26861 dirmngr: Use system provided root CAs with KS_FETCH.
26862 + commit c3aeda82b8d00b87a5af72b4075c487c10dfdf6b
26863 * dirmngr/ks-engine-http.c (ks_http_fetch): Use HTTP_FLAG_TRUST_SYS.
26865 2016-04-26 Werner Koch <wk@gnupg.org>
26867 http: Allow to request system defined CAs for TLS.
26868 + commit fd765df6a7883c3d841abeb657330a1aab4b7756
26869 * dirmngr/http.h (HTTP_FLAG_TRUST_DEF, HTTP_FLAG_TRUST_SYS): New.
26870 * dirmngr/http.c (http_session_new): Add arg "flags".
26871 * dirmngr/ks-engine-hkp.c (send_request): Use new flag
26872 HTTP_FLAG_TRUST_DEF for the new arg of http_session_new.
26873 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
26874 * dirmngr/t-http.c (main): Ditto.
26876 2016-04-25 Werner Koch <wk@gnupg.org>
26878 common: Minor fixes for the new private-keys.c.
26879 + commit b7fa4960c292ef1a290d32b7f46bb741bbfc0923
26880 * common/private-keys.c (my_error_from_syserror): New. Use it in
26881 place of gpg_error_from_syserror.
26882 (_pkc_add, pkc_lookup, pke_next_value): Use ascii_strcasecmp.
26883 (pkc_parse): Use xtrystrdup and append_to_strlist_try as intended.
26885 (_pkc_add): Add braces around if-statement.
26887 common: Use new function to print a failure of xtrymalloc.
26888 + commit 8776abbe02935e720018f3ef6ffd48f21435ff8b
26889 * common/miscellaneous.c (xoutofcore): New.
26890 * common/strlist.c (append_to_strlist): Use instead of abort.
26891 (append_to_strlist_try): Use xtrymalloc instead of xmalloc.
26893 2016-04-21 Justus Winter <justus@g10code.com>
26895 common: Add support for the new extended private key format.
26896 + commit 12af2630cf4d1a39179179925fac8f2cce7504ff
26897 * agent/findkey.c (write_extended_private_key): New function.
26898 (agent_write_private_key): Detect if an existing file is in extended
26899 format and update the key within if it is.
26900 (read_key_file): Handle the new format.
26901 * agent/keyformat.txt: Document the new format.
26902 * common/Makefile.am: Add the new files.
26903 * common/private-keys.c: New file.
26904 * common/private-keys.h: Likewise.
26905 * common/t-private-keys.c: Likewise.
26906 * common/util.h (alphap, alnump): New macros.
26907 * tests/migrations: Add test demonstrating that we can cope with the
26910 common: Add 'free_strlist_wipe' which wipes memory.
26911 + commit c6d1f2f08c68efe7e80887219064a8ce6365128f
26912 * common/strlist.c (free_strlist_wipe): New function.
26913 * common/strlist.h (free_strlist_wipe): New prototype.
26915 common: Add 'append_to_strlist_try' which can fail.
26916 + commit 95303ee11df12f284e98d02dba993eda9e425383
26917 * common/strlist.c (append_to_strlist): Use the new function.
26918 (append_to_strlist_try): New function.
26919 * common/strlist.h (append_to_strlist_try): New prototype.
26921 agent: Convert key format document to org.
26922 + commit 342cc488890241b41e49f50886617115342721d6
26923 * agent/keyformat.txt: Convert to org mode.
26925 tests: Make migration test more robust and silent.
26926 + commit 0c35e09278514f1e3377a4b0a9b1f44dd39b1bf4
26927 * tests/migrations/from-classic.test: Fix in-tree build, silence test.
26929 2016-04-21 Werner Koch <wk@gnupg.org>
26931 w32: Use --enable-gpg2-is-gpg by default.
26932 + commit d81de224ecd542922dda649a492dd9550509d7bc
26933 * autogen.rc: Add option also for plain Windows.
26935 w32: Replace libiconv DLL by iconv feature of libgpg-error.
26936 + commit bd4d65615b3a5360d455b99e77bd113ad90f1539
26937 * configure.ac: Do nor require libiconv for W32.
26938 * common/utf8conv.c [W32]: Do not incluce iconv.h. Request
26939 libgpg-error iconv macros.
26940 (jnlib_iconv): Use ICONV_CONST macro.
26941 * build-aux/speedo/w32/inst.nsi [!WITH_GUI]: Do not install libiconv.
26942 * build-aux/speedo.mk (speedo_spkgs) [!WITH_GUI]: Likewise.
26944 2016-04-20 Justus Winter <justus@g10code.com>
26946 agent: Sanitize permissions of the private key directory.
26947 + commit f8adf1a3234655877a4f985d627d98567507002c
26948 * agent/gpg-agent.c (create_private_keys_directory): Set permissions.
26949 * common/sysutils.c (modestr_to_mode): New function.
26950 (gnupg_mkdir): Use new function.
26951 (gnupg_chmod): New function.
26952 * common/sysutils.h (gnupg_chmod): New prototype.
26953 * tests/migrations/from-classic.test: Test migration with existing
26956 tests: Test the migration from a classic GnuPG home directory.
26957 + commit defbc70b4a16264e067daf76678ecfb9d030dee4
26958 * configure.ac: Add new directory.
26959 * tests/Makefile.am (SUBDIRS): Likewise.
26960 * tests/migrations/Makefile.am: New file.
26961 * tests/migrations/from-classic.gpghome/pubring.gpg.asc: Likewise.
26962 * tests/migrations/from-classic.gpghome/secring.gpg.asc: Likewise.
26963 * tests/migrations/from-classic.gpghome/trustdb.gpg.asc: Likewise.
26964 * tests/migrations/from-classic.test: Likewise.
26966 2016-04-20 Werner Koch <wk@gnupg.org>
26968 speedo: Use swdb.lst to define the SQLite version.
26969 + commit 2385b9f1ddc4938e45c01a12a804f4b77d253305
26970 * build-aux/speedo.mk: Change sqlite to use our mirror and the
26972 * build-aux/speedo/w32/inst.nsi: gpg is now build and installed as
26975 2016-04-19 Werner Koch <wk@gnupg.org>
26977 gpg: Improve UID selction of --quick-sign-key.
26978 + commit d02de6c0a4a55a2720cfa5caddcbfc4ce988a2ec
26979 * g10/keyedit.c (keyedit_quick_sign): Improve UID selection and print
26980 error for non-found userids.
26982 gpg: Avoid debug like output at start of --edit-key.
26983 + commit 085b19fc9aa7f2f9b82a97824b117e71390964ec
26984 * g10/keyedit.c (check_all_keysigs): Print info only after something
26987 2016-04-15 Andre Heinecke <aheinecke@intevation.de>
26989 dirmngr: Fix https never reported in general help.
26990 + commit 6272f24312f2efe8707a7712858c85cd5a42e6fa
26991 * dirmngr/ks-engine-http.c (ks_hkp_help): Also print https
26992 when supported and no uri provided.
26994 dirmngr: Fix https incorrectly reported in help.
26995 + commit a0642856b25622c81d3464979c47ff2a30af58fa
26996 * dirmngr/ks-engine-http.c (ks_hkp_help): Only print https if tls
26999 2016-04-14 Werner Koch <wk@gnupg.org>
27001 agent: Fix regression due to recent commit 4159567.
27002 + commit 8c3fb2360f154a971d2a390e4937acb22a44a8c2
27003 * agent/protect.c (do_encryption): Fix CBC hashing.
27005 agent: Allow gpg-protect-tool to handle openpgp-native protection.
27006 + commit 6df75ec70afeb1a5ad9a00557e1245e1514c37b5
27007 * agent/protect-tool.c (read_and_unprotect): Add arg ctrl and pass to
27009 (main): Allocate a simple CTRL object and pass it to
27010 read_and_unprotect.
27011 (convert_from_openpgp_native): Remove stub.
27012 (agent_key_available, agent_get_cache): New stubs.
27013 (agent_askpin): New emulation for the one in call-pinentry.c.
27014 (agent_write_private_key): New to dump key.
27015 * agent/Makefile.am (gpg_protect_tool_SOURCES): Add cvt-openpgp.c
27017 tests: Set fake-pinentry's stdout and stdin to _IOLBF.
27018 + commit 94504b3d5af126abb591dedda1ca0f0970822f55
27019 * tests/openpgp/fake-pinentry.c (main): Call setvbuf. Show passphrase
27020 at startup. Increase buffer.
27022 2016-04-12 Werner Koch <wk@gnupg.org>
27024 agent: Implement new protection mode openpgp-s2k3-ocb-aes.
27025 + commit 4159567f7ed7a1139fdc3a6c92988e1648ad84ab
27026 * agent/protect.c (agent_protect): Add arg use_ocb. Change all caller
27027 to pass -1 for default.
27028 * agent/protect-tool.c: New option --debug-use-ocb.
27029 (oDebugUseOCB): New.
27030 (opt_debug_use_ocb): New.
27031 (main): Set option.
27032 (read_and_protect): Implement option.
27034 * agent/protect.c (OCB_MODE_SUPPORTED): New macro.
27035 (PROT_DEFAULT_TO_OCB): New macro.
27036 (do_encryption): Add args use_ocb, hashbegin, hashlen, timestamp_exp,
27037 and timestamp_exp_len. Implement OCB.
27038 (agent_protect): Change to support OCB.
27039 (do_decryption): Add new args is_ocb, aadhole_begin, and aadhole_len.
27041 (merge_lists): Allow NULL for sha1hash.
27042 (agent_unprotect): Change to support OCB.
27043 (agent_private_key_type): Remove debug output.
27045 indent: Help Emacs not to get confused by conditional compilation.
27046 + commit 7faf131c8b8710419df3dc13a1228d1977c55f53
27047 * agent/protect.c (calibrate_get_time) [W32]: Use separate function
27048 calls for W32 and W32CE.
27050 2016-04-07 Justus Winter <justus@g10code.com>
27052 g10: Fix exporting secret keys of certain sizes.
27053 + commit 02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8
27054 * g10/build-packet.c (do_key): Do not use the header length specified
27055 by the public key packet from the keyring, but let 'write_header2'
27056 compute the required length.
27058 2016-04-06 Justus Winter <justus@g10code.com>
27060 Revert "g10: Support armored keyrings in gpgv."
27061 + commit 76ca869197e304daa5a8dd96ea43113ec7b28354
27062 This reverts commit abb352de51bc964c06007fce43ed6f6caea87c15.
27064 2016-04-05 Justus Winter <justus@g10code.com>
27066 dirmngr: Autodetect PEM format in dirmngr-client.
27067 + commit 9354293b8c9f234939bc04182f15e2fe512e914e
27068 * dirmngr/dirmngr-client.c (init_asctobin): New function.
27069 (main): Move the initialization code to the new function.
27070 (read_pem_certificate): Initialize base64 table.
27071 (read_certificate): Try to decode certificates given in files as PEM
27074 2016-04-05 Werner Koch <wk@gnupg.org>
27076 build: Fix for: Build gpgcompose only in maintainer mode.
27077 + commit f45ed07a0fffa3adbc75b9d5726108a066927599
27078 * g10/Makefile.am (noinst_PROGRAMS): Always add module_tests.
27080 doc: Install gpg and gpgv man pages under the correct name.
27081 + commit 4dc4fb1c14b3096bb1cdc5923c0d1eb419036805
27082 * doc/mkdefsinc.c (main): Add double include guard. Set variable
27083 gpgtwohack. Define macros gpgname and gpgvname.
27084 * doc/gpg.texi: Remove macro definition for gpgname. Use Texinfo var
27085 gpgtwohack to prepare the man pages. Use @gpgname everywhere.
27086 * doc/gpgv.texi: Likewise.
27087 * doc/Makefile.am (myman_pages): Remove gpg2.1 and gpgv2.1 but add
27088 them depending on USE_GPG2_HACK.
27090 build: Build gpgcompose only in maintainer mode.
27091 + commit 4b5341dc333983a15f649601fdddc42ba9161433
27092 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose only in maintainer
27095 gpg: Replace use of "gpg2" by GPG_NAME.
27096 + commit 7b58a1118d98543ed6854447d7b403877638ba54
27099 2016-04-04 Werner Koch <wk@gnupg.org>
27101 Now build "gpg" binary but install as "gpg2"
27102 + commit 96bcd4220f1f1313afe12097d8dc62342ac8de0d
27103 * configure.ac (USE_GPG2_HACK): New ac_define am_conditional.
27104 * common/homedir.c (gnupg_module_name): Replace use of macro
27105 NAME_OF_INSTALLED_GPG.
27106 * g10/keygen.c (generate_keypair): Ditto.
27107 * g10/Makefile.am (bin_PROGRAMS): Remove.
27108 (noinst_PROGRAMS): Add gpg or gpg2 and gpgv or gpg2.
27109 (gpg2_hack_list): New.
27110 (use_gpg2_hack): New.
27111 (gpg2_SOURCES): Rename to gpg_SOURCES.
27112 (gpgv2_SOURCES): Rename to gpgv_SOURCES.
27113 (gpg2_LDADD): Rename to gpg_LDADD.
27114 (gpgv2_LDADD): Rename to gpgv_LDADD.
27115 (gpg2_LDFLAGS): Rename to gpg_LDFLAGS.
27116 (gpgv2_LDFLAGS): Rename to gpgv2_LDFLAGS.
27117 (install-exec-hook): Remove WinCE specific rules and add new rules.
27118 (uninstall-local): Uninstall gpg/gpg2 and gpgv/gpgv2.
27119 * tests/openpgp/Makefile.am (required_pgms): s/gpg2/gpg/.
27120 * tests/openpgp/defs.inc: Ditto.
27121 * tests/openpgp/gpgtar.test: Ditto.
27122 * tests/openpgp/mkdemodirs: Ditto.
27123 * tests/openpgp/signdemokey: Ditto.
27125 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Remove obsolete
27126 --enable-mailto, add --enable-gpg2-is-gpg.
27128 tests: Add missing file.
27129 + commit c6ed863491ec3a1e0fcf9cbe2c93c87468306c29
27130 * tests/openpgp/Makefile.am (TEST_FILES): Add plain-largeo.asc.
27132 2016-04-04 Justus Winter <justus@g10code.com>
27134 g10: Support armored keyrings in gpgv.
27135 + commit abb352de51bc964c06007fce43ed6f6caea87c15
27136 * doc/gpgv.texi: Document the feature.
27137 * g10/Makefile.am (gpgv2_SOURCES): Add dearmor.c.
27138 * g10/dearmor.c (dearmor_file): Add sink argument.
27139 * g10/gpg.c (main): Adapt accordingly.
27140 * g10/gpgv.c (make_temp_dir): New function.
27141 (main): De-armor keyrings.
27142 * g10/main.h (dearmor_file): Adapt prototype.
27144 tests: Fix default key test.
27145 + commit dd5902cc45bae7582f8a0bc91a0a7f4d8ae45d8c
27146 * tests/openpgp/default-key.test: Avoid using the option
27147 '--trust-model' unconditionally.
27149 2016-04-01 Justus Winter <justus@g10code.com>
27151 build: Check for conflicting trust model options.
27152 + commit 6060ea898fda499211c9d5030fff41d58f899fb0
27153 * configure.ac: Disable TOFU if configured without trust models, and
27154 check for conflicting options.
27156 g10: Remove option --always-trust if compiled without trust models.
27157 + commit b74185b6eaeaae4754726ff203e11977777f568c
27158 * g10/gpg.c (opts): Remove option --always-trust if compiled without
27161 2016-03-31 Justus Winter <justus@g10code.com>
27163 speedo,w32: Build libsqlite3.
27164 + commit e7171f559590422cc52dbcb8d78d94569b31012f
27165 * build-aux/speedo.mk (speedo_spkgs): Add libsqlite3 on w32.
27166 (libsqlite3_ver): New variable.
27167 (speedo_pkg_libsqlite3_tar): Likewise.
27169 g10: Use gpg-error abstraction of sched_yield.
27170 + commit 8be9dab2dd2f83ca922c01542c63b404e34bdfd9
27171 * g10/tofu.c (begin_transaction): Use 'gpgrt_yield'.
27173 2016-03-29 Werner Koch <wk@gnupg.org>
27175 gpg: Fix NULL-segv for missing tofu DB.
27176 + commit e2c5781788f765815532410a77077ddbb72513e9
27177 * g10/tofu.c (opendb): Guard call to timeout function.
27179 2016-03-22 Werner Koch <wk@gnupg.org>
27181 gpg: Improve message when asking for key capabilities.
27182 + commit fc30c079a348436868968850dabf653b91f82419
27183 * g10/keygen.c (ask_key_flags): Improve message.
27185 gpg: Remove the extra prompt for Curve25519.
27186 + commit 7f919063d3e426104fe58ae779a9a066140014c1
27187 * g10/keygen.c (MY_USE_ECDSADH): New macro local to ask_curve.
27188 (ask_curve): Use a fixed table of curve names and reserve a slot for
27189 Curve448. Simplify CurveNNNN/EdNNNN switching.
27190 (ask_curve): Remove the Curve25519 is non-standard prompt.
27192 2016-03-19 Werner Koch <wk@gnupg.org>
27194 gpg: Silence trustdb computation with --quiet.
27195 + commit af9a4afbf0b518c8acff98e50135b2beb6c722c3
27196 * g10/trustdb.c (validate_keys): Do not print log_info stuff in quiet
27199 2016-03-17 Werner Koch <wk@gnupg.org>
27201 sm: Always create a keybox header when creating a new keybox.
27202 + commit 1aad5c6277ea3852ff57bbf680f61c9136ce4d5c
27203 * sm/keydb.c (maybe_create_keybox): Create the header blob.
27205 2016-03-17 Neal H. Walfield <neal@g10code.com>
27207 doc: Improve documentation of --enable-large-rsa.
27208 + commit 1dc7f55a4095ee42ce2d8c3eb41b7162edf2ca2e
27209 * doc/gpg.texi (--enable-large-rsa): Improve text.
27211 2016-03-17 NIIBE Yutaka <gniibe@fsij.org>
27213 agent: allow removal of the shadowed key.
27214 + commit 8588c2dbc4c4d1b53796f3dbe8489b932dca7a60
27215 * agent/findkey.c (agent_delete_key): Remove the key when asked.
27217 2016-03-16 NIIBE Yutaka <gniibe@fsij.org>
27219 g10: Add const qualifier.
27220 + commit b752d2c93778e6a1c1de3eddf8fc725b0ddd354e
27221 * g10/gpgcompose.c (show_help): Those are strings not to be modified.
27223 2016-03-15 Werner Koch <wk@gnupg.org>
27225 gpg: Do not rely on a certain evaluation order.
27226 + commit 60b34f96f4f390670462d719c0d797e622cee4d4
27227 * g10/keyedit.c (print_and_check_one_sig): Call check_key_signature
27228 before derefing IS_SELFSIG.
27230 2016-03-14 Werner Koch <wk@gnupg.org>
27232 scd: Add manufacturer id 0x000a.
27233 + commit 834b84c0ee4990393daa5e44afbab5b0aaed0758
27234 * g10/card-util.c (get_manufacturer): Add it.
27236 2016-03-10 Kevin J. McCarthy <kevin@8t8.us>
27238 g10: Silence message if --quiet is given.
27239 + commit 4f578cb2fc192f44070bb0d18dffaa3863ed0d92
27240 * g10/getkey.c (parse_def_secret_key): Silence message if --quiet is
27243 2016-03-08 Neal H. Walfield <neal@g10code.com>
27245 gpg: Add a new test.
27246 + commit b17577eac6b7599a4bab6fd3ecb04715aa01367c
27247 * g10/Makefile.am (EXTRA_DIST): Add t-stutter-data.asc.
27248 (module_tests): Add t-stutter.
27249 (t_stutter_SOURCES): New variable.
27250 (t_stutter_LDADD): New variable.
27252 2016-03-07 Justus Winter <justus@g10code.com>
27254 sm: Implement pinentry loopback and reading passphrases from fd.
27255 + commit eea139c56ef55081d8cd8df2a35ce507386e0f17
27256 * doc/gpgsm.texi: Document '--pinentry-mode' and '--passphrase-fd'.
27257 * sm/Makefile.am (gpgsm_SOURCES): Add new files
27258 * sm/call-agent.c (struct default_inq_parm_s): New definition.
27259 (start_agent): Pass in the pinentry mode.
27260 (default_inq_cb): Handle 'PASSPHRASE' and 'NEW_PASSPHRASE' inquiries.
27261 Adapt all call sites to the new callback cookie.
27262 * sm/gpgsm.c (cmd_and_opt_values): Add new values.
27263 (opts): Add new options.
27264 (main): Handle new options.
27265 * sm/gpgsm.h (struct opt): Add field 'pinentry_mode'.
27266 * sm/passphrase.c: New file.
27267 * sm/passphrase.h: Likewise.
27269 sm: Remove unused argument '--fixed-passphrase'.
27270 + commit 53ed98eda77ff2dcf390cebd0cec9f2665661863
27271 * doc/gpgsm.texi: Drop description.
27272 * sm/gpgsm.c (cmd_and_opt_values): Drop enum value.
27273 (opts): Drop argument.
27274 (main): Drop argument handling.
27275 * sm/gpgsm.h (struct opt): Drop field 'fixed_passphrase'.
27277 kbx: Avoid undefined behavior.
27278 + commit a68ca5a90457ac97eee4efd7fdea596d27c54697
27279 * kbx/keybox-file.c (_keybox_read_blob2): Cast to unsigned int before
27282 2016-03-07 NIIBE Yutaka <gniibe@fsij.org>
27284 scd: Bug fix for a device with multiple interfaces.
27285 + commit 7a32f87cccddb40521bfdd4eb2d0dc9c88fb3fe5
27286 * scd/ccid-driver.c (scan_or_find_usb_device): Use IFC_NO when
27287 accessing interface information.
27289 2016-03-04 Justus Winter <justus@g10code.com>
27291 build: Make libusb a hard requirement if the ccid driver is requested.
27292 + commit e997552161b2dd8aabf350adee14e208e1545aef
27293 * configure.ac: Print an error message and die if the internal ccid
27294 driver is requested but no suitable libusb is found.
27296 g10: Drop superfluous declaration.
27297 + commit 1e4b7823008daea1a22a6f0f9b379fdec37a4cd4
27298 * g10/main.h (disable_core_dumps): Drop declaration.
27300 g10: Guard code against errors.
27301 + commit 40f6529ceeea806fc011135a9fa3a3590a9534ac
27302 * g10/keygen.c (do_generate_keypair): Check for errors, in which case
27305 2016-03-03 Justus Winter <justus@g10code.com>
27307 dirmngr: Add more missing CFLAGS.
27308 + commit 9f0ba5089e664447c36cee3d9249f95e4ea39957
27309 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
27311 (t_dns_stuff_CFLAGS): Likewise.
27313 tests/openpgp: Skip gpgtar test if it has not been built.
27314 + commit a883d4c0f8125e809c144ec69e76c9f522102d8f
27315 * tests/openpgp/gpgtar.test: Check if executable exists.
27317 2016-03-02 Neal H. Walfield <neal@g10code.com>
27319 gpg: Add new program gpgcompose.
27320 + commit d040628ddf2c09ddc9581ff365680a568ad24278
27321 * g10/packet.h: Include "util.h".
27322 * g10/encrypt.c (encrypt_seskey): Don't mark as static.
27323 * g10/gpgcompose.c: New file.
27324 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose.
27325 (gpg2_SOURCES): Split everything but gpg.c into...
27326 (gpg_sources): ... this new variable.
27327 (gpgcompose_SOURCES): New variable.
27328 (gpgcompose_LDADD): Likewise.
27329 (gpgcompose_LDFLAGS): Likewise.
27331 gpg: More robustly detect valid non-armored OpenPGP messages.
27332 + commit 605276ef8cd449bfd574ae6c498fa5d7d265c5c7
27333 * g10/armor.c (is_armored): More robustly detect valid non-armored
27336 common: Provide a function for mapping packet types to strings.
27337 + commit 24e0f1d56e6f56e7fb52b5c6bdb100131e12dfe3
27338 * common/openpgpdefs.h (pkttype_str): New function.
27340 gpg: Rename pop_filter to iobuf_pop_filter and export it.
27341 + commit 1463f9b9624fae97cc89df3aa4546655ee893f7c
27342 * common/iobuf.c (pop_filter): Rename from this...
27343 (iobuf_pop_filter): ... to this. Don't mark it as static.
27345 gpg: Split write_pubkey_enc_from_list.
27346 + commit 7eac4942b537c4b3710d34e6adb9c5d36338f38b
27347 * g10/encrypt.c (write_pubkey_enc_from_list): Split the body of this
27348 function out into...
27349 (write_pubkey_enc): ... this new function.
27351 gpg: Allow the caller to write the contents of a plaintext packet.
27352 + commit 2fdb950471bd36f046672254ff26ca94797cc9f1
27353 * g10/build-packet.c (do_plaintext): Change the semantics such that if
27354 PT->BUF is NULL, it is the caller's responsibility to write the
27355 content (and disable partial body length mode, if appropriate).
27357 gpg: Add a new function for creating binary notations.
27358 + commit 1a624586149f9e34206e5d5e1ba0b7d2b7004c80
27359 * g10/build-packet.c (blob_to_notation): New function.
27361 gpg: Refactor the printing of binary notations.
27362 + commit fd2d00ccf558b1ac1184967d8702ef01cd60bf60
27363 * g10/build-packet.c (sig_to_notation): Break printing of binary
27365 (notation_value_to_human_readable_string): ... this new function.
27366 Provide a small preview of the binary data substituting non-printable
27367 characters with '?'.
27369 2016-03-02 Uldis Anšmits <uldis.ansmits@tieto.com>
27371 tests/openpgp: Make tests more portable.
27372 + commit 1cdb744d91ab33563fc0b3156fb05694caa55278
27373 * tests/openpgp/default-key.test: Avoid 'grep -q'.
27374 * tests/openpgp/gpgtar.test: Avoid 'grep -qe' and 'diff -q'.
27375 * tests/openpgp/use-exact-key.test: Avoid 'grep -q'.
27377 2016-03-02 Justus Winter <justus@g10code.com>
27379 common: Consolidate Assuan server argument handling.
27380 + commit e77c85577d1bdd77ad3b81907145fd68f2653c01
27381 * common/Makefile.am (common_sources): Add new files.
27382 * common/server-help.c: New file.
27383 * common/server-help.h: Likewise.
27384 * agent/command.c: Drop argument handling primitives in favor of using
27385 the consolidated ones.
27386 * dirmngr/server.c: Likewise.
27387 * g10/server.c: Likewise.
27388 * g13/server.c: Likewise.
27389 * scd/command.c: Likewise.
27390 * sm/server.c: Likewise.
27392 2016-03-01 Justus Winter <justus@g10code.com>
27394 dirmngr: Add missing CFLAGS.
27395 + commit 9a1778abcae0a7afe33be8e02b6d9a909463cd54
27396 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
27397 'GPG_ERROR_CFLAGS'.
27398 (t_dns_stuff_CFLAGS): Likewise.
27400 tools: Drop superfluous include.
27401 + commit 3a1d142f9b71721a631cf2037665e9def60aa384
27402 * tools/gpgtar.c: Do not include unused 'npth.h'.
27404 2016-02-26 Werner Koch <wk@gnupg.org>
27406 gpg: Prettify a 2 octet hex output.
27407 + commit 2de0d41219a522e01f050d475b3ddecb9173fc7d
27408 * g10/sig-check.c (check_key_signature2): Wrap line and use %02x.
27410 2016-02-25 Neal H. Walfield <neal@g10code.com>
27412 gpg: Show debugging info if a sig with an unsupported sig class is used.
27413 + commit 87515e39295e4b7eaec1641c38e1ac32e8d39a91
27414 * g10/sig-check.c (check_key_signature2): If SIG->CLASS is
27415 unsupported, show some debugging information. Don't use BUG to fail.
27416 Just return GPG_ERR_BAD_SIGNATURE.
27418 gpg: More carefully encode a packet's length.
27419 + commit 960f5e26f2cda3ac6e6b30548fa808a690c39ffc
27420 * g10/build-packet.c (write_header2): Make sure the length bits are
27421 cleared. Fail if HDRLEN is set and the specified length can't be
27422 encoded in the available space.
27424 gpg: Avoid directly twiddling bits.
27425 + commit 105a5629c7e938ec7b3c9c338ebe7bdfee4cfdad
27426 * g10/build-packet.c (do_plaintext): Use ctb_new_format_p to check the
27428 (write_header2): Likewise.
27430 gpg: Add some asserts.
27431 + commit c9636a1acc952eb8e1355089bc2e229dece98165
27432 * g10/build-packet.c (ctb_new_format_p): New function.
27433 (ctb_pkttype): New function.
27434 (do_user_id): Add some asserts.
27435 (do_key): Likewise.
27436 (do_symkey_enc): Likewise.
27437 (do_pubkey_enc): Likewise.
27438 (do_plaintext): Likewise.
27439 (do_encrypted): Likewise.
27440 (do_encrypted_mdc): Likewise.
27441 (do_compressed): Likewise.
27442 (do_signature): Likewise.
27443 (do_signature): Likewise.
27444 (write_header2): Likewise.
27446 gpg: Avoid an unnecessary copy.
27447 + commit 512bc72e1f8544341529174142273d857f45540c
27448 * g10/build-packet.c (sig_to_notation): Avoid an unnecessary copy of
27449 the data: the size of the packet is fixed.
27451 2016-02-23 Neal H. Walfield <neal@g10code.com>
27453 common: Reduce buffer size.
27454 + commit 75861b663bbb37214143c2ff7b1b4d1d10ba2657
27455 * common/iobuf.c (iobuf_copy): Change buffer size from 1 MB to 32 KB.
27457 common: Improve a function's documentation and comments.
27458 + commit 14d27b2cadf9b0bb413f2b8bad2d81c1d370c2e7
27459 * common/iobuf.c (iobuf_set_partial_body_length_mode): Fix
27460 documentation and comment. Add an assert.
27462 common: Add log_assert.
27463 + commit f57a91afb69c58f9d8d9632801650f28c7dc1e0d
27464 * common/logging.h (log_assert): New macro.
27466 gpg: Use higher-level functions.
27467 + commit 33ac735a781325c4d47cdf6216813866ab93562e
27468 * g10/build-packet.c (do_symkey_enc): Use iobuf_write instead of
27469 iobuf_put in a loop. Use iobuf_copy instead of iobuf_read and
27470 iobuf_write in a loop. Move the memory wiping from here...
27471 * common/iobuf.c (iobuf_copy): ... to here.
27473 common: Check for an error before reading.
27474 + commit 8066f8a3470f9d2f3682a28641a7b09eca29a105
27475 * common/iobuf.c (iobuf_copy): If DEST has a pending error, don't
27478 common: More accurately name function.
27479 + commit 903466e124841cb29f518afa6b7706d490737ac3
27480 * common/iobuf.c (iobuf_set_partial_block_mode): Rename from this...
27481 (iobuf_set_partial_body_length_mode): ... to this. Update callers.
27483 2016-02-23 Werner Koch <wk@gnupg.org>
27485 g13: Add commands --suspend and --remove.
27486 + commit f7968db30b0e0ccae038e354568accb0a05d877c
27487 * g13/g13.c (aSuspend, aResume): New.
27488 (opts): Add commands --suspend and --resume.
27489 (main): Implement dummy command aUmount. Implement commands aResume
27491 * g13/sh-cmd.c (cmd_suspend): New.
27493 (register_commands): Add commands RESUME and SUSPEND.
27494 * g13/server.c (cmd_suspend): New.
27496 (register_commands): Add commands RESUME and SUSPEND.
27497 * g13/be-dmcrypt.c (be_dmcrypt_suspend_container): New.
27498 (be_dmcrypt_resume_container): New.
27499 * g13/backend.c (be_suspend_container): New.
27500 (be_resume_container): New.
27501 * g13/suspend.c, g13/suspend.h: New.
27502 * g13/mount.c (parse_header, read_keyblob_prefix, read_keyblob)
27503 (decrypt_keyblob, g13_is_container): Move to ...
27504 * g13/keyblob.c: new file.
27505 (keyblob_read): Rename to g13_keyblob_read and make global.
27506 (keyblob_decrypt): Rename to g13_keyblob_decrypt and make global.
27507 * g13/sh-dmcrypt.c (check_blockdev): Add arg expect_busy.
27508 (sh_dmcrypt_suspend_container): New.
27509 (sh_dmcrypt_resume_container): New.
27510 * g13/call-syshelp.c (call_syshelp_run_suspend): New.
27511 (call_syshelp_run_resume): New.
27513 g13: Run mount after dmsetup.
27514 + commit f26867928c451443769fecc41c3283e077e8c49f
27515 * g13/g13-syshelp.c (main): Reject userids with a slash.
27516 * g13/sh-dmcrypt.c (sh_dmcrypt_mount_container): Run mount if a
27517 mountpoint is known.
27519 2016-02-23 Justus Winter <justus@g10code.com>
27521 tests/openpgp: Qualify executables with extension.
27522 + commit ede0061febe5b2edde6a1a79d599e3c7c0faed5a
27523 * tests/openpgp/Makefile.am (required_pgms): Qualify executables with
27526 tests/openpgp: Reimplement 'pinentry.sh' in c.
27527 + commit 01dcc2cf2f2f00235ffa7d0718ecb468370980cc
27528 * tests/openpgp/Makefile.am: Build new program.
27529 * tests/openpgp/defs.inc: Use the new program.
27530 * tests/openpgp/fake-pinentry.c: New file.
27532 tests/openpgp: Avoid dependency on source files.
27533 + commit 785a7f463ec4e937304ce1263c5e6a46e8079137
27534 * tests/openpgp/plain-largeo.asc: New file.
27535 * tests/openpgp/version.test: Dearmor the new file instead of relying
27536 on the source being present.
27538 tests/openpgp: Fix file removal.
27539 + commit 629284120ff359b98a178b6cddf0e005e5f4db1a
27540 * tests/openpgp/version.test: Fix file removal.
27542 common/exechelp: Provide a way to wait for multiple processes.
27543 + commit 5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81
27544 * common/exechelp-posix.c (gnupg_wait_process): Generalize to
27545 'gnupg_wait_processes'.
27546 * common/exechelp-w32.c (gnupg_wait_process): Likewise.
27547 * common/exechelp-w32ce.c (gnupg_wait_process): New function stub.
27548 * common/exechelp.h (gnupg_wait_process): New prototype.
27550 common/exechelp: Add general pipe function.
27551 + commit 9f4a8d4ea173b4b4cb4d4f06b4004d43e2f4b97a
27552 * common/exechelp-posix.c (gnupg_create_pipe): New function.
27553 * common/exechelp-w32.c (INHERIT_{READ,WRITE,BOTH}): New macros.
27554 (create_inheritable_pipe): Generalize so that both ends can be
27556 (do_create_pipe): Rename argument accordingly.
27557 (gnupg_create_{in,out}bound_pipe): Use new flags.
27558 (gnupg_create_pipe): New function.
27559 (gnupg_spawn_process): Use new flags.
27560 * common/exechelp-w32ce.c (gnupg_create_pipe): New stub.
27561 * common/exechelp.h (gnupg_create_pipe): New prototype.
27563 common/exechelp: Mute the Windows version.
27564 + commit 54acc87c1e0b100accbfd02cfce59a897f2f0ce1
27565 * common/exechelp-w32.c (gnupg_wait_process): Do not print an error if
27566 the exit code can be returned. This makes the Windows version behave
27567 like the POSIX version.
27569 common/exechelp: Avoid magic numbers.
27570 + commit 709e2a7e9a3197e8ded4be0b05c138e8d5adbca6
27571 * common/exechelp-w32.c (do_create_pipe): Use symbolic names.
27573 common/exechelp: Disable debugging by default.
27574 + commit 5d8f7b16c8490d6951772fa98c1f075a952cc571
27575 * common/exechelp-w32.c (DEBUG_W32_SPAWN): Set to 0.
27577 common/exechelp: Fix handle leak.
27578 + commit dd670366d7aedb07e9420d1f8575197acfae1914
27579 * common/exechelp-w32.c (gnupg_spawn_process_detached): Close process
27582 common/exechelp: Fix opening the 'nul' device.
27583 + commit 8857590006266da200427f2d4f9e8c27fbc89ed9
27584 * common/exechelp-w32.c (gnupg_spawn_process): Fix opening the 'nul'
27587 common/exechelp: Fix error handling.
27588 + commit f5a4b6a3a39a2b78d33769184d6133d5e256e02c
27589 * common/exechelp-w32.c (gnupg_spawn_process): Close the right handle.
27591 common/exechelp: Fix pipe creation.
27592 + commit b0125ae9850973b89010517b1dbce04125a51d51
27593 * common/exechelp-w32.c (gnupg_spawn_process): Fix the creation of the
27596 tools/mk-tdata: Fix data generation on Windows.
27597 + commit 661ba477e01b796db161fa612b46c353393c6b10
27598 * tools/mk-tdata.c (main): Set stdout to binary mode to avoid newline
27601 2016-02-19 Neal H. Walfield <neal@g10code.com>
27603 gpg: Systematically detect and fix signatures that are out of order.
27604 + commit 2d1d795481bc011447284f8ce0a3ae96a08daf17
27605 * g10/keyedit.c (sig_comparison): New function.
27606 (fix_key_signature_order): Merge functionality into...
27607 (check_all_keysigs): ... this function. Rewrite to eliminate
27608 duplicates and use a systematic approach to detecting and moving
27609 signatures that are out of order instead of a heuristic.
27610 (fix_keyblock): Don't call fix_key_signature_order. Call
27611 check_all_keysigs instead after collapsing the uids.
27613 gpg: Split check_key_signature2.
27614 + commit 44cdb9d73f1a0b7d2c8483a119b9c4d6caabc1ec
27615 * g10/sig-check.c (hash_uid_node): Rename from this...
27616 (hash_uid_packet): ... to this. Take a PKT_user_id instead of a
27618 (check_key_signature2): Split the basic signature checking
27619 functionality into...
27620 (check_signature_over_key_or_uid): ... this new function.
27622 gpg: Split print_and_check_one_sig.
27623 + commit 5fbd80579aea0f75ca1d2700515c5b8747a75c7d
27624 * g10/keyedit.c (print_and_check_one_sig): Split the print
27625 functionality into...
27626 (print_one_sig): ... this new function.
27628 gpg: Split the function check_signature_end.
27629 + commit ac5aea95455372145f3f06df2b4c1584d759d660
27630 * g10/sig-check.c (check_signature_end): Break the basic signature
27632 (check_signature_end_simple): ... this new function.
27634 gpg: Use format_keyid rather than manually formatting the keyid.
27635 + commit 10671c3a4c18ea26035a5819a9f2b8fd6c7e41ea
27636 * g10/keyedit.c (menu_addrevoker): Use format_keyid rather than
27637 manually formatting the keyid.
27638 * g10/keygen.c (card_write_key_to_backup_file): Likewise.
27640 gpg: Initialize the primary key when generating a key.
27641 + commit bf9d1248c80205795e26156f67aff0b3f796cfce
27642 * g10/keygen.c (do_generate_keypair): Initialize
27643 pri_psk->flags.primary, pri_psk->keyid and pri_psk->main_keyid.
27645 gpg: Add accessor & utility functions for pk->keyid and pk->main_keyid.
27646 + commit c45633a571bf663bc7f3610fc481acded6acfc19
27647 * g10/keydb.h (keyid_cmp): New function.
27648 * g10/keyid.c (pk_keyid): New function.
27649 (pk_main_keyid): New function.
27650 (keyid_copy): New function.
27651 (pk_keyid_str): New function.
27652 * g10/packet.h (PKT_public_key): Update comments for main_keyid and
27655 2016-02-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
27657 gpgparsemail: Allow weirdly-mixed pkcs7 signatures.
27658 + commit 7e7f35a2d7d40267a4dd30791df77420efeebfa7
27659 * tools/gpgparsemail.c: Add and check info->signing_protocol_2.
27661 gpg: Clean up dangling agent_open and agent_closed declarations.
27662 + commit 813df2fe6656e55bea4d0be07cc964a140218412
27663 * g10/keydb.h: Remove agent_open, agent_close declarations/
27664 * g10/migrate.c: #include <unistd.h> for access()
27666 2016-02-16 Werner Koch <wk@gnupg.org>
27668 w32: Make scdaemon build again due to libusb problem.
27669 + commit e1ceff16765b0342531709cf97d03ef0158c29d5
27670 * configure.ac: Add hack to disable libusb for Windows. Also use
27671 $host instead of $target in the switch
27674 The new test for libusb does not support cross-compiling. As a quick
27675 workaround we disable libusb for Windows because we can't use it anyway.
27677 w32: Do not error out if gpgconf is not installed.
27678 + commit 44b02e1beb4f38f26551d932827d5317fddd27c2
27679 * common/homedir.c (check_portable_app): Remove error message.
27681 2016-02-16 Neal H. Walfield <neal@g10code.com>
27683 gpg: Make ASCII armor decoding more robust to encoding errors.
27684 + commit 2f02ed75a9671a7aae36968d5a1618f71b491325
27685 * g10/armor.c (radix64_read): If the = is followed by the string "3D",
27686 check if the following four characters are valid radix 64 and are
27687 followed by a new line. If so, warn and ignore the '3D'.
27689 2016-02-16 Werner Koch <wk@gnupg.org>
27691 doc: Add a gnupg-module-overview picture.
27692 + commit a1c11283af759c1045a8bb75815db325f415ded4
27693 * doc/gnupg-module-overview.svg: New.
27694 * doc/debugging.texi (Component interaction): New.
27695 * doc/Makefile.am (EXTRA_DIST): Add PNG and PDF versions of
27696 gnupg-module-overview.svg. Remove two eps files.
27697 (BUILT_SOURCES): Add gnupg-module-overview.pdf and .png. Remove
27698 gnupg-card-architecture.epsl
27699 (gnupg_TEXINFOS): Add gnupg-module-overview.svg
27701 (DISTCLEANFILES): Remove build eps files.
27703 2016-02-15 NIIBE Yutaka <gniibe@fsij.org>
27705 common, g10: Fix indentation to silence GCC-6.
27706 + commit ea9cfcfbf76de232221f31787c53d5f46361a9f0
27707 * common/iobuf.c (iobuf_ioctl): Fix.
27708 * g10/encrypt.c (encrypt_filter): Likewise.
27709 * g10/keyring.c (prepare_search): Likewise.
27711 dirmngr: fix for memory alignment.
27712 + commit 6fbe12a51e8fe2649ffe5a8a02aa93026a8f02cd
27713 * dirmngr/dns-stuff.c (get_dns_cert): Cast through void *.
27714 (getsrv, get_dns_cname): Make sure it's aligned for HEADER.
27716 2016-02-14 Werner Koch <wk@gnupg.org>
27718 gpg: Add hidden key-edit subcommand "change-usage".
27719 + commit 9b28b82e7c40d1eacc446d5932cd613c56378ed8
27720 * g10/keyedit.c (cmdCHANGEUSAGE): New.
27721 (cmds): Add command "change-usage".
27722 (keyedit_menu): Handle that command.
27723 (menu_changeusage): New.
27724 * g10/keygen.c (keygen_add_key_flags): New.
27725 (ask_key_flags): Add optional arg current.
27727 2016-02-14 Neal H. Walfield <neal@g10code.com>
27729 gpg: Improve API documentation.
27730 + commit 9663b088480cef6734a3c5892d5ddbbd60ecc1a4
27731 * g10/seskey.c (make_session_key): Improve documentation.
27732 (encode_session_key): Improve documentation.
27733 * g10/encrypt.c (encrypt_seskey): Remove gratuitous initialization.
27734 * g10/dek.h (DEK): Improve documenation.
27736 gpg: Fix calc_header_length when LEN is 0 and improve documentation.
27737 + commit 5cdde08ea869ef02111f618ad782d392a296eb7f
27738 * g10/build-packet.c (calc_header_length): Return the correct haeder
27739 size when LEN is 0. Fix documentation.
27741 gpg: Fix format_keyid when dynamically allocating the buffer.
27742 + commit c0268c449d0f3d23be5ec7b92fe92e7e078166cf
27743 * g10/keyid.c (format_keyid): Return a char *, not a const char *. If
27744 BUFFER is NULL, then set LEN to the static buffer's size.
27746 common: Fix comment.
27747 + commit ad43dc6cfc2b610a4e34fe55811bd937f9c3238b
27748 * common/iobuf.c (iobuf_flush_temp): Fix comment.
27750 2016-02-13 Werner Koch <wk@gnupg.org>
27752 g13: Require a confirmation before g13 is used for DM-Crypt.
27753 + commit 86f3bb144ad75461eb9b7ac1e59046ac75efccac
27754 * g13/g13-syshelp.c (g13_syshelp_i_know_what_i_am_doing):
27755 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Call it.
27756 (sh_dmcrypt_mount_container): Call it.
27758 g13: Second chunk of code to support dm-crypt.
27759 + commit b0e6ab1109d05fc664f46e17d721fe9b01d38115
27760 * g13/be-dmcrypt.c, g13/be-dmcrypt.h: New.
27761 * g13/Makefile.am (g13_SOURCES): Add them.
27762 * g13/backend.c: Include be-dmcrypt.h and call-syshelp.h.
27763 (no_such_backend): Rename to _no_such_backend and provide replacement
27765 (be_is_supported_conttype): Support DM-Crypt.
27766 (be_take_lock_for_create): Call set_segvice for DM-Crypt.
27767 (be_create_new_keys): Make it a dummy for DM-Crypt.
27768 (be_create_container): Call be_dmcrypt_create_container.
27769 (be_mount_container): call be_dmcrypt_mount_container.
27770 * g13/g13-syshelp.c (main): Enable verbose mode.
27771 * g13/g13tuple.c (get_tupledesc_data): New.
27772 * g13/g13tuple.h (unref_tupledesc): New.
27773 * g13/g13.h (server_control_): Add field "recipients".
27774 * g13/g13.c (main): Fix setting of recipients via cmdline.
27775 (g13_deinit_default_ctrl): Release recipients list.
27776 (g13_request_shutdown): New. Replace all direct update of
27777 shutdown_pending by calls this function.
27778 * g13/server.c (server_local_s): Remove field recipients which is now
27780 (reset_notify, cmd_recipient, cmd_create): Adjust for this change.
27781 * g13/create.c (encrypt_keyblob): Rename to g13_encrypt_keyblob.
27782 (g13_create_container): Support DM-Crypt.
27783 * g13/mount.c (parse_header): Allow for meta data copies.
27784 (g13_mount_container): Support DM-Crypt.
27785 * g13/sh-cmd.c (cmd_create): Make it work.
27787 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Make it work.
27788 (sh_dmcrypt_mount_container): New.
27790 g13: Improve dump_keyblob.
27791 + commit 13f745b50dc7031755faadb2d3476a6b6aafc739
27792 * g13/g13tuple.c: Include keyblob.h.
27793 (find_tuple_uint): Factor code out to ...
27794 (convert_uint): new.
27795 (all_printable): New.
27796 * g13/mount.c (dump_keyblob: Move and rename to ...
27797 * g13/g13tuple.c (dump_tupledesc): here. Revamp and pretyy print uint
27800 g13: Define 3 new tags.
27801 + commit 59fc3507d18072833559f227ecab8aa00cad9466
27802 * g13/keyblob.h (KEYBLOB_TAG_CONT_NSEC): New.
27803 (KEYBLOB_TAG_ENC_NSEC): New.
27804 (KEYBLOB_TAG_ENC_OFF): New.
27806 g13: Rename utils.c to g13tuple.c.
27807 + commit 82d12156ef5f948d44934ed44d79d24cc9e94366
27808 * g13/utils.c: Rename to g13tuple.c.
27809 * g13/utils.h: Rename to g13tuple.h. Change all users.
27810 * g13/Makefile.am: Adjust accordingly
27812 g13: Add functions to handle uint in a keyblob.
27813 + commit 4f152f3276b6d40d2568a27e74903dd18b41d752
27814 * g13/utils.c (append_tuple_uint): New.
27815 (find_tuple_uint): New.
27816 * g13/t-utils.c: New.
27817 * g13/Makefile.am (noinst_PROGRAMS, TESTS): New.
27818 (module_tests, t_common_ldadd): New.
27819 (t_utils_SOURCES, t_utils_LDADD): New.
27821 g13: Re-factor high level create code.
27822 + commit dc1dbc43a6bfb2f3e6a1cc2ca089e0318b3af0ed
27823 * g13/create.c (g13_create_container): Factor some code out to ...
27824 * g13/backend.c (be_take_lock_for_create): new.
27826 g13: Return an error for non-existing device.
27827 + commit 3087197008d2b12bf9f0d7d1f2aca500db816e7c
27828 * g13/sh-cmd.c (cmd_device): Set ERR.
27830 g13: Fix releasing of a syshelp context.
27831 + commit 6390beca54f55e8d36ff767b99ae9ff68b15f10e
27832 * g13/call-syshelp.c (call_syshelp_release): Allow a NULL arg.
27834 g13: Switch over to common/exectool.c.
27835 + commit c5d7045dafcfb569c11c90c04ea7a75328c80084
27836 * g13/sh-exectool.c: Remove. It has been replaced by common/exectool.c.
27837 * g13/Makefile.am (g13_syshelp_SOURCES): Remove sh-exectool.c
27838 * g13/sh-blockdev.c: Include exectool.h. Change sh_exec_tool to
27840 * g13/sh-dmcrypt.c: Ditto.
27842 common: Make gnupg_exec_tool conform to spec.
27843 + commit d19d6e1856c9a1acbf48e8b2e39b3d9171aa9f7f
27844 * common/exectool.c (gnupg_exec_tool): Allocate extra byte. Allow
27845 zero length read. Append hidden byte. Release memory on error.
27847 g13: First chunk of code to support dm-crypt.
27848 + commit 81494fd30d3815502247a721f50d9eadf86a73fa
27849 * g13/call-syshelp.c, g13/call-syshelp.h: New.
27850 * g13/g13-syshelp.c, g13/g13-syshelp.h: New.
27851 * g13/sh-cmd.c: New.
27852 * g13/sh-blockdev.c: New.
27853 * g13/sh-exectool.c: New.
27854 * g13/sh-dmcrypt.c: New.
27855 * g13/Makefile.am (sbin_PROGRAMS): Add g13-syshelp.c
27856 (g13_syshelp_SOURCES): New.
27857 (g13_syshelp_LDADD): New.
27859 * g13/g13.c (opts): Add option --type.
27860 (g13_deinit_default_ctrl): New.
27861 (main): Implement that option. Call g13_deinit_default_ctrl.
27862 * g13/g13.h (struct call_syshelp_s): New declaration.
27863 (server_control_s): Add field syshelp_local.
27864 * g13/keyblob.h (KEYBLOB_TAG_CREATED): New.
27865 (KEYBLOB_TAG_ALGOSTR): New.
27866 (KEYBLOB_TAG_HDRCOPY): New.
27867 * g13/backend.c (be_parse_conttype_name): New.
27868 (be_get_detached_name): Add CONTTYPE_DM_CRYPT.
27870 tests: Remove some harmless warnings in regression tests.
27871 + commit d711f5c7697cd4bc5dc6d9fd01706cabc771dad2
27872 * tests/openpgp/gpg-agent.conf.tmpl: Remove --use-standard-socket.
27874 2016-02-12 Neal H. Walfield <neal@g10code.com>
27876 common: Change simple_query to ignore status messages.
27877 + commit acac103ba5772ae738ce5409d17feab80596cde6
27878 * common/simple-pwquery.c (simple_query): Ignore status messages.
27880 2016-02-12 NIIBE Yutaka <gniibe@fsij.org>
27882 g10: Make sure to have the directory for trustdb.
27883 + commit d9f9b3be036747c9f55060aed47896f951bfb853
27884 * g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE. Check
27885 the directory and create it if none before calling take_write_lock.
27887 2016-02-02 Neal H. Walfield <neal@g10code.com>
27889 doc: Note that rngd can also be used to quickly generate insecure keys.
27890 + commit 75311cfe18071b94c66121a9785b133b6df345a3
27891 * doc/gpg-agent.texi (Agent Options): Add comment to the description
27892 of --debug-quick-random that rngd can also be used to quickly generate
27895 2016-01-27 Werner Koch <wk@gnupg.org>
27897 scd: Fix size_t/int mismatch in libusb.
27898 + commit 3d952a2fe5da9d84c20d3debdcc1e425b08781c6
27899 * scd/ccid-driver.c (bulk_in, abort_cmd, ccid_poll): Change msglen to
27902 scd: Fix detection of libusb.
27903 + commit 1b90b52a56b4f808ad29a7ef79aeafc03c7424b4
27904 * configure.ac (HAVE_LIBUSB): Clear if no header file was found.
27905 (LIBUSB_LIBS): Ditto.
27907 dirmngr: Build fix for FreeBSD (EAI macros)
27908 + commit 4d67144142f04184b835e50314eb21b882b9e00a
27909 * dirmngr/dns-stuff.c (map_eai_to_gpg_error): Map EAI_NODATA and
27910 EAI_ADDRFAMILY only if defined.
27912 2016-01-27 NIIBE Yutaka <gniibe@fsij.org>
27914 scd: Migrate to new API of libusb 1.0.
27915 + commit d0d97089706286fafd3c8ff56f3b5bf7ac07c6e0
27916 * configure.ac (LIBUSB_CPPFLAGS): New.
27917 * scd/Makefile.am (AM_CPPFLAGS): Add LIBUSB_CPPFLAGS.
27918 * scd/ccid-driver.c: Use libusb 1.0 API.
27920 2016-01-26 Werner Koch <wk@gnupg.org>
27923 + commit e9e5e83ec14459c2fc9060c54fc8e7381b541acd
27926 2016-01-26 Andre Heinecke <aheinecke@intevation.de>
27928 gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32.
27929 + commit 3e50236d4ecc3601b2641bf4273a0ff64bb5fdc4
27930 * common/utf8conv.c (wchar_to_utf8): Factor code out to ...
27931 (wchar_to_cp): new.
27932 (utf8_to_wchar): Factor code out to ...
27933 (cp_to_wchar): new.
27934 (wchar_to_native): New.
27935 (native_to_wchar): New.
27936 * tools/gpgtar-create.c (fillup_entry_w32): Use native_to_wchar.
27937 (scan_directory): Use wchar_to_native.
27939 2016-01-26 NIIBE Yutaka <gniibe@fsij.org>
27941 g10: Fix segfault on unsupported curve.
27942 + commit b8bb16c6c08d3c2947f1ff67419b36eb203c5c1a
27943 * g10/call-agent.c (learn_status_cb): Don't use NULL for strcmp.
27945 sm: small fix for GCC 6.
27946 + commit d33a34004bef028068538f099c32a0e292a004c3
27947 * sm/export.c (insert_duptable): Use unsigned 0.
27949 2016-01-25 Werner Koch <wk@gnupg.org>
27950 Daiki Ueno <ueno@gnu.org>
27952 gpg: Print PROGRESS status lines during key generation.
27953 + commit fbe1cf67aadc5a33cf815ddbcfc9669e43caa123
27954 * g10/call-agent.c (cache_nonce_status_cb): Rewrite by using
27955 has_leading_keyword. Handle PROGRESS lines.
27957 2016-01-25 Werner Koch <wk@gnupg.org>
27959 agent: Send PROGRESS status lines to the client.
27960 + commit ee87c653bf4b495714e8e6b024d0a8ace3a33452
27961 * agent/gpg-agent.c (struct progress_dispatch_s): New.
27962 (progress_dispatch_list): New.
27963 (main): Register libgcrypt pogress handler.
27964 (agent_libgcrypt_progress_cb): New.
27965 (agent_set_progress_cb): New.
27966 (unregister_progress_cb): New.
27967 (agent_deinit_default_ctrl): Call unregister.
27968 * agent/command.c (progress_cb): New.
27969 (start_command_handler): Register progress callback.
27971 speedo: Allow use of SHA-256 checksums.
27972 + commit 039a55716b8abd22ce23a96dce34cf2dc4be1862
27973 * build-aux/getswdb.sh: Add option --find-sha256sum.
27974 * build-aux/speedo.mk (libgpg_error_sha2): New var. Also for all
27977 (SETVARS, SETVARS_W64): Prefer sha256sum over sha1sum.
27978 (installer-from-source): Create swdb fragment.
27980 2016-01-22 Werner Koch <wk@gnupg.org>
27982 dirmngr: Indicate that serial numbers are hexadecimal.
27983 + commit 12c665b36cdc4b7189549698fc4cc1b3523b18f5
27984 * dirmngr/misc.c (hexify_data): Add arg with_prefix. Adjust all
27986 * dirmngr/crlcache.c (cache_isvalid): Print "0x" in front of the S/N.
27988 dirmngr: Provide the keyserver pool name even if there is no CNAME.
27989 + commit 77bceb2902dd489443073d91836ea54376c60bf6
27990 * dirmngr/ks-engine-hkp.c (map_host): Fix setting of r_poolname.
27992 2016-01-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
27995 dirmngr: Use sks-keyservers CA by default for the hkps pool.
27996 + commit afb8696126ff0babaab23e884ff5da008281e3b7
27997 * dirmngr/Makefile.am (dist_pkgdata_DATA): Add sks-keyservers.netCA.pem.
27998 * dirmngr/http.c (http_session_new): Add optional arg
27999 intended_hostname and set a default cert.
28000 * dirmngr/ks-engine-hkp.c (send_request): Pass httphost to
28003 2016-01-22 Werner Koch <wk@gnupg.org>
28005 gpg: Allow new user ids with only the mail address.
28006 + commit fc0c71dfe5ea8f1c683101948c23f5d2064ee4cd
28007 * g10/keygen.c (ask_user_id): Allow empty name.
28009 2016-01-21 Werner Koch <wk@gnupg.org>
28011 gpg: Improve header text of the auto-created revocations.
28012 + commit bb99b40bd1e624f58ca806ca16dc73d4d594a30a
28013 * g10/revoke.c (gen_standard_revoke): Improve header text for the
28014 file. Add info output.
28016 gpg: Make --auto-key-retrieve work with dirmngr configured server.
28017 + commit 09117e769a093467cb47154f36d7dda613313e33
28018 * g10/call-dirmngr.c (gpg_dirmngr_ks_list): Make R_KEYSERVER optional.
28019 * g10/keyserver.c (keyserver_any_configured): New.
28020 (keyserver_put): Remove arg keyserver because this will always receive
28021 opt.keyserver which is anyway used when connecting dirmngr. Do not
28022 check opt.keyserver.
28023 (keyserver_import_cert): Replace opt.keyserver by
28024 keyserver_any_configured.
28025 * g10/mainproc.c (check_sig_and_print): Ditto.
28026 * g10/import.c (revocation_present): Ditto.
28027 * g10/getkey.c (get_pubkey_byname): Ditto.
28028 * g10/gpgv.c (keyserver_any_configured): Add stub.
28029 * g10/test-stubs.c (keyserver_any_configured): Add stub.
28031 2016-01-20 Werner Koch <wk@gnupg.org>
28033 gpg: Silence message about ignoring revoked user ids.
28034 + commit bdb61351776c038d668310d9b5e5c32588ef6519
28035 * g10/trustdb.c (tdb_get_validity_core): Print message only in debug
28038 agent: New option --pinentry-timeout.
28039 + commit 499743387f4d07847a2842358bc54f9237e0c2a7
28040 * agent/gpg-agent.c (oPinentryTimeout): New.
28041 (opts): Add new option.
28042 (parse_rereadable_options): PArse that option.
28043 (main): Tell gpgconf about this option.
28044 * agent/call-pinentry.c (start_pinentry): Send option to Pinentry.
28045 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add Option.
28047 2016-01-19 Werner Koch <wk@gnupg.org>
28049 gpg: Streamline use of error messages in tofu.c.
28050 + commit cfa41890bb5ff306c07dad295136601fe47566a7
28051 * g10/tofu.c: Make use of print_further_info to reduce the number of
28052 different error messages to be translated. Also streamline some
28055 common: Add substitute code for libgpg-error < 1.22.
28056 + commit 8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f
28057 * common/util.h (GPG_ERR_DB_CORRUPTED): New.
28059 gpg: Add function print_further_info.
28060 + commit d96e76d15f61812b950b64a60bc47117785a9dac
28061 * g10/misc.c (print_further_info): New.
28063 2016-01-18 Werner Koch <wk@gnupg.org>
28065 g10: Improve strings printed by tofu.c.
28066 + commit 79778a8dd5f61a6b7abeeb44b75d82932db788b7
28067 * g10/tofu.c: Include ttyio.h. Change many strings to help
28068 translating. Make use of ngettext wehere needed.
28070 (TIME_AGO_UNIT_SMALL_NAME): Remove this and all similar *_NAME macros.
28071 (time_ago_unit): Remove.
28072 (get_trust): Use tty_prints and cpr_get only for the actual prompt.
28074 (show_statistics): Use two English strings for singular and plural.
28076 * po/POTFILES.in: Add tofu.c.
28078 gpg: Use "days" in "...newer than..." diagnostics.
28079 + commit 9309bda9581715d304305c8c5116f2cbb31aec77
28080 * g10/sig-check.c (check_signature_metadata_validity): Use days if
28083 Use ngettext for some strings.
28084 + commit 437965e5622612941ed0fa55584811c65069242e
28085 * scd/app-openpgp.c (build_enter_admin_pin_prompt): Use ngettext for
28087 (do_genkey): Ditto.
28088 * g10/keyedit.c (check_all_keysigs, menu_delsig, menu_clean): Ditto.
28089 * g10/keylist.c (print_signature_stats): Ditto.
28090 * g10/keyserver.c (keyserver_refresh): Ditto.
28091 * g10/sig-check.c (check_signature_metadata_validity): Ditto.
28092 * g10/sign.c (do_sign): Ditto.
28093 * g10/trustdb.c (reset_trust_records): Ditto.
28094 (validate_keys): Use a table like diagnostic output.
28096 2016-01-15 Werner Koch <wk@gnupg.org>
28098 kbx,w32: Use shorter retry intervals for keybox_file_rename.
28099 + commit 3cccd5a83b96e4558642dcdf5d974f64ebdb9817
28100 * kbx/keybox-util.c (keybox_file_rename): Restart retry intervals
28103 2016-01-14 Werner Koch <wk@gnupg.org>
28105 w32: Fix deadlock introduced by keybox_file_rename.
28106 + commit 663c5d129a8f400cc6eb8ab7b91772d6e578152d
28107 * g10/keyring.c (keyring_lock) [W32]: Flush the close cache before
28109 * kbx/keybox-init.c (keybox_lock) [W32]: Close the file before
28112 gpg: Detect race between pubring.gpg and pubring.kbx use.
28113 + commit 3b1248e007a6bf830a3230ee2d9cc548205ec31a
28114 * g10/keydb.c (maybe_create_keyring_or_box): Detect race condition.
28116 kbx: New function keybox_file_rename to replace rename.
28117 + commit 8241ed59d05e06252647b26477ed5c2f84895a26
28118 * kbx/keybox-util.c: Include windows.h.
28119 (keybox_file_rename): New.
28120 * kbx/keybox-update.c (rename_tmp_file): Replace remove+rename by
28121 keybox_file_rename.
28122 * g10/keyring.c (rename_tmp_file): Ditto.
28124 kbx: Add function keybox_tmp_names to avoid code duplication.
28125 + commit f5cceef115f0307664956d01c48b1b397fdad4b3
28126 * kbx/keybox-update.c (create_tmp_file): Move some code to...
28127 * kbx/keybox-util.c (keybox_tmp_names): new.
28128 * g10/keyring.c: Include keybox.h.
28129 (create_tmp_file): Replace parts by keybox_tmp_names.
28131 gpg: Make --list-options show-usage the default.
28132 + commit 360534bde770f4845669de223154216d249b954b
28133 * g10/gpg.c (main): Add LIST_SHOW_USAGE.
28135 2016-01-13 Werner Koch <wk@gnupg.org>
28137 kbx: Change return type of search functions to gpg_error_t.
28138 + commit c7ca0f73dbe7c080b79f93f90f00ba2396fc4bd0
28139 * kbx/keybox-search.c (keybox_search_reset): Change return type to
28141 (keybox_search): Ditto. Also handle GPG_ERR_EOF.
28142 * sm/keydb.c (keydb_search_reset): Ditto.
28144 gpg: Improve error code from lock_all.
28145 + commit 9b6c91469a804c60289a2ed21334dfd856c294bb
28146 * g10/keydb.c (lock_all): Do not clobber RC during failur cleanup.
28148 kbx: Improve and fix keybox_lock.
28149 + commit 8f1368d5e3f7654ad9cb100053535f728dff2344
28150 * kbx/keybox-init.c (keybox_lock): Make sure ERR is initialized. Get
28151 error codes from dotlock functions.
28153 common: Make sure dotlock functions set a proper ERRNO.
28154 + commit 4aceebf36f103eb380e21d12a1f08b7d6ea7cc8e
28155 * common/dotlock.c (map_w32_to_errno): New.
28156 (read_lockfile): Return a proper ERRNO.
28157 (dotlock_create_unix): Do not let log functions clobber ERRNO.
28158 (dotlock_take_unix): Ditto.
28159 (dotlock_release_unix): Ditto.
28160 (dotlock_create_w32): Set proper ERRNO.
28161 (dotlock_take_w32): Ditto.
28162 (dotlock_release_w32): Ditto.
28164 kbx: Implement keybox_lock for use by gpg.
28165 + commit 160862978628b07ed5150ec2c8abad6af1656bc3
28166 * kbx/keybox-defs.h: Include dotlock.h and logging.h.
28167 (CONST_KB_NAME): Remove. Replace usage by KB_NAME.
28168 (struct keybox_name): Add field "lockhd".
28169 * kbx/keybox-init.c (keybox_register_file): Init LOCKHD.
28170 (keybox_lock): Chnage to return gpg_error_t. Implement locking.
28172 gpg: Make sure to mark a duplicate registered keybox as primary.
28173 + commit 9dc355ad3ae0026ab04c424dc984d748b8fad393
28174 * kbx/keybox-init.c (keybox_register_file): Change interface to return
28175 the token even if the file has already been registered.
28176 * g10/keydb.c (primary_keyring): Rename to primary_keydb.
28177 (maybe_create_keyring_or_box): Change return type to gpg_error_t.
28178 (keydb_add_resource): Ditto. s/rc/err/.
28179 (keydb_add_resource): Mark an already registered as primary.
28180 * sm/keydb.c (maybe_create_keybox): Change return type to gpg_error_t.
28181 (keydb_add_resource): Ditto. s/rc/err/.
28182 (keydb_add_resource): Adjust for changed keybox_register_file.
28184 2016-01-13 NIIBE Yutaka <gniibe@fsij.org>
28186 Fix to support git worktree.
28187 + commit 96237b9a63a50aed1884cb06f84279b977d6a8fa
28188 * autogen.sh, Makefile.am, doc/Makefile.am: Use -e for testing .git.
28190 2016-01-12 Werner Koch <wk@gnupg.org>
28192 ssh: Accept OpenSSH *cert-v01 key variants.
28193 + commit e2f984b4afffaa89bdeba2f5d447b5681237177e
28194 * agent/command-ssh.c (SPEC_FLAG_WITH_CERT): New.
28195 (ssh_key_types): Add OpenSSH cert types.
28196 (stream_read_string): Allow a dummy read.
28197 (ssh_receive_mpint_list): Pass SPEC by reference.
28198 (ssh_receive_mpint_list): New arg CERT and use it.
28199 (ssh_receive_key): Read certificate into an estream object and modify
28200 parser to make use of that object.
28202 2016-01-12 NIIBE Yutaka <gniibe@fsij.org>
28204 common: Fix iobuf API of filter function for alignment.
28205 + commit 4b4639b0b04dc82c550fa711dd7193e13fc4a428
28206 * common/iobuf.h: Fix comment.
28208 common: Fix iobuf API of filter function for alignment.
28209 + commit 3f52c7da3940ec06572270d511000dc7fe9c27d2
28210 * common/iobuf.h (IOBUFCTRL_DESC): Change the call semantics.
28211 * common/iobuf.c (iobuf_desc): Add the second argument DESC.
28212 (print_chain, iobuf_close, do_open, iobuf_sockopen, iobuf_ioctl)
28213 (iobuf_push_filter2, pop_filter, iobuf_write_temp): Change calls
28215 (file_filter, file_es_filter, sock_filter, block_filter): Fill the
28217 * common/t-iobuf.c (every_other_filter, double_filter): Likewise.
28218 * g10/armor.c, g10/cipher.c, g10/compress-bz2.c, g10/compress.c,
28219 g10/decrypt-data.c, g10/encrypt.c, g10/mdfilter.c, g10/progress.c,
28220 g10/textfilter.c: Likewise.
28222 2016-01-11 Werner Koch <wk@gnupg.org>
28224 gpg: Fix NULL de-ref for ambiguous key check in --export-ssh-keys.
28225 + commit b280aa6423c9492e8c5a9afa57339d06d957996d
28226 * g10/getkey.c: Allow arg RET_KEYBLOCK to be NULL.
28228 2016-01-09 Werner Koch <wk@gnupg.org>
28230 tools: Remove gpgkey2ssh.
28231 + commit eb9c021631174fde4c1c444bbc533a7a46d570cd
28232 * tools/gpgkey2ssh.c: Remove.
28233 * tools/Makefile.am (bin_PROGRAMS): Ditto.
28235 2016-01-08 Werner Koch <wk@gnupg.org>
28237 gpg: Support ECDSA keys with --export-ssh-key.
28238 + commit b2da3951a395366bf1644bc4c4eb42d657effe17
28239 * g10/export.c (key_to_sshblob): Add hack for ECDSA.
28241 gpg: New command --export-ssh-key.
28242 + commit 4970868d8d84d3a64b067e5aafc9f097621758d3
28243 * g10/export.c: Include membuf.h and host2net.h.
28244 (key_to_sshblob): New.
28245 (export_ssh_key): New.
28246 * g10/gpg.c (aExportSshKey): New.
28247 (opts): Add command.
28248 (main): Implement that command.
28250 gpg: Add an exact search flag to the PK struct.
28251 + commit 34bca9cd4b8517795833cb754b0d5b1dd33b08ed
28252 * g10/getkey.c (merge_selfsigs_subkey): Clear exact flag.
28253 (finish_lookup): Set exact flag.
28254 * g10/packet.h (PKT_public_key): Add field flags.exact.
28256 Print warnings if old daemon versions are used.
28257 + commit 2aa42baaf3dd7c3ae613ae0c61760a17c8adfcd0
28258 * common/status.h (STATUS_WARNING): New.
28259 * g10/call-agent.c (warn_version_mismatch): New.
28260 (start_agent): Call warn function.
28261 * g10/call-dirmngr.c: Include status.h.
28262 (warn_version_mismatch): New.
28263 (create_context): Call warn function.
28264 * sm/call-agent.c (warn_version_mismatch): New.
28265 (start_agent): Call warn function.
28266 (gpgsm_agent_learn): Call warn function.
28267 * sm/call-dirmngr.c (warn_version_mismatch): New.
28268 (prepare_dirmngr): Call warn function.
28270 common: New function compare_version_strings.
28271 + commit 4d7ac43ff71fdadfd2e04621f74840a82fbe788a
28272 * common/stringhelp.c (parse_version_number): New.
28273 (parse_version_string): New.
28274 (compare_version_strings): New.
28275 * common/t-stringhelp.c (test_compare_version_strings): New.
28276 (main): Call test. Return ERRCOUNT instead of 0.
28278 common: New function get_assuan_server_version.
28279 + commit 496643291e1e346434e9c98405c5a370957eb7d3
28280 * common/asshelp.c: Include membuf.h.
28281 (get_assuan_server_version): New.
28282 * g10/call-agent.c (agent_get_version): Use new function.
28284 common: New put_membuf_cb to replace static membuf_data_cb.
28285 + commit 833ba5faa1340aff80a205acbb701d4ae1d594d0
28286 * common/membuf.c (put_membuf_cb): New.
28287 * agent/call-scd.c (membuf_data_cb): Remove. Change callers to use
28289 * common/get-passphrase.c (membuf_data_cb): Ditto.
28290 * g10/call-agent.c (membuf_data_cb): Ditto.
28291 * sm/call-agent.c (membuf_data_cb): Ditto.
28293 2016-01-07 Werner Koch <wk@gnupg.org>
28295 gpg: Return an error code from keygrip_from_pk.
28296 + commit 8fd406c317ad7c2e375ae4f7d20656dadf6d7fcc
28297 * g10/keyid.c (keygrip_from_pk): Return an error code.
28299 gpg: Avoid warnings about possible NULL deref.
28300 + commit 8a56a38387c10c02ba0790c655dd5c1d08e4a724
28301 * g10/getkey.c (cache_public_key): Protect deref of CE which actually
28303 * g10/keygen.c (quickgen_set_para): s/sprintf/snprintf/.
28304 * g10/tofu.c (end_transaction, rollback_transaction): Allow NULL for
28306 * g10/trustdb.c (update_min_ownertrust): Remove useless clearling of
28309 gpg: Fix warnings about useless assignments.
28310 + commit 008aa6e6d4b213c3a0d15509eb46cf168b6f2c94
28311 * g10/armor.c (parse_hash_header): Remove duplicate var assignment.
28312 * g10/getkey.c (cache_user_id): Ditto.
28313 * g10/keygen.c (ask_curve): Ditto. This also fixes a small memory
28316 * g10/keygen.c (proc_parameter_file): Remove useless assignment or
28318 (generate_keypair): Ditto.
28319 * g10/getkey.c (finish_lookup, lookup): Ditto.
28320 * g10/card-util.c (change_pin): Ditto.
28321 * g10/gpg.c (main) <aVerify>: Ditto.
28322 * g10/import.c (import): Ditto.
28323 (print_import_check): Ditto
28324 * g10/keyring.c (do_copy): Ditto.
28325 * g10/tdbio.c (tdbio_read_record): Ditto.
28326 * g10/trustdb.c (tdb_update_ownertrust): Ditto.
28327 (update_validity): Ditto.
28329 * g10/server.c (cmd_passwd): Remove useless call to skip_options.
28331 sm: Avoid warnings about useless assignments.
28332 + commit 126aebbb82667d160c8c4435898efeb3b43c4ec8
28333 * sm/call-dirmngr.c (prepare_dirmngr): Remove setting of ERR.
28334 (unhexify_fpr): Remove useless computation on N.
28335 * sm/certchain.c (do_validate_chain): Remove clearing of RC. Remove
28336 useless setting of RC.
28337 * sm/fingerprint.c (gpgsm_get_keygrip): Remove setting of RC.
28338 * sm/gpgsm.c (build_list): Replace final stpcpy by strcpy.
28339 * sm/keydb.c (keydb_clear_some_cert_flags): Remove clearing of RC.
28340 * sm/server.c (cmd_getauditlog): Comment unused skip_options.
28342 kbx: Avoid warnings about useless assignments.
28343 + commit 0de7d61437bd0bfbe645d5eed7a62df03129fb32
28344 * kbx/keybox-dump.c (_keybox_dump_blob): Remove setting of IN_RANGE
28345 and the last increment of P.
28347 gpg: Fix DNS cert lookup returning an URL.
28348 + commit a41638acf4808caa619f4f3f4c0dcd12be00d6f8
28349 * g10/call-dirmngr.c (dns_cert_status_cb): Store URL status in the URL
28350 param. The old code was entirely buggy (c+p error).
28352 2016-01-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
28354 Fix keystrlen to work when OPT.KEYID_FORMAT is KF_DEFAULT.
28355 + commit 2c3e67430d9b523c85c81ae562223fd51e3608cc
28356 * g10/keyid.c (keystrlen): If opt.keyid_format is KF_DEFAULT unset,
28357 default to KF_SHORT.
28358 (format_keyid): Default to KF_SHORT, not KF_0xLONG.
28360 2016-01-06 Werner Koch <wk@gnupg.org>
28362 gpg: Silence some regression tests.
28363 + commit c7389ae90fa4a70766400cc241ff6a45aa750324
28364 * g10/test.c (TEST): Print diagnostics only in verbose mode.
28366 gpg: Avoid using an uninitialized SALT on premature EOF.
28367 + commit 85cc7449fb00ac85b0c2eecd22bd38b23f33edf5
28368 * g10/parse-packet.c (parse_key): Check for premature end of salt.
28370 gpg: Silence warnings found by static analyzer.
28371 + commit 09accc0e3d74e6289bed40b5bfc6479981cabfe4
28372 * g10/keyedit.c (change_passphrase): Remove useless init of ANY.
28373 (keyedit_quick_adduid): Remove useless setting of ERR.
28374 * g10/parse-packet.c (parse_key): Remove PKTLEN from condition because
28375 it has been checked before the loop.
28376 (parse_plaintext): Remove useless init of PKTLEN.
28378 kbx: Avoid faulty fclose in an error case.
28379 + commit db82b6131d437bf6ba34db0e08b7dfa9edb11e45
28380 * kbx/keybox-update.c (blob_filecopy): Do not close an uninitialized
28381 file pointer after a failure to create a temp file.
28382 * kbx/keybox-openpgp.c (next_packet): Remove duplicate assignment of
28385 dirmngr: Silence one regression test.
28386 + commit 6deafb92abe100ff67e3a0a230a39e8c0ad41900
28387 * dirmngr/t-dns-stuff.c (main): Do not print info during standard
28390 common: Avoid warnings about useless assignments.
28391 + commit e64317c15e9960f3173d374e589f7c3565a4ad08
28392 * common/b64enc.c (b64enc_finish): Remove var assignment which is not
28394 * common/iobuf.c (file_filter): Ditto.
28395 * common/tlv.c (do_find_tlv): Ditto.
28396 * common/userids.c (classify_user_id): Ditto.
28398 tests: Use info and error instead of a plain echo.
28399 + commit 1fbfa1bf0a6ad0dc7ed67d12252643c2c6c7370a
28400 * tests/openpgp/4gb-packet.test: Use error and info.
28402 common: Do not deref vars in tests after a fail().
28403 + commit 0a00115ee2049ab2357b7a14a51c7da185ffcabd
28404 * common/t-convert.c (test_bin2hex): Turn if conditions into if-else
28405 chains to avoid accessing unchecked data.
28406 (test_bin2hexcolon): Ditto.
28407 * common/t-mapstrings.c (test_map_static_macro_string): Ditto.
28408 * common/t-stringhelp.c (test_percent_escape): Ditto.
28409 (test_make_filename_try): Ditto.
28410 (test_make_absfilename_try): Ditto.
28411 * common/t-timestuff.c (test_timegm): Ditto.
28413 2016-01-05 Werner Koch <wk@gnupg.org>
28415 gpg: Align notes about minimal keysize with actual checks.
28416 + commit e70f7a54f29d727def2cfe9ea5ab9d461b4ce842
28417 * g10/keygen.c (ask_keysize): Use 768 for the minimal value for DSA in
28418 export mode. Improve readability.
28420 2016-01-05 NIIBE Yutaka <gniibe@fsij.org>
28422 agent: Fix RSA verification for card.
28423 + commit ff3b607fc879b70665c187500022cc63e2a0cd86
28424 * agent/pksign.c (agent_pksign_do): Use S-exp of public key, instead
28427 2016-01-04 Neal H. Walfield <neal@g10code.com>
28429 gpg: Fix double free.
28430 + commit 575c15a090913d86cf8d75b2bc4471e371f234b9
28431 * g10/getkey.c (get_pubkeys): Fix double free.
28433 2015-12-24 NIIBE Yutaka <gniibe@fsij.org>
28435 agent: IMPORT_KEY with --force option fix.
28436 + commit 79b51bb8727bd3485229ac8ff5987558156d5d83
28437 * agent/cvt-openpgp.c (convert_from_openpgp_main): Add an option not
28438 to check existing key.
28439 (convert_from_openpgp): Ditto.
28440 (convert_from_openpgp_native): Call convert_from_openpgp_main with
28442 * agent/command.c (cmd_import_key): Call with dontcare_exist=force.
28444 g10: Use --force when importing key for bkuptocard.
28445 + commit 5ca57f1a697e875bae5a5c73f1a580c42ca75343
28446 * g10/call-agent.c (agent_import_key): Add an argument FORCE.
28447 * g10/import.c (transfer_secret_keys): Likewise.
28448 (import_secret_one): Call transfer_secret_keys with FORCE=0.
28449 * g10/keyedit.c (keyedit_menu): Call with FORCE=1.
28451 g10: Remove subcommand checkbkupkey for --key-edit.
28452 + commit 44aee35e69540510617aea4b886ef845590960fe
28453 * g10/keyedit.c (keyedit_menu): Remove cmdCHECKBKUPKEY support.
28455 g10: Allow relative path for specifying the file for bkuptocard.
28456 + commit ee433d2b00c93b5a4e4ed54b9fb5806361df1b71
28457 * g10/keyedit.c (keyedit_menu): Assume the file is under GNUPGHOME.
28458 Also support tilda expansion.
28460 g10: fix regression of bkuptocard subcommand in --edit-key.
28461 + commit 40959add1ba0efc1f4aa87fa075fa42423eff73c
28462 * g10/keyedit.c (keyedit_menu): Call transfer_secret_keys.
28463 * g10/import.c (transfer_secret_keys): Make it global function.
28466 agent: Support --force option for IMPORT_KEY.
28467 + commit e684c634df814b12d399dcdc375c35d3e9a137af
28468 * agent/command.c (cmd_keywrap_key): New option --force.
28470 2015-12-23 Werner Koch <wk@gnupg.org>
28472 gpg: Rename struct pubkey to pukey_s and add pubkey_t.
28473 + commit a9cbdcfd9c364557787f4a173cc59f14c067946e
28474 * g10/keydb.h (struct pubkey): Rename to pubkey_s.
28475 (pubkey_t): New. Change all struct pubkey_s to use this type.
28476 * g10/getkey.c (get_pubkeys): Rename arg keys to r_keys.
28478 gpg: Simplify status message code from commit b30c15bf.
28479 + commit 363ed2e892adc97fae97111bb56b64f9f809e8d5
28480 * g10/keygen.c (card_write_key_to_backup_file): Simplify by using
28483 gpg: Add standard free() semantic to pubkey_free.
28484 + commit 04c9cddda95f2a8ca5c0cf10bb3dd6accf56cf45
28485 * g10/getkey.c (pubkey_free): Check for NULL arg.
28487 gpg: Fix use of assert from commit dc417bf0.
28488 + commit ef7b7e91600f35b4d682a6267001a8d30f0fa49f
28489 * g10/keydb.c (keydb_update_keyblock): De-ref after the assert. Use
28492 gpg: Do not translate debug output.
28493 + commit b0c9867fb74d5a00335e6606d5bdcc5342ce26cd
28494 * g10/getkey.c (parse_def_secret_key): Do not make strings passed to
28495 log_debug translatable.
28497 2015-12-23 NIIBE Yutaka <gniibe@fsij.org>
28499 scd: Fix commit b30c15bf (again).
28500 + commit aecf1a3c57ca8bf8050a3743b62fe142ccf9eb22
28501 * g10/keygen.c (do_generate_keypair): Clear the variable S.
28503 2015-12-22 Neal H. Walfield <neal@g10code.com>
28506 + commit 5c759924fb92b6de7ab3baed7871e5114ebd2505
28507 * g10/keygen.c (card_write_key_to_backup_file): Change n to a size_t.
28509 gpg: Fix error message.
28510 + commit 4654384fe7a4dcee113dacf27c398b13dea5d0be
28511 * g10/getkey.c (parse_def_secret_key): Fix error message.
28513 gpg: Don't check for ambiguous keys.
28514 + commit 7195b94345b0bb937477dc47fc5ec27fb108a099
28515 * g10/gpg.c (struct result): Move from here...
28516 * g10/keydb.h (struct pubkey): ... to here. Update users.
28517 * g10/gpg.c (check_user_ids): Move from here...
28518 * g10/getkey.c (get_pubkeys): ... to here. Update users. Use
28519 get_pubkey_byname to look up the keys (this also prunes invalid keys).
28520 (pubkey_free): New function.
28521 (pubkeys_free): New function.
28522 * g10/gpg.c (main): Don't check for ambiguous key specifications.
28524 gpg: Lazily evaluate --default-key.
28525 + commit dc52995d85048ed12ae8b9f330e9ca41a4030aae
28526 * g10/gpg.c (main): If --encrypt-to-default-key is specified, don't
28527 add --default-key's value to REMUSR here...
28528 * g10/pkclist.c (build_pk_list): ... do it here.
28529 * tests/openpgp/Makefile.am (TESTS): Add default-key.test.
28530 * tests/openpgp/default-key.test: New file.
28532 gpg: Remove unused parameter.
28533 + commit ffe0b7a6dd6bfaec62f81f511b3caf08978bb269
28534 * g10/pkclist.c (build_pk_list): Remove parameter use, which is always
28535 called set to PUBKEY_USAGE_ENC. Update callers.
28537 gpg: Improve check for ambiguous keys.
28538 + commit 4103850c2e51274984f69443dee34295cbb8c282
28539 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
28540 encryption-only keys when a signing key is needed and vice-versa.
28542 gpg: Fix TOCTTOU when updating keyblocks.
28543 + commit dc417bf0c555a7416d0aedde6645fd1087660f92
28544 * g10/keydb.c (keydb_update_keyblock): Don't replace the record at the
28545 current offset. After taking the lock, extract the fingerprint from
28546 the keyblock, find it and then replace it.
28548 Only add the user supplied CFLAGS after running any autoconf tests.
28549 + commit 02eb9fc9d5863abcfed6af704e618f8cac7cc2e8
28550 * configure.ac: Only add the user supplied CFLAGS after running any
28553 gpg: Suppress a warning.
28554 + commit 1cceba163b17b5e9fd7c89e5b40e3d7e1cffc885
28555 * dirmngr/dns-stuff.c (enable_dns_tormode): Reference new_circuit to
28556 avoid a warning when ADNS is not available.
28558 gpg: Remove dead code.
28559 + commit 4143cc1c3783c54a6f733f08a4739e4e5fb0c8b3
28560 * kbx/keybox-defs.h (struct keybox_found_s): Remove unused fields
28561 offset and n_packets.
28563 gpg: Display the key that is invalid, not the search description.
28564 + commit 7fe4be0416cdc9269011bc4213b8a22d6ced295c
28565 * g10/getkey.c (parse_def_secret_key): Display the key that is
28566 invalid, not the search description.
28568 gpg: Mark more options as coming from the config file (when this holds)
28569 + commit 478ca6c75bbf529f95974224dfb7d71bd5860a96
28570 * g10/gpg.c (main): When --default-key or --encrypt-to-default-key is
28571 taken from the config file, note this.
28573 gpg: Use enums instead of defines.
28574 + commit ee8a8ec1cf4605e5af427f9c8b01b3609c82cbe7
28575 * g10/keydb.h (PK_LIST_ENCRYPT_TO): Change from a macro to an enum.
28576 (PK_LIST_HIDDEN): Likewise.
28577 (PK_LIST_CONFIG): Likewise.
28578 (PK_LIST_SHIFT): Likewise.n
28580 2015-12-21 NIIBE Yutaka <gniibe@fsij.org>
28582 po: Update Japanese translation.
28583 + commit d8392299f311f8cfcf8bc02679dd3ae7ef8cc6d7
28586 g10: clean up of headers for card.
28587 + commit ab9a9bce77d014159c68460f5a7c263fb72f3c1c
28588 * g10/main.h (save_unprotected_key_to_card): Remove.
28589 * g10/options.h (ctapi_driver, pcsc_driver, disable_ccid): Remove.
28591 2015-12-21 Werner Koch <wk@gnupg.org>
28593 common: New file fwddecl.h.
28594 + commit 98f9e14323bf806f674b3cc259e19ef6219b4378
28595 * common/util.h (server_control_s, ctrl_t): Move to ...
28596 * common/fwddecl.h: New file.
28597 * common/call-gpg.h: Replace typedef by fwddecl.h. Change include
28598 protection macro name.
28599 * common/Makefile.am (common_sources): Add fwddecl.h.
28601 2015-12-18 Werner Koch <wk@gnupg.org>
28603 build: Add required macro for pkg-config.
28604 + commit af142854a73567836a0ca44ad62900469c23d531
28605 * configure.ac (PKG_PROG_PKG_CONFIG): New.
28607 2015-12-18 NIIBE Yutaka <gniibe@fsij.org>
28609 g10: Remove deprecated internal functions.
28610 + commit 72eaff1aa610f3c89a755f212760157e1932d847
28611 * g10/keygen.c (do_ask_passphrase, generate_raw_key)
28612 (gen_card_key_with_backup, save_unprotected_key_to_card): Remove.
28614 g10: Fix a regression for generating card key with backup.
28615 + commit b30c15bf7c5336c4abb1f9dcd974cd77ba6c61a7
28616 * g10/main.h (receive_seckey_from_agent): Declare.
28617 * g10/keygen.c (card_write_key_to_backup_file): New.
28618 (card_store_key_with_backup): New.
28619 (do_generate_keypair): Create a key on host for encryption key when
28620 backup is requested. Then, call card_store_key_with_backup.
28622 2015-12-17 NIIBE Yutaka <gniibe@fsij.org>
28624 g10: factor out a function for secret key retrieval.
28625 + commit e644aa7f5943174e3f7ba9408af71531fd125a0b
28626 * g10/export.c (receive_seckey_from_agent): New.
28627 (do_export_stream): Use it.
28629 2015-12-16 Neal H. Walfield <neal@g10code.com>
28631 gpg: When checking for ambiguous keys, ignore invalid keys.
28632 + commit fc010b6c7fe14e609734e448775fa384421bdef1
28633 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
28634 disabled, revoked and expired keys (if appropriate for the provided
28637 2015-12-15 Werner Koch <wk@gnupg.org>
28639 common: Use default_errsource for call-gpg and exectool.
28640 + commit 4ffe44c5874ed655d82adfa7a85439fab91cde03
28641 * common/call-gpg.c (my_error_from_syserror, my_error_from_errno): New.
28642 Use these wrappers.
28643 * common/exectool.c (my_error_from_syserror): New. Use these
28646 gpg: Reduce number of strings to translate.
28647 + commit 345ec7323d643528d2f904765708b5ecfe51f57b
28648 * g10/getkey.c (parse_def_secret_key): Do not make debug messages
28649 translatable. Make use of print_reported_error.
28651 gpg: New function to printed a detailed error code.
28652 + commit 2ea1aebc924c3f0b2269f83cb1b80c75d9fa069c
28653 * g10/misc.c (print_reported_error): New.
28655 2015-12-15 Neal H. Walfield <neal@g10code.com>
28657 gpg: Improve the keyblock cache's transparency.
28658 + commit f369efd6712148dc7ed40dba6d1ff5b0e169431a
28659 * kbx/keybox-search.c (keybox_seek): New function.
28660 * g10/keydb.c (keydb_search): When reading from the cache, seek to
28661 just after the cached record.
28663 gpg: Improve the keyblock cache's transparency.
28664 + commit 2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41
28665 * kbx/keybox-search.c (keybox_offset): New function.
28666 * g10/keydb.c (struct keyblock_cache): Add fields resource and offset.
28667 (keyblock_cache_clear): Reset HD->KEYBLOCK_CACHE.RESOURCE and
28668 HD->KEYBLOCK_CACHE.OFFSET.
28669 (keydb_search): Don't use the cached result if it comes before the
28670 current file position. When caching an entry, also record the
28671 position at which it was found.
28673 gpg: Use more descriptive names.
28674 + commit 0ea186db645da2b51a7e71f46793d447f2de5e3d
28675 * g10/keyring.c (KR_NAME): Rename this...
28676 (KR_RESOURCE): ... to this. Update users.
28677 (struct keyring_name): Rename this...
28678 (struct keyring_resource): ... to this. Update users.
28679 (struct off_item): Rename this...
28680 (struct key_present): ... to this. Update users.
28681 (OffsetHashTable): Rename this...
28682 (key_present_hash_t): ... to this. Update users.
28683 (kr_offtbl): Rename this...
28684 (key_present_hash): ... to this. Update users.
28685 (kr_offtbl_ready): Rename this...
28686 (key_present_hash_ready): ... to this. Update users.
28687 (KEY_PRESENT_HASH_BUCKETS): New define. Replace use of literals
28689 (new_offset_item): Rename this...
28690 (key_present_value_new): ... to this. Update users.
28691 (release_offset_items): Drop dead code.
28692 (new_offset_hash_table): Rename this...
28693 (key_present_hash_new): ... to this. Update users.
28694 (release_offset_hash_table): Drop dead code.
28695 (lookup_offset_hash_table): Rename this...
28696 (key_present_hash_lookup): ... to this. Update users.
28697 (update_offset_hash_table): Rename this...
28698 (key_present_hash_update): ... to this. Drop unused parameter off.
28700 (update_offset_hash_table_from_kb): Rename this...
28701 (key_present_hash_update_from_kb): ... to this. Drop unused parameter
28704 2015-12-15 NIIBE Yutaka <gniibe@fsij.org>
28706 sm: Handle gcry_pk_encrypt return value.
28707 + commit 4ee881bff4c8fdfa4b3b7a4b7afab611471e97f1
28708 * sm/encrypt.c (encrypt_dek): Don't ignore failure of gcry_pk_encrypt.
28710 2015-12-14 Werner Koch <wk@gnupg.org>
28712 common: Change license of isascii.c to all-premissive,
28713 + commit 7baca033070e7811f75e2021100adf8e6a48907f
28714 * common/isascii.c: Change.
28716 common: Change license of some modules to LGPLv3+/GPLv2+.
28717 + commit 7d129a7391115ff1d6a3541078a37a630ab7819f
28718 * common/status.c: Change from GPLv3 to LGPLv3+/GPLv2+.
28719 * common/status.h: Ditto.
28720 * common/yesno.c: Ditto.
28721 * common/common-defs.h: Ditto.
28722 * common/gettime.h: Ditto.
28723 * common/keyserver.h: Ditto.
28725 common: Change license for exectool to LGPLv3+/GPLv2+.
28726 + commit 467e18b74b4790dcbdf3c816206d2fbaf170a12a
28727 * common/exectool.c, common/exectool.h: Change license.
28729 common: Rename sh-exectool to exectool.
28730 + commit d80e1bc430bf64debdb6b08f0b7e5c42836781fa
28731 * common/sh-exectool.c: Rename to exectool.c.
28732 * common/sh-exectool.h: Rename to exectool.h.
28733 * common/Makefile.am (common_sources): Adjust for rename.
28734 * common/exectool.c (sh_exec_tool_stream): Rename to
28735 gnupg_exec-tool-stream.
28736 (sh_exec_tool): Rename to gnupg_exec_tool.
28737 * tools/gpgtar-create.c (gpgtar_create): Adjust for changes.
28738 * tools/gpgtar-extract.c: Adjust for changes.
28739 * tools/gpgtar-list.c: Adjust for changes.
28741 2015-12-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
28743 gpg: Print ownertrust in TOFU+PGP trust model.
28744 + commit f5aa51aaacfe13ab9528aa9b88d8ce8eb61362fc
28745 * g10/keyedit.c: Print ownertrust in TOFU+PGP trust model.
28747 2015-12-14 Neal H. Walfield <neal@g10code.com>
28749 gpg: Fix --default-key checks.
28750 + commit e573e6188dada4d70f6897aa2fda3c3af8c50441
28751 * g10/getkey.c (parse_def_secret_key): Don't just check if a secret
28752 key is available for the public key, also consider subkeys. Also
28753 check that the key has the signing capability, is not revoked, is not
28754 expired and is not disabled. Print a warning if there was a least one
28755 value passed to --default-key and all were ignored.
28757 2015-12-14 NIIBE Yutaka <gniibe@fsij.org>
28759 scd: Fix regression for generating RSA keys on card.
28760 + commit d40975cbe8ff86fcc4a1b4963fdffc66ddee85ce
28761 * scd/app-openpgp.c (do_genkey): Strip leading zeros for fingerprint
28764 2015-12-12 Werner Koch <wk@gnupg.org>
28766 gpg: Use a regular type instead of a void* for import stats.
28767 + commit 4d3395ef1fcde0b8c454c09956863959d590ede6
28768 * g10/import.c (struct stats_s): Rename to import_stats_s. Change all
28770 * g10/main.h (import_stats_t): New. Change fucntions to use this
28771 instead of a void pointer.
28773 Remove replacements for libgpg-error < 1.21.
28774 + commit f0ae40b0c901e5f5c04c6ed5b2ab96ab7340b2bd
28775 * common/util.h: Remove replacement macros for libgpg-error<1.21.
28776 * common/types.h: Ditto.
28777 * common/mischelp.h: Ditto.
28778 * common/t-mapstrings.c: Include t-support.h before stringhelp.h
28779 * common/t-stringhelp.c: Ditto.
28780 * common/t-support.h: Always include gpg-error.h.
28781 * kbx/keybox-search.c: Do not include stringhelp.h so that keybox-defs
28784 2015-12-11 Neal H. Walfield <neal@g10code.com>
28786 gpg: Fix buffer overflow.
28787 + commit 1605e34fc365edd473aac15c9b4e5aadc1d95cf5
28788 * g10/keydb.c (keydb_search_desc_dump): Fix buffer overflow.
28790 2015-12-11 Justus Winter <justus@g10code.com>
28792 agent: Improve error handling.
28793 + commit 25f0f053cd306200a6211b5cf397838a59835ee7
28794 * agent/pksign.c (agent_pksign_do): Improve error handling.
28796 Fix required libgpg-error version.
28797 + commit d6e01493cad6ff32f356185c7a2d2b5c2b86a937
28798 * configure.ac (NEED_GPG_ERROR_VERSION): We need version 1.21 for the
28801 2015-12-11 Neal H. Walfield <neal@g10code.com>
28803 gpg: Don't error out if a key occurs multiple times in the keyring.
28804 + commit 6dc37c5fb60acbfd5ba2ab979852383eac8944e0
28805 * g10/gpg.c (check_user_ids): Don't error out if a key occurs multiple
28806 times in the keyring. Instead, print a warning. When printing out
28807 fingerprint prints, use format_hexfingerprint to format them.
28809 2015-12-10 Daniel Hoffend <dh@dotlan.net>
28811 scd: Fix removal of unplugged usb readers on Windows.
28812 + commit d1a97585c5e73fbc7d4cf90e38f76ffc5aea305f
28813 * scd/apdu.c (pcsc_error_to_sw): map PCSC_E_NO_SERVICE and
28814 PCSC_E_SERVICE_STOPPED to the internal SW_HOST_NO_READER error code.
28816 2015-12-07 Justus Winter <justus@g10code.com>
28818 tests: Add some more gpgtar tests.
28819 + commit 1c8eae95a8b3b89bc0f49cb5f4938101634583dc
28820 * tests/openpgp/gpgtar.test: Add more tests.
28822 dirmngr: Initialize http status code.
28823 + commit 71726b627dcff015dc12568021b31d8ccede788a
28824 * dirmngr/ks-action.c (ks_action_search): Initialize 'http_status' as
28825 it is unused if LDAP is used to search for keys.
28827 2015-12-04 Daiki Ueno <ueno@gnu.org>
28829 gpg: Write ERROR status on delete-key cancellation.
28830 + commit b5cd68852d0e3485c9e13a8ddb70f05f36a65cb9
28831 * g10/delkey.c (do_delete_key): Write ERROR status code with the error
28832 location "delete_key.secret", when the user cancelled the operation on
28835 2015-12-04 Justus Winter <justus@g10code.com>
28837 dirmngr: Stricter handling of http error codes.
28838 + commit 6d64ef869dfbcb7aaa802b80ed648393147e40d8
28839 * dirmngr/ks-action.c (ks_action_search): Only retry if the keyserver
28840 responded with a '404 Not Found'.
28841 * dirmngr/ks-engine-hkp.c (send_request): Return http status code.
28842 (ks_hkp_search): Likewise.
28843 (ks_hkp_{get,put}): Adapt call to 'send_request'.
28844 * dirmngr/ks-engine.h (ks_hkp_search): Update prototype.
28846 dirmngr: Really search all keyservers for patterns.
28847 + commit 6ac57a482f7ae02db1bee4e4b861288fc6905adc
28848 * dirmngr/ks-action.c (ks_action_search): Search all configured
28849 keyservers for the given patterns.
28851 dirmngr: Handle http status '501 Not Implemented'.
28852 + commit a8308ba5231682ce7c7d591a17e7e940fbd63189
28853 * dirmngr/ks-engine-hkp.c (send_request): Handle status 501 and return
28854 GPG_ERR_NOT_IMPLEMENTED.
28856 tools/gpgtar: Implement symmetric encryption.
28857 + commit 582e684a48eb4f3716cecf7dc73eb93046efcfad
28858 * tests/openpgp/gpgtar.test: Add test case.
28859 * tools/gpgtar-create.c (gpgtar_create): Pass '--symmetric' flag to
28861 * tools/gpgtar.c (parse_arguments): We do handle the argument now.
28863 tools/gpgtar: Implement signing.
28864 + commit 45c814f348c89acd8d21d0607ffcf68e5c5c399e
28865 * tests/openpgp/gpgtar.test: Test signing.
28866 * tools/gpgtar-create.c (gpgtar_create): Add 'sign' option, add the
28867 appropriate gpg arguments to implement signing and selecting the local
28869 * tools/gpgtar.c (parse_options): We do handle '--local-user' now.
28870 (main): Handle signing, encrypting, and doing both when creating an
28872 * tools/gpgtar.h (gpgtar_create): Update prototype.
28874 tools/gpgtar: Use the new exectool helper.
28875 + commit 0c0dafd8e89bb702e856c661c1561e10cdcaf37f
28876 * tools/Makefile.am: gpgtar now requires neither npth nor libassuan.
28877 * tools/gpgtar-create.c (gpgtar_create): Use the new 'sh-exectool'
28879 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
28880 * tools/gpgtar-list.c (gpgtar_list): Likewise.
28881 * tools/gpgtar.c (main): Set default gpg program. Drop the
28882 initialization of npth and libassuan.
28884 common: Add a stream interface to 'sh-exectool'.
28885 + commit a81aca6e1c2a4529d416d1989f15d7338d2ee81e
28886 * common/sh-exectool.c (struct copy_buffer): Add infrastructure for
28887 copying between streams.
28888 (copy_buffer_{init,shred,do_copy,flush}): New functions.
28889 (sh_exec_tool_stream): Rework 'sh_exec_tool' to operate on streams.
28890 (nop_free): New function.
28891 (sh_exec_tool): Express this in terms of 'sh_exec_tool_stream'.
28892 * common/sh-exectool.h (sh_exec_tool_stream): New prototype.
28894 common: Add header file and build the new code.
28895 + commit d955cb5e0700c6d2b6b26cb210b5a176d22d4235
28896 * common/Makefile.am (common_sources): Add new files.
28897 * common/sh-exectool.h: New file.
28899 2015-12-04 Werner Koch <wk@gnupg.org>
28901 common: Add code to execute a helper.
28902 + commit 2ae07f826aa551db8adf714158fce962790a6b54
28903 * common/sh-exectool.c: New file.
28906 + commit 9fadfdb3109f7ea42aaaa9d745b64c6c90cb8233
28909 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
28911 po: Japanese translation.
28912 + commit 762fcc027b0b4cc88c1f633804de619273d6a8b9
28915 2015-12-04 Werner Koch <wk@gnupg.org>
28917 speedo,w32: Improve installer.
28918 + commit 0fe3614d9afe42ecf80bbc932366ceeaba0a0ecc
28919 * build-aux/speedo/w32/inst.nsi (SEC_gnupg): Install dirmngr.conf and
28921 (un.gnupglast): Stop dirmngr.
28923 gpg: Do not pre-check keys given on the command line.
28924 + commit 28311d1fa56bfbd801103a8475597459132874f4
28925 * g10/keydb.h (PK_LIST_ENCRYPT_TO, PK_LIST_HIDDEN, PK_LIST_CONFIG)
28926 (PK_LIST_SHIFT): New.
28927 * g10/pkclist.c (build_pk_list): Use them here.
28928 * g10/gpg.c (check_user_ids, main): Ditto.
28930 * g10/gpg.c (main): Set PK_LIST_CONFIG for REMUSR and LOCUSR.
28931 (check_user_ids): Skip check for command line specified options.
28933 dirmngr: Add command to print the resolver version.
28934 + commit 4ff2cae7dee36ffee854c5f05c3e8ee9eb0308dd
28935 * dirmngr/server.c (cmd_getinfo): Add sub-command "dnsinfo".
28937 gpg: Allow "help" as value for --tofu-policy.
28938 + commit 59f6192cb766612ad215bc6a3af13d5b137139e4
28939 * g10/gpg.c (parse_tofu_policy): Add keyword "help".
28940 (parse_tofu_db_format): Ditto.
28942 Do not translate messages printed with log_debug.
28943 + commit 218a52787a87be6b7481a39f87d212d6ef594e97
28944 * common/asshelp.c (start_new_gpg_agent): Do not i18n string.
28945 (start_new_dirmngr): Ditto.
28946 * g10/mainproc.c (proc_encrypted): Ditto. Print only if debug is
28949 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
28951 scd: Fix for removing the prefix.
28952 + commit f03976f1101f539a2782cd9e87d640fc32a022db
28953 * scd/app-openopg.c (do_decipher): Fix the condition.
28955 scd: Simplify saving application context.
28956 + commit 9639af5f16a7ed908cbce2415330b9fcd88edc90
28957 * scd/app.c (lock_table): Remove LAST_APP field.
28958 (lock_reader, app_dump_state, application_notify_card_reset)
28959 (release_application): Follow the change.
28960 (check_conflict): New.
28961 (check_application_conflict): Lock the slot and call check_conflict.
28962 (select_application): Call check_conflict and not use LAST_APP.
28964 scd: More fix for Curve25519 prefix handling.
28965 + commit f747adfa21551e083bc947540c64c94a96dcc059
28966 * scd/app-openpgp.c (do_decipher): Handle trancated cipher text.
28967 Also fix xfree bug introduced.
28969 2015-12-03 Werner Koch <wk@gnupg.org>
28971 scd: Another fix for Curve25519 prefix handling.
28972 + commit e28f2e7a2f265af8bbdb4979e9679b4396dccdd5
28973 * scd/app-openpgp.c (do_decipher): Check 0x02 also for 16+1 byte long
28975 (do_decipher): Fix integer arithmetic in void pointer.
28976 (do_decipher): Add missing memcpy.
28978 build: Avoid dependecy problems in "make distcheck".
28979 + commit 0f61599ed0bd1cc6842067d040bb58ec0a451715
28980 * doc/Makefile.am (gnupg.texi): Depend on defs.inc.
28982 build: Change how caller provided CFLAGS are used by configure.
28983 + commit 4e9957250eee3521dc979912a4818e58ffddc5b8
28984 * configure.ac: Append instead of prepend caller provided CFLAGS.
28986 gpg: Add variant of 'key "%s" not found: %s' error message.
28987 + commit 5e2c5e9ec5b75fae886e1294adbdb7ad2ac12827
28988 * g10/gpg.c (check_user_ids): Change error message.
28989 * g10/delkey.c (do_delete_key): Ditto.
28991 gpg: Make keyidlist more robust in case of errors.
28992 + commit 50a568e7380752454c029eac2b57d8803b1cb287
28993 * g10/keyserver.c (keyidlist): Clear *KLIST on error.
28995 gpg: Take care of keydb_new returning NULL.
28996 + commit a28ac99efead8be73ea1704abe1611ccc4811c54
28997 * g10/keydb.c (keydb_new): Print an error message if needed. Also use
28998 xtrycalloc because we return an error anyway.
28999 * g10/delkey.c (do_delete_key): Handle error retruned by keydb_new.
29000 * g10/export.c (do_export_stream): Ditto.
29001 * g10/getkey.c (get_pubkey): Ditto.
29002 (get_pubkey_fast): Ditto.
29003 (get_pubkeyblock): Ditto.
29004 (get_seckey): Ditto.
29005 (key_byname): Ditto.
29006 (get_pubkey_byfprint): Ditto.
29007 (get_pubkey_byfprint_fast): Ditto.
29008 (parse_def_secret_key): Ditto.
29009 (have_secret_key_with_kid): Ditto.
29010 * g10/import.c (import_one): Ditto.
29011 (import_revoke_cert): Ditto.
29012 * g10/keyedit.c (keyedit_quick_adduid): Ditto.
29013 * g10/keygen.c (quick_generate_keypair): Ditto.
29014 (do_generate_keypair): Ditto.
29015 * g10/trustdb.c (validate_keys): Ditto.
29016 * g10/keyserver.c (keyidlist): Ditto.
29017 * g10/revoke.c (gen_desig_revoke): Ditto.
29018 (gen_revoke): Ditto.
29019 * g10/gpg.c (check_user_ids): Ditto.
29020 (main): Do not print an error message for keydb_new error.
29021 * g10/keylist.c (list_all): Use actual error code returned by
29024 * g10/t-keydb-get-keyblock.c (do_test): Abort on keydb_new error.
29025 * g10/t-keydb.c (do_test): Ditto.
29027 * g10/keyring.c (keyring_new): Actually return an error so that the
29028 existing keydb_new error checking makes sense for a keyring resource.
29029 (keyring_rebuild_cache): Take care of keyring_new returning an error.
29031 gpg: Change some error messages.
29032 + commit 9fcc047d921bde95b6807325b7fd2b697e89907f
29033 * g10/getkey.c (parse_def_secret_key): Change error message. Replace
29034 log_debug by log_info.
29035 * g10/gpg.c (check_user_ids): Make function static. Change error
29037 (main): Change error messages.
29038 * g10/revoke.c (gen_revoke): Ditto.
29040 2015-12-03 NIIBE Yutaka <gniibe@fsij.org>
29042 scd: Fix "Conflicting usage" bug.
29043 + commit f42c50dbf00c2e6298ca6830cbe6d36805fa54a3
29044 * scd/apdu.c (apdu_close_reader): Call CLOSE_READER method even if we
29045 got an error from apdu_disconnect.
29046 * scd/app-common.h (no_reuse): Remove.
29047 * scd/app.c (application_notify_card_reset): Deallocate APP here.
29048 (select_application, release_application): Don't use NO_REUSE.
29050 scd: Fix for Curve25519 prefix handling.
29051 + commit 11b2691eddc42e91651e4f95dd2731255a3e9211
29052 * scd/app-openpgp.c (do_decipher): More condition for AES decipher.
29053 Handle the prefix in cipher text. Always add the prefix in result.
29055 2015-12-03 Neal H. Walfield <neal@g10code.com>
29057 gpg: Use the matching key if the search description is exact.
29058 + commit cedbd4709eed6fead9d1b271f96860c00547c77c
29059 * g10/gpg.c (check_user_ids): If the search description is for an
29060 exact match (a keyid or fingerprint that ends in '!'), then use the
29061 matching key, not the primary key.
29062 * tests/openpgp/Makefile.am (TESTS): Add use-exact-key.test.
29063 (priv_keys): Add privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc,
29064 privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc,
29065 privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc,
29066 privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc and
29067 privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc.
29069 samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc.
29070 * tests/openpgp/privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc:
29072 * tests/openpgp/privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc:
29074 * tests/openpgp/privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc:
29076 * tests/openpgp/privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc:
29078 * tests/openpgp/privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc:
29080 * tests/openpgp/samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc:
29082 * tests/openpgp/use-exact-key.test: New file.
29083 * tests/openpgp/version.test: Install the new private keys.
29085 2015-12-02 Werner Koch <wk@gnupg.org>
29087 build: Require at least Libassuan 2.4.1.
29088 + commit 69db3285e4612ad24462149a4d64cc32c090a491
29089 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.4.1.
29090 * agent/gpg-agent.c (create_server_socket): Remove check for
29091 libassuan >= 2.3.0 and >= 2.1.4.
29092 (main): Remove check for libassuan >= 2.1.4.
29093 * scd/scdaemon.c (create_server_socket): Remove check for
29094 libassuan >= 2.1.4.
29095 * dirmngr/dirmngr.c (set_tor_mode): Remove check for
29096 libassuan >= 2.3.0.
29097 * dirmngr/http.c (http_raw_connect, send_request): Remove checks for
29098 libassuan >= 2.3.0.
29100 2015-12-02 Neal H. Walfield <neal@g10code.com>
29102 gpg: Improve documentation.
29103 + commit 28195f8d27aa0fc9daf5b74fb24de87c36e04739
29104 * g10/tofu.c (initdb): Improve documentation.
29106 gpg: Fix type mismatch resulting in a buffer overflow.
29107 + commit c73d75103cbd34975e2bd28e9924caee05eaf829
29108 * g10/tofu.c (record_binding): Change policy_old's type from an enum
29109 tofu_policy to a long: this variable is passed by reference and a long
29112 2015-12-02 Werner Koch <wk@gnupg.org>
29114 dirmngr: Switch to an onion address if Tor is running.
29115 + commit 28e2513721ff0cec920564d4087f3600cce8672e
29116 * dirmngr/dirmngr.h (opt): Turn field 'keyserver' into an strlist.
29117 * dirmngr/dirmngr.c (parse_rereadable_options): Allow multiple
29118 --keyserver options.
29119 * dirmngr/server.c (server_local_s): Add field 'tor_state'.
29120 (release_uri_item_list): New.
29121 (release_ctrl_keyservers): Use it.
29122 (start_command_handler): Release list of keyservers.
29123 (is_tor_running): New.
29124 (cmd_getinfo): Re-implement "tor" subcommand using new fucntion.
29125 (ensure_keyserver): Rewrite.
29126 * g10/dirmngr-conf.skel: Add two keyserver options.
29128 http: Enhance parser to detect .onion addresses.
29129 + commit 17ac843871d5f350f26edff0187f94ced923f534
29130 * dirmngr/http.h (parsed_uri_s): Add flag 'onion'.
29131 * dirmngr/http.c (do_parse_uri): Set that flag.
29132 * dirmngr/t-http.c (main): Print flags.
29134 2015-12-02 Neal H. Walfield <neal@g10code.com>
29136 common,gpg: Fix processing of search descriptions ending in '!'.
29137 + commit 10cca02c4c70eee993d4df0a1d20ae841992efe9
29138 * g10/gpg.c (check_user_ids): If the search description describes a
29139 keyid or fingerprint and ends in a '!', include the '!' in the
29140 rewritten description.
29141 * common/userids.c (classify_user_id): Accept keyids and fingerprints
29144 2015-12-01 Justus Winter <justus@g10code.com>
29146 dirmngr: Improve error handling.
29147 + commit 9c34711539fc2c34aea8da0fd49ae6aa28991518
29148 * dirmngr/dns-stuff.c (getsrv): Avoid looking at 'header' before
29149 checking for errors, but silently ignore errors when looking up SRV
29152 2015-12-01 Werner Koch <wk@gnupg.org>
29154 build: Let configure show the the status of Tor support.
29155 + commit 3be12d1e1b8334fb2bba307ec9efbc004f1dbf8d
29156 * configure.ac (show_tor_support): New
29158 2015-11-30 Werner Koch <wk@gnupg.org>
29160 doc: Make make distcheck work again.
29161 + commit 4ecb5db804003c10c57bdc0dc7f1d9649c5ba6f8
29162 * doc/Makefile.am (DISTCLEANFILES): Add gpgkey2ssh.1
29164 yat2m: Add keyword @url.
29165 + commit b4756a54a55fcd51717c149e19191a2eeaa6a919
29166 * doc/yat2m.c (proc_texi_cmd): Add keyword @url.
29168 doc: Build man pages with the same date as the info files.
29169 + commit 081c902f16a2f251df4593f090b3978dfa473a26
29170 * doc/Makefile.am (yat2m-stamp): Use option --date.
29172 yat2m: New option --date.
29173 + commit 75eb071354d1f862bac09c56c8ab81dae8883270
29174 * doc/yat2m.c (opt_date): new.
29175 (isodatestring): Use it if set.
29176 (main): New option --date.
29178 2015-11-27 Werner Koch <wk@gnupg.org>
29180 gpg: Avoid extra translation strings.
29181 + commit 686f31c3d5aee0d2825265869ae92ca95cdcabae
29182 * g10/keyedit.c (menu_expire): Use only one prompt.
29184 kbx: Include gpg-error prior to mischelp.h.
29185 + commit 436a154ea85e4dffbde7c3b316fbfca1b066aa2a
29186 * kbx/keybox-init.c: Change order of includes.
29188 gpg,w32: Fix a format string error.
29189 + commit 7c856f99144b84ac30e0c9a192f09dc36d93190a
29190 * g10/keyring.c (keyring_search): Fix format string for off_t.
29192 Silence compiler warnings related to not using assuan_fd_t.
29193 + commit 501436ab0f9d8e7d56b2f5e344006be5f5a3c653
29194 * common/call-gpg.c (start_gpg): Use assuan_fd_t. Note that the
29195 declaration was already fixed by a previous change.
29196 * dirmngr/server.c (cmd_getinfo): Use assuan_fd_t.
29198 Avoid incompatible pointer assignment warnings on Windows.
29199 + commit 64e87083394d38998feab359caac917bcc6139d3
29200 * common/logging.c (fun_writer): Use gpgrt_ssize_t instead of ssize_t.
29201 * dirmngr/server.c (data_line_cookie_write): Ditto.
29202 * sm/certdump.c (format_name_writer): Ditto.
29203 * sm/server.c (data_line_cookie_write): Ditto.
29204 * dirmngr/http.c (cookie_read, cookie_write): Ditto.
29206 dirmngr: Avoid a declarations after statements.
29207 + commit 100f34e869df899a695f5e5ef1b8e092baf91751
29208 * tools/gpgtar.c (parse_arguments): Use a block for a local varibale
29211 dirmngr: Avoid casting away a const from an char**.
29212 + commit 6501741d2c1beb8060198a39a1aa950cb11b386f
29213 * dirmngr/ldap.c (start_cert_fetch_ldap): Do not use pointers from
29216 dirmngr: Allow testing for a running Tor via "getinfo tor".
29217 + commit da5a232199ef93be219e933a7eaf4ccfc6d24d61
29218 * dirmngr/server.c (cmd_getinfo): Print an S line if Tor is not
29221 2015-11-26 Werner Koch <wk@gnupg.org>
29223 g13: Fix commit 1a045b13.
29224 + commit 82f6abb4807c89388052ab442368d9e09fb84aea
29225 * g13/g13.c (main): Use existsing function.
29227 common: Fix off-by-one access in the new format_text.
29228 + commit 61941a984964308b09c7fc1b3438fb99d0b3c917
29229 * common/stringhelp.c (format_text): Use existsing fucntion to trim
29230 trailing spaces. Fix off-by-one access.
29232 dirmngr: Improve output of "getinfo tor".
29233 + commit d226e67856e7197c581dcd2cef0f1e687bee0ac9
29234 * dirmngr/server.c (cmd_getinfo): Print a message along with OK.
29236 dirmngr: Let Libassuan employ nPth wrappers for connect.
29237 + commit f95cff1cc9e7a4d9f6b7c45188ec47e70f9874dc
29238 * dirmngr/http.c (my_unprotect, my_protect): Remove.
29239 (connect_server): Do not use these wrappers.
29241 2015-11-26 Justus Winter <justus@g10code.com>
29243 tools/gpgtar: Add '--dry-run'.
29244 + commit 676b2d7081291f7e47a66755ab07af259fea130b
29245 * tools/gpgtar-extract.c (extract_{regular,directory}): Honor
29247 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
29248 (opts): Add '--dry-run'.
29249 (parse_arguments): Handle '--dry-run'.
29250 * tools/gpgtar.h (opt): Add field 'dry_run'.
29252 tools/gpgtar: Handle '--gpg-args'.
29253 + commit 69a8440f44fa025e33a4cc32d17695c9ac385043
29254 * tools/gpgtar-create.c (gpgtar_create): Use given arguments.
29255 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
29256 * tools/gpgtar-list.c (gpgtar_list): Likewise.
29257 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
29258 (opts): Add 'gpg-args'.
29259 (parse_arguments): Handle arguments.
29260 * tools/gpgtar.h (opt): Add field 'gpg_arguments'.
29261 * tests/openpgp/gpgtar.test: Simplify accordingly.
29263 common: Make the GPG arguments configurable in call-gpg.
29264 + commit 1a045b1324efabe7423a8d00245f01718ed72556
29265 * common/call-gpg.c (start_gpg): Add parameter 'gpg_arguments'.
29266 (_gpg_encrypt, gpg_encrypt_blob, gpg_encrypt_stream): Likewise.
29267 (_gpg_decrypt, gpg_decrypt_blob, gpg_decrypt_stream): Likewise.
29268 * common/call-gpg.h: Adapt prototypes.
29269 * g13/create.c (encrypt_keyblob): Adapt callsite.
29270 * g13/g13-common.h (opt): Add field 'gpg_arguments'.
29271 * g13/g13.c (main): Construct default arguments.
29272 * g13/mount.c (decrypt_keyblob): Adapt callsite.
29273 * tools/gpgtar-create.c (gpgtar_create): Likewise.
29274 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
29275 * tools/gpgtar-list.c (gpgtar_list): Likewise.
29277 tools/gpgtar: Handle '--tar-args' for compatibility with gpg-zip.
29278 + commit 2eb3248058330dd5c37560d9887db5b5266c54fe
29279 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
29280 (opts): Add new group for tar options, rearrange a little, add
29282 (tar_opts): New variable.
29283 (shell_parse_stringlist): New function.
29284 (shell_parse_argv): Likewise.
29285 (parse_arguments): Add option argument, handle '--tar-args'.
29286 (main): Fix invokation of 'parse_arguments'.
29287 * tests/openpgp/gpgtar.test: Simplify decryption.
29289 tools/gpgtar: Rework argument parsing.
29290 + commit 35c0c8b211bc891335e822379b33ea34fbc1f84f
29291 * tools/gpgtar.c (main): Move argument parsing into its own function.
29293 2015-11-25 Justus Winter <justus@g10code.com>
29295 tests: Add tests for gpgtar and gpg-zip.
29296 + commit 556e8c44267fe3b829ca06286e9b5637ca1a6a73
29297 * tests/openpgp/Makefile.am (TESTS): Add new file.
29298 * tests/openpgp/gpgtar.test: New file.
29300 tools/gpgtar: Handle '--directory' argument.
29301 + commit 127aba9a4d6c1aabb4a18a74b16d3bddc6eb5c54
29302 * tools/gpgtar-extract.c (gpgtar_extract): Only generate a directory
29303 name if none is given via arguments.
29304 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
29305 (opts): Add argument.
29306 (main): Parse argument.
29307 * tools/gpgtar.h (opt): New field 'directory'.
29309 tools/gpgtar: Handle '--gpg' argument.
29310 + commit 89e104eb38c3a6896892ff09db11cb1bae2bb0d3
29311 * tools/gpgtar-create.c (gpgtar_create): Use given gpg program.
29312 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
29313 * tools/gpgtar-list.c (gpgtar_list): Likewise.
29314 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
29315 (opts): Add argument.
29316 (main): Handle argument.
29317 * tools/gpgtar.h (opt): Add field 'gpg_program'.
29319 tools/gpgtar: Improve error handling.
29320 + commit f76fb047c15914ba44dc9423d235484758bcd721
29321 * tools/gpgtar-create.c (gpgtar_create): Return an error code, fix
29323 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
29324 * tools/gpgtar-list.c (read_header): Return an error code.
29325 (gpgtar_list): Return an error code, fix error handling.
29326 (gpgtar_read_header): Return an error code.
29327 * tools/gpgtar.c: Add missing include.
29328 (main): Print an generic error message if a command failed and no
29329 error has been printed yet.
29330 * tools/gpgtar.h (gpgtar_{create,extract,list,read_header}): Fix the
29331 prototypes accordingly.
29333 tools: Add encryption and decryption support to gpgtar.
29334 + commit 40dbee86f3043aff8a8c2055521e270318e33068
29335 * tools/Makefile.am: Amend CFLAGS and LDADD.
29336 * tools/gpgtar-create.c (gpgtar_create): Add encrypt flag and encrypt
29337 stream if requested.
29338 * tools/gpgtar-extract.c (gpgtar_extract): Likewise for decryption.
29339 * tools/gpgtar-list.c (gpgtar_list): Likewise.
29340 * tools/gpgtar.c (main): Initialize npth and assuan. Parse recipient
29341 and local user, and note which flags are currently ignored. Adapt
29342 calls to gpgtar_list and friends.
29343 (tar_and_encrypt): Drop stub function and prototype.
29344 (decrypt_and_untar): Likewise.
29345 (decrypt_and_list): Likewise.
29346 * tools/gpgtar.h (gpgtar_{create,extract,list}): Add encryption or
29347 decryption argument.
29349 common: Add stream interface to call-pgp.
29350 + commit 03bf88f32c8d203d5b3bfbbc48cc45e6c08cc187
29351 * common/call-gpg.c (struct writer_thread_parms): Add field 'stream'.
29352 (writer_thread_main): Support reading from a stream.
29353 (start_writer): Add stream argument.
29354 (struct reader_thread_parms): Add field 'stream'.
29355 (reader_thread_main): Support writing to a stream.
29356 (start_reader): Add stream argument.
29357 (_gpg_encrypt): Add stream api.
29358 (gpg_encrypt_blob): Adapt accordingly.
29359 (gpg_encrypt_stream): New function.
29360 (_gpg_decrypt): Add stream api.
29361 (gpg_decrypt_blob): Adapt accordingly.
29362 (gpg_decrypt_stream): New function.
29363 * common/call-gpg.h (gpg_encrypt_stream): New prototype.
29364 (gpg_decrypt_stream): Likewise.
29366 common: Refactor the call-gpg code.
29367 + commit cb18d802308bde4e28219417bb4d107a4c0001b4
29368 * common/call-gpg.c (gpg_{en,de}crypt_blob): Move most of the code
29369 into two new functions, _gpg_encrypt and _gpg_decrypt.
29371 g13: Move 'call-gpg.c' to common.
29372 + commit ba1a5cc17d43d9cba32447876f06a8ab8f97e5ae
29373 * common/Makefile.am (common_sources): Add files.
29374 * g13/call-gpg.c: Move to 'common' and adapt slightly. Add a
29375 parameter to let callees override the gpg program to execute.
29376 * g13/call-gpg.h: Likewise.
29377 * g13/Makefile.am (g13_SOURCES): Drop files.
29378 * g13/create.c (encrypt_keyblob): Hand in the gpg program to execute.
29379 * g13/mount.c (decrypt_keyblob): Likewise.
29381 2015-11-24 Neal H. Walfield <neal@g10code.com>
29383 gpg: When comparing keyids, use the keyid, not the fingerprint's suffix.
29384 + commit e9c16fee2576c772de9d4fb5d53fee28e4b84202
29385 * g10/keyedit.c (menu_select_key): Use spacep and hexdigitp instead of
29386 inline tests. Don't compare P to the suffix of the fingerprint. If P
29387 appears to be a keyid, do an exact compare against the keyid. If it
29388 appears to be a fingerprint, do an exact compare against the
29391 2015-11-23 Neal H. Walfield <neal@g10code.com>
29393 gpg: Reflow long texts.
29394 + commit 19362a8dd7ee986c082a5afc5a446f939991ec0f
29395 * common/stringhelp.c (format_text): New function.
29396 * common/t-stringhelp.c (stresc): New function.
29397 (test_format_text): New function. Test format_text.
29398 * g10/tofu.c (get_trust): Use format_text to reflow long texts.
29399 (show_statistics): Likewise.
29401 common: Extend utf8_charcount to include the string's length.
29402 + commit 5b84b0d660c8329e184d98682665aaea7e1703d2
29403 * common/stringhelp.c (utf8_charcount): Take additional parameter,
29404 len. Process at most LEN bytes.
29406 2015-11-23 Justus Winter <justus@g10code.com>
29408 dirmngr: Fix http lookups when libadns is used.
29409 + commit b75e1b3d8b1643640d046f7f8e89adf5b1caa7a3
29410 * dirmngr/dns-stuff.c (resolve_name_adns): Fill in the port.
29412 dirmngr: Fix SRV record lookups when using the system resolver.
29413 + commit 946faaff04f3340ed6db9e89c5036dc5f9beca6a
29414 * dirmngr/dns-stuff.c (getsrv): Fix error handling.
29416 dirmngr: Honor ports specified in SRV records.
29417 + commit 73c1a86ad937d7be027eece991c69aaeb6a1f092
29418 * dirmngr/ks-engine-hkp.c (struct hostinfo_s): New field 'port'.
29419 (create_new_hostinfo): Initialize 'port'.
29420 (add_host): Add host parameter and update the hosttable entry.
29421 (map_host): Return port if known, adjust calls to 'add_host'.
29422 (make_host_part): Let 'map_host' specify the port if known.
29424 dirmngr: Support hkp server pools using SRV records.
29425 + commit c9f5aa15793b3c05c1b92af401b23ab34d3e6196
29426 * dirmngr/ks-engine-hkp.c (map_host): Handle SRV records.
29428 dirmngr: Refactor 'map_host'.
29429 + commit 3f52f6bcacfe3877d30a21464e93e9240bc75085
29430 * dirmngr/ks-engine-hkp.c (add_host): New function.
29431 (map_host): Use the new function.
29433 dirmngr: Fix pool detection.
29434 + commit 23ea641ba2a063cc99c82869061703d48bc674b2
29435 * dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.
29437 dirmngr: Refactor 'map_host'.
29438 + commit 2b43a0515868b8720009e48d7a1f32d571767f14
29439 * dirmngr/ks-engine-hkp.c (arecords_is_pool): New function.
29440 (map_host): Use the new function.
29442 dirmngr: Start dirmngr on demand.
29443 + commit a9e0b1dd6c106e243e3fbbaa1838b56a1f1c8584
29444 * common/asshelp.h: Include 'util.h'.
29445 * dirmngr/dirmngr-client.c (main): Use 'start_new_dirmngr' to connect
29447 (start_dirmngr): Drop now unused declaration and function.
29449 2015-11-23 Neal H. Walfield <neal@g10code.com>
29451 gpg: If sqlite is not available, don't build things depending on it.
29452 + commit 770c06ed4e6c1097d6e305a0a9427c3c783b787c
29453 * configure.ac: Define the automake conditional SQLITE3.
29454 * tests/openpgp/Makefile.am (TESTS): Move the sqlite3 dependent tests
29456 (sqlite3_dependent_tests): ... this new variable. If SQLITE3 is not
29457 defined, then clear this variable.
29459 gpg: Allow updating the expiration time of multiple subkeys at once.
29460 + commit b64b33bb80a8cf5dcc1fdbc62023d019fe2c8cb1
29461 * g10/keyedit.c (menu_expire): Allow updating the expiration time of
29462 multiple subkeys at once.
29464 gpg: Don't crash if key is not passed an argument.
29465 + commit 19f099463c82c119288a05eaefc42bf09d617377
29466 * g10/keyedit.c (menu_select_key): Don't crash if P is NULL.
29468 2015-11-20 Neal H. Walfield <neal@g10code.com>
29470 gpg: Fail if the search description passed to --gen-revoke is ambiguous.
29471 + commit 178af9c3f56d385fe28a9e5e8bde0ab34c0b260e
29472 * g10/revoke.c (gen_revoke): Error out if the search description is
29475 gpg: Refactor print_seckey_info.
29476 + commit f8a65ac96b27a0963892892ce6e93b37b8df1ad7
29477 * g10/keylist.c (print_seckey_info): Break formatting functionality
29479 (format_seckey_info): ... this new function.
29481 gpg: Improve an error message.
29482 + commit 46e128d44a0456dc603bc9e25a4c5d8da903b078
29483 * g10/revoke.c (gen_revoke): Provide a more descriptive error message
29484 if searching for a key fails.
29486 2015-11-19 Justus Winter <justus@g10code.com>
29488 dirmngr: Improve error handling.
29489 + commit 6b14df5525777ee0330a34a7b335359f562616a4
29490 * dirmngr/crlcache.c (crl_cache_cert_isvalid): Add missing break.
29492 dirmngr: Fix memory leak.
29493 + commit b223cde311e4e02f7983e33fe3d7214287dfb678
29494 * dirmngr/ldap.c (start_cert_fetch_ldap): Avoid leaking all malloc'ed
29497 agent: Improve error handling.
29498 + commit a1650b1edf80c2526c0576547b3a574e8d30f1fa
29499 * agent/trustlist.c (istrusted_internal): Initialize 'err'.
29501 common: Avoid undefined behavior.
29502 + commit eb957ffc4797fb019c505510295af244baf5be38
29503 * common/iobuf.c (iobuf_esopen): Initialize 'len' as 'file_es_filter'
29504 will make use of it.
29506 g10: Avoid undefined behavior.
29507 + commit 52f7f195b119dc01bdf3ae200fdc8e04a0bb9bcb
29508 * g10/trust.c (clean_one_uid): Avoid a computation involving an
29509 uninitialized value.
29511 scd: Improve error handling.
29512 + commit 6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d
29513 * scd/app-openpgp.c (get_public_key): Improve error handling.
29515 2015-11-18 Justus Winter <justus@g10code.com>
29517 dirmngr: Gracefully handle premature termination of TLS streams.
29518 + commit eb54fca4bf3ef8e0cd50b01df5b40e0d6d318d7e
29519 * dirmngr/http.c (close_tls_session): New function.
29520 (session_unref): Use the new function to close the TLS stream.
29521 (cookie_read): If the stream terminated prematurely, close it and
29522 return a short read.
29524 2015-11-17 Neal H. Walfield <neal@g10code.com>
29525 Michael Mönch <michael.moench@marktjagd.de>
29527 tools: Fix option parsing for gpg-zip.
29528 + commit 84ebf15b06e435453b2f58775f97a3a1c61a7e55
29529 * tools/gpg-zip.in: Correctly set GPG when --gpg is specified.
29530 Correctly set TAR when --tar is specified. Pass TAR_ARGS to tar.
29532 2015-11-17 Neal H. Walfield <neal@g10code.com>
29534 gpg: Allow selecting subkeys using a keyid.
29535 + commit 0b86c7463c8c057496b38e06c00f0ae4288dad49
29536 * g10/keyedit.c (menu_select_key): Take an additional argument, p.
29537 Update callers. If P is a hex string, then assume that P is a key id
29538 or fingerprint and select subkeys with matching key ids or
29540 * doc/gpg.texi: Update documentation for the key subcommand.
29542 2015-11-17 Justus Winter <justus@g10code.com>
29544 dirmngr: Fix specifying keyservers by IP address.
29545 + commit 1e3dbb15affd6d75a477aa17715d8e5470988c08
29546 * dirmngr/ks-engine-hkp.c (map_host): Update the original 'hosttable'
29547 entry instead of creating another one.
29549 2015-11-17 Neal H. Walfield <neal@g10code.com>
29551 gpg: Change keydb_search to not return legacy keys.
29552 + commit 58e4a492e2c8e908d16135486ed601f602f1e38d
29553 * g10/keyring.c (keyring_search): Take new argument, ignore_legacy.
29554 If set, skip any legacy keys. Update callers.
29555 * g10/keydb.c (keydb_search): Skip any legacy keys.
29556 (keydb_search_first): Don't skip legacy keys. Treat them
29558 (keydb_search_next): Likewise.
29559 (keydb_search_fpr): Likewise.
29560 * g10/export.c (do_export_stream): Likewise.
29561 * g10/getkey.c (lookup): Likewise.
29562 (have_secret_key_with_kid): Likewise.
29563 * g10/keylist.c (list_all): Likewise.
29564 (keyring_rebuild_cache): Likewise.
29565 * g10/keyserver.c (keyidlist): Likewise.
29566 * g10/trustdb.c (validate_key_list): Likewise.
29568 gpg: Correctly handle an error.
29569 + commit 848726f5c02faddb0b0fd24ce1a66893f5325675
29570 * g10/keyring.c (keyring_search): If a compare function returns an
29571 error, treat it as an error.
29573 gpg: Correctly handle keyblocks followed by legacy keys.
29574 + commit ad9befab12376b3a49cde410996ac9f0013d0871
29575 * g10/keyring.c (keyring_get_keyblock): If we encounter a legacy
29576 packet after already having some non-legacy packets, then treat the
29577 legacy packet as a keyblock boundary, not as part of the keyblock.
29578 * g10/t-keydb-get-keyblock.c: New file.
29579 * g10/t-keydb-get-keyblock.gpg: New file.
29580 * g10/Makefile.am (EXTRA_DIST): Add t-keydb-get-keyblock.gpg.
29581 (module_tests): Add t-keydb-get-keyblock.
29582 (t_keydb_get_keyblock_SOURCES): New variable.
29583 (t_keydb_get_keyblock_LDADD): Likewise.
29585 gpg: Make debugging search descriptors easier.
29586 + commit 11ec4785df1646643966d872b1b53ef675092c98
29587 * g10/keydb.c (dump_search_desc): Rename from this...
29588 (keydb_search_desc_dump): ... to this. Only process a single search
29589 descriptor. Improve output. Don't mark as static. Update callers.
29591 gpg: Add function format_keyid.
29592 + commit a052c30d31c0f6b532fea081f4a9bee083f5440f
29593 * g10/options.h (opt.keyid_format): Add new value KF_DEFAULT.
29594 * g10/keyid.c (format_keyid): New function.
29597 gpg: Use a more appropriate error code.
29598 + commit eae982ed6d69644258afe9c4ad1be553853d8403
29599 * g10/gpg.c (check_user_ids): Return a more appropriate error code if
29600 a user id is ambiguous.
29602 2015-11-17 Justus Winter <justus@g10code.com>
29604 Fix typos found using codespell.
29605 + commit a9e0905342e847e8961ec4fe9b3aaedf05e33423
29606 * agent/cache.c: Fix typos.
29607 * agent/call-pinentry.c: Likewise.
29608 * agent/call-scd.c: Likewise.
29609 * agent/command-ssh.c: Likewise.
29610 * agent/command.c: Likewise.
29611 * agent/divert-scd.c: Likewise.
29612 * agent/findkey.c: Likewise.
29613 * agent/gpg-agent.c: Likewise.
29614 * agent/w32main.c: Likewise.
29615 * common/argparse.c: Likewise.
29616 * common/audit.c: Likewise.
29617 * common/audit.h: Likewise.
29618 * common/convert.c: Likewise.
29619 * common/dotlock.c: Likewise.
29620 * common/exechelp-posix.c: Likewise.
29621 * common/exechelp-w32.c: Likewise.
29622 * common/exechelp-w32ce.c: Likewise.
29623 * common/exechelp.h: Likewise.
29624 * common/helpfile.c: Likewise.
29625 * common/i18n.h: Likewise.
29626 * common/iobuf.c: Likewise.
29627 * common/iobuf.h: Likewise.
29628 * common/localename.c: Likewise.
29629 * common/logging.c: Likewise.
29630 * common/openpgp-oid.c: Likewise.
29631 * common/session-env.c: Likewise.
29632 * common/sexputil.c: Likewise.
29633 * common/sysutils.c: Likewise.
29634 * common/t-sexputil.c: Likewise.
29635 * common/ttyio.c: Likewise.
29636 * common/util.h: Likewise.
29637 * dirmngr/cdblib.c: Likewise.
29638 * dirmngr/certcache.c: Likewise.
29639 * dirmngr/crlcache.c: Likewise.
29640 * dirmngr/dirmngr-client.c: Likewise.
29641 * dirmngr/dirmngr.c: Likewise.
29642 * dirmngr/dirmngr_ldap.c: Likewise.
29643 * dirmngr/dns-stuff.c: Likewise.
29644 * dirmngr/http.c: Likewise.
29645 * dirmngr/ks-engine-hkp.c: Likewise.
29646 * dirmngr/ks-engine-ldap.c: Likewise.
29647 * dirmngr/ldap-wrapper.c: Likewise.
29648 * dirmngr/ldap.c: Likewise.
29649 * dirmngr/misc.c: Likewise.
29650 * dirmngr/ocsp.c: Likewise.
29651 * dirmngr/validate.c: Likewise.
29652 * g10/encrypt.c: Likewise.
29653 * g10/getkey.c: Likewise.
29654 * g10/gpg.c: Likewise.
29655 * g10/gpgv.c: Likewise.
29656 * g10/import.c: Likewise.
29657 * g10/keydb.c: Likewise.
29658 * g10/keydb.h: Likewise.
29659 * g10/keygen.c: Likewise.
29660 * g10/keyid.c: Likewise.
29661 * g10/keylist.c: Likewise.
29662 * g10/keyring.c: Likewise.
29663 * g10/mainproc.c: Likewise.
29664 * g10/misc.c: Likewise.
29665 * g10/options.h: Likewise.
29666 * g10/packet.h: Likewise.
29667 * g10/parse-packet.c: Likewise.
29668 * g10/pkclist.c: Likewise.
29669 * g10/pkglue.c: Likewise.
29670 * g10/plaintext.c: Likewise.
29671 * g10/server.c: Likewise.
29672 * g10/sig-check.c: Likewise.
29673 * g10/sqlite.c: Likewise.
29674 * g10/tdbio.c: Likewise.
29675 * g10/test-stubs.c: Likewise.
29676 * g10/tofu.c: Likewise.
29677 * g10/trust.c: Likewise.
29678 * g10/trustdb.c: Likewise.
29679 * g13/create.c: Likewise.
29680 * g13/mountinfo.c: Likewise.
29681 * kbx/keybox-blob.c: Likewise.
29682 * kbx/keybox-file.c: Likewise.
29683 * kbx/keybox-init.c: Likewise.
29684 * kbx/keybox-search-desc.h: Likewise.
29685 * kbx/keybox-search.c: Likewise.
29686 * kbx/keybox-update.c: Likewise.
29687 * scd/apdu.c: Likewise.
29688 * scd/app-openpgp.c: Likewise.
29689 * scd/app-p15.c: Likewise.
29690 * scd/app.c: Likewise.
29691 * scd/ccid-driver.c: Likewise.
29692 * scd/command.c: Likewise.
29693 * scd/iso7816.c: Likewise.
29694 * sm/base64.c: Likewise.
29695 * sm/call-agent.c: Likewise.
29696 * sm/call-dirmngr.c: Likewise.
29697 * sm/certchain.c: Likewise.
29698 * sm/gpgsm.c: Likewise.
29699 * sm/import.c: Likewise.
29700 * sm/keydb.c: Likewise.
29701 * sm/minip12.c: Likewise.
29702 * sm/qualified.c: Likewise.
29703 * sm/server.c: Likewise.
29704 * tools/gpg-check-pattern.c: Likewise.
29705 * tools/gpgconf-comp.c: Likewise.
29706 * tools/gpgkey2ssh.c: Likewise.
29707 * tools/gpgparsemail.c: Likewise.
29708 * tools/gpgtar.c: Likewise.
29709 * tools/rfc822parse.c: Likewise.
29710 * tools/symcryptrun.c: Likewise.
29712 2015-11-16 Neal H. Walfield <neal@g10code.com>
29714 gpg: Fix error checking and improve error reporting.
29715 + commit 8e2bea22b0927f4f95a248cc7517f407a705d8a8
29716 * g10/gpg.c (check_user_ids): Differentiate between a second result
29717 and an error. If the key specification is ambiguous or an error
29718 occurs, set RC appropriately.
29720 2015-11-14 Werner Koch <wk@gnupg.org>
29722 gpg: Use only one fingerprint formatting function.
29723 + commit 3689c2105aab6a4304e9464c5b20207d69b9a133
29724 * g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): New.
29725 * g10/keyid.c (hexfingerprint): Add optional args BUFFER and BUFLEN.
29726 Change all callers.
29727 (format_hexfingerprint): New.
29728 * g10/keylist.c (print_fingerprint): Change to use hexfingerprint.
29729 * g10/tofu.c (fingerprint_format): Remove. Replace calls by
29730 format_hexfingerprint.
29732 2015-11-13 Werner Koch <wk@gnupg.org>
29734 gpg: Simplify the tofu interface by using the public key packet.
29735 + commit e7d7160ab7cd4e6b460bfe36fd3a7275adadb4e2
29736 * g10/tofu.c (fingerprint_str): Remove.
29737 (tofu_register): Take a public key instead of a fingerprint as arg.
29738 Use hexfingerprint() to get a fpr from the PK.
29739 (tofu_get_validity): Ditto.
29740 (tofu_set_policy, tofu_get_policy): Simplify by using hexfingerprint.
29741 * g10/trustdb.c (tdb_get_validity_core): Pass the primary key PK to
29742 instead of the fingerprint to the tofu functions.
29744 gpg: Make trusted-key override for Tofu robust against swapped tofu.db.
29745 + commit 7de8376430625c1f6f3a58ae16276deca8ff6a82
29746 * g10/tofu.c (get_trust): For the UTK check lookup the key by
29749 gpg: Fix regression in --locate-keys (in 2.1.9).
29750 + commit 7e59fb21f728b5f54468cd35b1415a2f86003d4f
29751 * g10/getkey.c (getkey_ctx_s): Add field "extra_list".
29752 (get_pubkey_byname): Store strings in the context.
29753 (getkey_end): Free EXTRA_LIST.
29755 2015-11-12 Werner Koch <wk@gnupg.org>
29757 gpg: Print a new EXPORTED status line.
29758 + commit 2038adf16d0e7eeb614043aae17b16a867de6b70
29759 * common/status.h (STATUS_EXPORTED): New.
29760 * g10/export.c (print_status_exported): New.
29761 (do_export_stream): Call that function.
29763 gpg: Print export statistics to the status-fd.
29764 + commit e3c48335f9c5081c6080bceafa7a04140403427a
29765 * common/status.h (STATUS_EXPORT_RES): New.
29766 * g10/main.h (export_stats_t): New.
29767 * g10/export.c (export_stats_s): New.
29768 (export_new_stats, export_release_stats): New.
29769 (export_print_stats): New.
29770 (export_pubkeys, export_seckeys, export_secsubkeys)
29771 (export_pubkey_buffer, do_export): Add arg "stats".
29772 (do_export_stream): Add arg stats and update it.
29773 * g10/gpg.c (main) <aExport, aExportSecret, aExportSecretSub>: Create,
29774 pass, and print a stats object to the export function calls.
29776 * g10/export.c (export_pubkeys_stream): Remove unused function.
29778 dirmngr: Do not block during ADNS calls.
29779 + commit a3b26d6c0839ec18d1dc226bb537d5067c86d574
29780 * dirmngr/dns-stuff.c: Include npth.h
29781 (my_unprotect, my_protect): New wrapper.
29782 (resolve_name_adns): Put unprotect/protect around adns calls.
29783 (get_dns_cert): Ditto.
29785 (get_dns_cname): Ditto.
29787 dirmngr: New option --nameserver.
29788 + commit a2cc1d57552ccac7b2f9a0c6423b171b2a168b2a
29789 * dirmngr/dirmngr.c (oNameServer): New.
29790 (opts): Add --nameserver.
29791 (parse_rereadable_options): Act upon oNameServer.
29792 * dirmngr/dns-stuff.c (DEFAULT_NAMESERVER): New.
29793 (tor_nameserver): New.
29794 (set_dns_nameserver): New.
29795 (my_adns_init): Make name server configurable.
29797 2015-11-11 Neal H. Walfield <neal@g10code.com>
29799 gpg: Fix cache consistency problem.
29800 + commit 7546e818791988c00b8635dab5b899265d8d9f42
29801 g10/keyring.c (keyring_search): Only mark the cache as completely
29802 filled if we start the scan from the beginning of the keyring.
29804 2015-11-10 Neal H. Walfield <neal@g10code.com>
29806 gpg: Default to the the PGP trust model.
29807 + commit 67c701d1e53f56305e3b8771c683c45bb9672305
29808 * g10/trustdb.c (init_trustdb): If we can't read the trust model from
29809 the trust DB, default to TM_PGP, not TM_TOFU_PGP.
29811 gpg: Default to the flat TOFU DB format.
29812 + commit 951f277b6bf8178560105538d38e2a07a96865bd
29813 * g10/tofu.c (opendbs): If the TOFU DB format is set to auto and there
29814 is no TOFU DB, default to the flat format.
29816 2015-11-09 Werner Koch <wk@gnupg.org>
29818 dirmngr: Change to new ADNS Tor mode init scheme.
29819 + commit 288c9919dc45496b2380eeac487a8539692d6842
29820 * dirmngr/dns-stuff.c (tor_credentials): New.
29821 (enable_dns_tormode): Add arg new_circuit and update tor_credentials.
29822 (my_adns_init): Rework to set Tor mode using a config file options and
29823 always use credentials.
29824 * dirmngr/server.c (cmd_dns_cert): Improve error message.
29825 * dirmngr/t-dns-stuff.c (main): Add option --new-circuit.
29827 dirmngr: Improve detection of ADNS.
29828 + commit f92e95175e90120362a7d6376fb32307e11267b5
29829 * configure.ac (HAVE_ADNS_FREE): New ac_define.
29831 2015-11-09 NIIBE Yutaka <gniibe@fsij.org>
29833 scd: Add reder information to --card-status.
29834 + commit bce0e3f71df0709a7d323a688ddf2690c1727a6c
29835 * g10/call-agent.h, g10/call-agent.c (agent_release_card_info)
29836 g10/card-util.c (card_status): Add READER.
29837 * scd/apdu.c (close_ccid_reader, open_ccid_reader): Handle RDRNAME.
29838 (apdu_get_reader_name): New.
29839 * scd/ccid-driver.c (ccid_open_reader): Add argument to RDRNAME_P.
29840 * scd/command.c (cmd_learn): Return READER information.
29842 2015-11-06 Werner Koch <wk@gnupg.org>
29844 gpg: Avoid new strings.
29845 + commit 2242658efe0c975a46c3316bc9171ddbce085e2c
29846 * g10/decrypt-data.c (decrypt_data): Use already translated strings.
29848 common: Fix commit f99830b.
29849 + commit 20125333e7b822e8c70ac8cef986649f0654eb56
29850 * common/userids.c (classify_user_id): Avoid underflow. Use spacep to
29853 2015-11-06 Neal H. Walfield <neal@g10code.com>
29855 gpg: Fix formatting string.
29856 + commit 28e198201e580b39bceb9c151df07fc0e936a91d
29857 * g10/decrypt-data.c (decrypt_data): Fix formatting string.
29859 gpg: Add new option --only-sign-text-ids.
29860 + commit a74aeb5dae1f673fcd98b39a6a0496f3c622709a
29861 * g10/options.h (opt): Add field only_sign_text_ids.
29862 * g10/gpg.c (enum cmd_and_opt_values): Add value oOnlySignTextIDs.
29863 (opts): Handle oOnlySignTextIDs.
29865 * g10/keyedit.c (sign_uids): If OPT.ONLY_SIGN_TEXT_IDS is set, don't
29866 select non-text based IDs automatically.
29867 (keyedit_menu): Adapt the prompt asking to sign all user ids according
29868 to OPT.ONLY_SIGN_TEXT_IDS.
29869 * doc/gpg.texi: Document the new option --only-sign-text-ids.
29871 common: When classifying keyids and fingerprints, reject trailing junk.
29872 + commit f99830b72812395da5451152bdd2f2d90a7cb7fb
29873 * common/userids.c (classify_user_id): Trim any trailing whitespace.
29874 Before assuming that a hexstring corresponds to a key id or
29875 fingerprint, make sure that it is NUL terminated.
29877 gpg: Check for ambiguous or non-matching key specs.
29878 + commit e8c53fca954d33366e3494a6d4eecc3868282bcc
29879 * g10/gpg.c (check_user_ids): New function.
29880 (main): Check that any user id specifications passed to --local-user
29881 and --remote-user correspond to exactly 1 user. Check that any user
29882 id specifications passed to --default-key correspond to at most 1
29883 user. Warn if any user id specifications passed to --local-user or
29884 --default-user are possible ambiguous (are not specified by long keyid
29886 * g10/getkey.c (parse_def_secret_key): Don't warn about possible
29887 ambiguous key descriptions here.
29889 common: Add new function strlist_rev.
29890 + commit f38bac8883ea2e9ed8e2836f97a953efb85e774c
29891 * common/strlist.c (strlist_rev): New function.
29892 * common/t-strlist.c: New file.
29893 * common/Makefile.am (common_sources): Add strlist.c and strlist.h.
29894 (module_tests): Add t-strlist.
29895 (t_strlist_LDADD): New variable.
29897 common: Include required, but not included headers in t-support.h.
29898 + commit 23e163473f050d1f2c08f589beb9dab283b7d624
29899 * common/t-support.h: Include <stdlib.h> and <stdio.h>.
29901 2015-11-05 Neal H. Walfield <neal@g10code.com>
29903 gpg: Indicate which characters are invalid.
29904 + commit a958ffd148a46f3757d1c309bb13555638044640
29905 * g10/keygen.c (ask_user_id): Indicate which characters are invalid.
29907 gpg: Add support for unwrapping the outer level of encryption.
29908 + commit ec409e62aea6cc829299be794f9d035d033cb51b
29909 * g10/decrypt-data.c (decrypt_data): If OPT.UNWRAP_ENCRYPTION is set,
29910 copy the data to the output file instead of continuing to process it.
29911 * g10/gpg.c (enum cmd_and_opt_values): Add new value oUnwrap.
29912 (opts): Handle oUnwrap.
29914 * g10/options.h (opt): Add field unwrap_encryption.
29915 * g10/plaintext.c (handle_plaintext): Break the output file selection
29916 functionality into ...
29917 (get_output_file): ... this new function.
29919 common: Add a function for copying data from one iobuf to another.
29920 + commit fd4b9e232805b2e30b29903568c95cc0aad8bbec
29921 * common/iobuf.c (iobuf_copy): New function.
29923 doc: Note that gpgkey2ssh is deprecated.
29924 + commit 2b0e0a53b4db8c44e299f57a9f4f9fc1b825e707
29925 * doc/tools.texi (gpgkey2ssh): Note that gpgkey2ssh is deprecated.
29927 tools: Fix gpgkey2ssh's most gratuitous errors. Use gpg2, not gpg.
29928 + commit cd2d685230ecafb7df504ef2b16cf1ec9a014300
29929 * tools/gpgkey2ssh.c (main): Add support for --help. Replace the most
29930 gratuitous asserts with error messages. Invoke gpg2, not gpg.
29932 2015-11-05 Neal H. Walfield <neal@g10code.com>
29933 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
29935 doc: Add documentation for gpgkey2ssh.
29936 + commit 2b27acc3435e73fad7460b551a36b4064cdd58be
29937 * doc/tools.texi: Add documentation for gpgkey2ssh.
29939 2015-11-04 Neal H. Walfield <neal@g10code.com>
29941 gpg: Print a better error message for --multifile --sign --encrypt.
29942 + commit 6897bbf1aa9bf0a61b186ea1a9bcb463fb1fd10e
29943 * g10/gpg.c (main): Print a better error message for --multifile
29946 gpg: Add --encrypt-to-default-key.
29947 + commit de9b2340153d70b083494d1a277a384dcf43bff0
29948 * g10/getkey.c (parse_def_secret_key): Drop the static qualifier and
29949 export the function.
29950 * g10/gpg.c (enum cmd_and_opt_values): Add value oEncryptToDefaultKey.
29951 (opts): Handle oEncryptToDefaultKey.
29953 * g10/options.h (opt): Add field encrypt_to_default_key.
29955 gpg: Allow multiple --default-key options. Take the last available key.
29956 + commit e16d7168c54e5f7bc2f0037806ee4f730930eaf0
29957 * g10/getkey.c (parse_def_secret_key): New function.
29958 (get_seckey_default): Add parameter ctrl. Update callers. Use
29959 parse_def_secret_key to get the default secret key, if any.
29960 (getkey_byname): Likewise.
29961 (enum_secret_keys): Likewise.
29962 * g10/options.h (opt): Change def_secret_key's type from a char * to a
29964 * g10/gpg.c (main): When processing --default-key, add the key to
29965 OPT.DEF_SECRET_KEY.
29966 * g10/gpgv.c (get_session_key): Add parameter ctrl. Update callers.
29967 * g10/mainproc.c (proc_pubkey_enc): Likewise.
29968 (do_proc_packets): Likewise.
29969 * g10/pkclist.c (default_recipient): Likewise.
29970 * g10/pubkey-enc.c (get_session_key): Likewise.
29971 * g10/sign.c (clearsign_file): Likewise.
29972 (sign_symencrypt_file): Likewise.
29973 * g10/skclist.c (build_sk_list): Likewise.
29974 * g10/test-stubs.c (get_session_key): Likewise.
29976 2015-11-04 NIIBE Yutaka <gniibe@fsij.org>
29978 scd: Fix error handling with libusb-compat library.
29979 + commit 1e94a672efb8bf66f416bc63bf6670e509a21fe5
29980 * scd/ccid-driver.c (bulk_out): Use LIBUSB_ERRNO_NO_SUCH_DEVICE.
29982 scd: fix change_keyattr.
29983 + commit c5a9fedba66361ddd9f596528882750068543298
29984 * scd/app-openpgp.c (change_keyattr_from_string): Fix parsing.
29986 2015-11-03 Werner Koch <wk@gnupg.org>
29988 gpg: Change out of core error message.
29989 + commit 44ad9f29d43f40bbc1840454880f4af3df1c5295
29990 * g10/tofu.c (fingerprint_str): Die with the error code returned by
29991 the failed function.
29992 (time_ago_str): Ditto. Do not make a comma translatable.
29993 (fingerprint_format): Use "%zu" for a size_t.
29995 gpg: Make translation easier.
29996 + commit 62b8cd5495dcac9a0f8a3d88c7bd4cd80997fd3f
29997 * g10/import.c (import_secret_one): Split info string for easier
30000 2015-11-03 Neal H. Walfield <neal@g10code.com>
30002 gpg: Also show when the most recently signed message was observed.
30003 + commit 621afac37e5555fd68054531e611ead444b62928
30004 * g10/tofu.c (show_statistics): Also show when the most recently
30005 signed message was observed.
30007 gpg: Split a utility function out of a large function.
30008 + commit 36326112290b6eef47c9dada30dddbdf408680e4
30009 * g10/tofu.c (show_statistics): Break the time delta to string code
30011 (time_ago_str): ... this new function.
30013 gpg: Fix message formatting.
30014 + commit c8ef9f9a64d13ea8b9b4ade62525243abe2976ba
30015 * g10/tofu.c (get_trust): Fix message formatting.
30017 gpg: Don't store formatting fingerprints in the TOFU DB.
30018 + commit 8ae3946d28c43e30ef692ba6cf1a7fa4ed65ecc5
30019 * g10/tofu.c (fingerprint_pp): Split this function into...
30020 (fingerprint_str): ... this function...
30021 (fingerprint_format): ... and this function.
30022 (record_binding): Store the unformatted fingerprint in the DB. Only
30023 use the formatting fingerprint when displaying a message to the user.
30024 (get_trust): Likewise.
30025 (show_statistics): Likewise.
30026 (tofu_register): Likewise.
30027 (tofu_get_validity): Likewise.
30028 (tofu_set_policy): Likewise.
30029 (tofu_get_policy): Likewise.
30031 2015-11-02 NIIBE Yutaka <gniibe@fsij.org>
30033 g10: notify a user when importing stub is skipped.
30034 + commit 06f3eadb22986d9ebde9efff2794eb1d45d6c6d4
30035 * g10/import.c (transfer_secret_keys): Return GPG_ERR_NOT_PROCESSED
30036 when stub_key_skipped.
30037 (import_secret_one): Notify a user, suggesting --card-status.
30039 2015-10-31 Neal H. Walfield <neal@g10code.com>
30041 gpg: Consider newlines to be whitespace in an SQL statement.
30042 + commit 18cd09246f5dcddcafb8662afd84fa046e36de3f
30043 * g10/sqlite.c (sqlite3_stepx): When making sure that there is no
30044 second SQL statement, ignore newlines.
30046 2015-10-30 Werner Koch <wk@gnupg.org>
30048 common: Improve t-zb32 to be used for manual encoding.
30049 + commit d89a9fca46d9bba497dde0793b57217c800b0e8d
30050 * common/t-support.h (no_exit_on_fail, errcount): New.
30051 (fail): Bump errcount.
30052 * common/t-zb32.c (main): Add options to allow manual use.
30054 common: Add separate header for zb32.c.
30055 + commit 5aadb4b62d26e1bfb40a1ce444a81c2a5a56159c
30056 * common/util.h (zb32_encode): Move prototype to ...
30057 * common/zb32.h: new. Include this for all callers of zb32_encode.
30059 2015-10-29 Neal H. Walfield <neal@g10code.com>
30061 gpg: Display the correct error message.
30062 + commit 641df615da4937b0073c420a0503c5810c237972
30063 * g10/trustdb.c (validate_keys): If tdbio_update_version_record fails,
30064 RC does not contain the error code. Save the error code in rc2 and
30067 gpg: Eliminate a memory leak.
30068 + commit d68bdc553a206e54234d5d53ad35c4ba34133118
30069 * g10/trustdb.c (validate_key_list): Don't leak the keyblocks on
30072 gpg: Remove unused prototype.
30073 + commit ef052591ba51ee16bafc3c5b79d837ed8f01b520
30074 g10/keyring.h (keyring_locate_writable): Remove unused prototype.
30076 gpg: Eliminate a memory leak.
30077 + commit 89eee5f6b7ca3da7ebdcc3e5d069701d0834b39e
30078 * g10/gpg.c (main): Don't leak OPT.DEF_RECIPIENT.
30080 gpg: Fix keyring support.
30081 + commit 99c84b49b787dab8da26cf61eed24dd4a2b77fd9
30082 * g10/keydb.c (keydb_rebuild_caches): Only mark the cached as prepared
30083 if it is actually prepared, which it only is if the resource is a
30086 gpg: Change sqlite3_stepx to pass the sqlite3_stmt * to the callback.
30087 + commit 421827424fe87855307fe3e803b42ffa02738600
30088 * g10/sqlite.h (enum sqlite_arg_type): Add SQLITE_ARG_BLOB.
30089 (sqlite3_stepx_callback): New declaration.
30090 (sqlite3_stepx): Change the callback's type to sqlite3_stepx_callback,
30091 which passes an additional parameter, the sqlite3_stmt *. Update
30094 gpg: Move sqlite helper functions into their own file.
30095 + commit 351f4213e192aa11500c0c590d11183edbe326c5
30096 * g10/tofu.c (sqlite3_exec_printf): Move from here...
30097 * g10/sqlite.c (sqlite3_exec_printf): ... to this new file. Don't
30099 * g10/tofu.c (sqlite3_stepx): Move from here...
30100 * g10/sqlite.c (sqlite3_stepx): ... to this new file. Don't
30102 * g10/tofu.c (enum sqlite_arg_type): Move from here...
30103 * g10/sqlite.h (enum sqlite_arg_type): ... to this new file.
30105 2015-10-29 NIIBE Yutaka <gniibe@fsij.org>
30107 doc: Don't install gpg-zip.1.
30108 + commit d25e29ad9374da1c11ccfc38f392dbab2d707042
30109 * doc/Makefile.am (myman_pages): Remove gpg-zip.1.
30110 (DISTCLEANFILES): Add gpg-zip.1.
30112 2015-10-28 Werner Koch <wk@gnupg.org>
30114 sm: Allow combination of usage flags --gen-key.
30115 + commit 8b6c83dcb086ef09b2676e4d5b0111c88b7b8bf8
30116 * sm/certreqgen.c (create_request): Re-implement building of the
30117 key-usage extension.
30119 2015-10-28 Damien Goutte-Gattat <dgouttegattat@incenp.org>
30121 doc: Document some changed default options.
30122 + commit e095a3fcf2ccc6cc4e258111dc395558069a1164
30123 * doc/gpg.texi: Update the description of some options which are
30124 now enabled by default.
30126 2015-10-28 Werner Koch <wk@gnupg.org>
30128 dirmngr: Fix NULL-deref while loading a CRL.
30129 + commit fa15a71daff8414bf4112bc2826dc495ff2fb01f
30130 * dirmngr/crlcache.c (crl_parse_insert): Set error before leaping to
30133 dirmngr: Minor cleanup of the SRV RR code.
30134 + commit 949a5cfdabcafab93c1ac092c0459b59318805b9
30135 * dirmngr/dns-stuff.c: Include unistd.h.
30136 (getsrv): Run srand only once.
30137 * dirmngr/t-dns-stuff.c (main): Allow passing another name for --srv
30138 and change output format.
30140 dirmngr: Add a getaddrinfo wrapper backend using ADNS.
30141 + commit e026efb4363bc6e3c41ed533daf06f103ebd2e32
30142 * dirmngr/dns-stuff.c: Replace all use of default_errsource.
30143 (my_adns_init): Move to top.
30144 (resolve_name_adns): New.
30145 (resolve_dns_name) [USE_ADNS]: Divert to new func.
30147 2015-10-26 Werner Koch <wk@gnupg.org>
30149 gpg: Do not call an extra get_validity if no-show-uid-validity is used.
30150 + commit a6c2c098435a703ca02abf651ff4fa45e5a4db9a
30151 * g10/mainproc.c (check_sig_and_print): Do not call the informational
30152 get_validity if we are not going to use it.
30154 2015-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
30156 gpg: Ensure all weak digest rejection notices are shown.
30157 + commit 91015d021b3dcbe21ad0e580a4f34c523abf9e72
30158 * g10/main.h: Add rejection_shown flag to each weakhash struct
30159 * g10/misc.c (print_digest_algo_note, additional_weak_digest): Do not
30160 treat MD5 separately; (print_digest_rejected_note): Use
30161 weakhash.rejection_shown instead of static shown.
30162 * g10/options.h (opt): Change from additional_weak_digests to
30164 * g10/sig-check.c: Do not treat MD5 separately.
30165 * g10/gpg.c (main): Explicitly set MD5 as weak.
30166 * g10/gpgv.c (main): Explicitly set MD5 as weak.
30168 2015-10-26 Werner Koch <wk@gnupg.org>
30170 w32: Make it build again if Tofu support is not available.
30171 + commit 0d37a40fc34519e93af3ceffff2cd726d29576d3
30172 * g10/keylist.c (public_key_list) [!USE_TOFU]: Do not call tofu
30175 dirmngr: Support Tor hidden services.
30176 + commit 4524a2a3714f263d56bb7db349c169b456994fd9
30177 * dirmngr/dns-stuff.c (is_onion_address): New.
30178 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add field "onion".
30179 (map_host): Special case onion addresses.
30180 (ks_hkp_print_hosttable): Print an 'O' for an onion address.
30181 * dirmngr/http.c (connect_server): Special case onion addresses.
30183 dirmngr,w32: Remove gethostbyname hack and make it build again.
30184 + commit 7735bbe539af35ce16e270946d5ae798c5989d6e
30185 * dirmngr/http.c (connect_server) [W32]: Remove gethostbyname hack;
30186 we require getaddrinfo anyway.
30187 * dirmngr/dns-stuff.c (AI_ADDRCONFIG): Add replacement if not defined.
30188 (map_eai_to_gpg_error) [W32]: Take care of unsupported codes.
30190 2015-10-26 Neal H. Walfield <neal@g10code.com>
30192 gpg: Make sure we only have a single SQL statement.
30193 + commit c18fb0d99b633bb267dead6e7c46229f4b780bc3
30194 * g10/tofu.c (sqlite3_stepx): Make sure SQL only contains a single SQL
30197 gpg: When the TOFU DB is in batch mode, periodically drop the locks.
30198 + commit 5b0ed7674dc718ee98e0c80aa93ce014f2b51411
30199 * g10/tofu.c: Include <sched.h>.
30200 (batch_update_started): New variable.
30201 (begin_transaction): If we've been in batch mode for a while, then
30202 commit any extant batch transactions.
30203 (tofu_begin_batch_update): If we are not in batch mode, initialize
30204 batch_update_started.
30206 2015-10-25 Werner Koch <wk@gnupg.org>
30208 dirmngr: Add workaround for broken getaddrinfo.
30209 + commit 5e7ac031f513ad3b60e4f092fa72b3bec0676515
30210 * dirmngr/dns-stuff.c (resolve_name_standard): On failure retry by
30211 first resolving the CNAME.
30212 (get_dns_cname): New.
30214 * dirmngr/t-dns-stuff.c (main): Add option --cname.
30216 dirmngr: Better handle systems without IPv6 or IPv4.
30217 + commit 0e3c9f184a5fb3e41277700d690febc2eee9600a
30218 * dirmngr/dns-stuff.c (resolve_name_standard): Use AI_ADDRCONFIG.
30220 dirmngr: Replace use of getnameinfo by resolve_dns_addr.
30221 + commit 927f34603d942868af6a7bd0f347681bbad76a94
30222 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Remove.
30223 (map_host): Use resolve_dns_addr.
30225 dirmngr: Implement a getnameinfo wrapper.
30226 + commit 816505958ac4308ee0dfe787d1b706982428b6cc
30227 * dirmngr/dns-stuff.h (DNS_NUMERICHOST): New.
30228 (DNS_WITHBRACKET): New.
30229 * dirmngr/dns-stuff.c (resolve_name_standard): Factor code out to...
30230 (map_eai_to_gpg_error): new.
30231 (resolve_addr_standard): New.
30232 (resolve_dns_addr): New.
30234 * dirmngr/ks-engine-hkp.c (is_ip_address): Move to ...
30235 * dirmngr/dns-stuff.c (is_ip_address): here. Add support for non
30236 bracketed v6 addresses.
30238 * dirmngr/t-dns-stuff.c: Remove header netdb.h.
30239 (main): Add option --bracket. Use resolve_dns_name instead of
30242 2015-10-23 Neal H. Walfield <neal@g10code.com>
30244 gpg: Provide an interface to patch TOFU updates.
30245 + commit 7f65e84ac035e8f7a25639a6b09eb6000115e337
30246 * g10/tofu.c (struct db): Rename begin_transaction to savepoint_batch.
30247 Rename end_transaction to savepoint_batch_commit. Update users.
30248 Remove field rollback. Add fields savepoint_inner and
30249 savepoint_inner_commit. Add field batch_update.
30250 (dump_cache): New function.
30251 (batch_update): New variable.
30252 (begin_transaction). New function.
30253 (end_transaction): New function.
30254 (rollback_transaction): New function.
30255 (tofu_begin_batch_update): New function.
30256 (tofu_end_batch_update): New function.
30257 (closedb): End any pending batch transaction.
30258 (closedbs): Assert that none of the DBs have a started batch
30259 transaction if we not in batch mode.
30260 (record_binding): Use the begin_transaction, end_transaction and
30261 rollback_transaction functions instead of including the SQL inline.
30262 Also start a batch mode transaction if we are using the flat format.
30263 (tofu_register): Use the begin_transaction, end_transaction and
30264 rollback_transaction functions instead of including the SQL inline.
30265 * g10/gpgv.c (tofu_begin_batch_update): New function.
30266 (tofu_end_batch_update): New function.
30267 * g10/test-stubs.c (tofu_begin_batch_update): New function.
30268 (tofu_end_batch_update): New function.
30270 gpg: Cache prepared SQL queries and open DB connections.
30271 + commit 297cf8660ce346638e42934d84d746768f8bb10a
30272 * g10/tofu.c: Include <stdarg.h>.
30273 (prepares_saved) [DEBUG_TOFU_CACHE]: New variable.
30274 (queries) [DEBUG_TOFU_CACHE]: New variable.
30275 (struct db): Add fields prevp, begin_transaction, end_transaction,
30276 rollback, record_binding_get_old_policy, record_binding_update,
30277 record_binding_update2, get_policy_select_policy_and_conflict,
30278 get_trust_bindings_with_this_email, get_trust_gather_other_user_ids,
30279 get_trust_gather_other_keys, register_already_seen, and
30281 [DEBUG_TOFU_CACHE]: Add field hits.
30282 (STRINGIFY): New macro.
30283 (STRINGIFY2): New macro.
30284 (enum sqlite_arg_type): New enum.
30285 (sqlite3_stepx): New function.
30286 (combined_db): Remove variable.
30287 (opendb): Don't cache the combined db.
30288 (struct dbs): New struct. Update users to use this as the head of the
30289 local DB list rather than overloading struct db.
30290 (unlink_db): New function.
30291 (link_db): New function.
30292 (db_cache): New variable.
30293 (db_cache_count): New variable.
30294 (DB_CACHE_ENTRIES): Define.
30295 (getdb): If the dbs specific cache doesn't include the DB, look at
30296 DB_CACHE. Only if that also doesn't include the DB open the
30298 (closedb): New function.
30299 (opendbs): Don't open the combined DB. Just return an initialized
30301 (closedbs): Don't close the dbs specific dbs. Attach them to the
30302 front of DB_CACHE. If DB_CACHE contains more than DB_CACHE_ENTRIES,
30303 close enough dbs from the end of the DB_CACHE list such that DB_CACHE
30304 only contains DB_CACHE_ENTRIES. Don't directly close the dbs, instead
30305 use the new closedb function.
30306 [DEBUG_TOFU_CACHE]: Print out some statistics.
30307 (record_binding): Use sqlite3_stepx instead of sqlite3_exec or
30308 sqlite3_exec_printf.
30309 (get_policy): Likewise.
30310 (get_trust): Likewise.
30311 (tofu_register): Likewise.
30313 gpg: Return the DBs meta-handle rather than the sqlite3 handle.
30314 + commit cd879d4bd69a578be5a1ff96497f8c1181885563
30315 * g10/tofu.c (getdb): Return a struct db * instead of an sqlite *.
30318 gpg: Use the proper type.
30319 + commit 3c4c89cc35280164b509977c5288b0a06d6f530e
30320 * g10/options.h: Include "tofu.h".
30321 (opt.tofu_default_policy): Change type to enum tofu_policy.
30322 * g10/gpgv.c (enum tofu_policy): Don't redeclare.
30323 * g10/test-stubs.c (enum tofu_policy): Likewise.
30325 2015-10-22 Werner Koch <wk@gnupg.org>
30327 dirmngr: Implement Tor mode for SRV RRs.
30328 + commit 8b06d7f41aec6cb993445935dba7c60e033d026a
30329 * dirmngr/dns-stuff.c (get_dns_cert): Factor adns init out to...
30330 (my_adns_init): new.
30331 (getsrv)[USE_ADNS]: Use my_adns_init.
30332 (getsrv)[!USE_ADNS]: Return an error if Tor mode is active.
30334 * dirmngr/t-dns-stuff.c: Add option --use-tor.
30336 dirmngr: Do not use MAXDNAME.
30337 + commit e03a4a94bb67d4a6c958b37671f83456e203f325
30338 * dirmngr/dns-stuff.c (getsrv): Replace MAXDNAME.
30339 * dirmngr/dns-stuff.h (MAXDNAME): Remove.
30340 (struct srventry): Use a fixed value instead of MAXDNAME.
30341 * dirmngr/http.c (connect_server): Use DIMof instead of MAXDNAME.
30342 Malloc a helper array.
30344 Move SRV RR code from common/ to dirmngr/.
30345 + commit 41bb01ae792af78edd28bf1b735cacc0b3ac428a
30346 * common/srv.c: Merge into dirmngr/dns-stuff.c. Delete file.
30347 * common/srv.h: Merge into dirmngr/dns-stuff.h. Delete file.
30348 * common/Makefile.am (common_sources): Remove srv.c and srv.h.
30349 * g10/keyserver.c: Do not include srv.h. The code using it is anyway
30351 * dirmngr/http.c: Remove header srv.h and stubs.
30352 * dirmngr/t-dns-stuff.c: Add option --srv.
30354 2015-10-21 Werner Koch <wk@gnupg.org>
30356 dirmngr: Use the new DNS wrapper for the HTTP module.
30357 + commit 1e34007c972c1d7730cfcacd88f6bbebba7dec1d
30358 * dirmngr/t-http.c (main): Init assuan sockets.
30359 * dirmngr/http.c: Include dns-stuff.h.
30360 (connect_server)[!HAVE_GETADDRINFO]: Remove all code.
30361 (connect_server): Change to use resolve_dns_name.
30363 dirmngr: Allow use of http.c if USE_NPTH is not defined.
30364 + commit b6af3377e14fad35b9c6041b11888cabce6e8a56
30365 * dirmngr/http.c (send_request): Always set the gnutls pull/push
30367 (my_npth_read): Rename to ...
30368 (my_gnutls_read) .. this. Use system read if !USE_NPTH.
30369 (my_npth_write): Rename to ...
30370 (my_gnutls_write) .. this. Use system write if !USE_NPTH.
30372 dirmngr: Check that getaddrinfo is available.
30373 + commit 6fafda979df8e7e117f8e6929bcce89513a6e746
30374 * dirmngr/Makefile.am (t_http_SOURCES): Add dns-stuff.c.
30375 (t_ldap_parse_uri_SOURCES): Ditto.
30376 * dirmngr/dns-stuff.c: Bail out if neither ADNS nor getaddrinfo is
30379 dirmngr: Use the new DNS wrapper for the HKP engine.
30380 + commit afbe87fa2d259b665b2d67a038a8535cfcfee094
30381 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change arg type to
30383 (map_host): Replace getaddrinfo by resolve_dns_name.
30385 dirmngr: Implement a getaddrinfo wrapper.
30386 + commit 8bccbf477878fd99baa96e11db9db99aaf1e8d91
30387 * dirmngr/dns-stuff.h: Include some header files.
30388 (dns_addinfo_t, dns_addrinfo_s): New.
30389 * dirmngr/dns-stuff.c: Always include DNS related headers.
30390 (free_dns_addrinfo): New.
30391 (resolve_name_standard): New.
30392 (resolve_dns_name): New.
30394 * dirmngr/t-dns-stuff.c: Include netdb.h.
30395 (main): Keep old default mode with no args but else print outout of
30396 resolve_dns_name. Revamp option parser.
30398 common: Add more replacement error codes.
30399 + commit ffe60eb3d2b8f7d6c506804ce4645d695c91f237
30400 * common/util.h (GPG_ERR_SERVER_FAILED): New.
30401 (GPG_ERR_NO_KEY): New.
30402 (GPG_ERR_NO_NAME): New.
30404 2015-10-21 Neal H. Walfield <neal@g10code.com>
30406 gpg: If the saved trust model is unknown, default to tofu+pgp.
30407 + commit 9afeb4cca10c3632495fe71b23df99a4878bd3a5
30408 * g10/trustdb.c (init_trustdb): If the saved trust model is unknown,
30409 default to tofu+pgp instead of pgp.
30411 gpg: Don't accidentally free UTK_LIST.
30412 + commit 8c3b7915d675ca5346c17244654d5c6ab583ac44
30413 * g10/trustdb.c (validate_keys): Don't free UTK_LIST.
30415 gpg: When evaluating trust reg exps, treat tofu+pgp like pgp.
30416 + commit cbaca254ac818c49c18d4480d3c7bd246cc57ae8
30417 * g10/trustdb.c (validate_one_keyblock): When checking trust regular
30418 expressions, treat the tofu+pgp trust model the same as the pgp trust
30421 gpg: If a key is ultimate trusted, return that in the tofu model.
30422 + commit df57390d68482c5b3fa5ff3a42a29ae1b6cbb23c
30423 * g10/tofu.c (get_trust): If the policy is auto or none, check if the
30424 key is ultimately trusted. If so, return that.
30425 (tofu_register): If the key is ultimately trusted, don't show any
30427 (tofu_get_validity): Likewise.
30429 gpg: Keep the trust DB up to date for the tofu and tofu+pgp models.
30430 + commit d05ff81732e20e6f9d6d7a6281a96a312b001abb
30431 * g10/trustdb.c (init_trustdb): Recognize tofu and tofu+pgp as
30432 possibly saved trust models. Also register the ultimately trusted
30433 keys if the trust model is tofu or tofu+pgp.
30434 (check_trustdb): Don't skip if the trust model is tofu or tofu+pgp.
30435 (update_trustdb): Likewise.
30436 (tdb_check_trustdb_stale): Likewise.
30437 (validate_keys): If the trust model is TOFU, just write out the
30438 ultimately trusted keys.
30440 gpg: Factor out code into a standalone function.
30441 + commit 243f90afba87e99ca42e2451ac5cc59d00a044ac
30442 * g10/trustdb.c (tdb_keyid_is_utk): New function.
30445 dirmngr: Allow building with libassuan < 2.3.
30446 + commit a79045e38d239a7f6e787cf7c1132772c737cc0e
30447 * dirmngr/http.c (send_request): Use newer assuan function only if
30450 2015-10-21 Neal H. Walfield <neal@g10code.com>
30451 Andre Heinecke <aheinecke@intevation.de>
30453 gpg: Make the tofu DB check and initialization atomic.
30454 + commit 85bd7d9491f8cc13c2b03f19b4f70ea13b45c704
30455 * g10/tofu.c (initdb): Make the version check and the database
30456 initialization atomic.
30458 2015-10-21 Werner Koch <wk@gnupg.org>
30460 build: Make --disable-g13 the default.
30461 + commit 485e0a221deb5c68f29b6a7a110b349dbe41c027
30462 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --enable-g13. Remove
30463 --enable-gpgtar because that is enabled anyway.
30464 * configure.ac: Do not build g13 by default.
30466 dirmngr: Rename file dns-cert.c.
30467 + commit 5055b617a94587580bc16a56bb82333077b05693
30468 * dirmngr/dns-cert.c: Rename to dirmngr/dns-stuff.c.
30469 * dirmngr/dns-cert.h: Rename to dirmngr/dns-stuff.h and change
30471 * dirmngr/t-dns-cert.c: Rename to dirmngr/t-dns-stuff.c.
30472 * dirmngr/Makefile.am: Adjust.
30474 common: Add status code for use by g13.
30475 + commit 42571a38344e39f747315f754700a8181b8744fe
30476 * common/status.h (STATUS_PLAINTEXT_FOLLOWS): New.
30478 2015-10-20 Werner Koch <wk@gnupg.org>
30480 dirmngr: Prefer ADNS over system resolver.
30481 + commit 58ebe50bdf4837e9ab2d3f8c6e5fcf28c66f26e9
30482 * configure.ac (HAVE_ADNS_IF_TORMODE): New ac_define.
30483 (USE_DNS_CERT): Prefer ADNS over the system resolver.
30484 * dirmngr/dns-cert.c (tor_mode): New global var.
30485 (enable_dns_tormode): New func.
30486 (get_dns_cert): Use DNS resolver at 8.8.8.8 in tor-mode.
30487 * dirmngr/server.c (cmd_dns_cert): If supported allow DNS requests.
30489 w32: Allow building again.
30490 + commit c83b627174f46e841f1ccc018322fe499969c267
30491 * dirmngr/http.c (connect_server): Fix called function name.
30493 build: Allow building without SQLlite support.
30494 + commit 734c61dc9d4915605816803182c9adcc1594e008
30495 * configure.ac: Add option --dsiable-tofu and --disable-sqlite.
30496 (NEED_SQLITE_VERSION): New var.
30497 (USE_TOFU): New ac_define and am_conditional.
30498 * autogen.sh (build-w32): Add PKG_CONFIG_LIBDIR to configure so that
30499 pkg-config find the correct .pc file.
30501 * g10/Makefile.am (tofu_source): New. Build only if enabled.
30502 * g10/gpg.c (parse_trust_model)[!USE_TOFU]: Disable tofu models.
30503 (parse_tofu_policy)[!USE_TOFU]: Disable all.
30504 (parse_tofu_db_format)[!USE_TOFU]: Disable all.
30505 (main) <aTOFUPolicy>[!USE_TOFU]: Skip.
30506 * g10/keyedit.c (show_key_with_all_names_colon)[!USE_TOFU]: Do not
30507 call tofu functions.
30508 * g10/keylist.c (list_keyblock_colon)[!USE_TOFU]: Ditto.
30509 * g10/trustdb.c (tdb_get_validity_core)[!USE_TOFU]: Skip tofu
30512 2015-10-20 Neal H. Walfield <neal@g10code.com>
30514 gpg: Don't die immediately if the TOFU DB is locked.
30515 + commit 26d457c218c2e93b2e2cf316f0c1074c70894d0f
30516 * g10/tofu.c (opendb): Don't die immediately if the DB is locked.
30518 gpg: Improve output.
30519 + commit bc9ff6c85e2d89be4ee873b8a72a214759a66157
30520 * g10/tofu.c (get_trust): Also show the binding when indicating a
30523 gpg: Synchronize translation template.
30524 + commit 251c070f91e2c65baa3f1195f14a176440a8aafa
30525 * g10/tofu.c (show_statistics): Synchronize translation template.
30527 gpg: When showing conflicts, also show bindings with no recorded sigs.
30528 + commit d3eca517745a862432fcfeaa729e5333b15ffa6a
30529 * g10/tofu.c (signature_stats_collect_cb): If the time_ago column is
30530 NULL, then both time_ago and count should be 0.
30531 (get_trust): Reverse the direction of the join so that we also get
30532 statistics about bindings without any signatures.
30535 + commit 445f94bc81b20959a667a4ad80ea6c73059540bf
30536 * g10/tofu.c (show_statistics): Improve text.
30538 gpg: Use the right variable to display the information.
30539 + commit 4957e3236796979b58f35628351505ea5f4e936a
30540 * g10/tofu.c (get_trust): Use the right variable to display the
30543 gpg: Make failing to create a directory a soft error.
30544 + commit eb8a0b051faa03584b3820200e10301936e82f51
30545 * g10/tofu.c (getdb): Don't exit if we can't create the directory.
30546 Just return an error.
30548 common: Make sure tilde expansion works for the mkdir functions.
30549 + commit c3bb9fccb7963a0918b9ec6a4f10d568fac7c125
30550 * common/mkdir_p.c (gnupg_amkdir_p): Use make_filename_try on the
30551 first directory component as well.
30553 gpg: Remove unused prototype digest_algo_from_sig.
30554 + commit d1a0b520b15bb941cdbf66c2e832c617af778ac8
30555 * g10/packet.h (digest_algo_from_sig): Remove prototype without a
30556 corresponding implementation.
30558 2015-10-19 Werner Koch <wk@gnupg.org>
30560 dirmngr: Allow building with libassuan < 2.3.
30561 + commit 4e42ad300b3de9fab25095a9e82431b1ea2740e7
30562 * dirmngr/dirmngr.c (set_tor_mode): Use newer assuan function only if
30564 * dirmngr/http.c (http_raw_connect): Ditto.
30566 2015-10-19 Neal H. Walfield <neal@g10code.com>
30568 gpg: Fix --desig-revoke.
30569 + commit c37621166e9cc2a818de73bc99287a393dbb5744
30570 * g10/revoke.c (gen_desig_revoke): Add additional parameter ctrl.
30571 Check that the secret key is available. If not, display an error
30574 gpg: Improve function documentation and some comments.
30575 + commit a608ee750dd83bf77a5fb4f0ab5bcf812436ba4d
30576 * g10/main.h: Improve function documentation.
30577 * g10/packet.h.h: Improve function documentation.
30578 * g10/sig-check.c: Improve function documentation and some comments.
30580 gpg: Improve and regularize naming of signature checking functions.
30581 + commit 0433e667029508d6933e8798d3d95bcdde70a7aa
30582 * g10/packet.h (signature_check): Rename from this...
30583 (check_signature): ... to this. Update users.
30584 (signature_check2): Rename from this...
30585 (check_signature2): ... to this. Update users.
30586 * g10/sig-check.c (do_check): Rename from this...
30587 (check_signature_end): ... to this. Update users.
30588 (do_check_messages): Rename from this...
30589 (check_signature_metadata_validity): ... to this. Update users.
30591 gpg: Mark local function as static.
30592 + commit 547a1b3fb881bb8581d03dbf4eacf49163eaa4b5
30593 * g10/tdbio.c (put_record_into_cache): Mark as static.
30595 2015-10-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
30597 gpg: Print warning when rejecting weak digests.
30598 + commit b98939812abf6c643c752ce7c325f98039a1a9e2
30599 * g10/misc.c (print_md5_rejected_note): Rename to ..
30600 (print_digest_rejected_note): this. Parameterize function to take an
30601 enum gcry_md_algos.
30602 * g10/sig-check.c: Use print_digest_rejected_note() when rejecting
30605 gpg: Add option --weak-digest to gpg and gpgv.
30606 + commit 76afaed65e3b0ddfa4923cb577ada43217dd4b18
30607 * g10/options.h: Add additional_weak_digests linked list to opts.
30608 * g10/main.h: Declare weakhash linked list struct and
30609 additional_weak_digest() function to insert newly-declared weak
30611 * g10/misc.c: (additional_weak_digest): New function.
30612 (print_digest_algo_note): Check for deprecated digests; use proper
30613 gcry_md_algos type.
30614 * g10/sig-check.c: (do_check): Reject weak digests in addition to MD5.
30615 * g10/gpg.c: Add --weak-digest option to gpg.
30616 * doc/gpg.texi: Document gpg --weak-digest option.
30617 * g10/gpgv.c: Add --weak-digest option to gpgv.
30618 * doc/gpgv.texi: Document gpgv --weak-digest option.
30620 2015-10-19 Werner Koch <wk@gnupg.org>
30622 dirmngr: Make --use-tor work - still leaks DNS.
30623 + commit 6983fd131f648ba4acd57b266de9868911874d14
30624 * dirmngr/dirmngr.c (set_tor_mode): New.
30625 (main, reread_configuration): Call it.
30626 * dirmngr/http.c (http_raw_connect, send_request): Check whether TOR
30627 mode is enabled if the FORCE_TOR flag is given.
30629 dirmngr: Use Assuan socket wrappers for http.c.
30630 + commit 8c609eaf35b547f02979ef0b206520dd0853b294
30631 * dirmngr/http.c: Include assuan.h. Changed all code taking a socket
30632 descriptor from int to assuan_fd_t.
30633 (my_unprotect, my_protect): New.
30634 (my_connect): Remove.
30635 (_my_socket_new, _my_socket_unref): use assuan_sock_close.
30636 (connect_server): Use assuan_sock_connect, assuan_sock_new, and
30638 * dirmngr/Makefile.am (t_common_ldadd): Add LIBASSUAN_LIBS.
30640 2015-10-19 Neal H. Walfield <neal@g10code.com>
30642 gpg: Fix formatting.
30643 + commit 253afa244487dd8129816615ac2865c9fe812aaf
30644 * g10/tofu.c (get_trust): Fix formatting.
30646 gpg: Don't forget to free some memory.
30647 + commit e56a116f9a1171ccf8b3293887a217953a46fc20
30648 * g10/tofu.c (tofu_register): Free SIG_DIGEST before returning.
30650 gpg: If a conflict occurs in batch mode, record that.
30651 + commit 55d88454652543c98d74376977d855e394df6c92
30652 * g10/tofu.c (get_trust): If a conflict occurs when MAY_ASK is false,
30653 set conflict to the key. When prompting the user, don't show the
30654 conflicting key if the conflicting key is the current key.
30656 2015-10-18 Werner Koch <wk@gnupg.org>
30658 gpg: Silence two more warnings.
30659 + commit c2c400714854d5a127a6966200d345d0d6cfc7d4
30660 * g10/trustdb.c (tdb_get_validity_core): Silence a warning.
30661 * g10/tofu.c (tofu_register): Move SIG_DIGEST computation to the top
30662 so that it is not uninitialized in case of an early error.
30664 gpg: Fix harmless compiler warnings.
30665 + commit 558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd
30666 * g10/tofu.h (_tofu_GET_POLICY_ERROR): New. This avoids warnings
30667 about undefined enum values in a switch.
30668 * g10/trustdb.h (_tofu_GET_TRUST_ERROR): New.
30669 * g10/tofu.c (TIME_AGO_FUTURE_IGNORE): Move to the top.
30670 (opendbs): Avoid compiler warning (use braces).
30671 (GET_POLICY_ERROR): Replace define by enum _tofu_GET_POLICY_ERROR.
30672 (get_policy): Remove assert.
30673 (GET_TRUST_ERROR): Replace by _tofu_GET_TRUST_ERROR macro.
30674 (show_statistics): Undef MIN_SECS et al. after use.
30676 common: Avoid warning about const char ** assignment.
30677 + commit e64c805b0c270d859ddf2c35d573110cf25e8d48
30678 * common/mkdir_p.c (gnupg_amkdir_p): Also strdup first item. Return
30679 an error on malloc failure.
30680 (gnupg_mkdir_p): Fix type of dirs and tmp_dirs.
30682 Move http module from common/ to dirmngr/.
30683 + commit 5aa1b392b1bf6fcf4cd380862c5affac39a4f34d
30684 * common/http.c: Move to ../dirmngr/.
30685 * common/http.h: Move to ../dirmngr/.
30686 * common/t-http.c: Move to ../dirmngr/.
30687 * common/tls-ca.pem: Move to ../dirmngr/.
30688 * common/Makefile.am: Do not build libcommontls.a libcommontlsnpth.a.
30689 Remove http.c related stuff.
30690 * po/POTFILES.in: Move http.c to dirmngr/.
30691 * dirmngr/Makefile.am (EXTRA_DIST): Add tls-ca.pem.
30692 (module_maint_tests): New.
30693 (noinst_PROGRAMS): Add module_maint_tests.
30694 (dirmngr_SOURCES): Add http.c and http.h.
30695 (dirmngr_LDADD): Remove libcommontlsnpth.
30696 (t_common_ldadd): Ditto.
30697 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
30698 (t_ldap_parse_uri_SOURCES): Add http.c.
30699 (t_ldap_parse_uri_CFLAGS): Build without npth.
30700 ($(PROGRAMS)): Do not require libcommontls.a libcommontlsnpth.a.
30701 * dirmngr/dirmngr.h, dirmngr/ks-engine.h: Fix include of http.h.
30703 2015-10-18 Neal H. Walfield <neal@g10code.com>
30706 + commit 128a456e775edf393d47e40bb9ae8b62434e2978
30707 * g10/tofu.c (get_trust): Fix assert.
30709 g10: Add TOFU support.
30710 + commit f77913e0ff7be4cd9c6337a70ac715e6f4a43572
30711 * configure.ac: Check for sqlite3.
30712 (SQLITE3_CFLAGS): AC_SUBST it.
30713 (SQLITE3_LIBS): Likewise.
30714 * g10/Makefile.am (AM_CFLAGS): Add $(SQLITE3_CFLAGS).
30715 (gpg2_SOURCES): Add tofu.h and tofu.c.
30716 (gpg2_LDADD): Add $(SQLITE3_LIBS).
30717 * g10/tofu.c: New file.
30718 * g10/tofu.h: New file.
30719 * g10/options.h (trust_model): Define TM_TOFU and TM_TOFU_PGP.
30720 (tofu_db_format): Define.
30721 * g10/packet.h (PKT_signature): Add fields digest and digest_len.
30722 * g10/gpg.c: Include "tofu.h".
30723 (cmd_and_opt_values): Declare aTOFUPolicy, oTOFUDefaultPolicy,
30726 (parse_trust_model): Recognize the tofu and tofu+pgp trust models.
30727 (parse_tofu_policy): New function.
30728 (parse_tofu_db_format): New function.
30729 (main): Initialize opt.tofu_default_policy and opt.tofu_db_format.
30730 Handle aTOFUPolicy, oTOFUDefaultPolicy and oTOFUDBFormat.
30731 * g10/mainproc.c (do_check_sig): If the signature is good, copy the
30732 hash to SIG->DIGEST and set SIG->DIGEST_LEN appropriately.
30733 * g10/trustdb.h (get_validity): Add arguments sig and may_ask. Update
30735 (tdb_get_validity_core): Add arguments sig and may_ask. Update
30737 * g10/trust.c (get_validity) Add arguments sig and may_ask. Pass them
30738 to tdb_get_validity_core.
30739 * g10/trustdb.c: Include "tofu.h".
30740 (trust_model_string): Handle TM_TOFU and TM_TOFU_PGP.
30741 (tdb_get_validity_core): Add arguments sig and may_ask. If
30742 OPT.TRUST_MODEL is TM_TOFU or TM_TOFU_PGP, compute the TOFU trust
30743 level. Combine it with the computed PGP trust level, if appropriate.
30744 * g10/keyedit.c: Include "tofu.h".
30745 (show_key_with_all_names_colon): If the trust mode is tofu or
30746 tofu+pgp, then show the trust policy.
30747 * g10/keylist.c: Include "tofu.h".
30748 (public_key_list): Also show the PGP stats if the trust model is
30750 (list_keyblock_colon): If the trust mode is tofu or
30751 tofu+pgp, then show the trust policy.
30752 * g10/pkclist.c: Include "tofu.h".
30753 * g10/gpgv.c (get_validity): Add arguments sig and may_ask.
30754 (enum tofu_policy): Define.
30755 (tofu_get_policy): New stub.
30756 (tofu_policy_str): Likewise.
30757 * g10/test-stubs.c (get_validity): Add arguments sig and may_ask.
30758 (enum tofu_policy): Define.
30759 (tofu_get_policy): New stub.
30760 (tofu_policy_str): Likewise.
30761 * doc/DETAILS: Describe the TOFU Policy field.
30762 * doc/gpg.texi: Document --tofu-set-policy, --trust-model=tofu,
30763 --trust-model=tofu+pgp, --tofu-default-policy and --tofu-db-format.
30764 * tests/openpgp/Makefile.am (TESTS): Add tofu.test.
30765 (TEST_FILES): Add tofu-keys.asc, tofu-keys-secret.asc,
30766 tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and tofu-EE37CF96-1.txt.
30767 (CLEANFILES): Add tofu.db.
30768 (clean-local): Add tofu.d.
30769 * tests/openpgp/tofu.test: New file.
30770 * tests/openpgp/tofu-2183839A-1.txt: New file.
30771 * tests/openpgp/tofu-BC15C85A-1.txt: New file.
30772 * tests/openpgp/tofu-EE37CF96-1.txt: New file.
30773 * tests/openpgp/tofu-keys.asc: New file.
30774 * tests/openpgp/tofu-keys-secret.asc: New file.
30776 2015-10-16 Neal H. Walfield <neal@g10code.com>
30778 common: Prefix the mkdir functions with gnupg_. Make args const.
30779 + commit 93e855553eba03f5c31682e0aaf39f18f29860b7
30780 * common/mkdir_p.h (mkdir_p): Rename from this...
30781 (gnupg_mkdir_p): ... to this. Change directory_component's type from
30782 char * to const char *.
30783 (amkdir_p): Rename from this...
30784 (gnupg_amkdir_p): ... to this. Change directory_component's type from
30785 char * to const char *.
30786 * common/mkdir_p.c (mkdir_p): Rename from this...
30787 (gnupg_mkdir_p): ... to this. Change directory_component's type from
30788 char * to const char *.
30789 (amkdir_p): Rename from this...
30790 (gnupg_amkdir_p): ... to this. Change directory_component's type from
30791 char * to const char *.
30793 2015-10-14 NIIBE Yutaka <gniibe@fsij.org>
30795 cleanup: Fix confusion between gpg_error_t and gpg_err_code_t.
30796 + commit 3de5ef759895837fe499cff7fb1fa7798e6d5754
30797 * dirmngr/crlcache.c (hash_dbfile): Use gpg_error_t for ERR.
30798 * kbx/keybox-update.c (keybox_set_flags): Call
30799 gpg_err_code_from_syserror.
30801 2015-10-13 NIIBE Yutaka <gniibe@fsij.org>
30803 po: Update Japanese translation.
30804 + commit 0b4ebc398cc8aad3f25f84034cd6b129e55f1368
30807 2015-10-12 Werner Koch <wk@gnupg.org>
30809 gpg: Try hard to use MDC also for sign+symenc.
30810 + commit 4584125802be11833a5b289e864b45eedc2b45fd
30811 * g10/encrypt.c (use_mdc): Make it a global func.
30812 * g10/sign.c (sign_symencrypt_file): Use that function to decide
30813 whether to use an MDC.
30814 * tests/openpgp/conventional-mdc.test: Add a simple test case.
30816 2015-10-09 Werner Koch <wk@gnupg.org>
30819 + commit 086b8738f71ba26d36287db81f6d78116053ba66
30822 2015-10-09 NIIBE Yutaka <gniibe@fsij.org>
30824 agent: simplify agent_get_passphrase.
30825 + commit 5a12c45666cd16bc750d7f0e63620c295feb77ea
30826 * agent/call-pinentry.c (agent_get_passphrase): Simplify.
30828 agent: fix agent_askpin.
30829 + commit 818fa4f71e1056831b35d0f8aff715c0e1d537e6
30830 * agent/call-pinentry.c (agent_askpin): Fix off-by-one error.
30832 agent: Fix function return type for check_cb and agent_askpin.
30833 + commit f70f6695368444d8058305ab696e5e5a1bace18c
30834 * agent/call-pinentry.c (unlock_pinentry): Return gpg_error_t.
30835 (start_pinentry, setup_qualitybar): Likewise.
30836 (agent_askpin): Fix return value check of check_cb.
30837 * agent/command-ssh.c (reenter_compare_cb): Return gpg_error_t.
30838 (ssh_identity_register): Fix return value check of agent_askpin.
30839 * agent/cvt-openpgp.c (try_do_unprotect_cb): Return gpg_error_t.
30840 * agent/findkey.c (try_unprotect_cb): Likewise.
30841 * agent/genkey.c (reenter_compare_cb): Return gpg_error_t.
30842 (agent_ask_new_passphrase): Fix return value check of agent_askpin.
30844 2015-10-08 Andre Heinecke <aheinecke@intevation.de>
30846 dirmngr: Default to http protocol for http-proxy.
30847 + commit ea079d283de6bf4ac70d7530fac70938e7c5e8f5
30848 * common/http.c (send_request): Fix handling for hostname:port string.
30850 2015-10-08 Werner Koch <wk@gnupg.org>
30852 common: Allow building of mkdir_p.c for Windows.
30853 + commit 4c298525903f844eee95ecbcdc45f5ac034fa148
30854 * common/mkdir_p.c: Change license and comment debug statements.
30855 (amkdir_p, mkdir_p): Fail on malloc error and use default_errsource to
30856 build an error code. Change return value to gpg_error_t.
30857 (amkdir_p): Use gnupg_mkdir.
30859 * common/membuf.c: Include util.h first to avoid redefined macro
30862 gpg: Add option --print-dane-records.
30863 + commit d7b8e76f9930750d669405dee3108c9bc8e87b91
30864 * g10/options.h (opt): Add field "print_dane_records".
30865 * g10/gpg.c (oPrintDANERecords): new.
30866 (opts): Add --print-dane-records.
30867 (main): Set that option.
30868 * g10/export.c (do_export): Remove EXPORT_DANE_FORMAT handling.
30869 (do_export_stream): Add EXPORT_DANE_FORMAT handling.
30870 * g10/keylist.c (list_keyblock_pka): Implement DANE record printing.
30872 * g10/gpgv.c (export_pubkey_buffer): New stub.
30873 * g10/test-stubs.c (export_pubkey_buffer): New stub.
30875 gpg: Pass CTRL parameter to all key listing functions.
30876 + commit b6d621583fc9cbda6f9376a24f2f4cf11499a4fd
30877 * g10/keylist.c (public_key_list): Add arg CTRL.
30878 (secret_key_list): Ditto.
30879 (list_all, list_one): Ditto.
30880 (locate_one): Ditto.
30881 (list_keyblock_pka): Ditto.
30882 (list_keyblock): Ditto.
30883 (list_keyblock_direct): Ditto.
30884 * g10/keygen.c (proc_parameter_file): Add arg CTRL.
30885 (read_parameter_file): Ditto.
30886 (quick_generate_keypair): Ditto.
30887 (do_generate_keypair): Ditto.
30888 (generate_keypair): Pass arg CTRL.
30889 * g10/gpg.c (main): Pass arg CTRL to quick_generate_keypair.
30891 2015-10-07 Werner Koch <wk@gnupg.org>
30893 gpg: Remove unfinished experimental code to export as S-expressions.
30894 + commit a400958323d93036dca9c63135b167012ea64f8b
30895 * g10/options.h (EXPORT_SEXP_FORMAT): Remove.
30896 (EXPORT_DANE_FORMAT): New.
30897 * g10/export.c (parse_export_options): Remove "export-sexp-format".
30898 (export_seckeys): Adjust for removed option.
30899 (export_secsubkeys): Ditto.
30900 (do_export): Prepare for DANE format.
30901 (build_sexp, build_sexp_seckey): Remove.
30902 (do_export_stream): Remove use of removed functions.
30904 2015-10-06 Werner Koch <wk@gnupg.org>
30906 gpg: Add new --auto-key-locate mechanism "dane".
30907 + commit 9ac31f91b10059474da1c9580fb99e94278d4c11
30908 * g10/call-dirmngr.c (gpg_dirmngr_dns_cert): Allow fetching via DANE.
30909 * g10/keyserver.c (keyserver_import_cert): Add arg "dane_mode".
30910 * g10/options.h (AKL_DANE): New.
30911 * g10/getkey.c (get_pubkey_byname): Implement AKL_DANE.
30912 (parse_auto_key_locate): Ditto.
30914 dirmngr: Addlow fetching keys using OpenPGP DANE.
30915 + commit 264a81d82737369ee8beef771cf2bd2cd874320a
30916 * dirmngr/server.c (cmd_dns_cert): Add option --dane.
30918 dirmngr: Improve DNS code to retrieve arbitrary records.
30919 + commit 211b8084ee4391baec35e8c5bd75a9ecbcb889a7
30920 * dirmngr/dns-cert.c (get_dns_cert): Add hack to retrieve arbitrary
30922 * dirmngr/dns-cert.h (DNS_CERTTYPE_RRBASE): New.
30923 (DNS_CERTTYPE_RR61): New.
30925 dirmngr: Change DNS code to make additions easier.
30926 + commit 6cf80dc77ec5df3722924301ff4be2475966937b
30927 * dirmngr/dns-cert.c (get_dns_cert) [!USE_ADNS]: Change loop to allow
30928 adding more resource types.
30930 dirmngr: Make commands RELOADDIRMNGR and KILLDIRMNGR work properly.
30931 + commit 7faf45effcd47d2d04d35090a1e01a1dbb99ec70
30932 * dirmngr/server.c (cmd_killdirmngr): Set assuan close flag.
30933 (cmd_reloaddirmngr): Use check_owner_permission.
30935 dirmngr: Do tilde expansion for --hkp-cacert.
30936 + commit 9db6547a00cded92c00c8f8382b1b605be1027d2
30937 * dirmngr/dirmngr.c (parse_rereadable_options): Do tilde expansion and
30938 check for cert file existance in option --hkp-cacert.
30940 gpg: Fail decryption for AES etc message w/o MDC.
30941 + commit 625e292108cc0fd9077769587a8c22abe7805e33
30942 * g10/mainproc.c (proc_encrypted): Fail for modern messages w/o MDC.
30944 2015-10-06 NIIBE Yutaka <gniibe@fsij.org>
30946 agent: Fix verification of signature for smartcard.
30947 + commit 4a5bd1720f5a3dbb26f5daeb03725cae29be7e24
30948 * agent/pksign.c (agent_pksign_do): Use public key smartcard.
30950 agent: Fix non-allocation for pinentry_loopback.
30951 + commit ce2a84b58833fd308d5fe11756721f39c953280a
30952 * agent/call-pinentry.c (agent_get_passphrase): Don't allocate, it will
30953 be allocated by pinentry_loopback.
30955 2015-10-05 Werner Koch <wk@gnupg.org>
30957 gpg: Install a dirmngr.conf file.
30958 + commit f3959f14b6c496c726bbca5230becb7b6844a234
30959 * g10/dirmngr-conf.skel: New.
30960 * g10/Makefile.am (EXTRA_DIST): Add file.
30961 (install-data-local, uninstall-local): Install that file.
30962 * g10/openfile.c (copy_options_file): Add arg "name", return a value,
30963 simplify with xstrconcat, and factor warning message out to:
30964 (try_make_homedir): here. Also install dirmngr.conf.
30965 * g10/options.skel: Remove --keyserver entry.
30967 gpg: Deprecate the --keyserver option.
30968 + commit ae471fa978589fb61ecb0f89bbfe4d43cf2d5eac
30969 * g10/keyserver.c (keyserver_refresh): Change return type to
30970 gpg_error_t. Use gpg_dirmngr_ks_list to print the name of the
30972 (keyserver_search): Do not print the "no keyserver" error
30973 message. The same error is anyway returned from dirmngr.
30974 * g10/call-dirmngr.c (ks_status_parm_s): Add field "keyword".
30975 (ks_status_cb): Handle other status keywords.
30976 (gpg_dirmngr_ks_list): New.
30977 * tools/gpgconf-comp.c (gc_options_gpg): Deprecate "keyserver".
30978 (gc_options_dirmngr): Add "Keyserver" group and "keyserver".
30980 dirmngr: Add option --keyserver.
30981 + commit a48e6de603c3a312f02b1b5fdb813032eeae9074
30982 * dirmngr/dirmngr.c (oKeyServer): New.
30983 (opts): Add "keyserver".
30984 (parse_rereadable_options): Parse that options
30985 (main): Add option to the gpgconf list.
30986 * dirmngr/dirmngr.h (opt): Add field "keyserver".
30987 * dirmngr/server.c (ensure_keyserver): New.
30988 (make_keyserver_item): New. Factored out from
30989 (cmd_keyserver): here. Call ensure_keyserver.
30990 (cmd_ks_search): Call ensure_keyserver.
30991 (cmd_ks_get): Ditto.
30992 (cmd_ks_fetch): Ditto.
30993 (cmd_ks_put): Ditto.
30995 dirmngr: Make clear that --use-tor is not yet ready for use.
30996 + commit 438730323a5d9bbf8dd5cd60d479b6c03f8721d0
30997 * dirmngr/dirmngr.c (main): Print a warning if --use-tor has been
30999 * tools/gpgconf-comp.c (gc_options_dirmngr): Make --use-tor invisible.
31001 gpgconf: Change displayed name of Dirmngr to "Key Acquirer".
31002 + commit c6400c1aa82239f1c154ca27596600cae964515d
31003 * tools/gpgconf-comp.c (gc_component): Change printed name.
31005 2015-10-02 Werner Koch <wk@gnupg.org>
31007 dirmngr: Fix use-after-free due to a realloc shrinking.
31008 + commit 75c64c2b6d77856b90903cc3b7c6a2f62ff8eb7b
31009 * dirmngr/ks-engine-hkp.c (map_host): Do not use original pointer
31012 agent: Fix alignment problem with the second passphrase struct.
31013 + commit ddf9dd135acd2b3635bb986f6dfc0e4e446d5fad
31014 * agent/genkey.c (agent_ask_new_passphrase): Use a separate malloc for
31015 PI2. Check return value of the malloc function.
31016 * agent/command-ssh.c (ssh_identity_register): Use a separate malloc
31019 2015-10-01 Werner Koch <wk@gnupg.org>
31021 gpg: Fix a practical hang after use of --faked-system-time.
31022 + commit 2acceba5cc299796c7b5b1851a9baeb75d9f32a1
31023 * g10/sign.c (update_keysig_packet): Bail out if we would need to long
31024 for a new timestamp.
31026 gpg: Print more info with "check selfsig".
31027 + commit 2c60663a72f090573c4869e305b098b4b1fb23bd
31028 * g10/keyedit.c (print_and_check_one_sig): Print more Some sigsub
31031 gpg: Add debug helper to --edit-keys's check sub-command.
31032 + commit 13a3f65968f4a8205ca664cc46b1a53de4dc489b
31033 * g10/keyedit.c (print_and_check_one_sig): Add arg "extended" and
31034 print an asterisk for the chosen selfsig.
31035 (check_all_keysigs): Add arg "only_selfsig"
31036 (keyedit_menu) <cmdCHECK>: Add optional arg "selfsig".
31038 2015-10-01 NIIBE Yutaka <gniibe@fsij.org>
31040 common: Fix strsplit.
31041 + commit a9895a5a72a851c5fcc70f16d5f8f588cc885751
31042 * common/stringhelp.c (strsplit): Fix arguments order.
31044 2015-09-30 Neal H. Walfield <neal@g10code.com>
31046 common: Add mkdir_p.
31047 + commit c8584a1e559bc720412e1a2fc546a54ff4517205
31048 * common/mkdir_p.c: New file.
31049 * common/mkdir_p.h: New file.
31050 * common/Makefile.am (common_sources): Add mkdir_p.c and mkdir_p.h.
31052 common: Remove unused files.
31053 + commit 5576146ede40b42bc632fd9697dd429a4d1409cf
31054 * common/xmalloc.c: Remove file.
31055 * common/xmalloc.h: Remove file.
31057 common: Include <gpg-error.h>.
31058 + commit 270d3f55f9193ebda5e1b642d58daf905019914d
31059 * common/logging.h: Include <gpg-error.h>.
31061 2015-09-29 Neal H. Walfield <neal@g10code.com>
31063 g10: Remove unused struct cmp_help_context_s.
31064 + commit 8ab63e4b5018044ecfb0b9910412487066886826
31065 * g10/sig-check.c (struct cmp_help_context_s) Remove unused struct.
31067 g10: Avoid an unnecessary copy.
31068 + commit 12443eafa6e19b94a8b554126423e2a5ccc2dd7e
31069 * g10/sig-check.c (signature_check2): Avoid copying PK to RET_PK.
31070 Instead, directly use the provided storage. If none is provided
31073 2015-09-29 NIIBE Yutaka <gniibe@fsij.org>
31075 ssh: Fix fingerprint computation for EdDSA key.
31076 + commit 5c067d54d349fdfb3243634789c8841515d2c28f
31077 * common/ssh-utils.c (get_fingerprint): Handle the prefix of 0x40.
31078 * common/t-ssh-utils.c (sample_keys): Add a new key.
31080 agent: RSA signature verification by gpg-agent.
31081 + commit cfbe6ba9cf1414e9aa4977e2bbaecaa43154b2ae
31082 * g10/sign.c (do_sign): Let verify signature by gpg-agent.
31083 * agent/pksign.c (agent_pksign_do): Call gcry_pk_verify for RSA.
31085 2015-09-28 Werner Koch <wk@gnupg.org>
31087 common: Provide two new error code replacements.
31088 + commit f1effdc5ecd0cc52a28db7ae28a5c28f33486542
31089 * common/util.h (GPG_ERR_FALSE, GPG_ERR_TRUE): Rew replcements.
31091 common: Change calling convention for gnupg_spawn_process.
31092 + commit 83811e3f1f0c615b2b63bafdb49a35a0fc198088
31093 * common/exechelp.h (GNUPG_SPAWN_NONBLOCK): New.
31094 (GNUPG_SPAWN_RUN_ASFW, GNUPG_SPAWN_DETACHED): Macro to replace the
31096 * common/exechelp.h (gnupg_spawn_process): Change function to not take
31097 an optional stream for stdin but to return one.
31098 * common/exechelp-posix.c (gnupg_spawn_process): Implement change.
31099 (create_pipe_and_estream): Add args outbound and nonblock.
31100 * common/exechelp-w32.c (gnupg_spawn_process): Implement change.
31102 2015-09-28 NIIBE Yutaka <gniibe@fsij.org>
31104 scd: Handle error correctly.
31105 + commit 6bb7206e357acfd7276a8f1334c0f0c9cc6ed100
31106 * scd/apdu.c (apdu_connect): Initialize variables and check an error
31107 of apdu_get_status_internal.
31109 2015-09-22 Werner Koch <wk@gnupg.org>
31111 ssh: Add 256, 384 and 521 bit test keys for the fingerprint.
31112 + commit 12ff806d1b63d08cb43d131065d51353495d9346
31113 * common/t-ssh-utils.c (sample_keys): Add 3 new keys.
31115 ssh: Fix fingerprint computation for 384 bit ECDSA keys.
31116 + commit 2167951b275bae51cf669c02547e2e7ea8fbe2ee
31117 * common/ssh-utils.c (get_fingerprint): Fix hashed string.
31119 2015-09-19 NIIBE Yutaka <gniibe@fsij.org>
31121 agent: Fix importing ECC key.
31122 + commit 1542dc604b9c3e6a6a99750c48f7800e72584a89
31123 * agent/cvt-openpgp.c (convert_from_openpgp_main): Only encrypted
31124 parameters are stored as opaque.
31125 (apply_protection): ARRAY members are all normal, non-opaque MPI.
31126 (extract_private_key): Get public key as normal, non-opaque MPI.
31127 Remove support of ECC key with '(flags param)'.
31128 Remove support of "ecdsa" and "ecdh" keys of our experiment.
31130 scd: Fix KEYTOCARD handling for ECC key.
31131 + commit 708b7eccdef8d274bd5578b9a5fd908e9685c795
31132 * scd/app-openpgp.c (ecc_writekey): Only public key can be native
31135 2015-09-19 Neal H. Walfield <neal@g10code.com>
31137 common: Add new function strlist_length.
31138 + commit 8499c4f84a664bedbdf5a5689cb02420909f1968
31139 * common/strlist.c (strlist_length): New function.
31141 2015-09-18 Werner Koch <wk@gnupg.org>
31143 gpgconf: Change displayed name of Dirmngr to "Network Manager".
31144 + commit 819bba75aaed11ecef2e274add173718358212b9
31145 * tools/gpgconf-comp.c (gc_component): Change printed name.
31147 dirmngr: Add option --use-tor as a stub.
31148 + commit c091816b4a90d7eea6f8601ec1522a0a006794e8
31149 * dirmngr/dirmngr.h (opt): Add field "use_tor".
31150 * dirmngr/dirmngr.c (oUseTor): New.
31151 (opts): Add --use-tor.
31152 (parse_rereadable_options): Set option.
31153 (main): Tell gpgconf about that option.
31155 * dirmngr/crlfetch.c (crl_fetch): Pass TOR flag to the http module and
31156 return an error if LDAP is used in TOR mode.
31157 (ca_cert_fetch): Return an error in TOR mode.
31158 (start_cert_fetch): Ditto.
31159 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass TOR flag to the
31161 * dirmngr/ks-engine-hkp.c (send_request): Ditto.
31162 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
31163 * dirmngr/ks-engine-ldap.c (ks_ldap_get): Return an error in TOR mode.
31164 (ks_ldap_search): Ditto.
31165 (ks_ldap_put): Ditto.
31166 * dirmngr/ocsp.c (do_ocsp_request): Ditto. Also pass TOR flag to the
31169 * dirmngr/server.c (option_handler): Add "honor-keyserver-url-used".
31170 (cmd_dns_cert): Return an error in TOR mode.
31171 (cmd_getinfo): Add subcommand "tor"
31172 * tools/gpgconf-comp.c (gc_options_dirmngr): Add TOR group.
31174 gpg: Report a conflict between honor-keyserver-url and TOR.
31175 + commit d5a3142b8f2e5603357182f34f0b081b47eda23c
31176 * g10/call-dirmngr.c (create_context): Send option and print a verbose
31179 http: Add flag to force use of TOR (part 1)
31180 + commit b4bc1c8b10c7a794fa108678b80f76366a65c47d
31181 * common/http.h (HTTP_FLAG_FORCE_TOR): New.
31182 * common/http.c (http_raw_connect, send_request): Detect flag and
31183 return an error for now.
31185 2015-09-17 NIIBE Yutaka <gniibe@fsij.org>
31187 po: Update Japanese translation.
31188 + commit f986b23e13eaa2d7705733b4bf6b5210311f181a
31191 scd: Fix ccid-driver timeout for OpenPGPcard v2.1.
31192 + commit 6510df3a7cd2b5bf44fac1e4d50ee54b8c897daa
31193 * scd/ccid-driver.c (CCID_CMD_TIMEOUT): New.
31194 (ccid_transceive_apdu_level, ccid_transceive): Use.
31196 2015-09-16 Werner Koch <wk@gnupg.org>
31198 agent: New option --pinentry-invisible-char.
31199 + commit 93d257c81952cbb08a744a9cea6749639aa32cd7
31200 * agent/gpg-agent.c (oPinentryInvisibleChar): New.
31201 (opts): Add option.
31202 (parse_rereadable_options): Set option.
31203 * agent/agent.h (opt): Add field pinentry_invisible_char.
31204 * agent/call-pinentry.c (start_pinentry): Pass option to pinentry.
31206 g13: Move some code to a separate module.
31207 + commit 9e65bbd255c43f0e59f35b0003052234d69042be
31208 * g13/g13-common.c, g13/g13-common.h: New.
31209 * g13/Makefile.am (g13_SOURCES): Add new files.
31210 * g13/g13.c (g13_errors_seen): Move to g13-common.c.
31211 (cmdline_conttype): New.
31212 (main): Use g13_init_signals and g13_install_emergency_cleanup.
31213 (emergency_cleanup, g13_exit): Move to g13-common.c.
31214 * g13/g13.h: Move OPT and some other code to g13-common.h.
31216 gpg: Fix skip function dummy parameter.
31217 + commit 8eb3a1797a1e7cb59a8342a8aa917756fe67949f
31218 * g10/trustdb.c (search_skipfnc): Fix dummy argument
31220 gpg: Change last commit to avoid extra translations.
31221 + commit f71ed902def81f9408d9094289d8a97abaa0f609
31222 * g10/keyedit.c (keyedit_menu): Do not print usage hints in expert
31225 2015-09-16 Neal H. Walfield <neal@g10code.com>
31227 g10: Improve error message.
31228 + commit 172af881a1cfe82dfec1c43102d6c464e67ef230
31229 * g10/keyedit.c (keyedit_menu): When complaining that a user ID or key
31230 must be selected, indicate what command to use to do this.
31232 g10: Be more careful when merging self-signed data.
31233 + commit 6845737736d3264d7ee8b7364d908951010084c9
31234 * g10/getkey.c (merge_selfsigs_main): Stop looking for self-signed
31235 data belonging to the public key when we encounter an attribute packet
31236 or a subkey packet, not just a user id packet. When looking for
31237 self-signed data belonging to a user id packet, stop when we see a
31238 user attribute packet.
31240 g10: Simplify some complicated boolean expressions.
31241 + commit c31e089129c0102c1710522d71fbe1880e84d68e
31242 * g10/getkey.c (finish_lookup): Simplify logic.
31244 g10: Also mark revoked and expired keys as unusable.
31245 + commit 77c2ad4a817c129b899708399ed2078a52b452b8
31246 * g10/getkey.c (skip_unusable): Also mark the key as unusable if it
31247 has been revoked or has expired.
31249 g10: Release resources when returning an error in get_seckey.
31250 + commit 1b601de06a57c78537a336093d2531d8c58bc0d2
31251 * g10/getkey.c (get_seckey): If the key doesn't have a secret key,
31254 g10: Improve documentation and comments for getkey.c.
31255 + commit cab581c486e1987445092b1afdf2cba1f62d017d
31256 * g10/getkey.c: Improve documentation and comments for most
31257 functions. Move documentation for public functions from here...
31258 * g10/keydb.h: ... to here.
31260 g10: Remove unused function have_any_secret_key.
31261 + commit 7333e704efde6923d4b914b37e9a92c4a5bab156
31262 * g10/getkey.c (have_any_secret_key): Remove function.
31264 g10: Bring cache semantics closer to non-cache semantics.
31265 + commit 5e233e12f55be00f5659c63bc32fbdca2ec93136
31266 * g10/getkey.c (get_pubkey_fast): When reading from the cache, only
31267 consider primary keys.
31269 g10: Break out of the loop earlier.
31270 + commit 3940f10af7915b080bf4ed25ceb7e20b52e3cd3e
31271 * g10/getkey.c (have_secret_key_with_kid): Once we find the relevent
31272 key or subkey, stop searching.
31274 g10: Don't skip legacy keys if the search mode is KEYDB_SEARCH_MODE_NEXT
31275 + commit 50affffe93a07643f2610c7a5f3d6f61988855e8
31276 * g10/getkey.c (lookup): Also don't skip legacy keys if the search
31277 mode is KEYDB_SEARCH_MODE_NEXT.
31279 g10: Remove unused function get_seckeyblock_byfprint.
31280 + commit efbaa8f891812e13ae9e689299aa2cd51781ccb3
31281 * g10/keydb.h (get_seckeyblock_byfprint): Remove prototype.
31282 * g10/getkey.c (get_seckeyblock_byfprint): Remove function.
31284 g10: Remove unused function get_seckey_byfprint.
31285 + commit e2b300801ed7143fa924df5442ec2b61079c0bbb
31286 * g10/keydb.h (get_seckey_byfprint): Remove prototype.
31287 * g10/getkey.c (get_seckey_byfprint): Remove function.
31289 g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
31290 + commit 80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5
31291 * g10/keydb.h (get_seckey_byname): Rename from this...
31292 (get_seckey_default): ... to this. Drop the parameter name. Update
31294 * g10/getkey.c (get_seckey_byname): Rename from this...
31295 (get_seckey_default): ... to this. Drop the parameter name. Drop the
31296 code which assumed that NAME is not NULL.
31298 g10: Eliminate the redundant function get_keyblock_byfprint.
31299 + commit dc69804ab0576fbc87297215d63b37a680d74d4d
31300 * g10/keydb.h (get_keyblock_byfprint): Remove prototype. Replace use
31301 of this function with get_pubkey_byfprint.
31302 * g10/getkey.c (get_pubkey_byname): Remove function.
31304 g10: Simplify semantics of get_pubkey_byname.
31305 + commit 911fcca36d61afd061e9e6dc0584bb069353db89
31306 * g10/getkey.c (get_pubkey_byname): If R_KEYBLOCK is not NULL, return
31307 the keyblock in R_KEYBLOCK independent of whether PK is set or not.
31309 g10: Eliminate the redundant function get_pubkey_byname.
31310 + commit b4672e4d48fb1e1e4d17551c4c828763d1dfbb57
31311 * g10/getkey.c (get_pubkey_byname): Remove function.
31312 (lookup): Replace use of get_pubkey_byname by get_pubkey_byfprint.
31314 g10: Eliminate the redundant function get_pubkey_end.
31315 + commit 65e58ae6748c280c8633d2ca5f227ebe1220805d
31316 * g10/keydb.h (get_pubkey_end): Remove declaration. Replace use of
31317 function with getkey_end.
31318 * g10/getkey.c (get_pubkey_byname): Remove function.
31320 g10: Eliminate the redundant function get_pubkey_next.
31321 + commit be6743b2e19241f66148bf89c3442d8e2ebcd63e
31322 * g10/keydb.h (get_pubkey_next): Remove prototype.
31323 * g10/getkey.c (get_pubkey_next): Remove function.
31324 * g10/keylist.c (locate_one): Use getkey_next instead of
31327 kbx: Change skipfnc's prototype so that we can provide all information.
31328 + commit 9acbeac23668a1d0dabca27d7825430d76e095c2
31329 * kbx/keybox-search-desc.h (struct keydb_search_desc.skipfnc): Change
31330 third parameter to be the index of the user id packet in the keyblock
31331 rather than the packet itself. Update users.
31333 g10: Remove unused prototype (get_pubkey_byfpr).
31334 + commit 83e17ab1b4cf4420f2abaf9e1f4017a9473fb281
31335 * g10/keydb.h (get_pubkey_byfpr): Remove unused prototype.
31337 g10: Remove unused function (get_pubkey_bynames).
31338 + commit b06f96ba4f57f55194efcd37a0e3a2aa5450b974
31339 * g10/keydb.h (get_pubkey_bynames): Remove prototype.
31340 * g10/getkey.c (get_pubkey_bynames): Remove function.
31342 g10: Simplify code. Turn struct getkey_ctx_s.found_key into an argument
31343 + commit d47e84946ee010917cfc3501062721b74afbb771
31344 * g10/getkey.c (struct getkey_ctx_s): Remove field found_key.
31345 (lookup): Add argument ret_found_key. If not NULL, set it to the
31346 found key. Update callers.
31347 (pk_from_block): Add argument found_key. Use it instead of
31348 CTX->FOUND_KEY. Update callers.
31349 (finish_lookup): Return a KBNODE (the found key) instead of an int.
31350 Don't set CTX->FOUND_KEY. Return the found key instead.
31352 g10: Remove unused field struct getkey_ctx_s.kbpos.
31353 + commit c110e186e07fb1035dc757d322274f939df1c86d
31354 * g10/getkey.c (struct getkey_ctx_s): Remove field kbpos.
31355 (getkey_end): Don't clear CTX->KBPOS.
31357 g10: Simplify code: remove field struct getkey_ctx_s.keyblock.
31358 + commit 3798f73c07f33576bd02ba4a3256c626bd80752f
31359 * g10/getkey.c (struct getkey_ctx_s): Remove field keyblock.
31360 (finish_lookup): Add parameter keyblock. Update caller to pass this.
31361 (lookup): Add new local variable keyblock. Use this instead of
31362 ctx->keyblock for referencing the keyblock.
31364 2015-09-16 NIIBE Yutaka <gniibe@fsij.org>
31366 agent: Fix registering SSH Key of Ed25519.
31367 + commit 7d5999f0964c9412c0e18eb1adefdb729be68cd4
31368 * agent/command-ssh.c (stream_read_string): Add the prefix of 0x40.
31370 2015-09-15 NIIBE Yutaka <gniibe@fsij.org>
31372 po: Update Japanese translation.
31373 + commit faee25e670cfeb0d0166d7c59cc6a0b3842ee34d
31376 2015-09-10 Werner Koch <wk@gnupg.org>
31379 + commit 311816f6cf9d411dba060603e3c5d01c72824645
31382 tests: Silence the 5gb-packet test.
31383 + commit 7a0c3cc760367024305d23e2124ea4cbc7e802df
31384 * tests/openpgp/4gb-packet.test: Send output to /dev/null.
31386 g10: Fix make distcheck problem.
31387 + commit e92a8ab021672b19e5cd397fa555fcc8a3401e8b
31388 * g10/test.c: Include string.h.
31389 (prepend_srcdir): New. Taken from Libgcrypt.
31391 * g10/t-keydb.c (do_test): Malloc the filename.
31392 * g10/Makefile.am (AM_CPPFLAGS): Remove -DSOURCE_DIR
31393 (EXTRA_DIST): Add t-keydb-keyring.kbx.
31395 g10: Improve portability of the new test driver.
31396 + commit fbf24cd09abcdc3dec21db4114ab2db99ce21e4c
31397 * g10/test.c: Include stdio.h and stdlib.h.
31399 (print_results): Rename to exit_tests.
31400 (main): Remove atexit and call exit_tests. Set verbose.
31401 (ASSERT, ABORT): Call exit_tests instead of exit.
31403 2015-09-09 Werner Koch <wk@gnupg.org>
31405 dirmngr: Allow sending much larger keyblocks.
31406 + commit 19545e3a2d2990cba6d62f98cdb1f665b38ba4f1
31407 * dirmngr/server.c (MAX_CERT_LENGTH): Increase to 16k.
31408 (MAX_KEYBLOCK_LENGTH): Increase to 20M.
31410 2015-09-07 NIIBE Yutaka <gniibe@fsij.org>
31412 scd: Force key attribute change for writekey.
31413 + commit f10b427d0e2be333776fee2df8150145da36e587
31414 * scd/app-openpgp.c (change_rsa_keyattr): New.
31415 (change_keyattr_from_string): Use change_rsa_keyattr.
31416 (rsa_writekey): Call change_rsa_keyattr when different size.
31417 (ecc_writekey): Try to change key attribute.
31419 scd: KEYNO cleanup.
31420 + commit fd689e85423d0d80d725f0315c52d94f0e9766f8
31421 * scd/app-openpgp.c (get_public_key, send_keypair_info, do_readkey)
31422 (change_keyattr, change_keyattr_from_string, ecc_writekey, do_genkey)
31423 (compare_fingerprint, check_against_given_fingerprint): KEYNO starts
31426 2015-09-02 Neal H. Walfield <neal@g10code.com>
31428 g10: Remove unused field req_algo.
31429 + commit bd0c902f1de46eda03a065da41487e7e01ab4c50
31430 * g10/packet.h (PKT_public_key): Remove unused field req_algo. Remove
31432 * g10/getkey.c (struct getkey_ctx_s): Remove unused field req_algo.
31435 g10: Use a symbolic constant instead of a literal.
31436 + commit 1f03d4cd940fed26fc3ffa1742728d68c55ee5d1
31437 * g10/trustdb.c (KEY_HASH_TABLE_SIZE): Define.
31438 (new_key_hash_table): Use KEY_HASH_TABLE_SIZE instead of a literal.
31439 (release_key_hash_table): Likewise.
31440 (test_key_hash_table): Likewise.
31441 (add_key_hash_table): Likewise.
31443 g10: Add test for keydb as well as new testing infrastructure.
31444 + commit ee7ec1256b24dc340656c331ef92fc59cad817b6
31445 * g10/Makefile.am (EXTRA_DIST): Add test.c.
31446 (AM_CPPFLAGS): Add -DSOURCE_DIR="\"$(srcdir)\"".
31447 (module_tests): Add t-keydb.
31448 (t_keydb_SOURCES): New variable.
31449 (t_keydb_LDADD): Likewise.
31450 * g10/t-keydb.c: New file.
31451 * g10/t-keydb-keyring.kbx: New file.
31452 * g10/test-stubs.c: New file.
31453 * g10/test.c: New file.
31455 g10: Make the keyblock cache per-handle rather than global.
31456 + commit 60bc518645d3acfd4dcb79e61a2be6ce001e93aa
31457 * g10/keydb.c (keyblock_cache): Don't declare this variable. Instead...
31458 (struct keyblock_cache): ... turn its type into this first class
31460 (struct keydb_handle): ... and instantiate it once per database
31461 handle. Update all users.
31462 (keydb_rebuild_caches): Don't invalidate the keyblock cache.
31464 g10: If iobuf_seek fails when reading from the cache, do a hard read.
31465 + commit f076fa190e09eab5c586650d81e241e0bb85ce25
31466 * g10/keydb.c (keydb_get_keyblock): If the iobuf_seek fails when
31467 reading from the cache, then simply clear the cache and try reading
31470 iobuf: Reduce verbosity of test.
31471 + commit 219de84df9a8408fffedbb2600f5eb4c441950b6
31472 * common/t-iobuf.c (main): Reduce verbosity.
31474 iobuf: Add the IOBUF_INPUT_TEMP type to improve input temp handling.
31475 + commit f2d75ac7dc58f5ea59b231be6b83fea939b43ab8
31476 * common/iobuf.h (enum iobuf_use): Add new member, IOBUF_INPUT_TEMP.
31477 * common/iobuf.c (iobuf_temp_with_content): Create the iobuf as an
31478 IOBUF_INPUT_TEMP, not an IOBUF_INPUT buffer. Assert that LENGTH ==
31480 (iobuf_push_filter2): If A is an IOBUF_INPUT_TEMP, then make the new
31481 filter an IOBUF_INPUT filter and set its buffer size to
31483 (underflow): If A is an IOBUF_INPUT_TEMP, then just return EOF; don't
31484 remove already read data.
31485 (iobuf_seek): If A is an IOBUF_INPUT_TEMP, don't discard the buffered
31487 (iobuf_alloc): Allow USE == IOBUF_INPUT_TEMP.
31488 (pop_filter): Allow USE == IOBUF_INPUT_TEMP.
31489 (iobuf_peek): Allow USE == IOBUF_INPUT_TEMP.
31490 (iobuf_writebyte): Fail if USE == IOBUF_INPUT_TEMP.
31491 (iobuf_write): Fail if USE == IOBUF_INPUT_TEMP.
31492 (iobuf_writestr): Fail if USE == IOBUF_INPUT_TEMP.
31493 (iobuf_flush_temp): Fail if USE == IOBUF_INPUT_TEMP.
31495 iobuf: Rename IOBUF_TEMP to IOBUF_OUTPUT_TEMP.
31496 + commit 5ff5e72b9c275fbd978136b1028bbf251af26e57
31497 * common/iobuf.h (enum iobuf_use): Rename IOBUF_TEMP to
31498 IOBUF_OUTPUT_TEMP. Update users.
31500 iobuf: Use a first-class enum.
31501 + commit 24259d856b6cbdd679035512a8fb7c042de8f02e
31502 * common/iobuf.h (enum iobuf_use): Name the IOBUF_OUTPUT, etc. enum.
31503 (struct iobuf_struct): Change the field use's type to it.
31506 + commit 8522cdc2264804d0677b7c0a447a0b45cf4195e3
31507 * common/t-iobuf.c (content_filter): If there is nothing to read,
31508 don't forget to set *LEN to 0.
31509 (main): Fix checks.
31511 2015-09-01 Werner Koch <wk@gnupg.org>
31513 agent: Protect commit 135b1e3 against misbehaving Libgcrypt.
31514 + commit 9ba4ccdaf5e128fbea51ff142c63d4b359c7264d
31515 * agent/command-ssh.c (ssh_key_to_blob): Check DATALEN.
31517 gpg: Remove option --no-sig-create-check.
31518 + commit f9c83d84e7d33df76898975f5ac852efa9c4882a
31519 * g10/gpg.c (opts): Remove --no-sig-create-check.
31520 * g10/options.h (struct opt): Remove field no_sig_create_check.
31521 * g10/sign.c (do_sign): Always check unless it is RSA and we are using
31524 common: Assume an utf-8 locale on iconv errors.
31525 + commit 99c9bf7defd6c1ac9cc49c84e6c78eeb886a6952
31526 * common/utf8conv.c (handle_iconv_error): Use utf-8 as fallback.
31528 common: Fix regression in building argpase.c standalone.
31529 + commit bc23e69b70191f887dcb937007833d0187af181f
31530 * common/argparse.c (is_native_utf8) [GNUPG_MAJOR_VERSION]: New.
31532 2015-08-31 Neal H. Walfield <neal@g10code.com>
31534 g10: Don't leak memory if we fail to initialize a new database handle.
31535 + commit 04a6b903d0354be2c69c7f2c98987de17d68416e
31536 * g10/keydb.c (keydb_new): If we fail to open a keyring or keybox
31537 correctly release all resources.
31539 g10: Improve interface documentation of the keydb API.
31540 + commit 360b699e9b4b8f99bd790b3cd158cd6f0fd7c131
31541 * g10/keydb.c: Improve code comments and documentation of internal
31542 interfaces. Improve documentation of public APIs and move that to...
31543 * g10/keydb.h: ... this file.
31545 g10: Don't cache search results if the search didn't scan the whole DB.
31546 + commit efd1ead9e779eb3bd37384258e08ad921a934612
31547 * g10/keydb.c (struct keydb_handle): Add new field is_reset.
31548 (keydb_new): Initialize hd->is_reset to 1.
31549 (keydb_locate_writable): Set hd->is_reset to 1.
31550 (keydb_search): Set hd->is_reset to 0. Don't cache a key not found if
31551 the search started from the beginning of the database.
31553 g10: Have keydb_search_first call keydb_search_reset before searching.
31554 + commit 11d8ffc939a4d20cfb0082b2d966b1e1a7d61f8d
31555 * g10/keydb.c (keydb_search_first): Reset the handle before starting
31558 g10: Remove unused parameter.
31559 + commit 0377db4b3581561b1ffc5bb7c3b4d698e8993b3a
31560 * g10/keydb.h (keydb_locate_writable): Remove unused parameter
31561 reserved. Update users.
31563 2015-08-31 NIIBE Yutaka <gniibe@fsij.org>
31565 agent: Fix SSH public key for EdDSA.
31566 + commit 135b1e32f01beaceba8a4ecc774e23b56aca1d24
31567 * agent/command-ssh.c (ssh_key_to_blob): Remove the prefix 0x40.
31569 2015-08-26 Neal H. Walfield <neal@g10code.com>
31571 g10: Simplify cache. Only include data that is actually used.
31572 + commit fad91071cadff43d77ce2e524dfb03999ba6678e
31573 * g10/keydb.c (struct kid_list_s): Rename from this...
31574 (struct kid_not_found_cache_bucket): ... to this. Update users.
31575 Remove field state.
31576 (kid_list_t): Remove type.
31577 (KID_NOT_FOUND_CACHE_BUCKETS): Define. Use this instead of a literal.
31578 (kid_found_table): Rename from this...
31579 (kid_not_found_cache_bucket): ... to this. Update users.
31580 (kid_found_table_count): Rename from this...
31581 (kid_not_found_cache_count): ... to this. Update users.
31582 (kid_not_found_p): Only return whether a key with the specified key id
31583 is definitely not in the database.
31584 (kid_not_found_insert): Remove parameter found. Update callers.
31585 (keydb_search): Only insert a key id in the not found cache if it is
31586 not found. Rename local variable once_found to already_in_cache.
31588 2015-08-25 Werner Koch <wk@gnupg.org>
31590 Add configure option --enable-build-timestamp.
31591 + commit 9d07f6930aaa40dce92104e8c99241713d92eed2
31592 * configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default.
31594 gpg: Emit ERROR status for key signing failures.
31595 + commit 51b9b8fba4ee326013c2cc911c70cde4c5f81fc7
31596 * g10/keyedit.c (sign_uids): Write an ERROR status for a signing
31598 (menu_adduid, menu_addrevoker, menu_revsig): Ditto.
31599 (menu_revuid, menu_revkey, menu_revsubkey): Ditto.
31601 gpg: Print a new FAILURE status after most commands.
31602 + commit 9cdff09743c473a12359bfdb914578ede0e4e3e2
31603 * common/status.h (STATUS_FAILURE): New.
31604 * g10/cpr.c (write_status_failure): New.
31605 * g10/gpg.c (main): Call write_status_failure for all commands which
31606 print an error message here.
31607 * g10/call-agent.c (start_agent): Print an STATUS_ERROR if we can't
31608 set the pinentry mode.
31610 2015-08-24 Neal H. Walfield <neal@g10code.com>
31612 agent: Raise the maximum password length. Don't hard code it.
31613 + commit 348a6ebb63523305ce9f47d0f3e8a9086c338fed
31614 * agent/agent.h (MAX_PASSPHRASE_LEN): Define.
31615 * agent/command-ssh.c (ssh_identity_register): Use it instead of a
31616 hard-coded literal.
31617 * agent/cvt-openpgp.c (convert_from_openpgp_main): Likewise.
31618 * agent/findkey.c (unprotect): Likewise.
31619 * agent/genkey.c (agent_ask_new_passphrase): Likewise.
31621 2015-08-24 Werner Koch <wk@gnupg.org>
31623 sm: Support secret key export via the Assuan interface.
31624 + commit 3cf02192a890d04f8f558cb72d46f9bd7a378322
31625 * sm/server.c (cmd_export): Add options --secret, --raw, and --pkcs12.
31627 2015-08-23 Werner Koch <wk@gnupg.org>
31629 dirmngr: Allow sending of Zack's key.
31630 + commit 84f4c8811fc5bdd78693c4dc289389a8337cc257
31631 * dirmngr/server.c (MAX_KEYBLOCK_LENGTH): Increase to 1 MiB.
31633 gpg: Fix regression in packet parser from Aug 19.
31634 + commit 88317ae8c829bfeb1689415efbd32b7a232d7bd0
31635 * g10/parse-packet.c (parse): Use an int to compare to -1. Use
31638 gpg: Show not found keys with --locate-key --verbose.
31639 + commit 00def10d365a88ce2d034ea9a5d6be4b03285fa4
31640 * g10/keylist.c (locate_one): Print a diagnostic for a not-found key.
31642 2015-08-21 Neal H. Walfield <neal@g10code.com>
31644 common: Don't incorrectly reject 4 GB - 1 sized packets.
31645 + commit 09f2a7bca624d0492e1d7ab29ce19542249c13ff
31646 * g10/parse-packet.c (parse): Don't reject 4 GB - 1 sized packets.
31647 Add the constraint that the type must be 63.
31648 * kbx/keybox-openpgp.c (next_packet): Likewise.
31649 * tests/openpgp/4gb-packet.asc: New file.
31650 * tests/openpgp/4gb-packet.test: New file.
31651 * tests/openpgp/Makefile.am (TESTS): Add 4gb-packet.test.
31652 (TEST_FILES): Add 4gb-packet.asc.
31654 common: Don't assume on-disk layout matches in-memory layout.
31655 + commit 4f37820334fadd8c5036ea6c42f3dc242665c4a9
31656 * g10/packet.h (PKT_signature): Change revkey's type from a struct
31657 revocation_key ** to a struct revocation_key *. Update users.
31659 common: Don't incorrectly copy packets with partial lengths.
31660 + commit b3226cadf9bbef4a367072396e5b0abf37afff2d
31661 * g10/parse-packet.c (parse): We don't handle copying packets with a
31662 partial body length to an output stream. If this occurs, log an error
31665 common: Check parameters more rigorously.
31666 + commit 0143d5c1ca4d12ac252c14f01931f48131591065
31667 * g10/parse-packet.c (dbg_copy_all_packets): Check that OUT is not
31669 (copy_all_packets): Likewise.
31671 common: Don't continuing processing on error.
31672 + commit 48e792cc951a9d00fad0691ef7411c9e22cf675a
31673 * g10/parse-packet.c (dbg_parse_packet): Also return if parse returns
31675 (parse_packet): Likewise.
31676 (dbg_search_packet): Likewise.
31677 (search_packet): Likewise.
31679 common: Better respect the packet's length when reading it.
31680 + commit 73af66a0aada8f30d8f400fdc4f69e233fb53089
31681 * g10/parse-packet.c (parse_signature): Make sure PKTLEN doesn't
31682 underflow. Be more careful that a read doesn't read more data than
31683 PKTLEN says is available.
31685 2015-08-20 Werner Koch <wk@gnupg.org>
31687 po: Add lost translation of validity strings.
31688 + commit 0d5a4138f27187e7828ef8216758edc9b48b2c64
31689 * po/POTFILES.in (trust.c): Add missing file.
31690 * po/de.po: Changed German validity strings.
31691 * doc/help.de.txt: Ditto.
31693 2015-08-20 Neal H. Walfield <neal@g10code.com>
31695 g10/parse-packet.c:parse: Try harder to not ignore an EOF.
31696 + commit 0add91ae1ca3718e8140af09294c595f47c958d3
31697 * g10/parse-packet.c (parse): Be more robust: make sure to process any
31700 g10/parse-packet.c: Replace literal with symbolic expression.
31701 + commit 24a72dffa75a04611c98343140c4eb0fbfe2a59f
31702 * g10/parse-packet.c (dump_hex_line): Use sizeof rather than the
31705 Add documentation for g10/parse-packet.c.
31706 + commit 026feff4a8e3090fb152af72c73aaa80c78e4551
31707 * g10/packet.h: Add documentation for functions defined in
31709 * g10/parse-packet.c: Improve comments for many functions.
31711 g10/packet.h: Remove unused argument from enum_sig_subpkt.
31712 + commit c46e8bfe9a1ae3f1e5327d0451cffd6e4567b449
31713 * g10/packet.h (enum_sig_subpkt): Remove argument RET_N. Update
31715 * g10/parse-packet.c (enum_sig_subpkt): Remove argument RET_N.
31717 g10/parse-packet.c:mpi_read: Detect EOF and correct boundary conditions.
31718 + commit c271feb53664dbf2b4ccbae90a31b8e726481e2d
31719 * g10/parse-packet.c (mpi_read): Improve documentation. Correctly
31720 handle an EOF. On overflow, correctly return the number of bytes read
31723 common/iobuf.c: Make control flow more obvious.
31724 + commit 49f922286fa8adb2d2ca730eb7bbe67e684b20de
31725 * common/iobuf.c (iobuf_read): Make control flow more obvious.
31726 (iobuf_get_filelength): Likewise.
31727 (iobuf_get_fd): Likewise.
31728 (iobuf_seek): Likewise.
31730 common/iobuf.c: Add some sanity checks to catch programmer bugs.
31731 + commit c5da750cf3d53277fe6d86776bfe0d2304b05151
31732 * common/iobuf.c (iobuf_alloc): Check that BUFSIZE is not 0.
31733 (iobuf_readbyte): Check that A is an input filter. Check that the
31734 amount of read data is at most the amount of buffered data.
31735 (iobuf_read): Check that A is an input filter.
31736 (iobuf_writebyte): Check that A is not an input filter.
31737 (iobuf_writestr): Check that A is not an input filter.
31738 (iobuf_flush_temp): Check that A is not an input filter.
31740 common/iobuf.c:iobuf_write_temp: Elide redundant code.
31741 + commit e291b631c3b1aedf529078190cd51e2acfcd1d92
31742 * common/iobuf.c (iobuf_write_temp): Don't repeat iobuf_flush_temp.
31745 common/iobuf.c: Have iobuf_writestr use iobuf_write, not iobuf_writebyte
31746 + commit a6d4bca3b576c3c5dba1aa6e8c1039089e14147b
31747 * common/iobuf.c (iobuf_write): Don't write a byte at a time. Use
31750 common/iobuf: Improve documentation and code comments.
31751 + commit 1bfd1e43246c16e20f819bf5381ca21abde54458
31752 common/iobuf.h: Improve documentation and code comments.
31753 common/iobuf.c: Likewise.
31755 common/iobuf.c: Adjust buffer size of filters in front of temp filters.
31756 + commit 0d40c4e83f6fbfea2f494f1f88412d3132ff98bd
31757 * common/iobuf.c (iobuf_push_filter2): If the head filter is a temp
31758 filter, use IOBUF_BUFFER_SIZE for the new filter.
31760 common/iobuf.c: Buffered data should not be processed by new filters.
31761 + commit 827cc922d84d8113d4f13ebbed1314e03da5f7d2
31762 * common/iobuf.c (iobuf_push_filter2): If the pipeline is an output or
31763 temp pipeline, the new filter shouldn't assume ownership of the old
31764 head's internal buffer: the data was written before the filter was
31766 * common/t-iobuf.c (double_filter): New function.
31767 (main): Add test cases for the above bug.
31769 common/iobuf.c: Flush the pipeline in iobuf_temp_to_buffer.
31770 + commit 616181f3c757160af8539869a6d929faca4962c4
31771 * common/iobuf.c (iobuf_temp_to_buffer): Flush each filter in the
31772 pipeline and copy the data from the last (not the first) filter's
31775 common/iobuf.c: Combine iobuf_open, iobuf_create and iobuf_openrw.
31776 + commit 15ae99f887f4694de8468625d455d487d283f719
31777 * common/iobuf.c (do_open): New function, which is a generalization of
31778 iobuf_open, iobuf_Create, iobuf_openrw.
31779 (iobuf_open): Call do_open.
31780 (iobuf_create): Likewise.
31781 (iobuf_openrw): Likewise.
31783 common/iobuf.h: Remove iobuf_open_fd_or_name.
31784 + commit 8402815d8e0e04a44362968f88b3d484d2395402
31785 * common/iobuf.h (iobuf_open_fd_or_name): Remove prototype. Replace
31786 use with either iobuf_open or iobuf_fdopen_nc, as appropriate.
31787 * common/iobuf.c (iobuf_open): Remove function.
31789 common/iobuf.c: Rename iobuf_flush and make it a static function.
31790 + commit 6d49a2b6691f2dd0d8ac34a15f18cc2a0c3ba5d3
31791 * common/iobuf.h (iobuf_flush): Remove prototype.
31792 * common/iobuf.c (filter_flush): New static prototype.
31793 (iobuf_flush): Rename...
31794 (filter_flush): ... to this. Make static. Simplify code. Update
31797 common/iobuf.c: Don't abort freeing a pipeline if freeing a filter fails
31798 + commit 1f94646a86348128f585301fcd605e5e703fd77d
31799 * common/iobuf.c (iobuf_cancel): Don't abort freeing a pipeline if
31800 freeing a filter fails. This needs to a memory leak. Instead, keep
31801 freeing and return the error code of the first filter that fails.
31803 common/iobuf.c: Improve iobuf_peek.
31804 + commit a250f73783c06d7789ac65a395d9247f4ab44c26
31805 * common/iobuf.c (underflow): Take additional parameter
31806 clear_pending_eof. If not set, don't clear a pending eof when
31807 returning EOF. Update callers.
31808 (iobuf_peek): Fill the internal buffer, if needed, to be able to
31809 better satisfy any request.
31811 common/iobuf.c: When requested, fill the buffer even if it is not empty.
31812 + commit c7ad36eb0d7f872fc15e793aa1d0b6b89bc471d6
31813 * common/iobuf.c (underflow): Don't require that the buffer be empty.
31814 When called, fill any available space.
31816 common/t-iobuf.c: Add a test case for multiple EOFs.
31817 + commit e76c75d8726558dc9084710253f0f6780e06fad3
31818 common/t-iobuf.c (main): Add a test case for multiple EOFs in an INPUT
31821 common/iobuf.c: Better respect boundary conditions in iobuf_read_line.
31822 + commit 4e32c602f5c40cca5f8f40e642ccb10d3f8c5614
31823 * common/iobuf.c (iobuf_read_line): Be more careful with boundary
31825 * common/iobuf.h: Include <gpg-error.h>.
31826 * common/t-iobuf.c: New file.
31827 * common/Makefile.am (module_tests): Add t-iobuf.
31828 (t_mbox_util_LDADD): New variable.
31830 common/iobuf.c: Fix filter type for iobuf_temp_with_content.
31831 + commit fa9fda23c2c8cf6982b7263f6882ed8687d98c16
31832 * common/iobuf.c (iobuf_temp_with_content): Set the filter type to
31833 IOBUF_INPUT, not IOBUF_TEMP, which is only for output filters that
31834 write into a dynamic buffer.
31836 common/iobuf.h: Remove unimplemented prototypes.
31837 + commit 75fd86bbd175e085a93c1ad62f50ae936494b307
31838 * common/iobuf.h (iobuf_unread): Remove unimplemented prototype.
31839 (iobuf_clear_eof): Likewise.
31840 (iobuf_append): Likewise.
31842 common/iobuf.c: Refactor code to not need the desc field.
31843 + commit 679acc671e621847f50d6b4dca10a22c62500b9a
31844 * common/iobuf.h (struct iobuf_struct): Remove field desc.
31845 * common/iobuf.c (iobuf_desc): New function. When a filter's
31846 description is needed, use this instead of the filter's desc field.
31848 common/iobuf.h: Clarify semantics of nofast. Simplify implementation.
31849 + commit 12fc56bcb51d984a6e86fc1eb7952f9976c67043
31850 * common/iobuf.h (struct iobuf_struct): Clarify semantics of nofast.
31851 Simplify use of nofast to implement just these semantics.
31853 common/iobuf.c: Remove dead code (directfp).
31854 + commit e8c0b6abf88309c23a70df0abbd38d42fa22a786
31855 * common/iobuf.h (struct iobuf_struct): Remove field directfp. Remove
31858 common/iobuf.c: Remove dead code (opaque).
31859 + commit f05d60b3813a97e316a067680d7598b74621a522
31860 * common/iobuf.h (struct iobuf_struct): Remove field opaque. Remove
31863 common/iobuf.h: Replace further use of literals with symbolic constants.
31864 + commit c06eabac8e85f7f79414363836f093415e8da62e
31865 * common/iobuf.c: Move BLOCK_FILTER_INPUT,
31866 BLOCK_FILTER_OUTPUT_BLOCK_FILTER_TEMP from here...
31867 * common/iobuf.h: ... to here and rename to IOBUF_INPUT, IOBUF_OUTPUT
31868 and IOBUF_TEMP, respectively. Where appropriate, use these macros
31869 instead of a literal.
31871 2015-08-17 Werner Koch <wk@gnupg.org>
31873 gpg: Avoid linking to Libksba.
31874 + commit 91357b7722f2bf0d3765ec72855bdc96732df9d6
31875 * kbx/keybox.h (KEYBOX_WITH_X509): Do not define.
31876 * sm/Makefile.am (AM_CPPFLAGS): Define it here.
31877 (common_libs): Change to libkeybox509.a
31878 * g10/Makefile.am (AM_CFLAGS): remove KSBA_CFLAGS.
31879 (gpg2_LDADD, gpgv2_LDADD): Remove KSBA_LIBS
31880 * kbx/Makefile.am (noinst_LIBRARIES): Add libkeybox509.a.
31881 (libkeybox509_a_SOURCES): New.
31882 (libkeybox_a_CFLAGS): New.
31883 (libkeybox509_a_CFLAGS): New.
31884 (kbxutil_CFLAGS): New.
31885 * kbx/keybox-search.c (has_keygrip) [!KEYBOX_WITH_X509]: Declare args
31888 2015-08-16 Ben Kibbey <bjk@luxsci.net>
31890 Fix pinentry loopback and passphrase contraints.
31891 + commit bba74cdd95ea98b5a7c3a12823b229341e91504e
31892 * agent/command.c (cmd_get_passphrase): Don't repeat passphrase for
31893 pinentry loopback mode.
31894 * agent/genkey.c (check_passphrase_constraints): Immediately return when
31895 pinentry mode is loopback.
31897 Fix sending INQUIRE_MAXLEN for symmetric data.
31898 + commit 93f5295df512269dd8fecbd649b11cbacf78e864
31899 * g10/passphrase.c (passphrase_to_dek_ext): Write the status message.
31901 2015-08-15 Ben Kibbey <bjk@luxsci.net>
31903 Inform a user about inquire length limit.
31904 + commit f126ca61565922b3b938c3486614b9bd7e6e454c
31905 * common/status.h (INQUIRE_MAXLEN): New.
31906 * g10/call-agent.c (default_inquire_cb): Send STATUS_INQUIRE_MAXLEN.
31907 client when inquiring a passphrase over pinentry-loopback.
31909 Allow --gen-key to inquire a passphrase.
31910 + commit 233b5fedabd80a34452e748132e65b5944310428
31911 * g10/gpg.c (main): test for --command-fd during --gen-key parse.
31913 When --command-fd is set then imply --batch to let gpg inquire a
31914 passphrase rather than requiring a pinentry.
31916 2015-08-11 Werner Koch <wk@gnupg.org>
31919 + commit b5e081973b56b21214fc0c65ba9015dd026328b4
31922 2015-08-10 NIIBE Yutaka <gniibe@fsij.org>
31924 agent: fix ECC key handling.
31925 + commit 8704c70108218a60f8fb2ee0e558ca8ed125600d
31926 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
31927 (convert_transfer_key): CURVE is the name of curve.
31929 2015-08-08 Neal H. Walfield <neal@g10code.com>
31931 common/iobuf.c: Replace use of literals with symbolic constants.
31932 + commit c80643c5ecbee89f343ef087313870cee1334fe4
31933 * common/iobuf.c (BLOCK_FILTER_INPUT): Define. Where appropriate, use
31934 this instead of a literal.
31935 (BLOCK_FILTER_OUTPUT): Likewise.
31936 (BLOCK_FILTER_TEMP): Likewise.
31938 2015-08-07 Werner Koch <wk@gnupg.org>
31940 gpg: Allow gpgv to work with a trustedkeys.kbx file.
31941 + commit 5b7a80b1ab91d2f199065e5dd14e85f42918975d
31942 * g10/keydb.h (KEYDB_RESOURCE_FLAG_GPGVDEF): New.
31943 * g10/keydb.c (keydb_add_resource): Take care of new flag.
31944 * g10/gpgv.c (main): Use new flag.
31946 agent: Add option --force to the DELETE_KEY command.
31947 + commit a68c5c5c7fe4ec8665e252e5062292f6c7b94fdd
31948 * agent/findkey.c (agent_delete_key): Add arg "force".
31949 * agent/command.c (cmd_delete_key): Add option --force.
31951 common: Change alias for Curve25519 to "cv25519".
31952 + commit 9f31ab3d216ed74d6f392a62e3f95e0591174119
31953 * common/openpgp-oid.c (oidtable): Change alias.
31955 2015-08-06 Werner Koch <wk@gnupg.org>
31957 gpg: Remove duplicated printing of the curve name in "sub" lines.
31958 + commit fb754dc6170d12edf3d35c48340b8d7b1ded20f7
31959 * g10/keylist.c (list_keyblock_print): Do not print extra curve name.
31961 gpg: Add commands "fpr *" and "grip" to --edit-key.
31962 + commit fbb6c25ab5dbb5f2b1f1eb342ca7caa3f955d8c9
31963 * g10/keyedit.c (cmdGRIP): New.
31964 (cmds): Add command "grip".
31965 (keyedit_menu) <cmdFPR>: Print subkeys with argument "*".
31966 (keyedit_menu) <cmdGRIP>: Print keygrip.
31967 (show_key_and_fingerprint): Add arg "with_subkeys".
31968 (show_key_and_grip): New.
31969 * g10/keylist.c (print_fingerprint): Add mode 4.
31971 gpg: Adjust UID line indentation for common key algos.
31972 + commit 969542c8c2f48a60c1d68b7bf70b0c00374bacba
31973 * g10/keylist.c (list_keyblock_print): Change UID line indentation
31974 * g10/mainproc.c (list_node): Ditto.
31976 2015-08-06 NIIBE Yutaka <gniibe@fsij.org>
31978 Curve25519 support.
31979 + commit e5891a82c39997b65ce9ff90eb6120db7bedd399
31980 * agent/cvt-openpgp.c (get_keygrip): Handle Curve25519.
31981 (convert_secret_key, convert_transfer_key): Ditto.
31982 * common/openpgp-oid.c (oidtable): Add Curve25519.
31983 (oid_crv25519, openpgp_oid_is_crv25519): New.
31984 * common/util.h (openpgp_oid_is_crv25519): New.
31985 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Handle the case
31986 with Montgomery curve which uses x-only coordinate.
31987 * g10/keygen.c (gen_ecc): Handle Curve25519.
31988 (ask_curve): Change the API and second arg is to return subkey algo.
31989 (generate_keypair, generate_subkeypair): Follow chage of ask_curve.
31990 * g10/keyid.c (keygrip_from_pk): Handle Curve25519.
31991 * g10/pkglue.c (pk_encrypt): Handle Curve25519.
31992 * g10/pubkey-enc.c (get_it): Handle the case with Montgomery curve.
31993 * scd/app-openpgp.c (ECC_FLAG_DJB_TWEAK): New.
31994 (send_key_attr): Work with general ECC, Ed25519, and Curve25519.
31995 (get_public_key): Likewise.
31996 (ecc_writekey): Handle flag_djb_tweak.
31998 common: extend API of openpgp_oid_to_curve for canonical name.
31999 + commit a6e40530898622fbc5d76557a7da5e69368ecaa4
32000 * common/openpgp-oid.c (openpgp_oid_to_curve): Add CANON argument.
32001 * common/util.h: Update.
32002 * g10/import.c (transfer_secret_keys): Follow the change.
32003 * g10/keyid.c (pubkey_string): Likewise.
32004 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Likewise.
32005 * parse-packet.c (parse_key): Likewise.
32006 * scd/app-openpgp.c (send_key_attr, get_public_key): Likewise.
32008 2015-08-05 NIIBE Yutaka <gniibe@fsij.org>
32011 + commit d088d2c81690a89051349ddc8a82fe222625f4e0
32012 * scd/app-openpgp.c (ecc_oid): Call with OIDBUF.
32014 scd: Fix ECC support.
32015 + commit 0751571cac0f5aef2862c34a184f7f09ad9cb203
32016 * scd/app-openpgp.c (send_key_attr): Send KEYNO.
32017 (get_public_key): Fix SEXP composing.
32018 (ecc_writekey): Fix OID length calculation.
32019 (ecc_oid): Prepend the length before query.
32020 (parse_algorithm_attribute): Handle the case the curve is not available.
32022 2015-08-04 Werner Koch <wk@gnupg.org>
32024 gpg: Fix duplicate key import due to legacy key in keyring.
32025 + commit 4a326d7c9a3b09efcccf4de00d6c003829ad89e8
32026 * g10/keydb.c (keydb_search_fpr): Skip legacy keys.
32028 gpg: Properly handle legacy keys while looking for a secret key.
32029 + commit f05a63b10428df2878b1bb6fde57a2fc2aa99105
32030 * g10/getkey.c (have_secret_key_with_kid): Skip legacy keys.
32032 2015-07-31 Werner Koch <wk@gnupg.org>
32034 gpg: Fix endless loop for expired keys given by fpr.
32035 + commit 328a6b6459a5ce4a70b374262f221ada20c40878
32036 * g10/getkey.c (lookup): Disable keydb caching when continuing a
32039 2015-07-29 Werner Koch <wk@gnupg.org>
32041 gpg: Do not return "Legacy Key" from lookup if a key is expired.
32042 + commit 23d8609f4b5ec3432323a676fd7ef225c0ef71a1
32043 * g10/getkey.c (lookup): Map GPG_ERR_LEGACY_KEY.
32045 gpg: Indicate secret keys and cards in a key-edit listing.
32046 + commit 8b2b988309cbc5af339beb0a55ff71d7464eb646
32047 * g10/keyedit.c (sign_uids): Add arg "ctrl".
32048 (show_key_with_all_names_colon): Ditto.
32049 (show_key_with_all_names): Ditto.
32051 * g10/keyedit.c (show_key_with_all_names): Print key record
32052 indicators by checking with gpg-agent.
32053 (show_key_with_all_names): Ditto. May now also print sec/sbb.
32055 2015-07-28 Werner Koch <wk@gnupg.org>
32057 gpg: Remove the edit-key toggle command.
32058 + commit 7ef09afd1a6a37c7f22e7c3d898f0c917b08f940
32059 * g10/keyedit.c (cmds): Remove helptext from "toggle".
32060 (keyedit_menu): Remove "toggle" var and remove the sub/pub check
32063 common,w32: Avoid unused var warning about msgcache.
32064 + commit 4bc75337f31374b7424d7bdebf839dd91ec80c0a
32065 * common/i18n.c (USE_MSGCACHE): New.
32066 (msgcache) [!USE_MSGCACHE]: Do not define.
32067 (i18n_localegettext): Repalce #if conditions by USE_MSGCACHE.
32069 w32: Try more places to find an installed Pinentry.
32070 + commit 18f1e627c697d75175b79fe095305fa775f20841
32071 * common/homedir.c (get_default_pinentry_name): Re-implement to
32072 support several choices for Windows.
32074 2015-07-26 Werner Koch <wk@gnupg.org>
32076 scd: Fix size_t/unsigned int mismatch.
32077 + commit 55e64f47a52d76e097a01eb4044a88a4e10d6a87
32078 * scd/app-openpgp.c (ecc_writekey): Use extra var n.
32080 Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros.
32081 + commit d382242fb6789973ce8d246ec154a4a1468c24c0
32082 * common/util.h: Provide replacement for GPGRT_ATTR_ macros when using
32083 libgpg-error < 1.20.
32084 * common/mischelp.h: Ditto.
32085 * common/types.h: Ditto.
32087 2015-07-25 NIIBE Yutaka <gniibe@fsij.org>
32089 scd: support any curves defined by libgcrypt.
32090 + commit ef080d5c7fb7f3b75c3c57c011f78a312b8e13a9
32091 * g10/call-agent.h (struct agent_card_info_s): Add curve field.
32092 * g10/call-agent.c (learn_status_cb): Use curve name.
32093 * g10/card-util.c (card_status): Show pubkey name.
32094 * scd/app-openpgp.c (struct app_local_s): Record OID and flags.
32095 (store_fpr): Use ALGO instead of key type.
32096 (send_key_attr): Use curve name instead of OID.
32097 (get_public_key): Clean up by OID to curve name.
32098 (ecc_writekey): Support any curves in libgcrypt.
32099 (do_genkey, do_auth, ): Follow the change.
32101 (parse_algorithm_attribute): Show OID here.
32103 2015-07-23 Peter Wu <peter@lekensteyn.nl>
32105 build: ignore scissor line for the commit-msg hook.
32106 + commit d24165bce2823c2f5dcb39b7b84c9aa00802a8ee
32107 * build-aux/git-hooks/commit-msg: Stop processing more lines when the
32108 scissor line is encountered.
32110 2015-07-23 NIIBE Yutaka <gniibe@fsij.org>
32112 scd: Format change to specify "rsa2048" for KEY-ATTR.
32113 + commit dbf4534f49a1fe3823bd6d6d7bb4d9df863b4789
32114 * g10/card-util.c (do_change_keysize): Put "rsa".
32115 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
32116 Change the command format.
32117 (rsa_writekey): Check key type.
32118 (do_writekey): Remove "ecdh" and "ecdsa" support which was available
32119 in experimental libgcrypt before 1.6.0.
32121 2015-07-22 Werner Koch <wk@gnupg.org>
32123 Avoid a leading double slash in make_filename.
32124 + commit 69d2c9b09bd9d0b86b9f2feb585037a2c11795b0
32125 * common/stringhelp.c (do_make_filename): Special case leading '/'.
32127 2015-07-21 NIIBE Yutaka <gniibe@fsij.org>
32129 scd: change_keyattr_from_string for ECC.
32130 + commit 9901be395684dd1b35d83685a719291347684ab1
32131 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
32133 (rsa_writekey): Don't change key attribute.
32135 2015-07-17 NIIBE Yutaka <gniibe@fsij.org>
32137 scd: Use openpgpdefs.h for constants.
32138 + commit f5d356fb5bbbd0e05a753612455253e4bc335266
32139 * scd/app-openpgp.c: Include openpgpdefs.h.
32141 2015-07-16 Neal H. Walfield <neal@g10code.com>
32143 Don't segfault if the first 'auto-key-locate' option is 'clear'.
32144 + commit f2ee673c99825d5189631031ddec2dbf54dbd482
32145 * g10/getkey.c (free_akl): If AKL is NULL, just return.
32147 2015-07-10 NIIBE Yutaka <gniibe@fsij.org>
32149 agent: Support non-NLS build.
32150 + commit b3286af36d452fc801be573a057b0838d53a2edd
32151 * agent/agent.h: Use ENABLE_NLS and define L_() macro.
32153 2015-07-09 NIIBE Yutaka <gniibe@fsij.org>
32155 scd: Remove unused files.
32156 + commit 67b2dc7636e47baefd5aafe0eb45b4730f974481
32157 * scd/Makefile.am (sc_copykeys_*): Remove.
32158 * scd/sc-copykeys.c: Remove.
32159 * scd/pcsc-wrapper.c: Remove.
32160 * scd/{card-common.h,card-dinsig.c,card-p15.c,card.c}: Remove.
32162 2015-07-08 NIIBE Yutaka <gniibe@fsij.org>
32164 g10: Use canonical name for curve.
32165 + commit 5b46726931049e060d8fbfa879db7907078a9aed
32166 * g10/import.c (transfer_secret_keys): Use canonical name.
32167 * common/openpgp-oid.c (openpgp_curve_to_oid): Return NULL on error.
32168 * g10/keyid.c (pubkey_string): Follow change of openpgp_curve_to_oid.
32169 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
32170 * g10/parse-packet.c (parse_key): Ditto.
32172 2015-07-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
32174 drop long-deprecated gpgsm-gencert.sh.
32175 + commit 1be2cebf7ff5837c8b548b4f4afbf1b8b28211bc
32176 * tools/gpgsm-gencert.sh: remove deprecated script entirely. It is
32177 fully replaced by gpgsm --gen-key
32178 * doc/tools.texi: remove gpgsm-gencert.sh documentation
32179 * .gitignore: no longer ignore gpgsm-gencert.sh manpage
32180 * doc/Makefile.am: quit making the manpage
32181 * tools/Makefile.am: quit distributing the script
32182 * doc/howto-create-a-server-cert.texi: overhaul documentation to use
32183 gpgsm --gen-key and tweak explanations
32185 2015-07-02 NIIBE Yutaka <gniibe@fsij.org>
32187 po: Update Japanese translation.
32188 + commit 3502b3cc0f5ff92ab89a0da8b1e344a8ad615737
32191 scd: Support AES decryption for OpenPGPcard v3.0.
32192 + commit 45c49a0030c7a01ec011ce810ddb3aaef734e9bf
32193 * scd/app-openpgp.c (do_decipher): Support AES decryption.
32195 2015-07-01 Werner Koch <wk@gnupg.org>
32198 + commit a499eeb6a6545d87ac9f1b64e32017bfdb4f67e6
32201 2015-07-01 Daiki Ueno <ueno@gnu.org>
32203 agent: Unset INSIDE_EMACS on gpg-agent startup.
32204 + commit f1490a3a0ecf4a5a03373c9563f7709630232ee3
32205 * agent/gpg-agent.c (main): Unset INSIDE_EMACS envvar.
32207 2015-07-01 Werner Koch <wk@gnupg.org>
32209 common: Implement i18n_localegettext.
32210 + commit a65447f0d64d0c53ddbdcfc988f26ecc9a8a6f08
32211 * common/i18n.c (msg_cache_s, msg_cache_head_s): New.
32213 (i18n_localegettext): Implement locale dependent lookup.
32215 2015-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
32217 Pass DBUS_SESSION_BUS_ADDRESS for gnome3.
32218 + commit 816824953c91959c23a57c047bdba6a902ffdde6
32219 * common/session-env.c (stdenvnames): Add DBUS_SESSION_BUS_ADDRESS.
32221 2015-06-30 Werner Koch <wk@gnupg.org>
32223 Flag the L_() function with attribute format_arg.
32224 + commit 232af382e563fcbe15589a3ccae7d6908a17c44d
32225 * agent/agent.h (LunderscorePROTO): New.
32226 * common/util.h (GNUPG_GCC_ATTR_FORMAT_ARG): New.
32227 * common/i18n.h (GNUPG_GCC_ATTR_FORMAT_ARG): New. Use for
32228 i18n_localegettext. Expand LunderscorePROTO.
32229 * agent/genkey.c (check_passphrase_constraints): Use xtryasprintf
32230 again to keep the old translations.
32232 agent: Use different translation func for Pinentry strings.
32233 + commit e76d4c05b24211f3981ab69cddb3fccc17d21e0e
32234 * po/Makevars (XGETTEXT_OPTIONS): Add keyword "L_".
32235 * common/i18n.c (i18n_localegettext): New stub.
32236 * common/i18n.h: Expand the LunderscoreIMPL macro.
32237 * agent/agent.h (L_): New.
32238 (LunderscoreIMPL): New.
32239 * agent/call-pinentry.c (setup_qualitybar): Add arg ctrl anc change
32241 * agent/findkey.c (try_unprotect_cb): Add local var ctrl.
32242 * agent/genkey.c (check_passphrase_constraints): Replace xtryasprintf
32243 by xtrystrdup to avoid gcc warning. Unfortinately this changes the
32245 (agent_ask_new_passphrase): Cleanup the use of initial_errtext.
32247 gpg: Make show-sig-subpackets work again.
32248 + commit 010e4281c3e15e2f86589dd1da419531ead519ef
32249 * g10/gpg.c (parse_list_options): Fix offset for subpackets.
32251 2015-06-29 Werner Koch <wk@gnupg.org>
32253 agent: Prepare for Libassuan with Cygwin support.
32254 + commit b6076579311029aa76c00377d9a804b1578bf58f
32255 * agent/gpg-agent.c (create_server_socket): Add arg "cygwin". Call
32256 assuan_sock_set_flag if Assuan version is recent enough.
32257 (main): Create ssh server socket with Cygwin flag set.
32259 2015-06-29 Neal H. Walfield <neal@gnu.org>
32261 Show passphrase constraints errors as password prompt errors.
32262 + commit 2778c6f8f40d73272075ce04c07097f65c94054e
32263 * agent/agent.h (check_passphrase_constraints): Add parameter
32264 failed_constraint and remove parameter silent. Update callers.
32265 * agent/genkey.c (check_passphrase_constraints): Add parameter
32266 failed_constraint and remove parameter silent. If FAILED_CONSTRAINT
32267 is not NULL and OPT.ENFORCE_PASSPHRASE_CONSTRAINTS is FALSE, save the
32268 error text in *FAILED_CONSTRAINT and don't call take_this_one_anyway
32269 or take_this_one_anyway2. If FAILED_CONSTRAINT is NULL, act as if
32271 (agent_ask_new_passphrase): Change initial_errtext's type from a const
32272 char * to a char *. Pass it to check_passphrase_constraints. If it
32273 contains malloc's memory, free it.
32275 2015-06-29 Neal H. Walfield <neal@g10code.com>
32277 Improve documentation for default-cache-ttl and default-cache-ttl-ssh.
32278 + commit 0416aed4abf6cea94458d2e38eb4a5e6bfea2d8b
32279 * doc/gpg-agent.texi (Agent Options): Improve documentation for
32280 default-cache-ttl and default-cache-ttl-ssh.
32282 Don't raise max-cache-ttl to default-cache-ttl.
32283 + commit 60cf69ff9d61a2cd37fc4468f232fd41aa70a651
32284 * agent/gpg-agent.c (finalize_rereadable_options): Don't raise
32285 max-cache-ttl to default-cache-ttl. Likewise for max-cache-ttl-ssh
32286 and default-cache-ttl-ssh.
32288 Improve the description of old packets with an indeterminate length.
32289 + commit 68c217f457a772984d0afbdd341f18de7c867505
32290 * g10/parse-packet.c (parse): Make the description more accurate when
32291 listing packets: old format packets don't support partial lengths,
32292 only indeterminate lengths (RFC 4880, Section 4.2).
32294 2015-06-29 Werner Koch <wk@gnupg.org>
32296 agent: Add --verify to the PASSWD command.
32297 + commit 9bca96dbc5c32bdd00196462fde8c9ab94aeb28d
32298 * agent/command.c (cmd_passwd): Add option --verify.
32300 agent,w32: Do not create a useless socket with --enable-putty-support.
32301 + commit 7a387331645736eaeaaef57770beef5fa741bc22
32302 * agent/agent.h (opt): Remove field ssh_support.
32303 * agent/gpg-agent.c (ssh_support): New. Replace all opt.ssh_support
32305 (main): Do not set ssh_support along with setting putty_support.
32307 gpgsm: Add command option "offline".
32308 + commit 2c9c46e2a2b8f9a1bdc1ef46a135b5fc7d1a8073
32309 * sm/server.c (option_handler): Add "offline".
32310 (cmd_getinfo): Ditto.
32311 * sm/certchain.c (is_cert_still_valid):
32312 (do_validate_chain):
32313 * sm/gpgsm.c (gpgsm_init_default_ctrl): Default "offline" to the value
32314 of --disable-dirmngr.
32315 * sm/call-dirmngr.c (start_dirmngr_ext): Better also check for
32318 2015-06-26 NIIBE Yutaka <gniibe@fsij.org>
32320 scd: Support button flag and AES key data for OpenPGPcard v3.0.
32321 + commit d2fdf2e1b6cd447bb1c36df0ac7d8e669802fa22
32322 * scd/app-openpgp.c (do_getattr, show_caps, app_select_openpgp):
32323 Support button and symmetric decryption.
32324 (do_setattr): Support setting AESKEY.
32326 2015-06-25 Andre Heinecke <aheinecke@intevation.de>
32328 sm: Fix cert storage for ephemeral certs.
32329 + commit 5e1a844ae9b6730b4b8a2c9178ea9bc121560c28
32330 * sm/keydb.c (keydb_store_cert): Clear ephemeral flag for
32331 existing certs if store should not be ephemeral.
32333 2015-06-23 Werner Koch <wk@gnupg.org>
32335 Allow use of debug flag names for all tools.
32336 + commit 54a0ed3d9b10a3c6dfb3d6a4d20b693a3183f8f6
32337 * g13/g13.c: Make use of debug_parse_flag.
32338 * scd/scdaemon.c: Ditto.
32339 * sm/gpgsm.c: Ditto
32340 * agent/gpg-agent.c: Ditto. But do not terminate on "help"
32341 * dirmngr/dirmngr.c: Ditto.
32343 common: Improve fucntion parse_debug_flag.
32344 + commit 8195e55d0c134a45f7c9bd95c8b5741781841c18
32345 * common/miscellaneous.c (parse_debug_flag): Add hack not to call
32346 exit. Add "none" and "all" flags.
32348 2015-06-23 NIIBE Yutaka <gniibe@fsij.org>
32350 scd: pinpad workaround for PC/SC implementations.
32351 + commit 5e1d2fe6555d06f9dcd2daac713b2edfbc0428a5
32352 * scd/adpu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Bigger buffer
32353 for TPDU card reader.
32355 2015-06-22 Werner Koch <wk@gnupg.org>
32357 gpg: Allow debug flag names for --debug.
32358 + commit 4698e5b203bd983503b5fd784fcd09dd3bc3a15e
32359 * g10/gpg.c (opts): Change arg for oDebug to a string.
32360 (debug_flags): New; factored out from set_debug.
32361 (set_debug): Remove "--debug-level help". Use parse_debug_flag to
32362 print the used flags.
32363 (main): Use parse_debug_flag for oDebug.
32365 common: Add function parse_debug_flag.
32366 + commit 22147952b744958ec46d356e942540356ff7d93e
32367 * common/miscellaneous.c (parse_debug_flag): New.
32368 * common/util.h (struct debug_flags_s): New.
32370 common: Add function strtokenize.
32371 + commit d37f47081d41584efc0c397432811f9cfa5d5867
32372 * common/stringhelp.c: Include assert.h.
32373 (strtokenize): New.
32374 * common/t-stringhelp.c (test_strtokenize): New.
32376 gpg: Fix regression due to recent commit 6500f33.
32377 + commit e0873a3372800d51c90ca656450f937dbae9c169
32378 * g10/keydb.c (kid_list_s): Keep a state in the table.
32379 (kid_not_found_table): Rename to kid_found_table.
32380 (n_kid_not_found_table): Rename to kid_found_table_count.
32381 (kid_not_found_p): Return found state.
32382 (kid_not_found_insert): Add arg found.
32383 (keydb_search): Store found state in the table.
32385 2015-06-22 NIIBE Yutaka <gniibe@fsij.org>
32387 scd: Fix Cherry ST-2000 support for pinpad input.
32388 + commit 444e9232aa9e00aacd939cbf7bdb881b550dfebe
32389 * scd/apdu.c (pcsc_vendor_specific_init): Set pinmax to 15.
32390 * scd/ccid-driver.c (ccid_transceive_secure): Add zero for the
32393 2015-06-20 Werner Koch <wk@gnupg.org>
32395 gpg: Print number of good signatures with --check-sigs.
32396 + commit 0948c4f217308ffa0ec61ce189d387fd61b02bbd
32397 * g10/keylist.c (keylist_context): Add field good_sigs.
32398 (list_keyblock_print): Updated good_sigs.
32399 (print_signature_stats): Print number of good signatures and use
32400 log_info instead of tty_printf.
32402 gpg: Improve speed of --check-sigs and --lish-sigs.
32403 + commit 6500f338a35f4148606480c79f3a0c1b0d15f13a
32404 * g10/keydb.c (kid_list_t): New.
32405 (kid_not_found_table, n_kid_not_found_table): New.
32406 (kid_not_found_p, kid_not_found_insert, kid_not_found_flush): New.
32407 (keydb_insert_keyblock): Flush the new cache.
32408 (keydb_delete_keyblock): Ditto.
32409 (keydb_update_keyblock): Ditto.
32410 (keydb_search): Use the new cache.
32411 (keydb_dump_stats): New.
32412 * g10/gpg.c (g10_exit): Dump keydb stats.
32414 2015-06-19 Werner Koch <wk@gnupg.org>
32416 gpg: Add more log_clock calls to keydb.c.
32417 + commit 53e9b86085ac70ede8a0b1de9018ccbfe55b0932
32418 * g10/keydb.c (keydb_get_keyblock): Add log_clock calls.
32420 gpg: Print available debug flags using "--debug-level help".
32421 + commit 663a31f1ea2fc5a43c822e916cf20fece5243851
32422 * g10/gpg.c (set_debug): Add "help" option and use a table for the
32425 gpg: Fix export problem in case an old keyring has PGP-2 keys.
32426 + commit c5604eeee4b64a44a1ca1d517ace14fc1cbda298
32427 * g10/export.c (do_export_stream): Skip legacy keys.
32429 2015-06-18 Werner Koch <wk@gnupg.org>
32431 dirmngr: Fix the cleanup zombies fix (685b782).
32432 + commit c97198371b7307e64afdd323231977b2247f64ec
32433 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Do not close the
32434 stdout reader after EOF from read_log_data.
32435 * dirmngr/crlcache.c (crl_cache_reload_crl): Close the reader before
32436 the next iteration.
32438 2015-06-17 Werner Koch <wk@gnupg.org>
32440 agent: Print a warning for obsolete options.
32441 + commit 010d26a85bfe15c4aa12eefeab851dbde0609c26
32442 * g10/misc.c (obsolete_scdaemon_option): Move to
32443 * common/miscellaneous.c (obsolete_option): ... here.
32444 * agent/gpg-agent.c (main): Use obsolete_option for the 3 obsolete
32447 2015-06-16 Werner Koch <wk@gnupg.org>
32449 dirmngr: Cleanup zombies and fix hang on shutdown.
32450 + commit 685b782a18adb90bbf78956682e4e7f89fed678c
32451 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Move nfds computation
32452 into the loop. Check the queue also on timeout. Close log_fd and
32453 reader context on EOF or error.
32455 dirmngr: Avoid accessing uninitialized memory in log callback.
32456 + commit 82c72e2db7bc5b633768d59822f2e2a353fa6e32
32457 * dirmngr/dirmngr.c (pid_suffix_callback): Clear int_and_ptr_u before
32459 (start_connection_thread): Ditto.
32460 (handle_connections): Ditto.
32462 2015-06-16 Neal H. Walfield <neal@g10code.com>
32464 Don't prompt for the password multiple times in pinentry loopback mode.
32465 + commit eac081ba1278855fa223b031b527498fec558bc7
32466 * g10/gpg.c (main): If OPT.PINENTRY_MODE is PINENTRY_MODE_LOOPBACK,
32467 clear OPT.PASSPHRASE_REPEAT.
32469 2015-06-16 NIIBE Yutaka <gniibe@fsij.org>
32471 po: Update Japanese Translation.
32472 + commit 15540f6233bd041b06708862a6d9535cbcabe330
32475 2015-06-15 Werner Koch <wk@gnupg.org>
32477 doc: Add defs.inc to BUILT_SOURCES.
32478 + commit ef273a9afc7840b75cfb9b8af78d117b7d672c6a
32481 2015-06-11 Werner Koch <wk@gnupg.org>
32484 + commit 9b7bdfae82f74a147a5dbf0fac0f78cde77a207b
32487 agent: Fix --extra-socket on Windows.
32488 + commit 985918aab025cf0ac9db411b88a47c4b985e5e95
32489 * agent/gpg-agent.c (start_connection_thread): Rename to ...
32490 (do_start_connection_thread): this. Factor nonce checking out to ...
32491 (start_connection_thread_std): this,
32492 (start_connection_thread_extra): this,
32493 (start_connection_thread_browser): and this.
32495 agent: Add experimental option --browser-socket.
32496 + commit 008435b95cbca19adc217178dc9d793eca584345
32497 * agent/agent.h (opt): Add field "browser_socket".
32498 * agent/command.c (cmd_setkeydesc): Use a different message for
32500 * agent/gpg-agent.c (oBrowserSocket): New.
32501 (opts): Add --browser-socket.
32502 (socket_name_browser, redir_socket_name_browser): New.
32503 (socket_nonce_browser): New.
32504 (cleanup): Cleanup browser socket.
32505 (main): Implement option.
32506 (start_connection_thread_browser): New.
32507 (handle_connections): Add arg listen_fd_browser and use it.
32509 2015-06-10 Daiki Ueno <ueno@gnu.org>
32511 agent: Add option --allow-emacs-pinentry.
32512 + commit 691dae270b3b741178912599724d69adabdb48b9
32513 * agent/agent.h (opt): Add field allow_emacs_pinentry.
32514 * agent/call-pinentry.c (start_pinentry): Act upon new var.
32515 * agent/gpg-agent.c (oAllowEmacsPinentry): New.
32516 (opts): Add option --allow-emacs-pinentry.
32517 (parse_rereadable_options): Set this option.
32518 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add new option.
32520 2015-06-09 Werner Koch <wk@gnupg.org>
32522 doc: Do not used fixed file names in the manuals.
32523 + commit 25331bba5554a39d226d32433add7784b2e170b8
32524 * doc/mkdefsinc.c: New.
32525 * doc/Makefile.am: Include cmacros.am.
32526 (EXTRA_DIST): Add mkdefsinc.c defsincdate.
32527 (BUILT_SOURCES): Add defsincdate
32528 (CLEANFILES): Add mkdefsinc and defs.inc.
32529 (mkdefsinc): New rule.
32530 (yat2m-stamp): Depend on defs.inc.
32531 ($(myman_pages) gnupg.7): Ditto.
32532 (gnupg.texi): Remove rule to touch itself.
32534 (defsincdate): New.
32536 * doc/gnupg.texi: Remove inclusion of version.texi. Include defs.inc.
32537 Also include defs.inc in all files used to build man files. Change
32538 fixed directory names to those from defs.inc.
32540 dirmngr: Avoid crash due to an empty crls.d/DIR.txt.
32541 + commit 255dadd76d5a2101d2c5450741326b67253fa9ea
32542 * dirmngr/crlcache.c (check_dir_version): Avoid segv.
32544 2015-06-08 Werner Koch <wk@gnupg.org>
32546 doc: Change the manual source to be only for GnuPG 2.1.
32547 + commit abbefdd04d7ee30218506caeae1fd858569c9f0a
32550 Convey envvar INSIDE_EMACS to the pinentry.
32551 + commit c672572bd50966187cc823585efed673b66ff942
32552 * common/session-env.c (stdenvnames): Add it.
32554 agent: Add command "getinfo std_env_names".
32555 + commit 8425db6a26bf66dad16dfbc26be9af7d272f31d3
32556 * agent/command.c (cmd_getinfo): Add new sub-command.
32558 2015-06-05 NIIBE Yutaka <gniibe@fsij.org>
32560 scd: do_decipher change for OpenPGPcard v3.0.
32561 + commit cf508a1f7f4c8926dc554be68a2d46f5ce272ac0
32562 * scd/app-openpgp.c (do_decipher): Add a header for ECDH.
32564 2015-06-04 Werner Koch <wk@gnupg.org>
32566 gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c.
32567 + commit a4a15195c2a3729025a3ba3439ac8860083fceeb
32568 * g10/tdbio.c (lookup_hashtable): Return GPG_ERR_NOT_FOUND.
32569 * g10/tdbdump.c (import_ownertrust): Test for GPG_ERR_NOT_FOUND.
32570 * g10/trustdb.c (read_trust_record): Ditto.
32571 (tdb_get_ownertrust, tdb_get_min_ownertrust): Ditto.
32572 (tdb_update_ownertrust, update_min_ownertrust): Ditto.
32573 (tdb_clear_ownertrusts, update_validity): Ditto.
32574 (tdb_cache_disabled_value): Ditto.
32576 gpg: Cleanup error code path in case of a bad trustdb.
32577 + commit f170240ef735edc481f60e51527cbb5ee1acfd55
32578 * g10/tdbio.c (tdbio_read_record): Fix returning of the error.
32580 gpg: Fix output in case of a corrupted trustdb.
32581 + commit bf06d04f53296f4b4b73b9360cf1571559bb2295
32582 * g10/tdbdump.c (list_trustdb): Add arg FP and change callers to pass
32584 * g10/tdbio.c (upd_hashtable): On a corrupted trustdb call
32585 list_trustdb only in verbose > 1 mode and let it dump to stderr.
32587 2015-05-29 NIIBE Yutaka <gniibe@fsij.org>
32589 scd: Fix key template of ECC.
32590 + commit e5c69e87beebe99d362ac721ce4ea6b057a30a99
32591 * scd/app-openpgp.c (build_ecc_privkey_template): Use correct value.
32593 2015-05-28 NIIBE Yutaka <gniibe@fsij.org>
32595 g10: Fix a race condition initially creating trustdb.
32596 + commit fe5c6edaed78839303d67e01e141cfc6b5de9aec
32597 * g10/tdbio.c (take_write_lock, release_write_lock): New.
32598 (put_record_into_cache, tdbio_sync, tdbio_end_transaction): Use
32599 new lock functions.
32600 (tdbio_set_dbname): Fix the race.
32601 (open_db): Don't call dotlock_create.
32603 2015-05-27 NIIBE Yutaka <gniibe@fsij.org>
32605 g10: Remove g10/signal.c.
32606 + commit 6cb18a8f975b7ff7ca79c1fb0cddcd4b66be90fb
32607 * g10/signal.c: Remove.
32608 * g10/main.h: Remove old function API.
32609 * g10/tdbio.c: Use new API, even in the dead code.
32611 2015-05-20 Werner Koch <wk@gnupg.org>
32613 agent: Cleanup caching code for command GET_PASSPHRASE.
32614 + commit 23d2ef83cda644c6a83499f9327350d3371e8a17
32615 * agent/command.c (cmd_get_passphrase): Read from the user cache.
32617 2015-05-19 Neal H. Walfield <neal@g10code.com>
32619 agent: When the password cache is cleared, also clear the ext. cache.
32620 + commit 3a9305439b75ccd4446378d4fd87da087fd9c892
32621 * agent/agent.h (agent_clear_passphrase): New declaration.
32622 * agent/call-pinentry.c (agent_clear_passphrase): New function.
32623 * agent/command.c (cmd_clear_passphrase): Call agent_clear_passphrase.
32625 agent: Modify agent_clear_passphrase to support an ext. password cache.
32626 + commit e201c20f25e7bed29088186c5f717d43047a0f4b
32627 * agent/agent.h (agent_get_passphrase): Add arguments keyinfo and
32628 cache_mode. Update callers.
32629 * agent/call-pinentry.c (agent_get_passphrase): Add arguments keyinfo
32630 and cache_mode. If KEYINFO and CACHE_MODE describe a cachable key,
32631 then send SETKEYINFO to the pinentry.
32633 2015-05-19 NIIBE Yutaka <gniibe@fsij.org>
32635 g10: detects public key encryption packet error properly.
32636 + commit c771963140cad7c1c25349bcde27e427effc0058
32637 g10/mainproc.c (proc_pubkey_enc): Only allow relevant algorithms for
32640 2015-05-15 Werner Koch <wk@gnupg.org>
32642 build: Make --disable-gpgsm work.
32643 + commit 43ea8f5d884dd108bb27d8e1610fa28802295a06
32644 * Makefile.am: Always build kbx/
32645 * g10/Makefile.am (AM_CFLAGS): Include KSBA_CFLAGS.
32647 2015-05-12 Werner Koch <wk@gnupg.org>
32650 + commit a67ead6525d7597a9e0b152c5971f6290f7912f3
32653 speedo: Add make option SELFCHECK=0 to build a new release.
32654 + commit 21b0701e2e044894c53ff59d22c5c6a172780c25
32655 * build-aux/getswdb.sh: Add option --skip-selfcheck.
32656 * build-aux/speedo.mk: Add option SELFCHECK.
32658 2015-05-11 Werner Koch <wk@gnupg.org>
32660 common: Cope with AIX problem on number of open files.
32661 + commit 987532b038a2d9b9e76c0de425ee036ca2bffa1b
32662 * common/exechelp-posix.c: Limit returned value for too hight values.
32664 gpg-connect-agent: Fix quoting of internal percent+ function.
32665 + commit 26e2eb98d3d8405b335b43c8e86deacf622cd957
32666 * tools/gpg-connect-agent.c (get_var_ext) <percent, percent+): Also
32669 agent: Add option --no-allow-external-cache.
32670 + commit d7293cb317acc40cc9e5189cef33fe9d8b47e62a
32671 * agent/agent.h (opt): Add field allow_external_cache.
32672 * agent/call-pinentry.c (start_pinentry): Act upon new var.
32673 * agent/gpg-agent.c (oNoAllowExternalCache): New.
32674 (opts): Add option --no-allow-external-cache.
32675 (parse_rereadable_options): Set this option.
32677 agent: Add strings for use by future Pinentry versions.
32678 + commit 02d5e1205489aa5027a87a64552eaf15984dc22d
32679 * agent/call-pinentry.c (start_pinentry): Add more strings.
32681 agent: Add option --debug-pinentry.
32682 + commit 14232c3870c5ef5d2fa15e8ed3f302b1ba29d25c
32683 * agent/gpg-agent.c (oDebugPinentry): New.
32684 (opts): Add --debug-pinentry.
32685 (parse_rereadable_options): Set that option.
32686 * agent/call-pinentry.c (start_pinentry): Pass option to
32689 2015-05-08 Werner Koch <wk@gnupg.org>
32691 gpg: Avoid cluttering stdout with trustdb info in verbose mode.
32692 + commit b03a2647299a6c8764a2574590cbaccdff9e497d
32693 * g10/trustdb.c (validate_keys): Call dump_key_array only in debug
32696 gpg: Fix wrong output in list mode.
32697 + commit 7039f87375b3c89d6e63837b811ed2be71c8d9db
32698 * g10/parse-packet.c (parse_gpg_control): Replace puts by es_fputs to
32701 gpg: New command --quick-adduid.
32702 + commit 64e809b791645f343feb69112baba8e2700e454b
32703 * g10/keygen.c (ask_user_id): Factor some code out to ...
32704 (uid_already_in_keyblock): new.
32705 (generate_user_id): Add arg UIDSTR. Fix leaked P.
32706 * g10/keyedit.c (menu_adduid): Add new arg uidstring. Adjust caller.
32707 (keyedit_quick_adduid): New.
32708 * g10/gpg.c (aQuickAddUid): New.
32709 (opts): Add command --quick-adduid.
32710 (main): Implement that.
32712 gpg: Add push/pop found state feature to keydb.
32713 + commit 3c439c0447f8a7468a61bbdc4c9a101ef2451dcb
32714 * g10/keydb.c (keydb_handle): Add field saved_found.
32715 (keydb_new): Init new field.
32716 (keydb_push_found_state, keydb_pop_found_state): New.
32717 * g10/keyring.c (kyring_handle): Add field saved_found.
32718 (keyring_push_found_state, keyring_pop_found_state): New.
32720 gpg: Minor code merging in keyedit.
32721 + commit b772e459fa91cdc7facd95227ebc0faba20a7003
32722 * g10/keyedit.c (fix_keyblock): Rename to fix_key_signature_order.
32723 (fix_keyblock): New. Call fix_key_signature_order and other fix
32725 (keyedit_menu): Factor code out to new fix_keyblock.
32726 (keyedit_quick_sign): Ditto. Check for primary fpr before calling
32729 2015-05-07 Werner Koch <wk@gnupg.org>
32731 agent: Minor change for 56b5c9f.
32732 + commit 436f2060721e997479a9dd5be8dfc73627dd49c9
32733 * agent/call-pinentry.c (agent_askpin): Move option setting to ...
32734 (start_pinentry): here. Fix error code check.
32736 2015-05-07 Kristian Fiskerstrand <kf@sumptuouscapital.com>
32738 dirmngr: Fix segfault in ldap engine.
32739 + commit d0d4984cfec54dee727b9e9d33d09e33c6f2e182
32740 (ks-engine-ldap.c) Fix segfault caused by missing check whether uri is
32743 2015-05-07 Neal H. Walfield <neal@g10code.com>
32745 agent: Improve support for externally cached passwords.
32746 + commit 56b5c9f94f2e55d096be585ed061ccf1c9ec0de6
32747 * agent/call-pinentry.c (PINENTRY_STATUS_PASSWORD_FROM_CACHE): New
32749 (pinentry_status_cb): Add it to *FLAGS if PASSWORD_FROM_CACHE was
32751 (agent_askpin): Pass "OPTION allow-external-password-cache" to the
32752 pinentry. Always pass SETKEYINFO to the pinentry. If there is no
32753 stable identifier, then use "--clear". If the password is incorrect
32754 and PINENTRY_STATUS_PASSWORD_FROM_CACHE is set in *PINENTRY_STATUS,
32755 then decrement PININFO->FAILED_TRIES.
32757 agent: Or in the value; don't overwrite the variable.
32758 + commit 74944330ba7229ed0cbe23cc0f573962a444bd07
32759 * agent/call-pinentry.c (pinentry_status_cb): Or in
32760 PINENTRY_STATUS_CLOSE_BUTTON; don't overwrite *FLAG.
32762 agent: Avoid magic numbers. Use more accurate names.
32763 + commit d3b5cad2346bd5747789dc62d7804fa5c15f4f3b
32764 * agent/call-pinentry.c (PINENTRY_STATUS_CLOSE_BUTTON): New constant.
32765 (PINENTRY_STATUS_PIN_REPEATED): Likewise.
32766 (close_button_status_cb): Rename from this...
32767 (pinentry_status_cb): ... to this. Use the constants.
32768 (agent_askpin): Rename local variable from close_button to
32769 pinentry_status. Use symbolic constants rather than magic numbers.
32771 2015-05-07 Werner Koch <wk@gnupg.org>
32773 gpg: Improve 'General key info' line of --card-status.
32774 + commit 874ef16e70ab750db7b153f17a7e859a0db6a2f1
32775 * g10/keylist.c (print_pubkey_info): Print either "pub" or "sub".
32777 * g10/getkey.c (get_pubkey_byfprint): Add optional arg R_KEYBLOCK.
32778 * g10/keyid.c (keyid_from_fingerprint): Adjust for change.
32779 * g10/revoke.c (gen_desig_revoke): Adjust for change.
32780 * g10/card-util.c (card_status): Simplify by using new arg. Align
32783 * g10/card-util.c (card_status): Remove not used GnuPG-1 code.
32785 gpg: Fix regression not displaying the card serial number.
32786 + commit 173b26c8f83a3c623165a96c315bf9ed4b90edcc
32787 * g10/call-agent.c (keyinfo_status_cb): Detect KEYINFO.
32789 2015-05-06 Werner Koch <wk@gnupg.org>
32791 speedo,w32: Install a native pinentry.
32792 + commit 154abaf3c97dae43ba972e4482680a287f3e5c39
32793 * build-aux/speedo.mk: Always build pinentry for w32.
32794 (speedo_pkg_pinentry_configure): Adjust to modern pinentry.
32795 * build-aux/speedo/w32/inst.nsi: Install native pinentry under the
32796 name pinentry-basic.exe.
32798 2015-05-01 NIIBE Yutaka <gniibe@fsij.org>
32800 g10: fix cmp_public_key.
32801 + commit f77fd572db658959fa40aa8c181be919e688b707
32802 * g10/free-packet.c (cmp_public_keys): Compare opaque
32803 data at the first entry of the array when it's unknown algo.
32805 2015-04-30 NIIBE Yutaka <gniibe@fsij.org>
32807 scd: PC/SC reader selection by partial string match.
32808 + commit 01a2a61bc4b34817c4216888265f65d59a33dad3
32809 * scd/apdu.c (open_pcsc_reader_direct): Partial string match.
32811 2015-04-24 Werner Koch <wk@gnupg.org>
32813 common: Remove JNLIB from boiler plate (jnlib merge).
32814 + commit 172b6193488f433a206fd88f85d8c4a5d1eb7fdf
32815 * common/README.jnlib: Remove.
32817 common: Rename log and gcc attribute macros (jnlib merge).
32818 + commit 26d7e0d7accf269c15fb4bc23e5e80580bfb7fe3
32819 * common/logging.h: Rename JNLIB_LOG_* to GPGRT_LOG_*.
32820 * common/mischelp.h: Rename JNLIB_GCC_* to GPGRT_GCC_*.
32822 common: Remove two JNLIB_ macros (jnlib merge).
32823 + commit 575230d91bba95697518da418ea0e8712f889a0f
32824 * configure.ac: Merge seperate jnlib checks.
32825 (HAVE_JNLIB_LOGGING): Remove.
32826 * common/logging.c, common/simple-pwquery.c (JNLIB_NEED_AFLOCAL):
32827 Rename to GNUPG_COMMON_NEED_AFLOCAL. Change all tests.
32829 common: Remove libjnlib-config.h (jnlib merge).
32830 + commit 17bcd087082d01c48c60ff20d7f9a40f34c6969f
32831 * common/libjnlib-config.h: Remove.
32832 * common/common-defs.h (getenv) [HAVE_GETENV]: New. From removed
32834 (getpid) [HAVE_W32CE_SYSTEM]: New. From removed header.
32835 * common/argparse.c: Include util.h and common-defs.h. Replace
32836 jnlib_ macro names for non-GNUPG builds by x* names.
32837 * common/dotlock.c: Ditto.
32838 * common/logging.c: Include util.h and common-defs.h. Replace jnlib_
32839 symbol names by x* names.
32840 * common/strlist.c: Ditto.
32841 * common/utf8conv.c: Ditto.
32842 * common/w32-reg.c: Ditto.
32843 * common/mischelp.c: Ditto. Also remove _jnlib_free.
32844 * common/stringhelp.c: Ditto.
32845 (JNLIB_LOG_WITH_PREFIX): Do not depend on this macro.
32846 * common/logging.h (JNLIB_LOG_WITH_PREFIX): Do not depend on this
32849 2015-04-23 Werner Koch <wk@gnupg.org>
32851 gpg: Move all DNS access to Dirmngr.
32852 + commit 154f3ed2bf64de801ae0f9796338a2767ec6357b
32853 * common/dns-cert.h: Move to ../dirmngr/.
32854 * common/dns-cert.c: Move to ../dirmngr/. Change args to return the
32856 * common/t-dns-cert.c: Move to ../dirmngr/.
32857 * common/pka.c, common/pka.h, common/t-pka.c: Remove.
32859 * dirmngr/server.c (data_line_cookie_write): Factor code out to
32860 data_line_write and make it a wrapper for that.
32861 (data_line_write): New.
32862 (cmd_dns_cert): New.
32863 (register_commands): Register new command.
32865 * g10/Makefile.am (LDADD): Remove DNSLIBS.
32866 * g10/call-dirmngr.c (dns_cert_parm_s): New.
32867 (dns_cert_data_cb, dns_cert_status_cb): New.
32868 (gpg_dirmngr_dns_cert): New.
32869 (gpg_dirmngr_get_pka): New.
32870 * g10/gpgv.c (gpg_dirmngr_get_pka): New dummy function.
32871 * g10/keyserver.c (keyserver_import_cert): Replace get_dns_cert by
32872 gpg_dirmngr_dns_cert.
32873 (keyserver_import_pka): Replace get_pka_info by gpg_dirmngr_get_pka.
32874 * g10/mainproc.c: Include call-dirmngr.h.
32875 (pka_uri_from_sig): Add CTX arg. Replace get_pka_info by
32876 gpg_dirmngr_get_pka.
32878 common: Minor change of hex2str to allow for embedded nul.
32879 + commit ce11cc39ea7e011040debc9339a2310a714efe7e
32880 * common/convert.c (hex2str): Set ERRNO. Return adjusted COUNT.
32882 2015-04-23 NIIBE Yutaka <gniibe@fsij.org>
32884 common: removal of t-support.c from t_jnlib_src.
32885 + commit a7264e3a6a83189a9e43edf5e99f5ac7ee42a2ab
32886 * common/Makefile.am (t_jnlib_src): Remove t-support.c.
32888 2015-04-21 Werner Koch <wk@gnupg.org>
32890 gpg: Make keyserver-option http_proxy work.
32891 + commit c4d98734c5df39f57a71f0ec1c0c80e82ff08508
32892 * g10/options.h (opt): Add field keyserver_options.http_proxy.
32893 * g10/keyserver.c (warn_kshelper_option): Add arg noisy.
32894 (parse_keyserver_options): Parse into new http_proxy field.
32895 * g10/call-dirmngr.c (create_context): Send the http-proxy option.
32897 common: Make proper use of http proxy parameter.
32898 + commit 54e55149f2af96eff08bfd6f70ef13d007fb58c7
32899 * common/http.c (is_hostname_port): New.
32900 (send_request): Fix proxy name parsing.
32902 dirmngr: Add http proxy support for keyservers.
32903 + commit a0dead5edce07838cf5ff3ec7205a3bff2a6ef70
32904 * dirmngr/dirmngr.h (server_control_s): Add field http_proxy.
32905 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Copy http_proxy value
32907 (dirmngr_deinit_default_ctrl): New.
32908 (main): Call dirmngr_deinit_default_ctrl.
32909 * dirmngr/server.c (start_command_handler): Ditto.
32910 (option_handler): Add option "http-proxy".
32911 * dirmngr/crlfetch.c (crl_fetch): Take http_proxy from CTRL.
32912 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
32913 * dirmngr/ks-engine-hkp.c (send_request): Add proxy support.
32914 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
32916 gpg: Do not use honor-keyserver-url sub-option by default.
32917 + commit 727fe4f8d7d5fc3eac0b0aa6fafa4a314686d7dc
32920 gpg: Make preferred keyservers work.
32921 + commit ae0d65f86413a82a40cf68e08aaeca405eee8c78
32922 * g10/call-dirmngr.c (dirmngr_local_s): Add field set_keyservers_done.
32923 (create_context): Move keyserver setting to ...
32924 (open_context): here.
32925 (clear_context_flags): New.
32926 (gpg_dirmngr_ks_get): Add arg override_keyserver.
32927 * g10/keyserver.c (keyserver_refresh): Improve diagnostics.
32928 (keyserver_get_chunk): Ditto. Pass OVERRIDE_KEYSERVER to ks_get.
32930 gpg: Update sub-options of --keyserver-options.
32931 + commit da1990bac71f6447d8ebd169c3b3b186e9f287d9
32932 * g10/options.h (KEYSERVER_HTTP_PROXY): New.
32933 (KEYSERVER_USE_TEMP_FILES, KEYSERVER_KEEP_TEMP_FILES): Remove.
32934 (KEYSERVER_TIMEOUT): New.
32935 * common/keyserver.h (KEYSERVER_TIMEOUT): Remove.
32936 * g10/keyserver.c (keyserver_opts): Remove obsolete "use-temp-files"
32937 and "keep-temp-files". Add "http-proxy" and "timeout".
32938 (parse_keyserver_options): Remove 1.2 compatibility option
32939 "honor-http_proxy". Remove "use-temp-files" and "keep-temp-files"
32942 2015-04-14 Werner Koch <wk@gnupg.org>
32944 agent: Send the new SETKEYINFO command to the Pinentry.
32945 + commit 2180845959839705200e3172dbafc94b70b9007f
32946 * agent/call-pinentry.c (agent_askpin): Add args keyinfo and
32947 cache_mode. Change all callers to pass (NULL,0) for them. Send
32948 SETKEYINFO command.
32949 * agent/findkey.c (unprotect): Pass the keygrip and the cache_mode for
32952 2015-04-14 NIIBE Yutaka <gniibe@fsij.org>
32954 scd: better handling of extended APDU.
32955 + commit 971d558e862db878a7310e06ed7116dbe36886ab
32956 * scd/apdu.c (send_le): Bug fix for not append Z when lc<0&&le<0.
32957 * scd/app-common.h (struct app_ctx_s): Use bit fields for flags.
32958 * scd/ccid-driver.c (CCID_MAX_BUF): New. Only for OpenPGPcard.
32959 (struct ccid_driver_s): New field of max_ccid_msglen.
32961 (parse_ccid_descriptor): Initialize max_ccid_msglen.
32962 (ccid_transceive_apdu_level): Implement sending extended APDU in
32963 chain of CCID message.
32965 2015-04-13 Werner Koch <wk@gnupg.org>
32967 gpg: Fix NULL-segv due to invalid imported data.
32968 + commit 25fce93ba19d997e234a674d5cc98df82c5b5496
32969 * g10/free-packet.c (my_mpi_copy): New.
32970 (copy_public_key, copy_signature): Use instead of mpi_copy.
32972 2015-04-13 Neal H. Walfield <neal@g10code.com>
32974 dirmngr: If LDAP is not enable, don't build the LDAP bits.
32975 + commit 5cde5bf37339cdeb0bd0a33d39477382eafebede
32976 * dirmngr/Makefile.am (dirmngr_SOURCES): Only include
32977 ks-engine-ldap.c, ldap-parse-uri.c and ldap-parse-uri.h if USE_LDAP
32979 (module_tests): Only add t-ldap-parse-uri if USE_LDAP is TRUE.
32980 * dirmngr/ks-action.c: Only include "ldap-parse-uri.h" if USE_LDAP is
32982 (ks_action_help): Don't invoke LDAP functionality if USE_LDAP is not
32984 (ks_action_search): Likewise.
32985 (ks_action_get): Likewise.
32986 (ks_action_put): Likewise.
32987 * dirmngr/server.c: Only include "ldap-parse-uri.h" if USE_LDAP is
32989 (cmd_keyserver): Don't invoke LDAP functionality if USE_LDAP is not
32992 2015-04-13 Werner Koch <wk@gnupg.org>
32994 common: Do without nested fucntions to support non-gcc.
32995 + commit 454f60399c7318fffd3de2afadd58c7a490178bd
32996 * common/t-stringhelp.c (test_strsplit): Remove nested function.
32998 2015-04-11 Werner Koch <wk@gnupg.org>
33001 + commit b1e1959d59a12b53c016ca9c95aee3a62c0bfc00
33004 2015-04-11 Yuri Chornoivan <yurchor@ukr.net>
33006 po: Update Ukrainian translation.
33007 + commit 896f438967b66b4836419aa737c706ced6b6454a
33010 2015-04-11 Ineiev <ineiev@gnu.org>
33012 po: Update and review Russian translation.
33013 + commit b69d7064f30c38ffe18e71de6a0fc14b5da0452f
33016 2015-04-10 Werner Koch <wk@gnupg.org>
33018 dirmngr,w32: Make it build for Windows.
33019 + commit c8bb5000d4c86a055348dc08352f573c599743a7
33020 * dirmngr/Makefile.am (t_common_ldadd): Add missing libs.
33022 Remove obsolete directories from AM_CPPFLAGS.
33023 + commit 67158ff155ef52fd54a6bbe680551c0e12b31e69
33026 dirmngr,w32: Replace functions not available under Windows.
33027 + commit 0fb224c2c5e0c6770d4a6044d62d84f6bbc1b26b
33028 * dirmngr/ks-engine-ldap.c (extract_attributes): Replace isoptime and
33031 common: Add new function gnupg_gmtime.
33032 + commit 5d60c7f7e05a06e46e23bafe61cef09ad32aa998
33033 * common/gettime.c (gnupg_gmtime): New.
33034 (gnupg_get_isotime): Use it. Also take care of an gmtime_t returning
33037 common: Add new function isodate_human_to_tm.
33038 + commit f6670100b7a15b2071c2e4062f5c5a678f2a30f6
33039 * common/gettime.c (isotime_human_p): Add arg date_only.
33040 (isodate_human_to_tm): New.
33041 * common/t-gettime.c (test_isodate_human_to_tm): New.
33042 (main): Call new test.
33044 dirmngr,w32: Avoid name clash with existing function.
33045 + commit 6ad95fe6f1f130c8f6d139a9bd57fc4a0d38292b
33046 * dirmngr/ks-engine-ldap.c (ldap_connect): Rename to my_ldap_connect.
33048 gpgparsemail: Fix last commit (3f2bdac)
33049 + commit 9433661419043431a6cfc7d84c8450e0b2f6c353
33050 * tools/rfc822parse.c (parse_field): Replace break by goto.
33052 2015-04-09 Werner Koch <wk@gnupg.org>
33054 gpgparsemail: Fix case of zero length continuation lines.
33055 + commit 3fbeba64a8bfb2b673230c124a3d616b6568fd2f
33056 * tools/rfc822parse.c (parse_field): Loop after continuation line.
33058 2015-04-08 Werner Koch <wk@gnupg.org>
33060 sm: Fix certificate lookup in dirmngr cache.
33061 + commit 6619ead2cfd2abcb95b66dc70622fdeef624fb8a
33062 * sm/call-dirmngr.c (get_cached_cert): Fix typo in LOOKUP command.
33064 2015-04-06 Werner Koch <wk@gnupg.org>
33066 gpg: Print the user id in --fast-list-mode.
33067 + commit c2383407bba5eefea486464a31e02846124c9da5
33068 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Change.
33070 gpg: Prepare to pass additional context to the list functions.
33071 + commit 67a58118ab6171c0cf28b65a39973062690d1313
33072 * g10/keylist.c (struct sig_stats): Rename to keylist_context and add
33074 (keylist_context_release): New.
33075 (list_all): Set listctx.check_sigs and call release func.
33077 (locate_one): Ditto.
33078 (list_keyblock_print): Use .check_sigs field. Repalce arg opaque by
33080 (list_keyblock): Ditto. Make static.
33081 (list_keyblock_direct): New.
33082 * g10/keygen.c (do_generate_keypair): Replace list_keyblock by
33083 list_keyblock_direct.
33085 gpg: Merge duplicated code for get_user_id et al.
33086 + commit f577d5c1a747d673fa1d5c012ce3e3b78b699c6a
33087 * g10/getkey.c (get_user_id_string): Add args mode and r_LEN.
33088 (get_user_id_string_native): Add new args.
33089 (get_long_user_id_string, get_user_id): Rewrite using
33090 get_user_id_string.
33092 gpg: Add new option --debug-iolbf.
33093 + commit c581ed717ad2cc4be90c46253baa44a0d3ba5b80
33094 * g10/gpg.c (oDebugIOLBF): new.
33095 (opts): Add --debug-iolbf.
33096 (main): Set option.
33098 Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG.
33099 + commit 24a75201da6be72edf85b96dbc0c01c747d02c6a
33100 * g10/options.h (DBG_EXTPROG_VALUE): Separate from DBG_IPC_VALUE.
33102 Fix use of DBG_CACHE and DBG_LOOKUP.
33103 + commit 2f099eb62ac6491675bbcccaca4e076b2d8e7ea0
33104 * dirmngr/dirmngr.h (DBG_LOOKUP_VALUE): Change to 8192.
33105 * g10/options.h (DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
33106 * g10/getkey.c: Use DBG_LOOKUP instead of DBG_CACHE at most places.
33108 gpg: Rename a debug macro.
33109 + commit 4de8a58e44262a25564e2acef8c8865d1755982e
33110 * g10/options.h (DBG_CIPHER_VALUE): Rename to DBG_CRYPTO_VALUE.
33111 (DBG_CIPHER): Rename to DBG_CRYPTO.
33113 2015-04-05 Werner Koch <wk@gnupg.org>
33115 gpg: Fix DoS while parsing mangled secret key packets.
33116 + commit d901efcebaefaf6eae4a9b9aa8f0c2c055d3518a
33117 * g10/parse-packet.c (parse_key): Check PKTLEN before calling mpi_read
33120 2015-04-03 NIIBE Yutaka <gniibe@fsij.org>
33122 g10: Fix keytocard.
33123 + commit f82c4a6d0d76e716b6a7b22ca964fa2da1f962a0
33124 g10/call-agent.h (agent_scd_learn): Add FORCE option.
33125 g10/call-agent.c (agent_scd_learn): Implement FORCE option.
33126 g10/keygen.c (gen_card_key): Follow the change of option.
33127 g10/card-util.c (change_pin, card_status, factory_reset): Likewise.
33128 g10/keyedit.c (keyedit_menu): Update private key storage by
33131 agent: Add --force option for LEARN.
33132 + commit 4ffadb74b3ada8a5d69ef8d87f4326df9bd97e97
33133 * agent/command.c (cmd_learn): Handle --force option.
33134 (cmd_keytocard): Don't update key storage file.
33135 * agent/agent.h (agent_handle_learn): Add FORCE.
33136 * agent/learncard.c (agent_handle_learn): Implement FORCE to update
33139 2015-03-31 Neal H. Walfield <neal@g10code.com>
33141 dirmngr: Don't use alloca.
33142 + commit d0ff2ee04187fbedacbe4d3884ee75d957a0b8c6
33143 * dirmngr/ks-engine-ldap.c (ks_ldap_put): Replace use of alloca with
33146 dirmngr: Simplify truncation of long strings in debug code.
33147 + commit 802eec0ca49b92104c92f18c9a6a04c34de74168
33148 * dirmngr/ks-engine-ldap.c (modlist_dump): Simplify truncation of long
33151 dirmngr: Use a better error code.
33152 + commit 7f6d7948c1e56e09c1bdaa5143e1b5558c4376dd
33153 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): On error, return
33154 GPG_ERR_GENERAL, not GPG_ERR_ASS_GENERAL.
33156 dirmngr: Better encapsulate the keyservers variable.
33157 + commit 348c520040a31f5c322183c0654a34978e2baf6f
33158 * dirmngr/dirmngr.h (struct server_control_s): Move field keyservers
33160 * dirmngr/server.c (struct server_local_s): ... to here. Update
33162 * dirmngr/ks-action.h (ks_action_resolve): Add argument keyservers.
33163 (ks_action_search): Likewise.
33164 (ks_action_get): Likewise.
33165 (ks_action_put): Likewise.
33166 * dirmngr/ks-action.c (ks_action_resolve): Add argument keyservers.
33167 Use it instead of ctrl->keyservers.
33168 (ks_action_search): Likewise.
33169 (ks_action_get): Likewise.
33170 (ks_action_put): Likewise.
33172 2015-03-28 Neal H. Walfield <neal@g10code.de>
33174 gpg: Only use the last specified keyserver.
33175 + commit f26ba14028d34845ae10aae552b90681907e377d
33176 * g10/gpg.c (main): Only use the last specified keyserver.
33178 2015-03-25 Werner Koch <wk@gnupg.org>
33180 dirmngr: Fix resource leaks and check rare errors.
33181 + commit bec10ae4b5a870303c800cdf3cd906044613fc2d
33182 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Fix resource
33184 (ks_ldap_search): Check error from es_fopenmem. Use LDAP_ERR where
33186 (modlist_dump): Check error from es_fopenmem.
33187 (uncescape): s/int/size_t/. Use existing macros.
33188 (extract_attributes): Use existing trim function.
33189 (ks_ldap_put): Do not segv on error from modlist_dump.
33191 dirmngr: Minor cleanups.
33192 + commit 6c701af121782c2feb4ee51e559a7420df00471f
33193 * dirmngr/ks-engine-ldap.c [__riscos__]: Remove doubled util.h.
33194 (ldap_to_gpg_err): s/GPG_ERR_GENERAL/GPG_ERR_INTERNAL/.
33195 (tm2ldaptime): Use snprintf.
33196 (ldap_connect): Get error code prior to log_error and and use modern
33197 function. Use xfree, xtrustrdup etc.
33198 (modlist_lookup): Use GNUPG_GCC_A_USED.
33199 (modlist_free): Use xfree.
33201 common: Add macro GNUPG_GCC_A_USED.
33202 + commit 99ef9cd7f589b51921bfbe8d52735c104ef260e3
33203 * common/util.h (GNUPG_GCC_A_USED): New.
33205 sm: Change default algos to SHA256 (CSR) and AES128 (bulk encryption).
33206 + commit 1e4d8ddbe3ad7ee8f1c1d1798694d91f792776c0
33207 * sm/certreqgen.c (create_request): Change default hash algo.
33208 * sm/gpgsm.c (DEFAULT_CIPHER_ALGO): Change default bulk cipher algo.
33210 2015-03-24 Werner Koch <wk@gnupg.org>
33212 gpg,w32: Handle forward slash in --keyring option.
33213 + commit bdd22e3a0846d38a0b6cdb822476ad2f15d03455
33214 * g10/keydb.c (keydb_add_resource): Allow forward slash under Windows.
33216 2015-03-23 Neal H. Walfield <neal@g10code.de>
33218 Improve documentation for ks_hkp_get.
33219 + commit 7a56b6b3aa8b7a07bd80a3fcd5114bd1af359fa3
33220 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Improvement documentation.
33222 Improve documenation of http_parse_uri.
33223 + commit 00a16cf49336ee0b4ce21eb05a79db955af053e0
33224 * common/http.c (http_parse_uri): Improve documentation.
33226 Add support to talking to LDAP key servers.
33227 + commit 51341badb623927f2a358588c725a356fc77dbe7
33228 * g10/call-dirmngr.c (record_output): New function.
33229 (ks_put_inq_cb): Use it here to generate a --with-colons like output
33230 instead of a custom format.
33231 * dirmngr/ks-action.c: Include "ldap-parse-uri.h".
33232 (ks_action_help): If the provided URI is an LDAP URI, then use
33233 ldap_parse_uri to parse. Call ks_ldap_help.
33234 (ks_action_search): If passed an LDAP URI, then call ks_ldap_search.
33235 (ks_action_get): Likewise.
33236 (ks_action_put): Likewise. Also, change data from a 'const void *' to
33237 a 'void *' and add info and infolen parameters. Add note that
33238 function may modify DATA.
33239 * dirmngr/ks-action.h (ks_action_put): Update declaration accordingly.
33240 * dirmngr/server.c: Include "ldap-parse-uri.h".
33241 (cmd_keyserver): If ITEM->URI is an LDAP URI, parse it using
33243 (hlp_ks_put): Improve documentation.
33244 (cmd_ks_put): Also pass info and infolen to ks_action_put. Improve
33246 * dirmngr/ks-engine.h (ks_ldap_help): New declaration.
33247 (ks_ldap_search): Likewise.
33248 (ks_ldap_get): Likewise.
33249 (ks_ldap_put): Likewise.
33250 * dirmngr/ks-engine-ldap.c: New file.
33251 * dirmngr/Makefile.am (dirmngr_SOURCES): Add ks-engine-ldap.c,
33252 ldap-parse-uri.c and ldap-parse-uri.h.
33253 (dirmngr_LDADD) [USE_LDAP]: Add $(ldaplibs).
33255 Import _gpgme_parse_timestamp from gpgme as parse_timestamp.
33256 + commit 81e83060856f02f6cfc7b48f8032e0cf14fc6c68
33257 * common/gettime.h (parse_timestamp): New declaration.
33258 * common/gettime.c (_win32_timegm): New function imported from
33259 gpgme/src/conversion.c:_gpgme_timegm.
33260 (parse_timestamp): New function imported from
33261 gpgme/src/conversion.c:_gpgme_parse_timestamp.
33263 Move copy_stream function to misc.c.
33264 + commit 9e79a15f74c428624b0049a3f6a077c1bc7c731d
33265 * dirmngr/ks-action.c (copy_stream): Move function from here...
33266 * dirmngr/misc.c (copy_stream): ... to here and drop the static
33268 * dirmngr/misc.h (copy_stream): Add declaration.
33270 Move armor_data to misc.c.
33271 + commit 63552852bf191985b4b55aa524bc397c5b1d1515
33272 * dirmngr/ks-engine-hkp.c (armor_data): Move function from here...
33273 * dirmngr/misc.c (armor_data): ... to here and drop static qualifier.
33274 * dirmngr/misc.h: New declaration.
33276 Add new LDAP utility functions.
33277 + commit 1a75b7c39f0a84f518711438565645a34fb2673f
33278 * dirmngr/Makefile.am (module_tests): New variable.
33279 (noinst_PROGRAMS): New primary. Set it to $(module_tests).
33280 (TESTS): New variable. Set it to $(module_tests).
33281 (t_common_src): New variable.
33282 (t_common_ldadd): Likewise.
33283 (t_ldap_parse_uri_SOURCES): New primary.
33284 (t_ldap_parse_uri_LDADD): Likewise.
33285 * dirmngr/ldap-parse-uri.c: New file.
33286 * dirmngr/ldap-parse-uri.h: Likewise.
33287 * dirmngr/t-ldap-parse-uri.c: Likewise.
33288 * dirmngr/t-support.h: Likewise.
33290 Add new function uri_query_lookup.
33291 + commit e23b3ba5ffd3134a72da176a039e4d6c4f3ff595
33292 * common/http.h (uri_query_lookup): New declaration.
33293 * common/http.c (uri_query_lookup): The corresponding implementation.
33295 Add new function strlist_find.
33296 + commit 79907ad256f5b84f36cbebdc92e5a05d9e266557
33297 * common/strlist.h (strlist_find): New declaration.
33298 * common/strlist.c (strlist_find): New function.
33300 common: Add new helper function, strsplit.
33301 + commit b18ffcb81a3839dbf09603d70ebb8b80f65892d3
33302 * common/stringhelp.h (strsplit): New declaration.
33303 * common/stringhelp.c (strsplit): New function.
33304 * common/t-stringhelp.c (test_strsplit): New function.
33305 (main): Call it here.
33307 2015-03-20 Werner Koch <wk@gnupg.org>
33309 gpg: Consider a mailbox only userid in mail search mode.
33310 + commit bebab54027d8c63574a2680c60481cfe9b88c240
33311 * kbx/keybox-search.c: Include mbox-util.h.
33312 (blob_cmp_mail): Improve OpenPGP uid parsing.
33314 common: Add function is_valid_mailbox_mem.
33315 + commit a0eb2e4e8cef9ca6a5dfbae6440fa6cd583d0805
33316 * common/mbox-util.c (mem_count_chr): New.
33318 (has_invalid_email_chars): Change args to work on a buffer.
33319 (is_valid_mailbox_mem): New.
33320 (is_valid_mailbox): Rewrite to use is_valid_mailbox_mem.
33322 gpg: Find keys using mail addresses with garbage after the '>'
33323 + commit 783a4a98378fa1aa222d5cb7427dd37151feb08b
33324 * kbx/keybox-search.c (blob_cmp_mail): Stop comparing at the '>'.
33326 common: Fix syntax error when building with gnutls.
33327 + commit 5136e39c6466de90697153ea253c4b540c1f7d1a
33328 * common/http.c (send_request): Add missing comma.
33330 2015-03-19 Werner Koch <wk@gnupg.org>
33332 gpg: Emit status line NEWSIG before signature verification starts.
33333 + commit e7ddaad0fd2c8774a1d3367adfaa68014eaf65de
33334 * g10/mainproc.c (check_sig_and_print): Emit STATUS_NEWSIG.
33336 agent: Compute correct MPI length header for protected ECC keys.
33337 + commit cf83ff01fce3ddcbde6d97dffa0db6f277588e25
33338 * agent/cvt-openpgp.c (apply_protection): Strip leading zeroes from
33339 opaque MPIs to comply with the OpenPGP spec.
33341 hkps: Fix host name verification when using pools.
33342 + commit dc10d466bff53821f23d2cb4814c259d40c5d9c5
33343 * common/http.c (send_request): Set the requested for SNI.
33344 * dirmngr/ks-engine-hkp.c (map_host): Return the poolname and not
33345 the selecting a host.
33347 Define replacement error codes from libgpg-error 1.19.
33348 + commit 28bb3ab686c1c994f67a92b6846b3726c58a0bc3
33349 * common/util.h: Add GPG_ERR_LDAP codes for libgpg-error < 1.19.
33351 2015-03-17 Andre Heinecke <aheinecke@intevation.de>
33353 gpgtar: Fix extracting files with !(size % 512)
33354 + commit 6cbbb0bec98e1acefc4c7163cc41a507469db920
33355 * tools/gpgtar-extract.c (extract_regular): Handle size multiples
33358 2015-03-17 Werner Koch <wk@gnupg.org>
33360 common: Add feature to ease using argparse's usage().
33361 + commit 9078b75a73600fc6b7b5502ceee8de032bb9c446
33362 * common/argparse.c (show_help): Take care of flag value
33365 common: Allow standalone build of argparse.c.
33366 + commit eb5f2c0af6691229300ac120ee44815cb27ed38e
33367 * common/argparse.h: Remove types.h - not required.
33368 * common/argparse.c: Change to allow standalone use.
33370 2015-03-16 Werner Koch <wk@gnupg.org>
33372 gpg: Create all MPIs with RFC-4880 correct length headers.
33373 + commit ab17f7b6c392782718f57eaea94fc18a0ff49389
33374 * g10/build-packet.c (gpg_mpi_write): Strip leading zeroes.
33376 gpg: Allow printing of MPI values in --list-mode.
33377 + commit bcc8250bc5b9a357c6d1444f03e334edec573ede
33378 * g10/parse-packet.c (set_packet_list_mode): Set mpi_print_mode.
33379 * g10/misc.c (mpi_print): Do not print an extra leading zero.
33381 gpg: Fix broken write of opaque MPI length header.
33382 + commit 8bc1debfefb7cd4b0be724317793d59dea37d677
33383 * g10/build-packet.c (gpg_mpi_write): Use a char array for the length.
33385 2015-03-15 Werner Koch <wk@gnupg.org>
33387 gpg: Fix possible dead code elimination.
33388 + commit 1a9f13bc663daa75c5009f6a0bf7d7483f12cce0
33389 * g10/encrypt.c: Change condition for detecting a real file.
33391 g13: Fix pointer wrap check.
33392 + commit 4bc3a2e954afc2ba7dbe79ba5f740184b7d4cd73
33393 * g13/utils.c (find_tuple, next_tuple): Cast pointer to size_t before
33394 doing an overflow check.
33396 agent: Remove useless conditions in command.c.
33397 + commit 3a35c9740ab792068ec4b3732ecfaa17bf4fc7f0
33398 * agent/command.c (cmd_setkeydesc): Remove NULL check.
33399 (cmd_get_passphrase): Ditto.
33400 (cmd_clear_passphrase): Ditto.
33401 (cmd_get_confirmation): Ditto.
33402 (cmd_getval): Ditto.
33403 (cmd_putval): Ditto.
33405 agent: Fix length test in sshcontrol parser.
33406 + commit 3529dd8bb5bafc4e02915648d5f409bd27a9cc37
33407 * agent/command-ssh.c (ssh_search_control_file): Check S before
33410 agent: Remove useless conditions.
33411 + commit 95415bdec77a608e6052ba3e2a5d857a8e8f7689
33412 * agent/genkey.c (agent_ask_new_passphrase): Remove useless condition.
33413 * agent/command-ssh.c (ssh_identity_register): Ditto.
33415 gpg: Remove useless condition.
33416 + commit c59b410cf1d5676de7061e5a183c01227aa8e760
33417 * g10/keylist.c (list_keyblock_colon): Remove useless condition (PK).
33418 (list_keyblock_print): Likewise.
33420 scd: Fix possible NULL deref in apdu.c.
33421 + commit ef0a3abf7305133d071bf1a94a7f461082f9a9aa
33422 * scd/apdu.c (control_pcsc_direct): Take care of BUFLEN being NULL.
33423 (control_pcsc_wrapped): Ditto.
33425 common: Make openpgp_oid_to_str more robust.
33426 + commit 35db798c2df7f31b52a9dd9d55ea60ae1f325be9
33427 * common/openpgp-oid.c (openpgp_oid_to_str): Take care of
33428 gcry_mpi_get_opaque returning NULL. Remove useless condition !BUF.
33430 2015-03-11 Werner Koch <wk@gnupg.org>
33432 agent: Improve error reporting from Pinentry.
33433 + commit efde50f92af241d8357db83e280a6ece62f6397f
33434 * agent/call-pinentry.c (unlock_pinentry): Add error logging. Map
33435 error source of uncommon errors to Pinentry.
33437 2015-03-10 Werner Koch <wk@gnupg.org>
33439 gpg: Change --print-pka-records into an option.
33440 + commit 7b5b52f3268b093eebbac3f199fb69bf246d9cd1
33441 * g10/gpg.c (aPrintPKARecords): Rename to oPrintPKARecords and do not
33442 use it as a command.
33443 * g10/keylist.c (list_keyblock): List PKA rceords also for secret
33446 gpg: Add --list-gcrypt-config and "curve" item for --list-config.
33447 + commit 14af2be022ccaf826db048fc16959d0222ff1134
33448 * common/openpgp-oid.c (curve_supported_p): New.
33449 (openpgp_enum_curves): New.
33450 * common/t-openpgp-oid.c (test_openpgp_enum_curves): New.
33451 (main): Add option --verbose.
33452 * g10/gpg.c (opts): Add --list-gcrypt-config.
33453 (list_config): Add items "curve" and "curveoid". Remove unused code.
33455 2015-03-09 NIIBE Yutaka <gniibe@fsij.org>
33457 scd: fix for 64-bit arch.
33458 + commit bb5a1b7c738d74d5b46340ec7b50000a2d343ca9
33459 * agent/pksign.c (agent_pksign_do): Use int.
33460 * scd/app-openpgp.c (get_public_key): Likewise.
33462 2015-03-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
33464 gpg: avoid chatter about trustdb when --quiet.
33465 + commit 82146af85b65498a69b28913593dc1ffeb6b6fed
33466 * g10/trustdb.c (tdb_check_trustdb_stale): avoid log_info() when
33469 2015-02-26 Werner Koch <wk@gnupg.org>
33471 gpg: Lowercase mailbox for PKA lookups.
33472 + commit c071be698efadef1ad01fd3d329d1b486a372927
33473 * common/stringhelp.c (ascii_strlwr): New.
33474 * common/mbox-util.c (mailbox_from_userid): Downcase result.
33476 gpg: Fix memory leak due to PKA lookup.
33477 + commit 91baea2dcde6c1e5ca9e8fa7020d9ab4551d1bca
33478 * g10/keyserver.c (keyserver_import_pka): Move the xfree.
33480 2015-02-25 Werner Koch <wk@gnupg.org>
33482 gpg: Switch to a hash and CERT record based PKA system.
33483 + commit 2fc27c8696f5cf2ddf3212397ea49bff115d617b
33484 * common/dns-cert.c (get_dns_cert): Make r_key optional.
33485 * common/pka.c: Rewrite for the new hash based lookup.
33486 * common/t-pka.c: New.
33487 * configure.ac: Remove option --disable-dns-pka.
33488 (USE_DNS_PKA): Remove ac_define.
33489 * g10/getkey.c (parse_auto_key_locate): Always include PKA.
33491 common: Allow requesting a specific certtype with get_dns_cert()
33492 + commit af60152a4632ef26ca950a424429b15b6c69038d
33493 * common/dns-cert.c (get_dns_cert): Add arg want_certtype. Change all
33495 (CERTTYPE_): Move constants to ...
33496 * common/dns-cert.h: here as DNS_CERTTYPE_.
33498 Move new mailbox.c source file to common/.
33499 + commit 9913253610bac69e9503800e85696491e018e327
33500 * g10/mailbox.c: Move to ...
33501 * common/mbox-util.c: new file.
33502 * common/mbox-util.h: New. Include where needed.
33503 * g10/t-mailbox.c: Move to ...
33504 * common/t-mbox-util.c: new file.
33506 2015-02-24 Werner Koch <wk@gnupg.org>
33508 gpg: Add command --print-pka-records.
33509 + commit e2d93402801a2cb822c723e891fd98233fdb3fd5
33510 * g10/gpg.c (main): Add command --print-pka-records.
33511 * g10/options.h (struct opt): Add field "print_pka_records".
33512 * g10/keylist.c (list_keyblock_pka): New.
33513 (list_keyblock): Call it if new option is set.
33514 (print_fingerprint): Add mode 10.
33516 gpg: Add function to extract the mailbox.
33517 + commit 93fa3d5c1760f3fee5412fb29d58fbd60db16ea9
33518 * g10/misc.c (has_invalid_email_chars, is_valid_mailbox)
33519 (is_valid_user_id): Move to ...
33520 * g10/mailbox.c: new file.
33521 (string_has_ctrl_or_space, has_dotdot_after_at): New.
33522 (has_invalid_email_chars): New.
33524 * g10/t-mailbox.c: New.
33525 * g10/Makefile.am (module_tests): Add t-mailbox.
33526 (t_mailbox_SOURCES, t_mailbox_LDADD): New.
33528 2015-02-23 Werner Koch <wk@gnupg.org>
33530 gpg: Add option to print fingerprints in ICAO spelling.
33531 + commit ae09515b9d3aae653b62a32ea5b4a9b9e557fc52
33532 * g10/gpg.c: Add option --with-icao-spelling.
33533 * g10/options.h (struct opt): Add with_icao_spelling.
33534 * g10/keylist.c (print_icao_hexdigit): New.
33535 (print_fingerprint): Print ICAO spelling.
33537 gpg: Skip legacy keys while searching keyrings.
33538 + commit a8116aacd91b7e775762a62c268fab6cc3c77438
33539 * g10/getkey.c (search_modes_are_fingerprint): New.
33540 (lookup): Skip over legacy keys.
33542 common: Fix regression due to commit 2183683b.
33543 + commit d9f6eea6115df7959564123eb99d633ce5bba42e
33544 * common/dns-cert.c (get_dns_cert): Remove cruft.
33546 2015-02-19 Werner Koch <wk@gnupg.org>
33548 gpg: Replace remaining uses of stdio by estream.
33549 + commit d2a70fd8348d6c11d1960caf2afe0701833dad6a
33550 * g10/sign.c (sign_file): Use log_printf instead of stderr.
33551 * g10/tdbdump.c (export_ownertrust): Use estream fucntions.
33552 (import_ownertrust): Ditto.
33553 * g10/tdbio.c (tdbio_dump_record): Ditto. Change arg to estream_t.
33555 gpg: Fix segv due to NULL value stored as opaque MPI.
33556 + commit 76c8122adfed0f0f443cce7bda702ba2b39661b3
33557 * g10/build-packet.c (gpg_mpi_write): Check for NULL return from
33558 gcry_mpi_get_opaque.
33559 (gpg_mpi_write_nohdr, do_key): Ditto.
33560 * g10/keyid.c (hash_public_key): Ditto.
33562 2015-02-12 Werner Koch <wk@gnupg.org>
33564 scd: Fix regression in 2.1.2 (due to commit 2183683)
33565 + commit 07a71da479daaac43b8c5b1034a1e66f96bdbc48
33566 * scd/apdu.c (pcsc_vendor_specific_init): Replace use of
33567 bufNN_to_uint by direct code.
33569 2015-02-12 Andre Heinecke <aheinecke@intevation.de>
33571 dirmngr: Initialize cache from sysconfig dir.
33572 + commit 070d7bf940efa60db2b0734273b9b3736d18338a
33573 * dirmngr/certcache.c (cert_cache_init): Load certificates
33574 from sysconfig dir instead of the homeidr.
33575 * dirmngr/dirmngr.c (main): Removed parsing of obsolete
33576 homedir_data option.
33577 * dirmngr/dirmngr.h (opt): Removed homedir_data.
33578 * doc/dirmngr.texi: Update and clarify certs directory doc.
33580 2015-02-11 Werner Koch <wk@gnupg.org>
33583 + commit fc17562cc4f8d531ae7f0887cf2a96dcc224b021
33586 dirmngr: Avoid warning about unused function.
33587 + commit 8219c87c301ec669f07528e8d8108655f7b705be
33588 * dirmngr/dirmngr.c (my_gnutls_log): Build only if gnutls is used.
33590 build: Update standard build-aux files.
33591 + commit 81e93e251e52e427a29556de75640c7933bb5aad
33594 Use inline functions to convert buffer data to scalars.
33595 + commit 2183683bd633818dd031b090b5530951de76f392
33596 * common/host2net.h (buf16_to_ulong, buf16_to_uint): New.
33597 (buf16_to_ushort, buf16_to_u16): New.
33598 (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New.
33600 2015-02-09 Werner Koch <wk@gnupg.org>
33602 gpg: Prevent an invalid memory read using a garbled keyring.
33603 + commit f0f71a721ccd7ab9e40b8b6b028b59632c0cc648
33604 * g10/keyring.c (keyring_get_keyblock): Whitelist allowed packet
33606 * g10/keydb.c (parse_keyblock_image): Ditto.
33608 gpg: Fix a NULL-deref in export due to invalid packet lengths.
33609 + commit 0835d2f44ef62eab51fce6a927908f544e01cf8f
33610 * g10/build-packet.c (write_fake_data): Take care of a NULL stored as
33613 gpg: Fix a NULL-deref due to empty ring trust packets.
33614 + commit 39978487863066e59bb657f5fe4e8baab510da7e
33615 * g10/parse-packet.c (parse_trust): Always allocate a packet.
33617 2015-02-04 Werner Koch <wk@gnupg.org>
33619 gpg-agent: Use "pinentry-basic" as fallback.
33620 + commit 0de5c6a9a783ed9dc69cecbf34eadcaace4be243
33621 * common/homedir.c (get_default_pinentry_name): New.
33622 (gnupg_module_name): Use that for the default pinentry.
33623 (gnupg_module_name_flush_some): New.
33624 * agent/gpg-agent.c (agent_sighup_action): Flush some module names.
33625 * agent/call-pinentry.c (start_pinentry): Do not modify
33626 opt.pinentry_program.
33628 w32: Add manifest to gpg.
33629 + commit 05428d12561bc7eb872a81444918dfe706477a41
33630 * g10/gpg.w32-manifest.in: New.
33631 * g10/gpg-w32info.rc: Add manifest.
33632 * g10/Makefile.am (EXTRA_DIST): Add manifest.
33633 (gpg-w32info.o): Depend on manifest.
33634 * configure.ac (BUILD_VERSION): New.
33635 (AC_CONFIG_FILES): Add manifest.
33637 2015-02-03 Werner Koch <wk@gnupg.org>
33639 Update copyright years.
33640 + commit 3f67426a89bf4b37e1d2662fddc3eb4fa474c4ad
33641 * common/w32info-rc.h.in (W32INFO_COMPANYNAME): Change to "The GnuPG
33644 2015-02-02 Werner Koch <wk@gnupg.org>
33646 w32: Change default Windows install dir and add bin to PATH.
33647 + commit 8872657b2a52dd9698224b80e5672e23c5405eda
33648 * build-aux/speedo.mk (WITH_GUI): New macro. The Windows installer is
33649 now build by default without any GUI stuff.
33650 * build-aux/speedo/w32/inst.nsi: Change standard installation
33652 (AddToPath, un.RemoveFromPath): New.
33653 (gnupginst): Add bin directory to the PATH.
33655 2015-02-01 Werner Koch <wk@gnupg.org>
33657 w32: Allow for Unicocde installation directory.
33658 + commit 616633b7713081ecc39419494879947cc7f163d0
33659 * common/homedir.c (w32_rootdir): Use Unicode fucntion not only for
33662 2015-01-30 Joshua Rogers <git@internot.info>
33664 kbx: Fix resource leak.
33665 + commit 7db6c82cec49b7c56c403a8ea98364086baf75f3
33666 * kbx/keybox-update.c (blob_filecopy): Fix resource leak. On error
33667 return, 'fp' and 'newfp' was never closed.
33669 2015-01-29 Werner Koch <wk@gnupg.org>
33671 agent: Fix use of imported but unprotected openpgp keys.
33672 + commit 6ab0fac575a8b04152a199cb300a08436b096753
33673 * agent/agent.h (PRIVATE_KEY_OPENPGP_NONE): New.
33674 * agent/command.c (do_one_keyinfo): Implement it.
33675 * agent/findkey.c (agent_key_from_file): Ditto.
33676 (agent_key_info_from_file): Ditto.
33677 (agent_delete_key): Ditto.
33678 * agent/protect.c (agent_private_key_type): Add detection for openpgp
33681 2015-01-29 NIIBE Yutaka <gniibe@fsij.org>
33683 po: Update Japanese Translation.
33684 + commit 6c368533f5211bed62e8638f522cef65c7ba4b87
33687 2015-01-28 Werner Koch <wk@gnupg.org>
33689 gpg: Limit the size of key packets to a sensible value.
33690 + commit 382ba4b137b42d5f25a7e256bb7c053ee5ac7b64
33691 * g10/parse-packet.c (MAX_KEY_PACKET_LENGTH): New.
33692 (MAX_UID_PACKET_LENGTH): New.
33693 (MAX_COMMENT_PACKET_LENGTH): New.
33694 (MAX_ATTR_PACKET_LENGTH): New.
33695 (parse_key): Limit the size of a key packet to 256k.
33696 (parse_user_id): Use macro for the packet size limit.
33697 (parse_attribute): Ditto.
33698 (parse_comment): Ditto.
33700 gpg: Fix buffering problem in --list-config.
33701 + commit d8eea25b8b7becbfa3f059be6f5966a2f1aa7112
33702 * g10/gpg.c (list_config): Replace print_sanitized_string2 by
33703 es_write_sanitized.
33705 * common/stringhelp.c (print_sanitized_buffer2): Remove.
33706 (print_sanitized_buffer, print_sanitized_utf8_buffer): Remove.
33707 (print_sanitized_utf8_buffer, print_sanitized_utf8_string): Remove.
33708 (print_sanitized_string): Remove.
33710 * sm/certdump.c (print_dn_part, print_dn_parts): Remove arg FP.
33711 (pretty_print_sexp, gpgsm_print_name2, gpgsm_print_name): Remove.
33713 Add a hook to be called right after main.
33714 + commit 0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181
33715 * common/init.c (early_system_init): New stub function.
33717 gpg: Allow predefined names as answer to the keygen.algo prompt.
33718 + commit b1d5ed6ac842469afcb84868d0f6641dc286a6c7
33719 * g10/keygen.c (ask_algo): Add list of strings.
33721 agent: Add some extra robustness to extract_private_key.
33722 + commit 795965437732e50f6216d7f5db0e6174e90548a9
33723 * agent/cvt-openpgp.c (extract_private_key): Add arg "arraysize".
33724 Make sure that R_FLAGS and R_CURVE are set to NULL.
33726 2015-01-28 NIIBE Yutaka <gniibe@fsij.org>
33728 scd: Fix varargs call for 64-bit arch on ECC keys.
33729 + commit f6d3c6e5263d84b94ebe13df9ff39b02109a2acb
33730 * scd/app-openpgp.c (store_fpr): Remove CARD_VERSION from the
33732 (rsa_writekey): Follow the change.
33733 (do_genkey): Likewise.
33734 (ecc_writekey): Likewise. Cast to size_t.
33736 2015-01-27 Werner Koch <wk@gnupg.org>
33738 gpg: Fix segv introduced to commit 4d7c9b0.
33739 + commit 6eebc56687935f3e993eac374b9f4cc5ad3bcf2b
33740 * g10/keygen.c (get_parameter_passphrase): Take care of R == NULL.
33742 2015-01-27 NIIBE Yutaka <gniibe@fsij.org>
33744 agent: Fix agent_public_key_from_file for ECC.
33745 + commit 9453d645d4a489f038829c80343c124fff62d635
33746 * agent/cvt-openpgp.c (extract_private_key): New.
33747 (convert_to_openpgp): Use extract_private_key.
33748 * agent/findkey.c (agent_public_key_from_file): Use
33749 extract_private_key.
33751 2015-01-26 Werner Koch <wk@gnupg.org>
33753 sm: Simplify fix ed8383c6.
33754 + commit 6c87d1ce66d8e93e6c0f16c06116e9179f6158ba
33755 * sm/minip12.c (p12_build): Release PWBUF only at the end.
33757 2015-01-25 Joshua Rogers <git@internot.info>
33759 ccid: Remove incorrect expression leading to errors.
33760 + commit 274d7b17a90908a90ba6ad295c08a79b287fc231
33761 * scd/ccid-driver.c (send_escape_cmd): Fix setting of 'rc'.
33763 2015-01-23 Werner Koch <wk@gnupg.org>
33765 gpgconf: Fix validity check for UINT32 values.
33766 + commit 3f6abb57a7b5e54b593c5775c8f7a07d61119705
33767 * tools/gpgconf-comp.c (option_check_validity): Enable check for
33770 2015-01-22 Werner Koch <wk@gnupg.org>
33772 gpg: Improve skipping of PGP-2 keys.
33773 + commit 09e8f35d3808d6e49f891360c341aae3869e8650
33774 * g10/keydb.c (keydb_search_first, keydb_search_next): Skip legacy
33776 * g10/keyring.c (keyring_get_keyblock): Handle GPG_ERR_LEGACY_KEY.
33777 (prepare_search): Ditto.
33778 (keyring_rebuild_cache): Skip legacy keys.
33779 * g10/keyserver.c (keyidlist): Ditto.
33780 * g10/trustdb.c (validate_key_list): Ditto.
33782 gpg: Add dedicated error code for PGP-2 keys.
33783 + commit 6f3d11d8837b00e3a1c4fa881066855c0321d6b2
33784 * g10/parse-packet.c (parse_key): Return GPG_ERR_LEGACY_KEY for PGP2
33786 * g10/import.c (read_block): Simplify by checking GPG_ERR_LEGACY_KEY.
33787 * g10/getkey.c (lookup): Silence error message for PGP-2 keys.
33789 * common/util.h (GPG_ERR_LEGACY_KEY): Add replacement for older
33792 gpg: Replace remaining old error code macros by GPG_ERR_.
33793 + commit 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993
33794 * g10/gpg.h (g10_errstr): Remove macro and change all occurrences by
33796 (G10ERR_): Remove all macros and change all occurrences by their
33797 GPG_ERR_ counterparts.
33799 gpg: Remove an unused variable.
33800 + commit a23c30fb59c0a216763a7972028995d3be42a844
33801 * g10/getkey.c (getkey_ctx_s): Remove last_rc.
33803 2015-01-21 Werner Koch <wk@gnupg.org>
33805 dirmngr: Fix TLS build problems.
33806 + commit 091c35ec726a4fa4691c2665b13adee6a34b5b66
33807 * dirmngr/Makefile.am (AM_CFLAGS): Add flags for TLS libs.
33809 gpg: Support --passphrase with --quick-gen-key.
33810 + commit 4d7c9b0e9aceedd924d600978bc1b6cae7d5c456
33811 * g10/keygen.c: Include shareddefs.h.
33812 (quick_generate_keypair): Support static passphrase.
33813 (get_parameter_passphrase): New.
33814 (do_generate_keypair): Use it.
33816 gpg: Re-enable the "Passphrase" parameter for batch key generation.
33817 + commit aa99ebde778b7b563f35025f1b48954757f840be
33818 * agent/command.c (cmd_genkey): Add option --inq-passwd.
33819 * agent/genkey.c (agent_genkey): Add new arg override_passphrase.
33820 * g10/call-agent.c (inq_genkey_parms): Handle NEWPASSWD keyword.
33821 (agent_genkey): Add arg optional arg "passphrase".
33822 * g10/keygen.c (common_gen, gen_elg, gen_dsa, gen_ecc)
33823 (gen_rsa, do_create): Add arg "passphrase" and pass it through.
33824 (do_generate_keypair): Make use of pPASSPHRASE.
33825 (release_parameter_list): Wipe out a passphrase parameter.
33827 2015-01-19 Werner Koch <wk@gnupg.org>
33829 kbx: Minor cleanup for the previous fix.
33830 + commit 7be1b7d8017cb7ebf1a3855edec0ef5e342cc9c5
33831 * kbx/keybox-search.c (blob_get_keyid): Rename to
33832 blob_get_first_keyid. Check number of keys and remove blob type check.
33834 2015-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
33836 kbx: Call skipfnc callback to filter out keys.
33837 + commit c5956592c171e6fe988e74161aa99636b7f12e4b
33838 * kbx/keybox-search.c (blob_get_keyid): New.
33839 (keybox-search): Call skipfnc callback function.
33841 2015-01-13 Andreas Schwier <andreas.schwier@cardcontact.de>
33843 scd: Allow for certificates > 1024 with PC/SC.
33844 + commit 16a1330fa16f6b23e2661c0175c431ab40da45ff
33845 * scd/pcsc-wrapper.c (handle_transmit): Enlarge buffer to 4096 too
33846 allow for larger certificates.
33848 2015-01-08 NIIBE Yutaka <gniibe@fsij.org>
33850 dirmngr: Fix error code path of map_host.
33851 + commit 657a26f3af1b3f817d6cde2d091273d332571247
33852 * dirmngr/ks-engine-hkp.c (map_host): Fix error return.
33854 2015-01-08 Joshua Rogers <git@internot.info>
33856 scd: fix get_public_key for OpenPGPcard v1.0.
33857 + commit 100b322f5da3066bab5a2b0eb234c631c581c0e4
33858 * scd/app-openpgp.c (get_public_key): correctly close 'fp' upon use.
33860 2015-01-07 NIIBE Yutaka <gniibe@fsij.org>
33862 dirmngr: fix LDAP query PATTERNS limit check.
33863 + commit 22b15fccffe613f455f9748c048c8e451724a842
33864 * dirmngr/ldap.c (start_cert_fetch_ldap): fix ARGC limitation.
33866 scd: fix merge failure.
33867 + commit 602f17b5a775f02e0e33a54d3155929dc00e4f53
33868 * scd/apdu.c (pcsc_pinpad_verify): Remove wrong lines inserted by
33871 2015-01-05 Werner Koch <wk@gnupg.org>
33873 sm,g13: Init local vars to avoid compiler warnings.
33874 + commit 9bf40849a9f86204e113712c4cc285f1ac16127a
33875 * sm/misc.c (transform_sigval): Init RSA_S_LEN.
33876 * g13/mount.c (read_keyblob): Init HEADERLEN.
33878 gpg: Remove unused args from a function.
33879 + commit 616e511f278bf9af04dc66bbb8b05b37bf541f37
33880 * g10/keyserver.c (parse_keyserver_uri): Remove args configname and
33881 configlineno. Change all callers.
33883 gpg: Clear a possible rest of the KDF secret buffer.
33884 + commit 56e688823345bbcfef220b13eb418854f8798b16
33885 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Fix order of args.
33887 build: Require automake 1.14.
33888 + commit 445bb17d5fe6b53db078082fb033dbc67eea8307
33889 * configure.ac (AM_INIT_AUTOMAKE): Add serial-tests.
33891 2015-01-04 Werner Koch <wk@gnupg.org>
33893 agent: Make --allow-loopback-pinentry gpgconf changeable.
33894 + commit ac2cb47fc5c0be539aaa07fd141acdbc0934800f
33897 2014-12-22 Joshua Rogers <git@internot.info>
33899 tools: Free variable before return.
33900 + commit cf88337f8a4f8c98aca4b1da5921d18567b4f474
33901 * tools/gpgconf-comp.c: Free 'dest_filename' before it is returned
33904 2014-12-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
33906 sm: Avoid double-free on iconv failure.
33907 + commit ed8383c618e124cfa708c9ee87563fcdf2f4649c
33908 * sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
33909 double-free of pwbuf.
33911 scd: Avoid double-free on error condition in scd.
33912 + commit b0b3803e8c2959dd67ca96debc54b5c6464f0d41
33913 * scd/command.c (cmd_readkey): avoid double-free of cert
33915 avoid future chance of using uninitialized memory.
33916 + commit 367b073ab5f439ccf0750461d10c69f36998bd62
33917 * common/iobuf.c: (iobuf_open): initialize len
33919 avoid double-close in unusual dotlock situations.
33920 + commit 628b111fa679612e23c0d46505b1ecbbf091897d
33921 * common/dotlock.c: (dotlock_create_unix) avoid double-close()
33922 in unusual situations.
33924 gpgkey2ssh: clean up varargs.
33925 + commit 351bca9047d748c3c4f7e9a3cdc476af127b1da3
33926 * tools/gpgkey2ssh.c (key_to_blob) : ensure that va_end is called.
33928 2014-12-22 Werner Koch <wk@gnupg.org>
33930 doc: Fix memory leak in yat2m.
33931 + commit 6056d2467310260ddc0db2fe65b737ace6febcaa
33932 * doc/yat2m.c (write_th): Free NAME.
33934 dirmngr: Fix memory leak.
33935 + commit 5a556e4e88bcbc926c0922070acaf5f7b25d18fb
33936 * dirmngr/server.c (cmd_ks_search, cmd_ks_get): Fix memory leak.
33938 * dirmngr/ks-engine-hkp.c (ks_hkp_mark_host): Remove double check.
33940 dirmngr: Remove un-needed check.
33941 + commit 0d5cb55402c44fb5f731ecf85705f845f3091aa7
33942 * dirmngr/crlfetch.c (crl_fetch): Check that URL is not NULL.
33944 dirmngr,gpgsm: Return NULL on fail.
33945 + commit abd5f6752d693b7f313c19604f0723ecec4d39a6
33946 * dirmngr/ldapserver.c (ldapserver_parse_one): Set SERVER to NULL.
33947 * sm/gpgsm.c (parse_keyserver_line): Ditto.
33949 2014-12-22 NIIBE Yutaka <gniibe@fsij.org>
33952 + commit bdc8efbdd124d836c36cf482216e375421f72891
33953 * agent/divert-scd.c (divert_pkdecrypt): Support ECDH.
33954 * scd/app-openpgp.c (get_algo_byte, store_fpr): Support ECDH.
33955 (send_key_attr): Support ECDH. Fix EdDSA algorithm value.
33956 (retrieve_key_material): Initialize fields.
33957 (get_public_key, ecc_writekey, do_writekey): Support ECDH.
33958 (ecdh_writekey): Remove.
33959 (do_decipher): Support ECDH.
33960 (parse_algorithm_attribute): Support ECDH. Fix EdDSA.
33962 2014-12-19 Werner Koch <wk@gnupg.org>
33964 agent: Make sure --max-cache-ttl is >= --default-cache-ttl.
33965 + commit 76140141699b545f7a988bf5fc101063917e8ce3
33966 * agent/gpg-agent.c (finalize_rereadable_options): New.
33967 (main, reread_configuration): Call it.
33969 agent: Keep the session environment for restricted connections.
33970 + commit 14601eacb51f6c8a60d3d57aee1be11debd94c68
33971 * agent/command-ssh.c (setup_ssh_env): Move code to ...
33972 * agent/gpg-agent.c (agent_copy_startup_env): .. new function. Change
33974 * agent/command.c (start_command_handler): Call that fucntion for
33975 restricted connections.
33977 agent: Fix string prepended to remotely initiated prompts.
33978 + commit aad8963f7b9d13b319abd413db8f42ec467db913
33979 * agent/command.c (cmd_setkeydesc): Use %0A and not \n. Make
33982 2014-12-18 Werner Koch <wk@gnupg.org>
33984 build: Remove option to build without agent.
33985 + commit abec64f3cb04e49ca48cc476a5830a920e2ebf8f
33986 * configure.ac (build-agent): Set to yes.
33988 2014-12-17 Werner Koch <wk@gnupg.org>
33990 gpgconf: Exit with failure if --launch fails.
33991 + commit 5cb6df8996623c00eaa2a39e3037101585442f7e
33992 * tools/gpgconf-comp.c (gc_component_launch): Return an error code.
33993 * tools/gpgconf.c (main): Exit if launch failed.
33995 2014-12-16 Werner Koch <wk@gnupg.org>
33998 + commit 08c00cd4fe432d6852ad1d5c34a234c56aa3617c
34001 po: Update the German translation.
34002 + commit 4ba740bd4734c43e7876f6f6380cc5963789d510
34005 2014-12-16 Petr Pisar <petr.pisar@atlas.cz>
34007 po: Update Czech translation.
34008 + commit 30560491fe42562f4bbdb17d3213f7210f549a0f
34011 2014-12-16 Werner Koch <wk@gnupg.org>
34013 gpg: Show private DO information in the card status.
34014 + commit ce9212924039fba4e479760bba86c61b0d91c469
34015 * g10/call-agent.c (agent_release_card_info): Free private_do.
34016 (learn_status_cb): Parse PRIVATE-DO-n stati.
34018 2014-12-16 Ineiev <ineiev@gnu.org>
34020 po: Update Russian translation.
34021 + commit 5ab5b3fa6921f08dd0a498fe0381735e803d01e3
34024 2014-12-16 Jedi <jedi@jedi.org>
34026 po: Update zh_TW translation.
34027 + commit 668dc6b32cb97608ef65b85d917c86f5aec896ce
34030 2014-12-15 Werner Koch <wk@gnupg.org>
34032 gpg: Add sub-command "factory-reset" to --card-edit.
34033 + commit dd65e21cb4934b40e6f2f7a8095f39fd6d9971bc
34034 * common/util.h (GPG_ERR_OBJ_TERM_STATE): New.
34035 * scd/iso7816.c (map_sw): Add this error code.
34036 * scd/app-openpgp.c (do_getattr): Return the life cycle indicator.
34037 * scd/app.c (select_application): Allow a return value of
34038 GPG_ERR_OBJ_TERM_STATE.
34039 * scd/scdaemon.c (set_debug): Print the DBG_READER value.
34040 * g10/call-agent.c (start_agent): Print a status line for the
34042 (agent_scd_learn): Make arg "info" optional.
34043 (agent_scd_apdu): New.
34044 * g10/card-util.c (send_apdu): New.
34045 (factory_reset): New.
34046 (card_edit): Add command factory-reset.
34048 gpg: Fix regression in notation data regression.
34049 + commit fc9a35d2dec2f838abac831fd88dca494773e082
34050 * g10/misc.c (pct_expando): Reorder conditions for clarity.
34051 * g10/sign.c (write_signature_packets): Fix notation data creation.
34053 gpg: Avoid extra LF in notaion data listing.
34054 + commit b4e402cb5c6d7fc507e8d5131969145b49640e50
34055 * g10/keylist.c (show_notation): Use log_printf.
34057 2014-12-12 Werner Koch <wk@gnupg.org>
34059 scd: Fix possibly inhibited checkpin of the admin pin.
34060 + commit 68b4e7c9e4de0dc3580ca5af3cfd0f20a2691b5e
34061 * scd/app-openpgp.c (do_check_pin): Do not check a byte of a released
34064 gpg: Let --card--status create a shadow key (card key stub).
34065 + commit f3f9f9b2844c35f7942ee904d5222523615cdad4
34066 * agent/command.c (cmd_learn): Add option --sendinfo.
34067 * agent/learncard.c (agent_handle_learn): Add arg "send" andsend
34068 certifciate only if that is set.
34069 * g10/call-agent.c (agent_scd_learn): Use --sendinfo. Make INFO
34071 (agent_learn): Remove.
34072 * g10/keygen.c (gen_card_key): Replace agent_learn by agent_scd_learn.
34074 gpg: Fix possible read of unallocated memory.
34075 + commit 193815030d20716d9a97850013ac3cc8749022c9
34076 * g10/parse-packet.c (can_handle_critical): Check content length
34077 before calling can_handle_critical_notation.
34079 2014-12-11 Werner Koch <wk@gnupg.org>
34081 build: Replace deprecated autconf macro.
34082 + commit 1d8ebe4d54eef37da65e7bd5d7386bc04f344447
34083 * m4/intl.m4: s/AM_PROG_MKDIR_P/AC_PROG_MKDIR_P/
34086 2014-12-08 Werner Koch <wk@gnupg.org>
34088 dirmngr: Improve dead host detection.
34089 + commit e8c0ed779579293b3f4592d9337bc15ee0fc3fdd
34090 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Mark host dead
34091 also for 2 other error messages.
34093 http: Improve diagnostic messages.
34094 + commit 6d5f12834124ba5ee0e54261531abf95c36c116c
34095 * common/http.c (send_request): Print TLS alert info
34096 (connect_server): Detect bogus DNS entry.
34098 gpg: Obsolete some keyserver helper options.
34099 + commit 5bf93f4ea7a11381dd256b5fd4e5913366828265
34100 * g10/options.h (opt): Remove keyserver_options.other.
34101 * g10/gpg.c (main): Obsolete option --honor-http-proxt.
34102 * g10/keyserver.c (add_canonical_option): Replace by ...
34103 (warn_kshelper_option): New.
34104 (parse_keyserver_uri): Obsolete "x-broken-http".
34106 dirmngr: Return a proper error for all dead hosts.
34107 + commit b72ece6d74d3e385e818ead748eba0cb111b95b3
34108 * dirmngr/ks-engine-hkp.c (map_host): Change to return an gpg_error_t.
34109 Return an error code for all dead hosts.
34110 (make_host_part): Change to return an gpg_error_t. Change all
34113 gpg: Write a status line for a failed --send-keys.
34114 + commit 66ab8f807c96b778f2a2c82b58d3e15ac295e1b2
34115 * g10/keyserver.c (keyserver_put): Write an status error.
34117 2014-12-08 NIIBE Yutaka <gniibe@fsij.org>
34119 scd: Fix for EdDSA.
34120 + commit c50c11d5751f46ddb38244a5a07d8274e1e10922
34121 * scd/app-openpgp.c (get_algo_byte): It catches 22.
34122 (store_fpr): It's MPI usually, but it's opaque bytes for EdDSA.
34124 2014-12-05 Andre Heinecke <aheinecke@intevation.de>
34126 Document no-allow-mark-trusted option.
34127 + commit f4ed04fca8885301b567ec004ffff0d6e24f4611
34128 doc: Document no-allow-mark-trusted for gpg-agent
34130 * doc/gpg-agent.texi: Change allow-mark-trusted doc to
34131 no-allow-mark-trusted.
34134 Since rev. 78a56b14 allow-mark-trusted is the default option
34135 and was replaced by no-allow-mark-trusted to disable the
34136 interactive prompt.
34138 2014-12-05 NIIBE Yutaka <gniibe@fsij.org>
34140 scd: Fix for NIST P-256.
34141 + commit 8720125f5a283ede34e52c2493b8a9b0226ae62c
34142 * g10/card-util.c (card_store_subkey): Error check.
34143 * scd/app-opengpg.c (ecc_writekey): Support NIST P-256.
34144 (do_writekey): Error check.
34146 2014-12-04 Werner Koch <wk@gnupg.org>
34148 gpg: Allow import of large keys.
34149 + commit 63e7891f0f9f0228d93c6cd979fbf2797da2b67d
34150 * g10/import.c (import): Skip too large keys.
34151 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 2MB to 5MB.
34153 2014-12-03 Werner Koch <wk@gnupg.org>
34155 gpg: Remove option aliases --[no-]throw-keyid and --notation-data.
34156 + commit 17b4662984b4669d8dcbbd6705ccfbe6c263319c
34157 * g10/gpg.c (opts): Remove them.
34158 * g10/options.h (opt): s/throw_keyid/throw_keyids/ and change users.
34160 2014-12-02 Werner Koch <wk@gnupg.org>
34162 agent: Replace some sprintf.
34163 + commit fabcf1440a6900b9471f11e4f2a015e9f2d1a74c
34164 * agent/call-scd.c (agent_card_pksign): Replace sprintf by bin2hex.
34165 * agent/command-ssh.c (ssh_identity_register): Ditto.
34166 * agent/pkdecrypt.c (agent_pkdecrypt): Replace sprintf by
34169 2014-12-01 Werner Koch <wk@gnupg.org>
34171 tools: Improve watchgnupg portability.
34172 + commit 0367a4b8cfbf1f197e093ca2b83b27e0a409c3c7
34173 * configure.ac (AC_CHECK_HEADERS): Check for sys.select.h
34174 * tools/watchgnupg.c: Include it.
34176 gpg: Fix export bug using exact search with only one key in the keybox.
34177 + commit f1c3eb4b16ca43b5d3712a3b54c22d17ce85af47
34178 * g10/export.c (do_export_stream): Disable caching.
34179 * g10/keyserver.c (keyidlist): Ditto.
34181 scd: Implement socket redirection.
34182 + commit 2f90b7c21b2f84ca2bf5f4555da9233e84606b4e
34183 * scd/scdaemon.c (ENAMETOOLONG): New.
34184 (redir_socket_name): New.
34185 (cleanup): Take care of a redirected socket.
34186 (main): Pass redir_socket_name to create_server_socket.
34187 (create_socket_name): Remove superfluous length check.
34188 (create_server_socket): Add arg r_redir_name and implement
34189 redirection. Replace assert for older Assuan by an error message.
34191 dirmngr: Implement socket redirection.
34192 + commit eede0e59bf6281777da7391752ae4191f3e51204
34193 * dirmngr/dirmngr.c (ENAMETOOLONG): new.
34194 (redir_socket_name): New.
34195 (main): Add Assuan socket redirection.
34196 (cleanup): Adjust cleanup for redirection.
34198 2014-11-28 Werner Koch <wk@gnupg.org>
34200 agent: Implement socket redirection.
34201 + commit e1f515b19c7f63b6d0b0253319b9fc41dabed657
34202 * agent/gpg-agent.c (ENAMETOOLONG): New.
34203 (redir_socket_name, redir_socket_name_extra)
34204 (redir_socket_name_ssh): New.
34205 (remove_socket): Take care of the redir names.
34206 (main): Pass the redir names to create_server_socket.
34207 (create_socket_name): Remove length check - that is anyway done later.
34208 (create_server_socket): Add arg r_redir_name and implement redirection
34209 if Libassuan is at least 2.14.
34211 gpg: Change another BUG() call to a regular error message.
34212 + commit e59b1cc7471dd161a627b290c645ef7bd0d9d42c
34213 * g10/mainproc.c (proc_tree): Replace BUG by a proper error messages.
34215 Add option --no-autostart.
34216 + commit 7aee3579be6e24a1aa280e75615fc3a11ceef960
34217 * g10/gpg.c: Add option --no-autostart.
34218 * sm/gpgsm.c: Ditto.
34219 * g10/options.h (opt): Add field autostart.
34220 * sm/gpgsm.h (opt): Ditto.
34221 * g10/call-agent.c (start_agent): Print note if agent was not
34223 * sm/call-agent.c (start_agent): Ditto.
34224 * g10/call-dirmngr.c (create_context): Likewise.
34225 * sm/call-dirmngr.c (start_dirmngr_ext): Ditto.
34227 2014-11-27 Мирослав Николић <wk@gnupg.org>
34229 gpg-agent: Add restricted connection feature.
34230 + commit f173cdcdfbfd083b035516a406c2c754f38a0ace
34231 * agent/agent.h (opt): Add field extra_socket.
34232 (server_control_s): Add field restricted.
34233 * agent/command.c: Check restricted flag on many commands.
34234 * agent/gpg-agent.c (oExtraSocket): New.
34235 (opts): Add option --extra-socket.
34236 (socket_name_extra): New.
34237 (cleanup): Cleanup that socket name.
34238 (main): Implement oExtraSocket.
34239 (create_socket_name): Add arg homedir and change all callers.
34240 (create_server_socket): Rename arg is_ssh to primary and change
34242 (start_connection_thread): Take ctrl as arg.
34243 (start_connection_thread_std): New.
34244 (start_connection_thread_extra): New.
34245 (handle_connections): Add arg listen_fd_extra and replace the
34246 connection starting code by parameterized loop.
34247 * common/asshelp.c (start_new_gpg_agent): Detect the use of the
34248 restricted mode and don't fail on sending the pinentry environment.
34250 * common/util.h (GPG_ERR_FORBIDDEN): New.
34252 agent: Make auditing of the option list easier.
34253 + commit ccee34736b57a42ec4bdcb0d3181bdc6a08b0fff
34254 * agent/gpg-agent.c (opts): Use ARGPARSE_ macros.
34256 2014-11-26 Kristian Fiskerstrand <kf@sumptuouscapital.com>
34258 dirmngr: Only report hkps scheme when available.
34259 + commit 68a7ccc0c870cce6ab9fefb1aa6fd100e1de129b
34260 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Make use of TLS macros.
34262 2014-11-26 Werner Koch <wk@gnupg.org>
34264 gpg: Change a bug() call to a regular error message.
34265 + commit 1c2140346d6ef9c35e303099d2d15be57869b4d5
34266 * g10/decrypt-data.c (decrypt_data): Return an error code instead of
34269 2014-11-25 Werner Koch <wk@gnupg.org>
34271 Fix buffer overflow in openpgp_oid_to_str.
34272 + commit 8445ef24fc31e1fe0291e17f90f9f06b536e34da
34273 * common/openpgp-oid.c (openpgp_oid_to_str): Fix unsigned underflow.
34275 * common/t-openpgp-oid.c (BADOID): New.
34276 (test_openpgp_oid_to_str): Add test cases.
34278 2014-11-24 Werner Koch <wk@gnupg.org>
34280 gpg: Fix use of uninit.value in listing sig subpkts.
34281 + commit 596ae9f5433ca3b0e01f7acbe06fd2e424c42ae8
34282 * g10/parse-packet.c (dump_sig_subpkt): Print regex subpacket
34285 gpg: Fix off-by-one read in the attribute subpacket parser.
34286 + commit 0988764397f99db4efef1eabcdb8072d6159af76
34287 * g10/parse-packet.c (parse_attribute_subpkts): Check that the
34288 attribute packet is large enough for the subpacket type.
34290 gpg: Fix batch generation of ECC keys.
34291 + commit b716e6a69919b89c7887d6c7c9b97e58d18fdf95
34292 * g10/keygen.c (get_parameter_algo): Map ECC algorithm strings
34295 2014-11-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
34297 Distinguish between ARGPARSE_AMBIGUOUS_{OPTION,COMMAND}
34298 + commit eed16ccebf8fd1fdf9709affbd5c831f6957b8ae
34299 * common/argparse.c (initialize): Use correct value.
34301 gpg: Refer to --throw-keyids instead of --throw-keyid.
34302 + commit a3cf781e3bc144aff60e007b9ba59bff7b1b2c9e
34303 * g10/encrypt.c: adjust error message
34305 2014-11-21 Werner Koch <wk@gnupg.org>
34307 gpg: Track number of skipped v3 keys on import.
34308 + commit 44c9cc18968b3e1d7568ec41ebf28a07285c61bb
34309 * g10/import.c (stats_s): Add field v3keys.
34310 (import): Update this field.
34311 (import_print_stats): Print v3 key count.
34312 (read_block): Skip v3 keys and return a count for them.
34314 gpg: Fix regression in parse_key.
34315 + commit 94a54425144e412bc83e44b7c6323282f49f650f
34316 * g10/parse-packet.c (parse): Better return just the gpg_err_code.
34317 (parse_key): Return the error code.
34319 speedo: Add simple logos to the installer.
34320 + commit 9a85b91e925ac0798d56820353bf5858b212277f
34321 * build-aux/speedo/w32/README.txt: Include GnuPG Readme.
34322 * build-aux/speedo/w32/gnupg-logo-150x57.bmp: New.
34323 * build-aux/speedo/w32/gnupg-logo-164x314.bmp: New.
34324 * build-aux/speedo/w32/inst.nsi: Add logos.
34325 * build-aux/speedo.mk ($(bdir)/NEWS.tmp): Extract news items.
34327 2014-11-20 Werner Koch <wk@gnupg.org>
34329 gpg: Fix hash detection for ECDSA.
34330 + commit f80c2dd78d522f12b2c7afbd5c0763a97d87d2bd
34331 * g10/sign.c (sign_file): Use DSA or ECDSA and not DSA|EdDSA.
34333 Fix linker problem on OS X.
34334 + commit cd2c6f36fe5d1d1d45546f5168aead5cbe6487e0
34335 * common/init.c (default_errsource): Move to the .data segmemt.
34337 2014-11-19 Werner Koch <wk@gnupg.org>
34339 gpg-connect-agent: Add convenience option --uiserver.
34340 + commit 164a6a9dd4af26668dd0d01061688bf1ceff44bf
34343 Add "gpgconf --kill dirmngr" and avoid useless launch before a kill.
34344 + commit 0e7dd40342bd56810c27db1c38c1928f56f43bfd
34345 * common/asshelp.c (start_new_gpg_agent): Add arg autostart. Change
34346 all callers to use 1 for it.
34347 (start_new_dirmngr): Ditto.
34348 * tools/gpg-connect-agent.c: Add option --no-autostart.
34349 (main): Default autostart to 1.
34350 (start_agent): Implement no-autostart.
34351 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Use --no-autostart.
34352 (scdaemon_runtime_change): Ditto.
34353 (dirmngr_runtime_change): New.
34355 po: Copied missing translations from the 2.0 branch.
34356 + commit 329ece46bf83871f01eb833d5ebec6da36bfcce0
34357 * po/LINGUAS: Add new translations.
34359 2014-11-17 Werner Koch <wk@gnupg.org>
34361 gpg: Fix a NULL-deref for invalid input data.
34362 + commit 32e85668b82f6fbcb824eea9548970804fb41d9e
34363 * g10/mainproc.c (proc_encrypted): Take care of canceled passpharse
34366 2014-11-13 Werner Koch <wk@gnupg.org>
34368 gpg: Make the use of "--verify FILE" for detached sigs harder.
34369 + commit 69384568f66a48eff3968bb1714aa13925580e9f
34370 * g10/openfile.c (open_sigfile): Factor some code out to ...
34371 (get_matching_datafile): new function.
34372 * g10/plaintext.c (hash_datafiles): Do not try to find matching file
34374 * g10/mainproc.c (check_sig_and_print): Print a warning if a possibly
34375 matching data file is not used by a standard signatures.
34377 gpg: Fix a missing LF in debug output.
34378 + commit 22748338da9a78d20aefe3656ba40b0f9d34a681
34379 * g10/kbnode.c (dump_kbnode): Print a LF.
34381 gpg: Remove PGP-2 related cruft.
34382 + commit e30cb8f61792e3808f7c8f343fc8545e6c81fe74
34383 * g10/armor.c (parse_hash_header,carmor_filter): Ignore MD5 in hash
34385 (fake_packet): Remove pgp-2 workaround for white space stripping.
34386 * g10/filter.h (armor_filter_context_t): Remove field pgp2mode.
34387 * g10/options.h (opt): Remove field pgp2_workarounds.
34388 * g10/gpg.c (main): Do not set this field.
34389 * g10/gpgv.c (main): Ditto.
34390 * g10/mainproc.c (proc_encrypted): Use SHA-1 as fallback s2k hash
34391 algo. Using MD5 here is useless.
34392 (proc_plaintext): Remove PGP-2 related woraround
34393 (proc_tree): Remove another workaround but keep the one for PGP-5.
34395 2014-11-12 Werner Koch <wk@gnupg.org>
34397 gpg: Improve perceived speed of secret key listings.
34398 + commit 81e177be10273885573f5d1fd88a1ee23479f4ab
34399 * g10/keylist.c (list_keyblock): Flush stdout for secret keys.
34401 gpg: Fix regression in --refresh-keys.
34402 + commit eecbed004ca1e9ca23c3892c3a5e6dd174ddf93b
34403 * g10/keyserver.c (keyserver_get): Factor all code out to ...
34404 (keyserver_get_chunk): new. Extimate line length.
34405 (keyserver_get): Split up requests into chunks.
34407 gpg: Add import options "keep-ownertrust".
34408 + commit ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39
34409 * g10/options.h (IMPORT_KEEP_OWNERTTRUST): New.
34410 * g10/import.c (parse_import_options): Add "keep-ownertrust".
34411 (import_one): Act upon new option.
34413 2014-11-11 Werner Koch <wk@gnupg.org>
34415 Remove use of gnulib (part 2)
34416 + commit b8cdfac353ad96d4ef025c066c16dbde34805661
34417 * configure.ac (strpbrk): Add to AC_CHECK_FUNCS.
34418 (gl_EARLY): Remove.
34419 * common/stringhelp.c (strpbrk) [!HAVE_STRPBRK]: New.
34420 * common/sysutils.c (gnupg_mkdtemp): New. Based on code from
34422 (gnupg_setenv): Rewrite.
34423 (gnupg_unsetenv): Rewrite.
34424 * g10/exec.c: Include sysutils.h and replace mkdtemp by gnupg_mkdtemp.
34425 * g13/be-encfs.c: Ditto.
34426 * g13/mount.c: Ditto.
34427 * tools/symcryptrun.c (confucius_mktmpdir): Ditto.
34429 Remove use of gnulib (part 1)
34430 + commit 1adf719b2d8e2d5b912bf6655731e7e586402654
34431 * gl/: Remove entire tree.
34432 * configure.ac: Remove gnulib tests and the gl/ Makefile.
34433 (setenv): Add to AC_CHECK_FUNCS.
34434 * autogen.rc (extra_aclocal_flags): Set to empty.
34435 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I gl/m4
34436 (SUBDIRS): Remove gl/.
34437 * agent/Makefile.am (common_libs): Remove ../gl/gnulib.a
34438 * common/Makefile.am (t_common_ldadd): Ditto.
34439 * dirmngr/Makefile.am (dirmngr_LDADD): Ditto.
34440 (dirmngr_ldap_LDADD, dirmngr_client_LDADD): Ditto.
34441 * g10/Makefile.am (needed_libs): Ditto.
34442 * g13/Makefile.am (g13_LDADD): Ditto.
34443 * kbx/Makefile.am (kbxutil_LDADD): Ditto.
34444 ($(PROGRAMS)): Ditto.
34445 * scd/Makefile.am (scdaemon_LDADD): Ditto.
34446 * sm/Makefile.am (common_libs): Ditto.
34447 * tools/Makefile.am (common_libs, commonpth_libs): Ditto.
34449 * agent/gpg-agent.c: Remove "mkdtemp.h"
34450 * g10/exec.c: Ditto.
34451 * scd/scdaemon.c: Ditto.
34452 * tools/symcryptrun.c: Ditto.
34453 * common/sysutils.c: Remove "setenv.h"
34455 * common/t-timestuff.c: Use putenv if setenv is not available.
34457 2014-11-07 Werner Koch <wk@gnupg.org>
34459 gpg: Remove warning message for non-implemented search modes.
34460 + commit 7362c8c6e60939588e817384ae2e29195cb3f518
34461 * kbx/keybox-search.c (keybox_search): Silently ignore.
34462 * doc/specify-user-id.texi: Docuement '@", '+', and '.' search
34465 w32: Fix http access module.
34466 + commit f0f5cb6b3e525f696b8820c517190e1d84f3b885
34467 * common/http.c (write_server) [W32]: Rework to use send() instead of
34468 write even when build with npth.
34469 (cookie_read) [W32]: Rework to use recv() instead of read even when
34472 build: Add method to use a custom swdb.lst and use adns with Windows.
34473 + commit c7c79e31937e2d2fdb4042641786c229e31fbfae
34474 * build-aux/getswdb.sh: Add option --skip-verify.
34475 * build-aux/speedo.mk: Add config var CUSTOM_SWDB. Tage adns version
34476 from swdb and build for Windows with adns.
34478 build: Improve test for ADNS.
34479 + commit f7e1be24c8fcf588d4e48aa53a85b22bd035e3b0
34480 * configure.ac <adns>: Use adns_free as probe function for libadns.
34481 (HAVE_ADNS_FREE): Remove bogus tests to set this and remove the macro.
34482 (ADNSLIBS): Do not ac_subst - it is only used within configure.
34484 2014-11-05 Werner Koch <wk@gnupg.org>
34486 speedo: Append the date to the Windows installer.
34487 + commit 8ec0b384a86bd7f67a60ab43ff1540e80c3f729d
34488 * build-aux/speedo.mk (BUILD_DATESTR): New.
34489 (dist-source, installer): Use it.
34492 + commit e22b459b910762f77245283746de34c67ebc72da
34495 Avoid sign extension when shifting the MSB.
34496 + commit 91b826a38880fd8a989318585eb502582636ddd8
34497 * sm/fingerprint.c (gpgsm_get_short_fingerprint): Cast MSB before
34499 * g10/build-packet.c (delete_sig_subpkt): Ditto.
34501 2014-11-04 Werner Koch <wk@gnupg.org>
34503 Remove all expired common CA certificates.
34504 + commit 46fa1e0fe9f7407f12aa854e5cdb54624af3e89b
34505 * doc/com-certs.pem: Remove certifciates.
34507 2014-11-02 Werner Koch <wk@gnupg.org>
34509 gpg: Avoid extra pinentries for each subkey in --export-secret-keys.
34510 + commit f8c993fbe28bf02f1d7aadec823a9dfc935398fa
34511 * agent/command.c (cmd_export_key): Actually implement the cache_nonce
34513 * g10/export.c (do_export_stream): Make use of a cache_nonce.
34515 gpg: Fix endless loop in keylisting with fingerprint.
34516 + commit d95f05c314adfecbe0af9073f964030010442f9b
34517 * g10/getkey.c (getkey_next): Disable cache.
34519 gpg: Minor cleanup for key listing related code.
34520 + commit 440e8f517008107a9fe1b72cb659b97b7d840de6
34521 * g10/getkey.c (get_pubkey_next): Divert to getkey_next.
34522 (get_pubkey_end): Move code to getkey_end.
34523 * g10/keydb.c (keydb_search_reset): Add a debug statement.
34524 (dump_search_desc): Add arg HD and print the handle.
34526 gpg: Do not show an useless passphrase prompt in batch mode.
34527 + commit a929f36693567e57eca89fb48f23cada8ce7291a
34528 * g10/keygen.c: Remove unused PASSPHRASE related code.
34529 (proc_parameter_file): Remove useless asking for a passphrase in batch
34532 2014-10-31 Werner Koch <wk@gnupg.org>
34534 gpg: Remove superfluous check for Libgcrypt >= 1.4.0.
34535 + commit f4df71aa2d544ec46a2ded3055ffb21b9842129e
34536 * g10/gpg.c (main): Remove check.
34538 kbx: Let keydb_search skip unwanted blobs.
34539 + commit 935edf88ab29b2f63afc2a0e3af1b33c92033ab7
34540 * kbx/keybox.h (keybox_blobtype_t): New.
34541 * kbx/keybox-defs.h (BLOBTYPE_*): Replace by KEYBOX_BLOBTYPE_*.
34542 * kbx/keybox-search.c (keybox_search): Add arg want_blobtype and skip
34543 non-matching blobs.
34544 * sm/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_X509 to keybox_search.
34545 * g10/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_PGP to keybox_search.
34547 gpg: Fix --rebuild-keydb-caches.
34548 + commit 28ae8ad70b3b802e67344468a4765eee6e291c68
34549 * g10/parse-packet.c (parse_key): Store even unsupported packet
34551 * g10/keyring.c (keyring_rebuild_cache): Do not copy keys with
34552 versions less than 4.
34554 gpg: Fix testing for secret key availability.
34555 + commit 433208a5536608c2b40525eebadbbdeb7780d7f2
34556 * g10/getkey.c (have_secret_key_with_kid): Do not change the search
34559 build: Avoid distributing backup files etc.
34560 + commit b47fe2b14e2a610706bdeff9dbd9a5f7bd6f6b3a
34561 * Makefile.am (EXTRA_DIST): Do not include directories.
34563 2014-10-30 Werner Koch <wk@gnupg.org>
34565 tests: Speed up the genkey1024.test by using not so strong random.
34566 + commit 9546aa3cc87fc83a40768a12fbbceb19496ce129
34567 * agent/gpg-agent.c (oDebugQuickRandom): New.
34568 (opts): New option --debug-quick-random.
34569 (main): Use new option.
34570 * common/asshelp.c (start_new_gpg_agent): Add hack to pass an
34571 additional argument for the agent name.
34572 * tests/openpgp/defs.inc: Pass --debug-quick-random to the gpg-agent
34573 starting parameters.
34574 * tests/openpgp/version.test: Ditto.
34576 2014-10-29 Werner Koch <wk@gnupg.org>
34578 common: Check option arguments for a valid range.
34579 + commit 0d73a242cb53522669cf712b5ece7d1ed05d003a
34580 * common/argparse.h (ARGPARSE_INVALID_ARG): New.
34581 * common/argparse.c: Include limits h and errno.h.
34582 (initialize): Add error strings for new error constant.
34583 (set_opt_arg): Add range checking.
34585 Fix stdint.h problem for Apple.
34586 + commit f5592fcff308007322a201c970a6d5e8763c9fe3
34587 * gl/stdint_.h [__APPLE__]: Include hack.
34589 2014-10-27 Werner Koch <wk@gnupg.org>
34591 speedo: Fixes for native build.
34592 + commit 158fe900183daf745821dea7a70cf1c673cd8de0
34593 * build-aux/speedo.mk (TARGETOS): Init with empty string.
34594 (speedo_pkg_gnupg_configure): Use --enable-gpg2-is-gpg only for w32.
34595 (INST_VERSION, INST_PROD_VERSION): Create only for w32.
34597 2014-10-24 Werner Koch <wk@gnupg.org>
34599 agent: Support pinentries with integrated repeat passphrase feature.
34600 + commit c9aadcb3a248632c07391ff3d829bece9320a901
34601 * agent/agent.h (struct pin_entry_info_s): Add fields repeat_okay and
34603 * agent/call-pinentry.c (close_button_status_cb): Rewrite and check
34604 for PIN_REPEAT. Change users to check only the relevant bit.
34605 (agent_askpin): Support repeat logic of new Pinentries.
34607 * agent/command-ssh.c (ssh_identity_register): Use the new repeat
34609 * agent/genkey.c (agent_ask_new_passphrase): Ditto.
34611 2014-10-19 Werner Koch <wk@gnupg.org>
34613 gpg: Silence "packet with obsolete versoin" warnings.
34614 + commit 472a4a0d82add2d17154fa38e0074eaea56c28c1
34615 * g10/parse-packet.c (parse_key): Print warning only in very verbose
34618 gpg: Make card key generation work again.
34619 + commit 1b8decc4767f0c55867327bdf3113204efcd19a7
34620 * g10/call-agent.c (agent_scd_learn): Rename from agent_learn.
34621 (agent_learn): New.
34622 * g10/keygen.c (gen_card_key): Call new agent-learn.
34624 2014-10-17 Werner Koch <wk@gnupg.org>
34626 dirmngr: Allow building without LDAP support.
34627 + commit 6d9491842d5da597980eaa59e1e3e2137965fe09
34628 * configure.ac: Add option --disable-ldap.
34629 (USE_LDAP): New ac_define and am_conditional.
34630 * dirmngr/Makefile.am: Take care of USE_LDAP.
34631 * dirmngr/dirmngr.c (!USE_LDAP): Make all ldap options dummy options
34632 and do not call any ldap function.
34633 * dirmngr/server.c (!USE_LDAP): Do not call any ldap function.
34634 * dirmngr/crlfetch.c (!USE_LDAP): Ditto.
34636 w32: Set SYSROOT to help finding config scripts.
34637 + commit a13705f4c18db56765f4af31376e81241dbabebe
34638 * autogen.sh <build-w32>: Set SYSROOT.
34640 gpg: Remove all support for v3 keys and always create v4-signatures.
34641 + commit 8fd150b05b744fe9465057c12529d5e6b6b02785
34642 * g10/build-packet.c (do_key): Remove support for building v3 keys.
34643 * g10/parse-packet.c (read_protected_v3_mpi): Remove.
34644 (parse_key): Remove support for v3-keys. Add dedicated warnings for
34646 * g10/keyid.c (hash_public_key): Remove v3-key support.
34647 (keyid_from_pk): Ditto.
34648 (fingerprint_from_pk): Ditto.
34650 * g10/options.h (opt): Remove fields force_v3_sigs and force_v4_certs.
34651 * g10/gpg.c (cmd_and_opt_values): Remove oForceV3Sigs, oNoForceV3Sigs,
34652 oForceV4Certs, oNoForceV4Certs.
34653 (opts): Turn --force-v3-sigs, --no-force-v3-sigs, --force-v4-certs,
34654 --no-force-v4-certs int dummy options.
34655 (main): Remove setting of the force_v3_sigs force_v4_certs flags.
34656 * g10/revoke.c (gen_revoke, create_revocation): Always create v4 certs.
34657 * g10/sign.c (hash_uid): Remove support for v3-signatures
34658 (hash_sigversion_to_magic): Ditto.
34659 (only_old_style): Remove this v3-key function.
34660 (write_signature_packets): Remove support for creating v3-signatures.
34661 (sign_file): Ditto.
34662 (sign_symencrypt_file): Ditto.
34663 (clearsign_file): Ditto. Remove code to emit no Hash armor line if
34664 only v3-keys are used.
34665 (make_keysig_packet): Remove arg SIGVERSION and force using
34666 v4-signatures. Change all callers to not pass a value for this arg.
34667 Remove all v3-key related code.
34668 (update_keysig_packet): Remove v3-signature support.
34669 * g10/keyedit.c (sign_uids): Always create v4-signatures.
34671 * g10/textfilter.c (copy_clearsig_text): Remove arg pgp2mode and
34674 2014-10-13 Werner Koch <wk@gnupg.org>
34676 gpg: Remove extra RSA import status line.
34677 + commit fab89f159bcb36ea7285af661d5756eefa981822
34678 * g10/import.c (stats_s): Remove field "imported_rsa".
34679 (import_print_stats): Do not print separate value for RSA.
34680 (import_one): Remove the RSA counter.
34682 gpg: Fix informative printing of user ids.
34683 + commit 21c0ea6bafafbcc4a2e07f0ac76275cc0229e9a0
34684 * g10/getkey.c (keyid_list): Add field "fpr".
34685 (cache_user_id): Store fpr and check for dups only by fpr.
34686 (get_pubkey_byfpr): New.
34687 (get_user_id_string): Make static and use xasprintf.
34688 (get_long_user_id_string): Use xasprintf.
34689 (get_user_id_byfpr): New.
34690 (get_user_id_byfpr_native): New.
34691 * g10/keyid.c (fingerprint_from_pk): Make arg RET_LEN optional.
34692 * g10/import.c (import_one): Use get_user_id_byfpr_native.
34694 gpg: Allow importing keys with duplicated long key ids.
34695 + commit c60814a5ce13932d933b363abc0c60c12783ae2f
34696 * g10/keydb.c (keydb_handle): Add field no_caching.
34697 (keyblock_cache): Repalce field kid by fpr.
34698 (keydb_disable_caching): New.
34699 (keydb_search): Use the fingerprint as cache index.
34701 * g10/import.c (import_one): Use the fingerprint and not the kid to
34702 lookup the key. Call keydb_disable_caching beofre re-searching for
34705 * tests/openpgp/import.test: Add a test case.
34707 tests: Speed up conventional encryption tests for gpg.
34708 + commit 2543f0ab9c7b4247347688863f898667bae31984
34709 * tests/openpgp/conventional-mdc.test: Add an s2k-count option.
34710 * tests/openpgp/conventional.test: Ditto.
34712 2014-10-12 Werner Koch <wk@gnupg.org>
34714 gpg: Minor change for better readability.
34715 + commit 2d68dc437e7de92619abe3a019b0a7606487b6bf
34716 * g10/build-packet.c (write_version): Remove.
34717 (do_pubkey_enc, do_onepass_sig): Write version directly.
34719 2014-10-10 Werner Koch <wk@gnupg.org>
34721 doc: Fix a man page rendering problem.
34722 + commit 5b5e5a6027ae1743719e112aa4e9055f1b8133a7
34723 * doc/gpg-agent.texi (Agent Configuration): Fix rendering of the
34724 sshcontrol example.
34726 2014-10-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
34728 gpg: Add build and runtime support for larger RSA keys.
34729 + commit 6cabb7a2a18f871b8c3d5de58bcdc5aaa5b201af
34730 * configure.ac: Added --enable-large-secmem option.
34731 * g10/options.h: Add opt.flags.large_rsa.
34732 * g10/gpg.c: Contingent on configure option: adjust secmem size,
34733 add gpg --enable-large-rsa, bound to opt.flags.large_rsa.
34734 * g10/keygen.c: Adjust max RSA size based on opt.flags.large_rsa
34735 * doc/gpg.texi: Document --enable-large-rsa.
34737 2014-10-09 Werner Koch <wk@gnupg.org>
34739 gpg: Skip overlong keys and a print a warning.
34740 + commit 2ca90f78cee91c43b8d538d1cb92728f8e1452d5
34741 * kbx/keybox-search.c (keybox_search): Add arg r_skipped and skip too
34743 * sm/keydb.c (keydb_search): Call keybox_search with a dummy param.
34744 * g10/keydb.c (struct keydb_handle): Add field skipped_long_blobs.
34745 (keydb_search_reset): Reset that field.
34746 (keydb_search): Update that field.
34747 (keydb_get_skipped_counter): New.
34748 * g10/keylist.c (list_all): Print count of skipped keys.
34750 gpg: Sync keylist output and warning messages.
34751 + commit 60e21d8b85888b8c9ea15c70268f98d780fdf5fb
34752 * g10/keylist.c (list_all): Flush stdout before logging.
34753 * g10/misc.c (print_pubkey_algo_note): Ditto.
34754 (print_cipher_algo_note): Ditto.
34755 (print_digest_algo_note): Ditto.
34756 (print_md5_rejected_note): Ditto.
34758 kbx: Fix handling of overlong keys.
34759 + commit b6507bb80e4e4aa5c85a918fdcf5c28cccb75081
34760 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 10^6 to 2MiB.
34761 (_keybox_read_blob2): Skip too long record records.
34762 (_keybox_write_blob): Do not accept too long record.
34763 * kbx/keybox-dump.c (file_stats_s): Add field skipped_long_blobs.
34764 (_keybox_dump_file): Print new counter.
34765 (_keybox_dump_file): Skip too long records.
34768 To test this feature you may set the limit back to 1MiB and use key
34769 F7F0E70F307D56ED which is in my local copy close to 2MiB. Without
34770 this patch it was possible to import the key but access to that key
34771 and all keys stored after it was not possible.
34773 gpg: Take care to use pubring.kbx if it has ever been used.
34774 + commit ec332d58efc50f6508b87fc9f51db68c39cee044
34775 * kbx/keybox-defs.h (struct keybox_handle): Add field for_openpgp.
34776 * kbx/keybox-file.c (_keybox_write_header_blob): Set openpgp header
34778 * kbx/keybox-blob.c (_keybox_update_header_blob): Add arg for_openpgp
34779 and set header flag.
34780 * kbx/keybox-init.c (keybox_new): Rename to do_keybox_new, make static
34781 and add arg for_openpgp.
34782 (keybox_new_openpgp, keybox_new_x509): New. Use them instead of the
34784 * kbx/keybox-update.c (blob_filecopy): Add arg for_openpgp and set the
34785 openpgp header flags.
34787 * g10/keydb.c (rt_from_file): New. Factored out and extended from
34788 keydb_add_resource.
34789 (keydb_add_resource): Switch to the kbx file if it has the openpgp
34792 * kbx/keybox-dump.c (dump_header_blob): Print header flags.
34794 2014-10-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
34796 Avoid unnecessary library linkage.
34797 + commit 27fe067efea883629354450a042ad09e47d90ff8
34798 * dirmngr/Makefile.am: Avoid $(DNSLIBS) for dirmngr_ldap
34799 * g10/Makefile.am: $(LIBREADLINE) is only for gpg2; gpgv2 does not
34800 need $(LIBASSUAN_LIBS)
34801 * sm/Makefile.am: gpgsm does not need $(ZLIBS)
34802 * tools/Makefile.am: gpgconf does not need $(NPTH_LIBS)
34804 2014-10-08 Werner Koch <wk@gnupg.org>
34806 gpg: Avoid error exit if keygrip computations fails in a key listing.
34807 + commit 3ae6afc1336d42bd95fa0b7f5f83bd299ae26b97
34808 * g10/keyid.c (keygrip_from_pk): Use log_info and clear array on error.
34810 2014-10-03 Werner Koch <wk@gnupg.org>
34812 Release 2.1.0-beta864.
34813 + commit 0943c7cc23371943e9670a2f35c318d847cbac6a
34816 gpg: Allow creating a cert-only primary key.
34817 + commit bc8583f247898a1fa45f6de834d34b335ab1952c
34818 * g10/keygen.c (ask_key_flags): Allow a 'c' in direct entry.
34820 build: Add configure options --disable-{ntb,gnu}tls.
34821 + commit 6522a68d8d11e15ee77102e6830f251c2d9f440d
34822 * configure.ac: Add --disable-ntbtls and --disable-gnutls.
34824 2014-10-03 Andre Heinecke <aheinecke@intevation.de>
34826 gpg: Check gpg-agent version before 2.1 migration.
34827 + commit a6fcdbc9e0fc0e45a3badc23813e689e83059b61
34828 * g10/call-agent.c, g10/call-agent.h (agent_get_version): New.
34829 * g10/migrate.c (migrate_secring): Abort migration if
34830 agent_get_version returns not at least 2.1.0
34832 2014-10-03 Werner Koch <wk@gnupg.org>
34834 po: Update German translation.
34835 + commit b15d5d42adf31c0797797ebe19c471ab6f52c668
34838 Remove support for the GPG_AGENT_INFO envvar.
34839 + commit 9c380384dafb213334f8834178c5ceb0bf33db6e
34840 * agent/agent.h (opt): Remove field use_standard_socket.
34841 * agent/command.c (cmd_killagent): Always allow killing.
34842 * agent/gpg-agent.c (main): Turn --{no,}use-standard-socket and
34843 --write-env-file into dummy options. Always return true for
34844 --use-standard-socket-p. Do not print the GPG_AGENT_INFO envvar
34845 setting or set that envvar.
34846 (create_socket_name): Simplify by removing non standard socket
34848 (check_for_running_agent): Ditto.
34849 * common/asshelp.c (start_new_gpg_agent): Remove GPG_AGENT_INFO use.
34850 * common/simple-pwquery.c (agent_open): Ditto.
34851 * configure.ac (GPG_AGENT_INFO_NAME): Remove.
34852 * g10/server.c (gpg_server): Do not print the AgentInfo comment.
34853 * g13/server.c (g13_server): Ditto.
34854 * sm/server.c (gpgsm_server): Ditto.
34855 * tools/gpgconf.c (main): Simplify by removing non standard socket
34858 2014-10-02 Werner Koch <wk@gnupg.org>
34860 gpg: Fix regression removing SHA256.
34861 + commit 688a903b4b3ad348c0d09e9d3fab8a12f4f94311
34862 * g10/misc.c (map_md_openpgp_to_gcry): Always use SHA256.
34864 First changes for future use of NTBTLS.
34865 + commit f2361e6d582d4343d71d294ed1da654afe7750ee
34866 * configure.ac (NEED_NTBTLS_ABI, NEED_NTBTLS_VERSION): New.
34867 (HTTP_USE_NTBTLS): New. Prefer over GNUTLS.
34868 * m4/ntbtls.m4: New.
34869 * m4/Makefile.am (EXTRA_DIST): Add new file.
34870 * common/http.c: Add conditionals to eventually use NTBTLS.
34872 build: Update m4 scripts.
34873 + commit 6bc0cd6202033be113999dbf27be4014bdf2c784
34874 * m4/gpg-error.m4: Update from Libgpg-error git master.
34875 * m4/libgcrypt.m4: Update from Libgcrypt git master.
34876 * configure.ac: Declare SYSROOT a precious variable. Add extra error
34877 message for library configuration mismatches.
34879 2014-09-29 Werner Koch <wk@gnupg.org>
34881 doc: Remove GnuPG-1 related parts from gpg.texi.
34882 + commit edd191e5b006dc6ace1d41672e7201cbe58c41c9
34883 * doc/Makefile.am (YAT2M_OPTIONS): Add 2.1 to the source info.
34884 * doc/gpg.texi: Remove gpg1 related texts.
34886 2014-09-27 Werner Koch <wk@gnupg.org>
34888 gpg: Default to SHA-256 for all signature types on RSA keys.
34889 + commit d33246700578cddd1cb8ed8164cfbba50aba4ef3
34890 * g10/main.h (DEFAULT_DIGEST_ALGO): Use SHA256 in --gnupg and SHA1 in
34891 strict RFC or PGP modes.
34892 * g10/sign.c (make_keysig_packet): Use DEFAULT_DIGEST_ALGO also for
34893 RSA key signatures.
34894 * configure.ac: Do not allow to disable sha256.
34896 gpg: Simplify command --gen-key and add --full-gen-key.
34897 + commit f3625bb018fa8d5bc754f982996f8788386f0a9d
34898 * g10/gpg.c (aFullKeygen): New.
34899 (opts): Add command --full-key-gen.
34900 (main): Implement it.
34901 * g10/keygen.c (DEFAULT_STD_ALGO): Replace wrong GCRY_PK_RSA although
34902 the value is identical.
34903 (DEFAULT_STD_CURVE): New.
34904 (DEFAULT_STD_SUBALGO): New.
34905 (DEFAULT_STD_SUBKEYSIZE): New.
34906 (DEFAULT_STD_SUBCURVE): New.
34907 (quick_generate_keypair): Use new macros here.
34908 (generate_keypair): Add arg "full" and fix call callers. Do not ask
34909 for keysize in non-full node.
34910 (ask_user_id): Add arg "full" and simplify for non-full mode.
34912 2014-09-26 Werner Koch <wk@gnupg.org>
34914 gpg: Add shortcut for setting key capabilities.
34915 + commit 7ff4ea2160e87a16bf701552d3b9c7ab1c42f9ec
34916 * g10/keygen.c (ask_key_flags): Add shortcut '='.
34917 * doc/help.txt (gpg.keygen.flags): New.
34919 2014-09-25 Werner Koch <wk@gnupg.org>
34921 gpg: Do not always print dashes in obsolete_option.
34922 + commit 20c6da50d4f6264d26d113d7de606971f719a0ca
34923 * g10/gpg.c (main): Pass option names to obsolete_option without
34925 * g10/misc.c (obsolete_option, obsolete_scdaemon_option): Print double
34926 dash only for command line options.
34928 2014-09-25 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
34930 gpg: Warn about (but don't fail) on scdaemon options in gpg.conf.
34931 + commit 371c2b14b0347209efd23b4e54e1981a12d7aeab
34932 * g10/gpg.c: Add config options that should belong in scdaemon.conf
34933 * g10/main.h, g10/misc.c (obsolete_scdaemon_option): New.
34935 2014-09-22 Werner Koch <wk@gnupg.org>
34937 speedo: Check that wget and gpgv are installed.
34938 + commit 59b6f6f16e095162358ac2001aeb2c058de2fd1e
34939 * build-aux/getswdb.sh: Check for required tools.
34941 speedo: Autodetect sha1sum tools.
34942 + commit 2427bc5bc76b00cfe790e1f370113f5b4199e8fa
34943 * build-aux/getswdb.sh: Add option --find-sha1sum.
34944 * build-aux/speedo.mk (check-tools): New phony target. Not yet used.
34945 (SHA1SUM): New var. Use it instead of sha1sum.
34947 gpg: Create default keyring with .kbx suffix.
34948 + commit bc2f5c1d1afbe8ba413e594639fd05f19df32f75
34949 * g10/keydb.c (maybe_create_keyring_or_box): Rename arg for clarity.
34950 (keydb_add_resource): Fix order of args to maybe_create_keyring_or_box
34951 and check and create .kbx.
34953 2014-09-20 Werner Koch <wk@gnupg.org>
34955 gpg: --delete-secret-key - check that a secret key exists.
34956 + commit 1d33d03f0bb576601f5eef1a548cbc519f251b17
34957 * g10/delkey.c (do_delete_key): Check availibility of a secret key.
34959 gpg: Make algorithm selection prompt for ECC more clear.
34960 + commit cf648fc5c8cb20bfea4fd303631ba311bbaf3659
34961 * g10/keygen.c (ask_algo): Change 9 to "ECC and ECC".
34963 2014-09-18 Werner Koch <wk@gnupg.org>
34965 Release 2.1.0-beta834.
34966 + commit 93f158df381af86036332c4314c2d4a64eab3e62
34969 speedo: Distribute needed files.
34970 + commit 72a16d80d4505aa0ff509aae41f848bbe42ed129
34971 * Makefile.am (EXTRA_DIST): Add speedo stuff.
34973 build: Enable gpgtar by default.
34974 + commit 345a8374f31e637a99e6438e527670cf6845ca05
34977 common: Do not build maintainer modules in non-maintainer mode.
34978 + commit 927db789c19cbe5656ff980841ee37dd3a8989e7
34979 * common/Makefile.am (module_maint_tests): Use only in maintainer
34981 (t_common_cflags): New.
34983 common: Remove superfluous statements.
34984 + commit cad181b5ece3ab6910575c82c731ce2b47271a09
34985 * common/exechelp-posix.c: Remove weak pragmas.
34986 * common/sexputil.c (make_canon_sexp_from_rsa_pk): Remove double
34989 g13: Avoid segv after pipe creation failure.
34990 + commit 6e7bcabd781a3ca9ad7dd90d962fb2a239feab4a
34991 * g13/call-gpg.c (gpg_encrypt_blob): Init some vars in case of an
34993 (gpg_decrypt_blob): Ditto.
34995 scd: Fix int/short mismatch in format string of app-p15.c.
34996 + commit b17e8bbf20239e840763f98d3e62f16efdc82ba3
34997 * scd/app-p15.c (parse_certid): Use snprintf and cast value.
34998 (send_certinfo): Ditto.
34999 (send_keypairinfo): Ditto.
35000 (do_getattr): Ditto.
35002 agent: Init a local variable in the error case.
35003 + commit f82a6e0f08725008c5bbf702a5f4c175ea09f01c
35004 * agent/pksign.c (do_encode_md): Init HASH on error.
35006 agent: Remove left over debug output.
35007 + commit 4f35ef499ac913036b7b69296a62afe8159b90b8
35008 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Remove debug
35011 agent: Silence compiler warning for a debug message.
35012 + commit ba6f8b3d9ec83b35c4f3839853567491fee2f99c
35013 * agent/call-pinentry.c (agent_query_dump_state): Use %p for
35016 sm: Silence compiler warnings.
35017 + commit 34b2e8c7dcb0edb28f99edbd788d73491334e3c0
35018 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Remove unused var I.
35019 * sm/certreqgen.c (proc_parameters): Init PUBLIC to avoid compiler
35022 gpg: Silence a compiler warning.
35023 + commit 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4
35024 * g10/parse-packet.c (enum_sig_subpkt): Replace hack.
35026 gpg: Replace a hash algo test function.
35027 + commit 327134934d79d141d92170ad3b4a6ef3cb718ee0
35028 * g10/gpg.c (print_mds): Replace openpgp_md_test_algo.
35030 speedo: Various fixes.
35031 + commit 2f065d7ab6c514013eb8504281f50284764c26ec
35032 * build-aux/speedo.mk: Take zlib and bzip2 from ftp.gnupg.org. Minor
35035 2014-09-17 Werner Koch <wk@gnupg.org>
35037 gpg: Print a warning if the subkey expiration may not be what you want.
35038 + commit ae3d1bbb65b65cf3c57bb14886be120f5e31635d
35039 * g10/keyedit.c (subkey_expire_warning): New.
35040 (keyedit_menu): Call it when needed.
35042 gpg: Improve passphrase caching.
35043 + commit 457bce5cd39146df047e4740162125c32c738789
35044 * agent/cache.c (last_stored_cache_key): New.
35045 (agent_get_cache): Allow NULL for KEY.
35046 (agent_store_cache_hit): New.
35047 * agent/findkey.c (unprotect): Call new function and try to use the
35050 * g10/revoke.c (create_revocation): Add arg CACHE_NONCE and pass to
35051 make_keysig_packet.
35052 (gen_standard_revoke): Add arg CACHE_NONCE and pass to
35054 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke with
35057 2014-09-12 Werner Koch <wk@gnupg.org>
35059 gpg: Use algorithm id 22 for EdDSA.
35060 + commit 83c2d2396cc9fa6bdd887a560830fc0f48b01b08
35061 * common/openpgpdefs.h (PUBKEY_ALGO_EDDSA): Change to 22.
35062 * g10/keygen.c (ask_curve): Reword the Curve25519 warning note.
35064 2014-09-11 Werner Koch <wk@gnupg.org>
35066 gpg: Stop early on bogus old style comment packets.
35067 + commit 3d250d21d36e8a0935b645f1ed5134ef9083530e
35068 * g10/parse-packet.c (parse_key): Take care of too short packets for
35069 old style commet packets.
35071 2014-09-10 Werner Koch <wk@gnupg.org>
35073 dirmngr: Support https for KS_FETCH.
35074 + commit 84419f42da0fd436a9e0e669730157e74ce38b77
35075 * dirmngr/ks-engine-hkp.c (cert_log_cb): Move to ...
35076 * dirmngr/misc.c (cert_log_cb): here.
35077 * dirmngr/ks-engine-http.c (ks_http_fetch): Support 307-redirection
35080 dirmngr: Fix the ks_fetch command for the http scheme.
35081 + commit 3b20cc21de86ac8a475bdefd3aebb02a12fb8d0b
35082 * common/http.c (http_session_ref): Allow for NULL arg.
35084 2014-09-08 Werner Koch <wk@gnupg.org>
35086 gpg: Fix memory leak in ECC encryption.
35087 + commit 98f65291d7abecc1e4d618125f33b6ce759e0892
35088 * g10/pkglue.c (pk_encrypt): Fix memory leak and streamline error
35091 2014-09-02 Werner Koch <wk@gnupg.org>
35093 gpg: Fix export of NIST ECC keys.
35094 + commit bf2fc12b83b45953f7afa403b8d91c36d0b50ec9
35095 * common/openpgp-oid.c (struct oidtable): New.
35096 (openpgp_curve_to_oid): Rewrite and allow OID as input.
35097 (openpgp_oid_to_curve): Make use of the new table.
35099 agent: Fix import of OpenPGP EdDSA keys.
35100 + commit afe85582ddc2ebc285728bf6417f8929fd0b3281
35101 * agent/cvt-openpgp.c (get_keygrip): Special case EdDSA.
35102 (convert_secret_key): Ditto.
35103 (convert_transfer_key): Ditto.
35104 (apply_protection): Handle opaque MPIs.
35106 (do_unprotect): Check FLAG_OPAQUE instead of FLAG_USER1 before
35107 unpacking an opaque mpi.
35109 2014-09-01 Kyle Butt <kylebutt@gmail.com>
35111 gpg: Fix export of ecc secret keys by adjusting check ordering.
35112 + commit 4054d86abcb7ad953ed9e988b1765cb9266faefd
35113 * g10/export.c (transfer_format_to_openpgp): Move the check against
35114 PUBKEY_MAX_NSKEY to after the ECC code adjusts the number of
35117 2014-09-01 Werner Koch <wk@gnupg.org>
35119 agent: Allow key unprotection using AES-256.
35120 + commit c913e09ebdbb1a1e9838a0a5897448841f5e9bc3
35121 * agent/protect.c (PROT_CIPHER): Rename to GCRY_CIPHER_AES128 for
35123 (do_decryption): Add args prot_cipher and prot_cipher_keylen. USe
35124 them instead of the hardwired values.
35125 (agent_unprotect): Change to use a table of protection algorithms.
35126 Add AES-256 variant.
35128 2014-08-28 Werner Koch <wk@gnupg.org>
35130 gpg: Do not show "MD5" and triplicated "RSA" in --version.
35131 + commit be98b5960ebd48929c399b0b91c95bfc0cb9749b
35132 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
35133 (build_list_md_test_algo): Ignore MD5.
35135 gpg: Do not show "MD5" and triplicated "RSA" in --version.
35136 + commit 40ad42dbe3c67d8103aedb6b584f4bedc5f93307
35137 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
35138 (build_list_md_test_algo): Ignore MD5.
35140 2014-08-26 Werner Koch <wk@gnupg.org>
35142 gpg: Remove CAST5 from the default prefs and order SHA-1 last.
35143 + commit 15cfd9a3bcdd561091a28c8f989c616b87348463
35144 * g10/keygen.c (keygen_set_std_prefs): Update prefs.
35146 Switch to the libgpg-error provided estream.
35147 + commit 519305feb888b529c005b40445d041a088a2f8fc
35148 * configure.ac (NEED_GPG_ERROR_VERSION): Reguire 1.14.
35149 (GPGRT_ENABLE_ES_MACROS): Define.
35150 (estream_INIT): Remove.
35151 * m4/estream.m4: Remove.
35152 * common/estream-printf.c, common/estream-printf.h: Remove.
35153 * common/estream.c, common/estream.h: Remove.
35154 * common/init.c (_init_common_subsystems): Call gpgrt initialization.
35156 gpg: Allow for positional parameters in the passphrase prompt.
35157 + commit a731c22952278c12c601b73d7581fda3a15a4b5b
35158 * g10/passphrase.c (passphrase_get): Replace sprintf by xasprintf.
35160 2014-08-20 Werner Koch <wk@gnupg.org>
35162 gpg: Fix "can't handle public key algorithm" warning.
35163 + commit cb680c5ea540738692a5c74951802b0fdc658e85
35164 * g10/parse-packet.c (unknown_pubkey_warning): Check for encr/sign
35167 2014-08-19 Werner Koch <wk@gnupg.org>
35169 speedo: Get version numbers from online database.
35170 + commit 31649e72fd106a990614ce3cf720640a841ba722
35171 * build-aux/getswdb.sh: New.
35172 * build-aux/speedo.mk: Get release version numbers from swdb.lst.
35174 build: Create VERSION file via autoconf.
35175 + commit 4fc1c712e986f280057b1bce7ca4696ba6d95dfc
35176 * Makefile.am (dist-hook): Remove creation of VERSION.
35177 (EXTRA_DIST): Add VERSION.
35178 * configure.ac: Let autoconf create VERSION.
35180 2014-08-18 Werner Koch <wk@gnupg.org>
35182 gpg: Install the current release signing pubkey.
35183 + commit e5da80bc1888bf8801e69c9ff99f7f47550f7a09
35184 * g10/distsigkey.gpg: New.
35186 agent: Return NO_SECKEY instead of ENONET for PKSIGN and others.
35187 + commit 3981ff15f3c0829ba22cd37794353502d996683c
35188 * agent/pksign.c (agent_pksign_do): Replace ENONET by NO_SECKEY.
35189 * agent/findkey.c (agent_key_from_file): No diagnostic for NO_SECKEY.
35190 * agent/pkdecrypt.c (agent_pkdecrypt): Replace checking for ENOENT.
35192 kbx: Make user id and signature data optional for OpenPGP.
35193 + commit e4aa006e4807285ffdd881e4e05af3bc47c5c964
35194 * kbx/keybox-blob.c (_keybox_create_openpgp_blob): Remove restriction.
35196 gpg: Change default cipher for --symmetric from CAST5 to AES-128.
35197 + commit 57df1121c18b004dd763b35eabf7b51fc9e8ec38
35198 * g10/main.h (DEFAULT_CIPHER_ALGO): Chhange to AES or CAST5 or 3DES
35199 depending on configure option.
35200 * g10/gpg.c (main): Set opt.s2k_cipher_algo to DEFAULT_CIPHER_ALGO.
35202 yat2m: Support @set and @value.
35203 + commit 425d0750168f6b66a5d78a857cf21375a8f129eb
35204 * doc/yat2m.c (variablelist): New.
35205 (set_variable): New.
35206 (macro_set_p): Also check the variables.
35207 (proc_texi_cmd): Support the @value command.
35208 (parse_file): Support the @set command.
35209 (top_parse_file): Release variablelist.
35211 yat2m: Support the $* command for man page rendering.
35212 + commit 7e51ef0f77962f5fb215da53817caf28899ca190
35215 2014-08-17 Werner Koch <wk@gnupg.org>
35217 estream: Change license from GPL to LPGL.
35218 + commit af1196512f505e8a3a338f9b72394fa3585a5234
35219 * common/estream-printf.c, common/estream-printf.h: Change license.
35220 * common/estream.c, common/estream.h: Ditto.
35222 2014-08-14 Werner Koch <wk@gnupg.org>
35224 Release 2.1.0-beta783.
35225 + commit a13198d9bcee368a8de7a401feb017efc83ff795
35228 po: Update the German (de) translation.
35229 + commit fe9ff33b9dc8793957998341cf4bcf5e50827b41
35232 sm: Create homedir and lock empty keybox creation.
35233 + commit c4b60cdae8dbf68206fd105fd09adeb61a9dafe4
35234 * sm/gpgsm.h (opt): Add field "no_homedir_creation".
35235 * sm/gpgsm.c (main): Set it if --no-options is used.
35236 * sm/keydb.c (try_make_homedir): New. Similar to the one from
35238 (maybe_create_keybox): New. Similar to the one from g10/keydb.c.
35239 (keydb_add_resource): Replace some code by maybe_create_keybox.
35241 gpg: Screen keyserver responses.
35242 + commit c23c18c1543d1ff58f0f78baaa6a8e319c659ecb
35243 * g10/main.h (import_screener_t): New.
35244 * g10/import.c (import): Add screener callbacks to param list.
35245 (import_one): Ditto.
35246 (import_secret_one): Ditto.
35247 (import_keys_internal): Ditto.
35248 (import_keys_stream): Ditto.
35249 * g10/keyserver.c (struct ks_retrieval_screener_arg_s): New.
35250 (keyserver_retrieval_screener): New.
35251 (keyserver_get): Pass screener to import_keys_es_stream().
35253 scd: Minor changes to app-sc-hsm.
35254 + commit a61b28df1f29b1e306115282ec1ce580fa54945a
35255 * scd/app-sc-hsm.c: Re-indendet some parts and set some vars to NULL
35256 after xfree for improbed robustness.
35257 (read_ef_prkd): Replace serial operator by blocks for better
35259 (apply_PKCS_padding): Rewrite for easier auditing.
35260 (strip_PKCS15_padding): Ditto. Add stricter check on SRCLEN.
35262 gpg: Disable an MD5 workaround for pgp2 by default.
35263 + commit ae29b52119aa419989b773b2d6abb6e287dfc81b
35264 * g10/sig-check.c (do_check): Move some code to ...
35265 * g10/misc.c (print_md5_rejected_note): new function.
35266 * g10/mainproc.c (proc_tree, proc_plaintext): Enable MD5 workaround
35267 only if option --allow-weak-digest-algos is used.
35269 gpg: Remove options --pgp2 and --rfc1991.
35270 + commit 2b8d8369d59249b89526c18c5ac276e6445dc35e
35271 * g10/gpg.c (oRFC1991, oPGP2): Remove
35272 (opts): Remove --pgp2 and --rfc1991.
35273 * g10/options.h (CO_PGP2, CO_RFC1991): Remove. Remove all users.
35274 (RFC2440, PGP2): Remove. Remove all code only enabled by these
35276 * tests/openpgp/clearsig.test: Remove --rfc1991 test.
35278 build: Fix autogen.sh base version hack.
35279 + commit 49c9a958e0b786850309bca555d4465c97d337e1
35280 * autogen.sh <find-version>: Fix.
35282 gpg: Remove --compress-keys and --compress-sigs feature.
35283 + commit 71b55e91f02cdb65a8884892f71c4c7bf8a75247
35284 * g10/gpg.c (oCompressKeys, oCompressSigs): Remove.
35285 (opts): Turn --compress-keys and --compress-signs in NOPs.
35286 * g10/options.h (opt): Remove fields compress_keys and compress_sigs.
35287 * g10/export.c (do_export): Remove compress_keys feature.
35288 * g10/sign.c (sign_file): Remove compress_sigs feature.
35290 2014-08-13 Werner Koch <wk@gnupg.org>
35292 gpg: Add list-option "show-usage".
35293 + commit 7d0492075ea638607309b3ea6a792b0e95ea7d98
35294 * g10/gpg.c (parse_list_options): Add "show-usage".
35295 * g10/options.h (LIST_SHOW_USAGE): New.
35296 * g10/keyid.c (usagestr_from_pk): Add arg FILL. Change caller.
35297 * g10/keylist.c (list_keyblock_print): Print usage info.
35299 2014-08-12 Werner Koch <wk@gnupg.org>
35301 gpg: Make --with-colons work again for --search-keys.
35302 + commit a57c33c855c6757c8770529ee71f0f90744cd7a6
35303 * g10/keyserver.c (search_line_handler): Replace log_debug by
35306 2014-08-08 NIIBE Yutaka <gniibe@fsij.org>
35308 po: Update Japanese translation.
35309 + commit 2d9f76e07082fc231303ac2c6ae1aea3c98fa2e4
35312 2014-07-25 Werner Koch <wk@gnupg.org>
35314 scd: Minor and editorial changes to app-sc-hsm.c.
35315 + commit 2e936915cf2f830e60d974d607b08822645f5753
35316 * scd/app-sc-hsm.c (select_and_read_binary): Use SW_ macro.
35317 (parse_certid): Remove useless test.
35318 (send_certinfo, send_keypairinfo): Shrink malloc to the needed size.
35319 (do_getattr): Ditto.
35320 (verify_pin): Use SW_ macro.
35321 (do_decipher): Replace OFS variable and extend comment.
35323 scd: Add a new status word code.
35324 + commit e49c851ff54d5ecf856411bf6cdee721695ea172
35325 * scd/apdu.h (SW_REF_DATA_INV): New.
35326 * scd/apdu.c (apdu_strerror): Add string.
35328 2014-07-25 Andreas Schwier <andreas.schwier@cardcontact.de>
35330 scd: Support for SmartCard-HSM.
35331 + commit 8eb9224f32ddf1c9e1490c4d9688a177f8b6ae64
35332 * scd/app-sc-hsm.c: New.
35333 * scd/app.c (select_application, get_supported_applications): Register
35336 2014-07-25 Werner Koch <wk@gnupg.org>
35338 gpg: Switch to an EdDSA format with prefix byte.
35339 + commit 557cc11a605dd280d03c52d8b546deed8c4c714d
35340 * g10/keygen.c (gen_ecc): USe "comp" for EdDSA.
35342 2014-07-23 Werner Koch <wk@gnupg.org>
35344 agent: Show just one warning with all failed passphrase constraints.
35345 + commit b3378b3a56fc90ba8ae38e6298b23a378305af32
35346 * agent/genkey.c (check_passphrase_constraints): Build a final warning
35349 agent: Only one confirmation prompt for an empty passphrase.
35350 + commit a24510d53bb23e3a680ed2c306e576268c07060d
35351 * agent/genkey.c (check_passphrase_constraints): Moev empty passphrase
35352 check to the front.
35354 gpg: Add command --quick-gen-key.
35355 + commit ea186540db5b418bc6f6e5ca90337672c9981c88
35356 * g10/gpg.c (aQuickKeygen): New.
35357 * g10/misc.c (is_valid_user_id): New stub.
35358 * g10/keygen.c (quickgen_set_para): New.
35359 (quick_generate_keypair): New.
35361 common: Add cpr_get_answer_is_yes_def()
35362 + commit 75127bc4561787aa9bc1cf976658e20192446d7f
35363 * g10/cpr.c (cpr_get_answer_is_yes): Factor code out to ....
35364 (cpr_get_answer_is_yes_def): ...new.
35366 gpg: Make --quick-sign-key promote local key signatures.
35367 + commit 17404b2fccbc74c4f0b2364cc08e9dcc64175cf8
35368 * g10/keyedit.c (sign_uids): Promote local sigs in quick mode.
35370 2014-07-22 Werner Koch <wk@gnupg.org>
35372 scd: Do not use the pcsc-wrapper.
35373 + commit bc6b452129178658da7241903ca2174c79281752
35374 * scd/apdu.c (NEED_PCSC_WRAPPER): Do not define.
35375 * scd/Makefile.am (libexec_PROGRAMS): Remove gnupg-pcsc-wrapper
35376 (gnupg_pcsc_wrapper_SOURCES): Remove.
35377 (gnupg_pcsc_wrapper_LDADD): Remove.
35378 (gnupg_pcsc_wrapper_CFLAGS): Remove.
35380 2014-07-21 Werner Koch <wk@gnupg.org>
35382 gpg: Improve --list-packets output for faulty packets.
35383 + commit 5b34e347b612765f31061d077b7c343e08662ba9
35384 * g10/parse-packet.c: Add list_mode output for certain failures.
35386 gpg: Cap size of attribute packets at 16MB.
35387 + commit bab9cdd971f35ff47e153c00034c95e7ffeaa09a
35388 * g10/parse-packet.c (parse_attribute): Avoid xmalloc failure and cap
35391 2014-07-03 Werner Koch <wk@gnupg.org>
35393 Release 2.1.0-beta751.
35394 + commit 5ae34f574baca2b98a09fd982c941855558408e1
35397 gpg: Make show-uid-validity the default.
35398 + commit 5214d8f02bf65fb0a4af15ff80cf1369ccd4c167
35401 tests: Fix end-of-all-ticks test for Western locales.
35402 + commit 3533860ee316918dd47501c53e910bfd0032b39d
35403 * common/t-timestuff.c (test_timegm): Use timegm if available.
35404 (main): Set TX to UTC if timegm is not available.
35406 2014-07-03 Kristian Fiskerstrand <kf@sumptuouscapital.com>
35408 gpg: Spelling error.
35409 + commit b51af333bdf77c042c9fe748616e80d1f5e4d3f9
35412 2014-06-30 Werner Koch <wk@gnupg.org>
35414 gpg: Auto-create revocation certificates.
35415 + commit 03018ef9eec75e4d91ea53c95547a77dedef8f80
35416 * configure.ac (GNUPG_OPENPGP_REVOC_DIR): New config define.
35417 * g10/revoke.c (create_revocation): Add arg "leadin".
35418 (gen_standard_revoke): New.
35419 * g10/openfile.c (get_openpgp_revocdir): New.
35420 (open_outfile): Add MODE value 3.
35421 * g10/keyid.c (hexfingerprint): New.
35422 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke.
35424 estream: Fix minor glitch in "%.*s" format.
35425 + commit aa5b4392aac99382d96be94782ae745e0a42484a
35426 * common/estream-printf.c (pr_string): Take care of non-nul terminated
35429 gpg: Rearrange code in gen_revoke.
35430 + commit 3a01b220715b3d1a90d94353e4980ab5a1ea8f26
35431 * g10/revoke.c (gen_revoke): Factor some code out to ...
35432 (create_revocation): new.
35434 gpg: Create exported secret files and revocs with mode 700.
35435 + commit c434de4d83ccfaca8bde51de5c2ac8d9656e4e18
35436 * common/iobuf.c (direct_open): Add arg MODE700.
35437 (iobuf_create): Ditto.
35438 * g10/openfile.c (open_outfile): Add arg RESTRICTEDPERM. Change call
35439 callers to pass 0 for it.
35440 * g10/revoke.c (gen_desig_revoke, gen_revoke): Here pass true for new
35442 * g10/export.c (do_export): Pass true for new arg if SECRET is true.
35444 common: Minor code cleanup for a legacy OS.
35445 + commit 35fdfaa0b94342c53eb82eea155a37ad4009fa9f
35446 * common/iobuf.c (direct_open) [__riscos__]: Simply cpp conditionals.
35448 2014-06-27 Werner Koch <wk@gnupg.org>
35450 speedo: Fix the w32 installer name.
35451 + commit adad1872b448593275d8cae06dffe376bee067b5
35454 po: Update some strings of the French (fr) translation.
35455 + commit 1ef7870fc96f6dd8137e9bfabf9b06787f75dffd
35458 po: Update the German (de) translation.
35459 + commit c2e3eb98884785e6794dc79c1a53d75945f4c1ab
35462 agent: Adjust for changed npth_eselect under W32.
35463 + commit a1dff86da8ebaab6e154360f538ca9d43a6c4934
35464 * agent/gpg-agent.c (handle_connections) [W32]: Make events_set an
35465 unsigned int to match the changed prototype.
35467 dirmngr: Use the homedir based socket also under W32.
35468 + commit 5e1f9b5e1427688ac340f0829e02bece7f0caf9c
35469 * common/homedir.c (dirmngr_user_socket_name): Use same code for all
35472 2014-06-27 Yuri Chornoivan <yurchor@ukr.net>
35474 po: Update and enable Ukrainian (uk) translation.
35475 + commit 2c4025576105a9deb78e1cfb22c11af4af09c4fa
35478 Fix typos in messages.
35479 + commit e56a2d6a56d95c0f169506a8dc74a845c22b699d
35482 2014-06-27 Werner Koch <wk@gnupg.org>
35484 build: Remove unused options.
35485 + commit 2540a4b674a17b45ec33f43f26e830e74ff0afed
35486 * configure.ac: Remove option --build-agent-only.
35487 (FAKE_CURL, GPGKEYS_CURL): Remove check for cURL
35488 (GPGKEYS_MAILTO): Remove ac_subst but keep the currently unused
35490 (GPGKEYS_KDNS): Remove ac_subst.
35491 * autogen.rc (final_info): Remove suggestion to use the removed option
35494 2014-06-27 NIIBE Yutaka <gniibe@fsij.org>
35496 scd: Add pinpad support for REINER SCT cyberJack go.
35497 + commit 73ba75ad8b933beddd2c3f4b66937b56faa0a2d8
35498 * scd/ccid-driver.h (VENDOR_REINER, CYBERJACK_GO): New.
35499 * scd/ccid-driver.c (ccid_transceive_secure): Handle the case for
35500 VENDOR_REINER. Original work was by Alina Friedrichsen (tiny change).
35502 2014-06-27 Werner Koch <wk@gnupg.org>
35504 scd: Support reader Gemalto IDBridge CT30.
35505 + commit 24be0f24d3a9325a04de10ae0e5e277bf28a74fe
35506 * scd/ccid-driver.h (GEMPC_CT30): New product id.
35507 * scd/ccid-driver.c (parse_ccid_descriptor): Add quirk for that
35510 2014-06-26 Werner Koch <wk@gnupg.org>
35512 gpg: Limit keysize for unattended key generation to useful values.
35513 + commit 03f0b51fe454f8dbe77c302897f7a5899c4c5380
35514 * g10/keygen.c (gen_elg): Enforce keysize 1024 to 4096.
35515 (gen_rsa): Enforce keysize 1024 to 4096.
35516 (gen_dsa): Enforce keysize 768 to 3072.
35518 Enable DNS SRV records again.
35519 + commit c0d1e7fca95629e1cddd7d129fa51b9a6556cb70
35520 * configure.ac (GPGKEYS_HKP, GPGKEYS_FINGER): Remove ac_subst.
35521 (use_dns_srv): Make test work.
35523 agent: Fix export of RSA keys to OpenPGP.
35524 + commit 9a034acf8ab6f85c65ccc75a4fd7b8dd47b73e3a
35525 * agent/cvt-openpgp.c (convert_transfer_key): Fix sexp build format
35528 gpg,gpgsm: Simplify wrong_args function.
35529 + commit 572502bd2c0637429bca547ba882629640477495
35532 speedo: "make clean-gnupg" may not remove the source.
35533 + commit c029a184d6a1a96c6de234835fff97d4e946b19c
35534 * build-aux/speedo.mk (clean-$(1)): Take care of gnupg.
35536 gpgsm: Fix default config name.
35537 + commit 2480b0253166712a2f20b92f34c8e4c2db0fc26f
35540 2014-06-25 Werner Koch <wk@gnupg.org>
35542 doc: Improve the rendering of the manual.
35543 + commit b5f95c1b566f9530127f3f34e10d120a951cf428
35546 doc: Update for modern makeinfo.
35547 + commit f149e05427a370f5985bc3fb142370b043f19924
35548 * doc/texi.css: Remove.
35549 * doc/Makefile.am (AM_MAKEINFOFLAGS): Use --css-ref.
35551 gpg: Allow key-to-card upload for cert-only keys.
35552 + commit f171fd226e84311f92545ca0494771db07ba777d
35553 * g10/card-util.c (card_store_subkey): Allo CERT usage for key 0.
35555 2014-06-24 Werner Koch <wk@gnupg.org>
35557 doc: Add conditionals for GnuPG-1.
35558 + commit 2c8e00137a340d04f0836f75e138dd85f8c9eff7
35561 2014-06-20 Werner Koch <wk@gnupg.org>
35563 gpg: Make export of ECC keys work again.
35564 + commit f4fcaa29367daacfe0ca209fa83dfa8640ace276
35565 * agent/cvt-openpgp.c (convert_to_openpgp): Use the curve name instead
35566 of the curve parameters.
35567 * g10/export.c (canon_pubkey_algo): Rename to ...
35568 (canon_pk_algo): this. Support ECC.
35569 (transfer_format_to_openpgp): Expect curve name.
35571 gpg: Avoid infinite loop in uncompressing garbled packets.
35572 + commit d6ca407a27877174c10adfae9dc601bea996cf27
35573 * g10/compress.c (do_uncompress): Limit the number of extra FF bytes.
35575 2014-06-17 Kristian Fiskerstrand <kf@sumptuouscapital.com>
35577 gpg: Fix a couple of spelling errors.
35578 + commit 3f17b74aa57ac1ea2f3aa93dec4889778a21afeb
35581 2014-06-17 Werner Koch <wk@gnupg.org>
35583 speedo: Support building from dist-source generated tarball.
35584 + commit 47e63dc00169030b6ff01ab67e73e52aec1395db
35587 2014-06-13 Werner Koch <wk@gnupg.org>
35589 http: Print human readable GNUTLS status.
35590 + commit 5bf04522e353675e4c3eda118fee2580756704a2
35591 * common/http.c (send_gnutls_bye): Take care of EAGAIN et al.
35592 (http_verify_server_credentials): Print a human readable status.
35594 2014-06-12 Werner Koch <wk@gnupg.org>
35596 gpg: Improve the output of --list-packets.
35597 + commit d8314e31c58ea0827d0e2361dabcdf869ab08fce
35598 * g10/parse-packet.c (parse): Print packet meta info in list mode.
35600 2014-06-11 Werner Koch <wk@gnupg.org>
35602 speedo: Improve building of the w32 installer.
35603 + commit 6eeb31abee82cb2016bf054cd302af64f6dfdc2e
35604 * build-aux/speedo.mk: Change name of build directory to PLAY.
35605 Improve the dist-source target.
35606 * build-aux/speedo/w32/gdk-pixbuf-loaders.cache: Add a blank
35607 line (plus comment).
35608 * build-aux/speedo/w32/inst.nsi: Change name of file to gnupg-w32-*.
35609 Install more tools.
35611 2014-06-10 Werner Koch <wk@gnupg.org>
35613 speedo: Revamped speedo and include a w32 installer.
35614 + commit e06d5d1a3b4a5c446a27d64cd2da0e48ccec5601
35615 * build-aux/speedo/: New.
35616 * build-aux/speedo/w32/: New.
35618 build: Add more options to autogen.sh.
35619 + commit 0399d87f7aaf2f2126a63899004c5c7bffd4346b
35620 * autogen.sh: Add options --print-host and --print-build.
35622 w32: Fix build problem with dirmngr.
35623 + commit 141d69cb2a94a752244e89f49611923a2f184dfd
35624 * dirmngr/ks-engine-hkp.c (EAI_SYSTEM) [W32]: Add replacement
35627 gpg: Use more specific reason codes for INV_RECP.
35628 + commit 45ed901c466bd72118c2844069f566e190d847d6
35629 * g10/pkclist.c (find_and_check_key, build_pk_list): Use more specific
35630 reasons codes for INV_RECP.
35632 2014-06-06 Werner Koch <wk@gnupg.org>
35634 Improve the beta number generation.
35635 + commit b67e4e523e6d19d384e23c5bb03010caebd150e7
35636 * autogen.sh: Add option --find-version
35637 * configure.ac: Rework the setting of the mym4_ variables.
35639 2014-06-05 Werner Koch <wk@gnupg.org>
35641 Remove keyserver helper code.
35642 + commit 23712e69d3f97df9d789325f1a2f2f61e7d5bbb4
35643 * configure.ac: Remove keyserver helper related stuff.
35644 * Makefile.am (SUBDIRS): Remove keyserver.
35645 * keyserver/Makefile.am: Remove.
35647 gpg: Require confirmation for --gen-key with experimental curves.
35648 + commit 9c9e26d41e7d65711da8dbf1afa452254749621c
35649 * g10/keygen.c (ask_curve): Add arg both. Require confirmation for
35652 gpg: Auto-migrate existing secring.gpg.
35653 + commit 4f0625889b768eabdec52696bf15059a9e8d9c02
35654 * g10/migrate.c: New.
35655 * g10/import.c (import_old_secring): New.
35656 (import_one): Add arg silent.
35657 (transfer_secret_keys): Add arg batch.
35658 (import_secret_one): Add args batch and for_migration.
35659 * g10/gpg.c (main): Call migration function.
35661 2014-06-04 Werner Koch <wk@gnupg.org>
35663 gpgsm: Fix commit be07ed65.
35664 + commit 09a2d4ec74d352dcb4f006aab60b07bc4f5f1a37
35665 * sm/server.c (option_handler): Use "with-secret".
35667 2014-06-03 Werner Koch <wk@gnupg.org>
35669 Add new option --with-secret.
35670 + commit be07ed65e169a7ec3fbecdb1abf988fc0245d9ff
35671 * g10/gpg.c: Add option --with-secret.
35672 * g10/options.h (struct opt): Add field with_secret.
35673 * g10/keylist.c (public_key_list): Pass opt.with_secret to list_all
35675 (list_all, list_one): Add arg mark_secret.
35676 (list_keyblock_colon): Add arg has_secret.
35677 * sm/gpgsm.c: Add option --with-secret.
35678 * sm/server.c (option_handler): Add option "with-secret".
35679 * sm/gpgsm.h (server_control_s): Add field with_secret.
35680 * sm/keylist.c (list_cert_colon): Take care of with_secret. Also move
35681 the token string from the wrong field 14 to 15.
35683 gpgsm: New commands --export-secret-key-{p8,raw}
35684 + commit 0beec2f0f255a71f9d5a4a0729d0259f673e8838
35685 * sm/gpgsm.c: Add new commands.
35686 * sm/minip12.c (build_key_sequence): Add arg mode.
35687 (p12_raw_build): New.
35688 * sm/export.c (export_p12): Add arg rawmode. Call p12_raw_build.
35689 (gpgsm_p12_export): Ditto.
35690 (print_short_info): Print the keygrip.
35692 2014-06-02 Werner Koch <wk@gnupg.org>
35694 gpg: Avoid NULL-deref in default key listing.
35695 + commit 958e5f292fa3f8e127f54bc088c56780c564dcae
35696 * g10/keyid.c (hash_public_key): Take care of NULL keys.
35697 * g10/misc.c (pubkey_nbits): Ditto.
35699 gpg: Simplify default key listing.
35700 + commit f3249b1c4d0f2e9e0e8956042677e47fc9c6f6c0
35701 * g10/mainproc.c (list_node): Rework.
35703 gpg: Graceful skip reading of corrupt MPIs.
35704 + commit d9cde7ba7d4556b216f062d0cf92d60cbb204b00
35705 * g10/parse-packet.c (mpi_read): Change error message on overflow.
35707 gpgsm: Handle re-issued CA certificates in a better way.
35708 + commit 715285bcbc12c024dbd9b633805189c09173e317
35709 * sm/certchain.c (find_up_search_by_keyid): Consider all matching
35711 (find_up): Add some debug messages.
35713 gpgsm: Add a way to save a found state.
35714 + commit 42c043a8ad542c131917879c9b458f234b4bb645
35715 * kbx/keybox-defs.h (keybox_found_s): New.
35716 (keybox_handle): Factor FOUND out to above. Add saved_found.
35717 * kbx/keybox-init.c (keybox_release): Release saved_found.
35718 (keybox_push_found_state, keybox_pop_found_state): New.
35720 * sm/keydb.c (keydb_handle): Add field saved_found.
35721 (keydb_new): Init it.
35722 (keydb_push_found_state, keydb_pop_found_state): New.
35724 gpg: Fix bug parsing a zero length user id.
35725 + commit 99972bd6e9abea71f270284f49997de5f00208af
35726 * g10/getkey.c (get_user_id): Do not call xmalloc with 0.
35728 * common/xmalloc.c (xmalloc, xcalloc): Take extra precaution not to
35729 pass 0 to the arguments.
35731 2014-05-19 Werner Koch <wk@gnupg.org>
35733 dirmngr: Print certificates on failed TLS verification.
35734 + commit 9e1c99f8009f056c39a7465b91912c136b248e8f
35735 * dirmngr/ks-engine-hkp.c (cert_log_cb): New.
35736 (send_request): Set callback.
35738 http: Add callback to help logging of server certificates.
35739 + commit 45f15b2d767d4068f79fd5b123e9eeae08a0616d
35740 * common/http.c (http_session_s): Add field cert_log_cb.
35741 (http_session_set_log_cb): New.
35742 (http_verify_server_credentials): Call callback.
35744 2014-05-16 Werner Koch <wk@gnupg.org>
35746 keyserver: Improve support for hkps pools.
35747 + commit d2d9d4fb60e3f2160af6252335364d3aac4b7d17
35748 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add fields cname, v4addr, and
35750 (create_new_hostinfo): Clear them.
35751 (my_getnameinfo): Add args numeric and r_isnumeric.
35752 (is_ip_address): New.
35753 (map_host): Add arg r_host. Rewrite the code to handle pools in a
35755 (ks_hkp_print_hosttable): Change format of help info output.
35756 (make_host_part): Add arg optional r_httphost.
35757 (send_request): Add arg httphost.
35758 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Get httphost and pass it to
35761 http: Allow overriding of the Host header.
35762 + commit 8b90d79818355b81ce223e1cb96cd0c939096fe2
35763 * common/http.c (http_open): Add arg httphost.
35764 (http_open_document): Pass NULL for httphost.
35765 (send_request): Add arg httphost. If given, use HTTPHOST instead of
35766 SERVER. Use https with a proxy if requested.
35767 (http_verify_server_credentials): Do not stop at the first error
35769 * dirmngr/ocsp.c (do_ocsp_request): Adjust call to http_open.
35770 * keyserver/curl-shim.c (curl_easy_perform): Ditto.
35771 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
35772 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Ditto.
35774 2014-05-14 Werner Koch <wk@gnupg.org>
35776 gpg: Fix uninitialized access to search descindex with gpg keyboxes.
35777 + commit 25036ec6abbc0c9d0003dcfe227724038c35a304
35778 * kbx/keybox-search.c (keybox_search): Add arg R_DESCINDEX. Chnage
35780 * g10/keydb.c (keydb_search): Always set DESCINDEX.
35782 w32: Make make_absfilename work with drive letters.
35783 + commit 71fa6a35107d4d4547eb9155d7c2612b6a6a16fb
35784 * common/stringhelp.c (do_make_filename) [HAVE_DRIVE_LETTERS]: Fix.
35786 gpg: Remove useless diagnostic in MDC verification.
35787 + commit 455a4a2212302c05095e736b127f647e95714fe7
35788 * g10/decrypt-data.c (decrypt_data): Do not distinguish between a bad
35789 MDC packer header and a bad MDC.
35791 gpg: Fix glitch entering a full expiration time.
35792 + commit b2945c451d3d3f25ba11a9fe88c6cbf3f88c2fb5
35793 * g10/keygen.c (ask_expire_interval): Get the current time after the
35796 2014-05-08 Werner Koch <wk@gnupg.org>
35798 agent: Fix import of non-protected gpg keys.
35799 + commit 4aeb02562c9db4b96366220b781e2b4fa2d6fd3b
35800 * agent/cvt-openpgp.c (do_unprotect): Return an s-exp also for
35801 non-protected keys.
35802 (convert_from_openpgp_main): Do not call agent_askpin for a
35805 Make more use of *_NAME macros.
35806 + commit cb2aeb4e1157fc0d7dc25d94115973422dc1a800
35807 * configure.ac (GPG_DISP_NAME, GPGSM_DISP_NAME): New.
35808 (GPG_AGENT_DISP_NAME, SCDAEMON_DISP_NAME): New.
35809 (DIRMNGR_DISP_NAME, G13_DISP_NAME): New.
35810 (GPGCONF_DISP_NAME): New.
35811 (SCDAEMON_SOCK_NAME): New.
35812 * common/argparse.c (show_help): Map description string.
35814 2014-05-08 NIIBE Yutaka <gniibe@fsij.org>
35816 agent: Fix auth key comment handling.
35817 + commit fb24808db9af9dfe36f9f6d7fc24e0b903ecc12c
35818 * agent/command-ssh.c (ssh_send_key_public): Handle the case with no
35821 2014-05-07 Werner Koch <wk@gnupg.org>
35823 Make -jN work again.
35824 + commit 57011da53e43f9c8a6c7e7314166c3e17ff8627a
35825 * common/Makefile.am ($(PROGRAMS)): New rule
35826 (t_http_LDADD): Use libcommontls.a without directory prefix.
35827 * dirmngr/Makefile.am ($(PROGRAMS)): New rule.
35829 gpg: Print the key algorithm/curve with signature info.
35830 + commit 359c643d747c890f73f68b42e0aeb896016f05fd
35831 * g10/mainproc.c (check_sig_and_print): Print the name and curve.
35833 gpg: Fix memleak in signature verification of bogus keys.
35834 + commit e73edfb1759d05121ea66f67c775e763bf47d737
35835 * g10/mainproc.c (check_sig_and_print): Factor common code out to ...
35836 (print_good_bad_signature): here.
35838 gpg: Mark experimental algorithms in the key listing.
35839 + commit 09055aa0f7993aaf4dcffdd80d8192945ae6080a
35840 * g10/keylist.c (list_keyblock_print): Remove duplicate curve name.
35841 Print a note for experimental algorithms.
35842 * g10/misc.c (print_pubkey_algo_note): Fix warning message.
35844 gpg: Finish experimental support for Ed25519.
35845 + commit 8fee6c1ce6d116fe7909dbe1184d95bc91305484
35846 * agent/cvt-openpgp.c (try_do_unprotect_arg_s): Add field "curve".
35847 (get_keygrip): Add and use arg CURVE.
35848 (convert_secret_key): Ditto.
35849 (convert_transfer_key): Ditto.
35850 (get_npkey_nskey): New.
35851 (prepare_unprotect): Replace gcrypt functions by
35852 get_npkey_nskey. Allow opaque MPIs.
35853 (do_unprotect): Use CURVE instead of parameters.
35854 (convert_from_openpgp_main): Ditto.
35855 (convert_to_openpgp): Simplify.
35856 * g10/import.c (one_mpi_from_pkey): Remove.
35857 (transfer_secret_keys): Rewrite to use the curve instead of the
35859 * g10/parse-packet.c (parse_key): Mark protected MPIs with USER1 flag.
35861 * common/openpgp-oid.c (openpgp_curve_to_oid): Allow the use of
35862 "NIST P-256" et al.
35863 * g10/keygen.c (ask_curve): Add arg ALGO.
35864 (generate_keypair): Rewrite the ECC key logic.
35866 * tests/openpgp/ecc.test: Provide the "ecc" passphrase.
35868 kbx: Add experimental support for EDDSA.
35869 + commit bdb9c2b314400da9155b8a924e22e486793dda89
35870 * kbx/keybox-openpgp.c (parse_key): Use algo constants and add
35871 experimental support for EdDSA.
35873 agent: Remove greeting message.
35874 + commit a63ed9875830e5b3b4d48b7d97d24c18de36b326
35875 * agent/gpg-agent.c (main): Remove greeting. Make --no-greeting a
35878 2014-05-06 Werner Koch <wk@gnupg.org>
35880 Use "samethread" mode keyword for some es_fopenmem.
35881 + commit 6477e51919ef97f0f9cc05d10cdc7aa2b89faafe
35882 * dirmngr/ks-engine-hkp.c (armor_data): Add mode keyword.
35883 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
35884 * scd/atr.c (atr_dump): Ditto.
35886 2014-05-05 Werner Koch <wk@gnupg.org>
35888 dirmngr: Add support for hkps keyservers.
35889 + commit 60e2fc7d38d8b37d1de944cf230e410c2ce37d5e
35890 * dirmngr/dirmngr.c: Include gnutls.h.
35891 (opts): Add --gnutls-debug and --hkp-cacert.
35892 (opt_gnutls_debug, my_gnutls_log): New.
35893 (set_debug): Set gnutls log level.
35894 (parse_rereadable_options): Register a CA file.
35895 (main): Init GNUTLS.
35896 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Support hkps.
35897 (send_request): Ditto.
35899 http: Add reference counting to the session object.
35900 + commit ea0f5481f01eacedff264bf08144164aa989ec4d
35901 * common/http.c (http_session_t): Add field "refcount".
35902 (_my_socket_new, _my_socket_ref, _my_socket_unref): Add debug code.
35903 (send_request, my_npth_read, my_npth_write): Use SOCK object for the
35905 (http_session_release): Factor all code out to ...
35906 (session_unref): here. Deref SOCK.
35907 (http_session_new): Init refcount and transport ptr.
35908 (http_session_ref): New. Ref and unref all assignments.
35910 2014-05-02 Werner Koch <wk@gnupg.org>
35912 http: Add HTTP_FLAG_FORCE_TLS and http_get_tls_info.
35913 + commit 0e59195642eb26263b8e0b9200290538631d35cd
35914 * common/http.c (http_parse_uri): Factor code out to ...
35915 (parse_uri): here. Add arg FORCE_TLS.
35916 (do_parse_uri): Ditto. Implement flag.
35917 (http_get_tls_info): New.
35918 (http_register_tls_ca): Allow clearing of the list.
35919 (send_request): Use a default verification function.
35920 * common/http.h (HTTP_FLAG_FORCE_TLS): New.
35921 * common/t-http.c (main): Add several command line options.
35923 common: Fix test for openpgp_oid_is_ed25519.
35924 + commit 2def230231abd34f6012df284ab468321ffedc10
35925 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): Add correct
35928 http: Revamp TLS API.
35929 + commit 8412a5825c225c8ff14de3ffaad2e55e040b2eca
35930 * configure.ac (NEED_GNUTLS_VERSION): New.
35931 (HTTP_USE_GNUTLS, LIBGNUTLS_CFLAGS, LIBGNUTLS_LIBS): New ac_subst.
35933 * common/http.h (http_session_t): New.
35934 * common/http.c: Remove compatibility for gnutls < 3.0.
35935 (http_session_s): New.
35936 (cookie_s): Replace gnutls_session_t by http_session_t.
35937 (tls_callback, tls_ca_certlist): New variables.
35938 (my_socket_unref): Add preclose args.
35939 (my_npth_read, my_npth_write): New.
35940 (make_header_line): Fix bug using int* instead of char*.
35941 (http_register_tls_callback): New.
35942 (http_register_tls_ca): New.
35943 (http_session_new): New.
35944 (http_session_release): New.
35945 (http_get_header_names): New.
35946 (escape_data): Add hack to escape in forms mode.
35947 (send_request) [HTTP_USE_GNUTLS]: Support SNI.
35948 (send_request) [HTTP_USE_GNUTLS]: Fix use of make_header_line.
35949 (send_gnutls_bye): New.
35950 (cookie_close): Make use of preclose feature.
35951 (http_verify_server_credentials): New.
35952 (main) [TEST]: Remove test code.
35953 * common/t-http.c: New.
35954 * common/tls-ca.pem: New.
35955 * common/Makefile.am (tls_sources): New. Move http code to here.
35956 (libcommontls_a_SOURCES): New.
35957 (libcommontlsnpth_a_SOURCES): New.
35958 (EXTRA_DIST): Add tls-ca.pem
35959 (module_maint_tests): Add t-http.
35960 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
35962 * dirmngr/Makefile.am (dirmngr_LDADD): Add libcommontlsnpth.
35964 common: Cleanup the use of USE_NPTH and HAVE_NPTH macros.
35965 + commit 84289e85c72ae58c321dfdb96816700a6b7f7122
35966 * configure.ac (HAVE_NPTH): New ac_define.
35967 * common/estream.c: Use USE_NPTH instead of HAVE_NPTH.
35968 * common/http.c: Ditto. Replace remaining calls to pth by npth calls.
35969 (connect_server): Remove useless _().
35970 * common/exechelp-posix.c, common/exechelp-w32.c
35971 * common/exechelp-w32ce.c: Use HAVE_PTH to include npth.h.
35972 * common/init.c (_init_common_subsystems): Remove call to pth_init.
35973 * common/sysutils.c (gnupg_sleep): Use npth_sleep.
35974 * scd/ccid-driver.c (my_sleep): Ditto.
35976 2014-04-30 Werner Koch <wk@gnupg.org>
35978 estream: Implement "samethread" mode keyword.
35979 + commit 8416c875a729426eae05ed1ca9f1ebcb933c246a
35980 * src/estream.c (estream_internal): Add field SAMETHREAD.
35981 (init_stream_lock, lock_stream, trylock_stream, unlock_stream): Use it.
35982 (parse_mode): Add arg SAMETHREAD and parse that keyword.
35983 (es_initialize): Rename to ...
35984 (init_stream_obj): this. Add arg SAMETHREAD.
35985 (es_create): Add arg SAMETHREAD. Call init_stream_lock after
35987 (doreadline): Call es_create with samethread flag.
35988 (es_fopen, es_mopen, es_fopenmem, es_fopencookie, do_fdopen)
35989 (do_fpopen, do_w32open): Implement "samethread" keyword.
35990 (es_freopen): Take samthread flag from old stream.
35991 (es_tmpfile): Call es)_create w/o samethread.
35993 estream: Fix deadlock in es_fileno.
35994 + commit ecea94461ed40f3f6ef662c2501e1d56ec284022
35995 * src/estream.c (es_fileno_unlocked): Call the unlocked functions.
35997 estream: Add debug code to the lock functions.
35998 + commit aeb81727c77dfea3bf5d2d689ffbdc897f2938a7
35999 * common/estream.c (dbg_lock_0, dbg_lock_1, dbg_lock_1): New.
36001 estream: Replace locking macros by functions.
36002 + commit 39e91a5f0a666aad2fef7a840b2cd03949bb1be4
36003 * common/estream.c: Replace most macros.
36005 2014-04-28 NIIBE Yutaka <gniibe@fsij.org>
36008 + commit 21dab64030c95a909767bf6d8f99e8476f9df8a2
36009 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
36010 (convert_transfer_key): Follow newer (>= 1.6) libgcrypt API, which
36011 does not distinguish the detail.
36012 (do_unprotect, convert_from_openpgp_main): Don't call
36013 map_pk_openpgp_to_gcry, as it's the value of libgcrypt API already and
36014 not the value defined by OpenPGP.
36015 (convert_to_openpgp): It's "ecc".
36016 * agent/gpg-agent.c (map_pk_openpgp_to_gcry): Remove.
36017 * g10/call-agent.c (agent_pkdecrypt): Fix off-by-one error.
36018 * g10/pubkey-enc.c (get_it): Fix swapping the fields error.
36020 2014-04-22 Werner Koch <wk@gnupg.org>
36022 gpg: Pass --homedir to gpg-agent.
36023 + commit fdd938a5bbecb5b70f564ae3afb4e17905404bb2
36024 * agent/gpg-agent.c (main): Make sure homedir is absolute.
36025 * common/asshelp.c (lock_spawning): Create lock file with an absolute
36027 (start_new_gpg_agent): Use an absolute name for the socket and pass
36028 option --homedir to the agent.
36029 (start_new_dirmngr): Use an absolute name for the --homedir.
36031 common: Add functions make_absfilename and make_absfilename_try.
36032 + commit 71a54313adf7b57b7b27bb9ad07b142a34306260
36033 * common/stringhelp.c (do_make_filename): Add modes 2 and 3.
36034 (make_absfilename): New.
36035 (make_absfilename_try): New.
36037 common: Add function gnupg_getcwd.
36038 + commit 1a87edab6657a257876ab2f8790f2937feba7066
36039 * tools/gpg-connect-agent.c (gnu_getcwd): Move to ...
36040 * common/sysutils.c (gnupg_getcwd): .. here.
36041 * tools/gpg-connect-agent.c (get_var_ext): Use gnupg_getcwd.
36043 gpg: Print a warning if GKR has hijacked gpg-agent.
36044 + commit ffa39be5ebfc1059a737905ee317c9b6f3d2a77e
36045 * g10/call-agent.c (check_hijacking): New.
36046 (start_agent): Call it.
36047 (membuf_data_cb, default_inq_cb): Move more to the top.
36049 2014-04-17 Werner Koch <wk@gnupg.org>
36051 gpg: New %U expando for the photo viewer.
36052 + commit e184a11f94e2d41cd9266484542631bec23628b5
36053 * g10/photoid.c (show_photos): Set namehash.
36054 * g10/misc.c (pct_expando): Add "%U" expando.
36056 common: Add z-base-32 encoder.
36057 + commit b8a91ebf46a927801866e99bb5a66ab00651424e
36058 * common/zb32.c: New.
36059 * common/t-zb32.c: New.
36060 * common/Makefile.am (common_sources): Add zb82.c
36061 (module_tests): Add t-zb32.
36063 2014-04-16 Werner Koch <wk@gnupg.org>
36065 Two minor code cleanups and one NULL deref on error fix.
36066 + commit a34afa8f2053d75f276d6d28dbf1a43db0fd9768
36067 * common/estream.c (es_freopen): Remove useless check for STREAM.
36068 * kbx/keybox-blob.c (_keybox_create_x509_blob): Remove useless check
36070 * tools/sockprox.c (run_proxy): Do not fclose(NULL).
36072 2014-04-15 Werner Koch <wk@gnupg.org>
36074 gpg: Re-enable secret key deletion.
36075 + commit db3b528239c9d56bc71fd2283e07a3f1d91e4fd0
36076 * g10/call-agent.c (agent_delete_key): New.
36077 * g10/keydb.h (FORMAT_KEYDESC_DELKEY): New.
36078 * g10/passphrase.c (gpg_format_keydesc): Support new format.
36079 * g10/delkey.c (do_delete_key): Add secret key deletion.
36081 gpg: Re-indent a file.
36082 + commit d25d00b89efed461d344028d0e2e2be38cc77628
36083 * g10/delkey.c: Re-indent.
36084 (do_delete_key, delete_keys): Change return type top gpg_error_t.
36086 gpg: Fix regression in secret key export.
36087 + commit c4d983239a3f0a18c77f0a5aeba520a81a1b86e8
36088 * agent/cvt-openpgp.c (convert_to_openpgp): Fix use
36089 gcry_sexp_extract_param.
36090 * g10/export.c (do_export_stream): Provide a proper prompt to the
36093 gpg: Change pinentry prompt to talk about "secret key".
36094 + commit e549799db66be30cdd68a3e6cdca9c6a050466d1
36095 * g10/passphrase.c (gpg_format_keydesc): Add mode 2. Change strings.
36096 * g10/keydb.h (FORMAT_KEYDESC_NORMAL, FORMAT_KEYDESC_IMPORT)
36097 (FORMAT_KEYDESC_EXPORT): New. Use them for clarity.
36099 agent: Add command DELETE_KEY.
36100 + commit e3a4ff89a0b106e678bf9d0a4d47917123071140
36101 * agent/command.c (cmd_delete_key): New.
36102 * agent/findkey.c (modify_description): Add '%C' feature.
36103 (remove_key_file): New.
36104 (agent_delete_key): New.
36105 * agent/command-ssh.c (search_control_file): Make arg R_DISABLE
36108 * configure.ac: Require libgpg-error 1.13.
36110 2014-04-09 NIIBE Yutaka <gniibe@fsij.org>
36112 scd: EdDSA support.
36113 + commit 3132bd90dc8db9c7fd19ba201918e95891306dc5
36114 * scd/app-openpgp.c (KEY_TYPE_EDDSA, CURVE_ED25519): New.
36115 (struct app_local_s): Add eddsa.
36116 (get_algo_byte, store_fpr): Support KEY_TYPE_EDDSA.
36117 (get_ecc_key_parameters, get_curve_name): Support CURVE_ED25519.
36118 (send_key_attr, get_public_key): Support KEY_TYPE_EDDSA.
36119 (build_ecc_privkey_template): Rename as it supports both of
36121 (ecc_writekey): Rename. Support CURVE_ED25519, too.
36122 (do_writekey): Follow the change of ecc_writekey.
36123 (do_auth): Support KEY_TYPE_EDDSA.
36124 (parse_ecc_curve): Support CURVE_ED25519. Bug fix for other curves.
36125 (parse_algorithm_attribute): Bug fix for ECDH. Support EdDSA.
36127 2014-04-08 Werner Koch <wk@gnupg.org>
36129 dirmngr: Fix compiler warning.
36130 + commit db85feceaf43ebd6d44421bb14fcb60495804ae0
36131 * common/mischelp.h (JNLIB_GCC_HAVE_PUSH_PRAGMA): New.
36132 * dirmngr/dirmngr.c (handle_tick): Factor time check out to ...
36133 (time_for_housekeeping_p): new.
36135 gpgconf: Add command --launch.
36136 + commit b4cf4686f7349be9558217f20e51157398cd88a0
36137 * tools/gpgconf.c: Add command --launch.
36138 * tools/gpgconf-comp.c (gc_component_launch): New.
36140 scd: Silent compiler warnings about unused variables.
36141 + commit 36dfc37e438660632d3a2bf5d5526be9005fa8c5
36142 * scd/app-openpgp.c (build_ecdsa_privkey_template): Mark unused arg.
36143 (ecdh_writekey): Mark unused args.
36145 2014-04-08 NIIBE Yutaka <gniibe@fsij.org>
36147 agent: Support EdDSA.
36148 + commit 5ff6d0c25e6d0f422b17809b954e9e87cb137347
36149 * agent/pksign.c (agent_pksign_do): Handle EdDSA signature.
36151 g10: EdDSA support.
36152 + commit 40c3b0741e593d0658dda0c707c4f32e80648dd1
36153 * g10/keyid.c (keygrip_from_pk): Compute keygrip of EdDSA key.
36154 * g10/keygen.c (generate_subkeypair): Ed25519 is for EdDSA.
36155 * common/openpgp-oid.c (oid_ed25519): Update.
36157 2014-04-04 NIIBE Yutaka <gniibe@fsij.org>
36159 agent: EdDSA support for SSH.
36160 + commit 513c67b7461a2451247ef2b2fc64e0470a16edf1
36161 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Signature is
36162 two 32-byte opaque data which should not be interpreted as number.
36164 2014-03-27 Werner Koch <wk@gnupg.org>
36166 gpg: Add commands --quick-sign-key and --quick-lsign-key.
36167 + commit b6786cc3ec0bb582323adf94c2ee624bcfbeb466
36168 * g10/gpg.c (main): Add commands --quick-sign-key and
36170 * g10/keyedit.c (sign_uids): Add args FP and QUICK.
36171 (keyedit_quick_sign): New.
36172 (show_key_with_all_names): Add arg NOWARN.
36174 Change some keyedit functions to allow printing to arbitrary streams.
36175 + commit 4f50ec98ddd57253cae66e2321f0cc98ee189a09
36176 * common/ttyio.c (tty_print_string): Add optional arg FP. Change all
36178 (tty_print_utf8_string2): Ditto.
36179 * g10/keyedit.c (show_prefs): Ditto.
36180 (show_key_with_all_names_colon): Ditto.
36181 (show_names): Ditto.
36182 * g10/keylist.c (print_revokers): Ditto.
36183 (print_fingerprint): Ditto.
36185 2014-03-23 Werner Koch <wk@gnupg.org>
36187 agent: Replace es_mopen by es_fopenmem for ssh.
36188 + commit 5c2a50cdc90e85b1fc380851ccfbe9186969b658
36189 * agent/command-ssh.c (ssh_read_key_public_from_blob): Use
36191 (ssh_handler_request_identities): Ditto.
36192 (ssh_request_process): Ditto.
36194 2014-03-22 Werner Koch <wk@gnupg.org>
36196 agent: Put ssh key type as comment into sshcontrol.
36197 + commit fc3e70c11342267c1062e4244955d19ecd72e0f6
36198 * agent/command-ssh.c (ssh_key_type_spec): Add field name.
36199 (ssh_key_types): Add human readable names.
36200 (add_control_entry): Add arg SPEC and print key type as comment.
36201 (ssh_identity_register): Add arg SPEC.
36202 (ssh_handler_add_identity): Add var SPEC and pass ssh_receive_key.
36204 agent: Support the Ed25519 signature algorithm for ssh.
36205 + commit 072432883ededa15bf35f80102e0572746ba4af1
36206 * agent/command-ssh.c (SPEC_FLAG_IS_EdDSA): New.
36207 (ssh_key_types): Add entry for ssh-ed25519.
36208 (ssh_identifier_from_curve_name): Move to the top.
36209 (stream_read_skip): New.
36210 (stream_read_blob): New.
36211 (ssh_signature_encoder_rsa): Replace MPIS array by an s-exp and move
36212 the s-exp parsing to here.
36213 (ssh_signature_encoder_dsa): Ditto.
36214 (ssh_signature_encoder_ecdsa): Ditto.
36215 (ssh_signature_encoder_eddsa): New.
36216 (sexp_key_construct): Rewrite.
36217 (ssh_key_extract): Rename to ...
36218 (ssh_key_to_blob): .. this and rewrite most of it.
36219 (ssh_receive_key): Add case for EdDSA.
36220 (ssh_convert_key_to_blob, key_secret_to_public): Remove.
36221 (ssh_send_key_public): Rewrite.
36222 (ssh_handler_request_identities): Simplify.
36223 (data_sign): Add rename args. Add new args HASH and HASHLEN. Make
36224 use of es_fopenmen and es_fclose_snatch. Remove parsing into MPIs
36225 which is now doe in the sgnature encoder functions.
36226 (ssh_handler_sign_request): Take care of Ed25519.
36227 (ssh_key_extract_comment): Rewrite using gcry_sexp_nth_string.
36229 agent: Cleanups to prepare implementation of Ed25519.
36230 + commit a77ed0f266d03e234027dda4de5a7f3dd6787b1e
36231 * agent/cvt-openpgp.c: Remove.
36232 (convert_to_openpgp): Use gcry_sexp_extract_param.
36233 * agent/findkey.c (is_eddsa): New.
36234 (agent_is_dsa_key, agent_is_eddsa_key): Check whether ecc means EdDSA.
36235 * agent/pksign.c (agent_pksign_do): Add args OVERRIDEDATA and
36238 * common/ssh-utils.c (is_eddsa): New.
36239 (get_fingerprint): Take care or EdDSA.
36241 2014-03-18 Werner Koch <wk@gnupg.org>
36243 tools: Fix NULL deref in gpg-connect-agent.
36244 + commit 6376227a31b3076321ce16ad626b333057bda53d
36245 * tools/gpg-connect-agent.c (handle_inquire): Do not pass NULL to
36248 dirmngr: Resurrect hosts in the HKP hosttable.
36249 + commit 6c058fac65c7e9d1ffb72686f0f02644f172da22
36250 * dirmngr/dirmngr.c (HOUSEKEEPING_INTERVAL): New.
36251 (housekeeping_thread): New.
36252 (handle_tick): Call new function.
36253 * dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): New.
36254 (struct hostinfo_s): Add field died_at and set it along with the dead
36256 (ks_hkp_print_hosttable): Print that info.
36257 (ks_hkp_housekeeping): New.
36259 common: New function elapsed_time_string.
36260 + commit 04e304278c9302831bc81e7fe9049c588ead029a
36261 * common/gettime.c (elapsed_time_string): New.
36263 2014-03-17 Werner Koch <wk@gnupg.org>
36265 gpg: Reject signatures made with MD5.
36266 + commit f90cfe6b66269de0154d810c5cee1fe9a5af475c
36267 * g10/gpg.c: Add option --allow-weak-digest-algos.
36268 (main): Set option also in PGP2 mode.
36269 * g10/options.h (struct opt): Add flags.allow_weak_digest_algos.
36270 * g10/sig-check.c (do_check): Reject MD5 signatures.
36271 * tests/openpgp/defs.inc: Add allow_weak_digest_algos to gpg.conf.
36273 gpg: Make --auto-key-locate work again with keyservers.
36274 + commit 1e2e39c5758ffaf62f8bb85b4a86dc49c41f3a68
36275 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Allow exact search mode.
36276 * g10/keyserver.c (keyserver_import_name): Implement.
36277 (keyserver_get): Use exact mode for name based import.
36278 (keyserver_get): Add args R_FPR and R_FPRLEN. Change all callers.
36280 gpg: New mechanism "clear" for --auto-key-locate.
36281 + commit 1d642d3ca890daa65ee5dd949a00747da6b49015
36282 * g10/getkey.c (parse_auto_key_locate): Implement "clear".
36284 2014-03-14 Werner Koch <wk@gnupg.org>
36286 gpg-connect-agent: Make it easier to connect to the dirmngr.
36287 + commit 2223eaefaf53aa7217ac593b83e4294148a4db5d
36288 * tools/gpg-connect-agent.c: Add options --dirmngr and
36291 dirmngr: Make use of IPv4 and IPV6 more explicit.
36292 + commit 59b4fb5f4927908af06bb80ecd86adbf6e54ba14
36293 * common/http.c (connect_server): Handle the new flags.
36294 * common/http.h (HTTP_FLAG_IGNORE_IPv4, HTTP_FLAG_IGNORE_IPv4): New.
36295 * dirmngr/ks-engine-hkp.c (map_host): Add arg r_httpflags.
36296 (make_host_part): Ditto.
36297 (send_request): Add arg httpflags.
36298 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Handle httpflags.
36300 dirmngr: Do not use brackets around legacy IP addresses.
36301 + commit d7fbefeb82833db9eea8b15dc7889ecf0b7ffab4
36302 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change args to take a
36303 complete addrinfo. Bracket only v6 addresses. Change caller.
36305 gpg: Print the actual used keyserver address.
36306 + commit a401f768ca8e218eef7a5c87a8f99cb1d6b4aaeb
36307 * dirmngr/ks-engine-hkp.c (ks_hkp_search, ks_hkp_get): Print SOURCE
36309 * g10/call-dirmngr.c (ks_status_parm_s): New.
36310 (ks_search_parm_s): Add field stparm.
36311 (ks_status_cb): New.
36312 (ks_search_data_cb): Send source to the data callback.
36313 (gpg_dirmngr_ks_search): Change callback prototope to include the
36314 SPECIAL arg. Adjust all users. Use ks_status_cb.
36315 (gpg_dirmngr_ks_get): Add arg r_source and use ks_status_cb.
36316 * g10/keyserver.c (search_line_handler): Adjust callback and print
36317 "data source" disgnostic.
36318 (keyserver_get): Print data source diagnostic.
36320 dirmngr: Default to a user socket name and enable autostart.
36321 + commit 5d321eb00be0774418de1a05678ac0ec44d7193b
36322 * common/homedir.c (dirmngr_socket_name): Rename to
36323 dirmngr_sys_socket_name.
36324 (dirmngr_user_socket_name): New.
36325 * common/asshelp.c (start_new_dirmngr): Handle sys and user dirmngr
36327 * dirmngr/dirmngr.c (main): Ditto.
36328 * dirmngr/server.c (cmd_getinfo): Ditto.
36329 * sm/server.c (gpgsm_server): Ditto.
36330 * dirmngr/dirmngr-client.c (start_dirmngr): Likewise.
36331 * tools/gpgconf.c (main): Print "dirmngr-sys-socket" with --list-dirs.
36333 * configure.ac (USE_DIRMNGR_AUTO_START): Set by default.
36335 2014-03-12 Werner Koch <wk@gnupg.org>
36337 gpg: Add option --dirmngr-program.
36338 + commit 6dd5d99a61f24aff862ccba9f7410d7f1af87c05
36339 * g10/gpg.c: Add option --dirmngr-program.
36340 * g10/options.h (struct opt): Add field dirmngr_program.
36341 * g10/call-dirmngr.c (create_context): Use new var.
36343 * dirmngr/dirmngr.c: Include gc-opt-flags.h.
36344 (main): Remove GC_OPT_FLAG_*.
36345 * tools/gpgconf-comp.c (GC_OPT_FLAG_NO_CHANGE): Move macro to ...
36346 * common/gc-opt-flags.h: here.
36348 dirmngr: Detect dead keyservers and try another one.
36349 + commit fb56a273b1f2b3a99dc1d1a0850378ab7625e6b9
36350 * dirmngr/ks-action.c (ks_action_resolve): Rename var for clarity.
36351 (ks_action_search, ks_action_put): Ditto.
36352 (ks_action_get): Consult only the first server which retruned some
36355 * dirmngr/ks-engine-hkp.c (SEND_REQUEST_RETRIES): New.
36356 (map_host): Add arg CTRL and call dirmngr_tick.
36357 (make_host_part): Add arg CTRL.
36358 (mark_host_dead): Allow the use of an URL.
36359 (handle_send_request_error): New.
36360 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Mark host dead and retry on
36363 http: Add a flag to the URL parser indicating a literal v6 address.
36364 + commit 3d9e0eb02ce2b2e153e25deb0fc4b27b45f5026a
36365 * common/http.h (struct parsed_uri_t): Add field v6lit.
36366 * common/http.c (do_parse_uri): Set v6lit.
36368 2014-03-12 NIIBE Yutaka <gniibe@fsij.org>
36370 scd: writekey support of ECC.
36371 + commit 781b94174310dceffa075719420b74b29fe41764
36372 * scd/app-openpgp.c (CURVE_SEC_P256K1, get_algo_byte): New.
36373 (store_fpr): Support ECC keys with varargs.
36374 (get_ecc_key_parameters, get_curve_name): Support secp256k1.
36375 (parse_ecc_curve): Likewise.
36376 (build_ecdsa_privkey_template, rsa_writekey, ecdsa_writekey): New.
36377 (ecdh_writekey): New. Not implemented yet.
36378 (do_writekey): Call rsa_writekey, ecdsa_writekey, or ecdh_writekey.
36379 (do_genkey): Follow the change of store_fpr.
36381 2014-03-11 Werner Koch <wk@gnupg.org>
36383 dirmngr: Put brackets around IP addresses in the hosttable.
36384 + commit 0b2cca807d5a4a3664145032271141da853e7bac
36385 * dirmngr/ks-engine-hkp.c (EAI_OVERFLOW): Provide a substitute.
36386 (my_getnameinfo): New.
36387 (map_host): Use it.
36389 dirmngr: Add command option to mark hosts as dead or alive.
36390 + commit a3dee2889106fcab112c1c96b32e04d8154875e7
36391 * dirmngr/server.c (cmd_killdirmngr): Factor some code out to ...
36392 (check_owner_permission): here.
36393 (cmd_keyserver): Add options --dead and --alive.
36394 * dirmngr/ks-engine-hkp.c (host_in_pool_p): New.
36395 (ks_hkp_mark_host): New.
36397 dirmngr: Make Assuan output of keyblocks easier readable.
36398 + commit 71b55c945542e695161ddbd783f87c5f534012a5
36399 * dirmngr/server.c (data_line_cookie_write): Print shorter data lines
36402 dirmngr: Fix HKP host selection code.
36403 + commit 3c35b46a32ac7584f3807b611cde78b199c527d6
36404 * dirmngr/server.c (cmd_keyserver): Add option --resolve and change
36405 --print-hosttable to --hosttable.
36406 * dirmngr/ks-action.c (ks_printf_help): New.
36407 (ks_action_resolve): New.
36408 * dirmngr/ks-engine-hkp.c (select_random_host): Fix selection.
36409 (ks_hkp_print_hosttable): Print to assuan stream.
36410 (map_host): Remove debug code. Add arg FORCE_SELECT. Return numeric
36411 IP addr if it can't be resolved.
36412 (make_host_part): Add arg FORCE_SELECT; change callers to pass false.
36413 (ks_hkp_resolve): New.
36415 List readline support in configure summary.
36416 + commit f30d8b018871495327cbf711b73b04278a34f3e1
36417 * m4/readline.m4: Set gnupg_cv_have_readline.
36418 * configure.ac: Add readline support to summary output.
36420 2014-03-11 NIIBE Yutaka <gniibe@fsij.org>
36422 agent: API change of agent_key_from_file.
36423 + commit ac5a1a3ccb7c3e6393bc83d73b545dec9b70e7d1
36424 * agent/findkey.c (agent_key_from_file): Always return S-expression.
36425 * agent/command.c (cmd_passwd): Distinguish by SHADOW_INFO.
36426 (cmd_export_key): Likewise. Free SHADOW_INFO.
36427 (cmd_keytocard): Likewise. Release S_SKEY.
36428 * agent/pkdecrypt.c (agent_pkdecrypt): Likewise.
36429 * agent/pksign.c (agent_pksign_do): Likewise. Use the S-expression to
36432 2014-03-10 Werner Koch <wk@gnupg.org>
36434 Backport useful code from fixes for bug 1447.
36435 + commit 57d26f39afb3c75e24a8d240d7af32b9d2b9775a
36436 * configure.ac: Cehck for inet_ntop.
36437 * m4/libcurl.m4: Provide a #define for the version of the curl
36440 scd: acquire lock in new_reader_slot.
36441 + commit 9ab9f414fb919f0bc87c301c3e36180715d0aa4e
36442 * scd/apdu.c (new_reader_slot): Acquire lock.
36443 (open_ct_reader, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
36444 (open_ccid_reader, open_rapdu_reader): Release lock.
36445 (lock_slot, trylock_slot, unlock_slot): Move more to the top.
36447 Do not require libiconv for Android.
36448 + commit b278043a8f38e2706ccf617d2ac5661b33791d6b
36449 * configure.ac (require_iconv): New. Set to false for android.
36450 (AM_ICONV): Run only if required.
36452 2014-03-07 Werner Koch <wk@gnupg.org>
36454 dirmmgr: Use a portability wrapper for struct timeval.
36455 + commit feda379595e06583bc5b3610dec74890de29cb8e
36456 * dirmngr/dirmngr_ldap.c [W32]: Include winber.h.
36457 (my_ldap_timeval_t): New.
36459 Silence more warnings about unused vars and args.
36460 + commit 4387ecb11cdb2addf738eb922c1b9f14c6c76efc
36461 * dirmngr/cdblib.c (cdb_init) [W32]: Remove unused var.
36462 * dirmngr/dirmngr-client.c (start_dirmngr): s/int/assuan_fd_t/.
36463 * dirmngr/dirmngr.c (w32_service_control): Mark unused args.
36464 (call_real_main): New.
36465 (main) [W32]: Use new function to match prototype.
36466 (real_main) [W32]: Mark unused vars.
36467 (handle_signal) [W32]: Do not build the function at all.
36468 (handle_connections) [W32]: Do not define signo.
36469 * dirmngr/ldap-wrapper-ce.c (outstream_reader_cb): Remove used vars.
36470 * g10/tdbio.c (ftruncate) [DOSISH]: Define only if not yet defined.
36472 dirmngr: Simplify strtok macro.
36473 + commit 35266076e3452590931e58f188815859dff6de3c
36474 * dirmngr/ldap-url.c (ldap_utf8_strtok): Remove unused r3d arg.
36475 (ldap_str2charray): Remove lasts.
36477 Use attribute __gnu_printf__ also in estream header files.
36478 + commit 72133b54de89e593d8193b106e9369cf90d2e1c0
36479 * common/estream-printf.h: Use attribute gnu_printf.
36480 * common/estream.h: Ditto.
36482 Use attribute __gnu_printf__ with our estream-printf functions.
36483 + commit 36372dcb2f75a659b7ace0e9c46f07bb431d009c
36484 * common/mischelp.h (JNLIB_GCC_A_PRINTF): Use __gnu_printf__
36485 (JNLIB_GCC_A_NR_PRINTF): Ditto.
36487 w32: Silence warnings about unused vars.
36488 + commit 094aa2589e3920d400be93ae2823a6c4b23db623
36489 * agent/gpg-agent.c (main) [W32]: Mark unused vars.
36490 * sm/gpgsm.c (run_protect_tool) [W32]: Ditto.
36491 * g10/trustdb.c (check_regexp) [DISABLE_REGEX]: Ditto.
36492 * scd/scdaemon.c (main) [W32]: Ditto.
36493 (handle_connections) [W32]: Ditto.
36494 (handle_signal) [W32]: Do not build the function at all.
36495 * scd/apdu.c (pcsc_send_apdu_direct): Ditto.
36496 (connect_pcsc_card): s/long/pcsc_dword_t/.
36497 (open_pcsc_reader_direct): Remove var listlen.
36499 w32: Fix a potential problem in gpgconf's gettext.
36500 + commit a0fc42598f51ef4a958fc3c2fed7f4b8df2da3fd
36501 * tools/gpgconf-comp.c (my_dgettext) [USE_SIMPLE_GETTEXT]: Make sure
36502 to return something even DOMAIN is not given.
36504 Silence several warnings when building under Windows.
36505 + commit 3032fc3ad78ac9ed857570844547afed520d635a
36506 * agent/call-scd.c (start_scd): Replace int by assuan_fd_t.
36507 (start_pinentry): Ditto.
36508 * common/asshelp.c (start_new_gpg_agent): Replace int by assuan_fd_t.
36509 * common/dotlock.c (GNUPG_MAJOR_VERSION): Include stringhelp.h for
36510 prototypes on Windows and some other platforms.
36511 * common/logging.c (fun_writer): Declare addrbuf only if needed.
36512 * g10/decrypt.c (decrypt_message_fd) [W32]: Return not_implemented.
36513 * g10/encrypt.c (encrypt_crypt) [W32]: Return error if used in server
36515 * g10/dearmor.c (dearmor_file, enarmor_file): Replace GNUPG_INVALID_FD
36516 by -1 as temporary hack for Windows.
36517 * g10/export.c (do_export): Ditto.
36518 * g10/revoke.c (gen_desig_revoke, gen_revoke): Ditto.
36519 * g10/sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
36520 * g10/server.c (cmd_verify, gpg_server) [W32]: Return an error.
36522 w32: Include winsock2.h to silence warnings.
36523 + commit cb0dcc340836a64e2d33b27f1be7bc888c084f12
36526 gl: Avoid warning about shadowing an arg.
36527 + commit 84fd36f8baa2b800ea47ff74935f5aaf0e55c299
36528 * gl/setenv.c (KNOWN_VALUE): s/value/_v/.
36530 common: Fix build problem with Sun Studio compiler.
36531 + commit 0fc71f7277c6f833f838bbd384f1a22d0c333e8e
36532 * common/estream.c (ESTREAM_MUTEX_UNLOCK): Use int dummy dummy
36534 (ESTREAM_MUTEX_INITIALIZE): Ditto.
36536 gpg: Do not require a trustdb with --always-trust.
36537 + commit d8f0b83e4f04641e5e9adbdd8abada15380f981c
36538 * g10/tdbio.c (tdbio_set_dbname): Add arg R_NOFILE.
36539 * g10/trustdb.c (trustdb_args): Add field no_trustdb.
36540 (init_trustdb): Set that field.
36541 (revalidation_mark): Take care of a nonexistent trustdb file.
36542 (read_trust_options): Ditto.
36543 (tdb_get_ownertrust): Ditto.
36544 (tdb_get_min_ownertrust): Ditto.
36545 (tdb_update_ownertrust): Ditto.
36546 (update_min_ownertrust): Ditto.
36547 (tdb_clear_ownertrusts): Ditto.
36548 (tdb_cache_disabled_value): Ditto.
36549 (tdb_check_trustdb_stale): Ditto.
36550 (tdb_get_validity_core): Ditto.
36551 * g10/gpg.c (main): Do not create a trustdb with most commands for
36552 trust-model always.
36554 gpg: Print a "not found" message for an unknown key in --key-edit.
36555 + commit dfb25d47a9fcfd7c7c084ea58744724cd5315086
36556 * g10/keyedit.c (keyedit_menu): Print message.
36558 gpg: Protect against rogue keyservers sending secret keys.
36559 + commit db1f74ba5338f624f146a3cb41a346e46b15c8f9
36560 * g10/options.h (IMPORT_NO_SECKEY): New.
36561 * g10/keyserver.c (keyserver_spawn, keyserver_import_cert): Set new
36563 * g10/import.c (import_secret_one): Deny import if flag is set.
36565 agent: Fix UPDATESTARTUPTTY for ssh.
36566 + commit 90688b29f3701f4d3e2a5a49c5544fe8d2a84b2d
36567 * agent/command-ssh.c (setup_ssh_env): Fix env setting.
36569 gpgv: Init Libgcrypt to avoid syslog warning.
36570 + commit 7c4bfa599fa69c3a942c8deea83737a4c5a0806e
36571 * g10/gpgv.c (main): Check libgcrypt version and disable secure
36574 Improve libcurl detection.
36575 + commit 5ca482d5f949444ffd453de158ee186ab07fc9b6
36576 * m4/libcurl.m4: Do not use AC_PATH_PROG if --with-libcurl as been
36577 given. Suggested by John Marshall.
36579 gpg: Remove legacy keyserver examples from the template conf file.
36580 + commit 0ab752cc2d46bbd0077bed889676169b7aeb1eb6
36581 * g10/options.skel: Update.
36583 (cherry picked from commit f3c5cc8bcd37e38b5d65db6a50466e22d03d1f0c)
36585 w32: Define WINVER only if needed.
36586 + commit 76b1940ad6f5f058c4a6bec35902da9f6d4e27b0
36587 * common/sysutils.c (WINVER): Define only if less that 5.0.
36589 w32: Remove unused code.
36590 + commit 63b7658a29809249d7aeb0423bf8c5a693eee0c7
36591 * jnlib/w32-reg.c (write_w32_registry_string): Remove.
36593 agent: Make --allow-mark-trusted the default.
36594 + commit 9942a149ff2ab919c1b2916c7bc347e578a56b14
36595 * agent/gpg-agent.c (opts, main): Add option --no-allow-mark-trusted.
36596 Put this option into the gpgconf-list.
36597 (main): Enable opt.allow_mark_trusted by default.
36598 * tools/gpgconf-comp.c (gc_options_gpg_agent): Replace
36599 allow-mark-trusted by no-allow-mark-trusted.
36601 * agent/trustlist.c (agent_marktrusted): Always set the "relax" flag.
36603 ssh: Add support for Putty.
36604 + commit 5105c8d2d344fd7301d456d8c13c7e90a54f7e98
36605 * agent/gpg-agent.c [W32]: Include Several Windows header.
36606 (opts): Change help text for enable-ssh-support.
36607 (opts, main): Add option --enable-putty-support
36608 (putty_support, PUTTY_IPC_MAGIC, PUTTY_IPC_MAXLEN): New for W32.
36609 (agent_init_default_ctrl): Add and asssert call.
36610 (putty_message_proc, putty_message_thread): New.
36611 (handle_connections) [W32]: Start putty message thread.
36612 * common/sysutils.c (w32_get_user_sid): New for W32 only
36613 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add
36614 --enable-ssh-support and --enable-putty-support. Make the
36615 configuration group visible at basic level.
36616 * agent/command-ssh.c (serve_mmapped_ssh_request): New for W32 only.
36618 agent: Fix binary vs. text mode problem in ssh.
36619 + commit 179012ddd48e63ca83e8f5c24537a2db45c3e122
36620 * agent/command-ssh.c (file_to_buffer)
36621 (ssh_handler_request_identities): Open streams in binary mode.
36622 (start_command_handler_ssh): Factor some code out to ..
36623 (setup_ssh_env): new function.
36625 Fix syntax error for building on APPLE.
36626 + commit 4ad123d6fe341da7768e43360375e17fa89e8e0d
36627 * scd/pcsc-wrapper.c [__APPLE__]: Fix syntax error.
36629 Ignore obsolete option --disable-keypad.
36630 + commit d2a6be24af0bf220bb448fdd50c0196faddee0f4
36631 * scd/scdaemon.c (opts): Ignore --disable-keypad.
36633 Allow marking options as ignored.
36634 + commit 8fc9de8d6bf663f7c8419b42dab01f590a694d59
36635 * jnlib/argparse.h (ARGPARSE_OPT_IGNORE): New.
36636 (ARGPARSE_TYPE_MASK): New, for internal use.
36637 (ARGPARSE_ignore): New.
36638 * jnlib/argparse.c (optfile_parse, arg_parse): Replace remaining
36639 constants by macros.
36640 (optfile_parse): Implement ARGPARSE_OPT_IGNORE.
36641 (arg_parse): Exclide ignore options from --dump-options.
36643 2014-03-06 Werner Koch <wk@gnupg.org>
36645 common: Fix recent commit 55656208.
36646 + commit 191e32026f02054b1edb4f02536875462fd0b6b3
36647 * common/membuf.c (get_membuf_shrink): Fix use of LEN.
36649 2014-03-06 NIIBE Yutaka <gniibe@fsij.org>
36652 + commit 5ed8e9335fb886d7ddc86728d8481e5e47485531
36653 * g10/trust.c (register_trusted_keyid, register_trusted_key)
36654 (update_ownertrust): Call functions with tdb_.
36656 2014-02-26 Werner Koch <wk@gnupg.org>
36658 common: Replace all macros in strusage() returned strings.
36659 + commit 0f38c87f427a155ab5684e18e3b73956f81edfab
36660 * common/argparse.c (writechar): Remove.
36661 (writestrings): Simplify.
36662 (strusage): Use map_static_macro_string.
36664 common: New function map_static_macro_string.
36665 + commit c72762f9acf3eef5c466ba76e895d7654df12ff7
36666 * common/mapstrings.c: New.
36667 * common/t-mapstrings.c: New.
36668 * common/t-support.h (DIM, DIMof): Define if not defined.
36669 * common/Makefile.am: Add new files.
36671 common: New function get_membuf_shrink.
36672 + commit 556562086acd2bc2f8e3aa3126ebf155715e042b
36673 * common/membuf.c (get_membuf_shrink): New.
36675 agent: Fixed unresolved symbol under Windows.
36676 + commit 55c3e5f448c26360eda31e05b1f62249119f73d9
36677 * agent/gpg-agent.c (main): s/ttyname/gnupg_ttyname/.
36679 common: Require an installed libiconv.
36680 + commit 380a2aa18e0c048cfefa1cb4102dfbf902a1962b
36681 * common/utf8conv.c: Remove dynload.h.
36682 (load_libiconv): Remove. Remove all calls to it.
36684 2014-02-10 Werner Koch <wk@gnupg.org>
36686 gpg: Silent more compiler warnings due to some configure options.
36687 + commit 47e6b6bad1dff493f4102a5549a7bb54466684c2
36688 * g10/keygen.c (generate_keypair, gen_card_key)
36689 (gen_card_key_with_backup) [!ENABLE_CARD_SUPPORT]: Mark unused args.
36691 tests: Avoid segv if dns cert lookup is not configured.
36692 + commit 672f4aeba8bf55839911e1fe805af6b2873853f7
36693 * common/dns-cert.c (get_dns_cert) [!USE_DNS_CERT]: Reset return args.
36695 gpg: Cleanup compiler warnings due to some configure options.
36696 + commit 7901c5c2a3b7b24e9a4eaab590b0a54e9695c3e4
36697 * g10/photoid.c (show_photos) [DISABLE_PHOTO_VIEWER]: Mark args as
36699 * tools/gpgconf-comp.c (my_dgettext): Mark DOMAIN as unused if NLS is
36702 gpg: Allow building without any trust model support.
36703 + commit 62fb86c6589f7f74dad4741db31b3aefa0848420
36704 * configure.ac: Add option --disable-trust-models
36705 (NO_TRUST_MODELS): New ac_define and am_conditional.
36706 * g10/Makefile.am (trust_source): New.
36707 (gpg2_SOURCES): Factor some files out to above. Add trust.c.
36708 * g10/gpg.c [NO_TRUST_MODELS]: Disable options --export-ownertrust,
36709 --import-ownertrust, --update-trustdb, --check-trustdb, --fix-trustdb,
36710 --list-trustdb, --trustdb-name, --auto-check-trustdb,
36711 --no-auto-check-trustdb, and --force-ownertrust.
36712 (parse_trust_model) [NO_TRUST_MODELS]: Do not build.
36713 (main) [NO_TRUST_MODELS]: Set trust_model to always and exclude all
36714 trustdb related option code.
36715 * g10/keyedit.c (cmds) [NO_TRUST_MODELS]: Remove menu items "trust",
36716 "enable", and "disable".
36717 * g10/keylist.c (public_key_list) [NO_TRUST_MODELS]: Do not print
36720 * g10/trust.c: New.
36721 * g10/trustdb.c (struct key_item): Move to trustdb.h.
36722 (register_trusted_keyid): Rename to tdb_register_trusted_keyid.
36723 (register_trusted_key): Rename to tdb_register_trusted_key.
36724 (trust_letter, uid_trust_string_fixed, trust_value_to_string)
36725 (string_to_trust_value, get_ownertrust_with_min, get_ownertrust_info)
36726 (get_ownertrust_string, get_validity_info, get_validity_string)
36727 (clean_sigs_from_uid, clean_uid_from_key, clean_key): Move to trust.c.
36728 (mark_usable_uid_certs): Move to trust.c and make global.
36729 (is_in_klist): Move as inline to trustdb.h.
36730 (trustdb_check_or_update): Rename to tdb_check_or_update
36731 (revalidation_mark): Rename to tdb_revalidation_mark.
36732 (get_ownertrust): Rename to tdb_get_ownertrust.
36733 (get_min_ownertrust): Rename to tdb_get_min_ownertrust.
36734 (update_ownertrust): Rename to tdb_update_ownertrust.
36735 (clear_ownertrusts): Rename to tdb_clear_ownertrusts.
36736 (cache_disabled_value): Rename to tdb_cache_disabled_value.
36737 (check_trustdb_stale): Rename to tdb_check_trustdb_stale.
36738 (get_validity): Rename to tdb_get_validity_core, add arg MAIN_PK and
36739 factor some code out to ...
36740 * trust.c (get_validity): ...new.
36741 (check_or_update_trustdb): New wrapper.
36742 (revalidation_mark): New wrapper.
36743 (get_ownertrust): New wrapper.
36744 (get_ownertrust_with_min): New wrapper.
36745 (update_ownertrust): New wrapper.
36746 (clear_ownertrusts): New wrapper.
36747 (cache_disabled_value): New wrapper.
36748 (check_trustdb_stale): New wrapper.
36750 * tests/openpgp/defs.inc (opt_always): New. Use in all tests instead
36753 tests: Handle disabled algorithms.
36754 + commit ea7f895319e89150e5613b6d20f21410f99d6f22
36755 * tests/openpgp/mds.test: Skip disabled algorithms.
36756 * tests/openpgp/signencrypt-dsa.test: Ditto.
36757 * tests/openpgp/sigs-dsa.test: Ditto.
36759 2014-02-07 Werner Koch <wk@gnupg.org>
36761 Silence annoying ABI change warning.
36762 + commit 111f082487dc7a2a50375e24203de31b000e0dea
36763 * configure.ac [GCC]: Pass -Wno-psabi for gcc >= 4.6. Avoid some gcc
36764 option tests for gcc >= 4.6
36766 Allow disabling of card support.
36767 + commit 8e0ba4ecd3897c748ac2f06028406604ae7baced
36768 * configure.ac: Add option --disable-card-support. Also add
36769 am_conditional and do not build scd if card support is enabled.
36771 gpg: List only available algos in --gen-key.
36772 + commit 357b142e7225e5c7f1e0f9768f48e833d5804b6a
36773 * g10/keygen.c (ask_algo, ask_curve): Take care of GPG_USE_<algo>.
36775 gpg: Change --print-mds to output enabled OpenPGP algos.
36776 + commit 54a11729fb71ba06e318fe229d0a230686ed4dc8
36777 * g10/gpg.c (print_mds): Use opengpg_md_test_algo. Test also for MD5
36780 gpg: Avoid compiler warnings for disabled algos.
36781 + commit aa76a1660613ece3fc0d774856abcbe0bb158300
36782 * g10/misc.c (map_cipher_openpgp_to_gcry): Add case for disabled algo.
36783 (openpgp_pk_test_algo2): Ditto.
36784 (map_md_openpgp_to_gcry): Ditto.
36786 2014-02-05 Werner Koch <wk@gnupg.org>
36788 gpg: Change format for the key size in --list-key and --edit-key.
36789 + commit 2c814806d759e5cf611200e8210137cf8502a672
36790 * g10/gpg.c (oLegacyListMode, opts, main): Add --legacy-list-mode.
36791 * g10/options.h (struct opt): Add field legacy_list_mode.
36792 * g10/keydb.h (PUBKEY_STRING_SIZE): New.
36793 * g10/keyid.c (pubkey_string): New.
36794 * g10/import.c (import_one, import_secret_one): Use pubkey_string.
36795 * g10/keylist.c (print_seckey_info): Ditto.
36796 (print_pubkey_info, print_card_key_info): Ditto.
36797 (list_keyblock_print): Ditto.
36798 * g10/mainproc.c (list_node): Ditto.
36799 * g10/pkclist.c (do_edit_ownertrust, build_pk_list): Ditto.
36800 * g10/keyedit.c (show_key_with_all_names): Ditto. Also change the
36802 (show_basic_key_info): Ditto.
36803 * common/openpgp-oid.c (openpgp_curve_to_oid): Also allow "ed25519".
36804 (openpgp_oid_to_curve): Downcase "ed25519"
36806 2014-01-31 Werner Koch <wk@gnupg.org>
36808 gpg: Add configure options to disable algorithms.
36809 + commit 2ba818de1aa311ba8eb27012d69e93dd16e7d4ed
36810 * acinclude.m4 (GNUPG_GPG_DISABLE_ALGO): New.
36811 * configure.ac: Add --enable-gpg-* options to disable non MUS
36813 * g10/misc.c (map_cipher_openpgp_to_gcry): Implement these options.
36814 (openpgp_pk_test_algo2): Ditto.
36815 (map_md_openpgp_to_gcry): Ditto.
36816 (openpgp_cipher_test_algo, openpgp_md_test_algo): Simplify.
36818 gpg: Improve --version algo info output.
36819 + commit 71540d40414dc8b304b45dc476e5e5650a2db20a
36820 * g10/misc.c (openpgp_pk_algo_name): Return a different string for
36821 each ECC algorithm.
36822 * g10/gpg.c (build_list_pk_test_algo): New wrapper to cope with the
36823 different algo type enums.
36824 (build_list_pk_algo_name): Ditto.
36825 (build_list_cipher_test_algo): Ditto.
36826 (build_list_cipher_algo_name): Ditto.
36827 (build_list_md_test_algo): Ditto.
36828 (build_list_md_algo_name): Ditto.
36829 (my_strusage): Use them.
36830 (list_config): Ditto. Add "pubkeyname".
36831 (build_list): Add letter==1 hack.
36833 gpg: Start using OpenPGP digest algo ids.
36834 + commit bf50604a0d50b974c1d4b8ccf5d774489f996cae
36835 * g10/misc.c (print_pubkey_algo_note): Use enum typedef for the arg.
36836 (print_cipher_algo_note): Ditto.
36837 (print_digest_algo_note): Ditto.
36838 (map_md_openpgp_to_gcry): New.
36839 (openpgp_md_test_algo): Rewrite.
36840 (openpgp_md_algo_name): Rewrite to do without Libgcrypt.
36841 * g10/cpr.c (write_status_begin_signing): Remove hardwired list of
36844 gpg: Use only OpenPGP cipher algo ids.
36845 + commit 16a6311adefff0139056714521214f845315b7f8
36846 * g10/misc.c (map_cipher_openpgp_to_gcry): Use explicit mapping and
36847 use enums for the arg and return value.
36848 (map_cipher_gcry_to_openpgp): Ditto.
36849 (openpgp_cipher_blocklen): Use constant macros.
36850 (openpgp_cipher_test_algo): Use mapping function and prepare to
36851 disable algorithms.
36852 (openpgp_cipher_algo_name): Do not use Libgcrypt.
36854 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Replace
36855 CGRY_CIPHER_* by CIPHER_ALGO_*.
36857 * common/openpgpdefs.h (cipher_algo_t): Remove unused
36860 2014-01-30 Werner Koch <wk@gnupg.org>
36862 gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id.
36863 + commit b7f8dec6325f1c80640f878ed3080bbc194fbc78
36864 * common/sexputil.c (get_pk_algo_from_canon_sexp): Change to return a
36866 * g10/keygen.c (check_keygrip): Adjust for change.
36867 * sm/certreqgen-ui.c (check_keygrip): Likewise.
36869 * agent/pksign.c (do_encode_dsa): Remove bogus map_pk_openpgp_to_gcry.
36871 * g10/misc.c (map_pk_openpgp_to_gcry): Remove.
36872 (openpgp_pk_test_algo): Change to a wrapper for openpgp_pk_test_algo2.
36873 (openpgp_pk_test_algo2): Rewrite.
36874 (openpgp_pk_algo_usage, pubkey_nbits): Add support for EdDSA.
36875 (openpgp_pk_algo_name): Rewrite to remove need for gcry calls.
36876 (pubkey_get_npkey, pubkey_get_nskey): Ditto.
36877 (pubkey_get_nsig, pubkey_get_nenc): Ditto.
36878 * g10/keygen.c(do_create_from_keygrip): Support EdDSA.
36879 (common_gen, gen_ecc, ask_keysize, generate_keypair): Ditto.
36880 * g10/build-packet.c (do_key): Ditto.
36881 * g10/export.c (transfer_format_to_openpgp): Ditto.
36882 * g10/getkey.c (cache_public_key): Ditto.
36883 * g10/import.c (transfer_secret_keys): Ditto.
36884 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
36885 * g10/mainproc.c (proc_pubkey_enc): Ditto.
36886 * g10/parse-packet.c (parse_key): Ditto,
36887 * g10/sign.c (hash_for, sign_file, make_keysig_packet): Ditto.
36888 * g10/keyserver.c (print_keyrec): Use openpgp_pk_algo_name.
36889 * g10/pkglue.c (pk_verify, pk_encrypt, pk_check_secret_key): Use only
36890 OpenPGP algo ids and support EdDSA.
36891 * g10/pubkey-enc.c (get_it): Use only OpenPGP algo ids.
36892 * g10/seskey.c (encode_md_value): Ditto.
36894 2014-01-29 Werner Koch <wk@gnupg.org>
36896 gpg: Remove cipher.h and put algo ids into a common file.
36897 + commit ea8a1685f75d27f5277d42ea7390ad5aeaf51b1f
36898 * common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
36899 (compress_algo_t): New.
36900 * agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
36901 * g10/cipher.h (DEK): Move to ...
36902 * g10/dek.h: new file.
36903 * g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
36904 (PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
36905 (PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
36906 (PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
36907 * g10/packet.h: here.
36908 * g10/cipher.h: Remove. Remove from all files.
36909 * g10/filter.h, g10/packet.h: Include dek.h.
36910 * g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
36912 include: Remove this directory.
36913 + commit 25b4c2acbd01f9b4c2c364f44c53b73498ed8469
36914 * include/cipher.h: Move to ...
36915 * g10/cipher.h: here.
36916 * agent/gpg-agent.c: Adjust header file name.
36918 * include/host2net.h: Move to ...
36919 * common/host2net.h: here. Change license to LGPLv3/GPLv2. Adjust
36920 notices to reflect that only me worked on that file.
36922 * include/types.h: Remove.
36923 * common/types.h: Include inttypes.h. Add byte typedef and comments
36925 * common/iobuf.h: Adjust header file name.
36927 * include/_regex.h: Remove this unused file.
36929 * include/Makefile.am: Remove.
36930 * Makefile.am (SUBDIRS): Remove "include".
36931 * configure.ac (AC_CONFIG_FILES): Remove include/Makefile.
36932 * include/ChangeLog-2011: Move to ...
36933 * common/ChangeLog-2011.include: here.
36934 * common/Makefile.am (EXTRA_DIST): Add file.
36936 * include/zlib-riscos.h: Move this repo only file to ...
36937 * g10/zlib-riscos.h: here.
36939 * include/: Remove.
36941 2014-01-17 Werner Koch <wk@gnupg.org>
36943 Remove unused u64 type definitions.
36944 + commit 362a30d8c2f529cd44687066f9c33cab7b43bedc
36945 * configure.ac: Remove check for uint64 and UINT64_C.
36946 * include/types.h: Remove u64 stuff.
36947 * common/types.h: Ditto.
36949 2014-01-16 NIIBE Yutaka <gniibe@fsij.org>
36951 agent: Not remove SSH socket when already running.
36952 + commit 0ee66a6f66d7389e381fffa5f9eedbc8de9add10
36953 * agent/gpg-agent.c (main): Defer setting of socket_name_ssh to avoid
36954 removal of the socket when it will die in create_server_socket for
36957 agent: Fix agent_is_eddsa_key.
36958 + commit 9c731bbedfd8bded5efd886304c5ca6655768c45
36959 * agent/findkey.c (agent_is_eddsa_key): Implemented.
36961 2014-01-15 NIIBE Yutaka <gniibe@fsij.org>
36964 + commit c5e41f539b9a21cbad10c7dae95572a4445d31c3
36965 * common/openpgp-oid.c (openpgp_curve_to_oid): Add secp256k1.
36966 (openpgp_oid_to_curve): Likewise.
36968 * g10/keygen.c (ask_curve): Add secp256k1.
36970 2014-01-10 Werner Koch <wk@gnupg.org>
36972 autogen.sh: Add rule for 64 bit windows.
36973 + commit aedfa95bcc49156f2bc6ae5d0f385705d4fbdd32
36976 Turn autogen.sh into a generic script.
36977 + commit e7973d36d88178b4b0a977e3fcc0d62600777618
36978 * autogen.sh: Revamp.
36980 * Makefile.am (EXTRA_DIST): Add autogen.rc.
36982 Rename scripts/ to build-aux/
36983 + commit 99a48b2fcdf7c33fe553511c12f2ebb8eea5c634
36984 * scripts/: Rename to build-aux/
36985 * Makefile.am: Adjust accordingly.
36986 * configure.ac (AC_CONFIG_AUX_DIR): Change to build-aux.
36988 2014-01-09 Werner Koch <wk@gnupg.org>
36990 Improve the speedo make script.
36991 + commit a55ffb9da9a844bd2bd73a4a2ea65bf18b21c57f
36992 * scripts/gpg-w32-dev/README: Remove
36993 * scripts/gpg-w32-dev/GNUmakefile, scripts/gpg-w32-dev/speedo.mk:
36995 * scripts/speedo.mk: this.
36997 gpgsplit: Allow building without zlib support.
36998 + commit 00d5d2204cefb0f4b953e0c00448f16aab2d39c7
36999 * tools/gpgsplit.c [!HAVE_ZLIB]: Do not include zlib.h.
37000 (handle_zlib): Build only if HAVE_ZLIB is defined.
37001 (write_part): Support zlib and zip only if HAVE_ZLIB is defined.
37003 w32: Fix backslash quoting in registry name.
37004 + commit fa318406c9bdb60aee1e1b410e4c9e0b3eb1392e
37005 * configure.ac (GNUPG_REGISTRY_DIR): Double backslashes.
37008 + commit 477aabaf753f987987f7a2e1f999a499ea3bd103
37009 * configure.ac (HAVE_ZLIB): Define only if found.
37011 Add --enable-silent-rules stuff.
37012 + commit aba53e9f96d0c9b270edef0806976a56326249c4
37013 * configure.ac: Add AM_SILENT_RULES.
37015 2014-01-08 Werner Koch <wk@gnupg.org>
37017 w32: Add macro for the registry key.
37018 + commit 75ba215ebd8be7e14b26bb53ef3c7d41e4ce1e02
37019 * configure.ac (GNUPG_REGISTRY_DIR) [W32]: New ac-define.
37020 * common/homedir.c (default_homedir): Use it.
37021 * common/logging.c (do_logv): Use it.
37023 2013-12-11 Werner Koch <wk@gnupg.org>
37025 gpg: Change --show-session-key to print the session key earlier.
37026 + commit 101a54add351ff62793cbfbf3877787c4791f833
37027 * g10/cpr.c (write_status_strings): New.
37028 (write_status_text): Replace code by a call to write_status_strings.
37029 * g10/mainproc.c (proc_encrypted): Remove show_session_key code.
37030 * g10/decrypt-data.c (decrypt_data): Add new show_session_key code.
37032 2013-12-05 Werner Koch <wk@gnupg.org>
37034 gpg: Change OID of Ed25519 and add Brainpool oids.
37035 + commit 59207a86e5f40c77fed296b642bf76692e8eef65
37036 * common/openpgp-oid.c (openpgp_curve_to_oid): Change OID for
37037 Ed25519. Add brainpool OIDs.
37038 (openpgp_oid_to_curve): Ditto.
37040 2013-11-29 Werner Koch <wk@gnupg.org>
37042 common: Add put_membuf_printf.
37043 + commit 159d42ee6ab21d97f40ee129445f37209b875739
37044 * common/membuf.c (put_membuf_printf): New.
37046 2013-11-27 Werner Koch <wk@gnupg.org>
37048 gpg: Change armor Version header to emit only the major version.
37049 + commit e951782e937ce290be0d89d83e84b3daea997587
37050 * g10/options.h (opt): Rename field no_version to emit_version.
37051 * g10/gpg.c (main): Init opt.emit_vesion to 1. Change --emit-version
37052 to bump up opt.emit_version.
37053 * g10/armor.c (armor_filter): Implement different --emit-version
37056 2013-11-18 Werner Koch <wk@gnupg.org>
37058 Make use of the *_NAME etc macros.
37059 + commit cc9a0b69b698ba436eaf777e5020532845b56236
37060 Replace hardwired strings at many places with new macros from config.h
37061 and use the new strusage macro replacement feature.
37063 * common/asshelp.c (lock_spawning) [W32]: Change the names of the spawn
37065 * agent/command.c (cmd_import_key): Use asprintf to create the prompt.
37067 Add strusage macro replacement feature.
37068 + commit 798daaa1ddf73f64cf840fbdc1f4c5b9c4b4ec13
37069 * common/argparse.c (writechar): New.
37070 (writestrings): Add macro replacement feature.
37071 (show_help): Remove specialized @EMAIL@ replacement.
37072 * configure.ac (GNUPG_NAME, GPG_NAME, GPGSM_NAME): Define.
37073 (GPG_AGENT_NAME, DIRMNGR_NAME, G13_NAME, GPGCONF_NAME): Define.
37074 (GPGTAR_NAME, GPG_AGENT_INFO_NAME, GPG_AGENT_SOCK_NAME): Define.
37075 (GPG_AGENT_SSH_SOCK_NAME, DIRMNGR_INFO_NAME): Define.
37076 (DIRMNGR_SOCK_NAME): Define.
37078 2013-11-15 Werner Koch <wk@gnupg.org>
37080 kbx: Implement update operation for OpenPGP keyblocks.
37081 + commit 5499942571a88a1223a7318992605c6d29858866
37082 * kbx/keybox-update.c (keybox_update_keyblock): Implement.
37083 * kbx/keybox-search.c (get_blob_flags): Move to ...
37084 * kbx/keybox-defs.h (blob_get_type): here.
37085 * kbx/keybox-file.c (_keybox_read_blob2): Fix calling without R_BLOB.
37086 * g10/keydb.c (build_keyblock_image): Allow calling without
37088 (keydb_update_keyblock): Implement for keybox.
37090 * kbx/keybox-dump.c (_keybox_dump_blob): Fix printing of the unhashed
37091 size. Print "does not expire" also on 64 bit platforms.
37093 gpg: Rework ECC support and add experimental support for Ed25519.
37094 + commit 402aa0f94854bb00475c934be5ca6043a4632126
37095 * agent/findkey.c (key_parms_from_sexp): Add algo name "ecc".
37096 (agent_is_dsa_key): Ditto.
37097 (agent_is_eddsa_key): New. Not finished, though.
37098 * agent/pksign.c (do_encode_eddsa): New.
37099 (agent_pksign_do): Use gcry_log_debug functions.
37100 * agent/protect.c (agent_protect): Parse a flags parameter.
37101 * g10/keygen.c (gpg_curve_to_oid): Move to ...
37102 * common/openpgp-oid.c (openpgp_curve_to_oid): here and rename.
37103 (oid_ed25519): New.
37104 (openpgp_oid_is_ed25519): New.
37105 (openpgp_oid_to_curve): New.
37106 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): New.
37107 * g10/build-packet.c (gpg_mpi_write): Write the length header also for
37109 (gpg_mpi_write_nohdr): New.
37110 (do_key): Use gpg_mpi_write_nohdr depending on algorithm.
37111 (do_pubkey_enc): Ditto.
37112 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Use
37113 gpg_mpi_write_nohdr.
37114 * g10/export.c (transfer_format_to_openpgp):
37115 * g10/keygen.c (ecckey_from_sexp): Return the error.
37116 (gen_ecc): Repalce arg NBITS by CURVE.
37117 (read_parameter_file): Add keywords "Key-Curve" and "Subkey-Curve".
37119 (generate_keypair, generate_subkeypair): Use ask_curve.
37120 (do_generate_keypair): Also pass curve name.
37121 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Print
37123 * g10/parse-packet.c (mpi_read): Remove workaround for
37125 (parse_key): Fix ECC case. Print the curve name.
37126 * g10/pkglue.c (mpi_from_sexp): Rename to get_mpi_from_sexp.
37127 (pk_verify, pk_check_secret_key): Add special case for Ed25519.
37128 * g10/seskey.c (encode_md_value): Ditto.
37129 * g10/sign.c (do_sign, hash_for, sign_file): Ditto.
37131 kbx: Fix possible segv in kbxdump.
37132 + commit 9ae48b173c93f4747a9826beb1fbd023c4362c22
37133 * kbx/keybox-dump.c (_keybox_dump_blob): Check length before get32.
37135 Require Libgcrypt 1.6.
37136 + commit b27161cd0c76ae6e2381f60c3a502cde3a2aaa21
37137 * agent/pksign.c (do_encode_dsa): Remove Libgcrypt version check
37139 2013-11-13 NIIBE Yutaka <gniibe@fsij.org>
37141 scd: more pinpad input fix for PC/SC.
37142 + commit abd922e79b2ff63a5a763a30d4a06a91f93d0b12
37143 * scd/apdu.c (check_pcsc_pinpad): Set default values here.
37144 (pcsc_pinpad_verify, pcsc_pinpad_modify): Remove setting default
37145 values, as it's too late.
37147 2013-11-11 NIIBE Yutaka <gniibe@fsij.org>
37149 scd: more pinpad fix.
37150 + commit 037dea9dd5eac7a74df0e12cb437e71fb0732afa
37151 * scd/apdu.c (check_pcsc_pinpad): Set ->minlen and ->maxlen only when
37152 those are specified.
37153 (pcsc_pinpad_modify): Remove old check code.
37155 2013-10-29 NIIBE Yutaka <gniibe@fsij.org>
37157 scd: pinpad fix for PC/SC on Windows.
37158 + commit 32989ad2b152d18198d718bc2c7232ce3e79c72f
37159 * scd/apdu.c (SCARD_CTL_CODE): Fix for Windows.
37161 2013-10-28 Werner Koch <wk@gnupg.org>
37163 doc: Change yat2m to allow arbitrary condition names.
37164 + commit a15c35f37ed2b58805adc213029998aa3e52f038
37165 * doc/yat2m.c (MAX_CONDITION_NESTING): New.
37166 (gpgone_defined): Remove.
37167 (condition_s, condition_stack, condition_stack_idx): New.
37168 (cond_is_active, cond_in_verbatim): New.
37169 (add_predefined_macro, set_macro, macro_set_p): New.
37170 (evaluate_conditions, push_condition, pop_condition): New.
37171 (parse_file): Rewrite to use the condition stack.
37172 (top_parse_file): Set prefined macros.
37173 (main): Change -D to define arbitrary macros.
37175 2013-10-25 NIIBE Yutaka <gniibe@fsij.org>
37177 scd: fix pinpad input on Windows.
37178 + commit de7e15c6b80164a351586e9087aad86420c8b89e
37179 * scd/apdu.c (open_pcsc_reader_direct): Don't call
37180 pcsc_vendor_specific_init here, but...
37181 (connect_pcsc_card): Call it here.
37183 2013-10-23 NIIBE Yutaka <gniibe@fsij.org>
37185 po: Update Japanese translation.
37186 + commit b66158cac7347e4c56c79ab7b5416ae5b3f4a0a2
37189 2013-10-16 NIIBE Yutaka <gniibe@fsij.org>
37191 scd: add pinpad readers information for PC/SC service.
37192 + commit 5efcc2b8fee8de31d255d09037f0a1e6209eab32
37193 * scd/apdu.c (pcsc_vendor_specific_init): Add information for Cherry
37194 ST-2xxx, Reiner cyberJack, Vasco DIGIPASS, FSIJ Gnuk Token, and KAAN
37197 2013-10-15 NIIBE Yutaka <gniibe@fsij.org>
37199 scd: remove pin length check.
37200 + commit e0ab665a792ada6470cb8885b8427acc3c960998
37201 * scd/apdu.c (pcsc_pinpad_verify): Remove old check code for pin
37204 2013-10-04 Werner Koch <wk@gnupg.org>
37206 gpg: Limit the nesting level of I/O filters.
37207 + commit e6175055fbca958b7fa43aaf84359574ca7f3ebb
37208 * common/iobuf.c (MAX_NESTING_FILTER): New.
37209 (iobuf_push_filter2): Limit the nesting level.
37211 * g10/mainproc.c (mainproc_context): New field ANY. Change HAVE_DATA
37212 and ANY_SIG_SIGN to bit fields of ANY. Add bit field
37214 (proc_compressed): Avoid printing multiple Bad Data messages.
37215 (check_nesting): Return GPG_ERR_BAD_DATA instead of UNEXPECTED_DATA.
37217 2013-10-02 Werner Koch <wk@gnupg.org>
37219 gpg: Fix bug with deeply nested compressed packets.
37220 + commit 0899f6d4be0406c9efbf9c3f342825804f359b5a
37221 * g10/mainproc.c (MAX_NESTING_DEPTH): New.
37222 (proc_compressed): Return an error code.
37223 (check_nesting): New.
37224 (do_proc_packets): Check packet nesting depth. Handle errors from
37227 2013-09-08 Werner Koch <wk@gnupg.org>
37229 Switch to deterministic DSA.
37230 + commit 6466db10fb22a4f24df4edad9c5cb33ec67321bd
37231 * agent/pksign.c (rfc6979_hash_algo_string): New.
37232 (do_encode_dsa) [Libgcrypt >= 1.6]: Make use of RFC-6979.
37234 2013-08-30 Werner Koch <wk@gnupg.org>
37236 scd: Suppress gcc warning about possible uninitialized use.
37237 + commit 244587ea41d4c75cb5570356f09a6705864a7e8d
37238 * scd/app-nks.c (parse_pwidstr): Always init r_pwid.
37240 gpg: Use 2048 as the default keysize in batch mode.
37241 + commit 4c3b35b067a4e7002bb6473b879b551014bb7857
37242 * g10/keygen.c (gen_elg, gen_dsa, gen_rsa): Set default keysize to
37245 gpgtar: Fix building for systems with a separate libintl.
37246 + commit 12990efb45ee7c425167aad19fe759d5609c5182
37247 * tools/Makefile.am (gpgtar_LDADD): Add LIBINTL and LIBICONV.
37249 scd: Use vendor and product id macros also in apdu.c.
37250 + commit fc31d730d8506b069de1d3529ed26660856bf07f
37251 * scd/ccid-driver.c: Move vendor and product ids to ...
37252 * scd/ccid-driver.h: here.
37253 * scd/apdu.c (CCID_DRIVER_INCLUDE_USB_IDS): Define to include ids.
37254 (pcsc_vendor_specific_init): Use vendor and product id macros.
37256 2013-08-30 NIIBE Yutaka <gniibe@fsij.org>
37258 scd: PC/SC pinpad input improvement.
37259 + commit 95a3bffeaf07e8bf9487d4b165c336d166236fc1
37260 * scd/apdu.c (struct reader_table_s): Add members: PINMIN, PINMAX, and
37261 PINPAD_VERLEN_SUPPORTED.
37262 (CM_IOCTL_VENDOR_IFD_EXCHANGE, FEATURE_GET_TLV_PROPERTIES,
37263 PCSCv2_PART10_PROPERTY_*): New.
37264 (new_reader_slot): Initialize pinpad_varlen_supported, pinmin, pinmax.
37265 (pcsc_vendor_specific_init): New.
37266 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Call
37267 pcsc_vendor_specific_init.
37268 (check_pcsc_pinpad): Not detect here but use the result of
37269 pcsc_vendor_specific_init.
37270 (pcsc_pinpad_verify, pcsc_pinpad_modify): Specify bNumberMessage.
37272 2013-08-29 Jonas Borgström <jonas@borgstrom.se>
37274 scd: add support for RSA_CRT and RSA_CRT_N key import.
37275 + commit cc67918c088e90c1d9a507af5f6288e8faa93d87
37276 * scd/app-openpgp.c (do_writekey): Added RSA_CRT and RSA_CRT_N support.
37278 2013-08-29 Werner Koch <wk@gnupg.org>
37280 kbx: Add a few macros for easier readability.
37281 + commit 3adfaa9beee4502479b5673c7dfd386680a920c5
37282 * kbx/keybox-update.c (FILECOPY_INSERT)
37283 (FILECOPY_DELETE, FILECOPY_UPDATE): New macros. Replace numbers by
37286 2013-08-28 Werner Koch <wk@gnupg.org>
37288 Fix commit 04e2c83f.
37289 + commit fdbf76eee6a4e81b040d423926b71af7b491fb4a
37290 * agent/command-ssh.c (stream_read_string): Do not assign to a NULL
37293 gpg: Make decryption with the OpenPGP card work.
37294 + commit 780ba3233618393835970bac4cf8aab713f4d7fa
37295 * scd/app-common.h (APP_DECIPHER_INFO_NOPAD): New.
37296 * scd/app-openpgp.c (do_decipher): Add arg R_INFO.
37297 * scd/app-nks.c (do_decipher): Add arg R_INFO as a dummy.
37298 * scd/app.c (app_decipher): Add arg R_INFO.
37299 * scd/command.c (cmd_pkdecrypt): Print status line "PADDING".
37300 * agent/call-scd.c (padding_info_cb): New.
37301 (agent_card_pkdecrypt): Add arg R_PADDING.
37302 * agent/divert-scd.c (divert_pkdecrypt): Ditto.
37303 * agent/pkdecrypt.c (agent_pkdecrypt): Ditto.
37304 * agent/command.c (cmd_pkdecrypt): Print status line "PADDING".
37305 * g10/call-agent.c (padding_info_cb): New.
37306 (agent_pkdecrypt): Add arg R_PADDING.
37307 * g10/pubkey-enc.c (get_it): Use padding info.
37309 agent: Fix two compiler warnings.
37310 + commit 04e2c83f189cc56342e1be784bdc63761ccdb5bb
37311 * agent/command.c (cmd_preset_passphrase, pinentry_loopback): Use %zu
37313 * scd/ccid-driver.c (ccid_get_atr): Ditto.
37314 * agent/command-ssh.c (stream_read_string): Init arg STRING_SIZE to
37315 avoid maybe_unitialized warning.
37317 2013-08-27 NIIBE Yutaka <gniibe@fsij.org>
37319 scd: fix parsing login-data DO.
37320 + commit b6d54f1196d5f110fd94dfd661e74dbc60ca9811
37321 * scd/app-openpgp.c (parse_login_data): Release RELPTR. Fix parsing.
37323 scd: fix Vega for Alpha reader.
37324 + commit 54cbab29c700db2df74e808f16db49170e6c42f1
37325 * scd/ccid-driver.c (ccid_vendor_specific_init): Fix error handling
37326 and size of command.
37328 2013-08-21 Werner Koch <wk@gnupg.org>
37330 scd: Make SPRx32 pinpad work with PC/SC on Windows.
37331 + commit 5c5e52df4b92e23045ac87abac09357de58920d4
37332 * scd/apdu.c (CM_IOCTL_GET_FEATURE_REQUEST): Use SCARD_CTL_CODE.
37333 (SCARD_CTL_CODE): Define if not defined.
37334 (reader_table_s): Add is_spr532.
37335 (new_reader_slot): Clear it.
37336 (check_pcsc_pinpad): Set it.
37337 (pcsc_pinpad_verify, pcsc_pinpad_modify): Add fix for SPR532.
37339 scd: Improve --enable-pinpad-varlen.
37340 + commit 7bde2bf3b0ddb5d3515a44879e1a7ddb581a5c0b
37341 * tools/gpgconf-comp.c (gc_options_scdaemon): Add
37342 enable-pinpad-varlen.
37343 * scd/apdu.c (check_pcsc_pinpad): Detect SPRx32 reader.
37345 2013-08-08 Werner Koch <wk@gnupg.org>
37347 agent: Extend cmd KEYINFO to return data from sshcontrol.
37348 + commit 50c98c7ed6b542857ee2f902eca36cda37407737
37349 * agent/command-ssh.c (struct control_file_s): Rename to
37350 ssh_control_file_s.
37351 (ssh_open_control_file, ssh_close_control_file)
37352 (ssh_read_control_file, ssh_search_control_file): New.
37353 (control_file_t): Rename and move to ...
37354 * agent/agent.h (ssh_control_file_t): here.
37355 * agent/command.c (do_one_keyinfo): Add args is_ssh, ttl, disabled,
37356 and confirm. Rename unknown keytype indicator from '-' to 'X'. Extend
37358 (cmd_keyinfo): Add options --ssh-list and --with-ssh.
37360 2013-08-02 Werner Koch <wk@gnupg.org>
37362 gpg: No need to create a trustdb when encrypting with --always-trust.
37363 + commit 498b9a95dc65c43240835d64cc92d8fb43014d53
37364 * g10/gpg.c (main): Special case setup_trustdb for --encrypt.
37366 2013-08-01 Werner Koch <wk@gnupg.org>
37368 w32: Fix recent patch 9ff72e4.
37369 + commit ca6fe88c0068f8d45ef39df0fc7b161998a91fe9
37370 * common/homedir.c (check_portable_app): Fix the name of the control
37373 agent: Include missing prototype.
37374 + commit ef6a6d973c2bcc54006c04dc41f978ff01005c97
37375 * agent/protect.c: Include cvt-openpgp.h.
37377 w32: Add code to support a portable use of GnuPG.
37378 + commit 9ff72e4e7e4f56c241a525479a94ed4c95efc23f
37379 * common/homedir.c (w32_bin_is_bin, w32_portable_app) [W32]: New.
37380 (check_portable_app) [W32]: New.
37381 (standard_homedir, default_homedir) [W32]: Support the portable flag.
37382 (w32_rootdir, w32_commondir) [W32]: Ditto.
37383 (gnupg_bindir, gnupg_cachedir, dirmngr_socket_name) [W32]: Ditto.
37384 * common/logging.h (JNLIB_LOG_NO_REGISTRY): New.
37385 * common/logging.c (no_registry): New variable.
37386 (log_set_prefix, log_get_prefix): Set/get that variable.
37387 (do_logv): Do not check the registry if that variable is set.
37389 Silence compiler warning about deprecated Libgcrypt symbols.
37390 + commit db4651734fe91935b17876dc9194329b00066eff
37391 * configure.ac (AH_BOTTOM): Define GCRYPT_NO_DEPRECATED.
37393 dirmngr: Define missing LDAP constant.
37394 + commit ef2e2e54020c3475bf2129c3ec8360c7bad3a6c9
37395 * dirmngr/ldap-url.c (LDAP_SCOPE_DEFAULT): Define if missing.
37397 scd: Fix a syntax error for Apple and Windows.
37398 + commit 25b0357bf0a4861a751cfbc3e0335ae05c8b2b1b
37399 * scd/apdu.c (pcsc_dword_t) [W32]: Fix syntax error.
37401 common: Fix a build error when using adns.
37402 + commit ffa7472db551f12f66b9789c31fabb5fc80cc13a
37403 * common/dns-cert.c (get_dns_cert) [USE_ADNS]: Fix synatx error.
37405 2013-07-31 Werner Koch <wk@gnupg.org>
37407 common: Comment out unused code.
37408 + commit f101f34fffee4a02e7a5f62b59667e45e50e8325
37409 * common/w32-reg.c (write_w32_registry_string): Comment out.
37411 dirmngr: Remove unused file.
37412 + commit 2830fcb83c99289a49da0e111766daf2d9a1fa3b
37413 * dirmngr/get-path.c: Remove.
37415 2013-06-27 Werner Koch <wk@gnupg.org>
37417 sm: Remove cruft from source files.
37418 + commit f254497e09fa4e0e24e63d14f7316fc31c938844
37419 * sm/keydb.c, sm/keydb.h: Remove disabled code parts.
37421 Prepare for newer automake versions.
37422 + commit 043e2728c813299fafcf62cd125ecf872b26179e
37423 * configure.ac (AM_INIT_AUTOMAKE): Replace 2 argument form by the
37424 option form. Add options from the top Makefile.
37425 (AM_CONFIG_HEADER): Rename to AC_CONFIG_HEADER.
37426 * Makefile.am (AUTOMAKE_OPTIONS): Remove.
37428 * kbx/Makefile.am: Remove INCLUDES. Include cmacros.am. FActor some
37429 AM_CPPFLAGS options to AM_CFLAGS.
37431 2013-06-26 Werner Koch <wk@gnupg.org>
37433 Fix Makefile regression.
37434 + commit 136f190a2f20c6ec4d5c3ca3ac7f0440c14e4dc2
37435 * agent/Makefile.am (gpg_agent_DEPENDENCIES): Remove cruft from wrong
37436 resolve conflict 2013-04-25.
37437 (gpg_agent_DEPENDENCIES): Remove obsolete gpg_agent_res_deps
37438 (gpg_agent_LDFLAGS): Remove obsolete gpg_agent_res_ldflags.
37440 2013-05-22 Werner Koch <wk@gnupg.org>
37442 Implement unattended OpenPGP secret key import.
37443 + commit 7777e68d0482c942f527e91c04adbcfb40bc8bef
37444 * agent/command.c (cmd_import_key): Add option --unattended.
37445 * agent/cvt-openpgp.c (convert_transfer_key): New.
37446 (do_unprotect): Factor some code out to ...
37447 (prepare_unprotect): new function.
37448 (convert_from_openpgp): Factor all code out to ...
37449 (convert_from_openpgp_main): this. Add arg 'passphrase'. Implement
37450 openpgp-native protection modes.
37451 (convert_from_openpgp_native): New.
37452 * agent/t-protect.c (convert_from_openpgp_native): New dummy fucntion
37453 * agent/protect-tool.c (convert_from_openpgp_native): Ditto.
37454 * agent/protect.c (agent_unprotect): Add arg CTRL. Adjust all
37455 callers. Support openpgp-native protection.
37456 * g10/call-agent.c (agent_import_key): Add arg 'unattended'.
37457 * g10/import.c (transfer_secret_keys): Use unattended in batch mode.
37459 New debug functions log_printcanon and log_printsexp.
37460 + commit cb6a64bb78296c8e9f72df0c482ff847e89a1541
37461 * common/sexputil.c (sexp_to_string, canon_sexp_to_string): New.
37462 (log_printcanon, log_printsexp): New.
37464 agent: Fix length detection of canonical formatted openpgp keys.
37465 + commit 0f0e0559f9b160824f10dc17b389268cdb53aea4
37466 * agent/command.c (cmd_import_key): Pass 0 instead of KEYLEN to
37467 gcry_sexp_canon_len.
37469 agent: New option --disable-check-own-socket.
37470 + commit f2d8a14e1b12534eba69d595a62c78f92331e11b
37471 * agent/gpg-agent.c (oDisableCheckOwnSocket): New.
37472 (disable_check_own_socket): New.
37473 (parse_rereadable_options): Set new option.
37474 (check_own_socket): Implement new option.
37476 2013-05-07 Werner Koch <wk@gnupg.org>
37478 w32: Add icons and version information.
37479 + commit 88e24341e57c96e31a25e92e09d67989e64cc1c1
37480 * common/gnupg.ico: New. Take from artwork/gnupg-favicon-1.ico.
37481 * agent/gpg-agent-w32info.rc: New.
37482 * g10/gpg-w32info.rc: New.
37483 * scd/scdaemon-w32info.rc: New.
37484 * sm/gpgsm-w32info.rc: New.
37485 * tools/gpg-connect-agent-w32info.rc: New.
37486 * common/w32info-rc.h.in: New.
37487 * configure.ac (BUILD_REVISION, BUILD_FILEVERSION, BUILD_TIMESTAMP)
37488 (BUILD_HOSTNAME): New.
37489 (AC_CONFIG_FILES): Add w32info-rc.h.
37490 * am/cmacros.am (.rc.o): New rule.
37491 * agent/Makefile.am, common/Makefile.am, g10/Makefile.am
37492 * scd/Makefile.am, sm/Makefile.am, tools/Makefile.am: Add stuff to
37493 build resource files.
37495 2013-05-07 Ian Abbott <abbotti@mev.co.uk>
37497 doc: fix some Texinfo warnings.
37498 + commit 2c3fc4719b92d9e3ac32efd134a930e1cc126032
37499 * doc/gpg.texi: Fix syntax and add missing menu entries.
37500 * doc/gpgsm.texi: Fix subsectioning.
37502 2013-04-22 Werner Koch <wk@gnupg.org>
37504 Fix potential heap corruption in "gpg -v --version".
37505 + commit 151b78cc26d728e9eb42620e0caf8c6f4bd7f839
37506 * g10/gpg.c (build_list): Rewrite to cope with buffer overflow in
37509 2013-04-19 Werner Koch <wk@gnupg.org>
37511 gpgsm: Remove non-implemented commands from --help.
37512 + commit d6798d261cbe6519ef5b3ebb474e2ad348442c0c
37513 * sm/gpgsm.c (opts): Removed commands --clearsign, --symmetric,
37514 --send-keys, and --recv-keys.
37516 2013-04-19 Daiki Ueno <ueno@gnu.org>
37518 Make sure to call fflush if estream_t is backed with stdio.
37519 + commit e498180d5647d3427a7d7e6c82a9f09cf1ba439d
37520 * common/estream.c (es_func_fp_write): Call fflush after fwrite.
37522 2013-04-19 Werner Koch <wk@gnupg.org>
37524 doc: Formatting fixes.
37525 + commit ff6115227a1ced14e2fb3d160a12181b9dfbc502
37526 * doc/Makefile.am (.fig.jpg): Correct to use -L jpeg.
37527 * doc/gpg.texi: Fix cross reference for --options.
37528 * doc/gpgsm.texi: Likewise.
37529 * doc/gpl.texi: Fix enumerate and re-indent examples.
37531 2013-04-01 NIIBE Yutaka <gniibe@fsij.org>
37533 scd: move SCDaemon to libexecdir.
37534 + commit 021767d8aa11aac8ac87dc3a31969ee6cfa65966
37535 * common/homedir.c (gnupg_module_name): It's now libexecdir.
37536 * scd/Makefile.am (libexec_PROGRAMS): Add scdaemon
37537 (bin_PROGRAMS): Remove scdaemon.
37539 2013-03-29 Werner Koch <wk@gnupg.org>
37541 copyright assignments are not anymore required.
37542 + commit 07227279c44e3af0939f90025a0d22b782d0f185
37545 2013-03-26 NIIBE Yutaka <gniibe@fsij.org>
37547 scd: PC/SC status fix.
37548 + commit 64b1a2cf6f18348544a2d2cd4d49fd27bf01c150
37549 * scd/apdu.c (pcsc_get_status_direct): Check PCSC_STATE_MUTE only when
37550 PCSC_STATE_PRESENT.
37552 * scd/pcsc-wrapper.c (handle_status): Ditto.
37554 scd: PC/SC cleanup (more).
37555 + commit b9aceaa442914beb4f5359283053b43ba5a46b4c
37556 * scd/apdu.c (control_pcsc_direct, control_pcsc_wrapped, control_pcsc)
37557 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify): Use
37560 scd: call update_card_removed only when detecting removal.
37561 + commit 1062893832bb15eaac853f52e1cb673e5e03790a
37562 * scd/command.c (update_reader_status_file): Add condition
37565 2013-03-22 NIIBE Yutaka <gniibe@fsij.org>
37567 scd: PC/SC cleanup.
37568 + commit ee95c23fcdc6673db0fc7287ab2197915d9b55b3
37569 * scd/apdu.c (pcsc_dword_t): New. It was named as DWORD (double-word)
37570 when a word was 16-bit.
37571 (struct reader_table_s): Fixes for types.
37572 (struct pcsc_readerstate_s) [__APPLE__]: Enable #pragma pack(1).
37573 Throughout: Fixes for types.
37575 * scd/pcsc-wrapper.c: Likewise.
37577 2013-03-21 NIIBE Yutaka <gniibe@fsij.org>
37580 + commit a75a08d6e30e93e1793aa78a15d473a3ea7623cb
37581 * po/LINGUAS: Enable ja.po.
37583 scd: change default value of pinpad maxlen.
37584 + commit ca66f5c779af74d0eb7221afd7a9707201931e50
37585 * scd/apdu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Default value
37586 of maxlen for pinpad input is now 15 (was: 25).
37588 * scd/ccid-driver.c (ccid_transceive_secure): Likewise.
37590 2013-03-20 Werner Koch <wk@gnupg.org>
37592 Add code to allow for late memory cleanup.
37593 + commit 2739834206f23833161898a73427b8a9c6d5d26d
37594 * common/init.c (mem_cleanup_item_t): New.
37595 (run_mem_cleanup): New.
37596 (_init_common_subsystems): Add an atexit for it.
37597 (register_mem_cleanup_func): New.
37599 * g10/kbnode.c (cleanup_registered): New.
37600 (release_unused_nodes): New.
37601 (alloc_node): Call register_mem_cleanup_func.
37603 kbx: Remove unused macro.
37604 + commit 44159b681f8f09000fabfc3ee294d5821578d3a6
37605 * kbx/keybox.h (KEYBOX_WITH_OPENPGP): Remove unused macro.
37607 2013-03-19 Werner Koch <wk@gnupg.org>
37609 gpg: Print indicator for unknown key capability.
37610 + commit c4dbd1b2de8ae3847a040444e86500848868bcf4
37611 * g10/keylist.c (print_capabilities): Print '?' for unknown usage.
37613 2013-03-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
37615 gpg: Allow setting of all zero key flags.
37616 + commit b693ec02c467696bf9d7324dd081e279f9965151
37617 * g10/keygen.c (do_add_key_flags): Do not check for empty key flags.
37619 2013-03-19 Werner Koch <wk@gnupg.org>
37621 gpg: Distinguish between missing and cleared key flags.
37622 + commit 4bde12206c5bf199dc6e12a74af8da4558ba41bf
37623 * include/cipher.h (PUBKEY_USAGE_NONE): New.
37624 * g10/getkey.c (parse_key_usage): Set new flag.
37626 2013-03-15 NIIBE Yutaka <gniibe@fsij.org>
37628 scd: ccid-driver supporting larger APDU.
37629 + commit 76dc5c08dc2686eef32e1bd221c60fe91201246f
37630 * scd/ccid-driver.c (ccid_transceive_apdu_level): Support larger
37633 scd: fix missing close paren.
37634 + commit 006782068e4d2a9413770400494421a2e9726ee7
37635 * scd/app-openpgp.c (du_auth): Fix.
37637 2013-03-09 NIIBE Yutaka <gniibe@fsij.org>
37639 scd: support ECDSA signing.
37640 + commit 73ad742deacfe2bf7d6efc7cc30f9ced2d83521a
37641 * scd/app-openpgp.c (do_sign): Only prepend message digest block
37642 for RSA or do_auth.
37643 (do_auth): Remove message digest block for ECDSA.
37645 2013-03-08 NIIBE Yutaka <gniibe@fsij.org>
37647 scd: support ECDSA public key.
37648 + commit 010bc7f4f06d8affb98950e1adc76c68bfcc9abb
37649 * scd/app-openpgp.c (key_type_t): New.
37650 (CURVE_NIST_P256, CURVE_NIST_P384, CURVE_NIST_P521): New.
37651 (struct app_local_s): Change keyattr to have key_type and union.
37652 (get_ecc_key_parameters, get_curve_name): New.
37653 (send_key_attr, get_public_key): Support ECDSA.
37654 (build_privkey_template, do_writekey, do_genkey): Follow the change
37655 of the member KEY_ATTR.
37656 (parse_historical): New.
37657 (parse_algorithm_attribute): Support ECDSA.
37659 2013-03-05 Werner Koch <wk@gnupg.org>
37661 Require libgpg-error 1.11.
37662 + commit 5bac5040dc93343e1e89916b263390b0e52040bf
37663 * configure.ac: Require libgpg-error 1.11.
37664 * common/util.h (GPG_ERR_NO_KEYSERVER, GPG_ERR_INV_CURVE)
37665 (GPG_ERR_UNKNOWN_CURVE): Remove fallback definitions.
37667 2013-02-28 NIIBE Yutaka <gniibe@fsij.org>
37669 agent: pksign result conversion to sexp to upper layer.
37670 + commit ef1983d58b913306e9bf02a7189e530123839c59
37671 * agent/agent.h (divert_pksign): Add R_SIGLEN argument.
37672 * agent/divert-scd.c (divert_pksign): Return length at R_SIGLEN.
37673 * agent/call-scd.c (agent_card_pksign): Move composition of
37675 * agent/pksign.c (agent_pksign_do): ... here.
37677 2013-02-22 Werner Koch <wk@gnupg.org>
37679 Use has_leading_keyword in the assuan callbacks.
37680 + commit 585d5c62eece23911a768d97d11f159be138b13d
37681 * agent/call-pinentry.c (inq_quality): Use has_leading_keyword.
37682 * agent/call-scd.c (inq_needpin, inq_writekey_parms): Ditto.
37683 * g10/call-agent.c (inq_writecert_parms, keyinfo_status_cb): Ditto.
37684 (inq_genkey_parms, inq_ciphertext_cb, inq_import_key_parms): Ditto.
37685 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
37686 * sm/call-agent.c (default_inq_cb, inq_ciphertext_cb): Ditto.
37687 (inq_genkey_parms, istrusted_status_cb, learn_status_cb): Ditto.
37688 (keyinfo_status_cb, inq_import_key_parms): Ditto.
37689 * sm/call-dirmngr.c (inq_certificate, isvalid_status_cb): Ditto.
37690 (lookup_status_cb, run_command_inq_cb, run_command_status_cb): Ditto.
37692 Remove some unused variables.
37693 + commit c6b8f05517228c6aeab28d2bf5da7724c059bb1a
37694 * tools/gpgconf-comp.c (gc_process_gpgconf_conf): Remove unused
37696 * agent/command-ssh.c (ssh_signature_encoder_ecdsa): Mark unused arg.
37697 * g13/g13.c (main): Comment variable of yet unimplemented options.
37699 gpg: Fix a memory leak in batch key generation.
37700 + commit 161674118d568025896026ede5e03d26bdfdfa68
37701 * g10/keygen.c (append_to_parameter): New.
37702 (proc_parameter_file): Use new func to extend the parameter list.
37704 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
37705 gcry_kdf_derive failed.
37706 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
37707 passphrase_to_dek failed.
37709 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
37710 + commit baee681d2406530c45fd6d4bde77193ba23ac263
37711 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
37713 common: Add func has_leading_keyword.
37714 + commit 2838385e76c8c7108bc949d5a1d1c947051bd5be
37715 * common/stringhelp.c (has_leading_keyword): New.
37717 Remove build hacks for FreeBSD.
37718 + commit 21f5a9ec27c0794141a835a5bb3c69495ee554a6
37719 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
37722 2013-02-22 NIIBE Yutaka <gniibe@fsij.org>
37724 agent: fix two bugs.
37725 + commit 3c3648e720b8014828573bd708c88ba4775014e3
37726 * agent/command.c (cmd_keytocard): Decrement KEYDATALEN.
37727 * agent/findkey.c (agent_public_key_from_file): Increment for ELEMS.
37729 gpg: fix keytocard and support ECC card for key attribute.
37730 + commit 7d376ffa321d4af6e62a2bc64ef2b8574b122b1a
37731 * g10/call-agent.c (agent_keytocard): Supply PARM arg.
37732 * g10/card-util.c (card_status): Support ECC.
37733 (card_store_subkey): Don't assume RSA.
37735 2013-02-21 Werner Koch <wk@gnupg.org>
37737 gpg: Fix a memory leak in batch key generation.
37738 + commit 273bb38cd7b517460cb3de67662e96e910104675
37739 * g10/keygen.c (append_to_parameter): New.
37740 (proc_parameter_file): Use new func to extend the parameter list.
37742 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
37743 gcry_kdf_derive failed.
37744 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
37745 passphrase_to_dek failed.
37747 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
37748 + commit 18a261b65fd77a9e434b13483ceaaaf2176f1197
37749 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
37751 common: Add func has_leading_keyword.
37752 + commit 4af0c62b15c51056dc293c8e3b907e7c41fbf08c
37753 * common/stringhelp.c (has_leading_keyword): New.
37755 2013-02-20 Werner Koch <wk@gnupg.org>
37757 Remove build hacks for FreeBSD.
37758 + commit 8e5766c38f3ac376fb8e7c7f2b0f65de23d84cbe
37759 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
37762 2013-02-12 NIIBE Yutaka <gniibe@fsij.org>
37764 gpg: Implement card_store_subkey again.
37765 + commit b90506ea220860c89128f002bd593d0462a08d73
37766 * g10/call-agent.h (agent_keytocard): New.
37767 * g10/call-agent.c (agent_keytocard): New.
37768 * g10/card-util.c (replace_existing_key_p): Returns 1 when replace.
37769 (card_generate_subkey): Check return value of replace_existing_key_p.
37770 (card_store_subkey): Implement again using agent_keytocard.
37772 agent: Add KEYTOCARD command.
37773 + commit 30f8a3c8736451d8c06ef72521a8da5eabf23016
37774 * agent/agent.h (divert_writekey, agent_card_writekey): New.
37775 * agent/call-scd.c (inq_writekey_parms, agent_card_writekey): New.
37776 * agent/command.c (cmd_keytocard, hlp_keytocard): New.
37777 (register_commands): Add cmd_keytocard.
37778 * agent/divert-scd.c (divert_writekey): New.
37780 Japanese: update po and doc.
37781 + commit 595ab0da666c43a1315a72a1346ee149998d8771
37782 * doc/help.ja.txt, po/ja.po: Updated.
37784 2013-02-08 NIIBE Yutaka <gniibe@fsij.org>
37786 scd: Rename 'keypad' to 'pinpad'.
37787 + commit 7253093addfd82a8dd25cd80e3ba820a85e3c9a7
37788 * NEWS: Mention scd changes.
37790 * agent/divert-scd.c (getpin_cb): Change message.
37792 * agent/call-scd.c (inq_needpin): Change the protocol to
37793 POPUPPINPADPROMPT and DISMISSPINPADPROMPT.
37794 * scd/command.c (pin_cb): Likewise.
37796 * scd/apdu.c (struct reader_table_s): Rename member functions.
37797 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify,
37798 check_ccid_pinpad, ccid_pinpad_operation, apdu_check_pinpad
37799 apdu_pinpad_verify, apdu_pinpad_modify): Rename.
37801 * scd/apdu.h (SW_HOST_NO_PINPAD, apdu_check_pinpad)
37802 (apdu_pinpad_verify, apdu_pinpad_modify): Rename.
37804 * scd/iso7816.h (iso7816_check_pinpad): Rename.
37806 * scd/iso7816.c (map_sw): Use SW_HOST_NO_PINPAD.
37807 (iso7816_check_pinpad): Rename.
37808 (iso7816_verify_kp, iso7816_change_reference_data_kp): Follow
37811 * scd/ccid-driver.h (CCID_DRIVER_ERR_NO_PINPAD): Rename.
37812 * scd/ccid-driver.c (ccid_transceive_secure): Use it.
37814 * scd/app-dinsig.c (verify_pin): Follow the change.
37815 * scd/app-nks.c (verify_pin): Follow the change.
37817 * scd/app-openpgp.c (check_pinpad_request): Rename.
37818 (parse_login_data, verify_a_chv, verify_chv3, do_change_pin): Follow
37821 * scd/scdaemon.c (oDisablePinpad, oEnablePinpadVarlen): Rename.
37823 * scd/scdaemon.h (opt): Rename to disable_pinpad,
37824 enable_pinpad_varlen.
37826 * tools/gpgconf-comp.c (gc_options_scdaemon): Rename to
37829 2013-02-07 Werner Koch <wk@gnupg.org>
37831 gpg: Add pinentry-mode feature.
37832 + commit 21feecd48f990b2569cb4b385dea3e57b9501525
37833 * g10/gpg.c: Include shareddefs.h.
37834 (main): Add option --pinentry-mode.
37835 * g10/options.h (struct opt): Add field pinentry_mode.
37836 * g10/passphrase.c: Include shareddefs.h.
37837 (have_static_passphrase): Take care of loopback pinentry_mode.
37838 (read_passphrase_from_fd): Ditto.
37839 (get_static_passphrase): New.
37840 (passphrase_to_dek_ext): Factor some code out to ...
37841 (emit_status_need_passphrase): new.
37842 * g10/call-agent.c (start_agent): Send the pinentry mode.
37843 (default_inq_cb): Take care of the PASSPHRASE inquiry. Return a
37845 (agent_pksign): Add args keyid, mainkeyid and pubkey_algo.
37846 (agent_pkdecrypt): Ditto.
37847 * g10/pubkey-enc.c (get_it): Pass new args.
37848 * g10/sign.c (do_sign): Pass new args.
37850 * g10/call-agent.c (struct default_inq_parm_s): New. Change all
37851 similar structs to reference this one. Change all users and inquire
37852 callback to use this struct, instead of NULL or some undefined but not
37853 used structs. This change will help to eventually get rid of global
37856 2013-02-06 Werner Koch <wk@gnupg.org>
37858 agent: Move a typedef to common and provide parse_pinentry_mode.
37859 + commit 8b2b8dfe5c4cd346bbea2c228e75737bbeeca4c4
37860 * common/agent-opt.c: New.
37861 * common/shareddefs.h: New.
37862 * common/Makefile.am: Add new files.
37863 * agent/agent.h: Include shareddefs.h.
37864 (pinentry_mode_t): Factor out to shareddefs.h.
37865 * agent/command.c (option_handler): Use parse_pinentry_mode.
37867 agent: Return a better error code if no passphrase was given.
37868 + commit 4483a4f0ea030046137ba04905eb5220c14a2161
37869 * agent/protect.c (hash_passphrase): Handle an empty passphrase.
37871 2013-02-05 NIIBE Yutaka <gniibe@fsij.org>
37873 scd: Fix check_keypad_request.
37874 + commit c27315fc6466cceb862c9e67755a8e044e9b7688
37875 * scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
37877 SCD: Add vendor specific initalization.
37878 + commit e791ac6683bfb90d5e40c0103324784bd58535c9
37879 * scd/ccid-driver.c (ccid_vendor_specific_init): New.
37880 (ccid_open_reader): Call ccid_vendor_specific_init.
37882 SCD: Support P=N format for login data.
37883 + commit 0407e642f796fb2780a77b7a1a86731d0de27e5d
37884 * scd/app-openpgp.c (parse_login_data): Support P=N format.
37886 SCD: Better interoperability.
37887 + commit bd5eded73a1268afdf81482f8408e5f640abf9c4
37888 * scd/apdu.c: Fill bTeoPrologue[2] field.
37890 SCD: Defaults to use pinpad if the reader has the capability.
37891 + commit a9ff97a10f7ae5a703ed1bccba294473ecc88d5d
37892 * scd/app-openpgp.c (struct app_local_s): Remove VARLEN.
37893 (parse_login_data): "P=0" means to disable pinpad.
37894 (check_keypad_request): Default is to use pinpad if available.
37896 SCD: handle keypad request on the card.
37897 + commit 334ba6efa5a05d8849fae213128a0505e7615e13
37898 * scd/app-openpgp.c: Add 2013.
37899 (struct app_local_s): Add keypad structure.
37900 (parse_login_data): Add parsing keypad request on the card.
37901 (check_keypad_request): New.
37902 (verify_a_chv, verify_chv3, do_change_pin): Call check_keypad_request
37903 to determine use of keypad.
37905 SCD: Minor fix of ccid-driver.
37906 + commit d5bf83a24cf3871b7d8cfe61049f70e1e206d09a
37907 * scd/ccid-driver.c (VENDOR_VEGA): Fix typo.
37909 SCD: Add support of Covadis VEGA_ALPHA reader.
37910 + commit 82e1e837c29225cd55642b193cc04ce6191d19bb
37911 * scd/ccid-driver.c: Add 2013.
37912 (VENDER_VEGA, VEGA_ALPHA):New.
37913 (ccid_transceive_secure): VEGA_ALPHA is same firmware as GEMPC_PINPAD.
37914 Change bNumberMessage to 0x01, as it works better (was: 0xff).
37916 SCD: Support fixed length PIN input for keypad (PC/SC).
37917 + commit 3aae780f9debaeb3560ff866b7e09d0923481c57
37918 * scd/apdu.c (pcsc_keypad_verify): SUpport fixed length PIN input for
37920 (pcsc_keypad_modify): Likewise.
37921 * scd/ccid-driver.c (ccid_transceive_secure): Clean up.
37923 SCD: Support fixed length PIN input for keypad.
37924 + commit 40a914a2e3052847b49c4b5e8ac8538e97efd18a
37925 * scd/iso7816.h (struct pininfo_s): Remove MODE and add FIXEDLEN.
37926 * scd/app-dinsig.c (verify_pin): Initialize FIXEDLEN to unknown.
37927 * scd/app-nks.c (verify_pin): Likewise.
37928 * scd/app-openpgp.c (verify_a_chv, verify_chv3, do_change_pin):
37930 * scd/apdu.c (check_pcsc_keypad): Add comment.
37931 (pcsc_keypad_verify, pcsc_keypad_modify): PC/SC driver only support
37932 readers with the feature of variable length input (yet).
37933 (apdu_check_keypad): Set FIXEDLEN.
37934 * scd/ccid-driver.c (ccid_transceive_secure): Add GEMPC_PINPAD
37936 Support fixed length PIN input for keypad.
37938 SCD: API cleanup for keypad handling.
37939 + commit b526f6e223604b7c1852ef2aab9fc1ea691b1181
37940 * scd/iso7816.h (struct pininfo_s): Rename from iso7816_pininfo_s.
37941 Change meaning of MODE.
37942 (pininfo_t): Rename from iso7816_pininfo_t.
37943 * scd/sc-copykeys.c: Include "iso7816.h".
37944 * scd/scdaemon.c, scd/command.c: Likewise.
37945 * scd/ccid-driver.c: Include "scdaemon.h" and "iso7816.h".
37946 (ccid_transceive_secure): Follow the change of PININFO_T.
37947 * scd/app.c: Include "apdu.h" after "iso7816.h".
37948 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
37949 (iso7816_change_reference_data_kp): Follow the change of API.
37950 * scd/apdu.c (struct reader_table_s): Change API of CHECK_KEYPAD,
37951 KEYPAD_VERIFY, KEYPAD_MODIFY to have arg of PININFO_T.
37952 (check_pcsc_keypad, check_ccid_keypad): Likewise.
37953 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify): Likewise.
37954 (pcsc_keypad_verify, pcsc_keypad_modify, ct_send_apdu)
37955 (pcsc_send_apdu_direct, pcsc_send_apdu_wrapped, pcsc_send_apdu)
37956 (send_apdu_ccid, ccid_keypad_operation, my_rapdu_send_apdu, send_apdu)
37957 (send_le): Follow the change of API.
37958 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
37959 (apdu_keypad_modify): Change the API.
37960 * scd/app-dinsig.c, scd/app-nks.c, scd/app-openpgp.c: Follow the
37963 SCD: Clean up. Remove PADLEN for keypad input.
37964 + commit ca89277cb4cb9558da97a71a4cb070cb77c9b536
37965 * scd/apdu.c (struct pininfo_s): Use iso7816_pininfo_s.
37966 (struct reader_table_s): Remove last arg from check_keypad method.
37967 (check_pcsc_keypad, check_pcsc_keypad): Remove PIN_PADLEN.
37968 (pcsc_keypad_verify, pcsc_keypad_modify): Don't check PIN_PADLEN.
37969 (send_apdu_ccid, ccid_keypad_operation): Remove PIN_PADLEN.
37970 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify):
37973 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
37974 (apdu_keypad_modify): Remove PIN_PADLEN.
37976 * scd/ccid-driver.c (ccid_transceive_secure): Remove PIN_PADLEN.
37978 * scd/ccid-driver.h (ccid_transceive_secure): Remove PIN_PADLEN.
37980 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
37981 (iso7816_change_reference_data_kp): Remove PADLEN.
37983 * scd/iso7816.h (struct iso7816_pininfo_s): Remove PADLEN, PADCHAR.
37985 SCD: Add option enable-keypad-varlen and support for GEMPC_PINPAD.
37986 + commit d9f6cc7502793ed41928042cc2f968c8c7effc22
37987 * scd/scdaemon.h (opt): Add enable_keypad_varlen.
37988 * scd/scdaemon.c (cmd_and_opt_values): Add oEnableKeypadVarlen.
37989 (opts, main): Add oEnableKeypadVarlen.
37990 * scd/ccid-driver.c (GEMPC_PINPAD): New.
37991 (ccid_transceive_secure): Add enable_varlen handling.
37992 Enable GEMPC_PINPAD.
37994 2013-01-30 Werner Koch <wk@gnupg.org>
37996 Remove unused status codes.
37997 + commit 50a7badbdacac8ba472b35090c1aab4568434d04
37998 * common/status.h (STATUS_BEGIN_STREAM, STATUS_END_STREAM)
37999 (STATUS_SIEXPIRED): Remove unused codes.
38001 gpg: Add status line PINENTRY_LAUNCHED.
38002 + commit 1cd6445eec4c3642ad92afb02f3563a01cc10c10
38003 * common/status.h (STATUS_PINENTRY_LAUNCHED): New.
38004 * g10/server.c (server_local_s): Add field allow_pinentry_notify.
38005 (option_handler): Add option "allow-pinentry-notify".
38006 (gpg_proxy_pinentry_notify): New.
38007 * g10/call-agent.c (default_inq_cb): Factor code out to the new
38010 2013-01-25 NIIBE Yutaka <gniibe@fsij.org>
38012 agent: Fix a bug of handling return code from npth_join.
38013 + commit 19994466449a93704d38d429ca1ea36f63da0bf0
38014 * agent/call-pinentry.c (agent_popup_message_stop): Fix npth_join
38017 2013-01-11 Christian Aistleitner <christian@quelltextlich.at>
38019 gpg: Fix honoring --cert-digest-algo when recreating a cert.
38020 + commit 60c58766aeb847b769372fa981f79abac6014500
38021 * g10/sign.c (update_keysig_packet): Override original signature's
38022 digest algo in hashed data and for hash computation.
38024 2013-01-11 Werner Koch <wk@gnupg.org>
38026 Fix spurious cruft from configure summary output.
38027 + commit 7a638c094fa1aa7ed1d9caf085af9980a2664d64
38028 * configure.ac (build_scdaemon_extra): Remove $tmp cruft.
38030 2013-01-11 NIIBE Yutaka <gniibe@fsij.org>
38032 SCD: Hold lock for pinpad input.
38033 + commit 4dddf32c83f52483d95d7770232e9e808558e702
38034 * scd/apdu.c (apdu_check_keypad, apdu_keypad_verify)
38035 (apdu_keypad_modify): Hold lock to serialize communication.
38037 2013-01-08 Werner Koch <wk@gnupg.org>
38039 kbx: Switch from MD5 to SHA-1 for the checksum.
38040 + commit b11f84b858bad867f1062977a7aba30299157e90
38041 * kbx/keybox-blob.c (put_membuf): Use a NULL buf to store zero bytes.
38042 (create_blob_finish): Write just the needed space.
38043 (create_blob_finish): Switch to SHA-1.
38044 * kbx/keybox-dump.c (print_checksum): New.
38045 (_keybox_dump_blob): Print the checksum and the verification status.
38047 gpg: Cache keybox searches.
38048 + commit 492792378dc7a79316ef742b2ffaa46c6cda282a
38049 * common/iobuf.c (iobuf_seek): Fix for temp streams.
38050 * g10/pubkey-enc.c (get_session_key, get_it): Add some log_clock calls.
38051 * g10/keydb.c (dump_search_desc): New.
38052 (enum_keyblock_states, struct keyblock_cache): New.
38053 (keyblock_cache_clear): New.
38054 (keydb_get_keyblock, keydb_search): Implement a keyblock cache.
38055 (keydb_update_keyblock, keydb_insert_keyblock, keydb_delete_keyblock)
38056 (keydb_rebuild_caches, keydb_search_reset): Clear the cache.
38058 Make log_clock easier to read.
38059 + commit 5c565512b8af73bee2a176530663154b9277ef1c
38060 * common/logging.c (log_clock): Print in microseconds.
38062 gpg: Remove a function wrapper.
38063 + commit f3f5721e6843a08d1011875400f385b8cd5fe226
38064 * g10/keydb.h (keydb_search): Remove macro.
38065 * g10/keydb.c (keydb_search2): Rename to keydb_search. Change all
38068 2013-01-08 NIIBE Yutaka <gniibe@fsij.org>
38070 SCD: Support not-so-smart card readers.
38071 + commit a776f660363d20b6cc023609c4547e0aa8825d97
38072 * scd/ccid-driver.c (struct ccid_driver_s): Add auto_voltage,
38073 auto_param, and auto_pps.
38074 (parse_ccid_descriptor): Set auto_voltage, auto_param, and auto_pps.
38075 Support non-autoconf readers.
38076 (update_param_by_atr): New.
38077 (ccid_get_atr): Use 5V for PowerOn when auto_voltage is not supported.
38078 Use 0x10 when nonnull_nad for SetParameters.
38079 Call update_param_by_atr for parsing ATR, and use param for
38081 Send PPS if reader requires it and card is negotiable.
38082 When bNadValue in the return values of SetParameters == 0,
38083 clear handle->nonnull_nad flag.
38085 2013-01-07 Werner Koch <wk@gnupg.org>
38087 gpg: Set the node flags while retrieving a keyblock.
38088 + commit f6d7b3f1ee5eed32bc3257c99cb878091d26c482
38089 * g10/keydb.c (parse_keyblock_image): Add args PK_NO and UID_NO and
38090 set the note flags accordingly.
38091 (keydb_get_keyblock): Transfer PK_NO and UID_NO to parse_keyblock_image.
38092 * kbx/keybox-search.c (blob_cmp_fpr, blob_cmp_fpr_part)
38093 (blob_cmp_name, blob_cmp_mail): Return the key/user number.
38094 (keybox_search): Set the key and user number into the found struct.
38095 (keybox_get_keyblock): Add args R_PK_NO and R_UID_NO and set them from
38098 New function log_clock.
38099 + commit 0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f
38100 * common/logging.c (log_clock): New.
38101 * g10/gpg.c (set_debug): Print clock debug flag.
38102 * g10/options.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
38104 gpg: Allow searching for user ids in a keybox.
38105 + commit fb31462e7e92d4b19256e6fd40b1b6ffcef2676c
38106 * kbx/keybox-search.c (blob_cmp_name): Add arg X509 and adjust for PGP
38107 use. Change callers.
38108 (blob_cmp_mail): Add arg X509 and find the mailbox offset for PGP.
38110 (has_subject_or_alt): Rename to has_username.
38111 (has_username): Allow blobtype PGP.
38114 gpg: Allow generation of more than 4096 keys in one run.
38115 + commit 7d00e52bd58d9e40c18dcc0122b2c236ef3318f5
38116 * g10/getkey.c (cache_public_key): Make room in the cache if needed.
38118 2013-01-07 NIIBE Yutaka <gniibe@fsij.org>
38120 Update Japanese Translation.
38121 + commit bb51edc31e6595e38fcbd91d470de57d3a1a7150
38122 * po/ja.po: Fix wrong translations for designated revocation.
38123 Reported by Hideki Saito.
38128 2013-01-05 NIIBE Yutaka <gniibe@fsij.org>
38130 Update Japanese Translation.
38131 + commit 05a4458e5721a0afd600f0ec908e739fa83d58f2
38132 * po/ja.po: Fix fuzzy translations.
38134 2013-01-03 NIIBE Yutaka <gniibe@fsij.org>
38136 Update Japanese Translation.
38137 + commit 709a8f8125b9ba5e1ad1e6268cca5ac96d478f63
38138 * po/ja.po: Update with POT.
38140 Update Japanese Translation.
38141 + commit 0fae789c4125dd8492ed25bd6728b5ac98f19729
38142 * po/ja.po: Start from the new one of 2.0.
38144 2012-12-28 Werner Koch <wk@gnupg.org>
38146 gpg: Add signature cache support to the keybox.
38147 + commit 79f08fb0699f4a065e3a29bc7676a90534d7ba60
38148 * g10/keydb.c (parse_keyblock_image): Add arg SIGSTATUS.
38149 (keydb_get_keyblock): Handle it.
38150 (build_keyblock_image): Add arg SIGSTATUS.
38151 (keydb_insert_keyblock): Handle it.
38152 * kbx/keybox-blob.c (pgp_create_sig_part): Add arg SIGSTATUS.
38153 (_keybox_create_openpgp_blob): Ditto.
38154 * kbx/kbxutil.c (import_openpgp): Adjust for above change.
38155 * kbx/keybox.h (KEYBOX_FLAG_SIG_INFO): New.
38156 * kbx/keybox-search.c (_keybox_get_flag_location): Handle new flag.
38157 (keybox_get_keyblock): Add arg R_SIGSTATUS.
38158 * kbx/keybox-update.c (keybox_insert_keyblock): Add arg SIGSTATUS.
38160 kbxutil: Improve format of the Sig-Expire lines.
38161 + commit 564d10ea5cd29685a00a4096d69ae2476b60506f
38162 * kbx/keybox-dump.c (_keybox_dump_blob): Print the expirate timestamp.
38164 gpg: First working support for keyboxes.
38165 + commit a9863834244fc2a58d8950977243702d12e420a1
38166 * g10/getkey.c (get_pubkey_fast): Improve the assertion.
38167 * kbx/keybox.h: Include iobuf.h.
38168 * kbx/keybox-blob.c (keyboxblob_uid): Add field OFF.
38169 (KEYBOX_WITH_OPENPGP): Remove use of this macro.
38170 (pgp_create_key_part_single): New.
38171 (pgp_temp_store_kid): Change to use the keybox-openpgp parser.
38172 (pgp_create_key_part): Ditto.
38173 (pgp_create_uid_part): Ditto.
38174 (pgp_create_sig_part): Ditto.
38175 (pgp_create_blob_keyblock): Ditto.
38176 (_keybox_create_openpgp_blob): Ditto.
38177 * kbx/keybox-search.c (keybox_get_keyblock): New.
38178 * kbx/keybox-update.c (keybox_insert_keyblock): New.
38179 * g10/keydb.c (parse_keyblock_image):
38180 (keydb_get_keyblock): Support keybox.
38181 (build_keyblock_image): New.
38182 (keydb_insert_keyblock): Support keybox.
38184 * kbx/kbxutil.c (import_openpgp, main): Add option --dry-run and print
38185 a kbx file to stdout.
38187 * kbx/keybox-file.c (_keybox_read_blob2): Allow keyblocks up to 10^6
38190 kbxutil: Print algo number and fold similar lines.
38191 + commit f7495f1004071a0ceac394007bb37f88d7a3467f
38192 * kbx/keybox-defs.h (_keybox_openpgp_key_info): Add field ALGO.
38193 * kbx/keybox-openpgp.c (parse_key): Store algo.
38194 * kbx/kbxutil.c (dump_openpgp_key): Print algo number.
38195 * kbx/keybox-dump.c (_keybox_dump_blob): Print identical Sig-Expire
38196 value lines with a range of indices.
38198 2012-12-27 Werner Koch <wk@gnupg.org>
38200 gpg: First patches to support a keybox storage backend.
38201 + commit 91e61d52539b1808e209c43e51465c76cebb06f9
38202 * kbx/keybox-defs.h (_keybox_write_header_blob): Move prototype to ..
38203 * kbx/keybox.h: here.
38204 * kbx/keybox-init.c (keybox_lock): Add dummy function
38205 * g10/keydb.c: Include keybox.h.
38206 (KeydbResourceType): Add KEYDB_RESOURCE_TYPE_KEYBOX.
38207 (struct resource_item): Add field kb.
38208 (maybe_create_keyring_or_box): Add error descriptions to diagnostics.
38209 Add arg IS_BOX. Write a header for a new keybox file.
38210 (keydb_add_resource): No more need for the force flag. Rename the
38211 local variable "force" to "create". Add URL scheme "gnupg-kbx". Add
38212 magic test to detect a keybox file. Add basic support for keybox.
38213 (keydb_new, keydb_get_resource_name, keydb_delete_keyblock)
38214 (keydb_locate_writable, keydb_search_reset, keydb_search2): Add
38215 support for keybox.
38216 (lock_all, unlock_all): Ditto.
38217 * g10/Makefile.am (needed_libs): Add libkeybox.a.
38218 (gpg2_LDADD, gpgv2_LDADD): Add KSBA_LIBS as a workaround.
38220 * g10/keydb.h (KEYDB_RESOURCE_FLAG_PRIMARY)
38221 KEYDB_RESOURCE_FLAG_DEFAULT, KEYDB_RESOURCE_FLAG_READONLY): New.
38222 * g10/gpg.c, g10/gpgv.c (main): Use new constants.
38224 2012-12-20 Werner Koch <wk@gnupg.org>
38226 gpg: Import only packets which are allowed in a keyblock.
38227 + commit f0b33b6fb8e0586e9584a7a409dcc31263776a67
38228 * g10/import.c (valid_keyblock_packet): New.
38229 (read_block): Store only valid packets.
38231 2012-12-19 Werner Koch <wk@gnupg.org>
38233 gpg: Make commit 2b3cb2ee actually work.
38234 + commit d61f7402f2b0f6dd288e403ed9408fd65e617f85
38235 * g10/sign.c (update_keysig_packet): Use digest_algo.
38237 (cherry-picked from commit d23ec86095714d388acac14b515445fe69f019e9)
38239 gpg: Suppress "public key already present" in quiet mode.
38240 + commit 8325d616593187ff227853de0295e3269b96edcb
38241 * g10/pkclist.c (find_and_check_key, build_pk_list): Print a
38242 diagnostic only in non-quiet mode.
38244 2012-12-18 Werner Koch <wk@gnupg.org>
38246 common: Add meta option ignore-invalid-option.
38247 + commit 41d564333d35c923f473aa90625d91f8fe18cd0b
38248 * common/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New.
38249 (initialize): Init field IIO_LIST.
38250 (ignore_invalid_option_p): New.
38251 (ignore_invalid_option_add): New.
38252 (ignore_invalid_option_clear): New.
38253 (optfile_parse): Implement meta option.
38255 2012-12-13 Werner Koch <wk@gnupg.org>
38256 Hans of Guardian <hans@guardianproject.info>
38258 utf8conv.c: Add hacks for Android.
38259 + commit 6177fb3c87f485fb654bbba492d04508755718b3
38260 * common/utf8conv.c [HAVE_ANDROID_SYSTEM]: Do not include iconv.h.
38261 (iconv_open, iconv_close, load_libiconv) [HAVE_ANDROID_SYSTEM]: New
38263 (set_native_charset) [HAVE_ANDROID_SYSTEM]: Force use of "utf-8".
38264 (jnlib_iconv_open) [HAVE_ANDROID_SYSTEM]: Act the same as under W32.
38265 (jnlib_iconv) [HAVE_ANDROID_SYSTEM]: Ditto.
38266 (jnlib_iconv_close) [HAVE_ANDROID_SYSTEM]: Ditto.
38268 2012-12-13 NIIBE Yutaka <gniibe@fsij.org>
38270 SCD: Fix the process of writing key or generating key.
38271 + commit e7dca3e83ebd6df0a7ea55e97c3cd6e91be90af5
38272 * scd/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME.
38274 2012-12-12 Werner Koch <wk@gnupg.org>
38276 ssh: Support ECDSA keys.
38277 + commit 649b31c663b8674bc874b4ef283d714a13dc8cfe
38278 * agent/command-ssh.c (SPEC_FLAG_IS_ECDSA): New.
38279 (struct ssh_key_type_spec): Add fields CURVE_NAME and HASH_ALGO.
38280 (ssh_key_types): Add types ecdsa-sha2-nistp{256,384,521}.
38281 (ssh_signature_encoder_t): Add arg spec and adjust all callers.
38282 (ssh_signature_encoder_ecdsa): New.
38283 (sexp_key_construct, sexp_key_extract, ssh_receive_key)
38284 (ssh_convert_key_to_blob): Support ecdsa.
38285 (ssh_identifier_from_curve_name): New.
38286 (ssh_send_key_public): Retrieve and pass the curve_name.
38287 (key_secret_to_public): Ditto.
38288 (data_sign): Add arg SPEC and change callers to pass it.
38289 (ssh_handler_sign_request): Get the hash algo from SPEC.
38290 * common/ssh-utils.c (get_fingerprint): Support ecdsa.
38292 * agent/protect.c (protect_info): Add flag ECC_HACK.
38293 (agent_protect): Allow the use of the "curve" parameter.
38294 * agent/t-protect.c (test_agent_protect): Add a test case for ecdsa.
38296 * agent/command-ssh.c (ssh_key_grip): Print a better error code.
38298 2012-12-11 Werner Koch <wk@gnupg.org>
38300 ssh: Rewrite a function for better maintainability.
38301 + commit f76a0312c3794afd81fe1e172df15eb0612deae0
38302 * agent/command-ssh.c (ssh_signature_encoder_dsa): Rewrite.
38304 2012-12-10 Werner Koch <wk@gnupg.org>
38306 ssh: Improve key lookup for many keys.
38307 + commit d2777f84be0ded5906a9bec3bc23cfed0a9be02f
38308 * agent/command-ssh.c: Remove dirent.h.
38309 (control_file_s): Add struct item.
38310 (rewind_control_file): New.
38311 (search_control_file): Factor code out to ...
38312 (read_control_file_item): New.
38313 (ssh_handler_request_identities): Change to iterate over entries in
38316 ssh: Cleanup sshcontrol file access code.
38317 + commit 25fb53ab4ae7e1c098500229c776d29b82713a20
38318 * agent/command-ssh.c (SSH_CONTROL_FILE_NAME): New macro to replace
38319 the direct use of the string.
38320 (struct control_file_s, control_file_t): New.
38321 (open_control_file, close_control_file): New. Use them instead of
38322 using fopen/fclose directly.
38324 agent: Add envvar "gnupg_SSH_AUTH_SOCK_by"
38325 + commit 36ba7845995dd3caf8faeec3e09b3ffb879fc29b
38326 * agent/gpg-agent.c (main): Pass new envar gnupg_SSH_AUTH_SOCK_by to
38327 an invoked process.
38329 config: Update npth.m4.
38330 + commit ceab60b59d907354d323ace09d7b3f2d36d330fb
38331 * m4/npth.m4: Take from current npth master.
38333 2012-12-04 NIIBE Yutaka <gniibe@fsij.org>
38335 Revert SCD changes of 2010-05-03.
38336 + commit 1e1326aeb8923782138e133f091afec41d969c40
38337 * scd/apdu.c (pcsc_no_service): Remove.
38338 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Remove
38339 pcsc_no_service support.
38340 (apdu_open_reader): Remove R_NO_SERVICE.
38341 * scd/apdu.h (apdu_open_reader): Remove R_NO_SERVICE.
38342 * scd/command.c (reader_disabled): Remove.
38343 (get_current_reader): Follow the change of R_NO_SERVICE.
38344 (open_card, cmd_serialno, scd_command_handler): Remove reader_disabled
38346 * scd/sc-copykeys.c (main): Follow the change of R_NO_SERVICE.
38348 Don't keep opening unavailable card reader.
38349 + commit baf7b09e124f9eb4ca4b8ee02474ee7710a95a40
38350 * scd/command.c (update_reader_status_file): Don't call
38351 get_current_reader.
38353 2012-11-30 David Shaw <dshaw@jabberwocky.com>
38355 Refresh sample keys.
38356 + commit b8eb2ab56971a309353ae2682bc6ef1357e9ac53
38359 Adjust awk to not add trailing whitespace.
38360 + commit 3f8ad564674431b4c0c6cff259f02248c80a6ef9
38361 * mksamplekeys: Tweak awk script to not add trailing whitespace to
38362 blank lines (makes git pre-commit hook unhappy)
38364 2012-11-29 David Shaw <dshaw@jabberwocky.com>
38366 The keyserver search menu should honor --keyid-format.
38367 + commit 7602d9e3edda99b0b65ba928eef435dab04ecd09
38368 * keyserver.c (print_keyrec): Honor --keyid-format when getting back
38369 full fingerprints from the keyserver (the comment in the code was
38370 correct, the code was not).
38372 2012-11-27 Werner Koch <wk@gnupg.org>
38374 Fix printing of ECC algo names in hkp keyserver listings.
38375 + commit 3d2da6c82163ffbc2e827abc4144dc3197ed53db
38376 * g10/keyserver.c (print_keyrec): Map OpenPGP algorithm ids.
38378 2012-11-26 Ben Kibbey <bjk@luxsci.net>
38380 Check for inet_addr() in -lnsl.
38381 + commit 66331e138ec17e176cc3f45bb095820866d5358c
38382 * configure.ac: Check for inet_addr() in libnsl.
38384 2012-11-20 Werner Koch <wk@gnupg.org>
38386 Do not use a broken ttyname.
38387 + commit 835698b72bc509565aad52b0753f1c56c1a8f062
38388 * configure.ac (HAVE_BROKEN_TTYNAME): New ac_define set for Android
38390 * common/util.h (gnupg_ttyname): New macro. Change all callers of
38391 ttyname to use this macro instead.
38392 (ttyname) [W32]: Rename to _gnupg_ttyname and use also if
38393 HAVE_BROKEN_TTYNAME is defined.
38394 * common/simple-pwquery.c (agent_send_all_options): Keep on using
38395 ttyname unless HAVE_BROKEN_TTYNAME is set. This is because this file
38396 may be used standalone.
38398 2012-11-16 Werner Koch <wk@gnupg.org>
38400 Fix non-portable use of chmod in autogen.sh.
38401 + commit e7bc5012c568da9ceb0a80a8f3fe3edf3dac9564
38402 * autogen.sh: Remove option -c from chmod.
38404 Improve parsing of the GIT revision number.
38405 + commit 011faa0c68cf0c628ef581193166e9ac9bf22b71
38406 * configure.ac (mmm4_revision): Use git rev-parse.
38408 Add an OpenPGP card vendor.
38409 + commit ac775780fef3ef63f896e822add9ff6ea7e5119c
38410 * g10/card-util.c (get_manufacturer): Add Yubico.
38412 2012-11-06 Werner Koch <wk@gnupg.org>
38414 agent: Use wipememory instead of memset in one place.
38415 + commit 9f0e9ea80ca30269770eb955e33b54401bff917f
38416 * agent/command.c (clear_outbuf): Use wipememory. Suggested by Ben
38419 Allow decryption with card keys > 3072 bits.
38420 + commit 905b6a36d3ca21b2f619721e1de892398e5eb759
38421 * scd/command.c (MAXLEN_SETDATA): New.
38422 (cmd_setdata): Add option --append.
38423 * agent/call-scd.c (agent_card_pkdecrypt): Use new option for long
38426 * scd/app-openpgp.c (struct app_local_s): Add field manufacturer.
38427 (app_select_openpgp): Store manufacturer.
38428 (do_decipher): Print a note for broken cards.
38430 2012-11-02 NIIBE Yutaka <gniibe@fsij.org>
38432 agent: Fix wrong use of gcry_sexp_build_array.
38433 + commit 8f8c29d24ca13f987e6c118702b428a2051b7072
38434 * findkey.c (agent_public_key_from_file): Fix use of
38435 gcry_sexp_build_array.
38437 2012-10-31 NIIBE Yutaka <gniibe@fsij.org>
38439 SCD: Upon error, open_pcsc_reader_wrapped does same as _direct.
38440 + commit 8df89f3e9cf0255f11011c2f1df0d419a5c23a8c
38441 * scd/apdu.c (PCSC_E_NO_SERVICE): New.
38442 (open_pcsc_reader_direct): Use PCSC_E_NO_SERVICE.
38443 (open_pcsc_reader_wrapped): Set pcsc_no_service.
38445 2012-08-24 Werner Koch <wk@gnupg.org>
38447 Update and enable French translation.
38448 + commit 76055d49d1c8b8e4f6245e6729cae81b1eaecbf6
38449 * po/fr.po: Update.
38450 * po/LINGUAS: Enable fr.
38452 2012-08-24 David Prévot <taffit@debian.org>
38454 Fix typos spotted during translations.
38455 + commit ba591e2f14c0d85ba15346ffd04b9e7d72ec89dc
38456 * agent/genkey.c: s/to to/to/
38457 * sm/*.c: s/failed to allocated/failed to allocate/
38458 * sm/certlist.c, ./dirmngr/validate.c: s/should have not/should not have/
38459 * g10/seskey.c: missing closing parenthesis
38460 * dirmngr/crlcache.c: s/may has/may have/
38464 * g10/gpg.c, kbx/kbxutil.c, sm/gpgsm.c: uppercase after Syntax
38465 * dirmngr/dirmngr_ldap: no period in Syntax
38466 * dirmngr/dirmngr-client.c: infinitive for option description:
38467 s/certificates are expected/expect certificates/
38469 Keep previous msgids of translated messages.
38470 + commit bf95408fc33709d154cd41566d33af3ec3c48886
38471 * po/Makefile.in.in: Use --previous with msgmerge.
38473 2012-08-24 Hans-Christoph Steiner <hans@eds.org>
38475 Fix build system for Android by disabling tests since its x-compiled.
38476 + commit 1da04bfb3f5714a0fa6d0b779d0d2ae4e9544b8f
38477 * configure.ac (HAVE_ANDROID_SYSTEM, RUN_TESTS): New.
38478 (AH_BOTTOM) [__ANDROID__]: Do not re-define ttyname.
38479 * Makefile.am: Depend tests on new RUN_TESTS conditional.
38481 2012-08-24 Werner Koch <wk@gnupg.org>
38483 Fix left over use of jnlib on some platforms.
38484 + commit 8156a38674421deef6c2eb3e91e0186fe7fe4b26
38485 * tools/watchgnupg.c: Take mischelp.h from common/ and not jnlib/.
38487 2012-06-25 NIIBE Yutaka <gniibe@fsij.org>
38489 scd: handle reader/token removal.
38490 + commit ca8eec8e28abb8473d02dbaf8d61cfb1094c5c50
38491 * scd/apdu.c (pcsc_error_to_sw): PCSC_E_UNKNOWN_READER means
38494 2012-06-05 Werner Koch <wk@gnupg.org>
38496 Change all quotes in strings and comments to the new GNU standard.
38497 + commit 096e7457ec636bcfcf128678660eb2f2e19f113a
38498 The asymmetric quotes used by GNU in the past (`...') don't render
38499 nicely on modern systems. We now use two \x27 characters ('...').
38501 The proper solution would be to use the correct Unicode symmetric
38502 quotes here. However this has the disadvantage that the system
38503 requires Unicode support. We don't want that today. If Unicode is
38504 available a generated po file can be used to output proper quotes. A
38505 simple sed script like the one used for en@quote is sufficient to
38508 The changes have been done by applying
38510 sed -i "s/\`\([^'\`]*\)'/'\1'/g"
38512 to most files and fixing obvious problems by hand. The msgid strings in
38513 the po files were fixed with a similar command.
38515 2012-05-24 Werner Koch <wk@gnupg.org>
38517 Print the hash algorithm in colon mode key listing.
38518 + commit fc00d3fcb201476b3495f47138fa35b71c52f403
38519 * g10/keylist.c (list_keyblock_colon): Print digest_algo.
38521 Fix type conflict warning.
38522 + commit f8a8c71c41bc1893df8af6ce522876ccbf6240a9
38523 * g10/keylist.c: Change min_cert_level to a byte.
38525 2012-05-11 Werner Koch <wk@gnupg.org>
38527 Switch to the new automagic beta numbering scheme.
38528 + commit 68777b40dcf215305a325185f6bd9cfd6dcc0542
38529 * configure.ac: Add all the require m4 magic.
38531 2012-05-08 Werner Koch <wk@gnupg.org>
38533 Add tweaks for the not anymore patented IDEA algorithm.
38534 + commit b4d9f8dbc8e074cd91bbd3e2e54e2b77c9268d1a
38535 * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2
38536 compatibility mode.
38537 * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers.
38538 * common/status.h (STATUS_RSA_OR_IDEA): Remove. Do not emit this
38542 + commit 59b77f9ea7dfa4d5c74573d2186c9a3e129ab3bf
38543 * po/de.po: Update.
38545 common: Remove generated files only during maintainer-clean.
38546 + commit d800fa5ce6102e069305f8e1a5d55d18ac3a1993
38547 * common/Makefile.am (CLEANFILES): Rename to MAINTAINERCLEANFILES.
38549 2012-04-30 Werner Koch <wk@gnupg.org>
38551 agent: Fix deadlock in trustlist due to the switch to npth.
38552 + commit 0f02fba19df16c82ca1ad44a8cb09f952d755598
38553 * agent/trustlist.c (clear_trusttable): New.
38554 (agent_reload_trustlist): Use new function.
38555 (read_trustfiles): Require to be called with lock held.
38556 (agent_istrusted): Factor all code out to ...
38557 (istrusted_internal): new. Add ALREADY_LOCKED arg. Make sure the
38558 table islocked. Do not print TRUSTLISTFLAG stati if called internally.
38559 (agent_marktrusted): Replace calls to agent_reload_trustlist by
38562 2012-04-26 NIIBE Yutaka <gniibe@fsij.org>
38564 make DNS and URI fields work in gpgsm --gen-key.
38565 + commit 8d7522837c6dba3065d24594bcdbe7b99a702cde
38566 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Actually set mb_uri and
38567 mb_dns.avoid buffer strncpy-induced buffer overrun
38569 2012-04-26 Jim Meyering <jim@meyering.net>
38571 avoid buffer strncpy-induced buffer overrun.
38572 + commit 20c9ac4df34e25f7085bb4e4ab5ea7223932f5c4
38573 * dirmngr/crlcache.c (open_dir): Ensure that both this_update
38574 and next_update member strings are NUL-terminated.
38576 remove doubled words in a comment.
38577 + commit 6e3882785a629b361c57c8b9d5cad51fb234ac23
38580 2012-04-20 Werner Koch <wk@gnupg.org>
38582 Change license for some files in common to LGPLv3+/GPLv2+.
38583 + commit 37df3d5f593f76ddbf1b9dc6de0173b7bb85c0ad
38584 Having the LGPL on the common GnuPG code helps to share code
38585 between GnuPG and related projects (like GPGME and Libassuan). This
38586 is good for interoperability and to reduces bugs.
38588 * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
38589 * common/b64enc.c, common/convert.c, common/dns-cert.c
38590 * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
38591 * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
38592 * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
38593 * common/helpfile.c, common/homedir.c, common/http.c, common/http.h
38594 * common/i18n.c, common/init.c, common/init.h, common/iobuf.c
38595 * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
38596 * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
38597 * common/percent.c, common/pka.c, common/pka.h, common/session-env.c
38598 * common/session-env.h, common/sexp-parse.h, common/sexputil.c
38599 * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
38600 * common/ssh-utils.h, common/sysutils.c, common/sysutils.h
38601 * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
38602 * common/userids.c, common/userids.h, common/xasprintf.c: Change
38603 license to LGPLv3+/GPLv2+/
38605 2012-04-10 Ben Kibbey <bjk@luxsci.net>
38607 Fix killing PID -1.
38608 + commit bee0ac28c9c8027540ae56900b9f85e0bd555f1d
38609 When the KILLSCD command had been sent a race condition would occur
38610 causing PID -1 getting killed, which on Linux seems to terminate all
38611 applications for the current user.
38613 2012-04-05 Werner Koch <wk@gnupg.org>
38615 Do not mix test result with progress lines.
38616 + commit f1e1387bee286c7434f0462185048872bcdb4484
38617 This makes parsing of the results easier. Fixes bug#1400.
38619 * tests/openpgp/defs.inc (progress_cancel, progress_end)
38620 (progress_new): New.
38621 * tests/openpgp/conventional-mdc.test: Use progress functions
38622 * tests/openpgp/conventional.test: Ditto.
38623 * tests/openpgp/encrypt-dsa.test: Ditto.
38624 * tests/openpgp/encrypt.test: Ditto.
38625 * tests/openpgp/sigs.test: Ditto.
38627 2012-04-04 Ben Kibbey <bjk@luxsci.net>
38629 Mention status messages in the documentation.
38630 + commit 99fc61f1cf09c7f72a9037d91d3cf0cd2e035ae6
38631 Note INQUIRE_MAXLEN.
38633 Document PASSWD --preset.
38634 + commit a577f06c4aecc0af5b492e15812e9150c747cbe4
38637 Document GENKEY options.
38638 + commit 108e8f622ef9cfa256707debec1d379ce3cf21ca
38641 Document PRESET_PASSPHRASE.
38642 + commit 96e107fc29db625b247022ae1bf2cbe90b939c5d
38645 Document CLEAR_PASSPHRASE.
38646 + commit 26b59d78c43d72fa28609fb2c0d80fb377393127
38647 And describe the --mode=normal option.
38649 2012-03-27 Werner Koch <wk@gnupg.org>
38651 Fix timegm regression test.
38652 + commit 17499e761e8cd0fe867b5b5f3e42a71b6d45f954
38653 * common/t-timestuff.c (test_timegm): Change test to use January and
38654 not February or December+1. Bug spotted by Daniel Kahn Gillmor.
38656 Print warning for arguments not considered an option.
38657 + commit de01c51ecb3918f427aa76281351749c8ad07ed6
38658 GnuPG requires that options are given before other arguments. This
38659 can sometimes be confusing. We now print a warning if we found an
38660 argument looking alike a long option without being preceded by the
38661 stop option. This is bug#1343.
38663 * common/argparse.h (ARGPARSE_FLAG_STOP_SEEN): New.
38664 * common/argparse.c (arg_parse): Set new flag.
38665 * g10/gpg.c (main): Print the warning.
38666 * agent/gpg-agent.c (main): Ditto.
38667 * dirmngr/dirmngr.c (main): Ditto.
38668 * g13/g13.c (main): Ditto.
38669 * scd/scdaemon.c (main): Ditto.
38670 * sm/gpgsm.c (main): Ditto.
38671 * tools/gpg-connect-agent.c (main): Ditto.
38672 * tools/gpgconf.c (main): Ditto.
38674 2012-03-26 Werner Koch <wk@gnupg.org>
38676 Allow compress algorithm 0.
38677 + commit 7ddbcb6b6ab8b26c8e609fcd95c2c8a89bc20a7d
38678 * g10/mainproc.c (proc_compressed): Remove superfluous check for
38679 compress algorithm 0. Reported by pfandrade. This is bug#1326.
38681 Add mksamplekeys script.
38682 + commit 7441e622ffb3296686bd0d7f04b4051466aaad38
38683 * doc/mksamplekeys: New.
38685 2012-02-28 Marcus Brinkmann <mb@g10code.com>
38687 Replace npth_yield in busy wait by npth_usleep.
38688 + commit 8f8c6594147608b1021c16fc3561feb96da5d55a
38689 * dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): Call
38690 npth_usleep instead of npth_yield.
38692 2012-02-16 Marcus Brinkmann <mb@g10code.com>
38694 Check for lber and link dirmngr_ldap to it.
38695 + commit 76ff42ef8d1232dd36bf48c1020b0b9b2afb1c7d
38696 * configure.ac (LBER_LIBS, HAVE_LBER): New variables, check for lber.
38697 * dirmngr/Makefile.am (dirmngr_lda_LDADD): Add $(LBER_LIBS).
38699 2012-02-07 Werner Koch <wk@gnupg.org>
38701 agent: Add pin length field to the shadowed private key format.
38702 + commit b817ae7df947093384a25797999a9aa187e20f9c
38703 This is not yet fully implemented. It will eventually allow to
38704 support pinpad equipped readers which do not support variable length
38706 * agent/protect.c (parse_shadow_info): Add optional arg R_PINLEN and
38707 parse pinlen info. Change all callers to pass NULL for it.
38709 Use new status printing functions.
38710 + commit 12ea5c904c0008a2adec2e8bbe45dac629548e7d
38711 * agent/command.c (cmd_geteventcounter): Get rid of static buffers.
38712 * scd/command.c (cmd_serialno, cmd_learn): Simplify by using
38713 print_assuan_status.
38715 agent: New function agent_print_status.
38716 + commit e78585cd0f553d92f332e33810ab636758bc88a2
38717 * common/asshelp2.c (vprint_assuan_status): New.
38718 (print_assuan_status): Re-implement using above func.
38719 * agent/command.c (agent_print_status): New.
38721 po: Add Ukrainian translation.
38722 + commit 8d8d740bfd73d8764a03220c0b0c949e03fea351
38725 common: Replace macro based function calls by using DEFAULT_ERRSOURCE.
38726 + commit 13ec74481ce0137f7a60b3256cc4840073c77efa
38727 * common/dns-cert.h (get_dns_cert): Remove macro.
38728 * common/dns-cert.c (_get_dns_cert): Rename to get_dns_cert. Replace
38729 arg ERRSOURCE by global DEFAULT_ERRSOURCE.
38730 * common/http.h (http_parse_uri, http_raw_connect, http_open)
38731 (http_open_document, http_wait_response): Remove macros.
38732 * common/http.c (_http_parse_uri, _http_raw_connect, _http_open)
38733 (_http_open_document, _http_wait_response): Remove underscore from
38734 symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
38735 * common/ssh-utils.h (ssh_get_fingerprint)
38736 (ssh_get_fingerprint_string): Remove macros.
38737 * common/ssh-utils.h (_ssh_get_fingerprint)
38738 (_ssh_get_fingerprint_string): Remove underscore from symbols.
38739 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
38740 * common/tlv.h (parse_ber_header, parse_sexp): Remove macros.
38741 * common/tlv.c: Include util.h.
38742 (_parse_ber_header, _parse_sexp): Remove underscore from symbols.
38743 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
38745 2012-02-06 Werner Koch <wk@gnupg.org>
38747 Add replacement hack for Android's broken ttyname.
38748 + commit 115a6ed55d1f6be33f66de6734359fa590ca3749
38749 * configure.ac (HAVE_TTYNAME) [__ANDROID__]: Add hack.
38751 agent: Simplify printing of INQUIRE_MAXLEN.
38752 + commit 7981cdd1345d51fd917b2375691ead60c24db2cd
38753 * agent/command.c: Include asshelp.h.
38754 (cmd_pkdecrypt, cmd_genkey, cmd_preset_passphrase)
38755 (pinentry_loopback): Use print_assuan_status for INQUIRE_MAXLEN.
38757 common: Add function print_assuan_status.
38758 + commit 1a0df8506050448f16c63666850e3ae6d94a971b
38759 * common/asshelp2.c: New.
38760 (print_assuan_status): New function.
38761 * common/Makefile.am (common_sources): Add asshelp2.c.
38763 common: Add a global variable to for the default error source.
38764 + commit eb0faef81dae2cba1f62056fdc4dc2a7d58ac86a
38765 For the shared code parts it is cumbersome to pass an error sourse
38766 variable to each function. Its value is always a constant for a given
38767 binary and thus a global variable makes things a lot easier than the
38768 former macro stuff.
38769 * common/init.c (default_errsource): New global var.
38770 (init_common_subsystems): Rename to _init_common_subsystems. Set
38772 * common/init.h: Assert value of GPG_ERR_SOURCE_DEFAULT.
38773 (init_common_subsystems): New macro.
38774 * common/util.h (default_errsource): Add declaration.
38775 * kbx/keybox-defs.h: Add some GPG_ERR_SOURCE_DEFAULT trickery.
38777 2012-02-03 Ben Kibbey <bjk@luxsci.net>
38779 Also let GENKEY and PKDECRYPT send the INQUIRE_MAXLEN status message.
38780 + commit ecda65498ac60dfde50fbbc71cd0cc321d7175a9
38781 * agent/command.c (cmd_pkdecrypt): Send the INQUIRE_MAXLEN status
38782 message before doing the inquire.
38783 (cmd_genkey): Ditto.
38785 2012-02-02 Ben Kibbey <bjk@luxsci.net>
38787 Inform the client of the preset passphrase length.
38788 + commit 3f7788f2e035eb939abb27b3a53854ec0fc6178c
38789 * agent/command.c (cmd_preset_passphrase): Send the INQUIRE_MAXLEN
38790 status message before inquiring the passphrase.
38792 2012-02-01 David Shaw <dshaw@jabberwocky.com>
38794 Honor --cert-digest-algo when recreating a cert.
38795 + commit 2b3cb2ee94625498e7a7f939216c9bcddef6ec20
38796 * g10/sign.c (update_keysig_packet): Honor --cert-digest-algo when
38799 This is used by various things in --edit-key like setpref, primary,
38800 etc. Suggested by Christian Aistleitner.
38802 2012-01-27 Werner Koch <wk@gnupg.org>
38804 gl: Add support for Android to stdint.h replacement.
38805 + commit bdde44ae8d4709e33c09781c3d37a5da2c7a5e0d
38806 * gl/stdint_.h: When included from Bionic <sys/types.h>, just include
38807 the system's <stdint.h>.
38809 gpg-connect-tool: Take the string "true" as a true condition.
38810 + commit 2871422d9a889cb632f59efda4d9cd170fc9fca7
38811 * tools/gpg-connect-agent.c (main): Handle strings "true" and "yes" in
38812 conditions as expected.
38814 2012-01-26 Ben Kibbey <bjk@luxsci.net>
38816 Return GPG_ERR_CARD_NOT_PRESENT when pinentry-mode=loopback.
38817 + commit cf748e8736b984194345bfd74887b35d3d23fa37
38818 Since there isn't a way to prompt the user to insert the smartcard when
38819 pinentry-mode=loopback, return GPG_ERR_CARD_NOT_PRESENT instead of
38820 GPG_ERR_NO_PIN_ENTRY.
38822 * agent/divert-scd.c (ask_for_card): Return GPG_ERR_CARD_NOT_PRESENT
38823 when pinentry-mode=loopback.
38825 Also check for GPG_ERR_ASS_CANCELED during an inquire.
38826 + commit 3da10eefcb09a520f11e4fae7f59a33f80ffba69
38827 Fix pinentry-mode=loopback when cancelling an inquire from scdaemon.
38828 This is similar to commit 4f21f8d but for both protocol command
38829 cancellation and pinentry cancellation.
38831 * agent/call-scd.c (agent_card_pkdecrypt): Check for
38832 GPG_ERR_ASS_CANCELED.
38833 (agent_card_pksign): Ditto.
38835 2012-01-25 Werner Koch <wk@gnupg.org>
38837 nPth is now a hard requirement for GnuPG.
38838 + commit 001352077cdc7e402421c77328bea1a052005673
38839 * configure.ac: Remove cruft to allow building without npth.
38841 Require libassuan 2.1.0.
38842 + commit c254d0f0d13a54777a62dad8f78a8f287d6ae565
38843 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.1.0. This is due to
38846 Fix strerror vs. gpg_strerror usage.
38847 + commit 2be7818c6d916a69ffdf88cce32960949a56e893
38848 This bug was introduced by the migration to npth.
38849 * agent/gpg-agent.c (handle_connections): Use strerror.
38851 Add missing variable.
38852 + commit a55d2e16f1090264338dc3ad0b2afca28db27c09
38853 * agent/gpg-agent.c (handle_connections) [!W32]: Add missing variable.
38855 2012-01-25 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
38857 Port LDAP wrapper to NPTH.
38858 + commit 4074f966276be10a794fd63a7f443b9d974d3982
38859 * agent/gpg-agent.c (handle_connections): Handle error.
38860 * dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c: Port to NPTH.
38862 Port Windows code to NPTH.
38863 + commit ccbb4c3652ee72386b8889358b829e256e1ebcda
38864 * agent/gpg-agent.c (get_agent_ssh_socket_name): Use
38865 INVALID_HANDLE_VALUE instead of 0.
38866 (handle_signal) [!HAVE_W32_SYSTEM]: Don't define.
38867 (handle_connections): Port Windows code to NPTH.
38868 * dirmngr/dirmngr.c (handle_connections): Port Windows code to NPTH.
38869 * g13/g13.c (handle_connections): Port Windows code to NPTH.
38870 * scd/scdaemon.c (handle_connections): Port Windows code to NPTH.
38873 + commit 7a7a59782766a8bde0c3e7156d14bb2b0e4a3951
38874 * configure.ac: Don't check for PTH but for NPTH.
38875 (AH_BOTTOM): Remove PTH_SYSCALL_SOFT.
38876 (have_pth): Rename to ...
38877 (have_npth): ... this.
38878 (USE_GNU_NPTH): Rename to ...
38879 (USE_GNU_PTH): ... this.
38880 * m4/npth.m4: New file.
38881 * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c,
38882 agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c,
38883 agent/trustlist.c, common/Makefile.am, common/estream.c,
38884 common/exechelp-posix.c, common/exechelp-w32.c,
38885 common/exechelp-w32ce.c, common/http.c, common/init.c,
38886 common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c,
38887 dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c,
38888 dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am,
38889 g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am,
38890 scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c,
38891 scd/scdaemon.c, tools/Makefile.am: Port to npth.
38893 2012-01-25 Werner Koch <wk@gnupg.org>
38895 Require gitlog-to-changelog to be installed.
38896 + commit 495dc68586356891b82a2d2b6367c4131fd17f08
38897 * Makefile.am (GITLOG_TO_CHANGELOG): New.
38898 (gen-ChangeLog): Use installed version of gitlog-to-changelog.
38900 2012-01-20 David Shaw <dshaw@jabberwocky.com>
38902 Changes to --min-cert-level should cause a trustdb rebuild (issue 1366)
38903 + commit deee8147aab086161c91e6aa6fb41d7148a630f6
38904 * g10/gpgv.c, g10/trustdb.c (read_trust_options): Add min_cert_level
38906 * g10/trustdb.c (check_trustdb_stale): Request a rebuild if
38907 pending_check_trustdb is true (set when we detect a trustdb
38908 parameter has changed).
38910 * g10/keylist.c (public_key_list): Use 'l' in the "tru" with-colons
38911 listing for min_cert_level not matching.
38913 * g10/tdbio.c (tdbio_update_version_record, create_version_record,
38914 tdbio_db_matches_options, tdbio_dump_record, tdbio_read_record,
38915 tdbio_write_record): Add a byte for min_cert_level in the tdbio
38918 2012-01-20 Werner Koch <wk@gnupg.org>
38920 estream: Fix unclean usage of realloc.
38921 + commit e97e2ced6cf3ee295a3cc9f8968969a1910380ea
38922 * common/estream-printf.c (_ESTREAM_PRINTF_MALLOC): Remove.
38923 (_ESTREAM_PRINTF_FREE): Remove.
38924 (_ESTREAM_PRINTF_REALLOC): New.
38925 (fixed_realloc) [!_ESTREAM_PRINTF_REALLOC]): New.
38926 (estream_vasprintf): Use my_printf_realloc instead of my_printf_malloc
38927 and my_printf_free.
38928 (dynamic_buffer_out): Use my_printf_realloc instead of realloc.
38930 Do not copy default merge commit log entries into the ChangeLog.
38931 + commit 7589e43b21c8d80c5a57ecb6eb78dfcd0b5dac46
38932 * scripts/gitlog-to-changelog: Skip merge commits.
38934 2012-01-18 Ben Kibbey <bjk@luxsci.net>
38936 Add the INQUIRE_MAXLEN status message.
38937 + commit ae981dd8f454e2a8bbc6429bed5abc5e87cc83d5
38938 This status message is used to inform the client of the maximum length
38939 of an inquired passphrase and is used in pinentry-mode=loopback.
38941 * agent/command.c (pinentry_loopback): Send the INQUIRE_MAXLEN status
38942 message before doing the inquire.
38944 2012-01-16 Jim Meyering <meyering@redhat.com>
38946 yat2m: don't dereference pointer to freed memory.
38947 + commit 4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa
38948 * doc/yat2m.c (top_parse_file): Correct macrolist-freeing loop.
38950 gpg-agent: fix lc-messages handling not to change Xauthority setting.
38951 + commit 37801918cb916ae8c641e003f204dcc70cccb29c
38952 * agent/gpg-agent.c (main): Supply omitted "break" statement for
38953 lc-messages option. Otherwise, control would fall through to the
38954 following oXauthority case and use the same value there.
38956 2012-01-15 Werner Koch <wk@gnupg.org>
38959 + commit 75a402fc25e4ec9659723dd58306aff3415736f4
38962 2012-01-14 Ben Kibbey <bjk@luxsci.net>
38964 Fix scdaemon pinentry inquire cancelation.
38965 + commit 4f21f8d6e109eae111d2da91f4c946afda4174e4
38966 Similar to commit 29af488 but also fixes PKDECRYPT and PKSIGN.
38968 * agent/call-scd.c (agent_card_pkdecrypt): Check for GPG_ERR_CANCELED
38969 when returning from the PKDECRYPT operation of scdaemon and cancel the
38971 (agent_card_pksign): Ditto.
38972 (cancel_inquire): New.
38974 2012-01-11 Werner Koch <wk@gnupg.org>
38976 gpg: Fix segv with RSA_S keys.
38977 + commit 30ec869b8c63f1edcc58110ed20b83b0e77248f8
38978 * g10/misc.c (pubkey_get_npkey, pubkey_get_nskey)
38979 (pubkey_get_nsig, pubkey_get_nenc): Map all RSA algo ids to
38982 estream: Avoid printing leading zeroes by %p on 32 bit systems.
38983 + commit b42bc48dfb4b6d4f745eb02d8de4f4dcffdacf48
38984 * common/estream-printf.c (pr_pointer): Synchronize definition of
38985 AULONG with its use.
38987 2012-01-11 David Shaw <dshaw@jabberwocky.com>
38989 Refresh sample keys.
38990 + commit 860861279bc17dd80eecc9631c4ae5d161a335fd
38993 2012-01-10 David Shaw <dshaw@jabberwocky.com>
38995 Adapt HKP fix for fingerprint/long keyid retrievals for dirmngr.
38996 + commit 3f59561cee635c6801e0a59d3abff1c064fcbdbe
38997 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Use the longest valid keyid form
38999 2012-01-06 Werner Koch <wk@gnupg.org>
39001 gpg: Make the double space in the middle of a fingerprint optional.
39002 + commit 957fe728466893bc63f5ccad197d3e245dca4bf3
39003 This change might help to c+p a fingerprint from an HTML page without
39004 being enclosed in a "pre" tag.
39005 * common/userids.c (classify_user_id): Skip a second blank in the
39006 middle of a fingerprint.
39008 gpg: Allow use of a standard space separated fingerprint.
39009 + commit 372fb4fc0661014ccd9275c89e6da2208f87155f
39010 * common/userids.c (classify_user_id): Check for space separated GPG
39013 2012-01-06 NIIBE Yutaka <gniibe@fsij.org>
39015 Merge ccid_driver_improvement branch.
39016 + commit 5988c8bfb7eafaca53c8abeb793f189acd3177c6
39017 * scd/apdu.c (ccid_keypad_operation): Rename from ccid_keypad_verify.
39018 (open_ccid_reader): Use ccid_keypad_operation for verify and modify.
39020 * scd/ccid-driver.c (VENDOR_VASCO, VASCO_920): New.
39021 (ccid_transceive_apdu_level): Permit sending packet where
39022 apdulen <= 289. Support receiving packets in a chain.
39023 (ccid_transceive_secure): Maximum is 15 for VASCO DIGIPASS 920.
39024 Support keypad_modify method such as CHANGE_REFERENCE_DATA: 0x24.
39026 2012-01-03 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
39028 Silence gcc warning.
39029 + commit ed432f030e604f7b2fd4a79c2110d92b9cde7501
39030 * sm/call-dirmngr.c (get_cached_cert): Make sure buflen is initialized.
39032 Revert last change, add comment about link() return values.
39033 + commit ff2095ad7b4be7eaf9468b6ef39fd979527ecc4f
39034 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Do not check
39035 return value of link().
39037 Fix compiler warnings.
39038 + commit 0dce26778ef8abd4fc40de689d7ec9b720d26430
39039 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Check return
39041 * g13/g13.c: Make sure err is initialized.
39042 * scd/scdaemon.c (main) [!USE_GCRY_THREAD_CBS]: Do not define ERR.
39044 Fix last change: Only set gcrypt thread callback for older versions.
39045 + commit 61ccd8d92d9d3b8ba0eca3c2969d7f6f37e16405
39046 * dirmngr/dirmngr.c, g13/g13.c: Rename FIX_GCRY_PTH_INIT to
39047 USE_GCRY_THREAD_CBS.
39049 2012-01-03 Werner Koch <wk@gnupg.org>
39051 Terminate csh commands with a semicolon also for dirmngr.
39052 + commit 682df45d15661ed3544e2ed34bcb636200cc40f9
39053 * dirmngr/dirmngr.c (main): Terminate csh style output with a semicolon.
39055 Terminate csh commands with a semicolon.
39056 + commit d01d9ff11f46cbd61b7b8c0e04431e4f0c4a8580
39059 * agent/gpg-agent.c (main): Terminate csh style output with a semicolon.
39060 * scd/scdaemon.c: Ditto.
39062 2012-01-02 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
39064 Only set gcrypt thread callback for older version of gcrypt.
39065 + commit a2d9e48fcca6cfc2dfadef6dbd3579a30314676b
39066 * agent/gpg-agent.c, dirmngr/dirmngr.c, g13/g13.c, scd/scdaemon.c
39067 (USE_GCRY_THREAD_CBS): New macro, defined if
39068 GCRY_THREAD_OPTION_VERSION is 0.
39069 (fixed_gcry_pth_init) [!USE_GCRY_THREAD_CBS]: Don't define.
39070 (main) [!USE_GCRY_THREAD_CBS]: Do not install thread callbacks.
39072 2011-12-28 David Shaw <dshaw@jabberwocky.com>
39074 Use the longest key ID available when talking to a HKP server.
39075 + commit c6aaf024651c7d55ac9fb77a53c084efb3adc1a9
39076 This is issue 1340. Now that PKSD is dead, and SKS supports long key
39077 IDs, this is safe to do. Patch from Daniel Kahn Gillmor
39078 <dkg@fifthhorseman.net>.
39080 2011-12-20 Werner Koch <wk@gnupg.org>
39082 Post-release version number update.
39083 + commit 97d1c884e62bba94e42bb5b2bb13cd3880334c31
39086 Release 2.1.0beta3.
39087 + commit 604c130a85d4203b9d84137a42673aeaff1c0bd1
39090 Prepare for the beta3 release.
39091 + commit 8e47f1e576f70d4dbe966523057fe3078006ae8b
39094 po: Update the German translation.
39095 + commit 6f02c143440865781b4e3c1753e24e55a0de40e4
39098 Add the STEED Self-Signing Nonthority certificate.
39099 + commit fe2f1826991e8130f727ee15df1a4651f679752f
39100 * doc/com-certs.pem: Install it when creating a keybox.
39102 faq: Add section on US export restrictions.
39103 + commit 779611494dbd187d09b05d2eb10faabd31a70156
39106 Require Libassuan 2.0.3.
39107 + commit 366512abe44d9e71bb2c699c29477afa6ac71cdd
39108 * configure.ac: Require Libassuan 2.0.3.
39109 * agent/call-scd.c (ASSUAN_CONVEY_COMMENTS): Remove macro replacement.
39110 * agent/command.c (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Remove
39112 (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Ditto.
39113 * scd/command.c (cmd_killscd) [ASSUAN_FORCE_CLOSE]: Ditto.
39115 2011-12-20 NIIBE Yutaka <gniibe@fsij.org>
39117 Add error log and debug log for pcsc_keypad_verify and pcsc_keypad_modify.
39118 + commit 07f20f313a0b13e5c93168a8a62ff1cbb94a4514
39119 * scd/apdu.c (pcsc_keypad_verify): Add debug log and error log.
39120 (pcsc_keypad_modify): Likewise.
39122 2011-12-19 Werner Koch <wk@gnupg.org>
39123 Ben Kibbey <bjk@luxsci.net>
39125 scd: Fix for card change returning GPG_ERR_CARD_RESET.
39126 + commit f4b7f7146349c388a2f3ce224ff2006606c66232
39127 * scd/apdu.c (apdu_connect): Do not test for zero atrlen.
39129 2011-12-16 NIIBE Yutaka <gniibe@fsij.org>
39131 Don't kill pinentry by SIGKILL but let it quit by SIGINT.
39132 + commit f6251c0d0af92331388f5e9bcd1750cbadcaca8f
39133 * agent/call-pinentry.c (agent_popup_message_stop): To pinentry, send
39134 SIGINT (was: SIGKILL).
39136 2011-12-15 David Shaw <dshaw@jabberwocky.com>
39138 Merge fix for issue 1331 from 1.4.
39139 + commit a98260c39f1c0ccdad004784cbc9440376766082
39140 * photoid.c (generate_photo_id): Check for the JPEG magic numbers
39141 instead of JFIF since some programs generate an EXIF header first.
39143 2011-12-15 Werner Koch <wk@gnupg.org>
39145 scd: Prefer application Geldkarte over DINSIG.
39146 + commit 27089564b6453deaf7b4ffe7cc5f5f290b6d892b
39147 * scd/app.c (select_application): Reorder application tests.
39149 scd: Add option --dump-atr to command APDU.
39150 + commit b22d62bd1481dfe13d60a6d16b09b9297944f063
39151 * scd/atr.c: Rewrite.
39152 * scd/Makefile.am (scdaemon_SOURCES): Add atr.c and atr.h.
39153 * scd/command.c (cmd_apdu): Add option --dump-atr.
39155 estream: New function es_fclose_snatch.
39156 + commit 7737a2c269657189a583cde7f214f20871d264f8
39157 * common/estream.c (cookie_ioctl_function_t): New type.
39158 (es_fclose_snatch): New function.
39159 (COOKIE_IOCTL_SNATCH_BUFFER): New constant.
39160 (struct estream_internal): Add field FUNC_IOCTL.
39161 (es_initialize): Clear FUNC_IOCTL.
39162 (es_func_mem_ioctl): New function.
39163 (es_fopenmem, es_fopenmem_init): Init FUNC_IOCTL.
39165 2011-12-14 Werner Koch <wk@gnupg.org>
39167 scd: Skip S/N reading for the "undefined" application.
39168 + commit 792e137ec7997a0ff5c54ff970611238d28d4ba8
39169 * scd/app.c (select_application): Skip serial number reading.
39171 scd: Add more status word values for documentation.
39172 + commit 0bac31ee9f74a25d76b08c3e0355a338908f083a
39175 scd: Add the "undefined" stub application.
39176 + commit dcd64131c60efd0189aa05d5dbce6b93547b04e3
39177 * scd/app.c (select_application): Implement the "undefined"
39180 agent: Pass comment lines from scd verbatim thru gpg-agent.
39181 + commit 45cf9de341405a228e331bd3893cbcd6b72306be
39182 * agent/call-scd.c (pass_status_thru): Pass comment lines verbatim.
39183 * tools/gpg-connect-agent.c (help_cmd_p): New.
39184 (main): Treat an "SCD HELP" the same as "HELP".
39186 scd: Fix resetting and closing of the reader.
39187 + commit 2d91febbd8d30beb7eb33f7aa80ffd5691d1d3cc
39188 * scd/command.c (update_card_removed): Do no act on an invalid VRDR.
39189 (do_reset): Ignore apdu_reset error codes for no and inactive card.
39190 Close the reader before setting the slot to -1.
39191 (update_reader_status_file): Notify the application before closing the
39194 scd: Add debug option for reader function calls.
39195 + commit 07ea8c56b507b06d4bd70e94fa51914659afac4b
39196 * scd/scdaemon.h (DBG_READER_VALUE, DBG_READER): New.
39197 * scd/apdu.c (apdu_open_reader, apdu_close_reader)
39198 (apdu_shutdown_reader, apdu_connect, apdu_disconnect)
39199 (apdu_reset, apdu_get_atr, apdu_get_status): Add debug code.
39200 (apdu_activate): Remove this unused function.
39202 2011-12-13 Werner Koch <wk@gnupg.org>
39204 scd: New option --debug-assuan-log-cats.
39205 + commit 00c760f628f4cf0fc11e79d305c172f98123f815
39206 * scd/scdaemon.c (oDebugAssuanLogCats): New.
39207 (opts): Add option --debug-assuan-log-cats.
39208 (main): Implement option.
39209 * common/asshelp.c (set_libassuan_log_cats): New.
39211 scd: Introduce a virtual reader table.
39212 + commit 24e121ef261731069868ca403b818f1168237f53
39213 The vreader table makes the code more clear by explicitly talking
39214 about APDU slots and reader indices. It also accommodates for future
39217 * scd/scdaemon.h (server_control_s): Remove READER_SLOT.
39218 * scd/scdaemon.c (scd_init_default_ctrl): Do not init READER_SLOT.
39219 * scd/app.c (check_application_conflict): Add arg SLOT.
39220 * scd/command.c (slot_status_s): Rename to vreader_s.
39221 (server_local_s): Add field VREADER_IDX as replacement for
39222 the READER_SLOT in server_control_s. Change all users.
39223 (slot_table): Rename to vreader_table. Change all users.
39224 (vreader_slot): New.
39225 (do_reset, cmd_apdu): Map vreader to apdu slot.
39226 (get_reader_slot): Rename to get_current_reader. Return -1 on error.
39227 (open_card): Map vreader toapdu slot. Pass slot to
39228 check_application_conflict.
39229 (scd_command_handler): Init VREADER_IDX.
39230 (update_reader_status_file): Reset SLOT field on error.
39232 2011-12-12 Werner Koch <wk@gnupg.org>
39234 scd: Retry command SERIALNO for an inactive card.
39235 + commit 11164662788036c4b15d30555ea33ec0b6f5a670
39236 * scd/command.c (cmd_serialno): Retry once for an inactive card.
39238 Fix detection of card removal and insertion.
39239 + commit cd29dc0f1cf7f3bd7938ffa65bf13f9a75d8c156
39240 * scd/apdu.c (apdu_connect): Return status codes for no card available
39242 * scd/command.c (TEST_CARD_REMOVAL): Also test for GPG_ERR_CARD_RESET.
39243 (open_card): Map apdu_connect status to GPG_ERR_CARD_RESET.
39245 gitlog-to-changelog: New option --tear-off.
39246 + commit ea0a21410b8fa460882c0f8de90b9291345fd4fc
39247 * scripts/gitlog-to-changelog: Add option --tear-off.
39248 * Makefile.am (gen-ChangeLog): Use that option.
39250 2011-12-07 Werner Koch <wk@gnupg.org>
39252 gpgsm: Add new validation model "steed".
39253 + commit 8a12a2000d82acfa881e8c18d028290100bf5e43
39254 * sm/gpgsm.h (VALIDATE_FLAG_STEED): New.
39255 * sm/gpgsm.c (gpgsm_parse_validation_model): Add model "steed".
39256 * sm/server.c (option_handler): Allow validation model "steed".
39257 * sm/certlist.c (gpgsm_cert_has_well_known_private_key): New.
39258 * sm/certchain.c (do_validate_chain): Handle the
39259 well-known-private-key attribute. Support the "steed" model.
39260 (gpgsm_validate_chain): Ditto.
39261 * sm/verify.c (gpgsm_verify): Return "steed" in the trust status line.
39262 * sm/keylist.c (list_cert_colon): Print the new 'w' flag.
39264 Correct punctuation in the ChangeLog summary line.
39265 + commit 14e4fdc9f97d6f12bf563adfff1e3157305d7795
39266 * Makefile.am (gen-ChangeLog): Supply --append-dot.
39268 Allow comments which will not show up in the ChangeLog.
39269 + commit cd3732841de32ce5c7841e6e158df3a5f1102f86
39270 * scripts/gitlog-to-changelog: Ignore lines after a "--" line.
39272 2011-12-06 Werner Koch <wk@gnupg.org>
39274 gpgsm: Allow specification of an AuthorityKeyIdentifier.
39275 + commit 596b84a4de58def2155d3fe56462f6607f135b69
39276 * sm/certreqgen.c (pAUTHKEYID): New.
39277 (read_parameters): Add keyword Authority-Key-Id.
39278 (proc_parameters): Check its value.
39279 (create_request): Insert an Authority-Key-Id.
39281 gpgsm: Allow arbitrary extensions for cert creation.
39282 + commit 5cdad8ff000152b4bd01953646bb87fe8703c70d
39283 * sm/certreqgen.c (pSUBJKEYID, pEXTENSION): New.
39284 (read_parameters): Add new keywords.
39285 (proc_parameters): Check values of new keywords.
39286 (create_request): Add SubjectKeyId and extensions.
39287 (parse_parameter_usage): Support "cert" and the encrypt alias "encr".
39289 gpgsm: Fix storing of the serial number.
39290 + commit 3f284e40502d8181b0b3ea66c77cd7c1252ea781
39291 * sm/certreqgen.c (create_request): Fix hex-bin conversion.
39293 2011-12-05 Werner Koch <wk@gnupg.org>
39296 + commit 9274d4d18281b3364fa8abaa821dddf124b105d7
39297 * agent/command.c (start_command_handler): Remove use of removed var.
39299 Amend the agent code with more comments.
39300 + commit 477360e8cdc458b0a36e9c7fb52a35f27766255d
39301 * agent/command.c (server_local_s): Remove unused field MESSAGE_FD.
39303 2011-12-02 Werner Koch <wk@gnupg.org>
39305 Support the Cherry ST-2000 card reader.
39306 + commit 239659d3a0b8c0c378734ca3d1e9210a02e24da7
39307 * scd/ccid-driver.c (SCM_SCR331, SCM_SCR331DI, SCM_SCR335)
39308 (SCM_SCR3320, SCM_SPR532, CHERRY_ST2000): New constants.
39309 (parse_ccid_descriptor): Use them.
39310 (scan_or_find_usb_device, ccid_transceive_secure): Handle Cherry
39311 ST-2000. Suggested by Matthias-Christian Ott.
39313 Avoid possible double free in export.c.
39314 + commit 96dc146fa17a7853277dbf3dc771c585a815c247
39315 * g10/export.c (transfer_format_to_openpgp): Avoid possible double
39316 free of LIST. Reported by NIIBE Yutaka.
39318 2011-12-02 NIIBE Yutaka <gniibe@fsij.org>
39320 Fix pinpad input support for passphrase modification.
39321 + commit bf37c32367ba149559385ee90b6435cef8bd6412
39322 * apdu.c (pcsc_keypad_verify): Have dummy Lc field with value 0.
39323 (pcsc_keypad_modify): Likewise.
39324 (pcsc_keypad_modify): It's only for ISO7816_CHANGE_REFERENCE_DATA.
39325 bConfirmPIN value is determined by the parameter p0.
39327 * app-openpgp.c (do_change_pin): The flag use_keypad should be 0 when
39328 reset_mode is on, or resetcode is on. use_keypad only makes sense for
39329 iso7816_change_reference_data_kp.
39331 * iso7816.h (iso7816_put_data_kp): Remove.
39332 (iso7816_reset_retry_counter_kp): Remove.
39333 (iso7816_reset_retry_counter_with_rc_kp): Remove.
39334 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
39336 * iso7816.c (iso7816_put_data_kp): Remove.
39337 (iso7816_reset_retry_counter_kp): Remove.
39338 (iso7816_reset_retry_counter_with_rc_kp): Remove.
39339 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
39341 2011-12-01 Werner Koch <wk@gnupg.org>
39343 Add hook to check the commit log syntax.
39344 + commit 29e96e6b9a8e68e6554dd48bc2ce68ae9525d29f
39345 * autogen.sh: Install commit-msg hook for git.
39347 Generate the ChangeLog from commit logs.
39348 + commit 2336b09779d313c1594acf6df3bd8a8486e90458
39349 * scripts/gitlog-to-changelog: New script. Taken from gnulib.
39350 * scripts/git-log-fix: New file.
39351 * scripts/git-log-footer: New file.
39352 * doc/HACKING: Describe the ChangeLog policy
39353 * ChangeLog: New file.
39354 * Makefile.am (EXTRA_DIST): Add new files.
39355 (gen-ChangeLog): New.
39356 (dist-hook): Run gen-ChangeLog.
39358 Rename all ChangeLog files to ChangeLog-2011.
39360 2011-12-01 Werner Koch <wk@gnupg.org>
39362 NB: Changes done before December 1st, 2011 are described in
39363 per directory files named ChangeLog-2011. See doc/HACKING for
39367 Copyright (C) 2011 Free Software Foundation, Inc.
39369 Copying and distribution of this file and/or the original GIT
39370 commit log messages, with or without modification, are
39371 permitted provided the copyright notice and this notice are