X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2FSAMLConfig.cpp;h=298e84b864f89403d55875136315aa899d3b541b;hb=c58e2f7e5548d50e3ace691717ee128b044f6bb2;hp=5efbb590f1ec1ff3ca54e370d2d9be00dfa8a743;hpb=aa38b7bb85d9617d63a791c02eab5c376199661f;p=shibboleth%2Fopensaml2.git diff --git a/saml/SAMLConfig.cpp b/saml/SAMLConfig.cpp index 5efbb59..298e84b 100644 --- a/saml/SAMLConfig.cpp +++ b/saml/SAMLConfig.cpp @@ -288,6 +288,14 @@ Assertion::~Assertion() { } +Status::Status() +{ +} + +Status::~Status() +{ +} + using namespace saml2p; using namespace saml2md; @@ -348,18 +356,18 @@ void opensaml::annotateException(XMLToolingException* e, const RoleDescriptor* r e->addProperty("errorURL",eurl.get()); } } - + if (status) { - auto_ptr_char sc(status->getStatusCode() ? status->getStatusCode()->getValue() : nullptr); + auto_ptr_char sc(status->getTopStatus()); if (sc.get() && *sc.get()) e->addProperty("statusCode", sc.get()); - if (status->getStatusCode()->getStatusCode()) { - auto_ptr_char sc2(status->getStatusCode()->getStatusCode()->getValue()); + if (status->getSubStatus()) { + auto_ptr_char sc2(status->getSubStatus()); if (sc2.get() && *sc.get()) e->addProperty("statusCode2", sc2.get()); } - if (status->getStatusMessage()) { - auto_ptr_char msg(status->getStatusMessage()->getMessage()); + if (status->getMessage()) { + auto_ptr_char msg(status->getMessage()); if (msg.get() && *msg.get()) e->addProperty("statusMessage", msg.get()); }