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 08:59:38 +0000 (10:59 +0200)
commit0ec946fda5b66fb364a784b002aee5f8b1ac678a
treee8514520fbabf39bbcc54b5a41cbb44d4c7cf72b
parente22ce0d07496c53cd100c6d46a54d7a46c13bba9
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/6157)
crypto/ui/ui_openssl.c