xmlsecurityengine/xmlsecwrapper/src/xmlsecwsign.cpp
branchRCL_3
changeset 12 d10d750052f0
parent 0 e35f40988205
child 20 889504eac4fb
equal deleted inserted replaced
11:361f875fa818 12:d10d750052f0
   212  
   212  
   213 // ---------------------------------------------------------------------------
   213 // ---------------------------------------------------------------------------
   214 // Reset template settings
   214 // Reset template settings
   215 // ---------------------------------------------------------------------------
   215 // ---------------------------------------------------------------------------
   216 //   
   216 //   
   217 void TemplateCleanup(TAny* aPref)
   217 void TemplateCleanupL(TAny* aPref)
   218     {
   218     {
       
   219    
   219     if(aPref)
   220     if(aPref)
   220         {
   221         {
   221         delete aPref;
   222         CleanupStack::PushL(aPref);
       
   223         CleanupStack::PopAndDestroy(aPref);
   222         xmlSetPrefix(NULL);
   224         xmlSetPrefix(NULL);
   223         }
   225         }
   224     xmlSetNewLineFlag(1);
   226     xmlSetNewLineFlag(1);
   225     }
   227     }
   226     
   228     
   623     if(aPref.Length())
   625     if(aPref.Length())
   624         {
   626         {
   625         pref = (unsigned char*) XmlEngXmlCharFromDes8L(aPref);
   627         pref = (unsigned char*) XmlEngXmlCharFromDes8L(aPref);
   626         xmlSetPrefix(pref);
   628         xmlSetPrefix(pref);
   627         }
   629         }
   628     CleanupStack::PushL(TCleanupItem(Sign::TemplateCleanup,(TAny*)pref));
   630     CleanupStack::PushL(TCleanupItem(Sign::TemplateCleanupL,(TAny*)pref));
   629         
   631         
   630     xmlNodePtr signNode = NULL;
   632     xmlNodePtr signNode = NULL;
   631     xmlNodePtr refNode = NULL;
   633     xmlNodePtr refNode = NULL;
   632     xmlNodePtr keyInfoNode = NULL;
   634     xmlNodePtr keyInfoNode = NULL;
   633     
   635