git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2462 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-19 05:13:44 +00:00
parent 32b37926da
commit 2a7efc0424

View File

@@ -61,12 +61,6 @@ key_proc (krb5_context context,
des_read_pw_string (buf, sizeof(buf), "Password: ", 0);
password = buf;
}
if(salt == NULL){
(*key)->keyvalue.length = 8;
(*key)->keyvalue.data = malloc((*key)->keyvalue.length);
des_string_to_key(password, (*key)->keyvalue.data);
ret = 0;
}else
ret = krb5_string_to_key (password, salt, *key);
memset (buf, 0, sizeof(buf));
return ret;