1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

parser: Introduce XML_INPUT_NETWORK input flag

This allows to disable network access when creating parser inputs with
xmlInputCreateUrl.
This commit is contained in:
Nick Wellnhofer
2024-06-11 18:11:51 +02:00
parent 780e432a5c
commit ab5e6debd1
3 changed files with 13 additions and 0 deletions

View File

@@ -363,6 +363,7 @@ XMLPUBFUN xmlParserInputPtr
#define XML_INPUT_BUF_STATIC (1u << 1)
#define XML_INPUT_BUF_ZERO_TERMINATED (1u << 2)
#define XML_INPUT_UNZIP (1u << 3)
#define XML_INPUT_NETWORK (1u << 4)
XMLPUBFUN int
xmlInputCreateUrl(const char *url, int flags, xmlParserInputPtr *out);