commit | 3ebb2cdb523e6d8708f8ca74d3cdac15e74ae185 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Sep 23 17:00:18 2013 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Sep 24 21:25:53 2013 +0200 |
tree | 0bd234278993890ec2a172206e05db93e9f30299 | |
parent | 834ea8587fc43151d3d629b23ba02a32256b2730 [diff] [blame] |
Add support for multiple server certificates
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 7f5ea76..86c2953 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -3849,6 +3849,10 @@ SSL_DEBUG_MSG( 2, ( "=> handshake" ) ); +#if defined(POLARSSL_X509_CRT_PARSE_C) + ssl->handshake->key_cert = ssl->key_cert; +#endif + while( ssl->state != SSL_HANDSHAKE_OVER ) { ret = ssl_handshake_step( ssl );