Fix small UI issues
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 08:26:25 +0000 (10:26 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 09:17:08 +0000 (11:17 +0200)
commitfac8e70de383861315b1fd1ee64193c794f1d9ca
treeccde14bc99439660b0a33466d59ff9c6c35b8042
parentb066ef30585bdb051f9aae84d3b5a5df402c43b7
Fix small UI issues

- in EVP_read_pw_string_min(), the return value from UI_add_* wasn't
  properly checked
- in UI_process(), |state| was never made NULL, which means an error
  when closing the session wouldn't be accurately reported.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/3849)

(cherry picked from commit b96dba9e5ec7afc355be1eab915f69c8c0d51741)
crypto/evp/evp_key.c
crypto/ui/ui_lib.c