summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/framework/signaturecreatorimpl.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-26 13:55:17 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-26 13:55:17 +0000
commita1fb0e060c96b7a032672ebe7ab6d556274329f0 (patch)
tree37f45d9895ea96c00a4dc467965af00bae27cbd2 /xmlsecurity/source/framework/signaturecreatorimpl.cxx
parent57849918d5c7f877dcc3ee1f6cbd125f373b3dc7 (diff)
INTEGRATION: CWS xmlsec06 (1.1.1.1.2); FILE MERGED
2004/10/12 08:30:49 mmi 1.1.1.1.2.1: add error detail information Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'xmlsecurity/source/framework/signaturecreatorimpl.cxx')
-rw-r--r--xmlsecurity/source/framework/signaturecreatorimpl.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/xmlsecurity/source/framework/signaturecreatorimpl.cxx b/xmlsecurity/source/framework/signaturecreatorimpl.cxx
index 3de42e6c4e11..a5f4a3e5681a 100644
--- a/xmlsecurity/source/framework/signaturecreatorimpl.cxx
+++ b/xmlsecurity/source/framework/signaturecreatorimpl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: signaturecreatorimpl.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mt $ $Date: 2004-07-12 13:15:23 $
+ * last change: $Author: rt $ $Date: 2004-11-26 14:54:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -160,10 +160,7 @@ void SignatureCreatorImpl::notifyResultListener() const
cssu::Reference< cssxc::sax::XSignatureCreationResultListener >
xSignatureCreationResultListener ( m_xResultListener , cssu::UNO_QUERY ) ;
- xSignatureCreationResultListener->signatureCreated(
- m_nSecurityId,
- m_bOperationSucceed?(cssxc::sax::SignatureCreationResult_CREATIONSUCCEED):
- (cssxc::sax::SignatureCreationResult_CREATIONFAIL));
+ xSignatureCreationResultListener->signatureCreated( m_nSecurityId, m_nStatus );
}
void SignatureCreatorImpl::startEngine( const cssu::Reference<
@@ -202,18 +199,17 @@ void SignatureCreatorImpl::startEngine( const cssu::Reference<
try
{
xResultTemplate = m_xXMLSignature->generate(xSignatureTemplate, m_xXMLSecurityContext);
+ m_nStatus = xResultTemplate->getStatus();
}
catch( cssu::Exception& )
{
- xResultTemplate = NULL;
+ m_nStatus = cssxc::SecurityOperationStatus_RUNTIMEERROR_FAILED;
}
- if (xResultTemplate.is())
+ if (m_nStatus == cssxc::SecurityOperationStatus_OPERATION_SUCCEEDED)
{
cssu::Reference < cssxw::XXMLElementWrapper > xResultSignature = xResultTemplate->getTemplate();
m_xSAXEventKeeper->setElement(m_nIdOfTemplateEC, xResultSignature);
-
- m_bOperationSucceed = true;
}
}