fix some typos
This commit is contained in:
parent
15a4a178ca
commit
39ff7c27ec
3 changed files with 3 additions and 3 deletions
|
@ -185,7 +185,7 @@ except Exception:
|
||||||
|
|
||||||
HAVE_FARSTREAM = True
|
HAVE_FARSTREAM = True
|
||||||
try:
|
try:
|
||||||
if os.name == 'nt'
|
if os.name == 'nt':
|
||||||
os.environ['FS_PLUGIN_PATH'] = 'gtk\\lib\\farstream-0.1'
|
os.environ['FS_PLUGIN_PATH'] = 'gtk\\lib\\farstream-0.1'
|
||||||
os.environ['GST_PLUGIN_PATH'] = 'gtk\\lib\\gstreamer-0.10'
|
os.environ['GST_PLUGIN_PATH'] = 'gtk\\lib\\gstreamer-0.10'
|
||||||
import gi
|
import gi
|
||||||
|
|
|
@ -223,7 +223,7 @@ class JingleContent(object):
|
||||||
if cert:
|
if cert:
|
||||||
try:
|
try:
|
||||||
digest_algo = cert.get_signature_algorithm().split('With')[0]
|
digest_algo = cert.get_signature_algorithm().split('With')[0]
|
||||||
except AttributeError, e:
|
except AttributeError as e:
|
||||||
# Old py-OpenSSL is missing get_signature_algorithm
|
# Old py-OpenSSL is missing get_signature_algorithm
|
||||||
digest_algo = "sha256"
|
digest_algo = "sha256"
|
||||||
security.addChild('fingerprint').addData(cert.digest(
|
security.addChild('fingerprint').addData(cert.digest(
|
||||||
|
|
|
@ -194,7 +194,7 @@ def check_cert(jid, fingerprint):
|
||||||
if cert:
|
if cert:
|
||||||
try:
|
try:
|
||||||
digest_algo = cert.get_signature_algorithm().split('With')[0]
|
digest_algo = cert.get_signature_algorithm().split('With')[0]
|
||||||
except AttributeError, e:
|
except AttributeError as e:
|
||||||
# Old py-OpenSSL is missing get_signature_algorithm
|
# Old py-OpenSSL is missing get_signature_algorithm
|
||||||
digest_algo = "sha256"
|
digest_algo = "sha256"
|
||||||
if cert.digest(digest_algo) == fingerprint:
|
if cert.digest(digest_algo) == fingerprint:
|
||||||
|
|
Loading…
Add table
Reference in a new issue