asn1.c File Reference
#include "squid.h"
#include "asn1.h"
#include "snmp_api_error.h"
Include dependency graph for asn1.c:

Go to the source code of this file.

Functions

u_char * asn_build_header (u_char *data, int *datalength, u_char type, int length)
 
u_char * asn_parse_int (u_char *data, int *datalength, u_char *type, int *intp, int intsize)
 
u_char * asn_parse_unsigned_int (u_char *data, int *datalength, u_char *type, u_int *intp, int intsize)
 
u_char * asn_build_int (u_char *data, int *datalength, u_char type, int *intp, int intsize)
 
u_char * asn_build_unsigned_int (u_char *data, int *datalength, u_char type, u_int *intp, int intsize)
 
u_char * asn_parse_string (u_char *data, int *datalength, u_char *type, u_char *string, int *strlength)
 
u_char * asn_build_string (u_char *data, int *datalength, u_char type, u_char *string, int strlength)
 
u_char * asn_parse_header (u_char *data, int *datalength, u_char *type)
 
u_char * asn_build_header_with_truth (u_char *data, int *datalength, u_char type, int length, int truth)
 
u_char * asn_parse_length (u_char *data, u_int *length)
 
u_char * asn_build_length (u_char *data, int *datalength, int length, int truth)
 
u_char * asn_parse_objid (u_char *data, int *datalength, u_char *type, oid *objid, int *objidlength)
 
u_char * asn_build_objid (u_char *data, int *datalength, u_char type, oid *objid, int objidlength)
 
u_char * asn_build_null (u_char *data, int *datalength, u_char type)
 
u_char * asn_build_exception (u_char *data, int *datalength, u_char type)
 

Function Documentation

◆ asn_build_exception()

u_char * asn_build_exception ( u_char *  data,
int datalength,
u_char  type 
)

Definition at line 837 of file asn1.c.

References asn_build_header_with_truth().

Referenced by snmp_var_EncodeVarBind().

◆ asn_build_header()

u_char * asn_build_header ( u_char *  data,
int datalength,
u_char  type,
int  length 
)

Definition at line 93 of file asn1.c.

References asn_build_header_with_truth().

Referenced by snmp_msg_Encode(), and snmp_var_EncodeVarBind().

◆ asn_build_header_with_truth()

u_char * asn_build_header_with_truth ( u_char *  data,
int datalength,
u_char  type,
int  length,
int  truth 
)

◆ asn_build_int()

u_char * asn_build_int ( u_char *  data,
int datalength,
u_char  type,
int intp,
int  intsize 
)

◆ asn_build_length()

u_char * asn_build_length ( u_char *  data,
int datalength,
int  length,
int  truth 
)

Definition at line 570 of file asn1.c.

References ASN_LONG_LEN, NULL, snmp_set_api_error(), and SNMPERR_ASN_ENCODE.

Referenced by asn_build_header_with_truth().

◆ asn_build_null()

u_char * asn_build_null ( u_char *  data,
int datalength,
u_char  type 
)

Definition at line 803 of file asn1.c.

References asn_build_header_with_truth().

Referenced by snmp_var_EncodeVarBind().

◆ asn_build_objid()

u_char * asn_build_objid ( u_char *  data,
int datalength,
u_char  type,
oid objid,
int  objidlength 
)

◆ asn_build_string()

u_char * asn_build_string ( u_char *  data,
int datalength,
u_char  type,
u_char *  string,
int  strlength 
)

◆ asn_build_unsigned_int()

u_char * asn_build_unsigned_int ( u_char *  data,
int datalength,
u_char  type,
u_int *  intp,
int  intsize 
)

◆ asn_parse_header()

u_char * asn_parse_header ( u_char *  data,
int datalength,
u_char *  type 
)

◆ asn_parse_int()

u_char * asn_parse_int ( u_char *  data,
int datalength,
u_char *  type,
int intp,
int  intsize 
)

◆ asn_parse_length()

u_char * asn_parse_length ( u_char *  data,
u_int *  length 
)

◆ asn_parse_objid()

u_char * asn_parse_objid ( u_char *  data,
int datalength,
u_char *  type,
oid objid,
int objidlength 
)

◆ asn_parse_string()

u_char * asn_parse_string ( u_char *  data,
int datalength,
u_char *  type,
u_char *  string,
int strlength 
)

◆ asn_parse_unsigned_int()

u_char * asn_parse_unsigned_int ( u_char *  data,
int datalength,
u_char *  type,
u_int *  intp,
int  intsize 
)

Definition at line 179 of file asn1.c.

References asn_parse_length(), int, NULL, snmp_set_api_error(), and SNMPERR_ASN_DECODE.

Referenced by snmp_pdu_decode(), and snmp_var_DecodeVarBind().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors