summaryrefslogtreecommitdiffstats
path: root/src/include/krb5
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1989-12-01 10:11:49 +0000
committerJohn Kohl <jtkohl@mit.edu>1989-12-01 10:11:49 +0000
commit23ec9b40232dc6142152a9e6d5d70e04d08fe944 (patch)
treebbd644e2b7d808bda25c410b63b128d0ddd058f3 /src/include/krb5
parent79e732990deab8b5c4ede3faf3e3a1f099f97469 (diff)
downloadkrb5-23ec9b40232dc6142152a9e6d5d70e04d08fe944.tar.gz
krb5-23ec9b40232dc6142152a9e6d5d70e04d08fe944.tar.xz
krb5-23ec9b40232dc6142152a9e6d5d70e04d08fe944.zip
*** empty log message ***
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@36 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5')
-rw-r--r--src/include/krb5/errors.h61
-rw-r--r--src/include/krb5/proto.h33
2 files changed, 94 insertions, 0 deletions
diff --git a/src/include/krb5/errors.h b/src/include/krb5/errors.h
new file mode 100644
index 000000000..6b1d17277
--- /dev/null
+++ b/src/include/krb5/errors.h
@@ -0,0 +1,61 @@
+/*
+ * $Source$
+ * $Author$
+ * $Id$
+ *
+ * Copyright 1989 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/mit-copyright.h>.
+ *
+ * Protocol error code definitions
+ */
+
+#include <krb5/copyright.h>
+
+#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. */
+
+/* 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_ETYPE_NOSUPP 46 /* No support for encryption type */
+#define KRB_AP_ERR_MUT_FAIL 47 /* Mutual authentication failed */
+
+/* other errors */
+#define KRB_ERR_FIELD_TOOLONG 50 /* Field is too long for impl. */
+
+#endif /* __KRB5_ERRORS__ */
diff --git a/src/include/krb5/proto.h b/src/include/krb5/proto.h
new file mode 100644
index 000000000..8810efd21
--- /dev/null
+++ b/src/include/krb5/proto.h
@@ -0,0 +1,33 @@
+/*
+ * $Source$
+ * $Author$
+ * $Id$
+ *
+ * Copyright 1989 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/mit-copyright.h>.
+ *
+ * Protocol message definitions.
+ */
+
+#include <krb5/copyright.h>
+
+#ifndef __KRB5_PROTO__
+#define __KRB5_PROTO__
+
+/* Protocol version number */
+#define KRB5_PVNO 5
+
+/* Message types */
+
+#define KRB_AS_REQ 2 /* Req for initial authentication */
+#define KRB_AS_REP 4 /* Response to KRB_AS_REQ request */
+#define KRB_AP_REQ 6 /* application request to server */
+#define KRB_AP_REP 10 /* Response to KRB_AP_REQ_MUTUAL */
+#define KRB_PRIV 12 /* Private application message */
+#define KRB_SAFE 14 /* Safe application message */
+#define KRB_TGS_REP 16 /* Response to KRB_TGS_REQ request */
+#define KRB_ERROR 32 /* Error response */
+
+#endif /* __KRB5_PROTO__ */