openssl/crypto/store
Richard Levitte 1f3af48c31 Fix OSSL_STORE to consider cached info in the EOF check.
OSSL_STORE_load() called OSSL_STORE_eof() before checking if there is
cached OSSL_STORE_INFO to consider.  To fix this issue, the cached info
check is moved to OSSL_STORE_eof(), as that seems to make most common
sense.

This solves an issue with PKCS#12 files, where the cached info was never
considered because the underlying file IO layer signaled that EOF is
reached.

Fixes #28010

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/28016)
2025-07-26 11:33:56 +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 Fix OSSL_STORE to consider cached info in the EOF check. 2025-07-26 11:33:56 +02:00
store_local.h Allow to pass a passprase callback at store open 2023-09-19 12:24:07 +02:00
store_meth.c Add verbose output to 'openssl list -store-loaders' 2025-04-28 17:19:55 +02:00
store_register.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
store_result.c libapps + libcrypto: Silence warnings on Win64 builds 2025-07-02 17:26:26 +02:00
store_strings.c Copyright year updates 2024-09-05 09:35:49 +02:00