* prot.h: Add prototype for decode_kdc_request() and some rough
authorTom Yu <tlyu@mit.edu>
Wed, 24 Jan 2001 05:15:21 +0000 (05:15 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 24 Jan 2001 05:15:21 +0000 (05:15 +0000)
starting points for KRB4PROT_* error codes.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12940 dc483132-0cff-0310-8789-dd5450dbe970

src/include/kerberosIV/ChangeLog
src/include/kerberosIV/prot.h

index 36a4d3a8d158c572ed161606f4381b1e1af05b97..79ab3ebf69d75727f8217d85dede518c9ccd9d4c 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-24  Tom Yu  <tlyu@mit.edu>
+
+       * prot.h: Add prototype for decode_kdc_request() and some rough
+       starting points for KRB4PROT_* error codes.
+
 2001-01-23  Tom Yu  <tlyu@mit.edu>
 
        * krb.h: Remove internal prototypes and macros.
index 66e31844264337dc1f4ac75ae3ad8aef7fed53eb..de5ee6e60d2e671053017cf648a365c42c01859f 100644 (file)
@@ -237,6 +237,10 @@ extern int KRB5_CALLCONV krb4prot_encode_err_reply(
     char *, char *, char *,
     unsigned long, unsigned long, char *,
     int, int, KTEXT);
+extern int KRB5_CALLCONV krb4prot_decode_kdc_request(
+    KTEXT,
+    int *, char *, char *, char *,
+    long *, int *, char *sname, char *sinst);
 
 /* Message types , always leave lsb for byte order */
 
@@ -267,4 +271,13 @@ extern int KRB5_CALLCONV krb4prot_encode_err_reply(
 #define         KERB_ERR_PREAUTH_SHORT                 11
 #define                KERB_ERR_PREAUTH_MISMATCH               12
 
+/* Return codes from krb4prot_ encoders/decoders */
+
+#define                KRB4PROT_OK                             0
+#define                KRB4PROT_ERR_UNDERRUN                   1
+#define                KRB4PROT_ERR_OVERRUN                    2
+#define                KRB4PROT_ERR_PROT_VERS                  3
+#define                KRB4PROT_ERR_MSG_TYPE                   4
+#define                KRB4PROT_ERR_GENERIC                    255
+
 #endif /* PROT_DEFS */