Improved transition into SSL/TLS from RDP.

This commit is contained in:
Seth Hall 2015-03-05 16:57:58 -05:00
parent ffdf2a46d7
commit 371cf10c86
2 changed files with 15 additions and 5 deletions

View file

@ -388,15 +388,19 @@ refine connection RDP_Conn += {
%member{
bool is_encrypted_;
uint32 encryption_method_;
%}
%init{
is_encrypted_ = false;
encryption_method_ = 0;
%}
function go_encrypted(method: uint32): bool
%{
is_encrypted_ = true;
encryption_method_ = method;
if ( rdp_begin_encryption )
{
BifEvent::generate_rdp_begin_encryption(bro_analyzer(),
@ -411,4 +415,9 @@ refine connection RDP_Conn += {
%{
return is_encrypted_;
%}
function encryption_method(): uint32
%{
return encryption_method_;
%}
};