From f7e8e8fb30c297c37820e06d343d2ff7ab4f4f36 Mon Sep 17 00:00:00 2001 From: Ludvig Michaelsson Date: Fri, 15 Nov 2024 11:03:34 +0100 Subject: [PATCH] man: document fido_cred_append_type --- man/CMakeLists.txt | 3 ++- man/fido_cred_set_authdata.3 | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index f77c3891..a9402a50 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -211,8 +211,9 @@ list(APPEND MAN_ALIAS fido_credman_metadata_new fido_credman_rp_name fido_credman_metadata_new fido_credman_rp_new fido_credman_metadata_new fido_credman_set_dev_rk - fido_cred_set_authdata fido_cred_set_attstmt + fido_cred_set_authdata fido_cred_append_type fido_cred_set_authdata fido_cred_set_attobj + fido_cred_set_authdata fido_cred_set_attstmt fido_cred_set_authdata fido_cred_set_authdata_raw fido_cred_set_authdata fido_cred_set_blob fido_cred_set_authdata fido_cred_set_clientdata diff --git a/man/fido_cred_set_authdata.3 b/man/fido_cred_set_authdata.3 index a5898774..95811da2 100644 --- a/man/fido_cred_set_authdata.3 +++ b/man/fido_cred_set_authdata.3 @@ -99,6 +99,8 @@ typedef enum { .Fn fido_cred_set_fmt "fido_cred_t *cred" "const char *ptr" .Ft int .Fn fido_cred_set_type "fido_cred_t *cred" "int cose_alg" +.Ft int +.Fn fido_cred_append_type "fido_cred_t *cred" "int cose_alg" .Sh DESCRIPTION The .Nm @@ -392,6 +394,13 @@ The type of a credential may only be set once. Note that not all authenticators support COSE_RS256, COSE_ES384, or COSE_EDDSA. .Pp +The +.Fn fido_cred_append_type +function is the same as +.Fn fido_cred_set_type +but can be called repeatedly to request one of multiple types, in order +of preference. +.Pp Use of the .Nm set of functions may happen in two distinct situations: