Skip to content
Snippets Groups Projects
Commit 574b0281 authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix bug in ClientRegistration message

parent ef9ed794
No related branches found
No related tags found
2 merge requests!53Release,!29Josh/databaseless
......@@ -187,8 +187,6 @@ func registerWithNode(sender *gateway.Sender, comms RegisterNodeCommsInterface,
sessionKey := registration.GenerateBaseKey(grp,
nodeDHPub, store.GetDHPrivateKey(), h)
// Verify the HMAC
h.Reset()
if !registration.VerifyClientHMAC(sessionKey.Bytes(), keyResponse.EncryptedClientKey,
......
......@@ -40,8 +40,8 @@ func register(comms registrationMessageSender, host *connect.Host,
SendRegistrationMessage(host,
&pb.ClientRegistration{
RegistrationCode: registrationCode,
ClientTransmissionRSAPubKey: receptionPem,
ClientReceptionRSAPubKey: transmissionPem,
ClientTransmissionRSAPubKey: transmissionPem,
ClientReceptionRSAPubKey: receptionPem,
})
if err != nil {
err = errors.Wrap(err, "sendRegistrationMessage: Unable to "+
......
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