From b4982125e63882cf9d77c704ef555105528a5dac Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 4 Jul 2016 14:55:50 +0100 Subject: 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 --- test/asynciotest.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/asynciotest.c') 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; } -- cgit v1.2.3