mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
SSH: Cleanup code style.
This commit is contained in:
parent
3190ca275e
commit
b76f7d9fa7
5 changed files with 278 additions and 285 deletions
|
@ -8,41 +8,41 @@
|
|||
#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 {
|
||||
|
||||
class SSH_Analyzer : public tcp::TCP_ApplicationAnalyzer {
|
||||
public:
|
||||
SSH_Analyzer(Connection* conn);
|
||||
virtual ~SSH_Analyzer();
|
||||
|
||||
public:
|
||||
SSH_Analyzer(Connection* conn);
|
||||
virtual ~SSH_Analyzer();
|
||||
// Overriden from Analyzer.
|
||||
virtual void Done();
|
||||
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
||||
virtual void Undelivered(uint64 seq, int len, bool orig);
|
||||
|
||||
// Overriden from Analyzer.
|
||||
virtual void Done();
|
||||
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
||||
virtual void Undelivered(uint64 seq, int len, bool orig);
|
||||
// Overriden from tcp::TCP_ApplicationAnalyzer.
|
||||
virtual void EndpointEOF(bool is_orig);
|
||||
|
||||
// Overriden from tcp::TCP_ApplicationAnalyzer.
|
||||
virtual void EndpointEOF(bool is_orig);
|
||||
static analyzer::Analyzer* Instantiate(Connection* conn)
|
||||
{ return new SSH_Analyzer(conn); }
|
||||
|
||||
static analyzer::Analyzer* Instantiate(Connection* conn)
|
||||
{ return new SSH_Analyzer(conn); }
|
||||
|
||||
protected:
|
||||
binpac::SSH::SSH_Conn* interp;
|
||||
protected:
|
||||
binpac::SSH::SSH_Conn* interp;
|
||||
|
||||
void ProcessEncrypted(int len, bool orig);
|
||||
void ProcessEncrypted(int len, bool orig);
|
||||
|
||||
bool had_gap;
|
||||
bool had_gap;
|
||||
|
||||
// Packet analysis stuff
|
||||
bool auth_decision_made;
|
||||
bool skipped_banner;
|
||||
// Packet analysis stuff
|
||||
bool auth_decision_made;
|
||||
bool skipped_banner;
|
||||
|
||||
int service_accept_size;
|
||||
int userauth_failure_size;
|
||||
int service_accept_size;
|
||||
int userauth_failure_size;
|
||||
|
||||
};
|
||||
|
||||
} } // namespace analyzer::*
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue