From 15269cec8b2484637b9e7f03efe1fd90597818d3 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 19 Oct 1990 09:58:09 +0000 Subject: add const_principal git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1282 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/base-defs.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/include') 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__ */ -- cgit