crmf_err.c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2025 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_CMS_NOT_SUPPORTED), "cms not supported"},
  19. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_CRMFERROR), "crmferror"},
  20. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR), "error"},
  21. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECODING_CERTIFICATE),
  22. "error decoding certificate"},
  23. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECODING_ENCRYPTEDKEY),
  24. "error decoding encryptedkey"},
  25. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_CERTIFICATE),
  26. "error decrypting certificate"},
  27. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_ENCRYPTEDKEY),
  28. "error decrypting encryptedkey"},
  29. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_ENCRYPTEDVALUE),
  30. "error decrypting encryptedvalue"},
  31. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_DECRYPTING_SYMMETRIC_KEY),
  32. "error decrypting symmetric key"},
  33. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_SETTING_PURPOSE),
  34. "error setting purpose"},
  35. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ERROR_VERIFYING_ENCRYPTEDKEY),
  36. "error verifying encryptedkey"},
  37. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_FAILURE_OBTAINING_RANDOM),
  38. "failure obtaining random"},
  39. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_ITERATIONCOUNT_BELOW_100),
  40. "iterationcount below 100"},
  41. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_MALFORMED_IV), "malformed iv"},
  42. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_NULL_ARGUMENT), "null argument"},
  43. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPOSKINPUT_NOT_SUPPORTED),
  44. "poposkinput not supported"},
  45. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_INCONSISTENT_CENTRAL_KEYGEN),
  46. "popo inconsistent central keygen"},
  47. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_INCONSISTENT_PUBLIC_KEY),
  48. "popo inconsistent public key"},
  49. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING), "popo missing"},
  50. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_PUBLIC_KEY),
  51. "popo missing public key"},
  52. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_MISSING_SUBJECT),
  53. "popo missing subject"},
  54. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_POPO_RAVERIFIED_NOT_ACCEPTED),
  55. "popo raverified not accepted"},
  56. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_MAC_ALGOR_FAILURE),
  57. "setting mac algor failure"},
  58. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_SETTING_OWF_ALGOR_FAILURE),
  59. "setting owf algor failure"},
  60. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_ALGORITHM),
  61. "unsupported algorithm"},
  62. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_CIPHER),
  63. "unsupported cipher"},
  64. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO),
  65. "unsupported method for creating popo"},
  66. {ERR_PACK(ERR_LIB_CRMF, 0, CRMF_R_UNSUPPORTED_POPO_METHOD),
  67. "unsupported popo method"},
  68. {0, NULL}
  69. };
  70. # endif
  71. int ossl_err_load_CRMF_strings(void)
  72. {
  73. # ifndef OPENSSL_NO_ERR
  74. if (ERR_reason_error_string(CRMF_str_reasons[0].error) == NULL)
  75. ERR_load_strings_const(CRMF_str_reasons);
  76. # endif
  77. return 1;
  78. }
  79. #else
  80. NON_EMPTY_TRANSLATION_UNIT
  81. #endif