1SSL_CTX_set_read_ahead(3)           OpenSSL          SSL_CTX_set_read_ahead(3)
2
3
4

NAME

6       SSL_CTX_set_read_ahead, SSL_CTX_set_default_read_ahead,
7       SSL_CTX_get_read_ahead, SSL_CTX_get_default_read_ahead,
8       SSL_set_read_ahead, SSL_get_read_ahead - manage whether to read as many
9       input bytes as possible
10

SYNOPSIS

12        #include <openssl/ssl.h>
13
14        int SSL_get_read_ahead(const SSL *s);
15        void SSL_set_read_ahead(SSL *s, int yes);
16
17        #define SSL_CTX_get_default_read_ahead(ctx)
18        #define SSL_CTX_set_default_read_ahead(ctx,m)
19        #define SSL_CTX_get_read_ahead(ctx)
20        #define SSL_CTX_set_read_ahead(ctx,m)
21

DESCRIPTION

23       SSL_CTX_set_read_ahead() and SSL_set_read_ahead() set whether we should
24       read as many input bytes as possible (for non-blocking reads) or not.
25       For example if x bytes are currently required by OpenSSL, but y bytes
26       are available from the underlying BIO (where y > x), then OpenSSL will
27       read all y bytes into its buffer (providing that the buffer is large
28       enough) if reading ahead is on, or x bytes otherwise. The parameter yes
29       or m should be 0 to ensure reading ahead is off, or non zero otherwise.
30
31       SSL_CTX_set_default_read_ahead is a synonym for SSL_CTX_set_read_ahead,
32       and SSL_CTX_get_default_read_ahead is a synonym for
33       SSL_CTX_get_read_ahead.
34
35       SSL_CTX_get_read_ahead() and SSL_get_read_ahead() indicate whether
36       reading ahead has been set or not.
37

NOTES

39       These functions have no impact when used with DTLS. The return values
40       for SSL_CTX_get_read_head() and SSL_get_read_ahead() are undefined for
41       DTLS.
42

RETURN VALUES

44       SSL_get_read_ahead and SSL_CTX_get_read_ahead return 0 if reading ahead
45       is off, and non zero otherwise.
46

SEE ALSO

48       ssl(3)
49
50
51
521.0.2o                            2020-01-28         SSL_CTX_set_read_ahead(3)
Impressum