1 2017-01-23 Werner Koch <wk@gnupg.org>
4 + commit f8289b1d28f501d2f37bf9ccb5e42f7fb27b4688
7 build: Change make distcheck configure and temp. remove gpgconf.scm.
8 + commit 25e029823813e190a18b601af60efcb1fb3b84af
9 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Also test gpgtar and
10 wks-tools. Disable ntbtls.
11 * tests/openpgp/Makefile.am (XTESTS): Temporary remove gpgconf.scm.
13 Fix format string errors and some missing error case initialization.
14 + commit af5979a42b9468ffe0f3ac6de5a77d982c5cf8a0
15 * common/logging.c (do_logv): Remove extra parentheses in comparison.
17 * dirmngr/dns-stuff.c (resolve_addr_libdns): Init RES so that
18 dns_res_close is given a defined value in the error case.
20 * dirmngr/http.c (cookie_read, cookie_write) [HTTP_USE_NTBTLS]: Fix
23 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Remove duplicate "const".
24 * dirmngr/ks-engine-http.c (ks_http_help): Ditto.
25 * dirmngr/ks-engine-kdns.c (ks_kdns_help): Ditto.
26 * dirmngr/ks-engine-ldap.c (ks_ldap_help): Ditto.
28 * scd/app-p15.c (send_keypairinfo, do_getattr): Fix format string
30 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Init PID for the
32 (scdaemon_runtime_change): Ditto.
33 (dirmngr_runtime_change): Ditto.
35 * tools/gpgconf.c (query_swdb): Init VALUE_SIZE_UL.
37 dirmngr: On SIGHUP mark all keyservers alive.
38 + commit 3ca3da8fc4ef802b8cceec5fde398a07b4888848
39 * dirmngr/ks-engine-hkp.c (ks_hkp_reload): New.
40 * dirmngr/dirmngr.c (dirmngr_sighup_action): Call it.
42 2017-01-23 Gaetan Bisson <bisson@archlinux.org>
44 libdns: Hack to skip negation term.
45 + commit d4c0187dd93163f12e9f953366adef81ecf526a6
46 * dirmngr/dns.c (dns_nssconf_loadfile): Skip negation terms in
49 2017-01-23 Werner Koch <wk@gnupg.org>
51 dirmngr: Print debug message only with --debug.
52 + commit 9ae0b81e4ff08712da642456d0164f81924a91e4
53 * dirmngr/dns-stuff.c (libdns_init): Call log_debug only if opt_debug
56 2017-01-23 Phil Pennock <gnupg-devel@spodhuis.org>
58 dirmngr: Handle missing nsswitch.conf.
59 + commit 88ade475c56ac3712d6bd6d41ae38e1421dcb320
60 * dirmngr/dns-stuff.c (libdns_init): Fallback to files,dns.
62 2017-01-23 Damien Goutte-Gattat <dgouttegattat@incenp.org>
64 gpg: Fix misleading log message when checking regexp.
65 + commit a85731ada2d361eacddc5ae92f80d34792dd4b5e
66 * src/trustdb.c (check_regexp): Correctly print whether the
67 regexp matched or not.
69 2017-01-23 Werner Koch <wk@gnupg.org>
71 gpg: New export and import options "backup" and "restore".
72 + commit 953d4ec6afd1b42feb7465ee57e48d72f033019a
73 * g10/export.c (parse_export_options): Add "backup" and its alias
75 (do_export_one_keyblock): Export ring trust packets in backup mode.
76 * g10/import.c (parse_import_options): Add "restore" and its alias
78 (read_block): Import ring trust packets.
80 2017-01-23 NIIBE Yutaka <gniibe@fsij.org>
82 scd: Fix INTERRUPT transfer.
83 + commit 21c9ebb908c2ad2e322e7a13e59e5880494c4d67
84 * scd/ccid-driver.c (find_endpoint): Don't return Bulk endpoint as
86 (ccid_poll): Call libusb_interrupt_transfer.
88 2017-01-19 Werner Koch <wk@gnupg.org>
90 build: Print a commit id in the generated ChangeLog.
91 + commit e926f30a1cda75f6334b79c303b5134f0441a3dc
92 * build-aux/gitlog-to-changelog: Print an extra line with the commit
95 common: Fix buffer copy code again.
96 + commit e031b3c16cfec583c4322c84d299b355f0849c77
97 * common/exectool.c (my_error_from_errno): Remove.
98 (copy_buffer_do_copy): Do without var RC.
99 (copy_buffer_flush): Ditto. Use ERRNO instead of es_write return
101 (gnupg_exec_tool): Correctly return errors from es_read.
103 2017-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
105 gpg: Allow to freeze faked system time.
106 + commit 3daeef702b2e6a42f0f396b828f86ffc3f33fc88
107 * g10/gpg.c (main): If the parameter for --faked-system-time
108 ends with a '!', freeze time at the specified point.
109 * common/gettime.c (gnupg_set_time): Allow to freeze the time
110 at an arbitrary time instead of only the current time.
111 * doc/gpg.texi: Update documentation for --faked-system-time.
113 2017-01-19 Werner Koch <wk@gnupg.org>
115 common: Clarify use of vars in buffer copy code.
116 + commit 55c9212a2338bf0b07c8cf3a69bcedaa28d48d43
117 * common/exectool.c (my_error_from_errno): New.
118 (copy_buffer_do_copy): Use separate vars for errno values and
119 gpg-error values for clarity. s/assert/log_assert/.
120 (copy_buffer_flush): Ditto.
121 (gnupg_exec_tool_stream): Use gpg_err_code when testing.
123 2017-01-19 NIIBE Yutaka <gniibe@fsij.org>
125 dirmngr: Add setup of CA for NTBTLS.
126 + commit 367349b4dcc97718f8ae1163d1389d2a46fc3453
127 * dirmngr/http.c [HTTP_USE_NTBTLS] (http_session_new): Add CA by
130 2017-01-18 Justus Winter <justus@g10code.com>
132 common: Fix flushing copy buffers.
133 + commit 34fa2d79a07a079be472c3ff486debfdac8c6070
134 * common/exectool.c (copy_buffer_flush): Write and flush the data, but
135 do not hide EAGAIN from the caller.
136 (gnupg_exec_tool_stream): Retry on EAGAIN.
138 2017-01-18 Werner Koch <wk@gnupg.org>
140 agent: Reduce sleep time in the progress callback.
141 + commit 3d356d165aed7d76a3ea811b1d24ed0a05ac90d4
142 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Reduce sleep time
143 from 100ms to 1ms or use gpgrt_yield when build against a recent
146 gpgconf: Allow "all" for --launch, --kill, and --reload.
147 + commit 2312248b2e3adffa52d8a3ac4f24fe2c88f0f569
148 * tools/gpgconf-comp.c (gc_component_launch): Allow -1 for COMPONENT.
149 (gc_component_kill): Ditto.
150 (gc_component_reload): For robustness change the condition to < 0.
151 * tools/gpgconf.c (main) <aLaunch, aKill, aReload>: Support argument
154 gpg: Remove unused definitions.
155 + commit 701f54eccf3da3319dd6d74f46b852c64d90bc52
156 * g10/keydb.h (rt_UNKNOWN, rt_RING): Remove constants.
157 (keyblock_pos_struct, KBPOS): Remove struct and type.
159 2017-01-18 NIIBE Yutaka <gniibe@fsij.org>
161 scd: Cleanup SERIALNO protocol.
162 + commit 79cea89774e6327b6785e22b7057f9e3e188ac2b
163 * scd/app.c (app_get_serial_and_stamp): Remove.
164 (app_get_serialno): New.
165 (app_write_learn_status): Use send_status_direct.
166 (app_getattr): Use app_get_serialno for SERIALNO and
167 send with send_status_direct.
168 * scd/app-openpgp.c (do_getattr): Likewise.
169 * scd/command.c (cmd_serialno): Don't send TIMESTAMP of 0.
170 (cmd_learn): Likewise. Don't inquire with TIMESTAMP of 0.
172 scd: Add "card_list" sub command for GETINFO.
173 + commit 8b1f24a29ebc7651437c01990215a55b1136dae0
174 * scd/app.c (app_send_card_list): New.
175 * scd/command.c (cmd_getinfo): Fix "status" sub command.
176 Add "card_list" sub command.
178 2017-01-17 Werner Koch <wk@gnupg.org>
180 build: Handle packages with dashes in --find-version.
181 + commit a09f258b1412209763222e2e81bab79663e4d685
182 * autogen.sh (--find-version): Improve version extraction.
185 gpg: Clean bogus subkey binding when cleaning a key.
186 + commit 356323768a1a29138581d0aceed0336ab8be0d5c
187 * g10/trust.c (clean_key): Also clean bogus subkey bindings.
189 gpg: Sync print of additional sig data in --edit-key.
190 + commit 766c25018b288a7185c6da6adac0dec01a64e94a
191 * g10/keylist.c (show_policy_url): Implement MODE -1.
192 (show_keyserver_url): Ditto.
193 (show_notation): Ditto.
194 * g10/keyedit.c (print_one_sig): Print policy URL, keyserver URL and
195 notation data to the tty.
197 common: Remove unused function tty_print_string.
198 + commit bae42e543799a428e59bad870aed9719dd6e6e45
199 * common/ttyio.c (tty_print_string): Rename to ...
200 (do_print_string): this. Make local. Simplify FP case by using
201 print_utf8_buffer. Change caller.
203 gpg: Prepare some key cleaning function for use with secret key packets.
204 + commit adbfbf608e75cdd72ae7b3a538b91bc0e236a18f
205 * g10/trust.c (mark_usable_uid_certs): Allow use of secret key packets.
206 (clean_sigs_from_uid): Ditto.
207 (clean_uid_from_key): Ditto.
208 (clean_one_uid): Ditto.
211 2017-01-16 Werner Koch <wk@gnupg.org>
213 dirmngr: Implement hkps lookups using literal addresses.
214 + commit e6aebfe3d0f16c483296fd125b66a44017fe15f4
215 * dirmngr/ks-engine-hkp.c (map_host): For literal addresses do a
218 dirmngr: Allow reverse DNS lookups in Tor-mode.
219 + commit 9850124c7bdf0a0e7c1866abc85f3437257d7095
220 * dirmngr/dns-stuff.c (resolve_dns_name): Move up in the file.
221 (resolve_addr_libdns): New.
222 (resolve_dns_addr): Divert to resolve_dns_addr.
224 dirmngr: Avoid network queries for literal IP addresses.
225 + commit daae97bc14742c75408c4eb05808a2102cfe2bcf
226 * dirmngr/dns-stuff.c (resolve_name_libdns): USe flags AI_NUMERICHOST
227 for literal IP addresses.
228 (resolve_name_standard): Ditto.
230 dirmngr: Fix URL creation for literal IPv6 addresses in HKP.
231 + commit 82646bbf1a5a7d745da81b239a12667a51703dc1
232 * dirmngr/dns-stuff.c (is_ip_address): Make the return value depend on
234 * dirmngr/ks-engine-hkp.c (map_host): Rename arg R_POOLNAME to
235 R_HTTPHOST because that is its purpose. Note that the former
236 behaviour of storing a NULL to indicate that it is not a pool has not
238 (make_host_part): Ditto.
239 (make_host_part): Make sure that literal v6 addresses are correclty
240 marked in the constructed URL.
242 2017-01-16 Justus Winter <justus@g10code.com>
244 tests: Improve GPGHOME handling.
245 + commit 8b1611a9605b636db3e07a9d81016a11b318724c
246 * tests/openpgp/defs.scm (GPGHOME): New variable.
247 * tests/openpgp/ssh-import.scm: Remove redundant code, use 'path-join'.
248 * tests/openpgp/tofu.scm: Likewise.
250 2017-01-16 NIIBE Yutaka <gniibe@fsij.org>
252 agent: Ask specific SERIALNO for pksign/pkdecrypt.
253 + commit 0801f49b0dc7102943f0e9fa51061f50f5708ca6
254 * agent/call-scd.c (agent_card_serialno): Add DEMAND argument.
255 * agent/command-ssh.c (card_key_available): Follow the change.
256 * agent/learncard.c (agent_handle_learn): Likewise.
257 * agent/divert-scd.c (ask_for_card): Use DEMAND argument.
259 scd: Add --demand option for SERIALNO.
260 + commit 2e6f1c99d4f66a23a752092397e20a84964edf48
261 * scd/app.c (select_application): Add SERIALNO_BIN and SERIALNO_BIN_LEN
262 arguments. Return matched APP with a serial number when specified.
263 * scd/command.c (open_card): Modify for the implicit open only.
264 (open_card_with_request): New for explicit open and support match with a
266 (cmd_serialno): Support --demand option.
267 (cmd_learn, cmd_readcert, cmd_readkey, cmd_pksign, cmd_pkauth)
268 (cmd_pkdecrypt, cmd_getattr, cmd_setattr, cmd_writecert, cmd_writekey)
269 (cmd_genkey, cmd_random, cmd_passwd, cmd_checkpin, cmd_apdu): Follow
270 the change of open_card.
272 2017-01-12 Werner Koch <wk@gnupg.org>
274 build: Make autogen.sh more POSIX friendly (next try)
275 + commit 3db76c9277d918dec9721a6439f4db3b3c06aba3
276 * autogen.sh: Fix dd count to 5.
278 gpg: Rename a var to avoid a shadowing warning.
279 + commit c99a09f111c5980ae034faaea61a00d9ad60463c
280 * g10/keygen.c (keygen_set_std_prefs): Rename variable.
282 tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.
283 + commit 5c0777e1ca02ff1767755c417b64d6f78e02f475
284 * configure.ac (AC_CHECK_HEADERS): Add stdint.h.
285 * common/t-gettime.c: Include stdint.h.
286 (UINTMAX_C): Define replacement.
287 (test_isotime2epoch): Use UINTMAX_C for the >32 bit constants.
289 build: Make autogen.sh more POSIX friendly.
290 + commit 3c00b52f7cb0fbd756c0bbe5134b8f2d69c60dd1
291 * autogen.sh: Replace non POSIX "cp -a" and "head -c".
293 libdns: Silence -Wstrict-prototypes on some function ptrs.
294 + commit 97372b39cd9b4c84a083eadbf072fff77799617f
295 * dirmngr/dns.c (dns_rrtype): Ignore -Wstrict-prototypes warning.
297 libdns: Provide replacement for EPROTO.
298 + commit 0fadff9cdde47e42f7e428bc903b3626c67ba9c0
299 * dirmngr/dns.c (EPROTO) ![EPROTO]: Define to EPROTONOSUPPORT.
301 2017-01-11 Werner Koch <wk@gnupg.org>
303 dirmngr: After a connection failure log a hint if Tor is not running.
304 + commit 20dfcfe08c618d23134d5d6efef7676b090f30d3
305 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Check whether
308 dirmngr: Mark hosts dead on ENETDOWN.
309 + commit 76fb2febde10da8237bbe7613830b51af2a45139
310 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Take care of
313 dirmngr: Fix Tor access for v6 addresses.
314 + commit 09aeac41c97bc8ecb44a09886c7fdbd9a6ec5c7f
315 * dirmngr/http.c (use_socks): New.
316 (my_sock_new_for_addr): New.
317 (connect_server): Replace assuan_sock_new by my_sock_new_for_addr.
319 dirmngr: Remove warnings about unused global variables.
320 + commit 915864e7f0315b0c96315d0bcd48b1b93592353a
321 * dirmngr/crlcache.c (oidstr_issuingDistributionPoint): Comment.
322 * dirmngr/ocsp.c (oidstr_certHash): Comment.
324 dirmngr: Implement debug option "network" for http.
325 + commit da894c48ec3393e7c815f575daa5a52ab37cc102
326 * dirmngr/dirmngr.c (parse_rereadable_options): Set http debugging.
328 dirmngr: Add debug code to http.c.
329 + commit 02ab4b0085f8b4cdfe163d25ddd0fc80753d7f4a
330 * dirmngr/http.c (opt_verbose, opt_debug): New vars.
331 (http_set_verbose): New function.
332 (_my_socket_new): Add debug output.
333 (_my_socket_ref, _my_socket_unref, session_unref): Call log_debug if
334 OPT_DEBUG has ben set to 2 in a debugger.
335 (http_session_new, http_session_ref): Ditto.
336 (send_request, http_start_data): Print debug output for the request.
337 (parse_response): Change to use log_debug_string for the response.
339 common: New function log_debug_with_string.
340 + commit 088d71d3671e74eb088386026f0e439a7e3b5543
341 * common/logging.c (do_logv): Factor some code out to ...
343 (log_logv): Add arg EXTRASTRING and print it. Change all callers to
345 (log_debug_with_string): New. Uses EXTRASTRING.
347 2017-01-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
349 common: Avoid unnecessary ambiguity in argparse.
350 + commit 7249ab0f95d1f6cb8ee61eefedc79801bb56398f
351 * common/argparse.c (find_long_option): Avoid unnecessary ambiguity.
353 2017-01-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
355 systemd-user: Enable "systemctl --user reload {dirmngr,gpg-agent}"
356 + commit a20a450ac4ef10847fd59a5fd3acbbd2bfcaa6a2
357 * doc/examples/systemd-user/*.service: Add ExecReload directives to
358 indicate the canonical way to reload the services.
360 GnuPG recommends reloading the agent and dirmngr with "gpgconf
361 --reload". if anyone is running them as systemd user services, they
362 might ask them to reload in the systemd way, so teach systemd the
365 2017-01-10 Justus Winter <justus@g10code.com>
367 tests: Improve gpgconf test.
368 + commit 88e42ef08d65d4d1bc29c6cea48df19ca0d5e2bd
369 * tests/openpgp/defs.scm (valgrind): New variable.
370 (gpg-config): Fix clearing an option.
371 * tests/openpgp/gpgconf.scm: Also toggle 'quiet'.
373 tools: Fix memory leaks and improve error handling.
374 + commit 1f5caf90bfaaaf7b9d8c06c12087aeeae3748032
375 * tools/gpgconf-comp.c (gc_option_free): New function.
376 (gc_components_free): Likewise.
377 (gc_components_init): Likewise.
378 (retrieve_options_from_program): Use 'xfree', fix memory leak.
379 (change_options_program): Improve error handling.
380 (gc_component_change_options): Fix memory leaks.
381 * tools/gpgconf.c (main): Initialize components.
382 * tools/gpgconf.h (gc_components_init): New prototype.
384 tests: Add test for gpgconf.
385 + commit c8cfc62125aceee0ca48aab5c8a9fea1ec1ef652
386 * tests/openpgp/Makefile.am (XTESTS): Add new test.
387 * tests/openpgp/defs.scm (percent-encode): New function.
388 (gpg-conf): Generalize so that we can feed stdin.
389 (gpg-config): New function.
390 * tests/openpgp/gpgconf.scm: New file.
392 common: Fix fallback code.
393 + commit bfd6a490129ffc7c7ac8776bf5a5da3b1ddf6d42
394 * common/logging.c (_log_assert): Fix the variant for compilers that
395 do not support __FUNCTION__.
396 * common/logging.h (_log_assert): Likewise.
398 2017-01-09 Werner Koch <wk@gnupg.org>
400 dirmngr: Use "pgpkey-hkps" and "pgpkey-hkp" for SRV record lookups.
401 + commit 0cc975d8a1cd54115938202432e43263b8893ea4
402 * dirmngr/ks-engine-hkp.c (map_host): Chnage arg NO_SRV to SRVTAG.
403 (make_host_part): Rewrite.
405 dirmngr: Do not use a SRV record for HKP if a port was specified.
406 + commit c2cbe2f87c480c62239dc4c2cbb352acd98cd267
407 * dirmngr/http.h (parsed_uri_s): Add field EXPLICIT_PORT.
408 * dirmngr/http.c (do_parse_uri): That it.
409 * dirmngr/ks-engine-hkp.c (map_host): Add arg NO_SRV.
410 (make_host_part): Ditto.
411 (ks_hkp_resolve): Set NO_SRV from EXPLICIT_PORT.
412 (ks_hkp_search): Ditto.
416 2017-01-08 Werner Koch <wk@gnupg.org>
418 dirmngr: Implement experimental SRV record lookup for WKD.
419 + commit 88dc3af3d4ae1afe1d5e136bc4c38bc4e7d4cd10
420 * dirmngr/server.c (cmd_wkd_get): Support SRV records.
422 dirmngr: Improve debug output for TLS.
423 + commit 714faea4fa7f30d42e9986358214a99aa8fa57b3
424 * dirmngr/misc.c (dump_cert): Also print SubjectAltNames.
426 dirmngr: Change internal SRV lookup API.
427 + commit 16078f3deea5b82ea26e2f01dbd3ef3a5ce25410
428 * dirmngr/dns-stuff.c (get_dns_srv): Add args SERVICE and PROTO.
429 * dirmngr/http.c (connect_server): Simplify SRV lookup.
430 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
431 * dirmngr/t-dns-stuff.c (main): Adjust for changed get_dns_srv.
433 dirmngr: Strip root zone suffix from libdns SRV results.
434 + commit 9fa94aa10778bbd680315e93b23175423e338c40
435 * dirmngr/dns-stuff.c (getsrv_libdns): Strip trailing dot from the
438 2017-01-06 Werner Koch <wk@gnupg.org>
440 agent,w32: Fix annoying output to DebugView.
441 + commit 8d774904c8066d8c0f19cfffe2d568979bb8c470
442 * agent/gpg-agent.c (startup_fd_list): Do not define for W32.
443 (main) [W32]: Do not call get_all_open_fds.
445 2017-01-06 NIIBE Yutaka <gniibe@fsij.org>
447 scd: Fix for --disable-ccid for scdaemon.
448 + commit 858e14cd794e2a6125d51e652a754bbe26def997
449 * scd/apdu.c (apdu_dev_list_finish): Don't call ccid_dev_scan_finish
451 (apdu_open_reader): Only increment when it's zero.
453 scd: Fix for --disable-ccid-driver.
454 + commit 62268a2732dddca7a05ca4cf45d0e4338c7dc3c4
455 * scd/apdu.c [HAVE_LIBUSB] (apdu_dev_list_start): Conditionalize.
456 [HAVE_LIBUSB] (apdu_dev_list_finish, apdu_open_reader): Likewise.
458 scd: Support multiple readers by CCID driver.
459 + commit 8a41e73c31adb86d4a7dca4da695e5ad1347811f
460 * scd/apdu.c (new_reader_slot): Lock is now in apdu_dev_list_start.
461 (close_pcsc_reader_direct, close_ccid_reader): RDRNAME is handled...
462 (apdu_close_reader): ... by this function now.
463 (apdu_prepare_exit): Likewise.
464 (open_ccid_reader): Open with dev_list.
465 (apdu_dev_list_start, apdu_dev_list_finish): New.
466 (apdu_open_one_reader): New.
467 (apdu_open_reader): Support multiple readers.
468 * scd/app.c (select_application): With SCAN, opening all readers
469 available, and register as new APP.
470 (app_write_learn_status): app->ref_count == 0 is valid for APP which is
472 (app_list_start, app_list_finish): New.
473 * scd/ccid-driver.c (struct ccid_driver_s): Remove RID and BCD_DEVICE.
475 (parse_ccid_descriptor): BCD_DEVICE is now on the arguments.
476 (ccid_dev_scan, ccid_dev_scan_finish): New.
477 (ccid_get_BAI, ccid_compare_BAI, ccid_open_usb_reader): New.
478 (ccid_open_reader): Support multiple readers.
479 (ccid_set_progress_cb, ccid_close_reader): No RID any more.
481 2017-01-05 Werner Koch <wk@gnupg.org>
483 Silence two -Wlogical-op warnings.
484 + commit 6170eb809033c9d144abf3b1f31f8b936878cdd4
485 * common/tlv.c (parse_ber_header): Avoid compiler warning about a
487 * tools/gpgtar-create.c (pattern_valid_p): Likewise.
489 2017-01-05 Justus Winter <justus@g10code.com>
491 tests: New test for --{show,override}-session-key.
492 + commit 168c8c9d79a817c1f08a9ef976dab377f8c4c69e
493 * tests/openpgp/Makefile.am (XTESTS): Add new test.
494 * tests/openpgp/decrypt-session-key.scm: New file.
497 + commit 4ded213698123a425393b89a800fda2a4ec5229d
498 * tests/openpgp/defs.scm (with-ephemeral-home-directory): Make
499 hygienic, use define-macro, do not change to the ephemeral home
501 * tests/gpgsm/setup.scm: Change to the ephemeral home directory.
502 * tests/openpgp/setup.scm: Likewise.
504 2017-01-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
506 g10: avoid warning when --disable-tofu.
507 + commit 38671cfe5a2a40bb991619f4cb992c42b5f1e8cd
508 If configured with --disable-tofu, we see compiler warnings about an
509 unused variable. This should remove those warnings.
511 2017-01-04 Justus Winter <justus@g10code.com>
513 tests,w32: Fix locating the components.
514 + commit 28e149609da44fab600f6a11b385d1c8ca8e7eb9
515 * tests/openpgp/defs.scm (percent-decode): New function.
516 (bin-prefix): New variable.
517 (installed?): Likewise.
518 (tool-hardcoded): Use the new variables.
519 (gpg-conf): Use the new function to decode the values.
520 (gpg-components): Do not use '--build-prefix' when 'installed?'.
522 2017-01-03 Werner Koch <wk@gnupg.org>
524 dirmngr: Make sure Tor mode is also set for DNS on SIGHUP.
525 + commit 969512401603639e4467ede7d892f1b02582c2c9
526 * dirmngr/dns-stuff.c (enable_dns_tormode): Always succeed.
527 (reload_dns_stuff): Reset tor port.
528 * dirmngr/dirmngr.c (set_tor_mode): Also enable Tor mode for DNS.
529 (main): Remove warning that Tor mode may not fully work.
530 * dirmngr/server.c (cmd_dns_cert): Remove explicit Tor for DNS
532 * dirmngr/t-dns-stuff.c (main): Remove option --new-circuit and error
533 checking for enable_dns_tormode.
535 dirmngr: New debug message on correctly initialized libdns.
536 + commit 0004d52ba2f1245c84f95a151342ad99fd72ca3d
537 * dirmngr/dns-stuff.c (libdns_init): Add debug level diagnostic on
540 2017-01-02 Justus Winter <justus@g10code.com>
542 common: Turn assertions into expressions.
543 + commit a1e0d4a1e75fc6e6c3392a4e1d1d27005b38d6cc
544 * common/logging.h (log_assert): Turn this into an expression so it
545 can be used in expressions.
547 tests: Fix faked time in the TOFU test.
548 + commit 6d065198337b5242889723481bfa9ce81aa108bb
549 * tests/openpgp/tofu.scm (GPG): Fix time delta.
551 2017-01-02 Werner Koch <wk@gnupg.org>
553 g13: Improve printing of debug infos.
554 + commit 5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49
555 * g13/g13tuple.c (all_printable): Make it work.
557 Replace use of variable-length-arrays.
558 + commit 6b84ecbf312d98ac8cce9fe5facdc815bc742fa1
559 * common/t-iobuf.c (main): Replace variable-length-array.
560 * g10/gpgcompose.c (mksubpkt_callback): Ditto.
562 * g10/t-stutter.c (log_hexdump): Ditto.
563 (oracle_test): Ditto.
564 * g10/tofu.c (get_policy): Ditto. Use "%zu" for size_t.
565 * scd/app-openpgp.c (ecc_writekey): Replace variable-length-array.
566 Check for zero length OID_LEN.
568 2017-01-02 Justus Winter <justus@g10code.com>
570 gpgscm: Fail if too many arguments are given.
571 + commit b0e14bd6ff8401b12b2b39f75aef94d3ad28017f
572 * tests/gpgscm/scheme.c (opexe_0): Enable check.
573 * tests/gpgscm/tests.scm (test::report): Remove superfluous argument.
575 gpgscm: Add 'finally', rework all macros.
576 + commit b79274a3b7e58f88e9a8c1dc1fb24dd3e983543c
577 * tests/gpgscm/init.scm (finally): New macro.
578 * tests/gpgscm/tests.scm (letfd): Rewrite.
579 (with-working-directory): Likewise.
580 (with-temporary-working-directory): Likewise.
583 gpgscm: Use boxed values for source locations.
584 + commit e8b843508dac96e9d0a3140954dd5a3618669cec
585 * tests/gpgscm/scheme-private.h (struct port): Use boxed values for
586 filename and current line. This allows us to use the same Scheme
587 object for labeling all expressions in a file.
588 * tests/gpgscm/scheme.c (file_push): Use boxed type for filename.
589 (mark): Mark location objects of port objects.
590 (gc): Mark location objects in the load stack.
591 (port_clear_location): New function.
592 (port_reset_current_line): Likewise.
593 (port_increment_current_line): Likewise.
594 (file_pop): Adapt accordingly.
595 (port_rep_from_filename): Likewise.
596 (port_rep_from_file): Likewise.
597 (port_close): Likewise.
598 (skipspace): Likewise.
600 (_Error_1): Likewise.
603 (scheme_deinit): Likewise.
604 (scheme_load_file): Likewise.
605 (scheme_load_named_file): Likewise.
607 2017-01-02 Werner Koch <wk@gnupg.org>
609 dirmngr: Strip root zone suffix from libdns cname results.
610 + commit b200e636ab20d2aa93d9f71f3789db5a04af0a56
611 * dirmngr/dns-stuff.c (resolve_name_libdns): Strip trailing dot.
612 (get_dns_cname_libdns): Ditto.
614 2016-12-30 NIIBE Yutaka <gniibe@fsij.org>
616 scd: Fix select_application.
617 + commit 337690441fcb19343fe56b139f5649bed7d25c83
618 * scd/app.c (select_application): Fix the condition for open.
620 scd: Fix card removal monitor.
621 + commit f300e12a793d59deb1a369713384eaabfa39b3e6
622 * scd/app.c (app_reset): Call send_client_notification with REMOVAL.
623 (scd_update_reader_status_file): Likewise.
624 * scd/command.c (send_client_notifications): Distinguish removal.
626 2016-12-29 NIIBE Yutaka <gniibe@fsij.org>
628 scd: Improve internal CCID driver.
629 + commit cdc8d0bd933b958db878861587322bc541b580b3
630 * scd/ccid-driver.c (scan_or_find_usb_device): Don't scan for
631 configuration but use active configuration. Support alt_setting.
632 (scan_or_find_devices): Support alt_setting.
633 (ccid_open_reader): Support alt_setting.
635 scd: Fix a race condition for new_reader_slot.
636 + commit c48cf7e32ffa02ebdf00265543344c611bef0431
637 * scd/apdu.c (reader_table_lock, apdu_init): New.
638 (new_reader_slot): Serialize by reader_table_lock.
639 * scd/app.c (lock_app, unlock_app, app_new_register): Fix error code
641 (initialize_module_command): Call apdu_init.
642 * scd/scdaemon.c (main): Handle error for initialize_module_command.
644 2016-12-28 NIIBE Yutaka <gniibe@fsij.org>
646 scd: APP centric approach for device management.
647 + commit 4cc9fc5eb9bd91d943c185d59da4a2b4cb885ee6
648 * scd/app.c (lock_app): Rename from lock_reader and use internal field
650 (unlock_app): Likewise.
651 (app_dump_state): Use APP.
652 (application_notify_card_reset): Remove.
653 (check_conflict): Change API for APP, instead of SLOT.
654 (check_application_conflict): Likewise.
655 (release_application_internal): New.
657 (app_new_register): New.
658 (select_application): Change API for APP, instead of SLOT.
659 (deallocate_app, release_application): Modify for manage link.
660 (report_change): New.
661 (scd_update_reader_status_file): Moved from command.c and
662 use APP list, instead of VREADER.
663 (initialize_module_command): Moved from command.c.
665 * scd/command.c (TEST_CARD_REMOVAL): Remove.
666 (IS_LOCKED): Simplify.
667 (vreader_table): Remove.
668 (vreader_slot, update_card_removed): Remove.
669 (do_reset): Call app_reset.
670 (get_current_reader): Remove.
671 (open_card): Add SCAN arg.
672 (cmd_serialno): No retry, since retry is done in lower layer in apdu.c.
673 No do_reset, since it is done in lower layer.
674 Add clearing card_removed flag.
675 (cmd_disconnect): Call apdu_disconnect.
676 (send_client_notifications): Modify for APP.
677 (update_reader_status_file): Remove.
679 scd: Simplify monitoring card removal.
680 + commit f9882d8336feea96e3b5e250e9093f8cca01e08b
681 * scd/apdu.c (struct reader_table_s): Remove any_status, last_status,
682 status, and change_counter field.
683 (new_reader_slot, dump_reader_status, ct_activate_card, open_ct_reader)
684 (connect_pcsc_card, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
685 (open_ccid_reader, apdu_reset): Follow the change.
686 (ct_dump_reader_status): Remove.
687 (apdu_get_status_internal, apdu_get_status): Remove CHANGED arg.
688 (apdu_connect): Follow the change.
689 * scd/command.c (struct vreader_s): Remove reset_failed, any, and
691 (cmd_getinfo, update_reader_status_file): Follow the change.
693 2016-12-27 NIIBE Yutaka <gniibe@fsij.org>
695 scd: Improve internal CCID driver.
696 + commit c7ec9c42246033e14ebad679d11f3b1fbeed23b7
697 * scd/ccid-driver.c (scan_or_find_usb_device): Fix return value.
698 Support device with multiple CCID interfaces. Fix the case with
699 READERNO. Support partial string match of "reader-port" like PC/SC
702 2016-12-23 NIIBE Yutaka <gniibe@fsij.org>
704 dirmngr: Fix for --disable-libdns usage.
705 + commit d26c51825e2255fe58305cbc1cd74fa43f80d93e
706 * dirmngr/dns-stuff.c (enable_recursive_resolver, set_dns_nameserver)
707 (reload_dns_stuff): Conditionalize with USE_LIBDNS.
708 (get_h_errno_as_gpg_error): Map HOST_NOT_FOUND to GPG_ERR_NO_NAME.
710 2016-12-22 Neal H. Walfield <neal@g10code.com>
712 tools: Show a clearer error message if a server doesn't support WKS.
713 + commit 1909e994cb87d6c6866a465f0c20a456d4df46cc
714 * tools/gpg-wks-client.c (command_send): If we fail to lookup the
715 submission address, print a better error message. If it is because
716 the corresponding file doesn't exist, provide the hint that the server
717 probably doesn't support WKS.
719 2016-12-22 Werner Koch <wk@gnupg.org>
721 wks: Let the client ignore missing policy flags.
722 + commit e917dfcd973a3ebbf5eb584e819ffa89f932bfef
723 * tools/gpg-wks-client.c (command_send): Ignore missing policy flags.
725 2016-12-22 NIIBE Yutaka <gniibe@fsij.org>
727 scd: Clean up internal API for APP.
728 + commit 8431f5a7e88e1f42d75c4a4b61f4aa9b35457204
729 * scd/app-common.h (app_readcert, app_readkey, app_setattr, app_sign,
730 app_auth, app_decipher, app_get_challenge, app_check_pin): Add CTRL as
732 * scd/app.c: Supply CTRL to lock_reader calls.
733 * scd/command.c (cmd_readcert, cmd_readkey, cmd_pksign, cmd_auth,
734 cmd_pkdecrypt, cmd_setattr, cmd_random, cmd_checkpin): Follow the
737 2016-12-21 Justus Winter <justus@g10code.com>
739 gpgscm: Guard use of union member.
740 + commit 6e96cdd41a0e55b672309431062f37c4a4a9f485
741 * tests/gpgscm/scheme.c (opexe_5): Check that we have a file port
742 before accessing filename. Fixes a crash on 32-bit architectures.
744 2016-12-20 Werner Koch <wk@gnupg.org>
746 tests: Avoid skipping exectool tests.
747 + commit 6204f8104fea42d706a68e77e2dc0bca4704bddc
748 * common/t-exectool.c (test_executing_true): Try also /usr/bin/true.
749 (test_executing_false): Try also /usr/bin/false.
751 2016-12-20 Justus Winter <justus@g10code.com>
753 tests: Add test suite for gpgsm.
754 + commit 36c14139285982def6ad942d4b2d8bef7ed4ea76
755 * configure.ac (AC_CONFIG_FILES): Add new file.
756 * tests/Makefile.am (SUBDIRS): Add new directory.
757 * tests/gpgsm/32100C27173EF6E9C4E9A25D3D69F86D37A4F939: New file.
758 * tests/gpgsm/Makefile.am: Likewise.
759 * tests/gpgsm/cert_dfn_pca01.der: Likewise.
760 * tests/gpgsm/cert_dfn_pca15.der: Likewise.
761 * tests/gpgsm/cert_g10code_test1.der: Likewise.
762 * tests/gpgsm/decrypt.scm: Likewise.
763 * tests/gpgsm/encrypt.scm: Likewise.
764 * tests/gpgsm/export.scm: Likewise.
765 * tests/gpgsm/gpgsm-defs.scm: Likewise.
766 * tests/gpgsm/import.scm: Likewise.
767 * tests/gpgsm/plain-1.cms.asc: Likewise.
768 * tests/gpgsm/plain-2.cms.asc: Likewise.
769 * tests/gpgsm/plain-3.cms.asc: Likewise.
770 * tests/gpgsm/plain-large.cms.asc: Likewise.
771 * tests/gpgsm/run-tests.scm: Likewise.
772 * tests/gpgsm/setup.scm: Likewise.
773 * tests/gpgsm/shell.scm: Likewise.
774 * tests/gpgsm/sign.scm: Likewise.
775 * tests/gpgsm/verify.scm: Likewise.
777 tests: Add macro managing ephemeral home directories.
778 + commit c067a012c764218b94ce8de2914615a895a75f3e
779 * tests/openpgp/defs.scm (with-ephemeral-home-directory): New macro.
780 * tests/openpgp/setup.scm: Use the new macro.
782 tests: Move argument parser.
783 + commit a30c0a6972cabde3858108e9020e900696094843
784 * tests/gpgme/gpgme-defs.scm (flag): Move...
785 * tests/gpgscm/tests.scm: ... over here.
787 tests: Add missing encrypted sample, cleanup samples handling.
788 + commit e2ed3c1597daf3188ddce049cc3c50113d56f1b9
789 * tests/openpgp/Makefile.am (TEST_FILES): Add new file.
790 * tests/openpgp/defs.scm (plain-files): Add 'plain-large'.
791 (all-files): New variable.
792 (create-sample-files): New function.
793 (create-legacy-gpghome): Use new function.
794 * tests/openpgp/plain-large.asc: New file.
796 2016-12-20 Werner Koch <wk@gnupg.org>
799 + commit ade32464a25fdb35cc0f39e46d303ceba68ea8f6
802 sm: Remove wrong example from gpgsm --help.
803 + commit 13465e708bb67e816e4fb3a37c117ad91dc6383f
804 * sm/gpgsm.c (opts): Remove group 303.
806 dirmngr: New option --resolver-timeout.
807 + commit 81c012787fabf734d9c952c6f18ecac21929d4d8
808 * dirmngr/dns-stuff.c (DEFAULT_TIMEOUT): New.
809 (opt_timeout): New var.
810 (set_dns_timeout): New.
811 (libdns_res_open): Set the default timeout.
812 (libdns_res_wait): Use configurable timeout.
813 (resolve_name_libdns): Ditto.
815 * dirmngr/dirmngr.c (oResolverTimeout): New const.
816 (opts): New option --resolver-timeout.
817 (parse_rereadable_options): Set that option.
818 (main) <aGPGConfList>: Add --nameserver and --resolver-timeout.
819 * tools/gpgconf-comp.c (gc_options_dirmngr): Add --resolver-timeout
822 * dirmngr/http.c (connect_server): Fix yesterday introduced bug in
825 2016-12-19 Werner Koch <wk@gnupg.org>
827 dirmngr: Fix problems with the getsrv function.
828 + commit af8b68fae39b1378c769e0de6ba6437ea1aac7e3
829 * dirmngr/dns-stuff.c (opt_debug, opt_verbose): New vars.
830 (set_dns_verbose): New func.
831 (libdns_switch_port_p): Add debug output.
832 (resolve_dns_name): Ditto.
833 (get_dns_cert): Ditto.
834 (get_dns_cname): Ditto.
835 (getsrv_libdns, getsrv_standard): Change SRVCOUNT to an unsigend int.
836 (getsrv): Rename to ...
837 ((get_dns_srv): this. Add arg R_COUNT and return an error. Add debug
839 * dirmngr/http.c: Adjust for chnaged getsrv().
840 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
841 * dirmngr/t-dns-stuff.c (main): Ditto. Call set_dns_verbose.
842 * dirmngr/dirmngr.c (parse_rereadable_options): Call set_dns_verbose.
844 build: Add target to sign the windows installer.
845 + commit 284ec54495dddc9eb0232e959cf994234097578a
846 * build-aux/speedo.mk (w32-sign-installer): New.
847 (AUTHENTICODE_KEY): New.
848 (installer-from-source): Use cp instead of mv. Factor code out to ...
849 (MKSWDB_commands): new macro.
850 (sign-installer): New.
852 2016-12-19 Justus Winter <justus@g10code.com>
854 tests: Use the common test framework for the migration tests.
855 + commit 65a0d6a24e6299682793f213a9d2bae17c5b12d9
856 * tests/migrations/Makefile.am (reqired_pgms): Add 'gpgscm'.
857 (TESTS_ENVIRONMENT): Populate.
858 (TESTS): Rename to 'XTESTS'.
859 (xcheck): New target.
860 (EXTRA_DIST): Add new files.
861 (CLEANFILES): Remove log files.
862 * tests/migrations/common.scm: Honor 'verbose', fix paths.
863 * tests/migrations/run-tests.scm: New file.
864 * tests/migrations/setup.scm: Likewise.
866 tests: Use sequential test runner if only one test is given.
867 + commit 0bf16d702665a269ce5ef724c927fbbd8f7f1ce9
868 * tests/openpgp/run-tests.scm: Use sequential test runner if only one
871 2016-12-19 Werner Koch <wk@gnupg.org>
873 dirmngr,w32: Hack around a select problem.
874 + commit d51499fdc522a696f23c6776c3ab248742f4e06a
875 * dirmngr/dns.c (FD_SETSIZE): Bump up to 1024.
876 (dns_poll): Return an error instead of hitting an assertion failure.
878 2016-12-19 Neal H. Walfield <neal@g10code.com>
880 test: Extend TOFU tests to also check the days with signatures.
881 + commit aec89a7297bae30f79a63fdc830530e82bab6170
882 * tests/openpgp/tofu.scm (GPGTIME): Define the "standard" base time.
883 (faketime): New function.
884 (days->seconds): Likewise.
886 (check-counts): Also check the number of expected days with signatures
887 and encryptions. Update callers. Extend tests.
889 2016-12-19 Justus Winter <justus@g10code.com>
891 tests: New test for --delete-[secret-]keys.
892 + commit a1afc450e182af02ad5e6f6ba79e9dc4332ca2bc
893 * tests/openpgp/Makefile.am (XTESTS): Add new test.
894 * tests/openpgp/defs.scm (keys): New variable.
895 (have-public-key?): New function.
896 (have-secret-key?): Likewise.
897 (have-secret-key-file?): Likewise.
898 * tests/openpgp/delete-keys.scm: New file.
899 * tests/openpgp/quick-key-manipulation.scm: Move the accessors to
902 gpgscm: Change associativity of ::.
903 + commit a45dc0849da0d944ec8c759bc8e3e733b1eb0079
904 * tests/gpgscm/scheme.c (mk_atom): Change associativity of the ::
905 infix-operator. This makes it possible to naturally express accessing
906 nested structures (e.g. a::b::c).
908 gpgscm: Display location when assertions fail.
909 + commit 3949cbd1128585c9b810713aeffaa1455fb5aed9
910 * tests/gpgscm/lib.scm (assert): Use location information if
913 gpgscm: Make exception handling more robust.
914 + commit df00745d6eed7034b218a0c482a46d975425798a
915 * tests/gpgscm/init.scm (throw'): Check that args is a list.
917 2016-12-19 Andre Heinecke <aheinecke@intevation.de>
919 speedo,w32: Use nsExec::ExecToLog to avoid popups.
920 + commit 026bbf0d5ee4510967e5f1dd3db2dee4687b0612
921 * build-aux/speedo/w32/inst.nsi: Use ExecToLog instead of
924 2016-12-19 Werner Koch <wk@gnupg.org>
926 Remove unused debug flags and add "dns" and "network".
927 + commit e384405b6e251629fb36bcbba4f5f9ac15a39d10
928 * g10/options.h (DBG_CARD_IO_VALUE, DBG_CARD_IO): Remove.
929 * g10/gpg.c (debug_flags): Remove "cardio".
930 * agent/agent.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
931 * agent/gpg-agent.c (debug_flags): Remove "command".
932 * scd/scdaemon.h (DBG_COMMAND_VALUE, DBG_COMMAND): Remove.
933 * scd/scdaemon.c (debug_flags): Remove "command".
934 * dirmngr/dirmngr.h (DBG_DNS_VALUE, DBG_DNS): New.
935 (DBG_NETWORK_VALUE, DNG_NETWORK): New.
936 * dirmngr/dirmngr.c (debug_flags): Add "dns" and "network".
938 2016-12-17 Werner Koch <wk@gnupg.org>
940 dirmngr: Fix setup of libdns for W32.
941 + commit e77b924fec1082faae48cdd2ff8474874a22bdf7
942 * configure.ac (DNSLIB) {W32]: Add -liphlpapi.
943 * dirmngr/dns-stuff.c [W32]: Include iphlpapi.h and define
945 (libdns_init) [W32]: Use GetNetworkParams to get the nameserver.
946 * dirmngr/t-dns-stuff.c (init_sockets): New.
949 2016-12-16 Werner Koch <wk@gnupg.org>
951 dirmngr: Auto-switch from Tor port to Torbrowser port.
952 + commit 024dbd7162fc1a7694176ebad3c21ee3ea67c024
953 * dirmngr/dns-stuff.c (libdns_tor_port): New var.
954 (set_dns_nameserver): Clear that var.
955 (libdns_init): Init var to the default port.
956 (libdns_switch_port_p): New func.
957 (resolve_dns_name): Use function to switch the port
958 (get_dns_cert): Ditto.
960 (get_dns_cname): Ditto.
962 dirmngr: Use one context for all libdns queries.
963 + commit c4e8a3194d6b92f596a6483e486c645de7d2ddd1
964 * dirmngr/dns-stuff.c (libdns_reinit_pending): New var.
965 (enable_recursive_resolver): Set var.
966 (set_dns_nameserver): Ditto.
967 (libdns_init): Avoid double initialization.
968 (libdns_deinit): New.
969 (reload_dns_stuff): New.
970 (libdns_res_open): Act upon LIBDNS_REINIT_PENDING.
971 * dirmngr/t-dns-stuff.c (main): Call reload_dns_stuff to release
973 * dirmngr/dirmngr.c (cleanup): Ditto.
974 (dirmngr_sighup_action): Call reload_dns_stuff to set
975 LIBDNS_REINIT_PENDING.
977 dirmngr: Pass Tor credentials to libdns.
978 + commit ddb48086833f8b86f0f0d69b21a23f245090ea7a
979 * dirmngr/dns-stuff.c (tor_credentials): Replace by ...
980 (tor_socks_user, tor_socks_password): new vars.
981 (enable_dns_tormode): Set these new vars.
982 (libdns_res_open): Tell libdns the socks credentials.
984 dirmngr: Factor common libdns code out.
985 + commit 59d3c3e4baffff52548fb5d1766ebf02dd8e1bec
986 * dirmngr/dns-stuff.c (libdns_res_open): New. Replace all libdns_init
987 and dns-res_open by a call to this func.
988 (libdns_res_submit): New wrapper. Replace all dns_res_sumbit calls.
989 (libdns_res_wait): New function.
990 (resolve_name_libdns): Replace loop by libdns_res_wait.
991 (get_dns_cert_libdns): Ditto.
992 (getsrv_libdns): Ditto.
994 gpg,sm: A few more option for --gpgconf-list.
995 + commit 48671f295ff233765689b6a73021f83ab845a28f
996 * g10/gpg.c (gpgconf_list): Add --compliance and
997 --default-new-key-algo.
998 (parse_compliance_option):
999 * sm/gpgsm.c (main) <gpgconf-list>: Add --enable-crl-checks.
1001 gpgconf: New command --apply-profile.
1002 + commit 76cd64a5baf6057b199c01f7999b327f1f4a87bc
1003 * tools/gpgconf.c (aApplyProfile): New.
1004 (opts): New command --apply-profile.
1005 (main): Implement that command.
1006 * tools/gpgconf-comp.c (option_check_validity): Add arg VERBATIM.
1007 (change_options_program): Ditto.
1008 (change_one_value): Ditto.
1009 (gc_component_change_options): Ditto.
1010 (gc_apply_profile): New.
1012 gpgconf: Fix --apply-defaults.
1013 + commit 6ca3c28da46873416822bf6ab7893db6c56a49d6
1014 * tools/gpgconf-comp.c: Skip pinentry also in process_all mode.
1016 2016-12-16 Justus Winter <justus@g10code.com>
1018 doc: Mention extra information in pinentry status lines.
1019 + commit 12a5265afa7f87ad92fb571e0882e57b07a3c267
1020 * doc/DETAILS: Mention that 'PINENTRY_LAUNCHED may carry extra
1023 sm: Fix agent communication.
1024 + commit 3c7d6a1769ed6cc90d86247a814a0dce341512a3
1025 * sm/call-agent.c (gpgsm_agent_pksign): Fix passing the control handle
1027 (gpgsm_scd_pksign): Likewise.
1028 (gpgsm_agent_reaedkey): Likewise.
1030 2016-12-16 Neal H. Walfield <neal@g10code.com>
1033 + commit a165fa09be4bfbeb97ebe25d551a9045255e5028
1034 * doc/gpg.texi: Remove comment about options being parsed in-order.
1037 g10: Use total days, not total messages to compute TOFU validity.
1038 + commit 4a2c210b75d4266e289712e73a42c286aabb07f0
1039 * g10/tofu.c (write_stats_status): Use the number of days with
1040 signatures / encryptions to compute the validity, not the total number
1041 of signatures / encryptions.
1042 (BASIC_TRUST_THRESHOLD): Adjust given the new semantics.
1043 (FULL_TRUST_THRESHOLD): Likewise.
1045 g10: Extend TOFU_STATS to emit <sign-days> and <encyrption-days>
1046 + commit 94f6b9010d2e80a75ccbb21426faf0b30195f1ab
1047 * doc/DETAILS: Add SIGN-DAYS and ENCRYPT-DAYS to the TOFU_STATS status
1049 * g10/tofu.c (write_stats_status): Take additional parameters
1050 signature_days and encryption_days. Update callers. Include them in
1051 the tfs record and TOFU status lines.
1052 (show_statistics): Compute the number of days on which we saw a
1053 message signed by FINGERPRINT, and the number of days on which we
1054 encrypted a message to it.
1056 2016-12-16 Justus Winter <justus@g10code.com>
1058 doc: Improve section on unattended key generation.
1059 + commit ca02a8b78fca8815388a859962584d75169ae3ee
1060 * doc/gpg.texi: Improve the subsection on unattended key generation by
1061 suggesting the quick key manipulation interface as an alternative, and
1062 by suggesting alternatives to '%pubring' and '%secring'. Simplify
1063 examples accordingly.
1065 doc: Add documentation for programmatic use of GnuPG.
1066 + commit 116a78eb869c4c589228bd0d6deff7c7a9f92dfb
1067 * doc/gpg.texi: New subsections on programmatic use of GnuPG,
1068 ephemeral home directories, and the quick key manipulation interface.
1070 2016-12-16 Neal H. Walfield <neal@g10code.com>
1072 g10: On a TOFU conflict, write the conflicting keys to the status fd.
1073 + commit fea9da4a8afab6f3a49cdbbcc4a7a21f27a6d3e8
1074 * g10/tofu.c (ask_about_binding): Emit all of the conflicting keys and
1075 their statistics on the status fd.
1076 (get_trust): Likewise, if we don't call ask_about_binding.
1077 (show_statistics): Have the caller pass the policy as returned by
1078 get_policy. Add argument only_status_fd and don't emit any output on
1079 stdout if it is set. Update callers.
1081 g10: Add missing space.
1082 + commit 6caa2d0ba2bfc0ae93878738b0169483f6b6b462
1083 * g10/tofu.c (tofu_register_encryption): Add missing space.
1085 2016-12-15 Justus Winter <justus@g10code.com>
1087 g10: Avoid translating simple error messages.
1088 + commit 6b16b02109f4bb5b934e456667ff4c0ba7bc85fd
1089 * g10/gpg.c (main): Avoid translating arguments to 'wrong_args'.
1091 g10: Rework the --quick-* interface.
1092 + commit 41ad04d403de05abe54280d2a84aa51a603194e4
1093 * g10/gpg.c (opts): Rename options.
1094 (main): Update errors.
1095 * doc/gpg.texi: Update accordingly.
1097 g10: Rename 'card-edit' to 'edit-card'.
1098 + commit 6e4396723e9e5865015ebf7033628fa3919cf7d1
1099 * g10/gpg.c (opts): Rename option.
1100 * g10/call-agent.c (agent_scd_learn): Update comment.
1101 * doc/gpg.texi: Update accordingly.
1103 g10: Spell out --desig-revoke.
1104 + commit 3c691097ca144e9a1d4c9185636c59a848bec85c
1105 * g10/gpg.c (opts): Rename option.
1106 * doc/gpg.texi: Update accordingly.
1108 g10: Shorten unreasonably long option.
1109 + commit c252627c6fd93bc305c5a5a2f013c3de2d45c6b0
1110 * g10/gpg.c (opts): Rename 'generate-revocation-certificate' to
1111 'generate-revocation'.
1112 * doc/gpg.texi: Update accordingly.
1113 * po: Update translations.
1115 doc: Add aliases of all changed options.
1116 + commit bc6b76ef26f31c54ae1c29c761b8ecc437fcf565
1117 * doc/gpg.texi: Add the old version of every option that was updated
1118 with the last change set.
1119 * doc/gpgsm.texi: Likewise.
1121 2016-12-15 Werner Koch <wk@gnupg.org>
1123 dirmngr: First patch to re-enable Tor support.
1124 + commit 2d1760ffe2ff46b77bd0f38db8b781d9564ae999
1125 * dirmngr/dns-stuff.c (SOCKS_PORT, TOR_PORT, TOR_PORT2): New
1127 (libdns_init): Start adding tor support.
1128 (resolve_name_libdns): Pass socks hosts to dns_res_open.
1129 (get_dns_cert_libdns): Ditto.
1130 (getsrv_libdns): Ditto.
1131 (get_dns_cname_libdns): Ditto.
1133 2016-12-15 Justus Winter <justus@g10code.com>
1135 build: Fix distcheck.
1136 + commit 0e2055c7d30d987a7a74923a7080b80cce470601
1137 * tests/gpgme/Makefile.am (CLEANFILES): New variable, clean test logs.
1139 2016-12-14 Justus Winter <justus@g10code.com>
1141 tests: Reuse GPGME's tests.
1142 + commit 948cca9c99e701a1668bb5fd6e25f07e35381b4d
1143 * configure.ac (AC_CONFIG_FILES): Add new Makefile.
1144 * tests/Makefile.am (SUBDIRS): Add new directory.
1145 * tests/gpgme/Makefile.am: New file.
1146 * tests/gpgme/gpgme-defs.scm: Likewise.
1147 * tests/gpgme/run-tests.scm: Likewise.
1148 * tests/gpgme/setup.scm: Likewise.
1149 * tests/gpgme/wrap.scm: Likewise.
1151 common: Support locating components in the build tree.
1152 + commit ca1e9749bfb069d90aa44efbf6f3d611b6104c1b
1153 * common/homedir.c (gnupg_build_directory): New variable.
1154 (gnupg_module_name_called): Likewise.
1155 (gnupg_set_builddir): New function.
1156 (gnupg_set_builddir_from_env): Likewise.
1157 (gnupg_module_name): Support locating components in the build tree.
1158 * common/util.h (gnupg_set_builddir): New prototype.
1159 * tests/openpgp/defs.scm (tools): Drop 'gpg and 'gpg-agent.
1160 (tool): Rename to 'tool-hardcoded.
1161 (gpg-conf): New function, with accessors for the results.
1162 (gpg-components): New variable.
1163 (tool): New function.
1164 * tools/gpgconf.c (enum cmd_and_opt_values): New key.
1165 (opts): New option '--build-prefix'.
1166 (main): Handle new option.
1168 tests: Rework check for trust models.
1169 + commit 55dc81125abc43cd3cc8db951fc3b8a81767942d
1170 * tests/openpgp/defs.scm (gpg-has-option?): New function.
1171 (have-opt-always-trust): Use a simpler test for that option. This way
1172 that is less distracting when we run the tests with verbose=3.
1174 2016-12-14 Werner Koch <wk@gnupg.org>
1176 dirmngr: New configure option --disable-libdns.
1177 + commit d34a2bb410c7c770d26430d69ff77bd83fc407f1
1178 * configure.ac: Add option --disable-libdns
1179 (USE_LIBDNS): New ac_subst and am_conditional.
1180 (USE_C99_CFLAGS): Set only if libdns is used.
1181 * dirmngr/Makefile.am (dirmngr_SOURCES): Move dns.c and dns.h to ...
1182 (dirmngr_SOURCES) [USE_LIBDNS0: here.
1183 (t_common_src): Ditto.
1184 * dirmngr/dirmngr.c (oRecursiveResolver): New constant.
1185 (opts): New option "--recursive-resolver".
1186 (parse_rereadable_options): Set option.
1187 * dirmngr/t-dns-stuff.c (main): Add option --recursive-resolver.
1188 * dirmngr/server.c (cmd_getinfo): Depend output of "dnsinfo" on the
1190 * dirmngr/dns-stuff.c: Include dns.h only if USE_DNSLIB is defined.
1191 Also build and call dnslib functions only if USE_DNSLIB is defined.
1192 (recursive_resolver): New var.
1193 (enable_recursive_resolver): New func.
1194 (recursive_resolver_p): New func.
1196 dirmngr: Implement CERT record lookup via libdns.
1197 + commit 3c2a7918eac024b5e1258ea9b272b4e8a1f1af43
1198 * dirmngr/dns-stuff.c (get_dns_cert_libdns): New.
1199 (get_dns_cert_standard): Fix URL malloc checking.
1201 dirmngr: Implement CNAME and SRV record lookup via libdns.
1202 + commit 4c13e4e3debe0e55e86ae29c095f2d86eb0a6f11
1203 * dirmngr/dns-stuff.c (dns_free): New macro.
1204 (libdns): Move var to the top.
1205 (libdns_error_to_gpg_error): Map error codes to the new gpg-error
1207 (resolve_name_libdns): Restructure code.
1208 (getsrv_libdns): New.
1209 (get_dns_cname_libdns): New.
1211 dirmngr: Fix bugs in the standard resolver code.
1212 + commit 4a030f682ef48542ed324b28207f2c2b4847dbef
1213 * dirmngr/dns-stuff.c: Include dirmngr-err.h to set the correct error
1215 (get_h_errno_as_gpg_error): New.
1216 (get_dns_cert_libdns): Fix error code.
1217 (getsrv_libdns): Add arg R_COUNT and return an error code.
1218 (getsrv_standard): Ditto. Fix handling of res_query errors and
1219 provide the correct size for the return buffer.
1220 (getsrv): Adjust for changed worker functions.
1221 (get_dns_cname_standard): Fix handling of res_query errors and provide
1222 the correct size for the return buffer.
1224 dirmngr: Require a c99 compiler.
1225 + commit 392966aed9b2a5e1456c671e5d13b561a27e4bb2
1226 * configure.ac (USE_C99_CFLAGS): New ac_subst. Set to -std=gnu99 for
1228 * dirmngr/Makefile.am (AM_CFLAGS): Add USE_C99_CFLAGS.
1229 (t_http_CFLAGS): Ditto.
1230 (t_ldap_parse_uri_CFLAGS): Ditto.
1231 (t_dns_stuff_CFLAGS): Ditto.
1233 doc: Add license notes for libdns.
1234 + commit d84f5a88233c073a82fd47728574b001343784ee
1235 * COPYING.other: New.
1236 * Makefile.am (EXTRA_DIST): Add it.
1237 * AUTHORS: Add info on libdns.
1238 * build-aux/speedo/w32/pkg-copyright.txt: Add license terms.
1240 common: Add replacements for error codes from gpg-error 1.26.
1241 + commit aae68a3ccd3d9870162b3ffd49eae08d5bf1b1e1
1244 2016-12-14 Justus Winter <justus@g10code.com>
1246 dirmngr: New libdns snapshot.
1247 + commit f8ab2c4c70ad15c4b2e45492606fb94ddaccdac7
1250 dirmngr: Add basic libdns support.
1251 + commit f6acd0426453d3a18536ca69d63baa0d971082ef
1252 * dirmngr/dns.c: New file.
1253 * dirmngr/dns.h: New file.
1254 * dirmngr/Makefile.am (dirmngr_SOURCES): Add new files.
1255 * dirmngr/dns-stuff.c: Include dns.h.xxx use libdns
1256 (libdns): New global var for the libdns state.
1257 (libdns_error_to_gpg_error): New.
1259 (resolve_name_libdns): New.
1260 (get_dns_cert_libdns): New stub.
1261 (getsrv_libdns): New stub.
1262 (get_dns_cname_libdns): New stub.
1264 dirmngr,build: Remove support for ADNS.
1265 + commit 2e734a3ce159de8fb60df2bd5d454f98ca710717
1266 * autogen.rc: Remove '--with-adns' argument.
1267 * configure.ac: Remove check for ADNS.
1268 * dirmngr/dns-stuff.c: Remove all code that uses ADNS.
1269 * dirmngr/server.c (cmd_getinfo): Update status line.
1270 * doc/dirmngr.texi: Do not mention ADNS.
1272 2016-12-14 NIIBE Yutaka <gniibe@fsij.org>
1274 dirmngr: Improve ntbtls support.
1275 + commit 57aa42ce9b28bc17ac24491d595766fbf80762af
1276 * dirmngr/http.c [HTTP_USE_NTBTLS] (close_tls_session): Release.
1277 (send_request): Call ntbtls_set_transport.
1278 (cookie_read, cookie_write): Implement.
1279 (cookie_close): Add initial implementation for ntbtls.
1281 2016-12-13 Justus Winter <justus@g10code.com>
1283 g10,sm: Spell out --passwd.
1284 + commit c1c35fb887061de05661f3411eda97546e1a52d7
1285 * g10/gpg.c (opts): Spell out option.
1286 * sm/gpgsm.c (opts): Likewise.
1287 * doc/gpg.texi: Update accordingly.
1288 * doc/gpgsm.texi: Likewise.
1290 g10: Spell out --gen-revoke.
1291 + commit ec1bd3ae685e95563e38077ab3c1655fd55dea07
1292 * g10/gpg.c (opts): Spell out option.
1293 * doc/gpg.texi: Update accordingly.
1294 * po: Update translations.
1296 g10: Spell out --full-gen-key.
1297 + commit 09163a6390bd9713f3a7946de739765b30ef6f64
1298 * g10/gpg.c (opts): Spell out option.
1300 * g10/keygen.c (generate_keypair): Likewise.
1301 * doc/gpg.texi: Update accordingly.
1303 g10,sm: Spell out --gen-key.
1304 + commit 892c827e72b1396e3b58e2f8869cc48328a2b59c
1305 * g10/gpg.c (opts): Spell out option.
1306 * sm/gpgsm.c (opts): Likewise.
1307 * doc/gpg.texi: Update accordingly.
1309 g10,sm: Spell out --check-sigs.
1310 + commit 9147737f1c6894f38b855f3cf38cd33122a1ae2a
1311 * g10/gpg.c (opts): Spell out option.
1312 * sm/gpgsm.c (opts): Likewise.
1313 * doc/gpg.texi: Update accordingly.
1315 g10,sm: Spell out --list-sigs.
1316 + commit a6d6e4afe488bc05ee730e85da6a9505c6cd245a
1317 * g10/gpg.c (opts): Spell out option.
1318 * sm/gpgsm.c (opts): Likewise.
1319 * doc/gpg.texi: Update accordingly.
1321 g10: Hyphenate --clearsign.
1322 + commit 04754ce3a704b1e6d38cb9a28dacf2821dc3f15f
1323 * g10/gpg.c (opts): Hyphenate option.
1324 * doc/gpg.texi: Update accordingly.
1325 * po: Update translations.
1326 * tests/openpgp: Update tests.
1328 g10: Spell out --recv-keys.
1329 + commit ca598152345b40f3a236227dfc63ae04ddf777d7
1330 * g10/gpg.c (opts): Spell out option.
1331 * doc/gpg.texi: Update accordingly.
1333 g10: Create expiring keys in quick key generation mode.
1334 + commit dd3dde07a9a46130ac01d849f8edf0566e44f11f
1335 * doc/gpg.texi: Document that fact.
1336 * g10/keygen.c (quick_generate_keypair): Use a default value.
1337 * tests/openpgp/quick-key-manipulation.scm: Test that fact.
1339 gpgscm: Print failed and skipped tests.
1340 + commit 429891a704057437517cb0b45d11392b40fa1ee8
1341 * tests/gpgscm/tests.scm (test-pool::report): Print failed and skipped
1344 gpgscm: Generalize the test runner.
1345 + commit d43dabf4607d3bcfc217eb9aea34d093f5aa698f
1346 * tests/gpgscm/tests.scm (test::scm) Add explicit name argument.
1347 (test::binary): Likewise. Also, add missing unquote.
1348 * tests/openpgp/run-tests.scm: Adapt accordingly.
1350 gpgscm: Move the test runner to the Scheme library.
1351 + commit 1a176b92a8aad42056ed2c4e1f49a5feb40770cf
1352 * tests/openpgp/run-tests.scm: Move most of the code...
1353 * tests/gpgscm/tests.scm: ... here.
1355 tests: Refactor test runner.
1356 + commit fe36e63763c9c595bb057ac50160d2aff7c7a63f
1357 * tests/openpgp/run-tests.scm (locate-test): New function.
1358 (test): Factor-out the code starting the child process.
1359 (test::binary): New function.
1361 gpgscm: Improve library functions.
1362 + commit e3876f16eb237bdeb9f79aca2e7db5e9e2d86686
1363 * tests/gpgscm/tests.scm (absolute-path?): New function.
1364 (canonical-path): Use the new function.
1365 * tests/gpgscm/lib.scm (string-split-pln): New function.
1366 (string-indexp, string-splitp): Likewise.
1367 (string-splitn): Express using the above function.
1368 (string-ltrim, string-rtrim): Fix corner case.
1369 (list->string-reversed): New function.
1370 (read-line): Fix performance.
1372 2016-12-12 Werner Koch <wk@gnupg.org>
1374 gpg: Fix memory leak in ecc key generation.
1375 + commit 98433c70431dfbde99b0e89416856d1eef9ebc88
1376 * g10/keygen.c (ecckey_from_sexp): Release curve.
1378 gpg: Do not use a fixed string for --gpgconf-list:default_pubkey_algo.
1379 + commit f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1
1380 * g10/keygen.c (get_default_pubkey_algo): New.
1381 (parse_key_parameter_string): Use it.
1382 * g10/gpg.c (gpgconf_list): Take value from new function.
1384 gpg: Fix algo string parsing of --quick-addkey.
1385 + commit 522e6f798db9f3f3a9e0123fdc389a86ac69dedf
1386 * g10/keygen.c (parse_key_parameter_string): Fix handling of PART==1.
1387 (parse_key_parameter_part): Use default key size if only "rsa", "dsa",
1390 2016-12-09 Justus Winter <justus@g10code.com>
1392 g10: Create keys that expire in simple key generation mode.
1393 + commit d568a1561642ed9b7b7b6282b86c56786d10a956
1394 * g10/keygen.c (default_expiration_interval): New variable.
1395 (generate_keypair): Use the new default.
1397 tests: Add a test for '--quick-addkey'.
1398 + commit b778d8deedf344c8116362633925b8153c7f1bf1
1399 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-addkey'.
1401 tests: New test using all available compression algorithms.
1402 + commit 59f1562c25119a4fe27411e6350f2149d6147148
1403 * tests/openpgp/Makefile.am (XTESTS): Add new test.
1404 * tests/openpgp/compression.scm: New file.
1405 * tests/openpgp/defs.scm (all-compression-algos): New variable.
1407 g10: List compression algorithms using human-readable names.
1408 + commit c8100fc0faadf8ba35e4df32b4760cc975e3a83d
1409 * g10/gpg.c (list_config): List all enabled compression algorithms
1410 under the key 'compressname'.
1412 g10: Fix memory leak.
1413 + commit 3de9bad359e28ced4a2539e411d222ffd82a4a62
1414 * g10/sign.c (do_sign): Release old signature data.
1416 2016-12-08 Werner Koch <wk@gnupg.org>
1418 common: Skip the Byte Order Mark in conf files.
1419 + commit 5c7d58222834793629a30248e72b6ea96e832dc4
1420 * common/argparse.c (optfile_parse): Detect and skip the UTF-8 BOM.
1422 Fix 2 compiler warnings.
1423 + commit cb4c7abb774e2d95806d8b0ec6ea5cd130c1b5b8
1424 * dirmngr/loadswdb.c: Set ERR on malloc failure.
1425 * g10/passphrase.c (passphrase_to_dek): Initialize all fields of
1428 wks: New option --status-fd for gpg-wks-client.
1429 + commit 4a04277ad112e0966296133795f93cf6a3daa48e
1430 * tools/wks-util.c: Include status.h.
1431 (statusfp): New global var.
1432 (wks_set_status_fd): New func.
1433 (wks_write_status): New func.
1434 * tools/gpg-wks-client.c: Include status.h.
1435 (oStatusFD): New constant.
1436 (opts): New option --status-fd.
1437 (parse_arguments): Handle that option.
1438 (main): Return STATUS_SUCCESS or STATUS_FAILURE.
1440 2016-12-08 Justus Winter <justus@g10code.com>
1442 gpgscm: Better error reporting.
1443 + commit e7429b1ced0c69fa7901f888f8dc25f00fc346a4
1444 * tests/gpgscm/ffi.scm: Move the customized exception handling and
1446 * tests/gpgscm/init.scm: ... here.
1447 (throw): Record the current history.
1448 (throw'): New function that is history-aware.
1449 (rethrow): New function.
1450 (*error-hook*): Use the new throw'.
1451 * tests/gpgscm/main.c (load): Fix error handling.
1452 (main): Save and use the 'sc->retcode' as exit code.
1453 * tests/gpgscm/repl.scm (repl): Print call history.
1454 * tests/gpgscm/scheme.c (_Error_1): Make a snapshot of the history,
1455 use it to provide a accurate location of the expression causing the
1456 error at runtime, and hand the history trace to the '*error-hook*'.
1457 (opexe_5): Tag all lists at parse time with the current location.
1458 * tests/gpgscm/tests.scm: Update calls to 'throw', use 'rethrow'.
1460 gpgscm: Keep a history of calls for error messages.
1461 + commit 404e8a4136bbbab39df7dd5119841e131998cc15
1462 * tests/gpgscm/init.scm (vm-history-print): New function.
1463 * tests/gpgscm/opdefines.h: New opcodes 'CALLSTACK_POP', 'APPLY_CODE',
1465 * tests/gpgscm/scheme-private.h (struct history): New definition.
1466 (struct scheme): New field 'history'.
1467 * tests/gpgscm/scheme.c (gc): Mark objects in the history.
1468 (history_free): New function.
1469 (history_init): Likewise.
1470 (history_mark): Likewise.
1471 (add_mod): New macro.
1472 (sub_mod): Likewise.
1473 (tailstack_clear): New function.
1474 (callstack_pop): Likewise.
1475 (callstack_push): Likewise.
1476 (tailstack_push): Likewise.
1477 (tailstack_flatten): Likewise.
1478 (callstack_flatten): Likewise.
1479 (history_flatten): Likewise.
1480 (opexe_0): New variable 'callsite', keep track of the expression if it
1481 is a call, implement the new opcodes, record function applications in
1483 (opexe_6): Implement new opcode.
1484 (scheme_init_custom_alloc): Initialize history.
1485 (scheme_deinit): Free history.
1486 * tests/gpgscm/scheme.h (USE_HISTORY): New macro.
1488 gpgscm: Add flag TAIL_CONTEXT.
1489 + commit 01256694f006405c54bc2adef63ef0c8f07da9ee
1490 * tests/gpgscm/scheme.c (S_FLAG_TAIL_CONTEXT): New macro. This flag
1491 indicates that the interpreter is evaluating an expression in a tail
1492 context (see R5RS, section 3.5).
1493 (opexe_0): Clear and set the flag according to the rules layed out in
1495 (opexe_1): Likewise.
1497 gpgscm: Add flags to the interpreter.
1498 + commit a4a69163d9d7e4d9f3339eb5cda0afb947180b26
1499 * tests/gpgscm/scheme-private.h (struct scheme): Add field 'flags'.
1500 * tests/gpgscm/scheme.c (S_OP_MASK): New macro.
1501 (S_FLAG_MASK, s_set_flag, s_clear_flag, s_get_flag): Likewise.
1502 (_s_return): Unpack the encoded opcode and flags.
1503 (s_save): Encode the flags along with the opcode. Use normal
1504 integers to encode the result.
1505 (scheme_init_custom_alloc): Initialize 'op' and 'flags'.
1507 gpgscm: Implement tags.
1508 + commit fcf5aea44627def43425d03881e20902e7c0331e
1509 * tests/gpgscm/opdefines.h: Add opcodes to create and retrieve tags.
1510 * tests/gpgscm/scheme.c (T_TAGGED): New macro.
1511 (mk_tagged_value): New function.
1512 (has_tag): Likewise.
1513 (get_tag): Likewise.
1515 (opexe_4): Implement new opcodes.
1516 * tests/gpgscm/scheme.h (USE_TAGS): New macro.
1518 2016-12-08 Werner Koch <wk@gnupg.org>
1520 gpg: Fix the fix out-of-bounds access.
1521 + commit a75790b74095828f967c012eff7033f570d93077
1522 * g10/tofu.c (build_conflict_set): Revert to int* and fix calloc.
1524 wks: New option --check for gpg-wks-client.
1525 + commit d8c5e8ccfdb53cc327f7520fc7badc31d0c9c666
1526 * tools/call-dirmngr.c (wkd_get_key): New.
1527 * tools/gpg-wks-client.c (aCheck): New constant.
1528 (opts): New option "--check".
1529 (main): Call command_check.
1530 (command_check): New.
1532 tools: Move a function from gpg-wks-server to wks-util.c.
1533 + commit c3138decd77d788906885b638b344d0d1faf32c0
1534 * tools/gpg-wks-server.c (list_key_status_cb): Remove.
1535 (list_key): Move to ...
1536 * tools/wks-util.c (wks_list_key): here and rename. Add new args
1537 R_FPR and R_MBOXES and remove the CTX.
1538 (list_key_status_cb): New.
1539 * tools/wks-util.c: Include ccparray.h, exectool.h, and mbox-util.h.
1540 * tools/gpg-wks-server.c (process_new_key): Replace list_key by
1542 (check_and_publish): Ditto.
1544 2016-12-08 Justus Winter <justus@g10code.com>
1546 gpgscm: Generalize 'for-each-p'.
1547 + commit a2bedc8ac6fcdcd1de0a9fa3d540006481387dff
1548 * tests/gpgscm/tests.scm (for-each-p): Generalize to N lists like
1550 (for-each-p'): Likewise.
1552 g10: Fix out-of-bounds access.
1553 + commit 3b5b94ceab7c0ed9501c5cf54b4efa17fcd7300a
1554 * g10/tofu.c (build_conflict_set): Use 'char'.
1556 2016-12-08 Werner Koch <wk@gnupg.org>
1558 tools: Fix use of uninitialized var in mime-maker.
1559 + commit dd03667ab1062bba3b9413c3f8007d63302d1b31
1560 * tools/mime-maker.c (ensure_part): Make sure to set R_PARENT on
1562 (add_missing_headers): Ensure that ERR is set on success.
1564 * tools/wks-util.c (wks_parse_policy): Fix indentation.
1566 tools: Fix memleak in gpgconf.
1567 + commit b265969154741bf9f93167699fe7ddda1d485265
1568 * tools/gpgconf.c (main): Free SOCKETDIR.
1570 gpg: Fix portability problem.
1571 + commit c3008bffac68b6f31e9ae9bad837cdce5de7c0db
1572 * g10/tofu.c (build_conflict_set): Replace variable dynamic array.
1574 2016-12-07 Justus Winter <justus@g10code.com>
1576 tests: Add test for '--quick-set-expire'.
1577 + commit dec2ae31a46a0f41886c7ad228865cc573f2dea9
1578 * tests/openpgp/quick-key-manipulation.scm: Test '--quick-set-expire'.
1580 tests: Improve quick key manipulation test.
1581 + commit 92df40a3a2ae471fbba00d6d7040230404931fd4
1582 * tests/openpgp/quick-key-manipulation.scm: Do not update the trust
1583 database, rather be more specific when filtering the user ids.
1585 2016-12-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
1587 agent: Respect --enable-large-secmem.
1588 + commit 8636ad5023a1bdc527add40a5508f8c5b7c35221
1589 * agent/gpg-agent.c (main): Initialize secmem to the configured buffer
1592 2016-12-06 Justus Winter <justus@g10code.com>
1594 tests: Add test importing a revocation certificate.
1595 + commit e352ead43fbb0180e1f1c71bf1a000d1954eb777
1596 * tests/openpgp/Makefile.am (XTESTS): Add new test.
1597 * tests/openpgp/import-revocation-certificate.scm: New file.
1598 * tests/openpgp/samplemsgs/revoke-2D727CC768697734.asc: Likewise.
1600 tests: Rename 'error' to 'fail'.
1601 + commit 5b5d881f47c82f320abf440c20b7a1bac078a987
1602 * tests/gpgscm/tests.scm (error): Rename to 'fail'. 'error' is a
1603 primitive function (an opcode) of the TinySCHEME vm, and 'error' is
1604 also defined by R6RS. Better avoid redefining that. Fix all call
1606 * tests/openpgp/4gb-packet.scm: Adapt.
1607 * tests/openpgp/decrypt-multifile.scm: Likewise.
1608 * tests/openpgp/ecc.scm: Likewise.
1609 * tests/openpgp/export.scm: Likewise.
1610 * tests/openpgp/gpgtar.scm: Likewise.
1611 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
1612 * tests/openpgp/import.scm: Likewise.
1613 * tests/openpgp/issue2015.scm: Likewise.
1614 * tests/openpgp/issue2346.scm: Likewise.
1615 * tests/openpgp/issue2419.scm: Likewise.
1616 * tests/openpgp/key-selection.scm: Likewise.
1617 * tests/openpgp/mds.scm: Likewise.
1618 * tests/openpgp/multisig.scm: Likewise.
1619 * tests/openpgp/setup.scm: Likewise.
1620 * tests/openpgp/signencrypt.scm: Likewise.
1621 * tests/openpgp/ssh-import.scm: Likewise.
1622 * tests/openpgp/tofu.scm: Likewise.
1623 * tests/openpgp/verify.scm: Likewise.
1625 tests: Remove debugging display.
1626 + commit 89ac071eb4c7539e98c7dc17e11f57c620b54e90
1627 * tests/openpgp/tofu.scm: Remove debugging display.
1629 2016-12-06 Neal H. Walfield <neal@g10code.com>
1631 tests: Update distributed files.
1632 + commit 87972fdef2cd853fb97624d0765686674a19e3c4
1633 * tests/openpgp/Makefile.am (TEST_FILES): Remove tofu-keys.asc,
1634 tofu-keys-secret.asc, tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and
1635 tofu-EE37CF96-1.txt. Add tofu/conflicting/1C005AF3.gpg,
1636 tofu/conflicting/1C005AF3-secret.gpg, tofu/conflicting/1C005AF3-1.txt,
1637 tofu/conflicting/1C005AF3-2.txt, tofu/conflicting/1C005AF3-3.txt,
1638 tofu/conflicting/1C005AF3-4.txt, tofu/conflicting/1C005AF3-5.txt,
1639 tofu/conflicting/B662E42F.gpg, tofu/conflicting/B662E42F-secret.gpg,
1640 tofu/conflicting/B662E42F-1.txt, tofu/conflicting/B662E42F-2.txt,
1641 tofu/conflicting/B662E42F-3.txt, tofu/conflicting/B662E42F-4.txt,
1642 tofu/conflicting/B662E42F-5.txt, tofu/conflicting/BE04EB2B.gpg,
1643 tofu/conflicting/BE04EB2B-secret.gpg, tofu/conflicting/BE04EB2B-1.txt,
1644 tofu/conflicting/BE04EB2B-2.txt, tofu/conflicting/BE04EB2B-3.txt,
1645 tofu/conflicting/BE04EB2B-4.txt, tofu/conflicting/BE04EB2B-5.txt and
1646 tofu/conflicting/README.
1648 doc: Improve the text in the gpg manual.
1649 + commit 7572d270fcda1614648c6f08d711d5096ffebbe6
1650 * doc/gpg.texi: Improve the text.
1652 g10: Avoid a memory leak.
1653 + commit 6102099985c1b82b6c0bba0464c1f913cc673e96
1654 * g10/gpg.c (main): Free KB when we're done with it.
1656 tests: Change (interactive-shell) to start an interactive shell.
1657 + commit db6d8cfdc118131f497596ef1ffc121949377754
1658 * tests/gpgscm/tests.scm (interactive-shell): Start an interactive
1661 tests: Check the signature count in the TOFU TFS record.
1662 + commit 17c717d7c92d9a52101fea7e396fc133322a8786
1663 * tests/openpgp/tofu.scm: Check the signature count in the TOFU TFS
1666 tests: Replace data used by the TOFU conflict test.
1667 + commit d5b18d6c55d65e8df2dd112651e3b9b3d9e6e27a
1668 * tests/openpgp/tofu-2183839A-1.txt: Remove file.
1669 * tests/openpgp/tofu-BC15C85A-1.txt: Remove file.
1670 * tests/openpgp/tofu-EE37CF96-1.txt: Remove file.
1671 * tests/openpgp/tofu-keys-secret.asc: Remove file.
1672 * tests/openpgp/tofu-keys.asc: Remove file.
1673 * tests/openpgp/tofu/conflicting/1C005AF3.gpg: New file.
1674 * tests/openpgp/tofu/conflicting/1C005AF3-secret.gpg: New file.
1675 * tests/openpgp/tofu/conflicting/1C005AF3-1.txt: New file.
1676 * tests/openpgp/tofu/conflicting/1C005AF3-2.txt: New file.
1677 * tests/openpgp/tofu/conflicting/1C005AF3-3.txt: New file.
1678 * tests/openpgp/tofu/conflicting/1C005AF3-4.txt: New file.
1679 * tests/openpgp/tofu/conflicting/1C005AF3-5.txt: New file.
1680 * tests/openpgp/tofu/conflicting/B662E42F.gpg: New file.
1681 * tests/openpgp/tofu/conflicting/B662E42F-secret.gpg: New file.
1682 * tests/openpgp/tofu/conflicting/B662E42F-1.txt: New file.
1683 * tests/openpgp/tofu/conflicting/B662E42F-2.txt: New file.
1684 * tests/openpgp/tofu/conflicting/B662E42F-3.txt: New file.
1685 * tests/openpgp/tofu/conflicting/B662E42F-4.txt: New file.
1686 * tests/openpgp/tofu/conflicting/B662E42F-5.txt: New file.
1687 * tests/openpgp/tofu/conflicting/BE04EB2B.gpg: New file.
1688 * tests/openpgp/tofu/conflicting/BE04EB2B-secret.gpg: New file.
1689 * tests/openpgp/tofu/conflicting/BE04EB2B-1.txt: New file.
1690 * tests/openpgp/tofu/conflicting/BE04EB2B-2.txt: New file.
1691 * tests/openpgp/tofu/conflicting/BE04EB2B-3.txt: New file.
1692 * tests/openpgp/tofu/conflicting/BE04EB2B-4.txt: New file.
1693 * tests/openpgp/tofu/conflicting/BE04EB2B-5.txt: New file.
1694 * tests/openpgp/tofu/conflicting/README: New file.
1695 * tests/openpgp/tofu.scm: Update accordingly.
1697 g10: Remove dead code.
1698 + commit bd9ebe1404c1395edd0e029023a9e780c90f6d73
1699 * g10/tofu.c (tofu_set_policy_by_keyid): Remove function.
1701 2016-12-05 Werner Koch <wk@gnupg.org>
1703 gpg: New option --quick-set-expire.
1704 + commit 41b3d0975de65d1654f5e37c626d7c9b7c9a7a4d
1705 * g10/gpg.c (aQuickSetExpire): New.
1706 (opts): New option --quick-set-expire.
1707 (main): Implement option.
1708 * g10/keyedit.c (menu_expire): Add args FORCE_MAINKEY and
1709 NEWEXPIRATION. Change semantics of the return value. Change caller.
1710 (keyedit_quick_set_expire): New.
1712 2016-12-05 Justus Winter <justus@g10code.com>
1714 tests: New test for '--enarmor' and '--dearmor'.
1715 + commit fae4d06b0ccaa9803e0c0da56c327b0bcfffcac5
1716 * tests/openpgp/Makefile.am (XTESTS): Add new test.
1717 * tests/openpgp/enarmor.scm: New file.
1719 2016-12-03 Werner Koch <wk@gnupg.org>
1721 gpg: Fix error code arg in ERRSIG status line.
1722 + commit ef10c348bffc7dad19e1832bebc453755d209420
1723 * g10/mainproc.c (check_sig_and_print): Use gpg_err_code to return an
1724 error code in ERRSIG.
1726 2016-12-02 Werner Koch <wk@gnupg.org>
1728 gpg: New option --default-new-key-algo.
1729 + commit ce29272e24e7b718b8fca9b84bc728e65f3dea24
1730 * common/openpgp-oid.c (openpgp_is_curve_supported): Add optional arg
1731 R_ALGO and change all callers.
1732 * common/util.h (GPG_ERR_UNKNOWN_FLAG): New error code.
1733 * g10/options.h (struct opt): Add field DEF_NEW_KEY_ALGO.
1734 * g10/gpg.c (oDefaultNewKeyAlgo): New enum.
1735 (opts): New option "--default-new-key-algo".
1736 (main): Set the option.
1737 * g10/keygen.c: Remove DEFAULT_STD_ FUTURE_STD_ constants and replace
1739 (DEFAULT_STD_KEY_PARAM, FUTURE_STD_KEY_PARAM): new string constants.
1740 (get_keysize_range): Remove arg R_DEF and return that value instead.
1742 (gen_rsa): Use get_keysize_range instead of the removed
1743 DEFAULT_STD_KEYSIZE.
1744 (parse_key_parameter_part): New function.
1745 (parse_key_parameter_string): New function.
1746 (quick_generate_keypair): Refactor using parse_key_parameter_string.
1747 (generate_keypair): Ditto.
1748 (parse_algo_usage_expire): Ditto.
1750 2016-12-02 Neal H. Walfield <neal@g10code.com>
1752 g10: Improve debugging output.
1753 + commit cd532bb7b866e104304e2443cc942799c385daa5
1754 * g10/tofu.c (string_to_long): Improve debugging output.
1755 (string_to_ulong): Likewise.
1757 2016-12-01 Neal H. Walfield <neal@g10code.com>
1759 g10: In the TOFU module, make strings easier to translate.
1760 + commit bd1a1d8582abcfd7f29812942fa70f88d0aec7cf
1761 * g10/tofu.c: Remove dead code.
1762 (time_ago_str): Simplify implementation since we only want the most
1764 (format_conflict_msg_part1): Use ngettext.
1765 (ask_about_binding): Likewise and only emit full sentences.
1766 (show_statistics): Likewise.
1768 2016-12-01 Werner Koch <wk@gnupg.org>
1770 dirmngr: Add option --standard-resolver.
1771 + commit 304566d3327ef0a85188cce3109d46d5ff47177a
1772 * dirmngr/dirmngr.c (oStandardResolver): New constant.
1773 (opts): New option --standard-resolver.
1774 (parse_rereadable_options): Set option.
1775 * dirmngr/dns-stuff.c: Refactor all code to support the new option.
1776 (standard_resolver): New var.
1777 (enable_standard_resolver, standard_resolver_p): New func.
1778 * dirmngr/http.c (connect_server): Remove USE_DNS_SRV build
1780 * dirmngr/ks-engine-hkp.c (map_host): Ditto.
1781 * dirmngr/server.c (cmd_getinfo) <dnsinfo>: Take care of new option
1782 * configure.ac (HAVE_ADNS_IF_TORMODE): Remove var ADNSLIB. ac_define
1783 USE_ADNS in the adns checking code. Remove options --disable-dns-srv
1784 and --disable-dns-cert. Always look for the system resolver. Print
1785 warning if no system resolver was found.
1786 (USE_DNS_CERT, USE_DNS_SRV): Remove ac_defines.
1787 (HAVE_SYSTEM_RESOLVER): New ac_define.
1788 (USE_DNS_SRV): Remove am_conditional; not used anyway.
1790 gpg: Let only Dirmngr decide whether CERT is supported.
1791 + commit 86efc3ee53abaf1e22b53c1b360c51829e476115
1792 * g10/getkey.c (parse_auto_key_locate): Do not build parts depending
1795 2016-12-01 Justus Winter <justus@g10code.com>
1797 tests,build: Fix distcheck.
1798 + commit fbdfe6a514a95fb46f2b811a13709024e2baf252
1799 * tests/openpgp/Makefile.am (sample_msgs): Add messages required for
1800 the new test 'verify-multifile.scm'.
1802 tests: Add test for '--verify --multifile'.
1803 + commit 12af8e84a32df728462da09a00a8bec24a487720
1804 * tests/openpgp/Makefile.am (XTESTS): Add new test.
1805 * tests/openpgp/verify-multifile.scm: New file.
1807 2016-11-30 Justus Winter <justus@g10code.com>
1809 tests: Add test for '--encrypt --multifile'.
1810 + commit 3c0569e99498c7470ebdb639b4c5ae829af92761
1811 * tests/openpgp/Makefile.am (XTESTS): Add new test.
1812 * tests/openpgp/encrypt-multifile.scm: New file.
1814 2016-11-29 Werner Koch <wk@gnupg.org>
1816 agent,dirmngr: Tiny restructuring.
1817 + commit aa6ab9e0bc67fe9ce5601047e84ea4a875e8eb64
1818 * agent/gpg-agent.c (handle_connections): Add a comment.
1819 * dirmngr/dirmngr.c (main): Move assuan_sock_close of the listening
1821 (handle_connections): here. Add a comment why we keep the
1822 listening socket open during a shutdown.
1824 agent,dirmngr: Handle corner case in shutdown mode.
1825 + commit 854adc8ae19749e44cb79dfa0c5401f48012b13a
1826 * agent/gpg-agent.c (handle_connections): Keep on selecting on the
1827 inotify fd even when a shutdown is pending.
1828 * dirmngr/dirmngr.c (handle_connections): Ditto. Also simplifyy the
1829 use of the HAVE_INOTIFY_INIT cpp conditional.
1831 gpgsm: Allow decryption with a card returning a PKCS#1 stripped key.
1832 + commit 8489b12211098ad58c008cfb74b5cb91849cf68d
1833 * sm/decrypt.c (prepare_decryption): Handle a 16 byte session key.
1835 agent,w32: Initialize nPth in server mode.
1836 + commit 81d6e98cdf4caa3aa92398fc3b8bed397b40f58d
1837 * agent/gpg-agent.c (main) [W32]: Call initialize_modules in server
1840 gpg: Make --decrypt with output '-&nnnn' work.
1841 + commit a5910e00ace882b8a17169faf4607163ab454af9
1842 * g10/plaintext.c (get_output_file): Check and open special filename
1843 before falling back to stdout.
1845 gpg,sm: Merge the two versions of check_special_filename.
1846 + commit 60b4982836a00ef6b2a97d16f735b3f6b74dce62
1847 * sm/gpgsm.c (check_special_filename): Move to ..
1848 * common/sysutils.c (check_special_filename): here. Add arg
1850 (allow_special_filenames): New local var.
1851 (enable_special_filenames): New public functions.
1852 * sm/gpgsm.c (allow_special_filenames): Remove var.
1853 (main): Call enable_special_filenames instead of setting the var.
1854 (open_read, open_es_fread, open_es_fwrite): Call
1855 check_special_filename with 0 for NOTRANSLATE.
1856 * common/iobuf.c (special_names_enabled): Remove var.
1857 (iobuf_enable_special_filenames): Remove func.
1858 (check_special_filename): Remove func.
1859 (iobuf_is_pipe_filename): Call new version of the function with
1862 * g10/gpg.c (main): Call enable_special_filenames instead of
1863 iobuf_enable_special_filenames.
1864 * g10/gpgv.c (main): Ditto.
1866 2016-11-29 Justus Winter <justus@g10code.com>
1868 g10: Fix memory leak.
1869 + commit 52385a2ba1bf7e53f500ffde5fd34f28e69cf76b
1870 * g10/decrypt.c (decrypt_messages): Properly decrease the reference
1871 count of the armor filters after pushing them.
1873 tools,build: Build WKS tools against libintl.
1874 + commit 9fb5e9c14557f7567cbc7c50b9881b7d7bfa2f12
1875 * tools/Makefile.am (gpg_wks_server_LDADD): Link against libintl.
1876 (gpg_wks_client_LDADD): Likewise.
1878 2016-11-29 Neal H. Walfield <neal@g10code.com>
1880 Improve some comments.
1881 + commit 522f74f7e377135cf098b6b0b9b35284c1dfc963
1884 g10: Extend TOFU_STATS to always show the validity.
1885 + commit 2f27cb12e30c9f6e780354eecc3ff0039ed52c63
1886 * doc/DETAILS (TOFU_STATS): Rename the VALIDITY field to SUMMARY. Add
1887 a new field called VALIDITY.
1888 * g10/tofu.c (write_stats_status): Update output accordingly.
1890 2016-11-29 Justus Winter <justus@g10code.com>
1892 tests: Add test for '--decrypt --multifile'.
1893 + commit bde4fddadc75ad6071e3fc6c0980905de14c03cb
1894 * tests/openpgp/Makefile.am (XTESTS): Add new test.
1895 * tests/openpgp/decrypt-multifile.scm: New file.
1897 gpgscm: Avoid truncating pointers.
1898 + commit e062bc4da8062b822ee85096d9adfcbca8dcb56a
1899 * tests/gpgscm/scheme.c (_alloc_cellseg): Avoid truncating pointers on
1900 systems where sizeof(unsigned long) < sizeof(void *).
1902 2016-11-29 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
1904 dirmngr: Lazily launch ldap reaper thread.
1905 + commit f6728d13e8e544dbd4b9351ed981613e5504293f
1906 * dirmngr/dirmngr.c (main): Avoid calling ldap_wrapper_launch_thread()
1908 * dirmngr/ldap-wrapper.c (ldap_wrapper): Call
1909 ldap_wrapper_launch_thread() just in time (before any attempt to use
1910 an ldap subprocess).
1912 2016-11-29 Werner Koch <wk@gnupg.org>
1914 build: Remove more keywords from the generated ChangeLog.
1915 + commit ecc126a7cef371e3b88e65715ba37fb77e92ea0f
1916 * build-aux/gitlog-to-changelog (parse_amend_file): Generalize keyword
1919 2016-11-28 Justus Winter <justus@g10code.com>
1921 tests: Add test for the ssh key export.
1922 + commit 47b8b9e2ce5af7fba117ae0b00e10bec414dcfb0
1923 * tests/openpgp/Makefile.am (XTESTS): Add new test.
1924 (sample_keys): Add new files.
1925 * tests/openpgp/samplekeys/authenticate-only.pub.asc: New file.
1926 * tests/openpgp/samplekeys/authenticate-only.sec.asc: Likewise.
1927 * tests/openpgp/ssh-export.scm: Likewise.
1929 g10: Fix iteration over getkey results.
1930 + commit 4db9a425644dccaf81b51ebc97b32a9cc21941a4
1931 * g10/getkey.c (getkey_next): Only ask 'lookup' for the exact match if
1932 our caller requested the key. Fixes a crash in 'lookup'.
1934 tests: Rename ssh test.
1935 + commit cc1d21342659a7def5d662d0547579f9e0d3b109
1936 * tests/openpgp/ssh.scm: Rename to 'ssh-import.scm'.
1937 * tests/openpgp/Makefile (XTESTS): Likewise.
1939 2016-11-25 NIIBE Yutaka <gniibe@fsij.org>
1941 scd: Support OpenPGP card V3 for RSA.
1942 + commit b89e63e5c326af71470124b410e6429cbd2b5c43
1943 * scd/app-openpgp.c (struct app_local_s): Remove max_cmd_data and
1944 max_rsp_data fields as Extended Capabilities bits are different.
1945 (get_cached_data) Use extcap.max_certlen_3.
1946 (get_one_do): Don't use exmode=1.
1947 (determine_rsa_response): New.
1948 (get_public_key, do_genkey): Call determine_rsa_response.
1949 (do_sign): Use keyattr[0].rsa.n_bits / 8, instead of max_rsp_data.
1950 (do_auth): Use keyattr[2].rsa.n_bits / 8, instead of max_rsp_data.
1951 (do_decipher): Likewise with Use keyattr[1].rsa.n_bits / 8.
1952 (show_caps): Remove max_cmd_data and max_rsp_data.
1953 (app_select_openpgp): Likewise.
1955 2016-11-23 Justus Winter <justus@g10code.com>
1957 gpgscm: Make 'reverse' compatible with 'reverse_in_place'.
1958 + commit 005d326d19ba28005182205f25edc4f7499ec0b5
1959 * tests/gpgscm/scheme.c (reverse): Update prototype, add terminator
1961 (opexe_4): Update callsite.
1963 gpgscm: Clean sweeped cells.
1964 + commit 3fb9954c43425775a517060959dad01fa00238f7
1965 * tests/gpgscm/scheme.c (gc): Zero typeflag and car of free cells.
1967 gpgscm: Fix initialization of 'sink'.
1968 + commit 7856e3efaad7614979bc0b91379a0a4dcbc739d5
1969 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Also initialize
1972 2016-11-23 Neal H. Walfield <neal@g10code.com>
1974 g10: Avoid gratuitously loading a keyblock when it is already available.
1975 + commit 03a65a53231cc3132a50a1871e81a512c44da169
1976 * g10/trust.c (get_validity): Add new, optional parameter KB. Only
1977 load the keyblock if KB is NULL. Update callers.
1978 (get_validity): Likewise.
1979 * g10/trustdb.c (tdb_get_validity_core): Likewise.
1981 2016-11-22 Neal H. Walfield <neal@g10code.com>
1983 g10: Use es_fopen instead of open.
1984 + commit bfeafe2d3f9bbaa7f11f3ad870a446141c038b0d
1985 * g10/tofu.c: Don't include <utime.h>, <fcntl.h> or <unistd.h>.
1986 (busy_handler): Replace use of open with es_fopen.
1988 g10: If the set of UTKs changes, invalidate any changed policies.
1989 + commit 44c17bcb003a3330f595a6ab144e8439b7b630cb
1990 * g10/trustdb.c (tdb_utks): New function.
1991 * g10/tofu.c (check_utks): New function.
1993 * tests/openpgp/tofu.scm: Modify test to check the effective policy of
1994 keys whose effective policy changes when we change the set of UTKs.
1996 2016-11-22 NIIBE Yutaka <gniibe@fsij.org>
1998 scd: Fix receive buffer size.
1999 + commit 5c2db9dedfe9dbb14ffec24751ca23a69cead94e
2000 * scd/apdu.c (send_le): Fix the size, adding two for status
2003 2016-11-22 Justus Winter <justus@g10code.com>
2006 + commit a3b258d1d15953816e0567511ecc527a4ccdd626
2007 * tests/gpgscm/scheme.c (opexe_0): Reduce code duplication.
2009 gpgscm: Fix property lists.
2010 + commit d8df80427238cdbb9ae0f6dae8bc7e9c24f6e265
2011 * tests/gpgscm/opdefines.h (put, get): Check arguments. Also rename
2012 to 'set-symbol-property' and 'symbol-property', the names used by
2013 Guile, because put and get are too unspecific.
2014 * tests/gpgscm/scheme.c (hasprop): Only symbols have property lists.
2015 (get_property): New function.
2016 (set_property): Likewise.
2017 (opexe_4): Use the new functions.
2019 gpgscm: Fix installation of error handler.
2020 + commit 7b4e2ea274ace22245264f1759279390d0300a62
2021 * tests/gpgscm/ffi.scm: Set '*error-hook*' again so that the
2022 interpreter will use our function.
2024 gpgscm: Use a static pool of cells for small integers.
2025 + commit 66834eb838a8892d088f6b7332084a64d9f15008
2026 * tests/gpgscm/scheme-private.h (struct scheme): New fields for the
2027 static integer cells.
2028 * tests/gpgscm/scheme.c (_alloc_cellseg): New function.
2029 (alloc_cellseg): Use the new function.
2030 (MAX_SMALL_INTEGER): New macro.
2031 (initialize_small_integers): New function.
2032 (mk_small_integer): Likewise.
2033 (mk_integer): Return a small integer if possible.
2034 (_s_return): Do not free 'op' if it is a small integer.
2035 (s_save): Use a small integer to box the opcode.
2036 (scheme_init_custom_alloc): Initialize small integers.
2037 (scheme_deinit): Free chunk of small integers.
2038 * tests/gpgscm/scheme.h (USE_SMALL_INTEGERS): New macro.
2040 tests: Delay querying the avaliable algorithms.
2041 + commit 893a3f7fb46021961914a8acdf1292a80e3eba93
2042 * tests/openpgp/defs.scm: Set verbosity earlier, turn 'all-*-algos'
2044 * tests/openpgp/conventional-mdc.scm: Force the promises.
2045 * tests/openpgp/conventional.scm: Likewise.
2046 * tests/openpgp/encrypt-dsa.scm: Likewise.
2047 * tests/openpgp/encrypt.scm: Likewise.
2048 * tests/openpgp/gpgtar.scm: Likewise.
2049 * tests/openpgp/sigs.scm: Likewise.
2051 g10: Fix memory leak.
2052 + commit 6ce14a805f1da687dfb8535db57730d5c7403db7
2053 * g10/tofu.c (tofu_notice_key_changed): Remove spurious duplicate call
2054 to 'hexfingerprint'.
2056 2016-11-21 Neal H. Walfield <neal@g10code.com>
2058 g10: Cache the effective policy. Recompute it when required.
2059 + commit 037f9de09298a31026ea2ab5fbd4a599b11cc34f
2060 * g10/tofu.c (initdb): Add column effective_policy to the bindings
2062 (record_binding): New parameters effective_policy and set_conflict.
2063 Save the effective policy. If SET_CONFLICT is set, then set conflict
2064 according to CONFLICT. Otherwise, preserve the current value of
2065 conflict. Update callers.
2066 (get_trust): Don't compute the effective policy here...
2067 (get_policy): ... do it here, if it was not cached. Take new
2068 parameters, PK, the public key, and NOW, the time that the operation
2069 started. Update callers.
2070 (show_statistics): New parameter PK. Pass it to get_policy. Update
2072 (tofu_notice_key_changed): New function.
2073 * g10/gpgv.c (tofu_notice_key_changed): New stub.
2074 * g10/import.c (import_revoke_cert): Take additional argument CTRL.
2075 Pass it to keydb_update_keyblock.
2076 * g10/keydb.c (keydb_update_keyblock): Take additional argument CTRL.
2078 [USE_TOFU]: Call tofu_notice_key_changed.
2079 * g10/test-stubs.c (tofu_notice_key_changed): New stub.
2080 * tests/openpgp/tofu.scm: Assume that manually setting a binding's
2081 policy to auto does not cause the tofu engine to forget about any
2084 g10: Correctly parameterize ngettext.
2085 + commit 182efc5b5d20ac0d43501a22f349a23dc06a27a4
2086 * g10/tofu.c (ask_about_binding): Correctly parameterize ngettext.
2088 g10: Don't use the same variable for multiple SQL compiled statements.
2089 + commit 7142b293c870d73ce0146bfb90e6a556e0079650
2090 * g10/tofu.c (struct tofu_dbs_s): Remove unused field
2091 record_binding_update2. Replace register_insert with
2092 register_signature and register_encryption.
2093 (tofu_register_signature): Don't use dbs->s.register_insert, but
2094 dbs->s.register_signature.
2095 (tofu_register_encryption): Don't use dbs->s.register_insert, but
2096 dbs->s.register_encryption.
2098 g10: Add a convenience function for checking if a key is a primary key.
2099 + commit 91a0483c5db8ee4510981448a705981ee1cce199
2100 * g10/keydb.h (pk_is_primary): New function.
2101 * g10/tofu.c (get_trust): Use it.
2102 (tofu_register_signature): Likewise.
2103 (tofu_register_encryption): Likewise.
2104 (tofu_set_policy): Likewise.
2105 (tofu_get_policy): Likewise.
2107 2016-11-21 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2109 doc: Ship example gpg-agent-browser.socket in examples/systemd-user/.
2110 + commit 0540cfbee455b197edd89b602a4b47ebf0be8588
2111 * doc/Makefile.am: Ship gpg-agent-browser.socket alongside the other
2112 systemd user service example files.
2114 2016-11-21 NIIBE Yutaka <gniibe@fsij.org>
2116 agent: Fix npth + daemon mode problem.
2117 + commit 9a707a223a3d45ccf245dee7989ca144e4e6bb49
2118 * agent/gpg-agent.c (main): Remove duplicated initialization in daemon
2121 2016-11-18 Werner Koch <wk@gnupg.org>
2124 + commit 0a641ad25d8c3b91dc32bb9f3f1ae49ae539a4f7
2127 2016-11-18 Ineiev <ineiev@gnu.org>
2129 po: Update Russian translation.
2130 + commit 11aaa9c6d4ed3e47de45b4aee925ab1065120988
2133 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
2135 g10: Fix flags to open for lock of ToFU.
2136 + commit 1c0b140cccfb884c6d07785c3284b9df06dccd3c
2137 * g10/tofu.c (busy_handler): Fix the flags and utime is not needed.
2139 2016-11-18 Werner Koch <wk@gnupg.org>
2141 dirmngr: Use a longer timer tick interval.
2142 + commit 833eef974ad4721b9b3e247bae9c890476a936ce
2143 * dirmngr/dirmngr.c (TIMERTICK_INTERVAL): Always use 60 seconds like
2144 we did for WindowsCE.
2146 2016-11-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2148 dirmngr: More w32 system daemon cleanup.
2149 + commit b3a917201207898059c048dd101344765201b03c
2150 * dirmngr/dirmngr.c (handle_tick): Remove w32 tests for
2151 shutdown_pending; no longer needed.
2153 2016-11-18 NIIBE Yutaka <gniibe@fsij.org>
2155 g10: Fix creating a lock for ToFU.
2156 + commit b2e1b17efa952afcf7aeec8b15e9d0088dba587a
2157 * g10/tofu.c (busy_handler): Add third argument which is mandatory for
2160 scd: Don't limit to ST-2xxx for PC/SC.
2161 + commit b6066ab18a67195817babaf9eccf896c2b3c7b0e
2162 * scd/apdu.c (pcsc_vendor_specific_init): Only check vender ID.
2164 2016-11-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2166 dirmngr: Use a default keyserver if none is explicitly set.
2167 + commit 8fb482252436b3b4b0b33663d95d1d17188ad1d9
2168 * configure.ac: Define DIRMNGR_DEFAULT_KEYSERVER.
2169 * dirmngr/server.c (ensure_keyserver): Use it if no keyservers are set.
2170 * doc/dirmngr.texi: Document this behavior.
2172 dirmngr: Add system CAs if no hkp-cacert is given.
2173 + commit 7c1613d41566f7d8db116790087de323621205fe
2174 * dirmngr/dirmngr.c (http_session_new): If the user isn't talking to
2175 the HKPS pool, and they have not specified any hkp-cacert, then we
2176 should default to the system CAs, rather than nothing.
2177 * doc/dirmngr.texi: Document choice of CAs.
2179 dirmngr: Register hkp-cacert even if the file doesn't exist yet.
2180 + commit c4e02a3b7ad6ee1da6bfc439921378bdbd5c029c
2181 * dirmngr/dirmngr.c (parse_readable_options): If we're unable to turn
2182 an argument for hkp-cacert into an absolute filename, terminate
2184 * dirmngr/http.c (http_register_tls_ca): Show a warning if file is not
2185 immediately accessible, but register it anyway.
2187 2016-11-17 Justus Winter <justus@g10code.com>
2189 gpgscm: Re-enable the garbage collector in case of errors.
2190 + commit 4f189325a409bb08f7a8eabfac3f4579288cf5c5
2191 * tests/gpgscm/scheme.c (opexe_0): Enable gc before calling 'Error_1'.
2194 + commit fc53a4d06eaf891143ab4efec9caffe31ebc2bc0
2195 * tests/gpgscm/scheme.c (type_to_string): Fix string.
2197 2016-11-17 Werner Koch <wk@gnupg.org>
2199 dirmngr: Auto-sownload the swdb.lst.
2200 + commit bd91f92ace09263e3a91177f2a1644379baeb08a
2201 * dirmngr/dirmngr.h (struct opt): Add field allow_version_check.
2202 * dirmngr/dirmngr.c (oAllowVersionCheck): New.
2203 (opts): Add --allow-version-check.
2204 (network_activity_seen): New variable.
2205 (parse_rereadable_options): Set opt.allow_version_check.
2206 (main) <aGPGConfList>: Do not anymore set the no change flag for
2207 Windows. Add allow-version-check.
2208 (netactivity_action): Set network_activity_seen.
2209 (housekeeping_thread): Call dirmngr_load_swdb.
2210 * tools/gpgconf-comp.c (gc_options_dirmngr): Add allow-version-check.
2211 Make "use-tor" available at Basic level.
2213 dirmngr: Improve downloading of swdb.lst.
2214 + commit c45ca316a54665915ae08399484db271566db7c0
2215 * dirmngr/loadswdb.c (time_of_saved_swdb): Aslo return the "verified"
2217 (dirmngr_load_swdb): Avoid unnecessary disk or network access witout
2218 FORCE. Do not update swdb.lst if it did not change.
2220 gpgconf: Change the displayed names of the components.
2221 + commit d8da5bc50b856db3445435780311c9f8e52a5144
2224 2016-11-16 Werner Koch <wk@gnupg.org>
2226 dirmngr: Add command to only load the swdb.
2227 + commit 52c10a280af6ce06eb1732ff35b095f2b8d24b9f
2228 * dirmngr/loadswdb.c: New.
2229 * dirmngr/Makefile.am (dirmngr_SOURCES): Add that file.
2230 * dirmngr/server.c: Remove includes cpparray.h and exectool.h.
2231 (cmd_loadswdb): New.
2232 (parse_version_number,parse_version_string): Remove.
2233 (my_mktmpdir, cmp_version): Remove.
2234 (fetch_into_tmpdir): Remove.
2235 (struct verify_swdb_parm_s): Remove.
2236 (verify_swdb_status_cb): Remove.
2237 (cmd_versioncheck): Remove.
2238 (register_commands): Register LOADSWDB. Remove VERSIONCHECK.
2240 scd,dirmngr: Keep the standard fds when daemonizing.
2241 + commit 4839e6d002a8ad1f7d3260792c3c9641e258f342
2242 * dirmngr/dirmngr.c (main): Before calling setsid do not close the
2243 standard fds but connect them to /dev/null.
2244 * scd/scdaemon.c (main): Ditto. Noet that the old test for a log
2245 stream was even reverted.
2247 common: Rename keybox_file_rename to gnupg_rename_file.
2248 + commit c4506a3f15bba5d257cb4c6738800c5e00ecc9a2
2249 * kbx/keybox-util.c (keybox_file_rename): Rename to ...
2250 * common/sysutils.c (gnupg_rename_file): this. Change all callers.
2252 wks: Always build gpg-wks-client.
2253 + commit c564790df723beef031d83802bd7830737bd330a
2254 * tools/Makefile.am (gpg_wks_client): Remove macro.
2255 (libexec_PROGRAMS): Add gpg-wks-client.
2257 gpg: New option --override-session-key-fd.
2258 + commit 43bfaf2c5417ede621c0a07721952ea549a7a139
2259 * g10/gpg.c (oOverrideSessionKeyFD): New.
2260 (opts): Add option --override-session-key-fd.
2261 (main): Handle that option.
2262 (read_sessionkey_from_fd): New.
2264 2016-11-15 Werner Koch <wk@gnupg.org>
2266 gpgv: New option --enable-special-filenames.
2267 + commit 500e594c2da530e69a63fc1a40d173458682fa0e
2268 * g10/gpgv.c (oEnableSpecialFilenames): New.
2269 (opts): Add option --enable-special-filenames.
2270 (main): Implement that option.
2272 gpg: Add new compliance mode "de-vs".
2273 + commit b47603a0ac24902c5bb000f8ef27cfb99aceeb81
2274 * g10/options.h (CO_DE_VS): New.
2275 (GNUPG): Also allow CO_DE_VS.
2276 * g10/gpg.c (oDE_VS): New.
2277 (parse_compliance_option): Add "de-vs".
2278 (set_compliance_option): Set "de-vs".
2279 * g10/misc.c (compliance_option_string): Return a description string.
2280 (compliance_failure): Ditto.
2281 * g10/keygen.c (ask_algo): Take care of CO_DE_VS.
2282 (get_keysize_range): Ditto.
2283 (ask_curve): Add new field to CURVES and trun flags into bit flags.
2284 Allow only Brainpool curves in CO_DE_VS mode.
2286 gpg: Use usual free semantics for packet structure free functions.
2287 + commit 8ea3b4c4102dc67ed83d4419b7171e422fc01047
2288 * g10/free-packet.c (free_attributes): Turn function into a nop for a
2290 (free_user_id): Ditto.
2291 (free_compressed): Ditto.
2292 (free_encrypted): Ditto.
2293 (free_plaintext): Ditto.
2294 (release_public_key_parts): Avoid extra check for NULL.
2295 * g10/getkey.c (get_best_pubkey_byname): Ditto.
2297 2016-11-15 Justus Winter <justus@g10code.com>
2299 g10: Optimize key iteration.
2300 + commit 12834e84aca9d74800245f0f2f2e6b5123e76173
2301 * g10/getkey.c (get_best_pubkey_byname): Use the node returned by
2302 'getkey_next' instead of doing another lookup.
2304 g10: Fix memory leak.
2305 + commit d20107f6da094edd782947abb357abae5129a12c
2306 * g10/getkey.c (finish_lookup): Clarify that we do not return a
2308 (lookup): Clarify the relation between RET_KEYBLOCK and RET_FOUND_KEY.
2309 Check arguments. Actually release the node if it is not returned.
2311 g10: Fix iteration over getkey results.
2312 + commit 1d03cc77e1706f7da653153ad4b58c61e4fd2573
2313 * g10/getkey.c (getkey_next): Fix invocation of 'lookup'. If we want
2314 to use RET_FOUND_KEY, RET_KEYBLOCK must be valid.
2316 g10: Fix use-after-free.
2317 + commit bd60742925414e0ef2a497df827c1913ea211a44
2318 * g10/getkey.c (pubkey_cmp): Make a copy of the user id.
2319 (get_best_pubkey_byname): Free the user ids.
2321 2016-11-15 Werner Koch <wk@gnupg.org>
2323 sm: New stub option --compliance.
2324 + commit 26c7c1d72c5f2acb3edb58d610c09a635c87bdbf
2325 * sm/gpgsm.c (oCompliance): New.
2326 (opts): Add "--compliance".
2327 (main): Implement as stub.
2329 2016-11-15 NIIBE Yutaka <gniibe@fsij.org>
2331 g10: Fix memory leak.
2332 + commit 1f7639ebbe58af1b581b0be7809da9ee55482992
2333 * g10/keyedit.c (menu_adduid): Don't copy 'sig'.
2335 2016-11-15 Werner Koch <wk@gnupg.org>
2337 gpg: New option --compliance.
2338 + commit f86b1a15ad4bb7bcc1e9f7d209aabcb23641f7df
2339 * g10/gpg.c (oCompliance): New.
2340 (opts): Add "--compliance".
2341 (parse_tofu_policy): Use a generic description string for "help".
2342 (parse_compliance_option): New.
2343 (main): Add option oCompliance. Factor out code for compliance
2345 (set_compliance_option): new.
2347 2016-11-15 Justus Winter <justus@g10code.com>
2349 g10: Fix memory leak.
2350 + commit 809d67e74014cb563efd965744fd11f87bbae743
2351 * g10/keyedit.c (menu_adduid): Deallocate 'sig'.
2353 gpgscm: Mark cells requiring finalization.
2354 + commit 64a58e23c38db8658423bbe26fcd650330e24a88
2355 * tests/gpgscm/scheme.c (T_FINALIZE): New macro.
2356 (mk_port): Use the new macro.
2357 (mk_foreign_object): Likewise.
2358 (mk_counted_string): Likewise.
2359 (mk_empty_string): Likewise.
2360 (gc): Only call 'finalize_cell' for cells with the new flag.
2362 gpgscm: Recover more cells.
2363 + commit 93cc322ac06d3045a24aece90091f7f80f3dacb8
2364 * tests/gpgscm/scheme.c (_s_return): Recover the cell holding the
2367 2016-11-14 Justus Winter <justus@g10code.com>
2369 g10: Fix memory leak.
2370 + commit 2cd281c4def1ea881b92b9aba18c1892f89c1870
2371 * g10/mainproc.c (check_sig_and_print): Free 'pk'.
2373 gpgscm: Avoid cell allocation overhead.
2374 + commit 83c184a66b73f312425b01008f0495610e5329a4
2375 * tests/gpgscm/scheme-private.h (struct scheme): New fields
2376 'inhibit_gc', 'reserved_cells', and 'reserved_lineno'.
2377 * tests/gpgscm/scheme.c (GC_ENABLED): New macro.
2378 (USE_GC_LOCKING): Likewise.
2379 (gc_reservations): Likewise.
2380 (gc_reservation_failure): New function.
2381 (_gc_disable): Likewise.
2382 (gc_disable): New macro.
2383 (gc_enable): Likewise.
2384 (gc_enabled): Likewise.
2385 (gc_consume): Likewise.
2386 (get_cell_x): Consume reserved cell if garbage collection is disabled.
2387 (_get_cell): Assert that gc is enabled.
2388 (get_cell): Only record cell in the list of recently allocated cells
2390 (get_vector_object): Likewise.
2391 (gc): Assert that gc is enabled.
2392 (s_return): Add comment, adjust call to '_s_return'.
2393 (s_return_enable_gc): New macro.
2394 (_s_return): Add flag 'enable_gc' and re-enable gc if set.
2395 (oblist_add_by_name): Use the new facilities to protect the
2397 (new_frame_in_env): Likewise.
2398 (new_slot_spec_in_env): Likewise.
2400 (opexe_0): Likewise.
2401 (opexe_1): Likewise.
2402 (opexe_2): Likewise.
2403 (opexe_5): Likewise.
2404 (opexe_6): Likewise.
2405 (scheme_init_custom_alloc): Initialize the new fields.
2407 2016-11-14 NIIBE Yutaka <gniibe@fsij.org>
2409 scd: Fix status info encoding.
2410 + commit 4ee4d0b02172cf56d9582bb99e32a65c75315b25
2411 * scd/command.c (send_status_info): Do percent plus encoding correctly.
2413 2016-11-12 Werner Koch <wk@gnupg.org>
2415 agent: Improve concurrency when Libgcrypt 1.8 is used.
2416 + commit 6bf698197222bf6081c249c815aebb075e8ec820
2417 * agent/gpg-agent.c (thread_init_once): Tell Libgcrypt to reinit the
2419 (agent_libgcrypt_progress_cb): Do not sleep if Libgcrypt is recent
2422 2016-11-11 Werner Koch <wk@gnupg.org>
2424 agent: Kludge to mitigate blocking calls in Libgcrypt.
2425 + commit 4473db1ef24031ff4e26c9a9de95dbe898ed2b97
2426 * agent/gpg-agent.c (agent_libgcrypt_progress_cb): Sleep for 100ms on
2429 dirmngr: Prepare to trigger jobs by network activity.
2430 + commit 7b04a43c05834b937b32a596f1941e9728add5fa
2431 * dirmngr/http.c (netactivity_cb): New.
2432 (http_register_netactivity_cb): New.
2433 (notify_netactivity): New.
2434 (connect_server): Call that function.
2435 * dirmngr/dirmngr.c (main): Call http_register_netactivity_cb.
2436 (netactivity_action): New stub handler.
2438 2016-11-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2440 agent: Clean up comments.
2441 + commit e51912f467fda963c7abcfcd4082d6eb084ba5be
2442 * agent/agent.h: Clean up comments.
2444 2016-11-10 Werner Koch <wk@gnupg.org>
2446 gpg,sm: Add STATUS_ERROR keydb_search and keydb_add-resource.
2447 + commit 5d13581f4737c18430f6572dd4ef486d1ad80dd1
2448 * g10/keydb.c (keydb_add_resource): Make ANY_REGISTERED
2449 file-global. Write a STATUS_ERROR.
2450 (maybe_create_keyring_or_box): Check for non-accessible but existant
2452 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
2453 but continue to return NOT_FOUND.
2454 * sm/keydb.c (keydb_add_resource): Rename ANY_PUBLIC to ANY_REGISTERED
2455 and make file-global. Write a STATUS_ERROR.
2456 (keydb_search): Write a STATUS_ERROR if no keyring has been registered
2457 but continue to return NOT_FOUND. Also add new arg CTRL and change
2458 all callers to pass it down.
2460 sm: Remove unused arg SECRET from keydb functions.
2461 + commit c8044c6e335f044d7386b9e8869bc4a0d3adff70
2462 * sm/keydb.c (struct resource_item): Remove field 'secret'.
2463 (keydb_add_resource): Remove arg 'secret' and change all callers.
2466 2016-11-10 Justus Winter <justus@g10code.com>
2468 gpgscm: Recover cells from the list of recently allocated cells.
2469 + commit ee08677d63a900cea85228024861a4f5c5a87c69
2470 * tests/gpgscm/scheme.c (ok_to_freely_gc): Recover cells.
2472 gpgscm: Recover cells used to maintain interpreter state.
2473 + commit e0cbd3389e2dd6ec19ee3a4c7bad81fa0f1907f5
2474 * tests/gpgscm/scheme.c (free_cell): New function.
2475 (free_cons): Likewise.
2476 (_s_return): Use the new function to recover cells used to save the
2477 state of the interpreter in 's_save'. This reduces the need to do a
2478 garbage collection considerably.
2480 gpgscm: Reduce opcode dispatch overhead.
2481 + commit d3a98ff5bc972a4c9b01b9e5338a4a59b5b4ac48
2482 * tests/gpgscm/scheme.c (s_thread_to): New macro.
2484 (opexe_[0-6]): Use 'CASE' instead of 'case' statements, replace
2485 's_goto' with 's_thread_to' where applicable.
2487 gpgscm: Make the compile-hook configurable.
2488 + commit 568cfcde45a0d6c456d8f8be1ea0e408416badad
2489 * tests/gpgscm/scheme-private.h (struct scheme): Make field
2490 'COMPILE_HOOK' optional.
2491 * tests/gpgscm/scheme.c (opexe_0): Fix guard.
2492 (scheme_init_custom_alloc): Conditionally initialize 'COMPILE_HOOK'.
2493 * tests/gpgscm/scheme.h (USE_COMPILE_HOOK): Define to 1 by default.
2495 gpgscm: Drop obsolete commented-out code.
2496 + commit 9ee184bc0afaea06785d836ed175b851b9ae532f
2497 * tests/gpgscm/scheme.c (opexe_5): Drop obsolete code.
2499 gpgscm: Remove dubious stack implementation.
2500 + commit d7c5799c282a03dcce0e3d327075233353cb76cc
2501 * tests/gpgscm/scheme-private.h (struct scheme): Remove related fields.
2502 * tests/gpgscm/scheme.c: Drop all !USE_SCHEME_STACK code.
2503 * tests/gpgscm/scheme.h (USE_SCHEME_STACK): Remove macro.
2505 2016-11-10 Werner Koch <wk@gnupg.org>
2507 gpg: Improve error message for --quick-gen-key.
2508 + commit 088d955bd8a6ec8bbf76c8a4c01eb08499d1d9fa
2509 * g10/keygen.c (parse_algo_usage_expire): Use a different error
2510 message for an unknown algorithm name.
2512 dirmngr: Improve concurrency in the non-adns case.
2513 + commit c7ea98cd3d44abf00e32c081e5049ad1d0b1f12c
2514 * dirmngr/dns-stuff.c (map_adns_status_to_gpg_error): New.
2515 (resolve_name_adns, get_dns_cert, get_dns_cname): Use that function.
2516 (getsrv) [!USE_ADNS]: Call res_query outside of nPth.
2518 2016-11-08 Justus Winter <justus@g10code.com>
2520 tests: Fix environment setup.
2521 + commit 1062953d5132af674aacfc6372e3e9f066c5d145
2522 * tests/openpgp/defs.scm (setup-legacy-environment): Do not call
2523 'setup-environment' because that will start the agent, and hence
2524 register the atexit function twice.
2526 Fixes: a55393cb5f4b331cb3a715c7d9a8b91f7606f337
2528 tests: Log and display output from tests when run in parallel.
2529 + commit 2a7615c48ed79e6b28710cc293ce30c812b2e5b0
2530 * tests/openpgp/run-tests.scm (test): Add field 'logfd'.
2531 (test::new, test::set-*): Adapt accordingly.
2532 (test::set-logfd): New function.
2533 (test::open-log-file): Likewise.
2534 (test::run-sync): Use the new function.
2535 (test::run-async): Likewise.
2536 (test::report): Replay the log.
2537 (run-tests-parallel): Reverse the results to restore the original
2540 tests: Simplify test.
2541 + commit 4dd4801bfa4c3f7ba279b3d171a8ed299dbffaaa
2542 * tests/openpgp/issue2417.scm: Simplify.
2544 gpgscm: Expose seek and associated constants.
2545 + commit 591d61d80f4f81176f7e236df794922df9e001a1
2546 * tests/gpgscm/ffi.c (do_seek): New function.
2547 (ffi_init): Expose 'seek' and 'SEEK_{SET,CUR,END}'.
2548 * tests/gpgscm/lib.scm: Document the new function.
2550 gpgscm: Fix error message.
2551 + commit d4454837cd60981c2863955b11c9e1cc8f9e3833
2552 * tests/gpgscm/ffi.c (do_wait_processes): Fix and improve error
2555 tests,w32: Make cleanup more robust.
2556 + commit dd13b2a561e31045fd3d3576bab99543cd4eb6cc
2557 * tests/openpgp/run-tests.scm (run-tests-parallel): Catch errors when
2558 removing the working directory. On Windows this can fail if there is
2559 still a process using one of the files there.
2560 (run-tests-sequential): Likewise.
2562 common,w32: Simplify locking.
2563 + commit 7cbb0803847b8db618d39ff50ae6015e409ab1ae
2564 * common/asshelp.c (lock_spawning): Use the same code on Windows that
2565 we use on all other platforms.
2566 (unlock_spawning): Likewise.
2568 2016-11-07 Justus Winter <justus@g10code.com>
2570 tests: Write a log file for each test.
2571 + commit 26df829fa22f027ca4a5eaf155cdaa2123afbdd5
2572 * tests/openpgp/Makefile.am (CLEANFILES): Delete logs.
2573 * tests/openpgp/run-tests.scm (test::run-sync): Write logs.
2575 gpgscm: Generalize splice to write to multiple sinks.
2576 + commit abe0cc7a21d2b0b5c77cc525b999d1ede2d29185
2577 * tests/gpgscm/ffi.c (ordinal_suffix): New function.
2578 (do_splice): Generalize splice to write to multiple sinks.
2579 * tests/gpgscm/lib.scm (splice): Document this fact.
2581 gpgscm: Drop 'len' argument from splice.
2582 + commit 4d98a72b88cf167295e1ecd6125b9c7a11b6239f
2583 * tests/gpgscm/ffi.c (do_splice): Drop 'len' argument, no-one uses it.
2584 * tests/gpgscm/lib.scm (splice): Document foreign function.
2586 tests: Move environment creation and teardown into each test.
2587 + commit a55393cb5f4b331cb3a715c7d9a8b91f7606f337
2588 * tests/gpgscm/tests.scm (log): New function.
2589 * tests/openpgp/run-tests.scm (run-tests-parallel): Do not run the
2590 startup and teardown scripts.
2591 (run-tests-sequential): Likewise.
2592 * tests/openpgp/setup.scm: Move all functions...
2593 * tests/openpgp/defs.scm: ... here and make them less verbose.
2594 (setup-environment): New function.
2595 (setup-legacy-environment): Likewise.
2596 (start-agent): Make less verbose, run 'stop-agent' at interpreter
2598 (stop-agent): Make less verbose.
2599 * tests/openpgp/finish.scm: Drop file.
2600 * tests/openpgp/Makefile.am (EXTRA_DIST): Drop removed file.
2601 * tests/openpgp/4gb-packet.scm: Use 'setup-environment' or
2602 'setup-legacy-environment' as appropriate.
2603 * tests/openpgp/armdetach.scm: Likewise.
2604 * tests/openpgp/armdetachm.scm: Likewise.
2605 * tests/openpgp/armencrypt.scm: Likewise.
2606 * tests/openpgp/armencryptp.scm: Likewise.
2607 * tests/openpgp/armor.scm: Likewise.
2608 * tests/openpgp/armsignencrypt.scm: Likewise.
2609 * tests/openpgp/armsigs.scm: Likewise.
2610 * tests/openpgp/clearsig.scm: Likewise.
2611 * tests/openpgp/conventional-mdc.scm: Likewise.
2612 * tests/openpgp/conventional.scm: Likewise.
2613 * tests/openpgp/decrypt-dsa.scm: Likewise.
2614 * tests/openpgp/decrypt.scm: Likewise.
2615 * tests/openpgp/default-key.scm: Likewise.
2616 * tests/openpgp/detach.scm: Likewise.
2617 * tests/openpgp/detachm.scm: Likewise.
2618 * tests/openpgp/ecc.scm: Likewise.
2619 * tests/openpgp/encrypt-dsa.scm: Likewise.
2620 * tests/openpgp/encrypt.scm: Likewise.
2621 * tests/openpgp/encryptp.scm: Likewise.
2622 * tests/openpgp/export.scm: Likewise.
2623 * tests/openpgp/finish.scm: Likewise.
2624 * tests/openpgp/genkey1024.scm: Likewise.
2625 * tests/openpgp/gpgtar.scm: Likewise.
2626 * tests/openpgp/gpgv-forged-keyring.scm: Likewise.
2627 * tests/openpgp/import.scm: Likewise.
2628 * tests/openpgp/issue2015.scm: Likewise.
2629 * tests/openpgp/issue2417.scm: Likewise.
2630 * tests/openpgp/issue2419.scm: Likewise.
2631 * tests/openpgp/key-selection.scm: Likewise.
2632 * tests/openpgp/mds.scm: Likewise.
2633 * tests/openpgp/multisig.scm: Likewise.
2634 * tests/openpgp/quick-key-manipulation.scm: Likewise.
2635 * tests/openpgp/seat.scm: Likewise.
2636 * tests/openpgp/shell.scm: Likewise.
2637 * tests/openpgp/signencrypt-dsa.scm: Likewise.
2638 * tests/openpgp/signencrypt.scm: Likewise.
2639 * tests/openpgp/sigs-dsa.scm: Likewise.
2640 * tests/openpgp/sigs.scm: Likewise.
2641 * tests/openpgp/ssh.scm: Likewise.
2642 * tests/openpgp/tofu.scm: Likewise.
2643 * tests/openpgp/use-exact-key.scm: Likewise.
2644 * tests/openpgp/verify.scm: Likewise.
2645 * tests/openpgp/version.scm: Likewise.
2646 * tests/openpgp/issue2346.scm: Likewise and simplify.
2648 tests: Do not allow tests to be run in a shared environment.
2649 + commit ac078469cbafe85cf771fca84f376740850d10b0
2650 * tests/openpgp/README: Update.
2651 * tests/openpgp/run-tests.scm (run-tests-parallel-shared): Drop
2653 (run-tests-parallel-isolated): Rename to 'run-tests-parallel'.
2654 (run-tests-sequential-shared): Drop function.
2655 (run-tests-sequential-isolated): Rename to 'run-tests-sequential'.
2658 + commit 37751d2b194bc33539f5b9ea0e02e9f209d2bcf6
2659 * tests/openpgp/Makefile.am: Drop dependency on 'mk-tdata'.
2661 Fixes: 70215ff470c82d144e872057dfa5a478cc9195f2
2663 2016-11-07 Werner Koch <wk@gnupg.org>
2665 wks: Encrypt all client mails also the target key,
2666 + commit 56e1864aa337f36317534db521fd4434d70e0784
2667 * tools/gpg-wks-client.c (encrypt_response): Add arg FINGERPRINT.
2668 (send_confirmation_response): Ditto.
2669 (process_confirmation_request): Parse out fingerprint and pass
2670 send_confirmation_response.
2672 2016-11-07 Justus Winter <justus@g10code.com>
2674 tests,tools: Reimplement 'mk-tdata' in Scheme.
2675 + commit 70215ff470c82d144e872057dfa5a478cc9195f2
2676 * tests/openpgp/defs.scm (tools): Drop 'mk-tdata'.
2677 * tests/openpgp/setup.scm (make-test-data): New function.
2678 * tests/openpgp/verify.scm: Avoid 'mk-tdata'.
2679 * tools/Makefile.am (noinst_PROGRAMS): Drop 'mk-tdata'.
2680 * tools/mk-tdata.c: Drop file.
2682 gpgscm,w32: Provide schemish file handling for binary files.
2683 + commit 413cc50345557e0a516f33b98e8aab19bbc8b4fe
2684 * tests/gpgscm/lib.scm (call-with-binary-input-file): New function.
2685 (call-with-binary-output-file): Likewise.
2687 gpgscm: Add support for pseudo-random numbers.
2688 + commit 6e677f9b55fdb610e93134042ee41ee5c641cbdf
2689 * tests/gpgscm/ffi.c (do_getpid): New function.
2690 (do_srandom): Likewise.
2691 (random_scaled): Likewise.
2692 (do_random): Likewise.
2693 (do_make_random_string): Likewise.
2694 (ffi_init): Expose the new functions.
2695 * tests/gpgscm/lib.scm: Document the new functions.
2698 + commit 5840353d8bbcd9e75374f3bdb2547ffa7bbea897
2699 * g10/getkey.c (get_best_pubkey_byname): If 'get_pubkey_byname' does
2700 not return a getkey context, then it can return at most one key,
2701 therefore there is nothing to rank. Also, always initialize '*retctx'
2702 to be on the safe side.
2704 Fixes: ab89164be02012f1bf159c971853b8610e966301
2706 2016-11-04 Justus Winter <justus@g10code.com>
2708 gpgscm: Fix printing strings containing zero bytes.
2709 + commit 1f45878a72f23d4bae08d73b614096b485f35274
2710 * tests/gpgscm/scheme.c (atom2str): Fix computing the length of Scheme
2711 strings. Scheme strings can contain zero bytes.
2713 gpgscm: Implement 'atexit'.
2714 + commit 43f8006f5c75e3d15fe200e2fa41587a73bfb07b
2715 * tests/gpgscm/ffi.scm (throw): Run *run-atexit-handlers* when
2716 terminating the interpreter.
2717 (*atexit-handlers*): New variable.
2718 (*run-atexit-handlers*): New function.
2720 * tests/gpgscm/main.c (main): Run *run-atexit-handlers* at normal
2721 interpreter shutdown.
2723 2016-11-04 NIIBE Yutaka <gniibe@fsij.org>
2725 scd: Fix length error for READKEY.
2726 + commit cd00b07ec26c3408e6aee66957b08c6fd319b700
2727 * scd/app-openpgp.c (do_readkey): Decrement the length.
2729 scd: Add --advanced option for READKEY.
2730 + commit f9da935c3eb302e75a80def51128fb6f669661d7
2731 * scd/command.c (cmd_readkey) : Support ADVANCED arg.
2732 * scd/app.c (app_readcert): Add ADVANCED arg.
2733 * scd/app-openpgp.c (do_readkey): Implement ADVANCED arg.
2734 * scd/app-nks.c (do_readkey): Error return with GPG_ERR_NOT_SUPPORTED.
2736 2016-11-03 Werner Koch <wk@gnupg.org>
2738 agent: Extend the PINENTRY_LAUNCHED inquiry and status.
2739 + commit c1ea0b577a468030d2b006317ba27fc1746c4b14
2740 * agent/call-pinentry.c (start_pinentry): Get flavor and version and
2741 pass it to agent_inq_pinentry_launched.
2742 * agent/command.c (agent_inq_pinentry_launched): Add arg EXTRA.
2743 * g10/server.c (gpg_proxy_pinentry_notify): Print a new diagnostic.
2745 2016-11-03 Justus Winter <justus@g10code.com>
2747 g10: Improve and unify key selection for -r and --locate-keys.
2748 + commit ab89164be02012f1bf159c971853b8610e966301
2749 * g10/getkey.c (struct pubkey_cmp_cookie): New type.
2750 (key_is_ok, uid_is_ok, subkey_is_ok): New functions.
2751 (pubkey_cmp): Likewise.
2752 (get_best_pubkey_byname): Likewise.
2753 * g10/keydb.h (get_best_pubkey_byname): New prototype.
2754 * g10/keylist.c (locate_one): Use the new function.
2755 * g10/pkclist.c (find_and_check_key): Likewise.
2756 * tests/openpgp/Makefile.am (XTESTS): Add new test.
2757 (TEST_FILES): Add new files.
2758 * tests/openpgp/key-selection.scm: New file.
2759 * tests/openpgp/key-selection/0.asc: Likewise.
2760 * tests/openpgp/key-selection/1.asc: Likewise.
2761 * tests/openpgp/key-selection/2.asc: Likewise.
2762 * tests/openpgp/key-selection/3.asc: Likewise.
2763 * tests/openpgp/key-selection/4.asc: Likewise.
2765 gpgscm,tests: Add new functions to the test environment.
2766 + commit 1ec07cbc209f247fd85704f5701564e31aa56d0b
2767 * tests/gpgscm/lib.scm (first, last, powerset): New functions.
2768 * tests/gpgscm/tests.scm (interactive-shell): New function.
2769 * tests/openpgp/Makefile.am (EXTRA_DIST): Add new file.
2770 * tests/openpgp/README: Document 'interactive-shell'.
2771 * tests/openpgp/shell.scm: New file.
2773 2016-11-03 Werner Koch <wk@gnupg.org>
2775 gpgconf: Add a new field to the --query-swdb output.
2776 + commit d10b67b9bc32e8feff1be86e6646fc23e58fe45d
2777 * tools/gpgconf.c (query_swdb): Insert new field with the installed
2778 version. Check that the supplied version does not contain a colon.
2780 2016-11-02 Werner Koch <wk@gnupg.org>
2782 gpgconf: Add command --query-swdb.
2783 + commit 0ed6a6df5aa421a9c5cdb1e63867f0deee79af9e
2784 * tools/gpgconf.c (aQuerySWDB): New.
2785 (opts): Add --query-swdb.
2786 (valid_swdb_name_p): New.
2788 (main): Implement command --query-swdb.
2790 common: Improve compare_string_versions.
2791 + commit 488b183811fc25c1ae49b4730491accf1adf518e
2792 * common/stringhelp.c: Include limits.h.
2793 (compare_version_strings): Change semantics to behave like strcmp.
2794 Include the patch lebel in the comparison. Allow checking a single
2796 * common/t-stringhelp.c (test_compare_version_strings): Adjust test
2797 vectors and a few new vectors.
2798 * g10/call-agent.c (warn_version_mismatch): Adjust to new sematics.
2799 * g10/call-dirmngr.c (warn_version_mismatch): Ditto.
2800 * sm/call-agent.c (warn_version_mismatch): Ditto.
2801 * sm/call-dirmngr.c (warn_version_mismatch): Ditto.
2803 2016-11-02 Justus Winter <justus@g10code.com>
2805 gpgscm: Fix inclusion of readline header.
2806 + commit 60ad1a7f37ffc10e601e69a3e2d2bb14af510257
2807 * tests/gpgscm/ffi.c: Define magic macro to prevent the completion
2808 function from redefined.
2810 2016-11-02 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2812 build: Fix misspelled dirmngr.
2813 + commit 5e693ddfbe44d149ce0d9393d699c613ad5ea706
2816 Spelling: correct spelling of "passphrase".
2817 + commit 68b59bbc42ba9ec69496758743924d54a95742f0
2818 There were several different variant spellings of "passphrase". This
2819 should fix them all for all English text.
2821 I did notice that po/it.po contains multiple instances of
2822 "passhprase", which also looks suspect to me, but i do not know
2823 Italian, so i did not try to correct it.
2825 2016-11-02 Justus Winter <justus@g10code.com>
2827 g10,w32: Fix build on Windows.
2828 + commit 5d4f1408d0dd055d412ae44bb4a0f28f74617f05
2829 * g10/tofu.c (begin_transaction): Use the new 'gnupg_usleep'.
2831 2016-10-31 Werner Koch <wk@gnupg.org>
2833 common: New function gnupg_usleep.
2834 + commit ad491ceec6145b3781a05dc7b4a36052abeeb4b4
2835 * configure.ac (HAVE_NANOSLEEP): Test for nanosleep.
2836 * common/sysutils.c: Always include time.h.
2837 (gnupg_usleep): New.
2839 2016-10-31 Andre Heinecke <aheinecke@intevation.de>
2841 w32: Fix PKG_CONFIG_LIBDIR in --build-w32.
2842 + commit 3b6b8fe32af7568ff51066d4c2e3679df6dea86f
2843 * autogen.sh: Point pkg-config to the right location.
2845 2016-10-31 Neal H. Walfield <neal@g10code.com>
2847 g10: Avoid gratuitious SQLite aborts and starving writers.
2848 + commit 7a634e48b13c5d5d295b8fed9b429e1b2109a333
2849 * g10/tofu.c: Include <time.h>, <utime.h>, <fcntl.h> and <unistd.h>.
2850 (tofu_dbs_s): Add fields want_lock_file and want_lock_file_ctime.
2851 (begin_transaction): Only yield if DBS->WANT_LOCK_FILE_CTIME has
2852 changed since we took the lock. Don't use gpgrt_yield to yield, but
2853 sleep for 100ms. After taking the batch lock, update
2854 DBS->WANT_LOCK_FILE_CTIME. Also take the batch lock the first time we
2855 take the real lock. When taking the real lock, use immediate not
2856 deferred mode to avoid gratuitious aborts.
2857 (end_transaction): When dropping the outermost real lock, drop the
2859 (busy_handler): New function.
2860 (opendbs): Set the busy handler to it when opening the DB. Initialize
2861 CTRL->TOFU.DBS->WANT_LOCK_FILE.
2862 (tofu_closedbs): Free DBS->WANT_LOCK_FILE.
2864 2016-10-30 Neal H. Walfield <neal@g10code.com>
2866 g10: Avoid reading in keys when possible.
2867 + commit eec365a02bd35d2d5c9e4d2c8d18bcd9180cf859
2868 * g10/tofu.c (build_conflict_set): If CONFLICT_SET contains a single
2869 element, don't bother to check for cross sigs. Add parameter PK.
2872 g10: Fix bit setting.
2873 + commit 614ca00676bb8ca12b5107fec0e4ef8818445254
2874 * g10/tofu.c (build_conflict_set): Fix bit setting.
2876 2016-10-28 Werner Koch <wk@gnupg.org>
2878 gpg: Enable the Issuer Fingerprint from rfc4880bis.
2879 + commit b6f08dbb0b45059cdbbb5d9be9725e437f42a8cc
2880 * g10/build-packet.c (build_sig_subpkt_from_sig): Always write the new
2881 Issuer Fingerprint sub-packet.
2882 * g10/mainproc.c (check_sig_and_print): Always consider that
2885 2016-10-27 Werner Koch <wk@gnupg.org>
2887 dirmngr: Fix signature checking.
2888 + commit 5a1f6a0062488aaf345b1c73ba98a540e673d619
2889 * dirmngr/server.c: Include cpparray.h.
2890 (verify_swdb_parm_s): New.
2891 (verify_swdb_status_cb): New.
2892 (cmd_versioncheck): Use gpgv to correclty verify the signature.
2893 Rename some variable to comply with GNU standards.
2895 gpg: Verify multiple detached signatures with different hash algos.
2896 + commit 8fced66be35db5ac2a6bfdb9bccb2c0e582d8256
2897 * g10/mainproc.c (proc_tree): Loose check. Enable all algos.
2899 common: Add GNUPG_MODULE_NAME_GPGV.
2900 + commit ece9ade4b44fb3d5d120cfd32b23632e5efd2134
2901 * common/util.h (GNUPG_MODULE_NAME_GPGV): New.
2902 * common/homedir.c (gnupg_module_name): Implement.
2904 2016-10-27 Justus Winter <justus@g10code.com>
2906 g10: Fix iteration over getkey results.
2907 + commit 8ea72a776a88f3c851e812d258355be80caa1bc1
2908 * g10/getkey.c (getkey_next): Return the public key in PK even if
2909 RET_KEYBLOCK is NULL.
2911 g10: Assert preconditions.
2912 + commit 66a0091d74768ab3a4a5342d3645e1834c59045a
2913 * g10/getkey.c (get_pubkey_byname): Assert preconditions.
2915 2016-10-27 Werner Koch <wk@gnupg.org>
2917 dirmngr: Do not implement --supervised in Windows.
2918 + commit cf20b23c146c9e499263654644035796475de097
2919 * dirmngr/dirmngr.c (opts) [W32]: Remove --supervised.
2920 (main) [W32]: Ditto.
2922 common: Remove debug output from gnupg_get_socket_name.
2923 + commit a9c8b5fbe7ae241bf45bdee15884abc7891aedf9
2924 * common/sysutils.c (gnupg_get_socket_name): Remove debug message and
2925 use my_error_from_syserror.
2927 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
2929 dirmngr: ADNS error handling fix.
2930 + commit 45dfc02b47f798f5a3b9973ca6a9f5a907d7e665
2931 * dirmngr/dns-stuff.c (resolve_name_adns, get_dns_cert, get_dns_cname):
2932 Use gpg_error and gpg_err_code_from_errno to compose the error value.
2934 2016-10-27 Werner Koch <wk@gnupg.org>
2936 gpg: Convey --quick option to dirmngr for --auto-key-retrieve.
2937 + commit a15ed5a1fd5307b3ec1822daf3b138b187db0b5e
2938 * g10/call-dirmngr.c (gpg_dirmngr_ks_get): Add arg 'quick'.
2939 (gpg_dirmngr_wkd_get): Ditto.
2940 * g10/keyserver.c (keyserver_get): Add arg 'quick'.
2941 (keyserver_get_chunk): Add arg 'quick'.
2942 (keyserver_import_fprint): Ditto. Change callers to pass 0 for it.
2943 (keyserver_import_keyid): Ditto.
2944 (keyserver_import_wkd): Ditto.
2945 * g10/mainproc.c (check_sig_and_print): Call the 3 fucntions with
2948 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
2950 common: Fix gnupg_inotify_has_name, differently.
2951 + commit 8b3d0d1a36cab83dafb98ccb7895144edb95e298
2952 * common/sysutils.c (gnupg_inotify_has_name): Use void * to stop the
2955 dirmngr: More ADNS error fix.
2956 + commit 6f1d8123d61b3efac94b4c61ee75bd947790ba42
2957 * dirmngr/dns-stuff.c (get_dns_cert, getsrv, get_dns_cname): Fix return
2960 dirmngr: Fix error return for ADNS.
2961 + commit 8a9341b42cd1891090d45cc068bff84b2b3edb50
2962 * dirmngr/dns-stuff.c (resolve_name_adns): Use RET for return value.
2964 g10: Fix ECDH, clarifying the format.
2965 + commit ca0ee4e381d0b6a57e4ddc8f4bb2390eb97a2540
2966 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Returns error when
2967 it's short. Clarify the format. Handle other prefixes correctly.
2969 scd: Add 0x41 prefix for x-coordinate only result.
2970 + commit 6bbd97d6c771b2e2c7cfcff6d5a823f0fb44d443
2971 * scd/app-openpgp.c (do_decipher): When it's x-coordinate only, add the
2974 2016-10-27 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
2976 g10: ECDH shared point format.
2977 + commit b648f28f9f8b889f1217a649ded1d45f261bb2bf
2978 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Improve handling of
2979 ECDH shared point format.
2981 2016-10-27 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2983 dirmngr: Implement --supervised command (for systemd, etc).
2984 + commit 75f8aaf5bc2dc7fcffe2987a572d489155c91eb9
2985 * dirmngr/dirmngr.c (main): Add new --supervised command, which is a
2986 mode designed for running under a process supervision system like
2988 * doc/dirmngr.texi: document --supervised option.
2990 agent,common: move get_socket_name() into common.
2991 + commit 6316b28e896957adb76a61a41d2e1c2a08d9f716
2992 * agent/gpg-agent.c (get_socket_name): move to ...
2993 * common/sysutils.c (gnupg_get_socket_name): ... here.
2995 dirmngr: report actual socket name.
2996 + commit 6bb6ac56cca8135666387a0b9d88dd6b50311418
2997 * dirmngr/dirmngr.[ch] (dirmngr_get_current_socket_name): new function
2998 to report known socket name.
2999 * dirmngr/server.c (cmd_getinfo): use dirmngr_get_current_socket_name
3000 to report correct socket name.
3002 2016-10-27 NIIBE Yutaka <gniibe@fsij.org>
3004 common: Fix gnupg_inotify_has_name.
3005 + commit bc28f320fa6f5b9fcdb73dba5e6c582daf7992c5
3006 * common/sysutils.c (gnupg_inotify_has_name): Take care of the
3009 dirmngr: Fix help string and argument.
3010 + commit 96414baf36b8e6385b71847c789d489ebe176a93
3011 * dirmngr/server.c (hlp_versioncheck): Add a newline.
3012 (cmd_versioncheck): Fix argument.
3014 2016-10-26 Werner Koch <wk@gnupg.org>
3016 dirmngr: Fix hang due to deferred thread initialization.
3017 + commit d1ccab5176d7719328b287544b54b85e0277b146
3018 * dirmngr/dirmngr.c (main): Call ldap_wrapper_launch_thread after
3021 agent: Avoid double error message.
3022 + commit b77f95a4a675fd20f6eeb611f4e7b519eceb4ad3
3023 * agent/gpg-agent.c (map_supervised_sockets): Shorten error message.
3024 Remove unneeded diagnostic.
3026 common: Use GPG_ERR_INV_VALUE instead of GPG_ERR_EINVAL.
3027 + commit ece13f177d948013b6f3df926406c0cd947abc25
3028 * common/sysutils.c (gnupg_inotify_watch_socket): Return
3029 GPG_ERR_INV_VALUE for a missing socket name and set proper error
3032 tests: Improve portability of fake-pinentry.
3033 + commit 21b318452abbfe21c45c2a67dae0e3a81cff1090
3034 * tests/openpgp/fake-pinentry.c: Make all functions static.
3035 (get_passphrase): s/unlink/remove/ because that is standard C.
3036 (spacep): Rename to whitespace and change all callers.
3037 (main): Move macro out of if-then chain.
3039 2016-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
3041 agent: --supervised mode improvements.
3042 + commit 27f6d5b9f4b6057ddeb9ace87a1e7e61ebac63e6
3043 * agent/gpg-agent.c (map_supervised_socket): if the agent is running
3044 in --supervised mode and is not actually given LISTEN_FDNAMES
3045 directives, require at least fd 3 to be open for listening.
3047 common: avoid segfault.
3048 + commit 3b5f5e0eb02ecbdcf59722755f22a9d2f88de6e6
3049 * common/sysutils.c (gnupg_inotify_watch_socket): return EINVAL if
3050 socket_name is NULL, rather than segfaulting
3052 2016-10-25 Justus Winter <justus@g10code.com>
3054 agent,tests,w32: Fix relaying pinentry user data, fix fake-pinentry.
3055 + commit 852b8f0b89d447536dfdf6cd4ea91615c75491ce
3056 * agent/call-pinentry.c (start_pinentry): Also send the user data
3057 using an Assuan 'OPTION' command.
3058 * tests/openpgp/fake-pinentry.c (get_passphrase): Fix updating
3060 (spacep): Include newline characters.
3061 (rstrip): New function.
3062 (main): Handle Windows line endings. Handle the userdata option, and
3063 restart with the new options.
3065 tests: Do not autostart gpg-agents on teardown.
3066 + commit f88f11a25665dca7490a09088aa24edf396e4c40
3067 * tests/openpgp/defs.c (stop-agent): Use '--no-autostart' when calling
3070 2016-10-25 Werner Koch <wk@gnupg.org>
3072 dirmngr: Allow command VERSIONCHECK to handle 3 part version numbers.
3073 + commit b120f358c25cc846ca9d841d47e71ca1a7fe02e4
3074 * dirmngr/server.c (parse_version_string): Add arg MICRO and set it.
3075 (cmp_version): Extend to handle the MICRO part.
3076 (confucius_mktmpdir): Rename to my_mktmpdir.
3077 (my_mktmpdir): xstrconcat does not fail; use strconcat.
3078 (fetch_into_tmpdir): Improve error checking.
3080 common: Use strconcat in gnupg_setenv.
3081 + commit 7983f8758703071710c11bf2a255efcd71836b65
3082 * common/sysutils.c (gnupg_setenv): Replace malloc+stpcpy by
3083 strconcat. Indent cpp conditionals.
3084 (gnupg_unsetenv): Indent cpp conditionals.
3086 2016-10-24 Werner Koch <wk@gnupg.org>
3088 gpg: Replace two sprintf calls.
3089 + commit 9d6146d6f9870fbfcec15cdc4becaf094d5a90e0
3090 * g10/keygen.c (print_status_key_created): Use snprintf for now.
3091 (ask_expire_interval): Replace xmalloc and sprintf by xasprintf.
3093 agent: Minor cleanup for recent change in findkey.c.
3094 + commit 8c40b3b98d3ddeda79fde981e6539c5b3b09d9a2
3095 * agent/findkey.c (agent_write_private_key): Avoid label name error.
3097 agent: Slightly change structure of cmd_readkey.
3098 + commit fdb653a33ea1a24d1159880624dbbcc0867865b5
3099 * agent/command.c (cmd_readkey): Avoid a leave label in the middle of
3100 the code. Remove the special return.
3102 2016-10-24 Kai Michaelis <kai@gnupg.org>
3104 dirmngr: Fix segfault in VERSIONCHECK.
3105 + commit 5e7dfd979d2d91800d90c3ce9a66755df3217682
3106 * dirmngr/server.c (cmd_versioncheck): The VERSIONCHECK command crashes
3107 when called without program version.
3109 2016-10-24 NIIBE Yutaka <gniibe@fsij.org>
3111 scd: Use canonical curve name of libgcrypt.
3112 + commit b1828c17fc475def1ee9e06f083f513f568c241b
3113 * scd/app-openpgp.c (send_key_attr): Use curve instead of OID.
3115 (ecc_read_pubkey): Use ecdh_params. Use curve name.
3116 (ecc_writekey): Likewise.
3117 (ecc_curve): Rename from ecc_oid.
3118 (parse_algorithm_attribute): Use ecc_curve.
3119 * g10/call-agent.c (learn_status_cb): Use openpgp_is_curve_supported to
3120 intern the curve name string.
3121 * g10/card-util.c (card_status): Conver curve name to alias for print.
3123 common: Fix openpgp_is_curve_supported.
3124 + commit 945e7ab0ddedf5f58afd97d81e101939de5b5d89
3125 * common/openpgp-oid.c (openpgp_is_curve_supported): Support both of
3126 canonical name of the curve and alias.
3128 g10: Fix card keygen for decryption.
3129 + commit acef0951646b47c87ccc1c616f0105a068e7ed86
3130 * g10/keygen.c (do_generate_keypair): Fix arguments.
3132 2016-10-22 NIIBE Yutaka <gniibe@fsij.org>
3134 g10: More card key generation change.
3135 + commit 987bbb2276aeb6bee2793e8406e223717b605009
3136 * g10/keygen.c (gen_card_key): Add back ALGO as the second argument.
3137 Don't get ALGO by KEY-ATTR by this function. It's caller to provide
3138 ALGO. Don't do that by both of caller and callee.
3139 (generate_keypair): Only put paramerters needed. Use parameters
3140 for ALGO to call gen_card_key.
3141 (generate_card_subkeypair): Get ALGO and call gen_card_key with it.
3143 2016-10-21 Andre Heinecke <aheinecke@intevation.de>
3145 g10: Write first keybox record in binary mode.
3146 + commit f7e50634be71ce3028726f23edf14454109a04a8
3147 * g10/keydb.c (maybe_create_keyring_or_box): Open in binary mode.
3149 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
3151 g10,scd: Fix ECC keygen.
3152 + commit d2653b1a6db90aed073194a51fd61023d69773ec
3153 * g10/keygen.c (generate_keypair): For card key generation, fill
3154 parameters by KEY-ATTR.
3156 * scd/app-openpgp.c (ecc_read_pubkey): OID should be freed at last,
3157 after its reference by OIDBUF is finished.
3158 (ecc_writekey): Likewise.
3160 scd: Fix segfault changing key attr.
3161 + commit 693e657ff04756737dce025203c0deba480ea8de
3162 * asc/app-openpgp.c (change_keyattr_from_string): Release after
3165 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
3166 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
3168 g10: Don't ask keysize for for non-RSA card.
3169 + commit dafce6f698bec6e9d4c0125b90754d0687294e86
3170 * g10/card-util.c (card_status): Bug fix for keyno.
3171 (ask_card_rsa_keysize, do_change_rsa_keysize): Rename.
3172 (generate_card_keys): Only ask keysize when RSA.
3173 (card_generate_subkey): Likewise.
3175 g10: Support ECC for gen_card_key.
3176 + commit 161cb22f13bcd8cbdb08558d9926b2168a8297ac
3177 * g10/keygen.c (gen_card_key): Remove the first argument of ALGO.
3178 (do_generate_keypair, generate_card_subkeypair): Follow the change.
3180 2016-10-21 NIIBE Yutaka <gniibe@fsij.org>
3182 Fix use cases of snprintf.
3183 + commit 6e85ac77af594035137950d801d8a1bacce548a3
3184 * agent/call-pinentry.c, agent/call-scd.c, agent/command.c,
3185 build-aux/speedo/w32/g4wihelp.c, common/get-passphrase.c,
3186 dirmngr/dirmngr.c, g10/call-agent.c, g10/cpr.c, g10/keygen.c,
3187 g10/openfile.c, g10/passphrase.c, scd/app-openpgp.c, scd/scdaemon.c,
3188 sm/call-agent.c, sm/call-dirmngr.c, sm/certreqgen.c: Fix assuming C99.
3190 agent: Fix saving with FORCE=1.
3191 + commit 1ffd475f99eaff4e40950eda88702f8db9288eb5
3192 * agent/findkey.c (agent_write_private_key): Recover from an error of
3193 GPG_ERR_ENOENT when FORCE=1 and it is opened with "rb+".
3195 2016-10-20 Justus Winter <justus@g10code.com>
3197 tests: Simplify test.
3198 + commit 71158d8d5f823888abc8588caa6497860ce59c06
3199 * tests/openpgp/quick-key-manipulation.scm: Avoid creating a temporary
3200 home directory, just make the uids unique.
3202 tests: Flush stdout in the fake pinentry.
3203 + commit ca9597f080f70a8435daaeb5449bef0462a1402a
3204 * tests/openpgp/fake-pinentry.c (reply): Flush stdout.
3206 common,w32: Fix setting environment variables on Windows.
3207 + commit 8c7c4faf3de28ca70a60e6b15f51c1b206e0ddd9
3208 * common/sysutils.c (gnupg_setenv): Also update the environment block
3209 maintained by the C runtime.
3210 (gnupg_unsetenv): Likewise.
3211 * tests/gpgscm/ffi.c (do_setenv): Fix error handling.
3213 tests,w32: Cope with Windows line endings.
3214 + commit bf37916a23bd0929fc4a5f28c9a41f43c5a473f6
3215 * tests/openpgp/issue2015.scm: Rstrip line before comparison.
3217 tests: Create and remove socket directories.
3218 + commit 2d794779e0fd9d9a1efc98e7bd77a296a25f4293
3219 * tests/openpgp/defs.scm (start-agent): Move function here and create
3220 the socket directory prior to starting the agent.
3221 (stop-agent): Move function here and remove the socket directory.
3222 * tests/openpgp/finish.scm: Adapt.
3223 * tests/openpgp/setup.scm: Likewise.
3225 2016-10-20 NIIBE Yutaka <gniibe@fsij.org>
3227 agent, g10: Fix keygen.
3228 + commit 9a34e2142b426b98c73fd888102ea1596bbce62a
3229 * agent/command.c (cmd_readkey): Get length after card_readkey.
3230 * g10/keygen.c (gen_card_key): Fix off-by-one error.
3232 scd: GENKEY updates the public key in APP.
3233 + commit b680f79cc112c4831293e259d7db2921bcd783a4
3234 * scd/app-openpgp.c (rsa_read_pubkey, ecc_read_pubkey): New.
3235 (read_public_key): New.
3236 (get_public_key, do_genkey): Use read_public_key.
3238 g10: smartcard keygen change.
3239 + commit 980c037bedb968ddf155dd334c0a70b918a17759
3240 * g10/call-agent.c (scd_genkey_cb_append_savedbytes): Remove.
3241 (scd_genkey_cb): Only handle KEY-CREATED-AT and PROGRESS.
3242 (agent_scd_genkey): Remove INFO argument. CREATETIME is now in/out
3244 (agent_readkey): Use READKEY --card instead of SCD READKEY.
3245 * g10/keygen.c (gen_card_key): Use READKEY --card command of the agent
3246 to retrieve public key information from card and let the agent make
3247 a file for private key with shadow info.
3249 agent: Add --card option for READKEY.
3250 + commit 82cbab906a3e72a98fdc16096f2f0451465969a2
3251 * agent/findkey.c (agent_write_shadow_key): New.
3252 * agent/command-ssh.c (card_key_available): Use agent_write_shadow_key.
3253 * agent/learncard.c (agent_handle_learn): Likewise.
3254 * agent/command.c (cmd_readkey): Add --card option.
3256 2016-10-19 Kai Michaelis <kai@gnupg.org>
3258 dirmngr: improve VERSIONCHECK.
3259 + commit 72a99f582dad4cb4c3b05b97c7ebb8d537f10b79
3260 Replace strtok_r() and code formatting. Use code from libgpg-error for
3263 2016-10-18 Justus Winter <justus@g10code.com>
3265 common: Fix copying data to estreams.
3266 + commit 8dce5ee55a0268d196023224dcf3020306922490
3267 * common/exectool.c (copy_buffer_do_copy): Correctly account for
3268 partially written data in the event of errors.
3270 common,w32: Communicate with child in non-blocking mode.
3271 + commit 05a1e412332dd980353a4e3e59bc75ba40bae7fc
3272 * common/exechelp-w32.c (gnupg_spawn_process): Open streams in
3273 non-blocking mode if requested.
3275 common,w32: Extend gnupg_create_inbound_pipe et al.
3276 + commit f2d39a6d051413289c717b9cd2dc387a270b8e7c
3277 * common/exechelp-w32.c (do_create_pipe): Rename, add arguments, and
3278 create a stream if reqested.
3279 (gnupg_create_inbound_pipe): Use the extended function to open the
3280 stream if requested.
3281 (gnupg_create_outbound_pipe): Likewise.
3282 (gnupg_create_pipe): Update call site.
3284 common,w32: Make use of default_errsource in exechelp.
3285 + commit 727ca74bb942464217e678012cccbfc347ae08a5
3286 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
3287 Use them instead of gpg_error and gpg_error_from_syserror.
3289 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
3290 Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
3292 scd: Support ECC key generation.
3293 + commit 34439da2d62b964a914ace66bae7e38f619582a4
3294 * scd/app-openpgp.c (get_public_key): Fix a message.
3295 (change_keyattr_from_string, ecc_writekey): Call mpi_release sooner.
3296 (do_genkey): Add ECC support.
3298 2016-10-18 NIIBE Yutaka <gniibe@fsij.org>
3300 scd: minor cleanup to merge other works.
3301 + commit f1845f25dbea79c191427710fa56ed01e63a045b
3302 * scd/iso7816.c (do_generate_keypair): Use const char * for DATA.
3303 (iso7816_generate_keypair, iso7816_read_public_key): Likewise.
3304 * scd/app-openpgp.c (get_public_key): Follow the change.
3305 (do_genkey): Ditto. Use ERR instead of RC. Use u32 for CREATED_AT.
3307 2016-10-17 Justus Winter <justus@g10code.com>
3309 gpgscm: Initialize nesting stack.
3310 + commit c2e713d9e25ef8b61e8eeb3c01ee1e31cb70b794
3311 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize nesting
3314 2016-10-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
3316 doc: Document how to manually shut down gpg-agent.
3317 + commit 869c06efa791bbc8330becdb3f13f7cf9506257e
3318 * doc/gpg-agent.texi: document "gpgconf --kill gpg-agent" for manual
3321 This was requested in a side-comment in https://bugs.debian.org/840669
3323 doc: Point gpg-agent(1) at the right gpg manpage in SEE ALSO.
3324 + commit c53ce53ab1fa6a328c368f2a15e3ccd803f03ee2
3325 * doc/gpg-agent.texi (SEE ALSO): refer to @gpgname, instead of
3328 2016-10-17 NIIBE Yutaka <gniibe@fsij.org>
3330 scd: Fix keytocard for ECC.
3331 + commit 25428be52168fa9c581b7f11c95a5c63b25343b7
3332 * scd/app-openpgp.c (build_ecc_privkey_template): Size can be greater
3333 than 128 when it comes with public key for curve of larger field.
3335 gpgconf: Fix for --homedir.
3336 + commit 70a8584ec4389209762eb65bb77f20f7881577be
3337 * tools/gpgconf-comp.c (gpg_agent_runtime_change,
3338 scdaemon_runtime_change, dirmngr_runtime_change): Provide the homedir
3339 arguments by --homedir when it's not default.
3341 2016-10-16 Werner Koch <wk@gnupg.org>
3343 agent: Use straightforward names for the default socket names.
3344 + commit 0b0f9a3788cb5d3c26cec16cd24acc973069d280
3345 * configure.ac (GPG_AGENT_SOCK_NAME): Change name to *.extra.
3346 (GPG_AGENT_EXTRA_SOCK_NAME): Change name to *browser.
3348 2016-10-15 Werner Koch <wk@gnupg.org>
3350 agent: Move inotify code to common and improve it.
3351 + commit 2f7d4c38c9e7bcc14e6e0bf219d688c40a4afecb
3352 * common/sysutils.c: Include sys/inotify.h.
3353 (my_error_from_syserror, my_error): New.
3354 (gnupg_inotify_watch_socket): New.
3355 (gnupg_inotify_has_name): New.
3356 * agent/gpg-agent.c: Do not include sys/inotify.h.
3357 (my_inotify_is_name): Remove.
3358 (handle_connections): Remove HAVE_INOTIFY_INIT protected code and use
3361 2016-10-14 Kai Michaelis <kai@gnupg.org>
3363 dirmngr: use gnupg_mkdtemp instead of mkstemp.
3364 + commit c318561ef4c97f0c2767aef377531d58174060a1
3365 MinGW on debian does not support mkstemp.
3367 dirmngr: add VERSIONCHECK command.
3368 + commit f99c5fa1c970dc1122ac62371eb8d758f380ed57
3369 Given an application name and version VERSIONCHECK fetches the software
3370 version list from version.gnupg.org, verifies the signature and returns
3371 whenever the given version is older (UPDATE), current (CURRENT) or newer
3374 2016-10-13 Neal H. Walfield <neal@g10code.com>
3376 tests: Use shorter filenames.
3377 + commit 0c56ad5a8d89d69a9ed00571720b3b105f955214
3378 * tests/openpgp/tofu/cross-sigs/
3379 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg: Rename from this...
3380 * tests/openpgp/tofu/cross-sigs/EC38277E-1.gpg: .. to this.
3381 * tests/openpgp/tofu/cross-sigs/
3382 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: Rename from this...
3383 * tests/openpgp/tofu/cross-sigs/EC38277E-1.txt: .. to this.
3384 * tests/openpgp/tofu/cross-sigs/
3385 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: Rename from this...
3386 * tests/openpgp/tofu/cross-sigs/EC38277E-2.gpg: .. to this.
3387 * tests/openpgp/tofu/cross-sigs/
3388 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: Rename from this...
3389 * tests/openpgp/tofu/cross-sigs/EC38277E-2.txt: .. to this.
3390 * tests/openpgp/tofu/cross-sigs/
3391 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: Rename from this...
3392 * tests/openpgp/tofu/cross-sigs/EC38277E-3.txt: .. to this.
3393 * tests/openpgp/tofu/cross-sigs/
3394 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: Rename from
3396 * tests/openpgp/tofu/cross-sigs/EC38277E-secret.gpg: .. to this.
3397 * tests/openpgp/tofu/cross-sigs/
3398 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: Rename from this...
3399 * tests/openpgp/tofu/cross-sigs/871C2247-1.gpg: .. to this.
3400 * tests/openpgp/tofu/cross-sigs/
3401 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: Rename from this...
3402 * tests/openpgp/tofu/cross-sigs/871C2247-1.txt: .. to this.
3403 * tests/openpgp/tofu/cross-sigs/
3404 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: Rename from this...
3405 * tests/openpgp/tofu/cross-sigs/871C2247-2.gpg: .. to this.
3406 * tests/openpgp/tofu/cross-sigs/
3407 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: Rename from this...
3408 * tests/openpgp/tofu/cross-sigs/871C2247-2.txt: .. to this.
3409 * tests/openpgp/tofu/cross-sigs/
3410 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: Rename from this...
3411 * tests/openpgp/tofu/cross-sigs/871C2247-3.gpg: .. to this.
3412 * tests/openpgp/tofu/cross-sigs/
3413 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: Rename from this...
3414 * tests/openpgp/tofu/cross-sigs/871C2247-3.txt: .. to this.
3415 * tests/openpgp/tofu/cross-sigs/
3416 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: Rename from this...
3417 * tests/openpgp/tofu/cross-sigs/871C2247-4.gpg: .. to this.
3418 * tests/openpgp/tofu/cross-sigs/
3419 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: Rename from
3421 * tests/openpgp/tofu/cross-sigs/871C2247-secret.gpg: .. to this.
3422 * tests/openpgp/Makefile.am (TEST_FILES): Update accordingly.
3424 g10: Be more careful when checking if a binding is signed by a UTK.
3425 + commit 95d0f3e5eebd85dcf226dca14891a1215bfe93ae
3426 * g10/tofu.c (signed_by_utk): When checking if a key is signed by an
3427 ultimately trusted key, only consider the signatures on the specified
3429 * tests/openpgp/tofu.scm: Add test for the above.
3431 tests: Add test data to TEST_FILES.
3432 + commit d2d936fbe86d61b89cead95df633b2b575690e05
3433 * tests/openpgp/Makefile.am (TEST_FILES): Add new test data.
3435 g10: Be more careful when checking cross signatures.
3436 + commit 4c0389f8eb19ae7dfd9c5d784a629b386d93cc5c
3437 * g10/tofu.c (cross_sigs): When checking cross signatures, only
3438 consider the signatures on the specified user id.
3439 * tests/openpgp/tofu.scm: Add test for the above.
3440 * tests/openpgp/tofu/cross-sigs/
3441 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.gpg:
3443 * tests/openpgp/tofu/cross-sigs/
3444 1938C3A0E4674B6C217AC0B987DB2814EC38277E-1.txt: New file.
3445 * tests/openpgp/tofu/cross-sigs/
3446 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.gpg: New file.
3447 * tests/openpgp/tofu/cross-sigs/
3448 1938C3A0E4674B6C217AC0B987DB2814EC38277E-2.txt: New file.
3449 * tests/openpgp/tofu/cross-sigs/
3450 1938C3A0E4674B6C217AC0B987DB2814EC38277E-3.txt: New file.
3451 * tests/openpgp/tofu/cross-sigs/
3452 1938C3A0E4674B6C217AC0B987DB2814EC38277E-secret.gpg: New file.
3453 * tests/openpgp/tofu/cross-sigs/
3454 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.gpg: New file.
3455 * tests/openpgp/tofu/cross-sigs/
3456 DC463A16E42F03240D76E8BA8B48C6BD871C2247-1.txt: New file.
3457 * tests/openpgp/tofu/cross-sigs/
3458 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.gpg: New file.
3459 * tests/openpgp/tofu/cross-sigs/
3460 DC463A16E42F03240D76E8BA8B48C6BD871C2247-2.txt: New file.
3461 * tests/openpgp/tofu/cross-sigs/
3462 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.gpg: New file.
3463 * tests/openpgp/tofu/cross-sigs/
3464 DC463A16E42F03240D76E8BA8B48C6BD871C2247-3.txt: New file.
3465 * tests/openpgp/tofu/cross-sigs/
3466 DC463A16E42F03240D76E8BA8B48C6BD871C2247-4.gpg: New file.
3467 * tests/openpgp/tofu/cross-sigs/
3468 DC463A16E42F03240D76E8BA8B48C6BD871C2247-secret.gpg: New file.
3469 * tests/openpgp/tofu/cross-sigs/README: New file.
3471 g10: Still check if the key is an UTK or cross signed in batch mode.
3472 + commit e09166c77273f459c8f87cab9224f85808af2cba
3473 * g10/tofu.c (get_trust): If POLICY is ask, but we can't ask, don't
3474 bail immediately. Instead, check if the key in question is an
3475 ultimately trusted key or cross signed.
3477 g10: If an sqlite operation fails, map the error code to GPG_ERR_GENERAL
3478 + commit 5bf92e51dfdfb4f4746ecd817d8d2240ed27ea74
3479 * g10/tofu.c (get_policy): If an sqlite operation fails, map the error
3480 code to GPG_ERR_GENERAL.
3481 (ask_about_binding): Likewise.
3482 (build_conflict_set): Likewise.
3483 (get_trust): Likewise.
3484 (show_statistics): Likewise.
3485 (tofu_register_signature): Likewise.
3486 (tofu_register_encryption): Likewise.
3488 tests: Remove support for deprecated functionality.
3489 + commit 2282c3b761413dfa894300e70084bbd58908c0b1
3490 * tests/openpgp/tofu.scm: Don't remove tofu.d. It's deprecated.
3492 2016-10-12 Neal H. Walfield <neal@g10code.com>
3494 g10: When changing a TOFU binding's policy, update the conflict info.
3495 + commit 3ad17e72fa81d18c95732ddcd4def244f52bb5b1
3496 * g10/tofu.c (record_binding): Take an additional argument, CONFLICT.
3497 Set the binding's conflict accordingly. Update callers.
3499 g10: Make a singular string singular.
3500 + commit ca84f65c7cf2c6a08a01018519965a82e6c52cac
3501 * g10/tofu.c (ask_about_binding): Make the singular string singular.
3503 g10: Correctly determine whether a binding has a conflict.
3504 + commit 6fdf37f0831949cb279de6dc6b247ab2ed53fe5a
3505 * g10/tofu.c (build_conflict_set): A binding has a conflict is
3506 conflict is *not* NULL, not if it is NULL.
3508 g10: Fix a column's type in TOFU DB.
3509 + commit 78eda335fd1c29038b74b9cc912b6a4515fccd9f
3510 * g10/tofu.c (initdb): Change policy from a boolean to an integer.
3512 2016-10-07 Justus Winter <justus@g10code.com>
3514 tests: Rework test environment setup.
3515 + commit cbbf0a7a8da1757fea29cff0daaa42a6bbb95b26
3516 * tests/openpgp/setup.scm: Import one keyring at a time. This works
3517 around a yet to be investigated hang on Windows. It is also much
3520 tests: Improve handling of Windows newlines.
3521 + commit 1f76f8d8bc65fad98927c977baf4d5e36dafe52b
3522 * tests/gpgscm/lib.scm (string-split-newlines): New function.
3523 * tests/openpgp/default-key.scm: Use new function.
3524 * tests/openpgp/defs.scm: Likewise.
3525 * tests/openpgp/export.scm: Likewise.
3526 * tests/openpgp/import.scm: Likewise.
3528 gpgscm: Improve test of low-level functions.
3529 + commit 11eac7eb2fa3392a9aa052f8f5bb9875129ab84b
3530 * tests/gpgscm/t-child.c: Print large amounts of data.
3531 * tests/gpgscm/t-child.scm: Test that this works.
3533 gpgscm: Improve path handling.
3534 + commit dff266059813d22d1e2ba7e77279999cd41ceb75
3535 * tests/gpgscm/ffi.c (ffi_init): New Scheme variable '*win32*'.
3536 * tests/gpgscm/tests.scm (canonical-path): Correctly handle paths with
3537 drive letter on Windows. Use 'path-join'.
3538 (path-expand): Use 'path-join'.
3540 tools: Fix error handling.
3541 + commit 5afbfdfd59540cb882d891ff1f4afa73fe48f99a
3542 * tools/gpgtar-create.c (gpgtar_create): Do not crash if opening the
3545 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
3547 agent: Fix get_socket_name.
3548 + commit fb3b3e1e7a4219f61a834fd07809898918611c2f
3549 * agent/gpg-agent.c (get_socket_name): Fix the size of copying.
3551 2016-10-07 Werner Koch <wk@gnupg.org>
3553 gpg: Put extra parens around bit tests.
3554 + commit 5d43d28aa3c44c3a27fde823f467b0c4be1a58c2
3555 * g10/options.h (DBG_MPI): New.
3556 * g10/gpg.c (set_debug): Use macro or extra parens for binary operator.
3557 * g10/parse-packet.c (set_packet_list_mode): Use dbg macro.
3559 2016-10-07 NIIBE Yutaka <gniibe@fsij.org>
3561 agent, dirmngr, scd: Fix init_common_subsystems.
3562 + commit fc0b392e766af8127094e8b529d25abb84ad1d65
3563 * common/init.c (_init_common_subsystems): Don't call
3564 gpgrt_set_syscall_clamp in this function.
3565 * agent/gpg-agent.c, dirmngr/dirmngr.c, scd/scdaemon.c: Call
3566 gpgrt_set_syscall_clamp after npth_init.
3568 2016-10-06 Justus Winter <justus@g10code.com>
3570 common: Avoid pointer arithmetic on string literals.
3571 + commit 4aadc751f201f8f97c9c1f454e3a29803cce3edb
3572 * common/gettime.c (rfctimestamp): Use indexing instead.
3573 * common/signal.c (got_fatal_signal): Likewise.
3575 g10: Fix singular term.
3576 + commit b0d2526bc4e5c663eeffe04500420c70cee98712
3577 * g10/tofu.c (ask_about_binding): Fix singular message.
3579 g10: Use appropriate variant of 'abs'.
3580 + commit 73000d1ce0317210f5a9e5262404cc90258041ff
3581 * g10/tofu.c (ask_about_binding): Use 'labs' instead of 'abs'.
3583 sm: Remove statement without effect.
3584 + commit 2d446759bd43ae38fbce9a18c955285ca535bc08
3585 * sm/call-dirmngr.c (gpgsm_dirmngr_isvalid): Remove statement without
3588 g10: Fix testing for debug flag.
3589 + commit 6b626824c8e30b41c47724b5ccbf761937499512
3590 * g10/parse-packet.c (set_packet_list_mode): Fix testing for debug
3593 tools: Improve error handling.
3594 + commit 32f81f56a8be6d13dea0a64d24f52343c7e72c84
3595 * tools/gpg-wks-server.c (copy_key_as_binary): Initialize 'argv'.
3597 gpgscm: Update callsite of 'gnupg_spawn_process'.
3598 + commit 07cfb3b27a77491eae818d57f6eb660e75fa013f
3599 * tests/gpgscm/ffi.c (do_spawn_process): Adapt to the changes to
3600 'gnupg_spawn_process'.
3602 2016-10-05 Werner Koch <wk@gnupg.org>
3604 wks: Send key encrypted as required by draft -02.
3605 + commit 8ce800d21919eaaba7ed4f04f712292be310fd66
3606 * tools/gpg-wks-client.c (get_key): Encrypt.
3607 (encrypt_response): Take care of --fake-submission-addr.
3609 wks: Add option --fake-submission-addr to gpg-wks-client.
3610 + commit e514a5b725f0c997cef4362808b2778a3faa9cf8
3611 * tools/gpg-wks-client.c (oFakeSubmissionAddr): New.
3612 (opts): Add option --fake-submission-addr.
3613 (fake_submission_addr): New variable.
3614 (parse_arguments): Set it.
3615 (command_send): Use --fake-submission-addr.
3617 agent: Another minor fix to map_supervised_sockets.
3618 + commit 1cedc32c95c2e3c3ab98af23ddc2845d51e596c1
3619 * agent/gpg-agent.c (map_supervised_sockets): Remove debug message.
3620 Provide correct fd in the second error case.
3622 agent: Fix npth + supervised mode problem.
3623 + commit f57dc2b1e6f28d164f882373535dbcb0d632ca17
3624 * agent/gpg-agent.c (main): Initialize modules in supervised mode.
3626 2016-10-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
3628 agent: Fix error handling in map_supervised_sockets.
3629 + commit a2127c71dbf87c1710b43d91a733dd4c9b2953bc
3630 * agent/gpg-agent.c (map_supervised_sockets): the file descriptor to
3631 close on error is fd, not i.
3633 2016-10-04 Werner Koch <wk@gnupg.org>
3635 agent: Streamline the supervised mode code.
3636 + commit 1a9c8d78ece2f31fdb1a8e2be049aa71053061fa
3637 * agent/gpg-agent.c (get_socket_path): Rename to ...
3638 (get_socket_name): this. This is to comply with the GNU coding guide.
3639 Use xtrymalloc instead of malloc. Do not build for W32.
3640 (map_supervised_sockets): Use strtokenize and set the the socket names
3642 (main): Adjust for above change. Do not close the socket.
3644 agent: Adjust cleanup for supervised mode. Fix for W32.
3645 + commit afcfae7959f39e7d85309b9496e1f1cf9acd5cc2
3646 * agent/gpg-agent.c (opts) [W32]: Remove option --supervised.
3647 (is_supervised): Move from main() to global.
3648 (inhibit_socket_removal): New.
3649 (cleanup): Take care of supervise mode and INHIBIT_SOCKET_REMOVAL.
3650 (check_own_socket_thread): Set INHIBIT_SOCKET_REMOVAL instead of
3651 seting the socket names to empty.
3653 agent: Adjust supervised mode for the new default socket names.
3654 + commit dc059af1ff007842e2633e686c87d05daf1d45e3
3655 * agent/gpg-agent.c (main): In supervised mode do not provide default
3656 socket names. Unset DISPLAY and INSIDE_EMACS. Use log_error and
3659 2016-10-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
3661 agent: Implement --supervised command (for systemd, etc).
3662 + commit 9f92b62a51d2d60f038fdbe01602865c5933fa95
3663 * agent/gpg-agent.c (get_socket_path): New function for POSIX systems
3664 to return the path for a provided unix-domain socket.
3665 (map_supervised_sockets): New function to inspect $LISTEN_FDS and
3666 $LISTEN_FDNAMES and map them to the specific functionality offered by
3668 (main): Add --supervised command. When used, listen on already-open
3669 file descriptors instead of opening our own.
3670 * doc/gpg-agent.texi: Document --supervised option.
3672 2016-10-04 Justus Winter <justus@g10code.com>
3674 build,w32: Unconditionally build tests.
3675 + commit 4a232d23a8f51bebf9ee382e480248b4bde30f28
3676 * configure.ac (run_tests, RUN_TESTS, RUN_GPG_TESTS): Remove
3677 variables. They are misleadingly named, as they inhibit building the
3678 tests. There is no reason not to build the tests even when
3679 cross-compiling, as they are only run if one does 'make check'.
3680 * Makefile: Adapt accordingly.
3681 * tests/Makefile.am: Adapt accordingly. Avoid building 'asschk' on
3682 Windows as it uses non-portable functions.
3684 tests,w32: Do not expose 'glob' to gpgscm.
3685 + commit 41b510f9c510f8fd1b59eb0c5dd2e2b2deaf0a1b
3686 * tests/gpgscm/ffi.c (do_glob): Remove function.
3687 (ffi_init): Likewise.
3689 tests,w32: Avoid using 'glob'.
3690 + commit 949e70115eb2c04bd09da6477f6c433e6fd9a366
3691 * tests/openpgp/setup.scm: Avoid 'glob' which is not available on
3694 tools: Ignore existing directories in gpgtar.
3695 + commit fbc83c0cdd390473c044953fb774571ffc636c6d
3696 * tools/gpgtar-extract.c (extract_directory): Ignore existing
3697 directories now that we have '--directory'.
3699 2016-10-04 NIIBE Yutaka <gniibe@fsij.org>
3701 agent, dirmngr, scd: npth_init must be after fork.
3702 + commit eda17649f8bd3b8ce7bfc00a3c11cbcae63c845d
3703 * agent/gpg-agent.c (thread_init_once, initialize_modules): New.
3704 (main): Make sure no daemonizing-fork call after npth_init, and no npth
3705 calls before npth_init, with care of npth calls by assuan hooks.
3706 * dirmngr/dirmngr.c (thread_init): New.
3707 (main): Make sure npth_init must not be called before daemonizing fork.
3708 * scd/scdaemon.c (main): Likewise.
3710 2016-09-30 Werner Koch <wk@gnupg.org>
3712 agent: Remove the warning for the GKR hijacking.
3713 + commit a43739a2456a38c01704d8a52dca441055e29bc6
3714 * g10/call-agent.c (check_hijacking): Remove.
3715 (start_agent): Remove call.
3717 agent: Create the extra sockets in the standard socket dir.
3718 + commit 80cc16e0728256f6b07a12980e1f3512cf2324fa
3719 * agent/gpg-agent.c (main): Take the socketdir in account for the
3721 * tools/gpgconf.c (list_dirs): Add "agent-extra-socket" and
3722 "agent-browser-socket".
3724 agent: Kludge to allow disabling of the extra sockets.
3725 + commit 95cf7afff074613825f4442fa131145a2c0d3cf7
3726 * agent/gpg-agent.c (main): Check for special socket names.
3728 wks: Avoid long trustdb checks.
3729 + commit de67055aff916455cec89fab1d95177d3b383008
3730 * tools/wks-receive.c (verify_signature): Use --always-trust.
3732 2016-09-30 Justus Winter <justus@g10code.com>
3734 build: Fix build against libiconv.
3735 + commit 6054e8aaecbd355bb7559697eecaadf2225189b8
3736 * agent/Makefile.am: Add INCICONV and LIBICONV.
3737 * common/Makefile.am: Likewise.
3738 * tools/Makefile.am: Likewise.
3740 agent: Enable restricted, browser, and ssh socket by default.
3741 + commit e11686f973b35869d7b299ce4726003ac22e2e3a
3742 * agent/gpg-agent.c (main): Provide defaults for 'extra-socket' and
3743 'browser-socket', enable ssh socket by default, but do not emit the
3744 'SSH_AUTH_SOCK' variable unless it has been explicitly requested.
3745 * configure.ac (GPG_AGENT_{EXTRA,BROWSER}_SOCK_NAME): New definitions.
3746 * doc/gpg-agent.texi: Update documentation.
3748 w32: Fix STARTTLS on LDAP connections.
3749 + commit 8d37018050373a47566bf8ea0d894da20ed292c7
3750 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix build against
3753 2016-09-29 Werner Koch <wk@gnupg.org>
3755 wks: Partly implement draft-koch-openpgp-webkey-service-02.
3756 + commit 33800280da55a859e08dfa57f29144c89dd1bead
3757 * tools/gpg-wks.h (WKS_RECEIVE_DRAFT2): New.
3758 * tools/wks-receive.c: Include rfc822parse.h.
3759 (struct receive_ctx_s): Add fields PARSER, DRAFT_VERSION_2, and
3760 MULTIPART_MIXED_SEEN.
3761 (decrypt_data): Add --no-options.
3762 (verify_signature): Ditto.
3763 (new_part): Check for Wks-Draft-Version header. Take care of text
3765 (wks_receive): Set Parser and pass a flag value to RESULT_CB.
3766 * tools/gpg-wks-client.c (read_confirmation_request): New.
3767 (main) <aRead>: Call read_confirmation_request instead of
3768 process_confirmation_request.
3769 (command_receive_cb): Ditto. Add arg FLAGS..
3770 (decrypt_stream_status_cb, decrypt_stream): New.
3771 (command_send): Set header Wks-Draft-Version.
3772 * tools/gpg-wks-server.c (struct server_ctx_s): Add field
3774 (sign_stream_status_cb, sign_stream): New.
3775 (command_receive_cb): Set draft flag.
3776 (send_confirmation_request): Rework to implement protocol draft
3779 * tools/gpg-wks.h (DBG_MIME_VALUE, DBG_PARSER_VALUE): New.
3780 (DBG_MIME, DBG_PARSER, DBG_CRYPTO): New. Use instead of a plain
3781 opt.debug where useful.
3782 * tools/gpg-wks-client.c (debug_flags): Add "mime" and "parser".
3783 * tools/gpg-wks-server.c (debug_flags): Ditto.
3785 tools: Convey signeddata also to the part_data callback in mime-parser.
3786 + commit c738f92c195d91662ddc7848cc3c92c7f091f1f8
3787 * tools/mime-parser.c (mime_parser_parse): Factor some code out to ...
3788 (process_part_data): new.
3789 ((mime_parser_parse): Also call process_part_data for signed data.
3791 tools: Allow retrieval of signed data from mime-maker.
3792 + commit f776757ea94542e2f425840dddaf3e65b0ff7757
3793 * tools/mime-maker.c (find_part): New.
3794 (mime_maker_get_part): New.
3796 tools: Change mime-maker to write out CR,LF.
3797 + commit 29db3be6e8dbc9b4dd52cd1781106fa9fa3954a5
3798 * tools/mime-maker.c (struct part_s): Add field PARTID.
3799 (struct mime_maker_context_s): Add field PARTID_COUNTER.
3800 (dump_parts): Print part ids.
3801 (mime_maker_add_header): Assign PARTID.
3802 (mime_maker_add_container): Ditto.
3803 (mime_maker_get_partid): New.
3804 (write_ct_with_boundary): Remove.
3805 (add_header): Strip trailing white spaces.
3806 (write_header): Remove trailing spaces trimming. Add arg BOUNDARY.
3807 Handle emdedded LFs.
3808 (write_gap, write_boundary, write_body): New.
3809 (write_tree): Use new functions.
3811 tools: Simplify the mime-maker container creation.
3812 + commit 95d60c6ce9e8a7a7741553af957978c1f91547c5
3813 * tools/mime-maker.c (struct part_s): Remove field MEDIATYPE.
3814 (release_parts): Ditto.
3815 (dump_parts): Print a body line only if tehre is a body.
3816 (mime_maker_add_header): Check for body or container.
3817 (mime_maker_add_container): Remove arg MEDIATYPE. Change all callers.
3818 (mime_maker_end_container): New.
3820 tools: Give mime parser callbacks access to the rfc822 parser.
3821 + commit 4ac138c84d0f344ca9442f90c96f0e1f76062a4a
3822 * tools/mime-parser.c (mime_parser_context_s): Add field MSG.
3823 (parse_message_cb): Set it.
3824 (mime_parser_rfc822parser): New.
3825 * tools/mime-parser.h: Declare rfc822parse_t for the new prototype.
3827 2016-09-29 Justus Winter <justus@g10code.com>
3829 dirmngr: Fix STARTTLS on LDAP connections.
3830 + commit 9e6f8a55ed04f876635792125858ee76a948802a
3831 * dirmngr/ks-engine-ldap.c (my_ldap_connect): Fix unfortunate typo.
3833 2016-09-28 Werner Koch <wk@gnupg.org>
3835 gpg: Improve WKD by importing only the requested UID.
3836 + commit cbf2ac66692daa7a324108724698d60d6c7e473f
3837 * g10/keyserver.c: Include mbox-util.h.
3838 (keyserver_import_wkd): Do not use the global import options but
3839 employ an import filter.
3841 gpg: Reject import if an import filter removed all user ids.
3842 + commit 80393661bdfa7ae0288644513575e8a5d708b084
3843 * g10/import.c (any_uid_left): New.
3844 (import_one): Check that a UID is left.
3846 gpg: Make import filter data object more flexible.
3847 + commit c9237bf2ba2c49588576dcece756ebf5fe89aada
3848 * g10/main.h (import_filter_t): New.
3849 * g10/import.c (struct import_filter_s): Declare struct.
3850 (import_keep_uid, import_drop_sig): Replace by ...
3851 (import_filter): new. Adjust all users.
3852 (cleanup_import_globals): Move code to ...
3853 (release_import_filter): new.
3854 (save_and_clear_import_filter): New.
3855 (restore_import_filter): New.
3857 gpg: Make sure that internal key import is done with a binary stream.
3858 + commit 829949f3823c2306022928ce782f9c9d9c5f1cc8
3859 * g10/import.c (import_keys_internal): Open stream in binary mode.
3861 2016-09-27 Justus Winter <justus@g10code.com>
3863 build: Do not link gpg-connect-agent against npth.
3864 + commit 20a16833ee2bb05f735377f705899302bcf2b4d3
3865 * tools/Makefile.am: Do not link gpg-connect-agent against npth.
3867 build: Fix check for resolver library on macOS.
3868 + commit 2e64ccb0f96d615b1eb87e37f230a5d761aa9c36
3869 * configure.ac: Check for the mangled name of 'dn_skipname' first.
3871 common: Correctly handle modules relying on npth.
3872 + commit 2b23a321ac0b07beeac1dfa8d71f223e66c49b71
3873 * common/Makefile.am (common_sources): Drop 'call-gpg.{c,h}'.
3874 (with_npth_sources): New variable.
3875 (libcommonpth_a_SOURCES): Use the new variable.
3877 2016-09-27 NIIBE Yutaka <gniibe@fsij.org>
3879 agent, sm: Set CTX after start_agent.
3880 + commit 4e4843e735f32b5e79a51d8062da55bfaab6ad77
3881 * g10/call-agent.c (agent_keytocard): Assign parm.ctx after start_agent.
3882 * sm/call-agent.c (gpgsm_agent_pksign, gpgsm_scd_pksign)
3883 (gpgsm_agent_readkey, gpgsm_agent_scd_serialno)
3884 (gpgsm_agent_scd_keypairinfo, gpgsm_agent_marktrusted)
3885 (gpgsm_agent_passwd, gpgsm_agent_get_confirmation)
3886 (gpgsm_agent_ask_passphrase, gpgsm_agent_keywrap_key)
3887 (gpgsm_agent_export_key): Likewise.
3889 dirmngr: Removal of no-libgcrypt.o.
3890 + commit 836b72363168cbb0051fc2356f61788468db211c
3891 * dirmngr/Makefile.am (dirmngr_ldap_LDADD): Remove no-libgcrypt.o.
3893 agent: Allow only specific digest size for ECDSA.
3894 + commit 98bc6f480ac973dccce90378dc021a2e24e58704
3895 * agent/pksign.c (do_encode_dsa): Fix validation of digest size.
3897 2016-09-22 Neal H. Walfield <neal@g10code.com>
3899 g10: When adding a user id, make sure the keyblock has been prepared.
3900 + commit df5353b95eefc13135e7df50a7c197f270d6080d
3901 * g10/keyedit.c (keyedit_quick_adduid): Call merge_keys_and_selfsig on
3902 KEYBLOCK before adding the user id.
3903 * tests/openpgp/quick-key-manipulation.scm: Make sure that the key
3904 capabilities don't change when adding a user id.
3905 (key-data): New function.
3907 2016-09-20 Justus Winter <justus@g10code.com>
3909 tests: Add documentation, make interactive debugging possible.
3910 + commit 7e0379a75475abfd15e0623913795779ff0f40d7
3911 * tests/openpgp/README: Add documentation about debugging and
3912 interfacing with GnuPG.
3913 * tests/openpgp/run-tests.scm (test::run-sync): Hand stdin to the
3914 child so that we can use a repl in the tests.
3916 tests: Port the quick key manipulation test to Scheme.
3917 + commit 6c4c0e3ac2aeafba7a2b7c2dd92a18be8aec92b1
3918 * tests/openpgp/Makefile.am (XTESTS): Add new test.
3919 * tests/openpgp/quick-key-manipulation.scm: New file.
3921 tests: Remove list of tests from the test runner.
3922 + commit 49fae88fd170f2bdc12a1794a2637260e3c73a73
3923 * tests/openpgp/run-tests.scm: Drop hardcoded list.
3925 tests: Reduce runtime of excessive test.
3926 + commit 988a04b98d42ff9cc9e62007ebcc0e4c03f4047d
3927 * tests/openpgp/conventional-mdc.scm: Use only two plaintexts when
3928 iterating over all cipher algorithms.
3931 + commit 285d193f1e1464495bce57bd0f323468515b4513
3932 * dirmngr/dns-stuff.c (get_dns_cert): Fix type in fallback code.
3934 2016-09-20 Andre Heinecke <aheinecke@intevation.de>
3936 dirmngr: Open file CRL's in binary mode.
3937 + commit 4644c27514f34f5efc555d43672a25088a611a72
3938 * dirmngr/crlcache.c (crl_cache_load): Open file in binary mode.
3940 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
3942 doc: Fix a xref usage.
3943 + commit b9b4ff857034df51e055ceddce567ca97e94e075
3946 2016-09-20 Ineiev <ineiev@gnu.org>
3948 doc: Do not end section names with "."
3949 + commit 8078d8246fa38c3e478fc9a542117468780ace00
3952 2016-09-20 NIIBE Yutaka <gniibe@fsij.org>
3954 doc: minor fix for @xref.
3955 + commit 9c1b3bc25a1b38c4eda31bf12ccc10d94bb05212
3956 * doc/yat2m.c (proc_texi_cmd): Captalize "see" for xref.
3958 2016-09-20 Justus Winter <justus@g10code.com>
3960 doc: Implement simple '@ref'erences.
3961 + commit 91d5e6f805aaf24a3f1f03a95998f757dce04cb2
3962 * doc/yat2m.c (proc_texi_cmd): Handle '@ref'.
3964 2016-09-20 Ineiev <ineiev@gnu.org>
3966 doc: Fix full stops.
3967 + commit 0eaab1af48f600b636183321e4a4e9c6bc361610
3968 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
3969 doc/instguide.texi, doc/scdaemon.texi, doc/specify-user-id.texi,
3970 doc/tools.texi: Fix.
3973 + commit 32bcf8b73ede9c8f1469821a54dedc6be75241d2
3974 * doc/debugging.texi, doc/dirmngr.texi, doc/gpg-agent.texi,
3975 doc/gpg.texi, doc/tools.texi: Fix.
3977 doc: Improve markup.
3978 + commit 377624207e9b2895ce00dfc4d1163d72f349841f
3979 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
3980 doc/howto-create-a-server-cert.texi, doc/scdaemon.texi,
3981 doc/specify-user-id.texi, doc/tools.texi: Fix.
3983 doc: Replace rfc0123 with RFC-0123.
3984 + commit 9d2b7bff12b268638465da222ca7cc9042bba072
3985 * doc/gpg.texi, doc/gpgsm.texi, doc/specify-user-id.texi: Fix.
3987 doc: Add missing description of datafile.
3988 + commit 789916281c25e737d8fb44add5ca61f8fd25de2f
3989 * doc/gpg.texi: Fix.
3991 doc: Replace UTF8 with UTF-8.
3992 + commit 00d6d8bc8772e48b6f200d359e11eb93ab65f51f
3993 * doc/gpg.texi: Fix.
3996 + commit f25e04005af5831053ba194a09e3afa48d1e162b
3997 * doc/dirmngr.texi, doc/gpg.texi, doc/gpgsm.texi,
3998 doc/howto-create-a-server-cert.texi,
3999 doc/scdaemon.texi, doc/tools.texi: Fix.
4001 doc: Eliminate inconsistent UK English.
4002 + commit 825c1dfb3ee4c1704f42eaf064161b9731c20134
4003 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/scdaemon.texi,
4004 doc/tools.texi: Fix.
4006 doc: Use the right reference commands.
4007 + commit f32689f833838a742243e94c900e98f5b59a5811
4008 * doc/debugging.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
4009 doc/tools.texi: Fix.
4011 doc: Fix "Not(e) that you can(not) abbreviate".
4012 + commit 20a27d8a57c4c990fcada4278a1ce2e6fc9043e9
4013 * doc/dirmngr.texi, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
4014 doc/scdaemon.texi, doc/tools.texi: Fix.
4017 + commit fa346508fe323e61cf157ee30c13301e1d2117c0
4018 * doc/debugging.texi, doc/dirmngr.texi, doc/glossary.texi
4019 * doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi
4020 * doc/instguide.texi, doc/opt-homedir.texi, doc/scdaemon.texi
4021 * doc/specify-user-id.texi, doc/tools.texi: Fix.
4023 doc: Fix Martin Hellman's name.
4024 + commit 858af2b3473e436af53470d53cdac334edce9f09
4025 * doc/contrib.texi: Fix.
4027 2016-09-19 Justus Winter <justus@g10code.com>
4029 tests: Refine the repl function.
4030 + commit 884e78efe1f3ba50513bf81c8b4804d22b25eac4
4031 * tests/gpgscm/repl.scm (repl): Add an argument 'environment'.
4032 (interactive-repl): Add an optional argument 'environment'.
4034 tests: Implement interpreter shutdown using exceptions.
4035 + commit 9a0659a65c52378de1c4736a0eddf8518eb20948
4036 * tests/gpgscm/ffi.c (ffi_init): Rename 'exit' to '_exit'.
4037 * tests/gpgscm/ffi.scm (*interpreter-exit*): New variable.
4038 (throw): New function.
4039 (exit): New function.
4041 tests: Correctly handle exceptions in resource handling macros.
4042 + commit 58007e52593e6b0f838de2e464ceeacf22757018
4043 * tests/gpgscm/tests.scm (letfd): Correctly release resources when an
4044 exception is thrown.
4045 (with-working-directory): Likewise.
4046 (with-temporary-working-directory): Likewise.
4049 tests: Refine exception handling.
4050 + commit ab483eff9a8254adf127cdee178e14ba74f0a2b3
4051 * tests/gpgscm/init.scm (catch): Bind all arguments to '*error*' in
4052 the error handler, update and fix comment.
4053 (*error-hook*): Revert to original definition.
4054 * tests/gpgscm/tests.scm (tr:do): Adapt accordingly.
4055 * tests/openpgp/issue2419.scm: Likewise.
4057 tests: Use descriptive temporary file names.
4058 + commit 83a406b38a21d0eeb4963db824a27783c212d2fb
4059 * tests/gpgscm/ffi.c (do_get_isotime): New function.
4060 (ffi_init): Add parameter 'scriptname', bind new function and
4062 * tests/gpgscm/ffi.h (ffi_init): Update prototype.
4063 * tests/gpgscm/main.c (main): Hand in the script name.
4064 * tests/gpgscm/tests.scm (mkdtemp): Use current time and script name
4065 for the names of temporary directories.
4067 2016-09-19 Werner Koch <wk@gnupg.org>
4069 gpg: Fix regression in fingerprint printing.
4070 + commit 998643666c016dbacf10f813c22efc97deadec65
4071 * g10/keylist.c (list_keyblock_print): Do not depend calling
4072 print_fingerprint on opt.keyid_format.
4074 dirmngr: Silence diagnostics about starting housekeeping.
4075 + commit 5bf1facc973eb6e0bfab0f8f17129534dec56e04
4076 * dirmngr/dirmngr.c (housekeeping_thread): Print info only in very
4079 2016-09-19 Justus Winter <justus@g10code.com>
4081 g10: Fix memory leak.
4082 + commit 086d219d96caa3501048aff82a282481e07c195b
4083 * g10/tofu.c (build_conflict_set): Free 'kb_all'.
4085 2016-09-19 Werner Koch <wk@gnupg.org>
4087 doc: Update license information.
4088 + commit 3899041cd2877ce9584c7bd149f232f35a07c399
4089 * tests/fake-pinentries/COPYING: Rename to ...
4090 * COPYING.CC0: this. Add a note on the scope of this license.
4091 * COPYING.LIB: Add a note on the scope of this license.
4092 * AUTHORS (License): Mention CC) license.
4094 gpgscm: Fix gcrypt version check.
4095 + commit 47baeac50ccaaf06dc8b0cebece50f47754de6ca
4096 * tests/gpgscm/main.c (main): Check against required and not installed
4099 gpg: Avoid malloc failure due to no key signatures.
4100 + commit 18bbefa27f9e47e1062ee4d7af09487632795ba7
4101 * g10/keyedit.c (check_all_keysigs): Check early for no key
4102 signatures. Use xtrycalloc.
4104 2016-09-17 NIIBE Yutaka <gniibe@fsij.org>
4106 Fix comment and format.
4107 + commit 7305d27f36148a7fb8c2f4ef5b94774cbd21b18e
4108 * agent/protect-tool.c (main): Fix comment.
4109 * doc/DETAILS (colon listings): Fix list.
4110 * tests/openpgp/multisig.test: Fix comment.
4112 2016-09-17 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
4115 + commit 0d67241e317b172a258a910c02d90639e2b08fce
4116 * NEWS, acinclude.m4, agent/command-ssh.c, agent/command.c,
4117 agent/gpg-agent.c, agent/keyformat.txt, agent/protect-tool.c,
4118 common/asshelp.c, common/b64enc.c, common/recsel.c, doc/DETAILS,
4119 doc/HACKING, doc/Notes, doc/TRANSLATE, doc/dirmngr.texi,
4120 doc/faq.org, doc/gpg-agent.texi, doc/gpg.texi, doc/gpgsm.texi,
4121 doc/instguide.texi, g10/armor.c, g10/gpg.c, g10/keyedit.c,
4122 g10/mainproc.c, g10/pkclist.c, g10/tofu.c, g13/sh-cmd.c,
4123 g13/sh-dmcrypt.c, kbx/keybox-init.c, m4/pkg.m4, sm/call-dirmngr.c,
4124 sm/gpgsm.c, tests/Makefile.am, tests/gpgscm/Manual.txt,
4125 tests/gpgscm/scheme.c, tests/openpgp/gpgv-forged-keyring.scm,
4126 tests/openpgp/multisig.test, tests/openpgp/verify.scm,
4127 tests/pkits/README, tools/applygnupgdefaults,
4128 tools/gpg-connect-agent.c, tools/mime-maker.c, tools/mime-parser.c:
4129 minor spelling cleanup.
4131 move some file encodings to UTF-8.
4132 + commit 215180d1ce6c93e2b4969d746c83ac4c055d25ef
4133 * dirmgnr/cdblib.c: comment used unnecesary hyphenation
4134 * dirmngr/crlcache.h: comment was iso-8859-1
4135 * doc/contrib.text: list contributors using UTF-8 (now we can
4136 acknowledge many more people using their preferred orthography)
4138 At least one other files remains in a non-UTF-8 encoding, which i'm
4139 not sure what to do with:
4141 - build-aux/speedo/w32/inst.nsi is ISO-8859-1, but maybe Windows needs
4144 2016-09-16 Neal H. Walfield <neal@g10code.com>
4146 g10: On failure, propagate the return code.
4147 + commit 6e930f0e4077bc7aa3d28b1ba649a82d62427d87
4148 * g10/tofu.c (tofu_register_encryption): If get_trust fails, set RC.
4150 g10: Don't ignore failure. On failure, rollback.
4151 + commit 221b0bd0e5946edaea7135bc3b6f3c5c0fc6dbca
4152 * g10/tofu.c (tofu_set_policy): If record_binding fails, fail. If the
4153 function fails, rollback the transaction.
4155 g10: Load the key block if the supplied user id list is NULL.
4156 + commit c2e563421e4fd4f0910642aa7b171bcf0b374b01
4157 * g10/tofu.c (tofu_register_encryption): Load the key block if
4158 USER_ID_LIST is NULL.
4160 g10: Use the accessor functions for accessing and comparing key ids.
4161 + commit af196342bf44ce6dc42111d37539dec7ee3b3d82
4162 * g10/tofu.c (get_trust): Use the pk_main_keyid accessor function.
4163 (tofu_register_signature): Likewise.
4164 (tofu_register_encryption): Likewise.
4165 (tofu_set_policy): Likewise and also use pk_keyid and keyid_cmp.
4167 2016-09-16 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
4169 po: convert localizations to UTF-8.
4170 + commit 4ab8107063b641ed74fc4c9bf98304bcea573178
4171 * po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po: convert to UTF-8
4173 This was an automated conversion process, using:
4175 for x in po/{it,et,pl,ro,gl,es,el,sk,pt,eo,hu}.po; do
4176 cs=$(grep charset= $x | cut -f2 -d= | cut -f1 -d\\)
4177 iconv -f $cs -t UTF-8 < $x >$x.tmp
4178 sed "s/$cs/UTF-8/" < $x.tmp > $x
4182 2016-09-16 NIIBE Yutaka <gniibe@fsij.org>
4184 scd: Add support of ECC pubkey attribute.
4185 + commit dd06d33655bc872a6310edac8e448419479d3312
4186 * scd/app-openpgp.c (ECC_FLAG_PUBKEY): New.
4187 (send_key_attr, get_public_key, ecc_writekey, do_auth, do_decipher)
4188 (parse_algorithm_attribute): Check ECC_FLAG_DJB_TWEAK.
4189 (build_ecc_privkey_template): Add ECC_Q and ECC_Q_LEN.
4190 Support offering public key when ECC_FLAG_PUBKEY sets.
4191 (ecc_writekey): Supply ECC_Q and ECC_Q_LEN.
4192 (parse_algorithm_attribute): Parse pubkey-required byte.
4194 2016-09-15 Justus Winter <justus@g10code.com>
4196 g10: Add missing header.
4197 + commit c0e620cee86b5dacc941964bd187bba0dfa90eea
4198 * g10/trustdb.c: Include 'mbox-util.h'.
4200 2016-09-15 Neal H. Walfield <neal@g10code.com>
4202 g10: Only consider bindings matching the signer's user id.
4203 + commit 3f7f7447316f57d002d683af4ad30ac5730b9ebe
4204 * g10/trustdb.c (tdb_get_validity_core): If the signer's user id
4205 subpacket is present, only consider matching user ids.
4207 g10: Don't include the signature when printing a binding's validity.
4208 + commit dcc64663051f8af82abc11e2699649c3b35936db
4209 * g10/mainproc.c (check_sig_and_print): When printing information
4210 about a binding don't include the current signature.
4212 2016-09-15 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
4214 tests/fake-pinentries: fake pinentries for downstream developers.
4215 + commit 3248182d1b5a03098ee797c980fa0f0ec06e716f
4216 * tests/fake-pinentries/README.txt and
4217 tests/fake-pinentries/fake-pinentry.{sh,py,pl,php}}: New public
4218 domain (CC0) files to encourage better test suite practices from
4219 downstream developers.
4220 * tests/fake-pinentries/COPYING (new): a copy of
4221 https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
4223 spelling: conenction should be connection.
4224 + commit 167273ee9d3c04f29835aa2d12fde52eebf61efb
4225 * dirmngr/server.c, sm/server.c: s/conenction/connection/
4227 spelling: correct achived to achieved.
4228 + commit 7fafc3c49901c118b47d4d13a41fb3575c1f9e4b
4231 2016-09-15 NIIBE Yutaka <gniibe@fsij.org>
4233 tests/gpgscm: Fix use of pointer.
4234 + commit 68eb5fbd37c31ed7c0c916656131eea7bb58d13d
4235 * tests/gpgscm/scheme-private.h (struct scheme): Use (void *) for
4237 * tests/gpgscm/scheme.c (alloc_cellseg): Use (void *) for cp. Use
4238 (void *) for coercion of address calculation.
4240 2016-09-14 Neal H. Walfield <neal@g10code.com>
4242 g10: Fix whitespace.
4243 + commit 9799b5d18f8fd29872b75c4d70d370af2b4e9a89
4244 * g10/tofu.c (show_statistics): Fix whitespace.
4246 g10: Correctly compute the euclidean distance.
4247 + commit 05b2b13efd8ecea86d31af863cbf82c8b38dc94f
4248 * g10/tofu.c (write_stats_status): Correctly compute the euclidean
4250 (show_statistics): Likewise.
4252 g10: Change the default TOFU policy for UTKs to good.
4253 + commit ca91caabb5798f67c69ee96657c7cb402e7db0df
4254 * g10/tofu.c (get_trust): Change the default TOFU policy for UTKs to
4257 g10: Add missing static qualifier.
4258 + commit 9d62b79e62ef2690e6522fe1621140fbfc10695c
4259 * g10/tofu.c (cross_sigs): Add missing static qualifier.
4261 g10: Default to the "good" TOFU policy for keys signed by a UTK.
4262 + commit 8df8aa13c795e400324a782fbaea578c8f2a1398
4263 * g10/tofu.c (signed_by_utk): New function.
4264 (get_trust): If a key is signed by an ultimately trusted key, then
4265 set any bindings to good.
4267 2016-09-14 Werner Koch <wk@gnupg.org>
4269 gpg: Emit a new error status line in --quick-adduid.
4270 + commit f4e11f2e9e8f58fd5f0df3148e6d7ccef0f84232
4271 * g10/keyedit.c (menu_adduid): Emit an ERROR status for an existsing
4274 gpg: Allow use of "default" algo for--quick-addkey.
4275 + commit 0fd332bc1f6f1f10c96da0cc91203925d3ac81eb
4276 * g10/keygen.c (quick_generate_keypair): Write a status error.
4277 (parse_algo_usage_expire): Set a default curve.
4279 2016-09-13 Werner Koch <wk@gnupg.org>
4281 gpg: Improve usability of --quick-gen-key.
4282 + commit 30a011cfd6ec172cc460e59f0904a26fe2d68632
4283 * g10/keygen.c (FUTURE_STD_): New constants.
4284 (parse_expire_string): Handle special keywords.
4285 (parse_algo_usage_expire): Allow "future-default". Simplify call to
4286 parse_expire_string.
4287 (quick_generate_keypair): Always allow an expiration date. Replace
4288 former "test-default" by "future-default".
4290 2016-09-12 Werner Koch <wk@gnupg.org>
4292 gpg: Avoid mixing up status and colon line output.
4293 + commit 31fc420727f45dd081f8ad5d056da6675dad29f2
4294 * g10/keylist.c (list_keyblock_colon): Avoid calling functions which
4295 trigger a status line output before having printed a LF.
4297 2016-09-12 Justus Winter <justus@g10code.com>
4299 tests: Simplify tofu test.
4300 + commit aa81e32df7189c3eb44d4c602fd63f5b3f6a9e49
4301 * tests/openpgp/tofu.scm: Simplify now that we only have one db
4304 2016-09-10 Ben Kibbey <bjk@luxsci.net>
4306 Portability build fix.
4307 + commit eddcba038025cdbd58aaf67cafd6d83f0ea042d5
4308 * kbx/Makefile.am: Add NETLIBS.
4309 * dirmngr/Makefile.am: Ditto for dirmngr_ldap.
4311 Fix symbol conflict.
4312 + commit 937ec53eff290c3d916faebc23218c9272671c02
4313 * g10/gpgcompose.c: Rename struct siginfo to signinfo.
4315 2016-09-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
4317 gpg: print fingerprint regardless of keyid-format.
4318 + commit d757009a24eb856770fc3a3729e2f21f54d2a618
4319 * g10/keylist.c (print_fingerprint): use compact format independent of
4320 keyid-format; (print_key_line): always print the fingerprint
4322 2016-09-08 Werner Koch <wk@gnupg.org>
4324 gpg: Remove option --yes from gpgv.
4325 + commit 30a9f53a0f2af6b98c26b8ddc0b4b87c38416f2a
4326 * g10/gpgv.c (opts): Remove --yes.
4327 (main): Always set opt.ANSWER_YES.
4329 gpg: Add options --output and --yes to gpgv.
4330 + commit a8363b7d0bcc77b55226d5fe8f972214c968ddc3
4331 * g10/gpgv.c (oOutput, oAnswerYes): New.
4332 (opts): Add --output and --yes.
4333 (main): Implement options.
4335 gpg: Make --output work with --verify.
4336 + commit bbe940c095f2bca7a1ca5f8e68ca1af98350a885
4337 * g10/mainproc.c (proc_plaintext): Handle opt.output.
4339 2016-09-07 Werner Koch <wk@gnupg.org>
4341 dirmngr: Terminate on deletion of the socket file (Linux only).
4342 + commit 6308c300196ae85fd82ed383217219e0206640a4
4343 * dirmngr/dirmngr.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
4344 (oDisableCheckOwnSocket): New.
4345 (opts): Add --disable-check-own-socket.
4346 (disable_check_own_socket): New var.
4347 (parse_rereadable_options): Set that var.
4348 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
4349 (handle_connections) [HAVE_INOTIFY_INIT]: New.
4351 2016-09-07 Neal H. Walfield <neal@g10code.com>
4353 g10: Use the time a signature was seen, not the embedded time, for stats
4354 + commit bde29a46cedbbd2a5dfe7c91a6277c0a4ff50825
4355 * g10/tofu.c (ask_about_binding): Use the time that a signature was
4356 seen, not allegedly generated, when generating statistics.
4358 tests: Don't use --tofu-db-format.
4359 + commit a937eef2d4e80cd43095802176d3db5e7fd94008
4360 * tests/openpgp/tofu.scm: Remove use of --tofu-db-format, which is
4363 g10: Check for a new binding a bit later.
4364 + commit ee06b3f7889bd99c28ac68f4781bda77d67eed00
4365 * g10/tofu.c (build_conflict_set): Check for the current key after
4366 looking for conflicts and removing any '!'.
4368 g10: Change TOFU code to respect --faked-system-time.
4369 + commit 7b3e8572e3bb8a65d20577a48009251fdc7b1910
4370 * g10/tofu.c (record_binding): New parameter now. Update callers.
4371 Don't use SQLite's strftime('%s','now') to get the current time, use
4373 (ask_about_binding): Likewise.
4374 (get_trust): New parameter now. Update callers.
4375 (show_statistics): Likewise.
4376 (tofu_register_signature): Don't use SQLite's strftime('%s','now') to
4377 get the current time, use gnupg_get_time().
4378 (tofu_register_encryption): Likewise.
4380 g10: Use the correct conversion function.
4381 + commit 56c18408d4955713d9c4e634367c7912d6564651
4382 * g10/tofu.c (show_statistics): Use string_to_ulong, not
4385 2016-09-07 Werner Koch <wk@gnupg.org>
4387 gpg: Fix format string issues in tofu.
4388 + commit 97a67d42dc946b2d6ed81723d86e37002b5931b3
4389 * g10/tofu.c (write_stats_status): Use ulong for MESSSAGES. Fix
4390 format strings. Simplify by using the new write_status_printf.
4392 2016-09-06 Neal H. Walfield <neal@g10code.com>
4394 g10: Make sure some functions are passed a primary key.
4395 + commit 13ddc17ddb266d74033d5739fec932034fa85c72
4396 * g10/tofu.c (get_trust): Make sure the caller provides a primary key.
4397 (tofu_register_signature): Likewise.
4399 g10: Tweak TOFU's verbosity.
4400 + commit ee19eacd1d688d3a98cd66e5ef2f42079eb829f1
4401 * g10/tofu.c (time_ago_str): Only show the most significant unit.
4402 * g10/tofu.c (show_statistics): Tweak the output.
4404 g10: Only show the TOFU warning once per key.
4405 + commit 67cef405cbfad2e53fc388dd6591ee4f7cb0d973
4406 * g10/tofu.c (show_statistics): Return whether to call show_warning.
4407 Move the warning from here...
4408 (show_warning): ... to this new function.
4409 (tofu_get_validity): If show_statistics returns a non-zero value, call
4412 g10: Record and show statistics for encrypted messages when using TOFU.
4413 + commit 875ac9216f1383851a82bd240cadb17c7112f6a8
4414 * g10/tofu.c: Include "sqrtu32.h".
4415 (struct tofu_dbs_s.s): Rename get_trust_gather_other_keys to
4416 get_trust_gather_signature_stats. Add new field
4417 get_trust_gather_encryption_stats.
4418 (initdb): Create the encryptions table.
4419 (ask_about_binding): Show the encryption statistics too.
4420 (tofu_register): Rename from this...
4421 (tofu_register_signature): ... to this and update callers.
4422 (tofu_register_encryption): New function.
4423 (write_stats_status): Add parameters encryption_count,
4424 encryption_first_done and encryption_most_recent. Update callers.
4425 Compute the trust using the euclidean distance of the signature and
4426 signature count. Compare with twice the threshold. Include
4427 encryption count information in the TFS and TOFU_STATS lines.
4428 (show_statistics): Also get information about the encrypted messages.
4429 * g10/trustdb.c (tdb_get_validity_core): Use it.
4431 g10: Simplify the binding statistics shown for a TOFU conflict.
4432 + commit a9e6db6c7e23d9f4b8de59f5cabbf9eb6a59e626
4433 * g10/tofu.c (ask_about_binding): Simplify binding statistics.
4435 2016-09-06 Justus Winter <justus@g10code.com>
4437 gpgscm: Fix detection of unbalanced parenthesis.
4438 + commit f2249b737055f84842778285bbeff5e61fa55225
4439 * tests/gpgscm/main.c (load): Print error message.
4440 * tests/gpgscm/scheme.c (opexe_0): Correctly report nesting level when
4444 + commit 213b3cf465fb091dc0a205d1a08b88b950ffb85f
4445 * tests/openpgp/multisig.scm: Add missing parenthesis.
4447 2016-09-06 Werner Koch <wk@gnupg.org>
4449 agent: Terminate on deletion of the socket file (Linux only).
4450 + commit 650356148af43ea619bec12e599a4981b147d5f8
4451 * configure.ac (AC_CHECK_FUNCS): Chec for inotify_init.
4452 * agent/gpg-agent.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
4453 (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
4454 (handle_connections) [HAVE_INOTIFY_INIT]: New.
4456 2016-09-05 Justus Winter <justus@g10code.com>
4458 tests: Speed up the test suite.
4459 + commit 46c4333c372f0e1ad2aadc411490c2a330b4c5a6
4460 * tests/openpgp/run-tests.scm (test::run-sync): Pass additional
4461 arguments to the test.
4462 (test::run-sync-quiet): Likewise.
4463 (test::run-async): Likewise.
4464 (run-tests-{parallel,sequential}-isolated): Create a tarball of the
4465 gnupghome, then extract it for each test.
4466 * tests/openpgp/setup.scm: Refactor into functions, add an interface
4467 to tar-up the created environment, and untar it multiple times.
4469 common: Restore a simpler variant of 'gnupg_wait_process'.
4470 + commit c97bde2dfeab23a84b4788d998934ac49ff5b797
4471 * common/exechelp-posix.c (gnupg_wait_process): Use the code prior to
4474 common: Fix error handling.
4475 + commit 845e2cc201d6a2cdb151e39e29516d26cb49311c
4476 * common/exechelp-posix.c (store_result): Use xtrymalloc.
4477 (gnupg_wait_processes): Likewise, and check result.
4479 2016-09-05 Neal H. Walfield <neal@g10code.com>
4481 g10: Don't add user attributes to the TOFU DB.
4482 + commit 9082bde01cc18e32504ce39d55ea6dd3c05dddec
4483 * g10/trustdb.c (tdb_get_validity_core): Skip user attributes.
4485 2016-09-05 Werner Koch <wk@gnupg.org>
4487 agent: Silence --debug IPC output for connections from self.
4488 + commit 0b99d1fd2a80b8efaacc731027d2b2ecd9eca699
4489 * agent/command.c (server_local_s): Add fields 'greeting_seen' and
4490 'connect_from_self'.
4491 (io_monitor): Do not log connections from self.
4492 (start_command_handler): Set flag 'connect_from_self'.
4493 * agent/gpg-agent.c (check_own_socket_thread): Disable logging.
4494 (do_start_connection_thread): Do not log conection start and
4495 termination if IPC debugging is enabled.
4497 agent: Small improvement of the server's local state.
4498 + commit 2eeb5551c37659fdd59e8537fc77a9e7fb6a9204
4499 * agent/command.c (sserver_local_s): Change flags to use only one bit.
4500 (option_handler): Make an atoi return 1 or 0.
4502 2016-09-05 Neal H. Walfield <neal@g10code.com>
4504 g10: Refactor cross sig check code.
4505 + commit 1f1f56e606c1cb28eec68c60bd8bcb7ab30805de
4506 * g10/tofu.c (BINDING_NEW): New enum value.
4507 (BINDING_CONFLICT): Likewise.
4508 (BINDING_EXPIRED): Likewise.
4509 (BINDING_REVOKED): Likewise.
4510 (ask_about_binding): Move cross sig check from here...
4511 (get_trust): ... and the conflict set building from here...
4512 (build_conflict_set): ... to this new function.
4513 (format_conflict_msg_part1): Replace parameter conflict with
4514 conflict_set. Drop parameter fingerprint. Update callers.
4515 (ask_about_binding): Drop unused parameter conflict and redundant
4516 parameter bindings_with_this_email_count. Rename parameter
4517 bindings_with_this_email to conflict_set. Update callers.
4519 2016-09-05 Justus Winter <justus@g10code.com>
4521 tests: Update README.
4522 + commit 65a7563edbbab8f93fe901f932065687508788de
4523 * tests/openpgp/README: Update.
4525 tests: Pass flags to test driver.
4526 + commit 059c79d8b447a3baa9ad0b4d3367bdb64dd2ef3b
4527 * tests/openpgp/Makefile.am (xcheck): Pass flags to 'run-tests.scm'.
4529 common: Improve waiting for processes on POSIX.
4530 + commit e33111fcdac08ed2ddfbdf59b1f790569b42f695
4531 * common/exechelp-posix.c (struct terminated_child): New definition.
4532 (terminated_children): New variable.
4533 (store_result): New function.
4534 (get_result): Likewise.
4535 (gnupg_wait_process): Store results that were not requested and
4536 consider previously stored results.
4538 waitpid(2) may return information about terminated children that we
4539 did not yet request, and there is no portable way to wait for a
4540 specific set of children. As a workaround, we store the results of
4541 children for later use.
4543 2016-09-05 Werner Koch <wk@gnupg.org>
4545 dirmngr: Exclude D lines from the IPC debug output.
4546 + commit de623474db3ba402c9bbd872ab6f932f46cbdde9
4547 * dirmngr/dirmngr.h: Include asshelp.h.
4548 * dirmngr/server.c (server_local_s): Add inhibit_dara_logging fields.
4549 (data_line_write): Implement logging inhibit.
4550 (data_line_cookie_close): Print non-logged D lines.
4551 (cmd_wkd_get, cmd_ks_get, cmd_ks_fetch): Do not log D lines.
4552 (dirmngr_assuan_log_monitor): New.
4553 * dirmngr/dirmngr.c (main): Register monitor function.
4555 common: Add an assuan logging monitor.
4556 + commit 0ac671f8a2b65a4b339f615c6420287a549779fa
4557 * common/asshelp.c (my_log_monitor): New var.
4558 (my_libassuan_log_handler): Run that monitor.
4559 (setup_libassuan_logging): Add arg to set a log monitor and change all
4562 gpg: New export filter drop-subkey.
4563 + commit 0a4a03e5310946b0866a0f6a34031eda7a240162
4564 * g10/import.c (impex_filter_getval): Add properties for key packets.
4565 * g10/export.c (export_drop_subkey): New var.
4566 (cleanup_export_globals): Release that var.
4567 (parse_and_set_export_filter): Add filter "drop-subkey".
4568 (apply_drop_subkey_filter): New.
4569 (do_export_stream): Run that filter.
4571 common: Add string operator gt,ge,le,lt to recsel.
4572 + commit 959cd8903fd012e63dbb156db56708dd3934b5df
4573 * common/recsel.c (recsel_parse_expr): Add them.
4574 (recsel_dump): Print them.
4575 (recsel_select): Evaluate them.
4577 gpg: Use a common filter_getval for import and export.
4578 + commit c8e0d37f4152d1341ef562a190fce93a0386a759
4579 * g10/import.c (filter_getval): Rename to ...
4580 (impex_filter_getval): this. Make global.
4581 (apply_keep_uid_filter, apply_drop_sig_filter): Adjust.
4582 * g10/export.c (filter_getval): Remove.
4583 (apply_drop_sig_filter): Use impex_filter_getval.
4585 2016-09-03 NIIBE Yutaka <gniibe@fsij.org>
4587 scd: Fix an action after card removal.
4588 + commit f9e49c80e706a27d5e30d4b3237ff26367a67130
4589 * scd/command.c (update_card_removed): Call apdu_close_reader here.
4591 2016-09-02 Werner Koch <wk@gnupg.org>
4593 wks: Add framework for policy flags.
4594 + commit 46362cbc0e2260e989820795a6e4245c72335172
4595 * tools/call-dirmngr.c (wkd_get_policy_flags): New.
4596 * tools/gpg-wks.h (struct policy_flags_s, policy_flags_t): New.
4597 * tools/wks-util.c (wks_parse_policy): New.
4598 * tools/gpg-wks-client.c (command_send): Get the policy flags to show
4600 * tools/gpg-wks-server.c (get_policy_flags): New.
4601 (process_new_key): get policy flag and add a stub for "auth-submit".
4602 (command_list_domains): Check policy flags.
4604 dirmngr: Add --policy-flags option to WKD_GET.
4605 + commit 505ee45106d6aa2902bbdd6326f8eb7527c273c4
4606 * dirmngr/server.c (cmd_wkd_get): Add new option.
4608 common: Check read errors in name-value.c.
4609 + commit fc445b36fafc8a4cc3ce5a675ac42df7a9d9a02a
4610 * common/name-value.c: Check for read errors.
4612 2016-09-02 NIIBE Yutaka <gniibe@fsij.org>
4614 scd: Release the card reader after card removal.
4615 + commit 8fe81055762d9c9e6f03fb7853a985c94ef73ac3
4616 * scd/command.c (update_reader_status_file): Call apdu_close_reader.
4618 scd: Clean up unused shutdown method.
4619 + commit d1ae7103352fbda2a05f098379cd3043a0ab5566
4620 * scd/apdu.c (shutdown_ccid_reader, apdu_shutdown_reader): Remove.
4621 (reset_ccid_reader): Don't set shutdown_reader.
4622 * scd/ccid-driver.c (ccid_shutdown_reader): Remove.
4624 agent: invoke scdaemon with --homedir.
4625 + commit 8b6c0bae33bdc36892f4595806665ce61f77dfd2
4626 * agent/call-scd.c (start_scd): Supply --homedir option when it's not
4629 po: Update Japanese translation.
4630 + commit afdfc954b35370fbf03aaf8dc0e496410923aa4e
4633 2016-09-01 Neal H. Walfield <neal@g10code.com>
4635 g10: End transaction earlier.
4636 + commit 85fad6c34c08b2850580e0644faba62d3a501b84
4637 * g10/tofu.c (ask_about_binding): End the transaction earlier.
4639 g10: Don't consider cross-signed keys to be in conflict.
4640 + commit b410a3cb7683fc7c2a253e23130c44df42a6203c
4641 * g10/tofu.c (cross_sigs): New function.
4642 (ask_about_binding): If apparently conflicting keys are cross signed,
4643 then don't mark them as conflicting.
4645 2016-09-01 Werner Koch <wk@gnupg.org>
4647 gpg: Avoid homedir creation by --list-config.
4648 + commit 38d369de13acb95208a0ed8d1cf82ac19173688f
4649 * g10/gpg.c (main): Do not register a key for the list config
4652 gpg: Simplify code to print VALIDSIG.
4653 + commit fde9fa81d3d3b25a929b532cc1960d9d9f454a0c
4654 * g10/mainproc.c (check_sig_and_print): Use hexfingerprint and
4655 write_status_printf.
4657 gpg: Add new function write_status_printf.
4658 + commit 6bdadae00512b4907826f6754cdb220d06e1ac6d
4659 * g10/cpr.c (write_status_printf): New.
4661 gpg: Fix printing of pubkey algo in --verbose signature verify.
4662 + commit 37e3c897252babc203447be9d2f286a4507875ad
4663 * g10/sig-check.c (check_signature2): Replace arg PK by R_PK and
4664 change the semantics. Also clear the other R_ args on function entry,
4665 use gpg_error() and change retturn type to gpg_error_t.
4666 * g10/mainproc.c (do_check_sig): Add arg R_PK.
4667 (list_node): Pass NULL for new arg.
4668 (check_sig_and_print): Rework to make use of the returned PK.
4670 2016-09-01 Neal H. Walfield <neal@g10code.com>
4672 g10: When asking about a TOFU binding conflict, default to unknown.
4673 + commit 3d44e5e8a8d1d8bf6cf5d387f50d75f84d804412
4674 * g10/tofu.c (ask_about_binding): Default to unknown.
4676 g10: Add support for TRUST_NEVER.
4677 + commit f2e5cb6ffb55e49a05d452cd85e45f6f67c20abb
4678 * g10/pkclist.c (do_we_trust): Handle TRUST_NEVER, which can be
4679 returned by the TOFU trust model.
4680 (do_we_trust_pre): Print a different message if TRUSTLEVEL is
4682 (check_signatures_trust): Improve comment.
4685 + commit 0cb0ea1633955fb7acd33fe993a4ae4e96e83ae3
4686 * g10/tofu.c (show_statistics): Improve the text (key and user id, not
4689 g10: Remove unused parameter.
4690 + commit 00c2850393ecc320f591f511c3534286964780c2
4691 * g10/tofu.c (show_statistics): Remove unused parameter sig_exclude.
4694 2016-09-01 Werner Koch <wk@gnupg.org>
4696 gpg: Copy the correct digest for use by TOFU.
4697 + commit 3e67b50490aef087b5769bb35145d23f6657780f
4698 * g10/mainproc.c (do_check_sig): Use the current digest algo.
4700 2016-09-01 Neal H. Walfield <neal@g10code.com>
4702 g10: Be careful to not be in a transaction during long operations.
4703 + commit 4cbd2a690c5e5ed2dff49c1f4fc867b31fca689a
4704 * g10/tofu.c (begin_transaction): New parameter only_batch. If set,
4705 only start a batch transaction if there is none and one has been
4706 requested. Update callers.
4707 (tofu_suspend_batch_transaction): New function.
4708 (tofu_resume_batch_transaction): Likewise.
4709 (ask_about_binding): Take a ctrl_t, not a tofu_dbs_t. Update
4710 callers. Gather statistics within a transaction. Suspend any batch
4711 transaction when getting user input.
4712 (get_trust): Take a ctrl_t, not a tofu_dbs_t. Update callers.
4713 Enclose in a transaction.
4714 (tofu_get_validity): Use a batch transaction, not a normal
4717 2016-09-01 Werner Koch <wk@gnupg.org>
4719 tests: Run test requiring the network only in maintainer-mode.
4720 + commit babeb6f8a9b1f8341652145bad58be6cd49e0712
4721 * dirmngr/Makefile.am (noinst_PROGRAMS, TESTS): Add module_net_tests.
4722 (module_tests): Move t-dns-test to ...
4723 (module_net_tests): here.
4725 2016-08-31 Werner Koch <wk@gnupg.org>
4727 wks: Send a final message to the user.
4728 + commit 04c042f3f2a631bc6e772c33f8da5e7aa7b1902a
4729 * tools/gpg-wks-server.c (send_congratulation_message): New.
4730 (check_and_publish): Call it.
4732 wks: Relax permission check for the top directory.
4733 + commit e4eac16330449f3893c11820c15e07d58fb807ff
4734 * tools/gpg-wks-server.c: Allow S_IXOTH for the top directory.
4736 2016-08-31 Neal H. Walfield <neal@g10code.com>
4738 g10: On a TOFU conflict, show whether the uids are expired or revoked.
4739 + commit edfb6934caf16c6afcfd82d684d8ae9c79674d10
4740 * g10/tofu.c (struct signature_stats): Add fields is_expired and
4742 (signature_stats_prepend): Clear *stats when allocating it.
4743 (ask_about_binding): Also show whether the user ids are expired or
4746 doc: Add a help text for tofu.conflict.
4747 + commit b69b2cb082e39a7eb56082fa80219f6f14fbd2b4
4748 * doc/help.txt (.gpg.tofu.conflict): New help text.
4750 g10: Always trust ultimately trusted keys.
4751 + commit 28c235ae757e9036b0b96efc28931fa5cc74f7ee
4752 * g10/tofu.c (get_trust): Always return TRUST_ULTIMATE for ultimately
4755 g10: Fix error detection.
4756 + commit 5b48960a8a2555db7bf992261de9e922838c9913
4757 * g10/tofu.c: first_seen == 0 is not an error.
4759 g10: Update a key's TOFU policy in a transaction.
4760 + commit e4d5e3cb0d10e8f77c7100d42cfdb32051de1c18
4761 * g10/tofu.c (tofu_set_policy): Do the update in a transaction.
4762 * g10/gpg.c (main): Do a TOFU policy update in a batch transaction.
4764 g10: Fix the show old policy functionality when changing a TOFU policy.
4765 + commit 247eef005cf4c34e9a82227e4ab7823e04911be4
4766 * g10/tofu.c (record_binding): Fix the show old policy functionality.
4768 g10: Drop unused argument.
4769 + commit 70df5a8fd781d8774d835384ca28c4d8518bb9d0
4770 * g10/tofu.c (begin_transaction): Remove unused option only_batch.
4772 gpg: Move state local to tofu.c to a private structure.
4773 + commit 268f6b7a3403d036882b4af384ba7ab2f8c8355f
4774 * g10/gpg.h (struct server_control_s.tofu): Move fields in_transaction
4775 and batch_update_started from here...
4776 * g10/tofu.c (struct tofu_dbs_s): ... to here.
4778 gpg: Avoid name spaces clash with future sqlite versions (2).
4779 + commit b8184d2d74e5ddd5eb68836b53fe5568110e14dd
4780 * g10/gpgsql.h (gpgsql_arg_type): Rename SQLITE_ARG_END to
4781 GPGSQL_ARG_END, SQLITE_ARG_INT to GPGSQL_ARG_INT, SQLITE_ARG_LONG_LONG
4782 to GPGSQL_ARG_LONG_LONG, SQLITE_ARG_STRING to GPGSQL_ARG_STRING, and
4783 SQLITE_ARG_BLOB to GPGSQL_ARG_BLOB.
4785 2016-08-31 Werner Koch <wk@gnupg.org>
4787 gpg: Fix regression in gpgv's printing of the keyid.
4788 + commit 76304a971fe507ea659b952932ea899463ab7166
4789 * g10/keyid.c (keystr): Take care of KF_NONE != KF_DEFAULT.
4791 2016-08-30 Neal H. Walfield <neal@g10code.com>
4793 g10: Improve TOFU batch update code.
4794 + commit 371ae66e9d5c7524431773c4a479fcae1ea3b652
4795 * g10/gpg.h (tofu): Rename field batch_update_ref to
4796 batch_updated_wanted.
4797 * g10/tofu.c (struct tofu_dbs_s): Rename field batch_update to
4798 in_batch_transaction.
4799 (begin_transaction): Only end an extant batch transaction if we are
4800 not in a normal transaction. When ending a batch transaction, really
4801 end it. Update ctrl->tofu.batch_update_started when starting a batch
4803 (end_transaction): Only release a batch transaction if ONLY_BATCH is
4804 true. When releasing a batch transaction, assert that there is no
4805 open normal transaction. Only allow DBS to be NULL if ONLY_BATCH is
4807 (tofu_begin_batch_update): Don't update
4808 ctrl->tofu.batch_update_started.
4809 (opendbs): Call end_transaction unconditionally.
4811 g10: If a key has no valid user ids, change TOFU to return TRUST_NEVER.
4812 + commit d0451440c036106895a291f9ca1c53c2d5159f8f
4813 * g10/tofu.c (tofu_get_validity): If a key has no valid (non-expired)
4814 user ids, change TOFU to return TRUST_NEVER.
4816 g10: Change tofu_register & tofu_get_validity to process multiple uids.
4817 + commit 6052c147091935fc0321ba24f4a44146df70ef01
4818 * g10/tofu.c (tofu_register): Take a list of user ids, not a single
4819 user id. Only register the bindings, don't compute the trust. Thus,
4820 change return type to an int and remove the may_ask parameter. Update
4822 (tofu_get_validity): Take a list of user ids, not a single user id.
4823 Update callers. Observe signatures made by expired user ids, but
4824 don't include them in the trust calculation.
4826 g10: Support nested transactions on the TOFU DB.
4827 + commit 33e97813d72996d22a295773c64261f5588ce9dd
4828 * g10/gpg.h (struct server_control_s): New field in_transaction.
4829 * g10/tofu.c (struct tofu_dbs_s): Remove fields savepoint_inner and
4830 savepoint_inner_commit.
4831 (begin_transaction): Increment CTRL->TOFU.IN_TRANSACTION. Name the
4832 savepoint according to the nesting level.
4833 (end_transaction): Name the savepoint according to the nesting level.
4834 Decrement CTRL->TOFU.IN_TRANSACTION.
4835 (rollback_transaction): Likewise. Only ever rollback a non-batch
4837 (opendbs): Assert that there are no outstanding transactions.
4839 g10: Print the info text in more situations.
4840 + commit 4c2abb221b29c9e8e0876fe986472b562ee1c99f
4841 * g10/tofu.c (ask_about_binding): Print the info text when the policy
4842 is ask and there are multiple bindings with the email address.
4844 g10: Print the formatted text.
4845 + commit 0858f141a8b8d0c098a0c6097176b7225c4a9db8
4846 * g10/tofu.c (ask_about_binding): Print the formatted text, not the
4849 g10: When showing a user id's trust, pass the current signature.
4850 + commit 8dda861ad80228da76cd5c97467008c87b8b6eee
4851 * g10/mainproc.c (check_sig_and_print): Consistently pass SIG to
4854 2016-08-29 Werner Koch <wk@gnupg.org>
4856 w32: Fix build regression due to 2aa0701.
4857 + commit 8b3e691ffbaaa218d309d5aaf8f37532308558ff
4858 * common/logging.c (fun_writer): Always declare 'name_for_err'.
4860 gpgconf: Print the plain socket directory with --list-dirs.
4861 + commit 8e3fa5a4b205c534de2142e5d071712f957cf06a
4862 * tools/gpgconf.c (list_dirs): Add plain socketdir out.
4864 common: Add a default socket name feature.
4865 + commit 2aa0701013f703ad93e17da3345c493c08aa04ee
4866 * common/logging.c (log_set_socket_dir_cb): New.
4867 (socket_dir_cb): New.
4868 (set_file_fd): Allow "socket://".
4869 (fun_writer): Implement default socket name.
4870 * common/init.c (_init_common_subsystems): Register default socket.
4872 gpg: Make decryption of -R work w/o --try-secret-key or --default-key.
4873 + commit bdbd03608b6f508ac4732f9986a046de8a85a311
4874 * g10/getkey.c (enum_secret_keys): At state 3 enumerate the keys in all
4875 cases not just when --try-all-secrets is used.
4877 2016-08-25 Werner Koch <wk@gnupg.org>
4879 gpg: Fix false negatives in Ed25519 signature verification.
4880 + commit 0a5a854510fda6e6990938a3fca424df868fe676
4881 * g10/pkglue.c (pk_verify): Fix Ed25519 signatrue values.
4882 * tests/openpgp/verify.scm (msg_ed25519_rshort): New
4883 (msg_ed25519_sshort): New.
4884 ("Checking that a valid Ed25519 signature is verified as such"): New.
4886 common: Rename an odd named function.
4887 + commit 74a082bc10960b2d65d4d1e31152f988a40a2225
4888 * common/openpgp-oid.c (oid_crv25519): Rename to oid_cv25519.
4889 (openpgp_oid_is_crv25519): Rename to openpgp_oid_is_cv25519. Change
4892 gpg: New option --with-tofu-info.
4893 + commit 19d12be3cea5b4ee8153287a2f2442913a5e07a1
4894 * g10/gpg.c (oWithTofuInfo): New.
4895 (opts): Add --with-tofu-info.
4896 (main): Set opt.with_tofu_info.
4897 * g10/options.h (struct opt): Add field WITH_TOFU_INFO.
4898 * g10/tofu.c (show_statistics): Add optional arg OUTFP and enter
4899 special mode if not NULL. Change all callers.
4900 (tofu_write_tfs_record): New.
4901 * g10/keylist.c (list_keyblock_colon): Do not print the tofu policy as
4902 part of the "uid" record. Print a new "tfs" record if the new option
4904 * tests/openpgp/tofu.scm (getpolicy): Change from UID to TFS record.
4906 2016-08-24 Werner Koch <wk@gnupg.org>
4908 gpg: Change TOFU_STATS to return timestamps.
4909 + commit 0f1f02acc1cdcc2cf74a97b05507bb1f062f8af2
4910 * g10/tofu.c (write_stats_status): Add arg FP to print a colon
4911 formated line. Adjust for changed TOFU_STATS interface.
4912 (show_statistics): Let the query return timestamps and use
4913 gnupg_get-time to compute the "time ago" values.
4915 common: Guarantee that gnupg_get_time does not return an error.
4916 + commit 5eb2682686b32bd82096924eeabd0c5bd347adfd
4917 * common/gettime.c (gnupg_get_time): Abor if time() failed.
4918 (gnupg_get_isotime): Remove now useless check.
4919 (make_timestamp): Remove check becuase we already checked this modulo
4920 the faked time thing.
4922 wks: Add command --supported to gpg-wks-client.
4923 + commit 460568d341851ac79dd100e00e4eafcac1318148
4924 * tools/gpg-wks-client.c (aSupported): New.
4925 (opts): Add --supported.
4926 (parse_arguments): Ditto.
4927 (main): Call command_supported.
4928 (command_supported): New.
4930 2016-08-22 Werner Koch <wk@gnupg.org>
4932 wks: Install gpg-wks-client under libexec.
4933 + commit c47386a11a32c5ed3b5a31fad5c3e9a9a020ca7b
4934 * tools/Makefile.am (bin_PROGRAMS): Move gpg-wks-client to ...
4935 (libexec_PROGRAMS): ...here.
4937 common: Remove unused vars in simple-pwquery.
4938 + commit 62f3e0027724b23c0de5be6d1e66cfdeef7e7bc9
4939 * common/simple-pwquery.c (agent_send_option): Remove unused vars.
4940 (simple_query): Ditto.
4941 (agent_open): Ditto. Return RC on error.
4942 (simple_pwquery): Remove unused vars. Remove shadowing of 'p'.
4944 2016-08-18 Werner Koch <wk@gnupg.org>
4947 + commit 6bee88dd067e03e7767ceacf6a849d9ba38cc11d
4950 po: Update German translation.
4951 + commit 0a32153316855224acda268edb60b80d4e64b12f
4954 2016-08-18 Åka Sikrom <a4@hush.com>
4956 po: Update Norwegian translation.
4957 + commit ec88d7c8a9af864fad8ab5e0b9c4eb90ddcdd630
4960 2016-08-18 Ineiev <ineiev@gnu.org>
4962 po: Update Russian translation.
4963 + commit 6f6bfbf175653faa5cf560a7174e81a599247e80
4966 2016-08-18 Werner Koch <wk@gnupg.org>
4968 gpg: Add import filter "drop-sig".
4969 + commit 1b55e864421f88b8c8088639682767076abbeab0
4970 * g10/import.c (import_drop_sig): New variable.
4971 (cleanup_import_globals): Release that.
4972 (parse_and_set_import_filter): Add filter "drop-sig".
4973 (filter_getval): Implement properties for drop-sig.
4974 (apply_drop_sig_filter): New.
4975 (import_one): Apply that filter.
4977 dirmngr: Remove all system daemon features.
4978 + commit d83ba4897bf217d1045c58d1b99e52bd31c58812
4979 * dirmngr/dirmngr.h (opts): Remove fields 'system_service' and
4981 * common/homedir.c (dirmngr_sys_socket_name): Remove.
4982 (dirmngr_user_socket_name): Rename to ...
4983 (dirmngr_socket_name): this. Change call callers.
4984 * common/asshelp.c (start_new_dirmngr): Remove the system socket
4986 * tools/gpgconf.c (list_dirs): Do not print "dirmngr-sys-socket".
4987 * sm/server.c (gpgsm_server): Adjust for removed system socket feature.
4988 * dirmngr/server.c (cmd_getinfo): Ditto.
4989 (cmd_killdirmngr): Remove check for system daemon.
4990 (cmd_reloaddirmngr): Ditto.
4991 * dirmngr/dirmngr.c (USE_W32_SERVICE): Remove macro.
4993 (opts): Remove --service.
4994 (w32_service_control): Remove.
4995 (real_main, call_real_main) [W32]: Remove wrapper.
4996 (main): Remove Windows system service feature. Remove system dameon
4997 feature. Use only the "~/.gnupg/dirmngr_ldapservers.conf" file.
4998 * dirmngr/certcache.c (load_certs_from_dir): Remove warning in the
5000 * dirmngr/crlcache.c (DBDIR_D): Always use "~/.gnupg/crls.d".
5001 * dirmngr/ocsp.c (validate_responder_cert): Do not call
5002 validate_cert_chain which was used only in system daemon mode.
5003 * dirmngr/validate.c (validate_cert_chain): Always use the code.
5005 gpg: New option --sender.
5006 + commit de6e3217cde81df370926571e0fd65e468619803
5007 * g10/options.h (struct opt): Add field 'sender_list'.
5008 * g10/gpg.c: Include mbox-util.h.
5010 (opts): Add option "--sender".
5011 (main): Parse option.
5013 2016-08-16 Werner Koch <wk@gnupg.org>
5015 agent: Allow import of overly large keys.
5016 + commit b5d63e81d5c472647decc7687cef91fee0378eb8
5017 * agent/command.c (MAXLEN_KEYDATA): Double the size.
5019 2016-08-14 Werner Koch <wk@gnupg.org>
5021 g13: Allow the use of a g13tab label for --mount.
5022 + commit f02ceb6c6e94c6fbfaeeafe728397be38107de4d
5023 * g13/mount.c (g13_mount_container): Do not run the first access check
5024 if syshelp is required.
5026 g13: Implement --umount for dm-crypt.
5027 + commit b781113cf1391926dedf8dc943624d3bb9726318
5028 * g13/g13.c (main): Implement command --umount.
5029 * g13/mount.c (g13_umount_container): use the syshelper if needed.
5030 * g13/backend.c (be_umount_container): New.
5031 * g13/be-dmcrypt.c (be_dmcrypt_umount_container): New.
5032 * g13/call-syshelp.c (call_syshelp_run_umount): New.
5033 * g13/sh-cmd.c (cmd_umount): New.
5034 (register_commands): Register UMOUNT.
5035 * g13/sh-dmcrypt.c (sh_dmcrypt_umount_container): New.
5037 2016-08-13 Werner Koch <wk@gnupg.org>
5039 g13: Fix double free bug.
5040 + commit c9a0bccc77c93c08d6980a1718dfaf238a559eb9
5041 * g13/sh-cmd.c (cmd_mount, cmd_resume): Do not xfree TIUPLES.
5043 g13: Consider g13tab for a mount command.
5044 + commit 700920640211168ae1c97d0adef74ba8615d90bb
5045 * g13/sh-cmd.c (cmd_getkeyblob): New.
5046 (register_commands): Register it.
5047 * g13/call-syshelp.c (getkeyblob_data_cb): New.
5048 (call_syshelp_get_keyblob): New.
5049 * g13/mount.c: Include callsyshelp.h.
5050 (g13_mount_container): Ask syshelp whether the filename is managed by
5051 g13tab. Call syshelp to get the encrypted keyblob in this case.
5053 g13: Move some function around.
5054 + commit 37e932658cbd873ac96ff7e2067a97dffc2e0507
5055 * g13/keyblob.c (g13_keyblob_decrypt): Move to ...
5056 * g13/server.c: to here.
5057 * g13/suspend.c, g13/mount.c: Include server.h.
5058 * g13/Makefile.am (g13_syshelp_SOURCES): Add keyblob.c
5060 g13: New command --find-device.
5061 + commit b57f55321295846d47144bd6b39fbbcac0127421
5062 * common/status.h (STATUS_BLOCKDEV: New.
5063 * g13/call-syshelp.c: Include "call-syshelp.h".
5064 (finddevice_status_cb, call_syshelp_find_device): New.
5065 * g13/g13.c (aFindDevice): New.
5066 (opts): Add "--find-device".
5067 (main): Implement --find-device.
5068 * g13/sh-cmd.c (cmd_finddevice): New.
5069 (register_commands): Register new command.
5071 2016-08-12 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
5073 Avoid leading ": " in the log output when there are no prefixes.
5074 + commit 3a75ff65fba24ea2d024bd8fef633ab7d8f7d520
5075 * common/logging.c (do_logv): When no prefixes have been requested,
5076 omit the ": " separator, since there is nothing on the left-hand
5079 Call log_set_prefix() with human-readable labels.
5080 + commit 61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e
5081 * agent/preset-passphrase.c, agent/protect-tool.c, dirmngr/dirmngr.c
5082 * dirmngr/t-http.c, g10/gpg.c, g10/gpgv.c, g13/g13-syshelp.c
5083 * g13/g13.c, kbx/kbxutil.c, scd/scdaemon.c, sm/gpgsm.c
5084 * tests/gpgscm/main.c, tools/gpg-check-pattern.c
5085 * tools/gpg-connect-agent.c, tools/gpgconf.c, tools/gpgtar.c
5086 * tools/symcryptrun.c: Invoke log_set_prefix() with
5087 human-readable labels.
5089 2016-08-11 Werner Koch <wk@gnupg.org>
5091 gpg: New option --input-size-hint.
5092 + commit 70b5d7c43a57a44dad60c2c700a263610748d8f4
5093 * g10/options.h: Include stdint.h.
5094 (struct opt): Add field 'input_size_hint'.
5095 * g10/gpg.c (oInputSizeHint): New.
5096 (opts): Add --input-size-hint.
5097 (main): Set opt.input_size_hint.
5098 * g10/progress.c (write_status_progress): Use the hint.
5100 common: New function string_to_u64.
5101 + commit 0698324cde3e0cef7eeb6cfd1640c5eefdf13698
5102 * common/stringhelp.c (string_to_u64): New.
5103 * dirmngr/http.c (longcounter_t): Remove.
5104 (struct cookie_s): Change content_length to uint64_t.
5105 (parse_response): Use string_to_u64.
5107 2016-08-11 Justus Winter <justus@g10code.com>
5109 common: Remove compatibility code.
5110 + commit 72fa314b71e4ce8780f59b16d32cabf5d4bd5451
5111 * common/Makefile.am: Drop deleted files.
5112 * common/w32-afunix.c: Delete file.
5113 * common/w32-afunix.h: Likewise.
5115 common: Rework the simple password query module.
5116 + commit 14479e2515439c73e385f37e8c2b3fc517b038b9
5117 * common/simple-pwquery.c (writen, readline): Drop.
5118 (agent_send_option, agent_send_all_options, agent_open): Just use
5120 (simple_pw_set_socket): Simplify.
5121 (default_inq_cb): New function.
5122 (simple_pwquery, simple_query): Just use libassuan.
5123 * agent/Makefile.am (gpg_preset_passphrase_LDADD): Add libassuan.
5124 * tools/Makefile.am (symcryptrun_LDADD): Likewise.
5126 common: Remove simple password query error codes.
5127 + commit 9e6503b7ce019aa417099ded1dda87b68c33f912
5128 * common/simple-pwquery.h: Remove mapping function. Move all
5129 definitions of status codes...
5130 * common/simple-pwquery.c: ... here, and define them to meaningful gpg
5132 * agent/preset-passphrase.c (preset_passphrase): Use error code as-is.
5133 (forget_passphrase): Likewise.
5134 * tools/symcryptrun.c (confucius_get_pass): Likewise.
5136 2016-08-10 Werner Koch <wk@gnupg.org>
5138 gpg: Print the signer's UID during verification.
5139 + commit ed5c1b0b8a4790c4fb36a3129387f7c2ef5db302
5140 * g10/parse-packet.c (parse_signature): Sanitize the value stored in
5142 * g10/mainproc.c (issuer_fpr_string): New.
5143 (check_sig_and_print): Print the signers' UID. Print the issuer
5144 fingerprint in --rfc4880bis mode.
5146 common: New function try_make_printable_string.
5147 + commit f2ea7e539c9a22081e3159dcbca84f57f30724ca
5148 * common/stringhelp.c (sanitize_buffer): Remove. Move code to ...
5149 * common/miscellaneous.c (try_make_printable_string): new.
5150 (make_printable_string): Call try_make_printable_string.
5152 2016-08-10 Justus Winter <justus@g10code.com>
5154 tests: Fix distcheck.
5155 + commit a6acf1f6b39c5a607f61f643a5d21309ba58685d
5156 * tests/openpgp/issue2417.scm: Copy configuration.
5158 2016-08-10 Werner Koch <wk@gnupg.org>
5160 gpg: Remove tofu database format "split".
5161 + commit 5b59999ce0dd1650ebe47a74a30ded6af00eeed3
5162 * g10/options.h (struct opt): Remove field tofu_db_format.
5163 * g10/gpg.h (server_control_s): Add fields tofu.batch_update_ref and
5164 tofu.batch_update_started.
5165 * g10/gpg.c (parse_tofu_db_format): Remove.
5166 (main): Make option --tofu-db-format obsolete.
5167 * g10/tofu.c: Major rework. Remove the pretty complicated and slower
5168 split format and with that all the caching. Use the dbs struct
5169 directly. Move global vars for batch update into CTRL. Change
5170 calling conventions of some function to take CTRL or DBS pointers
5171 instead of the former low-level database pointer.
5173 2016-08-10 Justus Winter <justus@g10code.com>
5175 g10: Fix opening of trust database.
5176 + commit a27410a251cd25ca96cd6743969c4db0a0fd553f
5177 * g10/tdbio.c (tdbio_set_dbname): This function explicitly checks for
5178 the file size, but handled the case of a zero-sized file incorrectly
5179 by returning success. Fix this by initializing the database in that
5181 * tests/openpgp/Makefile.am (XTESTS): Add new test.
5182 * tests/openpgp/issue2417.scm: New file.
5184 tests: Fix distcheck.
5185 + commit 194b1e979c7c547afd0dfea5b2496bdfa34b20f1
5186 * tests/openpgp/Makefile.am (EXTRA_DIST): Explicitly add setup and
5187 teardown scripts now that they no longer are included in the list of
5190 tests: Improve temporary directory handling.
5191 + commit d9240a3a4688c263632b4168ae2e04363bc91a3a
5192 * tests/gpgscm/ffi.c (ffi_init): Rename 'mkdtemp'.
5193 * tests/gpgscm/tests.scm (mkdtemp): New function that uses a sensible
5194 location and template if no arguments are given.
5195 (with-temporary-working-directory): Simplify accordingly.
5196 (make-temporary-file): Likewise.
5197 * tests/openpgp/run-tests.scm (run-tests-parallel-isolated): Likewise.
5198 (run-tests-sequential-isolated): Likewise.
5200 gpgscm: Make the name of foreign functions more unique.
5201 + commit efe973dab7f69e2b1309446b2fbcd47ce0305399
5202 * tests/gpgscm/ffi-private.h (ffi_define_function_name): Add another
5205 tests: Run each test in a clean environment.
5206 + commit e13f1ea8fff3964dc3008432f5c0f26aaa2eaa35
5207 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Drop obsolete
5208 variables, add 'srcdir', use absolute paths.
5209 (TESTS): Rename to 'XTESTS' to avoid emitting the automake test
5210 runner. Drop 'setup.scm' and 'finish.scm'.
5211 (xcheck): New target that runs 'run-tests.scm', our Scheme test suite
5212 runner. It will run each test in a clean environment, isolated from
5214 (EXTRA_DIST): Adapt accordingly.
5215 * tests/openpgp/README: Likewise.
5217 tests: Make ssh test more robust.
5218 + commit b2b21580b68f3a9069562f99675b389a0d044713
5219 * tests/openpgp/ssh.scm: Drop the 'MD5:' which was not printed by
5220 previous ssh versions.
5222 2016-08-10 NIIBE Yutaka <gniibe@fsij.org>
5224 agent: SSH support fix.
5225 + commit f14795d57f6c81709e9225dd3c5dfd3495cf1b2b
5226 * agent/command-ssh.c (ssh_handler_request_identities): Keep error
5229 2016-08-09 Werner Koch <wk@gnupg.org>
5231 agent: Fix regression in recent ssh changes.
5232 + commit e630f904993725c54ec63be00369589b7b7234d2
5233 * agent/command-ssh.c (sexp_key_construct): Lowercase the algo name.
5235 gpg: Extend the PROGRESS line to give the used unit.
5236 + commit 16feb1e0ea9b5d3966f22f4ae047335b9d1b60e1
5237 * g10/progress.c (write_status_progress): Print the units parameter.
5239 2016-08-09 Ben Kibbey <bjk@luxsci.net>
5241 Cleanup initialization of libgcrypt.
5242 + commit 49829c29e541546084950b8a153067db371d101a
5243 * common/init.c (init_common_subsystems): Initialize libgcrypt.
5244 * dirmngr/Makefile.am (dirmngr_ldap): Link with libgcrypt.
5246 2016-08-09 NIIBE Yutaka <gniibe@fsij.org>
5248 agent: SSH support improvement.
5249 + commit ebf24e3b29766595204355d82f435a3e675bfbbc
5250 * agent/command-ssh.c (ssh_handler_request_identities): Skip a key with
5251 error, not giving up to handle the request itself.
5252 * agent/cvt-openpgp.c (extract_private_key): Support "ecdsa" key.
5254 2016-08-08 Werner Koch <wk@gnupg.org>
5256 gpg: Cleanup of dek_to_passphrase function (part 2).
5257 + commit 491d6fdabb3d95905cd96d905e1f965ce8ff07e1
5258 * g10/passphrase.c (passphrase_get): Remove arg KEYID. Change arg
5260 (passphrase_to_dek): Remove args KEYID and PUBKEY_ALGO. Split arg
5261 MODE into CREATE and NOCACHE. Change all callers and adjust stubs.
5262 (passphrase_clear_cache): Remove args KEYID and ALGO. They are not
5263 used. Change caller.
5265 gpg: Cleanup of dek_to_passphrase function (part 1).
5266 + commit 5b614973fe2d4b5ef402a3057c31c3ef3042a483
5267 * g10/passphrase.c (passphrase_to_dek_ext): Remove args CUSTDESC and
5268 CUSTPROMPT. Merge into the passphrase_to_dek wrapper.
5269 (passphrase_get): Remove args CUSTOM_DESCRIPTION and CUSTOM_PROMPT.
5271 2016-08-08 NIIBE Yutaka <gniibe@fsij.org>
5273 agent: More clean up of SSH support.
5274 + commit 591a8373a5d9567db9b1a1a48205e8a206c7b669
5275 * common/util.h (get_pk_algo_from_key): New.
5276 * common/sexputil.c (get_pk_algo_from_key): The implementation.
5277 * agent/gpg-agent.c: Remove include of openpgpdefs.h.
5278 * agent/command-ssh.c (struct ssh_key_type_spec): Use integer ALGO.
5279 (ssh_key_types): Update with GCRY_PK_*.
5280 (make_cstring, sexp_extract_identifier): Remove.
5281 (sexp_key_construct): Use gcry_pk_algo_name to get ALGO string.
5282 (ssh_key_to_blob): Use cadr to get value list.
5283 (ssh_key_type_lookup): Lookup with integer ALGO.
5284 (ssh_receive_key): Follow the change of ssh_key_type_lookup.
5285 (ssh_send_key_public): Likewise. Use get_pk_algo_from_key to get ALGO.
5287 tests: Add openpgp/gpgv-forged-keyring.scm.
5288 + commit 7dcad0d3503ac0d75e09efb16246dd78518986fc
5289 * tests/openpgp/gpgv-forged-keyring.scm: New.
5290 * tests/openpgp/forged-keyring.gpg: New.
5291 * tests/openpgp/Makefile.am (TESTS): Add gpgv-forged-keyring.scm.
5292 * tests/openpgp/defs.scm (tools): Add GPGV.
5295 2016-08-06 Werner Koch <wk@gnupg.org>
5297 agent: Fix long standing regression tracking the connection count.
5298 + commit 40d16029ed8b334c371fa7f24ac762d47302826e
5299 * agent/gpg-agent.c (get_agent_active_connection_count): New.
5300 (do_start_connection_thread, start_connection_thread_ssh): Bump
5301 ACTIVE_CONNECTIONS up and down.
5302 * agent/command.c (cmd_getinfo): Add subcommand "connections".
5304 2016-08-06 NIIBE Yutaka <gniibe@fsij.org>
5306 agent: Clean up SSH support.
5307 + commit 894789c3299dc47a8c1ccaaa7070382f0fae0262
5308 * agent/command-ssh.c (file_to_buffer): Remove.
5309 (ssh_handler_request_identities): Use agent_public_key_from_file.
5311 2016-08-05 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
5313 gpg: Avoid publishing the GnuPG version by default.
5314 + commit c9387e41db7520d176edd3d6613b85875bdeb32c
5315 * g10/gpg.c (main): initialize opt.emit_version to 0
5316 * doc/gpg.texi: document different default for --emit-version
5318 2016-08-04 Werner Koch <wk@gnupg.org>
5320 gpg: Make sure that keygrips are printed for each subkey.
5321 + commit c8cc804f56bfefba46641f2c7078fcd67b494bae
5322 * g10/keylist.c (list_keyblock_colon): Print an emprty grip in case of
5325 gpg: Always print the fingerprint in colons mode.
5326 + commit 54a1ed20e203dcafeacbe21eb147efa08255dbf5
5327 * g10/keylist.c (list_keyblock_colon): Remove arg FPR. Always print
5328 fingerprint records. For secret keys always print keygrip records.
5330 tests: Use gpgconf to set the ssh socket envvar.
5331 + commit 0c2a745a2bc21e8f439930f7c0e5d1521c2fd44c
5332 * tests/openpgp/ssh.scm ("SSH_AUTH_SOCK"): Use gpgconf.
5334 gpgconf: Add limited support for -0.
5335 + commit db6f3eb926619dfe6ed2a9be197c51f9a1b6198c
5336 * tools/gpgconf.h (opt): Add field 'null'.
5337 * tools/gpgconf.c: Add option --null/-0.
5338 (list_dirs): Use it here.
5340 2016-08-04 Justus Winter <justus@g10code.com>
5342 tests: Update list of tests in Scheme test runner.
5343 + commit 05cb30052cdf1d308ff7da901cfa5a809cd49479
5344 * tests/openpgp/run-tests.scm: Add missing tests.
5346 tests: Fix path to fake-pinentry.
5347 + commit 3566544d04a4b81e5dd8a2883304673b2cc2f108
5348 * tests/openpgp/defs.scm: Correctly compute the path to fake-pinentry.
5350 2016-08-04 NIIBE Yutaka <gniibe@fsij.org>
5352 po: Update Japanese translation.
5353 + commit 89234f7f3643bad2daddc94569f1d651ec5c835e
5356 po: update Japanese translation.
5357 + commit 573e0f36190346e0263bea3ae12a389f4f598d55
5360 g10: Fix checking key for signature validation.
5361 + commit 6f284e6ed63f514b15fe610f490ffcefc87a2164
5362 * g10/sig-check.c (check_signature2): Not only subkey, but also primary
5363 key should have flags.valid=1.
5365 2016-08-03 Justus Winter <justus@g10code.com>
5367 kbx: Add missing header file.
5368 + commit e3358b246d9380008a4ba7c8f2fe03659901adaf
5369 * kbx/keybox-update.c: Add missing header file.
5371 2016-08-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
5373 More cleanup of "allow to".
5374 + commit dc107b78509807db375d3a382eb3376cd2183357
5375 * README, agent/command.c, agent/keyformat.txt, common/i18n.c,
5376 common/iobuf.c, common/keyserver.h, dirmngr/cdblib.c,
5377 dirmngr/ldap-wrapper.c, doc/DETAILS, doc/TRANSLATE,
5378 doc/announce-2.1.txt, doc/gpg.texi, doc/gpgsm.texi,
5379 doc/scdaemon.texi, doc/tools.texi, doc/whats-new-in-2.1.txt,
5380 g10/export.c, g10/getkey.c, g10/import.c, g10/keyedit.c, m4/ksba.m4,
5381 m4/libgcrypt.m4, m4/ntbtls.m4, po/ca.po, po/cs.po, po/da.po,
5382 po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po,
5383 po/fr.po, po/gl.po, po/hu.po, po/id.po, po/it.po, po/ja.po,
5384 po/nb.po, po/pl.po, po/pt.po, po/ro.po, po/ru.po, po/sk.po,
5385 po/sv.po, po/tr.po, po/uk.po, po/zh_CN.po, po/zh_TW.po,
5386 scd/app-p15.c, scd/ccid-driver.c, scd/command.c, sm/gpgsm.c,
5387 sm/sign.c, tools/gpgconf-comp.c, tools/gpgtar.h: replace "Allow to"
5390 In standard English, the normal construction is "${XXX} allows ${YYY}
5391 to" -- that is, the subject (${XXX}) of the sentence is allowing the
5392 object (${YYY}) to do something. When the object is missing, the
5393 phrasing sounds awkward, even if the object is implied by context.
5394 There's almost always a better construction that isn't as awkward.
5396 These changes should make the language a bit clearer.
5398 dirmngr: Emit correct spelling of "superseded".
5399 + commit 436b28c23194fa77919967338d5a61a82d242153
5400 * dirmngr/crlcache.c (list_one_crl_entry): Spell superseded correctly.
5401 * dirmngr/ocsp.c (ocsp_invalid): Likewise.
5403 This might break some tools which parse the existing output and expect
5404 misspellings, but i'm not sure there are many such tools, and we
5405 should use standardized orthography going forward.
5407 Fix spelling and grammar.
5408 + commit cd45cf782b91ff0f6b023913963e5258ffcbf464
5409 * agent/learncard.c: s/coccured/occurred/
5410 * doc/dirmngr.texi: s/ommitted/omitted/, s/orginally/originally/,
5411 s/reponses/responses/i
5412 * doc/gpg-agent.texi, doc/dirmngr.texi, doc/gpg.texi: Fix "allows
5413 to" to more conventional english usage.
5414 * doc/tools.texi, g10/gpgcommpose.c, tests/openpgp/armor.scm,
5415 tests/openpgp/armor.test: s/occured/occurred/
5416 * tools/gpgsplit.c: s/calcualting/calculating/
5417 * sm/server.c: s/formated/formatted/
5419 2016-08-03 Werner Koch <wk@gnupg.org>
5421 gpg,gpgsm: Block signals during keyring/keybox update.
5422 + commit 48a2c93a1886589d1a0e2a4a2173e0e81311200b
5423 * kbx/keybox-util.c (keybox_file_rename): Add arg BLOCK_SIGNALS.
5424 * kbx/keybox-update.c (rename_tmp_file): Block all signals when doing
5426 * g10/keyring.c (rename_tmp_file): Block all signals during the double
5429 common: New file utilproto.c.
5430 + commit 3a2421c94015432caa49e166bc5bf5c4f80ab7c7
5431 * common/util.h: Factor prototypes from signal.c out to ...
5432 * common/utilproto.h: new.
5433 * common/Makefile.am (common_sources): Add new file.
5435 2016-08-01 Justus Winter <justus@g10code.com>
5437 gpgsm: Fix machine-readable key listing.
5438 + commit 40365b28c3fdf087fd58401f5a6f42f9d7d29d20
5439 * sm/keylist.c (list_cert_colon): Drop superfluous colon.
5441 tests: Distribute standalone test runner.
5442 + commit c971ff0823d9a649b32fd9f169a12abc3095246e
5443 * tests/openpgp/Makefile.am (EXTRA_DIST): Add missing file
5446 2016-07-28 Justus Winter <justus@g10code.com>
5448 tests: Fix distcheck.
5449 + commit 9e799b0e4f131126b80a5d3272c36d52b8ba1720
5450 * tests/openpgp/Makefile.am (sample_msgs): New variable.
5451 (EXTRA_DIST): Also ship the sample msgs.
5453 2016-07-27 Fredrik Fornwall <fredrik@fornwall.net>
5455 build: Fix check for Android.
5456 + commit 583a464c62ce8f7d70f5fdab2c7ea73ec3348d69
5457 * configure.ac: Match other Android targets as well.
5459 2016-07-26 Justus Winter <justus@g10code.com>
5461 common: Fix iobuf_peek corner case.
5462 + commit b2572b0c386fd12ac6581fcce72f8d48cbfd27c7
5463 Previously, iobuf_peek on a file smaller than 'buflen' would hang.
5465 * common/iobuf.c (underflow): Generalize by adding a target parameter.
5466 (iobuf_peek): Use this to prevent looping here.
5467 * tests/openpgp/Makefile.am (TESTS): Add new test.
5468 * tests/openpgp/setup.scm (dearmor): Move function...
5469 * tests/openpgp/defs.scm (dearmor): ... here.
5470 * tests/openpgp/issue2419.scm: New file.
5471 * tests/openpgp/samplemsgs/issue2419.asc: Likewise.
5473 gpgscm: Do not shadow common function name in catch macro.
5474 + commit 046338b8494c036a5e717130d3eadce0291126fc
5475 * tests/gpgscm/init.scm (catch): Do not shadow 'exit'.
5477 tests: Fix distcheck.
5478 + commit 66c0dab3c722c2766828515120775b106286334e
5479 * tests/openpgp/Makefile.am (samplekeys): Add missing key.
5481 gpgscm: Make the verbose setting more useful.
5482 + commit f17aecbcd98103fcd2ece537be96930f354de656
5483 * tests/gpgscm/ffi.c (do_get_verbose): New function.
5484 (do_set_verbose): Likewise.
5485 (ffi_init): Turn *verbose* into a function, add *set-verbose!*.
5486 * tests/gpgscm/tests.scm (call): Adapt accordingly.
5487 (call-with-io): Dump output if *verbose* is high.
5488 (pipe-do): Adapt accordingly.
5489 * tests/openpgp/defs.scm: Set verbosity according to environment.
5490 * tests/openpgp/run-tests.scm (test): Adapt accordingly.
5492 common: Avoid excessive stack use.
5493 + commit b3610badf691178bbbf0831af9aa6b6658c1948a
5494 * common/exectool.c (copy_buffer_shred): Make passing NULL a nop.
5495 (gnupg_exec_tool_stream): Allocate copy buffers from the heap.
5497 common: Rework resource cleanup when handling errors.
5498 + commit 35132a8b119dbc3393ceb0d0874917905d1a6354
5499 * common/exectool.c (gnupg_exec_tool_stream): Rework error handling.
5501 common: Add unit test for exectool.
5502 + commit fe40e9c53dc0710ff73e72d05ba8040874465b55
5503 * common/Makefile.am: Build new test.
5504 * common/t-exectool.c: New file.
5506 2016-07-25 Justus Winter <justus@g10code.com>
5508 g10: Fix key import statistics.
5509 + commit 4ba11251aff578394000bf480f47160f0879c763
5510 'transfer_secret_keys' collects statistics on a subkey-basis, while
5511 the other code does not. This leads to inflated numbers when
5512 importing secret keys. E.g. 'count' is incremented by the main
5513 parsing loop in 'import', and again in 'transfer_secret_keys', leading
5514 to a total of 3 if one key with two secret subkeys is imported.
5516 * g10/import.c (import_secret_one): Adjust to the fact that
5517 'transfer_secret_keys' collects subkey statistics.
5518 * tests/openpgp/Makefile.am (TESTS): Add new test.
5519 * tests/openpgp/issue2346.scm: New file.
5520 * tests/openpgp/samplekeys/issue2346.gpg: Likewise.
5522 2016-07-22 Justus Winter <justus@g10code.com>
5524 gpgscm: Make function more general.
5525 + commit 9ee23a715d5dad6bf568a2deb1c55bf15601cf51
5526 * tests/gpgscm/tests.scm (in-srcdir): Accept more path fragments.
5528 g10: Properly ignore legacy keys in the keyring cache.
5529 + commit d9839c9d303a01dc1032a6de311e034fe14e81da
5530 * g10/keyring.c (keyring_rebuild_cache): Properly ignore legacy keys
5531 in the keyring cache.
5532 * tests/migrations/Makefile.am (TESTS): Add new test.
5533 * tests/migrations/common.scm (GPG-no-batch): New variable.
5534 (run-test): New function.
5535 * tests/migrations/issue2276.scm: New file.
5536 * tests/migrations/issue2276.tar.asc: Likewise.
5538 2016-07-21 Justus Winter <justus@g10code.com>
5540 g10: Fix error handling.
5541 + commit 45bb9a2a46e11bc13c6b39e7b4748b7de199018e
5542 * g10/tofu.c (show_statistics): Fix error handling, 0 is a valid
5545 g10: Drop superfluous begin transaction.
5546 + commit 8a6f8e1e397a2d676b211f2dbc6df4a80b67442d
5547 * g10/tofu.c (record_binding): We only need a transaction for the
5550 gpgscm: Make assert macro more accurate.
5551 + commit 699c6c9f4b44441ab3db7f942df5b81f4cd88b06
5552 * tests/gpgscm/lib.scm (assert): Print the representation of the
5555 gpgscm: Make error message more useful.
5556 + commit 7207b2fe45bcf884e029366a2677a570234bed2e
5557 * tests/gpgscm/scheme.c (opexe_0): Include names of missing function
5558 parameters in the error message.
5561 + commit 1af2fd44f0a66fd0d94c224319db0b128d42a288
5562 * g10/tofu.c (tofu_closedbs): Fix freeing database handles up to the
5563 cache limit. Previously, this would crash if db_cache_count == count.
5565 2016-07-20 NIIBE Yutaka <gniibe@fsij.org>
5567 scd: Fix card removal/reset on multiple contexts.
5568 + commit 1598a4476466822e7e9c757ac471089d3db4b545
5569 * scd/app.c (application_notify_card_reset): Add message for debug.
5570 *scd/command.c (update_card_removed): Call release_application and set
5572 (struct server_local_s): Remove app_ctx_marked_for_release.
5573 (do_reset): Don't mark release but call release_application here.
5574 (open_card): Remove app_ctx_marked_for_release handling.
5575 (update_reader_status_file): Don't set SLOT here, so that it can be
5576 released the APP by application_notify_card_reset in
5577 update_card_removed.
5579 2016-07-19 Justus Winter <justus@g10code.com>
5581 agent: Add known keys to sshcontrol.
5582 + commit 270f7f7b8b235cc93516566702e2a1d256605cca
5583 * agent/command-ssh.c (ssh_identity_register): Add a key to sshcontrol
5584 even if it is already in the private key store.
5585 * tests/openpgp/ssh.scm: Test this.
5587 tests: Add test for ssh support.
5588 + commit d7a405de8325aa945ab791dcd3bc48272af33b86
5589 * tests/gpgscm/tests.scm (path-expand): New function.
5590 * tests/openpgp/Makefile.am (TESTS): Add new test.
5591 (sample_keys): Add new keys.
5592 (CLEANFILES): Clean ssh socket and control file.
5593 * tests/openpgp/fake-pinentry.c (main): Add a default passphrase.
5594 * tests/openpgp/gpg-agent.conf.tmpl: Enable ssh support.
5595 * tests/openpgp/samplekeys/ssh-dsa.key: New file.
5596 * tests/openpgp/samplekeys/ssh-ecdsa.key: Likewise.
5597 * tests/openpgp/samplekeys/ssh-ed25519.key: Likewise.
5598 * tests/openpgp/samplekeys/ssh-rsa.key: Likewise.
5599 * tests/openpgp/ssh.scm: Likewise.
5601 2016-07-19 NIIBE Yutaka <gniibe@fsij.org>
5603 scd: Fix race conditions for release_application.
5604 + commit 0c1fd4e9884ed7c1edd1819762b9e8a77f606ed3
5605 * scd/command.c (do_reset, cmd_restart): Reset app_ctx before calling
5606 release_application.
5608 2016-07-18 Justus Winter <justus@g10code.com>
5610 agent: Fix passphrase cache lookups.
5611 + commit f474249366e8e143c8e6eb7f7b1a74056e46fa1f
5612 CACHE_MODE_ANY is supposed to match any cache mode except
5613 CACHE_MODE_IGNORE, but the code used '==' to compare cache modes.
5615 * agent/cache.c (cache_mode_equal): New function.
5616 (agent_set_cache): Use the new function to compare cache modes.
5617 (agent_get_cache): Likewise.
5618 * tests/openpgp/Makefile.am (TESTS): Add new test.
5619 * tests/openpgp/issue2015.scm: New file.
5621 2016-07-15 Justus Winter <justus@g10code.com>
5623 build: Always build gpgtar.
5624 + commit 7f4dd24b880323a5b772719dafae829c288303a8
5625 We use gpgtar to unpack test data, hence we always build it. If the
5626 user opts out, we simply don't install it.
5628 * configure.ac: Add comment.
5629 * tests/migrations/Makefile.am (required_pgms): Make sure gpgtar is
5631 * tools/Makefile.am: Always build gpgtar, but do not install it if the
5632 user used '--disable-gpgtar'.
5634 2016-07-15 Werner Koch <wk@gnupg.org>
5636 wks: Publish as binary file.
5637 + commit b7b37716b9d2cd1b71b5f7f0e4fb2c1a43eee90a
5638 * tools/gpg-wks-server.c (copy_key_as_binary): New.
5639 (check_and_publish): Use new function instead of rename.
5641 2016-07-15 Justus Winter <justus@g10code.com>
5643 gpgscm: Fix linking.
5644 + commit c49c43d7e4229fd9f1bc55e17fa32fdc334dbef6
5645 * tests/gpgscm/Makefile.am: Add -lintl.
5647 g10: Fix building without trust models.
5648 + commit d21efa398874be4a15e8283c5fc382fb90f562fd
5649 * g10/pkclist.c (write_trust_status): Fall back to the previous
5652 tests: Check for gpgtar.
5653 + commit 12a887050a560c4cacaf95e4cdb0cc42d8b87aa1
5654 * tests/migrations/extended-pkf.scm: Skip test if gpgtar is not built.
5655 * tests/migrations/from-classic.scm: Likewise.
5656 * tests/openpgp/gpgtar.scm: Fix check for gpgtar.
5658 2016-07-14 Werner Koch <wk@gnupg.org>
5661 + commit 09c448202ffb4c26d7ec2028351a78e2d3680396
5664 po: Update the German translation.
5665 + commit 23c2491f94b94fa231bde8187eb958432555eff1
5668 2016-07-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
5670 dirmngr: fix handling of HTTP redirections.
5671 + commit 60428c24fb29cb633c9392abb777bc4da88dbfba
5672 * dirmngr/ks-engine-http.c (ks_http_fetch): Reinitialize HTTP session
5673 when following a HTTP redirection.
5675 2016-07-14 Werner Koch <wk@gnupg.org>
5677 gpg: Remove options --print-dane-records and --print-pka-records.
5678 + commit 1e9bc66a9a60de668890452d504eea3c3c614f7e
5679 * g10/gpg.c (main): Remove options but print a dedicated warning.
5680 * g10/options.h (struct opt): Remove fields 'print_dane_records' and
5681 'print_pka_records'.
5682 * g10/keylist.c (list_keyblock): Do not call list_keyblock_pka.
5683 (list_keyblock_pka): Remove.
5685 2016-07-14 Åka Sikrom <a4@hush.com>
5687 po: Complete update of the Norwegian translation.
5688 + commit d6d7e4d218a1e2e2a88bc893b00967b032d194f8
5691 2016-07-14 Yuri Chornoivan <yurchor@ukr.net>
5693 Update Ukrainian translation.
5694 + commit 9427288ebb32141c196996315f93535fd7744901
5697 2016-07-14 Ineiev <ineiev@gnu.org>
5699 Update Russian translation.
5700 + commit 39c88870359bc75e9f72e08a7466fcff01bdc655
5703 2016-07-14 Werner Koch <wk@gnupg.org>
5705 gpg: Fix regression since 2.1 in --search-key with a fingerprint.
5706 + commit 0342369ce001b9dba04dc79e7a4eb66fbda278e7
5707 * dirmngr/ks-engine-hkp.c (ks_hkp_search): Prefix fingerprint with 0x.
5709 gpgscm: Use kludge to avoid improper use of ffi_schemify_name.
5710 + commit fb14bf0a95e361b0991067e3aea2902d54be811d
5711 * tests/gpgscm/ffi.c (ffi_schemify_name): Use xstrdup instead of
5714 build: Require latest released libraries.
5715 + commit c98995efefbdebea8f53d54ba2df4217dfd31ad4
5716 * agent/protect.c (OCB_MODE_SUPPORTED): Remove macro.
5717 (do_encryption): Always support OCB.
5718 (do_decryption): Ditto.
5719 (agent_unprotect): Ditto.
5720 * dirmngr/server.c (is_tor_running): Unconditionally build this.
5722 2016-07-13 Werner Koch <wk@gnupg.org>
5724 build: Update config.{guess,sub} to {2016-05-15,2016-06-20}.
5725 + commit 66b634f27f10e4c0cb21c3f201998497d0bb24ca
5726 * build-aux/config.guess: Update.
5727 * build-aux/config.sub: Update.
5729 gpg: Fix regression due to the new --mimemode options.
5730 + commit 3b8ed7650d2d63b01ec80ecf9e493b80e3ac7ef8
5731 * g10/gpg.c (opts): Re-add oTextmodeShort.
5733 2016-07-13 Daiki Ueno <ueno@gnu.org>
5735 gpg: Make --try-all-secrets work for hidden recipients.
5736 + commit 82b90eee100cf1c9680517059b2d35e295dd992a
5737 * g10/getkey.c (enum_secret_keys): Really enumerate all secret
5738 keys if --try-all-secrets is specified.
5740 2016-07-13 Werner Koch <wk@gnupg.org>
5742 gpg: Do not print a the short keyid if the high word is zero.
5743 + commit 7b96a8d736934e65bb2adbc17059f84dfeaf95fb
5744 * g10/keyid.c (format_keyid): Always returh long keyid ifor KF_LONG.
5746 gpg: New option --mimemode.
5747 + commit e148c3caa90fbadba32bdbfea9513392e3aea598
5748 * g10/gpg.c (oMimemode): New.
5749 (opts): Add --mimemode.
5750 (main): Use --mimemode only in rfc4880bis compliance mode.
5751 * g10/options.h (struct opt): Add field "mimemode".
5752 * g10/build-packet.c (do_plaintext): Allow for mode 'm'.
5753 * g10/encrypt.c (encrypt_simple, encrypt_crypt): Use 'm' if requested.
5754 * g10/plaintext.c (handle_plaintext): Handle 'm' mode.
5755 * g10/sign.c (write_plaintext_packet): Handle 'm' mode.
5756 (sign_file, sign_symencrypt_file): Use 'm' if requested.
5758 wks: Use correct key for the confirmation.
5759 + commit 95810929f75bd718dbdf2cd1c0181137a45e2456
5760 * tools/gpg-wks-client.c (send_confirmation_response): Actually
5761 encrypt to the recipient.
5763 wks: New server command --list-domains.
5764 + commit 44ecc33b4a7147d9c112a72f55a42b65cef4fe67
5765 * tools/gpg-wks-server.c (aListDomains): New.
5766 (opts): Add --list-domains.
5767 (parse_arguments): Implement.
5768 (main): Ditto. Use only one final diagnostic message.
5769 (command_list_domains): New.
5770 (check_and_publish): Remove directory creation.
5771 (get_domain_list): New.
5772 (expire_pending_confirmations): Rewrite using a list of directories.
5773 (command_cron): Get domain list and pass to
5774 expire_pending_confirmations.
5776 2016-07-13 NIIBE Yutaka <gniibe@fsij.org>
5778 agent: Fix envvars for UPDATESTARTUPTTY.
5779 + commit 7be218177701af316db75057c99ca674d53cf585
5780 agent/command.c (cmd_updatestartuptty): Use session_env_list_stdenvnames
5783 2016-07-12 Werner Koch <wk@gnupg.org>
5786 + commit acb27915f8646a875b6bb507ff46cd1bc330c02b
5787 * g13/g13tuple.c (create_tupledesc): Init refcount to 1.
5789 wks: Add --cron command to gpg-wks-server.
5790 + commit 38eb5f81d223616e3ee34bdfb41c387ce4e7df22
5791 * tools/gpg-wks-server.c (PENDING_TTL): New.
5792 (expire_one_domain, expire_pending_confirmations): New.
5793 (command_cron): New.
5794 (main): Implement --cron.
5796 wks: Try to send an encrypted confirmation back.
5797 + commit 5de41c4ecef32add89044b8a550a47cce8c6d61e
5798 * tools/gpg-wks-client.c (encrypt_response_status_cb): New.
5799 (encrypt_response): New.
5800 (send_confirmation_response): Encrypt the response.
5802 * tools/gpg-wks-server.c (send_confirmation_request): Use freeing of
5805 wks: Also create DANE record.
5806 + commit d3837e0435921bfa5587a50738f5924a5fdf976a
5807 * tools/gpg-wks-server.c (copy_key_as_dane): New.
5808 (check_and_publish): Also publish as DANE record.
5810 gpg: Extend import-option import-export to print PKA or DANE.
5811 + commit 9b075575cdc5851b019aed5ca5d5e18416beec8e
5812 * g10/export.c (do_export_stream): Move PKA and DANE printing helper
5814 (print_pka_or_dane_records): this fucntion.
5815 (write_keyblock_to_output): Add arg OPTIOSN and call
5816 print_pka_or_dane_records if requested.
5818 gpg: Move a function from import.c to export.c.
5819 + commit 0f5b105d96780a29cc58893285e6c38482e0cc2d
5820 * g10/import.c (write_keyblock_to_output): Move to ...
5821 * g10/export.c (write_keyblock_to_output): here. Add arg WITH_ARMOR.
5822 Also make sure never to export ring trust packets.
5824 2016-07-11 Werner Koch <wk@gnupg.org>
5826 gpgconf: Enhance --list-dirs.
5827 + commit 7732b332886792b2bbf47ecf7430e953f1c55a2c
5828 * tools/gpgconf.c (main) <aListDir>: Factor code out to ...
5829 (list_dirs): new. Rewrite to use a table. Allow selection of a
5830 items. Add "agent-ssh-socket".
5832 2016-07-09 NIIBE Yutaka <gniibe@fsij.org>
5834 gpgv: Tweak default options for extra security.
5835 + commit e32c575e0f3704e7563048eea6d26844bdfc494b
5836 * g10/gpgv.c (main): Set opt.no_sig _cache, so that it doesn't depend on
5837 cached status. Similarly, set opt.flags.require_cross_cert for backsig
5838 validation for subkey signature.
5840 2016-07-07 Werner Koch <wk@gnupg.org>
5842 gpg: Add export options "export-pka" and "export-dane".
5843 + commit cbe467e794f3be81b8da2bcb1732b5514b13b71d
5844 * g10/options.h (EXPORT_PKA_FORMAT): New.
5845 * g10/keylist.c (list_keyblock_pka): Do not use DANE flag.
5846 * g10/export.c: Include zb32.h.
5847 (parse_export_options): Add options "export-pka" and "export-dane".
5848 (do_export): Do not armor if either of these option is set.
5849 (print_pka_or_dane_records): New.
5850 (do_export_stream): Implement new options.
5852 gpg: Split a too large export function.
5853 + commit b05878f32aa507aa9087d7c992b630840b5ad71c
5854 * g10/export.c (do_export_stream): Factor some code out to ...
5855 (do_export_one_keyblock): new.
5857 2016-07-07 Justus Winter <justus@g10code.com>
5859 gpgscm: Capture output of spawned processes.
5860 + commit 2f61aa0ff11b194d20307751ab686c87cd47dd56
5861 * tests/gpgscm/tests.scm (call-check): Capture stdout and stderr, and
5862 return stdout if the child exited successfully, or include stderr in
5864 * tests/openpgp/version.scm: Demonstrate this by checking the stdout.
5866 2016-07-06 Werner Koch <wk@gnupg.org>
5868 doc: Escape file names in generated macros.
5869 + commit 511c2522b95333226a5e45e538fed29dd44c9be3
5870 * doc/mkdefsinc.c (print_filename): New.
5871 (main): Use it here.
5873 wks: Let the server take the encrytion key from the file.
5874 + commit e5896da666551da5322b2ae5458d429b9e60241e
5875 * tools/gpg-wks-server.c (encrypt_stream): Change arg 'fingerprint' to
5877 (store_key_as_pending): Add arg 'r_fname' to make of the keyfile.
5878 (send_confirmation_request): Add arg 'keyfile'.
5879 (process_new_key): Pass on the name of the keyfile.
5881 gpg: New options --recipient-file and --hidden-recipient-file.
5882 + commit a479804c86bc24bfab101f39464db3ecfbaedf6d
5883 * g10/gpg.c (oRecipientFile, oHiddenRecipientFile): New.
5884 (opts): Add options --recipient-file and --hidden-recipient-file.
5885 (main): Implement them. Also remove duplicate code from similar
5887 * g10/keydb.h (PK_LIST_FROM_FILE): New.
5888 (PK_LIST_SHIFT): Bump up.
5889 * g10/pkclist.c (expand_group): Take care of PK_LIST_FROM_FILE.
5890 (find_and_check_key): Add and implement arg FROM_FILE.
5891 (build_pk_list): Pass new value for new arg.
5892 * g10/getkey.c (get_pubkey_fromfile): New.
5893 * g10/gpgv.c (read_key_from_file): New stub.
5894 * g10/test-stubs.c (read_key_from_file): New stub.
5895 * g10/server.c (cmd_recipient): Add flag --file.
5896 * g10/import.c (read_key_from_file): New.
5898 * tests/openpgp/defs.scm (key-file1): New.
5900 * tests/openpgp/setup.scm: Add their private keys and import the
5902 * tests/openpgp/encrypt.scm: Add new test.
5904 gpg: New option --no-keyring.
5905 + commit 073be51a866cb5600479c504a44ae5ac94a449a2
5906 * g10/gpg.c (oNoKeyring): New.
5907 (opts): Add "--no-keyring".
5908 (main): Do not register any keyring if the option is used.
5910 gpg: Document use of node flags in import.c and remove unused args.
5911 + commit fdfde91595109e51a5b8fafd292244ad41dfb83d
5912 * g10/import.c (NODE_GOOD_SELFSIG): New. Use instead of 1.
5913 (NODE_BAD_SELFSIG): New. Use instead of 2.
5914 (NODE_DELETION_MARK): New. Use instead of 4.
5915 (NODE_FLAG_A): New. Use to mark new nodes in merge_blocks.
5916 (chk_self_sigs): Remove unused args FNAME and PK.
5917 (import_one): Adjust call. Simplify error return because
5918 chk_self_sigs does not return an error code.
5919 (append_uid, append_key, merge_sigs, merge_keysigs): Remove unsued
5920 args FNAME and KEYID.
5921 (merge_blocks, import_one, import_secret_one)
5922 (import_revoke_cert): Remove unused arg FNAME.
5924 gpg: Get rid of an unused arg in a function in getkey.c.
5925 + commit 7e0c48eb6f18a80142ca2a0f76fe8d270a4e5b33
5926 * g10/getkey.c (pk_from_block): Remove unused arg CTX. Change all
5929 gpg: Change calling convention for a function in getkey.c.
5930 + commit 9385dfeb9dd6d83608a10c7896c341f585a25a2b
5931 * g10/getkey.c (merge_selfsigs): Remove arg CTX. Add args REQ_USAGE
5933 (finish_lookup): Adjust caller. Set LOOKUP_NOT_SELECTED here...
5934 (lookup): and not here.
5936 2016-07-05 Werner Koch <wk@gnupg.org>
5938 gpg: Fix possible out-of-bounds read in is_armored.
5939 + commit 5d1a9c4dc823b418db6c4686da55ee3abdf023b0
5940 * g10/armor.c (check_input): Call is_armored only if LEN >= 2.
5941 (unarmor_pump): Use a 2 byte buffer for is_armored.
5943 2016-07-05 Justus Winter <justus@g10code.com>
5945 tests: Honor environment variable 'TMP'.
5946 + commit 8270580a5a70874beeffcdd16221937db4bcdc93
5947 This fixes problems with long socket names, e.g. when doing distcheck.
5949 * tests/gpgscm/tests.scm (path-join): New function.
5950 (with-temporary-working-directory): Honor 'TMP'.
5951 (make-temporary-file): Likewise.
5952 * tests/migrations/Makefile.am (TMP): Default to '/tmp'.
5953 (TESTS_ENVIRONMENT): Set 'TMP'.
5954 * tests/openpgp/Makefile.am (TMP): Default to '/tmp'.
5955 (TESTS_ENVIRONMENT): Set 'TMP'.
5957 gpgscm: Improve robustness and compatibility.
5958 + commit f26fe4f73e8430d93c03d95a8a24fdabd078bb20
5959 * tests/gpgscm/ffi.c (do_getenv): Avoid gccism.
5960 (do_mkdtemp): Handle errors.
5962 tests/migrations: Fix distcheck.
5963 + commit b70d08827ddb56423ad610b4ebaaaf9cc763512f
5964 * tests/migrations/Makefile.am (TESTS): Rename test.
5965 (TEST_FILES): Update list.
5966 (EXTRA_DIST): Add common.scm.
5967 * tests/migrations/common.scm (GPGTAR): New variable.
5968 (dearmor): Rename and untar archive.
5969 * tests/migrations/extended-private-key-format.scm: Rename.
5971 * tests/migrations/extended-pkf.tar.asc: New file.
5972 * tests/migrations/extended-private-key-format.gpghome: Delete.
5973 * tests/migrations/from-classic.gpghome: Likewise.
5974 * tests/migrations/from-classic.scm (setup): Update.
5975 * tests/migrations/from-classic.tar.asc: New file.
5977 tools/gpgtar: Provide --create and --extract.
5978 + commit 0b8a3358798b7028be872a923da2e275da67d592
5979 * tools/gpgtar.c (cmd_and_opt_values): New values.
5980 (opts): New actions.
5981 (parse_arguments): Handle new actions.
5982 * tests/openpgp/gpgtar.scm: Test new interface.
5984 g10: Fix out-of-bounds read.
5985 + commit a6b87981f7ddef42b25703723162c647e312b125
5986 * g10/armor.c (use_armor_filter): We need two bytes for 'is_armored'.
5988 2016-07-04 Werner Koch <wk@gnupg.org>
5990 wks: Add command --read to gpg-wks-client.
5991 + commit 8c8ae043b8d65cb79e0e99c5bdbdcbf34714bd0c
5992 * tools/gpg-wks-client.c (aRead): New.
5993 (opts): Add command "--read".
5994 (main): Implement that.
5996 tests: Add a gettime test for sizeof (time_t) > 4.
5997 + commit 27d158ead4a2b9c52269ef28d050a49c786c7d13
5998 * common/t-gettime.c (test_isotime2epoch): Add 4 more tests.
6000 2016-07-03 Werner Koch <wk@gnupg.org>
6002 gpg: Avoid spurious failures on keyblocks with no or only deleted nodes.
6003 + commit 9177a897732b3cebf3f15c97c1f613f71b6318fe
6004 * g10/import.c (write_keyblock_to_output): Clear ERR on success.
6006 wks: Let the client only export the requested UID.
6007 + commit 1bfed0bbc5ec9d60d4fb3a0f5c865923ed3563e7
6008 * tools/gpg-wks-client.c (get_key): Export only the requested uid.
6010 tools: Call sendmail directly from the wks tools.
6011 + commit 7705f310f1406fe49b45e16c371b09863313f24f
6012 * tools/send-mail.c, tools/send-mail.h: New.
6013 * tools/wks-util.c: New.
6014 * tools/Makefile.am (gpg_wks_server_SOURCES): Add them.
6015 (gpg_wks_client_SOURCES): Ditto.
6016 * tools/gpg-wks.h (opt): Add fields use_sendmail and output.
6017 * tools/gpg-wks-client.c: Add options --send and --output. Rename
6018 command --send to --create.
6019 (command_send, send_confirmation_response): Output via wks_send_mime.
6020 * tools/gpg-wks-server.c: Add options --send and --output.
6021 (send_confirmation_request): Output via wks_send_mime.
6022 (check_and_publish): Add hack for name-value bug.
6024 2016-07-02 Werner Koch <wk@gnupg.org>
6026 tools: Add options to gpg-wks-server.
6027 + commit c619035d9cd0c9cef62facf5365321289051f9a0
6028 * tools/gpg-wks.h (opt): Add 'default_from' and 'extra_headers'.
6029 * tools/gpg-wks-server.c (oFrom, oHeader): New.
6030 (parse_arguments): Set them and check args.
6031 (get_submission_address): New.
6032 (send_confirmation_request): Set correct From address. Add extra
6034 (process_new_key): Return an error code.
6036 tools: Extend mime-maker.c:mime_maker_add_header.
6037 + commit 0e36a1d1fb79c2b75c081616eed00075190b38aa
6038 * tools/mime-maker.c (add_header): Check header name and allow
6040 (mime_maker_add_header): Add mode for a syntax check.
6042 doc: Describe filter expressions.
6043 + commit 442efa9b3ff211c692b6967a944b3d9371ad1bb7
6044 * doc/gpg.texi: Remove some superfluous .E.
6045 (FILTER EXPRESSIONS): New.
6047 yat2m: Fix table formatting.
6048 + commit aae3cdb61555db4efb26f522030c8303a731d4a9
6049 * doc/yat2m.c (proc_texi_cmd): Use .TQ for @itemx. Print a .P at the
6050 end of a level 0 table.
6052 2016-07-01 Werner Koch <wk@gnupg.org>
6054 gpg: New option --export-filter.
6055 + commit 7bfc86c938d11c14ea78b196c82ceba2a2f5317d
6056 * g10/gpg.c (oExportFilter): New.
6057 (opts): Add --export-filter.
6058 (main): Handle option.
6059 * g10/export.c: Include recsel.h, init.h, and mbox-util.h.
6060 (export_keep_uid): New global var.
6061 (cleanup_export_globals): New.
6062 (parse_and_set_export_filter): New.
6063 (filter_getval): New.
6064 (apply_keep_uid_filter): New.
6065 (do_export_stream): Apply filter if set.
6067 gpg: New option --import-filter.
6068 + commit 5137bf73ccc98a72c2eeac148e4d4b5d58f0a854
6069 * g10/gpg.c (oImportFilter): New.
6070 (opts): Add --import-filter.
6071 (main): Handle option.
6072 * g10/import.c: Include recsel.h, init.h, and mbox-util.h.
6073 (import_keep_uid): New global var.
6074 (cleanup_import_globals): New.
6075 (parse_and_set_import_filter): New.
6076 (filter_getval): New.
6077 (apply_keep_uid_filter): New.
6078 (import_one): Apply filter if set.
6080 gpg: Allow to cache the mbox in a user id struct.
6081 + commit f015552374d69e28292a12f2b91ab34d65c9b457
6082 * g10/packet.h (PKT_user_id): Add field 'mbox'.
6083 * g10/free-packet.c (free_user_id): Free that.
6085 gpg: Make sure a user ID packet has always a terminating Nul in memory.
6086 + commit d8bce478be3ae9e401841a77d189ef3c81ccb757
6087 * g10/keygen.c (write_uid): Avoid overflow.
6089 common: Add function to select records etc.
6090 + commit 681c6ef757a73fc1a63a552186e038db179494aa
6091 * common/recsel.c, common/recsel.h: New.
6092 * common/t-recsel.c: New.
6094 common: Smart up register_mem_cleanup_func.
6095 + commit 6446a6b3dfd3b2e68b4285870f902ed1f86b0866
6096 * common/init.c (register_mem_cleanup_func): Avoid double registration.
6098 2016-07-01 Justus Winter <justus@g10code.com>
6100 common: Annotate semi-static allocation.
6101 + commit 49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87
6102 * common/argparse.c (optfile_parse): Allow string arguments to leak.
6104 g10: Fix memory leak.
6105 + commit 78aeb236fe4ff3a6d51b3095148e7086f2a6e9a8
6106 * g10/keyserver.c (parse_keyserver_uri): Free URI.
6108 tools/gpgtar: Annotate semi-static allocation.
6109 + commit cff63da930b6b3f0253668911e0931713b2b584a
6110 * tools/gpgtar.c (shell_parse_argv): Annotate argument vector as
6113 g10: Fix memory leak.
6114 + commit c454922ffa71929c810c6ff048d902498575302f
6115 * g10/import.c (transfer_secret_keys): Release curve from the previous
6118 g10: Fix build with disabled kbnode cache.
6119 + commit ff77b92aae9c8e20cbc7fa7c294adcc6a8c2f614
6120 * g10/kbnode.c (release_unused_nodes): Fix build with disabled kbnode
6123 g10: Fix memory leak.
6124 + commit 44d4c695722d96b3bbef16f2843f62413b9670cd
6125 * g10/trustdb.c (tdb_get_validity_core): Fix kbnode leak.
6127 g10: Fix memory leak.
6128 + commit 5fafd18d474da7b763f5b82c73b6ca4288e136d7
6129 * g10/keygen.c (keygen_set_std_prefs): Fix memory leak.
6131 Fix trivial memory leaks in tests.
6132 + commit 6bfbc368f90b274192d3751274816091675f5109
6133 * dirmngr/t-ldap-parse-uri.c (check_ldap_escape_filter): Free result.
6134 * g10/t-stutter.c (main): Free file name.
6136 2016-06-30 Justus Winter <justus@g10code.com>
6138 tools: Fix trivial memory leak.
6139 + commit 8f39185d7bfa0bc749f9ccf4a041d2da4eba24ff
6140 * tools/gpg-connect-agent.c (main): Fix trivial memory leak.
6142 g10: Fix memory leak.
6143 + commit 401db0eebbcd28dca8f4059706bfbd18d8cc7528
6144 * g10/export.c (do_export_stream): Free secret parameters.
6146 g10: Fix memory leak.
6147 + commit eb4cdbefb05795b77a8a72189eff246b84442caf
6148 * g10/keygen.c (read_parameter_file): Free 'line'.
6150 g10: Fix memory leak.
6151 + commit 1de362af9094e0a1a0be60f77fbea7c5190a4dcc
6152 * g10/sign.c (mk_notation_policy_etc): Free 'mbox'.
6154 common: Fix memory leak.
6155 + commit 6b9a89e4c7d6f19de62e0a908a8d80c98bf99819
6156 * g10/textfilter.c (copy_clearsig_text): Free buffer.
6158 common: Fix memory leak.
6159 + commit d2d19063d3adf29340aeb39f14e1b1e9aacf41e7
6160 * common/iobuf.c (iobuf_set_partial_body_length_mode): Only create
6161 context if necessary.
6163 common: Fix memory leak.
6164 + commit 9037c23979866e6e085b3e32f973bcba590a2635
6165 * common/simple-pwquery.c (agent_open): Free socket path.
6167 g10: Fix keybox-related memory leaks.
6168 + commit 29beea6462cca32d3278b0f7f9364ff4342327b8
6169 * g10/keydb.c (keydb_release): Clear keyblock cache.
6170 (keydb_get_keyblock): Revert previous change.
6171 * kbx/keybox-blob.c (create_blob_finish): Free previous buffer, free
6172 fixups after applying them.
6173 (_keybox_release_blob): Free buffer. Currently, the buffer has been
6174 extracted before the keybox is released, but this is the right thing
6177 g10: Fix memory leak.
6178 + commit 5869f518cbd8b41b4c9880fc593216b9efeea430
6179 * g10/compress.c (release_context): Free buffers.
6181 g10: Fix memory leak.
6182 + commit 84f262102be19334534cccc66ed7eceea2714527
6183 * g10/sign.c (write_plaintext_packet): Free packet.
6185 g10: Fix memory leak.
6186 + commit abae8a9dc8a00cf46291ccb40644b3a7aa477307
6187 * g10/mainproc.c (release_list): Do not exit early if list is NULL,
6188 there are other resources that must be released.
6190 gpgscm: Fix reallocating string ports.
6191 + commit 5003caa8fdc80afd5748835c06621014f83e6ec4
6192 * tests/gpgscm/scheme.c (realloc_port_string): Use memcpy because
6193 Scheme strings may contain 0s.
6195 gpgscm: Free memory backing string ports.
6196 + commit 599ad21104e622acbd1230d90d6a23abf9145499
6197 * tests/gpgscm/scheme.c (finalize_cell): Free memory backing string
6200 gpgscm: Use the allocator from libgcrypt.
6201 + commit d4ede89981c769b0626ab2b37615da1d12a3b078
6202 * tests/gpgscm/main.c (main): Use the allocator from libgcrypt.
6205 + commit dbcb342eaf1738798a5378d9ecd83c7946140d54
6206 * g10/keyedit.c (keyedit_quick_revuid): Fix call to
6207 'check_trustdb_stale'.
6209 2016-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
6211 g10: Implement gpg --quick-revuid.
6212 + commit 55d112eeb0743e90be46d15dbae67368ee7d4b50
6213 * g10/revoke.c (get_default_uid_revocation_reason): New.
6214 * g10/keyedit.c (menu_revuid): Break out creation of uid revocation
6215 into new function core_revuid.
6216 * g10/keyedit.c (keyedit_quick_revuid): New. Selects key and
6217 uid, invokes core_revuid.
6218 * g10/gpg.c (main): Handle --quick-revuid argument.
6219 * doc/gpg.texi: Document --quick-revuid.
6221 2016-06-29 Werner Koch <wk@gnupg.org>
6223 tools: Add gpg-wks-client and gpg-wks-server.
6224 + commit 5d6c83deaa11327366b0038928200b9f9f85b426
6225 * configure.ac: Add option --enable-wks-tools
6226 * tools/gpg-wks-client.c: New.
6227 * tools/gpg-wks-server.c: New.
6228 * tools/gpg-wks.h: new.
6229 * tools/wks-receive.c: New.
6230 * tools/call-dirmngr.c, tools/call-dirmngr.h: New.
6232 build: Improve GNUPG_BUILD_PROGRAM macro.
6233 + commit d8ee0d79a702c92a257884bab86183d32d16ff0e
6234 * acinclude.m4 (GNUPG_BUILD_PROGRAM): Allow for dash in options.
6236 tools: Add modules for MIME parsing and creating.
6237 + commit c334fa8df0e3901857e1a277d3277a873ae4af74
6238 * tools/mime-maker.c: New.
6239 * tools/mime-maker.h: New.
6240 * tools/mime-parser.c: New.
6241 * tools/mime-parser.h: New.
6243 2016-06-28 Justus Winter <justus@g10code.com>
6245 gpgscm: Fix memory leaks.
6246 + commit 9c67958c4737b34c60ef2076f57234eec155eb36
6247 * tests/gpgscm/ffi-private.h (ffi_schemify_name): Fix prototype.
6248 (ffi_define_function_name): Free schemified name.
6249 (ffi_define_function): Likewise.
6250 (ffi_define_constant): Likewise.
6251 (ffi_define_variable_pointer): Likewise.
6252 * tests/gpgscm/ffi.c (do_wait_processes): Free arrays.
6253 (ffi_schemify_name): Fix type.
6254 * tests/gpgscm/main.c (main): Free 'sc'.
6256 gpgscm: Free file names.
6257 + commit 6cb2be91a7cc8a9b8ec42f3956adbb19347318e3
6258 * tests/gpgscm/scheme.c (scheme_load_named_file): Free file name.
6260 gpgscm: Fix buffer overflow.
6261 + commit 56cebdc30c10eaec179a6911e308074264d876ae
6262 * tests/gpgscm/scheme.c (store_string): Avoid writing past allocated
6265 g10: Fix memory leaks.
6266 + commit c57501cc5fa84dbaf560c0fc18853c9540e918af
6267 * g10/keydb.c (keydb_get_keyblock): Free 'sigstatus' and 'iobuf'.
6268 * g10/t-keydb-get-keyblock.c: Fix trivial memory leaks.
6269 * g10/t-keydb.c: Likewise.
6271 common: Fix memory leaks.
6272 + commit c14ef10fc347d966a1efcb5c2000cbf3aaafa905
6273 * common/ccparray.c (ccparray_put): Free old array.
6274 * common/stringhelp.c (do_make_filename): Free 'home'.
6275 * common/t-convert.c: Fix trivial memory leaks.
6276 * common/t-iobuf.c: Likewise.
6277 * common/t-mbox-util.c: Likewise.
6278 * common/t-name-value.c: Likewise.
6279 * common/t-stringhelp.c: Likewise.
6280 * common/t-strlist.c: Likewise.
6282 2016-06-28 Werner Koch <wk@gnupg.org>
6284 dirmngr: add option to retrieve extra WKS info.
6285 + commit b1e8e0d4b945e077966fb98175191aed056bd957
6286 * dirmngr/server.c (cmd_wkd_get): Add option --submission-address.
6288 gpg: Add hack to --quick-gen-key to create Curve25519 keys.
6289 + commit 20ca075d9605e27e25a780bcc465c7371400ca61
6290 * g10/keygen.c (quick_generate_keypair): Add special algo string
6293 common: New function rfctimestamp.
6294 + commit 1ddf5b846fc058171af5f2784dad866b73eb0205
6295 * common/gettime.c (rfctimestamp): New.
6297 common: Add missing header file for clarity.
6298 + commit 781e614e3b4586da27e54caca39b6a7ed42fc7c7
6299 * common/zb32.c: Include zb32.h.
6301 2016-06-28 Justus Winter <justus@g10code.com>
6303 tools/gpgtar: Fix handling of '-'.
6304 + commit 4819f687c48c7972c39ae29c7af1e891a4d57360
6305 * tools/gpgtar-extract.c (gpgtar_extract): Use stdin if file is '-'.
6306 * tools/gpgtar-list.c (gpgtar_list): Likewise.
6308 common: Close input stream.
6309 + commit d36f664bfdc39c05927cb6e14fe1b3ecb7b64bfa
6310 * common/exechelp-posix.c (gnupg_spawn_process): Also close the input
6311 stream in the child.
6313 common: Fix copying data from the spawned child.
6314 + commit 8f79c31b4d465eeaf81c8046c35bb8c34512dd8d
6315 Fixes intermittent gpgtar failures.
6317 * common/exectool.c (copy_buffer_do_copy): Initialize 'nwritten'.
6318 (gnupg_exec_tool_stream): Loop until all data is copied.
6320 2016-06-28 NIIBE Yutaka <gniibe@fsij.org>
6322 g10: Fix --list-packets.
6323 + commit 52f65281f9743c42a48bf5a3354c9ab0ecdb681a
6324 * g10/gpg.c (main): Call set_packet_list_mode after assignment of
6326 * g10/mainproc.c (do_proc_packets): Don't stop processing with
6327 --list-packets as the comment says.
6328 * g10/options.h (list_packets): Fix the comment.
6329 * g10/parse-packet.c: Fix the condition for opt.list_packets.
6331 2016-06-25 Werner Koch <wk@gnupg.org>
6333 build: Add aclocal macro from pkg-config.
6334 + commit b6872353bae778d11730f5d0afd2192750777647
6337 yat2m: Silence lint warnings and fix a printf format bug.
6338 + commit 22b9bea1c3d0e944aa539a87d79e47d92ca5309f
6339 * doc/yat2m.c (ATTR_PRINTF, ATTR_NR_PRINTF, ATTR_MALLOC): New.
6340 (die, err, inf, xmalloc, xcalloc): New prototypes with attributes.
6341 (get_section_buffer): Take care of !N_SECTIONS.
6342 (proc_texi_cmd): Cast precision format arg.
6343 (proc_texi_buffer): Do not set IN_CMD when not used afterwards.
6345 2016-06-24 Werner Koch <wk@gnupg.org>
6347 gpg: New import option "import-export".
6348 + commit 7bca3be65e510eda40572327b87922834ebe07eb
6349 * g10/import.c (parse_import_options): Add option "import-export".
6350 (write_keyblock_to_output): New.
6351 (import_one): Implement option.
6353 2016-06-23 Werner Koch <wk@gnupg.org>
6355 gpg: New import option "import-show".
6356 + commit 1e5959ec059ba41f4de1e2f953300bc040efc16f
6357 * g10/options.h (IMPORT_SHOW): New.
6358 * g10/import.c (parse_import_options): Add "import-show".
6359 (import_one): Implement that.
6361 gpg: Do not print the validity after key generation.
6362 + commit 09c6f7135150efbbeb459d4ae0189a81e9d180f8
6363 * g10/keylist.c (struct keylist_context): Add field NO_VALIDITY.
6364 (list_keyblock_print): Take care of it.
6365 (list_keyblock_direct): Add arg NO_VALIDITY.
6366 * g10/keygen.c (do_generate_keypair): Merge keyblock and print w/o
6369 common: Fix possible small memory leak in b64dec.c.
6370 + commit c229ba4d8b9b16052ee0b9573bed7905be602cdf
6371 * common/b64dec.c (b64dec_finish): Always release TITLE.
6373 2016-06-23 Justus Winter <justus@g10code.com>
6375 tests/openpgp: Fake the system time for the tofu test.
6376 + commit e584d6468a2e72cd01e55f46104f9f96b56c0b66
6377 The keys in the tofu test are set to expire on 2016-09-17. Fake the
6378 system time for this test.
6380 This commit includes changes to the old test as well, for those who
6381 need to backport it.
6383 * tests/openpgp/gpg-agent.conf.tmpl: Drop trailing newlines.
6384 * tests/openpgp/tofu.scm: Fake system time.
6385 * tests/openpgp/tofu.test: Likewise.
6387 gpgscm: Handle exceptions in the transformation monad.
6388 + commit 145910afc077e7a5df6cc8b10e180dfa6ce38cc3
6389 * tests/gpgscm/tests.scm (pipe:do): Raise errors.
6390 (tr:spawn): Catch and return errors.
6391 (tr:call-with-content): Likewise.
6392 (tr:{open,write-to,pipe-do,assert-identity,assert-weak-identity}):
6395 tests/openpgp: Improve tests.
6396 + commit 1e822654c1dcfc23a9ef689f4e18c0ebba18baca
6397 * tests/openpgp/multisig.scm: Simplify test.
6398 * tests/openpgp/setup.scm (dearmor): Use pipe.
6400 gpgscm: Add types for special objects.
6401 + commit 332fa86982dc811640ac8643332d8375816e5b81
6402 * tests/gpgscm/scheme.c (enum scheme_types): Add types for boolean,
6403 nil, eof, and the sink object.
6404 (type_to_string): Handle new types.
6405 (scheme_init_custom_alloc): Give special objects a type.
6407 gpgscm: Fix Scheme initialization.
6408 + commit e6e56adf208f194ecafda29bb1c1c06655348432
6409 This potentially causes a crash if the garbage collector marks an eof
6412 * tests/gpgscm/scheme.c (scheme_init_custom_alloc): Initialize
6415 2016-06-23 Werner Koch <wk@gnupg.org>
6417 common: Add dedicated private key functions to name-value.c.
6418 + commit 3ead21da80da4570e77036cc05303914c9b1f364
6419 * common/name-value.c (struct name_value_container): Add field
6421 (my_error): New. Use instead of gpg_error.
6422 (nvc_new_private_key): New.
6423 (nve_release): Add arg 'private_key_mode'.
6424 (nvc_release): Call nve_release with private_key_mode flag.
6425 (nvc_delete): Ditto.
6426 (_nvc_add): Do no special case "Key:" in non-private_key_mode.
6427 (nvc_get_private_key): Return error in non-private_key_mode.
6428 (nvc_set_private_key): Ditto.
6429 (nvc_parse): Factor all code out to ...
6430 (do_nvc_parse): new. Add arg 'for_private_key'.
6431 (nvc_parse_private_key): New.
6432 * agent/findkey.c (write_extended_private_key): Replace nvc_parse by
6433 nvc_parse_private_key.
6434 (read_key_file): Ditto.
6436 * common/t-name-value.c (private_key_mode): New variable.
6437 (my_nvc_new): New. Replace all callers.
6438 (test_key_extraction): Take mode in account.
6440 (run_modification_tests): Ditto.
6442 (main): Add option --parse and rename --parse to --parse-key.
6444 common: Rename external symbols in name-value.c.
6445 + commit d74d23d860c1e5039bd595c31c846782c5cb8025
6446 * common/name-value.c, common/name-value.h: Rename symbol prefixes
6447 from "pkc_" to "nvc_" and from "pke_" to "nve_". Change all callers.
6449 common: Rename private-keys.c to name-value.c.
6450 + commit b841a883a2a66807aa427e65d49067584bedfbe2
6451 * common/private-keys.c: Rename to name-value.c.
6452 * common/private-keys.h: Rename to name-value.h. Chage all users.
6453 * common/t-private-keys.c: Rename to t-name-value.c.
6454 * common/Makefile.am: Adjust accordingly.
6456 common: Add PGP armor decoding to b64dec.
6457 + commit 3694579bc4eef27ed53e1845bf03be38c299ce76
6458 * common/b64dec.c (decoder_states): Add new states.
6459 (b64dec_proc): Handle PGP armored format.
6461 2016-06-23 NIIBE Yutaka <gniibe@fsij.org>
6463 g10: Fix regression of card-edit/fetch.
6464 + commit 6f5ff1cfe449cf1f4cb7287bc57570eb794216b2
6465 * g10/card-util.c (fetch_url): Call keyserver_fetch instead of
6466 keyserver_import_fprint.
6468 2016-06-21 Justus Winter <justus@g10code.com>
6470 tests/migrations: Convert to Scheme and re-enable.
6471 + commit f548383d9af912bf93217068cc8aa99a9a6eda93
6472 * configure.ac: Re-enable.
6473 * tests/Makefile.am: Likewise.
6474 * tests/migrations/Makefile.am (TESTS): Use Scheme tests.
6475 * tests/migrations/common.scm: New file.
6476 * tests/migrations/extended-private-key-format.scm: Likewise.
6477 * tests/migrations/from-classic.scm: Likewise.
6478 * tests/migrations/extended-private-key-format.test: Drop file.
6479 * tests/migrations/from-classic.test: Drop file.
6481 gpgscm: Add more file handling functions.
6482 + commit c5e0ca5a59ebd91b67944ca125cc8cd73a9d243e
6483 * tests/gpgscm/ffi.c (do_glob): New function.
6484 (ffi_init): Define new function.
6485 * tests/gpgscm/tests.scm (basename-suffix): New function.x
6487 tests/openpgp: Port the remaining tests to Scheme.
6488 + commit 0340fcdac864109e3dd6edee759efc96e4d3f84e
6489 * tests/openpgp/Makefile.am (TESTS): Add new tests.
6490 * tests/openpgp/defs.scm (gpg-with-colons): New function.
6491 (get-config): Use new function.
6492 * tests/openpgp/export.scm: New file.
6493 * tests/openpgp/tofu.scm: Likewise.
6495 gpgscm: Improve test framework.
6496 + commit 65081c31e7536d8fb5effcc2c9aeeffc120c9a69
6497 * tests/gpgscm/lib.scm (echo): Move...
6498 * tests/gpgscm/tests.scm (echo): ... here.
6499 (info, error, skip): And use echo here.
6500 (file-exists?): New function.
6501 (tr:spawn): Check that source exists and if the sink has been created.
6502 (tr:call-with-content): Hand in optional arguments.
6504 gpgscm: Use native string searching functions.
6505 + commit 5fbbc4b334a73150e709a4802cac99abd8ada61d
6506 * tests/gpgscm/ffi-private.h: Handle character arguments.
6507 * tests/gpgscm/ffi.c (do_string_index): New function.
6508 (do_string_rindex): Likewise.
6509 (do_string_contains): Likewise.
6510 (ffi_init): Define new functions.
6511 * tests/gpgscm/ffi.scm (ffi-define): New macro.
6512 * tests/gpgscm/lib.scm (string-index): Use native function,
6513 demonstrate behavior.
6514 (string-rindex): Likewise.
6515 (string-contains?): Likewise.
6516 Demonstrate behavior of various other functions.
6517 (read-all): Rework so that it can handle large files.
6519 gpgscm: Improve error reporting.
6520 + commit d99949fc8cf541018267964629992d55c97ca9ab
6521 * tests/gpgscm/scheme.c (type_to_string): New function.
6522 (Eval_Cycle): Include actual type in error message.
6524 gpgscm: Make memory allocation failures fatal.
6525 + commit 616582071a2c76c4fb529d4da549aa95ee5d78d6
6526 * tests/gpgscm/scheme.c (Eval_Cycle): Exit if we run out of memory.
6528 2016-06-21 Werner Koch <wk@gnupg.org>
6530 sm: Do not install cacert and other root certificates.
6531 + commit c19b2061274cd50838e62a2acbdc7e7d24888e7e
6532 * doc/Makefile.am (dist_pkgdata_DATA): Move qualified.txt and
6533 com-certs.pem to ...
6536 2016-06-20 Werner Koch <wk@gnupg.org>
6538 gpg: Add experimental support for an issuer fpr.
6539 + commit 955baf04364721457cd99aad21942523cd50498c
6540 * common/openpgpdefs.h (SIGSUBPKT_ISSUER_FPR): New.
6541 * g10/build-packet.c (build_sig_subpkt_from_sig): Add arg PKSK and
6542 insert the issuer fpr if needed.
6543 * g10/sign.c (write_signature_packets): Pass signing key.
6544 (make_keysig_packet): Ditto.
6545 (update_keysig_packet): Ditto.
6546 * g10/parse-packet.c (dump_sig_subpkt): Print issuer fpr.
6547 (parse_one_sig_subpkt): Detect issuer fpr.
6548 (can_handle_critical): Add issuer fpr.
6549 * g10/mainproc.c (check_sig_and_print): Try to get key via fingerprint.
6550 * g10/gpgv.c (keyserver_import_fprint): New stub.
6551 * g10/test-stubs.c (keyserver_import_fprint): New stub.
6553 gpg: New option --rfc4880bis.
6554 + commit ee2d9061d7abc36b857165a8395203a97380baa2
6555 * g10/options.h (struct opt): Add field flags.rfc4880bis.
6556 * g10/gpg.c (oRFC4880bis): new.
6557 (opts): add --rfc4880bis.
6558 (main): Implement that and print a warning.
6560 2016-06-19 Niibe Yutaka <gniibe@fsij.org>
6562 scd: Reset nonnull_nad to zero for VENDOR_GEMPC.
6563 + commit 971064f8b7ad676326b2a468f688037a303717df
6564 * (parse_ccid_descriptor): nonnull_nad = 0 for all GEMPC device.
6566 2016-06-17 Werner Koch <wk@gnupg.org>
6568 tests: Make make distcheck work again.
6569 + commit ce1689ea0720552ac900d7b2c4139caf24452018
6570 * Makefile.am (tests): Remove test code which would led to doubling
6571 calls to for e.g. "make distclean".
6572 * tests/Makefile.am: Typo fixes.
6573 * tests/gpgscm/Makefile.am (EXTRA_DIST): Fix name of License file.
6575 (check): Replace by check-local because check is a standard automake
6577 * tests/openpgp/Makefile.am (TESTS_ENVIRONMENT): Replace gmake0sim by
6578 automake generated macro.
6579 (EXTRA_DIST): Add defs.scm
6581 gpgscm: Silence compiler warnings.
6582 + commit dfe5282e5859409849a17d68b2b3a046370f65bd
6583 * tests/gpgscm/scheme.c (mk_integer): Rename arg NUM to N.
6584 (fill_vector): Ditto.
6585 (mark): Rename var NUM to N.
6586 (set_slot_in_env): Mark SC as unused.
6587 (is_any): Mark P as unused.
6589 Add license notices for TinySCHEME.
6590 + commit dc1db12d2c4f9f12bc3f7de37f76293b316c3f35
6591 * tests/gpgscm/COPYING: Rename to ...
6592 * tests/gpgscm/LICENSE.TinySCHEME: this.
6593 * AUTHORS: Add a note about TinySCHEME.
6594 * build-aux/speedo/w32/pkg-copyright.txt: Add TinySCHEME notice.
6596 2016-06-17 Justus Winter <justus@g10code.com>
6598 tests/openpgp: Reimplement tests in Scheme.
6599 + commit 9609cb20e4caee739b9fc4fd36797029d2970041
6600 * Makefile.am: Build the test infrastructure on Windows.
6601 * tests/openpgp/Makefile.am (required_pgms): Add gpgscm.
6602 (TESTS_ENVIRONMENT): Make sure gpgscm and the libraries are found.
6603 (TESTS): Replace tests with the new Scheme implementations.
6604 * tests/openpgp/4gb-packet.scm: New file.
6605 * tests/openpgp/README: Likewise.
6606 * tests/openpgp/armdetach.scm: Likewise.
6607 * tests/openpgp/armdetachm.scm: Likewise.
6608 * tests/openpgp/armencrypt.scm: Likewise.
6609 * tests/openpgp/armencryptp.scm: Likewise.
6610 * tests/openpgp/armor.scm: Likewise.
6611 * tests/openpgp/armsignencrypt.scm: Likewise.
6612 * tests/openpgp/armsigs.scm: Likewise.
6613 * tests/openpgp/clearsig.scm: Likewise.
6614 * tests/openpgp/conventional-mdc.scm: Likewise.
6615 * tests/openpgp/conventional.scm: Likewise.
6616 * tests/openpgp/decrypt-dsa.scm: Likewise.
6617 * tests/openpgp/decrypt.scm: Likewise.
6618 * tests/openpgp/default-key.scm: Likewise.
6619 * tests/openpgp/defs.scm: Likewise.
6620 * tests/openpgp/detach.scm: Likewise.
6621 * tests/openpgp/detachm.scm: Likewise.
6622 * tests/openpgp/ecc.scm: Likewise.
6623 * tests/openpgp/encrypt-dsa.scm: Likewise.
6624 * tests/openpgp/encrypt.scm: Likewise.
6625 * tests/openpgp/encryptp.scm: Likewise.
6626 * tests/openpgp/finish.scm: Likewise.
6627 * tests/openpgp/genkey1024.scm: Likewise.
6628 * tests/openpgp/gpgtar.scm: Likewise.
6629 * tests/openpgp/import.scm: Likewise.
6630 * tests/openpgp/mds.scm: Likewise.
6631 * tests/openpgp/multisig.scm: Likewise.
6632 * tests/openpgp/run-tests.scm: Likewise.
6633 * tests/openpgp/seat.scm: Likewise.
6634 * tests/openpgp/setup.scm: Likewise.
6635 * tests/openpgp/signencrypt-dsa.scm: Likewise.
6636 * tests/openpgp/signencrypt.scm: Likewise.
6637 * tests/openpgp/sigs-dsa.scm: Likewise.
6638 * tests/openpgp/sigs.scm: Likewise.
6639 * tests/openpgp/use-exact-key.scm: Likewise.
6640 * tests/openpgp/verify.scm: Likewise.
6641 * tests/openpgp/version.scm: Likewise.
6643 tests/gpgscm: Add a TinySCHEME-based test driver.
6644 + commit d2ce3f9eee34e380536049c0c9d26ed66273f094
6645 * configure.ac: Add new component.
6646 * tests/Makefile.am: Likewise.
6647 * tests/gpgscm/Makefile.am: New file.
6648 * tests/gpgscm/ffi-private.h: Likewise.
6649 * tests/gpgscm/ffi.c: Likewise.
6650 * tests/gpgscm/ffi.h: Likewise.
6651 * tests/gpgscm/ffi.scm: Likewise.
6652 * tests/gpgscm/lib.scm: Likewise.
6653 * tests/gpgscm/main.c: Likewise.
6654 * tests/gpgscm/private.h: Likewise.
6655 * tests/gpgscm/repl.scm: Likewise.
6656 * tests/gpgscm/scheme-config.h: Likewise.
6657 * tests/gpgscm/t-child.c: Likewise.
6658 * tests/gpgscm/t-child.scm: Likewise.
6659 * tests/gpgscm/tests.scm: Likewise.
6661 tests/gpgscm: Foreign objects support for TinySCHEME.
6662 + commit 56c36f2932fe2baf8e46efdea4315cf33f3c0338
6663 * tests/gpgscm/scheme-private.h (struct cell): Add 'foreign_object'.
6664 (is_foreign_object): New prototype.
6665 (get_foreign_object_{vtable,data}): Likewise.
6666 * tests/gpgscm/scheme.c (enum scheme_types): New type.
6667 (is_foreign_object): New function.
6668 (get_foreign_object_{vtable,data}): Likewise.
6669 (mk_foreign_object): Likewise.
6670 (finalize_cell): Free foreign objects.
6671 (atom2str): Pretty-print foreign objects.
6672 (vtbl): Add new functions.
6673 * tests/gpgscm/scheme.h (struct foreign_object_vtable): New type.
6674 (mk_foreign_object): New prototype.
6675 (struct scheme_interface): Add new functions.
6677 Patch from Thomas Munro,
6678 https://sourceforge.net/p/tinyscheme/patches/13/
6680 tests/gpgscm: Dynamically allocate string buffer.
6681 + commit 8e5ad9aabdd57457f76078924d33acb94b75a877
6682 * tests/gpgscm/scheme-config.h (strbuff{,_size}): Make buffer dynamic.
6683 * tests/gpgscm/scheme.c (expand_strbuff): New function.
6684 (putcharacter): Adapt length test.
6685 (readstrexp): Expand buffer if necessary.
6686 (scheme_init_custom_alloc): Initialize buffer.
6687 (scheme_deinit): Free buffer.
6689 Patch from Thomas Munro,
6690 https://sourceforge.net/p/tinyscheme/patches/11/
6692 tests/gpgscm: Make exception value available.
6693 + commit 3b100da9ada9171d873a796eaf3351d4fceed394
6694 * tests/gpgscm/init.scm (throw): Hand exception value to the handler.
6695 (catch): And bind it to *error*.
6697 tests/gpgscm: Add package macro.
6698 + commit 2907381f4a7b422823b2304ebe550acbb2f66480
6699 * tests/gpgscm/init.scm: Add package macro from manual.
6701 tests/gpgscm: Expose function to open streams as Scheme ports.
6702 + commit 55275b8e2b43a3420d85a1a931e02febaa1113e7
6703 * tests/gpgscm/scheme.c (vtbl): Add 'port_from_file' to the vtable.
6704 * tests/gpgscm/scheme.h (struct scheme_interface): New field
6705 'mk_port_from_file'.
6707 tests/gpgscm: Nicer error message.
6708 + commit 13bba1357478815a85f5c0db3607ebb6cd574f56
6709 * tests/gpgscm/scheme.c (opexe_0): Include the value that we tried to
6710 evaluate as function-like in the error message.
6712 tests/gpgscm: Fix error hook.
6713 + commit e02c1ccae13e4eb55afef8de4f29022c709404eb
6714 * tests/gpgscm/init.scm (*error-hook*): Fix error hook so that the
6715 whole error message is displayed.
6717 tests/gpgscm: Handle unhandled enumeration values.
6718 + commit 133f25703a47e9bbc28c4532934f405ecdeb2de0
6719 * tests/gpgscm/scheme.c (opexe_{3,4}): Handle unhandled enumeration
6720 values in the opcode dispatching code.
6722 tests/gpgscm: Verbatim import of latest TinySCHEME.
6723 + commit cb989504cdd4f0ff902d31af871dc3ee0d9419ac
6724 Revision 110 from svn://svn.code.sf.net/p/tinyscheme/code/trunk
6726 * tests/gpgscm/COPYING: New file.
6727 * tests/gpgscm/Manual.txt: Likewise.
6728 * tests/gpgscm/init.scm: Likewise.
6729 * tests/gpgscm/opdefines.h: Likewise.
6730 * tests/gpgscm/scheme-private.h: Likewise.
6731 * tests/gpgscm/scheme.c: Likewise.
6732 * tests/gpgscm/scheme.h: Likewise.
6734 2016-06-17 Werner Koch <wk@gnupg.org>
6736 scd: Make option --homedir work.
6737 + commit 4e41745b3ea3bb8ffc50af6bafeb1de9c928812f
6738 * scd/scdaemon.c (opts): Add --homedir.
6740 2016-06-16 Werner Koch <wk@gnupg.org>
6743 + commit b3df4e2ac6aa9b4154e923f71b4221533043e5ac
6746 2016-06-16 Yuri Chornoivan <yurchor@ukr.net>
6748 po: Update Ukrainian translation.
6749 + commit d4ce1b04431cf02ebc1bdc7150ad587d599f2a95
6752 2016-06-16 Ineiev <ineiev@gnu.org>
6754 po: Update Russian translation.
6755 + commit 2273e4f999325cdc9d275507cd07c7e95d62a377
6758 2016-06-16 Werner Koch <wk@gnupg.org>
6760 po: Update German translation.
6761 + commit 69f1b0b041c251abb66f000db173a602693bb18f
6764 Add missing files so that make distcheck works again,
6765 + commit 4d7d292cd5b616b209dfd4302a1deffe11b7be0e
6766 * tests/openpgp/Makefile.am (CLEANFILES): Add created file
6768 * tools/Makefile.am (EXTRA_DIST): Add no-libgcrypt.c.
6770 tools: Fix typo in function name of symcryptrun.
6771 + commit e44dd878df58dab27c9cd411d80c4c81501e649a
6772 * tools/symcryptrun.c (main): Fix typo.
6774 2016-06-15 Niibe Yutaka <gniibe@fsij.org>
6776 g10: Fix another race condition for trustdb access.
6777 + commit 35a3ce2acf78a95fecbccfd8db0560cca24232df
6778 * g10/tdbio.c (create_version_record): Call create_hashtable to always
6779 make hashtable, together with the version record.
6780 (get_trusthashrec): Remove call to create_hashtable.
6782 2016-06-14 Werner Koch <wk@gnupg.org>
6784 gpg: Print the subkey's curve and not the primary key curve.
6785 + commit b56aebe76657ce6efa9c6819d5a8c2a31c2bbbba
6786 * g10/keylist.c (list_keyblock_colon): Use PK2 for the subkey's curve.
6788 ldap: Improve info output for v3 fallback.
6789 + commit b7e3dfcf139284d30921cf44e7bab43d4244cc37
6790 * dirmngr/dirmngr_ldap.c (fetch_ldap): Do not use log_debug in an
6791 unprotected section. Replace log_debug by log_info in verbose mode.
6793 2016-06-14 Andre Heinecke <aheinecke@intevation.de>
6795 dirmngr: Try ldap protocol V3 as fallback.
6796 + commit f989b6ee0db96c36f13f093cbbcfd1d5b472d03c
6797 * dirmngr/dirmngr_ldap.c (fetch_ldap): Try V3 Protocol in case
6798 default Protocol gives error.
6800 dirmngr: Print ldap error if bind fails.
6801 + commit 5faddcb2927a997e05fb34eb270982096d1fe3a4
6802 * dirmngr/dirmngr_ldap.c (fetch_ldap): Use ldap_err2string on bind
6805 2016-06-14 Werner Koch <wk@gnupg.org>
6807 gpgsm: Allow ciphers AES192 and SERPENT256.
6808 + commit 5f9bd7a9e1ed4edcbb6c4e908d4bea5cd7dc9e68
6809 * sm/gpgsm.c (main): Add AES192 cipher. Allow SERPENT256.
6811 doc: Add files and envvars to a new index.
6812 + commit 2423238ee4c8a8c531dfe9e45c95f2760b638faa
6813 * doc/gnupg.texi: Define new index "ef".
6814 (Environment Index): New.
6816 gpg: Avoid endless loop in a tofu error case.
6817 + commit f980cd2e0e4694a38038f518f290017087d4ce33
6818 * g10/tofu.c (get_trust): Do not jump to out.
6820 gpg: Split tofu's get_trust function into several smaller ones.
6821 + commit 1affdf1efc42ed22dc023c92ca5134d5bcbf2686
6822 * g10/tofu.c (get_trust): Factor code out to ...
6823 (format_conflict_msg_part1): new and to ...
6824 (ask_about_binding): new.
6826 2016-06-13 Werner Koch <wk@gnupg.org>
6828 gpg: Un-deprecate option --auto-key-retrieve.
6829 + commit 9e126af215143fddbdc3949681abb9ffdb9153bb
6830 * g10/gpg.c (main): Remove deprecation warning.
6832 gpg: New option --disable-signer-uid, create Signer's UID sub-packet.
6833 + commit 61e7fd68c05ed185728e9da45f7a44a2323065ad
6834 * g10/gpg.c (oDisableSignerUID): New.
6835 (opts): New option '--disable-signer-uid'.
6837 * g10/options.h (opt): Add field flags.disable_signer_uid.
6838 * g10/sign.c: Include mbox-util.h.
6839 (mk_notation_policy_etc): Embed the signer's uid.
6840 * g10/mainproc.c (check_sig_and_print): Do not use WKD for auto key
6841 retrieval if --disable-signer-uid is used.
6843 gpg: Try Signer's User ID sub-packet with --auto-key-retrieve.
6844 + commit 08c82b1b55d28ffd09b859205b7686bcefae5011
6845 * g10/packet.h (PKT_signature): Add field 'signers_uid'.
6846 * g10/parse-packet.c (parse_signature): Set this field.
6847 * g10/free-packet.c (free_seckey_enc): Free field.
6848 (copy_signature): Copy field.
6849 * g10/mainproc.c (akl_has_wkd_method): New.
6850 (check_sig_and_print): Extend NEWSIG status. If WKD is enabled try to
6851 locate a missing key via the signature's Signer's User ID sub-packet.
6852 Do this right before trying a keyserver lookup.
6854 2016-06-11 Werner Koch <wk@gnupg.org>
6856 gpg: Remove C-99ism, re-indent, and simplify one function.
6857 + commit 334e993a71d3abb7d30cb5ee05d578cecf0c3f67
6858 * g10/call-agent.c (struct keyinfo_data): Rename to
6859 keyinfo_data_parm_s.
6860 (agent_get_keyinfo): Replace C-99 style init.
6861 (keyinfo_status_cb): Use new fucntion split_fields.
6862 * g10/export.c (match_curve_skey_pk): Add missings returns error
6864 (cleartext_secret_key_to_openpgp): Better clear PK->PKEY first.
6866 common: New function split_fields.
6867 + commit 5ba99d9302cd86aee99958b71075d5288bb430aa
6868 * common/stringhelp.c (split_fields): New.
6869 * common/t-stringhelp.c: Include assert.h.
6870 (test_split_fields): New.
6873 2016-06-11 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
6875 g10: Export cleartext keys as cleartext.
6876 + commit c41c46fa84cabbed74a13ded51fc3a817a919367
6877 * g10/export.c (do_export_stream): If a key is stored by the agent in
6878 cleartext, then try to export it as cleartext.
6879 * tests/openpgp/export.test: For secret keys that are stored in
6880 cleartext, test should try to export without pinentry interaction.
6882 g10: Allow receiving cleartext secret keys from agent.
6883 + commit a3cb72af79ee645eda212f31ab0b266f2c3d9f29
6884 * g10/export.c (match_curve_skey_pk): New function, testing whether an
6885 OpenPGP public key and an S-expression use the same curve.
6886 * g10/export.c (cleartext_secret_key_to_openpgp): New function,
6887 filling in the secret key parameters of a PKT_public_key object from
6888 a corresponding cleartext S-expression.
6889 * g10/export.c, g10/main.h (receive_seckey_from_agent): Add cleartext
6890 parameter, enabling retrieval of the secret key, unlocked.
6891 * g10/export.c (do_export_stream): Send cleartext as 0, keeping current
6893 * g10/keygen.c (card_store_key_with_backup): Use cleartext=0 to ensure
6894 that smartcard backups are all passphrase-locked.
6896 g10: Add openpgp_protected flag to agent secret key export functions.
6897 + commit 7de74320767d15d915942a98ff47c00175a078ed
6898 * g10/call-agent.c, g10/call-agent.h (agent_export_key): Add
6899 openpgp_protected flag.
6900 * g10/export.c (receive_seckey_from_agent): Request openpgp_protected
6901 secret keys from agent.
6902 * agent/command.c (hlp_export_key): EXPORT_KEY help text: add a
6903 brief description of the effect of --openpgp.
6905 g10: report whether key in agent is passphrase-protected or not.
6906 + commit 00f30cc01c79bbdff5cdc3be795f009f15d3845e
6907 * g10/call-agent.c, g10/call-agent.h (agent_get_keyinfo): add
6908 r_cleartext parameter to report whether a key is stored without
6909 passphrase protection.
6910 * g10/gpgv.c, g10/test-stubs.c: augment dummy agent_get_keyinfo to
6912 * g10/export.c, g10/keyedit.c, g10/keygen.c, g10/keylist.c,
6913 g10/sign.c: pass NULL to agent_get_keyinfo since we do not yet
6914 need to know whether agent is passphrase-protected.
6916 2016-06-08 Werner Koch <wk@gnupg.org>
6918 Explicitly restrict socket permissions.
6919 + commit 8127043d549a5843ea1ba2dc6da4906fc2258d53
6920 * agent/gpg-agent.c (create_server_socket): Call chmod before listen.
6921 * scd/scdaemon.c (create_server_socket): Ditto.
6922 * dirmngr/dirmngr.c (main): Ditto.
6924 w32: Fix recent build regression.
6925 + commit 6790115fd9059e066b4e6feb6b1e3876a1c1d522
6926 * common/homedir.c (_gnupg_socketdir_internal) [W32]: Add definition
6928 * g10/gpg.c (main) [W32]: Fix use og gnupg_homedir.
6930 * agent/gpg-agent.c (remove_socket): Remove unused var P.
6931 * scd/scdaemon.c (cleanup): Ditto.
6933 gpgconf: New commands --create-socketdir and --remove-socketdir.
6934 + commit cf4910419e09daf414f76ca2c8ab685c3d488ec1
6935 * tools/gpgconf.c: Include unistd.h.
6936 (aCreateSocketDir, aRemoveSocketDir): New.
6937 (opts): Add --create-socketdir and --remove-socketdir.
6938 (main): Implement them.
6940 Implement /run/user/UID/gnupg based sockets.
6941 + commit aab8a0b05292b0d06e3001a0b289224cb7156dbd
6942 * common/homedir.c: Include sys/stat.h and zb32.h.
6943 (w32_portable_app, w32_bin_is_bin): Change type from int to byte.
6944 (non_default_homedir): New.
6945 (is_gnupg_default_homedir): New.
6946 (default_homedir): Set non_default_homedir.
6947 (gnupg_set_homedir): Set non_default_homedir and make
6948 the_gnupg_homedir and absolute directory name.
6949 (gnupg_homedir): Return an absolute directory name.
6950 (_gnupg_socketdir_internal): New.
6951 (gnupg_socketdir): Implement /run/user/ based sockets.
6952 * tools/gpg-connect-agent.c (get_var_ext): Replace now obsolete
6953 make_filename by xstrdup.
6954 * tools/gpgconf.c (main): Sue gnupg_homedir for the "homedir:" output.
6956 gpgconf: Add option --homedir.
6957 + commit def512eb67c8a380f3b873cee0f156deef0b6dda
6958 * tools/gpgconf.c (opts): Add --homedir.
6959 (main): Set homedir.
6961 Do not use no-libgcrypt dummy for tools.
6962 + commit 173fa97102fec68670a46ae1b460231e2a183c81
6963 * tools/Makefile.am (gpgconf_SOURCES): Remove no-libgcrypt.c.
6964 (gpgconf_LDADD): Add LIBGCRYPT_LIBS.
6965 (gpg_connect_agent_LDADD): Ditto.
6966 (gpgtar_LDADD): Ditto.
6967 * dirmngr/Makefile.am (dirmngr_client_LDADD): Ditto.
6968 (t_common_ldadd): Ditto. Remove no-libgcrypt.o.
6970 Do not try to remove the enclosing directory of sockets.
6971 + commit 0faf8951544f43790c412777a926c969540174bd
6972 * agent/gpg-agent.c (remove_socket): Do not remove the enclosing
6974 * scd/scdaemon.c (cleanup): Ditto.
6976 2016-06-07 Werner Koch <wk@gnupg.org>
6978 common: New function gnupg_socketdir.
6979 + commit 36550dde998fa1d497098050ca2d4e1a952ed6b6
6980 * common/homedir.c (gnupg_socketdir): New.
6981 * agent/gpg-agent.c (create_socket_name): Use new function instead of
6983 (check_own_socket): Ditto.
6984 (check_for_running_agent): Ditto.
6985 * agent/preset-passphrase.c (main): Ditto.
6986 * common/asshelp.c (start_new_gpg_agent): Ditto.
6987 * scd/scdaemon.c (create_socket_name): Ditto.
6988 * tools/gpgconf.c (main): Ditto.
6989 * tools/symcryptrun.c (main): Ditto.
6991 common: Remove homedir arg from start_new_{dirmngr,gpg_agent}.
6992 + commit fb88f37c40dc156fa0b5bfba4ac85f1e553fd7e9
6993 * common/asshelp.c (start_new_gpg_agent): Remove arg 'homedir' in
6994 favor of gnupg_homedir (). Change all callers.
6995 (start_new_dirmngr): Ditto.
6996 * common/get-passphrase.c (gnupg_prepare_get_passphrase): Remove arg
6999 Replace use of opt.homedir by accessor functions.
7000 + commit 22a7ef01aa2c0eb77bcc40174d09104acc35cab1
7001 * common/homedir.c (the_gnupg_homedir): New var.
7002 (gnupg_set_homedir): New.
7003 (gnupg_homedir): New.
7004 * g10/options.h (struct opt): Remove 'homedir' and replace all users
7005 by the new accessor functions.
7006 * g13/g13-common.h (struct opt): Ditto.
7007 * scd/scdaemon.h (struct opt): Ditto.
7008 * sm/gpgsm.h (struct opt): Ditto.
7009 * dirmngr/dirmngr.h (struct opt): Ditto.
7010 * agent/preset-passphrase.c (opt_homedir): Ditto.
7011 * agent/protect-tool.c (opt_homedir): Ditto.
7013 2016-06-07 NIIBE Yutaka <gniibe@fsij.org>
7015 po: Update Japanese translation.
7016 + commit 650abbab716750d6087a457a25fa2efaaa3567cd
7019 gpg: Fix command line parsing of --quick-addkey and --quick-gen-key.
7020 + commit abeeb84a94be815a16e678b319cb5c8bffde2811
7021 * g10/gpg.c (main): Compose a block by curly braces.
7023 2016-06-06 Werner Koch <wk@gnupg.org>
7025 gpg: Use --keyid-format=none by default.
7026 + commit 7257ea2d450238afa4d162fab8001f74782fe43f
7027 * g10/gpg.c (main): Init keyid_format to KF_NONE.
7028 * g10/keyid.c (format_keyid): Ditto.
7031 gpg: Add option --with-subkey-fingerprint.
7032 + commit 1d1cb86694fb2223de1da0b3bfffb5c62f505847
7033 * g10/gpg.c (oWithSubkeyFingerprint): New.
7034 (opts): Add --with-subkey-fingerprint[s].
7035 (main): Set that option.
7036 * g10/options.h (struct opt): Add 'with_subkey_fingerprint'.
7037 * g10/keylist.c (list_keyblock_print): Print subkey fingerprint.
7038 (print_fingerprint): Tweak printing to use compact format if
7041 gpg: Implement --keyid-format=none.
7042 + commit b047388d57443f584f1c1d6333aac5218b685042
7043 * g10/gpg.c (main): Add option "none" to --keyid-format.
7044 * g10/options.h (KF_NONE): New.
7045 * g10/keyid.c (format_keyid): Implement that.
7046 (keystr): Use format "long" is KF_NONE is in use.
7047 (keystr_with_sub): Ditto.
7048 * g10/keylist.c (list_keyblock_print): Adjust indentaion for KF_NONE.
7049 Factor some code out to ...
7050 (print_key_line): new.
7051 (print_fingerprint): Add mode 20.
7052 * g10/mainproc.c (list_node): Use print_key_line. Replace MAINKEY by
7053 flags.primary in the PK. Fix putting a " revoked..." string into the
7055 * g10/pkclist.c (do_edit_ownertrust): Use print_key_line. This
7056 slightly changes the putput format.
7057 * g10/revoke.c (gen_standard_revoke): Use print_key_line. This may
7058 also put "expires: " into the output.
7060 2016-06-04 Werner Koch <wk@gnupg.org>
7062 w32: Require --enable-build-timestamp for the BUILD_HOSTNAME.
7063 + commit 79b7a8a9e0d41b743ceaee20dc47294359fe0d44
7064 * configure.ac (BUILD_HOSTNAME): Set to "<anon>" bey default.
7065 * build-aux/speedo.mk (speedo_pkg_gnupg_configure): Add
7066 --enable-build-timestamp.
7068 2016-06-02 Werner Koch <wk@gnupg.org>
7070 gpg: Add the fingerprint to KEY_CREATED for subkeys.
7071 + commit 8d976a6b07c5a356631791b46b590328c1451f31
7072 * g10/keygen.c (print_status_key_created): Make more robust by
7073 allowing a NULL for PK.
7074 (generate_subkeypair): Use print_status_key_created.
7075 (generate_card_subkeypair): Ditto.
7077 gpg: Try to use the passphrase from the primary for --quick-addkey.
7078 + commit 1b460f049e5c1c102d8b55ad28781688252c5a6b
7079 * agent/command.c (cmd_genkey): Add option --passwd-nonce.
7080 (cmd_passwd): Return a PASSWD_NONCE in verify mode.
7081 * g10/call-agent.c (agent_genkey): Add arg 'passwd_nonce_addr' and do
7082 not send a RESET if given.
7083 (agent_passwd): Add arg 'verify'.
7084 * g10/keygen.c (common_gen): Add optional arg 'passwd_nonce_addr'.
7085 (gen_elg, gen_dsa, gen_ecc, gen_rsa, do_create): Ditto.
7086 (generate_subkeypair): Use sepeare hexgrip var for the to be created
7087 for hexgrip feature. Verify primary key first. Make use of the
7088 passwd nonce. Allow for a static passphrase.
7090 gpg: Extend the --quick-gen-key command.
7091 + commit 01285f909e43e8d6a48fbcc77bb5af53d567d8a2
7092 * g10/keygen.c (quickgen_set_para): Add arg 'use'.
7093 (quick_generate_keypair): Add args 'algostr', 'usagestr', and
7094 'expirestr'. Implement primary only key mode.
7095 (parse_algo_usage_expire): Set NBITS for the default algo.
7096 * g10/gpg.c (main): Extend --quick-gen-key command.
7098 gpg: Improve the new parse_subkey_algostr_usagestr fucntion.
7099 + commit dcc4cd83821667be22e502af86139bb4bd41bdf7
7100 * g10/keygen.c (parse_usagestr): Allow "cert".
7101 (generate_subkeypair): Factor expire parsing out to ...
7102 (parse_subkey_algostr_usagestr): here. Rename to ...
7103 (parse_algo_usage_expire): this. Add arg 'for_subkey'. Set CERT for
7104 primary key and check that it is not set for subkeys.
7106 gpg: New command --quick-addkey.
7107 + commit 8f2a053a0ffa0430d01a53b4d491a3f0fff683eb
7108 * g10/keygen.c (DEFAULT_STD_SUBKEYUSE): New.
7109 (ask_keysize): Factor code out to ...
7110 (get_keysize_range, fixup_keysize): new.
7111 (parse_parameter_usage): Factor parsing out to ...
7112 (parse_usagestr): new. Allow use of "encr" as alias for "encrypt".
7113 (parse_subkey_algostr_usagestr): New.
7114 (generate_subkeypair): Add new args. Implement unattended mode.
7116 * g10/keyedit.c (keyedit_quick_sign): Factor some code out to ...
7117 (find_by_primary_fpr): new.
7118 (keyedit_quick_addkey): New.
7119 * g10/gpg.c (aQuickAddKey): New.
7120 (opts): Add --quick-addkey.
7123 gpg: Do not abort on certain invalid packets.
7124 + commit d837f6b0eadb14ea08c1c6030b4d6adaaee8778e
7125 * g10/build-packet.c (write_fake_data): Check for non-opaque data.
7126 * g10/seskey.c (do_encode_md): Return NULL instead of abort.
7128 common: New function openpgp_is_curve_supported.
7129 + commit 072acb69be55e366e2da921e3953404765fa3928
7130 * common/openpgp-oid.c: Include openpgpdefs.h.
7131 (oidtable): Add field pubkey_algo.
7132 (openpgp_is_curve_supported): New.
7134 2016-06-01 NIIBE Yutaka <gniibe@fsij.org>
7136 g10: Allow User ID length >= 256.
7137 + commit db1ecc8212defdd183abbb6b1407fcc8d2dc9552
7138 * build-packet.c (do_user_id): Call write_header2 with HDRLEN not set.
7140 2016-05-31 Werner Koch <wk@gnupg.org>
7142 gpg: New status code NOTATION_FLAGS.
7143 + commit 67a4bc8d536f6997f14daff4c039abd48a172100
7144 * common/status.h (STATUS_NOTATION_FLAGS: New.
7145 * g10/packet.h (struct notation): Add flags.human.
7146 (notation_t): New typedef.
7147 * g10/build-packet.c (sig_to_notation): Set flags.human.
7148 * g10/keylist.c (show_notation): Write STATUS_NOTATION_FLAGS.
7150 2016-05-28 Werner Koch <wk@gnupg.org>
7152 common: Add a status callback to gnupg_exec_tool_stream.
7153 + commit 239a4d53916b47b5b0f0167a9b2c7a8915bb9c52
7154 * common/exectool.h (exec_tool_status_cb_t): New.
7155 * common/exectool.c: Include missing exectool.h.
7156 (read_and_log_buffer_t): Replace array by pointer.
7157 (gnupg_exec_tool_stream): Add args 'status_cb' and 'status_cb_value'.
7158 Change all callers to pass NULL for them. Malloc buffer for
7160 (read_and_log_stderr): Implement status_fd feature.
7162 2016-05-27 Werner Koch <wk@gnupg.org>
7164 common: Allow a second input stream for gnupg_exec_tool_stream.
7165 + commit 44a32455c8e41400ea96db4507c8a42bdb65b3b6
7166 * common/exechelp-posix.c (do_exec): Add arg 'except' and pass to
7168 (gnupg_spawn_process): Add arg 'except'. Change callers to pass NULL
7170 * common/exechelp-w32.c (gnupg_spawn_process): Add dummy arg 'except'.
7171 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
7172 * common/exectool.c (copy_buffer_do_copy): Allow NULL for SINK.
7173 (gnupg_exec_tool_stream): Add arg 'inextra'. Change callers to pass
7174 NULL for it. Allow NULL for OUTPUT.
7176 common: Simplify the fd closing patch 512c56a.
7177 + commit e6d9a2d07ed7aeac3944d8a7d1317c4a117356b4
7178 * common/exechelp-posix.c (get_max_fds): Use /proc/self.
7180 common: Speedup closing fds before an exec.
7181 + commit 512c56af43027149e8beacf259746b8d7bf9b1a2
7182 * common/exechelp-posix.c [__linux__]: Include dirent.h.
7183 (get_max_fds) [__linux__]: Return the actual used highest fd.
7185 tools: Improve debug output of rfc822parse.
7186 + commit ad75ca9c963bebbe02aae8d73e199a705764ae82
7187 * tools/rfc822parse.c (show_event): Add missing events.
7189 build: Remove obsolete tests for funopen and fopencookie.
7190 + commit d755bcb89dbeaf6c7c1eca73ccabdf89b536c535
7191 * configure.ac (AC_CHECK_FUNCS): Remove tests for funopen.
7193 common: Extend gnupg_create_inbound_pipe et al.
7194 + commit 5d991e333a1885adc40abd9d00c01fec4bd5d9d7
7195 * common/exechelp-posix.c (gnupg_create_inbound_pipe): Add args 'r_fp'
7197 (gnupg_create_outbound_pipe): Ditto.
7198 * common/exechelp-w32.c (gnupg_create_inbound_pipe): Add non yet
7199 functional args 'r_fp' and 'nonblock'.
7200 (gnupg_create_outbound_pipe): Ditto.
7201 * common/exechelp-w32ce.c (gnupg_create_inbound_pipe): Ditto.
7202 (gnupg_create_outbound_pipe): Ditto.
7204 common: Make use of default_errsource in exechelp.
7205 + commit 96c7901ec1c79be732570811223d3ea54875abfe
7206 * common/exechelp-posix.c (my_error_from_syserror, my_error): New.
7207 Use them instead of gpg_error and gpg_error_from_syserror.
7208 (create_pipe_and_estream): Remove arg ERRSOURCE and fix use of
7209 OUTBOUND which has a wrong name. Adjust callers.
7210 (gnupg_spawn_process): Remove arg ERRSOURCE and replace by use of
7212 * common/exechelp-w32.c (gnupg_spawn_process): Ditto.
7213 * common/exechelp-w32ce.c (gnupg_spawn_process): Ditto.
7214 * common/exectool.c (gnupg_exec_tool_stream): Do not pass
7215 GPG_ERROR_FROM_SYSERROR.
7216 * tools/gpgconf-comp.c (gc_component_check_options): Ditto.
7217 (retrieve_options_from_program): Ditto.
7219 gpg: Keep current and total of PROGESS status lines small enough.
7220 + commit 6c957c3d880c069bb843cc58fdcebb9fc344727e
7221 * g10/progress.c (progress_filter): Factor status wrote out to...
7222 (write_status_progress): New. Scale values down.
7224 2016-05-27 NIIBE Yutaka <gniibe@fsij.org>
7226 configure: Detection of libusb on FreeBSD.
7227 + commit b3e043ba905fdf2efcdadbd7022ac53f4408b748
7228 * configure.ac (LIBUSB_LIBS): Use LIBUSB_NAME for AC_CHECK_LIB.
7230 2016-05-25 Werner Koch <wk@gnupg.org>
7232 build: Switch to new URL for swdb.lst.
7233 + commit 74028096e06d2904f77b74b373750264e5b7b1ea
7236 2016-05-24 Werner Koch <wk@gnupg.org>
7238 gpgtar: Simplify code by using ccparray.
7239 + commit 91bc7833836f19256d56984c94cacf44853ff5c8
7240 * tools/gpgtar-create.c (gpgtar_create): Use ccparray functions.
7241 * tools/gpgtar-extract.c (gpgtar_extract): Ditto.
7242 * tools/gpgtar-list.c (gpgtar_list): Ditto.
7244 common: Add simple dynamic array function.
7245 + commit 2421f7f7ed74ed20372efd63a2efd58d3b55005c
7246 * common/ccparray.c: New.
7247 * common/ccparray.h: New.
7248 * common/t-ccparray.c: New.
7249 * common/Makefile.am (common_sources): Add files.
7250 (module_tests): Add test file.
7251 (t_ccparray_LDADD): New.
7253 2016-05-23 Justus Winter <justus@g10code.com>
7255 tests: Test the pinentry interactions when exporting keys.
7256 + commit b9d1e099c3ec3163c86afe627ecbe028db1facf6
7257 * tests/openpgp/export.test: Test pinentry interactions.
7259 tests: Add support for a passphrase queue to fake pinentry.
7260 + commit 4994153924e0948a657edddaef54a39a6001beff
7261 * tests/openpgp/fake-pinentry.c (get_passphrase): New function.
7262 (main): Add option --passphrasefile and read passphrases from it.
7264 tests: Add logging to fake pinentry.
7265 + commit 41b10c66ec1dd33633386f4fc8013ddeab7737ca
7266 * tests/openpgp/fake-pinentry.c (log_stream): New variable.
7267 (reply): New function.
7268 (spacep,skip_options,option_value): Copy from common.
7269 (main): Parse arguments, add --logfile option, write logfile.
7271 tests: Add export test.
7272 + commit a54e89a58576108fcae10ceeb4fc65822aecc170
7273 * tests/openpgp/Makefile.am (TESTS): Add new file.
7274 * tests/openpgp/export.test: New file.
7276 2016-05-21 Werner Koch <wk@gnupg.org>
7278 gpg: Speed up key listing in Tofu mode.
7279 + commit 78bb08425af5b1edb7f3ef0119013529b3a9e4ba
7280 * g10/tofu.c (get_trust): Add arg PK. Uses this instead of a an extra
7281 lookup of the public key by fingerrpint.
7282 (tofu_register): Pass PK to get_trust.
7283 (tofu_get_validity): Ditto.
7285 *g10/tofu.c (tofu_register): Remove unused FINGERPRINT_PP.
7287 gpg: Avoid name spaces clash with future sqlite versions.
7288 + commit b1ba460d8f3358342c2ee2927114d36e767a439f
7289 * g10/sqlite.c: Rename to gpgsql.c. Change function prefixes to
7291 * g10/sqlite.h: Rename to gpgsql.h.
7292 * g10/tofu.c: Adjust for changes.
7294 gpg: Explicitly close a combined Tofu DB.
7295 + commit 006a6126131ffd59d9a47889ac031f932ecc5d0b
7296 * g10/tofu.c (tofu_closedbs): Close combined DB.
7298 gpg: Store the Tofu meta handle for databases in CTRL.
7299 + commit 754b1c463034a634a678d8efc76c27fd46aad9b9
7300 * g10/gpg.h (struct tofu_dbs_s, tofu_dbs_t): New declarations.
7301 (struct server_control_s): Add field tofu.dbs.
7302 * g10/tofu.c (struct dbs): Rename to tofu_dbs_s. Replace all users by
7304 (opendbs): Add arg CTRL. Cache the DBS in CTRL.
7305 (closedbs): Rename to tofu_closedbs and make global. Add arg CTRL.
7306 (tofu_register): Add arg CTRL. Change all callers. Do not call
7308 (tofu_get_validity): Ditto.
7309 (tofu_set_policy): Ditto.
7310 (tofu_get_policy): Ditto.
7311 (tofu_set_policy_by_keyid): Add arg CTRL.
7312 * g10/gpg.c (gpg_deinit_default_ctrl): Call tofu_closedbs.
7314 gpg: Pass CTRL object down to the trust functions.
7315 + commit 027c4e55522b8e18711a3331932a9869ab89ca26
7318 gpg: Fix the TOFU_STATS_LONG status.
7319 + commit fd973ee1c18aa8fe764e09ba4dff589309b2d78d
7320 * g10/tofu.c (show_statistics): Print TOFU STATS with formatting
7323 2016-05-19 Werner Koch <wk@gnupg.org>
7325 gpg: Print "[ never ]" instead of err for validity.
7326 + commit 437c97ab6a34ff1936001dd05209193b4466a81d
7327 * g10/trust.c (uid_trust_string_fixed): Handle NEVER.
7329 2016-05-18 Werner Koch <wk@gnupg.org>
7331 dirmngr: Adjust the WKD lookup to specs version -01.
7332 + commit cf97769906337d65289ad58225a5ecc53c715550
7333 * dirmngr/server.c (cmd_wkd_get): Remove second occurrence of the
7336 2016-05-17 Werner Koch <wk@gnupg.org>
7338 gpg: Emit new status line KEY_CONSIDERED.
7339 + commit ff71521d9698c7c5df94831a1398e948213af433
7340 * common/status.h (STATUS_KEY_CONSIDERED): New.
7341 * g10/getkey.c: Include status.h.
7342 (LOOKUP_NOT_SELECTED, LOOKUP_ALL_SUBKEYS_EXPIRED): New.
7343 (finish_lookup): Add arg R_FLAGS. Count expired and revoked keys and
7344 set flag. Check a requested usage before checking for expiraion or
7346 (print_status_key_considered): New.
7347 (lookup): Print new status.
7349 2016-05-11 NIIBE Yutaka <gniibe@fsij.org>
7351 g10: Fix signature checking.
7352 + commit 83a90a916e8e2f8e44c3b11d11e1dd75f65a87fb
7353 * g10/sig-check.c (check_signature_over_key_or_uid): Fix call to
7356 2016-05-10 Werner Koch <wk@gnupg.org>
7358 gpg: Allow unattended deletion of secret keys.
7359 + commit ac9ff644b12c4dfa55d466af8ae6af54d1646893
7360 * agent/command.c (cmd_delete_key): Make the --force option depend on
7361 --disallow-loopback-passphrase.
7362 * g10/call-agent.c (agent_delete_key): Add arg FORCE.
7363 * g10/delkey.c (do_delete_key): Pass opt.answer_yes to
7366 2016-05-09 Werner Koch <wk@gnupg.org>
7368 gpg: Fix buglet in the check_all_keysigs function.
7369 + commit 693838f0125d5d0c963fa3771b1bd117702af697
7370 * g10/keyedit.c (sig_comparison): Actually compare the pubkey
7373 gpg: Request a "save" after cmd "check" fixed something.
7374 + commit d33b35f7481caa0dcb25f9fa7d6c5bb27895297a
7375 * g10/keyedit.c (keyedit_menu) <cmdCHECK>: Set modified.
7377 2016-05-09 NIIBE Yutaka <gniibe@fsij.org>
7379 po: Update Japanese translation.
7380 + commit ff870d59f067d3c5415e231c02a50d5dceac7e48
7383 2016-05-04 Werner Koch <wk@gnupg.org>
7386 + commit 00df5b1236cac5c7a48638a4613278c5aab486f8
7389 speedo,w32: Remove the installation directory page.
7390 + commit fb1e9df48465c2f77a65dddd257572fdc79d9450
7391 * build-aux/speedo/w32/inst.nsi (MUI_PAGE_DIRECTORY): Remove.
7393 gpg: Fix const char pointer mismatch with gettext.
7394 + commit 920b1421b35d1404b8360bd8feac0be659840543
7395 * g10/tofu.c (get_trust): Use const char *.
7397 speedo: Build sqlite with static-libgcc.
7398 + commit edce430b039b313cc2d79402a7bd21347490c3be
7399 * build-aux/speedo/patches/sqlite.patch: New.
7400 * Makefile.am (EXTRA_DIST): Add file.
7402 speedo: Also try patch files w/o version number.
7403 + commit 9ea258fa5b45bb5454ee3f5906df5d5eebdec0dd
7404 * build-aux/speedo.mk (SPKG_template): Try such a patch file.
7406 2016-05-04 Andre Heinecke <aheinecke@intevation.de>
7408 speedo,w32: Install sqlite.
7409 + commit 2b78223d7587c68e2e27a3d7b365219228da7947
7410 * build-aux/speedo/w32/inst.nsi (-sqlite, -un.sqlite): New.
7412 speedo,w32: Fix uninstallation.
7413 + commit 5ec76fd0c300b52366cf8d1407fe1c8de3a8a9d4
7414 * build-aux/speedo/w32/inst.nsi (-un.gnupg): Delete distsigkey and
7417 speedo,w32: Install localisation.
7418 + commit 3f58fc64666101e160e9b13fedb6cdaebeb91a7a
7419 * build-aux/speedo/w32/inst.nsi (-libgpg-error, GnuPG): Install l10n.
7420 (-un.libgpg-error, -un.gnupg): Uninstall l10n files.
7422 2016-05-04 Werner Koch <wk@gnupg.org>
7424 tests: Disable the migrations tests.
7425 + commit d696eb396a9c88319358da4333feb653994d5408
7426 * tests/Makefile.am (SUBDIRS): Remove migrations.
7427 * configure.ac (AC_CONFIG_FILES): Remove migrations Makefile.
7429 2016-05-04 Ineiev <ineiev@gnu.org>
7431 po: Update Russian translation.
7432 + commit 4fd13ab78dd228d8ff85659cddc2076af8728ebe
7435 2016-05-04 Werner Koch <wk@gnupg.org>
7437 po: Update German translation.
7438 + commit 75f31cdd42eed3555952ac478055d52af841f702
7441 Some minor string changes and fixed a printf format.
7442 + commit d00625dae60f26617d2e1bd4f22c6b35a4e92c91
7443 * g10/build-packet.c (notation_value_to_human_readable_string): Use
7446 build: Update config.{guess,sub} to 2016-04-02 and 2016-03-30.
7447 + commit 04cc7c3786d91881f83a72799dab058476602a31
7448 * build-aux/config.guess: Update.
7449 * build-aux/config.sub: Update.
7451 agent: Make --allow-loopback-pinentry the default.
7452 + commit 3ef0938cfd8637e9801369f142eb8dd564f2ca61
7453 * agent/gpg-agent.c (oNoAllowLoopbackPinentry): New.
7454 (opts): Add --no-allow-loopback-pinentry. Hide
7455 description of --allow-loopback-pinentry.
7456 (parse_rereadable_options): Set opt.allow_loopback_pinentry by
7458 (main): Replace allow-loopback-pinentry by no-allow-loopback-pinentry
7459 in the gpgconf list.
7460 * tools/gpgconf-comp.c (gc_options_gpg_agent): Ditto.
7462 2016-05-03 Werner Koch <wk@gnupg.org>
7464 common: Print https URLs in help messages.
7465 + commit 9e28617e260261de3972c20698b5a01561330e1c
7466 * common/argparse.c (strusage): Print https URLS.
7468 tests: Silence output of some tests.
7469 + commit 33aacc3d4bbd6a82d7e7ceca058970879741b7da
7470 * common/t-exechelp.c (print_open_fds): Silence non-verbose output.
7471 (test_close_all_fds): Ditto.
7472 * common/t-session-env.c (show_stdnames): Indent output.
7473 * g10/test.c (TEST): Silence non-verbose okay output.
7474 (exit_tests): Ditto.
7475 * tools/gpg-zip.in (tar_verbose_opt): Add option --quiet.
7476 * tests/openpgp/gpgtar.test (GPGZIP): Pass option --quiet.
7477 * tests/openpgp/mds.test: Indent MD5 notice.
7478 * tests/openpgp/version.test: Indent --version output.
7480 gpg: Emit status lines TOFU_STATS and TOFU_STATS_LONG.
7481 + commit 83865be35cff5355a5c4575cc3b50609819b0baa
7482 * g10/tofu.c (NO_WARNING_THRESHOLD): Rename to BASIC_TRUST_THRESHOLD.
7483 (FULL_TRUST_THRESHOLD): New.
7484 (write_stats_status): New.
7485 (show_statistics): Call new function. Print TOFU_STATS_LONG.
7487 2016-05-02 Werner Koch <wk@gnupg.org>
7489 gpg: Extend TRUST_foo status lines with the trust model.
7490 + commit ae1889320b822d48f7118a29391605e9ac992701
7491 * g10/trustdb.h (TRUST_FLAG_TOFU_BASED): New.
7492 * g10/trustdb.c (trust_model_string): Lowercase the strings. Add arg
7493 "model" and change callers to call with OPT.TRUST_MODEL.
7494 * g10/tofu.c (tofu_wot_trust_combine): Set TRUST_FLAG_TOFU_BASED.
7495 * g10/pkclist.c (write_trust_status): New.
7496 (check_signatures_trust): Call new function.
7498 gpg: Improve line wrapping for a tofu message.
7499 + commit 5cef6118580fe658a27d32e85696d88775ad417a
7500 * g10/tofu.c (time_ago_str): Mark non-breakable spaces.
7501 (show_statistics): Remove marks.
7503 gpg: Re-format some tofu messages.
7504 + commit d73e83c3b678add11a5754e199e528aeb39ec8ce
7505 * common/status.h (STATUS_TOFU_USER, STATUS_TOFU_STATS)
7506 (STATUS_TOFU_STATS_SHORT, STATUS_TOFU_STATS_LONG): New.
7507 * g10/tofu.c (NO_WARNING_THRESHOLD): New.
7508 (record_binding, tofu_register): Take care of --dry-run.
7509 (show_statistics): Print STATUS_TOFU_USER. Reformat some messages.
7510 Fix the ngettext/strcmp thing. Use log_string instead of log_info.
7511 Use NO_WARNING_THRESHOLD constant.
7512 (get_trust): Use format_text and print a compact fingerprint.
7514 2016-05-02 NIIBE Yutaka <gniibe@fsij.org>
7516 scd: More fix of error return path.
7517 + commit 6677d8b61446eb5760a30a2488c992d6e895a9ed
7518 * scd/command.c (open_card): Return GPG_ERR_ENODEV on the failure of
7521 2016-04-29 Werner Koch <wk@gnupg.org>
7523 common: Extend log_string to indent lines.
7524 + commit 35f4b6aafdf1889ed1ae569af5852f47738fe993
7525 * common/logging.c (do_logv): Add indentation when called via
7528 gpg: Factor some code code out of tofu.c.
7529 + commit dcad99c98616a6031ddfde313c920339e4012378
7530 * g10/tofu.c (string_to_long): New.
7531 (string_to_ulong): New.
7532 (get_single_unsigned_long_cb): Replace strtol/strtoul by new function.
7533 (get_single_long_cb): Ditto.
7534 (signature_stats_collect_cb): Ditto.
7535 (get_policy): Ditto.
7536 (show_statistics): Ditto. Uese es_free instead of free.
7538 gpg: Remove all assert.h and s/assert/log_assert/.
7539 + commit 64bfeafa52a5ed3fa82bdc0ce7ef0edddeef188c
7542 common: Improve log_assert.
7543 + commit 9740dff9f4d18ba764dc7173d4902e94e3f0c2e8
7544 * common/logging.c (bug_at): Do not i18n the string.
7546 * common/logging.h (log_assert): Use new function and pass line
7549 2016-04-28 NIIBE Yutaka <gniibe@fsij.org>
7551 scd: Fix error return path.
7552 + commit cb4fee8bb645745ff199f7428e19226d5bc63dab
7553 * scd/ccid-driver.c (bulk_in): Remove EAGAIN handling.
7554 Handle LIBUSB_ERROR_NO_DEVICE to return CCID_DRIVER_ERR_NO_READER.
7556 2016-04-27 NIIBE Yutaka <gniibe@fsij.org>
7558 scd: Fix memory leaks.
7559 + commit 508b0deb70d39d388149be9a63fab24cc956a239
7560 * scd/ccid-driver.c (scan_or_find_usb_device): Return on
7561 LIBUSB_ERROR_NO_MEM. Free CONFIG before return except on error.
7562 (scan_or_find_devices): Free device list.
7564 2016-04-27 Werner Koch <wk@gnupg.org>
7566 gpg: Add experimental AKL method "wkd" and option --with-wkd-hash.
7567 + commit 87de9e19edf0311ca0342e15ef44ebe40e32861e
7568 * g10/getkey.c (parse_auto_key_locate): Add method "wkd".
7569 (get_pubkey_byname): Implement that method. Also rename a variable.
7570 * g10/call-dirmngr.c (gpg_dirmngr_wkd_get): New.
7571 * g10/keyserver.c (keyserver_import_wkd): New.
7572 * g10/test-stubs.c (keyserver_import_wkd): Add stub.
7573 * g10/gpgv.c (keyserver_import_wkd): Ditto.
7574 * g10/options.h (opt): Add field 'with_wkd_hash'.
7577 * g10/gpg.c (oWithWKDHash): New.
7578 (opts): Add option --with-wkd-hash.
7579 (main): Set that option.
7580 * g10/keylist.c (list_keyblock_print): Implement that option.
7582 dirmngr: Add experimental command WKD_GET.
7583 + commit c83c6f212e9bc98a9ea8dd8102bc16edd1a03050
7584 * dirmngr/server.c (cmd_wkd_get): New.
7585 (register_commands): Add command WKD_GET.
7587 dirmngr: Use system provided root CAs with KS_FETCH.
7588 + commit c3aeda82b8d00b87a5af72b4075c487c10dfdf6b
7589 * dirmngr/ks-engine-http.c (ks_http_fetch): Use HTTP_FLAG_TRUST_SYS.
7591 2016-04-26 Werner Koch <wk@gnupg.org>
7593 http: Allow to request system defined CAs for TLS.
7594 + commit fd765df6a7883c3d841abeb657330a1aab4b7756
7595 * dirmngr/http.h (HTTP_FLAG_TRUST_DEF, HTTP_FLAG_TRUST_SYS): New.
7596 * dirmngr/http.c (http_session_new): Add arg "flags".
7597 * dirmngr/ks-engine-hkp.c (send_request): Use new flag
7598 HTTP_FLAG_TRUST_DEF for the new arg of http_session_new.
7599 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
7600 * dirmngr/t-http.c (main): Ditto.
7602 2016-04-25 Werner Koch <wk@gnupg.org>
7604 common: Minor fixes for the new private-keys.c.
7605 + commit b7fa4960c292ef1a290d32b7f46bb741bbfc0923
7606 * common/private-keys.c (my_error_from_syserror): New. Use it in
7607 place of gpg_error_from_syserror.
7608 (_pkc_add, pkc_lookup, pke_next_value): Use ascii_strcasecmp.
7609 (pkc_parse): Use xtrystrdup and append_to_strlist_try as intended.
7611 (_pkc_add): Add braces around if-statement.
7613 common: Use new function to print a failure of xtrymalloc.
7614 + commit 8776abbe02935e720018f3ef6ffd48f21435ff8b
7615 * common/miscellaneous.c (xoutofcore): New.
7616 * common/strlist.c (append_to_strlist): Use instead of abort.
7617 (append_to_strlist_try): Use xtrymalloc instead of xmalloc.
7619 2016-04-21 Justus Winter <justus@g10code.com>
7621 common: Add support for the new extended private key format.
7622 + commit 12af2630cf4d1a39179179925fac8f2cce7504ff
7623 * agent/findkey.c (write_extended_private_key): New function.
7624 (agent_write_private_key): Detect if an existing file is in extended
7625 format and update the key within if it is.
7626 (read_key_file): Handle the new format.
7627 * agent/keyformat.txt: Document the new format.
7628 * common/Makefile.am: Add the new files.
7629 * common/private-keys.c: New file.
7630 * common/private-keys.h: Likewise.
7631 * common/t-private-keys.c: Likewise.
7632 * common/util.h (alphap, alnump): New macros.
7633 * tests/migrations: Add test demonstrating that we can cope with the
7636 common: Add 'free_strlist_wipe' which wipes memory.
7637 + commit c6d1f2f08c68efe7e80887219064a8ce6365128f
7638 * common/strlist.c (free_strlist_wipe): New function.
7639 * common/strlist.h (free_strlist_wipe): New prototype.
7641 common: Add 'append_to_strlist_try' which can fail.
7642 + commit 95303ee11df12f284e98d02dba993eda9e425383
7643 * common/strlist.c (append_to_strlist): Use the new function.
7644 (append_to_strlist_try): New function.
7645 * common/strlist.h (append_to_strlist_try): New prototype.
7647 agent: Convert key format document to org.
7648 + commit 342cc488890241b41e49f50886617115342721d6
7649 * agent/keyformat.txt: Convert to org mode.
7651 tests: Make migration test more robust and silent.
7652 + commit 0c35e09278514f1e3377a4b0a9b1f44dd39b1bf4
7653 * tests/migrations/from-classic.test: Fix in-tree build, silence test.
7655 2016-04-21 Werner Koch <wk@gnupg.org>
7657 w32: Use --enable-gpg2-is-gpg by default.
7658 + commit d81de224ecd542922dda649a492dd9550509d7bc
7659 * autogen.rc: Add option also for plain Windows.
7661 w32: Replace libiconv DLL by iconv feature of libgpg-error.
7662 + commit bd4d65615b3a5360d455b99e77bd113ad90f1539
7663 * configure.ac: Do nor require libiconv for W32.
7664 * common/utf8conv.c [W32]: Do not incluce iconv.h. Request
7665 libgpg-error iconv macros.
7666 (jnlib_iconv): Use ICONV_CONST macro.
7667 * build-aux/speedo/w32/inst.nsi [!WITH_GUI]: Do not install libiconv.
7668 * build-aux/speedo.mk (speedo_spkgs) [!WITH_GUI]: Likewise.
7670 2016-04-20 Justus Winter <justus@g10code.com>
7672 agent: Sanitize permissions of the private key directory.
7673 + commit f8adf1a3234655877a4f985d627d98567507002c
7674 * agent/gpg-agent.c (create_private_keys_directory): Set permissions.
7675 * common/sysutils.c (modestr_to_mode): New function.
7676 (gnupg_mkdir): Use new function.
7677 (gnupg_chmod): New function.
7678 * common/sysutils.h (gnupg_chmod): New prototype.
7679 * tests/migrations/from-classic.test: Test migration with existing
7682 tests: Test the migration from a classic GnuPG home directory.
7683 + commit defbc70b4a16264e067daf76678ecfb9d030dee4
7684 * configure.ac: Add new directory.
7685 * tests/Makefile.am (SUBDIRS): Likewise.
7686 * tests/migrations/Makefile.am: New file.
7687 * tests/migrations/from-classic.gpghome/pubring.gpg.asc: Likewise.
7688 * tests/migrations/from-classic.gpghome/secring.gpg.asc: Likewise.
7689 * tests/migrations/from-classic.gpghome/trustdb.gpg.asc: Likewise.
7690 * tests/migrations/from-classic.test: Likewise.
7692 2016-04-20 Werner Koch <wk@gnupg.org>
7694 speedo: Use swdb.lst to define the SQLite version.
7695 + commit 2385b9f1ddc4938e45c01a12a804f4b77d253305
7696 * build-aux/speedo.mk: Change sqlite to use our mirror and the
7698 * build-aux/speedo/w32/inst.nsi: gpg is now build and installed as
7701 2016-04-19 Werner Koch <wk@gnupg.org>
7703 gpg: Improve UID selction of --quick-sign-key.
7704 + commit d02de6c0a4a55a2720cfa5caddcbfc4ce988a2ec
7705 * g10/keyedit.c (keyedit_quick_sign): Improve UID selection and print
7706 error for non-found userids.
7708 gpg: Avoid debug like output at start of --edit-key.
7709 + commit 085b19fc9aa7f2f9b82a97824b117e71390964ec
7710 * g10/keyedit.c (check_all_keysigs): Print info only after something
7713 2016-04-15 Andre Heinecke <aheinecke@intevation.de>
7715 dirmngr: Fix https never reported in general help.
7716 + commit 6272f24312f2efe8707a7712858c85cd5a42e6fa
7717 * dirmngr/ks-engine-http.c (ks_hkp_help): Also print https
7718 when supported and no uri provided.
7720 dirmngr: Fix https incorrectly reported in help.
7721 + commit a0642856b25622c81d3464979c47ff2a30af58fa
7722 * dirmngr/ks-engine-http.c (ks_hkp_help): Only print https if tls
7725 2016-04-14 Werner Koch <wk@gnupg.org>
7727 agent: Fix regression due to recent commit 4159567.
7728 + commit 8c3fb2360f154a971d2a390e4937acb22a44a8c2
7729 * agent/protect.c (do_encryption): Fix CBC hashing.
7731 agent: Allow gpg-protect-tool to handle openpgp-native protection.
7732 + commit 6df75ec70afeb1a5ad9a00557e1245e1514c37b5
7733 * agent/protect-tool.c (read_and_unprotect): Add arg ctrl and pass to
7735 (main): Allocate a simple CTRL object and pass it to
7737 (convert_from_openpgp_native): Remove stub.
7738 (agent_key_available, agent_get_cache): New stubs.
7739 (agent_askpin): New emulation for the one in call-pinentry.c.
7740 (agent_write_private_key): New to dump key.
7741 * agent/Makefile.am (gpg_protect_tool_SOURCES): Add cvt-openpgp.c
7743 tests: Set fake-pinentry's stdout and stdin to _IOLBF.
7744 + commit 94504b3d5af126abb591dedda1ca0f0970822f55
7745 * tests/openpgp/fake-pinentry.c (main): Call setvbuf. Show passphrase
7746 at startup. Increase buffer.
7748 2016-04-12 Werner Koch <wk@gnupg.org>
7750 agent: Implement new protection mode openpgp-s2k3-ocb-aes.
7751 + commit 4159567f7ed7a1139fdc3a6c92988e1648ad84ab
7752 * agent/protect.c (agent_protect): Add arg use_ocb. Change all caller
7753 to pass -1 for default.
7754 * agent/protect-tool.c: New option --debug-use-ocb.
7755 (oDebugUseOCB): New.
7756 (opt_debug_use_ocb): New.
7758 (read_and_protect): Implement option.
7760 * agent/protect.c (OCB_MODE_SUPPORTED): New macro.
7761 (PROT_DEFAULT_TO_OCB): New macro.
7762 (do_encryption): Add args use_ocb, hashbegin, hashlen, timestamp_exp,
7763 and timestamp_exp_len. Implement OCB.
7764 (agent_protect): Change to support OCB.
7765 (do_decryption): Add new args is_ocb, aadhole_begin, and aadhole_len.
7767 (merge_lists): Allow NULL for sha1hash.
7768 (agent_unprotect): Change to support OCB.
7769 (agent_private_key_type): Remove debug output.
7771 indent: Help Emacs not to get confused by conditional compilation.
7772 + commit 7faf131c8b8710419df3dc13a1228d1977c55f53
7773 * agent/protect.c (calibrate_get_time) [W32]: Use separate function
7774 calls for W32 and W32CE.
7776 2016-04-07 Justus Winter <justus@g10code.com>
7778 g10: Fix exporting secret keys of certain sizes.
7779 + commit 02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8
7780 * g10/build-packet.c (do_key): Do not use the header length specified
7781 by the public key packet from the keyring, but let 'write_header2'
7782 compute the required length.
7784 2016-04-06 Justus Winter <justus@g10code.com>
7786 Revert "g10: Support armored keyrings in gpgv."
7787 + commit 76ca869197e304daa5a8dd96ea43113ec7b28354
7788 This reverts commit abb352de51bc964c06007fce43ed6f6caea87c15.
7790 2016-04-05 Justus Winter <justus@g10code.com>
7792 dirmngr: Autodetect PEM format in dirmngr-client.
7793 + commit 9354293b8c9f234939bc04182f15e2fe512e914e
7794 * dirmngr/dirmngr-client.c (init_asctobin): New function.
7795 (main): Move the initialization code to the new function.
7796 (read_pem_certificate): Initialize base64 table.
7797 (read_certificate): Try to decode certificates given in files as PEM
7800 2016-04-05 Werner Koch <wk@gnupg.org>
7802 build: Fix for: Build gpgcompose only in maintainer mode.
7803 + commit f45ed07a0fffa3adbc75b9d5726108a066927599
7804 * g10/Makefile.am (noinst_PROGRAMS): Always add module_tests.
7806 doc: Install gpg and gpgv man pages under the correct name.
7807 + commit 4dc4fb1c14b3096bb1cdc5923c0d1eb419036805
7808 * doc/mkdefsinc.c (main): Add double include guard. Set variable
7809 gpgtwohack. Define macros gpgname and gpgvname.
7810 * doc/gpg.texi: Remove macro definition for gpgname. Use Texinfo var
7811 gpgtwohack to prepare the man pages. Use @gpgname everywhere.
7812 * doc/gpgv.texi: Likewise.
7813 * doc/Makefile.am (myman_pages): Remove gpg2.1 and gpgv2.1 but add
7814 them depending on USE_GPG2_HACK.
7816 build: Build gpgcompose only in maintainer mode.
7817 + commit 4b5341dc333983a15f649601fdddc42ba9161433
7818 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose only in maintainer
7821 gpg: Replace use of "gpg2" by GPG_NAME.
7822 + commit 7b58a1118d98543ed6854447d7b403877638ba54
7825 2016-04-04 Werner Koch <wk@gnupg.org>
7827 Now build "gpg" binary but install as "gpg2"
7828 + commit 96bcd4220f1f1313afe12097d8dc62342ac8de0d
7829 * configure.ac (USE_GPG2_HACK): New ac_define am_conditional.
7830 * common/homedir.c (gnupg_module_name): Replace use of macro
7831 NAME_OF_INSTALLED_GPG.
7832 * g10/keygen.c (generate_keypair): Ditto.
7833 * g10/Makefile.am (bin_PROGRAMS): Remove.
7834 (noinst_PROGRAMS): Add gpg or gpg2 and gpgv or gpg2.
7835 (gpg2_hack_list): New.
7836 (use_gpg2_hack): New.
7837 (gpg2_SOURCES): Rename to gpg_SOURCES.
7838 (gpgv2_SOURCES): Rename to gpgv_SOURCES.
7839 (gpg2_LDADD): Rename to gpg_LDADD.
7840 (gpgv2_LDADD): Rename to gpgv_LDADD.
7841 (gpg2_LDFLAGS): Rename to gpg_LDFLAGS.
7842 (gpgv2_LDFLAGS): Rename to gpgv2_LDFLAGS.
7843 (install-exec-hook): Remove WinCE specific rules and add new rules.
7844 (uninstall-local): Uninstall gpg/gpg2 and gpgv/gpgv2.
7845 * tests/openpgp/Makefile.am (required_pgms): s/gpg2/gpg/.
7846 * tests/openpgp/defs.inc: Ditto.
7847 * tests/openpgp/gpgtar.test: Ditto.
7848 * tests/openpgp/mkdemodirs: Ditto.
7849 * tests/openpgp/signdemokey: Ditto.
7851 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Remove obsolete
7852 --enable-mailto, add --enable-gpg2-is-gpg.
7854 tests: Add missing file.
7855 + commit c6ed863491ec3a1e0fcf9cbe2c93c87468306c29
7856 * tests/openpgp/Makefile.am (TEST_FILES): Add plain-largeo.asc.
7858 2016-04-04 Justus Winter <justus@g10code.com>
7860 g10: Support armored keyrings in gpgv.
7861 + commit abb352de51bc964c06007fce43ed6f6caea87c15
7862 * doc/gpgv.texi: Document the feature.
7863 * g10/Makefile.am (gpgv2_SOURCES): Add dearmor.c.
7864 * g10/dearmor.c (dearmor_file): Add sink argument.
7865 * g10/gpg.c (main): Adapt accordingly.
7866 * g10/gpgv.c (make_temp_dir): New function.
7867 (main): De-armor keyrings.
7868 * g10/main.h (dearmor_file): Adapt prototype.
7870 tests: Fix default key test.
7871 + commit dd5902cc45bae7582f8a0bc91a0a7f4d8ae45d8c
7872 * tests/openpgp/default-key.test: Avoid using the option
7873 '--trust-model' unconditionally.
7875 2016-04-01 Justus Winter <justus@g10code.com>
7877 build: Check for conflicting trust model options.
7878 + commit 6060ea898fda499211c9d5030fff41d58f899fb0
7879 * configure.ac: Disable TOFU if configured without trust models, and
7880 check for conflicting options.
7882 g10: Remove option --always-trust if compiled without trust models.
7883 + commit b74185b6eaeaae4754726ff203e11977777f568c
7884 * g10/gpg.c (opts): Remove option --always-trust if compiled without
7887 2016-03-31 Justus Winter <justus@g10code.com>
7889 speedo,w32: Build libsqlite3.
7890 + commit e7171f559590422cc52dbcb8d78d94569b31012f
7891 * build-aux/speedo.mk (speedo_spkgs): Add libsqlite3 on w32.
7892 (libsqlite3_ver): New variable.
7893 (speedo_pkg_libsqlite3_tar): Likewise.
7895 g10: Use gpg-error abstraction of sched_yield.
7896 + commit 8be9dab2dd2f83ca922c01542c63b404e34bdfd9
7897 * g10/tofu.c (begin_transaction): Use 'gpgrt_yield'.
7899 2016-03-29 Werner Koch <wk@gnupg.org>
7901 gpg: Fix NULL-segv for missing tofu DB.
7902 + commit e2c5781788f765815532410a77077ddbb72513e9
7903 * g10/tofu.c (opendb): Guard call to timeout function.
7905 2016-03-22 Werner Koch <wk@gnupg.org>
7907 gpg: Improve message when asking for key capabilities.
7908 + commit fc30c079a348436868968850dabf653b91f82419
7909 * g10/keygen.c (ask_key_flags): Improve message.
7911 gpg: Remove the extra prompt for Curve25519.
7912 + commit 7f919063d3e426104fe58ae779a9a066140014c1
7913 * g10/keygen.c (MY_USE_ECDSADH): New macro local to ask_curve.
7914 (ask_curve): Use a fixed table of curve names and reserve a slot for
7915 Curve448. Simplify CurveNNNN/EdNNNN switching.
7916 (ask_curve): Remove the Curve25519 is non-standard prompt.
7918 2016-03-19 Werner Koch <wk@gnupg.org>
7920 gpg: Silence trustdb computation with --quiet.
7921 + commit af9a4afbf0b518c8acff98e50135b2beb6c722c3
7922 * g10/trustdb.c (validate_keys): Do not print log_info stuff in quiet
7925 2016-03-17 Werner Koch <wk@gnupg.org>
7927 sm: Always create a keybox header when creating a new keybox.
7928 + commit 1aad5c6277ea3852ff57bbf680f61c9136ce4d5c
7929 * sm/keydb.c (maybe_create_keybox): Create the header blob.
7931 2016-03-17 Neal H. Walfield <neal@g10code.com>
7933 doc: Improve documentation of --enable-large-rsa.
7934 + commit 1dc7f55a4095ee42ce2d8c3eb41b7162edf2ca2e
7935 * doc/gpg.texi (--enable-large-rsa): Improve text.
7937 2016-03-17 NIIBE Yutaka <gniibe@fsij.org>
7939 agent: allow removal of the shadowed key.
7940 + commit 8588c2dbc4c4d1b53796f3dbe8489b932dca7a60
7941 * agent/findkey.c (agent_delete_key): Remove the key when asked.
7943 2016-03-16 NIIBE Yutaka <gniibe@fsij.org>
7945 g10: Add const qualifier.
7946 + commit b752d2c93778e6a1c1de3eddf8fc725b0ddd354e
7947 * g10/gpgcompose.c (show_help): Those are strings not to be modified.
7949 2016-03-15 Werner Koch <wk@gnupg.org>
7951 gpg: Do not rely on a certain evaluation order.
7952 + commit 60b34f96f4f390670462d719c0d797e622cee4d4
7953 * g10/keyedit.c (print_and_check_one_sig): Call check_key_signature
7954 before derefing IS_SELFSIG.
7956 2016-03-14 Werner Koch <wk@gnupg.org>
7958 scd: Add manufacturer id 0x000a.
7959 + commit 834b84c0ee4990393daa5e44afbab5b0aaed0758
7960 * g10/card-util.c (get_manufacturer): Add it.
7962 2016-03-10 Kevin J. McCarthy <kevin@8t8.us>
7964 g10: Silence message if --quiet is given.
7965 + commit 4f578cb2fc192f44070bb0d18dffaa3863ed0d92
7966 * g10/getkey.c (parse_def_secret_key): Silence message if --quiet is
7969 2016-03-08 Neal H. Walfield <neal@g10code.com>
7971 gpg: Add a new test.
7972 + commit b17577eac6b7599a4bab6fd3ecb04715aa01367c
7973 * g10/Makefile.am (EXTRA_DIST): Add t-stutter-data.asc.
7974 (module_tests): Add t-stutter.
7975 (t_stutter_SOURCES): New variable.
7976 (t_stutter_LDADD): New variable.
7978 2016-03-07 Justus Winter <justus@g10code.com>
7980 sm: Implement pinentry loopback and reading passphrases from fd.
7981 + commit eea139c56ef55081d8cd8df2a35ce507386e0f17
7982 * doc/gpgsm.texi: Document '--pinentry-mode' and '--passphrase-fd'.
7983 * sm/Makefile.am (gpgsm_SOURCES): Add new files
7984 * sm/call-agent.c (struct default_inq_parm_s): New definition.
7985 (start_agent): Pass in the pinentry mode.
7986 (default_inq_cb): Handle 'PASSPHRASE' and 'NEW_PASSPHRASE' inquiries.
7987 Adapt all call sites to the new callback cookie.
7988 * sm/gpgsm.c (cmd_and_opt_values): Add new values.
7989 (opts): Add new options.
7990 (main): Handle new options.
7991 * sm/gpgsm.h (struct opt): Add field 'pinentry_mode'.
7992 * sm/passphrase.c: New file.
7993 * sm/passphrase.h: Likewise.
7995 sm: Remove unused argument '--fixed-passphrase'.
7996 + commit 53ed98eda77ff2dcf390cebd0cec9f2665661863
7997 * doc/gpgsm.texi: Drop description.
7998 * sm/gpgsm.c (cmd_and_opt_values): Drop enum value.
7999 (opts): Drop argument.
8000 (main): Drop argument handling.
8001 * sm/gpgsm.h (struct opt): Drop field 'fixed_passphrase'.
8003 kbx: Avoid undefined behavior.
8004 + commit a68ca5a90457ac97eee4efd7fdea596d27c54697
8005 * kbx/keybox-file.c (_keybox_read_blob2): Cast to unsigned int before
8008 2016-03-07 NIIBE Yutaka <gniibe@fsij.org>
8010 scd: Bug fix for a device with multiple interfaces.
8011 + commit 7a32f87cccddb40521bfdd4eb2d0dc9c88fb3fe5
8012 * scd/ccid-driver.c (scan_or_find_usb_device): Use IFC_NO when
8013 accessing interface information.
8015 2016-03-04 Justus Winter <justus@g10code.com>
8017 build: Make libusb a hard requirement if the ccid driver is requested.
8018 + commit e997552161b2dd8aabf350adee14e208e1545aef
8019 * configure.ac: Print an error message and die if the internal ccid
8020 driver is requested but no suitable libusb is found.
8022 g10: Drop superfluous declaration.
8023 + commit 1e4b7823008daea1a22a6f0f9b379fdec37a4cd4
8024 * g10/main.h (disable_core_dumps): Drop declaration.
8026 g10: Guard code against errors.
8027 + commit 40f6529ceeea806fc011135a9fa3a3590a9534ac
8028 * g10/keygen.c (do_generate_keypair): Check for errors, in which case
8031 2016-03-03 Justus Winter <justus@g10code.com>
8033 dirmngr: Add more missing CFLAGS.
8034 + commit 9f0ba5089e664447c36cee3d9249f95e4ea39957
8035 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
8037 (t_dns_stuff_CFLAGS): Likewise.
8039 tests/openpgp: Skip gpgtar test if it has not been built.
8040 + commit a883d4c0f8125e809c144ec69e76c9f522102d8f
8041 * tests/openpgp/gpgtar.test: Check if executable exists.
8043 2016-03-02 Neal H. Walfield <neal@g10code.com>
8045 gpg: Add new program gpgcompose.
8046 + commit d040628ddf2c09ddc9581ff365680a568ad24278
8047 * g10/packet.h: Include "util.h".
8048 * g10/encrypt.c (encrypt_seskey): Don't mark as static.
8049 * g10/gpgcompose.c: New file.
8050 * g10/Makefile.am (noinst_PROGRAMS): Add gpgcompose.
8051 (gpg2_SOURCES): Split everything but gpg.c into...
8052 (gpg_sources): ... this new variable.
8053 (gpgcompose_SOURCES): New variable.
8054 (gpgcompose_LDADD): Likewise.
8055 (gpgcompose_LDFLAGS): Likewise.
8057 gpg: More robustly detect valid non-armored OpenPGP messages.
8058 + commit 605276ef8cd449bfd574ae6c498fa5d7d265c5c7
8059 * g10/armor.c (is_armored): More robustly detect valid non-armored
8062 common: Provide a function for mapping packet types to strings.
8063 + commit 24e0f1d56e6f56e7fb52b5c6bdb100131e12dfe3
8064 * common/openpgpdefs.h (pkttype_str): New function.
8066 gpg: Rename pop_filter to iobuf_pop_filter and export it.
8067 + commit 1463f9b9624fae97cc89df3aa4546655ee893f7c
8068 * common/iobuf.c (pop_filter): Rename from this...
8069 (iobuf_pop_filter): ... to this. Don't mark it as static.
8071 gpg: Split write_pubkey_enc_from_list.
8072 + commit 7eac4942b537c4b3710d34e6adb9c5d36338f38b
8073 * g10/encrypt.c (write_pubkey_enc_from_list): Split the body of this
8074 function out into...
8075 (write_pubkey_enc): ... this new function.
8077 gpg: Allow the caller to write the contents of a plaintext packet.
8078 + commit 2fdb950471bd36f046672254ff26ca94797cc9f1
8079 * g10/build-packet.c (do_plaintext): Change the semantics such that if
8080 PT->BUF is NULL, it is the caller's responsibility to write the
8081 content (and disable partial body length mode, if appropriate).
8083 gpg: Add a new function for creating binary notations.
8084 + commit 1a624586149f9e34206e5d5e1ba0b7d2b7004c80
8085 * g10/build-packet.c (blob_to_notation): New function.
8087 gpg: Refactor the printing of binary notations.
8088 + commit fd2d00ccf558b1ac1184967d8702ef01cd60bf60
8089 * g10/build-packet.c (sig_to_notation): Break printing of binary
8091 (notation_value_to_human_readable_string): ... this new function.
8092 Provide a small preview of the binary data substituting non-printable
8093 characters with '?'.
8095 2016-03-02 Uldis Anšmits <uldis.ansmits@tieto.com>
8097 tests/openpgp: Make tests more portable.
8098 + commit 1cdb744d91ab33563fc0b3156fb05694caa55278
8099 * tests/openpgp/default-key.test: Avoid 'grep -q'.
8100 * tests/openpgp/gpgtar.test: Avoid 'grep -qe' and 'diff -q'.
8101 * tests/openpgp/use-exact-key.test: Avoid 'grep -q'.
8103 2016-03-02 Justus Winter <justus@g10code.com>
8105 common: Consolidate Assuan server argument handling.
8106 + commit e77c85577d1bdd77ad3b81907145fd68f2653c01
8107 * common/Makefile.am (common_sources): Add new files.
8108 * common/server-help.c: New file.
8109 * common/server-help.h: Likewise.
8110 * agent/command.c: Drop argument handling primitives in favor of using
8111 the consolidated ones.
8112 * dirmngr/server.c: Likewise.
8113 * g10/server.c: Likewise.
8114 * g13/server.c: Likewise.
8115 * scd/command.c: Likewise.
8116 * sm/server.c: Likewise.
8118 2016-03-01 Justus Winter <justus@g10code.com>
8120 dirmngr: Add missing CFLAGS.
8121 + commit 9a1778abcae0a7afe33be8e02b6d9a909463cd54
8122 * dirmngr/Makefile.am (t_ldap_parse_uri_CFLAGS): Add
8124 (t_dns_stuff_CFLAGS): Likewise.
8126 tools: Drop superfluous include.
8127 + commit 3a1d142f9b71721a631cf2037665e9def60aa384
8128 * tools/gpgtar.c: Do not include unused 'npth.h'.
8130 2016-02-26 Werner Koch <wk@gnupg.org>
8132 gpg: Prettify a 2 octet hex output.
8133 + commit 2de0d41219a522e01f050d475b3ddecb9173fc7d
8134 * g10/sig-check.c (check_key_signature2): Wrap line and use %02x.
8136 2016-02-25 Neal H. Walfield <neal@g10code.com>
8138 gpg: Show debugging info if a sig with an unsupported sig class is used.
8139 + commit 87515e39295e4b7eaec1641c38e1ac32e8d39a91
8140 * g10/sig-check.c (check_key_signature2): If SIG->CLASS is
8141 unsupported, show some debugging information. Don't use BUG to fail.
8142 Just return GPG_ERR_BAD_SIGNATURE.
8144 gpg: More carefully encode a packet's length.
8145 + commit 960f5e26f2cda3ac6e6b30548fa808a690c39ffc
8146 * g10/build-packet.c (write_header2): Make sure the length bits are
8147 cleared. Fail if HDRLEN is set and the specified length can't be
8148 encoded in the available space.
8150 gpg: Avoid directly twiddling bits.
8151 + commit 105a5629c7e938ec7b3c9c338ebe7bdfee4cfdad
8152 * g10/build-packet.c (do_plaintext): Use ctb_new_format_p to check the
8154 (write_header2): Likewise.
8156 gpg: Add some asserts.
8157 + commit c9636a1acc952eb8e1355089bc2e229dece98165
8158 * g10/build-packet.c (ctb_new_format_p): New function.
8159 (ctb_pkttype): New function.
8160 (do_user_id): Add some asserts.
8162 (do_symkey_enc): Likewise.
8163 (do_pubkey_enc): Likewise.
8164 (do_plaintext): Likewise.
8165 (do_encrypted): Likewise.
8166 (do_encrypted_mdc): Likewise.
8167 (do_compressed): Likewise.
8168 (do_signature): Likewise.
8169 (do_signature): Likewise.
8170 (write_header2): Likewise.
8172 gpg: Avoid an unnecessary copy.
8173 + commit 512bc72e1f8544341529174142273d857f45540c
8174 * g10/build-packet.c (sig_to_notation): Avoid an unnecessary copy of
8175 the data: the size of the packet is fixed.
8177 2016-02-23 Neal H. Walfield <neal@g10code.com>
8179 common: Reduce buffer size.
8180 + commit 75861b663bbb37214143c2ff7b1b4d1d10ba2657
8181 * common/iobuf.c (iobuf_copy): Change buffer size from 1 MB to 32 KB.
8183 common: Improve a function's documentation and comments.
8184 + commit 14d27b2cadf9b0bb413f2b8bad2d81c1d370c2e7
8185 * common/iobuf.c (iobuf_set_partial_body_length_mode): Fix
8186 documentation and comment. Add an assert.
8188 common: Add log_assert.
8189 + commit f57a91afb69c58f9d8d9632801650f28c7dc1e0d
8190 * common/logging.h (log_assert): New macro.
8192 gpg: Use higher-level functions.
8193 + commit 33ac735a781325c4d47cdf6216813866ab93562e
8194 * g10/build-packet.c (do_symkey_enc): Use iobuf_write instead of
8195 iobuf_put in a loop. Use iobuf_copy instead of iobuf_read and
8196 iobuf_write in a loop. Move the memory wiping from here...
8197 * common/iobuf.c (iobuf_copy): ... to here.
8199 common: Check for an error before reading.
8200 + commit 8066f8a3470f9d2f3682a28641a7b09eca29a105
8201 * common/iobuf.c (iobuf_copy): If DEST has a pending error, don't
8204 common: More accurately name function.
8205 + commit 903466e124841cb29f518afa6b7706d490737ac3
8206 * common/iobuf.c (iobuf_set_partial_block_mode): Rename from this...
8207 (iobuf_set_partial_body_length_mode): ... to this. Update callers.
8209 2016-02-23 Werner Koch <wk@gnupg.org>
8211 g13: Add commands --suspend and --remove.
8212 + commit f7968db30b0e0ccae038e354568accb0a05d877c
8213 * g13/g13.c (aSuspend, aResume): New.
8214 (opts): Add commands --suspend and --resume.
8215 (main): Implement dummy command aUmount. Implement commands aResume
8217 * g13/sh-cmd.c (cmd_suspend): New.
8219 (register_commands): Add commands RESUME and SUSPEND.
8220 * g13/server.c (cmd_suspend): New.
8222 (register_commands): Add commands RESUME and SUSPEND.
8223 * g13/be-dmcrypt.c (be_dmcrypt_suspend_container): New.
8224 (be_dmcrypt_resume_container): New.
8225 * g13/backend.c (be_suspend_container): New.
8226 (be_resume_container): New.
8227 * g13/suspend.c, g13/suspend.h: New.
8228 * g13/mount.c (parse_header, read_keyblob_prefix, read_keyblob)
8229 (decrypt_keyblob, g13_is_container): Move to ...
8230 * g13/keyblob.c: new file.
8231 (keyblob_read): Rename to g13_keyblob_read and make global.
8232 (keyblob_decrypt): Rename to g13_keyblob_decrypt and make global.
8233 * g13/sh-dmcrypt.c (check_blockdev): Add arg expect_busy.
8234 (sh_dmcrypt_suspend_container): New.
8235 (sh_dmcrypt_resume_container): New.
8236 * g13/call-syshelp.c (call_syshelp_run_suspend): New.
8237 (call_syshelp_run_resume): New.
8239 g13: Run mount after dmsetup.
8240 + commit f26867928c451443769fecc41c3283e077e8c49f
8241 * g13/g13-syshelp.c (main): Reject userids with a slash.
8242 * g13/sh-dmcrypt.c (sh_dmcrypt_mount_container): Run mount if a
8243 mountpoint is known.
8245 2016-02-23 Justus Winter <justus@g10code.com>
8247 tests/openpgp: Qualify executables with extension.
8248 + commit ede0061febe5b2edde6a1a79d599e3c7c0faed5a
8249 * tests/openpgp/Makefile.am (required_pgms): Qualify executables with
8252 tests/openpgp: Reimplement 'pinentry.sh' in c.
8253 + commit 01dcc2cf2f2f00235ffa7d0718ecb468370980cc
8254 * tests/openpgp/Makefile.am: Build new program.
8255 * tests/openpgp/defs.inc: Use the new program.
8256 * tests/openpgp/fake-pinentry.c: New file.
8258 tests/openpgp: Avoid dependency on source files.
8259 + commit 785a7f463ec4e937304ce1263c5e6a46e8079137
8260 * tests/openpgp/plain-largeo.asc: New file.
8261 * tests/openpgp/version.test: Dearmor the new file instead of relying
8262 on the source being present.
8264 tests/openpgp: Fix file removal.
8265 + commit 629284120ff359b98a178b6cddf0e005e5f4db1a
8266 * tests/openpgp/version.test: Fix file removal.
8268 common/exechelp: Provide a way to wait for multiple processes.
8269 + commit 5ba4f6047b84e4cfdb3e6bc88e574ca7a455da81
8270 * common/exechelp-posix.c (gnupg_wait_process): Generalize to
8271 'gnupg_wait_processes'.
8272 * common/exechelp-w32.c (gnupg_wait_process): Likewise.
8273 * common/exechelp-w32ce.c (gnupg_wait_process): New function stub.
8274 * common/exechelp.h (gnupg_wait_process): New prototype.
8276 common/exechelp: Add general pipe function.
8277 + commit 9f4a8d4ea173b4b4cb4d4f06b4004d43e2f4b97a
8278 * common/exechelp-posix.c (gnupg_create_pipe): New function.
8279 * common/exechelp-w32.c (INHERIT_{READ,WRITE,BOTH}): New macros.
8280 (create_inheritable_pipe): Generalize so that both ends can be
8282 (do_create_pipe): Rename argument accordingly.
8283 (gnupg_create_{in,out}bound_pipe): Use new flags.
8284 (gnupg_create_pipe): New function.
8285 (gnupg_spawn_process): Use new flags.
8286 * common/exechelp-w32ce.c (gnupg_create_pipe): New stub.
8287 * common/exechelp.h (gnupg_create_pipe): New prototype.
8289 common/exechelp: Mute the Windows version.
8290 + commit 54acc87c1e0b100accbfd02cfce59a897f2f0ce1
8291 * common/exechelp-w32.c (gnupg_wait_process): Do not print an error if
8292 the exit code can be returned. This makes the Windows version behave
8293 like the POSIX version.
8295 common/exechelp: Avoid magic numbers.
8296 + commit 709e2a7e9a3197e8ded4be0b05c138e8d5adbca6
8297 * common/exechelp-w32.c (do_create_pipe): Use symbolic names.
8299 common/exechelp: Disable debugging by default.
8300 + commit 5d8f7b16c8490d6951772fa98c1f075a952cc571
8301 * common/exechelp-w32.c (DEBUG_W32_SPAWN): Set to 0.
8303 common/exechelp: Fix handle leak.
8304 + commit dd670366d7aedb07e9420d1f8575197acfae1914
8305 * common/exechelp-w32.c (gnupg_spawn_process_detached): Close process
8308 common/exechelp: Fix opening the 'nul' device.
8309 + commit 8857590006266da200427f2d4f9e8c27fbc89ed9
8310 * common/exechelp-w32.c (gnupg_spawn_process): Fix opening the 'nul'
8313 common/exechelp: Fix error handling.
8314 + commit f5a4b6a3a39a2b78d33769184d6133d5e256e02c
8315 * common/exechelp-w32.c (gnupg_spawn_process): Close the right handle.
8317 common/exechelp: Fix pipe creation.
8318 + commit b0125ae9850973b89010517b1dbce04125a51d51
8319 * common/exechelp-w32.c (gnupg_spawn_process): Fix the creation of the
8322 tools/mk-tdata: Fix data generation on Windows.
8323 + commit 661ba477e01b796db161fa612b46c353393c6b10
8324 * tools/mk-tdata.c (main): Set stdout to binary mode to avoid newline
8327 2016-02-19 Neal H. Walfield <neal@g10code.com>
8329 gpg: Systematically detect and fix signatures that are out of order.
8330 + commit 2d1d795481bc011447284f8ce0a3ae96a08daf17
8331 * g10/keyedit.c (sig_comparison): New function.
8332 (fix_key_signature_order): Merge functionality into...
8333 (check_all_keysigs): ... this function. Rewrite to eliminate
8334 duplicates and use a systematic approach to detecting and moving
8335 signatures that are out of order instead of a heuristic.
8336 (fix_keyblock): Don't call fix_key_signature_order. Call
8337 check_all_keysigs instead after collapsing the uids.
8339 gpg: Split check_key_signature2.
8340 + commit 44cdb9d73f1a0b7d2c8483a119b9c4d6caabc1ec
8341 * g10/sig-check.c (hash_uid_node): Rename from this...
8342 (hash_uid_packet): ... to this. Take a PKT_user_id instead of a
8344 (check_key_signature2): Split the basic signature checking
8345 functionality into...
8346 (check_signature_over_key_or_uid): ... this new function.
8348 gpg: Split print_and_check_one_sig.
8349 + commit 5fbd80579aea0f75ca1d2700515c5b8747a75c7d
8350 * g10/keyedit.c (print_and_check_one_sig): Split the print
8351 functionality into...
8352 (print_one_sig): ... this new function.
8354 gpg: Split the function check_signature_end.
8355 + commit ac5aea95455372145f3f06df2b4c1584d759d660
8356 * g10/sig-check.c (check_signature_end): Break the basic signature
8358 (check_signature_end_simple): ... this new function.
8360 gpg: Use format_keyid rather than manually formatting the keyid.
8361 + commit 10671c3a4c18ea26035a5819a9f2b8fd6c7e41ea
8362 * g10/keyedit.c (menu_addrevoker): Use format_keyid rather than
8363 manually formatting the keyid.
8364 * g10/keygen.c (card_write_key_to_backup_file): Likewise.
8366 gpg: Initialize the primary key when generating a key.
8367 + commit bf9d1248c80205795e26156f67aff0b3f796cfce
8368 * g10/keygen.c (do_generate_keypair): Initialize
8369 pri_psk->flags.primary, pri_psk->keyid and pri_psk->main_keyid.
8371 gpg: Add accessor & utility functions for pk->keyid and pk->main_keyid.
8372 + commit c45633a571bf663bc7f3610fc481acded6acfc19
8373 * g10/keydb.h (keyid_cmp): New function.
8374 * g10/keyid.c (pk_keyid): New function.
8375 (pk_main_keyid): New function.
8376 (keyid_copy): New function.
8377 (pk_keyid_str): New function.
8378 * g10/packet.h (PKT_public_key): Update comments for main_keyid and
8381 2016-02-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8383 gpgparsemail: Allow weirdly-mixed pkcs7 signatures.
8384 + commit 7e7f35a2d7d40267a4dd30791df77420efeebfa7
8385 * tools/gpgparsemail.c: Add and check info->signing_protocol_2.
8387 gpg: Clean up dangling agent_open and agent_closed declarations.
8388 + commit 813df2fe6656e55bea4d0be07cc964a140218412
8389 * g10/keydb.h: Remove agent_open, agent_close declarations/
8390 * g10/migrate.c: #include <unistd.h> for access()
8392 2016-02-16 Werner Koch <wk@gnupg.org>
8394 w32: Make scdaemon build again due to libusb problem.
8395 + commit e1ceff16765b0342531709cf97d03ef0158c29d5
8396 * configure.ac: Add hack to disable libusb for Windows. Also use
8397 $host instead of $target in the switch
8400 The new test for libusb does not support cross-compiling. As a quick
8401 workaround we disable libusb for Windows because we can't use it anyway.
8403 w32: Do not error out if gpgconf is not installed.
8404 + commit 44b02e1beb4f38f26551d932827d5317fddd27c2
8405 * common/homedir.c (check_portable_app): Remove error message.
8407 2016-02-16 Neal H. Walfield <neal@g10code.com>
8409 gpg: Make ASCII armor decoding more robust to encoding errors.
8410 + commit 2f02ed75a9671a7aae36968d5a1618f71b491325
8411 * g10/armor.c (radix64_read): If the = is followed by the string "3D",
8412 check if the following four characters are valid radix 64 and are
8413 followed by a new line. If so, warn and ignore the '3D'.
8415 2016-02-16 Werner Koch <wk@gnupg.org>
8417 doc: Add a gnupg-module-overview picture.
8418 + commit a1c11283af759c1045a8bb75815db325f415ded4
8419 * doc/gnupg-module-overview.svg: New.
8420 * doc/debugging.texi (Component interaction): New.
8421 * doc/Makefile.am (EXTRA_DIST): Add PNG and PDF versions of
8422 gnupg-module-overview.svg. Remove two eps files.
8423 (BUILT_SOURCES): Add gnupg-module-overview.pdf and .png. Remove
8424 gnupg-card-architecture.epsl
8425 (gnupg_TEXINFOS): Add gnupg-module-overview.svg
8427 (DISTCLEANFILES): Remove build eps files.
8429 2016-02-15 NIIBE Yutaka <gniibe@fsij.org>
8431 common, g10: Fix indentation to silence GCC-6.
8432 + commit ea9cfcfbf76de232221f31787c53d5f46361a9f0
8433 * common/iobuf.c (iobuf_ioctl): Fix.
8434 * g10/encrypt.c (encrypt_filter): Likewise.
8435 * g10/keyring.c (prepare_search): Likewise.
8437 dirmngr: fix for memory alignment.
8438 + commit 6fbe12a51e8fe2649ffe5a8a02aa93026a8f02cd
8439 * dirmngr/dns-stuff.c (get_dns_cert): Cast through void *.
8440 (getsrv, get_dns_cname): Make sure it's aligned for HEADER.
8442 2016-02-14 Werner Koch <wk@gnupg.org>
8444 gpg: Add hidden key-edit subcommand "change-usage".
8445 + commit 9b28b82e7c40d1eacc446d5932cd613c56378ed8
8446 * g10/keyedit.c (cmdCHANGEUSAGE): New.
8447 (cmds): Add command "change-usage".
8448 (keyedit_menu): Handle that command.
8449 (menu_changeusage): New.
8450 * g10/keygen.c (keygen_add_key_flags): New.
8451 (ask_key_flags): Add optional arg current.
8453 2016-02-14 Neal H. Walfield <neal@g10code.com>
8455 gpg: Improve API documentation.
8456 + commit 9663b088480cef6734a3c5892d5ddbbd60ecc1a4
8457 * g10/seskey.c (make_session_key): Improve documentation.
8458 (encode_session_key): Improve documentation.
8459 * g10/encrypt.c (encrypt_seskey): Remove gratuitous initialization.
8460 * g10/dek.h (DEK): Improve documenation.
8462 gpg: Fix calc_header_length when LEN is 0 and improve documentation.
8463 + commit 5cdde08ea869ef02111f618ad782d392a296eb7f
8464 * g10/build-packet.c (calc_header_length): Return the correct haeder
8465 size when LEN is 0. Fix documentation.
8467 gpg: Fix format_keyid when dynamically allocating the buffer.
8468 + commit c0268c449d0f3d23be5ec7b92fe92e7e078166cf
8469 * g10/keyid.c (format_keyid): Return a char *, not a const char *. If
8470 BUFFER is NULL, then set LEN to the static buffer's size.
8472 common: Fix comment.
8473 + commit ad43dc6cfc2b610a4e34fe55811bd937f9c3238b
8474 * common/iobuf.c (iobuf_flush_temp): Fix comment.
8476 2016-02-13 Werner Koch <wk@gnupg.org>
8478 g13: Require a confirmation before g13 is used for DM-Crypt.
8479 + commit 86f3bb144ad75461eb9b7ac1e59046ac75efccac
8480 * g13/g13-syshelp.c (g13_syshelp_i_know_what_i_am_doing):
8481 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Call it.
8482 (sh_dmcrypt_mount_container): Call it.
8484 g13: Second chunk of code to support dm-crypt.
8485 + commit b0e6ab1109d05fc664f46e17d721fe9b01d38115
8486 * g13/be-dmcrypt.c, g13/be-dmcrypt.h: New.
8487 * g13/Makefile.am (g13_SOURCES): Add them.
8488 * g13/backend.c: Include be-dmcrypt.h and call-syshelp.h.
8489 (no_such_backend): Rename to _no_such_backend and provide replacement
8491 (be_is_supported_conttype): Support DM-Crypt.
8492 (be_take_lock_for_create): Call set_segvice for DM-Crypt.
8493 (be_create_new_keys): Make it a dummy for DM-Crypt.
8494 (be_create_container): Call be_dmcrypt_create_container.
8495 (be_mount_container): call be_dmcrypt_mount_container.
8496 * g13/g13-syshelp.c (main): Enable verbose mode.
8497 * g13/g13tuple.c (get_tupledesc_data): New.
8498 * g13/g13tuple.h (unref_tupledesc): New.
8499 * g13/g13.h (server_control_): Add field "recipients".
8500 * g13/g13.c (main): Fix setting of recipients via cmdline.
8501 (g13_deinit_default_ctrl): Release recipients list.
8502 (g13_request_shutdown): New. Replace all direct update of
8503 shutdown_pending by calls this function.
8504 * g13/server.c (server_local_s): Remove field recipients which is now
8506 (reset_notify, cmd_recipient, cmd_create): Adjust for this change.
8507 * g13/create.c (encrypt_keyblob): Rename to g13_encrypt_keyblob.
8508 (g13_create_container): Support DM-Crypt.
8509 * g13/mount.c (parse_header): Allow for meta data copies.
8510 (g13_mount_container): Support DM-Crypt.
8511 * g13/sh-cmd.c (cmd_create): Make it work.
8513 * g13/sh-dmcrypt.c (sh_dmcrypt_create_container): Make it work.
8514 (sh_dmcrypt_mount_container): New.
8516 g13: Improve dump_keyblob.
8517 + commit 13f745b50dc7031755faadb2d3476a6b6aafc739
8518 * g13/g13tuple.c: Include keyblob.h.
8519 (find_tuple_uint): Factor code out to ...
8520 (convert_uint): new.
8521 (all_printable): New.
8522 * g13/mount.c (dump_keyblob: Move and rename to ...
8523 * g13/g13tuple.c (dump_tupledesc): here. Revamp and pretyy print uint
8526 g13: Define 3 new tags.
8527 + commit 59fc3507d18072833559f227ecab8aa00cad9466
8528 * g13/keyblob.h (KEYBLOB_TAG_CONT_NSEC): New.
8529 (KEYBLOB_TAG_ENC_NSEC): New.
8530 (KEYBLOB_TAG_ENC_OFF): New.
8532 g13: Rename utils.c to g13tuple.c.
8533 + commit 82d12156ef5f948d44934ed44d79d24cc9e94366
8534 * g13/utils.c: Rename to g13tuple.c.
8535 * g13/utils.h: Rename to g13tuple.h. Change all users.
8536 * g13/Makefile.am: Adjust accordingly
8538 g13: Add functions to handle uint in a keyblob.
8539 + commit 4f152f3276b6d40d2568a27e74903dd18b41d752
8540 * g13/utils.c (append_tuple_uint): New.
8541 (find_tuple_uint): New.
8542 * g13/t-utils.c: New.
8543 * g13/Makefile.am (noinst_PROGRAMS, TESTS): New.
8544 (module_tests, t_common_ldadd): New.
8545 (t_utils_SOURCES, t_utils_LDADD): New.
8547 g13: Re-factor high level create code.
8548 + commit dc1dbc43a6bfb2f3e6a1cc2ca089e0318b3af0ed
8549 * g13/create.c (g13_create_container): Factor some code out to ...
8550 * g13/backend.c (be_take_lock_for_create): new.
8552 g13: Return an error for non-existing device.
8553 + commit 3087197008d2b12bf9f0d7d1f2aca500db816e7c
8554 * g13/sh-cmd.c (cmd_device): Set ERR.
8556 g13: Fix releasing of a syshelp context.
8557 + commit 6390beca54f55e8d36ff767b99ae9ff68b15f10e
8558 * g13/call-syshelp.c (call_syshelp_release): Allow a NULL arg.
8560 g13: Switch over to common/exectool.c.
8561 + commit c5d7045dafcfb569c11c90c04ea7a75328c80084
8562 * g13/sh-exectool.c: Remove. It has been replaced by common/exectool.c.
8563 * g13/Makefile.am (g13_syshelp_SOURCES): Remove sh-exectool.c
8564 * g13/sh-blockdev.c: Include exectool.h. Change sh_exec_tool to
8566 * g13/sh-dmcrypt.c: Ditto.
8568 common: Make gnupg_exec_tool conform to spec.
8569 + commit d19d6e1856c9a1acbf48e8b2e39b3d9171aa9f7f
8570 * common/exectool.c (gnupg_exec_tool): Allocate extra byte. Allow
8571 zero length read. Append hidden byte. Release memory on error.
8573 g13: First chunk of code to support dm-crypt.
8574 + commit 81494fd30d3815502247a721f50d9eadf86a73fa
8575 * g13/call-syshelp.c, g13/call-syshelp.h: New.
8576 * g13/g13-syshelp.c, g13/g13-syshelp.h: New.
8577 * g13/sh-cmd.c: New.
8578 * g13/sh-blockdev.c: New.
8579 * g13/sh-exectool.c: New.
8580 * g13/sh-dmcrypt.c: New.
8581 * g13/Makefile.am (sbin_PROGRAMS): Add g13-syshelp.c
8582 (g13_syshelp_SOURCES): New.
8583 (g13_syshelp_LDADD): New.
8585 * g13/g13.c (opts): Add option --type.
8586 (g13_deinit_default_ctrl): New.
8587 (main): Implement that option. Call g13_deinit_default_ctrl.
8588 * g13/g13.h (struct call_syshelp_s): New declaration.
8589 (server_control_s): Add field syshelp_local.
8590 * g13/keyblob.h (KEYBLOB_TAG_CREATED): New.
8591 (KEYBLOB_TAG_ALGOSTR): New.
8592 (KEYBLOB_TAG_HDRCOPY): New.
8593 * g13/backend.c (be_parse_conttype_name): New.
8594 (be_get_detached_name): Add CONTTYPE_DM_CRYPT.
8596 tests: Remove some harmless warnings in regression tests.
8597 + commit d711f5c7697cd4bc5dc6d9fd01706cabc771dad2
8598 * tests/openpgp/gpg-agent.conf.tmpl: Remove --use-standard-socket.
8600 2016-02-12 Neal H. Walfield <neal@g10code.com>
8602 common: Change simple_query to ignore status messages.
8603 + commit acac103ba5772ae738ce5409d17feab80596cde6
8604 * common/simple-pwquery.c (simple_query): Ignore status messages.
8606 2016-02-12 NIIBE Yutaka <gniibe@fsij.org>
8608 g10: Make sure to have the directory for trustdb.
8609 + commit d9f9b3be036747c9f55060aed47896f951bfb853
8610 * g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE. Check
8611 the directory and create it if none before calling take_write_lock.
8613 2016-02-02 Neal H. Walfield <neal@g10code.com>
8615 doc: Note that rngd can also be used to quickly generate insecure keys.
8616 + commit 75311cfe18071b94c66121a9785b133b6df345a3
8617 * doc/gpg-agent.texi (Agent Options): Add comment to the description
8618 of --debug-quick-random that rngd can also be used to quickly generate
8621 2016-01-27 Werner Koch <wk@gnupg.org>
8623 scd: Fix size_t/int mismatch in libusb.
8624 + commit 3d952a2fe5da9d84c20d3debdcc1e425b08781c6
8625 * scd/ccid-driver.c (bulk_in, abort_cmd, ccid_poll): Change msglen to
8628 scd: Fix detection of libusb.
8629 + commit 1b90b52a56b4f808ad29a7ef79aeafc03c7424b4
8630 * configure.ac (HAVE_LIBUSB): Clear if no header file was found.
8631 (LIBUSB_LIBS): Ditto.
8633 dirmngr: Build fix for FreeBSD (EAI macros)
8634 + commit 4d67144142f04184b835e50314eb21b882b9e00a
8635 * dirmngr/dns-stuff.c (map_eai_to_gpg_error): Map EAI_NODATA and
8636 EAI_ADDRFAMILY only if defined.
8638 2016-01-27 NIIBE Yutaka <gniibe@fsij.org>
8640 scd: Migrate to new API of libusb 1.0.
8641 + commit d0d97089706286fafd3c8ff56f3b5bf7ac07c6e0
8642 * configure.ac (LIBUSB_CPPFLAGS): New.
8643 * scd/Makefile.am (AM_CPPFLAGS): Add LIBUSB_CPPFLAGS.
8644 * scd/ccid-driver.c: Use libusb 1.0 API.
8646 2016-01-26 Werner Koch <wk@gnupg.org>
8649 + commit e9e5e83ec14459c2fc9060c54fc8e7381b541acd
8652 2016-01-26 Andre Heinecke <aheinecke@intevation.de>
8654 gpgtar,w32: Fix gpgtar 8 bit encoding handling on W32.
8655 + commit 3e50236d4ecc3601b2641bf4273a0ff64bb5fdc4
8656 * common/utf8conv.c (wchar_to_utf8): Factor code out to ...
8658 (utf8_to_wchar): Factor code out to ...
8660 (wchar_to_native): New.
8661 (native_to_wchar): New.
8662 * tools/gpgtar-create.c (fillup_entry_w32): Use native_to_wchar.
8663 (scan_directory): Use wchar_to_native.
8665 2016-01-26 NIIBE Yutaka <gniibe@fsij.org>
8667 g10: Fix segfault on unsupported curve.
8668 + commit b8bb16c6c08d3c2947f1ff67419b36eb203c5c1a
8669 * g10/call-agent.c (learn_status_cb): Don't use NULL for strcmp.
8671 sm: small fix for GCC 6.
8672 + commit d33a34004bef028068538f099c32a0e292a004c3
8673 * sm/export.c (insert_duptable): Use unsigned 0.
8675 2016-01-25 Werner Koch <wk@gnupg.org>
8676 Daiki Ueno <ueno@gnu.org>
8678 gpg: Print PROGRESS status lines during key generation.
8679 + commit fbe1cf67aadc5a33cf815ddbcfc9669e43caa123
8680 * g10/call-agent.c (cache_nonce_status_cb): Rewrite by using
8681 has_leading_keyword. Handle PROGRESS lines.
8683 2016-01-25 Werner Koch <wk@gnupg.org>
8685 agent: Send PROGRESS status lines to the client.
8686 + commit ee87c653bf4b495714e8e6b024d0a8ace3a33452
8687 * agent/gpg-agent.c (struct progress_dispatch_s): New.
8688 (progress_dispatch_list): New.
8689 (main): Register libgcrypt pogress handler.
8690 (agent_libgcrypt_progress_cb): New.
8691 (agent_set_progress_cb): New.
8692 (unregister_progress_cb): New.
8693 (agent_deinit_default_ctrl): Call unregister.
8694 * agent/command.c (progress_cb): New.
8695 (start_command_handler): Register progress callback.
8697 speedo: Allow use of SHA-256 checksums.
8698 + commit 039a55716b8abd22ce23a96dce34cf2dc4be1862
8699 * build-aux/getswdb.sh: Add option --find-sha256sum.
8700 * build-aux/speedo.mk (libgpg_error_sha2): New var. Also for all
8703 (SETVARS, SETVARS_W64): Prefer sha256sum over sha1sum.
8704 (installer-from-source): Create swdb fragment.
8706 2016-01-22 Werner Koch <wk@gnupg.org>
8708 dirmngr: Indicate that serial numbers are hexadecimal.
8709 + commit 12c665b36cdc4b7189549698fc4cc1b3523b18f5
8710 * dirmngr/misc.c (hexify_data): Add arg with_prefix. Adjust all
8712 * dirmngr/crlcache.c (cache_isvalid): Print "0x" in front of the S/N.
8714 dirmngr: Provide the keyserver pool name even if there is no CNAME.
8715 + commit 77bceb2902dd489443073d91836ea54376c60bf6
8716 * dirmngr/ks-engine-hkp.c (map_host): Fix setting of r_poolname.
8718 2016-01-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8721 dirmngr: Use sks-keyservers CA by default for the hkps pool.
8722 + commit afb8696126ff0babaab23e884ff5da008281e3b7
8723 * dirmngr/Makefile.am (dist_pkgdata_DATA): Add sks-keyservers.netCA.pem.
8724 * dirmngr/http.c (http_session_new): Add optional arg
8725 intended_hostname and set a default cert.
8726 * dirmngr/ks-engine-hkp.c (send_request): Pass httphost to
8729 2016-01-22 Werner Koch <wk@gnupg.org>
8731 gpg: Allow new user ids with only the mail address.
8732 + commit fc0c71dfe5ea8f1c683101948c23f5d2064ee4cd
8733 * g10/keygen.c (ask_user_id): Allow empty name.
8735 2016-01-21 Werner Koch <wk@gnupg.org>
8737 gpg: Improve header text of the auto-created revocations.
8738 + commit bb99b40bd1e624f58ca806ca16dc73d4d594a30a
8739 * g10/revoke.c (gen_standard_revoke): Improve header text for the
8740 file. Add info output.
8742 gpg: Make --auto-key-retrieve work with dirmngr configured server.
8743 + commit 09117e769a093467cb47154f36d7dda613313e33
8744 * g10/call-dirmngr.c (gpg_dirmngr_ks_list): Make R_KEYSERVER optional.
8745 * g10/keyserver.c (keyserver_any_configured): New.
8746 (keyserver_put): Remove arg keyserver because this will always receive
8747 opt.keyserver which is anyway used when connecting dirmngr. Do not
8748 check opt.keyserver.
8749 (keyserver_import_cert): Replace opt.keyserver by
8750 keyserver_any_configured.
8751 * g10/mainproc.c (check_sig_and_print): Ditto.
8752 * g10/import.c (revocation_present): Ditto.
8753 * g10/getkey.c (get_pubkey_byname): Ditto.
8754 * g10/gpgv.c (keyserver_any_configured): Add stub.
8755 * g10/test-stubs.c (keyserver_any_configured): Add stub.
8757 2016-01-20 Werner Koch <wk@gnupg.org>
8759 gpg: Silence message about ignoring revoked user ids.
8760 + commit bdb61351776c038d668310d9b5e5c32588ef6519
8761 * g10/trustdb.c (tdb_get_validity_core): Print message only in debug
8764 agent: New option --pinentry-timeout.
8765 + commit 499743387f4d07847a2842358bc54f9237e0c2a7
8766 * agent/gpg-agent.c (oPinentryTimeout): New.
8767 (opts): Add new option.
8768 (parse_rereadable_options): PArse that option.
8769 (main): Tell gpgconf about this option.
8770 * agent/call-pinentry.c (start_pinentry): Send option to Pinentry.
8771 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add Option.
8773 2016-01-19 Werner Koch <wk@gnupg.org>
8775 gpg: Streamline use of error messages in tofu.c.
8776 + commit cfa41890bb5ff306c07dad295136601fe47566a7
8777 * g10/tofu.c: Make use of print_further_info to reduce the number of
8778 different error messages to be translated. Also streamline some
8781 common: Add substitute code for libgpg-error < 1.22.
8782 + commit 8b7f64f9dfc80b2a0ad235996b47369c2ba9b48f
8783 * common/util.h (GPG_ERR_DB_CORRUPTED): New.
8785 gpg: Add function print_further_info.
8786 + commit d96e76d15f61812b950b64a60bc47117785a9dac
8787 * g10/misc.c (print_further_info): New.
8789 2016-01-18 Werner Koch <wk@gnupg.org>
8791 g10: Improve strings printed by tofu.c.
8792 + commit 79778a8dd5f61a6b7abeeb44b75d82932db788b7
8793 * g10/tofu.c: Include ttyio.h. Change many strings to help
8794 translating. Make use of ngettext wehere needed.
8796 (TIME_AGO_UNIT_SMALL_NAME): Remove this and all similar *_NAME macros.
8797 (time_ago_unit): Remove.
8798 (get_trust): Use tty_prints and cpr_get only for the actual prompt.
8800 (show_statistics): Use two English strings for singular and plural.
8802 * po/POTFILES.in: Add tofu.c.
8804 gpg: Use "days" in "...newer than..." diagnostics.
8805 + commit 9309bda9581715d304305c8c5116f2cbb31aec77
8806 * g10/sig-check.c (check_signature_metadata_validity): Use days if
8809 Use ngettext for some strings.
8810 + commit 437965e5622612941ed0fa55584811c65069242e
8811 * scd/app-openpgp.c (build_enter_admin_pin_prompt): Use ngettext for
8814 * g10/keyedit.c (check_all_keysigs, menu_delsig, menu_clean): Ditto.
8815 * g10/keylist.c (print_signature_stats): Ditto.
8816 * g10/keyserver.c (keyserver_refresh): Ditto.
8817 * g10/sig-check.c (check_signature_metadata_validity): Ditto.
8818 * g10/sign.c (do_sign): Ditto.
8819 * g10/trustdb.c (reset_trust_records): Ditto.
8820 (validate_keys): Use a table like diagnostic output.
8822 2016-01-15 Werner Koch <wk@gnupg.org>
8824 kbx,w32: Use shorter retry intervals for keybox_file_rename.
8825 + commit 3cccd5a83b96e4558642dcdf5d974f64ebdb9817
8826 * kbx/keybox-util.c (keybox_file_rename): Restart retry intervals
8829 2016-01-14 Werner Koch <wk@gnupg.org>
8831 w32: Fix deadlock introduced by keybox_file_rename.
8832 + commit 663c5d129a8f400cc6eb8ab7b91772d6e578152d
8833 * g10/keyring.c (keyring_lock) [W32]: Flush the close cache before
8835 * kbx/keybox-init.c (keybox_lock) [W32]: Close the file before
8838 gpg: Detect race between pubring.gpg and pubring.kbx use.
8839 + commit 3b1248e007a6bf830a3230ee2d9cc548205ec31a
8840 * g10/keydb.c (maybe_create_keyring_or_box): Detect race condition.
8842 kbx: New function keybox_file_rename to replace rename.
8843 + commit 8241ed59d05e06252647b26477ed5c2f84895a26
8844 * kbx/keybox-util.c: Include windows.h.
8845 (keybox_file_rename): New.
8846 * kbx/keybox-update.c (rename_tmp_file): Replace remove+rename by
8848 * g10/keyring.c (rename_tmp_file): Ditto.
8850 kbx: Add function keybox_tmp_names to avoid code duplication.
8851 + commit f5cceef115f0307664956d01c48b1b397fdad4b3
8852 * kbx/keybox-update.c (create_tmp_file): Move some code to...
8853 * kbx/keybox-util.c (keybox_tmp_names): new.
8854 * g10/keyring.c: Include keybox.h.
8855 (create_tmp_file): Replace parts by keybox_tmp_names.
8857 gpg: Make --list-options show-usage the default.
8858 + commit 360534bde770f4845669de223154216d249b954b
8859 * g10/gpg.c (main): Add LIST_SHOW_USAGE.
8861 2016-01-13 Werner Koch <wk@gnupg.org>
8863 kbx: Change return type of search functions to gpg_error_t.
8864 + commit c7ca0f73dbe7c080b79f93f90f00ba2396fc4bd0
8865 * kbx/keybox-search.c (keybox_search_reset): Change return type to
8867 (keybox_search): Ditto. Also handle GPG_ERR_EOF.
8868 * sm/keydb.c (keydb_search_reset): Ditto.
8870 gpg: Improve error code from lock_all.
8871 + commit 9b6c91469a804c60289a2ed21334dfd856c294bb
8872 * g10/keydb.c (lock_all): Do not clobber RC during failur cleanup.
8874 kbx: Improve and fix keybox_lock.
8875 + commit 8f1368d5e3f7654ad9cb100053535f728dff2344
8876 * kbx/keybox-init.c (keybox_lock): Make sure ERR is initialized. Get
8877 error codes from dotlock functions.
8879 common: Make sure dotlock functions set a proper ERRNO.
8880 + commit 4aceebf36f103eb380e21d12a1f08b7d6ea7cc8e
8881 * common/dotlock.c (map_w32_to_errno): New.
8882 (read_lockfile): Return a proper ERRNO.
8883 (dotlock_create_unix): Do not let log functions clobber ERRNO.
8884 (dotlock_take_unix): Ditto.
8885 (dotlock_release_unix): Ditto.
8886 (dotlock_create_w32): Set proper ERRNO.
8887 (dotlock_take_w32): Ditto.
8888 (dotlock_release_w32): Ditto.
8890 kbx: Implement keybox_lock for use by gpg.
8891 + commit 160862978628b07ed5150ec2c8abad6af1656bc3
8892 * kbx/keybox-defs.h: Include dotlock.h and logging.h.
8893 (CONST_KB_NAME): Remove. Replace usage by KB_NAME.
8894 (struct keybox_name): Add field "lockhd".
8895 * kbx/keybox-init.c (keybox_register_file): Init LOCKHD.
8896 (keybox_lock): Chnage to return gpg_error_t. Implement locking.
8898 gpg: Make sure to mark a duplicate registered keybox as primary.
8899 + commit 9dc355ad3ae0026ab04c424dc984d748b8fad393
8900 * kbx/keybox-init.c (keybox_register_file): Change interface to return
8901 the token even if the file has already been registered.
8902 * g10/keydb.c (primary_keyring): Rename to primary_keydb.
8903 (maybe_create_keyring_or_box): Change return type to gpg_error_t.
8904 (keydb_add_resource): Ditto. s/rc/err/.
8905 (keydb_add_resource): Mark an already registered as primary.
8906 * sm/keydb.c (maybe_create_keybox): Change return type to gpg_error_t.
8907 (keydb_add_resource): Ditto. s/rc/err/.
8908 (keydb_add_resource): Adjust for changed keybox_register_file.
8910 2016-01-13 NIIBE Yutaka <gniibe@fsij.org>
8912 Fix to support git worktree.
8913 + commit 96237b9a63a50aed1884cb06f84279b977d6a8fa
8914 * autogen.sh, Makefile.am, doc/Makefile.am: Use -e for testing .git.
8916 2016-01-12 Werner Koch <wk@gnupg.org>
8918 ssh: Accept OpenSSH *cert-v01 key variants.
8919 + commit e2f984b4afffaa89bdeba2f5d447b5681237177e
8920 * agent/command-ssh.c (SPEC_FLAG_WITH_CERT): New.
8921 (ssh_key_types): Add OpenSSH cert types.
8922 (stream_read_string): Allow a dummy read.
8923 (ssh_receive_mpint_list): Pass SPEC by reference.
8924 (ssh_receive_mpint_list): New arg CERT and use it.
8925 (ssh_receive_key): Read certificate into an estream object and modify
8926 parser to make use of that object.
8928 2016-01-12 NIIBE Yutaka <gniibe@fsij.org>
8930 common: Fix iobuf API of filter function for alignment.
8931 + commit 4b4639b0b04dc82c550fa711dd7193e13fc4a428
8932 * common/iobuf.h: Fix comment.
8934 common: Fix iobuf API of filter function for alignment.
8935 + commit 3f52c7da3940ec06572270d511000dc7fe9c27d2
8936 * common/iobuf.h (IOBUFCTRL_DESC): Change the call semantics.
8937 * common/iobuf.c (iobuf_desc): Add the second argument DESC.
8938 (print_chain, iobuf_close, do_open, iobuf_sockopen, iobuf_ioctl)
8939 (iobuf_push_filter2, pop_filter, iobuf_write_temp): Change calls
8941 (file_filter, file_es_filter, sock_filter, block_filter): Fill the
8943 * common/t-iobuf.c (every_other_filter, double_filter): Likewise.
8944 * g10/armor.c, g10/cipher.c, g10/compress-bz2.c, g10/compress.c,
8945 g10/decrypt-data.c, g10/encrypt.c, g10/mdfilter.c, g10/progress.c,
8946 g10/textfilter.c: Likewise.
8948 2016-01-11 Werner Koch <wk@gnupg.org>
8950 gpg: Fix NULL de-ref for ambiguous key check in --export-ssh-keys.
8951 + commit b280aa6423c9492e8c5a9afa57339d06d957996d
8952 * g10/getkey.c: Allow arg RET_KEYBLOCK to be NULL.
8954 2016-01-09 Werner Koch <wk@gnupg.org>
8956 tools: Remove gpgkey2ssh.
8957 + commit eb9c021631174fde4c1c444bbc533a7a46d570cd
8958 * tools/gpgkey2ssh.c: Remove.
8959 * tools/Makefile.am (bin_PROGRAMS): Ditto.
8961 2016-01-08 Werner Koch <wk@gnupg.org>
8963 gpg: Support ECDSA keys with --export-ssh-key.
8964 + commit b2da3951a395366bf1644bc4c4eb42d657effe17
8965 * g10/export.c (key_to_sshblob): Add hack for ECDSA.
8967 gpg: New command --export-ssh-key.
8968 + commit 4970868d8d84d3a64b067e5aafc9f097621758d3
8969 * g10/export.c: Include membuf.h and host2net.h.
8970 (key_to_sshblob): New.
8971 (export_ssh_key): New.
8972 * g10/gpg.c (aExportSshKey): New.
8973 (opts): Add command.
8974 (main): Implement that command.
8976 gpg: Add an exact search flag to the PK struct.
8977 + commit 34bca9cd4b8517795833cb754b0d5b1dd33b08ed
8978 * g10/getkey.c (merge_selfsigs_subkey): Clear exact flag.
8979 (finish_lookup): Set exact flag.
8980 * g10/packet.h (PKT_public_key): Add field flags.exact.
8982 Print warnings if old daemon versions are used.
8983 + commit 2aa42baaf3dd7c3ae613ae0c61760a17c8adfcd0
8984 * common/status.h (STATUS_WARNING): New.
8985 * g10/call-agent.c (warn_version_mismatch): New.
8986 (start_agent): Call warn function.
8987 * g10/call-dirmngr.c: Include status.h.
8988 (warn_version_mismatch): New.
8989 (create_context): Call warn function.
8990 * sm/call-agent.c (warn_version_mismatch): New.
8991 (start_agent): Call warn function.
8992 (gpgsm_agent_learn): Call warn function.
8993 * sm/call-dirmngr.c (warn_version_mismatch): New.
8994 (prepare_dirmngr): Call warn function.
8996 common: New function compare_version_strings.
8997 + commit 4d7ac43ff71fdadfd2e04621f74840a82fbe788a
8998 * common/stringhelp.c (parse_version_number): New.
8999 (parse_version_string): New.
9000 (compare_version_strings): New.
9001 * common/t-stringhelp.c (test_compare_version_strings): New.
9002 (main): Call test. Return ERRCOUNT instead of 0.
9004 common: New function get_assuan_server_version.
9005 + commit 496643291e1e346434e9c98405c5a370957eb7d3
9006 * common/asshelp.c: Include membuf.h.
9007 (get_assuan_server_version): New.
9008 * g10/call-agent.c (agent_get_version): Use new function.
9010 common: New put_membuf_cb to replace static membuf_data_cb.
9011 + commit 833ba5faa1340aff80a205acbb701d4ae1d594d0
9012 * common/membuf.c (put_membuf_cb): New.
9013 * agent/call-scd.c (membuf_data_cb): Remove. Change callers to use
9015 * common/get-passphrase.c (membuf_data_cb): Ditto.
9016 * g10/call-agent.c (membuf_data_cb): Ditto.
9017 * sm/call-agent.c (membuf_data_cb): Ditto.
9019 2016-01-07 Werner Koch <wk@gnupg.org>
9021 gpg: Return an error code from keygrip_from_pk.
9022 + commit 8fd406c317ad7c2e375ae4f7d20656dadf6d7fcc
9023 * g10/keyid.c (keygrip_from_pk): Return an error code.
9025 gpg: Avoid warnings about possible NULL deref.
9026 + commit 8a56a38387c10c02ba0790c655dd5c1d08e4a724
9027 * g10/getkey.c (cache_public_key): Protect deref of CE which actually
9029 * g10/keygen.c (quickgen_set_para): s/sprintf/snprintf/.
9030 * g10/tofu.c (end_transaction, rollback_transaction): Allow NULL for
9032 * g10/trustdb.c (update_min_ownertrust): Remove useless clearling of
9035 gpg: Fix warnings about useless assignments.
9036 + commit 008aa6e6d4b213c3a0d15509eb46cf168b6f2c94
9037 * g10/armor.c (parse_hash_header): Remove duplicate var assignment.
9038 * g10/getkey.c (cache_user_id): Ditto.
9039 * g10/keygen.c (ask_curve): Ditto. This also fixes a small memory
9042 * g10/keygen.c (proc_parameter_file): Remove useless assignment or
9044 (generate_keypair): Ditto.
9045 * g10/getkey.c (finish_lookup, lookup): Ditto.
9046 * g10/card-util.c (change_pin): Ditto.
9047 * g10/gpg.c (main) <aVerify>: Ditto.
9048 * g10/import.c (import): Ditto.
9049 (print_import_check): Ditto
9050 * g10/keyring.c (do_copy): Ditto.
9051 * g10/tdbio.c (tdbio_read_record): Ditto.
9052 * g10/trustdb.c (tdb_update_ownertrust): Ditto.
9053 (update_validity): Ditto.
9055 * g10/server.c (cmd_passwd): Remove useless call to skip_options.
9057 sm: Avoid warnings about useless assignments.
9058 + commit 126aebbb82667d160c8c4435898efeb3b43c4ec8
9059 * sm/call-dirmngr.c (prepare_dirmngr): Remove setting of ERR.
9060 (unhexify_fpr): Remove useless computation on N.
9061 * sm/certchain.c (do_validate_chain): Remove clearing of RC. Remove
9062 useless setting of RC.
9063 * sm/fingerprint.c (gpgsm_get_keygrip): Remove setting of RC.
9064 * sm/gpgsm.c (build_list): Replace final stpcpy by strcpy.
9065 * sm/keydb.c (keydb_clear_some_cert_flags): Remove clearing of RC.
9066 * sm/server.c (cmd_getauditlog): Comment unused skip_options.
9068 kbx: Avoid warnings about useless assignments.
9069 + commit 0de7d61437bd0bfbe645d5eed7a62df03129fb32
9070 * kbx/keybox-dump.c (_keybox_dump_blob): Remove setting of IN_RANGE
9071 and the last increment of P.
9073 gpg: Fix DNS cert lookup returning an URL.
9074 + commit a41638acf4808caa619f4f3f4c0dcd12be00d6f8
9075 * g10/call-dirmngr.c (dns_cert_status_cb): Store URL status in the URL
9076 param. The old code was entirely buggy (c+p error).
9078 2016-01-06 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
9080 Fix keystrlen to work when OPT.KEYID_FORMAT is KF_DEFAULT.
9081 + commit 2c3e67430d9b523c85c81ae562223fd51e3608cc
9082 * g10/keyid.c (keystrlen): If opt.keyid_format is KF_DEFAULT unset,
9083 default to KF_SHORT.
9084 (format_keyid): Default to KF_SHORT, not KF_0xLONG.
9086 2016-01-06 Werner Koch <wk@gnupg.org>
9088 gpg: Silence some regression tests.
9089 + commit c7389ae90fa4a70766400cc241ff6a45aa750324
9090 * g10/test.c (TEST): Print diagnostics only in verbose mode.
9092 gpg: Avoid using an uninitialized SALT on premature EOF.
9093 + commit 85cc7449fb00ac85b0c2eecd22bd38b23f33edf5
9094 * g10/parse-packet.c (parse_key): Check for premature end of salt.
9096 gpg: Silence warnings found by static analyzer.
9097 + commit 09accc0e3d74e6289bed40b5bfc6479981cabfe4
9098 * g10/keyedit.c (change_passphrase): Remove useless init of ANY.
9099 (keyedit_quick_adduid): Remove useless setting of ERR.
9100 * g10/parse-packet.c (parse_key): Remove PKTLEN from condition because
9101 it has been checked before the loop.
9102 (parse_plaintext): Remove useless init of PKTLEN.
9104 kbx: Avoid faulty fclose in an error case.
9105 + commit db82b6131d437bf6ba34db0e08b7dfa9edb11e45
9106 * kbx/keybox-update.c (blob_filecopy): Do not close an uninitialized
9107 file pointer after a failure to create a temp file.
9108 * kbx/keybox-openpgp.c (next_packet): Remove duplicate assignment of
9111 dirmngr: Silence one regression test.
9112 + commit 6deafb92abe100ff67e3a0a230a39e8c0ad41900
9113 * dirmngr/t-dns-stuff.c (main): Do not print info during standard
9116 common: Avoid warnings about useless assignments.
9117 + commit e64317c15e9960f3173d374e589f7c3565a4ad08
9118 * common/b64enc.c (b64enc_finish): Remove var assignment which is not
9120 * common/iobuf.c (file_filter): Ditto.
9121 * common/tlv.c (do_find_tlv): Ditto.
9122 * common/userids.c (classify_user_id): Ditto.
9124 tests: Use info and error instead of a plain echo.
9125 + commit 1fbfa1bf0a6ad0dc7ed67d12252643c2c6c7370a
9126 * tests/openpgp/4gb-packet.test: Use error and info.
9128 common: Do not deref vars in tests after a fail().
9129 + commit 0a00115ee2049ab2357b7a14a51c7da185ffcabd
9130 * common/t-convert.c (test_bin2hex): Turn if conditions into if-else
9131 chains to avoid accessing unchecked data.
9132 (test_bin2hexcolon): Ditto.
9133 * common/t-mapstrings.c (test_map_static_macro_string): Ditto.
9134 * common/t-stringhelp.c (test_percent_escape): Ditto.
9135 (test_make_filename_try): Ditto.
9136 (test_make_absfilename_try): Ditto.
9137 * common/t-timestuff.c (test_timegm): Ditto.
9139 2016-01-05 Werner Koch <wk@gnupg.org>
9141 gpg: Align notes about minimal keysize with actual checks.
9142 + commit e70f7a54f29d727def2cfe9ea5ab9d461b4ce842
9143 * g10/keygen.c (ask_keysize): Use 768 for the minimal value for DSA in
9144 export mode. Improve readability.
9146 2016-01-05 NIIBE Yutaka <gniibe@fsij.org>
9148 agent: Fix RSA verification for card.
9149 + commit ff3b607fc879b70665c187500022cc63e2a0cd86
9150 * agent/pksign.c (agent_pksign_do): Use S-exp of public key, instead
9153 2016-01-04 Neal H. Walfield <neal@g10code.com>
9155 gpg: Fix double free.
9156 + commit 575c15a090913d86cf8d75b2bc4471e371f234b9
9157 * g10/getkey.c (get_pubkeys): Fix double free.
9159 2015-12-24 NIIBE Yutaka <gniibe@fsij.org>
9161 agent: IMPORT_KEY with --force option fix.
9162 + commit 79b51bb8727bd3485229ac8ff5987558156d5d83
9163 * agent/cvt-openpgp.c (convert_from_openpgp_main): Add an option not
9164 to check existing key.
9165 (convert_from_openpgp): Ditto.
9166 (convert_from_openpgp_native): Call convert_from_openpgp_main with
9168 * agent/command.c (cmd_import_key): Call with dontcare_exist=force.
9170 g10: Use --force when importing key for bkuptocard.
9171 + commit 5ca57f1a697e875bae5a5c73f1a580c42ca75343
9172 * g10/call-agent.c (agent_import_key): Add an argument FORCE.
9173 * g10/import.c (transfer_secret_keys): Likewise.
9174 (import_secret_one): Call transfer_secret_keys with FORCE=0.
9175 * g10/keyedit.c (keyedit_menu): Call with FORCE=1.
9177 g10: Remove subcommand checkbkupkey for --key-edit.
9178 + commit 44aee35e69540510617aea4b886ef845590960fe
9179 * g10/keyedit.c (keyedit_menu): Remove cmdCHECKBKUPKEY support.
9181 g10: Allow relative path for specifying the file for bkuptocard.
9182 + commit ee433d2b00c93b5a4e4ed54b9fb5806361df1b71
9183 * g10/keyedit.c (keyedit_menu): Assume the file is under GNUPGHOME.
9184 Also support tilda expansion.
9186 g10: fix regression of bkuptocard subcommand in --edit-key.
9187 + commit 40959add1ba0efc1f4aa87fa075fa42423eff73c
9188 * g10/keyedit.c (keyedit_menu): Call transfer_secret_keys.
9189 * g10/import.c (transfer_secret_keys): Make it global function.
9192 agent: Support --force option for IMPORT_KEY.
9193 + commit e684c634df814b12d399dcdc375c35d3e9a137af
9194 * agent/command.c (cmd_keywrap_key): New option --force.
9196 2015-12-23 Werner Koch <wk@gnupg.org>
9198 gpg: Rename struct pubkey to pukey_s and add pubkey_t.
9199 + commit a9cbdcfd9c364557787f4a173cc59f14c067946e
9200 * g10/keydb.h (struct pubkey): Rename to pubkey_s.
9201 (pubkey_t): New. Change all struct pubkey_s to use this type.
9202 * g10/getkey.c (get_pubkeys): Rename arg keys to r_keys.
9204 gpg: Simplify status message code from commit b30c15bf.
9205 + commit 363ed2e892adc97fae97111bb56b64f9f809e8d5
9206 * g10/keygen.c (card_write_key_to_backup_file): Simplify by using
9209 gpg: Add standard free() semantic to pubkey_free.
9210 + commit 04c9cddda95f2a8ca5c0cf10bb3dd6accf56cf45
9211 * g10/getkey.c (pubkey_free): Check for NULL arg.
9213 gpg: Fix use of assert from commit dc417bf0.
9214 + commit ef7b7e91600f35b4d682a6267001a8d30f0fa49f
9215 * g10/keydb.c (keydb_update_keyblock): De-ref after the assert. Use
9218 gpg: Do not translate debug output.
9219 + commit b0c9867fb74d5a00335e6606d5bdcc5342ce26cd
9220 * g10/getkey.c (parse_def_secret_key): Do not make strings passed to
9221 log_debug translatable.
9223 2015-12-23 NIIBE Yutaka <gniibe@fsij.org>
9225 scd: Fix commit b30c15bf (again).
9226 + commit aecf1a3c57ca8bf8050a3743b62fe142ccf9eb22
9227 * g10/keygen.c (do_generate_keypair): Clear the variable S.
9229 2015-12-22 Neal H. Walfield <neal@g10code.com>
9232 + commit 5c759924fb92b6de7ab3baed7871e5114ebd2505
9233 * g10/keygen.c (card_write_key_to_backup_file): Change n to a size_t.
9235 gpg: Fix error message.
9236 + commit 4654384fe7a4dcee113dacf27c398b13dea5d0be
9237 * g10/getkey.c (parse_def_secret_key): Fix error message.
9239 gpg: Don't check for ambiguous keys.
9240 + commit 7195b94345b0bb937477dc47fc5ec27fb108a099
9241 * g10/gpg.c (struct result): Move from here...
9242 * g10/keydb.h (struct pubkey): ... to here. Update users.
9243 * g10/gpg.c (check_user_ids): Move from here...
9244 * g10/getkey.c (get_pubkeys): ... to here. Update users. Use
9245 get_pubkey_byname to look up the keys (this also prunes invalid keys).
9246 (pubkey_free): New function.
9247 (pubkeys_free): New function.
9248 * g10/gpg.c (main): Don't check for ambiguous key specifications.
9250 gpg: Lazily evaluate --default-key.
9251 + commit dc52995d85048ed12ae8b9f330e9ca41a4030aae
9252 * g10/gpg.c (main): If --encrypt-to-default-key is specified, don't
9253 add --default-key's value to REMUSR here...
9254 * g10/pkclist.c (build_pk_list): ... do it here.
9255 * tests/openpgp/Makefile.am (TESTS): Add default-key.test.
9256 * tests/openpgp/default-key.test: New file.
9258 gpg: Remove unused parameter.
9259 + commit ffe0b7a6dd6bfaec62f81f511b3caf08978bb269
9260 * g10/pkclist.c (build_pk_list): Remove parameter use, which is always
9261 called set to PUBKEY_USAGE_ENC. Update callers.
9263 gpg: Improve check for ambiguous keys.
9264 + commit 4103850c2e51274984f69443dee34295cbb8c282
9265 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
9266 encryption-only keys when a signing key is needed and vice-versa.
9268 gpg: Fix TOCTTOU when updating keyblocks.
9269 + commit dc417bf0c555a7416d0aedde6645fd1087660f92
9270 * g10/keydb.c (keydb_update_keyblock): Don't replace the record at the
9271 current offset. After taking the lock, extract the fingerprint from
9272 the keyblock, find it and then replace it.
9274 Only add the user supplied CFLAGS after running any autoconf tests.
9275 + commit 02eb9fc9d5863abcfed6af704e618f8cac7cc2e8
9276 * configure.ac: Only add the user supplied CFLAGS after running any
9279 gpg: Suppress a warning.
9280 + commit 1cceba163b17b5e9fd7c89e5b40e3d7e1cffc885
9281 * dirmngr/dns-stuff.c (enable_dns_tormode): Reference new_circuit to
9282 avoid a warning when ADNS is not available.
9284 gpg: Remove dead code.
9285 + commit 4143cc1c3783c54a6f733f08a4739e4e5fb0c8b3
9286 * kbx/keybox-defs.h (struct keybox_found_s): Remove unused fields
9287 offset and n_packets.
9289 gpg: Display the key that is invalid, not the search description.
9290 + commit 7fe4be0416cdc9269011bc4213b8a22d6ced295c
9291 * g10/getkey.c (parse_def_secret_key): Display the key that is
9292 invalid, not the search description.
9294 gpg: Mark more options as coming from the config file (when this holds)
9295 + commit 478ca6c75bbf529f95974224dfb7d71bd5860a96
9296 * g10/gpg.c (main): When --default-key or --encrypt-to-default-key is
9297 taken from the config file, note this.
9299 gpg: Use enums instead of defines.
9300 + commit ee8a8ec1cf4605e5af427f9c8b01b3609c82cbe7
9301 * g10/keydb.h (PK_LIST_ENCRYPT_TO): Change from a macro to an enum.
9302 (PK_LIST_HIDDEN): Likewise.
9303 (PK_LIST_CONFIG): Likewise.
9304 (PK_LIST_SHIFT): Likewise.n
9306 2015-12-21 NIIBE Yutaka <gniibe@fsij.org>
9308 po: Update Japanese translation.
9309 + commit d8392299f311f8cfcf8bc02679dd3ae7ef8cc6d7
9312 g10: clean up of headers for card.
9313 + commit ab9a9bce77d014159c68460f5a7c263fb72f3c1c
9314 * g10/main.h (save_unprotected_key_to_card): Remove.
9315 * g10/options.h (ctapi_driver, pcsc_driver, disable_ccid): Remove.
9317 2015-12-21 Werner Koch <wk@gnupg.org>
9319 common: New file fwddecl.h.
9320 + commit 98f9e14323bf806f674b3cc259e19ef6219b4378
9321 * common/util.h (server_control_s, ctrl_t): Move to ...
9322 * common/fwddecl.h: New file.
9323 * common/call-gpg.h: Replace typedef by fwddecl.h. Change include
9324 protection macro name.
9325 * common/Makefile.am (common_sources): Add fwddecl.h.
9327 2015-12-18 Werner Koch <wk@gnupg.org>
9329 build: Add required macro for pkg-config.
9330 + commit af142854a73567836a0ca44ad62900469c23d531
9331 * configure.ac (PKG_PROG_PKG_CONFIG): New.
9333 2015-12-18 NIIBE Yutaka <gniibe@fsij.org>
9335 g10: Remove deprecated internal functions.
9336 + commit 72eaff1aa610f3c89a755f212760157e1932d847
9337 * g10/keygen.c (do_ask_passphrase, generate_raw_key)
9338 (gen_card_key_with_backup, save_unprotected_key_to_card): Remove.
9340 g10: Fix a regression for generating card key with backup.
9341 + commit b30c15bf7c5336c4abb1f9dcd974cd77ba6c61a7
9342 * g10/main.h (receive_seckey_from_agent): Declare.
9343 * g10/keygen.c (card_write_key_to_backup_file): New.
9344 (card_store_key_with_backup): New.
9345 (do_generate_keypair): Create a key on host for encryption key when
9346 backup is requested. Then, call card_store_key_with_backup.
9348 2015-12-17 NIIBE Yutaka <gniibe@fsij.org>
9350 g10: factor out a function for secret key retrieval.
9351 + commit e644aa7f5943174e3f7ba9408af71531fd125a0b
9352 * g10/export.c (receive_seckey_from_agent): New.
9353 (do_export_stream): Use it.
9355 2015-12-16 Neal H. Walfield <neal@g10code.com>
9357 gpg: When checking for ambiguous keys, ignore invalid keys.
9358 + commit fc010b6c7fe14e609734e448775fa384421bdef1
9359 * g10/gpg.c (check_user_ids): When checking for ambiguous keys, ignore
9360 disabled, revoked and expired keys (if appropriate for the provided
9363 2015-12-15 Werner Koch <wk@gnupg.org>
9365 common: Use default_errsource for call-gpg and exectool.
9366 + commit 4ffe44c5874ed655d82adfa7a85439fab91cde03
9367 * common/call-gpg.c (my_error_from_syserror, my_error_from_errno): New.
9369 * common/exectool.c (my_error_from_syserror): New. Use these
9372 gpg: Reduce number of strings to translate.
9373 + commit 345ec7323d643528d2f904765708b5ecfe51f57b
9374 * g10/getkey.c (parse_def_secret_key): Do not make debug messages
9375 translatable. Make use of print_reported_error.
9377 gpg: New function to printed a detailed error code.
9378 + commit 2ea1aebc924c3f0b2269f83cb1b80c75d9fa069c
9379 * g10/misc.c (print_reported_error): New.
9381 2015-12-15 Neal H. Walfield <neal@g10code.com>
9383 gpg: Improve the keyblock cache's transparency.
9384 + commit f369efd6712148dc7ed40dba6d1ff5b0e169431a
9385 * kbx/keybox-search.c (keybox_seek): New function.
9386 * g10/keydb.c (keydb_search): When reading from the cache, seek to
9387 just after the cached record.
9389 gpg: Improve the keyblock cache's transparency.
9390 + commit 2e4e10c1dcd8dfeafec51f44ebf26acfeb770c41
9391 * kbx/keybox-search.c (keybox_offset): New function.
9392 * g10/keydb.c (struct keyblock_cache): Add fields resource and offset.
9393 (keyblock_cache_clear): Reset HD->KEYBLOCK_CACHE.RESOURCE and
9394 HD->KEYBLOCK_CACHE.OFFSET.
9395 (keydb_search): Don't use the cached result if it comes before the
9396 current file position. When caching an entry, also record the
9397 position at which it was found.
9399 gpg: Use more descriptive names.
9400 + commit 0ea186db645da2b51a7e71f46793d447f2de5e3d
9401 * g10/keyring.c (KR_NAME): Rename this...
9402 (KR_RESOURCE): ... to this. Update users.
9403 (struct keyring_name): Rename this...
9404 (struct keyring_resource): ... to this. Update users.
9405 (struct off_item): Rename this...
9406 (struct key_present): ... to this. Update users.
9407 (OffsetHashTable): Rename this...
9408 (key_present_hash_t): ... to this. Update users.
9409 (kr_offtbl): Rename this...
9410 (key_present_hash): ... to this. Update users.
9411 (kr_offtbl_ready): Rename this...
9412 (key_present_hash_ready): ... to this. Update users.
9413 (KEY_PRESENT_HASH_BUCKETS): New define. Replace use of literals
9415 (new_offset_item): Rename this...
9416 (key_present_value_new): ... to this. Update users.
9417 (release_offset_items): Drop dead code.
9418 (new_offset_hash_table): Rename this...
9419 (key_present_hash_new): ... to this. Update users.
9420 (release_offset_hash_table): Drop dead code.
9421 (lookup_offset_hash_table): Rename this...
9422 (key_present_hash_lookup): ... to this. Update users.
9423 (update_offset_hash_table): Rename this...
9424 (key_present_hash_update): ... to this. Drop unused parameter off.
9426 (update_offset_hash_table_from_kb): Rename this...
9427 (key_present_hash_update_from_kb): ... to this. Drop unused parameter
9430 2015-12-15 NIIBE Yutaka <gniibe@fsij.org>
9432 sm: Handle gcry_pk_encrypt return value.
9433 + commit 4ee881bff4c8fdfa4b3b7a4b7afab611471e97f1
9434 * sm/encrypt.c (encrypt_dek): Don't ignore failure of gcry_pk_encrypt.
9436 2015-12-14 Werner Koch <wk@gnupg.org>
9438 common: Change license of isascii.c to all-premissive,
9439 + commit 7baca033070e7811f75e2021100adf8e6a48907f
9440 * common/isascii.c: Change.
9442 common: Change license of some modules to LGPLv3+/GPLv2+.
9443 + commit 7d129a7391115ff1d6a3541078a37a630ab7819f
9444 * common/status.c: Change from GPLv3 to LGPLv3+/GPLv2+.
9445 * common/status.h: Ditto.
9446 * common/yesno.c: Ditto.
9447 * common/common-defs.h: Ditto.
9448 * common/gettime.h: Ditto.
9449 * common/keyserver.h: Ditto.
9451 common: Change license for exectool to LGPLv3+/GPLv2+.
9452 + commit 467e18b74b4790dcbdf3c816206d2fbaf170a12a
9453 * common/exectool.c, common/exectool.h: Change license.
9455 common: Rename sh-exectool to exectool.
9456 + commit d80e1bc430bf64debdb6b08f0b7e5c42836781fa
9457 * common/sh-exectool.c: Rename to exectool.c.
9458 * common/sh-exectool.h: Rename to exectool.h.
9459 * common/Makefile.am (common_sources): Adjust for rename.
9460 * common/exectool.c (sh_exec_tool_stream): Rename to
9461 gnupg_exec-tool-stream.
9462 (sh_exec_tool): Rename to gnupg_exec_tool.
9463 * tools/gpgtar-create.c (gpgtar_create): Adjust for changes.
9464 * tools/gpgtar-extract.c: Adjust for changes.
9465 * tools/gpgtar-list.c: Adjust for changes.
9467 2015-12-14 Damien Goutte-Gattat <dgouttegattat@incenp.org>
9469 gpg: Print ownertrust in TOFU+PGP trust model.
9470 + commit f5aa51aaacfe13ab9528aa9b88d8ce8eb61362fc
9471 * g10/keyedit.c: Print ownertrust in TOFU+PGP trust model.
9473 2015-12-14 Neal H. Walfield <neal@g10code.com>
9475 gpg: Fix --default-key checks.
9476 + commit e573e6188dada4d70f6897aa2fda3c3af8c50441
9477 * g10/getkey.c (parse_def_secret_key): Don't just check if a secret
9478 key is available for the public key, also consider subkeys. Also
9479 check that the key has the signing capability, is not revoked, is not
9480 expired and is not disabled. Print a warning if there was a least one
9481 value passed to --default-key and all were ignored.
9483 2015-12-14 NIIBE Yutaka <gniibe@fsij.org>
9485 scd: Fix regression for generating RSA keys on card.
9486 + commit d40975cbe8ff86fcc4a1b4963fdffc66ddee85ce
9487 * scd/app-openpgp.c (do_genkey): Strip leading zeros for fingerprint
9490 2015-12-12 Werner Koch <wk@gnupg.org>
9492 gpg: Use a regular type instead of a void* for import stats.
9493 + commit 4d3395ef1fcde0b8c454c09956863959d590ede6
9494 * g10/import.c (struct stats_s): Rename to import_stats_s. Change all
9496 * g10/main.h (import_stats_t): New. Change fucntions to use this
9497 instead of a void pointer.
9499 Remove replacements for libgpg-error < 1.21.
9500 + commit f0ae40b0c901e5f5c04c6ed5b2ab96ab7340b2bd
9501 * common/util.h: Remove replacement macros for libgpg-error<1.21.
9502 * common/types.h: Ditto.
9503 * common/mischelp.h: Ditto.
9504 * common/t-mapstrings.c: Include t-support.h before stringhelp.h
9505 * common/t-stringhelp.c: Ditto.
9506 * common/t-support.h: Always include gpg-error.h.
9507 * kbx/keybox-search.c: Do not include stringhelp.h so that keybox-defs
9510 2015-12-11 Neal H. Walfield <neal@g10code.com>
9512 gpg: Fix buffer overflow.
9513 + commit 1605e34fc365edd473aac15c9b4e5aadc1d95cf5
9514 * g10/keydb.c (keydb_search_desc_dump): Fix buffer overflow.
9516 2015-12-11 Justus Winter <justus@g10code.com>
9518 agent: Improve error handling.
9519 + commit 25f0f053cd306200a6211b5cf397838a59835ee7
9520 * agent/pksign.c (agent_pksign_do): Improve error handling.
9522 Fix required libgpg-error version.
9523 + commit d6e01493cad6ff32f356185c7a2d2b5c2b86a937
9524 * configure.ac (NEED_GPG_ERROR_VERSION): We need version 1.21 for the
9527 2015-12-11 Neal H. Walfield <neal@g10code.com>
9529 gpg: Don't error out if a key occurs multiple times in the keyring.
9530 + commit 6dc37c5fb60acbfd5ba2ab979852383eac8944e0
9531 * g10/gpg.c (check_user_ids): Don't error out if a key occurs multiple
9532 times in the keyring. Instead, print a warning. When printing out
9533 fingerprint prints, use format_hexfingerprint to format them.
9535 2015-12-10 Daniel Hoffend <dh@dotlan.net>
9537 scd: Fix removal of unplugged usb readers on Windows.
9538 + commit d1a97585c5e73fbc7d4cf90e38f76ffc5aea305f
9539 * scd/apdu.c (pcsc_error_to_sw): map PCSC_E_NO_SERVICE and
9540 PCSC_E_SERVICE_STOPPED to the internal SW_HOST_NO_READER error code.
9542 2015-12-07 Justus Winter <justus@g10code.com>
9544 tests: Add some more gpgtar tests.
9545 + commit 1c8eae95a8b3b89bc0f49cb5f4938101634583dc
9546 * tests/openpgp/gpgtar.test: Add more tests.
9548 dirmngr: Initialize http status code.
9549 + commit 71726b627dcff015dc12568021b31d8ccede788a
9550 * dirmngr/ks-action.c (ks_action_search): Initialize 'http_status' as
9551 it is unused if LDAP is used to search for keys.
9553 2015-12-04 Daiki Ueno <ueno@gnu.org>
9555 gpg: Write ERROR status on delete-key cancellation.
9556 + commit b5cd68852d0e3485c9e13a8ddb70f05f36a65cb9
9557 * g10/delkey.c (do_delete_key): Write ERROR status code with the error
9558 location "delete_key.secret", when the user cancelled the operation on
9561 2015-12-04 Justus Winter <justus@g10code.com>
9563 dirmngr: Stricter handling of http error codes.
9564 + commit 6d64ef869dfbcb7aaa802b80ed648393147e40d8
9565 * dirmngr/ks-action.c (ks_action_search): Only retry if the keyserver
9566 responded with a '404 Not Found'.
9567 * dirmngr/ks-engine-hkp.c (send_request): Return http status code.
9568 (ks_hkp_search): Likewise.
9569 (ks_hkp_{get,put}): Adapt call to 'send_request'.
9570 * dirmngr/ks-engine.h (ks_hkp_search): Update prototype.
9572 dirmngr: Really search all keyservers for patterns.
9573 + commit 6ac57a482f7ae02db1bee4e4b861288fc6905adc
9574 * dirmngr/ks-action.c (ks_action_search): Search all configured
9575 keyservers for the given patterns.
9577 dirmngr: Handle http status '501 Not Implemented'.
9578 + commit a8308ba5231682ce7c7d591a17e7e940fbd63189
9579 * dirmngr/ks-engine-hkp.c (send_request): Handle status 501 and return
9580 GPG_ERR_NOT_IMPLEMENTED.
9582 tools/gpgtar: Implement symmetric encryption.
9583 + commit 582e684a48eb4f3716cecf7dc73eb93046efcfad
9584 * tests/openpgp/gpgtar.test: Add test case.
9585 * tools/gpgtar-create.c (gpgtar_create): Pass '--symmetric' flag to
9587 * tools/gpgtar.c (parse_arguments): We do handle the argument now.
9589 tools/gpgtar: Implement signing.
9590 + commit 45c814f348c89acd8d21d0607ffcf68e5c5c399e
9591 * tests/openpgp/gpgtar.test: Test signing.
9592 * tools/gpgtar-create.c (gpgtar_create): Add 'sign' option, add the
9593 appropriate gpg arguments to implement signing and selecting the local
9595 * tools/gpgtar.c (parse_options): We do handle '--local-user' now.
9596 (main): Handle signing, encrypting, and doing both when creating an
9598 * tools/gpgtar.h (gpgtar_create): Update prototype.
9600 tools/gpgtar: Use the new exectool helper.
9601 + commit 0c0dafd8e89bb702e856c661c1561e10cdcaf37f
9602 * tools/Makefile.am: gpgtar now requires neither npth nor libassuan.
9603 * tools/gpgtar-create.c (gpgtar_create): Use the new 'sh-exectool'
9605 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
9606 * tools/gpgtar-list.c (gpgtar_list): Likewise.
9607 * tools/gpgtar.c (main): Set default gpg program. Drop the
9608 initialization of npth and libassuan.
9610 common: Add a stream interface to 'sh-exectool'.
9611 + commit a81aca6e1c2a4529d416d1989f15d7338d2ee81e
9612 * common/sh-exectool.c (struct copy_buffer): Add infrastructure for
9613 copying between streams.
9614 (copy_buffer_{init,shred,do_copy,flush}): New functions.
9615 (sh_exec_tool_stream): Rework 'sh_exec_tool' to operate on streams.
9616 (nop_free): New function.
9617 (sh_exec_tool): Express this in terms of 'sh_exec_tool_stream'.
9618 * common/sh-exectool.h (sh_exec_tool_stream): New prototype.
9620 common: Add header file and build the new code.
9621 + commit d955cb5e0700c6d2b6b26cb210b5a176d22d4235
9622 * common/Makefile.am (common_sources): Add new files.
9623 * common/sh-exectool.h: New file.
9625 2015-12-04 Werner Koch <wk@gnupg.org>
9627 common: Add code to execute a helper.
9628 + commit 2ae07f826aa551db8adf714158fce962790a6b54
9629 * common/sh-exectool.c: New file.
9632 + commit 9fadfdb3109f7ea42aaaa9d745b64c6c90cb8233
9635 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
9637 po: Japanese translation.
9638 + commit 762fcc027b0b4cc88c1f633804de619273d6a8b9
9641 2015-12-04 Werner Koch <wk@gnupg.org>
9643 speedo,w32: Improve installer.
9644 + commit 0fe3614d9afe42ecf80bbc932366ceeaba0a0ecc
9645 * build-aux/speedo/w32/inst.nsi (SEC_gnupg): Install dirmngr.conf and
9647 (un.gnupglast): Stop dirmngr.
9649 gpg: Do not pre-check keys given on the command line.
9650 + commit 28311d1fa56bfbd801103a8475597459132874f4
9651 * g10/keydb.h (PK_LIST_ENCRYPT_TO, PK_LIST_HIDDEN, PK_LIST_CONFIG)
9652 (PK_LIST_SHIFT): New.
9653 * g10/pkclist.c (build_pk_list): Use them here.
9654 * g10/gpg.c (check_user_ids, main): Ditto.
9656 * g10/gpg.c (main): Set PK_LIST_CONFIG for REMUSR and LOCUSR.
9657 (check_user_ids): Skip check for command line specified options.
9659 dirmngr: Add command to print the resolver version.
9660 + commit 4ff2cae7dee36ffee854c5f05c3e8ee9eb0308dd
9661 * dirmngr/server.c (cmd_getinfo): Add sub-command "dnsinfo".
9663 gpg: Allow "help" as value for --tofu-policy.
9664 + commit 59f6192cb766612ad215bc6a3af13d5b137139e4
9665 * g10/gpg.c (parse_tofu_policy): Add keyword "help".
9666 (parse_tofu_db_format): Ditto.
9668 Do not translate messages printed with log_debug.
9669 + commit 218a52787a87be6b7481a39f87d212d6ef594e97
9670 * common/asshelp.c (start_new_gpg_agent): Do not i18n string.
9671 (start_new_dirmngr): Ditto.
9672 * g10/mainproc.c (proc_encrypted): Ditto. Print only if debug is
9675 2015-12-04 NIIBE Yutaka <gniibe@fsij.org>
9677 scd: Fix for removing the prefix.
9678 + commit f03976f1101f539a2782cd9e87d640fc32a022db
9679 * scd/app-openopg.c (do_decipher): Fix the condition.
9681 scd: Simplify saving application context.
9682 + commit 9639af5f16a7ed908cbce2415330b9fcd88edc90
9683 * scd/app.c (lock_table): Remove LAST_APP field.
9684 (lock_reader, app_dump_state, application_notify_card_reset)
9685 (release_application): Follow the change.
9686 (check_conflict): New.
9687 (check_application_conflict): Lock the slot and call check_conflict.
9688 (select_application): Call check_conflict and not use LAST_APP.
9690 scd: More fix for Curve25519 prefix handling.
9691 + commit f747adfa21551e083bc947540c64c94a96dcc059
9692 * scd/app-openpgp.c (do_decipher): Handle trancated cipher text.
9693 Also fix xfree bug introduced.
9695 2015-12-03 Werner Koch <wk@gnupg.org>
9697 scd: Another fix for Curve25519 prefix handling.
9698 + commit e28f2e7a2f265af8bbdb4979e9679b4396dccdd5
9699 * scd/app-openpgp.c (do_decipher): Check 0x02 also for 16+1 byte long
9701 (do_decipher): Fix integer arithmetic in void pointer.
9702 (do_decipher): Add missing memcpy.
9704 build: Avoid dependecy problems in "make distcheck".
9705 + commit 0f61599ed0bd1cc6842067d040bb58ec0a451715
9706 * doc/Makefile.am (gnupg.texi): Depend on defs.inc.
9708 build: Change how caller provided CFLAGS are used by configure.
9709 + commit 4e9957250eee3521dc979912a4818e58ffddc5b8
9710 * configure.ac: Append instead of prepend caller provided CFLAGS.
9712 gpg: Add variant of 'key "%s" not found: %s' error message.
9713 + commit 5e2c5e9ec5b75fae886e1294adbdb7ad2ac12827
9714 * g10/gpg.c (check_user_ids): Change error message.
9715 * g10/delkey.c (do_delete_key): Ditto.
9717 gpg: Make keyidlist more robust in case of errors.
9718 + commit 50a568e7380752454c029eac2b57d8803b1cb287
9719 * g10/keyserver.c (keyidlist): Clear *KLIST on error.
9721 gpg: Take care of keydb_new returning NULL.
9722 + commit a28ac99efead8be73ea1704abe1611ccc4811c54
9723 * g10/keydb.c (keydb_new): Print an error message if needed. Also use
9724 xtrycalloc because we return an error anyway.
9725 * g10/delkey.c (do_delete_key): Handle error retruned by keydb_new.
9726 * g10/export.c (do_export_stream): Ditto.
9727 * g10/getkey.c (get_pubkey): Ditto.
9728 (get_pubkey_fast): Ditto.
9729 (get_pubkeyblock): Ditto.
9730 (get_seckey): Ditto.
9731 (key_byname): Ditto.
9732 (get_pubkey_byfprint): Ditto.
9733 (get_pubkey_byfprint_fast): Ditto.
9734 (parse_def_secret_key): Ditto.
9735 (have_secret_key_with_kid): Ditto.
9736 * g10/import.c (import_one): Ditto.
9737 (import_revoke_cert): Ditto.
9738 * g10/keyedit.c (keyedit_quick_adduid): Ditto.
9739 * g10/keygen.c (quick_generate_keypair): Ditto.
9740 (do_generate_keypair): Ditto.
9741 * g10/trustdb.c (validate_keys): Ditto.
9742 * g10/keyserver.c (keyidlist): Ditto.
9743 * g10/revoke.c (gen_desig_revoke): Ditto.
9744 (gen_revoke): Ditto.
9745 * g10/gpg.c (check_user_ids): Ditto.
9746 (main): Do not print an error message for keydb_new error.
9747 * g10/keylist.c (list_all): Use actual error code returned by
9750 * g10/t-keydb-get-keyblock.c (do_test): Abort on keydb_new error.
9751 * g10/t-keydb.c (do_test): Ditto.
9753 * g10/keyring.c (keyring_new): Actually return an error so that the
9754 existing keydb_new error checking makes sense for a keyring resource.
9755 (keyring_rebuild_cache): Take care of keyring_new returning an error.
9757 gpg: Change some error messages.
9758 + commit 9fcc047d921bde95b6807325b7fd2b697e89907f
9759 * g10/getkey.c (parse_def_secret_key): Change error message. Replace
9760 log_debug by log_info.
9761 * g10/gpg.c (check_user_ids): Make function static. Change error
9763 (main): Change error messages.
9764 * g10/revoke.c (gen_revoke): Ditto.
9766 2015-12-03 NIIBE Yutaka <gniibe@fsij.org>
9768 scd: Fix "Conflicting usage" bug.
9769 + commit f42c50dbf00c2e6298ca6830cbe6d36805fa54a3
9770 * scd/apdu.c (apdu_close_reader): Call CLOSE_READER method even if we
9771 got an error from apdu_disconnect.
9772 * scd/app-common.h (no_reuse): Remove.
9773 * scd/app.c (application_notify_card_reset): Deallocate APP here.
9774 (select_application, release_application): Don't use NO_REUSE.
9776 scd: Fix for Curve25519 prefix handling.
9777 + commit 11b2691eddc42e91651e4f95dd2731255a3e9211
9778 * scd/app-openpgp.c (do_decipher): More condition for AES decipher.
9779 Handle the prefix in cipher text. Always add the prefix in result.
9781 2015-12-03 Neal H. Walfield <neal@g10code.com>
9783 gpg: Use the matching key if the search description is exact.
9784 + commit cedbd4709eed6fead9d1b271f96860c00547c77c
9785 * g10/gpg.c (check_user_ids): If the search description is for an
9786 exact match (a keyid or fingerprint that ends in '!'), then use the
9787 matching key, not the primary key.
9788 * tests/openpgp/Makefile.am (TESTS): Add use-exact-key.test.
9789 (priv_keys): Add privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc,
9790 privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc,
9791 privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc,
9792 privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc and
9793 privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc.
9795 samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc.
9796 * tests/openpgp/privkeys/00FE67F28A52A8AA08FFAED20AF832DA916D1985.asc:
9798 * tests/openpgp/privkeys/1DF48228FEFF3EC2481B106E0ACA8C465C662CC5.asc:
9800 * tests/openpgp/privkeys/A2832820DC9F40751BDCD375BB0945BA33EC6B4C.asc:
9802 * tests/openpgp/privkeys/ADE710D74409777B7729A7653373D820F67892E0.asc:
9804 * tests/openpgp/privkeys/CEFC51AF91F68A2904FBFF62C4F075A4785B803F.asc:
9806 * tests/openpgp/samplekeys/E657FB607BB4F21C90BB6651BC067AF28BC90111.asc:
9808 * tests/openpgp/use-exact-key.test: New file.
9809 * tests/openpgp/version.test: Install the new private keys.
9811 2015-12-02 Werner Koch <wk@gnupg.org>
9813 build: Require at least Libassuan 2.4.1.
9814 + commit 69db3285e4612ad24462149a4d64cc32c090a491
9815 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.4.1.
9816 * agent/gpg-agent.c (create_server_socket): Remove check for
9817 libassuan >= 2.3.0 and >= 2.1.4.
9818 (main): Remove check for libassuan >= 2.1.4.
9819 * scd/scdaemon.c (create_server_socket): Remove check for
9821 * dirmngr/dirmngr.c (set_tor_mode): Remove check for
9823 * dirmngr/http.c (http_raw_connect, send_request): Remove checks for
9826 2015-12-02 Neal H. Walfield <neal@g10code.com>
9828 gpg: Improve documentation.
9829 + commit 28195f8d27aa0fc9daf5b74fb24de87c36e04739
9830 * g10/tofu.c (initdb): Improve documentation.
9832 gpg: Fix type mismatch resulting in a buffer overflow.
9833 + commit c73d75103cbd34975e2bd28e9924caee05eaf829
9834 * g10/tofu.c (record_binding): Change policy_old's type from an enum
9835 tofu_policy to a long: this variable is passed by reference and a long
9838 2015-12-02 Werner Koch <wk@gnupg.org>
9840 dirmngr: Switch to an onion address if Tor is running.
9841 + commit 28e2513721ff0cec920564d4087f3600cce8672e
9842 * dirmngr/dirmngr.h (opt): Turn field 'keyserver' into an strlist.
9843 * dirmngr/dirmngr.c (parse_rereadable_options): Allow multiple
9844 --keyserver options.
9845 * dirmngr/server.c (server_local_s): Add field 'tor_state'.
9846 (release_uri_item_list): New.
9847 (release_ctrl_keyservers): Use it.
9848 (start_command_handler): Release list of keyservers.
9849 (is_tor_running): New.
9850 (cmd_getinfo): Re-implement "tor" subcommand using new fucntion.
9851 (ensure_keyserver): Rewrite.
9852 * g10/dirmngr-conf.skel: Add two keyserver options.
9854 http: Enhance parser to detect .onion addresses.
9855 + commit 17ac843871d5f350f26edff0187f94ced923f534
9856 * dirmngr/http.h (parsed_uri_s): Add flag 'onion'.
9857 * dirmngr/http.c (do_parse_uri): Set that flag.
9858 * dirmngr/t-http.c (main): Print flags.
9860 2015-12-02 Neal H. Walfield <neal@g10code.com>
9862 common,gpg: Fix processing of search descriptions ending in '!'.
9863 + commit 10cca02c4c70eee993d4df0a1d20ae841992efe9
9864 * g10/gpg.c (check_user_ids): If the search description describes a
9865 keyid or fingerprint and ends in a '!', include the '!' in the
9866 rewritten description.
9867 * common/userids.c (classify_user_id): Accept keyids and fingerprints
9870 2015-12-01 Justus Winter <justus@g10code.com>
9872 dirmngr: Improve error handling.
9873 + commit 9c34711539fc2c34aea8da0fd49ae6aa28991518
9874 * dirmngr/dns-stuff.c (getsrv): Avoid looking at 'header' before
9875 checking for errors, but silently ignore errors when looking up SRV
9878 2015-12-01 Werner Koch <wk@gnupg.org>
9880 build: Let configure show the the status of Tor support.
9881 + commit 3be12d1e1b8334fb2bba307ec9efbc004f1dbf8d
9882 * configure.ac (show_tor_support): New
9884 2015-11-30 Werner Koch <wk@gnupg.org>
9886 doc: Make make distcheck work again.
9887 + commit 4ecb5db804003c10c57bdc0dc7f1d9649c5ba6f8
9888 * doc/Makefile.am (DISTCLEANFILES): Add gpgkey2ssh.1
9890 yat2m: Add keyword @url.
9891 + commit b4756a54a55fcd51717c149e19191a2eeaa6a919
9892 * doc/yat2m.c (proc_texi_cmd): Add keyword @url.
9894 doc: Build man pages with the same date as the info files.
9895 + commit 081c902f16a2f251df4593f090b3978dfa473a26
9896 * doc/Makefile.am (yat2m-stamp): Use option --date.
9898 yat2m: New option --date.
9899 + commit 75eb071354d1f862bac09c56c8ab81dae8883270
9900 * doc/yat2m.c (opt_date): new.
9901 (isodatestring): Use it if set.
9902 (main): New option --date.
9904 2015-11-27 Werner Koch <wk@gnupg.org>
9906 gpg: Avoid extra translation strings.
9907 + commit 686f31c3d5aee0d2825265869ae92ca95cdcabae
9908 * g10/keyedit.c (menu_expire): Use only one prompt.
9910 kbx: Include gpg-error prior to mischelp.h.
9911 + commit 436a154ea85e4dffbde7c3b316fbfca1b066aa2a
9912 * kbx/keybox-init.c: Change order of includes.
9914 gpg,w32: Fix a format string error.
9915 + commit 7c856f99144b84ac30e0c9a192f09dc36d93190a
9916 * g10/keyring.c (keyring_search): Fix format string for off_t.
9918 Silence compiler warnings related to not using assuan_fd_t.
9919 + commit 501436ab0f9d8e7d56b2f5e344006be5f5a3c653
9920 * common/call-gpg.c (start_gpg): Use assuan_fd_t. Note that the
9921 declaration was already fixed by a previous change.
9922 * dirmngr/server.c (cmd_getinfo): Use assuan_fd_t.
9924 Avoid incompatible pointer assignment warnings on Windows.
9925 + commit 64e87083394d38998feab359caac917bcc6139d3
9926 * common/logging.c (fun_writer): Use gpgrt_ssize_t instead of ssize_t.
9927 * dirmngr/server.c (data_line_cookie_write): Ditto.
9928 * sm/certdump.c (format_name_writer): Ditto.
9929 * sm/server.c (data_line_cookie_write): Ditto.
9930 * dirmngr/http.c (cookie_read, cookie_write): Ditto.
9932 dirmngr: Avoid a declarations after statements.
9933 + commit 100f34e869df899a695f5e5ef1b8e092baf91751
9934 * tools/gpgtar.c (parse_arguments): Use a block for a local varibale
9937 dirmngr: Avoid casting away a const from an char**.
9938 + commit 6501741d2c1beb8060198a39a1aa950cb11b386f
9939 * dirmngr/ldap.c (start_cert_fetch_ldap): Do not use pointers from
9942 dirmngr: Allow testing for a running Tor via "getinfo tor".
9943 + commit da5a232199ef93be219e933a7eaf4ccfc6d24d61
9944 * dirmngr/server.c (cmd_getinfo): Print an S line if Tor is not
9947 2015-11-26 Werner Koch <wk@gnupg.org>
9949 g13: Fix commit 1a045b13.
9950 + commit 82f6abb4807c89388052ab442368d9e09fb84aea
9951 * g13/g13.c (main): Use existsing function.
9953 common: Fix off-by-one access in the new format_text.
9954 + commit 61941a984964308b09c7fc1b3438fb99d0b3c917
9955 * common/stringhelp.c (format_text): Use existsing fucntion to trim
9956 trailing spaces. Fix off-by-one access.
9958 dirmngr: Improve output of "getinfo tor".
9959 + commit d226e67856e7197c581dcd2cef0f1e687bee0ac9
9960 * dirmngr/server.c (cmd_getinfo): Print a message along with OK.
9962 dirmngr: Let Libassuan employ nPth wrappers for connect.
9963 + commit f95cff1cc9e7a4d9f6b7c45188ec47e70f9874dc
9964 * dirmngr/http.c (my_unprotect, my_protect): Remove.
9965 (connect_server): Do not use these wrappers.
9967 2015-11-26 Justus Winter <justus@g10code.com>
9969 tools/gpgtar: Add '--dry-run'.
9970 + commit 676b2d7081291f7e47a66755ab07af259fea130b
9971 * tools/gpgtar-extract.c (extract_{regular,directory}): Honor
9973 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
9974 (opts): Add '--dry-run'.
9975 (parse_arguments): Handle '--dry-run'.
9976 * tools/gpgtar.h (opt): Add field 'dry_run'.
9978 tools/gpgtar: Handle '--gpg-args'.
9979 + commit 69a8440f44fa025e33a4cc32d17695c9ac385043
9980 * tools/gpgtar-create.c (gpgtar_create): Use given arguments.
9981 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
9982 * tools/gpgtar-list.c (gpgtar_list): Likewise.
9983 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
9984 (opts): Add 'gpg-args'.
9985 (parse_arguments): Handle arguments.
9986 * tools/gpgtar.h (opt): Add field 'gpg_arguments'.
9987 * tests/openpgp/gpgtar.test: Simplify accordingly.
9989 common: Make the GPG arguments configurable in call-gpg.
9990 + commit 1a045b1324efabe7423a8d00245f01718ed72556
9991 * common/call-gpg.c (start_gpg): Add parameter 'gpg_arguments'.
9992 (_gpg_encrypt, gpg_encrypt_blob, gpg_encrypt_stream): Likewise.
9993 (_gpg_decrypt, gpg_decrypt_blob, gpg_decrypt_stream): Likewise.
9994 * common/call-gpg.h: Adapt prototypes.
9995 * g13/create.c (encrypt_keyblob): Adapt callsite.
9996 * g13/g13-common.h (opt): Add field 'gpg_arguments'.
9997 * g13/g13.c (main): Construct default arguments.
9998 * g13/mount.c (decrypt_keyblob): Adapt callsite.
9999 * tools/gpgtar-create.c (gpgtar_create): Likewise.
10000 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
10001 * tools/gpgtar-list.c (gpgtar_list): Likewise.
10003 tools/gpgtar: Handle '--tar-args' for compatibility with gpg-zip.
10004 + commit 2eb3248058330dd5c37560d9887db5b5266c54fe
10005 * tools/gpgtar.c (enum cmd_and_opt_values): New value.
10006 (opts): Add new group for tar options, rearrange a little, add
10008 (tar_opts): New variable.
10009 (shell_parse_stringlist): New function.
10010 (shell_parse_argv): Likewise.
10011 (parse_arguments): Add option argument, handle '--tar-args'.
10012 (main): Fix invokation of 'parse_arguments'.
10013 * tests/openpgp/gpgtar.test: Simplify decryption.
10015 tools/gpgtar: Rework argument parsing.
10016 + commit 35c0c8b211bc891335e822379b33ea34fbc1f84f
10017 * tools/gpgtar.c (main): Move argument parsing into its own function.
10019 2015-11-25 Justus Winter <justus@g10code.com>
10021 tests: Add tests for gpgtar and gpg-zip.
10022 + commit 556e8c44267fe3b829ca06286e9b5637ca1a6a73
10023 * tests/openpgp/Makefile.am (TESTS): Add new file.
10024 * tests/openpgp/gpgtar.test: New file.
10026 tools/gpgtar: Handle '--directory' argument.
10027 + commit 127aba9a4d6c1aabb4a18a74b16d3bddc6eb5c54
10028 * tools/gpgtar-extract.c (gpgtar_extract): Only generate a directory
10029 name if none is given via arguments.
10030 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
10031 (opts): Add argument.
10032 (main): Parse argument.
10033 * tools/gpgtar.h (opt): New field 'directory'.
10035 tools/gpgtar: Handle '--gpg' argument.
10036 + commit 89e104eb38c3a6896892ff09db11cb1bae2bb0d3
10037 * tools/gpgtar-create.c (gpgtar_create): Use given gpg program.
10038 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
10039 * tools/gpgtar-list.c (gpgtar_list): Likewise.
10040 * tools/gpgtar.c (enum cmd_and_opt_values): New constant.
10041 (opts): Add argument.
10042 (main): Handle argument.
10043 * tools/gpgtar.h (opt): Add field 'gpg_program'.
10045 tools/gpgtar: Improve error handling.
10046 + commit f76fb047c15914ba44dc9423d235484758bcd721
10047 * tools/gpgtar-create.c (gpgtar_create): Return an error code, fix
10049 * tools/gpgtar-extract.c (gpgtar_extract): Likewise.
10050 * tools/gpgtar-list.c (read_header): Return an error code.
10051 (gpgtar_list): Return an error code, fix error handling.
10052 (gpgtar_read_header): Return an error code.
10053 * tools/gpgtar.c: Add missing include.
10054 (main): Print an generic error message if a command failed and no
10055 error has been printed yet.
10056 * tools/gpgtar.h (gpgtar_{create,extract,list,read_header}): Fix the
10057 prototypes accordingly.
10059 tools: Add encryption and decryption support to gpgtar.
10060 + commit 40dbee86f3043aff8a8c2055521e270318e33068
10061 * tools/Makefile.am: Amend CFLAGS and LDADD.
10062 * tools/gpgtar-create.c (gpgtar_create): Add encrypt flag and encrypt
10063 stream if requested.
10064 * tools/gpgtar-extract.c (gpgtar_extract): Likewise for decryption.
10065 * tools/gpgtar-list.c (gpgtar_list): Likewise.
10066 * tools/gpgtar.c (main): Initialize npth and assuan. Parse recipient
10067 and local user, and note which flags are currently ignored. Adapt
10068 calls to gpgtar_list and friends.
10069 (tar_and_encrypt): Drop stub function and prototype.
10070 (decrypt_and_untar): Likewise.
10071 (decrypt_and_list): Likewise.
10072 * tools/gpgtar.h (gpgtar_{create,extract,list}): Add encryption or
10073 decryption argument.
10075 common: Add stream interface to call-pgp.
10076 + commit 03bf88f32c8d203d5b3bfbbc48cc45e6c08cc187
10077 * common/call-gpg.c (struct writer_thread_parms): Add field 'stream'.
10078 (writer_thread_main): Support reading from a stream.
10079 (start_writer): Add stream argument.
10080 (struct reader_thread_parms): Add field 'stream'.
10081 (reader_thread_main): Support writing to a stream.
10082 (start_reader): Add stream argument.
10083 (_gpg_encrypt): Add stream api.
10084 (gpg_encrypt_blob): Adapt accordingly.
10085 (gpg_encrypt_stream): New function.
10086 (_gpg_decrypt): Add stream api.
10087 (gpg_decrypt_blob): Adapt accordingly.
10088 (gpg_decrypt_stream): New function.
10089 * common/call-gpg.h (gpg_encrypt_stream): New prototype.
10090 (gpg_decrypt_stream): Likewise.
10092 common: Refactor the call-gpg code.
10093 + commit cb18d802308bde4e28219417bb4d107a4c0001b4
10094 * common/call-gpg.c (gpg_{en,de}crypt_blob): Move most of the code
10095 into two new functions, _gpg_encrypt and _gpg_decrypt.
10097 g13: Move 'call-gpg.c' to common.
10098 + commit ba1a5cc17d43d9cba32447876f06a8ab8f97e5ae
10099 * common/Makefile.am (common_sources): Add files.
10100 * g13/call-gpg.c: Move to 'common' and adapt slightly. Add a
10101 parameter to let callees override the gpg program to execute.
10102 * g13/call-gpg.h: Likewise.
10103 * g13/Makefile.am (g13_SOURCES): Drop files.
10104 * g13/create.c (encrypt_keyblob): Hand in the gpg program to execute.
10105 * g13/mount.c (decrypt_keyblob): Likewise.
10107 2015-11-24 Neal H. Walfield <neal@g10code.com>
10109 gpg: When comparing keyids, use the keyid, not the fingerprint's suffix.
10110 + commit e9c16fee2576c772de9d4fb5d53fee28e4b84202
10111 * g10/keyedit.c (menu_select_key): Use spacep and hexdigitp instead of
10112 inline tests. Don't compare P to the suffix of the fingerprint. If P
10113 appears to be a keyid, do an exact compare against the keyid. If it
10114 appears to be a fingerprint, do an exact compare against the
10117 2015-11-23 Neal H. Walfield <neal@g10code.com>
10119 gpg: Reflow long texts.
10120 + commit 19362a8dd7ee986c082a5afc5a446f939991ec0f
10121 * common/stringhelp.c (format_text): New function.
10122 * common/t-stringhelp.c (stresc): New function.
10123 (test_format_text): New function. Test format_text.
10124 * g10/tofu.c (get_trust): Use format_text to reflow long texts.
10125 (show_statistics): Likewise.
10127 common: Extend utf8_charcount to include the string's length.
10128 + commit 5b84b0d660c8329e184d98682665aaea7e1703d2
10129 * common/stringhelp.c (utf8_charcount): Take additional parameter,
10130 len. Process at most LEN bytes.
10132 2015-11-23 Justus Winter <justus@g10code.com>
10134 dirmngr: Fix http lookups when libadns is used.
10135 + commit b75e1b3d8b1643640d046f7f8e89adf5b1caa7a3
10136 * dirmngr/dns-stuff.c (resolve_name_adns): Fill in the port.
10138 dirmngr: Fix SRV record lookups when using the system resolver.
10139 + commit 946faaff04f3340ed6db9e89c5036dc5f9beca6a
10140 * dirmngr/dns-stuff.c (getsrv): Fix error handling.
10142 dirmngr: Honor ports specified in SRV records.
10143 + commit 73c1a86ad937d7be027eece991c69aaeb6a1f092
10144 * dirmngr/ks-engine-hkp.c (struct hostinfo_s): New field 'port'.
10145 (create_new_hostinfo): Initialize 'port'.
10146 (add_host): Add host parameter and update the hosttable entry.
10147 (map_host): Return port if known, adjust calls to 'add_host'.
10148 (make_host_part): Let 'map_host' specify the port if known.
10150 dirmngr: Support hkp server pools using SRV records.
10151 + commit c9f5aa15793b3c05c1b92af401b23ab34d3e6196
10152 * dirmngr/ks-engine-hkp.c (map_host): Handle SRV records.
10154 dirmngr: Refactor 'map_host'.
10155 + commit 3f52f6bcacfe3877d30a21464e93e9240bc75085
10156 * dirmngr/ks-engine-hkp.c (add_host): New function.
10157 (map_host): Use the new function.
10159 dirmngr: Fix pool detection.
10160 + commit 23ea641ba2a063cc99c82869061703d48bc674b2
10161 * dirmngr/ks-engine-hkp (arecords_is_pool): Fix counting IP addresses.
10163 dirmngr: Refactor 'map_host'.
10164 + commit 2b43a0515868b8720009e48d7a1f32d571767f14
10165 * dirmngr/ks-engine-hkp.c (arecords_is_pool): New function.
10166 (map_host): Use the new function.
10168 dirmngr: Start dirmngr on demand.
10169 + commit a9e0b1dd6c106e243e3fbbaa1838b56a1f1c8584
10170 * common/asshelp.h: Include 'util.h'.
10171 * dirmngr/dirmngr-client.c (main): Use 'start_new_dirmngr' to connect
10173 (start_dirmngr): Drop now unused declaration and function.
10175 2015-11-23 Neal H. Walfield <neal@g10code.com>
10177 gpg: If sqlite is not available, don't build things depending on it.
10178 + commit 770c06ed4e6c1097d6e305a0a9427c3c783b787c
10179 * configure.ac: Define the automake conditional SQLITE3.
10180 * tests/openpgp/Makefile.am (TESTS): Move the sqlite3 dependent tests
10182 (sqlite3_dependent_tests): ... this new variable. If SQLITE3 is not
10183 defined, then clear this variable.
10185 gpg: Allow updating the expiration time of multiple subkeys at once.
10186 + commit b64b33bb80a8cf5dcc1fdbc62023d019fe2c8cb1
10187 * g10/keyedit.c (menu_expire): Allow updating the expiration time of
10188 multiple subkeys at once.
10190 gpg: Don't crash if key is not passed an argument.
10191 + commit 19f099463c82c119288a05eaefc42bf09d617377
10192 * g10/keyedit.c (menu_select_key): Don't crash if P is NULL.
10194 2015-11-20 Neal H. Walfield <neal@g10code.com>
10196 gpg: Fail if the search description passed to --gen-revoke is ambiguous.
10197 + commit 178af9c3f56d385fe28a9e5e8bde0ab34c0b260e
10198 * g10/revoke.c (gen_revoke): Error out if the search description is
10201 gpg: Refactor print_seckey_info.
10202 + commit f8a65ac96b27a0963892892ce6e93b37b8df1ad7
10203 * g10/keylist.c (print_seckey_info): Break formatting functionality
10205 (format_seckey_info): ... this new function.
10207 gpg: Improve an error message.
10208 + commit 46e128d44a0456dc603bc9e25a4c5d8da903b078
10209 * g10/revoke.c (gen_revoke): Provide a more descriptive error message
10210 if searching for a key fails.
10212 2015-11-19 Justus Winter <justus@g10code.com>
10214 dirmngr: Improve error handling.
10215 + commit 6b14df5525777ee0330a34a7b335359f562616a4
10216 * dirmngr/crlcache.c (crl_cache_cert_isvalid): Add missing break.
10218 dirmngr: Fix memory leak.
10219 + commit b223cde311e4e02f7983e33fe3d7214287dfb678
10220 * dirmngr/ldap.c (start_cert_fetch_ldap): Avoid leaking all malloc'ed
10223 agent: Improve error handling.
10224 + commit a1650b1edf80c2526c0576547b3a574e8d30f1fa
10225 * agent/trustlist.c (istrusted_internal): Initialize 'err'.
10227 common: Avoid undefined behavior.
10228 + commit eb957ffc4797fb019c505510295af244baf5be38
10229 * common/iobuf.c (iobuf_esopen): Initialize 'len' as 'file_es_filter'
10230 will make use of it.
10232 g10: Avoid undefined behavior.
10233 + commit 52f7f195b119dc01bdf3ae200fdc8e04a0bb9bcb
10234 * g10/trust.c (clean_one_uid): Avoid a computation involving an
10235 uninitialized value.
10237 scd: Improve error handling.
10238 + commit 6a37b45a7f13cf5d2ae7d6c9cd796a4bd197b80d
10239 * scd/app-openpgp.c (get_public_key): Improve error handling.
10241 2015-11-18 Justus Winter <justus@g10code.com>
10243 dirmngr: Gracefully handle premature termination of TLS streams.
10244 + commit eb54fca4bf3ef8e0cd50b01df5b40e0d6d318d7e
10245 * dirmngr/http.c (close_tls_session): New function.
10246 (session_unref): Use the new function to close the TLS stream.
10247 (cookie_read): If the stream terminated prematurely, close it and
10248 return a short read.
10250 2015-11-17 Neal H. Walfield <neal@g10code.com>
10251 Michael Mönch <michael.moench@marktjagd.de>
10253 tools: Fix option parsing for gpg-zip.
10254 + commit 84ebf15b06e435453b2f58775f97a3a1c61a7e55
10255 * tools/gpg-zip.in: Correctly set GPG when --gpg is specified.
10256 Correctly set TAR when --tar is specified. Pass TAR_ARGS to tar.
10258 2015-11-17 Neal H. Walfield <neal@g10code.com>
10260 gpg: Allow selecting subkeys using a keyid.
10261 + commit 0b86c7463c8c057496b38e06c00f0ae4288dad49
10262 * g10/keyedit.c (menu_select_key): Take an additional argument, p.
10263 Update callers. If P is a hex string, then assume that P is a key id
10264 or fingerprint and select subkeys with matching key ids or
10266 * doc/gpg.texi: Update documentation for the key subcommand.
10268 2015-11-17 Justus Winter <justus@g10code.com>
10270 dirmngr: Fix specifying keyservers by IP address.
10271 + commit 1e3dbb15affd6d75a477aa17715d8e5470988c08
10272 * dirmngr/ks-engine-hkp.c (map_host): Update the original 'hosttable'
10273 entry instead of creating another one.
10275 2015-11-17 Neal H. Walfield <neal@g10code.com>
10277 gpg: Change keydb_search to not return legacy keys.
10278 + commit 58e4a492e2c8e908d16135486ed601f602f1e38d
10279 * g10/keyring.c (keyring_search): Take new argument, ignore_legacy.
10280 If set, skip any legacy keys. Update callers.
10281 * g10/keydb.c (keydb_search): Skip any legacy keys.
10282 (keydb_search_first): Don't skip legacy keys. Treat them
10284 (keydb_search_next): Likewise.
10285 (keydb_search_fpr): Likewise.
10286 * g10/export.c (do_export_stream): Likewise.
10287 * g10/getkey.c (lookup): Likewise.
10288 (have_secret_key_with_kid): Likewise.
10289 * g10/keylist.c (list_all): Likewise.
10290 (keyring_rebuild_cache): Likewise.
10291 * g10/keyserver.c (keyidlist): Likewise.
10292 * g10/trustdb.c (validate_key_list): Likewise.
10294 gpg: Correctly handle an error.
10295 + commit 848726f5c02faddb0b0fd24ce1a66893f5325675
10296 * g10/keyring.c (keyring_search): If a compare function returns an
10297 error, treat it as an error.
10299 gpg: Correctly handle keyblocks followed by legacy keys.
10300 + commit ad9befab12376b3a49cde410996ac9f0013d0871
10301 * g10/keyring.c (keyring_get_keyblock): If we encounter a legacy
10302 packet after already having some non-legacy packets, then treat the
10303 legacy packet as a keyblock boundary, not as part of the keyblock.
10304 * g10/t-keydb-get-keyblock.c: New file.
10305 * g10/t-keydb-get-keyblock.gpg: New file.
10306 * g10/Makefile.am (EXTRA_DIST): Add t-keydb-get-keyblock.gpg.
10307 (module_tests): Add t-keydb-get-keyblock.
10308 (t_keydb_get_keyblock_SOURCES): New variable.
10309 (t_keydb_get_keyblock_LDADD): Likewise.
10311 gpg: Make debugging search descriptors easier.
10312 + commit 11ec4785df1646643966d872b1b53ef675092c98
10313 * g10/keydb.c (dump_search_desc): Rename from this...
10314 (keydb_search_desc_dump): ... to this. Only process a single search
10315 descriptor. Improve output. Don't mark as static. Update callers.
10317 gpg: Add function format_keyid.
10318 + commit a052c30d31c0f6b532fea081f4a9bee083f5440f
10319 * g10/options.h (opt.keyid_format): Add new value KF_DEFAULT.
10320 * g10/keyid.c (format_keyid): New function.
10323 gpg: Use a more appropriate error code.
10324 + commit eae982ed6d69644258afe9c4ad1be553853d8403
10325 * g10/gpg.c (check_user_ids): Return a more appropriate error code if
10326 a user id is ambiguous.
10328 2015-11-17 Justus Winter <justus@g10code.com>
10330 Fix typos found using codespell.
10331 + commit a9e0905342e847e8961ec4fe9b3aaedf05e33423
10332 * agent/cache.c: Fix typos.
10333 * agent/call-pinentry.c: Likewise.
10334 * agent/call-scd.c: Likewise.
10335 * agent/command-ssh.c: Likewise.
10336 * agent/command.c: Likewise.
10337 * agent/divert-scd.c: Likewise.
10338 * agent/findkey.c: Likewise.
10339 * agent/gpg-agent.c: Likewise.
10340 * agent/w32main.c: Likewise.
10341 * common/argparse.c: Likewise.
10342 * common/audit.c: Likewise.
10343 * common/audit.h: Likewise.
10344 * common/convert.c: Likewise.
10345 * common/dotlock.c: Likewise.
10346 * common/exechelp-posix.c: Likewise.
10347 * common/exechelp-w32.c: Likewise.
10348 * common/exechelp-w32ce.c: Likewise.
10349 * common/exechelp.h: Likewise.
10350 * common/helpfile.c: Likewise.
10351 * common/i18n.h: Likewise.
10352 * common/iobuf.c: Likewise.
10353 * common/iobuf.h: Likewise.
10354 * common/localename.c: Likewise.
10355 * common/logging.c: Likewise.
10356 * common/openpgp-oid.c: Likewise.
10357 * common/session-env.c: Likewise.
10358 * common/sexputil.c: Likewise.
10359 * common/sysutils.c: Likewise.
10360 * common/t-sexputil.c: Likewise.
10361 * common/ttyio.c: Likewise.
10362 * common/util.h: Likewise.
10363 * dirmngr/cdblib.c: Likewise.
10364 * dirmngr/certcache.c: Likewise.
10365 * dirmngr/crlcache.c: Likewise.
10366 * dirmngr/dirmngr-client.c: Likewise.
10367 * dirmngr/dirmngr.c: Likewise.
10368 * dirmngr/dirmngr_ldap.c: Likewise.
10369 * dirmngr/dns-stuff.c: Likewise.
10370 * dirmngr/http.c: Likewise.
10371 * dirmngr/ks-engine-hkp.c: Likewise.
10372 * dirmngr/ks-engine-ldap.c: Likewise.
10373 * dirmngr/ldap-wrapper.c: Likewise.
10374 * dirmngr/ldap.c: Likewise.
10375 * dirmngr/misc.c: Likewise.
10376 * dirmngr/ocsp.c: Likewise.
10377 * dirmngr/validate.c: Likewise.
10378 * g10/encrypt.c: Likewise.
10379 * g10/getkey.c: Likewise.
10380 * g10/gpg.c: Likewise.
10381 * g10/gpgv.c: Likewise.
10382 * g10/import.c: Likewise.
10383 * g10/keydb.c: Likewise.
10384 * g10/keydb.h: Likewise.
10385 * g10/keygen.c: Likewise.
10386 * g10/keyid.c: Likewise.
10387 * g10/keylist.c: Likewise.
10388 * g10/keyring.c: Likewise.
10389 * g10/mainproc.c: Likewise.
10390 * g10/misc.c: Likewise.
10391 * g10/options.h: Likewise.
10392 * g10/packet.h: Likewise.
10393 * g10/parse-packet.c: Likewise.
10394 * g10/pkclist.c: Likewise.
10395 * g10/pkglue.c: Likewise.
10396 * g10/plaintext.c: Likewise.
10397 * g10/server.c: Likewise.
10398 * g10/sig-check.c: Likewise.
10399 * g10/sqlite.c: Likewise.
10400 * g10/tdbio.c: Likewise.
10401 * g10/test-stubs.c: Likewise.
10402 * g10/tofu.c: Likewise.
10403 * g10/trust.c: Likewise.
10404 * g10/trustdb.c: Likewise.
10405 * g13/create.c: Likewise.
10406 * g13/mountinfo.c: Likewise.
10407 * kbx/keybox-blob.c: Likewise.
10408 * kbx/keybox-file.c: Likewise.
10409 * kbx/keybox-init.c: Likewise.
10410 * kbx/keybox-search-desc.h: Likewise.
10411 * kbx/keybox-search.c: Likewise.
10412 * kbx/keybox-update.c: Likewise.
10413 * scd/apdu.c: Likewise.
10414 * scd/app-openpgp.c: Likewise.
10415 * scd/app-p15.c: Likewise.
10416 * scd/app.c: Likewise.
10417 * scd/ccid-driver.c: Likewise.
10418 * scd/command.c: Likewise.
10419 * scd/iso7816.c: Likewise.
10420 * sm/base64.c: Likewise.
10421 * sm/call-agent.c: Likewise.
10422 * sm/call-dirmngr.c: Likewise.
10423 * sm/certchain.c: Likewise.
10424 * sm/gpgsm.c: Likewise.
10425 * sm/import.c: Likewise.
10426 * sm/keydb.c: Likewise.
10427 * sm/minip12.c: Likewise.
10428 * sm/qualified.c: Likewise.
10429 * sm/server.c: Likewise.
10430 * tools/gpg-check-pattern.c: Likewise.
10431 * tools/gpgconf-comp.c: Likewise.
10432 * tools/gpgkey2ssh.c: Likewise.
10433 * tools/gpgparsemail.c: Likewise.
10434 * tools/gpgtar.c: Likewise.
10435 * tools/rfc822parse.c: Likewise.
10436 * tools/symcryptrun.c: Likewise.
10438 2015-11-16 Neal H. Walfield <neal@g10code.com>
10440 gpg: Fix error checking and improve error reporting.
10441 + commit 8e2bea22b0927f4f95a248cc7517f407a705d8a8
10442 * g10/gpg.c (check_user_ids): Differentiate between a second result
10443 and an error. If the key specification is ambiguous or an error
10444 occurs, set RC appropriately.
10446 2015-11-14 Werner Koch <wk@gnupg.org>
10448 gpg: Use only one fingerprint formatting function.
10449 + commit 3689c2105aab6a4304e9464c5b20207d69b9a133
10450 * g10/gpg.h (MAX_FORMATTED_FINGERPRINT_LEN): New.
10451 * g10/keyid.c (hexfingerprint): Add optional args BUFFER and BUFLEN.
10452 Change all callers.
10453 (format_hexfingerprint): New.
10454 * g10/keylist.c (print_fingerprint): Change to use hexfingerprint.
10455 * g10/tofu.c (fingerprint_format): Remove. Replace calls by
10456 format_hexfingerprint.
10458 2015-11-13 Werner Koch <wk@gnupg.org>
10460 gpg: Simplify the tofu interface by using the public key packet.
10461 + commit e7d7160ab7cd4e6b460bfe36fd3a7275adadb4e2
10462 * g10/tofu.c (fingerprint_str): Remove.
10463 (tofu_register): Take a public key instead of a fingerprint as arg.
10464 Use hexfingerprint() to get a fpr from the PK.
10465 (tofu_get_validity): Ditto.
10466 (tofu_set_policy, tofu_get_policy): Simplify by using hexfingerprint.
10467 * g10/trustdb.c (tdb_get_validity_core): Pass the primary key PK to
10468 instead of the fingerprint to the tofu functions.
10470 gpg: Make trusted-key override for Tofu robust against swapped tofu.db.
10471 + commit 7de8376430625c1f6f3a58ae16276deca8ff6a82
10472 * g10/tofu.c (get_trust): For the UTK check lookup the key by
10475 gpg: Fix regression in --locate-keys (in 2.1.9).
10476 + commit 7e59fb21f728b5f54468cd35b1415a2f86003d4f
10477 * g10/getkey.c (getkey_ctx_s): Add field "extra_list".
10478 (get_pubkey_byname): Store strings in the context.
10479 (getkey_end): Free EXTRA_LIST.
10481 2015-11-12 Werner Koch <wk@gnupg.org>
10483 gpg: Print a new EXPORTED status line.
10484 + commit 2038adf16d0e7eeb614043aae17b16a867de6b70
10485 * common/status.h (STATUS_EXPORTED): New.
10486 * g10/export.c (print_status_exported): New.
10487 (do_export_stream): Call that function.
10489 gpg: Print export statistics to the status-fd.
10490 + commit e3c48335f9c5081c6080bceafa7a04140403427a
10491 * common/status.h (STATUS_EXPORT_RES): New.
10492 * g10/main.h (export_stats_t): New.
10493 * g10/export.c (export_stats_s): New.
10494 (export_new_stats, export_release_stats): New.
10495 (export_print_stats): New.
10496 (export_pubkeys, export_seckeys, export_secsubkeys)
10497 (export_pubkey_buffer, do_export): Add arg "stats".
10498 (do_export_stream): Add arg stats and update it.
10499 * g10/gpg.c (main) <aExport, aExportSecret, aExportSecretSub>: Create,
10500 pass, and print a stats object to the export function calls.
10502 * g10/export.c (export_pubkeys_stream): Remove unused function.
10504 dirmngr: Do not block during ADNS calls.
10505 + commit a3b26d6c0839ec18d1dc226bb537d5067c86d574
10506 * dirmngr/dns-stuff.c: Include npth.h
10507 (my_unprotect, my_protect): New wrapper.
10508 (resolve_name_adns): Put unprotect/protect around adns calls.
10509 (get_dns_cert): Ditto.
10511 (get_dns_cname): Ditto.
10513 dirmngr: New option --nameserver.
10514 + commit a2cc1d57552ccac7b2f9a0c6423b171b2a168b2a
10515 * dirmngr/dirmngr.c (oNameServer): New.
10516 (opts): Add --nameserver.
10517 (parse_rereadable_options): Act upon oNameServer.
10518 * dirmngr/dns-stuff.c (DEFAULT_NAMESERVER): New.
10519 (tor_nameserver): New.
10520 (set_dns_nameserver): New.
10521 (my_adns_init): Make name server configurable.
10523 2015-11-11 Neal H. Walfield <neal@g10code.com>
10525 gpg: Fix cache consistency problem.
10526 + commit 7546e818791988c00b8635dab5b899265d8d9f42
10527 g10/keyring.c (keyring_search): Only mark the cache as completely
10528 filled if we start the scan from the beginning of the keyring.
10530 2015-11-10 Neal H. Walfield <neal@g10code.com>
10532 gpg: Default to the the PGP trust model.
10533 + commit 67c701d1e53f56305e3b8771c683c45bb9672305
10534 * g10/trustdb.c (init_trustdb): If we can't read the trust model from
10535 the trust DB, default to TM_PGP, not TM_TOFU_PGP.
10537 gpg: Default to the flat TOFU DB format.
10538 + commit 951f277b6bf8178560105538d38e2a07a96865bd
10539 * g10/tofu.c (opendbs): If the TOFU DB format is set to auto and there
10540 is no TOFU DB, default to the flat format.
10542 2015-11-09 Werner Koch <wk@gnupg.org>
10544 dirmngr: Change to new ADNS Tor mode init scheme.
10545 + commit 288c9919dc45496b2380eeac487a8539692d6842
10546 * dirmngr/dns-stuff.c (tor_credentials): New.
10547 (enable_dns_tormode): Add arg new_circuit and update tor_credentials.
10548 (my_adns_init): Rework to set Tor mode using a config file options and
10549 always use credentials.
10550 * dirmngr/server.c (cmd_dns_cert): Improve error message.
10551 * dirmngr/t-dns-stuff.c (main): Add option --new-circuit.
10553 dirmngr: Improve detection of ADNS.
10554 + commit f92e95175e90120362a7d6376fb32307e11267b5
10555 * configure.ac (HAVE_ADNS_FREE): New ac_define.
10557 2015-11-09 NIIBE Yutaka <gniibe@fsij.org>
10559 scd: Add reder information to --card-status.
10560 + commit bce0e3f71df0709a7d323a688ddf2690c1727a6c
10561 * g10/call-agent.h, g10/call-agent.c (agent_release_card_info)
10562 g10/card-util.c (card_status): Add READER.
10563 * scd/apdu.c (close_ccid_reader, open_ccid_reader): Handle RDRNAME.
10564 (apdu_get_reader_name): New.
10565 * scd/ccid-driver.c (ccid_open_reader): Add argument to RDRNAME_P.
10566 * scd/command.c (cmd_learn): Return READER information.
10568 2015-11-06 Werner Koch <wk@gnupg.org>
10570 gpg: Avoid new strings.
10571 + commit 2242658efe0c975a46c3316bc9171ddbce085e2c
10572 * g10/decrypt-data.c (decrypt_data): Use already translated strings.
10574 common: Fix commit f99830b.
10575 + commit 20125333e7b822e8c70ac8cef986649f0654eb56
10576 * common/userids.c (classify_user_id): Avoid underflow. Use spacep to
10579 2015-11-06 Neal H. Walfield <neal@g10code.com>
10581 gpg: Fix formatting string.
10582 + commit 28e198201e580b39bceb9c151df07fc0e936a91d
10583 * g10/decrypt-data.c (decrypt_data): Fix formatting string.
10585 gpg: Add new option --only-sign-text-ids.
10586 + commit a74aeb5dae1f673fcd98b39a6a0496f3c622709a
10587 * g10/options.h (opt): Add field only_sign_text_ids.
10588 * g10/gpg.c (enum cmd_and_opt_values): Add value oOnlySignTextIDs.
10589 (opts): Handle oOnlySignTextIDs.
10591 * g10/keyedit.c (sign_uids): If OPT.ONLY_SIGN_TEXT_IDS is set, don't
10592 select non-text based IDs automatically.
10593 (keyedit_menu): Adapt the prompt asking to sign all user ids according
10594 to OPT.ONLY_SIGN_TEXT_IDS.
10595 * doc/gpg.texi: Document the new option --only-sign-text-ids.
10597 common: When classifying keyids and fingerprints, reject trailing junk.
10598 + commit f99830b72812395da5451152bdd2f2d90a7cb7fb
10599 * common/userids.c (classify_user_id): Trim any trailing whitespace.
10600 Before assuming that a hexstring corresponds to a key id or
10601 fingerprint, make sure that it is NUL terminated.
10603 gpg: Check for ambiguous or non-matching key specs.
10604 + commit e8c53fca954d33366e3494a6d4eecc3868282bcc
10605 * g10/gpg.c (check_user_ids): New function.
10606 (main): Check that any user id specifications passed to --local-user
10607 and --remote-user correspond to exactly 1 user. Check that any user
10608 id specifications passed to --default-key correspond to at most 1
10609 user. Warn if any user id specifications passed to --local-user or
10610 --default-user are possible ambiguous (are not specified by long keyid
10612 * g10/getkey.c (parse_def_secret_key): Don't warn about possible
10613 ambiguous key descriptions here.
10615 common: Add new function strlist_rev.
10616 + commit f38bac8883ea2e9ed8e2836f97a953efb85e774c
10617 * common/strlist.c (strlist_rev): New function.
10618 * common/t-strlist.c: New file.
10619 * common/Makefile.am (common_sources): Add strlist.c and strlist.h.
10620 (module_tests): Add t-strlist.
10621 (t_strlist_LDADD): New variable.
10623 common: Include required, but not included headers in t-support.h.
10624 + commit 23e163473f050d1f2c08f589beb9dab283b7d624
10625 * common/t-support.h: Include <stdlib.h> and <stdio.h>.
10627 2015-11-05 Neal H. Walfield <neal@g10code.com>
10629 gpg: Indicate which characters are invalid.
10630 + commit a958ffd148a46f3757d1c309bb13555638044640
10631 * g10/keygen.c (ask_user_id): Indicate which characters are invalid.
10633 gpg: Add support for unwrapping the outer level of encryption.
10634 + commit ec409e62aea6cc829299be794f9d035d033cb51b
10635 * g10/decrypt-data.c (decrypt_data): If OPT.UNWRAP_ENCRYPTION is set,
10636 copy the data to the output file instead of continuing to process it.
10637 * g10/gpg.c (enum cmd_and_opt_values): Add new value oUnwrap.
10638 (opts): Handle oUnwrap.
10640 * g10/options.h (opt): Add field unwrap_encryption.
10641 * g10/plaintext.c (handle_plaintext): Break the output file selection
10642 functionality into ...
10643 (get_output_file): ... this new function.
10645 common: Add a function for copying data from one iobuf to another.
10646 + commit fd4b9e232805b2e30b29903568c95cc0aad8bbec
10647 * common/iobuf.c (iobuf_copy): New function.
10649 doc: Note that gpgkey2ssh is deprecated.
10650 + commit 2b0e0a53b4db8c44e299f57a9f4f9fc1b825e707
10651 * doc/tools.texi (gpgkey2ssh): Note that gpgkey2ssh is deprecated.
10653 tools: Fix gpgkey2ssh's most gratuitous errors. Use gpg2, not gpg.
10654 + commit cd2d685230ecafb7df504ef2b16cf1ec9a014300
10655 * tools/gpgkey2ssh.c (main): Add support for --help. Replace the most
10656 gratuitous asserts with error messages. Invoke gpg2, not gpg.
10658 2015-11-05 Neal H. Walfield <neal@g10code.com>
10659 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10661 doc: Add documentation for gpgkey2ssh.
10662 + commit 2b27acc3435e73fad7460b551a36b4064cdd58be
10663 * doc/tools.texi: Add documentation for gpgkey2ssh.
10665 2015-11-04 Neal H. Walfield <neal@g10code.com>
10667 gpg: Print a better error message for --multifile --sign --encrypt.
10668 + commit 6897bbf1aa9bf0a61b186ea1a9bcb463fb1fd10e
10669 * g10/gpg.c (main): Print a better error message for --multifile
10672 gpg: Add --encrypt-to-default-key.
10673 + commit de9b2340153d70b083494d1a277a384dcf43bff0
10674 * g10/getkey.c (parse_def_secret_key): Drop the static qualifier and
10675 export the function.
10676 * g10/gpg.c (enum cmd_and_opt_values): Add value oEncryptToDefaultKey.
10677 (opts): Handle oEncryptToDefaultKey.
10679 * g10/options.h (opt): Add field encrypt_to_default_key.
10681 gpg: Allow multiple --default-key options. Take the last available key.
10682 + commit e16d7168c54e5f7bc2f0037806ee4f730930eaf0
10683 * g10/getkey.c (parse_def_secret_key): New function.
10684 (get_seckey_default): Add parameter ctrl. Update callers. Use
10685 parse_def_secret_key to get the default secret key, if any.
10686 (getkey_byname): Likewise.
10687 (enum_secret_keys): Likewise.
10688 * g10/options.h (opt): Change def_secret_key's type from a char * to a
10690 * g10/gpg.c (main): When processing --default-key, add the key to
10691 OPT.DEF_SECRET_KEY.
10692 * g10/gpgv.c (get_session_key): Add parameter ctrl. Update callers.
10693 * g10/mainproc.c (proc_pubkey_enc): Likewise.
10694 (do_proc_packets): Likewise.
10695 * g10/pkclist.c (default_recipient): Likewise.
10696 * g10/pubkey-enc.c (get_session_key): Likewise.
10697 * g10/sign.c (clearsign_file): Likewise.
10698 (sign_symencrypt_file): Likewise.
10699 * g10/skclist.c (build_sk_list): Likewise.
10700 * g10/test-stubs.c (get_session_key): Likewise.
10702 2015-11-04 NIIBE Yutaka <gniibe@fsij.org>
10704 scd: Fix error handling with libusb-compat library.
10705 + commit 1e94a672efb8bf66f416bc63bf6670e509a21fe5
10706 * scd/ccid-driver.c (bulk_out): Use LIBUSB_ERRNO_NO_SUCH_DEVICE.
10708 scd: fix change_keyattr.
10709 + commit c5a9fedba66361ddd9f596528882750068543298
10710 * scd/app-openpgp.c (change_keyattr_from_string): Fix parsing.
10712 2015-11-03 Werner Koch <wk@gnupg.org>
10714 gpg: Change out of core error message.
10715 + commit 44ad9f29d43f40bbc1840454880f4af3df1c5295
10716 * g10/tofu.c (fingerprint_str): Die with the error code returned by
10717 the failed function.
10718 (time_ago_str): Ditto. Do not make a comma translatable.
10719 (fingerprint_format): Use "%zu" for a size_t.
10721 gpg: Make translation easier.
10722 + commit 62b8cd5495dcac9a0f8a3d88c7bd4cd80997fd3f
10723 * g10/import.c (import_secret_one): Split info string for easier
10726 2015-11-03 Neal H. Walfield <neal@g10code.com>
10728 gpg: Also show when the most recently signed message was observed.
10729 + commit 621afac37e5555fd68054531e611ead444b62928
10730 * g10/tofu.c (show_statistics): Also show when the most recently
10731 signed message was observed.
10733 gpg: Split a utility function out of a large function.
10734 + commit 36326112290b6eef47c9dada30dddbdf408680e4
10735 * g10/tofu.c (show_statistics): Break the time delta to string code
10737 (time_ago_str): ... this new function.
10739 gpg: Fix message formatting.
10740 + commit c8ef9f9a64d13ea8b9b4ade62525243abe2976ba
10741 * g10/tofu.c (get_trust): Fix message formatting.
10743 gpg: Don't store formatting fingerprints in the TOFU DB.
10744 + commit 8ae3946d28c43e30ef692ba6cf1a7fa4ed65ecc5
10745 * g10/tofu.c (fingerprint_pp): Split this function into...
10746 (fingerprint_str): ... this function...
10747 (fingerprint_format): ... and this function.
10748 (record_binding): Store the unformatted fingerprint in the DB. Only
10749 use the formatting fingerprint when displaying a message to the user.
10750 (get_trust): Likewise.
10751 (show_statistics): Likewise.
10752 (tofu_register): Likewise.
10753 (tofu_get_validity): Likewise.
10754 (tofu_set_policy): Likewise.
10755 (tofu_get_policy): Likewise.
10757 2015-11-02 NIIBE Yutaka <gniibe@fsij.org>
10759 g10: notify a user when importing stub is skipped.
10760 + commit 06f3eadb22986d9ebde9efff2794eb1d45d6c6d4
10761 * g10/import.c (transfer_secret_keys): Return GPG_ERR_NOT_PROCESSED
10762 when stub_key_skipped.
10763 (import_secret_one): Notify a user, suggesting --card-status.
10765 2015-10-31 Neal H. Walfield <neal@g10code.com>
10767 gpg: Consider newlines to be whitespace in an SQL statement.
10768 + commit 18cd09246f5dcddcafb8662afd84fa046e36de3f
10769 * g10/sqlite.c (sqlite3_stepx): When making sure that there is no
10770 second SQL statement, ignore newlines.
10772 2015-10-30 Werner Koch <wk@gnupg.org>
10774 common: Improve t-zb32 to be used for manual encoding.
10775 + commit d89a9fca46d9bba497dde0793b57217c800b0e8d
10776 * common/t-support.h (no_exit_on_fail, errcount): New.
10777 (fail): Bump errcount.
10778 * common/t-zb32.c (main): Add options to allow manual use.
10780 common: Add separate header for zb32.c.
10781 + commit 5aadb4b62d26e1bfb40a1ce444a81c2a5a56159c
10782 * common/util.h (zb32_encode): Move prototype to ...
10783 * common/zb32.h: new. Include this for all callers of zb32_encode.
10785 2015-10-29 Neal H. Walfield <neal@g10code.com>
10787 gpg: Display the correct error message.
10788 + commit 641df615da4937b0073c420a0503c5810c237972
10789 * g10/trustdb.c (validate_keys): If tdbio_update_version_record fails,
10790 RC does not contain the error code. Save the error code in rc2 and
10793 gpg: Eliminate a memory leak.
10794 + commit d68bdc553a206e54234d5d53ad35c4ba34133118
10795 * g10/trustdb.c (validate_key_list): Don't leak the keyblocks on
10798 gpg: Remove unused prototype.
10799 + commit ef052591ba51ee16bafc3c5b79d837ed8f01b520
10800 g10/keyring.h (keyring_locate_writable): Remove unused prototype.
10802 gpg: Eliminate a memory leak.
10803 + commit 89eee5f6b7ca3da7ebdcc3e5d069701d0834b39e
10804 * g10/gpg.c (main): Don't leak OPT.DEF_RECIPIENT.
10806 gpg: Fix keyring support.
10807 + commit 99c84b49b787dab8da26cf61eed24dd4a2b77fd9
10808 * g10/keydb.c (keydb_rebuild_caches): Only mark the cached as prepared
10809 if it is actually prepared, which it only is if the resource is a
10812 gpg: Change sqlite3_stepx to pass the sqlite3_stmt * to the callback.
10813 + commit 421827424fe87855307fe3e803b42ffa02738600
10814 * g10/sqlite.h (enum sqlite_arg_type): Add SQLITE_ARG_BLOB.
10815 (sqlite3_stepx_callback): New declaration.
10816 (sqlite3_stepx): Change the callback's type to sqlite3_stepx_callback,
10817 which passes an additional parameter, the sqlite3_stmt *. Update
10820 gpg: Move sqlite helper functions into their own file.
10821 + commit 351f4213e192aa11500c0c590d11183edbe326c5
10822 * g10/tofu.c (sqlite3_exec_printf): Move from here...
10823 * g10/sqlite.c (sqlite3_exec_printf): ... to this new file. Don't
10825 * g10/tofu.c (sqlite3_stepx): Move from here...
10826 * g10/sqlite.c (sqlite3_stepx): ... to this new file. Don't
10828 * g10/tofu.c (enum sqlite_arg_type): Move from here...
10829 * g10/sqlite.h (enum sqlite_arg_type): ... to this new file.
10831 2015-10-29 NIIBE Yutaka <gniibe@fsij.org>
10833 doc: Don't install gpg-zip.1.
10834 + commit d25e29ad9374da1c11ccfc38f392dbab2d707042
10835 * doc/Makefile.am (myman_pages): Remove gpg-zip.1.
10836 (DISTCLEANFILES): Add gpg-zip.1.
10838 2015-10-28 Werner Koch <wk@gnupg.org>
10840 sm: Allow combination of usage flags --gen-key.
10841 + commit 8b6c83dcb086ef09b2676e4d5b0111c88b7b8bf8
10842 * sm/certreqgen.c (create_request): Re-implement building of the
10843 key-usage extension.
10845 2015-10-28 Damien Goutte-Gattat <dgouttegattat@incenp.org>
10847 doc: Document some changed default options.
10848 + commit e095a3fcf2ccc6cc4e258111dc395558069a1164
10849 * doc/gpg.texi: Update the description of some options which are
10850 now enabled by default.
10852 2015-10-28 Werner Koch <wk@gnupg.org>
10854 dirmngr: Fix NULL-deref while loading a CRL.
10855 + commit fa15a71daff8414bf4112bc2826dc495ff2fb01f
10856 * dirmngr/crlcache.c (crl_parse_insert): Set error before leaping to
10859 dirmngr: Minor cleanup of the SRV RR code.
10860 + commit 949a5cfdabcafab93c1ac092c0459b59318805b9
10861 * dirmngr/dns-stuff.c: Include unistd.h.
10862 (getsrv): Run srand only once.
10863 * dirmngr/t-dns-stuff.c (main): Allow passing another name for --srv
10864 and change output format.
10866 dirmngr: Add a getaddrinfo wrapper backend using ADNS.
10867 + commit e026efb4363bc6e3c41ed533daf06f103ebd2e32
10868 * dirmngr/dns-stuff.c: Replace all use of default_errsource.
10869 (my_adns_init): Move to top.
10870 (resolve_name_adns): New.
10871 (resolve_dns_name) [USE_ADNS]: Divert to new func.
10873 2015-10-26 Werner Koch <wk@gnupg.org>
10875 gpg: Do not call an extra get_validity if no-show-uid-validity is used.
10876 + commit a6c2c098435a703ca02abf651ff4fa45e5a4db9a
10877 * g10/mainproc.c (check_sig_and_print): Do not call the informational
10878 get_validity if we are not going to use it.
10880 2015-10-26 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10882 gpg: Ensure all weak digest rejection notices are shown.
10883 + commit 91015d021b3dcbe21ad0e580a4f34c523abf9e72
10884 * g10/main.h: Add rejection_shown flag to each weakhash struct
10885 * g10/misc.c (print_digest_algo_note, additional_weak_digest): Do not
10886 treat MD5 separately; (print_digest_rejected_note): Use
10887 weakhash.rejection_shown instead of static shown.
10888 * g10/options.h (opt): Change from additional_weak_digests to
10890 * g10/sig-check.c: Do not treat MD5 separately.
10891 * g10/gpg.c (main): Explicitly set MD5 as weak.
10892 * g10/gpgv.c (main): Explicitly set MD5 as weak.
10894 2015-10-26 Werner Koch <wk@gnupg.org>
10896 w32: Make it build again if Tofu support is not available.
10897 + commit 0d37a40fc34519e93af3ceffff2cd726d29576d3
10898 * g10/keylist.c (public_key_list) [!USE_TOFU]: Do not call tofu
10901 dirmngr: Support Tor hidden services.
10902 + commit 4524a2a3714f263d56bb7db349c169b456994fd9
10903 * dirmngr/dns-stuff.c (is_onion_address): New.
10904 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add field "onion".
10905 (map_host): Special case onion addresses.
10906 (ks_hkp_print_hosttable): Print an 'O' for an onion address.
10907 * dirmngr/http.c (connect_server): Special case onion addresses.
10909 dirmngr,w32: Remove gethostbyname hack and make it build again.
10910 + commit 7735bbe539af35ce16e270946d5ae798c5989d6e
10911 * dirmngr/http.c (connect_server) [W32]: Remove gethostbyname hack;
10912 we require getaddrinfo anyway.
10913 * dirmngr/dns-stuff.c (AI_ADDRCONFIG): Add replacement if not defined.
10914 (map_eai_to_gpg_error) [W32]: Take care of unsupported codes.
10916 2015-10-26 Neal H. Walfield <neal@g10code.com>
10918 gpg: Make sure we only have a single SQL statement.
10919 + commit c18fb0d99b633bb267dead6e7c46229f4b780bc3
10920 * g10/tofu.c (sqlite3_stepx): Make sure SQL only contains a single SQL
10923 gpg: When the TOFU DB is in batch mode, periodically drop the locks.
10924 + commit 5b0ed7674dc718ee98e0c80aa93ce014f2b51411
10925 * g10/tofu.c: Include <sched.h>.
10926 (batch_update_started): New variable.
10927 (begin_transaction): If we've been in batch mode for a while, then
10928 commit any extant batch transactions.
10929 (tofu_begin_batch_update): If we are not in batch mode, initialize
10930 batch_update_started.
10932 2015-10-25 Werner Koch <wk@gnupg.org>
10934 dirmngr: Add workaround for broken getaddrinfo.
10935 + commit 5e7ac031f513ad3b60e4f092fa72b3bec0676515
10936 * dirmngr/dns-stuff.c (resolve_name_standard): On failure retry by
10937 first resolving the CNAME.
10938 (get_dns_cname): New.
10940 * dirmngr/t-dns-stuff.c (main): Add option --cname.
10942 dirmngr: Better handle systems without IPv6 or IPv4.
10943 + commit 0e3c9f184a5fb3e41277700d690febc2eee9600a
10944 * dirmngr/dns-stuff.c (resolve_name_standard): Use AI_ADDRCONFIG.
10946 dirmngr: Replace use of getnameinfo by resolve_dns_addr.
10947 + commit 927f34603d942868af6a7bd0f347681bbad76a94
10948 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Remove.
10949 (map_host): Use resolve_dns_addr.
10951 dirmngr: Implement a getnameinfo wrapper.
10952 + commit 816505958ac4308ee0dfe787d1b706982428b6cc
10953 * dirmngr/dns-stuff.h (DNS_NUMERICHOST): New.
10954 (DNS_WITHBRACKET): New.
10955 * dirmngr/dns-stuff.c (resolve_name_standard): Factor code out to...
10956 (map_eai_to_gpg_error): new.
10957 (resolve_addr_standard): New.
10958 (resolve_dns_addr): New.
10960 * dirmngr/ks-engine-hkp.c (is_ip_address): Move to ...
10961 * dirmngr/dns-stuff.c (is_ip_address): here. Add support for non
10962 bracketed v6 addresses.
10964 * dirmngr/t-dns-stuff.c: Remove header netdb.h.
10965 (main): Add option --bracket. Use resolve_dns_name instead of
10968 2015-10-23 Neal H. Walfield <neal@g10code.com>
10970 gpg: Provide an interface to patch TOFU updates.
10971 + commit 7f65e84ac035e8f7a25639a6b09eb6000115e337
10972 * g10/tofu.c (struct db): Rename begin_transaction to savepoint_batch.
10973 Rename end_transaction to savepoint_batch_commit. Update users.
10974 Remove field rollback. Add fields savepoint_inner and
10975 savepoint_inner_commit. Add field batch_update.
10976 (dump_cache): New function.
10977 (batch_update): New variable.
10978 (begin_transaction). New function.
10979 (end_transaction): New function.
10980 (rollback_transaction): New function.
10981 (tofu_begin_batch_update): New function.
10982 (tofu_end_batch_update): New function.
10983 (closedb): End any pending batch transaction.
10984 (closedbs): Assert that none of the DBs have a started batch
10985 transaction if we not in batch mode.
10986 (record_binding): Use the begin_transaction, end_transaction and
10987 rollback_transaction functions instead of including the SQL inline.
10988 Also start a batch mode transaction if we are using the flat format.
10989 (tofu_register): Use the begin_transaction, end_transaction and
10990 rollback_transaction functions instead of including the SQL inline.
10991 * g10/gpgv.c (tofu_begin_batch_update): New function.
10992 (tofu_end_batch_update): New function.
10993 * g10/test-stubs.c (tofu_begin_batch_update): New function.
10994 (tofu_end_batch_update): New function.
10996 gpg: Cache prepared SQL queries and open DB connections.
10997 + commit 297cf8660ce346638e42934d84d746768f8bb10a
10998 * g10/tofu.c: Include <stdarg.h>.
10999 (prepares_saved) [DEBUG_TOFU_CACHE]: New variable.
11000 (queries) [DEBUG_TOFU_CACHE]: New variable.
11001 (struct db): Add fields prevp, begin_transaction, end_transaction,
11002 rollback, record_binding_get_old_policy, record_binding_update,
11003 record_binding_update2, get_policy_select_policy_and_conflict,
11004 get_trust_bindings_with_this_email, get_trust_gather_other_user_ids,
11005 get_trust_gather_other_keys, register_already_seen, and
11007 [DEBUG_TOFU_CACHE]: Add field hits.
11008 (STRINGIFY): New macro.
11009 (STRINGIFY2): New macro.
11010 (enum sqlite_arg_type): New enum.
11011 (sqlite3_stepx): New function.
11012 (combined_db): Remove variable.
11013 (opendb): Don't cache the combined db.
11014 (struct dbs): New struct. Update users to use this as the head of the
11015 local DB list rather than overloading struct db.
11016 (unlink_db): New function.
11017 (link_db): New function.
11018 (db_cache): New variable.
11019 (db_cache_count): New variable.
11020 (DB_CACHE_ENTRIES): Define.
11021 (getdb): If the dbs specific cache doesn't include the DB, look at
11022 DB_CACHE. Only if that also doesn't include the DB open the
11024 (closedb): New function.
11025 (opendbs): Don't open the combined DB. Just return an initialized
11027 (closedbs): Don't close the dbs specific dbs. Attach them to the
11028 front of DB_CACHE. If DB_CACHE contains more than DB_CACHE_ENTRIES,
11029 close enough dbs from the end of the DB_CACHE list such that DB_CACHE
11030 only contains DB_CACHE_ENTRIES. Don't directly close the dbs, instead
11031 use the new closedb function.
11032 [DEBUG_TOFU_CACHE]: Print out some statistics.
11033 (record_binding): Use sqlite3_stepx instead of sqlite3_exec or
11034 sqlite3_exec_printf.
11035 (get_policy): Likewise.
11036 (get_trust): Likewise.
11037 (tofu_register): Likewise.
11039 gpg: Return the DBs meta-handle rather than the sqlite3 handle.
11040 + commit cd879d4bd69a578be5a1ff96497f8c1181885563
11041 * g10/tofu.c (getdb): Return a struct db * instead of an sqlite *.
11044 gpg: Use the proper type.
11045 + commit 3c4c89cc35280164b509977c5288b0a06d6f530e
11046 * g10/options.h: Include "tofu.h".
11047 (opt.tofu_default_policy): Change type to enum tofu_policy.
11048 * g10/gpgv.c (enum tofu_policy): Don't redeclare.
11049 * g10/test-stubs.c (enum tofu_policy): Likewise.
11051 2015-10-22 Werner Koch <wk@gnupg.org>
11053 dirmngr: Implement Tor mode for SRV RRs.
11054 + commit 8b06d7f41aec6cb993445935dba7c60e033d026a
11055 * dirmngr/dns-stuff.c (get_dns_cert): Factor adns init out to...
11056 (my_adns_init): new.
11057 (getsrv)[USE_ADNS]: Use my_adns_init.
11058 (getsrv)[!USE_ADNS]: Return an error if Tor mode is active.
11060 * dirmngr/t-dns-stuff.c: Add option --use-tor.
11062 dirmngr: Do not use MAXDNAME.
11063 + commit e03a4a94bb67d4a6c958b37671f83456e203f325
11064 * dirmngr/dns-stuff.c (getsrv): Replace MAXDNAME.
11065 * dirmngr/dns-stuff.h (MAXDNAME): Remove.
11066 (struct srventry): Use a fixed value instead of MAXDNAME.
11067 * dirmngr/http.c (connect_server): Use DIMof instead of MAXDNAME.
11068 Malloc a helper array.
11070 Move SRV RR code from common/ to dirmngr/.
11071 + commit 41bb01ae792af78edd28bf1b735cacc0b3ac428a
11072 * common/srv.c: Merge into dirmngr/dns-stuff.c. Delete file.
11073 * common/srv.h: Merge into dirmngr/dns-stuff.h. Delete file.
11074 * common/Makefile.am (common_sources): Remove srv.c and srv.h.
11075 * g10/keyserver.c: Do not include srv.h. The code using it is anyway
11077 * dirmngr/http.c: Remove header srv.h and stubs.
11078 * dirmngr/t-dns-stuff.c: Add option --srv.
11080 2015-10-21 Werner Koch <wk@gnupg.org>
11082 dirmngr: Use the new DNS wrapper for the HTTP module.
11083 + commit 1e34007c972c1d7730cfcacd88f6bbebba7dec1d
11084 * dirmngr/t-http.c (main): Init assuan sockets.
11085 * dirmngr/http.c: Include dns-stuff.h.
11086 (connect_server)[!HAVE_GETADDRINFO]: Remove all code.
11087 (connect_server): Change to use resolve_dns_name.
11089 dirmngr: Allow use of http.c if USE_NPTH is not defined.
11090 + commit b6af3377e14fad35b9c6041b11888cabce6e8a56
11091 * dirmngr/http.c (send_request): Always set the gnutls pull/push
11093 (my_npth_read): Rename to ...
11094 (my_gnutls_read) .. this. Use system read if !USE_NPTH.
11095 (my_npth_write): Rename to ...
11096 (my_gnutls_write) .. this. Use system write if !USE_NPTH.
11098 dirmngr: Check that getaddrinfo is available.
11099 + commit 6fafda979df8e7e117f8e6929bcce89513a6e746
11100 * dirmngr/Makefile.am (t_http_SOURCES): Add dns-stuff.c.
11101 (t_ldap_parse_uri_SOURCES): Ditto.
11102 * dirmngr/dns-stuff.c: Bail out if neither ADNS nor getaddrinfo is
11105 dirmngr: Use the new DNS wrapper for the HKP engine.
11106 + commit afbe87fa2d259b665b2d67a038a8535cfcfee094
11107 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change arg type to
11109 (map_host): Replace getaddrinfo by resolve_dns_name.
11111 dirmngr: Implement a getaddrinfo wrapper.
11112 + commit 8bccbf477878fd99baa96e11db9db99aaf1e8d91
11113 * dirmngr/dns-stuff.h: Include some header files.
11114 (dns_addinfo_t, dns_addrinfo_s): New.
11115 * dirmngr/dns-stuff.c: Always include DNS related headers.
11116 (free_dns_addrinfo): New.
11117 (resolve_name_standard): New.
11118 (resolve_dns_name): New.
11120 * dirmngr/t-dns-stuff.c: Include netdb.h.
11121 (main): Keep old default mode with no args but else print outout of
11122 resolve_dns_name. Revamp option parser.
11124 common: Add more replacement error codes.
11125 + commit ffe60eb3d2b8f7d6c506804ce4645d695c91f237
11126 * common/util.h (GPG_ERR_SERVER_FAILED): New.
11127 (GPG_ERR_NO_KEY): New.
11128 (GPG_ERR_NO_NAME): New.
11130 2015-10-21 Neal H. Walfield <neal@g10code.com>
11132 gpg: If the saved trust model is unknown, default to tofu+pgp.
11133 + commit 9afeb4cca10c3632495fe71b23df99a4878bd3a5
11134 * g10/trustdb.c (init_trustdb): If the saved trust model is unknown,
11135 default to tofu+pgp instead of pgp.
11137 gpg: Don't accidentally free UTK_LIST.
11138 + commit 8c3b7915d675ca5346c17244654d5c6ab583ac44
11139 * g10/trustdb.c (validate_keys): Don't free UTK_LIST.
11141 gpg: When evaluating trust reg exps, treat tofu+pgp like pgp.
11142 + commit cbaca254ac818c49c18d4480d3c7bd246cc57ae8
11143 * g10/trustdb.c (validate_one_keyblock): When checking trust regular
11144 expressions, treat the tofu+pgp trust model the same as the pgp trust
11147 gpg: If a key is ultimate trusted, return that in the tofu model.
11148 + commit df57390d68482c5b3fa5ff3a42a29ae1b6cbb23c
11149 * g10/tofu.c (get_trust): If the policy is auto or none, check if the
11150 key is ultimately trusted. If so, return that.
11151 (tofu_register): If the key is ultimately trusted, don't show any
11153 (tofu_get_validity): Likewise.
11155 gpg: Keep the trust DB up to date for the tofu and tofu+pgp models.
11156 + commit d05ff81732e20e6f9d6d7a6281a96a312b001abb
11157 * g10/trustdb.c (init_trustdb): Recognize tofu and tofu+pgp as
11158 possibly saved trust models. Also register the ultimately trusted
11159 keys if the trust model is tofu or tofu+pgp.
11160 (check_trustdb): Don't skip if the trust model is tofu or tofu+pgp.
11161 (update_trustdb): Likewise.
11162 (tdb_check_trustdb_stale): Likewise.
11163 (validate_keys): If the trust model is TOFU, just write out the
11164 ultimately trusted keys.
11166 gpg: Factor out code into a standalone function.
11167 + commit 243f90afba87e99ca42e2451ac5cc59d00a044ac
11168 * g10/trustdb.c (tdb_keyid_is_utk): New function.
11171 dirmngr: Allow building with libassuan < 2.3.
11172 + commit a79045e38d239a7f6e787cf7c1132772c737cc0e
11173 * dirmngr/http.c (send_request): Use newer assuan function only if
11176 2015-10-21 Neal H. Walfield <neal@g10code.com>
11177 Andre Heinecke <aheinecke@intevation.de>
11179 gpg: Make the tofu DB check and initialization atomic.
11180 + commit 85bd7d9491f8cc13c2b03f19b4f70ea13b45c704
11181 * g10/tofu.c (initdb): Make the version check and the database
11182 initialization atomic.
11184 2015-10-21 Werner Koch <wk@gnupg.org>
11186 build: Make --disable-g13 the default.
11187 + commit 485e0a221deb5c68f29b6a7a110b349dbe41c027
11188 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add --enable-g13. Remove
11189 --enable-gpgtar because that is enabled anyway.
11190 * configure.ac: Do not build g13 by default.
11192 dirmngr: Rename file dns-cert.c.
11193 + commit 5055b617a94587580bc16a56bb82333077b05693
11194 * dirmngr/dns-cert.c: Rename to dirmngr/dns-stuff.c.
11195 * dirmngr/dns-cert.h: Rename to dirmngr/dns-stuff.h and change
11197 * dirmngr/t-dns-cert.c: Rename to dirmngr/t-dns-stuff.c.
11198 * dirmngr/Makefile.am: Adjust.
11200 common: Add status code for use by g13.
11201 + commit 42571a38344e39f747315f754700a8181b8744fe
11202 * common/status.h (STATUS_PLAINTEXT_FOLLOWS): New.
11204 2015-10-20 Werner Koch <wk@gnupg.org>
11206 dirmngr: Prefer ADNS over system resolver.
11207 + commit 58ebe50bdf4837e9ab2d3f8c6e5fcf28c66f26e9
11208 * configure.ac (HAVE_ADNS_IF_TORMODE): New ac_define.
11209 (USE_DNS_CERT): Prefer ADNS over the system resolver.
11210 * dirmngr/dns-cert.c (tor_mode): New global var.
11211 (enable_dns_tormode): New func.
11212 (get_dns_cert): Use DNS resolver at 8.8.8.8 in tor-mode.
11213 * dirmngr/server.c (cmd_dns_cert): If supported allow DNS requests.
11215 w32: Allow building again.
11216 + commit c83b627174f46e841f1ccc018322fe499969c267
11217 * dirmngr/http.c (connect_server): Fix called function name.
11219 build: Allow building without SQLlite support.
11220 + commit 734c61dc9d4915605816803182c9adcc1594e008
11221 * configure.ac: Add option --dsiable-tofu and --disable-sqlite.
11222 (NEED_SQLITE_VERSION): New var.
11223 (USE_TOFU): New ac_define and am_conditional.
11224 * autogen.sh (build-w32): Add PKG_CONFIG_LIBDIR to configure so that
11225 pkg-config find the correct .pc file.
11227 * g10/Makefile.am (tofu_source): New. Build only if enabled.
11228 * g10/gpg.c (parse_trust_model)[!USE_TOFU]: Disable tofu models.
11229 (parse_tofu_policy)[!USE_TOFU]: Disable all.
11230 (parse_tofu_db_format)[!USE_TOFU]: Disable all.
11231 (main) <aTOFUPolicy>[!USE_TOFU]: Skip.
11232 * g10/keyedit.c (show_key_with_all_names_colon)[!USE_TOFU]: Do not
11233 call tofu functions.
11234 * g10/keylist.c (list_keyblock_colon)[!USE_TOFU]: Ditto.
11235 * g10/trustdb.c (tdb_get_validity_core)[!USE_TOFU]: Skip tofu
11238 2015-10-20 Neal H. Walfield <neal@g10code.com>
11240 gpg: Don't die immediately if the TOFU DB is locked.
11241 + commit 26d457c218c2e93b2e2cf316f0c1074c70894d0f
11242 * g10/tofu.c (opendb): Don't die immediately if the DB is locked.
11244 gpg: Improve output.
11245 + commit bc9ff6c85e2d89be4ee873b8a72a214759a66157
11246 * g10/tofu.c (get_trust): Also show the binding when indicating a
11249 gpg: Synchronize translation template.
11250 + commit 251c070f91e2c65baa3f1195f14a176440a8aafa
11251 * g10/tofu.c (show_statistics): Synchronize translation template.
11253 gpg: When showing conflicts, also show bindings with no recorded sigs.
11254 + commit d3eca517745a862432fcfeaa729e5333b15ffa6a
11255 * g10/tofu.c (signature_stats_collect_cb): If the time_ago column is
11256 NULL, then both time_ago and count should be 0.
11257 (get_trust): Reverse the direction of the join so that we also get
11258 statistics about bindings without any signatures.
11261 + commit 445f94bc81b20959a667a4ad80ea6c73059540bf
11262 * g10/tofu.c (show_statistics): Improve text.
11264 gpg: Use the right variable to display the information.
11265 + commit 4957e3236796979b58f35628351505ea5f4e936a
11266 * g10/tofu.c (get_trust): Use the right variable to display the
11269 gpg: Make failing to create a directory a soft error.
11270 + commit eb8a0b051faa03584b3820200e10301936e82f51
11271 * g10/tofu.c (getdb): Don't exit if we can't create the directory.
11272 Just return an error.
11274 common: Make sure tilde expansion works for the mkdir functions.
11275 + commit c3bb9fccb7963a0918b9ec6a4f10d568fac7c125
11276 * common/mkdir_p.c (gnupg_amkdir_p): Use make_filename_try on the
11277 first directory component as well.
11279 gpg: Remove unused prototype digest_algo_from_sig.
11280 + commit d1a0b520b15bb941cdbf66c2e832c617af778ac8
11281 * g10/packet.h (digest_algo_from_sig): Remove prototype without a
11282 corresponding implementation.
11284 2015-10-19 Werner Koch <wk@gnupg.org>
11286 dirmngr: Allow building with libassuan < 2.3.
11287 + commit 4e42ad300b3de9fab25095a9e82431b1ea2740e7
11288 * dirmngr/dirmngr.c (set_tor_mode): Use newer assuan function only if
11290 * dirmngr/http.c (http_raw_connect): Ditto.
11292 2015-10-19 Neal H. Walfield <neal@g10code.com>
11294 gpg: Fix --desig-revoke.
11295 + commit c37621166e9cc2a818de73bc99287a393dbb5744
11296 * g10/revoke.c (gen_desig_revoke): Add additional parameter ctrl.
11297 Check that the secret key is available. If not, display an error
11300 gpg: Improve function documentation and some comments.
11301 + commit a608ee750dd83bf77a5fb4f0ab5bcf812436ba4d
11302 * g10/main.h: Improve function documentation.
11303 * g10/packet.h.h: Improve function documentation.
11304 * g10/sig-check.c: Improve function documentation and some comments.
11306 gpg: Improve and regularize naming of signature checking functions.
11307 + commit 0433e667029508d6933e8798d3d95bcdde70a7aa
11308 * g10/packet.h (signature_check): Rename from this...
11309 (check_signature): ... to this. Update users.
11310 (signature_check2): Rename from this...
11311 (check_signature2): ... to this. Update users.
11312 * g10/sig-check.c (do_check): Rename from this...
11313 (check_signature_end): ... to this. Update users.
11314 (do_check_messages): Rename from this...
11315 (check_signature_metadata_validity): ... to this. Update users.
11317 gpg: Mark local function as static.
11318 + commit 547a1b3fb881bb8581d03dbf4eacf49163eaa4b5
11319 * g10/tdbio.c (put_record_into_cache): Mark as static.
11321 2015-10-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
11323 gpg: Print warning when rejecting weak digests.
11324 + commit b98939812abf6c643c752ce7c325f98039a1a9e2
11325 * g10/misc.c (print_md5_rejected_note): Rename to ..
11326 (print_digest_rejected_note): this. Parameterize function to take an
11327 enum gcry_md_algos.
11328 * g10/sig-check.c: Use print_digest_rejected_note() when rejecting
11331 gpg: Add option --weak-digest to gpg and gpgv.
11332 + commit 76afaed65e3b0ddfa4923cb577ada43217dd4b18
11333 * g10/options.h: Add additional_weak_digests linked list to opts.
11334 * g10/main.h: Declare weakhash linked list struct and
11335 additional_weak_digest() function to insert newly-declared weak
11337 * g10/misc.c: (additional_weak_digest): New function.
11338 (print_digest_algo_note): Check for deprecated digests; use proper
11339 gcry_md_algos type.
11340 * g10/sig-check.c: (do_check): Reject weak digests in addition to MD5.
11341 * g10/gpg.c: Add --weak-digest option to gpg.
11342 * doc/gpg.texi: Document gpg --weak-digest option.
11343 * g10/gpgv.c: Add --weak-digest option to gpgv.
11344 * doc/gpgv.texi: Document gpgv --weak-digest option.
11346 2015-10-19 Werner Koch <wk@gnupg.org>
11348 dirmngr: Make --use-tor work - still leaks DNS.
11349 + commit 6983fd131f648ba4acd57b266de9868911874d14
11350 * dirmngr/dirmngr.c (set_tor_mode): New.
11351 (main, reread_configuration): Call it.
11352 * dirmngr/http.c (http_raw_connect, send_request): Check whether TOR
11353 mode is enabled if the FORCE_TOR flag is given.
11355 dirmngr: Use Assuan socket wrappers for http.c.
11356 + commit 8c609eaf35b547f02979ef0b206520dd0853b294
11357 * dirmngr/http.c: Include assuan.h. Changed all code taking a socket
11358 descriptor from int to assuan_fd_t.
11359 (my_unprotect, my_protect): New.
11360 (my_connect): Remove.
11361 (_my_socket_new, _my_socket_unref): use assuan_sock_close.
11362 (connect_server): Use assuan_sock_connect, assuan_sock_new, and
11364 * dirmngr/Makefile.am (t_common_ldadd): Add LIBASSUAN_LIBS.
11366 2015-10-19 Neal H. Walfield <neal@g10code.com>
11368 gpg: Fix formatting.
11369 + commit 253afa244487dd8129816615ac2865c9fe812aaf
11370 * g10/tofu.c (get_trust): Fix formatting.
11372 gpg: Don't forget to free some memory.
11373 + commit e56a116f9a1171ccf8b3293887a217953a46fc20
11374 * g10/tofu.c (tofu_register): Free SIG_DIGEST before returning.
11376 gpg: If a conflict occurs in batch mode, record that.
11377 + commit 55d88454652543c98d74376977d855e394df6c92
11378 * g10/tofu.c (get_trust): If a conflict occurs when MAY_ASK is false,
11379 set conflict to the key. When prompting the user, don't show the
11380 conflicting key if the conflicting key is the current key.
11382 2015-10-18 Werner Koch <wk@gnupg.org>
11384 gpg: Silence two more warnings.
11385 + commit c2c400714854d5a127a6966200d345d0d6cfc7d4
11386 * g10/trustdb.c (tdb_get_validity_core): Silence a warning.
11387 * g10/tofu.c (tofu_register): Move SIG_DIGEST computation to the top
11388 so that it is not uninitialized in case of an early error.
11390 gpg: Fix harmless compiler warnings.
11391 + commit 558bcd43ae0a841cf1e58e06f5d72a19d5bc70cd
11392 * g10/tofu.h (_tofu_GET_POLICY_ERROR): New. This avoids warnings
11393 about undefined enum values in a switch.
11394 * g10/trustdb.h (_tofu_GET_TRUST_ERROR): New.
11395 * g10/tofu.c (TIME_AGO_FUTURE_IGNORE): Move to the top.
11396 (opendbs): Avoid compiler warning (use braces).
11397 (GET_POLICY_ERROR): Replace define by enum _tofu_GET_POLICY_ERROR.
11398 (get_policy): Remove assert.
11399 (GET_TRUST_ERROR): Replace by _tofu_GET_TRUST_ERROR macro.
11400 (show_statistics): Undef MIN_SECS et al. after use.
11402 common: Avoid warning about const char ** assignment.
11403 + commit e64c805b0c270d859ddf2c35d573110cf25e8d48
11404 * common/mkdir_p.c (gnupg_amkdir_p): Also strdup first item. Return
11405 an error on malloc failure.
11406 (gnupg_mkdir_p): Fix type of dirs and tmp_dirs.
11408 Move http module from common/ to dirmngr/.
11409 + commit 5aa1b392b1bf6fcf4cd380862c5affac39a4f34d
11410 * common/http.c: Move to ../dirmngr/.
11411 * common/http.h: Move to ../dirmngr/.
11412 * common/t-http.c: Move to ../dirmngr/.
11413 * common/tls-ca.pem: Move to ../dirmngr/.
11414 * common/Makefile.am: Do not build libcommontls.a libcommontlsnpth.a.
11415 Remove http.c related stuff.
11416 * po/POTFILES.in: Move http.c to dirmngr/.
11417 * dirmngr/Makefile.am (EXTRA_DIST): Add tls-ca.pem.
11418 (module_maint_tests): New.
11419 (noinst_PROGRAMS): Add module_maint_tests.
11420 (dirmngr_SOURCES): Add http.c and http.h.
11421 (dirmngr_LDADD): Remove libcommontlsnpth.
11422 (t_common_ldadd): Ditto.
11423 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
11424 (t_ldap_parse_uri_SOURCES): Add http.c.
11425 (t_ldap_parse_uri_CFLAGS): Build without npth.
11426 ($(PROGRAMS)): Do not require libcommontls.a libcommontlsnpth.a.
11427 * dirmngr/dirmngr.h, dirmngr/ks-engine.h: Fix include of http.h.
11429 2015-10-18 Neal H. Walfield <neal@g10code.com>
11432 + commit 128a456e775edf393d47e40bb9ae8b62434e2978
11433 * g10/tofu.c (get_trust): Fix assert.
11435 g10: Add TOFU support.
11436 + commit f77913e0ff7be4cd9c6337a70ac715e6f4a43572
11437 * configure.ac: Check for sqlite3.
11438 (SQLITE3_CFLAGS): AC_SUBST it.
11439 (SQLITE3_LIBS): Likewise.
11440 * g10/Makefile.am (AM_CFLAGS): Add $(SQLITE3_CFLAGS).
11441 (gpg2_SOURCES): Add tofu.h and tofu.c.
11442 (gpg2_LDADD): Add $(SQLITE3_LIBS).
11443 * g10/tofu.c: New file.
11444 * g10/tofu.h: New file.
11445 * g10/options.h (trust_model): Define TM_TOFU and TM_TOFU_PGP.
11446 (tofu_db_format): Define.
11447 * g10/packet.h (PKT_signature): Add fields digest and digest_len.
11448 * g10/gpg.c: Include "tofu.h".
11449 (cmd_and_opt_values): Declare aTOFUPolicy, oTOFUDefaultPolicy,
11452 (parse_trust_model): Recognize the tofu and tofu+pgp trust models.
11453 (parse_tofu_policy): New function.
11454 (parse_tofu_db_format): New function.
11455 (main): Initialize opt.tofu_default_policy and opt.tofu_db_format.
11456 Handle aTOFUPolicy, oTOFUDefaultPolicy and oTOFUDBFormat.
11457 * g10/mainproc.c (do_check_sig): If the signature is good, copy the
11458 hash to SIG->DIGEST and set SIG->DIGEST_LEN appropriately.
11459 * g10/trustdb.h (get_validity): Add arguments sig and may_ask. Update
11461 (tdb_get_validity_core): Add arguments sig and may_ask. Update
11463 * g10/trust.c (get_validity) Add arguments sig and may_ask. Pass them
11464 to tdb_get_validity_core.
11465 * g10/trustdb.c: Include "tofu.h".
11466 (trust_model_string): Handle TM_TOFU and TM_TOFU_PGP.
11467 (tdb_get_validity_core): Add arguments sig and may_ask. If
11468 OPT.TRUST_MODEL is TM_TOFU or TM_TOFU_PGP, compute the TOFU trust
11469 level. Combine it with the computed PGP trust level, if appropriate.
11470 * g10/keyedit.c: Include "tofu.h".
11471 (show_key_with_all_names_colon): If the trust mode is tofu or
11472 tofu+pgp, then show the trust policy.
11473 * g10/keylist.c: Include "tofu.h".
11474 (public_key_list): Also show the PGP stats if the trust model is
11476 (list_keyblock_colon): If the trust mode is tofu or
11477 tofu+pgp, then show the trust policy.
11478 * g10/pkclist.c: Include "tofu.h".
11479 * g10/gpgv.c (get_validity): Add arguments sig and may_ask.
11480 (enum tofu_policy): Define.
11481 (tofu_get_policy): New stub.
11482 (tofu_policy_str): Likewise.
11483 * g10/test-stubs.c (get_validity): Add arguments sig and may_ask.
11484 (enum tofu_policy): Define.
11485 (tofu_get_policy): New stub.
11486 (tofu_policy_str): Likewise.
11487 * doc/DETAILS: Describe the TOFU Policy field.
11488 * doc/gpg.texi: Document --tofu-set-policy, --trust-model=tofu,
11489 --trust-model=tofu+pgp, --tofu-default-policy and --tofu-db-format.
11490 * tests/openpgp/Makefile.am (TESTS): Add tofu.test.
11491 (TEST_FILES): Add tofu-keys.asc, tofu-keys-secret.asc,
11492 tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and tofu-EE37CF96-1.txt.
11493 (CLEANFILES): Add tofu.db.
11494 (clean-local): Add tofu.d.
11495 * tests/openpgp/tofu.test: New file.
11496 * tests/openpgp/tofu-2183839A-1.txt: New file.
11497 * tests/openpgp/tofu-BC15C85A-1.txt: New file.
11498 * tests/openpgp/tofu-EE37CF96-1.txt: New file.
11499 * tests/openpgp/tofu-keys.asc: New file.
11500 * tests/openpgp/tofu-keys-secret.asc: New file.
11502 2015-10-16 Neal H. Walfield <neal@g10code.com>
11504 common: Prefix the mkdir functions with gnupg_. Make args const.
11505 + commit 93e855553eba03f5c31682e0aaf39f18f29860b7
11506 * common/mkdir_p.h (mkdir_p): Rename from this...
11507 (gnupg_mkdir_p): ... to this. Change directory_component's type from
11508 char * to const char *.
11509 (amkdir_p): Rename from this...
11510 (gnupg_amkdir_p): ... to this. Change directory_component's type from
11511 char * to const char *.
11512 * common/mkdir_p.c (mkdir_p): Rename from this...
11513 (gnupg_mkdir_p): ... to this. Change directory_component's type from
11514 char * to const char *.
11515 (amkdir_p): Rename from this...
11516 (gnupg_amkdir_p): ... to this. Change directory_component's type from
11517 char * to const char *.
11519 2015-10-14 NIIBE Yutaka <gniibe@fsij.org>
11521 cleanup: Fix confusion between gpg_error_t and gpg_err_code_t.
11522 + commit 3de5ef759895837fe499cff7fb1fa7798e6d5754
11523 * dirmngr/crlcache.c (hash_dbfile): Use gpg_error_t for ERR.
11524 * kbx/keybox-update.c (keybox_set_flags): Call
11525 gpg_err_code_from_syserror.
11527 2015-10-13 NIIBE Yutaka <gniibe@fsij.org>
11529 po: Update Japanese translation.
11530 + commit 0b4ebc398cc8aad3f25f84034cd6b129e55f1368
11533 2015-10-12 Werner Koch <wk@gnupg.org>
11535 gpg: Try hard to use MDC also for sign+symenc.
11536 + commit 4584125802be11833a5b289e864b45eedc2b45fd
11537 * g10/encrypt.c (use_mdc): Make it a global func.
11538 * g10/sign.c (sign_symencrypt_file): Use that function to decide
11539 whether to use an MDC.
11540 * tests/openpgp/conventional-mdc.test: Add a simple test case.
11542 2015-10-09 Werner Koch <wk@gnupg.org>
11545 + commit 086b8738f71ba26d36287db81f6d78116053ba66
11548 2015-10-09 NIIBE Yutaka <gniibe@fsij.org>
11550 agent: simplify agent_get_passphrase.
11551 + commit 5a12c45666cd16bc750d7f0e63620c295feb77ea
11552 * agent/call-pinentry.c (agent_get_passphrase): Simplify.
11554 agent: fix agent_askpin.
11555 + commit 818fa4f71e1056831b35d0f8aff715c0e1d537e6
11556 * agent/call-pinentry.c (agent_askpin): Fix off-by-one error.
11558 agent: Fix function return type for check_cb and agent_askpin.
11559 + commit f70f6695368444d8058305ab696e5e5a1bace18c
11560 * agent/call-pinentry.c (unlock_pinentry): Return gpg_error_t.
11561 (start_pinentry, setup_qualitybar): Likewise.
11562 (agent_askpin): Fix return value check of check_cb.
11563 * agent/command-ssh.c (reenter_compare_cb): Return gpg_error_t.
11564 (ssh_identity_register): Fix return value check of agent_askpin.
11565 * agent/cvt-openpgp.c (try_do_unprotect_cb): Return gpg_error_t.
11566 * agent/findkey.c (try_unprotect_cb): Likewise.
11567 * agent/genkey.c (reenter_compare_cb): Return gpg_error_t.
11568 (agent_ask_new_passphrase): Fix return value check of agent_askpin.
11570 2015-10-08 Andre Heinecke <aheinecke@intevation.de>
11572 dirmngr: Default to http protocol for http-proxy.
11573 + commit ea079d283de6bf4ac70d7530fac70938e7c5e8f5
11574 * common/http.c (send_request): Fix handling for hostname:port string.
11576 2015-10-08 Werner Koch <wk@gnupg.org>
11578 common: Allow building of mkdir_p.c for Windows.
11579 + commit 4c298525903f844eee95ecbcdc45f5ac034fa148
11580 * common/mkdir_p.c: Change license and comment debug statements.
11581 (amkdir_p, mkdir_p): Fail on malloc error and use default_errsource to
11582 build an error code. Change return value to gpg_error_t.
11583 (amkdir_p): Use gnupg_mkdir.
11585 * common/membuf.c: Include util.h first to avoid redefined macro
11588 gpg: Add option --print-dane-records.
11589 + commit d7b8e76f9930750d669405dee3108c9bc8e87b91
11590 * g10/options.h (opt): Add field "print_dane_records".
11591 * g10/gpg.c (oPrintDANERecords): new.
11592 (opts): Add --print-dane-records.
11593 (main): Set that option.
11594 * g10/export.c (do_export): Remove EXPORT_DANE_FORMAT handling.
11595 (do_export_stream): Add EXPORT_DANE_FORMAT handling.
11596 * g10/keylist.c (list_keyblock_pka): Implement DANE record printing.
11598 * g10/gpgv.c (export_pubkey_buffer): New stub.
11599 * g10/test-stubs.c (export_pubkey_buffer): New stub.
11601 gpg: Pass CTRL parameter to all key listing functions.
11602 + commit b6d621583fc9cbda6f9376a24f2f4cf11499a4fd
11603 * g10/keylist.c (public_key_list): Add arg CTRL.
11604 (secret_key_list): Ditto.
11605 (list_all, list_one): Ditto.
11606 (locate_one): Ditto.
11607 (list_keyblock_pka): Ditto.
11608 (list_keyblock): Ditto.
11609 (list_keyblock_direct): Ditto.
11610 * g10/keygen.c (proc_parameter_file): Add arg CTRL.
11611 (read_parameter_file): Ditto.
11612 (quick_generate_keypair): Ditto.
11613 (do_generate_keypair): Ditto.
11614 (generate_keypair): Pass arg CTRL.
11615 * g10/gpg.c (main): Pass arg CTRL to quick_generate_keypair.
11617 2015-10-07 Werner Koch <wk@gnupg.org>
11619 gpg: Remove unfinished experimental code to export as S-expressions.
11620 + commit a400958323d93036dca9c63135b167012ea64f8b
11621 * g10/options.h (EXPORT_SEXP_FORMAT): Remove.
11622 (EXPORT_DANE_FORMAT): New.
11623 * g10/export.c (parse_export_options): Remove "export-sexp-format".
11624 (export_seckeys): Adjust for removed option.
11625 (export_secsubkeys): Ditto.
11626 (do_export): Prepare for DANE format.
11627 (build_sexp, build_sexp_seckey): Remove.
11628 (do_export_stream): Remove use of removed functions.
11630 2015-10-06 Werner Koch <wk@gnupg.org>
11632 gpg: Add new --auto-key-locate mechanism "dane".
11633 + commit 9ac31f91b10059474da1c9580fb99e94278d4c11
11634 * g10/call-dirmngr.c (gpg_dirmngr_dns_cert): Allow fetching via DANE.
11635 * g10/keyserver.c (keyserver_import_cert): Add arg "dane_mode".
11636 * g10/options.h (AKL_DANE): New.
11637 * g10/getkey.c (get_pubkey_byname): Implement AKL_DANE.
11638 (parse_auto_key_locate): Ditto.
11640 dirmngr: Addlow fetching keys using OpenPGP DANE.
11641 + commit 264a81d82737369ee8beef771cf2bd2cd874320a
11642 * dirmngr/server.c (cmd_dns_cert): Add option --dane.
11644 dirmngr: Improve DNS code to retrieve arbitrary records.
11645 + commit 211b8084ee4391baec35e8c5bd75a9ecbcb889a7
11646 * dirmngr/dns-cert.c (get_dns_cert): Add hack to retrieve arbitrary
11648 * dirmngr/dns-cert.h (DNS_CERTTYPE_RRBASE): New.
11649 (DNS_CERTTYPE_RR61): New.
11651 dirmngr: Change DNS code to make additions easier.
11652 + commit 6cf80dc77ec5df3722924301ff4be2475966937b
11653 * dirmngr/dns-cert.c (get_dns_cert) [!USE_ADNS]: Change loop to allow
11654 adding more resource types.
11656 dirmngr: Make commands RELOADDIRMNGR and KILLDIRMNGR work properly.
11657 + commit 7faf45effcd47d2d04d35090a1e01a1dbb99ec70
11658 * dirmngr/server.c (cmd_killdirmngr): Set assuan close flag.
11659 (cmd_reloaddirmngr): Use check_owner_permission.
11661 dirmngr: Do tilde expansion for --hkp-cacert.
11662 + commit 9db6547a00cded92c00c8f8382b1b605be1027d2
11663 * dirmngr/dirmngr.c (parse_rereadable_options): Do tilde expansion and
11664 check for cert file existance in option --hkp-cacert.
11666 gpg: Fail decryption for AES etc message w/o MDC.
11667 + commit 625e292108cc0fd9077769587a8c22abe7805e33
11668 * g10/mainproc.c (proc_encrypted): Fail for modern messages w/o MDC.
11670 2015-10-06 NIIBE Yutaka <gniibe@fsij.org>
11672 agent: Fix verification of signature for smartcard.
11673 + commit 4a5bd1720f5a3dbb26f5daeb03725cae29be7e24
11674 * agent/pksign.c (agent_pksign_do): Use public key smartcard.
11676 agent: Fix non-allocation for pinentry_loopback.
11677 + commit ce2a84b58833fd308d5fe11756721f39c953280a
11678 * agent/call-pinentry.c (agent_get_passphrase): Don't allocate, it will
11679 be allocated by pinentry_loopback.
11681 2015-10-05 Werner Koch <wk@gnupg.org>
11683 gpg: Install a dirmngr.conf file.
11684 + commit f3959f14b6c496c726bbca5230becb7b6844a234
11685 * g10/dirmngr-conf.skel: New.
11686 * g10/Makefile.am (EXTRA_DIST): Add file.
11687 (install-data-local, uninstall-local): Install that file.
11688 * g10/openfile.c (copy_options_file): Add arg "name", return a value,
11689 simplify with xstrconcat, and factor warning message out to:
11690 (try_make_homedir): here. Also install dirmngr.conf.
11691 * g10/options.skel: Remove --keyserver entry.
11693 gpg: Deprecate the --keyserver option.
11694 + commit ae471fa978589fb61ecb0f89bbfe4d43cf2d5eac
11695 * g10/keyserver.c (keyserver_refresh): Change return type to
11696 gpg_error_t. Use gpg_dirmngr_ks_list to print the name of the
11698 (keyserver_search): Do not print the "no keyserver" error
11699 message. The same error is anyway returned from dirmngr.
11700 * g10/call-dirmngr.c (ks_status_parm_s): Add field "keyword".
11701 (ks_status_cb): Handle other status keywords.
11702 (gpg_dirmngr_ks_list): New.
11703 * tools/gpgconf-comp.c (gc_options_gpg): Deprecate "keyserver".
11704 (gc_options_dirmngr): Add "Keyserver" group and "keyserver".
11706 dirmngr: Add option --keyserver.
11707 + commit a48e6de603c3a312f02b1b5fdb813032eeae9074
11708 * dirmngr/dirmngr.c (oKeyServer): New.
11709 (opts): Add "keyserver".
11710 (parse_rereadable_options): Parse that options
11711 (main): Add option to the gpgconf list.
11712 * dirmngr/dirmngr.h (opt): Add field "keyserver".
11713 * dirmngr/server.c (ensure_keyserver): New.
11714 (make_keyserver_item): New. Factored out from
11715 (cmd_keyserver): here. Call ensure_keyserver.
11716 (cmd_ks_search): Call ensure_keyserver.
11717 (cmd_ks_get): Ditto.
11718 (cmd_ks_fetch): Ditto.
11719 (cmd_ks_put): Ditto.
11721 dirmngr: Make clear that --use-tor is not yet ready for use.
11722 + commit 438730323a5d9bbf8dd5cd60d479b6c03f8721d0
11723 * dirmngr/dirmngr.c (main): Print a warning if --use-tor has been
11725 * tools/gpgconf-comp.c (gc_options_dirmngr): Make --use-tor invisible.
11727 gpgconf: Change displayed name of Dirmngr to "Key Acquirer".
11728 + commit c6400c1aa82239f1c154ca27596600cae964515d
11729 * tools/gpgconf-comp.c (gc_component): Change printed name.
11731 2015-10-02 Werner Koch <wk@gnupg.org>
11733 dirmngr: Fix use-after-free due to a realloc shrinking.
11734 + commit 75c64c2b6d77856b90903cc3b7c6a2f62ff8eb7b
11735 * dirmngr/ks-engine-hkp.c (map_host): Do not use original pointer
11738 agent: Fix alignment problem with the second passphrase struct.
11739 + commit ddf9dd135acd2b3635bb986f6dfc0e4e446d5fad
11740 * agent/genkey.c (agent_ask_new_passphrase): Use a separate malloc for
11741 PI2. Check return value of the malloc function.
11742 * agent/command-ssh.c (ssh_identity_register): Use a separate malloc
11745 2015-10-01 Werner Koch <wk@gnupg.org>
11747 gpg: Fix a practical hang after use of --faked-system-time.
11748 + commit 2acceba5cc299796c7b5b1851a9baeb75d9f32a1
11749 * g10/sign.c (update_keysig_packet): Bail out if we would need to long
11750 for a new timestamp.
11752 gpg: Print more info with "check selfsig".
11753 + commit 2c60663a72f090573c4869e305b098b4b1fb23bd
11754 * g10/keyedit.c (print_and_check_one_sig): Print more Some sigsub
11757 gpg: Add debug helper to --edit-keys's check sub-command.
11758 + commit 13a3f65968f4a8205ca664cc46b1a53de4dc489b
11759 * g10/keyedit.c (print_and_check_one_sig): Add arg "extended" and
11760 print an asterisk for the chosen selfsig.
11761 (check_all_keysigs): Add arg "only_selfsig"
11762 (keyedit_menu) <cmdCHECK>: Add optional arg "selfsig".
11764 2015-10-01 NIIBE Yutaka <gniibe@fsij.org>
11766 common: Fix strsplit.
11767 + commit a9895a5a72a851c5fcc70f16d5f8f588cc885751
11768 * common/stringhelp.c (strsplit): Fix arguments order.
11770 2015-09-30 Neal H. Walfield <neal@g10code.com>
11772 common: Add mkdir_p.
11773 + commit c8584a1e559bc720412e1a2fc546a54ff4517205
11774 * common/mkdir_p.c: New file.
11775 * common/mkdir_p.h: New file.
11776 * common/Makefile.am (common_sources): Add mkdir_p.c and mkdir_p.h.
11778 common: Remove unused files.
11779 + commit 5576146ede40b42bc632fd9697dd429a4d1409cf
11780 * common/xmalloc.c: Remove file.
11781 * common/xmalloc.h: Remove file.
11783 common: Include <gpg-error.h>.
11784 + commit 270d3f55f9193ebda5e1b642d58daf905019914d
11785 * common/logging.h: Include <gpg-error.h>.
11787 2015-09-29 Neal H. Walfield <neal@g10code.com>
11789 g10: Remove unused struct cmp_help_context_s.
11790 + commit 8ab63e4b5018044ecfb0b9910412487066886826
11791 * g10/sig-check.c (struct cmp_help_context_s) Remove unused struct.
11793 g10: Avoid an unnecessary copy.
11794 + commit 12443eafa6e19b94a8b554126423e2a5ccc2dd7e
11795 * g10/sig-check.c (signature_check2): Avoid copying PK to RET_PK.
11796 Instead, directly use the provided storage. If none is provided
11799 2015-09-29 NIIBE Yutaka <gniibe@fsij.org>
11801 ssh: Fix fingerprint computation for EdDSA key.
11802 + commit 5c067d54d349fdfb3243634789c8841515d2c28f
11803 * common/ssh-utils.c (get_fingerprint): Handle the prefix of 0x40.
11804 * common/t-ssh-utils.c (sample_keys): Add a new key.
11806 agent: RSA signature verification by gpg-agent.
11807 + commit cfbe6ba9cf1414e9aa4977e2bbaecaa43154b2ae
11808 * g10/sign.c (do_sign): Let verify signature by gpg-agent.
11809 * agent/pksign.c (agent_pksign_do): Call gcry_pk_verify for RSA.
11811 2015-09-28 Werner Koch <wk@gnupg.org>
11813 common: Provide two new error code replacements.
11814 + commit f1effdc5ecd0cc52a28db7ae28a5c28f33486542
11815 * common/util.h (GPG_ERR_FALSE, GPG_ERR_TRUE): Rew replcements.
11817 common: Change calling convention for gnupg_spawn_process.
11818 + commit 83811e3f1f0c615b2b63bafdb49a35a0fc198088
11819 * common/exechelp.h (GNUPG_SPAWN_NONBLOCK): New.
11820 (GNUPG_SPAWN_RUN_ASFW, GNUPG_SPAWN_DETACHED): Macro to replace the
11822 * common/exechelp.h (gnupg_spawn_process): Change function to not take
11823 an optional stream for stdin but to return one.
11824 * common/exechelp-posix.c (gnupg_spawn_process): Implement change.
11825 (create_pipe_and_estream): Add args outbound and nonblock.
11826 * common/exechelp-w32.c (gnupg_spawn_process): Implement change.
11828 2015-09-28 NIIBE Yutaka <gniibe@fsij.org>
11830 scd: Handle error correctly.
11831 + commit 6bb7206e357acfd7276a8f1334c0f0c9cc6ed100
11832 * scd/apdu.c (apdu_connect): Initialize variables and check an error
11833 of apdu_get_status_internal.
11835 2015-09-22 Werner Koch <wk@gnupg.org>
11837 ssh: Add 256, 384 and 521 bit test keys for the fingerprint.
11838 + commit 12ff806d1b63d08cb43d131065d51353495d9346
11839 * common/t-ssh-utils.c (sample_keys): Add 3 new keys.
11841 ssh: Fix fingerprint computation for 384 bit ECDSA keys.
11842 + commit 2167951b275bae51cf669c02547e2e7ea8fbe2ee
11843 * common/ssh-utils.c (get_fingerprint): Fix hashed string.
11845 2015-09-19 NIIBE Yutaka <gniibe@fsij.org>
11847 agent: Fix importing ECC key.
11848 + commit 1542dc604b9c3e6a6a99750c48f7800e72584a89
11849 * agent/cvt-openpgp.c (convert_from_openpgp_main): Only encrypted
11850 parameters are stored as opaque.
11851 (apply_protection): ARRAY members are all normal, non-opaque MPI.
11852 (extract_private_key): Get public key as normal, non-opaque MPI.
11853 Remove support of ECC key with '(flags param)'.
11854 Remove support of "ecdsa" and "ecdh" keys of our experiment.
11856 scd: Fix KEYTOCARD handling for ECC key.
11857 + commit 708b7eccdef8d274bd5578b9a5fd908e9685c795
11858 * scd/app-openpgp.c (ecc_writekey): Only public key can be native
11861 2015-09-19 Neal H. Walfield <neal@g10code.com>
11863 common: Add new function strlist_length.
11864 + commit 8499c4f84a664bedbdf5a5689cb02420909f1968
11865 * common/strlist.c (strlist_length): New function.
11867 2015-09-18 Werner Koch <wk@gnupg.org>
11869 gpgconf: Change displayed name of Dirmngr to "Network Manager".
11870 + commit 819bba75aaed11ecef2e274add173718358212b9
11871 * tools/gpgconf-comp.c (gc_component): Change printed name.
11873 dirmngr: Add option --use-tor as a stub.
11874 + commit c091816b4a90d7eea6f8601ec1522a0a006794e8
11875 * dirmngr/dirmngr.h (opt): Add field "use_tor".
11876 * dirmngr/dirmngr.c (oUseTor): New.
11877 (opts): Add --use-tor.
11878 (parse_rereadable_options): Set option.
11879 (main): Tell gpgconf about that option.
11881 * dirmngr/crlfetch.c (crl_fetch): Pass TOR flag to the http module and
11882 return an error if LDAP is used in TOR mode.
11883 (ca_cert_fetch): Return an error in TOR mode.
11884 (start_cert_fetch): Ditto.
11885 * dirmngr/ks-engine-finger.c (ks_finger_fetch): Pass TOR flag to the
11887 * dirmngr/ks-engine-hkp.c (send_request): Ditto.
11888 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
11889 * dirmngr/ks-engine-ldap.c (ks_ldap_get): Return an error in TOR mode.
11890 (ks_ldap_search): Ditto.
11891 (ks_ldap_put): Ditto.
11892 * dirmngr/ocsp.c (do_ocsp_request): Ditto. Also pass TOR flag to the
11895 * dirmngr/server.c (option_handler): Add "honor-keyserver-url-used".
11896 (cmd_dns_cert): Return an error in TOR mode.
11897 (cmd_getinfo): Add subcommand "tor"
11898 * tools/gpgconf-comp.c (gc_options_dirmngr): Add TOR group.
11900 gpg: Report a conflict between honor-keyserver-url and TOR.
11901 + commit d5a3142b8f2e5603357182f34f0b081b47eda23c
11902 * g10/call-dirmngr.c (create_context): Send option and print a verbose
11905 http: Add flag to force use of TOR (part 1)
11906 + commit b4bc1c8b10c7a794fa108678b80f76366a65c47d
11907 * common/http.h (HTTP_FLAG_FORCE_TOR): New.
11908 * common/http.c (http_raw_connect, send_request): Detect flag and
11909 return an error for now.
11911 2015-09-17 NIIBE Yutaka <gniibe@fsij.org>
11913 po: Update Japanese translation.
11914 + commit f986b23e13eaa2d7705733b4bf6b5210311f181a
11917 scd: Fix ccid-driver timeout for OpenPGPcard v2.1.
11918 + commit 6510df3a7cd2b5bf44fac1e4d50ee54b8c897daa
11919 * scd/ccid-driver.c (CCID_CMD_TIMEOUT): New.
11920 (ccid_transceive_apdu_level, ccid_transceive): Use.
11922 2015-09-16 Werner Koch <wk@gnupg.org>
11924 agent: New option --pinentry-invisible-char.
11925 + commit 93d257c81952cbb08a744a9cea6749639aa32cd7
11926 * agent/gpg-agent.c (oPinentryInvisibleChar): New.
11927 (opts): Add option.
11928 (parse_rereadable_options): Set option.
11929 * agent/agent.h (opt): Add field pinentry_invisible_char.
11930 * agent/call-pinentry.c (start_pinentry): Pass option to pinentry.
11932 g13: Move some code to a separate module.
11933 + commit 9e65bbd255c43f0e59f35b0003052234d69042be
11934 * g13/g13-common.c, g13/g13-common.h: New.
11935 * g13/Makefile.am (g13_SOURCES): Add new files.
11936 * g13/g13.c (g13_errors_seen): Move to g13-common.c.
11937 (cmdline_conttype): New.
11938 (main): Use g13_init_signals and g13_install_emergency_cleanup.
11939 (emergency_cleanup, g13_exit): Move to g13-common.c.
11940 * g13/g13.h: Move OPT and some other code to g13-common.h.
11942 gpg: Fix skip function dummy parameter.
11943 + commit 8eb3a1797a1e7cb59a8342a8aa917756fe67949f
11944 * g10/trustdb.c (search_skipfnc): Fix dummy argument
11946 gpg: Change last commit to avoid extra translations.
11947 + commit f71ed902def81f9408d9094289d8a97abaa0f609
11948 * g10/keyedit.c (keyedit_menu): Do not print usage hints in expert
11951 2015-09-16 Neal H. Walfield <neal@g10code.com>
11953 g10: Improve error message.
11954 + commit 172af881a1cfe82dfec1c43102d6c464e67ef230
11955 * g10/keyedit.c (keyedit_menu): When complaining that a user ID or key
11956 must be selected, indicate what command to use to do this.
11958 g10: Be more careful when merging self-signed data.
11959 + commit 6845737736d3264d7ee8b7364d908951010084c9
11960 * g10/getkey.c (merge_selfsigs_main): Stop looking for self-signed
11961 data belonging to the public key when we encounter an attribute packet
11962 or a subkey packet, not just a user id packet. When looking for
11963 self-signed data belonging to a user id packet, stop when we see a
11964 user attribute packet.
11966 g10: Simplify some complicated boolean expressions.
11967 + commit c31e089129c0102c1710522d71fbe1880e84d68e
11968 * g10/getkey.c (finish_lookup): Simplify logic.
11970 g10: Also mark revoked and expired keys as unusable.
11971 + commit 77c2ad4a817c129b899708399ed2078a52b452b8
11972 * g10/getkey.c (skip_unusable): Also mark the key as unusable if it
11973 has been revoked or has expired.
11975 g10: Release resources when returning an error in get_seckey.
11976 + commit 1b601de06a57c78537a336093d2531d8c58bc0d2
11977 * g10/getkey.c (get_seckey): If the key doesn't have a secret key,
11980 g10: Improve documentation and comments for getkey.c.
11981 + commit cab581c486e1987445092b1afdf2cba1f62d017d
11982 * g10/getkey.c: Improve documentation and comments for most
11983 functions. Move documentation for public functions from here...
11984 * g10/keydb.h: ... to here.
11986 g10: Remove unused function have_any_secret_key.
11987 + commit 7333e704efde6923d4b914b37e9a92c4a5bab156
11988 * g10/getkey.c (have_any_secret_key): Remove function.
11990 g10: Bring cache semantics closer to non-cache semantics.
11991 + commit 5e233e12f55be00f5659c63bc32fbdca2ec93136
11992 * g10/getkey.c (get_pubkey_fast): When reading from the cache, only
11993 consider primary keys.
11995 g10: Break out of the loop earlier.
11996 + commit 3940f10af7915b080bf4ed25ceb7e20b52e3cd3e
11997 * g10/getkey.c (have_secret_key_with_kid): Once we find the relevent
11998 key or subkey, stop searching.
12000 g10: Don't skip legacy keys if the search mode is KEYDB_SEARCH_MODE_NEXT
12001 + commit 50affffe93a07643f2610c7a5f3d6f61988855e8
12002 * g10/getkey.c (lookup): Also don't skip legacy keys if the search
12003 mode is KEYDB_SEARCH_MODE_NEXT.
12005 g10: Remove unused function get_seckeyblock_byfprint.
12006 + commit efbaa8f891812e13ae9e689299aa2cd51781ccb3
12007 * g10/keydb.h (get_seckeyblock_byfprint): Remove prototype.
12008 * g10/getkey.c (get_seckeyblock_byfprint): Remove function.
12010 g10: Remove unused function get_seckey_byfprint.
12011 + commit e2b300801ed7143fa924df5442ec2b61079c0bbb
12012 * g10/keydb.h (get_seckey_byfprint): Remove prototype.
12013 * g10/getkey.c (get_seckey_byfprint): Remove function.
12015 g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
12016 + commit 80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5
12017 * g10/keydb.h (get_seckey_byname): Rename from this...
12018 (get_seckey_default): ... to this. Drop the parameter name. Update
12020 * g10/getkey.c (get_seckey_byname): Rename from this...
12021 (get_seckey_default): ... to this. Drop the parameter name. Drop the
12022 code which assumed that NAME is not NULL.
12024 g10: Eliminate the redundant function get_keyblock_byfprint.
12025 + commit dc69804ab0576fbc87297215d63b37a680d74d4d
12026 * g10/keydb.h (get_keyblock_byfprint): Remove prototype. Replace use
12027 of this function with get_pubkey_byfprint.
12028 * g10/getkey.c (get_pubkey_byname): Remove function.
12030 g10: Simplify semantics of get_pubkey_byname.
12031 + commit 911fcca36d61afd061e9e6dc0584bb069353db89
12032 * g10/getkey.c (get_pubkey_byname): If R_KEYBLOCK is not NULL, return
12033 the keyblock in R_KEYBLOCK independent of whether PK is set or not.
12035 g10: Eliminate the redundant function get_pubkey_byname.
12036 + commit b4672e4d48fb1e1e4d17551c4c828763d1dfbb57
12037 * g10/getkey.c (get_pubkey_byname): Remove function.
12038 (lookup): Replace use of get_pubkey_byname by get_pubkey_byfprint.
12040 g10: Eliminate the redundant function get_pubkey_end.
12041 + commit 65e58ae6748c280c8633d2ca5f227ebe1220805d
12042 * g10/keydb.h (get_pubkey_end): Remove declaration. Replace use of
12043 function with getkey_end.
12044 * g10/getkey.c (get_pubkey_byname): Remove function.
12046 g10: Eliminate the redundant function get_pubkey_next.
12047 + commit be6743b2e19241f66148bf89c3442d8e2ebcd63e
12048 * g10/keydb.h (get_pubkey_next): Remove prototype.
12049 * g10/getkey.c (get_pubkey_next): Remove function.
12050 * g10/keylist.c (locate_one): Use getkey_next instead of
12053 kbx: Change skipfnc's prototype so that we can provide all information.
12054 + commit 9acbeac23668a1d0dabca27d7825430d76e095c2
12055 * kbx/keybox-search-desc.h (struct keydb_search_desc.skipfnc): Change
12056 third parameter to be the index of the user id packet in the keyblock
12057 rather than the packet itself. Update users.
12059 g10: Remove unused prototype (get_pubkey_byfpr).
12060 + commit 83e17ab1b4cf4420f2abaf9e1f4017a9473fb281
12061 * g10/keydb.h (get_pubkey_byfpr): Remove unused prototype.
12063 g10: Remove unused function (get_pubkey_bynames).
12064 + commit b06f96ba4f57f55194efcd37a0e3a2aa5450b974
12065 * g10/keydb.h (get_pubkey_bynames): Remove prototype.
12066 * g10/getkey.c (get_pubkey_bynames): Remove function.
12068 g10: Simplify code. Turn struct getkey_ctx_s.found_key into an argument
12069 + commit d47e84946ee010917cfc3501062721b74afbb771
12070 * g10/getkey.c (struct getkey_ctx_s): Remove field found_key.
12071 (lookup): Add argument ret_found_key. If not NULL, set it to the
12072 found key. Update callers.
12073 (pk_from_block): Add argument found_key. Use it instead of
12074 CTX->FOUND_KEY. Update callers.
12075 (finish_lookup): Return a KBNODE (the found key) instead of an int.
12076 Don't set CTX->FOUND_KEY. Return the found key instead.
12078 g10: Remove unused field struct getkey_ctx_s.kbpos.
12079 + commit c110e186e07fb1035dc757d322274f939df1c86d
12080 * g10/getkey.c (struct getkey_ctx_s): Remove field kbpos.
12081 (getkey_end): Don't clear CTX->KBPOS.
12083 g10: Simplify code: remove field struct getkey_ctx_s.keyblock.
12084 + commit 3798f73c07f33576bd02ba4a3256c626bd80752f
12085 * g10/getkey.c (struct getkey_ctx_s): Remove field keyblock.
12086 (finish_lookup): Add parameter keyblock. Update caller to pass this.
12087 (lookup): Add new local variable keyblock. Use this instead of
12088 ctx->keyblock for referencing the keyblock.
12090 2015-09-16 NIIBE Yutaka <gniibe@fsij.org>
12092 agent: Fix registering SSH Key of Ed25519.
12093 + commit 7d5999f0964c9412c0e18eb1adefdb729be68cd4
12094 * agent/command-ssh.c (stream_read_string): Add the prefix of 0x40.
12096 2015-09-15 NIIBE Yutaka <gniibe@fsij.org>
12098 po: Update Japanese translation.
12099 + commit faee25e670cfeb0d0166d7c59cc6a0b3842ee34d
12102 2015-09-10 Werner Koch <wk@gnupg.org>
12105 + commit 311816f6cf9d411dba060603e3c5d01c72824645
12108 tests: Silence the 5gb-packet test.
12109 + commit 7a0c3cc760367024305d23e2124ea4cbc7e802df
12110 * tests/openpgp/4gb-packet.test: Send output to /dev/null.
12112 g10: Fix make distcheck problem.
12113 + commit e92a8ab021672b19e5cd397fa555fcc8a3401e8b
12114 * g10/test.c: Include string.h.
12115 (prepend_srcdir): New. Taken from Libgcrypt.
12117 * g10/t-keydb.c (do_test): Malloc the filename.
12118 * g10/Makefile.am (AM_CPPFLAGS): Remove -DSOURCE_DIR
12119 (EXTRA_DIST): Add t-keydb-keyring.kbx.
12121 g10: Improve portability of the new test driver.
12122 + commit fbf24cd09abcdc3dec21db4114ab2db99ce21e4c
12123 * g10/test.c: Include stdio.h and stdlib.h.
12125 (print_results): Rename to exit_tests.
12126 (main): Remove atexit and call exit_tests. Set verbose.
12127 (ASSERT, ABORT): Call exit_tests instead of exit.
12129 2015-09-09 Werner Koch <wk@gnupg.org>
12131 dirmngr: Allow sending much larger keyblocks.
12132 + commit 19545e3a2d2990cba6d62f98cdb1f665b38ba4f1
12133 * dirmngr/server.c (MAX_CERT_LENGTH): Increase to 16k.
12134 (MAX_KEYBLOCK_LENGTH): Increase to 20M.
12136 2015-09-07 NIIBE Yutaka <gniibe@fsij.org>
12138 scd: Force key attribute change for writekey.
12139 + commit f10b427d0e2be333776fee2df8150145da36e587
12140 * scd/app-openpgp.c (change_rsa_keyattr): New.
12141 (change_keyattr_from_string): Use change_rsa_keyattr.
12142 (rsa_writekey): Call change_rsa_keyattr when different size.
12143 (ecc_writekey): Try to change key attribute.
12145 scd: KEYNO cleanup.
12146 + commit fd689e85423d0d80d725f0315c52d94f0e9766f8
12147 * scd/app-openpgp.c (get_public_key, send_keypair_info, do_readkey)
12148 (change_keyattr, change_keyattr_from_string, ecc_writekey, do_genkey)
12149 (compare_fingerprint, check_against_given_fingerprint): KEYNO starts
12152 2015-09-02 Neal H. Walfield <neal@g10code.com>
12154 g10: Remove unused field req_algo.
12155 + commit bd0c902f1de46eda03a065da41487e7e01ab4c50
12156 * g10/packet.h (PKT_public_key): Remove unused field req_algo. Remove
12158 * g10/getkey.c (struct getkey_ctx_s): Remove unused field req_algo.
12161 g10: Use a symbolic constant instead of a literal.
12162 + commit 1f03d4cd940fed26fc3ffa1742728d68c55ee5d1
12163 * g10/trustdb.c (KEY_HASH_TABLE_SIZE): Define.
12164 (new_key_hash_table): Use KEY_HASH_TABLE_SIZE instead of a literal.
12165 (release_key_hash_table): Likewise.
12166 (test_key_hash_table): Likewise.
12167 (add_key_hash_table): Likewise.
12169 g10: Add test for keydb as well as new testing infrastructure.
12170 + commit ee7ec1256b24dc340656c331ef92fc59cad817b6
12171 * g10/Makefile.am (EXTRA_DIST): Add test.c.
12172 (AM_CPPFLAGS): Add -DSOURCE_DIR="\"$(srcdir)\"".
12173 (module_tests): Add t-keydb.
12174 (t_keydb_SOURCES): New variable.
12175 (t_keydb_LDADD): Likewise.
12176 * g10/t-keydb.c: New file.
12177 * g10/t-keydb-keyring.kbx: New file.
12178 * g10/test-stubs.c: New file.
12179 * g10/test.c: New file.
12181 g10: Make the keyblock cache per-handle rather than global.
12182 + commit 60bc518645d3acfd4dcb79e61a2be6ce001e93aa
12183 * g10/keydb.c (keyblock_cache): Don't declare this variable. Instead...
12184 (struct keyblock_cache): ... turn its type into this first class
12186 (struct keydb_handle): ... and instantiate it once per database
12187 handle. Update all users.
12188 (keydb_rebuild_caches): Don't invalidate the keyblock cache.
12190 g10: If iobuf_seek fails when reading from the cache, do a hard read.
12191 + commit f076fa190e09eab5c586650d81e241e0bb85ce25
12192 * g10/keydb.c (keydb_get_keyblock): If the iobuf_seek fails when
12193 reading from the cache, then simply clear the cache and try reading
12196 iobuf: Reduce verbosity of test.
12197 + commit 219de84df9a8408fffedbb2600f5eb4c441950b6
12198 * common/t-iobuf.c (main): Reduce verbosity.
12200 iobuf: Add the IOBUF_INPUT_TEMP type to improve input temp handling.
12201 + commit f2d75ac7dc58f5ea59b231be6b83fea939b43ab8
12202 * common/iobuf.h (enum iobuf_use): Add new member, IOBUF_INPUT_TEMP.
12203 * common/iobuf.c (iobuf_temp_with_content): Create the iobuf as an
12204 IOBUF_INPUT_TEMP, not an IOBUF_INPUT buffer. Assert that LENGTH ==
12206 (iobuf_push_filter2): If A is an IOBUF_INPUT_TEMP, then make the new
12207 filter an IOBUF_INPUT filter and set its buffer size to
12209 (underflow): If A is an IOBUF_INPUT_TEMP, then just return EOF; don't
12210 remove already read data.
12211 (iobuf_seek): If A is an IOBUF_INPUT_TEMP, don't discard the buffered
12213 (iobuf_alloc): Allow USE == IOBUF_INPUT_TEMP.
12214 (pop_filter): Allow USE == IOBUF_INPUT_TEMP.
12215 (iobuf_peek): Allow USE == IOBUF_INPUT_TEMP.
12216 (iobuf_writebyte): Fail if USE == IOBUF_INPUT_TEMP.
12217 (iobuf_write): Fail if USE == IOBUF_INPUT_TEMP.
12218 (iobuf_writestr): Fail if USE == IOBUF_INPUT_TEMP.
12219 (iobuf_flush_temp): Fail if USE == IOBUF_INPUT_TEMP.
12221 iobuf: Rename IOBUF_TEMP to IOBUF_OUTPUT_TEMP.
12222 + commit 5ff5e72b9c275fbd978136b1028bbf251af26e57
12223 * common/iobuf.h (enum iobuf_use): Rename IOBUF_TEMP to
12224 IOBUF_OUTPUT_TEMP. Update users.
12226 iobuf: Use a first-class enum.
12227 + commit 24259d856b6cbdd679035512a8fb7c042de8f02e
12228 * common/iobuf.h (enum iobuf_use): Name the IOBUF_OUTPUT, etc. enum.
12229 (struct iobuf_struct): Change the field use's type to it.
12232 + commit 8522cdc2264804d0677b7c0a447a0b45cf4195e3
12233 * common/t-iobuf.c (content_filter): If there is nothing to read,
12234 don't forget to set *LEN to 0.
12235 (main): Fix checks.
12237 2015-09-01 Werner Koch <wk@gnupg.org>
12239 agent: Protect commit 135b1e3 against misbehaving Libgcrypt.
12240 + commit 9ba4ccdaf5e128fbea51ff142c63d4b359c7264d
12241 * agent/command-ssh.c (ssh_key_to_blob): Check DATALEN.
12243 gpg: Remove option --no-sig-create-check.
12244 + commit f9c83d84e7d33df76898975f5ac852efa9c4882a
12245 * g10/gpg.c (opts): Remove --no-sig-create-check.
12246 * g10/options.h (struct opt): Remove field no_sig_create_check.
12247 * g10/sign.c (do_sign): Always check unless it is RSA and we are using
12250 common: Assume an utf-8 locale on iconv errors.
12251 + commit 99c9bf7defd6c1ac9cc49c84e6c78eeb886a6952
12252 * common/utf8conv.c (handle_iconv_error): Use utf-8 as fallback.
12254 common: Fix regression in building argpase.c standalone.
12255 + commit bc23e69b70191f887dcb937007833d0187af181f
12256 * common/argparse.c (is_native_utf8) [GNUPG_MAJOR_VERSION]: New.
12258 2015-08-31 Neal H. Walfield <neal@g10code.com>
12260 g10: Don't leak memory if we fail to initialize a new database handle.
12261 + commit 04a6b903d0354be2c69c7f2c98987de17d68416e
12262 * g10/keydb.c (keydb_new): If we fail to open a keyring or keybox
12263 correctly release all resources.
12265 g10: Improve interface documentation of the keydb API.
12266 + commit 360b699e9b4b8f99bd790b3cd158cd6f0fd7c131
12267 * g10/keydb.c: Improve code comments and documentation of internal
12268 interfaces. Improve documentation of public APIs and move that to...
12269 * g10/keydb.h: ... this file.
12271 g10: Don't cache search results if the search didn't scan the whole DB.
12272 + commit efd1ead9e779eb3bd37384258e08ad921a934612
12273 * g10/keydb.c (struct keydb_handle): Add new field is_reset.
12274 (keydb_new): Initialize hd->is_reset to 1.
12275 (keydb_locate_writable): Set hd->is_reset to 1.
12276 (keydb_search): Set hd->is_reset to 0. Don't cache a key not found if
12277 the search started from the beginning of the database.
12279 g10: Have keydb_search_first call keydb_search_reset before searching.
12280 + commit 11d8ffc939a4d20cfb0082b2d966b1e1a7d61f8d
12281 * g10/keydb.c (keydb_search_first): Reset the handle before starting
12284 g10: Remove unused parameter.
12285 + commit 0377db4b3581561b1ffc5bb7c3b4d698e8993b3a
12286 * g10/keydb.h (keydb_locate_writable): Remove unused parameter
12287 reserved. Update users.
12289 2015-08-31 NIIBE Yutaka <gniibe@fsij.org>
12291 agent: Fix SSH public key for EdDSA.
12292 + commit 135b1e32f01beaceba8a4ecc774e23b56aca1d24
12293 * agent/command-ssh.c (ssh_key_to_blob): Remove the prefix 0x40.
12295 2015-08-26 Neal H. Walfield <neal@g10code.com>
12297 g10: Simplify cache. Only include data that is actually used.
12298 + commit fad91071cadff43d77ce2e524dfb03999ba6678e
12299 * g10/keydb.c (struct kid_list_s): Rename from this...
12300 (struct kid_not_found_cache_bucket): ... to this. Update users.
12301 Remove field state.
12302 (kid_list_t): Remove type.
12303 (KID_NOT_FOUND_CACHE_BUCKETS): Define. Use this instead of a literal.
12304 (kid_found_table): Rename from this...
12305 (kid_not_found_cache_bucket): ... to this. Update users.
12306 (kid_found_table_count): Rename from this...
12307 (kid_not_found_cache_count): ... to this. Update users.
12308 (kid_not_found_p): Only return whether a key with the specified key id
12309 is definitely not in the database.
12310 (kid_not_found_insert): Remove parameter found. Update callers.
12311 (keydb_search): Only insert a key id in the not found cache if it is
12312 not found. Rename local variable once_found to already_in_cache.
12314 2015-08-25 Werner Koch <wk@gnupg.org>
12316 Add configure option --enable-build-timestamp.
12317 + commit 9d07f6930aaa40dce92104e8c99241713d92eed2
12318 * configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default.
12320 gpg: Emit ERROR status for key signing failures.
12321 + commit 51b9b8fba4ee326013c2cc911c70cde4c5f81fc7
12322 * g10/keyedit.c (sign_uids): Write an ERROR status for a signing
12324 (menu_adduid, menu_addrevoker, menu_revsig): Ditto.
12325 (menu_revuid, menu_revkey, menu_revsubkey): Ditto.
12327 gpg: Print a new FAILURE status after most commands.
12328 + commit 9cdff09743c473a12359bfdb914578ede0e4e3e2
12329 * common/status.h (STATUS_FAILURE): New.
12330 * g10/cpr.c (write_status_failure): New.
12331 * g10/gpg.c (main): Call write_status_failure for all commands which
12332 print an error message here.
12333 * g10/call-agent.c (start_agent): Print an STATUS_ERROR if we can't
12334 set the pinentry mode.
12336 2015-08-24 Neal H. Walfield <neal@g10code.com>
12338 agent: Raise the maximum password length. Don't hard code it.
12339 + commit 348a6ebb63523305ce9f47d0f3e8a9086c338fed
12340 * agent/agent.h (MAX_PASSPHRASE_LEN): Define.
12341 * agent/command-ssh.c (ssh_identity_register): Use it instead of a
12342 hard-coded literal.
12343 * agent/cvt-openpgp.c (convert_from_openpgp_main): Likewise.
12344 * agent/findkey.c (unprotect): Likewise.
12345 * agent/genkey.c (agent_ask_new_passphrase): Likewise.
12347 2015-08-24 Werner Koch <wk@gnupg.org>
12349 sm: Support secret key export via the Assuan interface.
12350 + commit 3cf02192a890d04f8f558cb72d46f9bd7a378322
12351 * sm/server.c (cmd_export): Add options --secret, --raw, and --pkcs12.
12353 2015-08-23 Werner Koch <wk@gnupg.org>
12355 dirmngr: Allow sending of Zack's key.
12356 + commit 84f4c8811fc5bdd78693c4dc289389a8337cc257
12357 * dirmngr/server.c (MAX_KEYBLOCK_LENGTH): Increase to 1 MiB.
12359 gpg: Fix regression in packet parser from Aug 19.
12360 + commit 88317ae8c829bfeb1689415efbd32b7a232d7bd0
12361 * g10/parse-packet.c (parse): Use an int to compare to -1. Use
12364 gpg: Show not found keys with --locate-key --verbose.
12365 + commit 00def10d365a88ce2d034ea9a5d6be4b03285fa4
12366 * g10/keylist.c (locate_one): Print a diagnostic for a not-found key.
12368 2015-08-21 Neal H. Walfield <neal@g10code.com>
12370 common: Don't incorrectly reject 4 GB - 1 sized packets.
12371 + commit 09f2a7bca624d0492e1d7ab29ce19542249c13ff
12372 * g10/parse-packet.c (parse): Don't reject 4 GB - 1 sized packets.
12373 Add the constraint that the type must be 63.
12374 * kbx/keybox-openpgp.c (next_packet): Likewise.
12375 * tests/openpgp/4gb-packet.asc: New file.
12376 * tests/openpgp/4gb-packet.test: New file.
12377 * tests/openpgp/Makefile.am (TESTS): Add 4gb-packet.test.
12378 (TEST_FILES): Add 4gb-packet.asc.
12380 common: Don't assume on-disk layout matches in-memory layout.
12381 + commit 4f37820334fadd8c5036ea6c42f3dc242665c4a9
12382 * g10/packet.h (PKT_signature): Change revkey's type from a struct
12383 revocation_key ** to a struct revocation_key *. Update users.
12385 common: Don't incorrectly copy packets with partial lengths.
12386 + commit b3226cadf9bbef4a367072396e5b0abf37afff2d
12387 * g10/parse-packet.c (parse): We don't handle copying packets with a
12388 partial body length to an output stream. If this occurs, log an error
12391 common: Check parameters more rigorously.
12392 + commit 0143d5c1ca4d12ac252c14f01931f48131591065
12393 * g10/parse-packet.c (dbg_copy_all_packets): Check that OUT is not
12395 (copy_all_packets): Likewise.
12397 common: Don't continuing processing on error.
12398 + commit 48e792cc951a9d00fad0691ef7411c9e22cf675a
12399 * g10/parse-packet.c (dbg_parse_packet): Also return if parse returns
12401 (parse_packet): Likewise.
12402 (dbg_search_packet): Likewise.
12403 (search_packet): Likewise.
12405 common: Better respect the packet's length when reading it.
12406 + commit 73af66a0aada8f30d8f400fdc4f69e233fb53089
12407 * g10/parse-packet.c (parse_signature): Make sure PKTLEN doesn't
12408 underflow. Be more careful that a read doesn't read more data than
12409 PKTLEN says is available.
12411 2015-08-20 Werner Koch <wk@gnupg.org>
12413 po: Add lost translation of validity strings.
12414 + commit 0d5a4138f27187e7828ef8216758edc9b48b2c64
12415 * po/POTFILES.in (trust.c): Add missing file.
12416 * po/de.po: Changed German validity strings.
12417 * doc/help.de.txt: Ditto.
12419 2015-08-20 Neal H. Walfield <neal@g10code.com>
12421 g10/parse-packet.c:parse: Try harder to not ignore an EOF.
12422 + commit 0add91ae1ca3718e8140af09294c595f47c958d3
12423 * g10/parse-packet.c (parse): Be more robust: make sure to process any
12426 g10/parse-packet.c: Replace literal with symbolic expression.
12427 + commit 24a72dffa75a04611c98343140c4eb0fbfe2a59f
12428 * g10/parse-packet.c (dump_hex_line): Use sizeof rather than the
12431 Add documentation for g10/parse-packet.c.
12432 + commit 026feff4a8e3090fb152af72c73aaa80c78e4551
12433 * g10/packet.h: Add documentation for functions defined in
12435 * g10/parse-packet.c: Improve comments for many functions.
12437 g10/packet.h: Remove unused argument from enum_sig_subpkt.
12438 + commit c46e8bfe9a1ae3f1e5327d0451cffd6e4567b449
12439 * g10/packet.h (enum_sig_subpkt): Remove argument RET_N. Update
12441 * g10/parse-packet.c (enum_sig_subpkt): Remove argument RET_N.
12443 g10/parse-packet.c:mpi_read: Detect EOF and correct boundary conditions.
12444 + commit c271feb53664dbf2b4ccbae90a31b8e726481e2d
12445 * g10/parse-packet.c (mpi_read): Improve documentation. Correctly
12446 handle an EOF. On overflow, correctly return the number of bytes read
12449 common/iobuf.c: Make control flow more obvious.
12450 + commit 49f922286fa8adb2d2ca730eb7bbe67e684b20de
12451 * common/iobuf.c (iobuf_read): Make control flow more obvious.
12452 (iobuf_get_filelength): Likewise.
12453 (iobuf_get_fd): Likewise.
12454 (iobuf_seek): Likewise.
12456 common/iobuf.c: Add some sanity checks to catch programmer bugs.
12457 + commit c5da750cf3d53277fe6d86776bfe0d2304b05151
12458 * common/iobuf.c (iobuf_alloc): Check that BUFSIZE is not 0.
12459 (iobuf_readbyte): Check that A is an input filter. Check that the
12460 amount of read data is at most the amount of buffered data.
12461 (iobuf_read): Check that A is an input filter.
12462 (iobuf_writebyte): Check that A is not an input filter.
12463 (iobuf_writestr): Check that A is not an input filter.
12464 (iobuf_flush_temp): Check that A is not an input filter.
12466 common/iobuf.c:iobuf_write_temp: Elide redundant code.
12467 + commit e291b631c3b1aedf529078190cd51e2acfcd1d92
12468 * common/iobuf.c (iobuf_write_temp): Don't repeat iobuf_flush_temp.
12471 common/iobuf.c: Have iobuf_writestr use iobuf_write, not iobuf_writebyte
12472 + commit a6d4bca3b576c3c5dba1aa6e8c1039089e14147b
12473 * common/iobuf.c (iobuf_write): Don't write a byte at a time. Use
12476 common/iobuf: Improve documentation and code comments.
12477 + commit 1bfd1e43246c16e20f819bf5381ca21abde54458
12478 common/iobuf.h: Improve documentation and code comments.
12479 common/iobuf.c: Likewise.
12481 common/iobuf.c: Adjust buffer size of filters in front of temp filters.
12482 + commit 0d40c4e83f6fbfea2f494f1f88412d3132ff98bd
12483 * common/iobuf.c (iobuf_push_filter2): If the head filter is a temp
12484 filter, use IOBUF_BUFFER_SIZE for the new filter.
12486 common/iobuf.c: Buffered data should not be processed by new filters.
12487 + commit 827cc922d84d8113d4f13ebbed1314e03da5f7d2
12488 * common/iobuf.c (iobuf_push_filter2): If the pipeline is an output or
12489 temp pipeline, the new filter shouldn't assume ownership of the old
12490 head's internal buffer: the data was written before the filter was
12492 * common/t-iobuf.c (double_filter): New function.
12493 (main): Add test cases for the above bug.
12495 common/iobuf.c: Flush the pipeline in iobuf_temp_to_buffer.
12496 + commit 616181f3c757160af8539869a6d929faca4962c4
12497 * common/iobuf.c (iobuf_temp_to_buffer): Flush each filter in the
12498 pipeline and copy the data from the last (not the first) filter's
12501 common/iobuf.c: Combine iobuf_open, iobuf_create and iobuf_openrw.
12502 + commit 15ae99f887f4694de8468625d455d487d283f719
12503 * common/iobuf.c (do_open): New function, which is a generalization of
12504 iobuf_open, iobuf_Create, iobuf_openrw.
12505 (iobuf_open): Call do_open.
12506 (iobuf_create): Likewise.
12507 (iobuf_openrw): Likewise.
12509 common/iobuf.h: Remove iobuf_open_fd_or_name.
12510 + commit 8402815d8e0e04a44362968f88b3d484d2395402
12511 * common/iobuf.h (iobuf_open_fd_or_name): Remove prototype. Replace
12512 use with either iobuf_open or iobuf_fdopen_nc, as appropriate.
12513 * common/iobuf.c (iobuf_open): Remove function.
12515 common/iobuf.c: Rename iobuf_flush and make it a static function.
12516 + commit 6d49a2b6691f2dd0d8ac34a15f18cc2a0c3ba5d3
12517 * common/iobuf.h (iobuf_flush): Remove prototype.
12518 * common/iobuf.c (filter_flush): New static prototype.
12519 (iobuf_flush): Rename...
12520 (filter_flush): ... to this. Make static. Simplify code. Update
12523 common/iobuf.c: Don't abort freeing a pipeline if freeing a filter fails
12524 + commit 1f94646a86348128f585301fcd605e5e703fd77d
12525 * common/iobuf.c (iobuf_cancel): Don't abort freeing a pipeline if
12526 freeing a filter fails. This needs to a memory leak. Instead, keep
12527 freeing and return the error code of the first filter that fails.
12529 common/iobuf.c: Improve iobuf_peek.
12530 + commit a250f73783c06d7789ac65a395d9247f4ab44c26
12531 * common/iobuf.c (underflow): Take additional parameter
12532 clear_pending_eof. If not set, don't clear a pending eof when
12533 returning EOF. Update callers.
12534 (iobuf_peek): Fill the internal buffer, if needed, to be able to
12535 better satisfy any request.
12537 common/iobuf.c: When requested, fill the buffer even if it is not empty.
12538 + commit c7ad36eb0d7f872fc15e793aa1d0b6b89bc471d6
12539 * common/iobuf.c (underflow): Don't require that the buffer be empty.
12540 When called, fill any available space.
12542 common/t-iobuf.c: Add a test case for multiple EOFs.
12543 + commit e76c75d8726558dc9084710253f0f6780e06fad3
12544 common/t-iobuf.c (main): Add a test case for multiple EOFs in an INPUT
12547 common/iobuf.c: Better respect boundary conditions in iobuf_read_line.
12548 + commit 4e32c602f5c40cca5f8f40e642ccb10d3f8c5614
12549 * common/iobuf.c (iobuf_read_line): Be more careful with boundary
12551 * common/iobuf.h: Include <gpg-error.h>.
12552 * common/t-iobuf.c: New file.
12553 * common/Makefile.am (module_tests): Add t-iobuf.
12554 (t_mbox_util_LDADD): New variable.
12556 common/iobuf.c: Fix filter type for iobuf_temp_with_content.
12557 + commit fa9fda23c2c8cf6982b7263f6882ed8687d98c16
12558 * common/iobuf.c (iobuf_temp_with_content): Set the filter type to
12559 IOBUF_INPUT, not IOBUF_TEMP, which is only for output filters that
12560 write into a dynamic buffer.
12562 common/iobuf.h: Remove unimplemented prototypes.
12563 + commit 75fd86bbd175e085a93c1ad62f50ae936494b307
12564 * common/iobuf.h (iobuf_unread): Remove unimplemented prototype.
12565 (iobuf_clear_eof): Likewise.
12566 (iobuf_append): Likewise.
12568 common/iobuf.c: Refactor code to not need the desc field.
12569 + commit 679acc671e621847f50d6b4dca10a22c62500b9a
12570 * common/iobuf.h (struct iobuf_struct): Remove field desc.
12571 * common/iobuf.c (iobuf_desc): New function. When a filter's
12572 description is needed, use this instead of the filter's desc field.
12574 common/iobuf.h: Clarify semantics of nofast. Simplify implementation.
12575 + commit 12fc56bcb51d984a6e86fc1eb7952f9976c67043
12576 * common/iobuf.h (struct iobuf_struct): Clarify semantics of nofast.
12577 Simplify use of nofast to implement just these semantics.
12579 common/iobuf.c: Remove dead code (directfp).
12580 + commit e8c0b6abf88309c23a70df0abbd38d42fa22a786
12581 * common/iobuf.h (struct iobuf_struct): Remove field directfp. Remove
12584 common/iobuf.c: Remove dead code (opaque).
12585 + commit f05d60b3813a97e316a067680d7598b74621a522
12586 * common/iobuf.h (struct iobuf_struct): Remove field opaque. Remove
12589 common/iobuf.h: Replace further use of literals with symbolic constants.
12590 + commit c06eabac8e85f7f79414363836f093415e8da62e
12591 * common/iobuf.c: Move BLOCK_FILTER_INPUT,
12592 BLOCK_FILTER_OUTPUT_BLOCK_FILTER_TEMP from here...
12593 * common/iobuf.h: ... to here and rename to IOBUF_INPUT, IOBUF_OUTPUT
12594 and IOBUF_TEMP, respectively. Where appropriate, use these macros
12595 instead of a literal.
12597 2015-08-17 Werner Koch <wk@gnupg.org>
12599 gpg: Avoid linking to Libksba.
12600 + commit 91357b7722f2bf0d3765ec72855bdc96732df9d6
12601 * kbx/keybox.h (KEYBOX_WITH_X509): Do not define.
12602 * sm/Makefile.am (AM_CPPFLAGS): Define it here.
12603 (common_libs): Change to libkeybox509.a
12604 * g10/Makefile.am (AM_CFLAGS): remove KSBA_CFLAGS.
12605 (gpg2_LDADD, gpgv2_LDADD): Remove KSBA_LIBS
12606 * kbx/Makefile.am (noinst_LIBRARIES): Add libkeybox509.a.
12607 (libkeybox509_a_SOURCES): New.
12608 (libkeybox_a_CFLAGS): New.
12609 (libkeybox509_a_CFLAGS): New.
12610 (kbxutil_CFLAGS): New.
12611 * kbx/keybox-search.c (has_keygrip) [!KEYBOX_WITH_X509]: Declare args
12614 2015-08-16 Ben Kibbey <bjk@luxsci.net>
12616 Fix pinentry loopback and passphrase contraints.
12617 + commit bba74cdd95ea98b5a7c3a12823b229341e91504e
12618 * agent/command.c (cmd_get_passphrase): Don't repeat passphrase for
12619 pinentry loopback mode.
12620 * agent/genkey.c (check_passphrase_constraints): Immediately return when
12621 pinentry mode is loopback.
12623 Fix sending INQUIRE_MAXLEN for symmetric data.
12624 + commit 93f5295df512269dd8fecbd649b11cbacf78e864
12625 * g10/passphrase.c (passphrase_to_dek_ext): Write the status message.
12627 2015-08-15 Ben Kibbey <bjk@luxsci.net>
12629 Inform a user about inquire length limit.
12630 + commit f126ca61565922b3b938c3486614b9bd7e6e454c
12631 * common/status.h (INQUIRE_MAXLEN): New.
12632 * g10/call-agent.c (default_inquire_cb): Send STATUS_INQUIRE_MAXLEN.
12633 client when inquiring a passphrase over pinentry-loopback.
12635 Allow --gen-key to inquire a passphrase.
12636 + commit 233b5fedabd80a34452e748132e65b5944310428
12637 * g10/gpg.c (main): test for --command-fd during --gen-key parse.
12639 When --command-fd is set then imply --batch to let gpg inquire a
12640 passphrase rather than requiring a pinentry.
12642 2015-08-11 Werner Koch <wk@gnupg.org>
12645 + commit b5e081973b56b21214fc0c65ba9015dd026328b4
12648 2015-08-10 NIIBE Yutaka <gniibe@fsij.org>
12650 agent: fix ECC key handling.
12651 + commit 8704c70108218a60f8fb2ee0e558ca8ed125600d
12652 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
12653 (convert_transfer_key): CURVE is the name of curve.
12655 2015-08-08 Neal H. Walfield <neal@g10code.com>
12657 common/iobuf.c: Replace use of literals with symbolic constants.
12658 + commit c80643c5ecbee89f343ef087313870cee1334fe4
12659 * common/iobuf.c (BLOCK_FILTER_INPUT): Define. Where appropriate, use
12660 this instead of a literal.
12661 (BLOCK_FILTER_OUTPUT): Likewise.
12662 (BLOCK_FILTER_TEMP): Likewise.
12664 2015-08-07 Werner Koch <wk@gnupg.org>
12666 gpg: Allow gpgv to work with a trustedkeys.kbx file.
12667 + commit 5b7a80b1ab91d2f199065e5dd14e85f42918975d
12668 * g10/keydb.h (KEYDB_RESOURCE_FLAG_GPGVDEF): New.
12669 * g10/keydb.c (keydb_add_resource): Take care of new flag.
12670 * g10/gpgv.c (main): Use new flag.
12672 agent: Add option --force to the DELETE_KEY command.
12673 + commit a68c5c5c7fe4ec8665e252e5062292f6c7b94fdd
12674 * agent/findkey.c (agent_delete_key): Add arg "force".
12675 * agent/command.c (cmd_delete_key): Add option --force.
12677 common: Change alias for Curve25519 to "cv25519".
12678 + commit 9f31ab3d216ed74d6f392a62e3f95e0591174119
12679 * common/openpgp-oid.c (oidtable): Change alias.
12681 2015-08-06 Werner Koch <wk@gnupg.org>
12683 gpg: Remove duplicated printing of the curve name in "sub" lines.
12684 + commit fb754dc6170d12edf3d35c48340b8d7b1ded20f7
12685 * g10/keylist.c (list_keyblock_print): Do not print extra curve name.
12687 gpg: Add commands "fpr *" and "grip" to --edit-key.
12688 + commit fbb6c25ab5dbb5f2b1f1eb342ca7caa3f955d8c9
12689 * g10/keyedit.c (cmdGRIP): New.
12690 (cmds): Add command "grip".
12691 (keyedit_menu) <cmdFPR>: Print subkeys with argument "*".
12692 (keyedit_menu) <cmdGRIP>: Print keygrip.
12693 (show_key_and_fingerprint): Add arg "with_subkeys".
12694 (show_key_and_grip): New.
12695 * g10/keylist.c (print_fingerprint): Add mode 4.
12697 gpg: Adjust UID line indentation for common key algos.
12698 + commit 969542c8c2f48a60c1d68b7bf70b0c00374bacba
12699 * g10/keylist.c (list_keyblock_print): Change UID line indentation
12700 * g10/mainproc.c (list_node): Ditto.
12702 2015-08-06 NIIBE Yutaka <gniibe@fsij.org>
12704 Curve25519 support.
12705 + commit e5891a82c39997b65ce9ff90eb6120db7bedd399
12706 * agent/cvt-openpgp.c (get_keygrip): Handle Curve25519.
12707 (convert_secret_key, convert_transfer_key): Ditto.
12708 * common/openpgp-oid.c (oidtable): Add Curve25519.
12709 (oid_crv25519, openpgp_oid_is_crv25519): New.
12710 * common/util.h (openpgp_oid_is_crv25519): New.
12711 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Handle the case
12712 with Montgomery curve which uses x-only coordinate.
12713 * g10/keygen.c (gen_ecc): Handle Curve25519.
12714 (ask_curve): Change the API and second arg is to return subkey algo.
12715 (generate_keypair, generate_subkeypair): Follow chage of ask_curve.
12716 * g10/keyid.c (keygrip_from_pk): Handle Curve25519.
12717 * g10/pkglue.c (pk_encrypt): Handle Curve25519.
12718 * g10/pubkey-enc.c (get_it): Handle the case with Montgomery curve.
12719 * scd/app-openpgp.c (ECC_FLAG_DJB_TWEAK): New.
12720 (send_key_attr): Work with general ECC, Ed25519, and Curve25519.
12721 (get_public_key): Likewise.
12722 (ecc_writekey): Handle flag_djb_tweak.
12724 common: extend API of openpgp_oid_to_curve for canonical name.
12725 + commit a6e40530898622fbc5d76557a7da5e69368ecaa4
12726 * common/openpgp-oid.c (openpgp_oid_to_curve): Add CANON argument.
12727 * common/util.h: Update.
12728 * g10/import.c (transfer_secret_keys): Follow the change.
12729 * g10/keyid.c (pubkey_string): Likewise.
12730 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Likewise.
12731 * parse-packet.c (parse_key): Likewise.
12732 * scd/app-openpgp.c (send_key_attr, get_public_key): Likewise.
12734 2015-08-05 NIIBE Yutaka <gniibe@fsij.org>
12737 + commit d088d2c81690a89051349ddc8a82fe222625f4e0
12738 * scd/app-openpgp.c (ecc_oid): Call with OIDBUF.
12740 scd: Fix ECC support.
12741 + commit 0751571cac0f5aef2862c34a184f7f09ad9cb203
12742 * scd/app-openpgp.c (send_key_attr): Send KEYNO.
12743 (get_public_key): Fix SEXP composing.
12744 (ecc_writekey): Fix OID length calculation.
12745 (ecc_oid): Prepend the length before query.
12746 (parse_algorithm_attribute): Handle the case the curve is not available.
12748 2015-08-04 Werner Koch <wk@gnupg.org>
12750 gpg: Fix duplicate key import due to legacy key in keyring.
12751 + commit 4a326d7c9a3b09efcccf4de00d6c003829ad89e8
12752 * g10/keydb.c (keydb_search_fpr): Skip legacy keys.
12754 gpg: Properly handle legacy keys while looking for a secret key.
12755 + commit f05a63b10428df2878b1bb6fde57a2fc2aa99105
12756 * g10/getkey.c (have_secret_key_with_kid): Skip legacy keys.
12758 2015-07-31 Werner Koch <wk@gnupg.org>
12760 gpg: Fix endless loop for expired keys given by fpr.
12761 + commit 328a6b6459a5ce4a70b374262f221ada20c40878
12762 * g10/getkey.c (lookup): Disable keydb caching when continuing a
12765 2015-07-29 Werner Koch <wk@gnupg.org>
12767 gpg: Do not return "Legacy Key" from lookup if a key is expired.
12768 + commit 23d8609f4b5ec3432323a676fd7ef225c0ef71a1
12769 * g10/getkey.c (lookup): Map GPG_ERR_LEGACY_KEY.
12771 gpg: Indicate secret keys and cards in a key-edit listing.
12772 + commit 8b2b988309cbc5af339beb0a55ff71d7464eb646
12773 * g10/keyedit.c (sign_uids): Add arg "ctrl".
12774 (show_key_with_all_names_colon): Ditto.
12775 (show_key_with_all_names): Ditto.
12777 * g10/keyedit.c (show_key_with_all_names): Print key record
12778 indicators by checking with gpg-agent.
12779 (show_key_with_all_names): Ditto. May now also print sec/sbb.
12781 2015-07-28 Werner Koch <wk@gnupg.org>
12783 gpg: Remove the edit-key toggle command.
12784 + commit 7ef09afd1a6a37c7f22e7c3d898f0c917b08f940
12785 * g10/keyedit.c (cmds): Remove helptext from "toggle".
12786 (keyedit_menu): Remove "toggle" var and remove the sub/pub check
12789 common,w32: Avoid unused var warning about msgcache.
12790 + commit 4bc75337f31374b7424d7bdebf839dd91ec80c0a
12791 * common/i18n.c (USE_MSGCACHE): New.
12792 (msgcache) [!USE_MSGCACHE]: Do not define.
12793 (i18n_localegettext): Repalce #if conditions by USE_MSGCACHE.
12795 w32: Try more places to find an installed Pinentry.
12796 + commit 18f1e627c697d75175b79fe095305fa775f20841
12797 * common/homedir.c (get_default_pinentry_name): Re-implement to
12798 support several choices for Windows.
12800 2015-07-26 Werner Koch <wk@gnupg.org>
12802 scd: Fix size_t/unsigned int mismatch.
12803 + commit 55e64f47a52d76e097a01eb4044a88a4e10d6a87
12804 * scd/app-openpgp.c (ecc_writekey): Use extra var n.
12806 Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros.
12807 + commit d382242fb6789973ce8d246ec154a4a1468c24c0
12808 * common/util.h: Provide replacement for GPGRT_ATTR_ macros when using
12809 libgpg-error < 1.20.
12810 * common/mischelp.h: Ditto.
12811 * common/types.h: Ditto.
12813 2015-07-25 NIIBE Yutaka <gniibe@fsij.org>
12815 scd: support any curves defined by libgcrypt.
12816 + commit ef080d5c7fb7f3b75c3c57c011f78a312b8e13a9
12817 * g10/call-agent.h (struct agent_card_info_s): Add curve field.
12818 * g10/call-agent.c (learn_status_cb): Use curve name.
12819 * g10/card-util.c (card_status): Show pubkey name.
12820 * scd/app-openpgp.c (struct app_local_s): Record OID and flags.
12821 (store_fpr): Use ALGO instead of key type.
12822 (send_key_attr): Use curve name instead of OID.
12823 (get_public_key): Clean up by OID to curve name.
12824 (ecc_writekey): Support any curves in libgcrypt.
12825 (do_genkey, do_auth, ): Follow the change.
12827 (parse_algorithm_attribute): Show OID here.
12829 2015-07-23 Peter Wu <peter@lekensteyn.nl>
12831 build: ignore scissor line for the commit-msg hook.
12832 + commit d24165bce2823c2f5dcb39b7b84c9aa00802a8ee
12833 * build-aux/git-hooks/commit-msg: Stop processing more lines when the
12834 scissor line is encountered.
12836 2015-07-23 NIIBE Yutaka <gniibe@fsij.org>
12838 scd: Format change to specify "rsa2048" for KEY-ATTR.
12839 + commit dbf4534f49a1fe3823bd6d6d7bb4d9df863b4789
12840 * g10/card-util.c (do_change_keysize): Put "rsa".
12841 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
12842 Change the command format.
12843 (rsa_writekey): Check key type.
12844 (do_writekey): Remove "ecdh" and "ecdsa" support which was available
12845 in experimental libgcrypt before 1.6.0.
12847 2015-07-22 Werner Koch <wk@gnupg.org>
12849 Avoid a leading double slash in make_filename.
12850 + commit 69d2c9b09bd9d0b86b9f2feb585037a2c11795b0
12851 * common/stringhelp.c (do_make_filename): Special case leading '/'.
12853 2015-07-21 NIIBE Yutaka <gniibe@fsij.org>
12855 scd: change_keyattr_from_string for ECC.
12856 + commit 9901be395684dd1b35d83685a719291347684ab1
12857 * scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
12859 (rsa_writekey): Don't change key attribute.
12861 2015-07-17 NIIBE Yutaka <gniibe@fsij.org>
12863 scd: Use openpgpdefs.h for constants.
12864 + commit f5d356fb5bbbd0e05a753612455253e4bc335266
12865 * scd/app-openpgp.c: Include openpgpdefs.h.
12867 2015-07-16 Neal H. Walfield <neal@g10code.com>
12869 Don't segfault if the first 'auto-key-locate' option is 'clear'.
12870 + commit f2ee673c99825d5189631031ddec2dbf54dbd482
12871 * g10/getkey.c (free_akl): If AKL is NULL, just return.
12873 2015-07-10 NIIBE Yutaka <gniibe@fsij.org>
12875 agent: Support non-NLS build.
12876 + commit b3286af36d452fc801be573a057b0838d53a2edd
12877 * agent/agent.h: Use ENABLE_NLS and define L_() macro.
12879 2015-07-09 NIIBE Yutaka <gniibe@fsij.org>
12881 scd: Remove unused files.
12882 + commit 67b2dc7636e47baefd5aafe0eb45b4730f974481
12883 * scd/Makefile.am (sc_copykeys_*): Remove.
12884 * scd/sc-copykeys.c: Remove.
12885 * scd/pcsc-wrapper.c: Remove.
12886 * scd/{card-common.h,card-dinsig.c,card-p15.c,card.c}: Remove.
12888 2015-07-08 NIIBE Yutaka <gniibe@fsij.org>
12890 g10: Use canonical name for curve.
12891 + commit 5b46726931049e060d8fbfa879db7907078a9aed
12892 * g10/import.c (transfer_secret_keys): Use canonical name.
12893 * common/openpgp-oid.c (openpgp_curve_to_oid): Return NULL on error.
12894 * g10/keyid.c (pubkey_string): Follow change of openpgp_curve_to_oid.
12895 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
12896 * g10/parse-packet.c (parse_key): Ditto.
12898 2015-07-03 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12900 drop long-deprecated gpgsm-gencert.sh.
12901 + commit 1be2cebf7ff5837c8b548b4f4afbf1b8b28211bc
12902 * tools/gpgsm-gencert.sh: remove deprecated script entirely. It is
12903 fully replaced by gpgsm --gen-key
12904 * doc/tools.texi: remove gpgsm-gencert.sh documentation
12905 * .gitignore: no longer ignore gpgsm-gencert.sh manpage
12906 * doc/Makefile.am: quit making the manpage
12907 * tools/Makefile.am: quit distributing the script
12908 * doc/howto-create-a-server-cert.texi: overhaul documentation to use
12909 gpgsm --gen-key and tweak explanations
12911 2015-07-02 NIIBE Yutaka <gniibe@fsij.org>
12913 po: Update Japanese translation.
12914 + commit 3502b3cc0f5ff92ab89a0da8b1e344a8ad615737
12917 scd: Support AES decryption for OpenPGPcard v3.0.
12918 + commit 45c49a0030c7a01ec011ce810ddb3aaef734e9bf
12919 * scd/app-openpgp.c (do_decipher): Support AES decryption.
12921 2015-07-01 Werner Koch <wk@gnupg.org>
12924 + commit a499eeb6a6545d87ac9f1b64e32017bfdb4f67e6
12927 2015-07-01 Daiki Ueno <ueno@gnu.org>
12929 agent: Unset INSIDE_EMACS on gpg-agent startup.
12930 + commit f1490a3a0ecf4a5a03373c9563f7709630232ee3
12931 * agent/gpg-agent.c (main): Unset INSIDE_EMACS envvar.
12933 2015-07-01 Werner Koch <wk@gnupg.org>
12935 common: Implement i18n_localegettext.
12936 + commit a65447f0d64d0c53ddbdcfc988f26ecc9a8a6f08
12937 * common/i18n.c (msg_cache_s, msg_cache_head_s): New.
12939 (i18n_localegettext): Implement locale dependent lookup.
12941 2015-06-30 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
12943 Pass DBUS_SESSION_BUS_ADDRESS for gnome3.
12944 + commit 816824953c91959c23a57c047bdba6a902ffdde6
12945 * common/session-env.c (stdenvnames): Add DBUS_SESSION_BUS_ADDRESS.
12947 2015-06-30 Werner Koch <wk@gnupg.org>
12949 Flag the L_() function with attribute format_arg.
12950 + commit 232af382e563fcbe15589a3ccae7d6908a17c44d
12951 * agent/agent.h (LunderscorePROTO): New.
12952 * common/util.h (GNUPG_GCC_ATTR_FORMAT_ARG): New.
12953 * common/i18n.h (GNUPG_GCC_ATTR_FORMAT_ARG): New. Use for
12954 i18n_localegettext. Expand LunderscorePROTO.
12955 * agent/genkey.c (check_passphrase_constraints): Use xtryasprintf
12956 again to keep the old translations.
12958 agent: Use different translation func for Pinentry strings.
12959 + commit e76d4c05b24211f3981ab69cddb3fccc17d21e0e
12960 * po/Makevars (XGETTEXT_OPTIONS): Add keyword "L_".
12961 * common/i18n.c (i18n_localegettext): New stub.
12962 * common/i18n.h: Expand the LunderscoreIMPL macro.
12963 * agent/agent.h (L_): New.
12964 (LunderscoreIMPL): New.
12965 * agent/call-pinentry.c (setup_qualitybar): Add arg ctrl anc change
12967 * agent/findkey.c (try_unprotect_cb): Add local var ctrl.
12968 * agent/genkey.c (check_passphrase_constraints): Replace xtryasprintf
12969 by xtrystrdup to avoid gcc warning. Unfortinately this changes the
12971 (agent_ask_new_passphrase): Cleanup the use of initial_errtext.
12973 gpg: Make show-sig-subpackets work again.
12974 + commit 010e4281c3e15e2f86589dd1da419531ead519ef
12975 * g10/gpg.c (parse_list_options): Fix offset for subpackets.
12977 2015-06-29 Werner Koch <wk@gnupg.org>
12979 agent: Prepare for Libassuan with Cygwin support.
12980 + commit b6076579311029aa76c00377d9a804b1578bf58f
12981 * agent/gpg-agent.c (create_server_socket): Add arg "cygwin". Call
12982 assuan_sock_set_flag if Assuan version is recent enough.
12983 (main): Create ssh server socket with Cygwin flag set.
12985 2015-06-29 Neal H. Walfield <neal@gnu.org>
12987 Show passphrase constraints errors as password prompt errors.
12988 + commit 2778c6f8f40d73272075ce04c07097f65c94054e
12989 * agent/agent.h (check_passphrase_constraints): Add parameter
12990 failed_constraint and remove parameter silent. Update callers.
12991 * agent/genkey.c (check_passphrase_constraints): Add parameter
12992 failed_constraint and remove parameter silent. If FAILED_CONSTRAINT
12993 is not NULL and OPT.ENFORCE_PASSPHRASE_CONSTRAINTS is FALSE, save the
12994 error text in *FAILED_CONSTRAINT and don't call take_this_one_anyway
12995 or take_this_one_anyway2. If FAILED_CONSTRAINT is NULL, act as if
12997 (agent_ask_new_passphrase): Change initial_errtext's type from a const
12998 char * to a char *. Pass it to check_passphrase_constraints. If it
12999 contains malloc's memory, free it.
13001 2015-06-29 Neal H. Walfield <neal@g10code.com>
13003 Improve documentation for default-cache-ttl and default-cache-ttl-ssh.
13004 + commit 0416aed4abf6cea94458d2e38eb4a5e6bfea2d8b
13005 * doc/gpg-agent.texi (Agent Options): Improve documentation for
13006 default-cache-ttl and default-cache-ttl-ssh.
13008 Don't raise max-cache-ttl to default-cache-ttl.
13009 + commit 60cf69ff9d61a2cd37fc4468f232fd41aa70a651
13010 * agent/gpg-agent.c (finalize_rereadable_options): Don't raise
13011 max-cache-ttl to default-cache-ttl. Likewise for max-cache-ttl-ssh
13012 and default-cache-ttl-ssh.
13014 Improve the description of old packets with an indeterminate length.
13015 + commit 68c217f457a772984d0afbdd341f18de7c867505
13016 * g10/parse-packet.c (parse): Make the description more accurate when
13017 listing packets: old format packets don't support partial lengths,
13018 only indeterminate lengths (RFC 4880, Section 4.2).
13020 2015-06-29 Werner Koch <wk@gnupg.org>
13022 agent: Add --verify to the PASSWD command.
13023 + commit 9bca96dbc5c32bdd00196462fde8c9ab94aeb28d
13024 * agent/command.c (cmd_passwd): Add option --verify.
13026 agent,w32: Do not create a useless socket with --enable-putty-support.
13027 + commit 7a387331645736eaeaaef57770beef5fa741bc22
13028 * agent/agent.h (opt): Remove field ssh_support.
13029 * agent/gpg-agent.c (ssh_support): New. Replace all opt.ssh_support
13031 (main): Do not set ssh_support along with setting putty_support.
13033 gpgsm: Add command option "offline".
13034 + commit 2c9c46e2a2b8f9a1bdc1ef46a135b5fc7d1a8073
13035 * sm/server.c (option_handler): Add "offline".
13036 (cmd_getinfo): Ditto.
13037 * sm/certchain.c (is_cert_still_valid):
13038 (do_validate_chain):
13039 * sm/gpgsm.c (gpgsm_init_default_ctrl): Default "offline" to the value
13040 of --disable-dirmngr.
13041 * sm/call-dirmngr.c (start_dirmngr_ext): Better also check for
13044 2015-06-26 NIIBE Yutaka <gniibe@fsij.org>
13046 scd: Support button flag and AES key data for OpenPGPcard v3.0.
13047 + commit d2fdf2e1b6cd447bb1c36df0ac7d8e669802fa22
13048 * scd/app-openpgp.c (do_getattr, show_caps, app_select_openpgp):
13049 Support button and symmetric decryption.
13050 (do_setattr): Support setting AESKEY.
13052 2015-06-25 Andre Heinecke <aheinecke@intevation.de>
13054 sm: Fix cert storage for ephemeral certs.
13055 + commit 5e1a844ae9b6730b4b8a2c9178ea9bc121560c28
13056 * sm/keydb.c (keydb_store_cert): Clear ephemeral flag for
13057 existing certs if store should not be ephemeral.
13059 2015-06-23 Werner Koch <wk@gnupg.org>
13061 Allow use of debug flag names for all tools.
13062 + commit 54a0ed3d9b10a3c6dfb3d6a4d20b693a3183f8f6
13063 * g13/g13.c: Make use of debug_parse_flag.
13064 * scd/scdaemon.c: Ditto.
13065 * sm/gpgsm.c: Ditto
13066 * agent/gpg-agent.c: Ditto. But do not terminate on "help"
13067 * dirmngr/dirmngr.c: Ditto.
13069 common: Improve fucntion parse_debug_flag.
13070 + commit 8195e55d0c134a45f7c9bd95c8b5741781841c18
13071 * common/miscellaneous.c (parse_debug_flag): Add hack not to call
13072 exit. Add "none" and "all" flags.
13074 2015-06-23 NIIBE Yutaka <gniibe@fsij.org>
13076 scd: pinpad workaround for PC/SC implementations.
13077 + commit 5e1d2fe6555d06f9dcd2daac713b2edfbc0428a5
13078 * scd/adpu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Bigger buffer
13079 for TPDU card reader.
13081 2015-06-22 Werner Koch <wk@gnupg.org>
13083 gpg: Allow debug flag names for --debug.
13084 + commit 4698e5b203bd983503b5fd784fcd09dd3bc3a15e
13085 * g10/gpg.c (opts): Change arg for oDebug to a string.
13086 (debug_flags): New; factored out from set_debug.
13087 (set_debug): Remove "--debug-level help". Use parse_debug_flag to
13088 print the used flags.
13089 (main): Use parse_debug_flag for oDebug.
13091 common: Add function parse_debug_flag.
13092 + commit 22147952b744958ec46d356e942540356ff7d93e
13093 * common/miscellaneous.c (parse_debug_flag): New.
13094 * common/util.h (struct debug_flags_s): New.
13096 common: Add function strtokenize.
13097 + commit d37f47081d41584efc0c397432811f9cfa5d5867
13098 * common/stringhelp.c: Include assert.h.
13099 (strtokenize): New.
13100 * common/t-stringhelp.c (test_strtokenize): New.
13102 gpg: Fix regression due to recent commit 6500f33.
13103 + commit e0873a3372800d51c90ca656450f937dbae9c169
13104 * g10/keydb.c (kid_list_s): Keep a state in the table.
13105 (kid_not_found_table): Rename to kid_found_table.
13106 (n_kid_not_found_table): Rename to kid_found_table_count.
13107 (kid_not_found_p): Return found state.
13108 (kid_not_found_insert): Add arg found.
13109 (keydb_search): Store found state in the table.
13111 2015-06-22 NIIBE Yutaka <gniibe@fsij.org>
13113 scd: Fix Cherry ST-2000 support for pinpad input.
13114 + commit 444e9232aa9e00aacd939cbf7bdb881b550dfebe
13115 * scd/apdu.c (pcsc_vendor_specific_init): Set pinmax to 15.
13116 * scd/ccid-driver.c (ccid_transceive_secure): Add zero for the
13119 2015-06-20 Werner Koch <wk@gnupg.org>
13121 gpg: Print number of good signatures with --check-sigs.
13122 + commit 0948c4f217308ffa0ec61ce189d387fd61b02bbd
13123 * g10/keylist.c (keylist_context): Add field good_sigs.
13124 (list_keyblock_print): Updated good_sigs.
13125 (print_signature_stats): Print number of good signatures and use
13126 log_info instead of tty_printf.
13128 gpg: Improve speed of --check-sigs and --lish-sigs.
13129 + commit 6500f338a35f4148606480c79f3a0c1b0d15f13a
13130 * g10/keydb.c (kid_list_t): New.
13131 (kid_not_found_table, n_kid_not_found_table): New.
13132 (kid_not_found_p, kid_not_found_insert, kid_not_found_flush): New.
13133 (keydb_insert_keyblock): Flush the new cache.
13134 (keydb_delete_keyblock): Ditto.
13135 (keydb_update_keyblock): Ditto.
13136 (keydb_search): Use the new cache.
13137 (keydb_dump_stats): New.
13138 * g10/gpg.c (g10_exit): Dump keydb stats.
13140 2015-06-19 Werner Koch <wk@gnupg.org>
13142 gpg: Add more log_clock calls to keydb.c.
13143 + commit 53e9b86085ac70ede8a0b1de9018ccbfe55b0932
13144 * g10/keydb.c (keydb_get_keyblock): Add log_clock calls.
13146 gpg: Print available debug flags using "--debug-level help".
13147 + commit 663a31f1ea2fc5a43c822e916cf20fece5243851
13148 * g10/gpg.c (set_debug): Add "help" option and use a table for the
13151 gpg: Fix export problem in case an old keyring has PGP-2 keys.
13152 + commit c5604eeee4b64a44a1ca1d517ace14fc1cbda298
13153 * g10/export.c (do_export_stream): Skip legacy keys.
13155 2015-06-18 Werner Koch <wk@gnupg.org>
13157 dirmngr: Fix the cleanup zombies fix (685b782).
13158 + commit c97198371b7307e64afdd323231977b2247f64ec
13159 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Do not close the
13160 stdout reader after EOF from read_log_data.
13161 * dirmngr/crlcache.c (crl_cache_reload_crl): Close the reader before
13162 the next iteration.
13164 2015-06-17 Werner Koch <wk@gnupg.org>
13166 agent: Print a warning for obsolete options.
13167 + commit 010d26a85bfe15c4aa12eefeab851dbde0609c26
13168 * g10/misc.c (obsolete_scdaemon_option): Move to
13169 * common/miscellaneous.c (obsolete_option): ... here.
13170 * agent/gpg-agent.c (main): Use obsolete_option for the 3 obsolete
13173 2015-06-16 Werner Koch <wk@gnupg.org>
13175 dirmngr: Cleanup zombies and fix hang on shutdown.
13176 + commit 685b782a18adb90bbf78956682e4e7f89fed678c
13177 * dirmngr/ldap-wrapper.c (ldap_wrapper_thread): Move nfds computation
13178 into the loop. Check the queue also on timeout. Close log_fd and
13179 reader context on EOF or error.
13181 dirmngr: Avoid accessing uninitialized memory in log callback.
13182 + commit 82c72e2db7bc5b633768d59822f2e2a353fa6e32
13183 * dirmngr/dirmngr.c (pid_suffix_callback): Clear int_and_ptr_u before
13185 (start_connection_thread): Ditto.
13186 (handle_connections): Ditto.
13188 2015-06-16 Neal H. Walfield <neal@g10code.com>
13190 Don't prompt for the password multiple times in pinentry loopback mode.
13191 + commit eac081ba1278855fa223b031b527498fec558bc7
13192 * g10/gpg.c (main): If OPT.PINENTRY_MODE is PINENTRY_MODE_LOOPBACK,
13193 clear OPT.PASSPHRASE_REPEAT.
13195 2015-06-16 NIIBE Yutaka <gniibe@fsij.org>
13197 po: Update Japanese Translation.
13198 + commit 15540f6233bd041b06708862a6d9535cbcabe330
13201 2015-06-15 Werner Koch <wk@gnupg.org>
13203 doc: Add defs.inc to BUILT_SOURCES.
13204 + commit ef273a9afc7840b75cfb9b8af78d117b7d672c6a
13207 2015-06-11 Werner Koch <wk@gnupg.org>
13210 + commit 9b7bdfae82f74a147a5dbf0fac0f78cde77a207b
13213 agent: Fix --extra-socket on Windows.
13214 + commit 985918aab025cf0ac9db411b88a47c4b985e5e95
13215 * agent/gpg-agent.c (start_connection_thread): Rename to ...
13216 (do_start_connection_thread): this. Factor nonce checking out to ...
13217 (start_connection_thread_std): this,
13218 (start_connection_thread_extra): this,
13219 (start_connection_thread_browser): and this.
13221 agent: Add experimental option --browser-socket.
13222 + commit 008435b95cbca19adc217178dc9d793eca584345
13223 * agent/agent.h (opt): Add field "browser_socket".
13224 * agent/command.c (cmd_setkeydesc): Use a different message for
13226 * agent/gpg-agent.c (oBrowserSocket): New.
13227 (opts): Add --browser-socket.
13228 (socket_name_browser, redir_socket_name_browser): New.
13229 (socket_nonce_browser): New.
13230 (cleanup): Cleanup browser socket.
13231 (main): Implement option.
13232 (start_connection_thread_browser): New.
13233 (handle_connections): Add arg listen_fd_browser and use it.
13235 2015-06-10 Daiki Ueno <ueno@gnu.org>
13237 agent: Add option --allow-emacs-pinentry.
13238 + commit 691dae270b3b741178912599724d69adabdb48b9
13239 * agent/agent.h (opt): Add field allow_emacs_pinentry.
13240 * agent/call-pinentry.c (start_pinentry): Act upon new var.
13241 * agent/gpg-agent.c (oAllowEmacsPinentry): New.
13242 (opts): Add option --allow-emacs-pinentry.
13243 (parse_rereadable_options): Set this option.
13244 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add new option.
13246 2015-06-09 Werner Koch <wk@gnupg.org>
13248 doc: Do not used fixed file names in the manuals.
13249 + commit 25331bba5554a39d226d32433add7784b2e170b8
13250 * doc/mkdefsinc.c: New.
13251 * doc/Makefile.am: Include cmacros.am.
13252 (EXTRA_DIST): Add mkdefsinc.c defsincdate.
13253 (BUILT_SOURCES): Add defsincdate
13254 (CLEANFILES): Add mkdefsinc and defs.inc.
13255 (mkdefsinc): New rule.
13256 (yat2m-stamp): Depend on defs.inc.
13257 ($(myman_pages) gnupg.7): Ditto.
13258 (gnupg.texi): Remove rule to touch itself.
13260 (defsincdate): New.
13262 * doc/gnupg.texi: Remove inclusion of version.texi. Include defs.inc.
13263 Also include defs.inc in all files used to build man files. Change
13264 fixed directory names to those from defs.inc.
13266 dirmngr: Avoid crash due to an empty crls.d/DIR.txt.
13267 + commit 255dadd76d5a2101d2c5450741326b67253fa9ea
13268 * dirmngr/crlcache.c (check_dir_version): Avoid segv.
13270 2015-06-08 Werner Koch <wk@gnupg.org>
13272 doc: Change the manual source to be only for GnuPG 2.1.
13273 + commit abbefdd04d7ee30218506caeae1fd858569c9f0a
13276 Convey envvar INSIDE_EMACS to the pinentry.
13277 + commit c672572bd50966187cc823585efed673b66ff942
13278 * common/session-env.c (stdenvnames): Add it.
13280 agent: Add command "getinfo std_env_names".
13281 + commit 8425db6a26bf66dad16dfbc26be9af7d272f31d3
13282 * agent/command.c (cmd_getinfo): Add new sub-command.
13284 2015-06-05 NIIBE Yutaka <gniibe@fsij.org>
13286 scd: do_decipher change for OpenPGPcard v3.0.
13287 + commit cf508a1f7f4c8926dc554be68a2d46f5ce272ac0
13288 * scd/app-openpgp.c (do_decipher): Add a header for ECDH.
13290 2015-06-04 Werner Koch <wk@gnupg.org>
13292 gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c.
13293 + commit a4a15195c2a3729025a3ba3439ac8860083fceeb
13294 * g10/tdbio.c (lookup_hashtable): Return GPG_ERR_NOT_FOUND.
13295 * g10/tdbdump.c (import_ownertrust): Test for GPG_ERR_NOT_FOUND.
13296 * g10/trustdb.c (read_trust_record): Ditto.
13297 (tdb_get_ownertrust, tdb_get_min_ownertrust): Ditto.
13298 (tdb_update_ownertrust, update_min_ownertrust): Ditto.
13299 (tdb_clear_ownertrusts, update_validity): Ditto.
13300 (tdb_cache_disabled_value): Ditto.
13302 gpg: Cleanup error code path in case of a bad trustdb.
13303 + commit f170240ef735edc481f60e51527cbb5ee1acfd55
13304 * g10/tdbio.c (tdbio_read_record): Fix returning of the error.
13306 gpg: Fix output in case of a corrupted trustdb.
13307 + commit bf06d04f53296f4b4b73b9360cf1571559bb2295
13308 * g10/tdbdump.c (list_trustdb): Add arg FP and change callers to pass
13310 * g10/tdbio.c (upd_hashtable): On a corrupted trustdb call
13311 list_trustdb only in verbose > 1 mode and let it dump to stderr.
13313 2015-05-29 NIIBE Yutaka <gniibe@fsij.org>
13315 scd: Fix key template of ECC.
13316 + commit e5c69e87beebe99d362ac721ce4ea6b057a30a99
13317 * scd/app-openpgp.c (build_ecc_privkey_template): Use correct value.
13319 2015-05-28 NIIBE Yutaka <gniibe@fsij.org>
13321 g10: Fix a race condition initially creating trustdb.
13322 + commit fe5c6edaed78839303d67e01e141cfc6b5de9aec
13323 * g10/tdbio.c (take_write_lock, release_write_lock): New.
13324 (put_record_into_cache, tdbio_sync, tdbio_end_transaction): Use
13325 new lock functions.
13326 (tdbio_set_dbname): Fix the race.
13327 (open_db): Don't call dotlock_create.
13329 2015-05-27 NIIBE Yutaka <gniibe@fsij.org>
13331 g10: Remove g10/signal.c.
13332 + commit 6cb18a8f975b7ff7ca79c1fb0cddcd4b66be90fb
13333 * g10/signal.c: Remove.
13334 * g10/main.h: Remove old function API.
13335 * g10/tdbio.c: Use new API, even in the dead code.
13337 2015-05-20 Werner Koch <wk@gnupg.org>
13339 agent: Cleanup caching code for command GET_PASSPHRASE.
13340 + commit 23d2ef83cda644c6a83499f9327350d3371e8a17
13341 * agent/command.c (cmd_get_passphrase): Read from the user cache.
13343 2015-05-19 Neal H. Walfield <neal@g10code.com>
13345 agent: When the password cache is cleared, also clear the ext. cache.
13346 + commit 3a9305439b75ccd4446378d4fd87da087fd9c892
13347 * agent/agent.h (agent_clear_passphrase): New declaration.
13348 * agent/call-pinentry.c (agent_clear_passphrase): New function.
13349 * agent/command.c (cmd_clear_passphrase): Call agent_clear_passphrase.
13351 agent: Modify agent_clear_passphrase to support an ext. password cache.
13352 + commit e201c20f25e7bed29088186c5f717d43047a0f4b
13353 * agent/agent.h (agent_get_passphrase): Add arguments keyinfo and
13354 cache_mode. Update callers.
13355 * agent/call-pinentry.c (agent_get_passphrase): Add arguments keyinfo
13356 and cache_mode. If KEYINFO and CACHE_MODE describe a cachable key,
13357 then send SETKEYINFO to the pinentry.
13359 2015-05-19 NIIBE Yutaka <gniibe@fsij.org>
13361 g10: detects public key encryption packet error properly.
13362 + commit c771963140cad7c1c25349bcde27e427effc0058
13363 g10/mainproc.c (proc_pubkey_enc): Only allow relevant algorithms for
13366 2015-05-15 Werner Koch <wk@gnupg.org>
13368 build: Make --disable-gpgsm work.
13369 + commit 43ea8f5d884dd108bb27d8e1610fa28802295a06
13370 * Makefile.am: Always build kbx/
13371 * g10/Makefile.am (AM_CFLAGS): Include KSBA_CFLAGS.
13373 2015-05-12 Werner Koch <wk@gnupg.org>
13376 + commit a67ead6525d7597a9e0b152c5971f6290f7912f3
13379 speedo: Add make option SELFCHECK=0 to build a new release.
13380 + commit 21b0701e2e044894c53ff59d22c5c6a172780c25
13381 * build-aux/getswdb.sh: Add option --skip-selfcheck.
13382 * build-aux/speedo.mk: Add option SELFCHECK.
13384 2015-05-11 Werner Koch <wk@gnupg.org>
13386 common: Cope with AIX problem on number of open files.
13387 + commit 987532b038a2d9b9e76c0de425ee036ca2bffa1b
13388 * common/exechelp-posix.c: Limit returned value for too hight values.
13390 gpg-connect-agent: Fix quoting of internal percent+ function.
13391 + commit 26e2eb98d3d8405b335b43c8e86deacf622cd957
13392 * tools/gpg-connect-agent.c (get_var_ext) <percent, percent+): Also
13395 agent: Add option --no-allow-external-cache.
13396 + commit d7293cb317acc40cc9e5189cef33fe9d8b47e62a
13397 * agent/agent.h (opt): Add field allow_external_cache.
13398 * agent/call-pinentry.c (start_pinentry): Act upon new var.
13399 * agent/gpg-agent.c (oNoAllowExternalCache): New.
13400 (opts): Add option --no-allow-external-cache.
13401 (parse_rereadable_options): Set this option.
13403 agent: Add strings for use by future Pinentry versions.
13404 + commit 02d5e1205489aa5027a87a64552eaf15984dc22d
13405 * agent/call-pinentry.c (start_pinentry): Add more strings.
13407 agent: Add option --debug-pinentry.
13408 + commit 14232c3870c5ef5d2fa15e8ed3f302b1ba29d25c
13409 * agent/gpg-agent.c (oDebugPinentry): New.
13410 (opts): Add --debug-pinentry.
13411 (parse_rereadable_options): Set that option.
13412 * agent/call-pinentry.c (start_pinentry): Pass option to
13415 2015-05-08 Werner Koch <wk@gnupg.org>
13417 gpg: Avoid cluttering stdout with trustdb info in verbose mode.
13418 + commit b03a2647299a6c8764a2574590cbaccdff9e497d
13419 * g10/trustdb.c (validate_keys): Call dump_key_array only in debug
13422 gpg: Fix wrong output in list mode.
13423 + commit 7039f87375b3c89d6e63837b811ed2be71c8d9db
13424 * g10/parse-packet.c (parse_gpg_control): Replace puts by es_fputs to
13427 gpg: New command --quick-adduid.
13428 + commit 64e809b791645f343feb69112baba8e2700e454b
13429 * g10/keygen.c (ask_user_id): Factor some code out to ...
13430 (uid_already_in_keyblock): new.
13431 (generate_user_id): Add arg UIDSTR. Fix leaked P.
13432 * g10/keyedit.c (menu_adduid): Add new arg uidstring. Adjust caller.
13433 (keyedit_quick_adduid): New.
13434 * g10/gpg.c (aQuickAddUid): New.
13435 (opts): Add command --quick-adduid.
13436 (main): Implement that.
13438 gpg: Add push/pop found state feature to keydb.
13439 + commit 3c439c0447f8a7468a61bbdc4c9a101ef2451dcb
13440 * g10/keydb.c (keydb_handle): Add field saved_found.
13441 (keydb_new): Init new field.
13442 (keydb_push_found_state, keydb_pop_found_state): New.
13443 * g10/keyring.c (kyring_handle): Add field saved_found.
13444 (keyring_push_found_state, keyring_pop_found_state): New.
13446 gpg: Minor code merging in keyedit.
13447 + commit b772e459fa91cdc7facd95227ebc0faba20a7003
13448 * g10/keyedit.c (fix_keyblock): Rename to fix_key_signature_order.
13449 (fix_keyblock): New. Call fix_key_signature_order and other fix
13451 (keyedit_menu): Factor code out to new fix_keyblock.
13452 (keyedit_quick_sign): Ditto. Check for primary fpr before calling
13455 2015-05-07 Werner Koch <wk@gnupg.org>
13457 agent: Minor change for 56b5c9f.
13458 + commit 436f2060721e997479a9dd5be8dfc73627dd49c9
13459 * agent/call-pinentry.c (agent_askpin): Move option setting to ...
13460 (start_pinentry): here. Fix error code check.
13462 2015-05-07 Kristian Fiskerstrand <kf@sumptuouscapital.com>
13464 dirmngr: Fix segfault in ldap engine.
13465 + commit d0d4984cfec54dee727b9e9d33d09e33c6f2e182
13466 (ks-engine-ldap.c) Fix segfault caused by missing check whether uri is
13469 2015-05-07 Neal H. Walfield <neal@g10code.com>
13471 agent: Improve support for externally cached passwords.
13472 + commit 56b5c9f94f2e55d096be585ed061ccf1c9ec0de6
13473 * agent/call-pinentry.c (PINENTRY_STATUS_PASSWORD_FROM_CACHE): New
13475 (pinentry_status_cb): Add it to *FLAGS if PASSWORD_FROM_CACHE was
13477 (agent_askpin): Pass "OPTION allow-external-password-cache" to the
13478 pinentry. Always pass SETKEYINFO to the pinentry. If there is no
13479 stable identifier, then use "--clear". If the password is incorrect
13480 and PINENTRY_STATUS_PASSWORD_FROM_CACHE is set in *PINENTRY_STATUS,
13481 then decrement PININFO->FAILED_TRIES.
13483 agent: Or in the value; don't overwrite the variable.
13484 + commit 74944330ba7229ed0cbe23cc0f573962a444bd07
13485 * agent/call-pinentry.c (pinentry_status_cb): Or in
13486 PINENTRY_STATUS_CLOSE_BUTTON; don't overwrite *FLAG.
13488 agent: Avoid magic numbers. Use more accurate names.
13489 + commit d3b5cad2346bd5747789dc62d7804fa5c15f4f3b
13490 * agent/call-pinentry.c (PINENTRY_STATUS_CLOSE_BUTTON): New constant.
13491 (PINENTRY_STATUS_PIN_REPEATED): Likewise.
13492 (close_button_status_cb): Rename from this...
13493 (pinentry_status_cb): ... to this. Use the constants.
13494 (agent_askpin): Rename local variable from close_button to
13495 pinentry_status. Use symbolic constants rather than magic numbers.
13497 2015-05-07 Werner Koch <wk@gnupg.org>
13499 gpg: Improve 'General key info' line of --card-status.
13500 + commit 874ef16e70ab750db7b153f17a7e859a0db6a2f1
13501 * g10/keylist.c (print_pubkey_info): Print either "pub" or "sub".
13503 * g10/getkey.c (get_pubkey_byfprint): Add optional arg R_KEYBLOCK.
13504 * g10/keyid.c (keyid_from_fingerprint): Adjust for change.
13505 * g10/revoke.c (gen_desig_revoke): Adjust for change.
13506 * g10/card-util.c (card_status): Simplify by using new arg. Align
13509 * g10/card-util.c (card_status): Remove not used GnuPG-1 code.
13511 gpg: Fix regression not displaying the card serial number.
13512 + commit 173b26c8f83a3c623165a96c315bf9ed4b90edcc
13513 * g10/call-agent.c (keyinfo_status_cb): Detect KEYINFO.
13515 2015-05-06 Werner Koch <wk@gnupg.org>
13517 speedo,w32: Install a native pinentry.
13518 + commit 154abaf3c97dae43ba972e4482680a287f3e5c39
13519 * build-aux/speedo.mk: Always build pinentry for w32.
13520 (speedo_pkg_pinentry_configure): Adjust to modern pinentry.
13521 * build-aux/speedo/w32/inst.nsi: Install native pinentry under the
13522 name pinentry-basic.exe.
13524 2015-05-01 NIIBE Yutaka <gniibe@fsij.org>
13526 g10: fix cmp_public_key.
13527 + commit f77fd572db658959fa40aa8c181be919e688b707
13528 * g10/free-packet.c (cmp_public_keys): Compare opaque
13529 data at the first entry of the array when it's unknown algo.
13531 2015-04-30 NIIBE Yutaka <gniibe@fsij.org>
13533 scd: PC/SC reader selection by partial string match.
13534 + commit 01a2a61bc4b34817c4216888265f65d59a33dad3
13535 * scd/apdu.c (open_pcsc_reader_direct): Partial string match.
13537 2015-04-24 Werner Koch <wk@gnupg.org>
13539 common: Remove JNLIB from boiler plate (jnlib merge).
13540 + commit 172b6193488f433a206fd88f85d8c4a5d1eb7fdf
13541 * common/README.jnlib: Remove.
13543 common: Rename log and gcc attribute macros (jnlib merge).
13544 + commit 26d7e0d7accf269c15fb4bc23e5e80580bfb7fe3
13545 * common/logging.h: Rename JNLIB_LOG_* to GPGRT_LOG_*.
13546 * common/mischelp.h: Rename JNLIB_GCC_* to GPGRT_GCC_*.
13548 common: Remove two JNLIB_ macros (jnlib merge).
13549 + commit 575230d91bba95697518da418ea0e8712f889a0f
13550 * configure.ac: Merge seperate jnlib checks.
13551 (HAVE_JNLIB_LOGGING): Remove.
13552 * common/logging.c, common/simple-pwquery.c (JNLIB_NEED_AFLOCAL):
13553 Rename to GNUPG_COMMON_NEED_AFLOCAL. Change all tests.
13555 common: Remove libjnlib-config.h (jnlib merge).
13556 + commit 17bcd087082d01c48c60ff20d7f9a40f34c6969f
13557 * common/libjnlib-config.h: Remove.
13558 * common/common-defs.h (getenv) [HAVE_GETENV]: New. From removed
13560 (getpid) [HAVE_W32CE_SYSTEM]: New. From removed header.
13561 * common/argparse.c: Include util.h and common-defs.h. Replace
13562 jnlib_ macro names for non-GNUPG builds by x* names.
13563 * common/dotlock.c: Ditto.
13564 * common/logging.c: Include util.h and common-defs.h. Replace jnlib_
13565 symbol names by x* names.
13566 * common/strlist.c: Ditto.
13567 * common/utf8conv.c: Ditto.
13568 * common/w32-reg.c: Ditto.
13569 * common/mischelp.c: Ditto. Also remove _jnlib_free.
13570 * common/stringhelp.c: Ditto.
13571 (JNLIB_LOG_WITH_PREFIX): Do not depend on this macro.
13572 * common/logging.h (JNLIB_LOG_WITH_PREFIX): Do not depend on this
13575 2015-04-23 Werner Koch <wk@gnupg.org>
13577 gpg: Move all DNS access to Dirmngr.
13578 + commit 154f3ed2bf64de801ae0f9796338a2767ec6357b
13579 * common/dns-cert.h: Move to ../dirmngr/.
13580 * common/dns-cert.c: Move to ../dirmngr/. Change args to return the
13582 * common/t-dns-cert.c: Move to ../dirmngr/.
13583 * common/pka.c, common/pka.h, common/t-pka.c: Remove.
13585 * dirmngr/server.c (data_line_cookie_write): Factor code out to
13586 data_line_write and make it a wrapper for that.
13587 (data_line_write): New.
13588 (cmd_dns_cert): New.
13589 (register_commands): Register new command.
13591 * g10/Makefile.am (LDADD): Remove DNSLIBS.
13592 * g10/call-dirmngr.c (dns_cert_parm_s): New.
13593 (dns_cert_data_cb, dns_cert_status_cb): New.
13594 (gpg_dirmngr_dns_cert): New.
13595 (gpg_dirmngr_get_pka): New.
13596 * g10/gpgv.c (gpg_dirmngr_get_pka): New dummy function.
13597 * g10/keyserver.c (keyserver_import_cert): Replace get_dns_cert by
13598 gpg_dirmngr_dns_cert.
13599 (keyserver_import_pka): Replace get_pka_info by gpg_dirmngr_get_pka.
13600 * g10/mainproc.c: Include call-dirmngr.h.
13601 (pka_uri_from_sig): Add CTX arg. Replace get_pka_info by
13602 gpg_dirmngr_get_pka.
13604 common: Minor change of hex2str to allow for embedded nul.
13605 + commit ce11cc39ea7e011040debc9339a2310a714efe7e
13606 * common/convert.c (hex2str): Set ERRNO. Return adjusted COUNT.
13608 2015-04-23 NIIBE Yutaka <gniibe@fsij.org>
13610 common: removal of t-support.c from t_jnlib_src.
13611 + commit a7264e3a6a83189a9e43edf5e99f5ac7ee42a2ab
13612 * common/Makefile.am (t_jnlib_src): Remove t-support.c.
13614 2015-04-21 Werner Koch <wk@gnupg.org>
13616 gpg: Make keyserver-option http_proxy work.
13617 + commit c4d98734c5df39f57a71f0ec1c0c80e82ff08508
13618 * g10/options.h (opt): Add field keyserver_options.http_proxy.
13619 * g10/keyserver.c (warn_kshelper_option): Add arg noisy.
13620 (parse_keyserver_options): Parse into new http_proxy field.
13621 * g10/call-dirmngr.c (create_context): Send the http-proxy option.
13623 common: Make proper use of http proxy parameter.
13624 + commit 54e55149f2af96eff08bfd6f70ef13d007fb58c7
13625 * common/http.c (is_hostname_port): New.
13626 (send_request): Fix proxy name parsing.
13628 dirmngr: Add http proxy support for keyservers.
13629 + commit a0dead5edce07838cf5ff3ec7205a3bff2a6ef70
13630 * dirmngr/dirmngr.h (server_control_s): Add field http_proxy.
13631 * dirmngr/dirmngr.c (dirmngr_init_default_ctrl): Copy http_proxy value
13633 (dirmngr_deinit_default_ctrl): New.
13634 (main): Call dirmngr_deinit_default_ctrl.
13635 * dirmngr/server.c (start_command_handler): Ditto.
13636 (option_handler): Add option "http-proxy".
13637 * dirmngr/crlfetch.c (crl_fetch): Take http_proxy from CTRL.
13638 * dirmngr/ocsp.c (do_ocsp_request): Ditto.
13639 * dirmngr/ks-engine-hkp.c (send_request): Add proxy support.
13640 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
13642 gpg: Do not use honor-keyserver-url sub-option by default.
13643 + commit 727fe4f8d7d5fc3eac0b0aa6fafa4a314686d7dc
13646 gpg: Make preferred keyservers work.
13647 + commit ae0d65f86413a82a40cf68e08aaeca405eee8c78
13648 * g10/call-dirmngr.c (dirmngr_local_s): Add field set_keyservers_done.
13649 (create_context): Move keyserver setting to ...
13650 (open_context): here.
13651 (clear_context_flags): New.
13652 (gpg_dirmngr_ks_get): Add arg override_keyserver.
13653 * g10/keyserver.c (keyserver_refresh): Improve diagnostics.
13654 (keyserver_get_chunk): Ditto. Pass OVERRIDE_KEYSERVER to ks_get.
13656 gpg: Update sub-options of --keyserver-options.
13657 + commit da1990bac71f6447d8ebd169c3b3b186e9f287d9
13658 * g10/options.h (KEYSERVER_HTTP_PROXY): New.
13659 (KEYSERVER_USE_TEMP_FILES, KEYSERVER_KEEP_TEMP_FILES): Remove.
13660 (KEYSERVER_TIMEOUT): New.
13661 * common/keyserver.h (KEYSERVER_TIMEOUT): Remove.
13662 * g10/keyserver.c (keyserver_opts): Remove obsolete "use-temp-files"
13663 and "keep-temp-files". Add "http-proxy" and "timeout".
13664 (parse_keyserver_options): Remove 1.2 compatibility option
13665 "honor-http_proxy". Remove "use-temp-files" and "keep-temp-files"
13668 2015-04-14 Werner Koch <wk@gnupg.org>
13670 agent: Send the new SETKEYINFO command to the Pinentry.
13671 + commit 2180845959839705200e3172dbafc94b70b9007f
13672 * agent/call-pinentry.c (agent_askpin): Add args keyinfo and
13673 cache_mode. Change all callers to pass (NULL,0) for them. Send
13674 SETKEYINFO command.
13675 * agent/findkey.c (unprotect): Pass the keygrip and the cache_mode for
13678 2015-04-14 NIIBE Yutaka <gniibe@fsij.org>
13680 scd: better handling of extended APDU.
13681 + commit 971d558e862db878a7310e06ed7116dbe36886ab
13682 * scd/apdu.c (send_le): Bug fix for not append Z when lc<0&&le<0.
13683 * scd/app-common.h (struct app_ctx_s): Use bit fields for flags.
13684 * scd/ccid-driver.c (CCID_MAX_BUF): New. Only for OpenPGPcard.
13685 (struct ccid_driver_s): New field of max_ccid_msglen.
13687 (parse_ccid_descriptor): Initialize max_ccid_msglen.
13688 (ccid_transceive_apdu_level): Implement sending extended APDU in
13689 chain of CCID message.
13691 2015-04-13 Werner Koch <wk@gnupg.org>
13693 gpg: Fix NULL-segv due to invalid imported data.
13694 + commit 25fce93ba19d997e234a674d5cc98df82c5b5496
13695 * g10/free-packet.c (my_mpi_copy): New.
13696 (copy_public_key, copy_signature): Use instead of mpi_copy.
13698 2015-04-13 Neal H. Walfield <neal@g10code.com>
13700 dirmngr: If LDAP is not enable, don't build the LDAP bits.
13701 + commit 5cde5bf37339cdeb0bd0a33d39477382eafebede
13702 * dirmngr/Makefile.am (dirmngr_SOURCES): Only include
13703 ks-engine-ldap.c, ldap-parse-uri.c and ldap-parse-uri.h if USE_LDAP
13705 (module_tests): Only add t-ldap-parse-uri if USE_LDAP is TRUE.
13706 * dirmngr/ks-action.c: Only include "ldap-parse-uri.h" if USE_LDAP is
13708 (ks_action_help): Don't invoke LDAP functionality if USE_LDAP is not
13710 (ks_action_search): Likewise.
13711 (ks_action_get): Likewise.
13712 (ks_action_put): Likewise.
13713 * dirmngr/server.c: Only include "ldap-parse-uri.h" if USE_LDAP is
13715 (cmd_keyserver): Don't invoke LDAP functionality if USE_LDAP is not
13718 2015-04-13 Werner Koch <wk@gnupg.org>
13720 common: Do without nested fucntions to support non-gcc.
13721 + commit 454f60399c7318fffd3de2afadd58c7a490178bd
13722 * common/t-stringhelp.c (test_strsplit): Remove nested function.
13724 2015-04-11 Werner Koch <wk@gnupg.org>
13727 + commit b1e1959d59a12b53c016ca9c95aee3a62c0bfc00
13730 2015-04-11 Yuri Chornoivan <yurchor@ukr.net>
13732 po: Update Ukrainian translation.
13733 + commit 896f438967b66b4836419aa737c706ced6b6454a
13736 2015-04-11 Ineiev <ineiev@gnu.org>
13738 po: Update and review Russian translation.
13739 + commit b69d7064f30c38ffe18e71de6a0fc14b5da0452f
13742 2015-04-10 Werner Koch <wk@gnupg.org>
13744 dirmngr,w32: Make it build for Windows.
13745 + commit c8bb5000d4c86a055348dc08352f573c599743a7
13746 * dirmngr/Makefile.am (t_common_ldadd): Add missing libs.
13748 Remove obsolete directories from AM_CPPFLAGS.
13749 + commit 67158ff155ef52fd54a6bbe680551c0e12b31e69
13752 dirmngr,w32: Replace functions not available under Windows.
13753 + commit 0fb224c2c5e0c6770d4a6044d62d84f6bbc1b26b
13754 * dirmngr/ks-engine-ldap.c (extract_attributes): Replace isoptime and
13757 common: Add new function gnupg_gmtime.
13758 + commit 5d60c7f7e05a06e46e23bafe61cef09ad32aa998
13759 * common/gettime.c (gnupg_gmtime): New.
13760 (gnupg_get_isotime): Use it. Also take care of an gmtime_t returning
13763 common: Add new function isodate_human_to_tm.
13764 + commit f6670100b7a15b2071c2e4062f5c5a678f2a30f6
13765 * common/gettime.c (isotime_human_p): Add arg date_only.
13766 (isodate_human_to_tm): New.
13767 * common/t-gettime.c (test_isodate_human_to_tm): New.
13768 (main): Call new test.
13770 dirmngr,w32: Avoid name clash with existing function.
13771 + commit 6ad95fe6f1f130c8f6d139a9bd57fc4a0d38292b
13772 * dirmngr/ks-engine-ldap.c (ldap_connect): Rename to my_ldap_connect.
13774 gpgparsemail: Fix last commit (3f2bdac)
13775 + commit 9433661419043431a6cfc7d84c8450e0b2f6c353
13776 * tools/rfc822parse.c (parse_field): Replace break by goto.
13778 2015-04-09 Werner Koch <wk@gnupg.org>
13780 gpgparsemail: Fix case of zero length continuation lines.
13781 + commit 3fbeba64a8bfb2b673230c124a3d616b6568fd2f
13782 * tools/rfc822parse.c (parse_field): Loop after continuation line.
13784 2015-04-08 Werner Koch <wk@gnupg.org>
13786 sm: Fix certificate lookup in dirmngr cache.
13787 + commit 6619ead2cfd2abcb95b66dc70622fdeef624fb8a
13788 * sm/call-dirmngr.c (get_cached_cert): Fix typo in LOOKUP command.
13790 2015-04-06 Werner Koch <wk@gnupg.org>
13792 gpg: Print the user id in --fast-list-mode.
13793 + commit c2383407bba5eefea486464a31e02846124c9da5
13794 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Change.
13796 gpg: Prepare to pass additional context to the list functions.
13797 + commit 67a58118ab6171c0cf28b65a39973062690d1313
13798 * g10/keylist.c (struct sig_stats): Rename to keylist_context and add
13800 (keylist_context_release): New.
13801 (list_all): Set listctx.check_sigs and call release func.
13803 (locate_one): Ditto.
13804 (list_keyblock_print): Use .check_sigs field. Repalce arg opaque by
13806 (list_keyblock): Ditto. Make static.
13807 (list_keyblock_direct): New.
13808 * g10/keygen.c (do_generate_keypair): Replace list_keyblock by
13809 list_keyblock_direct.
13811 gpg: Merge duplicated code for get_user_id et al.
13812 + commit f577d5c1a747d673fa1d5c012ce3e3b78b699c6a
13813 * g10/getkey.c (get_user_id_string): Add args mode and r_LEN.
13814 (get_user_id_string_native): Add new args.
13815 (get_long_user_id_string, get_user_id): Rewrite using
13816 get_user_id_string.
13818 gpg: Add new option --debug-iolbf.
13819 + commit c581ed717ad2cc4be90c46253baa44a0d3ba5b80
13820 * g10/gpg.c (oDebugIOLBF): new.
13821 (opts): Add --debug-iolbf.
13822 (main): Set option.
13824 Rename DBG_ASSUAN to DBG_IPC and add separate DBG_EXTPROG.
13825 + commit 24a75201da6be72edf85b96dbc0c01c747d02c6a
13826 * g10/options.h (DBG_EXTPROG_VALUE): Separate from DBG_IPC_VALUE.
13828 Fix use of DBG_CACHE and DBG_LOOKUP.
13829 + commit 2f099eb62ac6491675bbcccaca4e076b2d8e7ea0
13830 * dirmngr/dirmngr.h (DBG_LOOKUP_VALUE): Change to 8192.
13831 * g10/options.h (DBG_LOOKUP_VALUE, DBG_LOOKUP): New.
13832 * g10/getkey.c: Use DBG_LOOKUP instead of DBG_CACHE at most places.
13834 gpg: Rename a debug macro.
13835 + commit 4de8a58e44262a25564e2acef8c8865d1755982e
13836 * g10/options.h (DBG_CIPHER_VALUE): Rename to DBG_CRYPTO_VALUE.
13837 (DBG_CIPHER): Rename to DBG_CRYPTO.
13839 2015-04-05 Werner Koch <wk@gnupg.org>
13841 gpg: Fix DoS while parsing mangled secret key packets.
13842 + commit d901efcebaefaf6eae4a9b9aa8f0c2c055d3518a
13843 * g10/parse-packet.c (parse_key): Check PKTLEN before calling mpi_read
13846 2015-04-03 NIIBE Yutaka <gniibe@fsij.org>
13848 g10: Fix keytocard.
13849 + commit f82c4a6d0d76e716b6a7b22ca964fa2da1f962a0
13850 g10/call-agent.h (agent_scd_learn): Add FORCE option.
13851 g10/call-agent.c (agent_scd_learn): Implement FORCE option.
13852 g10/keygen.c (gen_card_key): Follow the change of option.
13853 g10/card-util.c (change_pin, card_status, factory_reset): Likewise.
13854 g10/keyedit.c (keyedit_menu): Update private key storage by
13857 agent: Add --force option for LEARN.
13858 + commit 4ffadb74b3ada8a5d69ef8d87f4326df9bd97e97
13859 * agent/command.c (cmd_learn): Handle --force option.
13860 (cmd_keytocard): Don't update key storage file.
13861 * agent/agent.h (agent_handle_learn): Add FORCE.
13862 * agent/learncard.c (agent_handle_learn): Implement FORCE to update
13865 2015-03-31 Neal H. Walfield <neal@g10code.com>
13867 dirmngr: Don't use alloca.
13868 + commit d0ff2ee04187fbedacbe4d3884ee75d957a0b8c6
13869 * dirmngr/ks-engine-ldap.c (ks_ldap_put): Replace use of alloca with
13872 dirmngr: Simplify truncation of long strings in debug code.
13873 + commit 802eec0ca49b92104c92f18c9a6a04c34de74168
13874 * dirmngr/ks-engine-ldap.c (modlist_dump): Simplify truncation of long
13877 dirmngr: Use a better error code.
13878 + commit 7f6d7948c1e56e09c1bdaa5143e1b5558c4376dd
13879 * dirmngr/ldap-parse-uri.c (ldap_parse_uri): On error, return
13880 GPG_ERR_GENERAL, not GPG_ERR_ASS_GENERAL.
13882 dirmngr: Better encapsulate the keyservers variable.
13883 + commit 348c520040a31f5c322183c0654a34978e2baf6f
13884 * dirmngr/dirmngr.h (struct server_control_s): Move field keyservers
13886 * dirmngr/server.c (struct server_local_s): ... to here. Update
13888 * dirmngr/ks-action.h (ks_action_resolve): Add argument keyservers.
13889 (ks_action_search): Likewise.
13890 (ks_action_get): Likewise.
13891 (ks_action_put): Likewise.
13892 * dirmngr/ks-action.c (ks_action_resolve): Add argument keyservers.
13893 Use it instead of ctrl->keyservers.
13894 (ks_action_search): Likewise.
13895 (ks_action_get): Likewise.
13896 (ks_action_put): Likewise.
13898 2015-03-28 Neal H. Walfield <neal@g10code.de>
13900 gpg: Only use the last specified keyserver.
13901 + commit f26ba14028d34845ae10aae552b90681907e377d
13902 * g10/gpg.c (main): Only use the last specified keyserver.
13904 2015-03-25 Werner Koch <wk@gnupg.org>
13906 dirmngr: Fix resource leaks and check rare errors.
13907 + commit bec10ae4b5a870303c800cdf3cd906044613fc2d
13908 * dirmngr/ks-engine-ldap.c (keyspec_to_ldap_filter): Fix resource
13910 (ks_ldap_search): Check error from es_fopenmem. Use LDAP_ERR where
13912 (modlist_dump): Check error from es_fopenmem.
13913 (uncescape): s/int/size_t/. Use existing macros.
13914 (extract_attributes): Use existing trim function.
13915 (ks_ldap_put): Do not segv on error from modlist_dump.
13917 dirmngr: Minor cleanups.
13918 + commit 6c701af121782c2feb4ee51e559a7420df00471f
13919 * dirmngr/ks-engine-ldap.c [__riscos__]: Remove doubled util.h.
13920 (ldap_to_gpg_err): s/GPG_ERR_GENERAL/GPG_ERR_INTERNAL/.
13921 (tm2ldaptime): Use snprintf.
13922 (ldap_connect): Get error code prior to log_error and and use modern
13923 function. Use xfree, xtrustrdup etc.
13924 (modlist_lookup): Use GNUPG_GCC_A_USED.
13925 (modlist_free): Use xfree.
13927 common: Add macro GNUPG_GCC_A_USED.
13928 + commit 99ef9cd7f589b51921bfbe8d52735c104ef260e3
13929 * common/util.h (GNUPG_GCC_A_USED): New.
13931 sm: Change default algos to SHA256 (CSR) and AES128 (bulk encryption).
13932 + commit 1e4d8ddbe3ad7ee8f1c1d1798694d91f792776c0
13933 * sm/certreqgen.c (create_request): Change default hash algo.
13934 * sm/gpgsm.c (DEFAULT_CIPHER_ALGO): Change default bulk cipher algo.
13936 2015-03-24 Werner Koch <wk@gnupg.org>
13938 gpg,w32: Handle forward slash in --keyring option.
13939 + commit bdd22e3a0846d38a0b6cdb822476ad2f15d03455
13940 * g10/keydb.c (keydb_add_resource): Allow forward slash under Windows.
13942 2015-03-23 Neal H. Walfield <neal@g10code.de>
13944 Improve documentation for ks_hkp_get.
13945 + commit 7a56b6b3aa8b7a07bd80a3fcd5114bd1af359fa3
13946 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Improvement documentation.
13948 Improve documenation of http_parse_uri.
13949 + commit 00a16cf49336ee0b4ce21eb05a79db955af053e0
13950 * common/http.c (http_parse_uri): Improve documentation.
13952 Add support to talking to LDAP key servers.
13953 + commit 51341badb623927f2a358588c725a356fc77dbe7
13954 * g10/call-dirmngr.c (record_output): New function.
13955 (ks_put_inq_cb): Use it here to generate a --with-colons like output
13956 instead of a custom format.
13957 * dirmngr/ks-action.c: Include "ldap-parse-uri.h".
13958 (ks_action_help): If the provided URI is an LDAP URI, then use
13959 ldap_parse_uri to parse. Call ks_ldap_help.
13960 (ks_action_search): If passed an LDAP URI, then call ks_ldap_search.
13961 (ks_action_get): Likewise.
13962 (ks_action_put): Likewise. Also, change data from a 'const void *' to
13963 a 'void *' and add info and infolen parameters. Add note that
13964 function may modify DATA.
13965 * dirmngr/ks-action.h (ks_action_put): Update declaration accordingly.
13966 * dirmngr/server.c: Include "ldap-parse-uri.h".
13967 (cmd_keyserver): If ITEM->URI is an LDAP URI, parse it using
13969 (hlp_ks_put): Improve documentation.
13970 (cmd_ks_put): Also pass info and infolen to ks_action_put. Improve
13972 * dirmngr/ks-engine.h (ks_ldap_help): New declaration.
13973 (ks_ldap_search): Likewise.
13974 (ks_ldap_get): Likewise.
13975 (ks_ldap_put): Likewise.
13976 * dirmngr/ks-engine-ldap.c: New file.
13977 * dirmngr/Makefile.am (dirmngr_SOURCES): Add ks-engine-ldap.c,
13978 ldap-parse-uri.c and ldap-parse-uri.h.
13979 (dirmngr_LDADD) [USE_LDAP]: Add $(ldaplibs).
13981 Import _gpgme_parse_timestamp from gpgme as parse_timestamp.
13982 + commit 81e83060856f02f6cfc7b48f8032e0cf14fc6c68
13983 * common/gettime.h (parse_timestamp): New declaration.
13984 * common/gettime.c (_win32_timegm): New function imported from
13985 gpgme/src/conversion.c:_gpgme_timegm.
13986 (parse_timestamp): New function imported from
13987 gpgme/src/conversion.c:_gpgme_parse_timestamp.
13989 Move copy_stream function to misc.c.
13990 + commit 9e79a15f74c428624b0049a3f6a077c1bc7c731d
13991 * dirmngr/ks-action.c (copy_stream): Move function from here...
13992 * dirmngr/misc.c (copy_stream): ... to here and drop the static
13994 * dirmngr/misc.h (copy_stream): Add declaration.
13996 Move armor_data to misc.c.
13997 + commit 63552852bf191985b4b55aa524bc397c5b1d1515
13998 * dirmngr/ks-engine-hkp.c (armor_data): Move function from here...
13999 * dirmngr/misc.c (armor_data): ... to here and drop static qualifier.
14000 * dirmngr/misc.h: New declaration.
14002 Add new LDAP utility functions.
14003 + commit 1a75b7c39f0a84f518711438565645a34fb2673f
14004 * dirmngr/Makefile.am (module_tests): New variable.
14005 (noinst_PROGRAMS): New primary. Set it to $(module_tests).
14006 (TESTS): New variable. Set it to $(module_tests).
14007 (t_common_src): New variable.
14008 (t_common_ldadd): Likewise.
14009 (t_ldap_parse_uri_SOURCES): New primary.
14010 (t_ldap_parse_uri_LDADD): Likewise.
14011 * dirmngr/ldap-parse-uri.c: New file.
14012 * dirmngr/ldap-parse-uri.h: Likewise.
14013 * dirmngr/t-ldap-parse-uri.c: Likewise.
14014 * dirmngr/t-support.h: Likewise.
14016 Add new function uri_query_lookup.
14017 + commit e23b3ba5ffd3134a72da176a039e4d6c4f3ff595
14018 * common/http.h (uri_query_lookup): New declaration.
14019 * common/http.c (uri_query_lookup): The corresponding implementation.
14021 Add new function strlist_find.
14022 + commit 79907ad256f5b84f36cbebdc92e5a05d9e266557
14023 * common/strlist.h (strlist_find): New declaration.
14024 * common/strlist.c (strlist_find): New function.
14026 common: Add new helper function, strsplit.
14027 + commit b18ffcb81a3839dbf09603d70ebb8b80f65892d3
14028 * common/stringhelp.h (strsplit): New declaration.
14029 * common/stringhelp.c (strsplit): New function.
14030 * common/t-stringhelp.c (test_strsplit): New function.
14031 (main): Call it here.
14033 2015-03-20 Werner Koch <wk@gnupg.org>
14035 gpg: Consider a mailbox only userid in mail search mode.
14036 + commit bebab54027d8c63574a2680c60481cfe9b88c240
14037 * kbx/keybox-search.c: Include mbox-util.h.
14038 (blob_cmp_mail): Improve OpenPGP uid parsing.
14040 common: Add function is_valid_mailbox_mem.
14041 + commit a0eb2e4e8cef9ca6a5dfbae6440fa6cd583d0805
14042 * common/mbox-util.c (mem_count_chr): New.
14044 (has_invalid_email_chars): Change args to work on a buffer.
14045 (is_valid_mailbox_mem): New.
14046 (is_valid_mailbox): Rewrite to use is_valid_mailbox_mem.
14048 gpg: Find keys using mail addresses with garbage after the '>'
14049 + commit 783a4a98378fa1aa222d5cb7427dd37151feb08b
14050 * kbx/keybox-search.c (blob_cmp_mail): Stop comparing at the '>'.
14052 common: Fix syntax error when building with gnutls.
14053 + commit 5136e39c6466de90697153ea253c4b540c1f7d1a
14054 * common/http.c (send_request): Add missing comma.
14056 2015-03-19 Werner Koch <wk@gnupg.org>
14058 gpg: Emit status line NEWSIG before signature verification starts.
14059 + commit e7ddaad0fd2c8774a1d3367adfaa68014eaf65de
14060 * g10/mainproc.c (check_sig_and_print): Emit STATUS_NEWSIG.
14062 agent: Compute correct MPI length header for protected ECC keys.
14063 + commit cf83ff01fce3ddcbde6d97dffa0db6f277588e25
14064 * agent/cvt-openpgp.c (apply_protection): Strip leading zeroes from
14065 opaque MPIs to comply with the OpenPGP spec.
14067 hkps: Fix host name verification when using pools.
14068 + commit dc10d466bff53821f23d2cb4814c259d40c5d9c5
14069 * common/http.c (send_request): Set the requested for SNI.
14070 * dirmngr/ks-engine-hkp.c (map_host): Return the poolname and not
14071 the selecting a host.
14073 Define replacement error codes from libgpg-error 1.19.
14074 + commit 28bb3ab686c1c994f67a92b6846b3726c58a0bc3
14075 * common/util.h: Add GPG_ERR_LDAP codes for libgpg-error < 1.19.
14077 2015-03-17 Andre Heinecke <aheinecke@intevation.de>
14079 gpgtar: Fix extracting files with !(size % 512)
14080 + commit 6cbbb0bec98e1acefc4c7163cc41a507469db920
14081 * tools/gpgtar-extract.c (extract_regular): Handle size multiples
14084 2015-03-17 Werner Koch <wk@gnupg.org>
14086 common: Add feature to ease using argparse's usage().
14087 + commit 9078b75a73600fc6b7b5502ceee8de032bb9c446
14088 * common/argparse.c (show_help): Take care of flag value
14091 common: Allow standalone build of argparse.c.
14092 + commit eb5f2c0af6691229300ac120ee44815cb27ed38e
14093 * common/argparse.h: Remove types.h - not required.
14094 * common/argparse.c: Change to allow standalone use.
14096 2015-03-16 Werner Koch <wk@gnupg.org>
14098 gpg: Create all MPIs with RFC-4880 correct length headers.
14099 + commit ab17f7b6c392782718f57eaea94fc18a0ff49389
14100 * g10/build-packet.c (gpg_mpi_write): Strip leading zeroes.
14102 gpg: Allow printing of MPI values in --list-mode.
14103 + commit bcc8250bc5b9a357c6d1444f03e334edec573ede
14104 * g10/parse-packet.c (set_packet_list_mode): Set mpi_print_mode.
14105 * g10/misc.c (mpi_print): Do not print an extra leading zero.
14107 gpg: Fix broken write of opaque MPI length header.
14108 + commit 8bc1debfefb7cd4b0be724317793d59dea37d677
14109 * g10/build-packet.c (gpg_mpi_write): Use a char array for the length.
14111 2015-03-15 Werner Koch <wk@gnupg.org>
14113 gpg: Fix possible dead code elimination.
14114 + commit 1a9f13bc663daa75c5009f6a0bf7d7483f12cce0
14115 * g10/encrypt.c: Change condition for detecting a real file.
14117 g13: Fix pointer wrap check.
14118 + commit 4bc3a2e954afc2ba7dbe79ba5f740184b7d4cd73
14119 * g13/utils.c (find_tuple, next_tuple): Cast pointer to size_t before
14120 doing an overflow check.
14122 agent: Remove useless conditions in command.c.
14123 + commit 3a35c9740ab792068ec4b3732ecfaa17bf4fc7f0
14124 * agent/command.c (cmd_setkeydesc): Remove NULL check.
14125 (cmd_get_passphrase): Ditto.
14126 (cmd_clear_passphrase): Ditto.
14127 (cmd_get_confirmation): Ditto.
14128 (cmd_getval): Ditto.
14129 (cmd_putval): Ditto.
14131 agent: Fix length test in sshcontrol parser.
14132 + commit 3529dd8bb5bafc4e02915648d5f409bd27a9cc37
14133 * agent/command-ssh.c (ssh_search_control_file): Check S before
14136 agent: Remove useless conditions.
14137 + commit 95415bdec77a608e6052ba3e2a5d857a8e8f7689
14138 * agent/genkey.c (agent_ask_new_passphrase): Remove useless condition.
14139 * agent/command-ssh.c (ssh_identity_register): Ditto.
14141 gpg: Remove useless condition.
14142 + commit c59b410cf1d5676de7061e5a183c01227aa8e760
14143 * g10/keylist.c (list_keyblock_colon): Remove useless condition (PK).
14144 (list_keyblock_print): Likewise.
14146 scd: Fix possible NULL deref in apdu.c.
14147 + commit ef0a3abf7305133d071bf1a94a7f461082f9a9aa
14148 * scd/apdu.c (control_pcsc_direct): Take care of BUFLEN being NULL.
14149 (control_pcsc_wrapped): Ditto.
14151 common: Make openpgp_oid_to_str more robust.
14152 + commit 35db798c2df7f31b52a9dd9d55ea60ae1f325be9
14153 * common/openpgp-oid.c (openpgp_oid_to_str): Take care of
14154 gcry_mpi_get_opaque returning NULL. Remove useless condition !BUF.
14156 2015-03-11 Werner Koch <wk@gnupg.org>
14158 agent: Improve error reporting from Pinentry.
14159 + commit efde50f92af241d8357db83e280a6ece62f6397f
14160 * agent/call-pinentry.c (unlock_pinentry): Add error logging. Map
14161 error source of uncommon errors to Pinentry.
14163 2015-03-10 Werner Koch <wk@gnupg.org>
14165 gpg: Change --print-pka-records into an option.
14166 + commit 7b5b52f3268b093eebbac3f199fb69bf246d9cd1
14167 * g10/gpg.c (aPrintPKARecords): Rename to oPrintPKARecords and do not
14168 use it as a command.
14169 * g10/keylist.c (list_keyblock): List PKA rceords also for secret
14172 gpg: Add --list-gcrypt-config and "curve" item for --list-config.
14173 + commit 14af2be022ccaf826db048fc16959d0222ff1134
14174 * common/openpgp-oid.c (curve_supported_p): New.
14175 (openpgp_enum_curves): New.
14176 * common/t-openpgp-oid.c (test_openpgp_enum_curves): New.
14177 (main): Add option --verbose.
14178 * g10/gpg.c (opts): Add --list-gcrypt-config.
14179 (list_config): Add items "curve" and "curveoid". Remove unused code.
14181 2015-03-09 NIIBE Yutaka <gniibe@fsij.org>
14183 scd: fix for 64-bit arch.
14184 + commit bb5a1b7c738d74d5b46340ec7b50000a2d343ca9
14185 * agent/pksign.c (agent_pksign_do): Use int.
14186 * scd/app-openpgp.c (get_public_key): Likewise.
14188 2015-03-04 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14190 gpg: avoid chatter about trustdb when --quiet.
14191 + commit 82146af85b65498a69b28913593dc1ffeb6b6fed
14192 * g10/trustdb.c (tdb_check_trustdb_stale): avoid log_info() when
14195 2015-02-26 Werner Koch <wk@gnupg.org>
14197 gpg: Lowercase mailbox for PKA lookups.
14198 + commit c071be698efadef1ad01fd3d329d1b486a372927
14199 * common/stringhelp.c (ascii_strlwr): New.
14200 * common/mbox-util.c (mailbox_from_userid): Downcase result.
14202 gpg: Fix memory leak due to PKA lookup.
14203 + commit 91baea2dcde6c1e5ca9e8fa7020d9ab4551d1bca
14204 * g10/keyserver.c (keyserver_import_pka): Move the xfree.
14206 2015-02-25 Werner Koch <wk@gnupg.org>
14208 gpg: Switch to a hash and CERT record based PKA system.
14209 + commit 2fc27c8696f5cf2ddf3212397ea49bff115d617b
14210 * common/dns-cert.c (get_dns_cert): Make r_key optional.
14211 * common/pka.c: Rewrite for the new hash based lookup.
14212 * common/t-pka.c: New.
14213 * configure.ac: Remove option --disable-dns-pka.
14214 (USE_DNS_PKA): Remove ac_define.
14215 * g10/getkey.c (parse_auto_key_locate): Always include PKA.
14217 common: Allow requesting a specific certtype with get_dns_cert()
14218 + commit af60152a4632ef26ca950a424429b15b6c69038d
14219 * common/dns-cert.c (get_dns_cert): Add arg want_certtype. Change all
14221 (CERTTYPE_): Move constants to ...
14222 * common/dns-cert.h: here as DNS_CERTTYPE_.
14224 Move new mailbox.c source file to common/.
14225 + commit 9913253610bac69e9503800e85696491e018e327
14226 * g10/mailbox.c: Move to ...
14227 * common/mbox-util.c: new file.
14228 * common/mbox-util.h: New. Include where needed.
14229 * g10/t-mailbox.c: Move to ...
14230 * common/t-mbox-util.c: new file.
14232 2015-02-24 Werner Koch <wk@gnupg.org>
14234 gpg: Add command --print-pka-records.
14235 + commit e2d93402801a2cb822c723e891fd98233fdb3fd5
14236 * g10/gpg.c (main): Add command --print-pka-records.
14237 * g10/options.h (struct opt): Add field "print_pka_records".
14238 * g10/keylist.c (list_keyblock_pka): New.
14239 (list_keyblock): Call it if new option is set.
14240 (print_fingerprint): Add mode 10.
14242 gpg: Add function to extract the mailbox.
14243 + commit 93fa3d5c1760f3fee5412fb29d58fbd60db16ea9
14244 * g10/misc.c (has_invalid_email_chars, is_valid_mailbox)
14245 (is_valid_user_id): Move to ...
14246 * g10/mailbox.c: new file.
14247 (string_has_ctrl_or_space, has_dotdot_after_at): New.
14248 (has_invalid_email_chars): New.
14250 * g10/t-mailbox.c: New.
14251 * g10/Makefile.am (module_tests): Add t-mailbox.
14252 (t_mailbox_SOURCES, t_mailbox_LDADD): New.
14254 2015-02-23 Werner Koch <wk@gnupg.org>
14256 gpg: Add option to print fingerprints in ICAO spelling.
14257 + commit ae09515b9d3aae653b62a32ea5b4a9b9e557fc52
14258 * g10/gpg.c: Add option --with-icao-spelling.
14259 * g10/options.h (struct opt): Add with_icao_spelling.
14260 * g10/keylist.c (print_icao_hexdigit): New.
14261 (print_fingerprint): Print ICAO spelling.
14263 gpg: Skip legacy keys while searching keyrings.
14264 + commit a8116aacd91b7e775762a62c268fab6cc3c77438
14265 * g10/getkey.c (search_modes_are_fingerprint): New.
14266 (lookup): Skip over legacy keys.
14268 common: Fix regression due to commit 2183683b.
14269 + commit d9f6eea6115df7959564123eb99d633ce5bba42e
14270 * common/dns-cert.c (get_dns_cert): Remove cruft.
14272 2015-02-19 Werner Koch <wk@gnupg.org>
14274 gpg: Replace remaining uses of stdio by estream.
14275 + commit d2a70fd8348d6c11d1960caf2afe0701833dad6a
14276 * g10/sign.c (sign_file): Use log_printf instead of stderr.
14277 * g10/tdbdump.c (export_ownertrust): Use estream fucntions.
14278 (import_ownertrust): Ditto.
14279 * g10/tdbio.c (tdbio_dump_record): Ditto. Change arg to estream_t.
14281 gpg: Fix segv due to NULL value stored as opaque MPI.
14282 + commit 76c8122adfed0f0f443cce7bda702ba2b39661b3
14283 * g10/build-packet.c (gpg_mpi_write): Check for NULL return from
14284 gcry_mpi_get_opaque.
14285 (gpg_mpi_write_nohdr, do_key): Ditto.
14286 * g10/keyid.c (hash_public_key): Ditto.
14288 2015-02-12 Werner Koch <wk@gnupg.org>
14290 scd: Fix regression in 2.1.2 (due to commit 2183683)
14291 + commit 07a71da479daaac43b8c5b1034a1e66f96bdbc48
14292 * scd/apdu.c (pcsc_vendor_specific_init): Replace use of
14293 bufNN_to_uint by direct code.
14295 2015-02-12 Andre Heinecke <aheinecke@intevation.de>
14297 dirmngr: Initialize cache from sysconfig dir.
14298 + commit 070d7bf940efa60db2b0734273b9b3736d18338a
14299 * dirmngr/certcache.c (cert_cache_init): Load certificates
14300 from sysconfig dir instead of the homeidr.
14301 * dirmngr/dirmngr.c (main): Removed parsing of obsolete
14302 homedir_data option.
14303 * dirmngr/dirmngr.h (opt): Removed homedir_data.
14304 * doc/dirmngr.texi: Update and clarify certs directory doc.
14306 2015-02-11 Werner Koch <wk@gnupg.org>
14309 + commit fc17562cc4f8d531ae7f0887cf2a96dcc224b021
14312 dirmngr: Avoid warning about unused function.
14313 + commit 8219c87c301ec669f07528e8d8108655f7b705be
14314 * dirmngr/dirmngr.c (my_gnutls_log): Build only if gnutls is used.
14316 build: Update standard build-aux files.
14317 + commit 81e93e251e52e427a29556de75640c7933bb5aad
14320 Use inline functions to convert buffer data to scalars.
14321 + commit 2183683bd633818dd031b090b5530951de76f392
14322 * common/host2net.h (buf16_to_ulong, buf16_to_uint): New.
14323 (buf16_to_ushort, buf16_to_u16): New.
14324 (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New.
14326 2015-02-09 Werner Koch <wk@gnupg.org>
14328 gpg: Prevent an invalid memory read using a garbled keyring.
14329 + commit f0f71a721ccd7ab9e40b8b6b028b59632c0cc648
14330 * g10/keyring.c (keyring_get_keyblock): Whitelist allowed packet
14332 * g10/keydb.c (parse_keyblock_image): Ditto.
14334 gpg: Fix a NULL-deref in export due to invalid packet lengths.
14335 + commit 0835d2f44ef62eab51fce6a927908f544e01cf8f
14336 * g10/build-packet.c (write_fake_data): Take care of a NULL stored as
14339 gpg: Fix a NULL-deref due to empty ring trust packets.
14340 + commit 39978487863066e59bb657f5fe4e8baab510da7e
14341 * g10/parse-packet.c (parse_trust): Always allocate a packet.
14343 2015-02-04 Werner Koch <wk@gnupg.org>
14345 gpg-agent: Use "pinentry-basic" as fallback.
14346 + commit 0de5c6a9a783ed9dc69cecbf34eadcaace4be243
14347 * common/homedir.c (get_default_pinentry_name): New.
14348 (gnupg_module_name): Use that for the default pinentry.
14349 (gnupg_module_name_flush_some): New.
14350 * agent/gpg-agent.c (agent_sighup_action): Flush some module names.
14351 * agent/call-pinentry.c (start_pinentry): Do not modify
14352 opt.pinentry_program.
14354 w32: Add manifest to gpg.
14355 + commit 05428d12561bc7eb872a81444918dfe706477a41
14356 * g10/gpg.w32-manifest.in: New.
14357 * g10/gpg-w32info.rc: Add manifest.
14358 * g10/Makefile.am (EXTRA_DIST): Add manifest.
14359 (gpg-w32info.o): Depend on manifest.
14360 * configure.ac (BUILD_VERSION): New.
14361 (AC_CONFIG_FILES): Add manifest.
14363 2015-02-03 Werner Koch <wk@gnupg.org>
14365 Update copyright years.
14366 + commit 3f67426a89bf4b37e1d2662fddc3eb4fa474c4ad
14367 * common/w32info-rc.h.in (W32INFO_COMPANYNAME): Change to "The GnuPG
14370 2015-02-02 Werner Koch <wk@gnupg.org>
14372 w32: Change default Windows install dir and add bin to PATH.
14373 + commit 8872657b2a52dd9698224b80e5672e23c5405eda
14374 * build-aux/speedo.mk (WITH_GUI): New macro. The Windows installer is
14375 now build by default without any GUI stuff.
14376 * build-aux/speedo/w32/inst.nsi: Change standard installation
14378 (AddToPath, un.RemoveFromPath): New.
14379 (gnupginst): Add bin directory to the PATH.
14381 2015-02-01 Werner Koch <wk@gnupg.org>
14383 w32: Allow for Unicocde installation directory.
14384 + commit 616633b7713081ecc39419494879947cc7f163d0
14385 * common/homedir.c (w32_rootdir): Use Unicode fucntion not only for
14388 2015-01-30 Joshua Rogers <git@internot.info>
14390 kbx: Fix resource leak.
14391 + commit 7db6c82cec49b7c56c403a8ea98364086baf75f3
14392 * kbx/keybox-update.c (blob_filecopy): Fix resource leak. On error
14393 return, 'fp' and 'newfp' was never closed.
14395 2015-01-29 Werner Koch <wk@gnupg.org>
14397 agent: Fix use of imported but unprotected openpgp keys.
14398 + commit 6ab0fac575a8b04152a199cb300a08436b096753
14399 * agent/agent.h (PRIVATE_KEY_OPENPGP_NONE): New.
14400 * agent/command.c (do_one_keyinfo): Implement it.
14401 * agent/findkey.c (agent_key_from_file): Ditto.
14402 (agent_key_info_from_file): Ditto.
14403 (agent_delete_key): Ditto.
14404 * agent/protect.c (agent_private_key_type): Add detection for openpgp
14407 2015-01-29 NIIBE Yutaka <gniibe@fsij.org>
14409 po: Update Japanese Translation.
14410 + commit 6c368533f5211bed62e8638f522cef65c7ba4b87
14413 2015-01-28 Werner Koch <wk@gnupg.org>
14415 gpg: Limit the size of key packets to a sensible value.
14416 + commit 382ba4b137b42d5f25a7e256bb7c053ee5ac7b64
14417 * g10/parse-packet.c (MAX_KEY_PACKET_LENGTH): New.
14418 (MAX_UID_PACKET_LENGTH): New.
14419 (MAX_COMMENT_PACKET_LENGTH): New.
14420 (MAX_ATTR_PACKET_LENGTH): New.
14421 (parse_key): Limit the size of a key packet to 256k.
14422 (parse_user_id): Use macro for the packet size limit.
14423 (parse_attribute): Ditto.
14424 (parse_comment): Ditto.
14426 gpg: Fix buffering problem in --list-config.
14427 + commit d8eea25b8b7becbfa3f059be6f5966a2f1aa7112
14428 * g10/gpg.c (list_config): Replace print_sanitized_string2 by
14429 es_write_sanitized.
14431 * common/stringhelp.c (print_sanitized_buffer2): Remove.
14432 (print_sanitized_buffer, print_sanitized_utf8_buffer): Remove.
14433 (print_sanitized_utf8_buffer, print_sanitized_utf8_string): Remove.
14434 (print_sanitized_string): Remove.
14436 * sm/certdump.c (print_dn_part, print_dn_parts): Remove arg FP.
14437 (pretty_print_sexp, gpgsm_print_name2, gpgsm_print_name): Remove.
14439 Add a hook to be called right after main.
14440 + commit 0c2bfd9d5a49a6134188f8f7820f6ccdebd9f181
14441 * common/init.c (early_system_init): New stub function.
14443 gpg: Allow predefined names as answer to the keygen.algo prompt.
14444 + commit b1d5ed6ac842469afcb84868d0f6641dc286a6c7
14445 * g10/keygen.c (ask_algo): Add list of strings.
14447 agent: Add some extra robustness to extract_private_key.
14448 + commit 795965437732e50f6216d7f5db0e6174e90548a9
14449 * agent/cvt-openpgp.c (extract_private_key): Add arg "arraysize".
14450 Make sure that R_FLAGS and R_CURVE are set to NULL.
14452 2015-01-28 NIIBE Yutaka <gniibe@fsij.org>
14454 scd: Fix varargs call for 64-bit arch on ECC keys.
14455 + commit f6d3c6e5263d84b94ebe13df9ff39b02109a2acb
14456 * scd/app-openpgp.c (store_fpr): Remove CARD_VERSION from the
14458 (rsa_writekey): Follow the change.
14459 (do_genkey): Likewise.
14460 (ecc_writekey): Likewise. Cast to size_t.
14462 2015-01-27 Werner Koch <wk@gnupg.org>
14464 gpg: Fix segv introduced to commit 4d7c9b0.
14465 + commit 6eebc56687935f3e993eac374b9f4cc5ad3bcf2b
14466 * g10/keygen.c (get_parameter_passphrase): Take care of R == NULL.
14468 2015-01-27 NIIBE Yutaka <gniibe@fsij.org>
14470 agent: Fix agent_public_key_from_file for ECC.
14471 + commit 9453d645d4a489f038829c80343c124fff62d635
14472 * agent/cvt-openpgp.c (extract_private_key): New.
14473 (convert_to_openpgp): Use extract_private_key.
14474 * agent/findkey.c (agent_public_key_from_file): Use
14475 extract_private_key.
14477 2015-01-26 Werner Koch <wk@gnupg.org>
14479 sm: Simplify fix ed8383c6.
14480 + commit 6c87d1ce66d8e93e6c0f16c06116e9179f6158ba
14481 * sm/minip12.c (p12_build): Release PWBUF only at the end.
14483 2015-01-25 Joshua Rogers <git@internot.info>
14485 ccid: Remove incorrect expression leading to errors.
14486 + commit 274d7b17a90908a90ba6ad295c08a79b287fc231
14487 * scd/ccid-driver.c (send_escape_cmd): Fix setting of 'rc'.
14489 2015-01-23 Werner Koch <wk@gnupg.org>
14491 gpgconf: Fix validity check for UINT32 values.
14492 + commit 3f6abb57a7b5e54b593c5775c8f7a07d61119705
14493 * tools/gpgconf-comp.c (option_check_validity): Enable check for
14496 2015-01-22 Werner Koch <wk@gnupg.org>
14498 gpg: Improve skipping of PGP-2 keys.
14499 + commit 09e8f35d3808d6e49f891360c341aae3869e8650
14500 * g10/keydb.c (keydb_search_first, keydb_search_next): Skip legacy
14502 * g10/keyring.c (keyring_get_keyblock): Handle GPG_ERR_LEGACY_KEY.
14503 (prepare_search): Ditto.
14504 (keyring_rebuild_cache): Skip legacy keys.
14505 * g10/keyserver.c (keyidlist): Ditto.
14506 * g10/trustdb.c (validate_key_list): Ditto.
14508 gpg: Add dedicated error code for PGP-2 keys.
14509 + commit 6f3d11d8837b00e3a1c4fa881066855c0321d6b2
14510 * g10/parse-packet.c (parse_key): Return GPG_ERR_LEGACY_KEY for PGP2
14512 * g10/import.c (read_block): Simplify by checking GPG_ERR_LEGACY_KEY.
14513 * g10/getkey.c (lookup): Silence error message for PGP-2 keys.
14515 * common/util.h (GPG_ERR_LEGACY_KEY): Add replacement for older
14518 gpg: Replace remaining old error code macros by GPG_ERR_.
14519 + commit 11142e0ad7bc9a9e3c3dccf958d8dbd3312cb993
14520 * g10/gpg.h (g10_errstr): Remove macro and change all occurrences by
14522 (G10ERR_): Remove all macros and change all occurrences by their
14523 GPG_ERR_ counterparts.
14525 gpg: Remove an unused variable.
14526 + commit a23c30fb59c0a216763a7972028995d3be42a844
14527 * g10/getkey.c (getkey_ctx_s): Remove last_rc.
14529 2015-01-21 Werner Koch <wk@gnupg.org>
14531 dirmngr: Fix TLS build problems.
14532 + commit 091c35ec726a4fa4691c2665b13adee6a34b5b66
14533 * dirmngr/Makefile.am (AM_CFLAGS): Add flags for TLS libs.
14535 gpg: Support --passphrase with --quick-gen-key.
14536 + commit 4d7c9b0e9aceedd924d600978bc1b6cae7d5c456
14537 * g10/keygen.c: Include shareddefs.h.
14538 (quick_generate_keypair): Support static passphrase.
14539 (get_parameter_passphrase): New.
14540 (do_generate_keypair): Use it.
14542 gpg: Re-enable the "Passphrase" parameter for batch key generation.
14543 + commit aa99ebde778b7b563f35025f1b48954757f840be
14544 * agent/command.c (cmd_genkey): Add option --inq-passwd.
14545 * agent/genkey.c (agent_genkey): Add new arg override_passphrase.
14546 * g10/call-agent.c (inq_genkey_parms): Handle NEWPASSWD keyword.
14547 (agent_genkey): Add arg optional arg "passphrase".
14548 * g10/keygen.c (common_gen, gen_elg, gen_dsa, gen_ecc)
14549 (gen_rsa, do_create): Add arg "passphrase" and pass it through.
14550 (do_generate_keypair): Make use of pPASSPHRASE.
14551 (release_parameter_list): Wipe out a passphrase parameter.
14553 2015-01-19 Werner Koch <wk@gnupg.org>
14555 kbx: Minor cleanup for the previous fix.
14556 + commit 7be1b7d8017cb7ebf1a3855edec0ef5e342cc9c5
14557 * kbx/keybox-search.c (blob_get_keyid): Rename to
14558 blob_get_first_keyid. Check number of keys and remove blob type check.
14560 2015-01-19 Damien Goutte-Gattat <dgouttegattat@incenp.org>
14562 kbx: Call skipfnc callback to filter out keys.
14563 + commit c5956592c171e6fe988e74161aa99636b7f12e4b
14564 * kbx/keybox-search.c (blob_get_keyid): New.
14565 (keybox-search): Call skipfnc callback function.
14567 2015-01-13 Andreas Schwier <andreas.schwier@cardcontact.de>
14569 scd: Allow for certificates > 1024 with PC/SC.
14570 + commit 16a1330fa16f6b23e2661c0175c431ab40da45ff
14571 * scd/pcsc-wrapper.c (handle_transmit): Enlarge buffer to 4096 too
14572 allow for larger certificates.
14574 2015-01-08 NIIBE Yutaka <gniibe@fsij.org>
14576 dirmngr: Fix error code path of map_host.
14577 + commit 657a26f3af1b3f817d6cde2d091273d332571247
14578 * dirmngr/ks-engine-hkp.c (map_host): Fix error return.
14580 2015-01-08 Joshua Rogers <git@internot.info>
14582 scd: fix get_public_key for OpenPGPcard v1.0.
14583 + commit 100b322f5da3066bab5a2b0eb234c631c581c0e4
14584 * scd/app-openpgp.c (get_public_key): correctly close 'fp' upon use.
14586 2015-01-07 NIIBE Yutaka <gniibe@fsij.org>
14588 dirmngr: fix LDAP query PATTERNS limit check.
14589 + commit 22b15fccffe613f455f9748c048c8e451724a842
14590 * dirmngr/ldap.c (start_cert_fetch_ldap): fix ARGC limitation.
14592 scd: fix merge failure.
14593 + commit 602f17b5a775f02e0e33a54d3155929dc00e4f53
14594 * scd/apdu.c (pcsc_pinpad_verify): Remove wrong lines inserted by
14597 2015-01-05 Werner Koch <wk@gnupg.org>
14599 sm,g13: Init local vars to avoid compiler warnings.
14600 + commit 9bf40849a9f86204e113712c4cc285f1ac16127a
14601 * sm/misc.c (transform_sigval): Init RSA_S_LEN.
14602 * g13/mount.c (read_keyblob): Init HEADERLEN.
14604 gpg: Remove unused args from a function.
14605 + commit 616e511f278bf9af04dc66bbb8b05b37bf541f37
14606 * g10/keyserver.c (parse_keyserver_uri): Remove args configname and
14607 configlineno. Change all callers.
14609 gpg: Clear a possible rest of the KDF secret buffer.
14610 + commit 56e688823345bbcfef220b13eb418854f8798b16
14611 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Fix order of args.
14613 build: Require automake 1.14.
14614 + commit 445bb17d5fe6b53db078082fb033dbc67eea8307
14615 * configure.ac (AM_INIT_AUTOMAKE): Add serial-tests.
14617 2015-01-04 Werner Koch <wk@gnupg.org>
14619 agent: Make --allow-loopback-pinentry gpgconf changeable.
14620 + commit ac2cb47fc5c0be539aaa07fd141acdbc0934800f
14623 2014-12-22 Joshua Rogers <git@internot.info>
14625 tools: Free variable before return.
14626 + commit cf88337f8a4f8c98aca4b1da5921d18567b4f474
14627 * tools/gpgconf-comp.c: Free 'dest_filename' before it is returned
14630 2014-12-22 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14632 sm: Avoid double-free on iconv failure.
14633 + commit ed8383c618e124cfa708c9ee87563fcdf2f4649c
14634 * sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
14635 double-free of pwbuf.
14637 scd: Avoid double-free on error condition in scd.
14638 + commit b0b3803e8c2959dd67ca96debc54b5c6464f0d41
14639 * scd/command.c (cmd_readkey): avoid double-free of cert
14641 avoid future chance of using uninitialized memory.
14642 + commit 367b073ab5f439ccf0750461d10c69f36998bd62
14643 * common/iobuf.c: (iobuf_open): initialize len
14645 avoid double-close in unusual dotlock situations.
14646 + commit 628b111fa679612e23c0d46505b1ecbbf091897d
14647 * common/dotlock.c: (dotlock_create_unix) avoid double-close()
14648 in unusual situations.
14650 gpgkey2ssh: clean up varargs.
14651 + commit 351bca9047d748c3c4f7e9a3cdc476af127b1da3
14652 * tools/gpgkey2ssh.c (key_to_blob) : ensure that va_end is called.
14654 2014-12-22 Werner Koch <wk@gnupg.org>
14656 doc: Fix memory leak in yat2m.
14657 + commit 6056d2467310260ddc0db2fe65b737ace6febcaa
14658 * doc/yat2m.c (write_th): Free NAME.
14660 dirmngr: Fix memory leak.
14661 + commit 5a556e4e88bcbc926c0922070acaf5f7b25d18fb
14662 * dirmngr/server.c (cmd_ks_search, cmd_ks_get): Fix memory leak.
14664 * dirmngr/ks-engine-hkp.c (ks_hkp_mark_host): Remove double check.
14666 dirmngr: Remove un-needed check.
14667 + commit 0d5cb55402c44fb5f731ecf85705f845f3091aa7
14668 * dirmngr/crlfetch.c (crl_fetch): Check that URL is not NULL.
14670 dirmngr,gpgsm: Return NULL on fail.
14671 + commit abd5f6752d693b7f313c19604f0723ecec4d39a6
14672 * dirmngr/ldapserver.c (ldapserver_parse_one): Set SERVER to NULL.
14673 * sm/gpgsm.c (parse_keyserver_line): Ditto.
14675 2014-12-22 NIIBE Yutaka <gniibe@fsij.org>
14678 + commit bdc8efbdd124d836c36cf482216e375421f72891
14679 * agent/divert-scd.c (divert_pkdecrypt): Support ECDH.
14680 * scd/app-openpgp.c (get_algo_byte, store_fpr): Support ECDH.
14681 (send_key_attr): Support ECDH. Fix EdDSA algorithm value.
14682 (retrieve_key_material): Initialize fields.
14683 (get_public_key, ecc_writekey, do_writekey): Support ECDH.
14684 (ecdh_writekey): Remove.
14685 (do_decipher): Support ECDH.
14686 (parse_algorithm_attribute): Support ECDH. Fix EdDSA.
14688 2014-12-19 Werner Koch <wk@gnupg.org>
14690 agent: Make sure --max-cache-ttl is >= --default-cache-ttl.
14691 + commit 76140141699b545f7a988bf5fc101063917e8ce3
14692 * agent/gpg-agent.c (finalize_rereadable_options): New.
14693 (main, reread_configuration): Call it.
14695 agent: Keep the session environment for restricted connections.
14696 + commit 14601eacb51f6c8a60d3d57aee1be11debd94c68
14697 * agent/command-ssh.c (setup_ssh_env): Move code to ...
14698 * agent/gpg-agent.c (agent_copy_startup_env): .. new function. Change
14700 * agent/command.c (start_command_handler): Call that fucntion for
14701 restricted connections.
14703 agent: Fix string prepended to remotely initiated prompts.
14704 + commit aad8963f7b9d13b319abd413db8f42ec467db913
14705 * agent/command.c (cmd_setkeydesc): Use %0A and not \n. Make
14708 2014-12-18 Werner Koch <wk@gnupg.org>
14710 build: Remove option to build without agent.
14711 + commit abec64f3cb04e49ca48cc476a5830a920e2ebf8f
14712 * configure.ac (build-agent): Set to yes.
14714 2014-12-17 Werner Koch <wk@gnupg.org>
14716 gpgconf: Exit with failure if --launch fails.
14717 + commit 5cb6df8996623c00eaa2a39e3037101585442f7e
14718 * tools/gpgconf-comp.c (gc_component_launch): Return an error code.
14719 * tools/gpgconf.c (main): Exit if launch failed.
14721 2014-12-16 Werner Koch <wk@gnupg.org>
14724 + commit 08c00cd4fe432d6852ad1d5c34a234c56aa3617c
14727 po: Update the German translation.
14728 + commit 4ba740bd4734c43e7876f6f6380cc5963789d510
14731 2014-12-16 Petr Pisar <petr.pisar@atlas.cz>
14733 po: Update Czech translation.
14734 + commit 30560491fe42562f4bbdb17d3213f7210f549a0f
14737 2014-12-16 Werner Koch <wk@gnupg.org>
14739 gpg: Show private DO information in the card status.
14740 + commit ce9212924039fba4e479760bba86c61b0d91c469
14741 * g10/call-agent.c (agent_release_card_info): Free private_do.
14742 (learn_status_cb): Parse PRIVATE-DO-n stati.
14744 2014-12-16 Ineiev <ineiev@gnu.org>
14746 po: Update Russian translation.
14747 + commit 5ab5b3fa6921f08dd0a498fe0381735e803d01e3
14750 2014-12-16 Jedi <jedi@jedi.org>
14752 po: Update zh_TW translation.
14753 + commit 668dc6b32cb97608ef65b85d917c86f5aec896ce
14756 2014-12-15 Werner Koch <wk@gnupg.org>
14758 gpg: Add sub-command "factory-reset" to --card-edit.
14759 + commit dd65e21cb4934b40e6f2f7a8095f39fd6d9971bc
14760 * common/util.h (GPG_ERR_OBJ_TERM_STATE): New.
14761 * scd/iso7816.c (map_sw): Add this error code.
14762 * scd/app-openpgp.c (do_getattr): Return the life cycle indicator.
14763 * scd/app.c (select_application): Allow a return value of
14764 GPG_ERR_OBJ_TERM_STATE.
14765 * scd/scdaemon.c (set_debug): Print the DBG_READER value.
14766 * g10/call-agent.c (start_agent): Print a status line for the
14768 (agent_scd_learn): Make arg "info" optional.
14769 (agent_scd_apdu): New.
14770 * g10/card-util.c (send_apdu): New.
14771 (factory_reset): New.
14772 (card_edit): Add command factory-reset.
14774 gpg: Fix regression in notation data regression.
14775 + commit fc9a35d2dec2f838abac831fd88dca494773e082
14776 * g10/misc.c (pct_expando): Reorder conditions for clarity.
14777 * g10/sign.c (write_signature_packets): Fix notation data creation.
14779 gpg: Avoid extra LF in notaion data listing.
14780 + commit b4e402cb5c6d7fc507e8d5131969145b49640e50
14781 * g10/keylist.c (show_notation): Use log_printf.
14783 2014-12-12 Werner Koch <wk@gnupg.org>
14785 scd: Fix possibly inhibited checkpin of the admin pin.
14786 + commit 68b4e7c9e4de0dc3580ca5af3cfd0f20a2691b5e
14787 * scd/app-openpgp.c (do_check_pin): Do not check a byte of a released
14790 gpg: Let --card--status create a shadow key (card key stub).
14791 + commit f3f9f9b2844c35f7942ee904d5222523615cdad4
14792 * agent/command.c (cmd_learn): Add option --sendinfo.
14793 * agent/learncard.c (agent_handle_learn): Add arg "send" andsend
14794 certifciate only if that is set.
14795 * g10/call-agent.c (agent_scd_learn): Use --sendinfo. Make INFO
14797 (agent_learn): Remove.
14798 * g10/keygen.c (gen_card_key): Replace agent_learn by agent_scd_learn.
14800 gpg: Fix possible read of unallocated memory.
14801 + commit 193815030d20716d9a97850013ac3cc8749022c9
14802 * g10/parse-packet.c (can_handle_critical): Check content length
14803 before calling can_handle_critical_notation.
14805 2014-12-11 Werner Koch <wk@gnupg.org>
14807 build: Replace deprecated autconf macro.
14808 + commit 1d8ebe4d54eef37da65e7bd5d7386bc04f344447
14809 * m4/intl.m4: s/AM_PROG_MKDIR_P/AC_PROG_MKDIR_P/
14812 2014-12-08 Werner Koch <wk@gnupg.org>
14814 dirmngr: Improve dead host detection.
14815 + commit e8c0ed779579293b3f4592d9337bc15ee0fc3fdd
14816 * dirmngr/ks-engine-hkp.c (handle_send_request_error): Mark host dead
14817 also for 2 other error messages.
14819 http: Improve diagnostic messages.
14820 + commit 6d5f12834124ba5ee0e54261531abf95c36c116c
14821 * common/http.c (send_request): Print TLS alert info
14822 (connect_server): Detect bogus DNS entry.
14824 gpg: Obsolete some keyserver helper options.
14825 + commit 5bf93f4ea7a11381dd256b5fd4e5913366828265
14826 * g10/options.h (opt): Remove keyserver_options.other.
14827 * g10/gpg.c (main): Obsolete option --honor-http-proxt.
14828 * g10/keyserver.c (add_canonical_option): Replace by ...
14829 (warn_kshelper_option): New.
14830 (parse_keyserver_uri): Obsolete "x-broken-http".
14832 dirmngr: Return a proper error for all dead hosts.
14833 + commit b72ece6d74d3e385e818ead748eba0cb111b95b3
14834 * dirmngr/ks-engine-hkp.c (map_host): Change to return an gpg_error_t.
14835 Return an error code for all dead hosts.
14836 (make_host_part): Change to return an gpg_error_t. Change all
14839 gpg: Write a status line for a failed --send-keys.
14840 + commit 66ab8f807c96b778f2a2c82b58d3e15ac295e1b2
14841 * g10/keyserver.c (keyserver_put): Write an status error.
14843 2014-12-08 NIIBE Yutaka <gniibe@fsij.org>
14845 scd: Fix for EdDSA.
14846 + commit c50c11d5751f46ddb38244a5a07d8274e1e10922
14847 * scd/app-openpgp.c (get_algo_byte): It catches 22.
14848 (store_fpr): It's MPI usually, but it's opaque bytes for EdDSA.
14850 2014-12-05 Andre Heinecke <aheinecke@intevation.de>
14852 Document no-allow-mark-trusted option.
14853 + commit f4ed04fca8885301b567ec004ffff0d6e24f4611
14854 doc: Document no-allow-mark-trusted for gpg-agent
14856 * doc/gpg-agent.texi: Change allow-mark-trusted doc to
14857 no-allow-mark-trusted.
14860 Since rev. 78a56b14 allow-mark-trusted is the default option
14861 and was replaced by no-allow-mark-trusted to disable the
14862 interactive prompt.
14864 2014-12-05 NIIBE Yutaka <gniibe@fsij.org>
14866 scd: Fix for NIST P-256.
14867 + commit 8720125f5a283ede34e52c2493b8a9b0226ae62c
14868 * g10/card-util.c (card_store_subkey): Error check.
14869 * scd/app-opengpg.c (ecc_writekey): Support NIST P-256.
14870 (do_writekey): Error check.
14872 2014-12-04 Werner Koch <wk@gnupg.org>
14874 gpg: Allow import of large keys.
14875 + commit 63e7891f0f9f0228d93c6cd979fbf2797da2b67d
14876 * g10/import.c (import): Skip too large keys.
14877 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 2MB to 5MB.
14879 2014-12-03 Werner Koch <wk@gnupg.org>
14881 gpg: Remove option aliases --[no-]throw-keyid and --notation-data.
14882 + commit 17b4662984b4669d8dcbbd6705ccfbe6c263319c
14883 * g10/gpg.c (opts): Remove them.
14884 * g10/options.h (opt): s/throw_keyid/throw_keyids/ and change users.
14886 2014-12-02 Werner Koch <wk@gnupg.org>
14888 agent: Replace some sprintf.
14889 + commit fabcf1440a6900b9471f11e4f2a015e9f2d1a74c
14890 * agent/call-scd.c (agent_card_pksign): Replace sprintf by bin2hex.
14891 * agent/command-ssh.c (ssh_identity_register): Ditto.
14892 * agent/pkdecrypt.c (agent_pkdecrypt): Replace sprintf by
14895 2014-12-01 Werner Koch <wk@gnupg.org>
14897 tools: Improve watchgnupg portability.
14898 + commit 0367a4b8cfbf1f197e093ca2b83b27e0a409c3c7
14899 * configure.ac (AC_CHECK_HEADERS): Check for sys.select.h
14900 * tools/watchgnupg.c: Include it.
14902 gpg: Fix export bug using exact search with only one key in the keybox.
14903 + commit f1c3eb4b16ca43b5d3712a3b54c22d17ce85af47
14904 * g10/export.c (do_export_stream): Disable caching.
14905 * g10/keyserver.c (keyidlist): Ditto.
14907 scd: Implement socket redirection.
14908 + commit 2f90b7c21b2f84ca2bf5f4555da9233e84606b4e
14909 * scd/scdaemon.c (ENAMETOOLONG): New.
14910 (redir_socket_name): New.
14911 (cleanup): Take care of a redirected socket.
14912 (main): Pass redir_socket_name to create_server_socket.
14913 (create_socket_name): Remove superfluous length check.
14914 (create_server_socket): Add arg r_redir_name and implement
14915 redirection. Replace assert for older Assuan by an error message.
14917 dirmngr: Implement socket redirection.
14918 + commit eede0e59bf6281777da7391752ae4191f3e51204
14919 * dirmngr/dirmngr.c (ENAMETOOLONG): new.
14920 (redir_socket_name): New.
14921 (main): Add Assuan socket redirection.
14922 (cleanup): Adjust cleanup for redirection.
14924 2014-11-28 Werner Koch <wk@gnupg.org>
14926 agent: Implement socket redirection.
14927 + commit e1f515b19c7f63b6d0b0253319b9fc41dabed657
14928 * agent/gpg-agent.c (ENAMETOOLONG): New.
14929 (redir_socket_name, redir_socket_name_extra)
14930 (redir_socket_name_ssh): New.
14931 (remove_socket): Take care of the redir names.
14932 (main): Pass the redir names to create_server_socket.
14933 (create_socket_name): Remove length check - that is anyway done later.
14934 (create_server_socket): Add arg r_redir_name and implement redirection
14935 if Libassuan is at least 2.14.
14937 gpg: Change another BUG() call to a regular error message.
14938 + commit e59b1cc7471dd161a627b290c645ef7bd0d9d42c
14939 * g10/mainproc.c (proc_tree): Replace BUG by a proper error messages.
14941 Add option --no-autostart.
14942 + commit 7aee3579be6e24a1aa280e75615fc3a11ceef960
14943 * g10/gpg.c: Add option --no-autostart.
14944 * sm/gpgsm.c: Ditto.
14945 * g10/options.h (opt): Add field autostart.
14946 * sm/gpgsm.h (opt): Ditto.
14947 * g10/call-agent.c (start_agent): Print note if agent was not
14949 * sm/call-agent.c (start_agent): Ditto.
14950 * g10/call-dirmngr.c (create_context): Likewise.
14951 * sm/call-dirmngr.c (start_dirmngr_ext): Ditto.
14953 2014-11-27 Мирослав Николић <wk@gnupg.org>
14955 gpg-agent: Add restricted connection feature.
14956 + commit f173cdcdfbfd083b035516a406c2c754f38a0ace
14957 * agent/agent.h (opt): Add field extra_socket.
14958 (server_control_s): Add field restricted.
14959 * agent/command.c: Check restricted flag on many commands.
14960 * agent/gpg-agent.c (oExtraSocket): New.
14961 (opts): Add option --extra-socket.
14962 (socket_name_extra): New.
14963 (cleanup): Cleanup that socket name.
14964 (main): Implement oExtraSocket.
14965 (create_socket_name): Add arg homedir and change all callers.
14966 (create_server_socket): Rename arg is_ssh to primary and change
14968 (start_connection_thread): Take ctrl as arg.
14969 (start_connection_thread_std): New.
14970 (start_connection_thread_extra): New.
14971 (handle_connections): Add arg listen_fd_extra and replace the
14972 connection starting code by parameterized loop.
14973 * common/asshelp.c (start_new_gpg_agent): Detect the use of the
14974 restricted mode and don't fail on sending the pinentry environment.
14976 * common/util.h (GPG_ERR_FORBIDDEN): New.
14978 agent: Make auditing of the option list easier.
14979 + commit ccee34736b57a42ec4bdcb0d3181bdc6a08b0fff
14980 * agent/gpg-agent.c (opts): Use ARGPARSE_ macros.
14982 2014-11-26 Kristian Fiskerstrand <kf@sumptuouscapital.com>
14984 dirmngr: Only report hkps scheme when available.
14985 + commit 68a7ccc0c870cce6ab9fefb1aa6fd100e1de129b
14986 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Make use of TLS macros.
14988 2014-11-26 Werner Koch <wk@gnupg.org>
14990 gpg: Change a bug() call to a regular error message.
14991 + commit 1c2140346d6ef9c35e303099d2d15be57869b4d5
14992 * g10/decrypt-data.c (decrypt_data): Return an error code instead of
14995 2014-11-25 Werner Koch <wk@gnupg.org>
14997 Fix buffer overflow in openpgp_oid_to_str.
14998 + commit 8445ef24fc31e1fe0291e17f90f9f06b536e34da
14999 * common/openpgp-oid.c (openpgp_oid_to_str): Fix unsigned underflow.
15001 * common/t-openpgp-oid.c (BADOID): New.
15002 (test_openpgp_oid_to_str): Add test cases.
15004 2014-11-24 Werner Koch <wk@gnupg.org>
15006 gpg: Fix use of uninit.value in listing sig subpkts.
15007 + commit 596ae9f5433ca3b0e01f7acbe06fd2e424c42ae8
15008 * g10/parse-packet.c (dump_sig_subpkt): Print regex subpacket
15011 gpg: Fix off-by-one read in the attribute subpacket parser.
15012 + commit 0988764397f99db4efef1eabcdb8072d6159af76
15013 * g10/parse-packet.c (parse_attribute_subpkts): Check that the
15014 attribute packet is large enough for the subpacket type.
15016 gpg: Fix batch generation of ECC keys.
15017 + commit b716e6a69919b89c7887d6c7c9b97e58d18fdf95
15018 * g10/keygen.c (get_parameter_algo): Map ECC algorithm strings
15021 2014-11-24 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15023 Distinguish between ARGPARSE_AMBIGUOUS_{OPTION,COMMAND}
15024 + commit eed16ccebf8fd1fdf9709affbd5c831f6957b8ae
15025 * common/argparse.c (initialize): Use correct value.
15027 gpg: Refer to --throw-keyids instead of --throw-keyid.
15028 + commit a3cf781e3bc144aff60e007b9ba59bff7b1b2c9e
15029 * g10/encrypt.c: adjust error message
15031 2014-11-21 Werner Koch <wk@gnupg.org>
15033 gpg: Track number of skipped v3 keys on import.
15034 + commit 44c9cc18968b3e1d7568ec41ebf28a07285c61bb
15035 * g10/import.c (stats_s): Add field v3keys.
15036 (import): Update this field.
15037 (import_print_stats): Print v3 key count.
15038 (read_block): Skip v3 keys and return a count for them.
15040 gpg: Fix regression in parse_key.
15041 + commit 94a54425144e412bc83e44b7c6323282f49f650f
15042 * g10/parse-packet.c (parse): Better return just the gpg_err_code.
15043 (parse_key): Return the error code.
15045 speedo: Add simple logos to the installer.
15046 + commit 9a85b91e925ac0798d56820353bf5858b212277f
15047 * build-aux/speedo/w32/README.txt: Include GnuPG Readme.
15048 * build-aux/speedo/w32/gnupg-logo-150x57.bmp: New.
15049 * build-aux/speedo/w32/gnupg-logo-164x314.bmp: New.
15050 * build-aux/speedo/w32/inst.nsi: Add logos.
15051 * build-aux/speedo.mk ($(bdir)/NEWS.tmp): Extract news items.
15053 2014-11-20 Werner Koch <wk@gnupg.org>
15055 gpg: Fix hash detection for ECDSA.
15056 + commit f80c2dd78d522f12b2c7afbd5c0763a97d87d2bd
15057 * g10/sign.c (sign_file): Use DSA or ECDSA and not DSA|EdDSA.
15059 Fix linker problem on OS X.
15060 + commit cd2c6f36fe5d1d1d45546f5168aead5cbe6487e0
15061 * common/init.c (default_errsource): Move to the .data segmemt.
15063 2014-11-19 Werner Koch <wk@gnupg.org>
15065 gpg-connect-agent: Add convenience option --uiserver.
15066 + commit 164a6a9dd4af26668dd0d01061688bf1ceff44bf
15069 Add "gpgconf --kill dirmngr" and avoid useless launch before a kill.
15070 + commit 0e7dd40342bd56810c27db1c38c1928f56f43bfd
15071 * common/asshelp.c (start_new_gpg_agent): Add arg autostart. Change
15072 all callers to use 1 for it.
15073 (start_new_dirmngr): Ditto.
15074 * tools/gpg-connect-agent.c: Add option --no-autostart.
15075 (main): Default autostart to 1.
15076 (start_agent): Implement no-autostart.
15077 * tools/gpgconf-comp.c (gpg_agent_runtime_change): Use --no-autostart.
15078 (scdaemon_runtime_change): Ditto.
15079 (dirmngr_runtime_change): New.
15081 po: Copied missing translations from the 2.0 branch.
15082 + commit 329ece46bf83871f01eb833d5ebec6da36bfcce0
15083 * po/LINGUAS: Add new translations.
15085 2014-11-17 Werner Koch <wk@gnupg.org>
15087 gpg: Fix a NULL-deref for invalid input data.
15088 + commit 32e85668b82f6fbcb824eea9548970804fb41d9e
15089 * g10/mainproc.c (proc_encrypted): Take care of canceled passpharse
15092 2014-11-13 Werner Koch <wk@gnupg.org>
15094 gpg: Make the use of "--verify FILE" for detached sigs harder.
15095 + commit 69384568f66a48eff3968bb1714aa13925580e9f
15096 * g10/openfile.c (open_sigfile): Factor some code out to ...
15097 (get_matching_datafile): new function.
15098 * g10/plaintext.c (hash_datafiles): Do not try to find matching file
15100 * g10/mainproc.c (check_sig_and_print): Print a warning if a possibly
15101 matching data file is not used by a standard signatures.
15103 gpg: Fix a missing LF in debug output.
15104 + commit 22748338da9a78d20aefe3656ba40b0f9d34a681
15105 * g10/kbnode.c (dump_kbnode): Print a LF.
15107 gpg: Remove PGP-2 related cruft.
15108 + commit e30cb8f61792e3808f7c8f343fc8545e6c81fe74
15109 * g10/armor.c (parse_hash_header,carmor_filter): Ignore MD5 in hash
15111 (fake_packet): Remove pgp-2 workaround for white space stripping.
15112 * g10/filter.h (armor_filter_context_t): Remove field pgp2mode.
15113 * g10/options.h (opt): Remove field pgp2_workarounds.
15114 * g10/gpg.c (main): Do not set this field.
15115 * g10/gpgv.c (main): Ditto.
15116 * g10/mainproc.c (proc_encrypted): Use SHA-1 as fallback s2k hash
15117 algo. Using MD5 here is useless.
15118 (proc_plaintext): Remove PGP-2 related woraround
15119 (proc_tree): Remove another workaround but keep the one for PGP-5.
15121 2014-11-12 Werner Koch <wk@gnupg.org>
15123 gpg: Improve perceived speed of secret key listings.
15124 + commit 81e177be10273885573f5d1fd88a1ee23479f4ab
15125 * g10/keylist.c (list_keyblock): Flush stdout for secret keys.
15127 gpg: Fix regression in --refresh-keys.
15128 + commit eecbed004ca1e9ca23c3892c3a5e6dd174ddf93b
15129 * g10/keyserver.c (keyserver_get): Factor all code out to ...
15130 (keyserver_get_chunk): new. Extimate line length.
15131 (keyserver_get): Split up requests into chunks.
15133 gpg: Add import options "keep-ownertrust".
15134 + commit ffc2307843ce6c4ac3c8d99ba8c70ffa1ae28e39
15135 * g10/options.h (IMPORT_KEEP_OWNERTTRUST): New.
15136 * g10/import.c (parse_import_options): Add "keep-ownertrust".
15137 (import_one): Act upon new option.
15139 2014-11-11 Werner Koch <wk@gnupg.org>
15141 Remove use of gnulib (part 2)
15142 + commit b8cdfac353ad96d4ef025c066c16dbde34805661
15143 * configure.ac (strpbrk): Add to AC_CHECK_FUNCS.
15144 (gl_EARLY): Remove.
15145 * common/stringhelp.c (strpbrk) [!HAVE_STRPBRK]: New.
15146 * common/sysutils.c (gnupg_mkdtemp): New. Based on code from
15148 (gnupg_setenv): Rewrite.
15149 (gnupg_unsetenv): Rewrite.
15150 * g10/exec.c: Include sysutils.h and replace mkdtemp by gnupg_mkdtemp.
15151 * g13/be-encfs.c: Ditto.
15152 * g13/mount.c: Ditto.
15153 * tools/symcryptrun.c (confucius_mktmpdir): Ditto.
15155 Remove use of gnulib (part 1)
15156 + commit 1adf719b2d8e2d5b912bf6655731e7e586402654
15157 * gl/: Remove entire tree.
15158 * configure.ac: Remove gnulib tests and the gl/ Makefile.
15159 (setenv): Add to AC_CHECK_FUNCS.
15160 * autogen.rc (extra_aclocal_flags): Set to empty.
15161 * Makefile.am (ACLOCAL_AMFLAGS): Remove -I gl/m4
15162 (SUBDIRS): Remove gl/.
15163 * agent/Makefile.am (common_libs): Remove ../gl/gnulib.a
15164 * common/Makefile.am (t_common_ldadd): Ditto.
15165 * dirmngr/Makefile.am (dirmngr_LDADD): Ditto.
15166 (dirmngr_ldap_LDADD, dirmngr_client_LDADD): Ditto.
15167 * g10/Makefile.am (needed_libs): Ditto.
15168 * g13/Makefile.am (g13_LDADD): Ditto.
15169 * kbx/Makefile.am (kbxutil_LDADD): Ditto.
15170 ($(PROGRAMS)): Ditto.
15171 * scd/Makefile.am (scdaemon_LDADD): Ditto.
15172 * sm/Makefile.am (common_libs): Ditto.
15173 * tools/Makefile.am (common_libs, commonpth_libs): Ditto.
15175 * agent/gpg-agent.c: Remove "mkdtemp.h"
15176 * g10/exec.c: Ditto.
15177 * scd/scdaemon.c: Ditto.
15178 * tools/symcryptrun.c: Ditto.
15179 * common/sysutils.c: Remove "setenv.h"
15181 * common/t-timestuff.c: Use putenv if setenv is not available.
15183 2014-11-07 Werner Koch <wk@gnupg.org>
15185 gpg: Remove warning message for non-implemented search modes.
15186 + commit 7362c8c6e60939588e817384ae2e29195cb3f518
15187 * kbx/keybox-search.c (keybox_search): Silently ignore.
15188 * doc/specify-user-id.texi: Docuement '@", '+', and '.' search
15191 w32: Fix http access module.
15192 + commit f0f5cb6b3e525f696b8820c517190e1d84f3b885
15193 * common/http.c (write_server) [W32]: Rework to use send() instead of
15194 write even when build with npth.
15195 (cookie_read) [W32]: Rework to use recv() instead of read even when
15198 build: Add method to use a custom swdb.lst and use adns with Windows.
15199 + commit c7c79e31937e2d2fdb4042641786c229e31fbfae
15200 * build-aux/getswdb.sh: Add option --skip-verify.
15201 * build-aux/speedo.mk: Add config var CUSTOM_SWDB. Tage adns version
15202 from swdb and build for Windows with adns.
15204 build: Improve test for ADNS.
15205 + commit f7e1be24c8fcf588d4e48aa53a85b22bd035e3b0
15206 * configure.ac <adns>: Use adns_free as probe function for libadns.
15207 (HAVE_ADNS_FREE): Remove bogus tests to set this and remove the macro.
15208 (ADNSLIBS): Do not ac_subst - it is only used within configure.
15210 2014-11-05 Werner Koch <wk@gnupg.org>
15212 speedo: Append the date to the Windows installer.
15213 + commit 8ec0b384a86bd7f67a60ab43ff1540e80c3f729d
15214 * build-aux/speedo.mk (BUILD_DATESTR): New.
15215 (dist-source, installer): Use it.
15218 + commit e22b459b910762f77245283746de34c67ebc72da
15221 Avoid sign extension when shifting the MSB.
15222 + commit 91b826a38880fd8a989318585eb502582636ddd8
15223 * sm/fingerprint.c (gpgsm_get_short_fingerprint): Cast MSB before
15225 * g10/build-packet.c (delete_sig_subpkt): Ditto.
15227 2014-11-04 Werner Koch <wk@gnupg.org>
15229 Remove all expired common CA certificates.
15230 + commit 46fa1e0fe9f7407f12aa854e5cdb54624af3e89b
15231 * doc/com-certs.pem: Remove certifciates.
15233 2014-11-02 Werner Koch <wk@gnupg.org>
15235 gpg: Avoid extra pinentries for each subkey in --export-secret-keys.
15236 + commit f8c993fbe28bf02f1d7aadec823a9dfc935398fa
15237 * agent/command.c (cmd_export_key): Actually implement the cache_nonce
15239 * g10/export.c (do_export_stream): Make use of a cache_nonce.
15241 gpg: Fix endless loop in keylisting with fingerprint.
15242 + commit d95f05c314adfecbe0af9073f964030010442f9b
15243 * g10/getkey.c (getkey_next): Disable cache.
15245 gpg: Minor cleanup for key listing related code.
15246 + commit 440e8f517008107a9fe1b72cb659b97b7d840de6
15247 * g10/getkey.c (get_pubkey_next): Divert to getkey_next.
15248 (get_pubkey_end): Move code to getkey_end.
15249 * g10/keydb.c (keydb_search_reset): Add a debug statement.
15250 (dump_search_desc): Add arg HD and print the handle.
15252 gpg: Do not show an useless passphrase prompt in batch mode.
15253 + commit a929f36693567e57eca89fb48f23cada8ce7291a
15254 * g10/keygen.c: Remove unused PASSPHRASE related code.
15255 (proc_parameter_file): Remove useless asking for a passphrase in batch
15258 2014-10-31 Werner Koch <wk@gnupg.org>
15260 gpg: Remove superfluous check for Libgcrypt >= 1.4.0.
15261 + commit f4df71aa2d544ec46a2ded3055ffb21b9842129e
15262 * g10/gpg.c (main): Remove check.
15264 kbx: Let keydb_search skip unwanted blobs.
15265 + commit 935edf88ab29b2f63afc2a0e3af1b33c92033ab7
15266 * kbx/keybox.h (keybox_blobtype_t): New.
15267 * kbx/keybox-defs.h (BLOBTYPE_*): Replace by KEYBOX_BLOBTYPE_*.
15268 * kbx/keybox-search.c (keybox_search): Add arg want_blobtype and skip
15269 non-matching blobs.
15270 * sm/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_X509 to keybox_search.
15271 * g10/keydb.c (keydb_search): Pass KEYBOX_BLOBTYPE_PGP to keybox_search.
15273 gpg: Fix --rebuild-keydb-caches.
15274 + commit 28ae8ad70b3b802e67344468a4765eee6e291c68
15275 * g10/parse-packet.c (parse_key): Store even unsupported packet
15277 * g10/keyring.c (keyring_rebuild_cache): Do not copy keys with
15278 versions less than 4.
15280 gpg: Fix testing for secret key availability.
15281 + commit 433208a5536608c2b40525eebadbbdeb7780d7f2
15282 * g10/getkey.c (have_secret_key_with_kid): Do not change the search
15285 build: Avoid distributing backup files etc.
15286 + commit b47fe2b14e2a610706bdeff9dbd9a5f7bd6f6b3a
15287 * Makefile.am (EXTRA_DIST): Do not include directories.
15289 2014-10-30 Werner Koch <wk@gnupg.org>
15291 tests: Speed up the genkey1024.test by using not so strong random.
15292 + commit 9546aa3cc87fc83a40768a12fbbceb19496ce129
15293 * agent/gpg-agent.c (oDebugQuickRandom): New.
15294 (opts): New option --debug-quick-random.
15295 (main): Use new option.
15296 * common/asshelp.c (start_new_gpg_agent): Add hack to pass an
15297 additional argument for the agent name.
15298 * tests/openpgp/defs.inc: Pass --debug-quick-random to the gpg-agent
15299 starting parameters.
15300 * tests/openpgp/version.test: Ditto.
15302 2014-10-29 Werner Koch <wk@gnupg.org>
15304 common: Check option arguments for a valid range.
15305 + commit 0d73a242cb53522669cf712b5ece7d1ed05d003a
15306 * common/argparse.h (ARGPARSE_INVALID_ARG): New.
15307 * common/argparse.c: Include limits h and errno.h.
15308 (initialize): Add error strings for new error constant.
15309 (set_opt_arg): Add range checking.
15311 Fix stdint.h problem for Apple.
15312 + commit f5592fcff308007322a201c970a6d5e8763c9fe3
15313 * gl/stdint_.h [__APPLE__]: Include hack.
15315 2014-10-27 Werner Koch <wk@gnupg.org>
15317 speedo: Fixes for native build.
15318 + commit 158fe900183daf745821dea7a70cf1c673cd8de0
15319 * build-aux/speedo.mk (TARGETOS): Init with empty string.
15320 (speedo_pkg_gnupg_configure): Use --enable-gpg2-is-gpg only for w32.
15321 (INST_VERSION, INST_PROD_VERSION): Create only for w32.
15323 2014-10-24 Werner Koch <wk@gnupg.org>
15325 agent: Support pinentries with integrated repeat passphrase feature.
15326 + commit c9aadcb3a248632c07391ff3d829bece9320a901
15327 * agent/agent.h (struct pin_entry_info_s): Add fields repeat_okay and
15329 * agent/call-pinentry.c (close_button_status_cb): Rewrite and check
15330 for PIN_REPEAT. Change users to check only the relevant bit.
15331 (agent_askpin): Support repeat logic of new Pinentries.
15333 * agent/command-ssh.c (ssh_identity_register): Use the new repeat
15335 * agent/genkey.c (agent_ask_new_passphrase): Ditto.
15337 2014-10-19 Werner Koch <wk@gnupg.org>
15339 gpg: Silence "packet with obsolete versoin" warnings.
15340 + commit 472a4a0d82add2d17154fa38e0074eaea56c28c1
15341 * g10/parse-packet.c (parse_key): Print warning only in very verbose
15344 gpg: Make card key generation work again.
15345 + commit 1b8decc4767f0c55867327bdf3113204efcd19a7
15346 * g10/call-agent.c (agent_scd_learn): Rename from agent_learn.
15347 (agent_learn): New.
15348 * g10/keygen.c (gen_card_key): Call new agent-learn.
15350 2014-10-17 Werner Koch <wk@gnupg.org>
15352 dirmngr: Allow building without LDAP support.
15353 + commit 6d9491842d5da597980eaa59e1e3e2137965fe09
15354 * configure.ac: Add option --disable-ldap.
15355 (USE_LDAP): New ac_define and am_conditional.
15356 * dirmngr/Makefile.am: Take care of USE_LDAP.
15357 * dirmngr/dirmngr.c (!USE_LDAP): Make all ldap options dummy options
15358 and do not call any ldap function.
15359 * dirmngr/server.c (!USE_LDAP): Do not call any ldap function.
15360 * dirmngr/crlfetch.c (!USE_LDAP): Ditto.
15362 w32: Set SYSROOT to help finding config scripts.
15363 + commit a13705f4c18db56765f4af31376e81241dbabebe
15364 * autogen.sh <build-w32>: Set SYSROOT.
15366 gpg: Remove all support for v3 keys and always create v4-signatures.
15367 + commit 8fd150b05b744fe9465057c12529d5e6b6b02785
15368 * g10/build-packet.c (do_key): Remove support for building v3 keys.
15369 * g10/parse-packet.c (read_protected_v3_mpi): Remove.
15370 (parse_key): Remove support for v3-keys. Add dedicated warnings for
15372 * g10/keyid.c (hash_public_key): Remove v3-key support.
15373 (keyid_from_pk): Ditto.
15374 (fingerprint_from_pk): Ditto.
15376 * g10/options.h (opt): Remove fields force_v3_sigs and force_v4_certs.
15377 * g10/gpg.c (cmd_and_opt_values): Remove oForceV3Sigs, oNoForceV3Sigs,
15378 oForceV4Certs, oNoForceV4Certs.
15379 (opts): Turn --force-v3-sigs, --no-force-v3-sigs, --force-v4-certs,
15380 --no-force-v4-certs int dummy options.
15381 (main): Remove setting of the force_v3_sigs force_v4_certs flags.
15382 * g10/revoke.c (gen_revoke, create_revocation): Always create v4 certs.
15383 * g10/sign.c (hash_uid): Remove support for v3-signatures
15384 (hash_sigversion_to_magic): Ditto.
15385 (only_old_style): Remove this v3-key function.
15386 (write_signature_packets): Remove support for creating v3-signatures.
15387 (sign_file): Ditto.
15388 (sign_symencrypt_file): Ditto.
15389 (clearsign_file): Ditto. Remove code to emit no Hash armor line if
15390 only v3-keys are used.
15391 (make_keysig_packet): Remove arg SIGVERSION and force using
15392 v4-signatures. Change all callers to not pass a value for this arg.
15393 Remove all v3-key related code.
15394 (update_keysig_packet): Remove v3-signature support.
15395 * g10/keyedit.c (sign_uids): Always create v4-signatures.
15397 * g10/textfilter.c (copy_clearsig_text): Remove arg pgp2mode and
15400 2014-10-13 Werner Koch <wk@gnupg.org>
15402 gpg: Remove extra RSA import status line.
15403 + commit fab89f159bcb36ea7285af661d5756eefa981822
15404 * g10/import.c (stats_s): Remove field "imported_rsa".
15405 (import_print_stats): Do not print separate value for RSA.
15406 (import_one): Remove the RSA counter.
15408 gpg: Fix informative printing of user ids.
15409 + commit 21c0ea6bafafbcc4a2e07f0ac76275cc0229e9a0
15410 * g10/getkey.c (keyid_list): Add field "fpr".
15411 (cache_user_id): Store fpr and check for dups only by fpr.
15412 (get_pubkey_byfpr): New.
15413 (get_user_id_string): Make static and use xasprintf.
15414 (get_long_user_id_string): Use xasprintf.
15415 (get_user_id_byfpr): New.
15416 (get_user_id_byfpr_native): New.
15417 * g10/keyid.c (fingerprint_from_pk): Make arg RET_LEN optional.
15418 * g10/import.c (import_one): Use get_user_id_byfpr_native.
15420 gpg: Allow importing keys with duplicated long key ids.
15421 + commit c60814a5ce13932d933b363abc0c60c12783ae2f
15422 * g10/keydb.c (keydb_handle): Add field no_caching.
15423 (keyblock_cache): Repalce field kid by fpr.
15424 (keydb_disable_caching): New.
15425 (keydb_search): Use the fingerprint as cache index.
15427 * g10/import.c (import_one): Use the fingerprint and not the kid to
15428 lookup the key. Call keydb_disable_caching beofre re-searching for
15431 * tests/openpgp/import.test: Add a test case.
15433 tests: Speed up conventional encryption tests for gpg.
15434 + commit 2543f0ab9c7b4247347688863f898667bae31984
15435 * tests/openpgp/conventional-mdc.test: Add an s2k-count option.
15436 * tests/openpgp/conventional.test: Ditto.
15438 2014-10-12 Werner Koch <wk@gnupg.org>
15440 gpg: Minor change for better readability.
15441 + commit 2d68dc437e7de92619abe3a019b0a7606487b6bf
15442 * g10/build-packet.c (write_version): Remove.
15443 (do_pubkey_enc, do_onepass_sig): Write version directly.
15445 2014-10-10 Werner Koch <wk@gnupg.org>
15447 doc: Fix a man page rendering problem.
15448 + commit 5b5e5a6027ae1743719e112aa4e9055f1b8133a7
15449 * doc/gpg-agent.texi (Agent Configuration): Fix rendering of the
15450 sshcontrol example.
15452 2014-10-10 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15454 gpg: Add build and runtime support for larger RSA keys.
15455 + commit 6cabb7a2a18f871b8c3d5de58bcdc5aaa5b201af
15456 * configure.ac: Added --enable-large-secmem option.
15457 * g10/options.h: Add opt.flags.large_rsa.
15458 * g10/gpg.c: Contingent on configure option: adjust secmem size,
15459 add gpg --enable-large-rsa, bound to opt.flags.large_rsa.
15460 * g10/keygen.c: Adjust max RSA size based on opt.flags.large_rsa
15461 * doc/gpg.texi: Document --enable-large-rsa.
15463 2014-10-09 Werner Koch <wk@gnupg.org>
15465 gpg: Skip overlong keys and a print a warning.
15466 + commit 2ca90f78cee91c43b8d538d1cb92728f8e1452d5
15467 * kbx/keybox-search.c (keybox_search): Add arg r_skipped and skip too
15469 * sm/keydb.c (keydb_search): Call keybox_search with a dummy param.
15470 * g10/keydb.c (struct keydb_handle): Add field skipped_long_blobs.
15471 (keydb_search_reset): Reset that field.
15472 (keydb_search): Update that field.
15473 (keydb_get_skipped_counter): New.
15474 * g10/keylist.c (list_all): Print count of skipped keys.
15476 gpg: Sync keylist output and warning messages.
15477 + commit 60e21d8b85888b8c9ea15c70268f98d780fdf5fb
15478 * g10/keylist.c (list_all): Flush stdout before logging.
15479 * g10/misc.c (print_pubkey_algo_note): Ditto.
15480 (print_cipher_algo_note): Ditto.
15481 (print_digest_algo_note): Ditto.
15482 (print_md5_rejected_note): Ditto.
15484 kbx: Fix handling of overlong keys.
15485 + commit b6507bb80e4e4aa5c85a918fdcf5c28cccb75081
15486 * kbx/keybox-file.c (IMAGELEN_LIMIT): Change limit from 10^6 to 2MiB.
15487 (_keybox_read_blob2): Skip too long record records.
15488 (_keybox_write_blob): Do not accept too long record.
15489 * kbx/keybox-dump.c (file_stats_s): Add field skipped_long_blobs.
15490 (_keybox_dump_file): Print new counter.
15491 (_keybox_dump_file): Skip too long records.
15494 To test this feature you may set the limit back to 1MiB and use key
15495 F7F0E70F307D56ED which is in my local copy close to 2MiB. Without
15496 this patch it was possible to import the key but access to that key
15497 and all keys stored after it was not possible.
15499 gpg: Take care to use pubring.kbx if it has ever been used.
15500 + commit ec332d58efc50f6508b87fc9f51db68c39cee044
15501 * kbx/keybox-defs.h (struct keybox_handle): Add field for_openpgp.
15502 * kbx/keybox-file.c (_keybox_write_header_blob): Set openpgp header
15504 * kbx/keybox-blob.c (_keybox_update_header_blob): Add arg for_openpgp
15505 and set header flag.
15506 * kbx/keybox-init.c (keybox_new): Rename to do_keybox_new, make static
15507 and add arg for_openpgp.
15508 (keybox_new_openpgp, keybox_new_x509): New. Use them instead of the
15510 * kbx/keybox-update.c (blob_filecopy): Add arg for_openpgp and set the
15511 openpgp header flags.
15513 * g10/keydb.c (rt_from_file): New. Factored out and extended from
15514 keydb_add_resource.
15515 (keydb_add_resource): Switch to the kbx file if it has the openpgp
15518 * kbx/keybox-dump.c (dump_header_blob): Print header flags.
15520 2014-10-09 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15522 Avoid unnecessary library linkage.
15523 + commit 27fe067efea883629354450a042ad09e47d90ff8
15524 * dirmngr/Makefile.am: Avoid $(DNSLIBS) for dirmngr_ldap
15525 * g10/Makefile.am: $(LIBREADLINE) is only for gpg2; gpgv2 does not
15526 need $(LIBASSUAN_LIBS)
15527 * sm/Makefile.am: gpgsm does not need $(ZLIBS)
15528 * tools/Makefile.am: gpgconf does not need $(NPTH_LIBS)
15530 2014-10-08 Werner Koch <wk@gnupg.org>
15532 gpg: Avoid error exit if keygrip computations fails in a key listing.
15533 + commit 3ae6afc1336d42bd95fa0b7f5f83bd299ae26b97
15534 * g10/keyid.c (keygrip_from_pk): Use log_info and clear array on error.
15536 2014-10-03 Werner Koch <wk@gnupg.org>
15538 Release 2.1.0-beta864.
15539 + commit 0943c7cc23371943e9670a2f35c318d847cbac6a
15542 gpg: Allow creating a cert-only primary key.
15543 + commit bc8583f247898a1fa45f6de834d34b335ab1952c
15544 * g10/keygen.c (ask_key_flags): Allow a 'c' in direct entry.
15546 build: Add configure options --disable-{ntb,gnu}tls.
15547 + commit 6522a68d8d11e15ee77102e6830f251c2d9f440d
15548 * configure.ac: Add --disable-ntbtls and --disable-gnutls.
15550 2014-10-03 Andre Heinecke <aheinecke@intevation.de>
15552 gpg: Check gpg-agent version before 2.1 migration.
15553 + commit a6fcdbc9e0fc0e45a3badc23813e689e83059b61
15554 * g10/call-agent.c, g10/call-agent.h (agent_get_version): New.
15555 * g10/migrate.c (migrate_secring): Abort migration if
15556 agent_get_version returns not at least 2.1.0
15558 2014-10-03 Werner Koch <wk@gnupg.org>
15560 po: Update German translation.
15561 + commit b15d5d42adf31c0797797ebe19c471ab6f52c668
15564 Remove support for the GPG_AGENT_INFO envvar.
15565 + commit 9c380384dafb213334f8834178c5ceb0bf33db6e
15566 * agent/agent.h (opt): Remove field use_standard_socket.
15567 * agent/command.c (cmd_killagent): Always allow killing.
15568 * agent/gpg-agent.c (main): Turn --{no,}use-standard-socket and
15569 --write-env-file into dummy options. Always return true for
15570 --use-standard-socket-p. Do not print the GPG_AGENT_INFO envvar
15571 setting or set that envvar.
15572 (create_socket_name): Simplify by removing non standard socket
15574 (check_for_running_agent): Ditto.
15575 * common/asshelp.c (start_new_gpg_agent): Remove GPG_AGENT_INFO use.
15576 * common/simple-pwquery.c (agent_open): Ditto.
15577 * configure.ac (GPG_AGENT_INFO_NAME): Remove.
15578 * g10/server.c (gpg_server): Do not print the AgentInfo comment.
15579 * g13/server.c (g13_server): Ditto.
15580 * sm/server.c (gpgsm_server): Ditto.
15581 * tools/gpgconf.c (main): Simplify by removing non standard socket
15584 2014-10-02 Werner Koch <wk@gnupg.org>
15586 gpg: Fix regression removing SHA256.
15587 + commit 688a903b4b3ad348c0d09e9d3fab8a12f4f94311
15588 * g10/misc.c (map_md_openpgp_to_gcry): Always use SHA256.
15590 First changes for future use of NTBTLS.
15591 + commit f2361e6d582d4343d71d294ed1da654afe7750ee
15592 * configure.ac (NEED_NTBTLS_ABI, NEED_NTBTLS_VERSION): New.
15593 (HTTP_USE_NTBTLS): New. Prefer over GNUTLS.
15594 * m4/ntbtls.m4: New.
15595 * m4/Makefile.am (EXTRA_DIST): Add new file.
15596 * common/http.c: Add conditionals to eventually use NTBTLS.
15598 build: Update m4 scripts.
15599 + commit 6bc0cd6202033be113999dbf27be4014bdf2c784
15600 * m4/gpg-error.m4: Update from Libgpg-error git master.
15601 * m4/libgcrypt.m4: Update from Libgcrypt git master.
15602 * configure.ac: Declare SYSROOT a precious variable. Add extra error
15603 message for library configuration mismatches.
15605 2014-09-29 Werner Koch <wk@gnupg.org>
15607 doc: Remove GnuPG-1 related parts from gpg.texi.
15608 + commit edd191e5b006dc6ace1d41672e7201cbe58c41c9
15609 * doc/Makefile.am (YAT2M_OPTIONS): Add 2.1 to the source info.
15610 * doc/gpg.texi: Remove gpg1 related texts.
15612 2014-09-27 Werner Koch <wk@gnupg.org>
15614 gpg: Default to SHA-256 for all signature types on RSA keys.
15615 + commit d33246700578cddd1cb8ed8164cfbba50aba4ef3
15616 * g10/main.h (DEFAULT_DIGEST_ALGO): Use SHA256 in --gnupg and SHA1 in
15617 strict RFC or PGP modes.
15618 * g10/sign.c (make_keysig_packet): Use DEFAULT_DIGEST_ALGO also for
15619 RSA key signatures.
15620 * configure.ac: Do not allow to disable sha256.
15622 gpg: Simplify command --gen-key and add --full-gen-key.
15623 + commit f3625bb018fa8d5bc754f982996f8788386f0a9d
15624 * g10/gpg.c (aFullKeygen): New.
15625 (opts): Add command --full-key-gen.
15626 (main): Implement it.
15627 * g10/keygen.c (DEFAULT_STD_ALGO): Replace wrong GCRY_PK_RSA although
15628 the value is identical.
15629 (DEFAULT_STD_CURVE): New.
15630 (DEFAULT_STD_SUBALGO): New.
15631 (DEFAULT_STD_SUBKEYSIZE): New.
15632 (DEFAULT_STD_SUBCURVE): New.
15633 (quick_generate_keypair): Use new macros here.
15634 (generate_keypair): Add arg "full" and fix call callers. Do not ask
15635 for keysize in non-full node.
15636 (ask_user_id): Add arg "full" and simplify for non-full mode.
15638 2014-09-26 Werner Koch <wk@gnupg.org>
15640 gpg: Add shortcut for setting key capabilities.
15641 + commit 7ff4ea2160e87a16bf701552d3b9c7ab1c42f9ec
15642 * g10/keygen.c (ask_key_flags): Add shortcut '='.
15643 * doc/help.txt (gpg.keygen.flags): New.
15645 2014-09-25 Werner Koch <wk@gnupg.org>
15647 gpg: Do not always print dashes in obsolete_option.
15648 + commit 20c6da50d4f6264d26d113d7de606971f719a0ca
15649 * g10/gpg.c (main): Pass option names to obsolete_option without
15651 * g10/misc.c (obsolete_option, obsolete_scdaemon_option): Print double
15652 dash only for command line options.
15654 2014-09-25 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
15656 gpg: Warn about (but don't fail) on scdaemon options in gpg.conf.
15657 + commit 371c2b14b0347209efd23b4e54e1981a12d7aeab
15658 * g10/gpg.c: Add config options that should belong in scdaemon.conf
15659 * g10/main.h, g10/misc.c (obsolete_scdaemon_option): New.
15661 2014-09-22 Werner Koch <wk@gnupg.org>
15663 speedo: Check that wget and gpgv are installed.
15664 + commit 59b6f6f16e095162358ac2001aeb2c058de2fd1e
15665 * build-aux/getswdb.sh: Check for required tools.
15667 speedo: Autodetect sha1sum tools.
15668 + commit 2427bc5bc76b00cfe790e1f370113f5b4199e8fa
15669 * build-aux/getswdb.sh: Add option --find-sha1sum.
15670 * build-aux/speedo.mk (check-tools): New phony target. Not yet used.
15671 (SHA1SUM): New var. Use it instead of sha1sum.
15673 gpg: Create default keyring with .kbx suffix.
15674 + commit bc2f5c1d1afbe8ba413e594639fd05f19df32f75
15675 * g10/keydb.c (maybe_create_keyring_or_box): Rename arg for clarity.
15676 (keydb_add_resource): Fix order of args to maybe_create_keyring_or_box
15677 and check and create .kbx.
15679 2014-09-20 Werner Koch <wk@gnupg.org>
15681 gpg: --delete-secret-key - check that a secret key exists.
15682 + commit 1d33d03f0bb576601f5eef1a548cbc519f251b17
15683 * g10/delkey.c (do_delete_key): Check availibility of a secret key.
15685 gpg: Make algorithm selection prompt for ECC more clear.
15686 + commit cf648fc5c8cb20bfea4fd303631ba311bbaf3659
15687 * g10/keygen.c (ask_algo): Change 9 to "ECC and ECC".
15689 2014-09-18 Werner Koch <wk@gnupg.org>
15691 Release 2.1.0-beta834.
15692 + commit 93f158df381af86036332c4314c2d4a64eab3e62
15695 speedo: Distribute needed files.
15696 + commit 72a16d80d4505aa0ff509aae41f848bbe42ed129
15697 * Makefile.am (EXTRA_DIST): Add speedo stuff.
15699 build: Enable gpgtar by default.
15700 + commit 345a8374f31e637a99e6438e527670cf6845ca05
15703 common: Do not build maintainer modules in non-maintainer mode.
15704 + commit 927db789c19cbe5656ff980841ee37dd3a8989e7
15705 * common/Makefile.am (module_maint_tests): Use only in maintainer
15707 (t_common_cflags): New.
15709 common: Remove superfluous statements.
15710 + commit cad181b5ece3ab6910575c82c731ce2b47271a09
15711 * common/exechelp-posix.c: Remove weak pragmas.
15712 * common/sexputil.c (make_canon_sexp_from_rsa_pk): Remove double
15715 g13: Avoid segv after pipe creation failure.
15716 + commit 6e7bcabd781a3ca9ad7dd90d962fb2a239feab4a
15717 * g13/call-gpg.c (gpg_encrypt_blob): Init some vars in case of an
15719 (gpg_decrypt_blob): Ditto.
15721 scd: Fix int/short mismatch in format string of app-p15.c.
15722 + commit b17e8bbf20239e840763f98d3e62f16efdc82ba3
15723 * scd/app-p15.c (parse_certid): Use snprintf and cast value.
15724 (send_certinfo): Ditto.
15725 (send_keypairinfo): Ditto.
15726 (do_getattr): Ditto.
15728 agent: Init a local variable in the error case.
15729 + commit f82a6e0f08725008c5bbf702a5f4c175ea09f01c
15730 * agent/pksign.c (do_encode_md): Init HASH on error.
15732 agent: Remove left over debug output.
15733 + commit 4f35ef499ac913036b7b69296a62afe8159b90b8
15734 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Remove debug
15737 agent: Silence compiler warning for a debug message.
15738 + commit ba6f8b3d9ec83b35c4f3839853567491fee2f99c
15739 * agent/call-pinentry.c (agent_query_dump_state): Use %p for
15742 sm: Silence compiler warnings.
15743 + commit 34b2e8c7dcb0edb28f99edbd788d73491334e3c0
15744 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Remove unused var I.
15745 * sm/certreqgen.c (proc_parameters): Init PUBLIC to avoid compiler
15748 gpg: Silence a compiler warning.
15749 + commit 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4
15750 * g10/parse-packet.c (enum_sig_subpkt): Replace hack.
15752 gpg: Replace a hash algo test function.
15753 + commit 327134934d79d141d92170ad3b4a6ef3cb718ee0
15754 * g10/gpg.c (print_mds): Replace openpgp_md_test_algo.
15756 speedo: Various fixes.
15757 + commit 2f065d7ab6c514013eb8504281f50284764c26ec
15758 * build-aux/speedo.mk: Take zlib and bzip2 from ftp.gnupg.org. Minor
15761 2014-09-17 Werner Koch <wk@gnupg.org>
15763 gpg: Print a warning if the subkey expiration may not be what you want.
15764 + commit ae3d1bbb65b65cf3c57bb14886be120f5e31635d
15765 * g10/keyedit.c (subkey_expire_warning): New.
15766 (keyedit_menu): Call it when needed.
15768 gpg: Improve passphrase caching.
15769 + commit 457bce5cd39146df047e4740162125c32c738789
15770 * agent/cache.c (last_stored_cache_key): New.
15771 (agent_get_cache): Allow NULL for KEY.
15772 (agent_store_cache_hit): New.
15773 * agent/findkey.c (unprotect): Call new function and try to use the
15776 * g10/revoke.c (create_revocation): Add arg CACHE_NONCE and pass to
15777 make_keysig_packet.
15778 (gen_standard_revoke): Add arg CACHE_NONCE and pass to
15780 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke with
15783 2014-09-12 Werner Koch <wk@gnupg.org>
15785 gpg: Use algorithm id 22 for EdDSA.
15786 + commit 83c2d2396cc9fa6bdd887a560830fc0f48b01b08
15787 * common/openpgpdefs.h (PUBKEY_ALGO_EDDSA): Change to 22.
15788 * g10/keygen.c (ask_curve): Reword the Curve25519 warning note.
15790 2014-09-11 Werner Koch <wk@gnupg.org>
15792 gpg: Stop early on bogus old style comment packets.
15793 + commit 3d250d21d36e8a0935b645f1ed5134ef9083530e
15794 * g10/parse-packet.c (parse_key): Take care of too short packets for
15795 old style commet packets.
15797 2014-09-10 Werner Koch <wk@gnupg.org>
15799 dirmngr: Support https for KS_FETCH.
15800 + commit 84419f42da0fd436a9e0e669730157e74ce38b77
15801 * dirmngr/ks-engine-hkp.c (cert_log_cb): Move to ...
15802 * dirmngr/misc.c (cert_log_cb): here.
15803 * dirmngr/ks-engine-http.c (ks_http_fetch): Support 307-redirection
15806 dirmngr: Fix the ks_fetch command for the http scheme.
15807 + commit 3b20cc21de86ac8a475bdefd3aebb02a12fb8d0b
15808 * common/http.c (http_session_ref): Allow for NULL arg.
15810 2014-09-08 Werner Koch <wk@gnupg.org>
15812 gpg: Fix memory leak in ECC encryption.
15813 + commit 98f65291d7abecc1e4d618125f33b6ce759e0892
15814 * g10/pkglue.c (pk_encrypt): Fix memory leak and streamline error
15817 2014-09-02 Werner Koch <wk@gnupg.org>
15819 gpg: Fix export of NIST ECC keys.
15820 + commit bf2fc12b83b45953f7afa403b8d91c36d0b50ec9
15821 * common/openpgp-oid.c (struct oidtable): New.
15822 (openpgp_curve_to_oid): Rewrite and allow OID as input.
15823 (openpgp_oid_to_curve): Make use of the new table.
15825 agent: Fix import of OpenPGP EdDSA keys.
15826 + commit afe85582ddc2ebc285728bf6417f8929fd0b3281
15827 * agent/cvt-openpgp.c (get_keygrip): Special case EdDSA.
15828 (convert_secret_key): Ditto.
15829 (convert_transfer_key): Ditto.
15830 (apply_protection): Handle opaque MPIs.
15832 (do_unprotect): Check FLAG_OPAQUE instead of FLAG_USER1 before
15833 unpacking an opaque mpi.
15835 2014-09-01 Kyle Butt <kylebutt@gmail.com>
15837 gpg: Fix export of ecc secret keys by adjusting check ordering.
15838 + commit 4054d86abcb7ad953ed9e988b1765cb9266faefd
15839 * g10/export.c (transfer_format_to_openpgp): Move the check against
15840 PUBKEY_MAX_NSKEY to after the ECC code adjusts the number of
15843 2014-09-01 Werner Koch <wk@gnupg.org>
15845 agent: Allow key unprotection using AES-256.
15846 + commit c913e09ebdbb1a1e9838a0a5897448841f5e9bc3
15847 * agent/protect.c (PROT_CIPHER): Rename to GCRY_CIPHER_AES128 for
15849 (do_decryption): Add args prot_cipher and prot_cipher_keylen. USe
15850 them instead of the hardwired values.
15851 (agent_unprotect): Change to use a table of protection algorithms.
15852 Add AES-256 variant.
15854 2014-08-28 Werner Koch <wk@gnupg.org>
15856 gpg: Do not show "MD5" and triplicated "RSA" in --version.
15857 + commit be98b5960ebd48929c399b0b91c95bfc0cb9749b
15858 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
15859 (build_list_md_test_algo): Ignore MD5.
15861 gpg: Do not show "MD5" and triplicated "RSA" in --version.
15862 + commit 40ad42dbe3c67d8103aedb6b584f4bedc5f93307
15863 * g10/gpg.c (build_list_pk_test_algo): Ignore RSA aliases
15864 (build_list_md_test_algo): Ignore MD5.
15866 2014-08-26 Werner Koch <wk@gnupg.org>
15868 gpg: Remove CAST5 from the default prefs and order SHA-1 last.
15869 + commit 15cfd9a3bcdd561091a28c8f989c616b87348463
15870 * g10/keygen.c (keygen_set_std_prefs): Update prefs.
15872 Switch to the libgpg-error provided estream.
15873 + commit 519305feb888b529c005b40445d041a088a2f8fc
15874 * configure.ac (NEED_GPG_ERROR_VERSION): Reguire 1.14.
15875 (GPGRT_ENABLE_ES_MACROS): Define.
15876 (estream_INIT): Remove.
15877 * m4/estream.m4: Remove.
15878 * common/estream-printf.c, common/estream-printf.h: Remove.
15879 * common/estream.c, common/estream.h: Remove.
15880 * common/init.c (_init_common_subsystems): Call gpgrt initialization.
15882 gpg: Allow for positional parameters in the passphrase prompt.
15883 + commit a731c22952278c12c601b73d7581fda3a15a4b5b
15884 * g10/passphrase.c (passphrase_get): Replace sprintf by xasprintf.
15886 2014-08-20 Werner Koch <wk@gnupg.org>
15888 gpg: Fix "can't handle public key algorithm" warning.
15889 + commit cb680c5ea540738692a5c74951802b0fdc658e85
15890 * g10/parse-packet.c (unknown_pubkey_warning): Check for encr/sign
15893 2014-08-19 Werner Koch <wk@gnupg.org>
15895 speedo: Get version numbers from online database.
15896 + commit 31649e72fd106a990614ce3cf720640a841ba722
15897 * build-aux/getswdb.sh: New.
15898 * build-aux/speedo.mk: Get release version numbers from swdb.lst.
15900 build: Create VERSION file via autoconf.
15901 + commit 4fc1c712e986f280057b1bce7ca4696ba6d95dfc
15902 * Makefile.am (dist-hook): Remove creation of VERSION.
15903 (EXTRA_DIST): Add VERSION.
15904 * configure.ac: Let autoconf create VERSION.
15906 2014-08-18 Werner Koch <wk@gnupg.org>
15908 gpg: Install the current release signing pubkey.
15909 + commit e5da80bc1888bf8801e69c9ff99f7f47550f7a09
15910 * g10/distsigkey.gpg: New.
15912 agent: Return NO_SECKEY instead of ENONET for PKSIGN and others.
15913 + commit 3981ff15f3c0829ba22cd37794353502d996683c
15914 * agent/pksign.c (agent_pksign_do): Replace ENONET by NO_SECKEY.
15915 * agent/findkey.c (agent_key_from_file): No diagnostic for NO_SECKEY.
15916 * agent/pkdecrypt.c (agent_pkdecrypt): Replace checking for ENOENT.
15918 kbx: Make user id and signature data optional for OpenPGP.
15919 + commit e4aa006e4807285ffdd881e4e05af3bc47c5c964
15920 * kbx/keybox-blob.c (_keybox_create_openpgp_blob): Remove restriction.
15922 gpg: Change default cipher for --symmetric from CAST5 to AES-128.
15923 + commit 57df1121c18b004dd763b35eabf7b51fc9e8ec38
15924 * g10/main.h (DEFAULT_CIPHER_ALGO): Chhange to AES or CAST5 or 3DES
15925 depending on configure option.
15926 * g10/gpg.c (main): Set opt.s2k_cipher_algo to DEFAULT_CIPHER_ALGO.
15928 yat2m: Support @set and @value.
15929 + commit 425d0750168f6b66a5d78a857cf21375a8f129eb
15930 * doc/yat2m.c (variablelist): New.
15931 (set_variable): New.
15932 (macro_set_p): Also check the variables.
15933 (proc_texi_cmd): Support the @value command.
15934 (parse_file): Support the @set command.
15935 (top_parse_file): Release variablelist.
15937 yat2m: Support the $* command for man page rendering.
15938 + commit 7e51ef0f77962f5fb215da53817caf28899ca190
15941 2014-08-17 Werner Koch <wk@gnupg.org>
15943 estream: Change license from GPL to LPGL.
15944 + commit af1196512f505e8a3a338f9b72394fa3585a5234
15945 * common/estream-printf.c, common/estream-printf.h: Change license.
15946 * common/estream.c, common/estream.h: Ditto.
15948 2014-08-14 Werner Koch <wk@gnupg.org>
15950 Release 2.1.0-beta783.
15951 + commit a13198d9bcee368a8de7a401feb017efc83ff795
15954 po: Update the German (de) translation.
15955 + commit fe9ff33b9dc8793957998341cf4bcf5e50827b41
15958 sm: Create homedir and lock empty keybox creation.
15959 + commit c4b60cdae8dbf68206fd105fd09adeb61a9dafe4
15960 * sm/gpgsm.h (opt): Add field "no_homedir_creation".
15961 * sm/gpgsm.c (main): Set it if --no-options is used.
15962 * sm/keydb.c (try_make_homedir): New. Similar to the one from
15964 (maybe_create_keybox): New. Similar to the one from g10/keydb.c.
15965 (keydb_add_resource): Replace some code by maybe_create_keybox.
15967 gpg: Screen keyserver responses.
15968 + commit c23c18c1543d1ff58f0f78baaa6a8e319c659ecb
15969 * g10/main.h (import_screener_t): New.
15970 * g10/import.c (import): Add screener callbacks to param list.
15971 (import_one): Ditto.
15972 (import_secret_one): Ditto.
15973 (import_keys_internal): Ditto.
15974 (import_keys_stream): Ditto.
15975 * g10/keyserver.c (struct ks_retrieval_screener_arg_s): New.
15976 (keyserver_retrieval_screener): New.
15977 (keyserver_get): Pass screener to import_keys_es_stream().
15979 scd: Minor changes to app-sc-hsm.
15980 + commit a61b28df1f29b1e306115282ec1ce580fa54945a
15981 * scd/app-sc-hsm.c: Re-indendet some parts and set some vars to NULL
15982 after xfree for improbed robustness.
15983 (read_ef_prkd): Replace serial operator by blocks for better
15985 (apply_PKCS_padding): Rewrite for easier auditing.
15986 (strip_PKCS15_padding): Ditto. Add stricter check on SRCLEN.
15988 gpg: Disable an MD5 workaround for pgp2 by default.
15989 + commit ae29b52119aa419989b773b2d6abb6e287dfc81b
15990 * g10/sig-check.c (do_check): Move some code to ...
15991 * g10/misc.c (print_md5_rejected_note): new function.
15992 * g10/mainproc.c (proc_tree, proc_plaintext): Enable MD5 workaround
15993 only if option --allow-weak-digest-algos is used.
15995 gpg: Remove options --pgp2 and --rfc1991.
15996 + commit 2b8d8369d59249b89526c18c5ac276e6445dc35e
15997 * g10/gpg.c (oRFC1991, oPGP2): Remove
15998 (opts): Remove --pgp2 and --rfc1991.
15999 * g10/options.h (CO_PGP2, CO_RFC1991): Remove. Remove all users.
16000 (RFC2440, PGP2): Remove. Remove all code only enabled by these
16002 * tests/openpgp/clearsig.test: Remove --rfc1991 test.
16004 build: Fix autogen.sh base version hack.
16005 + commit 49c9a958e0b786850309bca555d4465c97d337e1
16006 * autogen.sh <find-version>: Fix.
16008 gpg: Remove --compress-keys and --compress-sigs feature.
16009 + commit 71b55e91f02cdb65a8884892f71c4c7bf8a75247
16010 * g10/gpg.c (oCompressKeys, oCompressSigs): Remove.
16011 (opts): Turn --compress-keys and --compress-signs in NOPs.
16012 * g10/options.h (opt): Remove fields compress_keys and compress_sigs.
16013 * g10/export.c (do_export): Remove compress_keys feature.
16014 * g10/sign.c (sign_file): Remove compress_sigs feature.
16016 2014-08-13 Werner Koch <wk@gnupg.org>
16018 gpg: Add list-option "show-usage".
16019 + commit 7d0492075ea638607309b3ea6a792b0e95ea7d98
16020 * g10/gpg.c (parse_list_options): Add "show-usage".
16021 * g10/options.h (LIST_SHOW_USAGE): New.
16022 * g10/keyid.c (usagestr_from_pk): Add arg FILL. Change caller.
16023 * g10/keylist.c (list_keyblock_print): Print usage info.
16025 2014-08-12 Werner Koch <wk@gnupg.org>
16027 gpg: Make --with-colons work again for --search-keys.
16028 + commit a57c33c855c6757c8770529ee71f0f90744cd7a6
16029 * g10/keyserver.c (search_line_handler): Replace log_debug by
16032 2014-08-08 NIIBE Yutaka <gniibe@fsij.org>
16034 po: Update Japanese translation.
16035 + commit 2d9f76e07082fc231303ac2c6ae1aea3c98fa2e4
16038 2014-07-25 Werner Koch <wk@gnupg.org>
16040 scd: Minor and editorial changes to app-sc-hsm.c.
16041 + commit 2e936915cf2f830e60d974d607b08822645f5753
16042 * scd/app-sc-hsm.c (select_and_read_binary): Use SW_ macro.
16043 (parse_certid): Remove useless test.
16044 (send_certinfo, send_keypairinfo): Shrink malloc to the needed size.
16045 (do_getattr): Ditto.
16046 (verify_pin): Use SW_ macro.
16047 (do_decipher): Replace OFS variable and extend comment.
16049 scd: Add a new status word code.
16050 + commit e49c851ff54d5ecf856411bf6cdee721695ea172
16051 * scd/apdu.h (SW_REF_DATA_INV): New.
16052 * scd/apdu.c (apdu_strerror): Add string.
16054 2014-07-25 Andreas Schwier <andreas.schwier@cardcontact.de>
16056 scd: Support for SmartCard-HSM.
16057 + commit 8eb9224f32ddf1c9e1490c4d9688a177f8b6ae64
16058 * scd/app-sc-hsm.c: New.
16059 * scd/app.c (select_application, get_supported_applications): Register
16062 2014-07-25 Werner Koch <wk@gnupg.org>
16064 gpg: Switch to an EdDSA format with prefix byte.
16065 + commit 557cc11a605dd280d03c52d8b546deed8c4c714d
16066 * g10/keygen.c (gen_ecc): USe "comp" for EdDSA.
16068 2014-07-23 Werner Koch <wk@gnupg.org>
16070 agent: Show just one warning with all failed passphrase constraints.
16071 + commit b3378b3a56fc90ba8ae38e6298b23a378305af32
16072 * agent/genkey.c (check_passphrase_constraints): Build a final warning
16075 agent: Only one confirmation prompt for an empty passphrase.
16076 + commit a24510d53bb23e3a680ed2c306e576268c07060d
16077 * agent/genkey.c (check_passphrase_constraints): Moev empty passphrase
16078 check to the front.
16080 gpg: Add command --quick-gen-key.
16081 + commit ea186540db5b418bc6f6e5ca90337672c9981c88
16082 * g10/gpg.c (aQuickKeygen): New.
16083 * g10/misc.c (is_valid_user_id): New stub.
16084 * g10/keygen.c (quickgen_set_para): New.
16085 (quick_generate_keypair): New.
16087 common: Add cpr_get_answer_is_yes_def()
16088 + commit 75127bc4561787aa9bc1cf976658e20192446d7f
16089 * g10/cpr.c (cpr_get_answer_is_yes): Factor code out to ....
16090 (cpr_get_answer_is_yes_def): ...new.
16092 gpg: Make --quick-sign-key promote local key signatures.
16093 + commit 17404b2fccbc74c4f0b2364cc08e9dcc64175cf8
16094 * g10/keyedit.c (sign_uids): Promote local sigs in quick mode.
16096 2014-07-22 Werner Koch <wk@gnupg.org>
16098 scd: Do not use the pcsc-wrapper.
16099 + commit bc6b452129178658da7241903ca2174c79281752
16100 * scd/apdu.c (NEED_PCSC_WRAPPER): Do not define.
16101 * scd/Makefile.am (libexec_PROGRAMS): Remove gnupg-pcsc-wrapper
16102 (gnupg_pcsc_wrapper_SOURCES): Remove.
16103 (gnupg_pcsc_wrapper_LDADD): Remove.
16104 (gnupg_pcsc_wrapper_CFLAGS): Remove.
16106 2014-07-21 Werner Koch <wk@gnupg.org>
16108 gpg: Improve --list-packets output for faulty packets.
16109 + commit 5b34e347b612765f31061d077b7c343e08662ba9
16110 * g10/parse-packet.c: Add list_mode output for certain failures.
16112 gpg: Cap size of attribute packets at 16MB.
16113 + commit bab9cdd971f35ff47e153c00034c95e7ffeaa09a
16114 * g10/parse-packet.c (parse_attribute): Avoid xmalloc failure and cap
16117 2014-07-03 Werner Koch <wk@gnupg.org>
16119 Release 2.1.0-beta751.
16120 + commit 5ae34f574baca2b98a09fd982c941855558408e1
16123 gpg: Make show-uid-validity the default.
16124 + commit 5214d8f02bf65fb0a4af15ff80cf1369ccd4c167
16127 tests: Fix end-of-all-ticks test for Western locales.
16128 + commit 3533860ee316918dd47501c53e910bfd0032b39d
16129 * common/t-timestuff.c (test_timegm): Use timegm if available.
16130 (main): Set TX to UTC if timegm is not available.
16132 2014-07-03 Kristian Fiskerstrand <kf@sumptuouscapital.com>
16134 gpg: Spelling error.
16135 + commit b51af333bdf77c042c9fe748616e80d1f5e4d3f9
16138 2014-06-30 Werner Koch <wk@gnupg.org>
16140 gpg: Auto-create revocation certificates.
16141 + commit 03018ef9eec75e4d91ea53c95547a77dedef8f80
16142 * configure.ac (GNUPG_OPENPGP_REVOC_DIR): New config define.
16143 * g10/revoke.c (create_revocation): Add arg "leadin".
16144 (gen_standard_revoke): New.
16145 * g10/openfile.c (get_openpgp_revocdir): New.
16146 (open_outfile): Add MODE value 3.
16147 * g10/keyid.c (hexfingerprint): New.
16148 * g10/keygen.c (do_generate_keypair): Call gen_standard_revoke.
16150 estream: Fix minor glitch in "%.*s" format.
16151 + commit aa5b4392aac99382d96be94782ae745e0a42484a
16152 * common/estream-printf.c (pr_string): Take care of non-nul terminated
16155 gpg: Rearrange code in gen_revoke.
16156 + commit 3a01b220715b3d1a90d94353e4980ab5a1ea8f26
16157 * g10/revoke.c (gen_revoke): Factor some code out to ...
16158 (create_revocation): new.
16160 gpg: Create exported secret files and revocs with mode 700.
16161 + commit c434de4d83ccfaca8bde51de5c2ac8d9656e4e18
16162 * common/iobuf.c (direct_open): Add arg MODE700.
16163 (iobuf_create): Ditto.
16164 * g10/openfile.c (open_outfile): Add arg RESTRICTEDPERM. Change call
16165 callers to pass 0 for it.
16166 * g10/revoke.c (gen_desig_revoke, gen_revoke): Here pass true for new
16168 * g10/export.c (do_export): Pass true for new arg if SECRET is true.
16170 common: Minor code cleanup for a legacy OS.
16171 + commit 35fdfaa0b94342c53eb82eea155a37ad4009fa9f
16172 * common/iobuf.c (direct_open) [__riscos__]: Simply cpp conditionals.
16174 2014-06-27 Werner Koch <wk@gnupg.org>
16176 speedo: Fix the w32 installer name.
16177 + commit adad1872b448593275d8cae06dffe376bee067b5
16180 po: Update some strings of the French (fr) translation.
16181 + commit 1ef7870fc96f6dd8137e9bfabf9b06787f75dffd
16184 po: Update the German (de) translation.
16185 + commit c2e3eb98884785e6794dc79c1a53d75945f4c1ab
16188 agent: Adjust for changed npth_eselect under W32.
16189 + commit a1dff86da8ebaab6e154360f538ca9d43a6c4934
16190 * agent/gpg-agent.c (handle_connections) [W32]: Make events_set an
16191 unsigned int to match the changed prototype.
16193 dirmngr: Use the homedir based socket also under W32.
16194 + commit 5e1f9b5e1427688ac340f0829e02bece7f0caf9c
16195 * common/homedir.c (dirmngr_user_socket_name): Use same code for all
16198 2014-06-27 Yuri Chornoivan <yurchor@ukr.net>
16200 po: Update and enable Ukrainian (uk) translation.
16201 + commit 2c4025576105a9deb78e1cfb22c11af4af09c4fa
16204 Fix typos in messages.
16205 + commit e56a2d6a56d95c0f169506a8dc74a845c22b699d
16208 2014-06-27 Werner Koch <wk@gnupg.org>
16210 build: Remove unused options.
16211 + commit 2540a4b674a17b45ec33f43f26e830e74ff0afed
16212 * configure.ac: Remove option --build-agent-only.
16213 (FAKE_CURL, GPGKEYS_CURL): Remove check for cURL
16214 (GPGKEYS_MAILTO): Remove ac_subst but keep the currently unused
16216 (GPGKEYS_KDNS): Remove ac_subst.
16217 * autogen.rc (final_info): Remove suggestion to use the removed option
16220 2014-06-27 NIIBE Yutaka <gniibe@fsij.org>
16222 scd: Add pinpad support for REINER SCT cyberJack go.
16223 + commit 73ba75ad8b933beddd2c3f4b66937b56faa0a2d8
16224 * scd/ccid-driver.h (VENDOR_REINER, CYBERJACK_GO): New.
16225 * scd/ccid-driver.c (ccid_transceive_secure): Handle the case for
16226 VENDOR_REINER. Original work was by Alina Friedrichsen (tiny change).
16228 2014-06-27 Werner Koch <wk@gnupg.org>
16230 scd: Support reader Gemalto IDBridge CT30.
16231 + commit 24be0f24d3a9325a04de10ae0e5e277bf28a74fe
16232 * scd/ccid-driver.h (GEMPC_CT30): New product id.
16233 * scd/ccid-driver.c (parse_ccid_descriptor): Add quirk for that
16236 2014-06-26 Werner Koch <wk@gnupg.org>
16238 gpg: Limit keysize for unattended key generation to useful values.
16239 + commit 03f0b51fe454f8dbe77c302897f7a5899c4c5380
16240 * g10/keygen.c (gen_elg): Enforce keysize 1024 to 4096.
16241 (gen_rsa): Enforce keysize 1024 to 4096.
16242 (gen_dsa): Enforce keysize 768 to 3072.
16244 Enable DNS SRV records again.
16245 + commit c0d1e7fca95629e1cddd7d129fa51b9a6556cb70
16246 * configure.ac (GPGKEYS_HKP, GPGKEYS_FINGER): Remove ac_subst.
16247 (use_dns_srv): Make test work.
16249 agent: Fix export of RSA keys to OpenPGP.
16250 + commit 9a034acf8ab6f85c65ccc75a4fd7b8dd47b73e3a
16251 * agent/cvt-openpgp.c (convert_transfer_key): Fix sexp build format
16254 gpg,gpgsm: Simplify wrong_args function.
16255 + commit 572502bd2c0637429bca547ba882629640477495
16258 speedo: "make clean-gnupg" may not remove the source.
16259 + commit c029a184d6a1a96c6de234835fff97d4e946b19c
16260 * build-aux/speedo.mk (clean-$(1)): Take care of gnupg.
16262 gpgsm: Fix default config name.
16263 + commit 2480b0253166712a2f20b92f34c8e4c2db0fc26f
16266 2014-06-25 Werner Koch <wk@gnupg.org>
16268 doc: Improve the rendering of the manual.
16269 + commit b5f95c1b566f9530127f3f34e10d120a951cf428
16272 doc: Update for modern makeinfo.
16273 + commit f149e05427a370f5985bc3fb142370b043f19924
16274 * doc/texi.css: Remove.
16275 * doc/Makefile.am (AM_MAKEINFOFLAGS): Use --css-ref.
16277 gpg: Allow key-to-card upload for cert-only keys.
16278 + commit f171fd226e84311f92545ca0494771db07ba777d
16279 * g10/card-util.c (card_store_subkey): Allo CERT usage for key 0.
16281 2014-06-24 Werner Koch <wk@gnupg.org>
16283 doc: Add conditionals for GnuPG-1.
16284 + commit 2c8e00137a340d04f0836f75e138dd85f8c9eff7
16287 2014-06-20 Werner Koch <wk@gnupg.org>
16289 gpg: Make export of ECC keys work again.
16290 + commit f4fcaa29367daacfe0ca209fa83dfa8640ace276
16291 * agent/cvt-openpgp.c (convert_to_openpgp): Use the curve name instead
16292 of the curve parameters.
16293 * g10/export.c (canon_pubkey_algo): Rename to ...
16294 (canon_pk_algo): this. Support ECC.
16295 (transfer_format_to_openpgp): Expect curve name.
16297 gpg: Avoid infinite loop in uncompressing garbled packets.
16298 + commit d6ca407a27877174c10adfae9dc601bea996cf27
16299 * g10/compress.c (do_uncompress): Limit the number of extra FF bytes.
16301 2014-06-17 Kristian Fiskerstrand <kf@sumptuouscapital.com>
16303 gpg: Fix a couple of spelling errors.
16304 + commit 3f17b74aa57ac1ea2f3aa93dec4889778a21afeb
16307 2014-06-17 Werner Koch <wk@gnupg.org>
16309 speedo: Support building from dist-source generated tarball.
16310 + commit 47e63dc00169030b6ff01ab67e73e52aec1395db
16313 2014-06-13 Werner Koch <wk@gnupg.org>
16315 http: Print human readable GNUTLS status.
16316 + commit 5bf04522e353675e4c3eda118fee2580756704a2
16317 * common/http.c (send_gnutls_bye): Take care of EAGAIN et al.
16318 (http_verify_server_credentials): Print a human readable status.
16320 2014-06-12 Werner Koch <wk@gnupg.org>
16322 gpg: Improve the output of --list-packets.
16323 + commit d8314e31c58ea0827d0e2361dabcdf869ab08fce
16324 * g10/parse-packet.c (parse): Print packet meta info in list mode.
16326 2014-06-11 Werner Koch <wk@gnupg.org>
16328 speedo: Improve building of the w32 installer.
16329 + commit 6eeb31abee82cb2016bf054cd302af64f6dfdc2e
16330 * build-aux/speedo.mk: Change name of build directory to PLAY.
16331 Improve the dist-source target.
16332 * build-aux/speedo/w32/gdk-pixbuf-loaders.cache: Add a blank
16333 line (plus comment).
16334 * build-aux/speedo/w32/inst.nsi: Change name of file to gnupg-w32-*.
16335 Install more tools.
16337 2014-06-10 Werner Koch <wk@gnupg.org>
16339 speedo: Revamped speedo and include a w32 installer.
16340 + commit e06d5d1a3b4a5c446a27d64cd2da0e48ccec5601
16341 * build-aux/speedo/: New.
16342 * build-aux/speedo/w32/: New.
16344 build: Add more options to autogen.sh.
16345 + commit 0399d87f7aaf2f2126a63899004c5c7bffd4346b
16346 * autogen.sh: Add options --print-host and --print-build.
16348 w32: Fix build problem with dirmngr.
16349 + commit 141d69cb2a94a752244e89f49611923a2f184dfd
16350 * dirmngr/ks-engine-hkp.c (EAI_SYSTEM) [W32]: Add replacement
16353 gpg: Use more specific reason codes for INV_RECP.
16354 + commit 45ed901c466bd72118c2844069f566e190d847d6
16355 * g10/pkclist.c (find_and_check_key, build_pk_list): Use more specific
16356 reasons codes for INV_RECP.
16358 2014-06-06 Werner Koch <wk@gnupg.org>
16360 Improve the beta number generation.
16361 + commit b67e4e523e6d19d384e23c5bb03010caebd150e7
16362 * autogen.sh: Add option --find-version
16363 * configure.ac: Rework the setting of the mym4_ variables.
16365 2014-06-05 Werner Koch <wk@gnupg.org>
16367 Remove keyserver helper code.
16368 + commit 23712e69d3f97df9d789325f1a2f2f61e7d5bbb4
16369 * configure.ac: Remove keyserver helper related stuff.
16370 * Makefile.am (SUBDIRS): Remove keyserver.
16371 * keyserver/Makefile.am: Remove.
16373 gpg: Require confirmation for --gen-key with experimental curves.
16374 + commit 9c9e26d41e7d65711da8dbf1afa452254749621c
16375 * g10/keygen.c (ask_curve): Add arg both. Require confirmation for
16378 gpg: Auto-migrate existing secring.gpg.
16379 + commit 4f0625889b768eabdec52696bf15059a9e8d9c02
16380 * g10/migrate.c: New.
16381 * g10/import.c (import_old_secring): New.
16382 (import_one): Add arg silent.
16383 (transfer_secret_keys): Add arg batch.
16384 (import_secret_one): Add args batch and for_migration.
16385 * g10/gpg.c (main): Call migration function.
16387 2014-06-04 Werner Koch <wk@gnupg.org>
16389 gpgsm: Fix commit be07ed65.
16390 + commit 09a2d4ec74d352dcb4f006aab60b07bc4f5f1a37
16391 * sm/server.c (option_handler): Use "with-secret".
16393 2014-06-03 Werner Koch <wk@gnupg.org>
16395 Add new option --with-secret.
16396 + commit be07ed65e169a7ec3fbecdb1abf988fc0245d9ff
16397 * g10/gpg.c: Add option --with-secret.
16398 * g10/options.h (struct opt): Add field with_secret.
16399 * g10/keylist.c (public_key_list): Pass opt.with_secret to list_all
16401 (list_all, list_one): Add arg mark_secret.
16402 (list_keyblock_colon): Add arg has_secret.
16403 * sm/gpgsm.c: Add option --with-secret.
16404 * sm/server.c (option_handler): Add option "with-secret".
16405 * sm/gpgsm.h (server_control_s): Add field with_secret.
16406 * sm/keylist.c (list_cert_colon): Take care of with_secret. Also move
16407 the token string from the wrong field 14 to 15.
16409 gpgsm: New commands --export-secret-key-{p8,raw}
16410 + commit 0beec2f0f255a71f9d5a4a0729d0259f673e8838
16411 * sm/gpgsm.c: Add new commands.
16412 * sm/minip12.c (build_key_sequence): Add arg mode.
16413 (p12_raw_build): New.
16414 * sm/export.c (export_p12): Add arg rawmode. Call p12_raw_build.
16415 (gpgsm_p12_export): Ditto.
16416 (print_short_info): Print the keygrip.
16418 2014-06-02 Werner Koch <wk@gnupg.org>
16420 gpg: Avoid NULL-deref in default key listing.
16421 + commit 958e5f292fa3f8e127f54bc088c56780c564dcae
16422 * g10/keyid.c (hash_public_key): Take care of NULL keys.
16423 * g10/misc.c (pubkey_nbits): Ditto.
16425 gpg: Simplify default key listing.
16426 + commit f3249b1c4d0f2e9e0e8956042677e47fc9c6f6c0
16427 * g10/mainproc.c (list_node): Rework.
16429 gpg: Graceful skip reading of corrupt MPIs.
16430 + commit d9cde7ba7d4556b216f062d0cf92d60cbb204b00
16431 * g10/parse-packet.c (mpi_read): Change error message on overflow.
16433 gpgsm: Handle re-issued CA certificates in a better way.
16434 + commit 715285bcbc12c024dbd9b633805189c09173e317
16435 * sm/certchain.c (find_up_search_by_keyid): Consider all matching
16437 (find_up): Add some debug messages.
16439 gpgsm: Add a way to save a found state.
16440 + commit 42c043a8ad542c131917879c9b458f234b4bb645
16441 * kbx/keybox-defs.h (keybox_found_s): New.
16442 (keybox_handle): Factor FOUND out to above. Add saved_found.
16443 * kbx/keybox-init.c (keybox_release): Release saved_found.
16444 (keybox_push_found_state, keybox_pop_found_state): New.
16446 * sm/keydb.c (keydb_handle): Add field saved_found.
16447 (keydb_new): Init it.
16448 (keydb_push_found_state, keydb_pop_found_state): New.
16450 gpg: Fix bug parsing a zero length user id.
16451 + commit 99972bd6e9abea71f270284f49997de5f00208af
16452 * g10/getkey.c (get_user_id): Do not call xmalloc with 0.
16454 * common/xmalloc.c (xmalloc, xcalloc): Take extra precaution not to
16455 pass 0 to the arguments.
16457 2014-05-19 Werner Koch <wk@gnupg.org>
16459 dirmngr: Print certificates on failed TLS verification.
16460 + commit 9e1c99f8009f056c39a7465b91912c136b248e8f
16461 * dirmngr/ks-engine-hkp.c (cert_log_cb): New.
16462 (send_request): Set callback.
16464 http: Add callback to help logging of server certificates.
16465 + commit 45f15b2d767d4068f79fd5b123e9eeae08a0616d
16466 * common/http.c (http_session_s): Add field cert_log_cb.
16467 (http_session_set_log_cb): New.
16468 (http_verify_server_credentials): Call callback.
16470 2014-05-16 Werner Koch <wk@gnupg.org>
16472 keyserver: Improve support for hkps pools.
16473 + commit d2d9d4fb60e3f2160af6252335364d3aac4b7d17
16474 * dirmngr/ks-engine-hkp.c (hostinfo_s): Add fields cname, v4addr, and
16476 (create_new_hostinfo): Clear them.
16477 (my_getnameinfo): Add args numeric and r_isnumeric.
16478 (is_ip_address): New.
16479 (map_host): Add arg r_host. Rewrite the code to handle pools in a
16481 (ks_hkp_print_hosttable): Change format of help info output.
16482 (make_host_part): Add arg optional r_httphost.
16483 (send_request): Add arg httphost.
16484 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Get httphost and pass it to
16487 http: Allow overriding of the Host header.
16488 + commit 8b90d79818355b81ce223e1cb96cd0c939096fe2
16489 * common/http.c (http_open): Add arg httphost.
16490 (http_open_document): Pass NULL for httphost.
16491 (send_request): Add arg httphost. If given, use HTTPHOST instead of
16492 SERVER. Use https with a proxy if requested.
16493 (http_verify_server_credentials): Do not stop at the first error
16495 * dirmngr/ocsp.c (do_ocsp_request): Adjust call to http_open.
16496 * keyserver/curl-shim.c (curl_easy_perform): Ditto.
16497 * dirmngr/ks-engine-http.c (ks_http_fetch): Ditto.
16498 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Ditto.
16500 2014-05-14 Werner Koch <wk@gnupg.org>
16502 gpg: Fix uninitialized access to search descindex with gpg keyboxes.
16503 + commit 25036ec6abbc0c9d0003dcfe227724038c35a304
16504 * kbx/keybox-search.c (keybox_search): Add arg R_DESCINDEX. Chnage
16506 * g10/keydb.c (keydb_search): Always set DESCINDEX.
16508 w32: Make make_absfilename work with drive letters.
16509 + commit 71fa6a35107d4d4547eb9155d7c2612b6a6a16fb
16510 * common/stringhelp.c (do_make_filename) [HAVE_DRIVE_LETTERS]: Fix.
16512 gpg: Remove useless diagnostic in MDC verification.
16513 + commit 455a4a2212302c05095e736b127f647e95714fe7
16514 * g10/decrypt-data.c (decrypt_data): Do not distinguish between a bad
16515 MDC packer header and a bad MDC.
16517 gpg: Fix glitch entering a full expiration time.
16518 + commit b2945c451d3d3f25ba11a9fe88c6cbf3f88c2fb5
16519 * g10/keygen.c (ask_expire_interval): Get the current time after the
16522 2014-05-08 Werner Koch <wk@gnupg.org>
16524 agent: Fix import of non-protected gpg keys.
16525 + commit 4aeb02562c9db4b96366220b781e2b4fa2d6fd3b
16526 * agent/cvt-openpgp.c (do_unprotect): Return an s-exp also for
16527 non-protected keys.
16528 (convert_from_openpgp_main): Do not call agent_askpin for a
16531 Make more use of *_NAME macros.
16532 + commit cb2aeb4e1157fc0d7dc25d94115973422dc1a800
16533 * configure.ac (GPG_DISP_NAME, GPGSM_DISP_NAME): New.
16534 (GPG_AGENT_DISP_NAME, SCDAEMON_DISP_NAME): New.
16535 (DIRMNGR_DISP_NAME, G13_DISP_NAME): New.
16536 (GPGCONF_DISP_NAME): New.
16537 (SCDAEMON_SOCK_NAME): New.
16538 * common/argparse.c (show_help): Map description string.
16540 2014-05-08 NIIBE Yutaka <gniibe@fsij.org>
16542 agent: Fix auth key comment handling.
16543 + commit fb24808db9af9dfe36f9f6d7fc24e0b903ecc12c
16544 * agent/command-ssh.c (ssh_send_key_public): Handle the case with no
16547 2014-05-07 Werner Koch <wk@gnupg.org>
16549 Make -jN work again.
16550 + commit 57011da53e43f9c8a6c7e7314166c3e17ff8627a
16551 * common/Makefile.am ($(PROGRAMS)): New rule
16552 (t_http_LDADD): Use libcommontls.a without directory prefix.
16553 * dirmngr/Makefile.am ($(PROGRAMS)): New rule.
16555 gpg: Print the key algorithm/curve with signature info.
16556 + commit 359c643d747c890f73f68b42e0aeb896016f05fd
16557 * g10/mainproc.c (check_sig_and_print): Print the name and curve.
16559 gpg: Fix memleak in signature verification of bogus keys.
16560 + commit e73edfb1759d05121ea66f67c775e763bf47d737
16561 * g10/mainproc.c (check_sig_and_print): Factor common code out to ...
16562 (print_good_bad_signature): here.
16564 gpg: Mark experimental algorithms in the key listing.
16565 + commit 09055aa0f7993aaf4dcffdd80d8192945ae6080a
16566 * g10/keylist.c (list_keyblock_print): Remove duplicate curve name.
16567 Print a note for experimental algorithms.
16568 * g10/misc.c (print_pubkey_algo_note): Fix warning message.
16570 gpg: Finish experimental support for Ed25519.
16571 + commit 8fee6c1ce6d116fe7909dbe1184d95bc91305484
16572 * agent/cvt-openpgp.c (try_do_unprotect_arg_s): Add field "curve".
16573 (get_keygrip): Add and use arg CURVE.
16574 (convert_secret_key): Ditto.
16575 (convert_transfer_key): Ditto.
16576 (get_npkey_nskey): New.
16577 (prepare_unprotect): Replace gcrypt functions by
16578 get_npkey_nskey. Allow opaque MPIs.
16579 (do_unprotect): Use CURVE instead of parameters.
16580 (convert_from_openpgp_main): Ditto.
16581 (convert_to_openpgp): Simplify.
16582 * g10/import.c (one_mpi_from_pkey): Remove.
16583 (transfer_secret_keys): Rewrite to use the curve instead of the
16585 * g10/parse-packet.c (parse_key): Mark protected MPIs with USER1 flag.
16587 * common/openpgp-oid.c (openpgp_curve_to_oid): Allow the use of
16588 "NIST P-256" et al.
16589 * g10/keygen.c (ask_curve): Add arg ALGO.
16590 (generate_keypair): Rewrite the ECC key logic.
16592 * tests/openpgp/ecc.test: Provide the "ecc" passphrase.
16594 kbx: Add experimental support for EDDSA.
16595 + commit bdb9c2b314400da9155b8a924e22e486793dda89
16596 * kbx/keybox-openpgp.c (parse_key): Use algo constants and add
16597 experimental support for EdDSA.
16599 agent: Remove greeting message.
16600 + commit a63ed9875830e5b3b4d48b7d97d24c18de36b326
16601 * agent/gpg-agent.c (main): Remove greeting. Make --no-greeting a
16604 2014-05-06 Werner Koch <wk@gnupg.org>
16606 Use "samethread" mode keyword for some es_fopenmem.
16607 + commit 6477e51919ef97f0f9cc05d10cdc7aa2b89faafe
16608 * dirmngr/ks-engine-hkp.c (armor_data): Add mode keyword.
16609 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
16610 * scd/atr.c (atr_dump): Ditto.
16612 2014-05-05 Werner Koch <wk@gnupg.org>
16614 dirmngr: Add support for hkps keyservers.
16615 + commit 60e2fc7d38d8b37d1de944cf230e410c2ce37d5e
16616 * dirmngr/dirmngr.c: Include gnutls.h.
16617 (opts): Add --gnutls-debug and --hkp-cacert.
16618 (opt_gnutls_debug, my_gnutls_log): New.
16619 (set_debug): Set gnutls log level.
16620 (parse_rereadable_options): Register a CA file.
16621 (main): Init GNUTLS.
16622 * dirmngr/ks-engine-hkp.c (ks_hkp_help): Support hkps.
16623 (send_request): Ditto.
16625 http: Add reference counting to the session object.
16626 + commit ea0f5481f01eacedff264bf08144164aa989ec4d
16627 * common/http.c (http_session_t): Add field "refcount".
16628 (_my_socket_new, _my_socket_ref, _my_socket_unref): Add debug code.
16629 (send_request, my_npth_read, my_npth_write): Use SOCK object for the
16631 (http_session_release): Factor all code out to ...
16632 (session_unref): here. Deref SOCK.
16633 (http_session_new): Init refcount and transport ptr.
16634 (http_session_ref): New. Ref and unref all assignments.
16636 2014-05-02 Werner Koch <wk@gnupg.org>
16638 http: Add HTTP_FLAG_FORCE_TLS and http_get_tls_info.
16639 + commit 0e59195642eb26263b8e0b9200290538631d35cd
16640 * common/http.c (http_parse_uri): Factor code out to ...
16641 (parse_uri): here. Add arg FORCE_TLS.
16642 (do_parse_uri): Ditto. Implement flag.
16643 (http_get_tls_info): New.
16644 (http_register_tls_ca): Allow clearing of the list.
16645 (send_request): Use a default verification function.
16646 * common/http.h (HTTP_FLAG_FORCE_TLS): New.
16647 * common/t-http.c (main): Add several command line options.
16649 common: Fix test for openpgp_oid_is_ed25519.
16650 + commit 2def230231abd34f6012df284ab468321ffedc10
16651 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): Add correct
16654 http: Revamp TLS API.
16655 + commit 8412a5825c225c8ff14de3ffaad2e55e040b2eca
16656 * configure.ac (NEED_GNUTLS_VERSION): New.
16657 (HTTP_USE_GNUTLS, LIBGNUTLS_CFLAGS, LIBGNUTLS_LIBS): New ac_subst.
16659 * common/http.h (http_session_t): New.
16660 * common/http.c: Remove compatibility for gnutls < 3.0.
16661 (http_session_s): New.
16662 (cookie_s): Replace gnutls_session_t by http_session_t.
16663 (tls_callback, tls_ca_certlist): New variables.
16664 (my_socket_unref): Add preclose args.
16665 (my_npth_read, my_npth_write): New.
16666 (make_header_line): Fix bug using int* instead of char*.
16667 (http_register_tls_callback): New.
16668 (http_register_tls_ca): New.
16669 (http_session_new): New.
16670 (http_session_release): New.
16671 (http_get_header_names): New.
16672 (escape_data): Add hack to escape in forms mode.
16673 (send_request) [HTTP_USE_GNUTLS]: Support SNI.
16674 (send_request) [HTTP_USE_GNUTLS]: Fix use of make_header_line.
16675 (send_gnutls_bye): New.
16676 (cookie_close): Make use of preclose feature.
16677 (http_verify_server_credentials): New.
16678 (main) [TEST]: Remove test code.
16679 * common/t-http.c: New.
16680 * common/tls-ca.pem: New.
16681 * common/Makefile.am (tls_sources): New. Move http code to here.
16682 (libcommontls_a_SOURCES): New.
16683 (libcommontlsnpth_a_SOURCES): New.
16684 (EXTRA_DIST): Add tls-ca.pem
16685 (module_maint_tests): Add t-http.
16686 (t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.
16688 * dirmngr/Makefile.am (dirmngr_LDADD): Add libcommontlsnpth.
16690 common: Cleanup the use of USE_NPTH and HAVE_NPTH macros.
16691 + commit 84289e85c72ae58c321dfdb96816700a6b7f7122
16692 * configure.ac (HAVE_NPTH): New ac_define.
16693 * common/estream.c: Use USE_NPTH instead of HAVE_NPTH.
16694 * common/http.c: Ditto. Replace remaining calls to pth by npth calls.
16695 (connect_server): Remove useless _().
16696 * common/exechelp-posix.c, common/exechelp-w32.c
16697 * common/exechelp-w32ce.c: Use HAVE_PTH to include npth.h.
16698 * common/init.c (_init_common_subsystems): Remove call to pth_init.
16699 * common/sysutils.c (gnupg_sleep): Use npth_sleep.
16700 * scd/ccid-driver.c (my_sleep): Ditto.
16702 2014-04-30 Werner Koch <wk@gnupg.org>
16704 estream: Implement "samethread" mode keyword.
16705 + commit 8416c875a729426eae05ed1ca9f1ebcb933c246a
16706 * src/estream.c (estream_internal): Add field SAMETHREAD.
16707 (init_stream_lock, lock_stream, trylock_stream, unlock_stream): Use it.
16708 (parse_mode): Add arg SAMETHREAD and parse that keyword.
16709 (es_initialize): Rename to ...
16710 (init_stream_obj): this. Add arg SAMETHREAD.
16711 (es_create): Add arg SAMETHREAD. Call init_stream_lock after
16713 (doreadline): Call es_create with samethread flag.
16714 (es_fopen, es_mopen, es_fopenmem, es_fopencookie, do_fdopen)
16715 (do_fpopen, do_w32open): Implement "samethread" keyword.
16716 (es_freopen): Take samthread flag from old stream.
16717 (es_tmpfile): Call es)_create w/o samethread.
16719 estream: Fix deadlock in es_fileno.
16720 + commit ecea94461ed40f3f6ef662c2501e1d56ec284022
16721 * src/estream.c (es_fileno_unlocked): Call the unlocked functions.
16723 estream: Add debug code to the lock functions.
16724 + commit aeb81727c77dfea3bf5d2d689ffbdc897f2938a7
16725 * common/estream.c (dbg_lock_0, dbg_lock_1, dbg_lock_1): New.
16727 estream: Replace locking macros by functions.
16728 + commit 39e91a5f0a666aad2fef7a840b2cd03949bb1be4
16729 * common/estream.c: Replace most macros.
16731 2014-04-28 NIIBE Yutaka <gniibe@fsij.org>
16734 + commit 21dab64030c95a909767bf6d8f99e8476f9df8a2
16735 * agent/cvt-openpgp.c (get_keygrip, convert_secret_key)
16736 (convert_transfer_key): Follow newer (>= 1.6) libgcrypt API, which
16737 does not distinguish the detail.
16738 (do_unprotect, convert_from_openpgp_main): Don't call
16739 map_pk_openpgp_to_gcry, as it's the value of libgcrypt API already and
16740 not the value defined by OpenPGP.
16741 (convert_to_openpgp): It's "ecc".
16742 * agent/gpg-agent.c (map_pk_openpgp_to_gcry): Remove.
16743 * g10/call-agent.c (agent_pkdecrypt): Fix off-by-one error.
16744 * g10/pubkey-enc.c (get_it): Fix swapping the fields error.
16746 2014-04-22 Werner Koch <wk@gnupg.org>
16748 gpg: Pass --homedir to gpg-agent.
16749 + commit fdd938a5bbecb5b70f564ae3afb4e17905404bb2
16750 * agent/gpg-agent.c (main): Make sure homedir is absolute.
16751 * common/asshelp.c (lock_spawning): Create lock file with an absolute
16753 (start_new_gpg_agent): Use an absolute name for the socket and pass
16754 option --homedir to the agent.
16755 (start_new_dirmngr): Use an absolute name for the --homedir.
16757 common: Add functions make_absfilename and make_absfilename_try.
16758 + commit 71a54313adf7b57b7b27bb9ad07b142a34306260
16759 * common/stringhelp.c (do_make_filename): Add modes 2 and 3.
16760 (make_absfilename): New.
16761 (make_absfilename_try): New.
16763 common: Add function gnupg_getcwd.
16764 + commit 1a87edab6657a257876ab2f8790f2937feba7066
16765 * tools/gpg-connect-agent.c (gnu_getcwd): Move to ...
16766 * common/sysutils.c (gnupg_getcwd): .. here.
16767 * tools/gpg-connect-agent.c (get_var_ext): Use gnupg_getcwd.
16769 gpg: Print a warning if GKR has hijacked gpg-agent.
16770 + commit ffa39be5ebfc1059a737905ee317c9b6f3d2a77e
16771 * g10/call-agent.c (check_hijacking): New.
16772 (start_agent): Call it.
16773 (membuf_data_cb, default_inq_cb): Move more to the top.
16775 2014-04-17 Werner Koch <wk@gnupg.org>
16777 gpg: New %U expando for the photo viewer.
16778 + commit e184a11f94e2d41cd9266484542631bec23628b5
16779 * g10/photoid.c (show_photos): Set namehash.
16780 * g10/misc.c (pct_expando): Add "%U" expando.
16782 common: Add z-base-32 encoder.
16783 + commit b8a91ebf46a927801866e99bb5a66ab00651424e
16784 * common/zb32.c: New.
16785 * common/t-zb32.c: New.
16786 * common/Makefile.am (common_sources): Add zb82.c
16787 (module_tests): Add t-zb32.
16789 2014-04-16 Werner Koch <wk@gnupg.org>
16791 Two minor code cleanups and one NULL deref on error fix.
16792 + commit a34afa8f2053d75f276d6d28dbf1a43db0fd9768
16793 * common/estream.c (es_freopen): Remove useless check for STREAM.
16794 * kbx/keybox-blob.c (_keybox_create_x509_blob): Remove useless check
16796 * tools/sockprox.c (run_proxy): Do not fclose(NULL).
16798 2014-04-15 Werner Koch <wk@gnupg.org>
16800 gpg: Re-enable secret key deletion.
16801 + commit db3b528239c9d56bc71fd2283e07a3f1d91e4fd0
16802 * g10/call-agent.c (agent_delete_key): New.
16803 * g10/keydb.h (FORMAT_KEYDESC_DELKEY): New.
16804 * g10/passphrase.c (gpg_format_keydesc): Support new format.
16805 * g10/delkey.c (do_delete_key): Add secret key deletion.
16807 gpg: Re-indent a file.
16808 + commit d25d00b89efed461d344028d0e2e2be38cc77628
16809 * g10/delkey.c: Re-indent.
16810 (do_delete_key, delete_keys): Change return type top gpg_error_t.
16812 gpg: Fix regression in secret key export.
16813 + commit c4d983239a3f0a18c77f0a5aeba520a81a1b86e8
16814 * agent/cvt-openpgp.c (convert_to_openpgp): Fix use
16815 gcry_sexp_extract_param.
16816 * g10/export.c (do_export_stream): Provide a proper prompt to the
16819 gpg: Change pinentry prompt to talk about "secret key".
16820 + commit e549799db66be30cdd68a3e6cdca9c6a050466d1
16821 * g10/passphrase.c (gpg_format_keydesc): Add mode 2. Change strings.
16822 * g10/keydb.h (FORMAT_KEYDESC_NORMAL, FORMAT_KEYDESC_IMPORT)
16823 (FORMAT_KEYDESC_EXPORT): New. Use them for clarity.
16825 agent: Add command DELETE_KEY.
16826 + commit e3a4ff89a0b106e678bf9d0a4d47917123071140
16827 * agent/command.c (cmd_delete_key): New.
16828 * agent/findkey.c (modify_description): Add '%C' feature.
16829 (remove_key_file): New.
16830 (agent_delete_key): New.
16831 * agent/command-ssh.c (search_control_file): Make arg R_DISABLE
16834 * configure.ac: Require libgpg-error 1.13.
16836 2014-04-09 NIIBE Yutaka <gniibe@fsij.org>
16838 scd: EdDSA support.
16839 + commit 3132bd90dc8db9c7fd19ba201918e95891306dc5
16840 * scd/app-openpgp.c (KEY_TYPE_EDDSA, CURVE_ED25519): New.
16841 (struct app_local_s): Add eddsa.
16842 (get_algo_byte, store_fpr): Support KEY_TYPE_EDDSA.
16843 (get_ecc_key_parameters, get_curve_name): Support CURVE_ED25519.
16844 (send_key_attr, get_public_key): Support KEY_TYPE_EDDSA.
16845 (build_ecc_privkey_template): Rename as it supports both of
16847 (ecc_writekey): Rename. Support CURVE_ED25519, too.
16848 (do_writekey): Follow the change of ecc_writekey.
16849 (do_auth): Support KEY_TYPE_EDDSA.
16850 (parse_ecc_curve): Support CURVE_ED25519. Bug fix for other curves.
16851 (parse_algorithm_attribute): Bug fix for ECDH. Support EdDSA.
16853 2014-04-08 Werner Koch <wk@gnupg.org>
16855 dirmngr: Fix compiler warning.
16856 + commit db85feceaf43ebd6d44421bb14fcb60495804ae0
16857 * common/mischelp.h (JNLIB_GCC_HAVE_PUSH_PRAGMA): New.
16858 * dirmngr/dirmngr.c (handle_tick): Factor time check out to ...
16859 (time_for_housekeeping_p): new.
16861 gpgconf: Add command --launch.
16862 + commit b4cf4686f7349be9558217f20e51157398cd88a0
16863 * tools/gpgconf.c: Add command --launch.
16864 * tools/gpgconf-comp.c (gc_component_launch): New.
16866 scd: Silent compiler warnings about unused variables.
16867 + commit 36dfc37e438660632d3a2bf5d5526be9005fa8c5
16868 * scd/app-openpgp.c (build_ecdsa_privkey_template): Mark unused arg.
16869 (ecdh_writekey): Mark unused args.
16871 2014-04-08 NIIBE Yutaka <gniibe@fsij.org>
16873 agent: Support EdDSA.
16874 + commit 5ff6d0c25e6d0f422b17809b954e9e87cb137347
16875 * agent/pksign.c (agent_pksign_do): Handle EdDSA signature.
16877 g10: EdDSA support.
16878 + commit 40c3b0741e593d0658dda0c707c4f32e80648dd1
16879 * g10/keyid.c (keygrip_from_pk): Compute keygrip of EdDSA key.
16880 * g10/keygen.c (generate_subkeypair): Ed25519 is for EdDSA.
16881 * common/openpgp-oid.c (oid_ed25519): Update.
16883 2014-04-04 NIIBE Yutaka <gniibe@fsij.org>
16885 agent: EdDSA support for SSH.
16886 + commit 513c67b7461a2451247ef2b2fc64e0470a16edf1
16887 * agent/command-ssh.c (ssh_signature_encoder_eddsa): Signature is
16888 two 32-byte opaque data which should not be interpreted as number.
16890 2014-03-27 Werner Koch <wk@gnupg.org>
16892 gpg: Add commands --quick-sign-key and --quick-lsign-key.
16893 + commit b6786cc3ec0bb582323adf94c2ee624bcfbeb466
16894 * g10/gpg.c (main): Add commands --quick-sign-key and
16896 * g10/keyedit.c (sign_uids): Add args FP and QUICK.
16897 (keyedit_quick_sign): New.
16898 (show_key_with_all_names): Add arg NOWARN.
16900 Change some keyedit functions to allow printing to arbitrary streams.
16901 + commit 4f50ec98ddd57253cae66e2321f0cc98ee189a09
16902 * common/ttyio.c (tty_print_string): Add optional arg FP. Change all
16904 (tty_print_utf8_string2): Ditto.
16905 * g10/keyedit.c (show_prefs): Ditto.
16906 (show_key_with_all_names_colon): Ditto.
16907 (show_names): Ditto.
16908 * g10/keylist.c (print_revokers): Ditto.
16909 (print_fingerprint): Ditto.
16911 2014-03-23 Werner Koch <wk@gnupg.org>
16913 agent: Replace es_mopen by es_fopenmem for ssh.
16914 + commit 5c2a50cdc90e85b1fc380851ccfbe9186969b658
16915 * agent/command-ssh.c (ssh_read_key_public_from_blob): Use
16917 (ssh_handler_request_identities): Ditto.
16918 (ssh_request_process): Ditto.
16920 2014-03-22 Werner Koch <wk@gnupg.org>
16922 agent: Put ssh key type as comment into sshcontrol.
16923 + commit fc3e70c11342267c1062e4244955d19ecd72e0f6
16924 * agent/command-ssh.c (ssh_key_type_spec): Add field name.
16925 (ssh_key_types): Add human readable names.
16926 (add_control_entry): Add arg SPEC and print key type as comment.
16927 (ssh_identity_register): Add arg SPEC.
16928 (ssh_handler_add_identity): Add var SPEC and pass ssh_receive_key.
16930 agent: Support the Ed25519 signature algorithm for ssh.
16931 + commit 072432883ededa15bf35f80102e0572746ba4af1
16932 * agent/command-ssh.c (SPEC_FLAG_IS_EdDSA): New.
16933 (ssh_key_types): Add entry for ssh-ed25519.
16934 (ssh_identifier_from_curve_name): Move to the top.
16935 (stream_read_skip): New.
16936 (stream_read_blob): New.
16937 (ssh_signature_encoder_rsa): Replace MPIS array by an s-exp and move
16938 the s-exp parsing to here.
16939 (ssh_signature_encoder_dsa): Ditto.
16940 (ssh_signature_encoder_ecdsa): Ditto.
16941 (ssh_signature_encoder_eddsa): New.
16942 (sexp_key_construct): Rewrite.
16943 (ssh_key_extract): Rename to ...
16944 (ssh_key_to_blob): .. this and rewrite most of it.
16945 (ssh_receive_key): Add case for EdDSA.
16946 (ssh_convert_key_to_blob, key_secret_to_public): Remove.
16947 (ssh_send_key_public): Rewrite.
16948 (ssh_handler_request_identities): Simplify.
16949 (data_sign): Add rename args. Add new args HASH and HASHLEN. Make
16950 use of es_fopenmen and es_fclose_snatch. Remove parsing into MPIs
16951 which is now doe in the sgnature encoder functions.
16952 (ssh_handler_sign_request): Take care of Ed25519.
16953 (ssh_key_extract_comment): Rewrite using gcry_sexp_nth_string.
16955 agent: Cleanups to prepare implementation of Ed25519.
16956 + commit a77ed0f266d03e234027dda4de5a7f3dd6787b1e
16957 * agent/cvt-openpgp.c: Remove.
16958 (convert_to_openpgp): Use gcry_sexp_extract_param.
16959 * agent/findkey.c (is_eddsa): New.
16960 (agent_is_dsa_key, agent_is_eddsa_key): Check whether ecc means EdDSA.
16961 * agent/pksign.c (agent_pksign_do): Add args OVERRIDEDATA and
16964 * common/ssh-utils.c (is_eddsa): New.
16965 (get_fingerprint): Take care or EdDSA.
16967 2014-03-18 Werner Koch <wk@gnupg.org>
16969 tools: Fix NULL deref in gpg-connect-agent.
16970 + commit 6376227a31b3076321ce16ad626b333057bda53d
16971 * tools/gpg-connect-agent.c (handle_inquire): Do not pass NULL to
16974 dirmngr: Resurrect hosts in the HKP hosttable.
16975 + commit 6c058fac65c7e9d1ffb72686f0f02644f172da22
16976 * dirmngr/dirmngr.c (HOUSEKEEPING_INTERVAL): New.
16977 (housekeeping_thread): New.
16978 (handle_tick): Call new function.
16979 * dirmngr/ks-engine-hkp.c (RESURRECT_INTERVAL): New.
16980 (struct hostinfo_s): Add field died_at and set it along with the dead
16982 (ks_hkp_print_hosttable): Print that info.
16983 (ks_hkp_housekeeping): New.
16985 common: New function elapsed_time_string.
16986 + commit 04e304278c9302831bc81e7fe9049c588ead029a
16987 * common/gettime.c (elapsed_time_string): New.
16989 2014-03-17 Werner Koch <wk@gnupg.org>
16991 gpg: Reject signatures made with MD5.
16992 + commit f90cfe6b66269de0154d810c5cee1fe9a5af475c
16993 * g10/gpg.c: Add option --allow-weak-digest-algos.
16994 (main): Set option also in PGP2 mode.
16995 * g10/options.h (struct opt): Add flags.allow_weak_digest_algos.
16996 * g10/sig-check.c (do_check): Reject MD5 signatures.
16997 * tests/openpgp/defs.inc: Add allow_weak_digest_algos to gpg.conf.
16999 gpg: Make --auto-key-locate work again with keyservers.
17000 + commit 1e2e39c5758ffaf62f8bb85b4a86dc49c41f3a68
17001 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Allow exact search mode.
17002 * g10/keyserver.c (keyserver_import_name): Implement.
17003 (keyserver_get): Use exact mode for name based import.
17004 (keyserver_get): Add args R_FPR and R_FPRLEN. Change all callers.
17006 gpg: New mechanism "clear" for --auto-key-locate.
17007 + commit 1d642d3ca890daa65ee5dd949a00747da6b49015
17008 * g10/getkey.c (parse_auto_key_locate): Implement "clear".
17010 2014-03-14 Werner Koch <wk@gnupg.org>
17012 gpg-connect-agent: Make it easier to connect to the dirmngr.
17013 + commit 2223eaefaf53aa7217ac593b83e4294148a4db5d
17014 * tools/gpg-connect-agent.c: Add options --dirmngr and
17017 dirmngr: Make use of IPv4 and IPV6 more explicit.
17018 + commit 59b4fb5f4927908af06bb80ecd86adbf6e54ba14
17019 * common/http.c (connect_server): Handle the new flags.
17020 * common/http.h (HTTP_FLAG_IGNORE_IPv4, HTTP_FLAG_IGNORE_IPv4): New.
17021 * dirmngr/ks-engine-hkp.c (map_host): Add arg r_httpflags.
17022 (make_host_part): Ditto.
17023 (send_request): Add arg httpflags.
17024 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Handle httpflags.
17026 dirmngr: Do not use brackets around legacy IP addresses.
17027 + commit d7fbefeb82833db9eea8b15dc7889ecf0b7ffab4
17028 * dirmngr/ks-engine-hkp.c (my_getnameinfo): Change args to take a
17029 complete addrinfo. Bracket only v6 addresses. Change caller.
17031 gpg: Print the actual used keyserver address.
17032 + commit a401f768ca8e218eef7a5c87a8f99cb1d6b4aaeb
17033 * dirmngr/ks-engine-hkp.c (ks_hkp_search, ks_hkp_get): Print SOURCE
17035 * g10/call-dirmngr.c (ks_status_parm_s): New.
17036 (ks_search_parm_s): Add field stparm.
17037 (ks_status_cb): New.
17038 (ks_search_data_cb): Send source to the data callback.
17039 (gpg_dirmngr_ks_search): Change callback prototope to include the
17040 SPECIAL arg. Adjust all users. Use ks_status_cb.
17041 (gpg_dirmngr_ks_get): Add arg r_source and use ks_status_cb.
17042 * g10/keyserver.c (search_line_handler): Adjust callback and print
17043 "data source" disgnostic.
17044 (keyserver_get): Print data source diagnostic.
17046 dirmngr: Default to a user socket name and enable autostart.
17047 + commit 5d321eb00be0774418de1a05678ac0ec44d7193b
17048 * common/homedir.c (dirmngr_socket_name): Rename to
17049 dirmngr_sys_socket_name.
17050 (dirmngr_user_socket_name): New.
17051 * common/asshelp.c (start_new_dirmngr): Handle sys and user dirmngr
17053 * dirmngr/dirmngr.c (main): Ditto.
17054 * dirmngr/server.c (cmd_getinfo): Ditto.
17055 * sm/server.c (gpgsm_server): Ditto.
17056 * dirmngr/dirmngr-client.c (start_dirmngr): Likewise.
17057 * tools/gpgconf.c (main): Print "dirmngr-sys-socket" with --list-dirs.
17059 * configure.ac (USE_DIRMNGR_AUTO_START): Set by default.
17061 2014-03-12 Werner Koch <wk@gnupg.org>
17063 gpg: Add option --dirmngr-program.
17064 + commit 6dd5d99a61f24aff862ccba9f7410d7f1af87c05
17065 * g10/gpg.c: Add option --dirmngr-program.
17066 * g10/options.h (struct opt): Add field dirmngr_program.
17067 * g10/call-dirmngr.c (create_context): Use new var.
17069 * dirmngr/dirmngr.c: Include gc-opt-flags.h.
17070 (main): Remove GC_OPT_FLAG_*.
17071 * tools/gpgconf-comp.c (GC_OPT_FLAG_NO_CHANGE): Move macro to ...
17072 * common/gc-opt-flags.h: here.
17074 dirmngr: Detect dead keyservers and try another one.
17075 + commit fb56a273b1f2b3a99dc1d1a0850378ab7625e6b9
17076 * dirmngr/ks-action.c (ks_action_resolve): Rename var for clarity.
17077 (ks_action_search, ks_action_put): Ditto.
17078 (ks_action_get): Consult only the first server which retruned some
17081 * dirmngr/ks-engine-hkp.c (SEND_REQUEST_RETRIES): New.
17082 (map_host): Add arg CTRL and call dirmngr_tick.
17083 (make_host_part): Add arg CTRL.
17084 (mark_host_dead): Allow the use of an URL.
17085 (handle_send_request_error): New.
17086 (ks_hkp_search, ks_hkp_get, ks_hkp_put): Mark host dead and retry on
17089 http: Add a flag to the URL parser indicating a literal v6 address.
17090 + commit 3d9e0eb02ce2b2e153e25deb0fc4b27b45f5026a
17091 * common/http.h (struct parsed_uri_t): Add field v6lit.
17092 * common/http.c (do_parse_uri): Set v6lit.
17094 2014-03-12 NIIBE Yutaka <gniibe@fsij.org>
17096 scd: writekey support of ECC.
17097 + commit 781b94174310dceffa075719420b74b29fe41764
17098 * scd/app-openpgp.c (CURVE_SEC_P256K1, get_algo_byte): New.
17099 (store_fpr): Support ECC keys with varargs.
17100 (get_ecc_key_parameters, get_curve_name): Support secp256k1.
17101 (parse_ecc_curve): Likewise.
17102 (build_ecdsa_privkey_template, rsa_writekey, ecdsa_writekey): New.
17103 (ecdh_writekey): New. Not implemented yet.
17104 (do_writekey): Call rsa_writekey, ecdsa_writekey, or ecdh_writekey.
17105 (do_genkey): Follow the change of store_fpr.
17107 2014-03-11 Werner Koch <wk@gnupg.org>
17109 dirmngr: Put brackets around IP addresses in the hosttable.
17110 + commit 0b2cca807d5a4a3664145032271141da853e7bac
17111 * dirmngr/ks-engine-hkp.c (EAI_OVERFLOW): Provide a substitute.
17112 (my_getnameinfo): New.
17113 (map_host): Use it.
17115 dirmngr: Add command option to mark hosts as dead or alive.
17116 + commit a3dee2889106fcab112c1c96b32e04d8154875e7
17117 * dirmngr/server.c (cmd_killdirmngr): Factor some code out to ...
17118 (check_owner_permission): here.
17119 (cmd_keyserver): Add options --dead and --alive.
17120 * dirmngr/ks-engine-hkp.c (host_in_pool_p): New.
17121 (ks_hkp_mark_host): New.
17123 dirmngr: Make Assuan output of keyblocks easier readable.
17124 + commit 71b55c945542e695161ddbd783f87c5f534012a5
17125 * dirmngr/server.c (data_line_cookie_write): Print shorter data lines
17128 dirmngr: Fix HKP host selection code.
17129 + commit 3c35b46a32ac7584f3807b611cde78b199c527d6
17130 * dirmngr/server.c (cmd_keyserver): Add option --resolve and change
17131 --print-hosttable to --hosttable.
17132 * dirmngr/ks-action.c (ks_printf_help): New.
17133 (ks_action_resolve): New.
17134 * dirmngr/ks-engine-hkp.c (select_random_host): Fix selection.
17135 (ks_hkp_print_hosttable): Print to assuan stream.
17136 (map_host): Remove debug code. Add arg FORCE_SELECT. Return numeric
17137 IP addr if it can't be resolved.
17138 (make_host_part): Add arg FORCE_SELECT; change callers to pass false.
17139 (ks_hkp_resolve): New.
17141 List readline support in configure summary.
17142 + commit f30d8b018871495327cbf711b73b04278a34f3e1
17143 * m4/readline.m4: Set gnupg_cv_have_readline.
17144 * configure.ac: Add readline support to summary output.
17146 2014-03-11 NIIBE Yutaka <gniibe@fsij.org>
17148 agent: API change of agent_key_from_file.
17149 + commit ac5a1a3ccb7c3e6393bc83d73b545dec9b70e7d1
17150 * agent/findkey.c (agent_key_from_file): Always return S-expression.
17151 * agent/command.c (cmd_passwd): Distinguish by SHADOW_INFO.
17152 (cmd_export_key): Likewise. Free SHADOW_INFO.
17153 (cmd_keytocard): Likewise. Release S_SKEY.
17154 * agent/pkdecrypt.c (agent_pkdecrypt): Likewise.
17155 * agent/pksign.c (agent_pksign_do): Likewise. Use the S-expression to
17158 2014-03-10 Werner Koch <wk@gnupg.org>
17160 Backport useful code from fixes for bug 1447.
17161 + commit 57d26f39afb3c75e24a8d240d7af32b9d2b9775a
17162 * configure.ac: Cehck for inet_ntop.
17163 * m4/libcurl.m4: Provide a #define for the version of the curl
17166 scd: acquire lock in new_reader_slot.
17167 + commit 9ab9f414fb919f0bc87c301c3e36180715d0aa4e
17168 * scd/apdu.c (new_reader_slot): Acquire lock.
17169 (open_ct_reader, open_pcsc_reader_direct, open_pcsc_reader_wrapped)
17170 (open_ccid_reader, open_rapdu_reader): Release lock.
17171 (lock_slot, trylock_slot, unlock_slot): Move more to the top.
17173 Do not require libiconv for Android.
17174 + commit b278043a8f38e2706ccf617d2ac5661b33791d6b
17175 * configure.ac (require_iconv): New. Set to false for android.
17176 (AM_ICONV): Run only if required.
17178 2014-03-07 Werner Koch <wk@gnupg.org>
17180 dirmmgr: Use a portability wrapper for struct timeval.
17181 + commit feda379595e06583bc5b3610dec74890de29cb8e
17182 * dirmngr/dirmngr_ldap.c [W32]: Include winber.h.
17183 (my_ldap_timeval_t): New.
17185 Silence more warnings about unused vars and args.
17186 + commit 4387ecb11cdb2addf738eb922c1b9f14c6c76efc
17187 * dirmngr/cdblib.c (cdb_init) [W32]: Remove unused var.
17188 * dirmngr/dirmngr-client.c (start_dirmngr): s/int/assuan_fd_t/.
17189 * dirmngr/dirmngr.c (w32_service_control): Mark unused args.
17190 (call_real_main): New.
17191 (main) [W32]: Use new function to match prototype.
17192 (real_main) [W32]: Mark unused vars.
17193 (handle_signal) [W32]: Do not build the function at all.
17194 (handle_connections) [W32]: Do not define signo.
17195 * dirmngr/ldap-wrapper-ce.c (outstream_reader_cb): Remove used vars.
17196 * g10/tdbio.c (ftruncate) [DOSISH]: Define only if not yet defined.
17198 dirmngr: Simplify strtok macro.
17199 + commit 35266076e3452590931e58f188815859dff6de3c
17200 * dirmngr/ldap-url.c (ldap_utf8_strtok): Remove unused r3d arg.
17201 (ldap_str2charray): Remove lasts.
17203 Use attribute __gnu_printf__ also in estream header files.
17204 + commit 72133b54de89e593d8193b106e9369cf90d2e1c0
17205 * common/estream-printf.h: Use attribute gnu_printf.
17206 * common/estream.h: Ditto.
17208 Use attribute __gnu_printf__ with our estream-printf functions.
17209 + commit 36372dcb2f75a659b7ace0e9c46f07bb431d009c
17210 * common/mischelp.h (JNLIB_GCC_A_PRINTF): Use __gnu_printf__
17211 (JNLIB_GCC_A_NR_PRINTF): Ditto.
17213 w32: Silence warnings about unused vars.
17214 + commit 094aa2589e3920d400be93ae2823a6c4b23db623
17215 * agent/gpg-agent.c (main) [W32]: Mark unused vars.
17216 * sm/gpgsm.c (run_protect_tool) [W32]: Ditto.
17217 * g10/trustdb.c (check_regexp) [DISABLE_REGEX]: Ditto.
17218 * scd/scdaemon.c (main) [W32]: Ditto.
17219 (handle_connections) [W32]: Ditto.
17220 (handle_signal) [W32]: Do not build the function at all.
17221 * scd/apdu.c (pcsc_send_apdu_direct): Ditto.
17222 (connect_pcsc_card): s/long/pcsc_dword_t/.
17223 (open_pcsc_reader_direct): Remove var listlen.
17225 w32: Fix a potential problem in gpgconf's gettext.
17226 + commit a0fc42598f51ef4a958fc3c2fed7f4b8df2da3fd
17227 * tools/gpgconf-comp.c (my_dgettext) [USE_SIMPLE_GETTEXT]: Make sure
17228 to return something even DOMAIN is not given.
17230 Silence several warnings when building under Windows.
17231 + commit 3032fc3ad78ac9ed857570844547afed520d635a
17232 * agent/call-scd.c (start_scd): Replace int by assuan_fd_t.
17233 (start_pinentry): Ditto.
17234 * common/asshelp.c (start_new_gpg_agent): Replace int by assuan_fd_t.
17235 * common/dotlock.c (GNUPG_MAJOR_VERSION): Include stringhelp.h for
17236 prototypes on Windows and some other platforms.
17237 * common/logging.c (fun_writer): Declare addrbuf only if needed.
17238 * g10/decrypt.c (decrypt_message_fd) [W32]: Return not_implemented.
17239 * g10/encrypt.c (encrypt_crypt) [W32]: Return error if used in server
17241 * g10/dearmor.c (dearmor_file, enarmor_file): Replace GNUPG_INVALID_FD
17242 by -1 as temporary hack for Windows.
17243 * g10/export.c (do_export): Ditto.
17244 * g10/revoke.c (gen_desig_revoke, gen_revoke): Ditto.
17245 * g10/sign.c (sign_file, clearsign_file, sign_symencrypt_file): Ditto.
17246 * g10/server.c (cmd_verify, gpg_server) [W32]: Return an error.
17248 w32: Include winsock2.h to silence warnings.
17249 + commit cb0dcc340836a64e2d33b27f1be7bc888c084f12
17252 gl: Avoid warning about shadowing an arg.
17253 + commit 84fd36f8baa2b800ea47ff74935f5aaf0e55c299
17254 * gl/setenv.c (KNOWN_VALUE): s/value/_v/.
17256 common: Fix build problem with Sun Studio compiler.
17257 + commit 0fc71f7277c6f833f838bbd384f1a22d0c333e8e
17258 * common/estream.c (ESTREAM_MUTEX_UNLOCK): Use int dummy dummy
17260 (ESTREAM_MUTEX_INITIALIZE): Ditto.
17262 gpg: Do not require a trustdb with --always-trust.
17263 + commit d8f0b83e4f04641e5e9adbdd8abada15380f981c
17264 * g10/tdbio.c (tdbio_set_dbname): Add arg R_NOFILE.
17265 * g10/trustdb.c (trustdb_args): Add field no_trustdb.
17266 (init_trustdb): Set that field.
17267 (revalidation_mark): Take care of a nonexistent trustdb file.
17268 (read_trust_options): Ditto.
17269 (tdb_get_ownertrust): Ditto.
17270 (tdb_get_min_ownertrust): Ditto.
17271 (tdb_update_ownertrust): Ditto.
17272 (update_min_ownertrust): Ditto.
17273 (tdb_clear_ownertrusts): Ditto.
17274 (tdb_cache_disabled_value): Ditto.
17275 (tdb_check_trustdb_stale): Ditto.
17276 (tdb_get_validity_core): Ditto.
17277 * g10/gpg.c (main): Do not create a trustdb with most commands for
17278 trust-model always.
17280 gpg: Print a "not found" message for an unknown key in --key-edit.
17281 + commit dfb25d47a9fcfd7c7c084ea58744724cd5315086
17282 * g10/keyedit.c (keyedit_menu): Print message.
17284 gpg: Protect against rogue keyservers sending secret keys.
17285 + commit db1f74ba5338f624f146a3cb41a346e46b15c8f9
17286 * g10/options.h (IMPORT_NO_SECKEY): New.
17287 * g10/keyserver.c (keyserver_spawn, keyserver_import_cert): Set new
17289 * g10/import.c (import_secret_one): Deny import if flag is set.
17291 agent: Fix UPDATESTARTUPTTY for ssh.
17292 + commit 90688b29f3701f4d3e2a5a49c5544fe8d2a84b2d
17293 * agent/command-ssh.c (setup_ssh_env): Fix env setting.
17295 gpgv: Init Libgcrypt to avoid syslog warning.
17296 + commit 7c4bfa599fa69c3a942c8deea83737a4c5a0806e
17297 * g10/gpgv.c (main): Check libgcrypt version and disable secure
17300 Improve libcurl detection.
17301 + commit 5ca482d5f949444ffd453de158ee186ab07fc9b6
17302 * m4/libcurl.m4: Do not use AC_PATH_PROG if --with-libcurl as been
17303 given. Suggested by John Marshall.
17305 gpg: Remove legacy keyserver examples from the template conf file.
17306 + commit 0ab752cc2d46bbd0077bed889676169b7aeb1eb6
17307 * g10/options.skel: Update.
17309 (cherry picked from commit f3c5cc8bcd37e38b5d65db6a50466e22d03d1f0c)
17311 w32: Define WINVER only if needed.
17312 + commit 76b1940ad6f5f058c4a6bec35902da9f6d4e27b0
17313 * common/sysutils.c (WINVER): Define only if less that 5.0.
17315 w32: Remove unused code.
17316 + commit 63b7658a29809249d7aeb0423bf8c5a693eee0c7
17317 * jnlib/w32-reg.c (write_w32_registry_string): Remove.
17319 agent: Make --allow-mark-trusted the default.
17320 + commit 9942a149ff2ab919c1b2916c7bc347e578a56b14
17321 * agent/gpg-agent.c (opts, main): Add option --no-allow-mark-trusted.
17322 Put this option into the gpgconf-list.
17323 (main): Enable opt.allow_mark_trusted by default.
17324 * tools/gpgconf-comp.c (gc_options_gpg_agent): Replace
17325 allow-mark-trusted by no-allow-mark-trusted.
17327 * agent/trustlist.c (agent_marktrusted): Always set the "relax" flag.
17329 ssh: Add support for Putty.
17330 + commit 5105c8d2d344fd7301d456d8c13c7e90a54f7e98
17331 * agent/gpg-agent.c [W32]: Include Several Windows header.
17332 (opts): Change help text for enable-ssh-support.
17333 (opts, main): Add option --enable-putty-support
17334 (putty_support, PUTTY_IPC_MAGIC, PUTTY_IPC_MAXLEN): New for W32.
17335 (agent_init_default_ctrl): Add and asssert call.
17336 (putty_message_proc, putty_message_thread): New.
17337 (handle_connections) [W32]: Start putty message thread.
17338 * common/sysutils.c (w32_get_user_sid): New for W32 only
17339 * tools/gpgconf-comp.c (gc_options_gpg_agent): Add
17340 --enable-ssh-support and --enable-putty-support. Make the
17341 configuration group visible at basic level.
17342 * agent/command-ssh.c (serve_mmapped_ssh_request): New for W32 only.
17344 agent: Fix binary vs. text mode problem in ssh.
17345 + commit 179012ddd48e63ca83e8f5c24537a2db45c3e122
17346 * agent/command-ssh.c (file_to_buffer)
17347 (ssh_handler_request_identities): Open streams in binary mode.
17348 (start_command_handler_ssh): Factor some code out to ..
17349 (setup_ssh_env): new function.
17351 Fix syntax error for building on APPLE.
17352 + commit 4ad123d6fe341da7768e43360375e17fa89e8e0d
17353 * scd/pcsc-wrapper.c [__APPLE__]: Fix syntax error.
17355 Ignore obsolete option --disable-keypad.
17356 + commit d2a6be24af0bf220bb448fdd50c0196faddee0f4
17357 * scd/scdaemon.c (opts): Ignore --disable-keypad.
17359 Allow marking options as ignored.
17360 + commit 8fc9de8d6bf663f7c8419b42dab01f590a694d59
17361 * jnlib/argparse.h (ARGPARSE_OPT_IGNORE): New.
17362 (ARGPARSE_TYPE_MASK): New, for internal use.
17363 (ARGPARSE_ignore): New.
17364 * jnlib/argparse.c (optfile_parse, arg_parse): Replace remaining
17365 constants by macros.
17366 (optfile_parse): Implement ARGPARSE_OPT_IGNORE.
17367 (arg_parse): Exclide ignore options from --dump-options.
17369 2014-03-06 Werner Koch <wk@gnupg.org>
17371 common: Fix recent commit 55656208.
17372 + commit 191e32026f02054b1edb4f02536875462fd0b6b3
17373 * common/membuf.c (get_membuf_shrink): Fix use of LEN.
17375 2014-03-06 NIIBE Yutaka <gniibe@fsij.org>
17378 + commit 5ed8e9335fb886d7ddc86728d8481e5e47485531
17379 * g10/trust.c (register_trusted_keyid, register_trusted_key)
17380 (update_ownertrust): Call functions with tdb_.
17382 2014-02-26 Werner Koch <wk@gnupg.org>
17384 common: Replace all macros in strusage() returned strings.
17385 + commit 0f38c87f427a155ab5684e18e3b73956f81edfab
17386 * common/argparse.c (writechar): Remove.
17387 (writestrings): Simplify.
17388 (strusage): Use map_static_macro_string.
17390 common: New function map_static_macro_string.
17391 + commit c72762f9acf3eef5c466ba76e895d7654df12ff7
17392 * common/mapstrings.c: New.
17393 * common/t-mapstrings.c: New.
17394 * common/t-support.h (DIM, DIMof): Define if not defined.
17395 * common/Makefile.am: Add new files.
17397 common: New function get_membuf_shrink.
17398 + commit 556562086acd2bc2f8e3aa3126ebf155715e042b
17399 * common/membuf.c (get_membuf_shrink): New.
17401 agent: Fixed unresolved symbol under Windows.
17402 + commit 55c3e5f448c26360eda31e05b1f62249119f73d9
17403 * agent/gpg-agent.c (main): s/ttyname/gnupg_ttyname/.
17405 common: Require an installed libiconv.
17406 + commit 380a2aa18e0c048cfefa1cb4102dfbf902a1962b
17407 * common/utf8conv.c: Remove dynload.h.
17408 (load_libiconv): Remove. Remove all calls to it.
17410 2014-02-10 Werner Koch <wk@gnupg.org>
17412 gpg: Silent more compiler warnings due to some configure options.
17413 + commit 47e6b6bad1dff493f4102a5549a7bb54466684c2
17414 * g10/keygen.c (generate_keypair, gen_card_key)
17415 (gen_card_key_with_backup) [!ENABLE_CARD_SUPPORT]: Mark unused args.
17417 tests: Avoid segv if dns cert lookup is not configured.
17418 + commit 672f4aeba8bf55839911e1fe805af6b2873853f7
17419 * common/dns-cert.c (get_dns_cert) [!USE_DNS_CERT]: Reset return args.
17421 gpg: Cleanup compiler warnings due to some configure options.
17422 + commit 7901c5c2a3b7b24e9a4eaab590b0a54e9695c3e4
17423 * g10/photoid.c (show_photos) [DISABLE_PHOTO_VIEWER]: Mark args as
17425 * tools/gpgconf-comp.c (my_dgettext): Mark DOMAIN as unused if NLS is
17428 gpg: Allow building without any trust model support.
17429 + commit 62fb86c6589f7f74dad4741db31b3aefa0848420
17430 * configure.ac: Add option --disable-trust-models
17431 (NO_TRUST_MODELS): New ac_define and am_conditional.
17432 * g10/Makefile.am (trust_source): New.
17433 (gpg2_SOURCES): Factor some files out to above. Add trust.c.
17434 * g10/gpg.c [NO_TRUST_MODELS]: Disable options --export-ownertrust,
17435 --import-ownertrust, --update-trustdb, --check-trustdb, --fix-trustdb,
17436 --list-trustdb, --trustdb-name, --auto-check-trustdb,
17437 --no-auto-check-trustdb, and --force-ownertrust.
17438 (parse_trust_model) [NO_TRUST_MODELS]: Do not build.
17439 (main) [NO_TRUST_MODELS]: Set trust_model to always and exclude all
17440 trustdb related option code.
17441 * g10/keyedit.c (cmds) [NO_TRUST_MODELS]: Remove menu items "trust",
17442 "enable", and "disable".
17443 * g10/keylist.c (public_key_list) [NO_TRUST_MODELS]: Do not print
17446 * g10/trust.c: New.
17447 * g10/trustdb.c (struct key_item): Move to trustdb.h.
17448 (register_trusted_keyid): Rename to tdb_register_trusted_keyid.
17449 (register_trusted_key): Rename to tdb_register_trusted_key.
17450 (trust_letter, uid_trust_string_fixed, trust_value_to_string)
17451 (string_to_trust_value, get_ownertrust_with_min, get_ownertrust_info)
17452 (get_ownertrust_string, get_validity_info, get_validity_string)
17453 (clean_sigs_from_uid, clean_uid_from_key, clean_key): Move to trust.c.
17454 (mark_usable_uid_certs): Move to trust.c and make global.
17455 (is_in_klist): Move as inline to trustdb.h.
17456 (trustdb_check_or_update): Rename to tdb_check_or_update
17457 (revalidation_mark): Rename to tdb_revalidation_mark.
17458 (get_ownertrust): Rename to tdb_get_ownertrust.
17459 (get_min_ownertrust): Rename to tdb_get_min_ownertrust.
17460 (update_ownertrust): Rename to tdb_update_ownertrust.
17461 (clear_ownertrusts): Rename to tdb_clear_ownertrusts.
17462 (cache_disabled_value): Rename to tdb_cache_disabled_value.
17463 (check_trustdb_stale): Rename to tdb_check_trustdb_stale.
17464 (get_validity): Rename to tdb_get_validity_core, add arg MAIN_PK and
17465 factor some code out to ...
17466 * trust.c (get_validity): ...new.
17467 (check_or_update_trustdb): New wrapper.
17468 (revalidation_mark): New wrapper.
17469 (get_ownertrust): New wrapper.
17470 (get_ownertrust_with_min): New wrapper.
17471 (update_ownertrust): New wrapper.
17472 (clear_ownertrusts): New wrapper.
17473 (cache_disabled_value): New wrapper.
17474 (check_trustdb_stale): New wrapper.
17476 * tests/openpgp/defs.inc (opt_always): New. Use in all tests instead
17479 tests: Handle disabled algorithms.
17480 + commit ea7f895319e89150e5613b6d20f21410f99d6f22
17481 * tests/openpgp/mds.test: Skip disabled algorithms.
17482 * tests/openpgp/signencrypt-dsa.test: Ditto.
17483 * tests/openpgp/sigs-dsa.test: Ditto.
17485 2014-02-07 Werner Koch <wk@gnupg.org>
17487 Silence annoying ABI change warning.
17488 + commit 111f082487dc7a2a50375e24203de31b000e0dea
17489 * configure.ac [GCC]: Pass -Wno-psabi for gcc >= 4.6. Avoid some gcc
17490 option tests for gcc >= 4.6
17492 Allow disabling of card support.
17493 + commit 8e0ba4ecd3897c748ac2f06028406604ae7baced
17494 * configure.ac: Add option --disable-card-support. Also add
17495 am_conditional and do not build scd if card support is enabled.
17497 gpg: List only available algos in --gen-key.
17498 + commit 357b142e7225e5c7f1e0f9768f48e833d5804b6a
17499 * g10/keygen.c (ask_algo, ask_curve): Take care of GPG_USE_<algo>.
17501 gpg: Change --print-mds to output enabled OpenPGP algos.
17502 + commit 54a11729fb71ba06e318fe229d0a230686ed4dc8
17503 * g10/gpg.c (print_mds): Use opengpg_md_test_algo. Test also for MD5
17506 gpg: Avoid compiler warnings for disabled algos.
17507 + commit aa76a1660613ece3fc0d774856abcbe0bb158300
17508 * g10/misc.c (map_cipher_openpgp_to_gcry): Add case for disabled algo.
17509 (openpgp_pk_test_algo2): Ditto.
17510 (map_md_openpgp_to_gcry): Ditto.
17512 2014-02-05 Werner Koch <wk@gnupg.org>
17514 gpg: Change format for the key size in --list-key and --edit-key.
17515 + commit 2c814806d759e5cf611200e8210137cf8502a672
17516 * g10/gpg.c (oLegacyListMode, opts, main): Add --legacy-list-mode.
17517 * g10/options.h (struct opt): Add field legacy_list_mode.
17518 * g10/keydb.h (PUBKEY_STRING_SIZE): New.
17519 * g10/keyid.c (pubkey_string): New.
17520 * g10/import.c (import_one, import_secret_one): Use pubkey_string.
17521 * g10/keylist.c (print_seckey_info): Ditto.
17522 (print_pubkey_info, print_card_key_info): Ditto.
17523 (list_keyblock_print): Ditto.
17524 * g10/mainproc.c (list_node): Ditto.
17525 * g10/pkclist.c (do_edit_ownertrust, build_pk_list): Ditto.
17526 * g10/keyedit.c (show_key_with_all_names): Ditto. Also change the
17528 (show_basic_key_info): Ditto.
17529 * common/openpgp-oid.c (openpgp_curve_to_oid): Also allow "ed25519".
17530 (openpgp_oid_to_curve): Downcase "ed25519"
17532 2014-01-31 Werner Koch <wk@gnupg.org>
17534 gpg: Add configure options to disable algorithms.
17535 + commit 2ba818de1aa311ba8eb27012d69e93dd16e7d4ed
17536 * acinclude.m4 (GNUPG_GPG_DISABLE_ALGO): New.
17537 * configure.ac: Add --enable-gpg-* options to disable non MUS
17539 * g10/misc.c (map_cipher_openpgp_to_gcry): Implement these options.
17540 (openpgp_pk_test_algo2): Ditto.
17541 (map_md_openpgp_to_gcry): Ditto.
17542 (openpgp_cipher_test_algo, openpgp_md_test_algo): Simplify.
17544 gpg: Improve --version algo info output.
17545 + commit 71540d40414dc8b304b45dc476e5e5650a2db20a
17546 * g10/misc.c (openpgp_pk_algo_name): Return a different string for
17547 each ECC algorithm.
17548 * g10/gpg.c (build_list_pk_test_algo): New wrapper to cope with the
17549 different algo type enums.
17550 (build_list_pk_algo_name): Ditto.
17551 (build_list_cipher_test_algo): Ditto.
17552 (build_list_cipher_algo_name): Ditto.
17553 (build_list_md_test_algo): Ditto.
17554 (build_list_md_algo_name): Ditto.
17555 (my_strusage): Use them.
17556 (list_config): Ditto. Add "pubkeyname".
17557 (build_list): Add letter==1 hack.
17559 gpg: Start using OpenPGP digest algo ids.
17560 + commit bf50604a0d50b974c1d4b8ccf5d774489f996cae
17561 * g10/misc.c (print_pubkey_algo_note): Use enum typedef for the arg.
17562 (print_cipher_algo_note): Ditto.
17563 (print_digest_algo_note): Ditto.
17564 (map_md_openpgp_to_gcry): New.
17565 (openpgp_md_test_algo): Rewrite.
17566 (openpgp_md_algo_name): Rewrite to do without Libgcrypt.
17567 * g10/cpr.c (write_status_begin_signing): Remove hardwired list of
17570 gpg: Use only OpenPGP cipher algo ids.
17571 + commit 16a6311adefff0139056714521214f845315b7f8
17572 * g10/misc.c (map_cipher_openpgp_to_gcry): Use explicit mapping and
17573 use enums for the arg and return value.
17574 (map_cipher_gcry_to_openpgp): Ditto.
17575 (openpgp_cipher_blocklen): Use constant macros.
17576 (openpgp_cipher_test_algo): Use mapping function and prepare to
17577 disable algorithms.
17578 (openpgp_cipher_algo_name): Do not use Libgcrypt.
17580 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Replace
17581 CGRY_CIPHER_* by CIPHER_ALGO_*.
17583 * common/openpgpdefs.h (cipher_algo_t): Remove unused
17586 2014-01-30 Werner Koch <wk@gnupg.org>
17588 gpg: Use only OpenPGP public key algo ids and add the EdDSA algo id.
17589 + commit b7f8dec6325f1c80640f878ed3080bbc194fbc78
17590 * common/sexputil.c (get_pk_algo_from_canon_sexp): Change to return a
17592 * g10/keygen.c (check_keygrip): Adjust for change.
17593 * sm/certreqgen-ui.c (check_keygrip): Likewise.
17595 * agent/pksign.c (do_encode_dsa): Remove bogus map_pk_openpgp_to_gcry.
17597 * g10/misc.c (map_pk_openpgp_to_gcry): Remove.
17598 (openpgp_pk_test_algo): Change to a wrapper for openpgp_pk_test_algo2.
17599 (openpgp_pk_test_algo2): Rewrite.
17600 (openpgp_pk_algo_usage, pubkey_nbits): Add support for EdDSA.
17601 (openpgp_pk_algo_name): Rewrite to remove need for gcry calls.
17602 (pubkey_get_npkey, pubkey_get_nskey): Ditto.
17603 (pubkey_get_nsig, pubkey_get_nenc): Ditto.
17604 * g10/keygen.c(do_create_from_keygrip): Support EdDSA.
17605 (common_gen, gen_ecc, ask_keysize, generate_keypair): Ditto.
17606 * g10/build-packet.c (do_key): Ditto.
17607 * g10/export.c (transfer_format_to_openpgp): Ditto.
17608 * g10/getkey.c (cache_public_key): Ditto.
17609 * g10/import.c (transfer_secret_keys): Ditto.
17610 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Ditto.
17611 * g10/mainproc.c (proc_pubkey_enc): Ditto.
17612 * g10/parse-packet.c (parse_key): Ditto,
17613 * g10/sign.c (hash_for, sign_file, make_keysig_packet): Ditto.
17614 * g10/keyserver.c (print_keyrec): Use openpgp_pk_algo_name.
17615 * g10/pkglue.c (pk_verify, pk_encrypt, pk_check_secret_key): Use only
17616 OpenPGP algo ids and support EdDSA.
17617 * g10/pubkey-enc.c (get_it): Use only OpenPGP algo ids.
17618 * g10/seskey.c (encode_md_value): Ditto.
17620 2014-01-29 Werner Koch <wk@gnupg.org>
17622 gpg: Remove cipher.h and put algo ids into a common file.
17623 + commit ea8a1685f75d27f5277d42ea7390ad5aeaf51b1f
17624 * common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
17625 (compress_algo_t): New.
17626 * agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
17627 * g10/cipher.h (DEK): Move to ...
17628 * g10/dek.h: new file.
17629 * g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
17630 (PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
17631 (PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
17632 (PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
17633 * g10/packet.h: here.
17634 * g10/cipher.h: Remove. Remove from all files.
17635 * g10/filter.h, g10/packet.h: Include dek.h.
17636 * g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
17638 include: Remove this directory.
17639 + commit 25b4c2acbd01f9b4c2c364f44c53b73498ed8469
17640 * include/cipher.h: Move to ...
17641 * g10/cipher.h: here.
17642 * agent/gpg-agent.c: Adjust header file name.
17644 * include/host2net.h: Move to ...
17645 * common/host2net.h: here. Change license to LGPLv3/GPLv2. Adjust
17646 notices to reflect that only me worked on that file.
17648 * include/types.h: Remove.
17649 * common/types.h: Include inttypes.h. Add byte typedef and comments
17651 * common/iobuf.h: Adjust header file name.
17653 * include/_regex.h: Remove this unused file.
17655 * include/Makefile.am: Remove.
17656 * Makefile.am (SUBDIRS): Remove "include".
17657 * configure.ac (AC_CONFIG_FILES): Remove include/Makefile.
17658 * include/ChangeLog-2011: Move to ...
17659 * common/ChangeLog-2011.include: here.
17660 * common/Makefile.am (EXTRA_DIST): Add file.
17662 * include/zlib-riscos.h: Move this repo only file to ...
17663 * g10/zlib-riscos.h: here.
17665 * include/: Remove.
17667 2014-01-17 Werner Koch <wk@gnupg.org>
17669 Remove unused u64 type definitions.
17670 + commit 362a30d8c2f529cd44687066f9c33cab7b43bedc
17671 * configure.ac: Remove check for uint64 and UINT64_C.
17672 * include/types.h: Remove u64 stuff.
17673 * common/types.h: Ditto.
17675 2014-01-16 NIIBE Yutaka <gniibe@fsij.org>
17677 agent: Not remove SSH socket when already running.
17678 + commit 0ee66a6f66d7389e381fffa5f9eedbc8de9add10
17679 * agent/gpg-agent.c (main): Defer setting of socket_name_ssh to avoid
17680 removal of the socket when it will die in create_server_socket for
17683 agent: Fix agent_is_eddsa_key.
17684 + commit 9c731bbedfd8bded5efd886304c5ca6655768c45
17685 * agent/findkey.c (agent_is_eddsa_key): Implemented.
17687 2014-01-15 NIIBE Yutaka <gniibe@fsij.org>
17690 + commit c5e41f539b9a21cbad10c7dae95572a4445d31c3
17691 * common/openpgp-oid.c (openpgp_curve_to_oid): Add secp256k1.
17692 (openpgp_oid_to_curve): Likewise.
17694 * g10/keygen.c (ask_curve): Add secp256k1.
17696 2014-01-10 Werner Koch <wk@gnupg.org>
17698 autogen.sh: Add rule for 64 bit windows.
17699 + commit aedfa95bcc49156f2bc6ae5d0f385705d4fbdd32
17702 Turn autogen.sh into a generic script.
17703 + commit e7973d36d88178b4b0a977e3fcc0d62600777618
17704 * autogen.sh: Revamp.
17706 * Makefile.am (EXTRA_DIST): Add autogen.rc.
17708 Rename scripts/ to build-aux/
17709 + commit 99a48b2fcdf7c33fe553511c12f2ebb8eea5c634
17710 * scripts/: Rename to build-aux/
17711 * Makefile.am: Adjust accordingly.
17712 * configure.ac (AC_CONFIG_AUX_DIR): Change to build-aux.
17714 2014-01-09 Werner Koch <wk@gnupg.org>
17716 Improve the speedo make script.
17717 + commit a55ffb9da9a844bd2bd73a4a2ea65bf18b21c57f
17718 * scripts/gpg-w32-dev/README: Remove
17719 * scripts/gpg-w32-dev/GNUmakefile, scripts/gpg-w32-dev/speedo.mk:
17721 * scripts/speedo.mk: this.
17723 gpgsplit: Allow building without zlib support.
17724 + commit 00d5d2204cefb0f4b953e0c00448f16aab2d39c7
17725 * tools/gpgsplit.c [!HAVE_ZLIB]: Do not include zlib.h.
17726 (handle_zlib): Build only if HAVE_ZLIB is defined.
17727 (write_part): Support zlib and zip only if HAVE_ZLIB is defined.
17729 w32: Fix backslash quoting in registry name.
17730 + commit fa318406c9bdb60aee1e1b410e4c9e0b3eb1392e
17731 * configure.ac (GNUPG_REGISTRY_DIR): Double backslashes.
17734 + commit 477aabaf753f987987f7a2e1f999a499ea3bd103
17735 * configure.ac (HAVE_ZLIB): Define only if found.
17737 Add --enable-silent-rules stuff.
17738 + commit aba53e9f96d0c9b270edef0806976a56326249c4
17739 * configure.ac: Add AM_SILENT_RULES.
17741 2014-01-08 Werner Koch <wk@gnupg.org>
17743 w32: Add macro for the registry key.
17744 + commit 75ba215ebd8be7e14b26bb53ef3c7d41e4ce1e02
17745 * configure.ac (GNUPG_REGISTRY_DIR) [W32]: New ac-define.
17746 * common/homedir.c (default_homedir): Use it.
17747 * common/logging.c (do_logv): Use it.
17749 2013-12-11 Werner Koch <wk@gnupg.org>
17751 gpg: Change --show-session-key to print the session key earlier.
17752 + commit 101a54add351ff62793cbfbf3877787c4791f833
17753 * g10/cpr.c (write_status_strings): New.
17754 (write_status_text): Replace code by a call to write_status_strings.
17755 * g10/mainproc.c (proc_encrypted): Remove show_session_key code.
17756 * g10/decrypt-data.c (decrypt_data): Add new show_session_key code.
17758 2013-12-05 Werner Koch <wk@gnupg.org>
17760 gpg: Change OID of Ed25519 and add Brainpool oids.
17761 + commit 59207a86e5f40c77fed296b642bf76692e8eef65
17762 * common/openpgp-oid.c (openpgp_curve_to_oid): Change OID for
17763 Ed25519. Add brainpool OIDs.
17764 (openpgp_oid_to_curve): Ditto.
17766 2013-11-29 Werner Koch <wk@gnupg.org>
17768 common: Add put_membuf_printf.
17769 + commit 159d42ee6ab21d97f40ee129445f37209b875739
17770 * common/membuf.c (put_membuf_printf): New.
17772 2013-11-27 Werner Koch <wk@gnupg.org>
17774 gpg: Change armor Version header to emit only the major version.
17775 + commit e951782e937ce290be0d89d83e84b3daea997587
17776 * g10/options.h (opt): Rename field no_version to emit_version.
17777 * g10/gpg.c (main): Init opt.emit_vesion to 1. Change --emit-version
17778 to bump up opt.emit_version.
17779 * g10/armor.c (armor_filter): Implement different --emit-version
17782 2013-11-18 Werner Koch <wk@gnupg.org>
17784 Make use of the *_NAME etc macros.
17785 + commit cc9a0b69b698ba436eaf777e5020532845b56236
17786 Replace hardwired strings at many places with new macros from config.h
17787 and use the new strusage macro replacement feature.
17789 * common/asshelp.c (lock_spawning) [W32]: Change the names of the spawn
17791 * agent/command.c (cmd_import_key): Use asprintf to create the prompt.
17793 Add strusage macro replacement feature.
17794 + commit 798daaa1ddf73f64cf840fbdc1f4c5b9c4b4ec13
17795 * common/argparse.c (writechar): New.
17796 (writestrings): Add macro replacement feature.
17797 (show_help): Remove specialized @EMAIL@ replacement.
17798 * configure.ac (GNUPG_NAME, GPG_NAME, GPGSM_NAME): Define.
17799 (GPG_AGENT_NAME, DIRMNGR_NAME, G13_NAME, GPGCONF_NAME): Define.
17800 (GPGTAR_NAME, GPG_AGENT_INFO_NAME, GPG_AGENT_SOCK_NAME): Define.
17801 (GPG_AGENT_SSH_SOCK_NAME, DIRMNGR_INFO_NAME): Define.
17802 (DIRMNGR_SOCK_NAME): Define.
17804 2013-11-15 Werner Koch <wk@gnupg.org>
17806 kbx: Implement update operation for OpenPGP keyblocks.
17807 + commit 5499942571a88a1223a7318992605c6d29858866
17808 * kbx/keybox-update.c (keybox_update_keyblock): Implement.
17809 * kbx/keybox-search.c (get_blob_flags): Move to ...
17810 * kbx/keybox-defs.h (blob_get_type): here.
17811 * kbx/keybox-file.c (_keybox_read_blob2): Fix calling without R_BLOB.
17812 * g10/keydb.c (build_keyblock_image): Allow calling without
17814 (keydb_update_keyblock): Implement for keybox.
17816 * kbx/keybox-dump.c (_keybox_dump_blob): Fix printing of the unhashed
17817 size. Print "does not expire" also on 64 bit platforms.
17819 gpg: Rework ECC support and add experimental support for Ed25519.
17820 + commit 402aa0f94854bb00475c934be5ca6043a4632126
17821 * agent/findkey.c (key_parms_from_sexp): Add algo name "ecc".
17822 (agent_is_dsa_key): Ditto.
17823 (agent_is_eddsa_key): New. Not finished, though.
17824 * agent/pksign.c (do_encode_eddsa): New.
17825 (agent_pksign_do): Use gcry_log_debug functions.
17826 * agent/protect.c (agent_protect): Parse a flags parameter.
17827 * g10/keygen.c (gpg_curve_to_oid): Move to ...
17828 * common/openpgp-oid.c (openpgp_curve_to_oid): here and rename.
17829 (oid_ed25519): New.
17830 (openpgp_oid_is_ed25519): New.
17831 (openpgp_oid_to_curve): New.
17832 * common/t-openpgp-oid.c (test_openpgp_oid_is_ed25519): New.
17833 * g10/build-packet.c (gpg_mpi_write): Write the length header also for
17835 (gpg_mpi_write_nohdr): New.
17836 (do_key): Use gpg_mpi_write_nohdr depending on algorithm.
17837 (do_pubkey_enc): Ditto.
17838 * g10/ecdh.c (pk_ecdh_encrypt_with_shared_point): Use
17839 gpg_mpi_write_nohdr.
17840 * g10/export.c (transfer_format_to_openpgp):
17841 * g10/keygen.c (ecckey_from_sexp): Return the error.
17842 (gen_ecc): Repalce arg NBITS by CURVE.
17843 (read_parameter_file): Add keywords "Key-Curve" and "Subkey-Curve".
17845 (generate_keypair, generate_subkeypair): Use ask_curve.
17846 (do_generate_keypair): Also pass curve name.
17847 * g10/keylist.c (list_keyblock_print, list_keyblock_colon): Print
17849 * g10/parse-packet.c (mpi_read): Remove workaround for
17851 (parse_key): Fix ECC case. Print the curve name.
17852 * g10/pkglue.c (mpi_from_sexp): Rename to get_mpi_from_sexp.
17853 (pk_verify, pk_check_secret_key): Add special case for Ed25519.
17854 * g10/seskey.c (encode_md_value): Ditto.
17855 * g10/sign.c (do_sign, hash_for, sign_file): Ditto.
17857 kbx: Fix possible segv in kbxdump.
17858 + commit 9ae48b173c93f4747a9826beb1fbd023c4362c22
17859 * kbx/keybox-dump.c (_keybox_dump_blob): Check length before get32.
17861 Require Libgcrypt 1.6.
17862 + commit b27161cd0c76ae6e2381f60c3a502cde3a2aaa21
17863 * agent/pksign.c (do_encode_dsa): Remove Libgcrypt version check
17865 2013-11-13 NIIBE Yutaka <gniibe@fsij.org>
17867 scd: more pinpad input fix for PC/SC.
17868 + commit abd922e79b2ff63a5a763a30d4a06a91f93d0b12
17869 * scd/apdu.c (check_pcsc_pinpad): Set default values here.
17870 (pcsc_pinpad_verify, pcsc_pinpad_modify): Remove setting default
17871 values, as it's too late.
17873 2013-11-11 NIIBE Yutaka <gniibe@fsij.org>
17875 scd: more pinpad fix.
17876 + commit 037dea9dd5eac7a74df0e12cb437e71fb0732afa
17877 * scd/apdu.c (check_pcsc_pinpad): Set ->minlen and ->maxlen only when
17878 those are specified.
17879 (pcsc_pinpad_modify): Remove old check code.
17881 2013-10-29 NIIBE Yutaka <gniibe@fsij.org>
17883 scd: pinpad fix for PC/SC on Windows.
17884 + commit 32989ad2b152d18198d718bc2c7232ce3e79c72f
17885 * scd/apdu.c (SCARD_CTL_CODE): Fix for Windows.
17887 2013-10-28 Werner Koch <wk@gnupg.org>
17889 doc: Change yat2m to allow arbitrary condition names.
17890 + commit a15c35f37ed2b58805adc213029998aa3e52f038
17891 * doc/yat2m.c (MAX_CONDITION_NESTING): New.
17892 (gpgone_defined): Remove.
17893 (condition_s, condition_stack, condition_stack_idx): New.
17894 (cond_is_active, cond_in_verbatim): New.
17895 (add_predefined_macro, set_macro, macro_set_p): New.
17896 (evaluate_conditions, push_condition, pop_condition): New.
17897 (parse_file): Rewrite to use the condition stack.
17898 (top_parse_file): Set prefined macros.
17899 (main): Change -D to define arbitrary macros.
17901 2013-10-25 NIIBE Yutaka <gniibe@fsij.org>
17903 scd: fix pinpad input on Windows.
17904 + commit de7e15c6b80164a351586e9087aad86420c8b89e
17905 * scd/apdu.c (open_pcsc_reader_direct): Don't call
17906 pcsc_vendor_specific_init here, but...
17907 (connect_pcsc_card): Call it here.
17909 2013-10-23 NIIBE Yutaka <gniibe@fsij.org>
17911 po: Update Japanese translation.
17912 + commit b66158cac7347e4c56c79ab7b5416ae5b3f4a0a2
17915 2013-10-16 NIIBE Yutaka <gniibe@fsij.org>
17917 scd: add pinpad readers information for PC/SC service.
17918 + commit 5efcc2b8fee8de31d255d09037f0a1e6209eab32
17919 * scd/apdu.c (pcsc_vendor_specific_init): Add information for Cherry
17920 ST-2xxx, Reiner cyberJack, Vasco DIGIPASS, FSIJ Gnuk Token, and KAAN
17923 2013-10-15 NIIBE Yutaka <gniibe@fsij.org>
17925 scd: remove pin length check.
17926 + commit e0ab665a792ada6470cb8885b8427acc3c960998
17927 * scd/apdu.c (pcsc_pinpad_verify): Remove old check code for pin
17930 2013-10-04 Werner Koch <wk@gnupg.org>
17932 gpg: Limit the nesting level of I/O filters.
17933 + commit e6175055fbca958b7fa43aaf84359574ca7f3ebb
17934 * common/iobuf.c (MAX_NESTING_FILTER): New.
17935 (iobuf_push_filter2): Limit the nesting level.
17937 * g10/mainproc.c (mainproc_context): New field ANY. Change HAVE_DATA
17938 and ANY_SIG_SIGN to bit fields of ANY. Add bit field
17940 (proc_compressed): Avoid printing multiple Bad Data messages.
17941 (check_nesting): Return GPG_ERR_BAD_DATA instead of UNEXPECTED_DATA.
17943 2013-10-02 Werner Koch <wk@gnupg.org>
17945 gpg: Fix bug with deeply nested compressed packets.
17946 + commit 0899f6d4be0406c9efbf9c3f342825804f359b5a
17947 * g10/mainproc.c (MAX_NESTING_DEPTH): New.
17948 (proc_compressed): Return an error code.
17949 (check_nesting): New.
17950 (do_proc_packets): Check packet nesting depth. Handle errors from
17953 2013-09-08 Werner Koch <wk@gnupg.org>
17955 Switch to deterministic DSA.
17956 + commit 6466db10fb22a4f24df4edad9c5cb33ec67321bd
17957 * agent/pksign.c (rfc6979_hash_algo_string): New.
17958 (do_encode_dsa) [Libgcrypt >= 1.6]: Make use of RFC-6979.
17960 2013-08-30 Werner Koch <wk@gnupg.org>
17962 scd: Suppress gcc warning about possible uninitialized use.
17963 + commit 244587ea41d4c75cb5570356f09a6705864a7e8d
17964 * scd/app-nks.c (parse_pwidstr): Always init r_pwid.
17966 gpg: Use 2048 as the default keysize in batch mode.
17967 + commit 4c3b35b067a4e7002bb6473b879b551014bb7857
17968 * g10/keygen.c (gen_elg, gen_dsa, gen_rsa): Set default keysize to
17971 gpgtar: Fix building for systems with a separate libintl.
17972 + commit 12990efb45ee7c425167aad19fe759d5609c5182
17973 * tools/Makefile.am (gpgtar_LDADD): Add LIBINTL and LIBICONV.
17975 scd: Use vendor and product id macros also in apdu.c.
17976 + commit fc31d730d8506b069de1d3529ed26660856bf07f
17977 * scd/ccid-driver.c: Move vendor and product ids to ...
17978 * scd/ccid-driver.h: here.
17979 * scd/apdu.c (CCID_DRIVER_INCLUDE_USB_IDS): Define to include ids.
17980 (pcsc_vendor_specific_init): Use vendor and product id macros.
17982 2013-08-30 NIIBE Yutaka <gniibe@fsij.org>
17984 scd: PC/SC pinpad input improvement.
17985 + commit 95a3bffeaf07e8bf9487d4b165c336d166236fc1
17986 * scd/apdu.c (struct reader_table_s): Add members: PINMIN, PINMAX, and
17987 PINPAD_VERLEN_SUPPORTED.
17988 (CM_IOCTL_VENDOR_IFD_EXCHANGE, FEATURE_GET_TLV_PROPERTIES,
17989 PCSCv2_PART10_PROPERTY_*): New.
17990 (new_reader_slot): Initialize pinpad_varlen_supported, pinmin, pinmax.
17991 (pcsc_vendor_specific_init): New.
17992 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Call
17993 pcsc_vendor_specific_init.
17994 (check_pcsc_pinpad): Not detect here but use the result of
17995 pcsc_vendor_specific_init.
17996 (pcsc_pinpad_verify, pcsc_pinpad_modify): Specify bNumberMessage.
17998 2013-08-29 Jonas Borgström <jonas@borgstrom.se>
18000 scd: add support for RSA_CRT and RSA_CRT_N key import.
18001 + commit cc67918c088e90c1d9a507af5f6288e8faa93d87
18002 * scd/app-openpgp.c (do_writekey): Added RSA_CRT and RSA_CRT_N support.
18004 2013-08-29 Werner Koch <wk@gnupg.org>
18006 kbx: Add a few macros for easier readability.
18007 + commit 3adfaa9beee4502479b5673c7dfd386680a920c5
18008 * kbx/keybox-update.c (FILECOPY_INSERT)
18009 (FILECOPY_DELETE, FILECOPY_UPDATE): New macros. Replace numbers by
18012 2013-08-28 Werner Koch <wk@gnupg.org>
18014 Fix commit 04e2c83f.
18015 + commit fdbf76eee6a4e81b040d423926b71af7b491fb4a
18016 * agent/command-ssh.c (stream_read_string): Do not assign to a NULL
18019 gpg: Make decryption with the OpenPGP card work.
18020 + commit 780ba3233618393835970bac4cf8aab713f4d7fa
18021 * scd/app-common.h (APP_DECIPHER_INFO_NOPAD): New.
18022 * scd/app-openpgp.c (do_decipher): Add arg R_INFO.
18023 * scd/app-nks.c (do_decipher): Add arg R_INFO as a dummy.
18024 * scd/app.c (app_decipher): Add arg R_INFO.
18025 * scd/command.c (cmd_pkdecrypt): Print status line "PADDING".
18026 * agent/call-scd.c (padding_info_cb): New.
18027 (agent_card_pkdecrypt): Add arg R_PADDING.
18028 * agent/divert-scd.c (divert_pkdecrypt): Ditto.
18029 * agent/pkdecrypt.c (agent_pkdecrypt): Ditto.
18030 * agent/command.c (cmd_pkdecrypt): Print status line "PADDING".
18031 * g10/call-agent.c (padding_info_cb): New.
18032 (agent_pkdecrypt): Add arg R_PADDING.
18033 * g10/pubkey-enc.c (get_it): Use padding info.
18035 agent: Fix two compiler warnings.
18036 + commit 04e2c83f189cc56342e1be784bdc63761ccdb5bb
18037 * agent/command.c (cmd_preset_passphrase, pinentry_loopback): Use %zu
18039 * scd/ccid-driver.c (ccid_get_atr): Ditto.
18040 * agent/command-ssh.c (stream_read_string): Init arg STRING_SIZE to
18041 avoid maybe_unitialized warning.
18043 2013-08-27 NIIBE Yutaka <gniibe@fsij.org>
18045 scd: fix parsing login-data DO.
18046 + commit b6d54f1196d5f110fd94dfd661e74dbc60ca9811
18047 * scd/app-openpgp.c (parse_login_data): Release RELPTR. Fix parsing.
18049 scd: fix Vega for Alpha reader.
18050 + commit 54cbab29c700db2df74e808f16db49170e6c42f1
18051 * scd/ccid-driver.c (ccid_vendor_specific_init): Fix error handling
18052 and size of command.
18054 2013-08-21 Werner Koch <wk@gnupg.org>
18056 scd: Make SPRx32 pinpad work with PC/SC on Windows.
18057 + commit 5c5e52df4b92e23045ac87abac09357de58920d4
18058 * scd/apdu.c (CM_IOCTL_GET_FEATURE_REQUEST): Use SCARD_CTL_CODE.
18059 (SCARD_CTL_CODE): Define if not defined.
18060 (reader_table_s): Add is_spr532.
18061 (new_reader_slot): Clear it.
18062 (check_pcsc_pinpad): Set it.
18063 (pcsc_pinpad_verify, pcsc_pinpad_modify): Add fix for SPR532.
18065 scd: Improve --enable-pinpad-varlen.
18066 + commit 7bde2bf3b0ddb5d3515a44879e1a7ddb581a5c0b
18067 * tools/gpgconf-comp.c (gc_options_scdaemon): Add
18068 enable-pinpad-varlen.
18069 * scd/apdu.c (check_pcsc_pinpad): Detect SPRx32 reader.
18071 2013-08-08 Werner Koch <wk@gnupg.org>
18073 agent: Extend cmd KEYINFO to return data from sshcontrol.
18074 + commit 50c98c7ed6b542857ee2f902eca36cda37407737
18075 * agent/command-ssh.c (struct control_file_s): Rename to
18076 ssh_control_file_s.
18077 (ssh_open_control_file, ssh_close_control_file)
18078 (ssh_read_control_file, ssh_search_control_file): New.
18079 (control_file_t): Rename and move to ...
18080 * agent/agent.h (ssh_control_file_t): here.
18081 * agent/command.c (do_one_keyinfo): Add args is_ssh, ttl, disabled,
18082 and confirm. Rename unknown keytype indicator from '-' to 'X'. Extend
18084 (cmd_keyinfo): Add options --ssh-list and --with-ssh.
18086 2013-08-02 Werner Koch <wk@gnupg.org>
18088 gpg: No need to create a trustdb when encrypting with --always-trust.
18089 + commit 498b9a95dc65c43240835d64cc92d8fb43014d53
18090 * g10/gpg.c (main): Special case setup_trustdb for --encrypt.
18092 2013-08-01 Werner Koch <wk@gnupg.org>
18094 w32: Fix recent patch 9ff72e4.
18095 + commit ca6fe88c0068f8d45ef39df0fc7b161998a91fe9
18096 * common/homedir.c (check_portable_app): Fix the name of the control
18099 agent: Include missing prototype.
18100 + commit ef6a6d973c2bcc54006c04dc41f978ff01005c97
18101 * agent/protect.c: Include cvt-openpgp.h.
18103 w32: Add code to support a portable use of GnuPG.
18104 + commit 9ff72e4e7e4f56c241a525479a94ed4c95efc23f
18105 * common/homedir.c (w32_bin_is_bin, w32_portable_app) [W32]: New.
18106 (check_portable_app) [W32]: New.
18107 (standard_homedir, default_homedir) [W32]: Support the portable flag.
18108 (w32_rootdir, w32_commondir) [W32]: Ditto.
18109 (gnupg_bindir, gnupg_cachedir, dirmngr_socket_name) [W32]: Ditto.
18110 * common/logging.h (JNLIB_LOG_NO_REGISTRY): New.
18111 * common/logging.c (no_registry): New variable.
18112 (log_set_prefix, log_get_prefix): Set/get that variable.
18113 (do_logv): Do not check the registry if that variable is set.
18115 Silence compiler warning about deprecated Libgcrypt symbols.
18116 + commit db4651734fe91935b17876dc9194329b00066eff
18117 * configure.ac (AH_BOTTOM): Define GCRYPT_NO_DEPRECATED.
18119 dirmngr: Define missing LDAP constant.
18120 + commit ef2e2e54020c3475bf2129c3ec8360c7bad3a6c9
18121 * dirmngr/ldap-url.c (LDAP_SCOPE_DEFAULT): Define if missing.
18123 scd: Fix a syntax error for Apple and Windows.
18124 + commit 25b0357bf0a4861a751cfbc3e0335ae05c8b2b1b
18125 * scd/apdu.c (pcsc_dword_t) [W32]: Fix syntax error.
18127 common: Fix a build error when using adns.
18128 + commit ffa7472db551f12f66b9789c31fabb5fc80cc13a
18129 * common/dns-cert.c (get_dns_cert) [USE_ADNS]: Fix synatx error.
18131 2013-07-31 Werner Koch <wk@gnupg.org>
18133 common: Comment out unused code.
18134 + commit f101f34fffee4a02e7a5f62b59667e45e50e8325
18135 * common/w32-reg.c (write_w32_registry_string): Comment out.
18137 dirmngr: Remove unused file.
18138 + commit 2830fcb83c99289a49da0e111766daf2d9a1fa3b
18139 * dirmngr/get-path.c: Remove.
18141 2013-06-27 Werner Koch <wk@gnupg.org>
18143 sm: Remove cruft from source files.
18144 + commit f254497e09fa4e0e24e63d14f7316fc31c938844
18145 * sm/keydb.c, sm/keydb.h: Remove disabled code parts.
18147 Prepare for newer automake versions.
18148 + commit 043e2728c813299fafcf62cd125ecf872b26179e
18149 * configure.ac (AM_INIT_AUTOMAKE): Replace 2 argument form by the
18150 option form. Add options from the top Makefile.
18151 (AM_CONFIG_HEADER): Rename to AC_CONFIG_HEADER.
18152 * Makefile.am (AUTOMAKE_OPTIONS): Remove.
18154 * kbx/Makefile.am: Remove INCLUDES. Include cmacros.am. FActor some
18155 AM_CPPFLAGS options to AM_CFLAGS.
18157 2013-06-26 Werner Koch <wk@gnupg.org>
18159 Fix Makefile regression.
18160 + commit 136f190a2f20c6ec4d5c3ca3ac7f0440c14e4dc2
18161 * agent/Makefile.am (gpg_agent_DEPENDENCIES): Remove cruft from wrong
18162 resolve conflict 2013-04-25.
18163 (gpg_agent_DEPENDENCIES): Remove obsolete gpg_agent_res_deps
18164 (gpg_agent_LDFLAGS): Remove obsolete gpg_agent_res_ldflags.
18166 2013-05-22 Werner Koch <wk@gnupg.org>
18168 Implement unattended OpenPGP secret key import.
18169 + commit 7777e68d0482c942f527e91c04adbcfb40bc8bef
18170 * agent/command.c (cmd_import_key): Add option --unattended.
18171 * agent/cvt-openpgp.c (convert_transfer_key): New.
18172 (do_unprotect): Factor some code out to ...
18173 (prepare_unprotect): new function.
18174 (convert_from_openpgp): Factor all code out to ...
18175 (convert_from_openpgp_main): this. Add arg 'passphrase'. Implement
18176 openpgp-native protection modes.
18177 (convert_from_openpgp_native): New.
18178 * agent/t-protect.c (convert_from_openpgp_native): New dummy fucntion
18179 * agent/protect-tool.c (convert_from_openpgp_native): Ditto.
18180 * agent/protect.c (agent_unprotect): Add arg CTRL. Adjust all
18181 callers. Support openpgp-native protection.
18182 * g10/call-agent.c (agent_import_key): Add arg 'unattended'.
18183 * g10/import.c (transfer_secret_keys): Use unattended in batch mode.
18185 New debug functions log_printcanon and log_printsexp.
18186 + commit cb6a64bb78296c8e9f72df0c482ff847e89a1541
18187 * common/sexputil.c (sexp_to_string, canon_sexp_to_string): New.
18188 (log_printcanon, log_printsexp): New.
18190 agent: Fix length detection of canonical formatted openpgp keys.
18191 + commit 0f0e0559f9b160824f10dc17b389268cdb53aea4
18192 * agent/command.c (cmd_import_key): Pass 0 instead of KEYLEN to
18193 gcry_sexp_canon_len.
18195 agent: New option --disable-check-own-socket.
18196 + commit f2d8a14e1b12534eba69d595a62c78f92331e11b
18197 * agent/gpg-agent.c (oDisableCheckOwnSocket): New.
18198 (disable_check_own_socket): New.
18199 (parse_rereadable_options): Set new option.
18200 (check_own_socket): Implement new option.
18202 2013-05-07 Werner Koch <wk@gnupg.org>
18204 w32: Add icons and version information.
18205 + commit 88e24341e57c96e31a25e92e09d67989e64cc1c1
18206 * common/gnupg.ico: New. Take from artwork/gnupg-favicon-1.ico.
18207 * agent/gpg-agent-w32info.rc: New.
18208 * g10/gpg-w32info.rc: New.
18209 * scd/scdaemon-w32info.rc: New.
18210 * sm/gpgsm-w32info.rc: New.
18211 * tools/gpg-connect-agent-w32info.rc: New.
18212 * common/w32info-rc.h.in: New.
18213 * configure.ac (BUILD_REVISION, BUILD_FILEVERSION, BUILD_TIMESTAMP)
18214 (BUILD_HOSTNAME): New.
18215 (AC_CONFIG_FILES): Add w32info-rc.h.
18216 * am/cmacros.am (.rc.o): New rule.
18217 * agent/Makefile.am, common/Makefile.am, g10/Makefile.am
18218 * scd/Makefile.am, sm/Makefile.am, tools/Makefile.am: Add stuff to
18219 build resource files.
18221 2013-05-07 Ian Abbott <abbotti@mev.co.uk>
18223 doc: fix some Texinfo warnings.
18224 + commit 2c3fc4719b92d9e3ac32efd134a930e1cc126032
18225 * doc/gpg.texi: Fix syntax and add missing menu entries.
18226 * doc/gpgsm.texi: Fix subsectioning.
18228 2013-04-22 Werner Koch <wk@gnupg.org>
18230 Fix potential heap corruption in "gpg -v --version".
18231 + commit 151b78cc26d728e9eb42620e0caf8c6f4bd7f839
18232 * g10/gpg.c (build_list): Rewrite to cope with buffer overflow in
18235 2013-04-19 Werner Koch <wk@gnupg.org>
18237 gpgsm: Remove non-implemented commands from --help.
18238 + commit d6798d261cbe6519ef5b3ebb474e2ad348442c0c
18239 * sm/gpgsm.c (opts): Removed commands --clearsign, --symmetric,
18240 --send-keys, and --recv-keys.
18242 2013-04-19 Daiki Ueno <ueno@gnu.org>
18244 Make sure to call fflush if estream_t is backed with stdio.
18245 + commit e498180d5647d3427a7d7e6c82a9f09cf1ba439d
18246 * common/estream.c (es_func_fp_write): Call fflush after fwrite.
18248 2013-04-19 Werner Koch <wk@gnupg.org>
18250 doc: Formatting fixes.
18251 + commit ff6115227a1ced14e2fb3d160a12181b9dfbc502
18252 * doc/Makefile.am (.fig.jpg): Correct to use -L jpeg.
18253 * doc/gpg.texi: Fix cross reference for --options.
18254 * doc/gpgsm.texi: Likewise.
18255 * doc/gpl.texi: Fix enumerate and re-indent examples.
18257 2013-04-01 NIIBE Yutaka <gniibe@fsij.org>
18259 scd: move SCDaemon to libexecdir.
18260 + commit 021767d8aa11aac8ac87dc3a31969ee6cfa65966
18261 * common/homedir.c (gnupg_module_name): It's now libexecdir.
18262 * scd/Makefile.am (libexec_PROGRAMS): Add scdaemon
18263 (bin_PROGRAMS): Remove scdaemon.
18265 2013-03-29 Werner Koch <wk@gnupg.org>
18267 copyright assignments are not anymore required.
18268 + commit 07227279c44e3af0939f90025a0d22b782d0f185
18271 2013-03-26 NIIBE Yutaka <gniibe@fsij.org>
18273 scd: PC/SC status fix.
18274 + commit 64b1a2cf6f18348544a2d2cd4d49fd27bf01c150
18275 * scd/apdu.c (pcsc_get_status_direct): Check PCSC_STATE_MUTE only when
18276 PCSC_STATE_PRESENT.
18278 * scd/pcsc-wrapper.c (handle_status): Ditto.
18280 scd: PC/SC cleanup (more).
18281 + commit b9aceaa442914beb4f5359283053b43ba5a46b4c
18282 * scd/apdu.c (control_pcsc_direct, control_pcsc_wrapped, control_pcsc)
18283 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify): Use
18286 scd: call update_card_removed only when detecting removal.
18287 + commit 1062893832bb15eaac853f52e1cb673e5e03790a
18288 * scd/command.c (update_reader_status_file): Add condition
18291 2013-03-22 NIIBE Yutaka <gniibe@fsij.org>
18293 scd: PC/SC cleanup.
18294 + commit ee95c23fcdc6673db0fc7287ab2197915d9b55b3
18295 * scd/apdu.c (pcsc_dword_t): New. It was named as DWORD (double-word)
18296 when a word was 16-bit.
18297 (struct reader_table_s): Fixes for types.
18298 (struct pcsc_readerstate_s) [__APPLE__]: Enable #pragma pack(1).
18299 Throughout: Fixes for types.
18301 * scd/pcsc-wrapper.c: Likewise.
18303 2013-03-21 NIIBE Yutaka <gniibe@fsij.org>
18306 + commit a75a08d6e30e93e1793aa78a15d473a3ea7623cb
18307 * po/LINGUAS: Enable ja.po.
18309 scd: change default value of pinpad maxlen.
18310 + commit ca66f5c779af74d0eb7221afd7a9707201931e50
18311 * scd/apdu.c (pcsc_pinpad_verify, pcsc_pinpad_modify): Default value
18312 of maxlen for pinpad input is now 15 (was: 25).
18314 * scd/ccid-driver.c (ccid_transceive_secure): Likewise.
18316 2013-03-20 Werner Koch <wk@gnupg.org>
18318 Add code to allow for late memory cleanup.
18319 + commit 2739834206f23833161898a73427b8a9c6d5d26d
18320 * common/init.c (mem_cleanup_item_t): New.
18321 (run_mem_cleanup): New.
18322 (_init_common_subsystems): Add an atexit for it.
18323 (register_mem_cleanup_func): New.
18325 * g10/kbnode.c (cleanup_registered): New.
18326 (release_unused_nodes): New.
18327 (alloc_node): Call register_mem_cleanup_func.
18329 kbx: Remove unused macro.
18330 + commit 44159b681f8f09000fabfc3ee294d5821578d3a6
18331 * kbx/keybox.h (KEYBOX_WITH_OPENPGP): Remove unused macro.
18333 2013-03-19 Werner Koch <wk@gnupg.org>
18335 gpg: Print indicator for unknown key capability.
18336 + commit c4dbd1b2de8ae3847a040444e86500848868bcf4
18337 * g10/keylist.c (print_capabilities): Print '?' for unknown usage.
18339 2013-03-19 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
18341 gpg: Allow setting of all zero key flags.
18342 + commit b693ec02c467696bf9d7324dd081e279f9965151
18343 * g10/keygen.c (do_add_key_flags): Do not check for empty key flags.
18345 2013-03-19 Werner Koch <wk@gnupg.org>
18347 gpg: Distinguish between missing and cleared key flags.
18348 + commit 4bde12206c5bf199dc6e12a74af8da4558ba41bf
18349 * include/cipher.h (PUBKEY_USAGE_NONE): New.
18350 * g10/getkey.c (parse_key_usage): Set new flag.
18352 2013-03-15 NIIBE Yutaka <gniibe@fsij.org>
18354 scd: ccid-driver supporting larger APDU.
18355 + commit 76dc5c08dc2686eef32e1bd221c60fe91201246f
18356 * scd/ccid-driver.c (ccid_transceive_apdu_level): Support larger
18359 scd: fix missing close paren.
18360 + commit 006782068e4d2a9413770400494421a2e9726ee7
18361 * scd/app-openpgp.c (du_auth): Fix.
18363 2013-03-09 NIIBE Yutaka <gniibe@fsij.org>
18365 scd: support ECDSA signing.
18366 + commit 73ad742deacfe2bf7d6efc7cc30f9ced2d83521a
18367 * scd/app-openpgp.c (do_sign): Only prepend message digest block
18368 for RSA or do_auth.
18369 (do_auth): Remove message digest block for ECDSA.
18371 2013-03-08 NIIBE Yutaka <gniibe@fsij.org>
18373 scd: support ECDSA public key.
18374 + commit 010bc7f4f06d8affb98950e1adc76c68bfcc9abb
18375 * scd/app-openpgp.c (key_type_t): New.
18376 (CURVE_NIST_P256, CURVE_NIST_P384, CURVE_NIST_P521): New.
18377 (struct app_local_s): Change keyattr to have key_type and union.
18378 (get_ecc_key_parameters, get_curve_name): New.
18379 (send_key_attr, get_public_key): Support ECDSA.
18380 (build_privkey_template, do_writekey, do_genkey): Follow the change
18381 of the member KEY_ATTR.
18382 (parse_historical): New.
18383 (parse_algorithm_attribute): Support ECDSA.
18385 2013-03-05 Werner Koch <wk@gnupg.org>
18387 Require libgpg-error 1.11.
18388 + commit 5bac5040dc93343e1e89916b263390b0e52040bf
18389 * configure.ac: Require libgpg-error 1.11.
18390 * common/util.h (GPG_ERR_NO_KEYSERVER, GPG_ERR_INV_CURVE)
18391 (GPG_ERR_UNKNOWN_CURVE): Remove fallback definitions.
18393 2013-02-28 NIIBE Yutaka <gniibe@fsij.org>
18395 agent: pksign result conversion to sexp to upper layer.
18396 + commit ef1983d58b913306e9bf02a7189e530123839c59
18397 * agent/agent.h (divert_pksign): Add R_SIGLEN argument.
18398 * agent/divert-scd.c (divert_pksign): Return length at R_SIGLEN.
18399 * agent/call-scd.c (agent_card_pksign): Move composition of
18401 * agent/pksign.c (agent_pksign_do): ... here.
18403 2013-02-22 Werner Koch <wk@gnupg.org>
18405 Use has_leading_keyword in the assuan callbacks.
18406 + commit 585d5c62eece23911a768d97d11f159be138b13d
18407 * agent/call-pinentry.c (inq_quality): Use has_leading_keyword.
18408 * agent/call-scd.c (inq_needpin, inq_writekey_parms): Ditto.
18409 * g10/call-agent.c (inq_writecert_parms, keyinfo_status_cb): Ditto.
18410 (inq_genkey_parms, inq_ciphertext_cb, inq_import_key_parms): Ditto.
18411 * g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
18412 * sm/call-agent.c (default_inq_cb, inq_ciphertext_cb): Ditto.
18413 (inq_genkey_parms, istrusted_status_cb, learn_status_cb): Ditto.
18414 (keyinfo_status_cb, inq_import_key_parms): Ditto.
18415 * sm/call-dirmngr.c (inq_certificate, isvalid_status_cb): Ditto.
18416 (lookup_status_cb, run_command_inq_cb, run_command_status_cb): Ditto.
18418 Remove some unused variables.
18419 + commit c6b8f05517228c6aeab28d2bf5da7724c059bb1a
18420 * tools/gpgconf-comp.c (gc_process_gpgconf_conf): Remove unused
18422 * agent/command-ssh.c (ssh_signature_encoder_ecdsa): Mark unused arg.
18423 * g13/g13.c (main): Comment variable of yet unimplemented options.
18425 gpg: Fix a memory leak in batch key generation.
18426 + commit 161674118d568025896026ede5e03d26bdfdfa68
18427 * g10/keygen.c (append_to_parameter): New.
18428 (proc_parameter_file): Use new func to extend the parameter list.
18430 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
18431 gcry_kdf_derive failed.
18432 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
18433 passphrase_to_dek failed.
18435 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
18436 + commit baee681d2406530c45fd6d4bde77193ba23ac263
18437 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
18439 common: Add func has_leading_keyword.
18440 + commit 2838385e76c8c7108bc949d5a1d1c947051bd5be
18441 * common/stringhelp.c (has_leading_keyword): New.
18443 Remove build hacks for FreeBSD.
18444 + commit 21f5a9ec27c0794141a835a5bb3c69495ee554a6
18445 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
18448 2013-02-22 NIIBE Yutaka <gniibe@fsij.org>
18450 agent: fix two bugs.
18451 + commit 3c3648e720b8014828573bd708c88ba4775014e3
18452 * agent/command.c (cmd_keytocard): Decrement KEYDATALEN.
18453 * agent/findkey.c (agent_public_key_from_file): Increment for ELEMS.
18455 gpg: fix keytocard and support ECC card for key attribute.
18456 + commit 7d376ffa321d4af6e62a2bc64ef2b8574b122b1a
18457 * g10/call-agent.c (agent_keytocard): Supply PARM arg.
18458 * g10/card-util.c (card_status): Support ECC.
18459 (card_store_subkey): Don't assume RSA.
18461 2013-02-21 Werner Koch <wk@gnupg.org>
18463 gpg: Fix a memory leak in batch key generation.
18464 + commit 273bb38cd7b517460cb3de67662e96e910104675
18465 * g10/keygen.c (append_to_parameter): New.
18466 (proc_parameter_file): Use new func to extend the parameter list.
18468 * g10/passphrase.c (passphrase_to_dek_ext): Print a diagnostic of
18469 gcry_kdf_derive failed.
18470 * g10/keygen.c (proc_parameter_file): Print a diagnostic if
18471 passphrase_to_dek failed.
18473 gpg: Handle the agent's NEW_PASSPHRASE inquiry.
18474 + commit 18a261b65fd77a9e434b13483ceaaaf2176f1197
18475 * g10/call-agent.c (default_inq_cb): Take care of NEW_PASSPHRASE.
18477 common: Add func has_leading_keyword.
18478 + commit 4af0c62b15c51056dc293c8e3b907e7c41fbf08c
18479 * common/stringhelp.c (has_leading_keyword): New.
18481 2013-02-20 Werner Koch <wk@gnupg.org>
18483 Remove build hacks for FreeBSD.
18484 + commit 8e5766c38f3ac376fb8e7c7f2b0f65de23d84cbe
18485 * configure.ac [freebsd]: Do not add /usr/local to CPPFLAGS and
18488 2013-02-12 NIIBE Yutaka <gniibe@fsij.org>
18490 gpg: Implement card_store_subkey again.
18491 + commit b90506ea220860c89128f002bd593d0462a08d73
18492 * g10/call-agent.h (agent_keytocard): New.
18493 * g10/call-agent.c (agent_keytocard): New.
18494 * g10/card-util.c (replace_existing_key_p): Returns 1 when replace.
18495 (card_generate_subkey): Check return value of replace_existing_key_p.
18496 (card_store_subkey): Implement again using agent_keytocard.
18498 agent: Add KEYTOCARD command.
18499 + commit 30f8a3c8736451d8c06ef72521a8da5eabf23016
18500 * agent/agent.h (divert_writekey, agent_card_writekey): New.
18501 * agent/call-scd.c (inq_writekey_parms, agent_card_writekey): New.
18502 * agent/command.c (cmd_keytocard, hlp_keytocard): New.
18503 (register_commands): Add cmd_keytocard.
18504 * agent/divert-scd.c (divert_writekey): New.
18506 Japanese: update po and doc.
18507 + commit 595ab0da666c43a1315a72a1346ee149998d8771
18508 * doc/help.ja.txt, po/ja.po: Updated.
18510 2013-02-08 NIIBE Yutaka <gniibe@fsij.org>
18512 scd: Rename 'keypad' to 'pinpad'.
18513 + commit 7253093addfd82a8dd25cd80e3ba820a85e3c9a7
18514 * NEWS: Mention scd changes.
18516 * agent/divert-scd.c (getpin_cb): Change message.
18518 * agent/call-scd.c (inq_needpin): Change the protocol to
18519 POPUPPINPADPROMPT and DISMISSPINPADPROMPT.
18520 * scd/command.c (pin_cb): Likewise.
18522 * scd/apdu.c (struct reader_table_s): Rename member functions.
18523 (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify,
18524 check_ccid_pinpad, ccid_pinpad_operation, apdu_check_pinpad
18525 apdu_pinpad_verify, apdu_pinpad_modify): Rename.
18527 * scd/apdu.h (SW_HOST_NO_PINPAD, apdu_check_pinpad)
18528 (apdu_pinpad_verify, apdu_pinpad_modify): Rename.
18530 * scd/iso7816.h (iso7816_check_pinpad): Rename.
18532 * scd/iso7816.c (map_sw): Use SW_HOST_NO_PINPAD.
18533 (iso7816_check_pinpad): Rename.
18534 (iso7816_verify_kp, iso7816_change_reference_data_kp): Follow
18537 * scd/ccid-driver.h (CCID_DRIVER_ERR_NO_PINPAD): Rename.
18538 * scd/ccid-driver.c (ccid_transceive_secure): Use it.
18540 * scd/app-dinsig.c (verify_pin): Follow the change.
18541 * scd/app-nks.c (verify_pin): Follow the change.
18543 * scd/app-openpgp.c (check_pinpad_request): Rename.
18544 (parse_login_data, verify_a_chv, verify_chv3, do_change_pin): Follow
18547 * scd/scdaemon.c (oDisablePinpad, oEnablePinpadVarlen): Rename.
18549 * scd/scdaemon.h (opt): Rename to disable_pinpad,
18550 enable_pinpad_varlen.
18552 * tools/gpgconf-comp.c (gc_options_scdaemon): Rename to
18555 2013-02-07 Werner Koch <wk@gnupg.org>
18557 gpg: Add pinentry-mode feature.
18558 + commit 21feecd48f990b2569cb4b385dea3e57b9501525
18559 * g10/gpg.c: Include shareddefs.h.
18560 (main): Add option --pinentry-mode.
18561 * g10/options.h (struct opt): Add field pinentry_mode.
18562 * g10/passphrase.c: Include shareddefs.h.
18563 (have_static_passphrase): Take care of loopback pinentry_mode.
18564 (read_passphrase_from_fd): Ditto.
18565 (get_static_passphrase): New.
18566 (passphrase_to_dek_ext): Factor some code out to ...
18567 (emit_status_need_passphrase): new.
18568 * g10/call-agent.c (start_agent): Send the pinentry mode.
18569 (default_inq_cb): Take care of the PASSPHRASE inquiry. Return a
18571 (agent_pksign): Add args keyid, mainkeyid and pubkey_algo.
18572 (agent_pkdecrypt): Ditto.
18573 * g10/pubkey-enc.c (get_it): Pass new args.
18574 * g10/sign.c (do_sign): Pass new args.
18576 * g10/call-agent.c (struct default_inq_parm_s): New. Change all
18577 similar structs to reference this one. Change all users and inquire
18578 callback to use this struct, instead of NULL or some undefined but not
18579 used structs. This change will help to eventually get rid of global
18582 2013-02-06 Werner Koch <wk@gnupg.org>
18584 agent: Move a typedef to common and provide parse_pinentry_mode.
18585 + commit 8b2b8dfe5c4cd346bbea2c228e75737bbeeca4c4
18586 * common/agent-opt.c: New.
18587 * common/shareddefs.h: New.
18588 * common/Makefile.am: Add new files.
18589 * agent/agent.h: Include shareddefs.h.
18590 (pinentry_mode_t): Factor out to shareddefs.h.
18591 * agent/command.c (option_handler): Use parse_pinentry_mode.
18593 agent: Return a better error code if no passphrase was given.
18594 + commit 4483a4f0ea030046137ba04905eb5220c14a2161
18595 * agent/protect.c (hash_passphrase): Handle an empty passphrase.
18597 2013-02-05 NIIBE Yutaka <gniibe@fsij.org>
18599 scd: Fix check_keypad_request.
18600 + commit c27315fc6466cceb862c9e67755a8e044e9b7688
18601 * scd/app-openpgp.c (check_keypad_request): 0 means not to use pinpad.
18603 SCD: Add vendor specific initalization.
18604 + commit e791ac6683bfb90d5e40c0103324784bd58535c9
18605 * scd/ccid-driver.c (ccid_vendor_specific_init): New.
18606 (ccid_open_reader): Call ccid_vendor_specific_init.
18608 SCD: Support P=N format for login data.
18609 + commit 0407e642f796fb2780a77b7a1a86731d0de27e5d
18610 * scd/app-openpgp.c (parse_login_data): Support P=N format.
18612 SCD: Better interoperability.
18613 + commit bd5eded73a1268afdf81482f8408e5f640abf9c4
18614 * scd/apdu.c: Fill bTeoPrologue[2] field.
18616 SCD: Defaults to use pinpad if the reader has the capability.
18617 + commit a9ff97a10f7ae5a703ed1bccba294473ecc88d5d
18618 * scd/app-openpgp.c (struct app_local_s): Remove VARLEN.
18619 (parse_login_data): "P=0" means to disable pinpad.
18620 (check_keypad_request): Default is to use pinpad if available.
18622 SCD: handle keypad request on the card.
18623 + commit 334ba6efa5a05d8849fae213128a0505e7615e13
18624 * scd/app-openpgp.c: Add 2013.
18625 (struct app_local_s): Add keypad structure.
18626 (parse_login_data): Add parsing keypad request on the card.
18627 (check_keypad_request): New.
18628 (verify_a_chv, verify_chv3, do_change_pin): Call check_keypad_request
18629 to determine use of keypad.
18631 SCD: Minor fix of ccid-driver.
18632 + commit d5bf83a24cf3871b7d8cfe61049f70e1e206d09a
18633 * scd/ccid-driver.c (VENDOR_VEGA): Fix typo.
18635 SCD: Add support of Covadis VEGA_ALPHA reader.
18636 + commit 82e1e837c29225cd55642b193cc04ce6191d19bb
18637 * scd/ccid-driver.c: Add 2013.
18638 (VENDER_VEGA, VEGA_ALPHA):New.
18639 (ccid_transceive_secure): VEGA_ALPHA is same firmware as GEMPC_PINPAD.
18640 Change bNumberMessage to 0x01, as it works better (was: 0xff).
18642 SCD: Support fixed length PIN input for keypad (PC/SC).
18643 + commit 3aae780f9debaeb3560ff866b7e09d0923481c57
18644 * scd/apdu.c (pcsc_keypad_verify): SUpport fixed length PIN input for
18646 (pcsc_keypad_modify): Likewise.
18647 * scd/ccid-driver.c (ccid_transceive_secure): Clean up.
18649 SCD: Support fixed length PIN input for keypad.
18650 + commit 40a914a2e3052847b49c4b5e8ac8538e97efd18a
18651 * scd/iso7816.h (struct pininfo_s): Remove MODE and add FIXEDLEN.
18652 * scd/app-dinsig.c (verify_pin): Initialize FIXEDLEN to unknown.
18653 * scd/app-nks.c (verify_pin): Likewise.
18654 * scd/app-openpgp.c (verify_a_chv, verify_chv3, do_change_pin):
18656 * scd/apdu.c (check_pcsc_keypad): Add comment.
18657 (pcsc_keypad_verify, pcsc_keypad_modify): PC/SC driver only support
18658 readers with the feature of variable length input (yet).
18659 (apdu_check_keypad): Set FIXEDLEN.
18660 * scd/ccid-driver.c (ccid_transceive_secure): Add GEMPC_PINPAD
18662 Support fixed length PIN input for keypad.
18664 SCD: API cleanup for keypad handling.
18665 + commit b526f6e223604b7c1852ef2aab9fc1ea691b1181
18666 * scd/iso7816.h (struct pininfo_s): Rename from iso7816_pininfo_s.
18667 Change meaning of MODE.
18668 (pininfo_t): Rename from iso7816_pininfo_t.
18669 * scd/sc-copykeys.c: Include "iso7816.h".
18670 * scd/scdaemon.c, scd/command.c: Likewise.
18671 * scd/ccid-driver.c: Include "scdaemon.h" and "iso7816.h".
18672 (ccid_transceive_secure): Follow the change of PININFO_T.
18673 * scd/app.c: Include "apdu.h" after "iso7816.h".
18674 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
18675 (iso7816_change_reference_data_kp): Follow the change of API.
18676 * scd/apdu.c (struct reader_table_s): Change API of CHECK_KEYPAD,
18677 KEYPAD_VERIFY, KEYPAD_MODIFY to have arg of PININFO_T.
18678 (check_pcsc_keypad, check_ccid_keypad): Likewise.
18679 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify): Likewise.
18680 (pcsc_keypad_verify, pcsc_keypad_modify, ct_send_apdu)
18681 (pcsc_send_apdu_direct, pcsc_send_apdu_wrapped, pcsc_send_apdu)
18682 (send_apdu_ccid, ccid_keypad_operation, my_rapdu_send_apdu, send_apdu)
18683 (send_le): Follow the change of API.
18684 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
18685 (apdu_keypad_modify): Change the API.
18686 * scd/app-dinsig.c, scd/app-nks.c, scd/app-openpgp.c: Follow the
18689 SCD: Clean up. Remove PADLEN for keypad input.
18690 + commit ca89277cb4cb9558da97a71a4cb070cb77c9b536
18691 * scd/apdu.c (struct pininfo_s): Use iso7816_pininfo_s.
18692 (struct reader_table_s): Remove last arg from check_keypad method.
18693 (check_pcsc_keypad, check_pcsc_keypad): Remove PIN_PADLEN.
18694 (pcsc_keypad_verify, pcsc_keypad_modify): Don't check PIN_PADLEN.
18695 (send_apdu_ccid, ccid_keypad_operation): Remove PIN_PADLEN.
18696 (apdu_check_keypad, apdu_keypad_verify, apdu_keypad_modify):
18699 * scd/apdu.h (apdu_check_keypad, apdu_keypad_verify)
18700 (apdu_keypad_modify): Remove PIN_PADLEN.
18702 * scd/ccid-driver.c (ccid_transceive_secure): Remove PIN_PADLEN.
18704 * scd/ccid-driver.h (ccid_transceive_secure): Remove PIN_PADLEN.
18706 * scd/iso7816.c (iso7816_check_keypad, iso7816_verify_kp)
18707 (iso7816_change_reference_data_kp): Remove PADLEN.
18709 * scd/iso7816.h (struct iso7816_pininfo_s): Remove PADLEN, PADCHAR.
18711 SCD: Add option enable-keypad-varlen and support for GEMPC_PINPAD.
18712 + commit d9f6cc7502793ed41928042cc2f968c8c7effc22
18713 * scd/scdaemon.h (opt): Add enable_keypad_varlen.
18714 * scd/scdaemon.c (cmd_and_opt_values): Add oEnableKeypadVarlen.
18715 (opts, main): Add oEnableKeypadVarlen.
18716 * scd/ccid-driver.c (GEMPC_PINPAD): New.
18717 (ccid_transceive_secure): Add enable_varlen handling.
18718 Enable GEMPC_PINPAD.
18720 2013-01-30 Werner Koch <wk@gnupg.org>
18722 Remove unused status codes.
18723 + commit 50a7badbdacac8ba472b35090c1aab4568434d04
18724 * common/status.h (STATUS_BEGIN_STREAM, STATUS_END_STREAM)
18725 (STATUS_SIEXPIRED): Remove unused codes.
18727 gpg: Add status line PINENTRY_LAUNCHED.
18728 + commit 1cd6445eec4c3642ad92afb02f3563a01cc10c10
18729 * common/status.h (STATUS_PINENTRY_LAUNCHED): New.
18730 * g10/server.c (server_local_s): Add field allow_pinentry_notify.
18731 (option_handler): Add option "allow-pinentry-notify".
18732 (gpg_proxy_pinentry_notify): New.
18733 * g10/call-agent.c (default_inq_cb): Factor code out to the new
18736 2013-01-25 NIIBE Yutaka <gniibe@fsij.org>
18738 agent: Fix a bug of handling return code from npth_join.
18739 + commit 19994466449a93704d38d429ca1ea36f63da0bf0
18740 * agent/call-pinentry.c (agent_popup_message_stop): Fix npth_join
18743 2013-01-11 Christian Aistleitner <christian@quelltextlich.at>
18745 gpg: Fix honoring --cert-digest-algo when recreating a cert.
18746 + commit 60c58766aeb847b769372fa981f79abac6014500
18747 * g10/sign.c (update_keysig_packet): Override original signature's
18748 digest algo in hashed data and for hash computation.
18750 2013-01-11 Werner Koch <wk@gnupg.org>
18752 Fix spurious cruft from configure summary output.
18753 + commit 7a638c094fa1aa7ed1d9caf085af9980a2664d64
18754 * configure.ac (build_scdaemon_extra): Remove $tmp cruft.
18756 2013-01-11 NIIBE Yutaka <gniibe@fsij.org>
18758 SCD: Hold lock for pinpad input.
18759 + commit 4dddf32c83f52483d95d7770232e9e808558e702
18760 * scd/apdu.c (apdu_check_keypad, apdu_keypad_verify)
18761 (apdu_keypad_modify): Hold lock to serialize communication.
18763 2013-01-08 Werner Koch <wk@gnupg.org>
18765 kbx: Switch from MD5 to SHA-1 for the checksum.
18766 + commit b11f84b858bad867f1062977a7aba30299157e90
18767 * kbx/keybox-blob.c (put_membuf): Use a NULL buf to store zero bytes.
18768 (create_blob_finish): Write just the needed space.
18769 (create_blob_finish): Switch to SHA-1.
18770 * kbx/keybox-dump.c (print_checksum): New.
18771 (_keybox_dump_blob): Print the checksum and the verification status.
18773 gpg: Cache keybox searches.
18774 + commit 492792378dc7a79316ef742b2ffaa46c6cda282a
18775 * common/iobuf.c (iobuf_seek): Fix for temp streams.
18776 * g10/pubkey-enc.c (get_session_key, get_it): Add some log_clock calls.
18777 * g10/keydb.c (dump_search_desc): New.
18778 (enum_keyblock_states, struct keyblock_cache): New.
18779 (keyblock_cache_clear): New.
18780 (keydb_get_keyblock, keydb_search): Implement a keyblock cache.
18781 (keydb_update_keyblock, keydb_insert_keyblock, keydb_delete_keyblock)
18782 (keydb_rebuild_caches, keydb_search_reset): Clear the cache.
18784 Make log_clock easier to read.
18785 + commit 5c565512b8af73bee2a176530663154b9277ef1c
18786 * common/logging.c (log_clock): Print in microseconds.
18788 gpg: Remove a function wrapper.
18789 + commit f3f5721e6843a08d1011875400f385b8cd5fe226
18790 * g10/keydb.h (keydb_search): Remove macro.
18791 * g10/keydb.c (keydb_search2): Rename to keydb_search. Change all
18794 2013-01-08 NIIBE Yutaka <gniibe@fsij.org>
18796 SCD: Support not-so-smart card readers.
18797 + commit a776f660363d20b6cc023609c4547e0aa8825d97
18798 * scd/ccid-driver.c (struct ccid_driver_s): Add auto_voltage,
18799 auto_param, and auto_pps.
18800 (parse_ccid_descriptor): Set auto_voltage, auto_param, and auto_pps.
18801 Support non-autoconf readers.
18802 (update_param_by_atr): New.
18803 (ccid_get_atr): Use 5V for PowerOn when auto_voltage is not supported.
18804 Use 0x10 when nonnull_nad for SetParameters.
18805 Call update_param_by_atr for parsing ATR, and use param for
18807 Send PPS if reader requires it and card is negotiable.
18808 When bNadValue in the return values of SetParameters == 0,
18809 clear handle->nonnull_nad flag.
18811 2013-01-07 Werner Koch <wk@gnupg.org>
18813 gpg: Set the node flags while retrieving a keyblock.
18814 + commit f6d7b3f1ee5eed32bc3257c99cb878091d26c482
18815 * g10/keydb.c (parse_keyblock_image): Add args PK_NO and UID_NO and
18816 set the note flags accordingly.
18817 (keydb_get_keyblock): Transfer PK_NO and UID_NO to parse_keyblock_image.
18818 * kbx/keybox-search.c (blob_cmp_fpr, blob_cmp_fpr_part)
18819 (blob_cmp_name, blob_cmp_mail): Return the key/user number.
18820 (keybox_search): Set the key and user number into the found struct.
18821 (keybox_get_keyblock): Add args R_PK_NO and R_UID_NO and set them from
18824 New function log_clock.
18825 + commit 0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f
18826 * common/logging.c (log_clock): New.
18827 * g10/gpg.c (set_debug): Print clock debug flag.
18828 * g10/options.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
18830 gpg: Allow searching for user ids in a keybox.
18831 + commit fb31462e7e92d4b19256e6fd40b1b6ffcef2676c
18832 * kbx/keybox-search.c (blob_cmp_name): Add arg X509 and adjust for PGP
18833 use. Change callers.
18834 (blob_cmp_mail): Add arg X509 and find the mailbox offset for PGP.
18836 (has_subject_or_alt): Rename to has_username.
18837 (has_username): Allow blobtype PGP.
18840 gpg: Allow generation of more than 4096 keys in one run.
18841 + commit 7d00e52bd58d9e40c18dcc0122b2c236ef3318f5
18842 * g10/getkey.c (cache_public_key): Make room in the cache if needed.
18844 2013-01-07 NIIBE Yutaka <gniibe@fsij.org>
18846 Update Japanese Translation.
18847 + commit bb51edc31e6595e38fcbd91d470de57d3a1a7150
18848 * po/ja.po: Fix wrong translations for designated revocation.
18849 Reported by Hideki Saito.
18854 2013-01-05 NIIBE Yutaka <gniibe@fsij.org>
18856 Update Japanese Translation.
18857 + commit 05a4458e5721a0afd600f0ec908e739fa83d58f2
18858 * po/ja.po: Fix fuzzy translations.
18860 2013-01-03 NIIBE Yutaka <gniibe@fsij.org>
18862 Update Japanese Translation.
18863 + commit 709a8f8125b9ba5e1ad1e6268cca5ac96d478f63
18864 * po/ja.po: Update with POT.
18866 Update Japanese Translation.
18867 + commit 0fae789c4125dd8492ed25bd6728b5ac98f19729
18868 * po/ja.po: Start from the new one of 2.0.
18870 2012-12-28 Werner Koch <wk@gnupg.org>
18872 gpg: Add signature cache support to the keybox.
18873 + commit 79f08fb0699f4a065e3a29bc7676a90534d7ba60
18874 * g10/keydb.c (parse_keyblock_image): Add arg SIGSTATUS.
18875 (keydb_get_keyblock): Handle it.
18876 (build_keyblock_image): Add arg SIGSTATUS.
18877 (keydb_insert_keyblock): Handle it.
18878 * kbx/keybox-blob.c (pgp_create_sig_part): Add arg SIGSTATUS.
18879 (_keybox_create_openpgp_blob): Ditto.
18880 * kbx/kbxutil.c (import_openpgp): Adjust for above change.
18881 * kbx/keybox.h (KEYBOX_FLAG_SIG_INFO): New.
18882 * kbx/keybox-search.c (_keybox_get_flag_location): Handle new flag.
18883 (keybox_get_keyblock): Add arg R_SIGSTATUS.
18884 * kbx/keybox-update.c (keybox_insert_keyblock): Add arg SIGSTATUS.
18886 kbxutil: Improve format of the Sig-Expire lines.
18887 + commit 564d10ea5cd29685a00a4096d69ae2476b60506f
18888 * kbx/keybox-dump.c (_keybox_dump_blob): Print the expirate timestamp.
18890 gpg: First working support for keyboxes.
18891 + commit a9863834244fc2a58d8950977243702d12e420a1
18892 * g10/getkey.c (get_pubkey_fast): Improve the assertion.
18893 * kbx/keybox.h: Include iobuf.h.
18894 * kbx/keybox-blob.c (keyboxblob_uid): Add field OFF.
18895 (KEYBOX_WITH_OPENPGP): Remove use of this macro.
18896 (pgp_create_key_part_single): New.
18897 (pgp_temp_store_kid): Change to use the keybox-openpgp parser.
18898 (pgp_create_key_part): Ditto.
18899 (pgp_create_uid_part): Ditto.
18900 (pgp_create_sig_part): Ditto.
18901 (pgp_create_blob_keyblock): Ditto.
18902 (_keybox_create_openpgp_blob): Ditto.
18903 * kbx/keybox-search.c (keybox_get_keyblock): New.
18904 * kbx/keybox-update.c (keybox_insert_keyblock): New.
18905 * g10/keydb.c (parse_keyblock_image):
18906 (keydb_get_keyblock): Support keybox.
18907 (build_keyblock_image): New.
18908 (keydb_insert_keyblock): Support keybox.
18910 * kbx/kbxutil.c (import_openpgp, main): Add option --dry-run and print
18911 a kbx file to stdout.
18913 * kbx/keybox-file.c (_keybox_read_blob2): Allow keyblocks up to 10^6
18916 kbxutil: Print algo number and fold similar lines.
18917 + commit f7495f1004071a0ceac394007bb37f88d7a3467f
18918 * kbx/keybox-defs.h (_keybox_openpgp_key_info): Add field ALGO.
18919 * kbx/keybox-openpgp.c (parse_key): Store algo.
18920 * kbx/kbxutil.c (dump_openpgp_key): Print algo number.
18921 * kbx/keybox-dump.c (_keybox_dump_blob): Print identical Sig-Expire
18922 value lines with a range of indices.
18924 2012-12-27 Werner Koch <wk@gnupg.org>
18926 gpg: First patches to support a keybox storage backend.
18927 + commit 91e61d52539b1808e209c43e51465c76cebb06f9
18928 * kbx/keybox-defs.h (_keybox_write_header_blob): Move prototype to ..
18929 * kbx/keybox.h: here.
18930 * kbx/keybox-init.c (keybox_lock): Add dummy function
18931 * g10/keydb.c: Include keybox.h.
18932 (KeydbResourceType): Add KEYDB_RESOURCE_TYPE_KEYBOX.
18933 (struct resource_item): Add field kb.
18934 (maybe_create_keyring_or_box): Add error descriptions to diagnostics.
18935 Add arg IS_BOX. Write a header for a new keybox file.
18936 (keydb_add_resource): No more need for the force flag. Rename the
18937 local variable "force" to "create". Add URL scheme "gnupg-kbx". Add
18938 magic test to detect a keybox file. Add basic support for keybox.
18939 (keydb_new, keydb_get_resource_name, keydb_delete_keyblock)
18940 (keydb_locate_writable, keydb_search_reset, keydb_search2): Add
18941 support for keybox.
18942 (lock_all, unlock_all): Ditto.
18943 * g10/Makefile.am (needed_libs): Add libkeybox.a.
18944 (gpg2_LDADD, gpgv2_LDADD): Add KSBA_LIBS as a workaround.
18946 * g10/keydb.h (KEYDB_RESOURCE_FLAG_PRIMARY)
18947 KEYDB_RESOURCE_FLAG_DEFAULT, KEYDB_RESOURCE_FLAG_READONLY): New.
18948 * g10/gpg.c, g10/gpgv.c (main): Use new constants.
18950 2012-12-20 Werner Koch <wk@gnupg.org>
18952 gpg: Import only packets which are allowed in a keyblock.
18953 + commit f0b33b6fb8e0586e9584a7a409dcc31263776a67
18954 * g10/import.c (valid_keyblock_packet): New.
18955 (read_block): Store only valid packets.
18957 2012-12-19 Werner Koch <wk@gnupg.org>
18959 gpg: Make commit 2b3cb2ee actually work.
18960 + commit d61f7402f2b0f6dd288e403ed9408fd65e617f85
18961 * g10/sign.c (update_keysig_packet): Use digest_algo.
18963 (cherry-picked from commit d23ec86095714d388acac14b515445fe69f019e9)
18965 gpg: Suppress "public key already present" in quiet mode.
18966 + commit 8325d616593187ff227853de0295e3269b96edcb
18967 * g10/pkclist.c (find_and_check_key, build_pk_list): Print a
18968 diagnostic only in non-quiet mode.
18970 2012-12-18 Werner Koch <wk@gnupg.org>
18972 common: Add meta option ignore-invalid-option.
18973 + commit 41d564333d35c923f473aa90625d91f8fe18cd0b
18974 * common/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New.
18975 (initialize): Init field IIO_LIST.
18976 (ignore_invalid_option_p): New.
18977 (ignore_invalid_option_add): New.
18978 (ignore_invalid_option_clear): New.
18979 (optfile_parse): Implement meta option.
18981 2012-12-13 Werner Koch <wk@gnupg.org>
18982 Hans of Guardian <hans@guardianproject.info>
18984 utf8conv.c: Add hacks for Android.
18985 + commit 6177fb3c87f485fb654bbba492d04508755718b3
18986 * common/utf8conv.c [HAVE_ANDROID_SYSTEM]: Do not include iconv.h.
18987 (iconv_open, iconv_close, load_libiconv) [HAVE_ANDROID_SYSTEM]: New
18989 (set_native_charset) [HAVE_ANDROID_SYSTEM]: Force use of "utf-8".
18990 (jnlib_iconv_open) [HAVE_ANDROID_SYSTEM]: Act the same as under W32.
18991 (jnlib_iconv) [HAVE_ANDROID_SYSTEM]: Ditto.
18992 (jnlib_iconv_close) [HAVE_ANDROID_SYSTEM]: Ditto.
18994 2012-12-13 NIIBE Yutaka <gniibe@fsij.org>
18996 SCD: Fix the process of writing key or generating key.
18997 + commit e7dca3e83ebd6df0a7ea55e97c3cd6e91be90af5
18998 * scd/app-openpgp.c (store_fpr): Flush KEY-FPR and KEY-TIME.
19000 2012-12-12 Werner Koch <wk@gnupg.org>
19002 ssh: Support ECDSA keys.
19003 + commit 649b31c663b8674bc874b4ef283d714a13dc8cfe
19004 * agent/command-ssh.c (SPEC_FLAG_IS_ECDSA): New.
19005 (struct ssh_key_type_spec): Add fields CURVE_NAME and HASH_ALGO.
19006 (ssh_key_types): Add types ecdsa-sha2-nistp{256,384,521}.
19007 (ssh_signature_encoder_t): Add arg spec and adjust all callers.
19008 (ssh_signature_encoder_ecdsa): New.
19009 (sexp_key_construct, sexp_key_extract, ssh_receive_key)
19010 (ssh_convert_key_to_blob): Support ecdsa.
19011 (ssh_identifier_from_curve_name): New.
19012 (ssh_send_key_public): Retrieve and pass the curve_name.
19013 (key_secret_to_public): Ditto.
19014 (data_sign): Add arg SPEC and change callers to pass it.
19015 (ssh_handler_sign_request): Get the hash algo from SPEC.
19016 * common/ssh-utils.c (get_fingerprint): Support ecdsa.
19018 * agent/protect.c (protect_info): Add flag ECC_HACK.
19019 (agent_protect): Allow the use of the "curve" parameter.
19020 * agent/t-protect.c (test_agent_protect): Add a test case for ecdsa.
19022 * agent/command-ssh.c (ssh_key_grip): Print a better error code.
19024 2012-12-11 Werner Koch <wk@gnupg.org>
19026 ssh: Rewrite a function for better maintainability.
19027 + commit f76a0312c3794afd81fe1e172df15eb0612deae0
19028 * agent/command-ssh.c (ssh_signature_encoder_dsa): Rewrite.
19030 2012-12-10 Werner Koch <wk@gnupg.org>
19032 ssh: Improve key lookup for many keys.
19033 + commit d2777f84be0ded5906a9bec3bc23cfed0a9be02f
19034 * agent/command-ssh.c: Remove dirent.h.
19035 (control_file_s): Add struct item.
19036 (rewind_control_file): New.
19037 (search_control_file): Factor code out to ...
19038 (read_control_file_item): New.
19039 (ssh_handler_request_identities): Change to iterate over entries in
19042 ssh: Cleanup sshcontrol file access code.
19043 + commit 25fb53ab4ae7e1c098500229c776d29b82713a20
19044 * agent/command-ssh.c (SSH_CONTROL_FILE_NAME): New macro to replace
19045 the direct use of the string.
19046 (struct control_file_s, control_file_t): New.
19047 (open_control_file, close_control_file): New. Use them instead of
19048 using fopen/fclose directly.
19050 agent: Add envvar "gnupg_SSH_AUTH_SOCK_by"
19051 + commit 36ba7845995dd3caf8faeec3e09b3ffb879fc29b
19052 * agent/gpg-agent.c (main): Pass new envar gnupg_SSH_AUTH_SOCK_by to
19053 an invoked process.
19055 config: Update npth.m4.
19056 + commit ceab60b59d907354d323ace09d7b3f2d36d330fb
19057 * m4/npth.m4: Take from current npth master.
19059 2012-12-04 NIIBE Yutaka <gniibe@fsij.org>
19061 Revert SCD changes of 2010-05-03.
19062 + commit 1e1326aeb8923782138e133f091afec41d969c40
19063 * scd/apdu.c (pcsc_no_service): Remove.
19064 (open_pcsc_reader_direct, open_pcsc_reader_wrapped): Remove
19065 pcsc_no_service support.
19066 (apdu_open_reader): Remove R_NO_SERVICE.
19067 * scd/apdu.h (apdu_open_reader): Remove R_NO_SERVICE.
19068 * scd/command.c (reader_disabled): Remove.
19069 (get_current_reader): Follow the change of R_NO_SERVICE.
19070 (open_card, cmd_serialno, scd_command_handler): Remove reader_disabled
19072 * scd/sc-copykeys.c (main): Follow the change of R_NO_SERVICE.
19074 Don't keep opening unavailable card reader.
19075 + commit baf7b09e124f9eb4ca4b8ee02474ee7710a95a40
19076 * scd/command.c (update_reader_status_file): Don't call
19077 get_current_reader.
19079 2012-11-30 David Shaw <dshaw@jabberwocky.com>
19081 Refresh sample keys.
19082 + commit b8eb2ab56971a309353ae2682bc6ef1357e9ac53
19085 Adjust awk to not add trailing whitespace.
19086 + commit 3f8ad564674431b4c0c6cff259f02248c80a6ef9
19087 * mksamplekeys: Tweak awk script to not add trailing whitespace to
19088 blank lines (makes git pre-commit hook unhappy)
19090 2012-11-29 David Shaw <dshaw@jabberwocky.com>
19092 The keyserver search menu should honor --keyid-format.
19093 + commit 7602d9e3edda99b0b65ba928eef435dab04ecd09
19094 * keyserver.c (print_keyrec): Honor --keyid-format when getting back
19095 full fingerprints from the keyserver (the comment in the code was
19096 correct, the code was not).
19098 2012-11-27 Werner Koch <wk@gnupg.org>
19100 Fix printing of ECC algo names in hkp keyserver listings.
19101 + commit 3d2da6c82163ffbc2e827abc4144dc3197ed53db
19102 * g10/keyserver.c (print_keyrec): Map OpenPGP algorithm ids.
19104 2012-11-26 Ben Kibbey <bjk@luxsci.net>
19106 Check for inet_addr() in -lnsl.
19107 + commit 66331e138ec17e176cc3f45bb095820866d5358c
19108 * configure.ac: Check for inet_addr() in libnsl.
19110 2012-11-20 Werner Koch <wk@gnupg.org>
19112 Do not use a broken ttyname.
19113 + commit 835698b72bc509565aad52b0753f1c56c1a8f062
19114 * configure.ac (HAVE_BROKEN_TTYNAME): New ac_define set for Android
19116 * common/util.h (gnupg_ttyname): New macro. Change all callers of
19117 ttyname to use this macro instead.
19118 (ttyname) [W32]: Rename to _gnupg_ttyname and use also if
19119 HAVE_BROKEN_TTYNAME is defined.
19120 * common/simple-pwquery.c (agent_send_all_options): Keep on using
19121 ttyname unless HAVE_BROKEN_TTYNAME is set. This is because this file
19122 may be used standalone.
19124 2012-11-16 Werner Koch <wk@gnupg.org>
19126 Fix non-portable use of chmod in autogen.sh.
19127 + commit e7bc5012c568da9ceb0a80a8f3fe3edf3dac9564
19128 * autogen.sh: Remove option -c from chmod.
19130 Improve parsing of the GIT revision number.
19131 + commit 011faa0c68cf0c628ef581193166e9ac9bf22b71
19132 * configure.ac (mmm4_revision): Use git rev-parse.
19134 Add an OpenPGP card vendor.
19135 + commit ac775780fef3ef63f896e822add9ff6ea7e5119c
19136 * g10/card-util.c (get_manufacturer): Add Yubico.
19138 2012-11-06 Werner Koch <wk@gnupg.org>
19140 agent: Use wipememory instead of memset in one place.
19141 + commit 9f0e9ea80ca30269770eb955e33b54401bff917f
19142 * agent/command.c (clear_outbuf): Use wipememory. Suggested by Ben
19145 Allow decryption with card keys > 3072 bits.
19146 + commit 905b6a36d3ca21b2f619721e1de892398e5eb759
19147 * scd/command.c (MAXLEN_SETDATA): New.
19148 (cmd_setdata): Add option --append.
19149 * agent/call-scd.c (agent_card_pkdecrypt): Use new option for long
19152 * scd/app-openpgp.c (struct app_local_s): Add field manufacturer.
19153 (app_select_openpgp): Store manufacturer.
19154 (do_decipher): Print a note for broken cards.
19156 2012-11-02 NIIBE Yutaka <gniibe@fsij.org>
19158 agent: Fix wrong use of gcry_sexp_build_array.
19159 + commit 8f8c29d24ca13f987e6c118702b428a2051b7072
19160 * findkey.c (agent_public_key_from_file): Fix use of
19161 gcry_sexp_build_array.
19163 2012-10-31 NIIBE Yutaka <gniibe@fsij.org>
19165 SCD: Upon error, open_pcsc_reader_wrapped does same as _direct.
19166 + commit 8df89f3e9cf0255f11011c2f1df0d419a5c23a8c
19167 * scd/apdu.c (PCSC_E_NO_SERVICE): New.
19168 (open_pcsc_reader_direct): Use PCSC_E_NO_SERVICE.
19169 (open_pcsc_reader_wrapped): Set pcsc_no_service.
19171 2012-08-24 Werner Koch <wk@gnupg.org>
19173 Update and enable French translation.
19174 + commit 76055d49d1c8b8e4f6245e6729cae81b1eaecbf6
19175 * po/fr.po: Update.
19176 * po/LINGUAS: Enable fr.
19178 2012-08-24 David Prévot <taffit@debian.org>
19180 Fix typos spotted during translations.
19181 + commit ba591e2f14c0d85ba15346ffd04b9e7d72ec89dc
19182 * agent/genkey.c: s/to to/to/
19183 * sm/*.c: s/failed to allocated/failed to allocate/
19184 * sm/certlist.c, ./dirmngr/validate.c: s/should have not/should not have/
19185 * g10/seskey.c: missing closing parenthesis
19186 * dirmngr/crlcache.c: s/may has/may have/
19190 * g10/gpg.c, kbx/kbxutil.c, sm/gpgsm.c: uppercase after Syntax
19191 * dirmngr/dirmngr_ldap: no period in Syntax
19192 * dirmngr/dirmngr-client.c: infinitive for option description:
19193 s/certificates are expected/expect certificates/
19195 Keep previous msgids of translated messages.
19196 + commit bf95408fc33709d154cd41566d33af3ec3c48886
19197 * po/Makefile.in.in: Use --previous with msgmerge.
19199 2012-08-24 Hans-Christoph Steiner <hans@eds.org>
19201 Fix build system for Android by disabling tests since its x-compiled.
19202 + commit 1da04bfb3f5714a0fa6d0b779d0d2ae4e9544b8f
19203 * configure.ac (HAVE_ANDROID_SYSTEM, RUN_TESTS): New.
19204 (AH_BOTTOM) [__ANDROID__]: Do not re-define ttyname.
19205 * Makefile.am: Depend tests on new RUN_TESTS conditional.
19207 2012-08-24 Werner Koch <wk@gnupg.org>
19209 Fix left over use of jnlib on some platforms.
19210 + commit 8156a38674421deef6c2eb3e91e0186fe7fe4b26
19211 * tools/watchgnupg.c: Take mischelp.h from common/ and not jnlib/.
19213 2012-06-25 NIIBE Yutaka <gniibe@fsij.org>
19215 scd: handle reader/token removal.
19216 + commit ca8eec8e28abb8473d02dbaf8d61cfb1094c5c50
19217 * scd/apdu.c (pcsc_error_to_sw): PCSC_E_UNKNOWN_READER means
19220 2012-06-05 Werner Koch <wk@gnupg.org>
19222 Change all quotes in strings and comments to the new GNU standard.
19223 + commit 096e7457ec636bcfcf128678660eb2f2e19f113a
19224 The asymmetric quotes used by GNU in the past (`...') don't render
19225 nicely on modern systems. We now use two \x27 characters ('...').
19227 The proper solution would be to use the correct Unicode symmetric
19228 quotes here. However this has the disadvantage that the system
19229 requires Unicode support. We don't want that today. If Unicode is
19230 available a generated po file can be used to output proper quotes. A
19231 simple sed script like the one used for en@quote is sufficient to
19234 The changes have been done by applying
19236 sed -i "s/\`\([^'\`]*\)'/'\1'/g"
19238 to most files and fixing obvious problems by hand. The msgid strings in
19239 the po files were fixed with a similar command.
19241 2012-05-24 Werner Koch <wk@gnupg.org>
19243 Print the hash algorithm in colon mode key listing.
19244 + commit fc00d3fcb201476b3495f47138fa35b71c52f403
19245 * g10/keylist.c (list_keyblock_colon): Print digest_algo.
19247 Fix type conflict warning.
19248 + commit f8a8c71c41bc1893df8af6ce522876ccbf6240a9
19249 * g10/keylist.c: Change min_cert_level to a byte.
19251 2012-05-11 Werner Koch <wk@gnupg.org>
19253 Switch to the new automagic beta numbering scheme.
19254 + commit 68777b40dcf215305a325185f6bd9cfd6dcc0542
19255 * configure.ac: Add all the require m4 magic.
19257 2012-05-08 Werner Koch <wk@gnupg.org>
19259 Add tweaks for the not anymore patented IDEA algorithm.
19260 + commit b4d9f8dbc8e074cd91bbd3e2e54e2b77c9268d1a
19261 * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2
19262 compatibility mode.
19263 * g10/misc.c (idea_cipher_warn): Remove. Also remove all callers.
19264 * common/status.h (STATUS_RSA_OR_IDEA): Remove. Do not emit this
19268 + commit 59b77f9ea7dfa4d5c74573d2186c9a3e129ab3bf
19269 * po/de.po: Update.
19271 common: Remove generated files only during maintainer-clean.
19272 + commit d800fa5ce6102e069305f8e1a5d55d18ac3a1993
19273 * common/Makefile.am (CLEANFILES): Rename to MAINTAINERCLEANFILES.
19275 2012-04-30 Werner Koch <wk@gnupg.org>
19277 agent: Fix deadlock in trustlist due to the switch to npth.
19278 + commit 0f02fba19df16c82ca1ad44a8cb09f952d755598
19279 * agent/trustlist.c (clear_trusttable): New.
19280 (agent_reload_trustlist): Use new function.
19281 (read_trustfiles): Require to be called with lock held.
19282 (agent_istrusted): Factor all code out to ...
19283 (istrusted_internal): new. Add ALREADY_LOCKED arg. Make sure the
19284 table islocked. Do not print TRUSTLISTFLAG stati if called internally.
19285 (agent_marktrusted): Replace calls to agent_reload_trustlist by
19288 2012-04-26 NIIBE Yutaka <gniibe@fsij.org>
19290 make DNS and URI fields work in gpgsm --gen-key.
19291 + commit 8d7522837c6dba3065d24594bcdbe7b99a702cde
19292 * sm/certreqgen-ui.c (gpgsm_gencertreq_tty): Actually set mb_uri and
19293 mb_dns.avoid buffer strncpy-induced buffer overrun
19295 2012-04-26 Jim Meyering <jim@meyering.net>
19297 avoid buffer strncpy-induced buffer overrun.
19298 + commit 20c9ac4df34e25f7085bb4e4ab5ea7223932f5c4
19299 * dirmngr/crlcache.c (open_dir): Ensure that both this_update
19300 and next_update member strings are NUL-terminated.
19302 remove doubled words in a comment.
19303 + commit 6e3882785a629b361c57c8b9d5cad51fb234ac23
19306 2012-04-20 Werner Koch <wk@gnupg.org>
19308 Change license for some files in common to LGPLv3+/GPLv2+.
19309 + commit 37df3d5f593f76ddbf1b9dc6de0173b7bb85c0ad
19310 Having the LGPL on the common GnuPG code helps to share code
19311 between GnuPG and related projects (like GPGME and Libassuan). This
19312 is good for interoperability and to reduces bugs.
19314 * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
19315 * common/b64enc.c, common/convert.c, common/dns-cert.c
19316 * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
19317 * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
19318 * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
19319 * common/helpfile.c, common/homedir.c, common/http.c, common/http.h
19320 * common/i18n.c, common/init.c, common/init.h, common/iobuf.c
19321 * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
19322 * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
19323 * common/percent.c, common/pka.c, common/pka.h, common/session-env.c
19324 * common/session-env.h, common/sexp-parse.h, common/sexputil.c
19325 * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
19326 * common/ssh-utils.h, common/sysutils.c, common/sysutils.h
19327 * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
19328 * common/userids.c, common/userids.h, common/xasprintf.c: Change
19329 license to LGPLv3+/GPLv2+/
19331 2012-04-10 Ben Kibbey <bjk@luxsci.net>
19333 Fix killing PID -1.
19334 + commit bee0ac28c9c8027540ae56900b9f85e0bd555f1d
19335 When the KILLSCD command had been sent a race condition would occur
19336 causing PID -1 getting killed, which on Linux seems to terminate all
19337 applications for the current user.
19339 2012-04-05 Werner Koch <wk@gnupg.org>
19341 Do not mix test result with progress lines.
19342 + commit f1e1387bee286c7434f0462185048872bcdb4484
19343 This makes parsing of the results easier. Fixes bug#1400.
19345 * tests/openpgp/defs.inc (progress_cancel, progress_end)
19346 (progress_new): New.
19347 * tests/openpgp/conventional-mdc.test: Use progress functions
19348 * tests/openpgp/conventional.test: Ditto.
19349 * tests/openpgp/encrypt-dsa.test: Ditto.
19350 * tests/openpgp/encrypt.test: Ditto.
19351 * tests/openpgp/sigs.test: Ditto.
19353 2012-04-04 Ben Kibbey <bjk@luxsci.net>
19355 Mention status messages in the documentation.
19356 + commit 99fc61f1cf09c7f72a9037d91d3cf0cd2e035ae6
19357 Note INQUIRE_MAXLEN.
19359 Document PASSWD --preset.
19360 + commit a577f06c4aecc0af5b492e15812e9150c747cbe4
19363 Document GENKEY options.
19364 + commit 108e8f622ef9cfa256707debec1d379ce3cf21ca
19367 Document PRESET_PASSPHRASE.
19368 + commit 96e107fc29db625b247022ae1bf2cbe90b939c5d
19371 Document CLEAR_PASSPHRASE.
19372 + commit 26b59d78c43d72fa28609fb2c0d80fb377393127
19373 And describe the --mode=normal option.
19375 2012-03-27 Werner Koch <wk@gnupg.org>
19377 Fix timegm regression test.
19378 + commit 17499e761e8cd0fe867b5b5f3e42a71b6d45f954
19379 * common/t-timestuff.c (test_timegm): Change test to use January and
19380 not February or December+1. Bug spotted by Daniel Kahn Gillmor.
19382 Print warning for arguments not considered an option.
19383 + commit de01c51ecb3918f427aa76281351749c8ad07ed6
19384 GnuPG requires that options are given before other arguments. This
19385 can sometimes be confusing. We now print a warning if we found an
19386 argument looking alike a long option without being preceded by the
19387 stop option. This is bug#1343.
19389 * common/argparse.h (ARGPARSE_FLAG_STOP_SEEN): New.
19390 * common/argparse.c (arg_parse): Set new flag.
19391 * g10/gpg.c (main): Print the warning.
19392 * agent/gpg-agent.c (main): Ditto.
19393 * dirmngr/dirmngr.c (main): Ditto.
19394 * g13/g13.c (main): Ditto.
19395 * scd/scdaemon.c (main): Ditto.
19396 * sm/gpgsm.c (main): Ditto.
19397 * tools/gpg-connect-agent.c (main): Ditto.
19398 * tools/gpgconf.c (main): Ditto.
19400 2012-03-26 Werner Koch <wk@gnupg.org>
19402 Allow compress algorithm 0.
19403 + commit 7ddbcb6b6ab8b26c8e609fcd95c2c8a89bc20a7d
19404 * g10/mainproc.c (proc_compressed): Remove superfluous check for
19405 compress algorithm 0. Reported by pfandrade. This is bug#1326.
19407 Add mksamplekeys script.
19408 + commit 7441e622ffb3296686bd0d7f04b4051466aaad38
19409 * doc/mksamplekeys: New.
19411 2012-02-28 Marcus Brinkmann <mb@g10code.com>
19413 Replace npth_yield in busy wait by npth_usleep.
19414 + commit 8f8c6594147608b1021c16fc3561feb96da5d55a
19415 * dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): Call
19416 npth_usleep instead of npth_yield.
19418 2012-02-16 Marcus Brinkmann <mb@g10code.com>
19420 Check for lber and link dirmngr_ldap to it.
19421 + commit 76ff42ef8d1232dd36bf48c1020b0b9b2afb1c7d
19422 * configure.ac (LBER_LIBS, HAVE_LBER): New variables, check for lber.
19423 * dirmngr/Makefile.am (dirmngr_lda_LDADD): Add $(LBER_LIBS).
19425 2012-02-07 Werner Koch <wk@gnupg.org>
19427 agent: Add pin length field to the shadowed private key format.
19428 + commit b817ae7df947093384a25797999a9aa187e20f9c
19429 This is not yet fully implemented. It will eventually allow to
19430 support pinpad equipped readers which do not support variable length
19432 * agent/protect.c (parse_shadow_info): Add optional arg R_PINLEN and
19433 parse pinlen info. Change all callers to pass NULL for it.
19435 Use new status printing functions.
19436 + commit 12ea5c904c0008a2adec2e8bbe45dac629548e7d
19437 * agent/command.c (cmd_geteventcounter): Get rid of static buffers.
19438 * scd/command.c (cmd_serialno, cmd_learn): Simplify by using
19439 print_assuan_status.
19441 agent: New function agent_print_status.
19442 + commit e78585cd0f553d92f332e33810ab636758bc88a2
19443 * common/asshelp2.c (vprint_assuan_status): New.
19444 (print_assuan_status): Re-implement using above func.
19445 * agent/command.c (agent_print_status): New.
19447 po: Add Ukrainian translation.
19448 + commit 8d8d740bfd73d8764a03220c0b0c949e03fea351
19451 common: Replace macro based function calls by using DEFAULT_ERRSOURCE.
19452 + commit 13ec74481ce0137f7a60b3256cc4840073c77efa
19453 * common/dns-cert.h (get_dns_cert): Remove macro.
19454 * common/dns-cert.c (_get_dns_cert): Rename to get_dns_cert. Replace
19455 arg ERRSOURCE by global DEFAULT_ERRSOURCE.
19456 * common/http.h (http_parse_uri, http_raw_connect, http_open)
19457 (http_open_document, http_wait_response): Remove macros.
19458 * common/http.c (_http_parse_uri, _http_raw_connect, _http_open)
19459 (_http_open_document, _http_wait_response): Remove underscore from
19460 symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
19461 * common/ssh-utils.h (ssh_get_fingerprint)
19462 (ssh_get_fingerprint_string): Remove macros.
19463 * common/ssh-utils.h (_ssh_get_fingerprint)
19464 (_ssh_get_fingerprint_string): Remove underscore from symbols.
19465 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
19466 * common/tlv.h (parse_ber_header, parse_sexp): Remove macros.
19467 * common/tlv.c: Include util.h.
19468 (_parse_ber_header, _parse_sexp): Remove underscore from symbols.
19469 Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
19471 2012-02-06 Werner Koch <wk@gnupg.org>
19473 Add replacement hack for Android's broken ttyname.
19474 + commit 115a6ed55d1f6be33f66de6734359fa590ca3749
19475 * configure.ac (HAVE_TTYNAME) [__ANDROID__]: Add hack.
19477 agent: Simplify printing of INQUIRE_MAXLEN.
19478 + commit 7981cdd1345d51fd917b2375691ead60c24db2cd
19479 * agent/command.c: Include asshelp.h.
19480 (cmd_pkdecrypt, cmd_genkey, cmd_preset_passphrase)
19481 (pinentry_loopback): Use print_assuan_status for INQUIRE_MAXLEN.
19483 common: Add function print_assuan_status.
19484 + commit 1a0df8506050448f16c63666850e3ae6d94a971b
19485 * common/asshelp2.c: New.
19486 (print_assuan_status): New function.
19487 * common/Makefile.am (common_sources): Add asshelp2.c.
19489 common: Add a global variable to for the default error source.
19490 + commit eb0faef81dae2cba1f62056fdc4dc2a7d58ac86a
19491 For the shared code parts it is cumbersome to pass an error sourse
19492 variable to each function. Its value is always a constant for a given
19493 binary and thus a global variable makes things a lot easier than the
19494 former macro stuff.
19495 * common/init.c (default_errsource): New global var.
19496 (init_common_subsystems): Rename to _init_common_subsystems. Set
19498 * common/init.h: Assert value of GPG_ERR_SOURCE_DEFAULT.
19499 (init_common_subsystems): New macro.
19500 * common/util.h (default_errsource): Add declaration.
19501 * kbx/keybox-defs.h: Add some GPG_ERR_SOURCE_DEFAULT trickery.
19503 2012-02-03 Ben Kibbey <bjk@luxsci.net>
19505 Also let GENKEY and PKDECRYPT send the INQUIRE_MAXLEN status message.
19506 + commit ecda65498ac60dfde50fbbc71cd0cc321d7175a9
19507 * agent/command.c (cmd_pkdecrypt): Send the INQUIRE_MAXLEN status
19508 message before doing the inquire.
19509 (cmd_genkey): Ditto.
19511 2012-02-02 Ben Kibbey <bjk@luxsci.net>
19513 Inform the client of the preset passphrase length.
19514 + commit 3f7788f2e035eb939abb27b3a53854ec0fc6178c
19515 * agent/command.c (cmd_preset_passphrase): Send the INQUIRE_MAXLEN
19516 status message before inquiring the passphrase.
19518 2012-02-01 David Shaw <dshaw@jabberwocky.com>
19520 Honor --cert-digest-algo when recreating a cert.
19521 + commit 2b3cb2ee94625498e7a7f939216c9bcddef6ec20
19522 * g10/sign.c (update_keysig_packet): Honor --cert-digest-algo when
19525 This is used by various things in --edit-key like setpref, primary,
19526 etc. Suggested by Christian Aistleitner.
19528 2012-01-27 Werner Koch <wk@gnupg.org>
19530 gl: Add support for Android to stdint.h replacement.
19531 + commit bdde44ae8d4709e33c09781c3d37a5da2c7a5e0d
19532 * gl/stdint_.h: When included from Bionic <sys/types.h>, just include
19533 the system's <stdint.h>.
19535 gpg-connect-tool: Take the string "true" as a true condition.
19536 + commit 2871422d9a889cb632f59efda4d9cd170fc9fca7
19537 * tools/gpg-connect-agent.c (main): Handle strings "true" and "yes" in
19538 conditions as expected.
19540 2012-01-26 Ben Kibbey <bjk@luxsci.net>
19542 Return GPG_ERR_CARD_NOT_PRESENT when pinentry-mode=loopback.
19543 + commit cf748e8736b984194345bfd74887b35d3d23fa37
19544 Since there isn't a way to prompt the user to insert the smartcard when
19545 pinentry-mode=loopback, return GPG_ERR_CARD_NOT_PRESENT instead of
19546 GPG_ERR_NO_PIN_ENTRY.
19548 * agent/divert-scd.c (ask_for_card): Return GPG_ERR_CARD_NOT_PRESENT
19549 when pinentry-mode=loopback.
19551 Also check for GPG_ERR_ASS_CANCELED during an inquire.
19552 + commit 3da10eefcb09a520f11e4fae7f59a33f80ffba69
19553 Fix pinentry-mode=loopback when cancelling an inquire from scdaemon.
19554 This is similar to commit 4f21f8d but for both protocol command
19555 cancellation and pinentry cancellation.
19557 * agent/call-scd.c (agent_card_pkdecrypt): Check for
19558 GPG_ERR_ASS_CANCELED.
19559 (agent_card_pksign): Ditto.
19561 2012-01-25 Werner Koch <wk@gnupg.org>
19563 nPth is now a hard requirement for GnuPG.
19564 + commit 001352077cdc7e402421c77328bea1a052005673
19565 * configure.ac: Remove cruft to allow building without npth.
19567 Require libassuan 2.1.0.
19568 + commit c254d0f0d13a54777a62dad8f78a8f287d6ae565
19569 * configure.ac (NEED_LIBASSUAN_VERSION): Set to 2.1.0. This is due to
19572 Fix strerror vs. gpg_strerror usage.
19573 + commit 2be7818c6d916a69ffdf88cce32960949a56e893
19574 This bug was introduced by the migration to npth.
19575 * agent/gpg-agent.c (handle_connections): Use strerror.
19577 Add missing variable.
19578 + commit a55d2e16f1090264338dc3ad0b2afca28db27c09
19579 * agent/gpg-agent.c (handle_connections) [!W32]: Add missing variable.
19581 2012-01-25 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
19583 Port LDAP wrapper to NPTH.
19584 + commit 4074f966276be10a794fd63a7f443b9d974d3982
19585 * agent/gpg-agent.c (handle_connections): Handle error.
19586 * dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c: Port to NPTH.
19588 Port Windows code to NPTH.
19589 + commit ccbb4c3652ee72386b8889358b829e256e1ebcda
19590 * agent/gpg-agent.c (get_agent_ssh_socket_name): Use
19591 INVALID_HANDLE_VALUE instead of 0.
19592 (handle_signal) [!HAVE_W32_SYSTEM]: Don't define.
19593 (handle_connections): Port Windows code to NPTH.
19594 * dirmngr/dirmngr.c (handle_connections): Port Windows code to NPTH.
19595 * g13/g13.c (handle_connections): Port Windows code to NPTH.
19596 * scd/scdaemon.c (handle_connections): Port Windows code to NPTH.
19599 + commit 7a7a59782766a8bde0c3e7156d14bb2b0e4a3951
19600 * configure.ac: Don't check for PTH but for NPTH.
19601 (AH_BOTTOM): Remove PTH_SYSCALL_SOFT.
19602 (have_pth): Rename to ...
19603 (have_npth): ... this.
19604 (USE_GNU_NPTH): Rename to ...
19605 (USE_GNU_PTH): ... this.
19606 * m4/npth.m4: New file.
19607 * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c,
19608 agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c,
19609 agent/trustlist.c, common/Makefile.am, common/estream.c,
19610 common/exechelp-posix.c, common/exechelp-w32.c,
19611 common/exechelp-w32ce.c, common/http.c, common/init.c,
19612 common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c,
19613 dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c,
19614 dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am,
19615 g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am,
19616 scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c,
19617 scd/scdaemon.c, tools/Makefile.am: Port to npth.
19619 2012-01-25 Werner Koch <wk@gnupg.org>
19621 Require gitlog-to-changelog to be installed.
19622 + commit 495dc68586356891b82a2d2b6367c4131fd17f08
19623 * Makefile.am (GITLOG_TO_CHANGELOG): New.
19624 (gen-ChangeLog): Use installed version of gitlog-to-changelog.
19626 2012-01-20 David Shaw <dshaw@jabberwocky.com>
19628 Changes to --min-cert-level should cause a trustdb rebuild (issue 1366)
19629 + commit deee8147aab086161c91e6aa6fb41d7148a630f6
19630 * g10/gpgv.c, g10/trustdb.c (read_trust_options): Add min_cert_level
19632 * g10/trustdb.c (check_trustdb_stale): Request a rebuild if
19633 pending_check_trustdb is true (set when we detect a trustdb
19634 parameter has changed).
19636 * g10/keylist.c (public_key_list): Use 'l' in the "tru" with-colons
19637 listing for min_cert_level not matching.
19639 * g10/tdbio.c (tdbio_update_version_record, create_version_record,
19640 tdbio_db_matches_options, tdbio_dump_record, tdbio_read_record,
19641 tdbio_write_record): Add a byte for min_cert_level in the tdbio
19644 2012-01-20 Werner Koch <wk@gnupg.org>
19646 estream: Fix unclean usage of realloc.
19647 + commit e97e2ced6cf3ee295a3cc9f8968969a1910380ea
19648 * common/estream-printf.c (_ESTREAM_PRINTF_MALLOC): Remove.
19649 (_ESTREAM_PRINTF_FREE): Remove.
19650 (_ESTREAM_PRINTF_REALLOC): New.
19651 (fixed_realloc) [!_ESTREAM_PRINTF_REALLOC]): New.
19652 (estream_vasprintf): Use my_printf_realloc instead of my_printf_malloc
19653 and my_printf_free.
19654 (dynamic_buffer_out): Use my_printf_realloc instead of realloc.
19656 Do not copy default merge commit log entries into the ChangeLog.
19657 + commit 7589e43b21c8d80c5a57ecb6eb78dfcd0b5dac46
19658 * scripts/gitlog-to-changelog: Skip merge commits.
19660 2012-01-18 Ben Kibbey <bjk@luxsci.net>
19662 Add the INQUIRE_MAXLEN status message.
19663 + commit ae981dd8f454e2a8bbc6429bed5abc5e87cc83d5
19664 This status message is used to inform the client of the maximum length
19665 of an inquired passphrase and is used in pinentry-mode=loopback.
19667 * agent/command.c (pinentry_loopback): Send the INQUIRE_MAXLEN status
19668 message before doing the inquire.
19670 2012-01-16 Jim Meyering <meyering@redhat.com>
19672 yat2m: don't dereference pointer to freed memory.
19673 + commit 4402dc3f0a5c5d0f26ed2ae97f9cda9cf4e695fa
19674 * doc/yat2m.c (top_parse_file): Correct macrolist-freeing loop.
19676 gpg-agent: fix lc-messages handling not to change Xauthority setting.
19677 + commit 37801918cb916ae8c641e003f204dcc70cccb29c
19678 * agent/gpg-agent.c (main): Supply omitted "break" statement for
19679 lc-messages option. Otherwise, control would fall through to the
19680 following oXauthority case and use the same value there.
19682 2012-01-15 Werner Koch <wk@gnupg.org>
19685 + commit 75a402fc25e4ec9659723dd58306aff3415736f4
19688 2012-01-14 Ben Kibbey <bjk@luxsci.net>
19690 Fix scdaemon pinentry inquire cancelation.
19691 + commit 4f21f8d6e109eae111d2da91f4c946afda4174e4
19692 Similar to commit 29af488 but also fixes PKDECRYPT and PKSIGN.
19694 * agent/call-scd.c (agent_card_pkdecrypt): Check for GPG_ERR_CANCELED
19695 when returning from the PKDECRYPT operation of scdaemon and cancel the
19697 (agent_card_pksign): Ditto.
19698 (cancel_inquire): New.
19700 2012-01-11 Werner Koch <wk@gnupg.org>
19702 gpg: Fix segv with RSA_S keys.
19703 + commit 30ec869b8c63f1edcc58110ed20b83b0e77248f8
19704 * g10/misc.c (pubkey_get_npkey, pubkey_get_nskey)
19705 (pubkey_get_nsig, pubkey_get_nenc): Map all RSA algo ids to
19708 estream: Avoid printing leading zeroes by %p on 32 bit systems.
19709 + commit b42bc48dfb4b6d4f745eb02d8de4f4dcffdacf48
19710 * common/estream-printf.c (pr_pointer): Synchronize definition of
19711 AULONG with its use.
19713 2012-01-11 David Shaw <dshaw@jabberwocky.com>
19715 Refresh sample keys.
19716 + commit 860861279bc17dd80eecc9631c4ae5d161a335fd
19719 2012-01-10 David Shaw <dshaw@jabberwocky.com>
19721 Adapt HKP fix for fingerprint/long keyid retrievals for dirmngr.
19722 + commit 3f59561cee635c6801e0a59d3abff1c064fcbdbe
19723 * dirmngr/ks-engine-hkp.c (ks_hkp_get): Use the longest valid keyid form
19725 2012-01-06 Werner Koch <wk@gnupg.org>
19727 gpg: Make the double space in the middle of a fingerprint optional.
19728 + commit 957fe728466893bc63f5ccad197d3e245dca4bf3
19729 This change might help to c+p a fingerprint from an HTML page without
19730 being enclosed in a "pre" tag.
19731 * common/userids.c (classify_user_id): Skip a second blank in the
19732 middle of a fingerprint.
19734 gpg: Allow use of a standard space separated fingerprint.
19735 + commit 372fb4fc0661014ccd9275c89e6da2208f87155f
19736 * common/userids.c (classify_user_id): Check for space separated GPG
19739 2012-01-06 NIIBE Yutaka <gniibe@fsij.org>
19741 Merge ccid_driver_improvement branch.
19742 + commit 5988c8bfb7eafaca53c8abeb793f189acd3177c6
19743 * scd/apdu.c (ccid_keypad_operation): Rename from ccid_keypad_verify.
19744 (open_ccid_reader): Use ccid_keypad_operation for verify and modify.
19746 * scd/ccid-driver.c (VENDOR_VASCO, VASCO_920): New.
19747 (ccid_transceive_apdu_level): Permit sending packet where
19748 apdulen <= 289. Support receiving packets in a chain.
19749 (ccid_transceive_secure): Maximum is 15 for VASCO DIGIPASS 920.
19750 Support keypad_modify method such as CHANGE_REFERENCE_DATA: 0x24.
19752 2012-01-03 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
19754 Silence gcc warning.
19755 + commit ed432f030e604f7b2fd4a79c2110d92b9cde7501
19756 * sm/call-dirmngr.c (get_cached_cert): Make sure buflen is initialized.
19758 Revert last change, add comment about link() return values.
19759 + commit ff2095ad7b4be7eaf9468b6ef39fd979527ecc4f
19760 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Do not check
19761 return value of link().
19763 Fix compiler warnings.
19764 + commit 0dce26778ef8abd4fc40de689d7ec9b720d26430
19765 * common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Check return
19767 * g13/g13.c: Make sure err is initialized.
19768 * scd/scdaemon.c (main) [!USE_GCRY_THREAD_CBS]: Do not define ERR.
19770 Fix last change: Only set gcrypt thread callback for older versions.
19771 + commit 61ccd8d92d9d3b8ba0eca3c2969d7f6f37e16405
19772 * dirmngr/dirmngr.c, g13/g13.c: Rename FIX_GCRY_PTH_INIT to
19773 USE_GCRY_THREAD_CBS.
19775 2012-01-03 Werner Koch <wk@gnupg.org>
19777 Terminate csh commands with a semicolon also for dirmngr.
19778 + commit 682df45d15661ed3544e2ed34bcb636200cc40f9
19779 * dirmngr/dirmngr.c (main): Terminate csh style output with a semicolon.
19781 Terminate csh commands with a semicolon.
19782 + commit d01d9ff11f46cbd61b7b8c0e04431e4f0c4a8580
19785 * agent/gpg-agent.c (main): Terminate csh style output with a semicolon.
19786 * scd/scdaemon.c: Ditto.
19788 2012-01-02 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
19790 Only set gcrypt thread callback for older version of gcrypt.
19791 + commit a2d9e48fcca6cfc2dfadef6dbd3579a30314676b
19792 * agent/gpg-agent.c, dirmngr/dirmngr.c, g13/g13.c, scd/scdaemon.c
19793 (USE_GCRY_THREAD_CBS): New macro, defined if
19794 GCRY_THREAD_OPTION_VERSION is 0.
19795 (fixed_gcry_pth_init) [!USE_GCRY_THREAD_CBS]: Don't define.
19796 (main) [!USE_GCRY_THREAD_CBS]: Do not install thread callbacks.
19798 2011-12-28 David Shaw <dshaw@jabberwocky.com>
19800 Use the longest key ID available when talking to a HKP server.
19801 + commit c6aaf024651c7d55ac9fb77a53c084efb3adc1a9
19802 This is issue 1340. Now that PKSD is dead, and SKS supports long key
19803 IDs, this is safe to do. Patch from Daniel Kahn Gillmor
19804 <dkg@fifthhorseman.net>.
19806 2011-12-20 Werner Koch <wk@gnupg.org>
19808 Post-release version number update.
19809 + commit 97d1c884e62bba94e42bb5b2bb13cd3880334c31
19812 Release 2.1.0beta3.
19813 + commit 604c130a85d4203b9d84137a42673aeaff1c0bd1
19816 Prepare for the beta3 release.
19817 + commit 8e47f1e576f70d4dbe966523057fe3078006ae8b
19820 po: Update the German translation.
19821 + commit 6f02c143440865781b4e3c1753e24e55a0de40e4
19824 Add the STEED Self-Signing Nonthority certificate.
19825 + commit fe2f1826991e8130f727ee15df1a4651f679752f
19826 * doc/com-certs.pem: Install it when creating a keybox.
19828 faq: Add section on US export restrictions.
19829 + commit 779611494dbd187d09b05d2eb10faabd31a70156
19832 Require Libassuan 2.0.3.
19833 + commit 366512abe44d9e71bb2c699c29477afa6ac71cdd
19834 * configure.ac: Require Libassuan 2.0.3.
19835 * agent/call-scd.c (ASSUAN_CONVEY_COMMENTS): Remove macro replacement.
19836 * agent/command.c (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Remove
19838 (cmd_killagent) [ASSUAN_FORCE_CLOSE]: Ditto.
19839 * scd/command.c (cmd_killscd) [ASSUAN_FORCE_CLOSE]: Ditto.
19841 2011-12-20 NIIBE Yutaka <gniibe@fsij.org>
19843 Add error log and debug log for pcsc_keypad_verify and pcsc_keypad_modify.
19844 + commit 07f20f313a0b13e5c93168a8a62ff1cbb94a4514
19845 * scd/apdu.c (pcsc_keypad_verify): Add debug log and error log.
19846 (pcsc_keypad_modify): Likewise.
19848 2011-12-19 Werner Koch <wk@gnupg.org>
19849 Ben Kibbey <bjk@luxsci.net>
19851 scd: Fix for card change returning GPG_ERR_CARD_RESET.
19852 + commit f4b7f7146349c388a2f3ce224ff2006606c66232
19853 * scd/apdu.c (apdu_connect): Do not test for zero atrlen.
19855 2011-12-16 NIIBE Yutaka <gniibe@fsij.org>
19857 Don't kill pinentry by SIGKILL but let it quit by SIGINT.
19858 + commit f6251c0d0af92331388f5e9bcd1750cbadcaca8f
19859 * agent/call-pinentry.c (agent_popup_message_stop): To pinentry, send
19860 SIGINT (was: SIGKILL).
19862 2011-12-15 David Shaw <dshaw@jabberwocky.com>
19864 Merge fix for issue 1331 from 1.4.
19865 + commit a98260c39f1c0ccdad004784cbc9440376766082
19866 * photoid.c (generate_photo_id): Check for the JPEG magic numbers
19867 instead of JFIF since some programs generate an EXIF header first.
19869 2011-12-15 Werner Koch <wk@gnupg.org>
19871 scd: Prefer application Geldkarte over DINSIG.
19872 + commit 27089564b6453deaf7b4ffe7cc5f5f290b6d892b
19873 * scd/app.c (select_application): Reorder application tests.
19875 scd: Add option --dump-atr to command APDU.
19876 + commit b22d62bd1481dfe13d60a6d16b09b9297944f063
19877 * scd/atr.c: Rewrite.
19878 * scd/Makefile.am (scdaemon_SOURCES): Add atr.c and atr.h.
19879 * scd/command.c (cmd_apdu): Add option --dump-atr.
19881 estream: New function es_fclose_snatch.
19882 + commit 7737a2c269657189a583cde7f214f20871d264f8
19883 * common/estream.c (cookie_ioctl_function_t): New type.
19884 (es_fclose_snatch): New function.
19885 (COOKIE_IOCTL_SNATCH_BUFFER): New constant.
19886 (struct estream_internal): Add field FUNC_IOCTL.
19887 (es_initialize): Clear FUNC_IOCTL.
19888 (es_func_mem_ioctl): New function.
19889 (es_fopenmem, es_fopenmem_init): Init FUNC_IOCTL.
19891 2011-12-14 Werner Koch <wk@gnupg.org>
19893 scd: Skip S/N reading for the "undefined" application.
19894 + commit 792e137ec7997a0ff5c54ff970611238d28d4ba8
19895 * scd/app.c (select_application): Skip serial number reading.
19897 scd: Add more status word values for documentation.
19898 + commit 0bac31ee9f74a25d76b08c3e0355a338908f083a
19901 scd: Add the "undefined" stub application.
19902 + commit dcd64131c60efd0189aa05d5dbce6b93547b04e3
19903 * scd/app.c (select_application): Implement the "undefined"
19906 agent: Pass comment lines from scd verbatim thru gpg-agent.
19907 + commit 45cf9de341405a228e331bd3893cbcd6b72306be
19908 * agent/call-scd.c (pass_status_thru): Pass comment lines verbatim.
19909 * tools/gpg-connect-agent.c (help_cmd_p): New.
19910 (main): Treat an "SCD HELP" the same as "HELP".
19912 scd: Fix resetting and closing of the reader.
19913 + commit 2d91febbd8d30beb7eb33f7aa80ffd5691d1d3cc
19914 * scd/command.c (update_card_removed): Do no act on an invalid VRDR.
19915 (do_reset): Ignore apdu_reset error codes for no and inactive card.
19916 Close the reader before setting the slot to -1.
19917 (update_reader_status_file): Notify the application before closing the
19920 scd: Add debug option for reader function calls.
19921 + commit 07ea8c56b507b06d4bd70e94fa51914659afac4b
19922 * scd/scdaemon.h (DBG_READER_VALUE, DBG_READER): New.
19923 * scd/apdu.c (apdu_open_reader, apdu_close_reader)
19924 (apdu_shutdown_reader, apdu_connect, apdu_disconnect)
19925 (apdu_reset, apdu_get_atr, apdu_get_status): Add debug code.
19926 (apdu_activate): Remove this unused function.
19928 2011-12-13 Werner Koch <wk@gnupg.org>
19930 scd: New option --debug-assuan-log-cats.
19931 + commit 00c760f628f4cf0fc11e79d305c172f98123f815
19932 * scd/scdaemon.c (oDebugAssuanLogCats): New.
19933 (opts): Add option --debug-assuan-log-cats.
19934 (main): Implement option.
19935 * common/asshelp.c (set_libassuan_log_cats): New.
19937 scd: Introduce a virtual reader table.
19938 + commit 24e121ef261731069868ca403b818f1168237f53
19939 The vreader table makes the code more clear by explicitly talking
19940 about APDU slots and reader indices. It also accommodates for future
19943 * scd/scdaemon.h (server_control_s): Remove READER_SLOT.
19944 * scd/scdaemon.c (scd_init_default_ctrl): Do not init READER_SLOT.
19945 * scd/app.c (check_application_conflict): Add arg SLOT.
19946 * scd/command.c (slot_status_s): Rename to vreader_s.
19947 (server_local_s): Add field VREADER_IDX as replacement for
19948 the READER_SLOT in server_control_s. Change all users.
19949 (slot_table): Rename to vreader_table. Change all users.
19950 (vreader_slot): New.
19951 (do_reset, cmd_apdu): Map vreader to apdu slot.
19952 (get_reader_slot): Rename to get_current_reader. Return -1 on error.
19953 (open_card): Map vreader toapdu slot. Pass slot to
19954 check_application_conflict.
19955 (scd_command_handler): Init VREADER_IDX.
19956 (update_reader_status_file): Reset SLOT field on error.
19958 2011-12-12 Werner Koch <wk@gnupg.org>
19960 scd: Retry command SERIALNO for an inactive card.
19961 + commit 11164662788036c4b15d30555ea33ec0b6f5a670
19962 * scd/command.c (cmd_serialno): Retry once for an inactive card.
19964 Fix detection of card removal and insertion.
19965 + commit cd29dc0f1cf7f3bd7938ffa65bf13f9a75d8c156
19966 * scd/apdu.c (apdu_connect): Return status codes for no card available
19968 * scd/command.c (TEST_CARD_REMOVAL): Also test for GPG_ERR_CARD_RESET.
19969 (open_card): Map apdu_connect status to GPG_ERR_CARD_RESET.
19971 gitlog-to-changelog: New option --tear-off.
19972 + commit ea0a21410b8fa460882c0f8de90b9291345fd4fc
19973 * scripts/gitlog-to-changelog: Add option --tear-off.
19974 * Makefile.am (gen-ChangeLog): Use that option.
19976 2011-12-07 Werner Koch <wk@gnupg.org>
19978 gpgsm: Add new validation model "steed".
19979 + commit 8a12a2000d82acfa881e8c18d028290100bf5e43
19980 * sm/gpgsm.h (VALIDATE_FLAG_STEED): New.
19981 * sm/gpgsm.c (gpgsm_parse_validation_model): Add model "steed".
19982 * sm/server.c (option_handler): Allow validation model "steed".
19983 * sm/certlist.c (gpgsm_cert_has_well_known_private_key): New.
19984 * sm/certchain.c (do_validate_chain): Handle the
19985 well-known-private-key attribute. Support the "steed" model.
19986 (gpgsm_validate_chain): Ditto.
19987 * sm/verify.c (gpgsm_verify): Return "steed" in the trust status line.
19988 * sm/keylist.c (list_cert_colon): Print the new 'w' flag.
19990 Correct punctuation in the ChangeLog summary line.
19991 + commit 14e4fdc9f97d6f12bf563adfff1e3157305d7795
19992 * Makefile.am (gen-ChangeLog): Supply --append-dot.
19994 Allow comments which will not show up in the ChangeLog.
19995 + commit cd3732841de32ce5c7841e6e158df3a5f1102f86
19996 * scripts/gitlog-to-changelog: Ignore lines after a "--" line.
19998 2011-12-06 Werner Koch <wk@gnupg.org>
20000 gpgsm: Allow specification of an AuthorityKeyIdentifier.
20001 + commit 596b84a4de58def2155d3fe56462f6607f135b69
20002 * sm/certreqgen.c (pAUTHKEYID): New.
20003 (read_parameters): Add keyword Authority-Key-Id.
20004 (proc_parameters): Check its value.
20005 (create_request): Insert an Authority-Key-Id.
20007 gpgsm: Allow arbitrary extensions for cert creation.
20008 + commit 5cdad8ff000152b4bd01953646bb87fe8703c70d
20009 * sm/certreqgen.c (pSUBJKEYID, pEXTENSION): New.
20010 (read_parameters): Add new keywords.
20011 (proc_parameters): Check values of new keywords.
20012 (create_request): Add SubjectKeyId and extensions.
20013 (parse_parameter_usage): Support "cert" and the encrypt alias "encr".
20015 gpgsm: Fix storing of the serial number.
20016 + commit 3f284e40502d8181b0b3ea66c77cd7c1252ea781
20017 * sm/certreqgen.c (create_request): Fix hex-bin conversion.
20019 2011-12-05 Werner Koch <wk@gnupg.org>
20022 + commit 9274d4d18281b3364fa8abaa821dddf124b105d7
20023 * agent/command.c (start_command_handler): Remove use of removed var.
20025 Amend the agent code with more comments.
20026 + commit 477360e8cdc458b0a36e9c7fb52a35f27766255d
20027 * agent/command.c (server_local_s): Remove unused field MESSAGE_FD.
20029 2011-12-02 Werner Koch <wk@gnupg.org>
20031 Support the Cherry ST-2000 card reader.
20032 + commit 239659d3a0b8c0c378734ca3d1e9210a02e24da7
20033 * scd/ccid-driver.c (SCM_SCR331, SCM_SCR331DI, SCM_SCR335)
20034 (SCM_SCR3320, SCM_SPR532, CHERRY_ST2000): New constants.
20035 (parse_ccid_descriptor): Use them.
20036 (scan_or_find_usb_device, ccid_transceive_secure): Handle Cherry
20037 ST-2000. Suggested by Matthias-Christian Ott.
20039 Avoid possible double free in export.c.
20040 + commit 96dc146fa17a7853277dbf3dc771c585a815c247
20041 * g10/export.c (transfer_format_to_openpgp): Avoid possible double
20042 free of LIST. Reported by NIIBE Yutaka.
20044 2011-12-02 NIIBE Yutaka <gniibe@fsij.org>
20046 Fix pinpad input support for passphrase modification.
20047 + commit bf37c32367ba149559385ee90b6435cef8bd6412
20048 * apdu.c (pcsc_keypad_verify): Have dummy Lc field with value 0.
20049 (pcsc_keypad_modify): Likewise.
20050 (pcsc_keypad_modify): It's only for ISO7816_CHANGE_REFERENCE_DATA.
20051 bConfirmPIN value is determined by the parameter p0.
20053 * app-openpgp.c (do_change_pin): The flag use_keypad should be 0 when
20054 reset_mode is on, or resetcode is on. use_keypad only makes sense for
20055 iso7816_change_reference_data_kp.
20057 * iso7816.h (iso7816_put_data_kp): Remove.
20058 (iso7816_reset_retry_counter_kp): Remove.
20059 (iso7816_reset_retry_counter_with_rc_kp): Remove.
20060 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
20062 * iso7816.c (iso7816_put_data_kp): Remove.
20063 (iso7816_reset_retry_counter_kp): Remove.
20064 (iso7816_reset_retry_counter_with_rc_kp): Remove.
20065 (iso7816_change_reference_data_kp): Add an argument: IS_EXCHANGE.
20067 2011-12-01 Werner Koch <wk@gnupg.org>
20069 Add hook to check the commit log syntax.
20070 + commit 29e96e6b9a8e68e6554dd48bc2ce68ae9525d29f
20071 * autogen.sh: Install commit-msg hook for git.
20073 Generate the ChangeLog from commit logs.
20074 + commit 2336b09779d313c1594acf6df3bd8a8486e90458
20075 * scripts/gitlog-to-changelog: New script. Taken from gnulib.
20076 * scripts/git-log-fix: New file.
20077 * scripts/git-log-footer: New file.
20078 * doc/HACKING: Describe the ChangeLog policy
20079 * ChangeLog: New file.
20080 * Makefile.am (EXTRA_DIST): Add new files.
20081 (gen-ChangeLog): New.
20082 (dist-hook): Run gen-ChangeLog.
20084 Rename all ChangeLog files to ChangeLog-2011.
20086 2011-12-01 Werner Koch <wk@gnupg.org>
20088 NB: Changes done before December 1st, 2011 are described in
20089 per directory files named ChangeLog-2011. See doc/HACKING for
20093 Copyright (C) 2011 Free Software Foundation, Inc.
20095 Copying and distribution of this file and/or the original GIT
20096 commit log messages, with or without modification, are
20097 permitted provided the copyright notice and this notice are