comparison src/http/ngx_http_request.c @ 3674:37715361263a

fix recognition of SSLv2 Client Hello Packet large than 255 bytes
author Igor Sysoev <igor@sysoev.ru>
date Mon, 05 Jul 2010 13:35:20 +0000
parents 31e9677b15a1
children e6e453203bae
comparison
equal deleted inserted replaced
3673:e27070fb6c6b 3674:37715361263a
553 553
554 return; 554 return;
555 } 555 }
556 556
557 if (n == 1) { 557 if (n == 1) {
558 if (buf[0] == 0x80 /* SSLv2 */ || buf[0] == 0x16 /* SSLv3/TLSv1 */) { 558 if (buf[0] & 0x80 /* SSLv2 */ || buf[0] == 0x16 /* SSLv3/TLSv1 */) {
559 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, rev->log, 0, 559 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, rev->log, 0,
560 "https ssl handshake: 0x%02Xd", buf[0]); 560 "https ssl handshake: 0x%02Xd", buf[0]);
561 561
562 rc = ngx_ssl_handshake(c); 562 rc = ngx_ssl_handshake(c);
563 563