1
2004-03-07 Marcus Brinkmann <marcus@g10code.de>
5
* configure.ac: Bumbed up LIBGPG_ERROR_LT_REVISON.
7
* src/gpg-error-config.in: Fix last change.
8
* src/gpg-error-config.in (Options): Do not emit include and lib
9
directory for prefix "/usr" or "".
11
* tests/Makefile.am (INCLUDES): Change to -I$(top_srcdir)/src to
14
2004-03-01 Marcus Brinkmann <marcus@g10code.de>
16
* configure.ac: Define CC_FOR_BUILD.
17
* src/Makefile.am (BUILT_SOURCES): Add gpg-error.h.
18
(EXTRA_DIST): Add mkerrcodes.awk and mkerrcodes.c.
19
(CLEANFILES): Add mkerrcodes.h and mkerrcodes.
20
(mkerrcodes.h): New target.
21
(mkerrcodes): New target.
22
(code-from-errno.h): Rewritten.
24
* src/errnos.in: Remove include statement (which was ignored
26
* src/mkerrcodes.awk: New file.
27
* src/mkerrcodes.c: New file.
29
2004-02-27 Marcus Brinkmann <marcus@g10code.de>
31
* src/Makefile.am (noinst_PROGRAMS): Rename to ...
32
(bin_PROGRAMS): ... this.
34
* src/gpg-error.h.in: Add extern "C" closure for C-- compilers.
36
* src/Makefile.am (noinst_PROGRAMS): New variable.
37
(gpg_error_LDADD): New variable.
38
(gpg_error_SOURCES): New variable.
39
(EXTRA_DIST): Add mkheader.awk and gpg-error.h.in.
40
(BUILT_SOURCES): Add err-sources-sym.h, err-codes-sym.h and
42
(CLEANFILES): Add err-sources-sym.h, err-codes-sym.h,
43
errnos-sym.h and gpg-error.h.
44
(err-codes.h, err-sources.h): Add -v textidx=3 to mkstrtable.awk
46
(err-codes-sym.h): New target.
47
(err-sources-sym.h): New target.
48
(gpg-error.h): New rule.
49
* src/mkstrtable.awk: Skip the second field (which contains the
51
(FS): Allow more than one tab as field separator.
52
Allow to specify the field to be used as text with the variable
54
Allow to suppress gettext markers in the output.
55
Allow to specify a prefix to the messages.
56
Allow to specify a namespace for the variable and macro names.
57
* src/mkerrnos.awk (FS): Initialize. Understand variable
58
errnoidx, which defaults to 2, to cope with the error names being
59
in a different column than the first.
60
* src/mkerrcodes1.awk: Likewise. Use \t as separator.
61
* src/mkheader.awk: New file.
62
* src/errnos.in: Add error code numbers (relativ to
63
GPG_ERR_SYSTEM_ERROR).
64
* src/strerror-sym.c: New file.
65
* src/strsources-sym.c: New file.
66
* src/err-codes.h.in: Add the error code symbol for every error
68
(GPG_ERR_BUFFER_TOO_SHORT): Fix error code (it is 200, not 199).
69
* src/err-sources.h.in: Likewise.
70
* src/gpg-error.h.in: New file.
71
* src/gpg-error.h: File removed.
72
* src/gpg-error.c: New file.
74
2004-02-03 Werner Koch <wk@gnupg.org>
76
* src/gpg-error.h: Added GPG_ERR_NOT_LOCKED.
78
2003-12-22 Werner Koch <wk@gnupg.org>
80
* src/gpg-error.h: Added GPG_ERR_LOCALE_PROBLEM.
82
2003-12-12 Werner Koch <wk@gnupg.org>
84
* src/err-codes.h.in: s/revoced/revoked/.
86
2003-12-08 Werner Koch <wk@gnupg.org>
88
* README.CVS: Enhanced.
91
* Makefile.am (EXTRA_DIST): Added autogen.sh.
93
2003-11-14 Werner Koch <wk@gnupg.org>
95
* configure.ac: Bumbed version number to 0.7.
99
* configure.ac: Bumbed up LIBGPG_ERROR_LT_REVISON.
101
2003-11-13 Werner Koch <wk@gnupg.org>
103
* src/gpg-error.h, src/err-codes.h.in: Removed: GPG_ERR_IO_ERROR,
104
GPG_ERR_FILE_ERROR, GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR,
107
* src/gpg-error.h (GPG_ERR_SOURCE_DIRMNGR): Fixed typo.
109
2003-11-12 Werner Koch <wk@gnupg.org>
111
* src/gpg-error.h, src/err-codes.h.in: Added these codes:
112
GPG_ERR_INV_ATTR, GPG_ERR_NO_VALUE, GPG_ERR_NOT_FOUND,
113
GPG_ERR_VALUE_NOT_FOUND, GPG_ERR_SYNTAX, GPG_ERR_INV_CRL,
114
GPG_ERR_BAD_BER, GPG_ERR_INV_BER, GPG_ERR_ELEMENT_NOT_FOUND,
115
GPG_ERR_IDENTIFIER_NOT_FOUND, GPG_ERR_INV_TAG, GPG_ERR_INV_LENGTH,
116
GPG_ERR_INV_KEYINFO, GPG_ERR_UNEXPECTED_TAG, GPG_ERR_NOT_DER_ENCODED,
117
GPG_ERR_NO_CMS_OBJ, GPG_ERR_INV_CMS_OBJ, GPG_ERR_UNKNOWN_CMS_OBJ,
118
GPG_ERR_UNSUPPORTED_CMS_OBJ, GPG_ERR_UNSUPPORTED_ENCODING,
119
GPG_ERR_UNSUPPORTED_CMS_VERSION, GPG_ERR_UNKNOWN_ALGORITHM,
120
GPG_ERR_ENCODING_PROBLEM, GPG_ERR_INV_STATE, GPG_ERR_DUP_VALUE,
121
GPG_ERR_MISSING_ACTION, GPG_ERR_MODULE_NOT_FOUND,
122
GPG_ERR_INV_OID_STRING, GPG_ERR_INV_TIME, GPG_ERR_INV_CRL_OBJ,
123
GPG_ERR_UNSUPPORTED_CRL_VERSION, GPG_ERR_INV_CERT_OBJ,
124
GPG_ERR_UNKNOWN_NAME, GPG_ERR_IO_ERROR, GPG_ERR_FILE_ERROR,
125
GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR, GPG_ERR_LOCK_ERROR,
126
GPG_ERR_BUFFER_TOO_SHORT.
128
2003-11-06 Werner Koch <wk@gnupg.org>
130
* src/gpg-error.h, src/err-sources.h.in: Added error sources for
131
Libksba and Dirmngr. Added GPG_ERR_TRUNCATED.
133
2003-11-03 Werner Koch <wk@gnupg.org>
135
* src/gpg-error.h: Allow GPG_ERR_INLINE to get overriden, so that
136
one can use the -D flag to specify the inline keyword. Suggested
139
2003-10-28 Moritz Schulte <mo@g10code.com>
141
* src/gpg-error.h (gpg_err_code_t): Added:
142
GPG_ERR_NO_ENCODING_METHOD, GPG_ERR_NO_ENCRYPTION_SCHEME,
143
GPG_ERR_NO_SIGNATURE_SCHEME.
144
* src/err-codes.h.in: Likewise.
146
2003-10-25 Werner Koch <wk@gnupg.org>
148
* src/strerror.c: Include stdio.h for snprintf
149
prototype. Suggested by papadopo@shfj.cea.fr, fixes #gnupg/214.
151
2003-10-11 Moritz Schulte <mo@g10code.com>
153
* src/gpg-error.m4: Do not ask gpg-error-config to change the
154
prefix, if --with-gpg-error-prefix=... is used.
156
2003-10-06 Marcus Brinkmann <marcus@g10code.de>
160
* configure.ac (LIBGPG_ERROR_LT_CURRENT, LIBGPG_ERROR_LT_AGE):
163
2003-09-30 Marcus Brinkmann <marcus@g10code.de>
165
* src/gpg-error.h: Include <stddef.h>.
166
(gpg_strerror_r): Change prototype to match POSIX. Rewritten for
168
* src/strerror.c: Include <errno.h>.
169
(gpg_strerror_r, system_strerror_r): Change prototype to match
170
POSIX. Rewritten for that prototype. Rewritten for that
173
2003-09-30 Werner Koch <wk@gnupg.org>
175
* src/gpg-error.h: Add PIN_NOT_SYNCED.
177
2003-09-13 Marcus Brinkmann <marcus@g10code.de>
179
* configure.ac: Invoke AC_FUNC_STRERROR_R.
180
* src/gpg-error.h (gpg_strerror_r): New prototype.
181
* src/strerror.c (system_strerror_r): New function.
182
(gpg_strerror_r): New function.
184
2003-09-04 Marcus Brinkmann <marcus@g10code.de>
186
* libgpg-error.spec.in: New file.
187
* Makefile.am (EXTRA_DIST): Add libgpg-error.spec.in.
188
* AUTHORS (Maintainer): Add Robert Schiele as contributor.
190
2003-09-03 Marcus Brinkmann <marcus@g10code.de>
192
* src/gpg-error-config.in: Rewritten.
194
2003-09-03 Marcus Brinkmann <marcus@g10code.de>
196
* configure.ac (AC_INIT): Bump up version number.
198
2003-09-03 Marcus Brinkmann <marcus@g10code.de>
202
* src/gpg-error.h: Define GPG_ERR_INLINE to nothing if the
203
compiler does not implement C99.
204
* configure.ac: (AC_INIT): Bump up version number.
206
2003-09-02 Moritz Schulte <mo@g10code.com>
208
* src/gpg-error.h (gpg_err_code_t): Added: GPG_ERR_NO_PRIME.
209
* src/err-codes.h.in: Likewise.
211
2003-08-19 Marcus Brinkmann <marcus@g10code.de>
213
* src/gpg-error.h (GPG_ERR_SYSTEM_ERROR): Fix value (should have
214
been 2^15, was 2^14).
215
(GPG_ERR_CODE_DIM): Fix value (should have been 65536, was 32768).
216
Change the error codes of all system errors to have the
217
GPG_ERR_SYSTEM_ERROR bit set.
219
2003-08-06 Marcus Brinkmann <marcus@g10code.de>
221
* code-from-errno.c, code-to-errno.c, err-codes.h.in,
222
err-sources.h.in, errnos.in, gpg-error.h, strerror.c, strsource.c:
223
Fix typo in copyright notice.
225
2003-07-31 Marcus Brinkmann <marcus@g10code.de>
227
* README: Clarify copyright conditions.
228
* src/mkstrtable.awk: Don't claim in the copyright information
229
that this program is part of libgpg-error.
230
* src/mkerrnos.awk: Likewise.
231
* src/mkerrcodes1.awk: Likewise.
232
* src/mkerrcodes2.awk: Likewise.
234
2003-07-31 Marcus Brinkmann <marcus@g10code.de>
236
* src/strerror.c (gpg_strerror): Use CODE, not ERR to map error
239
* configure.ac (AC_INIT): Bump version to 0.3.
243
2003-07-30 Marcus Brinkmann <marcus@g10code.de>
245
* configure.ac (AC_INIT): Bump version to 0.2.
249
2003-07-17 Werner Koch <wk@gnupg.org>
251
* src/gpg-error.h: Add HARDWARE, PIN_BLOCKED and USE_CONDITIONS.
253
2003-07-16 Moritz Schulte <moritz@g10code.com>
255
* src/gpg-error.h (gpg_err_code): Cast return value to
256
gpg_err_code_t. Thanks to Ralf Schneider
257
<ralf@tapfere-schneiderleins.de>.
258
(gpg_err_source): Cast return value to gpg_err_source_t. Thanks
259
to Ralf Schneider <ralf@tapfere-schneiderleins.de>.
261
2003-07-15 Moritz Schulte <moritz@g10code.com>
263
* src/gpg-error.m4 (AM_PATH_GPG_ERROR): Use `0.0' instead of
264
`0.0.0' in case no version number is given, since the following
265
sed commands expect the former form, not a triplet.
267
2003-07-06 Marcus Brinkmann <marcus@g10code.de>
269
* src/gpg-error.h (GPG_ERR_INLINE): Define macro. Use it instead
270
of __inline__ in this file.
272
2003-06-30 Werner Koch <wk@gnupg.org>
274
* src/gpg-error.h: Add WRONG_CARD.
276
2003-06-22 Marcus Brinkmann <marcus@g10code.de>
278
* src/gpg-error.h: Fix value of GPG_ERR_CANCELED.
280
2003-06-06 Marcus Brinkmann <marcus@g10code.de>
282
* configure.ac: Define GPG_ERROR_CONFIG_LIBS and
283
GPG_ERROR_CONFIG_CFLAGS.
284
Add src/gpg-error-config to config files.
285
* src/Makefile.am (EXTRA_DIST): Add gpg-error-config.in and
287
(bin_SCRIPTS): New variable.
288
(m4datadir, m4data_DATA): New variables.
289
* src/gpg-error-config.in: New file.
290
* src/gpg-error.m4: New file.
294
2003-06-05 Marcus Brinkmann <marcus@g10code.de>
296
* src/gpg-error.h (gpg_err_make_from_errno): Fix implementation.
298
* src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_SIG_EXPIRED.
299
(err-codes.h.in): Likewise.
301
* src/gpg-error.h (gpg_error_from_errno): Change return type to
304
2003-06-04 Marcus Brinkmann <marcus@g10code.de>
306
* src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_INV_ENGINE,
307
GPG_ERR_PUBKEY_NOT_TRUSTED, GPG_ERR_DECRYPT_FAILED,
309
(gpg_make_error): Rename to gpg_err_make.
310
(gpg_error): Use here.
311
* tests/t-strerror.c (main): And here.
312
(gpg_make_error_from_errno): Rename to gpg_err_make_from_errno.
314
* src/gpg-error.h (gpg_make_error_from_errno): New inline function.
315
(gpg_error_from_errno): Likewise.
317
* src/code-from-errno.c (gpg_err_code_from_errno): Handle the case
320
2003-06-04 Marcus Brinkmann <marcus@g10code.de>
322
* src/gpg-error.h (gpg_err_source_t): Add GPG_ERR_SOURCE_USER_1 to
323
GPG_ERR_SOURCE_USER_4.
324
(gpg_err_code_t): Add GPG_ERR_USER_1 to GPG_ERR_USER_16.
325
* src/err-sources.h.in: Likewise.
326
* src/err-codes.h.in: Likewise.
328
* src/gpg-error.h: Rename GPG_ERR_INVALID_RESPONSE to
329
GPG_ERR_INV_RESPONSE, GPG_ERR_INVALID_CARD to GPG_ERR_INV_CARD,
330
GPG_ERR_INVALID_INDEX to GPG_ERR_INV_INDEX, GPG_ERR_INVALID_ID to
331
GPG_ERR_INV_ID, GPG_ERR_AGENT_ERROR to GPG_ERR_AGENT,
332
GPG_ERR_ASSUAN_ERROR to GPG_ERR_ASSUAN, GPG_ERR_PIN_ENTRY_ERROR to
333
GPG_ERR_PIN_ENTRY, GPG_ERR_DIRMNGR_ERROR to GPG_ERR_DIRMNGR,
334
GPG_ERR_CARD_ERROR to GPG_ERR_CARD, GPG_ERR_CONFIGURATION_ERROR to
335
GPG_ERR_CONFIGURATION, GPG_ERR_SCDAEMON_ERROR to GPG_ERR_SCDAEMON.
337
2003-06-03 Werner Koch <wk@gnupg.org>
339
* src/gpg-error.h, src/err-codes.h.in: Add codes for TIMEOUT,
340
INV_HANDLE, NOTHING_FOUND, WRONG_BLOB_TYPE and MISSING_VALUE.
341
* src/gpg-error.h, src/err-sources.h.in: Add KEYBOX which is the
342
keybox subsystem of GnuPG.
344
2003-06-02 Moritz Schulte <moritz@g10code.com>
346
* src/gpg-error.h: Fix description of gpg_err_code_to_errno
347
(i.e. substitute `ERR' with `CODE').
348
* src/code-to-errno.c: Likewise.
350
* tests/t-strerror.c: Include <gpg-error.h> instead of
353
2003-06-01 Marcus Brinkmann <marcus@g10code.de>
355
* src/strerror.c: Include <string.h>.
357
* src/gpg-error.h (gpg_err_code_t): Remove GPG_ERR_FILE_READ,
358
GPG_ERR_FILE_WRITE, GPG_ERR_FILE_OPEN, GPG_ERR_FILE_CREATE,
359
GPG_ERR_FILE_CLOSE, GPG_ERR_FILE_DELETE, GPG_ERR_FILE_EXISTS,
360
GPG_ERR_FILE, GPG_ERR_IO, GPG_ERR_OUT_OF_CORE, GPG_ERR_READ_ERROR,
362
* src/err-codes.h.in: Likewise.
364
* src/Makefile.am (EXTRA_DIST): Add err-sources.h and err-codes.h.
366
* src/mkerrcodes1.awk: New file.
367
* src/mkerrcodes2.awk: New file.
368
* src/mkerrnos.awk: New file.
369
* src/errnos.in: New file.
370
* src/code-from-errno.c: New file.
371
* src/code-to-errno.c: New file.
372
* src/Makefile.am (libgpg_error_la_SOURCES): Remove err-sources.h
373
and err-codes.h. Add code-to-errno.c and code-from-errno.c.
374
(code-to-errno.h): New target.
375
(code-from-errno.h): Likewise.
376
(EXTRA_DIST): Add mkerrnos.awk, errnos.in, and mkerrcodes1.awk.
377
(BUILT_SOURCES): Add code-to-errno.h and code-from-errno.h.
378
(CLEANFILES): Likewise.
379
* src/strerror.c (gpg_strerror): Use strerror for system errors.
380
* src/err-codes.h.in: Add 16382 (Unknown system error).
381
* src/gpg-error.h (gpg_err_code_t): Add system errors.
382
(GPG_ERR_CODE_DIM): Change to 32768.
383
(GPG_ERR_SYSTEM_ERROR): New macro.
384
(gpg_err_code_from_errno): New prototype.
385
(gpg_err_code_to_errno): Likewise.
387
* src/Makefile.am (nobase_include_HEADERS): Rename target to ...
388
(include_HEADERS): ... this. Change file to gpg-error.h
389
(libgpg_error_la_SOURCES): Change gpg/error.h to gpg-error.h.
390
* src/gpg/error.h: Move to ...
391
* src/gpg-error.h: ... here. New file.
392
* src/strerror.c: Include <gpg-error.h>, not <gpg/error.h>.
393
* src/strsource.c: Likewise.
395
* src/gpg/error.h (gpg_error_t): Change type to unsigned int, not
398
2003-05-26 Marcus Brinkmann <marcus@g10code.de>
400
* src/gpg/error.h (gpg_make_error): Only OR in the error source if
401
there is an error, this allows to test for success with "if (!err)"
404
2003-05-15 Marcus Brinkmann <marcus@g10code.de>
406
* src/mkstrtable.awk: Add exception clause to license about the
407
output of the script.
408
* configure.ac: Change license to LGPL 2.1 or later.
409
* Makefile.am: Likewise.
410
* src/Makefile.am: Likewise.
411
* src/err-codes.h.in: Likewise.
412
* src/err-sources.h.in: Likewise.
413
* src/strsource.c: Likewise.
414
* src/strerror.c: Likewise.
415
* src/gpg/error.h: Likewise.
416
* tests/Makefile.am: Likewise.
418
* src/mkstrtable.awk: New variable HEADER. Copy input until first
419
line with an actual code and description occurs.
420
* src/err-codes.h.in: Uncomment license, so it is copied into the
422
* src/err-sources.h.in: Likewise.
424
2003-05-15 Marcus Brinkmann <marcus@g10code.de>
426
* COPYING.LIB: New file.
428
2003-05-15 Marcus Brinkmann <marcus@g10code.de>
432
Copyright 2003 g10 Code GmbH
434
This file is free software; as a special exception the author gives
435
unlimited permission to copy and/or distribute it, with or without
436
modifications, as long as this notice is preserved.
438
This file is distributed in the hope that it will be useful, but
439
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
440
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.