Commit Graph

275 Commits

Author SHA1 Message Date
Benjamin Dauvergne 614cf17d99 Release 2.8.1
gitea/lasso/pipeline/head This commit looks good Details
-·Major·overhaul·of·OpenSSL·API·usage·by·using·only·the·EVP·API·as·the·low¶
··level·API·(RSA*,·HMAC*)·is·deprecated.¶
-·Fix·wrong·parsing·of·Count·attribute·on·saml:ProxyRestriction,·thanks·to¶
··Maxime·Besson·from·Worteks.¶
-·Perl:·pass·LDFLAGS·to·Makefile.PL¶
-·Replace·use·of·deprecated·xmlSecBase64Decode·by·xmlSecBase64Decode_ex¶
-·Fix·overwrite·of·profile.signature_status·in·lasso_saml20_login_process_response_status_and_assertion¶
-·Fix·lot·of·GCC·warnings¶
2023-02-28 16:02:18 +01:00
Benjamin Dauvergne b263815fa4 Add new define LASSO_XMLSEC_VERSION_NUMBER allow version check on libxmlsec (#71399) 2022-11-21 13:27:15 +01:00
Benjamin Dauvergne f83d02f314 Revert "Use the AM_PATH_PYTHON macro instead of custom macros"
This reverts commit 23d91efac3.
2022-04-27 14:54:06 +02:00
Benjamin Dauvergne 23d91efac3 Use the AM_PATH_PYTHON macro instead of custom macros 2022-04-27 10:44:57 +02:00
Benjamin Dauvergne 6e1306c0f8 Release 2.8.0 2022-03-15 13:11:23 +01:00
Benjamin Dauvergne 53b0bd3569 Change default key encryption padding algorithm to RSA-OAEP (#56023)
The key encryption padding algorithm is now configurable, the default
being changed to OAEP. It's possible to set the default through
./configure with:

    --with-default-key-encryption-method=[rsa-pkcs1|rsa-oaep]

at initialization time with an environment variable:

    LASSO_DEFAULT_KEY_ENCRYPTION_METHOD=[rsa-pkcs1|rsa-oaep]

or at runtime for a service provider:

    lasso_provider_set_key_encryption_method(LassoProvider *provider,
        LassoKeyEncryptionMethod key_encryption_method)

The setting is global for all encrypted nodes (Assertion or NameID).
2021-09-11 19:20:04 +02:00
Benjamin Dauvergne 906edf5599 Remove win32 directory (#56645)
It's obsolete.
2021-09-11 19:07:50 +02:00
Benjamin Dauvergne 4a880977d1 Remove ID-WSF 1.0, 2.0 and WS-* support (#56644)
It has been deprecated for a long time.
2021-09-11 18:54:41 +02:00
Jakub Hrozek f095ac8f57 Make the default signature method and the minimal hash strength configurable (#54037)
Adds two new configure options:
    --with-default-sign-algo
    --min-hash-algo

--with-default-sign-algo sets the default signing algorithm and defaults
to rsa-sha1. At the moment, two algorithms are supported: rsa-sha1 and
rsa-sha256.

--min-hash-algo sets the minimum hash algorithm to be accepted. The
default is sha1 for backwards compatibility as well.

Related:
https://dev.entrouvert.org/issues/54037
2021-06-23 23:32:29 +02:00
Benjamin Dauvergne 3d6bc26021 docs: update gtk-doc-tools integration (#50441)
Using reference documentation on https://developer.gnome.org/gtk-doc-manual/stable/index.html.en
2021-02-24 23:13:49 +01:00
Benjamin Dauvergne 86aa6a602f configure.ac: disable java bindings 2021-02-23 21:10:11 +01:00
Benjamin Dauvergne 15b8cd7ab1 configure.ac: support php7 interpreter on CentOS 8 (#42299) 2020-08-11 15:37:54 +02:00
Benjamin Dauvergne 4bae1c8b7c Release 2.6.1 2020-04-22 15:04:46 +02:00
Tomohiro "Tomo-p" KATO 9c8c4b9937 Add PHP 7 binding (#28608)
License: MIT
2019-09-09 15:10:06 +02:00
Benjamin Dauvergne caecf46be4 Improve configure compatibility (#32425) 2019-09-06 14:43:31 +02:00
Benjamin Dauvergne 50b5cdac87 Remove -Werror from --enable-debugging (fixes #24771)
GCC 8 has better warnings and it breaks the build on platform already
using it and wanting debugging symbols.
2018-07-24 16:29:26 +02:00
Benjamin Dauvergne 62d2f4bff7 Move AC_SUBST declaration for AM_CFLAGS with alike (#24771)
Just to reorder things properly in configure.ac.
2018-07-24 12:39:19 +02:00
John Dennis 28d3705d5a Configure should search for versioned Python interpreter.
Following the guidelines in Python PEP 394 with regards to the python
command on UNIX like systems preference should be given to explicitly
versioned command interpreter as opposed to unversioned and that an
unversioned python command should (but might not) refer to
Python2. Also in some environments unversioned Python interpreters
(e.g. /usr/bin/python) do not even exist, onlyh their explicitly
versioned variants are (e.g. /usr/bin/python2 and /usr/bin/python3).

Therefore the AC_CHECK_PROGS directive in configure.ac should not rely
exclusively on an unversioned Python interpreter as it does not,
rather it should search in priority order. First for python3, then for
an unversionsed python because some distributions have already moved
the default unversioned python to python3, and then finally search for
python2. In the scenario where unversioned python is still pointing to
python2 it's equivalent to selecting the last prority option of
python2, but if unversioned python is pointing to python3 you get
instead. The net result is always preferring python3 but gracefully
falling back to python2 not matter how the environment exports it's
Python.

If AC_CHECK_PROGS for python does not check for the versioned variants
the build fails in environments that only have versioned variants with
this error:

configure: error: Python must be installed to compile lasso

License: MIT
Signed-off-by: John Dennis <jdennis@redhat.com>
2018-07-24 11:03:09 +02:00
Benjamin Dauvergne 796a5cb60c Release 2.6.0 2018-05-30 17:06:47 +02:00
Benjamin Dauvergne 3fb0d62767 java: stop setting a bytecode version target 2018-04-06 17:23:14 +02:00
John Dennis ed74f24155 enable user supplied CFLAGS
CFLAGS is initialized to the empty string in configure.ac, this
effectively turned off user supplied values for CFLAGS preventing site
specific values from being used. A further complicating factor was of
all the user supplied values documented in Automake only CFLAGS was
disabled allowing all other user supplied variables to take
effect. Some variables must be coordinated (e.g. CFLAGS with LDFLAGS),
the fact LDFLAGS was picked up from the environment but CFLAGS was
discarded caused build failures due to incompatible combination of
compiler and linker options.

The problem was first introduced in commit: 73d9c98f "Reset CFLAGS
when --enable-debugging is used". This patch simply removes hardcoding
CFLAGS to the empty string and appends the debug options
(--enable-debugging) to the existing CFLAGS.

Proper use of the variables is described in the Automake documentation
in the section "Flag Variables Ordering"
https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html

Although the Automake documentation claims manipulating CFLAGS
directly is improper use there are many examples of this in the
existing configure.ac, this patch makes no attempt at addressing this
issue, rather it makes existing usage consistent. In the particular
case of debug flags appending to CFLAGS is probably the only valid
solution because the debug flags must appear at the end of the list of
flags in order to override earlier flags, CFLAGS always appears last
in the Makefile (see above Automake doc).

Signed-off-by: John Dennis <jdennis@redhat.com>
License: MIT
2016-06-15 22:41:00 +02:00
Benjamin Dauvergne c62ad0047e Release 2.5.1 2016-02-18 23:59:01 +01:00
Frédéric Péters e0afa0b995 perl: remove quotes from $PERL -V::ccflags: output (#9572) 2016-01-11 10:03:45 +01:00
Benjamin Dauvergne eaabf4c611 Release 2.5.0 2015-09-02 16:20:14 +02:00
Benjamin Dauvergne 262d1dae91 configure.ac: move test framework detection after pkg-config detection 2015-08-24 16:57:49 +02:00
John Dennis 9629925c1e Add LassoNode objects for ECP and PAOS
The SAMLv2 protocol defines 5 XML types which we need to map to
LassoNode objectes so thay can be serialized from XML and back into
XML.

ecp:RelayState
ecp:Request
ecp:Response
paos:Request
paso:Response

This patch addes these 5 new LassoNode's and updates the build
configuration to include them.

Signed-off-by: John Dennis <jdennis@redhat.com>
License: MIT
2015-08-24 16:05:29 +02:00
Benjamin Dauvergne eb6ed4f85a configure.ac: provide fallback for systems where libcheck is not installed with pkg-config 2015-08-24 16:05:14 +02:00
Benjamin Dauvergne 67d0a0349d configure.ac: use pkg-config for libcheck 2015-08-24 10:24:29 +02:00
Houzéfa Abbasbhay 9137e81966 Python 3: Fix print calls in configure.ac 2015-02-12 19:21:11 +01:00
Benjamin Dauvergne d95a7afcb6 Release 2.4.1 2014-08-28 16:02:06 +02:00
Simo Sorce 3d576e040a Fix java version detection
Signed-off-by: Simo Sorce <simo@redhat.com>
2014-04-15 09:59:33 +02:00
Frédéric Péters 190c7743c2 perl: get required CFLAGS from $(perl -V::ccflags:) 2014-03-31 10:55:58 +02:00
Benjamin Dauvergne 93b9b59e8f configure.ac: update LASSO_VERSION_INFO 2014-01-07 17:03:14 +01:00
Benjamin Dauvergne 83dc14c307 Revert "configure.ac: desactivate the PHP5 binding if no CLI interpreter is available"
This reverts commit a3d53764fa.
2014-01-07 01:30:55 +01:00
Benjamin Dauvergne a3d53764fa configure.ac: desactivate the PHP5 binding if no CLI interpreter is available 2014-01-06 15:43:12 +01:00
Benjamin Dauvergne c6475ef51c configure.ac: remove checks for SWIG 2014-01-06 15:42:48 +01:00
Benjamin Dauvergne c5659068fe configure.ac,fedora/lasso.spec: remove expat dependency 2013-12-19 10:14:52 +01:00
Frédéric Péters 60d6858d14 build: replace python $libdir by our own 2013-12-05 17:51:32 +01:00
Simo Sorce 624d20244b Better python detection in configure.ac
License: MIT
Signed-off-by: Simo Sorce <simo@redhat.com>
2013-12-05 17:24:25 +01:00
Tim Newsome 479eba57de AM_C_PROTOTYPES is no longer supported in autoconf 1.12. 2013-06-19 01:42:17 +02:00
Benjamin Dauvergne d572326a2f configure.ac: do not passe the full version suffix as the release number 2013-06-04 23:01:35 +02:00
Benjamin Dauvergne 57435048a0 configure: generate version number from git revision between tagged release
The script git-version-gen is copied from the autoconf project.
2013-05-15 11:28:25 +02:00
Benjamin Dauvergne f8ea3cda2d Fix compilation on solaris
Thanks Wojciech Lichota for the patch.

Fixes #1516
2012-06-21 16:07:07 +02:00
Benjamin Dauvergne c7cf89b387 Merge branch 'release-2.4.0' 2012-05-05 22:32:48 +02:00
Frédéric Péters e97a36faac Allow building from git without gtk-doc installed 2012-04-23 09:39:55 +02:00
Frédéric Péters 952c0f552c build: do not include multiple glib headers 2012-04-02 23:47:40 +02:00
Benjamin Dauvergne 75d84acf57 Update files for release 2.4.0 2011-12-29 13:44:46 +01:00
Benjamin Dauvergne f4fc26bb39 [core] move XMLDsig related nodes in their own sub-library, add X509Data node implementation
The goal is to use the KeyInfo structure as a transport format for our cryptographic keys
2011-12-16 11:39:18 +01:00
Benjamin Dauvergne dd5afa9522 [configure.ac] fix compilation on Mac Os X 2011-12-05 12:03:13 +01:00
Benjamin Dauvergne 92ebef91f5 Merge branch 'excl-c14n-fix' 2011-11-29 11:05:29 +01:00