def _sslobj ( sock ) : pass if isinstance ( sock . _sslobj , _ssl . _SSLSocket ) : return sock . _sslobj else : return sock . _sslobj . _sslobj
python scapy is ssl packet
Returns the underlying PySLLSocket object with which the C extension functions interface .
def _sslobj(sock):
    """Returns the underlying PySLLSocket object with which the C extension
    functions interface.

    """
    pass
    if isinstance(sock._sslobj, _ssl._SSLSocket):
        return sock._sslobj
    else:
        return sock._sslobj._sslobj