Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include <caf/streaming/keyassociation.h>
20 using namespace StreamAccess;
22 EXPORT_C CIpSecKeyAssociation* CIpSecKeyAssociation::NewL(TInt32 aSpi, HBufC8* aEncryptionKey,
23 HBufC8* aAuthenticationKey)
25 CIpSecKeyAssociation* self = CIpSecKeyAssociation::NewLC(aSpi, aEncryptionKey, aAuthenticationKey);
26 CleanupStack::Pop(self);
30 EXPORT_C CIpSecKeyAssociation* CIpSecKeyAssociation::NewLC(TInt32 aSpi, HBufC8* aEncryptionKey,
31 HBufC8* aAuthenticationKey)
33 CIpSecKeyAssociation* self = new (ELeave) CIpSecKeyAssociation(aSpi, aEncryptionKey, aAuthenticationKey);
34 CleanupStack::PushL(self);
38 CIpSecKeyAssociation::CIpSecKeyAssociation(TInt32 aSpi, HBufC8* aEncryptionKey, HBufC8* aAuthenticationKey) :
39 iSpi(aSpi), iEncryptionKey(aEncryptionKey),
40 iAuthenticationKey(aAuthenticationKey)
45 TInt32 CIpSecKeyAssociation::GetSpiL() const
50 const HBufC8* CIpSecKeyAssociation::GetEncryptionKeyL() const
52 return iEncryptionKey;
55 const HBufC8* CIpSecKeyAssociation::GetAuthenticationKeyL() const
57 return iAuthenticationKey;