summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2007-06-08 18:16:42 +0000
committerFrederic Peters <fpeters@entrouvert.com>2007-06-08 18:16:42 +0000
commit32aff7ef142b3aba56bd9944f56c304eedbffc5e (patch)
tree5334a1c79badd2b6a52694b43416b5fe9fb8b545
parent6ef47339f7a0fd61cf4f7e5e6027eaf6bdff9745 (diff)
downloadlasso-32aff7ef142b3aba56bd9944f56c304eedbffc5e.tar.gz
lasso-32aff7ef142b3aba56bd9944f56c304eedbffc5e.tar.xz
lasso-32aff7ef142b3aba56bd9944f56c304eedbffc5e.zip
differentiate between id-wsf 1 & 2 since this is what is expected in other
places (won't work as easily for DST)
-rw-r--r--lasso/id-ff/profile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lasso/id-ff/profile.c b/lasso/id-ff/profile.c
index f7b43b2e..bab56e1c 100644
--- a/lasso/id-ff/profile.c
+++ b/lasso/id-ff/profile.c
@@ -133,9 +133,10 @@ lasso_profile_get_request_type_from_soap_msg(const gchar *soap)
} else if (strcmp(name, "AuthnRequest") == 0) {
type = LASSO_REQUEST_TYPE_LECP;
} else if (strcmp(name, "Query") == 0) {
- if (strcmp((char*)ns->href, LASSO_DISCO_HREF) == 0 ||
- strcmp((char*)ns->href, LASSO_IDWSF2_DISCO_HREF) == 0) {
+ if (strcmp((char*)ns->href, LASSO_DISCO_HREF) == 0) {
type = LASSO_REQUEST_TYPE_DISCO_QUERY;
+ } else if (strcmp((char*)ns->href, LASSO_IDWSF2_DISCO_HREF) == 0) {
+ type = LASSO_REQUEST_TYPE_IDWSF2_DISCO_QUERY;
} else {
type = LASSO_REQUEST_TYPE_DST_QUERY;
}