X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fbinding%2Fimpl%2FMessageDecoder.cpp;h=ffcd27bd604aed89c7bb9b40030413f9ff943160;hb=0703fa970c8d1f15600ce3fd1b350bdb90930bb9;hp=0b8727086fed78e0702706e7a393ff3bc10c239e;hpb=5263186a620ca02913980ad2d35d4045844e7a05;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/binding/impl/MessageDecoder.cpp b/saml/binding/impl/MessageDecoder.cpp index 0b87270..ffcd27b 100644 --- a/saml/binding/impl/MessageDecoder.cpp +++ b/saml/binding/impl/MessageDecoder.cpp @@ -22,6 +22,7 @@ #include "internal.h" #include "binding/MessageDecoder.h" +#include "util/samlconstants.h" using namespace opensaml; using namespace xmltooling; @@ -41,8 +42,8 @@ namespace opensaml { void SAML_API opensaml::registerMessageDecoders() { SAMLConfig& conf=SAMLConfig::getConfig(); - //conf.MessageDecoderManager.registerFactory(SAML1_ARTIFACT_DECODER, saml1p::SAML1ArtifactDecoderFactory); - conf.MessageDecoderManager.registerFactory(SAML1_POST_DECODER, saml1p::SAML1POSTDecoderFactory); - //conf.MessageDecoderManager.registerFactory(SAML2_ARTIFACT_DECODER, saml2p::SAML2ArtifactDecoderFactory); - //conf.MessageDecoderManager.registerFactory(SAML2_POST_DECODER, saml2p::SAML2POSTDecoderFactory); + conf.MessageDecoderManager.registerFactory(samlconstants::SAML1_PROFILE_BROWSER_ARTIFACT, saml1p::SAML1ArtifactDecoderFactory); + conf.MessageDecoderManager.registerFactory(samlconstants::SAML1_PROFILE_BROWSER_POST, saml1p::SAML1POSTDecoderFactory); + conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_HTTP_ARTIFACT, saml2p::SAML2ArtifactDecoderFactory); + conf.MessageDecoderManager.registerFactory(samlconstants::SAML20_BINDING_HTTP_POST, saml2p::SAML2POSTDecoderFactory); }