suricata
datasets-string.h File Reference
Include dependency graph for datasets-string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  StringType
 

Typedefs

typedef struct StringType StringType
 

Functions

int StringSet (void *dst, void *src)
 
bool StringCompare (void *a, void *b)
 
uint32_t StringHash (void *s)
 
void StringFree (void *s)
 
int StringAsBase64 (const void *s, char *out, size_t out_size)
 

Detailed Description

Typedef Documentation

typedef struct StringType StringType

Function Documentation

int StringAsBase64 ( const void *  s,
char *  out,
size_t  out_size 
)

Definition at line 46 of file datasets-string.c.

References Base64Encode(), StringType::len, len, StringType::ptr, SC_BASE64_OK, strlcat(), and strlcpy().

Referenced by DatasetsSave().

Here is the call graph for this function:

Here is the caller graph for this function:

bool StringCompare ( void *  a,
void *  b 
)

Definition at line 77 of file datasets-string.c.

References StringType::len, and StringType::ptr.

Referenced by DatasetGet().

Here is the caller graph for this function:

void StringFree ( void *  s)

Definition at line 102 of file datasets-string.c.

References StringType::ptr, and SCFree.

Referenced by DatasetGet().

Here is the caller graph for this function:

uint32_t StringHash ( void *  s)

Definition at line 88 of file datasets-string.c.

References StringType::len, and StringType::ptr.

Referenced by DatasetGet().

Here is the caller graph for this function:

int StringSet ( void *  dst,
void *  src 
)

Definition at line 61 of file datasets-string.c.

References BUG_ON, dst, StringType::len, StringType::ptr, StringType::rep, SCLogDebug, SCMalloc, and src.

Referenced by DatasetGet().

Here is the caller graph for this function: