]> git.ipfire.org Git - thirdparty/openssl.git/blob - engines/e_dasync_err.c
Update client fuzz corpus
[thirdparty/openssl.git] / engines / e_dasync_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 "e_dasync_err.h"
19
20 /* BEGIN ERROR CODES */
21 #ifndef OPENSSL_NO_ERR
22
23 # define ERR_FUNC(func) ERR_PACK(0,func,0)
24 # define ERR_REASON(reason) ERR_PACK(0,0,reason)
25
26 static ERR_STRING_DATA DASYNC_str_functs[] = {
27 {ERR_FUNC(DASYNC_F_BIND_DASYNC), "bind_dasync"},
28 {ERR_FUNC(DASYNC_F_CIPHER_AES_128_CBC_CODE), "CIPHER_AES_128_CBC_CODE"},
29 {ERR_FUNC(DASYNC_F_DASYNC_AES128_CBC_HMAC_SHA1_INIT_KEY),
30 "dasync_aes128_cbc_hmac_sha1_init_key"},
31 {ERR_FUNC(DASYNC_F_DASYNC_AES128_INIT_KEY), "dasync_aes128_init_key"},
32 {ERR_FUNC(DASYNC_F_DASYNC_BN_MOD_EXP), "DASYNC_BN_MOD_EXP"},
33 {ERR_FUNC(DASYNC_F_DASYNC_CIPHER_INIT_KEY_HELPER),
34 "dasync_cipher_init_key_helper"},
35 {ERR_FUNC(DASYNC_F_DASYNC_MOD_EXP), "DASYNC_MOD_EXP"},
36 {ERR_FUNC(DASYNC_F_DASYNC_PRIVATE_DECRYPT), "DASYNC_PRIVATE_DECRYPT"},
37 {ERR_FUNC(DASYNC_F_DASYNC_PRIVATE_ENCRYPT), "DASYNC_PRIVATE_ENCRYPT"},
38 {ERR_FUNC(DASYNC_F_DASYNC_PUBLIC_DECRYPT), "DASYNC_PUBLIC_DECRYPT"},
39 {ERR_FUNC(DASYNC_F_DASYNC_PUBLIC_ENCRYPT), "DASYNC_PUBLIC_ENCRYPT"},
40 {0, NULL}
41 };
42
43 static ERR_STRING_DATA DASYNC_str_reasons[] = {
44 {ERR_REASON(DASYNC_R_INIT_FAILED), "init failed"},
45 {ERR_REASON(DASYNC_R_LENGTH_NOT_BLOCK_ALIGNED),
46 "length not block aligned"},
47 {ERR_REASON(DASYNC_R_UNKNOWN_FAULT), "unknown fault"},
48 {0, NULL}
49 };
50
51 #endif
52
53 #ifdef DASYNC_LIB_NAME
54 static ERR_STRING_DATA DASYNC_lib_name[] = {
55 {0, DASYNC_LIB_NAME},
56 {0, NULL}
57 };
58 #endif
59
60 static int DASYNC_lib_error_code = 0;
61 static int DASYNC_error_init = 1;
62
63 static void ERR_load_DASYNC_strings(void)
64 {
65 if (DASYNC_lib_error_code == 0)
66 DASYNC_lib_error_code = ERR_get_next_error_library();
67
68 if (DASYNC_error_init) {
69 DASYNC_error_init = 0;
70 #ifndef OPENSSL_NO_ERR
71 ERR_load_strings(DASYNC_lib_error_code, DASYNC_str_functs);
72 ERR_load_strings(DASYNC_lib_error_code, DASYNC_str_reasons);
73 #endif
74
75 #ifdef DASYNC_LIB_NAME
76 DASYNC_lib_name->error = ERR_PACK(DASYNC_lib_error_code, 0, 0);
77 ERR_load_strings(0, DASYNC_lib_name);
78 #endif
79 }
80 }
81
82 static void ERR_unload_DASYNC_strings(void)
83 {
84 if (DASYNC_error_init == 0) {
85 #ifndef OPENSSL_NO_ERR
86 ERR_unload_strings(DASYNC_lib_error_code, DASYNC_str_functs);
87 ERR_unload_strings(DASYNC_lib_error_code, DASYNC_str_reasons);
88 #endif
89
90 #ifdef DASYNC_LIB_NAME
91 ERR_unload_strings(0, DASYNC_lib_name);
92 #endif
93 DASYNC_error_init = 1;
94 }
95 }
96
97 static void ERR_DASYNC_error(int function, int reason, char *file, int line)
98 {
99 if (DASYNC_lib_error_code == 0)
100 DASYNC_lib_error_code = ERR_get_next_error_library();
101 ERR_PUT_error(DASYNC_lib_error_code, function, reason, file, line);
102 }