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
Loading
...@@ -58,9 +58,11 @@ func (m *Manager) handleMessage(ecrMsg format.Message, bundle Bundle, edge *edge ...@@ -58,9 +58,11 @@ func (m *Manager) handleMessage(ecrMsg format.Message, bundle Bundle, edge *edge
preimagelist, exist := edge.Get(identity.Source) preimagelist, exist := edge.Get(identity.Source)
if exist{ if exist{
//if it exists, check against all in the list //if it exists, check against all in the list
for i:=0;i<len(preimagelist)&&!forMe;i++{ for key := range preimagelist{
forMe = fingerprint2.CheckIdentityFP(ecrMsg.GetIdentityFP(), if forMe = fingerprint2.CheckIdentityFP(ecrMsg.GetIdentityFP(),
ecrMsg.GetContents(), preimagelist[i].Data) ecrMsg.GetContents(), preimagelist[key].Data); forMe{
break
}
} }
}else{ }else{
//if it doesnt exist, check against the default fingerprint for the identity //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.
Finish editing this message first!
Please register or to comment