UI console: Restore tty settings, do not force ECHO after prompt
authorRichard Levitte <levitte@openssl.org>
Wed, 2 May 2018 12:28:53 +0000 (14:28 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 14 May 2018 09:01:45 +0000 (11:01 +0200)
commit4080f4d2fefbb7186171eb620d565e91f56be5b3
tree84c09ef04cb0b3e11e4c0dda85b05af80ee6c56d
parent66e4a8944b894b9301226bad193a7d8ec330742d
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/6158)
crypto/ui/ui_openssl.c