Skip to content

Commit 4a1fbd1

Browse files
author
Andy Polyakov
committed
OPENSSL_NO_SOCK fixes.
PR: 2791 Submitted by: Ben Noordhuis
1 parent 9eba561 commit 4a1fbd1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crypto/bio/b_sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,6 @@ int BIO_set_tcp_ndelay(int s, int on)
960960
#endif
961961
return(ret == 0);
962962
}
963-
#endif
964963

965964
int BIO_socket_nbio(int s, int mode)
966965
{
@@ -973,3 +972,4 @@ int BIO_socket_nbio(int s, int mode)
973972
#endif
974973
return(ret == 0);
975974
}
975+
#endif

ssl/bio_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx)
538538

539539
BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
540540
{
541+
#ifndef OPENSSL_NO_SOCK
541542
BIO *ret=NULL,*con=NULL,*ssl=NULL;
542543

543544
if ((con=BIO_new(BIO_s_connect())) == NULL)
@@ -549,6 +550,7 @@ BIO *BIO_new_ssl_connect(SSL_CTX *ctx)
549550
return(ret);
550551
err:
551552
if (con != NULL) BIO_free(con);
553+
#endif
552554
return(NULL);
553555
}
554556

0 commit comments

Comments
 (0)