AppletLoader: revert native file certificate validation to after extraction as it was failing if done before.

This commit is contained in:
kappa1 2011-06-26 02:18:53 +00:00
parent cc91d81781
commit 6e15f0b781

View file

@ -1662,9 +1662,6 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
InputStream in = jarFile.getInputStream(jarFile.getEntry(entry.getName()));
OutputStream out = new FileOutputStream(path + "natives" + File.separator + entry.getName());
// validate if the certificate for native file is correct before extracting
validateCertificateChain(certificate, entry.getCertificates());
int bufferSize;
byte buffer[] = new byte[65536];
@ -1680,6 +1677,9 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
in.close();
out.close();
// validate if the certificate for native file
validateCertificateChain(certificate, entry.getCertificates());
}
subtaskMessage = "";