GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FIDO_DEV_GET_TOUCH_BEGIN(3) FreeBSD Library Functions Manual FIDO_DEV_GET_TOUCH_BEGIN(3)

fido_dev_get_touch_begin, fido_dev_get_touch_status
asynchronously wait for touch on a FIDO 2 authenticator

#include <fido.h>

int
fido_dev_get_touch_begin(fido_dev_t *dev);

int
fido_dev_get_touch_status(fido_dev_t *dev, int *touched, int ms);

The functions described in this page allow an application to asynchronously wait for touch on a FIDO authenticator. This is useful when multiple authenticators are present and the application needs to know which one to use.

The fido_dev_get_touch_begin() function initiates a touch request on dev.

The fido_dev_get_touch_status() function continues an ongoing touch request on dev, blocking up to ms milliseconds. On success, touched will be updated to reflect the touch request status. If touched is 1, the device was touched, and the touch request is terminated. If touched is 0, the application may call fido_dev_get_touch_status() to continue the touch request, or fido_dev_cancel() to terminate it.

The error codes returned by fido_dev_get_touch_begin() and fido_dev_get_touch_status() are defined in <fido/err.h>. On success, FIDO_OK is returned.

Please refer to examples/select.c in libfido2's source tree.

fido_dev_cancel(3)

The fido_dev_get_touch_status() function will cause a command to be transmitted to U2F authenticators. These transmissions should not exceed a frequency of 5Hz.
August 5, 2020 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.