don't try to create certificates if PyOpenSSL is not available

This commit is contained in:
Yann Leboulanger 2014-03-30 11:45:29 +02:00
parent e8d5092f3e
commit 7d09c4d45b
1 changed files with 2 additions and 2 deletions

View File

@ -352,8 +352,8 @@ def check_and_possibly_create_paths():
create_path(LOCAL_XTLS_CERTS)
cert_name = os.path.join(LOCAL_XTLS_CERTS,
jingle_xtls.SELF_SIGNED_CERTIFICATE)
if not (os.path.exists(cert_name + '.cert') and os.path.exists(
cert_name + '.pkey')):
if gajim.HAVE_PYOPENSSL and not (os.path.exists(cert_name + '.cert') and \
os.path.exists(cert_name + '.pkey')):
jingle_xtls.make_certs(cert_name, 'gajim')