Path: blob/main/crypto/openssl/engines/e_loader_attic_err.c
34865 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_loader_attic_err.h"1213#ifndef OPENSSL_NO_ERR1415static ERR_STRING_DATA ATTIC_str_reasons[] = {16{ERR_PACK(0, 0, ATTIC_R_AMBIGUOUS_CONTENT_TYPE), "ambiguous content type"},17{ERR_PACK(0, 0, ATTIC_R_BAD_PASSWORD_READ), "bad password read"},18{ERR_PACK(0, 0, ATTIC_R_ERROR_VERIFYING_PKCS12_MAC),19"error verifying pkcs12 mac"},20{ERR_PACK(0, 0, ATTIC_R_INIT_FAILED), "init failed"},21{ERR_PACK(0, 0, ATTIC_R_PASSPHRASE_CALLBACK_ERROR),22"passphrase callback error"},23{ERR_PACK(0, 0, ATTIC_R_PATH_MUST_BE_ABSOLUTE), "path must be absolute"},24{ERR_PACK(0, 0, ATTIC_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES),25"search only supported for directories"},26{ERR_PACK(0, 0, ATTIC_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED),27"ui process interrupted or cancelled"},28{ERR_PACK(0, 0, ATTIC_R_UNSUPPORTED_CONTENT_TYPE),29"unsupported content type"},30{ERR_PACK(0, 0, ATTIC_R_UNSUPPORTED_SEARCH_TYPE),31"unsupported search type"},32{ERR_PACK(0, 0, ATTIC_R_URI_AUTHORITY_UNSUPPORTED),33"uri authority unsupported"},34{0, NULL}35};3637#endif3839static int lib_code = 0;40static int error_loaded = 0;4142static int ERR_load_ATTIC_strings(void)43{44if (lib_code == 0)45lib_code = ERR_get_next_error_library();4647if (!error_loaded) {48#ifndef OPENSSL_NO_ERR49ERR_load_strings(lib_code, ATTIC_str_reasons);50#endif51error_loaded = 1;52}53return 1;54}5556static void ERR_unload_ATTIC_strings(void)57{58if (error_loaded) {59#ifndef OPENSSL_NO_ERR60ERR_unload_strings(lib_code, ATTIC_str_reasons);61#endif62error_loaded = 0;63}64}6566static void ERR_ATTIC_error(int function, int reason, const char *file, int line)67{68if (lib_code == 0)69lib_code = ERR_get_next_error_library();70ERR_raise(lib_code, reason);71ERR_set_debug(file, line, NULL);72}737475