VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.4/engines/e_dasync_err.c@ 103285

最後變更 在這個檔案從103285是 102863,由 vboxsync 提交於 10 月 前

openssl-3.1.4: Applied and adjusted our OpenSSL changes to 3.1.3. bugref:10577

檔案大小: 1.3 KB
 
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4 *
5 * Licensed under the Apache License 2.0 (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_reasons[] = {
17 {ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},
18 {0, NULL}
19};
20
21#endif
22
23static int lib_code = 0;
24static int error_loaded = 0;
25
26static int ERR_load_DASYNC_strings(void)
27{
28 if (lib_code == 0)
29 lib_code = ERR_get_next_error_library();
30
31 if (!error_loaded) {
32#ifndef OPENSSL_NO_ERR
33 ERR_load_strings(lib_code, DASYNC_str_reasons);
34#endif
35 error_loaded = 1;
36 }
37 return 1;
38}
39
40static void ERR_unload_DASYNC_strings(void)
41{
42 if (error_loaded) {
43#ifndef OPENSSL_NO_ERR
44 ERR_unload_strings(lib_code, DASYNC_str_reasons);
45#endif
46 error_loaded = 0;
47 }
48}
49
50static void ERR_DASYNC_error(int function, int reason, const char *file, int line)
51{
52 if (lib_code == 0)
53 lib_code = ERR_get_next_error_library();
54 ERR_raise(lib_code, reason);
55 ERR_set_debug(file, line, NULL);
56}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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