Skip to content
Snippets Groups Projects
Commit 4c8a03e1 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed a bug where a mac verification error is dropped.

parent 815a9aaf
No related branches found
No related tags found
2 merge requests!170Release,!130fixed a bug where a mac verification error is dropped.
...@@ -273,7 +273,7 @@ func requestKey(sender *gateway.Sender, comms RegisterNodeCommsInterface, ...@@ -273,7 +273,7 @@ func requestKey(sender *gateway.Sender, comms RegisterNodeCommsInterface,
h.Reset() h.Reset()
if !registration.VerifyClientHMAC(sessionKey.Bytes(), keyResponse.EncryptedClientKey, if !registration.VerifyClientHMAC(sessionKey.Bytes(), keyResponse.EncryptedClientKey,
opts.Hash.New, keyResponse.EncryptedClientKeyHMAC) { opts.Hash.New, keyResponse.EncryptedClientKeyHMAC) {
return nil, nil, 0, errors.WithMessagef(err, "Failed to verify client HMAC") return nil, nil, 0, errors.New("Failed to verify client HMAC")
} }
// Decrypt the client key // Decrypt the client key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment