<div dir="ltr">Hi Duncan,<div><br></div><div>Sorry I misunderstood your question.</div><div>For the processEvents hanging, you may use m_face->getIoService().stop() to stop the ioservice when the job is done.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 15, 2015 at 12:08 PM, Duncan Rand <span dir="ltr"><<a href="mailto:duncan.rand@imperial.ac.uk" target="_blank">duncan.rand@imperial.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Chengyu<br>
<br>
Yes, we've done the steps you list and indeed the validation works, but as I said the code hangs in processEvents. Our code shows the same problem.<br>
<br>
regards<br>
<span class="HOEnZb"><font color="#888888">Duncan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 15 Jul 2015, at 17:49, Chengyu Fan wrote:<br>
<br>
> Hi Duncan,<br>
><br>
> Sorry to make you confused. The ndn-tool-set contains the tools for personal use. They are not mature code.<br>
><br>
> To make the validation code work, you have to:<br>
><br>
> 1. Follow the CERTIFICATE-CHAIN to generate the key chain<br>
> 2. Run certs-publisher.cpp to publish producer certificate, but you need to specify the publisher's certificate ID in the onInterest(). For now, it is hard coded<br>
> 3. Change the file name in the consumer code. The file contains the root certificate as the trust anchor<br>
> 4. Run the producer and then the consumer to start the validation process<br>
><br>
> On Wed, Jul 15, 2015 at 9:04 AM, Duncan Rand <<a href="mailto:duncan.rand@imperial.ac.uk">duncan.rand@imperial.ac.uk</a>> wrote:<br>
> Hello<br>
><br>
> We are implementing signature validation. In order to familiarise ourselves with the process we're experimenting with the<br>
> ndn-tool-set:<br>
><br>
> <a href="https://github.com/chengyu/ndn-tool-set" rel="noreferrer" target="_blank">https://github.com/chengyu/ndn-tool-set</a><br>
><br>
> The validation works but processEvents then hangs (which it didn't before adding the validation). This seems to be triggered by the validator waiting for certificates in the cache to expire (the expiry is added to the asio queue) before returning. Is there any way around this?<br>
><br>
> thanks<br>
> Duncan<br>
> _______________________________________________<br>
> Ndn-interest mailing list<br>
> <a href="mailto:Ndn-interest@lists.cs.ucla.edu">Ndn-interest@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
><br>
><br>
><br>
> --<br>
> Thanks,<br>
><br>
> Chengyu<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks,</div><div><br></div>Chengyu</div></div>
</div>