| 291 | |
| 292 | |
| 293 | int SetPassword(PEER_TYPE peer_type, const std::basic_string<char> &pwd) |
| 294 | { |
| 295 | const SRTSOCKET socket = peer_type == PEER_CALLER ? m_caller_socket : m_listener_socket; |
| 296 | return srt_setsockopt(socket, 0, SRTO_PASSPHRASE, pwd.c_str(), (int) pwd.size()); |
| 297 | } |
| 298 | |
| 299 | |
| 300 | int GetKMState(SRTSOCKET socket) |
nothing calls this directly
no test coverage detected