chiark / gitweb /
gpg agent lockup fix: Interrupt main loop when active_connections_value==0
[gnupg2.git] / common / ChangeLog.jnlib
1 2011-12-01  Werner Koch  <wk@g10code.com>
2
3         NB: ChangeLog files are no longer manually maintained.  Starting
4         on December 1st, 2011 we put change information only in the GIT
5         commit log, and generate a top-level ChangeLog file from logs at
6         "make dist".  See doc/HACKING for details.
7
8         [Update 2015-04-24: README.jnlib has been removed and all
9          references to JNLIB, except for this file, have been removed.]
10
11 2010-03-10  Werner Koch  <wk@g10code.com>
12
13         See gnupg/common/ChangeLog for newer changes.
14
15         JNLIB has been merged into GnuPG's common directory.  README.jnlib
16         list the files making up JNLIB.
17
18         * README: Rename to README.jnlib
19         * ChangeLog: Rename to ChangeLog.jnlib.
20         * Makefile.am: Remove.
21
22 2010-03-01  Werner Koch  <wk@g10code.com>
23
24         * t-w32-reg.c: New.
25
26         * w32-reg.c (read_w32_registry_string)
27         (write_w32_registry_string): Support W32CE.
28
29 2010-02-26  Werner Koch  <wk@g10code.com>
30
31         * t-timestuff.c: New.
32
33         * dynload.h (dlopen, dlsym) [W32CE]: Map to wchar_t.
34
35         * mischelp.c (_jnlib_free): New.
36         (same_file_p) [W32CE]: Map to wchar_t.
37
38         * utf8conv.c (set_native_charset) [W32CE]: Do not use
39         GetConsoleOutputCP.
40         (wchar_to_utf8, utf8_to_wchar) [W32]: New.
41
42         * Makefile.am (t_jnlib_ldadd) [W32CE]: Add gpg-error.
43
44         * t-support.h (getenv) [HAVE_GETENV]: Add getenv stub.
45         [W32CE]: Include gpg-error.h
46         * t-support.c (gpg_err_code_from_errno)
47         (gpg_err_code_from_syserror) [GPG_ERROR_H]: Do not build.
48
49         * t-stringhelp.c (gethome) [!HAVE_GETPWUID]: Keep result of getenv.
50
51         * dotlock.c [!HAVE_SIGNAL_H]: Don't include signal.h.
52         (create_dotlock) [W32CE]: Map filename top wchar_t.
53
54         * libjnlib-config.h [USE_SIMPLE_GETTEXT]: Include gpg-error.h and
55         remove w32help.h.
56         (jnlib_set_errno): New.  Use it everywhere to set ERRNO.
57         (getenv) [!HAVE_GETENV]: New.
58         (getpid) [W32E]: New.
59
60         * stringhelp.c (get_pwdir) [!HAVE_PWD_H]: Mark unused args.
61         (w32_strerror) [W32CE]: Use a simple implementation.
62
63         * w32help.h [USE_SIMPLE_GETTEXT]: Remove all definitions; we are
64         now using the gpg-error included implementation.
65         * w32-gettext.c: Remove.
66
67         * mischelp.c (same_file_p): Fix bug in case the second file can't
68         be opened.
69
70 2009-10-19  Werner Koch  <wk@g10code.com>
71
72         * strlist.c (add_to_strlist_try): New.
73
74 2009-09-22  Werner Koch  <wk@g10code.com>
75
76         * dotlock.h (DOTLOCK): Rename to dotlock_t.  Change all users.
77
78 2009-08-26  Werner Koch  <wk@g10code.com>
79
80         * stringhelp.c (do_make_filename): Factor some code out to ..
81         (get_pwdir): .. new.
82
83 2009-08-26  Werner Koch  <wk@g10code.com>
84
85         * stringhelp.c [HAVE_PWD_H]: Include pwd.h.
86         (do_make_filename): New.
87         (make_filename, make_filename_try): Implement using the new
88         function.
89         * t-stringhelp.c (test_make_filename_try): New.
90         * t-support.c (gcry_strdup): Fix.
91
92         * stringhelp.h (make_filename, make_filename_try): Add sentinel
93         attribute.
94
95 2009-08-25  Werner Koch  <wk@g10code.com>
96
97         * stringhelp.c: Include errno.h.
98         (do_strconcat): New.
99         (strconcat, xstrconcat): New.
100         * types.h (GNUPG_GCC_A_SENTINEL): New.
101         * t-stringhelp.c (test_strconcat, test_xstrconcat): New.
102         (main): Run them.
103
104 2009-07-07  Werner Koch  <wk@g10code.com>
105
106         * stringhelp.c (make_filename_try): Use jnlib_malloc.
107
108         * dotlock.c (read_lockfile): Replace jnlib_xmalloc by jnlib_malloc.
109
110 2009-06-04  Werner Koch  <wk@g10code.com>
111
112         * mischelp.h: Include SUN_LEN etc also for W32.
113
114 2009-05-19  Werner Koch  <wk@g10code.com>
115
116         * mischelp.h: Define PF_LOCAL, AF_LOCAL and SUN_LEN if requested.
117         * logging.c (fun_writer): Use SUN_LEN to fix a Mac OS X freeze.
118
119 2009-03-25  Werner Koch  <wk@g10code.com>
120
121         * logging.c (fun_closer): Never close fd 2.
122         (set_file_fd): Close logstream early.
123
124 2009-02-25  Werner Koch  <wk@g10code.com>
125
126         * logging.c (get_tid_callback): New.
127         (do_logv): Use it.
128         (log_set_get_tid_callback): New.
129
130 2009-01-22  Werner Koch  <wk@g10code.com>
131
132         * t-support.c (gpg_err_code_from_errno)
133         (gpg_err_code_from_syserror): New.
134
135 2008-11-20  Werner Koch  <wk@g10code.com>
136
137         * argparse.c (arg_parse): Fix last change.
138
139 2008-11-11  Werner Koch  <wk@g10code.com>
140
141         * argparse.h: Add a bunch of macros and constants.
142         * argparse.c: Use the new macros.  Re-indent the code.  Change
143         license back to LGPL 2.1.
144
145 2008-11-04  Werner Koch  <wk@g10code.com>
146
147         * w32-gettext.c: Merged with code from libgpg-error and rewrote
148         most parts.
149
150         * Makefile.am (AM_CFLAGS): Add -DJNLIB_IN_JNLIB.
151
152 2008-10-29  Werner Koch  <wk@g10code.com>
153
154         * stringhelp.c (make_filename): Implement using macros. Factor some
155         code out to ..
156         (change_slashes): New.
157         (make_filename_try): New.
158
159         * w32-gettext.c (gettext): Return if no domain is loaded.
160         Reported by Tom Pegios.
161
162 2008-10-28  Werner Koch  <wk@g10code.com>
163
164         * w32-gettext.c (gettext): Try the binary search if the string was
165         not found in the hash table.
166
167 2008-10-20  Werner Koch  <wk@g10code.com>
168
169         * w32-afunix.c (_w32_sock_connect): Mark ADDRLEN as unused.
170
171         * dotlock.c (release_dotlock): Do not mix declaration and code.
172
173         * stringhelp.c (make_basename): Silent gcc warning about unused arg.
174         * argparse.c (store_alias): Ditto.
175         (find_long_option):
176
177 2008-10-15  Werner Koch  <wk@g10code.com>
178
179         * logging.c (do_logv) [W32]: Flush the log stream.
180
181 2008-09-29  Werner Koch  <wk@g10code.com>
182
183         * argparse.c (ARGERR_): Use constants for error values.
184         (optfile_parse): Prettify.  Replace xmalloc and xrealloc by malloc
185         and realloc.
186         * libjnlib-config.h (jnlib_strdup, jnlib_realloc): New.
187
188 2008-06-26  Werner Koch  <wk@g10code.com>
189
190         * stringhelp.c (print_sanitized_buffer2): Loose check for control
191         characters to better cope with utf-8.  The range 0x80..0x9f is
192         nowadays not anymore accidently used for control charaters.
193
194 2008-06-13  Werner Koch  <wk@g10code.com>
195
196         * dotlock.c: Reformat code and implement locking for W32.
197         (create_dotlock): Use snprintf.
198
199 2008-06-11  Werner Koch  <wk@g10code.com>
200
201         * utf8conv.c: Remove useless variable ACTIVE_CHARSET.  Suggested
202         by Petr Uzel.
203
204 2008-05-26  Werner Koch  <wk@g10code.com>
205
206         * argparse.c (usage): Make sure to print a trailing LF for usage(1).
207
208 2008-04-08  Werner Koch  <wk@g10code.com>
209
210         * w32-gettext.c (gettext_select_utf8): New.
211         (get_string): Support switching encodings.
212         (load_domain): Allocate space for DATA_NATIVE.
213
214 2008-03-25  Werner Koch  <wk@g10code.com>
215
216         * w32-gettext.c (_nl_locale_name): New.  Taken from
217         ../common/localename and GNU gettext's localename.c.
218         (set_gettext_file): Rewritten.
219         (gettext_localename): New.
220
221 2008-03-17  Werner Koch  <wk@g10code.com>
222
223         * logging.c (my_funopen_hook_size_t): New.
224         (fun_writer): Use it to cope with fopencookie/funopen differences.
225         * dotlock.c (read_lockfile): Initialize PID.  Reported by Stéphane
226         Corthésy.
227
228 2008-02-22  Werner Koch  <wk@g10code.com>
229
230         * argparse.c (strusage): Set copyright year to 2008.
231
232 2007-11-19  Werner Koch  <wk@g10code.com>
233
234         * stringhelp.c (percent_escape): Factor code out to
235         (do_percent_escape): .. new.
236         (try_percent_escape): New.
237
238 2007-10-01  Werner Koch  <wk@g10code.com>
239
240         * w32-afunix.c: Only keep the client related code.
241         (read_port_and_nonce): New.  Taken from Assuan.
242         (_w32_sock_connect): Rewritten.
243
244 2007-08-29  Werner Koch  <wk@g10code.com>
245
246         * argparse.c (initialize): Make strings translatable and remove
247         extra LF.
248
249 2007-08-24  Werner Koch  <wk@g10code.com>
250
251         * mischelp.c (same_file_p): New.
252         (libjnlib_dummy_mischelp_func): Remove as we now always have one
253         function.
254
255 2007-08-09  Werner Koch  <wk@g10code.com>
256
257         * argparse.c (show_help): Expand the @EMAIL@ macro in the package
258         bug reporting address.
259
260 2007-08-02  Werner Koch  <wk@g10code.com>
261
262         * t-stringhelp.c (test_compare_filenames): New.
263
264         * stringhelp.c (compare_filenames) [HAVE_DRIVE_LETTERS]: Fixed
265         comparison to take slash and backslash in account.
266         (make_filename): Avoid mixing / and \.
267
268 2007-07-04  Werner Koch  <wk@g10code.com>
269
270         * utf8conv.c (load_libiconv): Remove URL from translatble string.
271
272         Switched JNLIB from LGPLv2.1 to LGPLv3.
273
274 2007-07-01  Werner Koch  <wk@g10code.com>
275
276         * argparse.c (strusage): Use id 10 for the license string;
277         default to GPL3+.  Change long note to version 3 or later.
278         (show_version): Print the license info.
279
280 2007-06-19  Werner Koch  <wk@g10code.com>
281
282         * Makefile.am: Add support for regression tests.
283         * t-support.h, t-support.c: New.
284         * t-stringhelp.c: New.
285
286         * stringhelp.c (percent_escape): Add arg EXTRA to make it a more
287         general function.  Changed all callers.
288
289 2007-06-18  Werner Koch  <wk@g10code.com>
290
291         * w32-afunix.c (_w32_sock_bind): Changed to properly detect an
292         already used socket.
293
294 2007-06-18  Marcus Brinkmann  <marcus@g10code.de>
295
296         * stringhelp.h (percent_escape): New prototype.
297         * stringhelp.c (percent_escape): New function.
298
299 2007-06-11  Werner Koch  <wk@g10code.com>
300
301         * utf8conv.c (jnlib_iconv_open, jnlib_iconv, jnlib_iconv_close): New.
302
303 2007-06-06  Werner Koch  <wk@g10code.com>
304
305         * w32help.h: New.
306         * w32-gettext.c: New.  Taken from gnupg 1.4, added ngettext,
307         changed to use jnlib malloc functions and put under the LGPL.
308         * w32-reg.c: New.  Taken from../common/w32reg.c and changed to
309         LGPL.  Changed API to use the jnlib malloc functions.
310         * Makefile.am (libjnlib_a_SOURCES) [!W32]: Do not build the w32
311         specific modules.
312
313         * dotlock.c: Include stringhelp.h for stpcpy prototype.
314
315 2007-06-04  Werner Koch  <wk@g10code.com>
316
317         * dynload.h: New.  Taken from ../common and changed to LGPL.
318
319         * utf8conv.c (load_libiconv): New.  Taken from GnuPG 1.4
320
321 2007-05-30  Werner Koch  <wk@g10code.com>
322
323         * w32-pth.h, w32-pth.c: Remove.
324
325 2007-04-25  Werner Koch  <wk@g10code.com>
326
327         * argparse.c (long_opt_strlen): Fixed for utf-8.
328
329 2007-03-07  Werner Koch  <wk@g10code.com>
330
331         * argparse.c (strusage): Set copyright year to 2007.
332
333 2007-01-25  Werner Koch  <wk@g10code.com>
334
335         * stringhelp.c (utf8_charcount): New.
336
337 2006-11-29  Werner Koch  <wk@g10code.com>
338
339         * utf8conv.c (set_native_charset) [HAVE_W32_SYSTEM]: Fixed typo in
340         macro name.
341
342 2006-11-15  Werner Koch  <wk@g10code.com>
343
344         * logging.c (my_funopen_hook_ret_t): New.
345         (fun_writer): Use it.
346
347 2006-10-19  Werner Koch  <wk@g10code.com>
348
349         * stringhelp.c (memrchr) [!HAVE_MEMRCHR]: Provide a replacement.
350
351 2006-09-27  Werner Koch  <wk@g10code.com>
352
353         * mischelp.c: New.
354         (timegm): Copied from gnupg 1.4, changed from GPL to LGPL.  Fixed
355         a memory leak.
356
357         * stringhelp.h (isascii): New.
358
359         * stringhelp.c (strsep): New. Copied from gnupg 1.4.5
360         util/strgutil.c.
361
362         * strlist.h (STRLIST): Removed deprecated typedef.
363
364         * types.h: Made cpp commands work with old compilers.  Also shows
365         up nicer with Emacs' font locking.
366
367         * w32-afunix.c (_w32_sock_connect): Set ERRNO for an invalid port.
368
369         Changed license from GPL to LGPL.  Note that all code has either
370         been written by me, David, employees of g10 Code or taken from
371         glibc.
372
373         * libjnlib-config.h, stringhelp.c, stringhelp.h:
374         * strlist.c, strlist.h, utf8conv.c, utf8conv.h:
375         * argparse.c, argparse.h, logging.c, logging.h:
376         * dotlock.c, dotlock.h, types.h, mischelp.h:
377         * xmalloc.c, xmalloc.h, w32-pth.c, w32-pth.h:
378         * w32-afunix.c, w32-afunix.h: Tagged them to be long to jnlib
379         which is a part of GnuPG but also used by other projetcs.
380
381 2006-09-22  Werner Koch  <wk@g10code.com>
382
383         * utf8conv.c: Reworked to match the gnupg 1.4.5 code.  This now
384         requires iconv support but this is reasonable for all modern
385         systems.
386
387 2006-08-29  Werner Koch  <wk@g10code.com>
388
389         * logging.c (do_logv): Emit a missing LF for fatal errors.
390
391 2006-06-28  Werner Koch  <wk@g10code.com>
392
393         * dotlock.c (make_dotlock, release_dotlock, read_lockfile)
394         (maybe_deadlock, destroy_dotlock, create_dotlock): Re-indented.
395         (create_dotlock): Repalces some log_fatal by log_error as it was
396         not intended that they should terminate.  Write the nodename to
397         the locking file. Code cleanups.
398         (read_lockfile): Reworked to read the node name.
399         (make_dotlock): Test for identical node name and delete lock stale
400         file.
401         (release_dotlock): Likewise.
402
403 2006-05-23  Werner Koch  <wk@g10code.com>
404
405         * libjnlib-config.h (JNLIB_NEED_UTF8CONV): Fixed typo in name.
406
407         * dotlock.c (release_dotlock): Don't act if we don't have any
408         locks at all.
409         (destroy_dotlock): New.  From 1.4.3.
410         (dotlock_remove_lockfiles): Make use of destroy function.
411
412 2006-05-19  Werner Koch  <wk@g10code.com>
413
414         * strlist.c (append_to_strlist2): Enabled.
415
416         * stringhelp.c (print_sanitized_buffer2): New.  Changed the rules
417         to match the behaviour of print_string2 from gnupg 1.4.3.
418         (print_sanitized_buffer): Use the new function.
419         (print_sanitized_string2): New.
420         (hextobyte): New.  Taken from gpg 1.4.3.
421
422 2006-04-28  Werner Koch  <wk@g10code.com>
423
424         * stringhelp.c (print_sanitized_buffer): Fix bug where the count
425         got wrong for the \xNN representation.
426         (sanitize_buffer): Fix bug where some control characters lose part
427         of their \xNN representation.
428
429 2006-04-20  Werner Koch  <wk@g10code.com>
430
431         * stringhelp.c (make_basename): New arg INPUTPATH for future
432         riscos compatibility.
433
434 2006-04-18  Werner Koch  <wk@g10code.com>
435
436         * libjnlib-config.h (JNLIB_NEED_UTF8CONF): Defined.
437         * strlist.c (add_to_strlist2) [JNLIB_NEED_UTF8CONV]: Enabled.
438
439 2005-06-15  Werner Koch  <wk@g10code.com>
440
441         * stringhelp.c (sanitize_buffer): Make P a void*.
442         (ascii_memistr, memistr): Ditto.
443         (ascii_memcasecmp): Ditto.
444         * logging.c (writen): Use void * for arg BUFFER.
445         * stringhelp.c (memistr): Fixed unsigned/signed pointer conflict.
446         (ascii_memistr): Ditto.
447         (ascii_memcasemem): Ditto.
448         * utf8conv.c (utf8_to_native): Ditto.
449         (utf8_to_native): Ditto.
450         * argparse.c (show_version): Removed non-required cast.
451
452 2005-01-19  Werner Koch  <wk@g10code.com>
453
454         * logging.c (fun_writer): Don't fallback to stderr. Print to
455         stderr only if connected to a tty.
456
457 2004-12-20  Werner Koch  <wk@g10code.com>
458
459         * w32-pth.c (do_pth_event_free): The events are hold in a ring
460         buffer.  Adjust for that.
461         (do_pth_event_body): Ditto.
462         (pth_event_isolate): Ditto.
463         (do_pth_wait): Ditto.
464         (_pth_event_count): Renamed to ..
465         (event_count): .. and adjusted as above.
466         (pth_init): Define 3 debug levels and change all debug calls to
467         make use of them.  This makes the moule now silent.
468
469 2004-12-19  Werner Koch  <wk@g10code.com>
470
471         * w32-pth.c (pth_init): Enable debugging depending on env var.
472         (pth_self): New.
473         (pth_mutex_release, pth_mutex_acquire): Implemented directly using
474         the W32 API.
475
476 2004-12-18  Werner Koch  <wk@g10code.com>
477
478         * w32-pth.c (pth_init): Reverse return values.  Use TRUE and FALSE
479         constants.
480         (pth_kill, pth_mutex_acquire, pth_attr_set, pth_join, pth_cancel):
481         Ditto.
482
483 2004-12-15  Werner Koch  <wk@g10code.com>
484
485         * logging.c [W32]: Don't include unavailable headers.
486
487 2004-12-14  Werner Koch  <wk@g10code.com>
488
489         * w32-pth.c (_pth_strerror): Renamed to ...
490         (w32_strerror): .. this. And let callers provide a buffer.
491         (spawn_helper_thread): Removed HD arg and hardwire the stack size
492         to 32k.
493         (do_pth_wait): Removed use of ATTR; not needed for the helper
494         threads.
495         (helper_thread): Renamed to ..
496         (launch_thread): .. this.  Release handle if not joinable.
497         (struct pth_priv_hd_s): Renamed to ...
498         (struct thread_info_s): .. this.  Add member JOINABLE and TH.
499
500 2004-12-14  Timo Schulz  <twoaday@g10code.com>
501
502         * w32-pth.c (pth_kill): Just release the crit section if
503         pth_init was really called. And set all handles to NULL.
504         (_pth_strerror): New.
505         (do_pth_wait): Before we enter the loop we check if there
506         are too much events in the ring.
507
508 2004-12-14  Werner Koch  <wk@g10code.com>
509
510         * w32-pth.h (pth_event_occured): Removed macro.
511         * w32-pth.c: Fixed license statement; its under the LGPL.
512         (enter_pth, leave_pth): Use them to bracket almost all public
513         functions.
514
515 2004-12-13  Timo Schulz  <twoaday@g10code.com>
516
517         * w32-pth.c (enter_pth, leave_pth): New.
518         (pth_init): Initialize global mutex section.
519         (pth_kill): Release global mutex section.
520         (helper_thread): New.
521         (pth_spawn): Make sure only one thread is running.
522
523 2004-12-13  Werner Koch  <wk@g10code.com>
524
525         * stringhelp.c (w32_strerror) [W32]: New.
526
527         * w32-pth.c, w32-pth.h: Added real code written by Timo Schulz.
528         Not finished, though.
529
530 2004-12-07  Werner Koch  <wk@g10code.com>
531
532         * w32-pth.c, w32-pth.h: New.
533
534 2004-11-26  Werner Koch  <wk@g10code.com>
535
536         * logging.c [_WIN32]: Don't include socket headers.
537
538 2004-11-30  Timo Schulz  <ts@g10code.com>
539
540         * w32-afunix.c: New. AF_UNIX emulation for W32.
541         * w32-afunix.h: Likewise.
542
543 2004-11-22  Werner Koch  <wk@g10code.com>
544
545         * logging.c (log_test_fd): Add test on LOGSTREAM.  Reported by
546         Barry Schwartz.
547
548 2004-11-18  Werner Koch  <wk@g10code.com>
549
550         * logging.c: Explicitly include sys/stat.h for the S_I* constants.
551
552 2004-10-21  Werner Koch  <wk@g10code.com>
553
554         * logging.c (do_logv): Use set_log_stream to setup a default.
555         (log_set_file): Factored code out to ..
556         (set_file_fd): .. New function to allow using a file descriptor.
557         (log_set_fd): Make use of new fucntion.
558         (fun_writer): Reworked.
559
560 2004-08-18  Werner Koch  <wk@g10code.de>
561
562         * stringhelp.c (print_sanitized_utf8_string): Actually implement
563         it.
564
565 2004-06-21  Werner Koch  <wk@g10code.com>
566
567         * logging.c (log_set_file): Do not close an old logstream if it
568         used to be stderr or stdout.
569
570 2004-05-05  Werner Koch  <wk@gnupg.org>
571
572         * logging.c (log_set_file): Oops, don't close if LOGSTREAM is NULL.
573
574 2004-04-30  Werner Koch  <wk@gnupg.org>
575
576         * logging.c (log_set_file): Make sure the log stream will be
577         closed even if the stderr fileno will be assigned to a new socket.
578
579 2004-04-16  Werner Koch  <wk@gnupg.org>
580
581         * logging.h (JNLIB_LOG_WITH_PREFIX): Add constants for the flag
582         values.
583         * logging.c (log_set_prefix): New flag DETACHED.
584         (fun_writer): Take care of this flag.
585         (log_test_fd): New.
586
587 2004-02-18  Werner Koch  <wk@gnupg.org>
588
589         * stringhelp.c (print_sanitized_buffer): Don't care about
590         non-ASCII characaters.
591         (sanitize_buffer): Ditto.
592
593 2004-02-12  Werner Koch  <wk@gnupg.org>
594
595         * Makefile.am: Replaced INCLUDES by AM_CPPFLAGS.
596
597 2004-01-05  Werner Koch  <wk@gnupg.org>
598
599         * argparse.c (strusage): Changed default copyright year to 2004.
600
601 2003-12-17  Werner Koch  <wk@gnupg.org>
602
603         * argparse.c (initialize): Replaced use of non-literal format
604         args.  Suggested by Florian Weimer.
605
606 2003-12-16  Werner Koch  <wk@gnupg.org>
607
608         * logging.c (writen, fun_writer, fun_closer): New.
609         (log_set_file): Add feature to log to a socket.
610         (log_set_file, do_logv): Force printing with prefix and pid.
611
612 2003-11-13  Werner Koch  <wk@gnupg.org>
613
614         * strlist.c (strlist_copy): New.
615
616         * dotlock.c: Define DIRSEP_C et al. if not defined.
617
618 2003-11-06  Werner Koch  <wk@gnupg.org>
619
620         * strlist.h (strlist_t): New. STRLIST is now deprecated.
621
622 2003-06-18  Werner Koch  <wk@gnupg.org>
623
624         * strlist.c (strlist_pop): New.
625
626         * dotlock.c (dotlock_remove_lockfiles): Prefixed with dotlock_ and
627         made global.
628
629 2003-06-17  Werner Koch  <wk@gnupg.org>
630
631         * stringhelp.c (length_sans_trailing_chars)
632         (length_sans_trailing_ws): New.
633
634         * logging.c (log_inc_errorcount): New.
635
636         * stringhelp.c (print_sanitized_utf8_buffer): Implement utf8
637         conversion.
638         (sanitize_buffer): New. Based on gnupg 1.3.2 make_printable_string.
639
640         * dotlock.c: Updated to match the version from 1.3.2
641         * utf8conv.c: New.  Code taken from strgutil.c of gnupg 1.3.2.
642         * utf8conv.h: New.
643
644 2003-06-16  Werner Koch  <wk@gnupg.org>
645
646         * logging.c (do_logv): Hack to optionally suppress a leading space.
647
648         * stringhelp.c (ascii_strncasecmp): New.  Taken from gnupg 1.3.
649         (ascii_memistr): New. Taken from gnupg 1.3
650
651 2003-06-13  Werner Koch  <wk@gnupg.org>
652
653         * mischelp.h (wipememory2,wipememory): New. Taken from GnuPG 1.3.2.
654
655 2002-06-04  Werner Koch  <wk@gnupg.org>
656
657         * stringhelp.c (print_sanitized_utf8_string): New.  No real
658         implementation for now.
659         (print_sanitized_utf8_buffer): Ditto.
660
661 2002-04-04  Werner Koch  <wk@gnupg.org>
662
663         * logging.c (log_get_prefix): New.
664
665 2002-03-15  Werner Koch  <wk@gnupg.org>
666
667         * argparse.c (optfile_parse): Fixed missing argument handling.
668
669 2002-02-25  Werner Koch  <wk@gnupg.org>
670
671         * stringhelp.c (ascii_memcasemem): New.
672
673 2002-02-14  Werner Koch  <wk@gnupg.org>
674
675         * Makefile.am (INCLUDES): Add cflags for libgcrypt.
676
677 2002-02-07  Werner Koch  <wk@gnupg.org>
678
679         * logging.c (log_set_fd): New.
680
681         * stringhelp.c (print_sanitized_buffer): New.
682         (print_sanitized_string): New.
683
684 2002-01-24  Werner Koch  <wk@gnupg.org>
685
686         * argparse.c (strusage): Set default copyright notice year to 2002.
687
688         Fixed the copyright notice of this file, as it has always been
689         part of GnuPG and therefore belongs to the FSF.
690
691 2001-11-01  Marcus Brinkmann  <marcus@g10code.de>
692
693         * logging.c (log_printf): Do not initialize ARG_PTR with 0, we
694         don't know the correct type.  Instead, run va_start and va_end
695         unconditionally.
696         Reported by Jose Carlos Garcia Sogo <jsogo@debian.org>.
697
698 2002-01-19  Werner Koch  <wk@gnupg.org>
699
700         * logging.c (log_get_stream): New.
701
702 2001-12-05  Werner Koch  <wk@gnupg.org>
703
704         * logging.c (log_set_prefix): New.
705         (do_logv): Include prefix and pid only if enabled. Print time only
706         when explicitly enabled.
707         (log_logv): New.
708         * logging.h: Include log_logv() only when requested.
709
710 2001-11-06  Werner Koch  <wk@gnupg.org>
711
712         * strlist.c, strlist.h: New. Taken from pgnupg/util/strgutil.c
713
714 2001-08-30  Werner Koch  <wk@gnupg.org>
715
716         * logging.c (log_printf): Don't pass NULL instead of arg_ptr.
717
718 2001-07-19  Werner Koch  <wk@gnupg.org>
719
720         * stringhelp.c (ascii_memistr,ascii_isupper,ascii_islower,
721         ascii_toupper,ascii_tolower, ascii_strcasecmp, ascii_memcasecmp): New.
722
723 2000-07-26 10:02:51  Werner Koch  (wk@habibti.openit.de)
724
725         * stringhelp.c.: Add stdarg.h
726         * argparse.h: s/ulong/unsigned long/ although this should be defined
727         by types.h.
728
729 2000-06-28 19:40:23  Werner Koch  (wk@habibti.openit.de)
730
731         * Makefile.am: Replaced second logging.c by .h
732
733 2000-05-24 08:58:15  Werner Koch  (wk@habibti.openit.de)
734
735         * logging.c (log_get_errorcount): New.
736
737 2000-05-24 08:44:47  Werner Koch  (wk@habibti.openit.de)
738
739         * stringhelp.c: Added a few filename related helper functions.
740
741 2000-05-11 18:04:43  Werner Koch  (wk@habibti.openit.de)
742
743         * xmalloc.c (xstrcat2): Replaced stpcpy to quickly address W32
744         problems.
745
746 2000-05-02 19:43:38  Werner Koch  (wk@habibti.openit.de)
747
748         * xmalloc.c (xstrcat2): New.
749
750 Mon Jan 24 13:04:28 CET 2000  Werner Koch  <wk@gnupg.de>
751
752         * README: New.
753         * Makefile.am: new.
754         * argparse.c, argparse.h, logging.c, logging.h:
755         * mischelp.h, stringhelp.c, stringhelp.h, xmalloc.c:
756         * xmalloc.h, dotlock.c: Moved from ../util to here.
757         * dotlock.h: New.
758         * libjnlib-config.h: New.
759
760         * logging.c (log_set_file): New.
761         (log_printf): New.
762         (do_logv): Add kludge to insert LFs.
763
764
765      ***********************************************************
766      * Please note that JNLIB is maintained as part of GnuPG.  *
767      * You may find it source-copied in other packages.        *
768      ***********************************************************
769
770  Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
771            2010 Free Software Foundation, Inc.
772
773  This file is free software; as a special exception the author gives
774  unlimited permission to copy and/or distribute it, with or without
775  modifications, as long as this notice is preserved.
776
777  This file is distributed in the hope that it will be useful, but
778  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
779  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
780
781 Local Variables:
782 buffer-read-only: t
783 End: