diff options
Diffstat (limited to 'examples/amqps_listen.c')
-rw-r--r-- | examples/amqps_listen.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/amqps_listen.c b/examples/amqps_listen.c index 876bad9..25f8371 100644 --- a/examples/amqps_listen.c +++ b/examples/amqps_listen.c @@ -77,15 +77,8 @@ int main(int argc, char const * const *argv) { } } - if (argc > 6) { - status = amqp_ssl_socket_set_key(socket, argv[6]); - if (status) { - die("setting client key"); - } - } - if (argc > 7) { - status = amqp_ssl_socket_set_cert(socket, argv[7]); + status = amqp_ssl_socket_set_key(socket, argv[7], argv[6]); if (status) { die("setting client cert"); } |