vpnengine/dmadipsecvpn/src/DmAdRtNodeData.cpp
branchRCL_3
changeset 44 735de8341ce4
parent 0 33413c0669b9
child 49 5960d2d03390
equal deleted inserted replaced
41:e06095241a65 44:735de8341ce4
   597     delete iName;
   597     delete iName;
   598     iName = 0;
   598     iName = 0;
   599     if (aName.Length() > 0)
   599     if (aName.Length() > 0)
   600         {
   600         {
   601         iName = CnvUtfConverter::ConvertToUnicodeFromUtf8L(aName);
   601         iName = CnvUtfConverter::ConvertToUnicodeFromUtf8L(aName);
       
   602 
       
   603         if (iContent == NULL)
       
   604             {
       
   605             //If the content has not been set we also generate an empty
       
   606             //dummy policy at this point. The dummy policy is needed in
       
   607             //a case of a large policy. Large policies are delivered using
       
   608             //two separate messages from the OMA DM server. First message 
       
   609             //contains only the policy info details and the second one contains 
       
   610             //the actual data. We have to have the dummy content to handle
       
   611             //the completion of the first message correctly.
       
   612             _LIT8(KEmptyPolicyContent, "SECURITY_FILE_VERSION: 1\n"\
       
   613                                        "[INFO]\n"\
       
   614                                        "%S\n");
       
   615             iContent = HBufC8::NewL(iName->Length() + KEmptyPolicyContent().Length());
       
   616             TPtr8 contentPtr = iContent->Des();
       
   617             contentPtr.Format(KEmptyPolicyContent, iName);
       
   618             }
   602         }
   619         }
   603     }
   620     }
   604 
   621 
   605 HBufC8* CDmAdPolicyData::NameLC(void)
   622 HBufC8* CDmAdPolicyData::NameLC(void)
   606     {
   623     {