Skip to content
Snippets Groups Projects
Commit 3e96a13b authored by Phil's avatar Phil
Browse files

Made Python Crypto lib become a soft dependency.

parent 57df4b7e
No related branches found
No related tags found
No related merge requests found
......@@ -40,4 +40,4 @@ from asn1.asn1 import *
from asn1.ber import *
from asn1.mib import *
from crypto.cert import *
from crypto import *
......@@ -3,4 +3,13 @@
## Copyright (C) Arnaud Ebalard <arno@natisbad.org>
## This program is published under a GPLv2 license
__all__ = ["cert"]
try:
import Crypto
except ImportError:
import logging
log_loading = logging.getLogger("scapy.loading")
log_loading.info("Can't import python Crypto lib. Disabled certificate manipulation tools")
else:
from scapy.crypto.cert import *
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment