Integrated: 8335288: SunPKCS11 initialization will call C_GetMechanismInfo on unsupported mechanisms

Valerie Peng valeriep at openjdk.org
Fri Sep 13 21:17:13 UTC 2024


On Wed, 17 Jul 2024 00:48:20 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

> Can someone help review this fix? Changed the required-mechanism check by checking if the particular mechanism is inside the list of enabled supported mechanisms. This should be more reliable than calling C_GetMechanismInfo(..) on the required mechanism given vendors may return various sorts of error codes.
> 
> Thanks,
> Valerie

This pull request has now been integrated.

Changeset: fdfe503d
Author:    Valerie Peng <valeriep at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fdfe503d016086cf78b5a8c27dbe45f0261c68ab
Stats:     152 lines in 3 files changed: 140 ins; 2 del; 10 mod

8335288: SunPKCS11 initialization will call C_GetMechanismInfo on unsupported mechanisms

Reviewed-by: mbalao, weijun, hchao

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

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


More information about the security-dev mailing list