Lines Matching refs:X509
52 static int check_issued(X509_STORE_CTX *ctx, X509 *x, X509 *issuer);
53 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x);
61 static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);
63 static int check_cert_key_level(X509_STORE_CTX *ctx, X509 *cert);
65 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert);
66 static int check_curve(X509 *cert);
68 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer,
69 unsigned int *preasons, X509_CRL *crl, X509 *x);
71 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x);
75 static void crl_akid_check(X509_STORE_CTX *ctx, X509_CRL *crl, X509 **pissuer,
77 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score,
79 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x);
81 STACK_OF(X509) *cert_path,
82 STACK_OF(X509) *crl_path);
98 int X509_self_signed(X509 *cert, int verify_signature) in X509_self_signed()
119 static int lookup_cert_match(X509 **result, X509_STORE_CTX *ctx, X509 *x) in lookup_cert_match()
121 STACK_OF(X509) *certs; in lookup_cert_match()
122 X509 *xtmp = NULL; in lookup_cert_match()
160 static int verify_cb_cert(X509_STORE_CTX *ctx, X509 *x, int depth, int err) in verify_cb_cert()
199 X509 *cert = sk_X509_value(ctx->chain, i); in check_auth_level()
370 static int sk_X509_contains(STACK_OF(X509) *sk, X509 *cert) in sk_X509_contains()
386 static X509 *find_issuer(X509_STORE_CTX *ctx, STACK_OF(X509) *sk, X509 *x) in find_issuer()
389 X509 *issuer, *rv = NULL; in find_issuer()
407 static int check_issued(ossl_unused X509_STORE_CTX *ctx, X509 *x, X509 *issuer) in check_issued()
424 static int get_issuer_sk(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) in get_issuer_sk()
436 static STACK_OF(X509) *lookup_certs_sk(X509_STORE_CTX *ctx, const X509_NAME *nm) in STACK_OF() argument
438 STACK_OF(X509) *sk = sk_X509_new_null(); in STACK_OF()
439 X509 *x; in STACK_OF()
462 static int check_purpose(X509_STORE_CTX *ctx, X509 *x, int purpose, int depth, in check_purpose()
516 X509 *x; in check_extensions()
686 static int has_san_id(X509 *x, int gtype) in has_san_id()
717 X509 *x = sk_X509_value(ctx->chain, i); in check_name_constraints()
835 static int check_hosts(X509 *x, X509_VERIFY_PARAM *vpm) in check_hosts()
856 X509 *x = ctx->cert; in check_id()
878 X509 *x = NULL; in check_trust()
879 X509 *mx; in check_trust()
1002 X509 *x = sk_X509_value(ctx->chain, cnum); in check_cert()
1122 X509 **pissuer, int *pscore, unsigned int *preasons, in get_crl_sk()
1127 X509 *x = ctx->current_cert; in get_crl_sk()
1129 X509 *crl_issuer = NULL, *best_crl_issuer = NULL; in get_crl_sk()
1266 static int get_crl_score(X509_STORE_CTX *ctx, X509 **pissuer, in get_crl_score()
1267 unsigned int *preasons, X509_CRL *crl, X509 *x) in get_crl_score()
1327 X509 **pissuer, int *pcrl_score) in crl_akid_check()
1329 X509 *crl_issuer = NULL; in crl_akid_check()
1384 static int check_crl_path(X509_STORE_CTX *ctx, X509 *x) in check_crl_path()
1423 STACK_OF(X509) *cert_path, in check_crl_chain()
1424 STACK_OF(X509) *crl_path) in check_crl_chain()
1426 X509 *cert_ta = sk_X509_value(cert_path, sk_X509_num(cert_path) - 1); in check_crl_chain()
1427 X509 *crl_ta = sk_X509_value(crl_path, sk_X509_num(crl_path) - 1); in check_crl_chain()
1515 static int crl_crldp_check(X509 *x, X509_CRL *crl, int crl_score, in crl_crldp_check()
1550 X509_CRL **pcrl, X509_CRL **pdcrl, X509 *x) in get_crl_delta()
1553 X509 *issuer = NULL; in get_crl_delta()
1593 X509 *issuer = NULL; in check_crl()
1668 static int cert_crl(X509_STORE_CTX *ctx, X509_CRL *crl, X509 *x) in cert_crl()
1733 X509 *x = sk_X509_value(ctx->chain, i); in check_policy()
1785 int ossl_x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int depth) in ossl_x509_check_cert_time()
1818 X509 *xi; in internal_verify()
1819 X509 *xs; in internal_verify()
2064 int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) in X509_get_pubkey_parameters()
2254 X509 *X509_STORE_CTX_get_current_cert(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get_current_cert()
2259 void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x) in X509_STORE_CTX_set_current_cert()
2264 STACK_OF(X509) *X509_STORE_CTX_get0_chain(const X509_STORE_CTX *ctx) in STACK_OF() argument
2269 STACK_OF(X509) *X509_STORE_CTX_get1_chain(const X509_STORE_CTX *ctx) in STACK_OF() argument
2276 X509 *X509_STORE_CTX_get0_current_issuer(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_current_issuer()
2291 void X509_STORE_CTX_set_cert(X509_STORE_CTX *ctx, X509 *x) in X509_STORE_CTX_set_cert()
2431 int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, in X509_STORE_CTX_init()
2432 STACK_OF(X509) *chain) in X509_STORE_CTX_init()
2570 void X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_set0_trusted_stack()
2625 X509 *X509_STORE_CTX_get0_cert(const X509_STORE_CTX *ctx) in X509_STORE_CTX_get0_cert()
2635 STACK_OF(X509) *X509_STORE_CTX_get0_untrusted(const X509_STORE_CTX *ctx) in STACK_OF() argument
2640 void X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_set0_untrusted()
2645 void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) in X509_STORE_CTX_set0_verified_chain()
2780 static unsigned char *dane_i2d(X509 *cert, uint8_t selector, in dane_i2d()
2813 static int dane_match_cert(X509_STORE_CTX *ctx, X509 *cert, int depth) in dane_match_cert()
2960 X509 *cert; in check_dane_issuer()
2986 X509 *cert = sk_X509_value(ctx->chain, num - 1); in check_dane_pkeys()
3085 static int check_leaf_suiteb(X509_STORE_CTX *ctx, X509 *cert) in check_leaf_suiteb()
3126 X509 *cert = ctx->cert; in dane_verify()
3190 static int get1_trusted_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *cert) in get1_trusted_issuer()
3192 STACK_OF(X509) *saved_chain = ctx->chain; in get1_trusted_issuer()
3210 STACK_OF(X509) *sk_untrusted = NULL; in build_chain()
3285 X509 *curr, *issuer = NULL; in build_chain()
3553 STACK_OF(X509) *X509_build_chain(X509 *target, STACK_OF(X509) *certs, in STACK_OF() argument
3560 STACK_OF(X509) *result = NULL; in STACK_OF()
3633 static int check_cert_key_level(X509_STORE_CTX *ctx, X509 *cert) in check_cert_key_level()
3644 static int check_curve(X509 *cert) in check_curve()
3669 static int check_sig_level(X509_STORE_CTX *ctx, X509 *cert) in check_sig_level()