openssl/crypto/store
Richard Levitte ecd699b6da STORE: Fix OSSL_STORE_open_ex() error reporting
OSSL_STORE_open_ex() could result in reports like this:

    80722AA3927F0000:error:80000002:system library:file_open_ex:No such file or directory:engines/e_loader_attic.c:1016:calling stat(file:test/blahdibleh.der)
    80722AA3927F0000:error:41800069:lib(131)::path must be absolute:engines/e_loader_attic.c:1010:test/blahdibleh.der
    80722AA3927F0000:error:1600007B:STORE routines:OSSL_STORE_open_ex:no loaders found:crypto/store/store_lib.c:148:No store loaders were found. For standard store loaders you need at least one of the default or base providers available. Did you forget to load them?

The last one turns out to be a bit too generically reported.  It
should only be reported when no loader were loaded at all, not when
loader_ctx happens to be NULL (which may happen for other reasons).

We also move the helpful message to the OSSL_STORE_LOADER fetcher.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15820)
2021-06-20 19:59:40 +02:00
..
build.info
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 STORE: Fix OSSL_STORE_open_ex() error reporting 2021-06-20 19:59:40 +02:00
store_local.h store: remove TODOs 2021-06-02 16:30:15 +10:00
store_meth.c STORE: Fix OSSL_STORE_open_ex() error reporting 2021-06-20 19:59:40 +02:00
store_register.c Update copyright year 2021-04-08 13:04:41 +01:00
store_result.c store: remove TODOs 2021-06-02 16:30:15 +10:00
store_strings.c