From: John Kohl Date: Mon, 26 Mar 1990 11:56:42 +0000 (+0000) Subject: remove hack string_to_keyarray, using instead the (new) keytype array. X-Git-Tag: krb5-1.0-alpha2~983 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8872328b66d1de4eeda340f3c377dfe3dd296fa4;p=krb5.git remove hack string_to_keyarray, using instead the (new) keytype array. fix up error codes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@405 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/in_tkt_pwd.c b/src/lib/krb5/krb/in_tkt_pwd.c index 3e7f17155..25a8b84cb 100644 --- a/src/lib/krb5/krb/in_tkt_pwd.c +++ b/src/lib/krb5/krb/in_tkt_pwd.c @@ -21,8 +21,6 @@ static char rcsid_in_tkt_pwd_c[] = #include #include -extern krb5_cryptosystem_entry *string_to_keyarray[]; /* XXX */ - struct pwd_keyproc_arg { krb5_principal who; krb5_data password; @@ -44,16 +42,17 @@ OLDDECLARG(krb5_pointer, keyseed) struct pwd_keyproc_arg *arg; if (!valid_keytype(type)) - return KRB5KDC_ERR_ETYPE_NOSUPP; /* XXX */ + return KRB5_PROG_KEYTYPE_NOSUPP; *key = (krb5_keyblock *)malloc(sizeof(**key)); if (!*key) return ENOMEM; arg = (struct pwd_keyproc_arg *)keyseed; - if (retval = (*string_to_keyarray[type]->string_to_key)(type, - *key, - &arg->password, - arg->who)) { + if (retval = (*krb5_keytype_array[type]->system-> + string_to_key)(type, + *key, + &arg->password, + arg->who)) { free((char *) *key); return(retval); }