828 // |
828 // |
829 // User name/Secure ID authentication required |
829 // User name/Secure ID authentication required |
830 // |
830 // |
831 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
831 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
832 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
832 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
833 iDialog->GetAsyncSecureidDialogL(iDialogInfo, (MIkeDialogComplete*)this); |
833 iDialog->GetAsyncSecureidDialogL(iDialogInfo, static_cast<MIkeDialogComplete*>(this)); |
834 break; |
834 break; |
835 |
835 |
836 case ( (1 << (ATTR_USER_NAME - ATTR_XAUTH_TYPE)) | (1 << (ATTR_NEXT_PIN - ATTR_XAUTH_TYPE))): |
836 case ( (1 << (ATTR_USER_NAME - ATTR_XAUTH_TYPE)) | (1 << (ATTR_NEXT_PIN - ATTR_XAUTH_TYPE))): |
837 // |
837 // |
838 // User name/Secure ID next pin required |
838 // User name/Secure ID next pin required |
839 // |
839 // |
840 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
840 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
841 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
841 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
842 iDialog->GetAsyncSecureNextPinDialogL(iDialogInfo, (MIkeDialogComplete*)this); |
842 iDialog->GetAsyncSecureNextPinDialogL(iDialogInfo, static_cast<MIkeDialogComplete*>(this)); |
843 break; |
843 break; |
844 |
844 |
845 case ( (1 << (ATTR_CHALLENGE - ATTR_XAUTH_TYPE)) ): |
845 case ( (1 << (ATTR_CHALLENGE - ATTR_XAUTH_TYPE)) ): |
846 // |
846 // |
847 // User Challenge response dialog |
847 // User Challenge response dialog |
848 // |
848 // |
849 if ( xauth_type == ATTR_XAUTH_RADIUS_CHAP ) |
849 if ( xauth_type == ATTR_XAUTH_RADIUS_CHAP ) |
850 { |
850 { |
851 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
851 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
852 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
852 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
853 iDialog->GetAsyncRespDialog(challenge, iDialogInfo, (MIkeDialogComplete*)this); |
853 iDialog->GetAsyncRespDialog(challenge, iDialogInfo, static_cast<MIkeDialogComplete*>(this)); |
854 } |
854 } |
855 break; |
855 break; |
856 |
856 |
857 default: |
857 default: |
858 break; |
858 break; |
1156 DEBUG_LOG1(_L("CTransNegotiation::DialogCompleteL(), aUserInfo=%x"), aUserInfo); |
1156 DEBUG_LOG1(_L("CTransNegotiation::DialogCompleteL(), aUserInfo=%x"), aUserInfo); |
1157 |
1157 |
1158 if ( info ) |
1158 if ( info ) |
1159 { |
1159 { |
1160 obj_id = info->GetObjId(); |
1160 obj_id = info->GetObjId(); |
|
1161 info->iNegotiation = iNegotiation; |
1161 DEBUG_LOG1(_L("Preparing to call AuthDialogCompletedL(), ObjId = %x"), obj_id); |
1162 DEBUG_LOG1(_L("Preparing to call AuthDialogCompletedL(), ObjId = %x"), obj_id); |
1162 if ( obj_id == XAUTH_DIALOG_ID ) |
1163 if ( obj_id == XAUTH_DIALOG_ID ) |
1163 { |
1164 { |
1164 info->SetUserName( aUsername ); |
1165 info->SetUserName( aUsername ); |
1165 info->SetSecret( aSecret ); |
1166 info->SetSecret( aSecret ); |