X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcarddav%2Fcarddav.h;h=dbbcc9b064c3c2fc9333b7de9280dd9471c8480f;hb=a73019906500e3a0fc306a61e4b7975f79725866;hp=aff21382f0ac9ef0e66d1c5b08e16c4413fa47c7;hpb=15c33cead65ff0eabb9fd6de6bb9d147f5c6d2ee;p=xestiaab%2F.git diff --git a/source/carddav/carddav.h b/source/carddav/carddav.h index aff2138..dbbcc9b 100644 --- a/source/carddav/carddav.h +++ b/source/carddav/carddav.h @@ -21,6 +21,12 @@ struct ContactListData{ std::map ListData; }; +struct UploadDataStruc{ + wxString *readptr; + long sizeleft; + int seek = 0; +}; + /*struct CertificateData{ std::multimap CertificateData; bool CertValid; @@ -38,6 +44,7 @@ struct CertificateCollection{ size_t WritebackFunc(char *ptr, size_t size, size_t nmemb, wxString *userdata); int ProgressFunc(void *clientdata, double TTDown, double NDown, double TTUp, double NUp); +size_t UploadReadFunc(void *ptr, size_t size, size_t nmemb, void *userdata); class CardDAV { @@ -51,7 +58,9 @@ class CardDAV bool SSLVerify(); bool AbleToLogin(); bool HasValidResponse(); - wxString GetResponseData(); + bool IsSelfSigned(); + wxString GetResponseData(); + void AllowSelfSignTest(bool AllowSelfSignIn); bool Connect(); bool ConnectThread(); void ProcessData(); @@ -117,6 +126,7 @@ class CardDAV static SSLCertCollection SSLCertCol; static wxString ErrorMessage; static wxString ErrorBufferMessage; + static bool AllowSelfSign; protected: static int SSLErrorCode; static int ConnectionErrorCode;