aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_rsa.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:44:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-23 17:44:04 +0000
commit71d52e806a4780d95eb0322544330e31a7a375d9 (patch)
tree15709221c847de6b85ebbb3ad020a29441b1cbfb /src/lua/lua_rsa.c
parent11021601e04634213a31df0c16aa4d1c064201ac (diff)
downloadrspamd-71d52e806a4780d95eb0322544330e31a7a375d9.tar.gz
rspamd-71d52e806a4780d95eb0322544330e31a7a375d9.zip
[Minor] Fix various style issues
Diffstat (limited to 'src/lua/lua_rsa.c')
-rw-r--r--src/lua/lua_rsa.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/lua/lua_rsa.c b/src/lua/lua_rsa.c
index 659eaecd2..91cdf497d 100644
--- a/src/lua/lua_rsa.c
+++ b/src/lua/lua_rsa.c
@@ -21,12 +21,10 @@
#include "lua_common.h"
#include "unix-std.h"
-
-#ifdef HAVE_OPENSSL
#include <openssl/err.h>
+#include <openssl/pem.h>
#include <openssl/sha.h>
#include <openssl/rsa.h>
-#include <openssl/pem.h>
LUA_FUNCTION_DEF (rsa_pubkey, load);
LUA_FUNCTION_DEF (rsa_pubkey, create);
@@ -693,12 +691,3 @@ luaopen_rsa (lua_State * L)
lua_settop (L, 0);
}
-
-#else
-void
-luaopen_rsa (lua_State * L)
-{
- msg_info ("this rspamd version is not linked against openssl, therefore no "
- "RSA support is available");
-}
-#endif