Changeset View
Changeset View
Standalone View
Standalone View
pinentry/pinentry-curses.c
| Show First 20 Lines • Show All 1,400 Lines • ▼ Show 20 Lines | |||||
| #ifdef HAVE_NCURSESW | #ifdef HAVE_NCURSESW | ||||
| free (old_ctype); | free (old_ctype); | ||||
| #endif | #endif | ||||
| return confirm_mode? 0 : -1; | return confirm_mode? 0 : -1; | ||||
| } | } | ||||
| screen = newterm (tty_type, ttyfo, ttyfi); | screen = newterm (tty_type, ttyfo, ttyfi); | ||||
| if (!screen) | if (!screen) | ||||
| { | { | ||||
| pinentry->specific_err = gpg_error (GPG_ERR_WINDOW_TOO_SMALL); | pinentry->specific_err = gpg_error (GPG_ERR_MISSING_ENVVAR); | ||||
| pinentry->specific_err_loc = "curses_init"; | pinentry->specific_err_loc = "curses_init"; | ||||
| fclose (ttyfo); | fclose (ttyfo); | ||||
| fclose (ttyfi); | fclose (ttyfi); | ||||
| #ifdef HAVE_NCURSESW | #ifdef HAVE_NCURSESW | ||||
| free (old_ctype); | free (old_ctype); | ||||
| #endif | #endif | ||||
| return confirm_mode? 0 : -1; | return confirm_mode? 0 : -1; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 399 Lines • Show Last 20 Lines | |||||