sl@0: /* sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include "fsdatatypes.h" sl@0: sl@0: EXPORT_C CKeyInfo* CKeyInfo::NewL(RReadStream& aStream) sl@0: { sl@0: CKeyInfo* me = new (ELeave) CKeyInfo(); sl@0: me->CleanupPushL(); sl@0: me->ConstructL(aStream); sl@0: CleanupStack::Pop(me); sl@0: return me; sl@0: } sl@0: sl@0: EXPORT_C void CKeyInfo::SetUsePolicy(const TSecurityPolicy& aPolicy) sl@0: { sl@0: iUsePolicy = aPolicy; sl@0: } sl@0: sl@0: EXPORT_C void CKeyInfo::SetManagementPolicy(const TSecurityPolicy& aPolicy) sl@0: { sl@0: iManagementPolicy = aPolicy; sl@0: } sl@0: sl@0: EXPORT_C void CKeyInfo::SetPKCS8AttributeSet(HBufC8* aPKCS8AttributeSet) sl@0: { sl@0: delete iPKCS8AttributeSet; sl@0: iPKCS8AttributeSet = aPKCS8AttributeSet; sl@0: }