OSSL_STORE: Make it possible to attach an OSSL_STORE to an opened BIO
[oweals/openssl.git] / crypto / store / store_register.c
index 399ec8c625fd025625221e0c8d1161febd7ec473..45fbd2fa1c340e5a62f9cffdda348e4390e39b0f 100644 (file)
@@ -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)
 {