mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
default to TLS when not being able to determine version
This commit is contained in:
parent
902d52e261
commit
018735a574
1 changed files with 2 additions and 2 deletions
|
@ -39,13 +39,13 @@ type SSLRecord(is_orig: bool) = record {
|
||||||
$context.connection.determine_ssl_version(head0, head1, head2);
|
$context.connection.determine_ssl_version(head0, head1, head2);
|
||||||
|
|
||||||
content_type : int = case version of {
|
content_type : int = case version of {
|
||||||
UNKNOWN_VERSION -> 0;
|
# UNKNOWN_VERSION -> 0; assume tls on unknown version
|
||||||
SSLv20 -> head2+300;
|
SSLv20 -> head2+300;
|
||||||
default -> head0;
|
default -> head0;
|
||||||
};
|
};
|
||||||
|
|
||||||
length : int = case version of {
|
length : int = case version of {
|
||||||
UNKNOWN_VERSION -> 0;
|
# UNKNOWN_VERSION -> 0; assume tls on unknown version
|
||||||
SSLv20 -> (((head0 & 0x7f) << 8) | head1) - 3;
|
SSLv20 -> (((head0 & 0x7f) << 8) | head1) - 3;
|
||||||
default -> (head3 << 8) | head4;
|
default -> (head3 << 8) | head4;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue