diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-29 15:24:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-29 15:24:39 +0100 |
commit | ea9d518099d0ccef9d1bba73d6e270200398bc58 (patch) | |
tree | 030075b46f5ebd67e867f11185a09618fbbae285 /src/lua/lua_rsa.c | |
parent | a78961b4277306675c59a3fbc6da836cfdde41b2 (diff) | |
download | rspamd-ea9d518099d0ccef9d1bba73d6e270200398bc58.tar.gz rspamd-ea9d518099d0ccef9d1bba73d6e270200398bc58.zip |
[Fix] Fix lua RSA verify and its tests
Diffstat (limited to 'src/lua/lua_rsa.c')
-rw-r--r-- | src/lua/lua_rsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_rsa.c b/src/lua/lua_rsa.c index b7ccf8709..938fabec2 100644 --- a/src/lua/lua_rsa.c +++ b/src/lua/lua_rsa.c @@ -585,7 +585,7 @@ lua_rsa_verify_memory (lua_State *L) data = luaL_checkstring (L, 3); if (rsa != NULL && signature != NULL && data != NULL) { - ret = RSA_verify (NID_sha1, data, strlen (data), + ret = RSA_verify (NID_sha256, data, strlen (data), signature->str, signature->len, rsa); if (ret == 0) { |