mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Remove MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP error code
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
		
							parent
							
								
									d01fc5f583
								
							
						
					
					
						commit
						b24e74bff7
					
				@ -101,9 +101,9 @@
 | 
			
		||||
 * HKDF      5   1 (Started from top)
 | 
			
		||||
 * SSL       5   2 (Started from 0x5F00)
 | 
			
		||||
 * CIPHER    6   8 (Started from 0x6080)
 | 
			
		||||
 * SSL       7   30 (Started from 0x7080, gaps at
 | 
			
		||||
 *                   0x7500, 0x7580)
 | 
			
		||||
 * SSL       6   24 (Started from top, plus 0x6000)
 | 
			
		||||
 * SSL       7   29 (Started from 0x7080, gaps at
 | 
			
		||||
 *                   0x7500, 0x7580, 0x7C80)
 | 
			
		||||
 *
 | 
			
		||||
 * Module dependent error code (5 bits 0x.00.-0x.F8.)
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
@ -87,7 +87,7 @@
 | 
			
		||||
#define MBEDTLS_ERR_SSL_BAD_HS_SERVER_KEY_EXCHANGE        -0x7B00  /**< Processing of the ServerKeyExchange handshake message failed. */
 | 
			
		||||
#define MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO_DONE          -0x7B80  /**< Processing of the ServerHelloDone handshake message failed. */
 | 
			
		||||
#define MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE        -0x7C00  /**< Processing of the ClientKeyExchange handshake message failed. */
 | 
			
		||||
#define MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP     -0x7C80  /**< Processing of the ClientKeyExchange handshake message failed in DHM / ECDH Read Public. */
 | 
			
		||||
/* Error space gap */
 | 
			
		||||
#define MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_CS     -0x7D00  /**< Processing of the ClientKeyExchange handshake message failed in DHM / ECDH Calculate Secret. */
 | 
			
		||||
#define MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_VERIFY         -0x7D80  /**< Processing of the CertificateVerify handshake message failed. */
 | 
			
		||||
#define MBEDTLS_ERR_SSL_BAD_HS_CHANGE_CIPHER_SPEC         -0x7E00  /**< Processing of the ChangeCipherSpec handshake message failed. */
 | 
			
		||||
 | 
			
		||||
@ -3404,7 +3404,7 @@ static int ssl_parse_client_dh_public( mbedtls_ssl_context *ssl, unsigned char *
 | 
			
		||||
    if( ( ret = mbedtls_dhm_read_public( &ssl->handshake->dhm_ctx, *p, n ) ) != 0 )
 | 
			
		||||
    {
 | 
			
		||||
        MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_dhm_read_public", ret );
 | 
			
		||||
        return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP );
 | 
			
		||||
        return( MBEDTLS_ERR_SSL_DECODE_ERROR );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    *p += n;
 | 
			
		||||
@ -3769,7 +3769,7 @@ static int ssl_parse_client_key_exchange( mbedtls_ssl_context *ssl )
 | 
			
		||||
                                      p, end - p) ) != 0 )
 | 
			
		||||
        {
 | 
			
		||||
            MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ecdh_read_public", ret );
 | 
			
		||||
            return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP );
 | 
			
		||||
            return( MBEDTLS_ERR_SSL_DECODE_ERROR );
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        MBEDTLS_SSL_DEBUG_ECDH( 3, &ssl->handshake->ecdh_ctx,
 | 
			
		||||
@ -3915,7 +3915,7 @@ static int ssl_parse_client_key_exchange( mbedtls_ssl_context *ssl )
 | 
			
		||||
                                       p, end - p ) ) != 0 )
 | 
			
		||||
        {
 | 
			
		||||
            MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ecdh_read_public", ret );
 | 
			
		||||
            return( MBEDTLS_ERR_SSL_BAD_HS_CLIENT_KEY_EXCHANGE_RP );
 | 
			
		||||
            return( MBEDTLS_ERR_SSL_DECODE_ERROR );
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user