From 73d4431ccdd0c989104188c34b80efd779e63eb8 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 22 May 2013 13:56:26 +0200 Subject: [PATCH] Fixed parse error in ssl_parse_certificate_request() --- ChangeLog | 1 + library/ssl_cli.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4270138cb..04f760632 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ Changes Bugfix * Fix for MPI assembly for ARM + * Fixed parse error in ssl_parse_certificate_request() = Version 1.2.6 released 2013-03-11 Bugfix diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 377d12bbb..900c63ab5 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -1180,7 +1180,7 @@ static int ssl_parse_certificate_request( ssl_context *ssl ) return( POLARSSL_ERR_SSL_BAD_HS_CERTIFICATE_REQUEST ); } - p = buf + 4; + p = buf + 5; while( cert_type_len > 0 ) { if( *p == SSL_CERT_TYPE_RSA_SIGN )