| 599 | } |
| 600 | |
| 601 | srt::CCryptoControl::CCryptoControl(SRTSOCKET id) |
| 602 | : m_SocketID(id) |
| 603 | , m_iSndKmKeyLen(0) |
| 604 | , m_iRcvKmKeyLen(0) |
| 605 | , m_SndKmState(SRT_KM_S_UNSECURED) |
| 606 | , m_RcvKmState(SRT_KM_S_UNSECURED) |
| 607 | , m_KmRefreshRatePkt(0) |
| 608 | , m_KmPreAnnouncePkt(0) |
| 609 | , m_iCryptoMode(CSrtConfig::CIPHER_MODE_AUTO) |
| 610 | , m_bUseGcm153(false) |
| 611 | , m_bErrorReported(false) |
| 612 | { |
| 613 | m_KmSecret.len = 0; |
| 614 | //send |
| 615 | m_SndKmMsg[0].MsgLen = 0; |
| 616 | m_SndKmMsg[0].iPeerRetry = 0; |
| 617 | m_SndKmMsg[1].MsgLen = 0; |
| 618 | m_SndKmMsg[1].iPeerRetry = 0; |
| 619 | m_hSndCrypto = NULL; |
| 620 | //recv |
| 621 | m_hRcvCrypto = NULL; |
| 622 | } |
| 623 | |
| 624 | bool srt::CCryptoControl::init(HandshakeSide side, const CSrtConfig& cfg, bool bidirectional SRT_ATR_UNUSED, bool bUseGcm153 SRT_ATR_UNUSED) |
| 625 | { |
nothing calls this directly
no outgoing calls
no test coverage detected