]> git.ipfire.org Git - thirdparty/openssl.git/blame - engines/e_dasync_err.c
ARM64 assembly pack: add ThunderX2 results.
[thirdparty/openssl.git] / engines / e_dasync_err.c
CommitLineData
b6cff313 1/*
52df25cf
RS
2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2017 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_functs[] = {
52df25cf 17 {ERR_PACK(0, DASYNC_F_BIND_DASYNC, 0), "bind_dasync"},
5816586b
RS
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), ""},
52df25cf 22 {ERR_PACK(0, DASYNC_F_DASYNC_CIPHER_INIT_KEY_HELPER, 0),
2f781956 23 "dasync_cipher_init_key_helper"},
5816586b
RS
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), ""},
98ee7543
MC
29 {0, NULL}
30};
31
32static ERR_STRING_DATA DASYNC_str_reasons[] = {
52df25cf 33 {ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},
98ee7543
MC
34 {0, NULL}
35};
a14e9ff7
MC
36
37#endif
38
52df25cf
RS
39static int lib_code = 0;
40static int error_loaded = 0;
a14e9ff7 41
52df25cf 42static int ERR_load_DASYNC_strings(void)
98ee7543 43{
52df25cf
RS
44 if (lib_code == 0)
45 lib_code = ERR_get_next_error_library();
a14e9ff7 46
52df25cf 47 if (!error_loaded) {
a14e9ff7 48#ifndef OPENSSL_NO_ERR
52df25cf
RS
49 ERR_load_strings(lib_code, DASYNC_str_functs);
50 ERR_load_strings(lib_code, DASYNC_str_reasons);
a14e9ff7 51#endif
52df25cf 52 error_loaded = 1;
98ee7543 53 }
52df25cf 54 return 1;
98ee7543 55}
a14e9ff7
MC
56
57static void ERR_unload_DASYNC_strings(void)
98ee7543 58{
52df25cf 59 if (error_loaded) {
a14e9ff7 60#ifndef OPENSSL_NO_ERR
52df25cf
RS
61 ERR_unload_strings(lib_code, DASYNC_str_functs);
62 ERR_unload_strings(lib_code, DASYNC_str_reasons);
a14e9ff7 63#endif
52df25cf 64 error_loaded = 0;
98ee7543
MC
65 }
66}
a14e9ff7
MC
67
68static void ERR_DASYNC_error(int function, int reason, char *file, int line)
98ee7543 69{
52df25cf
RS
70 if (lib_code == 0)
71 lib_code = ERR_get_next_error_library();
72 ERR_PUT_error(lib_code, function, reason, file, line);
98ee7543 73}