summaryrefslogtreecommitdiff
path: root/test/utils/test_env.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-27 16:05:05 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-04 16:05:08 +0200
commit0cbc8e226b39ec731373b80024e23cc0580c27ac (patch)
treefa6737a19491b8e062704f728243689429d4069c /test/utils/test_env.hpp
parent74f53b444853850144c3e63593f83c424e84a768 (diff)
downloadjustbuild-0cbc8e226b39ec731373b80024e23cc0580c27ac.tar.gz
Use Auth and TLS configurations via Instance()
...to more easily keep track of changes during refactoring.
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;
}
}