#include <string.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/thread.h>
#include <openssl/x509.h>
#include "../internal.h"
#include "internal.h"
static int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type,
X509_NAME *name);
static X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,
int type, X509_NAME *name);
static X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,
X509_OBJECT *x);
static int X509_OBJECT_up_ref_count(X509_OBJECT *a);
static X509_LOOKUP *X509_LOOKUP_new(const X509_LOOKUP_METHOD *method,
X509_STORE *store);
static int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name,
X509_OBJECT *ret);
static X509_LOOKUP *X509_LOOKUP_new(const X509_LOOKUP_METHOD *method,
X509_STORE *store) { … }
void X509_LOOKUP_free(X509_LOOKUP *ctx) { … }
int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, long argl,
char **ret) { … }
static int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name,
X509_OBJECT *ret) { … }
static int x509_object_cmp(const X509_OBJECT *a, const X509_OBJECT *b) { … }
static int x509_object_cmp_sk(const X509_OBJECT *const *a,
const X509_OBJECT *const *b) { … }
X509_STORE *X509_STORE_new(void) { … }
int X509_STORE_up_ref(X509_STORE *store) { … }
void X509_STORE_free(X509_STORE *vfy) { … }
X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, const X509_LOOKUP_METHOD *m) { … }
int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name,
X509_OBJECT *ret) { … }
static int x509_store_add(X509_STORE *ctx, void *x, int is_crl) { … }
int X509_STORE_add_cert(X509_STORE *ctx, X509 *x) { … }
int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x) { … }
X509_OBJECT *X509_OBJECT_new(void) { … }
void X509_OBJECT_free(X509_OBJECT *obj) { … }
static int X509_OBJECT_up_ref_count(X509_OBJECT *a) { … }
void X509_OBJECT_free_contents(X509_OBJECT *a) { … }
int X509_OBJECT_get_type(const X509_OBJECT *a) { … }
X509 *X509_OBJECT_get0_X509(const X509_OBJECT *a) { … }
static int x509_object_idx_cnt(STACK_OF(X509_OBJECT) *h, int type,
X509_NAME *name, int *pnmatch) { … }
static int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type,
X509_NAME *name) { … }
static X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,
int type, X509_NAME *name) { … }
static X509_OBJECT *x509_object_dup(const X509_OBJECT *obj) { … }
STACK_OF(X509_OBJECT) *X509_STORE_get1_objects(X509_STORE *store) { … }
STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *store) { … }
STACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *ctx, X509_NAME *nm) { … }
STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *ctx,
X509_NAME *nm) { … }
static X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,
X509_OBJECT *x) { … }
int X509_STORE_CTX_get1_issuer(X509 **out_issuer, X509_STORE_CTX *ctx,
X509 *x) { … }
int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags) { … }
int X509_STORE_set_depth(X509_STORE *ctx, int depth) { … }
int X509_STORE_set_purpose(X509_STORE *ctx, int purpose) { … }
int X509_STORE_set_trust(X509_STORE *ctx, int trust) { … }
int X509_STORE_set1_param(X509_STORE *ctx, const X509_VERIFY_PARAM *param) { … }
X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx) { … }
void X509_STORE_set_verify_cb(X509_STORE *ctx,
X509_STORE_CTX_verify_cb verify_cb) { … }
X509_STORE *X509_STORE_CTX_get0_store(const X509_STORE_CTX *ctx) { … }