![]() |
SSP21-CPP
|
#include <ssp21/crypto/Chain.h>
Static Public Member Functions | |
static HandshakeError | verify (const CertificateBody &anchor, const ICollection< CertificateEnvelope > &certificates, CertificateBody &result) |
static HandshakeError | verify_pair (const CertificateBody &parent, const CertificateEnvelope &child, CertificateBody &child_body) |
|
static |
Verify a certificate chain
anchor | certificate to verify against |
certificates | Chain of unparsed certificate envelopes |
result | verified terminal certificate if return value is HandshakeError::none |
|
static |
Using the previously verified parent certifivate, verify the next untrusted child certificate
parent | trusted parent certificate body |
child | certificate to be verified |
child_body | if verification is successful, the fully parsed child certificate body is output in this parameter |