From owner-freebsd-current@FreeBSD.ORG Wed Jun 10 11:08:28 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A28F510656BE; Wed, 10 Jun 2009 11:08:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 0EF2A8FC28; Wed, 10 Jun 2009 11:08:27 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=8kQB0OdkAAAA:8 a=7wQJdlSBS9dFlS6CQloA:9 a=H7cr222DlvTftaKguHroXQnYFMsA:4 a=9aOQ2cSd83gA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1254393130; Wed, 10 Jun 2009 13:08:26 +0200 From: Hans Petter Selasky To: Jeremy Faulkner Date: Wed, 10 Jun 2009 13:12:35 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <200906091022.41813.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906101312.38132.hselasky@c2i.net> Cc: usb@freebsd.org, current@freebsd.org Subject: Re: Yubikey X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2009 11:08:29 -0000 On Tuesday 09 June 2009 14:39:19 Jeremy Faulkner wrote: > On Tue, Jun 9, 2009 at 4:22 AM, Hans Petter Selasky wrote: > > On Tuesday 09 June 2009 05:24:24 Mel Flynn wrote: > >> On Saturday 06 June 2009 10:02:05 Jeremy Faulkner wrote: > >> > Has anybody gotten a Yubikey to work with FreeBSD? It attaches as a > >> > uhid device on both 7 and 8. > >> > > >> > ugen5.5: at usbus5 > >> > uhid0: > >> > on usbus5 > > > > Hi, > > > >> Attachment copied. > > > > The subclass and protocol are not correct, so the device is not detected > > like a keyboard. Probably we could add an additional check there to > > verify that the HID descriptor contains Keyboard descriptions. > > > > bInterfaceClass 3 Human Interface Device > > bInterfaceSubClass 0 No Subclass > > bInterfaceProtocol 0 None > > iInterface 0 > > > > --HPS > > The NetBSD kbd checks the Report Descriptors for Generic Desktop > Controls (0x01) and Keyboard (0x06). It doesn't check for the sub > class or interface protocol. I will make a patch for this. Stay tuned. --HPS