OSDN Git Service

Change reserveSecurityParameterIndex() to take a remoteAddress
authorNathan Harold <nharold@google.com>
Wed, 29 Mar 2017 17:47:59 +0000 (10:47 -0700)
committerNathan Harold <nharold@google.com>
Wed, 5 Apr 2017 17:24:03 +0000 (10:24 -0700)
commiteece454de1178260b97e3d5dd99c83003139eb5f
treea14628262195736d63a7ad89748f4bd92d0715bc
parentcbb58ecc866f90b2fe829b808a65652376006c24
Change reserveSecurityParameterIndex() to take a remoteAddress

To make the SPI reservation more semantically consistent with the
transform creation API, and to ensure that we always create SPI
reservations relative to a well-known remote, we should take the
SPI request relative to a remote (rather than to a destination).
This necessitates that we now consider direction separately, which
is used for keying the SA-Id.

Bug: 36073210
Test: compilation
Change-Id: I81e955c20128c1f8e04fd68eb26669561f827a78
(cherry picked from commit c4f879925b58b1b5ca9a3cfdc898c20cbf56355a)
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/net/IpSecManager.java
core/java/android/net/IpSecTransform.java