kinit now builds and works on some machines
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@302 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -11,15 +11,17 @@ key_proc (krb5_context context,
|
||||
char *password = (char *)keyseed;
|
||||
char buf[BUFSIZ];
|
||||
|
||||
key = malloc (sizeof (*key));
|
||||
if (key == NULL)
|
||||
*key = malloc (sizeof (**key));
|
||||
if (*key == NULL)
|
||||
return ENOMEM;
|
||||
key->keytype = type;
|
||||
(*key)->keytype = type;
|
||||
(*key)->contents.length = 0;
|
||||
(*key)->contents.data = NULL;
|
||||
if (password == NULL) {
|
||||
des_read_pw_string (buf, sizeof(buf), "Password: ", 0);
|
||||
password = buf;
|
||||
}
|
||||
err = krb5_string_to_key (password, salt, key);
|
||||
err = krb5_string_to_key (password, salt, *key);
|
||||
memset (buf, 0, sizeof(buf));
|
||||
return err;
|
||||
}
|
||||
@@ -33,9 +35,9 @@ krb5_get_in_tkt_with_password (krb5_context context,
|
||||
const char *password,
|
||||
krb5_ccache ccache,
|
||||
krb5_creds *creds,
|
||||
krb5_kdc-rep **ret_as_reply)
|
||||
krb5_kdc_rep **ret_as_reply)
|
||||
{
|
||||
return krb5_get_in_tkt (context, options, addrs, etypes,
|
||||
pre_auth_types, key_proc, password,
|
||||
NULL, NULL, creds, cache, ret_as_reply);
|
||||
NULL, NULL, creds, ccache, ret_as_reply);
|
||||
}
|
||||
|
Reference in New Issue
Block a user