tls-peer: Don't log anything if we are not sending supported groups
This commit is contained in:
parent
8cf3998f1a
commit
7b64880a8c
|
@ -1326,8 +1326,6 @@ static status_t send_client_hello(private_tls_peer_t *this,
|
||||||
names->destroy(names);
|
names->destroy(names);
|
||||||
}
|
}
|
||||||
|
|
||||||
DBG2(DBG_TLS, "sending extension: %N",
|
|
||||||
tls_extension_names, TLS_EXT_SUPPORTED_GROUPS);
|
|
||||||
enumerator = this->crypto->create_ec_enumerator(this->crypto);
|
enumerator = this->crypto->create_ec_enumerator(this->crypto);
|
||||||
while (enumerator->enumerate(enumerator, &group, &curve))
|
while (enumerator->enumerate(enumerator, &group, &curve))
|
||||||
{
|
{
|
||||||
|
@ -1351,8 +1349,12 @@ static status_t send_client_hello(private_tls_peer_t *this,
|
||||||
curves->write_uint16(curves, curve);
|
curves->write_uint16(curves, curve);
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
|
|
||||||
if (curves)
|
if (curves)
|
||||||
{
|
{
|
||||||
|
DBG2(DBG_TLS, "sending extension: %N",
|
||||||
|
tls_extension_names, TLS_EXT_SUPPORTED_GROUPS);
|
||||||
|
|
||||||
curves->wrap16(curves);
|
curves->wrap16(curves);
|
||||||
extensions->write_data16(extensions, curves->get_buf(curves));
|
extensions->write_data16(extensions, curves->get_buf(curves));
|
||||||
curves->destroy(curves);
|
curves->destroy(curves);
|
||||||
|
|
Loading…
Reference in New Issue