fix pyasn1 usage
This commit is contained in:
parent
9ff5c310bd
commit
8a6ed2c04e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue