summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2005-05-12 21:28:26 +0000
committerFrederic Peters <fpeters@entrouvert.com>2005-05-12 21:28:26 +0000
commitebde5d5f2e88a9e0373ca1cc993121a6e411565a (patch)
treec30baf1fbdbc4611b1fb93514924132c2a244c7f
parent0fcd78757b425cea9ff6028463db404efafb6b0a (diff)
allows fake brws-lecp profile (introduced by Nicolas) to be used in
lasso_login_build_authn_response_msg, so LECP works again.
-rw-r--r--lasso/id-ff/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c
index 6670ed2c..c5b8a95f 100644
--- a/lasso/id-ff/login.c
+++ b/lasso/id-ff/login.c
@@ -867,7 +867,8 @@ lasso_login_build_authn_response_msg(LassoLogin *login)
profile = LASSO_PROFILE(login);
/* ProtocolProfile must be BrwsPost */
- if (login->protocolProfile != LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_POST) {
+ if (login->protocolProfile != LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_POST &&
+ login->protocolProfile != LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_LECP) {
return critical_error(LASSO_PROFILE_ERROR_INVALID_PROTOCOLPROFILE);
}