From: Andrea Grandi Date: Tue, 18 Oct 2016 09:53:14 +0000 (+0100) Subject: Fix broken link to ASYNC_get_wait_ctx and rewrap the paragraph X-Git-Tag: OpenSSL_1_1_1-pre1~3355 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=50c3fc00cc3090d082669591c0923a8468f2d8f9;p=oweals%2Fopenssl.git Fix broken link to ASYNC_get_wait_ctx and rewrap the paragraph Reviewed-by: Matt Caswell Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1745) --- diff --git a/doc/crypto/ASYNC_WAIT_CTX_new.pod b/doc/crypto/ASYNC_WAIT_CTX_new.pod index de1bd5777d..580c4e5dd7 100644 --- a/doc/crypto/ASYNC_WAIT_CTX_new.pod +++ b/doc/crypto/ASYNC_WAIT_CTX_new.pod @@ -78,20 +78,20 @@ application will have to periodically "poll" the job by attempting to restart it to see if it is ready to continue. Async aware code (e.g. engines) can get the current ASYNC_WAIT_CTX from the job -via L and provide a file descriptor to use for -waiting on by calling ASYNC_WAIT_CTX_set_wait_fd(). Typically this would be done -by an engine immediately prior to calling ASYNC_pause_job() and not by end user -code. An existing association with a file descriptor can be obtained using +via L and provide a file descriptor to use for waiting +on by calling ASYNC_WAIT_CTX_set_wait_fd(). Typically this would be done by an +engine immediately prior to calling ASYNC_pause_job() and not by end user code. +An existing association with a file descriptor can be obtained using ASYNC_WAIT_CTX_get_fd() and cleared using ASYNC_WAIT_CTX_clear_fd(). Both of -these functions requires a B value which is unique to the async aware code. -This could be any unique value but a good candidate might be the B for -the engine. The B parameter can be any value, and will be returned -in a subsequent call to ASYNC_WAIT_CTX_get_fd(). The +these functions requires a B value which is unique to the async aware +code. This could be any unique value but a good candidate might be the +B for the engine. The B parameter can be any value, and +will be returned in a subsequent call to ASYNC_WAIT_CTX_get_fd(). The ASYNC_WAIT_CTX_set_wait_fd() function also expects a pointer to a "cleanup" -routine. This can be NULL but if provided will automatically get called when the -ASYNC_WAIT_CTX is freed, and gives the engine the opportunity to close the fd or -any other resources. Note: The "cleanup" routine does not get called if the fd -is cleared directly via a call to ASYNC_WAIT_CTX_clear_fd(). +routine. This can be NULL but if provided will automatically get called when +the ASYNC_WAIT_CTX is freed, and gives the engine the opportunity to close the +fd or any other resources. Note: The "cleanup" routine does not get called if +the fd is cleared directly via a call to ASYNC_WAIT_CTX_clear_fd(). An example of typical usage might be an async capable engine. User code would initiate cryptographic operations. The engine would initiate those operations