2 * Copyright 2019-2020 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 int OSSL_PROPERTY_IDX;
16 /* Property string functions */
17 OSSL_PROPERTY_IDX ossl_property_name(OSSL_LIB_CTX *ctx, const char *s,
19 OSSL_PROPERTY_IDX ossl_property_value(OSSL_LIB_CTX *ctx, const char *s,
22 /* Property list functions */
23 void ossl_property_free(OSSL_PROPERTY_LIST *p);
24 int ossl_property_has_optional(const OSSL_PROPERTY_LIST *query);
26 /* Property definition cache functions */
27 OSSL_PROPERTY_LIST *ossl_prop_defn_get(OSSL_LIB_CTX *ctx, const char *prop);
28 int ossl_prop_defn_set(OSSL_LIB_CTX *ctx, const char *prop,
29 OSSL_PROPERTY_LIST *pl);
31 /* Property cache lock / unlock */
32 int ossl_property_write_lock(OSSL_METHOD_STORE *);
33 int ossl_property_read_lock(OSSL_METHOD_STORE *);
34 int ossl_property_unlock(OSSL_METHOD_STORE *);