[Announce] libgpg-error 1.4 released
wk at gnupg.org
Thu Sep 14 16:50:39 CEST 2006
We are pleased to announce version 1.4 of libgpg-error,
a library for common error values and messages in GnuPG components.
This is a shared library so it can be updated independently of each
individual component, while still allowing the use of new error values in
It may be found in the files
or gzip compressed
or as a patch to upgrade from 1.3:
It should soon appear on the mirrors listed at:
Bug reports and requests for assistance should be sent to:
gnupg-devel at gnupg.org
The sha1sum checksums for this distibution are
Noteworthy changes in version 1.4 (2006-09-14)
* Support for Common Lisp is included.
* New error codes for the Assuan IPC library.
* New error code GPG_ERR_MISSING_ERRNO to be used in cases when a
system accidently does not set errno but a system error definitely
* New error source GPG_ERR_SOURCE_ANY to allow proper use of
libgpg-error even if a specific source is not available.
* New convenience functions gpg_err_code_from_syserror and
gpg_error_from_syserror which make sure never to return 0.
The new gpg_error_from_syserror is robustness feature useful in cases
where you want to make sure that an error is returned even if
accidently ERRNO has not been set. For example:
foo (size_t n)
char *p = my_malloc (n);
return gpg_error_from_errno (errno);
bar (p, n);
return 0; /* Success. */
With a faulty my_malloc which does not set ERRNO on failure, this code
would falsely return success if my_malloc has failed. Replacing the
return gpg_error_from_syserror ();
solves the problem as the new function will return
GPG_ERR_MISSING_ERRNO in this case. It has also the advantage of
avoiding the need to include errno.h.
Commercial support contracts for GnuPG and related software are
available, and they help finance continued maintenance. g10 Code, a
Duesseldorf based company owned and headed by GnuPG's principal
author, is currently funding GnuPG development. We are always looking
for interesting development projects.
Werner Koch <wk at gnupg.org>
The GnuPG Experts http://g10code.com
Join the Fellowship and protect your Freedom! http://www.fsfe.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : /pipermail/attachments/20060914/312ab71a/attachment.pgp
More information about the Gnupg-announce