summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorNeil Horman <nhorman@openssl.org>2024-09-23 18:11:01 +0200
committerTomas Mraz <tomas@openssl.org>2024-09-26 10:02:30 +0200
commitc4ec708bd58715fab10b8a6085ac89d79615b250 (patch)
treecc4b0c8920542c742d1c175724adb774b351aeaf /ssl
parentcheck-format.pl: do checks regarding statement/block after for() also on {OSS... (diff)
downloadopenssl-c4ec708bd58715fab10b8a6085ac89d79615b250.tar.xz
openssl-c4ec708bd58715fab10b8a6085ac89d79615b250.zip
Rename list macros
The quic implementation defined a set of LIST_* macros for list manipulation, which conflicts with the generally support BSD api found in the queue.h system header. While this isn't normally a problem, A report arrived indicating that MacOSX appears to implicitly include queue.h from another system header which causes definition conflicts. As the openssl macros are internal only, it seems the most sensible thing to do is place them in a well known namespace for our library to avoid the conflict, so add an OSSL_ prefix to all our macros Fixes #25516 Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Saša Nedvědický <sashan@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/25519)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/quic/quic_engine.c2
-rw-r--r--ssl/quic/quic_port.c6
-rw-r--r--ssl/quic/quic_rcidm.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/ssl/quic/quic_engine.c b/ssl/quic/quic_engine.c
index 3bcb5d6810..f0724f240e 100644
--- a/ssl/quic/quic_engine.c
+++ b/ssl/quic/quic_engine.c
@@ -131,7 +131,7 @@ static void qeng_tick(QUIC_TICK_RESULT *res, void *arg, uint32_t flags)
return;
/* Iterate through all ports and service them. */
- LIST_FOREACH(port, port, &qeng->port_list) {
+ OSSL_LIST_FOREACH(port, port, &qeng->port_list) {
QUIC_TICK_RESULT subr = {0};
ossl_quic_port_subtick(port, &subr, flags);
diff --git a/ssl/quic/quic_port.c b/ssl/quic/quic_port.c
index c8cdc66898..87c0ac0ca6 100644
--- a/ssl/quic/quic_port.c
+++ b/ssl/quic/quic_port.c
@@ -273,7 +273,7 @@ int ossl_quic_port_set_net_wbio(QUIC_PORT *port, BIO *net_wbio)
if (!port_update_poll_desc(port, net_wbio, /*for_write=*/1))
return 0;
- LIST_FOREACH(ch, ch, &port->channel_list)
+ OSSL_LIST_FOREACH(ch, ch, &port->channel_list)
ossl_qtx_set_bio(ch->qtx, net_wbio);
port->net_wbio = net_wbio;
@@ -373,7 +373,7 @@ void ossl_quic_port_subtick(QUIC_PORT *port, QUIC_TICK_RESULT *res,
port_rx_pre(port);
/* Iterate through all channels and service them. */
- LIST_FOREACH(ch, ch, &port->channel_list) {
+ OSSL_LIST_FOREACH(ch, ch, &port->channel_list) {
QUIC_TICK_RESULT subr = {0};
ossl_quic_channel_subtick(ch, &subr, flags);
@@ -603,7 +603,7 @@ void ossl_quic_port_raise_net_error(QUIC_PORT *port,
if (triggering_ch != NULL)
ossl_quic_channel_raise_net_error(triggering_ch);
- LIST_FOREACH(ch, ch, &port->channel_list)
+ OSSL_LIST_FOREACH(ch, ch, &port->channel_list)
if (ch != triggering_ch)
ossl_quic_channel_raise_net_error(ch);
}
diff --git a/ssl/quic/quic_rcidm.c b/ssl/quic/quic_rcidm.c
index 77d8cbfcc0..18f7e8096b 100644
--- a/ssl/quic/quic_rcidm.c
+++ b/ssl/quic/quic_rcidm.c
@@ -310,7 +310,7 @@ void ossl_quic_rcidm_free(QUIC_RCIDM *rcidm)
while ((rcid = ossl_pqueue_RCID_pop(rcidm->rcids)) != NULL)
OPENSSL_free(rcid);
- LIST_FOREACH_DELSAFE(rcid, rnext, retiring, &rcidm->retiring_list)
+ OSSL_LIST_FOREACH_DELSAFE(rcid, rnext, retiring, &rcidm->retiring_list)
OPENSSL_free(rcid);
ossl_pqueue_RCID_free(rcidm->rcids);