Fix bug that reset SRTP context on every applied answer.

This causes the SRTCP index and SRTP ROC to be reset, which will cause replay
detection errors in decrypting SRTCP packets, and errors in decrypting SRTP
packets if the ROC was nonzero.

Bug: webrtc:8996
Change-Id: I3bf6c136d928f39b19de05616d5cd2833f42223c
Reviewed-on: https://webrtc-review.googlesource.com/71300
Reviewed-by: Zhi Huang <zhihuang@webrtc.org>
Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22965}
2 files changed
tree: 9da53ec8d2b60628490eaf040163407bcb6ceb90
  1. .clang-format
  2. .git-blame-ignore-revs
  3. .gitignore
  4. .gn
  5. .vpython
  6. AUTHORS
  7. BUILD.gn
  8. CODE_OF_CONDUCT.md
  9. DEPS
  10. LICENSE
  11. LICENSE_THIRD_PARTY
  12. OWNERS
  13. PATENTS
  14. PRESUBMIT.py
  15. README.chromium
  16. README.md
  17. WATCHLISTS
  18. api/
  19. audio/
  20. build_overrides/
  21. call/
  22. codereview.settings
  23. common_audio/
  24. common_types.cc
  25. common_types.h
  26. common_video/
  27. data/
  28. examples/
  29. infra/
  30. license_template.txt
  31. logging/
  32. media/
  33. modules/
  34. native-api.md
  35. ortc/
  36. p2p/
  37. pc/
  38. presubmit_test.py
  39. presubmit_test_mocks.py
  40. pylintrc
  41. resources/
  42. rtc_base/
  43. rtc_tools/
  44. sdk/
  45. stats/
  46. style-guide.md
  47. style-guide/
  48. system_wrappers/
  49. test/
  50. tools_webrtc/
  51. typedefs.h
  52. video/
  53. webrtc.gni
  54. whitespace.txt
README.md

WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.

Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.

The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.

Development

See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.

Authoritative list of directories that contain the native API header files.

More info