aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/bio_ssl.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2022-11-17 15:17:39 +0000
committerHugo Landau <hlandau@openssl.org>2023-01-13 13:20:14 +0000
commit68801bcb766806a04e95e8ef714a0b836b1d7069 (patch)
tree1ea4c0098636cc8241114e25f2761fccac618790 /ssl/bio_ssl.c
parent4ed9e0a1e36eaa8f07a4a5371f9d13912a3f9da8 (diff)
downloadopenssl-68801bcb766806a04e95e8ef714a0b836b1d7069.tar.gz
Add BIO poll descriptors
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19703)
Diffstat (limited to 'ssl/bio_ssl.c')
-rw-r--r--ssl/bio_ssl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ssl/bio_ssl.c b/ssl/bio_ssl.c
index c9bb20b2da..64d1849c7e 100644
--- a/ssl/bio_ssl.c
+++ b/ssl/bio_ssl.c
@@ -385,6 +385,14 @@ static long ssl_ctrl(BIO *b, int cmd, long num, void *ptr)
case BIO_CTRL_SET_CALLBACK:
ret = 0; /* use callback ctrl */
break;
+ case BIO_CTRL_GET_RPOLL_DESCRIPTOR:
+ if (!SSL_get_rpoll_descriptor(ssl, (BIO_POLL_DESCRIPTOR *)ptr))
+ ret = 0;
+ break;
+ case BIO_CTRL_GET_WPOLL_DESCRIPTOR:
+ if (!SSL_get_wpoll_descriptor(ssl, (BIO_POLL_DESCRIPTOR *)ptr))
+ ret = 0;
+ break;
default:
ret = BIO_ctrl(sc->rbio, cmd, num, ptr);
break;