2016-02-09 11:26:14 +00:00
|
|
|
/*
|
2016-05-17 19:38:09 +00:00
|
|
|
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
|
2016-02-09 11:26:14 +00:00
|
|
|
*
|
2016-05-17 19:38:09 +00:00
|
|
|
* Licensed under the OpenSSL license (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
|
2016-02-09 11:26:14 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <internal/cryptlib.h>
|
|
|
|
|
|
|
|
/* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
|
|
|
|
|
|
|
|
struct thread_local_inits_st {
|
|
|
|
int async;
|
|
|
|
int err_state;
|
|
|
|
};
|
2016-02-09 23:09:44 +00:00
|
|
|
|
2016-02-09 11:26:14 +00:00
|
|
|
int ossl_init_thread_start(uint64_t opts);
|
2016-03-11 21:53:18 +00:00
|
|
|
|
2016-02-09 11:26:14 +00:00
|
|
|
/*
|
|
|
|
* OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
|
2016-08-05 17:56:58 +00:00
|
|
|
* are those omitted from crypto.h because they are "reserved for internal
|
2016-02-09 11:26:14 +00:00
|
|
|
* use".
|
|
|
|
*/
|
2016-02-29 16:14:00 +00:00
|
|
|
# define OPENSSL_INIT_ZLIB 0x00010000L
|
2016-02-09 11:26:14 +00:00
|
|
|
|
|
|
|
/* OPENSSL_INIT_THREAD flags */
|
|
|
|
# define OPENSSL_INIT_THREAD_ASYNC 0x01
|
|
|
|
# define OPENSSL_INIT_THREAD_ERR_STATE 0x02
|
|
|
|
|
2016-07-08 17:40:08 +00:00
|
|
|
void ossl_malloc_setup_failures(void);
|