diff options
author | Andy Polyakov <appro@openssl.org> | 2012-04-16 17:43:02 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-04-16 17:43:02 +0000 |
commit | f6a1939f0fc3e6b709607c5412af906fbba0353b (patch) | |
tree | 1512aee5900a00e996bf4867f585c284701a428b /ssl/bio_ssl.c | |
parent | 94c666479d2c099f697233a3f8a8082afa135d0b (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.c | 2 |
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); } |