webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
v3_utl.c File Reference
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <openssl/bn.h>
#include <openssl/buf.h>
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include <openssl/x509v3.h>
#include "../conf/internal.h"

Classes

struct  IPV6_STAT
 

Macros

#define HDR_NAME   1
 
#define HDR_VALUE   2
 
#define LABEL_START   (1 << 0)
 
#define LABEL_END   (1 << 1)
 
#define LABEL_HYPHEN   (1 << 2)
 
#define LABEL_IDNA   (1 << 3)
 

Typedefs

typedef int(* equal_fn) (const unsigned char *pattern, size_t pattern_len, const unsigned char *subject, size_t subject_len, unsigned int flags)
 

Functions

int X509V3_add_value_uchar (const char *name, const unsigned char *value, STACK_OF(CONF_VALUE) **extlist)
 
void X509V3_conf_free (CONF_VALUE *conf)
 
int X509V3_add_value_bool (const char *name, int asn1_bool, STACK_OF(CONF_VALUE) **extlist)
 
int X509V3_add_value_bool_nf (char *name, int asn1_bool, STACK_OF(CONF_VALUE) **extlist)
 
char * i2s_ASN1_ENUMERATED (X509V3_EXT_METHOD *method, ASN1_ENUMERATED *a)
 
char * i2s_ASN1_INTEGER (X509V3_EXT_METHOD *method, ASN1_INTEGER *a)
 
ASN1_INTEGERs2i_ASN1_INTEGER (X509V3_EXT_METHOD *method, char *value)
 
int X509V3_add_value_int (const char *name, ASN1_INTEGER *aint, STACK_OF(CONF_VALUE) **extlist)
 
int X509V3_get_value_bool (CONF_VALUE *value, int *asn1_bool)
 
int X509V3_get_value_int (CONF_VALUE *value, ASN1_INTEGER **aint)
 
 STACK_OF (CONF_VALUE)
 
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 X509_email_free (STACK_OF(OPENSSL_STRING) *sk)
 
int X509_check_host (X509 *x, const char *chk, size_t chklen, unsigned int flags, char **peername)
 
int X509_check_email (X509 *x, const char *chk, size_t chklen, unsigned int flags)
 
int X509_check_ip (X509 *x, const unsigned char *chk, size_t chklen, unsigned int flags)
 
int X509_check_ip_asc (X509 *x, const char *ipasc, unsigned int flags)
 
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)
 

Macro Definition Documentation

◆ HDR_NAME

#define HDR_NAME   1

◆ HDR_VALUE

#define HDR_VALUE   2

◆ LABEL_END

#define LABEL_END   (1 << 1)

◆ LABEL_HYPHEN

#define LABEL_HYPHEN   (1 << 2)

◆ LABEL_IDNA

#define LABEL_IDNA   (1 << 3)

◆ LABEL_START

#define LABEL_START   (1 << 0)

Typedef Documentation

◆ equal_fn

typedef int(* equal_fn) (const unsigned char *pattern, size_t pattern_len, const unsigned char *subject, size_t subject_len, unsigned int flags)

Function Documentation

◆ a2i_ipadd()

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

◆ a2i_IPADDRESS()

ASN1_OCTET_STRING* a2i_IPADDRESS ( const char *  ipasc)

◆ a2i_IPADDRESS_NC()

ASN1_OCTET_STRING* a2i_IPADDRESS_NC ( const char *  ipasc)

◆ hex_to_string()

char* hex_to_string ( const unsigned char *  buffer,
long  len 
)

◆ i2s_ASN1_ENUMERATED()

char* i2s_ASN1_ENUMERATED ( X509V3_EXT_METHOD method,
ASN1_ENUMERATED a 
)

◆ i2s_ASN1_INTEGER()

char* i2s_ASN1_INTEGER ( X509V3_EXT_METHOD method,
ASN1_INTEGER a 
)

◆ name_cmp()

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

◆ s2i_ASN1_INTEGER()

ASN1_INTEGER* s2i_ASN1_INTEGER ( X509V3_EXT_METHOD method,
char *  value 
)

◆ STACK_OF()

STACK_OF ( CONF_VALUE  )

◆ string_to_hex()

unsigned char* string_to_hex ( const char *  str,
long *  len 
)

◆ X509_check_email()

int X509_check_email ( X509 x,
const char *  chk,
size_t  chklen,
unsigned int  flags 
)

◆ X509_check_host()

int X509_check_host ( X509 x,
const char *  chk,
size_t  chklen,
unsigned int  flags,
char **  peername 
)

◆ X509_check_ip()

int X509_check_ip ( X509 x,
const unsigned char *  chk,
size_t  chklen,
unsigned int  flags 
)

◆ X509_check_ip_asc()

int X509_check_ip_asc ( X509 x,
const char *  ipasc,
unsigned int  flags 
)

◆ X509_email_free()

void X509_email_free ( STACK_OF(OPENSSL_STRING) *  sk)

◆ X509V3_add_value_bool()

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

◆ X509V3_add_value_bool_nf()

int X509V3_add_value_bool_nf ( char *  name,
int  asn1_bool,
STACK_OF(CONF_VALUE) **  extlist 
)

◆ X509V3_add_value_int()

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

◆ X509V3_add_value_uchar()

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

◆ X509V3_conf_free()

void X509V3_conf_free ( CONF_VALUE conf)

◆ X509V3_get_value_bool()

int X509V3_get_value_bool ( CONF_VALUE value,
int *  asn1_bool 
)

◆ X509V3_get_value_int()

int X509V3_get_value_int ( CONF_VALUE value,
ASN1_INTEGER **  aint 
)

◆ X509V3_NAME_from_section()

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