MCPcopy Create free account
hub / github.com/SmingHub/Sming / startCert

Method startCert

Sming/Components/ssl/BearSsl/BrClientConnection.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void BrClientConnection::startCert(uint32_t)
67{
68 if(x509.count() != 0) {
69 return;
70 }
71
72 certificate = std::make_unique<BrCertificate>();
73 x509Decoder = std::make_unique<X509Decoder>(&certificate->subject, &certificate->issuer);
74
75 auto& types = context.session.validators.fingerprintTypes;
76 resetHash(certSha1Context, types.contains(Fingerprint::Type::CertSha1));
77 resetHash(certSha256Context, types.contains(Fingerprint::Type::CertSha256));
78}
79
80void BrClientConnection::appendCertData(const uint8_t* buf, size_t len)
81{

Callers

nothing calls this directly

Calls 3

resetHashFunction · 0.85
countMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected