From: Tomas Mraz Date: Mon, 7 Aug 2023 17:52:32 +0000 (+0200) Subject: quicapitest.c: Fix missing wait_until_sock_readable() X-Git-Tag: openssl-3.2.0-alpha1~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5df3fc093c8ef17152e6c645be6fa9a77c56679;p=thirdparty%2Fopenssl.git quicapitest.c: Fix missing wait_until_sock_readable() 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 Reviewed-by: Tom Cosgrove (Merged from https://github.com/openssl/openssl/pull/21677) --- diff --git a/test/helpers/ssltestlib.c b/test/helpers/ssltestlib.c index 0c3a076ea91..01a51ac41d3 100644 --- a/test/helpers/ssltestlib.c +++ b/test/helpers/ssltestlib.c @@ -884,6 +884,7 @@ int create_ssl_ctx_pair(OSSL_LIB_CTX *libctx, const SSL_METHOD *sm, #define MAXLOOPS 1000000 #if defined(OSSL_USE_SOCKETS) + int wait_until_sock_readable(int sock) { fd_set readfds; @@ -1011,6 +1012,14 @@ int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, BIO_free(c_to_s_bio); return 0; } + +#else + +int wait_until_sock_readable(int sock) +{ + return 0; +} + #endif /* defined(OSSL_USE_SOCKETS) */ /*