aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-10-24 15:09:32 +0000
committerGreg Hudson <ghudson@mit.edu>2011-10-24 15:09:32 +0000
commit7fc21c4a4a6ef8a88567f166eda1fe73784686c7 (patch)
treec8767e5031b06fa2ccdef9fd5f6cfb8dd9c95fe4 /src/include
parentd8b79bd61501341d9d8a4340c2c7077d302426c4 (diff)
downloadkrb5-7fc21c4a4a6ef8a88567f166eda1fe73784686c7.zip
krb5-7fc21c4a4a6ef8a88567f166eda1fe73784686c7.tar.gz
krb5-7fc21c4a4a6ef8a88567f166eda1fe73784686c7.tar.bz2
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')
-rw-r--r--src/include/kdb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/kdb.h b/src/include/kdb.h
index 78f786f..0f50a83 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,