OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
v3_purp.c File Reference
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/x509v3.h>
#include <openssl/x509_vfy.h>

Go to the source code of this file.

Macros

#define X509_PURPOSE_COUNT   (sizeof(xstandard)/sizeof(X509_PURPOSE))
 
#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)))
 

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)
 
 DECLARE_OBJ_BSEARCH_CMP_FN (int, int, nid)
 
 IMPLEMENT_OBJ_BSEARCH_CMP_FN (int, int, nid)
 
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

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

Definition at line 501 of file v3_purp.c.

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

Definition at line 505 of file v3_purp.c.

#define V1_ROOT   (EXFLAG_V1|EXFLAG_SS)

Definition at line 500 of file v3_purp.c.

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

Definition at line 94 of file v3_purp.c.

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

Definition at line 503 of file v3_purp.c.

Function Documentation

DECLARE_OBJ_BSEARCH_CMP_FN ( int  ,
int  ,
nid   
)
IMPLEMENT_OBJ_BSEARCH_CMP_FN ( int  ,
int  ,
nid   
)
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.

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  purpose)

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 xp)

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.