Chromium Code Reviews| 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. |
|
pthatcher1
2016/11/18 22:11:16
Why?
nisse-webrtc
2016/11/21 07:45:07
It's wrong in several ways.
With struct timeval
kwiberg-webrtc
2016/11/21 12:12:34
Post a bug about this and point to it in the comme
nisse-webrtc
2016/11/21 12:39:12
Filed bug https://bugs.chromium.org/p/webrtc/issue
|
| out_clock->tv_usec = time / kNumNanosecsPerMicrosec; |
| } |
| #else // #ifdef OPENSSL_IS_BORINGSSL |