OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions | Variables
x509v3.h File Reference
#include <openssl/bio.h>
#include <openssl/x509.h>
#include <openssl/conf.h>

Go to the source code of this file.

Classes

struct  v3_ext_method
 
struct  X509V3_CONF_METHOD_st
 
struct  v3_ext_ctx
 
struct  BASIC_CONSTRAINTS_st
 
struct  PKEY_USAGE_PERIOD_st
 
struct  otherName_st
 
struct  EDIPartyName_st
 
struct  GENERAL_NAME_st
 
struct  ACCESS_DESCRIPTION_st
 
struct  DIST_POINT_NAME_st
 
struct  DIST_POINT_st
 
struct  AUTHORITY_KEYID_st
 
struct  SXNET_ID_st
 
struct  SXNET_st
 
struct  NOTICEREF_st
 
struct  USERNOTICE_st
 
struct  POLICYQUALINFO_st
 
struct  POLICYINFO_st
 
struct  POLICY_MAPPING_st
 
struct  GENERAL_SUBTREE_st
 
struct  NAME_CONSTRAINTS_st
 
struct  POLICY_CONSTRAINTS_st
 
struct  PROXY_POLICY_st
 
struct  PROXY_CERT_INFO_EXTENSION_st
 
struct  ISSUING_DIST_POINT_st
 
struct  x509_purpose_st
 
struct  ASRange_st
 
struct  ASIdOrRange_st
 
struct  ASIdentifierChoice_st
 
struct  ASIdentifiers_st
 
struct  IPAddressRange_st
 
struct  IPAddressOrRange_st
 
struct  IPAddressChoice_st
 
struct  IPAddressFamily_st
 

Macros

#define CTX_TEST   0x1
 
#define X509V3_EXT_DYNAMIC   0x1
 
#define X509V3_EXT_CTX_DEP   0x2
 
#define X509V3_EXT_MULTILINE   0x4
 
#define GEN_OTHERNAME   0
 
#define GEN_EMAIL   1
 
#define GEN_DNS   2
 
#define GEN_X400   3
 
#define GEN_DIRNAME   4
 
#define GEN_EDIPARTY   5
 
#define GEN_URI   6
 
#define GEN_IPADD   7
 
#define GEN_RID   8
 
#define CRLDP_ALL_REASONS   0x807f
 
#define CRL_REASON_NONE   -1
 
#define CRL_REASON_UNSPECIFIED   0
 
#define CRL_REASON_KEY_COMPROMISE   1
 
#define CRL_REASON_CA_COMPROMISE   2
 
#define CRL_REASON_AFFILIATION_CHANGED   3
 
#define CRL_REASON_SUPERSEDED   4
 
#define CRL_REASON_CESSATION_OF_OPERATION   5
 
#define CRL_REASON_CERTIFICATE_HOLD   6
 
#define CRL_REASON_REMOVE_FROM_CRL   8
 
#define CRL_REASON_PRIVILEGE_WITHDRAWN   9
 
#define CRL_REASON_AA_COMPROMISE   10
 
#define IDP_PRESENT   0x1
 
#define IDP_INVALID   0x2
 
#define IDP_ONLYUSER   0x4
 
#define IDP_ONLYCA   0x8
 
#define IDP_ONLYATTR   0x10
 
#define IDP_INDIRECT   0x20
 
#define IDP_REASONS   0x40
 
#define X509V3_conf_err(val)
 
#define X509V3_set_ctx_test(ctx)   X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST)
 
#define X509V3_set_ctx_nodb(ctx)   (ctx)->db = NULL;
 
#define EXT_BITSTRING(nid, table)
 
#define EXT_IA5STRING(nid)
 
#define EXT_END   { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
 
#define EXFLAG_BCONS   0x1
 
#define EXFLAG_KUSAGE   0x2
 
#define EXFLAG_XKUSAGE   0x4
 
#define EXFLAG_NSCERT   0x8
 
#define EXFLAG_CA   0x10
 
#define EXFLAG_SI   0x20
 
#define EXFLAG_SS   0x20
 
#define EXFLAG_V1   0x40
 
#define EXFLAG_INVALID   0x80
 
#define EXFLAG_SET   0x100
 
#define EXFLAG_CRITICAL   0x200
 
#define EXFLAG_PROXY   0x400
 
#define EXFLAG_INVALID_POLICY   0x800
 
#define EXFLAG_FRESHEST   0x1000
 
#define KU_DIGITAL_SIGNATURE   0x0080
 
#define KU_NON_REPUDIATION   0x0040
 
#define KU_KEY_ENCIPHERMENT   0x0020
 
#define KU_DATA_ENCIPHERMENT   0x0010
 
#define KU_KEY_AGREEMENT   0x0008
 
#define KU_KEY_CERT_SIGN   0x0004
 
#define KU_CRL_SIGN   0x0002
 
#define KU_ENCIPHER_ONLY   0x0001
 
#define KU_DECIPHER_ONLY   0x8000
 
#define NS_SSL_CLIENT   0x80
 
#define NS_SSL_SERVER   0x40
 
#define NS_SMIME   0x20
 
#define NS_OBJSIGN   0x10
 
#define NS_SSL_CA   0x04
 
#define NS_SMIME_CA   0x02
 
#define NS_OBJSIGN_CA   0x01
 
#define NS_ANY_CA   (NS_SSL_CA|NS_SMIME_CA|NS_OBJSIGN_CA)
 
#define XKU_SSL_SERVER   0x1
 
#define XKU_SSL_CLIENT   0x2
 
#define XKU_SMIME   0x4
 
#define XKU_CODE_SIGN   0x8
 
#define XKU_SGC   0x10
 
#define XKU_OCSP_SIGN   0x20
 
#define XKU_TIMESTAMP   0x40
 
#define XKU_DVCS   0x80
 
#define X509_PURPOSE_DYNAMIC   0x1
 
#define X509_PURPOSE_DYNAMIC_NAME   0x2
 
#define X509_PURPOSE_SSL_CLIENT   1
 
#define X509_PURPOSE_SSL_SERVER   2
 
#define X509_PURPOSE_NS_SSL_SERVER   3
 
#define X509_PURPOSE_SMIME_SIGN   4
 
#define X509_PURPOSE_SMIME_ENCRYPT   5
 
#define X509_PURPOSE_CRL_SIGN   6
 
#define X509_PURPOSE_ANY   7
 
#define X509_PURPOSE_OCSP_HELPER   8
 
#define X509_PURPOSE_TIMESTAMP_SIGN   9
 
#define X509_PURPOSE_MIN   1
 
#define X509_PURPOSE_MAX   9
 
#define X509V3_EXT_UNKNOWN_MASK   (0xfL << 16)
 
#define X509V3_EXT_DEFAULT   0
 
#define X509V3_EXT_ERROR_UNKNOWN   (1L << 16)
 
#define X509V3_EXT_PARSE_UNKNOWN   (2L << 16)
 
#define X509V3_EXT_DUMP_UNKNOWN   (3L << 16)
 
#define X509V3_ADD_OP_MASK   0xfL
 
#define X509V3_ADD_DEFAULT   0L
 
#define X509V3_ADD_APPEND   1L
 
#define X509V3_ADD_REPLACE   2L
 
#define X509V3_ADD_REPLACE_EXISTING   3L
 
#define X509V3_ADD_KEEP_EXISTING   4L
 
#define X509V3_ADD_DELETE   5L
 
#define X509V3_ADD_SILENT   0x10
 
#define ASIdOrRange_id   0
 
#define ASIdOrRange_range   1
 
#define ASIdentifierChoice_inherit   0
 
#define ASIdentifierChoice_asIdsOrRanges   1
 
#define IPAddressOrRange_addressPrefix   0
 
#define IPAddressOrRange_addressRange   1
 
#define IPAddressChoice_inherit   0
 
#define IPAddressChoice_addressesOrRanges   1
 
#define V3_ASID_ASNUM   0
 
#define V3_ASID_RDI   1
 
#define IANA_AFI_IPV4   1
 
#define IANA_AFI_IPV6   2
 
#define X509V3_F_A2I_GENERAL_NAME   164
 
#define X509V3_F_ASIDENTIFIERCHOICE_CANONIZE   161
 
#define X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL   162
 
#define X509V3_F_COPY_EMAIL   122
 
#define X509V3_F_COPY_ISSUER   123
 
#define X509V3_F_DO_DIRNAME   144
 
#define X509V3_F_DO_EXT_CONF   124
 
#define X509V3_F_DO_EXT_I2D   135
 
#define X509V3_F_DO_EXT_NCONF   151
 
#define X509V3_F_DO_I2V_NAME_CONSTRAINTS   148
 
#define X509V3_F_GNAMES_FROM_SECTNAME   156
 
#define X509V3_F_HEX_TO_STRING   111
 
#define X509V3_F_I2S_ASN1_ENUMERATED   121
 
#define X509V3_F_I2S_ASN1_IA5STRING   149
 
#define X509V3_F_I2S_ASN1_INTEGER   120
 
#define X509V3_F_I2V_AUTHORITY_INFO_ACCESS   138
 
#define X509V3_F_NOTICE_SECTION   132
 
#define X509V3_F_NREF_NOS   133
 
#define X509V3_F_POLICY_SECTION   131
 
#define X509V3_F_PROCESS_PCI_VALUE   150
 
#define X509V3_F_R2I_CERTPOL   130
 
#define X509V3_F_R2I_PCI   155
 
#define X509V3_F_S2I_ASN1_IA5STRING   100
 
#define X509V3_F_S2I_ASN1_INTEGER   108
 
#define X509V3_F_S2I_ASN1_OCTET_STRING   112
 
#define X509V3_F_S2I_ASN1_SKEY_ID   114
 
#define X509V3_F_S2I_SKEY_ID   115
 
#define X509V3_F_SET_DIST_POINT_NAME   158
 
#define X509V3_F_STRING_TO_HEX   113
 
#define X509V3_F_SXNET_ADD_ID_ASC   125
 
#define X509V3_F_SXNET_ADD_ID_INTEGER   126
 
#define X509V3_F_SXNET_ADD_ID_ULONG   127
 
#define X509V3_F_SXNET_GET_ID_ASC   128
 
#define X509V3_F_SXNET_GET_ID_ULONG   129
 
#define X509V3_F_V2I_ASIDENTIFIERS   163
 
#define X509V3_F_V2I_ASN1_BIT_STRING   101
 
#define X509V3_F_V2I_AUTHORITY_INFO_ACCESS   139
 
#define X509V3_F_V2I_AUTHORITY_KEYID   119
 
#define X509V3_F_V2I_BASIC_CONSTRAINTS   102
 
#define X509V3_F_V2I_CRLD   134
 
#define X509V3_F_V2I_EXTENDED_KEY_USAGE   103
 
#define X509V3_F_V2I_GENERAL_NAMES   118
 
#define X509V3_F_V2I_GENERAL_NAME_EX   117
 
#define X509V3_F_V2I_IDP   157
 
#define X509V3_F_V2I_IPADDRBLOCKS   159
 
#define X509V3_F_V2I_ISSUER_ALT   153
 
#define X509V3_F_V2I_NAME_CONSTRAINTS   147
 
#define X509V3_F_V2I_POLICY_CONSTRAINTS   146
 
#define X509V3_F_V2I_POLICY_MAPPINGS   145
 
#define X509V3_F_V2I_SUBJECT_ALT   154
 
#define X509V3_F_V3_ADDR_VALIDATE_PATH_INTERNAL   160
 
#define X509V3_F_V3_GENERIC_EXTENSION   116
 
#define X509V3_F_X509V3_ADD1_I2D   140
 
#define X509V3_F_X509V3_ADD_VALUE   105
 
#define X509V3_F_X509V3_EXT_ADD   104
 
#define X509V3_F_X509V3_EXT_ADD_ALIAS   106
 
#define X509V3_F_X509V3_EXT_CONF   107
 
#define X509V3_F_X509V3_EXT_I2D   136
 
#define X509V3_F_X509V3_EXT_NCONF   152
 
#define X509V3_F_X509V3_GET_SECTION   142
 
#define X509V3_F_X509V3_GET_STRING   143
 
#define X509V3_F_X509V3_GET_VALUE_BOOL   110
 
#define X509V3_F_X509V3_PARSE_LIST   109
 
#define X509V3_F_X509_PURPOSE_ADD   137
 
#define X509V3_F_X509_PURPOSE_SET   141
 
#define X509V3_R_BAD_IP_ADDRESS   118
 
#define X509V3_R_BAD_OBJECT   119
 
#define X509V3_R_BN_DEC2BN_ERROR   100
 
#define X509V3_R_BN_TO_ASN1_INTEGER_ERROR   101
 
#define X509V3_R_DIRNAME_ERROR   149
 
#define X509V3_R_DISTPOINT_ALREADY_SET   160
 
#define X509V3_R_DUPLICATE_ZONE_ID   133
 
#define X509V3_R_ERROR_CONVERTING_ZONE   131
 
#define X509V3_R_ERROR_CREATING_EXTENSION   144
 
#define X509V3_R_ERROR_IN_EXTENSION   128
 
#define X509V3_R_EXPECTED_A_SECTION_NAME   137
 
#define X509V3_R_EXTENSION_EXISTS   145
 
#define X509V3_R_EXTENSION_NAME_ERROR   115
 
#define X509V3_R_EXTENSION_NOT_FOUND   102
 
#define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED   103
 
#define X509V3_R_EXTENSION_VALUE_ERROR   116
 
#define X509V3_R_ILLEGAL_EMPTY_EXTENSION   151
 
#define X509V3_R_ILLEGAL_HEX_DIGIT   113
 
#define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG   152
 
#define X509V3_R_INVALID_MULTIPLE_RDNS   161
 
#define X509V3_R_INVALID_ASNUMBER   162
 
#define X509V3_R_INVALID_ASRANGE   163
 
#define X509V3_R_INVALID_BOOLEAN_STRING   104
 
#define X509V3_R_INVALID_EXTENSION_STRING   105
 
#define X509V3_R_INVALID_INHERITANCE   165
 
#define X509V3_R_INVALID_IPADDRESS   166
 
#define X509V3_R_INVALID_NAME   106
 
#define X509V3_R_INVALID_NULL_ARGUMENT   107
 
#define X509V3_R_INVALID_NULL_NAME   108
 
#define X509V3_R_INVALID_NULL_VALUE   109
 
#define X509V3_R_INVALID_NUMBER   140
 
#define X509V3_R_INVALID_NUMBERS   141
 
#define X509V3_R_INVALID_OBJECT_IDENTIFIER   110
 
#define X509V3_R_INVALID_OPTION   138
 
#define X509V3_R_INVALID_POLICY_IDENTIFIER   134
 
#define X509V3_R_INVALID_PROXY_POLICY_SETTING   153
 
#define X509V3_R_INVALID_PURPOSE   146
 
#define X509V3_R_INVALID_SAFI   164
 
#define X509V3_R_INVALID_SECTION   135
 
#define X509V3_R_INVALID_SYNTAX   143
 
#define X509V3_R_ISSUER_DECODE_ERROR   126
 
#define X509V3_R_MISSING_VALUE   124
 
#define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS   142
 
#define X509V3_R_NO_CONFIG_DATABASE   136
 
#define X509V3_R_NO_ISSUER_CERTIFICATE   121
 
#define X509V3_R_NO_ISSUER_DETAILS   127
 
#define X509V3_R_NO_POLICY_IDENTIFIER   139
 
#define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED   154
 
#define X509V3_R_NO_PUBLIC_KEY   114
 
#define X509V3_R_NO_SUBJECT_DETAILS   125
 
#define X509V3_R_ODD_NUMBER_OF_DIGITS   112
 
#define X509V3_R_OPERATION_NOT_DEFINED   148
 
#define X509V3_R_OTHERNAME_ERROR   147
 
#define X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED   155
 
#define X509V3_R_POLICY_PATH_LENGTH   156
 
#define X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED   157
 
#define X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED   158
 
#define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY   159
 
#define X509V3_R_SECTION_NOT_FOUND   150
 
#define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS   122
 
#define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID   123
 
#define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT   111
 
#define X509V3_R_UNKNOWN_EXTENSION   129
 
#define X509V3_R_UNKNOWN_EXTENSION_NAME   130
 
#define X509V3_R_UNKNOWN_OPTION   120
 
#define X509V3_R_UNSUPPORTED_OPTION   117
 
#define X509V3_R_UNSUPPORTED_TYPE   167
 
#define X509V3_R_USER_TOO_LONG   132
 

Typedefs

typedef void *(* X509V3_EXT_NEW )(void)
 
typedef void(* X509V3_EXT_FREE )(void *)
 
typedef void *(* X509V3_EXT_D2I )(void *, const unsigned char **, long)
 
typedef int(* X509V3_EXT_I2D )(void *, unsigned char **)
 
typedef voidext
 
typedef void STACK_OF (CONF_VALUE)*extlist)
 
typedef void *(* X509V3_EXT_V2I )(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, STACK_OF(CONF_VALUE)*values)
 
typedef char *(* X509V3_EXT_I2S )(const struct v3_ext_method *method, void *ext)
 
typedef void *(* X509V3_EXT_S2I )(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, const char *str)
 
typedef int(* X509V3_EXT_I2R )(const struct v3_ext_method *method, void *ext, BIO *out, int indent)
 
typedef void *(* X509V3_EXT_R2I )(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, const char *str)
 
typedef struct
X509V3_CONF_METHOD_st 
X509V3_CONF_METHOD
 
typedef struct v3_ext_method X509V3_EXT_METHOD
 
typedef BIT_STRING_BITNAME ENUMERATED_NAMES
 
typedef struct BASIC_CONSTRAINTS_st BASIC_CONSTRAINTS
 
typedef struct PKEY_USAGE_PERIOD_st PKEY_USAGE_PERIOD
 
typedef struct otherName_st OTHERNAME
 
typedef struct EDIPartyName_st EDIPARTYNAME
 
typedef struct GENERAL_NAME_st GENERAL_NAME
 
typedef struct
ACCESS_DESCRIPTION_st 
ACCESS_DESCRIPTION
 
typedef struct DIST_POINT_NAME_st DIST_POINT_NAME
 
typedef struct SXNET_ID_st SXNETID
 
typedef struct SXNET_st SXNET
 
typedef struct NOTICEREF_st NOTICEREF
 
typedef struct USERNOTICE_st USERNOTICE
 
typedef struct POLICYQUALINFO_st POLICYQUALINFO
 
typedef struct POLICYINFO_st POLICYINFO
 
typedef struct POLICY_MAPPING_st POLICY_MAPPING
 
typedef struct GENERAL_SUBTREE_st GENERAL_SUBTREE
 
typedef struct
POLICY_CONSTRAINTS_st 
POLICY_CONSTRAINTS
 
typedef struct PROXY_POLICY_st PROXY_POLICY
 
typedef struct
PROXY_CERT_INFO_EXTENSION_st 
PROXY_CERT_INFO_EXTENSION
 
typedef struct x509_purpose_st X509_PURPOSE
 
typedef struct ASRange_st ASRange
 
typedef struct ASIdOrRange_st ASIdOrRange
 
typedef struct
ASIdentifierChoice_st 
ASIdentifierChoice
 
typedef struct ASIdentifiers_st ASIdentifiers
 
typedef struct IPAddressRange_st IPAddressRange
 
typedef struct IPAddressOrRange_st IPAddressOrRange
 
typedef struct IPAddressChoice_st IPAddressChoice
 
typedef struct IPAddressFamily_st IPAddressFamily
 

Functions

typedef STACK_OF (CONF_VALUE)*(*X509V3_EXT_I2V)(const struct v3_ext_method *method
 
typedef STACK_OF (GENERAL_NAME) GENERAL_NAMES
 
typedef STACK_OF (ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS
 
typedef STACK_OF (ASN1_OBJECT) EXTENDED_KEY_USAGE
 
typedef STACK_OF (DIST_POINT) CRL_DIST_POINTS
 
typedef STACK_OF (POLICYINFO) CERTIFICATEPOLICIES
 
typedef STACK_OF (POLICY_MAPPING) POLICY_MAPPINGS
 
int SXNET_add_id_asc (SXNET **psx, char *zone, char *user, int userlen)
 
int SXNET_add_id_ulong (SXNET **psx, unsigned long lzone, char *user, int userlen)
 
int SXNET_add_id_INTEGER (SXNET **psx, ASN1_INTEGER *izone, char *user, int userlen)
 
ASN1_OCTET_STRINGSXNET_get_id_asc (SXNET *sx, char *zone)
 
ASN1_OCTET_STRINGSXNET_get_id_ulong (SXNET *sx, unsigned long lzone)
 
ASN1_OCTET_STRINGSXNET_get_id_INTEGER (SXNET *sx, ASN1_INTEGER *zone)
 
GENERAL_NAMEGENERAL_NAME_dup (GENERAL_NAME *a)
 
int GENERAL_NAME_cmp (GENERAL_NAME *a, GENERAL_NAME *b)
 
ASN1_BIT_STRINGv2i_ASN1_BIT_STRING (X509V3_EXT_METHOD *method, X509V3_CTX *ctx, STACK_OF(CONF_VALUE)*nval)
 
int GENERAL_NAME_print (BIO *out, GENERAL_NAME *gen)
 
GENERAL_NAMES * v2i_GENERAL_NAMES (const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, STACK_OF(CONF_VALUE)*nval)
 
int OTHERNAME_cmp (OTHERNAME *a, OTHERNAME *b)
 
void GENERAL_NAME_set0_value (GENERAL_NAME *a, int type, void *value)
 
voidGENERAL_NAME_get0_value (GENERAL_NAME *a, int *ptype)
 
int GENERAL_NAME_set0_othername (GENERAL_NAME *gen, ASN1_OBJECT *oid, ASN1_TYPE *value)
 
int GENERAL_NAME_get0_otherName (GENERAL_NAME *gen, ASN1_OBJECT **poid, ASN1_TYPE **pvalue)
 
char * i2s_ASN1_OCTET_STRING (X509V3_EXT_METHOD *method, ASN1_OCTET_STRING *ia5)
 
ASN1_OCTET_STRINGs2i_ASN1_OCTET_STRING (X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *str)
 
int i2a_ACCESS_DESCRIPTION (BIO *bp, ACCESS_DESCRIPTION *a)
 
int DIST_POINT_set_dpname (DIST_POINT_NAME *dpn, X509_NAME *iname)
 
int NAME_CONSTRAINTS_check (X509 *x, NAME_CONSTRAINTS *nc)
 
GENERAL_NAMEa2i_GENERAL_NAME (GENERAL_NAME *out, const X509V3_EXT_METHOD *method, X509V3_CTX *ctx, int gen_type, char *value, int is_nc)
 
char * X509V3_get_string (X509V3_CTX *ctx, char *name, char *section)
 
void X509V3_string_free (X509V3_CTX *ctx, char *str)
 
void X509V3_section_free (X509V3_CTX *ctx, STACK_OF(CONF_VALUE)*section)
 
void X509V3_set_ctx (X509V3_CTX *ctx, X509 *issuer, X509 *subject, X509_REQ *req, X509_CRL *crl, int flags)
 
int X509V3_add_value (const char *name, const char *value, STACK_OF(CONF_VALUE)**extlist)
 
int X509V3_add_value_uchar (const char *name, const unsigned char *value, STACK_OF(CONF_VALUE)**extlist)
 
int X509V3_add_value_bool (const char *name, int asn1_bool, STACK_OF(CONF_VALUE)**extlist)
 
int X509V3_add_value_int (const char *name, ASN1_INTEGER *aint, STACK_OF(CONF_VALUE)**extlist)
 
char * i2s_ASN1_INTEGER (X509V3_EXT_METHOD *meth, ASN1_INTEGER *aint)
 
ASN1_INTEGERs2i_ASN1_INTEGER (X509V3_EXT_METHOD *meth, char *value)
 
char * i2s_ASN1_ENUMERATED (X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint)
 
char * i2s_ASN1_ENUMERATED_TABLE (X509V3_EXT_METHOD *meth, ASN1_ENUMERATED *aint)
 
int X509V3_EXT_add (X509V3_EXT_METHOD *ext)
 
int X509V3_EXT_add_list (X509V3_EXT_METHOD *extlist)
 
int X509V3_EXT_add_alias (int nid_to, int nid_from)
 
void X509V3_EXT_cleanup (void)
 
const X509V3_EXT_METHODX509V3_EXT_get (X509_EXTENSION *ext)
 
const X509V3_EXT_METHODX509V3_EXT_get_nid (int nid)
 
int X509V3_add_standard_extensions (void)
 
voidX509V3_EXT_d2i (X509_EXTENSION *ext)
 
voidX509V3_get_d2i (STACK_OF(X509_EXTENSION)*x, int nid, int *crit, int *idx)
 
X509_EXTENSIONX509V3_EXT_i2d (int ext_nid, int crit, void *ext_struc)
 
int X509V3_add1_i2d (STACK_OF(X509_EXTENSION)**x, int nid, void *value, int crit, unsigned long flags)
 
char * hex_to_string (const unsigned char *buffer, long len)
 
unsigned char * string_to_hex (const char *str, long *len)
 
int name_cmp (const char *name, const char *cmp)
 
void X509V3_EXT_val_prn (BIO *out, STACK_OF(CONF_VALUE)*val, int indent, int ml)
 
int X509V3_EXT_print (BIO *out, X509_EXTENSION *ext, unsigned long flag, int indent)
 
int X509V3_EXT_print_fp (FILE *out, X509_EXTENSION *ext, int flag, int indent)
 
int X509V3_extensions_print (BIO *out, char *title, STACK_OF(X509_EXTENSION)*exts, unsigned long flag, int indent)
 
int X509_check_ca (X509 *x)
 
int X509_check_purpose (X509 *x, int id, int ca)
 
int X509_supported_extension (X509_EXTENSION *ex)
 
int X509_PURPOSE_set (int *p, int purpose)
 
int X509_check_issued (X509 *issuer, X509 *subject)
 
int X509_check_akid (X509 *issuer, AUTHORITY_KEYID *akid)
 
int X509_PURPOSE_get_count (void)
 
X509_PURPOSEX509_PURPOSE_get0 (int idx)
 
int X509_PURPOSE_get_by_sname (char *sname)
 
int X509_PURPOSE_get_by_id (int id)
 
int X509_PURPOSE_add (int id, int trust, int flags, int(*ck)(const X509_PURPOSE *, const X509 *, int), char *name, char *sname, void *arg)
 
char * X509_PURPOSE_get0_name (X509_PURPOSE *xp)
 
char * X509_PURPOSE_get0_sname (X509_PURPOSE *xp)
 
int X509_PURPOSE_get_trust (X509_PURPOSE *xp)
 
void X509_PURPOSE_cleanup (void)
 
int X509_PURPOSE_get_id (X509_PURPOSE *)
 
 STACK_OF (OPENSSL_STRING)*X509_get1_email(X509 *x)
 
void X509_email_free (STACK_OF(OPENSSL_STRING)*sk)
 
ASN1_OCTET_STRINGa2i_IPADDRESS (const char *ipasc)
 
ASN1_OCTET_STRINGa2i_IPADDRESS_NC (const char *ipasc)
 
int a2i_ipadd (unsigned char *ipout, const char *ipasc)
 
int X509V3_NAME_from_section (X509_NAME *nm, STACK_OF(CONF_VALUE)*dn_sk, unsigned long chtype)
 
void X509_POLICY_NODE_print (BIO *out, X509_POLICY_NODE *node, int indent)
 
typedef STACK_OF (ASIdOrRange) ASIdOrRanges
 
typedef STACK_OF (IPAddressOrRange) IPAddressOrRanges
 
typedef STACK_OF (IPAddressFamily) IPAddrBlocks
 
int v3_asid_add_inherit (ASIdentifiers *asid, int which)
 
int v3_asid_add_id_or_range (ASIdentifiers *asid, int which, ASN1_INTEGER *min, ASN1_INTEGER *max)
 
int v3_addr_add_inherit (IPAddrBlocks *addr, const unsigned afi, const unsigned *safi)
 
int v3_addr_add_prefix (IPAddrBlocks *addr, const unsigned afi, const unsigned *safi, unsigned char *a, const int prefixlen)
 
int v3_addr_add_range (IPAddrBlocks *addr, const unsigned afi, const unsigned *safi, unsigned char *min, unsigned char *max)
 
unsigned v3_addr_get_afi (const IPAddressFamily *f)
 
int v3_addr_get_range (IPAddressOrRange *aor, const unsigned afi, unsigned char *min, unsigned char *max, const int length)
 
int v3_asid_is_canonical (ASIdentifiers *asid)
 
int v3_addr_is_canonical (IPAddrBlocks *addr)
 
int v3_asid_canonize (ASIdentifiers *asid)
 
int v3_addr_canonize (IPAddrBlocks *addr)
 
int v3_asid_inherits (ASIdentifiers *asid)
 
int v3_addr_inherits (IPAddrBlocks *addr)
 
int v3_asid_subset (ASIdentifiers *a, ASIdentifiers *b)
 
int v3_addr_subset (IPAddrBlocks *a, IPAddrBlocks *b)
 
int v3_asid_validate_path (X509_STORE_CTX *)
 
int v3_addr_validate_path (X509_STORE_CTX *)
 
int v3_asid_validate_resource_set (STACK_OF(X509)*chain, ASIdentifiers *ext, int allow_inheritance)
 
int v3_addr_validate_resource_set (STACK_OF(X509)*chain, IPAddrBlocks *ext, int allow_inheritance)
 
void ERR_load_X509V3_strings (void)
 

Variables

ASN1_BIT_STRINGbits
 
GENERAL_NAMEgen
 
char * section
 

Macro Definition Documentation

#define ASIdentifierChoice_asIdsOrRanges   1

Definition at line 731 of file x509v3.h.

#define ASIdentifierChoice_inherit   0

Definition at line 730 of file x509v3.h.

#define ASIdOrRange_id   0

Definition at line 716 of file x509v3.h.

#define ASIdOrRange_range   1

Definition at line 717 of file x509v3.h.

#define CRL_REASON_AA_COMPROMISE   10

Definition at line 246 of file x509v3.h.

#define CRL_REASON_AFFILIATION_CHANGED   3

Definition at line 240 of file x509v3.h.

#define CRL_REASON_CA_COMPROMISE   2

Definition at line 239 of file x509v3.h.

#define CRL_REASON_CERTIFICATE_HOLD   6

Definition at line 243 of file x509v3.h.

#define CRL_REASON_CESSATION_OF_OPERATION   5

Definition at line 242 of file x509v3.h.

#define CRL_REASON_KEY_COMPROMISE   1

Definition at line 238 of file x509v3.h.

#define CRL_REASON_NONE   -1

Definition at line 236 of file x509v3.h.

#define CRL_REASON_PRIVILEGE_WITHDRAWN   9

Definition at line 245 of file x509v3.h.

#define CRL_REASON_REMOVE_FROM_CRL   8

Definition at line 244 of file x509v3.h.

#define CRL_REASON_SUPERSEDED   4

Definition at line 241 of file x509v3.h.

#define CRL_REASON_UNSPECIFIED   0

Definition at line 237 of file x509v3.h.

#define CRLDP_ALL_REASONS   0x807f

Definition at line 234 of file x509v3.h.

#define CTX_TEST   0x1

Definition at line 130 of file x509v3.h.

#define EXFLAG_BCONS   0x1

Definition at line 409 of file x509v3.h.

#define EXFLAG_CA   0x10

Definition at line 414 of file x509v3.h.

#define EXFLAG_CRITICAL   0x200

Definition at line 421 of file x509v3.h.

#define EXFLAG_FRESHEST   0x1000

Definition at line 425 of file x509v3.h.

#define EXFLAG_INVALID   0x80

Definition at line 419 of file x509v3.h.

#define EXFLAG_INVALID_POLICY   0x800

Definition at line 424 of file x509v3.h.

#define EXFLAG_KUSAGE   0x2

Definition at line 410 of file x509v3.h.

#define EXFLAG_NSCERT   0x8

Definition at line 412 of file x509v3.h.

#define EXFLAG_PROXY   0x400

Definition at line 422 of file x509v3.h.

#define EXFLAG_SET   0x100

Definition at line 420 of file x509v3.h.

#define EXFLAG_SI   0x20

Definition at line 416 of file x509v3.h.

#define EXFLAG_SS   0x20

Definition at line 417 of file x509v3.h.

#define EXFLAG_V1   0x40

Definition at line 418 of file x509v3.h.

#define EXFLAG_XKUSAGE   0x4

Definition at line 411 of file x509v3.h.

#define EXT_BITSTRING (   nid,
  table 
)
Value:
0,0,0,0, \
0,0, \
(X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \
NULL, NULL, \
table}

Definition at line 389 of file x509v3.h.

#define EXT_END   { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

Definition at line 404 of file x509v3.h.

#define EXT_IA5STRING (   nid)
Value:
0,0,0,0, \
(X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \
(X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \
0,0,0,0, \
NULL}

Definition at line 397 of file x509v3.h.

#define GEN_DIRNAME   4

Definition at line 179 of file x509v3.h.

#define GEN_DNS   2

Definition at line 177 of file x509v3.h.

#define GEN_EDIPARTY   5

Definition at line 180 of file x509v3.h.

#define GEN_EMAIL   1

Definition at line 176 of file x509v3.h.

#define GEN_IPADD   7

Definition at line 182 of file x509v3.h.

#define GEN_OTHERNAME   0

Definition at line 175 of file x509v3.h.

#define GEN_RID   8

Definition at line 183 of file x509v3.h.

#define GEN_URI   6

Definition at line 181 of file x509v3.h.

#define GEN_X400   3

Definition at line 178 of file x509v3.h.

#define IANA_AFI_IPV4   1

Definition at line 805 of file x509v3.h.

#define IANA_AFI_IPV6   2

Definition at line 806 of file x509v3.h.

#define IDP_INDIRECT   0x20

Definition at line 378 of file x509v3.h.

#define IDP_INVALID   0x2

Definition at line 370 of file x509v3.h.

#define IDP_ONLYATTR   0x10

Definition at line 376 of file x509v3.h.

#define IDP_ONLYCA   0x8

Definition at line 374 of file x509v3.h.

#define IDP_ONLYUSER   0x4

Definition at line 372 of file x509v3.h.

#define IDP_PRESENT   0x1

Definition at line 368 of file x509v3.h.

#define IDP_REASONS   0x40

Definition at line 380 of file x509v3.h.

#define IPAddressChoice_addressesOrRanges   1

Definition at line 770 of file x509v3.h.

#define IPAddressChoice_inherit   0

Definition at line 769 of file x509v3.h.

#define IPAddressOrRange_addressPrefix   0

Definition at line 755 of file x509v3.h.

#define IPAddressOrRange_addressRange   1

Definition at line 756 of file x509v3.h.

#define KU_CRL_SIGN   0x0002

Definition at line 433 of file x509v3.h.

#define KU_DATA_ENCIPHERMENT   0x0010

Definition at line 430 of file x509v3.h.

#define KU_DECIPHER_ONLY   0x8000

Definition at line 435 of file x509v3.h.

#define KU_DIGITAL_SIGNATURE   0x0080

Definition at line 427 of file x509v3.h.

#define KU_ENCIPHER_ONLY   0x0001

Definition at line 434 of file x509v3.h.

#define KU_KEY_AGREEMENT   0x0008

Definition at line 431 of file x509v3.h.

#define KU_KEY_CERT_SIGN   0x0004

Definition at line 432 of file x509v3.h.

#define KU_KEY_ENCIPHERMENT   0x0020

Definition at line 429 of file x509v3.h.

#define KU_NON_REPUDIATION   0x0040

Definition at line 428 of file x509v3.h.

#define NS_ANY_CA   (NS_SSL_CA|NS_SMIME_CA|NS_OBJSIGN_CA)

Definition at line 444 of file x509v3.h.

#define NS_OBJSIGN   0x10

Definition at line 440 of file x509v3.h.

#define NS_OBJSIGN_CA   0x01

Definition at line 443 of file x509v3.h.

#define NS_SMIME   0x20

Definition at line 439 of file x509v3.h.

#define NS_SMIME_CA   0x02

Definition at line 442 of file x509v3.h.

#define NS_SSL_CA   0x04

Definition at line 441 of file x509v3.h.

#define NS_SSL_CLIENT   0x80

Definition at line 437 of file x509v3.h.

#define NS_SSL_SERVER   0x40

Definition at line 438 of file x509v3.h.

#define V3_ASID_ASNUM   0

Definition at line 796 of file x509v3.h.

#define V3_ASID_RDI   1

Definition at line 797 of file x509v3.h.

#define X509_PURPOSE_ANY   7

Definition at line 475 of file x509v3.h.

#define X509_PURPOSE_CRL_SIGN   6

Definition at line 474 of file x509v3.h.

#define X509_PURPOSE_DYNAMIC   0x1

Definition at line 455 of file x509v3.h.

#define X509_PURPOSE_DYNAMIC_NAME   0x2

Definition at line 456 of file x509v3.h.

#define X509_PURPOSE_MAX   9

Definition at line 480 of file x509v3.h.

#define X509_PURPOSE_MIN   1

Definition at line 479 of file x509v3.h.

#define X509_PURPOSE_NS_SSL_SERVER   3

Definition at line 471 of file x509v3.h.

#define X509_PURPOSE_OCSP_HELPER   8

Definition at line 476 of file x509v3.h.

#define X509_PURPOSE_SMIME_ENCRYPT   5

Definition at line 473 of file x509v3.h.

#define X509_PURPOSE_SMIME_SIGN   4

Definition at line 472 of file x509v3.h.

#define X509_PURPOSE_SSL_CLIENT   1

Definition at line 469 of file x509v3.h.

#define X509_PURPOSE_SSL_SERVER   2

Definition at line 470 of file x509v3.h.

#define X509_PURPOSE_TIMESTAMP_SIGN   9

Definition at line 477 of file x509v3.h.

#define X509V3_ADD_APPEND   1L

Definition at line 498 of file x509v3.h.

#define X509V3_ADD_DEFAULT   0L

Definition at line 497 of file x509v3.h.

#define X509V3_ADD_DELETE   5L

Definition at line 502 of file x509v3.h.

#define X509V3_ADD_KEEP_EXISTING   4L

Definition at line 501 of file x509v3.h.

#define X509V3_ADD_OP_MASK   0xfL

Definition at line 496 of file x509v3.h.

#define X509V3_ADD_REPLACE   2L

Definition at line 499 of file x509v3.h.

#define X509V3_ADD_REPLACE_EXISTING   3L

Definition at line 500 of file x509v3.h.

#define X509V3_ADD_SILENT   0x10

Definition at line 503 of file x509v3.h.

#define X509V3_conf_err (   val)
Value:
ERR_add_error_data(6, "section:", val->section, \
",name:", val->name, ",value:", val->value);

Definition at line 382 of file x509v3.h.

#define X509V3_EXT_CTX_DEP   0x2

Definition at line 147 of file x509v3.h.

#define X509V3_EXT_DEFAULT   0

Definition at line 486 of file x509v3.h.

#define X509V3_EXT_DUMP_UNKNOWN   (3L << 16)

Definition at line 492 of file x509v3.h.

#define X509V3_EXT_DYNAMIC   0x1

Definition at line 146 of file x509v3.h.

#define X509V3_EXT_ERROR_UNKNOWN   (1L << 16)

Definition at line 488 of file x509v3.h.

#define X509V3_EXT_MULTILINE   0x4

Definition at line 148 of file x509v3.h.

#define X509V3_EXT_PARSE_UNKNOWN   (2L << 16)

Definition at line 490 of file x509v3.h.

#define X509V3_EXT_UNKNOWN_MASK   (0xfL << 16)

Definition at line 484 of file x509v3.h.

#define X509V3_F_A2I_GENERAL_NAME   164

Definition at line 868 of file x509v3.h.

#define X509V3_F_ASIDENTIFIERCHOICE_CANONIZE   161

Definition at line 869 of file x509v3.h.

#define X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL   162

Definition at line 870 of file x509v3.h.

#define X509V3_F_COPY_EMAIL   122

Definition at line 871 of file x509v3.h.

#define X509V3_F_COPY_ISSUER   123

Definition at line 872 of file x509v3.h.

#define X509V3_F_DO_DIRNAME   144

Definition at line 873 of file x509v3.h.

#define X509V3_F_DO_EXT_CONF   124

Definition at line 874 of file x509v3.h.

#define X509V3_F_DO_EXT_I2D   135

Definition at line 875 of file x509v3.h.

#define X509V3_F_DO_EXT_NCONF   151

Definition at line 876 of file x509v3.h.

#define X509V3_F_DO_I2V_NAME_CONSTRAINTS   148

Definition at line 877 of file x509v3.h.

#define X509V3_F_GNAMES_FROM_SECTNAME   156

Definition at line 878 of file x509v3.h.

#define X509V3_F_HEX_TO_STRING   111

Definition at line 879 of file x509v3.h.

#define X509V3_F_I2S_ASN1_ENUMERATED   121

Definition at line 880 of file x509v3.h.

#define X509V3_F_I2S_ASN1_IA5STRING   149

Definition at line 881 of file x509v3.h.

#define X509V3_F_I2S_ASN1_INTEGER   120

Definition at line 882 of file x509v3.h.

#define X509V3_F_I2V_AUTHORITY_INFO_ACCESS   138

Definition at line 883 of file x509v3.h.

#define X509V3_F_NOTICE_SECTION   132

Definition at line 884 of file x509v3.h.

#define X509V3_F_NREF_NOS   133

Definition at line 885 of file x509v3.h.

#define X509V3_F_POLICY_SECTION   131

Definition at line 886 of file x509v3.h.

#define X509V3_F_PROCESS_PCI_VALUE   150

Definition at line 887 of file x509v3.h.

#define X509V3_F_R2I_CERTPOL   130

Definition at line 888 of file x509v3.h.

#define X509V3_F_R2I_PCI   155

Definition at line 889 of file x509v3.h.

#define X509V3_F_S2I_ASN1_IA5STRING   100

Definition at line 890 of file x509v3.h.

#define X509V3_F_S2I_ASN1_INTEGER   108

Definition at line 891 of file x509v3.h.

#define X509V3_F_S2I_ASN1_OCTET_STRING   112

Definition at line 892 of file x509v3.h.

#define X509V3_F_S2I_ASN1_SKEY_ID   114

Definition at line 893 of file x509v3.h.

#define X509V3_F_S2I_SKEY_ID   115

Definition at line 894 of file x509v3.h.

#define X509V3_F_SET_DIST_POINT_NAME   158

Definition at line 895 of file x509v3.h.

#define X509V3_F_STRING_TO_HEX   113

Definition at line 896 of file x509v3.h.

#define X509V3_F_SXNET_ADD_ID_ASC   125

Definition at line 897 of file x509v3.h.

#define X509V3_F_SXNET_ADD_ID_INTEGER   126

Definition at line 898 of file x509v3.h.

#define X509V3_F_SXNET_ADD_ID_ULONG   127

Definition at line 899 of file x509v3.h.

#define X509V3_F_SXNET_GET_ID_ASC   128

Definition at line 900 of file x509v3.h.

#define X509V3_F_SXNET_GET_ID_ULONG   129

Definition at line 901 of file x509v3.h.

#define X509V3_F_V2I_ASIDENTIFIERS   163

Definition at line 902 of file x509v3.h.

#define X509V3_F_V2I_ASN1_BIT_STRING   101

Definition at line 903 of file x509v3.h.

#define X509V3_F_V2I_AUTHORITY_INFO_ACCESS   139

Definition at line 904 of file x509v3.h.

#define X509V3_F_V2I_AUTHORITY_KEYID   119

Definition at line 905 of file x509v3.h.

#define X509V3_F_V2I_BASIC_CONSTRAINTS   102

Definition at line 906 of file x509v3.h.

#define X509V3_F_V2I_CRLD   134

Definition at line 907 of file x509v3.h.

#define X509V3_F_V2I_EXTENDED_KEY_USAGE   103

Definition at line 908 of file x509v3.h.

#define X509V3_F_V2I_GENERAL_NAME_EX   117

Definition at line 910 of file x509v3.h.

#define X509V3_F_V2I_GENERAL_NAMES   118

Definition at line 909 of file x509v3.h.

#define X509V3_F_V2I_IDP   157

Definition at line 911 of file x509v3.h.

#define X509V3_F_V2I_IPADDRBLOCKS   159

Definition at line 912 of file x509v3.h.

#define X509V3_F_V2I_ISSUER_ALT   153

Definition at line 913 of file x509v3.h.

#define X509V3_F_V2I_NAME_CONSTRAINTS   147

Definition at line 914 of file x509v3.h.

#define X509V3_F_V2I_POLICY_CONSTRAINTS   146

Definition at line 915 of file x509v3.h.

#define X509V3_F_V2I_POLICY_MAPPINGS   145

Definition at line 916 of file x509v3.h.

#define X509V3_F_V2I_SUBJECT_ALT   154

Definition at line 917 of file x509v3.h.

#define X509V3_F_V3_ADDR_VALIDATE_PATH_INTERNAL   160

Definition at line 918 of file x509v3.h.

#define X509V3_F_V3_GENERIC_EXTENSION   116

Definition at line 919 of file x509v3.h.

#define X509V3_F_X509_PURPOSE_ADD   137

Definition at line 931 of file x509v3.h.

#define X509V3_F_X509_PURPOSE_SET   141

Definition at line 932 of file x509v3.h.

#define X509V3_F_X509V3_ADD1_I2D   140

Definition at line 920 of file x509v3.h.

#define X509V3_F_X509V3_ADD_VALUE   105

Definition at line 921 of file x509v3.h.

#define X509V3_F_X509V3_EXT_ADD   104

Definition at line 922 of file x509v3.h.

#define X509V3_F_X509V3_EXT_ADD_ALIAS   106

Definition at line 923 of file x509v3.h.

#define X509V3_F_X509V3_EXT_CONF   107

Definition at line 924 of file x509v3.h.

#define X509V3_F_X509V3_EXT_I2D   136

Definition at line 925 of file x509v3.h.

#define X509V3_F_X509V3_EXT_NCONF   152

Definition at line 926 of file x509v3.h.

#define X509V3_F_X509V3_GET_SECTION   142

Definition at line 927 of file x509v3.h.

#define X509V3_F_X509V3_GET_STRING   143

Definition at line 928 of file x509v3.h.

#define X509V3_F_X509V3_GET_VALUE_BOOL   110

Definition at line 929 of file x509v3.h.

#define X509V3_F_X509V3_PARSE_LIST   109

Definition at line 930 of file x509v3.h.

#define X509V3_R_BAD_IP_ADDRESS   118

Definition at line 935 of file x509v3.h.

#define X509V3_R_BAD_OBJECT   119

Definition at line 936 of file x509v3.h.

#define X509V3_R_BN_DEC2BN_ERROR   100

Definition at line 937 of file x509v3.h.

#define X509V3_R_BN_TO_ASN1_INTEGER_ERROR   101

Definition at line 938 of file x509v3.h.

#define X509V3_R_DIRNAME_ERROR   149

Definition at line 939 of file x509v3.h.

#define X509V3_R_DISTPOINT_ALREADY_SET   160

Definition at line 940 of file x509v3.h.

#define X509V3_R_DUPLICATE_ZONE_ID   133

Definition at line 941 of file x509v3.h.

#define X509V3_R_ERROR_CONVERTING_ZONE   131

Definition at line 942 of file x509v3.h.

#define X509V3_R_ERROR_CREATING_EXTENSION   144

Definition at line 943 of file x509v3.h.

#define X509V3_R_ERROR_IN_EXTENSION   128

Definition at line 944 of file x509v3.h.

#define X509V3_R_EXPECTED_A_SECTION_NAME   137

Definition at line 945 of file x509v3.h.

#define X509V3_R_EXTENSION_EXISTS   145

Definition at line 946 of file x509v3.h.

#define X509V3_R_EXTENSION_NAME_ERROR   115

Definition at line 947 of file x509v3.h.

#define X509V3_R_EXTENSION_NOT_FOUND   102

Definition at line 948 of file x509v3.h.

#define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED   103

Definition at line 949 of file x509v3.h.

#define X509V3_R_EXTENSION_VALUE_ERROR   116

Definition at line 950 of file x509v3.h.

#define X509V3_R_ILLEGAL_EMPTY_EXTENSION   151

Definition at line 951 of file x509v3.h.

#define X509V3_R_ILLEGAL_HEX_DIGIT   113

Definition at line 952 of file x509v3.h.

#define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG   152

Definition at line 953 of file x509v3.h.

#define X509V3_R_INVALID_ASNUMBER   162

Definition at line 955 of file x509v3.h.

#define X509V3_R_INVALID_ASRANGE   163

Definition at line 956 of file x509v3.h.

#define X509V3_R_INVALID_BOOLEAN_STRING   104

Definition at line 957 of file x509v3.h.

#define X509V3_R_INVALID_EXTENSION_STRING   105

Definition at line 958 of file x509v3.h.

#define X509V3_R_INVALID_INHERITANCE   165

Definition at line 959 of file x509v3.h.

#define X509V3_R_INVALID_IPADDRESS   166

Definition at line 960 of file x509v3.h.

#define X509V3_R_INVALID_MULTIPLE_RDNS   161

Definition at line 954 of file x509v3.h.

#define X509V3_R_INVALID_NAME   106

Definition at line 961 of file x509v3.h.

#define X509V3_R_INVALID_NULL_ARGUMENT   107

Definition at line 962 of file x509v3.h.

#define X509V3_R_INVALID_NULL_NAME   108

Definition at line 963 of file x509v3.h.

#define X509V3_R_INVALID_NULL_VALUE   109

Definition at line 964 of file x509v3.h.

#define X509V3_R_INVALID_NUMBER   140

Definition at line 965 of file x509v3.h.

#define X509V3_R_INVALID_NUMBERS   141

Definition at line 966 of file x509v3.h.

#define X509V3_R_INVALID_OBJECT_IDENTIFIER   110

Definition at line 967 of file x509v3.h.

#define X509V3_R_INVALID_OPTION   138

Definition at line 968 of file x509v3.h.

#define X509V3_R_INVALID_POLICY_IDENTIFIER   134

Definition at line 969 of file x509v3.h.

#define X509V3_R_INVALID_PROXY_POLICY_SETTING   153

Definition at line 970 of file x509v3.h.

#define X509V3_R_INVALID_PURPOSE   146

Definition at line 971 of file x509v3.h.

#define X509V3_R_INVALID_SAFI   164

Definition at line 972 of file x509v3.h.

#define X509V3_R_INVALID_SECTION   135

Definition at line 973 of file x509v3.h.

#define X509V3_R_INVALID_SYNTAX   143

Definition at line 974 of file x509v3.h.

#define X509V3_R_ISSUER_DECODE_ERROR   126

Definition at line 975 of file x509v3.h.

#define X509V3_R_MISSING_VALUE   124

Definition at line 976 of file x509v3.h.

#define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS   142

Definition at line 977 of file x509v3.h.

#define X509V3_R_NO_CONFIG_DATABASE   136

Definition at line 978 of file x509v3.h.

#define X509V3_R_NO_ISSUER_CERTIFICATE   121

Definition at line 979 of file x509v3.h.

#define X509V3_R_NO_ISSUER_DETAILS   127

Definition at line 980 of file x509v3.h.

#define X509V3_R_NO_POLICY_IDENTIFIER   139

Definition at line 981 of file x509v3.h.

#define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED   154

Definition at line 982 of file x509v3.h.

#define X509V3_R_NO_PUBLIC_KEY   114

Definition at line 983 of file x509v3.h.

#define X509V3_R_NO_SUBJECT_DETAILS   125

Definition at line 984 of file x509v3.h.

#define X509V3_R_ODD_NUMBER_OF_DIGITS   112

Definition at line 985 of file x509v3.h.

#define X509V3_R_OPERATION_NOT_DEFINED   148

Definition at line 986 of file x509v3.h.

#define X509V3_R_OTHERNAME_ERROR   147

Definition at line 987 of file x509v3.h.

#define X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED   155

Definition at line 988 of file x509v3.h.

#define X509V3_R_POLICY_PATH_LENGTH   156

Definition at line 989 of file x509v3.h.

#define X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED   157

Definition at line 990 of file x509v3.h.

#define X509V3_R_POLICY_SYNTAX_NOT_CURRENTLY_SUPPORTED   158

Definition at line 991 of file x509v3.h.

#define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY   159

Definition at line 992 of file x509v3.h.

#define X509V3_R_SECTION_NOT_FOUND   150

Definition at line 993 of file x509v3.h.

#define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS   122

Definition at line 994 of file x509v3.h.

#define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID   123

Definition at line 995 of file x509v3.h.

#define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT   111

Definition at line 996 of file x509v3.h.

#define X509V3_R_UNKNOWN_EXTENSION   129

Definition at line 997 of file x509v3.h.

#define X509V3_R_UNKNOWN_EXTENSION_NAME   130

Definition at line 998 of file x509v3.h.

#define X509V3_R_UNKNOWN_OPTION   120

Definition at line 999 of file x509v3.h.

#define X509V3_R_UNSUPPORTED_OPTION   117

Definition at line 1000 of file x509v3.h.

#define X509V3_R_UNSUPPORTED_TYPE   167

Definition at line 1001 of file x509v3.h.

#define X509V3_R_USER_TOO_LONG   132

Definition at line 1002 of file x509v3.h.

#define X509V3_set_ctx_nodb (   ctx)    (ctx)->db = NULL;

Definition at line 387 of file x509v3.h.

#define X509V3_set_ctx_test (   ctx)    X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST)

Definition at line 385 of file x509v3.h.

#define XKU_CODE_SIGN   0x8

Definition at line 449 of file x509v3.h.

#define XKU_DVCS   0x80

Definition at line 453 of file x509v3.h.

#define XKU_OCSP_SIGN   0x20

Definition at line 451 of file x509v3.h.

#define XKU_SGC   0x10

Definition at line 450 of file x509v3.h.

#define XKU_SMIME   0x4

Definition at line 448 of file x509v3.h.

#define XKU_SSL_CLIENT   0x2

Definition at line 447 of file x509v3.h.

#define XKU_SSL_SERVER   0x1

Definition at line 446 of file x509v3.h.

#define XKU_TIMESTAMP   0x40

Definition at line 452 of file x509v3.h.

Typedef Documentation

typedef struct ASIdOrRange_st ASIdOrRange
typedef struct ASRange_st ASRange
typedef struct EDIPartyName_st EDIPARTYNAME

Definition at line 150 of file x509v3.h.

typedef void* ext

Definition at line 80 of file x509v3.h.

typedef struct GENERAL_NAME_st GENERAL_NAME
typedef struct NOTICEREF_st NOTICEREF
typedef struct otherName_st OTHERNAME
typedef struct POLICYINFO_st POLICYINFO
typedef struct PROXY_POLICY_st PROXY_POLICY
typedef void STACK_OF(CONF_VALUE)*extlist)

Definition at line 81 of file x509v3.h.

typedef struct SXNET_st SXNET
typedef struct SXNET_ID_st SXNETID
typedef struct USERNOTICE_st USERNOTICE
typedef struct x509_purpose_st X509_PURPOSE
typedef void*(* X509V3_EXT_D2I)(void *, const unsigned char **, long)

Definition at line 77 of file x509v3.h.

typedef void(* X509V3_EXT_FREE)(void *)

Definition at line 76 of file x509v3.h.

typedef int(* X509V3_EXT_I2D)(void *, unsigned char **)

Definition at line 78 of file x509v3.h.

typedef int(* X509V3_EXT_I2R)(const struct v3_ext_method *method, void *ext, BIO *out, int indent)

Definition at line 88 of file x509v3.h.

typedef char*(* X509V3_EXT_I2S)(const struct v3_ext_method *method, void *ext)

Definition at line 85 of file x509v3.h.

Definition at line 141 of file x509v3.h.

typedef void*(* X509V3_EXT_NEW)(void)

Definition at line 75 of file x509v3.h.

typedef void*(* X509V3_EXT_R2I)(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, const char *str)

Definition at line 90 of file x509v3.h.

typedef void*(* X509V3_EXT_S2I)(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, const char *str)

Definition at line 86 of file x509v3.h.

typedef void*(* X509V3_EXT_V2I)(const struct v3_ext_method *method, struct v3_ext_ctx *ctx, STACK_OF(CONF_VALUE)*values)

Definition at line 82 of file x509v3.h.

Function Documentation

GENERAL_NAME* a2i_GENERAL_NAME ( GENERAL_NAME out,
const X509V3_EXT_METHOD method,
X509V3_CTX ctx,
int  gen_type,
char *  value,
int  is_nc 
)

Definition at line 424 of file v3_alt.c.

int a2i_ipadd ( unsigned char *  ipout,
const char *  ipasc 
)

Definition at line 644 of file v3_utl.c.

ASN1_OCTET_STRING* a2i_IPADDRESS ( const char *  ipasc)

Definition at line 575 of file v3_utl.c.

ASN1_OCTET_STRING* a2i_IPADDRESS_NC ( const char *  ipasc)

Definition at line 599 of file v3_utl.c.

int DIST_POINT_set_dpname ( DIST_POINT_NAME dpn,
X509_NAME iname 
)

Definition at line 587 of file v3_crld.c.

void ERR_load_X509V3_strings ( void  )

Definition at line 216 of file v3err.c.

int GENERAL_NAME_cmp ( GENERAL_NAME a,
GENERAL_NAME b 
)
GENERAL_NAME* GENERAL_NAME_dup ( GENERAL_NAME a)
int GENERAL_NAME_get0_otherName ( GENERAL_NAME gen,
ASN1_OBJECT **  poid,
ASN1_TYPE **  pvalue 
)
void* GENERAL_NAME_get0_value ( GENERAL_NAME a,
int *  ptype 
)
int GENERAL_NAME_print ( BIO out,
GENERAL_NAME gen 
)

Definition at line 177 of file v3_alt.c.

int GENERAL_NAME_set0_othername ( GENERAL_NAME gen,
ASN1_OBJECT oid,
ASN1_TYPE value 
)
void GENERAL_NAME_set0_value ( GENERAL_NAME a,
int  type,
void value 
)
char* hex_to_string ( const unsigned char *  buffer,
long  len 
)

Definition at line 363 of file v3_utl.c.

int i2a_ACCESS_DESCRIPTION ( BIO bp,
ACCESS_DESCRIPTION a 
)
char* i2s_ASN1_ENUMERATED ( X509V3_EXT_METHOD meth,
ASN1_ENUMERATED aint 
)

Definition at line 135 of file v3_utl.c.

char* i2s_ASN1_ENUMERATED_TABLE ( X509V3_EXT_METHOD meth,
ASN1_ENUMERATED aint 
)

Definition at line 87 of file v3_enum.c.

char* i2s_ASN1_INTEGER ( X509V3_EXT_METHOD meth,
ASN1_INTEGER aint 
)

Definition at line 147 of file v3_utl.c.

char* i2s_ASN1_OCTET_STRING ( X509V3_EXT_METHOD method,
ASN1_OCTET_STRING ia5 
)

Definition at line 73 of file v3_skey.c.

int name_cmp ( const char *  name,
const char *  cmp 
)

Definition at line 450 of file v3_utl.c.

int NAME_CONSTRAINTS_check ( X509 x,
NAME_CONSTRAINTS nc 
)
int OTHERNAME_cmp ( OTHERNAME a,
OTHERNAME b 
)
ASN1_INTEGER* s2i_ASN1_INTEGER ( X509V3_EXT_METHOD meth,
char *  value 
)

Definition at line 159 of file v3_utl.c.

ASN1_OCTET_STRING* s2i_ASN1_OCTET_STRING ( X509V3_EXT_METHOD method,
X509V3_CTX ctx,
char *  str 
)

Definition at line 79 of file v3_skey.c.

typedef STACK_OF ( CONF_VALUE  ) const
typedef STACK_OF ( GENERAL_NAME  )
typedef STACK_OF ( ACCESS_DESCRIPTION  )
typedef STACK_OF ( ASN1_OBJECT  )
typedef STACK_OF ( DIST_POINT  )
typedef STACK_OF ( POLICYINFO  )
typedef STACK_OF ( POLICY_MAPPING  )
STACK_OF ( OPENSSL_STRING  )
typedef STACK_OF ( ASIdOrRange  )
typedef STACK_OF ( IPAddressOrRange  )
typedef STACK_OF ( IPAddressFamily  )
unsigned char* string_to_hex ( const char *  str,
long *  len 
)

Definition at line 392 of file v3_utl.c.

int SXNET_add_id_asc ( SXNET **  psx,
char *  zone,
char *  user,
int  userlen 
)
int SXNET_add_id_INTEGER ( SXNET **  psx,
ASN1_INTEGER izone,
char *  user,
int  userlen 
)
int SXNET_add_id_ulong ( SXNET **  psx,
unsigned long  lzone,
char *  user,
int  userlen 
)
ASN1_OCTET_STRING* SXNET_get_id_asc ( SXNET sx,
char *  zone 
)
ASN1_OCTET_STRING* SXNET_get_id_INTEGER ( SXNET sx,
ASN1_INTEGER zone 
)
ASN1_OCTET_STRING* SXNET_get_id_ulong ( SXNET sx,
unsigned long  lzone 
)
ASN1_BIT_STRING* v2i_ASN1_BIT_STRING ( X509V3_EXT_METHOD method,
X509V3_CTX ctx,
STACK_OF(CONF_VALUE)*  nval 
)

Definition at line 105 of file v3_bitst.c.

GENERAL_NAMES* v2i_GENERAL_NAMES ( const X509V3_EXT_METHOD method,
X509V3_CTX ctx,
STACK_OF(CONF_VALUE)*  nval 
)

Definition at line 396 of file v3_alt.c.

int v3_addr_add_inherit ( IPAddrBlocks *  addr,
const unsigned  afi,
const unsigned *  safi 
)
int v3_addr_add_prefix ( IPAddrBlocks *  addr,
const unsigned  afi,
const unsigned *  safi,
unsigned char *  a,
const int  prefixlen 
)
int v3_addr_add_range ( IPAddrBlocks *  addr,
const unsigned  afi,
const unsigned *  safi,
unsigned char *  min,
unsigned char *  max 
)
int v3_addr_canonize ( IPAddrBlocks *  addr)
unsigned v3_addr_get_afi ( const IPAddressFamily f)
int v3_addr_get_range ( IPAddressOrRange aor,
const unsigned  afi,
unsigned char *  min,
unsigned char *  max,
const int  length 
)
int v3_addr_inherits ( IPAddrBlocks *  addr)

Definition at line 1117 of file v3_addr.c.

int v3_addr_is_canonical ( IPAddrBlocks *  addr)
int v3_addr_subset ( IPAddrBlocks *  a,
IPAddrBlocks *  b 
)

Definition at line 1171 of file v3_addr.c.

int v3_addr_validate_path ( X509_STORE_CTX )

Definition at line 1316 of file v3_addr.c.

int v3_addr_validate_resource_set ( STACK_OF(X509)*  chain,
IPAddrBlocks *  ext,
int  allow_inheritance 
)

Definition at line 1325 of file v3_addr.c.

int v3_asid_add_id_or_range ( ASIdentifiers asid,
int  which,
ASN1_INTEGER min,
ASN1_INTEGER max 
)
int v3_asid_add_inherit ( ASIdentifiers asid,
int  which 
)
int v3_asid_canonize ( ASIdentifiers asid)
int v3_asid_inherits ( ASIdentifiers asid)

Definition at line 674 of file v3_asid.c.

int v3_asid_is_canonical ( ASIdentifiers asid)
int v3_asid_subset ( ASIdentifiers a,
ASIdentifiers b 
)

Definition at line 717 of file v3_asid.c.

int v3_asid_validate_path ( X509_STORE_CTX )

Definition at line 868 of file v3_asid.c.

int v3_asid_validate_resource_set ( STACK_OF(X509)*  chain,
ASIdentifiers ext,
int  allow_inheritance 
)

Definition at line 877 of file v3_asid.c.

int X509_check_akid ( X509 issuer,
AUTHORITY_KEYID akid 
)

Definition at line 726 of file v3_purp.c.

int X509_check_ca ( X509 x)

Definition at line 529 of file v3_purp.c.

int X509_check_issued ( X509 issuer,
X509 subject 
)

Definition at line 701 of file v3_purp.c.

int X509_check_purpose ( X509 x,
int  id,
int  ca 
)

Definition at line 109 of file v3_purp.c.

void X509_email_free ( STACK_OF(OPENSSL_STRING)*  sk)

Definition at line 566 of file v3_utl.c.

void X509_POLICY_NODE_print ( BIO out,
X509_POLICY_NODE node,
int  indent 
)
int X509_PURPOSE_add ( int  id,
int  trust,
int  flags,
int(*)(const X509_PURPOSE *, const X509 *, int)  ck,
char *  name,
char *  sname,
void arg 
)

Definition at line 172 of file v3_purp.c.

void X509_PURPOSE_cleanup ( void  )

Definition at line 242 of file v3_purp.c.

X509_PURPOSE* X509_PURPOSE_get0 ( int  idx)

Definition at line 141 of file v3_purp.c.

char* X509_PURPOSE_get0_name ( X509_PURPOSE xp)

Definition at line 255 of file v3_purp.c.

char* X509_PURPOSE_get0_sname ( X509_PURPOSE xp)

Definition at line 260 of file v3_purp.c.

int X509_PURPOSE_get_by_id ( int  id)

Definition at line 159 of file v3_purp.c.

int X509_PURPOSE_get_by_sname ( char *  sname)

Definition at line 148 of file v3_purp.c.

int X509_PURPOSE_get_count ( void  )

Definition at line 135 of file v3_purp.c.

int X509_PURPOSE_get_id ( X509_PURPOSE )

Definition at line 250 of file v3_purp.c.

int X509_PURPOSE_get_trust ( X509_PURPOSE xp)

Definition at line 265 of file v3_purp.c.

int X509_PURPOSE_set ( int *  p,
int  purpose 
)

Definition at line 125 of file v3_purp.c.

int X509_supported_extension ( X509_EXTENSION ex)

Definition at line 278 of file v3_purp.c.

int X509V3_add1_i2d ( STACK_OF(X509_EXTENSION)**  x,
int  nid,
void value,
int  crit,
unsigned long  flags 
)

Definition at line 239 of file v3_lib.c.

int X509V3_add_standard_extensions ( void  )

Definition at line 161 of file v3_lib.c.

int X509V3_add_value ( const char *  name,
const char *  value,
STACK_OF(CONF_VALUE)**  extlist 
)
int X509V3_add_value_bool ( const char *  name,
int  asn1_bool,
STACK_OF(CONF_VALUE)**  extlist 
)

Definition at line 120 of file v3_utl.c.

int X509V3_add_value_int ( const char *  name,
ASN1_INTEGER aint,
STACK_OF(CONF_VALUE)**  extlist 
)

Definition at line 201 of file v3_utl.c.

int X509V3_add_value_uchar ( const char *  name,
const unsigned char *  value,
STACK_OF(CONF_VALUE)**  extlist 
)

Definition at line 103 of file v3_utl.c.

int X509V3_EXT_add ( X509V3_EXT_METHOD ext)
int X509V3_EXT_add_alias ( int  nid_to,
int  nid_from 
)

Definition at line 127 of file v3_lib.c.

int X509V3_EXT_add_list ( X509V3_EXT_METHOD extlist)

Definition at line 120 of file v3_lib.c.

void X509V3_EXT_cleanup ( void  )

Definition at line 146 of file v3_lib.c.

void* X509V3_EXT_d2i ( X509_EXTENSION ext)

Definition at line 168 of file v3_lib.c.

const X509V3_EXT_METHOD* X509V3_EXT_get ( X509_EXTENSION ext)

Definition at line 112 of file v3_lib.c.

const X509V3_EXT_METHOD* X509V3_EXT_get_nid ( int  nid)

Definition at line 97 of file v3_lib.c.

X509_EXTENSION* X509V3_EXT_i2d ( int  ext_nid,
int  crit,
void ext_struc 
)

Definition at line 215 of file v3_conf.c.

int X509V3_EXT_print ( BIO out,
X509_EXTENSION ext,
unsigned long  flag,
int  indent 
)

Definition at line 108 of file v3_prn.c.

int X509V3_EXT_print_fp ( FILE *  out,
X509_EXTENSION ext,
int  flag,
int  indent 
)

Definition at line 225 of file v3_prn.c.

void X509V3_EXT_val_prn ( BIO out,
STACK_OF(CONF_VALUE)*  val,
int  indent,
int  ml 
)

Definition at line 71 of file v3_prn.c.

int X509V3_extensions_print ( BIO out,
char *  title,
STACK_OF(X509_EXTENSION)*  exts,
unsigned long  flag,
int  indent 
)

Definition at line 165 of file v3_prn.c.

void* X509V3_get_d2i ( STACK_OF(X509_EXTENSION)*  x,
int  nid,
int *  crit,
int *  idx 
)

Definition at line 194 of file v3_lib.c.

char* X509V3_get_string ( X509V3_CTX ctx,
char *  name,
char *  section 
)

Definition at line 385 of file v3_conf.c.

int X509V3_NAME_from_section ( X509_NAME nm,
STACK_OF(CONF_VALUE)*  dn_sk,
unsigned long  chtype 
)

Definition at line 830 of file v3_utl.c.

void X509V3_section_free ( X509V3_CTX ctx,
STACK_OF(CONF_VALUE)*  section 
)

Definition at line 416 of file v3_conf.c.

void X509V3_set_ctx ( X509V3_CTX ctx,
X509 issuer,
X509 subject,
X509_REQ req,
X509_CRL crl,
int  flags 
)

Definition at line 446 of file v3_conf.c.

void X509V3_string_free ( X509V3_CTX ctx,
char *  str 
)

Definition at line 409 of file v3_conf.c.

Variable Documentation

Definition at line 533 of file x509v3.h.

GENERAL_NAMES* gen

Definition at line 536 of file x509v3.h.

char* section

Definition at line 632 of file x509v3.h.