diff options
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"); } |