|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: "Normal" state for outgoing SRTP stream. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef TSRTPSTREAMOUTSTATENORMAL_H |
|
22 #define TSRTPSTREAMOUTSTATENORMAL_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "tsrtpstreamoutstatebase.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MSRTPCryptoHandlerContext; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 class TSRTPStreamOutStateNormal : public TSRTPStreamOutStateBase |
|
32 { |
|
33 public: // Constructors |
|
34 |
|
35 TSRTPStreamOutStateNormal(MSRTPStreamOutContext& aStreamContext, |
|
36 MSRTPCryptoHandlerContextRTP& aCryptoHandlerRTPContext, |
|
37 MSRTPCryptoHandlerContextRTCP& aCryptoHandlerRTCPContext); |
|
38 |
|
39 public: // From TSRTPStreamOutStateBase |
|
40 /** |
|
41 * Protect plain RTP packet in "normal" state. |
|
42 * @param aPacket plain RTP packet |
|
43 * @leave KErrNone if success, system-wide error code otherwise |
|
44 * @return HBufC8* encrypted packet |
|
45 */ |
|
46 HBufC8* DoProtectRtpL(const TDesC8& aPacket); |
|
47 |
|
48 /** |
|
49 * Protect plain RTCP packet in "normal" state. |
|
50 * @param aPacket plain RTCP packet |
|
51 * @leave KErrNone if success, system-wide error code otherwise |
|
52 * @return HBufC8* encrypted packet |
|
53 */ |
|
54 HBufC8* DoProtectRtcpL(const TDesC8& aPacket); |
|
55 |
|
56 private: // Constructors |
|
57 |
|
58 /// Default constructor. Not implemented. |
|
59 TSRTPStreamOutStateNormal(); |
|
60 }; |
|
61 |
|
62 #endif // TSRTPStreamOutStateNormal_H |