fix pyasn1 usage
This commit is contained in:
parent
9ff5c310bd
commit
8a6ed2c04e
|
@ -132,7 +132,7 @@ try:
|
||||||
compared_srv_domain = '_xmpp-client.' + compared_domain
|
compared_srv_domain = '_xmpp-client.' + compared_domain
|
||||||
for i in range(0, cnt):
|
for i in range(0, cnt):
|
||||||
ext = cert.get_extension(i)
|
ext = cert.get_extension(i)
|
||||||
if ext.get_short_name() == 'subjectAltName':
|
if ext.get_short_name() == b'subjectAltName':
|
||||||
try:
|
try:
|
||||||
r = _parse_asn1(ext.get_data())
|
r = _parse_asn1(ext.get_data())
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue