VirtualBox

source: vbox/trunk/src/libs/openssl-1.1.1l/engines/e_ossltest_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: 1.6 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_ossltest_err.h"
13
14#ifndef OPENSSL_NO_ERR
15
16static ERR_STRING_DATA OSSLTEST_str_functs[] = {
17 {ERR_PACK(0, OSSLTEST_F_BIND_OSSLTEST, 0), "bind_ossltest"},
18 {ERR_PACK(0, OSSLTEST_F_OSSLTEST_AES128_INIT_KEY, 0), ""},
19 {0, NULL}
20};
21
22static ERR_STRING_DATA OSSLTEST_str_reasons[] = {
23 {ERR_PACK(0, 0, OSSLTEST_R_INIT_FAILED), "init failed"},
24 {0, NULL}
25};
26
27#endif
28
29static int lib_code = 0;
30static int error_loaded = 0;
31
32static int ERR_load_OSSLTEST_strings(void)
33{
34 if (lib_code == 0)
35 lib_code = ERR_get_next_error_library();
36
37 if (!error_loaded) {
38#ifndef OPENSSL_NO_ERR
39 ERR_load_strings(lib_code, OSSLTEST_str_functs);
40 ERR_load_strings(lib_code, OSSLTEST_str_reasons);
41#endif
42 error_loaded = 1;
43 }
44 return 1;
45}
46
47static void ERR_unload_OSSLTEST_strings(void)
48{
49 if (error_loaded) {
50#ifndef OPENSSL_NO_ERR
51 ERR_unload_strings(lib_code, OSSLTEST_str_functs);
52 ERR_unload_strings(lib_code, OSSLTEST_str_reasons);
53#endif
54 error_loaded = 0;
55 }
56}
57
58static void ERR_OSSLTEST_error(int function, int reason, char *file, int line)
59{
60 if (lib_code == 0)
61 lib_code = ERR_get_next_error_library();
62 ERR_PUT_error(lib_code, function, reason, file, line);
63}
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