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 <openssl/comperr.h>
13e1051a39Sopenharmony_ci#include "crypto/comperr.h"
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_COMP
16e1051a39Sopenharmony_ci
17e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_cistatic const ERR_STRING_DATA COMP_str_reasons[] = {
20e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_COMP, 0, COMP_R_ZLIB_DEFLATE_ERROR),
21e1051a39Sopenharmony_ci    "zlib deflate error"},
22e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_COMP, 0, COMP_R_ZLIB_INFLATE_ERROR),
23e1051a39Sopenharmony_ci    "zlib inflate error"},
24e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_COMP, 0, COMP_R_ZLIB_NOT_SUPPORTED),
25e1051a39Sopenharmony_ci    "zlib not supported"},
26e1051a39Sopenharmony_ci    {0, NULL}
27e1051a39Sopenharmony_ci};
28e1051a39Sopenharmony_ci
29e1051a39Sopenharmony_ci# endif
30e1051a39Sopenharmony_ci
31e1051a39Sopenharmony_ciint ossl_err_load_COMP_strings(void)
32e1051a39Sopenharmony_ci{
33e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
34e1051a39Sopenharmony_ci    if (ERR_reason_error_string(COMP_str_reasons[0].error) == NULL)
35e1051a39Sopenharmony_ci        ERR_load_strings_const(COMP_str_reasons);
36e1051a39Sopenharmony_ci# endif
37e1051a39Sopenharmony_ci    return 1;
38e1051a39Sopenharmony_ci}
39e1051a39Sopenharmony_ci#else
40e1051a39Sopenharmony_ciNON_EMPTY_TRANSLATION_UNIT
41e1051a39Sopenharmony_ci#endif
42