<DIV>
<DIV>
<DIV><FONT face=Arial size=2>Dear Aleksey,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have tried to apply the xmlsec command line using the sample signature template from the tests suit :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>--sign --pkcs12 c:\xml\test4\debug\expiredkey.p12 --pwd secret --output c:\xml\out.xml c:\xml\test4\debug\enveloping-expired-cert.tmpl</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but crash on xmlDocDump(f, data->doc) from xmlSecAppSignFile, given error :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Unhandled exception in xmlsec.exe (NTDLL.DLL): 0xC000005:Access Violation.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any idea ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have also tried to use :</FONT></DIV>
<DIV><FONT face=Arial size=2>output = xmlOutputBufferCreateOwn(f, NULL);<BR>res = xmlSaveFileTo(output, data->doc, NULL); instead of xmlDocDump. </FONT></DIV>
<DIV><FONT face=Arial size=2>It creates the out.xml but empty contents. I have commended the statement ret->writecallback = xmlFileWrite due to the VC6 compiler complains the xmlFileWrite not declare. Am I missing something?</FONT></DIV>
<DIV><FONT face=Arial size=2><BR>FYI, I am using #define XMLSEC_CRYPTO_OPENSSL</FONT></DIV>
<DIV><FONT face=Arial size=2>and includes libxmlsec-openssl.lib,libxslt.lib,libxml2.lib,libeay32_a.lib,libxmlsec.lib,libxmlsec-mscrypto.lib,libxmlsec-openssl_a.lib.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I created a signature template includes multiple files name to sign, Morefiles.tmpl</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0" encoding="UTF-8"?><BR><Signature xmlns="<A href="http://www.w3.org/2000/09/xmldsig">http://www.w3.org/2000/09/xmldsig</A>#"><BR> <SignedInfo><BR> <CanonicalizationMethod Algorithm="<A href="http://www.w3.org/TR/2001/REC-xml-c14n-20010315">http://www.w3.org/TR/2001/REC-xml-c14n-20010315</A>" /><BR> <SignatureMethod Algorithm="<A href="http://www.w3.org/2000/09/xmldsig#rsa-sha1">http://www.w3.org/2000/09/xmldsig#rsa-sha1</A>" /><BR> <Reference URI="#object"><BR> <DigestMethod Algorithm="<A href="http://www.w3.org/2000/09/xmldsig#sha1">http://www.w3.org/2000/09/xmldsig#sha1</A>" /><BR> <DigestValue></DigestValue><BR> </Reference><BR> </SignedInfo><BR> <SignatureValue><BR> </SignatureValue><BR>
<KeyInfo><BR> <X509Data><BR> </X509Data><BR> </KeyInfo><BR> <Object Id="object"><BR> <XMLDSIG xmlns=""><BR> <FileInfo><BR> <Name><FONT color=#ff0000>MyData1.pdf</FONT></Name><BR> </FileInfo><BR> <FileInfo><BR> <Name><FONT color=#ff0000>MyData2.tif</FONT></Name><BR> </FileInfo><BR> </XMLDSIG><BR> </Object><BR></Signature><BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have tried to run the xmlsec command line with Morefiles.tmpl without providing the 2 data files. My question is why the program never complain the data file not found and can passed thru the Sign process and crash on the xmlDocDump also?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Please help. Thank you very much.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Andy Lau</FONT></DIV></DIV></DIV><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>