// ConnectionObject.h - ConnectionObject interface header file.
//
-// (c) 2012-2015 Xestia Software Development.
+// (c) 2012-2016 Xestia Software Development.
//
// This file is part of Xestia Address Book.
//
#include <iostream>
#include "../common/sslcertstructs.h"
+#if defined (__APPLE__)
+#import <Foundation/Foundation.h>
+#import <SecurityInterface/SFCertificateTrustPanel.h>
+#endif
+
#if defined (__WIN32__)
#include <Windows.h>
#include <basetsd.h>
class ConnectionObject{
public:
- //ConnectionObject(std::string ServerAddress, int ServerPort, std::string ServerUser, std::string ServerPass, bool ServerSSL);
- //ConnectionObject(std::string ServerAddress, int ServerPort, std::string ServerUser, std::string ServerPass, bool ServerSSL, std::string ServerPrefix, std::string ServerAccount);
// Virtual functions to be setup by the inheriting classes.
// OS specific functions.
#if defined(__APPLE__)
+
+ virtual SecTrustRef BuildSSLCollection() { return nullptr; };
+
#elif defined(__WIN32__)
virtual PCCERT_CONTEXT BuildSSLCollection() { return nullptr; };
};
-#endif
\ No newline at end of file
+#endif