QUIC: Wire SSL_net_(read|write)_desired for TLS/DTLS
authorHugo Landau <hlandau@openssl.org>
Wed, 6 Sep 2023 07:04:17 +0000 (08:04 +0100)
committerPauli <pauli@openssl.org>
Wed, 20 Sep 2023 01:20:27 +0000 (11:20 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21979)

ssl/ssl_lib.c

index fdc8b6b82410d9c22a32c7494bc95c2f6fc77836..fec9124ce4c091f2e487ec77762406fa4901e93a 100644 (file)
@@ -7344,11 +7344,11 @@ int SSL_net_read_desired(SSL *s)
 {
 #ifndef OPENSSL_NO_QUIC
     if (!IS_QUIC(s))
-        return 0;
+        return SSL_want_read(s);
 
     return ossl_quic_get_net_read_desired(s);
 #else
-    return 0;
+    return SSL_want_read(s);
 #endif
 }
 
@@ -7356,11 +7356,11 @@ int SSL_net_write_desired(SSL *s)
 {
 #ifndef OPENSSL_NO_QUIC
     if (!IS_QUIC(s))
-        return 0;
+        return SSL_want_write(s);
 
     return ossl_quic_get_net_write_desired(s);
 #else
-    return 0;
+    return SSL_want_write(s);
 #endif
 }