| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Werner Koch <[email protected]>
|
| |
|
|
|
|
| |
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
| |
--
|
|
|
|
|
|
|
| |
* src/err-codes.h.in: Add error codes.
* doc/ldap2gpgerr.c: New.
Signed-off-by: Werner Koch <[email protected]>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* src/visibility.c (gpgrt_pending, gpgrt_pending_unlocked): New.
* src/estream.c (_gpgrt_pending, _gpgrt_pending_unlocked): New.
(check_pending): new.
(check_pending_fbf, check_pending_nbf): New.
(es_func_mem_read, es_func_fd_read, es_func_w32_read)
(es_func_fp_read, es_fill): Take care of the special 0 value for SIZE.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h.in (GPGRT_LOCK_DEFINE): New.
(gpgrt_lock_init): New.
(gpgrt_lock_lock): New.
(gpgrt_lock_unlock): New.
(gpgrt_lock_destroy): New.
(gpgrt_yield): New.
* src/gpg-error.def.in: Add new functions.
* m4/lock.m4, m4/threadlib.m4: New. Taken from current gnulib.
* configure.ac: Call gl_LOCK. Check size of pthread_mutex_t. Add
LIBTHREAD to GPG_ERROR_CONFIG_LIBS.
* src/err-codes.h.in (GPG_ERR_INV_LOCK_OBJ): New.
* src/gen-posix-lock-obj.c: New.
* src/gen-w32-lock-obj.c: New.
* src/lock.h, src/thread.h: New.
* src/posix-lock-obj.h, src/w32-lock-obj.h: New.
* src/posix-lock.c, src/w32-lock.c: New.
* src/posix-thread.c, src/w32-thread.c:
* src/w32-lock-obj-pub.in: New.
* src/mkheader.c (include_file): Support build time include files.
(write_special): Add keyword "include:lock-obj".
* src/Makefile.am:
(posix-lock-obj-pub.in): New rule.
(noinst_PROGRAMS): Add gen-*-lock-obj helpers.
* tests/t-common.h: New.
* tests/t-lock.c: New.
* tests/Makefile.am (t_lock_LDADD): Add new test.
--
This patch introduces the gpgrt_ functions which will be extended over
time to provide a library of commonly used code in GnuPG and
Libgcrypt. Having them in a library named libgpg-error is a misnomer
but this way we can achieve a smooth upgrade path.
In contrasts to other GnuPG libraries, the gpgrt_ functions return a
simple gpg_err_code_t and not gpg_error_t. The rationale for this is
that a source of error identifier does not make sense here; it is
better to use the source of error identifier of the caller. This can
easily be achieved in a component by wrapping these function in a
gpg_error macro/inline.
There is no cross-compiling support for Posix platforms; the
gen-posix-lock-obj tool must be run on the target system.
Note that the gen-w32-lock-obj tool is not needed at build time but
was used to figure out ABI definitions for Windows.
Signed-off-by: Werner Koch <[email protected]>
|
| |
|
|
|
|
|
|
|
| |
* src/err-codes.h.in (GPG_ERR_NO_CRYPT_CTX): New.
(GPG_ERR_WRONG_CRYPT_CTX, GPG_ERR_BAD_CRYPT_CTX): New.
(GPG_ERR_CRYPT_CTX_CONFLICT): New.
(GPG_ERR_BROKEN_PUBKEY, GPG_ERR_BROKEN_SECKEY): New.
|
|
|
|
| |
* src/err-codes.h.in: Unify uppercase.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Updated to gettext 0.1.17
Add a new error code.
|
|
|
|
|
| |
Remove comment cruft.
|
|
|
|
|
| |
Prepare a new release.
|
|
|
|
|
| |
Convert de.po to utf8
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* src/err-codes.h.in: Add GPG_ERR_INV_REQUEST.
|
|
|
|
|
|
| |
* src/err-codes.h.in: Add GPG_ERR_PROTOCOL_VIOLATION and
GPG_ERR_INV_MAC.
|
|
|
|
|
|
|
|
|
| |
(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/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.
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
| |
* src/gpg-error.h (gpg_err_code_t): Added: GPG_ERR_NO_PRIME.
* src/err-codes.h.in: Likewise.
|
|
|
|
|
|
|
| |
* 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.
|
| |
|