Merge "Add support for auth-only transforms"
This commit is contained in:
@@ -1491,6 +1491,13 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
IpSecAlgorithm crypt = c.getEncryption();
|
||||
IpSecAlgorithm authCrypt = c.getAuthenticatedEncryption();
|
||||
|
||||
String cryptName;
|
||||
if (crypt == null) {
|
||||
cryptName = (authCrypt == null) ? IpSecAlgorithm.CRYPT_NULL : "";
|
||||
} else {
|
||||
cryptName = crypt.getName();
|
||||
}
|
||||
|
||||
mSrvConfig
|
||||
.getNetdInstance()
|
||||
.ipSecAddSecurityAssociation(
|
||||
@@ -1505,7 +1512,7 @@ public class IpSecService extends IIpSecService.Stub {
|
||||
(auth != null) ? auth.getName() : "",
|
||||
(auth != null) ? auth.getKey() : new byte[] {},
|
||||
(auth != null) ? auth.getTruncationLengthBits() : 0,
|
||||
(crypt != null) ? crypt.getName() : "",
|
||||
cryptName,
|
||||
(crypt != null) ? crypt.getKey() : new byte[] {},
|
||||
(crypt != null) ? crypt.getTruncationLengthBits() : 0,
|
||||
(authCrypt != null) ? authCrypt.getName() : "",
|
||||
|
||||
Reference in New Issue
Block a user