Browse code

Fix compiling with --disable-crypto and/or --disable-ssl

The checks introduced in commit 0f2bc0dd92f43c91e33bba8a66b06b98f281efc1
didn't properly remove checks if crypto or SSL was disabled at compile time.

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>

David Sommerseth authored on 2011/12/15 02:12:23
Showing 1 changed files
... ...
@@ -2691,10 +2691,11 @@ options_postprocess_filechecks (struct options *options)
2691 2691
   errs |= check_file_access (CHKACC_FILE, options->management_user_pass, R_OK,
2692 2692
                              "--management user/password file");
2693 2693
 #endif /* ENABLE_MANAGEMENT */
2694
+#if P2MP
2694 2695
   if( options->auth_user_pass_file && strcmp(options->auth_user_pass_file, "stdin") != 0 )
2695 2696
     errs |= check_file_access (CHKACC_FILE, options->auth_user_pass_file, R_OK,
2696 2697
                                "--auth-user-pass");
2697
-
2698
+#endif /* P2MP */
2698 2699
 
2699 2700
   /* ** System related ** */
2700 2701
   errs |= check_file_access (CHKACC_FILE, options->chroot_dir,
... ...
@@ -2709,15 +2710,14 @@ options_postprocess_filechecks (struct options *options)
2709 2709
                              R_OK|W_OK, "--status");
2710 2710
 
2711 2711
   /* ** Config related ** */
2712
-#ifdef USE_CRYPTO
2712
+#ifdef USE_SSL
2713 2713
   errs |= check_file_access (CHKACC_FILE, options->tls_export_cert,
2714 2714
                              R_OK|W_OK|X_OK, "--tls-export-cert");
2715
-#endif /* USE_CRYPTO */
2715
+#endif /* USE_SSL */
2716
+#if P2MP_SERVER
2716 2717
   errs |= check_file_access (CHKACC_FILE, options->client_config_dir,
2717 2718
                              R_OK|X_OK, "--client-config-dir");
2718
-
2719 2719
   /* ** Script hooks ** */
2720
-#if P2MP_SERVER
2721 2720
   errs |= check_file_access (CHKACC_FILE, options->client_connect_script,
2722 2721
                              R_OK|X_OK, "--client-connect script");
2723 2722
   errs |= check_file_access (CHKACC_FILE, options->client_disconnect_script,