Fix preprocessor indentation.
Rework main() to be in the style of the other conditional tests.
/*
- * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2016-2017 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -499,9 +499,11 @@ static int test_ctlog_from_base64(void)
return 0;
return 1;
}
+#endif
int test_main(int argc, char *argv[])
{
+#ifndef OPENSSL_NO_CT
if ((ct_dir = getenv("CT_DIR")) == NULL)
ct_dir = "ct";
if ((certs_dir = getenv("CERTS_DIR")) == NULL)
@@ -519,11 +521,8 @@ int test_main(int argc, char *argv[])
ADD_TEST(test_ctlog_from_base64);
return run_tests(argv[0]);
-}
#else
-int test_main(int argc, char *argv[])
-{
printf("No CT support\n");
- return 0;
-}
+ return EXIT_SUCCESS;
#endif
+}
