Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / app / signature_validator_win.cc
index ab93a4f..e64446d 100644 (file)
@@ -6,7 +6,6 @@
 
 #include <atlstr.h>
 #include <softpub.h>
-#include <wincrypt.h>
 #include <windows.h>
 #include <wintrust.h>
 
@@ -19,6 +18,7 @@
 #include "base/time/time.h"
 #include "base/win/scoped_handle.h"
 #include "crypto/sha2.h"
+#include "crypto/wincrypt_shim.h"
 
 namespace {
 
@@ -39,7 +39,8 @@ bool ExtractPublicKeyHash(const CERT_CONTEXT* cert_context,
       crypt_blob.pbData), crypt_blob.cbData);
   crypto::SHA256HashString(key_bytes, hash, crypto::kSHA256Length);
 
-  *public_key_hash = StringToLowerASCII(base::HexEncode(hash, arraysize(hash)));
+  *public_key_hash =
+      base::StringToLowerASCII(base::HexEncode(hash, arraysize(hash)));
   return true;
 }