From: Tom Yu Date: Wed, 24 Jan 2001 05:15:21 +0000 (+0000) Subject: * prot.h: Add prototype for decode_kdc_request() and some rough X-Git-Tag: krb5-1.3-alpha1~1691 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=43e083839729e423cbc03e4fefeaabd041e4b60c;p=krb5.git * prot.h: Add prototype for decode_kdc_request() and some rough starting points for KRB4PROT_* error codes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12940 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/kerberosIV/ChangeLog b/src/include/kerberosIV/ChangeLog index 36a4d3a8d..79ab3ebf6 100644 --- a/src/include/kerberosIV/ChangeLog +++ b/src/include/kerberosIV/ChangeLog @@ -1,3 +1,8 @@ +2001-01-24 Tom Yu + + * prot.h: Add prototype for decode_kdc_request() and some rough + starting points for KRB4PROT_* error codes. + 2001-01-23 Tom Yu * krb.h: Remove internal prototypes and macros. diff --git a/src/include/kerberosIV/prot.h b/src/include/kerberosIV/prot.h index 66e318442..de5ee6e60 100644 --- a/src/include/kerberosIV/prot.h +++ b/src/include/kerberosIV/prot.h @@ -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 */