fix pyasn1 usage

This commit is contained in:
Yann Leboulanger 2014-11-09 22:33:32 +01:00
parent 9ff5c310bd
commit 8a6ed2c04e
1 changed files with 1 additions and 1 deletions

View File

@ -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: