From 71cdfb7895a14a4c9f440289a1429463e8acb458 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Thu, 13 Feb 2025 16:23:50 +0200 Subject: [PATCH] Add GR to EL mapping for TSL (#660) IB-8383 Signed-off-by: Raul Metsma --- src/crypto/TSL.cpp | 4 +++- src/crypto/TSL.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/crypto/TSL.cpp b/src/crypto/TSL.cpp index 61f371fb6..0149233b5 100644 --- a/src/crypto/TSL.cpp +++ b/src/crypto/TSL.cpp @@ -104,10 +104,12 @@ TSL::TSL(string file) WARN("Failed to parse configuration: %s", path.c_str()); } -bool TSL::activate(const string &territory) +bool TSL::activate(string territory) { if(territory.size() != 2) return false; + if(territory == "GR") + territory = "EL"; // Greece is EL in EU TL string cache = CONF(TSLCache); string path = cache + '/' + territory + ".xml"; if(File::fileExists(path)) diff --git a/src/crypto/TSL.h b/src/crypto/TSL.h index 629c584f8..22b030445 100644 --- a/src/crypto/TSL.h +++ b/src/crypto/TSL.h @@ -55,7 +55,7 @@ class TSL: private XMLDocument std::vector pointers() const; std::vector services() const; - static bool activate(const std::string &territory); + static bool activate(std::string territory); static std::vector parse(); private: