X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2POSTDecoder.cpp;h=7fedc014a3a7f6e8b519346c5ebaae7c86e84a71;hp=bf7b55d9c73ff9505db97a16f3aac01e1c0a8265;hb=6ab457e2f63d1e0698d0ece6b171043f601b3677;hpb=48038b6787531fa6a5d182f5873f256a148a070d diff --git a/saml/saml2/binding/impl/SAML2POSTDecoder.cpp b/saml/saml2/binding/impl/SAML2POSTDecoder.cpp index bf7b55d..7fedc01 100644 --- a/saml/saml2/binding/impl/SAML2POSTDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2POSTDecoder.cpp @@ -62,7 +62,7 @@ XMLObject* SAML2POSTDecoder::decode( const HTTPRequest& httpRequest, const MetadataProvider* metadataProvider, const QName* role, - const X509TrustEngine* trustEngine + const opensaml::TrustEngine* trustEngine ) const { #ifdef _DEBUG @@ -182,9 +182,7 @@ XMLObject* SAML2POSTDecoder::decode( issuer=provider->getRoleDescriptor(*role, SAMLConstants::SAML20P_NS); if (issuer) { if (trustEngine && signature) { - issuerTrusted = static_cast(trustEngine)->validate( - *signature, *issuer, metadataProvider->getKeyResolver() - ); + issuerTrusted = trustEngine->validate(*signature, *issuer, metadataProvider->getKeyResolver()); if (!issuerTrusted) { log.error("unable to verify signature on message with supplied trust engine"); throw BindingException("Message signature failed verification.");