Closed xypron closed 2 years ago
Thanks. I think we need to check for either "bad" or "password" then. In old versions of openssl the message is something like "bad decrypt"
OpenSSL 3.0.1 gives us "bad password". "bad" and "empty" should be good values for testing.
Thanks!
With OpenSSL 3.0.2 read_key() with a NULL password will create an error message like
which does not contain the word "bad". Adjust the test to look for "password" instead.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com