X509_PURPOSE
X509_PURPOSE *xptmp;
X509_PURPOSE *ptmp = X509_PURPOSE_get0(i);
X509_PURPOSE *ptmp = X509_PURPOSE_get0(i);
X509_PURPOSE *ptmp;
purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt)
static int purpose_print(BIO *bio, X509 *cert, X509_PURPOSE *pt);
static int xp_cmp(const X509_PURPOSE * const *a, const X509_PURPOSE * const *b);
static void xptable_free(X509_PURPOSE *p);
static X509_PURPOSE xstandard[] = {
#define X509_PURPOSE_COUNT (sizeof(xstandard)/sizeof(X509_PURPOSE))
static STACK_OF(X509_PURPOSE) *xptable = NULL;
xp_cmp(const X509_PURPOSE * const *a, const X509_PURPOSE * const *b)
const X509_PURPOSE *pt;
X509_PURPOSE *
X509_PURPOSE *xptmp;
X509_PURPOSE tmp;
int (*ck)(const X509_PURPOSE *, const X509 *, int), const char *name,
X509_PURPOSE *ptmp;
if ((ptmp = malloc(sizeof(X509_PURPOSE))) == NULL) {
xptable_free(X509_PURPOSE *p)
X509_PURPOSE_get_id(const X509_PURPOSE *xp)
X509_PURPOSE_get0_name(const X509_PURPOSE *xp)
X509_PURPOSE_get0_sname(const X509_PURPOSE *xp)
X509_PURPOSE_get_trust(const X509_PURPOSE *xp)
check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x, int ca)
check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca)
check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x, int ca)
check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x, int ca)
check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
ocsp_helper(const X509_PURPOSE *xp, const X509 *x, int ca)
static int check_purpose_ssl_client(const X509_PURPOSE *xp, const X509 *x,
check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x, int ca)
static int check_purpose_ssl_server(const X509_PURPOSE *xp, const X509 *x,
static int check_purpose_ns_ssl_server(const X509_PURPOSE *xp, const X509 *x,
no_check(const X509_PURPOSE *xp, const X509 *x, int ca)
static int check_purpose_smime_sign(const X509_PURPOSE *xp, const X509 *x,
static int check_purpose_smime_encrypt(const X509_PURPOSE *xp, const X509 *x,
static int check_purpose_crl_sign(const X509_PURPOSE *xp, const X509 *x,
static int check_purpose_timestamp_sign(const X509_PURPOSE *xp, const X509 *x,
static int no_check(const X509_PURPOSE *xp, const X509 *x, int ca);
static int ocsp_helper(const X509_PURPOSE *xp, const X509 *x, int ca);
X509_PURPOSE *ptmp;
#define sk_X509_PURPOSE_new(cmp) SKM_sk_new(X509_PURPOSE, (cmp))
#define sk_X509_PURPOSE_new_null() SKM_sk_new_null(X509_PURPOSE)
#define sk_X509_PURPOSE_free(st) SKM_sk_free(X509_PURPOSE, (st))
#define sk_X509_PURPOSE_num(st) SKM_sk_num(X509_PURPOSE, (st))
#define sk_X509_PURPOSE_value(st, i) SKM_sk_value(X509_PURPOSE, (st), (i))
#define sk_X509_PURPOSE_set(st, i, val) SKM_sk_set(X509_PURPOSE, (st), (i), (val))
#define sk_X509_PURPOSE_zero(st) SKM_sk_zero(X509_PURPOSE, (st))
#define sk_X509_PURPOSE_push(st, val) SKM_sk_push(X509_PURPOSE, (st), (val))
#define sk_X509_PURPOSE_unshift(st, val) SKM_sk_unshift(X509_PURPOSE, (st), (val))
#define sk_X509_PURPOSE_find(st, val) SKM_sk_find(X509_PURPOSE, (st), (val))
#define sk_X509_PURPOSE_find_ex(st, val) SKM_sk_find_ex(X509_PURPOSE, (st), (val))
#define sk_X509_PURPOSE_delete(st, i) SKM_sk_delete(X509_PURPOSE, (st), (i))
#define sk_X509_PURPOSE_delete_ptr(st, ptr) SKM_sk_delete_ptr(X509_PURPOSE, (st), (ptr))
#define sk_X509_PURPOSE_insert(st, val, i) SKM_sk_insert(X509_PURPOSE, (st), (val), (i))
#define sk_X509_PURPOSE_set_cmp_func(st, cmp) SKM_sk_set_cmp_func(X509_PURPOSE, (st), (cmp))
#define sk_X509_PURPOSE_dup(st) SKM_sk_dup(X509_PURPOSE, st)
#define sk_X509_PURPOSE_pop_free(st, free_func) SKM_sk_pop_free(X509_PURPOSE, (st), (free_func))
#define sk_X509_PURPOSE_shift(st) SKM_sk_shift(X509_PURPOSE, (st))
#define sk_X509_PURPOSE_pop(st) SKM_sk_pop(X509_PURPOSE, (st))
#define sk_X509_PURPOSE_sort(st) SKM_sk_sort(X509_PURPOSE, (st))
#define sk_X509_PURPOSE_is_sorted(st) SKM_sk_is_sorted(X509_PURPOSE, (st))
DECLARE_STACK_OF(X509_PURPOSE)
X509_PURPOSE * X509_PURPOSE_get0(int idx);
int (*ck)(const X509_PURPOSE *, const X509 *, int),
char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp);
char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp);
int X509_PURPOSE_get_trust(const X509_PURPOSE *xp);
int X509_PURPOSE_get_id(const X509_PURPOSE *);