Hi Aleksey,<br><br> I have had this xmlsec application (now at 1.2.18) working for several years without incident on Windows XP, Vista, and even Windows 7.<br><br>However on selected machines that I run the application on, I get an I/O error related to buffer flushing and C14N canonicalization. This only happens on certain Windows XP machines and I think it is related to some run-time executable (.dll or exe) outside my environment.<br>
<br>Here is the summary trace of what comes out on the console .... note where there error occurs between xmlSecDSigCtxInitialize and xmlSecDSigCtxSign<br><br>input buffer follows .... write to stdout from my application<br>
<br><?xml version="1.0"?><br><Data><br> <SubData1><br> <SubSubData1 MimeType="text/plain">This is the data to be signed.</SubSubData1><br> <SubSubData2 MimeType="text/plain">This is the data to be signed.</SubSubData2><br>
<SubSubData3 MimeType="text/plain">This is the data to be signed.</SubSubData3><br> </SubData1><br> <SubData2>This is the data to be signed.</SubData2><br> <SubData3>This is the data to be signed.</SubData3><br>
<dsig:Signature xmlns:dsig="<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>"><br> <dsig:SignedInfo><br> <dsig:CanonicalizationMethod Algorithm="<a href="http://www.w3.org/2001/10/xml-exc-c14n#">http://www.w3.org/2001/10/xml-exc-c14n#</a>"/><br>
<dsig:SignatureMethod Algorithm="<a href="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256">http://www.w3.org/2001/04/xmldsig-more#rsa-sha256</a>"/><br> <dsig:Reference URI=""><br>
<dsig:Transforms><br> <dsig:Transform Algorithm="<a href="http://www.w3.org/2000/09/xmldsig#enveloped-signature">http://www.w3.org/2000/09/xmldsig#enveloped-signature</a>"/><br>
</dsig:Transforms><br> <dsig:DigestMethod Algorithm="<a href="http://www.w3.org/2001/04/xmlenc#sha256">http://www.w3.org/2001/04/xmlenc#sha256</a>"/><br> <dsig:DigestValue/><br>
</dsig:Reference><br> </dsig:SignedInfo><br> <dsig:SignatureValue/><br> <dsig:KeyInfo><br> <dsig:KeyName>Shallow, Ed</dsig:KeyName><br> <dsig:X509Data><dsig:X509Certificate/><dsig:X509IssuerSerial/><br>
</dsig:X509Data><br> </dsig:KeyInfo><br></dsig:Signature></Data><br><br>after xmlSecDSigCtxCreate .... write to stdout from my app<br>after xmlSecDSigCtxInitialize .... write to stfout from my app<br>
<br>I/O error : flush error<br>C14N error : Internal error : flushing output buffer<br><br>after xmlSecDSigCtxSign .... write to stdout from my app<br><br>2012/01/12 18:36:53 INFO Sign with TransactionID 00000000 completed on thread 1 with Status ===> 1716 and ErrorMessage<br>
==> Failed to create signature Invalid algorithm specified. Error occurred in function xmlSecDSigCtxSign at line 303<br>relating to xmlSecDSigCtxSigantureProcessNode<br> Document length 429.<br clear="all"><br>
Any ideas which .dll .exe may be missing, wrong version, etc .... <br><br>Many thanks . . .<br><br>Ed<br><br>-- <br>Ed's Contact Information:<br>Mobile Phone: 613-852-6410<br>Gmail: <a href="mailto:ed.shallow@gmail.com">ed.shallow@gmail.com</a><br>
VOIP Address: <a href="mailto:107529@sip.ca1.voip.ms">107529@sip.ca1.voip.ms</a><br>VOIP DID#: 613-458-5004<br>Skype ID: edward.shallow<br>Home Phone: 613-482-2090<br><br>