Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [xml] add an inline function to validate LassoSignatureMethod values | Benjamin Dauvergne | 2011-12-05 | 2 | -1/+10 | |
| | | | | - add also a LASSO_SIGNATURE_METHOD_NONE value | |||||
* | Merge branch 'multi-certificates' | Benjamin Dauvergne | 2011-11-29 | 2 | -2/+6 | |
|\ | ||||||
| * | [core] do not emit a warning for expected decryption errors | Benjamin Dauvergne | 2011-11-22 | 1 | -2/+5 | |
| | | | | | | | | | | | | | | | | | | | | The only expected decryption error is on decryption of the symetric key used to crypt the data. All other errors are critical and must be logged. Client of lasso_node_decrypt_xmlnode can then log the decryption failure of the symetric if they tried with all possible keys (key rollover case). | |||||
| * | [leakcheck] fix leaks seen by the unit tests | Benjamin Dauvergne | 2011-11-22 | 1 | -0/+1 | |
| | | | | | | | | | | This commit also improved valgrind suppression file to hide static allocations done by the GLib type system. | |||||
* | | Merge branch 'excl-c14n-fix' | Benjamin Dauvergne | 2011-11-29 | 1 | -0/+26 | |
|\ \ | |/ |/| | ||||||
| * | [core] fix wrong XML canonicalization when assertion is extracted without ↵ | Benjamin Dauvergne | 2011-11-22 | 1 | -0/+26 | |
| | | | | | | | | its namespace context | |||||
* | | [saml2] add missing extension point for LassoSaml2SubjectConfirmationData | Benjamin Dauvergne | 2011-11-18 | 1 | -0/+10 | |
| | | | | | | | | | | - it can support any content and any attribute without validation xs:any with processContents="lax" | |||||
* | | [xml] allow to store XSchema data into a private stucture | Benjamin Dauvergne | 2011-11-18 | 2 | -65/+117 | |
| | | | | | | | | | | | | | | | | | | | | - added new macros SNIPPET_STRUCT_MEMBER and SNIPPET_STRUCT_MEMBER_P replaces use of G_STRUCT_MEMBER/_P macros. - we use the GType of the class containing a given XmlSnippet to find the proper private structure. - added flag SNIPPET_PRIVATE to state XmlSnippet whose value should be extracted from the private structure and not the public one. | |||||
* | | [xml saml-2.0] add missing annotation for binding generation to header for ↵ | Benjamin Dauvergne | 2011-10-18 | 1 | -1/+1 | |
| | | | | | | | | LassoKeyInformationDataType | |||||
* | | [xml saml-2.0] add a class to handle the KeyInfoConfirmationData type | Benjamin Dauvergne | 2011-10-13 | 4 | -0/+254 | |
| | | | | | | | | | | | | * use a direct mapping to map this class to SubjectConfirmationData node having the xsi:type attribute. * overload get_xmlNode method to add the xsi:type attribute on output. | |||||
* | | [xml] allow node classes to not defined their nodename, useful for simple Type | Benjamin Dauvergne | 2011-10-13 | 1 | -2/+7 | |
| | | ||||||
* | | [xml] if a SNIPPET_LIST_NODES as the SNIPPET_ANY flag, allows really any ↵ | Benjamin Dauvergne | 2011-10-10 | 1 | -6/+3 | |
| | | | | | | | | kind of node through LassoMiscTextNode | |||||
* | | [xml] allows LassoMiscText.init_from_xml to parse any xmlNode | Benjamin Dauvergne | 2011-10-10 | 1 | -7/+13 | |
| | | | | | | | | | | | | If the node has no attributes and has a simple string content, we use the classic embedding by setting, name, ns_href, ns_prefix. Otherwise the complete xmlNode is copied. | |||||
* | | [xml] only try to map an xmlNode to a class ame if the node has a namespace | Benjamin Dauvergne | 2011-10-10 | 1 | -1/+1 | |
| | | ||||||
* | | [xml saml-2.0] change AttributeValue snippets to accept any children | Benjamin Dauvergne | 2011-10-10 | 1 | -1/+1 | |
| | | | | | | | | An AttributeValue has an XSchema type of xs:any. | |||||
* | | [xml] create a static version of lasso_node_new_from_xmlNode_with_type ↵ | Benjamin Dauvergne | 2011-10-07 | 1 | -9/+21 | |
| | | | | | | | | | | | | | | | | | | without error logging When used inside lasso_node_impl_init_from_xml the error logging is prematurely sent as there is a backup procedure for parsing unknown nodes inside a SNIPPET_LIST_NODES by creating a LassoMiscTextNode containing a copy of the parsed xmlNode child. | |||||
* | | [xml] use g_strndup instead of strndup, as it is more portable | Benjamin Dauvergne | 2011-05-18 | 1 | -3/+1 | |
| | | ||||||
* | | [tools] redirect xmlsec errors to lasso error handler | Benjamin Dauvergne | 2011-04-14 | 1 | -0/+12 | |
| | | ||||||
* | | [tools] use LASSO_LOG_DOMAIN instead of magic constant | Benjamin Dauvergne | 2011-04-14 | 1 | -3/+4 | |
| | | ||||||
* | | [Makefile] move lasso/xml/tools.h to public headers | Benjamin Dauvergne | 2011-04-14 | 1 | -2/+2 | |
| | | ||||||
* | | [xml] if signature reference is empty check that signed node is the document ↵ | Benjamin Dauvergne | 2011-04-04 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | root An empty reference means the complete document, so the signed node is the root element of this document. We must check that the parameter signe_node dmatches our assumption. | |||||
* | | [xml] allow empty reference in XML signature (document signature) | Benjamin Dauvergne | 2011-03-29 | 2 | -7/+20 | |
| | | ||||||
* | | [xml] make id_attr_name parameter optional for lasso_verify_signature | Benjamin Dauvergne | 2011-03-29 | 1 | -4/+6 | |
| | | ||||||
* | | [xml] fix lasso_node_get_xmlnode_for_any_type | Benjamin Dauvergne | 2011-03-07 | 1 | -1/+10 | |
|/ | | | | | | | xmlCopyPropList does not copy the property list into the target it just copy it with respect to the target (mainly for namespace references). This patch adds the real copy into the target node. | |||||
* | [wsf] fix wsf preprocessor conditionals | Benjamin Dauvergne | 2011-01-04 | 1 | -2/+4 | |
| | ||||||
* | [xml] fix null pointer access in lasso_node_get_encryption | Benjamin Dauvergne | 2010-12-22 | 1 | -1/+1 | |
| | ||||||
* | [xml] remove duplicate EncryptedKey around EncryptedData elements | Benjamin Dauvergne | 2010-12-14 | 1 | -1/+0 | |
| | | | | | The key is already embedded in the EncryptedData, so there is no need to also fill the EncryptedKey field of the saml:EncryptedElement object. | |||||
* | [xml] add exportation of the encrypting public key in EncryptedData elements | Benjamin Dauvergne | 2010-12-14 | 1 | -0/+19 | |
| | | | | | | This commit check if the given is a simple RSA key or a full certificate and choose the better serialization method between RSAKeyValue and X509Data. | |||||
* | [tools] fix xml decryption | Benjamin Dauvergne | 2010-12-14 | 1 | -9/+6 | |
| | | | | | | This commit rewrite the extraction of the EncryptedKey when it is embedded inside the EncryptedData element, which seem to be the frequent case. | |||||
* | Merge with new field in custome element | Benjamin Dauvergne | 2010-12-14 | 1 | -1/+2 | |
| | ||||||
* | [saml2] use new encryption structure instead for internal field in ↵ | Benjamin Dauvergne | 2010-12-14 | 1 | -4/+5 | |
| | | | | LassoSaml2Assertion | |||||
* | [xml] add field to contains encryption parameters inside CustomElement structure | Benjamin Dauvergne | 2010-12-14 | 2 | -0/+70 | |
| | ||||||
* | [xml] fix waring on use of strndup on pardus | Benjamin Dauvergne | 2010-10-08 | 1 | -0/+3 | |
| | ||||||
* | Add missing include <errno.h> | Jérôme Schneider | 2010-10-08 | 1 | -1/+1 | |
| | ||||||
* | [Core] replace all use of g_strcmp0 by lasso_strisequal and lasso_strisnotequal | Benjamin Dauvergne | 2010-10-01 | 3 | -13/+16 | |
| | | | | | Too much human errors with strcmp kind of functions. Also change name os lasso_is_empty_string to lasso_strisempty. | |||||
* | [Core] add missing annotation to lasso_*_dump functions | Benjamin Dauvergne | 2010-09-27 | 1 | -2/+2 | |
| | | | | | The string returned by these functions is newly allocated and must be freed by the caller. | |||||
* | [XML] fix memleak in lasso_node_export_to_soap | Benjamin Dauvergne | 2010-09-17 | 1 | -0/+1 | |
| | ||||||
* | [XML] fix memleak of xmlSecKeyMngr when loading a key from a KeyInfo node | Benjamin Dauvergne | 2010-09-17 | 1 | -0/+1 | |
| | ||||||
* | [XML] fix memleak in get_xmlNode for LassoSamlp2LogoutRequest | Benjamin Dauvergne | 2010-09-17 | 1 | -0/+1 | |
| | ||||||
* | [XML] fix memleak in get_xmlNode for LassoSamlp2Response | Benjamin Dauvergne | 2010-09-17 | 1 | -2/+2 | |
| | ||||||
* | [XML] fix unused variable warnings | Benjamin Dauvergne | 2010-09-17 | 1 | -2/+4 | |
| | ||||||
* | [XML] fix mem leak whene releasing CustomElement structures | Benjamin Dauvergne | 2010-09-17 | 1 | -0/+3 | |
| | ||||||
* | [ID-WSFv1&ID-WSFv2] separate better strings for ID-WSF from other strings | Benjamin Dauvergne | 2010-09-09 | 211 | -24/+233 | |
| | | | | | | Code in core source file which depend upon ID-WSF symbols have been conditionalized, and each id-wsf source file now include directly its need string header. | |||||
* | Merge branch 'develop' into hotfixes-2.3.1 | Benjamin Dauvergne | 2010-09-03 | 4 | -7/+120 | |
|\ | ||||||
| * | [SAMLv2] when failing to recreate the content for the ArtefactResponse set a ↵ | Benjamin Dauvergne | 2010-09-03 | 1 | -0/+7 | |
| | | | | | | | | lasso specific status code | |||||
| * | [Core] load signature parameters | Benjamin Dauvergne | 2010-09-03 | 1 | -5/+49 | |
| | | | | | | | | | | | | | | | | | | | | Generic signature parameters (attached as qdata to nodes) is now reloaded when initializing a node from XML for a node type with a signature snippet in its metadatas. It fixes the problematic usage of ciphered private keys with the HTTP-Artifact binding (which needs to keep a copy of the AuthnResponse around and to sign it later). | |||||
| * | [Core] add private function to read an integer attribute | Benjamin Dauvergne | 2010-09-03 | 1 | -0/+21 | |
| | | | | | | | | | | This function does integer parsing and range checks, it returns TRUE if all goes well. | |||||
| * | [Core] add LAST enum values to LassoSignatureMethod and LassoSignatureType ↵ | Benjamin Dauvergne | 2010-09-03 | 2 | -2/+8 | |
| | | | | | | | | | | | | enumerations It helps making range checks. | |||||
| * | [Strings] add string constant for the internal XML attributes used in dumps | Benjamin Dauvergne | 2010-09-03 | 1 | -0/+35 | |
| | | | | | | | | | | | | | | | | | | Add string constants for signature method, signature type, private key (file path or content), private key password and certificate (file path or content). Add cast for xmlChar constant strings definition in python bindings, it assumed all constant strings were char*. | |||||
* | | [XML] use strtol instead of atoi to parse XSchema integers | Benjamin Dauvergne | 2010-08-25 | 1 | -2/+18 | |
|/ | | | | | This commit also reject negative integers from being parsed (all integers in SAMLv2 and ID-FFv1.2 schemas are positive integers). |