check in feature window if pyopenssl >= 0.12 and if pyasn1 is available
This commit is contained in:
parent
d0a23f3200
commit
bae57a600a
1 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,11 @@ class FeaturesWindow:
|
||||||
try:
|
try:
|
||||||
import OpenSSL.SSL
|
import OpenSSL.SSL
|
||||||
import OpenSSL.crypto
|
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:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Reference in a new issue