Index: base/sha1_win.cc |
=================================================================== |
--- base/sha1_win.cc (revision 106858) |
+++ base/sha1_win.cc (working copy) |
@@ -18,20 +18,20 @@ |
ScopedHCRYPTPROV provider; |
if (!CryptAcquireContext(provider.receive(), NULL, NULL, PROV_RSA_FULL, |
CRYPT_VERIFYCONTEXT)) { |
- LOG(ERROR) << "CryptAcquireContext failed: " << GetLastError(); |
+ DLOG(ERROR) << "CryptAcquireContext failed: " << GetLastError(); |
return std::string(kSHA1Length, '\0'); |
} |
{ |
ScopedHCRYPTHASH hash; |
if (!CryptCreateHash(provider, CALG_SHA1, 0, 0, hash.receive())) { |
- LOG(ERROR) << "CryptCreateHash failed: " << GetLastError(); |
+ DLOG(ERROR) << "CryptCreateHash failed: " << GetLastError(); |
return std::string(kSHA1Length, '\0'); |
} |
if (!CryptHashData(hash, reinterpret_cast<CONST BYTE*>(str.data()), |
static_cast<DWORD>(str.length()), 0)) { |
- LOG(ERROR) << "CryptHashData failed: " << GetLastError(); |
+ DLOG(ERROR) << "CryptHashData failed: " << GetLastError(); |
return std::string(kSHA1Length, '\0'); |
} |
@@ -40,7 +40,8 @@ |
if (!CryptGetHashParam(hash, HP_HASHSIZE, |
reinterpret_cast<unsigned char*>(&hash_len), |
&buffer_size, 0)) { |
- LOG(ERROR) << "CryptGetHashParam(HP_HASHSIZE) failed: " << GetLastError(); |
+ DLOG(ERROR) << "CryptGetHashParam(HP_HASHSIZE) failed: " |
+ << GetLastError(); |
return std::string(kSHA1Length, '\0'); |
} |
@@ -50,13 +51,14 @@ |
// but so that result.length() is correctly set to |hash_len|. |
reinterpret_cast<BYTE*>(WriteInto(&result, hash_len + 1)), &hash_len, |
0))) { |
- LOG(ERROR) << "CryptGetHashParam(HP_HASHVAL) failed: " << GetLastError(); |
+ DLOG(ERROR) << "CryptGetHashParam(HP_HASHVAL) failed: " |
+ << GetLastError(); |
return std::string(kSHA1Length, '\0'); |
} |
if (hash_len != kSHA1Length) { |
- LOG(ERROR) << "Returned hash value is wrong length: " << hash_len |
- << " should be " << kSHA1Length; |
+ DLOG(ERROR) << "Returned hash value is wrong length: " << hash_len |
+ << " should be " << kSHA1Length; |
return std::string(kSHA1Length, '\0'); |
} |