8361711: Add library name configurability to PKCS11Test.java#26325
8361711: Add library name configurability to PKCS11Test.java#26325fitzsim wants to merge 6 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back fitzsim! A progress list of the required criteria for merging this PR into |
|
@fitzsim This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 762 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@valeriepeng) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
|
Will you also include p11-kryoptic.txt and p11-kryoptic-sensitive.txt configuration files for Kryoptic library so others can also run this interoperability? And do the current P11-NSS tests continue to work as expected? |
|
Thank you for taking a look, @rhalade.
I had not planned to yet (i.e., not with this patch). Eventually I think doing so will make sense, once we settle on the Kryoptic configuration that best suits For reference in the meantime, the https://github.com/latchset/kryoptic/blob/main/testdata/openjdk/p11-kryoptic.txt
Yes, I checked for differences in on commit b65fdf5 (i.e., without my patch) and on commit 780a630 (i.e., with my patch). (The I am not sure what's going on there.) The only differences are the configuration file lines printed in the |
|
Have a short vacay coming up, will resume review next Wed. |
|
For consistency sake, could you please update the description of https://bugs.openjdk.org/browse/JDK-8361711 to match the current PR? It no longer adds the new CUSTOM_P11_CONFIG_VARIANT property. |
Done. |
|
/integrate |
|
/sponsor |
|
Going to push as commit 1cb1267.
Your commit was automatically rebased without conflicts. |
|
@franferrax @fitzsim Pushed as commit 1cb1267. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
/backport jdk25u |
|
@fitzsim the backport was successfully created on the branch backport-fitzsim-1cb1267c-master in my personal fork of openjdk/jdk25u. To create a pull request with this backport targeting openjdk/jdk25u:master, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk25u: |
This patch adds configurability to
PKCS11Test.java.Specifically, it adds two new system properties:
CUSTOM_P11_LIBRARY_NAME: Allow overriding the value assigned to thenss_libraryfield. Prior to this patch,nss_librarywas set to either"softokn3"or"nss3".CUSTOM_P11_CONFIG_VARIANT: Abstract the configuration file type to load. Prior to this patch, test cases that wanted to runNSSin sensitive mode would hard-codep11-nss-sensitive.txton their command lines.The patch updates the three
p11-nss-sensitive.txt-using test cases to use the newCUSTOM_P11_CONFIG_VARIANTproperty:I have been using this change to run
PKCS11Test.javaagainst the Kryoptic PKCS11 soft token, using this invocation:/tmp/kryoptic-configurationcontains (among other files):With
CUSTOM_P11_LIBRARY_NAMEset,PKCS11Test.javacan findlibkryoptic_pkcs11.so.And setting
CUSTOM_P11_CONFIGcauses the sensitive tests to usep11-kryoptic-sensitive.txtvia the newCUSTOM_P11_CONFIG_VARIANTproperty.On my
Fedora 42x86-64machine, I tested for regressions with:and:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26325/head:pull/26325$ git checkout pull/26325Update a local copy of the PR:
$ git checkout pull/26325$ git pull https://git.openjdk.org/jdk.git pull/26325/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26325View PR using the GUI difftool:
$ git pr show -t 26325Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26325.diff
Using Webrev
Link to Webrev Comment