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

fixed message hander for change to preimages being a map

parent eb449b7d
No related branches found
No related tags found
2 merge requests!67Release,!55fully implemented trial hashing of identity fingerprints. Needs tests.
......@@ -58,9 +58,11 @@ func (m *Manager) handleMessage(ecrMsg format.Message, bundle Bundle, edge *edge
preimagelist, exist := edge.Get(identity.Source)
if exist{
//if it exists, check against all in the list
for i:=0;i<len(preimagelist)&&!forMe;i++{
forMe = fingerprint2.CheckIdentityFP(ecrMsg.GetIdentityFP(),
ecrMsg.GetContents(), preimagelist[i].Data)
for key := range preimagelist{
if forMe = fingerprint2.CheckIdentityFP(ecrMsg.GetIdentityFP(),
ecrMsg.GetContents(), preimagelist[key].Data); forMe{
break
}
}
}else{
//if it doesnt exist, check against the default fingerprint for the identity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment