mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Change error description
1. Change error description to a clearer one. 2. Change value in the error codes ranges description.
This commit is contained in:
		
							parent
							
								
									a27190b774
								
							
						
					
					
						commit
						5267b62248
					
				@ -80,7 +80,7 @@
 | 
			
		||||
 * CHACHA20  3                  0x0051-0x0055
 | 
			
		||||
 * POLY1305  3                  0x0057-0x005B
 | 
			
		||||
 * CHACHAPOLY 2 0x0054-0x0056
 | 
			
		||||
 * PLATFORM  1  0x0080-0x0080
 | 
			
		||||
 * PLATFORM  1  0x0070-0x0070
 | 
			
		||||
 *
 | 
			
		||||
 * High-level module nr (3 bits - 0x0...-0x7...)
 | 
			
		||||
 * Name      ID  Nr of Errors
 | 
			
		||||
 | 
			
		||||
@ -43,7 +43,7 @@
 | 
			
		||||
#include "platform_time.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED       -0x0070 /**< Hardware failed platform operation. */
 | 
			
		||||
#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED       -0x0070 /**< Hardware accelerator failed */
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
extern "C" {
 | 
			
		||||
 | 
			
		||||
@ -827,7 +827,7 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_PLATFORM_C)
 | 
			
		||||
    if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED) )
 | 
			
		||||
        mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware failed platform operation" );
 | 
			
		||||
        mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware accelerator failed" );
 | 
			
		||||
#endif /* MBEDTLS_PLATFORM_C */
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_POLY1305_C)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user