suricata
log-tlslog.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void LogTlsLogRegister (void)
 
int TLSGetIPInformations (const Packet *p, char *srcip, size_t srcip_len, Port *sp, char *dstip, size_t dstip_len, Port *dp, int ipproto)
 

Detailed Description

Function Documentation

void LogTlsLogRegister ( void  )

Definition at line 536 of file log-tlslog.c.

References ALPROTO_TLS, LOGGER_TLS, MODULE_NAME, OutputRegisterTxModuleWithProgress(), and TLS_HANDSHAKE_DONE.

Referenced by OutputRegisterLoggers().

Here is the call graph for this function:

Here is the caller graph for this function:

int TLSGetIPInformations ( const Packet p,
char *  srcip,
size_t  srcip_len,
Port sp,
char *  dstip,
size_t  dstip_len,
Port dp,
int  ipproto 
)

Definition at line 97 of file log-tlslog.c.

References ALPROTO_TLS, AppLayerParserRegisterLogger(), MemBuffer_::buffer, LogTlsLogThread_::buffer, SSLStateConnp_::cert0_fingerprint, SSLStateConnp_::cert0_issuerdn, SSLStateConnp_::cert0_not_after, SSLStateConnp_::cert0_not_before, SSLStateConnp_::cert0_serial, SSLStateConnp_::cert0_subject, LogTlsFileCtx_::cf, LogCustomFormat_::cf_n, LogCustomFormat_::cf_nodes, SSLState_::client_connp, ConfNodeLookupChildValue(), ConfValIsTrue(), CreateTimeString(), CreateUtcIsoTimeString(), OutputInitResult_::ctx, LogCustomFormatNode_::data, OutputCtx_::data, DEFAULT_LOG_FILENAME, OutputCtx_::DeInit, Packet_::dp, LogTlsFileCtx_::file_ctx, LogTlsFileCtx_::flags, SSLState_::flags, GET_IPV4_DST_ADDR_PTR, GET_IPV4_SRC_ADDR_PTR, GET_IPV6_DST_ADDR, GET_IPV6_SRC_ADDR, LOG_CF_CLIENT_IP, LOG_CF_CLIENT_PORT, LOG_CF_LITERAL, LOG_CF_NONE, LOG_CF_SERVER_IP, LOG_CF_SERVER_PORT, LOG_CF_TIMESTAMP, LOG_CF_TIMESTAMP_U, LOG_CF_WRITE_SPACE_SEPARATOR, LOG_CF_WRITE_UNKNOWN_VALUE, LOG_TLS_CF_DATE_NOT_AFTER, LOG_TLS_CF_DATE_NOT_BEFORE, LOG_TLS_CF_EXTENDED, LOG_TLS_CF_ISSUER, LOG_TLS_CF_SHA1, LOG_TLS_CF_SNI, LOG_TLS_CF_SUBJECT, LOG_TLS_CF_VERSION, LOG_TLS_CUSTOM, LOG_TLS_DEFAULT, LOG_TLS_EXTENDED, LOG_TLS_SESSION_RESUMPTION, LogCustomFormatAlloc(), LogCustomFormatFree(), LogCustomFormatParse(), LogCustomFormatWriteTimestamp(), LogFileFreeCtx(), LogFileNewCtx(), MEMBUFFER_BUFFER, MEMBUFFER_OFFSET, MemBufferCreateNew(), MemBufferFree(), MemBufferReset, MemBufferWriteString, MIN, MemBuffer_::offset, OutputInitResult_::ok, OUTPUT_BUFFER_SIZE, PKT_IS_IPV4, PKT_IS_TOSERVER, PRINT_BUF_LEN, PrintInet(), PrintRawUriBuf(), SC_ERR_INVALID_ARGUMENT, SC_ERR_TLS_LOG_GENERIC, SCCalloc, SCConfLogOpenGeneric(), SCFree, SCLogDebug, SCLogError, SCLogInfo, SCMalloc, SSLState_::server_connp, MemBuffer_::size, SSLStateConnp_::sni, Packet_::sp, SSL_AL_FLAG_LOG_WITHOUT_CERT, SSL_AL_FLAG_SESSION_RESUMED, SSL_AL_FLAG_STATE_SERVER_HELLO, SSL_VERSION_MAX_STRLEN, SSLVersionToString(), LogTlsLogThread_::tls_cnt, TLSGetIPInformations(), LogTlsLogThread_::tlslog_ctx, TM_ECODE_FAILED, TM_ECODE_OK, ts, Packet_::ts, tx_id, LogCustomFormatNode_::type, unlikely, SSLStateConnp_::version, version, and LogFileCtx_::Write.

Referenced by TLSGetIPInformations().

Here is the call graph for this function:

Here is the caller graph for this function: