2
0

property_err.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 "internal/propertyerr.h"
  12. #ifndef OPENSSL_NO_ERR
  13. static const ERR_STRING_DATA PROP_str_reasons[] = {
  14. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NAME_TOO_LONG), "name too long"},
  15. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_ASCII_CHARACTER),
  16. "not an ascii character"},
  17. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_HEXADECIMAL_DIGIT),
  18. "not an hexadecimal digit"},
  19. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_IDENTIFIER), "not an identifier"},
  20. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_OCTAL_DIGIT),
  21. "not an octal digit"},
  22. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_A_DECIMAL_DIGIT),
  23. "not a decimal digit"},
  24. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_MATCHING_STRING_DELIMITER),
  25. "no matching string delimiter"},
  26. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_VALUE), "no value"},
  27. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_PARSE_FAILED), "parse failed"},
  28. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_STRING_TOO_LONG), "string too long"},
  29. {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_TRAILING_CHARACTERS),
  30. "trailing characters"},
  31. {0, NULL}
  32. };
  33. #endif
  34. int ossl_err_load_PROP_strings(void)
  35. {
  36. #ifndef OPENSSL_NO_ERR
  37. if (ERR_reason_error_string(PROP_str_reasons[0].error) == NULL)
  38. ERR_load_strings_const(PROP_str_reasons);
  39. #endif
  40. return 1;
  41. }