| 177 | } |
| 178 | |
| 179 | bool 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 | |
| 195 | void Session::handshakeComplete(bool success) |
| 196 | { |
no test coverage detected