suricata
util-decode-der.c File Reference
#include "suricata-common.h"
#include "util-decode-der.h"
#include "util-validate.h"
Include dependency graph for util-decode-der.c:

Go to the source code of this file.

Macros

#define MAX_OID_LENGTH   256
 
#define DER_MAX_RECURSION_DEPTH   32
 

Functions

Asn1GenericDecodeDer (const unsigned char *buffer, uint32_t size, uint32_t *errcode)
 
void DerFree (Asn1Generic *a)
 

Detailed Description

Macro Definition Documentation

#define DER_MAX_RECURSION_DEPTH   32

Definition at line 134 of file util-decode-der.c.

#define MAX_OID_LENGTH   256

Definition at line 50 of file util-decode-der.c.

Function Documentation

Asn1Generic* DecodeDer ( const unsigned char *  buffer,
uint32_t  size,
uint32_t *  errcode 
)
Parameters
errcodepointer to error code variable. May not be NULL.

Definition at line 986 of file util-decode-der.c.

References BUG_ON, DEBUG_VALIDATE_BUG_ON, DecodeDer(), DerFree(), ERR_DER_INVALID_SIZE, and ERR_DER_UNKNOWN_ELEMENT.

Referenced by DecodeDer(), and SSLVersionToString().

Here is the call graph for this function:

Here is the caller graph for this function:

void DerFree ( Asn1Generic a)

Definition at line 1062 of file util-decode-der.c.

References Asn1Generic_::data, DerFree(), Asn1Generic_::next, SCFree, and Asn1Generic_::str.

Referenced by DecodeDer(), DerFree(), and SSLVersionToString().

Here is the call graph for this function:

Here is the caller graph for this function: