From 8a6ed2c04ec0d09ee48e8e2fdb8f26bb4ee7daac Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 9 Nov 2014 22:33:32 +0100 Subject: [PATCH] fix pyasn1 usage --- src/common/check_X509.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/check_X509.py b/src/common/check_X509.py index 14ace64b0..4aec0a7e9 100644 --- a/src/common/check_X509.py +++ b/src/common/check_X509.py @@ -132,7 +132,7 @@ try: compared_srv_domain = '_xmpp-client.' + compared_domain for i in range(0, cnt): ext = cert.get_extension(i) - if ext.get_short_name() == 'subjectAltName': + if ext.get_short_name() == b'subjectAltName': try: r = _parse_asn1(ext.get_data()) except: