1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * 4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 5e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci */ 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci#ifndef OSSL_CRYPTO_CRYPTLIB_H 11e1051a39Sopenharmony_ci# define OSSL_CRYPTO_CRYPTLIB_H 12e1051a39Sopenharmony_ci# pragma once 13e1051a39Sopenharmony_ci 14e1051a39Sopenharmony_ci# include <openssl/core.h> 15e1051a39Sopenharmony_ci# include "internal/cryptlib.h" 16e1051a39Sopenharmony_ci 17e1051a39Sopenharmony_ci/* This file is not scanned by mkdef.pl, whereas cryptlib.h is */ 18e1051a39Sopenharmony_ci 19e1051a39Sopenharmony_ciint ossl_init_thread_start(const void *index, void *arg, 20e1051a39Sopenharmony_ci OSSL_thread_stop_handler_fn handfn); 21e1051a39Sopenharmony_ciint ossl_init_thread_deregister(void *index); 22e1051a39Sopenharmony_ciint ossl_init_thread(void); 23e1051a39Sopenharmony_civoid ossl_cleanup_thread(void); 24e1051a39Sopenharmony_civoid ossl_ctx_thread_stop(OSSL_LIB_CTX *ctx); 25e1051a39Sopenharmony_ci 26e1051a39Sopenharmony_ci/* 27e1051a39Sopenharmony_ci * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below 28e1051a39Sopenharmony_ci * are those omitted from crypto.h because they are "reserved for internal 29e1051a39Sopenharmony_ci * use". 30e1051a39Sopenharmony_ci */ 31e1051a39Sopenharmony_ci# define OPENSSL_INIT_BASE_ONLY 0x00040000L 32e1051a39Sopenharmony_ci 33e1051a39Sopenharmony_civoid ossl_trace_cleanup(void); 34e1051a39Sopenharmony_civoid ossl_malloc_setup_failures(void); 35e1051a39Sopenharmony_ci 36e1051a39Sopenharmony_ciint ossl_crypto_alloc_ex_data_intern(int class_index, void *obj, 37e1051a39Sopenharmony_ci CRYPTO_EX_DATA *ad, int idx); 38e1051a39Sopenharmony_ci 39e1051a39Sopenharmony_ci#endif /* OSSL_CRYPTO_CRYPTLIB_H */ 40