Blame crypto/async/async_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/asyncerr.h>
Packit Service 084de1
Packit Service 084de1
#ifndef OPENSSL_NO_ERR
Packit Service 084de1
Packit Service 084de1
static const ERR_STRING_DATA ASYNC_str_functs[] = {
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_CTX_NEW, 0), "async_ctx_new"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_INIT_THREAD, 0),
Packit Service 084de1
     "ASYNC_init_thread"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_JOB_NEW, 0), "async_job_new"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_PAUSE_JOB, 0), "ASYNC_pause_job"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_START_FUNC, 0), "async_start_func"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_START_JOB, 0), "ASYNC_start_job"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD, 0),
Packit Service 084de1
     "ASYNC_WAIT_CTX_set_wait_fd"},
Packit Service 084de1
    {0, NULL}
Packit Service 084de1
};
Packit Service 084de1
Packit Service 084de1
static const ERR_STRING_DATA ASYNC_str_reasons[] = {
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_FAILED_TO_SET_POOL),
Packit Service 084de1
    "failed to set pool"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_FAILED_TO_SWAP_CONTEXT),
Packit Service 084de1
    "failed to swap context"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_INIT_FAILED), "init failed"},
Packit Service 084de1
    {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_INVALID_POOL_SIZE),
Packit Service 084de1
    "invalid pool size"},
Packit Service 084de1
    {0, NULL}
Packit Service 084de1
};
Packit Service 084de1
Packit Service 084de1
#endif
Packit Service 084de1
Packit Service 084de1
int ERR_load_ASYNC_strings(void)
Packit Service 084de1
{
Packit Service 084de1
#ifndef OPENSSL_NO_ERR
Packit Service 084de1
    if (ERR_func_error_string(ASYNC_str_functs[0].error) == NULL) {
Packit Service 084de1
        ERR_load_strings_const(ASYNC_str_functs);
Packit Service 084de1
        ERR_load_strings_const(ASYNC_str_reasons);
Packit Service 084de1
    }
Packit Service 084de1
#endif
Packit Service 084de1
    return 1;
Packit Service 084de1
}