]> 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:25 +0000 (16:24 +0000)
commit126cb5a20dfb6fe633fcab5f5f6f82ac383c2dfd
tree36ba18ad709fae21627ff3f4bf93247a3bfcbb55
parent4fea8a433b398f869ce438b9211730538d42ecb6
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