Error handling fixes.

This commit is contained in:
Ian Gulliver
2015-02-07 15:56:29 -08:00
parent c93121ddf2
commit 578615a99e
2 changed files with 24 additions and 20 deletions

View File

@@ -21,14 +21,16 @@ class CryptoUtil {
};
class CryptoBase {
public:
protected:
std::ostream& Log(void *obj=nullptr);
std::ostream& LogFatal(void *obj=nullptr);
};
class CryptoPubConnBase : public CryptoBase {
protected:
CryptoPubConnBase(const std::string& secret_key);
virtual ~CryptoPubConnBase();
void LogFatal(const std::string& msg, void *obj=nullptr);
std::unique_ptr<TLVNode> BuildSecureHandshake();
bool HandleSecureHandshake(const TLVNode& node);