X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FfrmNewAccount.mm;h=2531ba05265474ad6bcb6a1c19db5fcd3768ed8c;hp=690d1f2bd9b36aae49205d2df47ffd7094dc8fd4;hb=f69e09d827e06435ea94bb73aa71ab5f9d5c035b;hpb=d9da091bdf055f07cc97a1f3661a12b6420ad26b diff --git a/source/frmNewAccount.mm b/source/frmNewAccount.mm index 690d1f2..2531ba0 100644 --- a/source/frmNewAccount.mm +++ b/source/frmNewAccount.mm @@ -20,9 +20,9 @@ #import #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 +}