]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/include/internal/cryptlib_int.h
Add generic trace API
[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
14struct thread_local_inits_st {
15 int async;
16 int err_state;
7caf122e 17 int rand;
b184e3ef 18};
b7326ea7 19
b184e3ef 20int ossl_init_thread_start(uint64_t opts);
ff234405 21
b184e3ef
MC
22/*
23 * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
60250017 24 * are those omitted from crypto.h because they are "reserved for internal
b184e3ef
MC
25 * use".
26 */
15457b62 27# define OPENSSL_INIT_ZLIB 0x00010000L
eb2b9892 28# define OPENSSL_INIT_BASE_ONLY 0x00040000L
b184e3ef
MC
29
30/* OPENSSL_INIT_THREAD flags */
31# define OPENSSL_INIT_THREAD_ASYNC 0x01
32# define OPENSSL_INIT_THREAD_ERR_STATE 0x02
7caf122e 33# define OPENSSL_INIT_THREAD_RAND 0x04
b184e3ef 34
2390c573
RL
35int ossl_trace_init(void);
36void ossl_trace_cleanup(void);
f7edeced 37void ossl_malloc_setup_failures(void);