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". |
635 { |
635 { |
636 iKeyData = HBufC8::NewMaxL(fileSize); |
636 iKeyData = HBufC8::NewMaxL(fileSize); |
637 TPtr8 data(iKeyData->Des()); |
637 TPtr8 data(iKeyData->Des()); |
638 data.FillZ(); |
638 data.FillZ(); |
639 User::LeaveIfError(file.Read(data, fileSize)); |
639 User::LeaveIfError(file.Read(data, fileSize)); |
640 CleanupStack::Pop(1); |
640 } |
641 } |
641 CleanupStack::Pop(1); |
642 |
|
643 file.Close(); |
642 file.Close(); |
644 } |
643 } |
645 |
644 |
646 TBool CImportKey::SetKeyAccessType(const TDesC8& aKeyAccessType) |
645 TBool CImportKey::SetKeyAccessType(const TDesC8& aKeyAccessType) |
647 { |
646 { |