| 
									
										
										
										
											2016-05-18 05:38:18 +08:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2016-05-24 03:02:34 +08:00
										 |  |  |  * Generated by util/mkerr.pl DO NOT EDIT | 
					
						
							| 
									
										
										
										
											2020-11-12 17:36:47 +08:00
										 |  |  |  * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2000-04-05 05:57:11 +08:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2018-12-06 20:37:48 +08:00
										 |  |  |  * Licensed under the Apache License 2.0 (the "License").  You may not use | 
					
						
							| 
									
										
										
										
											2016-05-18 05:38:18 +08:00
										 |  |  |  * this file except in compliance with the License.  You can obtain a copy | 
					
						
							|  |  |  |  * in the file LICENSE in the source distribution or at | 
					
						
							|  |  |  |  * https://www.openssl.org/source/license.html
 | 
					
						
							| 
									
										
										
										
											2000-04-05 05:57:11 +08:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-23 20:54:52 +08:00
										 |  |  | #include <openssl/err.h>
 | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  | #include "internal/dsoerr.h"
 | 
					
						
							| 
									
										
										
										
											2000-04-05 05:57:11 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2001-02-20 00:06:34 +08:00
										 |  |  | #ifndef OPENSSL_NO_ERR
 | 
					
						
							| 
									
										
										
										
											2005-04-13 00:15:22 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  | static const ERR_STRING_DATA DSO_str_reasons[] = { | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_CTRL_FAILED), "control command failed"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_DSO_ALREADY_LOADED), "dso already loaded"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_EMPTY_FILE_STRUCTURE), | 
					
						
							|  |  |  |     "empty file structure"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FAILURE), "failure"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FILENAME_TOO_BIG), "filename too big"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_FINISH_FAILED), | 
					
						
							|  |  |  |     "cleanup method function failed"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_INCORRECT_FILE_SYNTAX), | 
					
						
							|  |  |  |     "incorrect file syntax"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_LOAD_FAILED), | 
					
						
							|  |  |  |     "could not load the shared library"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NAME_TRANSLATION_FAILED), | 
					
						
							|  |  |  |     "name translation failed"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NO_FILENAME), "no filename"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_NULL_HANDLE), | 
					
						
							|  |  |  |     "a null shared library handle was used"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SET_FILENAME_FAILED), | 
					
						
							|  |  |  |     "set filename failed"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_STACK_ERROR), | 
					
						
							|  |  |  |     "the meth_data stack is corrupt"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_SYM_FAILURE), | 
					
						
							|  |  |  |     "could not bind to the requested symbol name"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNLOAD_FAILED), | 
					
						
							|  |  |  |     "could not unload the shared library"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_DSO, 0, DSO_R_UNSUPPORTED), | 
					
						
							|  |  |  |     "functionality not supported"}, | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  |     {0, NULL} | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2000-04-05 05:57:11 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-25 10:04:22 +08:00
										 |  |  | int ossl_err_load_DSO_strings(void) | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2006-11-22 05:29:44 +08:00
										 |  |  | #ifndef OPENSSL_NO_ERR
 | 
					
						
							| 
									
										
										
										
											2019-09-05 03:45:56 +08:00
										 |  |  |     if (ERR_reason_error_string(DSO_str_reasons[0].error) == NULL) | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |         ERR_load_strings_const(DSO_str_reasons); | 
					
						
							| 
									
										
										
										
											2006-11-22 05:29:44 +08:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2016-07-12 21:50:06 +08:00
										 |  |  |     return 1; | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  | } |