diff --git a/src/blackcore/afv/clients/afvclient.h b/src/blackcore/afv/clients/afvclient.h index 8c44fce74..569e71c0a 100644 --- a/src/blackcore/afv/clients/afvclient.h +++ b/src/blackcore/afv/clients/afvclient.h @@ -323,7 +323,6 @@ namespace BlackCore::Afv::Clients void audioOutDataAvailable(const AudioRxOnTransceiversDto &dto); // threadsafe void inputVolumeStream(const Audio::InputVolumeStreamArgs &args); void outputVolumeStream(const Audio::OutputVolumeStreamArgs &args); - void inputOpusDataAvailable(); void onTimerUpdate(); void onSettingsChanged(); diff --git a/src/blackcore/afv/crypto/cryptodtochannel.cpp b/src/blackcore/afv/crypto/cryptodtochannel.cpp index d20247282..b947ebe9d 100644 --- a/src/blackcore/afv/crypto/cryptodtochannel.cpp +++ b/src/blackcore/afv/crypto/cryptodtochannel.cpp @@ -8,14 +8,6 @@ using namespace BlackMisc; namespace BlackCore::Afv::Crypto { - CCryptoDtoChannel::CCryptoDtoChannel(const QString &channelTag, const QByteArray &aeadReceiveKey, const QByteArray &aeadTransmitKey, int receiveSequenceHistorySize) : m_aeadTransmitKey(aeadTransmitKey), m_aeadReceiveKey(aeadReceiveKey), m_receiveSequenceSizeMaxSize(receiveSequenceHistorySize), m_channelTag(channelTag) - - { - if (m_receiveSequenceSizeMaxSize < 1) { m_receiveSequenceSizeMaxSize = 1; } - m_receiveSequenceHistory.fill(0, m_receiveSequenceSizeMaxSize); - m_receiveSequenceHistoryDepth = 0; - } - CCryptoDtoChannel::CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize) : m_aeadTransmitKey(channelConfig.aeadTransmitKey), m_aeadReceiveKey(channelConfig.aeadReceiveKey), m_receiveSequenceSizeMaxSize(receiveSequenceHistorySize), m_hmacKey(channelConfig.hmacKey), m_channelTag(channelConfig.channelTag) { if (m_receiveSequenceSizeMaxSize < 1) { m_receiveSequenceSizeMaxSize = 1; } diff --git a/src/blackcore/afv/crypto/cryptodtochannel.h b/src/blackcore/afv/crypto/cryptodtochannel.h index ad2d78891..4d4052d70 100644 --- a/src/blackcore/afv/crypto/cryptodtochannel.h +++ b/src/blackcore/afv/crypto/cryptodtochannel.h @@ -21,9 +21,6 @@ namespace BlackCore::Afv::Crypto class CCryptoDtoChannel { public: - //! Ctor - CCryptoDtoChannel(const QString &channelTag, const QByteArray &aeadReceiveKey, const QByteArray &aeadTransmitKey, int receiveSequenceHistorySize = 10); - //! Ctor CCryptoDtoChannel(const CryptoDtoChannelConfigDto &channelConfig, int receiveSequenceHistorySize = 10); diff --git a/src/blackcore/afv/crypto/cryptodtoserializer.cpp b/src/blackcore/afv/crypto/cryptodtoserializer.cpp index ecbb81dbb..22e210d1d 100644 --- a/src/blackcore/afv/crypto/cryptodtoserializer.cpp +++ b/src/blackcore/afv/crypto/cryptodtoserializer.cpp @@ -58,7 +58,7 @@ namespace BlackCore::Afv::Crypto { decryptedPayload.resize(mlen); - // Fix this: + // FIXME: // if (! channel.checkReceivedSequence(header.Sequence)) { } QBuffer decryptedPayloadBuffer(&decryptedPayload); diff --git a/src/blackcore/afv/dto.h b/src/blackcore/afv/dto.h index 1cdbcdb9f..fedcbb634 100644 --- a/src/blackcore/afv/dto.h +++ b/src/blackcore/afv/dto.h @@ -15,8 +15,6 @@ namespace BlackCore::Afv { - // struct IMsgPack { }; - //! Channel config DTO struct CryptoDtoChannelConfigDto {