Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 83) sorted by relevance

1234

/openssl/doc/man3/
H A DSSL_CTX_set_timeout.pod16 SSL_CTX_set_timeout() sets the timeout for newly created sessions for
17 B<ctx> to B<t>. The timeout value B<t> must be given in seconds.
19 SSL_CTX_get_timeout() returns the currently set timeout value for B<ctx>.
25 timeout value valid at this time. If the actual time is later than creation
26 time plus timeout, the session is not reused.
29 valid at the time of the session negotiation. Changes of the timeout value
40 The default value for session timeout is decided on a per protocol
42 All currently supported protocols have the same default timeout value
46 tickets. It is also used as the timeout value within the ticket itself.
57 SSL_CTX_set_timeout() returns the previously set timeout value.
[all …]
H A DSSL_get_default_timeout.pod5 SSL_get_default_timeout - get default session timeout value
15 SSL_get_default_timeout() returns the default timeout value assigned to
20 Whenever a new session is negotiated, it is assigned a timeout value,
21 after which it will not be accepted for session reuse. If the timeout
24 timeout for the protocol will be used.
H A DBIO_socket_wait.pod18 int BIO_do_connect_retry(BIO *bio, int timeout, int nap_milliseconds);
24 It succeeds immediately if B<max_time> == 0 (which means no timeout given).
29 It succeeds immediately if B<max_time> == 0 (which means no timeout given).
36 i.e., connection succeeded, timeout has been reached, or an error occurred.
40 If the B<timeout> parameter is > 0 this indicates the maximum number of seconds
42 A value of 0 enables waiting indefinitely (i.e, no timeout),
49 return -1 on error, 0 on timeout, and 1 on success.
H A DDTLSv1_handle_timeout.pod5 DTLSv1_handle_timeout - handle a pending timeout event for a DTLS or QUIC SSL
16 DTLSv1_handle_timeout() handles any timeout events which have become pending
30 Returns 1 if there was a pending timeout event and it was handled successfully.
32 Returns 0 if there was no pending timeout event, or if the SSL object is not a
35 Returns -1 if there was a pending timeout event but it could not be handled
H A DX509_load_http.pod15 X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
16 X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
39 If the B<timeout> parameter is > 0 this indicates the maximum number of seconds
42 while a value < 0 immediately leads to a timeout condition.
45 that have the same effect as the functions above but with infinite timeout
51 Error conditions include connection/transfer timeout, parse errors, etc.
H A DDTLSv1_get_timeout.pod6 timeout event to be handled
23 function succeeds, returning 1. If no timeout is currently active, this function
32 Once the timeout expires, DTLSv1_handle_timeout() should be called to handle any
43 Returns 0 on failure, or if no timeout is currently active.
H A DSSL_SESSION_get_time.pod8 - retrieve and manipulate session time and timeout settings
41 SSL_SESSION_get_timeout() returns the timeout value set for session B<s>
44 SSL_SESSION_set_timeout() sets the timeout value for session B<s> in seconds
57 Sessions are expired by examining the creation time and the timeout value.
59 default timeout value at creation, respectively, as set by
H A DSSL_handle_events.pod18 timeout events which have become due, or may attempt, to the extent currently
34 Using SSL_handle_events() on an SSL object being used with a DTLS method allows timeout
49 timeout events to be handled properly, as well as incoming network data to be
57 periodically to allow timeout events to be handled. An application can find out
H A DOSSL_HTTP_transfer.pod28 int timeout, BIO *bio_err, const char *prog);
33 size_t max_resp_len, int timeout, int keep_alive);
40 size_t max_resp_len, int timeout);
50 size_t max_resp_len, int timeout, int keep_alive);
150 A value <= 0 enables waiting indefinitely, i.e., no timeout.
159 If the I<timeout> parameter is > 0 this indicates the maximum number of
161 A value <= 0 enables waiting indefinitely, i.e., no timeout.
194 If the I<timeout> parameter is > 0 this indicates the maximum number of seconds
197 A value of 0 enables waiting indefinitely, i.e., no timeout.
279 Failure conditions include connection/transfer timeout, parse errors, etc.
/openssl/doc/designs/ddd/
H A Dddd-02-conn-nonblocking.c321 struct timeval timeout; in main() local
323 int timeout = 2000 /* ms */; in main() local
329 ms_to_timeval(&timeout, 2000); in main()
369 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
370 t = timeout; in main()
373 timeradd(&start, &timeout, &deadline); in main()
381 if (poll(&pfd, 1, timeout) == 0) in main()
413 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
414 t = timeout; in main()
417 timeradd(&start, &timeout, &deadline); in main()
[all …]
H A Dddd-04-fd-nonblocking.c302 struct timeval timeout; in main() local
304 int timeout = 2000 /* ms */; in main() local
311 ms_to_timeval(&timeout, 2000); in main()
384 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
385 t = timeout; in main()
388 timeradd(&start, &timeout, &deadline); in main()
396 if (poll(&pfd, 1, timeout) == 0) in main()
428 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
429 t = timeout; in main()
432 timeradd(&start, &timeout, &deadline); in main()
[all …]
H A Dddd-05-mem-nonblocking.c297 static int pump(APP_CONN *conn, int fd, int events, int timeout) argument
314 if (poll(&pfd, 1, timeout) == 0)
360 int timeout = 2000 /* ms */; local
428 if (pump(conn, fd, get_conn_pending_tx(conn), timeout) != 1) {
443 if (pump(conn, fd, get_conn_pending_rx(conn), timeout) != 1) {
H A Dddd-02-conn-nonblocking-threads.c265 int timeout = 2000 /* ms */; in main() local
302 if (poll(&pfd, 1, timeout) == 0) { in main()
320 if (poll(&pfd, 1, timeout) == 0) { in main()
/openssl/include/openssl/
H A Dhttp.h54 int timeout, int keep_alive);
76 int timeout, BIO *bio_err, const char *prog);
81 size_t max_resp_len, int timeout, int keep_alive);
88 size_t max_resp_len, int timeout);
98 size_t max_resp_len, int timeout, int keep_alive);
/openssl/ssl/rio/
H A Dpoll_immediate.c39 const struct timeval *timeout, in SSL_poll() argument
51 = (timeout != NULL in SSL_poll()
52 && timeout->tv_sec == 0 && timeout->tv_usec == 0); in SSL_poll()
/openssl/crypto/thread/arch/
H A Dthread_win.c349 DWORD timeout; in obj_wait() local
351 if (!determine_timeout(deadline, &timeout)) in obj_wait()
352 timeout = 1; in obj_wait()
354 return WaitForSingleObject(h, timeout); in obj_wait()
557 DWORD timeout; in ossl_crypto_condvar_wait_timeout() local
561 if (!determine_timeout(deadline, &timeout)) in ossl_crypto_condvar_wait_timeout()
562 timeout = 1; in ossl_crypto_condvar_wait_timeout()
564 SleepConditionVariableCS(cv_p, mutex_p, timeout); in ossl_crypto_condvar_wait_timeout()
/openssl/engines/
H A De_afalg.c135 struct timespec *timeout) in io_getevents() argument
139 if (sizeof(*timeout) != sizeof(struct __timespec32)) { in io_getevents()
141 timeout, NULL); in io_getevents()
148 if (sizeof(*timeout) == sizeof(struct __timespec32)) in io_getevents()
161 if (timeout && timeout->tv_sec == (long)timeout->tv_sec) { in io_getevents()
164 ts32.tv_sec = (__kernel_long_t) timeout->tv_sec; in io_getevents()
165 ts32.tv_nsec = (__kernel_long_t) timeout->tv_nsec; in io_getevents()
270 struct timespec timeout; in afalg_fin_cipher_aio() local
274 timeout.tv_sec = 0; in afalg_fin_cipher_aio()
275 timeout.tv_nsec = 0; in afalg_fin_cipher_aio()
[all …]
/openssl/ssl/quic/
H A Dquic_reactor.c171 OSSL_TIME now, timeout; in poll_two_fds() local
227 timeout = ossl_time_subtract(deadline, now); in poll_two_fds()
228 tv = ossl_time_to_timeval(timeout); in poll_two_fds()
243 OSSL_TIME now, timeout; in poll_two_fds()
279 timeout = ossl_time_subtract(deadline, now); in poll_two_fds()
280 timeout_ms = ossl_time2ms(timeout); in poll_two_fds()
/openssl/crypto/http/
H A Dhttp_client.c250 int timeout, int keep_alive) in OSSL_HTTP_REQ_CTX_set_expected() argument
270 if (timeout >= 0) in OSSL_HTTP_REQ_CTX_set_expected()
271 rctx->max_time = timeout > 0 ? time(NULL) + timeout : 0; in OSSL_HTTP_REQ_CTX_set_expected()
1216 size_t max_resp_len, int timeout) in OSSL_HTTP_get() argument
1225 time_t max_time = timeout > 0 ? time(NULL) + timeout : 0; in OSSL_HTTP_get()
1244 buf_size, timeout); in OSSL_HTTP_get()
1263 && may_still_retry(max_time, &timeout)) { in OSSL_HTTP_get()
1317 buf_size, timeout); in OSSL_HTTP_transfer()
1318 timeout = -1; /* Already set during opening the connection */ in OSSL_HTTP_transfer()
1323 max_resp_len, timeout, keep_alive)) in OSSL_HTTP_transfer()
[all …]
/openssl/ssl/
H A Dssl_asn1.c27 int64_t timeout; member
59 ASN1_EXP_OPT_EMBED(SSL_SESSION_ASN1, timeout, ZINT64, 2),
172 as.timeout = (int64_t)ossl_time2seconds(in->timeout); in i2d_SSL_SESSION()
329 if (as->timeout != 0) in d2i_SSL_SESSION_ex()
330 ret->timeout = ossl_seconds2time(as->timeout); in d2i_SSL_SESSION_ex()
332 ret->timeout = ossl_seconds2time(3); in d2i_SSL_SESSION_ex()
H A Dssl_txt.c138 if (!ossl_time_is_zero(x->timeout)) { in SSL_SESSION_print()
140 (long long)ossl_time2seconds(x->timeout)) <= 0) in SSL_SESSION_print()
/openssl/crypto/bio/
H A Dbss_dgram.c313 int timeout; in dgram_adjust_rcv_timeout() local
314 int sz = sizeof(timeout); in dgram_adjust_rcv_timeout()
347 (void *)&timeout, sizeof(timeout)) < 0) in dgram_adjust_rcv_timeout()
394 (void *)&timeout, sizeof(timeout)) < 0) in dgram_reset_rcv_timeout()
790 (void *)&timeout, sizeof(timeout))) < 0) in dgram_ctrl()
805 int timeout; in dgram_ctrl() local
808 sz = sizeof(timeout); in dgram_ctrl()
814 tv->tv_sec = timeout / 1000; in dgram_ctrl()
840 (void *)&timeout, sizeof(timeout))) < 0) in dgram_ctrl()
855 int timeout; in dgram_ctrl() local
[all …]
/openssl/apps/lib/
H A Ds_socket.c395 struct timeval timeout; in do_server() local
434 timeout.tv_sec = 0; in do_server()
435 timeout.tv_usec = 500000; /* some extreme round-trip */ in do_server()
439 } while (select(sock + 1, &readfds, NULL, NULL, &timeout) > 0 in do_server()
H A Dhttp_server.c267 const char *prog, int accept_get, int timeout) in http_server_get_asn1_req() argument
307 if (timeout > 0) { in http_server_get_asn1_req()
309 alarm(timeout); in http_server_get_asn1_req()
464 timeout = 0; in http_server_get_asn1_req()
485 if (timeout > 0) in http_server_get_asn1_req()
/openssl/util/
H A Dquicserver.c31 struct timeval timeout, *timeoutp = NULL; in wait_for_activity() local
54 timeout = ossl_time_to_timeval(ossl_time_subtract(deadline, in wait_for_activity()
56 timeoutp = &timeout; in wait_for_activity()

Completed in 64 milliseconds

1234