TLSClient: add verify_certificate as member function

Certificate verification is now done in a member function of the
TLSClient, so that the member variables could be accessed.
This commit is contained in:
Alexander Sulfrian 2014-03-18 19:17:07 +01:00 committed by Paul Beckingham
parent 40dd95ddfb
commit fdcc04d13e
2 changed files with 45 additions and 37 deletions

View file

@ -43,6 +43,7 @@ public:
void init (const std::string&, const std::string&, const std::string&);
void connect (const std::string&, const std::string&);
void bye ();
int verify_certificate() const;
void send (const std::string&);
void recv (std::string&);
@ -57,6 +58,7 @@ private:
int _socket;
int _limit;
bool _debug;
bool _trust;
};
#endif