UI console: Restore tty settings, do not force ECHO after prompt
authorRichard Levitte <levitte@openssl.org>
Wed, 2 May 2018 12:18:55 +0000 (14:18 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 14 May 2018 09:00:23 +0000 (11:00 +0200)
commitde03cc92d1f3758ad1a525893c93e16b15e6cf45
treef65cbca2d843fe439bf50ffe5a0c2bddb06ab8a9
parent1c534560dc905b6d399dbde242422f0cf5543286
UI console: Restore tty settings, do not force ECHO after prompt

The Console UI method always set echo on after prompting without
echo.  However, echo might not have been on originally, so just
restore the original TTY settings.

Fixes #2373

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6156)
crypto/ui/ui_openssl.c