Home | History | Annotate | Download | only in ssl

Lines Matching defs:timeleft

332 struct timeval* dtls1_get_timeout(SSL *s, struct timeval* timeleft)
350 memset(timeleft, 0, sizeof(struct timeval));
351 return timeleft;
355 memcpy(timeleft, &(s->d1->next_timeout), sizeof(struct timeval));
356 timeleft->tv_sec -= timenow.tv_sec;
357 timeleft->tv_usec -= timenow.tv_usec;
358 if (timeleft->tv_usec < 0)
360 timeleft->tv_sec--;
361 timeleft->tv_usec += 1000000;
368 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000)
370 memset(timeleft, 0, sizeof(struct timeval));
374 return timeleft;
379 struct timeval timeleft;
382 if (dtls1_get_timeout(s, &timeleft) == NULL)
388 if (timeleft.tv_sec > 0 || timeleft.tv_usec > 0)