RFR: JDK-6676643: Improve current C_GetAttributeValue native implementation

Greg Rubin github.com+829871+salusasecondus at openjdk.java.net
Tue Apr 27 19:37:22 UTC 2021


On Tue, 27 Apr 2021 02:41:12 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

> 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

Marked as reviewed by SalusaSecondus at github.com (no known OpenJDK username).

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

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



More information about the security-dev mailing list