summaryrefslogtreecommitdiffstats
path: root/lasso/xml
Commit message (Collapse)AuthorAgeFilesLines
...
* [xml] add an inline function to validate LassoSignatureMethod valuesBenjamin Dauvergne2011-12-052-1/+10
| | | | - add also a LASSO_SIGNATURE_METHOD_NONE value
* Merge branch 'multi-certificates'Benjamin Dauvergne2011-11-292-2/+6
|\
| * [core] do not emit a warning for expected decryption errorsBenjamin Dauvergne2011-11-221-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 testsBenjamin Dauvergne2011-11-221-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 Dauvergne2011-11-291-0/+26
|\ \ | |/ |/|
| * [core] fix wrong XML canonicalization when assertion is extracted without ↵Benjamin Dauvergne2011-11-221-0/+26
| | | | | | | | its namespace context
* | [saml2] add missing extension point for LassoSaml2SubjectConfirmationDataBenjamin Dauvergne2011-11-181-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 stuctureBenjamin Dauvergne2011-11-182-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 Dauvergne2011-10-181-1/+1
| | | | | | | | LassoKeyInformationDataType
* | [xml saml-2.0] add a class to handle the KeyInfoConfirmationData typeBenjamin Dauvergne2011-10-134-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 TypeBenjamin Dauvergne2011-10-131-2/+7
| |
* | [xml] if a SNIPPET_LIST_NODES as the SNIPPET_ANY flag, allows really any ↵Benjamin Dauvergne2011-10-101-6/+3
| | | | | | | | kind of node through LassoMiscTextNode
* | [xml] allows LassoMiscText.init_from_xml to parse any xmlNodeBenjamin Dauvergne2011-10-101-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 namespaceBenjamin Dauvergne2011-10-101-1/+1
| |
* | [xml saml-2.0] change AttributeValue snippets to accept any childrenBenjamin Dauvergne2011-10-101-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 Dauvergne2011-10-071-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 portableBenjamin Dauvergne2011-05-181-3/+1
| |
* | [tools] redirect xmlsec errors to lasso error handlerBenjamin Dauvergne2011-04-141-0/+12
| |
* | [tools] use LASSO_LOG_DOMAIN instead of magic constantBenjamin Dauvergne2011-04-141-3/+4
| |
* | [Makefile] move lasso/xml/tools.h to public headersBenjamin Dauvergne2011-04-141-2/+2
| |
* | [xml] if signature reference is empty check that signed node is the document ↵Benjamin Dauvergne2011-04-041-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 Dauvergne2011-03-292-7/+20
| |
* | [xml] make id_attr_name parameter optional for lasso_verify_signatureBenjamin Dauvergne2011-03-291-4/+6
| |
* | [xml] fix lasso_node_get_xmlnode_for_any_typeBenjamin Dauvergne2011-03-071-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 conditionalsBenjamin Dauvergne2011-01-041-2/+4
|
* [xml] fix null pointer access in lasso_node_get_encryptionBenjamin Dauvergne2010-12-221-1/+1
|
* [xml] remove duplicate EncryptedKey around EncryptedData elementsBenjamin Dauvergne2010-12-141-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 elementsBenjamin Dauvergne2010-12-141-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 decryptionBenjamin Dauvergne2010-12-141-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 elementBenjamin Dauvergne2010-12-141-1/+2
|
* [saml2] use new encryption structure instead for internal field in ↵Benjamin Dauvergne2010-12-141-4/+5
| | | | LassoSaml2Assertion
* [xml] add field to contains encryption parameters inside CustomElement structureBenjamin Dauvergne2010-12-142-0/+70
|
* [xml] fix waring on use of strndup on pardusBenjamin Dauvergne2010-10-081-0/+3
|
* Add missing include <errno.h>Jérôme Schneider2010-10-081-1/+1
|
* [Core] replace all use of g_strcmp0 by lasso_strisequal and lasso_strisnotequalBenjamin Dauvergne2010-10-013-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 functionsBenjamin Dauvergne2010-09-271-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_soapBenjamin Dauvergne2010-09-171-0/+1
|
* [XML] fix memleak of xmlSecKeyMngr when loading a key from a KeyInfo nodeBenjamin Dauvergne2010-09-171-0/+1
|
* [XML] fix memleak in get_xmlNode for LassoSamlp2LogoutRequestBenjamin Dauvergne2010-09-171-0/+1
|
* [XML] fix memleak in get_xmlNode for LassoSamlp2ResponseBenjamin Dauvergne2010-09-171-2/+2
|
* [XML] fix unused variable warningsBenjamin Dauvergne2010-09-171-2/+4
|
* [XML] fix mem leak whene releasing CustomElement structuresBenjamin Dauvergne2010-09-171-0/+3
|
* [ID-WSFv1&ID-WSFv2] separate better strings for ID-WSF from other stringsBenjamin Dauvergne2010-09-09211-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.1Benjamin Dauvergne2010-09-034-7/+120
|\
| * [SAMLv2] when failing to recreate the content for the ArtefactResponse set a ↵Benjamin Dauvergne2010-09-031-0/+7
| | | | | | | | lasso specific status code
| * [Core] load signature parametersBenjamin Dauvergne2010-09-031-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 attributeBenjamin Dauvergne2010-09-031-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 Dauvergne2010-09-032-2/+8
| | | | | | | | | | | | enumerations It helps making range checks.
| * [Strings] add string constant for the internal XML attributes used in dumpsBenjamin Dauvergne2010-09-031-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 integersBenjamin Dauvergne2010-08-251-2/+18
|/ | | | | This commit also reject negative integers from being parsed (all integers in SAMLv2 and ID-FFv1.2 schemas are positive integers).