From db07a26a9c270d72d6e8462543c74197953d36aa Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 28 Dec 1989 16:44:59 +0000 Subject: [PATCH] fix up the macros, add more git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@57 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/asn1glue.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/asn.1/asn1glue.h b/src/lib/krb5/asn.1/asn1glue.h index c56dadbbc..77f6bdbae 100644 --- a/src/lib/krb5/asn.1/asn1glue.h +++ b/src/lib/krb5/asn.1/asn1glue.h @@ -19,6 +19,10 @@ #define krb5_string2qbuf(val) str2qb((val)->string, (val)->length, 1) #define kdcoptions2KRB5_KDCOptions(val) (struct type_KRB5_KDCOptions *)flags2KRB5_TicketFlags(val) -#define KRB5_KDCOptions2kdcoptions(val) KRB5_TicketFlags2flags((struct type_KRB5_TicketFlags *) val) +#define KRB5_KDCOptions2kdcoptions(val) KRB5_TicketFlags2flags((struct type_KRB5_TicketFlags *) (val)) +#define apoptions2KRB5_APOptions(val) (struct type_KRB5_APOptions *)flags2KRB5_TicketFlags(val) +#define KRB5_APOptions2apoptions(val) KRB5_TicketFlags2flags((struct type_KRB5_APOptions *) (val)) + +#define free_krb5_string(val) { free((val)->string); free(val);} #endif /* __KRB5_GLUE_H__ */ -- 2.26.2