diff options
author | Richard Levitte <levitte@openssl.org> | 2020-01-10 17:50:03 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-01-21 14:05:39 +0100 |
commit | 0b9dd3842f9bbe7a7c290187056a96827d848f52 (patch) | |
tree | 9f693c50a02aedffdc2e0090aa5287917dd57453 /crypto/provider_core.c | |
parent | 967ef73013becef2aec3439f8c45204b24121018 (diff) |
EVP: clear error when falling back from failed EVP_KEYMGMT_fetch()
Since we're falling back to legacy, this isn't an error any more.
Among others the failed EVP_KEYMGMT_fetch() error shadows other errors
produced by the legacy code, which disrupts our test/evp_test runs.
We use the error stack mark to restore the error stack just right,
i.e. ERR_set_mark(), ERR_clear_last_mark() and ERR_pop_to_mark()
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10803)
Diffstat (limited to 'crypto/provider_core.c')
0 files changed, 0 insertions, 0 deletions