Support a trusted SHA1 fingerprint to be configured for each IRC server

This commit is contained in:
Florent Le Coz
2016-01-04 13:47:27 +01:00
parent a38b17692e
commit 1f8333f23f
6 changed files with 47 additions and 2 deletions
@@ -19,6 +19,7 @@ public:
const std::vector<Botan::X509_Certificate>&) override final;
std::vector<Botan::Certificate_Store*> trusted_certificate_authorities(const std::string& type,
const std::string& context) override final;
void set_trusted_fingerprint(const std::string& fingerprint);
private:
const TCPSocketHandler* const socket_handler;
@@ -26,6 +27,7 @@ private:
static void load_certs();
static Botan::Certificate_Store_In_Memory certificate_store;
static bool certs_loaded;
std::string trusted_fingerprint;
};
#endif //BOTAN_FOUND