*** empty log message ***
[gnutls.git] / lib / gnutls_errors_int.h
blob424fb4798a6f5f7ff4c92151de7093da916b001d
1 /* Gnutls error codes. The mapping to a TLS alert is also shown in
2 * comments.
3 */
5 #define GNUTLS_E_SUCCESS 0
6 #define GNUTLS_E_UNKNOWN_CIPHER -2
7 #define GNUTLS_E_UNKNOWN_COMPRESSION_ALGORITHM -3
8 #define GNUTLS_E_UNKNOWN_MAC_ALGORITHM -4
9 #define GNUTLS_E_UNKNOWN_ERROR -5
10 #define GNUTLS_E_UNKNOWN_CIPHER_TYPE -6
11 #define GNUTLS_E_LARGE_PACKET -7
12 #define GNUTLS_E_UNSUPPORTED_VERSION_PACKET -8 /* GNUTLS_A_PROTOCOL_VERSION */
13 #define GNUTLS_E_UNEXPECTED_PACKET_LENGTH -9 /* GNUTLS_A_RECORD_OVERFLOW */
14 #define GNUTLS_E_INVALID_SESSION -10
15 #define GNUTLS_E_UNABLE_SEND_DATA -11
16 #define GNUTLS_E_FATAL_ALERT_RECEIVED -12
17 #define GNUTLS_E_RECEIVED_BAD_MESSAGE -13
18 #define GNUTLS_E_RECEIVED_MORE_DATA -14
19 #define GNUTLS_E_UNEXPECTED_PACKET -15 /* GNUTLS_A_UNEXPECTED_MESSAGE */
20 #define GNUTLS_E_WARNING_ALERT_RECEIVED -16
21 #define GNUTLS_E_ERROR_IN_FINISHED_PACKET -18
22 #define GNUTLS_E_UNEXPECTED_HANDSHAKE_PACKET -19
23 #define GNUTLS_E_UNKNOWN_KX_ALGORITHM -20
24 #define GNUTLS_E_UNKNOWN_CIPHER_SUITE -21 /* GNUTLS_A_HANDSHAKE_FAILURE */
25 #define GNUTLS_E_UNWANTED_ALGORITHM -22
26 #define GNUTLS_E_MPI_SCAN_FAILED -23
27 #define GNUTLS_E_DECRYPTION_FAILED -24 /* GNUTLS_A_DECRYPTION_FAILED, GNUTLS_A_BAD_RECORD_MAC */
28 #define GNUTLS_E_MEMORY_ERROR -25
29 #define GNUTLS_E_DECOMPRESSION_FAILED -26 /* GNUTLS_A_DECOMPRESSION_FAILURE */
30 #define GNUTLS_E_COMPRESSION_FAILED -27
31 #define GNUTLS_E_AGAIN -28
32 #define GNUTLS_E_EXPIRED -29
33 #define GNUTLS_E_DB_ERROR -30
34 #define GNUTLS_E_PWD_ERROR -31
35 #define GNUTLS_E_INSUFICIENT_CRED -32
36 #define GNUTLS_E_HASH_FAILED -33
37 #define GNUTLS_E_PARSING_ERROR -34
38 #define GNUTLS_E_MPI_PRINT_FAILED -35
39 #define GNUTLS_E_REHANDSHAKE -37 /* GNUTLS_A_NO_RENEGOTIATION */
40 #define GNUTLS_E_GOT_APPLICATION_DATA -38
41 #define GNUTLS_E_RECORD_LIMIT_REACHED -39
42 #define GNUTLS_E_ENCRYPTION_FAILED -40
43 #define GNUTLS_E_X509_CERTIFICATE_ERROR -43
44 #define GNUTLS_E_PK_ENCRYPTION_FAILED -44
45 #define GNUTLS_E_PK_DECRYPTION_FAILED -45
46 #define GNUTLS_E_PK_SIGNATURE_FAILED -46
47 #define GNUTLS_E_X509_UNSUPPORTED_CRITICAL_EXTENSION -47
48 #define GNUTLS_E_X509_KEY_USAGE_VIOLATION -48
49 #define GNUTLS_E_NO_CERTIFICATE_FOUND -49 /* GNUTLS_A_BAD_CERTIFICATE */
50 #define GNUTLS_E_INVALID_PARAMETERS -50
51 #define GNUTLS_E_INVALID_REQUEST -51
52 #define GNUTLS_E_INTERRUPTED -52
53 #define GNUTLS_E_PUSH_ERROR -53
54 #define GNUTLS_E_PULL_ERROR -54
55 #define GNUTLS_E_ILLEGAL_PARAMETER -55 /* GNUTLS_A_ILLEGAL_PARAMETER */
56 #define GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE -56
57 #define GNUTLS_E_PKCS1_WRONG_PAD -57
58 #define GNUTLS_E_RECEIVED_ILLEGAL_EXTENSION -58
59 #define GNUTLS_E_INTERNAL_ERROR -59
60 #define GNUTLS_E_CERTIFICATE_KEY_MISMATCH -60
61 #define GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPE -61 /* GNUTLS_A_UNSUPPORTED_CERTIFICATE */
62 #define GNUTLS_E_X509_UNKNOWN_SAN -62
63 #define GNUTLS_E_DH_PRIME_UNACCEPTABLE -63
64 #define GNUTLS_E_FILE_ERROR -64
65 #define GNUTLS_E_ASCII_ARMOR_ERROR -65
66 #define GNUTLS_E_ASN1_ELEMENT_NOT_FOUND -67
67 #define GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND -68
68 #define GNUTLS_E_ASN1_DER_ERROR -69
69 #define GNUTLS_E_ASN1_VALUE_NOT_FOUND -70
70 #define GNUTLS_E_ASN1_GENERIC_ERROR -71
71 #define GNUTLS_E_ASN1_VALUE_NOT_VALID -72
72 #define GNUTLS_E_ASN1_TAG_ERROR -73
73 #define GNUTLS_E_ASN1_TAG_IMPLICIT -74
74 #define GNUTLS_E_ASN1_TYPE_ANY_ERROR -75
75 #define GNUTLS_E_ASN1_SYNTAX_ERROR -76
76 #define GNUTLS_E_ASN1_DER_OVERFLOW -77
77 #define GNUTLS_E_TOO_MANY_EMPTY_PACKETS -78
78 #define GNUTLS_E_OPENPGP_UID_REVOKED -79
79 #define GNUTLS_E_UNKNOWN_PK_ALGORITHM -80
80 #define GNUTLS_E_OPENPGP_TRUSTDB_VERSION_UNSUPPORTED -81
82 #define GNUTLS_E_UNIMPLEMENTED_FEATURE -250
84 /* _INT_ internal errors. Not exported */
86 #define GNUTLS_E_INT_RET_0 -251