PEM_def_callback(): don't loop because of too short password given
authorRichard Levitte <levitte@openssl.org>
Wed, 25 Apr 2018 11:57:39 +0000 (13:57 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 26 Apr 2018 08:44:24 +0000 (10:44 +0200)
commit04858a4e3d7629b0c237160636b69bf339611c44
treec2d167e1931661507ab2a721fd92ff2155f906fd
parent00937429502a160fbb96a47a47e6a0a7f7a6e9ca
PEM_def_callback(): don't loop because of too short password given

That error is already caught by EVP_read_pw_string_min, and causes
this function to return -1, so the code detecting too short passwords
in this function is practically dead.

Fixes #5465

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6080)

(cherry picked from commit 4977b4e9281c981efcf6a8b31378b8bbd6a8a96f)
crypto/pem/pem_lib.c