summaryrefslogtreecommitdiffstats
path: root/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2014-04-13 22:37:35 +0000
committerbeck <beck@openbsd.org>2014-04-13 22:37:35 +0000
commitdb579c414acd2dba8feece32f371f099b468bd5b (patch)
treeaffc00cce5c9ff210b09e4f523cdaa820a4ed2a8 /lib/libssl/d1_lib.c
parentsymhacks for vms are no longer needed (diff)
downloadwireguard-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@
Diffstat (limited to 'lib/libssl/d1_lib.c')
-rw-r--r--lib/libssl/d1_lib.c6
1 files changed, 0 insertions, 6 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)