cryptlib_int.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (the "License"). You may not use
  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
  8. */
  9. #include "internal/cryptlib.h"
  10. /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
  11. struct thread_local_inits_st {
  12. int async;
  13. int err_state;
  14. int rand;
  15. };
  16. int ossl_init_thread_start(uint64_t opts);
  17. /*
  18. * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
  19. * are those omitted from crypto.h because they are "reserved for internal
  20. * use".
  21. */
  22. # define OPENSSL_INIT_ZLIB 0x00010000L
  23. # define OPENSSL_INIT_BASE_ONLY 0x00040000L
  24. /* OPENSSL_INIT_THREAD flags */
  25. # define OPENSSL_INIT_THREAD_ASYNC 0x01
  26. # define OPENSSL_INIT_THREAD_ERR_STATE 0x02
  27. # define OPENSSL_INIT_THREAD_RAND 0x04
  28. void ossl_malloc_setup_failures(void);