提交 406b9a06 编写于 作者: P Paul Tremberth

Add missing import for implementer

Also remove TLSv1.1 and TLSv1.2 method: these are available only
from pyOpenSSL 0.14
https://github.com/pyca/pyopenssl/releases/tag/v0.14a1
上级 45f972cb
......@@ -5,6 +5,8 @@ from scrapy import twisted_version
if twisted_version >= (14, 0, 0):
from zope.interface.declarations import implementer
from twisted.internet.ssl import optionsForClientTLS
from twisted.web.client import BrowserLikePolicyForHTTPS
from twisted.web.iweb import IPolicyForHTTPS
......@@ -65,11 +67,3 @@ class SSLv3ContextFactory(OpenSSLMethodContextFactory):
class TLSv1ContextFactory(OpenSSLMethodContextFactory):
openssl_method = SSL.TLSv1_METHOD
class TLSv11ContextFactory(OpenSSLMethodContextFactory):
openssl_method = SSL.TLSv1_1_METHOD
class TLSv12ContextFactory(OpenSSLMethodContextFactory):
openssl_method = SSL.TLSv1_2_METHOD
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册