From 89537ed2ab22fcedb25e0378bd2c18e392911c0c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 29 Sep 2022 12:01:29 +0100 Subject: Fix various cases of the &* being next to the name instead of type. --- src/modules/m_spanningtree/hmac.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_spanningtree/hmac.cpp') 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(); -- cgit v1.3.1-10-gc9f91