crmf_err.c 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 <openssl/crmferr.h>
  12. #include "crypto/crmferr.h"
  13. #ifndef OPENSSL_NO_CRMF
  14. # ifndef OPENSSL_NO_ERR
  15. static const ERR_STRING_DATA CRMF_str_reasons[] = {
  16. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_BAD_PBM_ITERATIONCOUNT),
  17. "bad pbm iterationcount"},
  18. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_CRMFERROR), "crmferror"},
  19. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR), "error"},
  20. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECODING_CERTIFICATE),
  21. "error decoding certificate"},
  22. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_CERTIFICATE),
  23. "error decrypting certificate"},
  24. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_SYMMETRIC_KEY),
  25. "error decrypting symmetric key"},
  26. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_FAILURE_OBTAINING_RANDOM),
  27. "failure obtaining random"},
  28. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ITERATIONCOUNT_BELOW_100),
  29. "iterationcount below 100"},
  30. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_MALFORMED_IV), "malformed iv"},
  31. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_NULL_ARGUMENT), "null argument"},
  32. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPOSKINPUT_NOT_SUPPORTED),
  33. "poposkinput not supported"},
  34. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_INCONSISTENT_PUBLIC_KEY),
  35. "popo inconsistent public key"},
  36. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING), "popo missing"},
  37. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_PUBLIC_KEY),
  38. "popo missing public key"},
  39. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_SUBJECT),
  40. "popo missing subject"},
  41. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_RAVERIFIED_NOT_ACCEPTED),
  42. "popo raverified not accepted"},
  43. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_MAC_ALGOR_FAILURE),
  44. "setting mac algor failure"},
  45. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_OWF_ALGOR_FAILURE),
  46. "setting owf algor failure"},
  47. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_ALGORITHM),
  48. "unsupported algorithm"},
  49. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_CIPHER),
  50. "unsupported cipher"},
  51. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO),
  52. "unsupported method for creating popo"},
  53. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_POPO_METHOD),
  54. "unsupported popo method"},
  55. {0, NULL}
  56. };
  57. # endif
  58. int ossl_err_load_CRMF_strings(void)
  59. {
  60. # ifndef OPENSSL_NO_ERR
  61. if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
  62. ERR_load_strings_const(CRMF_str_reasons);
  63. # endif
  64. return 1;
  65. }
  66. #else
  67. NON_EMPTY_TRANSLATION_UNIT
  68. #endif