提交 80b06b0c 编写于 作者: T Todd Short 提交者: Rich Salz

Fix unit tests when no-bf configured

Reviewed-by: NRichard Levitte <levitte@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3206)
上级 b997adb3
...@@ -22,13 +22,7 @@ ...@@ -22,13 +22,7 @@
#include "../e_os.h" #include "../e_os.h"
#ifdef OPENSSL_NO_BF #ifndef OPENSSL_NO_BF
int main(int argc, char *argv[])
{
printf("No BF support\n");
return (0);
}
#else
# include <openssl/blowfish.h> # include <openssl/blowfish.h>
# ifdef CHARSET_EBCDIC # ifdef CHARSET_EBCDIC
...@@ -440,10 +434,11 @@ static int test_bf_ofb64(void) ...@@ -440,10 +434,11 @@ static int test_bf_ofb64(void)
return ret; return ret;
} }
#endif
int test_main(int argc, char *argv[]) int test_main(int argc, char *argv[])
{ {
int ret; #ifndef OPENSSL_NO_BF
# ifdef CHARSET_EBCDIC # ifdef CHARSET_EBCDIC
int n; int n;
...@@ -461,10 +456,7 @@ int test_main(int argc, char *argv[]) ...@@ -461,10 +456,7 @@ int test_main(int argc, char *argv[])
ADD_TEST(test_bf_ofb64); ADD_TEST(test_bf_ofb64);
if (argc > 1) if (argc > 1)
ret = print_test_data(); return print_test_data();
else
ret = run_tests(argv[0]);
return ret;
}
#endif #endif
return run_tests(argv[0]);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册