]> 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:23 +0000 (16:24 +0000)
commit21e3f84e56ee33c7b12be918d7795f31ec44c29e
tree612ba4f9041c243d5a17ff413641929ff00837e3
parentc3d2f328528efa286dfd2014c0bb58e8fd5b2416
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