diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2016-07-18 15:03:45 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2016-07-19 16:51:05 +0200 |
commit | 71d87c3025f3fe16af41f2014219b96be6524026 (patch) | |
tree | 116a0eddb8c2dd59f61119eb8a8a61fb7f042498 /contrib | |
parent | 33301b829e3976275c099db8ff885d2816a66959 (diff) | |
download | m2crypto-71d87c3025f3fe16af41f2014219b96be6524026.tar.gz |
Use better defaults for SSL_CTX_new().
Either TLS_method() is available, or SSLv23_method(), but remove
explicit selection of sslv23.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/dispatcher.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/dispatcher.py b/contrib/dispatcher.py index 6d857ad..8e74985 100644 --- a/contrib/dispatcher.py +++ b/contrib/dispatcher.py @@ -45,7 +45,7 @@ class dispatcher(asyncore.dispatcher_with_send): else: self.create_socket (socket.AF_INET, socket.SOCK_STREAM) - self.ctx = SSL.Context('sslv23') + self.ctx = SSL.Context() self.ctx.set_verify(SSL.verify_none, 10) self.ctx.load_cert(cert, key) self.ctx.set_info_callback() |