mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	
							parent
							
								
									c6b5d833ec
								
							
						
					
					
						commit
						8b2641d36f
					
				@ -33,6 +33,8 @@ Bugfix
 | 
				
			|||||||
   * Fix memory corruption on client with overlong PSK identity, around
 | 
					   * Fix memory corruption on client with overlong PSK identity, around
 | 
				
			||||||
     SSL_MAX_CONTENT_LEN or higher - not triggerrable remotely (found by
 | 
					     SSL_MAX_CONTENT_LEN or higher - not triggerrable remotely (found by
 | 
				
			||||||
     Aleksandrs Saveljevs) (#238)
 | 
					     Aleksandrs Saveljevs) (#238)
 | 
				
			||||||
 | 
					   * Fix unused function warning when using MBEDTLS_MDx_ALT or
 | 
				
			||||||
 | 
					     MBEDTLS_SHAxxx_ALT (found by Henrik) (#239)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Changes
 | 
					Changes
 | 
				
			||||||
   * The PEM parser now accepts a trailing space at end of lines (#226).
 | 
					   * The PEM parser now accepts a trailing space at end of lines (#226).
 | 
				
			||||||
 | 
				
			|||||||
@ -47,13 +47,13 @@
 | 
				
			|||||||
#endif /* MBEDTLS_PLATFORM_C */
 | 
					#endif /* MBEDTLS_PLATFORM_C */
 | 
				
			||||||
#endif /* MBEDTLS_SELF_TEST */
 | 
					#endif /* MBEDTLS_SELF_TEST */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(MBEDTLS_MD2_ALT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Implementation that should never be optimized out by the compiler */
 | 
					/* Implementation that should never be optimized out by the compiler */
 | 
				
			||||||
static void mbedtls_zeroize( void *v, size_t n ) {
 | 
					static void mbedtls_zeroize( void *v, size_t n ) {
 | 
				
			||||||
    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
					    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(MBEDTLS_MD2_ALT)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static const unsigned char PI_SUBST[256] =
 | 
					static const unsigned char PI_SUBST[256] =
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, 0x3D, 0x36,
 | 
					    0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, 0x3D, 0x36,
 | 
				
			||||||
 | 
				
			|||||||
@ -47,13 +47,13 @@
 | 
				
			|||||||
#endif /* MBEDTLS_PLATFORM_C */
 | 
					#endif /* MBEDTLS_PLATFORM_C */
 | 
				
			||||||
#endif /* MBEDTLS_SELF_TEST */
 | 
					#endif /* MBEDTLS_SELF_TEST */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(MBEDTLS_MD4_ALT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Implementation that should never be optimized out by the compiler */
 | 
					/* Implementation that should never be optimized out by the compiler */
 | 
				
			||||||
static void mbedtls_zeroize( void *v, size_t n ) {
 | 
					static void mbedtls_zeroize( void *v, size_t n ) {
 | 
				
			||||||
    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
					    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(MBEDTLS_MD4_ALT)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * 32-bit integer manipulation macros (little endian)
 | 
					 * 32-bit integer manipulation macros (little endian)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -46,13 +46,13 @@
 | 
				
			|||||||
#endif /* MBEDTLS_PLATFORM_C */
 | 
					#endif /* MBEDTLS_PLATFORM_C */
 | 
				
			||||||
#endif /* MBEDTLS_SELF_TEST */
 | 
					#endif /* MBEDTLS_SELF_TEST */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(MBEDTLS_MD5_ALT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Implementation that should never be optimized out by the compiler */
 | 
					/* Implementation that should never be optimized out by the compiler */
 | 
				
			||||||
static void mbedtls_zeroize( void *v, size_t n ) {
 | 
					static void mbedtls_zeroize( void *v, size_t n ) {
 | 
				
			||||||
    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
					    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(MBEDTLS_MD5_ALT)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * 32-bit integer manipulation macros (little endian)
 | 
					 * 32-bit integer manipulation macros (little endian)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -46,13 +46,13 @@
 | 
				
			|||||||
#endif /* MBEDTLS_PLATFORM_C */
 | 
					#endif /* MBEDTLS_PLATFORM_C */
 | 
				
			||||||
#endif /* MBEDTLS_SELF_TEST */
 | 
					#endif /* MBEDTLS_SELF_TEST */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(MBEDTLS_SHA1_ALT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Implementation that should never be optimized out by the compiler */
 | 
					/* Implementation that should never be optimized out by the compiler */
 | 
				
			||||||
static void mbedtls_zeroize( void *v, size_t n ) {
 | 
					static void mbedtls_zeroize( void *v, size_t n ) {
 | 
				
			||||||
    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
					    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(MBEDTLS_SHA1_ALT)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * 32-bit integer manipulation macros (big endian)
 | 
					 * 32-bit integer manipulation macros (big endian)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -46,13 +46,13 @@
 | 
				
			|||||||
#endif /* MBEDTLS_PLATFORM_C */
 | 
					#endif /* MBEDTLS_PLATFORM_C */
 | 
				
			||||||
#endif /* MBEDTLS_SELF_TEST */
 | 
					#endif /* MBEDTLS_SELF_TEST */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(MBEDTLS_SHA256_ALT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Implementation that should never be optimized out by the compiler */
 | 
					/* Implementation that should never be optimized out by the compiler */
 | 
				
			||||||
static void mbedtls_zeroize( void *v, size_t n ) {
 | 
					static void mbedtls_zeroize( void *v, size_t n ) {
 | 
				
			||||||
    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
					    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(MBEDTLS_SHA256_ALT)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * 32-bit integer manipulation macros (big endian)
 | 
					 * 32-bit integer manipulation macros (big endian)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
@ -52,13 +52,13 @@
 | 
				
			|||||||
#endif /* MBEDTLS_PLATFORM_C */
 | 
					#endif /* MBEDTLS_PLATFORM_C */
 | 
				
			||||||
#endif /* MBEDTLS_SELF_TEST */
 | 
					#endif /* MBEDTLS_SELF_TEST */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(MBEDTLS_SHA512_ALT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Implementation that should never be optimized out by the compiler */
 | 
					/* Implementation that should never be optimized out by the compiler */
 | 
				
			||||||
static void mbedtls_zeroize( void *v, size_t n ) {
 | 
					static void mbedtls_zeroize( void *v, size_t n ) {
 | 
				
			||||||
    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
					    volatile unsigned char *p = v; while( n-- ) *p++ = 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(MBEDTLS_SHA512_ALT)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * 64-bit integer manipulation macros (big endian)
 | 
					 * 64-bit integer manipulation macros (big endian)
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user