aboutsummaryrefslogtreecommitdiff
path: root/test/ssltestlib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-01-04 11:13:39 +0000
committerMatt Caswell <matt@openssl.org>2019-01-06 10:06:43 +0000
commit5e9072ed99971fa5e47326c2f8ffa4bc9624a584 (patch)
tree427e57f5dc7b99f748c662ecda6589f5babb6edb /test/ssltestlib.c
parent87bbbfb1e4fc2035e8f9ec1d6313a41c410a3218 (diff)
downloadopenssl-5e9072ed99971fa5e47326c2f8ffa4bc9624a584.zip
openssl-5e9072ed99971fa5e47326c2f8ffa4bc9624a584.tar.gz
openssl-5e9072ed99971fa5e47326c2f8ffa4bc9624a584.tar.bz2
Fix no-sock
Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7981)
Diffstat (limited to 'test/ssltestlib.c')
-rw-r--r--test/ssltestlib.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c
index 50c7112..8187513 100644
--- a/test/ssltestlib.c
+++ b/test/ssltestlib.c
@@ -663,7 +663,7 @@ int create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm,
#define MAXLOOPS 1000000
-#ifndef OPENSSL_NO_KTLS
+#if !defined(OPENSSL_NO_KTLS) && !defined(OPENSSL_NO_SOCK)
static int set_nb(int fd)
{
int flags;
@@ -736,12 +736,6 @@ success:
close(afd);
return ret;
}
-#else
-int create_test_sockets(int *cfd, int *sfd)
-{
- return 0;
-}
-#endif
int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
SSL **cssl, int sfd, int cfd)
@@ -775,6 +769,7 @@ int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
BIO_free(c_to_s_bio);
return 0;
}
+#endif
/*
* NOTE: Transfers control of the BIOs - this function will free them on error