/* * SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0 */ /* * Copyright (C) 2025-present ScyllaDB */ #include "http.hh" future> utils::http::dns_connection_factory::system_trust_credentials() { static thread_local shared_ptr system_trust_credentials; if (!system_trust_credentials) { // can race, and overwrite the object. that is fine. auto cred = make_shared(); co_await cred->set_system_trust(); system_trust_credentials = std::move(cred); } co_return system_trust_credentials; }