]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC OBJ: Require blocking support in the domain flags to use blocking mode
authorHugo Landau <hlandau@openssl.org>
Wed, 24 Apr 2024 12:52:26 +0000 (13:52 +0100)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:32 +0000 (11:27 -0500)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24971)

ssl/quic/quic_obj.c

index b2c4add2a56f5ea1b527cf83f6051e201cc426fb..8c69cff21bbe45573db3645d0454b48121441ceb 100644 (file)
@@ -98,6 +98,10 @@ int ossl_quic_obj_can_support_blocking(const QUIC_OBJ *obj)
     assert(obj != NULL);
     rtor = ossl_quic_obj_get0_reactor(obj);
 
+    if ((obj->domain_flags
+            & (SSL_DOMAIN_FLAG_LEGACY_BLOCKING | SSL_DOMAIN_FLAG_BLOCKING)) == 0)
+        return 0;
+
     return ossl_quic_reactor_can_poll_r(rtor)
         || ossl_quic_reactor_can_poll_w(rtor);
 }