<div dir="ltr">Thanks for the help, I think I understand it now.<div><br></div><div>Anthony</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 8, 2017 at 3:09 PM, Muktadir R Chowdhury (mrchwdhr) <span dir="ltr"><<a href="mailto:mrchwdhr@memphis.edu" target="_blank">mrchwdhr@memphis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id="m_7917778615786212813divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Here is the signature of <span>OnDataValidated</span>: <a href="https://github.com/named-data/ndn-cxx/blob/48becde5b4719fc4c9811ec6f77877cba117c517/src/security/validation-request.hpp#L38" class="m_7917778615786212813OWAAutoLink" id="m_7917778615786212813LPlnk61325" target="_blank">https://<wbr>github.com/named-data/ndn-cxx/<wbr>blob/<wbr>48becde5b4719fc4c9811ec6f77877<wbr>cba117c517/src/security/<wbr>validation-request.hpp#L38</a></p>
<p>It takes a data as argument, and since the data is validated,  you can go on process the data.</p>
<p><br>
</p>
<div>Below it is the signature of <span style="font-size:12pt">OnDataValidationFailed. It takes the data and a text message, which is the error message, as argument. </span></div>
<div><br>
</div>
<div><span style="font-size:12pt"><br>
</span></div>
<div>Here is an example of its usage:</div>
<div><a href="https://github.com/named-data/NLSR/blob/4c2bb361ae1b6c7bbf34551920cb759ded6c8147/tests-integrated/test-validator.cpp#L177" class="m_7917778615786212813OWAAutoLink" id="m_7917778615786212813LPlnk511655" style="font-size:12pt" target="_blank">https://github.com/named-data/<wbr>NLSR/blob/<wbr>4c2bb361ae1b6c7bbf34551920cb75<wbr>9ded6c8147/tests-integrated/<wbr>test-validator.cpp#L177</a><br>
</div>
<div><br>
</div>
<div>Another example:</div>
<div><a href="https://github.com/named-data/ndn-cxx/blob/48becde5b4719fc4c9811ec6f77877cba117c517/tests/unit-tests/security/validator.t.cpp#L67" class="m_7917778615786212813OWAAutoLink" id="m_7917778615786212813LPlnk97993" target="_blank">https://github.com/named-data/<wbr>ndn-cxx/blob/<wbr>48becde5b4719fc4c9811ec6f77877<wbr>cba117c517/tests/unit-tests/<wbr>security/validator.t.cpp#L67</a><br>
<br>
</div>
<div>Alvy</div>
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_7917778615786212813divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Nfd-dev <<a href="mailto:nfd-dev-bounces@lists.cs.ucla.edu" target="_blank">nfd-dev-bounces@lists.cs.<wbr>ucla.edu</a>> on behalf of Anthony Dowling <<a href="mailto:dowlinah@clarkson.edu" target="_blank">dowlinah@clarkson.edu</a>><br>
<b>Sent:</b> Wednesday, August 09, 2017 12:06:56 AM<br>
<b>To:</b> <<a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank">nfd-dev@lists.cs.ucla.edu</a>><br>
<b>Subject:</b> [Nfd-dev] Validator callbacks</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Hello all,
<div><br>
</div>
<div>I am working with the ValidatorConfig class, and I am having trouble creating the OnDataValidated and OnDataValidationFailed callback functions. Is there a tutorial on how to create these functions?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Anthony Dowling</div>
</div>
</div>
</div></div></div>

</blockquote></div><br></div>