A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/747f288e77e88a9e0f7db70f2fa8477868fa5928 below:

[core] Check if CryptoControl exists in createSrtHandshake(..). · Haivision/srt@747f288 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+10

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+10

-1

lines changed Original file line number Diff line number Diff line change

@@ -1725,6 +1725,16 @@ bool srt::CUDT::createSrtHandshake(

1725 1725

HLOGC(cnlog.Debug,

1726 1726

log << "createSrtHandshake: "

1727 1727

<< (m_config.CryptoSecret.len > 0 ? "Agent uses ENCRYPTION" : "Peer requires ENCRYPTION"));

1728 + 1729 +

if (!m_pCryptoControl && (srtkm_cmd == SRT_CMD_KMREQ || srtkm_cmd == SRT_CMD_KMRSP))

1730 +

{

1731 +

m_RejectReason = SRT_REJ_IPE;

1732 +

LOGC(cnlog.Error, log << "createSrtHandshake: IPE: need to send KM, but CryptoControl does not exist."

1733 +

<< " Socket state: connected=" << boolalpha << m_bConnected << ", connecting=" << m_bConnecting

1734 +

<< ", broken=" << m_bBroken << ", closing=" << m_bClosing << ".");

1735 +

return false;

1736 +

}

1737 + 1728 1738

if (srtkm_cmd == SRT_CMD_KMREQ)

1729 1739

{

1730 1740

bool have_any_keys = false;

@@ -1753,7 +1763,6 @@ bool srt::CUDT::createSrtHandshake(

1753 1763

{

1754 1764

offset += ra_size + 1;

1755 1765

ra_size = fillHsExtKMRSP(p + offset - 1, kmdata, kmdata_wordsize);

1756 - 1757 1766

}

1758 1767

else

1759 1768

{

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4