diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | tools/common.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 5c0f661..c2e8d09 100644 --- a/configure.ac +++ b/configure.ac @@ -142,7 +142,7 @@ AS_IF([test "x$with_ssl" = "xcyassl"], [test "x$with_ssl" = "xgnutls"], [PKG_CHECK_MODULES([SSL], [gnutls],, [with_ssl=no])], [test "x$with_ssl" = "xopenssl"], - [PKG_CHECK_MODULES([SSL], [openssl >= 1.0.1a],, [with_ssl=no])], + [PKG_CHECK_MODULES([SSL], [openssl >= 1.0.0],, [with_ssl=no])], [test "x$with_ssl" = "xpolarssl"], [AX_LIB_POLARSSL([SSL_CFLAGS=$POLARSSL_CFLAGS SSL_LIBS=$POLARSSL_LIBS], 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); |