Fixes #21624
With OPENSSL_NO_POSIX_IO or OPENSSL_NO_SOCK the function
wait_until_sock_readable() currently does not exist.
Define empty wait_until_sock_readable() when building
with no-posix-io.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/21677)
#define MAXLOOPS 1000000
#if defined(OSSL_USE_SOCKETS)
+
int wait_until_sock_readable(int sock)
{
fd_set readfds;
BIO_free(c_to_s_bio);
return 0;
}
+
+#else
+
+int wait_until_sock_readable(int sock)
+{
+ return 0;
+}
+
#endif /* defined(OSSL_USE_SOCKETS) */
/*