BIO: Add SSL poll descriptor type
authorHugo Landau <hlandau@openssl.org>
Wed, 31 Jan 2024 12:34:21 +0000 (12:34 +0000)
committerHugo Landau <hlandau@openssl.org>
Sat, 10 Feb 2024 11:37:13 +0000 (11:37 +0000)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23495)

include/openssl/bio.h.in

index 418d119737f5b214d36b69e6d7f2aa18dd5dd79c..d1a29bee32887a1ccd6dcafc991346bdb0c81c1b 100644 (file)
@@ -384,6 +384,7 @@ typedef struct bio_mmsg_cb_args_st {
 
 #define BIO_POLL_DESCRIPTOR_TYPE_NONE       0
 #define BIO_POLL_DESCRIPTOR_TYPE_SOCK_FD    1
+#define BIO_POLL_DESCRIPTOR_TYPE_SSL        2
 #define BIO_POLL_DESCRIPTOR_CUSTOM_START    8192
 
 typedef struct bio_poll_descriptor_st {
@@ -392,6 +393,7 @@ typedef struct bio_poll_descriptor_st {
         int         fd;
         void        *custom;
         uintptr_t   custom_ui;
+        SSL         *ssl;
     } value;
 } BIO_POLL_DESCRIPTOR;