RFR: 8328957: Update PKCS11Test.java to not use hardcoded path [v2]

Matthew Donovan mdonovan at openjdk.org
Tue Mar 26 17:48:49 UTC 2024


> When resolving the location of the NSS library, the code appended a hard-coded path: `/nss/lib`. This makes it difficult for a person to specify the library when it is installed in a location such as `/usr/lib64`. 
> 
> In this PR, I removed the hard-coded path and updated the code to search the specified path for the nss library file, softokn3.

Matthew Donovan has updated the pull request incrementally with one additional commit since the last revision:

  added try-with-resources to Stream and cleaned up path logic

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/18488/files
  - new: https://git.openjdk.org/jdk/pull/18488/files/61eb4d32..373da05e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18488&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18488&range=00-01

  Stats: 29 lines in 1 file changed: 2 ins; 7 del; 20 mod
  Patch: https://git.openjdk.org/jdk/pull/18488.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18488/head:pull/18488

PR: https://git.openjdk.org/jdk/pull/18488



More information about the security-dev mailing list