From b6c5eca2d51467beec0ae18e66a7b32d593aef00 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 7 Feb 2019 13:18:21 +0000 Subject: [PATCH] Adapt mbedtls_ssl_parse_certificate() to removal of peer_cert field --- library/ssl_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index f012fb6a8..141c2550d 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -6301,10 +6301,10 @@ crt_verify: goto exit; } } -#endif /* !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */ - +#else ssl->session_negotiate->peer_cert = chain; chain = NULL; +#endif /* !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */ MBEDTLS_SSL_DEBUG_MSG( 2, ( "<= parse certificate" ) );