mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
SSH: Cleanup code style.
This commit is contained in:
parent
3190ca275e
commit
b76f7d9fa7
5 changed files with 278 additions and 285 deletions
|
@ -1,8 +1,6 @@
|
||||||
// See the file in the main distribution directory for copyright.
|
// See the file in the main distribution directory for copyright.
|
||||||
|
|
||||||
|
|
||||||
#include "plugin/Plugin.h"
|
#include "plugin/Plugin.h"
|
||||||
|
|
||||||
#include "SSH.h"
|
#include "SSH.h"
|
||||||
|
|
||||||
namespace plugin {
|
namespace plugin {
|
||||||
|
|
|
@ -12,9 +12,7 @@
|
||||||
using namespace analyzer::SSH;
|
using namespace analyzer::SSH;
|
||||||
|
|
||||||
SSH_Analyzer::SSH_Analyzer(Connection* c)
|
SSH_Analyzer::SSH_Analyzer(Connection* c)
|
||||||
|
|
||||||
: tcp::TCP_ApplicationAnalyzer("SSH", c)
|
: tcp::TCP_ApplicationAnalyzer("SSH", c)
|
||||||
|
|
||||||
{
|
{
|
||||||
interp = new binpac::SSH::SSH_Conn(this);
|
interp = new binpac::SSH::SSH_Conn(this);
|
||||||
had_gap = false;
|
had_gap = false;
|
||||||
|
@ -31,12 +29,10 @@ SSH_Analyzer::~SSH_Analyzer()
|
||||||
|
|
||||||
void SSH_Analyzer::Done()
|
void SSH_Analyzer::Done()
|
||||||
{
|
{
|
||||||
|
|
||||||
tcp::TCP_ApplicationAnalyzer::Done();
|
tcp::TCP_ApplicationAnalyzer::Done();
|
||||||
|
|
||||||
interp->FlowEOF(true);
|
interp->FlowEOF(true);
|
||||||
interp->FlowEOF(false);
|
interp->FlowEOF(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SSH_Analyzer::EndpointEOF(bool is_orig)
|
void SSH_Analyzer::EndpointEOF(bool is_orig)
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
#include "analyzer/protocol/tcp/TCP.h"
|
#include "analyzer/protocol/tcp/TCP.h"
|
||||||
#include "ssh_pac.h"
|
#include "ssh_pac.h"
|
||||||
|
|
||||||
namespace analyzer { namespace SSH {
|
namespace analyzer {
|
||||||
|
namespace SSH {
|
||||||
class SSH_Analyzer : public tcp::TCP_ApplicationAnalyzer {
|
class SSH_Analyzer : public tcp::TCP_ApplicationAnalyzer {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -43,6 +43,6 @@ protected:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} } // namespace analyzer::*
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -192,6 +192,7 @@ type ssh1_mp_int = record {
|
||||||
val : bytestring &length=(len+7)/8;
|
val : bytestring &length=(len+7)/8;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
## SSH2
|
## SSH2
|
||||||
|
|
||||||
type SSH2_Key_Exchange_Header = record {
|
type SSH2_Key_Exchange_Header = record {
|
||||||
|
@ -569,8 +570,6 @@ refine connection SSH_Conn += {
|
||||||
Unref(server_list);
|
Unref(server_list);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue