Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2002 08:42:04 -0700 (PDT)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 12824 for review
Message-ID:  <200206131542.g5DFg4B22397@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12824

Change 12824 by des@des.at.des.thinksec.com on 2002/06/13 08:41:03

	All the slot types we (plan to) support are hardware slots.
	
	Note that USB slots are *not* automatically removable in the PKCS#11
	sense.  If my interpretation of PKCS#11 is correct, USB key storage
	tokens are considered "fixed" devices because you can't dissociate
	the token from the reader.

Affected files ...

... //depot/projects/cryptoki/lib/C_GetSlotInfo.c#5 edit

Differences ...

==== //depot/projects/cryptoki/lib/C_GetSlotInfo.c#5 (text+ko) ====

@@ -31,7 +31,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/cryptoki/lib/C_GetSlotInfo.c#4 $
+ * $P4: //depot/projects/cryptoki/lib/C_GetSlotInfo.c#5 $
  */
 
 #include <string.h>
@@ -52,5 +52,12 @@
 	strncpy(pInfo->slotDescription, _ck_Slots[slotID].cks_dev,
 	    strlen(_ck_Slots[slotID].cks_dev));
 	memset(pInfo->manufacturerID, ' ', sizeof pInfo->manufacturerID);
+	switch (_ck_Slots[slotID].cks_type) {
+	case serial:
+	case parallel:
+	case ugen:
+		pInfo->flags |= CKF_HW_SLOT;
+		break;
+	}
 	return (CKR_OK);
 }

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206131542.g5DFg4B22397>