summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-09 17:46:32 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-01 10:45:33 +0100
commit7841dbabec50eb701022154d9639a01c2a875eaa (patch)
tree0dcc13a414a95a4c25b1eee5a5a944079ca62c07 /include
parented28cb8140f1de81eca0f90b169af2b783abfe16 (diff)
BIO_s_connect: Add support for datagram mode
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21715)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/bio.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/openssl/bio.h.in b/include/openssl/bio.h.in
index 91d3f8e41c..9d196c7ae5 100644
--- a/include/openssl/bio.h.in
+++ b/include/openssl/bio.h.in
@@ -461,6 +461,10 @@ typedef struct bio_poll_descriptor_st {
# define BIO_C_SET_TFO 156 /* like BIO_C_SET_NBIO */
+# define BIO_C_SET_SOCK_TYPE 157
+# define BIO_C_GET_SOCK_TYPE 158
+# define BIO_C_GET_DGRAM_BIO 159
+
# define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg)
# define BIO_get_app_data(s) BIO_get_ex_data(s,0)
@@ -488,6 +492,9 @@ typedef struct bio_poll_descriptor_st {
# define BIO_get_conn_ip_family(b) BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)
# define BIO_get_conn_mode(b) BIO_ctrl(b,BIO_C_GET_CONNECT,4,NULL)
# define BIO_set_conn_mode(b,n) BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)
+# define BIO_set_sock_type(b,t) BIO_ctrl(b,BIO_C_SET_SOCK_TYPE,(t),NULL)
+# define BIO_get_sock_type(b) BIO_ctrl(b,BIO_C_GET_SOCK_TYPE,0,NULL)
+# define BIO_get_dgram_bio(b, p) BIO_ctrl(b,BIO_C_GET_DGRAM_BIO,0,(void *)(BIO **)(p))
/* BIO_s_accept() */
# define BIO_set_accept_name(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0, \