From b2f1cb2b9740986470914743420fc9322124df6e Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 9 Mar 2019 20:20:52 +0100 Subject: [PATCH] apps/webauthn: re-add generic icon --- src/apps/webauthn/__init__.py | 4 ++-- src/apps/webauthn/res/icon_webauthn.toif | Bin 0 -> 1400 bytes src/usb.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/apps/webauthn/res/icon_webauthn.toif diff --git a/src/apps/webauthn/__init__.py b/src/apps/webauthn/__init__.py index dc321bd01..89371a061 100644 --- a/src/apps/webauthn/__init__.py +++ b/src/apps/webauthn/__init__.py @@ -421,7 +421,7 @@ class ConfirmContent(ui.Widget): namepart = name.lower().replace(" ", "_") icon = res.load("apps/webauthn/res/icon_%s.toif" % namepart) except Exception as e: - icon = res.load("apps/webauthn/res/icon_generic.toif") + icon = res.load("apps/webauthn/res/icon_webauthn.toif") if __debug__: log.exception(__name__, e) else: @@ -429,7 +429,7 @@ class ConfirmContent(ui.Widget): hexlify(self.app_id[:4]).decode(), hexlify(self.app_id[-4:]).decode(), ) - icon = res.load("apps/webauthn/res/icon_generic.toif") + icon = res.load("apps/webauthn/res/icon_webauthn.toif") self.app_name = name self.app_icon = icon diff --git a/src/apps/webauthn/res/icon_webauthn.toif b/src/apps/webauthn/res/icon_webauthn.toif new file mode 100644 index 0000000000000000000000000000000000000000..fe1cbe5959910c68cb88633a5475088a9dab6b66 GIT binary patch literal 1400 zcmV-;1&8`nPf2D#06+k21pol;QZaAhNE9BxNK=jk#gwnX%ysMTN~DuccDgOMW6QOx zy>cs*^42sdQ=u(avQwm_K}wkdqm*foZp$=~{D6CJhQT&AS;A&lcM@-eY{oP1``-6` zjGgLKr#jXDy?9?nGJzDX@R!I~_^k0ufE^jDh1acHY6S^*f9A}PStOh|fRwdyy8)^2 zWxV~i5W!CXZ=3#*!CZv2A$;@HUc_bx<}mj<#DVu;6I@2r73SQ9)G92;h41#gh2Q&- zYNp9+p~DqUw8n%rQE?~FL4HC6x#q~A$6d;ZT5L}rUrp)+bJoPpiT2w}9P?gDppfd(4kP=Y8b9Vh#Q7k_sZs=i~hf+pQwP$J2>D zO&XTD9ad`Pb!mc4?Nc`McDz{p;^Fd$w($D zlVe72ob>r(64qJP|l z)I9SAN#PymzneS_zMvFzA`+lwQtx9*3jsAV}mGbm0S3CZm{w8bJkng^k z-RZp#h5V^Zt)IiU`NO>>eGT9c|FP>MjLeOjA>qlv`M`L8Q}TqEvW9v8dpLzD?BJgX zUvr-rcg_#WpIWOGWA7)FnXRWLRkJs<(yiF*8U&;EMr%B0vLk#E(DT!#)7Paw(0Eq= zhS!BFdU-dzo#csrfayR@%D1@db!C#{Teb7=hSR&@#fa8Njn8|QX&t@@v1gQL?(1?o zm=3CP5Ykq_*lg%VO^nT4=UJl-S z+<4&7blWtMBmU0mMnV53Ds*MJs|99R9f8k8;B_&z4fHmFguC_LT3 literal 0 HcmV?d00001 diff --git a/src/usb.py b/src/usb.py index beda879b9..a878b5fca 100644 --- a/src/usb.py +++ b/src/usb.py @@ -29,7 +29,7 @@ if __debug__: ep_cmd=0x84, ) else: - # interface used for FIDO U2F HID transport + # interface used for FIDO/U2F and FIDO2/WebAuthn HID transport iface_webauthn = io.HID( iface_num=1, ep_in=0x82,