Classes | Macros | Functions
asn1_gen.c File Reference
#include <openssl/x509.h>
#include <string.h>
#include <openssl/asn1.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include <openssl/x509v3.h>
#include "../internal.h"
#include "../x509v3/internal.h"
#include "internal.h"
Include dependency graph for asn1_gen.c:

Go to the source code of this file.

Classes

struct  tag_exp_arg
 
struct  tag_exp_type
 
struct  tag_name_st
 

Macros

#define ASN1_FLAG_EXP_MAX   20
 
#define ASN1_GEN_FLAG   0x10000
 
#define ASN1_GEN_FLAG_BITWRAP   (ASN1_GEN_FLAG|4)
 
#define ASN1_GEN_FLAG_EXP   (ASN1_GEN_FLAG|2)
 
#define ASN1_GEN_FLAG_FORMAT   (ASN1_GEN_FLAG|8)
 
#define ASN1_GEN_FLAG_IMP   (ASN1_GEN_FLAG|1)
 
#define ASN1_GEN_FLAG_OCTWRAP   (ASN1_GEN_FLAG|5)
 
#define ASN1_GEN_FLAG_SEQWRAP   (ASN1_GEN_FLAG|6)
 
#define ASN1_GEN_FLAG_SETWRAP   (ASN1_GEN_FLAG|7)
 
#define ASN1_GEN_FLAG_TAG   (ASN1_GEN_FLAG|3)
 
#define ASN1_GEN_FORMAT_ASCII   1
 
#define ASN1_GEN_FORMAT_BITLIST   4
 
#define ASN1_GEN_FORMAT_HEX   3
 
#define ASN1_GEN_FORMAT_UTF8   2
 
#define ASN1_GEN_SEQ_MAX_DEPTH   50
 
#define ASN1_GEN_STR(str, val)   {str, sizeof(str) - 1, val}
 

Functions

static int append_exp (tag_exp_arg *arg, int exp_tag, int exp_class, int exp_constructed, int exp_pad, int imp_ok)
 
static int asn1_cb (const char *elem, int len, void *bitstr)
 
ASN1_TYPEASN1_generate_v3 (const char *str, X509V3_CTX *cnf)
 
static ASN1_TYPEasn1_multi (int utype, const char *section, X509V3_CTX *cnf, int depth, int *perr)
 
static int asn1_str2tag (const char *tagstr, int len)
 
static ASN1_TYPEasn1_str2type (const char *str, int format, int utype)
 
static int bitstr_cb (const char *elem, int len, void *bitstr)
 
static ASN1_TYPEgenerate_v3 (const char *str, X509V3_CTX *cnf, int depth, int *perr)
 
static int parse_tagging (const char *vstart, int vlen, int *ptag, int *pclass)
 

Macro Definition Documentation

◆ ASN1_FLAG_EXP_MAX

#define ASN1_FLAG_EXP_MAX   20

Definition at line 88 of file asn1_gen.c.

◆ ASN1_GEN_FLAG

#define ASN1_GEN_FLAG   0x10000

Definition at line 76 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_BITWRAP

#define ASN1_GEN_FLAG_BITWRAP   (ASN1_GEN_FLAG|4)

Definition at line 80 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_EXP

#define ASN1_GEN_FLAG_EXP   (ASN1_GEN_FLAG|2)

Definition at line 78 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_FORMAT

#define ASN1_GEN_FLAG_FORMAT   (ASN1_GEN_FLAG|8)

Definition at line 84 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_IMP

#define ASN1_GEN_FLAG_IMP   (ASN1_GEN_FLAG|1)

Definition at line 77 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_OCTWRAP

#define ASN1_GEN_FLAG_OCTWRAP   (ASN1_GEN_FLAG|5)

Definition at line 81 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_SEQWRAP

#define ASN1_GEN_FLAG_SEQWRAP   (ASN1_GEN_FLAG|6)

Definition at line 82 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_SETWRAP

#define ASN1_GEN_FLAG_SETWRAP   (ASN1_GEN_FLAG|7)

Definition at line 83 of file asn1_gen.c.

◆ ASN1_GEN_FLAG_TAG

#define ASN1_GEN_FLAG_TAG   (ASN1_GEN_FLAG|3)

Definition at line 79 of file asn1_gen.c.

◆ ASN1_GEN_FORMAT_ASCII

#define ASN1_GEN_FORMAT_ASCII   1

Definition at line 95 of file asn1_gen.c.

◆ ASN1_GEN_FORMAT_BITLIST

#define ASN1_GEN_FORMAT_BITLIST   4

Definition at line 101 of file asn1_gen.c.

◆ ASN1_GEN_FORMAT_HEX

#define ASN1_GEN_FORMAT_HEX   3

Definition at line 99 of file asn1_gen.c.

◆ ASN1_GEN_FORMAT_UTF8

#define ASN1_GEN_FORMAT_UTF8   2

Definition at line 97 of file asn1_gen.c.

◆ ASN1_GEN_SEQ_MAX_DEPTH

#define ASN1_GEN_SEQ_MAX_DEPTH   50

Definition at line 90 of file asn1_gen.c.

◆ ASN1_GEN_STR

#define ASN1_GEN_STR (   str,
  val 
)    {str, sizeof(str) - 1, val}

Definition at line 86 of file asn1_gen.c.

Function Documentation

◆ append_exp()

static int append_exp ( tag_exp_arg arg,
int  exp_tag,
int  exp_class,
int  exp_constructed,
int  exp_pad,
int  imp_ok 
)
static

Definition at line 520 of file asn1_gen.c.

◆ asn1_cb()

static int asn1_cb ( const char *  elem,
int  len,
void *  bitstr 
)
static

Definition at line 287 of file asn1_gen.c.

◆ ASN1_generate_v3()

ASN1_TYPE* ASN1_generate_v3 ( const char *  str,
X509V3_CTX cnf 
)

Definition at line 140 of file asn1_gen.c.

◆ asn1_multi()

static ASN1_TYPE * asn1_multi ( int  utype,
const char *  section,
X509V3_CTX cnf,
int  depth,
int perr 
)
static

Definition at line 453 of file asn1_gen.c.

◆ asn1_str2tag()

static int asn1_str2tag ( const char *  tagstr,
int  len 
)
static

Definition at line 556 of file asn1_gen.c.

◆ asn1_str2type()

static ASN1_TYPE * asn1_str2type ( const char *  str,
int  format,
int  utype 
)
static

Definition at line 632 of file asn1_gen.c.

◆ bitstr_cb()

static int bitstr_cb ( const char *  elem,
int  len,
void *  bitstr 
)
static

Definition at line 808 of file asn1_gen.c.

◆ generate_v3()

static ASN1_TYPE * generate_v3 ( const char *  str,
X509V3_CTX cnf,
int  depth,
int perr 
)
static

Definition at line 149 of file asn1_gen.c.

◆ parse_tagging()

static int parse_tagging ( const char *  vstart,
int  vlen,
int ptag,
int pclass 
)
static

Definition at line 395 of file asn1_gen.c.



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