diff options
author | Simo Sorce <idra@samba.org> | 2012-04-22 21:38:29 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2012-04-23 19:20:38 -0400 |
commit | d43c2c094558fcb83aa18358bc724195a9c26001 (patch) | |
tree | 2ad3d1b78dddbb7bea6ba28acff63c8b4dc98e91 /lib/krb5_wrap | |
parent | 08c733d75fd83fd5e32ced9712d41dd595e0f182 (diff) | |
download | samba-d43c2c094558fcb83aa18358bc724195a9c26001.tar.gz samba-d43c2c094558fcb83aa18358bc724195a9c26001.tar.bz2 samba-d43c2c094558fcb83aa18358bc724195a9c26001.zip |
krb5_samba: Add support for krb5_princ_size when using Heimdal
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r-- | lib/krb5_wrap/krb5_samba.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h index 3800b024ad..3924fb7de8 100644 --- a/lib/krb5_wrap/krb5_samba.h +++ b/lib/krb5_wrap/krb5_samba.h @@ -57,6 +57,14 @@ #define AP_OPTS_USE_SUBKEY 0 #endif +#ifndef krb5_princ_size +#if defined(HAVE_KRB5_KRB5_PRINCIPAL_GET_NUM_COMP) +#define krb5_princ_size krb5_principal_get_num_comp +#else +#error krb5_princ_size unavailable +#endif +#endif + typedef struct { #if defined(HAVE_MAGIC_IN_KRB5_ADDRESS) && defined(HAVE_ADDRTYPE_IN_KRB5_ADDRESS) /* MIT */ krb5_address **addrs; |