diff options
author | Richard Levitte <levitte@openssl.org> | 2018-10-12 16:46:41 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-05-13 18:51:14 +0200 |
commit | 6ab6ecfd6d2d659326f427dceb1b65ae1b4b012b (patch) | |
tree | 5c720e17e9d40fc415ab3049fb056bd9aa590cf4 /crypto/store/store_register.c | |
parent | 78906fff4a6cfd5857045df770b47ae9ebcf0766 (diff) |
OSSL_STORE: Make it possible to attach an OSSL_STORE to an opened BIO
This capability existed internally, and is now made public.
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/11756)
Diffstat (limited to 'crypto/store/store_register.c')
-rw-r--r-- | crypto/store/store_register.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/store/store_register.c b/crypto/store/store_register.c index 399ec8c625..45fbd2fa1c 100644 --- a/crypto/store/store_register.c +++ b/crypto/store/store_register.c @@ -71,6 +71,13 @@ int OSSL_STORE_LOADER_set_open(OSSL_STORE_LOADER *loader, return 1; } +int OSSL_STORE_LOADER_set_attach(OSSL_STORE_LOADER *loader, + OSSL_STORE_attach_fn attach_function) +{ + loader->attach = attach_function; + return 1; +} + int OSSL_STORE_LOADER_set_ctrl(OSSL_STORE_LOADER *loader, OSSL_STORE_ctrl_fn ctrl_function) { |