ess_err.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/esserr.h>
  12. #include "crypto/esserr.h"
  13. #ifndef OPENSSL_NO_ERR
  14. static const ERR_STRING_DATA ESS_str_reasons[] = {
  15. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_EMPTY_ESS_CERT_ID_LIST),
  16. "empty ess cert id list"},
  17. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_CERT_DIGEST_ERROR),
  18. "ess cert digest error"},
  19. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_CERT_ID_NOT_FOUND),
  20. "ess cert id not found"},
  21. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_CERT_ID_WRONG_ORDER),
  22. "ess cert id wrong order"},
  23. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_DIGEST_ALG_UNKNOWN),
  24. "ess digest alg unknown"},
  25. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_SIGNING_CERTIFICATE_ERROR),
  26. "ess signing certificate error"},
  27. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_SIGNING_CERT_ADD_ERROR),
  28. "ess signing cert add error"},
  29. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_ESS_SIGNING_CERT_V2_ADD_ERROR),
  30. "ess signing cert v2 add error"},
  31. {ERR_PACK(ERR_LIB_ESS, 0, ESS_R_MISSING_SIGNING_CERTIFICATE_ATTRIBUTE),
  32. "missing signing certificate attribute"},
  33. {0, NULL}
  34. };
  35. #endif
  36. int ossl_err_load_ESS_strings(void)
  37. {
  38. #ifndef OPENSSL_NO_ERR
  39. if (ERR_reason_error_string(ESS_str_reasons[0].error) == NULL)
  40. ERR_load_strings_const(ESS_str_reasons);
  41. #endif
  42. return 1;
  43. }