/openssl/test/ |
H A D | time_test.c | 16 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 D | quic_tserver_test.c | 311 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 D | time.h | 94 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 D | quic_ssl.h | 55 __owur int ossl_quic_get_event_timeout(SSL *s, struct timeval *tv,
|
/openssl/doc/man3/ |
H A D | SSL_get_event_timeout.pod | 12 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 D | DTLSv1_get_timeout.pod | 12 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 D | quic-client.c | 63 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 D | hashtable.c | 128 HT_VALUE tv; in FuzzerTestOneInput() local 312 v = ossl_ht_fz_FUZZER_VALUE_to_value(lval, &tv); in FuzzerTestOneInput()
|
/openssl/demos/guide/ |
H A D | quic-client-non-block.c | 116 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 D | quic-hq-interop.c | 215 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 D | bss_dgram.c | 323 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 D | bio_sock.c | 435 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 D | quic_reactor.c | 172 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 D | quic_impl.c | 1082 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 D | ddd-02-conn-nonblocking.c | 258 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 D | ddd-04-fd-nonblocking.c | 225 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 D | ddd-06-mem-uv.c | 589 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 D | rand_unix.c | 787 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 D | conf_def.c | 219 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 D | ts_rsp_sign.c | 66 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 D | quictestlib.c | 432 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 D | d1_lib.c | 273 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 D | ossl-guide-quic-client-non-block.pod | 77 struct timeval tv; 100 if (SSL_get_event_timeout(ssl, &tv, &isinfinite) && !isinfinite) 101 tvp = &tv;
|
/openssl/doc/internal/man3/ |
H A D | OSSL_TIME.pod | 41 OSSL_TIME ossl_time_from_timeval(struct timeval tv);
|
/openssl/apps/ |
H A D | s_client.c | 907 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()
|