]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/include/internal/cryptlib_int.h
Convert thread stop handling into a publish/subscribe model
[thirdparty/openssl.git] / crypto / include / internal / cryptlib_int.h
CommitLineData
b184e3ef 1/*
b0edda11 2 * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
b184e3ef 3 *
48f4ad77 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
aa6bb135
RS
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
b184e3ef
MC
8 */
9
5f8dd0f8 10#include "internal/cryptlib.h"
b184e3ef
MC
11
12/* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
13
242f84d0
MC
14typedef void (*ossl_thread_stop_handler_fn)(OPENSSL_CTX *ctx);
15int ossl_init_thread_start(OPENSSL_CTX *ctx,
16 ossl_thread_stop_handler_fn handfn);
ff234405 17
b184e3ef
MC
18/*
19 * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
60250017 20 * are those omitted from crypto.h because they are "reserved for internal
b184e3ef
MC
21 * use".
22 */
15457b62 23# define OPENSSL_INIT_ZLIB 0x00010000L
eb2b9892 24# define OPENSSL_INIT_BASE_ONLY 0x00040000L
b184e3ef 25
2390c573
RL
26int ossl_trace_init(void);
27void ossl_trace_cleanup(void);
f7edeced 28void ossl_malloc_setup_failures(void);