summaryrefslogtreecommitdiffstats
path: root/scripts/external_libs/scapy-2.3.1/python2/scapy/crypto/__init__.py
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-21 16:03:47 +0200
committerimarom <imarom@cisco.com>2016-03-21 16:03:47 +0200
commitb89efa188810bf95a9d245e69e2961b5721c3b0f (patch)
tree454273ac6c4ae972ebb8a2c86b893296970b4fa9 /scripts/external_libs/scapy-2.3.1/python2/scapy/crypto/__init__.py
parentf72c6df9d2e9998ae1f3529d729ab7930b35785a (diff)
scapy python 2/3
Diffstat (limited to 'scripts/external_libs/scapy-2.3.1/python2/scapy/crypto/__init__.py')
-rw-r--r--scripts/external_libs/scapy-2.3.1/python2/scapy/crypto/__init__.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/external_libs/scapy-2.3.1/python2/scapy/crypto/__init__.py b/scripts/external_libs/scapy-2.3.1/python2/scapy/crypto/__init__.py
new file mode 100644
index 00000000..b441863e
--- /dev/null
+++ b/scripts/external_libs/scapy-2.3.1/python2/scapy/crypto/__init__.py
@@ -0,0 +1,17 @@
+## This file is part of Scapy
+## See http://www.secdev.org/projects/scapy for more informations
+## Copyright (C) Arnaud Ebalard <arno@natisbad.org>
+## This program is published under a GPLv2 license
+
+"""
+Tools for handling with digital certificates.
+"""
+
+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 *