HMAC Auth - reviewer-requested changes

This commit is contained in:
Simon Walton 2018-03-21 17:15:49 -07:00
parent 64973aa334
commit 755d89464f
3 changed files with 6 additions and 6 deletions

View file

@ -30,7 +30,7 @@ HMACAuth::~HMACAuth() {
HMAC_CTX_cleanup(_hmacContext.get());
}
bool HMACAuth::setKey(const char * keyValue, int keyLen) {
bool HMACAuth::setKey(const char* keyValue, int keyLen) {
const EVP_MD* sslStruct = nullptr;
switch (_authMethod) {

View file

@ -1,6 +1,6 @@
//
// HMACAuth.h
// libraries/shared/src
// libraries/networking/src
//
// Created by Simon Walton on 3/19/2018.
// Copyright 2018 High Fidelity, Inc.
@ -9,8 +9,8 @@
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_HmacAuth_h
#define hifi_HmacAuth_h
#ifndef hifi_HMACAuth_h
#define hifi_HMACAuth_h
#include <vector>
#include <memory>
@ -37,4 +37,4 @@ private:
AuthMethod _authMethod;
};
#endif // hifi_HmacAuth_h
#endif // hifi_HMACAuth_h

View file

@ -392,7 +392,7 @@ qint64 LimitedNodeList::sendUnreliablePacket(const NLPacket& packet, const Node&
}
qint64 LimitedNodeList::sendUnreliablePacket(const NLPacket& packet, const HifiSockAddr& sockAddr,
HMACAuth * hmacAuth) {
HMACAuth* hmacAuth) {
Q_ASSERT(!packet.isPartOfMessage());
Q_ASSERT_X(!packet.isReliable(), "LimitedNodeList::sendUnreliablePacket",
"Trying to send a reliable packet unreliably.");