Avoid caches to get the most recent copy of the key. This is bug #1061
[gnupg.git] / common / ChangeLog
blob2f5a65a03e1c091df05dddc4c7eda72721158fa3
1 2009-05-28  David Shaw  <dshaw@jabberwocky.com>
3         From 1.4:
4         
5         * http.h, http.c (send_request) Pass in a STRLIST for additional
6         headers.  Change all callers.
8 2009-05-27  David Shaw  <dshaw@jabberwocky.com>
10         From 1.4:
11         
12         * http.h, http.c (send_request): Pass in srvtag and make its
13         presence sufficient to turn the feature on.
14         (http_open): From here.
15         (http_document): And here.
17         * srv.c (getsrv): Raise maximum packet size to 2048, as PACKETSZ
18         is too small these days.
20 2009-05-22  Werner Koch  <wk@g10code.com>
22         * ttyio.c (tty_cleanup_after_signal): New.
24 2009-05-19  Werner Koch  <wk@g10code.com>
26         * simple-pwquery.c (agent_open): Use SUN_LEN
27         (JNLIB_NEED_AFLOCAL): Define and include mischelp.h.
29 2009-05-07  Werner Koch  <wk@g10code.com>
31         * sexputil.c (get_rsa_pk_from_canon_sexp): New.
32         * t-sexputil.c (test_make_canon_sexp_from_rsa_pk): Extend the test.
34 2009-04-28  Werner Koch  <wk@g10code.com>
36         * sexputil.c (make_canon_sexp_from_rsa_pk): New.
37         * t-sexputil.c (test_make_canon_sexp_from_rsa_pk): New.
39 2009-04-01  Werner Koch  <wk@g10code.com>
41         * iobuf.c: Port David's changes from 1.4:
42         (fd_cache_invalidate): Pass return code from close back.
43         (direct_open, iobuf_ioctl): Check that eturn value.
44         (fd_cache_synchronize): New.
45         (iobuf_ioctl): Add new sub command 4 (fsync).
47         * iobuf.c (fd_cache_strcmp): New. Taken from 1.4.
48         (fd_cache_invalidate, fd_cache_close, fd_cache_open):  Use it.
50         * exechelp.c (gnupg_spawn_process): Implement new flag bit 6.
51         * sysutils.c (gnupg_allow_set_foregound_window): Allow the use of
52         ASFW_ANY.
54         * membuf.c (put_membuf, get_membuf): Wipe memory on out of core.
56 2009-03-31  Werner Koch  <wk@g10code.com>
58         * percent.c (percent_unescape, percent_plus_unescape): New.
59         (percent_plus_unescape_inplace, percent_unescape_inplace): New.
60         (do_plus_or_plain_unescape, count_unescape, do_unescape): New.
61         (do_unescape_inplace): New.
62         * t-percent.c (test_percent_plus_escape): Test percent_plus_unescape.
64         * get-passphrase.c, get-passphrase.h: New.
65         * Makefile.am (without_pth_sources): New.
67 2009-03-18  Werner Koch  <wk@g10code.com>
69         * exechelp.c: Include sys/resource.h and sys/stat.h.
70         (get_max_open_fds): New.
71         (do_exec): Use it.
72         (get_all_open_fds): New.
73         (close_all_fds): New.
74         (do_exec): Use close_all_fds.
75         * t-exechelp.c: New.
77 2009-03-13  David Shaw  <dshaw@jabberwocky.com>
79         * http.c (do_parse_uri): Properly handle IPv6 literal addresses as
80         per RFC-2732.  Adapted from patch by Phil Pennock.
82 2009-03-12  Werner Koch  <wk@g10code.com>
84         * gettime.c: Include i18n.h.
85         (dump_isotime): New.
87 2009-03-06  Werner Koch  <wk@g10code.com>
89         * sexputil.c (make_canon_sexp): New.
91 2009-03-03  Werner Koch  <wk@g10code.com>
93         * exechelp.c (do_exec): Make sure that /dev/null connected FDs are
94         not closed.
96 2009-01-19  Werner Koch  <wk@g10code.com>
98         * audit.c (writeout_li): Translate a few more result strings.
99         Fixes bug#970.
101         * convert.c (hex2str): Fix optimization to append a nul character.
103 2008-12-05  Werner Koch  <wk@g10code.com>
105         * percent.c, t-percent.c: New.
107         * exechelp.c (gnupg_spawn_process, gnupg_spawn_process_fd) 
108         (gnupg_spawn_process_detached) [W32]: Remove debug output.
110 2008-11-20  Werner Koch  <wk@g10code.com>
112         * audit.c (writeout_li): Translate OKTEXT.
114 2008-11-04  Werner Koch  <wk@g10code.com>
116         * i18n.c (i18n_init) [USE_SIMPLE_GETTEXT]: Adjust for changed
117         w32-gettext.c.
118         * homedir.c (gnupg_localedir): New.
120 2008-10-20  Werner Koch  <wk@g10code.com>
122         * http.c (http_register_tls_callback) [!HTTP_USE_GNUTLS]: Mark
123         unused arg.
124         * localename.c (do_nl_locale_name): Ditto.
125         * audit.c (event2str): Silent gcc warning.
126         * sysutils.c (translate_sys2libc_fd): Mark unused arg.
127         (translate_sys2libc_fd_int): Ditto.
128         * iobuf.c (translate_file_handle): Ditto.
129         * asshelp.c (send_one_option): Ditto.
130         * exechelp.c (gnupg_spawn_process): Ditto.
131         * signal.c (got_usr_signal): Ditto
132         * estream.c (es_func_fd_create) [!W32]: Ditto.
133         (es_func_fp_create) [!W32]: Ditto.
134         (es_write_hexstring): Ditto.
135         (dummy_mutex_call_void, dummy_mutex_call_int) [HAVE_PTH]: New.
136         (ESTREAM_MUTEX_LOCK, ESTREAM_MUTEX_UNLOCK, ESTREAM_MUTEX_TRYLOCK)
137         (ESTREAM_MUTEX_INITIALIZE) [HAVE_PTH]: Use dummy calls so to mark
138         unused arg.
140 2008-10-19  Werner Koch  <wk@g10code.com>
142         * estream-printf.c (estream_vsnprintf): Fix return value.
143         (check_snprintf): Add a new test.
144         (one_test) [W32]: Disable test.
146 2008-10-17  Werner Koch  <wk@g10code.com>
148         * util.h (snprintf) [W32]: Redefine to estream_snprintf.
150 2008-09-03  Werner Koch  <wk@g10code.com>
152         * convert.c (hex2str): New.
153         (hex2str_alloc): New.
154         * t-convert.c (test_hex2str): New.
156 2008-08-19  Werner Koch  <wk@g10code.com>
158         * iobuf.c: Avoid passing a NULL (iobuf_t)->desc to the log
159         function.  Should in general never be NULL, but well.  Reported by
160         M. Heneka.
162 2008-06-26  Werner Koch  <wk@g10code.com>
164         * estream.c (es_write_sanitized): Loose check for control
165         characters to better cope with utf-8.  The range 0x80..0x9f is
166         nowadays not anymore accidently used for control charaters.
168 2008-06-25  Marcus Brinkmann  <marcus@g10code.de>
170         Revert last three changes related to handle translation.
171         * sysutils.c:
172         (FD_TRANSLATE_MAX, fd_translate, fd_translate_len)
173         (translate_table_init, translate_table_lookup): Removed.
174         * iobuf.c (check_special_filename): Do not use
175         translate_table_lookup.
176         * sysutils.h (translate_table_init, translate_table_lookup):
177         Remove prototypes.
179 2008-06-19  Werner Koch  <wk@g10code.com>
181         * sysutils.c: Remove <ctype.h>.
182         (fd_translate_max): Use macro for the size.
183         (translate_table_init): Protect read against EINTR and replace
184         isspace by spacep.
186 2008-06-18  Marcus Brinkmann  <marcus@g10code.de>
188         * sysutils.c (TRANS_MAX): Bump up to 350 to be on the safe side.
190         * sysutils.h (translate_table_init, translate_table_lookup): New
191         prototypes.
192         * sysutils.c: Include <ctype.h>.
193         (FD_TRANSLATE_MAX): New macro.
194         (fd_translate, fd_translate_len): New static variables.
195         (translate_table_init, translate_table_lookup): New functions.
196         (translate_sys2libc_fd_int): Translate file descriptor.
197         * iobuf.c (check_special_filename): Translate handle values from
198         special filenames.
200 2008-06-16  Werner Koch  <wk@g10code.com>
202         * homedir.c (w32_commondir): New.
203         (gnupg_sysconfdir): Use it.
205 2008-06-09  Werner Koch  <wk@g10code.com>
207         * b64dec.c: New.
209 2008-06-05  Werner Koch  <wk@g10code.com>
211         * util.h (gnupg_copy_time): Replace strcpy by memcpy.
213 2008-05-26  Werner Koch  <wk@g10code.com>
215         * asshelp.c (send_one_option, send_pinentry_environment): use
216         xfree and xtrystrdup.
218         * i18n.c (i18n_switchto_utf8) [USE_SIMPLE_GETTEXT]: Return NULL.
220         * homedir.c (gnupg_module_name): Add
221         GNUPG_MODULE_NAME_CONNECT_AGENT and GNUPG_MODULE_NAME_GPGCONF.
223 2008-04-21  Werner Koch  <wk@g10code.com>
225         * http.c (http_wait_response) [W32]: Use DuplicateHandle because
226         it is a socket.
227         (cookie_read) [W32]: Use recv in place of read.
229 2008-04-08  Werner Koch  <wk@g10code.com>
231         * i18n.c (i18n_switchto_utf8, i18n_switchback)
232         [USE_SIMPLE_GETTEXT]: Implement.
234 2008-04-07  Werner Koch  <wk@g10code.com>
236         * b64enc.c (b64enc_start): Detect PGP mode.
237         (b64enc_finish): Write PGP CRC.
238         * util.h (struct b64state): Add field CRC.
239         * t-b64.c: New.
241         * pka.c (get_pka_info): Use xtrymalloc and check result.
243 2008-03-25  Werner Koch  <wk@g10code.com>
245         * localename.c: Strip all W32 code.  Include w32help.h.
246         (gnupg_messages_locale_name) [W32]: Use the gettext_localename.
248 2008-03-17  Werner Koch  <wk@g10code.com>
250         * iobuf.c (IOBUF_BUFFER_SIZE): Actually use this macro.
252         * simple-pwquery.c (agent_send_all_options): Fix last change.
254 2008-03-06  Werner Koch  <wk@g10code.com>
256         * simple-pwquery.c (agent_send_all_options): Add support for
257         XAUTHORITY and PINENTRY_USER_DATA.
259 2008-02-15  Marcus Brinkmann  <marcus@g10code.de>
261         * exechelp.c (gnupg_spawn_process_fd): Add flag DETACHED_PROCESS
262         unconditionally (required for all callers at the moment).
264 2008-02-14  Werner Koch  <wk@g10code.com>
266         * sysutils.c (gnupg_allow_set_foregound_window): New.
267         (WINVER) [W32]: Define.
269 2008-01-31  Werner Koch  <wk@g10code.com>
271         * audit.c (audit_print_result): Make sure that the output is
272         always UTF8.
274 2008-01-27  Werner Koch  <wk@g10code.com>
276         * exechelp.c (gnupg_spawn_process): Add arg FLAGS and changed all
277         callers to pass 0 for it.
279 2007-12-13  Werner Koch  <wk@g10code.com>
281         * sexputil.c (hash_algo_from_sigval): New.
282         * t-sexputil.c: New.
283         * Makefile.am (module_tests): Add it.
285 2007-12-11  Werner Koch  <wk@g10code.com>
287         * asshelp.c (send_pinentry_environment): Allow using of old
288         gpg-agents not capabale of the xauthority and pinentry_user_data
289         options.
291 2007-12-04  Werner Koch  <wk@g10code.com>
293         * Makefile.am (t_helpfile_LDADD, module_maint_tests): New.
294         * t-helpfile.c: New.
295         * helpfile.c: New.
296         * membuf.h (is_membuf_ready, MEMBUF_ZERO): New.
297         * localename.c: New.  Taken from gettext with modifications as done
298         for GpgOL.  Export one new function.
299         * util.h (gnupg_messages_locale_name, gnupg_get_help_string): Added.
301         * sysutils.c (gnupg_reopen_std): New.  Taken from ../g10/gpg.c.
303 2007-11-27  Werner Koch  <wk@g10code.com>
305         * Makefile.am (CLEANFILES): New.
307         * homedir.c (dirmngr_socket_name): Use CSIDL_WINDOWS.
309 2007-11-15  Werner Koch  <wk@g10code.com>
311         * asshelp.c (send_pinentry_environment): Add args XAUTHORITY and
312         PINENTRY_USER_DATA.
313         (start_new_gpg_agent): Ditto.
315 2007-11-07  Werner Koch  <wk@g10code.com>
317         * status.h: New.
318         * errors.h: Remove.
320 2007-11-05  Werner Koch  <wk@g10code.com>
322         * audit.c, audit.h: New. 
323         * Makefile.am: Add rules to build audit-events.h.
324         * exaudit.awk: New.
325         * mkstrtable.awk: New.  Taken from libgpg-error.
327 2007-10-19  Werner Koch  <wk@g10code.com>
329         * i18n.c (i18n_switchto_utf8, i18n_switchback): New.
331 2007-10-01  Werner Koch  <wk@g10code.com>
333         * sysutils.h (FD2INT, INT2FD): New.
335 2007-09-21  Werner Koch  <wk@g10code.com>
337         * homedir.c (default_homedir): Make registry work.  Reported by
338         Marc Mutz.
340 2007-08-29  Werner Koch  <wk@g10code.com>
342         * exechelp.c (gnupg_wait_process): Add arg EXITCODE.  Changed all
343         callers.
344         (gnupg_create_inbound_pipe): New.
345         * util.h (GNUPG_MODULE_NAME_GPGSM, GNUPG_MODULE_NAME_GPG): New.
346         * homedir.c (gnupg_module_name): Add them
347         
348 2007-08-28  Werner Koch  <wk@g10code.com>
350         * gettime.c (check_isotime, add_isotime): New.  Originally written
351         for DirMngr by me.
352         (add_days_to_isotime): New.
353         (date2jd, jd2date, days_per_month, days_per_year): New. Taken from
354         my ancient (1988) code used in Wedit (time2.c).
356 2007-08-27  Werner Koch  <wk@g10code.com>
358         * util.h (GNUPG_MODULE_NAME_CHECK_PATTERN): New.
359         * homedir.c (gnupg_module_name): Add it.
360         * exechelp.c (w32_fd_or_null) [W32]: New.
361         (gnupg_spawn_process_fd): New.
362         (gnupg_wait_process) [W32]: Close the handle after if the process has
363         returned.
365 2007-08-22  Werner Koch  <wk@g10code.com>
367         Updated estream from libestream.
368         
369         * estream.c (mem_malloc, mem_realloc, mem_free): New.  Use them
370         instead of the ES_MEM_foo.
371         * estream.c (estream_cookie_mem): Remove members DONT_FREE,
372         APPEND_ZERO, PTR and SIZE.  Add MEMORY_LIMIT.  Put GROW into a new
373         FLAGS struct.
374         (es_func_mem_create): Remove APPEND_ZERO, DONT_FREE, PTR and
375         SIZE.  Add MEMORY_LIMIT.
376         (es_func_mem_write, es_func_mem_seek, es_func_mem_destroy): Revamp.
377         (es_open_memstream): Change API to just take a memory limit and a
378         mode argument.  Rename to ..
379         (es_fopenmem): .. this.
380         (HAVE_W32_SYSTEM) [_WIN32]: Define if not defined.
381         (tmpfd) [W32]: Implement directly using the W32 API.
382         (es_fgets): Rewrite without using doreadline.
384 2007-08-21  Werner Koch  <wk@g10code.com>
386         * sysutils.c (gnupg_tmpfile): New.
387         * t-sysutils.c: New.
388         * Makefile.am (module_tests): Add t-sysutils.
390 2007-08-20  Werner Koch  <wk@g10code.com>
392         * exechelp.c [W32]: Redefine X_OK to F_OK.
394 2007-08-16  Werner Koch  <wk@g10code.com>
396         * Makefile.am (t_convert_DEPENDENCIES): Remove
397         ($(PROGRAMS)): Remove.
398         (t_common_ldadd): Use libcommon.a and not the macro.
400 2007-08-14  Werner Koch  <wk@g10code.com>
402         * homedir.c (dirmngr_socket_name): New.
404 2007-08-07  Werner Koch  <wk@g10code.com>
406         * tlv.c, tlv.h: Move from ../scd/.
407         * tlv.c (parse_sexp, parse_ber_header): Add ERRSOURCE arg and prefix
408         name with a _.
409         * tlv.h: Use macro to convey ERRSOURCE.
411 2007-08-02  Werner Koch  <wk@g10code.com>
413         * gc-opt-flags.h: New.
415 2007-08-01  Werner Koch  <wk@g10code.com>
417         * estream-printf.c (read_dummy_value): Removed as it is useless now.
418         (read_values): Remove check on !vaargs which is not anymore needed
419         and anyway not portable.  Reported by Peter O'Gorman.
421 2007-07-16  Werner Koch  <wk@g10code.com>
423         * estream.c (es_func_file_create): Clear NO_CLOSE flag.
425 2007-07-12  Werner Koch  <wk@g10code.com>
427         * sysutils.h (gnupg_fd_t): New.
428         * sysutils.c (translate_sys2libc_fd): Use that type instead of int.
429         (translate_sys2libc_fd_int): New.
431 2007-07-09  Werner Koch  <wk@g10code.com>
433         * t-gettime.c (test_isotime2epoch): Use time_t and not u32.
435 2007-07-05  Werner Koch  <wk@g10code.com>
437         * t-gettime.c: New. 
438         * gettime.c (isotime2epoch, epoch2isotime): New.
440 2007-07-04  Werner Koch  <wk@g10code.com>
442         * estream.c (es_init_do): Do not throw an error if pth has already
443         been initialized.
445 2007-06-26  Werner Koch  <wk@g10code.com>
447         * Makefile.am ($(PROGRAMS)): New.
449         * util.h (init_common_subsystems): Moved to ..
450         * init.h: .. New.
451         * util.h: Include init.h.
453         * homedir.c (standard_homedir): New.
454         (default_homedir) [W32]: Reimplemented in terms of
455         standard_homedir.  Fixed memory leak.
457 2007-06-25  Werner Koch  <wk@g10code.com>
459         * iobuf.c: Add more documentation and slighly restructured macro
460         defintion for better readability.
461         (FILEP_OR_FD): Rename to fp_or_fd_t.
462         (CLOSE_CACHE): Rename to close_cache_t.
464         * sysutils.c (translate_sys2libc_fd): New using the code from iobuf.c.
465         * iobuf.c: Include sysutils.h.
466         (iobuf_translate_file_handle): Remove.
467         (translate_file_handle): Use new function.
469         * estream-printf.c [TEST]: Header including fixes. 
470         (do_format): Do not append a trailing Nul.  This avoids spurious
471         Nuls in the es_printf output.
472         (estream_vsnprintf, estream_vasprintf): Take this in account.
474         * estream.h (struct es__stream): Change FLAGS to a bit structure.
475         (ES__FLAG_WRITING): Replace by a bit from FLAGS.  * estream.c
476         (struct estream_internal): Rename FLAGS to MODEFLAGS so that they
477         are not confused with the estream flags.
478         (es_initialize, es_create): Add arg MODEFLAGS so that we can setup
479         the intial writemode.  Changed all callers to pass them.
480         (es_convert_mode): Set O_BINARY.
481         (es_func_fd_create, es_func_fp_create, es_func_file_create) [W32]:
482         Call setmode if requested.
483         
484 2007-06-24  Werner Koch  <wk@g10code.com>
486         * estream.c (do_fpopen, es_fpopen, es_fpopen_nc): New.
487         (es_func_fp_create, es_func_fp_read, es_func_fp_write) 
488         (es_func_fp_seek, es_func_fp_destroy): New.
490 2007-06-22  Werner Koch  <wk@g10code.com>
492         * estream.c (es_fdopen): Factored code out to..
493         (do_fdopen): .. new.
494         (es_fdopen_nc): New.
495         (estream_cookie_fd): Add field NO_CLOSE. 
496         (es_func_fd_create): Add arg NO_CLOSE and changed all callers.
497         (es_func_fd_destroy): Handle the new flag.
499         * homedir.c (gnupg_libexecdir) [W32]: Factor code out to ..
500         (w32_rootdir): .. new.
501         (gnupg_sysconfdir, gnupg_libdir, gnupg_datadir) [W32]: Return
502         name based on w32_rootdir().
504 2007-06-21  Werner Koch  <wk@g10code.com>
506         * membuf.h (get_membuf_len): New.
508         * membuf.c (init_membuf_secure): Really allocate in secure memory.
509         (put_membuf_str): New.
511         * ttyio.c (tty_getf): New.
513         * util.h (ctrl_t): Declare it here.
515         * asshelp.c (start_new_gpg_agent): New.  Based on code from
516         ../sm/call-agent.c
518 2007-06-20  Werner Koch  <wk@g10code.com>
520         * sysutils.c (gnupg_sleep): New.
521         * sysutils.h [W32]: Remove _sleep wrapper.  Changed all callers to
522         use gnupg_sleep.
524         * exechelp.c (build_w32_commandline_copy): New.
525         (build_w32_commandline): Factored some code out to new function
526         and correctly process a PGMNAME with spaces.
527         (gnupg_spawn_process_detached) [W32]: Implement.
529 2007-06-14  Werner Koch  <wk@g10code.com>
531         * simple-pwquery.h (MAP_SPWQ_ERROR_IMPL): New.
532         (SPWQ_NO_PIN_ENTRY): New.
533         * simple-pwquery.c (simple_pw_set_socket): New.
534         (agent_open): Use it if GPG_AGENT_INFO is not set.
535         (simple_pwquery): Extended to allow returning of otehyr error codes.
537         * util.h (GNUPG_MODULE_NAME_AGENT, GNUPG_MODULE_NAME_PINENTRY) 
538         (GNUPG_MODULE_NAME_SCDAEMON, GNUPG_MODULE_NAME_DIRMNGR) 
539         (GNUPG_MODULE_NAME_PROTECT_TOOL): New.
540         * homedir.c (gnupg_module_name): New.
541         (gnupg_bindir): New.
543 2007-06-12  Werner Koch  <wk@g10code.com>
545         * homedir.c (gnupg_sysconfdir): New.
546         (gnupg_libexecdir): New.  Taken from g10/misc.c:get_libexecdir.
547         (gnupg_datadir): New.
548         (gnupg_libdir): New.
550         * http.c (connect_server) [W32]: Do not call init_sockets if
551         HTTP_NO_WSASTARTUP is defined.
553         * init.c: New.
555         * estream.c (es_init_do): Init stream lock here because we can't
556         use a static initialization with W32pth.
558 2007-06-11  Werner Koch  <wk@g10code.com>
560         * Makefile.am (t_common_ldadd): Use libcommonstd macro.
562 2007-06-06  Werner Koch  <wk@g10code.com>
564         * Makefile.am: Include am/cmacros.am.
566         * sysutils.h [W32]: Remove prototypes for the registry access.
567         * w32reg.c:  Move to ../jnlib/w32-reg.c.
569         * i18n.c (i18n_init): New.
571         * simple-gettext.c: Remove.
573         * iobuf.c (iobuf_get_filelength): Rename SIZE to EXSIZE to silent
574         shadowing warning.
576 2007-06-04  Werner Koch  <wk@g10code.com>
578         * http.c [W32]: Include unistd.h also in this case.
579         (write_server) [W32]: Fixed error code.
580         (init_sockets): Fixed syntax error.
581         (cookie_close): Replace close by sock_close macro.
583         * estream.c [w32]: Do not init Mutex.
585         * Makefile.am (common_sources) [USE_SNS_SRV]: Build srv.c only
586         when needed.
588         * ttyio.c (init_ttyfp) [W32]: Do not use TTYFP.
590         * util.h: Include ../jnlib/dynload.h.
592         * dynload.h:  Move to ../jnlib.
594 2007-05-30  Werner Koch  <wk@g10code.com>
596         * estream.c (MEM_FREE, MEM_ALLOC, MEM_REALLOC): Prefix with ES_ as
597         windows.h also has such definitions,
599 2007-05-15  Werner Koch  <wk@g10code.com>
601         * util.h: Do not include gnulib's vasprintf.  Redefine asprintf
602         and vasprintf.
604         * xasprintf.c (xasprintf, xtryasprintf): Use estream_vasprintf.
606         * estream-printf.h, estream-printf.c: New.  Taken from current
607         libestream SVN.
608         * Makefile.am (common_sources): Add them.
610 2007-05-14  Werner Koch  <wk@g10code.com>
612         * sexp-parse.h (smklen): New.
613         * sexputil.c: Include sexp-parse.h.
614         (make_simple_sexp_from_hexstr): Replace sprintf by smklen.
616 2007-05-07  Werner Koch  <wk@g10code.com>
618         * signal.c (got_fatal_signal): Protect SIG from being clobbered by
619         a faulty signal implementaion.  Suggested by James Juran. 
621 2007-04-25  Werner Koch  <wk@g10code.com>
623         * i18n.h (ngettext): New.
624         * simple-gettext.c (ngettext): New.
626 2007-04-20  Werner Koch  <wk@g10code.com>
628         * miscellaneous.c (my_gcry_logger, my_gcry_outofcore_handler):
629         Moved from gpg-agent to here.
630         (my_gcry_fatalerror_handler): new.
631         (setup_libgcrypt_logging): New.
633 2007-03-19  Werner Koch  <wk@g10code.com>
635         * miscellaneous.c (print_hexstring): New.
636         * estream.c (es_fprintf_unlocked): New.
637         (es_write_sanitized): New.
638         (es_write_hexstring): New.
639         (es_write_sanitized_utf8_buffer) [GNUPG_MAJOR_VERSION]: New.
641 2007-03-09  David Shaw  <dshaw@jabberwocky.com>
643         From STABLE-BRANCH-1-4
645         * http.c (do_parse_uri): Remove the hkp port 11371 detection.  We
646         implement hkp in the keyserver handler, and the support here makes
647         it appear like a bad hkp request actually succeeded.
649 2007-01-31  Werner Koch  <wk@g10code.com>
651         * Makefile.am (t_common_ldadd): Add LIBINCONV and LIBINTL.
653 2007-01-25  Werner Koch  <wk@g10code.com>
655         * simple-pwquery.c (simple_pwquery): New arg OPT_CHECK.
657 2006-12-13  David Shaw  <dshaw@jabberwocky.com>
659         * Makefile.am (AM_CPPFLAGS): Include intl/ so we can reference the
660         built-in headers.
662 2006-11-23  Werner Koch  <wk@g10code.com>
664         * http.c: Include i18n.h
666 2006-11-21  Werner Koch  <wk@g10code.com>
668         * estream.c: Remove explicit Pth soft mapping diabling becuase it
669         is now done in config.h.
671 2006-11-15  Werner Koch  <wk@g10code.com>
673         * estream.c: Disabled Pth soft mapping.
674         (my_funopen_hook_ret_t): New.
675         (print_fun_writer): Use it here.
677         * iobuf.c (fd_cache_close): Use %d instead of %p for debug output.
679 2006-11-03  Werner Koch  <wk@g10code.com>
681         * Makefile.am (t_convert_DEPENDENCIES): Add libcommon.  From
682         Gentoo.
684 2006-10-24  Marcus Brinkmann  <marcus@g10code.de>
686         * Makefile.am (libcommon_a_CFLAGS): Add $(LIBASSUAN_CFLAGS).
687         (libsimple_pwquery_a_CFLAGS): New variable.
689 2006-10-20  Werner Koch  <wk@g10code.com>
691         * convert.c (hex2bin): New.
693 2006-10-17  Werner Koch  <wk@g10code.com>
695         * estream.c (struct estream_internal, es_initialize) 
696         (es_deinitialize, print_fun_writer, es_print): New and modified
697         functions to avoid tempfiles for printf style printing. 
699         * Makefile.am (libcommonpth_a_SOURCES): New. We now build a secon
700         version of the library with explicit Pth support.
701         * exechelp.c, estream.c: Make use of WITHOUT_GNU_PTH.
703 2006-10-08  Werner Koch  <wk@g10code.com>
705         * gpgrlhelp.c: Trun all functions into dummies if readline is not
706         available.
708 2006-10-06  Werner Koch  <wk@g10code.com>
710         * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
712         * util.h (GNUPG_GCC_A_SENTINEL): Defined for gcc >= 4.
714 2006-10-04  David Shaw  <dshaw@jabberwocky.com>
716         * gpgrlhelp.c: readline requires stdio.h.
718 2006-10-04  Werner Koch  <wk@g10code.com>
720         * membuf.c (init_membuf_secure): New.
721         (put_membuf): Make sure that ERRNO is set even if the underlying
722         malloc code does not work properly.
723         (get_membuf): Set ERRNO on error.
724         (get_membuf): Allow to pass LEN as NULL.
726 2006-10-02  Werner Koch  <wk@g10code.com>
728         * iobuf.c (iobuf_unread): Removed.  This code is not required.
729         Also removed the entire unget buffer stuff.
731 2006-09-27  Werner Koch  <wk@g10code.com>
733         * util.h: Do not include strsep.h and strpbrk.h.
734         (isascii): Removed as it is now in jnlib.
736         * iobuf.c (pop_filter, underflow, iobuf_close): Free the unget
737         buffer.
739 2006-09-27  Florian Weimer <fweimer@bfk.de>  (wk)
740         
741         * iobuf.c (iobuf_unread): New.
743 2006-09-22  Werner Koch  <wk@g10code.com>
745         * i18n.h: Changed license to an all permissive one.
747         * ttyio.c (tty_get): We need to use readline too.  Added two more
748         hooks.
750 2006-09-21  Werner Koch  <wk@g10code.com>
752         * ttyio.c (tty_private_set_rl_hooks): New.
753         (tty_enable_completion, tty_disable_completion): Use a hook to
754         enable readline support.  Now always available.
755         (tty_cleanup_rl_after_signal): New.
757         * ttyio.h: Removed readline specific stuff.  Included util.h.
758         * common-defs.h: New.
760 2006-09-15  Werner Koch  <wk@g10code.com>
762         * convert.c: New.
763         (hexcolon2bin): New.
764         (bin2hex, bin2hexcolon, do_binhex): New.
765         * t-convert.c: New
767 2006-09-14  Werner Koch  <wk@g10code.com>
769         * util.h (out_of_core): Use new gpg_error_from_syserror function.
771         * http.c (init_sockets): Changed it to require 2.2 unless it is
772         build within gnupg 1 where we require 1.1 (and not anymore allow
773         for 1.0).
775 2006-09-07  Werner Koch  <wk@g10code.com>
777         * exechelp.c (gnupg_spawn_process): Factor out post fork code to ..
778         (do_exec): .. new function.  Allow passing of -1 for the fds.
779         (gnupg_spawn_process): Terminate gcrypt's secure memory in the child.
780         (gnupg_spawn_process_detached): New.
782 2006-09-06  Werner Koch  <wk@g10code.com>
784         * maperror.c: Removed.
786         * util.h (out_of_core): New.
788 2006-09-04  Werner Koch  <wk@g10code.com>
790         * http.c (http_get_header): New.
791         (capitalize_header_name, store_header): New.
792         (parse_response): Store headers away.
793         (send_request): Return GPG_ERR_NOT_FOUND if connect_server failed.
794         * http.h: New flag HTTP_FLAG_NEED_HEADER.
796 2006-08-21  Werner Koch  <wk@g10code.com>
798         * Makefile.am (libcommon_a_SOURCES): Added keyserver.h
800         * openpgpdefs.h: New.  Stripped from ..g10/packet.h.
802 2006-08-16  Werner Koch  <wk@g10code.com>
804         * keyserver.h: Moved from ../include to here.
806         * http.c: Include srv.h.
808         * srv.c, srv.h: New. Taken from GnuPG 1.4
810 2006-08-14  Werner Koch  <wk@g10code.com>
812         * http.h (struct http_context_s): Moved to implementation.
813         * http.c (http_open): Changed call to return a context.
814         (http_open_document): Ditto.
815         (http_get_read_ptr, http_get_read_ptr, http_get_status_code): New.
816         (do_parse_uri): Replaced strlwr by straight code to ease
817         standalone use of this file.
818         (http_wait_response): Removed arg STATUS_CODE as it is available
819         through an accessor function. Adjusted caller.
820         (http_escape_string): New.
822         * estream.c (es_read_line): Renamed to ..
823         (doreadline): .. this.  Changed all callers.
824         (es_read_line): New.  This is theusual limited getline variabnt as
825         used at several places.  Here taken and adjusted from xreadline.c
826         (es_free): New.
828 2006-08-11  Werner Koch  <wk@g10code.com>
830         * http.c: Major internal changes to optionallly support GNUTLS and
831         ESTREAM.
832         (http_open): Move initialization of the stream ...
833         (send_request): .. here.
834         (http_register_tls_callback): New.
836         * estream.c (es_writen): Try to seek only is a seek function has
837         been registered.
839 2006-08-09  Werner Koch  <wk@g10code.com>
841         * http.c, http.h: New.  Taken from gnupg 1.4.5, merged with
842         changes done for the Dirmngr project (by g10 Code) and cleaned up
843         some stuff.
844         (make_header_line): New. Change all caller to make user of the new
845         * Makefile.am (libcommon_a_SOURCES): Added http.c and http.h.
847 2006-05-23  Werner Koch  <wk@g10code.com>
849         * gettime.c (isotimestamp): New.
851         * ttyio.c (tty_get_ttyname): Posixly correct usage of ctermid.
853         * dns-cert.c: New.  Taken from 1.4.3's util/cert.c.
854         * dns-cert.h: New.
856 2006-05-22  Werner Koch  <wk@g10code.com>
858         * pka.c: New. Taked from 1.4.3.
859         * pka.h: New.
860         * Makefile.am: Added pka.
862 2006-05-19  Werner Koch  <wk@g10code.com>
864         * yesno.c (answer_is_yes_no_default, answer_is_yes_no_quit):
865         Updated from 1.4.3.
866         (answer_is_okay_cancel): new.  From 1.4.3.
868         * miscellaneous.c (match_multistr): New.  Taken from 1.4.3.
870         * ttyio.c (tty_enable_completion, tty_disable_completion): New
871         dummy functions.
872         * ttyio.h: Add prototypes and stubs.
874 2006-04-19  Werner Koch  <wk@g10code.com>
876         * iobuf.c (iobuf_get_fd): New.  Taken from 1.4.3.
877         (iobuf_is_pipe_filename): New.
878         (pop_filter): Made static.
879         (iobuf_skip_rest): New.  Orginal patch by Florian
880         Weimer.  Added new argument PARTIAL.
881         (block_filter): Remove the old gpg indeterminate length mode.
882         (block_filter): Properly handle a partial body stream
883         that ends with a 5-byte length that happens to be zero.
884         (iobuf_set_block_mode, iobuf_in_block_mode): Removed as
885         superfluous.
886         (iobuf_get_filelength): New arg OVERFLOW.
887         (iobuf_get_filelength) [W32]: Use GetFileSizeEx if available
888         * miscellaneous.c (is_file_compressed): Take care of OVERFLOW.
890 2006-04-18  Werner Koch  <wk@g10code.com>
892         * homedir.c (w32_shgetfolderpath): New.  Taken from gpg 1.4.3.
893         (default_homedir): Use it.
895 2005-10-08  Marcus Brinkmann  <marcus@g10code.de>
897         * signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST
898         instead of just if it is defined.
900 2005-09-28  Marcus Brinkmann  <marcus@g10code.de>
902         * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
904 2005-07-04  Marcus Brinkmann  <marcus@g10code.de>
906         * simple-pwquery.h (simple_pwclear): New prototype.
907         * simple-pwquery.c (simple_pwclear): New function.
909 2005-06-15  Werner Koch  <wk@g10code.com>
911         * miscellaneous.c (make_printable_string): Made P a void*.
913         * sexputil.c (keygrip_from_canon_sexp, cmp_simple_canon_sexp):
914         Fixed signed/unsigned pointer mismatch.
915         (make_simple_sexp_from_hexstr): Ditto.  This is all too ugly; I
916         wonder why gcc-4's default is to warn about them and forcing us to
917         use cast the warning away.
918         * iobuf.c (block_filter): Ditto.
919         (iobuf_flush): Ditto.
920         (iobuf_read_line): Ditto.
921         (iobuf_read): Make BUFFER a void *.
922         (iobuf_write): Make BUFFER a const void *.
923         * ttyio.c (tty_print_utf8_string2): Ditto.
924         * estream.c (estream_cookie_mem): Make MEMORY unsigned char*.
925         (es_write): Make BUFFER a void *.
926         (es_writen): Ditto.
927         (es_func_fd_read, es_func_fd_write, es_func_mem_read) 
928         (es_func_mem_write): Ditto.
929         (es_read, es_readn): Ditto.
930         (es_func_mem_write): Made MEMORY_NEW an unsigned char *.
931         * estream.h (es_cookie_read_function_t)
932         (es_cookie_write_function_t): Changed buffer arg to void*.
934 2005-06-03  Werner Koch  <wk@g10code.com>
936         * estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H!
937         (es_func_fd_read, es_func_fd_write): Protect against EINTR.
938         
939 2005-06-01  Werner Koch  <wk@g10code.com>
941         * Makefile.am (AM_CPPFLAGS): Added.
943         * util.h: Add some includes for gnulib.
944         (ttyname, isascii): Define them inline.
945         * fseeko.c, ftello.c: Removed.
946         * strsep.c, mkdtemp.c: Removed.
947         * ttyname.c, isascii.c: Removed.
949 2005-05-31  Werner Koch  <wk@g10code.com>
951         * dynload.h: s/__inline__/inline/.
953 2005-05-13  Werner Koch  <wk@g10code.com>
955         * signal.c (got_fatal_signal): Print the signal number if we can't
956         get a name for it.
957         (get_signal_name): Return NULL if no name is available. Fixed
958         conditional for sys_siglist to the correct one.
960 2005-04-17  Werner Koch  <wk@g10code.com>
962         * sexputil.c (cmp_simple_canon_sexp): New.
963         (make_simple_sexp_from_hexstr): New.
965 2005-04-07  Werner Koch  <wk@g10code.com>
967         * sexputil.c: New.
969 2005-04-11  Marcus Brinkmann  <marcus@g10code.de>
971         * simple-pwquery.c (simple_pwquery): Use spwq_secure_free.
973 2005-03-03  Werner Koch  <wk@g10code.com>
975         * Makefile.am (AM_CFLAGS): Added PTH_CFLAGS.  Noted by Kazu Yamamoto.
977 2005-02-25  Werner Koch  <wk@g10code.com>
979         * xasprintf.c (xtryasprintf): New.
981 2005-01-26  Moritz Schulte  <moritz@g10code.com>
983         * Makefile.am (libcommon_a_SOURCES): New source files: estream.c,
984         estream.h.
985         * estream.c, estream.h: New files.
987 2005-01-03  Werner Koch  <wk@g10code.com>
989         * asshelp.c (send_pinentry_environment): Fixed changed from
990         2004-12-18; cut+paste error for lc-messages.
992 2004-12-21  Werner Koch  <wk@g10code.com>
994         * simple-pwquery.c (agent_open) [W32]: Implement for W32.
995         (readline) [W32]: Use recv instead of read.
996         (writen) [W32]: Use send instead of write.
997         (my_stpcpy): Define a stpcpy replacement so that this file
998         continues to be self-contained.
999         (agent_send_all_options) [W32]: Don't call ttyname.
1001 2004-12-21  Marcus Brinkmann  <marcus@g10code.de>
1003         * simple-pwquery.h (simple_query): Add prototype.
1004         * simple-pwquery.c (simple_query): New function.
1006 2004-12-21  Werner Koch  <wk@g10code.com>
1008         * signal.c (got_fatal_signal, got_usr_signal)
1009         (got_fatal_signal) [DOSISH]: Don't build.
1010         * simple-gettext.c: Include sysutils.h 
1012         * homedir.c: New. Use CSIDL_APPDATA for W32 as the default home
1013         directory.
1014         * Makefile.am (libcommon_a_SOURCES): Add it.
1015         (EXTRA_DIST): Removed mkerror and mkerrtok.
1017 2004-12-20  Werner Koch  <wk@g10code.com>
1019         * sysutils.h [W32]: Define sleep.
1020         * util.h: Add prototype for mkdtemp.
1022         * membuf.c (put_membuf): Wipe out buffer after a failed realloc.
1024 2004-12-19  Werner Koch  <wk@g10code.com>
1026         * maperror.c (map_assuan_err_with_source): Oops, args were swapped.
1028 2004-12-18  Werner Koch  <wk@g10code.com>
1030         * maperror.c (map_assuan_err): Renamed to ..
1031         (map_assuan_err_with_source): .. this and add arg SOURCE.c
1032         * asshelp.c (send_pinentry_environment, send_one_option): Add arg
1033         ERRSOURCE.
1035 2004-12-15  Werner Koch  <wk@g10code.com>
1037         * sysutils.h [W32]: Prototypes for registry functions.
1038         * w32reg.c: Include sysutils.h
1040         * simple-pwquery.c [W32]: Dummy code to allow a build.
1042         * exechelp.c [W32]: Implemented for W32 .
1044         * ttyname.c: New.
1046         * asshelp.c (send_one_option): New.
1047         (send_pinentry_environment): Cleaned up and made sure that empty
1048         values are not send.
1050 2004-12-07  Werner Koch  <wk@g10code.com>
1052         * asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.
1054 2004-12-06  Werner Koch  <wk@g10code.com>
1056         * exechelp.h, exechelp.c: New.  Based on code from ../sm/import.c.
1058 2004-12-03  Werner Koch  <wk@g10code.com>
1060         * strsep.c: Fixed copyright comments.
1062 2004-11-26  Werner Koch  <wk@g10code.com>
1064         * simple-gettext.c: New taken from gnupg 1.3.x
1066         * simple-pwquery.c [_WIN32]: Include winsock2.h.
1067         (agent_open): Disable it until we have our AF_UNIX implementation
1068         ready.
1069         * fseeko.c, ftello.c: Include sys/types for the sake of W32.
1071 2004-11-23  Werner Koch  <wk@g10code.com>
1073         * b64enc.c: Include stdio.h and string.h
1075 2004-08-18  Werner Koch  <wk@g10code.de>
1077         * simple-pwquery.c (simple_pwquery): Handle gpg-error style return
1078         code for canceled.
1080 2004-07-20  Werner Koch  <wk@g10code.de>
1082         * maperror.c: Removed header ksba.h.  Not required anymore.
1084 2004-06-14  Werner Koch  <wk@gnupg.org>
1086         * xreadline.c: New.  Based on the iobuf_read_line function.
1088 2004-05-12  Werner Koch  <wk@gnupg.org>
1090         * util.h (xtrycalloc_secure,xtrymalloc_secure): New.
1092 2004-05-11  Werner Koch  <wk@gnupg.org>
1094         * sysutils.c (disable_core_dumps): Only set the current limit.
1095         (enable_core_dumps): New.
1097 2004-04-13  Werner Koch  <wk@gnupg.org>
1099         * simple-pwquery.c (copy_and_escape): Relaxed quoting.
1101 2004-04-05  Werner Koch  <wk@gnupg.org>
1103         * errors.h (STATUS_NEWSIG): New.
1105 2004-03-11  Werner Koch  <wk@gnupg.org>
1107         * dynload.h [__MINGW32__]: Define RTLD_LAZY.
1109 2004-03-09  Werner Koch  <wk@gnupg.org>
1111         * maperror.c (map_assuan_err): Map the Locale_Problem item.
1113 2004-03-03  Werner Koch  <wk@gnupg.org>
1115         * asshelp.c, asshelp.h: New.
1116         (send_pinentry_environment): New. Code taken from ../sm/call-agent.c.
1118 2004-02-19  Werner Koch  <wk@gnupg.org>
1120         * simple-pwquery.c (agent_open): Don't mangle INFOSTR.
1122 2004-02-17  Werner Koch  <wk@gnupg.org>
1124         * simple-pwquery.c (agent_open): Ignore an empty GPG_AGENT_INFO.
1126         * errors.h: Added STATUS_IMPORT_OK.
1128 2004-02-10  Werner Koch  <wk@gnupg.org>
1130         * b64enc.c: New.  Based on code from ../sm/base64.c.
1132 2004-01-30  Marcus Brinkmann  <marcus@g10code.de>
1134         * Makefile.am (libcommon_a_SOURCES): Add xasprintf.c.
1135         * miscellaneous.c (xasprintf): Moved to ...
1136         * xasprintf (xasprintf): ... here.  New file.
1137         This allows to use xasprintf without sucking in gpg-error.
1139 2004-01-27  Werner Koch  <wk@gnupg.org>
1141         * sexp-parse.h: New; moved from../agent.
1143         * util.h (xtoi_4): New.
1145 2003-12-23  Werner Koch  <wk@gnupg.org>
1147         * maperror.c (map_assuan_err): Prepared for a new error code.
1149 2003-12-17  Werner Koch  <wk@gnupg.org>
1151         * gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.
1153         * util.h [!HAVE_VASPRINTF]: Add printf format attribute to the
1154         replacement function.
1156         * miscellaneous.c (xasprintf): New.
1158 2003-11-14  Werner Koch  <wk@gnupg.org>
1160         * mkdtemp.c (mkdtemp): Use gcry_create_nonce.
1162         * cryptmiss.c: Removed.
1164 2003-11-13  Werner Koch  <wk@gnupg.org>
1166         * util.h (vasprintf): Also fixed the prototype.
1168         * vasprintf.c (vasprintf): ARGS should not be a pointer.  Fixed
1169         segv on Solaris.  Reported by Andrew J. Schorr.
1171 2003-11-12  Werner Koch  <wk@gnupg.org>
1173         * maperror.c (map_ksba_err, map_gcry_err, map_kbx_err): Removed.
1175 2003-10-31  Werner Koch  <wk@gnupg.org>
1177         * util.h (gnupg_isotime_t): New.
1178         (gnupg_copy_time): New.
1180         * gettime.c (gnupg_get_isotime): New.
1182 2003-09-23  Werner Koch  <wk@gnupg.org>
1184         * iobuf.c (check_special_filename): Replaced is isdigit by digitp
1185         to avoid passing negative values and potential locale problems.
1186         Problem noted by Christian Biere.
1188         * util.h (ascii_isspace): New.
1190 2003-09-18  Werner Koch  <wk@gnupg.org>
1192         * ttyio.c (tty_fprintf): New.
1193         (tty_print_string, tty_print_utf8_string2)
1194         (tty_print_utf8_string): Made P argument const byte*.
1196 2003-08-20  Marcus Brinkmann  <marcus@g10code.de>
1198         * maperror.c (map_ksba_err): Map -1.  Use gpg_err_make to set
1199         the error source.
1201 2003-08-14  Timo Schulz  <twoaday@freakmail.de>
1203         * dynload.h. New. W32 wrapper around the dynload mechanism.
1204         
1205 2003-07-15  Werner Koch  <wk@gnupg.org>
1207         * simple-pwquery.c, simple-pwquery.h:  New; moved from ../agent.  
1208         * Makefile.am (libsimple_pwquery_a_LIBADD): New.
1210 2003-06-25  Werner Koch  <wk@gnupg.org>
1212         * maperror.c (map_to_assuan_status): Directly map 0 to 0.
1214 2003-06-17  Werner Koch  <wk@gnupg.org>
1216         * gettime.c (scan_isodatestr,add_days_to_timestamp,strtimevalue)
1217         (strtimestamp,asctimestamp): New.  Code taken from gnupg 1.3.2
1218         mischelp.c.
1220         * yesno.c: New.  Code taken from gnupg 1.3.2 mischelp.c
1222         * miscellaneous.c: New.
1224         * util.h: Include utf8conf.h
1226 2003-06-16  Werner Koch  <wk@gnupg.org>
1228         * gettime.c (make_timestamp): New.
1230         * ttyio.c: New. Taken from gnupg 1.2.
1231         * ttyio.h: Move from ../include.
1233 2003-06-13  Werner Koch  <wk@gnupg.org>
1235         * util.h (seterr): Removed macro.
1236         (xmalloc_secure,xcalloc_secure): New.
1238 2003-06-11  Werner Koch  <wk@gnupg.org>
1240         * iobuf.c (iobuf_writebyte,iobuf_write): Return error code from
1241         iobuf_flush.
1242         (iobuf_writestr): Ditto.
1244 2003-06-10  Werner Koch  <wk@gnupg.org>
1246         * iobuf.c, iobuf.h: New. Taken from current gnupg 1.3 CVS.  Run
1247         indent on it and adjusted error handling to libgpg-error style.
1248         Replaced IOBUF by iobuf_t. Renamed malloc functions.
1250 2003-06-04  Werner Koch  <wk@gnupg.org>
1252         * errors.h: Removed all error codes.  We keep the status codes for
1253         now.
1254         * Makefile.am: Do not create errors.c anymore; remove it from the
1255         sources.
1257         * maperror.c: Don't include error.h.  Change all error codes to
1258         libgpg-error style.
1259         (map_assuan_err): Changed to new Assuan error code convention.
1260         (map_to_assuan_status): Likewise.
1261         (map_gcry_err,map_kbx_err): Not needed.  For now dummy functions.
1263         * membuf.c, membuf.h: New.  Code taken from ../sm/call-agent.h.
1264         * Makefile.am: Added above.
1266 2003-04-29  Werner Koch  <wk@gnupg.org>
1268         * util.h (fopencokokie): Removed prototype and struct.
1270         * fopencookie.c: Removed.
1272         * maperror.c: Use system assuan.h
1274 2002-10-31  Neal H. Walfield  <neal@g10code.de>
1276         * isascii.c: New file.
1277         * putc_unlocked.c: Likewise.
1279 2002-10-28  Neal H. Walfield  <neal@g10code.de>
1281         * signal.c (caught_fatal_sig): Remove superfluous zero
1282         initializer.
1283         (caught_sigusr1): Likewise.
1285 2002-09-04  Neal H. Walfield  <neal@g10code.de>
1287         * vasprintf.c (vasprintf) [va_copy]: Use va_copy.
1288         [!va_copy && __va_copy]: Use __va_copy.
1289         [!va_copy && !__va_copy]: Only now fall back to using memcpy.
1291 2002-08-21  Werner Koch  <wk@gnupg.org>
1293         * errors.h: Added STATUS_IMPORT_PROBLEM.
1295 2002-08-20  Werner Koch  <wk@gnupg.org>
1297         * vasprintf.c: Hack to handle NULL for %s.
1299 2002-08-09  Werner Koch  <wk@gnupg.org>
1301         * signal.c: New. Taken from GnuPG 1.1.91.
1303 2002-07-23  Werner Koch  <wk@gnupg.org>
1305         * util.h (_IO_cookie_io_functions_t): Fixed typo.  Noted by
1306         Richard Lefebvre.
1308 2002-07-22  Werner Koch  <wk@gnupg.org>
1310         * fseeko.c, ftello.c: New.
1312 2002-06-28  Werner Koch  <wk@gnupg.org>
1314         * maperror.c (map_to_assuan_status): Map more errorcodes to Bad
1315         Certificate.
1317 2002-06-26  Werner Koch  <wk@gnupg.org>
1319         * maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.
1321 2002-06-10  Werner Koch  <wk@gnupg.org>
1323         * errors.h (gnupg_error_token): Add new prototype.
1324         (STATUS_ERROR): New.
1326         * mkerrtok: New.
1327         * Makefile.am: Use it to create the new error token function.
1329 2002-06-04  Werner Koch  <wk@gnupg.org>
1331         * maperror.c (map_to_assuan_status): Map Bad_CA_Certificate.
1333 2002-05-23  Werner Koch  <wk@gnupg.org>
1335         * no-pth.c, Makefile.am: Removed.
1337 2002-05-22  Werner Koch  <wk@gnupg.org>
1339         * mkdtemp.c: Replaced byte by unsigned char because it is no longer
1340         defined in gcrypt.h.
1342 2002-05-21  Werner Koch  <wk@gnupg.org>
1344         * maperror.c (map_gcry_err): Add libgcrypt's new S-expression errors.
1345         (map_ksba_err): Add a few mappings.
1347 2002-05-14  Werner Koch  <wk@gnupg.org>
1349         * gettime.c: New.
1351 2002-05-03  Werner Koch  <wk@gnupg.org>
1353         * errors.h: Added STARUS_EXPSIG and STATUS_EXPKEYSIG.
1355 2002-04-15  Werner Koch  <wk@gnupg.org>
1357         * cryptmiss.c: New.
1359 2002-02-14  Werner Koch  <wk@gnupg.org>
1361         * maperror.c: Add more assuan<->gnupg mappings.
1363 2002-02-12  Werner Koch  <wk@gnupg.org>
1365         * fopencookie.c: Dummy function.
1367         * vasprintf.c: New.  Taken from binutils-2.9.1 and dropped all non
1368         ANSI-C stuff.  Merged with asprintf version.
1370         * no-pth.c: New.
1372 2002-01-23  Werner Koch  <wk@gnupg.org>
1374         * mkdtemp.c: Copied from gnupg-1.0.6c and changed to use libgcrypt.
1376 2002-01-19  Werner Koch  <wk@gnupg.org>
1378         * sysutils.c: New.  This is the misc.c file from gnupg 1.0.6 with
1379         the OpenPGP stuff removed.
1380         * sysutils.h: New.
1381         
1382 2002-01-15  Werner Koch  <wk@gnupg.org>
1384         * maperror.c: Add mapping for Not_Trusted. 
1386 2002-01-11  Werner Koch  <wk@gnupg.org>
1388         * maperror.c (map_assuan_err): Codes for CRL
1390 2002-01-08  Werner Koch  <wk@gnupg.org>
1392         * util.h (spacep): New.
1394 2002-01-02  Werner Koch  <wk@gnupg.org>
1396         * maperror.c (map_to_assuan_status): New.  Merged from ../agent
1397         and ../sm.
1399 2001-12-20  Werner Koch  <wk@gnupg.org>
1401         * maperror.c (map_gcry_err): Add some mappings.
1403 2001-12-18  Werner Koch  <wk@gnupg.org>
1405         * Makefile.am (AM_CPPFLAGS): Include flags for gcrypt and ksba
1407 2001-12-14  Werner Koch  <wk@gnupg.org>
1409         * util.h (digitp, hexdigitp): New ctype like macros.
1410         (atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New.
1411         
1412         
1413  Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007,
1414            2008, 2009 Free Software Foundation, Inc.
1416  This file is free software; as a special exception the author gives
1417  unlimited permission to copy and/or distribute it, with or without
1418  modifications, as long as this notice is preserved.
1420  This file is distributed in the hope that it will be useful, but
1421  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
1422  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1423