diff options
author | Andy Polyakov <appro@openssl.org> | 2012-04-16 17:43:15 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2012-04-16 17:43:15 +0000 |
commit | 32e12316e52a6161dd32ec5d7155e9769e1a0c83 (patch) | |
tree | 4c5644ba72ced86d644a1e48ee2ef19dd1d5251c /ssl | |
parent | ad7b24f145ad9753d9d77e4459bd331379d80686 (diff) |
OPENSSL_NO_SOCK fixes [from HEAD].
PR: 2791
Submitted by: Ben Noordhuis
Diffstat (limited to 'ssl')
-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); } |