Skip to content
Snippets Groups Projects
Commit bae57a60 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

check in feature window if pyopenssl >= 0.12 and if pyasn1 is available

parent d0a23f32
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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