summaryrefslogtreecommitdiff
path: root/test/utils/test_env.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/test_env.hpp')
-rw-r--r--test/utils/test_env.hpp10
1 files changed, 5 insertions, 5 deletions
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;
}
}