Skip to content

Commit

Permalink
Add GR to EL mapping for TSL (#660)
Browse files Browse the repository at this point in the history
IB-8383

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Feb 13, 2025
1 parent fe64c91 commit 71cdfb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/crypto/TSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/TSL.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TSL: private XMLDocument
std::vector<Pointer> pointers() const;
std::vector<Service> services() const;

static bool activate(const std::string &territory);
static bool activate(std::string territory);
static std::vector<Service> parse();

private:
Expand Down

0 comments on commit 71cdfb7

Please sign in to comment.