2 * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
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
10 #ifndef OSSL_CRYPTO_CRYPTLIB_H
11 # define OSSL_CRYPTO_CRYPTLIB_H
14 # include <openssl/core.h>
15 # include "internal/cryptlib.h"
17 /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
19 int ossl_init_thread_start(const void *index, void *arg,
20 OSSL_thread_stop_handler_fn handfn);
21 int ossl_init_thread_deregister(void *index);
22 int ossl_init_thread(void);
23 void ossl_cleanup_thread(void);
24 void ossl_ctx_thread_stop(OSSL_LIB_CTX *ctx);
27 * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
28 * are those omitted from crypto.h because they are "reserved for internal
31 # define OPENSSL_INIT_BASE_ONLY 0x00040000L
33 void ossl_trace_cleanup(void);
34 void ossl_malloc_setup_failures(void);
36 int ossl_crypto_alloc_ex_data_intern(int class_index, void *obj,
37 CRYPTO_EX_DATA *ad, int idx);
39 #endif /* OSSL_CRYPTO_CRYPTLIB_H */