Index: base/openssl_util.cc |
diff --git a/base/openssl_util.cc b/base/openssl_util.cc |
index 894c710ad830496a53c19cbf5c5f077a74d30154..f16bc0c3d860de9699b644c64c328dfa3188e414 100644 |
--- a/base/openssl_util.cc |
+++ b/base/openssl_util.cc |
@@ -67,13 +67,13 @@ void EnsureOpenSSLInit() { |
(void)Singleton<OpenSSLInitSingleton>::get(); |
} |
-void ClearOpenSSLERRStack() { |
+void ClearOpenSSLERRStack(const char* message) { |
if (logging::DEBUG_MODE && VLOG_IS_ON(1)) { |
int error_num = ERR_get_error(); |
if (error_num == 0) |
return; |
- DVLOG(1) << "OpenSSL ERR_get_error stack:"; |
+ DVLOG(1) << "OpenSSL ERR_get_error stack: " << (message ? message : ""); |
char buf[140]; |
do { |
ERR_error_string_n(error_num, buf, arraysize(buf)); |
@@ -85,4 +85,8 @@ void ClearOpenSSLERRStack() { |
} |
} |
+void ClearOpenSSLERRStack() { |
+ ClearOpenSSLERRStack(NULL); |
+} |
+ |
} // namespace base |