Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
25:8507bf644fdf
Parent:
19:2e0811512ceb
--- a/hmac.c	Thu Apr 06 14:12:06 2017 -0700
+++ b/hmac.c	Fri Apr 21 14:51:10 2017 -0700
@@ -218,7 +218,7 @@
 
         /* perform outer SHA */
         /* init context for 2nd pass */
-        USHAReset(&ctx->shaContext, ctx->whichSha) ||
+        USHAReset(&ctx->shaContext, (SHAversion)ctx->whichSha) ||
 
         /* start with outer pad */
         USHAInput(&ctx->shaContext, ctx->k_opad, ctx->blockSize) ||