1 /***************************************************************************
2                           tqslerrno.h  -  description
3                              -------------------
4     begin                : Tue May 28 2002
5     copyright            : (C) 2002 by ARRL
6     author               : Jon Bloom
7     email                : jbloom@arrl.org
8     revision             : $Id$
9  ***************************************************************************/
10 
11 #ifndef __TQSLERRNO_H
12 #define __TQSLERRNO_H
13 
14 /** \file
15   *  #tQSL_Error values
16 */
17 
18 #define TQSL_NO_ERROR 0		///< No error
19 #define TQSL_SYSTEM_ERROR 1	///< System Error
20 #define TQSL_OPENSSL_ERROR 2	///< Error in OpenSSL calls
21 #define TQSL_ADIF_ERROR 3	///< ADIF Errors
22 #define TQSL_CUSTOM_ERROR 4	///< Custom errors - output to tQSL_CustomError
23 #define TQSL_CABRILLO_ERROR 5	///< Cabrillo handler error
24 #define TQSL_OPENSSL_VERSION_ERROR 6	///< OpenSSL version obsolete
25 #define TQSL_ERROR_ENUM_BASE 16		///< Base for enumerated errors
26 #define TQSL_ALLOC_ERROR 16	///< Memory allocation error
27 #define TQSL_RANDOM_ERROR 17	///< Error initializing random number generator
28 #define TQSL_ARGUMENT_ERROR 18	///< Invalid arguments
29 #define TQSL_OPERATOR_ABORT 19	///< Aborted by operator
30 #define TQSL_NOKEY_ERROR 20	///< No key available
31 #define TQSL_BUFFER_ERROR 21	///< Insufficient buffer space
32 #define TQSL_INVALID_DATE 22	///< Date string invalid
33 #define TQSL_SIGNINIT_ERROR 23	///< Error initializing signing routine
34 #define TQSL_PASSWORD_ERROR 24	///< Invalid password
35 #define TQSL_EXPECTED_NAME 25	///< Name expected but not supplied
36 #define TQSL_NAME_EXISTS 26	///< Entity name exists already
37 #define TQSL_NAME_NOT_FOUND 27	///< Entity name does not exist
38 #define TQSL_INVALID_TIME 28	///< Time format is invalid
39 #define TQSL_CERT_DATE_MISMATCH 29	///< Certificate date mismatch
40 #define TQSL_PROVIDER_NOT_FOUND 30	///< Certificate provider unknown
41 #define TQSL_CERT_KEY_ONLY 31		///< No signed public key is installed
42 #define TQSL_CONFIG_ERROR 32	///< There is an error in the configuration file
43 #define TQSL_CERT_NOT_FOUND 33	///< The certificate could not be found
44 #define TQSL_PKCS12_ERROR 34	///< There is an error parsing the .p12 file
45 #define TQSL_CERT_TYPE_ERROR 35	///< The certificate type is invalid
46 #define TQSL_DATE_OUT_OF_RANGE 36	///< The date is out of the valid range
47 #define TQSL_DUPLICATE_QSO 37	///< This QSO is a duplicate
48 #define TQSL_DB_ERROR 38	///< The dupe database could not be accessed
49 #define TQSL_LOCATION_NOT_FOUND 39	///< The station location is invalid
50 #define TQSL_CALL_NOT_FOUND 40	///< The callsign could not be located
51 #define TQSL_CONFIG_SYNTAX_ERROR 41	///< The config file has a syntax error
52 #define TQSL_FILE_SYSTEM_ERROR 42	///< There was a file system I/O error
53 #define TQSL_FILE_SYNTAX_ERROR 43	///< The file format is invalid
54 #define TQSL_CERT_ERROR 44	///< Callsign certificate could not be installed
55 
56 #endif /* __TQSLERRNO_H */
57