/* gpg-error.h or gpgrt.h - Common code for GnuPG and others. -*- c -*-
* Copyright (C) 2001-2018 g10 Code GmbH
* This file is part of libgpg-error (aka libgpgrt).
* libgpg-error is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
* libgpg-error is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, see <https://www.gnu.org/licenses/>.
* SPDX-License-Identifier: LGPL-2.1+
* Do not edit. Generated from gpg-error.h.in.
/* The GnuPG project consists of many components. Error codes are
* exchanged between all components. The common error codes and their
* user-presentable descriptions are kept into a shared library to
* allow adding new error codes and components without recompiling any
* of the other components. In addition to error codes this library
* also features several other groups of functions which are common to
* all GnuPG components. They may be used by independet project as
* well. The interfaces will not change in a backward incompatible way.
* An error code together with an error source build up an error
* value. As the error value is been passed from one component to
* another, it preserves the information about the source and nature
* A component of the GnuPG project can define the following macros to
* tune the behaviour of the library:
* GPG_ERR_SOURCE_DEFAULT: Define to an error source of type
* gpg_err_source_t to make that source the default for gpg_error().
* Otherwise GPG_ERR_SOURCE_UNKNOWN is used as default.
* GPG_ERR_ENABLE_GETTEXT_MACROS: Define to provide macros to map the
* internal gettext API to standard names. This has only an effect on
* GPGRT_ENABLE_ES_MACROS: Define to provide "es_" macros for the
* GPGRT_ENABLE_LOG_MACROS: Define to provide short versions of the
* GPGRT_ENABLE_ARGPARSE_MACROS: Needs to be defined to provide the
* mandatory macros of the argparse interface.
/* The version string of this header. */
#define GPG_ERROR_VERSION "1.31"
#define GPGRT_VERSION "1.31"
/* The version number of this header. */
#define GPG_ERROR_VERSION_NUMBER 0x011f00
#define GPGRT_VERSION_NUMBER 0x011f00
# define GPG_ERR_INLINE __inline__
#elif defined(_MSC_VER) && _MSC_VER >= 1300
# define GPG_ERR_INLINE __inline
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
# define GPG_ERR_INLINE inline
#if 0 /* just to make Emacs auto-indent happy */
/* The error source type gpg_err_source_t.
* Where as the Poo out of a welle small
* Taketh his firste springing and his sours.
/* Only use free slots, never change or reorder the existing
GPG_ERR_SOURCE_UNKNOWN = 0,
GPG_ERR_SOURCE_GCRYPT = 1,
GPG_ERR_SOURCE_GPGSM = 3,
GPG_ERR_SOURCE_GPGAGENT = 4,
GPG_ERR_SOURCE_PINENTRY = 5,
GPG_ERR_SOURCE_GPGME = 7,
GPG_ERR_SOURCE_KEYBOX = 8,
GPG_ERR_SOURCE_DIRMNGR = 10,
GPG_ERR_SOURCE_GSTI = 11,
GPG_ERR_SOURCE_KLEO = 13,
GPG_ERR_SOURCE_ASSUAN = 15,
GPG_ERR_SOURCE_USER_1 = 32,
GPG_ERR_SOURCE_USER_2 = 33,
GPG_ERR_SOURCE_USER_3 = 34,
GPG_ERR_SOURCE_USER_4 = 35,
/* This is one more than the largest allowed entry. */
/* The error code type gpg_err_code_t. */
/* Only use free slots, never change or reorder the existing
GPG_ERR_UNKNOWN_PACKET = 2,
GPG_ERR_UNKNOWN_VERSION = 3,
GPG_ERR_BAD_SIGNATURE = 8,
GPG_ERR_BAD_PASSPHRASE = 11,
GPG_ERR_CIPHER_ALGO = 12,
GPG_ERR_KEYRING_OPEN = 13,
GPG_ERR_WRONG_SECKEY = 18,
GPG_ERR_NO_ENCODING_METHOD = 22,
GPG_ERR_NO_ENCRYPTION_SCHEME = 23,
GPG_ERR_NO_SIGNATURE_SCHEME = 24,
GPG_ERR_VALUE_NOT_FOUND = 28,
GPG_ERR_INV_PASSPHRASE = 31,
GPG_ERR_RESOURCE_LIMIT = 33,
GPG_ERR_INV_KEYRING = 34,
GPG_ERR_INV_USER_ID = 37,
GPG_ERR_TIME_CONFLICT = 39,
GPG_ERR_WRONG_PUBKEY_ALGO = 41,
GPG_ERR_TRIBUTE_TO_D_A = 42,
GPG_ERR_UNKNOWN_HOST = 49,
GPG_ERR_SELFTEST_FAILED = 50,
GPG_ERR_NOT_ENCRYPTED = 51,
GPG_ERR_NOT_PROCESSED = 52,
GPG_ERR_UNUSABLE_PUBKEY = 53,
GPG_ERR_UNUSABLE_SECKEY = 54,
GPG_ERR_BAD_CERT_CHAIN = 56,
GPG_ERR_MISSING_CERT = 57,
GPG_ERR_NOT_SUPPORTED = 60,
GPG_ERR_NOT_IMPLEMENTED = 69,
GPG_ERR_INV_CIPHER_MODE = 71,
GPG_ERR_INCOMPLETE_LINE = 75,
GPG_ERR_INV_RESPONSE = 76,
GPG_ERR_ASSUAN_SERVER_FAULT = 80,
GPG_ERR_INV_SESSION_KEY = 82,
GPG_ERR_UNSUPPORTED_ALGORITHM = 84,
GPG_ERR_NO_PIN_ENTRY = 85,
GPG_ERR_INV_PARAMETER = 90,
GPG_ERR_CERT_REVOKED = 94,
GPG_ERR_NO_CRL_KNOWN = 95,
GPG_ERR_CRL_TOO_OLD = 96,
GPG_ERR_LINE_TOO_LONG = 97,
GPG_ERR_NOT_TRUSTED = 98,
GPG_ERR_BAD_CA_CERT = 100,
GPG_ERR_CERT_EXPIRED = 101,
GPG_ERR_CERT_TOO_YOUNG = 102,
GPG_ERR_UNSUPPORTED_CERT = 103,
GPG_ERR_UNKNOWN_SEXP = 104,
GPG_ERR_UNSUPPORTED_PROTECTION = 105,
GPG_ERR_CORRUPTED_PROTECTION = 106,
GPG_ERR_AMBIGUOUS_NAME = 107,
GPG_ERR_CARD_RESET = 109,
GPG_ERR_CARD_REMOVED = 110,
GPG_ERR_CARD_NOT_PRESENT = 112,
GPG_ERR_NO_PKCS15_APP = 113,
GPG_ERR_NOT_CONFIRMED = 114,
GPG_ERR_CONFIGURATION = 115,
GPG_ERR_NO_POLICY_MATCH = 116,
GPG_ERR_NO_SCDAEMON = 119,
GPG_ERR_UNSUPPORTED_PROTOCOL = 121,
GPG_ERR_BAD_PIN_METHOD = 122,
GPG_ERR_CARD_NOT_INITIALIZED = 123,
GPG_ERR_UNSUPPORTED_OPERATION = 124,
GPG_ERR_WRONG_KEY_USAGE = 125,
GPG_ERR_NOTHING_FOUND = 126,
GPG_ERR_WRONG_BLOB_TYPE = 127,
GPG_ERR_MISSING_VALUE = 128,
GPG_ERR_PIN_BLOCKED = 130,
GPG_ERR_USE_CONDITIONS = 131,
GPG_ERR_PIN_NOT_SYNCED = 132,
GPG_ERR_ELEMENT_NOT_FOUND = 136,
GPG_ERR_IDENTIFIER_NOT_FOUND = 137,
GPG_ERR_INV_LENGTH = 139,
GPG_ERR_INV_KEYINFO = 140,
GPG_ERR_UNEXPECTED_TAG = 141,
GPG_ERR_NOT_DER_ENCODED = 142,
GPG_ERR_NO_CMS_OBJ = 143,
GPG_ERR_INV_CMS_OBJ = 144,
GPG_ERR_UNKNOWN_CMS_OBJ = 145,
GPG_ERR_UNSUPPORTED_CMS_OBJ = 146,
GPG_ERR_UNSUPPORTED_ENCODING = 147,
GPG_ERR_UNSUPPORTED_CMS_VERSION = 148,
GPG_ERR_UNKNOWN_ALGORITHM = 149,
GPG_ERR_INV_ENGINE = 150,
GPG_ERR_PUBKEY_NOT_TRUSTED = 151,
GPG_ERR_DECRYPT_FAILED = 152,
GPG_ERR_KEY_EXPIRED = 153,
GPG_ERR_SIG_EXPIRED = 154,
GPG_ERR_ENCODING_PROBLEM = 155,
GPG_ERR_MISSING_ACTION = 158,
GPG_ERR_MODULE_NOT_FOUND = 159,
GPG_ERR_INV_OID_STRING = 160,
GPG_ERR_INV_CRL_OBJ = 162,
GPG_ERR_UNSUPPORTED_CRL_VERSION = 163,
GPG_ERR_INV_CERT_OBJ = 164,
GPG_ERR_UNKNOWN_NAME = 165,
GPG_ERR_LOCALE_PROBLEM = 166,
GPG_ERR_NOT_LOCKED = 167,
GPG_ERR_PROTOCOL_VIOLATION = 168,
GPG_ERR_INV_REQUEST = 170,
GPG_ERR_UNKNOWN_EXTN = 171,
GPG_ERR_UNKNOWN_CRIT_EXTN = 172,
GPG_ERR_UNKNOWN_OPTION = 174,
GPG_ERR_UNKNOWN_COMMAND = 175,
GPG_ERR_NOT_OPERATIONAL = 176,
GPG_ERR_NO_PASSPHRASE = 177,
GPG_ERR_NOT_ENABLED = 179,
GPG_ERR_MISSING_KEY = 181,
GPG_ERR_LIMIT_REACHED = 183,
GPG_ERR_NOT_INITIALIZED = 184,
GPG_ERR_MISSING_ISSUER_CERT = 185,
GPG_ERR_NO_KEYSERVER = 186,
GPG_ERR_UNKNOWN_CURVE = 188,
GPG_ERR_NO_CRYPT_CTX = 191,
GPG_ERR_WRONG_CRYPT_CTX = 192,
GPG_ERR_BAD_CRYPT_CTX = 193,
GPG_ERR_CRYPT_CTX_CONFLICT = 194,
GPG_ERR_BROKEN_PUBKEY = 195,
GPG_ERR_BROKEN_SECKEY = 196,
GPG_ERR_FULLY_CANCELED = 198,
GPG_ERR_UNFINISHED = 199,
GPG_ERR_BUFFER_TOO_SHORT = 200,
GPG_ERR_SEXP_INV_LEN_SPEC = 201,
GPG_ERR_SEXP_STRING_TOO_LONG = 202,
GPG_ERR_SEXP_UNMATCHED_PAREN = 203,
GPG_ERR_SEXP_NOT_CANONICAL = 204,
GPG_ERR_SEXP_BAD_CHARACTER = 205,
GPG_ERR_SEXP_BAD_QUOTATION = 206,
GPG_ERR_SEXP_ZERO_PREFIX = 207,
GPG_ERR_SEXP_NESTED_DH = 208,
GPG_ERR_SEXP_UNMATCHED_DH = 209,
GPG_ERR_SEXP_UNEXPECTED_PUNC = 210,
GPG_ERR_SEXP_BAD_HEX_CHAR = 211,
GPG_ERR_SEXP_ODD_HEX_NUMBERS = 212,
GPG_ERR_SEXP_BAD_OCT_CHAR = 213,
GPG_ERR_SUBKEYS_EXP_OR_REV = 217,
GPG_ERR_DB_CORRUPTED = 218,
GPG_ERR_SERVER_FAILED = 219,
GPG_ERR_LEGACY_KEY = 222,
GPG_ERR_REQUEST_TOO_SHORT = 223,
GPG_ERR_REQUEST_TOO_LONG = 224,
GPG_ERR_OBJ_TERM_STATE = 225,
GPG_ERR_NO_CERT_CHAIN = 226,
GPG_ERR_CERT_TOO_LARGE = 227,
GPG_ERR_INV_RECORD = 228,
GPG_ERR_UNEXPECTED_MSG = 230,
GPG_ERR_COMPR_FAILED = 231,
GPG_ERR_WOULD_WRAP = 232,
GPG_ERR_FATAL_ALERT = 233,
GPG_ERR_MISSING_CLIENT_CERT = 235,
GPG_ERR_CLOSE_NOTIFY = 236,
GPG_ERR_TICKET_EXPIRED = 237,
GPG_ERR_BAD_TICKET = 238,
GPG_ERR_UNKNOWN_IDENTITY = 239,
GPG_ERR_BAD_HS_CERT = 240,
GPG_ERR_BAD_HS_CERT_REQ = 241,
GPG_ERR_BAD_HS_CERT_VER = 242,
GPG_ERR_BAD_HS_CHANGE_CIPHER = 243,
GPG_ERR_BAD_HS_CLIENT_HELLO = 244,
GPG_ERR_BAD_HS_SERVER_HELLO = 245,
GPG_ERR_BAD_HS_SERVER_HELLO_DONE = 246,
GPG_ERR_BAD_HS_FINISHED = 247,
GPG_ERR_BAD_HS_SERVER_KEX = 248,
GPG_ERR_BAD_HS_CLIENT_KEX = 249,
GPG_ERR_BOGUS_STRING = 250,
GPG_ERR_KEY_DISABLED = 252,
GPG_ERR_KEY_ON_CARD = 253,
GPG_ERR_INV_LOCK_OBJ = 254,
GPG_ERR_ASS_GENERAL = 257,
GPG_ERR_ASS_ACCEPT_FAILED = 258,
GPG_ERR_ASS_CONNECT_FAILED = 259,
GPG_ERR_ASS_INV_RESPONSE = 260,
GPG_ERR_ASS_INV_VALUE = 261,
GPG_ERR_ASS_INCOMPLETE_LINE = 262,
GPG_ERR_ASS_LINE_TOO_LONG = 263,
GPG_ERR_ASS_NESTED_COMMANDS = 264,
GPG_ERR_ASS_NO_DATA_CB = 265,
GPG_ERR_ASS_NO_INQUIRE_CB = 266,
GPG_ERR_ASS_NOT_A_SERVER = 267,
GPG_ERR_ASS_NOT_A_CLIENT = 268,
GPG_ERR_ASS_SERVER_START = 269,
GPG_ERR_ASS_READ_ERROR = 270,
GPG_ERR_ASS_WRITE_ERROR = 271,
GPG_ERR_ASS_TOO_MUCH_DATA = 273,
GPG_ERR_ASS_UNEXPECTED_CMD = 274,
GPG_ERR_ASS_UNKNOWN_CMD = 275,
GPG_ERR_ASS_SYNTAX = 276,
GPG_ERR_ASS_CANCELED = 277,
GPG_ERR_ASS_NO_INPUT = 278,
GPG_ERR_ASS_NO_OUTPUT = 279,
GPG_ERR_ASS_PARAMETER = 280,
GPG_ERR_ASS_UNKNOWN_INQUIRE = 281,
GPG_ERR_ENGINE_TOO_OLD = 300,
GPG_ERR_WINDOW_TOO_SMALL = 301,
GPG_ERR_WINDOW_TOO_LARGE = 302,
GPG_ERR_MISSING_ENVVAR = 303,
GPG_ERR_USER_ID_EXISTS = 304,
GPG_ERR_NAME_EXISTS = 305,
GPG_ERR_UNKNOWN_FLAG = 309,
GPG_ERR_ALREADY_FETCHED = 311,
GPG_ERR_WRONG_NAME = 313,
GPG_ERR_SYSTEM_BUG = 666,
GPG_ERR_DNS_UNKNOWN = 711,
GPG_ERR_DNS_SECTION = 712,
GPG_ERR_DNS_ADDRESS = 713,
GPG_ERR_DNS_NO_QUERY = 714,
GPG_ERR_DNS_NO_ANSWER = 715,
GPG_ERR_DNS_CLOSED = 716,
GPG_ERR_DNS_VERIFY = 717,
GPG_ERR_DNS_TIMEOUT = 718,
GPG_ERR_LDAP_GENERAL = 721,
GPG_ERR_LDAP_ATTR_GENERAL = 722,
GPG_ERR_LDAP_NAME_GENERAL = 723,
GPG_ERR_LDAP_SECURITY_GENERAL = 724,
GPG_ERR_LDAP_SERVICE_GENERAL = 725,
GPG_ERR_LDAP_UPDATE_GENERAL = 726,
GPG_ERR_LDAP_E_GENERAL = 727,
GPG_ERR_LDAP_X_GENERAL = 728,
GPG_ERR_LDAP_OTHER_GENERAL = 729,
GPG_ERR_LDAP_X_CONNECTING = 750,
GPG_ERR_LDAP_REFERRAL_LIMIT = 751,
GPG_ERR_LDAP_CLIENT_LOOP = 752,
GPG_ERR_LDAP_NO_RESULTS = 754,
GPG_ERR_LDAP_CONTROL_NOT_FOUND = 755,
GPG_ERR_LDAP_NOT_SUPPORTED = 756,
GPG_ERR_LDAP_CONNECT = 757,
GPG_ERR_LDAP_NO_MEMORY = 758,
GPG_ERR_LDAP_PARAM = 759,
GPG_ERR_LDAP_USER_CANCELLED = 760,
GPG_ERR_LDAP_FILTER = 761,
GPG_ERR_LDAP_AUTH_UNKNOWN = 762,
GPG_ERR_LDAP_TIMEOUT = 763,
GPG_ERR_LDAP_DECODING = 764,
GPG_ERR_LDAP_ENCODING = 765,
GPG_ERR_LDAP_LOCAL = 766,
GPG_ERR_LDAP_SERVER_DOWN = 767,
GPG_ERR_LDAP_SUCCESS = 768,
GPG_ERR_LDAP_OPERATIONS = 769,
GPG_ERR_LDAP_PROTOCOL = 770,
GPG_ERR_LDAP_TIMELIMIT = 771,
GPG_ERR_LDAP_SIZELIMIT = 772,
GPG_ERR_LDAP_COMPARE_FALSE = 773,
GPG_ERR_LDAP_COMPARE_TRUE = 774,
GPG_ERR_LDAP_UNSUPPORTED_AUTH = 775,
GPG_ERR_LDAP_STRONG_AUTH_RQRD = 776,
GPG_ERR_LDAP_PARTIAL_RESULTS = 777,
GPG_ERR_LDAP_REFERRAL = 778,
GPG_ERR_LDAP_ADMINLIMIT = 779,
GPG_ERR_LDAP_UNAVAIL_CRIT_EXTN = 780,
GPG_ERR_LDAP_CONFIDENT_RQRD = 781,
GPG_ERR_LDAP_SASL_BIND_INPROG = 782,
GPG_ERR_LDAP_NO_SUCH_ATTRIBUTE = 784,
GPG_ERR_LDAP_UNDEFINED_TYPE = 785,
GPG_ERR_LDAP_BAD_MATCHING = 786,
GPG_ERR_LDAP_CONST_VIOLATION = 787,
GPG_ERR_LDAP_TYPE_VALUE_EXISTS = 788,
GPG_ERR_LDAP_INV_SYNTAX = 789,
GPG_ERR_LDAP_NO_SUCH_OBJ = 800,
GPG_ERR_LDAP_ALIAS_PROBLEM = 801,
GPG_ERR_LDAP_INV_DN_SYNTAX = 802,
GPG_ERR_LDAP_IS_LEAF = 803,
GPG_ERR_LDAP_ALIAS_DEREF = 804,
GPG_ERR_LDAP_X_PROXY_AUTH_FAIL = 815,
GPG_ERR_LDAP_BAD_AUTH = 816,
GPG_ERR_LDAP_INV_CREDENTIALS = 817,
GPG_ERR_LDAP_INSUFFICIENT_ACC = 818,
GPG_ERR_LDAP_UNAVAILABLE = 820,