mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Change dummy extension return
With error return, server can not receive Client Hello message. If received , we can test current status. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
		
							parent
							
								
									3c28fd3393
								
							
						
					
					
						commit
						7533635e5a
					
				@ -101,8 +101,9 @@ static int ssl_tls13_write_supported_groups_ext( mbedtls_ssl_context *ssl,
 | 
			
		||||
    ((void) ssl);
 | 
			
		||||
    ((void) buf);
 | 
			
		||||
    ((void) end);
 | 
			
		||||
    ((void) olen);
 | 
			
		||||
    return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
 | 
			
		||||
    *olen = 0;
 | 
			
		||||
    MBEDTLS_SSL_DEBUG_MSG( 3, ( "supported groups extension is not available" ) );
 | 
			
		||||
    return( 0 );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int ssl_tls13_write_key_shares_ext( mbedtls_ssl_context *ssl,
 | 
			
		||||
@ -113,8 +114,9 @@ static int ssl_tls13_write_key_shares_ext( mbedtls_ssl_context *ssl,
 | 
			
		||||
    ((void) ssl);
 | 
			
		||||
    ((void) buf);
 | 
			
		||||
    ((void) end);
 | 
			
		||||
    ((void) olen);
 | 
			
		||||
    return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
 | 
			
		||||
    *olen = 0;
 | 
			
		||||
    MBEDTLS_SSL_DEBUG_MSG( 3, ( "key share extension is not available" ) );
 | 
			
		||||
    return( 0 );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
 | 
			
		||||
 | 
			
		||||
@ -24,9 +24,11 @@
 | 
			
		||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
 | 
			
		||||
 | 
			
		||||
#include "mbedtls/error.h"
 | 
			
		||||
#include "mbedtls/debug.h"
 | 
			
		||||
 | 
			
		||||
#include "ssl_misc.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int mbedtls_ssl_tls13_start_handshake_msg( mbedtls_ssl_context *ssl,
 | 
			
		||||
                                           unsigned hs_type,
 | 
			
		||||
                                           unsigned char **buf,
 | 
			
		||||
@ -108,8 +110,9 @@ int mbedtls_ssl_tls13_write_sig_alg_ext( mbedtls_ssl_context *ssl,
 | 
			
		||||
    ((void) ssl);
 | 
			
		||||
    ((void) buf);
 | 
			
		||||
    ((void) end);
 | 
			
		||||
    ((void) olen);
 | 
			
		||||
    return( MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE );
 | 
			
		||||
    *olen = 0;
 | 
			
		||||
    MBEDTLS_SSL_DEBUG_MSG( 3, ( "signature_algorithm extension is not available" ) );
 | 
			
		||||
    return( 0 );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user