mpi-genesis 1
mpi-genesis 2 * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
mpi-genesis 3 *
mpi-genesis 4 * This file is part of GNUPG.
mpi-genesis 5 *
mpi-genesis 6 * GNUPG is free software; you can redistribute it and/or modify
mpi-genesis 7 * it under the terms of the GNU General Public License as published by
mpi-genesis 8 * the Free Software Foundation; either version 3 of the License, or
mpi-genesis 9 * (at your option) any later version.
mpi-genesis 10 *
mpi-genesis 11 * GNUPG is distributed in the hope that it will be useful,
mpi-genesis 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
mpi-genesis 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
mpi-genesis 14 * GNU General Public License for more details.
mpi-genesis 15 *
mpi-genesis 16 * You should have received a copy of the GNU General Public License
mpi-genesis 17 * along with this program; if not, see <http:
mpi-genesis 18 */
mpi-genesis 19 #ifndef G10_ERRORS_H
mpi-genesis 20 #define G10_ERRORS_H
mpi-genesis 21
mpi-genesis 22 #define G10ERR_GENERAL 1
mpi-genesis 23 #define G10ERR_UNKNOWN_PACKET 2
mpi-genesis 24 #define G10ERR_UNKNOWN_VERSION 3 /* Unknown version (in packet) */
mpi-genesis 25 #define G10ERR_PUBKEY_ALGO 4 /* Unknown pubkey algorithm */
mpi-genesis 26 #define G10ERR_DIGEST_ALGO 5 /* Unknown digest algorithm */
mpi-genesis 27 #define G10ERR_BAD_PUBKEY 6 /* Bad public key */
mpi-genesis 28 #define G10ERR_BAD_SECKEY 7 /* Bad secret key */
mpi-genesis 29 #define G10ERR_BAD_SIGN 8 /* Bad signature */
mpi-genesis 30 #define G10ERR_NO_PUBKEY 9 /* public key not found */
mpi-genesis 31 #define G10ERR_CHECKSUM 10 /* checksum error */
mpi-genesis 32 #define G10ERR_BAD_PASS 11 /* Bad passphrase */
mpi-genesis 33 #define G10ERR_CIPHER_ALGO 12 /* Unknown cipher algorithm */
mpi-genesis 34 #define G10ERR_KEYRING_OPEN 13
mpi-genesis 35 #define G10ERR_INVALID_PACKET 14
mpi-genesis 36 #define G10ERR_INVALID_ARMOR 15
mpi-genesis 37 #define G10ERR_NO_USER_ID 16
mpi-genesis 38 #define G10ERR_NO_SECKEY 17 /* secret key not available */
mpi-genesis 39 #define G10ERR_WRONG_SECKEY 18 /* wrong seckey used */
mpi-genesis 40 #define G10ERR_UNSUPPORTED 19
mpi-genesis 41 #define G10ERR_BAD_KEY 20 /* bad (session) key */
mpi-genesis 42 #define G10ERR_READ_FILE 21
mpi-genesis 43 #define G10ERR_WRITE_FILE 22
mpi-genesis 44 #define G10ERR_COMPR_ALGO 23 /* Unknown compress algorithm */
mpi-genesis 45 #define G10ERR_OPEN_FILE 24
mpi-genesis 46 #define G10ERR_CREATE_FILE 25
mpi-genesis 47 #define G10ERR_PASSPHRASE 26 /* invalid passphrase */
mpi-genesis 48 #define G10ERR_NI_PUBKEY 27
mpi-genesis 49 #define G10ERR_NI_CIPHER 28
mpi-genesis 50 #define G10ERR_SIG_CLASS 29
mpi-genesis 51 #define G10ERR_BAD_MPI 30
mpi-genesis 52 #define G10ERR_RESOURCE_LIMIT 31
mpi-genesis 53 #define G10ERR_INV_KEYRING 32
mpi-genesis 54 #define G10ERR_TRUSTDB 33 /* a problem with the trustdb */
mpi-genesis 55 #define G10ERR_BAD_CERT 34 /* bad certicate */
mpi-genesis 56 #define G10ERR_INV_USER_ID 35
mpi-genesis 57 #define G10ERR_CLOSE_FILE 36
mpi-genesis 58 #define G10ERR_RENAME_FILE 37
mpi-genesis 59 #define G10ERR_DELETE_FILE 38
mpi-genesis 60 #define G10ERR_UNEXPECTED 39
mpi-genesis 61 #define G10ERR_TIME_CONFLICT 40
mpi-genesis 62 #define G10ERR_WR_PUBKEY_ALGO 41 /* unusabe pubkey algo */
mpi-genesis 63 #define G10ERR_FILE_EXISTS 42
mpi-genesis 64 #define G10ERR_WEAK_KEY 43 /* NOTE: hardcoded into the cipher modules */
mpi-genesis 65 #define G10ERR_WRONG_KEYLEN 44 /* NOTE: hardcoded into the cipher modules */
mpi-genesis 66 #define G10ERR_INV_ARG 45
mpi-genesis 67 #define G10ERR_BAD_URI 46 /* syntax error in URI */
mpi-genesis 68 #define G10ERR_INVALID_URI 47 /* e.g. unsupported scheme */
mpi-genesis 69 #define G10ERR_NETWORK 48 /* general network error */
mpi-genesis 70 #define G10ERR_UNKNOWN_HOST 49
mpi-genesis 71 #define G10ERR_SELFTEST_FAILED 50
mpi-genesis 72 #define G10ERR_NOT_ENCRYPTED 51
mpi-genesis 73 #define G10ERR_NOT_PROCESSED 52
mpi-genesis 74 #define G10ERR_UNU_PUBKEY 53
mpi-genesis 75 #define G10ERR_UNU_SECKEY 54
mpi-genesis 76 #define G10ERR_KEYSERVER 55
mpi-genesis 77 #define G10ERR_CANCELED 56
mpi-genesis 78 #define G10ERR_NO_CARD 57
mpi-genesis 79 #define G10ERR_NO_DATA 58
mpi-genesis 80
mpi-genesis 81 #ifndef HAVE_STRERROR
mpi-genesis 82 char *strerror (int n);
mpi-genesis 83 #endif
mpi-genesis 84
mpi-genesis 85 #ifdef _WIN32
mpi-genesis 86 const char * w32_strerror (int w32_errno);
mpi-genesis 87 #endif
mpi-genesis 88
mpi-genesis 89 #endif /*G10_ERRORS_H*/