From d6255c733c1b152c6ef2201c0bf361b7ea99964a Mon Sep 17 00:00:00 2001 From: Tinku Mannan Date: Tue, 16 Oct 2012 16:38:03 -0400 Subject: [PATCH 1/1] Need to set replayWindow and macSize to 0 when authentication algorithm is NULL for INFLOW mode of operation --- ti/runtime/netapi/src/netapi_sec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ti/runtime/netapi/src/netapi_sec.c b/ti/runtime/netapi/src/netapi_sec.c index 6af56e5..9b7ba92 100755 --- a/ti/runtime/netapi/src/netapi_sec.c +++ b/ti/runtime/netapi/src/netapi_sec.c @@ -129,6 +129,11 @@ nwalCreateSAParams_t createParam = createParam.saIpSecParam.cipherMode = sa_info->cipherMode; createParam.saIpSecParam.esnLo = sa_info->esnLo; createParam.saIpSecParam.esnHi = sa_info->esnHi; + if (sa_info->authMode == NWAL_SA_AALG_NULL) + { + createParam.saIpSecParam.replayWindow = 0; + createParam.saIpSecParam.macSize = 0; + } memcpy(&createParam.keyParam,key_params,sizeof(nwalSecKeyParams_t)); if (route != NULL) -- 2.39.2