1997-11-18 15:06:00 +01:00
|
|
|
/* errors.h - erro code
|
2001-04-28 20:53:00 +02:00
|
|
|
* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
1997-11-18 15:06:00 +01:00
|
|
|
*
|
1998-06-16 17:13:28 +02:00
|
|
|
* This file is part of GNUPG.
|
1997-11-18 15:06:00 +01:00
|
|
|
*
|
1998-06-16 17:13:28 +02:00
|
|
|
* GNUPG is free software; you can redistribute it and/or modify
|
1997-11-18 15:06:00 +01:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
1998-06-16 17:13:28 +02:00
|
|
|
* GNUPG is distributed in the hope that it will be useful,
|
1997-11-18 15:06:00 +01:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
#ifndef G10_ERRORS_H
|
|
|
|
#define G10_ERRORS_H
|
|
|
|
|
|
|
|
#define G10ERR_GENERAL 1
|
|
|
|
#define G10ERR_UNKNOWN_PACKET 2
|
|
|
|
#define G10ERR_UNKNOWN_VERSION 3 /* Unknown version (in packet) */
|
|
|
|
#define G10ERR_PUBKEY_ALGO 4 /* Unknown pubkey algorithm */
|
|
|
|
#define G10ERR_DIGEST_ALGO 5 /* Unknown digest algorithm */
|
|
|
|
#define G10ERR_BAD_PUBKEY 6 /* Bad public key */
|
|
|
|
#define G10ERR_BAD_SECKEY 7 /* Bad secret key */
|
|
|
|
#define G10ERR_BAD_SIGN 8 /* Bad signature */
|
|
|
|
#define G10ERR_NO_PUBKEY 9 /* public key not found */
|
|
|
|
#define G10ERR_CHECKSUM 10 /* checksum error */
|
|
|
|
#define G10ERR_BAD_PASS 11 /* Bad passphrase */
|
|
|
|
#define G10ERR_CIPHER_ALGO 12 /* Unknown cipher algorithm */
|
|
|
|
#define G10ERR_KEYRING_OPEN 13
|
|
|
|
#define G10ERR_INVALID_PACKET 14
|
1998-07-06 12:23:57 +02:00
|
|
|
#define G10ERR_INVALID_ARMOR 15
|
1997-11-18 15:06:00 +01:00
|
|
|
#define G10ERR_NO_USER_ID 16
|
|
|
|
#define G10ERR_NO_SECKEY 17 /* secret key not available */
|
|
|
|
#define G10ERR_WRONG_SECKEY 18 /* wrong seckey used */
|
|
|
|
#define G10ERR_UNSUPPORTED 19
|
|
|
|
#define G10ERR_BAD_KEY 20 /* bad (session) key */
|
|
|
|
#define G10ERR_READ_FILE 21
|
|
|
|
#define G10ERR_WRITE_FILE 22
|
|
|
|
#define G10ERR_COMPR_ALGO 23 /* Unknown compress algorithm */
|
|
|
|
#define G10ERR_OPEN_FILE 24
|
|
|
|
#define G10ERR_CREATE_FILE 25
|
|
|
|
#define G10ERR_PASSPHRASE 26 /* invalid passphrase */
|
|
|
|
#define G10ERR_NI_PUBKEY 27
|
|
|
|
#define G10ERR_NI_CIPHER 28
|
1997-12-01 11:33:23 +01:00
|
|
|
#define G10ERR_SIG_CLASS 29
|
1997-12-09 13:46:23 +01:00
|
|
|
#define G10ERR_BAD_MPI 30
|
1997-12-12 13:03:58 +01:00
|
|
|
#define G10ERR_RESOURCE_LIMIT 31
|
|
|
|
#define G10ERR_INV_KEYRING 32
|
1998-01-12 11:18:17 +01:00
|
|
|
#define G10ERR_TRUSTDB 33 /* a problem with the trustdb */
|
1998-01-16 22:15:24 +01:00
|
|
|
#define G10ERR_BAD_CERT 34 /* bad certicate */
|
1998-01-26 23:09:01 +01:00
|
|
|
#define G10ERR_INV_USER_ID 35
|
1998-02-11 04:25:44 +01:00
|
|
|
#define G10ERR_CLOSE_FILE 36
|
|
|
|
#define G10ERR_RENAME_FILE 37
|
|
|
|
#define G10ERR_DELETE_FILE 38
|
1998-03-09 22:44:06 +01:00
|
|
|
#define G10ERR_UNEXPECTED 39
|
1998-03-19 16:27:29 +01:00
|
|
|
#define G10ERR_TIME_CONFLICT 40
|
1998-04-08 21:49:02 +02:00
|
|
|
#define G10ERR_WR_PUBKEY_ALGO 41 /* unusabe pubkey algo */
|
1998-08-11 19:29:34 +02:00
|
|
|
#define G10ERR_FILE_EXISTS 42
|
1999-01-12 11:20:24 +01:00
|
|
|
#define G10ERR_WEAK_KEY 43 /* NOTE: hardcoded into the cipher modules */
|
|
|
|
#define G10ERR_WRONG_KEYLEN 44 /* NOTE: hardcoded into the cipher modules */
|
|
|
|
#define G10ERR_INV_ARG 45
|
|
|
|
#define G10ERR_BAD_URI 46 /* syntax error in URI */
|
|
|
|
#define G10ERR_INVALID_URI 47 /* e.g. unsupported scheme */
|
1999-01-13 12:51:47 +01:00
|
|
|
#define G10ERR_NETWORK 48 /* general network error */
|
1999-01-16 09:29:29 +01:00
|
|
|
#define G10ERR_UNKNOWN_HOST 49
|
1999-01-17 11:06:03 +01:00
|
|
|
#define G10ERR_SELFTEST_FAILED 50
|
1999-04-26 17:53:01 +02:00
|
|
|
#define G10ERR_NOT_ENCRYPTED 51
|
1999-10-04 21:27:02 +02:00
|
|
|
#define G10ERR_NOT_PROCESSED 52
|
2001-03-03 17:17:55 +01:00
|
|
|
#define G10ERR_UNU_PUBKEY 53
|
|
|
|
#define G10ERR_UNU_SECKEY 54
|
2001-12-27 21:48:05 +01:00
|
|
|
#define G10ERR_KEYSERVER 55
|
2001-03-03 17:17:55 +01:00
|
|
|
|
1998-05-13 19:53:36 +02:00
|
|
|
|
|
|
|
#ifndef HAVE_STRERROR
|
|
|
|
char *strerror( int n );
|
|
|
|
#endif
|
|
|
|
|
1997-11-18 15:06:00 +01:00
|
|
|
#endif /*G10_ERRORS_H*/
|