cryptoservices/filebasedcertificateandkeystores/source/keystore/Server/CKeyDataManager.cpp
changeset 80 b4bf7a662141
parent 8 35751d3474b7
child 108 ca9a0fc2f082
equal deleted inserted replaced
71:dd83586b62d6 80:b4bf7a662141
     1 /*
     1 /*
     2 * Copyright (c) 2004-2009 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 the License "Eclipse Public License v1.0"
     5 * under the terms of the License "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".
    90 	#endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
    90 	#endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
    91 
    91 
    92 	TInt count = lookupStream.ReadInt32L();
    92 	TInt count = lookupStream.ReadInt32L();
    93 	for (TInt index = 0; index < count; index++)
    93 	for (TInt index = 0; index < count; index++)
    94 		{
    94 		{
    95 		const CFileKeyData* keyData = CFileKeyData::NewL(lookupStream);
    95 		CFileKeyData* keyData = CFileKeyData::NewL(lookupStream);
       
    96 		CleanupStack::PushL(keyData);
    96 
    97 
    97 		if (keyData->Handle() > iKeyIdentifier)
    98 		if (keyData->Handle() > iKeyIdentifier)
    98 			iKeyIdentifier = keyData->Handle();
    99 			iKeyIdentifier = keyData->Handle();
    99 
   100 
   100 		iKeys.Append(keyData);
   101 		iKeys.AppendL(keyData);
       
   102 		CleanupStack::Pop(keyData);
   101 		}
   103 		}
   102 	
   104 	
   103 	CleanupStack::PopAndDestroy(&lookupStream);
   105 	CleanupStack::PopAndDestroy(&lookupStream);
   104 
   106 
   105 #ifndef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
   107 #ifndef SYMBIAN_KEYSTORE_USE_AUTH_SERVER