def loopbackTLSConnectionInMemory(trustRoot, privateKey, serverCertificate, clientProtocols=None, serverProtocols=None, clientOptions=None):
 if (clientOptions is None):
  clientOptions = sslverify.OpenSSLCertificateOptions
 clientCertOpts = clientOptions(trustRoot=trustRoot, acceptableProtocols=clientProtocols)
 serverCertOpts = sslverify.OpenSSLCertificateOptions(privateKey=privateKey, certificate=serverCertificate, acceptableProtocols=serverProtocols)
 return _loopbackTLSConnection(serverCertOpts, clientCertOpts)

def loopbackTLSConnectionInMemory ( trustRoot , privateKey , serverCertificate , clientProtocols = None , serverProtocols = None , clientOptions = None ) : if ( clientOptions is None ) : clientOptions = sslverify . OpenSSLCertificateOptions clientCertOpts = clientOptions ( trustRoot = trustRoot , acceptableProtocols = clientProtocols ) serverCertOpts = sslverify . OpenSSLCertificateOptions ( privateKey = privateKey , certificate = serverCertificate , acceptableProtocols = serverProtocols ) return _loopbackTLSConnection ( serverCertOpts , clientCertOpts )
create a loopback tls connection with the given trust and keys .