X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fman3%2FSSL_read_early_data.pod;h=a420e73238d880dab079833d2af44cd83a41f978;hp=d9167569e444f76f90aac754d3e0593414dc08da;hb=c39e4048b538ec76313c264e860cfb5cd677a9ac;hpb=d91f45688c2d0bfcc5b3b57fb20cc80b010eef0b diff --git a/doc/man3/SSL_read_early_data.pod b/doc/man3/SSL_read_early_data.pod index d9167569e4..a420e73238 100644 --- a/doc/man3/SSL_read_early_data.pod +++ b/doc/man3/SSL_read_early_data.pod @@ -101,7 +101,9 @@ was rejected or SSL_EARLY_DATA_NOT_SENT if no early data was sent. This function may be called by either the client or the server. A server uses the SSL_read_early_data() function to receive early data on a -connection. As for SSL_write_early_data() this must be the first IO function +connection for which early data has been enabled using +SSL_CTX_set_max_early_data() or SSL_set_max_early_data(). As for +SSL_write_early_data(), this must be the first IO function called on a connection, i.e. it must occur before any calls to L, L, L, L, or other similar functions. @@ -165,12 +167,16 @@ further action taken. When a session is created between a server and a client the server will specify the maximum amount of any early data that it will accept on any future -connection attempt. By default this is approximately 16k. A server may override -this default value by calling SSL_CTX_set_max_early_data() or +connection attempt. By default the server does not accept early data; a +server may indicate support for early data by calling +SSL_CTX_set_max_early_data() or SSL_set_max_early_data() to set it for the whole SSL_CTX or an individual SSL object respectively. Similarly the SSL_CTX_get_max_early_data() and SSL_get_max_early_data() functions can be used to obtain the current maximum early data settings for the SSL_CTX and SSL objects respectively. +Generally a server application will either use both of SSL_read_early_data() +and SSL_CTX_set_max_early_data() (or SSL_set_max_early_data()), or neither +of them, since there is no practical benefit from using only one of them. In the event that the current maximum early data setting for the server is different to that originally specified in a session that a client is resuming