OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
asn1_gen.c File Reference
#include "cryptlib.h"
#include <openssl/asn1.h>
#include <openssl/x509v3.h>

Go to the source code of this file.

Classes

struct  tag_name_st
 
struct  tag_exp_type
 
struct  tag_exp_arg
 

Macros

#define ASN1_GEN_FLAG   0x10000
 
#define ASN1_GEN_FLAG_IMP   (ASN1_GEN_FLAG|1)
 
#define ASN1_GEN_FLAG_EXP   (ASN1_GEN_FLAG|2)
 
#define ASN1_GEN_FLAG_TAG   (ASN1_GEN_FLAG|3)
 
#define ASN1_GEN_FLAG_BITWRAP   (ASN1_GEN_FLAG|4)
 
#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_FORMAT   (ASN1_GEN_FLAG|8)
 
#define ASN1_GEN_STR(str, val)   {str, sizeof(str) - 1, val}
 
#define ASN1_FLAG_EXP_MAX   20
 
#define ASN1_GEN_FORMAT_ASCII   1
 
#define ASN1_GEN_FORMAT_UTF8   2
 
#define ASN1_GEN_FORMAT_HEX   3
 
#define ASN1_GEN_FORMAT_BITLIST   4
 

Functions

ASN1_TYPEASN1_generate_nconf (char *str, CONF *nconf)
 
ASN1_TYPEASN1_generate_v3 (char *str, X509V3_CTX *cnf)
 

Macro Definition Documentation

#define ASN1_FLAG_EXP_MAX   20

Definition at line 75 of file asn1_gen.c.

#define ASN1_GEN_FLAG   0x10000

Definition at line 63 of file asn1_gen.c.

#define ASN1_GEN_FLAG_BITWRAP   (ASN1_GEN_FLAG|4)

Definition at line 67 of file asn1_gen.c.

#define ASN1_GEN_FLAG_EXP   (ASN1_GEN_FLAG|2)

Definition at line 65 of file asn1_gen.c.

#define ASN1_GEN_FLAG_FORMAT   (ASN1_GEN_FLAG|8)

Definition at line 71 of file asn1_gen.c.

#define ASN1_GEN_FLAG_IMP   (ASN1_GEN_FLAG|1)

Definition at line 64 of file asn1_gen.c.

#define ASN1_GEN_FLAG_OCTWRAP   (ASN1_GEN_FLAG|5)

Definition at line 68 of file asn1_gen.c.

#define ASN1_GEN_FLAG_SEQWRAP   (ASN1_GEN_FLAG|6)

Definition at line 69 of file asn1_gen.c.

#define ASN1_GEN_FLAG_SETWRAP   (ASN1_GEN_FLAG|7)

Definition at line 70 of file asn1_gen.c.

#define ASN1_GEN_FLAG_TAG   (ASN1_GEN_FLAG|3)

Definition at line 66 of file asn1_gen.c.

#define ASN1_GEN_FORMAT_ASCII   1

Definition at line 80 of file asn1_gen.c.

#define ASN1_GEN_FORMAT_BITLIST   4

Definition at line 86 of file asn1_gen.c.

#define ASN1_GEN_FORMAT_HEX   3

Definition at line 84 of file asn1_gen.c.

#define ASN1_GEN_FORMAT_UTF8   2

Definition at line 82 of file asn1_gen.c.

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

Definition at line 73 of file asn1_gen.c.

Function Documentation

ASN1_TYPE* ASN1_generate_nconf ( char *  str,
CONF nconf 
)

Definition at line 124 of file asn1_gen.c.

ASN1_TYPE* ASN1_generate_v3 ( char *  str,
X509V3_CTX cnf 
)

Definition at line 135 of file asn1_gen.c.