add const_principal
authorJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 09:58:09 +0000 (09:58 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 19 Oct 1990 09:58:09 +0000 (09:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1282 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/base-defs.h

index 81bca9429c91df1bb77f2fba6dd32900203348e1..e76e7edae0d777759129abcffed154aaca6f1dc7 100644 (file)
@@ -47,10 +47,6 @@ typedef struct _krb5_data {
 } krb5_data;
 
 
-typedef        krb5_data **    krb5_principal; /* array of strings */
-                                       /* CONVENTION: realm is first elem. */
-#define krb5_princ_realm(princ) ((princ)[0])
-
 #ifdef __STDC__
 typedef        void * krb5_pointer;
 typedef void const * krb5_const_pointer;
@@ -68,4 +64,10 @@ typedef char * krb5_const_pointer;
 #define OLDDECLARG(type, val) type val;
 #endif /* __STDC__ */
 
+typedef        krb5_data **    krb5_principal; /* array of strings */
+                                       /* CONVENTION: realm is first elem. */
+typedef        const krb5_data ** krb5_const_principal;        /* array of strings */
+                                       /* CONVENTION: realm is first elem. */
+#define krb5_princ_realm(princ) ((princ)[0])
+
 #endif /* KRB5_BASE_DEFS__ */