< prev index next >
test/jdk/sun/security/pkcs11/PKCS11Test.java
Print this page
rev 51031 : 8207766: [testbug] Adapt tests for Aix.
*** 407,417 ****
return softoken3_version;
if (library.compareTo("nss3") == 0 && nss3_version > -1)
return nss3_version;
try {
! libfile = getNSSLibDir() + System.mapLibraryName(library);
try (FileInputStream is = new FileInputStream(libfile)) {
byte[] data = new byte[1000];
int read = 0;
while (is.available() > 0) {
--- 407,421 ----
return softoken3_version;
if (library.compareTo("nss3") == 0 && nss3_version > -1)
return nss3_version;
try {
! String libdir = getNSSLibDir();
! if (libdir == null) {
! return 0.0;
! }
! libfile = libdir + System.mapLibraryName(library);
try (FileInputStream is = new FileInputStream(libfile)) {
byte[] data = new byte[1000];
int read = 0;
while (is.available() > 0) {
< prev index next >