From 76d1b5a97b0704bc67fbdcb9fede23c1587c2ec2 Mon Sep 17 00:00:00 2001 From: da73024 Date: Tue, 15 Jul 2008 15:39:10 -0700 Subject: 6723237 libcryptoutil should allow mechanism number "0x80000000" (the value of marker CKM_VENDOR_DEFINED) --- usr/src/lib/libcryptoutil/common/mechstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/lib/libcryptoutil/common/mechstr.c') diff --git a/usr/src/lib/libcryptoutil/common/mechstr.c b/usr/src/lib/libcryptoutil/common/mechstr.c index b299517b0a..a5936ad7e9 100644 --- a/usr/src/lib/libcryptoutil/common/mechstr.c +++ b/usr/src/lib/libcryptoutil/common/mechstr.c @@ -301,7 +301,7 @@ static const pkcs11_mapping_t mapping[] = { { "CKM_DH_PKCS_PARAMETER_GEN", CKM_DH_PKCS_PARAMETER_GEN }, { "CKM_X9_42_DH_PARAMETER_GEN", CKM_X9_42_DH_PARAMETER_GEN }, /* - * Values above 0x8000000 (CKM_VENDOR_DEFINED) are represented + * Values >= 0x8000000 (CKM_VENDOR_DEFINED) are represented * as strings with hexadecimal numbers (e.g., "0x8123456"). */ { NULL, 0 } @@ -334,7 +334,7 @@ const char pkcs11_mapping_t target; pkcs11_mapping_t *result = NULL; - if (mech > CKM_VENDOR_DEFINED) { + if (mech >= CKM_VENDOR_DEFINED) { return (NULL); } -- cgit v1.2.3