property_local.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2019-2020 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. #include <openssl/crypto.h>
  11. #include "internal/property.h"
  12. typedef int OSSL_PROPERTY_IDX;
  13. /* Property string functions */
  14. OSSL_PROPERTY_IDX ossl_property_name(OPENSSL_CTX *ctx, const char *s,
  15. int create);
  16. OSSL_PROPERTY_IDX ossl_property_value(OPENSSL_CTX *ctx, const char *s,
  17. int create);
  18. /* Property list functions */
  19. void ossl_property_free(OSSL_PROPERTY_LIST *p);
  20. int ossl_property_has_optional(const OSSL_PROPERTY_LIST *query);
  21. /* Property definition cache functions */
  22. OSSL_PROPERTY_LIST *ossl_prop_defn_get(OPENSSL_CTX *ctx, const char *prop);
  23. int ossl_prop_defn_set(OPENSSL_CTX *ctx, const char *prop,
  24. OSSL_PROPERTY_LIST *pl);
  25. /* Property cache lock / unlock */
  26. int ossl_property_write_lock(OSSL_METHOD_STORE *);
  27. int ossl_property_read_lock(OSSL_METHOD_STORE *);
  28. int ossl_property_unlock(OSSL_METHOD_STORE *);