Lines Matching refs:store_ctx

665 	X509_STORE_CTX *store_ctx = NULL;  in ldns_dane_verify_rr()  local
720 else if (!(store_ctx = X509_STORE_CTX_new())) in ldns_dane_verify_rr()
723 else if (!X509_STORE_CTX_init(store_ctx, pkix_validation_store, cert, extra_certs)) in ldns_dane_verify_rr()
729 X509_STORE_CTX_set_default(store_ctx, in ldns_dane_verify_rr()
731 X509_VERIFY_PARAM_set1(X509_STORE_CTX_get0_param(store_ctx), in ldns_dane_verify_rr()
733 X509_STORE_CTX_set0_dane(store_ctx, SSL_get0_dane(ssl)); in ldns_dane_verify_rr()
735 X509_STORE_CTX_set_verify_cb(store_ctx, SSL_get_verify_callback(ssl)); in ldns_dane_verify_rr()
737 ret = X509_verify_cert(store_ctx); in ldns_dane_verify_rr()
739 if (X509_STORE_CTX_get_error(store_ctx) == X509_V_ERR_DANE_NO_MATCH) in ldns_dane_verify_rr()
744 X509_STORE_CTX_cleanup(store_ctx); in ldns_dane_verify_rr()
746 if (store_ctx) in ldns_dane_verify_rr()
747 X509_STORE_CTX_free(store_ctx); in ldns_dane_verify_rr()
850 X509_STORE_CTX *store_ctx = NULL; in ldns_dane_verify() local
935 if (!s && !(store_ctx = X509_STORE_CTX_new())) in ldns_dane_verify()
938 else if (!X509_STORE_CTX_init(store_ctx, pkix_validation_store, cert, extra_certs)) in ldns_dane_verify()
944 X509_STORE_CTX_set_default(store_ctx, in ldns_dane_verify()
946 X509_VERIFY_PARAM_set1(X509_STORE_CTX_get0_param(store_ctx), in ldns_dane_verify()
948 X509_STORE_CTX_set0_dane(store_ctx, SSL_get0_dane(ssl)); in ldns_dane_verify()
950 X509_STORE_CTX_set_verify_cb(store_ctx, SSL_get_verify_callback(ssl)); in ldns_dane_verify()
952 ret = X509_verify_cert(store_ctx); in ldns_dane_verify()
954 if (X509_STORE_CTX_get_error(store_ctx) == X509_V_ERR_DANE_NO_MATCH) in ldns_dane_verify()
959 X509_STORE_CTX_cleanup(store_ctx); in ldns_dane_verify()
961 if (store_ctx) in ldns_dane_verify()
962 X509_STORE_CTX_free(store_ctx); in ldns_dane_verify()