]> 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>
Thu, 11 Jul 2024 13:22:44 +0000 (13:22 +0000)
commit5f8f4a6852f8bfbb79fe2053c05e05f565bd00c8
tree20e08fd824b940e9d8e83136285c17da1a4ab1a2
parentb5b873d8b884ec1c557ca7ba3fa97669310ba95c
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 21e3f84e56ee33c7b12be918d7795f31ec44c29e)
main/xml.c
res/res_calendar_caldav.c