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

Method appendCertData

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

Source from the content-addressed store, hash-verified

78}
79
80void BrClientConnection::appendCertData(const uint8_t* buf, size_t len)
81{
82 if(x509.count() != 0) {
83 return;
84 }
85
86 x509Decoder->push(buf, len);
87
88 updateHash(certSha1Context, buf, len);
89 updateHash(certSha256Context, buf, len);
90}
91
92void BrClientConnection::endCert()
93{

Callers 1

appendMethod · 0.80

Calls 3

updateHashFunction · 0.85
countMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected