webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
v3_purp.c File Reference
#include <stdio.h>
#include <string.h>
#include <openssl/buf.h>
#include <openssl/err.h>
#include <openssl/digest.h>
#include <openssl/mem.h>
#include <openssl/obj.h>
#include <openssl/thread.h>
#include <openssl/x509_vfy.h>
#include <openssl/x509v3.h>
#include "../internal.h"

Macros

#define V1_ROOT   (EXFLAG_V1|EXFLAG_SS)
 
#define ku_reject(x, usage)   (((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage)))
 
#define xku_reject(x, usage)   (((x)->ex_flags & EXFLAG_XKUSAGE) && !((x)->ex_xkusage & (usage)))
 
#define ns_reject(x, usage)   (((x)->ex_flags & EXFLAG_NSCERT) && !((x)->ex_nscert & (usage)))
 
#define X509_PURPOSE_COUNT   (sizeof(xstandard)/sizeof(X509_PURPOSE))
 
#define KU_TLS   (KU_DIGITAL_SIGNATURE|KU_KEY_ENCIPHERMENT|KU_KEY_AGREEMENT)
 

Functions

int X509_check_purpose (X509 *x, int id, int ca)
 
int X509_PURPOSE_set (int *p, int purpose)
 
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 purpose)
 
int X509_PURPOSE_add (int id, int trust, int flags, int(*ck)(const X509_PURPOSE *, const X509 *, int), char *name, char *sname, void *arg)
 
void X509_PURPOSE_cleanup (void)
 
int X509_PURPOSE_get_id (X509_PURPOSE *xp)
 
char * X509_PURPOSE_get0_name (X509_PURPOSE *xp)
 
char * X509_PURPOSE_get0_sname (X509_PURPOSE *xp)
 
int X509_PURPOSE_get_trust (X509_PURPOSE *xp)
 
int X509_supported_extension (X509_EXTENSION *ex)
 
int X509_check_ca (X509 *x)
 
int X509_check_issued (X509 *issuer, X509 *subject)
 
int X509_check_akid (X509 *issuer, AUTHORITY_KEYID *akid)
 

Macro Definition Documentation

◆ ku_reject

#define ku_reject (   x,
  usage 
)    (((x)->ex_flags & EXFLAG_KUSAGE) && !((x)->ex_kusage & (usage)))

◆ KU_TLS

◆ ns_reject

#define ns_reject (   x,
  usage 
)    (((x)->ex_flags & EXFLAG_NSCERT) && !((x)->ex_nscert & (usage)))

◆ V1_ROOT

#define V1_ROOT   (EXFLAG_V1|EXFLAG_SS)

◆ X509_PURPOSE_COUNT

#define X509_PURPOSE_COUNT   (sizeof(xstandard)/sizeof(X509_PURPOSE))

◆ xku_reject

#define xku_reject (   x,
  usage 
)    (((x)->ex_flags & EXFLAG_XKUSAGE) && !((x)->ex_xkusage & (usage)))

Function Documentation

◆ X509_check_akid()

int X509_check_akid ( X509 issuer,
AUTHORITY_KEYID akid 
)

◆ X509_check_ca()

int X509_check_ca ( X509 x)

◆ X509_check_issued()

int X509_check_issued ( X509 issuer,
X509 subject 
)

◆ X509_check_purpose()

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

◆ X509_PURPOSE_add()

int X509_PURPOSE_add ( int  id,
int  trust,
int  flags,
int(*)(const X509_PURPOSE *, const X509 *, int)  ck,
char *  name,
char *  sname,
void arg 
)

◆ X509_PURPOSE_cleanup()

void X509_PURPOSE_cleanup ( void  )

◆ X509_PURPOSE_get0()

X509_PURPOSE* X509_PURPOSE_get0 ( int  idx)

◆ X509_PURPOSE_get0_name()

char* X509_PURPOSE_get0_name ( X509_PURPOSE xp)

◆ X509_PURPOSE_get0_sname()

char* X509_PURPOSE_get0_sname ( X509_PURPOSE xp)

◆ X509_PURPOSE_get_by_id()

int X509_PURPOSE_get_by_id ( int  purpose)

◆ X509_PURPOSE_get_by_sname()

int X509_PURPOSE_get_by_sname ( char *  sname)

◆ X509_PURPOSE_get_count()

int X509_PURPOSE_get_count ( void  )

◆ X509_PURPOSE_get_id()

int X509_PURPOSE_get_id ( X509_PURPOSE xp)

◆ X509_PURPOSE_get_trust()

int X509_PURPOSE_get_trust ( X509_PURPOSE xp)

◆ X509_PURPOSE_set()

int X509_PURPOSE_set ( int *  p,
int  purpose 
)

◆ X509_supported_extension()

int X509_supported_extension ( X509_EXTENSION ex)