1 2007-12-13 Werner Koch <wk@g10code.com>
3 * sexputil.c (hash_algo_from_sigval): New.
5 * Makefile.am (module_tests): Add it.
7 2007-12-11 Werner Koch <wk@g10code.com>
9 * asshelp.c (send_pinentry_environment): Allow using of old
10 gpg-agents not capabale of the xauthority and pinentry_user_data
13 2007-12-04 Werner Koch <wk@g10code.com>
15 * Makefile.am (t_helpfile_LDADD, module_maint_tests): New.
18 * membuf.h (is_membuf_ready, MEMBUF_ZERO): New.
19 * localename.c: New. Taken from gettext with modifications as done
20 for GpgOL. Export one new function.
21 * util.h (gnupg_messages_locale_name, gnupg_get_help_string): Added.
23 * sysutils.c (gnupg_reopen_std): New. Taken from ../g10/gpg.c.
25 2007-11-27 Werner Koch <wk@g10code.com>
27 * Makefile.am (CLEANFILES): New.
29 * homedir.c (dirmngr_socket_name): Use CSIDL_WINDOWS.
31 2007-11-15 Werner Koch <wk@g10code.com>
33 * asshelp.c (send_pinentry_environment): Add args XAUTHORITY and
35 (start_new_gpg_agent): Ditto.
37 2007-11-07 Werner Koch <wk@g10code.com>
42 2007-11-05 Werner Koch <wk@g10code.com>
44 * audit.c, audit.h: New.
45 * Makefile.am: Add rules to build audit-events.h.
47 * mkstrtable.awk: New. Taken from libgpg-error.
49 2007-10-19 Werner Koch <wk@g10code.com>
51 * i18n.c (i18n_switchto_utf8, i18n_switchback): New.
53 2007-10-01 Werner Koch <wk@g10code.com>
55 * sysutils.h (FD2INT, INT2FD): New.
57 2007-09-21 Werner Koch <wk@g10code.com>
59 * homedir.c (default_homedir): Make registry work. Reported by
62 2007-08-29 Werner Koch <wk@g10code.com>
64 * exechelp.c (gnupg_wait_process): Add arg EXITCODE. Changed all
66 (gnupg_create_inbound_pipe): New.
67 * util.h (GNUPG_MODULE_NAME_GPGSM, GNUPG_MODULE_NAME_GPG): New.
68 * homedir.c (gnupg_module_name): Add them
70 2007-08-28 Werner Koch <wk@g10code.com>
72 * gettime.c (check_isotime, add_isotime): New. Originally written
74 (add_days_to_isotime): New.
75 (date2jd, jd2date, days_per_month, days_per_year): New. Taken from
76 my ancient (1988) code used in Wedit (time2.c).
78 2007-08-27 Werner Koch <wk@g10code.com>
80 * util.h (GNUPG_MODULE_NAME_CHECK_PATTERN): New.
81 * homedir.c (gnupg_module_name): Add it.
82 * exechelp.c (w32_fd_or_null) [W32]: New.
83 (gnupg_spawn_process_fd): New.
84 (gnupg_wait_process) [W32]: Close the handle after if the process has
87 2007-08-22 Werner Koch <wk@g10code.com>
89 Updated estream from libestream.
91 * estream.c (mem_malloc, mem_realloc, mem_free): New. Use them
92 instead of the ES_MEM_foo.
93 * estream.c (estream_cookie_mem): Remove members DONT_FREE,
94 APPEND_ZERO, PTR and SIZE. Add MEMORY_LIMIT. Put GROW into a new
96 (es_func_mem_create): Remove APPEND_ZERO, DONT_FREE, PTR and
97 SIZE. Add MEMORY_LIMIT.
98 (es_func_mem_write, es_func_mem_seek, es_func_mem_destroy): Revamp.
99 (es_open_memstream): Change API to just take a memory limit and a
100 mode argument. Rename to ..
101 (es_fopenmem): .. this.
102 (HAVE_W32_SYSTEM) [_WIN32]: Define if not defined.
103 (tmpfd) [W32]: Implement directly using the W32 API.
104 (es_fgets): Rewrite without using doreadline.
106 2007-08-21 Werner Koch <wk@g10code.com>
108 * sysutils.c (gnupg_tmpfile): New.
110 * Makefile.am (module_tests): Add t-sysutils.
112 2007-08-20 Werner Koch <wk@g10code.com>
114 * exechelp.c [W32]: Redefine X_OK to F_OK.
116 2007-08-16 Werner Koch <wk@g10code.com>
118 * Makefile.am (t_convert_DEPENDENCIES): Remove
119 ($(PROGRAMS)): Remove.
120 (t_common_ldadd): Use libcommon.a and not the macro.
122 2007-08-14 Werner Koch <wk@g10code.com>
124 * homedir.c (dirmngr_socket_name): New.
126 2007-08-07 Werner Koch <wk@g10code.com>
128 * tlv.c, tlv.h: Move from ../scd/.
129 * tlv.c (parse_sexp, parse_ber_header): Add ERRSOURCE arg and prefix
131 * tlv.h: Use macro to convey ERRSOURCE.
133 2007-08-02 Werner Koch <wk@g10code.com>
135 * gc-opt-flags.h: New.
137 2007-08-01 Werner Koch <wk@g10code.com>
139 * estream-printf.c (read_dummy_value): Removed as it is useless now.
140 (read_values): Remove check on !vaargs which is not anymore needed
141 and anyway not portable. Reported by Peter O'Gorman.
143 2007-07-16 Werner Koch <wk@g10code.com>
145 * estream.c (es_func_file_create): Clear NO_CLOSE flag.
147 2007-07-12 Werner Koch <wk@g10code.com>
149 * sysutils.h (gnupg_fd_t): New.
150 * sysutils.c (translate_sys2libc_fd): Use that type instead of int.
151 (translate_sys2libc_fd_int): New.
153 2007-07-09 Werner Koch <wk@g10code.com>
155 * t-gettime.c (test_isotime2epoch): Use time_t and not u32.
157 2007-07-05 Werner Koch <wk@g10code.com>
160 * gettime.c (isotime2epoch, epoch2isotime): New.
162 2007-07-04 Werner Koch <wk@g10code.com>
164 * estream.c (es_init_do): Do not throw an error if pth has already
167 2007-06-26 Werner Koch <wk@g10code.com>
169 * Makefile.am ($(PROGRAMS)): New.
171 * util.h (init_common_subsystems): Moved to ..
173 * util.h: Include init.h.
175 * homedir.c (standard_homedir): New.
176 (default_homedir) [W32]: Reimplemented in terms of
177 standard_homedir. Fixed memory leak.
179 2007-06-25 Werner Koch <wk@g10code.com>
181 * iobuf.c: Add more documentation and slighly restructured macro
182 defintion for better readability.
183 (FILEP_OR_FD): Rename to fp_or_fd_t.
184 (CLOSE_CACHE): Rename to close_cache_t.
186 * sysutils.c (translate_sys2libc_fd): New using the code from iobuf.c.
187 * iobuf.c: Include sysutils.h.
188 (iobuf_translate_file_handle): Remove.
189 (translate_file_handle): Use new function.
191 * estream-printf.c [TEST]: Header including fixes.
192 (do_format): Do not append a trailing Nul. This avoids spurious
193 Nuls in the es_printf output.
194 (estream_vsnprintf, estream_vasprintf): Take this in account.
196 * estream.h (struct es__stream): Change FLAGS to a bit structure.
197 (ES__FLAG_WRITING): Replace by a bit from FLAGS. * estream.c
198 (struct estream_internal): Rename FLAGS to MODEFLAGS so that they
199 are not confused with the estream flags.
200 (es_initialize, es_create): Add arg MODEFLAGS so that we can setup
201 the intial writemode. Changed all callers to pass them.
202 (es_convert_mode): Set O_BINARY.
203 (es_func_fd_create, es_func_fp_create, es_func_file_create) [W32]:
204 Call setmode if requested.
206 2007-06-24 Werner Koch <wk@g10code.com>
208 * estream.c (do_fpopen, es_fpopen, es_fpopen_nc): New.
209 (es_func_fp_create, es_func_fp_read, es_func_fp_write)
210 (es_func_fp_seek, es_func_fp_destroy): New.
212 2007-06-22 Werner Koch <wk@g10code.com>
214 * estream.c (es_fdopen): Factored code out to..
217 (estream_cookie_fd): Add field NO_CLOSE.
218 (es_func_fd_create): Add arg NO_CLOSE and changed all callers.
219 (es_func_fd_destroy): Handle the new flag.
221 * homedir.c (gnupg_libexecdir) [W32]: Factor code out to ..
222 (w32_rootdir): .. new.
223 (gnupg_sysconfdir, gnupg_libdir, gnupg_datadir) [W32]: Return
224 name based on w32_rootdir().
226 2007-06-21 Werner Koch <wk@g10code.com>
228 * membuf.h (get_membuf_len): New.
230 * membuf.c (init_membuf_secure): Really allocate in secure memory.
231 (put_membuf_str): New.
233 * ttyio.c (tty_getf): New.
235 * util.h (ctrl_t): Declare it here.
237 * asshelp.c (start_new_gpg_agent): New. Based on code from
240 2007-06-20 Werner Koch <wk@g10code.com>
242 * sysutils.c (gnupg_sleep): New.
243 * sysutils.h [W32]: Remove _sleep wrapper. Changed all callers to
246 * exechelp.c (build_w32_commandline_copy): New.
247 (build_w32_commandline): Factored some code out to new function
248 and correctly process a PGMNAME with spaces.
249 (gnupg_spawn_process_detached) [W32]: Implement.
251 2007-06-14 Werner Koch <wk@g10code.com>
253 * simple-pwquery.h (MAP_SPWQ_ERROR_IMPL): New.
254 (SPWQ_NO_PIN_ENTRY): New.
255 * simple-pwquery.c (simple_pw_set_socket): New.
256 (agent_open): Use it if GPG_AGENT_INFO is not set.
257 (simple_pwquery): Extended to allow returning of otehyr error codes.
259 * util.h (GNUPG_MODULE_NAME_AGENT, GNUPG_MODULE_NAME_PINENTRY)
260 (GNUPG_MODULE_NAME_SCDAEMON, GNUPG_MODULE_NAME_DIRMNGR)
261 (GNUPG_MODULE_NAME_PROTECT_TOOL): New.
262 * homedir.c (gnupg_module_name): New.
265 2007-06-12 Werner Koch <wk@g10code.com>
267 * homedir.c (gnupg_sysconfdir): New.
268 (gnupg_libexecdir): New. Taken from g10/misc.c:get_libexecdir.
269 (gnupg_datadir): New.
272 * http.c (connect_server) [W32]: Do not call init_sockets if
273 HTTP_NO_WSASTARTUP is defined.
277 * estream.c (es_init_do): Init stream lock here because we can't
278 use a static initialization with W32pth.
280 2007-06-11 Werner Koch <wk@g10code.com>
282 * Makefile.am (t_common_ldadd): Use libcommonstd macro.
284 2007-06-06 Werner Koch <wk@g10code.com>
286 * Makefile.am: Include am/cmacros.am.
288 * sysutils.h [W32]: Remove prototypes for the registry access.
289 * w32reg.c: Move to ../jnlib/w32-reg.c.
291 * i18n.c (i18n_init): New.
293 * simple-gettext.c: Remove.
295 * iobuf.c (iobuf_get_filelength): Rename SIZE to EXSIZE to silent
298 2007-06-04 Werner Koch <wk@g10code.com>
300 * http.c [W32]: Include unistd.h also in this case.
301 (write_server) [W32]: Fixed error code.
302 (init_sockets): Fixed syntax error.
303 (cookie_close): Replace close by sock_close macro.
305 * estream.c [w32]: Do not init Mutex.
307 * Makefile.am (common_sources) [USE_SNS_SRV]: Build srv.c only
310 * ttyio.c (init_ttyfp) [W32]: Do not use TTYFP.
312 * util.h: Include ../jnlib/dynload.h.
314 * dynload.h: Move to ../jnlib.
316 2007-05-30 Werner Koch <wk@g10code.com>
318 * estream.c (MEM_FREE, MEM_ALLOC, MEM_REALLOC): Prefix with ES_ as
319 windows.h also has such definitions,
321 2007-05-15 Werner Koch <wk@g10code.com>
323 * util.h: Do not include gnulib's vasprintf. Redefine asprintf
326 * xasprintf.c (xasprintf, xtryasprintf): Use estream_vasprintf.
328 * estream-printf.h, estream-printf.c: New. Taken from current
330 * Makefile.am (common_sources): Add them.
332 2007-05-14 Werner Koch <wk@g10code.com>
334 * sexp-parse.h (smklen): New.
335 * sexputil.c: Include sexp-parse.h.
336 (make_simple_sexp_from_hexstr): Replace sprintf by smklen.
338 2007-05-07 Werner Koch <wk@g10code.com>
340 * signal.c (got_fatal_signal): Protect SIG from being clobbered by
341 a faulty signal implementaion. Suggested by James Juran.
343 2007-04-25 Werner Koch <wk@g10code.com>
345 * i18n.h (ngettext): New.
346 * simple-gettext.c (ngettext): New.
348 2007-04-20 Werner Koch <wk@g10code.com>
350 * miscellaneous.c (my_gcry_logger, my_gcry_outofcore_handler):
351 Moved from gpg-agent to here.
352 (my_gcry_fatalerror_handler): new.
353 (setup_libgcrypt_logging): New.
355 2007-03-19 Werner Koch <wk@g10code.com>
357 * miscellaneous.c (print_hexstring): New.
358 * estream.c (es_fprintf_unlocked): New.
359 (es_write_sanitized): New.
360 (es_write_hexstring): New.
361 (es_write_sanitized_utf8_buffer) [GNUPG_MAJOR_VERSION]: New.
363 2007-03-09 David Shaw <dshaw@jabberwocky.com>
365 From STABLE-BRANCH-1-4
367 * http.c (do_parse_uri): Remove the hkp port 11371 detection. We
368 implement hkp in the keyserver handler, and the support here makes
369 it appear like a bad hkp request actually succeeded.
371 2007-01-31 Werner Koch <wk@g10code.com>
373 * Makefile.am (t_common_ldadd): Add LIBINCONV and LIBINTL.
375 2007-01-25 Werner Koch <wk@g10code.com>
377 * simple-pwquery.c (simple_pwquery): New arg OPT_CHECK.
379 2006-12-13 David Shaw <dshaw@jabberwocky.com>
381 * Makefile.am (AM_CPPFLAGS): Include intl/ so we can reference the
384 2006-11-23 Werner Koch <wk@g10code.com>
386 * http.c: Include i18n.h
388 2006-11-21 Werner Koch <wk@g10code.com>
390 * estream.c: Remove explicit Pth soft mapping diabling becuase it
391 is now done in config.h.
393 2006-11-15 Werner Koch <wk@g10code.com>
395 * estream.c: Disabled Pth soft mapping.
396 (my_funopen_hook_ret_t): New.
397 (print_fun_writer): Use it here.
399 * iobuf.c (fd_cache_close): Use %d instead of %p for debug output.
401 2006-11-03 Werner Koch <wk@g10code.com>
403 * Makefile.am (t_convert_DEPENDENCIES): Add libcommon. From
406 2006-10-24 Marcus Brinkmann <marcus@g10code.de>
408 * Makefile.am (libcommon_a_CFLAGS): Add $(LIBASSUAN_CFLAGS).
409 (libsimple_pwquery_a_CFLAGS): New variable.
411 2006-10-20 Werner Koch <wk@g10code.com>
413 * convert.c (hex2bin): New.
415 2006-10-17 Werner Koch <wk@g10code.com>
417 * estream.c (struct estream_internal, es_initialize)
418 (es_deinitialize, print_fun_writer, es_print): New and modified
419 functions to avoid tempfiles for printf style printing.
421 * Makefile.am (libcommonpth_a_SOURCES): New. We now build a secon
422 version of the library with explicit Pth support.
423 * exechelp.c, estream.c: Make use of WITHOUT_GNU_PTH.
425 2006-10-08 Werner Koch <wk@g10code.com>
427 * gpgrlhelp.c: Trun all functions into dummies if readline is not
430 2006-10-06 Werner Koch <wk@g10code.com>
432 * Makefile.am (AM_CFLAGS): Use PTH version of libassuan.
434 * util.h (GNUPG_GCC_A_SENTINEL): Defined for gcc >= 4.
436 2006-10-04 David Shaw <dshaw@jabberwocky.com>
438 * gpgrlhelp.c: readline requires stdio.h.
440 2006-10-04 Werner Koch <wk@g10code.com>
442 * membuf.c (init_membuf_secure): New.
443 (put_membuf): Make sure that ERRNO is set even if the underlying
444 malloc code does not work properly.
445 (get_membuf): Set ERRNO on error.
446 (get_membuf): Allow to pass LEN as NULL.
448 2006-10-02 Werner Koch <wk@g10code.com>
450 * iobuf.c (iobuf_unread): Removed. This code is not required.
451 Also removed the entire unget buffer stuff.
453 2006-09-27 Werner Koch <wk@g10code.com>
455 * util.h: Do not include strsep.h and strpbrk.h.
456 (isascii): Removed as it is now in jnlib.
458 * iobuf.c (pop_filter, underflow, iobuf_close): Free the unget
461 2006-09-27 Florian Weimer <fweimer@bfk.de> (wk)
463 * iobuf.c (iobuf_unread): New.
465 2006-09-22 Werner Koch <wk@g10code.com>
467 * i18n.h: Changed license to an all permissive one.
469 * ttyio.c (tty_get): We need to use readline too. Added two more
472 2006-09-21 Werner Koch <wk@g10code.com>
474 * ttyio.c (tty_private_set_rl_hooks): New.
475 (tty_enable_completion, tty_disable_completion): Use a hook to
476 enable readline support. Now always available.
477 (tty_cleanup_rl_after_signal): New.
479 * ttyio.h: Removed readline specific stuff. Included util.h.
480 * common-defs.h: New.
482 2006-09-15 Werner Koch <wk@g10code.com>
486 (bin2hex, bin2hexcolon, do_binhex): New.
489 2006-09-14 Werner Koch <wk@g10code.com>
491 * util.h (out_of_core): Use new gpg_error_from_syserror function.
493 * http.c (init_sockets): Changed it to require 2.2 unless it is
494 build within gnupg 1 where we require 1.1 (and not anymore allow
497 2006-09-07 Werner Koch <wk@g10code.com>
499 * exechelp.c (gnupg_spawn_process): Factor out post fork code to ..
500 (do_exec): .. new function. Allow passing of -1 for the fds.
501 (gnupg_spawn_process): Terminate gcrypt's secure memory in the child.
502 (gnupg_spawn_process_detached): New.
504 2006-09-06 Werner Koch <wk@g10code.com>
506 * maperror.c: Removed.
508 * util.h (out_of_core): New.
510 2006-09-04 Werner Koch <wk@g10code.com>
512 * http.c (http_get_header): New.
513 (capitalize_header_name, store_header): New.
514 (parse_response): Store headers away.
515 (send_request): Return GPG_ERR_NOT_FOUND if connect_server failed.
516 * http.h: New flag HTTP_FLAG_NEED_HEADER.
518 2006-08-21 Werner Koch <wk@g10code.com>
520 * Makefile.am (libcommon_a_SOURCES): Added keyserver.h
522 * openpgpdefs.h: New. Stripped from ..g10/packet.h.
524 2006-08-16 Werner Koch <wk@g10code.com>
526 * keyserver.h: Moved from ../include to here.
528 * http.c: Include srv.h.
530 * srv.c, srv.h: New. Taken from GnuPG 1.4
532 2006-08-14 Werner Koch <wk@g10code.com>
534 * http.h (struct http_context_s): Moved to implementation.
535 * http.c (http_open): Changed call to return a context.
536 (http_open_document): Ditto.
537 (http_get_read_ptr, http_get_read_ptr, http_get_status_code): New.
538 (do_parse_uri): Replaced strlwr by straight code to ease
539 standalone use of this file.
540 (http_wait_response): Removed arg STATUS_CODE as it is available
541 through an accessor function. Adjusted caller.
542 (http_escape_string): New.
544 * estream.c (es_read_line): Renamed to ..
545 (doreadline): .. this. Changed all callers.
546 (es_read_line): New. This is theusual limited getline variabnt as
547 used at several places. Here taken and adjusted from xreadline.c
550 2006-08-11 Werner Koch <wk@g10code.com>
552 * http.c: Major internal changes to optionallly support GNUTLS and
554 (http_open): Move initialization of the stream ...
555 (send_request): .. here.
556 (http_register_tls_callback): New.
558 * estream.c (es_writen): Try to seek only is a seek function has
561 2006-08-09 Werner Koch <wk@g10code.com>
563 * http.c, http.h: New. Taken from gnupg 1.4.5, merged with
564 changes done for the Dirmngr project (by g10 Code) and cleaned up
566 (make_header_line): New. Change all caller to make user of the new
567 * Makefile.am (libcommon_a_SOURCES): Added http.c and http.h.
569 2006-05-23 Werner Koch <wk@g10code.com>
571 * gettime.c (isotimestamp): New.
573 * ttyio.c (tty_get_ttyname): Posixly correct usage of ctermid.
575 * dns-cert.c: New. Taken from 1.4.3's util/cert.c.
578 2006-05-22 Werner Koch <wk@g10code.com>
580 * pka.c: New. Taked from 1.4.3.
582 * Makefile.am: Added pka.
584 2006-05-19 Werner Koch <wk@g10code.com>
586 * yesno.c (answer_is_yes_no_default, answer_is_yes_no_quit):
588 (answer_is_okay_cancel): new. From 1.4.3.
590 * miscellaneous.c (match_multistr): New. Taken from 1.4.3.
592 * ttyio.c (tty_enable_completion, tty_disable_completion): New
594 * ttyio.h: Add prototypes and stubs.
596 2006-04-19 Werner Koch <wk@g10code.com>
598 * iobuf.c (iobuf_get_fd): New. Taken from 1.4.3.
599 (iobuf_is_pipe_filename): New.
600 (pop_filter): Made static.
601 (iobuf_skip_rest): New. Orginal patch by Florian
602 Weimer. Added new argument PARTIAL.
603 (block_filter): Remove the old gpg indeterminate length mode.
604 (block_filter): Properly handle a partial body stream
605 that ends with a 5-byte length that happens to be zero.
606 (iobuf_set_block_mode, iobuf_in_block_mode): Removed as
608 (iobuf_get_filelength): New arg OVERFLOW.
609 (iobuf_get_filelength) [W32]: Use GetFileSizeEx if available
610 * miscellaneous.c (is_file_compressed): Take care of OVERFLOW.
612 2006-04-18 Werner Koch <wk@g10code.com>
614 * homedir.c (w32_shgetfolderpath): New. Taken from gpg 1.4.3.
615 (default_homedir): Use it.
617 2005-10-08 Marcus Brinkmann <marcus@g10code.de>
619 * signal.c (get_signal_name): Check value of HAVE_DECL_SYS_SIGLIST
620 instead of just if it is defined.
622 2005-09-28 Marcus Brinkmann <marcus@g10code.de>
624 * Makefile.am (AM_CFLAGS): Add $(LIBASSUAN_CFLAGS).
626 2005-07-04 Marcus Brinkmann <marcus@g10code.de>
628 * simple-pwquery.h (simple_pwclear): New prototype.
629 * simple-pwquery.c (simple_pwclear): New function.
631 2005-06-15 Werner Koch <wk@g10code.com>
633 * miscellaneous.c (make_printable_string): Made P a void*.
635 * sexputil.c (keygrip_from_canon_sexp, cmp_simple_canon_sexp):
636 Fixed signed/unsigned pointer mismatch.
637 (make_simple_sexp_from_hexstr): Ditto. This is all too ugly; I
638 wonder why gcc-4's default is to warn about them and forcing us to
639 use cast the warning away.
640 * iobuf.c (block_filter): Ditto.
641 (iobuf_flush): Ditto.
642 (iobuf_read_line): Ditto.
643 (iobuf_read): Make BUFFER a void *.
644 (iobuf_write): Make BUFFER a const void *.
645 * ttyio.c (tty_print_utf8_string2): Ditto.
646 * estream.c (estream_cookie_mem): Make MEMORY unsigned char*.
647 (es_write): Make BUFFER a void *.
649 (es_func_fd_read, es_func_fd_write, es_func_mem_read)
650 (es_func_mem_write): Ditto.
651 (es_read, es_readn): Ditto.
652 (es_func_mem_write): Made MEMORY_NEW an unsigned char *.
653 * estream.h (es_cookie_read_function_t)
654 (es_cookie_write_function_t): Changed buffer arg to void*.
656 2005-06-03 Werner Koch <wk@g10code.com>
658 * estream.c: Use HAVE_CONFIG_H and not USE_CONFIG_H!
659 (es_func_fd_read, es_func_fd_write): Protect against EINTR.
661 2005-06-01 Werner Koch <wk@g10code.com>
663 * Makefile.am (AM_CPPFLAGS): Added.
665 * util.h: Add some includes for gnulib.
666 (ttyname, isascii): Define them inline.
667 * fseeko.c, ftello.c: Removed.
668 * strsep.c, mkdtemp.c: Removed.
669 * ttyname.c, isascii.c: Removed.
671 2005-05-31 Werner Koch <wk@g10code.com>
673 * dynload.h: s/__inline__/inline/.
675 2005-05-13 Werner Koch <wk@g10code.com>
677 * signal.c (got_fatal_signal): Print the signal number if we can't
679 (get_signal_name): Return NULL if no name is available. Fixed
680 conditional for sys_siglist to the correct one.
682 2005-04-17 Werner Koch <wk@g10code.com>
684 * sexputil.c (cmp_simple_canon_sexp): New.
685 (make_simple_sexp_from_hexstr): New.
687 2005-04-07 Werner Koch <wk@g10code.com>
691 2005-04-11 Marcus Brinkmann <marcus@g10code.de>
693 * simple-pwquery.c (simple_pwquery): Use spwq_secure_free.
695 2005-03-03 Werner Koch <wk@g10code.com>
697 * Makefile.am (AM_CFLAGS): Added PTH_CFLAGS. Noted by Kazu Yamamoto.
699 2005-02-25 Werner Koch <wk@g10code.com>
701 * xasprintf.c (xtryasprintf): New.
703 2005-01-26 Moritz Schulte <moritz@g10code.com>
705 * Makefile.am (libcommon_a_SOURCES): New source files: estream.c,
707 * estream.c, estream.h: New files.
709 2005-01-03 Werner Koch <wk@g10code.com>
711 * asshelp.c (send_pinentry_environment): Fixed changed from
712 2004-12-18; cut+paste error for lc-messages.
714 2004-12-21 Werner Koch <wk@g10code.com>
716 * simple-pwquery.c (agent_open) [W32]: Implement for W32.
717 (readline) [W32]: Use recv instead of read.
718 (writen) [W32]: Use send instead of write.
719 (my_stpcpy): Define a stpcpy replacement so that this file
720 continues to be self-contained.
721 (agent_send_all_options) [W32]: Don't call ttyname.
723 2004-12-21 Marcus Brinkmann <marcus@g10code.de>
725 * simple-pwquery.h (simple_query): Add prototype.
726 * simple-pwquery.c (simple_query): New function.
728 2004-12-21 Werner Koch <wk@g10code.com>
730 * signal.c (got_fatal_signal, got_usr_signal)
731 (got_fatal_signal) [DOSISH]: Don't build.
732 * simple-gettext.c: Include sysutils.h
734 * homedir.c: New. Use CSIDL_APPDATA for W32 as the default home
736 * Makefile.am (libcommon_a_SOURCES): Add it.
737 (EXTRA_DIST): Removed mkerror and mkerrtok.
739 2004-12-20 Werner Koch <wk@g10code.com>
741 * sysutils.h [W32]: Define sleep.
742 * util.h: Add prototype for mkdtemp.
744 * membuf.c (put_membuf): Wipe out buffer after a failed realloc.
746 2004-12-19 Werner Koch <wk@g10code.com>
748 * maperror.c (map_assuan_err_with_source): Oops, args were swapped.
750 2004-12-18 Werner Koch <wk@g10code.com>
752 * maperror.c (map_assuan_err): Renamed to ..
753 (map_assuan_err_with_source): .. this and add arg SOURCE.c
754 * asshelp.c (send_pinentry_environment, send_one_option): Add arg
757 2004-12-15 Werner Koch <wk@g10code.com>
759 * sysutils.h [W32]: Prototypes for registry functions.
760 * w32reg.c: Include sysutils.h
762 * simple-pwquery.c [W32]: Dummy code to allow a build.
764 * exechelp.c [W32]: Implemented for W32 .
768 * asshelp.c (send_one_option): New.
769 (send_pinentry_environment): Cleaned up and made sure that empty
772 2004-12-07 Werner Koch <wk@g10code.com>
774 * asshelp.c (send_pinentry_environment) [W32]: Do not use ttyname.
776 2004-12-06 Werner Koch <wk@g10code.com>
778 * exechelp.h, exechelp.c: New. Based on code from ../sm/import.c.
780 2004-12-03 Werner Koch <wk@g10code.com>
782 * strsep.c: Fixed copyright comments.
784 2004-11-26 Werner Koch <wk@g10code.com>
786 * simple-gettext.c: New taken from gnupg 1.3.x
788 * simple-pwquery.c [_WIN32]: Include winsock2.h.
789 (agent_open): Disable it until we have our AF_UNIX implementation
791 * fseeko.c, ftello.c: Include sys/types for the sake of W32.
793 2004-11-23 Werner Koch <wk@g10code.com>
795 * b64enc.c: Include stdio.h and string.h
797 2004-08-18 Werner Koch <wk@g10code.de>
799 * simple-pwquery.c (simple_pwquery): Handle gpg-error style return
802 2004-07-20 Werner Koch <wk@g10code.de>
804 * maperror.c: Removed header ksba.h. Not required anymore.
806 2004-06-14 Werner Koch <wk@gnupg.org>
808 * xreadline.c: New. Based on the iobuf_read_line function.
810 2004-05-12 Werner Koch <wk@gnupg.org>
812 * util.h (xtrycalloc_secure,xtrymalloc_secure): New.
814 2004-05-11 Werner Koch <wk@gnupg.org>
816 * sysutils.c (disable_core_dumps): Only set the current limit.
817 (enable_core_dumps): New.
819 2004-04-13 Werner Koch <wk@gnupg.org>
821 * simple-pwquery.c (copy_and_escape): Relaxed quoting.
823 2004-04-05 Werner Koch <wk@gnupg.org>
825 * errors.h (STATUS_NEWSIG): New.
827 2004-03-11 Werner Koch <wk@gnupg.org>
829 * dynload.h [__MINGW32__]: Define RTLD_LAZY.
831 2004-03-09 Werner Koch <wk@gnupg.org>
833 * maperror.c (map_assuan_err): Map the Locale_Problem item.
835 2004-03-03 Werner Koch <wk@gnupg.org>
837 * asshelp.c, asshelp.h: New.
838 (send_pinentry_environment): New. Code taken from ../sm/call-agent.c.
840 2004-02-19 Werner Koch <wk@gnupg.org>
842 * simple-pwquery.c (agent_open): Don't mangle INFOSTR.
844 2004-02-17 Werner Koch <wk@gnupg.org>
846 * simple-pwquery.c (agent_open): Ignore an empty GPG_AGENT_INFO.
848 * errors.h: Added STATUS_IMPORT_OK.
850 2004-02-10 Werner Koch <wk@gnupg.org>
852 * b64enc.c: New. Based on code from ../sm/base64.c.
854 2004-01-30 Marcus Brinkmann <marcus@g10code.de>
856 * Makefile.am (libcommon_a_SOURCES): Add xasprintf.c.
857 * miscellaneous.c (xasprintf): Moved to ...
858 * xasprintf (xasprintf): ... here. New file.
859 This allows to use xasprintf without sucking in gpg-error.
861 2004-01-27 Werner Koch <wk@gnupg.org>
863 * sexp-parse.h: New; moved from../agent.
865 * util.h (xtoi_4): New.
867 2003-12-23 Werner Koch <wk@gnupg.org>
869 * maperror.c (map_assuan_err): Prepared for a new error code.
871 2003-12-17 Werner Koch <wk@gnupg.org>
873 * gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.
875 * util.h [!HAVE_VASPRINTF]: Add printf format attribute to the
876 replacement function.
878 * miscellaneous.c (xasprintf): New.
880 2003-11-14 Werner Koch <wk@gnupg.org>
882 * mkdtemp.c (mkdtemp): Use gcry_create_nonce.
884 * cryptmiss.c: Removed.
886 2003-11-13 Werner Koch <wk@gnupg.org>
888 * util.h (vasprintf): Also fixed the prototype.
890 * vasprintf.c (vasprintf): ARGS should not be a pointer. Fixed
891 segv on Solaris. Reported by Andrew J. Schorr.
893 2003-11-12 Werner Koch <wk@gnupg.org>
895 * maperror.c (map_ksba_err, map_gcry_err, map_kbx_err): Removed.
897 2003-10-31 Werner Koch <wk@gnupg.org>
899 * util.h (gnupg_isotime_t): New.
900 (gnupg_copy_time): New.
902 * gettime.c (gnupg_get_isotime): New.
904 2003-09-23 Werner Koch <wk@gnupg.org>
906 * iobuf.c (check_special_filename): Replaced is isdigit by digitp
907 to avoid passing negative values and potential locale problems.
908 Problem noted by Christian Biere.
910 * util.h (ascii_isspace): New.
912 2003-09-18 Werner Koch <wk@gnupg.org>
914 * ttyio.c (tty_fprintf): New.
915 (tty_print_string, tty_print_utf8_string2)
916 (tty_print_utf8_string): Made P argument const byte*.
918 2003-08-20 Marcus Brinkmann <marcus@g10code.de>
920 * maperror.c (map_ksba_err): Map -1. Use gpg_err_make to set
923 2003-08-14 Timo Schulz <twoaday@freakmail.de>
925 * dynload.h. New. W32 wrapper around the dynload mechanism.
927 2003-07-15 Werner Koch <wk@gnupg.org>
929 * simple-pwquery.c, simple-pwquery.h: New; moved from ../agent.
930 * Makefile.am (libsimple_pwquery_a_LIBADD): New.
932 2003-06-25 Werner Koch <wk@gnupg.org>
934 * maperror.c (map_to_assuan_status): Directly map 0 to 0.
936 2003-06-17 Werner Koch <wk@gnupg.org>
938 * gettime.c (scan_isodatestr,add_days_to_timestamp,strtimevalue)
939 (strtimestamp,asctimestamp): New. Code taken from gnupg 1.3.2
942 * yesno.c: New. Code taken from gnupg 1.3.2 mischelp.c
944 * miscellaneous.c: New.
946 * util.h: Include utf8conf.h
948 2003-06-16 Werner Koch <wk@gnupg.org>
950 * gettime.c (make_timestamp): New.
952 * ttyio.c: New. Taken from gnupg 1.2.
953 * ttyio.h: Move from ../include.
955 2003-06-13 Werner Koch <wk@gnupg.org>
957 * util.h (seterr): Removed macro.
958 (xmalloc_secure,xcalloc_secure): New.
960 2003-06-11 Werner Koch <wk@gnupg.org>
962 * iobuf.c (iobuf_writebyte,iobuf_write): Return error code from
964 (iobuf_writestr): Ditto.
966 2003-06-10 Werner Koch <wk@gnupg.org>
968 * iobuf.c, iobuf.h: New. Taken from current gnupg 1.3 CVS. Run
969 indent on it and adjusted error handling to libgpg-error style.
970 Replaced IOBUF by iobuf_t. Renamed malloc functions.
972 2003-06-04 Werner Koch <wk@gnupg.org>
974 * errors.h: Removed all error codes. We keep the status codes for
976 * Makefile.am: Do not create errors.c anymore; remove it from the
979 * maperror.c: Don't include error.h. Change all error codes to
981 (map_assuan_err): Changed to new Assuan error code convention.
982 (map_to_assuan_status): Likewise.
983 (map_gcry_err,map_kbx_err): Not needed. For now dummy functions.
985 * membuf.c, membuf.h: New. Code taken from ../sm/call-agent.h.
986 * Makefile.am: Added above.
988 2003-04-29 Werner Koch <wk@gnupg.org>
990 * util.h (fopencokokie): Removed prototype and struct.
992 * fopencookie.c: Removed.
994 * maperror.c: Use system assuan.h
996 2002-10-31 Neal H. Walfield <neal@g10code.de>
998 * isascii.c: New file.
999 * putc_unlocked.c: Likewise.
1001 2002-10-28 Neal H. Walfield <neal@g10code.de>
1003 * signal.c (caught_fatal_sig): Remove superfluous zero
1005 (caught_sigusr1): Likewise.
1007 2002-09-04 Neal H. Walfield <neal@g10code.de>
1009 * vasprintf.c (vasprintf) [va_copy]: Use va_copy.
1010 [!va_copy && __va_copy]: Use __va_copy.
1011 [!va_copy && !__va_copy]: Only now fall back to using memcpy.
1013 2002-08-21 Werner Koch <wk@gnupg.org>
1015 * errors.h: Added STATUS_IMPORT_PROBLEM.
1017 2002-08-20 Werner Koch <wk@gnupg.org>
1019 * vasprintf.c: Hack to handle NULL for %s.
1021 2002-08-09 Werner Koch <wk@gnupg.org>
1023 * signal.c: New. Taken from GnuPG 1.1.91.
1025 2002-07-23 Werner Koch <wk@gnupg.org>
1027 * util.h (_IO_cookie_io_functions_t): Fixed typo. Noted by
1030 2002-07-22 Werner Koch <wk@gnupg.org>
1032 * fseeko.c, ftello.c: New.
1034 2002-06-28 Werner Koch <wk@gnupg.org>
1036 * maperror.c (map_to_assuan_status): Map more errorcodes to Bad
1039 2002-06-26 Werner Koch <wk@gnupg.org>
1041 * maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.
1043 2002-06-10 Werner Koch <wk@gnupg.org>
1045 * errors.h (gnupg_error_token): Add new prototype.
1046 (STATUS_ERROR): New.
1049 * Makefile.am: Use it to create the new error token function.
1051 2002-06-04 Werner Koch <wk@gnupg.org>
1053 * maperror.c (map_to_assuan_status): Map Bad_CA_Certificate.
1055 2002-05-23 Werner Koch <wk@gnupg.org>
1057 * no-pth.c, Makefile.am: Removed.
1059 2002-05-22 Werner Koch <wk@gnupg.org>
1061 * mkdtemp.c: Replaced byte by unsigned char because it is no longer
1062 defined in gcrypt.h.
1064 2002-05-21 Werner Koch <wk@gnupg.org>
1066 * maperror.c (map_gcry_err): Add libgcrypt's new S-expression errors.
1067 (map_ksba_err): Add a few mappings.
1069 2002-05-14 Werner Koch <wk@gnupg.org>
1073 2002-05-03 Werner Koch <wk@gnupg.org>
1075 * errors.h: Added STARUS_EXPSIG and STATUS_EXPKEYSIG.
1077 2002-04-15 Werner Koch <wk@gnupg.org>
1081 2002-02-14 Werner Koch <wk@gnupg.org>
1083 * maperror.c: Add more assuan<->gnupg mappings.
1085 2002-02-12 Werner Koch <wk@gnupg.org>
1087 * fopencookie.c: Dummy function.
1089 * vasprintf.c: New. Taken from binutils-2.9.1 and dropped all non
1090 ANSI-C stuff. Merged with asprintf version.
1094 2002-01-23 Werner Koch <wk@gnupg.org>
1096 * mkdtemp.c: Copied from gnupg-1.0.6c and changed to use libgcrypt.
1098 2002-01-19 Werner Koch <wk@gnupg.org>
1100 * sysutils.c: New. This is the misc.c file from gnupg 1.0.6 with
1101 the OpenPGP stuff removed.
1104 2002-01-15 Werner Koch <wk@gnupg.org>
1106 * maperror.c: Add mapping for Not_Trusted.
1108 2002-01-11 Werner Koch <wk@gnupg.org>
1110 * maperror.c (map_assuan_err): Codes for CRL
1112 2002-01-08 Werner Koch <wk@gnupg.org>
1114 * util.h (spacep): New.
1116 2002-01-02 Werner Koch <wk@gnupg.org>
1118 * maperror.c (map_to_assuan_status): New. Merged from ../agent
1121 2001-12-20 Werner Koch <wk@gnupg.org>
1123 * maperror.c (map_gcry_err): Add some mappings.
1125 2001-12-18 Werner Koch <wk@gnupg.org>
1127 * Makefile.am (AM_CPPFLAGS): Include flags for gcrypt and ksba
1129 2001-12-14 Werner Koch <wk@gnupg.org>
1131 * util.h (digitp, hexdigitp): New ctype like macros.
1132 (atoi_1,atoi_2,atoi_4,xtoi_1,xtoi_2): New.
1135 Copyright 2001, 2002, 2003, 2004, 2005, 2006,
1136 2007 Free Software Foundation, Inc.
1138 This file is free software; as a special exception the author gives
1139 unlimited permission to copy and/or distribute it, with or without
1140 modifications, as long as this notice is preserved.
1142 This file is distributed in the hope that it will be useful, but
1143 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
1144 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.