Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 41 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,49 @@
language: c
sudo: required
dist: trusty
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
# install build tools
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install automake autoconf libtool; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libtool pkg-config; fi
# install libxml2/libxslt libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libxml2 libxml2-dev libxslt1.1 libxslt1-dev; fi
# install openssl libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libssl1.0.0 libssl-dev; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install openssl; fi
# install nspr/nss libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libnspr4 libnspr4-dev libnss3 libnss3-dev libnss3-tools; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install nss; fi
# install gcrypt libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libgcrypt11 libgcrypt11-dev; fi
# install gnutls libraries
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libgnutls28 libgnutls-dev; fi
os: linux
dist: bionic

addons:
apt:
packages:
- automake
- autoconf
- libtool
- libtool-bin
- libltdl-dev
- libltdl7
- libxml2
- libxml2-dev
- libxslt1.1
- libxslt1-dev
- libssl1.0.0
- libssl-dev
- libnspr4
- libnspr4-dev
- libnss3
- libnss3-dev
- libnss3-tools
- libgcrypt20
- libgcrypt20-dev
- libgnutls28-dev
homebrew:
packages:
- libtool
- openssl
- nss
- libgcrypt
- gnutls

script:
- . scripts/travis-env.sh && mkdir build && cd build && ../autogen.sh --enable-werror && make && make check
matrix:

jobs:
include:
- name: "linux"
- name: "linux-x86_64"
os: linux
arch: amd64
- name: "osx"
os: osx
osx_image: xcode9.3
- name: "linux-s390x"
os: linux
arch: s390x
9 changes: 9 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Compilation

1. How to compile XMLSec?

As most UNIX libraries XMLSec follows the "standard":

gunzip -c xmlsec-xxx.tar.gz | tar xvf -
Expand All @@ -19,6 +20,14 @@ that the library is compiled successfully by running

make check

Alternatively there are several community maintained ports to CMake
build system:

* https://github.com/vmiklos/odfsig/tree/master/extern/xmlsec

* https://github.com/microsoft/vcpkg/tree/master/ports/xmlsec


2.What other libraries are needed to compile/install XMLSec?
XMLSec requires following libraries:

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# You can check the whole build process in the logs, and any later commit will start
# a new build using a fresh virtual machine.

version: '1.2.29-{build}'
version: '1.2.30-{build}'

shallow_clone: true
skip_branch_with_pr: true
Expand Down
7 changes: 7 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ fi
echo "You must have autoconf installed to compile xmlsec."
DIE=1
}
(autoreconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoreconf installed to compile xmlsec."
DIE=1
}
(automake --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have automake installed to compile xmlsec."
Expand Down Expand Up @@ -76,6 +81,8 @@ echo "Running automake..."
automake --gnu --add-missing
echo "Running autoconf..."
autoconf
echo "Running autoreconf..."
autoreconf -i

cd $THEDIR

Expand Down
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT([xmlsec1],[1.2.29],[http://www.aleksey.com/xmlsec])
AC_INIT([xmlsec1],[1.2.30],[http://www.aleksey.com/xmlsec])

XMLSEC_PACKAGE=xmlsec1
XMLSEC_VERSION_MAJOR=1
XMLSEC_VERSION_MINOR=2
XMLSEC_VERSION_SUBMINOR=29
XMLSEC_VERSION_SUBMINOR=30
XMLSEC_VERSION="$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR"
XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
XMLSEC_VERSION_SAFE=`echo $XMLSEC_VERSION | sed 's/\./_/g'`
Expand Down Expand Up @@ -315,7 +315,7 @@ if test "z$LIBXML_FOUND" = "zno" -a "z$with_libxml" != "z" -a "z$with_libxml" !=
AC_MSG_RESULT([yes])
elif test [ -f "$with_libxml/include/libxml2/$LIBXML_INCLUDE_MARKER" ] -a [ -f "$with_libxml/lib/$LIBXML_SHARED_LIB_MARKER" -o -f "$with_libxml/lib/$LIBXML_STATIC_LIB_MARKER" ] ; then
LIBXML_INCLUDE_PATH="$with_libxml/include/libxml2"
LIBXSLT_LIB_PATH="$with_libxml/lib"
LIBXML_LIB_PATH="$with_libxml/lib"
LIBXML_FOUND="yes"
AC_MSG_RESULT([yes])
else
Expand Down
10 changes: 5 additions & 5 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ docs-copy:
if [ z"$(srcdir)" != z"$(builddir)" -a z"`uname`" != z"Darwin" ]; \
then \
$(CP) -ru $(srcdir)/*.html $(srcdir)/*.ico $(srcdir)/images $(builddir)/ ; \
chmod u+w $(builddir)/*.html ; \
chmod u+w $(builddir)/*.ico ; \
chmod -R u+w $(builddir)/images ; \
(chmod u+w $(builddir)/*.html || true) ; \
(chmod u+w $(builddir)/*.ico || true) ; \
(chmod -R u+w $(builddir)/images || true) ; \
fi \
)

Expand Down Expand Up @@ -94,8 +94,8 @@ endif
clean-local:
-rm -f *.stamp
( if [ z"$(srcdir)" != z"$(builddir)" ] ; then \
chmod -R u+w $(builddir)/images && rm -rf $(builddir)/images ; \
chmod -R u+w $(builddir)/src && rm -rf $(builddir)/src ; \
(chmod -R u+w $(builddir)/images || true) && rm -rf $(builddir)/images ; \
(chmod -R u+w $(builddir)/src || true) && rm -rf $(builddir)/src ; \
(for i in `find $(builddir) -name "*.html" -print` ; do \
echo "Removing files '$$i' ... " ; \
chmod -R u+w $$i && rm -f $$i ; \
Expand Down
6 changes: 3 additions & 3 deletions docs/api/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ clean-local:
-rm -rf $(SOURCE_CODE_DIR) $(EXAMPLES_DIR) $(SCAN_DIR)/*.txt $(SGML_DIR) $(GTKDOC_MKDB_OUTPUT_DIR)
-rm -f *.stamp *.types index.sgml
@( if [ z"$(builddir)" != z"$(srcdir)" ] ; then \
chmod -R u+w $(builddir)/src && rm -rf $(builddir)/src ; \
chmod -R u+w $(builddir)/images && rm -rf $(builddir)/images ; \
chmod -R u+w $(builddir)/*.png && rm -rf $(builddir)/*.png ; \
(chmod -R u+w $(builddir)/src || true) && rm -rf $(builddir)/src ; \
(chmod -R u+w $(builddir)/images || true) && rm -rf $(builddir)/images ; \
(chmod -R u+w $(builddir)/*.png || true) && rm -rf $(builddir)/*.png ; \
fi ; )

distclean-local: clean-local
Expand Down
1 change: 1 addition & 0 deletions docs/api/xmlsec-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1352,6 +1352,7 @@
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParseFile" title="xmlSecParseFile ()">xmlSecParseFile</a></p></li>
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParseMemoryExt" title="xmlSecParseMemoryExt ()">xmlSecParseMemoryExt</a></p></li>
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParseMemory" title="xmlSecParseMemory ()">xmlSecParseMemory</a></p></li>
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParsePrepareCtxt" title="xmlSecParsePrepareCtxt ()">xmlSecParsePrepareCtxt</a></p></li>
<li class="listitem"><p><a class="link" href="xmlsec-xmltree.html#xmlSecPrintXmlString" title="xmlSecPrintXmlString ()">xmlSecPrintXmlString</a></p></li>
<li class="listitem"><p><a class="link" href="xmlsec-list.html#xmlSecPtrDebugDumpItemMethod" title="xmlSecPtrDebugDumpItemMethod ()">xmlSecPtrDebugDumpItemMethod</a></p></li>
<li class="listitem"><p><a class="link" href="xmlsec-list.html#xmlSecPtrDestroyItemMethod" title="xmlSecPtrDestroyItemMethod ()">xmlSecPtrDestroyItemMethod</a></p></li>
Expand Down
30 changes: 30 additions & 0 deletions docs/api/xmlsec-parser.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ <h2><span class="refentrytitle"><a name="xmlsec-parser.top_of_page"></a>parser</
</tr>
<tr>
<td class="function_type">
<font><span class="returnvalue">void</span></font>
</td>
<td class="function_name">
<a class="link" href="xmlsec-parser.html#xmlSecParsePrepareCtxt" title="xmlSecParsePrepareCtxt ()">xmlSecParsePrepareCtxt</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<font><span class="returnvalue">xmlSecTransformId</span></font>
</td>
<td class="function_name">
Expand Down Expand Up @@ -228,6 +236,28 @@ <h2><span class="refentrytitle"><a name="xmlsec-parser.top_of_page"></a>parser</
</div>
<hr>
<div class="refsect2">
<a name="xmlSecParsePrepareCtxt"></a><h3>xmlSecParsePrepareCtxt ()</h3>
<pre class="programlisting"><font><span class="returnvalue">void</span></font>
xmlSecParsePrepareCtxt (<em class="parameter"><code><font><span class="type">xmlParserCtxtPtr</span></font> ctxt</code></em>);</pre>
<p>Prepares parser context for parsing XML for XMLSec.</p>
<div class="refsect3">
<a name="xmlSecParsePrepareCtxt.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col>
<col>
<col>
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ctxt</p></td>
<td class="parameter_description"><p>the parser context</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="xmlSecTransformXmlParserGetKlass"></a><h3>xmlSecTransformXmlParserGetKlass ()</h3>
<pre class="programlisting"><font><span class="returnvalue">xmlSecTransformId</span></font>
xmlSecTransformXmlParserGetKlass (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
Expand Down
6 changes: 3 additions & 3 deletions docs/api/xmlsec-version.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2><span class="refentrytitle"><a name="xmlsec-version.top_of_page"></a>version
<a name="xmlsec-version.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="XMLSEC-VERSION:CAPS"></a><h3>XMLSEC_VERSION</h3>
<pre class="programlisting">#define XMLSEC_VERSION "1.2.29"
<pre class="programlisting">#define XMLSEC_VERSION "1.2.30"
</pre>
<p>The library version string in the format
"$major_number.$minor_number.$sub_minor_number".</p>
Expand All @@ -100,14 +100,14 @@ <h2><span class="refentrytitle"><a name="xmlsec-version.top_of_page"></a>version
<hr>
<div class="refsect2">
<a name="XMLSEC-VERSION-SUBMINOR:CAPS"></a><h3>XMLSEC_VERSION_SUBMINOR</h3>
<pre class="programlisting">#define XMLSEC_VERSION_SUBMINOR 29
<pre class="programlisting">#define XMLSEC_VERSION_SUBMINOR 30
</pre>
<p>The library sub-minor version number.</p>
</div>
<hr>
<div class="refsect2">
<a name="XMLSEC-VERSION-INFO:CAPS"></a><h3>XMLSEC_VERSION_INFO</h3>
<pre class="programlisting">#define XMLSEC_VERSION_INFO "3:29:2"
<pre class="programlisting">#define XMLSEC_VERSION_INFO "3:30:2"
</pre>
<p>The library version info string in the format
"$major_number+$minor_number:$sub_minor_number:$minor_number".</p>
Expand Down
1 change: 1 addition & 0 deletions docs/api/xmlsec.devhelp2
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@
<keyword type="function" name="xmlSecParseFile ()" link="xmlsec-parser.html#xmlSecParseFile"/>
<keyword type="function" name="xmlSecParseMemory ()" link="xmlsec-parser.html#xmlSecParseMemory"/>
<keyword type="function" name="xmlSecParseMemoryExt ()" link="xmlsec-parser.html#xmlSecParseMemoryExt"/>
<keyword type="function" name="xmlSecParsePrepareCtxt ()" link="xmlsec-parser.html#xmlSecParsePrepareCtxt"/>
<keyword type="function" name="xmlSecTransformXmlParserGetKlass ()" link="xmlsec-parser.html#xmlSecTransformXmlParserGetKlass"/>
<keyword type="macro" name="xmlSecTransformXmlParserId" link="xmlsec-parser.html#xmlSecTransformXmlParserId"/>
<keyword type="function" name="xmlSecTmplSignatureCreate ()" link="xmlsec-templates.html#xmlSecTmplSignatureCreate"/>
Expand Down
9 changes: 7 additions & 2 deletions docs/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@
<h1>Download</h1>
</div>
<h2>Stable releases.</h2>
<p>The latest stable XML Security Library version is <b>1.2.29</b>:</p>
<p>The latest stable XML Security Library version is <b>1.2.30</b>:</p>
<ul>
<li>
<a href="http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.29.tar.gz">Sources for latest version</a>.</li>
<a href="http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.30.tar.gz">Sources for latest version</a>.</li>
<li>
<a href="http://www.zlatkovic.com/projects/libxml/index.html">Windows binaries</a> for XMLSec Library
(as well as LibXML2, LibXSLT and OpenSSL) from <a href="mailto:igor@zlatkovic.com">Igor Zlatkovic</a>.</li>
Expand Down Expand Up @@ -461,6 +461,11 @@ <h2>Installation (source archive)</h2>
<h2>GIT</h2>
<p>XML Security Library is available from the <a href="https://github.com/lsh123/xmlsec">GitHub</a>.
</p>
<h2>Other languages</h2>
<p><ul>
<li><a href="https://github.com/mehcode/python-xmlsec">Python xmlsec module</a></li>
<li><a href="https://github.com/estrelow/Perl-LibXML-Sec">Perl LibXML-Sec module</a></li>
</ul></p>
</td></tr></table></td>
</tr></table></body>
</html>
10 changes: 9 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,15 @@ <h1>XML Security Library</h1>
see the Copyright file in the distribution for details.<br><br></p>
<p><b>News</b></p>
<ul>
<li>October 15 2019<br>
<li>April 21 2020<br>
The <a href="download.html">XML Security Library 1.2.30</a> release includes the following changes:
<ul>
<li>Enabled XML_PARSE_HUGE for all xml parsers.</li>
<li>Added s390x support for travis (nayana-ibm).</li>
<li>Several other small fixes (<a href="https://github.com/lsh123/xmlsec/commits/master">more details</a>).</li>
</ul>
</li>
<br><li>October 15 2019<br>
The <a href="download.html">XML Security Library 1.2.29</a> release includes the following changes:
<ul>
<li>Various build and tests fixes and improvements.</li>
Expand Down
10 changes: 9 additions & 1 deletion docs/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,15 @@
<h1>XML Security Library News</h1>
</div>
<ul>
<li>October 15 2019<br>
<li>April 21 2020<br>
The <a href="download.html">XML Security Library 1.2.30</a> release includes the following changes:
<ul>
<li>Enabled XML_PARSE_HUGE for all xml parsers.</li>
<li>Added s390x support for travis (nayana-ibm).</li>
<li>Several other small fixes (<a href="https://github.com/lsh123/xmlsec/commits/master">more details</a>).</li>
</ul>
</li>
<br><li>October 15 2019<br>
The <a href="download.html">XML Security Library 1.2.29</a> release includes the following changes:
<ul>
<li>Various build and tests fixes and improvements.</li>
Expand Down
2 changes: 1 addition & 1 deletion include/xmlsec/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ XMLSEC_EXPORT xmlDocPtr xmlSecParseMemoryExt (const xmlSecByte *prefi
xmlSecSize bufferSize,
const xmlSecByte *postfix,
xmlSecSize postfixSize);

XMLSEC_EXPORT void xmlSecParsePrepareCtxt (xmlParserCtxtPtr ctxt);

/**
* xmlSecTransformXmlParserId:
Expand Down
2 changes: 1 addition & 1 deletion man/xmlsec1-config.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
.TH XMLSEC1-CONFIG "1" "October 2019" "xmlsec1-config 1.2.29" "User Commands"
.TH XMLSEC1-CONFIG "1" "April 2020" "xmlsec1-config 1.2.30" "User Commands"
.SH NAME
xmlsec1-config \- detail installed version of xmlsec library
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion man/xmlsec1.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
.TH XMLSEC1 "1" "October 2019" "xmlsec1 1.2.29 (openssl)" "User Commands"
.TH XMLSEC1 "1" "April 2020" "xmlsec1 1.2.30 (openssl)" "User Commands"
.SH NAME
xmlsec1 \- sign, verify, encrypt and decrypt XML documents
.SH SYNOPSIS
Expand Down
11 changes: 11 additions & 0 deletions src/dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,18 @@ xmlSecCryptoDLLibraryCreate(const xmlChar* name) {
#endif /* XMLSEC_DL_LIBLTDL */

#ifdef XMLSEC_DL_WIN32
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
lib->handle = LoadLibraryA((char*)lib->filename);
#else
LPWSTR wcLibFilename = xmlSecWin32ConvertUtf8ToUnicode(lib->filename);
if(wcLibFilename == NULL) {
xmlSecIOError("xmlSecWin32ConvertUtf8ToTstr", lib->filename, NULL);
xmlSecCryptoDLLibraryDestroy(lib);
return(NULL);
}
lib->handle = LoadPackagedLibrary(wcLibFilename, 0);
xmlFree(wcLibFilename);
#endif
if(lib->handle == NULL) {
xmlSecIOError("LoadLibraryA", lib->filename, NULL);
xmlSecCryptoDLLibraryDestroy(lib);
Expand Down
Loading