From: Hugo Landau Date: Wed, 9 Aug 2023 16:46:33 +0000 (+0100) Subject: BIO_s_datagram: Wire capability negotiation for BIO_s_datagram X-Git-Tag: openssl-3.2.0-alpha1~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bd35edc6603523953db24321df10d41c7a37923;p=thirdparty%2Fopenssl.git BIO_s_datagram: Wire capability negotiation for BIO_s_datagram Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21715) --- diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index eb6897a3fdb..cc947943e5e 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: {