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

Side by Side Diff: third_party/tlslite/tlslite/api.py

Issue 211173006: Perform tlslite 0.3.8 -> 0.4.6 renames ahead of time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop the -B Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/tlslite/tlslite/__init__.py ('k') | third_party/tlslite/tlslite/basedb.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Import this module for easy access to TLS Lite objects. 1 """Import this module for easy access to TLS Lite objects.
2 2
3 The TLS Lite API consists of classes, functions, and variables spread 3 The TLS Lite API consists of classes, functions, and variables spread
4 throughout this package. Instead of importing them individually with:: 4 throughout this package. Instead of importing them individually with::
5 5
6 from tlslite.TLSConnection import TLSConnection 6 from tlslite.tlsconnection import TLSConnection
7 from tlslite.HandshakeSettings import HandshakeSettings 7 from tlslite.handshakesettings import HandshakeSettings
8 from tlslite.errors import * 8 from tlslite.errors import *
9 . 9 .
10 . 10 .
11 11
12 It's easier to do:: 12 It's easier to do::
13 13
14 from tlslite.api import * 14 from tlslite.api import *
15 15
16 This imports all the important objects (TLSConnection, Checker, 16 This imports all the important objects (TLSConnection, Checker,
17 HandshakeSettings, etc.) into the global namespace. In particular, it 17 HandshakeSettings, etc.) into the global namespace. In particular, it
18 imports:: 18 imports::
19 19
20 from constants import AlertLevel, AlertDescription, Fault 20 from constants import AlertLevel, AlertDescription, Fault
21 from errors import * 21 from errors import *
22 from Checker import Checker 22 from checker import Checker
23 from HandshakeSettings import HandshakeSettings 23 from handshakesettings import HandshakeSettings
24 from Session import Session 24 from session import Session
25 from SessionCache import SessionCache 25 from sessioncache import SessionCache
26 from SharedKeyDB import SharedKeyDB 26 from sharedkeydb import SharedKeyDB
27 from TLSConnection import TLSConnection 27 from tlsconnection import TLSConnection
28 from VerifierDB import VerifierDB 28 from verifierdb import VerifierDB
29 from X509 import X509 29 from x509 import X509
30 from X509CertChain import X509CertChain 30 from x509certchain import X509CertChain
31 31
32 from integration.HTTPTLSConnection import HTTPTLSConnection 32 from integration.httptlsconnection import HTTPTLSConnection
33 from integration.POP3_TLS import POP3_TLS 33 from integration.pop3_tls import POP3_TLS
34 from integration.IMAP4_TLS import IMAP4_TLS 34 from integration.imap4_tls import IMAP4_TLS
35 from integration.SMTP_TLS import SMTP_TLS 35 from integration.smtp_tls import SMTP_TLS
36 from integration.XMLRPCTransport import XMLRPCTransport 36 from integration.xmlrpctransport import XMLRPCTransport
37 from integration.TLSSocketServerMixIn import TLSSocketServerMixIn 37 from integration.tlssocketservermixin import TLSSocketServerMixIn
38 from integration.TLSAsyncDispatcherMixIn import TLSAsyncDispatcherMixIn 38 from integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
39 from integration.TLSTwistedProtocolWrapper import TLSTwistedProtocolWrapper 39 from integration.tlstwistedprotocolwrapper import TLSTwistedProtocolWrapper
40 from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded, 40 from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded,
41 gmpyLoaded, pycryptoLoaded, prngName 41 gmpyLoaded, pycryptoLoaded, prngName
42 from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey, 42 from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey,
43 parseAsPublicKey, parsePrivateKey 43 parseAsPublicKey, parsePrivateKey
44 """ 44 """
45 45
46 from constants import AlertLevel, AlertDescription, Fault 46 from constants import AlertLevel, AlertDescription, Fault
47 from errors import * 47 from errors import *
48 from Checker import Checker 48 from checker import Checker
49 from HandshakeSettings import HandshakeSettings 49 from handshakesettings import HandshakeSettings
50 from Session import Session 50 from session import Session
51 from SessionCache import SessionCache 51 from sessioncache import SessionCache
52 from SharedKeyDB import SharedKeyDB 52 from sharedkeydb import SharedKeyDB
53 from TLSConnection import TLSConnection 53 from tlsconnection import TLSConnection
54 from VerifierDB import VerifierDB 54 from verifierdb import VerifierDB
55 from X509 import X509 55 from x509 import X509
56 from X509CertChain import X509CertChain 56 from x509certchain import X509CertChain
57 57
58 from integration.HTTPTLSConnection import HTTPTLSConnection 58 from integration.httptlsconnection import HTTPTLSConnection
59 from integration.TLSSocketServerMixIn import TLSSocketServerMixIn 59 from integration.tlssocketservermixin import TLSSocketServerMixIn
60 from integration.TLSAsyncDispatcherMixIn import TLSAsyncDispatcherMixIn 60 from integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
61 from integration.POP3_TLS import POP3_TLS 61 from integration.pop3_tls import POP3_TLS
62 from integration.IMAP4_TLS import IMAP4_TLS 62 from integration.imap4_tls import IMAP4_TLS
63 from integration.SMTP_TLS import SMTP_TLS 63 from integration.smtp_tls import SMTP_TLS
64 from integration.XMLRPCTransport import XMLRPCTransport 64 from integration.xmlrpctransport import XMLRPCTransport
65 try: 65 try:
66 import twisted 66 import twisted
67 del(twisted) 67 del(twisted)
68 from integration.TLSTwistedProtocolWrapper import TLSTwistedProtocolWrapper 68 from integration.tlstwistedprotocolwrapper import TLSTwistedProtocolWrapper
69 except ImportError: 69 except ImportError:
70 pass 70 pass
71 71
72 from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded, gmpyLoaded, \ 72 from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded, gmpyLoaded, \
73 pycryptoLoaded, prngName 73 pycryptoLoaded, prngName
74 from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey, \ 74 from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey, \
75 parseAsPublicKey, parsePrivateKey 75 parseAsPublicKey, parsePrivateKey
OLDNEW
« 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