summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-03-26 11:56:42 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-03-26 11:56:42 +0000
commit8872328b66d1de4eeda340f3c377dfe3dd296fa4 (patch)
treea61130c6b30da7166b808ec0226b57ed4c86dea6 /src/lib
parent7dbec9718a3fbffe0609a64d20a1cce41a48f7cc (diff)
downloadkrb5-8872328b66d1de4eeda340f3c377dfe3dd296fa4.tar.gz
krb5-8872328b66d1de4eeda340f3c377dfe3dd296fa4.tar.xz
krb5-8872328b66d1de4eeda340f3c377dfe3dd296fa4.zip
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/krb/in_tkt_pwd.c13
1 files changed, 6 insertions, 7 deletions
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 <errno.h>
#include <krb5/ext-proto.h>
-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);
}