cryptlib.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #include <contrib/libs/openssl/redef.h>
  2. /*
  3. * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the OpenSSL license (the "License"). You may not use
  6. * this file except in compliance with the License. You can obtain a copy
  7. * in the file LICENSE in the source distribution or at
  8. * https://www.openssl.org/source/license.html
  9. */
  10. #include "internal/cryptlib.h"
  11. /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */
  12. struct thread_local_inits_st {
  13. int async;
  14. int err_state;
  15. int rand;
  16. };
  17. int ossl_init_thread_start(uint64_t opts);
  18. /*
  19. * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below
  20. * are those omitted from crypto.h because they are "reserved for internal
  21. * use".
  22. */
  23. # define OPENSSL_INIT_ZLIB 0x00010000L
  24. # define OPENSSL_INIT_BASE_ONLY 0x00040000L
  25. /* OPENSSL_INIT_THREAD flags */
  26. # define OPENSSL_INIT_THREAD_ASYNC 0x01
  27. # define OPENSSL_INIT_THREAD_ERR_STATE 0x02
  28. # define OPENSSL_INIT_THREAD_RAND 0x04
  29. void ossl_malloc_setup_failures(void);