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/ssltestlib.h | |
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/ssltestlib.h')
-rw-r--r-- | test/ssltestlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ssltestlib.h b/test/ssltestlib.h index 04952a6f29..27f7547751 100644 --- a/test/ssltestlib.h +++ b/test/ssltestlib.h @@ -15,8 +15,9 @@ int create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm, SSL_CTX **sctx, SSL_CTX **cctx, char *certfile, char *privkeyfile); -int create_ssl_connection(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, - SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio); +int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, + SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio); +int create_ssl_connection(SSL *serverssl, SSL *clientssl); /* Note: Not thread safe! */ const BIO_METHOD *bio_f_tls_dump_filter(void); |