e810ef02ebce08ed2152eb4a1dc955505b52c1ce
[openssl.git] / crypto / include / internal / cryptlib_int.h
1 /*
2  * Copyright 2016-2018 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
10 #include "internal/cryptlib.h"
11
12 /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
13
14 typedef void (*ossl_thread_stop_handler_fn)(OPENSSL_CTX *ctx);
15 int ossl_init_thread_start(OPENSSL_CTX *ctx,
16                            ossl_thread_stop_handler_fn handfn);
17 int init_thread(void);
18 void cleanup_thread(void);
19
20 /*
21  * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
22  * are those omitted from crypto.h because they are "reserved for internal
23  * use".
24  */
25 # define OPENSSL_INIT_ZLIB                   0x00010000L
26 # define OPENSSL_INIT_BASE_ONLY              0x00040000L
27
28 int ossl_trace_init(void);
29 void ossl_trace_cleanup(void);
30 void ossl_malloc_setup_failures(void);