mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
Include ec_point_format extension in ClientHello
This commit is contained in:
parent
02281c87a4
commit
31c65eb362
@ -731,6 +731,12 @@ static status_t send_client_hello(private_tls_peer_t *this,
|
||||
{
|
||||
extensions->write_data16(extensions, curves->get_buf(curves));
|
||||
curves->destroy(curves);
|
||||
|
||||
/* if we support curves, add point format extension */
|
||||
extensions->write_uint16(extensions, TLS_EXT_EC_POINT_FORMATS);
|
||||
extensions->write_uint16(extensions, 2);
|
||||
extensions->write_uint8(extensions, 1);
|
||||
extensions->write_uint8(extensions, TLS_EC_POINT_UNCOMPRESSED);
|
||||
}
|
||||
|
||||
writer->write_data16(writer, extensions->get_buf(extensions));
|
||||
|
Loading…
x
Reference in New Issue
Block a user