From 5022bbcee3904b58ecf223e6a053c1069a9c0884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 1 Jun 2006 19:56:44 +0000 Subject: [PATCH] (hdb_entry_get_ConstrainedDelegACL): new function. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17608 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/ext.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/hdb/ext.c b/lib/hdb/ext.c index d251bf8cc..caae9867c 100644 --- a/lib/hdb/ext.c +++ b/lib/hdb/ext.c @@ -364,3 +364,19 @@ hdb_entry_clear_password(krb5_context context, hdb_entry *entry) return hdb_clear_extension(context, entry, choice_HDB_extension_data_password); } + +krb5_error_code +hdb_entry_get_ConstrainedDelegACL(const hdb_entry *entry, + const HDB_Ext_Constrained_delegation_acl **a) +{ + const HDB_extension *ext; + + ext = hdb_find_extension(entry, + choice_HDB_extension_data_allowed_to_delegate_to); + if (ext) + *a = &ext->data.u.allowed_to_delegate_to; + else + *a = NULL; + + return 0; +}