2 * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
3 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
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
11 #include <openssl/crypto.h>
12 #include "internal/property.h"
14 typedef struct ossl_property_list_st OSSL_PROPERTY_LIST;
15 typedef int OSSL_PROPERTY_IDX;
17 /* Initialisation and finalisation for subsystem */
18 int ossl_method_store_init(void);
19 void ossl_method_store_cleanup(void);
21 /* Property string functions */
22 OSSL_PROPERTY_IDX ossl_property_name(const char *s, int create);
23 OSSL_PROPERTY_IDX ossl_property_value(const char *s, int create);
24 int ossl_property_string_init(void);
25 void ossl_property_string_cleanup(void);
27 /* Property list functions */
28 int ossl_property_parse_init(void);
29 void ossl_property_free(OSSL_PROPERTY_LIST *p);
30 int ossl_property_match(const OSSL_PROPERTY_LIST *query,
31 const OSSL_PROPERTY_LIST *defn);
32 OSSL_PROPERTY_LIST *ossl_property_merge(const OSSL_PROPERTY_LIST *a,
33 const OSSL_PROPERTY_LIST *b);
35 /* Property definition functions */
36 OSSL_PROPERTY_LIST *ossl_parse_property(const char *s);
38 /* Property query functions */
39 OSSL_PROPERTY_LIST *ossl_parse_query(const char *s);
41 /* Property definition cache functions */
42 int ossl_prop_defn_init(void);
43 void ossl_prop_defn_cleanup(void);
44 OSSL_PROPERTY_LIST *ossl_prop_defn_get(const char *prop);
45 int ossl_prop_defn_set(const char *prop, OSSL_PROPERTY_LIST *pl);
47 /* Property cache lock / unlock */
48 int ossl_property_write_lock(OSSL_METHOD_STORE *);
49 int ossl_property_read_lock(OSSL_METHOD_STORE *);
50 int ossl_property_unlock(OSSL_METHOD_STORE *);