diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-12 17:50:35 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-12 17:50:35 +0100 |
commit | df2e93c58c0a537c8dd6e6f5c07371ad800a2bc4 (patch) | |
tree | 320b6a7540748ad91e0fffef18e11a28d62a1cfa /src/lua/lua_cfg_file.c | |
parent | 2be05d7af71ac14a9f515254185e16522310b5ad (diff) | |
download | rspamd-df2e93c58c0a537c8dd6e6f5c07371ad800a2bc4.tar.gz rspamd-df2e93c58c0a537c8dd6e6f5c07371ad800a2bc4.zip |
Add preliminary API for rsa verify to lua.
Diffstat (limited to 'src/lua/lua_cfg_file.c')
-rw-r--r-- | src/lua/lua_cfg_file.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c index b23ba10f8..433e70fc7 100644 --- a/src/lua/lua_cfg_file.c +++ b/src/lua/lua_cfg_file.c @@ -482,6 +482,13 @@ lua_check_condition (struct config_file *cfg, const gchar *condition) lua_setglobal (L, "osrelease"); #endif +#ifdef HAVE_OPENSSL + lua_pushboolean (L, TRUE); +#else + lua_pushboolean (L, FALSE); +#endif + lua_setglobal (L, "rspamd_supports_rsa"); + /* Rspamd paths */ lua_newtable (L); lua_set_table_index (L, "etcdir", ETC_PREFIX); |