connData.port = wxAtoi(txtServerPort->GetValue());
connData.username = txtUsername->GetValue().ToStdString();
connData.password = txtPassword->GetValue().ToStdString();
- connData.useSSL = chkUseSSL->GetValue() ? true : false);
+ connData.useSSL = chkUseSSL->GetValue() ? true : false;
CalDAV testConnection;
testConnection.SetupConnectionData(&connData);
// Test the connection.
- testConnection.SetupConnectionObject();
- CalDAVServerResult testConnectionResult = testConnection.Connect(false);
+ //testConnection.SetupConnectionObject();
+ CalDAVServerResult testConnectionResult = testConnection.Connect();
// If server is using SSL, verify that the SSL connection is valid.
testConnection.BypassSSLVerification(true);
- CalDAVServerResult testConnectionResult = testConnection.Connect(false);
+ CalDAVServerResult testConnectionResult = testConnection.Connect();
testConnection.BypassSSLVerification(false);
SSLCertCollectionString certData = testConnection.BuildSSLCollection();
frmInvalidSSLCertificate *frmICPtr = new frmInvalidSSLCertificate(this);
- frmICPtr->LoadDataNew(CertData, txtServerAddress->GetValue().ToStdString());
+ frmICPtr->LoadDataNew(certData, txtServerAddress->GetValue().ToStdString());
frmICPtr->ShowModal();
int sslResult = frmICPtr->GetResult();
usingSSLBypass = true;
testConnection.BypassSSLVerification(true);
- CalDAVServerResult testConnectionResult = testConnection.Connect(true);
+ CalDAVServerResult testConnectionResult = testConnection.Connect();
testConnection.BypassSSLVerification(false);
// TODO: Integrate into the code.
//lblConnectionResultText->SetLabel(_("An error occured whilst connnecting: ") + CardDAVConn.GetErrorMessage() + wxString::Format(wxT(" (%i)\n%s"), sslcode, CardDAVConn.GetErrorBuffer().mb_str()));
-
+
}
#endif
}
- testConnectionResult = testConnection.Connect(true);
+ testConnectionResult = testConnection.Connect();
// Get the server prefix if the connection was successful.
- if (testConnectionResult == COCONNECT_OK){
+ if (testConnectionResult.result == CALDAVQUERYRESULT_OK){
if (usingSSLBypass == true){
testConnection.BypassSSLVerification(true);
}
- testConnectionResult == COCONNECT_OK ? resultData->Connected = true : resultData->Connected = false;
+ testConnectionResult.result == CALDAVQUERYRESULT_OK ? resultData->Connected = true : resultData->Connected = false;
- resultData->SSLStatus = TestConnection.CanDoSSL();
- resultData->SSLVerified = TestConnection.SSLVerify();
- resultData->ValidResponse = TestConnection.HasValidResponse();
- resultData->AuthPassed = TestConnection.AbleToLogin();
- resultData->CanProcess = TestConnection.CanDoProcessing();
- resultData->ErrorMessage = TestConnection.GetErrorMessage();
+ resultData->SSLStatus = testConnection.CanDoSSL();
+ resultData->SSLVerified = testConnection.SSLVerify();
+ resultData->ValidResponse = testConnection.HasValidResponse();
+ resultData->AuthPassed = testConnection.AbleToLogin();
+ resultData->CanProcess = testConnection.CanDoProcessing();
+ resultData->ErrorMessage = testConnection.GetErrorMessage();
// Post event back confirming the tests.