summaryrefslogtreecommitdiffstats
path: root/ssl/bio_ssl.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2012-04-16 17:43:02 +0000
committerAndy Polyakov <appro@openssl.org>2012-04-16 17:43:02 +0000
commitf6a1939f0fc3e6b709607c5412af906fbba0353b (patch)
tree1512aee5900a00e996bf4867f585c284701a428b /ssl/bio_ssl.c
parent94c666479d2c099f697233a3f8a8082afa135d0b (diff)
OPENSSL_NO_SOCK fixes [from HEAD].
PR: 2791 Submitted by: Ben Noordhuis
Diffstat (limited to 'ssl/bio_ssl.c')
-rw-r--r--ssl/bio_ssl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c
index eedac8a3fc..e9552caee2 100644
--- a/ssl/bio_ssl.c
+++ b/ssl/bio_ssl.c
@@ -538,6 +538,7 @@ err:
BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
{
+#ifndef OPENSSL_NO_SOCK
BIO *ret=NULL,*con=NULL,*ssl=NULL;
if ((con=BIO_new(BIO_s_connect())) == NULL)
@@ -549,6 +550,7 @@ BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
return(ret);
err:
if (con != NULL) BIO_free(con);
+#endif
return(NULL);
}