<DIV>
<DIV>
<DIV>
<DIV>I am sorry I have wrongly mailed to your personal email account and caused inconvient to you.</DIV>
<DIV> </DIV>
<DIV>Dear Aleksey,</DIV>
<DIV> </DIV>
<DIV>I really appreciated your prompt reply. TQVM :-))</DIV>
<DIV> </DIV>
<DIV>Yeap, you were right, the <MD5Hash> should not appear there. i will check with the Form Counter again.</DIV>
<DIV> </DIV>
<DIV>I have few more questions:</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>1. Why we need to have a pair a file ( the signed xml and the pem file ) for verification (verify2 ) since the signed xml already contain the information for the X509 certificate ? </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>2. Do you have any idea why this function returns failed for the p12 file during verification.</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT color=#ff0000>if(xmlSecCryptoAppKeysMngrCertLoad(mngr, files[i], <FONT color=#000080>xmlSecKeyDataFormatPkcs12</FONT>, xmlSecKeyDataTypeTrusted) < 0) </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I just replace the data format to <FONT face="Times New Roman" color=#ff0000 size=3><FONT color=#0000ff><FONT color=#000080>xmlSecKeyDataFormatPkcs12</FONT> </FONT><FONT color=#000000>from verify3.c. I have provided the correct path for p12 file.</FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I using #define XMLSEC_CRYPTO_OPENSSL because I have problem to compile with #define XMLSEC_CRYPTO_MSCRYPTO</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>c:\xml\libxmlsec-1.2.8.win32\include\xmlsec\mscrypto\app.h(48) : error C2146: syntax error : missing ')' before identifier 'hKey'<BR>c:\xml\libxmlsec-1.2.8.win32\include\xmlsec\mscrypto\app.h(48) : error C2081: 'HCRYPTKEY' : name in formal parameter list illegal</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>3. I have problem to sign a file using the xmlsec command line. I want to sign a file with p12. </DIV>
<DIV> xmlsec </DIV>
<DIV>When I step in from Debug mode on xmlsec program, it returned failure on the statement:-</DIV>
<DIV> </DIV>
<DIV>data->startNode = xmlSecFindNode(cur, xmlSecNodeSignature, defStartNodeNs);</DIV>
<DIV> </DIV>
<DIV>under the function :-</DIV>
<DIV> </DIV>
<DIV>xmlSecAppXmlDataCreate(const char* filename, const xmlChar* defStartNodeName, const xmlChar* defStartNodeNs) {<BR></DIV>
<DIV>and produde the error :</DIV>
<DIV> </DIV>
<DIV>Error: failed to find default node with name= "Signature" <BR></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thank you in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Andy Lau</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT color=#ff0000></FONT> </DIV></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>