Fixed encoding of TLS extensions (elliptic_curves and signature_algorithms)
This commit is contained in:
@@ -1110,6 +1110,7 @@ METHOD(tls_crypto_t, get_signature_algorithms, void,
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
supported->wrap16(supported);
|
||||
writer->write_data16(writer, supported->get_buf(supported));
|
||||
supported->destroy(supported);
|
||||
}
|
||||
|
||||
@@ -760,6 +760,7 @@ static status_t send_client_hello(private_tls_peer_t *this,
|
||||
enumerator->destroy(enumerator);
|
||||
if (curves)
|
||||
{
|
||||
curves->wrap16(curves);
|
||||
extensions->write_data16(extensions, curves->get_buf(curves));
|
||||
curves->destroy(curves);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user