equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
673 * |
673 * |
674 *--------------------------------------------------------------------*/ |
674 *--------------------------------------------------------------------*/ |
675 TInt CTransNegotiation::ProcessXauthRequestL(TDataISAKMP* aAttr, TInt aLth) |
675 TInt CTransNegotiation::ProcessXauthRequestL(TDataISAKMP* aAttr, TInt aLth) |
676 { |
676 { |
677 TInt status = TRANSACTION_CONTINUE; |
677 TInt status = TRANSACTION_CONTINUE; |
678 TUint16 xauth_type = ATTR_XAUTH_GENERIC; |
|
679 TUint32 request_flags = 0; |
678 TUint32 request_flags = 0; |
680 TPtr8 challenge(NULL, 0); |
679 TPtr8 challenge(NULL, 0); |
681 TUint16 attr_type; |
680 TUint16 attr_type; |
682 |
681 |
683 while ( aLth > 0 ) { |
682 while ( aLth > 0 ) { |
819 // User name/Secure ID next pin required |
818 // User name/Secure ID next pin required |
820 // |
819 // |
821 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
820 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
822 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
821 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
823 iDialog->GetAsyncSecureNextPinDialogL(iDialogInfo, (MIkeDialogComplete*)this); |
822 iDialog->GetAsyncSecureNextPinDialogL(iDialogInfo, (MIkeDialogComplete*)this); |
824 break; |
|
825 |
|
826 case ( (1 << (ATTR_CHALLENGE - ATTR_XAUTH_TYPE)) ): |
|
827 // |
|
828 // User Challenge response dialog |
|
829 // |
|
830 if ( xauth_type == ATTR_XAUTH_RADIUS_CHAP ) |
|
831 { |
|
832 iDialog = CIkev1Dialog::NewL(iPluginSession, iPluginSession->DialogAnchor(), iDebug); |
|
833 iDialogInfo = new(ELeave) CAuthDialogInfo(iPluginSession, XAUTH_DIALOG_ID, iNegotiation->SAId(), iCurrExchange->iMessageId); |
|
834 iDialog->GetAsyncRespDialog(challenge, iDialogInfo, (MIkeDialogComplete*)this); |
|
835 } |
|
836 break; |
823 break; |
837 |
824 |
838 default: |
825 default: |
839 break; |
826 break; |
840 |
827 |