2
0

cryptlib.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #ifndef OSSL_CRYPTO_CRYPTLIB_H
  10. # define OSSL_CRYPTO_CRYPTLIB_H
  11. # pragma once
  12. # include <openssl/core.h>
  13. # include "internal/cryptlib.h"
  14. /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
  15. int ossl_init_thread_start(const void *index, void *arg,
  16. OSSL_thread_stop_handler_fn handfn);
  17. int ossl_init_thread_deregister(void *index);
  18. int ossl_init_thread(void);
  19. void ossl_cleanup_thread(void);
  20. void ossl_ctx_thread_stop(OSSL_LIB_CTX *ctx);
  21. /*
  22. * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
  23. * are those omitted from crypto.h because they are "reserved for internal
  24. * use".
  25. */
  26. # define OPENSSL_INIT_BASE_ONLY 0x00040000L
  27. void ossl_trace_cleanup(void);
  28. void ossl_malloc_setup_failures(void);
  29. int ossl_crypto_alloc_ex_data_intern(int class_index, void *obj,
  30. CRYPTO_EX_DATA *ad, int idx);
  31. #endif /* OSSL_CRYPTO_CRYPTLIB_H */