Commit Graph

86 Commits

Author SHA1 Message Date
Benjamin Dauvergne fd256b2269 Docs: change the doc production and lot of other fixes
* lasso/Makefile.am:
   distribute extract_sections.py
 * docs/references/lasso/lasso.types.in: add missing class (mainly SAML2
   and ID-WSF 1.0/2.0) from docs/references/lasso.types.in

 * lasso/xml/strings.h:
   add lots of documentation, or at least documentation template to
   strings constants.
 * id-ff/login.h:
 * saml-2.0/assertion_query.h:
 * xml/xml.h:
   document undocumented enumerations.
 * lasso/errors.h:
   add proper documentation about error codes.
 * lasso/errors.c:
   new version of the lasso_strerror function
 * lasso/build_strerror.py:
   update the script that generater lasso_strerror from the
   documentation comments.

   Remove usage of OFTYPE

 * lasso/id-ff/session.c:
 * lasso/id-ff/session.h:
   remove usage of oftype, prefer gtk-introspection annotations instead.
 * lasso/id-wsf/data_service.h:
 * lasso/id-wsf/data_service.c:
   do the same.

   Add a script to build lasso-sections.txt

 * lasso/extract_sections.py:
   this script parses header files and generated lasso-sections.txt
   content for GObject class descriptions.

   Add a template file for the lasso-section.txt file

 * docs/references/lasso-sections.txt.in:
   this file serves as a base for the generation of lasso-sections.txt

   Update docs/references/Makefile.am for generating lasso-sections.txt

 * docs/references/Makefile.am:
   always rebuild template, using out of source build directory is too
   weird without it.
   call new script extract_sections.py to regenerate lasso-sections.txt
   if header files changed.

   Update lasso.sgml file with all missing sections

 * docs/reference/lasso.sgml:
   add all missing sections, mainly objects from XML schemas.

 * docs/reference/lasso-sections.txt: update it

 * *.c: add section documentation to some files.
 * lasso/xml/strings.h: fix bad usage or docbook markup
2009-08-26 15:15:07 +00:00
Benjamin Dauvergne 7231771856 All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF code
* nearly all C files: change includes for relative paths.
 * lasso/id-wsf/id_wsf.h, lasso/id-wsf-2.0/id_wsf_2.h: add top level
   public include files for ID-WSF 1.0 and ID-WSF 2.0.
 * lasso/id-ff/server.*, lasso/id-ff/session.*, lasso/id-ff/identity.*:
   remove most of the code related to ID-WSF and push into
   lasso/id-wsf/id_ff_extensions.* and lasso/id-wsf-2.0/identity.c,
   lasso/id-wsf-2.0/server.c, lasso/id-wsf-2.0/session.c.
 * lasso/id-wsf-2.0/saml2_login.c,
   lasso/id-wsf-2.0/saml2_login_private.h: same change but for ID-WSF
   2.0 support in SAML2 SSO profile.
2009-08-26 15:14:32 +00:00
Benjamin Dauvergne 7f09fe60de Fix bug #94: permit any content for AttributeValue
* lasso/xml/private.h:
 * lasso/xml/xml.h
 * lassoi/xml/xml.c:
   add an implementation helper for the AttributeValue objects
   implementation of get_xmlNode.
   make lasso_node_set_original_xmlnode public API.
 * lasso/xml/saml-2.0/samlp2_extensions.c:
 * lasso/xml/saml-2.0/saml2_attribute_value.c:
 * lasso/xml/saml_attribute_value.c:
   implement get_xmlNode for the AttributeValue and Extensions objects.
   If the any field is empty, use the original_xmlnode value.  In order
   to support free-style content, you must use the method
   lasso_node_set_original_xmlnode, properties and children are
   extracted from the given node and added to the node created by the
   generic get_xmlNode virtual method.
2009-03-27 15:04:41 +00:00
Benjamin Dauvergne b09ef2e015 Core: do not mix public and private headers
* lots of files:
   explicitely load the internal header xml/private.h where needed.
2009-03-27 15:04:26 +00:00
Benjamin Dauvergne 71e43cfd1f Core: add a new messsage format error for XSchema constraint failure 2009-01-24 09:34:07 +00:00
Benjamin Dauvergne 12afeac716 Restore ABI compatibility wrt original_xmlNode
* lasso/xml/xml.c:
  - use set/get_qdata to store the original xmlnode, modify
    init_from_xml and dispose function to cope with this new storage
    place.
 * lasso/xml/xml.h:
  - remove field original_xmlNode from structure LassoNode to keep ABI
    compatibility with previous versions.
  - declare new API lasso_node_get_original_xmlnode
2008-11-03 15:01:33 +00:00
Benjamin Dauvergne a8adf797fe API to cleanup LassoNode tree of keeped xmlNode
* lasso/xml/xml.c:
  - add a new function lasso_node_cleanup_original_xmlnodes to
    disallocate all keeped xmlNode inside a tree of LassoNodes.
  - add internal function lasso_node_traversal to iterate across a
    LassoNode tree (could be used to reimplement lasso_node_destroy)
    It is a preorder traversal.
2008-11-03 14:15:44 +00:00
Benjamin Dauvergne 10156acfa8 Add original_xmlNode pointer to LassoNode
* lasso/xml/xml.h: add an xmlNode field to base class LassoNode,
   to permit retrieving the xmlNode originally parsed when the structure
   is the result of parsing. Will be used by signature checking code.
2008-11-03 14:15:41 +00:00
Benjamin Dauvergne 9ed0670e48 * Remove ending blanks 2008-09-12 15:06:58 +00:00
Damien Laniel d10770c933 moved xmlenc.h include where it is really needed 2007-06-12 14:05:38 +00:00
Damien Laniel 1b43fbd59d added dst profile registration 2007-06-05 13:05:42 +00:00
Damien Laniel 4fc6657e0c updated Copyright dates in all files 2007-05-30 17:17:45 +00:00
Damien Laniel 995323d234 added LASSO_EXPORT for a function in a public header 2007-05-03 16:47:31 +00:00
Damien Laniel 9aeb062629 don't use lasso_node_dump to create xml soap messages 2007-05-03 13:14:00 +00:00
Damien Laniel 92e8799a56 - Moved the EncryptedKey to the same level as EncryptedData in xml
- Changed the prototype for lasso_node_encrypt and lasso_node_encrypt
- Moved lasso_node_encrypt and lasso_node_encrypt declaration to xml_enc.h
- Added a GList for EncryptedKey in EncryptedElement
2006-11-16 14:34:57 +00:00
Damien Laniel 8a331ac747 Decryption of EncryptedID in Assertion 2006-11-15 18:56:34 +00:00
Nicolas Clapies 85d8ea7d4b Fixed big mistake about PAOS naming. Added more strict check when trying to process PAOS response in login.c. 2006-11-14 15:09:29 +00:00
Nicolas Clapies 608cfa1fee Added functions to export to PAOS request and ECP response. 2006-11-14 13:57:40 +00:00
Damien Laniel bbe9347390 Header for lasso_node_encrypt 2006-11-13 11:54:47 +00:00
Frédéric Péters 930965e7f4 possibility to register new dst services. 2005-09-11 09:08:31 +00:00
Frédéric Péters 01d516e3d4 typo fix and longer description 2005-02-21 14:28:52 +00:00
Frédéric Péters c5d7126222 documented enums 2005-02-21 14:21:52 +00:00
Emmanuel Raviart 7a03e99b09 Updated Copyright and authors. 2005-01-22 15:57:56 +00:00
Frédéric Péters 142e64189f moved errors.[ch] up; as requested. 2005-01-12 17:42:01 +00:00
Frédéric Péters 9b444f7796 Removed second and third parameters of lasso_node_dump since @encoding is
always UTF-8 and @format is always to indent XML in lasso dumps.
2005-01-01 18:53:30 +00:00
Frédéric Péters ac3e5574fc moved remaining lasso[A-Z].* enums to Lasso[A-Z].* 2004-12-31 18:33:23 +00:00
Frédéric Péters 815595a4d5 moved lasso_strerror to public interface 2004-12-31 15:37:21 +00:00
Frédéric Péters aed3f5693a removed obsolete (since move to structure) lasso_node_verify_signature (but
lasso is still lacking signature check for assertion)
2004-12-31 14:32:48 +00:00
Frédéric Péters ed279fc6a3 moved lasso_node_build_query to private functions 2004-12-30 14:51:14 +00:00
Frédéric Péters 98435cf8d8 merged tools.h and internals.h in new private.h, excluded from API reference. 2004-12-30 13:58:55 +00:00
Frédéric Péters 07fcdf0c4e generate xmlsec signatures in get_xmlNode; this should allow envelopes (in
LECP) to work properly.
2004-12-28 12:44:22 +00:00
Frédéric Péters bccdbae127 Removed _new functions for abstract classes; added _new functions for classes
that only had _new_full functions.  Documented a little bit; marked public
members in structures as such.
2004-12-23 13:10:31 +00:00
Frédéric Péters 95afff30e7 Added differentiation between creating xmlnode for lasso use (the _dump
functions) and creating xmlnode for the wire (export_to_soap...).  This
was necessary to keep track of private_key_file to use on an Assertion
while it was kept in a lasso session dump and restored later.

This means the get_xmlNode functions have now a second parameter, gboolean
lasso_dump, TRUE when dumping for lasso internal use.

On the bright side assertions are now signed (that signature is not yet
checked).
2004-12-19 20:34:22 +00:00
Frédéric Péters ca7ca6c2ce Isolated CFLAGS to be used when compiling Lasso in LASSO_CORE_CFLAGS; don't use
those when compiling tests in order to catch errors in headers.  Also moved a
few things in header files; need more thinking about that.
2004-12-17 18:02:42 +00:00
Frédéric Péters 4001107232 don't export functions defined in tools.h 2004-12-17 16:57:32 +00:00
Frédéric Péters d1b99b7bbb Added back xmlsec signature check (and disabled it in name identifier mapping
profile since it is buggy there).  The signature check requires another call to
xmlParseMemory; this makes them 3 per SOAP message (sign check +
lasso_profile_get_request_type_from_soap_msg and lasso_node_init_from_message).
I'll think further about this.
2004-12-10 16:13:34 +00:00
Frédéric Péters 05577f5672 last(?) iteration on XmlSnippet; now attached to classes, get_xmlNode and
init_from_xml are no longer necessary in many cases.  Previous XmlSnippet
renamed to XmlSnippetObsolete to keep compatibility (id-wsf classes have not
yet been converted).
2004-12-02 14:54:43 +00:00
Frédéric Péters 8ad4344cd5 moved xml snippet stuffs into new internals.h; those should not be exposed;
changed snippet type from character to enum (defined in internals.h)
2004-11-26 14:13:02 +00:00
Frédéric Péters c556e1fdcc limit line length to 100 characters. 2004-11-25 22:25:51 +00:00
Frédéric Péters 476ec0350c added error checking on query strings; python tests should now pass 2004-11-22 13:13:16 +00:00
Frédéric Péters 59bdda3549 use same "xmlsnippets" (name will probably change) to build xml nodes 2004-11-17 23:04:57 +00:00
Frédéric Péters cfc0735197 refactored init_from_xml functions (lasso is now less than 20000 lines) 2004-11-17 17:18:51 +00:00
Frédéric Péters e9279c3acb cleaning #includes 2004-11-16 15:40:43 +00:00
Frédéric Péters 07e1b7c04f return value on init_from_xml; and minor tweaks to code style 2004-11-09 09:08:47 +00:00
Frédéric Péters b40dfb2c28 ds:Signature in <samlp:request/> (in login) (and the signature is not verified
yet)
2004-10-29 23:06:37 +00:00
Frédéric Péters 060ad25dd1 removed unused code 2004-10-27 15:41:05 +00:00
Frédéric Péters f13772d62d Done with the move to structures and the removal of protocols/ (lasso branched
on October 2nd; occasional merges since then).

- Compatible with current souk test suites.
- Missing memory management for everything in xml/
- Missing xmlsec support for SOAP messages.
2004-10-27 09:49:13 +00:00
Valery Febvre f465542388 Removed lasso_node_verify_x509_signature() method. This method isn't useful anymore.
lasso_node_verify_signature() can now verify signatures with or without X509Data.
Added a new param "ca_cert_chain_file" in lasso_node_verify_signature()
2004-09-27 13:53:13 +00:00
Nicolas Clapies 4fb5358591 added support of URI identifier in signature 2004-08-23 14:05:20 +00:00
Valery Febvre 3a48fd24cd Added lasso_node_new_ns_prop() method in LassoNode class 2004-08-22 16:07:14 +00:00