make u2f attestation certificate optional

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-11-02 12:49:47 +01:00
parent 31b7620f20
commit a6f8f84632

View File

@ -45,7 +45,7 @@ pub struct Registration {
/// Attestation certificate (in DER format) from which we originally copied the `key_handle`.
/// Not necessary for authentication, unless the hardware tokens should be restricted to
/// specific provider identities. Optional.
#[serde(with = "bytes_as_base64")]
#[serde(with = "bytes_as_base64", default, skip_serializing_if = "Vec::is_empty")]
pub certificate: Vec<u8>,
}