if (*more != -1)
return false;
- *authenticated = m_authenticated;
- *complete = false;
+ if (authenticated != NULL)
+ *authenticated = m_authenticated;
+ if (complete != NULL)
+ *complete = true;
XMLHelper::serialize(m_assertion->marshall((DOMDocument *)NULL), str);
{
const gss_eap_saml_assertion_provider *saml;
- *authenticated = false;
- *pAssertion = NULL;
+ if (authenticated != NULL)
+ *authenticated = false;
+ if (pAssertion != NULL)
+ *pAssertion = NULL;
saml = static_cast<const gss_eap_saml_assertion_provider *>
(m_manager->getProvider(ATTR_TYPE_SAML_ASSERTION));
if (saml == NULL)
return false;
- *authenticated = saml->authenticated();
- *pAssertion = saml->getAssertion();
+ if (authenticated != NULL)
+ *authenticated = saml->authenticated();
+ if (pAssertion != NULL)
+ *pAssertion = saml->getAssertion();
- return (*pAssertion != NULL);
+ return (saml->getAssertion() != NULL);
}
gss_eap_saml_attr_provider::~gss_eap_saml_attr_provider(void)
{
const saml2::Assertion *assertion;
- *authenticated = false;
- *complete = true;
+ if (authenticated != NULL)
+ *authenticated = false;
+ if (complete != NULL)
+ *complete = true;
*pAttribute = NULL;
if (!getAssertion(authenticated, &assertion) ||
if (display_value != NULL)
duplicateBuffer(buf, display_value);
}
-
- *authenticated = m_authenticated;
- *complete = false;
+
+ if (authenticated != NULL)
+ *authenticated = m_authenticated;
+ if (complete != NULL)
+ *complete = false;
if (nvalues > ++i)
*more = i;