8265462: Handle multiple slots in the NSS Internal Module from SunPKCS11's Secmod #3661
Please find in this PR a proposal to fix JDK-8265462 .
With this fix, OpenJDK will only use the known slot IDs for the NSS Internal Module. If the NSS Internal Module has more slots (for example, as a result of an initialization sequence such as the one triggered from the libnsssysinit.so library), they will be ignored. The goal is to handle multiple-slots scenarios while keeping OpenJDK's previous behavior.
No regressions observed in the jdk/sun/security/pkcs11 tests category.
A new regression test was not added as part of this changeset because of its complexity. It would depend on a specific NSS configuration, or the NSS library would need to be mocked. I've done manual testing in my environment and JDK-8265462  has further information about it.
The text was updated successfully, but these errors were encountered:
@martinuy This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 386 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
@martinuy Since your change was applied there have been 389 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit bdbe23b.