]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Fri, 7 Jun 2024 16:24:30 +0000 (16:24 +0000)
commitf3e88d366c3392c03872271a758e364559c8e5cf
treea10b2a2d00b3c0a1f62e92545ae2cc8ac4a6c3c7
parentf789b7765baf68a471b9dda42181fd4204ca74e6
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