Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Implemented macOS (OSX) support for ConnectionObject/CardDAV2 and updated files neede...
[xestiaab/.git] / source / frmNewAccount.mm
index 690d1f2..2531ba0 100644 (file)
@@ -20,9 +20,9 @@
 #import <SecurityInterface/SFCertificateTrustPanel.h>
 
 #include "frmNewAccount.h"
-#include "carddav/carddav.h"
+#include "connobject/ConnectionObject.h"
 
-int frmNewAccount::DisplayTrustPanel(CardDAV *Connection){
+int frmNewAccount::DisplayTrustPanel(ConnectionObject *Connection){
        
        NSInteger ResultValue;
        
@@ -35,18 +35,18 @@ int frmNewAccount::DisplayTrustPanel(CardDAV *Connection){
        
        [secpanel setParentWindow:(NSWindow*)this->GetHandle()];
        
-       ResultValue = [secpanel runModalForTrust:Connection->GetTrustObject() message:@"Certificate not trusted"];
+       ResultValue = [secpanel runModalForTrust:Connection->BuildSSLCollection() message:@"Certificate not trusted"];
        
        return (int)ResultValue;
        
 }
 
-SecTrustResultType frmNewAccount::ProcessResultType(CardDAV *Connection){
+SecTrustResultType frmNewAccount::ProcessResultType(ConnectionObject *Connection){
 
        SecTrustResultType EvalResult;
        
-       SecTrustEvaluate(Connection->GetTrustObject(), &EvalResult);
+       SecTrustEvaluate(Connection->BuildSSLCollection(), &EvalResult);
        
        return EvalResult;
        
-}
\ No newline at end of file
+}
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy