Skip to content

Commit

Permalink
chore(*) style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nasrullo authored and fffonion committed Aug 9, 2020
1 parent d8fd404 commit 7746375
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ Returns a table containing the `parameters` of pkey instance.

**syntax**: *ok, err = pk:set_parameters(params)*

Set the paramets of the pkey from a table `params`.
Set the parameters of the pkey from a table `params`.
If the parameter is not set in the `params` table,
it remains untouched in the pkey instance.

Expand Down
1 change: 0 additions & 1 deletion lib/resty/openssl/digest.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
local ffi = require "ffi"
local C = ffi.C
local ffi_gc = ffi.gc
local ffi_new = ffi.new
local ffi_str = ffi.string

require "resty.openssl.include.evp"
Expand Down
2 changes: 1 addition & 1 deletion lib/resty/openssl/pkey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ function _M:verify(signature, digest)
end
ffi_gc(md_ctx, C.EVP_MD_CTX_free)
if C.EVP_DigestVerifyInit(md_ctx, nil, nil, nil, self.ctx) ~= 1 then
return nil, format_error("pkey:verify: EVP_DigestSignInit")
return nil, format_error("pkey:verify: EVP_DigestVerifyInit")
end
code = C.EVP_DigestVerify(md_ctx, signature, #signature, digest, #digest)
end
Expand Down
4 changes: 0 additions & 4 deletions lib/resty/openssl/provider.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
local ffi = require "ffi"
local C = ffi.C
local ffi_gc = ffi.gc
local ffi_new = ffi.new
local ffi_str = ffi.string
local ffi_cast = ffi.cast

require "resty.openssl.include.provider"
local OPENSSL_30 = require("resty.openssl.version").OPENSSL_30
Expand Down

0 comments on commit 7746375

Please sign in to comment.