///////////////////////////////////////////////////////
| 1064 | |
| 1065 | //////////////////////////////////////////////////////////// |
| 1066 | std::optional<std::string> TcpSocket::getCurrentCiphersuiteName() const |
| 1067 | { |
| 1068 | if (!m_impl->tlsState) |
| 1069 | return std::nullopt; |
| 1070 | |
| 1071 | if (const auto* cipersuiteName = mbedtls_ssl_get_ciphersuite(&m_impl->tlsState->sslContext); cipersuiteName) |
| 1072 | return cipersuiteName; |
| 1073 | |
| 1074 | return std::nullopt; |
| 1075 | } |
| 1076 | |
| 1077 | |
| 1078 | //////////////////////////////////////////////////////////// |
no outgoing calls
no test coverage detected