vpnengine/ikev2lib/src/ikev2message.cpp
changeset 1 c9c2ad51f972
parent 0 33413c0669b9
equal deleted inserted replaced
0:33413c0669b9 1:c9c2ad51f972
  1020     CIkeV2NotifyPayload* notifyPayload = CIkeV2NotifyPayload::NewL(aProtocolId, aSpi,
  1020     CIkeV2NotifyPayload* notifyPayload = CIkeV2NotifyPayload::NewL(aProtocolId, aSpi,
  1021                                                                    aNotifyType, aNotifyData);
  1021                                                                    aNotifyType, aNotifyData);
  1022     AppendPayloadL(notifyPayload);
  1022     AppendPayloadL(notifyPayload);
  1023     }
  1023     }
  1024 
  1024 
  1025 void CIkeV2Message::PrependCookieNotifyPayloadL(const TDesC8& aCookieData)
  1025 void CIkeV2Message::PrependCookieNotifyPayloadL(TUint8 aProtocolId, const TDesC8& aCookieData)
  1026     {
  1026     {
  1027     _LIT8(KZeroDesc, "");
  1027     _LIT8(KZeroDesc, "");
  1028     CIkeV2NotifyPayload* notifyPayload = CIkeV2NotifyPayload::NewL(0, KZeroDesc,
  1028     CIkeV2NotifyPayload* notifyPayload = CIkeV2NotifyPayload::NewL(aProtocolId, KZeroDesc,
  1029                                                                    COOKIE, aCookieData);
  1029                                                                    COOKIE, aCookieData);
  1030     
  1030     
  1031     delete iIkeV2Datagram;
  1031     delete iIkeV2Datagram;
  1032     iIkeV2Datagram = NULL;    
  1032     iIkeV2Datagram = NULL;    
  1033     iModified = ETrue;
  1033     iModified = ETrue;