Use the new API to set the BoringSSL time callback.

Review-Url: https://codereview.webrtc.org/2070693003
Cr-Commit-Position: refs/heads/master@{#13224}
This commit is contained in:
deadbeef 2016-06-20 12:00:44 -07:00 committed by Commit bot
parent 2169d8bc68
commit d685fef94c

View File

@ -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)) {