aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-12-10 05:03:08 +0000
committerlloyd <[email protected]>2014-12-10 05:03:08 +0000
commite4d923cb4efc69b4e058d6f79b7e2139deb1eb02 (patch)
tree935a2680d718325b3dc683cc805569b319f6db1b /src/cmd
parent1bb563dae0ce8c1f3bec56c5fe392bbe6bb23200 (diff)
Don't crash if /usr/share/ca-certificates doesn't exist
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/credentials.h6
1 files changed, 5 insertions, 1 deletions
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,