Need to set replayWindow and macSize to 0 when authentication algorithm is NULL for... DEV.NETAPI.01.00.00.04.PATCH.1
authorTinku Mannan <tmannan@ti.com>
Tue, 16 Oct 2012 20:38:03 +0000 (16:38 -0400)
committerTinku Mannan <tmannan@ti.com>
Tue, 16 Oct 2012 20:38:03 +0000 (16:38 -0400)
ti/runtime/netapi/src/netapi_sec.c

index 6af56e562ac3d0660303e29130c0c58eb64745cc..9b7ba92f7bcc9c25efb6d4d722d4432c4ea03cb9 100755 (executable)
@@ -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)