webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
x509_vfy.c File Reference
#include <string.h>
#include <time.h>
#include <openssl/asn1.h>
#include <openssl/buf.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/lhash.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include <openssl/thread.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include "vpm_int.h"
#include "../internal.h"

Macros

#define CRL_SCORE_NOCRITICAL   0x100
 
#define CRL_SCORE_SCOPE   0x080
 
#define CRL_SCORE_TIME   0x040
 
#define CRL_SCORE_ISSUER_NAME   0x020
 
#define CRL_SCORE_VALID   (CRL_SCORE_NOCRITICAL|CRL_SCORE_TIME|CRL_SCORE_SCOPE)
 
#define CRL_SCORE_ISSUER_CERT   0x018
 
#define CRL_SCORE_SAME_PATH   0x008
 
#define CRL_SCORE_AKID   0x004
 
#define CRL_SCORE_TIME_DELTA   0x002
 

Functions

int X509_verify_cert (X509_STORE_CTX *ctx)
 
int X509_cmp_current_time (const ASN1_TIME *ctm)
 
int X509_cmp_time (const ASN1_TIME *ctm, time_t *cmp_time)
 
ASN1_TIMEX509_gmtime_adj (ASN1_TIME *s, long adj)
 
ASN1_TIMEX509_time_adj (ASN1_TIME *s, long offset_sec, time_t *in_tm)
 
ASN1_TIMEX509_time_adj_ex (ASN1_TIME *s, int offset_day, long offset_sec, time_t *in_tm)
 
X509_CRLX509_CRL_diff (X509_CRL *base, X509_CRL *newer, EVP_PKEY *skey, const EVP_MD *md, unsigned int flags)
 
int X509_STORE_CTX_get_ex_new_index (long argl, void *argp, CRYPTO_EX_unused *unused, CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func)
 
int X509_STORE_CTX_set_ex_data (X509_STORE_CTX *ctx, int idx, void *data)
 
voidX509_STORE_CTX_get_ex_data (X509_STORE_CTX *ctx, int idx)
 
int X509_STORE_CTX_get_error (X509_STORE_CTX *ctx)
 
void X509_STORE_CTX_set_error (X509_STORE_CTX *ctx, int err)
 
int X509_STORE_CTX_get_error_depth (X509_STORE_CTX *ctx)
 
X509X509_STORE_CTX_get_current_cert (X509_STORE_CTX *ctx)
 
 STACK_OF (X509)
 
X509X509_STORE_CTX_get0_current_issuer (X509_STORE_CTX *ctx)
 
X509_CRLX509_STORE_CTX_get0_current_crl (X509_STORE_CTX *ctx)
 
X509_STORE_CTXX509_STORE_CTX_get0_parent_ctx (X509_STORE_CTX *ctx)
 
void X509_STORE_CTX_set_cert (X509_STORE_CTX *ctx, X509 *x)
 
void X509_STORE_CTX_set_chain (X509_STORE_CTX *ctx, STACK_OF(X509) *sk)
 
void X509_STORE_CTX_set0_crls (X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *sk)
 
int X509_STORE_CTX_set_purpose (X509_STORE_CTX *ctx, int purpose)
 
int X509_STORE_CTX_set_trust (X509_STORE_CTX *ctx, int trust)
 
int X509_STORE_CTX_purpose_inherit (X509_STORE_CTX *ctx, int def_purpose, int purpose, int trust)
 
X509_STORE_CTXX509_STORE_CTX_new (void)
 
void X509_STORE_CTX_free (X509_STORE_CTX *ctx)
 
int X509_STORE_CTX_init (X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, STACK_OF(X509) *chain)
 
void X509_STORE_CTX_trusted_stack (X509_STORE_CTX *ctx, STACK_OF(X509) *sk)
 
void X509_STORE_CTX_cleanup (X509_STORE_CTX *ctx)
 
void X509_STORE_CTX_set_depth (X509_STORE_CTX *ctx, int depth)
 
void X509_STORE_CTX_set_flags (X509_STORE_CTX *ctx, unsigned long flags)
 
void X509_STORE_CTX_set_time (X509_STORE_CTX *ctx, unsigned long flags, time_t t)
 
void X509_STORE_CTX_set_verify_cb (X509_STORE_CTX *ctx, int(*verify_cb)(int, X509_STORE_CTX *))
 
X509_POLICY_TREEX509_STORE_CTX_get0_policy_tree (X509_STORE_CTX *ctx)
 
int X509_STORE_CTX_get_explicit_policy (X509_STORE_CTX *ctx)
 
int X509_STORE_CTX_set_default (X509_STORE_CTX *ctx, const char *name)
 
X509_VERIFY_PARAMX509_STORE_CTX_get0_param (X509_STORE_CTX *ctx)
 
void X509_STORE_CTX_set0_param (X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param)
 

Macro Definition Documentation

◆ CRL_SCORE_AKID

#define CRL_SCORE_AKID   0x004

◆ CRL_SCORE_ISSUER_CERT

#define CRL_SCORE_ISSUER_CERT   0x018

◆ CRL_SCORE_ISSUER_NAME

#define CRL_SCORE_ISSUER_NAME   0x020

◆ CRL_SCORE_NOCRITICAL

#define CRL_SCORE_NOCRITICAL   0x100

◆ CRL_SCORE_SAME_PATH

#define CRL_SCORE_SAME_PATH   0x008

◆ CRL_SCORE_SCOPE

#define CRL_SCORE_SCOPE   0x080

◆ CRL_SCORE_TIME

#define CRL_SCORE_TIME   0x040

◆ CRL_SCORE_TIME_DELTA

#define CRL_SCORE_TIME_DELTA   0x002

◆ CRL_SCORE_VALID

#define CRL_SCORE_VALID   (CRL_SCORE_NOCRITICAL|CRL_SCORE_TIME|CRL_SCORE_SCOPE)

Function Documentation

◆ STACK_OF()

STACK_OF ( X509  )

◆ X509_cmp_current_time()

int X509_cmp_current_time ( const ASN1_TIME ctm)

◆ X509_cmp_time()

int X509_cmp_time ( const ASN1_TIME ctm,
time_t *  cmp_time 
)

◆ X509_CRL_diff()

X509_CRL* X509_CRL_diff ( X509_CRL base,
X509_CRL newer,
EVP_PKEY skey,
const EVP_MD md,
unsigned int  flags 
)

◆ X509_gmtime_adj()

ASN1_TIME* X509_gmtime_adj ( ASN1_TIME s,
long  adj 
)

◆ X509_STORE_CTX_cleanup()

void X509_STORE_CTX_cleanup ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_free()

void X509_STORE_CTX_free ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get0_current_crl()

X509_CRL* X509_STORE_CTX_get0_current_crl ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get0_current_issuer()

X509* X509_STORE_CTX_get0_current_issuer ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get0_param()

X509_VERIFY_PARAM* X509_STORE_CTX_get0_param ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get0_parent_ctx()

X509_STORE_CTX* X509_STORE_CTX_get0_parent_ctx ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get0_policy_tree()

X509_POLICY_TREE* X509_STORE_CTX_get0_policy_tree ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get_current_cert()

X509* X509_STORE_CTX_get_current_cert ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get_error()

int X509_STORE_CTX_get_error ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get_error_depth()

int X509_STORE_CTX_get_error_depth ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_get_ex_data()

void* X509_STORE_CTX_get_ex_data ( X509_STORE_CTX ctx,
int  idx 
)

◆ X509_STORE_CTX_get_ex_new_index()

int X509_STORE_CTX_get_ex_new_index ( long  argl,
void argp,
CRYPTO_EX_unused unused,
CRYPTO_EX_dup dup_func,
CRYPTO_EX_free free_func 
)

◆ X509_STORE_CTX_get_explicit_policy()

int X509_STORE_CTX_get_explicit_policy ( X509_STORE_CTX ctx)

◆ X509_STORE_CTX_init()

int X509_STORE_CTX_init ( X509_STORE_CTX ctx,
X509_STORE store,
X509 x509,
STACK_OF(X509) *  chain 
)

◆ X509_STORE_CTX_new()

X509_STORE_CTX* X509_STORE_CTX_new ( void  )

◆ X509_STORE_CTX_purpose_inherit()

int X509_STORE_CTX_purpose_inherit ( X509_STORE_CTX ctx,
int  def_purpose,
int  purpose,
int  trust 
)

◆ X509_STORE_CTX_set0_crls()

void X509_STORE_CTX_set0_crls ( X509_STORE_CTX ctx,
STACK_OF(X509_CRL) *  sk 
)

◆ X509_STORE_CTX_set0_param()

void X509_STORE_CTX_set0_param ( X509_STORE_CTX ctx,
X509_VERIFY_PARAM param 
)

◆ X509_STORE_CTX_set_cert()

void X509_STORE_CTX_set_cert ( X509_STORE_CTX ctx,
X509 x 
)

◆ X509_STORE_CTX_set_chain()

void X509_STORE_CTX_set_chain ( X509_STORE_CTX ctx,
STACK_OF(X509) *  sk 
)

◆ X509_STORE_CTX_set_default()

int X509_STORE_CTX_set_default ( X509_STORE_CTX ctx,
const char *  name 
)

◆ X509_STORE_CTX_set_depth()

void X509_STORE_CTX_set_depth ( X509_STORE_CTX ctx,
int  depth 
)

◆ X509_STORE_CTX_set_error()

void X509_STORE_CTX_set_error ( X509_STORE_CTX ctx,
int  err 
)

◆ X509_STORE_CTX_set_ex_data()

int X509_STORE_CTX_set_ex_data ( X509_STORE_CTX ctx,
int  idx,
void data 
)

◆ X509_STORE_CTX_set_flags()

void X509_STORE_CTX_set_flags ( X509_STORE_CTX ctx,
unsigned long  flags 
)

◆ X509_STORE_CTX_set_purpose()

int X509_STORE_CTX_set_purpose ( X509_STORE_CTX ctx,
int  purpose 
)

◆ X509_STORE_CTX_set_time()

void X509_STORE_CTX_set_time ( X509_STORE_CTX ctx,
unsigned long  flags,
time_t  t 
)

◆ X509_STORE_CTX_set_trust()

int X509_STORE_CTX_set_trust ( X509_STORE_CTX ctx,
int  trust 
)

◆ X509_STORE_CTX_set_verify_cb()

void X509_STORE_CTX_set_verify_cb ( X509_STORE_CTX ctx,
int(*)(int, X509_STORE_CTX *)  verify_cb 
)

◆ X509_STORE_CTX_trusted_stack()

void X509_STORE_CTX_trusted_stack ( X509_STORE_CTX ctx,
STACK_OF(X509) *  sk 
)

◆ X509_time_adj()

ASN1_TIME* X509_time_adj ( ASN1_TIME s,
long  offset_sec,
time_t *  in_tm 
)

◆ X509_time_adj_ex()

ASN1_TIME* X509_time_adj_ex ( ASN1_TIME s,
int  offset_day,
long  offset_sec,
time_t *  in_tm 
)

◆ X509_verify_cert()

int X509_verify_cert ( X509_STORE_CTX ctx)