summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-10-19 09:58:09 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-10-19 09:58:09 +0000
commit15269cec8b2484637b9e7f03efe1fd90597818d3 (patch)
tree710807eb1ff38ffaa864b89cf94c157ec749b12c /src/include
parent39d21dde15981bdd851c05a17f2853eb22af0897 (diff)
downloadkrb5-15269cec8b2484637b9e7f03efe1fd90597818d3.tar.gz
krb5-15269cec8b2484637b9e7f03efe1fd90597818d3.tar.xz
krb5-15269cec8b2484637b9e7f03efe1fd90597818d3.zip
add const_principal
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1282 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/base-defs.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/krb5/base-defs.h b/src/include/krb5/base-defs.h
index 81bca9429..e76e7edae 100644
--- a/src/include/krb5/base-defs.h
+++ b/src/include/krb5/base-defs.h
@@ -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__ */