![]() |
SSP21-CPP
|
#include <ssp21/crypto/ICertificateHandler.h>
Public Member Functions | |
virtual seq32_t | certificate_data () const =0 |
virtual HandshakeMode | mode () const =0 |
virtual HandshakeError | validate (HandshakeMode mode, const seq32_t &certificate_data, seq32_t &public_key_output)=0 |
HandshakeError | validate (const seq32_t &certificate_data, seq32_t &public_key_output) |
Static Public Member Functions | |
static std::shared_ptr< ICertificateHandler > | preshared_key (const std::shared_ptr< const PublicKey > &remote_static_public_key) |
static std::shared_ptr< ICertificateHandler > | certificates (const std::shared_ptr< ssp21::SecureDynamicBuffer > &anchor_cert_file_data, const std::shared_ptr< ssp21::SecureDynamicBuffer > &presented_chain_file_data) |
Interface used to verify certificate data.
Implementations could be for preshared public keys or retrieved from a certificate chain authenticated by a trust anchor.
Definition at line 26 of file ICertificateHandler.h.
|
pure virtual |
The certificate data to present to the other party during the handshake
|
pure virtual |
Initiator side mode query
|
pure virtual |
Given a particular certificate mode, validate the certificate data payload, and return a seq_t pointing to the validated public key
|
inline |
Given a particular certificate mode, validate the certificate data payload, and return a seq_t pointing to the validated public key
Definition at line 50 of file ICertificateHandler.h.