Support for EC curve Hello extension, EC curve fallback

This commit is contained in:
Martin Willi
2010-09-03 14:54:43 +02:00
parent 141d7f7abd
commit 37a59a8fbf
6 changed files with 143 additions and 23 deletions
+5 -1
View File
@@ -709,10 +709,14 @@ static status_t send_client_hello(private_tls_peer_t *this,
writer->write_uint8(writer, 1);
writer->write_uint8(writer, 0);
/* signature algorithms extension */
extensions = tls_writer_create(32);
extensions->write_uint16(extensions, TLS_EXT_SIGNATURE_ALGORITHMS);
this->crypto->get_signature_algorithms(this->crypto, extensions);
extensions->write_uint16(extensions, TLS_EXT_ELLIPTIC_CURVES);
this->crypto->get_curves(this->crypto, extensions);
writer->write_data16(writer, extensions->get_buf(extensions));
extensions->destroy(extensions);