Lines Matching refs:X509_STORE_CTX

44 static int x509_verify_x509(X509_STORE_CTX *ctx);
45 static int x509_verify_rpk(X509_STORE_CTX *ctx);
46 static int build_chain(X509_STORE_CTX *ctx);
47 static int verify_chain(X509_STORE_CTX *ctx);
48 static int verify_rpk(X509_STORE_CTX *ctx);
49 static int dane_verify(X509_STORE_CTX *ctx);
50 static int dane_verify_rpk(X509_STORE_CTX *ctx);
51 static int null_callback(int ok, X509_STORE_CTX *e);
52 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
53 static int check_extensions(X509_STORE_CTX *ctx);
54 static int check_name_constraints(X509_STORE_CTX *ctx);
55 static int check_id(X509_STORE_CTX *ctx);
56 static int check_trust(X509_STORE_CTX *ctx, int num_untrusted);
57 static int check_revocation(X509_STORE_CTX *ctx);
58 static int check_cert(X509_STORE_CTX *ctx);
59 static int check_policy(X509_STORE_CTX *ctx);
60 static int check_dane_issuer(X509_STORE_CTX *ctx, int depth);
61 static int check_cert_key_level(X509_STORE_CTX *ctx, X509 *cert);
62 static int check_key_level(X509_STORE_CTX *ctx, EVP_PKEY *pkey);
63 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert);
66 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer,
68 static int get_crl_delta(X509_STORE_CTX *ctx,
70 static void get_delta_sk(X509_STORE_CTX *ctx, X509_CRL **dcrl,
73 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, X509 **pissuer,
77 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x);
78 static int check_crl_chain(X509_STORE_CTX *ctx,
82 static int internal_verify(X509_STORE_CTX *ctx);
84 static int null_callback(int ok, X509_STORE_CTX *e) in null_callback()
117 static int lookup_cert_match(X509 **result, X509_STORE_CTX *ctx, X509 *x) in lookup_cert_match()
158 static int verify_cb_cert(X509_STORE_CTX *ctx, X509 *x, int depth, int err) in verify_cb_cert()
181 static int verify_cb_crl(X509_STORE_CTX *ctx, int err) in verify_cb_crl()
188 static int check_auth_level(X509_STORE_CTX *ctx) in check_auth_level()
219 static int verify_rpk(X509_STORE_CTX *ctx) in verify_rpk()
233 static int verify_chain(X509_STORE_CTX *ctx) in verify_chain()
272 int X509_STORE_CTX_verify(X509_STORE_CTX *ctx) in X509_STORE_CTX_verify()
285 int X509_verify_cert(X509_STORE_CTX *ctx) in X509_verify_cert()
298 static int x509_verify_rpk(X509_STORE_CTX *ctx) in x509_verify_rpk()
326 static int x509_verify_x509(X509_STORE_CTX *ctx) in x509_verify_x509()
384 static X509 *get0_best_issuer_sk(X509_STORE_CTX *ctx, int trusted, in get0_best_issuer_sk()
424 int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) in X509_STORE_CTX_get1_issuer()
439 static int check_issued(ossl_unused X509_STORE_CTX *ctx, X509 *x, X509 *issuer) in check_issued()
456 static int get1_best_issuer_other_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) in get1_best_issuer_other_sk()
469 static STACK_OF(X509) *lookup_certs_sk(X509_STORE_CTX *ctx, const X509_NAME *nm) in STACK_OF()
495 static int check_purpose(X509_STORE_CTX *ctx, X509 *x, int purpose, int depth, in check_purpose()
546 static int check_extensions(X509_STORE_CTX *ctx) in check_extensions()
744 static int check_name_constraints(X509_STORE_CTX *ctx) in check_name_constraints()
863 static int check_id_error(X509_STORE_CTX *ctx, int errcode) in check_id_error()
886 static int check_id(X509_STORE_CTX *ctx) in check_id()
908 static int check_trust(X509_STORE_CTX *ctx, int num_untrusted) in check_trust()
1006 static int check_revocation(X509_STORE_CTX *ctx) in check_revocation()
1030 static int check_cert(X509_STORE_CTX *ctx) in check_cert()
1103 static int check_crl_time(X509_STORE_CTX *ctx, X509_CRL *crl, int notify) in check_crl_time()
1154 static int get_crl_sk(X509_STORE_CTX *ctx, X509_CRL **pcrl, X509_CRL **pdcrl, in get_crl_sk()
1269 static void get_delta_sk(X509_STORE_CTX *ctx, X509_CRL **dcrl, int *pscore, in get_delta_sk()
1299 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer, in get_crl_score()
1359 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, in crl_akid_check()
1417 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x) in check_crl_path()
1419 X509_STORE_CTX crl_ctx = {0}; in check_crl_path()
1455 static int check_crl_chain(X509_STORE_CTX *ctx, in check_crl_chain()
1582 static int get_crl_delta(X509_STORE_CTX *ctx, in get_crl_delta()
1624 static int check_crl(X509_STORE_CTX *ctx, X509_CRL *crl) in check_crl()
1701 static int cert_crl(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x) in cert_crl()
1730 static int check_policy(X509_STORE_CTX *ctx) in check_policy()
1818 int ossl_x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int depth) in ossl_x509_check_cert_time()
1848 static int internal_verify(X509_STORE_CTX *ctx) in internal_verify()
2257 int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx, void *data) in X509_STORE_CTX_set_ex_data()
2262 void *X509_STORE_CTX_get_ex_data(const X509_STORE_CTX *ctx, int idx) in X509_STORE_CTX_get_ex_data()
2267 int X509_STORE_CTX_get_error(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_error()
2272 void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int err) in X509_STORE_CTX_set_error()
2277 int X509_STORE_CTX_get_error_depth(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_error_depth()
2282 void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth) in X509_STORE_CTX_set_error_depth()
2287 X509 *X509_STORE_CTX_get_current_cert(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_current_cert()
2292 void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x) in X509_STORE_CTX_set_current_cert()
2297 STACK_OF(X509) *X509_STORE_CTX_get0_chain(const X509_STORE_CTX *ctx) in STACK_OF()
2302 STACK_OF(X509) *X509_STORE_CTX_get1_chain(const X509_STORE_CTX *ctx) in STACK_OF()
2309 X509 *X509_STORE_CTX_get0_current_issuer(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_current_issuer()
2314 X509_CRL *X509_STORE_CTX_get0_current_crl(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_current_crl()
2319 X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_parent_ctx()
2324 void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x) in X509_STORE_CTX_set_cert()
2329 void X509_STORE_CTX_set0_rpk(X509_STORE_CTX *ctx, EVP_PKEY *rpk) in X509_STORE_CTX_set0_rpk()
2334 void X509_STORE_CTX_set0_crls(X509_STORE_CTX *ctx, STACK_OF(X509_CRL) *sk) in X509_STORE_CTX_set0_crls()
2339 int X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose) in X509_STORE_CTX_set_purpose()
2349 int X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust) in X509_STORE_CTX_set_trust()
2368 int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose, in X509_STORE_CTX_purpose_inherit()
2419 X509_STORE_CTX *X509_STORE_CTX_new_ex(OSSL_LIB_CTX *libctx, const char *propq) in X509_STORE_CTX_new_ex()
2421 X509_STORE_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx)); in X509_STORE_CTX_new_ex()
2438 X509_STORE_CTX *X509_STORE_CTX_new(void) in X509_STORE_CTX_new()
2443 void X509_STORE_CTX_free(X509_STORE_CTX *ctx) in X509_STORE_CTX_free()
2456 int X509_STORE_CTX_init_rpk(X509_STORE_CTX *ctx, X509_STORE *store, EVP_PKEY *rpk) in X509_STORE_CTX_init_rpk()
2464 int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, in X509_STORE_CTX_init()
2603 void X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_set0_trusted_stack()
2610 void X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx) in X509_STORE_CTX_cleanup()
2636 void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth) in X509_STORE_CTX_set_depth()
2641 void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags) in X509_STORE_CTX_set_flags()
2646 void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags, in X509_STORE_CTX_set_time()
2652 void X509_STORE_CTX_set_current_reasons(X509_STORE_CTX *ctx, in X509_STORE_CTX_set_current_reasons()
2658 X509 *X509_STORE_CTX_get0_cert(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_cert()
2663 EVP_PKEY *X509_STORE_CTX_get0_rpk(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_rpk()
2668 STACK_OF(X509) *X509_STORE_CTX_get0_untrusted(const X509_STORE_CTX *ctx) in STACK_OF()
2673 void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_set0_untrusted()
2678 void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_set0_verified_chain()
2684 void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, in X509_STORE_CTX_set_verify_cb()
2690 X509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_verify_cb()
2695 void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, in X509_STORE_CTX_set_verify()
2701 X509_STORE_CTX_verify_fn X509_STORE_CTX_get_verify(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_verify()
2707 X509_STORE_CTX_get_get_issuer(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_get_issuer()
2713 X509_STORE_CTX_get_check_issued(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_check_issued()
2719 X509_STORE_CTX_get_check_revocation(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_check_revocation()
2724 X509_STORE_CTX_get_crl_fn X509_STORE_CTX_get_get_crl(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_get_crl()
2729 void X509_STORE_CTX_set_get_crl(X509_STORE_CTX *ctx, in X509_STORE_CTX_set_get_crl()
2736 X509_STORE_CTX_get_check_crl(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_check_crl()
2742 X509_STORE_CTX_get_cert_crl(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_cert_crl()
2748 X509_STORE_CTX_get_check_policy(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_check_policy()
2754 X509_STORE_CTX_get_lookup_certs(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_lookup_certs()
2760 X509_STORE_CTX_get_lookup_crls(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_lookup_crls()
2765 X509_STORE_CTX_cleanup_fn X509_STORE_CTX_get_cleanup(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_cleanup()
2770 X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_policy_tree()
2775 int X509_STORE_CTX_get_explicit_policy(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_explicit_policy()
2780 int X509_STORE_CTX_get_num_untrusted(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_num_untrusted()
2785 int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name) in X509_STORE_CTX_set_default()
2797 X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_param()
2802 void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param) in X509_STORE_CTX_set0_param()
2808 void X509_STORE_CTX_set0_dane(X509_STORE_CTX *ctx, SSL_DANE *dane) in X509_STORE_CTX_set0_dane()
2846 static int dane_match_cert(X509_STORE_CTX *ctx, X509 *cert, int depth) in dane_match_cert()
2989 static int check_dane_issuer(X509_STORE_CTX *ctx, int depth) in check_dane_issuer()
3014 static int check_dane_pkeys(X509_STORE_CTX *ctx) in check_dane_pkeys()
3055 static int dane_match_rpk(X509_STORE_CTX *ctx, EVP_PKEY *rpk) in dane_match_rpk()
3118 static int check_leaf_suiteb(X509_STORE_CTX *ctx, X509 *cert) in check_leaf_suiteb()
3127 static int dane_verify_rpk(X509_STORE_CTX *ctx) in dane_verify_rpk()
3157 static int dane_verify(X509_STORE_CTX *ctx) in dane_verify()
3223 static int get1_trusted_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *cert) in get1_trusted_issuer()
3239 static int build_chain(X509_STORE_CTX *ctx) in build_chain()
3591 X509_STORE_CTX *ctx; in STACK_OF()
3639 static int check_key_level(X509_STORE_CTX *ctx, EVP_PKEY *pkey) in check_key_level()
3666 static int check_cert_key_level(X509_STORE_CTX *ctx, X509 *cert) in check_cert_key_level()
3702 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert) in check_sig_level()