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 /examples/amqps_unbind.c | |
parent | 696df0ed2f705184cda8a1279345a58b42b21db0 (diff) | |
download | rabbitmq-c-github-ask-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 'examples/amqps_unbind.c')
-rw-r--r-- | examples/amqps_unbind.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/amqps_unbind.c b/examples/amqps_unbind.c index 5c8a4b5..58a6730 100644 --- a/examples/amqps_unbind.c +++ b/examples/amqps_unbind.c @@ -75,15 +75,8 @@ int main(int argc, char const * const *argv) { } } - if (argc > 7) { - status = amqp_ssl_socket_set_key(socket, argv[7]); - if (status) { - die("setting client key"); - } - } - if (argc > 8) { - status = amqp_ssl_socket_set_cert(socket, argv[8]); + status = amqp_ssl_socket_set_key(socket, argv[8], argv[7]); if (status) { die("setting client cert"); } |