From aebdc83e68c594a3af411ebf7d635856280bda7c Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 30 Jan 1999 18:21:42 +0000 Subject: [PATCH] (DB_seq): unseal key git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5298 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/db.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/hdb/db.c b/lib/hdb/db.c index 55bfa1f5b..2f011ca7e 100644 --- a/lib/hdb/db.c +++ b/lib/hdb/db.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997 Kungliga Tekniska Högskolan + * Copyright (c) 1997, 1998, 1999 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -103,6 +103,8 @@ DB_seq(krb5_context context, HDB *db, hdb_entry *entry, int flag) data.length = value.size; if (hdb_value2entry(context, &data, entry)) return DB_seq(context, db, entry, R_NEXT); + if (db->master_key_set) + hdb_unseal_keys (entry, db->master_key); if (entry->principal == NULL) { entry->principal = malloc(sizeof(*entry->principal)); hdb_key2principal(context, &key_data, entry->principal);