| 
									
										
										
										
											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-09-21 14:07:34 +08:00
										 |  |  |  * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. | 
					
						
							| 
									
										
										
										
											1999-04-24 08:15:18 +08:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2018-12-06 21:03:01 +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
 | 
					
						
							| 
									
										
										
										
											1999-04-24 08:15:18 +08:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1999-04-24 06:13:45 +08:00
										 |  |  | #include <openssl/err.h>
 | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  | #include <openssl/cryptoerr.h>
 | 
					
						
							| 
									
										
										
										
											2020-11-12 17:36:47 +08:00
										 |  |  | #include "crypto/cryptoerr.h"
 | 
					
						
							| 
									
										
										
										
											1998-12-21 18:56:39 +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 CRYPTO_str_reasons[] = { | 
					
						
							| 
									
										
										
										
											2019-11-09 07:18:05 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_BAD_ALGORITHM_NAME), | 
					
						
							|  |  |  |     "bad algorithm name"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_CONFLICTING_NAMES), | 
					
						
							|  |  |  |     "conflicting names"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_FIPS_MODE_NOT_SUPPORTED), | 
					
						
							|  |  |  |     "fips mode not supported"}, | 
					
						
							| 
									
										
										
										
											2020-12-08 01:25:10 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_HEX_STRING_TOO_SHORT), | 
					
						
							|  |  |  |     "hex string too short"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ILLEGAL_HEX_DIGIT), | 
					
						
							|  |  |  |     "illegal hex digit"}, | 
					
						
							| 
									
										
										
										
											2019-07-17 14:59:09 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_DATA_SPACE), | 
					
						
							|  |  |  |     "insufficient data space"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_PARAM_SIZE), | 
					
						
							|  |  |  |     "insufficient param size"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INSUFFICIENT_SECURE_DATA_SPACE), | 
					
						
							|  |  |  |     "insufficient secure data space"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INVALID_NULL_ARGUMENT), | 
					
						
							|  |  |  |     "invalid null argument"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_INVALID_OSSL_PARAM_TYPE), | 
					
						
							|  |  |  |     "invalid ossl param type"}, | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ODD_NUMBER_OF_DIGITS), | 
					
						
							|  |  |  |     "odd number of digits"}, | 
					
						
							| 
									
										
										
										
											2019-01-20 20:14:58 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_ALREADY_EXISTS), | 
					
						
							|  |  |  |     "provider already exists"}, | 
					
						
							| 
									
										
										
										
											2019-03-20 23:53:19 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_PROVIDER_SECTION_ERROR), | 
					
						
							|  |  |  |     "provider section error"}, | 
					
						
							| 
									
										
										
										
											2020-09-21 14:07:34 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_RANDOM_SECTION_ERROR), | 
					
						
							|  |  |  |     "random section error"}, | 
					
						
							| 
									
										
										
										
											2019-07-17 14:59:09 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_SECURE_MALLOC_FAILURE), | 
					
						
							|  |  |  |     "secure malloc failure"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_STRING_TOO_LONG), "string too long"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_BYTES), "too many bytes"}, | 
					
						
							|  |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_MANY_RECORDS), | 
					
						
							|  |  |  |     "too many records"}, | 
					
						
							| 
									
										
										
										
											2019-07-04 00:40:17 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_TOO_SMALL_BUFFER), | 
					
						
							|  |  |  |     "too small buffer"}, | 
					
						
							| 
									
										
										
										
											2020-09-21 14:07:34 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_UNKNOWN_NAME_IN_RANDOM_SECTION), | 
					
						
							|  |  |  |     "unknown name in random section"}, | 
					
						
							| 
									
										
										
										
											2019-07-17 14:59:09 +08:00
										 |  |  |     {ERR_PACK(ERR_LIB_CRYPTO, 0, CRYPTO_R_ZERO_LENGTH_NUMBER), | 
					
						
							|  |  |  |     "zero length number"}, | 
					
						
							| 
									
										
										
										
											2015-01-22 11:40:55 +08:00
										 |  |  |     {0, NULL} | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											1998-12-21 18:56:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-12 17:36:47 +08:00
										 |  |  | int err_load_CRYPTO_strings_int(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(CRYPTO_str_reasons[0].error) == NULL) | 
					
						
							| 
									
										
										
										
											2017-06-08 03:12:03 +08:00
										 |  |  |         ERR_load_strings_const(CRYPTO_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
										 |  |  | } |