| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2009 Google Inc. | 3 * Copyright 2009 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "webrtc/base/sigslotrepeater.h" | 41 #include "webrtc/base/sigslotrepeater.h" |
| 42 #include "webrtc/base/sslstreamadapter.h" | 42 #include "webrtc/base/sslstreamadapter.h" |
| 43 | 43 |
| 44 // Forward declaration to avoid pulling in libsrtp headers here | 44 // Forward declaration to avoid pulling in libsrtp headers here |
| 45 struct srtp_event_data_t; | 45 struct srtp_event_data_t; |
| 46 struct srtp_ctx_t; | 46 struct srtp_ctx_t; |
| 47 struct srtp_policy_t; | 47 struct srtp_policy_t; |
| 48 | 48 |
| 49 namespace cricket { | 49 namespace cricket { |
| 50 | 50 |
| 51 // Key is 128 bits and salt is 112 bits == 30 bytes. B64 bloat => 40 bytes. | |
| 52 extern const int SRTP_MASTER_KEY_BASE64_LEN; | |
| 53 | |
| 54 // Needed for DTLS-SRTP | |
| 55 extern const int SRTP_MASTER_KEY_KEY_LEN; | |
| 56 extern const int SRTP_MASTER_KEY_SALT_LEN; | |
| 57 | |
| 58 class SrtpSession; | 51 class SrtpSession; |
| 59 class SrtpStat; | 52 class SrtpStat; |
| 60 | 53 |
| 61 void EnableSrtpDebugging(); | 54 void EnableSrtpDebugging(); |
| 62 void ShutdownSrtp(); | 55 void ShutdownSrtp(); |
| 63 | 56 |
| 64 // Class to transform SRTP to/from RTP. | 57 // Class to transform SRTP to/from RTP. |
| 65 // Initialize by calling SetSend with the local security params, then call | 58 // Initialize by calling SetSend with the local security params, then call |
| 66 // SetRecv once the remote security params are received. At that point | 59 // SetRecv once the remote security params are received. At that point |
| 67 // Protect/UnprotectRt(c)p can be called to encrypt/decrypt data. | 60 // Protect/UnprotectRt(c)p can be called to encrypt/decrypt data. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 std::map<FailureKey, FailureStat> failures_; | 314 std::map<FailureKey, FailureStat> failures_; |
| 322 // Threshold in ms to silent the signaling errors. | 315 // Threshold in ms to silent the signaling errors. |
| 323 uint32_t signal_silent_time_; | 316 uint32_t signal_silent_time_; |
| 324 | 317 |
| 325 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); | 318 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); |
| 326 }; | 319 }; |
| 327 | 320 |
| 328 } // namespace cricket | 321 } // namespace cricket |
| 329 | 322 |
| 330 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ | 323 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ |
| OLD | NEW |