summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/server.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix license boilerplatesSimo Sorce2013-12-031-2/+1
| | | | | | | Instad of referring to an old FSF address, point the reader to the FSF website where the latest licenses and addresses are published. Signed-off-by: Simo Sorce <simo@redhat.com>
* [id-ff/saml2] add a lasso_server_add_provider2Benjamin Dauvergne2011-12-051-0/+2
| | | | | It allows to add LassoProvider objects directly to a LassoServer object, without using the metadata loading methods.
* [core] make LassoServerLoadMetadataFlag enum a typedefBenjamin Dauvergne2011-04-201-3/+3
|
* [core] add flags parameter to lasso_server_load_metadata to tune signature ↵Benjamin Dauvergne2011-04-141-1/+21
| | | | | | | | | | | | | | | checking on metadata files The flags parameter allows to control the checking of digital signature upon EntityDescriptor and EntitiesDescriptor nodes in SAML 2.0 metadata files. The default behaviour is to check all found signatures and to inherit signature from EntitiesDescriptor to their children. By only enabling checking of EntityDescrtiptor node signatures it's also possible to only check signature at the EntityDescriptor level and so only trust individual entities and not the aggregating provider.
* [core] rename lasso_server_load_federation to lasso_server_load_metadataBenjamin Dauvergne2011-04-041-1/+1
| | | | | | | The aim of this function is now to load any metadata file, and to replace completely the use of lasso_server_add_provider. The metadata content argument is replaced by a metadata file path to more closely match other APIs.
* [core] add a loaded_entity_ids output parameter to lasso_server_load_federationBenjamin Dauvergne2011-03-301-1/+1
| | | | | It allows to know which entity has been loaded from the metadata file. It must be freed by the caller.
* [core] add a blacklisted_entity_ids parameter to lasso_server_load_federationBenjamin Dauvergne2011-03-301-1/+1
| | | | The goal is to prevent loading of provider known to have problems.
* [core] add a lasso_server_load_federation methodBenjamin Dauvergne2011-03-291-0/+3
| | | | | | | | | | | This method allows to load providers in bulk from what is called a federation file, i.e a SAML metadata file containing declarations for more than one provider. Those file are usually signed to bind some trust to its content, so lasso_server_load_federation can take an optional file path to a certificate chain file used to check the signature on the given XML content. Only same document signature is accepted (i.e. there must be only one XML signature reference and it should be to the empty string meaning the « current » document).
* [Core] change return type of all error returning methodsBenjamin Dauvergne2010-07-121-5/+5
| | | | | The new return type is lasso_error_t, it should allow to pinpoint easily methods returning an error code in bindings.
* Core: add method lasso_server_set_encryption_private_key_with_passwordBenjamin Dauvergne2010-06-101-1/+4
| | | | * fixes #91.
* Core: in LassoServer constructors, test if private_key is loadableBenjamin Dauvergne2010-02-081-2/+2
| | | | | | | | | | | | * lasso/id-ff/server.c: mark private_key as not mandatory as regression tests expect it to not be mandatory. test if loading of private key to encryption_private_key private field worked, if not abort the constructor and return NULL. * lasso/id-ff/server.h: fix name of constructors argument to corresponds with comments (binding generator use this correspondance to apply annotation from comments to the model obtained by parsing the headers).
* ID-WSF 1.0: make LassoServer.services private with respect to the bindingsBenjamin Dauvergne2010-01-281-0/+2
|
* Core: in server.c, change signature of lasso_server_get_provider, add ↵Benjamin Dauvergne2010-01-041-1/+1
| | | | | | | | anottations on return value * lasso/id-ff/server.h lasso/id-ff/server.c: - constify first argument of lasso_server_get_provider - add annotation about caller owned return value
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-261-16/+1
| | | | | | | | | | | | | * 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.
* Add new constructor lasso_server_new_from_buffersBenjamin Dauvergne2008-11-021-0/+5
| | | | | | | * lasso/id-ff/server.c, lasso/id-ff/server.h: add new function to build a LassoServer object holding content of certificate and private key files intead of loading them everytime signing is needed. You must instead load them yourself the first time.
* * Remove ending blanksBenjamin Dauvergne2008-09-121-6/+6
|
* Add public function lasso_server_add_provider_from_buffer, to add a providerBenjamin Dauvergne2008-08-261-0/+3
| | | | | | | | from an XML string of the metadatas (changed semantic of the second argument compared to lasso_server_add_provider). To support this a new public LassoProvider constructor was added: lasso_provider_new_from_buffer, where the second argument is an XML string. It uses a new private function, lasso_provider_load_metadata_from_buffer.
* added item types for GHashTableDamien Laniel2007-11-131-2/+3
|
* updated Copyright dates in all filesDamien Laniel2007-05-301-1/+1
|
* new server.addServiceFromDump method, and extended addService to work for bothFrederic Peters2007-04-251-1/+3
| | | | | | id-wsf 1 and 2; also necessary to add quick hack in new_from_xmlnode to map SvcMD to SvcMetadata.
* added loading of affiliation metadata (not yet acted upon)Frederic Peters2006-11-191-0/+2
|
* const'ified some char*Frederic Peters2006-11-191-3/+5
|
* s/file_name/filename/Frederic Peters2006-11-191-1/+1
|
* changed prototype for lasso_server_set_encryption_private_key and added ↵Damien Laniel2006-11-091-1/+1
| | | | error handling
* load encryption private keyDamien Laniel2006-11-091-0/+2
|
* sync arg name in header file with real arg namesFrederic Peters2005-08-241-1/+1
|
* renamed secret_key to private_key_password since it was badly named and unusedFrederic Peters2005-04-251-1/+1
| | | | (so no API breakage)
* added missing lasso_config.h include (necessary for LASSO_WSF_ENABLEDFrederic Peters2005-03-181-0/+2
| | | | definition)
* don't compile id-wsf files when wsf is disabled; this cuts down buildFrederic Peters2005-03-181-0/+4
| | | | time by a nice margin.
* Merged wsf-api-change-not-for-0-6 branch with trunk.Emmanuel Raviart2005-01-271-1/+10
|
* "hope you paid attention to API/ABI".Frederic Peters2005-01-251-0/+1
|
* Removed service from ID-FF. It was obsolete and will be replaced with a newEmmanuel Raviart2005-01-241-6/+0
| | | | API, once Lasso 0.6 is out.
* Updated Copyright and authors.Emmanuel Raviart2005-01-221-3/+2
|
* created serverprivate.h for two private #LassoServer methodsFrederic Peters2005-01-041-4/+0
|
* Updated LassoServer SWIG binding.Emmanuel Raviart2004-12-311-2/+4
|
* moved remaining lasso[A-Z].* enums to Lasso[A-Z].*Frederic Peters2004-12-311-1/+1
|
* documented #LassoServerFrederic Peters2004-12-221-2/+3
|
* Added lasso_server_add_service() methodValery Febvre2004-12-101-0/+6
|
* limit line length to 100 characters.Frederic Peters2004-11-251-24/+18
|
* renamed private struct member to private_data (gtk+ does it like that)Frederic Peters2004-11-221-1/+1
|
* renamed lasso/environs/ to lasso/id-ff/Frederic Peters2004-11-151-1/+1
|
* Done with the move to structures and the removal of protocols/ (lasso branchedFrederic Peters2004-10-271-30/+19
| | | | | | | | 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.
* Renamed 'ca_certificate' property of LassoProvider object to 'ca_cert_chain'Valery Febvre2004-09-271-23/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Added a new property 'secret_key' in LassoServer object Changed prototype of lasso_server_new() method BEFORE: LassoServer * lasso_server_new(gchar *metadata, gchar *public_key, gchar *private_key, gchar *certificate, lassoSignatureMethod signature_method) AFTER: LassoServer * lasso_server_new(const gchar *metadata, const gchar *private_key, const gchar *secret_key, const gchar *certificate) public_key param was removed because it was useless. secret_key was added to decrypt private_key signature_method was removed (default value is lassoSignatureMethodRsaSha1). 2 new methods was added to access 'signature_method' property of LassoServer: lasso_server_get_signature_method() and lasso_server_set_signature_method() Update Lasso.i
* Added lasso_server_get_first_providerID() methodValery Febvre2004-09-201-0/+2
|
* Changed type of signature_methodValery Febvre2004-08-191-6/+6
| | | | guint -> lassoSignatureMethod
* Added a param 'err' in 2 methods of LassoServer class:Valery Febvre2004-08-111-4/+6
| | | | | | lasso_server_get_provider, lasso_server_get_provider_ref for errors reporting
* In the dump of the server object,Valery Febvre2004-08-081-2/+2
| | | | | | | | rather than use the "Lasso" word in the name of nodes, the namespace of the root elment is now set to the Lasso namespace (without prefix). Relpaced the lasso_str_hash() call by lasso_sha1() in the lasso_server_get_providerID_from_hash() method.
* lasso_server_get_providerID_from_hash() method takes nowValery Febvre2004-08-051-1/+1
| | | | a hash base64 encoded as argument.
* Renamed lasso_server_get_provider() into lasso_server_get_provider_ref()Valery Febvre2004-08-041-0/+3
| | | | Added lasso_server_get_provider(), this method returns a provider copy.
* Added lasso_server_copy() methodValery Febvre2004-07-281-18/+18
|