OSSL_STORE_attach

Open an OSSL_STORE channel that reads from a BIO using a named scheme.

Synopsis

Declared in <openssl/store.h>

OSSL_STORE_CTX*
OSSL_STORE_attach(
    BIO* bio,
    char const* scheme,
    OSSL_LIB_CTX* libctx,
    char const* propq,
    UI_METHOD const* ui_method,
    void* ui_data,
    OSSL_PARAM const params[],
    OSSL_STORE_post_process_info_fn post_process,
    void* post_process_data);

Return Value

New store context, or NULL on error; free with OSSL_STORE_close().

Parameters

NameDescription
bioBIO supplying store data (contents determine safety of this call).
schemeURI scheme selecting the loader (for example "file").
libctxLibrary context, or NULL for the default.
propqOptional property query for fetching the loader, or NULL.
ui_methodUI method for passwords or other interactive input, or NULL.
ui_dataApplication data passed to ui_method whenever it is used.
paramsOptional OSSL_PARAM array passed to the loader, or NULL.
post_processOptional post-process callback for each loaded object, or NULL.
post_process_dataApplication pointer passed to post_process.