Index: webrtc/base/openssldigest.cc |
diff --git a/webrtc/base/openssldigest.cc b/webrtc/base/openssldigest.cc |
index 0d22f4329c5d09b3b1c1938bf80eef8b9b04eeda..2618b7f9fd2ec1a8025bd33f3ef53452f8eb9c28 100644 |
--- a/webrtc/base/openssldigest.cc |
+++ b/webrtc/base/openssldigest.cc |
@@ -12,6 +12,7 @@ |
#include "webrtc/base/openssldigest.h" |
+#include "webrtc/base/checks.h" |
#include "webrtc/base/common.h" |
#include "webrtc/base/openssl.h" |
@@ -51,7 +52,7 @@ size_t OpenSSLDigest::Finish(void* buf, size_t len) { |
unsigned int md_len; |
EVP_DigestFinal_ex(&ctx_, static_cast<unsigned char*>(buf), &md_len); |
EVP_DigestInit_ex(&ctx_, md_, NULL); // prepare for future Update()s |
- ASSERT(md_len == Size()); |
+ RTC_DCHECK(md_len == Size()); |
return md_len; |
} |
@@ -75,15 +76,15 @@ bool OpenSSLDigest::GetDigestEVP(const std::string& algorithm, |
} |
// Can't happen |
- ASSERT(EVP_MD_size(md) >= 16); |
+ RTC_DCHECK(EVP_MD_size(md) >= 16); |
*mdp = md; |
return true; |
} |
bool OpenSSLDigest::GetDigestName(const EVP_MD* md, |
std::string* algorithm) { |
- ASSERT(md != NULL); |
- ASSERT(algorithm != NULL); |
+ RTC_DCHECK(md != NULL); |
+ RTC_DCHECK(algorithm != NULL); |
int md_type = EVP_MD_type(md); |
if (md_type == NID_md5) { |
@@ -119,4 +120,3 @@ bool OpenSSLDigest::GetDigestSize(const std::string& algorithm, |
} // namespace rtc |
#endif // HAVE_OPENSSL_SSL_H |
- |