2 #ifndef SSP21_ICERTIFICATEHANDLER_H 3 #define SSP21_ICERTIFICATEHANDLER_H 5 #include "ser4cpp/util/Uncopyable.h" 7 #include "ssp21/crypto/gen/HandshakeError.h" 8 #include "ssp21/crypto/gen/HandshakeMode.h" 9 #include "ssp21/crypto/BufferTypes.h" 11 #include "ssp21/util/SequenceTypes.h" 12 #include "ssp21/util/ICollection.h" 13 #include "ssp21/util/SecureDynamicBuffer.h" 52 return this->
validate(this->
mode(), certificate_data, public_key_output);
57 static std::shared_ptr<ICertificateHandler> preshared_key(
const std::shared_ptr<const PublicKey>& remote_static_public_key);
59 static std::shared_ptr<ICertificateHandler> certificates(
60 const std::shared_ptr<ssp21::SecureDynamicBuffer>& anchor_cert_file_data,
61 const std::shared_ptr<ssp21::SecureDynamicBuffer>& presented_chain_file_data
SSP21-cpp main namespace.
HandshakeError validate(const seq32_t &certificate_data, seq32_t &public_key_output)
virtual HandshakeError validate(HandshakeMode mode, const seq32_t &certificate_data, seq32_t &public_key_output)=0
virtual seq32_t certificate_data() const =0
virtual HandshakeMode mode() const =0