Only build SSL components if build configured with HAVE_OPENSSL.
authorJustin Pettit <jpettit@nicira.com>
Fri, 6 Mar 2009 08:01:25 +0000 (00:01 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 6 Mar 2009 08:01:25 +0000 (00:01 -0800)
vswitchd/bridge.c

index 69cd7b4f4eefd5b454627504280962203fb6d6e0..60ba99114d439a23ef88de10189c1e767e6abbad 100644 (file)
@@ -281,6 +281,7 @@ config_string_change(const char *key, char **valuep)
     }
 }
 
+#ifdef HAVE_OPENSSL
 static void
 bridge_configure_ssl(void)
 {
@@ -303,6 +304,7 @@ bridge_configure_ssl(void)
                                    cfg_get_bool(0, "ssl.bootstrap-ca-cert"));
     }
 }
+#endif
 
 void
 bridge_reconfigure(void)
@@ -338,8 +340,10 @@ bridge_reconfigure(void)
     svec_destroy(&old_br);
     svec_destroy(&new_br);
 
+#ifdef HAVE_OPENSSL
     /* Configure SSL. */
     bridge_configure_ssl();
+#endif
 
     /* Reconfigure all bridges. */
     LIST_FOR_EACH (br, struct bridge, node, &all_bridges) {