add flags to fetch and store; seal keys before logging

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6097 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-05-03 17:09:58 +00:00
parent e7955cc129
commit c3e59002fe
9 changed files with 52 additions and 20 deletions

View File

@@ -117,6 +117,8 @@ kadm5_s_create_principal_with_key(void *server_handle,
if(ret)
goto out;
hdb_seal_keys(context->db, &ent);
kadm5_log_create (context, &ent);
ret = context->db->open(context->context, context->db, O_RDWR, 0);
@@ -167,6 +169,8 @@ kadm5_s_create_principal(void *server_handle,
ent.keys.val[3].key.keytype = ETYPE_DES3_CBC_SHA1;
ret = _kadm5_set_keys(context, &ent, password);
hdb_seal_keys(context->db, &ent);
kadm5_log_create (context, &ent);
ret = context->db->open(context->context, context->db, O_RDWR, 0);