Change some SSL logging to use DLOG
Bug: webrtc:8529 Change-Id: I0242ff201c5c7ac00169444a346e462157703ac6 Reviewed-on: https://webrtc-review.googlesource.com/46260 Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21836}
This commit is contained in:
@ -268,14 +268,14 @@ bool OpenSSLKeyPair::operator!=(const OpenSSLKeyPair& other) const {
|
||||
static void PrintCert(X509* x509) {
|
||||
BIO* temp_memory_bio = BIO_new(BIO_s_mem());
|
||||
if (!temp_memory_bio) {
|
||||
RTC_LOG_F(LS_ERROR) << "Failed to allocate temporary memory bio";
|
||||
RTC_DLOG_F(LS_ERROR) << "Failed to allocate temporary memory bio";
|
||||
return;
|
||||
}
|
||||
X509_print_ex(temp_memory_bio, x509, XN_FLAG_SEP_CPLUS_SPC, 0);
|
||||
BIO_write(temp_memory_bio, "\0", 1);
|
||||
char* buffer;
|
||||
BIO_get_mem_data(temp_memory_bio, &buffer);
|
||||
RTC_LOG(LS_VERBOSE) << buffer;
|
||||
RTC_DLOG(LS_VERBOSE) << buffer;
|
||||
BIO_free(temp_memory_bio);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user