suricata
app-layer-ssh.c File Reference
#include "suricata-common.h"
#include "debug.h"
#include "decode.h"
#include "threads.h"
#include "util-print.h"
#include "util-pool.h"
#include "stream-tcp-private.h"
#include "stream-tcp-reassemble.h"
#include "stream-tcp.h"
#include "stream.h"
#include "app-layer-protos.h"
#include "app-layer-parser.h"
#include "app-layer-ssh.h"
#include "conf.h"
#include "util-spm.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "flow-private.h"
#include "util-byte.h"
#include "util-memcmp.h"
#include "flow-util.h"
Include dependency graph for app-layer-ssh.c:

Go to the source code of this file.

Macros

#define MAX_BANNER_LEN   256
 

Functions

void RegisterSSHParsers (void)
 Function to register the SSH protocol parsers and other functions. More...
 
void SSHParserRegisterTests (void)
 

Detailed Description

Macro Definition Documentation

#define MAX_BANNER_LEN   256

Definition at line 347 of file app-layer-ssh.c.

Function Documentation

void RegisterSSHParsers ( void  )

Function to register the SSH protocol parsers and other functions.

Definition at line 618 of file app-layer-ssh.c.

References Flow_::alparser, ALPROTO_SSH, Flow_::alstate, APP_LAYER_PARSER_NO_INSPECTION, AppLayerParserConfParserEnabled(), AppLayerParserParse(), AppLayerParserRegisterDetectFlagsFuncs(), AppLayerParserRegisterDetectStateFuncs(), AppLayerParserRegisterGetStateProgressCompletionStatus(), AppLayerParserRegisterGetStateProgressFunc(), AppLayerParserRegisterGetTx(), AppLayerParserRegisterGetTxCnt(), AppLayerParserRegisterLoggerFuncs(), AppLayerParserRegisterParser(), AppLayerParserRegisterParserAcceptableDataDirection(), AppLayerParserRegisterProtocolUnittests(), AppLayerParserRegisterStateFuncs(), AppLayerParserRegisterTxFreeFunc(), AppLayerParserStateIssetFlag(), AppLayerParserThreadCtxAlloc(), AppLayerParserThreadCtxFree(), AppLayerProtoDetectConfProtoDetectionEnabled(), AppLayerProtoDetectRegisterProtocol(), SshState_::cli_hdr, SshHeader_::flags, FLOW_DESTROY, FLOW_INITIALIZE, FLOWLOCK_UNLOCK, FLOWLOCK_WRLOCK, SshHeader_::proto_version, Flow_::protoctx, SCCalloc, SCLogDebug, SshHeader_::software_version, SshState_::srv_hdr, SSH_FLAG_PARSER_DONE, SSH_FLAG_VERSION_PARSED, SSHParserRegisterTests(), STREAM_EOF, STREAM_TOCLIENT, STREAM_TOSERVER, StreamTcpFreeConfig(), StreamTcpInitConfig(), strlcpy(), and TRUE.

Referenced by AppLayerParserRegisterProtocolParsers(), and RegisterAllModules().

Here is the call graph for this function:

Here is the caller graph for this function:

void SSHParserRegisterTests ( void  )

Definition at line 2809 of file app-layer-ssh.c.

References UtRegisterTest().

Referenced by RegisterSSHParsers().

Here is the call graph for this function:

Here is the caller graph for this function: