Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 28) sorted by relevance

12

/openssl/test/
H A Dtime_test.c16 struct timeval tv; in test_time_to_timeval() local
21 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
31 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1)) in test_time_to_timeval()
35 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1)) in test_time_to_timeval()
39 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1)) in test_time_to_timeval()
43 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 2)) in test_time_to_timeval()
47 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 999)) in test_time_to_timeval()
51 if (!TEST_long_eq(tv.tv_sec, 1) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
55 if (!TEST_long_eq(tv.tv_sec, 1) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
59 if (!TEST_long_eq(tv.tv_sec, 1) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
[all …]
H A Dquic_tserver_test.c311 struct timeval tv; in do_test() local
326 if (!TEST_true(SSL_get_event_timeout(c_ssl, &tv, &isinf))) in do_test()
329 ossl_time_from_timeval(tv)) >= 0) in do_test()
/openssl/include/internal/
H A Dtime.h94 struct timeval tv; in ossl_time_to_timeval() local
106 tv.tv_sec = (long int)(t.t / OSSL_TIME_SECOND); in ossl_time_to_timeval()
108 tv.tv_sec = (time_t)(t.t / OSSL_TIME_SECOND); in ossl_time_to_timeval()
110 tv.tv_usec = (t.t % OSSL_TIME_SECOND) / OSSL_TIME_US; in ossl_time_to_timeval()
111 return tv; in ossl_time_to_timeval()
116 OSSL_TIME ossl_time_from_timeval(struct timeval tv) in ossl_time_from_timeval() argument
121 if (tv.tv_sec < 0) in ossl_time_from_timeval()
124 t.t = tv.tv_sec * OSSL_TIME_SECOND + tv.tv_usec * OSSL_TIME_US; in ossl_time_from_timeval()
H A Dquic_ssl.h55 __owur int ossl_quic_get_event_timeout(SSL *s, struct timeval *tv,
/openssl/doc/man3/
H A DSSL_get_event_timeout.pod12 int SSL_get_event_timeout(SSL *s, struct timeval *tv, int *is_infinite);
19 All arguments are required; I<tv> and I<is_infinite> must be non-NULL.
29 I<*tv> are set to 0 and I<*is_infinite> is set to 0.
34 (relative to the time at which SSL_get_event_timeout() was called). I<*tv> is
41 value of I<*tv> is unspecified and I<*is_infinite> is set to 1.
64 If the call to SSL_get_event_timeout() fails, the values of I<*tv> and
H A DDTLSv1_get_timeout.pod12 int DTLSv1_get_timeout(SSL *s, struct timeval *tv);
20 Calling DTLSv1_get_timeout() results in I<*tv> being written with an amount of
22 If the SSL object needs to be ticked immediately, I<*tv> is zeroed and the
41 On success, writes a duration to I<*tv> and returns 1.
/openssl/fuzz/
H A Dquic-client.c63 struct timeval tv; in FuzzerTestOneInput() local
227 if (!SSL_get_event_timeout(client, &tv, &isinf)) in FuzzerTestOneInput()
235 ossl_time_from_timeval(tv)); in FuzzerTestOneInput()
H A Dhashtable.c128 HT_VALUE tv; in FuzzerTestOneInput() local
312 v = ossl_ht_fz_FUZZER_VALUE_to_value(lval, &tv); in FuzzerTestOneInput()
/openssl/demos/guide/
H A Dquic-client-non-block.c116 struct timeval tv; in wait_for_activity() local
139 if (SSL_get_event_timeout(ssl, &tv, &isinfinite) && !isinfinite) in wait_for_activity()
140 tvp = &tv; in wait_for_activity()
H A Dquic-hq-interop.c215 struct timeval tv; in wait_for_activity() local
238 if (SSL_get_event_timeout(ssl, &tv, &isinfinite) && !isinfinite) in wait_for_activity()
239 tvp = &tv; in wait_for_activity()
/openssl/crypto/bio/
H A Dbss_dgram.c323 struct timeval tv; in dgram_adjust_rcv_timeout()
324 socklen_t sz = sizeof(tv); in dgram_adjust_rcv_timeout()
351 tv = ossl_time_to_timeval(timeleft); in dgram_adjust_rcv_timeout()
353 sizeof(tv)) < 0) in dgram_adjust_rcv_timeout()
400 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) in dgram_reset_rcv_timeout()
787 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
814 tv->tv_sec = timeout / 1000; in dgram_ctrl()
816 ret = sizeof(*tv); in dgram_ctrl()
837 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
864 tv->tv_sec = timeout / 1000; in dgram_ctrl()
[all …]
H A Dbio_sock.c435 struct timeval tv; in BIO_socket_wait() local
453 tv.tv_usec = 0; in BIO_socket_wait()
454 tv.tv_sec = (long)(max_time - now); /* might overflow */ in BIO_socket_wait()
456 for_read ? NULL : &confds, NULL, &tv); in BIO_socket_wait()
/openssl/ssl/quic/
H A Dquic_reactor.c172 struct timeval tv, *ptv; in poll_two_fds() local
228 tv = ossl_time_to_timeval(timeout); in poll_two_fds()
229 ptv = &tv; in poll_two_fds()
H A Dquic_impl.c1082 int ossl_quic_get_event_timeout(SSL *s, struct timeval *tv, int *is_infinite) in ossl_quic_get_event_timeout() argument
1103 tv->tv_sec = 1000000; in ossl_quic_get_event_timeout()
1104 tv->tv_usec = 0; in ossl_quic_get_event_timeout()
1110 *tv = ossl_time_to_timeval(ossl_time_subtract(deadline, get_time(ctx.qc))); in ossl_quic_get_event_timeout()
/openssl/doc/designs/ddd/
H A Dddd-02-conn-nonblocking.c258 struct timeval tv; in get_conn_pump_timeout() local
261 if (!SSL_get_event_timeout(conn->ssl, &tv, &is_infinite)) in get_conn_pump_timeout()
264 return is_infinite ? -1 : timeval_to_ms(&tv); in get_conn_pump_timeout()
H A Dddd-04-fd-nonblocking.c225 struct timeval tv; in get_conn_pump_timeout() local
228 if (!SSL_get_event_timeout(conn->ssl, &tv, &is_infinite)) in get_conn_pump_timeout()
231 return is_infinite ? -1 : timeval_to_ms(&tv); in get_conn_pump_timeout()
H A Dddd-06-mem-uv.c589 struct timeval tv; in set_timer() local
592 if (!SSL_get_event_timeout(conn->ssl, &tv, &is_infinite)) in set_timer()
595 ms = is_infinite ? -1 : timeval_to_ms(&tv); in set_timer()
/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c787 struct timeval tv; in get_time_stamp() local
789 if (gettimeofday(&tv, NULL) == 0) in get_time_stamp()
790 return TWO32TO64(tv.tv_sec, tv.tv_usec); in get_time_stamp()
/openssl/crypto/conf/
H A Dconf_def.c219 CONF_VALUE *v = NULL, *tv; in def_load_bio() local
544 if ((tv = _CONF_get_section(conf, psection)) in def_load_bio()
546 tv = _CONF_new_section(conf, psection); in def_load_bio()
547 if (tv == NULL) { in def_load_bio()
553 tv = sv; in def_load_bio()
554 if (_CONF_add_string(conf, tv, v) == 0) { in def_load_bio()
/openssl/crypto/ts/
H A Dts_rsp_sign.c66 struct timeval tv; in def_time_cb() local
76 tv = ossl_time_to_timeval(t); in def_time_cb()
77 *sec = (long int)tv.tv_sec; in def_time_cb()
78 *usec = (long int)tv.tv_usec; in def_time_cb()
/openssl/test/helpers/
H A Dquictestlib.c432 struct timeval tv; in qtest_wait_for_timeout() local
452 if (!SSL_get_event_timeout(s, &tv, &cinf)) in qtest_wait_for_timeout()
460 ctimeout = cinf ? ossl_time_infinite() : ossl_time_from_timeval(tv); in qtest_wait_for_timeout()
/openssl/ssl/
H A Dd1_lib.c273 struct timeval tv = ossl_time_to_timeval(d1->next_timeout); in dtls1_bio_set_next_timeout() local
275 BIO_ctrl(bio, BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT, 0, &tv); in dtls1_bio_set_next_timeout()
/openssl/doc/man7/
H A Dossl-guide-quic-client-non-block.pod77 struct timeval tv;
100 if (SSL_get_event_timeout(ssl, &tv, &isinfinite) && !isinfinite)
101 tvp = &tv;
/openssl/doc/internal/man3/
H A DOSSL_TIME.pod41 OSSL_TIME ossl_time_from_timeval(struct timeval tv);
/openssl/apps/
H A Ds_client.c907 struct timeval tv; in s_client_main() local
3044 tv.tv_sec = 1; in s_client_main()
3045 tv.tv_usec = 0; in s_client_main()
3047 NULL, &tv); in s_client_main()

Completed in 121 milliseconds

12