<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=246420412-31052006><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial size=2>I use the following
code to verify a signed file.</FONT></SPAN></DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial size=2>The problem is now,
the xmlSecDSigCtxVerify crahses if the certificate isn't installed on my
machine!?!</FONT></SPAN></DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial size=2>How can I check this
file? Can I excract the certificate and load it into a
xmlSecKeysMngrPtr?</FONT></SPAN></DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial size=2>thanks for any
help.</FONT></SPAN></DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial size=2><some
code> </FONT></SPAN></DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial
size=2> if(xmlSecDSigCtxInitialize(&dsigCtx, gKeysMngr) < 0)
<BR> return (V_INTERNAL);</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial
size=2> if(xmlSecAppPrepareDSigCtx(&dsigCtx) < 0)
<BR> {<BR> xmlSecDSigCtxFinalize(&dsigCtx);<BR> return
V_INTERNAL;<BR> }</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial size=2> /* parse
template and select start node */<BR> data =
xmlSecAppXmlDataCreate(filename, xmlSecNodeSignature,
xmlSecDSigNs);<BR> if(data == NULL)
<BR> {<BR> xmlSecDSigCtxFinalize(&dsigCtx);<BR> if(data
!= NULL)
<BR> xmlSecAppXmlDataDestroy(data);<BR> return
V_INTERNAL;<BR> }</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=246420412-31052006><FONT face=Arial size=2> /* sign
*/<BR> start_time = clock();<BR> if(xmlSecDSigCtxVerify(&dsigCtx,
data->startNode) < 0) </FONT></SPAN></DIV></BODY></HTML>