Skip to content

Commit 3555b37

Browse files
authored
feat: implement Default for SmartCardType (#532)
1 parent dea60b5 commit 3555b37

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎src/auth_identity.rs‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ mod scard_credentials {
284284
WindowsNative,
285285
}
286286

287+
impl Default for SmartCardType {
288+
fn default() -> Self {
289+
Self::Emulated {
290+
scard_pin: Secret::default(),
291+
}
292+
}
293+
}
294+
287295
/// Represents raw data needed for smart card authentication
288296
#[derive(Clone, Eq, PartialEq, Debug)]
289297
pub struct SmartCardIdentityBuffers {

0 commit comments

Comments
 (0)