summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcryptoutil/common/mechstr.c
diff options
context:
space:
mode:
authorda73024 <none@none>2008-07-15 15:39:10 -0700
committerda73024 <none@none>2008-07-15 15:39:10 -0700
commit76d1b5a97b0704bc67fbdcb9fede23c1587c2ec2 (patch)
treed5192df43a93d8a3cd0ab2c789e8a29315427495 /usr/src/lib/libcryptoutil/common/mechstr.c
parent860de8616d6c78b55ac27ec79394abd090b94b78 (diff)
downloadillumos-gate-76d1b5a97b0704bc67fbdcb9fede23c1587c2ec2.tar.gz
6723237 libcryptoutil should allow mechanism number "0x80000000" (the value of marker CKM_VENDOR_DEFINED)
Diffstat (limited to 'usr/src/lib/libcryptoutil/common/mechstr.c')
-rw-r--r--usr/src/lib/libcryptoutil/common/mechstr.c4
1 files changed, 2 insertions, 2 deletions
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);
}