Reported-by: Andy Southgate <andy.southgate@citrix.com>
#include "vlog.h"
#define THIS_MODULE VLM_ovsdb_server
#include "vlog.h"
#define THIS_MODULE VLM_ovsdb_server
/* SSL configuration. */
static char *private_key_file;
static char *certificate_file;
static char *ca_cert_file;
static bool bootstrap_ca_cert;
/* SSL configuration. */
static char *private_key_file;
static char *certificate_file;
static char *ca_cert_file;
static bool bootstrap_ca_cert;
static unixctl_cb_func ovsdb_server_exit;
static unixctl_cb_func ovsdb_server_compact;
static unixctl_cb_func ovsdb_server_exit;
static unixctl_cb_func ovsdb_server_compact;
static const char *
query_db_string(const struct ovsdb *db, const char *name)
{
static const char *
query_db_string(const struct ovsdb *db, const char *name)
{
+#endif /* HAVE_OPENSSL */
static void
query_db_remotes(const char *name, const struct ovsdb *db,
static void
query_db_remotes(const char *name, const struct ovsdb *db,
ovsdb_jsonrpc_server_set_remotes(jsonrpc, &resolved_remotes);
shash_destroy(&resolved_remotes);
ovsdb_jsonrpc_server_set_remotes(jsonrpc, &resolved_remotes);
shash_destroy(&resolved_remotes);
/* Configure SSL. */
stream_ssl_set_private_key_file(query_db_string(db, private_key_file));
stream_ssl_set_certificate_file(query_db_string(db, certificate_file));
stream_ssl_set_ca_cert_file(query_db_string(db, ca_cert_file),
bootstrap_ca_cert);
/* Configure SSL. */
stream_ssl_set_private_key_file(query_db_string(db, private_key_file));
stream_ssl_set_certificate_file(query_db_string(db, certificate_file));
stream_ssl_set_ca_cert_file(query_db_string(db, ca_cert_file),
bootstrap_ca_cert);