2 * Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #include "internal/thread_once.h"
11 #include <openssl/dsa.h>
12 #include <openssl/engine.h>
13 #include <openssl/evp.h>
14 #include <openssl/lhash.h>
15 #include <openssl/x509.h>
16 #include <openssl/store.h>
19 * OSSL_STORE_INFO stuff
20 * ---------------------
23 struct ossl_store_info_st {
29 } name; /* when type == OSSL_STORE_INFO_NAME */
31 EVP_PKEY *params; /* when type == OSSL_STORE_INFO_PARAMS */
32 EVP_PKEY *pkey; /* when type == OSSL_STORE_INFO_PKEY */
33 X509 *x509; /* when type == OSSL_STORE_INFO_CERT */
34 X509_CRL *crl; /* when type == OSSL_STORE_INFO_CRL */
35 void *data; /* used internally */
39 DEFINE_STACK_OF(OSSL_STORE_INFO)
42 * OSSL_STORE_LOADER stuff
43 * -----------------------
46 int ossl_store_register_loader_int(OSSL_STORE_LOADER *loader);
47 OSSL_STORE_LOADER *ossl_store_unregister_loader_int(const char *scheme);
50 struct ossl_store_loader_st {
52 OSSL_STORE_open_fn open;
53 OSSL_STORE_ctrl_fn ctrl;
54 OSSL_STORE_load_fn load;
55 OSSL_STORE_eof_fn eof;
56 OSSL_STORE_error_fn error;
57 OSSL_STORE_close_fn close;
59 DEFINE_LHASH_OF(OSSL_STORE_LOADER);
61 const OSSL_STORE_LOADER *ossl_store_get0_loader_int(const char *scheme);
62 void ossl_store_destroy_loaders_int(void);
65 * OSSL_STORE init stuff
66 * ---------------------
69 int ossl_store_init_once(void);