diff options
| author | 2022-09-29 12:01:29 +0100 | |
|---|---|---|
| committer | 2022-09-29 12:36:01 +0100 | |
| commit | 89537ed2ab22fcedb25e0378bd2c18e392911c0c (patch) | |
| tree | 4cdea30cb16c0a044d80ba4bab8ef9a645c90824 /src/modules/m_spanningtree/hmac.cpp | |
| parent | Use NOMINMAX on Windows and undefine error in the log header. (diff) | |
Fix various cases of the &* being next to the name instead of type.
Diffstat (limited to 'src/modules/m_spanningtree/hmac.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/hmac.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_spanningtree/hmac.cpp b/src/modules/m_spanningtree/hmac.cpp index eac406184..bd3895c6b 100644 --- a/src/modules/m_spanningtree/hmac.cpp +++ b/src/modules/m_spanningtree/hmac.cpp @@ -37,7 +37,7 @@ const std::string& TreeSocket::GetOurChallenge() return capab->ourchallenge; } -void TreeSocket::SetOurChallenge(const std::string &c) +void TreeSocket::SetOurChallenge(const std::string& c) { capab->ourchallenge = c; } @@ -47,12 +47,12 @@ const std::string& TreeSocket::GetTheirChallenge() return capab->theirchallenge; } -void TreeSocket::SetTheirChallenge(const std::string &c) +void TreeSocket::SetTheirChallenge(const std::string& c) { capab->theirchallenge = c; } -std::string TreeSocket::MakePass(const std::string &password, const std::string &challenge) +std::string TreeSocket::MakePass(const std::string& password, const std::string& challenge) { /* This is a simple (maybe a bit hacky?) HMAC algorithm, thanks to jilles for * suggesting the use of HMAC to secure the password against various attacks. @@ -70,7 +70,7 @@ std::string TreeSocket::MakePass(const std::string &password, const std::string return password; } -bool TreeSocket::ComparePass(const Link& link, const std::string &theirs) +bool TreeSocket::ComparePass(const Link& link, const std::string& theirs) { capab->auth_fingerprint = !link.Fingerprint.empty(); capab->auth_challenge = !capab->ourchallenge.empty() && !capab->theirchallenge.empty(); |
