mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 15:35:09 +00:00
AppletLoader: provide a more meaningful error message when certificates do not match.
This commit is contained in:
parent
f6b567c5ad
commit
8bc92abf82
1 changed files with 2 additions and 0 deletions
|
|
@ -1843,11 +1843,13 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
}
|
||||
|
||||
if (certs1.length != certs2.length) {
|
||||
System.out.println("Certificate chain differs in length!");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < certs1.length; i++) {
|
||||
if (!certs1[i].equals(certs2[i])) {
|
||||
System.out.println("Certificate mismatch found!");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue