Fixed encoding of TLS extensions (elliptic_curves and signature_algorithms)

This commit is contained in:
Tobias Brunner
2012-11-28 10:20:14 +01:00
parent ac6dd7d404
commit 07f826af67
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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);
}
+1
View File
@@ -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);