]> git.ipfire.org Git - thirdparty/openssl.git/blame - engines/e_dasync_err.c
Raise the AFL_MAP_SIZE to accommodate future growth
[thirdparty/openssl.git] / engines / e_dasync_err.c
CommitLineData
b6cff313 1/*
52df25cf 2 * Generated by util/mkerr.pl DO NOT EDIT
29253e1e 3 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
a14e9ff7 4 *
ab3fa1c0 5 * Licensed under the Apache License 2.0 (the "License"). You may not use
b6cff313
RS
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
a14e9ff7
MC
9 */
10
a14e9ff7
MC
11#include <openssl/err.h>
12#include "e_dasync_err.h"
13
a14e9ff7
MC
14#ifndef OPENSSL_NO_ERR
15
98ee7543 16static ERR_STRING_DATA DASYNC_str_reasons[] = {
52df25cf 17 {ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},
98ee7543
MC
18 {0, NULL}
19};
a14e9ff7
MC
20
21#endif
22
52df25cf
RS
23static int lib_code = 0;
24static int error_loaded = 0;
a14e9ff7 25
52df25cf 26static int ERR_load_DASYNC_strings(void)
98ee7543 27{
52df25cf
RS
28 if (lib_code == 0)
29 lib_code = ERR_get_next_error_library();
a14e9ff7 30
52df25cf 31 if (!error_loaded) {
a14e9ff7 32#ifndef OPENSSL_NO_ERR
52df25cf 33 ERR_load_strings(lib_code, DASYNC_str_reasons);
a14e9ff7 34#endif
52df25cf 35 error_loaded = 1;
98ee7543 36 }
52df25cf 37 return 1;
98ee7543 38}
a14e9ff7
MC
39
40static void ERR_unload_DASYNC_strings(void)
98ee7543 41{
52df25cf 42 if (error_loaded) {
a14e9ff7 43#ifndef OPENSSL_NO_ERR
52df25cf 44 ERR_unload_strings(lib_code, DASYNC_str_reasons);
a14e9ff7 45#endif
52df25cf 46 error_loaded = 0;
98ee7543
MC
47 }
48}
a14e9ff7 49
29253e1e 50static void ERR_DASYNC_error(int function, int reason, const char *file, int line)
98ee7543 51{
52df25cf
RS
52 if (lib_code == 0)
53 lib_code = ERR_get_next_error_library();
c3612970
RL
54 ERR_raise(lib_code, reason);
55 ERR_set_debug(file, line, NULL);
98ee7543 56}