Skip to content

Commit

Permalink
Don't crash if /usr/share/ca-certificates doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Dec 10, 2014
1 parent 1bb563d commit e4d923c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cmd/credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ class Credentials_Manager_Simple : public Botan::Credentials_Manager
Credentials_Manager_Simple(Botan::RandomNumberGenerator& rng) :
rng(rng)
{
m_certstores.push_back(new Botan::Certificate_Store_In_Memory("/usr/share/ca-certificates"));
try
{
m_certstores.push_back(new Botan::Certificate_Store_In_Memory("/usr/share/ca-certificates"));
}
catch(...) {}
}

std::string srp_identifier(const std::string& type,
Expand Down

0 comments on commit e4d923c

Please sign in to comment.