equal
deleted
inserted
replaced
|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <caf/streaming/protectedstreamdesc.h> |
|
17 #include "ipseckeystreamsink.h" |
|
18 |
|
19 using namespace StreamAccess; |
|
20 |
|
21 |
|
22 EXPORT_C CIpSecProtectedStreamDesc* CIpSecProtectedStreamDesc::NewLC(const TInetAddr& aSourceAddr, const TInetAddr& aTargetAddr) |
|
23 { |
|
24 CIpSecProtectedStreamDesc* self = new (ELeave) CIpSecProtectedStreamDesc(aSourceAddr, aTargetAddr); |
|
25 CleanupStack::PushL(self); |
|
26 return self; |
|
27 } |
|
28 |
|
29 EXPORT_C CKeyStreamSink* CIpSecProtectedStreamDesc::CreateKeyStreamSinkLC() const |
|
30 { |
|
31 CIpSecKeyStreamSink* keyStreamSink = CIpSecKeyStreamSink::NewLC(iSourceAddr, iTargetAddr); |
|
32 return keyStreamSink; |
|
33 } |
|
34 |
|
35 CIpSecProtectedStreamDesc::CIpSecProtectedStreamDesc(const TInetAddr& aSourceAddr, const TInetAddr& aTargetAddr) : |
|
36 iSourceAddr(aSourceAddr), |
|
37 iTargetAddr(aTargetAddr) |
|
38 { |
|
39 } |
|
40 |
|
41 CIpSecProtectedStreamDesc::~CIpSecProtectedStreamDesc() |
|
42 { |
|
43 } |