X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=doc%2Fman3%2FSSL_get_all_async_fds.pod;h=c0cf3f6fb7c5dbcdebbf7f985b9d2d2407bbf5c6;hb=7525c930304c7814b3176d0724f271d2bbb1a09e;hp=fd4515db556168ee79b77132f335e48168042cbe;hpb=b97fdb57a269656fa20024a4404d3f543f06ac61;p=openssl.git diff --git a/doc/man3/SSL_get_all_async_fds.pod b/doc/man3/SSL_get_all_async_fds.pod index fd4515db55..c0cf3f6fb7 100644 --- a/doc/man3/SSL_get_all_async_fds.pod +++ b/doc/man3/SSL_get_all_async_fds.pod @@ -9,7 +9,7 @@ SSL_get_changed_async_fds =head1 SYNOPSIS -=for comment multiple includes +=for openssl multiple includes #include #include @@ -22,32 +22,32 @@ SSL_get_changed_async_fds =head1 DESCRIPTION SSL_waiting_for_async() determines whether an SSL connection is currently -waiting for asynchronous operations to complete (see the SSL_MODE_ASYNC mode in -L). +waiting for asynchronous operations to complete (see the B mode +in L). SSL_get_all_async_fds() returns a list of file descriptor which can be used in a call to select() or poll() to determine whether the current asynchronous operation has completed or not. A completed operation will result in data appearing as "read ready" on the file descriptor (no actual data should be read -from the file descriptor). This function should only be called if the SSL object -is currently waiting for asynchronous work to complete (i.e. -SSL_ERROR_WANT_ASYNC has been received - see L). Typically the -list will only contain one file descriptor. However if multiple asynchronous +from the file descriptor). This function should only be called if the B +object is currently waiting for asynchronous work to complete (i.e. +B has been received - see L). Typically +the list will only contain one file descriptor. However if multiple asynchronous capable engines are in use then more than one is possible. The number of file -descriptors returned is stored in B<*numfds> and the file descriptors themselves -are in B<*fds>. The B parameter may be NULL in which case no file -descriptors are returned but B<*numfds> is still populated. It is the callers -responsibility to ensure sufficient memory is allocated at B<*fds> so typically -this function is called twice (once with a NULL B parameter and once +descriptors returned is stored in I<*numfds> and the file descriptors themselves +are in I<*fds>. The I parameter may be NULL in which case no file +descriptors are returned but I<*numfds> is still populated. It is the callers +responsibility to ensure sufficient memory is allocated at I<*fds> so typically +this function is called twice (once with a NULL I parameter and once without). SSL_get_changed_async_fds() returns a list of the asynchronous file descriptors that have been added and a list that have been deleted since the last -SSL_ERROR_WANT_ASYNC was received (or since the SSL object was created if no -SSL_ERROR_WANT_ASYNC has been received). Similar to SSL_get_all_async_fds() it -is the callers responsibility to ensure that B<*addfd> and B<*delfd> have +B was received (or since the B object was created if +no B has been received). Similar to SSL_get_all_async_fds() +it is the callers responsibility to ensure that I<*addfd> and I<*delfd> have sufficient memory allocated, although they may be NULL. The number of added fds -and the number of deleted fds are stored in B<*numaddfds> and B<*numdelfds> +and the number of deleted fds are stored in I<*numaddfds> and I<*numdelfds> respectively. =head1 RETURN VALUES @@ -69,18 +69,19 @@ windows.h prior to async.h. =head1 SEE ALSO +L, L, L =head1 HISTORY -SSL_waiting_for_async(), SSL_get_all_async_fds() and SSL_get_changed_async_fds() -were first added to OpenSSL 1.1.0. +The SSL_waiting_for_async(), SSL_get_all_async_fds() +and SSL_get_changed_async_fds() functions were added in OpenSSL 1.1.0. =head1 COPYRIGHT Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. -Licensed under the OpenSSL license (the "License"). You may not use +Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at L.