]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/AuthVariableLib/AuthService.c
SecurityPkg/AuthVariableLib: fix GCC build error
[mirror_edk2.git] / SecurityPkg / Library / AuthVariableLib / AuthService.c
index 7188ff6008230b9399f1495853f13b47a405a53c..2966811fa7ffe65cdd2a2f82c0a2c463203eb9e8 100644 (file)
@@ -1554,7 +1554,7 @@ CalculatePrivAuthVarSignChainSHA256Digest(
 {\r
   UINT8                   *TbsCert;\r
   UINTN                   TbsCertSize;\r
-  UINT8                   CertCommonName[128];\r
+  CHAR8                   CertCommonName[128];\r
   UINTN                   CertCommonNameSize;\r
   BOOLEAN                 CryptoStatus;\r
   EFI_STATUS              Status;\r
@@ -1590,7 +1590,11 @@ CalculatePrivAuthVarSignChainSHA256Digest(
   //\r
   // '\0' is forced in CertCommonName. No overflow issue\r
   //\r
-  CryptoStatus = Sha256Update (mHashCtx, CertCommonName, AsciiStrLen((CHAR8 *)CertCommonName));\r
+  CryptoStatus = Sha256Update (\r
+                   mHashCtx,\r
+                   CertCommonName,\r
+                   AsciiStrLen (CertCommonName)\r
+                   );\r
   if (!CryptoStatus) {\r
     return EFI_ABORTED;\r
   }\r