diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-03-30 09:59:59 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-03-30 09:59:59 +0000 |
| commit | 78dd82b5c733b56a511b5bc91d125702fa13e4f2 (patch) | |
| tree | 3b89fbf17b2d3a9ae391d90b92c78672ac133009 | |
| parent | 528c4fd6604fd4de147c8c5b5c3d528b62852c1b (diff) | |
| download | lasso-78dd82b5c733b56a511b5bc91d125702fa13e4f2.tar.gz lasso-78dd82b5c733b56a511b5bc91d125702fa13e4f2.tar.xz lasso-78dd82b5c733b56a511b5bc91d125702fa13e4f2.zip | |
Added HEADER
| -rw-r--r-- | lasso/Attic/protocols/single_sign_on_and_federation.c | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/lasso/Attic/protocols/single_sign_on_and_federation.c b/lasso/Attic/protocols/single_sign_on_and_federation.c index d9fa4b50..cd6a55ef 100644 --- a/lasso/Attic/protocols/single_sign_on_and_federation.c +++ b/lasso/Attic/protocols/single_sign_on_and_federation.c @@ -1,3 +1,28 @@ +/* $Id$ + * + * Lasso - A free implementation of the Liberty Alliance specifications. + * + * Copyright (C) 2004 Entr'ouvert + * http://lasso.entrouvert.org + * + * Authors: Valery Febvre <vfebvre@easter-eggs.com> + * Nicolas Clapies <nclapies@entrouvert.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include <lasso/protocols/single_sign_on_and_federation.h> LassoNode *lasso_build_authnRequest(const xmlChar *providerID, @@ -17,7 +42,6 @@ LassoNode *lasso_build_authnRequest(const xmlChar *providerID, // build AuthnRequest class request = lasso_lib_authn_request_new(); - lasso_samlp_request_abstract_set_requestID(LASSO_SAMLP_REQUEST_ABSTRACT(request), (const xmlChar *)lasso_build_unique_id(32)); lasso_samlp_request_abstract_set_minorVersion(LASSO_SAMLP_REQUEST_ABSTRACT(request), @@ -30,28 +54,28 @@ LassoNode *lasso_build_authnRequest(const xmlChar *providerID, lasso_lib_authn_request_set_providerID(LASSO_LIB_AUTHN_REQUEST(request), providerID); - if(nameIDPolicy){ + if(nameIDPolicy != NULL) { lasso_lib_authn_request_set_nameIDPolicy(LASSO_LIB_AUTHN_REQUEST(request), nameIDPolicy); } - - if(isPassive){ + + if(isPassive != NULL) { lasso_lib_authn_request_set_isPassive(LASSO_LIB_AUTHN_REQUEST(request), isPassive); } - - if(forceAuthn){ + + if(forceAuthn != NULL) { lasso_lib_authn_request_set_forceAuthn(LASSO_LIB_AUTHN_REQUEST(request), forceAuthn); } - - if(assertionConsumerServiceID){ + + if(assertionConsumerServiceID != NULL) { lasso_lib_authn_request_set_assertionConsumerServiceID(LASSO_LIB_AUTHN_REQUEST(request), assertionConsumerServiceID); } - - if(relayState!=NULL){ + + if(relayState != NULL) { lasso_lib_authn_request_set_relayState(LASSO_LIB_AUTHN_REQUEST(request), relayState); } - - if(consent!=NULL){ + + if(consent != NULL) { lasso_lib_authn_request_set_consent(LASSO_LIB_AUTHN_REQUEST(request), consent); } |
