From cb99bdb27e798f2759e6800a6845e45c598febf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 25 Sep 2013 13:30:56 +0200 Subject: [PATCH] Client: if no cert, send empty cert list --- library/ssl_cli.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index ae8c916c8b..81d8e88347 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -1619,14 +1619,6 @@ static int ssl_parse_certificate_request( ssl_context *ssl ) p++; } - // TODO: shall we abort now or send an empty certificate list later? - - if( ssl->handshake->cert_type == 0 ) - { - SSL_DEBUG_MSG( 1, ( "no known cert_type provided" ) ); - return( POLARSSL_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST ); - } - #if defined(POLARSSL_SSL_PROTO_TLS1_2) if( ssl->minor_ver == SSL_MINOR_VERSION_3 ) {