diff options
author | Kevin Smith <git@kismith.co.uk> | 2014-01-10 14:33:07 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-01-11 12:40:01 (GMT) |
commit | 9f0bba97276d0d4e1415881f04e2cb3dfb1552e2 (patch) | |
tree | 55b4027d1dc6fa94ac25c551c9a8e37b4584eef9 /Swiften/TLS | |
parent | ff11121d1379f9c007d392150748267712e61664 (diff) | |
download | swift-9f0bba97276d0d4e1415881f04e2cb3dfb1552e2.zip swift-9f0bba97276d0d4e1415881f04e2cb3dfb1552e2.tar.bz2 |
Allow TLS other than version 1
Change-Id: I1ffb6d9eabfb36c0101ee19c0cd618736d8a8bb8
Diffstat (limited to 'Swiften/TLS')
-rw-r--r-- | Swiften/TLS/OpenSSL/OpenSSLContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLContext.cpp b/Swiften/TLS/OpenSSL/OpenSSLContext.cpp index 77f780f..4e8654f 100644 --- a/Swiften/TLS/OpenSSL/OpenSSLContext.cpp +++ b/Swiften/TLS/OpenSSL/OpenSSLContext.cpp @@ -41,7 +41,8 @@ static void freeX509Stack(STACK_OF(X509)* stack) { OpenSSLContext::OpenSSLContext() : state_(Start), context_(0), handle_(0), readBIO_(0), writeBIO_(0) { ensureLibraryInitialized(); - context_ = SSL_CTX_new(TLSv1_client_method()); + context_ = SSL_CTX_new(SSLv23_client_method()); + SSL_CTX_set_options(context_, SSL_OP_NO_SSLv2); // TODO: implement CRL checking // TODO: download CRL (HTTP transport) |