--- a/jdk/test/sun/security/pkcs11/PKCS11Test.java Sat Mar 05 10:34:06 2016 +0800
+++ b/jdk/test/sun/security/pkcs11/PKCS11Test.java Mon Mar 07 10:10:04 2016 -0500
@@ -380,7 +380,9 @@
}
static double getNSSInfo(String library) {
- String nssHeader = "$Header: NSS";
+ // look for two types of headers in NSS libraries
+ String nssHeader1 = "$Header: NSS";
+ String nssHeader2 = "Version: NSS";
boolean found = false;
String s = null;
int i = 0;
@@ -408,7 +410,8 @@
}
s = new String(data, 0, read);
- if ((i = s.indexOf(nssHeader)) > 0) {
+ i = s.indexOf(nssHeader1);
+ if (i > 0 || (i = s.indexOf(nssHeader2)) > 0) {
found = true;
// If the nssHeader is before 920 we can break, otherwise
// we may not have the whole header so do another read. If