From bae57a600aa355c72ca7a1dd52df3a05e5592f76 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 5 Jan 2012 13:50:15 +0100 Subject: [PATCH] check in feature window if pyopenssl >= 0.12 and if pyasn1 is available --- src/features_window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/features_window.py b/src/features_window.py index a7137b36e..303b54f61 100644 --- a/src/features_window.py +++ b/src/features_window.py @@ -169,6 +169,11 @@ class FeaturesWindow: try: import OpenSSL.SSL import OpenSSL.crypto + ver = OpenSSL.__version__ + ver_l = [int(i) for i in ver.split('.')] + if ver_l < [0, 12]: + raise ImportError + import pyasn1 except Exception: return False return True