| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* src/gpg-error.c (main): Return zero on success.
|
|
|
|
|
|
|
| |
* src/mkerrcodes.c (main): Fix type of argv. Return something.
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| |
(CLEANFILES): Add that temporary file.
* configure.ac (AC_PROG_CPP): Added.
* src/err-codes.h.in: Removed trailing spaces from
GPG_ERR_NOT_LOCKED.
|
|
|
|
|
| |
* src/gpg-error-config.in: Fix last change.
|
|
|
|
|
|
| |
* src/gpg-error-config.in (Options): Do not emit include and lib
directory for prefix "/usr" or "".
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Define CC_FOR_BUILD.
* src/Makefile.am (BUILT_SOURCES): Add gpg-error.h.
(EXTRA_DIST): Add mkerrcodes.awk and mkerrcodes.c.
(CLEANFILES): Add mkerrcodes.h and mkerrcodes.
(mkerrcodes.h): New target.
(mkerrcodes): New target.
(code-from-errno.h): Rewritten.
* src/errnos.in: Remove include statement (which was ignored
anyway).
* src/mkerrcodes.awk: New file.
* src/mkerrcodes.c: New file.
|
|
|
|
|
|
| |
* src/Makefile.am (noinst_PROGRAMS): Rename to ...
(bin_PROGRAMS): ... this.
|
|
|
|
|
| |
* src/gpg-error.h.in: Add extern "C" closure for C-- compilers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/Makefile.am (noinst_PROGRAMS): New variable.
(gpg_error_LDADD): New variable.
(gpg_error_SOURCES): New variable.
(EXTRA_DIST): Add mkheader.awk and gpg-error.h.in.
(BUILT_SOURCES): Add err-sources-sym.h, err-codes-sym.h and
errnos-sym.h.
(CLEANFILES): Add err-sources-sym.h, err-codes-sym.h,
errnos-sym.h and gpg-error.h.
(err-codes.h, err-sources.h): Add -v textidx=3 to mkstrtable.awk
invocation.
(err-codes-sym.h): New target.
(err-sources-sym.h): New target.
(gpg-error.h): New rule.
* src/mkstrtable.awk: Skip the second field (which contains the
error code symbol).
(FS): Allow more than one tab as field separator.
Allow to specify the field to be used as text with the variable
textidx.
Allow to suppress gettext markers in the output.
Allow to specify a prefix to the messages.
Allow to specify a namespace for the variable and macro names.
* src/mkerrnos.awk (FS): Initialize. Understand variable
errnoidx, which defaults to 2, to cope with the error names being
in a different column than the first.
* src/mkerrcodes1.awk: Likewise. Use \t as separator.
* src/mkheader.awk: New file.
* src/errnos.in: Add error code numbers (relativ to
GPG_ERR_SYSTEM_ERROR).
* src/strerror-sym.c: New file.
* src/strsources-sym.c: New file.
* src/err-codes.h.in: Add the error code symbol for every error
code.
(GPG_ERR_BUFFER_TOO_SHORT): Fix error code (it is 200, not 199).
* src/err-sources.h.in: Likewise.
* src/gpg-error.h.in: New file.
* src/gpg-error.h: File removed.
* src/gpg-error.c: New file.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
GPG_ERR_FILE_ERROR, GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR,
GPG_ERR_LOCK_ERROR.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GPG_ERR_INV_ATTR, GPG_ERR_NO_VALUE, GPG_ERR_NOT_FOUND,
GPG_ERR_VALUE_NOT_FOUND, GPG_ERR_SYNTAX, GPG_ERR_INV_CRL,
GPG_ERR_BAD_BER, GPG_ERR_INV_BER, GPG_ERR_ELEMENT_NOT_FOUND,
GPG_ERR_IDENTIFIER_NOT_FOUND, GPG_ERR_INV_TAG, GPG_ERR_INV_LENGTH,
GPG_ERR_INV_KEYINFO, GPG_ERR_UNEXPECTED_TAG, GPG_ERR_NOT_DER_ENCODED,
GPG_ERR_NO_CMS_OBJ, GPG_ERR_INV_CMS_OBJ, GPG_ERR_UNKNOWN_CMS_OBJ,
GPG_ERR_UNSUPPORTED_CMS_OBJ, GPG_ERR_UNSUPPORTED_ENCODING,
GPG_ERR_UNSUPPORTED_CMS_VERSION, GPG_ERR_UNKNOWN_ALGORITHM,
GPG_ERR_ENCODING_PROBLEM, GPG_ERR_INV_STATE, GPG_ERR_DUP_VALUE,
GPG_ERR_MISSING_ACTION, GPG_ERR_MODULE_NOT_FOUND,
GPG_ERR_INV_OID_STRING, GPG_ERR_INV_TIME, GPG_ERR_INV_CRL_OBJ,
GPG_ERR_UNSUPPORTED_CRL_VERSION, GPG_ERR_INV_CERT_OBJ,
GPG_ERR_UNKNOWN_NAME, GPG_ERR_IO_ERROR, GPG_ERR_FILE_ERROR,
GPG_ERR_READ_ERROR, GPG_ERR_WRITE_ERROR, GPG_ERR_LOCK_ERROR,
GPG_ERR_BUFFER_TOO_SHORT
|
|
|
|
|
| |
Libksba and Dirmngr. Added GPG_ERR_TRUNCATED.
|
|
|
|
|
|
| |
one can use the -D flag to specify the inline keyword. Suggested
by Philip Brown.
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_code_t): Added:
GPG_ERR_NO_ENCODING_METHOD, GPG_ERR_NO_ENCRYPTION_SCHEME,
GPG_ERR_NO_SIGNATURE_SCHEME.
* src/err-codes.h.in: Likewise.
|
|
|
|
|
|
| |
Include stdio.h for snprintf
prototype. Suggested by [email protected], fixes #gnupg/214.
|
|
|
|
|
| |
prototype. Suggested by [email protected], fixes #gnupg/214.
|
|
|
|
|
|
| |
* src/gpg-error.m4: Do not ask gpg-error-config to change the
prefix, if --with-gpg-error-prefix=... is used.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h: Include <stddef.h>.
(gpg_strerror_r): Change prototype to match POSIX. Rewritten for
that prototype.
* src/strerror.c: Include <errno.h>.
(gpg_strerror_r, system_strerror_r): Change prototype to match
POSIX. Rewritten for that prototype. Rewritten for that
prototype.
|
| |
|
|
|
|
|
|
|
|
| |
* configure.ac: Invoke AC_FUNC_STRERROR_R.
* src/gpg-error.h (gpg_strerror_r): New prototype.
* src/strerror.c (system_strerror_r): New function.
(gpg_strerror_r): New function.
|
|
|
|
|
| |
* src/gpg-error-config.in: Rewritten.
|
|
|
|
|
|
|
|
|
| |
Released 0.4.
* src/gpg-error.h: Define GPG_ERR_INLINE to nothing if the
compiler does not implement C99.
* configure.ac: (AC_INIT): Bump up version number.
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_code_t): Added: GPG_ERR_NO_PRIME.
* src/err-codes.h.in: Likewise.
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h (GPG_ERR_SYSTEM_ERROR): Fix value (should have
been 2^15, was 2^14).
(GPG_ERR_CODE_DIM): Fix value (should have been 65536, was 32768).
Change the error codes of all system errors to have the
GPG_ERR_SYSTEM_ERROR bit set.
|
|
|
|
|
|
|
| |
* code-from-errno.c, code-to-errno.c, err-codes.h.in,
err-sources.h.in, errnos.in, gpg-error.h, strerror.c, strsource.c:
Fix typo in copyright notice.
|
|
|
|
|
|
|
|
|
|
| |
* README: Clarify copyright conditions.
* src/mkstrtable.awk: Don't claim in the copyright information
that this program is part of libgpg-error.
* src/mkerrnos.awk: Likewise.
* src/mkerrcodes1.awk: Likewise.
* src/mkerrcodes2.awk: Likewise.
|
|
|
|
|
|
|
|
| |
* src/strerror.c (gpg_strerror): Use CODE, not ERR to map error
code to errno.
* configure.ac (AC_INIT): Bump version to 0.3.
|
| |
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_code): Cast return value to
gpg_err_code_t. Thanks to Ralf Schneider
<[email protected]>.
(gpg_err_source): Cast return value to gpg_err_source_t. Thanks
to Ralf Schneider <[email protected]>.
|
|
|
|
|
|
|
| |
* src/gpg-error.m4 (AM_PATH_GPG_ERROR): Use `0.0' instead of
`0.0.0' in case no version number is given, since the following
sed commands expect the former form, not a triplet.
|
|
|
|
|
|
| |
* src/gpg-error.h (GPG_ERR_INLINE): Define macro. Use it instead
of __inline__ in this file.
|
| |
|
|
|
|
|
| |
* src/gpg-error.h: Fix value of GPG_ERR_CANCELED.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Define GPG_ERROR_CONFIG_LIBS and
GPG_ERROR_CONFIG_CFLAGS.
Add src/gpg-error-config to config files.
* src/Makefile.am (EXTRA_DIST): Add gpg-error-config.in and
gpg-error.m4.
(bin_SCRIPTS): New variable.
(m4datadir, m4data_DATA): New variables.
* src/gpg-error-config.in: New file.
* src/gpg-error.m4: New file.
|
| |
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_make_from_errno): Fix implementation.
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_SIG_EXPIRED.
(err-codes.h.in): Likewise.
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_error_from_errno): Change return type to
gpg_error_t.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_code_t): Add GPG_ERR_INV_ENGINE,
GPG_ERR_PUBKEY_NOT_TRUSTED, GPG_ERR_DECRYPT_FAILED,
GPG_ERR_KEY_EXPIRED.
(gpg_make_error): Rename to gpg_err_make.
(gpg_error): Use here.
* tests/t-strerror.c (main): And here.
(gpg_make_error_from_errno): Rename to gpg_err_make_from_errno.
|
| |
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_make_error_from_errno): New inline function.
(gpg_error_from_errno): Likewise.
* src/code-from-errno.c (gpg_err_code_from_errno): Handle the case
of no error at all.
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_source_t): Add GPG_ERR_SOURCE_USER_1 to
GPG_ERR_SOURCE_USER_4.
(gpg_err_code_t): Add GPG_ERR_USER_1 to GPG_ERR_USER_16.
* src/err-sources.h.in: Likewise.
* src/err-codes.h.in: Likewise.
|