]> git.ipfire.org Git - thirdparty/asterisk.git/commit
xml.c: Update deprecated libxml2 API usage.
authorSean Bright <sean@seanbright.com>
Thu, 23 May 2024 14:23:03 +0000 (10:23 -0400)
committerAsterisk Development Team <asteriskteam@digium.com>
Mon, 2 Jun 2025 13:37:25 +0000 (13:37 +0000)
commit140e87e6600ad398f5e7b502b338e6263b5e2e60
treef5d21acefd531313d9f3c1f51ab890397deccfba
parentf6cc391a71880827b755d0b2991dc36264bfb9f2
xml.c: Update deprecated libxml2 API usage.

Two functions are deprecated as of libxml2 2.12:

  * xmlSubstituteEntitiesDefault
  * xmlParseMemory

So we update those with supported API.

Additionally, `res_calendar_caldav` has been updated to use libxml2's
xmlreader API instead of the SAX2 API which has always felt a little
hacky (see deleted comment block in `res_calendar_caldav.c`).

The xmlreader API has been around since libxml2 2.5.0 which was
released in 2003.

Fixes #725

(cherry picked from commit ed12e22ad9d3e8922e22b8f408d9af5ce88fa05b)
main/xml.c
res/res_calendar_caldav.c