Skip to content

Commit

Permalink
fix long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Odinmylord committed Apr 12, 2024
1 parent bd28f87 commit c2272ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tlslite/tlsconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4747,11 +4747,13 @@ def _sigHashesToList(settings, privateKey=None, certList=None,
if certType != 'rsa-pss':
sigAlgs.append(getattr(SignatureScheme,
"rsa_{0}_rsae_{1}"
.format(scheme_name, hash_name)))
.format(scheme_name,
hash_name)))
if certType != 'rsa':
sigAlgs.append(getattr(SignatureScheme,
"rsa_{0}_pss_{1}"
.format(scheme_name, hash_name)))
.format(scheme_name,
hash_name)))
except AttributeError:
if scheme_name == 'pkcs1':
sigAlgs.append((getattr(HashAlgorithm, hash_name),
Expand Down

0 comments on commit c2272ee

Please sign in to comment.