cpt_err.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2017 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 <openssl/err.h>
  11. #include <openssl/cryptoerr.h>
  12. #ifndef OPENSSL_NO_ERR
  13. static const ERR_STRING_DATA CRYPTO_str_functs[] = {
  14. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_DUP_EX_DATA, 0),
  15. "CRYPTO_dup_ex_data"},
  16. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_FREE_EX_DATA, 0),
  17. "CRYPTO_free_ex_data"},
  18. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX, 0),
  19. "CRYPTO_get_ex_new_index"},
  20. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_MEMDUP, 0), "CRYPTO_memdup"},
  21. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_NEW_EX_DATA, 0),
  22. "CRYPTO_new_ex_data"},
  23. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_CRYPTO_SET_EX_DATA, 0),
  24. "CRYPTO_set_ex_data"},
  25. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_FIPS_MODE_SET, 0), "FIPS_mode_set"},
  26. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_GET_AND_LOCK, 0), "get_and_lock"},
  27. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_OPENSSL_BUF2HEXSTR, 0),
  28. "OPENSSL_buf2hexstr"},
  29. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_OPENSSL_HEXSTR2BUF, 0),
  30. "OPENSSL_hexstr2buf"},
  31. {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_OPENSSL_INIT_CRYPTO, 0),
  32. "OPENSSL_init_crypto"},
  33. {0, NULL}
  34. };
  35. static const ERR_STRING_DATA CRYPTO_str_reasons[] = {
  36. {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED),
  37. "fips mode not supported"},
  38. {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ILLEGAL_HEX_DIGIT),
  39. "illegal hex digit"},
  40. {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ODD_NUMBER_OF_DIGITS),
  41. "odd number of digits"},
  42. {0, NULL}
  43. };
  44. #endif
  45. int ERR_load_CRYPTO_strings(void)
  46. {
  47. #ifndef OPENSSL_NO_ERR
  48. if (ERR_func_error_string(CRYPTO_str_functs[0].error) == NULL) {
  49. ERR_load_strings_const(CRYPTO_str_functs);
  50. ERR_load_strings_const(CRYPTO_str_reasons);
  51. }
  52. #endif
  53. return 1;
  54. }