Fix a compile error with the no-sock option
authorMatt Caswell <matt@openssl.org>
Tue, 1 Dec 2020 15:19:56 +0000 (15:19 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 2 Dec 2020 17:04:54 +0000 (17:04 +0000)
commitc195c882335874505f58debf3f6bf750377c62af
tree4df777cef9d474dcbace14bfa550a65b28455bfc
parentc39f43534d4f359bdfee617f70f89b114c9f2cca
Fix a compile error with the no-sock option

BIO_do_connect() can work even in no-sock builds (non socket based BIOs
have the right ctrls). Therefore we move the macro outside of the
OPENSSL_NO_SOCK guards

Fixes #12207

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13587)
include/openssl/bio.h.in