aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_server.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-09-06 18:36:27 +0200
committerMartin Willi <martin@revosec.ch>2010-09-06 18:37:24 +0200
commitec7d4e70d3dd255441ee0ee2060b3a44de8ea3b8 (patch)
tree8fc0adf18e67051f59841e6caff05b8cd2d4b007 /src/libtls/tls_server.c
parent3f5de7b65f61ab8dac61d74afa16142e4b91c41a (diff)
downloadstrongswan-ec7d4e70d3dd255441ee0ee2060b3a44de8ea3b8.tar.bz2
strongswan-ec7d4e70d3dd255441ee0ee2060b3a44de8ea3b8.tar.xz
Renamed ecp_format to ansi_format, as point formats in TLS use different identifiers
Diffstat (limited to 'src/libtls/tls_server.c')
-rw-r--r--src/libtls/tls_server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libtls/tls_server.c b/src/libtls/tls_server.c
index e48e6c5b7..d1accbc2e 100644
--- a/src/libtls/tls_server.c
+++ b/src/libtls/tls_server.c
@@ -419,10 +419,10 @@ static status_t process_key_exchange_dhe(private_tls_server_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;
}
@@ -857,7 +857,7 @@ static status_t send_server_key_exchange(private_tls_server_t *this,
else
{ /* ECP uses 8bit length header only, but a point format */
writer->write_uint8(writer, chunk.len + 1);
- writer->write_uint8(writer, TLS_ECP_UNCOMPRESSED);
+ writer->write_uint8(writer, TLS_ANSI_UNCOMPRESSED);
writer->write_data(writer, chunk);
}
free(chunk.ptr);