2016-02-09 19:26:14 +08:00
|
|
|
/*
|
2021-02-18 22:57:13 +08:00
|
|
|
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2016-02-09 19:26:14 +08:00
|
|
|
*
|
2018-12-06 20:12:35 +08:00
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 03:38:09 +08:00
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
2016-02-09 19:26:14 +08:00
|
|
|
*/
|
|
|
|
|
2021-02-07 05:36:46 +08:00
|
|
|
#ifndef OSSL_CRYPTO_CRYPTLIB_H
|
|
|
|
# define OSSL_CRYPTO_CRYPTLIB_H
|
|
|
|
# pragma once
|
|
|
|
|
|
|
|
# include <openssl/core.h>
|
|
|
|
# include "internal/cryptlib.h"
|
2016-02-09 19:26:14 +08:00
|
|
|
|
|
|
|
/* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
|
|
|
|
|
2019-06-19 01:37:38 +08:00
|
|
|
int ossl_init_thread_start(const void *index, void *arg,
|
2019-05-27 23:31:27 +08:00
|
|
|
OSSL_thread_stop_handler_fn handfn);
|
2019-06-19 01:37:38 +08:00
|
|
|
int ossl_init_thread_deregister(void *index);
|
2019-06-17 22:16:36 +08:00
|
|
|
int ossl_init_thread(void);
|
|
|
|
void ossl_cleanup_thread(void);
|
2021-05-20 18:52:56 +08:00
|
|
|
void ossl_ctx_thread_stop(OSSL_LIB_CTX *ctx);
|
2016-03-12 05:53:18 +08:00
|
|
|
|
2016-02-09 19:26:14 +08:00
|
|
|
/*
|
|
|
|
* OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
|
2016-08-06 01:56:58 +08:00
|
|
|
* are those omitted from crypto.h because they are "reserved for internal
|
2016-02-09 19:26:14 +08:00
|
|
|
* use".
|
|
|
|
*/
|
2018-04-20 21:45:06 +08:00
|
|
|
# define OPENSSL_INIT_BASE_ONLY 0x00040000L
|
2016-02-09 19:26:14 +08:00
|
|
|
|
2018-12-12 06:58:29 +08:00
|
|
|
void ossl_trace_cleanup(void);
|
2016-07-09 01:40:08 +08:00
|
|
|
void ossl_malloc_setup_failures(void);
|
2021-01-27 01:00:25 +08:00
|
|
|
|
|
|
|
int ossl_crypto_alloc_ex_data_intern(int class_index, void *obj,
|
|
|
|
CRYPTO_EX_DATA *ad, int idx);
|
2021-02-07 05:36:46 +08:00
|
|
|
|
|
|
|
#endif /* OSSL_CRYPTO_CRYPTLIB_H */
|