Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5  1.1.1.4  christos OSSL_STORE_LOADER,
      6  1.1.1.4  christos OSSL_STORE_LOADER_fetch,
      7  1.1.1.4  christos OSSL_STORE_LOADER_up_ref,
      8  1.1.1.4  christos OSSL_STORE_LOADER_free,
      9  1.1.1.4  christos OSSL_STORE_LOADER_get0_provider,
     10  1.1.1.4  christos OSSL_STORE_LOADER_get0_properties,
     11  1.1.1.4  christos OSSL_STORE_LOADER_is_a,
     12  1.1.1.4  christos OSSL_STORE_LOADER_get0_description,
     13  1.1.1.4  christos OSSL_STORE_LOADER_do_all_provided,
     14  1.1.1.4  christos OSSL_STORE_LOADER_names_do_all,
     15  1.1.1.4  christos OSSL_STORE_LOADER_CTX, OSSL_STORE_LOADER_new,
     16      1.1  christos OSSL_STORE_LOADER_get0_engine, OSSL_STORE_LOADER_get0_scheme,
     17  1.1.1.4  christos OSSL_STORE_LOADER_set_open, OSSL_STORE_LOADER_set_open_ex,
     18  1.1.1.4  christos OSSL_STORE_LOADER_set_attach, OSSL_STORE_LOADER_set_ctrl,
     19      1.1  christos OSSL_STORE_LOADER_set_expect, OSSL_STORE_LOADER_set_find,
     20      1.1  christos OSSL_STORE_LOADER_set_load, OSSL_STORE_LOADER_set_eof,
     21      1.1  christos OSSL_STORE_LOADER_set_error, OSSL_STORE_LOADER_set_close,
     22  1.1.1.4  christos OSSL_STORE_register_loader, OSSL_STORE_unregister_loader,
     23  1.1.1.4  christos OSSL_STORE_open_fn, OSSL_STORE_open_ex_fn,
     24  1.1.1.4  christos OSSL_STORE_attach_fn, OSSL_STORE_ctrl_fn,
     25      1.1  christos OSSL_STORE_expect_fn, OSSL_STORE_find_fn,
     26      1.1  christos OSSL_STORE_load_fn, OSSL_STORE_eof_fn, OSSL_STORE_error_fn,
     27      1.1  christos OSSL_STORE_close_fn - Types and functions to manipulate, register and
     28      1.1  christos unregister STORE loaders for different URI schemes
     29      1.1  christos 
     30      1.1  christos =head1 SYNOPSIS
     31      1.1  christos 
     32      1.1  christos  #include <openssl/store.h>
     33      1.1  christos 
     34      1.1  christos  typedef struct ossl_store_loader_st OSSL_STORE_LOADER;
     35      1.1  christos 
     36  1.1.1.4  christos  OSSL_STORE_LOADER *OSSL_STORE_LOADER_fetch(OSSL_LIB_CTX *libctx,
     37  1.1.1.4  christos                                             const char *scheme,
     38  1.1.1.4  christos                                             const char *properties);
     39  1.1.1.4  christos  int OSSL_STORE_LOADER_up_ref(OSSL_STORE_LOADER *loader);
     40  1.1.1.4  christos  void OSSL_STORE_LOADER_free(OSSL_STORE_LOADER *loader);
     41  1.1.1.4  christos  const OSSL_PROVIDER *OSSL_STORE_LOADER_get0_provider(const OSSL_STORE_LOADER *
     42  1.1.1.4  christos                                                  loader);
     43  1.1.1.4  christos  const char *OSSL_STORE_LOADER_get0_properties(const OSSL_STORE_LOADER *loader);
     44  1.1.1.4  christos  const char *OSSL_STORE_LOADER_get0_description(const OSSL_STORE_LOADER *loader);
     45  1.1.1.4  christos  int OSSL_STORE_LOADER_is_a(const OSSL_STORE_LOADER *loader,
     46  1.1.1.4  christos                             const char *scheme);
     47  1.1.1.4  christos  void OSSL_STORE_LOADER_do_all_provided(OSSL_LIB_CTX *libctx,
     48  1.1.1.4  christos                                         void (*user_fn)(OSSL_STORE_LOADER *loader,
     49  1.1.1.4  christos                                                    void *arg),
     50  1.1.1.4  christos                                         void *user_arg);
     51  1.1.1.4  christos  int OSSL_STORE_LOADER_names_do_all(const OSSL_STORE_LOADER *loader,
     52  1.1.1.4  christos                                     void (*fn)(const char *name, void *data),
     53  1.1.1.4  christos                                     void *data);
     54  1.1.1.4  christos 
     55  1.1.1.4  christos The following functions have been deprecated since OpenSSL 3.0, and can be
     56  1.1.1.4  christos hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
     57  1.1.1.4  christos see L<openssl_user_macros(7)>:
     58  1.1.1.4  christos 
     59      1.1  christos  OSSL_STORE_LOADER *OSSL_STORE_LOADER_new(ENGINE *e, const char *scheme);
     60      1.1  christos  const ENGINE *OSSL_STORE_LOADER_get0_engine(const OSSL_STORE_LOADER
     61      1.1  christos                                              *store_loader);
     62      1.1  christos  const char *OSSL_STORE_LOADER_get0_scheme(const OSSL_STORE_LOADER
     63      1.1  christos                                            *store_loader);
     64      1.1  christos 
     65      1.1  christos  /* struct ossl_store_loader_ctx_st is defined differently by each loader */
     66      1.1  christos  typedef struct ossl_store_loader_ctx_st OSSL_STORE_LOADER_CTX;
     67      1.1  christos 
     68  1.1.1.4  christos  typedef OSSL_STORE_LOADER_CTX *(*OSSL_STORE_open_fn)(
     69  1.1.1.4  christos      const char *uri, const UI_METHOD *ui_method, void *ui_data);
     70      1.1  christos  int OSSL_STORE_LOADER_set_open(OSSL_STORE_LOADER *store_loader,
     71      1.1  christos                                 OSSL_STORE_open_fn store_open_function);
     72  1.1.1.4  christos  typedef OSSL_STORE_LOADER_CTX *(*OSSL_STORE_open_ex_fn)(
     73  1.1.1.4  christos      const char *uri, const UI_METHOD *ui_method, void *ui_data);
     74  1.1.1.4  christos  int OSSL_STORE_LOADER_set_open_ex
     75  1.1.1.4  christos      (OSSL_STORE_LOADER *store_loader,
     76  1.1.1.4  christos       OSSL_STORE_open_ex_fn store_open_ex_function);
     77  1.1.1.4  christos  typedef OSSL_STORE_LOADER_CTX *(*OSSL_STORE_attach_fn)
     78  1.1.1.4  christos      (const OSSL_STORE_LOADER *loader, BIO *bio,
     79  1.1.1.4  christos       OSSL_LIB_CTX *libctx, const char *propq,
     80  1.1.1.4  christos       const UI_METHOD *ui_method, void *ui_data);
     81  1.1.1.4  christos  int OSSL_STORE_LOADER_set_attach(OSSL_STORE_LOADER *loader,
     82  1.1.1.4  christos                                   OSSL_STORE_attach_fn attach_function);
     83      1.1  christos  typedef int (*OSSL_STORE_ctrl_fn)(OSSL_STORE_LOADER_CTX *ctx, int cmd,
     84      1.1  christos                                    va_list args);
     85      1.1  christos  int OSSL_STORE_LOADER_set_ctrl(OSSL_STORE_LOADER *store_loader,
     86      1.1  christos                                 OSSL_STORE_ctrl_fn store_ctrl_function);
     87      1.1  christos  typedef int (*OSSL_STORE_expect_fn)(OSSL_STORE_LOADER_CTX *ctx, int expected);
     88      1.1  christos  int OSSL_STORE_LOADER_set_expect(OSSL_STORE_LOADER *loader,
     89      1.1  christos                                   OSSL_STORE_expect_fn expect_function);
     90      1.1  christos  typedef int (*OSSL_STORE_find_fn)(OSSL_STORE_LOADER_CTX *ctx,
     91      1.1  christos                                    OSSL_STORE_SEARCH *criteria);
     92      1.1  christos  int OSSL_STORE_LOADER_set_find(OSSL_STORE_LOADER *loader,
     93      1.1  christos                                 OSSL_STORE_find_fn find_function);
     94      1.1  christos  typedef OSSL_STORE_INFO *(*OSSL_STORE_load_fn)(OSSL_STORE_LOADER_CTX *ctx,
     95      1.1  christos                                                 UI_METHOD *ui_method,
     96      1.1  christos                                                 void *ui_data);
     97      1.1  christos  int OSSL_STORE_LOADER_set_load(OSSL_STORE_LOADER *store_loader,
     98      1.1  christos                                 OSSL_STORE_load_fn store_load_function);
     99      1.1  christos  typedef int (*OSSL_STORE_eof_fn)(OSSL_STORE_LOADER_CTX *ctx);
    100      1.1  christos  int OSSL_STORE_LOADER_set_eof(OSSL_STORE_LOADER *store_loader,
    101      1.1  christos                                OSSL_STORE_eof_fn store_eof_function);
    102      1.1  christos  typedef int (*OSSL_STORE_error_fn)(OSSL_STORE_LOADER_CTX *ctx);
    103      1.1  christos  int OSSL_STORE_LOADER_set_error(OSSL_STORE_LOADER *store_loader,
    104      1.1  christos                                  OSSL_STORE_error_fn store_error_function);
    105      1.1  christos  typedef int (*OSSL_STORE_close_fn)(OSSL_STORE_LOADER_CTX *ctx);
    106      1.1  christos  int OSSL_STORE_LOADER_set_close(OSSL_STORE_LOADER *store_loader,
    107      1.1  christos                                  OSSL_STORE_close_fn store_close_function);
    108      1.1  christos 
    109      1.1  christos  int OSSL_STORE_register_loader(OSSL_STORE_LOADER *loader);
    110      1.1  christos  OSSL_STORE_LOADER *OSSL_STORE_unregister_loader(const char *scheme);
    111      1.1  christos 
    112      1.1  christos =head1 DESCRIPTION
    113      1.1  christos 
    114  1.1.1.4  christos B<OSSL_STORE_LOADER> is a method for OSSL_STORE loaders, which implement
    115  1.1.1.4  christos OSSL_STORE_open(), OSSL_STORE_open_ex(), OSSL_STORE_load(),
    116  1.1.1.4  christos OSSL_STORE_eof(), OSSL_STORE_error() and OSSL_STORE_close() for specific
    117  1.1.1.4  christos storage schemes.
    118  1.1.1.4  christos 
    119  1.1.1.4  christos OSSL_STORE_LOADER_fetch() looks for an implementation for a storage
    120  1.1.1.4  christos I<scheme> within the providers that has been loaded into the B<OSSL_LIB_CTX>
    121  1.1.1.4  christos given by I<libctx>, and with the properties given by I<properties>.
    122  1.1.1.4  christos 
    123  1.1.1.4  christos OSSL_STORE_LOADER_up_ref() increments the reference count for the given
    124  1.1.1.4  christos I<loader>.
    125  1.1.1.4  christos 
    126  1.1.1.4  christos OSSL_STORE_LOADER_free() decrements the reference count for the given
    127  1.1.1.4  christos I<loader>, and when the count reaches zero, frees it.
    128  1.1.1.6  christos If the argument is NULL, nothing is done.
    129  1.1.1.4  christos 
    130  1.1.1.4  christos OSSL_STORE_LOADER_get0_provider() returns the provider of the given
    131  1.1.1.4  christos I<loader>.
    132  1.1.1.4  christos 
    133  1.1.1.4  christos OSSL_STORE_LOADER_get0_properties() returns the property definition associated
    134  1.1.1.4  christos with the given I<loader>.
    135      1.1  christos 
    136  1.1.1.4  christos OSSL_STORE_LOADER_is_a() checks if I<loader> is an implementation
    137  1.1.1.4  christos of an algorithm that's identifiable with I<scheme>.
    138      1.1  christos 
    139  1.1.1.4  christos OSSL_STORE_LOADER_get0_description() returns a description of the I<loader>, meant
    140  1.1.1.4  christos for display and human consumption.  The description is at the discretion of the
    141  1.1.1.4  christos I<loader> implementation.
    142  1.1.1.4  christos 
    143  1.1.1.4  christos OSSL_STORE_LOADER_do_all_provided() traverses all store implementations
    144  1.1.1.4  christos by all activated providers in the library context I<libctx>, and for each
    145  1.1.1.4  christos of the implementations, calls I<user_fn> with the implementation method and
    146  1.1.1.4  christos I<user_arg> as arguments.
    147  1.1.1.4  christos 
    148  1.1.1.4  christos OSSL_STORE_LOADER_names_do_all() traverses all names for the given
    149  1.1.1.4  christos I<loader>, and calls I<fn> with each name and I<data>.
    150  1.1.1.4  christos 
    151  1.1.1.4  christos =head2 Legacy Types and Functions (deprecated)
    152  1.1.1.4  christos 
    153  1.1.1.4  christos These functions help applications and engines to create loaders for
    154  1.1.1.4  christos schemes they support.  These are all deprecated and discouraged in favour of
    155  1.1.1.4  christos provider implementations, see L<provider-storemgmt(7)>.
    156      1.1  christos 
    157      1.1  christos B<OSSL_STORE_LOADER_CTX> is a type template, to be defined by each loader
    158  1.1.1.4  christos using C<struct ossl_store_loader_ctx_st { ... }>.
    159      1.1  christos 
    160  1.1.1.4  christos B<OSSL_STORE_open_fn>, B<OSSL_STORE_open_ex_fn>,
    161  1.1.1.4  christos B<OSSL_STORE_ctrl_fn>, B<OSSL_STORE_expect_fn>, B<OSSL_STORE_find_fn>,
    162  1.1.1.4  christos B<OSSL_STORE_load_fn>, B<OSSL_STORE_eof_fn>, and B<OSSL_STORE_close_fn>
    163      1.1  christos are the function pointer types used within a STORE loader.
    164      1.1  christos The functions pointed at define the functionality of the given loader.
    165      1.1  christos 
    166      1.1  christos =over 4
    167      1.1  christos 
    168  1.1.1.4  christos =item B<OSSL_STORE_open_fn> and B<OSSL_STORE_open_ex_fn>
    169      1.1  christos 
    170  1.1.1.4  christos B<OSSL_STORE_open_ex_fn> takes a URI and is expected to
    171  1.1.1.4  christos interpret it in the best manner possible according to the scheme the
    172  1.1.1.4  christos loader implements.  It also takes a B<UI_METHOD> and associated data,
    173  1.1.1.4  christos to be used any time something needs to be prompted for, as well as a
    174  1.1.1.4  christos library context I<libctx> with an associated property query I<propq>,
    175  1.1.1.4  christos to be used when fetching necessary algorithms to perform the loads.
    176      1.1  christos Furthermore, this function is expected to initialize what needs to be
    177  1.1.1.4  christos initialized, to create a private data store (B<OSSL_STORE_LOADER_CTX>,
    178  1.1.1.4  christos see above), and to return it.
    179      1.1  christos If something goes wrong, this function is expected to return NULL.
    180      1.1  christos 
    181  1.1.1.4  christos B<OSSL_STORE_open_fn> does the same thing as
    182  1.1.1.4  christos B<OSSL_STORE_open_ex_fn> but uses NULL for the library
    183  1.1.1.4  christos context I<libctx> and property query I<propq>.
    184  1.1.1.4  christos 
    185  1.1.1.4  christos =item B<OSSL_STORE_attach_fn>
    186  1.1.1.4  christos 
    187  1.1.1.4  christos This function takes a B<BIO>, otherwise works like
    188  1.1.1.4  christos B<OSSL_STORE_open_ex_fn>.
    189  1.1.1.4  christos 
    190      1.1  christos =item B<OSSL_STORE_ctrl_fn>
    191      1.1  christos 
    192      1.1  christos This function takes a B<OSSL_STORE_LOADER_CTX> pointer, a command number
    193  1.1.1.4  christos I<cmd> and a B<va_list> I<args> and is used to manipulate loader
    194      1.1  christos specific parameters.
    195      1.1  christos 
    196      1.1  christos =begin comment
    197      1.1  christos 
    198      1.1  christos Globally known command numbers are documented in L<OSSL_STORE_ctrl(3)>,
    199  1.1.1.4  christos along with what I<args> are expected with each of them.
    200      1.1  christos 
    201      1.1  christos =end comment
    202      1.1  christos 
    203      1.1  christos Loader specific command numbers must begin at B<OSSL_STORE_C_CUSTOM_START>.
    204      1.1  christos Any number below that is reserved for future globally known command
    205      1.1  christos numbers.
    206      1.1  christos 
    207      1.1  christos This function is expected to return 1 on success, 0 on error.
    208      1.1  christos 
    209      1.1  christos =item B<OSSL_STORE_expect_fn>
    210      1.1  christos 
    211      1.1  christos This function takes a B<OSSL_STORE_LOADER_CTX> pointer and a B<OSSL_STORE_INFO>
    212  1.1.1.4  christos identity I<expected>, and is used to tell the loader what object type is
    213      1.1  christos expected.
    214  1.1.1.4  christos I<expected> may be zero to signify that no specific object type is expected.
    215      1.1  christos 
    216      1.1  christos This function is expected to return 1 on success, 0 on error.
    217      1.1  christos 
    218      1.1  christos =item B<OSSL_STORE_find_fn>
    219      1.1  christos 
    220      1.1  christos This function takes a B<OSSL_STORE_LOADER_CTX> pointer and a
    221      1.1  christos B<OSSL_STORE_SEARCH> search criterion, and is used to tell the loader what
    222      1.1  christos to search for.
    223      1.1  christos 
    224  1.1.1.4  christos When called with the loader context being NULL, this function is expected
    225      1.1  christos to return 1 if the loader supports the criterion, otherwise 0.
    226      1.1  christos 
    227  1.1.1.4  christos When called with the loader context being something other than NULL, this
    228      1.1  christos function is expected to return 1 on success, 0 on error.
    229      1.1  christos 
    230      1.1  christos =item B<OSSL_STORE_load_fn>
    231      1.1  christos 
    232      1.1  christos This function takes a B<OSSL_STORE_LOADER_CTX> pointer and a B<UI_METHOD>
    233      1.1  christos with associated data.
    234      1.1  christos It's expected to load the next available data, mold it into a data
    235      1.1  christos structure that can be wrapped in a B<OSSL_STORE_INFO> using one of the
    236      1.1  christos L<OSSL_STORE_INFO(3)> functions.
    237      1.1  christos If no more data is available or an error occurs, this function is
    238      1.1  christos expected to return NULL.
    239      1.1  christos The B<OSSL_STORE_eof_fn> and B<OSSL_STORE_error_fn> functions must indicate if
    240      1.1  christos it was in fact the end of data or if an error occurred.
    241      1.1  christos 
    242      1.1  christos Note that this function retrieves I<one> data item only.
    243      1.1  christos 
    244      1.1  christos =item B<OSSL_STORE_eof_fn>
    245      1.1  christos 
    246      1.1  christos This function takes a B<OSSL_STORE_LOADER_CTX> pointer and is expected to
    247      1.1  christos return 1 to indicate that the end of available data has been reached.
    248      1.1  christos It is otherwise expected to return 0.
    249      1.1  christos 
    250      1.1  christos =item B<OSSL_STORE_error_fn>
    251      1.1  christos 
    252      1.1  christos This function takes a B<OSSL_STORE_LOADER_CTX> pointer and is expected to
    253      1.1  christos return 1 to indicate that an error occurred in a previous call to the
    254      1.1  christos B<OSSL_STORE_load_fn> function.
    255      1.1  christos It is otherwise expected to return 0.
    256      1.1  christos 
    257      1.1  christos =item B<OSSL_STORE_close_fn>
    258      1.1  christos 
    259      1.1  christos This function takes a B<OSSL_STORE_LOADER_CTX> pointer and is expected to
    260      1.1  christos close or shut down what needs to be closed, and finally free the
    261      1.1  christos contents of the B<OSSL_STORE_LOADER_CTX> pointer.
    262      1.1  christos It returns 1 on success and 0 on error.
    263      1.1  christos 
    264      1.1  christos =back
    265      1.1  christos 
    266      1.1  christos OSSL_STORE_LOADER_new() creates a new B<OSSL_STORE_LOADER>.
    267  1.1.1.4  christos It takes an B<ENGINE> I<e> and a string I<scheme>.
    268  1.1.1.4  christos I<scheme> must I<always> be set.
    269  1.1.1.4  christos Both I<e> and I<scheme> are used as is and must therefore be alive as
    270      1.1  christos long as the created loader is.
    271      1.1  christos 
    272  1.1.1.4  christos OSSL_STORE_LOADER_get0_engine() returns the engine of the I<store_loader>.
    273  1.1.1.4  christos OSSL_STORE_LOADER_get0_scheme() returns the scheme of the I<store_loader>.
    274      1.1  christos 
    275      1.1  christos OSSL_STORE_LOADER_set_open() sets the opener function for the
    276  1.1.1.4  christos I<store_loader>.
    277  1.1.1.4  christos 
    278  1.1.1.4  christos OSSL_STORE_LOADER_set_open_ex() sets the opener with library context
    279  1.1.1.4  christos function for the I<store_loader>.
    280  1.1.1.4  christos 
    281  1.1.1.4  christos OSSL_STORE_LOADER_set_attach() sets the attacher function for the
    282  1.1.1.4  christos I<store_loader>.
    283      1.1  christos 
    284      1.1  christos OSSL_STORE_LOADER_set_ctrl() sets the control function for the
    285  1.1.1.4  christos I<store_loader>.
    286      1.1  christos 
    287      1.1  christos OSSL_STORE_LOADER_set_expect() sets the expect function for the
    288  1.1.1.4  christos I<store_loader>.
    289      1.1  christos 
    290      1.1  christos OSSL_STORE_LOADER_set_load() sets the loader function for the
    291  1.1.1.4  christos I<store_loader>.
    292      1.1  christos 
    293      1.1  christos OSSL_STORE_LOADER_set_eof() sets the end of file checker function for the
    294  1.1.1.4  christos I<store_loader>.
    295      1.1  christos 
    296      1.1  christos OSSL_STORE_LOADER_set_close() sets the closing function for the
    297  1.1.1.4  christos I<store_loader>.
    298      1.1  christos 
    299  1.1.1.4  christos OSSL_STORE_LOADER_free() frees the given I<store_loader>.
    300  1.1.1.6  christos If the argument is NULL, nothing is done.
    301      1.1  christos 
    302  1.1.1.4  christos OSSL_STORE_register_loader() register the given I<store_loader> and
    303  1.1.1.4  christos thereby makes it available for use with OSSL_STORE_open(),
    304  1.1.1.4  christos OSSL_STORE_open_ex(), OSSL_STORE_load(), OSSL_STORE_eof()
    305  1.1.1.4  christos and OSSL_STORE_close().
    306      1.1  christos 
    307      1.1  christos OSSL_STORE_unregister_loader() unregister the store loader for the given
    308  1.1.1.4  christos I<scheme>.
    309      1.1  christos 
    310  1.1.1.4  christos =head1 RETURN VALUES
    311      1.1  christos 
    312  1.1.1.4  christos OSSL_STORE_LOADER_fetch() returns a pointer to an OSSL_STORE_LOADER object,
    313  1.1.1.4  christos or NULL on error.
    314      1.1  christos 
    315  1.1.1.4  christos OSSL_STORE_LOADER_up_ref() returns 1 on success, or 0 on error.
    316  1.1.1.4  christos 
    317  1.1.1.4  christos OSSL_STORE_LOADER_names_do_all() returns 1 if the callback was called for all
    318  1.1.1.4  christos names. A return value of 0 means that the callback was not called for any names.
    319      1.1  christos 
    320  1.1.1.4  christos OSSL_STORE_LOADER_free() doesn't return any value.
    321  1.1.1.4  christos 
    322  1.1.1.4  christos OSSL_STORE_LOADER_get0_provider() returns a pointer to a provider object, or
    323  1.1.1.4  christos NULL on error.
    324  1.1.1.4  christos 
    325  1.1.1.4  christos OSSL_STORE_LOADER_get0_properties() returns a pointer to a property
    326  1.1.1.4  christos definition string, or NULL on error.
    327  1.1.1.4  christos 
    328  1.1.1.4  christos OSSL_STORE_LOADER_is_a() returns 1 if I<loader> was identifiable,
    329  1.1.1.4  christos otherwise 0.
    330  1.1.1.4  christos 
    331  1.1.1.5  christos OSSL_STORE_LOADER_get0_description() returns a pointer to a description, or NULL if
    332  1.1.1.4  christos there isn't one.
    333  1.1.1.4  christos 
    334  1.1.1.4  christos The functions with the types B<OSSL_STORE_open_fn>,
    335  1.1.1.4  christos B<OSSL_STORE_open_ex_fn>, B<OSSL_STORE_ctrl_fn>,
    336  1.1.1.4  christos B<OSSL_STORE_expect_fn>, B<OSSL_STORE_load_fn>, B<OSSL_STORE_eof_fn>
    337  1.1.1.4  christos and B<OSSL_STORE_close_fn> have the same return values as OSSL_STORE_open(),
    338  1.1.1.4  christos OSSL_STORE_open_ex(), OSSL_STORE_ctrl(), OSSL_STORE_expect(),
    339      1.1  christos OSSL_STORE_load(), OSSL_STORE_eof() and OSSL_STORE_close(), respectively.
    340      1.1  christos 
    341      1.1  christos OSSL_STORE_LOADER_new() returns a pointer to a B<OSSL_STORE_LOADER> on success,
    342  1.1.1.4  christos or NULL on failure.
    343      1.1  christos 
    344  1.1.1.4  christos OSSL_STORE_LOADER_set_open(), OSSL_STORE_LOADER_set_open_ex(),
    345  1.1.1.4  christos OSSL_STORE_LOADER_set_ctrl(), OSSL_STORE_LOADER_set_load(),
    346  1.1.1.4  christos OSSL_STORE_LOADER_set_eof() and OSSL_STORE_LOADER_set_close() return 1
    347  1.1.1.4  christos on success, or 0 on failure.
    348      1.1  christos 
    349      1.1  christos OSSL_STORE_register_loader() returns 1 on success, or 0 on failure.
    350      1.1  christos 
    351      1.1  christos OSSL_STORE_unregister_loader() returns the unregistered loader on success,
    352  1.1.1.4  christos or NULL on failure.
    353      1.1  christos 
    354      1.1  christos =head1 SEE ALSO
    355      1.1  christos 
    356  1.1.1.4  christos L<ossl_store(7)>, L<OSSL_STORE_open(3)>, L<OSSL_LIB_CTX(3)>,
    357  1.1.1.4  christos L<provider-storemgmt(7)>
    358      1.1  christos 
    359      1.1  christos =head1 HISTORY
    360      1.1  christos 
    361  1.1.1.4  christos OSSL_STORE_LOADER_fetch(), OSSL_STORE_LOADER_up_ref(),
    362  1.1.1.6  christos OSSL_STORE_LOADER_get0_provider(), OSSL_STORE_LOADER_get0_properties(),
    363  1.1.1.6  christos OSSL_STORE_LOADER_get0_description(), OSSL_STORE_LOADER_is_a(),
    364  1.1.1.6  christos OSSL_STORE_LOADER_do_all_provided() and OSSL_STORE_LOADER_names_do_all()
    365  1.1.1.6  christos were added in OpenSSL 3.0.
    366  1.1.1.4  christos 
    367  1.1.1.6  christos B<OSSL_STORE_LOADER> and OSSL_STORE_LOADER_free() were added in OpenSSL
    368  1.1.1.6  christos 1.1.1.
    369  1.1.1.4  christos 
    370  1.1.1.6  christos OSSL_STORE_LOADER_set_open_ex() and OSSL_STORE_open_ex_fn() were added in
    371  1.1.1.6  christos OpenSSL 3.0, and are deprecated.
    372  1.1.1.6  christos 
    373  1.1.1.6  christos B<OSSL_STORE_LOADER_CTX>, OSSL_STORE_LOADER_new(),
    374  1.1.1.4  christos OSSL_STORE_LOADER_set0_scheme(), OSSL_STORE_LOADER_get0_scheme(),
    375  1.1.1.4  christos OSSL_STORE_LOADER_get0_engine(), OSSL_STORE_LOADER_set_expect(),
    376  1.1.1.4  christos OSSL_STORE_LOADER_set_find(), OSSL_STORE_LOADER_set_attach(),
    377  1.1.1.4  christos OSSL_STORE_LOADER_set_open_ex(), OSSL_STORE_LOADER_set_open(),
    378  1.1.1.4  christos OSSL_STORE_LOADER_set_ctrl(),
    379  1.1.1.4  christos OSSL_STORE_LOADER_set_load(), OSSL_STORE_LOADER_set_eof(),
    380  1.1.1.6  christos OSSL_STORE_LOADER_set_close(),
    381  1.1.1.4  christos OSSL_STORE_register_loader(), OSSL_STORE_LOADER_set_error(),
    382      1.1  christos OSSL_STORE_unregister_loader(), OSSL_STORE_open_fn(), OSSL_STORE_ctrl_fn(),
    383      1.1  christos OSSL_STORE_load_fn(), OSSL_STORE_eof_fn() and OSSL_STORE_close_fn()
    384  1.1.1.4  christos were added in OpenSSL 1.1.1, and became deprecated in OpenSSL 3.0.
    385      1.1  christos 
    386      1.1  christos =head1 COPYRIGHT
    387      1.1  christos 
    388  1.1.1.6  christos Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved.
    389      1.1  christos 
    390  1.1.1.4  christos Licensed under the Apache License 2.0 (the "License").  You may not use
    391      1.1  christos this file except in compliance with the License.  You can obtain a copy
    392      1.1  christos in the file LICENSE in the source distribution or at
    393      1.1  christos L<https://www.openssl.org/source/license.html>.
    394      1.1  christos 
    395      1.1  christos =cut
    396