on second thoughts, back out previous
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11438 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -119,14 +119,7 @@ kt_add(int argc, char **argv)
|
||||
kvno = atoi(buf);
|
||||
}
|
||||
if(password_string == NULL && random_flag == 0) {
|
||||
krb5_prompt prompt;
|
||||
krb5_data reply;
|
||||
prompt.hidden = 1;
|
||||
prompt.prompt = "Password: ";
|
||||
prompt.reply = &reply;
|
||||
reply.data = buf;
|
||||
reply.length = sizeof(buf);
|
||||
if(krb5_prompter_posix(context, NULL, NULL, NULL, 1, &prompt))
|
||||
if(des_read_pw_string(buf, sizeof(buf), "Password: ", 1))
|
||||
goto out;
|
||||
password_string = buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user