mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +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.
|
||||
|
||||
|
||||
#include "plugin/Plugin.h"
|
||||
|
||||
#include "SSH.h"
|
||||
|
||||
namespace plugin {
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
using namespace analyzer::SSH;
|
||||
|
||||
SSH_Analyzer::SSH_Analyzer(Connection* c)
|
||||
|
||||
: tcp::TCP_ApplicationAnalyzer("SSH", c)
|
||||
|
||||
{
|
||||
interp = new binpac::SSH::SSH_Conn(this);
|
||||
had_gap = false;
|
||||
|
@ -31,12 +29,10 @@ SSH_Analyzer::~SSH_Analyzer()
|
|||
|
||||
void SSH_Analyzer::Done()
|
||||
{
|
||||
|
||||
tcp::TCP_ApplicationAnalyzer::Done();
|
||||
|
||||
interp->FlowEOF(true);
|
||||
interp->FlowEOF(false);
|
||||
|
||||
}
|
||||
|
||||
void SSH_Analyzer::EndpointEOF(bool is_orig)
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
#include "analyzer/protocol/tcp/TCP.h"
|
||||
#include "ssh_pac.h"
|
||||
|
||||
namespace analyzer { namespace SSH {
|
||||
|
||||
namespace analyzer {
|
||||
namespace SSH {
|
||||
class SSH_Analyzer : public tcp::TCP_ApplicationAnalyzer {
|
||||
|
||||
public:
|
||||
|
@ -43,6 +43,6 @@ protected:
|
|||
|
||||
};
|
||||
|
||||
} } // namespace analyzer::*
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -192,6 +192,7 @@ type ssh1_mp_int = record {
|
|||
val : bytestring &length=(len+7)/8;
|
||||
};
|
||||
|
||||
|
||||
## SSH2
|
||||
|
||||
type SSH2_Key_Exchange_Header = record {
|
||||
|
@ -569,8 +570,6 @@ refine connection SSH_Conn += {
|
|||
Unref(server_list);
|
||||
|
||||
return true;
|
||||
|
||||
%}
|
||||
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue