diff options
author | Ujjwal Verma <ujjwalverma1111@gmail.com> | 2017-08-02 21:02:51 +0530 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-08-02 19:52:49 +0200 |
commit | 97abb0a6567cb762755ed00433e586871b96ce95 (patch) | |
tree | 4d27d46aea0e04a63fa43b2633ff3ceb21b9c4ce | |
parent | 69bc145228cacc095f9601d65ac06d62829fe218 (diff) | |
download | mitmproxy-97abb0a6567cb762755ed00433e586871b96ce95.tar.gz mitmproxy-97abb0a6567cb762755ed00433e586871b96ce95.tar.bz2 mitmproxy-97abb0a6567cb762755ed00433e586871b96ce95.zip |
update for pyasn1 0.3
-rw-r--r-- | mitmproxy/certs.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mitmproxy/certs.py b/mitmproxy/certs.py index 0e441efe..c5f930e1 100644 --- a/mitmproxy/certs.py +++ b/mitmproxy/certs.py @@ -480,10 +480,8 @@ class SSLCert(serializable.Serializable): except PyAsn1Error: continue for i in dec[0]: - if i[0] is None and isinstance(i[1], univ.OctetString) and not isinstance(i[1], char.IA5String): - # This would give back the IP address: b'.'.join([str(e).encode() for e in i[1].asNumbers()]) - continue - else: + if i[0].hasValue(): e = i[0].asOctets() - altnames.append(e) + altnames.append(e) + return altnames |