From 18352ddb396946ca7583f8a770cd59ecfca8abdb Mon Sep 17 00:00:00 2001 From: Christophe Nowicki Date: Tue, 10 Aug 2004 08:33:41 +0000 Subject: Removed the param 'remote_providerID' of lasso_login_init_authn_request() method Added a param 'remote_providerID' in lasso_login_build_authn_request_msg() method Fix compilation warnings, avoid multiple definitions and REGISTER_STRING_CONSTANT --- php/lasso.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'php/lasso.c') diff --git a/php/lasso.c b/php/lasso.c index 8ce15d4b..859a36fe 100644 --- a/php/lasso.c +++ b/php/lasso.c @@ -22,15 +22,16 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#ifdef HAVE_CONFIG_H -#include "lasso_config.h" -#endif - #include "php.h" #include "php_ini.h" #include "ext/standard/info.h" #include "php_lasso.h" +#ifdef HAVE_CONFIG_H +#include "lasso_config.h" +#endif + + #include "lasso.h" /* True global resources - no need for thread safety here */ @@ -222,9 +223,9 @@ PHP_MINIT_FUNCTION(lasso) /* Constants */ REGISTER_LONG_CONSTANT("lassoSignatureMethodRsaSha1", 1, CONST_CS | CONST_PERSISTENT); - REGISTER_STRING_CONSTANT("lassoLibConsentObtained", lassoLibConsentObtained, CONST_CS | CONST_PERSISTENT); - REGISTER_STRING_CONSTANT("lassoLibNameIDPolicyTypeFederated", lassoLibNameIDPolicyTypeFederated, CONST_CS | CONST_PERSISTENT); - REGISTER_STRING_CONSTANT("lassoLibProtocolProfileBrwsArt", lassoLibProtocolProfileBrwsArt, CONST_CS | CONST_PERSISTENT); + REGISTER_STRING_CONSTANT("lassoLibConsentObtained", (char *) lassoLibConsentObtained, CONST_CS | CONST_PERSISTENT); + REGISTER_STRING_CONSTANT("lassoLibNameIDPolicyTypeFederated", (char *)lassoLibNameIDPolicyTypeFederated, CONST_CS | CONST_PERSISTENT); + REGISTER_STRING_CONSTANT("lassoLibProtocolProfileBrwsArt", (char *) lassoLibProtocolProfileBrwsArt, CONST_CS | CONST_PERSISTENT); return SUCCESS; -- cgit