Undo.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2462 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -61,13 +61,7 @@ key_proc (krb5_context context,
|
|||||||
des_read_pw_string (buf, sizeof(buf), "Password: ", 0);
|
des_read_pw_string (buf, sizeof(buf), "Password: ", 0);
|
||||||
password = buf;
|
password = buf;
|
||||||
}
|
}
|
||||||
if(salt == NULL){
|
ret = krb5_string_to_key (password, salt, *key);
|
||||||
(*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));
|
memset (buf, 0, sizeof(buf));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user