summaryrefslogtreecommitdiff
path: root/tools/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/common.c')
-rw-r--r--tools/common.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/common.c b/tools/common.c
index ef8f37b..60d70fb 100644
--- a/tools/common.c
+++ b/tools/common.c
@@ -335,8 +335,11 @@ amqp_connection_state_t make_connection(void)
if (amqp_cacert) {
amqp_ssl_socket_set_cacert(socket, amqp_cacert);
}
- if (amqp_key && amqp_cert) {
- amqp_ssl_socket_set_key(socket, amqp_key, amqp_cert);
+ if (amqp_key) {
+ amqp_ssl_socket_set_key(socket, amqp_key);
+ }
+ if (amqp_cert) {
+ amqp_ssl_socket_set_cert(socket, amqp_cert);
}
#else
die("librabbitmq was not built with SSL/TLS support");