2
0

e_dasync_err.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License 2.0 (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 <openssl/err.h>
  11. #include "e_dasync_err.h"
  12. #ifndef OPENSSL_NO_ERR
  13. static ERR_STRING_DATA DASYNC_str_reasons[] = {
  14. {ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},
  15. {0, NULL}
  16. };
  17. #endif
  18. static int lib_code = 0;
  19. static int error_loaded = 0;
  20. static int ERR_load_DASYNC_strings(void)
  21. {
  22. if (lib_code == 0)
  23. lib_code = ERR_get_next_error_library();
  24. if (!error_loaded) {
  25. #ifndef OPENSSL_NO_ERR
  26. ERR_load_strings(lib_code, DASYNC_str_reasons);
  27. #endif
  28. error_loaded = 1;
  29. }
  30. return 1;
  31. }
  32. static void ERR_unload_DASYNC_strings(void)
  33. {
  34. if (error_loaded) {
  35. #ifndef OPENSSL_NO_ERR
  36. ERR_unload_strings(lib_code, DASYNC_str_reasons);
  37. #endif
  38. error_loaded = 0;
  39. }
  40. }
  41. static void ERR_DASYNC_error(int function, int reason, const char *file, int line)
  42. {
  43. if (lib_code == 0)
  44. lib_code = ERR_get_next_error_library();
  45. ERR_raise(lib_code, reason);
  46. ERR_set_debug(file, line, NULL);
  47. }