cryptoservices/filebasedcertificateandkeystores/source/keystore/Server/CKeyDataManager.cpp
equal
deleted
inserted
replaced
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". |
75 iTimeoutStreamId = (TStreamId) lookupStream.ReadUint32L(); |
75 iTimeoutStreamId = (TStreamId) lookupStream.ReadUint32L(); |
76 |
76 |
77 TInt count = lookupStream.ReadInt32L(); |
77 TInt count = lookupStream.ReadInt32L(); |
78 for (TInt index = 0; index < count; index++) |
78 for (TInt index = 0; index < count; index++) |
79 { |
79 { |
80 const CFileKeyData* keyData = CFileKeyData::NewL(lookupStream); |
80 CFileKeyData* keyData = CFileKeyData::NewL(lookupStream); |
|
81 CleanupStack::PushL(keyData); |
81 |
82 |
82 if (keyData->Handle() > iKeyIdentifier) |
83 if (keyData->Handle() > iKeyIdentifier) |
83 iKeyIdentifier = keyData->Handle(); |
84 iKeyIdentifier = keyData->Handle(); |
84 |
85 |
85 iKeys.Append(keyData); |
86 iKeys.AppendL(keyData); |
|
87 CleanupStack::Pop(keyData); |
86 } |
88 } |
87 |
89 |
88 CleanupStack::PopAndDestroy(&lookupStream); |
90 CleanupStack::PopAndDestroy(&lookupStream); |
89 ReadPassphraseTimeoutL(); |
91 ReadPassphraseTimeoutL(); |
90 } |
92 } |