]>
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 | ||
11 | #include <openssl/crypto.h> | |
12 | #include "internal/property.h" | |
13 | ||
14 | typedef struct ossl_property_list_st OSSL_PROPERTY_LIST; | |
15 | typedef int OSSL_PROPERTY_IDX; | |
16 | ||
1bdbdaff | 17 | /* Property string functions */ |
1aedc35f MC |
18 | OSSL_PROPERTY_IDX ossl_property_name(OPENSSL_CTX *ctx, const char *s, |
19 | int create); | |
20 | OSSL_PROPERTY_IDX ossl_property_value(OPENSSL_CTX *ctx, const char *s, | |
21 | int create); | |
1bdbdaff P |
22 | |
23 | /* Property list functions */ | |
1bdbdaff | 24 | void ossl_property_free(OSSL_PROPERTY_LIST *p); |
da89ac0b P |
25 | int ossl_property_has_optional(const OSSL_PROPERTY_LIST *query); |
26 | int ossl_property_match_count(const OSSL_PROPERTY_LIST *query, | |
27 | const OSSL_PROPERTY_LIST *defn); | |
1bdbdaff P |
28 | OSSL_PROPERTY_LIST *ossl_property_merge(const OSSL_PROPERTY_LIST *a, |
29 | const OSSL_PROPERTY_LIST *b); | |
30 | ||
31 | /* Property definition functions */ | |
1aedc35f | 32 | OSSL_PROPERTY_LIST *ossl_parse_property(OPENSSL_CTX *ctx, const char *s); |
1bdbdaff P |
33 | |
34 | /* Property query functions */ | |
1aedc35f | 35 | OSSL_PROPERTY_LIST *ossl_parse_query(OPENSSL_CTX *ctx, const char *s); |
1bdbdaff P |
36 | |
37 | /* Property definition cache functions */ | |
1aedc35f MC |
38 | OSSL_PROPERTY_LIST *ossl_prop_defn_get(OPENSSL_CTX *ctx, const char *prop); |
39 | int ossl_prop_defn_set(OPENSSL_CTX *ctx, const char *prop, | |
40 | OSSL_PROPERTY_LIST *pl); | |
1bdbdaff P |
41 | |
42 | /* Property cache lock / unlock */ | |
43 | int ossl_property_write_lock(OSSL_METHOD_STORE *); | |
44 | int ossl_property_read_lock(OSSL_METHOD_STORE *); | |
45 | int ossl_property_unlock(OSSL_METHOD_STORE *); | |
46 |