From 5575d427b3f996ccfbbddb466b66728df6b83acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 13 Jul 2006 18:18:50 +0000 Subject: [PATCH] Add hdb_entry_get_pkinit_hash(). git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17827 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/ext.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/hdb/ext.c b/lib/hdb/ext.c index caae9867c..67edaa88b 100644 --- a/lib/hdb/ext.c +++ b/lib/hdb/ext.c @@ -219,6 +219,20 @@ hdb_entry_get_pkinit_acl(const hdb_entry *entry, const HDB_Ext_PKINIT_acl **a) return 0; } +krb5_error_code +hdb_entry_get_pkinit_hash(const hdb_entry *entry, const HDB_Ext_PKINIT_hash **a) +{ + const HDB_extension *ext; + + ext = hdb_find_extension(entry, choice_HDB_extension_data_pkinit_cert_hash); + if (ext) + *a = &ext->data.u.pkinit_cert_hash; + else + *a = NULL; + + return 0; +} + krb5_error_code hdb_entry_get_pw_change_time(const hdb_entry *entry, time_t *t) {