blob: c954370266fbdc35e5a8168b45d246ebc1053617 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/*
* $Source$
* $Author$
* $Id$
*
* Copyright 1989,1990 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
*
* Protocol error code definitions
*/
#ifndef KRB5_ERRORS__
#define KRB5_ERRORS__
/* Error codes used in KRB_ERROR protocol messages.
Return values of library routines are based on a different error table
(which allows non-ambiguous error codes between subsystems) */
/* KDC errors */
#define KDC_ERR_NONE 0 /* No error */
#define KDC_ERR_NAME_EXP 1 /* Client's entry in DB expired */
#define KDC_ERR_SERVICE_EXP 2 /* Server's entry in DB expired */
#define KDC_ERR_BAD_PVNO 3 /* Requested pvno not supported */
#define KDC_ERR_C_OLD_MAST_KVNO 4 /* C's key encrypted in old master */
#define KDC_ERR_S_OLD_MAST_KVNO 5 /* S's key encrypted in old master */
#define KDC_ERR_C_PRINCIPAL_UNKNOWN 6 /* Client not found in Kerberos DB */
#define KDC_ERR_S_PRINCIPAL_UNKNOWN 7 /* Server not found in Kerberos DB */
#define KDC_ERR_PRINCIPAL_NOT_UNIQUE 8 /* Multiple entries in Kerberos DB */
#define KDC_ERR_NULL_KEY 9 /* The C or S has a null key */
#define KDC_ERR_CANNOT_POSTDATE 10 /* Tkt ineligible for postdating */
#define KDC_ERR_NEVER_VALID 11 /* Requested starttime > endtime */
#define KDC_ERR_POLICY 12 /* KDC policy rejects request */
#define KDC_ERR_BADOPTION 13 /* KDC can't do requested opt. */
#define KDC_ERR_ETYPE_NOSUPP 14 /* No support for encryption type */
#define KDC_ERR_SUMTYPE_NOSUPP 15 /* No support for checksum type */
#define KDC_ERR_PADATA_TYPE_NOSUPP 16 /* No support for padata type */
#define KDC_ERR_TRTYPE_NOSUPP 17 /* No support for transited type */
/* Application errors */
#define KRB_AP_ERR_BAD_INTEGRITY 31 /* Decrypt integrity check failed */
#define KRB_AP_ERR_TKT_EXPIRED 32 /* Ticket expired */
#define KRB_AP_ERR_TKT_NYV 33 /* Ticket not yet valid */
#define KRB_AP_ERR_REPEAT 34 /* Request is a replay */
#define KRB_AP_ERR_NOT_US 35 /* The ticket isn't for us */
#define KRB_AP_ERR_BADMATCH 36 /* Ticket/authenticator don't match */
#define KRB_AP_ERR_SKEW 37 /* Clock skew too great */
#define KRB_AP_ERR_BADADDR 38 /* Incorrect net address */
#define KRB_AP_ERR_BADVERSION 39 /* Protocol version mismatch */
#define KRB_AP_ERR_MSG_TYPE 40 /* Invalid message type */
#define KRB_AP_ERR_MODIFIED 41 /* Message stream modified */
#define KRB_AP_ERR_BADORDER 42 /* Message out of order */
#define KRB_AP_ERR_BADKEYVER 44 /* Key version is not available */
#define KRB_AP_ERR_NOKEY 45 /* Service key not available */
#define KRB_AP_ERR_MUT_FAIL 46 /* Mutual authentication failed */
#define KRB_AP_ERR_BADDIRECTION 47 /* Incorrect message direction */
#define KRB_AP_ERR_METHOD 48 /* Alternative authentication */
/* method required */
#define KRB_AP_ERR_BADSEQ 49 /* Incorrect sequence numnber */
/* in message */
#define KRB_AP_ERR_INAPP_CKSUM 50 /* Inappropriate type of */
/* checksum in message */
/* other errors */
#define KRB_ERR_GENERIC 60 /* Generic error (description */
/* in e-text) */
#define KRB_ERR_FIELD_TOOLONG 61 /* Field is too long for impl. */
#endif /* KRB5_ERRORS__ */
|