Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: third_party/twisted_8_1/twisted/conch/tap.py

Issue 12261012: Remove third_party/twisted_8_1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/twisted_8_1/twisted/conch/stdio.py ('k') | third_party/twisted_8_1/twisted/conch/telnet.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/twisted_8_1/twisted/conch/tap.py
diff --git a/third_party/twisted_8_1/twisted/conch/tap.py b/third_party/twisted_8_1/twisted/conch/tap.py
deleted file mode 100644
index 2fb5a8d233e3582b87ed1692435779fa1caf88e1..0000000000000000000000000000000000000000
--- a/third_party/twisted_8_1/twisted/conch/tap.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-#
-# Twisted, the Framework of Your Internet
-# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-
-"""
-I am a support module for making SSH servers with mktap.
-"""
-
-from twisted.conch import checkers, unix
-from twisted.conch.openssh_compat import factory
-from twisted.cred import portal
-from twisted.python import usage
-from twisted.application import strports
-
-
-class Options(usage.Options):
- synopsis = "Usage: mktap conch [-i <interface>] [-p <port>] [-d <dir>] "
- longdesc = "Makes a Conch SSH server.."
- optParameters = [
- ["interface", "i", "", "local interface to which we listen"],
- ["port", "p", "22", "Port on which to listen"],
- ["data", "d", "/etc", "directory to look for host keys in"],
- ["moduli", "", None, "directory to look for moduli in "
- "(if different from --data)"]
- ]
- zsh_actions = {"data" : "_dirs", "moduli" : "_dirs"}
-
-
-def makeService(config):
- t = factory.OpenSSHFactory()
- t.portal = portal.Portal(unix.UnixSSHRealm())
- t.portal.registerChecker(checkers.UNIXPasswordDatabase())
- t.portal.registerChecker(checkers.SSHPublicKeyDatabase())
- if checkers.pamauth:
- t.portal.registerChecker(checkers.PluggableAuthenticationModulesChecker())
- t.dataRoot = config['data']
- t.moduliRoot = config['moduli'] or config['data']
- port = config['port']
- if config['interface']:
- # Add warning here
- port += ':interface='+config['interface']
- return strports.service(port, t)
« no previous file with comments | « third_party/twisted_8_1/twisted/conch/stdio.py ('k') | third_party/twisted_8_1/twisted/conch/telnet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698