Manual fixes after copyright consolidation
[openssl.git] / crypto / async / async_err.c
1 /*
2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 /*
11  * NOTE: this file was auto generated by the mkerr.pl script: any changes
12  * made to it will be overwritten when the script next updates this file,
13  * only reason strings will be preserved.
14  */
15
16 #include <stdio.h>
17 #include <openssl/err.h>
18 #include <openssl/async.h>
19
20 /* BEGIN ERROR CODES */
21 #ifndef OPENSSL_NO_ERR
22
23 # define ERR_FUNC(func) ERR_PACK(ERR_LIB_ASYNC,func,0)
24 # define ERR_REASON(reason) ERR_PACK(ERR_LIB_ASYNC,0,reason)
25
26 static ERR_STRING_DATA ASYNC_str_functs[] = {
27     {ERR_FUNC(ASYNC_F_ASYNC_CTX_NEW), "async_ctx_new"},
28     {ERR_FUNC(ASYNC_F_ASYNC_INIT_THREAD), "ASYNC_init_thread"},
29     {ERR_FUNC(ASYNC_F_ASYNC_JOB_NEW), "async_job_new"},
30     {ERR_FUNC(ASYNC_F_ASYNC_PAUSE_JOB), "ASYNC_pause_job"},
31     {ERR_FUNC(ASYNC_F_ASYNC_START_FUNC), "async_start_func"},
32     {ERR_FUNC(ASYNC_F_ASYNC_START_JOB), "ASYNC_start_job"},
33     {0, NULL}
34 };
35
36 static ERR_STRING_DATA ASYNC_str_reasons[] = {
37     {ERR_REASON(ASYNC_R_CANNOT_CREATE_WAIT_PIPE), "cannot create wait pipe"},
38     {ERR_REASON(ASYNC_R_FAILED_TO_SET_POOL), "failed to set pool"},
39     {ERR_REASON(ASYNC_R_FAILED_TO_SWAP_CONTEXT), "failed to swap context"},
40     {ERR_REASON(ASYNC_R_INIT_FAILED), "init failed"},
41     {ERR_REASON(ASYNC_R_INVALID_POOL_SIZE), "invalid pool size"},
42     {ERR_REASON(ASYNC_R_POOL_ALREADY_INITED), "pool already inited"},
43     {0, NULL}
44 };
45
46 #endif
47
48 void ERR_load_ASYNC_strings(void)
49 {
50 #ifndef OPENSSL_NO_ERR
51
52     if (ERR_func_error_string(ASYNC_str_functs[0].error) == NULL) {
53         ERR_load_strings(0, ASYNC_str_functs);
54         ERR_load_strings(0, ASYNC_str_reasons);
55     }
56 #endif
57 }