1 2010-10-26 Werner Koch <wk@g10code.com>
5 * configure.ac: Set LT version to C8/A8/R0.
6 * config.guess: Update to version 2010-09-24.
7 * config.sub: Update to version 2010-09-11.
9 2010-10-20 Werner Koch <wk@g10code.com>
11 * potomo: New. Copied from GnuPG.
12 * Makefile.am (install-data-hook) [W32]: New.
14 * src/init.c (get_locale_dir): Strip the "bin" part.
15 * src/gpg-error.c (get_locale_dir): Ditto.
17 2010-09-30 Werner Koch <wk@g10code.com>
19 * src/err-codes.h.in: Add GPG_ERR_FULLY_CANCELED.
21 2010-09-16 Werner Koch <wk@g10code.com>
23 * src/w32-gettext.c (module_init): Do not set a constructur if not
25 (_gpg_w32__init_gettext_module): New.
27 2010-09-16 gettextize <bug-gnu-gettext@gnu.org>
29 * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
31 2010-09-16 Werner Koch <wk@g10code.com>
33 * src/err-codes.h.in: Add GPG_ERR_MISSING_ISSUER_CERT.
35 * src/Makefile.am (err-sources.h, err-codes.h): Built them in the
38 2010-09-02 Werner Koch <wk@g10code.com>
40 * src/err-codes.h.in: Add GPG_ERR_NOT_INITIALIZED.
42 2010-08-19 Werner Koch <wk@g10code.com>
44 * configure.ac (AH_BOTTOM): Define GPG_ERR_ENABLE_ERRNO_MACROS.
45 * src/w32ce-add.h (strerror) [!GPG_ERR_ENABLE_ERRNO_MACROS]: Do
48 2010-07-21 Werner Koch <wk@g10code.com>
52 * configure.ac: Set LT version to C7/A7/R0.
54 2010-07-20 Werner Koch <wk@g10code.com>
56 * src/init.c (DllMain) [!DLL_EXPORT]: Do not build.
57 (gpg_err_init) [W32][!DLL_EXPORT]: Init TLS.
58 (gpg_err_deinit): New.
59 * src/gpg-error.def.in: Add gpg_err_deinit.
60 * src/gpg-error.h.in: Add gpg_err_deinit.
62 2010-07-05 Werner Koch <wk@g10code.com>
64 * src/err-codes.h.in (GPG_ERR_TOO_MANY, GPG_ERR_LIMIT_REACHED): New.
66 2010-06-18 Werner Koch <wk@g10code.com>
68 * src/err-codes.h.in (GPG_ERR_MISSING_KEY): New.
70 2010-05-06 Werner Koch <wk@g10code.com>
74 * configure.ac: Set LT version to C6/A6/R0.
76 2010-04-14 Werner Koch <wk@g10code.com>
78 * src/init.c (_gpg_w32ce_get_errno): Add native error mapping.
79 * src/Makefile.am (mkw32errmap.map.c): New.
80 * src/mkw32errmap.c (struct table_s): Add field W32CODE2.
81 (table): Init this field.
82 (main): Add option --map.
84 2010-03-15 Werner Koch <wk@g10code.com>
86 * src/mkheader.awk: Add emacs local-var line.
88 * src/w32-add.h (gettext_localename): Fix type in name.
90 2010-03-09 Werner Koch <wk@g10code.com>
92 * src/w32-add.h [!GPG_ERR_ENABLE_GETTEXT_MACROS]: Do not provide
95 2010-03-08 Werner Koch <wk@g10code.com>
97 * src/w32-add.h (_GPG_ERR_ATTR_FORMAT_ARG): New.
98 (_gpg_w32_gettext, _gpg_w32_dgettext, _gpg_w32_dngettext): Use it.
100 2010-03-01 Werner Koch <wk@g10code.com>
102 * src/mkw32errmap.c: Map ESPIPE.
104 2010-02-17 Werner Koch <wk@g10code.com>
106 * src/Makefile.am: Revert last change.
107 (gpg_extra_headers): New.
108 (nobase_include_HEADERS): Rename to include_HEADERS and remove
110 (mkerrcodes.h): Depend on gpg_extra_headers.
111 (install-data-local): New.
112 (gpg-extra/errno.h): Create gpg-extra dir if needed.
114 2010-02-17 Werner Koch <wk@g10code.com>
116 * src/Makefile.am (extra_headers): Remove.
118 2010-01-21 Werner Koch <wk@g10code.com>
120 * configure.ac (have_w32ce_system): Initialize to no.
122 * src/mkstrtable.awk (END): Do not print PREFIX before
125 * src/init.c (get_locale_dir): Rework to match what gnupg is doing.
126 (get_root_key, read_w32_registry_string): Remove.
127 * src/gpg-error.c (get_locale_dir): Replace by code from init.c
128 (get_root_key, read_w32_registry_string): Remove.
130 2010-01-20 Werner Koch <wk@g10code.com>
132 * src/init.c (gpg_err_init): Factor code out to ..
135 * src/Makefile.am (gpg_error_SOURCES): Remove arch_sources.
136 (export_symbols): Do not prefix gpg-error-def with srcdir.
138 2010-01-19 Werner Koch <wk@g10code.com>
140 * src/init.c (DllMain): Call _w32_gettext_init.
141 (get_tls): Use it also for standard Windows.
143 (struct tls_space_s): Move to ..
144 (get_tls): Make global.
145 * src/init.h: .. New.
146 * src/gettext.h: Do not include w32-gettext.h.
147 * src/w32-gettext.c: Replace by version from GnuPG.
148 (my_nl_locale_name) [W32CE]: Do not use getenv. Use
149 GetSystemDefaultLCID.
150 (struct loaded_domain): Use uint16_t for NSTRINGS and MAPPED to
152 (load_domain): Check for too large MO files.
153 (utf8_to_wchar): Use gpg_err_set_errno.
154 (bindtextdomain): Rename to _gpg_w32_bindtextdomain.
155 (textdomain): Rename to _gpg_w32_textdomain.
156 (gettext): Rename to _gpg_w32_gettext.
157 (dgettext): Rename to _gpg_w32_dgettext.
159 (gettext_localename): Rename to _gpg_w32_gettext_localename.
160 (gettext_select_utf8): Rename to _gpg_w32_gettext_use_utf8.
161 (_gpg_w32_bindtextdomain): Change to only register the directory.
162 Return the current directory if asked to.
163 (do_gettext): Add DOMAINNAME arg and take care of it.
164 * src/w32-add.h: New.
165 * src/w32-gettext.h: Remove.
166 * src/Makefile.am (extra-h.in): Process w32-add.h.
167 (arch_sources): Remove w32-gettext.h.
169 2010-01-18 Werner Koch <wk@g10code.com>
171 * src/init.c (wchar_to_utf8, utf8_to_wchar): New.
173 * src/gpg-error.c (main): Add option --list.
175 2010-01-18 Werner Koch <wk@g10code.com>
177 * ltmain.sh (wrappers_required): Don't set for mingw32ce.
179 * tests/Makefile.am (extra_includes): New.
180 * tests/t-syserror.c (main): Use gpg_err_set_errno.
182 * src/w32ce-add.h: New.
183 * src/Makefile.am (EXTRA_DIST): Add it
184 (extra-h.in): New rule
185 (gpg-error.h): Pass extra-h.in to mkheader.
186 * src/mkheader.awk (extra_body): New.
188 * src/gpg-error.c (get_err_from_number): Use gpg_err_set_errno.
190 * src/mkw32errmap.c: New
191 * src/gpg-error.def: Rename to ..
192 * src/gpg-error.def.in: .. this.
193 (_gpg_errno_location): New.
194 * src/init.c (struct tls_space_s, tls_index): New.
195 (get_tls, _gpg_errno_location, DllMain): New.
196 (read_w32_registry_string) [W32CE]: Don't expand envvars.
197 (_gpg_w32ce_strerror): New.
198 * src/Makefile.am (extra_headers, extra_cppflags): New.
199 (include_HEADERS): Add extra_headers. Prefix with nobase_.
200 (libgpg_error_la_CPPFLAGS, gpg_error_CPPFLAGS)
201 (mkerrcodes.h): Add extra_cppflags.
202 (RCCOMPILE): Replace libgpg_error_la_CPPFLAGS by direct inclusion
204 * configure.ac (HAVE_W32CE_SYSTEM): New AM_CONDITIONAL and
206 (GPG_ERROR_CONFIG_ISUBDIRAFTER): New.
207 * src/gpg-error-config.in <--libs>: Replace fixed -lgpg-error
210 <--cflags>: Take subst variable in account. Add idirafter stuff.
212 2009-10-26 Marcus Brinkmann <marcus@g10code.de>
214 * src/gpg-error.h.in (GPG_ERR_SOURCE_DIM): Reduce to 128.
216 2009-09-29 Werner Koch <wk@g10code.com>
218 * src/err-codes.h.in (GPG_ERR_NO_ENGINE): New.
220 2009-09-21 Werner Koch <wk@g10code.com>
222 * src/err-sources.h.in (GPG_ERR_SOURCE_G13): New.
224 2009-08-20 Werner Koch <wk@g10code.com>
226 * src/err-codes.h.in: s/octadecimal/octal/. Reported by Petr Pisar.
228 2009-07-23 Werner Koch <wk@g10code.com>
230 * src/err-codes.h.in: Add GPG_ERR_NOT_ENABLED.
232 2009-07-17 Marcus Brinkmann <marcus@g10code.de>
234 * src/mkerrnos.awk: Output code to cause WSA Errors to be found
235 from gpg error codes.
236 * README: Add problem of translating error codes back and forth.
238 * src/mkerrcodes1.awk: Output code to cause WSA Errors to be
239 transparently translated.
240 * src/code-from-errno.c [HAVE_W32_SYSTEM]: Don't include winsock2.h.
241 (w32_special_errnos) [HAVE_W32_SYSTEM]: Removed.
242 (gpg_err_code_from_errno) [HAVE_W32_SYSTEM]: Remove special case.
243 * README: Document problem with printing some WSA Errors.
245 2009-06-23 Marcus Brinkmann <marcus@g10code.de>
247 Update to libtool 2.2.6a.
248 * configure.ac: Invoke AC_CONFIG_MACRO_DIR.
249 (AC_LIBTOOL_WIN32_DLL, AC_LIBTOOL_RC): Replace by ...
250 (LT_PREREQ, LT_INIT, LT_LANG): ... these.
251 * config.guess, config.sub, install-sh, ltmain.sh, m4/libtool.m4:
252 Updated to libtool 2.2.6a.
253 * m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4,
254 m4/lt~obsolete.m4: New files from libtool 2.2.6a.
255 * src/Makefile.am (LTRCCOMPILE): Refactor with ...
256 (RCCOMPILE): ... this new macro. Add $(libgpg_error_la_CPPFLAGS).
258 (.rc.o): Change to ...
259 (.rc.lo): ... this implicit rule.
260 (gpg_error_res_ldflag): Removed.
261 (gpg_error_res): Use libtool object file name here.
262 (install-def-file): Fix typo.
263 (libgpg_error_la_LDFLAGS): Remove gpg_error_res_ldflag usage.
264 (libgpg_error_la_LIBADD): Add gpg_error_res.
266 2008-11-26 Werner Koch <wk@g10code.com>
270 * configure.ac: Set LT version to C5/A5/R0.
272 2008-11-12 Werner Koch <wk@g10code.com>
274 * src/err-codes.h.in: Add GPG_ERR_NO_PASSPHRASE and GPG_ERR_NO_PIN.
276 2008-11-08 Moritz <moritz@gnu.org>
278 * lang/cl/gpg-error.lisp ("gpg_err_code_from_syserror"): Fix
279 defcfun: removed "(void)".
281 * lang/cl/gpg-error.lisp (size-t): Wrong call to defctype:
282 function accepts optional, not keyword argument.
283 (gpg-error-t): Likewise.
285 2008-10-29 Marcus Brinkmann <marcus@g10code.de>
287 * src/mkstrtable.awk: Make generated code -W clean to silence gcc
290 2008-08-06 Werner Koch <wk@g10code.com>
292 * src/err-codes.h.in (GPG_ERR_NOT_OPERATIONAL): New.
294 2008-04-01 Werner Koch <wk@g10code.com>
296 * configure.ac (AC_INIT): Fix m4 quoting.
298 2007-12-11 Werner Koch <wk@g10code.com>
300 * Makefile.am (EXTRA_DIST): Add COPYING.
302 2007-10-29 Werner Koch <wk@g10code.com>
306 * configure.ac: Set LT version to C4/A4/R0.
308 * config.guess, config.sub: Updated.
310 * src/err-sources.h.in: (GPG_ERR_SOURCE_KLEO): New.
312 * w32-gettext.c (SUBLANG_BENGALI_BANGLADESH): Fix to 2 as per MSDN.
313 (SUBLANG_PUNJABI_PAKISTAN): Remove as it is not in MSDN.
314 (SUBLANG_ROMANIAN_MOLDOVA): Remove as it is not in MSDN.
315 (SUBLANG_ROMANIAN_ROMANIA): Change to value 1 as per MSDN.
317 2007-09-27 Marcus Brinkmann <marcus@g10code.de>
319 * src/Makefile.am (%.o): Replace pattern rule with suffix rule.
320 (SUFFIXES): New variable.
322 2007-09-27 Werner Koch <wk@g10code.com>
324 * src/err-sources.h.in (GPG_ERR_SOURCE_GPA): New.
325 * src/err-codes.h.in (GPG_ERR_UNFINISHED): New.
327 2007-08-03 Marcus Brinkmann <marcus@g10code.de>
329 * configure.ac: Call AM_PROG_CC_C_O. Allow --disable-languages.
330 * autogen.sh: Use = not == in test.
331 * lang/cl/Makefile.am: Do not use :=, but =.
332 * Makefile.am [!LANGUAGES_SOME]: Don't add lang to subdirs.
333 * m4/inttypes-h.m4, m4/lock.m4, m4/visibility.m4: New files.
335 2007-05-19 Marcus Brinkmann <marcus@g10code.de>
337 * lang/cl/gpg-error.lisp (gpg-err-source-t): Add
340 2007-06-18 Werner Koch <wk@g10code.com>
342 * src/code-from-errno.c (w32_special_errnos) [W32]: New. This is
343 to provide some common mappings for winsocket error codes.
344 (gpg_err_code_from_errno, gpg_err_code_from_syserror): Use it.
346 2007-05-09 Werner Koch <wk@g10code.com>
348 * src/gpg-error.m4: Print found version on success.
350 2006-12-09 Marcus Brinkmann <marcus@g10code.de>
352 * src/Makefile.am (EXTRA_DIST): Add README.
353 * src/README: New file.
355 2006-12-01 Marcus Brinkmann <marcus@g10code.de>
357 * src/gpg-error.c (get_err_from_number): Fix last change.
359 * src/gpg-error.c (get_err_from_number): Support source and code
360 number in split format like "7.17".
362 2006-11-30 Werner Koch <wk@g10code.com>
366 * configure.ac: Set LT version to C3/A3/R1.
368 * README: Switch to tar.bz2 and sha1sum.
370 * src/gpg-error.c (main): Add option --version.
372 * autogen.sh (FORCE): Add option --force.
375 * Makefile.am (SUBDIRS): Removed intl.
376 * configure.ac (AM_GNU_GETTEXT): Use external flag
377 * src/Makefile.am: Removed -I../intl.
379 2006-11-23 Werner Koch <wk@g10code.com>
381 * configure.ac: Display configuration status after AC_OUTPUT.
382 (AC_INIT): Use SVN revision magic.
383 (AC_GNU_SOURCE): New.
385 2006-11-23 gettextize <bug-gnu-gettext@gnu.org>
387 * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.15.
389 2006-11-15 Werner Koch <wk@g10code.com>
391 * autogen.sh: Add convenience option --build-amd64.
393 2006-10-20 Werner Koch <wk@g10code.com>
395 * Makefile.am (stowinstall): New convenience target.
397 2006-09-18 Werner Koch <wk@g10code.com>
399 * src/gpg-error.def: Added gpg_err_code_from_syserror.
401 2006-09-14 Werner Koch <wk@g10code.com>
405 * configure.ac: Set LT version to C3/A3/R0.
408 * autogen.sh (--build-w32): Better cross-compiler locating.
410 * src/strerror.c (system_strerror_r): Made static.
412 * tests/t-syserror.c: New.
413 * tests/Makefile.am (TESTS): Added new test.
415 * lang/cl/gpg-error.lisp ("gpg_err_code_from_syserror"): New.
416 (gpg-err-code-from-syserror): New.
417 (gpg-error-from-syserror): New.
418 * lang/cl/gpg-error-package.lisp: Export new functions
420 * src/gpg-error.h.in (gpg_error_from_syserror): New.
421 * src/code-from-errno.c (gpg_err_code_from_errno): Cosmetic change
422 to first check whether ERR is zero.
423 (gpg_err_code_from_syserror): New.
425 2006-09-06 Werner Koch <wk@g10code.com>
427 * src/err-codes.h.in: Add GPG_ERR_UNKNOWN_OPTION and
428 GPG_ERR_UNKNOWN_COMMAND.
430 2006-09-05 Werner Koch <wk@g10code.com>
432 * src/err-sources.h.in (GPG_ERR_SOURCE_ANY): New. This is so that
433 we have source distinguished from the Unknown one but declaring
434 that it is an gpg-error style error code.
436 * src/err-codes.h.in: Added GPG_ERR_ASS_* codes, rabnge 257-281.
437 (GPG_ERR_MISSING_ERRNO): New.
439 2006-07-04 Marcus Brinkmann <marcus@g10code.de>
441 * src/init.c (get_locale_dir): Return NULL instead of garbage.
442 * src/gpg-error.c (get_locale_dir): Likewise.
443 Reported by Simon Josefsson <jas@extundo.com>.
445 2006-05-30 Marcus Brinkmann <marcus@g10code.de>
447 * lang/cl/gpg-error.asd.in (gpg-error): Add "depends-on" on cffi.
449 2006-05-29 Marcus Brinkmann <marcus@g10code.de>
451 * src/init.c (gpg_err_init) [!ENABLE_NLS]: Do not initialize the
453 * src/gpg-error.c (i18n_init) [!ENABLE_NLS]: Likewise.
454 Patch submitted by Nils Durner <ndurner@web.de>.
456 2006-05-25 Marcus Brinkmann <marcus@g10code.de>
458 * lang/cl/gpg-error.asd: Renamed to ...
459 * lang/cl/gpg-error.asd.in: ... this.
460 * configure.ac (AC_CONFIG_FILES): Add lang/cl/gpg-error.asd.in.
462 * lang/cl/mkerrcodes.awk, lang/cl/gpg-error-package.lisp,
463 lang/cl/gpg-error.lisp, lang/cl/gpg-error.asd, lang/cl/Makefile.am
464 (clfilesdir): Fix package and file names.
466 * lang/cl/Makefile.am (clfilesdir): Use datadir, not prefix.
468 2006-05-05 Marcus Brinkmann <marcus@g10code.de>
470 * configure.ac (AC_CONFIG_FILES): Add lang/Makefile and
472 * Makefile.am (SUBDIRS): Add lang.
473 * lang: New directory.
474 * lang/README, lang/Makefile.am: New files.
475 * lang/cl: New directory.
476 * lang/cl/Makefile.am, lang/cl/README, lang/cl/gpg-error.asd,
477 lang/cl/gpg-error-package.lisp, lang/cl/gpg-error.lisp,
478 lang/cl/mkerrcodes.awk: New files.
480 2006-03-14 Marcus Brinkmann <marcus@g10code.de>
484 * configure.ac (LIBGPG_ERROR_LT_REVISION): Bump for release.
486 Many files regenerated.
487 * src/Makefile.am (gpg_error_CPPFLAGS, libgpg_error_la_CPPFLAGS):
489 * Makefile.am (SUBDIRS): Add intl.
490 * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
491 (AM_GNU_GETTEXT_VERSION): Bump to 0.14.5.
493 2006-03-06 Marcus Brinkmann <marcus@g10code.de>
495 * configure.ac (min_automake_version): Bump to 1.9.6.
496 * mkinstalldirs, depcomp, compile, INSTALL, COPYING, missing,
497 install-sh: Update from automake 1.9.6.
498 ltmain.sh: Update from libtool 1.5.22.
500 2006-03-03 Marcus Brinkmann <marcus@g10code.de>
502 * configure.ac (LIBGPG_ERROR_LT_CURRENT, LIBGPG_ERROR_LT_AGE):
504 (LIBGPG_ERROR_LT_REVISION): Reset to 0 for release.
506 2005-11-02 Werner Koch <wk@g10code.com>
508 * src/Makefile.am (gpg_error_SOURCES): Include ARCH_SOURCES.
509 * src/gpg-error.c [W32]: Include gettext.h instead of libintl.h.
511 * configure.ac (AH_BOTTOM): Define ENABLE_NLS for W32 builds.
512 * src/w32-gettext.h (dgettext): Changed prototype from
514 * src/w32-gettext.c: Replaced use of WIN32 by HAVE_W32_SYSTEM on
515 demand of the holy GNUquisition.
516 (bindtextdomain, textdomain, dgettext): Need to cast the const way
517 from the return value.
519 2005-10-26 Werner Koch <wk@g10code.com>
521 * Makefile.am: Used dist-bzip2 option.
523 2005-10-25 Marcus Brinkmann <marcus@g10code.de>
525 * src/w32-gettext.c (get_string): Remove extra arguments to
526 utf8_to_native_invocation.
527 (utf8_to_wchar, wchar_to_native): New function.
528 (utf8_to_native): Rewritten.
530 * src/Makefile.am (gpg_error_CPPFLAGS): New variable.
531 * src/gpg-error.c (i18n_init): Don't return anything.
533 * src/Makefile.am (arch_sources): New variable.
534 (libgpg_error_la_SOURCES): Add $(arch_sources).
535 * src/gettext.h [HAVE_W32_SYSTEM]: Include w32-gettext.h.
536 * src/w32-gettext.h: New file.
537 * src/w32-gettext.c: New file.
538 * src/gpg-error.h.in: Check for gcc's constructor attribute.
539 Use it for gpg_err_init.
540 (GPG_ERR_INITIALIZED): Define if constructor is available.
541 * src/gpg-error.c (main) [GPG_ERR_INITIALIZED]: Don't invoke
543 (i18n_init): Call bindtextdomain as well. Now that gpg-error has
544 its own gettext implementation, we can't rely on it anymore.
545 Also, repeat all the w32 stuff for fetching the registry.
547 2005-10-23 Marcus Brinkmann <marcus@g10code.de>
549 * src/Makefile.am (libgpg_error_la_SOURCES): Add init.c.
550 * src/init.c: New file.
551 * src/gpg-error.h.in (gpg_error_init): New function.
552 * src/gpg-error.def: Add gpg_err_init.
553 * src/gpg-error.c: Remove SIMPLE_GETTEXT stuff.
554 (i18n_init): Don't bind text domain.
555 (main): Call gpg_err_init.
557 2005-10-20 Marcus Brinkmann <marcus@g10code.de>
559 * configure.ac: Instead checking for windres and dlltool, invoke
560 AC_LIBTOOL_WIN32_DLL and AC_LIBTOOL_RC.
561 * src/Makefile.am [HAVE_W32_SYSTEM]: Use libtool, which simplifies
564 2005-10-02 Marcus Brinkmann <marcus@g10code.de>
566 * configure.ac: Escape arguments in AC_INIT invocation.
567 * config.guess, config.sub, ltmain.sh: Update.
569 2005-08-19 Werner Koch <wk@g10code.com>
571 * configure.ac: Add code to allow building a W32 DLL.
572 * src/Makefile.am: Changed to allow building for W32.
573 * src/versioninfo.rc.in: New.
574 * src/gpg-error.def: New.
576 2005-06-20 Marcus Brinkmann <marcus@g10code.de>
580 * configure.ac: Bump up LIBGPG_ERROR_LT_REVISION, update version
583 2005-06-16 Marcus Brinkmann <marcus@g10code.de>
585 * src/mkerrcodes.awk: Fix comment. Allow any non-empty line to
586 start the processing, not only lines starting with numbers.
587 Reported by Guillaume Libersat <glibersat@hurdfr.org>.
589 2005-01-05 Marcus Brinkmann <marcus@g10code.de>
591 * configure.ac: Check for locale.h.
593 2005-04-20 Werner Koch <wk@g10code.com>
595 * src/err-codes.h.in: Add GPG_ERR_LOCKED.
597 2005-04-18 Werner Koch <wk@g10code.com>
599 * src/err-codes.h.in: Add GPG_ERR_UNKNOWN_EXTN and
600 GPG_ERR_UNKNOWN_CRIT_EXTN.
602 2004-12-18 Werner Koch <wk@g10code.com>
604 * autogen.sh: Add option --build-w32.
606 2004-09-14 Marcus Brinkmann <marcus@g10code.de>
608 * src/gpg-error.m4: Add copyright note.
610 * configure.ac: Call AC_CANONICAL_HOST. Suppress warning about
611 lack of strerror_r on all Solaris platforms.
613 2004-07-30 Werner Koch <wk@g10code.de>
617 * configure.ac: Bumbed version to 1.0, LT to C1/A1/R3.
619 2004-07-15 Werner Koch <wk@gnupg.org>
621 * src/err-codes.h.in: Renamed description for CARD_RESET.
623 2004-06-28 Werner Koch <wk@gnupg.org>
625 * src/err-codes.h.in: Add GPG_ERR_INV_REQUEST.
627 2004-06-08 Marcus Brinkmann <marcus@g10code.de>
629 * src/Makefile.am (mkerrcodes): Prefix mkerrcodes.c with $(srcdir)
632 2004-05-25 Marcus Brinkmann <marcus@g10code.de>
634 * src/err-codes.h.in: Add GPG_ERR_PROTOCOL_VIOLATION and
637 2004-04-23 Marcus Brinkmann <marcus@g10code.de>
639 * src/Makefile.am (mkerrcodes): Do not use $< in non-inference rule.
640 (code-from-errno.h): Likewise.
642 2004-04-22 Marcus Brinkmann <marcus@g10code.de>
644 * src/Makefile.am (gpg_error_CPPFLAGS): New variable.
645 (localedir): Likewise.
646 * gpg-error.c: Include the gettext headers.
647 (init_i18n): New function.
648 (main): Call init_i18n, gettextize messages.
650 2004-04-02 Thomas Schwinge <schwinge@nic-nac-project.de>
652 * autogen.sh: Added ACLOCAL_FLAGS.
654 2004-04-19 Marcus Brinkmann <marcus@g10code.de>
656 * src/gpg-error.m4: Quote first argument to AC_DEFUN.
658 * src/mkerrcodes.awk: Allow whitespace before expanded
659 preprocessor macro (ie, the error code value). Needed for Solaris 2.8.
661 2004-04-08 Moritz Schulte <moritz@g10code.de>
663 * src/gpg-error.c (main): Return zero on success.
665 2004-03-09 Marcus Brinkmann <marcus@g10code.de>
667 * libgpg-error.spec.in (%files): Add gpg-error. Submitted by
668 Albrecht Dreß <albrecht.dress@arcor.de>.
670 * src/mkerrcodes.c (main): Fix type of argv. Return something.
672 2004-03-09 Werner Koch <wk@gnupg.org>
674 * Makefile.am (dist-hook): Create a VERSION file for use by mkdiff.
676 * src/Makefile.am (mkerrcodes.h): Let CPP work on a temporary file.
677 (CLEANFILES): Add that temporary file.
678 * configure.ac (AC_PROG_CPP): Added.
680 * src/err-codes.h.in: Removed trailing spaces from
683 2004-03-08 Werner Koch <wk@gnupg.org>
685 * src/err-sources.h.in: Added GPG_ERR_SOURCE_GSTI.
687 2004-03-07 Marcus Brinkmann <marcus@g10code.de>
691 * configure.ac: Bumbed up LIBGPG_ERROR_LT_REVISON.
693 * src/gpg-error-config.in: Fix last change.
694 * src/gpg-error-config.in (Options): Do not emit include and lib
695 directory for prefix "/usr" or "".
697 * tests/Makefile.am (INCLUDES): Change to -I$(top_srcdir)/src to
700 2004-03-01 Marcus Brinkmann <marcus@g10code.de>
702 * configure.ac: Define CC_FOR_BUILD.
703 * src/Makefile.am (BUILT_SOURCES): Add gpg-error.h.
704 (EXTRA_DIST): Add mkerrcodes.awk and mkerrcodes.c.
705 (CLEANFILES): Add mkerrcodes.h and mkerrcodes.
706 (mkerrcodes.h): New target.
707 (mkerrcodes): New target.
708 (code-from-errno.h): Rewritten.
710 * src/errnos.in: Remove include statement (which was ignored
712 * src/mkerrcodes.awk: New file.
713 * src/mkerrcodes.c: New file.
715 2004-02-27 Marcus Brinkmann <marcus@g10code.de>
717 * src/Makefile.am (noinst_PROGRAMS): Rename to ...
718 (bin_PROGRAMS): ... this.
720 * src/gpg-error.h.in: Add extern "C" closure for C-- compilers.
722 * src/Makefile.am (noinst_PROGRAMS): New variable.
723 (gpg_error_LDADD): New variable.
724 (gpg_error_SOURCES): New variable.
725 (EXTRA_DIST): Add mkheader.awk and gpg-error.h.in.
726 (BUILT_SOURCES): Add err-sources-sym.h, err-codes-sym.h and
728 (CLEANFILES): Add err-sources-sym.h, err-codes-sym.h,
729 errnos-sym.h and gpg-error.h.
730 (err-codes.h, err-sources.h): Add -v textidx=3 to mkstrtable.awk
732 (err-codes-sym.h): New target.
733 (err-sources-sym.h): New target.
734 (gpg-error.h): New rule.
735 * src/mkstrtable.awk: Skip the second field (which contains the
737 (FS): Allow more than one tab as field separator.
738 Allow to specify the field to be used as text with the variable
740 Allow to suppress gettext markers in the output.
741 Allow to specify a prefix to the messages.
742 Allow to specify a namespace for the variable and macro names.
743 * src/mkerrnos.awk (FS): Initialize. Understand variable
744 errnoidx, which defaults to 2, to cope with the error names being
745 in a different column than the first.
746 * src/mkerrcodes1.awk: Likewise. Use \t as separator.
747 * src/mkheader.awk: New file.
748 * src/errnos.in: Add error code numbers (relativ to
749 GPG_ERR_SYSTEM_ERROR).
750 * src/strerror-sym.c: New file.
751 * src/strsources-sym.c: New file.
752 * src/err-codes.h.in: Add the error code symbol for every error
754 (GPG_ERR_BUFFER_TOO_SHORT): Fix error code (it is 200, not 199).
755 * src/err-sources.h.in: Likewise.
756 * src/gpg-error.h.in: New file.
757 * src/gpg-error.h: File removed.
758 * src/gpg-error.c: New file.
760 2004-02-18 Werner Koch <wk@gnupg.org>
762 * src/gpg-error-config.in: Ignore setting of --prefix.
764 2004-02-11 Werner Koch <wk@gnupg.org>
766 * autogen.sh (check_version): Removed bashism and simplified.
768 2004-02-03 Werner Koch <wk@gnupg.org>
770 * src/gpg-error.h: Added GPG_ERR_NOT_LOCKED.
772 2003-12-22 Werner Koch <wk@gnupg.org>
774 * src/gpg-error.h: Added GPG_ERR_LOCALE_PROBLEM.
776 2003-12-12 Werner Koch <wk@gnupg.org>
778 * src/err-codes.h.in: s/revoced/revoked/.
780 2003-12-08 Werner Koch <wk@gnupg.org>
782 * README.CVS: Enhanced.
785 * Makefile.am (EXTRA_DIST): Added autogen.sh.
787 2003-11-14 Werner Koch <wk@gnupg.org>
789 * configure.ac: Bumbed version number to 0.7.
793 * configure.ac: Bumbed up LIBGPG_ERROR_LT_REVISON.
795 2003-11-13 Werner Koch <wk@gnupg.org>
797 * src/gpg-error.h, src/err-codes.h.in: Removed: GPG_ERR_IO_ERROR,
798 GPG_ERR_FILE_ERROR, GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR,
801 * src/gpg-error.h (GPG_ERR_SOURCE_DIRMNGR): Fixed typo.
803 2003-11-12 Werner Koch <wk@gnupg.org>
805 * src/gpg-error.h, src/err-codes.h.in: Added these codes:
806 GPG_ERR_INV_ATTR, GPG_ERR_NO_VALUE, GPG_ERR_NOT_FOUND,
807 GPG_ERR_VALUE_NOT_FOUND, GPG_ERR_SYNTAX, GPG_ERR_INV_CRL,
808 GPG_ERR_BAD_BER, GPG_ERR_INV_BER, GPG_ERR_ELEMENT_NOT_FOUND,
809 GPG_ERR_IDENTIFIER_NOT_FOUND, GPG_ERR_INV_TAG, GPG_ERR_INV_LENGTH,
810 GPG_ERR_INV_KEYINFO, GPG_ERR_UNEXPECTED_TAG, GPG_ERR_NOT_DER_ENCODED,
811 GPG_ERR_NO_CMS_OBJ, GPG_ERR_INV_CMS_OBJ, GPG_ERR_UNKNOWN_CMS_OBJ,
812 GPG_ERR_UNSUPPORTED_CMS_OBJ, GPG_ERR_UNSUPPORTED_ENCODING,
813 GPG_ERR_UNSUPPORTED_CMS_VERSION, GPG_ERR_UNKNOWN_ALGORITHM,
814 GPG_ERR_ENCODING_PROBLEM, GPG_ERR_INV_STATE, GPG_ERR_DUP_VALUE,
815 GPG_ERR_MISSING_ACTION, GPG_ERR_MODULE_NOT_FOUND,
816 GPG_ERR_INV_OID_STRING, GPG_ERR_INV_TIME, GPG_ERR_INV_CRL_OBJ,
817 GPG_ERR_UNSUPPORTED_CRL_VERSION, GPG_ERR_INV_CERT_OBJ,
818 GPG_ERR_UNKNOWN_NAME, GPG_ERR_IO_ERROR, GPG_ERR_FILE_ERROR,
819 GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR, GPG_ERR_LOCK_ERROR,
820 GPG_ERR_BUFFER_TOO_SHORT.
822 2003-11-06 Werner Koch <wk@gnupg.org>
824 * src/gpg-error.h, src/err-sources.h.in: Added error sources for
825 Libksba and Dirmngr. Added GPG_ERR_TRUNCATED.
827 2003-11-03 Werner Koch <wk@gnupg.org>
829 * src/gpg-error.h: Allow GPG_ERR_INLINE to get overriden, so that
830 one can use the -D flag to specify the inline keyword. Suggested
833 2003-10-28 Moritz Schulte <mo@g10code.com>
835 * src/gpg-error.h (gpg_err_code_t): Added:
836 GPG_ERR_NO_ENCODING_METHOD, GPG_ERR_NO_ENCRYPTION_SCHEME,
837 GPG_ERR_NO_SIGNATURE_SCHEME.
838 * src/err-codes.h.in: Likewise.
840 2003-10-25 Werner Koch <wk@gnupg.org>
842 * src/strerror.c: Include stdio.h for snprintf
843 prototype. Suggested by papadopo@shfj.cea.fr, fixes #gnupg/214.
845 2003-10-11 Moritz Schulte <mo@g10code.com>
847 * src/gpg-error.m4: Do not ask gpg-error-config to change the
848 prefix, if --with-gpg-error-prefix=... is used.
850 2003-10-06 Marcus Brinkmann <marcus@g10code.de>
854 * configure.ac (LIBGPG_ERROR_LT_CURRENT, LIBGPG_ERROR_LT_AGE):
857 2003-09-30 Marcus Brinkmann <marcus@g10code.de>
859 * src/gpg-error.h: Include <stddef.h>.
860 (gpg_strerror_r): Change prototype to match POSIX. Rewritten for
862 * src/strerror.c: Include <errno.h>.
863 (gpg_strerror_r, system_strerror_r): Change prototype to match
864 POSIX. Rewritten for that prototype. Rewritten for that
867 2003-09-30 Werner Koch <wk@gnupg.org>
869 * src/gpg-error.h: Add PIN_NOT_SYNCED.
871 2003-09-13 Marcus Brinkmann <marcus@g10code.de>
873 * configure.ac: Invoke AC_FUNC_STRERROR_R.
874 * src/gpg-error.h (gpg_strerror_r): New prototype.
875 * src/strerror.c (system_strerror_r): New function.
876 (gpg_strerror_r): New function.
878 2003-09-04 Marcus Brinkmann <marcus@g10code.de>
880 * libgpg-error.spec.in: New file.
881 * Makefile.am (EXTRA_DIST): Add libgpg-error.spec.in.
882 * AUTHORS (Maintainer): Add Robert Schiele as contributor.
884 2003-09-03 Marcus Brinkmann <marcus@g10code.de>
886 * src/gpg-error-config.in: Rewritten.
888 2003-09-03 Marcus Brinkmann <marcus@g10code.de>
890 * configure.ac (AC_INIT): Bump up version number.
892 2003-09-03 Marcus Brinkmann <marcus@g10code.de>
896 * src/gpg-error.h: Define GPG_ERR_INLINE to nothing if the
897 compiler does not implement C99.
898 * configure.ac: (AC_INIT): Bump up version number.
900 2003-09-02 Moritz Schulte <mo@g10code.com>
902 * src/gpg-error.h (gpg_err_code_t): Added: GPG_ERR_NO_PRIME.
903 * src/err-codes.h.in: Likewise.
905 2003-08-19 Marcus Brinkmann <marcus@g10code.de>
907 * src/gpg-error.h (GPG_ERR_SYSTEM_ERROR): Fix value (should have
908 been 2^15, was 2^14).
909 (GPG_ERR_CODE_DIM): Fix value (should have been 65536, was 32768).
910 Change the error codes of all system errors to have the
911 GPG_ERR_SYSTEM_ERROR bit set.
913 2003-08-06 Marcus Brinkmann <marcus@g10code.de>
915 * code-from-errno.c, code-to-errno.c, err-codes.h.in,
916 err-sources.h.in, errnos.in, gpg-error.h, strerror.c, strsource.c:
917 Fix typo in copyright notice.
919 2003-07-31 Marcus Brinkmann <marcus@g10code.de>
921 * README: Clarify copyright conditions.
922 * src/mkstrtable.awk: Don't claim in the copyright information
923 that this program is part of libgpg-error.
924 * src/mkerrnos.awk: Likewise.
925 * src/mkerrcodes1.awk: Likewise.
926 * src/mkerrcodes2.awk: Likewise.
928 2003-07-31 Marcus Brinkmann <marcus@g10code.de>
930 * src/strerror.c (gpg_strerror): Use CODE, not ERR to map error
933 * configure.ac (AC_INIT): Bump version to 0.3.
937 2003-07-30 Marcus Brinkmann <marcus@g10code.de>
939 * configure.ac (AC_INIT): Bump version to 0.2.
943 2003-07-17 Werner Koch <wk@gnupg.org>
945 * src/gpg-error.h: Add HARDWARE, PIN_BLOCKED and USE_CONDITIONS.
947 2003-07-16 Moritz Schulte <moritz@g10code.com>
949 * src/gpg-error.h (gpg_err_code): Cast return value to
950 gpg_err_code_t. Thanks to Ralf Schneider
951 <ralf@tapfere-schneiderleins.de>.
952 (gpg_err_source): Cast return value to gpg_err_source_t. Thanks
953 to Ralf Schneider <ralf@tapfere-schneiderleins.de>.
955 2003-07-15 Moritz Schulte <moritz@g10code.com>
957 * src/gpg-error.m4 (AM_PATH_GPG_ERROR): Use `0.0' instead of
958 `0.0.0' in case no version number is given, since the following
959 sed commands expect the former form, not a triplet.
961 2003-07-06 Marcus Brinkmann <marcus@g10code.de>
963 * src/gpg-error.h (GPG_ERR_INLINE): Define macro. Use it instead
964 of __inline__ in this file.
966 2003-06-30 Werner Koch <wk@gnupg.org>
968 * src/gpg-error.h: Add WRONG_CARD.
970 2003-06-22 Marcus Brinkmann <marcus@g10code.de>
972 * src/gpg-error.h: Fix value of GPG_ERR_CANCELED.
974 2003-06-06 Marcus Brinkmann <marcus@g10code.de>
976 * configure.ac: Define GPG_ERROR_CONFIG_LIBS and
977 GPG_ERROR_CONFIG_CFLAGS.
978 Add src/gpg-error-config to config files.
979 * src/Makefile.am (EXTRA_DIST): Add gpg-error-config.in and
981 (bin_SCRIPTS): New variable.
982 (m4datadir, m4data_DATA): New variables.
983 * src/gpg-error-config.in: New file.
984 * src/gpg-error.m4: New file.
988 2003-06-05 Marcus Brinkmann <marcus@g10code.de>
990 * src/gpg-error.h (gpg_err_make_from_errno): Fix implementation.
992 * src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_SIG_EXPIRED.
993 (err-codes.h.in): Likewise.
995 * src/gpg-error.h (gpg_error_from_errno): Change return type to
998 2003-06-04 Marcus Brinkmann <marcus@g10code.de>
1000 * src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_INV_ENGINE,
1001 GPG_ERR_PUBKEY_NOT_TRUSTED, GPG_ERR_DECRYPT_FAILED,
1002 GPG_ERR_KEY_EXPIRED.
1003 (gpg_make_error): Rename to gpg_err_make.
1004 (gpg_error): Use here.
1005 * tests/t-strerror.c (main): And here.
1006 (gpg_make_error_from_errno): Rename to gpg_err_make_from_errno.
1008 * src/gpg-error.h (gpg_make_error_from_errno): New inline function.
1009 (gpg_error_from_errno): Likewise.
1011 * src/code-from-errno.c (gpg_err_code_from_errno): Handle the case
1014 2003-06-04 Marcus Brinkmann <marcus@g10code.de>
1016 * src/gpg-error.h (gpg_err_source_t): Add GPG_ERR_SOURCE_USER_1 to
1017 GPG_ERR_SOURCE_USER_4.
1018 (gpg_err_code_t): Add GPG_ERR_USER_1 to GPG_ERR_USER_16.
1019 * src/err-sources.h.in: Likewise.
1020 * src/err-codes.h.in: Likewise.
1022 * src/gpg-error.h: Rename GPG_ERR_INVALID_RESPONSE to
1023 GPG_ERR_INV_RESPONSE, GPG_ERR_INVALID_CARD to GPG_ERR_INV_CARD,
1024 GPG_ERR_INVALID_INDEX to GPG_ERR_INV_INDEX, GPG_ERR_INVALID_ID to
1025 GPG_ERR_INV_ID, GPG_ERR_AGENT_ERROR to GPG_ERR_AGENT,
1026 GPG_ERR_ASSUAN_ERROR to GPG_ERR_ASSUAN, GPG_ERR_PIN_ENTRY_ERROR to
1027 GPG_ERR_PIN_ENTRY, GPG_ERR_DIRMNGR_ERROR to GPG_ERR_DIRMNGR,
1028 GPG_ERR_CARD_ERROR to GPG_ERR_CARD, GPG_ERR_CONFIGURATION_ERROR to
1029 GPG_ERR_CONFIGURATION, GPG_ERR_SCDAEMON_ERROR to GPG_ERR_SCDAEMON.
1031 2003-06-03 Werner Koch <wk@gnupg.org>
1033 * src/gpg-error.h, src/err-codes.h.in: Add codes for TIMEOUT,
1034 INV_HANDLE, NOTHING_FOUND, WRONG_BLOB_TYPE and MISSING_VALUE.
1035 * src/gpg-error.h, src/err-sources.h.in: Add KEYBOX which is the
1036 keybox subsystem of GnuPG.
1038 2003-06-02 Moritz Schulte <moritz@g10code.com>
1040 * src/gpg-error.h: Fix description of gpg_err_code_to_errno
1041 (i.e. substitute `ERR' with `CODE').
1042 * src/code-to-errno.c: Likewise.
1044 * tests/t-strerror.c: Include <gpg-error.h> instead of
1047 2003-06-01 Marcus Brinkmann <marcus@g10code.de>
1049 * src/strerror.c: Include <string.h>.
1051 * src/gpg-error.h (gpg_err_code_t): Remove GPG_ERR_FILE_READ,
1052 GPG_ERR_FILE_WRITE, GPG_ERR_FILE_OPEN, GPG_ERR_FILE_CREATE,
1053 GPG_ERR_FILE_CLOSE, GPG_ERR_FILE_DELETE, GPG_ERR_FILE_EXISTS,
1054 GPG_ERR_FILE, GPG_ERR_IO, GPG_ERR_OUT_OF_CORE, GPG_ERR_READ_ERROR,
1055 GPG_ERR_WRITE_ERROR.
1056 * src/err-codes.h.in: Likewise.
1058 * src/Makefile.am (EXTRA_DIST): Add err-sources.h and err-codes.h.
1060 * src/mkerrcodes1.awk: New file.
1061 * src/mkerrcodes2.awk: New file.
1062 * src/mkerrnos.awk: New file.
1063 * src/errnos.in: New file.
1064 * src/code-from-errno.c: New file.
1065 * src/code-to-errno.c: New file.
1066 * src/Makefile.am (libgpg_error_la_SOURCES): Remove err-sources.h
1067 and err-codes.h. Add code-to-errno.c and code-from-errno.c.
1068 (code-to-errno.h): New target.
1069 (code-from-errno.h): Likewise.
1070 (EXTRA_DIST): Add mkerrnos.awk, errnos.in, and mkerrcodes1.awk.
1071 (BUILT_SOURCES): Add code-to-errno.h and code-from-errno.h.
1072 (CLEANFILES): Likewise.
1073 * src/strerror.c (gpg_strerror): Use strerror for system errors.
1074 * src/err-codes.h.in: Add 16382 (Unknown system error).
1075 * src/gpg-error.h (gpg_err_code_t): Add system errors.
1076 (GPG_ERR_CODE_DIM): Change to 32768.
1077 (GPG_ERR_SYSTEM_ERROR): New macro.
1078 (gpg_err_code_from_errno): New prototype.
1079 (gpg_err_code_to_errno): Likewise.
1081 * src/Makefile.am (nobase_include_HEADERS): Rename target to ...
1082 (include_HEADERS): ... this. Change file to gpg-error.h
1083 (libgpg_error_la_SOURCES): Change gpg/error.h to gpg-error.h.
1084 * src/gpg/error.h: Move to ...
1085 * src/gpg-error.h: ... here. New file.
1086 * src/strerror.c: Include <gpg-error.h>, not <gpg/error.h>.
1087 * src/strsource.c: Likewise.
1089 * src/gpg/error.h (gpg_error_t): Change type to unsigned int, not
1092 2003-05-26 Marcus Brinkmann <marcus@g10code.de>
1094 * src/gpg/error.h (gpg_make_error): Only OR in the error source if
1095 there is an error, this allows to test for success with "if (!err)"
1098 2003-05-15 Marcus Brinkmann <marcus@g10code.de>
1100 * src/mkstrtable.awk: Add exception clause to license about the
1101 output of the script.
1102 * configure.ac: Change license to LGPL 2.1 or later.
1103 * Makefile.am: Likewise.
1104 * src/Makefile.am: Likewise.
1105 * src/err-codes.h.in: Likewise.
1106 * src/err-sources.h.in: Likewise.
1107 * src/strsource.c: Likewise.
1108 * src/strerror.c: Likewise.
1109 * src/gpg/error.h: Likewise.
1110 * tests/Makefile.am: Likewise.
1112 * src/mkstrtable.awk: New variable HEADER. Copy input until first
1113 line with an actual code and description occurs.
1114 * src/err-codes.h.in: Uncomment license, so it is copied into the
1116 * src/err-sources.h.in: Likewise.
1118 2003-05-15 Marcus Brinkmann <marcus@g10code.de>
1120 * COPYING.LIB: New file.
1122 2003-05-15 Marcus Brinkmann <marcus@g10code.de>
1126 Copyright 2003, 2004, 2005, 2006, 2007, 2010 g10 Code GmbH
1128 This file is free software; as a special exception the author gives
1129 unlimited permission to copy and/or distribute it, with or without
1130 modifications, as long as this notice is preserved.
1132 This file is distributed in the hope that it will be useful, but
1133 WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
1134 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.