RFR: JDK-8290532: Adjust PKCS11Exception and handle more PKCS11 error codes [v2]

Matthias Baesken mbaesken at openjdk.org
Fri Jul 22 10:22:39 UTC 2022

> The issue https://bugs.openjdk.org/browse/JDK-8282538 gave an example of the following PKCS11 exception (see attached jtr files of that bug) :
> .... Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: 0xCE534351
> Unfortunately the error code 0xCE534351 is currently not in the RV/errorMap table of PKCS11Exception, That's why we get this
> hex code and no more descriptive output, this could be improved.

Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:

  do not add the deprecated CKR_COPY_PROHIBITED, handle vendor pkcs11 error codes differently


  - all: https://git.openjdk.org/jdk/pull/9555/files
  - new: https://git.openjdk.org/jdk/pull/9555/files/a25101d5..f0fc6d73

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

  Stats: 30 lines in 1 file changed: 24 ins; 3 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/9555.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9555/head:pull/9555

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

More information about the security-dev mailing list