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

Method validateCertificate

Sming/Components/ssl/src/Session.cpp:179–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179bool Session::validateCertificate()
180{
181 if(!connection) {
182 debug_w("SSL: connection not set, assuming cert. is OK");
183 return true;
184 }
185
186 if(validators.validate(connection->getCertificate())) {
187 debug_i("SSL validation passed, heap free = %u", system_get_free_heap_size());
188 return true;
189 }
190
191 debug_w("SSL Validation failed");
192 return false;
193}
194
195void Session::handshakeComplete(bool success)
196{

Callers 2

readMethod · 0.80
endChainMethod · 0.80

Calls 3

validateMethod · 0.45
getCertificateMethod · 0.45

Tested by

no test coverage detected