[Ndn-lib] ndn-cxx v2::Validator destruction during validation
shijunxiao at email.arizona.edu
Sun Jul 2 17:07:18 PDT 2017
Can you update Doxygen of Validator destructor to indicate requirement?
On Sat, Jul 1, 2017 at 8:10 PM, Zhiyi Zhang <zhangzhiyi1919 at gmail.com>
> This is an undefined behavior.
> Given validator instance holds unique_ptrs of both ValidationPolicy and
> Fetcher, once validator is destructed, the validation cannot step forward
> anymore. I think the failure callback should be invoked.
> On Fri, Jun 30, 2017 at 8:30 PM, Junxiao Shi <shijunxiao at email.arizona.edu
> > wrote:
>> Hi ndn-cxx developers
>> I have a question regarding ndn::security::v2::Validator.
>> I wonder, what would have if the Validator instance is destructed during
>> a validation (after Validator::validation is invoked, but before either
>> success or failure callback is invoked)?
>> Does the validation still progress toward completion, does the validation
>> fail immediately, or is this undefined behavior?
>> I didn't find the answer in security library documentation, and I hope
>> someone can clarify.
>> Yours, Junxiao
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ndn-lib