From e4d923cb4efc69b4e058d6f79b7e2139deb1eb02 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 10 Dec 2014 05:03:08 +0000 Subject: Don't crash if /usr/share/ca-certificates doesn't exist --- src/cmd/credentials.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd/credentials.h b/src/cmd/credentials.h index 6c150f881..6f7d00155 100644 --- a/src/cmd/credentials.h +++ b/src/cmd/credentials.h @@ -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, -- cgit v1.2.3