]> 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)
committerSean Bright <sean@seanbright.com>
Fri, 7 Jun 2024 16:24:21 +0000 (16:24 +0000)
commitf9a359c5c58b9e928f0038b952c8277f164f9a32
treef7d1dce0db445b40a0deef06e1c5ed6509bb53c0
parent735330bbd1a6290efdc7d1d69fe27d7e9083af37
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
main/xml.c
res/res_calendar_caldav.c