Provide an adhoc option to let user pass the cert verif for some IRC servers
This commit is contained in:
@@ -8,10 +8,12 @@
|
||||
#include <botan/botan.h>
|
||||
#include <botan/tls_client.h>
|
||||
|
||||
class TCPSocketHandler;
|
||||
|
||||
class Basic_Credentials_Manager: public Botan::Credentials_Manager
|
||||
{
|
||||
public:
|
||||
Basic_Credentials_Manager();
|
||||
Basic_Credentials_Manager(const TCPSocketHandler* const socket_handler);
|
||||
void verify_certificate_chain(const std::string& type,
|
||||
const std::string& purported_hostname,
|
||||
const std::vector<Botan::X509_Certificate>&) override final;
|
||||
@@ -19,8 +21,11 @@ public:
|
||||
const std::string& context) override final;
|
||||
|
||||
private:
|
||||
void load_certs();
|
||||
Botan::Certificate_Store_In_Memory certificate_store;
|
||||
const TCPSocketHandler* const socket_handler;
|
||||
|
||||
static void load_certs();
|
||||
static Botan::Certificate_Store_In_Memory certificate_store;
|
||||
static bool certs_loaded;
|
||||
};
|
||||
|
||||
#endif //BOTAN_FOUND
|
||||
|
||||
Reference in New Issue
Block a user