Skip to content

Commit 830647d

Browse files
authored
Refactor a bit (#123)
Fixes #13 and splits a few big files into smaller chunks for easier handling. No functional changes, only copy&paste. _Should_ also not be an API-change.
1 parent 8c606aa commit 830647d

25 files changed

+1022
-967
lines changed

libwebauthn/src/management/authenticator_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::proto::ctap2::cbor;
22
use crate::proto::ctap2::Ctap2ClientPinRequest;
3-
pub use crate::transport::error::{CtapError, Error};
43
use crate::transport::Channel;
4+
pub use crate::webauthn::error::{CtapError, Error};
55
use crate::webauthn::handle_errors;
6-
use crate::webauthn::{user_verification, UsedPinUvAuthToken};
6+
use crate::webauthn::pin_uv_auth_token::{user_verification, UsedPinUvAuthToken};
77
use crate::{
88
ops::webauthn::UserVerificationRequirement,
99
pin::PinUvAuthProtocol,

libwebauthn/src/management/bio_enrollment.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ use crate::{
88
Ctap2ClientPinRequest, Ctap2GetInfoResponse, Ctap2LastEnrollmentSampleStatus,
99
Ctap2UserVerifiableRequest,
1010
},
11-
transport::{
11+
transport::Channel,
12+
unwrap_field,
13+
webauthn::{
1214
error::{CtapError, Error, PlatformError},
13-
Channel,
15+
handle_errors,
16+
pin_uv_auth_token::{user_verification, UsedPinUvAuthToken},
1417
},
15-
unwrap_field,
16-
webauthn::{handle_errors, user_verification, UsedPinUvAuthToken},
1718
UxUpdate,
1819
};
1920
use async_trait::async_trait;

libwebauthn/src/management/credential_management.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ use crate::{
88
Ctap2PublicKeyCredentialDescriptor, Ctap2PublicKeyCredentialUserEntity, Ctap2RPData,
99
Ctap2UserVerifiableRequest,
1010
},
11-
transport::{
11+
transport::Channel,
12+
unwrap_field,
13+
webauthn::{
1214
error::{CtapError, Error, PlatformError},
13-
Channel,
15+
handle_errors,
16+
pin_uv_auth_token::{user_verification, UsedPinUvAuthToken},
1417
},
15-
unwrap_field,
16-
webauthn::{handle_errors, user_verification, UsedPinUvAuthToken},
1718
UxUpdate,
1819
};
1920
use async_trait::async_trait;

0 commit comments

Comments
 (0)