vpnengine/ikev1lib/src/ikev1negotiation.cpp
branchRCL_3
changeset 38 9f4e37332ce5
parent 23 d1a0d37b52a1
child 40 473321461bba
equal deleted inserted replaced
32:352850cbed81 38:9f4e37332ce5
  8407     InitNegotiationL();
  8407     InitNegotiationL();
  8408     
  8408     
  8409     return KErrNone;
  8409     return KErrNone;
  8410 
  8410 
  8411 }
  8411 }
       
  8412 
  8412 //
  8413 //
  8413 // The implementation for class MIkeDialogComplete virtual function
  8414 // The implementation for class MIkeDialogComplete virtual function
  8414 //
  8415 //
  8415 TInt CIkev1Negotiation::DialogCompleteL(CIkev1Dialog* /*aDialog*/, TAny* aUserInfo,
  8416 TInt CIkev1Negotiation::DialogCompleteL(
  8416                                             HBufC8* aUsername, HBufC8* aSecret, HBufC8* aDomain)
  8417     TAny* aUserInfo, HBufC8* aUsername, HBufC8* aSecret)
  8417 {
  8418 {
  8418 /*---------------------------------------------------------------------------
  8419 /*---------------------------------------------------------------------------
  8419  *  
  8420  *  
  8420  *  A response received from client user (through asynchronous dialog)
  8421  *  A response received from client user (through asynchronous dialog)
  8421  *  This method is introduced as a TUserCallback for CGetIKEPassword dialog
  8422  *  This method is introduced as a TUserCallback for CGetIKEPassword dialog
  8422  *  object is created. When the dialog is completed this callback function
  8423  *  object is created. When the dialog is completed this callback function
  8423  *  is called 
  8424  *  is called 
  8424  *  
  8425  *  
  8425  *-------------------------------------------------------------------------*/
  8426  *-------------------------------------------------------------------------*/
  8426     TUint32 obj_id = 1;
  8427     TUint32 obj_id = 1;
  8427      CAuthDialogInfo* info = (CAuthDialogInfo*)aUserInfo;
  8428     CAuthDialogInfo* info = (CAuthDialogInfo*)aUserInfo;
  8428      DEBUG_LOG1(_L("CIkev1Negotiation::DialogCompleteL(), aUserInfo =  %x"), aUserInfo);
  8429     DEBUG_LOG1(_L("CIkev1Negotiation::DialogCompleteL(), aUserInfo =  %x"), aUserInfo);
  8429              
  8430              
  8430      if ( info )
  8431     if ( info )
  8431      {
  8432     {
  8432         obj_id = info->GetObjId();
  8433         obj_id = info->GetObjId();
  8433         DEBUG_LOG1(_L("Preparing to call AuthDialogCompletedL(), ObjId = %x"), obj_id);
  8434         DEBUG_LOG1(_L("Preparing to call AuthDialogCompletedL(), ObjId = %x"), obj_id);
  8434         if ( obj_id == DIALOG_INFO_ID )
  8435         if ( obj_id == DIALOG_INFO_ID )
  8435         {
  8436         {
  8436            info->iUsername = aUsername;
  8437             info->SetUserName(aUsername);
  8437            info->iSecret   = aSecret;
  8438             info->SetSecret(aSecret);
  8438            info->iDomain   = aDomain;
  8439             obj_id = info->PluginSession()->AuthDialogCompletedL(info);
  8439            obj_id = info->PluginSession()->AuthDialogCompletedL(info);
       
  8440         }   
  8440         }   
  8441      }
  8441     }
  8442 
  8442 
  8443      return obj_id;
  8443     return obj_id;
  8444     
  8444 }
  8445 }
       
  8446 
       
  8447