Commit Graph

5706 Commits

Author SHA1 Message Date
Frédéric Péters 591acb5170 faq: fix references to lasso.profileGetIssuer (#24832) 2018-06-27 18:16:46 +02:00
Frédéric Péters 9147093b67 debian: sync with debian package (#24595) 2018-06-27 18:16:02 +02:00
Benjamin Dauvergne d8ea60e6f2 website: add news about 2.6.0 release 2018-06-14 13:19:24 +02:00
Benjamin Dauvergne 796a5cb60c Release 2.6.0 2018-05-30 17:06:47 +02:00
Benjamin Dauvergne 9853289bc7 perl/tests: build Makefile.perl before running the tests 2018-05-30 16:50:00 +02:00
Benjamin Dauvergne 877f9e7888 deprecate loading PEM formatted public keys in lasso_xmlsec_load_key_info
Also ensure work-around bug[1] in libxmlsec 1.2.24 and 1.2.25.

[1]: https://github.com/lsh123/xmlsec/issues/164
2018-05-01 12:06:15 +02:00
Benjamin Dauvergne 81a628202d add a pem-public-key runtime flag
We want to deprecate support for loading PEM formatted key
from ds:KeyValue nodes, before final removal it will have to be activated
through a runtime flag (using LASSO_FLAG environment variable).
2018-05-01 11:13:08 +02:00
John Dennis 760eb947ab Replace xmlSecSoap functions with lasso implementations
xmlsec has removed support for SOAP. The missing xmlSecSoap* functions
and their dependent utiliity functions were added to Lasso following
the model of the existing xmlSec implmentations.

Note: Lasso tried to accommodate both SOAP 1.1 and SOAP 1.2 but SAML2
*only* uses SOAP 1.1 thus the SOAP 1.2 support was superfluous and
confused matters. Therefire the SOAP 1.2 support was removed.

The following new functions were added to Lasso to support SOAP:

* lasso_xml_next_element_node
* lasso_xml_get_node_ns_href
* lasso_xml_is_element_node
* lasso_xml_soap11_get_header
* lasso_xml_soap11_get_body

The following is the mapping from the deprecated xmlSecSoap symbols
to the new Lasso symbols:

xmlSecSoap11Ns -> LASSO_SOAP_ENV_HREF
xmlSecGetNextElementNode -> lasso_xml_next_element_node
xmlSecGetNodeNsHref -> lasso_xml_get_node_ns_href
xmlSecCheckNodeName -> lasso_xml_is_element_node
xmlSecSoap11GetHeader -> lasso_xml_soap11_get_header
xmlSecSoap11GetBody -> lasso_xml_soap11_get_body

This patch also extends the automake version support in autogen.sh to the
current 1.16 version.

License: MIT
Signed-off-by: John Dennis <jdennis@redhat.com>
2018-04-30 18:06:55 +02:00
Benjamin Dauvergne 39ca2d4833 perl: set DESTDIR and PREFIX at Makefile's creation 2018-04-30 16:01:50 +02:00
Benjamin Dauvergne aace9d3182 perl: force use of the in-tree lasso when running tests (fixes #23276) 2018-04-29 20:17:27 +02:00
Benjamin Dauvergne 187b4b1b28 python: route logs for libxml2 and libxmlsec2 to their own logger 2018-04-29 19:59:56 +02:00
Benjamin Dauvergne a354701fae add xmlsec_soap.h to Makefile 2018-04-06 22:39:54 +02:00
Benjamin Dauvergne 3fb0d62767 java: stop setting a bytecode version target 2018-04-06 17:23:14 +02:00
Benjamin Dauvergne 87da2e6e14 tests: prevent crash in glib caused by abort on recursive logging
The fail() function from libcheck is doing a longjump() from inside the
logging subsystem, preventing the depth counter to be reinitialised to 0.
(Seen with g_private_get(&g_log_depth) in a gdb session).
2018-04-06 17:23:14 +02:00
Benjamin Dauvergne 48fb1c37ec route logs from libxml2 and libxmlsec through GLib logging 2018-04-06 17:23:13 +02:00
Benjamin Dauvergne 6dd28b20d3 fix get_issuer and get_in_response_to 2018-04-06 17:23:13 +02:00
Benjamin Dauvergne c1bd8ca117 fix warnings 2018-04-06 15:12:24 +02:00
Benjamin Dauvergne 1d56cd1e31 replace use of <xmlsec/soap.h> which is deprecated (fixes #18771) 2018-04-06 15:12:24 +02:00
Frédéric Péters 75d3a2ca46 debian: initialize stretch packaging with a copy of upstream debian (#21772) 2018-02-10 15:58:44 +01:00
Benjamin Dauvergne 81fad67ad2 saml-2.0: improve support for free content inside samlp2:Extensions (fixes #18581)
Four new accesors:

	lasso_samlp2_extensions_get_any
	lasso_samlp2_extensions_set_any
	lasso_samlp2_extensions_get_attributes
	lasso_samlp2_extensions_set_attributes

The two new pseudo field are fully supported in the python binding.

	node = lasso.Samlp2Extensions()
	node.any = '<test>ok</test>'
	node.attributes = {'{http://entrouvert.org/}attribute1': 'value'}
	print node.dump()
2017-09-11 15:14:41 +02:00
Benjamin Dauvergne 51b5874c38 ignore unknown attributes from the xsi: namespace 2017-08-12 10:32:20 +02:00
Benjamin Dauvergne f0733e145f add defined for the XML namespace 2017-08-12 10:32:20 +02:00
Benjamin Dauvergne 804db0bbd4 jenkins.sh: add V=1 2017-08-12 10:32:20 +02:00
Benjamin Dauvergne 5798311da1 fix definitions of error, critical and warning macros (fixes #12830)
They all log at the DEBUG level instead of their respective levels.
2016-08-04 13:41:29 +02:00
Benjamin Dauvergne a69c61f419 tests: convert log level as string 2016-08-04 13:12:39 +02:00
John Dennis fad04ed1c9 Fix ecp test validate_idp_list() (fixes #11421)
validate_idp_list was not using the correct list elements when it
iterated over the known_sp_provided_idp_entries_supporting_ecp list.
It treated them as lists of strings instead of lists of
LassoSamlp2IDPEntry.

Signed-off-by: John Dennis <jdennis@redhat.com>
License: MIT
2016-06-18 16:45:25 +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 a71e682905 do not call xmlSecKeyDuplicate is source key is NULL 2016-04-26 14:43:43 +02:00
Benjamin Dauvergne f673208a62 fix segfault when parsed node has no namespace (#47)
This bug was introduced in commit 8d06806d, the check for a correct namespace on
head node of parsed XML fragments does not handle the case where the node has no
namespace. Using lasso_equal_namespace() fix this.
2016-03-11 16:26:22 +01:00
Benjamin Dauvergne 8d06806db6 check node names in lasso_node_impl_init_from_xml() (fixes #47) 2016-03-07 12:48:29 +01:00
Benjamin Dauvergne 84f1b2f601 tests: silence unused variable warning 2016-03-07 00:14:39 +01:00
Benjamin Dauvergne 7ed88f3490 add docstring on SHA-2 signature method enum 2016-03-06 17:18:29 +01:00
Benjamin Dauvergne f80d3b2911 remove DGME specific commented out code 2016-03-06 14:09:58 +01:00
Benjamin Dauvergne 1194b3e670 add support for C14N 1.1 methods and C14N withComments methods (fixes #4863) 2016-03-06 13:45:40 +01:00
Benjamin Dauvergne 9525237236 Choose the Reference transform based on the chosen Signature transform (fixes #10155)
i.e. if the signature use SHA2 then use SHA2 of the same strength for digesting
references.
2016-03-06 01:43:47 +01:00
John Dennis d8e3ae8504 add inline implementation of lasso_log
lasso_log is a private function of lasso and as such cannot be
referenced by the loader.

This is equivalent to commit e0bda691 in the PHP binding which
exhibited the same problem.

lasso_log is referenced in jobject_to_gobject() because of
lasso_assign_gobject macro, which includes the lasso_release_gobject
macro which invokes the message macro which expands to lasso_log.

License: MIT
Signed-off-by: John Dennis <jdennis@redhat.com>
2016-02-24 14:15:28 +01:00
Benjamin Dauvergne c62ad0047e Release 2.5.1 2016-02-18 23:59:01 +01:00
Benjamin Dauvergne 5e799c3898 fix warning about INCLUDES directive 2016-02-18 23:58:49 +01:00
Benjamin Dauvergne 022375809a bindings/php5: fix enum getters and setters (fixes #10032)
enumeration type were being wrongly interpreted as objects types because
is_object() was used instead of the local specialisation done in
PhpCode.is_object().

Also fix docstring of getters/setters.
2016-02-18 23:06:17 +01:00
Benjamin Dauvergne 74e8705b57 tools.c: use correct NID and digest length when building RSA signature using SHA-2 digest (fixes #10019)
Thanks to Brett Gardner for the bug report and patch.

Licence: MIT
2016-02-18 22:52:18 +01:00
Benjamin Dauvergne 675858f43c Fix wrong snippet type (fixes #9616)
In elements samlp2:RequestedAuthnContext, Comparison is an attribute, not a text
child node.
2016-01-13 09:51:24 +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 8e78d90d54 tests: update valgrind suppressions 2015-11-25 04:15:27 +01:00
Benjamin Dauvergne 89ba752aa5 tests: fix leak 2015-11-25 04:15:27 +01:00
Benjamin Dauvergne 6b88c5b946 saml-2.0: fix leaks of url 2015-11-25 04:15:27 +01:00
Benjamin Dauvergne 56c9fb65e8 profile: fix leak of private idp_list field 2015-11-25 03:08:58 +01:00
Benjamin Dauvergne 3c2f30d2fe xml: fix leak in lasso_soap_envelope_new_full 2015-11-25 03:08:38 +01:00
Benjamin Dauvergne 882e8e21f8 xml: fix wrong termination of comment 2015-11-24 19:32:09 +01:00
Benjamin Dauvergne cd515cb82c tests: fix leaks in test_ecp 2015-11-24 19:29:43 +01:00
Benjamin Dauvergne ab7c12e163 saml-2.0: fix leak of message_id in lasso_profile_saml20_build_paos_request_msg 2015-11-24 19:22:18 +01:00