Index: webrtc/base/opensslstreamadapter.cc |
diff --git a/webrtc/base/opensslstreamadapter.cc b/webrtc/base/opensslstreamadapter.cc |
index d2f3bc49781d7d9aa8646df6d0956465b6a92a85..798384b0c6f9d4730628c645c7920c93384ab8e7 100644 |
--- a/webrtc/base/opensslstreamadapter.cc |
+++ b/webrtc/base/opensslstreamadapter.cc |
@@ -64,8 +64,9 @@ static SrtpCipherMapEntry SrtpCipherMap[] = { |
#ifdef OPENSSL_IS_BORINGSSL |
static void TimeCallback(const SSL* ssl, struct timeval* out_clock) { |
- uint64_t time = TimeNanos(); |
+ int64_t time = TimeNanos(); |
out_clock->tv_sec = time / kNumNanosecsPerSec; |
+ // TODO(nisse): The below looks very wrong. |
out_clock->tv_usec = time / kNumNanosecsPerMicrosec; |
} |
#else // #ifdef OPENSSL_IS_BORINGSSL |