Skip to content

Commit bd27926

Browse files
authored
Merge pull request #3 from lsh123/master
Keep up to date.
2 parents 351991f + f3a59c7 commit bd27926

File tree

12 files changed

+178
-116
lines changed

12 files changed

+178
-116
lines changed

.github/workflows/make-check.yml

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
name: Make Check
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
check-ubuntu:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- static_linking: true
17+
- static_linking: false
18+
steps:
19+
- name: install dependencies
20+
run: |
21+
sudo apt update
22+
sudo apt install automake autoconf libtool libtool-bin libltdl-dev libltdl7
23+
sudo apt install libxml2 libxml2-dev libxslt1.1 libxslt1-dev
24+
sudo apt install libssl1.0.0 libssl-dev libnspr4 libnspr4-dev libnss3 libnss3-dev libnss3-tools libgcrypt20 libgcrypt20-dev libgnutls28-dev
25+
- uses: actions/checkout@v2
26+
- run: mkdir build
27+
- name: configure
28+
working-directory: build
29+
run: ../autogen.sh --enable-werror --enable-static-linking=${{ matrix.static_linking }}
30+
- name: make
31+
working-directory: build
32+
run: make
33+
- name: make check
34+
working-directory: build
35+
run: make check
36+
37+
check-osx:
38+
runs-on: macos-latest
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
include:
43+
- static_linking: true
44+
- static_linking: false
45+
steps:
46+
- name: install dependencies
47+
run: |
48+
brew update
49+
brew install automake autoconf libtool
50+
# brew install libxml2 libxslt
51+
brew install openssl nspr nss libgcrypt gnutls
52+
- uses: actions/checkout@v2
53+
- run: mkdir build
54+
- name: configure
55+
working-directory: build
56+
run: ../autogen.sh --enable-werror --enable-static-linking=${{ matrix.static_linking }}
57+
- name: make
58+
working-directory: build
59+
run: make
60+
- name: make check
61+
working-directory: build
62+
run: make check
63+
64+
check-mingw:
65+
runs-on: windows-latest
66+
strategy:
67+
fail-fast: false
68+
matrix:
69+
include:
70+
- msystem: MINGW64
71+
arch: x86_64
72+
unicode: true
73+
static_linking: true
74+
- msystem: MINGW64
75+
arch: x86_64
76+
unicode: true
77+
static_linking: false
78+
- msystem: MINGW64
79+
arch: x86_64
80+
unicode: false
81+
static_linking: true
82+
- msystem: MINGW64
83+
arch: x86_64
84+
unicode: false
85+
static_linking: false
86+
defaults:
87+
run:
88+
shell: msys2 {0}
89+
steps:
90+
- uses: msys2/setup-msys2@v2
91+
with:
92+
msystem: ${{ matrix.msystem }}
93+
release: false
94+
update: false
95+
install: >-
96+
git
97+
base-devel
98+
mingw-w64-${{ matrix.arch }}-toolchain
99+
mingw-w64-${{ matrix.arch }}-libtool
100+
mingw-w64-${{ matrix.arch }}-libxml2
101+
mingw-w64-${{ matrix.arch }}-libxslt
102+
mingw-w64-${{ matrix.arch }}-openssl
103+
mingw-w64-${{ matrix.arch }}-nspr
104+
mingw-w64-${{ matrix.arch }}-nss
105+
mingw-w64-${{ matrix.arch }}-gnutls
106+
- run: git config --global core.autocrlf input
107+
shell: bash
108+
- uses: actions/checkout@v2
109+
- run: mkdir build
110+
- name: configure
111+
working-directory: build
112+
run: pwd && ../autogen.sh --build="${{ matrix.arch }}-w64-mingw32" --host="${{ matrix.arch }}-w64-mingw32" --enable-unicode=${{ matrix.unicode }} --enable-static-linking=${{ matrix.static_linking }} --enable-mscrypto --enable-mscng
113+
- name: make
114+
working-directory: build
115+
run: make
116+
- name: make check
117+
working-directory: build
118+
run: make check

.travis.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

appveyor.yml

Lines changed: 15 additions & 33 deletions
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.30-{build}'
15+
version: '1.2.31-{build}'
1616

1717
shallow_clone: true
1818
skip_branch_with_pr: true
@@ -64,43 +64,25 @@ environment:
6464
UNICODE: no
6565
WERROR: yes
6666

67-
- COMPILER: MinGW-w64
68-
STATIC: no
69-
UNICODE: yes
70-
71-
- COMPILER: MinGW-w64
72-
STATIC: yes
73-
UNICODE: no
74-
7567
init:
7668
- git config --global core.autocrlf input
77-
- if [%COMPILER%]==[MinGW-w64] set PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%
78-
- if [%COMPILER%]==[MSVC17] set PATH=%EXTRAS_FOLDER%\bin;%EXTRAS_FOLDER%\lib;;%PATH%
69+
- set PATH=%EXTRAS_FOLDER%\bin;%EXTRAS_FOLDER%\lib;;%PATH%
7970

8071
install:
81-
- if [%COMPILER%]==[MinGW-w64] pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
82-
- if [%COMPILER%]==[MinGW-w64] pacman -S --noconfirm --needed mingw-w64-x86_64-{toolchain,libtool}
83-
- if [%COMPILER%]==[MinGW-w64] pacman -S --noconfirm --needed mingw-w64-x86_64-{libxml2,libxslt,openssl,gnutls}
84-
- if [%COMPILER%]==[MSVC17] call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
85-
- if [%COMPILER%]==[MSVC17] mkdir %EXTRAS_FOLDER% && cd %EXTRAS_FOLDER%
86-
- if [%COMPILER%]==[MSVC17] appveyor DownloadFile %EXTRAS_URL%/%LIBXML2_FILE%
87-
- if [%COMPILER%]==[MSVC17] 7z x %LIBXML2_FILE%
88-
- if [%COMPILER%]==[MSVC17] appveyor DownloadFile %EXTRAS_URL%/%LIBXSLT_FILE%
89-
- if [%COMPILER%]==[MSVC17] 7z x %LIBXSLT_FILE%
90-
- if [%COMPILER%]==[MSVC17] appveyor DownloadFile %EXTRAS_URL%/%OPENSSL_FILE%
91-
- if [%COMPILER%]==[MSVC17] 7z x %OPENSSL_FILE%
92-
- if [%COMPILER%]==[MSVC17] cd %APPVEYOR_BUILD_FOLDER%
72+
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
73+
- mkdir %EXTRAS_FOLDER% && cd %EXTRAS_FOLDER%
74+
- appveyor DownloadFile %EXTRAS_URL%/%LIBXML2_FILE%
75+
- 7z x %LIBXML2_FILE%
76+
- appveyor DownloadFile %EXTRAS_URL%/%LIBXSLT_FILE%
77+
- 7z x %LIBXSLT_FILE%
78+
- appveyor DownloadFile %EXTRAS_URL%/%OPENSSL_FILE%
79+
- 7z x %OPENSSL_FILE%
80+
- cd %APPVEYOR_BUILD_FOLDER%
9381

9482
build_script:
95-
- if [%COMPILER%]==[MinGW-w64] mkdir build && cd build
96-
- if [%COMPILER%]==[MinGW-w64] bash ../autogen.sh --build="x86_64-w64-mingw32" --host="x86_64-w64-mingw32" --enable-unicode=$UNICODE --enable-mscrypto --enable-mscng --enable-openssl --enable-gnutls --enable-static-linking=$STATIC
97-
- if [%COMPILER%]==[MinGW-w64] make
98-
- if [%COMPILER%]==[MSVC17] cd win32
99-
- if [%COMPILER%]==[MSVC17] cscript configure.js static=%STATIC% crypto=%CRYPTO% werror=%WERROR% iconv=no unicode=%UNICODE% prefix=%EXTRAS_FOLDER% include=%EXTRAS_FOLDER%\include;%EXTRAS_FOLDER%\include\libxml2;%MSSDK_INCLUDE% lib=%EXTRAS_FOLDER%\bin;%EXTRAS_FOLDER%\lib;%MSSDK_LIB%
100-
- if [%COMPILER%]==[MSVC17] nmake
83+
- cd win32
84+
- cscript configure.js static=%STATIC% crypto=%CRYPTO% werror=%WERROR% iconv=no unicode=%UNICODE% prefix=%EXTRAS_FOLDER% include=%EXTRAS_FOLDER%\include;%EXTRAS_FOLDER%\include\libxml2;%MSSDK_INCLUDE% lib=%EXTRAS_FOLDER%\bin;%EXTRAS_FOLDER%\lib;%MSSDK_LIB%
85+
- nmake
10186

10287
test_script:
103-
- if [%COMPILER%]==[MinGW-w64] make check
104-
- if [%COMPILER%]==[MSVC17] nmake check
105-
106-
88+
- nmake check

configure.ac

Lines changed: 15 additions & 4 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.30],[http://www.aleksey.com/xmlsec])
2+
AC_INIT([xmlsec1],[1.2.31],[http://www.aleksey.com/xmlsec])
33

44
XMLSEC_PACKAGE=xmlsec1
55
XMLSEC_VERSION_MAJOR=1
66
XMLSEC_VERSION_MINOR=2
7-
XMLSEC_VERSION_SUBMINOR=30
7+
XMLSEC_VERSION_SUBMINOR=31
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'`
@@ -2304,13 +2304,25 @@ dnl ==========================================================================
23042304
AC_MSG_CHECKING(for pedantic)
23052305
AC_ARG_ENABLE([pedantic], [AC_HELP_STRING([--enable-pedantic], [enable pedantic compilation flags (no)])])
23062306
if test "z$enable_pedantic" = "zyes" ; then
2307-
dnl CFLAGS="$CFLAGS -pedantic -Wall -std=c99 -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wredundant-decls"
23082307
CFLAGS="$CFLAGS -O -pedantic -Wall -std=c99 -fno-inline -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wredundant-decls"
23092308
AC_MSG_RESULT([yes])
23102309
else
23112310
AC_MSG_RESULT([disabled])
23122311
fi
23132312

2313+
dnl ==========================================================================
2314+
dnl Secure memset
2315+
dnl ==========================================================================
2316+
AC_MSG_CHECKING(for secure memset)
2317+
AC_ARG_ENABLE([secure-memset], [AC_HELP_STRING([--enable-secure-memset], [enable secure memset compilation flags (yes)])])
2318+
if test "z$enable_secure_memset" != "zno" ; then
2319+
CFLAGS="$CFLAGS -fno-builtin-memset"
2320+
AC_MSG_RESULT([yes])
2321+
else
2322+
AC_MSG_RESULT([disabled])
2323+
fi
2324+
2325+
23142326
dnl ==========================================================================
23152327
dnl Final steps: xmlsec config
23162328
dnl ==========================================================================
@@ -2428,7 +2440,6 @@ apps/Makefile
24282440
docs/Makefile
24292441
docs/api/Makefile
24302442
man/Makefile
2431-
24322443
xmlsec1-openssl.pc:xmlsec-openssl.pc.in
24332444
xmlsec1-gnutls.pc:xmlsec-gnutls.pc.in
24342445
xmlsec1-gcrypt.pc:xmlsec-gcrypt.pc.in

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.30"
81+
<pre class="programlisting">#define XMLSEC_VERSION "1.2.31"
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 30
103+
<pre class="programlisting">#define XMLSEC_VERSION_SUBMINOR 31
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:30:2"
110+
<pre class="programlisting">#define XMLSEC_VERSION_INFO "3:31:2"
111111
</pre>
112112
<p>The library version info string in the format
113113
"$major_number+$minor_number:$sub_minor_number:$minor_number".</p>

docs/download.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,10 @@
420420
<h1>Download</h1>
421421
</div>
422422
<h2>Stable releases.</h2>
423-
<p>The latest stable XML Security Library version is <b>1.2.30</b>:</p>
423+
<p>The latest stable XML Security Library version is <b>1.2.31</b>:</p>
424424
<ul>
425425
<li>
426-
<a href="http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.30.tar.gz">Sources for latest version</a>.</li>
426+
<a href="http://www.aleksey.com/xmlsec/download/xmlsec1-1.2.31.tar.gz">Sources for latest version</a>.</li>
427427
<li>
428428
<a href="http://www.zlatkovic.com/projects/libxml/index.html">Windows binaries</a> for XMLSec Library
429429
(as well as LibXML2, LibXSLT and OpenSSL) from <a href="mailto:[email protected]">Igor Zlatkovic</a>.</li>

docs/index.html

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,14 @@ <h1>XML Security Library</h1>
439439
see the Copyright file in the distribution for details.<br><br></p>
440440
<p><b>News</b></p>
441441
<ul>
442-
<li>April 21 2020<br>
442+
<li>October 29 2020<br>
443+
The <a href="download.html">XML Security Library 1.2.31</a> release includes the following changes:
444+
<ul>
445+
<li>Added configure option to ensure memset() securely erases memory (gcc).</li>
446+
<li>Several other small fixes (<a href="https://github.com/lsh123/xmlsec/commits/master">more details</a>).</li>
447+
</ul>
448+
</li>
449+
<br><li>April 21 2020<br>
443450
The <a href="download.html">XML Security Library 1.2.30</a> release includes the following changes:
444451
<ul>
445452
<li>Enabled XML_PARSE_HUGE for all xml parsers.</li>
@@ -466,26 +473,6 @@ <h1>XML Security Library</h1>
466473
<li>Several other small fixes (<a href="https://github.com/lsh123/xmlsec/commits/master">more details</a>).</li>
467474
</ul>
468475
</li>
469-
<br><li>October 23 2018<br>
470-
The <a href="download.html">XML Security Library 1.2.27</a> release includes the following changes:
471-
<ul>
472-
<li>Added AES-GCM support for OpenSSL and MSCNG (snargit).</li>
473-
<li>Added DSA-SHA256 and ECDSA-SHA384 support for NSS (vmiklos).</li>
474-
<li>Added RSA-OAEP support for MSCNG (vmiklos).</li>
475-
<li>Continuous build integration in Travis and Appveyor.</li>
476-
<li>Several other small fixes (<a href="https://github.com/lsh123/xmlsec/commits/master">more details</a>).</li>
477-
</ul>
478-
</li>
479-
<br><li>June 5 2018<br>
480-
The <a href="download.html">XML Security Library 1.2.26</a> release includes the following changes:
481-
<ul>
482-
<li>Added xmlsec-mscng module based on <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/aa376210(v=vs.85).aspx">Microsoft Cryptography API: Next Generation</a> (vmiklos).</li>
483-
<li>Added support for GOST 2012 and fixed CryptoPro CSP provider for GOST R 34.10-2001 in xmlsec-mscrypto (ipechorin).</li>
484-
<li>Added LibreSSL 2.7 support (vishwin).</li>
485-
<li>Upgraded documentation build process to support the latest gtk-doc.</li>
486-
<li>Several other small fixes (<a href="https://github.com/lsh123/xmlsec/commits/master">more details</a>).</li>
487-
</ul>
488-
</li>
489476
</ul>
490477
</td></tr></table></td>
491478
</tr></table></body>

docs/news.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,14 @@
420420
<h1>XML Security Library News</h1>
421421
</div>
422422
<ul>
423-
<li>April 21 2020<br>
423+
<li>October 29 2020<br>
424+
The <a href="download.html">XML Security Library 1.2.31</a> release includes the following changes:
425+
<ul>
426+
<li>Added configure option to ensure memset() securely erases memory (gcc).</li>
427+
<li>Several other small fixes (<a href="https://github.com/lsh123/xmlsec/commits/master">more details</a>).</li>
428+
</ul>
429+
</li>
430+
<br><li>April 21 2020<br>
424431
The <a href="download.html">XML Security Library 1.2.30</a> release includes the following changes:
425432
<ul>
426433
<li>Enabled XML_PARSE_HUGE for all xml parsers.</li>

include/xmlsec/nss/crypto.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
#include <xmlsec/transforms.h>
2020
#include <xmlsec/dl.h>
2121

22+
23+
/* MD5 was removed from NSS */
24+
#if (NSS_VMAJOR > 3) || ((NSS_VMAJOR == 3) && (NSS_VMINOR > 58))
25+
#define XMLSEC_NO_MD5 1
26+
#endif /* (NSS_VMAJOR > 3) || ((NSS_VMAJOR == 3) && (NSS_VMINOR > 58)) */
27+
2228
#ifdef __cplusplus
2329
extern "C" {
2430
#endif /* __cplusplus */

0 commit comments

Comments
 (0)