xref: /netbsd-src/crypto/external/bsd/openssl.old/dist/engines/e_dasync_err.c (revision 4724848cf0da353df257f730694b7882798e5daf)
1*4724848cSchristos /*
2*4724848cSchristos  * Generated by util/mkerr.pl DO NOT EDIT
3*4724848cSchristos  * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
4*4724848cSchristos  *
5*4724848cSchristos  * Licensed under the OpenSSL license (the "License").  You may not use
6*4724848cSchristos  * this file except in compliance with the License.  You can obtain a copy
7*4724848cSchristos  * in the file LICENSE in the source distribution or at
8*4724848cSchristos  * https://www.openssl.org/source/license.html
9*4724848cSchristos  */
10*4724848cSchristos 
11*4724848cSchristos #include <openssl/err.h>
12*4724848cSchristos #include "e_dasync_err.h"
13*4724848cSchristos 
14*4724848cSchristos #ifndef OPENSSL_NO_ERR
15*4724848cSchristos 
16*4724848cSchristos static ERR_STRING_DATA DASYNC_str_functs[] = {
17*4724848cSchristos     {ERR_PACK(0, DASYNC_F_BIND_DASYNC, 0), "bind_dasync"},
18*4724848cSchristos     {ERR_PACK(0, DASYNC_F_CIPHER_AES_128_CBC_CODE, 0), ""},
19*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_AES128_CBC_HMAC_SHA1_INIT_KEY, 0), ""},
20*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_AES128_INIT_KEY, 0), ""},
21*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_BN_MOD_EXP, 0), ""},
22*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_CIPHER_INIT_KEY_HELPER, 0),
23*4724848cSchristos      "dasync_cipher_init_key_helper"},
24*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_MOD_EXP, 0), ""},
25*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_PRIVATE_DECRYPT, 0), ""},
26*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_PRIVATE_ENCRYPT, 0), ""},
27*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_PUBLIC_DECRYPT, 0), ""},
28*4724848cSchristos     {ERR_PACK(0, DASYNC_F_DASYNC_PUBLIC_ENCRYPT, 0), ""},
29*4724848cSchristos     {0, NULL}
30*4724848cSchristos };
31*4724848cSchristos 
32*4724848cSchristos static ERR_STRING_DATA DASYNC_str_reasons[] = {
33*4724848cSchristos     {ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},
34*4724848cSchristos     {0, NULL}
35*4724848cSchristos };
36*4724848cSchristos 
37*4724848cSchristos #endif
38*4724848cSchristos 
39*4724848cSchristos static int lib_code = 0;
40*4724848cSchristos static int error_loaded = 0;
41*4724848cSchristos 
ERR_load_DASYNC_strings(void)42*4724848cSchristos static int ERR_load_DASYNC_strings(void)
43*4724848cSchristos {
44*4724848cSchristos     if (lib_code == 0)
45*4724848cSchristos         lib_code = ERR_get_next_error_library();
46*4724848cSchristos 
47*4724848cSchristos     if (!error_loaded) {
48*4724848cSchristos #ifndef OPENSSL_NO_ERR
49*4724848cSchristos         ERR_load_strings(lib_code, DASYNC_str_functs);
50*4724848cSchristos         ERR_load_strings(lib_code, DASYNC_str_reasons);
51*4724848cSchristos #endif
52*4724848cSchristos         error_loaded = 1;
53*4724848cSchristos     }
54*4724848cSchristos     return 1;
55*4724848cSchristos }
56*4724848cSchristos 
ERR_unload_DASYNC_strings(void)57*4724848cSchristos static void ERR_unload_DASYNC_strings(void)
58*4724848cSchristos {
59*4724848cSchristos     if (error_loaded) {
60*4724848cSchristos #ifndef OPENSSL_NO_ERR
61*4724848cSchristos         ERR_unload_strings(lib_code, DASYNC_str_functs);
62*4724848cSchristos         ERR_unload_strings(lib_code, DASYNC_str_reasons);
63*4724848cSchristos #endif
64*4724848cSchristos         error_loaded = 0;
65*4724848cSchristos     }
66*4724848cSchristos }
67*4724848cSchristos 
ERR_DASYNC_error(int function,int reason,char * file,int line)68*4724848cSchristos static void ERR_DASYNC_error(int function, int reason, char *file, int line)
69*4724848cSchristos {
70*4724848cSchristos     if (lib_code == 0)
71*4724848cSchristos         lib_code = ERR_get_next_error_library();
72*4724848cSchristos     ERR_PUT_error(lib_code, function, reason, file, line);
73*4724848cSchristos }
74