From d838161a48eee9651ffdc5a73367769e466d6948 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 24 Sep 2013 15:49:07 +0100 Subject: Check openssl version for using EVP. --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.c') 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 } -- cgit v1.2.3