-
+ 6C4FAB042DB987C280EA86471C8549A167903CB11073D0B74A426DC78CE9E65A1B66FB2815722ACB069DF807506181548960E60C33EE27C64246672A8457F752mpi/include/errors.h(0 . 0)(1 . 89)
1028 /* errors.h - erro code
1029 * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
1030 *
1031 * This file is part of GNUPG.
1032 *
1033 * GNUPG is free software; you can redistribute it and/or modify
1034 * it under the terms of the GNU General Public License as published by
1035 * the Free Software Foundation; either version 3 of the License, or
1036 * (at your option) any later version.
1037 *
1038 * GNUPG is distributed in the hope that it will be useful,
1039 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1040 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1041 * GNU General Public License for more details.
1042 *
1043 * You should have received a copy of the GNU General Public License
1044 * along with this program; if not, see <http://www.gnu.org/licenses/>.
1045 */
1046 #ifndef G10_ERRORS_H
1047 #define G10_ERRORS_H
1048
1049 #define G10ERR_GENERAL 1
1050 #define G10ERR_UNKNOWN_PACKET 2
1051 #define G10ERR_UNKNOWN_VERSION 3 /* Unknown version (in packet) */
1052 #define G10ERR_PUBKEY_ALGO 4 /* Unknown pubkey algorithm */
1053 #define G10ERR_DIGEST_ALGO 5 /* Unknown digest algorithm */
1054 #define G10ERR_BAD_PUBKEY 6 /* Bad public key */
1055 #define G10ERR_BAD_SECKEY 7 /* Bad secret key */
1056 #define G10ERR_BAD_SIGN 8 /* Bad signature */
1057 #define G10ERR_NO_PUBKEY 9 /* public key not found */
1058 #define G10ERR_CHECKSUM 10 /* checksum error */
1059 #define G10ERR_BAD_PASS 11 /* Bad passphrase */
1060 #define G10ERR_CIPHER_ALGO 12 /* Unknown cipher algorithm */
1061 #define G10ERR_KEYRING_OPEN 13
1062 #define G10ERR_INVALID_PACKET 14
1063 #define G10ERR_INVALID_ARMOR 15
1064 #define G10ERR_NO_USER_ID 16
1065 #define G10ERR_NO_SECKEY 17 /* secret key not available */
1066 #define G10ERR_WRONG_SECKEY 18 /* wrong seckey used */
1067 #define G10ERR_UNSUPPORTED 19
1068 #define G10ERR_BAD_KEY 20 /* bad (session) key */
1069 #define G10ERR_READ_FILE 21
1070 #define G10ERR_WRITE_FILE 22
1071 #define G10ERR_COMPR_ALGO 23 /* Unknown compress algorithm */
1072 #define G10ERR_OPEN_FILE 24
1073 #define G10ERR_CREATE_FILE 25
1074 #define G10ERR_PASSPHRASE 26 /* invalid passphrase */
1075 #define G10ERR_NI_PUBKEY 27
1076 #define G10ERR_NI_CIPHER 28
1077 #define G10ERR_SIG_CLASS 29
1078 #define G10ERR_BAD_MPI 30
1079 #define G10ERR_RESOURCE_LIMIT 31
1080 #define G10ERR_INV_KEYRING 32
1081 #define G10ERR_TRUSTDB 33 /* a problem with the trustdb */
1082 #define G10ERR_BAD_CERT 34 /* bad certicate */
1083 #define G10ERR_INV_USER_ID 35
1084 #define G10ERR_CLOSE_FILE 36
1085 #define G10ERR_RENAME_FILE 37
1086 #define G10ERR_DELETE_FILE 38
1087 #define G10ERR_UNEXPECTED 39
1088 #define G10ERR_TIME_CONFLICT 40
1089 #define G10ERR_WR_PUBKEY_ALGO 41 /* unusabe pubkey algo */
1090 #define G10ERR_FILE_EXISTS 42
1091 #define G10ERR_WEAK_KEY 43 /* NOTE: hardcoded into the cipher modules */
1092 #define G10ERR_WRONG_KEYLEN 44 /* NOTE: hardcoded into the cipher modules */
1093 #define G10ERR_INV_ARG 45
1094 #define G10ERR_BAD_URI 46 /* syntax error in URI */
1095 #define G10ERR_INVALID_URI 47 /* e.g. unsupported scheme */
1096 #define G10ERR_NETWORK 48 /* general network error */
1097 #define G10ERR_UNKNOWN_HOST 49
1098 #define G10ERR_SELFTEST_FAILED 50
1099 #define G10ERR_NOT_ENCRYPTED 51
1100 #define G10ERR_NOT_PROCESSED 52
1101 #define G10ERR_UNU_PUBKEY 53
1102 #define G10ERR_UNU_SECKEY 54
1103 #define G10ERR_KEYSERVER 55
1104 #define G10ERR_CANCELED 56
1105 #define G10ERR_NO_CARD 57
1106 #define G10ERR_NO_DATA 58
1107
1108 #ifndef HAVE_STRERROR
1109 char *strerror (int n);
1110 #endif
1111
1112 #ifdef _WIN32
1113 const char * w32_strerror (int w32_errno);
1114 #endif
1115
1116 #endif /*G10_ERRORS_H*/