summaryrefslogtreecommitdiff
path: root/c14n.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix libz and liblzma detectionNick Wellnhofer2017-11-271-1/+1
| | | | | | | | | If libz or liblzma are detected with pkg-config, AC_CHECK_HEADERS must not be run because the correct CPPFLAGS aren't set. It is actually not required have separate checks for LIBXML_ZLIB_ENABLED and HAVE_ZLIB_H. Only check for LIBXML_ZLIB_ENABLED and remove HAVE_ZLIB_H macro. Fixes bug 764657, bug 787041.
* Fix misc callback signaturesNick Wellnhofer2017-11-091-3/+4
| | | | | Fix parameter and return types for xmlC14NIsVisibleCallback and xmlRegExecCallbacks.
* Fix list callback signaturesNick Wellnhofer2017-11-091-9/+20
| | | | | | | | | Make sure that all parameters and return values of list callback functions exactly match the callback function type. This is required to pass clang's Control Flow Integrity checks and to allow compilation to asm.js with Emscripten. Also change the `user` parameter type from `const void *` to `void *`.
* Treat URIs with scheme as absolute in C14NNick Wellnhofer2017-06-121-7/+0
| | | | Fixes bug 783656.
* properly quote the namespace uris written out during c14nAleksey Sanin2013-05-091-4/+5
|
* Big space and tab cleanupDaniel Veillard2012-09-111-313/+313
| | | | Remove all space before tabs and space and tabs at end of lines.
* Convert C14N to the new Input bufferDaniel Veillard2012-07-231-2/+4
| | | | one case of direct access cleaned up
* Fix a bunch of scan 'dead increments' and cleanupDaniel Veillard2009-09-051-1/+1
| | | | | | | | * HTMLparser.c c14n.c debugXML.c entities.c nanohttp.c parser.c testC14N.c uri.c xmlcatalog.c xmllint.c xmlregexp.c xpath.c: fix unused variables, or unneeded increments as well as a couple of space issues * runtest.c: check for NULL before calling unlink()
* Fix a couple of ABI issues with C14N 1.1Aleksey Sanin2009-07-091-5/+19
| | | | | * include/libxml/c14n.h c14n.c: fix API to not include enum xmlC14NMode in the arguments, and do a bit more check on input
* Aleksey Sanin support for c14n 1.1Aleksey Sanin2009-07-091-59/+352
| | | | | | | | | * c14n.c include/libxml/c14n.h: adds support for C14N 1.1, new flags at the API level * runtest.c Makefile.am testC14N.c xmllint.c: add support in CLI tools and test binaries * result/c14n/1-1-without-comments/* test/c14n/1-1-without-comments/*: add a new batch of tests
* * c14n.c debugXML.c doc/examples/io2.c parser.c schematron.cDaniel Veillard2009-06-041-1/+1
| | | | | valid.c xmlschemas.c xmlwriter.c xpath.c: use %s to printf string patch by Christian Persch, fixes #581612
* fix a few warning raised by gcc-4.1 and latests changes DanielDaniel Veillard2006-03-101-0/+1
| | | | | | * c14n.c encoding.c xmlschemas.c xpath.c xpointer.c: fix a few warning raised by gcc-4.1 and latests changes Daniel
* fixed bug in exc-c14n namespace visibility + test case 319367(bug #319367)Aleksey Sanin2005-10-281-1/+1
|
* fixing rendering of attributes when parent node is not in the node setAleksey Sanin2005-06-071-8/+7
|
* fixed xml attributes processing bug in exc c14n added --exc-c14n commandAleksey Sanin2005-06-061-1/+1
| | | | | * c14n.c: fixed xml attributes processing bug in exc c14n * xmllint.c: added --exc-c14n command line option
* revamped the elfgcchack.h format to cope with gcc4 change of aliasingDaniel Veillard2005-04-011-0/+2
| | | | | | | | | | | * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel
* special case "DAV:" namespace in c14n relative namespaces check and addAleksey Sanin2005-03-201-194/+140
| | | | | | * c14n.c include/libxml/xmlerror.h: special case "DAV:" namespace in c14n relative namespaces check and add structured error messages to c14n code
* fixed c14n bug with serializing attribute namespacesAleksey Sanin2004-05-251-1/+1
|
* fixing C14N bug with processing namespaces from attributesAleksey Sanin2004-04-201-1/+7
|
* Setting up the framework for structured error reporting, touches a lot ofDaniel Veillard2003-10-101-3/+3
| | | | | | | | | | | * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c xmlschemas.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/valid.h include/libxml/xmlerror.h: Setting up the framework for structured error reporting, touches a lot of modules, but little code now the error handling trail has been cleaned up. Daniel
* converted the C14N module too DanielDaniel Veillard2003-10-101-30/+72
| | | | | * c14n.c include/libxml/xmlerror.h: converted the C14N module too Daniel
* Okay this is scary but it is just adding a configure option to disableDaniel Veillard2003-09-291-0/+2
| | | | | | | | | | | | | | | | | | * HTMLtree.c SAX2.c c14n.c catalog.c configure.in debugXML.c encoding.c entities.c nanoftp.c nanohttp.c parser.c relaxng.c testAutomata.c testC14N.c testHTML.c testRegexp.c testRelax.c testSchemas.c testXPath.c threads.c tree.c valid.c xmlIO.c xmlcatalog.c xmllint.c xmlmemory.c xmlreader.c xmlschemas.c example/gjobread.c include/libxml/HTMLtree.h include/libxml/c14n.h include/libxml/catalog.h include/libxml/debugXML.h include/libxml/entities.h include/libxml/nanohttp.h include/libxml/relaxng.h include/libxml/tree.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlschemas.h include/libxml/xmlversion.h.in include/libxml/xpathInternals.h python/libxml.c: Okay this is scary but it is just adding a configure option to disable output, this touches most of the files. Daniel
* added xmlMallocAtomic() to be used when allocating blocks which do notDaniel Veillard2003-04-191-1/+1
| | | | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
* code cleanup, especially the function comments. fixed a small bug whenDaniel Veillard2002-12-101-2/+2
| | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c debugXML.c encoding.c hash.c nanoftp.c nanohttp.c parser.c parserInternals.c testC14N.c testDocbook.c threads.c tree.c valid.c xmlIO.c xmllint.c xmlmemory.c xmlreader.c xmlregexp.c xmlschemas.c xmlschemastypes.c xpath.c: code cleanup, especially the function comments. * tree.c: fixed a small bug when freeing nodes which are XInclude ones. Daniel
* get rid of all the perror() calls made in the library execution paths.Daniel Veillard2002-09-051-2/+2
| | | | | | | | * DOCBparser.c HTMLparser.c c14n.c entities.c list.c parser.c parserInternals.c xmlIO.c: get rid of all the perror() calls made in the library execution paths. This should fix both #92059 and #92385 Daniel
* fixed memory leak in c14n codeAleksey Sanin2002-08-021-0/+4
| | | | * c14n.c: fixed memory leak in c14n code
* fixed one more c14n + namespaces corner case from new Merlin's test suiteAleksey Sanin2002-08-011-221/+313
| | | | * c14n.c include/libxml/c14n.h: fixed one more c14n + namespaces corner case from new Merlin's test suite and added a callback that will be used to improve xmlsec performance
* added merlin-c14n-two.tar.gz tests for c14n/exc-c14n and slightly modifiedAleksey Sanin2002-06-041-124/+281
| | | | | | | | | | | | | | | | * result/c14n/exc-without-comments/merlin-c14n-two-* result/c14n/without-comments/merlin-c14n-two-* test/c14n/exc-without-comments/merlin-c14n-two-* test/c14n/without-comments/merlin-c14n-two-* testC14N.c Makefile.am: added merlin-c14n-two.tar.gz tests for c14n/exc-c14n and slightly modified test script to handle these test cases * c14n.c: fixed bugs for complicated nodes set (namespace without node and others from merlin-c14n-two.tar.gz) * include/libxml/xpathInternals.h win32/dsp/libxml2.def.src win32/libxml2.def.src: "opened" xmlXPathNodeSetFreeNs() function for xmlsec performance patch * xpath.c: fixed self::node() for namespaces and attributes
* Makefile.am: updated c14n tests suiteAleksey Sanin2002-05-311-47/+49
| | | | c14n.c: performance improvement for previous c14n patch
* propagating xpath ancesstors node fix to c14n plus small performanceAleksey Sanin2002-05-311-58/+118
| | | | * c14n.c: propagating xpath ancesstors node fix to c14n plus small performance improvement to reduce number of mallocs * xpath.c: fixed ancestors axis processing for namespace nodes
* patch from Aleksey Sanin reflecting a change in the ExcC14N specificationDaniel Veillard2002-04-181-8/+6
| | | | | | * c14n.c: patch from Aleksey Sanin reflecting a change in the ExcC14N specification Daniel
* patch from Mark Vakoc to build C14N if DocBook and HTML support is notDaniel Veillard2002-03-211-0/+6
| | | | | | * c14n.c: patch from Mark Vakoc to build C14N if DocBook and HTML support is not configured in. Daniel
* preparing 2.4.18 updated and rebuilt the web site implement the newLIBXML_2_4_18Daniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
* applied a new patch from Aleksey Sanin updated the documentation toDaniel Veillard2002-03-171-13/+8
| | | | | | | * c14n.c: applied a new patch from Aleksey Sanin * doc/site.xsl doc/xml.html doc/*.html: updated the documentation to reference Aleksey implementation of XML digital Signatures Daniel
* another patch from Aleksey Sanin DanielDaniel Veillard2002-03-151-3/+9
| | | | | * c14n.c: another patch from Aleksey Sanin Daniel
* applied patch from Aleksey Sanin fixing a problem in the canonicalizationDaniel Veillard2002-03-151-1/+8
| | | | | | | | * c14n.c: applied patch from Aleksey Sanin fixing a problem in the canonicalization algorithm * doc/xml.html doc/index.html: added the C14N references on the index page. Daniel
* Fixing #74186, made sure all boolean expressions get fully parenthesized,Daniel Veillard2002-03-111-755/+801
| | | | | | | | | | * c14n.c: Fixing #74186, made sure all boolean expressions get fully parenthesized, ran indent on the output * configure.in HTMLtree.c SAX.c c14n.c debugXML.c tree.c xpointer.c include/libxml/tree.h: also #74186 related, removed the --with-buffers option, and all the preprocessor conditional sections that were resulting from it. Daniel
* fixed a few comments regenerated the docs and added the C14N API fixupsDaniel Veillard2002-03-091-3/+3
| | | | | | | | * c14n.c: fixed a few comments * doc/*.html doc/*/*.html: regenerated the docs and added the C14N API * doc/api.xsl doc/gnome-xml.sgml: fixups and added IDs Daniel
* fixing #61290 "namespace nodes have no parent" long standing divergenceDaniel Veillard2002-03-041-0/+1556
* xpath.c: fixing #61290 "namespace nodes have no parent" long standing divergence from the XPath REC. NodeSets simply hold a copy of namespace nodes and those node ->next points to the parent (which may not be the node carrying the definition). * include/libxml/xpath.h: flagged but didn't added a possible speedup * DOCBparser.c HTMLparser.c: removed some warnings from push parser due to new state being added. * tree.c: new fix from Boris Erdmann * configure.in c14n.c include/libxml/c14n.h testC14N.c: added the XML Canonalization support from Aleksey Sanin Daniel