X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcarddav%2Fcarddav.h;h=9bdd97398c9ccb19e39128af2ea8f2167491f3a0;hb=66e841c8847db860ad378b330ae5344554f53d35;hp=9ca7993aac752dcde8e205e3ad5cd2dbd609e214;hpb=a446252bba53db6e55a68de4f228850a43a922c6;p=xestiaab%2F.git diff --git a/source/carddav/carddav.h b/source/carddav/carddav.h index 9ca7993..9bdd973 100644 --- a/source/carddav/carddav.h +++ b/source/carddav/carddav.h @@ -25,6 +25,10 @@ #include #include #include +#if defined(__WIN32__) +#include +#include +#endif #include "../vcard/vcard.h" #include "../actmgr/frmActivityMgr.h" #include "../common/sslcertstructs.h" @@ -103,10 +107,22 @@ class CardDAV wxString GetDefaultAddressBookURL(); void GetSSLResults(); SSLCertCollection GetCertificateData(); - static SSLCertCollection BuildSSLCollection(CURL *conn); + static SSLCertCollection BuildSSLCollection(CURL *conn); wxString ETagValueResult(); wxString GetErrorMessage(); - + static size_t WritebackFunc(char *ptr, size_t size, size_t nmemb, wxString *stream); +#if defined(__APPLE__) || defined(__WIN32__) + static CURL* GetConnectionObject(); + static void SetConnectionObject(CURL *ConnectionObject); +#endif + +#if defined(__APPLE__) + SecTrustRef GetTrustObject(); +#elif defined(__WIN32__) + PCCERT_CONTEXT GetCertificateContextPointer(); + CERT_CONTEXT GetCertificateContext(); +#endif + // SSL Verification tests when connecting. static CURLcode SSLVerifyTest(); @@ -114,6 +130,15 @@ class CardDAV //size_t WritebackFunc(char *ptr, size_t size, size_t nmemb, FILE *userdata); private: +#if defined(__APPLE__) || defined(__WIN32__) + static CURL* ConnectionObject; +#endif +#if defined(__APPLE__) + static SSLContext *SSLContextPointer; + static SecTrustRef SecTrustObject; +#elif defined(__WIN32__) + static PCCERT_CONTEXT CertificateData; +#endif static wxString ServerAddress; static int ServerPort; static wxString ServerUser;