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

Side by Side 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: Executable bit and --similarity=80 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 # Author: Trevor Perrin
2 # See the LICENSE file for legal information regarding use of this file.
2 3
3 The TLS Lite API consists of classes, functions, and variables spread 4 __version__ = "0.4.6"
4 throughout this package. Instead of importing them individually with:: 5 from .constants import AlertLevel, AlertDescription, Fault
6 from .errors import *
7 from .checker import Checker
8 from .handshakesettings import HandshakeSettings
9 from .session import Session
10 from .sessioncache import SessionCache
11 from .tlsconnection import TLSConnection
12 from .verifierdb import VerifierDB
13 from .x509 import X509
14 from .x509certchain import X509CertChain
5 15
6 from tlslite.tlsconnection import TLSConnection 16 from .integration.httptlsconnection import HTTPTLSConnection
7 from tlslite.handshakesettings import HandshakeSettings 17 from .integration.tlssocketservermixin import TLSSocketServerMixIn
8 from tlslite.errors import * 18 from .integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
9 . 19 from .integration.pop3_tls import POP3_TLS
10 . 20 from .integration.imap4_tls import IMAP4_TLS
21 from .integration.smtp_tls import SMTP_TLS
22 from .integration.xmlrpctransport import XMLRPCTransport
23 from .integration.xmlrpcserver import TLSXMLRPCRequestHandler, \
24 TLSXMLRPCServer, \
25 MultiPathTLSXMLRPCServer
11 26
12 It's easier to do:: 27 from .utils.cryptomath import m2cryptoLoaded, gmpyLoaded, \
13
14 from tlslite.api import *
15
16 This imports all the important objects (TLSConnection, Checker,
17 HandshakeSettings, etc.) into the global namespace. In particular, it
18 imports::
19
20 from constants import AlertLevel, AlertDescription, Fault
21 from errors import *
22 from checker import Checker
23 from handshakesettings import HandshakeSettings
24 from session import Session
25 from sessioncache import SessionCache
26 from sharedkeydb import SharedKeyDB
27 from tlsconnection import TLSConnection
28 from verifierdb import VerifierDB
29 from x509 import X509
30 from x509certchain import X509CertChain
31
32 from integration.httptlsconnection import HTTPTLSConnection
33 from integration.pop3_tls import POP3_TLS
34 from integration.imap4_tls import IMAP4_TLS
35 from integration.smtp_tls import SMTP_TLS
36 from integration.xmlrpctransport import XMLRPCTransport
37 from integration.tlssocketservermixin import TLSSocketServerMixIn
38 from integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
39 from integration.tlstwistedprotocolwrapper import TLSTwistedProtocolWrapper
40 from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded,
41 gmpyLoaded, pycryptoLoaded, prngName
42 from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey,
43 parseAsPublicKey, parsePrivateKey
44 """
45
46 from constants import AlertLevel, AlertDescription, Fault
47 from errors import *
48 from checker import Checker
49 from handshakesettings import HandshakeSettings
50 from session import Session
51 from sessioncache import SessionCache
52 from sharedkeydb import SharedKeyDB
53 from tlsconnection import TLSConnection
54 from verifierdb import VerifierDB
55 from x509 import X509
56 from x509certchain import X509CertChain
57
58 from integration.httptlsconnection import HTTPTLSConnection
59 from integration.tlssocketservermixin import TLSSocketServerMixIn
60 from integration.tlsasyncdispatchermixin import TLSAsyncDispatcherMixIn
61 from integration.pop3_tls import POP3_TLS
62 from integration.imap4_tls import IMAP4_TLS
63 from integration.smtp_tls import SMTP_TLS
64 from integration.xmlrpctransport import XMLRPCTransport
65 try:
66 import twisted
67 del(twisted)
68 from integration.tlstwistedprotocolwrapper import TLSTwistedProtocolWrapper
69 except ImportError:
70 pass
71
72 from utils.cryptomath import cryptlibpyLoaded, m2cryptoLoaded, gmpyLoaded, \
73 pycryptoLoaded, prngName 28 pycryptoLoaded, prngName
74 from utils.keyfactory import generateRSAKey, parsePEMKey, parseXMLKey, \ 29 from .utils.keyfactory import generateRSAKey, parsePEMKey, \
75 parseAsPublicKey, parsePrivateKey 30 parseAsPublicKey, parsePrivateKey
31 from .utils.tackwrapper import tackpyLoaded
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