OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
x509_vfy.c File Reference
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include "cryptlib.h"
#include <openssl/crypto.h>
#include <openssl/lhash.h>
#include <openssl/buffer.h>
#include <openssl/evp.h>
#include <openssl/asn1.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/objects.h>

Go to the source code of this file.

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)
 
int X509_get_pubkey_parameters (EVP_PKEY *pkey, STACK_OF(X509)*chain)
 
int X509_STORE_CTX_get_ex_new_index (long argl, void *argp, CRYPTO_EX_new *new_func, 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)
 

Variables

const char X509_version [] ="X.509" OPENSSL_VERSION_PTEXT
 

Macro Definition Documentation

#define CRL_SCORE_AKID   0x004

Definition at line 105 of file x509_vfy.c.

#define CRL_SCORE_ISSUER_CERT   0x018

Definition at line 97 of file x509_vfy.c.

#define CRL_SCORE_ISSUER_NAME   0x020

Definition at line 89 of file x509_vfy.c.

#define CRL_SCORE_NOCRITICAL   0x100

Definition at line 77 of file x509_vfy.c.

#define CRL_SCORE_SAME_PATH   0x008

Definition at line 101 of file x509_vfy.c.

#define CRL_SCORE_SCOPE   0x080

Definition at line 81 of file x509_vfy.c.

#define CRL_SCORE_TIME   0x040

Definition at line 85 of file x509_vfy.c.

#define CRL_SCORE_TIME_DELTA   0x002

Definition at line 109 of file x509_vfy.c.

#define CRL_SCORE_VALID   (CRL_SCORE_NOCRITICAL|CRL_SCORE_TIME|CRL_SCORE_SCOPE)

Definition at line 93 of file x509_vfy.c.

Function Documentation

STACK_OF ( X509  )

Definition at line 1860 of file x509_vfy.c.

int X509_cmp_current_time ( const ASN1_TIME ctm)

Definition at line 1666 of file x509_vfy.c.

int X509_cmp_time ( const ASN1_TIME ctm,
time_t *  cmp_time 
)

Definition at line 1671 of file x509_vfy.c.

int X509_get_pubkey_parameters ( EVP_PKEY pkey,
STACK_OF(X509)*  chain 
)

Definition at line 1779 of file x509_vfy.c.

ASN1_TIME* X509_gmtime_adj ( ASN1_TIME s,
long  adj 
)

Definition at line 1750 of file x509_vfy.c.

void X509_STORE_CTX_cleanup ( X509_STORE_CTX ctx)

Definition at line 2133 of file x509_vfy.c.

void X509_STORE_CTX_free ( X509_STORE_CTX ctx)

Definition at line 1990 of file x509_vfy.c.

X509_CRL* X509_STORE_CTX_get0_current_crl ( X509_STORE_CTX ctx)

Definition at line 1884 of file x509_vfy.c.

X509* X509_STORE_CTX_get0_current_issuer ( X509_STORE_CTX ctx)

Definition at line 1879 of file x509_vfy.c.

X509_VERIFY_PARAM* X509_STORE_CTX_get0_param ( X509_STORE_CTX ctx)

Definition at line 2196 of file x509_vfy.c.

X509_STORE_CTX* X509_STORE_CTX_get0_parent_ctx ( X509_STORE_CTX ctx)

Definition at line 1889 of file x509_vfy.c.

X509_POLICY_TREE* X509_STORE_CTX_get0_policy_tree ( X509_STORE_CTX ctx)

Definition at line 2177 of file x509_vfy.c.

X509* X509_STORE_CTX_get_current_cert ( X509_STORE_CTX ctx)

Definition at line 1855 of file x509_vfy.c.

int X509_STORE_CTX_get_error ( X509_STORE_CTX ctx)

Definition at line 1840 of file x509_vfy.c.

int X509_STORE_CTX_get_error_depth ( X509_STORE_CTX ctx)

Definition at line 1850 of file x509_vfy.c.

void* X509_STORE_CTX_get_ex_data ( X509_STORE_CTX ctx,
int  idx 
)

Definition at line 1835 of file x509_vfy.c.

int X509_STORE_CTX_get_ex_new_index ( long  argl,
void argp,
CRYPTO_EX_new new_func,
CRYPTO_EX_dup dup_func,
CRYPTO_EX_free free_func 
)

Definition at line 1821 of file x509_vfy.c.

int X509_STORE_CTX_get_explicit_policy ( X509_STORE_CTX ctx)

Definition at line 2182 of file x509_vfy.c.

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

Definition at line 1996 of file x509_vfy.c.

X509_STORE_CTX* X509_STORE_CTX_new ( void  )

Definition at line 1977 of file x509_vfy.c.

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

Definition at line 1929 of file x509_vfy.c.

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

Definition at line 1904 of file x509_vfy.c.

void X509_STORE_CTX_set0_param ( X509_STORE_CTX ctx,
X509_VERIFY_PARAM param 
)

Definition at line 2201 of file x509_vfy.c.

void X509_STORE_CTX_set_cert ( X509_STORE_CTX ctx,
X509 x 
)

Definition at line 1894 of file x509_vfy.c.

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

Definition at line 1899 of file x509_vfy.c.

int X509_STORE_CTX_set_default ( X509_STORE_CTX ctx,
const char *  name 
)

Definition at line 2187 of file x509_vfy.c.

void X509_STORE_CTX_set_depth ( X509_STORE_CTX ctx,
int  depth 
)

Definition at line 2156 of file x509_vfy.c.

void X509_STORE_CTX_set_error ( X509_STORE_CTX ctx,
int  err 
)

Definition at line 1845 of file x509_vfy.c.

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

Definition at line 1830 of file x509_vfy.c.

void X509_STORE_CTX_set_flags ( X509_STORE_CTX ctx,
unsigned long  flags 
)

Definition at line 2161 of file x509_vfy.c.

int X509_STORE_CTX_set_purpose ( X509_STORE_CTX ctx,
int  purpose 
)

Definition at line 1909 of file x509_vfy.c.

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

Definition at line 2166 of file x509_vfy.c.

int X509_STORE_CTX_set_trust ( X509_STORE_CTX ctx,
int  trust 
)

Definition at line 1914 of file x509_vfy.c.

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

Definition at line 2171 of file x509_vfy.c.

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

Definition at line 2127 of file x509_vfy.c.

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

Definition at line 1755 of file x509_vfy.c.

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

Definition at line 1760 of file x509_vfy.c.

int X509_verify_cert ( X509_STORE_CTX ctx)

Definition at line 153 of file x509_vfy.c.

Variable Documentation

const char X509_version[] ="X.509" OPENSSL_VERSION_PTEXT

Definition at line 138 of file x509_vfy.c.