diff --git a/test/srptest.c b/test/srptest.c index c908c393af..d28c3bcafc 100644 --- a/test/srptest.c +++ b/test/srptest.c @@ -8,22 +8,15 @@ */ #include +# include "testutil.h" + #ifdef OPENSSL_NO_SRP - # include - -int main(int argc, char *argv[]) -{ - printf("No SRP support\n"); - return (0); -} - #else # include # include # include -# include "testutil.h" static void showbn(const char *name, const BIGNUM *bn) { @@ -276,10 +269,14 @@ static int run_srp_tests(void) return 1; } +#endif void register_tests(void) { +#ifdef OPENSSL_NO_SRP + printf("No SRP support\n"); +#else ADD_TEST(run_srp_tests); ADD_TEST(run_srp_kat); -} #endif +}