diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-10-24 15:09:32 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-10-24 15:09:32 +0000 |
commit | 7fc21c4a4a6ef8a88567f166eda1fe73784686c7 (patch) | |
tree | c8767e5031b06fa2ccdef9fd5f6cfb8dd9c95fe4 /src/include/kdb.h | |
parent | d8b79bd61501341d9d8a4340c2c7077d302426c4 (diff) | |
download | krb5-7fc21c4a4a6ef8a88567f166eda1fe73784686c7.tar.gz krb5-7fc21c4a4a6ef8a88567f166eda1fe73784686c7.tar.xz krb5-7fc21c4a4a6ef8a88567f166eda1fe73784686c7.zip |
Refactor salt computation into libkdb5
Add a new API krb5_dbe_compute_salt() to determine the salt for a key
data entry, and use it in the three places we currently compute salts.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25410 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/kdb.h')
-rw-r--r-- | src/include/kdb.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/kdb.h b/src/include/kdb.h index 78f786f3b..0f50a83c1 100644 --- a/src/include/kdb.h +++ b/src/include/kdb.h @@ -576,6 +576,12 @@ krb5_dbe_update_tl_data( krb5_context context, krb5_db_entry * entry, krb5_tl_data * new_tl_data); +/* Compute the salt for a key data entry given the corresponding principal. */ +krb5_error_code +krb5_dbe_compute_salt(krb5_context context, const krb5_key_data *key, + krb5_const_principal princ, krb5_int16 *salttype_out, + krb5_data **salt_out); + krb5_error_code krb5_dbe_cpw( krb5_context kcontext, krb5_keyblock * master_key, |