~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/internet/ssl.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-17 14:52:35 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20070117145235-btmig6qfmqfen0om
Tags: 2.5.0-0ubuntu1
New upstream version, compatible with python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
# System imports
47
47
from OpenSSL import SSL
48
 
import socket
49
48
from zope.interface import implements, implementsOnly, implementedBy
50
49
 
51
50
# sibling imports
52
51
import tcp, interfaces
53
52
 
54
53
# Twisted imports
55
 
from twisted.python import log, components
56
54
from twisted.internet import base, address
57
55
 
58
56
 
190
188
 
191
189
    def getDestination(self):
192
190
        return address.IPv4Address('TCP', self.host, self.port, 'SSL')
193
 
 
194
 
 
195
 
__all__ = ["ContextFactory", "DefaultOpenSSLContextFactory", "ClientContextFactory"]
 
191
 
 
192
from twisted.internet._sslverify import DistinguishedName, DN, Certificate
 
193
from twisted.internet._sslverify import CertificateRequest, PrivateCertificate
 
194
from twisted.internet._sslverify import KeyPair
 
195
from twisted.internet._sslverify import OpenSSLCertificateOptions as CertificateOptions
 
196
 
 
197
__all__ = [
 
198
    "ContextFactory", "DefaultOpenSSLContextFactory", "ClientContextFactory",
 
199
 
 
200
    'DistinguishedName', 'DN',
 
201
    'Certificate', 'CertificateRequest', 'PrivateCertificate',
 
202
    'KeyPair',
 
203
    'CertificateOptions',
 
204
    ]
196
205
 
197
206
supported = True