summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_lib.c
diff options
context:
space:
mode:
authorbeck <>2014-04-13 22:37:35 +0000
committerbeck <>2014-04-13 22:37:35 +0000
commitc9aabc7ea5702f48994fe7c22b1975daddbdb8d8 (patch)
tree432601fa0950e4a9c495a3070ab353db60fa6072 /src/lib/libssl/d1_lib.c
parentd08d47e08e7983d33195713fec947c1a17d75311 (diff)
downloadopenbsd-c9aabc7ea5702f48994fe7c22b1975daddbdb8d8.tar.gz
openbsd-c9aabc7ea5702f48994fe7c22b1975daddbdb8d8.tar.bz2
openbsd-c9aabc7ea5702f48994fe7c22b1975daddbdb8d8.zip
Fix the gettimeofday function that I broke with my last commit.
noticed by mattheew and deraadt ok deraadt@
Diffstat (limited to 'src/lib/libssl/d1_lib.c')
-rw-r--r--src/lib/libssl/d1_lib.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/libssl/d1_lib.c b/src/lib/libssl/d1_lib.c
index ec0ff40265..750f83e04a 100644
--- a/src/lib/libssl/d1_lib.c
+++ b/src/lib/libssl/d1_lib.c
@@ -453,13 +453,7 @@ int dtls1_handle_timeout(SSL *s)
453 453
454static void get_current_time(struct timeval *t) 454static void get_current_time(struct timeval *t)
455{ 455{
456#ifdef OPENSSL_SYS_WIN32
457 struct _timeb tb;
458 _ftime(&tb);
459 t->tv_sec = (long)tb.time;
460 t->tv_usec = (long)tb.millitm * 1000;
461 gettimeofday(t, NULL); 456 gettimeofday(t, NULL);
462#endif
463} 457}
464 458
465int dtls1_listen(SSL *s, struct sockaddr *client) 459int dtls1_listen(SSL *s, struct sockaddr *client)