From ef965f9bcf9257f78bc3f187a06d047c85f94ad6 Mon Sep 17 00:00:00 2001 From: Chris Provenzano Date: Thu, 9 Nov 1995 22:26:40 +0000 Subject: * string2key.c : Remove krb5_enctype from krb5_string_to_key() args. * string2key.c, des_int.h : Remove krb5_enctype from mit_des_string_to_key() args. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7084 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/ChangeLog | 6 ++++++ src/lib/crypto/des/des_int.h | 2 +- src/lib/crypto/des/string2key.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/lib/crypto') diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index d823b41367..0d72e4b2d0 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 09 17:05:57 1995 Chris Provenzano (proven@mit.edu) + + * string2key.c : Remove krb5_enctype from krb5_string_to_key() args. + * string2key.c, des_int.h : Remove krb5_enctype from + mit_des_string_to_key() args. + Tue Oct 31 22:06:52 1995 Theodore Y. Ts'o * finish_key.c (mit_des_finish_key): Make mit_des_finish_key() diff --git a/src/lib/crypto/des/des_int.h b/src/lib/crypto/des/des_int.h index 0293266325..e0f9014363 100644 --- a/src/lib/crypto/des/des_int.h +++ b/src/lib/crypto/des/des_int.h @@ -153,7 +153,7 @@ extern krb5_error_code mit_des_random_key /* string2key.c */ extern krb5_error_code mit_des_string_to_key - PROTOTYPE(( const krb5_encrypt_block FAR *, const krb5_enctype, + PROTOTYPE(( const krb5_encrypt_block FAR *, krb5_keyblock FAR *, const krb5_data FAR *, const krb5_data FAR *)); /* weak_key.c */ diff --git a/src/lib/crypto/des/string2key.c b/src/lib/crypto/des/string2key.c index e5cddf02f3..e36ebcbc7b 100644 --- a/src/lib/crypto/des/string2key.c +++ b/src/lib/crypto/des/string2key.c @@ -41,9 +41,8 @@ */ krb5_error_code -mit_des_string_to_key (eblock, enctype, keyblock, data, salt) +mit_des_string_to_key (eblock, keyblock, data, salt) const krb5_encrypt_block FAR * eblock; -const krb5_enctype enctype; krb5_keyblock FAR * keyblock; const krb5_data FAR * data; const krb5_data FAR * salt; @@ -60,6 +59,7 @@ const krb5_data FAR * salt; register char *p_char; char k_char[64]; mit_des_key_schedule key_sked; + krb5_enctype enctype = eblock->crypto_entry->proto_enctype; #ifndef min #define min(A, B) ((A) < (B) ? (A): (B)) -- cgit