Skip to content

Commit

Permalink
[core] Crypto: Reset the passphrase in memory on close for security r…
Browse files Browse the repository at this point in the history
…easons
  • Loading branch information
ethouris authored and rndi committed Dec 13, 2019
1 parent 6aff9ea commit e55ce4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions srtcore/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ EncryptionStatus CCryptoControl::decrypt(ref_t<CPacket> r_packet SRT_ATR_UNUSED)
CCryptoControl::~CCryptoControl()
{
#ifdef SRT_ENABLE_ENCRYPTION
close();
if (m_hSndCrypto)
{
HaiCrypt_Close(m_hSndCrypto);
Expand Down

0 comments on commit e55ce4a

Please sign in to comment.