Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bachmann <kontakt@maxbachmann.de>2022-05-05 10:56:10 +0300
committerPauli <pauli@openssl.org>2022-05-09 03:06:18 +0300
commit836bb0890dc4d139215824cc9ac35591361f8117 (patch)
tree4e31d172972359235be0e679fe98aeda4aae4c06 /crypto/bio/bss_conn.c
parenteab9dbbdd1f102dc1a26549a77fcc5c167385cd5 (diff)
Exclude IPv6 code using OPENSSL_USE_IPV6 instead of AF_INET6
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18250)
Diffstat (limited to 'crypto/bio/bss_conn.c')
-rw-r--r--crypto/bio/bss_conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bss_conn.c b/crypto/bio/bss_conn.c
index 8c2e3567ea..87238319fb 100644
--- a/crypto/bio/bss_conn.c
+++ b/crypto/bio/bss_conn.c
@@ -108,7 +108,7 @@ static int conn_state(BIO *b, BIO_CONNECT *c)
* at least the "else" part will always be
* compiled.
*/
-#ifdef AF_INET6
+#if OPENSSL_USE_IPV6
family = AF_INET6;
} else {
#endif
@@ -421,7 +421,7 @@ static long conn_ctrl(BIO *b, int cmd, long num, void *ptr)
*pptr = (const char *)BIO_ADDRINFO_address(data->addr_iter);
} else if (num == 3) {
switch (BIO_ADDRINFO_family(data->addr_iter)) {
-# ifdef AF_INET6
+# if OPENSSL_USE_IPV6
case AF_INET6:
ret = BIO_FAMILY_IPV6;
break;