File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -275,13 +275,12 @@ function _M.set_priv_key(priv_key)
275
275
end
276
276
277
277
278
- _M .PROTOCOL_SSLv2 = 0x0002
279
- _M .PROTOCOL_SSLv3 = 0x0004
280
- _M .PROTOCOL_TLSv1 = 0x0008
281
- _M .PROTOCOL_TLSv1_1 = 0x0010
282
- _M .PROTOCOL_TLSv1_2 = 0x0020
283
- local default_protocols = bor (_M .PROTOCOL_SSLv3 , _M .PROTOCOL_TLSv1 ,
284
- _M .PROTOCOL_TLSv1_1 , _M .PROTOCOL_TLSv1_2 )
278
+ _M .SSLv2 = 0x0002
279
+ _M .SSLv3 = 0x0004
280
+ _M .TLSv1 = 0x0008
281
+ _M .TLSv1_1 = 0x0010
282
+ _M .TLSv1_2 = 0x0020
283
+ local default_protocols = bor (_M .SSLv3 , _M .TLSv1 , _M .TLSv1_1 , _M .TLSv1_2 )
285
284
286
285
287
286
function _M .create_ctx (options )
Original file line number Diff line number Diff line change @@ -242,10 +242,10 @@ no options found
242
242
local bit = require "bit"
243
243
local bor = bit.bor
244
244
245
- ngx.say(test_ssl_protocol(ssl.PROTOCOL_TLSv1 ))
246
- ngx.say(test_ssl_protocol(ssl.PROTOCOL_TLSv1_1 ))
247
- ngx.say(test_ssl_protocol(ssl.PROTOCOL_TLSv1_2 ))
248
- ngx.say(test_ssl_protocol(bor(ssl.PROTOCOL_SSLv2 , ssl.PROTOCOL_TLSv1_2 )))
245
+ ngx.say(test_ssl_protocol(ssl.TLSv1 ))
246
+ ngx.say(test_ssl_protocol(ssl.TLSv1_1 ))
247
+ ngx.say(test_ssl_protocol(ssl.TLSv1_2 ))
248
+ ngx.say(test_ssl_protocol(bor(ssl.SSLv2 , ssl.TLSv1_2 )))
249
249
}
250
250
}
251
251
You can’t perform that action at this time.
0 commit comments