-
+ 6C4FAB042DB987C280EA86471C8549A167903CB11073D0B74A426DC78CE9E65A1B66FB2815722ACB069DF807506181548960E60C33EE27C64246672A8457F752
mpi/include/errors.h
(0 . 0)(1 . 89)
924 /* errors.h - erro code
925 * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
926 *
927 * This file is part of GNUPG.
928 *
929 * GNUPG is free software; you can redistribute it and/or modify
930 * it under the terms of the GNU General Public License as published by
931 * the Free Software Foundation; either version 3 of the License, or
932 * (at your option) any later version.
933 *
934 * GNUPG is distributed in the hope that it will be useful,
935 * but WITHOUT ANY WARRANTY; without even the implied warranty of
936 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
937 * GNU General Public License for more details.
938 *
939 * You should have received a copy of the GNU General Public License
940 * along with this program; if not, see <http://www.gnu.org/licenses/>.
941 */
942 #ifndef G10_ERRORS_H
943 #define G10_ERRORS_H
944
945 #define G10ERR_GENERAL 1
946 #define G10ERR_UNKNOWN_PACKET 2
947 #define G10ERR_UNKNOWN_VERSION 3 /* Unknown version (in packet) */
948 #define G10ERR_PUBKEY_ALGO 4 /* Unknown pubkey algorithm */
949 #define G10ERR_DIGEST_ALGO 5 /* Unknown digest algorithm */
950 #define G10ERR_BAD_PUBKEY 6 /* Bad public key */
951 #define G10ERR_BAD_SECKEY 7 /* Bad secret key */
952 #define G10ERR_BAD_SIGN 8 /* Bad signature */
953 #define G10ERR_NO_PUBKEY 9 /* public key not found */
954 #define G10ERR_CHECKSUM 10 /* checksum error */
955 #define G10ERR_BAD_PASS 11 /* Bad passphrase */
956 #define G10ERR_CIPHER_ALGO 12 /* Unknown cipher algorithm */
957 #define G10ERR_KEYRING_OPEN 13
958 #define G10ERR_INVALID_PACKET 14
959 #define G10ERR_INVALID_ARMOR 15
960 #define G10ERR_NO_USER_ID 16
961 #define G10ERR_NO_SECKEY 17 /* secret key not available */
962 #define G10ERR_WRONG_SECKEY 18 /* wrong seckey used */
963 #define G10ERR_UNSUPPORTED 19
964 #define G10ERR_BAD_KEY 20 /* bad (session) key */
965 #define G10ERR_READ_FILE 21
966 #define G10ERR_WRITE_FILE 22
967 #define G10ERR_COMPR_ALGO 23 /* Unknown compress algorithm */
968 #define G10ERR_OPEN_FILE 24
969 #define G10ERR_CREATE_FILE 25
970 #define G10ERR_PASSPHRASE 26 /* invalid passphrase */
971 #define G10ERR_NI_PUBKEY 27
972 #define G10ERR_NI_CIPHER 28
973 #define G10ERR_SIG_CLASS 29
974 #define G10ERR_BAD_MPI 30
975 #define G10ERR_RESOURCE_LIMIT 31
976 #define G10ERR_INV_KEYRING 32
977 #define G10ERR_TRUSTDB 33 /* a problem with the trustdb */
978 #define G10ERR_BAD_CERT 34 /* bad certicate */
979 #define G10ERR_INV_USER_ID 35
980 #define G10ERR_CLOSE_FILE 36
981 #define G10ERR_RENAME_FILE 37
982 #define G10ERR_DELETE_FILE 38
983 #define G10ERR_UNEXPECTED 39
984 #define G10ERR_TIME_CONFLICT 40
985 #define G10ERR_WR_PUBKEY_ALGO 41 /* unusabe pubkey algo */
986 #define G10ERR_FILE_EXISTS 42
987 #define G10ERR_WEAK_KEY 43 /* NOTE: hardcoded into the cipher modules */
988 #define G10ERR_WRONG_KEYLEN 44 /* NOTE: hardcoded into the cipher modules */
989 #define G10ERR_INV_ARG 45
990 #define G10ERR_BAD_URI 46 /* syntax error in URI */
991 #define G10ERR_INVALID_URI 47 /* e.g. unsupported scheme */
992 #define G10ERR_NETWORK 48 /* general network error */
993 #define G10ERR_UNKNOWN_HOST 49
994 #define G10ERR_SELFTEST_FAILED 50
995 #define G10ERR_NOT_ENCRYPTED 51
996 #define G10ERR_NOT_PROCESSED 52
997 #define G10ERR_UNU_PUBKEY 53
998 #define G10ERR_UNU_SECKEY 54
999 #define G10ERR_KEYSERVER 55
1000 #define G10ERR_CANCELED 56
1001 #define G10ERR_NO_CARD 57
1002 #define G10ERR_NO_DATA 58
1003
1004 #ifndef HAVE_STRERROR
1005 char *strerror (int n);
1006 #endif
1007
1008 #ifdef _WIN32
1009 const char * w32_strerror (int w32_errno);
1010 #endif
1011
1012 #endif /*G10_ERRORS_H*/