X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcarddav%2Fcarddav.h;h=d4ac957a5cf896e6d4d3f6731be9d85e02b8dcfb;hb=7195b19cb9b6bac69a55acdffabaec237dc67e78;hp=6afc3f8854247a0b9acd0dfc02497b70031b4e29;hpb=e1f4d1b7759935d4b0e876ee3821133abfec8d9e;p=xestiaab%2F.git diff --git a/source/carddav/carddav.h b/source/carddav/carddav.h index 6afc3f8..d4ac957 100644 --- a/source/carddav/carddav.h +++ b/source/carddav/carddav.h @@ -25,6 +25,15 @@ #include #include #include +#if defined(__WIN32__) +#include +#include +#include +#include +#include +#include +#include +#endif #include "../vcard/vcard.h" #include "../actmgr/frmActivityMgr.h" #include "../common/sslcertstructs.h" @@ -107,10 +116,16 @@ class CardDAV wxString ETagValueResult(); wxString GetErrorMessage(); static size_t WritebackFunc(char *ptr, size_t size, size_t nmemb, wxString *stream); -#if defined(__APPLE__) +#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. @@ -120,10 +135,14 @@ 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; - static CURL* ConnectionObject; +#elif defined(__WIN32__) + static PCCERT_CONTEXT CertificateData; #endif static wxString ServerAddress; static int ServerPort;