Macros | Functions | Variables
tasn_dec.c File Reference
#include <openssl/asn1.h>
#include <limits.h>
#include <string.h>
#include <openssl/asn1t.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "../internal.h"
#include "internal.h"
Include dependency graph for tasn_dec.c:

Go to the source code of this file.

Macros

#define ASN1_MAX_CONSTRUCTED_NEST   30
 
#define asn1_tlc_clear(c)   if (c) (c)->valid = 0
 
#define asn1_tlc_clear_nc(c)   (c)->valid = 0
 

Functions

static int asn1_check_eoc (const unsigned char **in, long len)
 
static int asn1_check_tlen (long *olen, int *otag, unsigned char *oclass, char *cst, const unsigned char **in, long len, int exptag, int expclass, char opt, ASN1_TLC *ctx)
 
static int asn1_d2i_ex_primitive (ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx)
 
static int asn1_ex_c2i (ASN1_VALUE **pval, const unsigned char *cont, int len, int utype, const ASN1_ITEM *it)
 
ASN1_VALUEASN1_item_d2i (ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it)
 
int ASN1_item_ex_d2i (ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx)
 
static int asn1_item_ex_d2i (ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx, int depth)
 
unsigned long ASN1_tag2bit (int tag)
 
static int asn1_template_ex_d2i (ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx, int depth)
 
static int asn1_template_noexp_d2i (ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx, int depth)
 

Variables

static const unsigned long tag2bit [32]
 

Macro Definition Documentation

◆ ASN1_MAX_CONSTRUCTED_NEST

#define ASN1_MAX_CONSTRUCTED_NEST   30

Definition at line 75 of file tasn_dec.c.

◆ asn1_tlc_clear

#define asn1_tlc_clear (   c)    if (c) (c)->valid = 0

Definition at line 129 of file tasn_dec.c.

◆ asn1_tlc_clear_nc

#define asn1_tlc_clear_nc (   c)    (c)->valid = 0

Definition at line 131 of file tasn_dec.c.

Function Documentation

◆ asn1_check_eoc()

static int asn1_check_eoc ( const unsigned char **  in,
long  len 
)
static

Definition at line 873 of file tasn_dec.c.

◆ asn1_check_tlen()

static int asn1_check_tlen ( long olen,
int otag,
unsigned char *  oclass,
char *  cst,
const unsigned char **  in,
long  len,
int  exptag,
int  expclass,
char  opt,
ASN1_TLC ctx 
)
static

Definition at line 891 of file tasn_dec.c.

◆ asn1_d2i_ex_primitive()

static int asn1_d2i_ex_primitive ( ASN1_VALUE **  pval,
const unsigned char **  in,
long  len,
const ASN1_ITEM it,
int  tag,
int  aclass,
char  opt,
ASN1_TLC ctx 
)
static

Definition at line 644 of file tasn_dec.c.

◆ asn1_ex_c2i()

static int asn1_ex_c2i ( ASN1_VALUE **  pval,
const unsigned char *  cont,
int  len,
int  utype,
const ASN1_ITEM it 
)
static

Definition at line 744 of file tasn_dec.c.

◆ ASN1_item_d2i()

ASN1_VALUE* ASN1_item_d2i ( ASN1_VALUE **  pval,
const unsigned char **  in,
long  len,
const ASN1_ITEM it 
)

Definition at line 140 of file tasn_dec.c.

◆ ASN1_item_ex_d2i()

int ASN1_item_ex_d2i ( ASN1_VALUE **  pval,
const unsigned char **  in,
long  len,
const ASN1_ITEM it,
int  tag,
int  aclass,
char  opt,
ASN1_TLC ctx 
)

Definition at line 464 of file tasn_dec.c.

◆ asn1_item_ex_d2i()

static int asn1_item_ex_d2i ( ASN1_VALUE **  pval,
const unsigned char **  in,
long  len,
const ASN1_ITEM it,
int  tag,
int  aclass,
char  opt,
ASN1_TLC ctx,
int  depth 
)
static

Definition at line 159 of file tasn_dec.c.

◆ ASN1_tag2bit()

unsigned long ASN1_tag2bit ( int  tag)

Definition at line 120 of file tasn_dec.c.

◆ asn1_template_ex_d2i()

static int asn1_template_ex_d2i ( ASN1_VALUE **  pval,
const unsigned char **  in,
long  len,
const ASN1_TEMPLATE tt,
char  opt,
ASN1_TLC ctx,
int  depth 
)
static

Definition at line 476 of file tasn_dec.c.

◆ asn1_template_noexp_d2i()

static int asn1_template_noexp_d2i ( ASN1_VALUE **  val,
const unsigned char **  in,
long  len,
const ASN1_TEMPLATE tt,
char  opt,
ASN1_TLC ctx,
int  depth 
)
static

Definition at line 535 of file tasn_dec.c.

Variable Documentation

◆ tag2bit

const unsigned long tag2bit[32]
static
B_ASN1_GENERALSTRING
#define B_ASN1_GENERALSTRING
Definition: asn1.h:169
B_ASN1_IA5STRING
#define B_ASN1_IA5STRING
Definition: asn1.h:165
B_ASN1_PRINTABLESTRING
#define B_ASN1_PRINTABLESTRING
Definition: asn1.h:161
B_ASN1_T61STRING
#define B_ASN1_T61STRING
Definition: asn1.h:162
B_ASN1_GENERALIZEDTIME
#define B_ASN1_GENERALIZEDTIME
Definition: asn1.h:177
B_ASN1_UNIVERSALSTRING
#define B_ASN1_UNIVERSALSTRING
Definition: asn1.h:170
B_ASN1_UTCTIME
#define B_ASN1_UTCTIME
Definition: asn1.h:176
B_ASN1_NUMERICSTRING
#define B_ASN1_NUMERICSTRING
Definition: asn1.h:160
B_ASN1_ISO64STRING
#define B_ASN1_ISO64STRING
Definition: asn1.h:167
B_ASN1_UNKNOWN
#define B_ASN1_UNKNOWN
Definition: asn1.h:174
B_ASN1_OCTET_STRING
#define B_ASN1_OCTET_STRING
Definition: asn1.h:171
B_ASN1_GRAPHICSTRING
#define B_ASN1_GRAPHICSTRING
Definition: asn1.h:166
B_ASN1_BIT_STRING
#define B_ASN1_BIT_STRING
Definition: asn1.h:172
B_ASN1_BMPSTRING
#define B_ASN1_BMPSTRING
Definition: asn1.h:173
B_ASN1_VIDEOTEXSTRING
#define B_ASN1_VIDEOTEXSTRING
Definition: asn1.h:164
B_ASN1_SEQUENCE
#define B_ASN1_SEQUENCE
Definition: asn1.h:178
B_ASN1_UTF8STRING
#define B_ASN1_UTF8STRING
Definition: asn1.h:175


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33