diff options
author | Richard Levitte <levitte@openssl.org> | 2016-12-11 07:02:06 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-06-29 11:55:32 +0200 |
commit | f91ded1fc40bbe3950ae3e971d4c84a2edf039f8 (patch) | |
tree | 0cc97813c1ce54d941eb2560d79b83147454e43c /include | |
parent | Test that storeutl with a directory path works as expected (diff) | |
download | openssl-f91ded1fc40bbe3950ae3e971d4c84a2edf039f8.tar.xz openssl-f91ded1fc40bbe3950ae3e971d4c84a2edf039f8.zip |
STORE: add ENGINE information to loaders
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3542)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/store.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/openssl/store.h b/include/openssl/store.h index 35f62ec9d3..d3947dfc0f 100644 --- a/include/openssl/store.h +++ b/include/openssl/store.h @@ -159,7 +159,8 @@ void OSSL_STORE_INFO_free(OSSL_STORE_INFO *info); */ typedef struct ossl_store_loader_st OSSL_STORE_LOADER; -OSSL_STORE_LOADER *OSSL_STORE_LOADER_new(const char *scheme); +OSSL_STORE_LOADER *OSSL_STORE_LOADER_new(ENGINE *e, const char *scheme); +const ENGINE *OSSL_STORE_LOADER_get0_engine(const OSSL_STORE_LOADER *loader); const char *OSSL_STORE_LOADER_get0_scheme(const OSSL_STORE_LOADER *loader); /* struct ossl_store_loader_ctx_st is defined differently by each loader */ typedef struct ossl_store_loader_ctx_st OSSL_STORE_LOADER_CTX; @@ -193,6 +194,14 @@ void OSSL_STORE_LOADER_free(OSSL_STORE_LOADER *loader); int OSSL_STORE_register_loader(OSSL_STORE_LOADER *loader); OSSL_STORE_LOADER *OSSL_STORE_unregister_loader(const char *scheme); +/*- + * Functions to list STORE loaders + * ------------------------------- + */ +int OSSL_STORE_do_all_loaders(void (*do_function) (const OSSL_STORE_LOADER + *loader, void *do_arg), + void *do_arg); + /* * Error strings |