mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 02:01:36 +03:00
Merge PR #1638
This commit is contained in:
commit
db147cdbc3
@ -521,16 +521,17 @@ class ScpConnectionNode(ConnectionNode):
|
|||||||
self.fips_capable = info.fips_capable
|
self.fips_capable = info.fips_capable
|
||||||
self.scp_params = None
|
self.scp_params = None
|
||||||
try:
|
try:
|
||||||
scp = SecurityDomainSession(connection)
|
if self.fips_capable != 0:
|
||||||
|
scp = SecurityDomainSession(connection)
|
||||||
|
|
||||||
for ref in scp.get_key_information().keys():
|
for ref in scp.get_key_information().keys():
|
||||||
if ref.kid == 0x13:
|
if ref.kid == 0x13:
|
||||||
chain = scp.get_certificate_bundle(ref)
|
chain = scp.get_certificate_bundle(ref)
|
||||||
if chain:
|
if chain:
|
||||||
pub_key = chain[-1].public_key()
|
pub_key = chain[-1].public_key()
|
||||||
assert isinstance(pub_key, EllipticCurvePublicKey) # nosec
|
assert isinstance(pub_key, EllipticCurvePublicKey) # nosec
|
||||||
self.scp_params = Scp11KeyParams(ref, pub_key)
|
self.scp_params = Scp11KeyParams(ref, pub_key)
|
||||||
break
|
break
|
||||||
except NotSupportedError:
|
except NotSupportedError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user