Skip to content
Snippets Groups Projects
Commit ef939ab6 authored by Florian Lugou's avatar Florian Lugou
Browse files

fixed ProVerif Output analysis for TML

parent 694147da
No related branches found
No related tags found
No related merge requests found
......@@ -228,10 +228,13 @@ public class ProVerifOutputAnalyzer {
{
for (AvatarPragma pragma: pragmas)
{
if (pragma instanceof AvatarPragmaSecret
&& this.avatar2proverif.getTrueName(((AvatarPragmaSecret) pragma).getArg()).equals(attributeName))
if (pragma instanceof AvatarPragmaSecret)
{
this.results.put(pragma, result);
String trueName = this.avatar2proverif.getTrueName(((AvatarPragmaSecret) pragma).getArg());
if (trueName != null && trueName.equals(attributeName))
{
this.results.put(pragma, result);
}
}
}
}
......
......@@ -1081,11 +1081,14 @@ public class TML2Avatar {
sig=signalOutMap.get(ch.getName());
}
if (ch.checkConf){
if (!attrsToCheck.contains(getName(ch.getName())+"_chData")){
AvatarAttribute attr = new AvatarAttribute(getName(ch.getName())+"_chData", AvatarType.INTEGER, block, null);
attrsToCheck.add(getName(ch.getName())+"_chData");
avspec.addPragma(new AvatarPragmaSecret("#Confidentiality "+block.getName() + "."+ch.getName()+"_chData", ch.getReferenceObject(), attr));
}
if (!attrsToCheck.contains(getName(ch.getName())+"_chData")){
AvatarAttribute attr = block.getAvatarAttributeWithName(getName(ch.getName())+"_chData");
if (attr != null)
{
attrsToCheck.add(getName(ch.getName())+"_chData");
avspec.addPragma(new AvatarPragmaSecret("#Confidentiality "+block.getName() + "."+ch.getName()+"_chData", ch.getReferenceObject(), attr));
}
}
}
if (ch.checkAuth){
if (block.getAvatarAttributeWithName(getName(ch.getName())+"_chData")==null){
......
......@@ -593,6 +593,7 @@ public class JDialogProverifVerification extends javax.swing.JDialog implements
mode = STOPPED;
} catch (Exception e) {
mode = STOPPED;
throw e;
}
......@@ -678,7 +679,7 @@ public class JDialogProverifVerification extends javax.swing.JDialog implements
curList.setSelectedIndex(row);
this.menuItem.pragma = curList.getModel().getElementAt(row);
this.menuItem.result = this.results.get(this.menuItem.pragma);
this.menuItem.setEnabled(this.menuItem.result.getTrace() != null);
this.menuItem.setEnabled(this.adp != null && this.menuItem.result.getTrace() != null);
popup.show(e.getComponent(), e.getX(), e.getY());
}
}
......
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