async_null.c 878 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License 2.0 (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. /* This must be the first #include file */
  10. #include "../async_local.h"
  11. #ifdef ASYNC_NULL
  12. int ASYNC_is_capable(void)
  13. {
  14. return 0;
  15. }
  16. int ASYNC_set_mem_functions(ASYNC_stack_alloc_fn alloc_fn,
  17. ASYNC_stack_free_fn free_fn)
  18. {
  19. return 0;
  20. }
  21. void ASYNC_get_mem_functions(ASYNC_stack_alloc_fn *alloc_fn,
  22. ASYNC_stack_free_fn *free_fn)
  23. {
  24. if (alloc_fn != NULL)
  25. *alloc_fn = NULL;
  26. if (free_fn != NULL)
  27. *free_fn = NULL;
  28. }
  29. void async_local_cleanup(void)
  30. {
  31. }
  32. #endif