Lines Matching refs:X509

117 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
118 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x);
127 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer,
129 X509_CRL *crl, X509 *x);
131 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x);
135 X509 **pissuer, int *pcrl_score);
136 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score,
138 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x);
140 STACK_OF(X509) *cert_path,
141 STACK_OF(X509) *crl_path);
152 static int x509_subject_cmp(X509 **a, X509 **b)
158 static int cert_self_signed(X509 *x) in cert_self_signed()
169 static X509 *lookup_cert_match(X509_STORE_CTX *ctx, X509 *x) in lookup_cert_match()
171 STACK_OF(X509) *certs; in lookup_cert_match()
172 X509 *xtmp = NULL; in lookup_cert_match()
195 X509 *x,*xtmp,*chain_ss=NULL; in X509_verify_cert()
201 STACK_OF(X509) *sktmp=NULL; in X509_verify_cert()
204 OPENSSL_PUT_ERROR(X509, X509_R_NO_CERT_SET_FOR_US_TO_VERIFY); in X509_verify_cert()
211 OPENSSL_PUT_ERROR(X509, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); in X509_verify_cert()
222 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in X509_verify_cert()
232 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in X509_verify_cert()
277 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in X509_verify_cert()
363 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in X509_verify_cert()
462 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x) in find_issuer()
465 X509 *issuer; in find_issuer()
477 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer) in check_issued()
495 static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) in get_issuer_sk()
515 X509 *x; in check_chain_extensions()
668 X509 *x; in check_name_constraints()
710 static int check_hosts(X509 *x, X509_VERIFY_PARAM_ID *id) in check_hosts()
730 X509 *x = ctx->cert; in check_id()
753 X509 *x = NULL; in check_trust()
782 X509 *mx; in check_trust()
829 X509 *x; in check_cert()
965 X509 **pissuer, int *pscore, unsigned int *preasons, in get_crl_sk()
971 X509 *x = ctx->current_cert; in get_crl_sk()
973 X509 *crl_issuer = NULL, *best_crl_issuer = NULL; in get_crl_sk()
1120 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer, in get_crl_score()
1122 X509_CRL *crl, X509 *x) in get_crl_score()
1190 X509 **pissuer, int *pcrl_score) in crl_akid_check()
1192 X509 *crl_issuer = NULL; in crl_akid_check()
1254 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x) in check_crl_path()
1294 STACK_OF(X509) *cert_path, in check_crl_chain()
1295 STACK_OF(X509) *crl_path) in check_crl_chain()
1297 X509 *cert_ta, *crl_ta; in check_crl_chain()
1399 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score, in crl_crldp_check()
1439 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x) in get_crl_delta()
1442 X509 *issuer = NULL; in get_crl_delta()
1486 X509 *issuer = NULL; in check_crl()
1600 static int cert_crl(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x) in cert_crl()
1642 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in check_policy()
1651 X509 *x; in check_policy()
1683 static int check_cert_time(X509_STORE_CTX *ctx, X509 *x) in check_cert_time()
1733 X509 *xs,*xi; in internal_verify()
1991 OPENSSL_PUT_ERROR(X509, X509_R_CRL_ALREADY_DELTA); in X509_CRL_diff()
1997 OPENSSL_PUT_ERROR(X509, X509_R_NO_CRL_NUMBER); in X509_CRL_diff()
2004 OPENSSL_PUT_ERROR(X509, X509_R_ISSUER_MISMATCH); in X509_CRL_diff()
2010 OPENSSL_PUT_ERROR(X509, X509_R_AKID_MISMATCH); in X509_CRL_diff()
2015 OPENSSL_PUT_ERROR(X509, X509_R_IDP_MISMATCH); in X509_CRL_diff()
2021 OPENSSL_PUT_ERROR(X509, X509_R_NEWER_CRL_NOT_NEWER); in X509_CRL_diff()
2028 OPENSSL_PUT_ERROR(X509, X509_R_CRL_VERIFY_FAILURE); in X509_CRL_diff()
2093 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in X509_CRL_diff()
2138 X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx) in X509_STORE_CTX_get_current_cert()
2143 STACK_OF(X509) *X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx) in STACK_OF() argument
2148 STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx) in STACK_OF() argument
2155 X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_current_issuer()
2170 void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x) in X509_STORE_CTX_set_cert()
2175 void X509_STORE_CTX_set_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_set_chain()
2218 OPENSSL_PUT_ERROR(X509, X509_R_UNKNOWN_PURPOSE_ID); in X509_STORE_CTX_purpose_inherit()
2227 OPENSSL_PUT_ERROR(X509, X509_R_UNKNOWN_PURPOSE_ID); in X509_STORE_CTX_purpose_inherit()
2240 OPENSSL_PUT_ERROR(X509, X509_R_UNKNOWN_TRUST_ID); in X509_STORE_CTX_purpose_inherit()
2256 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in X509_STORE_CTX_new()
2269 int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, in X509_STORE_CTX_init()
2270 STACK_OF(X509) *chain) in X509_STORE_CTX_init()
2370 OPENSSL_PUT_ERROR(X509, ERR_R_MALLOC_FAILURE); in X509_STORE_CTX_init()
2378 void X509_STORE_CTX_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_trusted_stack()
2459 IMPLEMENT_ASN1_SET_OF(X509)