fix #define aliases
authorJohn Kohl <jtkohl@mit.edu>
Wed, 27 Dec 1989 17:54:13 +0000 (17:54 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 27 Dec 1989 17:54:13 +0000 (17:54 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@54 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/asn1glue.h

index 3d52236c223ce4024e567b97678fc9489a3a7a77..c56dadbbc7cfee6562fe17bbf3e2df3c788231e6 100644 (file)
@@ -16,6 +16,9 @@
 #ifndef __KRB5_GLUE_H__
 #define __KRB5_GLUE_H__
 
-#define krb5_string2qbuf(val) str2qb(val->string, val->length, 1)
+#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)
 
 #endif /* __KRB5_GLUE_H__ */