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:49:49 +0000 (10:49 +0200)
commit3986986eba6c4e70499a8d24aa8d00e934b16d91
tree4ba1661ed70a88d0f5ac42db7e6cfa355ceb7e78
parente77017b39c60ddbb4775e6b0d45a81fe7128caf7
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