From 6b8846d92952f067bc3d7e7fd8cb76be81c2966e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 15 Aug 2013 17:42:02 +0200 Subject: [PATCH] Stop advertising support for compressed points (We can only write them, not read them.) --- library/ssl_cli.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index a80a769c0..68f6cae7e 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -266,13 +266,12 @@ static void ssl_write_supported_point_formats_ext( ssl_context *ssl, *p++ = (unsigned char)( ( TLS_EXT_SUPPORTED_POINT_FORMATS ) & 0xFF ); *p++ = 0x00; - *p++ = 3; - *p++ = 2; - *p++ = POLARSSL_ECP_PF_COMPRESSED; + + *p++ = 1; *p++ = POLARSSL_ECP_PF_UNCOMPRESSED; - *olen = 7; + *olen = 6; } #endif