diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-08-09 17:46:33 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-09-01 10:45:34 +0100 |
commit | 1bd35edc6603523953db24321df10d41c7a37923 (patch) | |
tree | 7e2158a8bcaca111d701fd8ec32127f05ce0409e /crypto | |
parent | 000ef7818b24a61611825670299ab82b283e0501 (diff) |
BIO_s_datagram: Wire capability negotiation for BIO_s_datagram
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 'crypto')
-rw-r--r-- | crypto/bio/bss_dgram.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index eb6897a3fd..cc947943e5 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -971,6 +971,13 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr) *(int *)ptr = data->local_addr_enabled; break; + case BIO_CTRL_DGRAM_GET_EFFECTIVE_CAPS: + ret = (long)(BIO_DGRAM_CAP_HANDLES_DST_ADDR + | BIO_DGRAM_CAP_HANDLES_SRC_ADDR + | BIO_DGRAM_CAP_PROVIDES_DST_ADDR + | BIO_DGRAM_CAP_PROVIDES_SRC_ADDR); + break; + case BIO_CTRL_GET_RPOLL_DESCRIPTOR: case BIO_CTRL_GET_WPOLL_DESCRIPTOR: { |