esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ndnph::ndncert::server::NewResponse Class Reference

NEW response packet. More...

#include <server.hpp>

Inherits ndnph::ndncert::packet_struct::NewResponse.

Public Member Functions

Data::Signed toData (Region &region, const Interest &newRequest, const ChallengeList &challenges, const EcPrivateKey &signer) const
 Build NEW response packet. More...
 

Additional Inherited Members

- Public Attributes inherited from ndnph::ndncert::packet_struct::NewResponse
mbedtls::P256::Point ecdhPub
 Server ECDH public key. More...
 
uint8_t salt [detail::SaltLen::value]
 ECDH salt. More...
 
uint8_t requestId [detail::RequestIdLen::value]
 Request ID. More...
 

Detailed Description

NEW response packet.

Member Function Documentation

◆ toData()

Data::Signed ndnph::ndncert::server::NewResponse::toData ( Region region,
const Interest newRequest,
const ChallengeList challenges,
const EcPrivateKey signer 
) const
inline

Build NEW response packet.

Parameters
newRequestNEW request packet.
challengeslist of challenges offered by server.
signerprivate key corresponding to CA certificate.
Returns
an Encodable object, or a falsy value upon failure.

The documentation for this class was generated from the following file: