Print this page
6723237 libcryptoutil should allow mechanism number "0x80000000" (the value of marker CKM_VENDOR_DEFINED)

@@ -21,11 +21,11 @@
 /*
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-#pragma ident   "@(#)adm_metaslot.c     1.4     08/06/27 SMI"
+#pragma ident   "@(#)adm_metaslot.c     1.5     08/07/07 SMI"
 
 /*
  * Administration for metaslot
  *
  * All the "list" operations will call functions in libpkcs11.so

@@ -283,11 +283,11 @@
         }
 
         for (i = 0; i < mech_count; i++) {
                 CK_MECHANISM_TYPE       mech = pmech_list[i];
 
-                if (mech > CKM_VENDOR_DEFINED) {
+                if (mech >= CKM_VENDOR_DEFINED) {
                         (void) printf("%#lx", mech);
                 } else {
                         (void) printf("%-29s", pkcs11_mech2str(mech));
                 }