omadrm/drmengine/roap/src/RoapSigner.cpp
changeset 49 69d8e75812b7
parent 23 493788a4a8a4
child 72 1481bf457703
equal deleted inserted replaced
48:c68061d56109 49:69d8e75812b7
   183     User::LeaveIfNull( tempMessage );
   183     User::LeaveIfNull( tempMessage );
   184     ptr.Set( tempMessage->Des() );
   184     ptr.Set( tempMessage->Des() );
   185     ptr.Copy( aResponse.Left( startPoint ) );
   185     ptr.Copy( aResponse.Left( startPoint ) );
   186     ptr.Append( aResponse.Right( aResponse.Length() - endPoint ) );
   186     ptr.Append( aResponse.Right( aResponse.Length() - endPoint ) );
   187 
   187 
   188     iResponses.Append( tempMessage );
   188     CleanupStack::PushL( tempMessage );
       
   189     iResponses.AppendL ( tempMessage );
       
   190     CleanupStack::Pop( tempMessage );
   189     iHash->Reset();
   191     iHash->Reset();
   190     for ( i = 0; i < iResponses.Count(); i++ )
   192     for ( i = 0; i < iResponses.Count(); i++ )
   191         {
   193         {
   192         DETAILLOG2( _L( "Message %d:" ), i );
   194         DETAILLOG2( _L( "Message %d:" ), i );
   193         DETAILLOGHEX( iResponses[ i ]->Ptr(), iResponses[ i ]->Length() );
   195         DETAILLOGHEX( iResponses[ i ]->Ptr(), iResponses[ i ]->Length() );
   288     ptr.Append( *s );
   290     ptr.Append( *s );
   289     ptr.Append( aRequest.Right( aRequest.Length() - insertPoint ) );
   291     ptr.Append( aRequest.Right( aRequest.Length() - insertPoint ) );
   290     CleanupStack::PopAndDestroy( s );
   292     CleanupStack::PopAndDestroy( s );
   291     CleanupStack::PopAndDestroy( signature );
   293     CleanupStack::PopAndDestroy( signature );
   292 
   294 
   293     iRequests.Append( r->Des().AllocL() );
   295     CleanupStack::PushL( r );
       
   296     iRequests.AppendL ( r->Des().AllocL() );
       
   297     CleanupStack::Pop( r );
   294     return r;
   298     return r;
   295     }
   299     }
   296 
   300 
   297 //  End of File
   301 //  End of File