From 95c6577793510cad9bc721cdb86bc4a5f6ca59f6 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Thu, 8 Aug 2024 09:17:01 +0200 Subject: [PATCH] Allow extensions to be empty in GetInfo (fix #226) --- fido2/ctap2/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fido2/ctap2/base.py b/fido2/ctap2/base.py index e9b6704..fd51000 100644 --- a/fido2/ctap2/base.py +++ b/fido2/ctap2/base.py @@ -79,8 +79,8 @@ class Info(_CborDataObject): """ versions: List[str] - extensions: List[str] - aaguid: Aaguid + extensions: List[str] = field(default_factory=list) + aaguid: Aaguid = Aaguid.NONE options: Dict[str, bool] = field(default_factory=dict) max_msg_size: int = 1024 pin_uv_protocols: List[int] = field(default_factory=list)