Index: webrtc/base/opensslidentity.cc |
diff --git a/webrtc/base/opensslidentity.cc b/webrtc/base/opensslidentity.cc |
index 0ebf20bd6b3ba829bc4d58612ed67560fa3d665b..2f1c565938cec00247b471a78fa84d437f1f7035 100644 |
--- a/webrtc/base/opensslidentity.cc |
+++ b/webrtc/base/opensslidentity.cc |
@@ -443,7 +443,7 @@ void OpenSSLCertificate::ToDER(Buffer* der_buffer) const { |
} |
void OpenSSLCertificate::AddReference() const { |
- ASSERT(x509_ != NULL); |
+ RTC_DCHECK(x509_ != NULL); |
#if defined(OPENSSL_IS_BORINGSSL) |
X509_up_ref(x509_); |
#else |
@@ -478,8 +478,8 @@ int64_t OpenSSLCertificate::CertificateExpirationTime() const { |
OpenSSLIdentity::OpenSSLIdentity(OpenSSLKeyPair* key_pair, |
OpenSSLCertificate* certificate) |
: key_pair_(key_pair), certificate_(certificate) { |
- ASSERT(key_pair != NULL); |
- ASSERT(certificate != NULL); |
+ RTC_DCHECK(key_pair != NULL); |
+ RTC_DCHECK(certificate != NULL); |
} |
OpenSSLIdentity::~OpenSSLIdentity() = default; |