added generated files
[openssl.git] / crypto / property / property_err.c
1 /*
2  * Generated by util/mkerr.pl DO NOT EDIT
3  * Copyright 1995-2019 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
11 #include <openssl/err.h>
12 #include "internal/propertyerr.h"
13
14 #ifndef OPENSSL_NO_ERR
15
16 static const ERR_STRING_DATA PROP_str_functs[] = {
17     {ERR_PACK(ERR_LIB_PROP, PROP_F_OSSL_PARSE_PROPERTY, 0),
18      "ossl_parse_property"},
19     {ERR_PACK(ERR_LIB_PROP, PROP_F_OSSL_PARSE_QUERY, 0), "ossl_parse_query"},
20     {ERR_PACK(ERR_LIB_PROP, PROP_F_PARSE_HEX, 0), "parse_hex"},
21     {ERR_PACK(ERR_LIB_PROP, PROP_F_PARSE_NAME, 0), "parse_name"},
22     {ERR_PACK(ERR_LIB_PROP, PROP_F_PARSE_NUMBER, 0), "parse_number"},
23     {ERR_PACK(ERR_LIB_PROP, PROP_F_PARSE_OCT, 0), "parse_oct"},
24     {ERR_PACK(ERR_LIB_PROP, PROP_F_PARSE_STRING, 0), "parse_string"},
25     {ERR_PACK(ERR_LIB_PROP, PROP_F_PARSE_UNQUOTED, 0), "parse_unquoted"},
26     {0, NULL}
27 };
28
29 static const ERR_STRING_DATA PROP_str_reasons[] = {
30     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NAME_TOO_LONG), "name too long"},
31     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_ASCII_CHARACTER),
32     "not an ascii character"},
33     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_HEXADECIMAL_DIGIT),
34     "not an hexadecimal digit"},
35     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_IDENTIFIER), "not an identifier"},
36     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_OCTAL_DIGIT),
37     "not an octal digit"},
38     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_A_DECIMAL_DIGIT),
39     "not a decimal digit"},
40     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_MATCHING_STRING_DELIMETER),
41     "no matching string delimeter"},
42     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_VALUE), "no value"},
43     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_PARSE_FAILED), "parse failed"},
44     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_STRING_TOO_LONG), "string too long"},
45     {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_TRAILING_CHARACTERS),
46     "trailing characters"},
47     {0, NULL}
48 };
49
50 #endif
51
52 int ERR_load_PROP_strings(void)
53 {
54 #ifndef OPENSSL_NO_ERR
55     if (ERR_func_error_string(PROP_str_functs[0].error) == NULL) {
56         ERR_load_strings_const(PROP_str_functs);
57         ERR_load_strings_const(PROP_str_reasons);
58     }
59 #endif
60     return 1;
61 }