File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020module OpenSSL
2121 module SSL
2222 class SSLContext
23+ options = OpenSSL ::SSL ::OP_ALL
24+ if defined? ( OpenSSL ::SSL ::OP_DONT_INSERT_EMPTY_FRAGMENTS )
25+ options &= ~OpenSSL ::SSL ::OP_DONT_INSERT_EMPTY_FRAGMENTS
26+ end
27+ if defined? ( OpenSSL ::SSL ::OP_NO_COMPRESSION )
28+ options |= OpenSSL ::SSL ::OP_NO_COMPRESSION
29+ end
30+
2331 DEFAULT_PARAMS = {
2432 :ssl_version => "SSLv23" ,
2533 :verify_mode => OpenSSL ::SSL ::VERIFY_PEER ,
26- :ciphers => "ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW" ,
27- :options => defined? ( OpenSSL ::SSL ::OP_DONT_INSERT_EMPTY_FRAGMENTS ) ?
28- OpenSSL ::SSL ::OP_ALL & ~OpenSSL ::SSL ::OP_DONT_INSERT_EMPTY_FRAGMENTS :
29- OpenSSL ::SSL ::OP_ALL ,
34+ :ciphers => "DEFAULT:!aNULL:!eNULL:!LOW:!EXPORT:!SSLv2:!ADH" ,
35+ :options => options ,
3036 }
3137
3238 DEFAULT_CERT_STORE = OpenSSL ::X509 ::Store . new
You can’t perform that action at this time.
0 commit comments