mirror of
https://github.com/trussed-dev/ctap-types.git
synced 2026-06-20 04:16:17 -07:00
Use byte slice for PinAuth
Fixes: https://github.com/Nitrokey/ctap-types/issues/12
This commit is contained in:
committed by
sosthene-nitrokey
parent
b3a3a126a6
commit
e2e41a7f81
@@ -241,8 +241,6 @@ pub struct AuthenticatorOptions {
|
||||
//pub struct CredentialPublicKey {
|
||||
//}
|
||||
|
||||
pub type PinAuth = serde_byte_array::ByteArray<16>;
|
||||
|
||||
// #[derive(Clone,Debug,Eq,PartialEq)]
|
||||
// // #[serde(rename_all = "camelCase")]
|
||||
// pub struct AuthenticatorData {
|
||||
|
||||
@@ -2,7 +2,7 @@ use crate::{Bytes, String, Vec};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_indexed::{DeserializeIndexed, SerializeIndexed};
|
||||
|
||||
use super::{AuthenticatorOptions, PinAuth};
|
||||
use super::AuthenticatorOptions;
|
||||
use crate::cose::EcdhEsHkdf256PublicKey;
|
||||
use crate::sizes::*;
|
||||
use crate::webauthn::*;
|
||||
@@ -65,7 +65,7 @@ pub struct Request<'a> {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub options: Option<AuthenticatorOptions>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub pin_auth: Option<&'a PinAuth>,
|
||||
pub pin_auth: Option<&'a serde_bytes::Bytes>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub pin_protocol: Option<u32>,
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ use crate::{Bytes, String, Vec};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_indexed::{DeserializeIndexed, SerializeIndexed};
|
||||
|
||||
use super::{AuthenticatorOptions, PinAuth};
|
||||
use super::AuthenticatorOptions;
|
||||
use crate::ctap2::credential_management::CredentialProtectionPolicy;
|
||||
use crate::sizes::*;
|
||||
use crate::webauthn::*;
|
||||
@@ -82,7 +82,7 @@ pub struct Request<'a> {
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub options: Option<AuthenticatorOptions>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub pin_auth: Option<&'a PinAuth>,
|
||||
pub pin_auth: Option<&'a serde_bytes::Bytes>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub pin_protocol: Option<u32>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user