(DB_seq): unseal key

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5298 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-01-30 18:21:42 +00:00
parent 97f2c9ffd9
commit aebdc83e68

View File

@@ -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);