Skip to content

Commit a7cdb97

Browse files
authored
Import InvalidSignature from the correct location
1 parent 3da71cb commit a7cdb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scapy/layers/tls/cert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
_EncryptAndVerifyRSA, _DecryptAndSignRSA
4646
from scapy.compat import raw, bytes_encode
4747
if conf.crypto_valid:
48+
from cryptography.exceptions import InvalidSignature
4849
from cryptography.hazmat.backends import default_backend
4950
from cryptography.hazmat.primitives import serialization
5051
from cryptography.hazmat.primitives.asymmetric import rsa, ec
51-
from cryptography.hazmat.backends.openssl.ec import InvalidSignature
5252

5353

5454
# Maximum allowed size in bytes for a certificate file, to avoid

0 commit comments

Comments
 (0)