Path: blob/main/crypto/openssl/engines/e_afalg_err.c
105879 views
/*1* Generated by util/mkerr.pl DO NOT EDIT2* Copyright 1995-2022 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_afalg_err.h"1213#ifndef OPENSSL_NO_ERR1415static ERR_STRING_DATA AFALG_str_reasons[] = {16{ ERR_PACK(0, 0, AFALG_R_EVENTFD_FAILED), "eventfd failed" },17{ ERR_PACK(0, 0, AFALG_R_FAILED_TO_GET_PLATFORM_INFO),18"failed to get platform info" },19{ ERR_PACK(0, 0, AFALG_R_INIT_FAILED), "init failed" },20{ ERR_PACK(0, 0, AFALG_R_IO_SETUP_FAILED), "io setup failed" },21{ ERR_PACK(0, 0, AFALG_R_KERNEL_DOES_NOT_SUPPORT_AFALG),22"kernel does not support afalg" },23{ ERR_PACK(0, 0, AFALG_R_KERNEL_DOES_NOT_SUPPORT_ASYNC_AFALG),24"kernel does not support async afalg" },25{ ERR_PACK(0, 0, AFALG_R_KERNEL_OP_FAILED), "kernel op failed" },26{ ERR_PACK(0, 0, AFALG_R_MEM_ALLOC_FAILED), "mem alloc failed" },27{ ERR_PACK(0, 0, AFALG_R_SOCKET_ACCEPT_FAILED), "socket accept failed" },28{ ERR_PACK(0, 0, AFALG_R_SOCKET_BIND_FAILED), "socket bind failed" },29{ ERR_PACK(0, 0, AFALG_R_SOCKET_CREATE_FAILED), "socket create failed" },30{ ERR_PACK(0, 0, AFALG_R_SOCKET_OPERATION_FAILED),31"socket operation failed" },32{ ERR_PACK(0, 0, AFALG_R_SOCKET_SET_KEY_FAILED), "socket set key failed" },33{ 0, NULL }34};3536#endif3738static int lib_code = 0;39static int error_loaded = 0;4041static int ERR_load_AFALG_strings(void)42{43if (lib_code == 0)44lib_code = ERR_get_next_error_library();4546if (!error_loaded) {47#ifndef OPENSSL_NO_ERR48ERR_load_strings(lib_code, AFALG_str_reasons);49#endif50error_loaded = 1;51}52return 1;53}5455static void ERR_unload_AFALG_strings(void)56{57if (error_loaded) {58#ifndef OPENSSL_NO_ERR59ERR_unload_strings(lib_code, AFALG_str_reasons);60#endif61error_loaded = 0;62}63}6465static void ERR_AFALG_error(int function, int reason, const char *file, int line)66{67if (lib_code == 0)68lib_code = ERR_get_next_error_library();69ERR_raise(lib_code, reason);70ERR_set_debug(file, line, NULL);71}727374