libgpg-error defines an error source for every
component of the GnuPG system. The error source part of an error
value is not well defined. As such it is mainly useful to improve the
diagnostic error message for the user.
If the error code part of an error value is
0, the whole error
value will be
0. In this case the error source part is of
The list of error sources that might occur in applications using Libgcrypt is:
libgcrypt, which is used by crypto engines to perform cryptographic operations.
libkbx, a library used by the crypto engines to manage local keyrings.
GPG_ERR_SOURCE_USER_1is the default for errors created with
gcry_error_from_errno, unless you define
GCRY_ERR_SOURCE_DEFAULTbefore including gcrypt.h.