Blame crypto/comp/comp_err.c

Packit Service 084de1
/*
Packit Service 084de1
 * Generated by util/mkerr.pl DO NOT EDIT
Packit Service 084de1
 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
Packit Service 084de1
 *
Packit Service 084de1
 * Licensed under the OpenSSL license (the "License").  You may not use
Packit Service 084de1
 * this file except in compliance with the License.  You can obtain a copy
Packit Service 084de1
 * in the file LICENSE in the source distribution or at
Packit Service 084de1
 * https://www.openssl.org/source/license.html
Packit Service 084de1
 */
Packit Service 084de1
Packit Service 084de1
#include <openssl/err.h>
Packit Service 084de1
#include <openssl/comperr.h>
Packit Service 084de1
Packit Service 084de1
#ifndef OPENSSL_NO_ERR
Packit Service 084de1
Packit Service 084de1
static const ERR_STRING_DATA COMP_str_functs[] = {
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, COMP_F_BIO_ZLIB_FLUSH, 0), "bio_zlib_flush"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, COMP_F_BIO_ZLIB_NEW, 0), "bio_zlib_new"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, COMP_F_BIO_ZLIB_READ, 0), "bio_zlib_read"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, COMP_F_BIO_ZLIB_WRITE, 0), "bio_zlib_write"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, COMP_F_COMP_CTX_NEW, 0), "COMP_CTX_new"},
Packit Service 084de1
    {0, NULL}
Packit Service 084de1
};
Packit Service 084de1
Packit Service 084de1
static const ERR_STRING_DATA COMP_str_reasons[] = {
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, 0, COMP_R_ZLIB_DEFLATE_ERROR),
Packit Service 084de1
    "zlib deflate error"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, 0, COMP_R_ZLIB_INFLATE_ERROR),
Packit Service 084de1
    "zlib inflate error"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_COMP, 0, COMP_R_ZLIB_NOT_SUPPORTED),
Packit Service 084de1
    "zlib not supported"},
Packit Service 084de1
    {0, NULL}
Packit Service 084de1
};
Packit Service 084de1
Packit Service 084de1
#endif
Packit Service 084de1
Packit Service 084de1
int ERR_load_COMP_strings(void)
Packit Service 084de1
{
Packit Service 084de1
#ifndef OPENSSL_NO_ERR
Packit Service 084de1
    if (ERR_func_error_string(COMP_str_functs[0].error) == NULL) {
Packit Service 084de1
        ERR_load_strings_const(COMP_str_functs);
Packit Service 084de1
        ERR_load_strings_const(COMP_str_reasons);
Packit Service 084de1
    }
Packit Service 084de1
#endif
Packit Service 084de1
    return 1;
Packit Service 084de1
}