MCPcopy Create free account
hub / github.com/SFML/SFML / getCurrentCiphersuiteName

Method getCurrentCiphersuiteName

src/SFML/Network/TcpSocket.cpp:1066–1075  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1064
1065////////////////////////////////////////////////////////////
1066std::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////////////////////////////////////////////////////////////

Callers 4

TcpSocket.test.cppFile · 0.80
runTcpServerFunction · 0.80
runTcpClientFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected