MCPcopy Create free account
hub / github.com/Haivision/srt / SetPassword

Method SetPassword

test/test_enforced_encryption.cpp:293–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

srt_setsockoptFunction · 0.85
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected