Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Unified Diff: webrtc/base/opensslstreamadapter.cc

Issue 2070693003: Use the new API to set the BoringSSL time callback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/opensslstreamadapter.cc
diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc
index fa558fad3748d538e55445cee24633c66eac80a1..e04eb04d67c8d05eee38938f406484ccbe5d5247 100644
--- a/webrtc/base/opensslstreamadapter.cc
+++ b/webrtc/base/opensslstreamadapter.cc
@@ -1001,8 +1001,7 @@ SSL_CTX* OpenSSLStreamAdapter::SetupSSLContext() {
// Set a time callback for BoringSSL because:
// 1. Our time function is more accurate (doesn't just use gettimeofday).
// 2. This allows us to inject a fake clock for testing.
- // SSL_CTX_set_current_time_cb(ctx, &TimeCallback);
- ctx->current_time_cb = &TimeCallback;
+ SSL_CTX_set_current_time_cb(ctx, &TimeCallback);
#endif
if (identity_ && !identity_->ConfigureIdentity(ctx)) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698