diff options
Diffstat (limited to 'pathod/pathoc.py')
-rw-r--r-- | pathod/pathoc.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/pathod/pathoc.py b/pathod/pathoc.py index e9fa5c43..066c330c 100644 --- a/pathod/pathoc.py +++ b/pathod/pathoc.py @@ -11,15 +11,19 @@ import time import OpenSSL.crypto import logging -from netlib.tutils import treq -from netlib import strutils -from netlib import tcp, certutils, websockets, socks -from netlib import exceptions -from netlib.http import http1 -from netlib import basethread +from mitmproxy.test.tutils import treq +from mitmproxy.utils import strutils +from mitmproxy.net import tcp +from mitmproxy import certs +from mitmproxy.net import websockets +from mitmproxy.net import socks +from mitmproxy import exceptions +from mitmproxy.net.http import http1 +from mitmproxy.types import basethread -from . import log, language -from .protocols import http2 +from pathod import log +from pathod import language +from pathod.protocols import http2 logging.getLogger("hpack").setLevel(logging.WARNING) @@ -76,7 +80,7 @@ class SSLInfo: } t = types.get(pk.type(), "Uknown") parts.append("\tPubkey: %s bit %s" % (pk.bits(), t)) - s = certutils.SSLCert(i) + s = certs.SSLCert(i) if s.altnames: parts.append("\tSANs: %s" % " ".join(strutils.native(n, "utf8") for n in s.altnames)) return "\n".join(parts) |