diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-03-21 16:57:05 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-03-21 16:57:05 +0000 |
commit | 57a0c5e6c3c3af0eeed0487d56b53311752a8930 (patch) | |
tree | 887daeb4dcec0cdb6d1885327eacaacdf6ca46e0 /src/tests/verify/kdb5_verify.c | |
parent | fd3a2c5a467a42bbb864e1ddc7fc7f5bda93e339 (diff) | |
download | krb5-57a0c5e6c3c3af0eeed0487d56b53311752a8930.tar.gz krb5-57a0c5e6c3c3af0eeed0487d56b53311752a8930.tar.xz krb5-57a0c5e6c3c3af0eeed0487d56b53311752a8930.zip |
Only store master mey list in DAL handle
r24314 (#6778) created a hybrid owernship model for the master key
list, with one virtual copy stored in the DAL handle and one provided
to the caller of krb5_db_fetch_mkey_list. Replace this with a model
where only the DAL handle owns the list, and a caller can get access
to an alias pointer with a new function krb5_db_mkey_list_alias().
Functions which previously accepted the master key list as an input
parameter now expect to find it in the DAL handle.
Patch by Will Fiveash <will.fiveash@oracle.com>.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25781 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/verify/kdb5_verify.c')
-rw-r--r-- | src/tests/verify/kdb5_verify.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tests/verify/kdb5_verify.c b/src/tests/verify/kdb5_verify.c index b82a86aec3..e29c8bc1f2 100644 --- a/src/tests/verify/kdb5_verify.c +++ b/src/tests/verify/kdb5_verify.c @@ -353,7 +353,6 @@ set_dbname_help(context, pname, dbname) krb5_error_code retval; krb5_data pwd, scratch; char *args[2]; - krb5_keylist_node *mkeys; krb5_db_entry *master_entry; /* assemble & parse the master key name */ @@ -407,13 +406,11 @@ set_dbname_help(context, pname, dbname) return(1); } if ((retval = krb5_db_fetch_mkey_list(context, master_princ, - &master_keyblock, IGNORE_VNO, - &mkeys))) { + &master_keyblock))) { com_err(pname, retval, "while verifying master key"); (void) krb5_db_fini(context); return(1); } - krb5_db_free_mkey_list(context, mkeys); if ((retval = krb5_db_get_principal(context, master_princ, 0, &master_entry))) { com_err(pname, retval, "while retrieving master entry"); |