aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-09-24 15:49:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-09-24 15:49:07 +0100
commitd838161a48eee9651ffdc5a73367769e466d6948 (patch)
tree61ab1aa271739b6b4f56178bbe47c3f400d4b479 /src/main.c
parent1aaa5ef8c665781a8ed2c7cd4200d6938be4ef38 (diff)
downloadrspamd-d838161a48eee9651ffdc5a73367769e466d6948.tar.gz
rspamd-d838161a48eee9651ffdc5a73367769e466d6948.zip
Check openssl version for using EVP.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c2447454e..4b78b4173 100644
--- a/src/main.c
+++ b/src/main.c
@@ -891,6 +891,10 @@ perform_configs_sign (void)
msg_err ("cannot sign files without openssl support");
return EXIT_FAILURE;
#else
+# if (OPENSSL_VERSION_NUMBER < 0x10000000L)
+ msg_err ("must have openssl at least 1.0.0 to perform this action");
+ return EXIT_FAILURE;
+# else
gint i, tests_num, res = EXIT_SUCCESS, fd;
guint diglen;
gchar *cur_file, in_file[PATH_MAX],
@@ -1007,6 +1011,7 @@ perform_configs_sign (void)
BIO_free (fbio);
return res;
+# endif
#endif
}