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

Name

Description

bio

BIO supplying store data (contents determine safety of this call).

scheme

URI scheme selecting the loader (for example "file").

libctx

Library context, or NULL for the default.

propq

Optional property query for fetching the loader, or NULL.

ui_method

UI method for passwords or other interactive input, or NULL.

ui_data

Application data passed to ui_method whenever it is used.

params

Optional OSSL_PARAM array passed to the loader, or NULL.

post_process

Optional post‐process callback for each loaded object, or NULL.

post_process_data

Application pointer passed to post_process.

Created with MrDocs