diff options
author | Matt Caswell <matt@openssl.org> | 2016-07-04 14:55:50 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-08-19 13:52:40 +0100 |
commit | b4982125e63882cf9d77c704ef555105528a5dac (patch) | |
tree | 1b7d2a2aebd8f614c5a5b6a91ea849792e2822c0 /test/asynciotest.c | |
parent | d82dec40ba87408697357b04ba0d71a2be69c5fb (diff) | |
download | openssl-b4982125e63882cf9d77c704ef555105528a5dac.tar.gz |
Split create_ssl_connection()
Split the create_ssl_connection() helper function into two steps: one to
create the SSL objects, and one to actually create the connection. This
provides the ability to make changes to the SSL object before the
connection is actually made.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test/asynciotest.c')
-rw-r--r-- | test/asynciotest.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/asynciotest.c b/test/asynciotest.c index de67cce3e7..720cc7c662 100644 --- a/test/asynciotest.c +++ b/test/asynciotest.c @@ -276,8 +276,13 @@ int main(int argc, char *argv[]) } /* BIOs get freed on error */ - if (!create_ssl_connection(serverctx, clientctx, &serverssl, &clientssl, - s_to_c_fbio, c_to_s_fbio)) { + if (!create_ssl_objects(serverctx, clientctx, &serverssl, &clientssl, + s_to_c_fbio, c_to_s_fbio)) { + printf("Test %d failed: Create SSL objects failed\n", test); + goto end; + } + + if (!create_ssl_connection(serverssl, clientssl)) { printf("Test %d failed: Create SSL connection failed\n", test); goto end; } |