1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Add a few #ifdefs

This commit is contained in:
Manuel Pégourié-Gonnard
2014-10-09 17:35:53 +02:00
committed by Paul Bakker
parent ba958b8bdc
commit 8a7cf2543a
2 changed files with 17 additions and 6 deletions

View File

@ -1182,8 +1182,11 @@ read_record_header:
buf = ssl->in_hdr;
#if defined(POLARSSL_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO)
if( ssl->transport == SSL_TRANSPORT_STREAM && ( buf[0] & 0x80 ) != 0 )
return ssl_parse_client_hello_v2( ssl );
#if defined(POLARSSL_SSL_PROTO_DTLS)
if( ssl->transport == SSL_TRANSPORT_STREAM )
#endif
if( ( buf[0] & 0x80 ) != 0 )
return ssl_parse_client_hello_v2( ssl );
#endif
SSL_DEBUG_BUF( 4, "record header", buf, ssl_hdr_len( ssl ) );