Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Jun 20, 2024
1 parent b8fff89 commit 9ab6a5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions haicrypt/cryspr.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ written by
CRYSPR/4SRT Initial implementation.
*****************************************************************************/

#ifndef _WIN32
#include <arpa/inet.h> /* htonl */
#endif

#include "hcrypt.h"
#include "cryspr.h"

Expand Down
7 changes: 2 additions & 5 deletions srtcore/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,12 @@ int srt::CCryptoControl::processSrtMsg_KMRSP(const uint32_t* srtdata, size_t len
<< "; key[1]: len=" << m_SndKmMsg[1].MsgLen << " retry=" << m_SndKmMsg[1].iPeerRetry);

m_bUseGcm153 = srtv <= SrtVersion(1, 5, 3);
#ifdef SRT_ENABLE_ENCRYPTION
if (m_hRcvCrypto != NULL)
HaiCrypt_UpdateGcm153(m_hRcvCrypto, m_bUseGcm153);
if (m_hSndCrypto != NULL)
HaiCrypt_UpdateGcm153(m_hSndCrypto, m_bUseGcm153);
#endif
}

LOGP(cnlog.Note, FormatKmMessage("processSrtMsg_KMRSP", SRT_CMD_KMRSP, len));
Expand Down Expand Up @@ -797,11 +799,6 @@ bool srt::CCryptoControl::createCryptoCtx(HaiCrypt_Handle&, size_t, HaiCrypt_Cry
{
return false;
}

bool srt::CCryptoControl::updateCryptoCtx(HaiCrypt_Handle& w_hCrypto, size_t keylen, HaiCrypt_CryptoDir cdir, bool bAESGCM)
{
return false;
}
#endif // SRT_ENABLE_ENCRYPTION


Expand Down

0 comments on commit 9ab6a5d

Please sign in to comment.