OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2009 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 // TODO(mattdr): Remove this #define after libsrtp 2.0 is in. | 33 // TODO(mattdr): Remove this #define after libsrtp 2.0 is in. |
34 #define srtp_ctx_t_ srtp_ctx_t | 34 #define srtp_ctx_t_ srtp_ctx_t |
35 | 35 |
36 struct srtp_ctx_t_; | 36 struct srtp_ctx_t_; |
37 | 37 |
38 namespace cricket { | 38 namespace cricket { |
39 | 39 |
40 class SrtpSession; | 40 class SrtpSession; |
41 class SrtpStat; | 41 class SrtpStat; |
42 | 42 |
43 void EnableSrtpDebugging(); | |
44 void ShutdownSrtp(); | 43 void ShutdownSrtp(); |
45 | 44 |
46 // Class to transform SRTP to/from RTP. | 45 // Class to transform SRTP to/from RTP. |
47 // Initialize by calling SetSend with the local security params, then call | 46 // Initialize by calling SetSend with the local security params, then call |
48 // SetRecv once the remote security params are received. At that point | 47 // SetRecv once the remote security params are received. At that point |
49 // Protect/UnprotectRt(c)p can be called to encrypt/decrypt data. | 48 // Protect/UnprotectRt(c)p can be called to encrypt/decrypt data. |
50 // TODO: Figure out concurrency policy for SrtpFilter. | 49 // TODO: Figure out concurrency policy for SrtpFilter. |
51 class SrtpFilter { | 50 class SrtpFilter { |
52 public: | 51 public: |
53 enum Mode { | 52 enum Mode { |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 std::map<FailureKey, FailureStat> failures_; | 303 std::map<FailureKey, FailureStat> failures_; |
305 // Threshold in ms to silent the signaling errors. | 304 // Threshold in ms to silent the signaling errors. |
306 int signal_silent_time_; | 305 int signal_silent_time_; |
307 | 306 |
308 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); | 307 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); |
309 }; | 308 }; |
310 | 309 |
311 } // namespace cricket | 310 } // namespace cricket |
312 | 311 |
313 #endif // WEBRTC_PC_SRTPFILTER_H_ | 312 #endif // WEBRTC_PC_SRTPFILTER_H_ |
OLD | NEW |