mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Actually use the point format selected for ECDH
This commit is contained in:
committed by
Paul Bakker
parent
7b19c16b74
commit
5734b2d358
@ -552,7 +552,7 @@ static int ssl_parse_supported_point_formats( ssl_context *ssl,
|
||||
if( p[0] == POLARSSL_ECP_PF_UNCOMPRESSED ||
|
||||
p[0] == POLARSSL_ECP_PF_COMPRESSED )
|
||||
{
|
||||
ssl->handshake->ec_point_format = p[0];
|
||||
ssl->handshake->ecdh_ctx.point_format = p[0];
|
||||
SSL_DEBUG_MSG( 4, ( "point format selected: %d", p[0] ) );
|
||||
return( 0 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user