summaryrefslogtreecommitdiff
path: root/lib/libfido2/man/fido_dev_get_assert.3
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2019-11-14 21:14:11 +0000
committerDamien Miller <djm@cvs.openbsd.org>2019-11-14 21:14:11 +0000
commitfa632f60e7897131c93ad6a1f37337ac664e1098 (patch)
tree03445fd94e64c86dc32bfeb09f75417d319837c4 /lib/libfido2/man/fido_dev_get_assert.3
parenta2cdb5cb3f8e73947c985e8743e1dc061afc67e5 (diff)
import libfido2 (git HEAD). This library allows communication with
U2F/FIDO2 devices over USB. feedback and "start the churn" deraadt@
Diffstat (limited to 'lib/libfido2/man/fido_dev_get_assert.3')
-rw-r--r--lib/libfido2/man/fido_dev_get_assert.376
1 files changed, 76 insertions, 0 deletions
diff --git a/lib/libfido2/man/fido_dev_get_assert.3 b/lib/libfido2/man/fido_dev_get_assert.3
new file mode 100644
index 00000000000..8d4311fb4d0
--- /dev/null
+++ b/lib/libfido2/man/fido_dev_get_assert.3
@@ -0,0 +1,76 @@
+.\" Copyright (c) 2018 Yubico AB. All rights reserved.
+.\" Use of this source code is governed by a BSD-style
+.\" license that can be found in the LICENSE file.
+.\"
+.Dd $Mdocdate: November 14 2019 $
+.Dt FIDO_DEV_GET_ASSERT 3
+.Os
+.Sh NAME
+.Nm fido_dev_get_assert
+.Nd obtains an assertion from a FIDO device
+.Sh SYNOPSIS
+.In fido.h
+.Ft int
+.Fn fido_dev_get_assert "fido_dev_t *dev" " fido_assert_t *assert" "const char *pin"
+.Sh DESCRIPTION
+The
+.Fn fido_dev_get_assert
+function asks the FIDO device represented by
+.Fa dev
+for an assertion according to the following parameters defined in
+.Fa assert :
+.Pp
+.Bl -dash -compact
+.It
+.Nm relying party ID ;
+.It
+.Nm client data hash ;
+.It
+.Nm list of allowed credential IDs ;
+.It
+.Nm user presence and user verification attributes .
+.El
+.Pp
+See
+.Xr fido_assert_set 3
+for information on how these values are set.
+.Pp
+If a PIN is not needed to authenticate the request against
+.Fa dev ,
+then
+.Fa pin
+may be NULL.
+Otherwise
+.Fa pin
+must point to a NUL-terminated UTF-8 string.
+.Pp
+After a successful call to
+.Fn fido_dev_get_assert ,
+the
+.Xr fido_assert_count 3 ,
+.Xr fido_assert_user_display_name 3 ,
+.Xr fido_assert_user_icon 3 ,
+.Xr fido_assert_user_name 3 ,
+.Xr fido_assert_authdata_ptr 3 ,
+.Xr fido_assert_user_id_ptr 3 ,
+.Xr fido_assert_sig_ptr 3 ,
+and
+.Xr fido_assert_sigcount 3
+functions may be invoked on
+.Fa assert
+to retrieve the various attributes of the generated assertion.
+.Pp
+Please note that
+.Fn fido_dev_get_assert
+is synchronous and will block if necessary.
+.Sh RETURN VALUES
+The error codes returned by
+.Fn fido_dev_get_assert
+are defined in
+.In fido/err.h .
+On success,
+.Dv FIDO_OK
+is returned.
+.Sh SEE ALSO
+.Xr fido_assert 3 ,
+.Xr fido_assert_set 3