summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-24 20:07:07 -0600
committerAlan Antonuk <alan.antonuk@gmail.com>2013-04-09 15:31:35 -0700
commitf371e0ae2697031a42cfd573079c9261bc731091 (patch)
treeb3acece8473ea183a595a301ecb7a056d93fc630 /tools
parentdabcfed253cd148fe3dba7fa97537c0d1c9b36ba (diff)
downloadrabbitmq-c-github-ask-f371e0ae2697031a42cfd573079c9261bc731091.tar.gz
Fix non-SSL build in the tools directory
Also reduce OpenSSL requirement to 1.0.0 (0.9.8 would probably be fine as well). Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/common.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/common.c b/tools/common.c
index b0f534c..77bcb61 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -229,10 +229,9 @@ static void init_connection_info(struct amqp_connection_info *ci)
ci->vhost = NULL;
ci->user = NULL;
- if (amqp_url) {
+ if (amqp_url)
die_amqp_error(amqp_parse_url(strdup(amqp_url), ci),
- "Parsing URL '%s'", amqp_url);
- }
+ "Parsing URL '%s'", amqp_url);
if (amqp_server) {
char *colon;
@@ -274,10 +273,12 @@ static void init_connection_info(struct amqp_connection_info *ci)
amqp_server);
}
+#if WITH_SSL
if (amqp_ssl && !ci->ssl) {
die("the --ssl option specifies an SSL connection"
" but the --server option does not");
}
+#endif
}
if (amqp_port >= 0) {
@@ -312,9 +313,11 @@ static void init_connection_info(struct amqp_connection_info *ci)
ci->vhost = amqp_vhost;
}
+#if WITH_SSL
if (amqp_ssl) {
ci->ssl = true;
}
+#endif
amqp_default_connection_info(&defaults);