From d36b0c18b0387cf44cba4fbd71a1bc7453b38e63 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 6 Feb 2000 07:40:57 +0000 Subject: [PATCH] add macros for accessing krb5_realm git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7868 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/krb5.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/krb5/krb5.h b/lib/krb5/krb5.h index 6a6298ba0..80448e277 100644 --- a/lib/krb5/krb5.h +++ b/lib/krb5/krb5.h @@ -236,6 +236,10 @@ typedef struct krb5_context_data *krb5_context; typedef Realm krb5_realm; typedef const char *krb5_const_realm; /* stupid language */ + +#define krb5_realm_length(r) strlen(r) +#define krb5_realm_data(r) (r) + typedef Principal krb5_principal_data; typedef struct Principal *krb5_principal; typedef const struct Principal *krb5_const_principal;