diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/krb5/base-defs.h | 10 |
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__ */ |
