#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;
[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
+}