From 68801bcb766806a04e95e8ef714a0b836b1d7069 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Thu, 17 Nov 2022 15:17:39 +0000 Subject: Add BIO poll descriptors Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/19703) --- ssl/bio_ssl.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ssl/bio_ssl.c') 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; -- cgit v1.2.3