]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix OSSL_STORE to consider cached info in the EOF check.
authorRichard Levitte <levitte@openssl.org>
Thu, 10 Jul 2025 15:55:50 +0000 (17:55 +0200)
committerDr. David von Oheimb <dev@ddvo.net>
Sat, 26 Jul 2025 09:33:56 +0000 (11:33 +0200)
commit1f3af48c312a5f94612e9a822b78a3afdadc27c1
tree032b42bde703baac99fadf7f2afb1881958fbb40
parent9665baf0f981d068a36350873450cf3d9d0217d7
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)
crypto/store/store_lib.c