From 3a235f629911753ccd24a51e66d298dfc4e77ef8 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 29 Jan 1990 16:45:05 +0000 Subject: [PATCH] add prototypes for {encode,decode}_generic add #defines for enc_tkt_part git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@185 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/asn.1/encode.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/include/krb5/asn.1/encode.h b/src/include/krb5/asn.1/encode.h index 8e71b9e0b..8ed75e6ec 100644 --- a/src/include/krb5/asn.1/encode.h +++ b/src/include/krb5/asn.1/encode.h @@ -16,6 +16,21 @@ #ifndef __KRB5_ENCODE_DEFS__ #define __KRB5_ENCODE_DEFS__ + +/* encode.c */ +krb5_error_code encode_generic + PROTOTYPE((krb5_pointer, + krb5_data **, + int (* )PROTOTYPE ((PE,int,int,char *,krb5_pointer )), + krb5_pointer (* )PROTOTYPE ((krb5_pointer,int *)), + void (* )PROTOTYPE ((krb5_pointer )))); +krb5_error_code decode_generic + PROTOTYPE((krb5_data *, + krb5_pointer *, + int (* )PROTOTYPE ((PE,int,int,char *,krb5_pointer )), + krb5_pointer (* )PROTOTYPE ((krb5_pointer,int *)), + void (* )PROTOTYPE ((krb5_pointer )))); + #define encode_krb5_authenticator(pauth, output) \ encode_generic(pauth, output, \ encode_KRB5_Authenticator, \ @@ -38,6 +53,17 @@ KRB5_Ticket2krb5_ticket, \ free_KRB5_Ticket) +#define encode_krb5_enc_tkt_part(ptick, output) \ + encode_generic(ptick, output, \ + encode_KRB5_EncTicketPart, \ + krb5_enc_tkt_part2KRB5_EncTicketPart, \ + free_KRB5_EncTicketPart) +#define decode_krb5_enc_tkt_part(ptick, output) \ + decode_generic(ptick, (krb5_pointer *) output, \ + decode_KRB5_EncTicketPart, \ + KRB5_EncTicketPart2krb5_enc_tkt_part, \ + free_KRB5_EncTicketPart) + #define encode_krb5_as_req(req, output) \ encode_generic(req, output, \ encode_KRB5_AS__REQ, \ -- 2.26.2