omadrm/drmengine/roapstorage/src/DRMRIContext.cpp
changeset 84 b09186059647
parent 0 95b198f216e5
equal deleted inserted replaced
82:a117e284a2c6 84:b09186059647
     1 /*
     1 /*
     2 * Copyright (c) 2004 - 2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2004 - 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   748      // for each in rpointerarray
   748      // for each in rpointerarray
   749     for( TInt i = 0; i < count; i++ )
   749     for( TInt i = 0; i < count; i++ )
   750         {
   750         {
   751         // Read the certificate
   751         // Read the certificate
   752         dataPart = HBufC8::NewL( aStream, KMaxCertificateLength );
   752         dataPart = HBufC8::NewL( aStream, KMaxCertificateLength );
   753 
   753         
       
   754         // Put dataPart to cleanup stack
       
   755         CleanupStack::PushL( dataPart );
       
   756         
   754         // assign the certificate
   757         // assign the certificate
   755         iOcspResponse.AppendL( dataPart );
   758         iOcspResponse.AppendL( dataPart );
       
   759         
       
   760         // Pop dataPart from cleanup stack
       
   761         CleanupStack::Pop( dataPart );
   756         }
   762         }
   757 
   763 
   758     // certificate caching indication
   764     // certificate caching indication
   759     aStream >> iDeviceCertCached;
   765     aStream >> iDeviceCertCached;
   760 
   766