]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/async/async_err.c
Following the license change, modify the boilerplates in crypto/asn1/
[thirdparty/openssl.git] / crypto / async / async_err.c
CommitLineData
b6cff313 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
cdb10bae 3 * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
079a1a90 4 *
b6cff313
RS
5 * Licensed under the OpenSSL license (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
079a1a90
MC
9 */
10
079a1a90 11#include <openssl/err.h>
52df25cf 12#include <openssl/asyncerr.h>
079a1a90 13
079a1a90
MC
14#ifndef OPENSSL_NO_ERR
15
52df25cf
RS
16static const ERR_STRING_DATA ASYNC_str_functs[] = {
17 {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_CTX_NEW, 0), "async_ctx_new"},
18 {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_INIT_THREAD, 0),
19 "ASYNC_init_thread"},
20 {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_JOB_NEW, 0), "async_job_new"},
21 {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_PAUSE_JOB, 0), "ASYNC_pause_job"},
22 {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_START_FUNC, 0), "async_start_func"},
23 {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_START_JOB, 0), "ASYNC_start_job"},
cdb10bae
RS
24 {ERR_PACK(ERR_LIB_ASYNC, ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD, 0),
25 "ASYNC_WAIT_CTX_set_wait_fd"},
079a1a90
MC
26 {0, NULL}
27};
28
52df25cf
RS
29static const ERR_STRING_DATA ASYNC_str_reasons[] = {
30 {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_FAILED_TO_SET_POOL),
31 "failed to set pool"},
32 {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_FAILED_TO_SWAP_CONTEXT),
33 "failed to swap context"},
34 {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_INIT_FAILED), "init failed"},
35 {ERR_PACK(ERR_LIB_ASYNC, 0, ASYNC_R_INVALID_POOL_SIZE),
36 "invalid pool size"},
079a1a90
MC
37 {0, NULL}
38};
39
40#endif
41
69588edb 42int ERR_load_ASYNC_strings(void)
079a1a90
MC
43{
44#ifndef OPENSSL_NO_ERR
079a1a90 45 if (ERR_func_error_string(ASYNC_str_functs[0].error) == NULL) {
52df25cf
RS
46 ERR_load_strings_const(ASYNC_str_functs);
47 ERR_load_strings_const(ASYNC_str_reasons);
079a1a90
MC
48 }
49#endif
69588edb 50 return 1;
079a1a90 51}