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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 private: | 234 private: |
235 bool SetKey(int type, const std::string& cs, const uint8_t* key, int len); | 235 bool SetKey(int type, const std::string& cs, const uint8_t* key, int len); |
236 // Returns send stream current packet index from srtp db. | 236 // Returns send stream current packet index from srtp db. |
237 bool GetSendStreamPacketIndex(void* data, int in_len, int64_t* index); | 237 bool GetSendStreamPacketIndex(void* data, int in_len, int64_t* index); |
238 | 238 |
239 static bool Init(); | 239 static bool Init(); |
240 void HandleEvent(const srtp_event_data_t* ev); | 240 void HandleEvent(const srtp_event_data_t* ev); |
241 static void HandleEventThunk(srtp_event_data_t* ev); | 241 static void HandleEventThunk(srtp_event_data_t* ev); |
242 | 242 |
243 static std::list<SrtpSession*>* sessions(); | |
244 | |
245 srtp_ctx_t* session_; | 243 srtp_ctx_t* session_; |
246 int rtp_auth_tag_len_; | 244 int rtp_auth_tag_len_; |
247 int rtcp_auth_tag_len_; | 245 int rtcp_auth_tag_len_; |
248 rtc::scoped_ptr<SrtpStat> srtp_stat_; | 246 rtc::scoped_ptr<SrtpStat> srtp_stat_; |
249 static bool inited_; | 247 static bool inited_; |
250 static rtc::GlobalLockPod lock_; | 248 static rtc::GlobalLockPod lock_; |
251 int last_send_seq_num_; | 249 int last_send_seq_num_; |
252 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpSession); | 250 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpSession); |
253 }; | 251 }; |
254 | 252 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 std::map<FailureKey, FailureStat> failures_; | 318 std::map<FailureKey, FailureStat> failures_; |
321 // Threshold in ms to silent the signaling errors. | 319 // Threshold in ms to silent the signaling errors. |
322 uint32_t signal_silent_time_; | 320 uint32_t signal_silent_time_; |
323 | 321 |
324 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); | 322 RTC_DISALLOW_COPY_AND_ASSIGN(SrtpStat); |
325 }; | 323 }; |
326 | 324 |
327 } // namespace cricket | 325 } // namespace cricket |
328 | 326 |
329 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ | 327 #endif // TALK_SESSION_MEDIA_SRTPFILTER_H_ |
OLD | NEW |