RFR: JDK-6676643: Improve current C_GetAttributeValue native implementation

Valerie Peng valeriep at openjdk.java.net
Tue Apr 27 02:47:46 UTC 2021


Anyone can help review this somewhat trivial fix? The main change is inside src/jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_objmgmt.c. This is to help better troubleshooting by reporting the type of unavailable attributes in PKCS11 exception message when C_GetAttributeValue(...) call failed. The java file changes are just cleanup for consolidating the CKR_* constants definition into PKCS11Exception class.

Thanks,
Valerie

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

Commit messages:
 - JDK-6676643: Improve current C_GetAttributeValue native implementation

Changes: https://git.openjdk.java.net/jdk/pull/3709/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3709&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-6676643
  Stats: 453 lines in 14 files changed: 86 ins; 228 del; 139 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3709.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3709/head:pull/3709

PR: https://git.openjdk.java.net/jdk/pull/3709


More information about the security-dev mailing list