os/security/contentmgmt/cafstreamingsupport/source/ipsec/ipsecprotectedstreamdesc.cpp
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/protectedstreamdesc.h>
17 #include "ipseckeystreamsink.h"
19 using namespace StreamAccess;
22 EXPORT_C CIpSecProtectedStreamDesc* CIpSecProtectedStreamDesc::NewLC(const TInetAddr& aSourceAddr, const TInetAddr& aTargetAddr)
24 CIpSecProtectedStreamDesc* self = new (ELeave) CIpSecProtectedStreamDesc(aSourceAddr, aTargetAddr);
25 CleanupStack::PushL(self);
29 EXPORT_C CKeyStreamSink* CIpSecProtectedStreamDesc::CreateKeyStreamSinkLC() const
31 CIpSecKeyStreamSink* keyStreamSink = CIpSecKeyStreamSink::NewLC(iSourceAddr, iTargetAddr);
35 CIpSecProtectedStreamDesc::CIpSecProtectedStreamDesc(const TInetAddr& aSourceAddr, const TInetAddr& aTargetAddr) :
36 iSourceAddr(aSourceAddr),
37 iTargetAddr(aTargetAddr)
41 CIpSecProtectedStreamDesc::~CIpSecProtectedStreamDesc()