summaryrefslogtreecommitdiff
path: root/crypto/bio/bio_lib.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 /crypto/bio/bio_lib.c
parent4ed9e0a1e36eaa8f07a4a5371f9d13912a3f9da8 (diff)
downloadopenssl-new-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 'crypto/bio/bio_lib.c')
-rw-r--r--crypto/bio/bio_lib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c
index cceef45095..4708b984fa 100644
--- a/crypto/bio/bio_lib.c
+++ b/crypto/bio/bio_lib.c
@@ -490,6 +490,16 @@ int BIO_recvmmsg(BIO *b, BIO_MSG *msg,
return ret;
}
+int BIO_get_rpoll_descriptor(BIO *b, BIO_POLL_DESCRIPTOR *desc)
+{
+ return BIO_ctrl(b, BIO_CTRL_GET_RPOLL_DESCRIPTOR, 0, desc);
+}
+
+int BIO_get_wpoll_descriptor(BIO *b, BIO_POLL_DESCRIPTOR *desc)
+{
+ return BIO_ctrl(b, BIO_CTRL_GET_WPOLL_DESCRIPTOR, 0, desc);
+}
+
int BIO_puts(BIO *b, const char *buf)
{
int ret;