]> git.ipfire.org Git - thirdparty/openssl.git/commit - ssl/ssl_lib.c
Make libssl async aware
authorMatt Caswell <matt@openssl.org>
Fri, 13 Feb 2015 23:28:49 +0000 (23:28 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:31:42 +0000 (23:31 +0000)
commit07bbc92ccb96d48044220d2ed2cf818323baeb26
tree93a4d003dd74e2c67e5580a5301a0b1a499becbb
parenta14e9ff713cbe7dbbba2aa667466490291cffc68
Make libssl async aware

The following entry points have been made async aware:
SSL_accept
SSL_read
SSL_write

Also added is a new mode - SSL_MODE_ASYNC. Calling the above functions with
the async mode enabled will initiate a new async job. If an async pause is
encountered whilst executing the job (such as for example if using SHA1/RSA
with the Dummy Async engine), then the above functions return with
SSL_WANT_ASYNC. Calling the functions again (with exactly the same args
as per non-blocking IO), will resume the job where it left off.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/ct/Makefile
include/openssl/ssl.h
ssl/Makefile
ssl/ssl_err.c
ssl/ssl_lib.c
ssl/ssl_locl.h
test/Makefile