diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-11-29 12:08:59 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2013-04-09 15:54:00 -0700 |
commit | dc835960a2773485094306b557e5fc2aa1f43c60 (patch) | |
tree | 025a1ae2a43e04252e6d8c5e698ed29bde445000 /tools | |
parent | 696df0ed2f705184cda8a1279345a58b42b21db0 (diff) | |
download | rabbitmq-c-dc835960a2773485094306b557e5fc2aa1f43c60.tar.gz |
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 <mike.steinert@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/common.c | 5 |
1 files changed, 1 insertions, 4 deletions
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"); |