mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
40dd95ddfb
commit
fdcc04d13e
2 changed files with 45 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue