diff options
author | 2014-04-13 22:37:35 +0000 | |
---|---|---|
committer | 2014-04-13 22:37:35 +0000 | |
commit | db579c414acd2dba8feece32f371f099b468bd5b (patch) | |
tree | affc00cce5c9ff210b09e4f523cdaa820a4ed2a8 | |
parent | symhacks for vms are no longer needed (diff) | |
download | wireguard-openbsd-db579c414acd2dba8feece32f371f099b468bd5b.tar.xz wireguard-openbsd-db579c414acd2dba8feece32f371f099b468bd5b.zip |
Fix the gettimeofday function that I broke with my last commit.
noticed by mattheew and deraadt
ok deraadt@
-rw-r--r-- | lib/libssl/d1_lib.c | 6 | ||||
-rw-r--r-- | lib/libssl/src/ssl/d1_lib.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/lib/libssl/d1_lib.c b/lib/libssl/d1_lib.c index ec0ff402654..750f83e04a5 100644 --- a/lib/libssl/d1_lib.c +++ b/lib/libssl/d1_lib.c @@ -453,13 +453,7 @@ int dtls1_handle_timeout(SSL *s) static void get_current_time(struct timeval *t) { -#ifdef OPENSSL_SYS_WIN32 - struct _timeb tb; - _ftime(&tb); - t->tv_sec = (long)tb.time; - t->tv_usec = (long)tb.millitm * 1000; gettimeofday(t, NULL); -#endif } int dtls1_listen(SSL *s, struct sockaddr *client) diff --git a/lib/libssl/src/ssl/d1_lib.c b/lib/libssl/src/ssl/d1_lib.c index ec0ff402654..750f83e04a5 100644 --- a/lib/libssl/src/ssl/d1_lib.c +++ b/lib/libssl/src/ssl/d1_lib.c @@ -453,13 +453,7 @@ int dtls1_handle_timeout(SSL *s) static void get_current_time(struct timeval *t) { -#ifdef OPENSSL_SYS_WIN32 - struct _timeb tb; - _ftime(&tb); - t->tv_sec = (long)tb.time; - t->tv_usec = (long)tb.millitm * 1000; gettimeofday(t, NULL); -#endif } int dtls1_listen(SSL *s, struct sockaddr *client) |