Home
last modified time | relevance | path

Searched refs:timeleft (Results 1 – 3 of 3) sorted by relevance

/third_party/openssl/ssl/
Dd1_lib.c287 struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft) in dtls1_get_timeout() argument
303 memset(timeleft, 0, sizeof(*timeleft)); in dtls1_get_timeout()
304 return timeleft; in dtls1_get_timeout()
308 memcpy(timeleft, &(s->d1->next_timeout), sizeof(struct timeval)); in dtls1_get_timeout()
309 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout()
310 timeleft->tv_usec -= timenow.tv_usec; in dtls1_get_timeout()
311 if (timeleft->tv_usec < 0) { in dtls1_get_timeout()
312 timeleft->tv_sec--; in dtls1_get_timeout()
313 timeleft->tv_usec += 1000000; in dtls1_get_timeout()
320 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) { in dtls1_get_timeout()
[all …]
Dssl_local.h2424 __owur struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft);
/third_party/openssl/crypto/bio/
Dbss_dgram.c209 struct timeval timenow, timeleft; in dgram_adjust_rcv_timeout() local
236 memcpy(&timeleft, &(data->next_timeout), sizeof(struct timeval)); in dgram_adjust_rcv_timeout()
237 if (timeleft.tv_usec < timenow.tv_usec) { in dgram_adjust_rcv_timeout()
238 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec; in dgram_adjust_rcv_timeout()
239 timeleft.tv_sec--; in dgram_adjust_rcv_timeout()
241 timeleft.tv_usec -= timenow.tv_usec; in dgram_adjust_rcv_timeout()
243 if (timeleft.tv_sec < timenow.tv_sec) { in dgram_adjust_rcv_timeout()
244 timeleft.tv_sec = 0; in dgram_adjust_rcv_timeout()
245 timeleft.tv_usec = 1; in dgram_adjust_rcv_timeout()
247 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout()
[all …]