Rename createSecurityAssociation() to updateSecurityAssociation()
Bug: 71803344
Test: runtest -x server/netd_unit_test.cpp
Change-Id: Ia4d2704f30d335bd601ef9fbc28236f366d88106
diff --git a/server/XfrmController.cpp b/server/XfrmController.cpp
index 24ccee4..de5eadb 100644
--- a/server/XfrmController.cpp
+++ b/server/XfrmController.cpp
@@ -498,9 +498,9 @@
return netdutils::statusFromErrno(EINVAL, "Invalid encap type");
}
- ret = createSecurityAssociation(saInfo, sock);
+ ret = updateSecurityAssociation(saInfo, sock);
if (!isOk(ret)) {
- ALOGD("Failed creating a Security Association, line=%d", __LINE__);
+ ALOGD("Failed updating a Security Association, line=%d", __LINE__);
}
return ret;
@@ -664,7 +664,7 @@
selector->ifindex = record.netId; // TODO : still need to sort this out
}
-netdutils::Status XfrmController::createSecurityAssociation(const XfrmSaInfo& record,
+netdutils::Status XfrmController::updateSecurityAssociation(const XfrmSaInfo& record,
const XfrmSocket& sock) {
xfrm_usersa_info usersa{};
nlattr_algo_crypt crypt{};
diff --git a/server/XfrmController.h b/server/XfrmController.h
index 70d9fb8..0975db8 100644
--- a/server/XfrmController.h
+++ b/server/XfrmController.h
@@ -256,8 +256,8 @@
static int fillNlAttrXfrmAlgoAead(const XfrmAlgo& in_algo, nlattr_algo_aead* algo);
static int fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl);
- // Functions for Creating a Transport Mode SA
- static netdutils::Status createSecurityAssociation(const XfrmSaInfo& record,
+ // Functions for updating a Transport Mode SA
+ static netdutils::Status updateSecurityAssociation(const XfrmSaInfo& record,
const XfrmSocket& sock);
static int fillUserSaInfo(const XfrmSaInfo& record, xfrm_usersa_info* usersa);