Switch to authenticationrequirement instead of flag (#872)

This commit is contained in:
Max Goedjen authored and GitHub committed 2026-11-18 05:19:16 +00:00
1 parent c0562ba50a
commit 479075490d
12 files changed
+411 -410

No files matched your search

@@ -9,7 +9,7 @@ import Testing
@Test func eraser() {
let data = Data(UUID().uuidString.utf8)
let secret = SmartCard.Secret(id: data, name: "Name", publicKey: data, attributes: Attributes(keyType: KeyType(algorithm: .ecdsa, size: 256), authentication: .notRequired, allowWhileLocked: true))
let secret = SmartCard.Secret(id: data, name: "Name", publicKey: data, attributes: Attributes(keyType: KeyType(algorithm: .ecdsa, size: 256), authentication: .notRequiredWhileUnlocked))
let erased = AnySecret(secret)
#expect(erased.id == secret.id as AnyHashable)
#expect(erased.name == secret.name)