1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT
3e1051a39Sopenharmony_ci * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4e1051a39Sopenharmony_ci *
5e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
6e1051a39Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
7e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at
8e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html
9e1051a39Sopenharmony_ci */
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ci#include <openssl/err.h>
12e1051a39Sopenharmony_ci#include "internal/propertyerr.h"
13e1051a39Sopenharmony_ci
14e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR
15e1051a39Sopenharmony_ci
16e1051a39Sopenharmony_cistatic const ERR_STRING_DATA PROP_str_reasons[] = {
17e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NAME_TOO_LONG), "name too long"},
18e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_ASCII_CHARACTER),
19e1051a39Sopenharmony_ci    "not an ascii character"},
20e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_HEXADECIMAL_DIGIT),
21e1051a39Sopenharmony_ci    "not an hexadecimal digit"},
22e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_IDENTIFIER), "not an identifier"},
23e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_OCTAL_DIGIT),
24e1051a39Sopenharmony_ci    "not an octal digit"},
25e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_A_DECIMAL_DIGIT),
26e1051a39Sopenharmony_ci    "not a decimal digit"},
27e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_MATCHING_STRING_DELIMITER),
28e1051a39Sopenharmony_ci    "no matching string delimiter"},
29e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_VALUE), "no value"},
30e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_PARSE_FAILED), "parse failed"},
31e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_STRING_TOO_LONG), "string too long"},
32e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_TRAILING_CHARACTERS),
33e1051a39Sopenharmony_ci    "trailing characters"},
34e1051a39Sopenharmony_ci    {0, NULL}
35e1051a39Sopenharmony_ci};
36e1051a39Sopenharmony_ci
37e1051a39Sopenharmony_ci#endif
38e1051a39Sopenharmony_ci
39e1051a39Sopenharmony_ciint ossl_err_load_PROP_strings(void)
40e1051a39Sopenharmony_ci{
41e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ERR
42e1051a39Sopenharmony_ci    if (ERR_reason_error_string(PROP_str_reasons[0].error) == NULL)
43e1051a39Sopenharmony_ci        ERR_load_strings_const(PROP_str_reasons);
44e1051a39Sopenharmony_ci#endif
45e1051a39Sopenharmony_ci    return 1;
46e1051a39Sopenharmony_ci}
47