Skip to content

Commit

Permalink
#3583 skip keys that don't have a 'verifier'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 17, 2022
1 parent 9b4e742 commit a74ac90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/server/auth/u2f_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def authenticate_check(self, challenge_response : str, client_salt : str=None) -
from cryptography.hazmat.primitives.asymmetric import ec
errors = {}
for origin, public_key in self.public_keys.items():
verifier = public_key.verifier(sig, ec.ECDSA(hashes.SHA256()))
verifier.update(param)
try:
verifier = public_key.verifier(sig, ec.ECDSA(hashes.SHA256()))
verifier.update(param)
verifier.verify()
log("ECDSA SHA256 verification passed for '%s'", origin)
return True
Expand Down

0 comments on commit a74ac90

Please sign in to comment.