PKCS#11 tests should not use CRYPTO_INVALID_SESSION
Upstream of Joyent OS-6600.
Currently usr/src/test/crypto-tests/tests/common/cryptotest_pkcs.c uses the kernel crypto API macro CRYPTO_INVALID_SESSION to identify an invalid PKCS#11 session handle. This is defined to -1, however CK_INVALID_HANDLE (which is the PKCS#11 value for any invalid handle – session, object, etc) is defined to 0. This mismatch causes much sadness for any PKCS#11 failures.
Updated by Electric Monk about 3 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 2cf2b01e17654840a521746eefea832fb41b79bd Author: Jason King <email@example.com> Date: 2018-07-11T17:18:10.000Z 9643 PKCS#11 tests should not use CRYPTO_INVALID_SESSION Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Dan McDonald <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>