From 018735a5744d8a82bbd7cee48fd828b4018d257f Mon Sep 17 00:00:00 2001 From: Bernhard Amann Date: Tue, 8 Apr 2014 09:49:00 -0700 Subject: [PATCH] default to TLS when not being able to determine version --- src/analyzer/protocol/ssl/ssl-protocol.pac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/analyzer/protocol/ssl/ssl-protocol.pac b/src/analyzer/protocol/ssl/ssl-protocol.pac index c12130abf8..944f081060 100644 --- a/src/analyzer/protocol/ssl/ssl-protocol.pac +++ b/src/analyzer/protocol/ssl/ssl-protocol.pac @@ -39,13 +39,13 @@ type SSLRecord(is_orig: bool) = record { $context.connection.determine_ssl_version(head0, head1, head2); content_type : int = case version of { - UNKNOWN_VERSION -> 0; + # UNKNOWN_VERSION -> 0; assume tls on unknown version SSLv20 -> head2+300; default -> head0; }; length : int = case version of { - UNKNOWN_VERSION -> 0; + # UNKNOWN_VERSION -> 0; assume tls on unknown version SSLv20 -> (((head0 & 0x7f) << 8) | head1) - 3; default -> (head3 << 8) | head4; };