Skip to content

Commit

Permalink
OSSL_STORE_open_ex(): Prevent spurious error: unregistered scheme=file
Browse files Browse the repository at this point in the history
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from openssl#16452)
  • Loading branch information
DDvO committed Jan 7, 2022
1 parent d4d8f16 commit 7c64ca7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/store/store_lib.c
Expand Up @@ -114,13 +114,17 @@ OSSL_STORE_open_ex(const char *uri, OSSL_LIB_CTX *libctx, const char *propq,
scheme = schemes[i];
OSSL_TRACE1(STORE, "Looking up scheme %s\n", scheme);
#ifndef OPENSSL_NO_DEPRECATED_3_0
ERR_set_mark();
if ((loader = ossl_store_get0_loader_int(scheme)) != NULL) {
ERR_clear_last_mark();
no_loader_found = 0;
if (loader->open_ex != NULL)
loader_ctx = loader->open_ex(loader, uri, libctx, propq,
ui_method, ui_data);
else
loader_ctx = loader->open(loader, uri, ui_method, ui_data);
} else {
ERR_pop_to_mark();
}
#endif
if (loader == NULL
Expand Down

0 comments on commit 7c64ca7

Please sign in to comment.