diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-12 09:48:23 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-12 09:48:23 +0000 |
| commit | 686951e381674852eeb825fa6b60ece37b850672 (patch) | |
| tree | 4a07eb20549c336927b05ab624f1a10f1cd44b18 | |
| parent | 2f15b4431d442cb815d681c37c4a2c9a6e3cec3a (diff) | |
Use defined symbols instead of magic constants
| -rw-r--r-- | lasso/xml/xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index f54fd7ff..e3a2a5dc 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -2621,11 +2621,11 @@ lasso_node_init_from_saml2_query_fields(LassoNode *node, char **query_fields, G_ if (t == NULL) continue; *t = 0; - if (strcmp(field, "SAMLEncoding") == 0) { + if (strcmp(field, LASSO_SAML2_FIELD_ENCODING) == 0) { enc = t+1; continue; } - if (strcmp(field, "SAMLRequest") == 0 || strcmp(field, "SAMLResponse") == 0) { + if (strcmp(field, LASSO_SAML2_FIELD_REQUEST) == 0 || strcmp(field, LASSO_SAML2_FIELD_RESPONSE) == 0) { req = t+1; continue; } |
