summaryrefslogtreecommitdiff
path: root/source4/kdc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-05-07 16:43:17 +0200
committerJelmer Vernooij <jelmer@samba.org>2012-05-07 18:33:10 +0200
commit890485bd17142ac9bbaf71c24d3d3ec1fa4a6724 (patch)
tree84ecc0c82888e67850b2f6f9c453ea7c7cb9eab1 /source4/kdc
parent4754743860b4601465aa122021a8ae7ddb42f6a1 (diff)
downloadsamba-890485bd17142ac9bbaf71c24d3d3ec1fa4a6724.tar.gz
samba-890485bd17142ac9bbaf71c24d3d3ec1fa4a6724.tar.bz2
samba-890485bd17142ac9bbaf71c24d3d3ec1fa4a6724.zip
heimdal: Cope with newer Heimdal versions accepting a keyset argument to
hdb_enctype2key. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon May 7 18:33:10 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/kdc')
-rw-r--r--source4/kdc/pac-glue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c
index d654dc32ca..cca74d850a 100644
--- a/source4/kdc/pac-glue.c
+++ b/source4/kdc/pac-glue.c
@@ -482,7 +482,11 @@ int kdc_check_pac(krb5_context context,
}
}
+#if HDB_ENCTYPE2KEY_TAKES_KEYSET
+ ret = hdb_enctype2key(context, &ent->entry, NULL, etype, &key);
+#else
ret = hdb_enctype2key(context, &ent->entry, etype, &key);
+#endif
if (ret != 0) {
return ret;