Coverage Report

Created: 2025-06-13 06:58

/src/openssl31/crypto/property/property_err.c
Line
Count
Source
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
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_reasons[] = {
17
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NAME_TOO_LONG), "name too long"},
18
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_ASCII_CHARACTER),
19
    "not an ascii character"},
20
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_HEXADECIMAL_DIGIT),
21
    "not an hexadecimal digit"},
22
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_IDENTIFIER), "not an identifier"},
23
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_AN_OCTAL_DIGIT),
24
    "not an octal digit"},
25
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NOT_A_DECIMAL_DIGIT),
26
    "not a decimal digit"},
27
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_MATCHING_STRING_DELIMITER),
28
    "no matching string delimiter"},
29
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_NO_VALUE), "no value"},
30
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_PARSE_FAILED), "parse failed"},
31
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_STRING_TOO_LONG), "string too long"},
32
    {ERR_PACK(ERR_LIB_PROP, 0, PROP_R_TRAILING_CHARACTERS),
33
    "trailing characters"},
34
    {0, NULL}
35
};
36
37
#endif
38
39
int ossl_err_load_PROP_strings(void)
40
133
{
41
133
#ifndef OPENSSL_NO_ERR
42
133
    if (ERR_reason_error_string(PROP_str_reasons[0].error) == NULL)
43
133
        ERR_load_strings_const(PROP_str_reasons);
44
133
#endif
45
133
    return 1;
46
133
}