esp8266ndn
NDN Arduino library for ESP8266 and more
|
Client side of a challenge. More...
#include <client.hpp>
Inherited by ndnph::ndncert::client::NopChallenge, and ndnph::ndncert::client::PossessionChallenge.
Public Member Functions | |
virtual | ~Challenge ()=default |
virtual tlv::Value | getId () const =0 |
Return challenge identifier. More... | |
virtual void | start (Region ®ion, ChallengeRequest &request, void(*cb)(void *, bool), void *arg)=0 |
Create a message to select and start the challenge. More... | |
virtual void | next (Region ®ion, const ChallengeResponse &response, ChallengeRequest &request, void(*cb)(void *, bool), void *arg)=0 |
Create a message to continue the challenge. More... | |
Client side of a challenge.
Subclass instance may store internal state in member fields. An instance can only handle one challenge session at a time.
|
virtualdefault |
|
pure virtual |
Return challenge identifier.
Implemented in ndnph::ndncert::client::PossessionChallenge, and ndnph::ndncert::client::NopChallenge.
|
pure virtual |
Create a message to continue the challenge.
This function should clear any existing state, populate the request
, and invoke `cb(arg,true)`; in case of error, invoke `cb(arg,false)`.
Implemented in ndnph::ndncert::client::PossessionChallenge, and ndnph::ndncert::client::NopChallenge.
|
pure virtual |
Create a message to select and start the challenge.
This function should clear any existing state, populate the request
, and invoke `cb(arg,true)`; in case of error, invoke `cb(arg,false)`.
Implemented in ndnph::ndncert::client::PossessionChallenge, and ndnph::ndncert::client::NopChallenge.