diff options
author | beck <> | 2014-04-13 22:37:35 +0000 |
---|---|---|
committer | beck <> | 2014-04-13 22:37:35 +0000 |
commit | c9aabc7ea5702f48994fe7c22b1975daddbdb8d8 (patch) | |
tree | 432601fa0950e4a9c495a3070ab353db60fa6072 /src/lib/libssl/d1_lib.c | |
parent | d08d47e08e7983d33195713fec947c1a17d75311 (diff) | |
download | openbsd-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.c | 6 |
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 | ||
454 | static void get_current_time(struct timeval *t) | 454 | static 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 | ||
465 | int dtls1_listen(SSL *s, struct sockaddr *client) | 459 | int dtls1_listen(SSL *s, struct sockaddr *client) |