mirror of
https://github.com/transmission/transmission
synced 2025-02-22 22:20:39 +00:00
parent
649fd4d0d2
commit
a2faaabe69
1 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,6 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "tr-macros.h" // tr_sha1_digest_t
|
#include "tr-macros.h" // tr_sha1_digest_t
|
||||||
#include "tr-assert.h"
|
|
||||||
#include "tr-arc4.h"
|
#include "tr-arc4.h"
|
||||||
|
|
||||||
class tr_arc4;
|
class tr_arc4;
|
||||||
|
@ -61,9 +60,8 @@ public:
|
||||||
void setPeerPublicKey(key_bigend_t const& peer_public_key);
|
void setPeerPublicKey(key_bigend_t const& peer_public_key);
|
||||||
|
|
||||||
// Returns the shared secret.
|
// Returns the shared secret.
|
||||||
[[nodiscard]] auto secret() const noexcept
|
[[nodiscard]] constexpr auto const& secret() const noexcept
|
||||||
{
|
{
|
||||||
TR_ASSERT(secret_ != key_bigend_t{});
|
|
||||||
return secret_;
|
return secret_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue