openssl/crypto/store
Richard Levitte 17dd9a2c62 OSSL_STORE: Fix error flag clearing and setting (provider path only)
When the provider's load function returned with an error, the libcrypto
error flag was only set if EOF hadn't been reached.  This is troublesome,
as an error can very well occur during the last load before EOF is reached!

Also, the error flag was never reset, even though documentation specifies
that it should indicate an error in the last load (i.e. not the one before
that).

Fixes #21968

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21976)
2023-09-08 08:32:58 +02:00
..
build.info STORE: Deprecate legacy / ENGINE functions 2020-09-03 17:48:32 +02:00
store_err.c err: rename err_load_xxx_strings_int functions 2021-05-26 13:01:47 +10:00
store_init.c Update copyright year 2021-04-08 13:04:41 +01:00
store_lib.c OSSL_STORE: Fix error flag clearing and setting (provider path only) 2023-09-08 08:32:58 +02:00
store_local.h Copyright year updates 2023-09-07 09:59:15 +01:00
store_meth.c Copyright year updates 2023-09-07 09:59:15 +01:00
store_register.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
store_result.c Copyright year updates 2023-09-07 09:59:15 +01:00
store_strings.c Update copyright year 2020-10-15 14:10:06 +01:00