Renamed ecp_format to ansi_format, as point formats in TLS use different identifiers

This commit is contained in:
Martin Willi
2010-09-06 18:37:24 +02:00
parent 3f5de7b65f
commit ec7d4e70d3
4 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -449,10 +449,10 @@ static status_t process_ec_key_exchange(private_tls_peer_t *this,
return NEED_MORE;
}
if (pub.ptr[0] != TLS_ECP_UNCOMPRESSED)
if (pub.ptr[0] != TLS_ANSI_UNCOMPRESSED)
{
DBG1(DBG_TLS, "DH point format '%N' not supported",
tls_ecp_format_names, pub.ptr[0]);
tls_ansi_point_format_names, pub.ptr[0]);
this->alert->add(this->alert, TLS_FATAL, TLS_INTERNAL_ERROR);
return NEED_MORE;
}
@@ -918,7 +918,7 @@ static status_t send_key_exchange_dhe(private_tls_peer_t *this,
else
{ /* ECP uses 8bit length header only, but a point format */
writer->write_uint8(writer, pub.len + 1);
writer->write_uint8(writer, TLS_ECP_UNCOMPRESSED);
writer->write_uint8(writer, TLS_ANSI_UNCOMPRESSED);
writer->write_data(writer, pub);
}
free(pub.ptr);