summaryrefslogtreecommitdiffstats
path: root/include/openssl
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-08-09 17:46:33 +0100
committerHugo Landau <hlandau@openssl.org>2023-09-01 10:45:34 +0100
commit000ef7818b24a61611825670299ab82b283e0501 (patch)
tree13e158a9077a60aecd22f93811f3272c7e67756a /include/openssl
parentf3295bd80c44f0e202026ec856c73d8c9bb04670 (diff)
BIO: Add BIO_dgram_detect_peer_addr API
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/openssl')
-rw-r--r--include/openssl/bio.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/bio.h.in b/include/openssl/bio.h.in
index 9d196c7ae5..e797769909 100644
--- a/include/openssl/bio.h.in
+++ b/include/openssl/bio.h.in
@@ -190,6 +190,7 @@ extern "C" {
# define BIO_CTRL_GET_RPOLL_DESCRIPTOR 90
# define BIO_CTRL_GET_WPOLL_DESCRIPTOR 91
+# define BIO_CTRL_DGRAM_DETECT_PEER_ADDR 92
# define BIO_DGRAM_CAP_NONE 0U
# define BIO_DGRAM_CAP_HANDLES_SRC_ADDR (1U << 0)
@@ -639,6 +640,8 @@ int BIO_ctrl_reset_read_request(BIO *b);
(int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)(peer))
# define BIO_dgram_set_peer(b,peer) \
(int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)(peer))
+# define BIO_dgram_detect_peer_addr(b,peer) \
+ (int)BIO_ctrl(b, BIO_CTRL_DGRAM_DETECT_PEER_ADDR, 0, (char *)(peer))
# define BIO_dgram_get_mtu_overhead(b) \
(unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, NULL)
# define BIO_dgram_get_local_addr_cap(b) \