[Nfd-dev] Validator callbacks

Anthony Dowling dowlinah at clarkson.edu
Tue Aug 8 12:10:31 PDT 2017


Thanks for the help, I think I understand it now.

Anthony

On Tue, Aug 8, 2017 at 3:09 PM, Muktadir R Chowdhury (mrchwdhr) <
mrchwdhr at memphis.edu> wrote:

> Here is the signature of OnDataValidated: https://
> github.com/named-data/ndn-cxx/blob/48becde5b4719fc4c9811ec6f77877
> cba117c517/src/security/validation-request.hpp#L38
>
> It takes a data as argument, and since the data is validated,  you can go
> on process the data.
>
>
> Below it is the signature of OnDataValidationFailed. It takes the data
> and a text message, which is the error message, as argument.
>
>
> Here is an example of its usage:
> https://github.com/named-data/NLSR/blob/4c2bb361ae1b6c7bbf34551920cb75
> 9ded6c8147/tests-integrated/test-validator.cpp#L177
>
> Another example:
> https://github.com/named-data/ndn-cxx/blob/48becde5b4719fc4c9811ec6f77877
> cba117c517/tests/unit-tests/security/validator.t.cpp#L67
>
> Alvy
>
> ------------------------------
> *From:* Nfd-dev <nfd-dev-bounces at lists.cs.ucla.edu> on behalf of Anthony
> Dowling <dowlinah at clarkson.edu>
> *Sent:* Wednesday, August 09, 2017 12:06:56 AM
> *To:* <nfd-dev at lists.cs.ucla.edu>
> *Subject:* [Nfd-dev] Validator callbacks
>
> Hello all,
>
> 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?
>
> Thanks,
> Anthony Dowling
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170808/26d5104b/attachment.html>


More information about the Nfd-dev mailing list