https://bugzilla.novell.com/show_bug.cgi?id=284339
User sbrys@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=284339#c7
--- Comment #7 from Simon Brys 2009-01-21 03:17:04 MST ---
Verified that the problem is indeed a difference in size of "xmlSecSize"
(size_t in OpenOffice_org-components versus unsigned int in
OpenOffice_org-libs-extern). This causes the offset of the "status" field in
the "xmlSecDSigCtx" struct to be different. The result is that in
xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx, in generate(),
pDsigCtx->status is not found to be equal to xmlSecDSigStatusSucceeded, even
though in libxmlsec/download/xmlsec1-1.2.6.tar.gz, in
xmlsec1-1.2.6/src/xmldsig.c, in xmlSecDSigCtxSign(), dsigCtx->status is
correctly set to xmlSecDSigStatusSucceeded.
The end result is that in
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx, in IMPL_LINK(
DigitalSignaturesDialog, AddButtonHdl, Button*, EMPTYARG ), nStatus is not
equal to OPERATION_SUCCEEDED and so the signatures dailog box is not filled:
sal_Int32 nStatus = maSignatureHelper.GetSignatureInformation( nSecurityId
).nStatus;
if ( nStatus ==
::com::sun::star::xml::crypto::SecurityOperationStatus_OPERATION_SUCCEEDED )
{
mbSignaturesChanged = true;
// Can't simply remember current information, need parsing for getting
full information :(
// We need to verify the signatures again, otherwise the status in the
signature information
// will not contain
// SecurityOperationStatus_OPERATION_SUCCEEDED
mbVerifySignatures = true;
ImplGetSignatureInformations();
ImplFillSignaturesBox();
}
I have rebuilt the SLED11-RC1 OpenOffice_org-components RPM with
http://www.openoffice.org/nonav/issues/showattachment.cgi/55443/xmlsecurity....,
and now it works.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.