diff options
Diffstat (limited to 'apps/plugins/keybox.c')
-rw-r--r-- | apps/plugins/keybox.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/keybox.c b/apps/plugins/keybox.c index 914761e73b..1689321abe 100644 --- a/apps/plugins/keybox.c +++ b/apps/plugins/keybox.c | |||
@@ -196,12 +196,12 @@ static void add_entry(int selected_item) | |||
196 | 196 | ||
197 | rb->splash(HZ, "Enter title"); | 197 | rb->splash(HZ, "Enter title"); |
198 | pw_list.entries[i].title[0] = '\0'; | 198 | pw_list.entries[i].title[0] = '\0'; |
199 | if (rb->kbd_input(pw_list.entries[i].title, FIELD_LEN) < 0) | 199 | if (rb->kbd_input(pw_list.entries[i].title, FIELD_LEN, NULL) < 0) |
200 | return; | 200 | return; |
201 | 201 | ||
202 | rb->splash(HZ, "Enter name"); | 202 | rb->splash(HZ, "Enter name"); |
203 | pw_list.entries[i].name[0] = '\0'; | 203 | pw_list.entries[i].name[0] = '\0'; |
204 | if (rb->kbd_input(pw_list.entries[i].name, FIELD_LEN) < 0) | 204 | if (rb->kbd_input(pw_list.entries[i].name, FIELD_LEN, NULL) < 0) |
205 | { | 205 | { |
206 | pw_list.entries[i].title[0] = '\0'; | 206 | pw_list.entries[i].title[0] = '\0'; |
207 | return; | 207 | return; |
@@ -209,7 +209,7 @@ static void add_entry(int selected_item) | |||
209 | 209 | ||
210 | rb->splash(HZ, "Enter password"); | 210 | rb->splash(HZ, "Enter password"); |
211 | pw_list.entries[i].password[0] = '\0'; | 211 | pw_list.entries[i].password[0] = '\0'; |
212 | if (rb->kbd_input(pw_list.entries[i].password, FIELD_LEN) < 0) | 212 | if (rb->kbd_input(pw_list.entries[i].password, FIELD_LEN, NULL) < 0) |
213 | { | 213 | { |
214 | pw_list.entries[i].title[0] = '\0'; | 214 | pw_list.entries[i].title[0] = '\0'; |
215 | pw_list.entries[i].name[0] = '\0'; | 215 | pw_list.entries[i].name[0] = '\0'; |
@@ -244,7 +244,7 @@ static void edit_title(int selected_item) | |||
244 | if (entry->next) | 244 | if (entry->next) |
245 | entry = entry->next; | 245 | entry = entry->next; |
246 | } | 246 | } |
247 | if (rb->kbd_input(entry->title, FIELD_LEN) == 0) | 247 | if (rb->kbd_input(entry->title, FIELD_LEN, NULL) == 0) |
248 | data_changed = true; | 248 | data_changed = true; |
249 | } | 249 | } |
250 | 250 | ||
@@ -257,7 +257,7 @@ static void edit_name(int selected_item) | |||
257 | if (entry->next) | 257 | if (entry->next) |
258 | entry = entry->next; | 258 | entry = entry->next; |
259 | } | 259 | } |
260 | if (rb->kbd_input(entry->name, FIELD_LEN) == 0) | 260 | if (rb->kbd_input(entry->name, FIELD_LEN, NULL) == 0) |
261 | data_changed = true; | 261 | data_changed = true; |
262 | } | 262 | } |
263 | 263 | ||
@@ -270,7 +270,7 @@ static void edit_pw(int selected_item) | |||
270 | if (entry->next) | 270 | if (entry->next) |
271 | entry = entry->next; | 271 | entry = entry->next; |
272 | } | 272 | } |
273 | if (rb->kbd_input(entry->password, FIELD_LEN) == 0) | 273 | if (rb->kbd_input(entry->password, FIELD_LEN, NULL) == 0) |
274 | data_changed = true; | 274 | data_changed = true; |
275 | } | 275 | } |
276 | 276 | ||
@@ -513,11 +513,11 @@ static int enter_pw(char *pw_buf, size_t buflen, bool new_pw) | |||
513 | if (new_pw) | 513 | if (new_pw) |
514 | { | 514 | { |
515 | rb->splash(HZ, "Enter new master password"); | 515 | rb->splash(HZ, "Enter new master password"); |
516 | if (rb->kbd_input(buf[0], sizeof(buf[0])) < 0) | 516 | if (rb->kbd_input(buf[0], sizeof(buf[0]), NULL) < 0) |
517 | return -1; | 517 | return -1; |
518 | 518 | ||
519 | rb->splash(HZ, "Confirm master password"); | 519 | rb->splash(HZ, "Confirm master password"); |
520 | if (rb->kbd_input(buf[1], sizeof(buf[1])) < 0) | 520 | if (rb->kbd_input(buf[1], sizeof(buf[1]), NULL) < 0) |
521 | return -1; | 521 | return -1; |
522 | 522 | ||
523 | if (rb->strcmp(buf[0], buf[1])) | 523 | if (rb->strcmp(buf[0], buf[1])) |
@@ -534,7 +534,7 @@ static int enter_pw(char *pw_buf, size_t buflen, bool new_pw) | |||
534 | } | 534 | } |
535 | 535 | ||
536 | rb->splash(HZ, "Enter master password"); | 536 | rb->splash(HZ, "Enter master password"); |
537 | if (rb->kbd_input(pw_buf, buflen) < 0) | 537 | if (rb->kbd_input(pw_buf, buflen, NULL) < 0) |
538 | return -1; | 538 | return -1; |
539 | hash_pw(&pwhash); | 539 | hash_pw(&pwhash); |
540 | return 0; | 540 | return 0; |