X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Finclude%2Finternal%2Fcryptlib_int.h;h=b3529dcaf9b488b17df1f659f94b640891758937;hb=242f84d06aca7030b2bd52043c39b0cb80c4fec6;hp=3dddf0820046826a79d65d96c79d2d0fa7a13997;hpb=5f8dd0f849d3bb87b2224715f8880716f39e9b0a;p=openssl.git diff --git a/crypto/include/internal/cryptlib_int.h b/crypto/include/internal/cryptlib_int.h index 3dddf08200..b3529dcaf9 100644 --- a/crypto/include/internal/cryptlib_int.h +++ b/crypto/include/internal/cryptlib_int.h @@ -1,7 +1,7 @@ /* - * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. * - * Licensed under the OpenSSL license (the "License"). You may not use + * Licensed under the Apache License 2.0 (the "License"). You may not use * 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 @@ -11,12 +11,9 @@ /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */ -struct thread_local_inits_st { - int async; - int err_state; -}; - -int ossl_init_thread_start(uint64_t opts); +typedef void (*ossl_thread_stop_handler_fn)(OPENSSL_CTX *ctx); +int ossl_init_thread_start(OPENSSL_CTX *ctx, + ossl_thread_stop_handler_fn handfn); /* * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below @@ -24,9 +21,8 @@ int ossl_init_thread_start(uint64_t opts); * use". */ # define OPENSSL_INIT_ZLIB 0x00010000L +# define OPENSSL_INIT_BASE_ONLY 0x00040000L -/* OPENSSL_INIT_THREAD flags */ -# define OPENSSL_INIT_THREAD_ASYNC 0x01 -# define OPENSSL_INIT_THREAD_ERR_STATE 0x02 - +int ossl_trace_init(void); +void ossl_trace_cleanup(void); void ossl_malloc_setup_failures(void);