Commit 1c3ea60 1 parent 9f1fe43 commit 1c3ea60 Copy full SHA for 1c3ea60
File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Table of Contents
12
12
- [ Status] ( #status )
13
13
- [ Synopsis] ( #synopsis )
14
14
* [ resty.openssl] ( #restyopenssl )
15
- + [ openssl.luaossl_compact ] ( #opensslluaossl-compact )
15
+ + [ openssl.luaossl_compat ] ( #opensslluaossl-compat )
16
16
* [ resty.openssl.version] ( #restyopensslversion )
17
17
+ [ version_num] ( #version_num )
18
18
+ [ version_text] ( #version_text )
@@ -174,7 +174,7 @@ local _M = {
174
174
175
175
### openssl.luaossl_compat
176
176
177
- ** syntax** : * openssl.luaossl_compact ()*
177
+ ** syntax** : * openssl.luaossl_compat ()*
178
178
179
179
Provides ` luaossl ` flavored API which uses * camelCase* naming; user can expect drop in replacement.
180
180
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ local _M = {
25
25
26
26
_M .bignum = _M .bn
27
27
28
- function _M .luaossl_compact ()
28
+ function _M .luaossl_compat ()
29
29
for mod , tbl in pairs (_M ) do
30
30
if type (tbl ) == ' table' then
31
31
-- luaossl always error() out
@@ -102,4 +102,7 @@ function _M.luaossl_compact()
102
102
end
103
103
end
104
104
105
+ -- we made a typo sometime, this is going to be removed in next major release
106
+ _M .luaossl_compact = _M .luaossl_compat
107
+
105
108
return _M
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ __DATA__
30
30
[error]
31
31
32
32
33
- === TEST 2 : Luaossl compact pattern
33
+ === TEST 2 : Luaossl compat pattern
34
34
-- - http_config eval: $::HttpConfig
35
35
-- - config
36
36
location = /t {
37
37
content_by_lua_block {
38
38
local openssl = require (" resty.openssl" )
39
- openssl. luaossl_compact ()
39
+ openssl. luaossl_compat ()
40
40
local pkey = require (" resty.openssl.pkey" )
41
41
local pok, perr = pcall(pkey. new , " not a key" )
42
42
ngx. say (pok)
You can’t perform that action at this time.
0 commit comments