Lines Matching refs:X509

52 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
61 static int check_cert_key_level(X509_STORE_CTX *ctx, X509 *cert);
63 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert);
64 static int check_curve(X509 *cert);
66 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer,
67 unsigned int *preasons, X509_CRL *crl, X509 *x);
69 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x);
73 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, X509 **pissuer,
75 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score,
77 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x);
79 STACK_OF(X509) *cert_path,
80 STACK_OF(X509) *crl_path);
96 int X509_self_signed(X509 *cert, int verify_signature) in X509_self_signed()
117 static int lookup_cert_match(X509 **result, X509_STORE_CTX *ctx, X509 *x) in lookup_cert_match()
119 STACK_OF(X509) *certs; in lookup_cert_match()
120 X509 *xtmp = NULL; in lookup_cert_match()
158 static int verify_cb_cert(X509_STORE_CTX *ctx, X509 *x, int depth, int err) in verify_cb_cert()
197 X509 *cert = sk_X509_value(ctx->chain, i); in check_auth_level()
368 static int sk_X509_contains(STACK_OF(X509) *sk, X509 *cert) in sk_X509_contains()
384 static X509 *get0_best_issuer_sk(X509_STORE_CTX *ctx, int trusted, in get0_best_issuer_sk()
385 int no_dup, STACK_OF(X509) *sk, X509 *x) in get0_best_issuer_sk()
388 X509 *candidate, *issuer = NULL; 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()
426 STACK_OF(X509) *certs = X509_STORE_CTX_get1_certs(ctx, X509_get_issuer_name(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() argument
471 STACK_OF(X509) *sk = sk_X509_new_null(); in STACK_OF()
472 X509 *x; in STACK_OF()
495 static int check_purpose(X509_STORE_CTX *ctx, X509 *x, int purpose, int depth, in check_purpose()
549 X509 *x; in check_extensions()
719 static int has_san_id(X509 *x, int gtype) in has_san_id()
750 X509 *x = sk_X509_value(ctx->chain, i); in check_name_constraints()
868 static int check_hosts(X509 *x, X509_VERIFY_PARAM *vpm) in check_hosts()
889 X509 *x = ctx->cert; in check_id()
911 X509 *x = NULL; in check_trust()
912 X509 *mx; in check_trust()
1035 X509 *x = sk_X509_value(ctx->chain, cnum); in check_cert()
1155 X509 **pissuer, int *pscore, unsigned int *preasons, in get_crl_sk()
1160 X509 *x = ctx->current_cert; in get_crl_sk()
1162 X509 *crl_issuer = NULL, *best_crl_issuer = NULL; in get_crl_sk()
1299 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer, in get_crl_score()
1300 unsigned int *preasons, X509_CRL *crl, X509 *x) in get_crl_score()
1360 X509 **pissuer, int *pcrl_score) in crl_akid_check()
1362 X509 *crl_issuer = NULL; in crl_akid_check()
1417 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x) in check_crl_path()
1456 STACK_OF(X509) *cert_path, in check_crl_chain()
1457 STACK_OF(X509) *crl_path) in check_crl_chain()
1459 X509 *cert_ta = sk_X509_value(cert_path, sk_X509_num(cert_path) - 1); in check_crl_chain()
1460 X509 *crl_ta = sk_X509_value(crl_path, sk_X509_num(crl_path) - 1); in check_crl_chain()
1548 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score, in crl_crldp_check()
1583 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x) in get_crl_delta()
1586 X509 *issuer = NULL; in get_crl_delta()
1626 X509 *issuer = NULL; in check_crl()
1701 static int cert_crl(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x) in cert_crl()
1766 X509 *x = sk_X509_value(ctx->chain, i); in check_policy()
1818 int ossl_x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int depth) in ossl_x509_check_cert_time()
1851 X509 *xi; in internal_verify()
1852 X509 *xs; in internal_verify()
2097 int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) in X509_get_pubkey_parameters()
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() argument
2302 STACK_OF(X509) *X509_STORE_CTX_get1_chain(const X509_STORE_CTX *ctx) in STACK_OF() argument
2309 X509 *X509_STORE_CTX_get0_current_issuer(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_current_issuer()
2324 void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x) in X509_STORE_CTX_set_cert()
2464 int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, in X509_STORE_CTX_init()
2465 STACK_OF(X509) *chain) 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()
2658 X509 *X509_STORE_CTX_get0_cert(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_cert()
2668 STACK_OF(X509) *X509_STORE_CTX_get0_untrusted(const X509_STORE_CTX *ctx) in STACK_OF() argument
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()
2813 static unsigned char *dane_i2d(X509 *cert, uint8_t selector, in dane_i2d()
2846 static int dane_match_cert(X509_STORE_CTX *ctx, X509 *cert, int depth) in dane_match_cert()
2993 X509 *cert; in check_dane_issuer()
3019 X509 *cert = sk_X509_value(ctx->chain, num - 1); in check_dane_pkeys()
3118 static int check_leaf_suiteb(X509_STORE_CTX *ctx, X509 *cert) in check_leaf_suiteb()
3159 X509 *cert = ctx->cert; in dane_verify()
3223 static int get1_trusted_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *cert) in get1_trusted_issuer()
3225 STACK_OF(X509) *saved_chain = ctx->chain; in get1_trusted_issuer()
3243 STACK_OF(X509) *sk_untrusted = NULL; in build_chain()
3318 X509 *curr, *issuer = NULL; in build_chain()
3586 STACK_OF(X509) *X509_build_chain(X509 *target, STACK_OF(X509) *certs, in STACK_OF() argument
3593 STACK_OF(X509) *result = NULL; in STACK_OF()
3666 static int check_cert_key_level(X509_STORE_CTX *ctx, X509 *cert) in check_cert_key_level()
3677 static int check_curve(X509 *cert) in check_curve()
3702 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert) in check_sig_level()