summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-08-22 14:58:01 +0200
committerGünther Deschner <gd@samba.org>2008-08-29 11:01:34 +0200
commitbff20e14c38d7139033127182b76aa24e471b581 (patch)
treef5b2568566befdbcc06dad83650837abf430ab6a /source3/libads
parent87ea8f3fae44b5442f1e5303bf1d5326f1bfd5ae (diff)
downloadsamba-bff20e14c38d7139033127182b76aa24e471b581.tar.gz
samba-bff20e14c38d7139033127182b76aa24e471b581.tar.bz2
samba-bff20e14c38d7139033127182b76aa24e471b581.zip
kerberos: use KRB5_KT_KEY macro where appropriate.
Guenther (This used to be commit a042dffd7121bda3dbc9509f69fcfae06ed4cc22)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos_keytab.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c
index 77a50e4221..883f582445 100644
--- a/source3/libads/kerberos_keytab.c
+++ b/source3/libads/kerberos_keytab.c
@@ -161,15 +161,8 @@ int smb_krb5_kt_add_entry_ext(krb5_context context,
for (i = 0; enctypes[i]; i++) {
krb5_keyblock *keyp;
-#if !defined(HAVE_KRB5_KEYTAB_ENTRY_KEY) && !defined(HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK)
-#error krb5_keytab_entry has no key or keyblock member
-#endif
-#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEY /* MIT */
- keyp = &kt_entry.key;
-#endif
-#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK /* Heimdal */
- keyp = &kt_entry.keyblock;
-#endif
+ keyp = KRB5_KT_KEY(&kt_entry);
+
if (create_kerberos_key_from_string(context, princ, &password, keyp, enctypes[i], no_salt)) {
continue;
}