diff options
author | Günther Deschner <gd@samba.org> | 2015-07-09 18:00:49 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-07-14 16:11:18 +0200 |
commit | 4eda808a5784b1bf6b26bdeb557cf1caf56be60c (patch) | |
tree | 9f3bf38cc128beb364eab7da72652e57f539483f /lib | |
parent | 54ec74b3b25383cf96b658e7f18cd032af8c370f (diff) | |
download | samba-4eda808a5784b1bf6b26bdeb557cf1caf56be60c.tar.gz |
lib/krb5: add new KRB5_ERROR_CODE() abstraction macro.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/krb5_wrap/krb5_samba.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h index 12711e8cd32..cef9144a17e 100644 --- a/lib/krb5_wrap/krb5_samba.h +++ b/lib/krb5_wrap/krb5_samba.h @@ -109,6 +109,12 @@ typedef struct { #define KRB5_KEY_DATA_CAST krb5_octet #endif /* HAVE_KRB5_KEYBLOCK_KEYVALUE */ +#ifdef HAVE_E_DATA_POINTER_IN_KRB5_ERROR /* Heimdal */ +#define KRB5_ERROR_CODE(k) ((k)->error_code) +#else /* MIT */ +#define KRB5_ERROR_CODE(k) ((k)->error) +#endif /* HAVE_E_DATA_POINTER_IN_KRB5_ERROR */ + krb5_error_code smb_krb5_parse_name(krb5_context context, const char *name, /* in unix charset */ krb5_principal *principal); |