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_listenq.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_listenq.c')
-rw-r--r-- | examples/amqps_listenq.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/amqps_listenq.c b/examples/amqps_listenq.c index 9d910c9..2bb1760 100644 --- a/examples/amqps_listenq.c +++ b/examples/amqps_listenq.c @@ -73,15 +73,8 @@ int main(int argc, char const * const *argv) { } } - if (argc > 5) { - status = amqp_ssl_socket_set_key(socket, argv[5]); - if (status) { - die("setting client key"); - } - } - if (argc > 6) { - status = amqp_ssl_socket_set_cert(socket, argv[5]); + status = amqp_ssl_socket_set_key(socket, argv[6], argv[5]); if (status) { die("setting client cert"); } |