crmf_err.c 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2019 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 <openssl/crmferr.h>
  12. #ifndef OPENSSL_NO_ERR
  13. static const ERR_STRING_DATA CRMF_str_reasons[] = {
  14. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_BAD_PBM_ITERATIONCOUNT),
  15. "bad pbm iterationcount"},
  16. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_CRMFERROR), "crmferror"},
  17. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR), "error"},
  18. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECODING_CERTIFICATE),
  19. "error decoding certificate"},
  20. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_CERTIFICATE),
  21. "error decrypting certificate"},
  22. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_SYMMETRIC_KEY),
  23. "error decrypting symmetric key"},
  24. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_FAILURE_OBTAINING_RANDOM),
  25. "failure obtaining random"},
  26. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ITERATIONCOUNT_BELOW_100),
  27. "iterationcount below 100"},
  28. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_MALFORMED_IV), "malformed iv"},
  29. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_NULL_ARGUMENT), "null argument"},
  30. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_MAC_ALGOR_FAILURE),
  31. "setting mac algor failure"},
  32. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_OWF_ALGOR_FAILURE),
  33. "setting owf algor failure"},
  34. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_ALGORITHM),
  35. "unsupported algorithm"},
  36. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_ALG_FOR_POPSIGNINGKEY),
  37. "unsupported alg for popsigningkey"},
  38. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_CIPHER),
  39. "unsupported cipher"},
  40. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO),
  41. "unsupported method for creating popo"},
  42. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_POPO_METHOD),
  43. "unsupported popo method"},
  44. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_POPO_NOT_ACCEPTED),
  45. "unsupported popo not accepted"},
  46. {0, NULL}
  47. };
  48. #endif
  49. int ERR_load_CRMF_strings(void)
  50. {
  51. #ifndef OPENSSL_NO_ERR
  52. if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
  53. ERR_load_strings_const(CRMF_str_reasons);
  54. #endif
  55. return 1;
  56. }