diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2017-08-02 20:35:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-02 20:35:50 +0200 |
commit | 70a501e917c0cc5c4aa306d90483c8d8f2c11cbb (patch) | |
tree | 49ee20800d8ef1aa4813463c99a81451e07e5710 | |
parent | 69bc145228cacc095f9601d65ac06d62829fe218 (diff) | |
parent | 8b0a570f4c0a3116d1237f1fbdb1ebb1bbbe9281 (diff) | |
download | mitmproxy-70a501e917c0cc5c4aa306d90483c8d8f2c11cbb.tar.gz mitmproxy-70a501e917c0cc5c4aa306d90483c8d8f2c11cbb.tar.bz2 mitmproxy-70a501e917c0cc5c4aa306d90483c8d8f2c11cbb.zip |
Merge pull request #2496 from Kriechi/bump-pyasn
bump pyasn
-rw-r--r-- | mitmproxy/certs.py | 8 | ||||
-rw-r--r-- | setup.py | 2 |
2 files changed, 4 insertions, 6 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 @@ -73,7 +73,7 @@ setup( "kaitaistruct>=0.7, <0.8", "ldap3>=2.2.0, <2.3", "passlib>=1.6.5, <1.8", - "pyasn1>=0.1.9, <0.3", + "pyasn1>=0.3.1, <0.4", "pyOpenSSL>=17.2,<17.3", "pyparsing>=2.1.3, <2.3", "pyperclip>=1.5.22, <1.6", |