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:39:44 +0000 (10:39 +0200)
commit4977b4e9281c981efcf6a8b31378b8bbd6a8a96f
treefc879fb7393c71a6521318b8d544f2d3cf61dd45
parente6a833cb97ed762408b57ea3efa83bd10c1d2a78
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)
crypto/pem/pem_lib.c