Skip to content

Commit 351991f

Browse files
authored
Merge pull request #2 from lsh123/master
Update with master branch
2 parents 45f09c9 + 5dc2b11 commit 351991f

24 files changed

+218
-98
lines changed

.travis.yml

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,49 @@
11
language: c
2-
sudo: required
3-
dist: trusty
4-
install:
5-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
6-
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
7-
# install build tools
8-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install automake autoconf libtool; fi
9-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install libtool pkg-config; fi
10-
# install libxml2/libxslt libraries
11-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libxml2 libxml2-dev libxslt1.1 libxslt1-dev; fi
12-
# install openssl libraries
13-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libssl1.0.0 libssl-dev; fi
14-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install openssl; fi
15-
# install nspr/nss libraries
16-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libnspr4 libnspr4-dev libnss3 libnss3-dev libnss3-tools; fi
17-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install nss; fi
18-
# install gcrypt libraries
19-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libgcrypt11 libgcrypt11-dev; fi
20-
# install gnutls libraries
21-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libgnutls28 libgnutls-dev; fi
2+
os: linux
3+
dist: bionic
4+
5+
addons:
6+
apt:
7+
packages:
8+
- automake
9+
- autoconf
10+
- libtool
11+
- libtool-bin
12+
- libltdl-dev
13+
- libltdl7
14+
- libxml2
15+
- libxml2-dev
16+
- libxslt1.1
17+
- libxslt1-dev
18+
- libssl1.0.0
19+
- libssl-dev
20+
- libnspr4
21+
- libnspr4-dev
22+
- libnss3
23+
- libnss3-dev
24+
- libnss3-tools
25+
- libgcrypt20
26+
- libgcrypt20-dev
27+
- libgnutls28-dev
28+
homebrew:
29+
packages:
30+
- libtool
31+
- openssl
32+
- nss
33+
- libgcrypt
34+
- gnutls
35+
2236
script:
2337
- . scripts/travis-env.sh && mkdir build && cd build && ../autogen.sh --enable-werror && make && make check
24-
matrix:
38+
39+
jobs:
2540
include:
26-
- name: "linux"
41+
- name: "linux-x86_64"
2742
os: linux
43+
arch: amd64
2844
- name: "osx"
2945
os: osx
3046
osx_image: xcode9.3
47+
- name: "linux-s390x"
48+
os: linux
49+
arch: s390x

INSTALL

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Compilation
22

33
1. How to compile XMLSec?
4+
45
As most UNIX libraries XMLSec follows the "standard":
56

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

2021
make check
2122

23+
Alternatively there are several community maintained ports to CMake
24+
build system:
25+
26+
* https://github.com/vmiklos/odfsig/tree/master/extern/xmlsec
27+
28+
* https://github.com/microsoft/vcpkg/tree/master/ports/xmlsec
29+
30+
2231
2.What other libraries are needed to compile/install XMLSec?
2332
XMLSec requires following libraries:
2433

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# You can check the whole build process in the logs, and any later commit will start
1313
# a new build using a fresh virtual machine.
1414

15-
version: '1.2.29-{build}'
15+
version: '1.2.30-{build}'
1616

1717
shallow_clone: true
1818
skip_branch_with_pr: true

autogen.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ fi
3636
echo "You must have autoconf installed to compile xmlsec."
3737
DIE=1
3838
}
39+
(autoreconf --version) < /dev/null > /dev/null 2>&1 || {
40+
echo
41+
echo "You must have autoreconf installed to compile xmlsec."
42+
DIE=1
43+
}
3944
(automake --version) < /dev/null > /dev/null 2>&1 || {
4045
echo
4146
echo "You must have automake installed to compile xmlsec."
@@ -76,6 +81,8 @@ echo "Running automake..."
7681
automake --gnu --add-missing
7782
echo "Running autoconf..."
7883
autoconf
84+
echo "Running autoreconf..."
85+
autoreconf -i
7986

8087
cd $THEDIR
8188

configure.ac

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
AC_INIT([xmlsec1],[1.2.29],[http://www.aleksey.com/xmlsec])
2+
AC_INIT([xmlsec1],[1.2.30],[http://www.aleksey.com/xmlsec])
33

44
XMLSEC_PACKAGE=xmlsec1
55
XMLSEC_VERSION_MAJOR=1
66
XMLSEC_VERSION_MINOR=2
7-
XMLSEC_VERSION_SUBMINOR=29
7+
XMLSEC_VERSION_SUBMINOR=30
88
XMLSEC_VERSION="$XMLSEC_VERSION_MAJOR.$XMLSEC_VERSION_MINOR.$XMLSEC_VERSION_SUBMINOR"
99
XMLSEC_VERSION_INFO=`echo $XMLSEC_VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
1010
XMLSEC_VERSION_SAFE=`echo $XMLSEC_VERSION | sed 's/\./_/g'`
@@ -315,7 +315,7 @@ if test "z$LIBXML_FOUND" = "zno" -a "z$with_libxml" != "z" -a "z$with_libxml" !=
315315
AC_MSG_RESULT([yes])
316316
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
317317
LIBXML_INCLUDE_PATH="$with_libxml/include/libxml2"
318-
LIBXSLT_LIB_PATH="$with_libxml/lib"
318+
LIBXML_LIB_PATH="$with_libxml/lib"
319319
LIBXML_FOUND="yes"
320320
AC_MSG_RESULT([yes])
321321
else

docs/Makefile.am

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ docs-copy:
2727
if [ z"$(srcdir)" != z"$(builddir)" -a z"`uname`" != z"Darwin" ]; \
2828
then \
2929
$(CP) -ru $(srcdir)/*.html $(srcdir)/*.ico $(srcdir)/images $(builddir)/ ; \
30-
chmod u+w $(builddir)/*.html ; \
31-
chmod u+w $(builddir)/*.ico ; \
32-
chmod -R u+w $(builddir)/images ; \
30+
(chmod u+w $(builddir)/*.html || true) ; \
31+
(chmod u+w $(builddir)/*.ico || true) ; \
32+
(chmod -R u+w $(builddir)/images || true) ; \
3333
fi \
3434
)
3535

@@ -94,8 +94,8 @@ endif
9494
clean-local:
9595
-rm -f *.stamp
9696
( if [ z"$(srcdir)" != z"$(builddir)" ] ; then \
97-
chmod -R u+w $(builddir)/images && rm -rf $(builddir)/images ; \
98-
chmod -R u+w $(builddir)/src && rm -rf $(builddir)/src ; \
97+
(chmod -R u+w $(builddir)/images || true) && rm -rf $(builddir)/images ; \
98+
(chmod -R u+w $(builddir)/src || true) && rm -rf $(builddir)/src ; \
9999
(for i in `find $(builddir) -name "*.html" -print` ; do \
100100
echo "Removing files '$$i' ... " ; \
101101
chmod -R u+w $$i && rm -f $$i ; \

docs/api/Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ clean-local:
268268
-rm -rf $(SOURCE_CODE_DIR) $(EXAMPLES_DIR) $(SCAN_DIR)/*.txt $(SGML_DIR) $(GTKDOC_MKDB_OUTPUT_DIR)
269269
-rm -f *.stamp *.types index.sgml
270270
@( if [ z"$(builddir)" != z"$(srcdir)" ] ; then \
271-
chmod -R u+w $(builddir)/src && rm -rf $(builddir)/src ; \
272-
chmod -R u+w $(builddir)/images && rm -rf $(builddir)/images ; \
273-
chmod -R u+w $(builddir)/*.png && rm -rf $(builddir)/*.png ; \
271+
(chmod -R u+w $(builddir)/src || true) && rm -rf $(builddir)/src ; \
272+
(chmod -R u+w $(builddir)/images || true) && rm -rf $(builddir)/images ; \
273+
(chmod -R u+w $(builddir)/*.png || true) && rm -rf $(builddir)/*.png ; \
274274
fi ; )
275275

276276
distclean-local: clean-local

docs/api/xmlsec-index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,7 @@
13521352
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParseFile" title="xmlSecParseFile ()">xmlSecParseFile</a></p></li>
13531353
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParseMemoryExt" title="xmlSecParseMemoryExt ()">xmlSecParseMemoryExt</a></p></li>
13541354
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParseMemory" title="xmlSecParseMemory ()">xmlSecParseMemory</a></p></li>
1355+
<li class="listitem"><p><a class="link" href="xmlsec-parser.html#xmlSecParsePrepareCtxt" title="xmlSecParsePrepareCtxt ()">xmlSecParsePrepareCtxt</a></p></li>
13551356
<li class="listitem"><p><a class="link" href="xmlsec-xmltree.html#xmlSecPrintXmlString" title="xmlSecPrintXmlString ()">xmlSecPrintXmlString</a></p></li>
13561357
<li class="listitem"><p><a class="link" href="xmlsec-list.html#xmlSecPtrDebugDumpItemMethod" title="xmlSecPtrDebugDumpItemMethod ()">xmlSecPtrDebugDumpItemMethod</a></p></li>
13571358
<li class="listitem"><p><a class="link" href="xmlsec-list.html#xmlSecPtrDestroyItemMethod" title="xmlSecPtrDestroyItemMethod ()">xmlSecPtrDestroyItemMethod</a></p></li>

docs/api/xmlsec-parser.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ <h2><span class="refentrytitle"><a name="xmlsec-parser.top_of_page"></a>parser</
6969
</tr>
7070
<tr>
7171
<td class="function_type">
72+
<font><span class="returnvalue">void</span></font>
73+
</td>
74+
<td class="function_name">
75+
<a class="link" href="xmlsec-parser.html#xmlSecParsePrepareCtxt" title="xmlSecParsePrepareCtxt ()">xmlSecParsePrepareCtxt</a> <span class="c_punctuation">()</span>
76+
</td>
77+
</tr>
78+
<tr>
79+
<td class="function_type">
7280
<font><span class="returnvalue">xmlSecTransformId</span></font>
7381
</td>
7482
<td class="function_name">
@@ -228,6 +236,28 @@ <h2><span class="refentrytitle"><a name="xmlsec-parser.top_of_page"></a>parser</
228236
</div>
229237
<hr>
230238
<div class="refsect2">
239+
<a name="xmlSecParsePrepareCtxt"></a><h3>xmlSecParsePrepareCtxt ()</h3>
240+
<pre class="programlisting"><font><span class="returnvalue">void</span></font>
241+
xmlSecParsePrepareCtxt (<em class="parameter"><code><font><span class="type">xmlParserCtxtPtr</span></font> ctxt</code></em>);</pre>
242+
<p>Prepares parser context for parsing XML for XMLSec.</p>
243+
<div class="refsect3">
244+
<a name="xmlSecParsePrepareCtxt.parameters"></a><h4>Parameters</h4>
245+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
246+
<colgroup>
247+
<col>
248+
<col>
249+
<col>
250+
</colgroup>
251+
<tbody><tr>
252+
<td class="parameter_name"><p>ctxt</p></td>
253+
<td class="parameter_description"><p>the parser context</p></td>
254+
<td class="parameter_annotations"> </td>
255+
</tr></tbody>
256+
</table></div>
257+
</div>
258+
</div>
259+
<hr>
260+
<div class="refsect2">
231261
<a name="xmlSecTransformXmlParserGetKlass"></a><h3>xmlSecTransformXmlParserGetKlass ()</h3>
232262
<pre class="programlisting"><font><span class="returnvalue">xmlSecTransformId</span></font>
233263
xmlSecTransformXmlParserGetKlass (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>

docs/api/xmlsec-version.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2><span class="refentrytitle"><a name="xmlsec-version.top_of_page"></a>version
7878
<a name="xmlsec-version.other_details"></a><h2>Types and Values</h2>
7979
<div class="refsect2">
8080
<a name="XMLSEC-VERSION:CAPS"></a><h3>XMLSEC_VERSION</h3>
81-
<pre class="programlisting">#define XMLSEC_VERSION "1.2.29"
81+
<pre class="programlisting">#define XMLSEC_VERSION "1.2.30"
8282
</pre>
8383
<p>The library version string in the format
8484
"$major_number.$minor_number.$sub_minor_number".</p>
@@ -100,14 +100,14 @@ <h2><span class="refentrytitle"><a name="xmlsec-version.top_of_page"></a>version
100100
<hr>
101101
<div class="refsect2">
102102
<a name="XMLSEC-VERSION-SUBMINOR:CAPS"></a><h3>XMLSEC_VERSION_SUBMINOR</h3>
103-
<pre class="programlisting">#define XMLSEC_VERSION_SUBMINOR 29
103+
<pre class="programlisting">#define XMLSEC_VERSION_SUBMINOR 30
104104
</pre>
105105
<p>The library sub-minor version number.</p>
106106
</div>
107107
<hr>
108108
<div class="refsect2">
109109
<a name="XMLSEC-VERSION-INFO:CAPS"></a><h3>XMLSEC_VERSION_INFO</h3>
110-
<pre class="programlisting">#define XMLSEC_VERSION_INFO "3:29:2"
110+
<pre class="programlisting">#define XMLSEC_VERSION_INFO "3:30:2"
111111
</pre>
112112
<p>The library version info string in the format
113113
"$major_number+$minor_number:$sub_minor_number:$minor_number".</p>

0 commit comments

Comments
 (0)