Project

General

Profile

Actions

Feature #2124

closed

Validator: make Face optional

Added by Junxiao Shi about 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Security
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

Change ValidatorConfig and ValidatorRegex so that ndn::Face is optional.

Currently, constructors of these types require Face& parameter.
They should be changed to take Face*, so that NFD can use them by passing nullptr.

Whenever the validator wants to express an Interest but the face is nullptr, it should be treated as if the Interest has been timed out.

Old constructors taking Face& shall be marked deprecated, and deleted after this release.


Related issues 1 (0 open1 closed)

Blocks NFD - Bug #2063: CommandValidator uses deprecated CommandInterestValidatorClosedJunxiao Shi10/13/2014

Actions
Actions

Also available in: Atom PDF