From 09eccb1c0832713f377235c941716007085b47fc Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Thu, 30 Aug 2012 16:08:23 -0600 Subject: Add API to load SSL keys from a buffer Signed-off-by: Michael Steinert --- tools/common.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') 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"); -- cgit v1.2.1