From 97abb0a6567cb762755ed00433e586871b96ce95 Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Wed, 2 Aug 2017 21:02:51 +0530 Subject: update for pyasn1 0.3 --- mitmproxy/certs.py | 8 +++----- 1 file 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 -- cgit v1.2.3 From 8b0a570f4c0a3116d1237f1fbdb1ebb1bbbe9281 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 2 Aug 2017 19:53:32 +0200 Subject: bump dependency --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 433635e4..02dab61f 100644 --- a/setup.py +++ b/setup.py @@ -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", -- cgit v1.2.3