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

Unified Diff: third_party/tlslite/tlslite/api.py

Issue 210323002: Update tlslite to 0.4.6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More policy_testserver.py Created 6 years, 9 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/tlslite/tlslite/__init__.py ('k') | third_party/tlslite/tlslite/basedb.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tlslite/tlslite/api.py
diff --git a/third_party/tlslite/tlslite/api.py b/third_party/tlslite/tlslite/api.py
index eebfbc6091ec80b637c96bce91819a090cda329e..faef6cb1fad6c3e529ab9e6f2180e95e8abebcd8 100644
--- a/third_party/tlslite/tlslite/api.py
+++ b/third_party/tlslite/tlslite/api.py
@@ -1,75 +1,31 @@
-"""Import this module for easy access to TLS Lite objects.
-
-The TLS Lite API consists of classes, functions, and variables spread
-throughout this package. Instead of importing them individually with::
-
- from tlslite.TLSConnection import TLSConnection
- from tlslite.HandshakeSettings import HandshakeSettings
- from tlslite.errors import *
- .
- .
-
-It's easier to do::
-
- from tlslite.api import *
-
-This imports all the important objects (TLSConnection, Checker,
-HandshakeSettings, etc.) into the global namespace. In particular, it
-imports::
-
- from constants import AlertLevel, AlertDescription, Fault
- from errors import *
- from Checker import Checker
- from HandshakeSettings import HandshakeSettings
- from Session import Session
- from SessionCache import SessionCache
- from SharedKeyDB import SharedKeyDB
- from TLSConnection import TLSConnection
- from VerifierDB import VerifierDB
- from X509 import X509
- from X509CertChain import X509CertChain
-
- from integration.HTTPTLSConnection import HTTPTLSConnection
- from integration.POP3_TLS import POP3_TLS
- from integration.IMAP4_TLS import IMAP4_TLS
- from integration.SMTP_TLS import SMTP_TLS
- from integration.XMLRPCTransport import XMLRPCTransport
- from integration.TLSSocketServerMixIn import TLSSocketServerMixIn
- from integration.TLSAsyncDispatcherMixIn import TLSAsyncDispatcherMixIn
- from integration.TLSTwistedProtocolWrapper import TLSTwistedProtocolWrapper
- from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded,
- gmpyLoaded, pycryptoLoaded, prngName
- from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey,
- parseAsPublicKey, parsePrivateKey
-"""
-
-from constants import AlertLevel, AlertDescription, Fault
-from errors import *
-from Checker import Checker
-from HandshakeSettings import HandshakeSettings
-from Session import Session
-from SessionCache import SessionCache
-from SharedKeyDB import SharedKeyDB
-from TLSConnection import TLSConnection
-from VerifierDB import VerifierDB
-from X509 import X509
-from X509CertChain import X509CertChain
-
-from integration.HTTPTLSConnection import HTTPTLSConnection
-from integration.TLSSocketServerMixIn import TLSSocketServerMixIn
-from integration.TLSAsyncDispatcherMixIn import TLSAsyncDispatcherMixIn
-from integration.POP3_TLS import POP3_TLS
-from integration.IMAP4_TLS import IMAP4_TLS
-from integration.SMTP_TLS import SMTP_TLS
-from integration.XMLRPCTransport import XMLRPCTransport
-try:
- import twisted
- del(twisted)
- from integration.TLSTwistedProtocolWrapper import TLSTwistedProtocolWrapper
-except ImportError:
- pass
-
-from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded, gmpyLoaded, \
+# Author: Trevor Perrin
+# See the LICENSE file for legal information regarding use of this file.
+
+__version__ = "0.4.6"
+from .constants import AlertLevel, AlertDescription, Fault
+from .errors import *
+from .checker import Checker
+from .handshakesettings import HandshakeSettings
+from .session import Session
+from .sessioncache import SessionCache
+from .tlsconnection import TLSConnection
+from .verifierdb import VerifierDB
+from .x509 import X509
+from .x509certchain import X509CertChain
+
+from .integration.httptlsconnection import HTTPTLSConnection
+from .integration.tlssocketservermixin import TLSSocketServerMixIn
+from .integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
+from .integration.pop3_tls import POP3_TLS
+from .integration.imap4_tls import IMAP4_TLS
+from .integration.smtp_tls import SMTP_TLS
+from .integration.xmlrpctransport import XMLRPCTransport
+from .integration.xmlrpcserver import TLSXMLRPCRequestHandler, \
+ TLSXMLRPCServer, \
+ MultiPathTLSXMLRPCServer
+
+from .utils.cryptomath import m2cryptoLoaded, gmpyLoaded, \
pycryptoLoaded, prngName
-from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey, \
+from .utils.keyfactory import generateRSAKey, parsePEMKey, \
parseAsPublicKey, parsePrivateKey
+from .utils.tackwrapper import tackpyLoaded
« no previous file with comments | « third_party/tlslite/tlslite/__init__.py ('k') | third_party/tlslite/tlslite/basedb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698