SDOCM00107974: Add support for hmac-sha2-256 in netapi ipsecmgr daemon
authorTinku Mannan <tmannan@ti.com>
Thu, 22 May 2014 19:18:05 +0000 (15:18 -0400)
committerTinku Mannan <tmannan@ti.com>
Thu, 22 May 2014 19:18:05 +0000 (15:18 -0400)
ti/runtime/netapi/applications/ipsec_offload/ipsecmgr/src/netapilib_interface.c

index c53fe477cd1bdd53180f65b964015eca1327fe6a..37259234211abd5a805d38865451b01174bfa359 100755 (executable)
@@ -236,6 +236,8 @@ int netapilib_ifAddSA
         saInfo.authMode = NWAL_SA_AALG_HMAC_MD5;
     else if (sa_info->auth.algo == SA_AALG_AES_XCBC)
         saInfo.authMode = NWAL_SA_AALG_AES_XCBC;
+    else if (sa_info->auth.algo == SA_AALG_HMAC_SHA2_256)
+        saInfo.authMode = NWAL_SA_AALG_HMAC_SHA2_256;
     else if (sa_info->auth.algo == SA_AALG_NONE || sa_info->auth.algo == SA_AALG_NULL)  
         saInfo.authMode = NWAL_SA_AALG_NULL;
     else