| 15 | namespace Ssl |
| 16 | { |
| 17 | size_t Connection::printTo(Print& p) const |
| 18 | { |
| 19 | size_t n = 0; |
| 20 | auto cert = getCertificate(); |
| 21 | if(cert != nullptr) { |
| 22 | n += cert->printTo(p); |
| 23 | } |
| 24 | n += p.println(_F("SSL Connection Information:")); |
| 25 | n += p.print(_F(" Cipher: ")); |
| 26 | n += p.println(toString(getCipherSuite())); |
| 27 | n += p.print(_F(" Session ID: ")); |
| 28 | n += p.println(toString(getSessionId())); |
| 29 | return n; |
| 30 | } |
| 31 | |
| 32 | int Connection::writeTcpData(uint8_t* data, size_t length) |
| 33 | { |