suricata
util-ja3.h File Reference
#include "detect.h"
Include dependency graph for util-ja3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  JA3Buffer_
 

Macros

#define JA3_BUFFER_INITIAL_SIZE   128
 

Typedefs

typedef struct JA3Buffer_ JA3Buffer
 

Functions

JA3BufferJa3BufferInit (void)
 Allocate new buffer. More...
 
void Ja3BufferFree (JA3Buffer **)
 Free allocated buffer. More...
 
int Ja3BufferAppendBuffer (JA3Buffer **, JA3Buffer **)
 
int Ja3BufferAddValue (JA3Buffer **, uint32_t)
 
char * Ja3GenerateHash (JA3Buffer *)
 
int Ja3IsDisabled (const char *)
 

Detailed Description

Macro Definition Documentation

◆ JA3_BUFFER_INITIAL_SIZE

#define JA3_BUFFER_INITIAL_SIZE   128

Definition at line 28 of file util-ja3.h.

Typedef Documentation

◆ JA3Buffer

typedef struct JA3Buffer_ JA3Buffer

Function Documentation

◆ Ja3BufferAddValue()

int Ja3BufferAddValue ( JA3Buffer **  ,
uint32_t   
)

Definition at line 315 of file util-ja3.c.

◆ Ja3BufferAppendBuffer()

int Ja3BufferAppendBuffer ( JA3Buffer **  ,
JA3Buffer **   
)

Definition at line 310 of file util-ja3.c.

◆ Ja3BufferFree()

void Ja3BufferFree ( JA3Buffer **  buffer)

Free allocated buffer.

Parameters
bufferThe buffer to free.

Definition at line 54 of file util-ja3.c.

References DEBUG_VALIDATE_BUG_ON, and SCFree.

◆ Ja3BufferInit()

JA3Buffer* Ja3BufferInit ( void  )

Allocate new buffer.

Returns
pointer to buffer on success.
NULL on failure.

Definition at line 39 of file util-ja3.c.

References SCCalloc.

◆ Ja3GenerateHash()

char* Ja3GenerateHash ( JA3Buffer )

Definition at line 320 of file util-ja3.c.

◆ Ja3IsDisabled()

int Ja3IsDisabled ( const char *  )

Definition at line 325 of file util-ja3.c.