Documentation ¶
Index ¶
- Constants
- Variables
- func CheckGPGOnRequest(requestGPGCheck chan bool, notifiers *sync.Map, ctx *gpgme.Context)
- func WatchGPG(gpgPubringPath string, requestGPGCheck chan bool)
- func WatchHMAC(notifiers *sync.Map)
- func WatchSSH(requestGPGCheck chan bool, exits *sync.Map)
- func WatchU2F(notifiers *sync.Map)
Constants ¶
View Source
const ( // https://fidoalliance.org/specs/u2f-specs-master/inc/u2f_hid.h // and its backwards-compatible successor // https://fidoalliance.org/specs/fido2/fido-client-to-authenticator-protocol-v2.1-rd-20191217.html TYPE_INIT = 0x80 CTAPHID_MSG = TYPE_INIT | 0x03 CTAPHID_KEEPALIVE = TYPE_INIT | 0x3b FIDO_USAGE_PAGE = 0xf1d0 FIDO_USAGE_CTAPHID = 0x01 STATUS_UPNEEDED = 0x02 // https://fidoalliance.org/specs/u2f-specs-master/inc/u2f.h U2F_SW_CONDITIONS_NOT_SATISFIED = 0x6985 // https://github.com/torvalds/linux/blob/master/include/linux/hid.h HID_ITEM_TYPE_GLOBAL = 1 HID_ITEM_TYPE_LOCAL = 2 HID_GLOBAL_ITEM_TAG_USAGE_PAGE = 0 HID_LOCAL_ITEM_TAG_USAGE = 0 )
Variables ¶
View Source
var ( // https://github.com/torvalds/linux/blob/master/include/uapi/linux/hidraw.h HIDIOCGRDESCSIZE = ioctl.IOR('H', 1, 4) HIDIOCGRDESC = ioctl.IOR('H', 2, unsafe.Sizeof(hidrawDescriptor{})) )
Functions ¶
func CheckGPGOnRequest ¶
CheckGPGOnRequest checks whether YubiKey is actually waiting for a touch on a GPG request
func WatchGPG ¶
WatchGPG watches for hints that YubiKey is maybe waiting for a touch on a GPG request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.