]>
Commit | Line | Data |
---|---|---|
1bdbdaff P |
1 | /* |
2 | * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. | |
3 | * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. | |
4 | * | |
5 | * Licensed under the Apache License 2.0 (the "License"). You may not use | |
6 | * this file except in compliance with the License. You can obtain a copy | |
7 | * in the file LICENSE in the source distribution or at | |
8 | * https://www.openssl.org/source/license.html | |
9 | */ | |
10 | ||
ae4186b0 DMSP |
11 | #ifndef OSSL_INTERNAL_PROPERTY_H |
12 | # define OSSL_INTERNAL_PROPERTY_H | |
1bdbdaff | 13 | |
1aedc35f MC |
14 | #include "internal/cryptlib.h" |
15 | ||
1bdbdaff P |
16 | typedef struct ossl_method_store_st OSSL_METHOD_STORE; |
17 | ||
505f4660 MC |
18 | /* Initialisation */ |
19 | int ossl_property_parse_init(OPENSSL_CTX *ctx); | |
20 | ||
1bdbdaff | 21 | /* Implementation store functions */ |
1aedc35f | 22 | OSSL_METHOD_STORE *ossl_method_store_new(OPENSSL_CTX *ctx); |
1bdbdaff | 23 | void ossl_method_store_free(OSSL_METHOD_STORE *store); |
c1d56231 RL |
24 | int ossl_method_store_add(OSSL_METHOD_STORE *store, const OSSL_PROVIDER *prov, |
25 | int nid, const char *properties, void *method, | |
26 | int (*method_up_ref)(void *), | |
27 | void (*method_destruct)(void *)); | |
28 | int ossl_method_store_remove(OSSL_METHOD_STORE *store, int nid, | |
29 | const void *method); | |
1bdbdaff P |
30 | int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid, |
31 | const char *prop_query, void **result); | |
32 | int ossl_method_store_set_global_properties(OSSL_METHOD_STORE *store, | |
33 | const char *prop_query); | |
34 | ||
c2969ff6 | 35 | /* property query cache functions */ |
1bdbdaff P |
36 | int ossl_method_store_cache_get(OSSL_METHOD_STORE *store, int nid, |
37 | const char *prop_query, void **result); | |
38 | int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, int nid, | |
bdbf2df2 P |
39 | const char *prop_query, void *result, |
40 | int (*method_up_ref)(void *), | |
41 | void (*method_destruct)(void *)); | |
1bdbdaff | 42 | #endif |