]> git.ipfire.org Git - thirdparty/openssl.git/commit
Rename list macros
authorNeil Horman <nhorman@openssl.org>
Mon, 23 Sep 2024 16:11:01 +0000 (12:11 -0400)
committerTomas Mraz <tomas@openssl.org>
Thu, 26 Sep 2024 08:02:48 +0000 (10:02 +0200)
commit009b2e2a4c968b87d1f0dea02251a17e8103aeca
treee73ac3c5e5ca38e539126ff34c32beece97941d7
parent8fdd5cc3db745174dc9d33482ad09fac81d23931
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)

(cherry picked from commit c4ec708bd58715fab10b8a6085ac89d79615b250)
include/internal/list.h
ssl/quic/quic_engine.c
ssl/quic/quic_port.c
ssl/quic/quic_rcidm.c