Skip to content

Commit

Permalink
man: document fido_cred_x5c_chain_{ptr,len}
Browse files Browse the repository at this point in the history
  • Loading branch information
LDVG committed Feb 5, 2024
1 parent 7212520 commit 7c07bb3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions man/fido_cred_new.3
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
.Ft const unsigned char *
.Fn fido_cred_user_id_ptr "const fido_cred_t *cred"
.Ft const unsigned char *
.Fn fido_cred_x5c_chain_ptr "const fido_cred_t *cred" "size_t idx"
.Ft const unsigned char *
.Fn fido_cred_x5c_ptr "const fido_cred_t *cred"
.Ft const unsigned char *
.Fn fido_cred_attstmt_ptr "const fido_cred_t *cred"
Expand All @@ -125,6 +127,8 @@
.Ft size_t
.Fn fido_cred_user_id_len "const fido_cred_t *cred"
.Ft size_t
.Fn fido_cred_x5c_chain_len "const fido_cred_t *cred" "size_t idx"
.Ft size_t
.Fn fido_cred_x5c_len "const fido_cred_t *cred"
.Ft size_t
.Fn fido_cred_attstmt_len "const fido_cred_t *cred"
Expand Down Expand Up @@ -265,6 +269,18 @@ The corresponding length can be obtained by
and
.Fn fido_cred_attstmt_len .
.Pp
The
.Fn fido_cred_x5c_chain_ptr
function returns a pointer to the
.Fa idx
certificate of the chain returned as part of the attestation statement.
The
.Fn fido_cred_x5c_chain_len
function returns the corresponding length.
Please note that the leaf certificate has a
.Fa idx
(index) value of 0.
.Pp
The authenticator data, x509 certificate, and signature parts of a
credential are typically passed to a FIDO2 server for verification.
.Pp
Expand Down

0 comments on commit 7c07bb3

Please sign in to comment.