From dbb65d71cc79f5c9e0ebd5c510521beaeec33a37 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 8 Apr 2014 22:36:19 +0200 Subject: [PATCH] fix typo --- src/common/jingle_xtls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/jingle_xtls.py b/src/common/jingle_xtls.py index b2a06bd1b..c2631c8d7 100644 --- a/src/common/jingle_xtls.py +++ b/src/common/jingle_xtls.py @@ -194,7 +194,7 @@ def check_cert(jid, fingerprint): if cert: try: digest_algo = cert.get_signature_algorithm().split('With')[0] - except AttributeError as e: + except AttributeError as e: # Old py-OpenSSL is missing get_signature_algorithm digest_algo = "sha256" if cert.digest(digest_algo) == fingerprint: @@ -251,7 +251,7 @@ def createCertRequest(pkey, digest="sha256", **name): req.sign(pkey, digest) return req -def createCertificate(req, issuerCert, issuerKey, serial, notBefore, notAfter, digest="shai256"): +def createCertificate(req, issuerCert, issuerKey, serial, notBefore, notAfter, digest="sha256"): """ Generate a certificate given a certificate request.