Path: blob/main/crypto/openssl/engines/e_dasync_err.c
34874 views
/*1* Generated by util/mkerr.pl DO NOT EDIT2* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.3*4* Licensed under the Apache License 2.0 (the "License"). You may not use5* this file except in compliance with the License. You can obtain a copy6* in the file LICENSE in the source distribution or at7* https://www.openssl.org/source/license.html8*/910#include <openssl/err.h>11#include "e_dasync_err.h"1213#ifndef OPENSSL_NO_ERR1415static ERR_STRING_DATA DASYNC_str_reasons[] = {16{ERR_PACK(0, 0, DASYNC_R_INIT_FAILED), "init failed"},17{0, NULL}18};1920#endif2122static int lib_code = 0;23static int error_loaded = 0;2425static int ERR_load_DASYNC_strings(void)26{27if (lib_code == 0)28lib_code = ERR_get_next_error_library();2930if (!error_loaded) {31#ifndef OPENSSL_NO_ERR32ERR_load_strings(lib_code, DASYNC_str_reasons);33#endif34error_loaded = 1;35}36return 1;37}3839static void ERR_unload_DASYNC_strings(void)40{41if (error_loaded) {42#ifndef OPENSSL_NO_ERR43ERR_unload_strings(lib_code, DASYNC_str_reasons);44#endif45error_loaded = 0;46}47}4849static void ERR_DASYNC_error(int function, int reason, const char *file, int line)50{51if (lib_code == 0)52lib_code = ERR_get_next_error_library();53ERR_raise(lib_code, reason);54ERR_set_debug(file, line, NULL);55}565758