Integrated: JDK-6676643: Improve current C_GetAttributeValue native implementation

Valerie Peng valeriep at openjdk.java.net
Fri May 14 23:07:58 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

This pull request has now been integrated.

Changeset: 7ab6dc83
Author:    Valerie Peng <valeriep at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/7ab6dc83df2e19a57ff0dcdc87598c54cd949a7c
Stats:     456 lines in 14 files changed: 68 ins; 198 del; 190 mod

6676643: Improve current C_GetAttributeValue native implementation

Reviewed-by: xuelei

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

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



More information about the security-dev mailing list