VirtualBox

source: vbox/trunk/src/libs/openssl-1.1.1l/engines/e_dasync_err.c@ 91772

Last change on this file since 91772 was 91772, checked in by vboxsync, 3 years ago

openssl-1.1.1l: Applied and adjusted our OpenSSL changes to 1.1.1l. bugref:10126

File size: 2.1 KB
Line 
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
4 *
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
9 */
10
11#include <openssl/err.h>
12#include "e_dasync_err.h"
13
14#ifndef OPENSSL_NO_ERR
15
16static ERR_STRING_DATA DASYNC_str_functs[] = {
17 {ERR_PACK(0, DASYNC_F_BIND_DASYNC, 0), "bind_dasync"},
18 {ERR_PACK(0, DASYNC_F_CIPHER_AES_128_CBC_CODE, 0), ""},
19 {ERR_PACK(0, DASYNC_F_DASYNC_AES128_CBC_HMAC_SHA1_INIT_KEY, 0), ""},
20 {ERR_PACK(0, DASYNC_F_DASYNC_AES128_INIT_KEY, 0), ""},
21 {ERR_PACK(0, DASYNC_F_DASYNC_BN_MOD_EXP, 0), ""},
22 {ERR_PACK(0, DASYNC_F_DASYNC_CIPHER_INIT_KEY_HELPER, 0),
23 "dasync_cipher_init_key_helper"},
24 {ERR_PACK(0, DASYNC_F_DASYNC_MOD_EXP, 0), ""},
25 {ERR_PACK(0, DASYNC_F_DASYNC_PRIVATE_DECRYPT, 0), ""},
26 {ERR_PACK(0, DASYNC_F_DASYNC_PRIVATE_ENCRYPT, 0), ""},
27 {ERR_PACK(0, DASYNC_F_DASYNC_PUBLIC_DECRYPT, 0), ""},
28 {ERR_PACK(0, DASYNC_F_DASYNC_PUBLIC_ENCRYPT, 0), ""},
29 {0, NULL}
30};
31
32static ERR_STRING_DATA DASYNC_str_reasons[] = {
33 {ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},
34 {0, NULL}
35};
36
37#endif
38
39static int lib_code = 0;
40static int error_loaded = 0;
41
42static int ERR_load_DASYNC_strings(void)
43{
44 if (lib_code == 0)
45 lib_code = ERR_get_next_error_library();
46
47 if (!error_loaded) {
48#ifndef OPENSSL_NO_ERR
49 ERR_load_strings(lib_code, DASYNC_str_functs);
50 ERR_load_strings(lib_code, DASYNC_str_reasons);
51#endif
52 error_loaded = 1;
53 }
54 return 1;
55}
56
57static void ERR_unload_DASYNC_strings(void)
58{
59 if (error_loaded) {
60#ifndef OPENSSL_NO_ERR
61 ERR_unload_strings(lib_code, DASYNC_str_functs);
62 ERR_unload_strings(lib_code, DASYNC_str_reasons);
63#endif
64 error_loaded = 0;
65 }
66}
67
68static void ERR_DASYNC_error(int function, int reason, char *file, int line)
69{
70 if (lib_code == 0)
71 lib_code = ERR_get_next_error_library();
72 ERR_PUT_error(lib_code, function, reason, file, line);
73}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette