mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 21:53:12 +02:00
HMAC Auth - reviewer-requested changes
This commit is contained in:
parent
64973aa334
commit
755d89464f
3 changed files with 6 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue