Improve the example getpass() implementation to show an error return
authorNick Mathewson <nickm@torproject.org>
Thu, 24 May 2018 19:23:15 +0000 (15:23 -0400)
committerRichard Levitte <levitte@openssl.org>
Thu, 21 Jun 2018 17:10:51 +0000 (19:10 +0200)
commit8a8534620da8e13c8a7ab123ecd7fc0226f999bf
tree6576c62b0dfe06ac05af01055de1a1e8318a5743
parentdf70ef22c88eac65ee84201547084cf8f14d512e
Improve the example getpass() implementation to show an error return

Also, modernize the code, so that it isn't trying to store a size_t
into an int, and then check the int's sign. :/

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6271)

(cherry picked from commit c8c250333cd254ab3f4d709ebc5ed86a7c065721)
(cherry picked from commit 50d06d1c7d2682b0042e921a76beb509d7ea68e1)
doc/crypto/pem.pod