From 0cbc8e226b39ec731373b80024e23cc0580c27ac Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 27 Jun 2024 16:05:05 +0200 Subject: Use Auth and TLS configurations via Instance() ...to more easily keep track of changes during refactoring. --- test/utils/test_env.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/utils/test_env.hpp') diff --git a/test/utils/test_env.hpp b/test/utils/test_env.hpp index 0764f9f4..d9c60fb8 100644 --- a/test/utils/test_env.hpp +++ b/test/utils/test_env.hpp @@ -67,22 +67,22 @@ static inline void ReadCompatibilityFromEnv() { auto* client_cert = std::getenv("TLS_CLIENT_CERT"); auto* client_key = std::getenv("TLS_CLIENT_KEY"); if (ca_cert != nullptr) { - if (not Auth::TLS::SetCACertificate(ca_cert)) { + if (not Auth::TLS::Instance().SetCACertificate(ca_cert)) { return false; } } if (client_cert != nullptr) { - if (not Auth::TLS::SetClientCertificate(client_cert)) { + if (not Auth::TLS::Instance().SetClientCertificate(client_cert)) { return false; } } if (client_key != nullptr) { - if (not Auth::TLS::SetClientKey(client_key)) { + if (not Auth::TLS::Instance().SetClientKey(client_key)) { return false; } } - if (Auth::GetAuthMethod() == AuthMethod::kTLS) { - if (not Auth::TLS::Validate()) { + if (Auth::Instance().GetAuthMethod() == AuthMethod::kTLS) { + if (not Auth::TLS::Instance().Validate()) { return false; } } -- cgit v1.2.3