From 349892a1ec0c57177ff4c61f104247598088b7cc Mon Sep 17 00:00:00 2001 From: Chris Provenzano Date: Wed, 6 Sep 1995 19:08:22 +0000 Subject: [PATCH] * string2key.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6715 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/des425/ChangeLog | 4 ++++ src/lib/des425/string2key.c | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index b0d2207e6..8851b64cd 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 06 14:20:57 1995 Chris Provenzano (proven@mit.edu) + + * string2key.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g + Thu Aug 24 18:51:53 1995 Theodore Y. Ts'o * .Sanitize: Update file list diff --git a/src/lib/des425/string2key.c b/src/lib/des425/string2key.c index 89c816955..58ed9a3cd 100644 --- a/src/lib/des425/string2key.c +++ b/src/lib/des425/string2key.c @@ -35,7 +35,7 @@ extern int des_debug; /* converts the string pointed to by "data" into an encryption key - of type "keytype". *keyblock is filled in with the key info; + of type "enctype". *keyblock is filled in with the key info; in particular, keyblock->contents is to be set to allocated storage. It is the responsibility of the caller to release this storage when the generated key no longer needed. @@ -44,13 +44,13 @@ extern int des_debug; algorithm. If the particular function called does not know how to make a - key of type "keytype", an error may be returned. + key of type "enctype", an error may be returned. returns: errors */ -krb5_error_code mit_des_string_to_key (keytype, keyblock, data, princ) - const krb5_keytype keytype; +krb5_error_code mit_des_string_to_key (enctype, keyblock, data, princ) + const krb5_enctype enctype; krb5_keyblock * keyblock; const krb5_data * data; krb5_const_principal princ; @@ -71,8 +71,8 @@ krb5_error_code mit_des_string_to_key (keytype, keyblock, data, princ) #define min(A, B) ((A) < (B) ? (A): (B)) - if ( keytype != KEYTYPE_DES ) - return (KRB5_PROG_KEYTYPE_NOSUPP); + if ( enctype != ENCTYPE_DES ) + return (KRB5_PROG_ENCTYPE_NOSUPP); if ( !(keyblock->contents = (krb5_octet *)malloc(sizeof(mit_des_cblock))) ) return(ENOMEM); @@ -80,7 +80,7 @@ krb5_error_code mit_des_string_to_key (keytype, keyblock, data, princ) #define cleanup() {memset(keyblock->contents, 0, sizeof(mit_des_cblock));\ krb5_xfree(keyblock->contents);} - keyblock->keytype = KEYTYPE_DES; + keyblock->enctype = ENCTYPE_DES; keyblock->length = sizeof(mit_des_cblock); key = keyblock->contents; -- 2.26.2