From dc835960a2773485094306b557e5fc2aa1f43c60 Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Thu, 29 Nov 2012 12:08:59 -0700 Subject: Set the client key/cert in one API call It doesn't make much sense to have separate APIs to set the client key/cert pair. This change also make it easier to port to other backends. Signed-off-by: Michael Steinert --- tools/common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/common.c b/tools/common.c index 60d70fb..abfba4b 100644 --- a/tools/common.c +++ b/tools/common.c @@ -336,10 +336,7 @@ amqp_connection_state_t make_connection(void) amqp_ssl_socket_set_cacert(socket, amqp_cacert); } if (amqp_key) { - amqp_ssl_socket_set_key(socket, amqp_key); - } - if (amqp_cert) { - amqp_ssl_socket_set_cert(socket, amqp_cert); + amqp_ssl_socket_set_key(socket, amqp_cert, amqp_key); } #else die("librabbitmq was not built with SSL/TLS support"); -- cgit v1.2.1