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

Hai-May Chao hchao at openjdk.org
Fri Jul 19 00:26:34 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

Marked as reviewed by hchao (Committer).

LGTM.

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

PR Review: https://git.openjdk.org/jdk/pull/20207#pullrequestreview-2187090932
PR Comment: https://git.openjdk.org/jdk/pull/20207#issuecomment-2237806757



More information about the security-dev mailing list