summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--tools/common.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 348fa09..cfd93ef 100644
--- a/configure.ac
+++ b/configure.ac
@@ -122,7 +122,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 9ac2747..2411325 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -254,10 +254,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) {
@@ -292,9 +294,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);