Skip to content

Commit

Permalink
some wording
Browse files Browse the repository at this point in the history
  • Loading branch information
wangweij committed Jun 7, 2024
1 parent e50f330 commit e1fc79f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ public SignatureFile(MessageDigest digests[],
"Manifest-Main-Attribute entry");
}

// go through the manifest entries and create the digests
// go through signed entries and create the digests
Map<String, Attributes> entries = sf.getEntries();
for (String name: signedEntries) {
mde = md.get(name, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ void verifyJar(String jarName)
Map<String,PKCS7> sigMap = new HashMap<>();
Map<String,String> sigNameMap = new HashMap<>();
Map<String,String> unparsableSignatures = new HashMap<>();
Map<String,Set<String>> signedEntries = new HashMap<>();
Map<String,Set<String>> entriesInSF = new HashMap<>();

try {
jf = new JarFile(jarName, true);
Expand Down Expand Up @@ -783,7 +783,7 @@ void verifyJar(String jarName)
break;
}
}
signedEntries.put(alias, sf.getEntries().keySet());
entriesInSF.put(alias, sf.getEntries().keySet());
if (!found) {
unparsableSignatures.putIfAbsent(alias,
String.format(
Expand Down Expand Up @@ -883,7 +883,7 @@ void verifyJar(String jarName)
sb.append('\n');
}
}
for (var signed : signedEntries.values()) {
for (var signed : entriesInSF.values()) {
signed.remove(name);
}
} else if (showcerts && !verbose.equals("all")) {
Expand Down Expand Up @@ -1080,7 +1080,7 @@ void verifyJar(String jarName)
}
if (verbose != null) {
System.out.println(history);
var signed = signedEntries.get(s);
var signed = entriesInSF.get(s);
if (!signed.isEmpty()) {
System.out.println(rb.getString("history.removed.entries") + signed);
}
Expand Down

0 comments on commit e1fc79f

Please sign in to comment.