SSH: Cleanup code style.

This commit is contained in:
Vlad Grigorescu 2015-03-03 16:22:22 -05:00
parent 3190ca275e
commit b76f7d9fa7
5 changed files with 278 additions and 285 deletions

View file

@ -1,8 +1,6 @@
// See the file in the main distribution directory for copyright.
#include "plugin/Plugin.h"
#include "SSH.h"
namespace plugin {

View file

@ -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)

View file

@ -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

View file

@ -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;
%}
};