mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
@@ -16,7 +16,6 @@
|
||||
#include <memory>
|
||||
|
||||
#include "tr-macros.h" // tr_sha1_digest_t
|
||||
#include "tr-assert.h"
|
||||
#include "tr-arc4.h"
|
||||
|
||||
class tr_arc4;
|
||||
@@ -61,9 +60,8 @@ public:
|
||||
void setPeerPublicKey(key_bigend_t const& peer_public_key);
|
||||
|
||||
// Returns the shared secret.
|
||||
[[nodiscard]] auto secret() const noexcept
|
||||
[[nodiscard]] constexpr auto const& secret() const noexcept
|
||||
{
|
||||
TR_ASSERT(secret_ != key_bigend_t{});
|
||||
return secret_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user